2fe1e4457c1b697f08ecd61da0f708fe155d0379
[libguestfs.git] / po-docs / uk.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-08-17 12:19+0200\n"
11 "PO-Revision-Date: 2011-07-17 20:50+0000\n"
12 "Last-Translator: rjones <rjones@redhat.com>\n"
13 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
14 "Language: uk\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
19 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
20
21 #. type: =head1
22 #: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
23 #: ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
24 #: ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14
25 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
26 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
27 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
28 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
29 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
30 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
31 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
32 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
33 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
34 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
35 #: ../tools/virt-win-reg.pl:35
36 msgid "NAME"
37 msgstr "НАЗВА"
38
39 #. type: textblock
40 #: ../cat/virt-cat.pod:5
41 msgid "virt-cat - Display files in a virtual machine"
42 msgstr ""
43
44 #. type: =head1
45 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
46 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
47 #: ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7
48 #: ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7
49 #: ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7
50 #: ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7
51 #: ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7
52 #: ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7
53 #: ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7
54 #: ../ruby/examples/guestfs-ruby.pod:7 ../src/guestfs.pod:7
55 #: ../test-tool/libguestfs-test-tool.pod:7
56 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
57 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
58 #: ../tools/virt-win-reg.pl:39
59 msgid "SYNOPSIS"
60 msgstr "КОРОТКИЙ ОПИС"
61
62 #. type: verbatim
63 #: ../cat/virt-cat.pod:9
64 #, fuzzy, no-wrap
65 #| msgid ""
66 #| " virt-list-partitions [--options] domname\n"
67 #| "\n"
68 msgid ""
69 " virt-cat [--options] -d domname file [file ...]\n"
70 "\n"
71 msgstr ""
72 " virt-list-partitions [--параметри] назва_домену\n"
73 "\n"
74
75 #. type: verbatim
76 #: ../cat/virt-cat.pod:11
77 #, fuzzy, no-wrap
78 #| msgid ""
79 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
80 #| "\n"
81 msgid ""
82 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
83 "\n"
84 msgstr ""
85 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
86 "\n"
87
88 #. type: textblock
89 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
90 #: ../inspector/virt-inspector.pod:13
91 msgid "Old-style:"
92 msgstr ""
93
94 #. type: verbatim
95 #: ../cat/virt-cat.pod:15
96 #, no-wrap
97 msgid ""
98 " virt-cat domname file\n"
99 "\n"
100 msgstr ""
101
102 #. type: verbatim
103 #: ../cat/virt-cat.pod:17
104 #, no-wrap
105 msgid ""
106 " virt-cat disk.img file\n"
107 "\n"
108 msgstr ""
109
110 #. type: =head1
111 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
112 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
113 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
114 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
115 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
116 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
117 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
118 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
119 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
120 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
121 #: ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11
122 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
123 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
124 #: ../tools/virt-win-reg.pl:63
125 msgid "DESCRIPTION"
126 msgstr "ОПИС"
127
128 #. type: textblock
129 #: ../cat/virt-cat.pod:21
130 msgid ""
131 "C<virt-cat> is a command line tool to display the contents of C<file> where "
132 "C<file> exists in the named virtual machine (or disk image)."
133 msgstr ""
134
135 #. type: textblock
136 #: ../cat/virt-cat.pod:24
137 msgid ""
138 "Multiple filenames can be given, in which case they are concatenated "
139 "together.  Each filename must be a full path, starting at the root directory "
140 "(starting with '/')."
141 msgstr ""
142
143 #. type: textblock
144 #: ../cat/virt-cat.pod:28
145 msgid ""
146 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
147 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
148 "(see L</USING GUESTFISH> below)."
149 msgstr ""
150
151 #. type: =head1
152 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
153 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
154 #: ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29
155 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
156 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
157 #: ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50
158 msgid "EXAMPLES"
159 msgstr "ПРИКЛАДИ"
160
161 #. type: textblock
162 #: ../cat/virt-cat.pod:34
163 msgid ""
164 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
165 msgstr ""
166
167 #. type: verbatim
168 #: ../cat/virt-cat.pod:37
169 #, no-wrap
170 msgid ""
171 " virt-cat -d mydomain /etc/fstab\n"
172 "\n"
173 msgstr ""
174
175 #. type: textblock
176 #: ../cat/virt-cat.pod:39
177 msgid "List syslog messages from a VM disk image file:"
178 msgstr ""
179
180 #. type: verbatim
181 #: ../cat/virt-cat.pod:41
182 #, no-wrap
183 msgid ""
184 " virt-cat -a disk.img /var/log/messages | tail\n"
185 "\n"
186 msgstr ""
187
188 #. type: textblock
189 #: ../cat/virt-cat.pod:43
190 msgid "Find out what DHCP IP address a VM acquired:"
191 msgstr ""
192
193 #. type: verbatim
194 #: ../cat/virt-cat.pod:45
195 #, no-wrap
196 msgid ""
197 " virt-cat -d mydomain /var/log/messages | \\\n"
198 "   grep 'dhclient: bound to' | tail\n"
199 "\n"
200 msgstr ""
201
202 #. type: textblock
203 #: ../cat/virt-cat.pod:48
204 msgid "Find out what packages were recently installed:"
205 msgstr ""
206
207 #. type: verbatim
208 #: ../cat/virt-cat.pod:50
209 #, no-wrap
210 msgid ""
211 " virt-cat -d mydomain /var/log/yum.log | tail\n"
212 "\n"
213 msgstr ""
214
215 #. type: textblock
216 #: ../cat/virt-cat.pod:52
217 msgid "Find out who is logged on inside a virtual machine:"
218 msgstr ""
219
220 #. type: verbatim
221 #: ../cat/virt-cat.pod:54
222 #, no-wrap
223 msgid ""
224 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
225 " who /tmp/utmp\n"
226 "\n"
227 msgstr ""
228
229 #. type: textblock
230 #: ../cat/virt-cat.pod:57
231 msgid "or who was logged on:"
232 msgstr ""
233
234 #. type: verbatim
235 #: ../cat/virt-cat.pod:59
236 #, no-wrap
237 msgid ""
238 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
239 " last -f /tmp/wtmp\n"
240 "\n"
241 msgstr ""
242
243 #. type: =head1
244 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
245 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
246 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
247 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
248 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
249 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
250 #: ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:37
251 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
252 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
253 #: ../tools/virt-win-reg.pl:96
254 msgid "OPTIONS"
255 msgstr "ПАРАМЕТРИ"
256
257 #. type: =item
258 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
259 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
260 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
261 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
262 #: ../resize/virt-resize.pod:245 ../tools/virt-list-filesystems.pl:61
263 #: ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161
264 #: ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
265 msgid "B<--help>"
266 msgstr "B<--help>"
267
268 #. type: textblock
269 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
270 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
271 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
272 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
273 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
274 #: ../tools/virt-win-reg.pl:106
275 msgid "Display brief help."
276 msgstr ""
277
278 #. type: =item
279 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
280 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
281 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
282 #, fuzzy
283 #| msgid "B<-f file>"
284 msgid "B<-a> file"
285 msgstr "B<-f файл>"
286
287 #. type: =item
288 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
289 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
290 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
291 #, fuzzy
292 #| msgid "B<--add image>"
293 msgid "B<--add> file"
294 msgstr "B<--add образ>"
295
296 #. type: textblock
297 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
298 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
299 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
300 msgid ""
301 "Add I<file> which should be a disk image from a virtual machine.  If the "
302 "virtual machine has multiple block devices, you must supply all of them with "
303 "separate I<-a> options."
304 msgstr ""
305
306 #. type: textblock
307 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
308 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
309 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
310 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
311 msgid ""
312 "The format of the disk image is auto-detected.  To override this and force a "
313 "particular format use the I<--format=..> option."
314 msgstr ""
315
316 #. type: =item
317 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
318 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
319 #, fuzzy
320 #| msgid "B<-c URI>"
321 msgid "B<-c> URI"
322 msgstr "B<-c адреса>"
323
324 #. type: =item
325 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
326 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
327 #, fuzzy
328 #| msgid "B<--connect URI>"
329 msgid "B<--connect> URI"
330 msgstr "B<--connect адреса>"
331
332 #. type: textblock
333 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
334 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
335 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
336 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
337 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
338 msgid ""
339 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
340 "to the default libvirt hypervisor."
341 msgstr ""
342
343 #. type: textblock
344 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
345 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
346 msgid ""
347 "If you specify guest block devices directly (I<-a>), then libvirt is not "
348 "used at all."
349 msgstr ""
350
351 #. type: =item
352 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
353 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
354 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
355 msgid "B<-d> guest"
356 msgstr ""
357
358 #. type: =item
359 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
360 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
361 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
362 msgid "B<--domain> guest"
363 msgstr ""
364
365 #. type: textblock
366 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
367 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
368 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
369 msgid ""
370 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
371 "instead of names."
372 msgstr ""
373
374 #. type: =item
375 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
376 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
377 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
378 msgid "B<--echo-keys>"
379 msgstr "B<--echo-keys>"
380
381 #. type: textblock
382 #: ../cat/virt-cat.pod:100
383 msgid ""
384 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
385 "so you cannot see what you are typing.  If you are not worried about Tempest "
386 "attacks and there is no one else in the room you can specify this flag to "
387 "see what you are typing."
388 msgstr ""
389
390 #. type: =item
391 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
392 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
393 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
394 #: ../rescue/virt-rescue.pod:124
395 msgid "B<--format=raw|qcow2|..>"
396 msgstr "B<--format=raw|qcow2|..>"
397
398 #. type: =item
399 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
400 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
401 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
402 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
403 msgid "B<--format>"
404 msgstr "B<--format>"
405
406 #. type: textblock
407 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
408 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
409 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
410 #: ../rescue/virt-rescue.pod:128
411 msgid ""
412 "The default for the I<-a> option is to auto-detect the format of the disk "
413 "image.  Using this forces the disk format for I<-a> options which follow on "
414 "the command line.  Using I<--format> with no argument switches back to auto-"
415 "detection for subsequent I<-a> options."
416 msgstr ""
417
418 #. type: textblock
419 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
420 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
421 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
422 #: ../inspector/virt-inspector.pod:335 ../rescue/virt-rescue.pod:133
423 #: ../src/guestfs.pod:2653
424 msgid "For example:"
425 msgstr "Приклад:"
426
427 #. type: verbatim
428 #: ../cat/virt-cat.pod:116
429 #, fuzzy, no-wrap
430 #| msgid ""
431 #| " guestfish --format=raw -a disk.img\n"
432 #| "\n"
433 msgid ""
434 " virt-cat --format=raw -a disk.img file\n"
435 "\n"
436 msgstr ""
437 " guestfish --format=raw -a disk.img\n"
438 "\n"
439
440 #. type: textblock
441 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
442 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
443 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
444 msgid "forces raw format (no auto-detection) for C<disk.img>."
445 msgstr ""
446
447 #. type: verbatim
448 #: ../cat/virt-cat.pod:120
449 #, fuzzy, no-wrap
450 #| msgid ""
451 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
452 #| "\n"
453 msgid ""
454 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
455 "\n"
456 msgstr ""
457 " guestfish --format=raw -a disk.img --format -a another.img\n"
458 "\n"
459
460 #. type: textblock
461 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
462 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
463 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
464 msgid ""
465 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
466 "detection for C<another.img>."
467 msgstr ""
468
469 #. type: textblock
470 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
471 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
472 #: ../rescue/virt-rescue.pod:144
473 msgid ""
474 "If you have untrusted raw-format guest disk images, you should use this "
475 "option to specify the disk format.  This avoids a possible security problem "
476 "with malicious guests (CVE-2010-3851)."
477 msgstr ""
478
479 #. type: =item
480 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
481 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
482 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
483 msgid "B<--keys-from-stdin>"
484 msgstr "B<--keys-from-stdin>"
485
486 #. type: textblock
487 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
488 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
489 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
490 msgid ""
491 "Read key or passphrase parameters from stdin.  The default is to try to read "
492 "passphrases from the user by opening C</dev/tty>."
493 msgstr ""
494
495 #. type: =item
496 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
497 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
498 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
499 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:178
500 msgid "B<-v>"
501 msgstr "B<-v>"
502
503 #. type: =item
504 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
505 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
506 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
507 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:180
508 msgid "B<--verbose>"
509 msgstr "B<--verbose>"
510
511 #. type: textblock
512 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
513 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
514 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:182
515 msgid "Enable verbose messages for debugging."
516 msgstr ""
517
518 #. type: =item
519 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
520 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
521 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
522 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:184
523 #: ../resize/virt-resize.pod:478
524 msgid "B<-V>"
525 msgstr "B<-V>"
526
527 #. type: =item
528 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
529 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
530 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
531 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:186
532 #: ../resize/virt-resize.pod:480 ../tools/virt-list-filesystems.pl:69
533 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
534 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
535 msgid "B<--version>"
536 msgstr "B<--version>"
537
538 #. type: textblock
539 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
540 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
541 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:188
542 #: ../resize/virt-resize.pod:482 ../tools/virt-list-filesystems.pl:71
543 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
544 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
545 msgid "Display version number and exit."
546 msgstr "Показати дані щодо версії і завершити роботу."
547
548 #. type: =item
549 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
550 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
551 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
552 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:199
553 #: ../tools/virt-tar.pl:158
554 msgid "B<-x>"
555 msgstr "B<-x>"
556
557 #. type: textblock
558 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
559 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
560 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:201
561 msgid "Enable tracing of libguestfs API calls."
562 msgstr ""
563
564 #. type: =head1
565 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
566 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:205
567 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
568 msgstr ""
569
570 #. type: textblock
571 #: ../cat/virt-cat.pod:154
572 msgid "Previous versions of virt-cat allowed you to write either:"
573 msgstr ""
574
575 #. type: verbatim
576 #: ../cat/virt-cat.pod:156
577 #, fuzzy, no-wrap
578 #| msgid ""
579 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
580 #| "\n"
581 msgid ""
582 " virt-cat disk.img [disk.img ...] file\n"
583 "\n"
584 msgstr ""
585 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
586 "\n"
587
588 #. type: textblock
589 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
590 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:211
591 #, fuzzy
592 #| msgid "or:"
593 msgid "or"
594 msgstr "або:"
595
596 #. type: verbatim
597 #: ../cat/virt-cat.pod:160
598 #, no-wrap
599 msgid ""
600 " virt-cat guestname file\n"
601 "\n"
602 msgstr ""
603
604 #. type: textblock
605 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
606 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:215
607 msgid ""
608 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
609 "the confusing case where a disk image might have the same name as a guest."
610 msgstr ""
611
612 #. type: textblock
613 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
614 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:219
615 msgid "For compatibility the old style is still supported."
616 msgstr ""
617
618 #. type: =head1
619 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
620 msgid "USING GUESTFISH"
621 msgstr ""
622
623 #. type: textblock
624 #: ../cat/virt-cat.pod:170
625 msgid ""
626 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
627 "C<virt-cat> doesn't work."
628 msgstr ""
629
630 #. type: textblock
631 #: ../cat/virt-cat.pod:173
632 msgid "Using C<virt-cat> is approximately equivalent to doing:"
633 msgstr ""
634
635 #. type: verbatim
636 #: ../cat/virt-cat.pod:175
637 #, fuzzy, no-wrap
638 #| msgid ""
639 #| " guestfish --ro -d myguest -i\n"
640 #| "\n"
641 msgid ""
642 " guestfish --ro -i -d domname download file -\n"
643 "\n"
644 msgstr ""
645 " guestfish --ro -d myguest -i\n"
646 "\n"
647
648 #. type: textblock
649 #: ../cat/virt-cat.pod:177
650 msgid ""
651 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
652 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
653 msgstr ""
654
655 #. type: textblock
656 #: ../cat/virt-cat.pod:181
657 msgid ""
658 "The command above uses libguestfs's guest inspection feature and so does not "
659 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
660 "disk images that don't contain guests.  To display a file from a disk image "
661 "directly, use:"
662 msgstr ""
663
664 #. type: verbatim
665 #: ../cat/virt-cat.pod:186
666 #, fuzzy, no-wrap
667 #| msgid ""
668 #| " guestfish [--ro] -i disk.img\n"
669 #| "\n"
670 msgid ""
671 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
672 "\n"
673 msgstr ""
674 " guestfish [--ro] -i disk.img\n"
675 "\n"
676
677 #. type: textblock
678 #: ../cat/virt-cat.pod:188
679 msgid ""
680 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
681 "the disk image to edit, and C<file> is the full path to the file."
682 msgstr ""
683
684 #. type: =head1
685 #: ../cat/virt-cat.pod:192 ../cat/virt-filesystems.pod:365
686 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
687 #: ../inspector/virt-inspector.pod:349 ../rescue/virt-rescue.pod:262
688 #: ../resize/virt-resize.pod:543 ../tools/virt-list-filesystems.pl:188
689 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
690 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
691 msgid "SHELL QUOTING"
692 msgstr ""
693
694 #. type: textblock
695 #: ../cat/virt-cat.pod:194 ../cat/virt-filesystems.pod:367
696 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
697 #: ../inspector/virt-inspector.pod:351 ../rescue/virt-rescue.pod:264
698 #: ../resize/virt-resize.pod:545 ../tools/virt-list-filesystems.pl:190
699 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
700 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
701 msgid ""
702 "Libvirt guest names can contain arbitrary characters, some of which have "
703 "meaning to the shell such as C<#> and space.  You may need to quote or "
704 "escape these characters on the command line.  See the shell manual page L<sh"
705 "(1)> for details."
706 msgstr ""
707
708 #. type: =head1
709 #: ../cat/virt-cat.pod:199 ../cat/virt-filesystems.pod:372
710 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
711 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
712 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
713 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
714 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:303
715 #: ../inspector/virt-inspector.pod:372 ../java/examples/guestfs-java.pod:45
716 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
717 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284
718 #: ../resize/virt-resize.pod:550 ../ruby/examples/guestfs-ruby.pod:36
719 #: ../src/guestfs.pod:3027 ../test-tool/libguestfs-test-tool.pod:87
720 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
721 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
722 #: ../tools/virt-win-reg.pl:746
723 msgid "SEE ALSO"
724 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
725
726 #. type: textblock
727 #: ../cat/virt-cat.pod:201
728 #, fuzzy
729 #| msgid ""
730 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
731 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
732 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
733 msgid ""
734 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
735 "tar-out(1)>, L<http://libguestfs.org/>."
736 msgstr ""
737 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
738 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
739 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
740
741 #. type: =head1
742 #: ../cat/virt-cat.pod:208 ../cat/virt-filesystems.pod:383
743 #: ../cat/virt-ls.pod:502 ../df/virt-df.pod:230 ../edit/virt-edit.pod:363
744 #: ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:571
745 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
746 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
747 #: ../tools/virt-win-reg.pl:772
748 msgid "AUTHOR"
749 msgstr "АВТОР"
750
751 #. type: textblock
752 #: ../cat/virt-cat.pod:210 ../cat/virt-filesystems.pod:385
753 #: ../cat/virt-ls.pod:504 ../df/virt-df.pod:232 ../edit/virt-edit.pod:365
754 #: ../inspector/virt-inspector.pod:386 ../rescue/virt-rescue.pod:294
755 #: ../resize/virt-resize.pod:573 ../tools/virt-list-filesystems.pl:210
756 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
757 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
758 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
759 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
760
761 #. type: =head1
762 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:387
763 #: ../cat/virt-ls.pod:506 ../df/virt-df.pod:234 ../edit/virt-edit.pod:367
764 #: ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400
765 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:64
766 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
767 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:318
768 #: ../inspector/virt-inspector.pod:394 ../java/examples/guestfs-java.pod:61
769 #: ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55
770 #: ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296
771 #: ../resize/virt-resize.pod:575 ../ruby/examples/guestfs-ruby.pod:51
772 #: ../src/guestfs.pod:3103 ../test-tool/libguestfs-test-tool.pod:97
773 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
774 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
775 #: ../tools/virt-win-reg.pl:776
776 msgid "COPYRIGHT"
777 msgstr "АВТОРСЬКІ ПРАВА"
778
779 #. type: textblock
780 #: ../cat/virt-cat.pod:214 ../inspector/virt-inspector.pod:396
781 #: ../resize/virt-resize.pod:577
782 #, fuzzy
783 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
784 msgid "Copyright (C) 2010-2011 Red Hat Inc."
785 msgstr "© Red Hat Inc., 2009–2010"
786
787 #. type: textblock
788 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:391
789 #: ../cat/virt-ls.pod:510 ../df/virt-df.pod:238 ../edit/virt-edit.pod:371
790 #: ../fish/guestfish.pod:1269 ../fish/virt-copy-in.pod:69
791 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
792 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:323
793 #: ../inspector/virt-inspector.pod:398 ../rescue/virt-rescue.pod:300
794 #: ../resize/virt-resize.pod:579 ../test-tool/libguestfs-test-tool.pod:102
795 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
796 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
797 #: ../tools/virt-win-reg.pl:780
798 msgid ""
799 "This program is free software; you can redistribute it and/or modify it "
800 "under the terms of the GNU General Public License as published by the Free "
801 "Software Foundation; either version 2 of the License, or (at your option) "
802 "any later version."
803 msgstr ""
804
805 #. type: textblock
806 #: ../cat/virt-cat.pod:221 ../cat/virt-filesystems.pod:396
807 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
808 #: ../fish/guestfish.pod:1274 ../fish/virt-copy-in.pod:74
809 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
810 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:328
811 #: ../inspector/virt-inspector.pod:403 ../rescue/virt-rescue.pod:305
812 #: ../resize/virt-resize.pod:584 ../test-tool/libguestfs-test-tool.pod:107
813 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
814 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
815 #: ../tools/virt-win-reg.pl:785
816 msgid ""
817 "This program is distributed in the hope that it will be useful, but WITHOUT "
818 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
819 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
820 "more details."
821 msgstr ""
822 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
823 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
824 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
825 "дізнатися з GNU General Public License."
826
827 #. type: textblock
828 #: ../cat/virt-cat.pod:226 ../cat/virt-filesystems.pod:401
829 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
830 #: ../fish/guestfish.pod:1279 ../fish/virt-copy-in.pod:79
831 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
832 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:333
833 #: ../inspector/virt-inspector.pod:408 ../rescue/virt-rescue.pod:310
834 #: ../resize/virt-resize.pod:589 ../test-tool/libguestfs-test-tool.pod:112
835 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
836 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
837 #: ../tools/virt-win-reg.pl:790
838 msgid ""
839 "You should have received a copy of the GNU General Public License along with "
840 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
841 "Ave, Cambridge, MA 02139, USA."
842 msgstr ""
843
844 #. type: textblock
845 #: ../cat/virt-filesystems.pod:5
846 msgid ""
847 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
848 "virtual machine or disk image"
849 msgstr ""
850
851 #. type: verbatim
852 #: ../cat/virt-filesystems.pod:9
853 #, fuzzy, no-wrap
854 #| msgid ""
855 #| " virt-list-partitions [--options] domname\n"
856 #| "\n"
857 msgid ""
858 " virt-filesystems [--options] -d domname\n"
859 "\n"
860 msgstr ""
861 " virt-list-partitions [--параметри] назва_домену\n"
862 "\n"
863
864 #. type: verbatim
865 #: ../cat/virt-filesystems.pod:11
866 #, fuzzy, no-wrap
867 #| msgid ""
868 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
869 #| "\n"
870 msgid ""
871 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
872 "\n"
873 msgstr ""
874 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
875 "\n"
876
877 #. type: textblock
878 #: ../cat/virt-filesystems.pod:15
879 msgid ""
880 "This tool allows you to discover filesystems, partitions, logical volumes, "
881 "and their sizes in a disk image or virtual machine.  It is a replacement for "
882 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
883 msgstr ""
884
885 #. type: textblock
886 #: ../cat/virt-filesystems.pod:20
887 msgid ""
888 "One use for this tool is from shell scripts to iterate over all filesystems "
889 "from a disk image:"
890 msgstr ""
891
892 #. type: verbatim
893 #: ../cat/virt-filesystems.pod:23
894 #, no-wrap
895 msgid ""
896 " for fs in $(virt-filesystems -a disk.img); do\n"
897 "   # ...\n"
898 " done\n"
899 "\n"
900 msgstr ""
901
902 #. type: textblock
903 #: ../cat/virt-filesystems.pod:27
904 msgid ""
905 "Another use is to list partitions before using another tool to modify those "
906 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
907 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
908 msgstr ""
909
910 #. type: textblock
911 #: ../cat/virt-filesystems.pod:32
912 msgid ""
913 "Various command line options control what this program displays.  You need "
914 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
915 "guest respectively.  If you just specify that then the program shows "
916 "filesystems found, one per line, like this:"
917 msgstr ""
918
919 #. type: verbatim
920 #: ../cat/virt-filesystems.pod:37
921 #, no-wrap
922 msgid ""
923 " $ virt-filesystems -a disk.img\n"
924 " /dev/sda1\n"
925 " /dev/vg_guest/lv_root\n"
926 "\n"
927 msgstr ""
928
929 #. type: textblock
930 #: ../cat/virt-filesystems.pod:41
931 msgid ""
932 "If you add I<-l> or I<--long> then the output includes extra information:"
933 msgstr ""
934
935 #. type: verbatim
936 #: ../cat/virt-filesystems.pod:44
937 #, no-wrap
938 msgid ""
939 " $ virt-filesystems -a disk.img -l\n"
940 " Name                   Type         VFS   Label  Size\n"
941 " /dev/sda1              filesystem   ext4  boot   524288000\n"
942 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
943 "\n"
944 msgstr ""
945
946 #. type: textblock
947 #: ../cat/virt-filesystems.pod:49
948 msgid ""
949 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
950 "shown as well:"
951 msgstr ""
952
953 #. type: verbatim
954 #: ../cat/virt-filesystems.pod:52
955 #, no-wrap
956 msgid ""
957 " $ virt-filesystems -a disk.img --extra\n"
958 " /dev/sda1\n"
959 " /dev/vg_guest/lv_root\n"
960 " /dev/vg_guest/lv_swap\n"
961 " /dev/vg_guest/lv_data\n"
962 "\n"
963 msgstr ""
964
965 #. type: textblock
966 #: ../cat/virt-filesystems.pod:58
967 msgid ""
968 "If you add I<--partitions> then partitions are shown instead of filesystems:"
969 msgstr ""
970
971 #. type: verbatim
972 #: ../cat/virt-filesystems.pod:60
973 #, no-wrap
974 msgid ""
975 " $ virt-filesystems -a disk.img --partitions\n"
976 " /dev/sda1\n"
977 " /dev/sda2\n"
978 "\n"
979 msgstr ""
980
981 #. type: textblock
982 #: ../cat/virt-filesystems.pod:64
983 msgid ""
984 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
985 "volumes>, I<--block-devices> to list those items."
986 msgstr ""
987
988 #. type: textblock
989 #: ../cat/virt-filesystems.pod:67
990 msgid ""
991 "You can use these options in combination as well (if you want a combination "
992 "including filesystems, you have to add I<--filesystems>).  Notice that some "
993 "items fall into several categories (eg. C</dev/sda1> might be both a "
994 "partition and a filesystem).  These items are listed several times.  To get "
995 "a list which includes absolutely everything that virt-filesystems knows "
996 "about, use the I<--all> option."
997 msgstr ""
998
999 #. type: textblock
1000 #: ../cat/virt-filesystems.pod:74
1001 msgid ""
1002 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1003 "uuid> option to display device and filesystem UUIDs in the long output."
1004 msgstr ""
1005
1006 #. type: textblock
1007 #: ../cat/virt-filesystems.pod:78
1008 msgid ""
1009 "I<--all --long --uuid> is a useful combination to display all possible "
1010 "information about everything."
1011 msgstr ""
1012
1013 #. type: verbatim
1014 #: ../cat/virt-filesystems.pod:81
1015 #, no-wrap
1016 msgid ""
1017 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1018 " Name      Type       VFS  Label           Size Parent   UUID\n"
1019 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1020 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1021 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1022 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1023 " /dev/sda  device     -    -               20G  -        -\n"
1024 "\n"
1025 msgstr ""
1026
1027 #. type: textblock
1028 #: ../cat/virt-filesystems.pod:89
1029 msgid ""
1030 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1031 msgstr ""
1032
1033 #. type: =item
1034 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1035 #, fuzzy
1036 #| msgid "B<--help>"
1037 msgid "B<--all>"
1038 msgstr "B<--help>"
1039
1040 #. type: textblock
1041 #: ../cat/virt-filesystems.pod:112
1042 msgid ""
1043 "Display everything.  This is currently the same as specifying these options: "
1044 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1045 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1046 "added to this list in future)."
1047 msgstr ""
1048
1049 #. type: textblock
1050 #: ../cat/virt-filesystems.pod:117
1051 #, fuzzy
1052 #| msgid "See also L</is-lv>."
1053 msgid "See also I<--long>."
1054 msgstr "Див. також L</is-lv>."
1055
1056 #. type: =item
1057 #: ../cat/virt-filesystems.pod:119
1058 #, fuzzy
1059 #| msgid "B<--live>"
1060 msgid "B<--blkdevs>"
1061 msgstr "B<--live>"
1062
1063 #. type: =item
1064 #: ../cat/virt-filesystems.pod:121
1065 #, fuzzy
1066 #| msgid "is-blockdev"
1067 msgid "B<--block-devices>"
1068 msgstr "is-blockdev"
1069
1070 #. type: textblock
1071 #: ../cat/virt-filesystems.pod:123
1072 #, fuzzy
1073 #| msgid "is-blockdev"
1074 msgid "Display block devices."
1075 msgstr "is-blockdev"
1076
1077 #. type: =item
1078 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1079 #, fuzzy
1080 #| msgid "B<--csh>"
1081 msgid "B<--csv>"
1082 msgstr "B<--csh>"
1083
1084 #. type: textblock
1085 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1086 msgid ""
1087 "Write out the results in CSV format (comma-separated values).  This format "
1088 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1089 "ABOUT CSV FORMAT> below."
1090 msgstr ""
1091
1092 #. type: textblock
1093 #: ../cat/virt-filesystems.pod:150
1094 msgid ""
1095 "When prompting for keys and passphrases, virt-filesystems normally turns "
1096 "echoing off so you cannot see what you are typing.  If you are not worried "
1097 "about Tempest attacks and there is no one else in the room you can specify "
1098 "this flag to see what you are typing."
1099 msgstr ""
1100
1101 #. type: =item
1102 #: ../cat/virt-filesystems.pod:155
1103 #, fuzzy
1104 #| msgid "B<--ro>"
1105 msgid "B<--extra>"
1106 msgstr "B<--ro>"
1107
1108 #. type: textblock
1109 #: ../cat/virt-filesystems.pod:157
1110 msgid ""
1111 "This causes filesystems that are not ordinary, mountable filesystems to be "
1112 "displayed.  This category includes swapspace, and filesystems that are empty "
1113 "or contain unknown data."
1114 msgstr ""
1115
1116 #. type: textblock
1117 #: ../cat/virt-filesystems.pod:161
1118 msgid "This option implies I<--filesystems>."
1119 msgstr ""
1120
1121 #. type: =item
1122 #: ../cat/virt-filesystems.pod:163
1123 #, fuzzy
1124 #| msgid "list-filesystems"
1125 msgid "B<--filesystems>"
1126 msgstr "list-filesystems"
1127
1128 #. type: textblock
1129 #: ../cat/virt-filesystems.pod:165
1130 msgid ""
1131 "Display mountable filesystems.  If no display option was selected then this "
1132 "option is implied."
1133 msgstr ""
1134
1135 #. type: textblock
1136 #: ../cat/virt-filesystems.pod:168
1137 msgid "With I<--extra>, non-mountable filesystems are shown too."
1138 msgstr ""
1139
1140 #. type: verbatim
1141 #: ../cat/virt-filesystems.pod:181
1142 #, fuzzy, no-wrap
1143 #| msgid ""
1144 #| " guestfish --format=raw -a disk.img\n"
1145 #| "\n"
1146 msgid ""
1147 " virt-filesystems --format=raw -a disk.img\n"
1148 "\n"
1149 msgstr ""
1150 " guestfish --format=raw -a disk.img\n"
1151 "\n"
1152
1153 #. type: verbatim
1154 #: ../cat/virt-filesystems.pod:185
1155 #, fuzzy, no-wrap
1156 #| msgid ""
1157 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1158 #| "\n"
1159 msgid ""
1160 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1161 "\n"
1162 msgstr ""
1163 " guestfish --format=raw -a disk.img --format -a another.img\n"
1164 "\n"
1165
1166 #. type: =item
1167 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1168 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1169 #: ../tools/virt-list-partitions.pl:109
1170 msgid "B<-h>"
1171 msgstr "B<-h>"
1172
1173 #. type: =item
1174 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1175 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1176 #, fuzzy
1177 #| msgid "B<-h> | B<--human-readable>"
1178 msgid "B<--human-readable>"
1179 msgstr "B<-h> | B<--human-readable>"
1180
1181 #. type: textblock
1182 #: ../cat/virt-filesystems.pod:198
1183 msgid "In I<--long> mode, display sizes in human-readable format."
1184 msgstr ""
1185
1186 #. type: =item
1187 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1188 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1189 msgid "B<-l>"
1190 msgstr ""
1191
1192 #. type: =item
1193 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1194 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1195 #, fuzzy
1196 #| msgid "B<--ro>"
1197 msgid "B<--long>"
1198 msgstr "B<--ro>"
1199
1200 #. type: textblock
1201 #: ../cat/virt-filesystems.pod:209
1202 msgid "Display extra columns of data (\"long format\")."
1203 msgstr ""
1204
1205 #. type: textblock
1206 #: ../cat/virt-filesystems.pod:211
1207 msgid "A title row is added unless you also specify I<--no-title>."
1208 msgstr ""
1209
1210 #. type: textblock
1211 #: ../cat/virt-filesystems.pod:213
1212 msgid ""
1213 "The extra columns displayed depend on what output you select, and the "
1214 "ordering of columns may change in future versions.  Use the title row, I<--"
1215 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1216 "programs."
1217 msgstr ""
1218
1219 #. type: textblock
1220 #: ../cat/virt-filesystems.pod:218
1221 msgid ""
1222 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1223 "default is to show raw numbers of I<bytes>."
1224 msgstr ""
1225
1226 #. type: textblock
1227 #: ../cat/virt-filesystems.pod:221
1228 msgid "Use I<--uuid> to display UUIDs too."
1229 msgstr ""
1230
1231 #. type: =item
1232 #: ../cat/virt-filesystems.pod:223
1233 #, fuzzy
1234 #| msgid "B<--live>"
1235 msgid "B<--lvs>"
1236 msgstr "B<--live>"
1237
1238 #. type: =item
1239 #: ../cat/virt-filesystems.pod:225
1240 #, fuzzy
1241 #| msgid "B<--live>"
1242 msgid "B<--logvols>"
1243 msgstr "B<--live>"
1244
1245 #. type: =item
1246 #: ../cat/virt-filesystems.pod:227
1247 #, fuzzy
1248 #| msgid "B<--live>"
1249 msgid "B<--logical-volumes>"
1250 msgstr "B<--live>"
1251
1252 #. type: textblock
1253 #: ../cat/virt-filesystems.pod:229
1254 msgid ""
1255 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1256 "of whether the LVs contain filesystems."
1257 msgstr ""
1258
1259 #. type: =item
1260 #: ../cat/virt-filesystems.pod:232
1261 #, fuzzy
1262 #| msgid "B<--listen>"
1263 msgid "B<--no-title>"
1264 msgstr "B<--listen>"
1265
1266 #. type: textblock
1267 #: ../cat/virt-filesystems.pod:234
1268 msgid "In I<--long> mode, don't add a title row."
1269 msgstr ""
1270
1271 #. type: textblock
1272 #: ../cat/virt-filesystems.pod:236
1273 msgid ""
1274 "Note that the order of the columns is not fixed, and may change in future "
1275 "versions of virt-filesystems, so using this option may give you unexpected "
1276 "surprises."
1277 msgstr ""
1278
1279 #. type: =item
1280 #: ../cat/virt-filesystems.pod:240
1281 #, fuzzy
1282 #| msgid "B<--partition>"
1283 msgid "B<--parts>"
1284 msgstr "B<--partition>"
1285
1286 #. type: =item
1287 #: ../cat/virt-filesystems.pod:242
1288 #, fuzzy
1289 #| msgid "B<--partition>"
1290 msgid "B<--partitions>"
1291 msgstr "B<--partition>"
1292
1293 #. type: textblock
1294 #: ../cat/virt-filesystems.pod:244
1295 msgid ""
1296 "Display partitions.  In this mode, these are displayed irrespective of "
1297 "whether the partitions contain filesystems."
1298 msgstr ""
1299
1300 #. type: =item
1301 #: ../cat/virt-filesystems.pod:247
1302 #, fuzzy
1303 #| msgid "B<--csh>"
1304 msgid "B<--pvs>"
1305 msgstr "B<--csh>"
1306
1307 #. type: =item
1308 #: ../cat/virt-filesystems.pod:249
1309 #, fuzzy
1310 #| msgid "B<--verbose>"
1311 msgid "B<--physvols>"
1312 msgstr "B<--verbose>"
1313
1314 #. type: =item
1315 #: ../cat/virt-filesystems.pod:251
1316 msgid "B<--physical-volumes>"
1317 msgstr ""
1318
1319 #. type: textblock
1320 #: ../cat/virt-filesystems.pod:253
1321 msgid "Display LVM physical volumes."
1322 msgstr ""
1323
1324 #. type: =item
1325 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1326 #, fuzzy
1327 #| msgid "B<--live>"
1328 msgid "B<--uuid>"
1329 msgstr "B<--live>"
1330
1331 #. type: =item
1332 #: ../cat/virt-filesystems.pod:257
1333 #, fuzzy
1334 #| msgid "B<--csh>"
1335 msgid "B<--uuids>"
1336 msgstr "B<--csh>"
1337
1338 #. type: textblock
1339 #: ../cat/virt-filesystems.pod:259
1340 msgid "In I<--long> mode, display UUIDs as well."
1341 msgstr ""
1342
1343 #. type: =item
1344 #: ../cat/virt-filesystems.pod:273
1345 #, fuzzy
1346 #| msgid "B<--csh>"
1347 msgid "B<--vgs>"
1348 msgstr "B<--csh>"
1349
1350 #. type: =item
1351 #: ../cat/virt-filesystems.pod:275
1352 #, fuzzy
1353 #| msgid "B<--verbose>"
1354 msgid "B<--volgroups>"
1355 msgstr "B<--verbose>"
1356
1357 #. type: =item
1358 #: ../cat/virt-filesystems.pod:277
1359 #, fuzzy
1360 #| msgid "B<--verbose>"
1361 msgid "B<--volume-groups>"
1362 msgstr "B<--verbose>"
1363
1364 #. type: textblock
1365 #: ../cat/virt-filesystems.pod:279
1366 msgid "Display LVM volume groups."
1367 msgstr ""
1368
1369 #. type: =head1
1370 #: ../cat/virt-filesystems.pod:287
1371 msgid "COLUMNS"
1372 msgstr ""
1373
1374 #. type: textblock
1375 #: ../cat/virt-filesystems.pod:289
1376 msgid ""
1377 "Note that columns in the output are subject to reordering and change in "
1378 "future versions of this tool."
1379 msgstr ""
1380
1381 #. type: =item
1382 #: ../cat/virt-filesystems.pod:294
1383 msgid "B<Name>"
1384 msgstr ""
1385
1386 #. type: textblock
1387 #: ../cat/virt-filesystems.pod:296
1388 msgid "The filesystem, partition, block device or LVM name."
1389 msgstr ""
1390
1391 #. type: textblock
1392 #: ../cat/virt-filesystems.pod:298
1393 msgid ""
1394 "For device and partition names these are displayed as canonical libguestfs "
1395 "names, so that for example C</dev/sda2> is the second partition on the first "
1396 "device."
1397 msgstr ""
1398
1399 #. type: textblock
1400 #: ../cat/virt-filesystems.pod:302
1401 msgid ""
1402 "If the I<--long> option is B<not> specified, then only the name column is "
1403 "shown in the output."
1404 msgstr ""
1405
1406 #. type: =item
1407 #: ../cat/virt-filesystems.pod:305
1408 #, fuzzy
1409 #| msgid "B<-N type>"
1410 msgid "B<Type>"
1411 msgstr "B<-N тип>"
1412
1413 #. type: textblock
1414 #: ../cat/virt-filesystems.pod:307
1415 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1416 msgstr ""
1417
1418 #. type: =item
1419 #: ../cat/virt-filesystems.pod:309
1420 msgid "B<VFS>"
1421 msgstr ""
1422
1423 #. type: textblock
1424 #: ../cat/virt-filesystems.pod:311
1425 msgid ""
1426 "If there is a filesystem, then this column displays the filesystem type if "
1427 "one could be detected, eg. C<ext4>."
1428 msgstr ""
1429
1430 #. type: =item
1431 #: ../cat/virt-filesystems.pod:314
1432 msgid "B<Label>"
1433 msgstr ""
1434
1435 #. type: textblock
1436 #: ../cat/virt-filesystems.pod:316
1437 msgid ""
1438 "If the object has a label (used for identifying and mounting filesystems) "
1439 "then this column contains the label."
1440 msgstr ""
1441
1442 #. type: =item
1443 #: ../cat/virt-filesystems.pod:319
1444 #, fuzzy
1445 #| msgid "B<part_size>"
1446 msgid "B<Size>"
1447 msgstr "B<part_size>"
1448
1449 #. type: textblock
1450 #: ../cat/virt-filesystems.pod:321
1451 msgid ""
1452 "The size of the object in bytes.  If the I<--human> option is used then the "
1453 "size is displayed in a human-readable form."
1454 msgstr ""
1455
1456 #. type: =item
1457 #: ../cat/virt-filesystems.pod:324
1458 msgid "B<Parent>"
1459 msgstr ""
1460
1461 #. type: textblock
1462 #: ../cat/virt-filesystems.pod:326
1463 msgid ""
1464 "The parent column records the parent relationship between objects.  For "
1465 "example, if the object is a partition, then this column contains the name of "
1466 "the containing device.  If the object is a logical volume, then this column "
1467 "is the name of the volume group."
1468 msgstr ""
1469
1470 #. type: =item
1471 #: ../cat/virt-filesystems.pod:331
1472 msgid "B<UUID>"
1473 msgstr ""
1474
1475 #. type: textblock
1476 #: ../cat/virt-filesystems.pod:333
1477 msgid ""
1478 "If the object has a UUID (used for identifying and mounting filesystems and "
1479 "block devices) then this column contains the UUID as a string."
1480 msgstr ""
1481
1482 #. type: textblock
1483 #: ../cat/virt-filesystems.pod:337
1484 msgid "The UUID is only displayed if the I<--uuid> option is given."
1485 msgstr ""
1486
1487 #. type: =head1
1488 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1489 #: ../df/virt-df.pod:191
1490 msgid "NOTE ABOUT CSV FORMAT"
1491 msgstr ""
1492
1493 #. type: textblock
1494 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1495 #: ../df/virt-df.pod:193
1496 msgid ""
1497 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1498 "should be easy to parse, but it is definitely not easy to parse."
1499 msgstr ""
1500
1501 #. type: textblock
1502 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1503 #: ../df/virt-df.pod:196
1504 msgid ""
1505 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1506 "reliably.  This example has two columns:"
1507 msgstr ""
1508
1509 #. type: verbatim
1510 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1511 #: ../df/virt-df.pod:199
1512 #, no-wrap
1513 msgid ""
1514 " \"foo,bar\",baz\n"
1515 "\n"
1516 msgstr ""
1517
1518 #. type: textblock
1519 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1520 #: ../df/virt-df.pod:201
1521 msgid ""
1522 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1523 "reliably.  This example has one row:"
1524 msgstr ""
1525
1526 #. type: verbatim
1527 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1528 #: ../df/virt-df.pod:204
1529 #, no-wrap
1530 msgid ""
1531 " \"foo\n"
1532 " bar\",baz\n"
1533 "\n"
1534 msgstr ""
1535
1536 #. type: textblock
1537 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1538 #: ../df/virt-df.pod:207
1539 msgid ""
1540 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1541 "packaged in major Linux distributions)."
1542 msgstr ""
1543
1544 #. type: textblock
1545 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1546 #: ../df/virt-df.pod:210
1547 msgid ""
1548 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1549 "or Python's built-in csv library)."
1550 msgstr ""
1551
1552 #. type: textblock
1553 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1554 #: ../df/virt-df.pod:213
1555 msgid "Most spreadsheets and databases can import CSV directly."
1556 msgstr ""
1557
1558 #. type: textblock
1559 #: ../cat/virt-filesystems.pod:374
1560 #, fuzzy
1561 #| msgid ""
1562 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1563 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1564 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1565 msgid ""
1566 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1567 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1568 "libguestfs.org/>."
1569 msgstr ""
1570 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1571 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1572 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1573
1574 #. type: textblock
1575 #: ../cat/virt-filesystems.pod:389 ../tools/virt-make-fs.pl:570
1576 #: ../tools/virt-win-reg.pl:778
1577 msgid "Copyright (C) 2010 Red Hat Inc."
1578 msgstr ""
1579
1580 #. type: textblock
1581 #: ../cat/virt-ls.pod:5
1582 msgid "virt-ls - List files in a virtual machine"
1583 msgstr ""
1584
1585 #. type: verbatim
1586 #: ../cat/virt-ls.pod:9
1587 #, no-wrap
1588 msgid ""
1589 " virt-ls [--options] -d domname directory [directory ...]\n"
1590 "\n"
1591 msgstr ""
1592
1593 #. type: verbatim
1594 #: ../cat/virt-ls.pod:11
1595 #, fuzzy, no-wrap
1596 #| msgid ""
1597 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1598 #| "\n"
1599 msgid ""
1600 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1601 "\n"
1602 msgstr ""
1603 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1604 "\n"
1605
1606 #. type: textblock
1607 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1608 msgid "Old style:"
1609 msgstr ""
1610
1611 #. type: verbatim
1612 #: ../cat/virt-ls.pod:15
1613 #, fuzzy, no-wrap
1614 #| msgid ""
1615 #| " virt-list-partitions [--options] domname\n"
1616 #| "\n"
1617 msgid ""
1618 " virt-ls [--options] domname directory\n"
1619 "\n"
1620 msgstr ""
1621 " virt-list-partitions [--параметри] назва_домену\n"
1622 "\n"
1623
1624 #. type: verbatim
1625 #: ../cat/virt-ls.pod:17
1626 #, fuzzy, no-wrap
1627 #| msgid ""
1628 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1629 #| "\n"
1630 msgid ""
1631 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1632 "\n"
1633 msgstr ""
1634 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1635 "\n"
1636
1637 #. type: textblock
1638 #: ../cat/virt-ls.pod:21
1639 msgid ""
1640 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1641 "more from a virtual machine or disk image."
1642 msgstr ""
1643
1644 #. type: textblock
1645 #: ../cat/virt-ls.pod:24
1646 msgid ""
1647 "Multiple directory names can be given, in which case the output from each is "
1648 "concatenated."
1649 msgstr ""
1650
1651 #. type: textblock
1652 #: ../cat/virt-ls.pod:27
1653 msgid ""
1654 "To list directories from a libvirt guest use the I<-d> option to specify the "
1655 "name of the guest.  For a disk image, use the I<-a> option."
1656 msgstr ""
1657
1658 #. type: textblock
1659 #: ../cat/virt-ls.pod:31
1660 msgid ""
1661 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1662 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1663 "(3)> API."
1664 msgstr ""
1665
1666 #. type: textblock
1667 #: ../cat/virt-ls.pod:37
1668 msgid "Get a list of all files and directories in a virtual machine:"
1669 msgstr ""
1670
1671 #. type: verbatim
1672 #: ../cat/virt-ls.pod:39
1673 #, fuzzy, no-wrap
1674 #| msgid ""
1675 #| " guestfish --ro -d myguest -i\n"
1676 #| "\n"
1677 msgid ""
1678 " virt-ls -R -d guest /\n"
1679 "\n"
1680 msgstr ""
1681 " guestfish --ro -d myguest -i\n"
1682 "\n"
1683
1684 #. type: textblock
1685 #: ../cat/virt-ls.pod:41
1686 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1687 msgstr ""
1688
1689 #. type: verbatim
1690 #: ../cat/virt-ls.pod:43
1691 #, no-wrap
1692 msgid ""
1693 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1694 "\n"
1695 msgstr ""
1696
1697 #. type: textblock
1698 #: ../cat/virt-ls.pod:45
1699 msgid "List all public-writable directories in a Linux virtual machine:"
1700 msgstr ""
1701
1702 #. type: verbatim
1703 #: ../cat/virt-ls.pod:47
1704 #, no-wrap
1705 msgid ""
1706 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1707 "\n"
1708 msgstr ""
1709
1710 #. type: textblock
1711 #: ../cat/virt-ls.pod:49
1712 msgid "List all Unix domain sockets in a Linux virtual machine:"
1713 msgstr ""
1714
1715 #. type: verbatim
1716 #: ../cat/virt-ls.pod:51
1717 #, no-wrap
1718 msgid ""
1719 " virt-ls -lR -d guest / | grep '^s'\n"
1720 "\n"
1721 msgstr ""
1722
1723 #. type: textblock
1724 #: ../cat/virt-ls.pod:53
1725 msgid "List all regular files with filenames ending in '.png':"
1726 msgstr ""
1727
1728 #. type: verbatim
1729 #: ../cat/virt-ls.pod:55
1730 #, no-wrap
1731 msgid ""
1732 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1733 "\n"
1734 msgstr ""
1735
1736 #. type: textblock
1737 #: ../cat/virt-ls.pod:57
1738 msgid "To display files larger than 10MB in home directories:"
1739 msgstr ""
1740
1741 #. type: verbatim
1742 #: ../cat/virt-ls.pod:59
1743 #, no-wrap
1744 msgid ""
1745 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1746 "\n"
1747 msgstr ""
1748
1749 #. type: textblock
1750 #: ../cat/virt-ls.pod:61
1751 msgid "Find everything modified in the last 7 days:"
1752 msgstr ""
1753
1754 #. type: verbatim
1755 #: ../cat/virt-ls.pod:63
1756 #, no-wrap
1757 msgid ""
1758 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1759 "\n"
1760 msgstr ""
1761
1762 #. type: textblock
1763 #: ../cat/virt-ls.pod:65
1764 msgid "Find regular files modified in the last 24 hours:"
1765 msgstr ""
1766
1767 #. type: verbatim
1768 #: ../cat/virt-ls.pod:67
1769 #, no-wrap
1770 msgid ""
1771 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1772 "\n"
1773 msgstr ""
1774
1775 #. type: =head2
1776 #: ../cat/virt-ls.pod:69
1777 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1778 msgstr ""
1779
1780 #. type: textblock
1781 #: ../cat/virt-ls.pod:71
1782 msgid ""
1783 "Find the differences between files in a guest and an earlier snapshot of the "
1784 "same guest."
1785 msgstr ""
1786
1787 #. type: verbatim
1788 #: ../cat/virt-ls.pod:74
1789 #, no-wrap
1790 msgid ""
1791 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1792 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1793 " diff -u old new | less\n"
1794 "\n"
1795 msgstr ""
1796
1797 #. type: textblock
1798 #: ../cat/virt-ls.pod:78
1799 msgid ""
1800 "The commands above won't find files where the content has changed but the "
1801 "metadata (eg. file size and modification date) is the same.  To do that, you "
1802 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1803 "checksum> can be quite slow since it has to read and compute a checksum of "
1804 "every regular file in the virtual machine."
1805 msgstr ""
1806
1807 #. type: =head1
1808 #: ../cat/virt-ls.pod:84
1809 msgid "OUTPUT MODES"
1810 msgstr ""
1811
1812 #. type: textblock
1813 #: ../cat/virt-ls.pod:86
1814 msgid ""
1815 "C<virt-ls> has four output modes, controlled by different combinations of "
1816 "the I<-l> and I<-R> options."
1817 msgstr ""
1818
1819 #. type: =head2
1820 #: ../cat/virt-ls.pod:89
1821 msgid "SIMPLE LISTING"
1822 msgstr ""
1823
1824 #. type: textblock
1825 #: ../cat/virt-ls.pod:91
1826 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1827 msgstr ""
1828
1829 #. type: verbatim
1830 #: ../cat/virt-ls.pod:93
1831 #, no-wrap
1832 msgid ""
1833 " $ virt-ls -d guest /\n"
1834 " bin\n"
1835 " boot\n"
1836 " [etc.]\n"
1837 "\n"
1838 msgstr ""
1839
1840 #. type: =head2
1841 #: ../cat/virt-ls.pod:98
1842 #, fuzzy
1843 #| msgid "MOUNTING"
1844 msgid "LONG LISTING"
1845 msgstr "МОНТУВАННЯ"
1846
1847 #. type: textblock
1848 #: ../cat/virt-ls.pod:100
1849 msgid ""
1850 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1851 "(more specifically, like the C<guestfs_ll> function)."
1852 msgstr ""
1853
1854 #. type: verbatim
1855 #: ../cat/virt-ls.pod:103
1856 #, no-wrap
1857 msgid ""
1858 " $ virt-ls -l -d guest /\n"
1859 " total 204\n"
1860 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1861 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1862 " [etc.]\n"
1863 "\n"
1864 msgstr ""
1865
1866 #. type: textblock
1867 #: ../cat/virt-ls.pod:109
1868 msgid ""
1869 "Note that while this is useful for displaying a directory, do not try "
1870 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1871 "instead."
1872 msgstr ""
1873
1874 #. type: =head2
1875 #: ../cat/virt-ls.pod:113
1876 msgid "RECURSIVE LISTING"
1877 msgstr ""
1878
1879 #. type: textblock
1880 #: ../cat/virt-ls.pod:115
1881 msgid ""
1882 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1883 "and directories recursively:"
1884 msgstr ""
1885
1886 #. type: verbatim
1887 #: ../cat/virt-ls.pod:118
1888 #, no-wrap
1889 msgid ""
1890 " $ virt-ls -R -d guest /tmp\n"
1891 " foo\n"
1892 " foo/bar\n"
1893 " [etc.]\n"
1894 "\n"
1895 msgstr ""
1896
1897 #. type: textblock
1898 #: ../cat/virt-ls.pod:123
1899 msgid ""
1900 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1901 "converts C<\\0> characters to C<\\n>."
1902 msgstr ""
1903
1904 #. type: =head2
1905 #: ../cat/virt-ls.pod:126
1906 msgid "RECURSIVE LONG LISTING"
1907 msgstr ""
1908
1909 #. type: textblock
1910 #: ../cat/virt-ls.pod:128
1911 msgid ""
1912 "Using I<-lR> options together changes the output to display directories "
1913 "recursively, with file stats, and optionally other features such as "
1914 "checksums and extended attributes."
1915 msgstr ""
1916
1917 #. type: textblock
1918 #: ../cat/virt-ls.pod:132
1919 msgid ""
1920 "Most of the interesting features of C<virt-ls> are only available when using "
1921 "I<-lR> mode."
1922 msgstr ""
1923
1924 #. type: textblock
1925 #: ../cat/virt-ls.pod:135
1926 msgid ""
1927 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1928 "you cannot use the output in another program (because filenames can contain "
1929 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1930 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1931 "on you by creating filenames with embedded newline characters.  To B<safely> "
1932 "parse the output in another program, use the I<--csv> (Comma-Separated "
1933 "Values) option."
1934 msgstr ""
1935
1936 #. type: textblock
1937 #: ../cat/virt-ls.pod:143
1938 msgid ""
1939 "Note that this output format is completely unrelated to the C<ls -lR> "
1940 "command."
1941 msgstr ""
1942
1943 #. type: verbatim
1944 #: ../cat/virt-ls.pod:146
1945 #, no-wrap
1946 msgid ""
1947 " $ virt-ls -lR -d guest /bin\n"
1948 " d 0555       4096 /bin\n"
1949 " - 0755        123 /bin/alsaunmute\n"
1950 " - 0755      28328 /bin/arch\n"
1951 " l 0777          4 /bin/awk -> gawk\n"
1952 " - 0755      27216 /bin/basename\n"
1953 " - 0755     943360 /bin/bash\n"
1954 " [etc.]\n"
1955 "\n"
1956 msgstr ""
1957
1958 #. type: textblock
1959 #: ../cat/virt-ls.pod:155
1960 msgid "These basic fields are always shown:"
1961 msgstr ""
1962
1963 #. type: =item
1964 #: ../cat/virt-ls.pod:159
1965 #, fuzzy
1966 #| msgid "vfs-type"
1967 msgid "type"
1968 msgstr "vfs-type"
1969
1970 #. type: textblock
1971 #: ../cat/virt-ls.pod:161
1972 msgid ""
1973 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1974 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1975 "link), C<s> (socket) or C<u> (unknown)."
1976 msgstr ""
1977
1978 #. type: =item
1979 #: ../cat/virt-ls.pod:171
1980 #, fuzzy
1981 #| msgid "version"
1982 msgid "permissions"
1983 msgstr "version"
1984
1985 #. type: textblock
1986 #: ../cat/virt-ls.pod:173
1987 msgid "The Unix permissions, displayed as a 4 digit octal number."
1988 msgstr ""
1989
1990 #. type: =item
1991 #: ../cat/virt-ls.pod:175
1992 #, fuzzy
1993 #| msgid "filesize"
1994 msgid "size"
1995 msgstr "filesize"
1996
1997 #. type: textblock
1998 #: ../cat/virt-ls.pod:177
1999 msgid ""
2000 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2001 "readable> option is given, in which case this is shown as a human-readable "
2002 "number."
2003 msgstr ""
2004
2005 #. type: =head2
2006 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4188
2007 msgid "path"
2008 msgstr ""
2009
2010 #. type: textblock
2011 #: ../cat/virt-ls.pod:183
2012 msgid "The full path of the file or directory."
2013 msgstr ""
2014
2015 #. type: =item
2016 #: ../cat/virt-ls.pod:185
2017 #, fuzzy
2018 #| msgid "readlink"
2019 msgid "link"
2020 msgstr "readlink"
2021
2022 #. type: textblock
2023 #: ../cat/virt-ls.pod:187
2024 msgid "For symbolic links only, the link target."
2025 msgstr ""
2026
2027 #. type: textblock
2028 #: ../cat/virt-ls.pod:191
2029 msgid ""
2030 "In I<-lR> mode, additional command line options enable the display of more "
2031 "fields."
2032 msgstr ""
2033
2034 #. type: textblock
2035 #: ../cat/virt-ls.pod:194
2036 msgid ""
2037 "With the I<--uids> flag, these additional fields are displayed before the "
2038 "path:"
2039 msgstr ""
2040
2041 #. type: =item
2042 #: ../cat/virt-ls.pod:199
2043 #, fuzzy
2044 #| msgid "lvuuid"
2045 msgid "uid"
2046 msgstr "lvuuid"
2047
2048 #. type: =item
2049 #: ../cat/virt-ls.pod:201
2050 #, fuzzy
2051 #| msgid "vguuid"
2052 msgid "gid"
2053 msgstr "vguuid"
2054
2055 #. type: textblock
2056 #: ../cat/virt-ls.pod:203
2057 msgid ""
2058 "The UID and GID of the owner of the file (displayed numerically).  Note "
2059 "these only make sense in the context of a Unix-like guest."
2060 msgstr ""
2061
2062 #. type: textblock
2063 #: ../cat/virt-ls.pod:208
2064 msgid "With the I<--times> flag, these additional fields are displayed:"
2065 msgstr ""
2066
2067 #. type: =item
2068 #: ../cat/virt-ls.pod:212
2069 #, fuzzy
2070 #| msgid "time"
2071 msgid "atime"
2072 msgstr "time"
2073
2074 #. type: textblock
2075 #: ../cat/virt-ls.pod:214
2076 msgid "The time of last access."
2077 msgstr ""
2078
2079 #. type: =item
2080 #: ../cat/virt-ls.pod:216
2081 #, fuzzy
2082 #| msgid "time"
2083 msgid "mtime"
2084 msgstr "time"
2085
2086 #. type: textblock
2087 #: ../cat/virt-ls.pod:218
2088 msgid "The time of last modification."
2089 msgstr ""
2090
2091 #. type: =item
2092 #: ../cat/virt-ls.pod:220
2093 #, fuzzy
2094 #| msgid "time"
2095 msgid "ctime"
2096 msgstr "time"
2097
2098 #. type: textblock
2099 #: ../cat/virt-ls.pod:222
2100 msgid "The time of last status change."
2101 msgstr ""
2102
2103 #. type: textblock
2104 #: ../cat/virt-ls.pod:226
2105 msgid ""
2106 "The time fields are displayed as string dates and times, unless one of the "
2107 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2108 msgstr ""
2109
2110 #. type: textblock
2111 #: ../cat/virt-ls.pod:229
2112 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2113 msgstr ""
2114
2115 #. type: =item
2116 #: ../cat/virt-ls.pod:233
2117 #, fuzzy
2118 #| msgid "zero-device"
2119 msgid "device"
2120 msgstr "zero-device"
2121
2122 #. type: textblock
2123 #: ../cat/virt-ls.pod:235
2124 msgid ""
2125 "The device containing the file (displayed as major:minor).  This may not "
2126 "match devices as known to the guest."
2127 msgstr ""
2128
2129 #. type: =item
2130 #: ../cat/virt-ls.pod:238
2131 msgid "inode"
2132 msgstr ""
2133
2134 #. type: textblock
2135 #: ../cat/virt-ls.pod:240
2136 msgid "The inode number."
2137 msgstr ""
2138
2139 #. type: =item
2140 #: ../cat/virt-ls.pod:242
2141 #, fuzzy
2142 #| msgid "readlink"
2143 msgid "nlink"
2144 msgstr "readlink"
2145
2146 #. type: textblock
2147 #: ../cat/virt-ls.pod:244
2148 msgid "The number of hard links."
2149 msgstr ""
2150
2151 #. type: =item
2152 #: ../cat/virt-ls.pod:246
2153 msgid "rdev"
2154 msgstr ""
2155
2156 #. type: textblock
2157 #: ../cat/virt-ls.pod:248
2158 msgid ""
2159 "For block and char special files, the device (displayed as major:minor)."
2160 msgstr ""
2161
2162 #. type: =item
2163 #: ../cat/virt-ls.pod:251
2164 #, fuzzy
2165 #| msgid "C<blocksize>"
2166 msgid "blocks"
2167 msgstr "C<blocksize>"
2168
2169 #. type: textblock
2170 #: ../cat/virt-ls.pod:253
2171 msgid "The number of 512 byte blocks allocated to the file."
2172 msgstr ""
2173
2174 #. type: textblock
2175 #: ../cat/virt-ls.pod:257
2176 msgid ""
2177 "With the I<--checksum> flag, the checksum of the file contents is shown "
2178 "(only for regular files).  Computing file checksums can take a considerable "
2179 "amount of time."
2180 msgstr ""
2181
2182 #. type: =item
2183 #: ../cat/virt-ls.pod:280
2184 #, fuzzy
2185 #| msgid "checksum"
2186 msgid "B<--checksum>"
2187 msgstr "checksum"
2188
2189 #. type: =item
2190 #: ../cat/virt-ls.pod:282
2191 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2192 msgstr ""
2193
2194 #. type: textblock
2195 #: ../cat/virt-ls.pod:284
2196 msgid ""
2197 "Display checksum over file contents for regular files.  With no argument, "
2198 "this defaults to using I<md5>.  Using an argument, you can select the "
2199 "checksum type to use."
2200 msgstr ""
2201
2202 #. type: textblock
2203 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2204 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2205 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2206 msgid ""
2207 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2208 "LISTING> above."
2209 msgstr ""
2210
2211 #. type: textblock
2212 #: ../cat/virt-ls.pod:316
2213 msgid ""
2214 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2215 "so you cannot see what you are typing.  If you are not worried about Tempest "
2216 "attacks and there is no one else in the room you can specify this flag to "
2217 "see what you are typing."
2218 msgstr ""
2219
2220 #. type: =item
2221 #: ../cat/virt-ls.pod:321
2222 #, fuzzy
2223 #| msgid "B<--no-dest-paths>"
2224 msgid "B<--extra-stats>"
2225 msgstr "B<--no-dest-paths>"
2226
2227 #. type: textblock
2228 #: ../cat/virt-ls.pod:323
2229 msgid "Display extra stats."
2230 msgstr ""
2231
2232 #. type: verbatim
2233 #: ../cat/virt-ls.pod:339
2234 #, fuzzy, no-wrap
2235 #| msgid ""
2236 #| " guestfish --format=raw -a disk.img\n"
2237 #| "\n"
2238 msgid ""
2239 " virt-ls --format=raw -a disk.img /dir\n"
2240 "\n"
2241 msgstr ""
2242 " guestfish --format=raw -a disk.img\n"
2243 "\n"
2244
2245 #. type: verbatim
2246 #: ../cat/virt-ls.pod:343
2247 #, fuzzy, no-wrap
2248 #| msgid ""
2249 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2250 #| "\n"
2251 msgid ""
2252 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2253 "\n"
2254 msgstr ""
2255 " guestfish --format=raw -a disk.img --format -a another.img\n"
2256 "\n"
2257
2258 #. type: textblock
2259 #: ../cat/virt-ls.pod:356
2260 msgid "Display file sizes in human-readable format."
2261 msgstr ""
2262
2263 #. type: =item
2264 #: ../cat/virt-ls.pod:370
2265 msgid "B<-R>"
2266 msgstr ""
2267
2268 #. type: =item
2269 #: ../cat/virt-ls.pod:372
2270 #, fuzzy
2271 #| msgid "B<--live>"
2272 msgid "B<--recursive>"
2273 msgstr "B<--live>"
2274
2275 #. type: textblock
2276 #: ../cat/virt-ls.pod:374
2277 msgid ""
2278 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2279 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2280 "LISTING>."
2281 msgstr ""
2282
2283 #. type: textblock
2284 #: ../cat/virt-ls.pod:378
2285 msgid ""
2286 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2287 "LONG LISTING>."
2288 msgstr ""
2289
2290 #. type: textblock
2291 #: ../cat/virt-ls.pod:381
2292 msgid ""
2293 "C<virt-ls -R> produces a recursive list of files starting at the named "
2294 "directory.  See L</RECURSIVE LISTING>."
2295 msgstr ""
2296
2297 #. type: textblock
2298 #: ../cat/virt-ls.pod:384
2299 msgid ""
2300 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2301 "parsed.  See L</RECURSIVE LONG LISTING>."
2302 msgstr ""
2303
2304 #. type: =item
2305 #: ../cat/virt-ls.pod:387
2306 #, fuzzy
2307 #| msgid "B<--live>"
2308 msgid "B<--times>"
2309 msgstr "B<--live>"
2310
2311 #. type: textblock
2312 #: ../cat/virt-ls.pod:389
2313 msgid "Display time fields."
2314 msgstr ""
2315
2316 #. type: =item
2317 #: ../cat/virt-ls.pod:394
2318 #, fuzzy
2319 #| msgid "B<--echo-keys>"
2320 msgid "B<--time-days>"
2321 msgstr "B<--echo-keys>"
2322
2323 #. type: textblock
2324 #: ../cat/virt-ls.pod:396
2325 msgid "Display time fields as days before now (negative if in the future)."
2326 msgstr ""
2327
2328 #. type: textblock
2329 #: ../cat/virt-ls.pod:398
2330 msgid ""
2331 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2332 "of the file is between 0 and 86399 seconds."
2333 msgstr ""
2334
2335 #. type: =item
2336 #: ../cat/virt-ls.pod:404
2337 #, fuzzy
2338 #| msgid "B<--live>"
2339 msgid "B<--time-relative>"
2340 msgstr "B<--live>"
2341
2342 #. type: textblock
2343 #: ../cat/virt-ls.pod:406
2344 msgid "Display time fields as seconds before now (negative if in the future)."
2345 msgstr ""
2346
2347 #. type: =item
2348 #: ../cat/virt-ls.pod:411
2349 #, fuzzy
2350 #| msgid "I<--timeout N>"
2351 msgid "B<--time-t>"
2352 msgstr "I<--timeout N>"
2353
2354 #. type: textblock
2355 #: ../cat/virt-ls.pod:413
2356 msgid "Display time fields as seconds since the Unix epoch."
2357 msgstr ""
2358
2359 #. type: =item
2360 #: ../cat/virt-ls.pod:418
2361 #, fuzzy
2362 #| msgid "B<--csh>"
2363 msgid "B<--uids>"
2364 msgstr "B<--csh>"
2365
2366 #. type: textblock
2367 #: ../cat/virt-ls.pod:420
2368 msgid "Display UID and GID fields."
2369 msgstr ""
2370
2371 #. type: textblock
2372 #: ../cat/virt-ls.pod:445
2373 msgid "Previous versions of virt-ls allowed you to write either:"
2374 msgstr ""
2375
2376 #. type: verbatim
2377 #: ../cat/virt-ls.pod:447
2378 #, fuzzy, no-wrap
2379 #| msgid ""
2380 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2381 #| "\n"
2382 msgid ""
2383 " virt-ls disk.img [disk.img ...] /dir\n"
2384 "\n"
2385 msgstr ""
2386 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2387 "\n"
2388
2389 #. type: verbatim
2390 #: ../cat/virt-ls.pod:451
2391 #, fuzzy, no-wrap
2392 #| msgid ""
2393 #| " inspect-get-hostname root\n"
2394 #| "\n"
2395 msgid ""
2396 " virt-ls guestname /dir\n"
2397 "\n"
2398 msgstr ""
2399 " inspect-get-hostname корінь\n"
2400 "\n"
2401
2402 #. type: textblock
2403 #: ../cat/virt-ls.pod:492
2404 #, fuzzy
2405 #| msgid ""
2406 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2407 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2408 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2409 msgid ""
2410 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2411 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2412 "L<http://libguestfs.org/>."
2413 msgstr ""
2414 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2415 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2416 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2417
2418 #. type: textblock
2419 #: ../cat/virt-ls.pod:508 ../df/virt-df.pod:236 ../edit/virt-edit.pod:369
2420 #: ../rescue/virt-rescue.pod:298
2421 #, fuzzy
2422 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2423 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2424 msgstr "© Red Hat Inc., 2009–2010"
2425
2426 #. type: textblock
2427 #: ../df/virt-df.pod:5
2428 msgid "virt-df - Display free space on virtual filesystems"
2429 msgstr ""
2430
2431 #. type: verbatim
2432 #: ../df/virt-df.pod:9
2433 #, fuzzy, no-wrap
2434 #| msgid ""
2435 #| " virt-list-partitions [--options] domname\n"
2436 #| "\n"
2437 msgid ""
2438 " virt-df [--options]\n"
2439 "\n"
2440 msgstr ""
2441 " virt-list-partitions [--параметри] назва_домену\n"
2442 "\n"
2443
2444 #. type: verbatim
2445 #: ../df/virt-df.pod:11
2446 #, fuzzy, no-wrap
2447 #| msgid ""
2448 #| " virt-list-partitions [--options] domname\n"
2449 #| "\n"
2450 msgid ""
2451 " virt-df [--options] -d domname\n"
2452 "\n"
2453 msgstr ""
2454 " virt-list-partitions [--параметри] назва_домену\n"
2455 "\n"
2456
2457 #. type: verbatim
2458 #: ../df/virt-df.pod:13
2459 #, fuzzy, no-wrap
2460 #| msgid ""
2461 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2462 #| "\n"
2463 msgid ""
2464 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2465 "\n"
2466 msgstr ""
2467 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2468 "\n"
2469
2470 #. type: verbatim
2471 #: ../df/virt-df.pod:17
2472 #, fuzzy, no-wrap
2473 #| msgid ""
2474 #| " virt-list-partitions [--options] domname\n"
2475 #| "\n"
2476 msgid ""
2477 " virt-df [--options] domname\n"
2478 "\n"
2479 msgstr ""
2480 " virt-list-partitions [--параметри] назва_домену\n"
2481 "\n"
2482
2483 #. type: verbatim
2484 #: ../df/virt-df.pod:19
2485 #, fuzzy, no-wrap
2486 #| msgid ""
2487 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2488 #| "\n"
2489 msgid ""
2490 " virt-df [--options] disk.img [disk.img ...]\n"
2491 "\n"
2492 msgstr ""
2493 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2494 "\n"
2495
2496 #. type: textblock
2497 #: ../df/virt-df.pod:23
2498 msgid ""
2499 "C<virt-df> is a command line tool to display free space on virtual machine "
2500 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2501 "allocated to a virtual machine, but can look inside disk images to see how "
2502 "much space is really being used."
2503 msgstr ""
2504
2505 #. type: textblock
2506 #: ../df/virt-df.pod:28
2507 msgid ""
2508 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2509 "to get a list of all active and inactive guests, and performs a C<df>-type "
2510 "operation on each one in turn, printing out the results."
2511 msgstr ""
2512
2513 #. type: textblock
2514 #: ../df/virt-df.pod:32
2515 msgid ""
2516 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2517 "type operation on either the single named libvirt domain, or on the disk "
2518 "image(s) listed on the command line (which must all belong to a single VM).  "
2519 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2520 "guest>.  If you want to run on multiple guests, then you have to invoke "
2521 "C<virt-df> multiple times."
2522 msgstr ""
2523
2524 #. type: textblock
2525 #: ../df/virt-df.pod:39
2526 msgid ""
2527 "Use the I<--csv> option to get a format which can be easily parsed by other "
2528 "programs.  Other options are similar to the standard L<df(1)> command."
2529 msgstr ""
2530
2531 #. type: textblock
2532 #: ../df/virt-df.pod:45
2533 msgid ""
2534 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2535 "output human-readable:"
2536 msgstr ""
2537
2538 #. type: verbatim
2539 #: ../df/virt-df.pod:48
2540 #, no-wrap
2541 msgid ""
2542 " # virt-df -d F14x64 -h\n"
2543 " Filesystem                       Size     Used  Available  Use%\n"
2544 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2545 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2546 "\n"
2547 msgstr ""
2548
2549 #. type: textblock
2550 #: ../df/virt-df.pod:53
2551 msgid "Show disk usage for a disk image file called C<test.img>:"
2552 msgstr ""
2553
2554 #. type: verbatim
2555 #: ../df/virt-df.pod:55
2556 #, no-wrap
2557 msgid ""
2558 " $ virt-df -a test1.img\n"
2559 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2560 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2561 "\n"
2562 msgstr ""
2563
2564 #. type: verbatim
2565 #: ../df/virt-df.pod:112
2566 #, fuzzy, no-wrap
2567 #| msgid ""
2568 #| " guestfish --format=raw -a disk.img\n"
2569 #| "\n"
2570 msgid ""
2571 " virt-df --format=raw -a disk.img\n"
2572 "\n"
2573 msgstr ""
2574 " guestfish --format=raw -a disk.img\n"
2575 "\n"
2576
2577 #. type: verbatim
2578 #: ../df/virt-df.pod:116
2579 #, fuzzy, no-wrap
2580 #| msgid ""
2581 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2582 #| "\n"
2583 msgid ""
2584 " virt-df --format=raw -a disk.img --format -a another.img\n"
2585 "\n"
2586 msgstr ""
2587 " guestfish --format=raw -a disk.img --format -a another.img\n"
2588 "\n"
2589
2590 #. type: textblock
2591 #: ../df/virt-df.pod:129
2592 msgid "Print sizes in human-readable format."
2593 msgstr ""
2594
2595 #. type: textblock
2596 #: ../df/virt-df.pod:131
2597 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2598 msgstr ""
2599
2600 #. type: =item
2601 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2602 msgid "B<-i>"
2603 msgstr "B<-i>"
2604
2605 #. type: =item
2606 #: ../df/virt-df.pod:135
2607 #, fuzzy
2608 #| msgid "B<--live>"
2609 msgid "B<--inodes>"
2610 msgstr "B<--live>"
2611
2612 #. type: textblock
2613 #: ../df/virt-df.pod:137
2614 msgid "Print inodes instead of blocks."
2615 msgstr ""
2616
2617 #. type: =item
2618 #: ../df/virt-df.pod:139
2619 #, fuzzy
2620 #| msgid "B<--merge>"
2621 msgid "B<--one-per-guest>"
2622 msgstr "B<--merge>"
2623
2624 #. type: textblock
2625 #: ../df/virt-df.pod:141
2626 msgid ""
2627 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2628 "disks from several guests to a single libguestfs appliance."
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../df/virt-df.pod:144
2633 msgid "You might use this option in the following circumstances:"
2634 msgstr ""
2635
2636 #. type: =item
2637 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2638 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2639 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2640 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2641 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2642 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2643 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2644 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2645 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2646 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2647 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2648 #: ../fish/guestfish-actions.pod:1104 ../fish/guestfish-actions.pod:1108
2649 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
2650 #: ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128
2651 #: ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142
2652 #: ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150
2653 #: ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244
2654 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254
2655 #: ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300
2656 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1938
2657 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1952
2658 #: ../fish/guestfish-actions.pod:1959 ../fish/guestfish-actions.pod:1966
2659 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
2660 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
2661 #: ../inspector/virt-inspector.pod:384 ../inspector/virt-inspector.pod:388
2662 #: ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286
2663 #: ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301
2664 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
2665 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
2666 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
2667 #: ../src/guestfs-actions.pod:1667 ../src/guestfs-actions.pod:1671
2668 #: ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1679
2669 #: ../src/guestfs-actions.pod:1687 ../src/guestfs-actions.pod:1691
2670 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1705
2671 #: ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:1713
2672 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1855
2673 #: ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1865
2674 #: ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1930
2675 #: ../src/guestfs-actions.pod:1935 ../src/guestfs-actions.pod:2864
2676 #: ../src/guestfs-actions.pod:2870 ../src/guestfs-actions.pod:2878
2677 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:2892
2678 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2679 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2680 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
2681 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
2682 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
2683 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
2684 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
2685 #: ../src/guestfs.pod:1644 ../src/guestfs.pod:1649 ../src/guestfs.pod:1653
2686 #: ../src/guestfs.pod:1755 ../src/guestfs.pod:1760 ../src/guestfs.pod:1764
2687 #: ../src/guestfs.pod:1774 ../src/guestfs.pod:2048 ../src/guestfs.pod:2053
2688 #: ../src/guestfs.pod:2059 ../src/guestfs.pod:2067 ../src/guestfs.pod:2421
2689 #: ../src/guestfs.pod:2427 ../src/guestfs.pod:2432 ../src/guestfs.pod:2438
2690 #: ../src/guestfs.pod:2819 ../src/guestfs.pod:2824 ../src/guestfs.pod:2828
2691 #: ../src/guestfs.pod:2832 ../src/guestfs.pod:2836 ../src/guestfs.pod:2850
2692 #: ../src/guestfs.pod:2855 ../src/guestfs.pod:3080 ../src/guestfs.pod:3084
2693 #: ../src/guestfs.pod:3088 ../src/guestfs.pod:3092
2694 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2695 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2696 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2697 msgid "*"
2698 msgstr "*"
2699
2700 #. type: textblock
2701 #: ../df/virt-df.pod:150
2702 msgid ""
2703 "If you think an untrusted guest might actively try to exploit the libguestfs "
2704 "appliance kernel, then this prevents one guest from interfering with the "
2705 "stats printed for another guest."
2706 msgstr ""
2707
2708 #. type: textblock
2709 #: ../df/virt-df.pod:156
2710 msgid ""
2711 "If the kernel has a bug which stops it from accessing a filesystem in one "
2712 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2713 "and report stats for further guests."
2714 msgstr ""
2715
2716 #. type: textblock
2717 #: ../df/virt-df.pod:165
2718 msgid ""
2719 "Print UUIDs instead of names.  This is useful for following a guest even "
2720 "when the guest is migrated or renamed, or when two guests happen to have the "
2721 "same name."
2722 msgstr ""
2723
2724 #. type: textblock
2725 #: ../df/virt-df.pod:169
2726 msgid ""
2727 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2728 "images, we still print the disk image name even when this option is "
2729 "specified."
2730 msgstr ""
2731
2732 #. type: textblock
2733 #: ../df/virt-df.pod:224
2734 msgid ""
2735 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2736 "libguestfs.org/>."
2737 msgstr ""
2738
2739 #. type: textblock
2740 #: ../edit/virt-edit.pod:5
2741 msgid "virt-edit - Edit a file in a virtual machine"
2742 msgstr ""
2743
2744 #. type: verbatim
2745 #: ../edit/virt-edit.pod:9
2746 #, fuzzy, no-wrap
2747 #| msgid ""
2748 #| " virt-list-partitions [--options] domname\n"
2749 #| "\n"
2750 msgid ""
2751 " virt-edit [--options] -d domname file [file ...]\n"
2752 "\n"
2753 msgstr ""
2754 " virt-list-partitions [--параметри] назва_домену\n"
2755 "\n"
2756
2757 #. type: verbatim
2758 #: ../edit/virt-edit.pod:11
2759 #, fuzzy, no-wrap
2760 #| msgid ""
2761 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2762 #| "\n"
2763 msgid ""
2764 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2765 "\n"
2766 msgstr ""
2767 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2768 "\n"
2769
2770 #. type: verbatim
2771 #: ../edit/virt-edit.pod:13
2772 #, no-wrap
2773 msgid ""
2774 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2775 "\n"
2776 msgstr ""
2777
2778 #. type: verbatim
2779 #: ../edit/virt-edit.pod:17
2780 #, no-wrap
2781 msgid ""
2782 " virt-edit domname file\n"
2783 "\n"
2784 msgstr ""
2785
2786 #. type: verbatim
2787 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2788 #, fuzzy, no-wrap
2789 #| msgid ""
2790 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2791 #| "\n"
2792 msgid ""
2793 " virt-edit disk.img [disk.img ...] file\n"
2794 "\n"
2795 msgstr ""
2796 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2797 "\n"
2798
2799 #. type: =head1
2800 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2801 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2802 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2803 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2804 msgid "WARNING"
2805 msgstr "ПОПЕРЕДЖЕННЯ"
2806
2807 #. type: textblock
2808 #: ../edit/virt-edit.pod:23
2809 msgid ""
2810 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2811 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2812 "doing this, but doesn't catch all cases."
2813 msgstr ""
2814
2815 #. type: textblock
2816 #: ../edit/virt-edit.pod:29
2817 msgid ""
2818 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2819 "exists in the named virtual machine (or disk image)."
2820 msgstr ""
2821
2822 #. type: textblock
2823 #: ../edit/virt-edit.pod:32
2824 msgid ""
2825 "Multiple filenames can be given, in which case they are each edited in "
2826 "turn.  Each filename must be a full path, starting at the root directory "
2827 "(starting with '/')."
2828 msgstr ""
2829
2830 #. type: textblock
2831 #: ../edit/virt-edit.pod:36
2832 msgid "If you want to just view a file, use L<virt-cat(1)>."
2833 msgstr ""
2834
2835 #. type: textblock
2836 #: ../edit/virt-edit.pod:38
2837 msgid ""
2838 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2839 "USING GUESTFISH> below)."
2840 msgstr ""
2841
2842 #. type: textblock
2843 #: ../edit/virt-edit.pod:41
2844 msgid ""
2845 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2846 "that and much more."
2847 msgstr ""
2848
2849 #. type: textblock
2850 #: ../edit/virt-edit.pod:46
2851 msgid "Edit the named files interactively:"
2852 msgstr ""
2853
2854 #. type: verbatim
2855 #: ../edit/virt-edit.pod:48
2856 #, no-wrap
2857 msgid ""
2858 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2859 "\n"
2860 msgstr ""
2861
2862 #. type: verbatim
2863 #: ../edit/virt-edit.pod:50
2864 #, no-wrap
2865 msgid ""
2866 " virt-edit -d mydomain /etc/passwd\n"
2867 "\n"
2868 msgstr ""
2869
2870 #. type: textblock
2871 #: ../edit/virt-edit.pod:52
2872 msgid "For Windows guests, some Windows paths are understood:"
2873 msgstr ""
2874
2875 #. type: verbatim
2876 #: ../edit/virt-edit.pod:54
2877 #, no-wrap
2878 msgid ""
2879 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2880 "\n"
2881 msgstr ""
2882
2883 #. type: textblock
2884 #: ../edit/virt-edit.pod:56
2885 msgid ""
2886 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2887 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2888 msgstr ""
2889
2890 #. type: verbatim
2891 #: ../edit/virt-edit.pod:60
2892 #, no-wrap
2893 msgid ""
2894 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2895 "\n"
2896 msgstr ""
2897
2898 #. type: =item
2899 #: ../edit/virt-edit.pod:81
2900 msgid "B<-b> extension"
2901 msgstr ""
2902
2903 #. type: =item
2904 #: ../edit/virt-edit.pod:83
2905 msgid "B<--backup> extension"
2906 msgstr ""
2907
2908 #. type: textblock
2909 #: ../edit/virt-edit.pod:85
2910 msgid ""
2911 "Create a backup of the original file I<in the guest disk image>.  The backup "
2912 "has the original filename with C<extension> added."
2913 msgstr ""
2914
2915 #. type: textblock
2916 #: ../edit/virt-edit.pod:88
2917 msgid ""
2918 "Usually the first character of C<extension> would be a dot C<.> so you would "
2919 "write:"
2920 msgstr ""
2921
2922 #. type: verbatim
2923 #: ../edit/virt-edit.pod:91
2924 #, no-wrap
2925 msgid ""
2926 " virt-edit -b .orig [etc]\n"
2927 "\n"
2928 msgstr ""
2929
2930 #. type: textblock
2931 #: ../edit/virt-edit.pod:93
2932 msgid "By default, no backup file is made."
2933 msgstr ""
2934
2935 #. type: =item
2936 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2937 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2938 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2939 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2940 msgid "B<-c URI>"
2941 msgstr "B<-c адреса>"
2942
2943 #. type: =item
2944 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2945 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2946 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2947 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2948 msgid "B<--connect URI>"
2949 msgstr "B<--connect адреса>"
2950
2951 #. type: textblock
2952 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2953 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2954 #: ../tools/virt-win-reg.pl:135
2955 msgid ""
2956 "If you specify guest block devices directly, then libvirt is not used at all."
2957 msgstr ""
2958
2959 #. type: textblock
2960 #: ../edit/virt-edit.pod:114
2961 msgid ""
2962 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2963 "off so you cannot see what you are typing.  If you are not worried about "
2964 "Tempest attacks and there is no one else in the room you can specify this "
2965 "flag to see what you are typing."
2966 msgstr ""
2967
2968 #. type: =item
2969 #: ../edit/virt-edit.pod:119
2970 msgid "B<-e> EXPR"
2971 msgstr ""
2972
2973 #. type: =item
2974 #: ../edit/virt-edit.pod:121
2975 #, fuzzy
2976 #| msgid "B<--help>"
2977 msgid "B<--expr> EXPR"
2978 msgstr "B<--help>"
2979
2980 #. type: textblock
2981 #: ../edit/virt-edit.pod:123
2982 msgid ""
2983 "Instead of launching the external editor, non-interactively apply the Perl "
2984 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
2985 "EDITING> below."
2986 msgstr ""
2987
2988 #. type: textblock
2989 #: ../edit/virt-edit.pod:127
2990 msgid ""
2991 "Be careful to properly quote the expression to prevent it from being altered "
2992 "by the shell."
2993 msgstr ""
2994
2995 #. type: textblock
2996 #: ../edit/virt-edit.pod:130
2997 msgid "Note that this option is only available when Perl 5 is installed."
2998 msgstr ""
2999
3000 #. type: =item
3001 #: ../edit/virt-edit.pod:132
3002 #, fuzzy
3003 #| msgid "B<--format=raw|qcow2|..>"
3004 msgid "B<--format> raw|qcow2|..."
3005 msgstr "B<--format=raw|qcow2|..>"
3006
3007 #. type: verbatim
3008 #: ../edit/virt-edit.pod:143
3009 #, fuzzy, no-wrap
3010 #| msgid ""
3011 #| " guestfish --format=raw -a disk.img\n"
3012 #| "\n"
3013 msgid ""
3014 " virt-edit --format=raw -a disk.img file\n"
3015 "\n"
3016 msgstr ""
3017 " guestfish --format=raw -a disk.img\n"
3018 "\n"
3019
3020 #. type: verbatim
3021 #: ../edit/virt-edit.pod:147
3022 #, fuzzy, no-wrap
3023 #| msgid ""
3024 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3025 #| "\n"
3026 msgid ""
3027 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3028 "\n"
3029 msgstr ""
3030 " guestfish --format=raw -a disk.img --format -a another.img\n"
3031 "\n"
3032
3033 #. type: textblock
3034 #: ../edit/virt-edit.pod:181
3035 msgid "Previous versions of virt-edit allowed you to write either:"
3036 msgstr ""
3037
3038 #. type: verbatim
3039 #: ../edit/virt-edit.pod:187
3040 #, fuzzy, no-wrap
3041 #| msgid ""
3042 #| " edit filename\n"
3043 #| "\n"
3044 msgid ""
3045 " virt-edit guestname file\n"
3046 "\n"
3047 msgstr ""
3048 " edit назва_файла\n"
3049 "\n"
3050
3051 #. type: =head1
3052 #: ../edit/virt-edit.pod:195
3053 msgid "NON-INTERACTIVE EDITING"
3054 msgstr ""
3055
3056 #. type: textblock
3057 #: ../edit/virt-edit.pod:197
3058 msgid ""
3059 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3060 "administrator can interactively edit the file."
3061 msgstr ""
3062
3063 #. type: textblock
3064 #: ../edit/virt-edit.pod:200
3065 msgid ""
3066 "There are two ways also to use C<virt-edit> from scripts in order to make "
3067 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3068 "like this, it's less error-prone to write scripts directly using the "
3069 "libguestfs API and Augeas for configuration file editing.)"
3070 msgstr ""
3071
3072 #. type: textblock
3073 #: ../edit/virt-edit.pod:206
3074 msgid ""
3075 "The first method is to temporarily set C<$EDITOR> to any script or program "
3076 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3077 "update C<tmpfile> in place however it likes."
3078 msgstr ""
3079
3080 #. type: textblock
3081 #: ../edit/virt-edit.pod:210
3082 msgid ""
3083 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3084 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3085 "instances of C<foo> with C<bar> in a file:"
3086 msgstr ""
3087
3088 #. type: verbatim
3089 #: ../edit/virt-edit.pod:214
3090 #, no-wrap
3091 msgid ""
3092 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3093 "\n"
3094 msgstr ""
3095
3096 #. type: textblock
3097 #: ../edit/virt-edit.pod:216
3098 msgid ""
3099 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3100 "For example to delete root's password you could do:"
3101 msgstr ""
3102
3103 #. type: verbatim
3104 #: ../edit/virt-edit.pod:219
3105 #, no-wrap
3106 msgid ""
3107 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3108 "\n"
3109 msgstr ""
3110
3111 #. type: textblock
3112 #: ../edit/virt-edit.pod:221
3113 msgid ""
3114 "What really happens is that the snippet is evaluated as a Perl expression "
3115 "for each line of the file.  The line, including the final C<\\n>, is passed "
3116 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3117 msgstr ""
3118
3119 #. type: textblock
3120 #: ../edit/virt-edit.pod:226
3121 msgid ""
3122 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3123 "C<apache> user account from the password file you can do:"
3124 msgstr ""
3125
3126 #. type: verbatim
3127 #: ../edit/virt-edit.pod:229
3128 #, no-wrap
3129 msgid ""
3130 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3131 "\n"
3132 msgstr ""
3133
3134 #. type: textblock
3135 #: ../edit/virt-edit.pod:231
3136 msgid ""
3137 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
3138 "the end of the file is rather difficult this way since there is no concept "
3139 "of \"last line of the file\" - your expression just doesn't get called "
3140 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
3141 "want to do this."
3142 msgstr ""
3143
3144 #. type: textblock
3145 #: ../edit/virt-edit.pod:237
3146 msgid ""
3147 "The variable C<$lineno> contains the current line number.  As is "
3148 "traditional, the first line in the file is number C<1>."
3149 msgstr ""
3150
3151 #. type: textblock
3152 #: ../edit/virt-edit.pod:240
3153 msgid ""
3154 "The return value from the expression is ignored, but the expression may call "
3155 "C<die> in order to abort the whole program, leaving the original file "
3156 "untouched."
3157 msgstr ""
3158
3159 #. type: textblock
3160 #: ../edit/virt-edit.pod:244
3161 msgid ""
3162 "Remember when matching the end of a line that C<$_> may contain the final C<"
3163 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3164 "newline then neither of these.  Thus to match or substitute some text at the "
3165 "end of a line, use this regular expression:"
3166 msgstr ""
3167
3168 #. type: verbatim
3169 #: ../edit/virt-edit.pod:249
3170 #, no-wrap
3171 msgid ""
3172 " /some text(\\r?\\n)?$/\n"
3173 "\n"
3174 msgstr ""
3175
3176 #. type: textblock
3177 #: ../edit/virt-edit.pod:251
3178 msgid ""
3179 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3180 "$_> itself (since that would remove all newlines from the file):"
3181 msgstr ""
3182
3183 #. type: verbatim
3184 #: ../edit/virt-edit.pod:255
3185 #, no-wrap
3186 msgid ""
3187 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3188 "\n"
3189 msgstr ""
3190
3191 #. type: =head1
3192 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3193 msgid "WINDOWS PATHS"
3194 msgstr ""
3195
3196 #. type: textblock
3197 #: ../edit/virt-edit.pod:259
3198 msgid ""
3199 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3200 "paths (eg. C<E:\\foo\\bar.txt>)."
3201 msgstr ""
3202
3203 #. type: textblock
3204 #: ../edit/virt-edit.pod:262
3205 msgid "If and only if the guest is running Windows then:"
3206 msgstr ""
3207
3208 #. type: textblock
3209 #: ../edit/virt-edit.pod:268
3210 msgid ""
3211 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3212 "to the correct filesystem."
3213 msgstr ""
3214
3215 #. type: textblock
3216 #: ../edit/virt-edit.pod:273
3217 msgid ""
3218 "Any backslash (C<\\>) characters in the path are replaced with forward "
3219 "slashes so that libguestfs can process it."
3220 msgstr ""
3221
3222 #. type: textblock
3223 #: ../edit/virt-edit.pod:278
3224 msgid ""
3225 "The path is resolved case insensitively to locate the file that should be "
3226 "edited."
3227 msgstr ""
3228
3229 #. type: textblock
3230 #: ../edit/virt-edit.pod:283
3231 msgid "There are some known shortcomings:"
3232 msgstr ""
3233
3234 #. type: textblock
3235 #: ../edit/virt-edit.pod:289
3236 msgid "Some NTFS symbolic links may not be followed correctly."
3237 msgstr ""
3238
3239 #. type: textblock
3240 #: ../edit/virt-edit.pod:293
3241 msgid "NTFS junction points that cross filesystems are not followed."
3242 msgstr ""
3243
3244 #. type: textblock
3245 #: ../edit/virt-edit.pod:299
3246 msgid ""
3247 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3248 "C<virt-edit> doesn't work."
3249 msgstr ""
3250
3251 #. type: textblock
3252 #: ../edit/virt-edit.pod:302
3253 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3254 msgstr ""
3255
3256 #. type: verbatim
3257 #: ../edit/virt-edit.pod:304
3258 #, fuzzy, no-wrap
3259 #| msgid ""
3260 #| " guestfish --ro -d myguest -i\n"
3261 #| "\n"
3262 msgid ""
3263 " guestfish --rw -i -d domname edit /file\n"
3264 "\n"
3265 msgstr ""
3266 " guestfish --ro -d myguest -i\n"
3267 "\n"
3268
3269 #. type: textblock
3270 #: ../edit/virt-edit.pod:306
3271 msgid ""
3272 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3273 "path to the file."
3274 msgstr ""
3275
3276 #. type: textblock
3277 #: ../edit/virt-edit.pod:309
3278 msgid ""
3279 "The command above uses libguestfs's guest inspection feature and so does not "
3280 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3281 "disk images that don't contain guests.  To edit a file on a disk image "
3282 "directly, use:"
3283 msgstr ""
3284
3285 #. type: verbatim
3286 #: ../edit/virt-edit.pod:314
3287 #, fuzzy, no-wrap
3288 #| msgid ""
3289 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3290 #| "\n"
3291 msgid ""
3292 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3293 "\n"
3294 msgstr ""
3295 " guestfish --format=raw -a disk.img --format -a another.img\n"
3296 "\n"
3297
3298 #. type: textblock
3299 #: ../edit/virt-edit.pod:316
3300 msgid ""
3301 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3302 "the disk image to edit, and C</file> is the full path to the file."
3303 msgstr ""
3304
3305 #. type: textblock
3306 #: ../edit/virt-edit.pod:320
3307 msgid ""
3308 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3309 "C<write> or C<upload> instead:"
3310 msgstr ""
3311
3312 #. type: verbatim
3313 #: ../edit/virt-edit.pod:323
3314 #, fuzzy, no-wrap
3315 #| msgid ""
3316 #| " guestfish --ro -d myguest -i\n"
3317 #| "\n"
3318 msgid ""
3319 " guestfish --rw -i -d domname touch /newfile\n"
3320 "\n"
3321 msgstr ""
3322 " guestfish --ro -d myguest -i\n"
3323 "\n"
3324
3325 #. type: verbatim
3326 #: ../edit/virt-edit.pod:325
3327 #, no-wrap
3328 msgid ""
3329 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3330 "\n"
3331 msgstr ""
3332
3333 #. type: verbatim
3334 #: ../edit/virt-edit.pod:327
3335 #, no-wrap
3336 msgid ""
3337 " guestfish --rw -i -d domname upload localfile /newfile\n"
3338 "\n"
3339 msgstr ""
3340
3341 #. type: =head1
3342 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3343 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:2966
3344 #: ../test-tool/libguestfs-test-tool.pod:82
3345 msgid "ENVIRONMENT VARIABLES"
3346 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3347
3348 #. type: =item
3349 #: ../edit/virt-edit.pod:333
3350 #, fuzzy
3351 #| msgid "EDITOR"
3352 msgid "C<EDITOR>"
3353 msgstr "РЕДАКТОР"
3354
3355 #. type: textblock
3356 #: ../edit/virt-edit.pod:335
3357 msgid ""
3358 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3359 "\"emacs -nw\">"
3360 msgstr ""
3361
3362 #. type: textblock
3363 #: ../edit/virt-edit.pod:338
3364 msgid "If not set, C<vi> is used."
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../edit/virt-edit.pod:351
3369 #, fuzzy
3370 #| msgid ""
3371 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3372 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3373 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3374 msgid ""
3375 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3376 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3377 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3378 msgstr ""
3379 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3380 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3381 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3382
3383 #. type: textblock
3384 #: ../examples/guestfs-examples.pod:5
3385 msgid "guestfs-examples - Examples of using libguestfs from C"
3386 msgstr ""
3387
3388 #. type: verbatim
3389 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3390 #, no-wrap
3391 msgid ""
3392 " #include <guestfs.h>\n"
3393 " \n"
3394 msgstr ""
3395 " #include <guestfs.h>\n"
3396 " \n"
3397
3398 #. type: verbatim
3399 #: ../examples/guestfs-examples.pod:11
3400 #, no-wrap
3401 msgid ""
3402 " guestfs_h *g = guestfs_create ();\n"
3403 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3404 " guestfs_launch (g);\n"
3405 "\n"
3406 msgstr ""
3407
3408 #. type: verbatim
3409 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3410 #, no-wrap
3411 msgid ""
3412 " cc prog.c -o prog -lguestfs\n"
3413 "or:\n"
3414 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3415 "\n"
3416 msgstr ""
3417 " cc prog.c -o prog -lguestfs\n"
3418 "або:\n"
3419 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3420 "\n"
3421
3422 #. type: textblock
3423 #: ../examples/guestfs-examples.pod:21
3424 msgid ""
3425 "This manual page contains examples of calling libguestfs from the C "
3426 "programming language.  If you are not familiar with using libguestfs, you "
3427 "also need to read L<guestfs(3)>."
3428 msgstr ""
3429
3430 #. type: =head1
3431 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3432 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3433 #: ../python/examples/guestfs-python.pod:34
3434 #: ../ruby/examples/guestfs-ruby.pod:28
3435 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3436 msgstr ""
3437
3438 #. type: textblock
3439 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3440 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3441 #: ../python/examples/guestfs-python.pod:36
3442 #: ../ruby/examples/guestfs-ruby.pod:30
3443 #, fuzzy
3444 #| msgid "EXAMPLE"
3445 msgid "@EXAMPLE1@"
3446 msgstr "ПРИКЛАД"
3447
3448 #. type: =head1
3449 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3450 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3451 #: ../python/examples/guestfs-python.pod:38
3452 #: ../ruby/examples/guestfs-ruby.pod:32
3453 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3454 msgstr ""
3455
3456 #. type: textblock
3457 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3458 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3459 #: ../python/examples/guestfs-python.pod:40
3460 #: ../ruby/examples/guestfs-ruby.pod:34
3461 #, fuzzy
3462 #| msgid "EXAMPLE"
3463 msgid "@EXAMPLE2@"
3464 msgstr "ПРИКЛАД"
3465
3466 #. type: textblock
3467 #: ../examples/guestfs-examples.pod:35
3468 #, fuzzy
3469 #| msgid ""
3470 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3471 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3472 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3473 msgid ""
3474 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
3475 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
3476 "libguestfs.org/>."
3477 msgstr ""
3478 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3479 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3480 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3481
3482 #. type: =head1
3483 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396
3484 #: ../fish/guestfish.pod:1260 ../fish/virt-copy-in.pod:60
3485 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3486 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:314
3487 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:57
3488 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3489 #: ../python/examples/guestfs-python.pod:53
3490 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3099
3491 #: ../test-tool/libguestfs-test-tool.pod:93
3492 msgid "AUTHORS"
3493 msgstr "АВТОРИ"
3494
3495 #. type: textblock
3496 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398
3497 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:62
3498 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3499 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:316
3500 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3501 #: ../perl/examples/guestfs-perl.pod:53
3502 #: ../python/examples/guestfs-python.pod:55
3503 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3101
3504 #: ../test-tool/libguestfs-test-tool.pod:95
3505 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3506 msgstr ""
3507
3508 #. type: textblock
3509 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96
3510 #: ../python/examples/guestfs-python.pod:59
3511 #: ../ruby/examples/guestfs-ruby.pod:53
3512 #, fuzzy
3513 #| msgid "Copyright (C) 2009 Red Hat Inc."
3514 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3515 msgstr "© Red Hat Inc., 2009"
3516
3517 #. type: textblock
3518 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404
3519 #: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98
3520 #: ../perl/examples/guestfs-perl.pod:59
3521 #: ../python/examples/guestfs-python.pod:61
3522 #: ../ruby/examples/guestfs-ruby.pod:55
3523 msgid ""
3524 "The examples in this manual page may be freely copied, modified and "
3525 "distributed without any restrictions."
3526 msgstr ""
3527
3528 #. type: textblock
3529 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407
3530 #: ../java/examples/guestfs-java.pod:68
3531 #: ../ocaml/examples/guestfs-ocaml.pod:101
3532 #: ../perl/examples/guestfs-perl.pod:62
3533 #: ../python/examples/guestfs-python.pod:64
3534 #: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3108
3535 msgid ""
3536 "This library is free software; you can redistribute it and/or modify it "
3537 "under the terms of the GNU Lesser General Public License as published by the "
3538 "Free Software Foundation; either version 2 of the License, or (at your "
3539 "option) any later version."
3540 msgstr ""
3541
3542 #. type: textblock
3543 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412
3544 #: ../java/examples/guestfs-java.pod:73
3545 #: ../ocaml/examples/guestfs-ocaml.pod:106
3546 #: ../perl/examples/guestfs-perl.pod:67
3547 #: ../python/examples/guestfs-python.pod:69
3548 #: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3113
3549 msgid ""
3550 "This library is distributed in the hope that it will be useful, but WITHOUT "
3551 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3552 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3553 "for more details."
3554 msgstr ""
3555
3556 #. type: textblock
3557 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417
3558 #: ../java/examples/guestfs-java.pod:78
3559 #: ../ocaml/examples/guestfs-ocaml.pod:111
3560 #: ../perl/examples/guestfs-perl.pod:72
3561 #: ../python/examples/guestfs-python.pod:74
3562 #: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3118
3563 msgid ""
3564 "You should have received a copy of the GNU Lesser General Public License "
3565 "along with this library; if not, write to the Free Software Foundation, "
3566 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3567 msgstr ""
3568
3569 #. type: =end
3570 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3571 msgid "comment"
3572 msgstr ""
3573
3574 #. type: textblock
3575 #: ../examples/guestfs-recipes.pod:5
3576 msgid ""
3577 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3578 "here.  The only way which works for both sorts of output is to just write "
3579 "the URL directly.  Do NOT use L<...> for URLs."
3580 msgstr ""
3581
3582 #. type: textblock
3583 #: ../examples/guestfs-recipes.pod:9
3584 msgid ""
3585 "We break with tradition here and don't use ALL CAPS for the section "
3586 "headings, as this makes them much easier to read."
3587 msgstr ""
3588
3589 #. type: textblock
3590 #: ../examples/guestfs-recipes.pod:16
3591 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3592 msgstr ""
3593
3594 #. type: textblock
3595 #: ../examples/guestfs-recipes.pod:20
3596 msgid ""
3597 "This page contains recipes for and links to things you can do using "
3598 "libguestfs, L<guestfish(1)> and the virt tools."
3599 msgstr ""
3600
3601 #. type: =head1
3602 #: ../examples/guestfs-recipes.pod:23
3603 msgid "Audit a virtual machine for setuid files"
3604 msgstr ""
3605
3606 #. type: textblock
3607 #: ../examples/guestfs-recipes.pod:25
3608 msgid ""
3609 "The link below contains a small program which can be used to audit a Linux "
3610 "virtual machine to see what setuid and setgid files it contains."
3611 msgstr ""
3612
3613 #. type: textblock
3614 #: ../examples/guestfs-recipes.pod:28
3615 msgid ""
3616 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3617 "files/#content"
3618 msgstr ""
3619
3620 #. type: =head1
3621 #: ../examples/guestfs-recipes.pod:30
3622 msgid "Change the background image in a Windows XP VM"
3623 msgstr ""
3624
3625 #. type: textblock
3626 #: ../examples/guestfs-recipes.pod:32
3627 msgid ""
3628 "The links below explain how to use L<guestfish(1)> to change the background "
3629 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3630 "be substantially different for each version of Windows."
3631 msgstr ""
3632
3633 #. type: textblock
3634 #: ../examples/guestfs-recipes.pod:37
3635 msgid ""
3636 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3637 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3638 msgstr ""
3639
3640 #. type: =head1
3641 #: ../examples/guestfs-recipes.pod:40
3642 msgid "Cloning a virtual machine (Linux)"
3643 msgstr ""
3644
3645 #. type: textblock
3646 #: ../examples/guestfs-recipes.pod:42
3647 msgid ""
3648 "The guestfish technique described in the link below works well for most "
3649 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3650 "slightly."
3651 msgstr ""
3652
3653 #. type: textblock
3654 #: ../examples/guestfs-recipes.pod:46
3655 msgid ""
3656 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3657 "vm/#content"
3658 msgstr ""
3659
3660 #. type: textblock
3661 #: ../examples/guestfs-recipes.pod:48
3662 msgid ""
3663 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3664 "discussion."
3665 msgstr ""
3666
3667 #. type: textblock
3668 #: ../examples/guestfs-recipes.pod:51
3669 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3670 msgstr ""
3671
3672 #. type: =head1
3673 #: ../examples/guestfs-recipes.pod:53
3674 msgid "Cloning a virtual machine (Windows)"
3675 msgstr ""
3676
3677 #. type: textblock
3678 #: ../examples/guestfs-recipes.pod:55
3679 msgid ""
3680 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3681 "straightforward.  Currently there is code in the Aeolus Oz project which "
3682 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3683 "we may add sysprepping ability."
3684 msgstr ""
3685
3686 #. type: textblock
3687 #: ../examples/guestfs-recipes.pod:60
3688 msgid ""
3689 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3690 "list/2011-May/msg00019.html"
3691 msgstr ""
3692
3693 #. type: =head1
3694 #: ../examples/guestfs-recipes.pod:63
3695 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3696 msgstr ""
3697
3698 #. type: textblock
3699 #: ../examples/guestfs-recipes.pod:65
3700 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3701 msgstr ""
3702
3703 #. type: verbatim
3704 #: ../examples/guestfs-recipes.pod:67
3705 #, no-wrap
3706 msgid ""
3707 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3708 "\n"
3709 msgstr ""
3710
3711 #. type: textblock
3712 #: ../examples/guestfs-recipes.pod:69
3713 msgid "To export just a subdirectory, eg. C</files>, do:"
3714 msgstr ""
3715
3716 #. type: verbatim
3717 #: ../examples/guestfs-recipes.pod:71
3718 #, no-wrap
3719 msgid ""
3720 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3721 "\n"
3722 msgstr ""
3723
3724 #. type: =head1
3725 #: ../examples/guestfs-recipes.pod:73
3726 msgid "Create empty disk images"
3727 msgstr ""
3728
3729 #. type: textblock
3730 #: ../examples/guestfs-recipes.pod:75
3731 msgid ""
3732 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3733 "The useful guide below explains the options available."
3734 msgstr ""
3735
3736 #. type: textblock
3737 #: ../examples/guestfs-recipes.pod:78
3738 msgid ""
3739 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3740 "#content"
3741 msgstr ""
3742
3743 #. type: =head1
3744 #: ../examples/guestfs-recipes.pod:80
3745 msgid "Dump raw filesystem content from inside a disk image or VM"
3746 msgstr ""
3747
3748 #. type: textblock
3749 #: ../examples/guestfs-recipes.pod:82
3750 msgid ""
3751 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3752 "filesystem content from any filesystem in a disk image or a VM (even one "
3753 "which is encrypted or buried inside an LV):"
3754 msgstr ""
3755
3756 #. type: verbatim
3757 #: ../examples/guestfs-recipes.pod:86
3758 #, fuzzy, no-wrap
3759 #| msgid ""
3760 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3761 #| "\n"
3762 msgid ""
3763 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3764 "\n"
3765 msgstr ""
3766 " guestfish --format=raw -a disk.img --format -a another.img\n"
3767 "\n"
3768
3769 #. type: verbatim
3770 #: ../examples/guestfs-recipes.pod:88
3771 #, no-wrap
3772 msgid ""
3773 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3774 "\n"
3775 msgstr ""
3776
3777 #. type: textblock
3778 #: ../examples/guestfs-recipes.pod:90
3779 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3780 msgstr ""
3781
3782 #. type: =head1
3783 #: ../examples/guestfs-recipes.pod:92
3784 msgid "Edit grub configuration in a VM"
3785 msgstr ""
3786
3787 #. type: textblock
3788 #: ../examples/guestfs-recipes.pod:94
3789 msgid "You can use this to:"
3790 msgstr ""
3791
3792 #. type: textblock
3793 #: ../examples/guestfs-recipes.pod:100
3794 msgid "Fix a virtual machine that does not boot."
3795 msgstr ""
3796
3797 #. type: textblock
3798 #: ../examples/guestfs-recipes.pod:104
3799 msgid "Change which kernel is used to boot the VM."
3800 msgstr ""
3801
3802 #. type: textblock
3803 #: ../examples/guestfs-recipes.pod:108
3804 msgid "Change kernel command line options."
3805 msgstr ""
3806
3807 #. type: textblock
3808 #: ../examples/guestfs-recipes.pod:112
3809 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3810 msgstr ""
3811
3812 #. type: verbatim
3813 #: ../examples/guestfs-recipes.pod:114
3814 #, no-wrap
3815 msgid ""
3816 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3817 "\n"
3818 msgstr ""
3819
3820 #. type: textblock
3821 #: ../examples/guestfs-recipes.pod:116
3822 msgid ""
3823 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3824 "this:"
3825 msgstr ""
3826
3827 #. type: verbatim
3828 #: ../examples/guestfs-recipes.pod:119
3829 #, no-wrap
3830 msgid ""
3831 " virt-rescue -d BrokenGuest\n"
3832 "\n"
3833 msgstr ""
3834
3835 #. type: =head1
3836 #: ../examples/guestfs-recipes.pod:121
3837 msgid "Export any directory from a VM"
3838 msgstr ""
3839
3840 #. type: textblock
3841 #: ../examples/guestfs-recipes.pod:123
3842 msgid ""
3843 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3844 msgstr ""
3845
3846 #. type: verbatim
3847 #: ../examples/guestfs-recipes.pod:126
3848 #, fuzzy, no-wrap
3849 #| msgid ""
3850 #| " copy-out /home .\n"
3851 #| "\n"
3852 msgid ""
3853 " virt-copy-out -d Guest /home .\n"
3854 "\n"
3855 msgstr ""
3856 " copy-out /home .\n"
3857 "\n"
3858
3859 #. type: textblock
3860 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3861 #: ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1934
3862 #: ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:1922
3863 #: ../src/guestfs-actions.pod:2860 ../src/guestfs.pod:1640
3864 #: ../tools/virt-win-reg.pl:706
3865 msgid "Notes:"
3866 msgstr "Нотатки:"
3867
3868 #. type: textblock
3869 #: ../examples/guestfs-recipes.pod:134
3870 msgid ""
3871 "The final dot of the command is not a printing error.  It means we want to "
3872 "copy out to the current directory."
3873 msgstr ""
3874
3875 #. type: textblock
3876 #: ../examples/guestfs-recipes.pod:139
3877 msgid "This creates a directory called C<home> under the current directory."
3878 msgstr ""
3879
3880 #. type: textblock
3881 #: ../examples/guestfs-recipes.pod:143
3882 msgid ""
3883 "If the guest is a Windows guest then you can use drive letters and "
3884 "backslashes, but you must prefix the path with C<win:> and quote it to "
3885 "protect it from the shell, like this:"
3886 msgstr ""
3887
3888 #. type: verbatim
3889 #: ../examples/guestfs-recipes.pod:147
3890 #, no-wrap
3891 msgid ""
3892 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3893 "\n"
3894 msgstr ""
3895
3896 #. type: textblock
3897 #: ../examples/guestfs-recipes.pod:149
3898 msgid "To get the output as a compressed tarball, do:"
3899 msgstr ""
3900
3901 #. type: verbatim
3902 #: ../examples/guestfs-recipes.pod:151
3903 #, no-wrap
3904 msgid ""
3905 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3906 "\n"
3907 msgstr ""
3908
3909 #. type: textblock
3910 #: ../examples/guestfs-recipes.pod:153
3911 msgid ""
3912 "Although it sounds tempting, this is usually not a reliable way to get a "
3913 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
3914 "org/FAQ.html#backup"
3915 msgstr ""
3916
3917 #. type: =head1
3918 #: ../examples/guestfs-recipes.pod:157
3919 msgid "Find out which user is using the most space"
3920 msgstr ""
3921
3922 #. type: textblock
3923 #: ../examples/guestfs-recipes.pod:159
3924 msgid ""
3925 "This simple script examines a Linux guest to find out which user is using "
3926 "the most space in their home directory:"
3927 msgstr ""
3928
3929 #. type: verbatim
3930 #: ../examples/guestfs-recipes.pod:162
3931 #, fuzzy, no-wrap
3932 #| msgid ""
3933 #| " #!/usr/bin/guestfish -f\n"
3934 #| "\n"
3935 msgid ""
3936 " #!/bin/sh -\n"
3937 " \n"
3938 msgstr ""
3939 " #!/usr/bin/guestfish -f\n"
3940 "\n"
3941
3942 #. type: verbatim
3943 #: ../examples/guestfs-recipes.pod:164
3944 #, fuzzy, no-wrap
3945 #| msgid ""
3946 #| " set-qemu qemu\n"
3947 #| "\n"
3948 msgid ""
3949 " set -e\n"
3950 " \n"
3951 msgstr ""
3952 " set-qemu qemu\n"
3953 "\n"
3954
3955 #. type: verbatim
3956 #: ../examples/guestfs-recipes.pod:166
3957 #, no-wrap
3958 msgid ""
3959 " vm=\"$1\"\n"
3960 " dir=/home\n"
3961 " \n"
3962 msgstr ""
3963
3964 #. type: verbatim
3965 #: ../examples/guestfs-recipes.pod:169
3966 #, fuzzy, no-wrap
3967 #| msgid ""
3968 #| " guestfish --ro -d myguest -i\n"
3969 #| "\n"
3970 msgid ""
3971 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3972 " \n"
3973 msgstr ""
3974 " guestfish --ro -d myguest -i\n"
3975 "\n"
3976
3977 #. type: verbatim
3978 #: ../examples/guestfs-recipes.pod:171
3979 #, no-wrap
3980 msgid ""
3981 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3982 "     echo -n \"$dir/$d\"\n"
3983 "     echo -ne '\\t'\n"
3984 "     guestfish --remote du \"$dir/$d\";\n"
3985 " done | sort -nr -k 2\n"
3986 " \n"
3987 msgstr ""
3988
3989 #. type: verbatim
3990 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3991 #, no-wrap
3992 msgid ""
3993 " guestfish --remote exit\n"
3994 "\n"
3995 msgstr ""
3996
3997 #. type: =head1
3998 #: ../examples/guestfs-recipes.pod:179
3999 msgid "Get DHCP address from a VM"
4000 msgstr ""
4001
4002 #. type: textblock
4003 #: ../examples/guestfs-recipes.pod:181
4004 msgid ""
4005 "The link below explains the many different possible techniques for getting "
4006 "the last assigned DHCP address of a virtual machine."
4007 msgstr ""
4008
4009 #. type: textblock
4010 #: ../examples/guestfs-recipes.pod:184
4011 msgid ""
4012 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4013 "a-virtual-machine-disk-image/#content"
4014 msgstr ""
4015
4016 #. type: textblock
4017 #: ../examples/guestfs-recipes.pod:186
4018 msgid ""
4019 "In the libguestfs source examples directory you will find the latest version "
4020 "of the C<virt-dhcp-address.c> program."
4021 msgstr ""
4022
4023 #. type: =head1
4024 #: ../examples/guestfs-recipes.pod:189
4025 msgid "Get the operating system product name string"
4026 msgstr ""
4027
4028 #. type: textblock
4029 #: ../examples/guestfs-recipes.pod:191
4030 msgid "Save the following script into a file called C<product-name.sh>:"
4031 msgstr ""
4032
4033 #. type: verbatim
4034 #: ../examples/guestfs-recipes.pod:193
4035 #, fuzzy, no-wrap
4036 #| msgid ""
4037 #| " eval \"`guestfish --listen`\"\n"
4038 #| " guestfish --remote add-ro disk.img\n"
4039 #| " guestfish --remote run\n"
4040 #| " guestfish --remote lvs\n"
4041 #| "\n"
4042 msgid ""
4043 " #!/bin/sh -\n"
4044 " set -e\n"
4045 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4046 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4047 " guestfish --remote inspect-get-product-name \"$root\"\n"
4048 " guestfish --remote exit\n"
4049 "\n"
4050 msgstr ""
4051 " eval \"`guestfish --listen`\"\n"
4052 " guestfish --remote add-ro disk.img\n"
4053 " guestfish --remote run\n"
4054 " guestfish --remote lvs\n"
4055 "\n"
4056
4057 #. type: textblock
4058 #: ../examples/guestfs-recipes.pod:200
4059 msgid "Make the script executable and run it on a named guest:"
4060 msgstr ""
4061
4062 #. type: verbatim
4063 #: ../examples/guestfs-recipes.pod:202
4064 #, no-wrap
4065 msgid ""
4066 " # product-name.sh RHEL60x64\n"
4067 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4068 "\n"
4069 msgstr ""
4070
4071 #. type: textblock
4072 #: ../examples/guestfs-recipes.pod:205
4073 msgid ""
4074 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4075 "C<xpath> command line tool or from your favourite programming language:"
4076 msgstr ""
4077
4078 #. type: verbatim
4079 #: ../examples/guestfs-recipes.pod:209
4080 #, no-wrap
4081 msgid ""
4082 " # virt-inspector RHEL60x64 > xml\n"
4083 " # xpath '//product_name' < xml\n"
4084 " Found 1 nodes:\n"
4085 " -- NODE --\n"
4086 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4087 "\n"
4088 msgstr ""
4089
4090 #. type: =head1
4091 #: ../examples/guestfs-recipes.pod:215
4092 msgid "Get the default boot kernel for a Linux VM"
4093 msgstr ""
4094
4095 #. type: textblock
4096 #: ../examples/guestfs-recipes.pod:217
4097 msgid ""
4098 "The link below contains a program to print the default boot kernel for a "
4099 "Linux VM."
4100 msgstr ""
4101
4102 #. type: textblock
4103 #: ../examples/guestfs-recipes.pod:220
4104 msgid ""
4105 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4106 "kernel-for-a-vm/#content"
4107 msgstr ""
4108
4109 #. type: textblock
4110 #: ../examples/guestfs-recipes.pod:222
4111 msgid ""
4112 "It uses Augeas, and the technique is generally applicable for many different "
4113 "tasks, such as:"
4114 msgstr ""
4115
4116 #. type: textblock
4117 #: ../examples/guestfs-recipes.pod:229
4118 msgid "listing the user accounts in the guest"
4119 msgstr ""
4120
4121 #. type: textblock
4122 #: ../examples/guestfs-recipes.pod:233
4123 msgid "what repositories is it configured to use"
4124 msgstr ""
4125
4126 #. type: textblock
4127 #: ../examples/guestfs-recipes.pod:237
4128 msgid "what NTP servers does it connect to"
4129 msgstr ""
4130
4131 #. type: textblock
4132 #: ../examples/guestfs-recipes.pod:241
4133 msgid "what were the boot messages last time it booted"
4134 msgstr ""
4135
4136 #. type: textblock
4137 #: ../examples/guestfs-recipes.pod:245
4138 msgid "listing who was logged in recently"
4139 msgstr ""
4140
4141 #. type: textblock
4142 #: ../examples/guestfs-recipes.pod:249
4143 msgid "http://augeas.net/"
4144 msgstr ""
4145
4146 #. type: =head1
4147 #: ../examples/guestfs-recipes.pod:251
4148 msgid "Install RPMs in a guest"
4149 msgstr ""
4150
4151 #. type: textblock
4152 #: ../examples/guestfs-recipes.pod:253
4153 msgid ""
4154 "The link below contains a method to install RPMs in a guest.  In fact the "
4155 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4156 "installs them next time the guest is booted.  You could use this technique "
4157 "to install vital security updates in an offline guest."
4158 msgstr ""
4159
4160 #. type: textblock
4161 #: ../examples/guestfs-recipes.pod:259
4162 msgid ""
4163 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4164 msgstr ""
4165
4166 #. type: =head1
4167 #: ../examples/guestfs-recipes.pod:261
4168 msgid "List applications installed in a VM"
4169 msgstr ""
4170
4171 #. type: textblock
4172 #: ../examples/guestfs-recipes.pod:263
4173 msgid "Save the following to a file C<list-apps.sh>:"
4174 msgstr ""
4175
4176 #. type: verbatim
4177 #: ../examples/guestfs-recipes.pod:265
4178 #, fuzzy, no-wrap
4179 #| msgid ""
4180 #| " eval \"`guestfish --listen`\"\n"
4181 #| " guestfish --remote add-ro disk.img\n"
4182 #| " guestfish --remote run\n"
4183 #| " guestfish --remote lvs\n"
4184 #| "\n"
4185 msgid ""
4186 " #!/bin/sh -\n"
4187 " set -e\n"
4188 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4189 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4190 " guestfish --remote inspect-list-applications \"$root\"\n"
4191 " guestfish --remote exit\n"
4192 "\n"
4193 msgstr ""
4194 " eval \"`guestfish --listen`\"\n"
4195 " guestfish --remote add-ro disk.img\n"
4196 " guestfish --remote run\n"
4197 " guestfish --remote lvs\n"
4198 "\n"
4199
4200 #. type: textblock
4201 #: ../examples/guestfs-recipes.pod:272
4202 msgid ""
4203 "Make the file executable and then you can run it on any named virtual "
4204 "machine:"
4205 msgstr ""
4206
4207 #. type: verbatim
4208 #: ../examples/guestfs-recipes.pod:275
4209 #, no-wrap
4210 msgid ""
4211 " # list-apps.sh WinGuest\n"
4212 " [0] = {\n"
4213 "   app_name: Mozilla Firefox (3.6.12)\n"
4214 "   app_display_name: Mozilla Firefox (3.6.12)\n"
4215 "   app_epoch: 0\n"
4216 "   app_version: 3.6.12 (en-GB)\n"
4217 "   app_release:\n"
4218 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4219 "   app_trans_path:\n"
4220 "   app_publisher: Mozilla\n"
4221 "   app_url: http://www.mozilla.com/en-GB/\n"
4222 "   app_source_package:\n"
4223 "   app_summary:\n"
4224 "   app_description: Mozilla Firefox\n"
4225 " }\n"
4226 " [1] = {\n"
4227 "   app_name: VLC media player\n"
4228 "   app_display_name: VLC media player 1.1.5\n"
4229 "   app_epoch: 0\n"
4230 "   app_version: 1.1.5\n"
4231 "   app_release:\n"
4232 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4233 "   app_trans_path:\n"
4234 "   app_publisher: VideoLAN\n"
4235 "   app_url: http://www.videolan.org/\n"
4236 "   app_source_package:\n"
4237 "   app_summary:\n"
4238 "   app_description:\n"
4239 " }\n"
4240 "\n"
4241 msgstr ""
4242
4243 #. type: textblock
4244 #: ../examples/guestfs-recipes.pod:305
4245 msgid ""
4246 "If you want to run the script on disk images (instead of libvirt virtual "
4247 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
4248 ">."
4249 msgstr ""
4250
4251 #. type: =head1
4252 #: ../examples/guestfs-recipes.pod:309
4253 msgid "List files and directories in a VM"
4254 msgstr ""
4255
4256 #. type: textblock
4257 #: ../examples/guestfs-recipes.pod:311
4258 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4259 msgstr ""
4260
4261 #. type: verbatim
4262 #: ../examples/guestfs-recipes.pod:313
4263 #, fuzzy, no-wrap
4264 #| msgid ""
4265 #| " guestfish --ro -d myguest -i\n"
4266 #| "\n"
4267 msgid ""
4268 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4269 "\n"
4270 msgstr ""
4271 " guestfish --ro -d myguest -i\n"
4272 "\n"
4273
4274 #. type: =head1
4275 #: ../examples/guestfs-recipes.pod:315
4276 msgid "List services in a Windows VM"
4277 msgstr ""
4278
4279 #. type: textblock
4280 #: ../examples/guestfs-recipes.pod:317
4281 msgid ""
4282 "The link below contains a script that can be used to list out the services "
4283 "from a Windows VM, and whether those services run at boot time or are loaded "
4284 "on demand."
4285 msgstr ""
4286
4287 #. type: textblock
4288 #: ../examples/guestfs-recipes.pod:321
4289 msgid ""
4290 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4291 "#content"
4292 msgstr ""
4293
4294 #. type: =head1
4295 #: ../examples/guestfs-recipes.pod:323
4296 msgid "Make a disk image sparse"
4297 msgstr ""
4298
4299 #. type: textblock
4300 #: ../examples/guestfs-recipes.pod:325
4301 msgid ""
4302 "The link below contains some guides for making a disk image sparse (or "
4303 "reintroducing sparseness)."
4304 msgstr ""
4305
4306 #. type: textblock
4307 #: ../examples/guestfs-recipes.pod:328
4308 msgid ""
4309 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4310 msgstr ""
4311
4312 #. type: =head1
4313 #: ../examples/guestfs-recipes.pod:330
4314 msgid "Monitor disk usage over time"
4315 msgstr ""
4316
4317 #. type: textblock
4318 #: ../examples/guestfs-recipes.pod:332
4319 msgid ""
4320 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
4321 "The link below contains a guide."
4322 msgstr ""
4323
4324 #. type: textblock
4325 #: ../examples/guestfs-recipes.pod:335
4326 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4327 msgstr ""
4328
4329 #. type: =head1
4330 #: ../examples/guestfs-recipes.pod:337
4331 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4332 msgstr ""
4333
4334 #. type: textblock
4335 #: ../examples/guestfs-recipes.pod:339
4336 msgid ""
4337 "L<guestfish(1)> plus the tools described in the link below can be used to "
4338 "read out the Windows Event Log from any virtual machine running Windows "
4339 "Vista or a later version."
4340 msgstr ""
4341
4342 #. type: textblock
4343 #: ../examples/guestfs-recipes.pod:343
4344 msgid ""
4345 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4346 "guestfish/#content"
4347 msgstr ""
4348
4349 #. type: =head1
4350 #: ../examples/guestfs-recipes.pod:345
4351 msgid "Remove root password (Linux)"
4352 msgstr ""
4353
4354 #. type: textblock
4355 #: ../examples/guestfs-recipes.pod:347
4356 msgid ""
4357 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4358 "files.  One use is to remove the root password from a Linux guest:"
4359 msgstr ""
4360
4361 #. type: verbatim
4362 #: ../examples/guestfs-recipes.pod:350
4363 #, no-wrap
4364 msgid ""
4365 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4366 "\n"
4367 msgstr ""
4368
4369 #. type: =head1
4370 #: ../examples/guestfs-recipes.pod:352
4371 msgid "Remove Administrator password (Windows)"
4372 msgstr ""
4373
4374 #. type: textblock
4375 #: ../examples/guestfs-recipes.pod:354
4376 msgid ""
4377 "The link below contains one technique for removing the Administrator "
4378 "password from a Windows VM, or to be more precise, it gives you a command "
4379 "prompt the next time you log in which you can use to bypass any security:"
4380 msgstr ""
4381
4382 #. type: textblock
4383 #: ../examples/guestfs-recipes.pod:359
4384 msgid ""
4385 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4386 "administrator-password-with-guestfish/"
4387 msgstr ""
4388
4389 #. type: =head1
4390 #: ../examples/guestfs-recipes.pod:361
4391 msgid "Unpack a live CD"
4392 msgstr ""
4393
4394 #. type: textblock
4395 #: ../examples/guestfs-recipes.pod:363
4396 msgid ""
4397 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4398 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4399 "layers, as outlined in the guide below."
4400 msgstr ""
4401
4402 #. type: textblock
4403 #: ../examples/guestfs-recipes.pod:367
4404 msgid ""
4405 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4406 "cd/#content"
4407 msgstr ""
4408
4409 #. type: =head1
4410 #: ../examples/guestfs-recipes.pod:369
4411 msgid "Uploading and downloading files"
4412 msgstr ""
4413
4414 #. type: textblock
4415 #: ../examples/guestfs-recipes.pod:371
4416 msgid ""
4417 "The link below contains general tips on uploading (copying in)  and "
4418 "downloading (copying out) files from VMs."
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../examples/guestfs-recipes.pod:374
4423 msgid ""
4424 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4425 msgstr ""
4426
4427 #. type: =head1
4428 #: ../examples/guestfs-recipes.pod:376
4429 msgid "Use libguestfs tools on VMware ESX guests"
4430 msgstr ""
4431
4432 #. type: textblock
4433 #: ../examples/guestfs-recipes.pod:378
4434 msgid ""
4435 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4436 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4437 msgstr ""
4438
4439 #. type: textblock
4440 #: ../examples/guestfs-recipes.pod:382
4441 msgid ""
4442 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4443 "guests/#content"
4444 msgstr ""
4445
4446 #. type: textblock
4447 #: ../examples/guestfs-recipes.pod:386
4448 #, fuzzy
4449 #| msgid ""
4450 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4451 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4452 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4453 msgid ""
4454 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4455 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4456 "(3)>, L<http://libguestfs.org/>."
4457 msgstr ""
4458 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4459 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4460 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4461
4462 #. type: textblock
4463 #: ../examples/guestfs-recipes.pod:402
4464 #, fuzzy
4465 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
4466 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4467 msgstr "© Red Hat Inc., 2009–2010"
4468
4469 #. type: =head2
4470 #: ../fish/guestfish-actions.pod:1
4471 msgid "add-cdrom"
4472 msgstr ""
4473
4474 #. type: verbatim
4475 #: ../fish/guestfish-actions.pod:3
4476 #, no-wrap
4477 msgid ""
4478 " add-cdrom filename\n"
4479 "\n"
4480 msgstr ""
4481
4482 #. type: textblock
4483 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4484 msgid "This function adds a virtual CD-ROM disk image to the guest."
4485 msgstr ""
4486
4487 #. type: textblock
4488 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4489 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4490 msgstr ""
4491
4492 #. type: textblock
4493 #: ../fish/guestfish-actions.pod:15
4494 msgid ""
4495 "This call checks for the existence of C<filename>.  This stops you from "
4496 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4497 "and C<http:> URLs.  To specify those, use the general L</config> call "
4498 "instead."
4499 msgstr ""
4500
4501 #. type: textblock
4502 #: ../fish/guestfish-actions.pod:22
4503 msgid ""
4504 "If you just want to add an ISO file (often you use this as an efficient way "
4505 "to transfer large files into the guest), then you should probably use L</add-"
4506 "drive-ro> instead."
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4511 #: ../fish/guestfish-actions.pod:177
4512 msgid ""
4513 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4514 "instead."
4515 msgstr ""
4516
4517 #. type: textblock
4518 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4519 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:991
4520 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4521 #: ../fish/guestfish-actions.pod:3090 ../fish/guestfish-actions.pod:3297
4522 #: ../fish/guestfish-actions.pod:3411 ../fish/guestfish-actions.pod:3459
4523 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4383
4524 #: ../fish/guestfish-actions.pod:4405 ../fish/guestfish-actions.pod:4443
4525 #: ../fish/guestfish-actions.pod:5092 ../fish/guestfish-actions.pod:5198
4526 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252
4527 #: ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1508
4528 #: ../src/guestfs-actions.pod:2007 ../src/guestfs-actions.pod:2028
4529 #: ../src/guestfs-actions.pod:4623 ../src/guestfs-actions.pod:4926
4530 #: ../src/guestfs-actions.pod:5155 ../src/guestfs-actions.pod:5255
4531 #: ../src/guestfs-actions.pod:6521 ../src/guestfs-actions.pod:6565
4532 #: ../src/guestfs-actions.pod:6599 ../src/guestfs-actions.pod:6662
4533 #: ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7703
4534 #: ../src/guestfs-actions.pod:7886
4535 msgid ""
4536 "Deprecated functions will not be removed from the API, but the fact that "
4537 "they are deprecated indicates that there are problems with correct use of "
4538 "these functions."
4539 msgstr ""
4540
4541 #. type: =head2
4542 #: ../fish/guestfish-actions.pod:35
4543 msgid "add-domain"
4544 msgstr "add-domain"
4545
4546 #. type: =head2
4547 #: ../fish/guestfish-actions.pod:37
4548 msgid "domain"
4549 msgstr ""
4550
4551 #. type: verbatim
4552 #: ../fish/guestfish-actions.pod:39
4553 #, no-wrap
4554 msgid ""
4555 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4556 "\n"
4557 msgstr ""
4558
4559 #. type: textblock
4560 #: ../fish/guestfish-actions.pod:41
4561 msgid ""
4562 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4563 "It works by connecting to libvirt, requesting the domain and domain XML from "
4564 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4565 msgstr ""
4566
4567 #. type: textblock
4568 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4569 msgid ""
4570 "The number of disks added is returned.  This operation is atomic: if an "
4571 "error is returned, then no disks are added."
4572 msgstr ""
4573
4574 #. type: textblock
4575 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4576 msgid ""
4577 "This function does some minimal checks to make sure the libvirt domain is "
4578 "not running (unless C<readonly> is true).  In a future version we will try "
4579 "to acquire the libvirt lock on each disk."
4580 msgstr ""
4581
4582 #. type: textblock
4583 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4584 msgid ""
4585 "Disks must be accessible locally.  This often means that adding disks from a "
4586 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4587 "unless those disks are accessible via the same device path locally too."
4588 msgstr ""
4589
4590 #. type: textblock
4591 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4592 msgid ""
4593 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4594 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4595 "libvirt URI (or one set through an environment variable, see the libvirt "
4596 "documentation for full details)."
4597 msgstr ""
4598
4599 #. type: textblock
4600 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4601 msgid ""
4602 "The optional C<live> flag controls whether this call will try to connect to "
4603 "a running virtual machine C<guestfsd> process if it sees a suitable "
4604 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4605 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4606 "DAEMONS> for more information."
4607 msgstr ""
4608
4609 #. type: textblock
4610 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4611 msgid ""
4612 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4613 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4614 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4615 "as usual."
4616 msgstr ""
4617
4618 #. type: textblock
4619 #: ../fish/guestfish-actions.pod:76
4620 msgid ""
4621 "The other optional parameters are passed directly through to L</add-drive-"
4622 "opts>."
4623 msgstr ""
4624
4625 #. type: textblock
4626 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4627 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1973
4628 #: ../fish/guestfish-actions.pod:3139 ../fish/guestfish-actions.pod:3312
4629 #: ../fish/guestfish-actions.pod:3447
4630 msgid ""
4631 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4632 msgstr ""
4633
4634 #. type: =head2
4635 #: ../fish/guestfish-actions.pod:81
4636 msgid "add-drive"
4637 msgstr "add-drive"
4638
4639 #. type: verbatim
4640 #: ../fish/guestfish-actions.pod:83
4641 #, no-wrap
4642 msgid ""
4643 " add-drive filename\n"
4644 "\n"
4645 msgstr ""
4646 " add-drive назва_файла\n"
4647 "\n"
4648
4649 #. type: textblock
4650 #: ../fish/guestfish-actions.pod:85
4651 msgid ""
4652 "This function is the equivalent of calling L</add-drive-opts> with no "
4653 "optional parameters, so the disk is added writable, with the format being "
4654 "detected automatically."
4655 msgstr ""
4656
4657 #. type: textblock
4658 #: ../fish/guestfish-actions.pod:89
4659 msgid ""
4660 "Automatic detection of the format opens you up to a potential security hole "
4661 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4662 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4663 "you should think about replacing calls to this function with calls to L</add-"
4664 "drive-opts>, and specifying the format."
4665 msgstr ""
4666
4667 #. type: =head2
4668 #: ../fish/guestfish-actions.pod:96
4669 msgid "add-drive-opts"
4670 msgstr "add-drive-opts"
4671
4672 #. type: =head2
4673 #: ../fish/guestfish-actions.pod:98
4674 msgid "add"
4675 msgstr "add"
4676
4677 #. type: verbatim
4678 #: ../fish/guestfish-actions.pod:100
4679 #, no-wrap
4680 msgid ""
4681 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4682 "\n"
4683 msgstr ""
4684
4685 #. type: textblock
4686 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4687 msgid ""
4688 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4689 "The first time you call this function, the disk appears as C</dev/sda>, the "
4690 "second time as C</dev/sdb>, and so on."
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4695 msgid ""
4696 "You don't necessarily need to be root when using libguestfs.  However you "
4697 "obviously do need sufficient permissions to access the filename for whatever "
4698 "operations you want to perform (ie. read access if you just want to read the "
4699 "image or write access if you want to modify the image)."
4700 msgstr ""
4701
4702 #. type: textblock
4703 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4704 msgid "This call checks that C<filename> exists."
4705 msgstr ""
4706
4707 #. type: textblock
4708 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3101
4709 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4660
4710 msgid "The optional arguments are:"
4711 msgstr ""
4712
4713 #. type: =item
4714 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4715 msgid "C<readonly>"
4716 msgstr "C<readonly>"
4717
4718 #. type: textblock
4719 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4720 msgid ""
4721 "If true then the image is treated as read-only.  Writes are still allowed, "
4722 "but they are stored in a temporary snapshot overlay which is discarded at "
4723 "the end.  The disk that you add is not modified."
4724 msgstr ""
4725
4726 #. type: =item
4727 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4728 msgid "C<format>"
4729 msgstr "C<format>"
4730
4731 #. type: textblock
4732 #: ../fish/guestfish-actions.pod:127
4733 msgid ""
4734 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4735 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4736 "include C<raw> and C<qcow2>."
4737 msgstr ""
4738
4739 #. type: textblock
4740 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4741 msgid ""
4742 "Automatic detection of the format opens you up to a potential security hole "
4743 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4744 "RHBZ#642934.  Specifying the format closes this security hole."
4745 msgstr ""
4746
4747 #. type: =item
4748 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4749 msgid "C<iface>"
4750 msgstr "C<iface>"
4751
4752 #. type: textblock
4753 #: ../fish/guestfish-actions.pod:138
4754 msgid ""
4755 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4756 "add-drive-with-if> call (q.v.)"
4757 msgstr ""
4758
4759 #. type: =head2
4760 #: ../fish/guestfish-actions.pod:145
4761 msgid "add-drive-ro"
4762 msgstr "add-drive-ro"
4763
4764 #. type: =head2
4765 #: ../fish/guestfish-actions.pod:147
4766 msgid "add-ro"
4767 msgstr "add-ro"
4768
4769 #. type: verbatim
4770 #: ../fish/guestfish-actions.pod:149
4771 #, no-wrap
4772 msgid ""
4773 " add-drive-ro filename\n"
4774 "\n"
4775 msgstr ""
4776
4777 #. type: textblock
4778 #: ../fish/guestfish-actions.pod:151
4779 msgid ""
4780 "This function is the equivalent of calling L</add-drive-opts> with the "
4781 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4782 "is added read-only, with the format being detected automatically."
4783 msgstr ""
4784
4785 #. type: =head2
4786 #: ../fish/guestfish-actions.pod:156
4787 msgid "add-drive-ro-with-if"
4788 msgstr ""
4789
4790 #. type: verbatim
4791 #: ../fish/guestfish-actions.pod:158
4792 #, no-wrap
4793 msgid ""
4794 " add-drive-ro-with-if filename iface\n"
4795 "\n"
4796 msgstr ""
4797
4798 #. type: textblock
4799 #: ../fish/guestfish-actions.pod:160
4800 msgid ""
4801 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4802 "interface emulation to use at run time."
4803 msgstr ""
4804
4805 #. type: =head2
4806 #: ../fish/guestfish-actions.pod:170
4807 msgid "add-drive-with-if"
4808 msgstr ""
4809
4810 #. type: verbatim
4811 #: ../fish/guestfish-actions.pod:172
4812 #, no-wrap
4813 msgid ""
4814 " add-drive-with-if filename iface\n"
4815 "\n"
4816 msgstr ""
4817
4818 #. type: textblock
4819 #: ../fish/guestfish-actions.pod:174
4820 msgid ""
4821 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4822 "interface emulation to use at run time."
4823 msgstr ""
4824
4825 #. type: =head2
4826 #: ../fish/guestfish-actions.pod:184
4827 msgid "aug-clear"
4828 msgstr ""
4829
4830 #. type: verbatim
4831 #: ../fish/guestfish-actions.pod:186
4832 #, no-wrap
4833 msgid ""
4834 " aug-clear augpath\n"
4835 "\n"
4836 msgstr ""
4837
4838 #. type: textblock
4839 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4840 msgid ""
4841 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4842 "L<augtool(1)> C<clear> command."
4843 msgstr ""
4844
4845 #. type: =head2
4846 #: ../fish/guestfish-actions.pod:191
4847 msgid "aug-close"
4848 msgstr ""
4849
4850 #. type: verbatim
4851 #: ../fish/guestfish-actions.pod:193
4852 #, no-wrap
4853 msgid ""
4854 " aug-close\n"
4855 "\n"
4856 msgstr ""
4857
4858 #. type: textblock
4859 #: ../fish/guestfish-actions.pod:195
4860 msgid ""
4861 "Close the current Augeas handle and free up any resources used by it.  After "
4862 "calling this, you have to call L</aug-init> again before you can use any "
4863 "other Augeas functions."
4864 msgstr ""
4865
4866 #. type: =head2
4867 #: ../fish/guestfish-actions.pod:200
4868 msgid "aug-defnode"
4869 msgstr ""
4870
4871 #. type: verbatim
4872 #: ../fish/guestfish-actions.pod:202
4873 #, no-wrap
4874 msgid ""
4875 " aug-defnode name expr val\n"
4876 "\n"
4877 msgstr ""
4878
4879 #. type: textblock
4880 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4881 msgid ""
4882 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4883 msgstr ""
4884
4885 #. type: textblock
4886 #: ../fish/guestfish-actions.pod:207
4887 msgid ""
4888 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4889 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4890 "containing that single node."
4891 msgstr ""
4892
4893 #. type: textblock
4894 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4895 msgid ""
4896 "On success this returns a pair containing the number of nodes in the "
4897 "nodeset, and a boolean flag if a node was created."
4898 msgstr ""
4899
4900 #. type: =head2
4901 #: ../fish/guestfish-actions.pod:215
4902 msgid "aug-defvar"
4903 msgstr ""
4904
4905 #. type: verbatim
4906 #: ../fish/guestfish-actions.pod:217
4907 #, no-wrap
4908 msgid ""
4909 " aug-defvar name expr\n"
4910 "\n"
4911 msgstr ""
4912
4913 #. type: textblock
4914 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4915 msgid ""
4916 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4917 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4918 msgstr ""
4919
4920 #. type: textblock
4921 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4922 msgid ""
4923 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4924 "evaluates to something which is not a nodeset."
4925 msgstr ""
4926
4927 #. type: =head2
4928 #: ../fish/guestfish-actions.pod:226
4929 msgid "aug-get"
4930 msgstr ""
4931
4932 #. type: verbatim
4933 #: ../fish/guestfish-actions.pod:228
4934 #, no-wrap
4935 msgid ""
4936 " aug-get augpath\n"
4937 "\n"
4938 msgstr ""
4939
4940 #. type: textblock
4941 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4942 msgid ""
4943 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4944 "node, the C<value> is returned."
4945 msgstr ""
4946
4947 #. type: =head2
4948 #: ../fish/guestfish-actions.pod:233
4949 msgid "aug-init"
4950 msgstr ""
4951
4952 #. type: verbatim
4953 #: ../fish/guestfish-actions.pod:235
4954 #, no-wrap
4955 msgid ""
4956 " aug-init root flags\n"
4957 "\n"
4958 msgstr ""
4959
4960 #. type: textblock
4961 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4962 msgid ""
4963 "Create a new Augeas handle for editing configuration files.  If there was "
4964 "any previous Augeas handle associated with this guestfs session, then it is "
4965 "closed."
4966 msgstr ""
4967
4968 #. type: textblock
4969 #: ../fish/guestfish-actions.pod:241
4970 msgid "You must call this before using any other L</aug-*> commands."
4971 msgstr ""
4972
4973 #. type: textblock
4974 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4975 msgid ""
4976 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4977 msgstr ""
4978
4979 #. type: textblock
4980 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4981 msgid ""
4982 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4983 "logical I<or> of the following integers:"
4984 msgstr ""
4985
4986 #. type: =item
4987 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4988 msgid "C<AUG_SAVE_BACKUP> = 1"
4989 msgstr "C<AUG_SAVE_BACKUP> = 1"
4990
4991 #. type: textblock
4992 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4993 msgid "Keep the original file with a C<.augsave> extension."
4994 msgstr ""
4995
4996 #. type: =item
4997 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4998 msgid "C<AUG_SAVE_NEWFILE> = 2"
4999 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5000
5001 #. type: textblock
5002 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5003 msgid ""
5004 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5005 "original.  Overrides C<AUG_SAVE_BACKUP>."
5006 msgstr ""
5007
5008 #. type: =item
5009 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5010 msgid "C<AUG_TYPE_CHECK> = 4"
5011 msgstr "C<AUG_TYPE_CHECK> = 4"
5012
5013 #. type: textblock
5014 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5015 msgid "Typecheck lenses."
5016 msgstr ""
5017
5018 #. type: textblock
5019 #: ../fish/guestfish-actions.pod:266
5020 msgid ""
5021 "This option is only useful when debugging Augeas lenses.  Use of this option "
5022 "may require additional memory for the libguestfs appliance.  You may need to "
5023 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5024 msgstr ""
5025
5026 #. type: =item
5027 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5028 msgid "C<AUG_NO_STDINC> = 8"
5029 msgstr "C<AUG_NO_STDINC> = 8"
5030
5031 #. type: textblock
5032 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5033 msgid "Do not use standard load path for modules."
5034 msgstr ""
5035
5036 #. type: =item
5037 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5038 msgid "C<AUG_SAVE_NOOP> = 16"
5039 msgstr "C<AUG_SAVE_NOOP> = 16"
5040
5041 #. type: textblock
5042 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5043 msgid "Make save a no-op, just record what would have been changed."
5044 msgstr ""
5045
5046 #. type: =item
5047 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5048 msgid "C<AUG_NO_LOAD> = 32"
5049 msgstr "C<AUG_NO_LOAD> = 32"
5050
5051 #. type: textblock
5052 #: ../fish/guestfish-actions.pod:281
5053 msgid "Do not load the tree in L</aug-init>."
5054 msgstr ""
5055
5056 #. type: textblock
5057 #: ../fish/guestfish-actions.pod:285
5058 msgid "To close the handle, you can call L</aug-close>."
5059 msgstr ""
5060
5061 #. type: textblock
5062 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5063 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5064 msgstr ""
5065
5066 #. type: =head2
5067 #: ../fish/guestfish-actions.pod:289
5068 msgid "aug-insert"
5069 msgstr ""
5070
5071 #. type: verbatim
5072 #: ../fish/guestfish-actions.pod:291
5073 #, no-wrap
5074 msgid ""
5075 " aug-insert augpath label true|false\n"
5076 "\n"
5077 msgstr ""
5078
5079 #. type: textblock
5080 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5081 msgid ""
5082 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5083 "or after C<path> (depending on the boolean flag C<before>)."
5084 msgstr ""
5085
5086 #. type: textblock
5087 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5088 msgid ""
5089 "C<path> must match exactly one existing node in the tree, and C<label> must "
5090 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5091 msgstr ""
5092
5093 #. type: =head2
5094 #: ../fish/guestfish-actions.pod:301
5095 msgid "aug-load"
5096 msgstr ""
5097
5098 #. type: verbatim
5099 #: ../fish/guestfish-actions.pod:303
5100 #, no-wrap
5101 msgid ""
5102 " aug-load\n"
5103 "\n"
5104 msgstr ""
5105
5106 #. type: textblock
5107 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5108 msgid "Load files into the tree."
5109 msgstr "Завантажити файли до ієрархії."
5110
5111 #. type: textblock
5112 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5113 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5114 msgstr ""
5115
5116 #. type: =head2
5117 #: ../fish/guestfish-actions.pod:310
5118 msgid "aug-ls"
5119 msgstr ""
5120
5121 #. type: verbatim
5122 #: ../fish/guestfish-actions.pod:312
5123 #, no-wrap
5124 msgid ""
5125 " aug-ls augpath\n"
5126 "\n"
5127 msgstr ""
5128
5129 #. type: textblock
5130 #: ../fish/guestfish-actions.pod:314
5131 msgid ""
5132 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5133 "resulting nodes into alphabetical order."
5134 msgstr ""
5135
5136 #. type: =head2
5137 #: ../fish/guestfish-actions.pod:317
5138 msgid "aug-match"
5139 msgstr ""
5140
5141 #. type: verbatim
5142 #: ../fish/guestfish-actions.pod:319
5143 #, no-wrap
5144 msgid ""
5145 " aug-match augpath\n"
5146 "\n"
5147 msgstr ""
5148
5149 #. type: textblock
5150 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5151 msgid ""
5152 "Returns a list of paths which match the path expression C<path>.  The "
5153 "returned paths are sufficiently qualified so that they match exactly one "
5154 "node in the current tree."
5155 msgstr ""
5156
5157 #. type: =head2
5158 #: ../fish/guestfish-actions.pod:325
5159 msgid "aug-mv"
5160 msgstr ""
5161
5162 #. type: verbatim
5163 #: ../fish/guestfish-actions.pod:327
5164 #, no-wrap
5165 msgid ""
5166 " aug-mv src dest\n"
5167 "\n"
5168 msgstr ""
5169
5170 #. type: textblock
5171 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5172 msgid ""
5173 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5174 "C<dest> is overwritten if it exists."
5175 msgstr ""
5176
5177 #. type: =head2
5178 #: ../fish/guestfish-actions.pod:332
5179 msgid "aug-rm"
5180 msgstr ""
5181
5182 #. type: verbatim
5183 #: ../fish/guestfish-actions.pod:334
5184 #, no-wrap
5185 msgid ""
5186 " aug-rm augpath\n"
5187 "\n"
5188 msgstr ""
5189
5190 #. type: textblock
5191 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5192 msgid "Remove C<path> and all of its children."
5193 msgstr ""
5194
5195 #. type: textblock
5196 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5197 msgid "On success this returns the number of entries which were removed."
5198 msgstr ""
5199
5200 #. type: =head2
5201 #: ../fish/guestfish-actions.pod:340
5202 msgid "aug-save"
5203 msgstr ""
5204
5205 #. type: verbatim
5206 #: ../fish/guestfish-actions.pod:342
5207 #, no-wrap
5208 msgid ""
5209 " aug-save\n"
5210 "\n"
5211 msgstr ""
5212
5213 #. type: textblock
5214 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5215 msgid "This writes all pending changes to disk."
5216 msgstr ""
5217
5218 #. type: textblock
5219 #: ../fish/guestfish-actions.pod:346
5220 msgid ""
5221 "The flags which were passed to L</aug-init> affect exactly how files are "
5222 "saved."
5223 msgstr ""
5224
5225 #. type: =head2
5226 #: ../fish/guestfish-actions.pod:349
5227 msgid "aug-set"
5228 msgstr ""
5229
5230 #. type: verbatim
5231 #: ../fish/guestfish-actions.pod:351
5232 #, no-wrap
5233 msgid ""
5234 " aug-set augpath val\n"
5235 "\n"
5236 msgstr ""
5237
5238 #. type: textblock
5239 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5240 msgid "Set the value associated with C<path> to C<val>."
5241 msgstr ""
5242
5243 #. type: textblock
5244 #: ../fish/guestfish-actions.pod:355
5245 msgid ""
5246 "In the Augeas API, it is possible to clear a node by setting the value to "
5247 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5248 "this call.  Instead you must use the L</aug-clear> call."
5249 msgstr ""
5250
5251 #. type: =head2
5252 #: ../fish/guestfish-actions.pod:360
5253 msgid "available"
5254 msgstr ""
5255
5256 #. type: verbatim
5257 #: ../fish/guestfish-actions.pod:362
5258 #, no-wrap
5259 msgid ""
5260 " available 'groups ...'\n"
5261 "\n"
5262 msgstr ""
5263
5264 #. type: textblock
5265 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5266 msgid ""
5267 "This command is used to check the availability of some groups of "
5268 "functionality in the appliance, which not all builds of the libguestfs "
5269 "appliance will be able to provide."
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../fish/guestfish-actions.pod:368
5274 msgid ""
5275 "The libguestfs groups, and the functions that those groups correspond to, "
5276 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5277 "runtime by calling L</available-all-groups>."
5278 msgstr ""
5279
5280 #. type: textblock
5281 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5282 msgid ""
5283 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5284 "\"]> would check for the availability of the Linux inotify functions and "
5285 "Augeas (configuration file editing) functions."
5286 msgstr ""
5287
5288 #. type: textblock
5289 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5290 msgid "The command returns no error if I<all> requested groups are available."
5291 msgstr ""
5292
5293 #. type: textblock
5294 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5295 msgid ""
5296 "It fails with an error if one or more of the requested groups is unavailable "
5297 "in the appliance."
5298 msgstr ""
5299
5300 #. type: textblock
5301 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5302 msgid ""
5303 "If an unknown group name is included in the list of groups then an error is "
5304 "always returned."
5305 msgstr ""
5306
5307 #. type: textblock
5308 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5309 msgid "I<Notes:>"
5310 msgstr "I<Нотатки:>"
5311
5312 #. type: textblock
5313 #: ../fish/guestfish-actions.pod:392
5314 msgid "You must call L</launch> before calling this function."
5315 msgstr ""
5316
5317 #. type: textblock
5318 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5319 msgid ""
5320 "The reason is because we don't know what groups are supported by the "
5321 "appliance/daemon until it is running and can be queried."
5322 msgstr ""
5323
5324 #. type: textblock
5325 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5326 msgid ""
5327 "If a group of functions is available, this does not necessarily mean that "
5328 "they will work.  You still have to check for errors when calling individual "
5329 "API functions even if they are available."
5330 msgstr ""
5331
5332 #. type: textblock
5333 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5334 msgid ""
5335 "It is usually the job of distro packagers to build complete functionality "
5336 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5337 "with all requirements satisfied, will support everything."
5338 msgstr ""
5339
5340 #. type: textblock
5341 #: ../fish/guestfish-actions.pod:414
5342 msgid ""
5343 "This call was added in version C<1.0.80>.  In previous versions of "
5344 "libguestfs all you could do would be to speculatively execute a command to "
5345 "find out if the daemon implemented it.  See also L</version>."
5346 msgstr ""
5347
5348 #. type: =head2
5349 #: ../fish/guestfish-actions.pod:421
5350 msgid "available-all-groups"
5351 msgstr ""
5352
5353 #. type: verbatim
5354 #: ../fish/guestfish-actions.pod:423
5355 #, no-wrap
5356 msgid ""
5357 " available-all-groups\n"
5358 "\n"
5359 msgstr ""
5360
5361 #. type: textblock
5362 #: ../fish/guestfish-actions.pod:425
5363 msgid ""
5364 "This command returns a list of all optional groups that this daemon knows "
5365 "about.  Note this returns both supported and unsupported groups.  To find "
5366 "out which ones the daemon can actually support you have to call L</"
5367 "available> on each member of the returned list."
5368 msgstr ""
5369
5370 #. type: textblock
5371 #: ../fish/guestfish-actions.pod:431
5372 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5373 msgstr ""
5374
5375 #. type: =head2
5376 #: ../fish/guestfish-actions.pod:433
5377 msgid "base64-in"
5378 msgstr ""
5379
5380 #. type: verbatim
5381 #: ../fish/guestfish-actions.pod:435
5382 #, no-wrap
5383 msgid ""
5384 " base64-in (base64file|-) filename\n"
5385 "\n"
5386 msgstr ""
5387
5388 #. type: textblock
5389 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5390 msgid ""
5391 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5392 msgstr ""
5393
5394 #. type: textblock
5395 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5396 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:867
5397 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
5398 #: ../fish/guestfish-actions.pod:4663 ../fish/guestfish-actions.pod:4675
5399 #: ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4697
5400 #: ../fish/guestfish-actions.pod:4749 ../fish/guestfish-actions.pod:4758
5401 #: ../fish/guestfish-actions.pod:4812 ../fish/guestfish-actions.pod:4835
5402 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5403 msgstr ""
5404
5405 #. type: =head2
5406 #: ../fish/guestfish-actions.pod:442
5407 msgid "base64-out"
5408 msgstr ""
5409
5410 #. type: verbatim
5411 #: ../fish/guestfish-actions.pod:444
5412 #, no-wrap
5413 msgid ""
5414 " base64-out filename (base64file|-)\n"
5415 "\n"
5416 msgstr ""
5417
5418 #. type: textblock
5419 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5420 msgid ""
5421 "This command downloads the contents of C<filename>, writing it out to local "
5422 "file C<base64file> encoded as base64."
5423 msgstr ""
5424
5425 #. type: =head2
5426 #: ../fish/guestfish-actions.pod:451
5427 msgid "blockdev-flushbufs"
5428 msgstr ""
5429
5430 #. type: verbatim
5431 #: ../fish/guestfish-actions.pod:453
5432 #, no-wrap
5433 msgid ""
5434 " blockdev-flushbufs device\n"
5435 "\n"
5436 msgstr ""
5437
5438 #. type: textblock
5439 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5440 msgid ""
5441 "This tells the kernel to flush internal buffers associated with C<device>."
5442 msgstr ""
5443
5444 #. type: textblock
5445 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5446 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5447 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5448 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5449 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5450 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5451 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5452 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5453 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5454 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5455 msgid "This uses the L<blockdev(8)> command."
5456 msgstr ""
5457
5458 #. type: =head2
5459 #: ../fish/guestfish-actions.pod:460
5460 msgid "blockdev-getbsz"
5461 msgstr ""
5462
5463 #. type: verbatim
5464 #: ../fish/guestfish-actions.pod:462
5465 #, no-wrap
5466 msgid ""
5467 " blockdev-getbsz device\n"
5468 "\n"
5469 msgstr ""
5470
5471 #. type: textblock
5472 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5473 msgid "This returns the block size of a device."
5474 msgstr ""
5475
5476 #. type: textblock
5477 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5478 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5479 msgid ""
5480 "(Note this is different from both I<size in blocks> and I<filesystem block "
5481 "size>)."
5482 msgstr ""
5483
5484 #. type: =head2
5485 #: ../fish/guestfish-actions.pod:471
5486 msgid "blockdev-getro"
5487 msgstr ""
5488
5489 #. type: verbatim
5490 #: ../fish/guestfish-actions.pod:473
5491 #, no-wrap
5492 msgid ""
5493 " blockdev-getro device\n"
5494 "\n"
5495 msgstr ""
5496
5497 #. type: textblock
5498 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5499 msgid ""
5500 "Returns a boolean indicating if the block device is read-only (true if read-"
5501 "only, false if not)."
5502 msgstr ""
5503
5504 #. type: =head2
5505 #: ../fish/guestfish-actions.pod:480
5506 msgid "blockdev-getsize64"
5507 msgstr ""
5508
5509 #. type: verbatim
5510 #: ../fish/guestfish-actions.pod:482
5511 #, no-wrap
5512 msgid ""
5513 " blockdev-getsize64 device\n"
5514 "\n"
5515 msgstr ""
5516
5517 #. type: textblock
5518 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5519 msgid "This returns the size of the device in bytes."
5520 msgstr ""
5521
5522 #. type: textblock
5523 #: ../fish/guestfish-actions.pod:486
5524 msgid "See also L</blockdev-getsz>."
5525 msgstr ""
5526
5527 #. type: =head2
5528 #: ../fish/guestfish-actions.pod:490
5529 msgid "blockdev-getss"
5530 msgstr ""
5531
5532 #. type: verbatim
5533 #: ../fish/guestfish-actions.pod:492
5534 #, no-wrap
5535 msgid ""
5536 " blockdev-getss device\n"
5537 "\n"
5538 msgstr ""
5539
5540 #. type: textblock
5541 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5542 msgid ""
5543 "This returns the size of sectors on a block device.  Usually 512, but can be "
5544 "larger for modern devices."
5545 msgstr ""
5546
5547 #. type: textblock
5548 #: ../fish/guestfish-actions.pod:497
5549 msgid ""
5550 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5551 msgstr ""
5552
5553 #. type: =head2
5554 #: ../fish/guestfish-actions.pod:502
5555 msgid "blockdev-getsz"
5556 msgstr ""
5557
5558 #. type: verbatim
5559 #: ../fish/guestfish-actions.pod:504
5560 #, no-wrap
5561 msgid ""
5562 " blockdev-getsz device\n"
5563 "\n"
5564 msgstr ""
5565
5566 #. type: textblock
5567 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5568 msgid ""
5569 "This returns the size of the device in units of 512-byte sectors (even if "
5570 "the sectorsize isn't 512 bytes ... weird)."
5571 msgstr ""
5572
5573 #. type: textblock
5574 #: ../fish/guestfish-actions.pod:509
5575 msgid ""
5576 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5577 "blockdev-getsize64> for the more useful I<size in bytes>."
5578 msgstr ""
5579
5580 #. type: =head2
5581 #: ../fish/guestfish-actions.pod:515
5582 msgid "blockdev-rereadpt"
5583 msgstr ""
5584
5585 #. type: verbatim
5586 #: ../fish/guestfish-actions.pod:517
5587 #, no-wrap
5588 msgid ""
5589 " blockdev-rereadpt device\n"
5590 "\n"
5591 msgstr ""
5592
5593 #. type: textblock
5594 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5595 msgid "Reread the partition table on C<device>."
5596 msgstr ""
5597
5598 #. type: =head2
5599 #: ../fish/guestfish-actions.pod:523
5600 msgid "blockdev-setbsz"
5601 msgstr ""
5602
5603 #. type: verbatim
5604 #: ../fish/guestfish-actions.pod:525
5605 #, no-wrap
5606 msgid ""
5607 " blockdev-setbsz device blocksize\n"
5608 "\n"
5609 msgstr ""
5610
5611 #. type: textblock
5612 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5613 msgid "This sets the block size of a device."
5614 msgstr ""
5615
5616 #. type: =head2
5617 #: ../fish/guestfish-actions.pod:534
5618 msgid "blockdev-setro"
5619 msgstr ""
5620
5621 #. type: verbatim
5622 #: ../fish/guestfish-actions.pod:536
5623 #, no-wrap
5624 msgid ""
5625 " blockdev-setro device\n"
5626 "\n"
5627 msgstr ""
5628
5629 #. type: textblock
5630 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5631 msgid "Sets the block device named C<device> to read-only."
5632 msgstr ""
5633
5634 #. type: =head2
5635 #: ../fish/guestfish-actions.pod:542
5636 msgid "blockdev-setrw"
5637 msgstr ""
5638
5639 #. type: verbatim
5640 #: ../fish/guestfish-actions.pod:544
5641 #, no-wrap
5642 msgid ""
5643 " blockdev-setrw device\n"
5644 "\n"
5645 msgstr ""
5646
5647 #. type: textblock
5648 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5649 msgid "Sets the block device named C<device> to read-write."
5650 msgstr ""
5651
5652 #. type: =head2
5653 #: ../fish/guestfish-actions.pod:550
5654 msgid "btrfs-filesystem-resize"
5655 msgstr ""
5656
5657 #. type: verbatim
5658 #: ../fish/guestfish-actions.pod:552
5659 #, no-wrap
5660 msgid ""
5661 " btrfs-filesystem-resize mountpoint [size:..]\n"
5662 "\n"
5663 msgstr ""
5664
5665 #. type: textblock
5666 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5667 msgid "This command resizes a btrfs filesystem."
5668 msgstr ""
5669
5670 #. type: textblock
5671 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5672 msgid ""
5673 "Note that unlike other resize calls, the filesystem has to be mounted and "
5674 "the parameter is the mountpoint not the device (this is a requirement of "
5675 "btrfs itself)."
5676 msgstr ""
5677
5678 #. type: textblock
5679 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3422
5680 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5194
5681 msgid "The optional parameters are:"
5682 msgstr ""
5683
5684 #. type: =item
5685 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3426
5686 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5198
5687 msgid "C<size>"
5688 msgstr ""
5689
5690 #. type: textblock
5691 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5692 msgid ""
5693 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5694 "resized to the maximum size."
5695 msgstr ""
5696
5697 #. type: textblock
5698 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5699 msgid "See also L<btrfs(8)>."
5700 msgstr ""
5701
5702 #. type: =head2
5703 #: ../fish/guestfish-actions.pod:575
5704 msgid "case-sensitive-path"
5705 msgstr ""
5706
5707 #. type: verbatim
5708 #: ../fish/guestfish-actions.pod:577
5709 #, no-wrap
5710 msgid ""
5711 " case-sensitive-path path\n"
5712 "\n"
5713 msgstr ""
5714
5715 #. type: textblock
5716 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5717 msgid ""
5718 "This can be used to resolve case insensitive paths on a filesystem which is "
5719 "case sensitive.  The use case is to resolve paths which you have read from "
5720 "Windows configuration files or the Windows Registry, to the true path."
5721 msgstr ""
5722
5723 #. type: textblock
5724 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5725 msgid ""
5726 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5727 "(and probably others), which is that although the underlying filesystem is "
5728 "case-insensitive, the driver exports the filesystem to Linux as case-"
5729 "sensitive."
5730 msgstr ""
5731
5732 #. type: textblock
5733 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5734 msgid ""
5735 "One consequence of this is that special directories such as C<c:\\windows> "
5736 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5737 "precise details of how they were created.  In Windows itself this would not "
5738 "be a problem."
5739 msgstr ""
5740
5741 #. type: textblock
5742 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5743 msgid ""
5744 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5745 "#posixfilenames1>"
5746 msgstr ""
5747
5748 #. type: textblock
5749 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5750 msgid ""
5751 "This function resolves the true case of each element in the path and returns "
5752 "the case-sensitive path."
5753 msgstr ""
5754
5755 #. type: textblock
5756 #: ../fish/guestfish-actions.pod:601
5757 msgid ""
5758 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5759 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5760 "the directories were originally created under Windows)."
5761 msgstr ""
5762
5763 #. type: textblock
5764 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5765 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5766 msgstr ""
5767
5768 #. type: textblock
5769 #: ../fish/guestfish-actions.pod:609
5770 msgid "See also L</realpath>."
5771 msgstr ""
5772
5773 #. type: =head2
5774 #: ../fish/guestfish-actions.pod:611
5775 msgid "cat"
5776 msgstr "cat"
5777
5778 #. type: verbatim
5779 #: ../fish/guestfish-actions.pod:613
5780 #, no-wrap
5781 msgid ""
5782 " cat path\n"
5783 "\n"
5784 msgstr ""
5785 " cat шлях\n"
5786 "\n"
5787
5788 #. type: textblock
5789 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3842
5790 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5837
5791 msgid "Return the contents of the file named C<path>."
5792 msgstr ""
5793
5794 #. type: textblock
5795 #: ../fish/guestfish-actions.pod:617
5796 msgid ""
5797 "Note that this function cannot correctly handle binary files (specifically, "
5798 "files containing C<\\0> character which is treated as end of string).  For "
5799 "those you need to use the L</read-file> or L</download> functions which have "
5800 "a more complex interface."
5801 msgstr ""
5802
5803 #. type: textblock
5804 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5805 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
5806 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
5807 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
5808 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
5809 #: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1584
5810 #: ../fish/guestfish-actions.pod:1594 ../fish/guestfish-actions.pod:1613
5811 #: ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:3727
5812 #: ../fish/guestfish-actions.pod:3803 ../fish/guestfish-actions.pod:3820
5813 #: ../fish/guestfish-actions.pod:3835 ../fish/guestfish-actions.pod:4504
5814 #: ../fish/guestfish-actions.pod:4550 ../fish/guestfish-actions.pod:4635
5815 #: ../fish/guestfish-actions.pod:4650 ../fish/guestfish-actions.pod:5056
5816 #: ../fish/guestfish-actions.pod:5068 ../fish/guestfish-actions.pod:5086
5817 #: ../fish/guestfish-actions.pod:5103 ../fish/guestfish-actions.pod:5113
5818 #: ../fish/guestfish-actions.pod:5170 ../fish/guestfish-actions.pod:5180
5819 #: ../fish/guestfish-actions.pod:5209 ../fish/guestfish-actions.pod:5219
5820 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5821 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
5822 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
5823 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
5824 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
5825 #: ../src/guestfs-actions.pod:2363 ../src/guestfs-actions.pod:2387
5826 #: ../src/guestfs-actions.pod:2404 ../src/guestfs-actions.pod:2433
5827 #: ../src/guestfs-actions.pod:5619 ../src/guestfs-actions.pod:5645
5828 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
5829 #: ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:6777
5830 #: ../src/guestfs-actions.pod:6832 ../src/guestfs-actions.pod:6978
5831 #: ../src/guestfs-actions.pod:7002 ../src/guestfs-actions.pod:7667
5832 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7720
5833 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7758
5834 #: ../src/guestfs-actions.pod:7852 ../src/guestfs-actions.pod:7871
5835 #: ../src/guestfs-actions.pod:7917 ../src/guestfs-actions.pod:7936
5836 msgid ""
5837 "Because of the message protocol, there is a transfer limit of somewhere "
5838 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5839 msgstr ""
5840
5841 #. type: =head2
5842 #: ../fish/guestfish-actions.pod:625
5843 msgid "checksum"
5844 msgstr "checksum"
5845
5846 #. type: verbatim
5847 #: ../fish/guestfish-actions.pod:627
5848 #, no-wrap
5849 msgid ""
5850 " checksum csumtype path\n"
5851 "\n"
5852 msgstr ""
5853
5854 #. type: textblock
5855 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5856 msgid ""
5857 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5858 msgstr ""
5859
5860 #. type: textblock
5861 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5862 msgid ""
5863 "The type of checksum to compute is given by the C<csumtype> parameter which "
5864 "must have one of the following values:"
5865 msgstr ""
5866
5867 #. type: =item
5868 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5869 msgid "C<crc>"
5870 msgstr "C<crc>"
5871
5872 #. type: textblock
5873 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5874 msgid ""
5875 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5876 "C<cksum> command."
5877 msgstr ""
5878
5879 #. type: =item
5880 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5881 msgid "C<md5>"
5882 msgstr "C<md5>"
5883
5884 #. type: textblock
5885 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5886 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5887 msgstr ""
5888
5889 #. type: =item
5890 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5891 msgid "C<sha1>"
5892 msgstr "C<sha1>"
5893
5894 #. type: textblock
5895 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5896 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5897 msgstr ""
5898
5899 #. type: =item
5900 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5901 msgid "C<sha224>"
5902 msgstr "C<sha224>"
5903
5904 #. type: textblock
5905 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5906 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5907 msgstr ""
5908
5909 #. type: =item
5910 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5911 msgid "C<sha256>"
5912 msgstr "C<sha256>"
5913
5914 #. type: textblock
5915 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5916 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5917 msgstr ""
5918
5919 #. type: =item
5920 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5921 msgid "C<sha384>"
5922 msgstr "C<sha384>"
5923
5924 #. type: textblock
5925 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5926 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5927 msgstr ""
5928
5929 #. type: =item
5930 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5931 msgid "C<sha512>"
5932 msgstr "C<sha512>"
5933
5934 #. type: textblock
5935 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5936 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5937 msgstr ""
5938
5939 #. type: textblock
5940 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5941 msgid "The checksum is returned as a printable string."
5942 msgstr ""
5943
5944 #. type: textblock
5945 #: ../fish/guestfish-actions.pod:670
5946 msgid "To get the checksum for a device, use L</checksum-device>."
5947 msgstr ""
5948
5949 #. type: textblock
5950 #: ../fish/guestfish-actions.pod:672
5951 msgid "To get the checksums for many files, use L</checksums-out>."
5952 msgstr ""
5953
5954 #. type: =head2
5955 #: ../fish/guestfish-actions.pod:674
5956 msgid "checksum-device"
5957 msgstr "checksum-device"
5958
5959 #. type: verbatim
5960 #: ../fish/guestfish-actions.pod:676
5961 #, no-wrap
5962 msgid ""
5963 " checksum-device csumtype device\n"
5964 "\n"
5965 msgstr ""
5966
5967 #. type: textblock
5968 #: ../fish/guestfish-actions.pod:678
5969 msgid ""
5970 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5971 "device named C<device>.  For the types of checksums supported see the L</"
5972 "checksum> command."
5973 msgstr ""
5974
5975 #. type: =head2
5976 #: ../fish/guestfish-actions.pod:682
5977 msgid "checksums-out"
5978 msgstr ""
5979
5980 #. type: verbatim
5981 #: ../fish/guestfish-actions.pod:684
5982 #, no-wrap
5983 msgid ""
5984 " checksums-out csumtype directory (sumsfile|-)\n"
5985 "\n"
5986 msgstr ""
5987
5988 #. type: textblock
5989 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5990 msgid ""
5991 "This command computes the checksums of all regular files in C<directory> and "
5992 "then emits a list of those checksums to the local output file C<sumsfile>."
5993 msgstr ""
5994
5995 #. type: textblock
5996 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5997 msgid ""
5998 "This can be used for verifying the integrity of a virtual machine.  However "
5999 "to be properly secure you should pay attention to the output of the checksum "
6000 "command (it uses the ones from GNU coreutils).  In particular when the "
6001 "filename is not printable, coreutils uses a special backslash syntax.  For "
6002 "more information, see the GNU coreutils info file."
6003 msgstr ""
6004
6005 #. type: =head2
6006 #: ../fish/guestfish-actions.pod:700
6007 msgid "chmod"
6008 msgstr "chmod"
6009
6010 #. type: verbatim
6011 #: ../fish/guestfish-actions.pod:702
6012 #, no-wrap
6013 msgid ""
6014 " chmod mode path\n"
6015 "\n"
6016 msgstr ""
6017
6018 #. type: textblock
6019 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6020 msgid ""
6021 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6022 "supported."
6023 msgstr ""
6024
6025 #. type: textblock
6026 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6027 msgid ""
6028 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6029 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6030 "C<700>."
6031 msgstr ""
6032
6033 #. type: textblock
6034 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3065
6035 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3214
6036 #: ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:1064
6037 #: ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4800
6038 #: ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4838
6039 msgid "The mode actually set is affected by the umask."
6040 msgstr ""
6041
6042 #. type: =head2
6043 #: ../fish/guestfish-actions.pod:713
6044 msgid "chown"
6045 msgstr "chown"
6046
6047 #. type: verbatim
6048 #: ../fish/guestfish-actions.pod:715
6049 #, no-wrap
6050 msgid ""
6051 " chown owner group path\n"
6052 "\n"
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6057 msgid "Change the file owner to C<owner> and group to C<group>."
6058 msgstr ""
6059
6060 #. type: textblock
6061 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2500
6062 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3662
6063 msgid ""
6064 "Only numeric uid and gid are supported.  If you want to use names, you will "
6065 "need to locate and parse the password file yourself (Augeas support makes "
6066 "this relatively easy)."
6067 msgstr ""
6068
6069 #. type: =head2
6070 #: ../fish/guestfish-actions.pod:723
6071 msgid "command"
6072 msgstr ""
6073
6074 #. type: verbatim
6075 #: ../fish/guestfish-actions.pod:725
6076 #, no-wrap
6077 msgid ""
6078 " command 'arguments ...'\n"
6079 "\n"
6080 msgstr ""
6081
6082 #. type: textblock
6083 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6084 msgid ""
6085 "This call runs a command from the guest filesystem.  The filesystem must be "
6086 "mounted, and must contain a compatible operating system (ie. something "
6087 "Linux, with the same or compatible processor architecture)."
6088 msgstr ""
6089
6090 #. type: textblock
6091 #: ../fish/guestfish-actions.pod:732
6092 msgid ""
6093 "The single parameter is an argv-style list of arguments.  The first element "
6094 "is the name of the program to run.  Subsequent elements are parameters.  The "
6095 "list must be non-empty (ie. must contain a program name).  Note that the "
6096 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6097 msgstr ""
6098
6099 #. type: textblock
6100 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6101 msgid "The return value is anything printed to I<stdout> by the command."
6102 msgstr ""
6103
6104 #. type: textblock
6105 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6106 msgid ""
6107 "If the command returns a non-zero exit status, then this function returns an "
6108 "error message.  The error message string is the content of I<stderr> from "
6109 "the command."
6110 msgstr ""
6111
6112 #. type: textblock
6113 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6114 msgid ""
6115 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6116 "bin>.  If you require a program from another location, you should provide "
6117 "the full path in the first parameter."
6118 msgstr ""
6119
6120 #. type: textblock
6121 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6122 msgid ""
6123 "Shared libraries and data files required by the program must be available on "
6124 "filesystems which are mounted in the correct places.  It is the caller's "
6125 "responsibility to ensure all filesystems that are needed are mounted at the "
6126 "right locations."
6127 msgstr ""
6128
6129 #. type: =head2
6130 #: ../fish/guestfish-actions.pod:760
6131 msgid "command-lines"
6132 msgstr ""
6133
6134 #. type: verbatim
6135 #: ../fish/guestfish-actions.pod:762
6136 #, no-wrap
6137 msgid ""
6138 " command-lines 'arguments ...'\n"
6139 "\n"
6140 msgstr ""
6141
6142 #. type: textblock
6143 #: ../fish/guestfish-actions.pod:764
6144 msgid ""
6145 "This is the same as L</command>, but splits the result into a list of lines."
6146 msgstr ""
6147
6148 #. type: textblock
6149 #: ../fish/guestfish-actions.pod:767
6150 msgid "See also: L</sh-lines>"
6151 msgstr ""
6152
6153 #. type: =head2
6154 #: ../fish/guestfish-actions.pod:772
6155 msgid "config"
6156 msgstr ""
6157
6158 #. type: verbatim
6159 #: ../fish/guestfish-actions.pod:774
6160 #, no-wrap
6161 msgid ""
6162 " config qemuparam qemuvalue\n"
6163 "\n"
6164 msgstr ""
6165
6166 #. type: textblock
6167 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
6168 msgid ""
6169 "This can be used to add arbitrary qemu command line parameters of the form "
6170 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6171 "setting some parameters which would interfere with parameters that we use."
6172 msgstr ""
6173
6174 #. type: textblock
6175 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
6176 msgid "The first character of C<param> string must be a C<-> (dash)."
6177 msgstr ""
6178
6179 #. type: textblock
6180 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
6181 msgid "C<value> can be NULL."
6182 msgstr ""
6183
6184 #. type: =head2
6185 #: ../fish/guestfish-actions.pod:785
6186 msgid "copy-size"
6187 msgstr ""
6188
6189 #. type: verbatim
6190 #: ../fish/guestfish-actions.pod:787
6191 #, no-wrap
6192 msgid ""
6193 " copy-size src dest size\n"
6194 "\n"
6195 msgstr ""
6196
6197 #. type: textblock
6198 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
6199 msgid ""
6200 "This command copies exactly C<size> bytes from one source device or file "
6201 "C<src> to another destination device or file C<dest>."
6202 msgstr ""
6203
6204 #. type: textblock
6205 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
6206 msgid ""
6207 "Note this will fail if the source is too short or if the destination is not "
6208 "large enough."
6209 msgstr ""
6210
6211 #. type: =head2
6212 #: ../fish/guestfish-actions.pod:795
6213 msgid "cp"
6214 msgstr "cp"
6215
6216 #. type: verbatim
6217 #: ../fish/guestfish-actions.pod:797
6218 #, no-wrap
6219 msgid ""
6220 " cp src dest\n"
6221 "\n"
6222 msgstr ""
6223
6224 #. type: textblock
6225 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
6226 msgid ""
6227 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6228 "destination filename or destination directory."
6229 msgstr ""
6230
6231 #. type: =head2
6232 #: ../fish/guestfish-actions.pod:802
6233 msgid "cp-a"
6234 msgstr "cp-a"
6235
6236 #. type: verbatim
6237 #: ../fish/guestfish-actions.pod:804
6238 #, no-wrap
6239 msgid ""
6240 " cp-a src dest\n"
6241 "\n"
6242 msgstr ""
6243
6244 #. type: textblock
6245 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
6246 msgid ""
6247 "This copies a file or directory from C<src> to C<dest> recursively using the "
6248 "C<cp -a> command."
6249 msgstr ""
6250
6251 #. type: =head2
6252 #: ../fish/guestfish-actions.pod:809
6253 msgid "dd"
6254 msgstr "dd"
6255
6256 #. type: verbatim
6257 #: ../fish/guestfish-actions.pod:811
6258 #, no-wrap
6259 msgid ""
6260 " dd src dest\n"
6261 "\n"
6262 msgstr ""
6263
6264 #. type: textblock
6265 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
6266 msgid ""
6267 "This command copies from one source device or file C<src> to another "
6268 "destination device or file C<dest>.  Normally you would use this to copy to "
6269 "or from a device or partition, for example to duplicate a filesystem."
6270 msgstr ""
6271
6272 #. type: textblock
6273 #: ../fish/guestfish-actions.pod:818
6274 msgid ""
6275 "If the destination is a device, it must be as large or larger than the "
6276 "source file or device, otherwise the copy will fail.  This command cannot do "
6277 "partial copies (see L</copy-size>)."
6278 msgstr ""
6279
6280 #. type: =head2
6281 #: ../fish/guestfish-actions.pod:822
6282 msgid "df"
6283 msgstr "df"
6284
6285 #. type: verbatim
6286 #: ../fish/guestfish-actions.pod:824
6287 #, no-wrap
6288 msgid ""
6289 " df\n"
6290 "\n"
6291 msgstr ""
6292 " df\n"
6293 "\n"
6294
6295 #. type: textblock
6296 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
6297 msgid "This command runs the C<df> command to report disk space used."
6298 msgstr ""
6299
6300 #. type: textblock
6301 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
6302 msgid ""
6303 "This command is mostly useful for interactive sessions.  It is I<not> "
6304 "intended that you try to parse the output string.  Use L</statvfs> from "
6305 "programs."
6306 msgstr ""
6307
6308 #. type: =head2
6309 #: ../fish/guestfish-actions.pod:832
6310 msgid "df-h"
6311 msgstr "df-h"
6312
6313 #. type: verbatim
6314 #: ../fish/guestfish-actions.pod:834
6315 #, no-wrap
6316 msgid ""
6317 " df-h\n"
6318 "\n"
6319 msgstr ""
6320 " df-h\n"
6321 "\n"
6322
6323 #. type: textblock
6324 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
6325 msgid ""
6326 "This command runs the C<df -h> command to report disk space used in human-"
6327 "readable format."
6328 msgstr ""
6329
6330 #. type: =head2
6331 #: ../fish/guestfish-actions.pod:843
6332 msgid "dmesg"
6333 msgstr "dmesg"
6334
6335 #. type: verbatim
6336 #: ../fish/guestfish-actions.pod:845
6337 #, no-wrap
6338 msgid ""
6339 " dmesg\n"
6340 "\n"
6341 msgstr ""
6342 " dmesg\n"
6343 "\n"
6344
6345 #. type: textblock
6346 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
6347 msgid ""
6348 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6349 "This is sometimes useful for extended debugging of problems."
6350 msgstr ""
6351
6352 #. type: textblock
6353 #: ../fish/guestfish-actions.pod:851
6354 msgid ""
6355 "Another way to get the same information is to enable verbose messages with "
6356 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6357 "before running the program."
6358 msgstr ""
6359
6360 #. type: =head2
6361 #: ../fish/guestfish-actions.pod:856
6362 msgid "download"
6363 msgstr "download"
6364
6365 #. type: verbatim
6366 #: ../fish/guestfish-actions.pod:858
6367 #, no-wrap
6368 msgid ""
6369 " download remotefilename (filename|-)\n"
6370 "\n"
6371 msgstr ""
6372
6373 #. type: textblock
6374 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
6375 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
6376 msgid ""
6377 "Download file C<remotefilename> and save it as C<filename> on the local "
6378 "machine."
6379 msgstr ""
6380
6381 #. type: textblock
6382 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4808
6383 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7237
6384 msgid "C<filename> can also be a named pipe."
6385 msgstr ""
6386
6387 #. type: textblock
6388 #: ../fish/guestfish-actions.pod:865
6389 msgid "See also L</upload>, L</cat>."
6390 msgstr ""
6391
6392 #. type: =head2
6393 #: ../fish/guestfish-actions.pod:869
6394 msgid "download-offset"
6395 msgstr "download-offset"
6396
6397 #. type: verbatim
6398 #: ../fish/guestfish-actions.pod:871
6399 #, no-wrap
6400 msgid ""
6401 " download-offset remotefilename (filename|-) offset size\n"
6402 "\n"
6403 msgstr ""
6404
6405 #. type: textblock
6406 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
6407 msgid ""
6408 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6409 "region must be within the file or device)."
6410 msgstr ""
6411
6412 #. type: textblock
6413 #: ../fish/guestfish-actions.pod:879
6414 msgid ""
6415 "Note that there is no limit on the amount of data that can be downloaded "
6416 "with this call, unlike with L</pread>, and this call always reads the full "
6417 "amount unless an error occurs."
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:884
6422 msgid "See also L</download>, L</pread>."
6423 msgstr ""
6424
6425 #. type: =head2
6426 #: ../fish/guestfish-actions.pod:888
6427 msgid "drop-caches"
6428 msgstr ""
6429
6430 #. type: verbatim
6431 #: ../fish/guestfish-actions.pod:890
6432 #, no-wrap
6433 msgid ""
6434 " drop-caches whattodrop\n"
6435 "\n"
6436 msgstr ""
6437
6438 #. type: textblock
6439 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6440 msgid ""
6441 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6442 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6443 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6444 msgstr ""
6445
6446 #. type: textblock
6447 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6448 msgid "Setting C<whattodrop> to 3 should drop everything."
6449 msgstr ""
6450
6451 #. type: textblock
6452 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6453 msgid ""
6454 "This automatically calls L<sync(2)> before the operation, so that the "
6455 "maximum guest memory is freed."
6456 msgstr ""
6457
6458 #. type: =head2
6459 #: ../fish/guestfish-actions.pod:902
6460 msgid "du"
6461 msgstr "du"
6462
6463 #. type: verbatim
6464 #: ../fish/guestfish-actions.pod:904
6465 #, no-wrap
6466 msgid ""
6467 " du path\n"
6468 "\n"
6469 msgstr ""
6470 " du шлях\n"
6471 "\n"
6472
6473 #. type: textblock
6474 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6475 msgid ""
6476 "This command runs the C<du -s> command to estimate file space usage for "
6477 "C<path>."
6478 msgstr ""
6479
6480 #. type: textblock
6481 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6482 msgid ""
6483 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6484 "estimate includes the contents of the directory and all subdirectories "
6485 "(recursively)."
6486 msgstr ""
6487
6488 #. type: textblock
6489 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6490 msgid ""
6491 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6492 msgstr ""
6493
6494 #. type: =head2
6495 #: ../fish/guestfish-actions.pod:916
6496 msgid "e2fsck-f"
6497 msgstr "e2fsck-f"
6498
6499 #. type: verbatim
6500 #: ../fish/guestfish-actions.pod:918
6501 #, no-wrap
6502 msgid ""
6503 " e2fsck-f device\n"
6504 "\n"
6505 msgstr ""
6506
6507 #. type: textblock
6508 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6509 msgid ""
6510 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6511 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6512 "clean (I<-f>)."
6513 msgstr ""
6514
6515 #. type: textblock
6516 #: ../fish/guestfish-actions.pod:924
6517 msgid ""
6518 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6519 "should use L</fsck>."
6520 msgstr ""
6521
6522 #. type: =head2
6523 #: ../fish/guestfish-actions.pod:927
6524 msgid "echo-daemon"
6525 msgstr ""
6526
6527 #. type: verbatim
6528 #: ../fish/guestfish-actions.pod:929
6529 #, no-wrap
6530 msgid ""
6531 " echo-daemon 'words ...'\n"
6532 "\n"
6533 msgstr ""
6534
6535 #. type: textblock
6536 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6537 msgid ""
6538 "This command concatenates the list of C<words> passed with single spaces "
6539 "between them and returns the resulting string."
6540 msgstr ""
6541
6542 #. type: textblock
6543 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6544 msgid "You can use this command to test the connection through to the daemon."
6545 msgstr ""
6546
6547 #. type: textblock
6548 #: ../fish/guestfish-actions.pod:936
6549 msgid "See also L</ping-daemon>."
6550 msgstr ""
6551
6552 #. type: =head2
6553 #: ../fish/guestfish-actions.pod:938
6554 msgid "egrep"
6555 msgstr "egrep"
6556
6557 #. type: verbatim
6558 #: ../fish/guestfish-actions.pod:940
6559 #, no-wrap
6560 msgid ""
6561 " egrep regex path\n"
6562 "\n"
6563 msgstr ""
6564
6565 #. type: textblock
6566 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6567 msgid ""
6568 "This calls the external C<egrep> program and returns the matching lines."
6569 msgstr ""
6570
6571 #. type: =head2
6572 #: ../fish/guestfish-actions.pod:948
6573 msgid "egrepi"
6574 msgstr "egrepi"
6575
6576 #. type: verbatim
6577 #: ../fish/guestfish-actions.pod:950
6578 #, no-wrap
6579 msgid ""
6580 " egrepi regex path\n"
6581 "\n"
6582 msgstr ""
6583
6584 #. type: textblock
6585 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6586 msgid ""
6587 "This calls the external C<egrep -i> program and returns the matching lines."
6588 msgstr ""
6589
6590 #. type: =head2
6591 #: ../fish/guestfish-actions.pod:958
6592 msgid "equal"
6593 msgstr "equal"
6594
6595 #. type: verbatim
6596 #: ../fish/guestfish-actions.pod:960
6597 #, no-wrap
6598 msgid ""
6599 " equal file1 file2\n"
6600 "\n"
6601 msgstr ""
6602 " equal файл1 файл2\n"
6603 "\n"
6604
6605 #. type: textblock
6606 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6607 msgid ""
6608 "This compares the two files C<file1> and C<file2> and returns true if their "
6609 "content is exactly equal, or false otherwise."
6610 msgstr ""
6611
6612 #. type: textblock
6613 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6614 msgid "The external L<cmp(1)> program is used for the comparison."
6615 msgstr ""
6616
6617 #. type: =head2
6618 #: ../fish/guestfish-actions.pod:967
6619 msgid "exists"
6620 msgstr "exists"
6621
6622 #. type: verbatim
6623 #: ../fish/guestfish-actions.pod:969
6624 #, no-wrap
6625 msgid ""
6626 " exists path\n"
6627 "\n"
6628 msgstr ""
6629 " exists шлях\n"
6630 "\n"
6631
6632 #. type: textblock
6633 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6634 msgid ""
6635 "This returns C<true> if and only if there is a file, directory (or anything) "
6636 "with the given C<path> name."
6637 msgstr ""
6638
6639 #. type: textblock
6640 #: ../fish/guestfish-actions.pod:974
6641 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6642 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6643
6644 #. type: =head2
6645 #: ../fish/guestfish-actions.pod:976
6646 msgid "fallocate"
6647 msgstr "fallocate"
6648
6649 #. type: verbatim
6650 #: ../fish/guestfish-actions.pod:978
6651 #, no-wrap
6652 msgid ""
6653 " fallocate path len\n"
6654 "\n"
6655 msgstr ""
6656 " fallocate шлях довжина\n"
6657 "\n"
6658
6659 #. type: textblock
6660 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6661 #: ../src/guestfs-actions.pod:1512 ../src/guestfs-actions.pod:1531
6662 msgid ""
6663 "This command preallocates a file (containing zero bytes) named C<path> of "
6664 "size C<len> bytes.  If the file exists already, it is overwritten."
6665 msgstr ""
6666
6667 #. type: textblock
6668 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1516
6669 msgid ""
6670 "Do not confuse this with the guestfish-specific C<alloc> command which "
6671 "allocates a file in the host and attaches it as a device."
6672 msgstr ""
6673
6674 #. type: textblock
6675 #: ../fish/guestfish-actions.pod:988
6676 msgid ""
6677 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6678 "instead."
6679 msgstr ""
6680
6681 #. type: =head2
6682 #: ../fish/guestfish-actions.pod:995
6683 msgid "fallocate64"
6684 msgstr "fallocate64"
6685
6686 #. type: verbatim
6687 #: ../fish/guestfish-actions.pod:997
6688 #, no-wrap
6689 msgid ""
6690 " fallocate64 path len\n"
6691 "\n"
6692 msgstr ""
6693 " fallocate64 шлях довжина\n"
6694 "\n"
6695
6696 #. type: textblock
6697 #: ../fish/guestfish-actions.pod:1003
6698 msgid ""
6699 "Note that this call allocates disk blocks for the file.  To create a sparse "
6700 "file use L</truncate-size> instead."
6701 msgstr ""
6702
6703 #. type: textblock
6704 #: ../fish/guestfish-actions.pod:1006
6705 msgid ""
6706 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6707 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6708 "maximum size of files created through that call to 1GB."
6709 msgstr ""
6710
6711 #. type: textblock
6712 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6713 msgid ""
6714 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6715 "commands which create a file in the host and attach it as a device."
6716 msgstr ""
6717
6718 #. type: =head2
6719 #: ../fish/guestfish-actions.pod:1015
6720 msgid "fgrep"
6721 msgstr "fgrep"
6722
6723 #. type: verbatim
6724 #: ../fish/guestfish-actions.pod:1017
6725 #, no-wrap
6726 msgid ""
6727 " fgrep pattern path\n"
6728 "\n"
6729 msgstr ""
6730 " fgrep шаблон шлях\n"
6731 "\n"
6732
6733 #. type: textblock
6734 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
6735 msgid ""
6736 "This calls the external C<fgrep> program and returns the matching lines."
6737 msgstr ""
6738
6739 #. type: =head2
6740 #: ../fish/guestfish-actions.pod:1025
6741 msgid "fgrepi"
6742 msgstr "fgrepi"
6743
6744 #. type: verbatim
6745 #: ../fish/guestfish-actions.pod:1027
6746 #, no-wrap
6747 msgid ""
6748 " fgrepi pattern path\n"
6749 "\n"
6750 msgstr ""
6751 " fgrepi шаблон шлях\n"
6752 "\n"
6753
6754 #. type: textblock
6755 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
6756 msgid ""
6757 "This calls the external C<fgrep -i> program and returns the matching lines."
6758 msgstr ""
6759
6760 #. type: =head2
6761 #: ../fish/guestfish-actions.pod:1035
6762 msgid "file"
6763 msgstr "file"
6764
6765 #. type: verbatim
6766 #: ../fish/guestfish-actions.pod:1037
6767 #, no-wrap
6768 msgid ""
6769 " file path\n"
6770 "\n"
6771 msgstr ""
6772 " file шлях\n"
6773 "\n"
6774
6775 #. type: textblock
6776 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
6777 msgid ""
6778 "This call uses the standard L<file(1)> command to determine the type or "
6779 "contents of the file."
6780 msgstr ""
6781
6782 #. type: textblock
6783 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
6784 msgid ""
6785 "This call will also transparently look inside various types of compressed "
6786 "file."
6787 msgstr ""
6788
6789 #. type: textblock
6790 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
6791 msgid ""
6792 "The exact command which runs is C<file -zb path>.  Note in particular that "
6793 "the filename is not prepended to the output (the I<-b> option)."
6794 msgstr ""
6795
6796 #. type: textblock
6797 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
6798 msgid ""
6799 "The output depends on the output of the underlying L<file(1)> command and it "
6800 "can change in future in ways beyond our control.  In other words, the output "
6801 "is not guaranteed by the ABI."
6802 msgstr ""
6803
6804 #. type: textblock
6805 #: ../fish/guestfish-actions.pod:1053
6806 msgid ""
6807 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6808 "(etc), L</is-zero>."
6809 msgstr ""
6810
6811 #. type: =head2
6812 #: ../fish/guestfish-actions.pod:1056
6813 msgid "file-architecture"
6814 msgstr "file-architecture"
6815
6816 #. type: verbatim
6817 #: ../fish/guestfish-actions.pod:1058
6818 #, no-wrap
6819 msgid ""
6820 " file-architecture filename\n"
6821 "\n"
6822 msgstr ""
6823 " file-architecture назва_файла\n"
6824 "\n"
6825
6826 #. type: textblock
6827 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
6828 msgid ""
6829 "This detects the architecture of the binary C<filename>, and returns it if "
6830 "known."
6831 msgstr ""
6832
6833 #. type: textblock
6834 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
6835 msgid "Currently defined architectures are:"
6836 msgstr ""
6837
6838 #. type: =item
6839 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6840 msgid "\"i386\""
6841 msgstr "\"i386\""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6845 msgid ""
6846 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6847 "irrespective of the precise processor requirements of the binary."
6848 msgstr ""
6849
6850 #. type: =item
6851 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
6852 msgid "\"x86_64\""
6853 msgstr "\"x86_64\""
6854
6855 #. type: textblock
6856 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
6857 msgid "64 bit x86-64."
6858 msgstr ""
6859
6860 #. type: =item
6861 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
6862 msgid "\"sparc\""
6863 msgstr ""
6864
6865 #. type: textblock
6866 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
6867 msgid "32 bit SPARC."
6868 msgstr ""
6869
6870 #. type: =item
6871 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
6872 msgid "\"sparc64\""
6873 msgstr ""
6874
6875 #. type: textblock
6876 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
6877 msgid "64 bit SPARC V9 and above."
6878 msgstr ""
6879
6880 #. type: =item
6881 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
6882 msgid "\"ia64\""
6883 msgstr "\"ia64\""
6884
6885 #. type: textblock
6886 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
6887 msgid "Intel Itanium."
6888 msgstr "Intel Itanium."
6889
6890 #. type: =item
6891 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
6892 msgid "\"ppc\""
6893 msgstr ""
6894
6895 #. type: textblock
6896 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
6897 msgid "32 bit Power PC."
6898 msgstr ""
6899
6900 #. type: =item
6901 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
6902 msgid "\"ppc64\""
6903 msgstr ""
6904
6905 #. type: textblock
6906 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6907 msgid "64 bit Power PC."
6908 msgstr ""
6909
6910 #. type: textblock
6911 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6912 msgid "Libguestfs may return other architecture strings in future."
6913 msgstr ""
6914
6915 #. type: textblock
6916 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6917 msgid "The function works on at least the following types of files:"
6918 msgstr ""
6919
6920 #. type: textblock
6921 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6922 msgid "many types of Un*x and Linux binary"
6923 msgstr ""
6924
6925 #. type: textblock
6926 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6927 msgid "many types of Un*x and Linux shared library"
6928 msgstr ""
6929
6930 #. type: textblock
6931 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6932 msgid "Windows Win32 and Win64 binaries"
6933 msgstr ""
6934
6935 #. type: textblock
6936 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6937 msgid "Windows Win32 and Win64 DLLs"
6938 msgstr ""
6939
6940 #. type: textblock
6941 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6942 msgid "Win32 binaries and DLLs return C<i386>."
6943 msgstr ""
6944
6945 #. type: textblock
6946 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6947 msgid "Win64 binaries and DLLs return C<x86_64>."
6948 msgstr ""
6949
6950 #. type: textblock
6951 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6952 msgid "Linux kernel modules"
6953 msgstr ""
6954
6955 #. type: textblock
6956 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6957 msgid "Linux new-style initrd images"
6958 msgstr ""
6959
6960 #. type: textblock
6961 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6962 msgid "some non-x86 Linux vmlinuz kernels"
6963 msgstr ""
6964
6965 #. type: textblock
6966 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6967 msgid "What it can't do currently:"
6968 msgstr ""
6969
6970 #. type: textblock
6971 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6972 msgid "static libraries (libfoo.a)"
6973 msgstr ""
6974
6975 #. type: textblock
6976 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6977 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6978 msgstr ""
6979
6980 #. type: textblock
6981 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
6982 msgid "x86 Linux vmlinuz kernels"
6983 msgstr ""
6984
6985 #. type: textblock
6986 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
6987 msgid ""
6988 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6989 "compressed code, and are horribly hard to unpack.  If you want to find the "
6990 "architecture of a kernel, use the architecture of the associated initrd or "
6991 "kernel module(s) instead."
6992 msgstr ""
6993
6994 #. type: =head2
6995 #: ../fish/guestfish-actions.pod:1161
6996 msgid "filesize"
6997 msgstr "filesize"
6998
6999 #. type: verbatim
7000 #: ../fish/guestfish-actions.pod:1163
7001 #, no-wrap
7002 msgid ""
7003 " filesize file\n"
7004 "\n"
7005 msgstr ""
7006 " filesize файл\n"
7007 "\n"
7008
7009 #. type: textblock
7010 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
7011 msgid "This command returns the size of C<file> in bytes."
7012 msgstr ""
7013
7014 #. type: textblock
7015 #: ../fish/guestfish-actions.pod:1167
7016 msgid ""
7017 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7018 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
7019 msgstr ""
7020
7021 #. type: =head2
7022 #: ../fish/guestfish-actions.pod:1171
7023 msgid "fill"
7024 msgstr "fill"
7025
7026 #. type: verbatim
7027 #: ../fish/guestfish-actions.pod:1173
7028 #, no-wrap
7029 msgid ""
7030 " fill c len path\n"
7031 "\n"
7032 msgstr ""
7033
7034 #. type: textblock
7035 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
7036 msgid ""
7037 "This command creates a new file called C<path>.  The initial content of the "
7038 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7039 "[0..255]>."
7040 msgstr ""
7041
7042 #. type: textblock
7043 #: ../fish/guestfish-actions.pod:1179
7044 msgid ""
7045 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7046 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7047 "L</fill-pattern>."
7048 msgstr ""
7049
7050 #. type: =head2
7051 #: ../fish/guestfish-actions.pod:1184
7052 msgid "fill-pattern"
7053 msgstr "fill-pattern"
7054
7055 #. type: verbatim
7056 #: ../fish/guestfish-actions.pod:1186
7057 #, no-wrap
7058 msgid ""
7059 " fill-pattern pattern len path\n"
7060 "\n"
7061 msgstr ""
7062
7063 #. type: textblock
7064 #: ../fish/guestfish-actions.pod:1188
7065 msgid ""
7066 "This function is like L</fill> except that it creates a new file of length "
7067 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7068 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7069 "bytes."
7070 msgstr ""
7071
7072 #. type: =head2
7073 #: ../fish/guestfish-actions.pod:1193
7074 msgid "find"
7075 msgstr "find"
7076
7077 #. type: verbatim
7078 #: ../fish/guestfish-actions.pod:1195
7079 #, no-wrap
7080 msgid ""
7081 " find directory\n"
7082 "\n"
7083 msgstr ""
7084 " find каталог\n"
7085 "\n"
7086
7087 #. type: textblock
7088 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
7089 msgid ""
7090 "This command lists out all files and directories, recursively, starting at "
7091 "C<directory>.  It is essentially equivalent to running the shell command "
7092 "C<find directory -print> but some post-processing happens on the output, "
7093 "described below."
7094 msgstr ""
7095
7096 #. type: textblock
7097 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
7098 msgid ""
7099 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7100 "structure was:"
7101 msgstr ""
7102
7103 #. type: verbatim
7104 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
7105 #, no-wrap
7106 msgid ""
7107 " /tmp/a\n"
7108 " /tmp/b\n"
7109 " /tmp/c/d\n"
7110 "\n"
7111 msgstr ""
7112
7113 #. type: textblock
7114 #: ../fish/guestfish-actions.pod:1209
7115 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7116 msgstr ""
7117
7118 #. type: verbatim
7119 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
7120 #, no-wrap
7121 msgid ""
7122 " a\n"
7123 " b\n"
7124 " c\n"
7125 " c/d\n"
7126 "\n"
7127 msgstr ""
7128
7129 #. type: textblock
7130 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
7131 msgid "If C<directory> is not a directory, then this command returns an error."
7132 msgstr ""
7133
7134 #. type: textblock
7135 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
7136 msgid "The returned list is sorted."
7137 msgstr ""
7138
7139 #. type: textblock
7140 #: ../fish/guestfish-actions.pod:1222
7141 msgid "See also L</find0>."
7142 msgstr "Див. також L</find0>."
7143
7144 #. type: =head2
7145 #: ../fish/guestfish-actions.pod:1227
7146 msgid "find0"
7147 msgstr "find0"
7148
7149 #. type: verbatim
7150 #: ../fish/guestfish-actions.pod:1229
7151 #, no-wrap
7152 msgid ""
7153 " find0 directory (files|-)\n"
7154 "\n"
7155 msgstr ""
7156 " find0 каталог (файли|-)\n"
7157 "\n"
7158
7159 #. type: textblock
7160 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
7161 msgid ""
7162 "This command lists out all files and directories, recursively, starting at "
7163 "C<directory>, placing the resulting list in the external file called "
7164 "C<files>."
7165 msgstr ""
7166
7167 #. type: textblock
7168 #: ../fish/guestfish-actions.pod:1235
7169 msgid ""
7170 "This command works the same way as L</find> with the following exceptions:"
7171 msgstr ""
7172
7173 #. type: textblock
7174 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
7175 msgid "The resulting list is written to an external file."
7176 msgstr ""
7177
7178 #. type: textblock
7179 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
7180 msgid ""
7181 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7182 "L<find(1)> option I<-print0>."
7183 msgstr ""
7184
7185 #. type: textblock
7186 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
7187 msgid "This command is not limited in the number of names that it can return."
7188 msgstr ""
7189
7190 #. type: textblock
7191 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
7192 msgid "The result list is not sorted."
7193 msgstr ""
7194
7195 #. type: =head2
7196 #: ../fish/guestfish-actions.pod:1262
7197 msgid "findfs-label"
7198 msgstr "findfs-label"
7199
7200 #. type: verbatim
7201 #: ../fish/guestfish-actions.pod:1264
7202 #, no-wrap
7203 msgid ""
7204 " findfs-label label\n"
7205 "\n"
7206 msgstr ""
7207 " findfs-label мітка\n"
7208 "\n"
7209
7210 #. type: textblock
7211 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
7212 msgid ""
7213 "This command searches the filesystems and returns the one which has the "
7214 "given label.  An error is returned if no such filesystem can be found."
7215 msgstr ""
7216
7217 #. type: textblock
7218 #: ../fish/guestfish-actions.pod:1270
7219 msgid "To find the label of a filesystem, use L</vfs-label>."
7220 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7221
7222 #. type: =head2
7223 #: ../fish/guestfish-actions.pod:1272
7224 msgid "findfs-uuid"
7225 msgstr "findfs-uuid"
7226
7227 #. type: verbatim
7228 #: ../fish/guestfish-actions.pod:1274
7229 #, no-wrap
7230 msgid ""
7231 " findfs-uuid uuid\n"
7232 "\n"
7233 msgstr ""
7234 " findfs-uuid uuid\n"
7235 "\n"
7236
7237 #. type: textblock
7238 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
7239 msgid ""
7240 "This command searches the filesystems and returns the one which has the "
7241 "given UUID.  An error is returned if no such filesystem can be found."
7242 msgstr ""
7243
7244 #. type: textblock
7245 #: ../fish/guestfish-actions.pod:1280
7246 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7247 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7248
7249 #. type: =head2
7250 #: ../fish/guestfish-actions.pod:1282
7251 msgid "fsck"
7252 msgstr "fsck"
7253
7254 #. type: verbatim
7255 #: ../fish/guestfish-actions.pod:1284
7256 #, no-wrap
7257 msgid ""
7258 " fsck fstype device\n"
7259 "\n"
7260 msgstr ""
7261 " fsck тип_файлової_системи пристрій\n"
7262 "\n"
7263
7264 #. type: textblock
7265 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
7266 msgid ""
7267 "This runs the filesystem checker (fsck) on C<device> which should have "
7268 "filesystem type C<fstype>."
7269 msgstr ""
7270
7271 #. type: textblock
7272 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
7273 msgid ""
7274 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7275 "codes from C<fsck>."
7276 msgstr ""
7277
7278 #. type: textblock
7279 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
7280 msgid "Multiple status codes can be summed together."
7281 msgstr ""
7282
7283 #. type: textblock
7284 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
7285 msgid ""
7286 "A non-zero return code can mean \"success\", for example if errors have been "
7287 "corrected on the filesystem."
7288 msgstr ""
7289
7290 #. type: textblock
7291 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
7292 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7293 msgstr ""
7294
7295 #. type: textblock
7296 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
7297 msgid ""
7298 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7299 msgstr ""
7300
7301 #. type: =head2
7302 #: ../fish/guestfish-actions.pod:1314
7303 msgid "get-append"
7304 msgstr "get-append"
7305
7306 #. type: verbatim
7307 #: ../fish/guestfish-actions.pod:1316
7308 #, no-wrap
7309 msgid ""
7310 " get-append\n"
7311 "\n"
7312 msgstr ""
7313 " get-append\n"
7314 "\n"
7315
7316 #. type: textblock
7317 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
7318 msgid ""
7319 "Return the additional kernel options which are added to the guest kernel "
7320 "command line."
7321 msgstr ""
7322
7323 #. type: textblock
7324 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
7325 msgid "If C<NULL> then no options are added."
7326 msgstr ""
7327
7328 #. type: =head2
7329 #: ../fish/guestfish-actions.pod:1323
7330 msgid "get-attach-method"
7331 msgstr "get-attach-method"
7332
7333 #. type: verbatim
7334 #: ../fish/guestfish-actions.pod:1325
7335 #, no-wrap
7336 msgid ""
7337 " get-attach-method\n"
7338 "\n"
7339 msgstr ""
7340 " get-attach-method\n"
7341 "\n"
7342
7343 #. type: textblock
7344 #: ../fish/guestfish-actions.pod:1327
7345 msgid "Return the current attach method.  See L</set-attach-method>."
7346 msgstr ""
7347
7348 #. type: =head2
7349 #: ../fish/guestfish-actions.pod:1329
7350 msgid "get-autosync"
7351 msgstr "get-autosync"
7352
7353 #. type: verbatim
7354 #: ../fish/guestfish-actions.pod:1331
7355 #, no-wrap
7356 msgid ""
7357 " get-autosync\n"
7358 "\n"
7359 msgstr ""
7360 " get-autosync\n"
7361 "\n"
7362
7363 #. type: textblock
7364 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
7365 msgid "Get the autosync flag."
7366 msgstr ""
7367
7368 #. type: =head2
7369 #: ../fish/guestfish-actions.pod:1335
7370 msgid "get-direct"
7371 msgstr "get-direct"
7372
7373 #. type: verbatim
7374 #: ../fish/guestfish-actions.pod:1337
7375 #, no-wrap
7376 msgid ""
7377 " get-direct\n"
7378 "\n"
7379 msgstr ""
7380 " get-direct\n"
7381 "\n"
7382
7383 #. type: textblock
7384 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
7385 msgid "Return the direct appliance mode flag."
7386 msgstr ""
7387
7388 #. type: =head2
7389 #: ../fish/guestfish-actions.pod:1341
7390 msgid "get-e2label"
7391 msgstr "get-e2label"
7392
7393 #. type: verbatim
7394 #: ../fish/guestfish-actions.pod:1343
7395 #, no-wrap
7396 msgid ""
7397 " get-e2label device\n"
7398 "\n"
7399 msgstr ""
7400 " get-e2label пристрій\n"
7401 "\n"
7402
7403 #. type: textblock
7404 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2011
7405 msgid ""
7406 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7407 msgstr ""
7408
7409 #. type: textblock
7410 #: ../fish/guestfish-actions.pod:1348
7411 msgid ""
7412 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7413 "instead."
7414 msgstr ""
7415
7416 #. type: =head2
7417 #: ../fish/guestfish-actions.pod:1355
7418 msgid "get-e2uuid"
7419 msgstr "get-e2uuid"
7420
7421 #. type: verbatim
7422 #: ../fish/guestfish-actions.pod:1357
7423 #, no-wrap
7424 msgid ""
7425 " get-e2uuid device\n"
7426 "\n"
7427 msgstr ""
7428 " get-e2uuid пристрій\n"
7429 "\n"
7430
7431 #. type: textblock
7432 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2032
7433 msgid ""
7434 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7435 msgstr ""
7436
7437 #. type: textblock
7438 #: ../fish/guestfish-actions.pod:1362
7439 msgid ""
7440 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7441 "instead."
7442 msgstr ""
7443
7444 #. type: =head2
7445 #: ../fish/guestfish-actions.pod:1369
7446 msgid "get-memsize"
7447 msgstr "get-memsize"
7448
7449 #. type: verbatim
7450 #: ../fish/guestfish-actions.pod:1371
7451 #, no-wrap
7452 msgid ""
7453 " get-memsize\n"
7454 "\n"
7455 msgstr ""
7456 " get-memsize\n"
7457 "\n"
7458
7459 #. type: textblock
7460 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7461 msgid ""
7462 "This gets the memory size in megabytes allocated to the qemu subprocess."
7463 msgstr ""
7464
7465 #. type: textblock
7466 #: ../fish/guestfish-actions.pod:1376
7467 msgid ""
7468 "If L</set-memsize> was not called on this handle, and if "
7469 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7470 "value for memsize."
7471 msgstr ""
7472
7473 #. type: textblock
7474 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7475 #: ../fish/guestfish-actions.pod:4168 ../fish/guestfish-actions.pod:4270
7476 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7477 #: ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6424
7478 msgid ""
7479 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7480 msgstr ""
7481
7482 #. type: =head2
7483 #: ../fish/guestfish-actions.pod:1383
7484 msgid "get-network"
7485 msgstr "get-network"
7486
7487 #. type: verbatim
7488 #: ../fish/guestfish-actions.pod:1385
7489 #, no-wrap
7490 msgid ""
7491 " get-network\n"
7492 "\n"
7493 msgstr ""
7494 " get-network\n"
7495 "\n"
7496
7497 #. type: textblock
7498 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7499 msgid "This returns the enable network flag."
7500 msgstr ""
7501
7502 #. type: =head2
7503 #: ../fish/guestfish-actions.pod:1389
7504 msgid "get-path"
7505 msgstr "get-path"
7506
7507 #. type: verbatim
7508 #: ../fish/guestfish-actions.pod:1391
7509 #, no-wrap
7510 msgid ""
7511 " get-path\n"
7512 "\n"
7513 msgstr ""
7514 " get-path\n"
7515 "\n"
7516
7517 #. type: textblock
7518 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7519 msgid "Return the current search path."
7520 msgstr ""
7521
7522 #. type: textblock
7523 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7524 msgid ""
7525 "This is always non-NULL.  If it wasn't set already, then this will return "
7526 "the default path."
7527 msgstr ""
7528
7529 #. type: =head2
7530 #: ../fish/guestfish-actions.pod:1398
7531 msgid "get-pgroup"
7532 msgstr ""
7533
7534 #. type: verbatim
7535 #: ../fish/guestfish-actions.pod:1400
7536 #, no-wrap
7537 msgid ""
7538 " get-pgroup\n"
7539 "\n"
7540 msgstr ""
7541
7542 #. type: textblock
7543 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7544 msgid "This returns the process group flag."
7545 msgstr ""
7546
7547 #. type: =head2
7548 #: ../fish/guestfish-actions.pod:1404
7549 msgid "get-pid"
7550 msgstr "get-pid"
7551
7552 #. type: =head2
7553 #: ../fish/guestfish-actions.pod:1406
7554 msgid "pid"
7555 msgstr ""
7556
7557 #. type: verbatim
7558 #: ../fish/guestfish-actions.pod:1408
7559 #, no-wrap
7560 msgid ""
7561 " get-pid\n"
7562 "\n"
7563 msgstr ""
7564 " get-pid\n"
7565 "\n"
7566
7567 #. type: textblock
7568 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7569 msgid ""
7570 "Return the process ID of the qemu subprocess.  If there is no qemu "
7571 "subprocess, then this will return an error."
7572 msgstr ""
7573
7574 #. type: textblock
7575 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7576 msgid "This is an internal call used for debugging and testing."
7577 msgstr ""
7578
7579 #. type: =head2
7580 #: ../fish/guestfish-actions.pod:1415
7581 msgid "get-qemu"
7582 msgstr "get-qemu"
7583
7584 #. type: verbatim
7585 #: ../fish/guestfish-actions.pod:1417
7586 #, no-wrap
7587 msgid ""
7588 " get-qemu\n"
7589 "\n"
7590 msgstr ""
7591 " get-qemu\n"
7592 "\n"
7593
7594 #. type: textblock
7595 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7596 msgid "Return the current qemu binary."
7597 msgstr ""
7598
7599 #. type: textblock
7600 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7601 msgid ""
7602 "This is always non-NULL.  If it wasn't set already, then this will return "
7603 "the default qemu binary name."
7604 msgstr ""
7605
7606 #. type: =head2
7607 #: ../fish/guestfish-actions.pod:1424
7608 msgid "get-recovery-proc"
7609 msgstr "get-recovery-proc"
7610
7611 #. type: verbatim
7612 #: ../fish/guestfish-actions.pod:1426
7613 #, no-wrap
7614 msgid ""
7615 " get-recovery-proc\n"
7616 "\n"
7617 msgstr ""
7618 " get-recovery-proc\n"
7619 "\n"
7620
7621 #. type: textblock
7622 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7623 msgid "Return the recovery process enabled flag."
7624 msgstr ""
7625
7626 #. type: =head2
7627 #: ../fish/guestfish-actions.pod:1430
7628 msgid "get-selinux"
7629 msgstr "get-selinux"
7630
7631 #. type: verbatim
7632 #: ../fish/guestfish-actions.pod:1432
7633 #, no-wrap
7634 msgid ""
7635 " get-selinux\n"
7636 "\n"
7637 msgstr ""
7638 " get-selinux\n"
7639 "\n"
7640
7641 #. type: textblock
7642 #: ../fish/guestfish-actions.pod:1434
7643 msgid ""
7644 "This returns the current setting of the selinux flag which is passed to the "
7645 "appliance at boot time.  See L</set-selinux>."
7646 msgstr ""
7647
7648 #. type: =head2
7649 #: ../fish/guestfish-actions.pod:1440
7650 msgid "get-state"
7651 msgstr "get-state"
7652
7653 #. type: verbatim
7654 #: ../fish/guestfish-actions.pod:1442
7655 #, no-wrap
7656 msgid ""
7657 " get-state\n"
7658 "\n"
7659 msgstr ""
7660 " get-state\n"
7661 "\n"
7662
7663 #. type: textblock
7664 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7665 msgid ""
7666 "This returns the current state as an opaque integer.  This is only useful "
7667 "for printing debug and internal error messages."
7668 msgstr ""
7669
7670 #. type: textblock
7671 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2367
7672 #: ../fish/guestfish-actions.pod:2385 ../fish/guestfish-actions.pod:2423
7673 #: ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:2159
7674 #: ../src/guestfs-actions.pod:3439 ../src/guestfs-actions.pod:3468
7675 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3556
7676 msgid "For more information on states, see L<guestfs(3)>."
7677 msgstr ""
7678
7679 #. type: =head2
7680 #: ../fish/guestfish-actions.pod:1449
7681 msgid "get-trace"
7682 msgstr "get-trace"
7683
7684 #. type: verbatim
7685 #: ../fish/guestfish-actions.pod:1451
7686 #, no-wrap
7687 msgid ""
7688 " get-trace\n"
7689 "\n"
7690 msgstr ""
7691 " get-trace\n"
7692 "\n"
7693
7694 #. type: textblock
7695 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7696 msgid "Return the command trace flag."
7697 msgstr ""
7698
7699 #. type: =head2
7700 #: ../fish/guestfish-actions.pod:1455
7701 msgid "get-umask"
7702 msgstr "get-umask"
7703
7704 #. type: verbatim
7705 #: ../fish/guestfish-actions.pod:1457
7706 #, no-wrap
7707 msgid ""
7708 " get-umask\n"
7709 "\n"
7710 msgstr ""
7711 " get-umask\n"
7712 "\n"
7713
7714 #. type: textblock
7715 #: ../fish/guestfish-actions.pod:1459
7716 msgid ""
7717 "Return the current umask.  By default the umask is C<022> unless it has been "
7718 "set by calling L</umask>."
7719 msgstr ""
7720
7721 #. type: =head2
7722 #: ../fish/guestfish-actions.pod:1462
7723 msgid "get-verbose"
7724 msgstr "get-verbose"
7725
7726 #. type: verbatim
7727 #: ../fish/guestfish-actions.pod:1464
7728 #, no-wrap
7729 msgid ""
7730 " get-verbose\n"
7731 "\n"
7732 msgstr ""
7733 " get-verbose\n"
7734 "\n"
7735
7736 #. type: textblock
7737 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7738 msgid "This returns the verbose messages flag."
7739 msgstr ""
7740
7741 #. type: =head2
7742 #: ../fish/guestfish-actions.pod:1468
7743 msgid "getcon"
7744 msgstr "getcon"
7745
7746 #. type: verbatim
7747 #: ../fish/guestfish-actions.pod:1470
7748 #, no-wrap
7749 msgid ""
7750 " getcon\n"
7751 "\n"
7752 msgstr ""
7753 " getcon\n"
7754 "\n"
7755
7756 #. type: textblock
7757 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7758 msgid "This gets the SELinux security context of the daemon."
7759 msgstr ""
7760
7761 #. type: textblock
7762 #: ../fish/guestfish-actions.pod:1474
7763 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7764 msgstr ""
7765
7766 #. type: =head2
7767 #: ../fish/guestfish-actions.pod:1477
7768 msgid "getxattr"
7769 msgstr "getxattr"
7770
7771 #. type: verbatim
7772 #: ../fish/guestfish-actions.pod:1479
7773 #, no-wrap
7774 msgid ""
7775 " getxattr path name\n"
7776 "\n"
7777 msgstr ""
7778 " getxattr шлях назва\n"
7779 "\n"
7780
7781 #. type: textblock
7782 #: ../fish/guestfish-actions.pod:1481
7783 msgid ""
7784 "Get a single extended attribute from file C<path> named C<name>.  This call "
7785 "follows symlinks.  If you want to lookup an extended attribute for the "
7786 "symlink itself, use L</lgetxattr>."
7787 msgstr ""
7788
7789 #. type: textblock
7790 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2512
7791 msgid ""
7792 "Normally it is better to get all extended attributes from a file in one go "
7793 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7794 "buggy and do not provide a way to list out attributes.  For these "
7795 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7796 "attributes you want in advance and call this function."
7797 msgstr ""
7798
7799 #. type: textblock
7800 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2519
7801 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3689
7802 msgid ""
7803 "Extended attribute values are blobs of binary data.  If there is no extended "
7804 "attribute named C<name>, this returns an error."
7805 msgstr ""
7806
7807 #. type: textblock
7808 #: ../fish/guestfish-actions.pod:1495
7809 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7810 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7811
7812 #. type: =head2
7813 #: ../fish/guestfish-actions.pod:1497
7814 msgid "getxattrs"
7815 msgstr "getxattrs"
7816
7817 #. type: verbatim
7818 #: ../fish/guestfish-actions.pod:1499
7819 #, no-wrap
7820 msgid ""
7821 " getxattrs path\n"
7822 "\n"
7823 msgstr ""
7824 " getxattrs шлях\n"
7825 "\n"
7826
7827 #. type: textblock
7828 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7829 msgid ""
7830 "This call lists the extended attributes of the file or directory C<path>."
7831 msgstr ""
7832
7833 #. type: textblock
7834 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7835 msgid ""
7836 "At the system call level, this is a combination of the L<listxattr(2)> and "
7837 "L<getxattr(2)> calls."
7838 msgstr ""
7839
7840 #. type: textblock
7841 #: ../fish/guestfish-actions.pod:1507
7842 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7843 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
7844
7845 #. type: =head2
7846 #: ../fish/guestfish-actions.pod:1509
7847 msgid "glob-expand"
7848 msgstr "glob-expand"
7849
7850 #. type: verbatim
7851 #: ../fish/guestfish-actions.pod:1511
7852 #, no-wrap
7853 msgid ""
7854 " glob-expand pattern\n"
7855 "\n"
7856 msgstr ""
7857 " glob-expand шаблон\n"
7858 "\n"
7859
7860 #. type: textblock
7861 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7862 msgid ""
7863 "This command searches for all the pathnames matching C<pattern> according to "
7864 "the wildcard expansion rules used by the shell."
7865 msgstr ""
7866
7867 #. type: textblock
7868 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7869 msgid ""
7870 "If no paths match, then this returns an empty list (note: not an error)."
7871 msgstr ""
7872
7873 #. type: textblock
7874 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7875 msgid ""
7876 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7877 "GLOB_BRACE>.  See that manual page for more details."
7878 msgstr ""
7879
7880 #. type: =head2
7881 #: ../fish/guestfish-actions.pod:1524
7882 msgid "grep"
7883 msgstr "grep"
7884
7885 #. type: verbatim
7886 #: ../fish/guestfish-actions.pod:1526
7887 #, no-wrap
7888 msgid ""
7889 " grep regex path\n"
7890 "\n"
7891 msgstr ""
7892 " grepi формальний_вираз шлях\n"
7893 "\n"
7894
7895 #. type: textblock
7896 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7897 msgid "This calls the external C<grep> program and returns the matching lines."
7898 msgstr ""
7899
7900 #. type: =head2
7901 #: ../fish/guestfish-actions.pod:1534
7902 msgid "grepi"
7903 msgstr "grepi"
7904
7905 #. type: verbatim
7906 #: ../fish/guestfish-actions.pod:1536
7907 #, no-wrap
7908 msgid ""
7909 " grepi regex path\n"
7910 "\n"
7911 msgstr ""
7912 " grepi формальний_вираз шлях\n"
7913 "\n"
7914
7915 #. type: textblock
7916 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7917 msgid ""
7918 "This calls the external C<grep -i> program and returns the matching lines."
7919 msgstr ""
7920
7921 #. type: =head2
7922 #: ../fish/guestfish-actions.pod:1544
7923 msgid "grub-install"
7924 msgstr "grub-install"
7925
7926 #. type: verbatim
7927 #: ../fish/guestfish-actions.pod:1546
7928 #, no-wrap
7929 msgid ""
7930 " grub-install root device\n"
7931 "\n"
7932 msgstr ""
7933 " grub-install кореневий пристрій\n"
7934 "\n"
7935
7936 #. type: textblock
7937 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7938 msgid ""
7939 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7940 "the root directory being C<root>."
7941 msgstr ""
7942
7943 #. type: textblock
7944 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2335
7945 msgid ""
7946 "Note: If grub-install reports the error \"No suitable drive was found in the "
7947 "generated device map.\" it may be that you need to create a C</boot/grub/"
7948 "device.map> file first that contains the mapping between grub device names "
7949 "and Linux device names.  It is usually sufficient to create a file "
7950 "containing:"
7951 msgstr ""
7952
7953 #. type: verbatim
7954 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2342
7955 #, no-wrap
7956 msgid ""
7957 " (hd0) /dev/vda\n"
7958 "\n"
7959 msgstr ""
7960
7961 #. type: textblock
7962 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2344
7963 msgid "replacing C</dev/vda> with the name of the installation device."
7964 msgstr ""
7965
7966 #. type: =head2
7967 #: ../fish/guestfish-actions.pod:1562
7968 msgid "head"
7969 msgstr "head"
7970
7971 #. type: verbatim
7972 #: ../fish/guestfish-actions.pod:1564
7973 #, no-wrap
7974 msgid ""
7975 " head path\n"
7976 "\n"
7977 msgstr ""
7978 " head шлях\n"
7979 "\n"
7980
7981 #. type: textblock
7982 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2356
7983 msgid ""
7984 "This command returns up to the first 10 lines of a file as a list of strings."
7985 msgstr ""
7986
7987 #. type: =head2
7988 #: ../fish/guestfish-actions.pod:1572
7989 msgid "head-n"
7990 msgstr "head-n"
7991
7992 #. type: verbatim
7993 #: ../fish/guestfish-actions.pod:1574
7994 #, no-wrap
7995 msgid ""
7996 " head-n nrlines path\n"
7997 "\n"
7998 msgstr ""
7999
8000 #. type: textblock
8001 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2375
8002 msgid ""
8003 "If the parameter C<nrlines> is a positive number, this returns the first "
8004 "C<nrlines> lines of the file C<path>."
8005 msgstr ""
8006
8007 #. type: textblock
8008 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2378
8009 msgid ""
8010 "If the parameter C<nrlines> is a negative number, this returns lines from "
8011 "the file C<path>, excluding the last C<nrlines> lines."
8012 msgstr ""
8013
8014 #. type: textblock
8015 #: ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:4648
8016 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:6996
8017 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8018 msgstr ""
8019
8020 #. type: =head2
8021 #: ../fish/guestfish-actions.pod:1587
8022 msgid "hexdump"
8023 msgstr "hexdump"
8024
8025 #. type: verbatim
8026 #: ../fish/guestfish-actions.pod:1589
8027 #, no-wrap
8028 msgid ""
8029 " hexdump path\n"
8030 "\n"
8031 msgstr ""
8032 " hexdump шлях\n"
8033 "\n"
8034
8035 #. type: textblock
8036 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2398
8037 msgid ""
8038 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8039 "readable, canonical hex dump of the file."
8040 msgstr ""
8041
8042 #. type: =head2
8043 #: ../fish/guestfish-actions.pod:1597
8044 msgid "initrd-cat"
8045 msgstr "initrd-cat"
8046
8047 #. type: verbatim
8048 #: ../fish/guestfish-actions.pod:1599
8049 #, no-wrap
8050 msgid ""
8051 " initrd-cat initrdpath filename\n"
8052 "\n"
8053 msgstr ""
8054 " initrd-cat шлях_initrd назва_файла\n"
8055 "\n"
8056
8057 #. type: textblock
8058 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2417
8059 msgid ""
8060 "This command unpacks the file C<filename> from the initrd file called "
8061 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8062 "character."
8063 msgstr ""
8064
8065 #. type: textblock
8066 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2421
8067 msgid ""
8068 "For example, in guestfish you could use the following command to examine the "
8069 "boot script (usually called C</init>)  contained in a Linux initrd or "
8070 "initramfs image:"
8071 msgstr ""
8072
8073 #. type: verbatim
8074 #: ../fish/guestfish-actions.pod:1609 ../src/guestfs-actions.pod:2425
8075 #, no-wrap
8076 msgid ""
8077 " initrd-cat /boot/initrd-<version>.img init\n"
8078 "\n"
8079 msgstr ""
8080
8081 #. type: textblock
8082 #: ../fish/guestfish-actions.pod:1611
8083 msgid "See also L</initrd-list>."
8084 msgstr "Див. також L</initrd-list>."
8085
8086 #. type: =head2
8087 #: ../fish/guestfish-actions.pod:1616
8088 msgid "initrd-list"
8089 msgstr "initrd-list"
8090
8091 #. type: verbatim
8092 #: ../fish/guestfish-actions.pod:1618
8093 #, no-wrap
8094 msgid ""
8095 " initrd-list path\n"
8096 "\n"
8097 msgstr ""
8098 " initrd-list шлях\n"
8099 "\n"
8100
8101 #. type: textblock
8102 #: ../fish/guestfish-actions.pod:1620 ../src/guestfs-actions.pod:2444
8103 msgid "This command lists out files contained in an initrd."
8104 msgstr ""
8105
8106 #. type: textblock
8107 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2446
8108 msgid ""
8109 "The files are listed without any initial C</> character.  The files are "
8110 "listed in the order they appear (not necessarily alphabetical).  Directory "
8111 "names are listed as separate items."
8112 msgstr ""
8113
8114 #. type: textblock
8115 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2450
8116 msgid ""
8117 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8118 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8119 "files)."
8120 msgstr ""
8121
8122 #. type: =head2
8123 #: ../fish/guestfish-actions.pod:1630
8124 msgid "inotify-add-watch"
8125 msgstr "inotify-add-watch"
8126
8127 #. type: verbatim
8128 #: ../fish/guestfish-actions.pod:1632
8129 #, no-wrap
8130 msgid ""
8131 " inotify-add-watch path mask\n"
8132 "\n"
8133 msgstr ""
8134 " inotify-add-watch шлях маска\n"
8135 "\n"
8136
8137 #. type: textblock
8138 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2467
8139 msgid "Watch C<path> for the events listed in C<mask>."
8140 msgstr ""
8141
8142 #. type: textblock
8143 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2469
8144 msgid ""
8145 "Note that if C<path> is a directory then events within that directory are "
8146 "watched, but this does I<not> happen recursively (in subdirectories)."
8147 msgstr ""
8148
8149 #. type: textblock
8150 #: ../fish/guestfish-actions.pod:1640 ../src/guestfs-actions.pod:2473
8151 msgid ""
8152 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8153 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8154 msgstr ""
8155
8156 #. type: =head2
8157 #: ../fish/guestfish-actions.pod:1644
8158 msgid "inotify-close"
8159 msgstr "inotify-close"
8160
8161 #. type: verbatim
8162 #: ../fish/guestfish-actions.pod:1646
8163 #, no-wrap
8164 msgid ""
8165 " inotify-close\n"
8166 "\n"
8167 msgstr ""
8168 " inotify-close\n"
8169 "\n"
8170
8171 #. type: textblock
8172 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2486
8173 msgid ""
8174 "This closes the inotify handle which was previously opened by inotify_init.  "
8175 "It removes all watches, throws away any pending events, and deallocates all "
8176 "resources."
8177 msgstr ""
8178
8179 #. type: =head2
8180 #: ../fish/guestfish-actions.pod:1652
8181 msgid "inotify-files"
8182 msgstr "inotify-files"
8183
8184 #. type: verbatim
8185 #: ../fish/guestfish-actions.pod:1654
8186 #, no-wrap
8187 msgid ""
8188 " inotify-files\n"
8189 "\n"
8190 msgstr ""
8191 " inotify-files\n"
8192 "\n"
8193
8194 #. type: textblock
8195 #: ../fish/guestfish-actions.pod:1656
8196 msgid ""
8197 "This function is a helpful wrapper around L</inotify-read> which just "
8198 "returns a list of pathnames of objects that were touched.  The returned "
8199 "pathnames are sorted and deduplicated."
8200 msgstr ""
8201
8202 #. type: =head2
8203 #: ../fish/guestfish-actions.pod:1660
8204 msgid "inotify-init"
8205 msgstr "inotify-init"
8206
8207 #. type: verbatim
8208 #: ../fish/guestfish-actions.pod:1662
8209 #, no-wrap
8210 msgid ""
8211 " inotify-init maxevents\n"
8212 "\n"
8213 msgstr ""
8214
8215 #. type: textblock
8216 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2515
8217 msgid ""
8218 "This command creates a new inotify handle.  The inotify subsystem can be "
8219 "used to notify events which happen to objects in the guest filesystem."
8220 msgstr ""
8221
8222 #. type: textblock
8223 #: ../fish/guestfish-actions.pod:1668
8224 msgid ""
8225 "C<maxevents> is the maximum number of events which will be queued up between "
8226 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8227 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8228 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8229 "but records the fact that it threw them away by setting a flag "
8230 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8231 msgstr ""
8232
8233 #. type: textblock
8234 #: ../fish/guestfish-actions.pod:1678
8235 msgid ""
8236 "Before any events are generated, you have to add some watches to the "
8237 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8238 "L</inotify-watch-all>."
8239 msgstr ""
8240
8241 #. type: textblock
8242 #: ../fish/guestfish-actions.pod:1684
8243 msgid ""
8244 "Queued up events should be read periodically by calling L</inotify-read> (or "
8245 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8246 "If you don't read the events out often enough then you risk the internal "
8247 "queue overflowing."
8248 msgstr ""
8249
8250 #. type: textblock
8251 #: ../fish/guestfish-actions.pod:1691
8252 msgid ""
8253 "The handle should be closed after use by calling L</inotify-close>.  This "
8254 "also removes any watches automatically."
8255 msgstr ""
8256
8257 #. type: textblock
8258 #: ../fish/guestfish-actions.pod:1695 ../src/guestfs-actions.pod:2546
8259 msgid ""
8260 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8261 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8262 "that there is one global inotify handle per libguestfs instance."
8263 msgstr ""
8264
8265 #. type: =head2
8266 #: ../fish/guestfish-actions.pod:1700
8267 msgid "inotify-read"
8268 msgstr "inotify-read"
8269
8270 #. type: verbatim
8271 #: ../fish/guestfish-actions.pod:1702
8272 #, no-wrap
8273 msgid ""
8274 " inotify-read\n"
8275 "\n"
8276 msgstr ""
8277 " inotify-read\n"
8278 "\n"
8279
8280 #. type: textblock
8281 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
8282 msgid ""
8283 "Return the complete queue of events that have happened since the previous "
8284 "read call."
8285 msgstr ""
8286
8287 #. type: textblock
8288 #: ../fish/guestfish-actions.pod:1707 ../src/guestfs-actions.pod:2563
8289 msgid "If no events have happened, this returns an empty list."
8290 msgstr ""
8291
8292 #. type: textblock
8293 #: ../fish/guestfish-actions.pod:1709 ../src/guestfs-actions.pod:2565
8294 msgid ""
8295 "I<Note>: In order to make sure that all events have been read, you must call "
8296 "this function repeatedly until it returns an empty list.  The reason is that "
8297 "the call will read events up to the maximum appliance-to-host message size "
8298 "and leave remaining events in the queue."
8299 msgstr ""
8300
8301 #. type: =head2
8302 #: ../fish/guestfish-actions.pod:1715
8303 msgid "inotify-rm-watch"
8304 msgstr "inotify-rm-watch"
8305
8306 #. type: verbatim
8307 #: ../fish/guestfish-actions.pod:1717
8308 #, no-wrap
8309 msgid ""
8310 " inotify-rm-watch wd\n"
8311 "\n"
8312 msgstr ""
8313
8314 #. type: textblock
8315 #: ../fish/guestfish-actions.pod:1719
8316 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8317 msgstr ""
8318
8319 #. type: =head2
8320 #: ../fish/guestfish-actions.pod:1722
8321 msgid "inspect-get-arch"
8322 msgstr "inspect-get-arch"
8323
8324 #. type: verbatim
8325 #: ../fish/guestfish-actions.pod:1724
8326 #, no-wrap
8327 msgid ""
8328 " inspect-get-arch root\n"
8329 "\n"
8330 msgstr ""
8331 " inspect-get-arch корінь\n"
8332 "\n"
8333
8334 #. type: textblock
8335 #: ../fish/guestfish-actions.pod:1726
8336 msgid ""
8337 "This returns the architecture of the inspected operating system.  The "
8338 "possible return values are listed under L</file-architecture>."
8339 msgstr ""
8340
8341 #. type: textblock
8342 #: ../fish/guestfish-actions.pod:1730 ../src/guestfs-actions.pod:2600
8343 msgid ""
8344 "If the architecture could not be determined, then the string C<unknown> is "
8345 "returned."
8346 msgstr ""
8347
8348 #. type: textblock
8349 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1816
8350 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1907
8351 #: ../fish/guestfish-actions.pod:1991 ../fish/guestfish-actions.pod:2052
8352 #: ../fish/guestfish-actions.pod:2073 ../fish/guestfish-actions.pod:2087
8353 #: ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2159
8354 #: ../fish/guestfish-actions.pod:2172 ../fish/guestfish-actions.pod:2185
8355 #: ../fish/guestfish-actions.pod:2195 ../fish/guestfish-actions.pod:2205
8356 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2313
8357 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:2603
8358 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2797
8359 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2947
8360 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
8361 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3132
8362 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3192
8363 #: ../src/guestfs-actions.pod:3212 ../src/guestfs-actions.pod:3229
8364 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3263
8365 #: ../src/guestfs-actions.pod:3365 ../src/guestfs-actions.pod:3406
8366 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8367 msgstr ""
8368
8369 #. type: =head2
8370 #: ../fish/guestfish-actions.pod:1735
8371 msgid "inspect-get-distro"
8372 msgstr "inspect-get-distro"
8373
8374 #. type: verbatim
8375 #: ../fish/guestfish-actions.pod:1737
8376 #, no-wrap
8377 msgid ""
8378 " inspect-get-distro root\n"
8379 "\n"
8380 msgstr ""
8381 " inspect-get-distro корінь\n"
8382 "\n"
8383
8384 #. type: textblock
8385 #: ../fish/guestfish-actions.pod:1739 ../src/guestfs-actions.pod:2616
8386 msgid ""
8387 "This returns the distro (distribution) of the inspected operating system."
8388 msgstr ""
8389
8390 #. type: textblock
8391 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2619
8392 msgid "Currently defined distros are:"
8393 msgstr ""
8394
8395 #. type: =item
8396 #: ../fish/guestfish-actions.pod:1746 ../src/guestfs-actions.pod:2623
8397 msgid "\"archlinux\""
8398 msgstr "\"archlinux\""
8399
8400 #. type: textblock
8401 #: ../fish/guestfish-actions.pod:1748 ../src/guestfs-actions.pod:2625
8402 msgid "Arch Linux."
8403 msgstr "Arch Linux."
8404
8405 #. type: =item
8406 #: ../fish/guestfish-actions.pod:1750 ../src/guestfs-actions.pod:2627
8407 msgid "\"centos\""
8408 msgstr ""
8409
8410 #. type: textblock
8411 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2629
8412 msgid "CentOS."
8413 msgstr ""
8414
8415 #. type: =item
8416 #: ../fish/guestfish-actions.pod:1754 ../src/guestfs-actions.pod:2631
8417 msgid "\"debian\""
8418 msgstr "\"debian\""
8419
8420 #. type: textblock
8421 #: ../fish/guestfish-actions.pod:1756 ../src/guestfs-actions.pod:2633
8422 msgid "Debian."
8423 msgstr "Debian."
8424
8425 #. type: =item
8426 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2635
8427 msgid "\"fedora\""
8428 msgstr "\"fedora\""
8429
8430 #. type: textblock
8431 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2637
8432 msgid "Fedora."
8433 msgstr "Fedora."
8434
8435 #. type: =item
8436 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2639
8437 msgid "\"gentoo\""
8438 msgstr "\"gentoo\""
8439
8440 #. type: textblock
8441 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
8442 msgid "Gentoo."
8443 msgstr "Gentoo."
8444
8445 #. type: =item
8446 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2643
8447 msgid "\"linuxmint\""
8448 msgstr "\"linuxmint\""
8449
8450 #. type: textblock
8451 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
8452 msgid "Linux Mint."
8453 msgstr "Linux Mint."
8454
8455 #. type: =item
8456 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
8457 msgid "\"mandriva\""
8458 msgstr "\"mandriva\""
8459
8460 #. type: textblock
8461 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
8462 msgid "Mandriva."
8463 msgstr "Mandriva."
8464
8465 #. type: =item
8466 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
8467 msgid "\"meego\""
8468 msgstr "\"meego\""
8469
8470 #. type: textblock
8471 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
8472 msgid "MeeGo."
8473 msgstr "MeeGo."
8474
8475 #. type: =item
8476 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
8477 msgid "\"pardus\""
8478 msgstr "\"pardus\""
8479
8480 #. type: textblock
8481 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
8482 msgid "Pardus."
8483 msgstr "Pardus."
8484
8485 #. type: =item
8486 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
8487 msgid "\"redhat-based\""
8488 msgstr "\"redhat-based\""
8489
8490 #. type: textblock
8491 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
8492 msgid "Some Red Hat-derived distro."
8493 msgstr "Дистрибутив, що походить від Red Hat."
8494
8495 #. type: =item
8496 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
8497 msgid "\"rhel\""
8498 msgstr "\"rhel\""
8499
8500 #. type: textblock
8501 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
8502 msgid "Red Hat Enterprise Linux."
8503 msgstr ""
8504
8505 #. type: =item
8506 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
8507 msgid "\"scientificlinux\""
8508 msgstr ""
8509
8510 #. type: textblock
8511 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
8512 msgid "Scientific Linux."
8513 msgstr ""
8514
8515 #. type: =item
8516 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
8517 msgid "\"slackware\""
8518 msgstr ""
8519
8520 #. type: textblock
8521 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8522 msgid "Slackware."
8523 msgstr ""
8524
8525 #. type: =item
8526 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8527 msgid "\"ubuntu\""
8528 msgstr "\"ubuntu\""
8529
8530 #. type: textblock
8531 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8532 msgid "Ubuntu."
8533 msgstr "Ubuntu."
8534
8535 #. type: =item
8536 #: ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1886
8537 #: ../fish/guestfish-actions.pod:2150 ../src/guestfs-actions.pod:2679
8538 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:3163
8539 msgid "\"unknown\""
8540 msgstr "\"unknown\""
8541
8542 #. type: textblock
8543 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8544 msgid "The distro could not be determined."
8545 msgstr "Дистрибутив, тип якого не вдалося визначити."
8546
8547 #. type: =item
8548 #: ../fish/guestfish-actions.pod:1806 ../fish/guestfish-actions.pod:2142
8549 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:3155
8550 msgid "\"windows\""
8551 msgstr "\"windows\""
8552
8553 #. type: textblock
8554 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8555 msgid ""
8556 "Windows does not have distributions.  This string is returned if the OS type "
8557 "is Windows."
8558 msgstr ""
8559
8560 #. type: textblock
8561 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1892
8562 #: ../fish/guestfish-actions.pod:2156 ../src/guestfs-actions.pod:2690
8563 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:3169
8564 msgid ""
8565 "Future versions of libguestfs may return other strings here.  The caller "
8566 "should be prepared to handle any string."
8567 msgstr ""
8568
8569 #. type: =head2
8570 #: ../fish/guestfish-actions.pod:1818
8571 msgid "inspect-get-drive-mappings"
8572 msgstr ""
8573
8574 #. type: verbatim
8575 #: ../fish/guestfish-actions.pod:1820
8576 #, no-wrap
8577 msgid ""
8578 " inspect-get-drive-mappings root\n"
8579 "\n"
8580 msgstr ""
8581
8582 #. type: textblock
8583 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2706
8584 msgid ""
8585 "This call is useful for Windows which uses a primitive system of assigning "
8586 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8587 "Windows Registry to find out how disks/partitions are mapped to drive "
8588 "letters, and returns a hash table as in the example below:"
8589 msgstr ""
8590
8591 #. type: verbatim
8592 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2712
8593 #, no-wrap
8594 msgid ""
8595 " C      =>     /dev/vda2\n"
8596 " E      =>     /dev/vdb1\n"
8597 " F      =>     /dev/vdc1\n"
8598 "\n"
8599 msgstr ""
8600
8601 #. type: textblock
8602 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2716
8603 msgid ""
8604 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8605 "and just contains the drive letter, without the customary colon separator "
8606 "character."
8607 msgstr ""
8608
8609 #. type: textblock
8610 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8611 msgid ""
8612 "In future we may support other operating systems that also used drive "
8613 "letters, but the keys for those might not be case insensitive and might be "
8614 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8615 "C<h1> etc."
8616 msgstr ""
8617
8618 #. type: textblock
8619 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2725
8620 msgid ""
8621 "For Windows guests, currently only hard drive mappings are returned.  "
8622 "Removable disks (eg. DVD-ROMs) are ignored."
8623 msgstr ""
8624
8625 #. type: textblock
8626 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8627 msgid ""
8628 "For guests that do not use drive mappings, or if the drive mappings could "
8629 "not be determined, this returns an empty hash table."
8630 msgstr ""
8631
8632 #. type: textblock
8633 #: ../fish/guestfish-actions.pod:1847
8634 msgid ""
8635 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8636 "get-mountpoints>, L</inspect-get-filesystems>."
8637 msgstr ""
8638
8639 #. type: =head2
8640 #: ../fish/guestfish-actions.pod:1851
8641 msgid "inspect-get-filesystems"
8642 msgstr "inspect-get-filesystems"
8643
8644 #. type: verbatim
8645 #: ../fish/guestfish-actions.pod:1853
8646 #, no-wrap
8647 msgid ""
8648 " inspect-get-filesystems root\n"
8649 "\n"
8650 msgstr ""
8651 " inspect-get-filesystems корінь\n"
8652 "\n"
8653
8654 #. type: textblock
8655 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8656 msgid ""
8657 "This returns a list of all the filesystems that we think are associated with "
8658 "this operating system.  This includes the root filesystem, other ordinary "
8659 "filesystems, and non-mounted devices like swap partitions."
8660 msgstr ""
8661
8662 #. type: textblock
8663 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2754
8664 msgid ""
8665 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8666 "to be shared between operating systems."
8667 msgstr ""
8668
8669 #. type: textblock
8670 #: ../fish/guestfish-actions.pod:1863
8671 msgid ""
8672 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8673 "get-mountpoints>."
8674 msgstr ""
8675
8676 #. type: =head2
8677 #: ../fish/guestfish-actions.pod:1866
8678 msgid "inspect-get-format"
8679 msgstr "inspect-get-format"
8680
8681 #. type: verbatim
8682 #: ../fish/guestfish-actions.pod:1868
8683 #, no-wrap
8684 msgid ""
8685 " inspect-get-format root\n"
8686 "\n"
8687 msgstr ""
8688 " inspect-get-format корінь\n"
8689 "\n"
8690
8691 #. type: textblock
8692 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2772
8693 msgid ""
8694 "This returns the format of the inspected operating system.  You can use it "
8695 "to detect install images, live CDs and similar."
8696 msgstr ""
8697
8698 #. type: textblock
8699 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2775
8700 msgid "Currently defined formats are:"
8701 msgstr ""
8702
8703 #. type: =item
8704 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2779
8705 msgid "\"installed\""
8706 msgstr "\"installed\""
8707
8708 #. type: textblock
8709 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2781
8710 msgid "This is an installed operating system."
8711 msgstr "Це встановлена операційна система."
8712
8713 #. type: =item
8714 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2783
8715 msgid "\"installer\""
8716 msgstr ""
8717
8718 #. type: textblock
8719 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8720 msgid ""
8721 "The disk image being inspected is not an installed operating system, but a "
8722 "I<bootable> install disk, live CD, or similar."
8723 msgstr ""
8724
8725 #. type: textblock
8726 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2790
8727 msgid "The format of this disk image is not known."
8728 msgstr ""
8729
8730 #. type: =head2
8731 #: ../fish/guestfish-actions.pod:1897
8732 msgid "inspect-get-hostname"
8733 msgstr "inspect-get-hostname"
8734
8735 #. type: verbatim
8736 #: ../fish/guestfish-actions.pod:1899
8737 #, no-wrap
8738 msgid ""
8739 " inspect-get-hostname root\n"
8740 "\n"
8741 msgstr ""
8742 " inspect-get-hostname корінь\n"
8743 "\n"
8744
8745 #. type: textblock
8746 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2810
8747 msgid ""
8748 "This function returns the hostname of the operating system as found by "
8749 "inspection of the guest's configuration files."
8750 msgstr ""
8751
8752 #. type: textblock
8753 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:2813
8754 msgid ""
8755 "If the hostname could not be determined, then the string C<unknown> is "
8756 "returned."
8757 msgstr ""
8758
8759 #. type: =head2
8760 #: ../fish/guestfish-actions.pod:1909
8761 msgid "inspect-get-icon"
8762 msgstr ""
8763
8764 #. type: verbatim
8765 #: ../fish/guestfish-actions.pod:1911
8766 #, no-wrap
8767 msgid ""
8768 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8769 "\n"
8770 msgstr ""
8771
8772 #. type: textblock
8773 #: ../fish/guestfish-actions.pod:1913 ../src/guestfs-actions.pod:2839
8774 msgid ""
8775 "This function returns an icon corresponding to the inspected operating "
8776 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8777 "to PNG if necessary)."
8778 msgstr ""
8779
8780 #. type: textblock
8781 #: ../fish/guestfish-actions.pod:1917 ../src/guestfs-actions.pod:2843
8782 msgid ""
8783 "If it was not possible to get an icon this function returns a zero-length "
8784 "(non-NULL) buffer.  I<Callers must check for this case>."
8785 msgstr ""
8786
8787 #. type: textblock
8788 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:2846
8789 msgid ""
8790 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8791 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8792 "this file will be returned.  You can disable favicons by passing the "
8793 "optional C<favicon> boolean as false (default is true)."
8794 msgstr ""
8795
8796 #. type: textblock
8797 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2852
8798 msgid ""
8799 "If finding the favicon fails, then we look in other places in the guest for "
8800 "a suitable icon."
8801 msgstr ""
8802
8803 #. type: textblock
8804 #: ../fish/guestfish-actions.pod:1929 ../src/guestfs-actions.pod:2855
8805 msgid ""
8806 "If the optional C<highquality> boolean is true then only high quality icons "
8807 "are returned, which means only icons of high resolution with an alpha "
8808 "channel.  The default (false) is to return any icon we can, even if it is of "
8809 "substandard quality."
8810 msgstr ""
8811
8812 #. type: textblock
8813 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2866
8814 msgid ""
8815 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8816 "before you call this, since it needs to read information from the guest "
8817 "filesystem during the call."
8818 msgstr ""
8819
8820 #. type: textblock
8821 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
8822 msgid ""
8823 "B<Security:> The icon data comes from the untrusted guest, and should be "
8824 "treated with caution.  PNG files have been known to contain exploits.  "
8825 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8826 "trying to process or display the icon."
8827 msgstr ""
8828
8829 #. type: textblock
8830 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2880
8831 msgid ""
8832 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8833 "tries to return the largest, highest quality icon available.  The "
8834 "application must scale the icon to the required size."
8835 msgstr ""
8836
8837 #. type: textblock
8838 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2887
8839 msgid ""
8840 "Extracting icons from Windows guests requires the external C<wrestool> "
8841 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8842 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8843 "installed separately."
8844 msgstr ""
8845
8846 #. type: textblock
8847 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8848 msgid ""
8849 "Operating system icons are usually trademarks.  Seek legal advice before "
8850 "using trademarks in applications."
8851 msgstr ""
8852
8853 #. type: =head2
8854 #: ../fish/guestfish-actions.pod:1975
8855 msgid "inspect-get-major-version"
8856 msgstr "inspect-get-major-version"
8857
8858 #. type: verbatim
8859 #: ../fish/guestfish-actions.pod:1977
8860 #, no-wrap
8861 msgid ""
8862 " inspect-get-major-version root\n"
8863 "\n"
8864 msgstr ""
8865 " inspect-get-major-version корінь\n"
8866 "\n"
8867
8868 #. type: textblock
8869 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2935
8870 msgid ""
8871 "This returns the major version number of the inspected operating system."
8872 msgstr ""
8873
8874 #. type: textblock
8875 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:2938
8876 msgid ""
8877 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8878 "popular public names used by the operating system.  Notably the operating "
8879 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8880 "1).  You can find out the real versions corresponding to releases of Windows "
8881 "by consulting Wikipedia or MSDN."
8882 msgstr ""
8883
8884 #. type: textblock
8885 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2000
8886 #: ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2962
8887 msgid "If the version could not be determined, then C<0> is returned."
8888 msgstr ""
8889
8890 #. type: =head2
8891 #: ../fish/guestfish-actions.pod:1993
8892 msgid "inspect-get-minor-version"
8893 msgstr "inspect-get-minor-version"
8894
8895 #. type: verbatim
8896 #: ../fish/guestfish-actions.pod:1995
8897 #, no-wrap
8898 msgid ""
8899 " inspect-get-minor-version root\n"
8900 "\n"
8901 msgstr ""
8902 " inspect-get-minor-version корінь\n"
8903 "\n"
8904
8905 #. type: textblock
8906 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:2959
8907 msgid ""
8908 "This returns the minor version number of the inspected operating system."
8909 msgstr ""
8910
8911 #. type: textblock
8912 #: ../fish/guestfish-actions.pod:2002
8913 msgid ""
8914 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8915 "get-major-version>."
8916 msgstr ""
8917
8918 #. type: =head2
8919 #: ../fish/guestfish-actions.pod:2005
8920 msgid "inspect-get-mountpoints"
8921 msgstr "inspect-get-mountpoints"
8922
8923 #. type: verbatim
8924 #: ../fish/guestfish-actions.pod:2007
8925 #, no-wrap
8926 msgid ""
8927 " inspect-get-mountpoints root\n"
8928 "\n"
8929 msgstr ""
8930 " inspect-get-mountpoints корінь\n"
8931 "\n"
8932
8933 #. type: textblock
8934 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:2977
8935 msgid ""
8936 "This returns a hash of where we think the filesystems associated with this "
8937 "operating system should be mounted.  Callers should note that this is at "
8938 "best an educated guess made by reading configuration files such as C</etc/"
8939 "fstab>.  I<In particular note> that this may return filesystems which are "
8940 "non-existent or not mountable and callers should be prepared to handle or "
8941 "ignore failures if they try to mount them."
8942 msgstr ""
8943
8944 #. type: textblock
8945 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8946 msgid ""
8947 "Each element in the returned hashtable has a key which is the path of the "
8948 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8949 "mounted there (eg. C</dev/sda1>)."
8950 msgstr ""
8951
8952 #. type: textblock
8953 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2991
8954 msgid ""
8955 "Non-mounted devices such as swap devices are I<not> returned in this list."
8956 msgstr ""
8957
8958 #. type: textblock
8959 #: ../fish/guestfish-actions.pod:2026
8960 msgid ""
8961 "For operating systems like Windows which still use drive letters, this call "
8962 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8963 "information about the mapping of drive letters to partitions, see L</inspect-"
8964 "get-drive-mappings>."
8965 msgstr ""
8966
8967 #. type: textblock
8968 #: ../fish/guestfish-actions.pod:2032
8969 msgid ""
8970 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8971 "get-filesystems>."
8972 msgstr ""
8973
8974 #. type: =head2
8975 #: ../fish/guestfish-actions.pod:2035
8976 msgid "inspect-get-package-format"
8977 msgstr "inspect-get-package-format"
8978
8979 #. type: verbatim
8980 #: ../fish/guestfish-actions.pod:2037
8981 #, no-wrap
8982 msgid ""
8983 " inspect-get-package-format root\n"
8984 "\n"
8985 msgstr ""
8986 " inspect-get-package-format корінь\n"
8987 "\n"
8988
8989 #. type: textblock
8990 #: ../fish/guestfish-actions.pod:2039
8991 msgid ""
8992 "This function and L</inspect-get-package-management> return the package "
8993 "format and package management tool used by the inspected operating system.  "
8994 "For example for Fedora these functions would return C<rpm> (package format) "
8995 "and C<yum> (package management)."
8996 msgstr ""
8997
8998 #. type: textblock
8999 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3023
9000 msgid ""
9001 "This returns the string C<unknown> if we could not determine the package "
9002 "format I<or> if the operating system does not have a real packaging system "
9003 "(eg. Windows)."
9004 msgstr ""
9005
9006 #. type: textblock
9007 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3027
9008 msgid ""
9009 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9010 "Future versions of libguestfs may return other strings."
9011 msgstr ""
9012
9013 #. type: =head2
9014 #: ../fish/guestfish-actions.pod:2054
9015 msgid "inspect-get-package-management"
9016 msgstr "inspect-get-package-management"
9017
9018 #. type: verbatim
9019 #: ../fish/guestfish-actions.pod:2056
9020 #, no-wrap
9021 msgid ""
9022 " inspect-get-package-management root\n"
9023 "\n"
9024 msgstr ""
9025 " inspect-get-package-management корінь\n"
9026 "\n"
9027
9028 #. type: textblock
9029 #: ../fish/guestfish-actions.pod:2058
9030 msgid ""
9031 "L</inspect-get-package-format> and this function return the package format "
9032 "and package management tool used by the inspected operating system.  For "
9033 "example for Fedora these functions would return C<rpm> (package format) and "
9034 "C<yum> (package management)."
9035 msgstr ""
9036
9037 #. type: textblock
9038 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3049
9039 msgid ""
9040 "This returns the string C<unknown> if we could not determine the package "
9041 "management tool I<or> if the operating system does not have a real packaging "
9042 "system (eg. Windows)."
9043 msgstr ""
9044
9045 #. type: textblock
9046 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3053
9047 msgid ""
9048 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9049 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9050 "libguestfs may return other strings."
9051 msgstr ""
9052
9053 #. type: =head2
9054 #: ../fish/guestfish-actions.pod:2075
9055 msgid "inspect-get-product-name"
9056 msgstr "inspect-get-product-name"
9057
9058 #. type: verbatim
9059 #: ../fish/guestfish-actions.pod:2077
9060 #, no-wrap
9061 msgid ""
9062 " inspect-get-product-name root\n"
9063 "\n"
9064 msgstr ""
9065 " inspect-get-product-name корінь\n"
9066 "\n"
9067
9068 #. type: textblock
9069 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
9070 msgid ""
9071 "This returns the product name of the inspected operating system.  The "
9072 "product name is generally some freeform string which can be displayed to the "
9073 "user, but should not be parsed by programs."
9074 msgstr ""
9075
9076 #. type: textblock
9077 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3076
9078 msgid ""
9079 "If the product name could not be determined, then the string C<unknown> is "
9080 "returned."
9081 msgstr ""
9082
9083 #. type: =head2
9084 #: ../fish/guestfish-actions.pod:2089
9085 msgid "inspect-get-product-variant"
9086 msgstr ""
9087
9088 #. type: verbatim
9089 #: ../fish/guestfish-actions.pod:2091
9090 #, no-wrap
9091 msgid ""
9092 " inspect-get-product-variant root\n"
9093 "\n"
9094 msgstr ""
9095
9096 #. type: textblock
9097 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3092
9098 msgid "This returns the product variant of the inspected operating system."
9099 msgstr ""
9100
9101 #. type: textblock
9102 #: ../fish/guestfish-actions.pod:2096 ../src/guestfs-actions.pod:3095
9103 msgid ""
9104 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9105 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9106 "is usually a string such as C<Client> or C<Server> (other values are "
9107 "possible).  This can be used to distinguish consumer and enterprise versions "
9108 "of Windows that have the same version number (for example, Windows 7 and "
9109 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9110 "the latter is C<Server>)."
9111 msgstr ""
9112
9113 #. type: textblock
9114 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3104
9115 msgid ""
9116 "For enterprise Linux guests, in future we intend this to return the product "
9117 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9118 "implemented at present."
9119 msgstr ""
9120
9121 #. type: textblock
9122 #: ../fish/guestfish-actions.pod:2109 ../src/guestfs-actions.pod:3108
9123 msgid ""
9124 "If the product variant could not be determined, then the string C<unknown> "
9125 "is returned."
9126 msgstr ""
9127
9128 #. type: textblock
9129 #: ../fish/guestfish-actions.pod:2112
9130 msgid ""
9131 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9132 "get-product-name>, L</inspect-get-major-version>."
9133 msgstr ""
9134
9135 #. type: =head2
9136 #: ../fish/guestfish-actions.pod:2116
9137 msgid "inspect-get-roots"
9138 msgstr "inspect-get-roots"
9139
9140 #. type: verbatim
9141 #: ../fish/guestfish-actions.pod:2118
9142 #, no-wrap
9143 msgid ""
9144 " inspect-get-roots\n"
9145 "\n"
9146 msgstr ""
9147 " inspect-get-roots\n"
9148 "\n"
9149
9150 #. type: textblock
9151 #: ../fish/guestfish-actions.pod:2120
9152 msgid ""
9153 "This function is a convenient way to get the list of root devices, as "
9154 "returned from a previous call to L</inspect-os>, but without redoing the "
9155 "whole inspection process."
9156 msgstr ""
9157
9158 #. type: textblock
9159 #: ../fish/guestfish-actions.pod:2124
9160 msgid ""
9161 "This returns an empty list if either no root devices were found or the "
9162 "caller has not called L</inspect-os>."
9163 msgstr ""
9164
9165 #. type: =head2
9166 #: ../fish/guestfish-actions.pod:2129
9167 msgid "inspect-get-type"
9168 msgstr "inspect-get-type"
9169
9170 #. type: verbatim
9171 #: ../fish/guestfish-actions.pod:2131
9172 #, no-wrap
9173 msgid ""
9174 " inspect-get-type root\n"
9175 "\n"
9176 msgstr ""
9177 " inspect-get-type корінь\n"
9178 "\n"
9179
9180 #. type: textblock
9181 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
9182 msgid ""
9183 "This returns the type of the inspected operating system.  Currently defined "
9184 "types are:"
9185 msgstr ""
9186
9187 #. type: =item
9188 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3151
9189 msgid "\"linux\""
9190 msgstr "\"linux\""
9191
9192 #. type: textblock
9193 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3153
9194 msgid "Any Linux-based operating system."
9195 msgstr ""
9196
9197 #. type: textblock
9198 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3157
9199 msgid "Any Microsoft Windows operating system."
9200 msgstr ""
9201
9202 #. type: =item
9203 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3159
9204 msgid "\"freebsd\""
9205 msgstr "\"freebsd\""
9206
9207 #. type: textblock
9208 #: ../fish/guestfish-actions.pod:2148 ../src/guestfs-actions.pod:3161
9209 msgid "FreeBSD."
9210 msgstr "FreeBSD."
9211
9212 #. type: textblock
9213 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3165
9214 msgid "The operating system type could not be determined."
9215 msgstr ""
9216
9217 #. type: =head2
9218 #: ../fish/guestfish-actions.pod:2161
9219 msgid "inspect-get-windows-current-control-set"
9220 msgstr ""
9221
9222 #. type: verbatim
9223 #: ../fish/guestfish-actions.pod:2163
9224 #, no-wrap
9225 msgid ""
9226 " inspect-get-windows-current-control-set root\n"
9227 "\n"
9228 msgstr ""
9229
9230 #. type: textblock
9231 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3185
9232 msgid ""
9233 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9234 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9235 msgstr ""
9236
9237 #. type: textblock
9238 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3188
9239 msgid ""
9240 "This call assumes that the guest is Windows and that the Registry could be "
9241 "examined by inspection.  If this is not the case then an error is returned."
9242 msgstr ""
9243
9244 #. type: =head2
9245 #: ../fish/guestfish-actions.pod:2174
9246 msgid "inspect-get-windows-systemroot"
9247 msgstr "inspect-get-windows-systemroot"
9248
9249 #. type: verbatim
9250 #: ../fish/guestfish-actions.pod:2176
9251 #, no-wrap
9252 msgid ""
9253 " inspect-get-windows-systemroot root\n"
9254 "\n"
9255 msgstr ""
9256 " inspect-get-windows-systemroot корінь\n"
9257 "\n"
9258
9259 #. type: textblock
9260 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3205
9261 msgid ""
9262 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9263 "is a directory path such as C</WINDOWS>."
9264 msgstr ""
9265
9266 #. type: textblock
9267 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3208
9268 msgid ""
9269 "This call assumes that the guest is Windows and that the systemroot could be "
9270 "determined by inspection.  If this is not the case then an error is returned."
9271 msgstr ""
9272
9273 #. type: =head2
9274 #: ../fish/guestfish-actions.pod:2187
9275 msgid "inspect-is-live"
9276 msgstr "inspect-is-live"
9277
9278 #. type: verbatim
9279 #: ../fish/guestfish-actions.pod:2189
9280 #, no-wrap
9281 msgid ""
9282 " inspect-is-live root\n"
9283 "\n"
9284 msgstr ""
9285 " inspect-is-live корінь\n"
9286 "\n"
9287
9288 #. type: textblock
9289 #: ../fish/guestfish-actions.pod:2191
9290 msgid ""
9291 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9292 "then this returns true if a live image was detected on the disk."
9293 msgstr ""
9294
9295 #. type: =head2
9296 #: ../fish/guestfish-actions.pod:2197
9297 msgid "inspect-is-multipart"
9298 msgstr "inspect-is-multipart"
9299
9300 #. type: verbatim
9301 #: ../fish/guestfish-actions.pod:2199
9302 #, no-wrap
9303 msgid ""
9304 " inspect-is-multipart root\n"
9305 "\n"
9306 msgstr ""
9307 " inspect-is-multipart корінь\n"
9308 "\n"
9309
9310 #. type: textblock
9311 #: ../fish/guestfish-actions.pod:2201
9312 msgid ""
9313 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9314 "then this returns true if the disk is part of a set."
9315 msgstr ""
9316
9317 #. type: =head2
9318 #: ../fish/guestfish-actions.pod:2207
9319 msgid "inspect-is-netinst"
9320 msgstr "inspect-is-netinst"
9321
9322 #. type: verbatim
9323 #: ../fish/guestfish-actions.pod:2209
9324 #, no-wrap
9325 msgid ""
9326 " inspect-is-netinst root\n"
9327 "\n"
9328 msgstr ""
9329 " inspect-is-netinst корінь\n"
9330 "\n"
9331
9332 #. type: textblock
9333 #: ../fish/guestfish-actions.pod:2211
9334 msgid ""
9335 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9336 "then this returns true if the disk is a network installer, ie. not a self-"
9337 "contained install CD but one which is likely to require network access to "
9338 "complete the install."
9339 msgstr ""
9340
9341 #. type: =head2
9342 #: ../fish/guestfish-actions.pod:2219
9343 msgid "inspect-list-applications"
9344 msgstr "inspect-list-applications"
9345
9346 #. type: verbatim
9347 #: ../fish/guestfish-actions.pod:2221
9348 #, no-wrap
9349 msgid ""
9350 " inspect-list-applications root\n"
9351 "\n"
9352 msgstr ""
9353 " inspect-list-applications кореневий_каталог\n"
9354 "\n"
9355
9356 #. type: textblock
9357 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:3275
9358 msgid "Return the list of applications installed in the operating system."
9359 msgstr ""
9360
9361 #. type: textblock
9362 #: ../fish/guestfish-actions.pod:2225
9363 msgid ""
9364 "I<Note:> This call works differently from other parts of the inspection "
9365 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9366 "then mount up the disks, before calling this.  Listing applications is a "
9367 "significantly more difficult operation which requires access to the full "
9368 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9369 "are just returning data cached in the libguestfs handle, this call actually "
9370 "reads parts of the mounted filesystems during the call."
9371 msgstr ""
9372
9373 #. type: textblock
9374 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3287
9375 msgid ""
9376 "This returns an empty list if the inspection code was not able to determine "
9377 "the list of applications."
9378 msgstr ""
9379
9380 #. type: textblock
9381 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3290
9382 msgid "The application structure contains the following fields:"
9383 msgstr ""
9384
9385 #. type: =item
9386 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
9387 msgid "C<app_name>"
9388 msgstr "C<app_name>"
9389
9390 #. type: textblock
9391 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
9392 msgid ""
9393 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9394 "guests, this is the package name."
9395 msgstr ""
9396
9397 #. type: =item
9398 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
9399 msgid "C<app_display_name>"
9400 msgstr "C<app_display_name>"
9401
9402 #. type: textblock
9403 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
9404 msgid ""
9405 "The display name of the application, sometimes localized to the install "
9406 "language of the guest operating system."
9407 msgstr ""
9408
9409 #. type: textblock
9410 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
9411 msgid ""
9412 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9413 "to display something can use C<app_name> instead."
9414 msgstr ""
9415
9416 #. type: =item
9417 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
9418 msgid "C<app_epoch>"
9419 msgstr "C<app_epoch>"
9420
9421 #. type: textblock
9422 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
9423 msgid ""
9424 "For package managers which use epochs, this contains the epoch of the "
9425 "package (an integer).  If unavailable, this is returned as C<0>."
9426 msgstr ""
9427
9428 #. type: =item
9429 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
9430 msgid "C<app_version>"
9431 msgstr "C<app_version>"
9432
9433 #. type: textblock
9434 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
9435 msgid ""
9436 "The version string of the application or package.  If unavailable this is "
9437 "returned as an empty string C<\"\">."
9438 msgstr ""
9439
9440 #. type: =item
9441 #: ../fish/guestfish-actions.pod:2265 ../src/guestfs-actions.pod:3317
9442 msgid "C<app_release>"
9443 msgstr "C<app_release>"
9444
9445 #. type: textblock
9446 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3319
9447 msgid ""
9448 "The release string of the application or package, for package managers that "
9449 "use this.  If unavailable this is returned as an empty string C<\"\">."
9450 msgstr ""
9451
9452 #. type: =item
9453 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
9454 msgid "C<app_install_path>"
9455 msgstr "C<app_install_path>"
9456
9457 #. type: textblock
9458 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
9459 msgid ""
9460 "The installation path of the application (on operating systems such as "
9461 "Windows which use installation paths).  This path is in the format used by "
9462 "the guest operating system, it is not a libguestfs path."
9463 msgstr ""
9464
9465 #. type: textblock
9466 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
9467 msgid "If unavailable this is returned as an empty string C<\"\">."
9468 msgstr ""
9469
9470 #. type: =item
9471 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
9472 msgid "C<app_trans_path>"
9473 msgstr "C<app_trans_path>"
9474
9475 #. type: textblock
9476 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
9477 msgid ""
9478 "The install path translated into a libguestfs path.  If unavailable this is "
9479 "returned as an empty string C<\"\">."
9480 msgstr ""
9481
9482 #. type: =item
9483 #: ../fish/guestfish-actions.pod:2285 ../src/guestfs-actions.pod:3337
9484 msgid "C<app_publisher>"
9485 msgstr "C<app_publisher>"
9486
9487 #. type: textblock
9488 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
9489 msgid ""
9490 "The name of the publisher of the application, for package managers that use "
9491 "this.  If unavailable this is returned as an empty string C<\"\">."
9492 msgstr ""
9493
9494 #. type: =item
9495 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
9496 msgid "C<app_url>"
9497 msgstr "C<app_url>"
9498
9499 #. type: textblock
9500 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
9501 msgid ""
9502 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9503 "returned as an empty string C<\"\">."
9504 msgstr ""
9505
9506 #. type: =item
9507 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
9508 msgid "C<app_source_package>"
9509 msgstr "C<app_source_package>"
9510
9511 #. type: textblock
9512 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
9513 msgid ""
9514 "For packaging systems which support this, the name of the source package.  "
9515 "If unavailable this is returned as an empty string C<\"\">."
9516 msgstr ""
9517
9518 #. type: =item
9519 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
9520 msgid "C<app_summary>"
9521 msgstr "C<app_summary>"
9522
9523 #. type: textblock
9524 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
9525 msgid ""
9526 "A short (usually one line) description of the application or package.  If "
9527 "unavailable this is returned as an empty string C<\"\">."
9528 msgstr ""
9529
9530 #. type: =item
9531 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
9532 msgid "C<app_description>"
9533 msgstr "C<app_description>"
9534
9535 #. type: textblock
9536 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
9537 msgid ""
9538 "A longer description of the application or package.  If unavailable this is "
9539 "returned as an empty string C<\"\">."
9540 msgstr ""
9541
9542 #. type: =head2
9543 #: ../fish/guestfish-actions.pod:2315
9544 msgid "inspect-os"
9545 msgstr "inspect-os"
9546
9547 #. type: verbatim
9548 #: ../fish/guestfish-actions.pod:2317
9549 #, no-wrap
9550 msgid ""
9551 " inspect-os\n"
9552 "\n"
9553 msgstr ""
9554 " inspect-os\n"
9555 "\n"
9556
9557 #. type: textblock
9558 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3378
9559 msgid ""
9560 "This function uses other libguestfs functions and certain heuristics to "
9561 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9562 "for operating systems."
9563 msgstr ""
9564
9565 #. type: textblock
9566 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3382
9567 msgid "The list returned is empty if no operating systems were found."
9568 msgstr ""
9569
9570 #. type: textblock
9571 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3384
9572 msgid ""
9573 "If one operating system was found, then this returns a list with a single "
9574 "element, which is the name of the root filesystem of this operating system.  "
9575 "It is also possible for this function to return a list containing more than "
9576 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9577 "element being the root filesystem of one of the operating systems."
9578 msgstr ""
9579
9580 #. type: textblock
9581 #: ../fish/guestfish-actions.pod:2332
9582 msgid ""
9583 "You can pass the root string(s) returned to other L</inspect-get-*> "
9584 "functions in order to query further information about each operating system, "
9585 "such as the name and version."
9586 msgstr ""
9587
9588 #. type: textblock
9589 #: ../fish/guestfish-actions.pod:2337
9590 msgid ""
9591 "This function uses other libguestfs features such as L</mount-ro> and L</"
9592 "umount-all> in order to mount and unmount filesystems and look at the "
9593 "contents.  This should be called with no disks currently mounted.  The "
9594 "function may also use Augeas, so any existing Augeas handle will be closed."
9595 msgstr ""
9596
9597 #. type: textblock
9598 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3402
9599 msgid ""
9600 "This function cannot decrypt encrypted disks.  The caller must do that first "
9601 "(supplying the necessary keys) if the disk is encrypted."
9602 msgstr ""
9603
9604 #. type: textblock
9605 #: ../fish/guestfish-actions.pod:2349 ../fish/guestfish-actions.pod:2547
9606 #: ../fish/guestfish-actions.pod:2606
9607 msgid "See also L</list-filesystems>."
9608 msgstr "Див. також L</list-filesystems>."
9609
9610 #. type: =head2
9611 #: ../fish/guestfish-actions.pod:2351
9612 msgid "is-blockdev"
9613 msgstr "is-blockdev"
9614
9615 #. type: verbatim
9616 #: ../fish/guestfish-actions.pod:2353
9617 #, no-wrap
9618 msgid ""
9619 " is-blockdev path\n"
9620 "\n"
9621 msgstr ""
9622 " is-blockdev шлях\n"
9623 "\n"
9624
9625 #. type: textblock
9626 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3422
9627 msgid ""
9628 "This returns C<true> if and only if there is a block device with the given "
9629 "C<path> name."
9630 msgstr ""
9631
9632 #. type: textblock
9633 #: ../fish/guestfish-actions.pod:2358 ../fish/guestfish-actions.pod:2376
9634 #: ../fish/guestfish-actions.pod:2395 ../fish/guestfish-actions.pod:2404
9635 #: ../fish/guestfish-actions.pod:2414 ../fish/guestfish-actions.pod:2448
9636 #: ../fish/guestfish-actions.pod:2457
9637 msgid "See also L</stat>."
9638 msgstr "Див. також L</stat>."
9639
9640 #. type: =head2
9641 #: ../fish/guestfish-actions.pod:2360
9642 msgid "is-busy"
9643 msgstr "is-busy"
9644
9645 #. type: verbatim
9646 #: ../fish/guestfish-actions.pod:2362
9647 #, no-wrap
9648 msgid ""
9649 " is-busy\n"
9650 "\n"
9651 msgstr ""
9652 " is-busy\n"
9653 "\n"
9654
9655 #. type: textblock
9656 #: ../fish/guestfish-actions.pod:2364 ../src/guestfs-actions.pod:3436
9657 msgid ""
9658 "This returns true iff this handle is busy processing a command (in the "
9659 "C<BUSY> state)."
9660 msgstr ""
9661
9662 #. type: =head2
9663 #: ../fish/guestfish-actions.pod:2369
9664 msgid "is-chardev"
9665 msgstr "is-chardev"
9666
9667 #. type: verbatim
9668 #: ../fish/guestfish-actions.pod:2371
9669 #, no-wrap
9670 msgid ""
9671 " is-chardev path\n"
9672 "\n"
9673 msgstr ""
9674 " is-chardev шлях\n"
9675 "\n"
9676
9677 #. type: textblock
9678 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3451
9679 msgid ""
9680 "This returns C<true> if and only if there is a character device with the "
9681 "given C<path> name."
9682 msgstr ""
9683
9684 #. type: =head2
9685 #: ../fish/guestfish-actions.pod:2378
9686 msgid "is-config"
9687 msgstr "is-config"
9688
9689 #. type: verbatim
9690 #: ../fish/guestfish-actions.pod:2380
9691 #, no-wrap
9692 msgid ""
9693 " is-config\n"
9694 "\n"
9695 msgstr ""
9696 " is-config\n"
9697 "\n"
9698
9699 #. type: textblock
9700 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3465
9701 msgid ""
9702 "This returns true iff this handle is being configured (in the C<CONFIG> "
9703 "state)."
9704 msgstr ""
9705
9706 #. type: =head2
9707 #: ../fish/guestfish-actions.pod:2387
9708 msgid "is-dir"
9709 msgstr "is-dir"
9710
9711 #. type: verbatim
9712 #: ../fish/guestfish-actions.pod:2389
9713 #, no-wrap
9714 msgid ""
9715 " is-dir path\n"
9716 "\n"
9717 msgstr ""
9718 " is-dir шлях\n"
9719 "\n"
9720
9721 #. type: textblock
9722 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3480
9723 msgid ""
9724 "This returns C<true> if and only if there is a directory with the given "
9725 "C<path> name.  Note that it returns false for other objects like files."
9726 msgstr ""
9727
9728 #. type: =head2
9729 #: ../fish/guestfish-actions.pod:2397
9730 msgid "is-fifo"
9731 msgstr "is-fifo"
9732
9733 #. type: verbatim
9734 #: ../fish/guestfish-actions.pod:2399
9735 #, no-wrap
9736 msgid ""
9737 " is-fifo path\n"
9738 "\n"
9739 msgstr ""
9740 " is-fifo шлях\n"
9741 "\n"
9742
9743 #. type: textblock
9744 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3496
9745 msgid ""
9746 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9747 "given C<path> name."
9748 msgstr ""
9749
9750 #. type: =head2
9751 #: ../fish/guestfish-actions.pod:2406
9752 msgid "is-file"
9753 msgstr "is-file"
9754
9755 #. type: verbatim
9756 #: ../fish/guestfish-actions.pod:2408
9757 #, no-wrap
9758 msgid ""
9759 " is-file path\n"
9760 "\n"
9761 msgstr ""
9762 " is-file шлях\n"
9763 "\n"
9764
9765 #. type: textblock
9766 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3511
9767 msgid ""
9768 "This returns C<true> if and only if there is a regular file with the given "
9769 "C<path> name.  Note that it returns false for other objects like directories."
9770 msgstr ""
9771
9772 #. type: =head2
9773 #: ../fish/guestfish-actions.pod:2416
9774 msgid "is-launching"
9775 msgstr "is-launching"
9776
9777 #. type: verbatim
9778 #: ../fish/guestfish-actions.pod:2418
9779 #, no-wrap
9780 msgid ""
9781 " is-launching\n"
9782 "\n"
9783 msgstr ""
9784 " is-launching\n"
9785 "\n"
9786
9787 #. type: textblock
9788 #: ../fish/guestfish-actions.pod:2420 ../src/guestfs-actions.pod:3526
9789 msgid ""
9790 "This returns true iff this handle is launching the subprocess (in the "
9791 "C<LAUNCHING> state)."
9792 msgstr ""
9793
9794 #. type: =head2
9795 #: ../fish/guestfish-actions.pod:2425
9796 msgid "is-lv"
9797 msgstr "is-lv"
9798
9799 #. type: verbatim
9800 #: ../fish/guestfish-actions.pod:2427
9801 #, no-wrap
9802 msgid ""
9803 " is-lv device\n"
9804 "\n"
9805 msgstr ""
9806 " is-lv пристрій\n"
9807 "\n"
9808
9809 #. type: textblock
9810 #: ../fish/guestfish-actions.pod:2429 ../src/guestfs-actions.pod:3541
9811 msgid ""
9812 "This command tests whether C<device> is a logical volume, and returns true "
9813 "iff this is the case."
9814 msgstr ""
9815
9816 #. type: =head2
9817 #: ../fish/guestfish-actions.pod:2432
9818 msgid "is-ready"
9819 msgstr "is-ready"
9820
9821 #. type: verbatim
9822 #: ../fish/guestfish-actions.pod:2434
9823 #, no-wrap
9824 msgid ""
9825 " is-ready\n"
9826 "\n"
9827 msgstr ""
9828 " is-ready\n"
9829 "\n"
9830
9831 #. type: textblock
9832 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3553
9833 msgid ""
9834 "This returns true iff this handle is ready to accept commands (in the "
9835 "C<READY> state)."
9836 msgstr ""
9837
9838 #. type: =head2
9839 #: ../fish/guestfish-actions.pod:2441
9840 msgid "is-socket"
9841 msgstr "is-socket"
9842
9843 #. type: verbatim
9844 #: ../fish/guestfish-actions.pod:2443
9845 #, no-wrap
9846 msgid ""
9847 " is-socket path\n"
9848 "\n"
9849 msgstr ""
9850 " is-socket шлях\n"
9851 "\n"
9852
9853 #. type: textblock
9854 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3568
9855 msgid ""
9856 "This returns C<true> if and only if there is a Unix domain socket with the "
9857 "given C<path> name."
9858 msgstr ""
9859
9860 #. type: =head2
9861 #: ../fish/guestfish-actions.pod:2450
9862 msgid "is-symlink"
9863 msgstr "is-symlink"
9864
9865 #. type: verbatim
9866 #: ../fish/guestfish-actions.pod:2452
9867 #, no-wrap
9868 msgid ""
9869 " is-symlink path\n"
9870 "\n"
9871 msgstr ""
9872 " is-symlink шлях\n"
9873 "\n"
9874
9875 #. type: textblock
9876 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3583
9877 msgid ""
9878 "This returns C<true> if and only if there is a symbolic link with the given "
9879 "C<path> name."
9880 msgstr ""
9881
9882 #. type: =head2
9883 #: ../fish/guestfish-actions.pod:2459
9884 msgid "is-zero"
9885 msgstr ""
9886
9887 #. type: verbatim
9888 #: ../fish/guestfish-actions.pod:2461
9889 #, no-wrap
9890 msgid ""
9891 " is-zero path\n"
9892 "\n"
9893 msgstr ""
9894
9895 #. type: textblock
9896 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3598
9897 msgid ""
9898 "This returns true iff the file exists and the file is empty or it contains "
9899 "all zero bytes."
9900 msgstr ""
9901
9902 #. type: =head2
9903 #: ../fish/guestfish-actions.pod:2466
9904 msgid "is-zero-device"
9905 msgstr ""
9906
9907 #. type: verbatim
9908 #: ../fish/guestfish-actions.pod:2468
9909 #, no-wrap
9910 msgid ""
9911 " is-zero-device device\n"
9912 "\n"
9913 msgstr ""
9914
9915 #. type: textblock
9916 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3611
9917 msgid "This returns true iff the device exists and contains all zero bytes."
9918 msgstr ""
9919
9920 #. type: textblock
9921 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3613
9922 msgid "Note that for large devices this can take a long time to run."
9923 msgstr ""
9924
9925 #. type: =head2
9926 #: ../fish/guestfish-actions.pod:2474
9927 msgid "kill-subprocess"
9928 msgstr "kill-subprocess"
9929
9930 #. type: verbatim
9931 #: ../fish/guestfish-actions.pod:2476
9932 #, no-wrap
9933 msgid ""
9934 " kill-subprocess\n"
9935 "\n"
9936 msgstr ""
9937 " kill-subprocess\n"
9938 "\n"
9939
9940 #. type: textblock
9941 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3624
9942 msgid "This kills the qemu subprocess.  You should never need to call this."
9943 msgstr ""
9944
9945 #. type: =head2
9946 #: ../fish/guestfish-actions.pod:2480
9947 msgid "launch"
9948 msgstr "launch"
9949
9950 #. type: =head2
9951 #: ../fish/guestfish-actions.pod:2482
9952 msgid "run"
9953 msgstr ""
9954
9955 #. type: verbatim
9956 #: ../fish/guestfish-actions.pod:2484
9957 #, no-wrap
9958 msgid ""
9959 " launch\n"
9960 "\n"
9961 msgstr ""
9962 " launch\n"
9963 "\n"
9964
9965 #. type: textblock
9966 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3635
9967 msgid ""
9968 "Internally libguestfs is implemented by running a virtual machine using "
9969 "L<qemu(1)>."
9970 msgstr ""
9971
9972 #. type: textblock
9973 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3638
9974 msgid ""
9975 "You should call this after configuring the handle (eg. adding drives) but "
9976 "before performing any actions."
9977 msgstr ""
9978
9979 #. type: =head2
9980 #: ../fish/guestfish-actions.pod:2492
9981 msgid "lchown"
9982 msgstr "lchown"
9983
9984 #. type: verbatim
9985 #: ../fish/guestfish-actions.pod:2494
9986 #, no-wrap
9987 msgid ""
9988 " lchown owner group path\n"
9989 "\n"
9990 msgstr ""
9991 " lchown власник група шлях\n"
9992 "\n"
9993
9994 #. type: textblock
9995 #: ../fish/guestfish-actions.pod:2496
9996 msgid ""
9997 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
9998 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9999 "target."
10000 msgstr ""
10001
10002 #. type: =head2
10003 #: ../fish/guestfish-actions.pod:2504
10004 msgid "lgetxattr"
10005 msgstr "lgetxattr"
10006
10007 #. type: verbatim
10008 #: ../fish/guestfish-actions.pod:2506
10009 #, no-wrap
10010 msgid ""
10011 " lgetxattr path name\n"
10012 "\n"
10013 msgstr ""
10014 " lgetxattr шлях назва\n"
10015 "\n"
10016
10017 #. type: textblock
10018 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3678
10019 msgid ""
10020 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10021 "is a symlink, then this call returns an extended attribute from the symlink."
10022 msgstr ""
10023
10024 #. type: textblock
10025 #: ../fish/guestfish-actions.pod:2522
10026 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10027 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10028
10029 #. type: =head2
10030 #: ../fish/guestfish-actions.pod:2524
10031 msgid "lgetxattrs"
10032 msgstr "lgetxattrs"
10033
10034 #. type: verbatim
10035 #: ../fish/guestfish-actions.pod:2526
10036 #, no-wrap
10037 msgid ""
10038 " lgetxattrs path\n"
10039 "\n"
10040 msgstr ""
10041 " lgetxattrs шлях\n"
10042 "\n"
10043
10044 #. type: textblock
10045 #: ../fish/guestfish-actions.pod:2528
10046 msgid ""
10047 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10048 "it returns the extended attributes of the link itself."
10049 msgstr ""
10050
10051 #. type: =head2
10052 #: ../fish/guestfish-actions.pod:2532
10053 msgid "list-9p"
10054 msgstr ""
10055
10056 #. type: verbatim
10057 #: ../fish/guestfish-actions.pod:2534
10058 #, no-wrap
10059 msgid ""
10060 " list-9p\n"
10061 "\n"
10062 msgstr ""
10063
10064 #. type: textblock
10065 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3721
10066 msgid ""
10067 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10068 "returned."
10069 msgstr ""
10070
10071 #. type: =head2
10072 #: ../fish/guestfish-actions.pod:2539
10073 msgid "list-devices"
10074 msgstr "list-devices"
10075
10076 #. type: verbatim
10077 #: ../fish/guestfish-actions.pod:2541
10078 #, no-wrap
10079 msgid ""
10080 " list-devices\n"
10081 "\n"
10082 msgstr ""
10083 " list-devices\n"
10084 "\n"
10085
10086 #. type: textblock
10087 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3735
10088 msgid "List all the block devices."
10089 msgstr ""
10090
10091 #. type: textblock
10092 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3737
10093 msgid "The full block device names are returned, eg. C</dev/sda>."
10094 msgstr ""
10095
10096 #. type: =head2
10097 #: ../fish/guestfish-actions.pod:2549
10098 msgid "list-dm-devices"
10099 msgstr ""
10100
10101 #. type: verbatim
10102 #: ../fish/guestfish-actions.pod:2551
10103 #, no-wrap
10104 msgid ""
10105 " list-dm-devices\n"
10106 "\n"
10107 msgstr ""
10108
10109 #. type: textblock
10110 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3752
10111 msgid "List all device mapper devices."
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:2555
10116 msgid ""
10117 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10118 "previous call to L</luks-open>."
10119 msgstr ""
10120
10121 #. type: textblock
10122 #: ../fish/guestfish-actions.pod:2558
10123 msgid ""
10124 "Device mapper devices which correspond to logical volumes are I<not> "
10125 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10126 msgstr ""
10127
10128 #. type: =head2
10129 #: ../fish/guestfish-actions.pod:2562
10130 msgid "list-filesystems"
10131 msgstr "list-filesystems"
10132
10133 #. type: verbatim
10134 #: ../fish/guestfish-actions.pod:2564
10135 #, no-wrap
10136 msgid ""
10137 " list-filesystems\n"
10138 "\n"
10139 msgstr ""
10140 " list-filesystems\n"
10141 "\n"
10142
10143 #. type: textblock
10144 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3772
10145 msgid ""
10146 "This inspection command looks for filesystems on partitions, block devices "
10147 "and logical volumes, returning a list of devices containing filesystems and "
10148 "their type."
10149 msgstr ""
10150
10151 #. type: textblock
10152 #: ../fish/guestfish-actions.pod:2570 ../src/guestfs-actions.pod:3776
10153 msgid ""
10154 "The return value is a hash, where the keys are the devices containing "
10155 "filesystems, and the values are the filesystem types.  For example:"
10156 msgstr ""
10157
10158 #. type: verbatim
10159 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
10160 #, no-wrap
10161 msgid ""
10162 " \"/dev/sda1\" => \"ntfs\"\n"
10163 " \"/dev/sda2\" => \"ext2\"\n"
10164 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10165 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10166 "\n"
10167 msgstr ""
10168
10169 #. type: textblock
10170 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3785
10171 msgid ""
10172 "The value can have the special value \"unknown\", meaning the content of the "
10173 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10174 msgstr ""
10175
10176 #. type: textblock
10177 #: ../fish/guestfish-actions.pod:2583
10178 msgid ""
10179 "This command runs other libguestfs commands, which might include L</mount> "
10180 "and L</umount>, and therefore you should use this soon after launch and only "
10181 "when nothing is mounted."
10182 msgstr ""
10183
10184 #. type: textblock
10185 #: ../fish/guestfish-actions.pod:2587
10186 msgid ""
10187 "Not all of the filesystems returned will be mountable.  In particular, swap "
10188 "partitions are returned in the list.  Also this command does not check that "
10189 "each filesystem found is valid and mountable, and some filesystems might be "
10190 "mountable but require special options.  Filesystems may not all belong to a "
10191 "single logical operating system (use L</inspect-os> to look for OSes)."
10192 msgstr ""
10193
10194 #. type: =head2
10195 #: ../fish/guestfish-actions.pod:2595
10196 msgid "list-partitions"
10197 msgstr "list-partitions"
10198
10199 #. type: verbatim
10200 #: ../fish/guestfish-actions.pod:2597
10201 #, no-wrap
10202 msgid ""
10203 " list-partitions\n"
10204 "\n"
10205 msgstr ""
10206 " list-partitions\n"
10207 "\n"
10208
10209 #. type: textblock
10210 #: ../fish/guestfish-actions.pod:2599 ../src/guestfs-actions.pod:3814
10211 msgid "List all the partitions detected on all block devices."
10212 msgstr ""
10213
10214 #. type: textblock
10215 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3816
10216 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10217 msgstr ""
10218
10219 #. type: textblock
10220 #: ../fish/guestfish-actions.pod:2603
10221 msgid ""
10222 "This does not return logical volumes.  For that you will need to call L</"
10223 "lvs>."
10224 msgstr ""
10225
10226 #. type: =head2
10227 #: ../fish/guestfish-actions.pod:2608
10228 msgid "ll"
10229 msgstr "ll"
10230
10231 #. type: verbatim
10232 #: ../fish/guestfish-actions.pod:2610
10233 #, no-wrap
10234 msgid ""
10235 " ll directory\n"
10236 "\n"
10237 msgstr ""
10238 " ll каталог\n"
10239 "\n"
10240
10241 #. type: textblock
10242 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3835
10243 msgid ""
10244 "List the files in C<directory> (relative to the root directory, there is no "
10245 "cwd) in the format of 'ls -la'."
10246 msgstr ""
10247
10248 #. type: textblock
10249 #: ../fish/guestfish-actions.pod:2615 ../src/guestfs-actions.pod:3838
10250 msgid ""
10251 "This command is mostly useful for interactive sessions.  It is I<not> "
10252 "intended that you try to parse the output string."
10253 msgstr ""
10254
10255 #. type: =head2
10256 #: ../fish/guestfish-actions.pod:2618
10257 msgid "ln"
10258 msgstr "ln"
10259
10260 #. type: verbatim
10261 #: ../fish/guestfish-actions.pod:2620
10262 #, no-wrap
10263 msgid ""
10264 " ln target linkname\n"
10265 "\n"
10266 msgstr ""
10267 " ln призначення назва_посилання\n"
10268 "\n"
10269
10270 #. type: textblock
10271 #: ../fish/guestfish-actions.pod:2622 ../src/guestfs-actions.pod:3853
10272 msgid "This command creates a hard link using the C<ln> command."
10273 msgstr ""
10274
10275 #. type: =head2
10276 #: ../fish/guestfish-actions.pod:2624
10277 msgid "ln-f"
10278 msgstr "ln-f"
10279
10280 #. type: verbatim
10281 #: ../fish/guestfish-actions.pod:2626
10282 #, no-wrap
10283 msgid ""
10284 " ln-f target linkname\n"
10285 "\n"
10286 msgstr ""
10287 " ln-f призначення назва_посилання\n"
10288 "\n"
10289
10290 #. type: textblock
10291 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3866
10292 msgid ""
10293 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10294 "option removes the link (C<linkname>) if it exists already."
10295 msgstr ""
10296
10297 #. type: =head2
10298 #: ../fish/guestfish-actions.pod:2631
10299 msgid "ln-s"
10300 msgstr "ln-s"
10301
10302 #. type: verbatim
10303 #: ../fish/guestfish-actions.pod:2633
10304 #, no-wrap
10305 msgid ""
10306 " ln-s target linkname\n"
10307 "\n"
10308 msgstr ""
10309 " ln-s призначення назва_посилання\n"
10310 "\n"
10311
10312 #. type: textblock
10313 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:3880
10314 msgid "This command creates a symbolic link using the C<ln -s> command."
10315 msgstr ""
10316
10317 #. type: =head2
10318 #: ../fish/guestfish-actions.pod:2637
10319 msgid "ln-sf"
10320 msgstr "ln-sf"
10321
10322 #. type: verbatim
10323 #: ../fish/guestfish-actions.pod:2639
10324 #, no-wrap
10325 msgid ""
10326 " ln-sf target linkname\n"
10327 "\n"
10328 msgstr ""
10329 " ln-sf призначення назва_посилання\n"
10330 "\n"
10331
10332 #. type: textblock
10333 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3893
10334 msgid ""
10335 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10336 "option removes the link (C<linkname>) if it exists already."
10337 msgstr ""
10338
10339 #. type: =head2
10340 #: ../fish/guestfish-actions.pod:2644
10341 msgid "lremovexattr"
10342 msgstr "lremovexattr"
10343
10344 #. type: verbatim
10345 #: ../fish/guestfish-actions.pod:2646
10346 #, no-wrap
10347 msgid ""
10348 " lremovexattr xattr path\n"
10349 "\n"
10350 msgstr ""
10351
10352 #. type: textblock
10353 #: ../fish/guestfish-actions.pod:2648
10354 msgid ""
10355 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10356 "it removes an extended attribute of the link itself."
10357 msgstr ""
10358
10359 #. type: =head2
10360 #: ../fish/guestfish-actions.pod:2652
10361 msgid "ls"
10362 msgstr "ls"
10363
10364 #. type: verbatim
10365 #: ../fish/guestfish-actions.pod:2654
10366 #, no-wrap
10367 msgid ""
10368 " ls directory\n"
10369 "\n"
10370 msgstr ""
10371 " ls каталог\n"
10372 "\n"
10373
10374 #. type: textblock
10375 #: ../fish/guestfish-actions.pod:2656 ../src/guestfs-actions.pod:3921
10376 msgid ""
10377 "List the files in C<directory> (relative to the root directory, there is no "
10378 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10379 msgstr ""
10380
10381 #. type: textblock
10382 #: ../fish/guestfish-actions.pod:2660
10383 msgid ""
10384 "This command is mostly useful for interactive sessions.  Programs should "
10385 "probably use L</readdir> instead."
10386 msgstr ""
10387
10388 #. type: =head2
10389 #: ../fish/guestfish-actions.pod:2663
10390 msgid "lsetxattr"
10391 msgstr "lsetxattr"
10392
10393 #. type: verbatim
10394 #: ../fish/guestfish-actions.pod:2665
10395 #, no-wrap
10396 msgid ""
10397 " lsetxattr xattr val vallen path\n"
10398 "\n"
10399 msgstr ""
10400
10401 #. type: textblock
10402 #: ../fish/guestfish-actions.pod:2667
10403 msgid ""
10404 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10405 "sets an extended attribute of the link itself."
10406 msgstr ""
10407
10408 #. type: =head2
10409 #: ../fish/guestfish-actions.pod:2671
10410 msgid "lstat"
10411 msgstr "lstat"
10412
10413 #. type: verbatim
10414 #: ../fish/guestfish-actions.pod:2673
10415 #, no-wrap
10416 msgid ""
10417 " lstat path\n"
10418 "\n"
10419 msgstr ""
10420 " lstat шлях\n"
10421 "\n"
10422
10423 #. type: textblock
10424 #: ../fish/guestfish-actions.pod:2675 ../fish/guestfish-actions.pod:4483
10425 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:6736
10426 msgid "Returns file information for the given C<path>."
10427 msgstr ""
10428
10429 #. type: textblock
10430 #: ../fish/guestfish-actions.pod:2677
10431 msgid ""
10432 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10433 "the link is stat-ed, not the file it refers to."
10434 msgstr ""
10435
10436 #. type: textblock
10437 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3963
10438 msgid "This is the same as the C<lstat(2)> system call."
10439 msgstr ""
10440
10441 #. type: =head2
10442 #: ../fish/guestfish-actions.pod:2683
10443 msgid "lstatlist"
10444 msgstr "lstatlist"
10445
10446 #. type: verbatim
10447 #: ../fish/guestfish-actions.pod:2685
10448 #, no-wrap
10449 msgid ""
10450 " lstatlist path 'names ...'\n"
10451 "\n"
10452 msgstr ""
10453
10454 #. type: textblock
10455 #: ../fish/guestfish-actions.pod:2687
10456 msgid ""
10457 "This call allows you to perform the L</lstat> operation on multiple files, "
10458 "where all files are in the directory C<path>.  C<names> is the list of files "
10459 "from this directory."
10460 msgstr ""
10461
10462 #. type: textblock
10463 #: ../fish/guestfish-actions.pod:2691 ../src/guestfs-actions.pod:3982
10464 msgid ""
10465 "On return you get a list of stat structs, with a one-to-one correspondence "
10466 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10467 "then the C<ino> field of that structure is set to C<-1>."
10468 msgstr ""
10469
10470 #. type: textblock
10471 #: ../fish/guestfish-actions.pod:2696
10472 msgid ""
10473 "This call is intended for programs that want to efficiently list a directory "
10474 "contents without making many round-trips.  See also L</lxattrlist> for a "
10475 "similarly efficient call for getting extended attributes.  Very long "
10476 "directory listings might cause the protocol message size to be exceeded, "
10477 "causing this call to fail.  The caller must split up such requests into "
10478 "smaller groups of names."
10479 msgstr ""
10480
10481 #. type: =head2
10482 #: ../fish/guestfish-actions.pod:2704
10483 msgid "luks-add-key"
10484 msgstr "luks-add-key"
10485
10486 #. type: verbatim
10487 #: ../fish/guestfish-actions.pod:2706
10488 #, no-wrap
10489 msgid ""
10490 " luks-add-key device keyslot\n"
10491 "\n"
10492 msgstr ""
10493
10494 #. type: textblock
10495 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4010
10496 msgid ""
10497 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10498 "existing key, and is used to access the device.  C<newkey> is the new key to "
10499 "add.  C<keyslot> is the key slot that will be replaced."
10500 msgstr ""
10501
10502 #. type: textblock
10503 #: ../fish/guestfish-actions.pod:2713
10504 msgid ""
10505 "Note that if C<keyslot> already contains a key, then this command will "
10506 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10507 msgstr ""
10508
10509 #. type: textblock
10510 #: ../fish/guestfish-actions.pod:2717 ../fish/guestfish-actions.pod:2739
10511 #: ../fish/guestfish-actions.pod:2752 ../fish/guestfish-actions.pod:2766
10512 #: ../fish/guestfish-actions.pod:2792 ../fish/guestfish-actions.pod:2802
10513 msgid ""
10514 "This command has one or more key or passphrase parameters.  Guestfish will "
10515 "prompt for these separately."
10516 msgstr ""
10517
10518 #. type: =head2
10519 #: ../fish/guestfish-actions.pod:2720
10520 msgid "luks-close"
10521 msgstr "luks-close"
10522
10523 #. type: verbatim
10524 #: ../fish/guestfish-actions.pod:2722
10525 #, no-wrap
10526 msgid ""
10527 " luks-close device\n"
10528 "\n"
10529 msgstr ""
10530 " luks-close пристрій\n"
10531 "\n"
10532
10533 #. type: textblock
10534 #: ../fish/guestfish-actions.pod:2724
10535 msgid ""
10536 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10537 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
10538 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10539 "block device."
10540 msgstr ""
10541
10542 #. type: =head2
10543 #: ../fish/guestfish-actions.pod:2730
10544 msgid "luks-format"
10545 msgstr "luks-format"
10546
10547 #. type: verbatim
10548 #: ../fish/guestfish-actions.pod:2732
10549 #, no-wrap
10550 msgid ""
10551 " luks-format device keyslot\n"
10552 "\n"
10553 msgstr ""
10554
10555 #. type: textblock
10556 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4051
10557 msgid ""
10558 "This command erases existing data on C<device> and formats the device as a "
10559 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10560 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10561 msgstr ""
10562
10563 #. type: textblock
10564 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:2755
10565 #: ../fish/guestfish-actions.pod:2842 ../fish/guestfish-actions.pod:3503
10566 #: ../fish/guestfish-actions.pod:4029 ../fish/guestfish-actions.pod:4354
10567 #: ../fish/guestfish-actions.pod:4377 ../fish/guestfish-actions.pod:4399
10568 #: ../fish/guestfish-actions.pod:5145 ../src/guestfs-actions.pod:4058
10569 #: ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4224
10570 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:6115
10571 #: ../src/guestfs-actions.pod:6550 ../src/guestfs-actions.pod:6580
10572 #: ../src/guestfs-actions.pod:6613 ../src/guestfs-actions.pod:7812
10573 msgid ""
10574 "B<This command is dangerous.  Without careful use you can easily destroy all "
10575 "your data>."
10576 msgstr ""
10577
10578 #. type: =head2
10579 #: ../fish/guestfish-actions.pod:2745
10580 msgid "luks-format-cipher"
10581 msgstr "luks-format-cipher"
10582
10583 #. type: verbatim
10584 #: ../fish/guestfish-actions.pod:2747
10585 #, no-wrap
10586 msgid ""
10587 " luks-format-cipher device keyslot cipher\n"
10588 "\n"
10589 msgstr ""
10590
10591 #. type: textblock
10592 #: ../fish/guestfish-actions.pod:2749
10593 msgid ""
10594 "This command is the same as L</luks-format> but it also allows you to set "
10595 "the C<cipher> used."
10596 msgstr ""
10597
10598 #. type: =head2
10599 #: ../fish/guestfish-actions.pod:2758
10600 msgid "luks-kill-slot"
10601 msgstr "luks-kill-slot"
10602
10603 #. type: verbatim
10604 #: ../fish/guestfish-actions.pod:2760
10605 #, no-wrap
10606 msgid ""
10607 " luks-kill-slot device keyslot\n"
10608 "\n"
10609 msgstr ""
10610
10611 #. type: textblock
10612 #: ../fish/guestfish-actions.pod:2762 ../src/guestfs-actions.pod:4098
10613 msgid ""
10614 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10615 "device C<device>.  C<key> must be one of the I<other> keys."
10616 msgstr ""
10617
10618 #. type: =head2
10619 #: ../fish/guestfish-actions.pod:2769
10620 msgid "luks-open"
10621 msgstr "luks-open"
10622
10623 #. type: verbatim
10624 #: ../fish/guestfish-actions.pod:2771
10625 #, no-wrap
10626 msgid ""
10627 " luks-open device mapname\n"
10628 "\n"
10629 msgstr ""
10630
10631 #. type: textblock
10632 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10633 msgid ""
10634 "This command opens a block device which has been encrypted according to the "
10635 "Linux Unified Key Setup (LUKS) standard."
10636 msgstr ""
10637
10638 #. type: textblock
10639 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10640 msgid "C<device> is the encrypted block device or partition."
10641 msgstr ""
10642
10643 #. type: textblock
10644 #: ../fish/guestfish-actions.pod:2778 ../src/guestfs-actions.pod:4123
10645 msgid ""
10646 "The caller must supply one of the keys associated with the LUKS block "
10647 "device, in the C<key> parameter."
10648 msgstr ""
10649
10650 #. type: textblock
10651 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4126
10652 msgid ""
10653 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10654 "writes to this block device are decrypted from and encrypted to the "
10655 "underlying C<device> respectively."
10656 msgstr ""
10657
10658 #. type: textblock
10659 #: ../fish/guestfish-actions.pod:2785
10660 msgid ""
10661 "If this block device contains LVM volume groups, then calling L</vgscan> "
10662 "followed by L</vg-activate-all> will make them visible."
10663 msgstr ""
10664
10665 #. type: textblock
10666 #: ../fish/guestfish-actions.pod:2789
10667 msgid "Use L</list-dm-devices> to list all device mapper devices."
10668 msgstr ""
10669
10670 #. type: =head2
10671 #: ../fish/guestfish-actions.pod:2795
10672 msgid "luks-open-ro"
10673 msgstr "luks-open-ro"
10674
10675 #. type: verbatim
10676 #: ../fish/guestfish-actions.pod:2797
10677 #, no-wrap
10678 msgid ""
10679 " luks-open-ro device mapname\n"
10680 "\n"
10681 msgstr ""
10682
10683 #. type: textblock
10684 #: ../fish/guestfish-actions.pod:2799
10685 msgid ""
10686 "This is the same as L</luks-open> except that a read-only mapping is created."
10687 msgstr ""
10688
10689 #. type: =head2
10690 #: ../fish/guestfish-actions.pod:2805
10691 msgid "lvcreate"
10692 msgstr "lvcreate"
10693
10694 #. type: verbatim
10695 #: ../fish/guestfish-actions.pod:2807
10696 #, no-wrap
10697 msgid ""
10698 " lvcreate logvol volgroup mbytes\n"
10699 "\n"
10700 msgstr ""
10701
10702 #. type: textblock
10703 #: ../fish/guestfish-actions.pod:2809 ../src/guestfs-actions.pod:4172
10704 msgid ""
10705 "This creates an LVM logical volume called C<logvol> on the volume group "
10706 "C<volgroup>, with C<size> megabytes."
10707 msgstr ""
10708
10709 #. type: =head2
10710 #: ../fish/guestfish-actions.pod:2812
10711 msgid "lvm-canonical-lv-name"
10712 msgstr "lvm-canonical-lv-name"
10713
10714 #. type: verbatim
10715 #: ../fish/guestfish-actions.pod:2814
10716 #, no-wrap
10717 msgid ""
10718 " lvm-canonical-lv-name lvname\n"
10719 "\n"
10720 msgstr ""
10721
10722 #. type: textblock
10723 #: ../fish/guestfish-actions.pod:2816 ../src/guestfs-actions.pod:4185
10724 msgid ""
10725 "This converts alternative naming schemes for LVs that you might find to the "
10726 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10727 "LV>."
10728 msgstr ""
10729
10730 #. type: textblock
10731 #: ../fish/guestfish-actions.pod:2820 ../src/guestfs-actions.pod:4189
10732 msgid ""
10733 "This command returns an error if the C<lvname> parameter does not refer to a "
10734 "logical volume."
10735 msgstr ""
10736
10737 #. type: textblock
10738 #: ../fish/guestfish-actions.pod:2823
10739 msgid "See also L</is-lv>."
10740 msgstr "Див. також L</is-lv>."
10741
10742 #. type: =head2
10743 #: ../fish/guestfish-actions.pod:2825
10744 msgid "lvm-clear-filter"
10745 msgstr "lvm-clear-filter"
10746
10747 #. type: verbatim
10748 #: ../fish/guestfish-actions.pod:2827
10749 #, no-wrap
10750 msgid ""
10751 " lvm-clear-filter\n"
10752 "\n"
10753 msgstr ""
10754 " lvm-clear-filter\n"
10755 "\n"
10756
10757 #. type: textblock
10758 #: ../fish/guestfish-actions.pod:2829
10759 msgid ""
10760 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10761 "block device."
10762 msgstr ""
10763
10764 #. type: textblock
10765 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2863
10766 #: ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4249
10767 msgid ""
10768 "This command also clears the LVM cache and performs a volume group scan."
10769 msgstr ""
10770
10771 #. type: =head2
10772 #: ../fish/guestfish-actions.pod:2835
10773 msgid "lvm-remove-all"
10774 msgstr "lvm-remove-all"
10775
10776 #. type: verbatim
10777 #: ../fish/guestfish-actions.pod:2837
10778 #, no-wrap
10779 msgid ""
10780 " lvm-remove-all\n"
10781 "\n"
10782 msgstr ""
10783 " lvm-remove-all\n"
10784 "\n"
10785
10786 #. type: textblock
10787 #: ../fish/guestfish-actions.pod:2839 ../src/guestfs-actions.pod:4219
10788 msgid ""
10789 "This command removes all LVM logical volumes, volume groups and physical "
10790 "volumes."
10791 msgstr ""
10792
10793 #. type: =head2
10794 #: ../fish/guestfish-actions.pod:2845
10795 msgid "lvm-set-filter"
10796 msgstr "lvm-set-filter"
10797
10798 #. type: verbatim
10799 #: ../fish/guestfish-actions.pod:2847
10800 #, no-wrap
10801 msgid ""
10802 " lvm-set-filter 'devices ...'\n"
10803 "\n"
10804 msgstr ""
10805 " lvm-set-filter 'пристрої...'\n"
10806 "\n"
10807
10808 #. type: textblock
10809 #: ../fish/guestfish-actions.pod:2849 ../src/guestfs-actions.pod:4235
10810 msgid ""
10811 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10812 "block devices in the list C<devices>, and will ignore all other attached "
10813 "block devices."
10814 msgstr ""
10815
10816 #. type: textblock
10817 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4239
10818 msgid ""
10819 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10820 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10821 "there are two types of duplication possible: either cloned PVs/VGs which "
10822 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10823 "same name.  In normal operation you cannot create this situation, but you "
10824 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10825 "inside the LVM metadata."
10826 msgstr ""
10827
10828 #. type: textblock
10829 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4252
10830 msgid "You can filter whole block devices or individual partitions."
10831 msgstr ""
10832
10833 #. type: textblock
10834 #: ../fish/guestfish-actions.pod:2868 ../src/guestfs-actions.pod:4254
10835 msgid ""
10836 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10837 "filesystem), even if you are not filtering out that VG."
10838 msgstr ""
10839
10840 #. type: =head2
10841 #: ../fish/guestfish-actions.pod:2872
10842 msgid "lvremove"
10843 msgstr "lvremove"
10844
10845 #. type: verbatim
10846 #: ../fish/guestfish-actions.pod:2874
10847 #, no-wrap
10848 msgid ""
10849 " lvremove device\n"
10850 "\n"
10851 msgstr ""
10852 " lvremove пристрій\n"
10853 "\n"
10854
10855 #. type: textblock
10856 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4268
10857 msgid ""
10858 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10859 "LV, such as C</dev/VG/LV>."
10860 msgstr ""
10861
10862 #. type: textblock
10863 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4271
10864 msgid ""
10865 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10866 "dev/VG>."
10867 msgstr ""
10868
10869 #. type: =head2
10870 #: ../fish/guestfish-actions.pod:2882
10871 msgid "lvrename"
10872 msgstr "lvrename"
10873
10874 #. type: verbatim
10875 #: ../fish/guestfish-actions.pod:2884
10876 #, no-wrap
10877 msgid ""
10878 " lvrename logvol newlogvol\n"
10879 "\n"
10880 msgstr ""
10881
10882 #. type: textblock
10883 #: ../fish/guestfish-actions.pod:2886 ../src/guestfs-actions.pod:4285
10884 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10885 msgstr ""
10886
10887 #. type: =head2
10888 #: ../fish/guestfish-actions.pod:2888
10889 msgid "lvresize"
10890 msgstr "lvresize"
10891
10892 #. type: verbatim
10893 #: ../fish/guestfish-actions.pod:2890
10894 #, no-wrap
10895 msgid ""
10896 " lvresize device mbytes\n"
10897 "\n"
10898 msgstr ""
10899
10900 #. type: textblock
10901 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4298
10902 msgid ""
10903 "This resizes (expands or shrinks) an existing LVM logical volume to "
10904 "C<mbytes>.  When reducing, data in the reduced part is lost."
10905 msgstr ""
10906
10907 #. type: =head2
10908 #: ../fish/guestfish-actions.pod:2896
10909 msgid "lvresize-free"
10910 msgstr "lvresize-free"
10911
10912 #. type: verbatim
10913 #: ../fish/guestfish-actions.pod:2898
10914 #, no-wrap
10915 msgid ""
10916 " lvresize-free lv percent\n"
10917 "\n"
10918 msgstr ""
10919
10920 #. type: textblock
10921 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4313
10922 msgid ""
10923 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10924 "remaining free space in the volume group.  Commonly you would call this with "
10925 "pc = 100 which expands the logical volume as much as possible, using all "
10926 "remaining free space in the volume group."
10927 msgstr ""
10928
10929 #. type: =head2
10930 #: ../fish/guestfish-actions.pod:2906
10931 msgid "lvs"
10932 msgstr "lvs"
10933
10934 #. type: verbatim
10935 #: ../fish/guestfish-actions.pod:2908
10936 #, no-wrap
10937 msgid ""
10938 " lvs\n"
10939 "\n"
10940 msgstr ""
10941 " lvs\n"
10942 "\n"
10943
10944 #. type: textblock
10945 #: ../fish/guestfish-actions.pod:2910 ../src/guestfs-actions.pod:4328
10946 msgid ""
10947 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10948 "(8)> command."
10949 msgstr ""
10950
10951 #. type: textblock
10952 #: ../fish/guestfish-actions.pod:2913 ../src/guestfs-actions.pod:4331
10953 msgid ""
10954 "This returns a list of the logical volume device names (eg. C</dev/"
10955 "VolGroup00/LogVol00>)."
10956 msgstr ""
10957
10958 #. type: textblock
10959 #: ../fish/guestfish-actions.pod:2916
10960 msgid "See also L</lvs-full>, L</list-filesystems>."
10961 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
10962
10963 #. type: =head2
10964 #: ../fish/guestfish-actions.pod:2918
10965 msgid "lvs-full"
10966 msgstr "lvs-full"
10967
10968 #. type: verbatim
10969 #: ../fish/guestfish-actions.pod:2920
10970 #, no-wrap
10971 msgid ""
10972 " lvs-full\n"
10973 "\n"
10974 msgstr ""
10975 " lvs-full\n"
10976 "\n"
10977
10978 #. type: textblock
10979 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4347
10980 msgid ""
10981 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10982 "(8)> command.  The \"full\" version includes all fields."
10983 msgstr ""
10984
10985 #. type: =head2
10986 #: ../fish/guestfish-actions.pod:2925
10987 msgid "lvuuid"
10988 msgstr "lvuuid"
10989
10990 #. type: verbatim
10991 #: ../fish/guestfish-actions.pod:2927
10992 #, no-wrap
10993 msgid ""
10994 " lvuuid device\n"
10995 "\n"
10996 msgstr ""
10997 " lvuuid пристрій\n"
10998 "\n"
10999
11000 #. type: textblock
11001 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4362
11002 msgid "This command returns the UUID of the LVM LV C<device>."
11003 msgstr ""
11004
11005 #. type: =head2
11006 #: ../fish/guestfish-actions.pod:2931
11007 msgid "lxattrlist"
11008 msgstr "lxattrlist"
11009
11010 #. type: verbatim
11011 #: ../fish/guestfish-actions.pod:2933
11012 #, no-wrap
11013 msgid ""
11014 " lxattrlist path 'names ...'\n"
11015 "\n"
11016 msgstr ""
11017
11018 #. type: textblock
11019 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4376
11020 msgid ""
11021 "This call allows you to get the extended attributes of multiple files, where "
11022 "all files are in the directory C<path>.  C<names> is the list of files from "
11023 "this directory."
11024 msgstr ""
11025
11026 #. type: textblock
11027 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4380
11028 msgid ""
11029 "On return you get a flat list of xattr structs which must be interpreted "
11030 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11031 "C<attrval> in this struct is zero-length to indicate there was an error "
11032 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11033 "number (the number of following attributes for this file, which could be C<"
11034 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11035 "for the first named file.  This repeats for the second and subsequent files."
11036 msgstr ""
11037
11038 #. type: textblock
11039 #: ../fish/guestfish-actions.pod:2949
11040 msgid ""
11041 "This call is intended for programs that want to efficiently list a directory "
11042 "contents without making many round-trips.  See also L</lstatlist> for a "
11043 "similarly efficient call for getting standard stats.  Very long directory "
11044 "listings might cause the protocol message size to be exceeded, causing this "
11045 "call to fail.  The caller must split up such requests into smaller groups of "
11046 "names."
11047 msgstr ""
11048
11049 #. type: =head2
11050 #: ../fish/guestfish-actions.pod:2957
11051 msgid "mkdir"
11052 msgstr "mkdir"
11053
11054 #. type: verbatim
11055 #: ../fish/guestfish-actions.pod:2959
11056 #, no-wrap
11057 msgid ""
11058 " mkdir path\n"
11059 "\n"
11060 msgstr ""
11061 " mkdir шлях\n"
11062 "\n"
11063
11064 #. type: textblock
11065 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4410
11066 msgid "Create a directory named C<path>."
11067 msgstr ""
11068
11069 #. type: =head2
11070 #: ../fish/guestfish-actions.pod:2963
11071 msgid "mkdir-mode"
11072 msgstr "mkdir-mode"
11073
11074 #. type: verbatim
11075 #: ../fish/guestfish-actions.pod:2965
11076 #, no-wrap
11077 msgid ""
11078 " mkdir-mode path mode\n"
11079 "\n"
11080 msgstr ""
11081 " mkdir-mode шлях режим\n"
11082 "\n"
11083
11084 #. type: textblock
11085 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4423
11086 msgid ""
11087 "This command creates a directory, setting the initial permissions of the "
11088 "directory to C<mode>."
11089 msgstr ""
11090
11091 #. type: textblock
11092 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4426
11093 msgid ""
11094 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11095 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11096 "other ways."
11097 msgstr ""
11098
11099 #. type: textblock
11100 #: ../fish/guestfish-actions.pod:2974
11101 msgid "See also L</mkdir>, L</umask>"
11102 msgstr "Див. також L</mkdir>, L</umask>"
11103
11104 #. type: =head2
11105 #: ../fish/guestfish-actions.pod:2976
11106 msgid "mkdir-p"
11107 msgstr "mkdir-p"
11108
11109 #. type: verbatim
11110 #: ../fish/guestfish-actions.pod:2978
11111 #, no-wrap
11112 msgid ""
11113 " mkdir-p path\n"
11114 "\n"
11115 msgstr ""
11116 " mkdir-p шлях\n"
11117 "\n"
11118
11119 #. type: textblock
11120 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4442
11121 msgid ""
11122 "Create a directory named C<path>, creating any parent directories as "
11123 "necessary.  This is like the C<mkdir -p> shell command."
11124 msgstr ""
11125
11126 #. type: =head2
11127 #: ../fish/guestfish-actions.pod:2983
11128 msgid "mkdtemp"
11129 msgstr "mkdtemp"
11130
11131 #. type: verbatim
11132 #: ../fish/guestfish-actions.pod:2985
11133 #, no-wrap
11134 msgid ""
11135 " mkdtemp template\n"
11136 "\n"
11137 msgstr ""
11138 " mkdtemp шаблон\n"
11139 "\n"
11140
11141 #. type: textblock
11142 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
11143 msgid ""
11144 "This command creates a temporary directory.  The C<template> parameter "
11145 "should be a full pathname for the temporary directory name with the final "
11146 "six characters being \"XXXXXX\"."
11147 msgstr ""
11148
11149 #. type: textblock
11150 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4460
11151 msgid ""
11152 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11153 "being suitable for Windows filesystems."
11154 msgstr ""
11155
11156 #. type: textblock
11157 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4463
11158 msgid "The name of the temporary directory that was created is returned."
11159 msgstr ""
11160
11161 #. type: textblock
11162 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4466
11163 msgid "The temporary directory is created with mode 0700 and is owned by root."
11164 msgstr ""
11165
11166 #. type: textblock
11167 #: ../fish/guestfish-actions.pod:3001 ../src/guestfs-actions.pod:4469
11168 msgid ""
11169 "The caller is responsible for deleting the temporary directory and its "
11170 "contents after use."
11171 msgstr ""
11172
11173 #. type: textblock
11174 #: ../fish/guestfish-actions.pod:3004 ../src/guestfs-actions.pod:4472
11175 msgid "See also: L<mkdtemp(3)>"
11176 msgstr ""
11177
11178 #. type: =head2
11179 #: ../fish/guestfish-actions.pod:3006
11180 msgid "mke2fs-J"
11181 msgstr "mke2fs-J"
11182
11183 #. type: verbatim
11184 #: ../fish/guestfish-actions.pod:3008
11185 #, no-wrap
11186 msgid ""
11187 " mke2fs-J fstype blocksize device journal\n"
11188 "\n"
11189 msgstr ""
11190
11191 #. type: textblock
11192 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4488
11193 msgid ""
11194 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11195 "C<journal>.  It is equivalent to the command:"
11196 msgstr ""
11197
11198 #. type: verbatim
11199 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4492
11200 #, no-wrap
11201 msgid ""
11202 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11203 "\n"
11204 msgstr ""
11205 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11206 "\n"
11207
11208 #. type: textblock
11209 #: ../fish/guestfish-actions.pod:3016
11210 msgid "See also L</mke2journal>."
11211 msgstr "Див. також L</mke2journal>."
11212
11213 #. type: =head2
11214 #: ../fish/guestfish-actions.pod:3018
11215 msgid "mke2fs-JL"
11216 msgstr "mke2fs-JL"
11217
11218 #. type: verbatim
11219 #: ../fish/guestfish-actions.pod:3020
11220 #, no-wrap
11221 msgid ""
11222 " mke2fs-JL fstype blocksize device label\n"
11223 "\n"
11224 msgstr ""
11225
11226 #. type: textblock
11227 #: ../fish/guestfish-actions.pod:3022 ../src/guestfs-actions.pod:4509
11228 msgid ""
11229 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11230 "the journal labeled C<label>."
11231 msgstr ""
11232
11233 #. type: textblock
11234 #: ../fish/guestfish-actions.pod:3025
11235 msgid "See also L</mke2journal-L>."
11236 msgstr "Див. також L</mke2journal-L>."
11237
11238 #. type: =head2
11239 #: ../fish/guestfish-actions.pod:3027
11240 msgid "mke2fs-JU"
11241 msgstr "mke2fs-JU"
11242
11243 #. type: verbatim
11244 #: ../fish/guestfish-actions.pod:3029
11245 #, no-wrap
11246 msgid ""
11247 " mke2fs-JU fstype blocksize device uuid\n"
11248 "\n"
11249 msgstr ""
11250
11251 #. type: textblock
11252 #: ../fish/guestfish-actions.pod:3031 ../src/guestfs-actions.pod:4527
11253 msgid ""
11254 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11255 "the journal with UUID C<uuid>."
11256 msgstr ""
11257
11258 #. type: textblock
11259 #: ../fish/guestfish-actions.pod:3034
11260 msgid "See also L</mke2journal-U>."
11261 msgstr "Див. також L</mke2journal-U>."
11262
11263 #. type: =head2
11264 #: ../fish/guestfish-actions.pod:3036
11265 msgid "mke2journal"
11266 msgstr "mke2journal"
11267
11268 #. type: verbatim
11269 #: ../fish/guestfish-actions.pod:3038
11270 #, no-wrap
11271 msgid ""
11272 " mke2journal blocksize device\n"
11273 "\n"
11274 msgstr ""
11275
11276 #. type: textblock
11277 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4543
11278 msgid ""
11279 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11280 "command:"
11281 msgstr ""
11282
11283 #. type: verbatim
11284 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4546
11285 #, no-wrap
11286 msgid ""
11287 " mke2fs -O journal_dev -b blocksize device\n"
11288 "\n"
11289 msgstr ""
11290
11291 #. type: =head2
11292 #: ../fish/guestfish-actions.pod:3045
11293 msgid "mke2journal-L"
11294 msgstr "mke2journal-L"
11295
11296 #. type: verbatim
11297 #: ../fish/guestfish-actions.pod:3047
11298 #, no-wrap
11299 msgid ""
11300 " mke2journal-L blocksize label device\n"
11301 "\n"
11302 msgstr ""
11303
11304 #. type: textblock
11305 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4560
11306 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11307 msgstr ""
11308
11309 #. type: =head2
11310 #: ../fish/guestfish-actions.pod:3051
11311 msgid "mke2journal-U"
11312 msgstr "mke2journal-U"
11313
11314 #. type: verbatim
11315 #: ../fish/guestfish-actions.pod:3053
11316 #, no-wrap
11317 msgid ""
11318 " mke2journal-U blocksize uuid device\n"
11319 "\n"
11320 msgstr ""
11321
11322 #. type: textblock
11323 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4574
11324 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11325 msgstr ""
11326
11327 #. type: =head2
11328 #: ../fish/guestfish-actions.pod:3057
11329 msgid "mkfifo"
11330 msgstr "mkfifo"
11331
11332 #. type: verbatim
11333 #: ../fish/guestfish-actions.pod:3059
11334 #, no-wrap
11335 msgid ""
11336 " mkfifo mode path\n"
11337 "\n"
11338 msgstr ""
11339 " mkfifo режим шлях\n"
11340 "\n"
11341
11342 #. type: textblock
11343 #: ../fish/guestfish-actions.pod:3061
11344 msgid ""
11345 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11346 "is just a convenient wrapper around L</mknod>."
11347 msgstr ""
11348
11349 #. type: =head2
11350 #: ../fish/guestfish-actions.pod:3067
11351 msgid "mkfs"
11352 msgstr "mkfs"
11353
11354 #. type: verbatim
11355 #: ../fish/guestfish-actions.pod:3069
11356 #, no-wrap
11357 msgid ""
11358 " mkfs fstype device\n"
11359 "\n"
11360 msgstr ""
11361 " mkfs тип_файлової_системи пристрій\n"
11362 "\n"
11363
11364 #. type: textblock
11365 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4604
11366 msgid ""
11367 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11368 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11369 msgstr ""
11370
11371 #. type: =head2
11372 #: ../fish/guestfish-actions.pod:3075
11373 msgid "mkfs-b"
11374 msgstr "mkfs-b"
11375
11376 #. type: verbatim
11377 #: ../fish/guestfish-actions.pod:3077
11378 #, no-wrap
11379 msgid ""
11380 " mkfs-b fstype blocksize device\n"
11381 "\n"
11382 msgstr ""
11383
11384 #. type: textblock
11385 #: ../fish/guestfish-actions.pod:3079
11386 msgid ""
11387 "This call is similar to L</mkfs>, but it allows you to control the block "
11388 "size of the resulting filesystem.  Supported block sizes depend on the "
11389 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11390 msgstr ""
11391
11392 #. type: textblock
11393 #: ../fish/guestfish-actions.pod:3084 ../fish/guestfish-actions.pod:3111
11394 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4670
11395 msgid ""
11396 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11397 "cluster size."
11398 msgstr ""
11399
11400 #. type: textblock
11401 #: ../fish/guestfish-actions.pod:3087
11402 msgid ""
11403 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11404 "instead."
11405 msgstr ""
11406
11407 #. type: =head2
11408 #: ../fish/guestfish-actions.pod:3094
11409 msgid "mkfs-opts"
11410 msgstr "mkfs-opts"
11411
11412 #. type: verbatim
11413 #: ../fish/guestfish-actions.pod:3096
11414 #, no-wrap
11415 msgid ""
11416 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11417 "\n"
11418 msgstr ""
11419
11420 #. type: textblock
11421 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4657
11422 msgid ""
11423 "This function creates a filesystem on C<device>.  The filesystem type is "
11424 "C<fstype>, for example C<ext3>."
11425 msgstr ""
11426
11427 #. type: =item
11428 #: ../fish/guestfish-actions.pod:3105 ../src/guestfs-actions.pod:4664
11429 msgid "C<blocksize>"
11430 msgstr "C<blocksize>"
11431
11432 #. type: textblock
11433 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4666
11434 msgid ""
11435 "The filesystem block size.  Supported block sizes depend on the filesystem "
11436 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11437 "filesystems."
11438 msgstr ""
11439
11440 #. type: textblock
11441 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4673
11442 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11443 msgstr ""
11444
11445 #. type: =item
11446 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4675
11447 msgid "C<features>"
11448 msgstr "C<features>"
11449
11450 #. type: textblock
11451 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4677
11452 msgid "This passes the I<-O> parameter to the external mkfs program."
11453 msgstr ""
11454
11455 #. type: textblock
11456 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
11457 msgid ""
11458 "For certain filesystem types, this allows extra filesystem features to be "
11459 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11460 msgstr ""
11461
11462 #. type: textblock
11463 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
11464 msgid ""
11465 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11466 "type."
11467 msgstr ""
11468
11469 #. type: =item
11470 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
11471 msgid "C<inode>"
11472 msgstr ""
11473
11474 #. type: textblock
11475 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
11476 msgid ""
11477 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11478 "sets the inode size (only for ext2/3/4 filesystems at present)."
11479 msgstr ""
11480
11481 #. type: =item
11482 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4691
11483 msgid "C<sectorsize>"
11484 msgstr ""
11485
11486 #. type: textblock
11487 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4693
11488 msgid ""
11489 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11490 "sets sector size for ufs filesystem."
11491 msgstr ""
11492
11493 #. type: =head2
11494 #: ../fish/guestfish-actions.pod:3141
11495 msgid "mkmountpoint"
11496 msgstr "mkmountpoint"
11497
11498 #. type: verbatim
11499 #: ../fish/guestfish-actions.pod:3143
11500 #, no-wrap
11501 msgid ""
11502 " mkmountpoint exemptpath\n"
11503 "\n"
11504 msgstr ""
11505
11506 #. type: textblock
11507 #: ../fish/guestfish-actions.pod:3145
11508 msgid ""
11509 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11510 "to create extra mountpoints before mounting the first filesystem."
11511 msgstr ""
11512
11513 #. type: textblock
11514 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4736
11515 msgid ""
11516 "These calls are I<only> necessary in some very limited circumstances, mainly "
11517 "the case where you want to mount a mix of unrelated and/or read-only "
11518 "filesystems together."
11519 msgstr ""
11520
11521 #. type: textblock
11522 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
11523 msgid ""
11524 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11525 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11526 "inside that.  You can unpack this as follows in guestfish:"
11527 msgstr ""
11528
11529 #. type: verbatim
11530 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4745
11531 #, no-wrap
11532 msgid ""
11533 " add-ro Fedora-11-i686-Live.iso\n"
11534 " run\n"
11535 " mkmountpoint /cd\n"
11536 " mkmountpoint /sqsh\n"
11537 " mkmountpoint /ext3fs\n"
11538 " mount /dev/sda /cd\n"
11539 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11540 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11541 "\n"
11542 msgstr ""
11543 " add-ro Fedora-11-i686-Live.iso\n"
11544 " run\n"
11545 " mkmountpoint /cd\n"
11546 " mkmountpoint /sqsh\n"
11547 " mkmountpoint /ext3fs\n"
11548 " mount /dev/sda /cd\n"
11549 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11550 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11551 "\n"
11552
11553 #. type: textblock
11554 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4754
11555 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11556 msgstr ""
11557
11558 #. type: textblock
11559 #: ../fish/guestfish-actions.pod:3169
11560 msgid ""
11561 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11562 "unexpected errors if you try to mix these calls.  It is safest to manually "
11563 "unmount filesystems and remove mountpoints after use."
11564 msgstr ""
11565
11566 #. type: textblock
11567 #: ../fish/guestfish-actions.pod:3173
11568 msgid ""
11569 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11570 "for this to work for manual mountpoints, you must ensure that the innermost "
11571 "mountpoints have the longest pathnames, as in the example code above."
11572 msgstr ""
11573
11574 #. type: textblock
11575 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4765
11576 msgid ""
11577 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11578 msgstr ""
11579
11580 #. type: textblock
11581 #: ../fish/guestfish-actions.pod:3180
11582 msgid ""
11583 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11584 "L</umount-all> to be called when the handle is closed which can also trigger "
11585 "these issues."
11586 msgstr ""
11587
11588 #. type: =head2
11589 #: ../fish/guestfish-actions.pod:3184
11590 msgid "mknod"
11591 msgstr "mknod"
11592
11593 #. type: verbatim
11594 #: ../fish/guestfish-actions.pod:3186
11595 #, no-wrap
11596 msgid ""
11597 " mknod mode devmajor devminor path\n"
11598 "\n"
11599 msgstr ""
11600
11601 #. type: textblock
11602 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4784
11603 msgid ""
11604 "This call creates block or character special devices, or named pipes (FIFOs)."
11605 msgstr ""
11606
11607 #. type: textblock
11608 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4787
11609 msgid ""
11610 "The C<mode> parameter should be the mode, using the standard constants.  "
11611 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11612 "used when creating block and character special devices."
11613 msgstr ""
11614
11615 #. type: textblock
11616 #: ../fish/guestfish-actions.pod:3196
11617 msgid ""
11618 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11619 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11620 "regular file).  These constants are available in the standard Linux header "
11621 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11622 "wrappers around this command which bitwise OR in the appropriate constant "
11623 "for you."
11624 msgstr ""
11625
11626 #. type: =head2
11627 #: ../fish/guestfish-actions.pod:3206
11628 msgid "mknod-b"
11629 msgstr "mknod-b"
11630
11631 #. type: verbatim
11632 #: ../fish/guestfish-actions.pod:3208
11633 #, no-wrap
11634 msgid ""
11635 " mknod-b mode devmajor devminor path\n"
11636 "\n"
11637 msgstr ""
11638
11639 #. type: textblock
11640 #: ../fish/guestfish-actions.pod:3210
11641 msgid ""
11642 "This call creates a block device node called C<path> with mode C<mode> and "
11643 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11644 "wrapper around L</mknod>."
11645 msgstr ""
11646
11647 #. type: =head2
11648 #: ../fish/guestfish-actions.pod:3216
11649 msgid "mknod-c"
11650 msgstr "mknod-c"
11651
11652 #. type: verbatim
11653 #: ../fish/guestfish-actions.pod:3218
11654 #, no-wrap
11655 msgid ""
11656 " mknod-c mode devmajor devminor path\n"
11657 "\n"
11658 msgstr ""
11659
11660 #. type: textblock
11661 #: ../fish/guestfish-actions.pod:3220
11662 msgid ""
11663 "This call creates a char device node called C<path> with mode C<mode> and "
11664 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11665 "wrapper around L</mknod>."
11666 msgstr ""
11667
11668 #. type: =head2
11669 #: ../fish/guestfish-actions.pod:3226
11670 msgid "mkswap"
11671 msgstr "mkswap"
11672
11673 #. type: verbatim
11674 #: ../fish/guestfish-actions.pod:3228
11675 #, no-wrap
11676 msgid ""
11677 " mkswap device\n"
11678 "\n"
11679 msgstr ""
11680 " mkswap пристрій\n"
11681 "\n"
11682
11683 #. type: textblock
11684 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4850
11685 msgid "Create a swap partition on C<device>."
11686 msgstr ""
11687
11688 #. type: =head2
11689 #: ../fish/guestfish-actions.pod:3232
11690 msgid "mkswap-L"
11691 msgstr "mkswap-L"
11692
11693 #. type: verbatim
11694 #: ../fish/guestfish-actions.pod:3234
11695 #, no-wrap
11696 msgid ""
11697 " mkswap-L label device\n"
11698 "\n"
11699 msgstr ""
11700 " mkswap-L мітка пристрій\n"
11701 "\n"
11702
11703 #. type: textblock
11704 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4863
11705 msgid "Create a swap partition on C<device> with label C<label>."
11706 msgstr ""
11707
11708 #. type: textblock
11709 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4865
11710 msgid ""
11711 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11712 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11713 "or swap tools."
11714 msgstr ""
11715
11716 #. type: =head2
11717 #: ../fish/guestfish-actions.pod:3242
11718 msgid "mkswap-U"
11719 msgstr "mkswap-U"
11720
11721 #. type: verbatim
11722 #: ../fish/guestfish-actions.pod:3244
11723 #, no-wrap
11724 msgid ""
11725 " mkswap-U uuid device\n"
11726 "\n"
11727 msgstr ""
11728 " mkswap-U uuid пристрій\n"
11729 "\n"
11730
11731 #. type: textblock
11732 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4880
11733 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11734 msgstr ""
11735
11736 #. type: =head2
11737 #: ../fish/guestfish-actions.pod:3248
11738 msgid "mkswap-file"
11739 msgstr "mkswap-file"
11740
11741 #. type: verbatim
11742 #: ../fish/guestfish-actions.pod:3250
11743 #, no-wrap
11744 msgid ""
11745 " mkswap-file path\n"
11746 "\n"
11747 msgstr ""
11748 " mkswap-file шлях\n"
11749 "\n"
11750
11751 #. type: textblock
11752 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4892
11753 msgid "Create a swap file."
11754 msgstr "Створити файл резервної пам’яті."
11755
11756 #. type: textblock
11757 #: ../fish/guestfish-actions.pod:3254
11758 msgid ""
11759 "This command just writes a swap file signature to an existing file.  To "
11760 "create the file itself, use something like L</fallocate>."
11761 msgstr ""
11762
11763 #. type: =head2
11764 #: ../fish/guestfish-actions.pod:3257
11765 msgid "modprobe"
11766 msgstr "modprobe"
11767
11768 #. type: verbatim
11769 #: ../fish/guestfish-actions.pod:3259
11770 #, no-wrap
11771 msgid ""
11772 " modprobe modulename\n"
11773 "\n"
11774 msgstr ""
11775 " modprobe назва_модуля\n"
11776 "\n"
11777
11778 #. type: textblock
11779 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:4907
11780 msgid "This loads a kernel module in the appliance."
11781 msgstr ""
11782
11783 #. type: textblock
11784 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4909
11785 msgid ""
11786 "The kernel module must have been whitelisted when libguestfs was built (see "
11787 "C<appliance/kmod.whitelist.in> in the source)."
11788 msgstr ""
11789
11790 #. type: =head2
11791 #: ../fish/guestfish-actions.pod:3266
11792 msgid "mount"
11793 msgstr "mount"
11794
11795 #. type: verbatim
11796 #: ../fish/guestfish-actions.pod:3268
11797 #, no-wrap
11798 msgid ""
11799 " mount device mountpoint\n"
11800 "\n"
11801 msgstr ""
11802 " mount пристрій точка_монтування\n"
11803 "\n"
11804
11805 #. type: textblock
11806 #: ../fish/guestfish-actions.pod:3270 ../src/guestfs-actions.pod:4930
11807 msgid ""
11808 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11809 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11810 "those block devices contain partitions, they will have the usual names (eg. "
11811 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11812 msgstr ""
11813
11814 #. type: textblock
11815 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4936
11816 msgid ""
11817 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11818 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11819 "mounted on directories which already exist."
11820 msgstr ""
11821
11822 #. type: textblock
11823 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:4941
11824 msgid ""
11825 "The mounted filesystem is writable, if we have sufficient permissions on the "
11826 "underlying device."
11827 msgstr ""
11828
11829 #. type: textblock
11830 #: ../fish/guestfish-actions.pod:3284
11831 msgid ""
11832 "B<Important note:> When you use this call, the filesystem options C<sync> "
11833 "and C<noatime> are set implicitly.  This was originally done because we "
11834 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11835 "very large negative performance impact and negligible effect on "
11836 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11837 "code that needs performance, and instead use L</mount-options> (use an empty "
11838 "string for the first parameter if you don't want any options)."
11839 msgstr ""
11840
11841 #. type: textblock
11842 #: ../fish/guestfish-actions.pod:3294
11843 msgid ""
11844 "I<This function is deprecated.> In new code, use the L</mount_options> call "
11845 "instead."
11846 msgstr ""
11847
11848 #. type: =head2
11849 #: ../fish/guestfish-actions.pod:3301
11850 msgid "mount-9p"
11851 msgstr ""
11852
11853 #. type: verbatim
11854 #: ../fish/guestfish-actions.pod:3303
11855 #, no-wrap
11856 msgid ""
11857 " mount-9p mounttag mountpoint [options:..]\n"
11858 "\n"
11859 msgstr ""
11860
11861 #. type: textblock
11862 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:4973
11863 msgid ""
11864 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11865 "C<mountpoint>."
11866 msgstr ""
11867
11868 #. type: textblock
11869 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:4976
11870 msgid ""
11871 "If required, C<trans=virtio> will be automatically added to the options.  "
11872 "Any other options required can be passed in the optional C<options> "
11873 "parameter."
11874 msgstr ""
11875
11876 #. type: =head2
11877 #: ../fish/guestfish-actions.pod:3314
11878 msgid "mount-loop"
11879 msgstr "mount-loop"
11880
11881 #. type: verbatim
11882 #: ../fish/guestfish-actions.pod:3316
11883 #, no-wrap
11884 msgid ""
11885 " mount-loop file mountpoint\n"
11886 "\n"
11887 msgstr ""
11888
11889 #. type: textblock
11890 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5015
11891 msgid ""
11892 "This command lets you mount C<file> (a filesystem image in a file) on a "
11893 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11894 "mountpoint>."
11895 msgstr ""
11896
11897 #. type: =head2
11898 #: ../fish/guestfish-actions.pod:3322
11899 msgid "mount-options"
11900 msgstr "mount-options"
11901
11902 #. type: verbatim
11903 #: ../fish/guestfish-actions.pod:3324
11904 #, no-wrap
11905 msgid ""
11906 " mount-options options device mountpoint\n"
11907 "\n"
11908 msgstr ""
11909
11910 #. type: textblock
11911 #: ../fish/guestfish-actions.pod:3326
11912 msgid ""
11913 "This is the same as the L</mount> command, but it allows you to set the "
11914 "mount options as for the L<mount(8)> I<-o> flag."
11915 msgstr ""
11916
11917 #. type: textblock
11918 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5035
11919 msgid ""
11920 "If the C<options> parameter is an empty string, then no options are passed "
11921 "(all options default to whatever the filesystem uses)."
11922 msgstr ""
11923
11924 #. type: =head2
11925 #: ../fish/guestfish-actions.pod:3334
11926 msgid "mount-ro"
11927 msgstr "mount-ro"
11928
11929 #. type: verbatim
11930 #: ../fish/guestfish-actions.pod:3336
11931 #, no-wrap
11932 msgid ""
11933 " mount-ro device mountpoint\n"
11934 "\n"
11935 msgstr ""
11936 " mount-ro пристрій точка_монтування\n"
11937 "\n"
11938
11939 #. type: textblock
11940 #: ../fish/guestfish-actions.pod:3338
11941 msgid ""
11942 "This is the same as the L</mount> command, but it mounts the filesystem with "
11943 "the read-only (I<-o ro>) flag."
11944 msgstr ""
11945
11946 #. type: =head2
11947 #: ../fish/guestfish-actions.pod:3341
11948 msgid "mount-vfs"
11949 msgstr "mount-vfs"
11950
11951 #. type: verbatim
11952 #: ../fish/guestfish-actions.pod:3343
11953 #, no-wrap
11954 msgid ""
11955 " mount-vfs options vfstype device mountpoint\n"
11956 "\n"
11957 msgstr ""
11958
11959 #. type: textblock
11960 #: ../fish/guestfish-actions.pod:3345
11961 msgid ""
11962 "This is the same as the L</mount> command, but it allows you to set both the "
11963 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11964 msgstr ""
11965
11966 #. type: =head2
11967 #: ../fish/guestfish-actions.pod:3349
11968 msgid "mountpoints"
11969 msgstr "mountpoints"
11970
11971 #. type: verbatim
11972 #: ../fish/guestfish-actions.pod:3351
11973 #, no-wrap
11974 msgid ""
11975 " mountpoints\n"
11976 "\n"
11977 msgstr ""
11978 " mountpoints\n"
11979 "\n"
11980
11981 #. type: textblock
11982 #: ../fish/guestfish-actions.pod:3353
11983 msgid ""
11984 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11985 "This one returns a hash table (map) of device name to directory where the "
11986 "device is mounted."
11987 msgstr ""
11988
11989 #. type: =head2
11990 #: ../fish/guestfish-actions.pod:3357
11991 msgid "mounts"
11992 msgstr "mounts"
11993
11994 #. type: verbatim
11995 #: ../fish/guestfish-actions.pod:3359
11996 #, no-wrap
11997 msgid ""
11998 " mounts\n"
11999 "\n"
12000 msgstr ""
12001 " mounts\n"
12002 "\n"
12003
12004 #. type: textblock
12005 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
12006 msgid ""
12007 "This returns the list of currently mounted filesystems.  It returns the list "
12008 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12009 msgstr ""
12010
12011 #. type: textblock
12012 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5099
12013 msgid "Some internal mounts are not shown."
12014 msgstr ""
12015
12016 #. type: textblock
12017 #: ../fish/guestfish-actions.pod:3366
12018 msgid "See also: L</mountpoints>"
12019 msgstr "Див. також L</mountpoints>"
12020
12021 #. type: =head2
12022 #: ../fish/guestfish-actions.pod:3368
12023 msgid "mv"
12024 msgstr "mv"
12025
12026 #. type: verbatim
12027 #: ../fish/guestfish-actions.pod:3370
12028 #, no-wrap
12029 msgid ""
12030 " mv src dest\n"
12031 "\n"
12032 msgstr ""
12033 " mv джерело призначення\n"
12034 "\n"
12035
12036 #. type: textblock
12037 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5116
12038 msgid ""
12039 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12040 "destination filename or destination directory."
12041 msgstr ""
12042
12043 #. type: =head2
12044 #: ../fish/guestfish-actions.pod:3375
12045 msgid "ntfs-3g-probe"
12046 msgstr "ntfs-3g-probe"
12047
12048 #. type: verbatim
12049 #: ../fish/guestfish-actions.pod:3377
12050 #, no-wrap
12051 msgid ""
12052 " ntfs-3g-probe true|false device\n"
12053 "\n"
12054 msgstr ""
12055
12056 #. type: textblock
12057 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5130
12058 msgid ""
12059 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12060 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12061 "write, and some cannot be mounted at all)."
12062 msgstr ""
12063
12064 #. type: textblock
12065 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5134
12066 msgid ""
12067 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12068 "can be mounted read-write.  Set it to false if you want to test if the "
12069 "volume can be mounted read-only."
12070 msgstr ""
12071
12072 #. type: textblock
12073 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5138
12074 msgid ""
12075 "The return value is an integer which C<0> if the operation would succeed, or "
12076 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12077 msgstr ""
12078
12079 #. type: =head2
12080 #: ../fish/guestfish-actions.pod:3391
12081 msgid "ntfsresize"
12082 msgstr "ntfsresize"
12083
12084 #. type: verbatim
12085 #: ../fish/guestfish-actions.pod:3393
12086 #, no-wrap
12087 msgid ""
12088 " ntfsresize device\n"
12089 "\n"
12090 msgstr ""
12091 " ntfsresize пристрій\n"
12092 "\n"
12093
12094 #. type: textblock
12095 #: ../fish/guestfish-actions.pod:3395 ../fish/guestfish-actions.pod:3419
12096 #: ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:5191
12097 msgid ""
12098 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12099 "size of the underlying device."
12100 msgstr ""
12101
12102 #. type: textblock
12103 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5162
12104 msgid ""
12105 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12106 "consistency check (for safety).  You have to boot into Windows to perform "
12107 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12108 "resize filesystems which have been marked in this way.  So in effect it is "
12109 "not possible to call ntfsresize multiple times on a single filesystem "
12110 "without booting into Windows between each resize."
12111 msgstr ""
12112
12113 #. type: textblock
12114 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3445
12115 #: ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5217
12116 msgid "See also L<ntfsresize(8)>."
12117 msgstr ""
12118
12119 #. type: textblock
12120 #: ../fish/guestfish-actions.pod:3408 ../fish/guestfish-actions.pod:3456
12121 msgid ""
12122 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12123 "call instead."
12124 msgstr ""
12125
12126 #. type: =head2
12127 #: ../fish/guestfish-actions.pod:3415
12128 msgid "ntfsresize-opts"
12129 msgstr ""
12130
12131 #. type: verbatim
12132 #: ../fish/guestfish-actions.pod:3417
12133 #, no-wrap
12134 msgid ""
12135 " ntfsresize-opts device [size:..] [force:..]\n"
12136 "\n"
12137 msgstr ""
12138
12139 #. type: textblock
12140 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
12141 msgid ""
12142 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12143 "resized to fit the container (eg. partition)."
12144 msgstr ""
12145
12146 #. type: =item
12147 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5203
12148 msgid "C<force>"
12149 msgstr ""
12150
12151 #. type: textblock
12152 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5205
12153 msgid ""
12154 "If this option is true, then force the resize of the filesystem even if the "
12155 "filesystem is marked as requiring a consistency check."
12156 msgstr ""
12157
12158 #. type: textblock
12159 #: ../fish/guestfish-actions.pod:3436
12160 msgid ""
12161 "After the resize operation, the filesystem is always marked as requiring a "
12162 "consistency check (for safety).  You have to boot into Windows to perform "
12163 "this check and clear this condition.  If you I<don't> set the C<force> "
12164 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12165 "a single filesystem without booting into Windows between each resize."
12166 msgstr ""
12167
12168 #. type: =head2
12169 #: ../fish/guestfish-actions.pod:3449
12170 msgid "ntfsresize-size"
12171 msgstr "ntfsresize-size"
12172
12173 #. type: verbatim
12174 #: ../fish/guestfish-actions.pod:3451
12175 #, no-wrap
12176 msgid ""
12177 " ntfsresize-size device size\n"
12178 "\n"
12179 msgstr ""
12180
12181 #. type: textblock
12182 #: ../fish/guestfish-actions.pod:3453
12183 msgid ""
12184 "This command is the same as L</ntfsresize> except that it allows you to "
12185 "specify the new size (in bytes) explicitly."
12186 msgstr ""
12187
12188 #. type: =head2
12189 #: ../fish/guestfish-actions.pod:3463
12190 msgid "part-add"
12191 msgstr "part-add"
12192
12193 #. type: verbatim
12194 #: ../fish/guestfish-actions.pod:3465
12195 #, no-wrap
12196 msgid ""
12197 " part-add device prlogex startsect endsect\n"
12198 "\n"
12199 msgstr ""
12200
12201 #. type: textblock
12202 #: ../fish/guestfish-actions.pod:3467
12203 msgid ""
12204 "This command adds a partition to C<device>.  If there is no partition table "
12205 "on the device, call L</part-init> first."
12206 msgstr ""
12207
12208 #. type: textblock
12209 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
12210 msgid ""
12211 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12212 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12213 "C<logical>) and C<e> (or C<extended>) partition types."
12214 msgstr ""
12215
12216 #. type: textblock
12217 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5283
12218 msgid ""
12219 "C<startsect> and C<endsect> are the start and end of the partition in "
12220 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12221 "from the end of the disk (C<-1> is the last sector)."
12222 msgstr ""
12223
12224 #. type: textblock
12225 #: ../fish/guestfish-actions.pod:3479
12226 msgid ""
12227 "Creating a partition which covers the whole disk is not so easy.  Use L</"
12228 "part-disk> to do that."
12229 msgstr ""
12230
12231 #. type: =head2
12232 #: ../fish/guestfish-actions.pod:3482
12233 msgid "part-del"
12234 msgstr "part-del"
12235
12236 #. type: verbatim
12237 #: ../fish/guestfish-actions.pod:3484
12238 #, no-wrap
12239 msgid ""
12240 " part-del device partnum\n"
12241 "\n"
12242 msgstr ""
12243
12244 #. type: textblock
12245 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5301
12246 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12247 msgstr ""
12248
12249 #. type: textblock
12250 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5303
12251 msgid ""
12252 "Note that in the case of MBR partitioning, deleting an extended partition "
12253 "also deletes any logical partitions it contains."
12254 msgstr ""
12255
12256 #. type: =head2
12257 #: ../fish/guestfish-actions.pod:3492
12258 msgid "part-disk"
12259 msgstr "part-disk"
12260
12261 #. type: verbatim
12262 #: ../fish/guestfish-actions.pod:3494
12263 #, no-wrap
12264 msgid ""
12265 " part-disk device parttype\n"
12266 "\n"
12267 msgstr ""
12268 " part-disk пристрій тип_розділу\n"
12269 "\n"
12270
12271 #. type: textblock
12272 #: ../fish/guestfish-actions.pod:3496
12273 msgid ""
12274 "This command is simply a combination of L</part-init> followed by L</part-"
12275 "add> to create a single primary partition covering the whole disk."
12276 msgstr ""
12277
12278 #. type: textblock
12279 #: ../fish/guestfish-actions.pod:3500
12280 msgid ""
12281 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12282 "possible values are described in L</part-init>."
12283 msgstr ""
12284
12285 #. type: =head2
12286 #: ../fish/guestfish-actions.pod:3506
12287 msgid "part-get-bootable"
12288 msgstr "part-get-bootable"
12289
12290 #. type: verbatim
12291 #: ../fish/guestfish-actions.pod:3508
12292 #, no-wrap
12293 msgid ""
12294 " part-get-bootable device partnum\n"
12295 "\n"
12296 msgstr ""
12297
12298 #. type: textblock
12299 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5339
12300 msgid ""
12301 "This command returns true if the partition C<partnum> on C<device> has the "
12302 "bootable flag set."
12303 msgstr ""
12304
12305 #. type: textblock
12306 #: ../fish/guestfish-actions.pod:3513
12307 msgid "See also L</part-set-bootable>."
12308 msgstr "Див. також L</part-set-bootable>."
12309
12310 #. type: =head2
12311 #: ../fish/guestfish-actions.pod:3515
12312 msgid "part-get-mbr-id"
12313 msgstr "part-get-mbr-id"
12314
12315 #. type: verbatim
12316 #: ../fish/guestfish-actions.pod:3517
12317 #, no-wrap
12318 msgid ""
12319 " part-get-mbr-id device partnum\n"
12320 "\n"
12321 msgstr ""
12322
12323 #. type: textblock
12324 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5355
12325 msgid ""
12326 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12327 "partition C<partnum>."
12328 msgstr ""
12329
12330 #. type: textblock
12331 #: ../fish/guestfish-actions.pod:3522 ../fish/guestfish-actions.pod:3666
12332 msgid ""
12333 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12334 "undefined results for other partition table types (see L</part-get-"
12335 "parttype>)."
12336 msgstr ""
12337
12338 #. type: =head2
12339 #: ../fish/guestfish-actions.pod:3526
12340 msgid "part-get-parttype"
12341 msgstr "part-get-parttype"
12342
12343 #. type: verbatim
12344 #: ../fish/guestfish-actions.pod:3528
12345 #, no-wrap
12346 msgid ""
12347 " part-get-parttype device\n"
12348 "\n"
12349 msgstr ""
12350 " part-get-parttype пристрій\n"
12351 "\n"
12352
12353 #. type: textblock
12354 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5372
12355 msgid ""
12356 "This command examines the partition table on C<device> and returns the "
12357 "partition table type (format) being used."
12358 msgstr ""
12359
12360 #. type: textblock
12361 #: ../fish/guestfish-actions.pod:3533
12362 msgid ""
12363 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12364 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12365 "possible, although unusual.  See L</part-init> for a full list."
12366 msgstr ""
12367
12368 #. type: =head2
12369 #: ../fish/guestfish-actions.pod:3538
12370 msgid "part-init"
12371 msgstr "part-init"
12372
12373 #. type: verbatim
12374 #: ../fish/guestfish-actions.pod:3540
12375 #, no-wrap
12376 msgid ""
12377 " part-init device parttype\n"
12378 "\n"
12379 msgstr ""
12380
12381 #. type: textblock
12382 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5392
12383 msgid ""
12384 "This creates an empty partition table on C<device> of one of the partition "
12385 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12386 "(for large disks)."
12387 msgstr ""
12388
12389 #. type: textblock
12390 #: ../fish/guestfish-actions.pod:3546
12391 msgid ""
12392 "Initially there are no partitions.  Following this, you should call L</part-"
12393 "add> for each partition required."
12394 msgstr ""
12395
12396 #. type: textblock
12397 #: ../fish/guestfish-actions.pod:3549 ../src/guestfs-actions.pod:5399
12398 msgid "Possible values for C<parttype> are:"
12399 msgstr ""
12400
12401 #. type: =item
12402 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5403
12403 msgid "B<efi>"
12404 msgstr ""
12405
12406 #. type: =item
12407 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5405
12408 msgid "B<gpt>"
12409 msgstr ""
12410
12411 #. type: textblock
12412 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5407
12413 msgid "Intel EFI / GPT partition table."
12414 msgstr ""
12415
12416 #. type: textblock
12417 #: ../fish/guestfish-actions.pod:3559 ../src/guestfs-actions.pod:5409
12418 msgid ""
12419 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12420 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12421 "the C<mbr> format."
12422 msgstr ""
12423
12424 #. type: =item
12425 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5413
12426 msgid "B<mbr>"
12427 msgstr ""
12428
12429 #. type: =item
12430 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5415
12431 msgid "B<msdos>"
12432 msgstr ""
12433
12434 #. type: textblock
12435 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5417
12436 msgid ""
12437 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12438 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12439 "TB.  For large disks we recommend using C<gpt>."
12440 msgstr ""
12441
12442 #. type: textblock
12443 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
12444 msgid ""
12445 "Other partition table types that may work but are not supported include:"
12446 msgstr ""
12447
12448 #. type: =item
12449 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
12450 msgid "B<aix>"
12451 msgstr "B<aix>"
12452
12453 #. type: textblock
12454 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
12455 msgid "AIX disk labels."
12456 msgstr "Мітки дисків AIX."
12457
12458 #. type: =item
12459 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
12460 #, fuzzy
12461 #| msgid "B<amiga> | B<rdb>"
12462 msgid "B<amiga>"
12463 msgstr "B<amiga> | B<rdb>"
12464
12465 #. type: =item
12466 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
12467 msgid "B<rdb>"
12468 msgstr ""
12469
12470 #. type: textblock
12471 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
12472 msgid "Amiga \"Rigid Disk Block\" format."
12473 msgstr "Формат \"Rigid Disk Block\" Amiga."
12474
12475 #. type: =item
12476 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
12477 msgid "B<bsd>"
12478 msgstr "B<bsd>"
12479
12480 #. type: textblock
12481 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
12482 msgid "BSD disk labels."
12483 msgstr "Мітки дисків BSD."
12484
12485 #. type: =item
12486 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
12487 msgid "B<dasd>"
12488 msgstr "B<dasd>"
12489
12490 #. type: textblock
12491 #: ../fish/guestfish-actions.pod:3595 ../src/guestfs-actions.pod:5445
12492 msgid "DASD, used on IBM mainframes."
12493 msgstr "DASD, використовувалися у мейнфреймах IBM."
12494
12495 #. type: =item
12496 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5447
12497 msgid "B<dvh>"
12498 msgstr "B<dvh>"
12499
12500 #. type: textblock
12501 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5449
12502 msgid "MIPS/SGI volumes."
12503 msgstr "Томи MIPS/SGI."
12504
12505 #. type: =item
12506 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
12507 msgid "B<mac>"
12508 msgstr "B<mac>"
12509
12510 #. type: textblock
12511 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
12512 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12513 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12514
12515 #. type: =item
12516 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
12517 msgid "B<pc98>"
12518 msgstr "B<pc98>"
12519
12520 #. type: textblock
12521 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
12522 msgid "NEC PC-98 format, common in Japan apparently."
12523 msgstr "Формат NEC PC-98, поширений у Японії."
12524
12525 #. type: =item
12526 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
12527 msgid "B<sun>"
12528 msgstr "B<sun>"
12529
12530 #. type: textblock
12531 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
12532 msgid "Sun disk labels."
12533 msgstr "Мітки дисків Sun."
12534
12535 #. type: =head2
12536 #: ../fish/guestfish-actions.pod:3615
12537 msgid "part-list"
12538 msgstr "part-list"
12539
12540 #. type: verbatim
12541 #: ../fish/guestfish-actions.pod:3617
12542 #, no-wrap
12543 msgid ""
12544 " part-list device\n"
12545 "\n"
12546 msgstr ""
12547 " part-list device\n"
12548 "\n"
12549
12550 #. type: textblock
12551 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5475
12552 msgid ""
12553 "This command parses the partition table on C<device> and returns the list of "
12554 "partitions found."
12555 msgstr ""
12556
12557 #. type: textblock
12558 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5478
12559 msgid "The fields in the returned structure are:"
12560 msgstr ""
12561
12562 #. type: =item
12563 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5482
12564 msgid "B<part_num>"
12565 msgstr "B<part_num>"
12566
12567 #. type: textblock
12568 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5484
12569 msgid "Partition number, counting from 1."
12570 msgstr ""
12571
12572 #. type: =item
12573 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
12574 msgid "B<part_start>"
12575 msgstr "B<part_start>"
12576
12577 #. type: textblock
12578 #: ../fish/guestfish-actions.pod:3632
12579 msgid ""
12580 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12581 "the device's sector size, see L</blockdev-getss>."
12582 msgstr ""
12583
12584 #. type: =item
12585 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5491
12586 msgid "B<part_end>"
12587 msgstr "B<part_end>"
12588
12589 #. type: textblock
12590 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5493
12591 msgid "End of the partition in bytes."
12592 msgstr ""
12593
12594 #. type: =item
12595 #: ../fish/guestfish-actions.pod:3639 ../src/guestfs-actions.pod:5495
12596 msgid "B<part_size>"
12597 msgstr "B<part_size>"
12598
12599 #. type: textblock
12600 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
12601 msgid "Size of the partition in bytes."
12602 msgstr ""
12603
12604 #. type: =head2
12605 #: ../fish/guestfish-actions.pod:3645
12606 msgid "part-set-bootable"
12607 msgstr "part-set-bootable"
12608
12609 #. type: verbatim
12610 #: ../fish/guestfish-actions.pod:3647
12611 #, no-wrap
12612 msgid ""
12613 " part-set-bootable device partnum true|false\n"
12614 "\n"
12615 msgstr ""
12616
12617 #. type: textblock
12618 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5515
12619 msgid ""
12620 "This sets the bootable flag on partition numbered C<partnum> on device "
12621 "C<device>.  Note that partitions are numbered from 1."
12622 msgstr ""
12623
12624 #. type: textblock
12625 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5518
12626 msgid ""
12627 "The bootable flag is used by some operating systems (notably Windows) to "
12628 "determine which partition to boot from.  It is by no means universally "
12629 "recognized."
12630 msgstr ""
12631
12632 #. type: =head2
12633 #: ../fish/guestfish-actions.pod:3656
12634 msgid "part-set-mbr-id"
12635 msgstr "part-set-mbr-id"
12636
12637 #. type: verbatim
12638 #: ../fish/guestfish-actions.pod:3658
12639 #, no-wrap
12640 msgid ""
12641 " part-set-mbr-id device partnum idbyte\n"
12642 "\n"
12643 msgstr ""
12644
12645 #. type: textblock
12646 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5534
12647 msgid ""
12648 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12649 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12650 "documentation are in fact hexadecimal numbers, but usually documented "
12651 "without any leading \"0x\" which might be confusing."
12652 msgstr ""
12653
12654 #. type: =head2
12655 #: ../fish/guestfish-actions.pod:3670
12656 msgid "part-set-name"
12657 msgstr "part-set-name"
12658
12659 #. type: verbatim
12660 #: ../fish/guestfish-actions.pod:3672
12661 #, no-wrap
12662 msgid ""
12663 " part-set-name device partnum name\n"
12664 "\n"
12665 msgstr ""
12666
12667 #. type: textblock
12668 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5556
12669 msgid ""
12670 "This sets the partition name on partition numbered C<partnum> on device "
12671 "C<device>.  Note that partitions are numbered from 1."
12672 msgstr ""
12673
12674 #. type: textblock
12675 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5559
12676 msgid ""
12677 "The partition name can only be set on certain types of partition table.  "
12678 "This works on C<gpt> but not on C<mbr> partitions."
12679 msgstr ""
12680
12681 #. type: =head2
12682 #: ../fish/guestfish-actions.pod:3680
12683 msgid "part-to-dev"
12684 msgstr "part-to-dev"
12685
12686 #. type: verbatim
12687 #: ../fish/guestfish-actions.pod:3682
12688 #, no-wrap
12689 msgid ""
12690 " part-to-dev partition\n"
12691 "\n"
12692 msgstr ""
12693 " part-to-dev розділ\n"
12694 "\n"
12695
12696 #. type: textblock
12697 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5572
12698 msgid ""
12699 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12700 "partition number, returning the device name (eg. \"/dev/sdb\")."
12701 msgstr ""
12702
12703 #. type: textblock
12704 #: ../fish/guestfish-actions.pod:3688
12705 msgid ""
12706 "The named partition must exist, for example as a string returned from L</"
12707 "list-partitions>."
12708 msgstr ""
12709
12710 #. type: =head2
12711 #: ../fish/guestfish-actions.pod:3691
12712 msgid "ping-daemon"
12713 msgstr "ping-daemon"
12714
12715 #. type: verbatim
12716 #: ../fish/guestfish-actions.pod:3693
12717 #, no-wrap
12718 msgid ""
12719 " ping-daemon\n"
12720 "\n"
12721 msgstr ""
12722 " ping-daemon\n"
12723 "\n"
12724
12725 #. type: textblock
12726 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5589
12727 msgid ""
12728 "This is a test probe into the guestfs daemon running inside the qemu "
12729 "subprocess.  Calling this function checks that the daemon responds to the "
12730 "ping message, without affecting the daemon or attached block device(s) in "
12731 "any other way."
12732 msgstr ""
12733
12734 #. type: =head2
12735 #: ../fish/guestfish-actions.pod:3700
12736 msgid "pread"
12737 msgstr "pread"
12738
12739 #. type: verbatim
12740 #: ../fish/guestfish-actions.pod:3702
12741 #, no-wrap
12742 msgid ""
12743 " pread path count offset\n"
12744 "\n"
12745 msgstr ""
12746
12747 #. type: textblock
12748 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5607
12749 msgid ""
12750 "This command lets you read part of a file.  It reads C<count> bytes of the "
12751 "file, starting at C<offset>, from file C<path>."
12752 msgstr ""
12753
12754 #. type: textblock
12755 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
12756 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
12757 msgid ""
12758 "This may read fewer bytes than requested.  For further details see the "
12759 "L<pread(2)> system call."
12760 msgstr ""
12761
12762 #. type: textblock
12763 #: ../fish/guestfish-actions.pod:3710
12764 msgid "See also L</pwrite>, L</pread-device>."
12765 msgstr "Див. також L</pwrite>, L</pread-device>."
12766
12767 #. type: =head2
12768 #: ../fish/guestfish-actions.pod:3715
12769 msgid "pread-device"
12770 msgstr "pread-device"
12771
12772 #. type: verbatim
12773 #: ../fish/guestfish-actions.pod:3717
12774 #, no-wrap
12775 msgid ""
12776 " pread-device device count offset\n"
12777 "\n"
12778 msgstr ""
12779
12780 #. type: textblock
12781 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5633
12782 msgid ""
12783 "This command lets you read part of a file.  It reads C<count> bytes of "
12784 "C<device>, starting at C<offset>."
12785 msgstr ""
12786
12787 #. type: textblock
12788 #: ../fish/guestfish-actions.pod:3725
12789 msgid "See also L</pread>."
12790 msgstr "Див. також L</pread>."
12791
12792 #. type: =head2
12793 #: ../fish/guestfish-actions.pod:3730
12794 msgid "pvcreate"
12795 msgstr "pvcreate"
12796
12797 #. type: verbatim
12798 #: ../fish/guestfish-actions.pod:3732
12799 #, no-wrap
12800 msgid ""
12801 " pvcreate device\n"
12802 "\n"
12803 msgstr ""
12804 " pvcreate пристрій\n"
12805 "\n"
12806
12807 #. type: textblock
12808 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5656
12809 msgid ""
12810 "This creates an LVM physical volume on the named C<device>, where C<device> "
12811 "should usually be a partition name such as C</dev/sda1>."
12812 msgstr ""
12813
12814 #. type: =head2
12815 #: ../fish/guestfish-actions.pod:3738
12816 msgid "pvremove"
12817 msgstr "pvremove"
12818
12819 #. type: verbatim
12820 #: ../fish/guestfish-actions.pod:3740
12821 #, no-wrap
12822 msgid ""
12823 " pvremove device\n"
12824 "\n"
12825 msgstr ""
12826 " pvremove пристрій\n"
12827 "\n"
12828
12829 #. type: textblock
12830 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5670
12831 msgid ""
12832 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12833 "it."
12834 msgstr ""
12835
12836 #. type: textblock
12837 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5673
12838 msgid ""
12839 "The implementation uses the C<pvremove> command which refuses to wipe "
12840 "physical volumes that contain any volume groups, so you have to remove those "
12841 "first."
12842 msgstr ""
12843
12844 #. type: =head2
12845 #: ../fish/guestfish-actions.pod:3749
12846 msgid "pvresize"
12847 msgstr "pvresize"
12848
12849 #. type: verbatim
12850 #: ../fish/guestfish-actions.pod:3751
12851 #, no-wrap
12852 msgid ""
12853 " pvresize device\n"
12854 "\n"
12855 msgstr ""
12856 " pvresize пристрій\n"
12857 "\n"
12858
12859 #. type: textblock
12860 #: ../fish/guestfish-actions.pod:3753 ../src/guestfs-actions.pod:5687
12861 msgid ""
12862 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12863 "the new size of the underlying device."
12864 msgstr ""
12865
12866 #. type: =head2
12867 #: ../fish/guestfish-actions.pod:3756
12868 msgid "pvresize-size"
12869 msgstr "pvresize-size"
12870
12871 #. type: verbatim
12872 #: ../fish/guestfish-actions.pod:3758
12873 #, no-wrap
12874 msgid ""
12875 " pvresize-size device size\n"
12876 "\n"
12877 msgstr ""
12878
12879 #. type: textblock
12880 #: ../fish/guestfish-actions.pod:3760
12881 msgid ""
12882 "This command is the same as L</pvresize> except that it allows you to "
12883 "specify the new size (in bytes) explicitly."
12884 msgstr ""
12885
12886 #. type: =head2
12887 #: ../fish/guestfish-actions.pod:3763
12888 msgid "pvs"
12889 msgstr "pvs"
12890
12891 #. type: verbatim
12892 #: ../fish/guestfish-actions.pod:3765
12893 #, no-wrap
12894 msgid ""
12895 " pvs\n"
12896 "\n"
12897 msgstr ""
12898 " pvs\n"
12899 "\n"
12900
12901 #. type: textblock
12902 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5713
12903 msgid ""
12904 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12905 "(8)> command."
12906 msgstr ""
12907
12908 #. type: textblock
12909 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5716
12910 msgid ""
12911 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12912 "sda2>)."
12913 msgstr ""
12914
12915 #. type: textblock
12916 #: ../fish/guestfish-actions.pod:3773
12917 msgid "See also L</pvs-full>."
12918 msgstr "Див. також L</pvs-full>."
12919
12920 #. type: =head2
12921 #: ../fish/guestfish-actions.pod:3775
12922 msgid "pvs-full"
12923 msgstr "pvs-full"
12924
12925 #. type: verbatim
12926 #: ../fish/guestfish-actions.pod:3777
12927 #, no-wrap
12928 msgid ""
12929 " pvs-full\n"
12930 "\n"
12931 msgstr ""
12932 " pvs-full\n"
12933 "\n"
12934
12935 #. type: textblock
12936 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5732
12937 msgid ""
12938 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12939 "(8)> command.  The \"full\" version includes all fields."
12940 msgstr ""
12941
12942 #. type: =head2
12943 #: ../fish/guestfish-actions.pod:3782
12944 msgid "pvuuid"
12945 msgstr "pvuuid"
12946
12947 #. type: verbatim
12948 #: ../fish/guestfish-actions.pod:3784
12949 #, no-wrap
12950 msgid ""
12951 " pvuuid device\n"
12952 "\n"
12953 msgstr ""
12954 " pvuuid пристрій\n"
12955 "\n"
12956
12957 #. type: textblock
12958 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5747
12959 msgid "This command returns the UUID of the LVM PV C<device>."
12960 msgstr ""
12961
12962 #. type: =head2
12963 #: ../fish/guestfish-actions.pod:3788
12964 msgid "pwrite"
12965 msgstr "pwrite"
12966
12967 #. type: verbatim
12968 #: ../fish/guestfish-actions.pod:3790
12969 #, no-wrap
12970 msgid ""
12971 " pwrite path content offset\n"
12972 "\n"
12973 msgstr ""
12974
12975 #. type: textblock
12976 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5763
12977 msgid ""
12978 "This command writes to part of a file.  It writes the data buffer C<content> "
12979 "to the file C<path> starting at offset C<offset>."
12980 msgstr ""
12981
12982 #. type: textblock
12983 #: ../fish/guestfish-actions.pod:3795 ../src/guestfs-actions.pod:5766
12984 msgid ""
12985 "This command implements the L<pwrite(2)> system call, and like that system "
12986 "call it may not write the full data requested.  The return value is the "
12987 "number of bytes that were actually written to the file.  This could even be "
12988 "0, although short writes are unlikely for regular files in ordinary "
12989 "circumstances."
12990 msgstr ""
12991
12992 #. type: textblock
12993 #: ../fish/guestfish-actions.pod:3801
12994 msgid "See also L</pread>, L</pwrite-device>."
12995 msgstr "Див. також L</pread>, L</pwrite-device>."
12996
12997 #. type: =head2
12998 #: ../fish/guestfish-actions.pod:3806
12999 msgid "pwrite-device"
13000 msgstr "pwrite-device"
13001
13002 #. type: verbatim
13003 #: ../fish/guestfish-actions.pod:3808
13004 #, no-wrap
13005 msgid ""
13006 " pwrite-device device content offset\n"
13007 "\n"
13008 msgstr ""
13009
13010 #. type: textblock
13011 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5790
13012 msgid ""
13013 "This command writes to part of a device.  It writes the data buffer "
13014 "C<content> to C<device> starting at offset C<offset>."
13015 msgstr ""
13016
13017 #. type: textblock
13018 #: ../fish/guestfish-actions.pod:3813 ../src/guestfs-actions.pod:5793
13019 msgid ""
13020 "This command implements the L<pwrite(2)> system call, and like that system "
13021 "call it may not write the full data requested (although short writes to disk "
13022 "devices and partitions are probably impossible with standard Linux kernels)."
13023 msgstr ""
13024
13025 #. type: textblock
13026 #: ../fish/guestfish-actions.pod:3818
13027 msgid "See also L</pwrite>."
13028 msgstr "Див. також L</pwrite>."
13029
13030 #. type: =head2
13031 #: ../fish/guestfish-actions.pod:3823
13032 msgid "read-file"
13033 msgstr "read-file"
13034
13035 #. type: verbatim
13036 #: ../fish/guestfish-actions.pod:3825
13037 #, no-wrap
13038 msgid ""
13039 " read-file path\n"
13040 "\n"
13041 msgstr ""
13042 " read-file шлях\n"
13043 "\n"
13044
13045 #. type: textblock
13046 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5814
13047 msgid "This calls returns the contents of the file C<path> as a buffer."
13048 msgstr ""
13049
13050 #. type: textblock
13051 #: ../fish/guestfish-actions.pod:3830
13052 msgid ""
13053 "Unlike L</cat>, this function can correctly handle files that contain "
13054 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13055 "is limited in the total size of file that can be handled."
13056 msgstr ""
13057
13058 #. type: =head2
13059 #: ../fish/guestfish-actions.pod:3838
13060 msgid "read-lines"
13061 msgstr "read-lines"
13062
13063 #. type: verbatim
13064 #: ../fish/guestfish-actions.pod:3840
13065 #, no-wrap
13066 msgid ""
13067 " read-lines path\n"
13068 "\n"
13069 msgstr ""
13070 " read-lines шлях\n"
13071 "\n"
13072
13073 #. type: textblock
13074 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5839
13075 msgid ""
13076 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13077 "C<CRLF> character sequences are I<not> returned."
13078 msgstr ""
13079
13080 #. type: textblock
13081 #: ../fish/guestfish-actions.pod:3847
13082 msgid ""
13083 "Note that this function cannot correctly handle binary files (specifically, "
13084 "files containing C<\\0> character which is treated as end of line).  For "
13085 "those you need to use the L</read-file> function which has a more complex "
13086 "interface."
13087 msgstr ""
13088
13089 #. type: =head2
13090 #: ../fish/guestfish-actions.pod:3852
13091 msgid "readdir"
13092 msgstr "readdir"
13093
13094 #. type: verbatim
13095 #: ../fish/guestfish-actions.pod:3854
13096 #, no-wrap
13097 msgid ""
13098 " readdir dir\n"
13099 "\n"
13100 msgstr ""
13101 " readdir каталог\n"
13102 "\n"
13103
13104 #. type: textblock
13105 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5859
13106 msgid "This returns the list of directory entries in directory C<dir>."
13107 msgstr ""
13108
13109 #. type: textblock
13110 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5861
13111 msgid ""
13112 "All entries in the directory are returned, including C<.> and C<..>.  The "
13113 "entries are I<not> sorted, but returned in the same order as the underlying "
13114 "filesystem."
13115 msgstr ""
13116
13117 #. type: textblock
13118 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
13119 msgid ""
13120 "Also this call returns basic file type information about each file.  The "
13121 "C<ftyp> field will contain one of the following characters:"
13122 msgstr ""
13123
13124 #. type: =item
13125 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5870
13126 msgid "'b'"
13127 msgstr "'b'"
13128
13129 #. type: textblock
13130 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:5872
13131 msgid "Block special"
13132 msgstr "Блоковий особливий"
13133
13134 #. type: =item
13135 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:5874
13136 msgid "'c'"
13137 msgstr "'c'"
13138
13139 #. type: textblock
13140 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:5876
13141 msgid "Char special"
13142 msgstr "Символьний особливий"
13143
13144 #. type: =item
13145 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:5878
13146 msgid "'d'"
13147 msgstr "'d'"
13148
13149 #. type: textblock
13150 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5880
13151 msgid "Directory"
13152 msgstr "Каталог"
13153
13154 #. type: =item
13155 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:5882
13156 msgid "'f'"
13157 msgstr "'f'"
13158
13159 #. type: textblock
13160 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:5884
13161 msgid "FIFO (named pipe)"
13162 msgstr "FIFO (іменований канал)"
13163
13164 #. type: =item
13165 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5886
13166 msgid "'l'"
13167 msgstr "'l'"
13168
13169 #. type: textblock
13170 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5888
13171 msgid "Symbolic link"
13172 msgstr "Символічне посилання"
13173
13174 #. type: =item
13175 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:5890
13176 msgid "'r'"
13177 msgstr "'r'"
13178
13179 #. type: textblock
13180 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
13181 msgid "Regular file"
13182 msgstr "Звичайний файл"
13183
13184 #. type: =item
13185 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
13186 msgid "'s'"
13187 msgstr "'s'"
13188
13189 #. type: textblock
13190 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
13191 msgid "Socket"
13192 msgstr "Сокет"
13193
13194 #. type: =item
13195 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
13196 msgid "'u'"
13197 msgstr "'u'"
13198
13199 #. type: textblock
13200 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
13201 msgid "Unknown file type"
13202 msgstr "Невідомий тип файла"
13203
13204 #. type: =item
13205 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
13206 msgid "'?'"
13207 msgstr ""
13208
13209 #. type: textblock
13210 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
13211 msgid ""
13212 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13213 msgstr ""
13214
13215 #. type: textblock
13216 #: ../fish/guestfish-actions.pod:3906
13217 msgid ""
13218 "This function is primarily intended for use by programs.  To get a simple "
13219 "list of names, use L</ls>.  To get a printable directory for human "
13220 "consumption, use L</ll>."
13221 msgstr ""
13222
13223 #. type: =head2
13224 #: ../fish/guestfish-actions.pod:3910
13225 msgid "readlink"
13226 msgstr "readlink"
13227
13228 #. type: verbatim
13229 #: ../fish/guestfish-actions.pod:3912
13230 #, no-wrap
13231 msgid ""
13232 " readlink path\n"
13233 "\n"
13234 msgstr ""
13235 " readlink шлях\n"
13236 "\n"
13237
13238 #. type: textblock
13239 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5925
13240 msgid "This command reads the target of a symbolic link."
13241 msgstr ""
13242
13243 #. type: =head2
13244 #: ../fish/guestfish-actions.pod:3916
13245 msgid "readlinklist"
13246 msgstr "readlinklist"
13247
13248 #. type: verbatim
13249 #: ../fish/guestfish-actions.pod:3918
13250 #, no-wrap
13251 msgid ""
13252 " readlinklist path 'names ...'\n"
13253 "\n"
13254 msgstr ""
13255
13256 #. type: textblock
13257 #: ../fish/guestfish-actions.pod:3920 ../src/guestfs-actions.pod:5939
13258 msgid ""
13259 "This call allows you to do a C<readlink> operation on multiple files, where "
13260 "all files are in the directory C<path>.  C<names> is the list of files from "
13261 "this directory."
13262 msgstr ""
13263
13264 #. type: textblock
13265 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:5943
13266 msgid ""
13267 "On return you get a list of strings, with a one-to-one correspondence to the "
13268 "C<names> list.  Each string is the value of the symbolic link."
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:5947
13273 msgid ""
13274 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13275 "result string is the empty string C<\"\">.  However the whole operation is "
13276 "completed even if there were C<readlink(2)> errors, and so you can call this "
13277 "function with names where you don't know if they are symbolic links already "
13278 "(albeit slightly less efficient)."
13279 msgstr ""
13280
13281 #. type: textblock
13282 #: ../fish/guestfish-actions.pod:3935 ../src/guestfs-actions.pod:5954
13283 msgid ""
13284 "This call is intended for programs that want to efficiently list a directory "
13285 "contents without making many round-trips.  Very long directory listings "
13286 "might cause the protocol message size to be exceeded, causing this call to "
13287 "fail.  The caller must split up such requests into smaller groups of names."
13288 msgstr ""
13289
13290 #. type: =head2
13291 #: ../fish/guestfish-actions.pod:3942
13292 msgid "realpath"
13293 msgstr "realpath"
13294
13295 #. type: verbatim
13296 #: ../fish/guestfish-actions.pod:3944
13297 #, no-wrap
13298 msgid ""
13299 " realpath path\n"
13300 "\n"
13301 msgstr ""
13302 " realpath шлях\n"
13303 "\n"
13304
13305 #. type: textblock
13306 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5973
13307 msgid ""
13308 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13309 "has no C<.>, C<..> or symbolic link path elements."
13310 msgstr ""
13311
13312 #. type: =head2
13313 #: ../fish/guestfish-actions.pod:3949
13314 msgid "removexattr"
13315 msgstr "removexattr"
13316
13317 #. type: verbatim
13318 #: ../fish/guestfish-actions.pod:3951
13319 #, no-wrap
13320 msgid ""
13321 " removexattr xattr path\n"
13322 "\n"
13323 msgstr ""
13324
13325 #. type: textblock
13326 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:5988
13327 msgid ""
13328 "This call removes the extended attribute named C<xattr> of the file C<path>."
13329 msgstr ""
13330
13331 #. type: textblock
13332 #: ../fish/guestfish-actions.pod:3956
13333 msgid "See also: L</lremovexattr>, L<attr(5)>."
13334 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13335
13336 #. type: =head2
13337 #: ../fish/guestfish-actions.pod:3958
13338 msgid "resize2fs"
13339 msgstr "resize2fs"
13340
13341 #. type: verbatim
13342 #: ../fish/guestfish-actions.pod:3960
13343 #, no-wrap
13344 msgid ""
13345 " resize2fs device\n"
13346 "\n"
13347 msgstr ""
13348 " resize2fs пристрій\n"
13349 "\n"
13350
13351 #. type: textblock
13352 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6003
13353 msgid ""
13354 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13355 "underlying device."
13356 msgstr ""
13357
13358 #. type: textblock
13359 #: ../fish/guestfish-actions.pod:3965
13360 msgid ""
13361 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13362 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13363 "gives an error about this and sometimes not.  In any case, it is always safe "
13364 "to call L</e2fsck-f> before calling this function."
13365 msgstr ""
13366
13367 #. type: =head2
13368 #: ../fish/guestfish-actions.pod:3971
13369 msgid "resize2fs-M"
13370 msgstr "resize2fs-M"
13371
13372 #. type: verbatim
13373 #: ../fish/guestfish-actions.pod:3973
13374 #, no-wrap
13375 msgid ""
13376 " resize2fs-M device\n"
13377 "\n"
13378 msgstr ""
13379 " resize2fs-M пристрій\n"
13380 "\n"
13381
13382 #. type: textblock
13383 #: ../fish/guestfish-actions.pod:3975
13384 msgid ""
13385 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13386 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13387 "command."
13388 msgstr ""
13389
13390 #. type: textblock
13391 #: ../fish/guestfish-actions.pod:3979
13392 msgid ""
13393 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13394 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13395 "multiplied together, give the resulting size of the minimal filesystem in "
13396 "bytes."
13397 msgstr ""
13398
13399 #. type: =head2
13400 #: ../fish/guestfish-actions.pod:3984
13401 msgid "resize2fs-size"
13402 msgstr "resize2fs-size"
13403
13404 #. type: verbatim
13405 #: ../fish/guestfish-actions.pod:3986
13406 #, no-wrap
13407 msgid ""
13408 " resize2fs-size device size\n"
13409 "\n"
13410 msgstr ""
13411
13412 #. type: textblock
13413 #: ../fish/guestfish-actions.pod:3988
13414 msgid ""
13415 "This command is the same as L</resize2fs> except that it allows you to "
13416 "specify the new size (in bytes) explicitly."
13417 msgstr ""
13418
13419 #. type: =head2
13420 #: ../fish/guestfish-actions.pod:3991
13421 msgid "rm"
13422 msgstr "rm"
13423
13424 #. type: verbatim
13425 #: ../fish/guestfish-actions.pod:3993
13426 #, no-wrap
13427 msgid ""
13428 " rm path\n"
13429 "\n"
13430 msgstr ""
13431 " rm шлях\n"
13432 "\n"
13433
13434 #. type: textblock
13435 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6055
13436 msgid "Remove the single file C<path>."
13437 msgstr ""
13438
13439 #. type: =head2
13440 #: ../fish/guestfish-actions.pod:3997
13441 msgid "rm-rf"
13442 msgstr "rm-rf"
13443
13444 #. type: verbatim
13445 #: ../fish/guestfish-actions.pod:3999
13446 #, no-wrap
13447 msgid ""
13448 " rm-rf path\n"
13449 "\n"
13450 msgstr ""
13451 " rm-rf шлях\n"
13452 "\n"
13453
13454 #. type: textblock
13455 #: ../fish/guestfish-actions.pod:4001 ../src/guestfs-actions.pod:6067
13456 msgid ""
13457 "Remove the file or directory C<path>, recursively removing the contents if "
13458 "its a directory.  This is like the C<rm -rf> shell command."
13459 msgstr ""
13460
13461 #. type: =head2
13462 #: ../fish/guestfish-actions.pod:4005
13463 msgid "rmdir"
13464 msgstr "rmdir"
13465
13466 #. type: verbatim
13467 #: ../fish/guestfish-actions.pod:4007
13468 #, no-wrap
13469 msgid ""
13470 " rmdir path\n"
13471 "\n"
13472 msgstr ""
13473 " rmdir шлях\n"
13474 "\n"
13475
13476 #. type: textblock
13477 #: ../fish/guestfish-actions.pod:4009 ../src/guestfs-actions.pod:6081
13478 msgid "Remove the single directory C<path>."
13479 msgstr ""
13480
13481 #. type: =head2
13482 #: ../fish/guestfish-actions.pod:4011
13483 msgid "rmmountpoint"
13484 msgstr "rmmountpoint"
13485
13486 #. type: verbatim
13487 #: ../fish/guestfish-actions.pod:4013
13488 #, no-wrap
13489 msgid ""
13490 " rmmountpoint exemptpath\n"
13491 "\n"
13492 msgstr ""
13493
13494 #. type: textblock
13495 #: ../fish/guestfish-actions.pod:4015
13496 msgid ""
13497 "This calls removes a mountpoint that was previously created with L</"
13498 "mkmountpoint>.  See L</mkmountpoint> for full details."
13499 msgstr ""
13500
13501 #. type: =head2
13502 #: ../fish/guestfish-actions.pod:4019
13503 msgid "scrub-device"
13504 msgstr "scrub-device"
13505
13506 #. type: verbatim
13507 #: ../fish/guestfish-actions.pod:4021
13508 #, no-wrap
13509 msgid ""
13510 " scrub-device device\n"
13511 "\n"
13512 msgstr ""
13513 " scrub-device пристрій\n"
13514 "\n"
13515
13516 #. type: textblock
13517 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6107
13518 msgid ""
13519 "This command writes patterns over C<device> to make data retrieval more "
13520 "difficult."
13521 msgstr ""
13522
13523 #. type: textblock
13524 #: ../fish/guestfish-actions.pod:4026 ../fish/guestfish-actions.pod:4041
13525 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6110
13526 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
13527 msgid ""
13528 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13529 "more details."
13530 msgstr ""
13531
13532 #. type: =head2
13533 #: ../fish/guestfish-actions.pod:4032
13534 msgid "scrub-file"
13535 msgstr "scrub-file"
13536
13537 #. type: verbatim
13538 #: ../fish/guestfish-actions.pod:4034
13539 #, no-wrap
13540 msgid ""
13541 " scrub-file file\n"
13542 "\n"
13543 msgstr ""
13544 " scrub-file файл\n"
13545 "\n"
13546
13547 #. type: textblock
13548 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6126
13549 msgid ""
13550 "This command writes patterns over a file to make data retrieval more "
13551 "difficult."
13552 msgstr ""
13553
13554 #. type: textblock
13555 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6129
13556 msgid "The file is I<removed> after scrubbing."
13557 msgstr ""
13558
13559 #. type: =head2
13560 #: ../fish/guestfish-actions.pod:4044
13561 msgid "scrub-freespace"
13562 msgstr "scrub-freespace"
13563
13564 #. type: verbatim
13565 #: ../fish/guestfish-actions.pod:4046
13566 #, no-wrap
13567 msgid ""
13568 " scrub-freespace dir\n"
13569 "\n"
13570 msgstr ""
13571 " scrub-freespace каталог\n"
13572 "\n"
13573
13574 #. type: textblock
13575 #: ../fish/guestfish-actions.pod:4048
13576 msgid ""
13577 "This command creates the directory C<dir> and then fills it with files until "
13578 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13579 "deletes them.  The intention is to scrub any free space on the partition "
13580 "containing C<dir>."
13581 msgstr ""
13582
13583 #. type: =head2
13584 #: ../fish/guestfish-actions.pod:4057
13585 msgid "set-append"
13586 msgstr "set-append"
13587
13588 #. type: =head2
13589 #: ../fish/guestfish-actions.pod:4059
13590 msgid "append"
13591 msgstr ""
13592
13593 #. type: verbatim
13594 #: ../fish/guestfish-actions.pod:4061
13595 #, no-wrap
13596 msgid ""
13597 " set-append append\n"
13598 "\n"
13599 msgstr ""
13600
13601 #. type: textblock
13602 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6163
13603 msgid ""
13604 "This function is used to add additional options to the guest kernel command "
13605 "line."
13606 msgstr ""
13607
13608 #. type: textblock
13609 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6166
13610 msgid ""
13611 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13612 "environment variable."
13613 msgstr ""
13614
13615 #. type: textblock
13616 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6169
13617 msgid ""
13618 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13619 "(libguestfs always adds a few of its own)."
13620 msgstr ""
13621
13622 #. type: =head2
13623 #: ../fish/guestfish-actions.pod:4072
13624 msgid "set-attach-method"
13625 msgstr "set-attach-method"
13626
13627 #. type: =head2
13628 #: ../fish/guestfish-actions.pod:4074
13629 msgid "attach-method"
13630 msgstr ""
13631
13632 #. type: verbatim
13633 #: ../fish/guestfish-actions.pod:4076
13634 #, no-wrap
13635 msgid ""
13636 " set-attach-method attachmethod\n"
13637 "\n"
13638 msgstr ""
13639
13640 #. type: textblock
13641 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
13642 msgid ""
13643 "Set the method that libguestfs uses to connect to the back end guestfsd "
13644 "daemon.  Possible methods are:"
13645 msgstr ""
13646
13647 #. type: =item
13648 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
13649 #: ../src/guestfs.pod:2688
13650 msgid "C<appliance>"
13651 msgstr "C<appliance>"
13652
13653 #. type: textblock
13654 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
13655 msgid ""
13656 "Launch an appliance and connect to it.  This is the ordinary method and the "
13657 "default."
13658 msgstr ""
13659
13660 #. type: =item
13661 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6192
13662 msgid "C<unix:I<path>>"
13663 msgstr "C<unix:I<шлях>>"
13664
13665 #. type: textblock
13666 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6194
13667 msgid "Connect to the Unix domain socket I<path>."
13668 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
13669
13670 #. type: textblock
13671 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6196
13672 msgid ""
13673 "This method lets you connect to an existing daemon or (using virtio-serial) "
13674 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
13675 "RUNNING DAEMONS>."
13676 msgstr ""
13677
13678 #. type: =head2
13679 #: ../fish/guestfish-actions.pod:4098
13680 msgid "set-autosync"
13681 msgstr "set-autosync"
13682
13683 #. type: =head2
13684 #: ../fish/guestfish-actions.pod:4100
13685 msgid "autosync"
13686 msgstr "autosync"
13687
13688 #. type: verbatim
13689 #: ../fish/guestfish-actions.pod:4102
13690 #, no-wrap
13691 msgid ""
13692 " set-autosync true|false\n"
13693 "\n"
13694 msgstr ""
13695 " set-autosync true|false\n"
13696 "\n"
13697
13698 #. type: textblock
13699 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
13700 msgid ""
13701 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13702 "effort attempt to make filesystems consistent and synchronized when the "
13703 "handle is closed (also if the program exits without closing handles)."
13704 msgstr ""
13705
13706 #. type: textblock
13707 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6217
13708 msgid ""
13709 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13710 "disabled by default)."
13711 msgstr ""
13712
13713 #. type: =head2
13714 #: ../fish/guestfish-actions.pod:4112
13715 msgid "set-direct"
13716 msgstr "set-direct"
13717
13718 #. type: =head2
13719 #: ../fish/guestfish-actions.pod:4114
13720 msgid "direct"
13721 msgstr "direct"
13722
13723 #. type: verbatim
13724 #: ../fish/guestfish-actions.pod:4116
13725 #, no-wrap
13726 msgid ""
13727 " set-direct true|false\n"
13728 "\n"
13729 msgstr ""
13730 " set-direct true|false\n"
13731 "\n"
13732
13733 #. type: textblock
13734 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6230
13735 msgid ""
13736 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13737 "passed directly through to the appliance once it is launched."
13738 msgstr ""
13739
13740 #. type: textblock
13741 #: ../fish/guestfish-actions.pod:4122
13742 msgid ""
13743 "One consequence of this is that log messages aren't caught by the library "
13744 "and handled by L</set-log-message-callback>, but go straight to stdout."
13745 msgstr ""
13746
13747 #. type: textblock
13748 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6238
13749 msgid "You probably don't want to use this unless you know what you are doing."
13750 msgstr ""
13751
13752 #. type: textblock
13753 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6241
13754 msgid "The default is disabled."
13755 msgstr ""
13756
13757 #. type: =head2
13758 #: ../fish/guestfish-actions.pod:4131
13759 msgid "set-e2label"
13760 msgstr "set-e2label"
13761
13762 #. type: verbatim
13763 #: ../fish/guestfish-actions.pod:4133
13764 #, no-wrap
13765 msgid ""
13766 " set-e2label device label\n"
13767 "\n"
13768 msgstr ""
13769
13770 #. type: textblock
13771 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6254
13772 msgid ""
13773 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13774 "C<label>.  Filesystem labels are limited to 16 characters."
13775 msgstr ""
13776
13777 #. type: textblock
13778 #: ../fish/guestfish-actions.pod:4139
13779 msgid ""
13780 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13781 "label on a filesystem."
13782 msgstr ""
13783
13784 #. type: =head2
13785 #: ../fish/guestfish-actions.pod:4142
13786 msgid "set-e2uuid"
13787 msgstr "set-e2uuid"
13788
13789 #. type: verbatim
13790 #: ../fish/guestfish-actions.pod:4144
13791 #, no-wrap
13792 msgid ""
13793 " set-e2uuid device uuid\n"
13794 "\n"
13795 msgstr ""
13796
13797 #. type: textblock
13798 #: ../fish/guestfish-actions.pod:4146 ../src/guestfs-actions.pod:6272
13799 msgid ""
13800 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13801 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13802 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13803 msgstr ""
13804
13805 #. type: textblock
13806 #: ../fish/guestfish-actions.pod:4151
13807 msgid ""
13808 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13809 "UUID of a filesystem."
13810 msgstr ""
13811
13812 #. type: =head2
13813 #: ../fish/guestfish-actions.pod:4154
13814 msgid "set-memsize"
13815 msgstr "set-memsize"
13816
13817 #. type: =head2
13818 #: ../fish/guestfish-actions.pod:4156
13819 msgid "memsize"
13820 msgstr ""
13821
13822 #. type: verbatim
13823 #: ../fish/guestfish-actions.pod:4158
13824 #, no-wrap
13825 msgid ""
13826 " set-memsize memsize\n"
13827 "\n"
13828 msgstr ""
13829
13830 #. type: textblock
13831 #: ../fish/guestfish-actions.pod:4160
13832 msgid ""
13833 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13834 "This only has any effect if called before L</launch>."
13835 msgstr ""
13836
13837 #. type: textblock
13838 #: ../fish/guestfish-actions.pod:4164 ../src/guestfs-actions.pod:6294
13839 msgid ""
13840 "You can also change this by setting the environment variable "
13841 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13842 msgstr ""
13843
13844 #. type: =head2
13845 #: ../fish/guestfish-actions.pod:4171
13846 msgid "set-network"
13847 msgstr "set-network"
13848
13849 #. type: =head2
13850 #: ../fish/guestfish-actions.pod:4173
13851 msgid "network"
13852 msgstr "network"
13853
13854 #. type: verbatim
13855 #: ../fish/guestfish-actions.pod:4175
13856 #, no-wrap
13857 msgid ""
13858 " set-network true|false\n"
13859 "\n"
13860 msgstr ""
13861 " set-network true|false\n"
13862 "\n"
13863
13864 #. type: textblock
13865 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6311
13866 msgid ""
13867 "If C<network> is true, then the network is enabled in the libguestfs "
13868 "appliance.  The default is false."
13869 msgstr ""
13870
13871 #. type: textblock
13872 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6314
13873 msgid ""
13874 "This affects whether commands are able to access the network (see L<guestfs"
13875 "(3)/RUNNING COMMANDS>)."
13876 msgstr ""
13877
13878 #. type: textblock
13879 #: ../fish/guestfish-actions.pod:4183
13880 msgid ""
13881 "You must call this before calling L</launch>, otherwise it has no effect."
13882 msgstr ""
13883
13884 #. type: =head2
13885 #: ../fish/guestfish-actions.pod:4186
13886 msgid "set-path"
13887 msgstr "set-path"
13888
13889 #. type: verbatim
13890 #: ../fish/guestfish-actions.pod:4190
13891 #, no-wrap
13892 msgid ""
13893 " set-path searchpath\n"
13894 "\n"
13895 msgstr ""
13896
13897 #. type: textblock
13898 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13899 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13900 msgstr ""
13901
13902 #. type: textblock
13903 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6332
13904 msgid ""
13905 "The default is C<$libdir/guestfs> unless overridden by setting "
13906 "C<LIBGUESTFS_PATH> environment variable."
13907 msgstr ""
13908
13909 #. type: textblock
13910 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6335
13911 msgid "Setting C<path> to C<NULL> restores the default path."
13912 msgstr ""
13913
13914 #. type: =head2
13915 #: ../fish/guestfish-actions.pod:4199
13916 msgid "set-pgroup"
13917 msgstr ""
13918
13919 #. type: =head2
13920 #: ../fish/guestfish-actions.pod:4201
13921 msgid "pgroup"
13922 msgstr ""
13923
13924 #. type: verbatim
13925 #: ../fish/guestfish-actions.pod:4203
13926 #, no-wrap
13927 msgid ""
13928 " set-pgroup true|false\n"
13929 "\n"
13930 msgstr ""
13931
13932 #. type: textblock
13933 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6347
13934 msgid ""
13935 "If C<pgroup> is true, child processes are placed into their own process "
13936 "group."
13937 msgstr ""
13938
13939 #. type: textblock
13940 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6350
13941 msgid ""
13942 "The practical upshot of this is that signals like C<SIGINT> (from users "
13943 "pressing C<^C>) won't be received by the child process."
13944 msgstr ""
13945
13946 #. type: textblock
13947 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6353
13948 msgid ""
13949 "The default for this flag is false, because usually you want C<^C> to kill "
13950 "the subprocess."
13951 msgstr ""
13952
13953 #. type: =head2
13954 #: ../fish/guestfish-actions.pod:4214
13955 msgid "set-qemu"
13956 msgstr "set-qemu"
13957
13958 #. type: =head2
13959 #: ../fish/guestfish-actions.pod:4216
13960 msgid "qemu"
13961 msgstr "qemu"
13962
13963 #. type: verbatim
13964 #: ../fish/guestfish-actions.pod:4218
13965 #, no-wrap
13966 msgid ""
13967 " set-qemu qemu\n"
13968 "\n"
13969 msgstr ""
13970 " set-qemu qemu\n"
13971 "\n"
13972
13973 #. type: textblock
13974 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13975 msgid "Set the qemu binary that we will use."
13976 msgstr ""
13977
13978 #. type: textblock
13979 #: ../fish/guestfish-actions.pod:4222 ../src/guestfs-actions.pod:6368
13980 msgid ""
13981 "The default is chosen when the library was compiled by the configure script."
13982 msgstr ""
13983
13984 #. type: textblock
13985 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
13986 msgid ""
13987 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13988 "variable."
13989 msgstr ""
13990
13991 #. type: textblock
13992 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6374
13993 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13994 msgstr ""
13995
13996 #. type: textblock
13997 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6376
13998 msgid ""
13999 "Note that you should call this function as early as possible after creating "
14000 "the handle.  This is because some pre-launch operations depend on testing "
14001 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14002 "don't retest features, and so you might see inconsistent results.  Using the "
14003 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14004 "the qemu binary at the same time as the handle is created."
14005 msgstr ""
14006
14007 #. type: =head2
14008 #: ../fish/guestfish-actions.pod:4238
14009 msgid "set-recovery-proc"
14010 msgstr "set-recovery-proc"
14011
14012 #. type: =head2
14013 #: ../fish/guestfish-actions.pod:4240
14014 msgid "recovery-proc"
14015 msgstr "recovery-proc"
14016
14017 #. type: verbatim
14018 #: ../fish/guestfish-actions.pod:4242
14019 #, no-wrap
14020 msgid ""
14021 " set-recovery-proc true|false\n"
14022 "\n"
14023 msgstr ""
14024 " set-recovery-proc true|false\n"
14025 "\n"
14026
14027 #. type: textblock
14028 #: ../fish/guestfish-actions.pod:4244
14029 msgid ""
14030 "If this is called with the parameter C<false> then L</launch> does not "
14031 "create a recovery process.  The purpose of the recovery process is to stop "
14032 "runaway qemu processes in the case where the main program aborts abruptly."
14033 msgstr ""
14034
14035 #. type: textblock
14036 #: ../fish/guestfish-actions.pod:4249
14037 msgid ""
14038 "This only has any effect if called before L</launch>, and the default is "
14039 "true."
14040 msgstr ""
14041
14042 #. type: textblock
14043 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6402
14044 msgid ""
14045 "About the only time when you would want to disable this is if the main "
14046 "process will fork itself into the background (\"daemonize\" itself).  In "
14047 "this case the recovery process thinks that the main program has disappeared "
14048 "and so kills qemu, which is not very helpful."
14049 msgstr ""
14050
14051 #. type: =head2
14052 #: ../fish/guestfish-actions.pod:4258
14053 msgid "set-selinux"
14054 msgstr "set-selinux"
14055
14056 #. type: =head2
14057 #: ../fish/guestfish-actions.pod:4260
14058 msgid "selinux"
14059 msgstr "selinux"
14060
14061 #. type: verbatim
14062 #: ../fish/guestfish-actions.pod:4262
14063 #, no-wrap
14064 msgid ""
14065 " set-selinux true|false\n"
14066 "\n"
14067 msgstr ""
14068 " set-selinux true|false\n"
14069 "\n"
14070
14071 #. type: textblock
14072 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6418
14073 msgid ""
14074 "This sets the selinux flag that is passed to the appliance at boot time.  "
14075 "The default is C<selinux=0> (disabled)."
14076 msgstr ""
14077
14078 #. type: textblock
14079 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6421
14080 msgid ""
14081 "Note that if SELinux is enabled, it is always in Permissive mode "
14082 "(C<enforcing=0>)."
14083 msgstr ""
14084
14085 #. type: =head2
14086 #: ../fish/guestfish-actions.pod:4273
14087 msgid "set-trace"
14088 msgstr "set-trace"
14089
14090 #. type: =head2
14091 #: ../fish/guestfish-actions.pod:4275
14092 msgid "trace"
14093 msgstr "trace"
14094
14095 #. type: verbatim
14096 #: ../fish/guestfish-actions.pod:4277
14097 #, no-wrap
14098 msgid ""
14099 " set-trace true|false\n"
14100 "\n"
14101 msgstr ""
14102 " set-trace true|false\n"
14103 "\n"
14104
14105 #. type: textblock
14106 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6437
14107 msgid ""
14108 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14109 "return values are traced."
14110 msgstr ""
14111
14112 #. type: textblock
14113 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6440
14114 msgid ""
14115 "If you want to trace C API calls into libguestfs (and other libraries) then "
14116 "possibly a better way is to use the external ltrace(1) command."
14117 msgstr ""
14118
14119 #. type: textblock
14120 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6444
14121 msgid ""
14122 "Command traces are disabled unless the environment variable "
14123 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14124 msgstr ""
14125
14126 #. type: textblock
14127 #: ../fish/guestfish-actions.pod:4289
14128 msgid ""
14129 "Trace messages are normally sent to C<stderr>, unless you register a "
14130 "callback to send them somewhere else (see L</set-event-callback>)."
14131 msgstr ""
14132
14133 #. type: =head2
14134 #: ../fish/guestfish-actions.pod:4293
14135 msgid "set-verbose"
14136 msgstr "set-verbose"
14137
14138 #. type: =head2
14139 #: ../fish/guestfish-actions.pod:4295
14140 msgid "verbose"
14141 msgstr ""
14142
14143 #. type: verbatim
14144 #: ../fish/guestfish-actions.pod:4297
14145 #, no-wrap
14146 msgid ""
14147 " set-verbose true|false\n"
14148 "\n"
14149 msgstr ""
14150 " set-verbose true|false\n"
14151 "\n"
14152
14153 #. type: textblock
14154 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6461
14155 msgid "If C<verbose> is true, this turns on verbose messages."
14156 msgstr ""
14157
14158 #. type: textblock
14159 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6463
14160 msgid ""
14161 "Verbose messages are disabled unless the environment variable "
14162 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14163 msgstr ""
14164
14165 #. type: textblock
14166 #: ../fish/guestfish-actions.pod:4304
14167 msgid ""
14168 "Verbose messages are normally sent to C<stderr>, unless you register a "
14169 "callback to send them somewhere else (see L</set-event-callback>)."
14170 msgstr ""
14171
14172 #. type: =head2
14173 #: ../fish/guestfish-actions.pod:4308
14174 msgid "setcon"
14175 msgstr "setcon"
14176
14177 #. type: verbatim
14178 #: ../fish/guestfish-actions.pod:4310
14179 #, no-wrap
14180 msgid ""
14181 " setcon context\n"
14182 "\n"
14183 msgstr ""
14184 " setcon контекст\n"
14185 "\n"
14186
14187 #. type: textblock
14188 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6480
14189 msgid ""
14190 "This sets the SELinux security context of the daemon to the string "
14191 "C<context>."
14192 msgstr ""
14193
14194 #. type: textblock
14195 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6483
14196 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14197 msgstr ""
14198
14199 #. type: =head2
14200 #: ../fish/guestfish-actions.pod:4317
14201 msgid "setxattr"
14202 msgstr "setxattr"
14203
14204 #. type: verbatim
14205 #: ../fish/guestfish-actions.pod:4319
14206 #, no-wrap
14207 msgid ""
14208 " setxattr xattr val vallen path\n"
14209 "\n"
14210 msgstr ""
14211
14212 #. type: textblock
14213 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6498
14214 msgid ""
14215 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14216 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14217 msgstr ""
14218
14219 #. type: textblock
14220 #: ../fish/guestfish-actions.pod:4325
14221 msgid "See also: L</lsetxattr>, L<attr(5)>."
14222 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14223
14224 #. type: =head2
14225 #: ../fish/guestfish-actions.pod:4327
14226 msgid "sfdisk"
14227 msgstr "sfdisk"
14228
14229 #. type: verbatim
14230 #: ../fish/guestfish-actions.pod:4329
14231 #, no-wrap
14232 msgid ""
14233 " sfdisk device cyls heads sectors 'lines ...'\n"
14234 "\n"
14235 msgstr ""
14236
14237 #. type: textblock
14238 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6525
14239 msgid ""
14240 "This is a direct interface to the L<sfdisk(8)> program for creating "
14241 "partitions on block devices."
14242 msgstr ""
14243
14244 #. type: textblock
14245 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6528
14246 msgid "C<device> should be a block device, for example C</dev/sda>."
14247 msgstr ""
14248
14249 #. type: textblock
14250 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6530
14251 msgid ""
14252 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14253 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14254 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14255 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14256 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14257 "the kernel) cannot work out the right geometry and you will need to tell it."
14258 msgstr ""
14259
14260 #. type: textblock
14261 #: ../fish/guestfish-actions.pod:4344 ../src/guestfs-actions.pod:6538
14262 msgid ""
14263 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14264 "refer to the L<sfdisk(8)> manpage."
14265 msgstr ""
14266
14267 #. type: textblock
14268 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6541
14269 msgid ""
14270 "To create a single partition occupying the whole disk, you would pass "
14271 "C<lines> as a single element list, when the single element being the string "
14272 "C<,> (comma)."
14273 msgstr ""
14274
14275 #. type: textblock
14276 #: ../fish/guestfish-actions.pod:4351
14277 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14278 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14279
14280 #. type: textblock
14281 #: ../fish/guestfish-actions.pod:4357 ../fish/guestfish-actions.pod:4380
14282 #: ../fish/guestfish-actions.pod:4402
14283 msgid ""
14284 "I<This function is deprecated.> In new code, use the L</part_add> call "
14285 "instead."
14286 msgstr ""
14287
14288 #. type: =head2
14289 #: ../fish/guestfish-actions.pod:4364
14290 msgid "sfdiskM"
14291 msgstr "sfdiskM"
14292
14293 #. type: verbatim
14294 #: ../fish/guestfish-actions.pod:4366
14295 #, no-wrap
14296 msgid ""
14297 " sfdiskM device 'lines ...'\n"
14298 "\n"
14299 msgstr ""
14300
14301 #. type: textblock
14302 #: ../fish/guestfish-actions.pod:4368
14303 msgid ""
14304 "This is a simplified interface to the L</sfdisk> command, where partition "
14305 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14306 "you don't need to specify the cyls, heads and sectors parameters which were "
14307 "rarely if ever used anyway."
14308 msgstr ""
14309
14310 #. type: textblock
14311 #: ../fish/guestfish-actions.pod:4374
14312 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14313 msgstr ""
14314 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14315
14316 #. type: =head2
14317 #: ../fish/guestfish-actions.pod:4387
14318 msgid "sfdisk-N"
14319 msgstr "sfdisk-N"
14320
14321 #. type: verbatim
14322 #: ../fish/guestfish-actions.pod:4389
14323 #, no-wrap
14324 msgid ""
14325 " sfdisk-N device partnum cyls heads sectors line\n"
14326 "\n"
14327 msgstr ""
14328
14329 #. type: textblock
14330 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6603
14331 msgid ""
14332 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14333 "(note: C<n> counts from 1)."
14334 msgstr ""
14335
14336 #. type: textblock
14337 #: ../fish/guestfish-actions.pod:4394
14338 msgid ""
14339 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14340 "cyls/heads/sectors parameters."
14341 msgstr ""
14342
14343 #. type: textblock
14344 #: ../fish/guestfish-actions.pod:4397
14345 msgid "See also: L</part-add>"
14346 msgstr "Див. також L</part-add>"
14347
14348 #. type: =head2
14349 #: ../fish/guestfish-actions.pod:4409
14350 msgid "sfdisk-disk-geometry"
14351 msgstr "sfdisk-disk-geometry"
14352
14353 #. type: verbatim
14354 #: ../fish/guestfish-actions.pod:4411
14355 #, no-wrap
14356 msgid ""
14357 " sfdisk-disk-geometry device\n"
14358 "\n"
14359 msgstr ""
14360 " sfdisk-disk-geometry пристрій\n"
14361 "\n"
14362
14363 #. type: textblock
14364 #: ../fish/guestfish-actions.pod:4413
14365 msgid ""
14366 "This displays the disk geometry of C<device> read from the partition table.  "
14367 "Especially in the case where the underlying block device has been resized, "
14368 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14369 "kernel-geometry>)."
14370 msgstr ""
14371
14372 #. type: textblock
14373 #: ../fish/guestfish-actions.pod:4418 ../fish/guestfish-actions.pod:4427
14374 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6645
14375 msgid "The result is in human-readable format, and not designed to be parsed."
14376 msgstr ""
14377
14378 #. type: =head2
14379 #: ../fish/guestfish-actions.pod:4421
14380 msgid "sfdisk-kernel-geometry"
14381 msgstr "sfdisk-kernel-geometry"
14382
14383 #. type: verbatim
14384 #: ../fish/guestfish-actions.pod:4423
14385 #, no-wrap
14386 msgid ""
14387 " sfdisk-kernel-geometry device\n"
14388 "\n"
14389 msgstr ""
14390 " sfdisk-kernel-geometry пристрій\n"
14391 "\n"
14392
14393 #. type: textblock
14394 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6643
14395 msgid "This displays the kernel's idea of the geometry of C<device>."
14396 msgstr ""
14397
14398 #. type: =head2
14399 #: ../fish/guestfish-actions.pod:4430
14400 msgid "sfdisk-l"
14401 msgstr "sfdisk-l"
14402
14403 #. type: verbatim
14404 #: ../fish/guestfish-actions.pod:4432
14405 #, no-wrap
14406 msgid ""
14407 " sfdisk-l device\n"
14408 "\n"
14409 msgstr ""
14410 " sfdisk-l пристрій\n"
14411 "\n"
14412
14413 #. type: textblock
14414 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6666
14415 msgid ""
14416 "This displays the partition table on C<device>, in the human-readable output "
14417 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14418 msgstr ""
14419
14420 #. type: textblock
14421 #: ../fish/guestfish-actions.pod:4438
14422 msgid "See also: L</part-list>"
14423 msgstr "Див. також L</part-list>"
14424
14425 #. type: textblock
14426 #: ../fish/guestfish-actions.pod:4440
14427 msgid ""
14428 "I<This function is deprecated.> In new code, use the L</part_list> call "
14429 "instead."
14430 msgstr ""
14431
14432 #. type: =head2
14433 #: ../fish/guestfish-actions.pod:4447
14434 msgid "sh"
14435 msgstr "sh"
14436
14437 #. type: verbatim
14438 #: ../fish/guestfish-actions.pod:4449
14439 #, no-wrap
14440 msgid ""
14441 " sh command\n"
14442 "\n"
14443 msgstr ""
14444 " sh команда\n"
14445 "\n"
14446
14447 #. type: textblock
14448 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
14449 msgid ""
14450 "This call runs a command from the guest filesystem via the guest's C</bin/"
14451 "sh>."
14452 msgstr ""
14453
14454 #. type: textblock
14455 #: ../fish/guestfish-actions.pod:4454
14456 msgid "This is like L</command>, but passes the command to:"
14457 msgstr ""
14458
14459 #. type: verbatim
14460 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6688
14461 #, no-wrap
14462 msgid ""
14463 " /bin/sh -c \"command\"\n"
14464 "\n"
14465 msgstr ""
14466
14467 #. type: textblock
14468 #: ../fish/guestfish-actions.pod:4458 ../src/guestfs-actions.pod:6690
14469 msgid ""
14470 "Depending on the guest's shell, this usually results in wildcards being "
14471 "expanded, shell expressions being interpolated and so on."
14472 msgstr ""
14473
14474 #. type: textblock
14475 #: ../fish/guestfish-actions.pod:4462
14476 msgid "All the provisos about L</command> apply to this call."
14477 msgstr ""
14478
14479 #. type: =head2
14480 #: ../fish/guestfish-actions.pod:4464
14481 msgid "sh-lines"
14482 msgstr "sh-lines"
14483
14484 #. type: verbatim
14485 #: ../fish/guestfish-actions.pod:4466
14486 #, no-wrap
14487 msgid ""
14488 " sh-lines command\n"
14489 "\n"
14490 msgstr ""
14491 " sh-lines команда\n"
14492 "\n"
14493
14494 #. type: textblock
14495 #: ../fish/guestfish-actions.pod:4468
14496 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14497 msgstr ""
14498
14499 #. type: textblock
14500 #: ../fish/guestfish-actions.pod:4471
14501 msgid "See also: L</command-lines>"
14502 msgstr "Див. також L</command-lines>"
14503
14504 #. type: =head2
14505 #: ../fish/guestfish-actions.pod:4473
14506 msgid "sleep"
14507 msgstr "sleep"
14508
14509 #. type: verbatim
14510 #: ../fish/guestfish-actions.pod:4475
14511 #, no-wrap
14512 msgid ""
14513 " sleep secs\n"
14514 "\n"
14515 msgstr ""
14516 " sleep час_у_секундах\n"
14517 "\n"
14518
14519 #. type: textblock
14520 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6724
14521 msgid "Sleep for C<secs> seconds."
14522 msgstr ""
14523
14524 #. type: =head2
14525 #: ../fish/guestfish-actions.pod:4479
14526 msgid "stat"
14527 msgstr "stat"
14528
14529 #. type: verbatim
14530 #: ../fish/guestfish-actions.pod:4481
14531 #, no-wrap
14532 msgid ""
14533 " stat path\n"
14534 "\n"
14535 msgstr ""
14536 " stat шлях\n"
14537 "\n"
14538
14539 #. type: textblock
14540 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6738
14541 msgid "This is the same as the C<stat(2)> system call."
14542 msgstr ""
14543
14544 #. type: =head2
14545 #: ../fish/guestfish-actions.pod:4487
14546 msgid "statvfs"
14547 msgstr "statvfs"
14548
14549 #. type: verbatim
14550 #: ../fish/guestfish-actions.pod:4489
14551 #, no-wrap
14552 msgid ""
14553 " statvfs path\n"
14554 "\n"
14555 msgstr ""
14556 " statvfs шлях\n"
14557 "\n"
14558
14559 #. type: textblock
14560 #: ../fish/guestfish-actions.pod:4491 ../src/guestfs-actions.pod:6752
14561 msgid ""
14562 "Returns file system statistics for any mounted file system.  C<path> should "
14563 "be a file or directory in the mounted file system (typically it is the mount "
14564 "point itself, but it doesn't need to be)."
14565 msgstr ""
14566
14567 #. type: textblock
14568 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6756
14569 msgid "This is the same as the C<statvfs(2)> system call."
14570 msgstr ""
14571
14572 #. type: =head2
14573 #: ../fish/guestfish-actions.pod:4497
14574 msgid "strings"
14575 msgstr "strings"
14576
14577 #. type: verbatim
14578 #: ../fish/guestfish-actions.pod:4499
14579 #, no-wrap
14580 msgid ""
14581 " strings path\n"
14582 "\n"
14583 msgstr ""
14584 " strings шлях\n"
14585 "\n"
14586
14587 #. type: textblock
14588 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6770
14589 msgid ""
14590 "This runs the L<strings(1)> command on a file and returns the list of "
14591 "printable strings found."
14592 msgstr ""
14593
14594 #. type: =head2
14595 #: ../fish/guestfish-actions.pod:4507
14596 msgid "strings-e"
14597 msgstr "strings-e"
14598
14599 #. type: verbatim
14600 #: ../fish/guestfish-actions.pod:4509
14601 #, no-wrap
14602 msgid ""
14603 " strings-e encoding path\n"
14604 "\n"
14605 msgstr ""
14606 " strings-e кодування шлях\n"
14607 "\n"
14608
14609 #. type: textblock
14610 #: ../fish/guestfish-actions.pod:4511
14611 msgid ""
14612 "This is like the L</strings> command, but allows you to specify the encoding "
14613 "of strings that are looked for in the source file C<path>."
14614 msgstr ""
14615
14616 #. type: textblock
14617 #: ../fish/guestfish-actions.pod:4515 ../src/guestfs-actions.pod:6793
14618 msgid "Allowed encodings are:"
14619 msgstr "Можливими кодуваннями є:"
14620
14621 #. type: =item
14622 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
14623 msgid "s"
14624 msgstr "s"
14625
14626 #. type: textblock
14627 #: ../fish/guestfish-actions.pod:4521
14628 msgid ""
14629 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14630 "ISO-8859-X (this is what L</strings> uses)."
14631 msgstr ""
14632
14633 #. type: =item
14634 #: ../fish/guestfish-actions.pod:4524 ../src/guestfs-actions.pod:6802
14635 msgid "S"
14636 msgstr "S"
14637
14638 #. type: textblock
14639 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6804
14640 msgid "Single 8-bit-byte characters."
14641 msgstr "Окремі 8-бітові-байтові символи."
14642
14643 #. type: =item
14644 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
14645 msgid "b"
14646 msgstr "b"
14647
14648 #. type: textblock
14649 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
14650 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14651 msgstr ""
14652
14653 #. type: =item
14654 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
14655 msgid "l (lower case letter L)"
14656 msgstr ""
14657
14658 #. type: textblock
14659 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
14660 msgid ""
14661 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14662 "examining binaries in Windows guests."
14663 msgstr ""
14664
14665 #. type: =item
14666 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6816
14667 msgid "B"
14668 msgstr "B"
14669
14670 #. type: textblock
14671 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6818
14672 msgid "32-bit big endian such as UCS-4BE."
14673 msgstr ""
14674
14675 #. type: =item
14676 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:6820
14677 msgid "L"
14678 msgstr "L"
14679
14680 #. type: textblock
14681 #: ../fish/guestfish-actions.pod:4544 ../src/guestfs-actions.pod:6822
14682 msgid "32-bit little endian such as UCS-4LE."
14683 msgstr ""
14684
14685 #. type: textblock
14686 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
14687 msgid "The returned strings are transcoded to UTF-8."
14688 msgstr ""
14689
14690 #. type: =head2
14691 #: ../fish/guestfish-actions.pod:4553
14692 msgid "swapoff-device"
14693 msgstr "swapoff-device"
14694
14695 #. type: verbatim
14696 #: ../fish/guestfish-actions.pod:4555
14697 #, no-wrap
14698 msgid ""
14699 " swapoff-device device\n"
14700 "\n"
14701 msgstr ""
14702 " swapoff-device пристрій\n"
14703 "\n"
14704
14705 #. type: textblock
14706 #: ../fish/guestfish-actions.pod:4557
14707 msgid ""
14708 "This command disables the libguestfs appliance swap device or partition "
14709 "named C<device>.  See L</swapon-device>."
14710 msgstr ""
14711
14712 #. type: =head2
14713 #: ../fish/guestfish-actions.pod:4561
14714 msgid "swapoff-file"
14715 msgstr "swapoff-file"
14716
14717 #. type: verbatim
14718 #: ../fish/guestfish-actions.pod:4563
14719 #, no-wrap
14720 msgid ""
14721 " swapoff-file file\n"
14722 "\n"
14723 msgstr ""
14724 " swapoff-file файл\n"
14725 "\n"
14726
14727 #. type: textblock
14728 #: ../fish/guestfish-actions.pod:4565 ../src/guestfs-actions.pod:6857
14729 msgid "This command disables the libguestfs appliance swap on file."
14730 msgstr ""
14731
14732 #. type: =head2
14733 #: ../fish/guestfish-actions.pod:4567
14734 msgid "swapoff-label"
14735 msgstr "swapoff-label"
14736
14737 #. type: verbatim
14738 #: ../fish/guestfish-actions.pod:4569
14739 #, no-wrap
14740 msgid ""
14741 " swapoff-label label\n"
14742 "\n"
14743 msgstr ""
14744 " swapoff-label мітка\n"
14745 "\n"
14746
14747 #. type: textblock
14748 #: ../fish/guestfish-actions.pod:4571 ../src/guestfs-actions.pod:6869
14749 msgid ""
14750 "This command disables the libguestfs appliance swap on labeled swap "
14751 "partition."
14752 msgstr ""
14753
14754 #. type: =head2
14755 #: ../fish/guestfish-actions.pod:4574
14756 msgid "swapoff-uuid"
14757 msgstr "swapoff-uuid"
14758
14759 #. type: verbatim
14760 #: ../fish/guestfish-actions.pod:4576
14761 #, no-wrap
14762 msgid ""
14763 " swapoff-uuid uuid\n"
14764 "\n"
14765 msgstr ""
14766 " swapoff-uuid uuid\n"
14767 "\n"
14768
14769 #. type: textblock
14770 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6882
14771 msgid ""
14772 "This command disables the libguestfs appliance swap partition with the given "
14773 "UUID."
14774 msgstr ""
14775
14776 #. type: =head2
14777 #: ../fish/guestfish-actions.pod:4581
14778 msgid "swapon-device"
14779 msgstr "swapon-device"
14780
14781 #. type: verbatim
14782 #: ../fish/guestfish-actions.pod:4583
14783 #, no-wrap
14784 msgid ""
14785 " swapon-device device\n"
14786 "\n"
14787 msgstr ""
14788 " swapon-device пристрій\n"
14789 "\n"
14790
14791 #. type: textblock
14792 #: ../fish/guestfish-actions.pod:4585
14793 msgid ""
14794 "This command enables the libguestfs appliance to use the swap device or "
14795 "partition named C<device>.  The increased memory is made available for all "
14796 "commands, for example those run using L</command> or L</sh>."
14797 msgstr ""
14798
14799 #. type: textblock
14800 #: ../fish/guestfish-actions.pod:4590 ../src/guestfs-actions.pod:6900
14801 msgid ""
14802 "Note that you should not swap to existing guest swap partitions unless you "
14803 "know what you are doing.  They may contain hibernation information, or other "
14804 "information that the guest doesn't want you to trash.  You also risk leaking "
14805 "information about the host to the guest this way.  Instead, attach a new "
14806 "host device to the guest and swap on that."
14807 msgstr ""
14808
14809 #. type: =head2
14810 #: ../fish/guestfish-actions.pod:4597
14811 msgid "swapon-file"
14812 msgstr "swapon-file"
14813
14814 #. type: verbatim
14815 #: ../fish/guestfish-actions.pod:4599
14816 #, no-wrap
14817 msgid ""
14818 " swapon-file file\n"
14819 "\n"
14820 msgstr ""
14821 " swapon-file файл\n"
14822 "\n"
14823
14824 #. type: textblock
14825 #: ../fish/guestfish-actions.pod:4601
14826 msgid ""
14827 "This command enables swap to a file.  See L</swapon-device> for other notes."
14828 msgstr ""
14829
14830 #. type: =head2
14831 #: ../fish/guestfish-actions.pod:4604
14832 msgid "swapon-label"
14833 msgstr "swapon-label"
14834
14835 #. type: verbatim
14836 #: ../fish/guestfish-actions.pod:4606
14837 #, no-wrap
14838 msgid ""
14839 " swapon-label label\n"
14840 "\n"
14841 msgstr ""
14842 " swapon-label мітка\n"
14843 "\n"
14844
14845 #. type: textblock
14846 #: ../fish/guestfish-actions.pod:4608
14847 msgid ""
14848 "This command enables swap to a labeled swap partition.  See L</swapon-"
14849 "device> for other notes."
14850 msgstr ""
14851
14852 #. type: =head2
14853 #: ../fish/guestfish-actions.pod:4611
14854 msgid "swapon-uuid"
14855 msgstr "swapon-uuid"
14856
14857 #. type: verbatim
14858 #: ../fish/guestfish-actions.pod:4613
14859 #, no-wrap
14860 msgid ""
14861 " swapon-uuid uuid\n"
14862 "\n"
14863 msgstr ""
14864 " swapon-uuid uuid\n"
14865 "\n"
14866
14867 #. type: textblock
14868 #: ../fish/guestfish-actions.pod:4615
14869 msgid ""
14870 "This command enables swap to a swap partition with the given UUID.  See L</"
14871 "swapon-device> for other notes."
14872 msgstr ""
14873
14874 #. type: =head2
14875 #: ../fish/guestfish-actions.pod:4618
14876 msgid "sync"
14877 msgstr "sync"
14878
14879 #. type: verbatim
14880 #: ../fish/guestfish-actions.pod:4620
14881 #, no-wrap
14882 msgid ""
14883 " sync\n"
14884 "\n"
14885 msgstr ""
14886 " sync\n"
14887 "\n"
14888
14889 #. type: textblock
14890 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6955
14891 msgid ""
14892 "This syncs the disk, so that any writes are flushed through to the "
14893 "underlying disk image."
14894 msgstr ""
14895
14896 #. type: textblock
14897 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6958
14898 msgid ""
14899 "You should always call this if you have modified a disk image, before "
14900 "closing the handle."
14901 msgstr ""
14902
14903 #. type: =head2
14904 #: ../fish/guestfish-actions.pod:4628
14905 msgid "tail"
14906 msgstr "tail"
14907
14908 #. type: verbatim
14909 #: ../fish/guestfish-actions.pod:4630
14910 #, no-wrap
14911 msgid ""
14912 " tail path\n"
14913 "\n"
14914 msgstr ""
14915 " tail шлях\n"
14916 "\n"
14917
14918 #. type: textblock
14919 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:6971
14920 msgid ""
14921 "This command returns up to the last 10 lines of a file as a list of strings."
14922 msgstr ""
14923
14924 #. type: =head2
14925 #: ../fish/guestfish-actions.pod:4638
14926 msgid "tail-n"
14927 msgstr "tail-n"
14928
14929 #. type: verbatim
14930 #: ../fish/guestfish-actions.pod:4640
14931 #, no-wrap
14932 msgid ""
14933 " tail-n nrlines path\n"
14934 "\n"
14935 msgstr ""
14936
14937 #. type: textblock
14938 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:6990
14939 msgid ""
14940 "If the parameter C<nrlines> is a positive number, this returns the last "
14941 "C<nrlines> lines of the file C<path>."
14942 msgstr ""
14943
14944 #. type: textblock
14945 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:6993
14946 msgid ""
14947 "If the parameter C<nrlines> is a negative number, this returns lines from "
14948 "the file C<path>, starting with the C<-nrlines>th line."
14949 msgstr ""
14950
14951 #. type: =head2
14952 #: ../fish/guestfish-actions.pod:4653
14953 msgid "tar-in"
14954 msgstr "tar-in"
14955
14956 #. type: verbatim
14957 #: ../fish/guestfish-actions.pod:4655
14958 #, no-wrap
14959 msgid ""
14960 " tar-in (tarfile|-) directory\n"
14961 "\n"
14962 msgstr ""
14963 " tar-in (файл_tar|-) каталог\n"
14964 "\n"
14965
14966 #. type: textblock
14967 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7014
14968 msgid ""
14969 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14970 "tar file) into C<directory>."
14971 msgstr ""
14972
14973 #. type: textblock
14974 #: ../fish/guestfish-actions.pod:4660
14975 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14976 msgstr ""
14977
14978 #. type: =head2
14979 #: ../fish/guestfish-actions.pod:4665
14980 msgid "tar-out"
14981 msgstr "tar-out"
14982
14983 #. type: verbatim
14984 #: ../fish/guestfish-actions.pod:4667
14985 #, no-wrap
14986 msgid ""
14987 " tar-out directory (tarfile|-)\n"
14988 "\n"
14989 msgstr ""
14990 " tar-out каталог (файл tar|-)\n"
14991 "\n"
14992
14993 #. type: textblock
14994 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7031
14995 msgid ""
14996 "This command packs the contents of C<directory> and downloads it to local "
14997 "file C<tarfile>."
14998 msgstr ""
14999
15000 #. type: textblock
15001 #: ../fish/guestfish-actions.pod:4672
15002 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15003 msgstr ""
15004
15005 #. type: =head2
15006 #: ../fish/guestfish-actions.pod:4677
15007 msgid "tgz-in"
15008 msgstr "tgz-in"
15009
15010 #. type: verbatim
15011 #: ../fish/guestfish-actions.pod:4679
15012 #, no-wrap
15013 msgid ""
15014 " tgz-in (tarball|-) directory\n"
15015 "\n"
15016 msgstr ""
15017 " tgz-in (архів tar|-) каталог\n"
15018 "\n"
15019
15020 #. type: textblock
15021 #: ../fish/guestfish-actions.pod:4681 ../src/guestfs-actions.pod:7048
15022 msgid ""
15023 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15024 "tar file) into C<directory>."
15025 msgstr ""
15026
15027 #. type: textblock
15028 #: ../fish/guestfish-actions.pod:4684
15029 msgid "To upload an uncompressed tarball, use L</tar-in>."
15030 msgstr ""
15031
15032 #. type: =head2
15033 #: ../fish/guestfish-actions.pod:4688
15034 msgid "tgz-out"
15035 msgstr "tgz-out"
15036
15037 #. type: verbatim
15038 #: ../fish/guestfish-actions.pod:4690
15039 #, no-wrap
15040 msgid ""
15041 " tgz-out directory (tarball|-)\n"
15042 "\n"
15043 msgstr ""
15044 " tgz-out каталог (архів tar|-)\n"
15045 "\n"
15046
15047 #. type: textblock
15048 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7064
15049 msgid ""
15050 "This command packs the contents of C<directory> and downloads it to local "
15051 "file C<tarball>."
15052 msgstr ""
15053
15054 #. type: textblock
15055 #: ../fish/guestfish-actions.pod:4695
15056 msgid "To download an uncompressed tarball, use L</tar-out>."
15057 msgstr ""
15058
15059 #. type: =head2
15060 #: ../fish/guestfish-actions.pod:4699
15061 msgid "touch"
15062 msgstr "touch"
15063
15064 #. type: verbatim
15065 #: ../fish/guestfish-actions.pod:4701
15066 #, no-wrap
15067 msgid ""
15068 " touch path\n"
15069 "\n"
15070 msgstr ""
15071 " touch шлях\n"
15072 "\n"
15073
15074 #. type: textblock
15075 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7079
15076 msgid ""
15077 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15078 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15079 "length file."
15080 msgstr ""
15081
15082 #. type: textblock
15083 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7083
15084 msgid ""
15085 "This command only works on regular files, and will fail on other file types "
15086 "such as directories, symbolic links, block special etc."
15087 msgstr ""
15088
15089 #. type: =head2
15090 #: ../fish/guestfish-actions.pod:4710
15091 msgid "truncate"
15092 msgstr "truncate"
15093
15094 #. type: verbatim
15095 #: ../fish/guestfish-actions.pod:4712
15096 #, no-wrap
15097 msgid ""
15098 " truncate path\n"
15099 "\n"
15100 msgstr ""
15101 " truncate шлях\n"
15102 "\n"
15103
15104 #. type: textblock
15105 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7096
15106 msgid ""
15107 "This command truncates C<path> to a zero-length file.  The file must exist "
15108 "already."
15109 msgstr ""
15110
15111 #. type: =head2
15112 #: ../fish/guestfish-actions.pod:4717
15113 msgid "truncate-size"
15114 msgstr "truncate-size"
15115
15116 #. type: verbatim
15117 #: ../fish/guestfish-actions.pod:4719
15118 #, no-wrap
15119 msgid ""
15120 " truncate-size path size\n"
15121 "\n"
15122 msgstr ""
15123 " truncate-size шлях розмір\n"
15124 "\n"
15125
15126 #. type: textblock
15127 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7110
15128 msgid ""
15129 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15130 "already."
15131 msgstr ""
15132
15133 #. type: textblock
15134 #: ../fish/guestfish-actions.pod:4724
15135 msgid ""
15136 "If the current file size is less than C<size> then the file is extended to "
15137 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15138 "blocks are not allocated for the file until you write to it).  To create a "
15139 "non-sparse file of zeroes, use L</fallocate64> instead."
15140 msgstr ""
15141
15142 #. type: =head2
15143 #: ../fish/guestfish-actions.pod:4730
15144 msgid "tune2fs-l"
15145 msgstr "tune2fs-l"
15146
15147 #. type: verbatim
15148 #: ../fish/guestfish-actions.pod:4732
15149 #, no-wrap
15150 msgid ""
15151 " tune2fs-l device\n"
15152 "\n"
15153 msgstr ""
15154 " tune2fs-l пристрій\n"
15155 "\n"
15156
15157 #. type: textblock
15158 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7129
15159 msgid ""
15160 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15161 "C<device>."
15162 msgstr ""
15163
15164 #. type: textblock
15165 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7132
15166 msgid ""
15167 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15168 "for more details.  The list of fields returned isn't clearly defined, and "
15169 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15170 "and the filesystem itself."
15171 msgstr ""
15172
15173 #. type: =head2
15174 #: ../fish/guestfish-actions.pod:4742
15175 msgid "txz-in"
15176 msgstr "txz-in"
15177
15178 #. type: verbatim
15179 #: ../fish/guestfish-actions.pod:4744
15180 #, no-wrap
15181 msgid ""
15182 " txz-in (tarball|-) directory\n"
15183 "\n"
15184 msgstr ""
15185 " txz-in (архів tar|-) каталог\n"
15186 "\n"
15187
15188 #. type: textblock
15189 #: ../fish/guestfish-actions.pod:4746 ../src/guestfs-actions.pod:7152
15190 msgid ""
15191 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15192 "tar file) into C<directory>."
15193 msgstr ""
15194
15195 #. type: =head2
15196 #: ../fish/guestfish-actions.pod:4751
15197 msgid "txz-out"
15198 msgstr "txz-out"
15199
15200 #. type: verbatim
15201 #: ../fish/guestfish-actions.pod:4753
15202 #, no-wrap
15203 msgid ""
15204 " txz-out directory (tarball|-)\n"
15205 "\n"
15206 msgstr ""
15207 " txz-out каталог (архів tar|-)\n"
15208 "\n"
15209
15210 #. type: textblock
15211 #: ../fish/guestfish-actions.pod:4755 ../src/guestfs-actions.pod:7166
15212 msgid ""
15213 "This command packs the contents of C<directory> and downloads it to local "
15214 "file C<tarball> (as an xz compressed tar archive)."
15215 msgstr ""
15216
15217 #. type: =head2
15218 #: ../fish/guestfish-actions.pod:4760
15219 msgid "umask"
15220 msgstr "umask"
15221
15222 #. type: verbatim
15223 #: ../fish/guestfish-actions.pod:4762
15224 #, no-wrap
15225 msgid ""
15226 " umask mask\n"
15227 "\n"
15228 msgstr ""
15229 " umask маска\n"
15230 "\n"
15231
15232 #. type: textblock
15233 #: ../fish/guestfish-actions.pod:4764 ../src/guestfs-actions.pod:7179
15234 msgid ""
15235 "This function sets the mask used for creating new files and device nodes to "
15236 "C<mask & 0777>."
15237 msgstr ""
15238
15239 #. type: textblock
15240 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
15241 msgid ""
15242 "Typical umask values would be C<022> which creates new files with "
15243 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15244 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15245 msgstr ""
15246
15247 #. type: textblock
15248 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7187
15249 msgid ""
15250 "The default umask is C<022>.  This is important because it means that "
15251 "directories and device nodes will be created with C<0644> or C<0755> mode "
15252 "even if you specify C<0777>."
15253 msgstr ""
15254
15255 #. type: textblock
15256 #: ../fish/guestfish-actions.pod:4776
15257 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15258 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15259
15260 #. type: textblock
15261 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7194
15262 msgid "This call returns the previous umask."
15263 msgstr ""
15264
15265 #. type: =head2
15266 #: ../fish/guestfish-actions.pod:4781
15267 msgid "umount"
15268 msgstr "umount"
15269
15270 #. type: =head2
15271 #: ../fish/guestfish-actions.pod:4783
15272 msgid "unmount"
15273 msgstr "unmount"
15274
15275 #. type: verbatim
15276 #: ../fish/guestfish-actions.pod:4785
15277 #, no-wrap
15278 msgid ""
15279 " umount pathordevice\n"
15280 "\n"
15281 msgstr ""
15282 " umount шлях_або_пристрій\n"
15283 "\n"
15284
15285 #. type: textblock
15286 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7206
15287 msgid ""
15288 "This unmounts the given filesystem.  The filesystem may be specified either "
15289 "by its mountpoint (path) or the device which contains the filesystem."
15290 msgstr ""
15291
15292 #. type: =head2
15293 #: ../fish/guestfish-actions.pod:4791
15294 msgid "umount-all"
15295 msgstr "umount-all"
15296
15297 #. type: =head2
15298 #: ../fish/guestfish-actions.pod:4793
15299 msgid "unmount-all"
15300 msgstr "unmount-all"
15301
15302 #. type: verbatim
15303 #: ../fish/guestfish-actions.pod:4795
15304 #, no-wrap
15305 msgid ""
15306 " umount-all\n"
15307 "\n"
15308 msgstr ""
15309 " umount-all\n"
15310 "\n"
15311
15312 #. type: textblock
15313 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7219
15314 msgid "This unmounts all mounted filesystems."
15315 msgstr ""
15316
15317 #. type: textblock
15318 #: ../fish/guestfish-actions.pod:4799 ../src/guestfs-actions.pod:7221
15319 msgid "Some internal mounts are not unmounted by this call."
15320 msgstr ""
15321
15322 #. type: =head2
15323 #: ../fish/guestfish-actions.pod:4801
15324 msgid "upload"
15325 msgstr "upload"
15326
15327 #. type: verbatim
15328 #: ../fish/guestfish-actions.pod:4803
15329 #, no-wrap
15330 msgid ""
15331 " upload (filename|-) remotefilename\n"
15332 "\n"
15333 msgstr ""
15334 " upload (назва_файла|-) назва_віддаленого_файла\n"
15335 "\n"
15336
15337 #. type: textblock
15338 #: ../fish/guestfish-actions.pod:4805 ../fish/guestfish-actions.pod:4818
15339 #: ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7258
15340 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15341 msgstr ""
15342
15343 #. type: textblock
15344 #: ../fish/guestfish-actions.pod:4810
15345 msgid "See also L</download>."
15346 msgstr "Див. також L</download>."
15347
15348 #. type: =head2
15349 #: ../fish/guestfish-actions.pod:4814
15350 msgid "upload-offset"
15351 msgstr "upload-offset"
15352
15353 #. type: verbatim
15354 #: ../fish/guestfish-actions.pod:4816
15355 #, no-wrap
15356 msgid ""
15357 " upload-offset (filename|-) remotefilename offset\n"
15358 "\n"
15359 msgstr ""
15360 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15361 "\n"
15362
15363 #. type: textblock
15364 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7261
15365 msgid ""
15366 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15367 "The intention is to overwrite parts of existing files or devices, although "
15368 "if a non-existant file is specified then it is created with a \"hole\" "
15369 "before C<offset>.  The size of the data written is implicit in the size of "
15370 "the source C<filename>."
15371 msgstr ""
15372
15373 #. type: textblock
15374 #: ../fish/guestfish-actions.pod:4828
15375 msgid ""
15376 "Note that there is no limit on the amount of data that can be uploaded with "
15377 "this call, unlike with L</pwrite>, and this call always writes the full "
15378 "amount unless an error occurs."
15379 msgstr ""
15380
15381 #. type: textblock
15382 #: ../fish/guestfish-actions.pod:4833
15383 msgid "See also L</upload>, L</pwrite>."
15384 msgstr "Див. також L</upload>, L</pwrite>."
15385
15386 #. type: =head2
15387 #: ../fish/guestfish-actions.pod:4837
15388 msgid "utimens"
15389 msgstr "utimens"
15390
15391 #. type: verbatim
15392 #: ../fish/guestfish-actions.pod:4839
15393 #, no-wrap
15394 msgid ""
15395 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15396 "\n"
15397 msgstr ""
15398
15399 #. type: textblock
15400 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7294
15401 msgid "This command sets the timestamps of a file with nanosecond precision."
15402 msgstr ""
15403
15404 #. type: textblock
15405 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7297
15406 msgid ""
15407 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15408 "from the epoch."
15409 msgstr ""
15410
15411 #. type: textblock
15412 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7300
15413 msgid ""
15414 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15415 "nanoseconds from the epoch."
15416 msgstr ""
15417
15418 #. type: textblock
15419 #: ../fish/guestfish-actions.pod:4850 ../src/guestfs-actions.pod:7303
15420 msgid ""
15421 "If the C<*nsecs> field contains the special value C<-1> then the "
15422 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15423 "ignored in this case)."
15424 msgstr ""
15425
15426 #. type: textblock
15427 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7307
15428 msgid ""
15429 "If the C<*nsecs> field contains the special value C<-2> then the "
15430 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15431 "in this case)."
15432 msgstr ""
15433
15434 #. type: =head2
15435 #: ../fish/guestfish-actions.pod:4858
15436 msgid "version"
15437 msgstr "version"
15438
15439 #. type: verbatim
15440 #: ../fish/guestfish-actions.pod:4860
15441 #, no-wrap
15442 msgid ""
15443 " version\n"
15444 "\n"
15445 msgstr ""
15446 " version\n"
15447 "\n"
15448
15449 #. type: textblock
15450 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7320
15451 msgid ""
15452 "Return the libguestfs version number that the program is linked against."
15453 msgstr ""
15454
15455 #. type: textblock
15456 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
15457 msgid ""
15458 "Note that because of dynamic linking this is not necessarily the version of "
15459 "libguestfs that you compiled against.  You can compile the program, and then "
15460 "at runtime dynamically link against a completely different C<libguestfs.so> "
15461 "library."
15462 msgstr ""
15463
15464 #. type: textblock
15465 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7328
15466 msgid ""
15467 "This call was added in version C<1.0.58>.  In previous versions of "
15468 "libguestfs there was no way to get the version number.  From C code you can "
15469 "use dynamic linker functions to find out if this symbol exists (if it "
15470 "doesn't, then it's an earlier version)."
15471 msgstr ""
15472
15473 #. type: textblock
15474 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7334
15475 msgid ""
15476 "The call returns a structure with four elements.  The first three (C<major>, "
15477 "C<minor> and C<release>) are numbers and correspond to the usual version "
15478 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15479 "but may be used for distro-specific information."
15480 msgstr ""
15481
15482 #. type: textblock
15483 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7340
15484 msgid ""
15485 "To construct the original version string: C<$major.$minor.$release$extra>"
15486 msgstr ""
15487
15488 #. type: textblock
15489 #: ../fish/guestfish-actions.pod:4885 ../src/guestfs-actions.pod:7343
15490 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15491 msgstr ""
15492
15493 #. type: textblock
15494 #: ../fish/guestfish-actions.pod:4887
15495 msgid ""
15496 "I<Note:> Don't use this call to test for availability of features.  In "
15497 "enterprise distributions we backport features from later versions into "
15498 "earlier versions, making this an unreliable way to test for features.  Use "
15499 "L</available> instead."
15500 msgstr ""
15501
15502 #. type: =head2
15503 #: ../fish/guestfish-actions.pod:4893
15504 msgid "vfs-label"
15505 msgstr "vfs-label"
15506
15507 #. type: verbatim
15508 #: ../fish/guestfish-actions.pod:4895
15509 #, no-wrap
15510 msgid ""
15511 " vfs-label device\n"
15512 "\n"
15513 msgstr ""
15514 " vfs-label пристрій\n"
15515 "\n"
15516
15517 #. type: textblock
15518 #: ../fish/guestfish-actions.pod:4897 ../src/guestfs-actions.pod:7363
15519 msgid "This returns the filesystem label of the filesystem on C<device>."
15520 msgstr ""
15521
15522 #. type: textblock
15523 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7366
15524 msgid "If the filesystem is unlabeled, this returns the empty string."
15525 msgstr ""
15526
15527 #. type: textblock
15528 #: ../fish/guestfish-actions.pod:4902
15529 msgid "To find a filesystem from the label, use L</findfs-label>."
15530 msgstr ""
15531
15532 #. type: =head2
15533 #: ../fish/guestfish-actions.pod:4904
15534 msgid "vfs-type"
15535 msgstr "vfs-type"
15536
15537 #. type: verbatim
15538 #: ../fish/guestfish-actions.pod:4906
15539 #, no-wrap
15540 msgid ""
15541 " vfs-type device\n"
15542 "\n"
15543 msgstr ""
15544 " vfs-type пристрій\n"
15545 "\n"
15546
15547 #. type: textblock
15548 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7381
15549 msgid ""
15550 "This command gets the filesystem type corresponding to the filesystem on "
15551 "C<device>."
15552 msgstr ""
15553
15554 #. type: textblock
15555 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7384
15556 msgid ""
15557 "For most filesystems, the result is the name of the Linux VFS module which "
15558 "would be used to mount this filesystem if you mounted it without specifying "
15559 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15560 msgstr ""
15561
15562 #. type: =head2
15563 #: ../fish/guestfish-actions.pod:4916
15564 msgid "vfs-uuid"
15565 msgstr "vfs-uuid"
15566
15567 #. type: verbatim
15568 #: ../fish/guestfish-actions.pod:4918
15569 #, no-wrap
15570 msgid ""
15571 " vfs-uuid device\n"
15572 "\n"
15573 msgstr ""
15574 " vfs-uuid пристрій\n"
15575 "\n"
15576
15577 #. type: textblock
15578 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7400
15579 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15580 msgstr ""
15581
15582 #. type: textblock
15583 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7403
15584 msgid "If the filesystem does not have a UUID, this returns the empty string."
15585 msgstr ""
15586
15587 #. type: textblock
15588 #: ../fish/guestfish-actions.pod:4925
15589 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15590 msgstr ""
15591
15592 #. type: =head2
15593 #: ../fish/guestfish-actions.pod:4927
15594 msgid "vg-activate"
15595 msgstr "vg-activate"
15596
15597 #. type: verbatim
15598 #: ../fish/guestfish-actions.pod:4929
15599 #, no-wrap
15600 msgid ""
15601 " vg-activate true|false 'volgroups ...'\n"
15602 "\n"
15603 msgstr ""
15604
15605 #. type: textblock
15606 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
15607 msgid ""
15608 "This command activates or (if C<activate> is false) deactivates all logical "
15609 "volumes in the listed volume groups C<volgroups>."
15610 msgstr ""
15611
15612 #. type: textblock
15613 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7422
15614 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15615 msgstr ""
15616
15617 #. type: textblock
15618 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7424
15619 msgid ""
15620 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15621 "activated or deactivated."
15622 msgstr ""
15623
15624 #. type: =head2
15625 #: ../fish/guestfish-actions.pod:4939
15626 msgid "vg-activate-all"
15627 msgstr "vg-activate-all"
15628
15629 #. type: verbatim
15630 #: ../fish/guestfish-actions.pod:4941
15631 #, no-wrap
15632 msgid ""
15633 " vg-activate-all true|false\n"
15634 "\n"
15635 msgstr ""
15636 " vg-activate-all true|false\n"
15637 "\n"
15638
15639 #. type: textblock
15640 #: ../fish/guestfish-actions.pod:4943 ../src/guestfs-actions.pod:7437
15641 msgid ""
15642 "This command activates or (if C<activate> is false) deactivates all logical "
15643 "volumes in all volume groups."
15644 msgstr ""
15645
15646 #. type: textblock
15647 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7440
15648 msgid "This command is the same as running C<vgchange -a y|n>"
15649 msgstr ""
15650
15651 #. type: =head2
15652 #: ../fish/guestfish-actions.pod:4948
15653 msgid "vgcreate"
15654 msgstr "vgcreate"
15655
15656 #. type: verbatim
15657 #: ../fish/guestfish-actions.pod:4950
15658 #, no-wrap
15659 msgid ""
15660 " vgcreate volgroup 'physvols ...'\n"
15661 "\n"
15662 msgstr ""
15663
15664 #. type: textblock
15665 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7453
15666 msgid ""
15667 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15668 "of physical volumes C<physvols>."
15669 msgstr ""
15670
15671 #. type: =head2
15672 #: ../fish/guestfish-actions.pod:4955
15673 msgid "vglvuuids"
15674 msgstr "vglvuuids"
15675
15676 #. type: verbatim
15677 #: ../fish/guestfish-actions.pod:4957
15678 #, no-wrap
15679 msgid ""
15680 " vglvuuids vgname\n"
15681 "\n"
15682 msgstr ""
15683
15684 #. type: textblock
15685 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7466
15686 msgid ""
15687 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15688 "volumes created in this volume group."
15689 msgstr ""
15690
15691 #. type: textblock
15692 #: ../fish/guestfish-actions.pod:4962
15693 msgid ""
15694 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15695 "logical volumes and volume groups."
15696 msgstr ""
15697
15698 #. type: textblock
15699 #: ../fish/guestfish-actions.pod:4965
15700 msgid "See also L</vgpvuuids>."
15701 msgstr "Див. також L</vgpvuuids>."
15702
15703 #. type: =head2
15704 #: ../fish/guestfish-actions.pod:4967
15705 msgid "vgpvuuids"
15706 msgstr "vgpvuuids"
15707
15708 #. type: verbatim
15709 #: ../fish/guestfish-actions.pod:4969
15710 #, no-wrap
15711 msgid ""
15712 " vgpvuuids vgname\n"
15713 "\n"
15714 msgstr ""
15715
15716 #. type: textblock
15717 #: ../fish/guestfish-actions.pod:4971 ../src/guestfs-actions.pod:7486
15718 msgid ""
15719 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15720 "volumes that this volume group resides on."
15721 msgstr ""
15722
15723 #. type: textblock
15724 #: ../fish/guestfish-actions.pod:4974
15725 msgid ""
15726 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15727 "physical volumes and volume groups."
15728 msgstr ""
15729
15730 #. type: textblock
15731 #: ../fish/guestfish-actions.pod:4977
15732 msgid "See also L</vglvuuids>."
15733 msgstr "Див. також L</vglvuuids>."
15734
15735 #. type: =head2
15736 #: ../fish/guestfish-actions.pod:4979
15737 msgid "vgremove"
15738 msgstr "vgremove"
15739
15740 #. type: verbatim
15741 #: ../fish/guestfish-actions.pod:4981
15742 #, no-wrap
15743 msgid ""
15744 " vgremove vgname\n"
15745 "\n"
15746 msgstr ""
15747
15748 #. type: textblock
15749 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7506
15750 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15751 msgstr ""
15752
15753 #. type: textblock
15754 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7508
15755 msgid ""
15756 "This also forcibly removes all logical volumes in the volume group (if any)."
15757 msgstr ""
15758
15759 #. type: =head2
15760 #: ../fish/guestfish-actions.pod:4988
15761 msgid "vgrename"
15762 msgstr "vgrename"
15763
15764 #. type: verbatim
15765 #: ../fish/guestfish-actions.pod:4990
15766 #, no-wrap
15767 msgid ""
15768 " vgrename volgroup newvolgroup\n"
15769 "\n"
15770 msgstr ""
15771
15772 #. type: textblock
15773 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7522
15774 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15775 msgstr ""
15776
15777 #. type: =head2
15778 #: ../fish/guestfish-actions.pod:4994
15779 msgid "vgs"
15780 msgstr "vgs"
15781
15782 #. type: verbatim
15783 #: ../fish/guestfish-actions.pod:4996
15784 #, no-wrap
15785 msgid ""
15786 " vgs\n"
15787 "\n"
15788 msgstr ""
15789 " vgs\n"
15790 "\n"
15791
15792 #. type: textblock
15793 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7533
15794 msgid ""
15795 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15796 "> command."
15797 msgstr ""
15798
15799 #. type: textblock
15800 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7536
15801 msgid ""
15802 "This returns a list of just the volume group names that were detected (eg. "
15803 "C<VolGroup00>)."
15804 msgstr ""
15805
15806 #. type: textblock
15807 #: ../fish/guestfish-actions.pod:5004
15808 msgid "See also L</vgs-full>."
15809 msgstr "Див. також L</vgs-full>."
15810
15811 #. type: =head2
15812 #: ../fish/guestfish-actions.pod:5006
15813 msgid "vgs-full"
15814 msgstr "vgs-full"
15815
15816 #. type: verbatim
15817 #: ../fish/guestfish-actions.pod:5008
15818 #, no-wrap
15819 msgid ""
15820 " vgs-full\n"
15821 "\n"
15822 msgstr ""
15823 " vgs-full\n"
15824 "\n"
15825
15826 #. type: textblock
15827 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7552
15828 msgid ""
15829 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15830 "> command.  The \"full\" version includes all fields."
15831 msgstr ""
15832
15833 #. type: =head2
15834 #: ../fish/guestfish-actions.pod:5013
15835 msgid "vgscan"
15836 msgstr "vgscan"
15837
15838 #. type: verbatim
15839 #: ../fish/guestfish-actions.pod:5015
15840 #, no-wrap
15841 msgid ""
15842 " vgscan\n"
15843 "\n"
15844 msgstr ""
15845 " vgscan\n"
15846 "\n"
15847
15848 #. type: textblock
15849 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7566
15850 msgid ""
15851 "This rescans all block devices and rebuilds the list of LVM physical "
15852 "volumes, volume groups and logical volumes."
15853 msgstr ""
15854
15855 #. type: =head2
15856 #: ../fish/guestfish-actions.pod:5020
15857 msgid "vguuid"
15858 msgstr "vguuid"
15859
15860 #. type: verbatim
15861 #: ../fish/guestfish-actions.pod:5022
15862 #, no-wrap
15863 msgid ""
15864 " vguuid vgname\n"
15865 "\n"
15866 msgstr ""
15867
15868 #. type: textblock
15869 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7579
15870 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15871 msgstr ""
15872
15873 #. type: =head2
15874 #: ../fish/guestfish-actions.pod:5026
15875 msgid "wc-c"
15876 msgstr "wc-c"
15877
15878 #. type: verbatim
15879 #: ../fish/guestfish-actions.pod:5028
15880 #, no-wrap
15881 msgid ""
15882 " wc-c path\n"
15883 "\n"
15884 msgstr ""
15885 " wc-c шлях\n"
15886 "\n"
15887
15888 #. type: textblock
15889 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7619
15890 msgid ""
15891 "This command counts the characters in a file, using the C<wc -c> external "
15892 "command."
15893 msgstr ""
15894
15895 #. type: =head2
15896 #: ../fish/guestfish-actions.pod:5033
15897 msgid "wc-l"
15898 msgstr "wc-l"
15899
15900 #. type: verbatim
15901 #: ../fish/guestfish-actions.pod:5035
15902 #, no-wrap
15903 msgid ""
15904 " wc-l path\n"
15905 "\n"
15906 msgstr ""
15907 " wc-l шлях\n"
15908 "\n"
15909
15910 #. type: textblock
15911 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7632
15912 msgid ""
15913 "This command counts the lines in a file, using the C<wc -l> external command."
15914 msgstr ""
15915
15916 #. type: =head2
15917 #: ../fish/guestfish-actions.pod:5040
15918 msgid "wc-w"
15919 msgstr "wc-w"
15920
15921 #. type: verbatim
15922 #: ../fish/guestfish-actions.pod:5042
15923 #, no-wrap
15924 msgid ""
15925 " wc-w path\n"
15926 "\n"
15927 msgstr ""
15928 " wc-w шлях\n"
15929 "\n"
15930
15931 #. type: textblock
15932 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7645
15933 msgid ""
15934 "This command counts the words in a file, using the C<wc -w> external command."
15935 msgstr ""
15936
15937 #. type: =head2
15938 #: ../fish/guestfish-actions.pod:5047
15939 msgid "write"
15940 msgstr "write"
15941
15942 #. type: verbatim
15943 #: ../fish/guestfish-actions.pod:5049
15944 #, no-wrap
15945 msgid ""
15946 " write path content\n"
15947 "\n"
15948 msgstr ""
15949 " write шлях дані\n"
15950 "\n"
15951
15952 #. type: textblock
15953 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7660
15954 msgid ""
15955 "This call creates a file called C<path>.  The content of the file is the "
15956 "string C<content> (which can contain any 8 bit data)."
15957 msgstr ""
15958
15959 #. type: textblock
15960 #: ../fish/guestfish-actions.pod:5054
15961 msgid "See also L</write-append>."
15962 msgstr ""
15963
15964 #. type: =head2
15965 #: ../fish/guestfish-actions.pod:5059
15966 msgid "write-append"
15967 msgstr ""
15968
15969 #. type: verbatim
15970 #: ../fish/guestfish-actions.pod:5061
15971 #, no-wrap
15972 msgid ""
15973 " write-append path content\n"
15974 "\n"
15975 msgstr ""
15976
15977 #. type: textblock
15978 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7680
15979 msgid ""
15980 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15981 "not exist, then a new file is created."
15982 msgstr ""
15983
15984 #. type: textblock
15985 #: ../fish/guestfish-actions.pod:5066
15986 msgid "See also L</write>."
15987 msgstr ""
15988
15989 #. type: =head2
15990 #: ../fish/guestfish-actions.pod:5071
15991 msgid "write-file"
15992 msgstr "write-file"
15993
15994 #. type: verbatim
15995 #: ../fish/guestfish-actions.pod:5073
15996 #, no-wrap
15997 msgid ""
15998 " write-file path content size\n"
15999 "\n"
16000 msgstr ""
16001
16002 #. type: textblock
16003 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7707
16004 msgid ""
16005 "This call creates a file called C<path>.  The contents of the file is the "
16006 "string C<content> (which can contain any 8 bit data), with length C<size>."
16007 msgstr ""
16008
16009 #. type: textblock
16010 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7711
16011 msgid ""
16012 "As a special case, if C<size> is C<0> then the length is calculated using "
16013 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16014 msgstr ""
16015
16016 #. type: textblock
16017 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7715
16018 msgid ""
16019 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16020 "I<not> work, even if the length is specified."
16021 msgstr ""
16022
16023 #. type: textblock
16024 #: ../fish/guestfish-actions.pod:5089
16025 msgid ""
16026 "I<This function is deprecated.> In new code, use the L</write> call instead."
16027 msgstr ""
16028
16029 #. type: =head2
16030 #: ../fish/guestfish-actions.pod:5096
16031 msgid "zegrep"
16032 msgstr "zegrep"
16033
16034 #. type: verbatim
16035 #: ../fish/guestfish-actions.pod:5098
16036 #, no-wrap
16037 msgid ""
16038 " zegrep regex path\n"
16039 "\n"
16040 msgstr ""
16041 " zegrep формальний_вираз шлях\n"
16042 "\n"
16043
16044 #. type: textblock
16045 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7732
16046 msgid ""
16047 "This calls the external C<zegrep> program and returns the matching lines."
16048 msgstr ""
16049
16050 #. type: =head2
16051 #: ../fish/guestfish-actions.pod:5106
16052 msgid "zegrepi"
16053 msgstr "zegrepi"
16054
16055 #. type: verbatim
16056 #: ../fish/guestfish-actions.pod:5108
16057 #, no-wrap
16058 msgid ""
16059 " zegrepi regex path\n"
16060 "\n"
16061 msgstr ""
16062
16063 #. type: textblock
16064 #: ../fish/guestfish-actions.pod:5110 ../src/guestfs-actions.pod:7751
16065 msgid ""
16066 "This calls the external C<zegrep -i> program and returns the matching lines."
16067 msgstr ""
16068
16069 #. type: =head2
16070 #: ../fish/guestfish-actions.pod:5116
16071 msgid "zero"
16072 msgstr "zero"
16073
16074 #. type: verbatim
16075 #: ../fish/guestfish-actions.pod:5118
16076 #, no-wrap
16077 msgid ""
16078 " zero device\n"
16079 "\n"
16080 msgstr ""
16081 " zero пристрій\n"
16082 "\n"
16083
16084 #. type: textblock
16085 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7769
16086 msgid "This command writes zeroes over the first few blocks of C<device>."
16087 msgstr ""
16088
16089 #. type: textblock
16090 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7771
16091 msgid ""
16092 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16093 "securely wipe the device).  It should be sufficient to remove any partition "
16094 "tables, filesystem superblocks and so on."
16095 msgstr ""
16096
16097 #. type: textblock
16098 #: ../fish/guestfish-actions.pod:5126 ../fish/guestfish-actions.pod:5141
16099 #: ../src/guestfs-actions.pod:7775 ../src/guestfs-actions.pod:7801
16100 msgid ""
16101 "If blocks are already zero, then this command avoids writing zeroes.  This "
16102 "prevents the underlying device from becoming non-sparse or growing "
16103 "unnecessarily."
16104 msgstr ""
16105
16106 #. type: textblock
16107 #: ../fish/guestfish-actions.pod:5130
16108 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16109 msgstr ""
16110
16111 #. type: =head2
16112 #: ../fish/guestfish-actions.pod:5133
16113 msgid "zero-device"
16114 msgstr "zero-device"
16115
16116 #. type: verbatim
16117 #: ../fish/guestfish-actions.pod:5135
16118 #, no-wrap
16119 msgid ""
16120 " zero-device device\n"
16121 "\n"
16122 msgstr ""
16123 " zero-device пристрій\n"
16124 "\n"
16125
16126 #. type: textblock
16127 #: ../fish/guestfish-actions.pod:5137
16128 msgid ""
16129 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16130 "which just zeroes the first few blocks of a device."
16131 msgstr ""
16132
16133 #. type: =head2
16134 #: ../fish/guestfish-actions.pod:5148
16135 msgid "zerofree"
16136 msgstr "zerofree"
16137
16138 #. type: verbatim
16139 #: ../fish/guestfish-actions.pod:5150
16140 #, no-wrap
16141 msgid ""
16142 " zerofree device\n"
16143 "\n"
16144 msgstr ""
16145 " zerofree пристрій\n"
16146 "\n"
16147
16148 #. type: textblock
16149 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7823
16150 msgid ""
16151 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16152 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16153 "possible to compress the filesystem more effectively."
16154 msgstr ""
16155
16156 #. type: textblock
16157 #: ../fish/guestfish-actions.pod:5157 ../src/guestfs-actions.pod:7828
16158 msgid "You should B<not> run this program if the filesystem is mounted."
16159 msgstr ""
16160
16161 #. type: textblock
16162 #: ../fish/guestfish-actions.pod:5160 ../src/guestfs-actions.pod:7831
16163 msgid ""
16164 "It is possible that using this program can damage the filesystem or data on "
16165 "the filesystem."
16166 msgstr ""
16167
16168 #. type: =head2
16169 #: ../fish/guestfish-actions.pod:5163
16170 msgid "zfgrep"
16171 msgstr "zfgrep"
16172
16173 #. type: verbatim
16174 #: ../fish/guestfish-actions.pod:5165
16175 #, no-wrap
16176 msgid ""
16177 " zfgrep pattern path\n"
16178 "\n"
16179 msgstr ""
16180 " zfgrep шаблон шлях\n"
16181 "\n"
16182
16183 #. type: textblock
16184 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:7845
16185 msgid ""
16186 "This calls the external C<zfgrep> program and returns the matching lines."
16187 msgstr ""
16188
16189 #. type: =head2
16190 #: ../fish/guestfish-actions.pod:5173
16191 msgid "zfgrepi"
16192 msgstr "zfgrepi"
16193
16194 #. type: verbatim
16195 #: ../fish/guestfish-actions.pod:5175
16196 #, no-wrap
16197 msgid ""
16198 " zfgrepi pattern path\n"
16199 "\n"
16200 msgstr ""
16201 " zfgrepi шаблон шлях\n"
16202 "\n"
16203
16204 #. type: textblock
16205 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7864
16206 msgid ""
16207 "This calls the external C<zfgrep -i> program and returns the matching lines."
16208 msgstr ""
16209
16210 #. type: =head2
16211 #: ../fish/guestfish-actions.pod:5183
16212 msgid "zfile"
16213 msgstr "zfile"
16214
16215 #. type: verbatim
16216 #: ../fish/guestfish-actions.pod:5185
16217 #, no-wrap
16218 msgid ""
16219 " zfile meth path\n"
16220 "\n"
16221 msgstr ""
16222 " zfile метод шлях\n"
16223 "\n"
16224
16225 #. type: textblock
16226 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7890
16227 msgid ""
16228 "This command runs C<file> after first decompressing C<path> using C<method>."
16229 msgstr ""
16230
16231 #. type: textblock
16232 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7893
16233 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16234 msgstr ""
16235
16236 #. type: textblock
16237 #: ../fish/guestfish-actions.pod:5192
16238 msgid ""
16239 "Since 1.0.63, use L</file> instead which can now process compressed files."
16240 msgstr ""
16241
16242 #. type: textblock
16243 #: ../fish/guestfish-actions.pod:5195
16244 msgid ""
16245 "I<This function is deprecated.> In new code, use the L</file> call instead."
16246 msgstr ""
16247
16248 #. type: =head2
16249 #: ../fish/guestfish-actions.pod:5202
16250 msgid "zgrep"
16251 msgstr "zgrep"
16252
16253 #. type: verbatim
16254 #: ../fish/guestfish-actions.pod:5204
16255 #, no-wrap
16256 msgid ""
16257 " zgrep regex path\n"
16258 "\n"
16259 msgstr ""
16260 " zgrep формальний_вираз шлях\n"
16261 "\n"
16262
16263 #. type: textblock
16264 #: ../fish/guestfish-actions.pod:5206 ../src/guestfs-actions.pod:7910
16265 msgid ""
16266 "This calls the external C<zgrep> program and returns the matching lines."
16267 msgstr ""
16268
16269 #. type: =head2
16270 #: ../fish/guestfish-actions.pod:5212
16271 msgid "zgrepi"
16272 msgstr "zgrepi"
16273
16274 #. type: verbatim
16275 #: ../fish/guestfish-actions.pod:5214
16276 #, no-wrap
16277 msgid ""
16278 " zgrepi regex path\n"
16279 "\n"
16280 msgstr ""
16281 " zgrepi формальний_вираз шлях\n"
16282 "\n"
16283
16284 #. type: textblock
16285 #: ../fish/guestfish-actions.pod:5216 ../src/guestfs-actions.pod:7929
16286 msgid ""
16287 "This calls the external C<zgrep -i> program and returns the matching lines."
16288 msgstr ""
16289
16290 #. type: =head2
16291 #: ../fish/guestfish-commands.pod:1
16292 msgid "alloc"
16293 msgstr "alloc"
16294
16295 #. type: =head2
16296 #: ../fish/guestfish-commands.pod:3
16297 msgid "allocate"
16298 msgstr ""
16299
16300 #. type: verbatim
16301 #: ../fish/guestfish-commands.pod:5
16302 #, no-wrap
16303 msgid ""
16304 " alloc filename size\n"
16305 "\n"
16306 msgstr ""
16307
16308 #. type: textblock
16309 #: ../fish/guestfish-commands.pod:7
16310 msgid ""
16311 "This creates an empty (zeroed) file of the given size, and then adds so it "
16312 "can be further examined."
16313 msgstr ""
16314
16315 #. type: textblock
16316 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16317 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16318 msgstr ""
16319
16320 #. type: textblock
16321 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16322 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16323 msgstr ""
16324
16325 #. type: textblock
16326 #: ../fish/guestfish-commands.pod:14
16327 msgid ""
16328 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16329 "image, see L</PREPARED DISK IMAGES>."
16330 msgstr ""
16331
16332 #. type: =head2
16333 #: ../fish/guestfish-commands.pod:17
16334 msgid "copy-in"
16335 msgstr "copy-in"
16336
16337 #. type: verbatim
16338 #: ../fish/guestfish-commands.pod:19
16339 #, no-wrap
16340 msgid ""
16341 " copy-in local [local ...] /remotedir\n"
16342 "\n"
16343 msgstr ""
16344
16345 #. type: textblock
16346 #: ../fish/guestfish-commands.pod:21
16347 msgid ""
16348 "C<copy-in> copies local files or directories recursively into the disk "
16349 "image, placing them in the directory called C</remotedir> (which must "
16350 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16351 "other commands as necessary."
16352 msgstr ""
16353
16354 #. type: textblock
16355 #: ../fish/guestfish-commands.pod:26
16356 msgid ""
16357 "Multiple local files and directories can be specified, but the last "
16358 "parameter must always be a remote directory.  Wildcards cannot be used."
16359 msgstr ""
16360
16361 #. type: =head2
16362 #: ../fish/guestfish-commands.pod:30
16363 msgid "copy-out"
16364 msgstr "copy-out"
16365
16366 #. type: verbatim
16367 #: ../fish/guestfish-commands.pod:32
16368 #, no-wrap
16369 msgid ""
16370 " copy-out remote [remote ...] localdir\n"
16371 "\n"
16372 msgstr ""
16373
16374 #. type: textblock
16375 #: ../fish/guestfish-commands.pod:34
16376 msgid ""
16377 "C<copy-out> copies remote files or directories recursively out of the disk "
16378 "image, placing them on the host disk in a local directory called C<localdir> "
16379 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
16380 "download>, L</tar-out> and other commands as necessary."
16381 msgstr ""
16382
16383 #. type: textblock
16384 #: ../fish/guestfish-commands.pod:40
16385 msgid ""
16386 "Multiple remote files and directories can be specified, but the last "
16387 "parameter must always be a local directory.  To download to the current "
16388 "directory, use C<.> as in:"
16389 msgstr ""
16390
16391 #. type: verbatim
16392 #: ../fish/guestfish-commands.pod:44
16393 #, no-wrap
16394 msgid ""
16395 " copy-out /home .\n"
16396 "\n"
16397 msgstr ""
16398 " copy-out /home .\n"
16399 "\n"
16400
16401 #. type: textblock
16402 #: ../fish/guestfish-commands.pod:46
16403 msgid ""
16404 "Wildcards cannot be used in the ordinary command, but you can use them with "
16405 "the help of L</glob> like this:"
16406 msgstr ""
16407
16408 #. type: verbatim
16409 #: ../fish/guestfish-commands.pod:49
16410 #, no-wrap
16411 msgid ""
16412 " glob copy-out /home/* .\n"
16413 "\n"
16414 msgstr ""
16415 " glob copy-out /home/* .\n"
16416 "\n"
16417
16418 #. type: =head2
16419 #: ../fish/guestfish-commands.pod:51
16420 msgid "display"
16421 msgstr ""
16422
16423 #. type: verbatim
16424 #: ../fish/guestfish-commands.pod:53
16425 #, no-wrap
16426 msgid ""
16427 " display filename\n"
16428 "\n"
16429 msgstr ""
16430
16431 #. type: textblock
16432 #: ../fish/guestfish-commands.pod:55
16433 msgid ""
16434 "Use C<display> (a graphical display program) to display an image file.  It "
16435 "downloads the file, and runs C<display> on it."
16436 msgstr ""
16437
16438 #. type: textblock
16439 #: ../fish/guestfish-commands.pod:58
16440 msgid ""
16441 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16442 "environment variable.  For example to use the GNOME display program:"
16443 msgstr ""
16444
16445 #. type: verbatim
16446 #: ../fish/guestfish-commands.pod:61
16447 #, no-wrap
16448 msgid ""
16449 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16450 "\n"
16451 msgstr ""
16452
16453 #. type: textblock
16454 #: ../fish/guestfish-commands.pod:63
16455 msgid "See also L<display(1)>."
16456 msgstr ""
16457
16458 #. type: =head2
16459 #: ../fish/guestfish-commands.pod:65
16460 msgid "echo"
16461 msgstr "echo"
16462
16463 #. type: verbatim
16464 #: ../fish/guestfish-commands.pod:67
16465 #, no-wrap
16466 msgid ""
16467 " echo [params ...]\n"
16468 "\n"
16469 msgstr ""
16470 " echo [параметри...]\n"
16471 "\n"
16472
16473 #. type: textblock
16474 #: ../fish/guestfish-commands.pod:69
16475 msgid "This echos the parameters to the terminal."
16476 msgstr ""
16477
16478 #. type: =head2
16479 #: ../fish/guestfish-commands.pod:71
16480 msgid "edit"
16481 msgstr "edit"
16482
16483 #. type: =head2
16484 #: ../fish/guestfish-commands.pod:73
16485 msgid "vi"
16486 msgstr "vi"
16487
16488 #. type: =head2
16489 #: ../fish/guestfish-commands.pod:75
16490 msgid "emacs"
16491 msgstr "emacs"
16492
16493 #. type: verbatim
16494 #: ../fish/guestfish-commands.pod:77
16495 #, no-wrap
16496 msgid ""
16497 " edit filename\n"
16498 "\n"
16499 msgstr ""
16500 " edit назва_файла\n"
16501 "\n"
16502
16503 #. type: textblock
16504 #: ../fish/guestfish-commands.pod:79
16505 msgid ""
16506 "This is used to edit a file.  It downloads the file, edits it locally using "
16507 "your editor, then uploads the result."
16508 msgstr ""
16509
16510 #. type: textblock
16511 #: ../fish/guestfish-commands.pod:82
16512 msgid ""
16513 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16514 "or C<emacs> you will get those corresponding editors."
16515 msgstr ""
16516
16517 #. type: =head2
16518 #: ../fish/guestfish-commands.pod:86
16519 msgid "glob"
16520 msgstr "glob"
16521
16522 #. type: verbatim
16523 #: ../fish/guestfish-commands.pod:88
16524 #, no-wrap
16525 msgid ""
16526 " glob command args...\n"
16527 "\n"
16528 msgstr ""
16529 " glob команда параметри...\n"
16530 "\n"
16531
16532 #. type: textblock
16533 #: ../fish/guestfish-commands.pod:90
16534 msgid ""
16535 "Expand wildcards in any paths in the args list, and run C<command> "
16536 "repeatedly on each matching path."
16537 msgstr ""
16538
16539 #. type: textblock
16540 #: ../fish/guestfish-commands.pod:93
16541 msgid "See L</WILDCARDS AND GLOBBING>."
16542 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16543
16544 #. type: =head2
16545 #: ../fish/guestfish-commands.pod:95
16546 msgid "hexedit"
16547 msgstr "hexedit"
16548
16549 #. type: verbatim
16550 #: ../fish/guestfish-commands.pod:97
16551 #, no-wrap
16552 msgid ""
16553 " hexedit <filename|device>\n"
16554 " hexedit <filename|device> <max>\n"
16555 " hexedit <filename|device> <start> <max>\n"
16556 "\n"
16557 msgstr ""
16558
16559 #. type: textblock
16560 #: ../fish/guestfish-commands.pod:101
16561 msgid ""
16562 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16563 "device."
16564 msgstr ""
16565
16566 #. type: textblock
16567 #: ../fish/guestfish-commands.pod:104
16568 msgid ""
16569 "This command works by downloading potentially the whole file or device, "
16570 "editing it locally, then uploading it.  If the file or device is large, you "
16571 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16572 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16573 "usual modifiers allowed such as C<1M> (1 megabyte)."
16574 msgstr ""
16575
16576 #. type: textblock
16577 #: ../fish/guestfish-commands.pod:111
16578 msgid "For example to edit the first few sectors of a disk you might do:"
16579 msgstr ""
16580
16581 #. type: verbatim
16582 #: ../fish/guestfish-commands.pod:114
16583 #, no-wrap
16584 msgid ""
16585 " hexedit /dev/sda 1M\n"
16586 "\n"
16587 msgstr ""
16588 " hexedit /dev/sda 1M\n"
16589 "\n"
16590
16591 #. type: textblock
16592 #: ../fish/guestfish-commands.pod:116
16593 msgid ""
16594 "which would allow you to edit anywhere within the first megabyte of the disk."
16595 msgstr ""
16596
16597 #. type: textblock
16598 #: ../fish/guestfish-commands.pod:119
16599 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16600 msgstr ""
16601
16602 #. type: verbatim
16603 #: ../fish/guestfish-commands.pod:121
16604 #, no-wrap
16605 msgid ""
16606 " hexedit /dev/sda1 0x400 0x400\n"
16607 "\n"
16608 msgstr ""
16609 " hexedit /dev/sda1 0x400 0x400\n"
16610 "\n"
16611
16612 #. type: textblock
16613 #: ../fish/guestfish-commands.pod:123
16614 msgid "(assuming the superblock is in the standard location)."
16615 msgstr ""
16616
16617 #. type: textblock
16618 #: ../fish/guestfish-commands.pod:125
16619 msgid ""
16620 "This command requires the external L<hexedit(1)> program.  You can specify "
16621 "another program to use by setting the C<HEXEDITOR> environment variable."
16622 msgstr ""
16623
16624 #. type: textblock
16625 #: ../fish/guestfish-commands.pod:129
16626 msgid "See also L</hexdump>."
16627 msgstr "Див. також L</hexdump>."
16628
16629 #. type: =head2
16630 #: ../fish/guestfish-commands.pod:131
16631 msgid "lcd"
16632 msgstr "lcd"
16633
16634 #. type: verbatim
16635 #: ../fish/guestfish-commands.pod:133
16636 #, no-wrap
16637 msgid ""
16638 " lcd directory\n"
16639 "\n"
16640 msgstr ""
16641
16642 #. type: textblock
16643 #: ../fish/guestfish-commands.pod:135
16644 msgid ""
16645 "Change the local directory, ie. the current directory of guestfish itself."
16646 msgstr ""
16647
16648 #. type: textblock
16649 #: ../fish/guestfish-commands.pod:138
16650 msgid "Note that C<!cd> won't do what you might expect."
16651 msgstr ""
16652
16653 #. type: =head2
16654 #: ../fish/guestfish-commands.pod:140
16655 msgid "man"
16656 msgstr "man"
16657
16658 #. type: =head2
16659 #: ../fish/guestfish-commands.pod:142
16660 msgid "manual"
16661 msgstr ""
16662
16663 #. type: verbatim
16664 #: ../fish/guestfish-commands.pod:144
16665 #, no-wrap
16666 msgid ""
16667 "  man\n"
16668 "\n"
16669 msgstr ""
16670 "  man\n"
16671 "\n"
16672
16673 #. type: textblock
16674 #: ../fish/guestfish-commands.pod:146
16675 msgid "Opens the manual page for guestfish."
16676 msgstr ""
16677
16678 #. type: =head2
16679 #: ../fish/guestfish-commands.pod:148
16680 msgid "more"
16681 msgstr "more"
16682
16683 #. type: =head2
16684 #: ../fish/guestfish-commands.pod:150
16685 msgid "less"
16686 msgstr "less"
16687
16688 #. type: verbatim
16689 #: ../fish/guestfish-commands.pod:152
16690 #, no-wrap
16691 msgid ""
16692 " more filename\n"
16693 "\n"
16694 msgstr ""
16695
16696 #. type: verbatim
16697 #: ../fish/guestfish-commands.pod:154
16698 #, no-wrap
16699 msgid ""
16700 " less filename\n"
16701 "\n"
16702 msgstr ""
16703
16704 #. type: textblock
16705 #: ../fish/guestfish-commands.pod:156
16706 msgid "This is used to view a file."
16707 msgstr ""
16708
16709 #. type: textblock
16710 #: ../fish/guestfish-commands.pod:158
16711 msgid ""
16712 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16713 "C<less> you will get the C<less> command specifically."
16714 msgstr ""
16715
16716 #. type: =head2
16717 #: ../fish/guestfish-commands.pod:161
16718 msgid "reopen"
16719 msgstr "reopen"
16720
16721 #. type: verbatim
16722 #: ../fish/guestfish-commands.pod:163
16723 #, no-wrap
16724 msgid ""
16725 "  reopen\n"
16726 "\n"
16727 msgstr ""
16728
16729 #. type: textblock
16730 #: ../fish/guestfish-commands.pod:165
16731 msgid ""
16732 "Close and reopen the libguestfs handle.  It is not necessary to use this "
16733 "normally, because the handle is closed properly when guestfish exits.  "
16734 "However this is occasionally useful for testing."
16735 msgstr ""
16736
16737 #. type: =head2
16738 #: ../fish/guestfish-commands.pod:169
16739 msgid "setenv"
16740 msgstr ""
16741
16742 #. type: verbatim
16743 #: ../fish/guestfish-commands.pod:171
16744 #, no-wrap
16745 msgid ""
16746 "  setenv VAR value\n"
16747 "\n"
16748 msgstr ""
16749
16750 #. type: textblock
16751 #: ../fish/guestfish-commands.pod:173
16752 msgid "Set the environment variable C<VAR> to the string C<value>."
16753 msgstr ""
16754
16755 #. type: textblock
16756 #: ../fish/guestfish-commands.pod:175
16757 msgid ""
16758 "To print the value of an environment variable use a shell command such as:"
16759 msgstr ""
16760
16761 #. type: verbatim
16762 #: ../fish/guestfish-commands.pod:178
16763 #, no-wrap
16764 msgid ""
16765 " !echo $VAR\n"
16766 "\n"
16767 msgstr ""
16768
16769 #. type: =head2
16770 #: ../fish/guestfish-commands.pod:180
16771 msgid "sparse"
16772 msgstr "sparse"
16773
16774 #. type: verbatim
16775 #: ../fish/guestfish-commands.pod:182
16776 #, no-wrap
16777 msgid ""
16778 " sparse filename size\n"
16779 "\n"
16780 msgstr ""
16781
16782 #. type: textblock
16783 #: ../fish/guestfish-commands.pod:184
16784 msgid ""
16785 "This creates an empty sparse file of the given size, and then adds so it can "
16786 "be further examined."
16787 msgstr ""
16788
16789 #. type: textblock
16790 #: ../fish/guestfish-commands.pod:187
16791 msgid ""
16792 "In all respects it works the same as the L</alloc> command, except that the "
16793 "image file is allocated sparsely, which means that disk blocks are not "
16794 "assigned to the file until they are needed.  Sparse disk files only use "
16795 "space when written to, but they are slower and there is a danger you could "
16796 "run out of real disk space during a write operation."
16797 msgstr ""
16798
16799 #. type: =head2
16800 #: ../fish/guestfish-commands.pod:197
16801 msgid "supported"
16802 msgstr "supported"
16803
16804 #. type: verbatim
16805 #: ../fish/guestfish-commands.pod:199
16806 #, no-wrap
16807 msgid ""
16808 " supported\n"
16809 "\n"
16810 msgstr ""
16811 " supported\n"
16812 "\n"
16813
16814 #. type: textblock
16815 #: ../fish/guestfish-commands.pod:201
16816 msgid ""
16817 "This command returns a list of the optional groups known to the daemon, and "
16818 "indicates which ones are supported by this build of the libguestfs appliance."
16819 msgstr ""
16820
16821 #. type: textblock
16822 #: ../fish/guestfish-commands.pod:205
16823 msgid "See also L<guestfs(3)/AVAILABILITY>."
16824 msgstr ""
16825
16826 #. type: =head2
16827 #: ../fish/guestfish-commands.pod:207
16828 msgid "time"
16829 msgstr "time"
16830
16831 #. type: verbatim
16832 #: ../fish/guestfish-commands.pod:209
16833 #, no-wrap
16834 msgid ""
16835 " time command args...\n"
16836 "\n"
16837 msgstr ""
16838
16839 #. type: textblock
16840 #: ../fish/guestfish-commands.pod:211
16841 msgid ""
16842 "Run the command as usual, but print the elapsed time afterwards.  This can "
16843 "be useful for benchmarking operations."
16844 msgstr ""
16845
16846 #. type: =head2
16847 #: ../fish/guestfish-commands.pod:214
16848 msgid "unsetenv"
16849 msgstr ""
16850
16851 #. type: verbatim
16852 #: ../fish/guestfish-commands.pod:216
16853 #, no-wrap
16854 msgid ""
16855 "  unsetenv VAR\n"
16856 "\n"
16857 msgstr ""
16858
16859 #. type: textblock
16860 #: ../fish/guestfish-commands.pod:218
16861 msgid "Remove C<VAR> from the environment."
16862 msgstr ""
16863
16864 #. type: textblock
16865 #: ../fish/guestfish.pod:5
16866 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16867 msgstr ""
16868
16869 #. type: verbatim
16870 #: ../fish/guestfish.pod:9
16871 #, no-wrap
16872 msgid ""
16873 " guestfish [--options] [commands]\n"
16874 "\n"
16875 msgstr ""
16876
16877 #. type: verbatim
16878 #: ../fish/guestfish.pod:11
16879 #, no-wrap
16880 msgid ""
16881 " guestfish\n"
16882 "\n"
16883 msgstr ""
16884
16885 #. type: verbatim
16886 #: ../fish/guestfish.pod:13
16887 #, no-wrap
16888 msgid ""
16889 " guestfish [--ro|--rw] -a disk.img\n"
16890 "\n"
16891 msgstr ""
16892
16893 #. type: verbatim
16894 #: ../fish/guestfish.pod:15
16895 #, no-wrap
16896 msgid ""
16897 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16898 "\n"
16899 msgstr ""
16900
16901 #. type: verbatim
16902 #: ../fish/guestfish.pod:17
16903 #, no-wrap
16904 msgid ""
16905 " guestfish -d libvirt-domain\n"
16906 "\n"
16907 msgstr ""
16908
16909 #. type: verbatim
16910 #: ../fish/guestfish.pod:19
16911 #, no-wrap
16912 msgid ""
16913 " guestfish [--ro|--rw] -a disk.img -i\n"
16914 "\n"
16915 msgstr ""
16916
16917 #. type: verbatim
16918 #: ../fish/guestfish.pod:21
16919 #, no-wrap
16920 msgid ""
16921 " guestfish -d libvirt-domain -i\n"
16922 "\n"
16923 msgstr ""
16924
16925 #. type: textblock
16926 #: ../fish/guestfish.pod:25
16927 msgid ""
16928 "Using guestfish in read/write mode on live virtual machines can be "
16929 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16930 "option to use guestfish safely if the disk image or virtual machine might be "
16931 "live."
16932 msgstr ""
16933
16934 #. type: textblock
16935 #: ../fish/guestfish.pod:32
16936 msgid ""
16937 "Guestfish is a shell and command-line tool for examining and modifying "
16938 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16939 "functionality of the guestfs API, see L<guestfs(3)>."
16940 msgstr ""
16941
16942 #. type: textblock
16943 #: ../fish/guestfish.pod:36
16944 msgid ""
16945 "Guestfish gives you structured access to the libguestfs API, from shell "
16946 "scripts or the command line or interactively.  If you want to rescue a "
16947 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16948 "command."
16949 msgstr ""
16950
16951 #. type: =head2
16952 #: ../fish/guestfish.pod:43
16953 msgid "As an interactive shell"
16954 msgstr ""
16955
16956 #. type: verbatim
16957 #: ../fish/guestfish.pod:45
16958 #, no-wrap
16959 msgid ""
16960 " $ guestfish\n"
16961 " \n"
16962 msgstr ""
16963
16964 #. type: verbatim
16965 #: ../fish/guestfish.pod:47
16966 #, no-wrap
16967 msgid ""
16968 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16969 " editing virtual machine filesystems.\n"
16970 " \n"
16971 msgstr ""
16972
16973 #. type: verbatim
16974 #: ../fish/guestfish.pod:50
16975 #, no-wrap
16976 msgid ""
16977 " Type: 'help' for a list of commands\n"
16978 "       'man' to read the manual\n"
16979 "       'quit' to quit the shell\n"
16980 " \n"
16981 msgstr ""
16982
16983 #. type: verbatim
16984 #: ../fish/guestfish.pod:54
16985 #, no-wrap
16986 msgid ""
16987 " ><fs> add-ro disk.img\n"
16988 " ><fs> run\n"
16989 " ><fs> list-filesystems\n"
16990 " /dev/sda1: ext4\n"
16991 " /dev/vg_guest/lv_root: ext4\n"
16992 " /dev/vg_guest/lv_swap: swap\n"
16993 " ><fs> mount /dev/vg_guest/lv_root /\n"
16994 " ><fs> cat /etc/fstab\n"
16995 " # /etc/fstab\n"
16996 " # Created by anaconda\n"
16997 " [...]\n"
16998 " ><fs> exit\n"
16999 "\n"
17000 msgstr ""
17001
17002 #. type: =head2
17003 #: ../fish/guestfish.pod:67
17004 msgid "From shell scripts"
17005 msgstr ""
17006
17007 #. type: textblock
17008 #: ../fish/guestfish.pod:69
17009 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17010 msgstr ""
17011
17012 #. type: verbatim
17013 #: ../fish/guestfish.pod:71
17014 #, no-wrap
17015 msgid ""
17016 " guestfish <<_EOF_\n"
17017 " add disk.img\n"
17018 " run\n"
17019 " mount /dev/vg_guest/lv_root /\n"
17020 " write /etc/motd \"Welcome, new users\"\n"
17021 " _EOF_\n"
17022 "\n"
17023 msgstr ""
17024
17025 #. type: textblock
17026 #: ../fish/guestfish.pod:78
17027 msgid "List the LVM logical volumes in a disk image:"
17028 msgstr ""
17029
17030 #. type: verbatim
17031 #: ../fish/guestfish.pod:80
17032 #, no-wrap
17033 msgid ""
17034 " guestfish -a disk.img --ro <<_EOF_\n"
17035 " run\n"
17036 " lvs\n"
17037 " _EOF_\n"
17038 "\n"
17039 msgstr ""
17040
17041 #. type: textblock
17042 #: ../fish/guestfish.pod:85
17043 msgid "List all the filesystems in a disk image:"
17044 msgstr ""
17045
17046 #. type: verbatim
17047 #: ../fish/guestfish.pod:87
17048 #, no-wrap
17049 msgid ""
17050 " guestfish -a disk.img --ro <<_EOF_\n"
17051 " run\n"
17052 " list-filesystems\n"
17053 " _EOF_\n"
17054 "\n"
17055 msgstr ""
17056
17057 #. type: =head2
17058 #: ../fish/guestfish.pod:92
17059 msgid "On one command line"
17060 msgstr ""
17061
17062 #. type: textblock
17063 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17064 msgid "Update C</etc/resolv.conf> in a guest:"
17065 msgstr ""
17066
17067 #. type: verbatim
17068 #: ../fish/guestfish.pod:96
17069 #, no-wrap
17070 msgid ""
17071 " guestfish \\\n"
17072 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17073 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17074 "\n"
17075 msgstr ""
17076
17077 #. type: textblock
17078 #: ../fish/guestfish.pod:100
17079 msgid "Edit C</boot/grub/grub.conf> interactively:"
17080 msgstr ""
17081
17082 #. type: verbatim
17083 #: ../fish/guestfish.pod:102
17084 #, no-wrap
17085 msgid ""
17086 " guestfish --rw --add disk.img \\\n"
17087 "   --mount /dev/vg_guest/lv_root \\\n"
17088 "   --mount /dev/sda1:/boot \\\n"
17089 "   edit /boot/grub/grub.conf\n"
17090 "\n"
17091 msgstr ""
17092
17093 #. type: =head2
17094 #: ../fish/guestfish.pod:107
17095 msgid "Mount disks automatically"
17096 msgstr ""
17097
17098 #. type: textblock
17099 #: ../fish/guestfish.pod:109
17100 msgid ""
17101 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17102 msgstr ""
17103
17104 #. type: verbatim
17105 #: ../fish/guestfish.pod:112
17106 #, no-wrap
17107 msgid ""
17108 " guestfish --ro -a disk.img -i cat /etc/group\n"
17109 "\n"
17110 msgstr ""
17111
17112 #. type: verbatim
17113 #: ../fish/guestfish.pod:114
17114 #, no-wrap
17115 msgid ""
17116 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17117 "\n"
17118 msgstr ""
17119
17120 #. type: textblock
17121 #: ../fish/guestfish.pod:116
17122 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17123 msgstr ""
17124
17125 #. type: verbatim
17126 #: ../fish/guestfish.pod:118
17127 #, no-wrap
17128 msgid ""
17129 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17130 "\n"
17131 msgstr ""
17132
17133 #. type: =head2
17134 #: ../fish/guestfish.pod:120
17135 msgid "As a script interpreter"
17136 msgstr ""
17137
17138 #. type: textblock
17139 #: ../fish/guestfish.pod:122
17140 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17141 msgstr ""
17142
17143 #. type: verbatim
17144 #: ../fish/guestfish.pod:124
17145 #, no-wrap
17146 msgid ""
17147 " #!/usr/bin/guestfish -f\n"
17148 " sparse test1.img 100M\n"
17149 " run\n"
17150 " part-disk /dev/sda mbr\n"
17151 " mkfs ext2 /dev/sda1\n"
17152 "\n"
17153 msgstr ""
17154
17155 #. type: =head2
17156 #: ../fish/guestfish.pod:130
17157 msgid "Start with a prepared disk"
17158 msgstr ""
17159
17160 #. type: textblock
17161 #: ../fish/guestfish.pod:132
17162 msgid ""
17163 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17164 "single ext2-formatted partition:"
17165 msgstr ""
17166
17167 #. type: verbatim
17168 #: ../fish/guestfish.pod:135
17169 #, no-wrap
17170 msgid ""
17171 " guestfish -N fs\n"
17172 "\n"
17173 msgstr ""
17174
17175 #. type: textblock
17176 #: ../fish/guestfish.pod:137
17177 msgid "To list what is available do:"
17178 msgstr ""
17179
17180 #. type: verbatim
17181 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17182 #, no-wrap
17183 msgid ""
17184 " guestfish -N help | less\n"
17185 "\n"
17186 msgstr ""
17187
17188 #. type: =head2
17189 #: ../fish/guestfish.pod:141
17190 msgid "Remote control"
17191 msgstr "Дистанційне керування"
17192
17193 #. type: verbatim
17194 #: ../fish/guestfish.pod:143
17195 #, no-wrap
17196 msgid ""
17197 " eval \"`guestfish --listen`\"\n"
17198 " guestfish --remote add-ro disk.img\n"
17199 " guestfish --remote run\n"
17200 " guestfish --remote lvs\n"
17201 "\n"
17202 msgstr ""
17203 " eval \"`guestfish --listen`\"\n"
17204 " guestfish --remote add-ro disk.img\n"
17205 " guestfish --remote run\n"
17206 " guestfish --remote lvs\n"
17207 "\n"
17208
17209 #. type: textblock
17210 #: ../fish/guestfish.pod:154
17211 msgid "Displays general help on options."
17212 msgstr ""
17213
17214 #. type: =item
17215 #: ../fish/guestfish.pod:158
17216 msgid "B<--cmd-help>"
17217 msgstr "B<--cmd-help>"
17218
17219 #. type: textblock
17220 #: ../fish/guestfish.pod:160
17221 msgid "Lists all available guestfish commands."
17222 msgstr ""
17223
17224 #. type: =item
17225 #: ../fish/guestfish.pod:162
17226 msgid "B<-h cmd>"
17227 msgstr "B<-h команда>"
17228
17229 #. type: =item
17230 #: ../fish/guestfish.pod:164
17231 msgid "B<--cmd-help cmd>"
17232 msgstr "B<--cmd-help команда>"
17233
17234 #. type: textblock
17235 #: ../fish/guestfish.pod:166
17236 msgid "Displays detailed help on a single command C<cmd>."
17237 msgstr ""
17238
17239 #. type: =item
17240 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17241 msgid "B<-a image>"
17242 msgstr "B<-a образ>"
17243
17244 #. type: =item
17245 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17246 msgid "B<--add image>"
17247 msgstr "B<--add образ>"
17248
17249 #. type: textblock
17250 #: ../fish/guestfish.pod:172
17251 msgid "Add a block device or virtual machine image to the shell."
17252 msgstr ""
17253
17254 #. type: textblock
17255 #: ../fish/guestfish.pod:177
17256 msgid ""
17257 "Using this flag is mostly equivalent to using the C<add> command, with "
17258 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17259 "the I<--format=...> flag was given."
17260 msgstr ""
17261
17262 #. type: textblock
17263 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17264 msgid ""
17265 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17266 "URI to use.  The default is to use the default libvirt connection."
17267 msgstr ""
17268
17269 #. type: =item
17270 #: ../fish/guestfish.pod:189
17271 msgid "B<--csh>"
17272 msgstr "B<--csh>"
17273
17274 #. type: textblock
17275 #: ../fish/guestfish.pod:191
17276 msgid ""
17277 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17278 "section L</REMOTE CONTROL AND CSH> below."
17279 msgstr ""
17280
17281 #. type: =item
17282 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17283 msgid "B<-d libvirt-domain>"
17284 msgstr "B<-d домен-libvirt>"
17285
17286 #. type: =item
17287 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17288 msgid "B<--domain libvirt-domain>"
17289 msgstr "B<--domain домен-libvirt>"
17290
17291 #. type: textblock
17292 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17293 msgid ""
17294 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17295 "used, then any libvirt domain can be used.  However in write mode, only "
17296 "libvirt domains which are shut down can be named here."
17297 msgstr ""
17298
17299 #. type: textblock
17300 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17301 msgid "Domain UUIDs can be used instead of names."
17302 msgstr ""
17303
17304 #. type: textblock
17305 #: ../fish/guestfish.pod:204
17306 msgid ""
17307 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17308 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17309 "if the I<--format:...> flag was given."
17310 msgstr ""
17311
17312 #. type: =item
17313 #: ../fish/guestfish.pod:208
17314 msgid "B<-D>"
17315 msgstr "B<-D>"
17316
17317 #. type: =item
17318 #: ../fish/guestfish.pod:210
17319 msgid "B<--no-dest-paths>"
17320 msgstr "B<--no-dest-paths>"
17321
17322 #. type: textblock
17323 #: ../fish/guestfish.pod:212
17324 msgid ""
17325 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17326 "to hit the tab key to complete paths on the guest filesystem, but this "
17327 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17328 "allow this feature to be disabled."
17329 msgstr ""
17330
17331 #. type: textblock
17332 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17333 msgid ""
17334 "When prompting for keys and passphrases, guestfish normally turns echoing "
17335 "off so you cannot see what you are typing.  If you are not worried about "
17336 "Tempest attacks and there is no one else in the room you can specify this "
17337 "flag to see what you are typing."
17338 msgstr ""
17339
17340 #. type: =item
17341 #: ../fish/guestfish.pod:224
17342 msgid "B<-f file>"
17343 msgstr "B<-f файл>"
17344
17345 #. type: =item
17346 #: ../fish/guestfish.pod:226
17347 msgid "B<--file file>"
17348 msgstr "B<--file файл>"
17349
17350 #. type: textblock
17351 #: ../fish/guestfish.pod:228
17352 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17353 msgstr ""
17354
17355 #. type: verbatim
17356 #: ../fish/guestfish.pod:231
17357 #, no-wrap
17358 msgid ""
17359 " #!/usr/bin/guestfish -f\n"
17360 "\n"
17361 msgstr ""
17362 " #!/usr/bin/guestfish -f\n"
17363 "\n"
17364
17365 #. type: verbatim
17366 #: ../fish/guestfish.pod:244
17367 #, no-wrap
17368 msgid ""
17369 " guestfish --format=raw -a disk.img\n"
17370 "\n"
17371 msgstr ""
17372 " guestfish --format=raw -a disk.img\n"
17373 "\n"
17374
17375 #. type: verbatim
17376 #: ../fish/guestfish.pod:248
17377 #, no-wrap
17378 msgid ""
17379 " guestfish --format=raw -a disk.img --format -a another.img\n"
17380 "\n"
17381 msgstr ""
17382 " guestfish --format=raw -a disk.img --format -a another.img\n"
17383 "\n"
17384
17385 #. type: textblock
17386 #: ../fish/guestfish.pod:253
17387 msgid ""
17388 "If you have untrusted raw-format guest disk images, you should use this "
17389 "option to specify the disk format.  This avoids a possible security problem "
17390 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17391 msgstr ""
17392
17393 #. type: =item
17394 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17395 msgid "B<--inspector>"
17396 msgstr "B<--inspector>"
17397
17398 #. type: textblock
17399 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17400 msgid ""
17401 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17402 "system and mount filesystems as they would be mounted on the real virtual "
17403 "machine."
17404 msgstr ""
17405
17406 #. type: textblock
17407 #: ../fish/guestfish.pod:266
17408 msgid "Typical usage is either:"
17409 msgstr ""
17410
17411 #. type: verbatim
17412 #: ../fish/guestfish.pod:268
17413 #, no-wrap
17414 msgid ""
17415 " guestfish -d myguest -i\n"
17416 "\n"
17417 msgstr ""
17418 " guestfish -d myguest -i\n"
17419 "\n"
17420
17421 #. type: textblock
17422 #: ../fish/guestfish.pod:270
17423 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17424 msgstr ""
17425
17426 #. type: verbatim
17427 #: ../fish/guestfish.pod:272
17428 #, no-wrap
17429 msgid ""
17430 " guestfish --ro -d myguest -i\n"
17431 "\n"
17432 msgstr ""
17433 " guestfish --ro -d myguest -i\n"
17434 "\n"
17435
17436 #. type: textblock
17437 #: ../fish/guestfish.pod:274
17438 msgid "(for active domains, readonly), or specify the block device directly:"
17439 msgstr ""
17440
17441 #. type: verbatim
17442 #: ../fish/guestfish.pod:276
17443 #, no-wrap
17444 msgid ""
17445 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17446 "\n"
17447 msgstr ""
17448 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17449 "\n"
17450
17451 #. type: textblock
17452 #: ../fish/guestfish.pod:278
17453 msgid ""
17454 "Note that the command line syntax changed slightly over older versions of "
17455 "guestfish.  You can still use the old syntax:"
17456 msgstr ""
17457
17458 #. type: verbatim
17459 #: ../fish/guestfish.pod:281
17460 #, no-wrap
17461 msgid ""
17462 " guestfish [--ro] -i disk.img\n"
17463 "\n"
17464 msgstr ""
17465 " guestfish [--ro] -i disk.img\n"
17466 "\n"
17467
17468 #. type: verbatim
17469 #: ../fish/guestfish.pod:283
17470 #, no-wrap
17471 msgid ""
17472 " guestfish [--ro] -i libvirt-domain\n"
17473 "\n"
17474 msgstr ""
17475
17476 #. type: textblock
17477 #: ../fish/guestfish.pod:285
17478 msgid ""
17479 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17480 "then using other commands to mount the filesystems that were found."
17481 msgstr ""
17482
17483 #. type: =item
17484 #: ../fish/guestfish.pod:294
17485 msgid "B<--listen>"
17486 msgstr "B<--listen>"
17487
17488 #. type: textblock
17489 #: ../fish/guestfish.pod:296
17490 msgid ""
17491 "Fork into the background and listen for remote commands.  See section L</"
17492 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17493 msgstr ""
17494
17495 #. type: =item
17496 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17497 msgid "B<--live>"
17498 msgstr "B<--live>"
17499
17500 #. type: textblock
17501 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17502 msgid ""
17503 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
17504 "ATTACHING TO RUNNING DAEMONS>)."
17505 msgstr ""
17506
17507 #. type: =item
17508 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17509 msgid "B<-m dev[:mountpoint[:options]]>"
17510 msgstr ""
17511
17512 #. type: =item
17513 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17514 msgid "B<--mount dev[:mountpoint[:options]]>"
17515 msgstr ""
17516
17517 #. type: textblock
17518 #: ../fish/guestfish.pod:308
17519 msgid "Mount the named partition or logical volume on the given mountpoint."
17520 msgstr ""
17521
17522 #. type: textblock
17523 #: ../fish/guestfish.pod:310
17524 msgid "If the mountpoint is omitted, it defaults to C</>."
17525 msgstr ""
17526
17527 #. type: textblock
17528 #: ../fish/guestfish.pod:312
17529 msgid "You have to mount something on C</> before most commands will work."
17530 msgstr ""
17531
17532 #. type: textblock
17533 #: ../fish/guestfish.pod:314
17534 msgid ""
17535 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17536 "launched."
17537 msgstr ""
17538
17539 #. type: textblock
17540 #: ../fish/guestfish.pod:317
17541 msgid ""
17542 "If you don't know what filesystems a disk image contains, you can either run "
17543 "guestfish without this option, then list the partitions, filesystems and LVs "
17544 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17545 "commands), or you can use the L<virt-filesystems(1)> program."
17546 msgstr ""
17547
17548 #. type: textblock
17549 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17550 msgid ""
17551 "The third (and rarely used) part of the mount parameter is the list of mount "
17552 "options used to mount the underlying filesystem.  If this is not given, then "
17553 "the mount options are either the empty string or C<ro> (the latter if the "
17554 "I<--ro> flag is used).  By specifying the mount options, you override this "
17555 "default choice.  Probably the only time you would use this is to enable ACLs "
17556 "and/or extended attributes if the filesystem can support them:"
17557 msgstr ""
17558
17559 #. type: verbatim
17560 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17561 #, no-wrap
17562 msgid ""
17563 " -m /dev/sda1:/:acl,user_xattr\n"
17564 "\n"
17565 msgstr ""
17566
17567 #. type: textblock
17568 #: ../fish/guestfish.pod:333
17569 msgid "Using this flag is equivalent to using the C<mount-options> command."
17570 msgstr ""
17571
17572 #. type: =item
17573 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17574 #: ../resize/virt-resize.pod:352
17575 msgid "B<-n>"
17576 msgstr "B<-n>"
17577
17578 #. type: =item
17579 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17580 msgid "B<--no-sync>"
17581 msgstr "B<--no-sync>"
17582
17583 #. type: textblock
17584 #: ../fish/guestfish.pod:339
17585 msgid ""
17586 "Disable autosync.  This is enabled by default.  See the discussion of "
17587 "autosync in the L<guestfs(3)> manpage."
17588 msgstr ""
17589
17590 #. type: =item
17591 #: ../fish/guestfish.pod:342
17592 msgid "B<-N type>"
17593 msgstr "B<-N тип>"
17594
17595 #. type: =item
17596 #: ../fish/guestfish.pod:344
17597 msgid "B<--new type>"
17598 msgstr "B<--new тип>"
17599
17600 #. type: =item
17601 #: ../fish/guestfish.pod:346
17602 msgid "B<-N help>"
17603 msgstr "B<-N help>"
17604
17605 #. type: textblock
17606 #: ../fish/guestfish.pod:348
17607 msgid ""
17608 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17609 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17610 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17611 "IMAGES> below."
17612 msgstr ""
17613
17614 #. type: =item
17615 #: ../fish/guestfish.pod:353
17616 msgid "B<--progress-bars>"
17617 msgstr "B<--progress-bars>"
17618
17619 #. type: textblock
17620 #: ../fish/guestfish.pod:355
17621 msgid "Enable progress bars, even when guestfish is used non-interactively."
17622 msgstr ""
17623
17624 #. type: textblock
17625 #: ../fish/guestfish.pod:357
17626 msgid ""
17627 "Progress bars are enabled by default when guestfish is used as an "
17628 "interactive shell."
17629 msgstr ""
17630
17631 #. type: =item
17632 #: ../fish/guestfish.pod:360
17633 msgid "B<--no-progress-bars>"
17634 msgstr "B<--no-progress-bars>"
17635
17636 #. type: textblock
17637 #: ../fish/guestfish.pod:362
17638 msgid "Disable progress bars."
17639 msgstr ""
17640
17641 #. type: =item
17642 #: ../fish/guestfish.pod:364
17643 msgid "B<--remote[=pid]>"
17644 msgstr "B<--remote[=pid]>"
17645
17646 #. type: textblock
17647 #: ../fish/guestfish.pod:366
17648 msgid ""
17649 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17650 "CONTROL GUESTFISH OVER A SOCKET> below."
17651 msgstr ""
17652
17653 #. type: =item
17654 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17655 #: ../rescue/virt-rescue.pod:161
17656 msgid "B<-r>"
17657 msgstr "B<-r>"
17658
17659 #. type: =item
17660 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17661 #: ../rescue/virt-rescue.pod:163
17662 msgid "B<--ro>"
17663 msgstr "B<--ro>"
17664
17665 #. type: textblock
17666 #: ../fish/guestfish.pod:373
17667 msgid ""
17668 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17669 "mounts are done read-only."
17670 msgstr ""
17671
17672 #. type: textblock
17673 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17674 msgid ""
17675 "The option must always be used if the disk image or virtual machine might be "
17676 "running, and is generally recommended in cases where you don't need write "
17677 "access to the disk."
17678 msgstr ""
17679
17680 #. type: textblock
17681 #: ../fish/guestfish.pod:380
17682 msgid ""
17683 "Note that prepared disk images created with I<-N> are not affected by this "
17684 "option.  Also commands like C<add> are not affected - you have to specify "
17685 "the C<readonly:true> option explicitly if you need it."
17686 msgstr ""
17687
17688 #. type: textblock
17689 #: ../fish/guestfish.pod:384
17690 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17691 msgstr ""
17692
17693 #. type: =item
17694 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17695 #: ../rescue/virt-rescue.pod:173
17696 msgid "B<--selinux>"
17697 msgstr "B<--selinux>"
17698
17699 #. type: textblock
17700 #: ../fish/guestfish.pod:388
17701 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17702 msgstr ""
17703
17704 #. type: textblock
17705 #: ../fish/guestfish.pod:394
17706 msgid ""
17707 "Enable very verbose messages.  This is particularly useful if you find a bug."
17708 msgstr ""
17709
17710 #. type: textblock
17711 #: ../fish/guestfish.pod:401
17712 msgid "Display the guestfish / libguestfs version number and exit."
17713 msgstr ""
17714
17715 #. type: =item
17716 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
17717 #: ../rescue/virt-rescue.pod:190
17718 msgid "B<-w>"
17719 msgstr "B<-w>"
17720
17721 #. type: =item
17722 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
17723 #: ../rescue/virt-rescue.pod:192
17724 msgid "B<--rw>"
17725 msgstr "B<--rw>"
17726
17727 #. type: textblock
17728 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17729 msgid ""
17730 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17731 "mounts are done read-write."
17732 msgstr ""
17733
17734 #. type: textblock
17735 #: ../fish/guestfish.pod:410
17736 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17737 msgstr ""
17738
17739 #. type: textblock
17740 #: ../fish/guestfish.pod:414
17741 msgid "Echo each command before executing it."
17742 msgstr ""
17743
17744 #. type: =head1
17745 #: ../fish/guestfish.pod:418
17746 msgid "COMMANDS ON COMMAND LINE"
17747 msgstr ""
17748
17749 #. type: textblock
17750 #: ../fish/guestfish.pod:420
17751 msgid ""
17752 "Any additional (non-option) arguments are treated as commands to execute."
17753 msgstr ""
17754
17755 #. type: textblock
17756 #: ../fish/guestfish.pod:423
17757 msgid ""
17758 "Commands to execute should be separated by a colon (C<:>), where the colon "
17759 "is a separate parameter.  Thus:"
17760 msgstr ""
17761
17762 #. type: verbatim
17763 #: ../fish/guestfish.pod:426
17764 #, no-wrap
17765 msgid ""
17766 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17767 "\n"
17768 msgstr ""
17769
17770 #. type: textblock
17771 #: ../fish/guestfish.pod:428
17772 msgid ""
17773 "If there are no additional arguments, then we enter a shell, either an "
17774 "interactive shell with a prompt (if the input is a terminal) or a non-"
17775 "interactive shell."
17776 msgstr ""
17777
17778 #. type: textblock
17779 #: ../fish/guestfish.pod:432
17780 msgid ""
17781 "In either command line mode or non-interactive shell, the first command that "
17782 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17783 "prompt) if a command fails, you can continue to enter commands."
17784 msgstr ""
17785
17786 #. type: =head1
17787 #: ../fish/guestfish.pod:437
17788 msgid "USING launch (OR run)"
17789 msgstr ""
17790
17791 #. type: textblock
17792 #: ../fish/guestfish.pod:439
17793 msgid ""
17794 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17795 "then launch it, then mount any disks you need, and finally issue actions/"
17796 "commands.  So the general order of the day is:"
17797 msgstr ""
17798
17799 #. type: textblock
17800 #: ../fish/guestfish.pod:447
17801 msgid "add or -a/--add"
17802 msgstr ""
17803
17804 #. type: textblock
17805 #: ../fish/guestfish.pod:451
17806 msgid "launch (aka run)"
17807 msgstr ""
17808
17809 #. type: textblock
17810 #: ../fish/guestfish.pod:455
17811 msgid "mount or -m/--mount"
17812 msgstr ""
17813
17814 #. type: textblock
17815 #: ../fish/guestfish.pod:459
17816 msgid "any other commands"
17817 msgstr ""
17818
17819 #. type: textblock
17820 #: ../fish/guestfish.pod:463
17821 msgid ""
17822 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17823 "guest before mounting or performing any other commands."
17824 msgstr ""
17825
17826 #. type: textblock
17827 #: ../fish/guestfish.pod:466
17828 msgid ""
17829 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17830 "I<--new> options were given then C<run> is done automatically, simply "
17831 "because guestfish can't perform the action you asked for without doing this."
17832 msgstr ""
17833
17834 #. type: =head1
17835 #: ../fish/guestfish.pod:471
17836 msgid "OPENING DISKS FOR READ AND WRITE"
17837 msgstr ""
17838
17839 #. type: textblock
17840 #: ../fish/guestfish.pod:473
17841 msgid ""
17842 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17843 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17844 "I<-i> and I<-m> open disk images read-only or for writing."
17845 msgstr ""
17846
17847 #. type: textblock
17848 #: ../fish/guestfish.pod:478
17849 msgid ""
17850 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17851 "opening disk images supplied on the command line for write.  To open a disk "
17852 "image read-only you have to do I<-a image --ro>."
17853 msgstr ""
17854
17855 #. type: textblock
17856 #: ../fish/guestfish.pod:482
17857 msgid ""
17858 "This matters: If you accidentally open a live VM disk image writable then "
17859 "you will cause irreversible disk corruption."
17860 msgstr ""
17861
17862 #. type: textblock
17863 #: ../fish/guestfish.pod:485
17864 msgid ""
17865 "In a future libguestfs we intend to change the default the other way.  Disk "
17866 "images will be opened read-only.  You will have to either specify "
17867 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17868 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17869 "access for disk images specified by those other command line options."
17870 msgstr ""
17871
17872 #. type: textblock
17873 #: ../fish/guestfish.pod:492
17874 msgid ""
17875 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17876 "which does nothing (it is already the default).  However it is highly "
17877 "recommended that you use this option to indicate that you need write access, "
17878 "and prepare your scripts for the day when this option will be required for "
17879 "write access."
17880 msgstr ""
17881
17882 #. type: textblock
17883 #: ../fish/guestfish.pod:498
17884 msgid ""
17885 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17886 "other libguestfs program apart from guestfish and guestmount."
17887 msgstr ""
17888
17889 #. type: =head1
17890 #: ../fish/guestfish.pod:501
17891 msgid "QUOTING"
17892 msgstr ""
17893
17894 #. type: textblock
17895 #: ../fish/guestfish.pod:503
17896 msgid ""
17897 "You can quote ordinary parameters using either single or double quotes.  For "
17898 "example:"
17899 msgstr ""
17900
17901 #. type: verbatim
17902 #: ../fish/guestfish.pod:506
17903 #, no-wrap
17904 msgid ""
17905 " add \"file with a space.img\"\n"
17906 "\n"
17907 msgstr ""
17908
17909 #. type: verbatim
17910 #: ../fish/guestfish.pod:508
17911 #, no-wrap
17912 msgid ""
17913 " rm '/file name'\n"
17914 "\n"
17915 msgstr ""
17916
17917 #. type: verbatim
17918 #: ../fish/guestfish.pod:510
17919 #, no-wrap
17920 msgid ""
17921 " rm '/\"'\n"
17922 "\n"
17923 msgstr ""
17924
17925 #. type: textblock
17926 #: ../fish/guestfish.pod:512
17927 msgid ""
17928 "A few commands require a list of strings to be passed.  For these, use a "
17929 "whitespace-separated list, enclosed in quotes.  Strings containing "
17930 "whitespace to be passed through must be enclosed in single quotes.  A "
17931 "literal single quote must be escaped with a backslash."
17932 msgstr ""
17933
17934 #. type: verbatim
17935 #: ../fish/guestfish.pod:517
17936 #, no-wrap
17937 msgid ""
17938 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17939 " command \"/bin/echo 'foo      bar'\"\n"
17940 " command \"/bin/echo \\'foo\\'\"\n"
17941 "\n"
17942 msgstr ""
17943
17944 #. type: =head2
17945 #: ../fish/guestfish.pod:521
17946 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17947 msgstr ""
17948
17949 #. type: textblock
17950 #: ../fish/guestfish.pod:523
17951 msgid ""
17952 "In double-quoted arguments (only) use backslash to insert special characters:"
17953 msgstr ""
17954
17955 #. type: =item
17956 #: ../fish/guestfish.pod:528
17957 msgid "C<\\a>"
17958 msgstr ""
17959
17960 #. type: textblock
17961 #: ../fish/guestfish.pod:530
17962 msgid "Alert (bell) character."
17963 msgstr ""
17964
17965 #. type: =item
17966 #: ../fish/guestfish.pod:532
17967 msgid "C<\\b>"
17968 msgstr ""
17969
17970 #. type: textblock
17971 #: ../fish/guestfish.pod:534
17972 msgid "Backspace character."
17973 msgstr ""
17974
17975 #. type: =item
17976 #: ../fish/guestfish.pod:536
17977 msgid "C<\\f>"
17978 msgstr ""
17979
17980 #. type: textblock
17981 #: ../fish/guestfish.pod:538
17982 msgid "Form feed character."
17983 msgstr ""
17984
17985 #. type: =item
17986 #: ../fish/guestfish.pod:540
17987 msgid "C<\\n>"
17988 msgstr ""
17989
17990 #. type: textblock
17991 #: ../fish/guestfish.pod:542
17992 msgid "Newline character."
17993 msgstr ""
17994
17995 #. type: =item
17996 #: ../fish/guestfish.pod:544
17997 msgid "C<\\r>"
17998 msgstr ""
17999
18000 #. type: textblock
18001 #: ../fish/guestfish.pod:546
18002 msgid "Carriage return character."
18003 msgstr ""
18004
18005 #. type: =item
18006 #: ../fish/guestfish.pod:548
18007 msgid "C<\\t>"
18008 msgstr ""
18009
18010 #. type: textblock
18011 #: ../fish/guestfish.pod:550
18012 msgid "Horizontal tab character."
18013 msgstr ""
18014
18015 #. type: =item
18016 #: ../fish/guestfish.pod:552
18017 msgid "C<\\v>"
18018 msgstr ""
18019
18020 #. type: textblock
18021 #: ../fish/guestfish.pod:554
18022 msgid "Vertical tab character."
18023 msgstr ""
18024
18025 #. type: =item
18026 #: ../fish/guestfish.pod:556
18027 msgid "C<\\\">"
18028 msgstr ""
18029
18030 #. type: textblock
18031 #: ../fish/guestfish.pod:558
18032 msgid "A literal double quote character."
18033 msgstr ""
18034
18035 #. type: =item
18036 #: ../fish/guestfish.pod:560
18037 msgid "C<\\ooo>"
18038 msgstr ""
18039
18040 #. type: textblock
18041 #: ../fish/guestfish.pod:562
18042 msgid ""
18043 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18044 "(unlike C)."
18045 msgstr ""
18046
18047 #. type: =item
18048 #: ../fish/guestfish.pod:565
18049 msgid "C<\\xhh>"
18050 msgstr ""
18051
18052 #. type: textblock
18053 #: ../fish/guestfish.pod:567
18054 msgid ""
18055 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18056 msgstr ""
18057
18058 #. type: textblock
18059 #: ../fish/guestfish.pod:570
18060 msgid ""
18061 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18062 "strings."
18063 msgstr ""
18064
18065 #. type: =item
18066 #: ../fish/guestfish.pod:573
18067 msgid "C<\\\\>"
18068 msgstr ""
18069
18070 #. type: textblock
18071 #: ../fish/guestfish.pod:575
18072 msgid "A literal backslash character."
18073 msgstr ""
18074
18075 #. type: =head1
18076 #: ../fish/guestfish.pod:579
18077 msgid "OPTIONAL ARGUMENTS"
18078 msgstr ""
18079
18080 #. type: textblock
18081 #: ../fish/guestfish.pod:581
18082 msgid ""
18083 "Some commands take optional arguments.  These arguments appear in this "
18084 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18085 msgstr ""
18086
18087 #. type: verbatim
18088 #: ../fish/guestfish.pod:585
18089 #, no-wrap
18090 msgid ""
18091 " add-drive-opts filename\n"
18092 "\n"
18093 msgstr ""
18094
18095 #. type: verbatim
18096 #: ../fish/guestfish.pod:587
18097 #, no-wrap
18098 msgid ""
18099 " add-drive-opts filename readonly:true\n"
18100 "\n"
18101 msgstr ""
18102
18103 #. type: verbatim
18104 #: ../fish/guestfish.pod:589
18105 #, no-wrap
18106 msgid ""
18107 " add-drive-opts filename format:qcow2 readonly:false\n"
18108 "\n"
18109 msgstr ""
18110
18111 #. type: textblock
18112 #: ../fish/guestfish.pod:591
18113 msgid ""
18114 "Each optional argument can appear at most once.  All optional arguments must "
18115 "appear after the required ones."
18116 msgstr ""
18117
18118 #. type: =head1
18119 #: ../fish/guestfish.pod:594
18120 msgid "NUMBERS"
18121 msgstr "ЧИСЛА"
18122
18123 #. type: textblock
18124 #: ../fish/guestfish.pod:596
18125 msgid ""
18126 "This section applies to all commands which can take integers as parameters."
18127 msgstr ""
18128
18129 #. type: =head2
18130 #: ../fish/guestfish.pod:599
18131 msgid "SIZE SUFFIX"
18132 msgstr ""
18133
18134 #. type: textblock
18135 #: ../fish/guestfish.pod:601
18136 msgid ""
18137 "When the command takes a parameter measured in bytes, you can use one of the "
18138 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18139 msgstr ""
18140
18141 #. type: =item
18142 #: ../fish/guestfish.pod:607
18143 msgid "B<k> or B<K> or B<KiB>"
18144 msgstr "B<k>, B<K> або B<KiB>"
18145
18146 #. type: textblock
18147 #: ../fish/guestfish.pod:609
18148 msgid "The size in kilobytes (multiplied by 1024)."
18149 msgstr ""
18150
18151 #. type: =item
18152 #: ../fish/guestfish.pod:611
18153 msgid "B<KB>"
18154 msgstr "B<KB>"
18155
18156 #. type: textblock
18157 #: ../fish/guestfish.pod:613
18158 msgid "The size in SI 1000 byte units."
18159 msgstr ""
18160
18161 #. type: =item
18162 #: ../fish/guestfish.pod:615
18163 msgid "B<M> or B<MiB>"
18164 msgstr "B<M> або B<MiB>"
18165
18166 #. type: textblock
18167 #: ../fish/guestfish.pod:617
18168 msgid "The size in megabytes (multiplied by 1048576)."
18169 msgstr ""
18170
18171 #. type: =item
18172 #: ../fish/guestfish.pod:619
18173 msgid "B<MB>"
18174 msgstr "B<MB>"
18175
18176 #. type: textblock
18177 #: ../fish/guestfish.pod:621
18178 msgid "The size in SI 1000000 byte units."
18179 msgstr ""
18180
18181 #. type: =item
18182 #: ../fish/guestfish.pod:623
18183 msgid "B<G> or B<GiB>"
18184 msgstr "B<G> або B<GiB>"
18185
18186 #. type: textblock
18187 #: ../fish/guestfish.pod:625
18188 msgid "The size in gigabytes (multiplied by 2**30)."
18189 msgstr "Розмір у гігабайтах (з множником 2**30)."
18190
18191 #. type: =item
18192 #: ../fish/guestfish.pod:627
18193 msgid "B<GB>"
18194 msgstr "B<GB>"
18195
18196 #. type: textblock
18197 #: ../fish/guestfish.pod:629
18198 msgid "The size in SI 10**9 byte units."
18199 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18200
18201 #. type: =item
18202 #: ../fish/guestfish.pod:631
18203 msgid "B<T> or B<TiB>"
18204 msgstr "B<T> або B<TiB>"
18205
18206 #. type: textblock
18207 #: ../fish/guestfish.pod:633
18208 msgid "The size in terabytes (multiplied by 2**40)."
18209 msgstr "Розмір у терабайтах (з множником 2**40)."
18210
18211 #. type: =item
18212 #: ../fish/guestfish.pod:635
18213 msgid "B<TB>"
18214 msgstr "B<TB>"
18215
18216 #. type: textblock
18217 #: ../fish/guestfish.pod:637
18218 msgid "The size in SI 10**12 byte units."
18219 msgstr ""
18220
18221 #. type: =item
18222 #: ../fish/guestfish.pod:639
18223 msgid "B<P> or B<PiB>"
18224 msgstr "B<P> або B<PiB>"
18225
18226 #. type: textblock
18227 #: ../fish/guestfish.pod:641
18228 msgid "The size in petabytes (multiplied by 2**50)."
18229 msgstr ""
18230
18231 #. type: =item
18232 #: ../fish/guestfish.pod:643
18233 msgid "B<PB>"
18234 msgstr "B<PB>"
18235
18236 #. type: textblock
18237 #: ../fish/guestfish.pod:645
18238 msgid "The size in SI 10**15 byte units."
18239 msgstr ""
18240
18241 #. type: =item
18242 #: ../fish/guestfish.pod:647
18243 msgid "B<E> or B<EiB>"
18244 msgstr "B<E> або B<EiB>"
18245
18246 #. type: textblock
18247 #: ../fish/guestfish.pod:649
18248 msgid "The size in exabytes (multiplied by 2**60)."
18249 msgstr ""
18250
18251 #. type: =item
18252 #: ../fish/guestfish.pod:651
18253 msgid "B<EB>"
18254 msgstr "B<EB>"
18255
18256 #. type: textblock
18257 #: ../fish/guestfish.pod:653
18258 msgid "The size in SI 10**18 byte units."
18259 msgstr ""
18260
18261 #. type: =item
18262 #: ../fish/guestfish.pod:655
18263 msgid "B<Z> or B<ZiB>"
18264 msgstr "B<Z> або B<ZiB>"
18265
18266 #. type: textblock
18267 #: ../fish/guestfish.pod:657
18268 msgid "The size in zettabytes (multiplied by 2**70)."
18269 msgstr ""
18270
18271 #. type: =item
18272 #: ../fish/guestfish.pod:659
18273 msgid "B<ZB>"
18274 msgstr "B<ZB>"
18275
18276 #. type: textblock
18277 #: ../fish/guestfish.pod:661
18278 msgid "The size in SI 10**21 byte units."
18279 msgstr ""
18280
18281 #. type: =item
18282 #: ../fish/guestfish.pod:663
18283 msgid "B<Y> or B<YiB>"
18284 msgstr "B<Y> або B<YiB>"
18285
18286 #. type: textblock
18287 #: ../fish/guestfish.pod:665
18288 msgid "The size in yottabytes (multiplied by 2**80)."
18289 msgstr ""
18290
18291 #. type: =item
18292 #: ../fish/guestfish.pod:667
18293 msgid "B<YB>"
18294 msgstr "B<YB>"
18295
18296 #. type: textblock
18297 #: ../fish/guestfish.pod:669
18298 msgid "The size in SI 10**24 byte units."
18299 msgstr ""
18300
18301 #. type: verbatim
18302 #: ../fish/guestfish.pod:675
18303 #, no-wrap
18304 msgid ""
18305 " truncate-size /file 1G\n"
18306 "\n"
18307 msgstr ""
18308
18309 #. type: textblock
18310 #: ../fish/guestfish.pod:677
18311 msgid "would truncate the file to 1 gigabyte."
18312 msgstr ""
18313
18314 #. type: textblock
18315 #: ../fish/guestfish.pod:679
18316 msgid ""
18317 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18318 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18319 "suffix will probably not do what you expect."
18320 msgstr ""
18321
18322 #. type: =head2
18323 #: ../fish/guestfish.pod:683
18324 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18325 msgstr ""
18326
18327 #. type: textblock
18328 #: ../fish/guestfish.pod:685
18329 msgid ""
18330 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18331 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18332 msgstr ""
18333
18334 #. type: verbatim
18335 #: ../fish/guestfish.pod:688
18336 #, no-wrap
18337 msgid ""
18338 " 1234      decimal number 1234\n"
18339 " 02322     octal number, equivalent to decimal 1234\n"
18340 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18341 "\n"
18342 msgstr ""
18343
18344 #. type: textblock
18345 #: ../fish/guestfish.pod:692
18346 msgid ""
18347 "When using the C<chmod> command, you almost always want to specify an octal "
18348 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18349 "L<chmod(1)> program):"
18350 msgstr ""
18351
18352 #. type: verbatim
18353 #: ../fish/guestfish.pod:696
18354 #, no-wrap
18355 msgid ""
18356 " chmod 0777 /public  # OK\n"
18357 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18358 "\n"
18359 msgstr ""
18360
18361 #. type: textblock
18362 #: ../fish/guestfish.pod:699
18363 msgid ""
18364 "Commands that return numbers usually print them in decimal, but some "
18365 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18366 "octal, preceeded by C<0>)."
18367 msgstr ""
18368
18369 #. type: =head1
18370 #: ../fish/guestfish.pod:703
18371 msgid "WILDCARDS AND GLOBBING"
18372 msgstr ""
18373
18374 #. type: textblock
18375 #: ../fish/guestfish.pod:705
18376 msgid ""
18377 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18378 "(globbing) by default.  So for example the following will not do what you "
18379 "expect:"
18380 msgstr ""
18381
18382 #. type: verbatim
18383 #: ../fish/guestfish.pod:709
18384 #, no-wrap
18385 msgid ""
18386 " rm-rf /home/*\n"
18387 "\n"
18388 msgstr ""
18389
18390 #. type: textblock
18391 #: ../fish/guestfish.pod:711
18392 msgid ""
18393 "Assuming you don't have a directory called literally C</home/*> then the "
18394 "above command will return an error."
18395 msgstr ""
18396
18397 #. type: textblock
18398 #: ../fish/guestfish.pod:714
18399 msgid "To perform wildcard expansion, use the C<glob> command."
18400 msgstr ""
18401
18402 #. type: verbatim
18403 #: ../fish/guestfish.pod:716
18404 #, no-wrap
18405 msgid ""
18406 " glob rm-rf /home/*\n"
18407 "\n"
18408 msgstr ""
18409
18410 #. type: textblock
18411 #: ../fish/guestfish.pod:718
18412 msgid ""
18413 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18414 "many times), equivalent to:"
18415 msgstr ""
18416
18417 #. type: verbatim
18418 #: ../fish/guestfish.pod:721
18419 #, no-wrap
18420 msgid ""
18421 " rm-rf /home/jim\n"
18422 " rm-rf /home/joe\n"
18423 " rm-rf /home/mary\n"
18424 "\n"
18425 msgstr ""
18426
18427 #. type: textblock
18428 #: ../fish/guestfish.pod:725
18429 msgid "C<glob> only works on simple guest paths and not on device names."
18430 msgstr ""
18431
18432 #. type: textblock
18433 #: ../fish/guestfish.pod:727
18434 msgid ""
18435 "If you have several parameters, each containing a wildcard, then glob will "
18436 "perform a Cartesian product."
18437 msgstr ""
18438
18439 #. type: =head1
18440 #: ../fish/guestfish.pod:730
18441 msgid "COMMENTS"
18442 msgstr "КОМЕНТАРІ"
18443
18444 #. type: textblock
18445 #: ../fish/guestfish.pod:732
18446 msgid ""
18447 "Any line which starts with a I<#> character is treated as a comment and "
18448 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18449 "a command.  For example:"
18450 msgstr ""
18451
18452 #. type: verbatim
18453 #: ../fish/guestfish.pod:736
18454 #, no-wrap
18455 msgid ""
18456 " # this is a comment\n"
18457 "         # this is a comment\n"
18458 " foo # NOT a comment\n"
18459 "\n"
18460 msgstr ""
18461
18462 #. type: textblock
18463 #: ../fish/guestfish.pod:740
18464 msgid "Blank lines are also ignored."
18465 msgstr ""
18466
18467 #. type: =head1
18468 #: ../fish/guestfish.pod:742
18469 msgid "RUNNING COMMANDS LOCALLY"
18470 msgstr ""
18471
18472 #. type: textblock
18473 #: ../fish/guestfish.pod:744
18474 msgid ""
18475 "Any line which starts with a I<!> character is treated as a command sent to "
18476 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18477 msgstr ""
18478
18479 #. type: verbatim
18480 #: ../fish/guestfish.pod:748
18481 #, no-wrap
18482 msgid ""
18483 " !mkdir local\n"
18484 " tgz-out /remote local/remote-data.tar.gz\n"
18485 "\n"
18486 msgstr ""
18487
18488 #. type: textblock
18489 #: ../fish/guestfish.pod:751
18490 msgid ""
18491 "will create a directory C<local> on the host, and then export the contents "
18492 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18493 "(See C<tgz-out>)."
18494 msgstr ""
18495
18496 #. type: textblock
18497 #: ../fish/guestfish.pod:755
18498 msgid ""
18499 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18500 "effect, due to the way that subprocesses work in Unix."
18501 msgstr ""
18502
18503 #. type: =head2
18504 #: ../fish/guestfish.pod:758
18505 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18506 msgstr ""
18507
18508 #. type: textblock
18509 #: ../fish/guestfish.pod:760
18510 msgid ""
18511 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18512 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18513 "and executed as guestfish commands."
18514 msgstr ""
18515
18516 #. type: textblock
18517 #: ../fish/guestfish.pod:764
18518 msgid ""
18519 "Thus you can use shell script to construct arbitrary guestfish commands "
18520 "which are then parsed by guestfish."
18521 msgstr ""
18522
18523 #. type: textblock
18524 #: ../fish/guestfish.pod:767
18525 msgid ""
18526 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18527 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18528 "if we use a shell script to create the guestfish commands for us:"
18529 msgstr ""
18530
18531 #. type: verbatim
18532 #: ../fish/guestfish.pod:772
18533 #, no-wrap
18534 msgid ""
18535 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18536 "\n"
18537 msgstr ""
18538
18539 #. type: textblock
18540 #: ../fish/guestfish.pod:774
18541 msgid "or with names like C</foo.001>:"
18542 msgstr ""
18543
18544 #. type: verbatim
18545 #: ../fish/guestfish.pod:776
18546 #, no-wrap
18547 msgid ""
18548 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18549 "\n"
18550 msgstr ""
18551
18552 #. type: textblock
18553 #: ../fish/guestfish.pod:778
18554 msgid ""
18555 "When using guestfish interactively it can be helpful to just run the shell "
18556 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18557 "ordinary I<!> local command), see what guestfish commands it would run, and "
18558 "when you are happy with those prepend the C<E<lt>> character to run the "
18559 "guestfish commands for real."
18560 msgstr ""
18561
18562 #. type: =head1
18563 #: ../fish/guestfish.pod:784
18564 msgid "PIPES"
18565 msgstr "КАНАЛИ"
18566
18567 #. type: textblock
18568 #: ../fish/guestfish.pod:786
18569 msgid ""
18570 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18571 "command (a guestfish command) to the second command (any host command).  For "
18572 "example:"
18573 msgstr ""
18574
18575 #. type: verbatim
18576 #: ../fish/guestfish.pod:790
18577 #, no-wrap
18578 msgid ""
18579 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18580 "\n"
18581 msgstr ""
18582
18583 #. type: textblock
18584 #: ../fish/guestfish.pod:792
18585 msgid ""
18586 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18587 "program).  The above command would list all accounts in the guest filesystem "
18588 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18589 msgstr ""
18590
18591 #. type: verbatim
18592 #: ../fish/guestfish.pod:797
18593 #, no-wrap
18594 msgid ""
18595 " hexdump /bin/ls | head\n"
18596 " list-devices | tail -1\n"
18597 " tgz-out / - | tar ztf -\n"
18598 "\n"
18599 msgstr ""
18600
18601 #. type: textblock
18602 #: ../fish/guestfish.pod:801
18603 msgid ""
18604 "The space before the pipe symbol is required, any space after the pipe "
18605 "symbol is optional.  Everything after the pipe symbol is just passed "
18606 "straight to the host shell, so it can contain redirections, globs and "
18607 "anything else that makes sense on the host side."
18608 msgstr ""
18609
18610 #. type: textblock
18611 #: ../fish/guestfish.pod:806
18612 msgid ""
18613 "To use a literal argument which begins with a pipe symbol, you have to quote "
18614 "it, eg:"
18615 msgstr ""
18616
18617 #. type: verbatim
18618 #: ../fish/guestfish.pod:809
18619 #, no-wrap
18620 msgid ""
18621 " echo \"|\"\n"
18622 "\n"
18623 msgstr ""
18624
18625 #. type: =head1
18626 #: ../fish/guestfish.pod:811
18627 msgid "HOME DIRECTORIES"
18628 msgstr ""
18629
18630 #. type: textblock
18631 #: ../fish/guestfish.pod:813
18632 msgid ""
18633 "If a parameter starts with the character C<~> then the tilde may be expanded "
18634 "as a home directory path (either C<~> for the current user's home directory, "
18635 "or C<~user> for another user)."
18636 msgstr ""
18637
18638 #. type: textblock
18639 #: ../fish/guestfish.pod:817
18640 msgid ""
18641 "Note that home directory expansion happens for users known I<on the host>, "
18642 "not in the guest filesystem."
18643 msgstr ""
18644
18645 #. type: textblock
18646 #: ../fish/guestfish.pod:820
18647 msgid ""
18648 "To use a literal argument which begins with a tilde, you have to quote it, "
18649 "eg:"
18650 msgstr ""
18651
18652 #. type: verbatim
18653 #: ../fish/guestfish.pod:823
18654 #, no-wrap
18655 msgid ""
18656 " echo \"~\"\n"
18657 "\n"
18658 msgstr ""
18659
18660 #. type: =head2
18661 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18662 msgid "ENCRYPTED DISKS"
18663 msgstr "ЗАШИФРОВАНІ ДИСКИ"
18664
18665 #. type: textblock
18666 #: ../fish/guestfish.pod:827
18667 msgid ""
18668 "Libguestfs has some support for Linux guests encrypted according to the "
18669 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18670 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18671 "LUKS is supported."
18672 msgstr ""
18673
18674 #. type: textblock
18675 #: ../fish/guestfish.pod:832
18676 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18677 msgstr ""
18678
18679 #. type: verbatim
18680 #: ../fish/guestfish.pod:834
18681 #, no-wrap
18682 msgid ""
18683 " ><fs> vfs-type /dev/sda2\n"
18684 " crypto_LUKS\n"
18685 "\n"
18686 msgstr ""
18687
18688 #. type: textblock
18689 #: ../fish/guestfish.pod:837
18690 msgid ""
18691 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18692 "device called C</dev/mapper/luksdev>."
18693 msgstr ""
18694
18695 #. type: verbatim
18696 #: ../fish/guestfish.pod:840
18697 #, no-wrap
18698 msgid ""
18699 " ><fs> luks-open /dev/sda2 luksdev\n"
18700 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18701 "\n"
18702 msgstr ""
18703
18704 #. type: textblock
18705 #: ../fish/guestfish.pod:843
18706 msgid ""
18707 "Finally you have to tell LVM to scan for volume groups on the newly created "
18708 "mapper device:"
18709 msgstr ""
18710
18711 #. type: verbatim
18712 #: ../fish/guestfish.pod:846
18713 #, no-wrap
18714 msgid ""
18715 " vgscan\n"
18716 " vg-activate-all true\n"
18717 "\n"
18718 msgstr ""
18719
18720 #. type: textblock
18721 #: ../fish/guestfish.pod:849
18722 msgid "The logical volume(s) can now be mounted in the usual way."
18723 msgstr ""
18724
18725 #. type: textblock
18726 #: ../fish/guestfish.pod:851
18727 msgid ""
18728 "Before closing a LUKS device you must unmount any logical volumes on it and "
18729 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18730 "one.  Then you can close the mapper device:"
18731 msgstr ""
18732
18733 #. type: verbatim
18734 #: ../fish/guestfish.pod:855
18735 #, no-wrap
18736 msgid ""
18737 " vg-activate false /dev/VG\n"
18738 " luks-close /dev/mapper/luksdev\n"
18739 "\n"
18740 msgstr ""
18741
18742 #. type: textblock
18743 #: ../fish/guestfish.pod:860
18744 msgid ""
18745 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18746 "letters and paths (with some limitations).  The following commands are "
18747 "equivalent:"
18748 msgstr ""
18749
18750 #. type: verbatim
18751 #: ../fish/guestfish.pod:864
18752 #, no-wrap
18753 msgid ""
18754 " file /WINDOWS/system32/config/system.LOG\n"
18755 "\n"
18756 msgstr ""
18757
18758 #. type: verbatim
18759 #: ../fish/guestfish.pod:866
18760 #, no-wrap
18761 msgid ""
18762 " file win:\\windows\\system32\\config\\system.log\n"
18763 "\n"
18764 msgstr ""
18765
18766 #. type: verbatim
18767 #: ../fish/guestfish.pod:868
18768 #, no-wrap
18769 msgid ""
18770 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18771 "\n"
18772 msgstr ""
18773
18774 #. type: textblock
18775 #: ../fish/guestfish.pod:870
18776 msgid ""
18777 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18778 "where the drive is mounted, prepending that to the path, changing all "
18779 "backslash characters to forward slash, then resolving the result using L</"
18780 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
18781 "the parameter might be rewritten like this:"
18782 msgstr ""
18783
18784 #. type: verbatim
18785 #: ../fish/guestfish.pod:876
18786 #, no-wrap
18787 msgid ""
18788 " win:e:\\foo\\bar => /e/FOO/bar\n"
18789 "\n"
18790 msgstr ""
18791
18792 #. type: textblock
18793 #: ../fish/guestfish.pod:878
18794 msgid "This only works in argument positions that expect a path."
18795 msgstr ""
18796
18797 #. type: =head1
18798 #: ../fish/guestfish.pod:880
18799 msgid "UPLOADING AND DOWNLOADING FILES"
18800 msgstr ""
18801
18802 #. type: textblock
18803 #: ../fish/guestfish.pod:882
18804 msgid ""
18805 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18806 "others which upload from or download to a local file, you can use the "
18807 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18808 msgstr ""
18809
18810 #. type: verbatim
18811 #: ../fish/guestfish.pod:886
18812 #, no-wrap
18813 msgid ""
18814 " upload - /foo\n"
18815 "\n"
18816 msgstr ""
18817
18818 #. type: textblock
18819 #: ../fish/guestfish.pod:888
18820 msgid ""
18821 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18822 msgstr ""
18823
18824 #. type: verbatim
18825 #: ../fish/guestfish.pod:891
18826 #, no-wrap
18827 msgid ""
18828 " tar-out /etc - | tar tf -\n"
18829 "\n"
18830 msgstr ""
18831
18832 #. type: textblock
18833 #: ../fish/guestfish.pod:893
18834 msgid ""
18835 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18836 "command (see L</PIPES>)."
18837 msgstr ""
18838
18839 #. type: textblock
18840 #: ../fish/guestfish.pod:896
18841 msgid ""
18842 "When using C<-> to read from stdin, the input is read up to the end of "
18843 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18844 "some arbitrary end marker:"
18845 msgstr ""
18846
18847 #. type: verbatim
18848 #: ../fish/guestfish.pod:900
18849 #, no-wrap
18850 msgid ""
18851 " upload -<<END /foo\n"
18852 " input line 1\n"
18853 " input line 2\n"
18854 " input line 3\n"
18855 " END\n"
18856 "\n"
18857 msgstr ""
18858
18859 #. type: textblock
18860 #: ../fish/guestfish.pod:906
18861 msgid ""
18862 "Any string of characters can be used instead of C<END>.  The end marker must "
18863 "appear on a line of its own, without any preceeding or following characters "
18864 "(not even spaces)."
18865 msgstr ""
18866
18867 #. type: textblock
18868 #: ../fish/guestfish.pod:910
18869 msgid ""
18870 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18871 "upload local files (so-called \"FileIn\" parameters in the generator)."
18872 msgstr ""
18873
18874 #. type: =head1
18875 #: ../fish/guestfish.pod:913
18876 msgid "EXIT ON ERROR BEHAVIOUR"
18877 msgstr ""
18878
18879 #. type: textblock
18880 #: ../fish/guestfish.pod:915
18881 msgid ""
18882 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18883 "taking commands from a human over a tty), and will exit on the first error "
18884 "in non-interactive mode (scripts, commands given on the command line)."
18885 msgstr ""
18886
18887 #. type: textblock
18888 #: ../fish/guestfish.pod:920
18889 msgid ""
18890 "If you prefix a command with a I<-> character, then that command will not "
18891 "cause guestfish to exit, even if that (one) command returns an error."
18892 msgstr ""
18893
18894 #. type: =head1
18895 #: ../fish/guestfish.pod:924
18896 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18897 msgstr ""
18898
18899 #. type: textblock
18900 #: ../fish/guestfish.pod:926
18901 msgid ""
18902 "Guestfish can be remote-controlled over a socket.  This is useful "
18903 "particularly in shell scripts where you want to make several different "
18904 "changes to a filesystem, but you don't want the overhead of starting up a "
18905 "guestfish process each time."
18906 msgstr ""
18907
18908 #. type: textblock
18909 #: ../fish/guestfish.pod:931
18910 msgid "Start a guestfish server process using:"
18911 msgstr ""
18912
18913 #. type: verbatim
18914 #: ../fish/guestfish.pod:933
18915 #, no-wrap
18916 msgid ""
18917 " eval \"`guestfish --listen`\"\n"
18918 "\n"
18919 msgstr ""
18920
18921 #. type: textblock
18922 #: ../fish/guestfish.pod:935
18923 msgid "and then send it commands by doing:"
18924 msgstr ""
18925
18926 #. type: verbatim
18927 #: ../fish/guestfish.pod:937
18928 #, no-wrap
18929 msgid ""
18930 " guestfish --remote cmd [...]\n"
18931 "\n"
18932 msgstr ""
18933
18934 #. type: textblock
18935 #: ../fish/guestfish.pod:939
18936 msgid "To cause the server to exit, send it the exit command:"
18937 msgstr ""
18938
18939 #. type: textblock
18940 #: ../fish/guestfish.pod:943
18941 msgid ""
18942 "Note that the server will normally exit if there is an error in a command.  "
18943 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18944 "BEHAVIOUR>."
18945 msgstr ""
18946
18947 #. type: =head2
18948 #: ../fish/guestfish.pod:947
18949 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18950 msgstr ""
18951
18952 #. type: textblock
18953 #: ../fish/guestfish.pod:949
18954 msgid ""
18955 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18956 "is how the I<--remote> option knows where to send the commands.  You can "
18957 "have several guestfish listener processes running using:"
18958 msgstr ""
18959
18960 #. type: verbatim
18961 #: ../fish/guestfish.pod:953
18962 #, no-wrap
18963 msgid ""
18964 " eval \"`guestfish --listen`\"\n"
18965 " pid1=$GUESTFISH_PID\n"
18966 " eval \"`guestfish --listen`\"\n"
18967 " pid2=$GUESTFISH_PID\n"
18968 " ...\n"
18969 " guestfish --remote=$pid1 cmd\n"
18970 " guestfish --remote=$pid2 cmd\n"
18971 "\n"
18972 msgstr ""
18973
18974 #. type: =head2
18975 #: ../fish/guestfish.pod:961
18976 msgid "REMOTE CONTROL AND CSH"
18977 msgstr ""
18978
18979 #. type: textblock
18980 #: ../fish/guestfish.pod:963
18981 msgid ""
18982 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18983 "option:"
18984 msgstr ""
18985
18986 #. type: verbatim
18987 #: ../fish/guestfish.pod:966
18988 #, no-wrap
18989 msgid ""
18990 " eval \"`guestfish --listen --csh`\"\n"
18991 "\n"
18992 msgstr ""
18993
18994 #. type: =head2
18995 #: ../fish/guestfish.pod:968
18996 msgid "REMOTE CONTROL DETAILS"
18997 msgstr ""
18998
18999 #. type: textblock
19000 #: ../fish/guestfish.pod:970
19001 msgid ""
19002 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19003 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19004 "and C<$PID> is the process ID of the server."
19005 msgstr ""
19006
19007 #. type: textblock
19008 #: ../fish/guestfish.pod:974
19009 msgid "Guestfish client and server versions must match exactly."
19010 msgstr ""
19011
19012 #. type: =head2
19013 #: ../fish/guestfish.pod:976
19014 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19015 msgstr ""
19016
19017 #. type: textblock
19018 #: ../fish/guestfish.pod:978
19019 msgid ""
19020 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19021 "context hangs, ie. don't do (note the backquotes):"
19022 msgstr ""
19023
19024 #. type: verbatim
19025 #: ../fish/guestfish.pod:981
19026 #, fuzzy, no-wrap
19027 #| msgid ""
19028 #| " guestfish --ro -d myguest -i\n"
19029 #| "\n"
19030 msgid ""
19031 " a=`guestfish --remote run`\n"
19032 "\n"
19033 msgstr ""
19034 " guestfish --ro -d myguest -i\n"
19035 "\n"
19036
19037 #. type: textblock
19038 #: ../fish/guestfish.pod:983
19039 msgid ""
19040 "Since the C<run> command produces no output on stdout, this is not useful "
19041 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
19042 "cgi?id=592910>."
19043 msgstr ""
19044
19045 #. type: =head1
19046 #: ../fish/guestfish.pod:987
19047 msgid "PREPARED DISK IMAGES"
19048 msgstr ""
19049
19050 #. type: textblock
19051 #: ../fish/guestfish.pod:989
19052 msgid ""
19053 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19054 "preformatted disk images that guestfish can make for you to save typing.  "
19055 "This is particularly useful for testing purposes.  This option is used "
19056 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19057 "can be mixed with I<-a>)."
19058 msgstr ""
19059
19060 #. type: textblock
19061 #: ../fish/guestfish.pod:995
19062 msgid ""
19063 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19064 "the second and so on.  Existing files in the current directory are "
19065 "I<overwritten>."
19066 msgstr ""
19067
19068 #. type: textblock
19069 #: ../fish/guestfish.pod:999
19070 msgid ""
19071 "The type briefly describes how the disk should be sized, partitioned, how "
19072 "filesystem(s) should be created, and how content should be added.  "
19073 "Optionally the type can be followed by extra parameters, separated by C<:> "
19074 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19075 "allocated disk, containing a single partition, with the partition formatted "
19076 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19077 "disk instead."
19078 msgstr ""
19079
19080 #. type: textblock
19081 #: ../fish/guestfish.pod:1007
19082 msgid "To list the available types and any extra parameters they take, run:"
19083 msgstr ""
19084
19085 #. type: textblock
19086 #: ../fish/guestfish.pod:1011
19087 msgid ""
19088 "Note that the prepared filesystem is not mounted.  You would usually have to "
19089 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19090 msgstr ""
19091
19092 #. type: textblock
19093 #: ../fish/guestfish.pod:1015
19094 msgid ""
19095 "If any I<-N> or I<--new> options are given, the guest is automatically "
19096 "launched."
19097 msgstr ""
19098
19099 #. type: textblock
19100 #: ../fish/guestfish.pod:1020
19101 msgid "Create a 100MB disk with an ext4-formatted partition:"
19102 msgstr ""
19103
19104 #. type: verbatim
19105 #: ../fish/guestfish.pod:1022
19106 #, no-wrap
19107 msgid ""
19108 " guestfish -N fs:ext4\n"
19109 "\n"
19110 msgstr ""
19111
19112 #. type: textblock
19113 #: ../fish/guestfish.pod:1024
19114 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19115 msgstr ""
19116
19117 #. type: verbatim
19118 #: ../fish/guestfish.pod:1026
19119 #, no-wrap
19120 msgid ""
19121 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19122 "\n"
19123 msgstr ""
19124
19125 #. type: textblock
19126 #: ../fish/guestfish.pod:1028
19127 msgid "Create a blank 200MB disk:"
19128 msgstr ""
19129
19130 #. type: verbatim
19131 #: ../fish/guestfish.pod:1030
19132 #, no-wrap
19133 msgid ""
19134 " guestfish -N disk:200M\n"
19135 "\n"
19136 msgstr ""
19137
19138 #. type: =head1
19139 #: ../fish/guestfish.pod:1032
19140 msgid "PROGRESS BARS"
19141 msgstr ""
19142
19143 #. type: textblock
19144 #: ../fish/guestfish.pod:1034
19145 msgid ""
19146 "Some (not all) long-running commands send progress notification messages as "
19147 "they are running.  Guestfish turns these messages into progress bars."
19148 msgstr ""
19149
19150 #. type: textblock
19151 #: ../fish/guestfish.pod:1038
19152 msgid ""
19153 "When a command that supports progress bars takes longer than two seconds to "
19154 "run, and if progress bars are enabled, then you will see one appearing below "
19155 "the command:"
19156 msgstr ""
19157
19158 #. type: verbatim
19159 #: ../fish/guestfish.pod:1042
19160 #, no-wrap
19161 msgid ""
19162 " ><fs> copy-size /large-file /another-file 2048M\n"
19163 " / 10% [#####-----------------------------------------] 00:30\n"
19164 "\n"
19165 msgstr ""
19166
19167 #. type: textblock
19168 #: ../fish/guestfish.pod:1045
19169 msgid ""
19170 "The spinner on the left hand side moves round once for every progress "
19171 "notification received from the backend.  This is a (reasonably) golden "
19172 "assurance that the command is \"doing something\" even if the progress bar "
19173 "is not moving, because the command is able to send the progress "
19174 "notifications.  When the bar reaches 100% and the command finishes, the "
19175 "spinner disappears."
19176 msgstr ""
19177
19178 #. type: textblock
19179 #: ../fish/guestfish.pod:1052
19180 msgid ""
19181 "Progress bars are enabled by default when guestfish is used interactively.  "
19182 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19183 "and you can disable them completely using I<--no-progress-bars>."
19184 msgstr ""
19185
19186 #. type: =head1
19187 #: ../fish/guestfish.pod:1057
19188 msgid "GUESTFISH COMMANDS"
19189 msgstr ""
19190
19191 #. type: textblock
19192 #: ../fish/guestfish.pod:1059
19193 msgid ""
19194 "The commands in this section are guestfish convenience commands, in other "
19195 "words, they are not part of the L<guestfs(3)> API."
19196 msgstr ""
19197
19198 #. type: =head2
19199 #: ../fish/guestfish.pod:1062
19200 msgid "help"
19201 msgstr "help"
19202
19203 #. type: verbatim
19204 #: ../fish/guestfish.pod:1064
19205 #, no-wrap
19206 msgid ""
19207 " help\n"
19208 " help cmd\n"
19209 "\n"
19210 msgstr ""
19211 " help\n"
19212 " help команда\n"
19213 "\n"
19214
19215 #. type: textblock
19216 #: ../fish/guestfish.pod:1067
19217 msgid "Without any parameter, this provides general help."
19218 msgstr "Без параметра показує загальну довідкову інформацію."
19219
19220 #. type: textblock
19221 #: ../fish/guestfish.pod:1069
19222 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19223 msgstr ""
19224
19225 #. type: =head2
19226 #: ../fish/guestfish.pod:1071
19227 msgid "quit | exit"
19228 msgstr ""
19229
19230 #. type: textblock
19231 #: ../fish/guestfish.pod:1073
19232 msgid "This exits guestfish.  You can also use C<^D> key."
19233 msgstr ""
19234
19235 #. type: textblock
19236 #: ../fish/guestfish.pod:1075
19237 msgid "@FISH_COMMANDS@"
19238 msgstr ""
19239
19240 #. type: =head1
19241 #: ../fish/guestfish.pod:1077
19242 msgid "COMMANDS"
19243 msgstr "КОМАНДИ"
19244
19245 #. type: textblock
19246 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1475
19247 msgid "@ACTIONS@"
19248 msgstr "@ACTIONS@"
19249
19250 #. type: =head1
19251 #: ../fish/guestfish.pod:1081 ../test-tool/libguestfs-test-tool.pod:77
19252 msgid "EXIT CODE"
19253 msgstr "КОД ВИХОДУ"
19254
19255 #. type: textblock
19256 #: ../fish/guestfish.pod:1083
19257 msgid ""
19258 "guestfish returns 0 if the commands completed without error, or 1 if there "
19259 "was an error."
19260 msgstr ""
19261
19262 #. type: =item
19263 #: ../fish/guestfish.pod:1090
19264 msgid "EDITOR"
19265 msgstr "РЕДАКТОР"
19266
19267 #. type: textblock
19268 #: ../fish/guestfish.pod:1092
19269 msgid ""
19270 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19271 "C<vi>."
19272 msgstr ""
19273
19274 #. type: =item
19275 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:2970
19276 msgid "FEBOOTSTRAP_KERNEL"
19277 msgstr ""
19278
19279 #. type: =item
19280 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:2972
19281 msgid "FEBOOTSTRAP_MODULES"
19282 msgstr ""
19283
19284 #. type: textblock
19285 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:2974
19286 msgid ""
19287 "These two environment variables allow the kernel that libguestfs uses in the "
19288 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19289 "most recent host kernel is chosen.  For more information about kernel "
19290 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19291 "available in febootstrap E<ge> 3.8."
19292 msgstr ""
19293
19294 #. type: =item
19295 #: ../fish/guestfish.pod:1105
19296 msgid "GUESTFISH_DISPLAY_IMAGE"
19297 msgstr ""
19298
19299 #. type: textblock
19300 #: ../fish/guestfish.pod:1107
19301 msgid ""
19302 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19303 "If not set, it uses L<display(1)>."
19304 msgstr ""
19305
19306 #. type: =item
19307 #: ../fish/guestfish.pod:1110
19308 msgid "GUESTFISH_PID"
19309 msgstr ""
19310
19311 #. type: textblock
19312 #: ../fish/guestfish.pod:1112
19313 msgid ""
19314 "Used with the I<--remote> option to specify the remote guestfish process to "
19315 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19316 msgstr ""
19317
19318 #. type: =item
19319 #: ../fish/guestfish.pod:1116
19320 msgid "HEXEDITOR"
19321 msgstr ""
19322
19323 #. type: textblock
19324 #: ../fish/guestfish.pod:1118
19325 msgid ""
19326 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19327 "not specified, the external L<hexedit(1)> program is used."
19328 msgstr ""
19329
19330 #. type: =item
19331 #: ../fish/guestfish.pod:1122
19332 msgid "HOME"
19333 msgstr "ДОМІВКА"
19334
19335 #. type: textblock
19336 #: ../fish/guestfish.pod:1124
19337 msgid ""
19338 "If compiled with GNU readline support, various files in the home directory "
19339 "can be used.  See L</FILES>."
19340 msgstr ""
19341
19342 #. type: =item
19343 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2980
19344 msgid "LIBGUESTFS_APPEND"
19345 msgstr ""
19346
19347 #. type: textblock
19348 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:2982
19349 msgid "Pass additional options to the guest kernel."
19350 msgstr ""
19351
19352 #. type: =item
19353 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:2984
19354 msgid "LIBGUESTFS_DEBUG"
19355 msgstr "LIBGUESTFS_DEBUG"
19356
19357 #. type: textblock
19358 #: ../fish/guestfish.pod:1133
19359 msgid ""
19360 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19361 "effect as using the B<-v> option."
19362 msgstr ""
19363
19364 #. type: =item
19365 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:2989
19366 msgid "LIBGUESTFS_MEMSIZE"
19367 msgstr "LIBGUESTFS_MEMSIZE"
19368
19369 #. type: textblock
19370 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:2991
19371 msgid ""
19372 "Set the memory allocated to the qemu process, in megabytes.  For example:"
19373 msgstr ""
19374
19375 #. type: verbatim
19376 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:2994
19377 #, no-wrap
19378 msgid ""
19379 " LIBGUESTFS_MEMSIZE=700\n"
19380 "\n"
19381 msgstr ""
19382 " LIBGUESTFS_MEMSIZE=700\n"
19383 "\n"
19384
19385 #. type: =item
19386 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:2996
19387 msgid "LIBGUESTFS_PATH"
19388 msgstr ""
19389
19390 #. type: textblock
19391 #: ../fish/guestfish.pod:1145
19392 msgid ""
19393 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19394 "the discussion of paths in L<guestfs(3)>."
19395 msgstr ""
19396
19397 #. type: =item
19398 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3001
19399 msgid "LIBGUESTFS_QEMU"
19400 msgstr ""
19401
19402 #. type: textblock
19403 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3003
19404 msgid ""
19405 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19406 "which was found at compile time by the configure script is used."
19407 msgstr ""
19408
19409 #. type: =item
19410 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3009
19411 msgid "LIBGUESTFS_TRACE"
19412 msgstr ""
19413
19414 #. type: textblock
19415 #: ../fish/guestfish.pod:1156
19416 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19417 msgstr ""
19418
19419 #. type: =item
19420 #: ../fish/guestfish.pod:1158
19421 msgid "PAGER"
19422 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19423
19424 #. type: textblock
19425 #: ../fish/guestfish.pod:1160
19426 msgid ""
19427 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19428 "C<more>."
19429 msgstr ""
19430
19431 #. type: =item
19432 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3014
19433 msgid "TMPDIR"
19434 msgstr ""
19435
19436 #. type: textblock
19437 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3016
19438 msgid ""
19439 "Location of temporary directory, defaults to C</tmp> except for the cached "
19440 "supermin appliance which defaults to C</var/tmp>."
19441 msgstr ""
19442
19443 #. type: textblock
19444 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3019
19445 msgid ""
19446 "If libguestfs was compiled to use the supermin appliance then the real "
19447 "appliance is cached in this directory, shared between all handles belonging "
19448 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19449 "use in case C</var/tmp> is not large enough."
19450 msgstr ""
19451
19452 #. type: =head1
19453 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19454 #: ../rescue/virt-rescue.pod:269
19455 msgid "FILES"
19456 msgstr "ФАЙЛИ"
19457
19458 #. type: =item
19459 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19460 #: ../rescue/virt-rescue.pod:273
19461 msgid "$HOME/.libguestfs-tools.rc"
19462 msgstr ""
19463
19464 #. type: =item
19465 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19466 #: ../rescue/virt-rescue.pod:275
19467 msgid "/etc/libguestfs-tools.conf"
19468 msgstr ""
19469
19470 #. type: textblock
19471 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19472 #: ../rescue/virt-rescue.pod:277
19473 msgid ""
19474 "This configuration file controls the default read-only or read-write mode "
19475 "(I<--ro> or I<--rw>)."
19476 msgstr ""
19477
19478 #. type: textblock
19479 #: ../fish/guestfish.pod:1187
19480 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19481 msgstr ""
19482
19483 #. type: =item
19484 #: ../fish/guestfish.pod:1189
19485 msgid "$HOME/.guestfish"
19486 msgstr ""
19487
19488 #. type: textblock
19489 #: ../fish/guestfish.pod:1191
19490 msgid ""
19491 "If compiled with GNU readline support, then the command history is saved in "
19492 "this file."
19493 msgstr ""
19494
19495 #. type: =item
19496 #: ../fish/guestfish.pod:1194
19497 msgid "$HOME/.inputrc"
19498 msgstr ""
19499
19500 #. type: =item
19501 #: ../fish/guestfish.pod:1196
19502 msgid "/etc/inputrc"
19503 msgstr ""
19504
19505 #. type: textblock
19506 #: ../fish/guestfish.pod:1198
19507 msgid ""
19508 "If compiled with GNU readline support, then these files can be used to "
19509 "configure readline.  For further information, please see L<readline(3)/"
19510 "INITIALIZATION FILE>."
19511 msgstr ""
19512
19513 #. type: textblock
19514 #: ../fish/guestfish.pod:1202
19515 msgid "To write rules which only apply to guestfish, use:"
19516 msgstr ""
19517
19518 #. type: verbatim
19519 #: ../fish/guestfish.pod:1204
19520 #, no-wrap
19521 msgid ""
19522 " $if guestfish\n"
19523 " ...\n"
19524 " $endif\n"
19525 "\n"
19526 msgstr ""
19527
19528 #. type: textblock
19529 #: ../fish/guestfish.pod:1208
19530 msgid ""
19531 "Variables that you can set in inputrc that change the behaviour of guestfish "
19532 "in useful ways include:"
19533 msgstr ""
19534
19535 #. type: =item
19536 #: ../fish/guestfish.pod:1213
19537 msgid "completion-ignore-case (default: on)"
19538 msgstr ""
19539
19540 #. type: textblock
19541 #: ../fish/guestfish.pod:1215
19542 msgid ""
19543 "By default, guestfish will ignore case when tab-completing paths on the "
19544 "disk.  Use:"
19545 msgstr ""
19546
19547 #. type: verbatim
19548 #: ../fish/guestfish.pod:1218
19549 #, no-wrap
19550 msgid ""
19551 " set completion-ignore-case off\n"
19552 "\n"
19553 msgstr ""
19554
19555 #. type: textblock
19556 #: ../fish/guestfish.pod:1220
19557 msgid "to make guestfish case sensitive."
19558 msgstr ""
19559
19560 #. type: =item
19561 #: ../fish/guestfish.pod:1224
19562 msgid "test1.img"
19563 msgstr ""
19564
19565 #. type: =item
19566 #: ../fish/guestfish.pod:1226
19567 msgid "test2.img (etc)"
19568 msgstr ""
19569
19570 #. type: textblock
19571 #: ../fish/guestfish.pod:1228
19572 msgid ""
19573 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19574 "will be created in the file C<test1.img> in the current directory.  The "
19575 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19576 "the same name will be overwritten."
19577 msgstr ""
19578
19579 #. type: textblock
19580 #: ../fish/guestfish.pod:1237
19581 msgid ""
19582 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19583 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19584 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19585 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19586 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19587 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19588 msgstr ""
19589
19590 #. type: textblock
19591 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3105
19592 #: ../test-tool/libguestfs-test-tool.pod:99
19593 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19594 msgstr ""
19595
19596 #. type: textblock
19597 #: ../fish/virt-copy-in.pod:5
19598 msgid ""
19599 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19600 msgstr ""
19601
19602 #. type: verbatim
19603 #: ../fish/virt-copy-in.pod:9
19604 #, no-wrap
19605 msgid ""
19606 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19607 "\n"
19608 msgstr ""
19609
19610 #. type: verbatim
19611 #: ../fish/virt-copy-in.pod:11
19612 #, no-wrap
19613 msgid ""
19614 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19615 "\n"
19616 msgstr ""
19617
19618 #. type: textblock
19619 #: ../fish/virt-copy-in.pod:15
19620 msgid ""
19621 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19622 "causing disk corruption.  The virtual machine must be shut down before you "
19623 "use this command."
19624 msgstr ""
19625
19626 #. type: textblock
19627 #: ../fish/virt-copy-in.pod:21
19628 msgid ""
19629 "C<virt-copy-in> copies files and directories from the local disk into a "
19630 "virtual machine disk image or named libvirt domain."
19631 msgstr ""
19632
19633 #. type: textblock
19634 #: ../fish/virt-copy-in.pod:24
19635 msgid ""
19636 "You can give one of more filenames and directories on the command line.  "
19637 "Directories are copied in recursively.  The final parameter must be the "
19638 "destination directory in the disk image which must be an absolute path "
19639 "starting with a C</> character."
19640 msgstr ""
19641
19642 #. type: verbatim
19643 #: ../fish/virt-copy-in.pod:33
19644 #, no-wrap
19645 msgid ""
19646 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19647 "\n"
19648 msgstr ""
19649
19650 #. type: textblock
19651 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19652 msgid "Upload a home directory to a guest:"
19653 msgstr ""
19654
19655 #. type: verbatim
19656 #: ../fish/virt-copy-in.pod:37
19657 #, no-wrap
19658 msgid ""
19659 " virt-copy-in -d MyGuest skel /home\n"
19660 "\n"
19661 msgstr ""
19662
19663 #. type: =head1
19664 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19665 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19666 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19667 msgstr ""
19668
19669 #. type: textblock
19670 #: ../fish/virt-copy-in.pod:41
19671 msgid ""
19672 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19673 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
19674 "are probably better off using guestfish directly."
19675 msgstr ""
19676
19677 #. type: textblock
19678 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19679 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19680 msgid ""
19681 "Since the shell script just passes options straight to guestfish, read "
19682 "L<guestfish(1)> to see the full list of options."
19683 msgstr ""
19684
19685 #. type: textblock
19686 #: ../fish/virt-copy-in.pod:52
19687 #, fuzzy
19688 #| msgid ""
19689 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19690 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19691 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19692 #| "libguestfs.org/>."
19693 msgid ""
19694 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19695 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19696 msgstr ""
19697 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19698 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19699 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19700 "org/>."
19701
19702 #. type: textblock
19703 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19704 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19705 #, fuzzy
19706 #| msgid "Copyright (C) 2009 Red Hat Inc."
19707 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
19708 msgstr "© Red Hat Inc., 2009"
19709
19710 #. type: textblock
19711 #: ../fish/virt-copy-out.pod:5
19712 msgid ""
19713 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19714 "image."
19715 msgstr ""
19716
19717 #. type: verbatim
19718 #: ../fish/virt-copy-out.pod:9
19719 #, no-wrap
19720 msgid ""
19721 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19722 "\n"
19723 msgstr ""
19724
19725 #. type: verbatim
19726 #: ../fish/virt-copy-out.pod:11
19727 #, no-wrap
19728 msgid ""
19729 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19730 "\n"
19731 msgstr ""
19732
19733 #. type: textblock
19734 #: ../fish/virt-copy-out.pod:15
19735 msgid ""
19736 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19737 "image or named libvirt domain."
19738 msgstr ""
19739
19740 #. type: textblock
19741 #: ../fish/virt-copy-out.pod:18
19742 msgid ""
19743 "You can give one of more filenames and directories on the command line.  "
19744 "Directories are copied out recursively."
19745 msgstr ""
19746
19747 #. type: textblock
19748 #: ../fish/virt-copy-out.pod:23
19749 msgid "Download the home directories from a virtual machine:"
19750 msgstr ""
19751
19752 #. type: verbatim
19753 #: ../fish/virt-copy-out.pod:25
19754 #, no-wrap
19755 msgid ""
19756 " mkdir homes\n"
19757 " virt-copy-out -d MyGuest /home homes\n"
19758 "\n"
19759 msgstr ""
19760
19761 #. type: textblock
19762 #: ../fish/virt-copy-out.pod:30
19763 msgid ""
19764 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19765 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
19766 "are probably better off using guestfish directly."
19767 msgstr ""
19768
19769 #. type: textblock
19770 #: ../fish/virt-copy-out.pod:41
19771 #, fuzzy
19772 #| msgid ""
19773 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19774 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19775 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19776 #| "libguestfs.org/>."
19777 msgid ""
19778 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19779 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19780 msgstr ""
19781 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19782 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19783 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19784 "org/>."
19785
19786 #. type: textblock
19787 #: ../fish/virt-tar-in.pod:5
19788 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19789 msgstr ""
19790
19791 #. type: verbatim
19792 #: ../fish/virt-tar-in.pod:9
19793 #, no-wrap
19794 msgid ""
19795 " virt-tar-in -a disk.img data.tar /destination\n"
19796 "\n"
19797 msgstr ""
19798
19799 #. type: verbatim
19800 #: ../fish/virt-tar-in.pod:11
19801 #, no-wrap
19802 msgid ""
19803 " virt-tar-in -d domain data.tar /destination\n"
19804 "\n"
19805 msgstr ""
19806
19807 #. type: verbatim
19808 #: ../fish/virt-tar-in.pod:13
19809 #, no-wrap
19810 msgid ""
19811 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19812 "\n"
19813 msgstr ""
19814
19815 #. type: textblock
19816 #: ../fish/virt-tar-in.pod:17
19817 msgid ""
19818 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19819 "causing disk corruption.  The virtual machine must be shut down before you "
19820 "use this command."
19821 msgstr ""
19822
19823 #. type: textblock
19824 #: ../fish/virt-tar-in.pod:23
19825 msgid ""
19826 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19827 "image or named libvirt domain."
19828 msgstr ""
19829
19830 #. type: textblock
19831 #: ../fish/virt-tar-in.pod:26
19832 msgid ""
19833 "The first parameter is the tar file.  Use C<-> to read the tar file from "
19834 "standard input.  The second parameter is the absolute target directory to "
19835 "unpack into."
19836 msgstr ""
19837
19838 #. type: verbatim
19839 #: ../fish/virt-tar-in.pod:34
19840 #, no-wrap
19841 msgid ""
19842 " virt-tar-in -d MyGuest homes.tar /home\n"
19843 "\n"
19844 msgstr ""
19845
19846 #. type: textblock
19847 #: ../fish/virt-tar-in.pod:38
19848 msgid ""
19849 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19850 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
19851 "probably better off using guestfish directly."
19852 msgstr ""
19853
19854 #. type: textblock
19855 #: ../fish/virt-tar-in.pod:49
19856 #, fuzzy
19857 #| msgid ""
19858 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19859 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19860 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19861 #| "libguestfs.org/>."
19862 msgid ""
19863 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19864 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19865 "org/>."
19866 msgstr ""
19867 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19868 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19869 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19870 "org/>."
19871
19872 #. type: textblock
19873 #: ../fish/virt-tar-out.pod:5
19874 msgid ""
19875 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19876 msgstr ""
19877
19878 #. type: verbatim
19879 #: ../fish/virt-tar-out.pod:9
19880 #, no-wrap
19881 msgid ""
19882 " virt-tar-out -a disk.img /dir files.tar\n"
19883 "\n"
19884 msgstr ""
19885
19886 #. type: verbatim
19887 #: ../fish/virt-tar-out.pod:11
19888 #, no-wrap
19889 msgid ""
19890 " virt-tar-out -d domain /dir files.tar\n"
19891 "\n"
19892 msgstr ""
19893
19894 #. type: verbatim
19895 #: ../fish/virt-tar-out.pod:13
19896 #, no-wrap
19897 msgid ""
19898 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19899 "\n"
19900 msgstr ""
19901
19902 #. type: textblock
19903 #: ../fish/virt-tar-out.pod:17
19904 msgid ""
19905 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19906 msgstr ""
19907
19908 #. type: textblock
19909 #: ../fish/virt-tar-out.pod:20
19910 msgid ""
19911 "The first parameter is the absolute path of the virtual machine directory.  "
19912 "The second parameter is the tar file to write.  Use C<-> to write to "
19913 "standard output."
19914 msgstr ""
19915
19916 #. type: textblock
19917 #: ../fish/virt-tar-out.pod:26
19918 msgid "Download the home directories from a guest:"
19919 msgstr ""
19920
19921 #. type: verbatim
19922 #: ../fish/virt-tar-out.pod:28
19923 #, no-wrap
19924 msgid ""
19925 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19926 "\n"
19927 msgstr ""
19928
19929 #. type: textblock
19930 #: ../fish/virt-tar-out.pod:32
19931 msgid ""
19932 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19933 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
19934 "are probably better off using guestfish directly."
19935 msgstr ""
19936
19937 #. type: textblock
19938 #: ../fish/virt-tar-out.pod:43
19939 #, fuzzy
19940 #| msgid ""
19941 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19942 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19943 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19944 #| "libguestfs.org/>."
19945 msgid ""
19946 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19947 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19948 msgstr ""
19949 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19950 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19951 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19952 "org/>."
19953
19954 #. type: textblock
19955 #: ../fuse/guestmount.pod:5
19956 msgid ""
19957 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19958 msgstr ""
19959
19960 #. type: verbatim
19961 #: ../fuse/guestmount.pod:9
19962 #, no-wrap
19963 msgid ""
19964 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19965 "\n"
19966 msgstr ""
19967
19968 #. type: verbatim
19969 #: ../fuse/guestmount.pod:11
19970 #, no-wrap
19971 msgid ""
19972 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19973 "\n"
19974 msgstr ""
19975
19976 #. type: verbatim
19977 #: ../fuse/guestmount.pod:13
19978 #, no-wrap
19979 msgid ""
19980 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19981 "\n"
19982 msgstr ""
19983
19984 #. type: textblock
19985 #: ../fuse/guestmount.pod:17
19986 msgid ""
19987 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19988 "machines.  If you do this, you risk disk corruption in the VM."
19989 msgstr ""
19990
19991 #. type: textblock
19992 #: ../fuse/guestmount.pod:22
19993 msgid ""
19994 "The guestmount program can be used to mount virtual machine filesystems and "
19995 "other disk images on the host.  It uses libguestfs for access to the guest "
19996 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19997 "a mountable device."
19998 msgstr ""
19999
20000 #. type: textblock
20001 #: ../fuse/guestmount.pod:27
20002 msgid ""
20003 "Along with other options, you have to give at least one device (I<-a> "
20004 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20005 "option) or use the I<-i> inspection option.  How this works is better "
20006 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20007 "below."
20008 msgstr ""
20009
20010 #. type: textblock
20011 #: ../fuse/guestmount.pod:33
20012 msgid ""
20013 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20014 "by you, and the filesystem will not be visible to any other users unless you "
20015 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20016 "the filesystem, use the C<fusermount -u> command."
20017 msgstr ""
20018
20019 #. type: textblock
20020 #: ../fuse/guestmount.pod:41
20021 msgid ""
20022 "For a typical Windows guest which has its main filesystem on the first "
20023 "partition:"
20024 msgstr ""
20025
20026 #. type: verbatim
20027 #: ../fuse/guestmount.pod:44
20028 #, no-wrap
20029 msgid ""
20030 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20031 "\n"
20032 msgstr ""
20033
20034 #. type: textblock
20035 #: ../fuse/guestmount.pod:46
20036 msgid ""
20037 "For a typical Linux guest which has a /boot filesystem on the first "
20038 "partition, and the root filesystem on a logical volume:"
20039 msgstr ""
20040
20041 #. type: verbatim
20042 #: ../fuse/guestmount.pod:49
20043 #, no-wrap
20044 msgid ""
20045 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20046 "\n"
20047 msgstr ""
20048
20049 #. type: textblock
20050 #: ../fuse/guestmount.pod:51
20051 msgid "To get libguestfs to detect guest mountpoints for you:"
20052 msgstr ""
20053
20054 #. type: verbatim
20055 #: ../fuse/guestmount.pod:53
20056 #, no-wrap
20057 msgid ""
20058 " guestmount -a guest.img -i --ro /mnt\n"
20059 "\n"
20060 msgstr ""
20061
20062 #. type: textblock
20063 #: ../fuse/guestmount.pod:55
20064 msgid "For a libvirt guest called \"Guest\" you could do:"
20065 msgstr ""
20066
20067 #. type: verbatim
20068 #: ../fuse/guestmount.pod:57
20069 #, no-wrap
20070 msgid ""
20071 " guestmount -d Guest -i --ro /mnt\n"
20072 "\n"
20073 msgstr ""
20074
20075 #. type: textblock
20076 #: ../fuse/guestmount.pod:59
20077 msgid ""
20078 "If you don't know what filesystems are contained in a guest or disk image, "
20079 "use L<virt-filesystems(1)> first:"
20080 msgstr ""
20081
20082 #. type: verbatim
20083 #: ../fuse/guestmount.pod:62
20084 #, no-wrap
20085 msgid ""
20086 " virt-filesystems MyGuest\n"
20087 "\n"
20088 msgstr ""
20089
20090 #. type: textblock
20091 #: ../fuse/guestmount.pod:64
20092 msgid ""
20093 "If you want to trace the libguestfs calls but without excessive debugging "
20094 "information, we recommend:"
20095 msgstr ""
20096
20097 #. type: verbatim
20098 #: ../fuse/guestmount.pod:67
20099 #, no-wrap
20100 msgid ""
20101 " guestmount [...] --trace /mnt\n"
20102 "\n"
20103 msgstr ""
20104
20105 #. type: textblock
20106 #: ../fuse/guestmount.pod:69
20107 msgid "If you want to debug the program, we recommend:"
20108 msgstr ""
20109
20110 #. type: verbatim
20111 #: ../fuse/guestmount.pod:71
20112 #, no-wrap
20113 msgid ""
20114 " guestmount [...] --trace --verbose /mnt\n"
20115 "\n"
20116 msgstr ""
20117
20118 #. type: =head1
20119 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20120 #: ../resize/virt-resize.pod:486
20121 msgid "NOTES"
20122 msgstr "ПРИМІТКИ"
20123
20124 #. type: =head2
20125 #: ../fuse/guestmount.pod:75
20126 msgid "Other users cannot see the filesystem by default"
20127 msgstr ""
20128
20129 #. type: textblock
20130 #: ../fuse/guestmount.pod:77
20131 msgid ""
20132 "If you mount a filesystem as one user (eg. root), then other users will not "
20133 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20134 "option when mounting:"
20135 msgstr ""
20136
20137 #. type: verbatim
20138 #: ../fuse/guestmount.pod:81
20139 #, no-wrap
20140 msgid ""
20141 " sudo guestmount [...] -o allow_other /mnt\n"
20142 "\n"
20143 msgstr ""
20144
20145 #. type: textblock
20146 #: ../fuse/guestmount.pod:91
20147 msgid "Add a block device or virtual machine image."
20148 msgstr ""
20149
20150 #. type: =item
20151 #: ../fuse/guestmount.pod:114
20152 msgid "B<--dir-cache-timeout N>"
20153 msgstr "B<--dir-cache-timeout N>"
20154
20155 #. type: textblock
20156 #: ../fuse/guestmount.pod:116
20157 msgid ""
20158 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20159 "seconds.  The readdir cache [actually, there are several semi-independent "
20160 "caches] is populated after a readdir(2) call with the stat and extended "
20161 "attributes of the files in the directory, in anticipation that they will be "
20162 "requested soon after."
20163 msgstr ""
20164
20165 #. type: textblock
20166 #: ../fuse/guestmount.pod:122
20167 msgid ""
20168 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20169 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20170 "requests, only cache existing ones."
20171 msgstr ""
20172
20173 #. type: textblock
20174 #: ../fuse/guestmount.pod:142
20175 msgid ""
20176 "If you have untrusted raw-format guest disk images, you should use this "
20177 "option to specify the disk format.  This avoids a possible security problem "
20178 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
20179 "guestfs_add_drive_opts>."
20180 msgstr ""
20181
20182 #. type: =item
20183 #: ../fuse/guestmount.pod:147
20184 msgid "B<--fuse-help>"
20185 msgstr "B<--fuse-help>"
20186
20187 #. type: textblock
20188 #: ../fuse/guestmount.pod:149
20189 msgid "Display help on special FUSE options (see I<-o> below)."
20190 msgstr ""
20191
20192 #. type: textblock
20193 #: ../fuse/guestmount.pod:153
20194 msgid "Display brief help and exit."
20195 msgstr ""
20196
20197 #. type: textblock
20198 #: ../fuse/guestmount.pod:177
20199 msgid ""
20200 "Mount the named partition or logical volume on the given mountpoint B<in the "
20201 "guest> (this has nothing to do with mountpoints in the host)."
20202 msgstr ""
20203
20204 #. type: textblock
20205 #: ../fuse/guestmount.pod:180
20206 msgid ""
20207 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20208 "something on C</>."
20209 msgstr ""
20210
20211 #. type: textblock
20212 #: ../fuse/guestmount.pod:197
20213 msgid ""
20214 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20215 "unmounted.  If you specify this option, then we don't attempt to sync the "
20216 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20217 msgstr ""
20218
20219 #. type: =item
20220 #: ../fuse/guestmount.pod:202
20221 #, fuzzy
20222 #| msgid "B<--partition>"
20223 msgid "B<-o option>"
20224 msgstr "B<--partition>"
20225
20226 #. type: =item
20227 #: ../fuse/guestmount.pod:204
20228 #, fuzzy
20229 #| msgid "B<--partition>"
20230 msgid "B<--option option>"
20231 msgstr "B<--partition>"
20232
20233 #. type: textblock
20234 #: ../fuse/guestmount.pod:206
20235 msgid "Pass extra options to FUSE."
20236 msgstr ""
20237
20238 #. type: textblock
20239 #: ../fuse/guestmount.pod:208
20240 msgid ""
20241 "To get a list of all the extra options supported by FUSE, use the command "
20242 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20243 "of them are a good idea."
20244 msgstr ""
20245
20246 #. type: verbatim
20247 #: ../fuse/guestmount.pod:212
20248 #, no-wrap
20249 msgid ""
20250 " guestmount --fuse-help\n"
20251 "\n"
20252 msgstr ""
20253
20254 #. type: textblock
20255 #: ../fuse/guestmount.pod:214
20256 msgid "Some potentially useful FUSE options:"
20257 msgstr ""
20258
20259 #. type: =item
20260 #: ../fuse/guestmount.pod:218
20261 msgid "B<-o allow_other>"
20262 msgstr ""
20263
20264 #. type: textblock
20265 #: ../fuse/guestmount.pod:220
20266 msgid "Allow other users to see the filesystem."
20267 msgstr ""
20268
20269 #. type: =item
20270 #: ../fuse/guestmount.pod:222
20271 msgid "B<-o attr_timeout=N>"
20272 msgstr "B<-o attr_timeout=N>"
20273
20274 #. type: textblock
20275 #: ../fuse/guestmount.pod:224
20276 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20277 msgstr ""
20278
20279 #. type: =item
20280 #: ../fuse/guestmount.pod:226
20281 msgid "B<-o kernel_cache>"
20282 msgstr ""
20283
20284 #. type: textblock
20285 #: ../fuse/guestmount.pod:228
20286 msgid ""
20287 "Allow the kernel to cache files (reduces the number of reads that have to go "
20288 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20289 "afford the extra memory usage."
20290 msgstr ""
20291
20292 #. type: =item
20293 #: ../fuse/guestmount.pod:232
20294 msgid "B<-o uid=N> B<-o gid=N>"
20295 msgstr ""
20296
20297 #. type: textblock
20298 #: ../fuse/guestmount.pod:234
20299 msgid ""
20300 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20301 "the chosen values."
20302 msgstr ""
20303
20304 #. type: textblock
20305 #: ../fuse/guestmount.pod:243
20306 msgid ""
20307 "Add devices and mount everything read-only.  Also disallow writes and make "
20308 "the disk appear read-only to FUSE."
20309 msgstr ""
20310
20311 #. type: textblock
20312 #: ../fuse/guestmount.pod:246
20313 msgid ""
20314 "This is highly recommended if you are not going to edit the guest disk.  If "
20315 "the guest is running and this option is I<not> supplied, then there is a "
20316 "strong risk of disk corruption in the guest.  We try to prevent this from "
20317 "happening, but it is not always possible."
20318 msgstr ""
20319
20320 #. type: textblock
20321 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20322 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20323 msgstr ""
20324
20325 #. type: textblock
20326 #: ../fuse/guestmount.pod:255
20327 msgid "Enable SELinux support for the guest."
20328 msgstr ""
20329
20330 #. type: textblock
20331 #: ../fuse/guestmount.pod:261
20332 msgid "Enable verbose messages from underlying libguestfs."
20333 msgstr ""
20334
20335 #. type: textblock
20336 #: ../fuse/guestmount.pod:267
20337 msgid "Display the program version and exit."
20338 msgstr ""
20339
20340 #. type: textblock
20341 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20342 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
20343 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20344 msgstr ""
20345
20346 #. type: =item
20347 #: ../fuse/guestmount.pod:280
20348 #, fuzzy
20349 #| msgid "B<--ro>"
20350 msgid "B<--trace>"
20351 msgstr "B<--ro>"
20352
20353 #. type: textblock
20354 #: ../fuse/guestmount.pod:282
20355 msgid "Trace libguestfs calls and entry into each FUSE function."
20356 msgstr ""
20357
20358 #. type: textblock
20359 #: ../fuse/guestmount.pod:284
20360 msgid "This also stops the daemon from forking into the background."
20361 msgstr ""
20362
20363 #. type: textblock
20364 #: ../fuse/guestmount.pod:305
20365 msgid ""
20366 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20367 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20368 "net/>."
20369 msgstr ""
20370
20371 #. type: textblock
20372 #: ../fuse/guestmount.pod:320
20373 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20374 msgstr ""
20375
20376 #. type: textblock
20377 #: ../inspector/virt-inspector.pod:5
20378 msgid ""
20379 "virt-inspector - Display operating system version and other information "
20380 "about a virtual machine"
20381 msgstr ""
20382
20383 #. type: verbatim
20384 #: ../inspector/virt-inspector.pod:9
20385 #, fuzzy, no-wrap
20386 #| msgid ""
20387 #| " virt-list-partitions [--options] domname\n"
20388 #| "\n"
20389 msgid ""
20390 " virt-inspector [--options] -d domname\n"
20391 "\n"
20392 msgstr ""
20393 " virt-list-partitions [--параметри] назва_домену\n"
20394 "\n"
20395
20396 #. type: verbatim
20397 #: ../inspector/virt-inspector.pod:11
20398 #, fuzzy, no-wrap
20399 #| msgid ""
20400 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20401 #| "\n"
20402 msgid ""
20403 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20404 "\n"
20405 msgstr ""
20406 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20407 "\n"
20408
20409 #. type: verbatim
20410 #: ../inspector/virt-inspector.pod:15
20411 #, fuzzy, no-wrap
20412 #| msgid ""
20413 #| " virt-list-partitions [--options] domname\n"
20414 #| "\n"
20415 msgid ""
20416 " virt-inspector domname\n"
20417 "\n"
20418 msgstr ""
20419 " virt-list-partitions [--параметри] назва_домену\n"
20420 "\n"
20421
20422 #. type: verbatim
20423 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20424 #, fuzzy, no-wrap
20425 #| msgid ""
20426 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20427 #| "\n"
20428 msgid ""
20429 " virt-inspector disk.img [disk.img ...]\n"
20430 "\n"
20431 msgstr ""
20432 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20433 "\n"
20434
20435 #. type: textblock
20436 #: ../inspector/virt-inspector.pod:21
20437 msgid ""
20438 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20439 "determine the version of the operating system and other information about "
20440 "the virtual machine."
20441 msgstr ""
20442
20443 #. type: textblock
20444 #: ../inspector/virt-inspector.pod:25
20445 msgid "Virt-inspector produces XML output for feeding into other programs."
20446 msgstr ""
20447
20448 #. type: textblock
20449 #: ../inspector/virt-inspector.pod:27
20450 msgid ""
20451 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20452 "the libvirt domain (see: C<virsh list --all>)."
20453 msgstr ""
20454
20455 #. type: textblock
20456 #: ../inspector/virt-inspector.pod:30
20457 msgid ""
20458 "You can also run virt-inspector directly on disk images from a single "
20459 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20460 "has several block devices, in which case you should list several I<-a> "
20461 "options one after another, with the first corresponding to the guest's C</"
20462 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20463 msgstr ""
20464
20465 #. type: textblock
20466 #: ../inspector/virt-inspector.pod:37
20467 msgid ""
20468 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20469 "keys and similar."
20470 msgstr ""
20471
20472 #. type: textblock
20473 #: ../inspector/virt-inspector.pod:40
20474 msgid ""
20475 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20476 "inspect several virtual machines, you have to run virt-inspector several "
20477 "times (for example, from a shell script for-loop)."
20478 msgstr ""
20479
20480 #. type: textblock
20481 #: ../inspector/virt-inspector.pod:45
20482 msgid ""
20483 "Because virt-inspector needs direct access to guest images, it won't "
20484 "normally work over remote libvirt connections."
20485 msgstr ""
20486
20487 #. type: textblock
20488 #: ../inspector/virt-inspector.pod:48
20489 msgid ""
20490 "All of the information available from virt-inspector is also available "
20491 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20492 "The same information can also be fetched using guestfish or via libguestfs "
20493 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20494 "WITH OTHER PROGRAMMING LANGUAGES>)."
20495 msgstr ""
20496
20497 #. type: textblock
20498 #: ../inspector/virt-inspector.pod:81
20499 msgid ""
20500 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20501 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20502 "at all."
20503 msgstr ""
20504
20505 #. type: textblock
20506 #: ../inspector/virt-inspector.pod:94
20507 msgid ""
20508 "When prompting for keys and passphrases, virt-inspector normally turns "
20509 "echoing off so you cannot see what you are typing.  If you are not worried "
20510 "about Tempest attacks and there is no one else in the room you can specify "
20511 "this flag to see what you are typing."
20512 msgstr ""
20513
20514 #. type: textblock
20515 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20516 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20517 #: ../tools/virt-win-reg.pl:144
20518 msgid ""
20519 "Specify the format of disk images given on the command line.  If this is "
20520 "omitted then the format is autodetected from the content of the disk image."
20521 msgstr ""
20522
20523 #. type: textblock
20524 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20525 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20526 #: ../tools/virt-win-reg.pl:148
20527 msgid ""
20528 "If disk images are requested from libvirt, then this program asks libvirt "
20529 "for this information.  In this case, the value of the format parameter is "
20530 "ignored."
20531 msgstr ""
20532
20533 #. type: textblock
20534 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20535 #: ../resize/virt-resize.pod:400 ../tools/virt-list-filesystems.pl:101
20536 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20537 #: ../tools/virt-win-reg.pl:152
20538 msgid ""
20539 "If working with untrusted raw-format guest disk images, you should ensure "
20540 "the format is always specified."
20541 msgstr ""
20542
20543 #. type: textblock
20544 #: ../inspector/virt-inspector.pod:139
20545 msgid "Previous versions of virt-inspector allowed you to write either:"
20546 msgstr ""
20547
20548 #. type: verbatim
20549 #: ../inspector/virt-inspector.pod:145
20550 #, fuzzy, no-wrap
20551 #| msgid ""
20552 #| " inspect-get-hostname root\n"
20553 #| "\n"
20554 msgid ""
20555 " virt-inspector guestname\n"
20556 "\n"
20557 msgstr ""
20558 " inspect-get-hostname корінь\n"
20559 "\n"
20560
20561 #. type: =head1
20562 #: ../inspector/virt-inspector.pod:153
20563 msgid "XML FORMAT"
20564 msgstr ""
20565
20566 #. type: textblock
20567 #: ../inspector/virt-inspector.pod:155
20568 msgid ""
20569 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20570 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
20571 "just an overview."
20572 msgstr ""
20573
20574 #. type: textblock
20575 #: ../inspector/virt-inspector.pod:159
20576 msgid ""
20577 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20578 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
20579 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20580 "which is vanishingly rare in real world VMs."
20581 msgstr ""
20582
20583 #. type: =head2
20584 #: ../inspector/virt-inspector.pod:164
20585 msgid "E<lt>operatingsystemE<gt>"
20586 msgstr ""
20587
20588 #. type: textblock
20589 #: ../inspector/virt-inspector.pod:166
20590 msgid ""
20591 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20592 "describe the operating system, its architecture, the descriptive \"product "
20593 "name\" string, the type of OS and so on, as in this example:"
20594 msgstr ""
20595
20596 #. type: verbatim
20597 #: ../inspector/virt-inspector.pod:170
20598 #, no-wrap
20599 msgid ""
20600 " <operatingsystems>\n"
20601 "   <operatingsystem>\n"
20602 "     <root>/dev/sda2</root>\n"
20603 "     <name>windows</name>\n"
20604 "     <arch>i386</arch>\n"
20605 "     <distro>windows</distro>\n"
20606 "     <product_name>Windows 7 Enterprise</product_name>\n"
20607 "     <product_variant>Client</product_variant>\n"
20608 "     <major_version>6</major_version>\n"
20609 "     <minor_version>1</minor_version>\n"
20610 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20611 "     <format>installed</format>\n"
20612 "\n"
20613 msgstr ""
20614
20615 #. type: textblock
20616 #: ../inspector/virt-inspector.pod:183
20617 msgid ""
20618 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20619 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20620 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20621 "architecture.  The other fields are fairly self-explanatory, but because "
20622 "these fields are taken directly from the libguestfs inspection API you can "
20623 "find precise information from L<guestfs(3)/INSPECTION>."
20624 msgstr ""
20625
20626 #. type: textblock
20627 #: ../inspector/virt-inspector.pod:191
20628 msgid ""
20629 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20630 "of view of libguestfs (block devices may have completely different names "
20631 "inside the VM itself)."
20632 msgstr ""
20633
20634 #. type: =head2
20635 #: ../inspector/virt-inspector.pod:195
20636 #, fuzzy
20637 #| msgid "mountpoints"
20638 msgid "E<lt>mountpointsE<gt>"
20639 msgstr "mountpoints"
20640
20641 #. type: textblock
20642 #: ../inspector/virt-inspector.pod:197
20643 msgid ""
20644 "Un*x-like guests typically have multiple filesystems which are mounted at "
20645 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20646 "element which looks like this:"
20647 msgstr ""
20648
20649 #. type: verbatim
20650 #: ../inspector/virt-inspector.pod:201
20651 #, no-wrap
20652 msgid ""
20653 " <operatingsystems>\n"
20654 "   <operatingsystem>\n"
20655 "     ...\n"
20656 "     <mountpoints>\n"
20657 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20658 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20659 "     </mountpoints>\n"
20660 "\n"
20661 msgstr ""
20662
20663 #. type: textblock
20664 #: ../inspector/virt-inspector.pod:209
20665 msgid ""
20666 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20667 "and may have completely different names inside the guest.  Only mountable "
20668 "filesystems appear in this list, not things like swap devices."
20669 msgstr ""
20670
20671 #. type: =head2
20672 #: ../inspector/virt-inspector.pod:214
20673 #, fuzzy
20674 #| msgid "list-filesystems"
20675 msgid "E<lt>filesystemsE<gt>"
20676 msgstr "list-filesystems"
20677
20678 #. type: textblock
20679 #: ../inspector/virt-inspector.pod:216
20680 msgid ""
20681 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20682 "filesystems belonging to the guest, including swap and empty partitions.  "
20683 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20684 "this OS or shared with this OS and other OSes)."
20685 msgstr ""
20686
20687 #. type: textblock
20688 #: ../inspector/virt-inspector.pod:222
20689 msgid "You might see something like this:"
20690 msgstr ""
20691
20692 #. type: verbatim
20693 #: ../inspector/virt-inspector.pod:224
20694 #, no-wrap
20695 msgid ""
20696 " <operatingsystems>\n"
20697 "   <operatingsystem>\n"
20698 "     ...\n"
20699 "     <filesystems>\n"
20700 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20701 "         <type>ext4</type>\n"
20702 "         <label>Fedora-13-x86_64</label>\n"
20703 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20704 "       </filesystem>\n"
20705 "\n"
20706 msgstr ""
20707
20708 #. type: textblock
20709 #: ../inspector/virt-inspector.pod:234
20710 msgid ""
20711 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20712 "the label, and the UUID."
20713 msgstr ""
20714
20715 #. type: =head2
20716 #: ../inspector/virt-inspector.pod:237
20717 msgid "E<lt>applicationsE<gt>"
20718 msgstr ""
20719
20720 #. type: textblock
20721 #: ../inspector/virt-inspector.pod:239
20722 msgid ""
20723 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20724 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20725 "machine."
20726 msgstr ""
20727
20728 #. type: textblock
20729 #: ../inspector/virt-inspector.pod:243
20730 msgid ""
20731 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
20732 "Typical values would be C<rpm> and C<deb>."
20733 msgstr ""
20734
20735 #. type: textblock
20736 #: ../inspector/virt-inspector.pod:246
20737 msgid ""
20738 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
20739 "Typical values include C<yum>, C<up2date> and C<apt>"
20740 msgstr ""
20741
20742 #. type: textblock
20743 #: ../inspector/virt-inspector.pod:249
20744 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20745 msgstr ""
20746
20747 #. type: verbatim
20748 #: ../inspector/virt-inspector.pod:252
20749 #, no-wrap
20750 msgid ""
20751 " <operatingsystems>\n"
20752 "   <operatingsystem>\n"
20753 "     ...\n"
20754 "     <applications>\n"
20755 "       <application>\n"
20756 "         <name>coreutils</name>\n"
20757 "         <version>8.5</version>\n"
20758 "         <release>1</release>\n"
20759 "       </application>\n"
20760 "\n"
20761 msgstr ""
20762
20763 #. type: textblock
20764 #: ../inspector/virt-inspector.pod:262
20765 msgid ""
20766 "The version and release fields may not be available for some types guests.  "
20767 "Other fields are possible, see L<guestfs(3)/"
20768 "guestfs_inspect_list_applications>."
20769 msgstr ""
20770
20771 #. type: =head2
20772 #: ../inspector/virt-inspector.pod:266
20773 msgid "E<lt>drive_mappingsE<gt>"
20774 msgstr ""
20775
20776 #. type: textblock
20777 #: ../inspector/virt-inspector.pod:268
20778 msgid ""
20779 "For operating systems like Windows which use drive letters, virt-inspector "
20780 "is able to find out how drive letters map to filesystems."
20781 msgstr ""
20782
20783 #. type: verbatim
20784 #: ../inspector/virt-inspector.pod:272
20785 #, no-wrap
20786 msgid ""
20787 " <operatingsystems>\n"
20788 "   <operatingsystem>\n"
20789 "     ...\n"
20790 "     <drive_mappings>\n"
20791 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20792 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20793 "     </drive_mappings>\n"
20794 "\n"
20795 msgstr ""
20796
20797 #. type: textblock
20798 #: ../inspector/virt-inspector.pod:280
20799 msgid ""
20800 "In the example above, drive C maps to the filesystem on the second partition "
20801 "on the first disk, and drive E maps to the filesystem on the first partition "
20802 "on the second disk."
20803 msgstr ""
20804
20805 #. type: textblock
20806 #: ../inspector/virt-inspector.pod:284
20807 msgid ""
20808 "Note that this only covers permanent local filesystem mappings, not things "
20809 "like network shares.  Furthermore NTFS volume mount points may not be listed "
20810 "here."
20811 msgstr ""
20812
20813 #. type: =head2
20814 #: ../inspector/virt-inspector.pod:288
20815 #, fuzzy
20816 #| msgid "B<-s E<lt>NE<gt>>"
20817 msgid "E<lt>iconE<gt>"
20818 msgstr "B<-s E<lt>NE<gt>>"
20819
20820 #. type: textblock
20821 #: ../inspector/virt-inspector.pod:290
20822 msgid ""
20823 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
20824 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
20825 "very large and high quality."
20826 msgstr ""
20827
20828 #. type: verbatim
20829 #: ../inspector/virt-inspector.pod:294
20830 #, no-wrap
20831 msgid ""
20832 " <operatingsystems>\n"
20833 "   <operatingsystem>\n"
20834 "     ...\n"
20835 "     <icon>\n"
20836 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20837 "       [... many lines of base64 data ...]\n"
20838 "     </icon>\n"
20839 "\n"
20840 msgstr ""
20841
20842 #. type: textblock
20843 #: ../inspector/virt-inspector.pod:302
20844 msgid ""
20845 "To display the icon, you have to extract it and convert the base64 data back "
20846 "to a binary file.  Use an XPath query or simply an editor to extract the "
20847 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20848 "to a PNG file:"
20849 msgstr ""
20850
20851 #. type: verbatim
20852 #: ../inspector/virt-inspector.pod:307
20853 #, no-wrap
20854 msgid ""
20855 " base64 -i -d < icon.data > icon.png\n"
20856 "\n"
20857 msgstr ""
20858
20859 #. type: =head2
20860 #: ../inspector/virt-inspector.pod:309
20861 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20862 msgstr ""
20863
20864 #. type: textblock
20865 #: ../inspector/virt-inspector.pod:311
20866 msgid ""
20867 "Virt-inspector can detect some operating system installers on install disks, "
20868 "live CDs, bootable USB keys and more."
20869 msgstr ""
20870
20871 #. type: textblock
20872 #: ../inspector/virt-inspector.pod:314
20873 msgid ""
20874 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20875 "fields may be present to indicate a live CD, network installer, or one part "
20876 "of a multipart CD.  For example:"
20877 msgstr ""
20878
20879 #. type: verbatim
20880 #: ../inspector/virt-inspector.pod:318
20881 #, no-wrap
20882 msgid ""
20883 " <operatingsystems>\n"
20884 "   <operatingsystem>\n"
20885 "     <root>/dev/sda</root>\n"
20886 "     <name>linux</name>\n"
20887 "     <arch>i386</arch>\n"
20888 "     <distro>ubuntu</distro>\n"
20889 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
20890 "     <major_version>10</major_version>\n"
20891 "     <minor_version>10</minor_version>\n"
20892 "     <format>installer</format>\n"
20893 "     <live/>\n"
20894 "\n"
20895 msgstr ""
20896
20897 #. type: =head1
20898 #: ../inspector/virt-inspector.pod:330
20899 msgid "USING XPATH"
20900 msgstr ""
20901
20902 #. type: textblock
20903 #: ../inspector/virt-inspector.pod:332
20904 msgid ""
20905 "You can use the XPath query language, and/or the xpath tool, in order to "
20906 "select parts of the XML."
20907 msgstr ""
20908
20909 #. type: verbatim
20910 #: ../inspector/virt-inspector.pod:337
20911 #, no-wrap
20912 msgid ""
20913 " $ virt-inspector -d Guest | xpath //filesystems\n"
20914 " Found 1 nodes:\n"
20915 " -- NODE --\n"
20916 " <filesystems>\n"
20917 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20918 "        <type>ext4</type>\n"
20919 " [etc]\n"
20920 "\n"
20921 msgstr ""
20922
20923 #. type: verbatim
20924 #: ../inspector/virt-inspector.pod:345
20925 #, no-wrap
20926 msgid ""
20927 " $ virt-inspector -d Guest | \\\n"
20928 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20929 " Query didn't return a nodeset. Value: ext4\n"
20930 "\n"
20931 msgstr ""
20932
20933 #. type: =head1
20934 #: ../inspector/virt-inspector.pod:356
20935 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20936 msgstr ""
20937
20938 #. type: textblock
20939 #: ../inspector/virt-inspector.pod:358
20940 msgid ""
20941 "Early versions of libguestfs shipped with a different virt-inspector program "
20942 "written in Perl (the current version is written in C).  The XML output of "
20943 "the Perl virt-inspector was different and it could also output in other "
20944 "formats like text."
20945 msgstr ""
20946
20947 #. type: textblock
20948 #: ../inspector/virt-inspector.pod:363
20949 msgid ""
20950 "The old virt-inspector is no longer supported or shipped with libguestfs."
20951 msgstr ""
20952
20953 #. type: textblock
20954 #: ../inspector/virt-inspector.pod:366
20955 msgid ""
20956 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20957 "versions of virt-inspector with different names:"
20958 msgstr ""
20959
20960 #. type: verbatim
20961 #: ../inspector/virt-inspector.pod:369
20962 #, no-wrap
20963 msgid ""
20964 " virt-inspector     Old Perl version.\n"
20965 " virt-inspector2    New C version.\n"
20966 "\n"
20967 msgstr ""
20968
20969 #. type: textblock
20970 #: ../inspector/virt-inspector.pod:374
20971 msgid ""
20972 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20973 ">, L<http://libguestfs.org/>."
20974 msgstr ""
20975
20976 #. type: textblock
20977 #: ../inspector/virt-inspector.pod:390
20978 msgid "Matthew Booth L<mbooth@redhat.com>"
20979 msgstr ""
20980
20981 #. type: textblock
20982 #: ../java/examples/guestfs-java.pod:5
20983 msgid "guestfs-java - How to use libguestfs from Java"
20984 msgstr ""
20985
20986 #. type: verbatim
20987 #: ../java/examples/guestfs-java.pod:9
20988 #, no-wrap
20989 msgid ""
20990 " import com.redhat.et.libguestfs.*;\n"
20991 " \n"
20992 msgstr ""
20993
20994 #. type: verbatim
20995 #: ../java/examples/guestfs-java.pod:11
20996 #, no-wrap
20997 msgid ""
20998 " GuestFS g = new GuestFS ();\n"
20999 " g.add_drive_opts (\"disk.img\", null);\n"
21000 " g.launch ();\n"
21001 "\n"
21002 msgstr ""
21003
21004 #. type: textblock
21005 #: ../java/examples/guestfs-java.pod:17
21006 msgid ""
21007 "This manual page documents how to call libguestfs from the Java programming "
21008 "language.  This page just documents the differences from the C API and gives "
21009 "some examples.  If you are not familiar with using libguestfs, you also need "
21010 "to read L<guestfs(3)>."
21011 msgstr ""
21012
21013 #. type: =head2
21014 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21015 msgid "CLOSING THE HANDLE"
21016 msgstr ""
21017
21018 #. type: textblock
21019 #: ../java/examples/guestfs-java.pod:24
21020 msgid ""
21021 "The handle is closed when it is reaped by the garbage collector.  Because "
21022 "libguestfs handles include a lot of state, it is also possible to close (and "
21023 "hence free) them explicitly by calling the C<close> method."
21024 msgstr ""
21025
21026 #. type: =head2
21027 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21028 #: ../python/examples/guestfs-python.pod:21
21029 #: ../ruby/examples/guestfs-ruby.pod:22
21030 #, fuzzy
21031 #| msgid "OPTIONS"
21032 msgid "EXCEPTIONS"
21033 msgstr "ПАРАМЕТРИ"
21034
21035 #. type: textblock
21036 #: ../java/examples/guestfs-java.pod:31
21037 msgid ""
21038 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21039 "exception.  This has a single parameter which is the error message (a "
21040 "C<String>)."
21041 msgstr ""
21042
21043 #. type: textblock
21044 #: ../java/examples/guestfs-java.pod:35
21045 msgid "Calling any method on a closed handle raises the same exception."
21046 msgstr ""
21047
21048 #. type: textblock
21049 #: ../java/examples/guestfs-java.pod:47
21050 #, fuzzy
21051 #| msgid ""
21052 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21053 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21054 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21055 msgid ""
21056 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
21057 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21058 "libguestfs.org/>, L<http://caml.inria.fr/>."
21059 msgstr ""
21060 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21061 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21062 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21063
21064 #. type: textblock
21065 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
21066 #, fuzzy
21067 #| msgid "Copyright (C) 2009 Red Hat Inc."
21068 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21069 msgstr "© Red Hat Inc., 2009"
21070
21071 #. type: textblock
21072 #: ../ocaml/examples/guestfs-ocaml.pod:5
21073 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21074 msgstr ""
21075
21076 #. type: textblock
21077 #: ../ocaml/examples/guestfs-ocaml.pod:9
21078 msgid "Module style:"
21079 msgstr ""
21080
21081 #. type: verbatim
21082 #: ../ocaml/examples/guestfs-ocaml.pod:11
21083 #, no-wrap
21084 msgid ""
21085 " let g = Guestfs.create () in\n"
21086 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21087 " Guestfs.launch g;\n"
21088 "\n"
21089 msgstr ""
21090
21091 #. type: textblock
21092 #: ../ocaml/examples/guestfs-ocaml.pod:15
21093 msgid "Object-oriented style:"
21094 msgstr ""
21095
21096 #. type: verbatim
21097 #: ../ocaml/examples/guestfs-ocaml.pod:17
21098 #, no-wrap
21099 msgid ""
21100 " let g = new Guestfs.guestfs () in\n"
21101 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21102 " g#launch ();\n"
21103 "\n"
21104 msgstr ""
21105
21106 #. type: verbatim
21107 #: ../ocaml/examples/guestfs-ocaml.pod:21
21108 #, no-wrap
21109 msgid ""
21110 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21111 "or:\n"
21112 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21113 "\n"
21114 msgstr ""
21115
21116 #. type: textblock
21117 #: ../ocaml/examples/guestfs-ocaml.pod:27
21118 msgid ""
21119 "This manual page documents how to call libguestfs from the OCaml programming "
21120 "language.  This page just documents the differences from the C API and gives "
21121 "some examples.  If you are not familiar with using libguestfs, you also need "
21122 "to read L<guestfs(3)>."
21123 msgstr ""
21124
21125 #. type: =head2
21126 #: ../ocaml/examples/guestfs-ocaml.pod:32
21127 msgid "PROGRAMMING STYLES"
21128 msgstr ""
21129
21130 #. type: textblock
21131 #: ../ocaml/examples/guestfs-ocaml.pod:34
21132 msgid ""
21133 "There are two different programming styles supported by the OCaml bindings.  "
21134 "You can use a module style, with each C function mapped to an OCaml function:"
21135 msgstr ""
21136
21137 #. type: verbatim
21138 #: ../ocaml/examples/guestfs-ocaml.pod:38
21139 #, fuzzy, no-wrap
21140 #| msgid ""
21141 #| " int guestfs_last_errno (guestfs_h *g);\n"
21142 #| "\n"
21143 msgid ""
21144 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21145 "\n"
21146 msgstr ""
21147 " int guestfs_last_errno (guestfs_h *g);\n"
21148 "\n"
21149
21150 #. type: textblock
21151 #: ../ocaml/examples/guestfs-ocaml.pod:40
21152 msgid "becomes:"
21153 msgstr ""
21154
21155 #. type: verbatim
21156 #: ../ocaml/examples/guestfs-ocaml.pod:42
21157 #, no-wrap
21158 msgid ""
21159 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21160 "\n"
21161 msgstr ""
21162
21163 #. type: textblock
21164 #: ../ocaml/examples/guestfs-ocaml.pod:44
21165 msgid ""
21166 "Alternately you can use an object-oriented style, calling methods on the "
21167 "class C<Guestfs.guestfs>:"
21168 msgstr ""
21169
21170 #. type: verbatim
21171 #: ../ocaml/examples/guestfs-ocaml.pod:47
21172 #, no-wrap
21173 msgid ""
21174 " method set_verbose : bool -> unit\n"
21175 "\n"
21176 msgstr ""
21177
21178 #. type: textblock
21179 #: ../ocaml/examples/guestfs-ocaml.pod:49
21180 msgid ""
21181 "The object-oriented style is usually briefer, and the minor performance "
21182 "penalty isn't noticable in the general overhead of performing libguestfs "
21183 "functions."
21184 msgstr ""
21185
21186 #. type: textblock
21187 #: ../ocaml/examples/guestfs-ocaml.pod:55
21188 msgid ""
21189 "The handle is closed when it is reaped by the garbage collector.  Because "
21190 "libguestfs handles include a lot of state, it is also possible to close (and "
21191 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21192 "method."
21193 msgstr ""
21194
21195 #. type: textblock
21196 #: ../ocaml/examples/guestfs-ocaml.pod:62
21197 msgid ""
21198 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21199 "exception.  This has a single parameter which is the error message (a "
21200 "string)."
21201 msgstr ""
21202
21203 #. type: textblock
21204 #: ../ocaml/examples/guestfs-ocaml.pod:66
21205 msgid ""
21206 "Calling any function/method on a closed handle raises C<Guestfs."
21207 "Handle_closed>.  The single parameter is the name of the function that you "
21208 "called."
21209 msgstr ""
21210
21211 #. type: textblock
21212 #: ../ocaml/examples/guestfs-ocaml.pod:80
21213 #, fuzzy
21214 #| msgid ""
21215 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21216 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21217 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21218 msgid ""
21219 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
21220 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21221 "libguestfs.org/>, L<http://caml.inria.fr/>."
21222 msgstr ""
21223 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21224 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21225 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21226
21227 #. type: textblock
21228 #: ../perl/examples/guestfs-perl.pod:5
21229 msgid "guestfs-perl - How to use libguestfs from Perl"
21230 msgstr ""
21231
21232 #. type: verbatim
21233 #: ../perl/examples/guestfs-perl.pod:9
21234 #, no-wrap
21235 msgid ""
21236 " use Sys::Guestfs;\n"
21237 " \n"
21238 msgstr ""
21239
21240 #. type: verbatim
21241 #: ../perl/examples/guestfs-perl.pod:11
21242 #, no-wrap
21243 msgid ""
21244 " my $h = Sys::Guestfs->new ();\n"
21245 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21246 " $h->launch ();\n"
21247 " $h->mount_options ('', '/dev/sda1', '/');\n"
21248 " $h->touch ('/hello');\n"
21249 " $h->sync ();\n"
21250 "\n"
21251 msgstr ""
21252
21253 #. type: textblock
21254 #: ../perl/examples/guestfs-perl.pod:20
21255 msgid ""
21256 "This manual page documents how to call libguestfs from the Perl programming "
21257 "language.  This page just documents the differences from the C API and gives "
21258 "some examples.  If you are not familiar with using libguestfs, you also need "
21259 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21260 msgstr ""
21261
21262 #. type: =head2
21263 #: ../perl/examples/guestfs-perl.pod:26
21264 msgid "ERRORS"
21265 msgstr ""
21266
21267 #. type: textblock
21268 #: ../perl/examples/guestfs-perl.pod:28
21269 msgid ""
21270 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21271 ">)."
21272 msgstr ""
21273
21274 #. type: textblock
21275 #: ../perl/examples/guestfs-perl.pod:41
21276 #, fuzzy
21277 #| msgid ""
21278 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21279 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21280 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21281 msgid ""
21282 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
21283 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21284 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21285 msgstr ""
21286 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21287 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21288 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21289
21290 #. type: textblock
21291 #: ../python/examples/guestfs-python.pod:5
21292 msgid "guestfs-python - How to use libguestfs from Python"
21293 msgstr ""
21294
21295 #. type: verbatim
21296 #: ../python/examples/guestfs-python.pod:9
21297 #, no-wrap
21298 msgid ""
21299 " import guestfs\n"
21300 " g = guestfs.GuestFS ()\n"
21301 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21302 " g.launch\n"
21303 "\n"
21304 msgstr ""
21305
21306 #. type: textblock
21307 #: ../python/examples/guestfs-python.pod:16
21308 msgid ""
21309 "This manual page documents how to call libguestfs from the Python "
21310 "programming language.  This page just documents the differences from the C "
21311 "API and gives some examples.  If you are not familiar with using libguestfs, "
21312 "you also need to read L<guestfs(3)>."
21313 msgstr ""
21314
21315 #. type: textblock
21316 #: ../python/examples/guestfs-python.pod:23
21317 msgid ""
21318 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21319 "single string argument which is the error message."
21320 msgstr ""
21321
21322 #. type: =head2
21323 #: ../python/examples/guestfs-python.pod:26
21324 msgid "MORE DOCUMENTATION"
21325 msgstr ""
21326
21327 #. type: textblock
21328 #: ../python/examples/guestfs-python.pod:28
21329 msgid "Type:"
21330 msgstr ""
21331
21332 #. type: verbatim
21333 #: ../python/examples/guestfs-python.pod:30
21334 #, no-wrap
21335 msgid ""
21336 " $ python\n"
21337 " >>> import guestfs\n"
21338 " >>> help (guestfs)\n"
21339 "\n"
21340 msgstr ""
21341
21342 #. type: textblock
21343 #: ../python/examples/guestfs-python.pod:44
21344 #, fuzzy
21345 #| msgid ""
21346 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21347 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21348 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21349 msgid ""
21350 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21351 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21352 "libguestfs.org/>."
21353 msgstr ""
21354 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21355 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21356 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21357
21358 #. type: textblock
21359 #: ../rescue/virt-rescue.pod:5
21360 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21361 msgstr ""
21362
21363 #. type: verbatim
21364 #: ../rescue/virt-rescue.pod:9
21365 #, fuzzy, no-wrap
21366 #| msgid ""
21367 #| " virt-list-partitions [--options] domname\n"
21368 #| "\n"
21369 msgid ""
21370 " virt-rescue [--options] -d domname\n"
21371 "\n"
21372 msgstr ""
21373 " virt-list-partitions [--параметри] назва_домену\n"
21374 "\n"
21375
21376 #. type: verbatim
21377 #: ../rescue/virt-rescue.pod:11
21378 #, fuzzy, no-wrap
21379 #| msgid ""
21380 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21381 #| "\n"
21382 msgid ""
21383 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21384 "\n"
21385 msgstr ""
21386 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21387 "\n"
21388
21389 #. type: verbatim
21390 #: ../rescue/virt-rescue.pod:15
21391 #, fuzzy, no-wrap
21392 #| msgid ""
21393 #| " virt-list-partitions [--options] domname\n"
21394 #| "\n"
21395 msgid ""
21396 " virt-rescue [--options] domname\n"
21397 "\n"
21398 msgstr ""
21399 " virt-list-partitions [--параметри] назва_домену\n"
21400 "\n"
21401
21402 #. type: verbatim
21403 #: ../rescue/virt-rescue.pod:17
21404 #, fuzzy, no-wrap
21405 #| msgid ""
21406 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21407 #| "\n"
21408 msgid ""
21409 " virt-rescue [--options] disk.img [disk.img ...]\n"
21410 "\n"
21411 msgstr ""
21412 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21413 "\n"
21414
21415 #. type: textblock
21416 #: ../rescue/virt-rescue.pod:21
21417 msgid ""
21418 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21419 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21420 "you from doing this, but doesn't catch all cases."
21421 msgstr ""
21422
21423 #. type: textblock
21424 #: ../rescue/virt-rescue.pod:25
21425 msgid ""
21426 "However if you use the I<--ro> (read only) option, then you can attach a "
21427 "shell to a live virtual machine.  The results might be strange or "
21428 "inconsistent at times but you won't get disk corruption."
21429 msgstr ""
21430
21431 #. type: textblock
21432 #: ../rescue/virt-rescue.pod:31
21433 msgid ""
21434 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21435 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21436 "recovery tools which you can use to examine or rescue a virtual machine or "
21437 "disk image."
21438 msgstr ""
21439
21440 #. type: textblock
21441 #: ../rescue/virt-rescue.pod:36
21442 msgid ""
21443 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21444 "on disk image(s):"
21445 msgstr ""
21446
21447 #. type: verbatim
21448 #: ../rescue/virt-rescue.pod:39
21449 #, no-wrap
21450 msgid ""
21451 " virt-rescue -d GuestName\n"
21452 "\n"
21453 msgstr ""
21454
21455 #. type: verbatim
21456 #: ../rescue/virt-rescue.pod:41
21457 #, no-wrap
21458 msgid ""
21459 " virt-rescue --ro -a /path/to/disk.img\n"
21460 "\n"
21461 msgstr ""
21462
21463 #. type: verbatim
21464 #: ../rescue/virt-rescue.pod:43
21465 #, no-wrap
21466 msgid ""
21467 " virt-rescue -a /dev/sdc\n"
21468 "\n"
21469 msgstr ""
21470
21471 #. type: textblock
21472 #: ../rescue/virt-rescue.pod:45
21473 msgid "For live VMs you I<must> use the --ro option."
21474 msgstr ""
21475
21476 #. type: textblock
21477 #: ../rescue/virt-rescue.pod:47
21478 msgid ""
21479 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21480 "in an interactive bash shell where you can use many ordinary Linux "
21481 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21482 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21483 "is an empty directory called C</sysroot> where you can mount filesystems."
21484 msgstr ""
21485
21486 #. type: textblock
21487 #: ../rescue/virt-rescue.pod:54
21488 msgid ""
21489 "In the example below, we list logical volumes, then choose one to mount "
21490 "under C</sysroot>:"
21491 msgstr ""
21492
21493 #. type: verbatim
21494 #: ../rescue/virt-rescue.pod:57
21495 #, no-wrap
21496 msgid ""
21497 " ><rescue> lvs\n"
21498 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21499 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21500 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21501 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21502 " ><rescue> ls /sysroot\n"
21503 "\n"
21504 msgstr ""
21505
21506 #. type: textblock
21507 #: ../rescue/virt-rescue.pod:64
21508 msgid ""
21509 "If you don't know what filesystems are available on the virtual machine then "
21510 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21511 msgstr ""
21512
21513 #. type: textblock
21514 #: ../rescue/virt-rescue.pod:70
21515 msgid ""
21516 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21517 "virtual machine.  For example you can use it on a blank file if you want to "
21518 "partition that file (although we would recommend using L<guestfish(1)> "
21519 "instead as it is more suitable for this purpose).  You can even use virt-"
21520 "rescue on things like SD cards."
21521 msgstr ""
21522
21523 #. type: textblock
21524 #: ../rescue/virt-rescue.pod:76
21525 msgid ""
21526 "Virt-rescue does not require root.  You only need to run it as root if you "
21527 "need root to open the disk image."
21528 msgstr ""
21529
21530 #. type: textblock
21531 #: ../rescue/virt-rescue.pod:79
21532 msgid ""
21533 "This tool is just designed for quick interactive hacking on a virtual "
21534 "machine.  For more structured access to a virtual machine disk image, you "
21535 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21536 "make scripted changes to guests, use L<guestfish(1)>."
21537 msgstr ""
21538
21539 #. type: =item
21540 #: ../rescue/virt-rescue.pod:103
21541 msgid "B<--append kernelopts>"
21542 msgstr ""
21543
21544 #. type: textblock
21545 #: ../rescue/virt-rescue.pod:105
21546 msgid "Pass additional options to the rescue kernel."
21547 msgstr ""
21548
21549 #. type: verbatim
21550 #: ../rescue/virt-rescue.pod:135
21551 #, fuzzy, no-wrap
21552 #| msgid ""
21553 #| " guestfish --format=raw -a disk.img\n"
21554 #| "\n"
21555 msgid ""
21556 " virt-rescue --format=raw -a disk.img\n"
21557 "\n"
21558 msgstr ""
21559 " guestfish --format=raw -a disk.img\n"
21560 "\n"
21561
21562 #. type: verbatim
21563 #: ../rescue/virt-rescue.pod:139
21564 #, fuzzy, no-wrap
21565 #| msgid ""
21566 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21567 #| "\n"
21568 msgid ""
21569 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21570 "\n"
21571 msgstr ""
21572 " guestfish --format=raw -a disk.img --format -a another.img\n"
21573 "\n"
21574
21575 #. type: =item
21576 #: ../rescue/virt-rescue.pod:148
21577 msgid "B<-m MB>"
21578 msgstr ""
21579
21580 #. type: =item
21581 #: ../rescue/virt-rescue.pod:150
21582 #, fuzzy
21583 #| msgid "B<--merge>"
21584 msgid "B<--memsize MB>"
21585 msgstr "B<--merge>"
21586
21587 #. type: textblock
21588 #: ../rescue/virt-rescue.pod:152
21589 msgid ""
21590 "Change the amount of memory allocated to the rescue system.  The default is "
21591 "set by libguestfs and is small but adequate for running system tools.  The "
21592 "occasional program might need more memory.  The parameter is specified in "
21593 "megabytes."
21594 msgstr ""
21595
21596 #. type: =item
21597 #: ../rescue/virt-rescue.pod:157
21598 #, fuzzy
21599 #| msgid "B<--inspector>"
21600 msgid "B<--network>"
21601 msgstr "B<--inspector>"
21602
21603 #. type: textblock
21604 #: ../rescue/virt-rescue.pod:159
21605 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
21606 msgstr ""
21607
21608 #. type: textblock
21609 #: ../rescue/virt-rescue.pod:165
21610 msgid "Open the image read-only."
21611 msgstr ""
21612
21613 #. type: textblock
21614 #: ../rescue/virt-rescue.pod:175
21615 msgid ""
21616 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
21617 "SELINUX> before using this option."
21618 msgstr ""
21619
21620 #. type: textblock
21621 #: ../rescue/virt-rescue.pod:194
21622 msgid ""
21623 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21624 "are done read-write."
21625 msgstr ""
21626
21627 #. type: textblock
21628 #: ../rescue/virt-rescue.pod:207
21629 msgid "Previous versions of virt-rescue allowed you to write either:"
21630 msgstr ""
21631
21632 #. type: verbatim
21633 #: ../rescue/virt-rescue.pod:209
21634 #, fuzzy, no-wrap
21635 #| msgid ""
21636 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21637 #| "\n"
21638 msgid ""
21639 " virt-rescue disk.img [disk.img ...]\n"
21640 "\n"
21641 msgstr ""
21642 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21643 "\n"
21644
21645 #. type: verbatim
21646 #: ../rescue/virt-rescue.pod:213
21647 #, fuzzy, no-wrap
21648 #| msgid ""
21649 #| " file-architecture filename\n"
21650 #| "\n"
21651 msgid ""
21652 " virt-rescue guestname\n"
21653 "\n"
21654 msgstr ""
21655 " file-architecture назва_файла\n"
21656 "\n"
21657
21658 #. type: =head1
21659 #: ../rescue/virt-rescue.pod:221
21660 msgid "NETWORK"
21661 msgstr ""
21662
21663 #. type: textblock
21664 #: ../rescue/virt-rescue.pod:223
21665 msgid ""
21666 "Adding the I<--network> option enables QEMU user networking in the rescue "
21667 "appliance.  There are some differences between user networking and ordinary "
21668 "networking:"
21669 msgstr ""
21670
21671 #. type: =item
21672 #: ../rescue/virt-rescue.pod:229
21673 msgid "ping does not work"
21674 msgstr ""
21675
21676 #. type: textblock
21677 #: ../rescue/virt-rescue.pod:231
21678 msgid ""
21679 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21680 "send the ping packets, and because virt-rescue must be able to run as non-"
21681 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
21682 "The ping command will appear to resolve addresses but will not be able to "
21683 "send or receive any packets.  This does not mean that the network is not "
21684 "working."
21685 msgstr ""
21686
21687 #. type: =item
21688 #: ../rescue/virt-rescue.pod:238
21689 msgid "cannot receive connections"
21690 msgstr ""
21691
21692 #. type: textblock
21693 #: ../rescue/virt-rescue.pod:240
21694 msgid "QEMU user networking cannot receive incoming connections."
21695 msgstr ""
21696
21697 #. type: =item
21698 #: ../rescue/virt-rescue.pod:242
21699 msgid "making TCP connections"
21700 msgstr ""
21701
21702 #. type: textblock
21703 #: ../rescue/virt-rescue.pod:244
21704 msgid ""
21705 "The virt-rescue appliance needs to be small and so does not include many "
21706 "network tools.  In particular there is no L<telnet(1)> command.  You can "
21707 "make TCP connections from the shell using the magical C</dev/tcp/"
21708 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21709 msgstr ""
21710
21711 #. type: verbatim
21712 #: ../rescue/virt-rescue.pod:249
21713 #, no-wrap
21714 msgid ""
21715 " exec 3<>/dev/tcp/redhat.com/80\n"
21716 " echo \"GET /\" >&3\n"
21717 " cat <&3\n"
21718 "\n"
21719 msgstr ""
21720
21721 #. type: textblock
21722 #: ../rescue/virt-rescue.pod:253
21723 msgid "See L<bash(1)> for more details."
21724 msgstr ""
21725
21726 #. type: textblock
21727 #: ../rescue/virt-rescue.pod:259
21728 msgid ""
21729 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
21730 "ENVIRONMENT VARIABLES> for the complete list."
21731 msgstr ""
21732
21733 #. type: textblock
21734 #: ../rescue/virt-rescue.pod:286
21735 #, fuzzy
21736 #| msgid ""
21737 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21738 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21739 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21740 msgid ""
21741 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21742 "libguestfs.org/>."
21743 msgstr ""
21744 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21745 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21746 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21747
21748 #. type: textblock
21749 #: ../resize/virt-resize.pod:5
21750 msgid "virt-resize - Resize a virtual machine disk"
21751 msgstr ""
21752
21753 #. type: verbatim
21754 #: ../resize/virt-resize.pod:9
21755 #, no-wrap
21756 msgid ""
21757 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21758 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21759 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21760 "\n"
21761 msgstr ""
21762
21763 #. type: textblock
21764 #: ../resize/virt-resize.pod:15
21765 msgid ""
21766 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21767 "larger or smaller overall, and resizing or deleting any partitions contained "
21768 "within."
21769 msgstr ""
21770
21771 #. type: textblock
21772 #: ../resize/virt-resize.pod:19
21773 msgid ""
21774 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
21775 "not> be used on live virtual machines - for consistent results, shut the "
21776 "virtual machine down before resizing it."
21777 msgstr ""
21778
21779 #. type: textblock
21780 #: ../resize/virt-resize.pod:23
21781 msgid ""
21782 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21783 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21784 msgstr ""
21785
21786 #. type: =item
21787 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257
21788 #: ../src/guestfs.pod:1396 ../src/guestfs.pod:2466
21789 msgid "1."
21790 msgstr "1."
21791
21792 #. type: textblock
21793 #: ../resize/virt-resize.pod:33
21794 msgid ""
21795 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21796 "fill the extra 5GB of space."
21797 msgstr ""
21798
21799 #. type: verbatim
21800 #: ../resize/virt-resize.pod:36
21801 #, no-wrap
21802 msgid ""
21803 " virt-filesystems --long -h --all -a olddisk\n"
21804 " \n"
21805 msgstr ""
21806
21807 #. type: verbatim
21808 #: ../resize/virt-resize.pod:38
21809 #, no-wrap
21810 msgid ""
21811 " truncate -r olddisk newdisk\n"
21812 " truncate -s +5G newdisk\n"
21813 " \n"
21814 msgstr ""
21815
21816 #. type: verbatim
21817 #: ../resize/virt-resize.pod:41
21818 #, no-wrap
21819 msgid ""
21820 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21821 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21822 "\n"
21823 msgstr ""
21824
21825 #. type: =item
21826 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261
21827 #: ../src/guestfs.pod:1400 ../src/guestfs.pod:2491
21828 msgid "2."
21829 msgstr "2."
21830
21831 #. type: textblock
21832 #: ../resize/virt-resize.pod:46
21833 msgid ""
21834 "As above, but make the /boot partition 200MB bigger, while giving the "
21835 "remaining space to /dev/sda2:"
21836 msgstr ""
21837
21838 #. type: verbatim
21839 #: ../resize/virt-resize.pod:49
21840 #, no-wrap
21841 msgid ""
21842 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21843 "   olddisk newdisk\n"
21844 "\n"
21845 msgstr ""
21846
21847 #. type: =item
21848 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1406
21849 msgid "3."
21850 msgstr "3."
21851
21852 #. type: textblock
21853 #: ../resize/virt-resize.pod:54
21854 msgid ""
21855 "As in the first example, but expand a logical volume as the final step.  "
21856 "This is what you would typically use for Linux guests that use LVM:"
21857 msgstr ""
21858
21859 #. type: verbatim
21860 #: ../resize/virt-resize.pod:58
21861 #, no-wrap
21862 msgid ""
21863 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21864 "   olddisk newdisk\n"
21865 "\n"
21866 msgstr ""
21867
21868 #. type: =item
21869 #: ../resize/virt-resize.pod:61
21870 msgid "4."
21871 msgstr ""
21872
21873 #. type: textblock
21874 #: ../resize/virt-resize.pod:63
21875 msgid ""
21876 "As in the first example, but the output format will be qcow2 instead of a "
21877 "raw disk:"
21878 msgstr ""
21879
21880 #. type: verbatim
21881 #: ../resize/virt-resize.pod:66
21882 #, no-wrap
21883 msgid ""
21884 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21885 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21886 "\n"
21887 msgstr ""
21888
21889 #. type: =head1
21890 #: ../resize/virt-resize.pod:71
21891 msgid "DETAILED USAGE"
21892 msgstr ""
21893
21894 #. type: =head2
21895 #: ../resize/virt-resize.pod:73
21896 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21897 msgstr ""
21898
21899 #. type: =item
21900 #: ../resize/virt-resize.pod:77
21901 msgid "1. Shut down the virtual machine"
21902 msgstr ""
21903
21904 #. type: =item
21905 #: ../resize/virt-resize.pod:79
21906 msgid "2. Locate input disk image"
21907 msgstr ""
21908
21909 #. type: textblock
21910 #: ../resize/virt-resize.pod:81
21911 msgid ""
21912 "Locate the input disk image (ie. the file or device on the host containing "
21913 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
21914 "dumpxml> like this to find the disk image name:"
21915 msgstr ""
21916
21917 #. type: verbatim
21918 #: ../resize/virt-resize.pod:85
21919 #, no-wrap
21920 msgid ""
21921 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21922 " Found 1 nodes:\n"
21923 " -- NODE --\n"
21924 " <source dev=\"/dev/vg/lv_guest\" />\n"
21925 "\n"
21926 msgstr ""
21927
21928 #. type: =item
21929 #: ../resize/virt-resize.pod:90
21930 msgid "3. Look at current sizing"
21931 msgstr ""
21932
21933 #. type: textblock
21934 #: ../resize/virt-resize.pod:92
21935 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21936 msgstr ""
21937
21938 #. type: verbatim
21939 #: ../resize/virt-resize.pod:95
21940 #, no-wrap
21941 msgid ""
21942 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21943 " Name       Type       Size  Parent\n"
21944 " /dev/sda1  partition  101M  /dev/sda\n"
21945 " /dev/sda2  partition  7.9G  /dev/sda\n"
21946 " /dev/sda   device     8.0G  -\n"
21947 "\n"
21948 msgstr ""
21949
21950 #. type: textblock
21951 #: ../resize/virt-resize.pod:101
21952 msgid ""
21953 "(This example is a virtual machine with an 8 GB disk which we would like to "
21954 "expand up to 10 GB)."
21955 msgstr ""
21956
21957 #. type: =item
21958 #: ../resize/virt-resize.pod:104
21959 msgid "4. Create output disk"
21960 msgstr ""
21961
21962 #. type: textblock
21963 #: ../resize/virt-resize.pod:106
21964 msgid ""
21965 "Virt-resize cannot do in-place disk modifications.  You have to have space "
21966 "to store the resized output disk."
21967 msgstr ""
21968
21969 #. type: textblock
21970 #: ../resize/virt-resize.pod:109
21971 msgid ""
21972 "To store the resized disk image in a file, create a file of a suitable size:"
21973 msgstr ""
21974
21975 #. type: verbatim
21976 #: ../resize/virt-resize.pod:112
21977 #, no-wrap
21978 msgid ""
21979 " # rm -f outdisk\n"
21980 " # truncate -s 10G outdisk\n"
21981 "\n"
21982 msgstr ""
21983
21984 #. type: textblock
21985 #: ../resize/virt-resize.pod:115
21986 msgid "Or use L<lvcreate(1)> to create a logical volume:"
21987 msgstr ""
21988
21989 #. type: verbatim
21990 #: ../resize/virt-resize.pod:117
21991 #, no-wrap
21992 msgid ""
21993 " # lvcreate -L 10G -n lv_name vg_name\n"
21994 "\n"
21995 msgstr ""
21996
21997 #. type: textblock
21998 #: ../resize/virt-resize.pod:119
21999 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22000 msgstr ""
22001
22002 #. type: verbatim
22003 #: ../resize/virt-resize.pod:121
22004 #, no-wrap
22005 msgid ""
22006 " # virsh pool-list\n"
22007 " # virsh vol-create-as poolname newvol 10G\n"
22008 "\n"
22009 msgstr ""
22010
22011 #. type: =item
22012 #: ../resize/virt-resize.pod:124
22013 msgid "5. Resize"
22014 msgstr ""
22015
22016 #. type: textblock
22017 #: ../resize/virt-resize.pod:126
22018 msgid ""
22019 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22020 "file) and the output disk.  The output disk is the one created in the "
22021 "previous step."
22022 msgstr ""
22023
22024 #. type: verbatim
22025 #: ../resize/virt-resize.pod:130
22026 #, no-wrap
22027 msgid ""
22028 " # virt-resize indisk outdisk\n"
22029 "\n"
22030 msgstr ""
22031
22032 #. type: textblock
22033 #: ../resize/virt-resize.pod:132
22034 msgid ""
22035 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22036 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22037 "larger, then an extra, empty partition is created at the end of the disk "
22038 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22039 "error."
22040 msgstr ""
22041
22042 #. type: textblock
22043 #: ../resize/virt-resize.pod:138
22044 msgid ""
22045 "More realistically you'd want to expand existing partitions in the disk "
22046 "image by passing extra options (for the full list see the L</OPTIONS> "
22047 "section below)."
22048 msgstr ""
22049
22050 #. type: textblock
22051 #: ../resize/virt-resize.pod:142
22052 msgid ""
22053 "L</--expand> is the most useful option.  It expands the named partition "
22054 "within the disk to fill any extra space:"
22055 msgstr ""
22056
22057 #. type: verbatim
22058 #: ../resize/virt-resize.pod:145
22059 #, no-wrap
22060 msgid ""
22061 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22062 "\n"
22063 msgstr ""
22064
22065 #. type: textblock
22066 #: ../resize/virt-resize.pod:147
22067 msgid ""
22068 "(In this case, an extra partition is I<not> created at the end of the disk, "
22069 "because there will be no unused space)."
22070 msgstr ""
22071
22072 #. type: textblock
22073 #: ../resize/virt-resize.pod:150
22074 msgid ""
22075 "L</--resize> is the other commonly used option.  The following would "
22076 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22077 "rest of the available space:"
22078 msgstr ""
22079
22080 #. type: verbatim
22081 #: ../resize/virt-resize.pod:154
22082 #, no-wrap
22083 msgid ""
22084 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22085 "     indisk outdisk\n"
22086 "\n"
22087 msgstr ""
22088
22089 #. type: textblock
22090 #: ../resize/virt-resize.pod:157
22091 msgid ""
22092 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22093 "if virt-resize knows how, it will resize the contents, the equivalent of "
22094 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22095 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22096 "filesystems, so you would have to online resize them after booting the guest."
22097 msgstr ""
22098
22099 #. type: textblock
22100 #: ../resize/virt-resize.pod:164
22101 msgid "Other options are covered below."
22102 msgstr ""
22103
22104 #. type: =item
22105 #: ../resize/virt-resize.pod:166
22106 msgid "6. Test"
22107 msgstr ""
22108
22109 #. type: textblock
22110 #: ../resize/virt-resize.pod:168
22111 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22112 msgstr ""
22113
22114 #. type: textblock
22115 #: ../resize/virt-resize.pod:170
22116 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22117 msgstr ""
22118
22119 #. type: verbatim
22120 #: ../resize/virt-resize.pod:172
22121 #, fuzzy, no-wrap
22122 #| msgid ""
22123 #| " edit filename\n"
22124 #| "\n"
22125 msgid ""
22126 " # virsh edit guestname\n"
22127 "\n"
22128 msgstr ""
22129 " edit назва_файла\n"
22130 "\n"
22131
22132 #. type: textblock
22133 #: ../resize/virt-resize.pod:174
22134 msgid ""
22135 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22136 "html#elementsDisks>"
22137 msgstr ""
22138
22139 #. type: textblock
22140 #: ../resize/virt-resize.pod:177
22141 msgid "Then start up the domain with the new, resized disk:"
22142 msgstr ""
22143
22144 #. type: verbatim
22145 #: ../resize/virt-resize.pod:179
22146 #, fuzzy, no-wrap
22147 #| msgid ""
22148 #| " ln-s target linkname\n"
22149 #| "\n"
22150 msgid ""
22151 " # virsh start guestname\n"
22152 "\n"
22153 msgstr ""
22154 " ln-s призначення назва_посилання\n"
22155 "\n"
22156
22157 #. type: textblock
22158 #: ../resize/virt-resize.pod:181
22159 msgid ""
22160 "and check that it still works.  See also the L</NOTES> section below for "
22161 "additional information."
22162 msgstr ""
22163
22164 #. type: =item
22165 #: ../resize/virt-resize.pod:184
22166 msgid "7. Resize LVs etc inside the guest"
22167 msgstr ""
22168
22169 #. type: textblock
22170 #: ../resize/virt-resize.pod:186
22171 msgid "(This can also be done offline using L<guestfish(1)>)"
22172 msgstr ""
22173
22174 #. type: textblock
22175 #: ../resize/virt-resize.pod:188
22176 msgid ""
22177 "Once the guest has booted you should see the new space available, at least "
22178 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22179 "may need to resize LVs inside PVs, and also resize filesystem types that "
22180 "virt-resize does not know how to expand."
22181 msgstr ""
22182
22183 #. type: =head2
22184 #: ../resize/virt-resize.pod:195
22185 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22186 msgstr ""
22187
22188 #. type: textblock
22189 #: ../resize/virt-resize.pod:197
22190 msgid ""
22191 "Shrinking is somewhat more complex than expanding, and only an overview is "
22192 "given here."
22193 msgstr ""
22194
22195 #. type: textblock
22196 #: ../resize/virt-resize.pod:200
22197 msgid ""
22198 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22199 "filesystems).  The user has to shrink content before passing the disk image "
22200 "to virt-resize, and virt-resize will check that the content has been shrunk "
22201 "properly."
22202 msgstr ""
22203
22204 #. type: textblock
22205 #: ../resize/virt-resize.pod:205
22206 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22207 msgstr ""
22208
22209 #. type: textblock
22210 #: ../resize/virt-resize.pod:207
22211 msgid ""
22212 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22213 "steps 3 and 4 above to allocate a new disk image."
22214 msgstr ""
22215
22216 #. type: textblock
22217 #: ../resize/virt-resize.pod:210
22218 msgid ""
22219 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22220 msgstr ""
22221
22222 #. type: =head2
22223 #: ../resize/virt-resize.pod:213
22224 msgid "IGNORING OR DELETING PARTITIONS"
22225 msgstr ""
22226
22227 #. type: textblock
22228 #: ../resize/virt-resize.pod:215
22229 msgid ""
22230 "virt-resize also gives a convenient way to ignore or delete partitions when "
22231 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22232 "up the copy where you don't care about the existing contents of a "
22233 "partition.  Deleting a partition removes it completely, but note that it "
22234 "also renumbers any partitions after the one which is deleted, which can "
22235 "leave some guests unbootable."
22236 msgstr ""
22237
22238 #. type: =head2
22239 #: ../resize/virt-resize.pod:222
22240 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22241 msgstr ""
22242
22243 #. type: textblock
22244 #: ../resize/virt-resize.pod:224
22245 msgid ""
22246 "If the input disk is in qcow2 format, then you may prefer that the output is "
22247 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22248 "the fly.  The output format is simply determined by the format of the empty "
22249 "output container that you provide.  Thus to create qcow2 output, use:"
22250 msgstr ""
22251
22252 #. type: verbatim
22253 #: ../resize/virt-resize.pod:230
22254 #, no-wrap
22255 msgid ""
22256 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22257 "\n"
22258 msgstr ""
22259
22260 #. type: textblock
22261 #: ../resize/virt-resize.pod:232
22262 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22263 msgstr ""
22264
22265 #. type: textblock
22266 #: ../resize/virt-resize.pod:234
22267 msgid "Similarly, to get non-sparse raw output use:"
22268 msgstr ""
22269
22270 #. type: verbatim
22271 #: ../resize/virt-resize.pod:236
22272 #, fuzzy, no-wrap
22273 #| msgid ""
22274 #| " fallocate path len\n"
22275 #| "\n"
22276 msgid ""
22277 " fallocate -l size outdisk\n"
22278 "\n"
22279 msgstr ""
22280 " fallocate шлях довжина\n"
22281 "\n"
22282
22283 #. type: textblock
22284 #: ../resize/virt-resize.pod:238
22285 msgid ""
22286 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22287 "dev/zero of=outdisk bs=1M count=..>)"
22288 msgstr ""
22289
22290 #. type: textblock
22291 #: ../resize/virt-resize.pod:247
22292 msgid "Display help."
22293 msgstr ""
22294
22295 #. type: =item
22296 #: ../resize/virt-resize.pod:249
22297 msgid "B<-d>"
22298 msgstr ""
22299
22300 #. type: =item
22301 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22302 #: ../tools/virt-win-reg.pl:120
22303 msgid "B<--debug>"
22304 msgstr "B<--debug>"
22305
22306 #. type: textblock
22307 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22308 msgid "Enable debugging messages."
22309 msgstr ""
22310
22311 #. type: =item
22312 #: ../resize/virt-resize.pod:255
22313 #, fuzzy
22314 #| msgid "B<--no-dest-paths>"
22315 msgid "B<--delete part>"
22316 msgstr "B<--no-dest-paths>"
22317
22318 #. type: textblock
22319 #: ../resize/virt-resize.pod:257
22320 msgid ""
22321 "Delete the named partition.  It would be more accurate to describe this as "
22322 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22323 "the original disk image is left intact."
22324 msgstr ""
22325
22326 #. type: textblock
22327 #: ../resize/virt-resize.pod:261
22328 msgid ""
22329 "Note that when you delete a partition, then anything contained in the "
22330 "partition is also deleted.  Furthermore, this causes any partitions that "
22331 "come after to be I<renumbered>, which can easily make your guest unbootable."
22332 msgstr ""
22333
22334 #. type: textblock
22335 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22336 #: ../resize/virt-resize.pod:448
22337 msgid "You can give this option multiple times."
22338 msgstr ""
22339
22340 #. type: =item
22341 #: ../resize/virt-resize.pod:268
22342 #, fuzzy
22343 #| msgid "B<--partition>"
22344 msgid "B<--expand part>"
22345 msgstr "B<--partition>"
22346
22347 #. type: textblock
22348 #: ../resize/virt-resize.pod:270
22349 msgid ""
22350 "Expand the named partition so it uses up all extra space (space left over "
22351 "after any other resize changes that you request have been done)."
22352 msgstr ""
22353
22354 #. type: textblock
22355 #: ../resize/virt-resize.pod:273
22356 msgid ""
22357 "If virt-resize knows how, it will expand the direct content of the "
22358 "partition.  For example, if the partition is an LVM PV, it will expand the "
22359 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22360 "content it doesn't know about alone."
22361 msgstr ""
22362
22363 #. type: textblock
22364 #: ../resize/virt-resize.pod:278
22365 msgid "Currently virt-resize can resize:"
22366 msgstr ""
22367
22368 #. type: textblock
22369 #: ../resize/virt-resize.pod:284
22370 msgid "ext2, ext3 and ext4 filesystems."
22371 msgstr ""
22372
22373 #. type: textblock
22374 #: ../resize/virt-resize.pod:288
22375 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22376 msgstr ""
22377
22378 #. type: textblock
22379 #: ../resize/virt-resize.pod:290
22380 msgid ""
22381 "The filesystem must have been shut down consistently last time it was used.  "
22382 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22383 "consistency check, so at the first boot after resizing Windows will check "
22384 "the disk."
22385 msgstr ""
22386
22387 #. type: textblock
22388 #: ../resize/virt-resize.pod:297
22389 msgid ""
22390 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22391 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22392 "resize LVs as desired after boot."
22393 msgstr ""
22394
22395 #. type: textblock
22396 #: ../resize/virt-resize.pod:303
22397 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22398 msgstr ""
22399
22400 #. type: textblock
22401 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:476
22402 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22403 msgstr ""
22404
22405 #. type: =item
22406 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22407 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22408 #: ../tools/virt-win-reg.pl:142
22409 msgid "B<--format> raw"
22410 msgstr ""
22411
22412 #. type: textblock
22413 #: ../resize/virt-resize.pod:311
22414 msgid ""
22415 "Specify the format of the input disk image.  If this flag is not given then "
22416 "it is auto-detected from the image itself."
22417 msgstr ""
22418
22419 #. type: textblock
22420 #: ../resize/virt-resize.pod:317
22421 msgid ""
22422 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22423 "AND NON-SPARSE RAW FORMATS>."
22424 msgstr ""
22425
22426 #. type: =item
22427 #: ../resize/virt-resize.pod:320
22428 #, fuzzy
22429 #| msgid "B<--format>"
22430 msgid "B<--ignore part>"
22431 msgstr "B<--format>"
22432
22433 #. type: textblock
22434 #: ../resize/virt-resize.pod:322
22435 msgid ""
22436 "Ignore the named partition.  Effectively this means the partition is "
22437 "allocated on the destination disk, but the content is not copied across from "
22438 "the source disk.  The content of the partition will be blank (all zero "
22439 "bytes)."
22440 msgstr ""
22441
22442 #. type: =item
22443 #: ../resize/virt-resize.pod:329
22444 msgid "B<--LV-expand logvol>"
22445 msgstr ""
22446
22447 #. type: textblock
22448 #: ../resize/virt-resize.pod:331
22449 msgid ""
22450 "This takes the logical volume and, as a final step, expands it to fill all "
22451 "the space available in its volume group.  A typical usage, assuming a Linux "
22452 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22453 "lv_root> would be:"
22454 msgstr ""
22455
22456 #. type: verbatim
22457 #: ../resize/virt-resize.pod:336
22458 #, no-wrap
22459 msgid ""
22460 " virt-resize indisk outdisk \\\n"
22461 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22462 "\n"
22463 msgstr ""
22464
22465 #. type: textblock
22466 #: ../resize/virt-resize.pod:339
22467 msgid ""
22468 "This would first expand the partition (and PV), and then expand the root "
22469 "device to fill the extra space in the PV."
22470 msgstr ""
22471
22472 #. type: textblock
22473 #: ../resize/virt-resize.pod:342
22474 msgid ""
22475 "The contents of the LV are also resized if virt-resize knows how to do "
22476 "that.  You can stop virt-resize from trying to expand the content by using "
22477 "the option I<--no-expand-content>."
22478 msgstr ""
22479
22480 #. type: textblock
22481 #: ../resize/virt-resize.pod:346
22482 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22483 msgstr ""
22484
22485 #. type: textblock
22486 #: ../resize/virt-resize.pod:348
22487 msgid ""
22488 "You can give this option multiple times, I<but> it doesn't make sense to do "
22489 "this unless the logical volumes you specify are all in different volume "
22490 "groups."
22491 msgstr ""
22492
22493 #. type: =item
22494 #: ../resize/virt-resize.pod:354
22495 #, fuzzy
22496 #| msgid "B<--debug>"
22497 msgid "B<--dryrun>"
22498 msgstr "B<--debug>"
22499
22500 #. type: textblock
22501 #: ../resize/virt-resize.pod:356
22502 msgid "Print a summary of what would be done, but don't do anything."
22503 msgstr ""
22504
22505 #. type: =item
22506 #: ../resize/virt-resize.pod:358
22507 msgid "B<--no-copy-boot-loader>"
22508 msgstr ""
22509
22510 #. type: textblock
22511 #: ../resize/virt-resize.pod:360
22512 msgid ""
22513 "By default, virt-resize copies over some sectors at the start of the disk "
22514 "(up to the beginning of the first partition).  Commonly these sectors "
22515 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22516 "in order for the guest to boot correctly."
22517 msgstr ""
22518
22519 #. type: textblock
22520 #: ../resize/virt-resize.pod:365
22521 msgid ""
22522 "If you specify this flag, then this initial copy is not done.  You may need "
22523 "to reinstall the boot loader in this case."
22524 msgstr ""
22525
22526 #. type: =item
22527 #: ../resize/virt-resize.pod:368
22528 #, fuzzy
22529 #| msgid "B<--partition>"
22530 msgid "B<--no-extra-partition>"
22531 msgstr "B<--partition>"
22532
22533 #. type: textblock
22534 #: ../resize/virt-resize.pod:370
22535 msgid ""
22536 "By default, virt-resize creates an extra partition if there is any extra, "
22537 "unused space after all resizing has happened.  Use this option to prevent "
22538 "the extra partition from being created.  If you do this then the extra space "
22539 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22540 "tool in the guest."
22541 msgstr ""
22542
22543 #. type: textblock
22544 #: ../resize/virt-resize.pod:376
22545 msgid ""
22546 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22547 "will be created."
22548 msgstr ""
22549
22550 #. type: =item
22551 #: ../resize/virt-resize.pod:379
22552 #, fuzzy
22553 #| msgid "B<--no-dest-paths>"
22554 msgid "B<--no-expand-content>"
22555 msgstr "B<--no-dest-paths>"
22556
22557 #. type: textblock
22558 #: ../resize/virt-resize.pod:381
22559 msgid ""
22560 "By default, virt-resize will try to expand the direct contents of "
22561 "partitions, if it knows how (see I<--expand> option above)."
22562 msgstr ""
22563
22564 #. type: textblock
22565 #: ../resize/virt-resize.pod:384
22566 msgid ""
22567 "If you give the I<--no-expand-content> option then virt-resize will not "
22568 "attempt this."
22569 msgstr ""
22570
22571 #. type: =item
22572 #: ../resize/virt-resize.pod:387
22573 #, fuzzy
22574 #| msgid "ntfsresize-size"
22575 msgid "B<--ntfsresize-force>"
22576 msgstr "ntfsresize-size"
22577
22578 #. type: textblock
22579 #: ../resize/virt-resize.pod:389
22580 msgid ""
22581 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22582 "the NTFS disk is marked as needing a consistency check.  You have to use "
22583 "this option if you want to resize a Windows guest multiple times without "
22584 "booting into Windows between each resize."
22585 msgstr ""
22586
22587 #. type: =item
22588 #: ../resize/virt-resize.pod:395
22589 #, fuzzy
22590 #| msgid "B<--format>"
22591 msgid "B<--output-format> raw"
22592 msgstr "B<--format>"
22593
22594 #. type: textblock
22595 #: ../resize/virt-resize.pod:397
22596 msgid ""
22597 "Specify the format of the output disk image.  If this flag is not given then "
22598 "it is auto-detected from the image itself."
22599 msgstr ""
22600
22601 #. type: textblock
22602 #: ../resize/virt-resize.pod:403
22603 msgid ""
22604 "Note that this option I<does not create> the output format.  This option "
22605 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
22606 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
22607 "SPARSE RAW FORMATS>."
22608 msgstr ""
22609
22610 #. type: =item
22611 #: ../resize/virt-resize.pod:408
22612 msgid "B<-q>"
22613 msgstr ""
22614
22615 #. type: =item
22616 #: ../resize/virt-resize.pod:410
22617 #, fuzzy
22618 #| msgid "B<--live>"
22619 msgid "B<--quiet>"
22620 msgstr "B<--live>"
22621
22622 #. type: textblock
22623 #: ../resize/virt-resize.pod:412
22624 msgid "Don't print the summary."
22625 msgstr ""
22626
22627 #. type: =item
22628 #: ../resize/virt-resize.pod:414
22629 #, fuzzy
22630 #| msgid "B<part_size>"
22631 msgid "B<--resize part=size>"
22632 msgstr "B<part_size>"
22633
22634 #. type: textblock
22635 #: ../resize/virt-resize.pod:416
22636 msgid ""
22637 "Resize the named partition (expanding or shrinking it) so that it has the "
22638 "given size."
22639 msgstr ""
22640
22641 #. type: textblock
22642 #: ../resize/virt-resize.pod:419
22643 msgid ""
22644 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22645 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22646 "size; or as a relative number or percentage.  For example:"
22647 msgstr ""
22648
22649 #. type: verbatim
22650 #: ../resize/virt-resize.pod:425
22651 #, fuzzy, no-wrap
22652 #| msgid ""
22653 #| " hexedit /dev/sda 1M\n"
22654 #| "\n"
22655 msgid ""
22656 " --resize /dev/sda2=10G\n"
22657 "\n"
22658 msgstr ""
22659 " hexedit /dev/sda 1M\n"
22660 "\n"
22661
22662 #. type: verbatim
22663 #: ../resize/virt-resize.pod:427
22664 #, fuzzy, no-wrap
22665 #| msgid ""
22666 #| " pvresize device\n"
22667 #| "\n"
22668 msgid ""
22669 " --resize /dev/sda4=90%\n"
22670 "\n"
22671 msgstr ""
22672 " pvresize пристрій\n"
22673 "\n"
22674
22675 #. type: verbatim
22676 #: ../resize/virt-resize.pod:429
22677 #, fuzzy, no-wrap
22678 #| msgid ""
22679 #| " hexedit /dev/sda 1M\n"
22680 #| "\n"
22681 msgid ""
22682 " --resize /dev/sda2=+1G\n"
22683 "\n"
22684 msgstr ""
22685 " hexedit /dev/sda 1M\n"
22686 "\n"
22687
22688 #. type: verbatim
22689 #: ../resize/virt-resize.pod:431
22690 #, fuzzy, no-wrap
22691 #| msgid ""
22692 #| " hexedit /dev/sda 1M\n"
22693 #| "\n"
22694 msgid ""
22695 " --resize /dev/sda2=-200M\n"
22696 "\n"
22697 msgstr ""
22698 " hexedit /dev/sda 1M\n"
22699 "\n"
22700
22701 #. type: verbatim
22702 #: ../resize/virt-resize.pod:433
22703 #, fuzzy, no-wrap
22704 #| msgid ""
22705 #| " hexedit /dev/sda 1M\n"
22706 #| "\n"
22707 msgid ""
22708 " --resize /dev/sda1=+128K\n"
22709 "\n"
22710 msgstr ""
22711 " hexedit /dev/sda 1M\n"
22712 "\n"
22713
22714 #. type: verbatim
22715 #: ../resize/virt-resize.pod:435
22716 #, fuzzy, no-wrap
22717 #| msgid ""
22718 #| " hexedit /dev/sda 1M\n"
22719 #| "\n"
22720 msgid ""
22721 " --resize /dev/sda1=+10%\n"
22722 "\n"
22723 msgstr ""
22724 " hexedit /dev/sda 1M\n"
22725 "\n"
22726
22727 #. type: verbatim
22728 #: ../resize/virt-resize.pod:437
22729 #, fuzzy, no-wrap
22730 #| msgid ""
22731 #| " hexedit /dev/sda 1M\n"
22732 #| "\n"
22733 msgid ""
22734 " --resize /dev/sda1=-10%\n"
22735 "\n"
22736 msgstr ""
22737 " hexedit /dev/sda 1M\n"
22738 "\n"
22739
22740 #. type: textblock
22741 #: ../resize/virt-resize.pod:439
22742 msgid ""
22743 "You can increase the size of any partition.  Virt-resize will expand the "
22744 "direct content of the partition if it knows how (see I<--expand> below)."
22745 msgstr ""
22746
22747 #. type: textblock
22748 #: ../resize/virt-resize.pod:443
22749 msgid ""
22750 "You can only I<decrease> the size of partitions that contain filesystems or "
22751 "PVs which have already been shrunk.  Virt-resize will check this has been "
22752 "done before proceeding, or else will print an error (see also I<--resize-"
22753 "force>)."
22754 msgstr ""
22755
22756 #. type: =item
22757 #: ../resize/virt-resize.pod:450
22758 msgid "B<--resize-force part=size>"
22759 msgstr ""
22760
22761 #. type: textblock
22762 #: ../resize/virt-resize.pod:452
22763 msgid ""
22764 "This is the same as I<--resize> except that it will let you decrease the "
22765 "size of any partition.  Generally this means you will lose any data which "
22766 "was at the end of the partition you shrink, but you may not care about that "
22767 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22768 "as a swap partition)."
22769 msgstr ""
22770
22771 #. type: textblock
22772 #: ../resize/virt-resize.pod:458
22773 msgid "See also the I<--ignore> option."
22774 msgstr ""
22775
22776 #. type: =item
22777 #: ../resize/virt-resize.pod:460
22778 #, fuzzy
22779 #| msgid "B<--partition>"
22780 msgid "B<--shrink part>"
22781 msgstr "B<--partition>"
22782
22783 #. type: textblock
22784 #: ../resize/virt-resize.pod:462
22785 msgid ""
22786 "Shrink the named partition until the overall disk image fits in the "
22787 "destination.  The named partition B<must> contain a filesystem or PV which "
22788 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22789 "online tools).  Virt-resize will check this and give an error if it has not "
22790 "been done."
22791 msgstr ""
22792
22793 #. type: textblock
22794 #: ../resize/virt-resize.pod:468
22795 msgid ""
22796 "The amount by which the overall disk must be shrunk (after carrying out all "
22797 "other operations requested by the user) is called the \"deficit\".  For "
22798 "example, a straight copy (assume no other operations)  from a 5GB disk image "
22799 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
22800 "would give an error unless the user specified a partition to shrink and that "
22801 "partition had more than a gigabyte of free space."
22802 msgstr ""
22803
22804 #. type: =head2
22805 #: ../resize/virt-resize.pod:488
22806 msgid "\"Partition 1 does not end on cylinder boundary.\""
22807 msgstr ""
22808
22809 #. type: textblock
22810 #: ../resize/virt-resize.pod:490
22811 msgid ""
22812 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
22813 "means the partitions will not be aligned to the ancient CHS geometry.  "
22814 "However CHS geometry is meaningless for disks manufactured since the early "
22815 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
22816 "cylinders is not required by any modern operating system."
22817 msgstr ""
22818
22819 #. type: =head2
22820 #: ../resize/virt-resize.pod:497
22821 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22822 msgstr ""
22823
22824 #. type: textblock
22825 #: ../resize/virt-resize.pod:499
22826 msgid ""
22827 "In Windows Vista and later versions, Microsoft switched to using a separate "
22828 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
22829 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
22830 "the boot partition.  Doing so seems to break the guest completely.  However "
22831 "expanding the second partition (ie. C: drive) should work."
22832 msgstr ""
22833
22834 #. type: textblock
22835 #: ../resize/virt-resize.pod:506
22836 msgid ""
22837 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22838 "NTFS partitions have been expanded.  This is just a safety check and (unless "
22839 "it find errors) is nothing to worry about."
22840 msgstr ""
22841
22842 #. type: =head2
22843 #: ../resize/virt-resize.pod:510
22844 msgid "GUEST BOOT STUCK AT \"GRUB\""
22845 msgstr ""
22846
22847 #. type: textblock
22848 #: ../resize/virt-resize.pod:512
22849 msgid ""
22850 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22851 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
22852 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22853 "although we think is to do with partition alignment."
22854 msgstr ""
22855
22856 #. type: verbatim
22857 #: ../resize/virt-resize.pod:517
22858 #, no-wrap
22859 msgid ""
22860 " guestfish -i -a newdisk\n"
22861 " ><fs> cat /boot/grub/device.map\n"
22862 " # check the contents of this file are sensible or\n"
22863 " # edit the file if necessary\n"
22864 " ><fs> grub-install / /dev/vda\n"
22865 " ><fs> exit\n"
22866 "\n"
22867 msgstr ""
22868
22869 #. type: textblock
22870 #: ../resize/virt-resize.pod:524
22871 msgid ""
22872 "For more flexible guest reconfiguration, including if you need to specify "
22873 "other parameters to grub-install, use L<virt-rescue(1)>."
22874 msgstr ""
22875
22876 #. type: =head1
22877 #: ../resize/virt-resize.pod:527
22878 msgid "ALTERNATIVE TOOLS"
22879 msgstr ""
22880
22881 #. type: textblock
22882 #: ../resize/virt-resize.pod:529
22883 msgid ""
22884 "There are several proprietary tools for resizing partitions.  We won't "
22885 "mention any here."
22886 msgstr ""
22887
22888 #. type: textblock
22889 #: ../resize/virt-resize.pod:532
22890 msgid ""
22891 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
22892 "operations on disk images.  They can resize and move partitions, but I don't "
22893 "think they can do anything with the contents, and they certainly don't "
22894 "understand LVM."
22895 msgstr ""
22896
22897 #. type: textblock
22898 #: ../resize/virt-resize.pod:537
22899 msgid ""
22900 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
22901 "but at a much lower level.  You will probably end up hand-calculating sector "
22902 "offsets, which is something that virt-resize was designed to avoid.  If you "
22903 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
22904 "I<--debug> flag."
22905 msgstr ""
22906
22907 #. type: textblock
22908 #: ../resize/virt-resize.pod:552
22909 msgid ""
22910 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
22911 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
22912 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
22913 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
22914 msgstr ""
22915
22916 #. type: textblock
22917 #: ../ruby/examples/guestfs-ruby.pod:5
22918 msgid "guestfs-ruby - How to use libguestfs from Ruby"
22919 msgstr ""
22920
22921 #. type: verbatim
22922 #: ../ruby/examples/guestfs-ruby.pod:9
22923 #, no-wrap
22924 msgid ""
22925 " require 'guestfs'\n"
22926 " g = Guestfs::Guestfs.new()\n"
22927 " g.add_drive_opts(\"disk.img\",\n"
22928 "                  :readonly => 1, :format => \"raw\")\n"
22929 " g.launch()\n"
22930 "\n"
22931 msgstr ""
22932
22933 #. type: textblock
22934 #: ../ruby/examples/guestfs-ruby.pod:17
22935 msgid ""
22936 "This manual page documents how to call libguestfs from the Ruby programming "
22937 "language.  This page just documents the differences from the C API and gives "
22938 "some examples.  If you are not familiar with using libguestfs, you also need "
22939 "to read L<guestfs(3)>."
22940 msgstr ""
22941
22942 #. type: textblock
22943 #: ../ruby/examples/guestfs-ruby.pod:24
22944 msgid ""
22945 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
22946 "This has a single parameter which is the error message (a string)."
22947 msgstr ""
22948
22949 #. type: textblock
22950 #: ../ruby/examples/guestfs-ruby.pod:38
22951 #, fuzzy
22952 #| msgid ""
22953 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22954 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22955 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22956 msgid ""
22957 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
22958 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
22959 "libguestfs.org/>."
22960 msgstr ""
22961 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22962 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22963 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22964
22965 #. type: =head2
22966 #: ../src/guestfs-actions.pod:1
22967 msgid "guestfs_add_cdrom"
22968 msgstr ""
22969
22970 #. type: verbatim
22971 #: ../src/guestfs-actions.pod:3
22972 #, no-wrap
22973 msgid ""
22974 " int\n"
22975 " guestfs_add_cdrom (guestfs_h *g,\n"
22976 "                    const char *filename);\n"
22977 "\n"
22978 msgstr ""
22979
22980 #. type: textblock
22981 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
22982 #: ../src/guestfs-actions.pod:270
22983 msgid ""
22984 "I<This function is deprecated.> In new code, use the L</"
22985 "guestfs_add_drive_opts> call instead."
22986 msgstr ""
22987
22988 #. type: textblock
22989 #: ../src/guestfs-actions.pod:24
22990 msgid ""
22991 "This call checks for the existence of C<filename>.  This stops you from "
22992 "specifying other types of drive which are supported by qemu such as C<nbd:> "
22993 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
22994 "instead."
22995 msgstr ""
22996
22997 #. type: textblock
22998 #: ../src/guestfs-actions.pod:31
22999 msgid ""
23000 "If you just want to add an ISO file (often you use this as an efficient way "
23001 "to transfer large files into the guest), then you should probably use "
23002 "C<guestfs_add_drive_ro> instead."
23003 msgstr ""
23004
23005 #. type: textblock
23006 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
23007 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23008 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
23009 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23010 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23011 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23012 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23013 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23014 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23015 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23016 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23017 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23018 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23019 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
23020 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
23021 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
23022 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
23023 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1520
23024 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
23025 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
23026 #: ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2490
23027 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2586
23028 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
23029 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3855
23030 #: ../src/guestfs-actions.pod:3869 ../src/guestfs-actions.pod:3882
23031 #: ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3911
23032 #: ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4019
23033 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4056
23034 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4102
23035 #: ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:4156
23036 #: ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4210
23037 #: ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4258
23038 #: ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4287
23039 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319
23040 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4432
23041 #: ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4496
23042 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4532
23043 #: ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4562
23044 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4593
23045 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4635
23046 #: ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:4771
23047 #: ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4821
23048 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4852
23049 #: ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:4882
23050 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4912
23051 #: ../src/guestfs-actions.pod:4954 ../src/guestfs-actions.pod:4980
23052 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5039
23053 #: ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:5070
23054 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5172
23055 #: ../src/guestfs-actions.pod:5219 ../src/guestfs-actions.pod:5262
23056 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5307
23057 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5465
23058 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5544
23059 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5594
23060 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5677
23061 #: ../src/guestfs-actions.pod:5690 ../src/guestfs-actions.pod:5704
23062 #: ../src/guestfs-actions.pod:5993 ../src/guestfs-actions.pod:6012
23063 #: ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6045
23064 #: ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071
23065 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097
23066 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6134
23067 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
23068 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6220
23069 #: ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6261
23070 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6301
23071 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6337
23072 #: ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6384
23073 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427
23074 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6470
23075 #: ../src/guestfs-actions.pod:6485 ../src/guestfs-actions.pod:6504
23076 #: ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:6578
23077 #: ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6726
23078 #: ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:6859
23079 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6885
23080 #: ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6920
23081 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946
23082 #: ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:7020
23083 #: ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7053
23084 #: ../src/guestfs-actions.pod:7069 ../src/guestfs-actions.pod:7086
23085 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7119
23086 #: ../src/guestfs-actions.pod:7155 ../src/guestfs-actions.pod:7169
23087 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7223
23088 #: ../src/guestfs-actions.pod:7241 ../src/guestfs-actions.pod:7275
23089 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7427
23090 #: ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7456
23091 #: ../src/guestfs-actions.pod:7511 ../src/guestfs-actions.pod:7524
23092 #: ../src/guestfs-actions.pod:7569 ../src/guestfs-actions.pod:7609
23093 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7685
23094 #: ../src/guestfs-actions.pod:7718 ../src/guestfs-actions.pod:7782
23095 #: ../src/guestfs-actions.pod:7805 ../src/guestfs-actions.pod:7834
23096 msgid "This function returns 0 on success or -1 on error."
23097 msgstr ""
23098
23099 #. type: textblock
23100 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23101 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
23102 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
23103 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3648
23104 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:6222
23105 #: ../src/guestfs-actions.pod:6339 ../src/guestfs-actions.pod:6472
23106 #: ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:7088
23107 #: ../src/guestfs-actions.pod:7611
23108 msgid "(Added in 0.3)"
23109 msgstr ""
23110
23111 #. type: =head2
23112 #: ../src/guestfs-actions.pod:41
23113 msgid "guestfs_add_domain"
23114 msgstr ""
23115
23116 #. type: verbatim
23117 #: ../src/guestfs-actions.pod:43
23118 #, no-wrap
23119 msgid ""
23120 " int\n"
23121 " guestfs_add_domain (guestfs_h *g,\n"
23122 "                     const char *dom,\n"
23123 "                     ...);\n"
23124 "\n"
23125 msgstr ""
23126
23127 #. type: textblock
23128 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23129 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2831
23130 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4966
23131 #: ../src/guestfs-actions.pod:5183
23132 msgid ""
23133 "You may supply a list of optional arguments to this call.  Use zero or more "
23134 "of the following pairs of parameters, and terminate the list with C<-1> on "
23135 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23136 msgstr ""
23137
23138 #. type: verbatim
23139 #: ../src/guestfs-actions.pod:53
23140 #, no-wrap
23141 msgid ""
23142 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23143 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23144 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23145 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23146 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23147 "\n"
23148 msgstr ""
23149
23150 #. type: textblock
23151 #: ../src/guestfs-actions.pod:59
23152 msgid ""
23153 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23154 "It works by connecting to libvirt, requesting the domain and domain XML from "
23155 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23156 "one."
23157 msgstr ""
23158
23159 #. type: textblock
23160 #: ../src/guestfs-actions.pod:94
23161 msgid ""
23162 "The other optional parameters are passed directly through to "
23163 "C<guestfs_add_drive_opts>."
23164 msgstr ""
23165
23166 #. type: textblock
23167 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23168 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23169 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23170 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
23171 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
23172 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
23173 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
23174 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2949
23175 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:5142
23176 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5774
23177 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:7196
23178 #: ../src/guestfs-actions.pod:7622 ../src/guestfs-actions.pod:7635
23179 #: ../src/guestfs-actions.pod:7648
23180 msgid "On error this function returns -1."
23181 msgstr ""
23182
23183 #. type: textblock
23184 #: ../src/guestfs-actions.pod:99
23185 msgid "(Added in 1.7.4)"
23186 msgstr ""
23187
23188 #. type: =head2
23189 #: ../src/guestfs-actions.pod:101
23190 msgid "guestfs_add_domain_va"
23191 msgstr ""
23192
23193 #. type: verbatim
23194 #: ../src/guestfs-actions.pod:103
23195 #, no-wrap
23196 msgid ""
23197 " int\n"
23198 " guestfs_add_domain_va (guestfs_h *g,\n"
23199 "                        const char *dom,\n"
23200 "                        va_list args);\n"
23201 "\n"
23202 msgstr ""
23203
23204 #. type: textblock
23205 #: ../src/guestfs-actions.pod:108
23206 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23207 msgstr ""
23208
23209 #. type: textblock
23210 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23211 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23212 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23213 #: ../src/guestfs-actions.pod:2915 ../src/guestfs-actions.pod:2927
23214 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4724
23215 #: ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5006
23216 #: ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243
23217 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23218 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23219
23220 #. type: =head2
23221 #: ../src/guestfs-actions.pod:112
23222 msgid "guestfs_add_domain_argv"
23223 msgstr "guestfs_add_domain_argv"
23224
23225 #. type: verbatim
23226 #: ../src/guestfs-actions.pod:114
23227 #, no-wrap
23228 msgid ""
23229 " int\n"
23230 " guestfs_add_domain_argv (guestfs_h *g,\n"
23231 "                          const char *dom,\n"
23232 "                          const struct guestfs_add_domain_argv *optargs);\n"
23233 "\n"
23234 msgstr ""
23235
23236 #. type: textblock
23237 #: ../src/guestfs-actions.pod:119
23238 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23239 msgstr ""
23240
23241 #. type: =head2
23242 #: ../src/guestfs-actions.pod:123
23243 msgid "guestfs_add_drive"
23244 msgstr ""
23245
23246 #. type: verbatim
23247 #: ../src/guestfs-actions.pod:125
23248 #, no-wrap
23249 msgid ""
23250 " int\n"
23251 " guestfs_add_drive (guestfs_h *g,\n"
23252 "                    const char *filename);\n"
23253 "\n"
23254 msgstr ""
23255
23256 #. type: textblock
23257 #: ../src/guestfs-actions.pod:129
23258 msgid ""
23259 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23260 "optional parameters, so the disk is added writable, with the format being "
23261 "detected automatically."
23262 msgstr ""
23263
23264 #. type: textblock
23265 #: ../src/guestfs-actions.pod:133
23266 msgid ""
23267 "Automatic detection of the format opens you up to a potential security hole "
23268 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23269 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23270 "you should think about replacing calls to this function with calls to "
23271 "C<guestfs_add_drive_opts>, and specifying the format."
23272 msgstr ""
23273
23274 #. type: =head2
23275 #: ../src/guestfs-actions.pod:144
23276 msgid "guestfs_add_drive_opts"
23277 msgstr ""
23278
23279 #. type: verbatim
23280 #: ../src/guestfs-actions.pod:146
23281 #, no-wrap
23282 msgid ""
23283 " int\n"
23284 " guestfs_add_drive_opts (guestfs_h *g,\n"
23285 "                         const char *filename,\n"
23286 "                         ...);\n"
23287 "\n"
23288 msgstr ""
23289
23290 #. type: verbatim
23291 #: ../src/guestfs-actions.pod:156
23292 #, no-wrap
23293 msgid ""
23294 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23295 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23296 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23297 "\n"
23298 msgstr ""
23299
23300 #. type: textblock
23301 #: ../src/guestfs-actions.pod:185
23302 msgid ""
23303 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
23304 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
23305 "Possible formats include C<raw> and C<qcow2>."
23306 msgstr ""
23307
23308 #. type: textblock
23309 #: ../src/guestfs-actions.pod:196
23310 msgid ""
23311 "This rarely-used option lets you emulate the behaviour of the deprecated "
23312 "C<guestfs_add_drive_with_if> call (q.v.)"
23313 msgstr ""
23314
23315 #. type: textblock
23316 #: ../src/guestfs-actions.pod:203
23317 msgid "(Added in 1.5.23)"
23318 msgstr ""
23319
23320 #. type: =head2
23321 #: ../src/guestfs-actions.pod:205
23322 msgid "guestfs_add_drive_opts_va"
23323 msgstr ""
23324
23325 #. type: verbatim
23326 #: ../src/guestfs-actions.pod:207
23327 #, no-wrap
23328 msgid ""
23329 " int\n"
23330 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23331 "                            const char *filename,\n"
23332 "                            va_list args);\n"
23333 "\n"
23334 msgstr ""
23335
23336 #. type: textblock
23337 #: ../src/guestfs-actions.pod:212
23338 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23339 msgstr ""
23340
23341 #. type: =head2
23342 #: ../src/guestfs-actions.pod:216
23343 msgid "guestfs_add_drive_opts_argv"
23344 msgstr ""
23345
23346 #. type: verbatim
23347 #: ../src/guestfs-actions.pod:218
23348 #, no-wrap
23349 msgid ""
23350 " int\n"
23351 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23352 "                              const char *filename,\n"
23353 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
23354 "\n"
23355 msgstr ""
23356
23357 #. type: textblock
23358 #: ../src/guestfs-actions.pod:223
23359 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23360 msgstr ""
23361
23362 #. type: =head2
23363 #: ../src/guestfs-actions.pod:227
23364 msgid "guestfs_add_drive_ro"
23365 msgstr ""
23366
23367 #. type: verbatim
23368 #: ../src/guestfs-actions.pod:229
23369 #, no-wrap
23370 msgid ""
23371 " int\n"
23372 " guestfs_add_drive_ro (guestfs_h *g,\n"
23373 "                       const char *filename);\n"
23374 "\n"
23375 msgstr ""
23376
23377 #. type: textblock
23378 #: ../src/guestfs-actions.pod:233
23379 msgid ""
23380 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23381 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23382 "disk is added read-only, with the format being detected automatically."
23383 msgstr ""
23384
23385 #. type: textblock
23386 #: ../src/guestfs-actions.pod:240
23387 msgid "(Added in 1.0.38)"
23388 msgstr ""
23389
23390 #. type: =head2
23391 #: ../src/guestfs-actions.pod:242
23392 msgid "guestfs_add_drive_ro_with_if"
23393 msgstr ""
23394
23395 #. type: verbatim
23396 #: ../src/guestfs-actions.pod:244
23397 #, no-wrap
23398 msgid ""
23399 " int\n"
23400 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23401 "                               const char *filename,\n"
23402 "                               const char *iface);\n"
23403 "\n"
23404 msgstr ""
23405
23406 #. type: textblock
23407 #: ../src/guestfs-actions.pod:256
23408 msgid ""
23409 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23410 "QEMU interface emulation to use at run time."
23411 msgstr ""
23412
23413 #. type: textblock
23414 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23415 #: ../src/guestfs-actions.pod:2436
23416 msgid "(Added in 1.0.84)"
23417 msgstr ""
23418
23419 #. type: =head2
23420 #: ../src/guestfs-actions.pod:263
23421 msgid "guestfs_add_drive_with_if"
23422 msgstr ""
23423
23424 #. type: verbatim
23425 #: ../src/guestfs-actions.pod:265
23426 #, no-wrap
23427 msgid ""
23428 " int\n"
23429 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23430 "                            const char *filename,\n"
23431 "                            const char *iface);\n"
23432 "\n"
23433 msgstr ""
23434
23435 #. type: textblock
23436 #: ../src/guestfs-actions.pod:277
23437 msgid ""
23438 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23439 "QEMU interface emulation to use at run time."
23440 msgstr ""
23441
23442 #. type: =head2
23443 #: ../src/guestfs-actions.pod:284
23444 msgid "guestfs_aug_clear"
23445 msgstr ""
23446
23447 #. type: verbatim
23448 #: ../src/guestfs-actions.pod:286
23449 #, no-wrap
23450 msgid ""
23451 " int\n"
23452 " guestfs_aug_clear (guestfs_h *g,\n"
23453 "                    const char *augpath);\n"
23454 "\n"
23455 msgstr ""
23456
23457 #. type: textblock
23458 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
23459 msgid "(Added in 1.3.4)"
23460 msgstr ""
23461
23462 #. type: =head2
23463 #: ../src/guestfs-actions.pod:297
23464 msgid "guestfs_aug_close"
23465 msgstr ""
23466
23467 #. type: verbatim
23468 #: ../src/guestfs-actions.pod:299
23469 #, no-wrap
23470 msgid ""
23471 " int\n"
23472 " guestfs_aug_close (guestfs_h *g);\n"
23473 "\n"
23474 msgstr ""
23475
23476 #. type: textblock
23477 #: ../src/guestfs-actions.pod:302
23478 msgid ""
23479 "Close the current Augeas handle and free up any resources used by it.  After "
23480 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23481 "any other Augeas functions."
23482 msgstr ""
23483
23484 #. type: textblock
23485 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23486 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23487 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
23488 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
23489 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
23490 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
23491 #: ../src/guestfs-actions.pod:5851
23492 msgid "(Added in 0.7)"
23493 msgstr ""
23494
23495 #. type: =head2
23496 #: ../src/guestfs-actions.pod:311
23497 msgid "guestfs_aug_defnode"
23498 msgstr ""
23499
23500 #. type: verbatim
23501 #: ../src/guestfs-actions.pod:313
23502 #, no-wrap
23503 msgid ""
23504 " struct guestfs_int_bool *\n"
23505 " guestfs_aug_defnode (guestfs_h *g,\n"
23506 "                      const char *name,\n"
23507 "                      const char *expr,\n"
23508 "                      const char *val);\n"
23509 "\n"
23510 msgstr ""
23511
23512 #. type: textblock
23513 #: ../src/guestfs-actions.pod:322
23514 msgid ""
23515 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23516 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
23517 "containing that single node."
23518 msgstr ""
23519
23520 #. type: textblock
23521 #: ../src/guestfs-actions.pod:330
23522 msgid ""
23523 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23524 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
23525 msgstr ""
23526
23527 #. type: =head2
23528 #: ../src/guestfs-actions.pod:336
23529 msgid "guestfs_aug_defvar"
23530 msgstr ""
23531
23532 #. type: verbatim
23533 #: ../src/guestfs-actions.pod:338
23534 #, no-wrap
23535 msgid ""
23536 " int\n"
23537 " guestfs_aug_defvar (guestfs_h *g,\n"
23538 "                     const char *name,\n"
23539 "                     const char *expr);\n"
23540 "\n"
23541 msgstr ""
23542
23543 #. type: =head2
23544 #: ../src/guestfs-actions.pod:354
23545 msgid "guestfs_aug_get"
23546 msgstr ""
23547
23548 #. type: verbatim
23549 #: ../src/guestfs-actions.pod:356
23550 #, no-wrap
23551 msgid ""
23552 " char *\n"
23553 " guestfs_aug_get (guestfs_h *g,\n"
23554 "                  const char *augpath);\n"
23555 "\n"
23556 msgstr ""
23557
23558 #. type: textblock
23559 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
23560 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
23561 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
23562 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
23563 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
23564 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
23565 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
23566 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2014
23567 #: ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2209
23568 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2605
23569 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2799
23570 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3032
23571 #: ../src/guestfs-actions.pod:3060 ../src/guestfs-actions.pod:3081
23572 #: ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3174
23573 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
23574 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:4194
23575 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4474
23576 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5579
23577 #: ../src/guestfs-actions.pod:5749 ../src/guestfs-actions.pod:5927
23578 #: ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6632
23579 #: ../src/guestfs-actions.pod:6648 ../src/guestfs-actions.pod:6672
23580 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:7370
23581 #: ../src/guestfs-actions.pod:7389 ../src/guestfs-actions.pod:7407
23582 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7898
23583 msgid ""
23584 "This function returns a string, or NULL on error.  I<The caller must free "
23585 "the returned string after use>."
23586 msgstr ""
23587
23588 #. type: =head2
23589 #: ../src/guestfs-actions.pod:368
23590 msgid "guestfs_aug_init"
23591 msgstr ""
23592
23593 #. type: verbatim
23594 #: ../src/guestfs-actions.pod:370
23595 #, no-wrap
23596 msgid ""
23597 " int\n"
23598 " guestfs_aug_init (guestfs_h *g,\n"
23599 "                   const char *root,\n"
23600 "                   int flags);\n"
23601 "\n"
23602 msgstr ""
23603
23604 #. type: textblock
23605 #: ../src/guestfs-actions.pod:379
23606 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23607 msgstr ""
23608
23609 #. type: textblock
23610 #: ../src/guestfs-actions.pod:404
23611 msgid ""
23612 "This option is only useful when debugging Augeas lenses.  Use of this option "
23613 "may require additional memory for the libguestfs appliance.  You may need to "
23614 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
23615 "C<guestfs_set_memsize>."
23616 msgstr ""
23617
23618 #. type: textblock
23619 #: ../src/guestfs-actions.pod:419
23620 msgid "Do not load the tree in C<guestfs_aug_init>."
23621 msgstr ""
23622
23623 #. type: textblock
23624 #: ../src/guestfs-actions.pod:423
23625 msgid "To close the handle, you can call C<guestfs_aug_close>."
23626 msgstr ""
23627
23628 #. type: =head2
23629 #: ../src/guestfs-actions.pod:431
23630 msgid "guestfs_aug_insert"
23631 msgstr ""
23632
23633 #. type: verbatim
23634 #: ../src/guestfs-actions.pod:433
23635 #, no-wrap
23636 msgid ""
23637 " int\n"
23638 " guestfs_aug_insert (guestfs_h *g,\n"
23639 "                     const char *augpath,\n"
23640 "                     const char *label,\n"
23641 "                     int before);\n"
23642 "\n"
23643 msgstr ""
23644
23645 #. type: =head2
23646 #: ../src/guestfs-actions.pod:451
23647 msgid "guestfs_aug_load"
23648 msgstr ""
23649
23650 #. type: verbatim
23651 #: ../src/guestfs-actions.pod:453
23652 #, no-wrap
23653 msgid ""
23654 " int\n"
23655 " guestfs_aug_load (guestfs_h *g);\n"
23656 "\n"
23657 msgstr ""
23658
23659 #. type: =head2
23660 #: ../src/guestfs-actions.pod:465
23661 msgid "guestfs_aug_ls"
23662 msgstr ""
23663
23664 #. type: verbatim
23665 #: ../src/guestfs-actions.pod:467
23666 #, no-wrap
23667 msgid ""
23668 " char **\n"
23669 " guestfs_aug_ls (guestfs_h *g,\n"
23670 "                 const char *augpath);\n"
23671 "\n"
23672 msgstr ""
23673
23674 #. type: textblock
23675 #: ../src/guestfs-actions.pod:471
23676 msgid ""
23677 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23678 "sorting the resulting nodes into alphabetical order."
23679 msgstr ""
23680
23681 #. type: textblock
23682 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
23683 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
23684 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
23685 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
23686 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
23687 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
23688 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2383
23689 #: ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2503
23690 #: ../src/guestfs-actions.pod:2760 ../src/guestfs-actions.pod:3134
23691 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3724
23692 #: ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761
23693 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:3928
23694 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:5103
23695 #: ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:5847
23696 #: ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:6712
23697 #: ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6828
23698 #: ../src/guestfs-actions.pod:6974 ../src/guestfs-actions.pod:6998
23699 #: ../src/guestfs-actions.pod:7474 ../src/guestfs-actions.pod:7494
23700 #: ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7735
23701 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:7848
23702 #: ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7913
23703 #: ../src/guestfs-actions.pod:7932
23704 msgid ""
23705 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23706 ">), or NULL if there was an error.  I<The caller must free the strings and "
23707 "the array after use>."
23708 msgstr ""
23709
23710 #. type: textblock
23711 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
23712 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
23713 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3519
23714 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4227
23715 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4447
23716 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:5107
23717 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:6059
23718 #: ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6085
23719 #: ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:7212
23720 #: ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7458
23721 #: ../src/guestfs-actions.pod:7723
23722 msgid "(Added in 0.8)"
23723 msgstr ""
23724
23725 #. type: =head2
23726 #: ../src/guestfs-actions.pod:480
23727 msgid "guestfs_aug_match"
23728 msgstr ""
23729
23730 #. type: verbatim
23731 #: ../src/guestfs-actions.pod:482
23732 #, no-wrap
23733 msgid ""
23734 " char **\n"
23735 " guestfs_aug_match (guestfs_h *g,\n"
23736 "                    const char *augpath);\n"
23737 "\n"
23738 msgstr ""
23739
23740 #. type: =head2
23741 #: ../src/guestfs-actions.pod:496
23742 msgid "guestfs_aug_mv"
23743 msgstr ""
23744
23745 #. type: verbatim
23746 #: ../src/guestfs-actions.pod:498
23747 #, no-wrap
23748 msgid ""
23749 " int\n"
23750 " guestfs_aug_mv (guestfs_h *g,\n"
23751 "                 const char *src,\n"
23752 "                 const char *dest);\n"
23753 "\n"
23754 msgstr ""
23755
23756 #. type: =head2
23757 #: ../src/guestfs-actions.pod:510
23758 msgid "guestfs_aug_rm"
23759 msgstr ""
23760
23761 #. type: verbatim
23762 #: ../src/guestfs-actions.pod:512
23763 #, no-wrap
23764 msgid ""
23765 " int\n"
23766 " guestfs_aug_rm (guestfs_h *g,\n"
23767 "                 const char *augpath);\n"
23768 "\n"
23769 msgstr ""
23770
23771 #. type: =head2
23772 #: ../src/guestfs-actions.pod:524
23773 msgid "guestfs_aug_save"
23774 msgstr ""
23775
23776 #. type: verbatim
23777 #: ../src/guestfs-actions.pod:526
23778 #, no-wrap
23779 msgid ""
23780 " int\n"
23781 " guestfs_aug_save (guestfs_h *g);\n"
23782 "\n"
23783 msgstr ""
23784
23785 #. type: textblock
23786 #: ../src/guestfs-actions.pod:531
23787 msgid ""
23788 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23789 "are saved."
23790 msgstr ""
23791
23792 #. type: =head2
23793 #: ../src/guestfs-actions.pod:538
23794 msgid "guestfs_aug_set"
23795 msgstr ""
23796
23797 #. type: verbatim
23798 #: ../src/guestfs-actions.pod:540
23799 #, no-wrap
23800 msgid ""
23801 " int\n"
23802 " guestfs_aug_set (guestfs_h *g,\n"
23803 "                  const char *augpath,\n"
23804 "                  const char *val);\n"
23805 "\n"
23806 msgstr ""
23807
23808 #. type: textblock
23809 #: ../src/guestfs-actions.pod:547
23810 msgid ""
23811 "In the Augeas API, it is possible to clear a node by setting the value to "
23812 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23813 "this call.  Instead you must use the C<guestfs_aug_clear> call."
23814 msgstr ""
23815
23816 #. type: =head2
23817 #: ../src/guestfs-actions.pod:556
23818 msgid "guestfs_available"
23819 msgstr ""
23820
23821 #. type: verbatim
23822 #: ../src/guestfs-actions.pod:558
23823 #, no-wrap
23824 msgid ""
23825 " int\n"
23826 " guestfs_available (guestfs_h *g,\n"
23827 "                    char *const *groups);\n"
23828 "\n"
23829 msgstr ""
23830
23831 #. type: textblock
23832 #: ../src/guestfs-actions.pod:566
23833 msgid ""
23834 "The libguestfs groups, and the functions that those groups correspond to, "
23835 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23836 "runtime by calling C<guestfs_available_all_groups>."
23837 msgstr ""
23838
23839 #. type: textblock
23840 #: ../src/guestfs-actions.pod:590
23841 msgid "You must call C<guestfs_launch> before calling this function."
23842 msgstr ""
23843
23844 #. type: textblock
23845 #: ../src/guestfs-actions.pod:612
23846 msgid ""
23847 "This call was added in version C<1.0.80>.  In previous versions of "
23848 "libguestfs all you could do would be to speculatively execute a command to "
23849 "find out if the daemon implemented it.  See also C<guestfs_version>."
23850 msgstr ""
23851
23852 #. type: textblock
23853 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
23854 msgid "(Added in 1.0.80)"
23855 msgstr ""
23856
23857 #. type: =head2
23858 #: ../src/guestfs-actions.pod:623
23859 msgid "guestfs_available_all_groups"
23860 msgstr ""
23861
23862 #. type: verbatim
23863 #: ../src/guestfs-actions.pod:625
23864 #, no-wrap
23865 msgid ""
23866 " char **\n"
23867 " guestfs_available_all_groups (guestfs_h *g);\n"
23868 "\n"
23869 msgstr ""
23870
23871 #. type: textblock
23872 #: ../src/guestfs-actions.pod:628
23873 msgid ""
23874 "This command returns a list of all optional groups that this daemon knows "
23875 "about.  Note this returns both supported and unsupported groups.  To find "
23876 "out which ones the daemon can actually support you have to call "
23877 "C<guestfs_available> on each member of the returned list."
23878 msgstr ""
23879
23880 #. type: textblock
23881 #: ../src/guestfs-actions.pod:634
23882 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
23883 msgstr ""
23884
23885 #. type: textblock
23886 #: ../src/guestfs-actions.pod:640
23887 msgid "(Added in 1.3.15)"
23888 msgstr ""
23889
23890 #. type: =head2
23891 #: ../src/guestfs-actions.pod:642
23892 msgid "guestfs_base64_in"
23893 msgstr ""
23894
23895 #. type: verbatim
23896 #: ../src/guestfs-actions.pod:644
23897 #, no-wrap
23898 msgid ""
23899 " int\n"
23900 " guestfs_base64_in (guestfs_h *g,\n"
23901 "                    const char *base64file,\n"
23902 "                    const char *filename);\n"
23903 "\n"
23904 msgstr ""
23905
23906 #. type: textblock
23907 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
23908 msgid "(Added in 1.3.5)"
23909 msgstr ""
23910
23911 #. type: =head2
23912 #: ../src/guestfs-actions.pod:656
23913 msgid "guestfs_base64_out"
23914 msgstr ""
23915
23916 #. type: verbatim
23917 #: ../src/guestfs-actions.pod:658
23918 #, no-wrap
23919 msgid ""
23920 " int\n"
23921 " guestfs_base64_out (guestfs_h *g,\n"
23922 "                     const char *filename,\n"
23923 "                     const char *base64file);\n"
23924 "\n"
23925 msgstr ""
23926
23927 #. type: =head2
23928 #: ../src/guestfs-actions.pod:670
23929 msgid "guestfs_blockdev_flushbufs"
23930 msgstr ""
23931
23932 #. type: verbatim
23933 #: ../src/guestfs-actions.pod:672
23934 #, no-wrap
23935 msgid ""
23936 " int\n"
23937 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
23938 "                             const char *device);\n"
23939 "\n"
23940 msgstr ""
23941
23942 #. type: textblock
23943 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
23944 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
23945 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
23946 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
23947 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
23948 msgid "(Added in 0.9.3)"
23949 msgstr ""
23950
23951 #. type: =head2
23952 #: ../src/guestfs-actions.pod:685
23953 msgid "guestfs_blockdev_getbsz"
23954 msgstr ""
23955
23956 #. type: verbatim
23957 #: ../src/guestfs-actions.pod:687
23958 #, no-wrap
23959 msgid ""
23960 " int\n"
23961 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
23962 "                          const char *device);\n"
23963 "\n"
23964 msgstr ""
23965
23966 #. type: =head2
23967 #: ../src/guestfs-actions.pod:702
23968 msgid "guestfs_blockdev_getro"
23969 msgstr ""
23970
23971 #. type: verbatim
23972 #: ../src/guestfs-actions.pod:704
23973 #, no-wrap
23974 msgid ""
23975 " int\n"
23976 " guestfs_blockdev_getro (guestfs_h *g,\n"
23977 "                         const char *device);\n"
23978 "\n"
23979 msgstr ""
23980
23981 #. type: textblock
23982 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
23983 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
23984 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
23985 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
23986 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
23987 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3231
23988 #: ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3265
23989 #: ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3441
23990 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3470
23991 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3501
23992 #: ../src/guestfs-actions.pod:3517 ../src/guestfs-actions.pod:3531
23993 #: ../src/guestfs-actions.pod:3544 ../src/guestfs-actions.pod:3558
23994 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3588
23995 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3615
23996 #: ../src/guestfs-actions.pod:5344
23997 msgid "This function returns a C truth value on success or -1 on error."
23998 msgstr ""
23999
24000 #. type: =head2
24001 #: ../src/guestfs-actions.pod:717
24002 msgid "guestfs_blockdev_getsize64"
24003 msgstr ""
24004
24005 #. type: verbatim
24006 #: ../src/guestfs-actions.pod:719
24007 #, no-wrap
24008 msgid ""
24009 " int64_t\n"
24010 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24011 "                             const char *device);\n"
24012 "\n"
24013 msgstr ""
24014
24015 #. type: textblock
24016 #: ../src/guestfs-actions.pod:725
24017 msgid "See also C<guestfs_blockdev_getsz>."
24018 msgstr ""
24019
24020 #. type: =head2
24021 #: ../src/guestfs-actions.pod:733
24022 msgid "guestfs_blockdev_getss"
24023 msgstr ""
24024
24025 #. type: verbatim
24026 #: ../src/guestfs-actions.pod:735
24027 #, no-wrap
24028 msgid ""
24029 " int\n"
24030 " guestfs_blockdev_getss (guestfs_h *g,\n"
24031 "                         const char *device);\n"
24032 "\n"
24033 msgstr ""
24034
24035 #. type: textblock
24036 #: ../src/guestfs-actions.pod:742
24037 msgid ""
24038 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24039 "that)."
24040 msgstr ""
24041
24042 #. type: =head2
24043 #: ../src/guestfs-actions.pod:751
24044 msgid "guestfs_blockdev_getsz"
24045 msgstr ""
24046
24047 #. type: verbatim
24048 #: ../src/guestfs-actions.pod:753
24049 #, no-wrap
24050 msgid ""
24051 " int64_t\n"
24052 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24053 "                         const char *device);\n"
24054 "\n"
24055 msgstr ""
24056
24057 #. type: textblock
24058 #: ../src/guestfs-actions.pod:760
24059 msgid ""
24060 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24061 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24062 msgstr ""
24063
24064 #. type: =head2
24065 #: ../src/guestfs-actions.pod:770
24066 msgid "guestfs_blockdev_rereadpt"
24067 msgstr ""
24068
24069 #. type: verbatim
24070 #: ../src/guestfs-actions.pod:772
24071 #, no-wrap
24072 msgid ""
24073 " int\n"
24074 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24075 "                            const char *device);\n"
24076 "\n"
24077 msgstr ""
24078
24079 #. type: =head2
24080 #: ../src/guestfs-actions.pod:784
24081 msgid "guestfs_blockdev_setbsz"
24082 msgstr ""
24083
24084 #. type: verbatim
24085 #: ../src/guestfs-actions.pod:786
24086 #, no-wrap
24087 msgid ""
24088 " int\n"
24089 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24090 "                          const char *device,\n"
24091 "                          int blocksize);\n"
24092 "\n"
24093 msgstr ""
24094
24095 #. type: =head2
24096 #: ../src/guestfs-actions.pod:802
24097 msgid "guestfs_blockdev_setro"
24098 msgstr ""
24099
24100 #. type: verbatim
24101 #: ../src/guestfs-actions.pod:804
24102 #, no-wrap
24103 msgid ""
24104 " int\n"
24105 " guestfs_blockdev_setro (guestfs_h *g,\n"
24106 "                         const char *device);\n"
24107 "\n"
24108 msgstr ""
24109
24110 #. type: =head2
24111 #: ../src/guestfs-actions.pod:816
24112 msgid "guestfs_blockdev_setrw"
24113 msgstr ""
24114
24115 #. type: verbatim
24116 #: ../src/guestfs-actions.pod:818
24117 #, no-wrap
24118 msgid ""
24119 " int\n"
24120 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24121 "                         const char *device);\n"
24122 "\n"
24123 msgstr ""
24124
24125 #. type: =head2
24126 #: ../src/guestfs-actions.pod:830
24127 msgid "guestfs_btrfs_filesystem_resize"
24128 msgstr ""
24129
24130 #. type: verbatim
24131 #: ../src/guestfs-actions.pod:832
24132 #, no-wrap
24133 msgid ""
24134 " int\n"
24135 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24136 "                                  const char *mountpoint,\n"
24137 "                                  ...);\n"
24138 "\n"
24139 msgstr ""
24140
24141 #. type: verbatim
24142 #: ../src/guestfs-actions.pod:842
24143 #, no-wrap
24144 msgid ""
24145 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24146 "\n"
24147 msgstr ""
24148
24149 #. type: textblock
24150 #: ../src/guestfs-actions.pod:865
24151 msgid "(Added in 1.11.17)"
24152 msgstr ""
24153
24154 #. type: =head2
24155 #: ../src/guestfs-actions.pod:867
24156 msgid "guestfs_btrfs_filesystem_resize_va"
24157 msgstr ""
24158
24159 #. type: verbatim
24160 #: ../src/guestfs-actions.pod:869
24161 #, no-wrap
24162 msgid ""
24163 " int\n"
24164 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24165 "                                     const char *mountpoint,\n"
24166 "                                     va_list args);\n"
24167 "\n"
24168 msgstr ""
24169
24170 #. type: textblock
24171 #: ../src/guestfs-actions.pod:874
24172 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24173 msgstr ""
24174
24175 #. type: =head2
24176 #: ../src/guestfs-actions.pod:878
24177 msgid "guestfs_btrfs_filesystem_resize_argv"
24178 msgstr ""
24179
24180 #. type: verbatim
24181 #: ../src/guestfs-actions.pod:880
24182 #, no-wrap
24183 msgid ""
24184 " int\n"
24185 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24186 "                                       const char *mountpoint,\n"
24187 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24188 "\n"
24189 msgstr ""
24190
24191 #. type: textblock
24192 #: ../src/guestfs-actions.pod:885
24193 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24194 msgstr ""
24195
24196 #. type: =head2
24197 #: ../src/guestfs-actions.pod:889
24198 msgid "guestfs_case_sensitive_path"
24199 msgstr ""
24200
24201 #. type: verbatim
24202 #: ../src/guestfs-actions.pod:891
24203 #, no-wrap
24204 msgid ""
24205 " char *\n"
24206 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24207 "                              const char *path);\n"
24208 "\n"
24209 msgstr ""
24210
24211 #. type: textblock
24212 #: ../src/guestfs-actions.pod:917
24213 msgid ""
24214 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
24215 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24216 "how the directories were originally created under Windows)."
24217 msgstr ""
24218
24219 #. type: textblock
24220 #: ../src/guestfs-actions.pod:925
24221 msgid "See also C<guestfs_realpath>."
24222 msgstr ""
24223
24224 #. type: textblock
24225 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7392
24226 msgid "(Added in 1.0.75)"
24227 msgstr ""
24228
24229 #. type: =head2
24230 #: ../src/guestfs-actions.pod:932
24231 msgid "guestfs_cat"
24232 msgstr ""
24233
24234 #. type: verbatim
24235 #: ../src/guestfs-actions.pod:934
24236 #, no-wrap
24237 msgid ""
24238 " char *\n"
24239 " guestfs_cat (guestfs_h *g,\n"
24240 "              const char *path);\n"
24241 "\n"
24242 msgstr ""
24243
24244 #. type: textblock
24245 #: ../src/guestfs-actions.pod:940
24246 msgid ""
24247 "Note that this function cannot correctly handle binary files (specifically, "
24248 "files containing C<\\0> character which is treated as end of string).  For "
24249 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24250 "functions which have a more complex interface."
24251 msgstr ""
24252
24253 #. type: textblock
24254 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3745
24255 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3844
24256 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:4340
24257 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:5725
24258 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7545
24259 #: ../src/guestfs-actions.pod:7559
24260 msgid "(Added in 0.4)"
24261 msgstr ""
24262
24263 #. type: =head2
24264 #: ../src/guestfs-actions.pod:953
24265 msgid "guestfs_checksum"
24266 msgstr ""
24267
24268 #. type: verbatim
24269 #: ../src/guestfs-actions.pod:955
24270 #, no-wrap
24271 msgid ""
24272 " char *\n"
24273 " guestfs_checksum (guestfs_h *g,\n"
24274 "                   const char *csumtype,\n"
24275 "                   const char *path);\n"
24276 "\n"
24277 msgstr ""
24278
24279 #. type: textblock
24280 #: ../src/guestfs-actions.pod:1001
24281 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24282 msgstr ""
24283
24284 #. type: textblock
24285 #: ../src/guestfs-actions.pod:1003
24286 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24287 msgstr ""
24288
24289 #. type: textblock
24290 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
24291 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3443
24292 #: ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:3533
24293 #: ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:7248
24294 msgid "(Added in 1.0.2)"
24295 msgstr ""
24296
24297 #. type: =head2
24298 #: ../src/guestfs-actions.pod:1010
24299 msgid "guestfs_checksum_device"
24300 msgstr ""
24301
24302 #. type: verbatim
24303 #: ../src/guestfs-actions.pod:1012
24304 #, no-wrap
24305 msgid ""
24306 " char *\n"
24307 " guestfs_checksum_device (guestfs_h *g,\n"
24308 "                          const char *csumtype,\n"
24309 "                          const char *device);\n"
24310 "\n"
24311 msgstr ""
24312
24313 #. type: textblock
24314 #: ../src/guestfs-actions.pod:1017
24315 msgid ""
24316 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24317 "device named C<device>.  For the types of checksums supported see the "
24318 "C<guestfs_checksum> command."
24319 msgstr ""
24320
24321 #. type: textblock
24322 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5174
24323 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5346
24324 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5546
24325 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7171
24326 #: ../src/guestfs-actions.pod:7571
24327 msgid "(Added in 1.3.2)"
24328 msgstr ""
24329
24330 #. type: =head2
24331 #: ../src/guestfs-actions.pod:1026
24332 msgid "guestfs_checksums_out"
24333 msgstr ""
24334
24335 #. type: verbatim
24336 #: ../src/guestfs-actions.pod:1028
24337 #, no-wrap
24338 msgid ""
24339 " int\n"
24340 " guestfs_checksums_out (guestfs_h *g,\n"
24341 "                        const char *csumtype,\n"
24342 "                        const char *directory,\n"
24343 "                        const char *sumsfile);\n"
24344 "\n"
24345 msgstr ""
24346
24347 #. type: textblock
24348 #: ../src/guestfs-actions.pod:1048
24349 msgid "(Added in 1.3.7)"
24350 msgstr ""
24351
24352 #. type: =head2
24353 #: ../src/guestfs-actions.pod:1050
24354 msgid "guestfs_chmod"
24355 msgstr ""
24356
24357 #. type: verbatim
24358 #: ../src/guestfs-actions.pod:1052
24359 #, no-wrap
24360 msgid ""
24361 " int\n"
24362 " guestfs_chmod (guestfs_h *g,\n"
24363 "                int mode,\n"
24364 "                const char *path);\n"
24365 "\n"
24366 msgstr ""
24367
24368 #. type: =head2
24369 #: ../src/guestfs-actions.pod:1070
24370 msgid "guestfs_chown"
24371 msgstr ""
24372
24373 #. type: verbatim
24374 #: ../src/guestfs-actions.pod:1072
24375 #, no-wrap
24376 msgid ""
24377 " int\n"
24378 " guestfs_chown (guestfs_h *g,\n"
24379 "                int owner,\n"
24380 "                int group,\n"
24381 "                const char *path);\n"
24382 "\n"
24383 msgstr ""
24384
24385 #. type: =head2
24386 #: ../src/guestfs-actions.pod:1088
24387 msgid "guestfs_command"
24388 msgstr ""
24389
24390 #. type: verbatim
24391 #: ../src/guestfs-actions.pod:1090
24392 #, no-wrap
24393 msgid ""
24394 " char *\n"
24395 " guestfs_command (guestfs_h *g,\n"
24396 "                  char *const *arguments);\n"
24397 "\n"
24398 msgstr ""
24399
24400 #. type: textblock
24401 #: ../src/guestfs-actions.pod:1099
24402 msgid ""
24403 "The single parameter is an argv-style list of arguments.  The first element "
24404 "is the name of the program to run.  Subsequent elements are parameters.  The "
24405 "list must be non-empty (ie. must contain a program name).  Note that the "
24406 "command runs directly, and is I<not> invoked via the shell (see "
24407 "C<guestfs_sh>)."
24408 msgstr ""
24409
24410 #. type: textblock
24411 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24412 #: ../src/guestfs-actions.pod:1615
24413 msgid "(Added in 0.9.1)"
24414 msgstr ""
24415
24416 #. type: =head2
24417 #: ../src/guestfs-actions.pod:1132
24418 msgid "guestfs_command_lines"
24419 msgstr ""
24420
24421 #. type: verbatim
24422 #: ../src/guestfs-actions.pod:1134
24423 #, no-wrap
24424 msgid ""
24425 " char **\n"
24426 " guestfs_command_lines (guestfs_h *g,\n"
24427 "                        char *const *arguments);\n"
24428 "\n"
24429 msgstr ""
24430
24431 #. type: textblock
24432 #: ../src/guestfs-actions.pod:1138
24433 msgid ""
24434 "This is the same as C<guestfs_command>, but splits the result into a list of "
24435 "lines."
24436 msgstr ""
24437
24438 #. type: textblock
24439 #: ../src/guestfs-actions.pod:1141
24440 msgid "See also: C<guestfs_sh_lines>"
24441 msgstr ""
24442
24443 #. type: =head2
24444 #: ../src/guestfs-actions.pod:1152
24445 msgid "guestfs_config"
24446 msgstr ""
24447
24448 #. type: verbatim
24449 #: ../src/guestfs-actions.pod:1154
24450 #, no-wrap
24451 msgid ""
24452 " int\n"
24453 " guestfs_config (guestfs_h *g,\n"
24454 "                 const char *qemuparam,\n"
24455 "                 const char *qemuvalue);\n"
24456 "\n"
24457 msgstr ""
24458
24459 #. type: =head2
24460 #: ../src/guestfs-actions.pod:1172
24461 msgid "guestfs_copy_size"
24462 msgstr ""
24463
24464 #. type: verbatim
24465 #: ../src/guestfs-actions.pod:1174
24466 #, no-wrap
24467 msgid ""
24468 " int\n"
24469 " guestfs_copy_size (guestfs_h *g,\n"
24470 "                    const char *src,\n"
24471 "                    const char *dest,\n"
24472 "                    int64_t size);\n"
24473 "\n"
24474 msgstr ""
24475
24476 #. type: textblock
24477 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
24478 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
24479 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
24480 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:7243
24481 #: ../src/guestfs-actions.pod:7277 ../src/guestfs-actions.pod:7784
24482 #: ../src/guestfs-actions.pod:7807
24483 msgid ""
24484 "This long-running command can generate progress notification messages so "
24485 "that the caller can display a progress bar or indicator.  To receive these "
24486 "messages, the caller must register a progress event callback.  See L<guestfs"
24487 "(3)/GUESTFS_EVENT_PROGRESS>."
24488 msgstr ""
24489
24490 #. type: textblock
24491 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4367
24492 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:7478
24493 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7584
24494 msgid "(Added in 1.0.87)"
24495 msgstr ""
24496
24497 #. type: =head2
24498 #: ../src/guestfs-actions.pod:1195
24499 msgid "guestfs_cp"
24500 msgstr ""
24501
24502 #. type: verbatim
24503 #: ../src/guestfs-actions.pod:1197
24504 #, no-wrap
24505 msgid ""
24506 " int\n"
24507 " guestfs_cp (guestfs_h *g,\n"
24508 "             const char *src,\n"
24509 "             const char *dest);\n"
24510 "\n"
24511 msgstr ""
24512
24513 #. type: textblock
24514 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
24515 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
24516 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5121
24517 #: ../src/guestfs-actions.pod:5596
24518 msgid "(Added in 1.0.18)"
24519 msgstr ""
24520
24521 #. type: =head2
24522 #: ../src/guestfs-actions.pod:1209
24523 msgid "guestfs_cp_a"
24524 msgstr ""
24525
24526 #. type: verbatim
24527 #: ../src/guestfs-actions.pod:1211
24528 #, no-wrap
24529 msgid ""
24530 " int\n"
24531 " guestfs_cp_a (guestfs_h *g,\n"
24532 "               const char *src,\n"
24533 "               const char *dest);\n"
24534 "\n"
24535 msgstr ""
24536
24537 #. type: =head2
24538 #: ../src/guestfs-actions.pod:1223
24539 msgid "guestfs_dd"
24540 msgstr ""
24541
24542 #. type: verbatim
24543 #: ../src/guestfs-actions.pod:1225
24544 #, no-wrap
24545 msgid ""
24546 " int\n"
24547 " guestfs_dd (guestfs_h *g,\n"
24548 "             const char *src,\n"
24549 "             const char *dest);\n"
24550 "\n"
24551 msgstr ""
24552
24553 #. type: textblock
24554 #: ../src/guestfs-actions.pod:1235
24555 msgid ""
24556 "If the destination is a device, it must be as large or larger than the "
24557 "source file or device, otherwise the copy will fail.  This command cannot do "
24558 "partial copies (see C<guestfs_copy_size>)."
24559 msgstr ""
24560
24561 #. type: =head2
24562 #: ../src/guestfs-actions.pod:1243
24563 msgid "guestfs_df"
24564 msgstr ""
24565
24566 #. type: verbatim
24567 #: ../src/guestfs-actions.pod:1245
24568 #, no-wrap
24569 msgid ""
24570 " char *\n"
24571 " guestfs_df (guestfs_h *g);\n"
24572 "\n"
24573 msgstr ""
24574
24575 #. type: textblock
24576 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
24577 msgid ""
24578 "This command is mostly useful for interactive sessions.  It is I<not> "
24579 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
24580 "from programs."
24581 msgstr ""
24582
24583 #. type: textblock
24584 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
24585 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2366
24586 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2458
24587 #: ../src/guestfs-actions.pod:4477 ../src/guestfs-actions.pod:5021
24588 #: ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7005
24589 #: ../src/guestfs-actions.pod:7624 ../src/guestfs-actions.pod:7637
24590 #: ../src/guestfs-actions.pod:7650
24591 msgid "(Added in 1.0.54)"
24592 msgstr ""
24593
24594 #. type: =head2
24595 #: ../src/guestfs-actions.pod:1259
24596 msgid "guestfs_df_h"
24597 msgstr ""
24598
24599 #. type: verbatim
24600 #: ../src/guestfs-actions.pod:1261
24601 #, no-wrap
24602 msgid ""
24603 " char *\n"
24604 " guestfs_df_h (guestfs_h *g);\n"
24605 "\n"
24606 msgstr ""
24607
24608 #. type: =head2
24609 #: ../src/guestfs-actions.pod:1276
24610 msgid "guestfs_dmesg"
24611 msgstr ""
24612
24613 #. type: verbatim
24614 #: ../src/guestfs-actions.pod:1278
24615 #, no-wrap
24616 msgid ""
24617 " char *\n"
24618 " guestfs_dmesg (guestfs_h *g);\n"
24619 "\n"
24620 msgstr ""
24621
24622 #. type: textblock
24623 #: ../src/guestfs-actions.pod:1285
24624 msgid ""
24625 "Another way to get the same information is to enable verbose messages with "
24626 "C<guestfs_set_verbose> or by setting the environment variable "
24627 "C<LIBGUESTFS_DEBUG=1> before running the program."
24628 msgstr ""
24629
24630 #. type: =head2
24631 #: ../src/guestfs-actions.pod:1295
24632 msgid "guestfs_download"
24633 msgstr ""
24634
24635 #. type: verbatim
24636 #: ../src/guestfs-actions.pod:1297
24637 #, no-wrap
24638 msgid ""
24639 " int\n"
24640 " guestfs_download (guestfs_h *g,\n"
24641 "                   const char *remotefilename,\n"
24642 "                   const char *filename);\n"
24643 "\n"
24644 msgstr ""
24645
24646 #. type: textblock
24647 #: ../src/guestfs-actions.pod:1307
24648 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24649 msgstr ""
24650
24651 #. type: =head2
24652 #: ../src/guestfs-actions.pod:1318
24653 msgid "guestfs_download_offset"
24654 msgstr ""
24655
24656 #. type: verbatim
24657 #: ../src/guestfs-actions.pod:1320
24658 #, no-wrap
24659 msgid ""
24660 " int\n"
24661 " guestfs_download_offset (guestfs_h *g,\n"
24662 "                          const char *remotefilename,\n"
24663 "                          const char *filename,\n"
24664 "                          int64_t offset,\n"
24665 "                          int64_t size);\n"
24666 "\n"
24667 msgstr ""
24668
24669 #. type: textblock
24670 #: ../src/guestfs-actions.pod:1333
24671 msgid ""
24672 "Note that there is no limit on the amount of data that can be downloaded "
24673 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24674 "full amount unless an error occurs."
24675 msgstr ""
24676
24677 #. type: textblock
24678 #: ../src/guestfs-actions.pod:1338
24679 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24680 msgstr ""
24681
24682 #. type: textblock
24683 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7282
24684 msgid "(Added in 1.5.17)"
24685 msgstr ""
24686
24687 #. type: =head2
24688 #: ../src/guestfs-actions.pod:1349
24689 msgid "guestfs_drop_caches"
24690 msgstr ""
24691
24692 #. type: verbatim
24693 #: ../src/guestfs-actions.pod:1351
24694 #, no-wrap
24695 msgid ""
24696 " int\n"
24697 " guestfs_drop_caches (guestfs_h *g,\n"
24698 "                      int whattodrop);\n"
24699 "\n"
24700 msgstr ""
24701
24702 #. type: =head2
24703 #: ../src/guestfs-actions.pod:1369
24704 msgid "guestfs_du"
24705 msgstr ""
24706
24707 #. type: verbatim
24708 #: ../src/guestfs-actions.pod:1371
24709 #, no-wrap
24710 msgid ""
24711 " int64_t\n"
24712 " guestfs_du (guestfs_h *g,\n"
24713 "             const char *path);\n"
24714 "\n"
24715 msgstr ""
24716
24717 #. type: =head2
24718 #: ../src/guestfs-actions.pod:1394
24719 msgid "guestfs_e2fsck_f"
24720 msgstr ""
24721
24722 #. type: verbatim
24723 #: ../src/guestfs-actions.pod:1396
24724 #, no-wrap
24725 msgid ""
24726 " int\n"
24727 " guestfs_e2fsck_f (guestfs_h *g,\n"
24728 "                   const char *device);\n"
24729 "\n"
24730 msgstr ""
24731
24732 #. type: textblock
24733 #: ../src/guestfs-actions.pod:1404
24734 msgid ""
24735 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
24736 "Normally you should use C<guestfs_fsck>."
24737 msgstr ""
24738
24739 #. type: textblock
24740 #: ../src/guestfs-actions.pod:1409
24741 msgid "(Added in 1.0.29)"
24742 msgstr ""
24743
24744 #. type: =head2
24745 #: ../src/guestfs-actions.pod:1411
24746 msgid "guestfs_echo_daemon"
24747 msgstr ""
24748
24749 #. type: verbatim
24750 #: ../src/guestfs-actions.pod:1413
24751 #, no-wrap
24752 msgid ""
24753 " char *\n"
24754 " guestfs_echo_daemon (guestfs_h *g,\n"
24755 "                      char *const *words);\n"
24756 "\n"
24757 msgstr ""
24758
24759 #. type: textblock
24760 #: ../src/guestfs-actions.pod:1422
24761 msgid "See also C<guestfs_ping_daemon>."
24762 msgstr ""
24763
24764 #. type: textblock
24765 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
24766 #: ../src/guestfs-actions.pod:6453
24767 msgid "(Added in 1.0.69)"
24768 msgstr ""
24769
24770 #. type: =head2
24771 #: ../src/guestfs-actions.pod:1429
24772 msgid "guestfs_egrep"
24773 msgstr ""
24774
24775 #. type: verbatim
24776 #: ../src/guestfs-actions.pod:1431
24777 #, no-wrap
24778 msgid ""
24779 " char **\n"
24780 " guestfs_egrep (guestfs_h *g,\n"
24781 "                const char *regex,\n"
24782 "                const char *path);\n"
24783 "\n"
24784 msgstr ""
24785
24786 #. type: textblock
24787 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
24788 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
24789 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
24790 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2479
24791 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2507
24792 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2575
24793 #: ../src/guestfs-actions.pod:2588 ../src/guestfs-actions.pod:3857
24794 #: ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3884
24795 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4899
24796 #: ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:5979
24797 #: ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6861
24798 #: ../src/guestfs-actions.pod:6874 ../src/guestfs-actions.pod:6887
24799 #: ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6922
24800 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948
24801 #: ../src/guestfs-actions.pod:7742 ../src/guestfs-actions.pod:7761
24802 #: ../src/guestfs-actions.pod:7855 ../src/guestfs-actions.pod:7874
24803 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7939
24804 msgid "(Added in 1.0.66)"
24805 msgstr ""
24806
24807 #. type: =head2
24808 #: ../src/guestfs-actions.pod:1448
24809 msgid "guestfs_egrepi"
24810 msgstr ""
24811
24812 #. type: verbatim
24813 #: ../src/guestfs-actions.pod:1450
24814 #, no-wrap
24815 msgid ""
24816 " char **\n"
24817 " guestfs_egrepi (guestfs_h *g,\n"
24818 "                 const char *regex,\n"
24819 "                 const char *path);\n"
24820 "\n"
24821 msgstr ""
24822
24823 #. type: =head2
24824 #: ../src/guestfs-actions.pod:1467
24825 msgid "guestfs_equal"
24826 msgstr ""
24827
24828 #. type: verbatim
24829 #: ../src/guestfs-actions.pod:1469
24830 #, no-wrap
24831 msgid ""
24832 " int\n"
24833 " guestfs_equal (guestfs_h *g,\n"
24834 "                const char *file1,\n"
24835 "                const char *file2);\n"
24836 "\n"
24837 msgstr ""
24838
24839 #. type: =head2
24840 #: ../src/guestfs-actions.pod:1483
24841 msgid "guestfs_exists"
24842 msgstr ""
24843
24844 #. type: verbatim
24845 #: ../src/guestfs-actions.pod:1485
24846 #, no-wrap
24847 msgid ""
24848 " int\n"
24849 " guestfs_exists (guestfs_h *g,\n"
24850 "                 const char *path);\n"
24851 "\n"
24852 msgstr ""
24853
24854 #. type: textblock
24855 #: ../src/guestfs-actions.pod:1492
24856 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
24857 msgstr ""
24858
24859 #. type: =head2
24860 #: ../src/guestfs-actions.pod:1498
24861 msgid "guestfs_fallocate"
24862 msgstr ""
24863
24864 #. type: verbatim
24865 #: ../src/guestfs-actions.pod:1500
24866 #, no-wrap
24867 msgid ""
24868 " int\n"
24869 " guestfs_fallocate (guestfs_h *g,\n"
24870 "                    const char *path,\n"
24871 "                    int len);\n"
24872 "\n"
24873 msgstr ""
24874
24875 #. type: textblock
24876 #: ../src/guestfs-actions.pod:1505
24877 msgid ""
24878 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
24879 "call instead."
24880 msgstr ""
24881
24882 #. type: =head2
24883 #: ../src/guestfs-actions.pod:1524
24884 msgid "guestfs_fallocate64"
24885 msgstr ""
24886
24887 #. type: verbatim
24888 #: ../src/guestfs-actions.pod:1526
24889 #, no-wrap
24890 msgid ""
24891 " int\n"
24892 " guestfs_fallocate64 (guestfs_h *g,\n"
24893 "                      const char *path,\n"
24894 "                      int64_t len);\n"
24895 "\n"
24896 msgstr ""
24897
24898 #. type: textblock
24899 #: ../src/guestfs-actions.pod:1535
24900 msgid ""
24901 "Note that this call allocates disk blocks for the file.  To create a sparse "
24902 "file use C<guestfs_truncate_size> instead."
24903 msgstr ""
24904
24905 #. type: textblock
24906 #: ../src/guestfs-actions.pod:1538
24907 msgid ""
24908 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
24909 "oversight it only allowed 30 bit lengths to be specified, effectively "
24910 "limiting the maximum size of files created through that call to 1GB."
24911 msgstr ""
24912
24913 #. type: textblock
24914 #: ../src/guestfs-actions.pod:1549
24915 msgid "(Added in 1.3.17)"
24916 msgstr ""
24917
24918 #. type: =head2
24919 #: ../src/guestfs-actions.pod:1551
24920 msgid "guestfs_fgrep"
24921 msgstr ""
24922
24923 #. type: verbatim
24924 #: ../src/guestfs-actions.pod:1553
24925 #, no-wrap
24926 msgid ""
24927 " char **\n"
24928 " guestfs_fgrep (guestfs_h *g,\n"
24929 "                const char *pattern,\n"
24930 "                const char *path);\n"
24931 "\n"
24932 msgstr ""
24933
24934 #. type: =head2
24935 #: ../src/guestfs-actions.pod:1570
24936 msgid "guestfs_fgrepi"
24937 msgstr ""
24938
24939 #. type: verbatim
24940 #: ../src/guestfs-actions.pod:1572
24941 #, no-wrap
24942 msgid ""
24943 " char **\n"
24944 " guestfs_fgrepi (guestfs_h *g,\n"
24945 "                 const char *pattern,\n"
24946 "                 const char *path);\n"
24947 "\n"
24948 msgstr ""
24949
24950 #. type: =head2
24951 #: ../src/guestfs-actions.pod:1589
24952 msgid "guestfs_file"
24953 msgstr ""
24954
24955 #. type: verbatim
24956 #: ../src/guestfs-actions.pod:1591
24957 #, no-wrap
24958 msgid ""
24959 " char *\n"
24960 " guestfs_file (guestfs_h *g,\n"
24961 "               const char *path);\n"
24962 "\n"
24963 msgstr ""
24964
24965 #. type: textblock
24966 #: ../src/guestfs-actions.pod:1609
24967 msgid ""
24968 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
24969 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
24970 msgstr ""
24971
24972 #. type: =head2
24973 #: ../src/guestfs-actions.pod:1617
24974 msgid "guestfs_file_architecture"
24975 msgstr ""
24976
24977 #. type: verbatim
24978 #: ../src/guestfs-actions.pod:1619
24979 #, no-wrap
24980 msgid ""
24981 " char *\n"
24982 " guestfs_file_architecture (guestfs_h *g,\n"
24983 "                            const char *filename);\n"
24984 "\n"
24985 msgstr ""
24986
24987 #. type: textblock
24988 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
24989 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2608
24990 #: ../src/guestfs-actions.pod:2698 ../src/guestfs-actions.pod:2764
24991 #: ../src/guestfs-actions.pod:2951 ../src/guestfs-actions.pod:2969
24992 #: ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3084
24993 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3414
24994 #: ../src/guestfs-actions.pod:3546
24995 msgid "(Added in 1.5.3)"
24996 msgstr ""
24997
24998 #. type: =head2
24999 #: ../src/guestfs-actions.pod:1729
25000 msgid "guestfs_filesize"
25001 msgstr ""
25002
25003 #. type: verbatim
25004 #: ../src/guestfs-actions.pod:1731
25005 #, no-wrap
25006 msgid ""
25007 " int64_t\n"
25008 " guestfs_filesize (guestfs_h *g,\n"
25009 "                   const char *file);\n"
25010 "\n"
25011 msgstr ""
25012
25013 #. type: textblock
25014 #: ../src/guestfs-actions.pod:1737
25015 msgid ""
25016 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25017 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
25018 "devices, use C<guestfs_blockdev_getsize64>."
25019 msgstr ""
25020
25021 #. type: textblock
25022 #: ../src/guestfs-actions.pod:1743
25023 msgid "(Added in 1.0.82)"
25024 msgstr ""
25025
25026 #. type: =head2
25027 #: ../src/guestfs-actions.pod:1745
25028 msgid "guestfs_fill"
25029 msgstr ""
25030
25031 #. type: verbatim
25032 #: ../src/guestfs-actions.pod:1747
25033 #, no-wrap
25034 msgid ""
25035 " int\n"
25036 " guestfs_fill (guestfs_h *g,\n"
25037 "               int c,\n"
25038 "               int len,\n"
25039 "               const char *path);\n"
25040 "\n"
25041 msgstr ""
25042
25043 #. type: textblock
25044 #: ../src/guestfs-actions.pod:1757
25045 msgid ""
25046 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25047 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
25048 "bytes use C<guestfs_fill_pattern>."
25049 msgstr ""
25050
25051 #. type: textblock
25052 #: ../src/guestfs-actions.pod:1769
25053 msgid "(Added in 1.0.79)"
25054 msgstr ""
25055
25056 #. type: =head2
25057 #: ../src/guestfs-actions.pod:1771
25058 msgid "guestfs_fill_pattern"
25059 msgstr ""
25060
25061 #. type: verbatim
25062 #: ../src/guestfs-actions.pod:1773
25063 #, no-wrap
25064 msgid ""
25065 " int\n"
25066 " guestfs_fill_pattern (guestfs_h *g,\n"
25067 "                       const char *pattern,\n"
25068 "                       int len,\n"
25069 "                       const char *path);\n"
25070 "\n"
25071 msgstr ""
25072
25073 #. type: textblock
25074 #: ../src/guestfs-actions.pod:1779
25075 msgid ""
25076 "This function is like C<guestfs_fill> except that it creates a new file of "
25077 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
25078 "pattern is truncated if necessary to ensure the length of the file is "
25079 "exactly C<len> bytes."
25080 msgstr ""
25081
25082 #. type: textblock
25083 #: ../src/guestfs-actions.pod:1791
25084 msgid "(Added in 1.3.12)"
25085 msgstr ""
25086
25087 #. type: =head2
25088 #: ../src/guestfs-actions.pod:1793
25089 msgid "guestfs_find"
25090 msgstr ""
25091
25092 #. type: verbatim
25093 #: ../src/guestfs-actions.pod:1795
25094 #, no-wrap
25095 msgid ""
25096 " char **\n"
25097 " guestfs_find (guestfs_h *g,\n"
25098 "               const char *directory);\n"
25099 "\n"
25100 msgstr ""
25101
25102 #. type: textblock
25103 #: ../src/guestfs-actions.pod:1811
25104 msgid ""
25105 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25106 msgstr ""
25107
25108 #. type: textblock
25109 #: ../src/guestfs-actions.pod:1824
25110 msgid "See also C<guestfs_find0>."
25111 msgstr ""
25112
25113 #. type: textblock
25114 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4304
25115 #: ../src/guestfs-actions.pod:6014
25116 msgid "(Added in 1.0.27)"
25117 msgstr ""
25118
25119 #. type: =head2
25120 #: ../src/guestfs-actions.pod:1835
25121 msgid "guestfs_find0"
25122 msgstr ""
25123
25124 #. type: verbatim
25125 #: ../src/guestfs-actions.pod:1837
25126 #, no-wrap
25127 msgid ""
25128 " int\n"
25129 " guestfs_find0 (guestfs_h *g,\n"
25130 "                const char *directory,\n"
25131 "                const char *files);\n"
25132 "\n"
25133 msgstr ""
25134
25135 #. type: textblock
25136 #: ../src/guestfs-actions.pod:1846
25137 msgid ""
25138 "This command works the same way as C<guestfs_find> with the following "
25139 "exceptions:"
25140 msgstr ""
25141
25142 #. type: textblock
25143 #: ../src/guestfs-actions.pod:1873
25144 msgid "(Added in 1.0.74)"
25145 msgstr ""
25146
25147 #. type: =head2
25148 #: ../src/guestfs-actions.pod:1875
25149 msgid "guestfs_findfs_label"
25150 msgstr ""
25151
25152 #. type: verbatim
25153 #: ../src/guestfs-actions.pod:1877
25154 #, no-wrap
25155 msgid ""
25156 " char *\n"
25157 " guestfs_findfs_label (guestfs_h *g,\n"
25158 "                       const char *label);\n"
25159 "\n"
25160 msgstr ""
25161
25162 #. type: textblock
25163 #: ../src/guestfs-actions.pod:1885
25164 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25165 msgstr ""
25166
25167 #. type: =head2
25168 #: ../src/guestfs-actions.pod:1892
25169 msgid "guestfs_findfs_uuid"
25170 msgstr ""
25171
25172 #. type: verbatim
25173 #: ../src/guestfs-actions.pod:1894
25174 #, no-wrap
25175 msgid ""
25176 " char *\n"
25177 " guestfs_findfs_uuid (guestfs_h *g,\n"
25178 "                      const char *uuid);\n"
25179 "\n"
25180 msgstr ""
25181
25182 #. type: textblock
25183 #: ../src/guestfs-actions.pod:1902
25184 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25185 msgstr ""
25186
25187 #. type: =head2
25188 #: ../src/guestfs-actions.pod:1909
25189 msgid "guestfs_fsck"
25190 msgstr ""
25191
25192 #. type: verbatim
25193 #: ../src/guestfs-actions.pod:1911
25194 #, no-wrap
25195 msgid ""
25196 " int\n"
25197 " guestfs_fsck (guestfs_h *g,\n"
25198 "               const char *fstype,\n"
25199 "               const char *device);\n"
25200 "\n"
25201 msgstr ""
25202
25203 #. type: textblock
25204 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7789
25205 msgid "(Added in 1.0.16)"
25206 msgstr ""
25207
25208 #. type: =head2
25209 #: ../src/guestfs-actions.pod:1948
25210 msgid "guestfs_get_append"
25211 msgstr ""
25212
25213 #. type: verbatim
25214 #: ../src/guestfs-actions.pod:1950
25215 #, no-wrap
25216 msgid ""
25217 " const char *\n"
25218 " guestfs_get_append (guestfs_h *g);\n"
25219 "\n"
25220 msgstr ""
25221
25222 #. type: textblock
25223 #: ../src/guestfs-actions.pod:1958
25224 msgid ""
25225 "This function returns a string which may be NULL.  There is no way to return "
25226 "an error from this function.  The string is owned by the guest handle and "
25227 "must I<not> be freed."
25228 msgstr ""
25229
25230 #. type: textblock
25231 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5692
25232 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6616
25233 #: ../src/guestfs-actions.pod:6635 ../src/guestfs-actions.pod:6651
25234 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:7429
25235 #: ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7836
25236 msgid "(Added in 1.0.26)"
25237 msgstr ""
25238
25239 #. type: =head2
25240 #: ../src/guestfs-actions.pod:1964
25241 msgid "guestfs_get_attach_method"
25242 msgstr ""
25243
25244 #. type: verbatim
25245 #: ../src/guestfs-actions.pod:1966
25246 #, no-wrap
25247 msgid ""
25248 " char *\n"
25249 " guestfs_get_attach_method (guestfs_h *g);\n"
25250 "\n"
25251 msgstr ""
25252
25253 #. type: textblock
25254 #: ../src/guestfs-actions.pod:1969
25255 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
25256 msgstr ""
25257
25258 #. type: textblock
25259 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6204
25260 msgid "(Added in 1.9.8)"
25261 msgstr ""
25262
25263 #. type: =head2
25264 #: ../src/guestfs-actions.pod:1976
25265 msgid "guestfs_get_autosync"
25266 msgstr ""
25267
25268 #. type: verbatim
25269 #: ../src/guestfs-actions.pod:1978
25270 #, no-wrap
25271 msgid ""
25272 " int\n"
25273 " guestfs_get_autosync (guestfs_h *g);\n"
25274 "\n"
25275 msgstr ""
25276
25277 #. type: =head2
25278 #: ../src/guestfs-actions.pod:1987
25279 msgid "guestfs_get_direct"
25280 msgstr ""
25281
25282 #. type: verbatim
25283 #: ../src/guestfs-actions.pod:1989
25284 #, no-wrap
25285 msgid ""
25286 " int\n"
25287 " guestfs_get_direct (guestfs_h *g);\n"
25288 "\n"
25289 msgstr ""
25290
25291 #. type: textblock
25292 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6245
25293 msgid "(Added in 1.0.72)"
25294 msgstr ""
25295
25296 #. type: =head2
25297 #: ../src/guestfs-actions.pod:1998
25298 msgid "guestfs_get_e2label"
25299 msgstr ""
25300
25301 #. type: verbatim
25302 #: ../src/guestfs-actions.pod:2000
25303 #, no-wrap
25304 msgid ""
25305 " char *\n"
25306 " guestfs_get_e2label (guestfs_h *g,\n"
25307 "                      const char *device);\n"
25308 "\n"
25309 msgstr ""
25310
25311 #. type: textblock
25312 #: ../src/guestfs-actions.pod:2004
25313 msgid ""
25314 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
25315 "call instead."
25316 msgstr ""
25317
25318 #. type: textblock
25319 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
25320 #: ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
25321 msgid "(Added in 1.0.15)"
25322 msgstr ""
25323
25324 #. type: =head2
25325 #: ../src/guestfs-actions.pod:2019
25326 msgid "guestfs_get_e2uuid"
25327 msgstr ""
25328
25329 #. type: verbatim
25330 #: ../src/guestfs-actions.pod:2021
25331 #, no-wrap
25332 msgid ""
25333 " char *\n"
25334 " guestfs_get_e2uuid (guestfs_h *g,\n"
25335 "                     const char *device);\n"
25336 "\n"
25337 msgstr ""
25338
25339 #. type: textblock
25340 #: ../src/guestfs-actions.pod:2025
25341 msgid ""
25342 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
25343 "call instead."
25344 msgstr ""
25345
25346 #. type: =head2
25347 #: ../src/guestfs-actions.pod:2040
25348 msgid "guestfs_get_memsize"
25349 msgstr ""
25350
25351 #. type: verbatim
25352 #: ../src/guestfs-actions.pod:2042
25353 #, no-wrap
25354 msgid ""
25355 " int\n"
25356 " guestfs_get_memsize (guestfs_h *g);\n"
25357 "\n"
25358 msgstr ""
25359
25360 #. type: textblock
25361 #: ../src/guestfs-actions.pod:2048
25362 msgid ""
25363 "If C<guestfs_set_memsize> was not called on this handle, and if "
25364 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25365 "value for memsize."
25366 msgstr ""
25367
25368 #. type: textblock
25369 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4595
25370 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4823
25371 #: ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4854
25372 #: ../src/guestfs-actions.pod:4871 ../src/guestfs-actions.pod:4884
25373 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6303
25374 #: ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:7198
25375 msgid "(Added in 1.0.55)"
25376 msgstr ""
25377
25378 #. type: =head2
25379 #: ../src/guestfs-actions.pod:2059
25380 msgid "guestfs_get_network"
25381 msgstr ""
25382
25383 #. type: verbatim
25384 #: ../src/guestfs-actions.pod:2061
25385 #, no-wrap
25386 msgid ""
25387 " int\n"
25388 " guestfs_get_network (guestfs_h *g);\n"
25389 "\n"
25390 msgstr ""
25391
25392 #. type: textblock
25393 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6322
25394 msgid "(Added in 1.5.4)"
25395 msgstr ""
25396
25397 #. type: =head2
25398 #: ../src/guestfs-actions.pod:2070
25399 msgid "guestfs_get_path"
25400 msgstr ""
25401
25402 #. type: verbatim
25403 #: ../src/guestfs-actions.pod:2072
25404 #, no-wrap
25405 msgid ""
25406 " const char *\n"
25407 " guestfs_get_path (guestfs_h *g);\n"
25408 "\n"
25409 msgstr ""
25410
25411 #. type: textblock
25412 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
25413 msgid ""
25414 "This function returns a string, or NULL on error.  The string is owned by "
25415 "the guest handle and must I<not> be freed."
25416 msgstr ""
25417
25418 #. type: =head2
25419 #: ../src/guestfs-actions.pod:2085
25420 msgid "guestfs_get_pgroup"
25421 msgstr ""
25422
25423 #. type: verbatim
25424 #: ../src/guestfs-actions.pod:2087
25425 #, no-wrap
25426 msgid ""
25427 " int\n"
25428 " guestfs_get_pgroup (guestfs_h *g);\n"
25429 "\n"
25430 msgstr ""
25431
25432 #. type: textblock
25433 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6358
25434 #: ../src/guestfs-actions.pod:7690
25435 #, fuzzy
25436 #| msgid "(Added in 1.5.1)"
25437 msgid "(Added in 1.11.18)"
25438 msgstr "(Додано у 1.5.1)"
25439
25440 #. type: =head2
25441 #: ../src/guestfs-actions.pod:2096
25442 msgid "guestfs_get_pid"
25443 msgstr ""
25444
25445 #. type: verbatim
25446 #: ../src/guestfs-actions.pod:2098
25447 #, no-wrap
25448 msgid ""
25449 " int\n"
25450 " guestfs_get_pid (guestfs_h *g);\n"
25451 "\n"
25452 msgstr ""
25453
25454 #. type: textblock
25455 #: ../src/guestfs-actions.pod:2108
25456 msgid "(Added in 1.0.56)"
25457 msgstr ""
25458
25459 #. type: =head2
25460 #: ../src/guestfs-actions.pod:2110
25461 msgid "guestfs_get_qemu"
25462 msgstr ""
25463
25464 #. type: verbatim
25465 #: ../src/guestfs-actions.pod:2112
25466 #, no-wrap
25467 msgid ""
25468 " const char *\n"
25469 " guestfs_get_qemu (guestfs_h *g);\n"
25470 "\n"
25471 msgstr ""
25472
25473 #. type: textblock
25474 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6386
25475 msgid "(Added in 1.0.6)"
25476 msgstr ""
25477
25478 #. type: =head2
25479 #: ../src/guestfs-actions.pod:2125
25480 msgid "guestfs_get_recovery_proc"
25481 msgstr ""
25482
25483 #. type: verbatim
25484 #: ../src/guestfs-actions.pod:2127
25485 #, no-wrap
25486 msgid ""
25487 " int\n"
25488 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25489 "\n"
25490 msgstr ""
25491
25492 #. type: textblock
25493 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3668
25494 #: ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4402
25495 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:5622
25496 #: ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6410
25497 #: ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7121
25498 #: ../src/guestfs-actions.pod:7313
25499 msgid "(Added in 1.0.77)"
25500 msgstr ""
25501
25502 #. type: =head2
25503 #: ../src/guestfs-actions.pod:2136
25504 msgid "guestfs_get_selinux"
25505 msgstr ""
25506
25507 #. type: verbatim
25508 #: ../src/guestfs-actions.pod:2138
25509 #, no-wrap
25510 msgid ""
25511 " int\n"
25512 " guestfs_get_selinux (guestfs_h *g);\n"
25513 "\n"
25514 msgstr ""
25515
25516 #. type: textblock
25517 #: ../src/guestfs-actions.pod:2141
25518 msgid ""
25519 "This returns the current setting of the selinux flag which is passed to the "
25520 "appliance at boot time.  See C<guestfs_set_selinux>."
25521 msgstr ""
25522
25523 #. type: textblock
25524 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
25525 #: ../src/guestfs-actions.pod:6429 ../src/guestfs-actions.pod:6487
25526 msgid "(Added in 1.0.67)"
25527 msgstr ""
25528
25529 #. type: =head2
25530 #: ../src/guestfs-actions.pod:2151
25531 msgid "guestfs_get_state"
25532 msgstr ""
25533
25534 #. type: verbatim
25535 #: ../src/guestfs-actions.pod:2153
25536 #, no-wrap
25537 msgid ""
25538 " int\n"
25539 " guestfs_get_state (guestfs_h *g);\n"
25540 "\n"
25541 msgstr ""
25542
25543 #. type: =head2
25544 #: ../src/guestfs-actions.pod:2165
25545 msgid "guestfs_get_trace"
25546 msgstr ""
25547
25548 #. type: verbatim
25549 #: ../src/guestfs-actions.pod:2167
25550 #, no-wrap
25551 msgid ""
25552 " int\n"
25553 " guestfs_get_trace (guestfs_h *g);\n"
25554 "\n"
25555 msgstr ""
25556
25557 #. type: =head2
25558 #: ../src/guestfs-actions.pod:2176
25559 msgid "guestfs_get_umask"
25560 msgstr ""
25561
25562 #. type: verbatim
25563 #: ../src/guestfs-actions.pod:2178
25564 #, no-wrap
25565 msgid ""
25566 " int\n"
25567 " guestfs_get_umask (guestfs_h *g);\n"
25568 "\n"
25569 msgstr ""
25570
25571 #. type: textblock
25572 #: ../src/guestfs-actions.pod:2181
25573 msgid ""
25574 "Return the current umask.  By default the umask is C<022> unless it has been "
25575 "set by calling C<guestfs_umask>."
25576 msgstr ""
25577
25578 #. type: =head2
25579 #: ../src/guestfs-actions.pod:2188
25580 msgid "guestfs_get_verbose"
25581 msgstr ""
25582
25583 #. type: verbatim
25584 #: ../src/guestfs-actions.pod:2190
25585 #, no-wrap
25586 msgid ""
25587 " int\n"
25588 " guestfs_get_verbose (guestfs_h *g);\n"
25589 "\n"
25590 msgstr ""
25591
25592 #. type: =head2
25593 #: ../src/guestfs-actions.pod:2199
25594 msgid "guestfs_getcon"
25595 msgstr ""
25596
25597 #. type: verbatim
25598 #: ../src/guestfs-actions.pod:2201
25599 #, no-wrap
25600 msgid ""
25601 " char *\n"
25602 " guestfs_getcon (guestfs_h *g);\n"
25603 "\n"
25604 msgstr ""
25605
25606 #. type: textblock
25607 #: ../src/guestfs-actions.pod:2206
25608 msgid ""
25609 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25610 msgstr ""
25611
25612 #. type: =head2
25613 #: ../src/guestfs-actions.pod:2214
25614 msgid "guestfs_getxattr"
25615 msgstr ""
25616
25617 #. type: verbatim
25618 #: ../src/guestfs-actions.pod:2216
25619 #, no-wrap
25620 msgid ""
25621 " char *\n"
25622 " guestfs_getxattr (guestfs_h *g,\n"
25623 "                   const char *path,\n"
25624 "                   const char *name,\n"
25625 "                   size_t *size_r);\n"
25626 "\n"
25627 msgstr ""
25628
25629 #. type: textblock
25630 #: ../src/guestfs-actions.pod:2222
25631 msgid ""
25632 "Get a single extended attribute from file C<path> named C<name>.  This call "
25633 "follows symlinks.  If you want to lookup an extended attribute for the "
25634 "symlink itself, use C<guestfs_lgetxattr>."
25635 msgstr ""
25636
25637 #. type: textblock
25638 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
25639 msgid ""
25640 "Normally it is better to get all extended attributes from a file in one go "
25641 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
25642 "implementations are buggy and do not provide a way to list out attributes.  "
25643 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
25644 "extended attributes you want in advance and call this function."
25645 msgstr ""
25646
25647 #. type: textblock
25648 #: ../src/guestfs-actions.pod:2236
25649 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25650 msgstr ""
25651
25652 #. type: textblock
25653 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2429
25654 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:3694
25655 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5641
25656 #: ../src/guestfs-actions.pod:5822
25657 msgid ""
25658 "This function returns a buffer, or NULL on error.  The size of the returned "
25659 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
25660 "after use>."
25661 msgstr ""
25662
25663 #. type: textblock
25664 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3698
25665 msgid "(Added in 1.7.24)"
25666 msgstr ""
25667
25668 #. type: =head2
25669 #: ../src/guestfs-actions.pod:2244
25670 msgid "guestfs_getxattrs"
25671 msgstr ""
25672
25673 #. type: verbatim
25674 #: ../src/guestfs-actions.pod:2246
25675 #, no-wrap
25676 msgid ""
25677 " struct guestfs_xattr_list *\n"
25678 " guestfs_getxattrs (guestfs_h *g,\n"
25679 "                    const char *path);\n"
25680 "\n"
25681 msgstr ""
25682
25683 #. type: textblock
25684 #: ../src/guestfs-actions.pod:2256
25685 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25686 msgstr ""
25687
25688 #. type: textblock
25689 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3710
25690 #: ../src/guestfs-actions.pod:4398
25691 msgid ""
25692 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25693 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
25694 msgstr ""
25695
25696 #. type: textblock
25697 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3714
25698 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3949
25699 #: ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6506
25700 #: ../src/guestfs-actions.pod:7901
25701 msgid "(Added in 1.0.59)"
25702 msgstr ""
25703
25704 #. type: =head2
25705 #: ../src/guestfs-actions.pod:2264
25706 msgid "guestfs_glob_expand"
25707 msgstr ""
25708
25709 #. type: verbatim
25710 #: ../src/guestfs-actions.pod:2266
25711 #, no-wrap
25712 msgid ""
25713 " char **\n"
25714 " guestfs_glob_expand (guestfs_h *g,\n"
25715 "                      const char *pattern);\n"
25716 "\n"
25717 msgstr ""
25718
25719 #. type: textblock
25720 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6699
25721 #: ../src/guestfs-actions.pod:6716
25722 msgid "(Added in 1.0.50)"
25723 msgstr ""
25724
25725 #. type: =head2
25726 #: ../src/guestfs-actions.pod:2287
25727 msgid "guestfs_grep"
25728 msgstr ""
25729
25730 #. type: verbatim
25731 #: ../src/guestfs-actions.pod:2289
25732 #, no-wrap
25733 msgid ""
25734 " char **\n"
25735 " guestfs_grep (guestfs_h *g,\n"
25736 "               const char *regex,\n"
25737 "               const char *path);\n"
25738 "\n"
25739 msgstr ""
25740
25741 #. type: =head2
25742 #: ../src/guestfs-actions.pod:2306
25743 msgid "guestfs_grepi"
25744 msgstr ""
25745
25746 #. type: verbatim
25747 #: ../src/guestfs-actions.pod:2308
25748 #, no-wrap
25749 msgid ""
25750 " char **\n"
25751 " guestfs_grepi (guestfs_h *g,\n"
25752 "                const char *regex,\n"
25753 "                const char *path);\n"
25754 "\n"
25755 msgstr ""
25756
25757 #. type: =head2
25758 #: ../src/guestfs-actions.pod:2325
25759 msgid "guestfs_grub_install"
25760 msgstr ""
25761
25762 #. type: verbatim
25763 #: ../src/guestfs-actions.pod:2327
25764 #, no-wrap
25765 msgid ""
25766 " int\n"
25767 " guestfs_grub_install (guestfs_h *g,\n"
25768 "                       const char *root,\n"
25769 "                       const char *device);\n"
25770 "\n"
25771 msgstr ""
25772
25773 #. type: textblock
25774 #: ../src/guestfs-actions.pod:2348
25775 msgid "(Added in 1.0.17)"
25776 msgstr ""
25777
25778 #. type: =head2
25779 #: ../src/guestfs-actions.pod:2350
25780 msgid "guestfs_head"
25781 msgstr ""
25782
25783 #. type: verbatim
25784 #: ../src/guestfs-actions.pod:2352
25785 #, no-wrap
25786 msgid ""
25787 " char **\n"
25788 " guestfs_head (guestfs_h *g,\n"
25789 "               const char *path);\n"
25790 "\n"
25791 msgstr ""
25792
25793 #. type: =head2
25794 #: ../src/guestfs-actions.pod:2368
25795 msgid "guestfs_head_n"
25796 msgstr ""
25797
25798 #. type: verbatim
25799 #: ../src/guestfs-actions.pod:2370
25800 #, no-wrap
25801 msgid ""
25802 " char **\n"
25803 " guestfs_head_n (guestfs_h *g,\n"
25804 "                 int nrlines,\n"
25805 "                 const char *path);\n"
25806 "\n"
25807 msgstr ""
25808
25809 #. type: =head2
25810 #: ../src/guestfs-actions.pod:2392
25811 msgid "guestfs_hexdump"
25812 msgstr ""
25813
25814 #. type: verbatim
25815 #: ../src/guestfs-actions.pod:2394
25816 #, no-wrap
25817 msgid ""
25818 " char *\n"
25819 " guestfs_hexdump (guestfs_h *g,\n"
25820 "                  const char *path);\n"
25821 "\n"
25822 msgstr ""
25823
25824 #. type: textblock
25825 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6780
25826 #: ../src/guestfs-actions.pod:6835
25827 msgid "(Added in 1.0.22)"
25828 msgstr ""
25829
25830 #. type: =head2
25831 #: ../src/guestfs-actions.pod:2409
25832 msgid "guestfs_initrd_cat"
25833 msgstr ""
25834
25835 #. type: verbatim
25836 #: ../src/guestfs-actions.pod:2411
25837 #, no-wrap
25838 msgid ""
25839 " char *\n"
25840 " guestfs_initrd_cat (guestfs_h *g,\n"
25841 "                     const char *initrdpath,\n"
25842 "                     const char *filename,\n"
25843 "                     size_t *size_r);\n"
25844 "\n"
25845 msgstr ""
25846
25847 #. type: textblock
25848 #: ../src/guestfs-actions.pod:2427
25849 msgid "See also C<guestfs_initrd_list>."
25850 msgstr ""
25851
25852 #. type: =head2
25853 #: ../src/guestfs-actions.pod:2438
25854 msgid "guestfs_initrd_list"
25855 msgstr ""
25856
25857 #. type: verbatim
25858 #: ../src/guestfs-actions.pod:2440
25859 #, no-wrap
25860 msgid ""
25861 " char **\n"
25862 " guestfs_initrd_list (guestfs_h *g,\n"
25863 "                      const char *path);\n"
25864 "\n"
25865 msgstr ""
25866
25867 #. type: =head2
25868 #: ../src/guestfs-actions.pod:2460
25869 msgid "guestfs_inotify_add_watch"
25870 msgstr ""
25871
25872 #. type: verbatim
25873 #: ../src/guestfs-actions.pod:2462
25874 #, no-wrap
25875 msgid ""
25876 " int64_t\n"
25877 " guestfs_inotify_add_watch (guestfs_h *g,\n"
25878 "                            const char *path,\n"
25879 "                            int mask);\n"
25880 "\n"
25881 msgstr ""
25882
25883 #. type: =head2
25884 #: ../src/guestfs-actions.pod:2481
25885 msgid "guestfs_inotify_close"
25886 msgstr ""
25887
25888 #. type: verbatim
25889 #: ../src/guestfs-actions.pod:2483
25890 #, no-wrap
25891 msgid ""
25892 " int\n"
25893 " guestfs_inotify_close (guestfs_h *g);\n"
25894 "\n"
25895 msgstr ""
25896
25897 #. type: =head2
25898 #: ../src/guestfs-actions.pod:2494
25899 msgid "guestfs_inotify_files"
25900 msgstr ""
25901
25902 #. type: verbatim
25903 #: ../src/guestfs-actions.pod:2496
25904 #, no-wrap
25905 msgid ""
25906 " char **\n"
25907 " guestfs_inotify_files (guestfs_h *g);\n"
25908 "\n"
25909 msgstr ""
25910
25911 #. type: textblock
25912 #: ../src/guestfs-actions.pod:2499
25913 msgid ""
25914 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
25915 "returns a list of pathnames of objects that were touched.  The returned "
25916 "pathnames are sorted and deduplicated."
25917 msgstr ""
25918
25919 #. type: =head2
25920 #: ../src/guestfs-actions.pod:2509
25921 msgid "guestfs_inotify_init"
25922 msgstr ""
25923
25924 #. type: verbatim
25925 #: ../src/guestfs-actions.pod:2511
25926 #, no-wrap
25927 msgid ""
25928 " int\n"
25929 " guestfs_inotify_init (guestfs_h *g,\n"
25930 "                       int maxevents);\n"
25931 "\n"
25932 msgstr ""
25933
25934 #. type: textblock
25935 #: ../src/guestfs-actions.pod:2519
25936 msgid ""
25937 "C<maxevents> is the maximum number of events which will be queued up between "
25938 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
25939 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
25940 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
25941 "throws away events, but records the fact that it threw them away by setting "
25942 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
25943 "C<guestfs_inotify_read>)."
25944 msgstr ""
25945
25946 #. type: textblock
25947 #: ../src/guestfs-actions.pod:2529
25948 msgid ""
25949 "Before any events are generated, you have to add some watches to the "
25950 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
25951 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
25952 msgstr ""
25953
25954 #. type: textblock
25955 #: ../src/guestfs-actions.pod:2535
25956 msgid ""
25957 "Queued up events should be read periodically by calling "
25958 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
25959 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
25960 "often enough then you risk the internal queue overflowing."
25961 msgstr ""
25962
25963 #. type: textblock
25964 #: ../src/guestfs-actions.pod:2542
25965 msgid ""
25966 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
25967 "This also removes any watches automatically."
25968 msgstr ""
25969
25970 #. type: =head2
25971 #: ../src/guestfs-actions.pod:2555
25972 msgid "guestfs_inotify_read"
25973 msgstr ""
25974
25975 #. type: verbatim
25976 #: ../src/guestfs-actions.pod:2557
25977 #, no-wrap
25978 msgid ""
25979 " struct guestfs_inotify_event_list *\n"
25980 " guestfs_inotify_read (guestfs_h *g);\n"
25981 "\n"
25982 msgstr ""
25983
25984 #. type: textblock
25985 #: ../src/guestfs-actions.pod:2571
25986 msgid ""
25987 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
25988 "there was an error.  I<The caller must call "
25989 "C<guestfs_free_inotify_event_list> after use>."
25990 msgstr ""
25991
25992 #. type: =head2
25993 #: ../src/guestfs-actions.pod:2577
25994 msgid "guestfs_inotify_rm_watch"
25995 msgstr ""
25996
25997 #. type: verbatim
25998 #: ../src/guestfs-actions.pod:2579
25999 #, no-wrap
26000 msgid ""
26001 " int\n"
26002 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26003 "                           int wd);\n"
26004 "\n"
26005 msgstr ""
26006
26007 #. type: textblock
26008 #: ../src/guestfs-actions.pod:2583
26009 msgid ""
26010 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
26011 msgstr ""
26012
26013 #. type: =head2
26014 #: ../src/guestfs-actions.pod:2590
26015 msgid "guestfs_inspect_get_arch"
26016 msgstr ""
26017
26018 #. type: verbatim
26019 #: ../src/guestfs-actions.pod:2592
26020 #, no-wrap
26021 msgid ""
26022 " char *\n"
26023 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26024 "                           const char *root);\n"
26025 "\n"
26026 msgstr ""
26027
26028 #. type: textblock
26029 #: ../src/guestfs-actions.pod:2596
26030 msgid ""
26031 "This returns the architecture of the inspected operating system.  The "
26032 "possible return values are listed under C<guestfs_file_architecture>."
26033 msgstr ""
26034
26035 #. type: =head2
26036 #: ../src/guestfs-actions.pod:2610
26037 msgid "guestfs_inspect_get_distro"
26038 msgstr ""
26039
26040 #. type: verbatim
26041 #: ../src/guestfs-actions.pod:2612
26042 #, no-wrap
26043 msgid ""
26044 " char *\n"
26045 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26046 "                             const char *root);\n"
26047 "\n"
26048 msgstr ""
26049
26050 #. type: =head2
26051 #: ../src/guestfs-actions.pod:2700
26052 msgid "guestfs_inspect_get_drive_mappings"
26053 msgstr ""
26054
26055 #. type: verbatim
26056 #: ../src/guestfs-actions.pod:2702
26057 #, no-wrap
26058 msgid ""
26059 " char **\n"
26060 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26061 "                                     const char *root);\n"
26062 "\n"
26063 msgstr ""
26064
26065 #. type: textblock
26066 #: ../src/guestfs-actions.pod:2731
26067 msgid ""
26068 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26069 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26070 msgstr ""
26071
26072 #. type: textblock
26073 #: ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:3003
26074 #: ../src/guestfs-actions.pod:3801 ../src/guestfs-actions.pod:5083
26075 #: ../src/guestfs-actions.pod:7137
26076 msgid ""
26077 "This function returns a NULL-terminated array of strings, or NULL if there "
26078 "was an error.  The array of strings will always have length C<2n+1>, where "
26079 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26080 "caller must free the strings and the array after use>."
26081 msgstr ""
26082
26083 #. type: textblock
26084 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:3197
26085 msgid "(Added in 1.9.17)"
26086 msgstr ""
26087
26088 #. type: =head2
26089 #: ../src/guestfs-actions.pod:2743
26090 msgid "guestfs_inspect_get_filesystems"
26091 msgstr ""
26092
26093 #. type: verbatim
26094 #: ../src/guestfs-actions.pod:2745
26095 #, no-wrap
26096 msgid ""
26097 " char **\n"
26098 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26099 "                                  const char *root);\n"
26100 "\n"
26101 msgstr ""
26102
26103 #. type: textblock
26104 #: ../src/guestfs-actions.pod:2757
26105 msgid ""
26106 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26107 "C<guestfs_inspect_get_mountpoints>."
26108 msgstr ""
26109
26110 #. type: =head2
26111 #: ../src/guestfs-actions.pod:2766
26112 msgid "guestfs_inspect_get_format"
26113 msgstr ""
26114
26115 #. type: verbatim
26116 #: ../src/guestfs-actions.pod:2768
26117 #, no-wrap
26118 msgid ""
26119 " char *\n"
26120 " guestfs_inspect_get_format (guestfs_h *g,\n"
26121 "                             const char *root);\n"
26122 "\n"
26123 msgstr ""
26124
26125 #. type: textblock
26126 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:3233
26127 #: ../src/guestfs-actions.pod:3249 ../src/guestfs-actions.pod:3267
26128 #: ../src/guestfs-actions.pod:6033
26129 msgid "(Added in 1.9.4)"
26130 msgstr ""
26131
26132 #. type: =head2
26133 #: ../src/guestfs-actions.pod:2804
26134 msgid "guestfs_inspect_get_hostname"
26135 msgstr ""
26136
26137 #. type: verbatim
26138 #: ../src/guestfs-actions.pod:2806
26139 #, no-wrap
26140 msgid ""
26141 " char *\n"
26142 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26143 "                               const char *root);\n"
26144 "\n"
26145 msgstr ""
26146
26147 #. type: textblock
26148 #: ../src/guestfs-actions.pod:2821
26149 msgid "(Added in 1.7.9)"
26150 msgstr ""
26151
26152 #. type: =head2
26153 #: ../src/guestfs-actions.pod:2823
26154 msgid "guestfs_inspect_get_icon"
26155 msgstr ""
26156
26157 #. type: verbatim
26158 #: ../src/guestfs-actions.pod:2825
26159 #, no-wrap
26160 msgid ""
26161 " char *\n"
26162 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26163 "                           const char *root,\n"
26164 "                           size_t *size_r,\n"
26165 "                           ...);\n"
26166 "\n"
26167 msgstr ""
26168
26169 #. type: verbatim
26170 #: ../src/guestfs-actions.pod:2836
26171 #, no-wrap
26172 msgid ""
26173 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26174 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26175 "\n"
26176 msgstr ""
26177
26178 #. type: textblock
26179 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3728
26180 #: ../src/guestfs-actions.pod:4982
26181 msgid "(Added in 1.11.12)"
26182 msgstr ""
26183
26184 #. type: =head2
26185 #: ../src/guestfs-actions.pod:2905
26186 msgid "guestfs_inspect_get_icon_va"
26187 msgstr ""
26188
26189 #. type: verbatim
26190 #: ../src/guestfs-actions.pod:2907
26191 #, no-wrap
26192 msgid ""
26193 " char *\n"
26194 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26195 "                              const char *root,\n"
26196 "                              size_t *size_r,\n"
26197 "                              va_list args);\n"
26198 "\n"
26199 msgstr ""
26200
26201 #. type: textblock
26202 #: ../src/guestfs-actions.pod:2913
26203 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26204 msgstr ""
26205
26206 #. type: =head2
26207 #: ../src/guestfs-actions.pod:2917
26208 msgid "guestfs_inspect_get_icon_argv"
26209 msgstr ""
26210
26211 #. type: verbatim
26212 #: ../src/guestfs-actions.pod:2919
26213 #, no-wrap
26214 msgid ""
26215 " char *\n"
26216 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26217 "                                const char *root,\n"
26218 "                                size_t *size_r,\n"
26219 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
26220 "\n"
26221 msgstr ""
26222
26223 #. type: textblock
26224 #: ../src/guestfs-actions.pod:2925
26225 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26226 msgstr ""
26227
26228 #. type: =head2
26229 #: ../src/guestfs-actions.pod:2929
26230 msgid "guestfs_inspect_get_major_version"
26231 msgstr ""
26232
26233 #. type: verbatim
26234 #: ../src/guestfs-actions.pod:2931
26235 #, no-wrap
26236 msgid ""
26237 " int\n"
26238 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26239 "                                    const char *root);\n"
26240 "\n"
26241 msgstr ""
26242
26243 #. type: =head2
26244 #: ../src/guestfs-actions.pod:2953
26245 msgid "guestfs_inspect_get_minor_version"
26246 msgstr ""
26247
26248 #. type: verbatim
26249 #: ../src/guestfs-actions.pod:2955
26250 #, no-wrap
26251 msgid ""
26252 " int\n"
26253 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26254 "                                    const char *root);\n"
26255 "\n"
26256 msgstr ""
26257
26258 #. type: textblock
26259 #: ../src/guestfs-actions.pod:2964
26260 msgid ""
26261 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26262 "C<guestfs_inspect_get_major_version>."
26263 msgstr ""
26264
26265 #. type: =head2
26266 #: ../src/guestfs-actions.pod:2971
26267 msgid "guestfs_inspect_get_mountpoints"
26268 msgstr ""
26269
26270 #. type: verbatim
26271 #: ../src/guestfs-actions.pod:2973
26272 #, no-wrap
26273 msgid ""
26274 " char **\n"
26275 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26276 "                                  const char *root);\n"
26277 "\n"
26278 msgstr ""
26279
26280 #. type: textblock
26281 #: ../src/guestfs-actions.pod:2994
26282 msgid ""
26283 "For operating systems like Windows which still use drive letters, this call "
26284 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26285 "information about the mapping of drive letters to partitions, see "
26286 "C<guestfs_inspect_get_drive_mappings>."
26287 msgstr ""
26288
26289 #. type: textblock
26290 #: ../src/guestfs-actions.pod:3000
26291 msgid ""
26292 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26293 "C<guestfs_inspect_get_filesystems>."
26294 msgstr ""
26295
26296 #. type: =head2
26297 #: ../src/guestfs-actions.pod:3011
26298 msgid "guestfs_inspect_get_package_format"
26299 msgstr ""
26300
26301 #. type: verbatim
26302 #: ../src/guestfs-actions.pod:3013
26303 #, no-wrap
26304 msgid ""
26305 " char *\n"
26306 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26307 "                                     const char *root);\n"
26308 "\n"
26309 msgstr ""
26310
26311 #. type: textblock
26312 #: ../src/guestfs-actions.pod:3017
26313 msgid ""
26314 "This function and C<guestfs_inspect_get_package_management> return the "
26315 "package format and package management tool used by the inspected operating "
26316 "system.  For example for Fedora these functions would return C<rpm> (package "
26317 "format) and C<yum> (package management)."
26318 msgstr ""
26319
26320 #. type: textblock
26321 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3063
26322 msgid "(Added in 1.7.5)"
26323 msgstr ""
26324
26325 #. type: =head2
26326 #: ../src/guestfs-actions.pod:3037
26327 msgid "guestfs_inspect_get_package_management"
26328 msgstr ""
26329
26330 #. type: verbatim
26331 #: ../src/guestfs-actions.pod:3039
26332 #, no-wrap
26333 msgid ""
26334 " char *\n"
26335 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26336 "                                         const char *root);\n"
26337 "\n"
26338 msgstr ""
26339
26340 #. type: textblock
26341 #: ../src/guestfs-actions.pod:3043
26342 msgid ""
26343 "C<guestfs_inspect_get_package_format> and this function return the package "
26344 "format and package management tool used by the inspected operating system.  "
26345 "For example for Fedora these functions would return C<rpm> (package format) "
26346 "and C<yum> (package management)."
26347 msgstr ""
26348
26349 #. type: =head2
26350 #: ../src/guestfs-actions.pod:3065
26351 msgid "guestfs_inspect_get_product_name"
26352 msgstr ""
26353
26354 #. type: verbatim
26355 #: ../src/guestfs-actions.pod:3067
26356 #, no-wrap
26357 msgid ""
26358 " char *\n"
26359 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26360 "                                   const char *root);\n"
26361 "\n"
26362 msgstr ""
26363
26364 #. type: =head2
26365 #: ../src/guestfs-actions.pod:3086
26366 msgid "guestfs_inspect_get_product_variant"
26367 msgstr ""
26368
26369 #. type: verbatim
26370 #: ../src/guestfs-actions.pod:3088
26371 #, no-wrap
26372 msgid ""
26373 " char *\n"
26374 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26375 "                                      const char *root);\n"
26376 "\n"
26377 msgstr ""
26378
26379 #. type: textblock
26380 #: ../src/guestfs-actions.pod:3111
26381 msgid ""
26382 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26383 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26384 msgstr ""
26385
26386 #. type: textblock
26387 #: ../src/guestfs-actions.pod:3118
26388 msgid "(Added in 1.9.13)"
26389 msgstr ""
26390
26391 #. type: =head2
26392 #: ../src/guestfs-actions.pod:3120
26393 msgid "guestfs_inspect_get_roots"
26394 msgstr ""
26395
26396 #. type: verbatim
26397 #: ../src/guestfs-actions.pod:3122
26398 #, no-wrap
26399 msgid ""
26400 " char **\n"
26401 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26402 "\n"
26403 msgstr ""
26404
26405 #. type: textblock
26406 #: ../src/guestfs-actions.pod:3125
26407 msgid ""
26408 "This function is a convenient way to get the list of root devices, as "
26409 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26410 "the whole inspection process."
26411 msgstr ""
26412
26413 #. type: textblock
26414 #: ../src/guestfs-actions.pod:3129
26415 msgid ""
26416 "This returns an empty list if either no root devices were found or the "
26417 "caller has not called C<guestfs_inspect_os>."
26418 msgstr ""
26419
26420 #. type: textblock
26421 #: ../src/guestfs-actions.pod:3138
26422 msgid "(Added in 1.7.3)"
26423 msgstr ""
26424
26425 #. type: =head2
26426 #: ../src/guestfs-actions.pod:3140
26427 msgid "guestfs_inspect_get_type"
26428 msgstr ""
26429
26430 #. type: verbatim
26431 #: ../src/guestfs-actions.pod:3142
26432 #, no-wrap
26433 msgid ""
26434 " char *\n"
26435 " guestfs_inspect_get_type (guestfs_h *g,\n"
26436 "                           const char *root);\n"
26437 "\n"
26438 msgstr ""
26439
26440 #. type: =head2
26441 #: ../src/guestfs-actions.pod:3179
26442 msgid "guestfs_inspect_get_windows_current_control_set"
26443 msgstr ""
26444
26445 #. type: verbatim
26446 #: ../src/guestfs-actions.pod:3181
26447 #, no-wrap
26448 msgid ""
26449 " char *\n"
26450 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26451 "                                                  const char *root);\n"
26452 "\n"
26453 msgstr ""
26454
26455 #. type: =head2
26456 #: ../src/guestfs-actions.pod:3199
26457 msgid "guestfs_inspect_get_windows_systemroot"
26458 msgstr ""
26459
26460 #. type: verbatim
26461 #: ../src/guestfs-actions.pod:3201
26462 #, no-wrap
26463 msgid ""
26464 " char *\n"
26465 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26466 "                                         const char *root);\n"
26467 "\n"
26468 msgstr ""
26469
26470 #. type: textblock
26471 #: ../src/guestfs-actions.pod:3217
26472 msgid "(Added in 1.5.25)"
26473 msgstr ""
26474
26475 #. type: =head2
26476 #: ../src/guestfs-actions.pod:3219
26477 msgid "guestfs_inspect_is_live"
26478 msgstr ""
26479
26480 #. type: verbatim
26481 #: ../src/guestfs-actions.pod:3221
26482 #, no-wrap
26483 msgid ""
26484 " int\n"
26485 " guestfs_inspect_is_live (guestfs_h *g,\n"
26486 "                          const char *root);\n"
26487 "\n"
26488 msgstr ""
26489
26490 #. type: textblock
26491 #: ../src/guestfs-actions.pod:3225
26492 msgid ""
26493 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26494 "disk), then this returns true if a live image was detected on the disk."
26495 msgstr ""
26496
26497 #. type: =head2
26498 #: ../src/guestfs-actions.pod:3235
26499 msgid "guestfs_inspect_is_multipart"
26500 msgstr ""
26501
26502 #. type: verbatim
26503 #: ../src/guestfs-actions.pod:3237
26504 #, no-wrap
26505 msgid ""
26506 " int\n"
26507 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26508 "                               const char *root);\n"
26509 "\n"
26510 msgstr ""
26511
26512 #. type: textblock
26513 #: ../src/guestfs-actions.pod:3241
26514 msgid ""
26515 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26516 "disk), then this returns true if the disk is part of a set."
26517 msgstr ""
26518
26519 #. type: =head2
26520 #: ../src/guestfs-actions.pod:3251
26521 msgid "guestfs_inspect_is_netinst"
26522 msgstr ""
26523
26524 #. type: verbatim
26525 #: ../src/guestfs-actions.pod:3253
26526 #, no-wrap
26527 msgid ""
26528 " int\n"
26529 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26530 "                             const char *root);\n"
26531 "\n"
26532 msgstr ""
26533
26534 #. type: textblock
26535 #: ../src/guestfs-actions.pod:3257
26536 msgid ""
26537 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26538 "disk), then this returns true if the disk is a network installer, ie. not a "
26539 "self-contained install CD but one which is likely to require network access "
26540 "to complete the install."
26541 msgstr ""
26542
26543 #. type: =head2
26544 #: ../src/guestfs-actions.pod:3269
26545 msgid "guestfs_inspect_list_applications"
26546 msgstr ""
26547
26548 #. type: verbatim
26549 #: ../src/guestfs-actions.pod:3271
26550 #, no-wrap
26551 msgid ""
26552 " struct guestfs_application_list *\n"
26553 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26554 "                                    const char *root);\n"
26555 "\n"
26556 msgstr ""
26557
26558 #. type: textblock
26559 #: ../src/guestfs-actions.pod:3277
26560 msgid ""
26561 "I<Note:> This call works differently from other parts of the inspection "
26562 "API.  You have to call C<guestfs_inspect_os>, then "
26563 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26564 "this.  Listing applications is a significantly more difficult operation "
26565 "which requires access to the full filesystem.  Also note that unlike the "
26566 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26567 "the libguestfs handle, this call actually reads parts of the mounted "
26568 "filesystems during the call."
26569 msgstr ""
26570
26571 #. type: textblock
26572 #: ../src/guestfs-actions.pod:3367
26573 msgid ""
26574 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26575 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
26576 "after use>."
26577 msgstr ""
26578
26579 #. type: textblock
26580 #: ../src/guestfs-actions.pod:3371
26581 msgid "(Added in 1.7.8)"
26582 msgstr ""
26583
26584 #. type: =head2
26585 #: ../src/guestfs-actions.pod:3373
26586 msgid "guestfs_inspect_os"
26587 msgstr ""
26588
26589 #. type: verbatim
26590 #: ../src/guestfs-actions.pod:3375
26591 #, no-wrap
26592 msgid ""
26593 " char **\n"
26594 " guestfs_inspect_os (guestfs_h *g);\n"
26595 "\n"
26596 msgstr ""
26597
26598 #. type: textblock
26599 #: ../src/guestfs-actions.pod:3391
26600 msgid ""
26601 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26602 "functions in order to query further information about each operating system, "
26603 "such as the name and version."
26604 msgstr ""
26605
26606 #. type: textblock
26607 #: ../src/guestfs-actions.pod:3396
26608 msgid ""
26609 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26610 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26611 "the contents.  This should be called with no disks currently mounted.  The "
26612 "function may also use Augeas, so any existing Augeas handle will be closed."
26613 msgstr ""
26614
26615 #. type: textblock
26616 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3739
26617 #: ../src/guestfs-actions.pod:3821
26618 msgid "See also C<guestfs_list_filesystems>."
26619 msgstr ""
26620
26621 #. type: =head2
26622 #: ../src/guestfs-actions.pod:3416
26623 msgid "guestfs_is_blockdev"
26624 msgstr ""
26625
26626 #. type: verbatim
26627 #: ../src/guestfs-actions.pod:3418
26628 #, no-wrap
26629 msgid ""
26630 " int\n"
26631 " guestfs_is_blockdev (guestfs_h *g,\n"
26632 "                      const char *path);\n"
26633 "\n"
26634 msgstr ""
26635
26636 #. type: textblock
26637 #: ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:3454
26638 #: ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3499
26639 #: ../src/guestfs-actions.pod:3515 ../src/guestfs-actions.pod:3571
26640 #: ../src/guestfs-actions.pod:3586
26641 msgid "See also C<guestfs_stat>."
26642 msgstr ""
26643
26644 #. type: textblock
26645 #: ../src/guestfs-actions.pod:3429 ../src/guestfs-actions.pod:3458
26646 #: ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3575
26647 #: ../src/guestfs-actions.pod:3590
26648 msgid "(Added in 1.5.10)"
26649 msgstr ""
26650
26651 #. type: =head2
26652 #: ../src/guestfs-actions.pod:3431
26653 msgid "guestfs_is_busy"
26654 msgstr ""
26655
26656 #. type: verbatim
26657 #: ../src/guestfs-actions.pod:3433
26658 #, no-wrap
26659 msgid ""
26660 " int\n"
26661 " guestfs_is_busy (guestfs_h *g);\n"
26662 "\n"
26663 msgstr ""
26664
26665 #. type: =head2
26666 #: ../src/guestfs-actions.pod:3445
26667 msgid "guestfs_is_chardev"
26668 msgstr ""
26669
26670 #. type: verbatim
26671 #: ../src/guestfs-actions.pod:3447
26672 #, no-wrap
26673 msgid ""
26674 " int\n"
26675 " guestfs_is_chardev (guestfs_h *g,\n"
26676 "                     const char *path);\n"
26677 "\n"
26678 msgstr ""
26679
26680 #. type: =head2
26681 #: ../src/guestfs-actions.pod:3460
26682 msgid "guestfs_is_config"
26683 msgstr ""
26684
26685 #. type: verbatim
26686 #: ../src/guestfs-actions.pod:3462
26687 #, no-wrap
26688 msgid ""
26689 " int\n"
26690 " guestfs_is_config (guestfs_h *g);\n"
26691 "\n"
26692 msgstr ""
26693
26694 #. type: =head2
26695 #: ../src/guestfs-actions.pod:3474
26696 msgid "guestfs_is_dir"
26697 msgstr ""
26698
26699 #. type: verbatim
26700 #: ../src/guestfs-actions.pod:3476
26701 #, no-wrap
26702 msgid ""
26703 " int\n"
26704 " guestfs_is_dir (guestfs_h *g,\n"
26705 "                 const char *path);\n"
26706 "\n"
26707 msgstr ""
26708
26709 #. type: =head2
26710 #: ../src/guestfs-actions.pod:3490
26711 msgid "guestfs_is_fifo"
26712 msgstr ""
26713
26714 #. type: verbatim
26715 #: ../src/guestfs-actions.pod:3492
26716 #, no-wrap
26717 msgid ""
26718 " int\n"
26719 " guestfs_is_fifo (guestfs_h *g,\n"
26720 "                  const char *path);\n"
26721 "\n"
26722 msgstr ""
26723
26724 #. type: =head2
26725 #: ../src/guestfs-actions.pod:3505
26726 msgid "guestfs_is_file"
26727 msgstr ""
26728
26729 #. type: verbatim
26730 #: ../src/guestfs-actions.pod:3507
26731 #, no-wrap
26732 msgid ""
26733 " int\n"
26734 " guestfs_is_file (guestfs_h *g,\n"
26735 "                  const char *path);\n"
26736 "\n"
26737 msgstr ""
26738
26739 #. type: =head2
26740 #: ../src/guestfs-actions.pod:3521
26741 msgid "guestfs_is_launching"
26742 msgstr ""
26743
26744 #. type: verbatim
26745 #: ../src/guestfs-actions.pod:3523
26746 #, no-wrap
26747 msgid ""
26748 " int\n"
26749 " guestfs_is_launching (guestfs_h *g);\n"
26750 "\n"
26751 msgstr ""
26752
26753 #. type: =head2
26754 #: ../src/guestfs-actions.pod:3535
26755 msgid "guestfs_is_lv"
26756 msgstr ""
26757
26758 #. type: verbatim
26759 #: ../src/guestfs-actions.pod:3537
26760 #, no-wrap
26761 msgid ""
26762 " int\n"
26763 " guestfs_is_lv (guestfs_h *g,\n"
26764 "                const char *device);\n"
26765 "\n"
26766 msgstr ""
26767
26768 #. type: =head2
26769 #: ../src/guestfs-actions.pod:3548
26770 msgid "guestfs_is_ready"
26771 msgstr ""
26772
26773 #. type: verbatim
26774 #: ../src/guestfs-actions.pod:3550
26775 #, no-wrap
26776 msgid ""
26777 " int\n"
26778 " guestfs_is_ready (guestfs_h *g);\n"
26779 "\n"
26780 msgstr ""
26781
26782 #. type: =head2
26783 #: ../src/guestfs-actions.pod:3562
26784 msgid "guestfs_is_socket"
26785 msgstr ""
26786
26787 #. type: verbatim
26788 #: ../src/guestfs-actions.pod:3564
26789 #, no-wrap
26790 msgid ""
26791 " int\n"
26792 " guestfs_is_socket (guestfs_h *g,\n"
26793 "                    const char *path);\n"
26794 "\n"
26795 msgstr ""
26796
26797 #. type: =head2
26798 #: ../src/guestfs-actions.pod:3577
26799 msgid "guestfs_is_symlink"
26800 msgstr ""
26801
26802 #. type: verbatim
26803 #: ../src/guestfs-actions.pod:3579
26804 #, no-wrap
26805 msgid ""
26806 " int\n"
26807 " guestfs_is_symlink (guestfs_h *g,\n"
26808 "                     const char *path);\n"
26809 "\n"
26810 msgstr ""
26811
26812 #. type: =head2
26813 #: ../src/guestfs-actions.pod:3592
26814 msgid "guestfs_is_zero"
26815 msgstr ""
26816
26817 #. type: verbatim
26818 #: ../src/guestfs-actions.pod:3594
26819 #, no-wrap
26820 msgid ""
26821 " int\n"
26822 " guestfs_is_zero (guestfs_h *g,\n"
26823 "                  const char *path);\n"
26824 "\n"
26825 msgstr ""
26826
26827 #. type: textblock
26828 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3617
26829 msgid "(Added in 1.11.8)"
26830 msgstr ""
26831
26832 #. type: =head2
26833 #: ../src/guestfs-actions.pod:3605
26834 msgid "guestfs_is_zero_device"
26835 msgstr ""
26836
26837 #. type: verbatim
26838 #: ../src/guestfs-actions.pod:3607
26839 #, no-wrap
26840 msgid ""
26841 " int\n"
26842 " guestfs_is_zero_device (guestfs_h *g,\n"
26843 "                         const char *device);\n"
26844 "\n"
26845 msgstr ""
26846
26847 #. type: =head2
26848 #: ../src/guestfs-actions.pod:3619
26849 msgid "guestfs_kill_subprocess"
26850 msgstr ""
26851
26852 #. type: verbatim
26853 #: ../src/guestfs-actions.pod:3621
26854 #, no-wrap
26855 msgid ""
26856 " int\n"
26857 " guestfs_kill_subprocess (guestfs_h *g);\n"
26858 "\n"
26859 msgstr ""
26860
26861 #. type: =head2
26862 #: ../src/guestfs-actions.pod:3630
26863 msgid "guestfs_launch"
26864 msgstr ""
26865
26866 #. type: verbatim
26867 #: ../src/guestfs-actions.pod:3632
26868 #, no-wrap
26869 msgid ""
26870 " int\n"
26871 " guestfs_launch (guestfs_h *g);\n"
26872 "\n"
26873 msgstr ""
26874
26875 #. type: =head2
26876 #: ../src/guestfs-actions.pod:3650
26877 msgid "guestfs_lchown"
26878 msgstr ""
26879
26880 #. type: verbatim
26881 #: ../src/guestfs-actions.pod:3652
26882 #, no-wrap
26883 msgid ""
26884 " int\n"
26885 " guestfs_lchown (guestfs_h *g,\n"
26886 "                 int owner,\n"
26887 "                 int group,\n"
26888 "                 const char *path);\n"
26889 "\n"
26890 msgstr ""
26891
26892 #. type: textblock
26893 #: ../src/guestfs-actions.pod:3658
26894 msgid ""
26895 "Change the file owner to C<owner> and group to C<group>.  This is like "
26896 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
26897 "changed, not the target."
26898 msgstr ""
26899
26900 #. type: =head2
26901 #: ../src/guestfs-actions.pod:3670
26902 msgid "guestfs_lgetxattr"
26903 msgstr ""
26904
26905 #. type: verbatim
26906 #: ../src/guestfs-actions.pod:3672
26907 #, no-wrap
26908 msgid ""
26909 " char *\n"
26910 " guestfs_lgetxattr (guestfs_h *g,\n"
26911 "                    const char *path,\n"
26912 "                    const char *name,\n"
26913 "                    size_t *size_r);\n"
26914 "\n"
26915 msgstr ""
26916
26917 #. type: textblock
26918 #: ../src/guestfs-actions.pod:3692
26919 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
26920 msgstr ""
26921
26922 #. type: =head2
26923 #: ../src/guestfs-actions.pod:3700
26924 msgid "guestfs_lgetxattrs"
26925 msgstr ""
26926
26927 #. type: verbatim
26928 #: ../src/guestfs-actions.pod:3702
26929 #, no-wrap
26930 msgid ""
26931 " struct guestfs_xattr_list *\n"
26932 " guestfs_lgetxattrs (guestfs_h *g,\n"
26933 "                     const char *path);\n"
26934 "\n"
26935 msgstr ""
26936
26937 #. type: textblock
26938 #: ../src/guestfs-actions.pod:3706
26939 msgid ""
26940 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
26941 "then it returns the extended attributes of the link itself."
26942 msgstr ""
26943
26944 #. type: =head2
26945 #: ../src/guestfs-actions.pod:3716
26946 msgid "guestfs_list_9p"
26947 msgstr ""
26948
26949 #. type: verbatim
26950 #: ../src/guestfs-actions.pod:3718
26951 #, no-wrap
26952 msgid ""
26953 " char **\n"
26954 " guestfs_list_9p (guestfs_h *g);\n"
26955 "\n"
26956 msgstr ""
26957
26958 #. type: =head2
26959 #: ../src/guestfs-actions.pod:3730
26960 msgid "guestfs_list_devices"
26961 msgstr ""
26962
26963 #. type: verbatim
26964 #: ../src/guestfs-actions.pod:3732
26965 #, no-wrap
26966 msgid ""
26967 " char **\n"
26968 " guestfs_list_devices (guestfs_h *g);\n"
26969 "\n"
26970 msgstr ""
26971
26972 #. type: =head2
26973 #: ../src/guestfs-actions.pod:3747
26974 msgid "guestfs_list_dm_devices"
26975 msgstr ""
26976
26977 #. type: verbatim
26978 #: ../src/guestfs-actions.pod:3749
26979 #, no-wrap
26980 msgid ""
26981 " char **\n"
26982 " guestfs_list_dm_devices (guestfs_h *g);\n"
26983 "\n"
26984 msgstr ""
26985
26986 #. type: textblock
26987 #: ../src/guestfs-actions.pod:3754
26988 msgid ""
26989 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
26990 "previous call to C<guestfs_luks_open>."
26991 msgstr ""
26992
26993 #. type: textblock
26994 #: ../src/guestfs-actions.pod:3757
26995 msgid ""
26996 "Device mapper devices which correspond to logical volumes are I<not> "
26997 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
26998 "volumes."
26999 msgstr ""
27000
27001 #. type: textblock
27002 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:5221
27003 msgid "(Added in 1.11.15)"
27004 msgstr ""
27005
27006 #. type: =head2
27007 #: ../src/guestfs-actions.pod:3767
27008 msgid "guestfs_list_filesystems"
27009 msgstr ""
27010
27011 #. type: verbatim
27012 #: ../src/guestfs-actions.pod:3769
27013 #, no-wrap
27014 msgid ""
27015 " char **\n"
27016 " guestfs_list_filesystems (guestfs_h *g);\n"
27017 "\n"
27018 msgstr ""
27019
27020 #. type: textblock
27021 #: ../src/guestfs-actions.pod:3789
27022 msgid ""
27023 "This command runs other libguestfs commands, which might include "
27024 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27025 "soon after launch and only when nothing is mounted."
27026 msgstr ""
27027
27028 #. type: textblock
27029 #: ../src/guestfs-actions.pod:3793
27030 msgid ""
27031 "Not all of the filesystems returned will be mountable.  In particular, swap "
27032 "partitions are returned in the list.  Also this command does not check that "
27033 "each filesystem found is valid and mountable, and some filesystems might be "
27034 "mountable but require special options.  Filesystems may not all belong to a "
27035 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
27036 msgstr ""
27037
27038 #. type: textblock
27039 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:5582
27040 msgid "(Added in 1.5.15)"
27041 msgstr ""
27042
27043 #. type: =head2
27044 #: ../src/guestfs-actions.pod:3809
27045 msgid "guestfs_list_partitions"
27046 msgstr "guestfs_list_partitions"
27047
27048 #. type: verbatim
27049 #: ../src/guestfs-actions.pod:3811
27050 #, no-wrap
27051 msgid ""
27052 " char **\n"
27053 " guestfs_list_partitions (guestfs_h *g);\n"
27054 "\n"
27055 msgstr ""
27056 " char **\n"
27057 " guestfs_list_partitions (guestfs_h *g);\n"
27058 "\n"
27059
27060 #. type: textblock
27061 #: ../src/guestfs-actions.pod:3818
27062 msgid ""
27063 "This does not return logical volumes.  For that you will need to call "
27064 "C<guestfs_lvs>."
27065 msgstr ""
27066
27067 #. type: =head2
27068 #: ../src/guestfs-actions.pod:3829
27069 msgid "guestfs_ll"
27070 msgstr "guestfs_ll"
27071
27072 #. type: verbatim
27073 #: ../src/guestfs-actions.pod:3831
27074 #, no-wrap
27075 msgid ""
27076 " char *\n"
27077 " guestfs_ll (guestfs_h *g,\n"
27078 "             const char *directory);\n"
27079 "\n"
27080 msgstr ""
27081 " char *\n"
27082 " guestfs_ll (guestfs_h *g,\n"
27083 "             const char *directory);\n"
27084 "\n"
27085
27086 #. type: =head2
27087 #: ../src/guestfs-actions.pod:3846
27088 msgid "guestfs_ln"
27089 msgstr "guestfs_ln"
27090
27091 #. type: verbatim
27092 #: ../src/guestfs-actions.pod:3848
27093 #, no-wrap
27094 msgid ""
27095 " int\n"
27096 " guestfs_ln (guestfs_h *g,\n"
27097 "             const char *target,\n"
27098 "             const char *linkname);\n"
27099 "\n"
27100 msgstr ""
27101 " int\n"
27102 " guestfs_ln (guestfs_h *g,\n"
27103 "             const char *target,\n"
27104 "             const char *linkname);\n"
27105 "\n"
27106
27107 #. type: =head2
27108 #: ../src/guestfs-actions.pod:3859
27109 msgid "guestfs_ln_f"
27110 msgstr "guestfs_ln_f"
27111
27112 #. type: verbatim
27113 #: ../src/guestfs-actions.pod:3861
27114 #, no-wrap
27115 msgid ""
27116 " int\n"
27117 " guestfs_ln_f (guestfs_h *g,\n"
27118 "               const char *target,\n"
27119 "               const char *linkname);\n"
27120 "\n"
27121 msgstr ""
27122 " int\n"
27123 " guestfs_ln_f (guestfs_h *g,\n"
27124 "               const char *target,\n"
27125 "               const char *linkname);\n"
27126 "\n"
27127
27128 #. type: =head2
27129 #: ../src/guestfs-actions.pod:3873
27130 msgid "guestfs_ln_s"
27131 msgstr "guestfs_ln_s"
27132
27133 #. type: verbatim
27134 #: ../src/guestfs-actions.pod:3875
27135 #, no-wrap
27136 msgid ""
27137 " int\n"
27138 " guestfs_ln_s (guestfs_h *g,\n"
27139 "               const char *target,\n"
27140 "               const char *linkname);\n"
27141 "\n"
27142 msgstr ""
27143 " int\n"
27144 " guestfs_ln_s (guestfs_h *g,\n"
27145 "               const char *target,\n"
27146 "               const char *linkname);\n"
27147 "\n"
27148
27149 #. type: =head2
27150 #: ../src/guestfs-actions.pod:3886
27151 msgid "guestfs_ln_sf"
27152 msgstr "guestfs_ln_sf"
27153
27154 #. type: verbatim
27155 #: ../src/guestfs-actions.pod:3888
27156 #, no-wrap
27157 msgid ""
27158 " int\n"
27159 " guestfs_ln_sf (guestfs_h *g,\n"
27160 "                const char *target,\n"
27161 "                const char *linkname);\n"
27162 "\n"
27163 msgstr ""
27164 " int\n"
27165 " guestfs_ln_sf (guestfs_h *g,\n"
27166 "                const char *target,\n"
27167 "                const char *linkname);\n"
27168 "\n"
27169
27170 #. type: =head2
27171 #: ../src/guestfs-actions.pod:3900
27172 msgid "guestfs_lremovexattr"
27173 msgstr "guestfs_lremovexattr"
27174
27175 #. type: verbatim
27176 #: ../src/guestfs-actions.pod:3902
27177 #, no-wrap
27178 msgid ""
27179 " int\n"
27180 " guestfs_lremovexattr (guestfs_h *g,\n"
27181 "                       const char *xattr,\n"
27182 "                       const char *path);\n"
27183 "\n"
27184 msgstr ""
27185 " int\n"
27186 " guestfs_lremovexattr (guestfs_h *g,\n"
27187 "                       const char *xattr,\n"
27188 "                       const char *path);\n"
27189 "\n"
27190
27191 #. type: textblock
27192 #: ../src/guestfs-actions.pod:3907
27193 msgid ""
27194 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27195 "link, then it removes an extended attribute of the link itself."
27196 msgstr ""
27197
27198 #. type: =head2
27199 #: ../src/guestfs-actions.pod:3915
27200 msgid "guestfs_ls"
27201 msgstr "guestfs_ls"
27202
27203 #. type: verbatim
27204 #: ../src/guestfs-actions.pod:3917
27205 #, no-wrap
27206 msgid ""
27207 " char **\n"
27208 " guestfs_ls (guestfs_h *g,\n"
27209 "             const char *directory);\n"
27210 "\n"
27211 msgstr ""
27212 " char **\n"
27213 " guestfs_ls (guestfs_h *g,\n"
27214 "             const char *directory);\n"
27215 "\n"
27216
27217 #. type: textblock
27218 #: ../src/guestfs-actions.pod:3925
27219 msgid ""
27220 "This command is mostly useful for interactive sessions.  Programs should "
27221 "probably use C<guestfs_readdir> instead."
27222 msgstr ""
27223
27224 #. type: =head2
27225 #: ../src/guestfs-actions.pod:3934
27226 msgid "guestfs_lsetxattr"
27227 msgstr "guestfs_lsetxattr"
27228
27229 #. type: verbatim
27230 #: ../src/guestfs-actions.pod:3936
27231 #, no-wrap
27232 msgid ""
27233 " int\n"
27234 " guestfs_lsetxattr (guestfs_h *g,\n"
27235 "                    const char *xattr,\n"
27236 "                    const char *val,\n"
27237 "                    int vallen,\n"
27238 "                    const char *path);\n"
27239 "\n"
27240 msgstr ""
27241 " int\n"
27242 " guestfs_lsetxattr (guestfs_h *g,\n"
27243 "                    const char *xattr,\n"
27244 "                    const char *val,\n"
27245 "                    int vallen,\n"
27246 "                    const char *path);\n"
27247 "\n"
27248
27249 #. type: textblock
27250 #: ../src/guestfs-actions.pod:3943
27251 msgid ""
27252 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27253 "then it sets an extended attribute of the link itself."
27254 msgstr ""
27255
27256 #. type: =head2
27257 #: ../src/guestfs-actions.pod:3951
27258 msgid "guestfs_lstat"
27259 msgstr "guestfs_lstat"
27260
27261 #. type: verbatim
27262 #: ../src/guestfs-actions.pod:3953
27263 #, no-wrap
27264 msgid ""
27265 " struct guestfs_stat *\n"
27266 " guestfs_lstat (guestfs_h *g,\n"
27267 "                const char *path);\n"
27268 "\n"
27269 msgstr ""
27270 " struct guestfs_stat *\n"
27271 " guestfs_lstat (guestfs_h *g,\n"
27272 "                const char *path);\n"
27273 "\n"
27274
27275 #. type: textblock
27276 #: ../src/guestfs-actions.pod:3959
27277 msgid ""
27278 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27279 "link, then the link is stat-ed, not the file it refers to."
27280 msgstr ""
27281
27282 #. type: textblock
27283 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:6740
27284 msgid ""
27285 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27286 "error.  I<The caller must call C<guestfs_free_stat> after use>."
27287 msgstr ""
27288
27289 #. type: textblock
27290 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:6744
27291 #: ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:7143
27292 msgid "(Added in 0.9.2)"
27293 msgstr "(Додано у 0.9.2)"
27294
27295 #. type: =head2
27296 #: ../src/guestfs-actions.pod:3971
27297 msgid "guestfs_lstatlist"
27298 msgstr "guestfs_lstatlist"
27299
27300 #. type: verbatim
27301 #: ../src/guestfs-actions.pod:3973
27302 #, no-wrap
27303 msgid ""
27304 " struct guestfs_stat_list *\n"
27305 " guestfs_lstatlist (guestfs_h *g,\n"
27306 "                    const char *path,\n"
27307 "                    char *const *names);\n"
27308 "\n"
27309 msgstr ""
27310 " struct guestfs_stat_list *\n"
27311 " guestfs_lstatlist (guestfs_h *g,\n"
27312 "                    const char *path,\n"
27313 "                    char *const *names);\n"
27314 "\n"
27315
27316 #. type: textblock
27317 #: ../src/guestfs-actions.pod:3978
27318 msgid ""
27319 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27320 "files, where all files are in the directory C<path>.  C<names> is the list "
27321 "of files from this directory."
27322 msgstr ""
27323
27324 #. type: textblock
27325 #: ../src/guestfs-actions.pod:3987
27326 msgid ""
27327 "This call is intended for programs that want to efficiently list a directory "
27328 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
27329 "for a similarly efficient call for getting extended attributes.  Very long "
27330 "directory listings might cause the protocol message size to be exceeded, "
27331 "causing this call to fail.  The caller must split up such requests into "
27332 "smaller groups of names."
27333 msgstr ""
27334
27335 #. type: textblock
27336 #: ../src/guestfs-actions.pod:3995
27337 msgid ""
27338 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27339 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
27340 msgstr ""
27341
27342 #. type: =head2
27343 #: ../src/guestfs-actions.pod:4001
27344 msgid "guestfs_luks_add_key"
27345 msgstr "guestfs_luks_add_key"
27346
27347 #. type: verbatim
27348 #: ../src/guestfs-actions.pod:4003
27349 #, no-wrap
27350 msgid ""
27351 " int\n"
27352 " guestfs_luks_add_key (guestfs_h *g,\n"
27353 "                       const char *device,\n"
27354 "                       const char *key,\n"
27355 "                       const char *newkey,\n"
27356 "                       int keyslot);\n"
27357 "\n"
27358 msgstr ""
27359 " int\n"
27360 " guestfs_luks_add_key (guestfs_h *g,\n"
27361 "                       const char *device,\n"
27362 "                       const char *key,\n"
27363 "                       const char *newkey,\n"
27364 "                       int keyslot);\n"
27365 "\n"
27366
27367 #. type: textblock
27368 #: ../src/guestfs-actions.pod:4015
27369 msgid ""
27370 "Note that if C<keyslot> already contains a key, then this command will "
27371 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
27372 msgstr ""
27373
27374 #. type: textblock
27375 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4061
27376 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4104
27377 #: ../src/guestfs-actions.pod:4139 ../src/guestfs-actions.pod:4158
27378 msgid ""
27379 "This function takes a key or passphrase parameter which could contain "
27380 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
27381 "information."
27382 msgstr ""
27383
27384 #. type: textblock
27385 #: ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4065
27386 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4108
27387 msgid "(Added in 1.5.2)"
27388 msgstr "(Додано у 1.5.2)"
27389
27390 #. type: =head2
27391 #: ../src/guestfs-actions.pod:4027
27392 msgid "guestfs_luks_close"
27393 msgstr "guestfs_luks_close"
27394
27395 #. type: verbatim
27396 #: ../src/guestfs-actions.pod:4029
27397 #, no-wrap
27398 msgid ""
27399 " int\n"
27400 " guestfs_luks_close (guestfs_h *g,\n"
27401 "                     const char *device);\n"
27402 "\n"
27403 msgstr ""
27404 " int\n"
27405 " guestfs_luks_close (guestfs_h *g,\n"
27406 "                     const char *device);\n"
27407 "\n"
27408
27409 #. type: textblock
27410 #: ../src/guestfs-actions.pod:4033
27411 msgid ""
27412 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27413 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
27414 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27415 "underlying block device."
27416 msgstr ""
27417
27418 #. type: textblock
27419 #: ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4143
27420 #: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4212
27421 #: ../src/guestfs-actions.pod:4260
27422 msgid "(Added in 1.5.1)"
27423 msgstr "(Додано у 1.5.1)"
27424
27425 #. type: =head2
27426 #: ../src/guestfs-actions.pod:4043
27427 msgid "guestfs_luks_format"
27428 msgstr "guestfs_luks_format"
27429
27430 #. type: verbatim
27431 #: ../src/guestfs-actions.pod:4045
27432 #, no-wrap
27433 msgid ""
27434 " int\n"
27435 " guestfs_luks_format (guestfs_h *g,\n"
27436 "                      const char *device,\n"
27437 "                      const char *key,\n"
27438 "                      int keyslot);\n"
27439 "\n"
27440 msgstr ""
27441 " int\n"
27442 " guestfs_luks_format (guestfs_h *g,\n"
27443 "                      const char *device,\n"
27444 "                      const char *key,\n"
27445 "                      int keyslot);\n"
27446 "\n"
27447
27448 #. type: =head2
27449 #: ../src/guestfs-actions.pod:4067
27450 msgid "guestfs_luks_format_cipher"
27451 msgstr "guestfs_luks_format_cipher"
27452
27453 #. type: verbatim
27454 #: ../src/guestfs-actions.pod:4069
27455 #, no-wrap
27456 msgid ""
27457 " int\n"
27458 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27459 "                             const char *device,\n"
27460 "                             const char *key,\n"
27461 "                             int keyslot,\n"
27462 "                             const char *cipher);\n"
27463 "\n"
27464 msgstr ""
27465 " int\n"
27466 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27467 "                             const char *device,\n"
27468 "                             const char *key,\n"
27469 "                             int keyslot,\n"
27470 "                             const char *cipher);\n"
27471 "\n"
27472
27473 #. type: textblock
27474 #: ../src/guestfs-actions.pod:4076
27475 msgid ""
27476 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27477 "set the C<cipher> used."
27478 msgstr ""
27479
27480 #. type: =head2
27481 #: ../src/guestfs-actions.pod:4090
27482 msgid "guestfs_luks_kill_slot"
27483 msgstr "guestfs_luks_kill_slot"
27484
27485 #. type: verbatim
27486 #: ../src/guestfs-actions.pod:4092
27487 #, no-wrap
27488 msgid ""
27489 " int\n"
27490 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27491 "                         const char *device,\n"
27492 "                         const char *key,\n"
27493 "                         int keyslot);\n"
27494 "\n"
27495 msgstr ""
27496 " int\n"
27497 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27498 "                         const char *device,\n"
27499 "                         const char *key,\n"
27500 "                         int keyslot);\n"
27501 "\n"
27502
27503 #. type: =head2
27504 #: ../src/guestfs-actions.pod:4110
27505 msgid "guestfs_luks_open"
27506 msgstr "guestfs_luks_open"
27507
27508 #. type: verbatim
27509 #: ../src/guestfs-actions.pod:4112
27510 #, no-wrap
27511 msgid ""
27512 " int\n"
27513 " guestfs_luks_open (guestfs_h *g,\n"
27514 "                    const char *device,\n"
27515 "                    const char *key,\n"
27516 "                    const char *mapname);\n"
27517 "\n"
27518 msgstr ""
27519 " int\n"
27520 " guestfs_luks_open (guestfs_h *g,\n"
27521 "                    const char *device,\n"
27522 "                    const char *key,\n"
27523 "                    const char *mapname);\n"
27524 "\n"
27525
27526 #. type: textblock
27527 #: ../src/guestfs-actions.pod:4130
27528 msgid ""
27529 "If this block device contains LVM volume groups, then calling "
27530 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27531 "visible."
27532 msgstr ""
27533
27534 #. type: textblock
27535 #: ../src/guestfs-actions.pod:4134
27536 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27537 msgstr ""
27538
27539 #. type: =head2
27540 #: ../src/guestfs-actions.pod:4145
27541 msgid "guestfs_luks_open_ro"
27542 msgstr "guestfs_luks_open_ro"
27543
27544 #. type: verbatim
27545 #: ../src/guestfs-actions.pod:4147
27546 #, no-wrap
27547 msgid ""
27548 " int\n"
27549 " guestfs_luks_open_ro (guestfs_h *g,\n"
27550 "                       const char *device,\n"
27551 "                       const char *key,\n"
27552 "                       const char *mapname);\n"
27553 "\n"
27554 msgstr ""
27555 " int\n"
27556 " guestfs_luks_open_ro (guestfs_h *g,\n"
27557 "                       const char *device,\n"
27558 "                       const char *key,\n"
27559 "                       const char *mapname);\n"
27560 "\n"
27561
27562 #. type: textblock
27563 #: ../src/guestfs-actions.pod:4153
27564 msgid ""
27565 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27566 "created."
27567 msgstr ""
27568
27569 #. type: =head2
27570 #: ../src/guestfs-actions.pod:4164
27571 msgid "guestfs_lvcreate"
27572 msgstr "guestfs_lvcreate"
27573
27574 #. type: verbatim
27575 #: ../src/guestfs-actions.pod:4166
27576 #, no-wrap
27577 msgid ""
27578 " int\n"
27579 " guestfs_lvcreate (guestfs_h *g,\n"
27580 "                   const char *logvol,\n"
27581 "                   const char *volgroup,\n"
27582 "                   int mbytes);\n"
27583 "\n"
27584 msgstr ""
27585 " int\n"
27586 " guestfs_lvcreate (guestfs_h *g,\n"
27587 "                   const char *logvol,\n"
27588 "                   const char *volgroup,\n"
27589 "                   int mbytes);\n"
27590 "\n"
27591
27592 #. type: =head2
27593 #: ../src/guestfs-actions.pod:4179
27594 msgid "guestfs_lvm_canonical_lv_name"
27595 msgstr "guestfs_lvm_canonical_lv_name"
27596
27597 #. type: verbatim
27598 #: ../src/guestfs-actions.pod:4181
27599 #, no-wrap
27600 msgid ""
27601 " char *\n"
27602 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27603 "                                const char *lvname);\n"
27604 "\n"
27605 msgstr ""
27606 " char *\n"
27607 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27608 "                                const char *lvname);\n"
27609 "\n"
27610
27611 #. type: textblock
27612 #: ../src/guestfs-actions.pod:4192
27613 msgid "See also C<guestfs_is_lv>."
27614 msgstr ""
27615
27616 #. type: textblock
27617 #: ../src/guestfs-actions.pod:4197
27618 msgid "(Added in 1.5.24)"
27619 msgstr "(Додано у 1.5.24)"
27620
27621 #. type: =head2
27622 #: ../src/guestfs-actions.pod:4199
27623 msgid "guestfs_lvm_clear_filter"
27624 msgstr "guestfs_lvm_clear_filter"
27625
27626 #. type: verbatim
27627 #: ../src/guestfs-actions.pod:4201
27628 #, no-wrap
27629 msgid ""
27630 " int\n"
27631 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27632 "\n"
27633 msgstr ""
27634 " int\n"
27635 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27636 "\n"
27637
27638 #. type: textblock
27639 #: ../src/guestfs-actions.pod:4204
27640 msgid ""
27641 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
27642 "see every block device."
27643 msgstr ""
27644
27645 #. type: =head2
27646 #: ../src/guestfs-actions.pod:4214
27647 msgid "guestfs_lvm_remove_all"
27648 msgstr "guestfs_lvm_remove_all"
27649
27650 #. type: verbatim
27651 #: ../src/guestfs-actions.pod:4216
27652 #, no-wrap
27653 msgid ""
27654 " int\n"
27655 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27656 "\n"
27657 msgstr ""
27658 " int\n"
27659 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27660 "\n"
27661
27662 #. type: =head2
27663 #: ../src/guestfs-actions.pod:4229
27664 msgid "guestfs_lvm_set_filter"
27665 msgstr "guestfs_lvm_set_filter"
27666
27667 #. type: verbatim
27668 #: ../src/guestfs-actions.pod:4231
27669 #, no-wrap
27670 msgid ""
27671 " int\n"
27672 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27673 "                         char *const *devices);\n"
27674 "\n"
27675 msgstr ""
27676 " int\n"
27677 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27678 "                         char *const *devices);\n"
27679 "\n"
27680
27681 #. type: =head2
27682 #: ../src/guestfs-actions.pod:4262
27683 msgid "guestfs_lvremove"
27684 msgstr "guestfs_lvremove"
27685
27686 #. type: verbatim
27687 #: ../src/guestfs-actions.pod:4264
27688 #, no-wrap
27689 msgid ""
27690 " int\n"
27691 " guestfs_lvremove (guestfs_h *g,\n"
27692 "                   const char *device);\n"
27693 "\n"
27694 msgstr ""
27695 " int\n"
27696 " guestfs_lvremove (guestfs_h *g,\n"
27697 "                   const char *device);\n"
27698 "\n"
27699
27700 #. type: textblock
27701 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:5679
27702 #: ../src/guestfs-actions.pod:7513
27703 msgid "(Added in 1.0.13)"
27704 msgstr "(Додано у 1.0.13)"
27705
27706 #. type: =head2
27707 #: ../src/guestfs-actions.pod:4278
27708 msgid "guestfs_lvrename"
27709 msgstr "guestfs_lvrename"
27710
27711 #. type: verbatim
27712 #: ../src/guestfs-actions.pod:4280
27713 #, no-wrap
27714 msgid ""
27715 " int\n"
27716 " guestfs_lvrename (guestfs_h *g,\n"
27717 "                   const char *logvol,\n"
27718 "                   const char *newlogvol);\n"
27719 "\n"
27720 msgstr ""
27721 " int\n"
27722 " guestfs_lvrename (guestfs_h *g,\n"
27723 "                   const char *logvol,\n"
27724 "                   const char *newlogvol);\n"
27725 "\n"
27726
27727 #. type: textblock
27728 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:7526
27729 msgid "(Added in 1.0.83)"
27730 msgstr "(Додано у 1.0.83)"
27731
27732 #. type: =head2
27733 #: ../src/guestfs-actions.pod:4291
27734 msgid "guestfs_lvresize"
27735 msgstr "guestfs_lvresize"
27736
27737 #. type: verbatim
27738 #: ../src/guestfs-actions.pod:4293
27739 #, no-wrap
27740 msgid ""
27741 " int\n"
27742 " guestfs_lvresize (guestfs_h *g,\n"
27743 "                   const char *device,\n"
27744 "                   int mbytes);\n"
27745 "\n"
27746 msgstr ""
27747 " int\n"
27748 " guestfs_lvresize (guestfs_h *g,\n"
27749 "                   const char *device,\n"
27750 "                   int mbytes);\n"
27751 "\n"
27752
27753 #. type: =head2
27754 #: ../src/guestfs-actions.pod:4306
27755 msgid "guestfs_lvresize_free"
27756 msgstr "guestfs_lvresize_free"
27757
27758 #. type: verbatim
27759 #: ../src/guestfs-actions.pod:4308
27760 #, no-wrap
27761 msgid ""
27762 " int\n"
27763 " guestfs_lvresize_free (guestfs_h *g,\n"
27764 "                        const char *lv,\n"
27765 "                        int percent);\n"
27766 "\n"
27767 msgstr ""
27768 " int\n"
27769 " guestfs_lvresize_free (guestfs_h *g,\n"
27770 "                        const char *lv,\n"
27771 "                        int percent);\n"
27772 "\n"
27773
27774 #. type: textblock
27775 #: ../src/guestfs-actions.pod:4321
27776 msgid "(Added in 1.3.3)"
27777 msgstr "(Додано у 1.3.3)"
27778
27779 #. type: =head2
27780 #: ../src/guestfs-actions.pod:4323
27781 msgid "guestfs_lvs"
27782 msgstr "guestfs_lvs"
27783
27784 #. type: verbatim
27785 #: ../src/guestfs-actions.pod:4325
27786 #, no-wrap
27787 msgid ""
27788 " char **\n"
27789 " guestfs_lvs (guestfs_h *g);\n"
27790 "\n"
27791 msgstr ""
27792 " char **\n"
27793 " guestfs_lvs (guestfs_h *g);\n"
27794 "\n"
27795
27796 #. type: textblock
27797 #: ../src/guestfs-actions.pod:4334
27798 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27799 msgstr ""
27800
27801 #. type: =head2
27802 #: ../src/guestfs-actions.pod:4342
27803 msgid "guestfs_lvs_full"
27804 msgstr "guestfs_lvs_full"
27805
27806 #. type: verbatim
27807 #: ../src/guestfs-actions.pod:4344
27808 #, no-wrap
27809 msgid ""
27810 " struct guestfs_lvm_lv_list *\n"
27811 " guestfs_lvs_full (guestfs_h *g);\n"
27812 "\n"
27813 msgstr ""
27814 " struct guestfs_lvm_lv_list *\n"
27815 " guestfs_lvs_full (guestfs_h *g);\n"
27816 "\n"
27817
27818 #. type: textblock
27819 #: ../src/guestfs-actions.pod:4350
27820 msgid ""
27821 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27822 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27823 msgstr ""
27824
27825 #. type: =head2
27826 #: ../src/guestfs-actions.pod:4356
27827 msgid "guestfs_lvuuid"
27828 msgstr "guestfs_lvuuid"
27829
27830 #. type: verbatim
27831 #: ../src/guestfs-actions.pod:4358
27832 #, no-wrap
27833 msgid ""
27834 " char *\n"
27835 " guestfs_lvuuid (guestfs_h *g,\n"
27836 "                 const char *device);\n"
27837 "\n"
27838 msgstr ""
27839 " char *\n"
27840 " guestfs_lvuuid (guestfs_h *g,\n"
27841 "                 const char *device);\n"
27842 "\n"
27843
27844 #. type: =head2
27845 #: ../src/guestfs-actions.pod:4369
27846 msgid "guestfs_lxattrlist"
27847 msgstr "guestfs_lxattrlist"
27848
27849 #. type: verbatim
27850 #: ../src/guestfs-actions.pod:4371
27851 #, no-wrap
27852 msgid ""
27853 " struct guestfs_xattr_list *\n"
27854 " guestfs_lxattrlist (guestfs_h *g,\n"
27855 "                     const char *path,\n"
27856 "                     char *const *names);\n"
27857 "\n"
27858 msgstr ""
27859 " struct guestfs_xattr_list *\n"
27860 " guestfs_lxattrlist (guestfs_h *g,\n"
27861 "                     const char *path,\n"
27862 "                     char *const *names);\n"
27863 "\n"
27864
27865 #. type: textblock
27866 #: ../src/guestfs-actions.pod:4390
27867 msgid ""
27868 "This call is intended for programs that want to efficiently list a directory "
27869 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
27870 "a similarly efficient call for getting standard stats.  Very long directory "
27871 "listings might cause the protocol message size to be exceeded, causing this "
27872 "call to fail.  The caller must split up such requests into smaller groups of "
27873 "names."
27874 msgstr ""
27875
27876 #. type: =head2
27877 #: ../src/guestfs-actions.pod:4404
27878 msgid "guestfs_mkdir"
27879 msgstr "guestfs_mkdir"
27880
27881 #. type: verbatim
27882 #: ../src/guestfs-actions.pod:4406
27883 #, no-wrap
27884 msgid ""
27885 " int\n"
27886 " guestfs_mkdir (guestfs_h *g,\n"
27887 "                const char *path);\n"
27888 "\n"
27889 msgstr ""
27890 " int\n"
27891 " guestfs_mkdir (guestfs_h *g,\n"
27892 "                const char *path);\n"
27893 "\n"
27894
27895 #. type: =head2
27896 #: ../src/guestfs-actions.pod:4416
27897 msgid "guestfs_mkdir_mode"
27898 msgstr "guestfs_mkdir_mode"
27899
27900 #. type: verbatim
27901 #: ../src/guestfs-actions.pod:4418
27902 #, no-wrap
27903 msgid ""
27904 " int\n"
27905 " guestfs_mkdir_mode (guestfs_h *g,\n"
27906 "                     const char *path,\n"
27907 "                     int mode);\n"
27908 "\n"
27909 msgstr ""
27910 " int\n"
27911 " guestfs_mkdir_mode (guestfs_h *g,\n"
27912 "                     const char *path,\n"
27913 "                     int mode);\n"
27914 "\n"
27915
27916 #. type: textblock
27917 #: ../src/guestfs-actions.pod:4430
27918 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
27919 msgstr ""
27920
27921 #. type: =head2
27922 #: ../src/guestfs-actions.pod:4436
27923 msgid "guestfs_mkdir_p"
27924 msgstr "guestfs_mkdir_p"
27925
27926 #. type: verbatim
27927 #: ../src/guestfs-actions.pod:4438
27928 #, no-wrap
27929 msgid ""
27930 " int\n"
27931 " guestfs_mkdir_p (guestfs_h *g,\n"
27932 "                  const char *path);\n"
27933 "\n"
27934 msgstr ""
27935 " int\n"
27936 " guestfs_mkdir_p (guestfs_h *g,\n"
27937 "                  const char *path);\n"
27938 "\n"
27939
27940 #. type: =head2
27941 #: ../src/guestfs-actions.pod:4449
27942 msgid "guestfs_mkdtemp"
27943 msgstr "guestfs_mkdtemp"
27944
27945 #. type: verbatim
27946 #: ../src/guestfs-actions.pod:4451
27947 #, no-wrap
27948 msgid ""
27949 " char *\n"
27950 " guestfs_mkdtemp (guestfs_h *g,\n"
27951 "                  const char *template);\n"
27952 "\n"
27953 msgstr ""
27954 " char *\n"
27955 " guestfs_mkdtemp (guestfs_h *g,\n"
27956 "                  const char *template);\n"
27957 "\n"
27958
27959 #. type: =head2
27960 #: ../src/guestfs-actions.pod:4479
27961 msgid "guestfs_mke2fs_J"
27962 msgstr "guestfs_mke2fs_J"
27963
27964 #. type: verbatim
27965 #: ../src/guestfs-actions.pod:4481
27966 #, no-wrap
27967 msgid ""
27968 " int\n"
27969 " guestfs_mke2fs_J (guestfs_h *g,\n"
27970 "                   const char *fstype,\n"
27971 "                   int blocksize,\n"
27972 "                   const char *device,\n"
27973 "                   const char *journal);\n"
27974 "\n"
27975 msgstr ""
27976 " int\n"
27977 " guestfs_mke2fs_J (guestfs_h *g,\n"
27978 "                   const char *fstype,\n"
27979 "                   int blocksize,\n"
27980 "                   const char *device,\n"
27981 "                   const char *journal);\n"
27982 "\n"
27983
27984 #. type: textblock
27985 #: ../src/guestfs-actions.pod:4494
27986 msgid "See also C<guestfs_mke2journal>."
27987 msgstr ""
27988
27989 #. type: textblock
27990 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4516
27991 #: ../src/guestfs-actions.pod:4534 ../src/guestfs-actions.pod:4550
27992 #: ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4578
27993 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4914
27994 msgid "(Added in 1.0.68)"
27995 msgstr "(Додано у 1.0.68)"
27996
27997 #. type: =head2
27998 #: ../src/guestfs-actions.pod:4500
27999 msgid "guestfs_mke2fs_JL"
28000 msgstr "guestfs_mke2fs_JL"
28001
28002 #. type: verbatim
28003 #: ../src/guestfs-actions.pod:4502
28004 #, no-wrap
28005 msgid ""
28006 " int\n"
28007 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28008 "                    const char *fstype,\n"
28009 "                    int blocksize,\n"
28010 "                    const char *device,\n"
28011 "                    const char *label);\n"
28012 "\n"
28013 msgstr ""
28014 " int\n"
28015 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28016 "                    const char *fstype,\n"
28017 "                    int blocksize,\n"
28018 "                    const char *device,\n"
28019 "                    const char *label);\n"
28020 "\n"
28021
28022 #. type: textblock
28023 #: ../src/guestfs-actions.pod:4512
28024 msgid "See also C<guestfs_mke2journal_L>."
28025 msgstr ""
28026
28027 #. type: =head2
28028 #: ../src/guestfs-actions.pod:4518
28029 msgid "guestfs_mke2fs_JU"
28030 msgstr "guestfs_mke2fs_JU"
28031
28032 #. type: verbatim
28033 #: ../src/guestfs-actions.pod:4520
28034 #, no-wrap
28035 msgid ""
28036 " int\n"
28037 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28038 "                    const char *fstype,\n"
28039 "                    int blocksize,\n"
28040 "                    const char *device,\n"
28041 "                    const char *uuid);\n"
28042 "\n"
28043 msgstr ""
28044 " int\n"
28045 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28046 "                    const char *fstype,\n"
28047 "                    int blocksize,\n"
28048 "                    const char *device,\n"
28049 "                    const char *uuid);\n"
28050 "\n"
28051
28052 #. type: textblock
28053 #: ../src/guestfs-actions.pod:4530
28054 msgid "See also C<guestfs_mke2journal_U>."
28055 msgstr ""
28056
28057 #. type: =head2
28058 #: ../src/guestfs-actions.pod:4536
28059 msgid "guestfs_mke2journal"
28060 msgstr "guestfs_mke2journal"
28061
28062 #. type: verbatim
28063 #: ../src/guestfs-actions.pod:4538
28064 #, no-wrap
28065 msgid ""
28066 " int\n"
28067 " guestfs_mke2journal (guestfs_h *g,\n"
28068 "                      int blocksize,\n"
28069 "                      const char *device);\n"
28070 "\n"
28071 msgstr ""
28072 " int\n"
28073 " guestfs_mke2journal (guestfs_h *g,\n"
28074 "                      int blocksize,\n"
28075 "                      const char *device);\n"
28076 "\n"
28077
28078 #. type: =head2
28079 #: ../src/guestfs-actions.pod:4552
28080 msgid "guestfs_mke2journal_L"
28081 msgstr "guestfs_mke2journal_L"
28082
28083 #. type: verbatim
28084 #: ../src/guestfs-actions.pod:4554
28085 #, no-wrap
28086 msgid ""
28087 " int\n"
28088 " guestfs_mke2journal_L (guestfs_h *g,\n"
28089 "                        int blocksize,\n"
28090 "                        const char *label,\n"
28091 "                        const char *device);\n"
28092 "\n"
28093 msgstr ""
28094 " int\n"
28095 " guestfs_mke2journal_L (guestfs_h *g,\n"
28096 "                        int blocksize,\n"
28097 "                        const char *label,\n"
28098 "                        const char *device);\n"
28099 "\n"
28100
28101 #. type: =head2
28102 #: ../src/guestfs-actions.pod:4566
28103 msgid "guestfs_mke2journal_U"
28104 msgstr "guestfs_mke2journal_U"
28105
28106 #. type: verbatim
28107 #: ../src/guestfs-actions.pod:4568
28108 #, no-wrap
28109 msgid ""
28110 " int\n"
28111 " guestfs_mke2journal_U (guestfs_h *g,\n"
28112 "                        int blocksize,\n"
28113 "                        const char *uuid,\n"
28114 "                        const char *device);\n"
28115 "\n"
28116 msgstr ""
28117 " int\n"
28118 " guestfs_mke2journal_U (guestfs_h *g,\n"
28119 "                        int blocksize,\n"
28120 "                        const char *uuid,\n"
28121 "                        const char *device);\n"
28122 "\n"
28123
28124 #. type: =head2
28125 #: ../src/guestfs-actions.pod:4580
28126 msgid "guestfs_mkfifo"
28127 msgstr "guestfs_mkfifo"
28128
28129 #. type: verbatim
28130 #: ../src/guestfs-actions.pod:4582
28131 #, no-wrap
28132 msgid ""
28133 " int\n"
28134 " guestfs_mkfifo (guestfs_h *g,\n"
28135 "                 int mode,\n"
28136 "                 const char *path);\n"
28137 "\n"
28138 msgstr ""
28139 " int\n"
28140 " guestfs_mkfifo (guestfs_h *g,\n"
28141 "                 int mode,\n"
28142 "                 const char *path);\n"
28143 "\n"
28144
28145 #. type: textblock
28146 #: ../src/guestfs-actions.pod:4587
28147 msgid ""
28148 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28149 "is just a convenient wrapper around C<guestfs_mknod>."
28150 msgstr ""
28151
28152 #. type: =head2
28153 #: ../src/guestfs-actions.pod:4597
28154 msgid "guestfs_mkfs"
28155 msgstr "guestfs_mkfs"
28156
28157 #. type: verbatim
28158 #: ../src/guestfs-actions.pod:4599
28159 #, no-wrap
28160 msgid ""
28161 " int\n"
28162 " guestfs_mkfs (guestfs_h *g,\n"
28163 "               const char *fstype,\n"
28164 "               const char *device);\n"
28165 "\n"
28166 msgstr ""
28167 " int\n"
28168 " guestfs_mkfs (guestfs_h *g,\n"
28169 "               const char *fstype,\n"
28170 "               const char *device);\n"
28171 "\n"
28172
28173 #. type: =head2
28174 #: ../src/guestfs-actions.pod:4612
28175 msgid "guestfs_mkfs_b"
28176 msgstr "guestfs_mkfs_b"
28177
28178 #. type: verbatim
28179 #: ../src/guestfs-actions.pod:4614
28180 #, no-wrap
28181 msgid ""
28182 " int\n"
28183 " guestfs_mkfs_b (guestfs_h *g,\n"
28184 "                 const char *fstype,\n"
28185 "                 int blocksize,\n"
28186 "                 const char *device);\n"
28187 "\n"
28188 msgstr ""
28189 " int\n"
28190 " guestfs_mkfs_b (guestfs_h *g,\n"
28191 "                 const char *fstype,\n"
28192 "                 int blocksize,\n"
28193 "                 const char *device);\n"
28194 "\n"
28195
28196 #. type: textblock
28197 #: ../src/guestfs-actions.pod:4620
28198 msgid ""
28199 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
28200 "call instead."
28201 msgstr ""
28202
28203 #. type: textblock
28204 #: ../src/guestfs-actions.pod:4627
28205 msgid ""
28206 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28207 "block size of the resulting filesystem.  Supported block sizes depend on the "
28208 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28209 msgstr ""
28210
28211 #. type: =head2
28212 #: ../src/guestfs-actions.pod:4639
28213 msgid "guestfs_mkfs_opts"
28214 msgstr "guestfs_mkfs_opts"
28215
28216 #. type: verbatim
28217 #: ../src/guestfs-actions.pod:4641
28218 #, no-wrap
28219 msgid ""
28220 " int\n"
28221 " guestfs_mkfs_opts (guestfs_h *g,\n"
28222 "                    const char *fstype,\n"
28223 "                    const char *device,\n"
28224 "                    ...);\n"
28225 "\n"
28226 msgstr ""
28227 " int\n"
28228 " guestfs_mkfs_opts (guestfs_h *g,\n"
28229 "                    const char *fstype,\n"
28230 "                    const char *device,\n"
28231 "                    ...);\n"
28232 "\n"
28233
28234 #. type: verbatim
28235 #: ../src/guestfs-actions.pod:4652
28236 #, no-wrap
28237 msgid ""
28238 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28239 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28240 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28241 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28242 "\n"
28243 msgstr ""
28244
28245 #. type: textblock
28246 #: ../src/guestfs-actions.pod:4700
28247 msgid "(Added in 1.7.19)"
28248 msgstr "(Додано у 1.7.19)"
28249
28250 #. type: =head2
28251 #: ../src/guestfs-actions.pod:4702
28252 msgid "guestfs_mkfs_opts_va"
28253 msgstr "guestfs_mkfs_opts_va"
28254
28255 #. type: verbatim
28256 #: ../src/guestfs-actions.pod:4704
28257 #, no-wrap
28258 msgid ""
28259 " int\n"
28260 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28261 "                       const char *fstype,\n"
28262 "                       const char *device,\n"
28263 "                       va_list args);\n"
28264 "\n"
28265 msgstr ""
28266 " int\n"
28267 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28268 "                       const char *fstype,\n"
28269 "                       const char *device,\n"
28270 "                       va_list args);\n"
28271 "\n"
28272
28273 #. type: textblock
28274 #: ../src/guestfs-actions.pod:4710
28275 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28276 msgstr ""
28277
28278 #. type: =head2
28279 #: ../src/guestfs-actions.pod:4714
28280 msgid "guestfs_mkfs_opts_argv"
28281 msgstr "guestfs_mkfs_opts_argv"
28282
28283 #. type: verbatim
28284 #: ../src/guestfs-actions.pod:4716
28285 #, no-wrap
28286 msgid ""
28287 " int\n"
28288 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28289 "                         const char *fstype,\n"
28290 "                         const char *device,\n"
28291 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28292 "\n"
28293 msgstr ""
28294 " int\n"
28295 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28296 "                         const char *fstype,\n"
28297 "                         const char *device,\n"
28298 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28299 "\n"
28300
28301 #. type: textblock
28302 #: ../src/guestfs-actions.pod:4722
28303 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28304 msgstr ""
28305
28306 #. type: =head2
28307 #: ../src/guestfs-actions.pod:4726
28308 msgid "guestfs_mkmountpoint"
28309 msgstr "guestfs_mkmountpoint"
28310
28311 #. type: verbatim
28312 #: ../src/guestfs-actions.pod:4728
28313 #, no-wrap
28314 msgid ""
28315 " int\n"
28316 " guestfs_mkmountpoint (guestfs_h *g,\n"
28317 "                       const char *exemptpath);\n"
28318 "\n"
28319 msgstr ""
28320 " int\n"
28321 " guestfs_mkmountpoint (guestfs_h *g,\n"
28322 "                       const char *exemptpath);\n"
28323 "\n"
28324
28325 #. type: textblock
28326 #: ../src/guestfs-actions.pod:4732
28327 msgid ""
28328 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28329 "that can be used to create extra mountpoints before mounting the first "
28330 "filesystem."
28331 msgstr ""
28332
28333 #. type: textblock
28334 #: ../src/guestfs-actions.pod:4756
28335 msgid ""
28336 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
28337 "may get unexpected errors if you try to mix these calls.  It is safest to "
28338 "manually unmount filesystems and remove mountpoints after use."
28339 msgstr ""
28340
28341 #. type: textblock
28342 #: ../src/guestfs-actions.pod:4760
28343 msgid ""
28344 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28345 "first, so for this to work for manual mountpoints, you must ensure that the "
28346 "innermost mountpoints have the longest pathnames, as in the example code "
28347 "above."
28348 msgstr ""
28349
28350 #. type: textblock
28351 #: ../src/guestfs-actions.pod:4767
28352 msgid ""
28353 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28354 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28355 "can also trigger these issues."
28356 msgstr ""
28357
28358 #. type: textblock
28359 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:5089
28360 #: ../src/guestfs-actions.pod:6099
28361 msgid "(Added in 1.0.62)"
28362 msgstr "(Додано у 1.0.62)"
28363
28364 #. type: =head2
28365 #: ../src/guestfs-actions.pod:4775
28366 msgid "guestfs_mknod"
28367 msgstr ""
28368
28369 #. type: verbatim
28370 #: ../src/guestfs-actions.pod:4777
28371 #, no-wrap
28372 msgid ""
28373 " int\n"
28374 " guestfs_mknod (guestfs_h *g,\n"
28375 "                int mode,\n"
28376 "                int devmajor,\n"
28377 "                int devminor,\n"
28378 "                const char *path);\n"
28379 "\n"
28380 msgstr ""
28381
28382 #. type: textblock
28383 #: ../src/guestfs-actions.pod:4792
28384 msgid ""
28385 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28386 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28387 "regular file).  These constants are available in the standard Linux header "
28388 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28389 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28390 "the appropriate constant for you."
28391 msgstr ""
28392
28393 #. type: =head2
28394 #: ../src/guestfs-actions.pod:4806
28395 msgid "guestfs_mknod_b"
28396 msgstr ""
28397
28398 #. type: verbatim
28399 #: ../src/guestfs-actions.pod:4808
28400 #, no-wrap
28401 msgid ""
28402 " int\n"
28403 " guestfs_mknod_b (guestfs_h *g,\n"
28404 "                  int mode,\n"
28405 "                  int devmajor,\n"
28406 "                  int devminor,\n"
28407 "                  const char *path);\n"
28408 "\n"
28409 msgstr ""
28410
28411 #. type: textblock
28412 #: ../src/guestfs-actions.pod:4815
28413 msgid ""
28414 "This call creates a block device node called C<path> with mode C<mode> and "
28415 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28416 "wrapper around C<guestfs_mknod>."
28417 msgstr ""
28418
28419 #. type: =head2
28420 #: ../src/guestfs-actions.pod:4825
28421 msgid "guestfs_mknod_c"
28422 msgstr ""
28423
28424 #. type: verbatim
28425 #: ../src/guestfs-actions.pod:4827
28426 #, no-wrap
28427 msgid ""
28428 " int\n"
28429 " guestfs_mknod_c (guestfs_h *g,\n"
28430 "                  int mode,\n"
28431 "                  int devmajor,\n"
28432 "                  int devminor,\n"
28433 "                  const char *path);\n"
28434 "\n"
28435 msgstr ""
28436
28437 #. type: textblock
28438 #: ../src/guestfs-actions.pod:4834
28439 msgid ""
28440 "This call creates a char device node called C<path> with mode C<mode> and "
28441 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28442 "wrapper around C<guestfs_mknod>."
28443 msgstr ""
28444
28445 #. type: =head2
28446 #: ../src/guestfs-actions.pod:4844
28447 msgid "guestfs_mkswap"
28448 msgstr ""
28449
28450 #. type: verbatim
28451 #: ../src/guestfs-actions.pod:4846
28452 #, no-wrap
28453 msgid ""
28454 " int\n"
28455 " guestfs_mkswap (guestfs_h *g,\n"
28456 "                 const char *device);\n"
28457 "\n"
28458 msgstr ""
28459
28460 #. type: =head2
28461 #: ../src/guestfs-actions.pod:4856
28462 msgid "guestfs_mkswap_L"
28463 msgstr ""
28464
28465 #. type: verbatim
28466 #: ../src/guestfs-actions.pod:4858
28467 #, no-wrap
28468 msgid ""
28469 " int\n"
28470 " guestfs_mkswap_L (guestfs_h *g,\n"
28471 "                   const char *label,\n"
28472 "                   const char *device);\n"
28473 "\n"
28474 msgstr ""
28475
28476 #. type: =head2
28477 #: ../src/guestfs-actions.pod:4873
28478 msgid "guestfs_mkswap_U"
28479 msgstr ""
28480
28481 #. type: verbatim
28482 #: ../src/guestfs-actions.pod:4875
28483 #, no-wrap
28484 msgid ""
28485 " int\n"
28486 " guestfs_mkswap_U (guestfs_h *g,\n"
28487 "                   const char *uuid,\n"
28488 "                   const char *device);\n"
28489 "\n"
28490 msgstr ""
28491
28492 #. type: =head2
28493 #: ../src/guestfs-actions.pod:4886
28494 msgid "guestfs_mkswap_file"
28495 msgstr ""
28496
28497 #. type: verbatim
28498 #: ../src/guestfs-actions.pod:4888
28499 #, no-wrap
28500 msgid ""
28501 " int\n"
28502 " guestfs_mkswap_file (guestfs_h *g,\n"
28503 "                      const char *path);\n"
28504 "\n"
28505 msgstr ""
28506
28507 #. type: textblock
28508 #: ../src/guestfs-actions.pod:4894
28509 msgid ""
28510 "This command just writes a swap file signature to an existing file.  To "
28511 "create the file itself, use something like C<guestfs_fallocate>."
28512 msgstr ""
28513
28514 #. type: =head2
28515 #: ../src/guestfs-actions.pod:4901
28516 msgid "guestfs_modprobe"
28517 msgstr ""
28518
28519 #. type: verbatim
28520 #: ../src/guestfs-actions.pod:4903
28521 #, no-wrap
28522 msgid ""
28523 " int\n"
28524 " guestfs_modprobe (guestfs_h *g,\n"
28525 "                   const char *modulename);\n"
28526 "\n"
28527 msgstr ""
28528
28529 #. type: =head2
28530 #: ../src/guestfs-actions.pod:4916
28531 msgid "guestfs_mount"
28532 msgstr ""
28533
28534 #. type: verbatim
28535 #: ../src/guestfs-actions.pod:4918
28536 #, no-wrap
28537 msgid ""
28538 " int\n"
28539 " guestfs_mount (guestfs_h *g,\n"
28540 "                const char *device,\n"
28541 "                const char *mountpoint);\n"
28542 "\n"
28543 msgstr ""
28544
28545 #. type: textblock
28546 #: ../src/guestfs-actions.pod:4923
28547 msgid ""
28548 "I<This function is deprecated.> In new code, use the L</"
28549 "guestfs_mount_options> call instead."
28550 msgstr ""
28551
28552 #. type: textblock
28553 #: ../src/guestfs-actions.pod:4944
28554 msgid ""
28555 "B<Important note:> When you use this call, the filesystem options C<sync> "
28556 "and C<noatime> are set implicitly.  This was originally done because we "
28557 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28558 "very large negative performance impact and negligible effect on "
28559 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
28560 "in any code that needs performance, and instead use C<guestfs_mount_options> "
28561 "(use an empty string for the first parameter if you don't want any options)."
28562 msgstr ""
28563
28564 #. type: =head2
28565 #: ../src/guestfs-actions.pod:4958
28566 msgid "guestfs_mount_9p"
28567 msgstr ""
28568
28569 #. type: verbatim
28570 #: ../src/guestfs-actions.pod:4960
28571 #, no-wrap
28572 msgid ""
28573 " int\n"
28574 " guestfs_mount_9p (guestfs_h *g,\n"
28575 "                   const char *mounttag,\n"
28576 "                   const char *mountpoint,\n"
28577 "                   ...);\n"
28578 "\n"
28579 msgstr ""
28580
28581 #. type: verbatim
28582 #: ../src/guestfs-actions.pod:4971
28583 #, no-wrap
28584 msgid ""
28585 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28586 "\n"
28587 msgstr ""
28588
28589 #. type: =head2
28590 #: ../src/guestfs-actions.pod:4984
28591 msgid "guestfs_mount_9p_va"
28592 msgstr ""
28593
28594 #. type: verbatim
28595 #: ../src/guestfs-actions.pod:4986
28596 #, no-wrap
28597 msgid ""
28598 " int\n"
28599 " guestfs_mount_9p_va (guestfs_h *g,\n"
28600 "                      const char *mounttag,\n"
28601 "                      const char *mountpoint,\n"
28602 "                      va_list args);\n"
28603 "\n"
28604 msgstr ""
28605
28606 #. type: textblock
28607 #: ../src/guestfs-actions.pod:4992
28608 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28609 msgstr ""
28610
28611 #. type: =head2
28612 #: ../src/guestfs-actions.pod:4996
28613 msgid "guestfs_mount_9p_argv"
28614 msgstr ""
28615
28616 #. type: verbatim
28617 #: ../src/guestfs-actions.pod:4998
28618 #, no-wrap
28619 msgid ""
28620 " int\n"
28621 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28622 "                        const char *mounttag,\n"
28623 "                        const char *mountpoint,\n"
28624 "                        const struct guestfs_mount_9p_argv *optargs);\n"
28625 "\n"
28626 msgstr ""
28627
28628 #. type: textblock
28629 #: ../src/guestfs-actions.pod:5004
28630 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28631 msgstr ""
28632
28633 #. type: =head2
28634 #: ../src/guestfs-actions.pod:5008
28635 msgid "guestfs_mount_loop"
28636 msgstr ""
28637
28638 #. type: verbatim
28639 #: ../src/guestfs-actions.pod:5010
28640 #, no-wrap
28641 msgid ""
28642 " int\n"
28643 " guestfs_mount_loop (guestfs_h *g,\n"
28644 "                     const char *file,\n"
28645 "                     const char *mountpoint);\n"
28646 "\n"
28647 msgstr ""
28648
28649 #. type: =head2
28650 #: ../src/guestfs-actions.pod:5023
28651 msgid "guestfs_mount_options"
28652 msgstr ""
28653
28654 #. type: verbatim
28655 #: ../src/guestfs-actions.pod:5025
28656 #, no-wrap
28657 msgid ""
28658 " int\n"
28659 " guestfs_mount_options (guestfs_h *g,\n"
28660 "                        const char *options,\n"
28661 "                        const char *device,\n"
28662 "                        const char *mountpoint);\n"
28663 "\n"
28664 msgstr ""
28665
28666 #. type: textblock
28667 #: ../src/guestfs-actions.pod:5031
28668 msgid ""
28669 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28670 "the mount options as for the L<mount(8)> I<-o> flag."
28671 msgstr ""
28672
28673 #. type: textblock
28674 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5055
28675 #: ../src/guestfs-actions.pod:5072
28676 msgid "(Added in 1.0.10)"
28677 msgstr ""
28678
28679 #. type: =head2
28680 #: ../src/guestfs-actions.pod:5043
28681 msgid "guestfs_mount_ro"
28682 msgstr ""
28683
28684 #. type: verbatim
28685 #: ../src/guestfs-actions.pod:5045
28686 #, no-wrap
28687 msgid ""
28688 " int\n"
28689 " guestfs_mount_ro (guestfs_h *g,\n"
28690 "                   const char *device,\n"
28691 "                   const char *mountpoint);\n"
28692 "\n"
28693 msgstr ""
28694
28695 #. type: textblock
28696 #: ../src/guestfs-actions.pod:5050
28697 msgid ""
28698 "This is the same as the C<guestfs_mount> command, but it mounts the "
28699 "filesystem with the read-only (I<-o ro>) flag."
28700 msgstr ""
28701
28702 #. type: =head2
28703 #: ../src/guestfs-actions.pod:5057
28704 msgid "guestfs_mount_vfs"
28705 msgstr ""
28706
28707 #. type: verbatim
28708 #: ../src/guestfs-actions.pod:5059
28709 #, no-wrap
28710 msgid ""
28711 " int\n"
28712 " guestfs_mount_vfs (guestfs_h *g,\n"
28713 "                    const char *options,\n"
28714 "                    const char *vfstype,\n"
28715 "                    const char *device,\n"
28716 "                    const char *mountpoint);\n"
28717 "\n"
28718 msgstr ""
28719
28720 #. type: textblock
28721 #: ../src/guestfs-actions.pod:5066
28722 msgid ""
28723 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28724 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
28725 "t> flags."
28726 msgstr ""
28727
28728 #. type: =head2
28729 #: ../src/guestfs-actions.pod:5074
28730 msgid "guestfs_mountpoints"
28731 msgstr ""
28732
28733 #. type: verbatim
28734 #: ../src/guestfs-actions.pod:5076
28735 #, no-wrap
28736 msgid ""
28737 " char **\n"
28738 " guestfs_mountpoints (guestfs_h *g);\n"
28739 "\n"
28740 msgstr ""
28741
28742 #. type: textblock
28743 #: ../src/guestfs-actions.pod:5079
28744 msgid ""
28745 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
28746 "devices.  This one returns a hash table (map) of device name to directory "
28747 "where the device is mounted."
28748 msgstr ""
28749
28750 #. type: =head2
28751 #: ../src/guestfs-actions.pod:5091
28752 msgid "guestfs_mounts"
28753 msgstr ""
28754
28755 #. type: verbatim
28756 #: ../src/guestfs-actions.pod:5093
28757 #, no-wrap
28758 msgid ""
28759 " char **\n"
28760 " guestfs_mounts (guestfs_h *g);\n"
28761 "\n"
28762 msgstr ""
28763
28764 #. type: textblock
28765 #: ../src/guestfs-actions.pod:5101
28766 msgid "See also: C<guestfs_mountpoints>"
28767 msgstr ""
28768
28769 #. type: =head2
28770 #: ../src/guestfs-actions.pod:5109
28771 msgid "guestfs_mv"
28772 msgstr ""
28773
28774 #. type: verbatim
28775 #: ../src/guestfs-actions.pod:5111
28776 #, no-wrap
28777 msgid ""
28778 " int\n"
28779 " guestfs_mv (guestfs_h *g,\n"
28780 "             const char *src,\n"
28781 "             const char *dest);\n"
28782 "\n"
28783 msgstr ""
28784
28785 #. type: =head2
28786 #: ../src/guestfs-actions.pod:5123
28787 msgid "guestfs_ntfs_3g_probe"
28788 msgstr ""
28789
28790 #. type: verbatim
28791 #: ../src/guestfs-actions.pod:5125
28792 #, no-wrap
28793 msgid ""
28794 " int\n"
28795 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28796 "                        int rw,\n"
28797 "                        const char *device);\n"
28798 "\n"
28799 msgstr ""
28800
28801 #. type: textblock
28802 #: ../src/guestfs-actions.pod:5144
28803 msgid "(Added in 1.0.43)"
28804 msgstr ""
28805
28806 #. type: =head2
28807 #: ../src/guestfs-actions.pod:5146
28808 msgid "guestfs_ntfsresize"
28809 msgstr ""
28810
28811 #. type: verbatim
28812 #: ../src/guestfs-actions.pod:5148
28813 #, no-wrap
28814 msgid ""
28815 " int\n"
28816 " guestfs_ntfsresize (guestfs_h *g,\n"
28817 "                     const char *device);\n"
28818 "\n"
28819 msgstr ""
28820
28821 #. type: textblock
28822 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5252
28823 msgid ""
28824 "I<This function is deprecated.> In new code, use the L</"
28825 "guestfs_ntfsresize_opts> call instead."
28826 msgstr ""
28827
28828 #. type: =head2
28829 #: ../src/guestfs-actions.pod:5176
28830 msgid "guestfs_ntfsresize_opts"
28831 msgstr ""
28832
28833 #. type: verbatim
28834 #: ../src/guestfs-actions.pod:5178
28835 #, no-wrap
28836 msgid ""
28837 " int\n"
28838 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28839 "                          const char *device,\n"
28840 "                          ...);\n"
28841 "\n"
28842 msgstr ""
28843
28844 #. type: verbatim
28845 #: ../src/guestfs-actions.pod:5188
28846 #, no-wrap
28847 msgid ""
28848 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28849 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28850 "\n"
28851 msgstr ""
28852
28853 #. type: textblock
28854 #: ../src/guestfs-actions.pod:5208
28855 msgid ""
28856 "After the resize operation, the filesystem is always marked as requiring a "
28857 "consistency check (for safety).  You have to boot into Windows to perform "
28858 "this check and clear this condition.  If you I<don't> set the C<force> "
28859 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
28860 "times on a single filesystem without booting into Windows between each "
28861 "resize."
28862 msgstr ""
28863
28864 #. type: =head2
28865 #: ../src/guestfs-actions.pod:5223
28866 msgid "guestfs_ntfsresize_opts_va"
28867 msgstr ""
28868
28869 #. type: verbatim
28870 #: ../src/guestfs-actions.pod:5225
28871 #, no-wrap
28872 msgid ""
28873 " int\n"
28874 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
28875 "                             const char *device,\n"
28876 "                             va_list args);\n"
28877 "\n"
28878 msgstr ""
28879
28880 #. type: textblock
28881 #: ../src/guestfs-actions.pod:5230
28882 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
28883 msgstr ""
28884
28885 #. type: =head2
28886 #: ../src/guestfs-actions.pod:5234
28887 msgid "guestfs_ntfsresize_opts_argv"
28888 msgstr ""
28889
28890 #. type: verbatim
28891 #: ../src/guestfs-actions.pod:5236
28892 #, no-wrap
28893 msgid ""
28894 " int\n"
28895 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
28896 "                               const char *device,\n"
28897 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
28898 "\n"
28899 msgstr ""
28900
28901 #. type: textblock
28902 #: ../src/guestfs-actions.pod:5241
28903 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
28904 msgstr ""
28905
28906 #. type: =head2
28907 #: ../src/guestfs-actions.pod:5245
28908 msgid "guestfs_ntfsresize_size"
28909 msgstr ""
28910
28911 #. type: verbatim
28912 #: ../src/guestfs-actions.pod:5247
28913 #, no-wrap
28914 msgid ""
28915 " int\n"
28916 " guestfs_ntfsresize_size (guestfs_h *g,\n"
28917 "                          const char *device,\n"
28918 "                          int64_t size);\n"
28919 "\n"
28920 msgstr ""
28921
28922 #. type: textblock
28923 #: ../src/guestfs-actions.pod:5259
28924 msgid ""
28925 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
28926 "to specify the new size (in bytes) explicitly."
28927 msgstr ""
28928
28929 #. type: textblock
28930 #: ../src/guestfs-actions.pod:5264 ../src/guestfs-actions.pod:5706
28931 #: ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:6047
28932 #: ../src/guestfs-actions.pod:7670
28933 msgid "(Added in 1.3.14)"
28934 msgstr ""
28935
28936 #. type: =head2
28937 #: ../src/guestfs-actions.pod:5266
28938 msgid "guestfs_part_add"
28939 msgstr ""
28940
28941 #. type: verbatim
28942 #: ../src/guestfs-actions.pod:5268
28943 #, no-wrap
28944 msgid ""
28945 " int\n"
28946 " guestfs_part_add (guestfs_h *g,\n"
28947 "                   const char *device,\n"
28948 "                   const char *prlogex,\n"
28949 "                   int64_t startsect,\n"
28950 "                   int64_t endsect);\n"
28951 "\n"
28952 msgstr ""
28953
28954 #. type: textblock
28955 #: ../src/guestfs-actions.pod:5275
28956 msgid ""
28957 "This command adds a partition to C<device>.  If there is no partition table "
28958 "on the device, call C<guestfs_part_init> first."
28959 msgstr ""
28960
28961 #. type: textblock
28962 #: ../src/guestfs-actions.pod:5287
28963 msgid ""
28964 "Creating a partition which covers the whole disk is not so easy.  Use "
28965 "C<guestfs_part_disk> to do that."
28966 msgstr ""
28967
28968 #. type: textblock
28969 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5330
28970 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5467
28971 #: ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5524
28972 #: ../src/guestfs-actions.pod:5564
28973 msgid "(Added in 1.0.78)"
28974 msgstr ""
28975
28976 #. type: =head2
28977 #: ../src/guestfs-actions.pod:5294
28978 msgid "guestfs_part_del"
28979 msgstr ""
28980
28981 #. type: verbatim
28982 #: ../src/guestfs-actions.pod:5296
28983 #, no-wrap
28984 msgid ""
28985 " int\n"
28986 " guestfs_part_del (guestfs_h *g,\n"
28987 "                   const char *device,\n"
28988 "                   int partnum);\n"
28989 "\n"
28990 msgstr ""
28991
28992 #. type: =head2
28993 #: ../src/guestfs-actions.pod:5311
28994 msgid "guestfs_part_disk"
28995 msgstr ""
28996
28997 #. type: verbatim
28998 #: ../src/guestfs-actions.pod:5313
28999 #, no-wrap
29000 msgid ""
29001 " int\n"
29002 " guestfs_part_disk (guestfs_h *g,\n"
29003 "                    const char *device,\n"
29004 "                    const char *parttype);\n"
29005 "\n"
29006 msgstr ""
29007
29008 #. type: textblock
29009 #: ../src/guestfs-actions.pod:5318
29010 msgid ""
29011 "This command is simply a combination of C<guestfs_part_init> followed by "
29012 "C<guestfs_part_add> to create a single primary partition covering the whole "
29013 "disk."
29014 msgstr ""
29015
29016 #. type: textblock
29017 #: ../src/guestfs-actions.pod:5322
29018 msgid ""
29019 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29020 "possible values are described in C<guestfs_part_init>."
29021 msgstr ""
29022
29023 #. type: =head2
29024 #: ../src/guestfs-actions.pod:5332
29025 msgid "guestfs_part_get_bootable"
29026 msgstr ""
29027
29028 #. type: verbatim
29029 #: ../src/guestfs-actions.pod:5334
29030 #, no-wrap
29031 msgid ""
29032 " int\n"
29033 " guestfs_part_get_bootable (guestfs_h *g,\n"
29034 "                            const char *device,\n"
29035 "                            int partnum);\n"
29036 "\n"
29037 msgstr ""
29038
29039 #. type: textblock
29040 #: ../src/guestfs-actions.pod:5342
29041 msgid "See also C<guestfs_part_set_bootable>."
29042 msgstr ""
29043
29044 #. type: =head2
29045 #: ../src/guestfs-actions.pod:5348
29046 msgid "guestfs_part_get_mbr_id"
29047 msgstr ""
29048
29049 #. type: verbatim
29050 #: ../src/guestfs-actions.pod:5350
29051 #, no-wrap
29052 msgid ""
29053 " int\n"
29054 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29055 "                          const char *device,\n"
29056 "                          int partnum);\n"
29057 "\n"
29058 msgstr ""
29059
29060 #. type: textblock
29061 #: ../src/guestfs-actions.pod:5358 ../src/guestfs-actions.pod:5540
29062 msgid ""
29063 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29064 "undefined results for other partition table types (see "
29065 "C<guestfs_part_get_parttype>)."
29066 msgstr ""
29067
29068 #. type: =head2
29069 #: ../src/guestfs-actions.pod:5366
29070 msgid "guestfs_part_get_parttype"
29071 msgstr ""
29072
29073 #. type: verbatim
29074 #: ../src/guestfs-actions.pod:5368
29075 #, no-wrap
29076 msgid ""
29077 " char *\n"
29078 " guestfs_part_get_parttype (guestfs_h *g,\n"
29079 "                            const char *device);\n"
29080 "\n"
29081 msgstr ""
29082
29083 #. type: textblock
29084 #: ../src/guestfs-actions.pod:5375
29085 msgid ""
29086 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29087 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29088 "possible, although unusual.  See C<guestfs_part_init> for a full list."
29089 msgstr ""
29090
29091 #. type: =head2
29092 #: ../src/guestfs-actions.pod:5385
29093 msgid "guestfs_part_init"
29094 msgstr ""
29095
29096 #. type: verbatim
29097 #: ../src/guestfs-actions.pod:5387
29098 #, no-wrap
29099 msgid ""
29100 " int\n"
29101 " guestfs_part_init (guestfs_h *g,\n"
29102 "                    const char *device,\n"
29103 "                    const char *parttype);\n"
29104 "\n"
29105 msgstr ""
29106
29107 #. type: textblock
29108 #: ../src/guestfs-actions.pod:5396
29109 msgid ""
29110 "Initially there are no partitions.  Following this, you should call "
29111 "C<guestfs_part_add> for each partition required."
29112 msgstr ""
29113
29114 #. type: =head2
29115 #: ../src/guestfs-actions.pod:5469
29116 msgid "guestfs_part_list"
29117 msgstr "guestfs_part_list"
29118
29119 #. type: verbatim
29120 #: ../src/guestfs-actions.pod:5471
29121 #, no-wrap
29122 msgid ""
29123 " struct guestfs_partition_list *\n"
29124 " guestfs_part_list (guestfs_h *g,\n"
29125 "                    const char *device);\n"
29126 "\n"
29127 msgstr ""
29128 " struct guestfs_partition_list *\n"
29129 " guestfs_part_list (guestfs_h *g,\n"
29130 "                    const char *device);\n"
29131 "\n"
29132
29133 #. type: textblock
29134 #: ../src/guestfs-actions.pod:5488
29135 msgid ""
29136 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29137 "the device's sector size, see C<guestfs_blockdev_getss>."
29138 msgstr ""
29139
29140 #. type: textblock
29141 #: ../src/guestfs-actions.pod:5501
29142 msgid ""
29143 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29144 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29145 "use>."
29146 msgstr ""
29147
29148 #. type: =head2
29149 #: ../src/guestfs-actions.pod:5507
29150 msgid "guestfs_part_set_bootable"
29151 msgstr ""
29152
29153 #. type: verbatim
29154 #: ../src/guestfs-actions.pod:5509
29155 #, no-wrap
29156 msgid ""
29157 " int\n"
29158 " guestfs_part_set_bootable (guestfs_h *g,\n"
29159 "                            const char *device,\n"
29160 "                            int partnum,\n"
29161 "                            int bootable);\n"
29162 "\n"
29163 msgstr ""
29164
29165 #. type: =head2
29166 #: ../src/guestfs-actions.pod:5526
29167 msgid "guestfs_part_set_mbr_id"
29168 msgstr ""
29169
29170 #. type: verbatim
29171 #: ../src/guestfs-actions.pod:5528
29172 #, no-wrap
29173 msgid ""
29174 " int\n"
29175 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29176 "                          const char *device,\n"
29177 "                          int partnum,\n"
29178 "                          int idbyte);\n"
29179 "\n"
29180 msgstr ""
29181
29182 #. type: =head2
29183 #: ../src/guestfs-actions.pod:5548
29184 msgid "guestfs_part_set_name"
29185 msgstr ""
29186
29187 #. type: verbatim
29188 #: ../src/guestfs-actions.pod:5550
29189 #, no-wrap
29190 msgid ""
29191 " int\n"
29192 " guestfs_part_set_name (guestfs_h *g,\n"
29193 "                        const char *device,\n"
29194 "                        int partnum,\n"
29195 "                        const char *name);\n"
29196 "\n"
29197 msgstr ""
29198
29199 #. type: =head2
29200 #: ../src/guestfs-actions.pod:5566
29201 msgid "guestfs_part_to_dev"
29202 msgstr ""
29203
29204 #. type: verbatim
29205 #: ../src/guestfs-actions.pod:5568
29206 #, no-wrap
29207 msgid ""
29208 " char *\n"
29209 " guestfs_part_to_dev (guestfs_h *g,\n"
29210 "                      const char *partition);\n"
29211 "\n"
29212 msgstr ""
29213
29214 #. type: textblock
29215 #: ../src/guestfs-actions.pod:5576
29216 msgid ""
29217 "The named partition must exist, for example as a string returned from "
29218 "C<guestfs_list_partitions>."
29219 msgstr ""
29220
29221 #. type: =head2
29222 #: ../src/guestfs-actions.pod:5584
29223 msgid "guestfs_ping_daemon"
29224 msgstr ""
29225
29226 #. type: verbatim
29227 #: ../src/guestfs-actions.pod:5586
29228 #, no-wrap
29229 msgid ""
29230 " int\n"
29231 " guestfs_ping_daemon (guestfs_h *g);\n"
29232 "\n"
29233 msgstr ""
29234
29235 #. type: =head2
29236 #: ../src/guestfs-actions.pod:5598
29237 msgid "guestfs_pread"
29238 msgstr ""
29239
29240 #. type: verbatim
29241 #: ../src/guestfs-actions.pod:5600
29242 #, no-wrap
29243 msgid ""
29244 " char *\n"
29245 " guestfs_pread (guestfs_h *g,\n"
29246 "                const char *path,\n"
29247 "                int count,\n"
29248 "                int64_t offset,\n"
29249 "                size_t *size_r);\n"
29250 "\n"
29251 msgstr ""
29252
29253 #. type: textblock
29254 #: ../src/guestfs-actions.pod:5613
29255 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29256 msgstr ""
29257
29258 #. type: =head2
29259 #: ../src/guestfs-actions.pod:5624
29260 msgid "guestfs_pread_device"
29261 msgstr ""
29262
29263 #. type: verbatim
29264 #: ../src/guestfs-actions.pod:5626
29265 #, no-wrap
29266 msgid ""
29267 " char *\n"
29268 " guestfs_pread_device (guestfs_h *g,\n"
29269 "                       const char *device,\n"
29270 "                       int count,\n"
29271 "                       int64_t offset,\n"
29272 "                       size_t *size_r);\n"
29273 "\n"
29274 msgstr ""
29275
29276 #. type: textblock
29277 #: ../src/guestfs-actions.pod:5639
29278 msgid "See also C<guestfs_pread>."
29279 msgstr ""
29280
29281 #. type: textblock
29282 #: ../src/guestfs-actions.pod:5648
29283 msgid "(Added in 1.5.21)"
29284 msgstr ""
29285
29286 #. type: =head2
29287 #: ../src/guestfs-actions.pod:5650
29288 msgid "guestfs_pvcreate"
29289 msgstr ""
29290
29291 #. type: verbatim
29292 #: ../src/guestfs-actions.pod:5652
29293 #, no-wrap
29294 msgid ""
29295 " int\n"
29296 " guestfs_pvcreate (guestfs_h *g,\n"
29297 "                   const char *device);\n"
29298 "\n"
29299 msgstr ""
29300
29301 #. type: =head2
29302 #: ../src/guestfs-actions.pod:5664
29303 msgid "guestfs_pvremove"
29304 msgstr ""
29305
29306 #. type: verbatim
29307 #: ../src/guestfs-actions.pod:5666
29308 #, no-wrap
29309 msgid ""
29310 " int\n"
29311 " guestfs_pvremove (guestfs_h *g,\n"
29312 "                   const char *device);\n"
29313 "\n"
29314 msgstr ""
29315
29316 #. type: =head2
29317 #: ../src/guestfs-actions.pod:5681
29318 msgid "guestfs_pvresize"
29319 msgstr ""
29320
29321 #. type: verbatim
29322 #: ../src/guestfs-actions.pod:5683
29323 #, no-wrap
29324 msgid ""
29325 " int\n"
29326 " guestfs_pvresize (guestfs_h *g,\n"
29327 "                   const char *device);\n"
29328 "\n"
29329 msgstr ""
29330
29331 #. type: =head2
29332 #: ../src/guestfs-actions.pod:5694
29333 msgid "guestfs_pvresize_size"
29334 msgstr ""
29335
29336 #. type: verbatim
29337 #: ../src/guestfs-actions.pod:5696
29338 #, no-wrap
29339 msgid ""
29340 " int\n"
29341 " guestfs_pvresize_size (guestfs_h *g,\n"
29342 "                        const char *device,\n"
29343 "                        int64_t size);\n"
29344 "\n"
29345 msgstr ""
29346
29347 #. type: textblock
29348 #: ../src/guestfs-actions.pod:5701
29349 msgid ""
29350 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29351 "specify the new size (in bytes) explicitly."
29352 msgstr ""
29353
29354 #. type: =head2
29355 #: ../src/guestfs-actions.pod:5708
29356 msgid "guestfs_pvs"
29357 msgstr ""
29358
29359 #. type: verbatim
29360 #: ../src/guestfs-actions.pod:5710
29361 #, no-wrap
29362 msgid ""
29363 " char **\n"
29364 " guestfs_pvs (guestfs_h *g);\n"
29365 "\n"
29366 msgstr ""
29367
29368 #. type: textblock
29369 #: ../src/guestfs-actions.pod:5719
29370 msgid "See also C<guestfs_pvs_full>."
29371 msgstr ""
29372
29373 #. type: =head2
29374 #: ../src/guestfs-actions.pod:5727
29375 msgid "guestfs_pvs_full"
29376 msgstr ""
29377
29378 #. type: verbatim
29379 #: ../src/guestfs-actions.pod:5729
29380 #, no-wrap
29381 msgid ""
29382 " struct guestfs_lvm_pv_list *\n"
29383 " guestfs_pvs_full (guestfs_h *g);\n"
29384 "\n"
29385 msgstr ""
29386
29387 #. type: textblock
29388 #: ../src/guestfs-actions.pod:5735
29389 msgid ""
29390 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29391 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29392 msgstr ""
29393
29394 #. type: =head2
29395 #: ../src/guestfs-actions.pod:5741
29396 msgid "guestfs_pvuuid"
29397 msgstr ""
29398
29399 #. type: verbatim
29400 #: ../src/guestfs-actions.pod:5743
29401 #, no-wrap
29402 msgid ""
29403 " char *\n"
29404 " guestfs_pvuuid (guestfs_h *g,\n"
29405 "                 const char *device);\n"
29406 "\n"
29407 msgstr ""
29408
29409 #. type: =head2
29410 #: ../src/guestfs-actions.pod:5754
29411 msgid "guestfs_pwrite"
29412 msgstr ""
29413
29414 #. type: verbatim
29415 #: ../src/guestfs-actions.pod:5756
29416 #, no-wrap
29417 msgid ""
29418 " int\n"
29419 " guestfs_pwrite (guestfs_h *g,\n"
29420 "                 const char *path,\n"
29421 "                 const char *content,\n"
29422 "                 size_t content_size,\n"
29423 "                 int64_t offset);\n"
29424 "\n"
29425 msgstr ""
29426
29427 #. type: textblock
29428 #: ../src/guestfs-actions.pod:5772
29429 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29430 msgstr ""
29431
29432 #. type: =head2
29433 #: ../src/guestfs-actions.pod:5781
29434 msgid "guestfs_pwrite_device"
29435 msgstr ""
29436
29437 #. type: verbatim
29438 #: ../src/guestfs-actions.pod:5783
29439 #, no-wrap
29440 msgid ""
29441 " int\n"
29442 " guestfs_pwrite_device (guestfs_h *g,\n"
29443 "                        const char *device,\n"
29444 "                        const char *content,\n"
29445 "                        size_t content_size,\n"
29446 "                        int64_t offset);\n"
29447 "\n"
29448 msgstr ""
29449
29450 #. type: textblock
29451 #: ../src/guestfs-actions.pod:5798
29452 msgid "See also C<guestfs_pwrite>."
29453 msgstr ""
29454
29455 #. type: textblock
29456 #: ../src/guestfs-actions.pod:5805
29457 msgid "(Added in 1.5.20)"
29458 msgstr ""
29459
29460 #. type: =head2
29461 #: ../src/guestfs-actions.pod:5807
29462 msgid "guestfs_read_file"
29463 msgstr ""
29464
29465 #. type: verbatim
29466 #: ../src/guestfs-actions.pod:5809
29467 #, no-wrap
29468 msgid ""
29469 " char *\n"
29470 " guestfs_read_file (guestfs_h *g,\n"
29471 "                    const char *path,\n"
29472 "                    size_t *size_r);\n"
29473 "\n"
29474 msgstr ""
29475
29476 #. type: textblock
29477 #: ../src/guestfs-actions.pod:5817
29478 msgid ""
29479 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29480 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
29481 "function is limited in the total size of file that can be handled."
29482 msgstr ""
29483
29484 #. type: textblock
29485 #: ../src/guestfs-actions.pod:5829
29486 msgid "(Added in 1.0.63)"
29487 msgstr ""
29488
29489 #. type: =head2
29490 #: ../src/guestfs-actions.pod:5831
29491 msgid "guestfs_read_lines"
29492 msgstr ""
29493
29494 #. type: verbatim
29495 #: ../src/guestfs-actions.pod:5833
29496 #, no-wrap
29497 msgid ""
29498 " char **\n"
29499 " guestfs_read_lines (guestfs_h *g,\n"
29500 "                     const char *path);\n"
29501 "\n"
29502 msgstr ""
29503
29504 #. type: textblock
29505 #: ../src/guestfs-actions.pod:5842
29506 msgid ""
29507 "Note that this function cannot correctly handle binary files (specifically, "
29508 "files containing C<\\0> character which is treated as end of line).  For "
29509 "those you need to use the C<guestfs_read_file> function which has a more "
29510 "complex interface."
29511 msgstr ""
29512
29513 #. type: =head2
29514 #: ../src/guestfs-actions.pod:5853
29515 msgid "guestfs_readdir"
29516 msgstr ""
29517
29518 #. type: verbatim
29519 #: ../src/guestfs-actions.pod:5855
29520 #, no-wrap
29521 msgid ""
29522 " struct guestfs_dirent_list *\n"
29523 " guestfs_readdir (guestfs_h *g,\n"
29524 "                  const char *dir);\n"
29525 "\n"
29526 msgstr ""
29527
29528 #. type: textblock
29529 #: ../src/guestfs-actions.pod:5909
29530 msgid ""
29531 "This function is primarily intended for use by programs.  To get a simple "
29532 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
29533 "consumption, use C<guestfs_ll>."
29534 msgstr ""
29535
29536 #. type: textblock
29537 #: ../src/guestfs-actions.pod:5913
29538 msgid ""
29539 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29540 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
29541 msgstr ""
29542
29543 #. type: =head2
29544 #: ../src/guestfs-actions.pod:5919
29545 msgid "guestfs_readlink"
29546 msgstr ""
29547
29548 #. type: verbatim
29549 #: ../src/guestfs-actions.pod:5921
29550 #, no-wrap
29551 msgid ""
29552 " char *\n"
29553 " guestfs_readlink (guestfs_h *g,\n"
29554 "                   const char *path);\n"
29555 "\n"
29556 msgstr ""
29557
29558 #. type: =head2
29559 #: ../src/guestfs-actions.pod:5932
29560 msgid "guestfs_readlinklist"
29561 msgstr ""
29562
29563 #. type: verbatim
29564 #: ../src/guestfs-actions.pod:5934
29565 #, no-wrap
29566 msgid ""
29567 " char **\n"
29568 " guestfs_readlinklist (guestfs_h *g,\n"
29569 "                       const char *path,\n"
29570 "                       char *const *names);\n"
29571 "\n"
29572 msgstr ""
29573
29574 #. type: =head2
29575 #: ../src/guestfs-actions.pod:5967
29576 msgid "guestfs_realpath"
29577 msgstr ""
29578
29579 #. type: verbatim
29580 #: ../src/guestfs-actions.pod:5969
29581 #, no-wrap
29582 msgid ""
29583 " char *\n"
29584 " guestfs_realpath (guestfs_h *g,\n"
29585 "                   const char *path);\n"
29586 "\n"
29587 msgstr ""
29588
29589 #. type: =head2
29590 #: ../src/guestfs-actions.pod:5981
29591 msgid "guestfs_removexattr"
29592 msgstr ""
29593
29594 #. type: verbatim
29595 #: ../src/guestfs-actions.pod:5983
29596 #, no-wrap
29597 msgid ""
29598 " int\n"
29599 " guestfs_removexattr (guestfs_h *g,\n"
29600 "                      const char *xattr,\n"
29601 "                      const char *path);\n"
29602 "\n"
29603 msgstr ""
29604
29605 #. type: textblock
29606 #: ../src/guestfs-actions.pod:5991
29607 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29608 msgstr ""
29609
29610 #. type: =head2
29611 #: ../src/guestfs-actions.pod:5997
29612 msgid "guestfs_resize2fs"
29613 msgstr ""
29614
29615 #. type: verbatim
29616 #: ../src/guestfs-actions.pod:5999
29617 #, no-wrap
29618 msgid ""
29619 " int\n"
29620 " guestfs_resize2fs (guestfs_h *g,\n"
29621 "                    const char *device);\n"
29622 "\n"
29623 msgstr ""
29624
29625 #. type: textblock
29626 #: ../src/guestfs-actions.pod:6006
29627 msgid ""
29628 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29629 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
29630 "sometimes gives an error about this and sometimes not.  In any case, it is "
29631 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29632 msgstr ""
29633
29634 #. type: =head2
29635 #: ../src/guestfs-actions.pod:6016
29636 msgid "guestfs_resize2fs_M"
29637 msgstr ""
29638
29639 #. type: verbatim
29640 #: ../src/guestfs-actions.pod:6018
29641 #, no-wrap
29642 msgid ""
29643 " int\n"
29644 " guestfs_resize2fs_M (guestfs_h *g,\n"
29645 "                      const char *device);\n"
29646 "\n"
29647 msgstr ""
29648
29649 #. type: textblock
29650 #: ../src/guestfs-actions.pod:6022
29651 msgid ""
29652 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29653 "resized to its minimum size.  This works like the I<-M> option to the "
29654 "C<resize2fs> command."
29655 msgstr ""
29656
29657 #. type: textblock
29658 #: ../src/guestfs-actions.pod:6026
29659 msgid ""
29660 "To get the resulting size of the filesystem you should call "
29661 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
29662 "These two numbers, multiplied together, give the resulting size of the "
29663 "minimal filesystem in bytes."
29664 msgstr ""
29665
29666 #. type: =head2
29667 #: ../src/guestfs-actions.pod:6035
29668 msgid "guestfs_resize2fs_size"
29669 msgstr ""
29670
29671 #. type: verbatim
29672 #: ../src/guestfs-actions.pod:6037
29673 #, no-wrap
29674 msgid ""
29675 " int\n"
29676 " guestfs_resize2fs_size (guestfs_h *g,\n"
29677 "                         const char *device,\n"
29678 "                         int64_t size);\n"
29679 "\n"
29680 msgstr ""
29681
29682 #. type: textblock
29683 #: ../src/guestfs-actions.pod:6042
29684 msgid ""
29685 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29686 "to specify the new size (in bytes) explicitly."
29687 msgstr ""
29688
29689 #. type: =head2
29690 #: ../src/guestfs-actions.pod:6049
29691 msgid "guestfs_rm"
29692 msgstr ""
29693
29694 #. type: verbatim
29695 #: ../src/guestfs-actions.pod:6051
29696 #, no-wrap
29697 msgid ""
29698 " int\n"
29699 " guestfs_rm (guestfs_h *g,\n"
29700 "             const char *path);\n"
29701 "\n"
29702 msgstr ""
29703
29704 #. type: =head2
29705 #: ../src/guestfs-actions.pod:6061
29706 msgid "guestfs_rm_rf"
29707 msgstr ""
29708
29709 #. type: verbatim
29710 #: ../src/guestfs-actions.pod:6063
29711 #, no-wrap
29712 msgid ""
29713 " int\n"
29714 " guestfs_rm_rf (guestfs_h *g,\n"
29715 "                const char *path);\n"
29716 "\n"
29717 msgstr ""
29718
29719 #. type: =head2
29720 #: ../src/guestfs-actions.pod:6075
29721 msgid "guestfs_rmdir"
29722 msgstr ""
29723
29724 #. type: verbatim
29725 #: ../src/guestfs-actions.pod:6077
29726 #, no-wrap
29727 msgid ""
29728 " int\n"
29729 " guestfs_rmdir (guestfs_h *g,\n"
29730 "                const char *path);\n"
29731 "\n"
29732 msgstr ""
29733
29734 #. type: =head2
29735 #: ../src/guestfs-actions.pod:6087
29736 msgid "guestfs_rmmountpoint"
29737 msgstr ""
29738
29739 #. type: verbatim
29740 #: ../src/guestfs-actions.pod:6089
29741 #, no-wrap
29742 msgid ""
29743 " int\n"
29744 " guestfs_rmmountpoint (guestfs_h *g,\n"
29745 "                       const char *exemptpath);\n"
29746 "\n"
29747 msgstr ""
29748
29749 #. type: textblock
29750 #: ../src/guestfs-actions.pod:6093
29751 msgid ""
29752 "This calls removes a mountpoint that was previously created with "
29753 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
29754 msgstr ""
29755
29756 #. type: =head2
29757 #: ../src/guestfs-actions.pod:6101
29758 msgid "guestfs_scrub_device"
29759 msgstr ""
29760
29761 #. type: verbatim
29762 #: ../src/guestfs-actions.pod:6103
29763 #, no-wrap
29764 msgid ""
29765 " int\n"
29766 " guestfs_scrub_device (guestfs_h *g,\n"
29767 "                       const char *device);\n"
29768 "\n"
29769 msgstr ""
29770
29771 #. type: textblock
29772 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6136
29773 #: ../src/guestfs-actions.pod:6155
29774 msgid "(Added in 1.0.52)"
29775 msgstr ""
29776
29777 #. type: =head2
29778 #: ../src/guestfs-actions.pod:6120
29779 msgid "guestfs_scrub_file"
29780 msgstr ""
29781
29782 #. type: verbatim
29783 #: ../src/guestfs-actions.pod:6122
29784 #, no-wrap
29785 msgid ""
29786 " int\n"
29787 " guestfs_scrub_file (guestfs_h *g,\n"
29788 "                     const char *file);\n"
29789 "\n"
29790 msgstr ""
29791
29792 #. type: =head2
29793 #: ../src/guestfs-actions.pod:6138
29794 msgid "guestfs_scrub_freespace"
29795 msgstr ""
29796
29797 #. type: verbatim
29798 #: ../src/guestfs-actions.pod:6140
29799 #, no-wrap
29800 msgid ""
29801 " int\n"
29802 " guestfs_scrub_freespace (guestfs_h *g,\n"
29803 "                          const char *dir);\n"
29804 "\n"
29805 msgstr ""
29806
29807 #. type: textblock
29808 #: ../src/guestfs-actions.pod:6144
29809 msgid ""
29810 "This command creates the directory C<dir> and then fills it with files until "
29811 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29812 "and deletes them.  The intention is to scrub any free space on the partition "
29813 "containing C<dir>."
29814 msgstr ""
29815
29816 #. type: =head2
29817 #: ../src/guestfs-actions.pod:6157
29818 msgid "guestfs_set_append"
29819 msgstr ""
29820
29821 #. type: verbatim
29822 #: ../src/guestfs-actions.pod:6159
29823 #, no-wrap
29824 msgid ""
29825 " int\n"
29826 " guestfs_set_append (guestfs_h *g,\n"
29827 "                     const char *append);\n"
29828 "\n"
29829 msgstr ""
29830
29831 #. type: =head2
29832 #: ../src/guestfs-actions.pod:6176
29833 msgid "guestfs_set_attach_method"
29834 msgstr ""
29835
29836 #. type: verbatim
29837 #: ../src/guestfs-actions.pod:6178
29838 #, no-wrap
29839 msgid ""
29840 " int\n"
29841 " guestfs_set_attach_method (guestfs_h *g,\n"
29842 "                            const char *attachmethod);\n"
29843 "\n"
29844 msgstr ""
29845
29846 #. type: =head2
29847 #: ../src/guestfs-actions.pod:6206
29848 msgid "guestfs_set_autosync"
29849 msgstr ""
29850
29851 #. type: verbatim
29852 #: ../src/guestfs-actions.pod:6208
29853 #, no-wrap
29854 msgid ""
29855 " int\n"
29856 " guestfs_set_autosync (guestfs_h *g,\n"
29857 "                       int autosync);\n"
29858 "\n"
29859 msgstr ""
29860
29861 #. type: =head2
29862 #: ../src/guestfs-actions.pod:6224
29863 msgid "guestfs_set_direct"
29864 msgstr ""
29865
29866 #. type: verbatim
29867 #: ../src/guestfs-actions.pod:6226
29868 #, no-wrap
29869 msgid ""
29870 " int\n"
29871 " guestfs_set_direct (guestfs_h *g,\n"
29872 "                     int direct);\n"
29873 "\n"
29874 msgstr ""
29875
29876 #. type: textblock
29877 #: ../src/guestfs-actions.pod:6234
29878 msgid ""
29879 "One consequence of this is that log messages aren't caught by the library "
29880 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
29881 "stdout."
29882 msgstr ""
29883
29884 #. type: =head2
29885 #: ../src/guestfs-actions.pod:6247
29886 msgid "guestfs_set_e2label"
29887 msgstr ""
29888
29889 #. type: verbatim
29890 #: ../src/guestfs-actions.pod:6249
29891 #, no-wrap
29892 msgid ""
29893 " int\n"
29894 " guestfs_set_e2label (guestfs_h *g,\n"
29895 "                      const char *device,\n"
29896 "                      const char *label);\n"
29897 "\n"
29898 msgstr ""
29899
29900 #. type: textblock
29901 #: ../src/guestfs-actions.pod:6258
29902 msgid ""
29903 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
29904 "the existing label on a filesystem."
29905 msgstr ""
29906
29907 #. type: =head2
29908 #: ../src/guestfs-actions.pod:6265
29909 msgid "guestfs_set_e2uuid"
29910 msgstr ""
29911
29912 #. type: verbatim
29913 #: ../src/guestfs-actions.pod:6267
29914 #, no-wrap
29915 msgid ""
29916 " int\n"
29917 " guestfs_set_e2uuid (guestfs_h *g,\n"
29918 "                     const char *device,\n"
29919 "                     const char *uuid);\n"
29920 "\n"
29921 msgstr ""
29922
29923 #. type: textblock
29924 #: ../src/guestfs-actions.pod:6277
29925 msgid ""
29926 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
29927 "the existing UUID of a filesystem."
29928 msgstr ""
29929
29930 #. type: =head2
29931 #: ../src/guestfs-actions.pod:6284
29932 msgid "guestfs_set_memsize"
29933 msgstr ""
29934
29935 #. type: verbatim
29936 #: ../src/guestfs-actions.pod:6286
29937 #, no-wrap
29938 msgid ""
29939 " int\n"
29940 " guestfs_set_memsize (guestfs_h *g,\n"
29941 "                      int memsize);\n"
29942 "\n"
29943 msgstr ""
29944
29945 #. type: textblock
29946 #: ../src/guestfs-actions.pod:6290
29947 msgid ""
29948 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
29949 "This only has any effect if called before C<guestfs_launch>."
29950 msgstr ""
29951
29952 #. type: =head2
29953 #: ../src/guestfs-actions.pod:6305
29954 msgid "guestfs_set_network"
29955 msgstr ""
29956
29957 #. type: verbatim
29958 #: ../src/guestfs-actions.pod:6307
29959 #, no-wrap
29960 msgid ""
29961 " int\n"
29962 " guestfs_set_network (guestfs_h *g,\n"
29963 "                      int network);\n"
29964 "\n"
29965 msgstr ""
29966
29967 #. type: textblock
29968 #: ../src/guestfs-actions.pod:6317
29969 msgid ""
29970 "You must call this before calling C<guestfs_launch>, otherwise it has no "
29971 "effect."
29972 msgstr ""
29973
29974 #. type: =head2
29975 #: ../src/guestfs-actions.pod:6324
29976 msgid "guestfs_set_path"
29977 msgstr ""
29978
29979 #. type: verbatim
29980 #: ../src/guestfs-actions.pod:6326
29981 #, no-wrap
29982 msgid ""
29983 " int\n"
29984 " guestfs_set_path (guestfs_h *g,\n"
29985 "                   const char *searchpath);\n"
29986 "\n"
29987 msgstr ""
29988
29989 #. type: =head2
29990 #: ../src/guestfs-actions.pod:6341
29991 msgid "guestfs_set_pgroup"
29992 msgstr ""
29993
29994 #. type: verbatim
29995 #: ../src/guestfs-actions.pod:6343
29996 #, no-wrap
29997 msgid ""
29998 " int\n"
29999 " guestfs_set_pgroup (guestfs_h *g,\n"
30000 "                     int pgroup);\n"
30001 "\n"
30002 msgstr ""
30003
30004 #. type: =head2
30005 #: ../src/guestfs-actions.pod:6360
30006 msgid "guestfs_set_qemu"
30007 msgstr ""
30008
30009 #. type: verbatim
30010 #: ../src/guestfs-actions.pod:6362
30011 #, no-wrap
30012 msgid ""
30013 " int\n"
30014 " guestfs_set_qemu (guestfs_h *g,\n"
30015 "                   const char *qemu);\n"
30016 "\n"
30017 msgstr ""
30018
30019 #. type: =head2
30020 #: ../src/guestfs-actions.pod:6388
30021 msgid "guestfs_set_recovery_proc"
30022 msgstr ""
30023
30024 #. type: verbatim
30025 #: ../src/guestfs-actions.pod:6390
30026 #, no-wrap
30027 msgid ""
30028 " int\n"
30029 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30030 "                            int recoveryproc);\n"
30031 "\n"
30032 msgstr ""
30033
30034 #. type: textblock
30035 #: ../src/guestfs-actions.pod:6394
30036 msgid ""
30037 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30038 "not create a recovery process.  The purpose of the recovery process is to "
30039 "stop runaway qemu processes in the case where the main program aborts "
30040 "abruptly."
30041 msgstr ""
30042
30043 #. type: textblock
30044 #: ../src/guestfs-actions.pod:6399
30045 msgid ""
30046 "This only has any effect if called before C<guestfs_launch>, and the default "
30047 "is true."
30048 msgstr ""
30049
30050 #. type: =head2
30051 #: ../src/guestfs-actions.pod:6412
30052 msgid "guestfs_set_selinux"
30053 msgstr ""
30054
30055 #. type: verbatim
30056 #: ../src/guestfs-actions.pod:6414
30057 #, no-wrap
30058 msgid ""
30059 " int\n"
30060 " guestfs_set_selinux (guestfs_h *g,\n"
30061 "                      int selinux);\n"
30062 "\n"
30063 msgstr ""
30064
30065 #. type: =head2
30066 #: ../src/guestfs-actions.pod:6431
30067 msgid "guestfs_set_trace"
30068 msgstr ""
30069
30070 #. type: verbatim
30071 #: ../src/guestfs-actions.pod:6433
30072 #, no-wrap
30073 msgid ""
30074 " int\n"
30075 " guestfs_set_trace (guestfs_h *g,\n"
30076 "                    int trace);\n"
30077 "\n"
30078 msgstr ""
30079
30080 #. type: textblock
30081 #: ../src/guestfs-actions.pod:6447
30082 msgid ""
30083 "Trace messages are normally sent to C<stderr>, unless you register a "
30084 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30085 msgstr ""
30086
30087 #. type: =head2
30088 #: ../src/guestfs-actions.pod:6455
30089 msgid "guestfs_set_verbose"
30090 msgstr ""
30091
30092 #. type: verbatim
30093 #: ../src/guestfs-actions.pod:6457
30094 #, no-wrap
30095 msgid ""
30096 " int\n"
30097 " guestfs_set_verbose (guestfs_h *g,\n"
30098 "                      int verbose);\n"
30099 "\n"
30100 msgstr ""
30101
30102 #. type: textblock
30103 #: ../src/guestfs-actions.pod:6466
30104 msgid ""
30105 "Verbose messages are normally sent to C<stderr>, unless you register a "
30106 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30107 msgstr ""
30108
30109 #. type: =head2
30110 #: ../src/guestfs-actions.pod:6474
30111 msgid "guestfs_setcon"
30112 msgstr ""
30113
30114 #. type: verbatim
30115 #: ../src/guestfs-actions.pod:6476
30116 #, no-wrap
30117 msgid ""
30118 " int\n"
30119 " guestfs_setcon (guestfs_h *g,\n"
30120 "                 const char *context);\n"
30121 "\n"
30122 msgstr ""
30123
30124 #. type: =head2
30125 #: ../src/guestfs-actions.pod:6489
30126 msgid "guestfs_setxattr"
30127 msgstr ""
30128
30129 #. type: verbatim
30130 #: ../src/guestfs-actions.pod:6491
30131 #, no-wrap
30132 msgid ""
30133 " int\n"
30134 " guestfs_setxattr (guestfs_h *g,\n"
30135 "                   const char *xattr,\n"
30136 "                   const char *val,\n"
30137 "                   int vallen,\n"
30138 "                   const char *path);\n"
30139 "\n"
30140 msgstr ""
30141
30142 #. type: textblock
30143 #: ../src/guestfs-actions.pod:6502
30144 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30145 msgstr ""
30146
30147 #. type: =head2
30148 #: ../src/guestfs-actions.pod:6508
30149 msgid "guestfs_sfdisk"
30150 msgstr ""
30151
30152 #. type: verbatim
30153 #: ../src/guestfs-actions.pod:6510
30154 #, no-wrap
30155 msgid ""
30156 " int\n"
30157 " guestfs_sfdisk (guestfs_h *g,\n"
30158 "                 const char *device,\n"
30159 "                 int cyls,\n"
30160 "                 int heads,\n"
30161 "                 int sectors,\n"
30162 "                 char *const *lines);\n"
30163 "\n"
30164 msgstr ""
30165
30166 #. type: textblock
30167 #: ../src/guestfs-actions.pod:6518 ../src/guestfs-actions.pod:6562
30168 #: ../src/guestfs-actions.pod:6596
30169 msgid ""
30170 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
30171 "call instead."
30172 msgstr ""
30173
30174 #. type: textblock
30175 #: ../src/guestfs-actions.pod:6545
30176 msgid ""
30177 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30178 msgstr ""
30179
30180 #. type: =head2
30181 #: ../src/guestfs-actions.pod:6555
30182 msgid "guestfs_sfdiskM"
30183 msgstr ""
30184
30185 #. type: verbatim
30186 #: ../src/guestfs-actions.pod:6557
30187 #, no-wrap
30188 msgid ""
30189 " int\n"
30190 " guestfs_sfdiskM (guestfs_h *g,\n"
30191 "                  const char *device,\n"
30192 "                  char *const *lines);\n"
30193 "\n"
30194 msgstr ""
30195
30196 #. type: textblock
30197 #: ../src/guestfs-actions.pod:6569
30198 msgid ""
30199 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30200 "partition sizes are specified in megabytes only (rounded to the nearest "
30201 "cylinder) and you don't need to specify the cyls, heads and sectors "
30202 "parameters which were rarely if ever used anyway."
30203 msgstr ""
30204
30205 #. type: textblock
30206 #: ../src/guestfs-actions.pod:6575
30207 msgid ""
30208 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30209 "C<guestfs_part_disk>"
30210 msgstr ""
30211
30212 #. type: =head2
30213 #: ../src/guestfs-actions.pod:6585
30214 msgid "guestfs_sfdisk_N"
30215 msgstr ""
30216
30217 #. type: verbatim
30218 #: ../src/guestfs-actions.pod:6587
30219 #, no-wrap
30220 msgid ""
30221 " int\n"
30222 " guestfs_sfdisk_N (guestfs_h *g,\n"
30223 "                   const char *device,\n"
30224 "                   int partnum,\n"
30225 "                   int cyls,\n"
30226 "                   int heads,\n"
30227 "                   int sectors,\n"
30228 "                   const char *line);\n"
30229 "\n"
30230 msgstr ""
30231
30232 #. type: textblock
30233 #: ../src/guestfs-actions.pod:6606
30234 msgid ""
30235 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
30236 "for the cyls/heads/sectors parameters."
30237 msgstr ""
30238
30239 #. type: textblock
30240 #: ../src/guestfs-actions.pod:6609
30241 msgid "See also: C<guestfs_part_add>"
30242 msgstr ""
30243
30244 #. type: =head2
30245 #: ../src/guestfs-actions.pod:6618
30246 msgid "guestfs_sfdisk_disk_geometry"
30247 msgstr ""
30248
30249 #. type: verbatim
30250 #: ../src/guestfs-actions.pod:6620
30251 #, no-wrap
30252 msgid ""
30253 " char *\n"
30254 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30255 "                               const char *device);\n"
30256 "\n"
30257 msgstr ""
30258
30259 #. type: textblock
30260 #: ../src/guestfs-actions.pod:6624
30261 msgid ""
30262 "This displays the disk geometry of C<device> read from the partition table.  "
30263 "Especially in the case where the underlying block device has been resized, "
30264 "this can be different from the kernel's idea of the geometry (see "
30265 "C<guestfs_sfdisk_kernel_geometry>)."
30266 msgstr ""
30267
30268 #. type: =head2
30269 #: ../src/guestfs-actions.pod:6637
30270 msgid "guestfs_sfdisk_kernel_geometry"
30271 msgstr ""
30272
30273 #. type: verbatim
30274 #: ../src/guestfs-actions.pod:6639
30275 #, no-wrap
30276 msgid ""
30277 " char *\n"
30278 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30279 "                                 const char *device);\n"
30280 "\n"
30281 msgstr ""
30282
30283 #. type: =head2
30284 #: ../src/guestfs-actions.pod:6653
30285 msgid "guestfs_sfdisk_l"
30286 msgstr ""
30287
30288 #. type: verbatim
30289 #: ../src/guestfs-actions.pod:6655
30290 #, no-wrap
30291 msgid ""
30292 " char *\n"
30293 " guestfs_sfdisk_l (guestfs_h *g,\n"
30294 "                   const char *device);\n"
30295 "\n"
30296 msgstr ""
30297
30298 #. type: textblock
30299 #: ../src/guestfs-actions.pod:6659
30300 msgid ""
30301 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
30302 "call instead."
30303 msgstr ""
30304
30305 #. type: textblock
30306 #: ../src/guestfs-actions.pod:6670
30307 msgid "See also: C<guestfs_part_list>"
30308 msgstr ""
30309
30310 #. type: =head2
30311 #: ../src/guestfs-actions.pod:6677
30312 msgid "guestfs_sh"
30313 msgstr ""
30314
30315 #. type: verbatim
30316 #: ../src/guestfs-actions.pod:6679
30317 #, no-wrap
30318 msgid ""
30319 " char *\n"
30320 " guestfs_sh (guestfs_h *g,\n"
30321 "             const char *command);\n"
30322 "\n"
30323 msgstr ""
30324
30325 #. type: textblock
30326 #: ../src/guestfs-actions.pod:6686
30327 msgid "This is like C<guestfs_command>, but passes the command to:"
30328 msgstr ""
30329
30330 #. type: textblock
30331 #: ../src/guestfs-actions.pod:6694
30332 msgid "All the provisos about C<guestfs_command> apply to this call."
30333 msgstr ""
30334
30335 #. type: =head2
30336 #: ../src/guestfs-actions.pod:6701
30337 msgid "guestfs_sh_lines"
30338 msgstr ""
30339
30340 #. type: verbatim
30341 #: ../src/guestfs-actions.pod:6703
30342 #, no-wrap
30343 msgid ""
30344 " char **\n"
30345 " guestfs_sh_lines (guestfs_h *g,\n"
30346 "                   const char *command);\n"
30347 "\n"
30348 msgstr ""
30349
30350 #. type: textblock
30351 #: ../src/guestfs-actions.pod:6707
30352 msgid ""
30353 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30354 "lines."
30355 msgstr ""
30356
30357 #. type: textblock
30358 #: ../src/guestfs-actions.pod:6710
30359 msgid "See also: C<guestfs_command_lines>"
30360 msgstr ""
30361
30362 #. type: =head2
30363 #: ../src/guestfs-actions.pod:6718
30364 msgid "guestfs_sleep"
30365 msgstr ""
30366
30367 #. type: verbatim
30368 #: ../src/guestfs-actions.pod:6720
30369 #, no-wrap
30370 msgid ""
30371 " int\n"
30372 " guestfs_sleep (guestfs_h *g,\n"
30373 "                int secs);\n"
30374 "\n"
30375 msgstr ""
30376
30377 #. type: textblock
30378 #: ../src/guestfs-actions.pod:6728
30379 msgid "(Added in 1.0.41)"
30380 msgstr ""
30381
30382 #. type: =head2
30383 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-structs.pod:109
30384 msgid "guestfs_stat"
30385 msgstr ""
30386
30387 #. type: verbatim
30388 #: ../src/guestfs-actions.pod:6732
30389 #, no-wrap
30390 msgid ""
30391 " struct guestfs_stat *\n"
30392 " guestfs_stat (guestfs_h *g,\n"
30393 "               const char *path);\n"
30394 "\n"
30395 msgstr ""
30396
30397 #. type: =head2
30398 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-structs.pod:135
30399 msgid "guestfs_statvfs"
30400 msgstr ""
30401
30402 #. type: verbatim
30403 #: ../src/guestfs-actions.pod:6748
30404 #, no-wrap
30405 msgid ""
30406 " struct guestfs_statvfs *\n"
30407 " guestfs_statvfs (guestfs_h *g,\n"
30408 "                  const char *path);\n"
30409 "\n"
30410 msgstr ""
30411
30412 #. type: textblock
30413 #: ../src/guestfs-actions.pod:6758
30414 msgid ""
30415 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30416 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
30417 msgstr ""
30418
30419 #. type: =head2
30420 #: ../src/guestfs-actions.pod:6764
30421 msgid "guestfs_strings"
30422 msgstr ""
30423
30424 #. type: verbatim
30425 #: ../src/guestfs-actions.pod:6766
30426 #, no-wrap
30427 msgid ""
30428 " char **\n"
30429 " guestfs_strings (guestfs_h *g,\n"
30430 "                  const char *path);\n"
30431 "\n"
30432 msgstr ""
30433
30434 #. type: =head2
30435 #: ../src/guestfs-actions.pod:6782
30436 msgid "guestfs_strings_e"
30437 msgstr ""
30438
30439 #. type: verbatim
30440 #: ../src/guestfs-actions.pod:6784
30441 #, no-wrap
30442 msgid ""
30443 " char **\n"
30444 " guestfs_strings_e (guestfs_h *g,\n"
30445 "                    const char *encoding,\n"
30446 "                    const char *path);\n"
30447 "\n"
30448 msgstr ""
30449
30450 #. type: textblock
30451 #: ../src/guestfs-actions.pod:6789
30452 msgid ""
30453 "This is like the C<guestfs_strings> command, but allows you to specify the "
30454 "encoding of strings that are looked for in the source file C<path>."
30455 msgstr ""
30456
30457 #. type: textblock
30458 #: ../src/guestfs-actions.pod:6799
30459 msgid ""
30460 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30461 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30462 msgstr ""
30463
30464 #. type: =head2
30465 #: ../src/guestfs-actions.pod:6837
30466 msgid "guestfs_swapoff_device"
30467 msgstr ""
30468
30469 #. type: verbatim
30470 #: ../src/guestfs-actions.pod:6839
30471 #, no-wrap
30472 msgid ""
30473 " int\n"
30474 " guestfs_swapoff_device (guestfs_h *g,\n"
30475 "                         const char *device);\n"
30476 "\n"
30477 msgstr ""
30478
30479 #. type: textblock
30480 #: ../src/guestfs-actions.pod:6843
30481 msgid ""
30482 "This command disables the libguestfs appliance swap device or partition "
30483 "named C<device>.  See C<guestfs_swapon_device>."
30484 msgstr ""
30485
30486 #. type: =head2
30487 #: ../src/guestfs-actions.pod:6851
30488 msgid "guestfs_swapoff_file"
30489 msgstr ""
30490
30491 #. type: verbatim
30492 #: ../src/guestfs-actions.pod:6853
30493 #, no-wrap
30494 msgid ""
30495 " int\n"
30496 " guestfs_swapoff_file (guestfs_h *g,\n"
30497 "                       const char *file);\n"
30498 "\n"
30499 msgstr ""
30500
30501 #. type: =head2
30502 #: ../src/guestfs-actions.pod:6863
30503 msgid "guestfs_swapoff_label"
30504 msgstr ""
30505
30506 #. type: verbatim
30507 #: ../src/guestfs-actions.pod:6865
30508 #, no-wrap
30509 msgid ""
30510 " int\n"
30511 " guestfs_swapoff_label (guestfs_h *g,\n"
30512 "                        const char *label);\n"
30513 "\n"
30514 msgstr ""
30515
30516 #. type: =head2
30517 #: ../src/guestfs-actions.pod:6876
30518 msgid "guestfs_swapoff_uuid"
30519 msgstr ""
30520
30521 #. type: verbatim
30522 #: ../src/guestfs-actions.pod:6878
30523 #, no-wrap
30524 msgid ""
30525 " int\n"
30526 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30527 "                       const char *uuid);\n"
30528 "\n"
30529 msgstr ""
30530
30531 #. type: =head2
30532 #: ../src/guestfs-actions.pod:6889
30533 msgid "guestfs_swapon_device"
30534 msgstr ""
30535
30536 #. type: verbatim
30537 #: ../src/guestfs-actions.pod:6891
30538 #, no-wrap
30539 msgid ""
30540 " int\n"
30541 " guestfs_swapon_device (guestfs_h *g,\n"
30542 "                        const char *device);\n"
30543 "\n"
30544 msgstr ""
30545
30546 #. type: textblock
30547 #: ../src/guestfs-actions.pod:6895
30548 msgid ""
30549 "This command enables the libguestfs appliance to use the swap device or "
30550 "partition named C<device>.  The increased memory is made available for all "
30551 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30552 msgstr ""
30553
30554 #. type: =head2
30555 #: ../src/guestfs-actions.pod:6911
30556 msgid "guestfs_swapon_file"
30557 msgstr ""
30558
30559 #. type: verbatim
30560 #: ../src/guestfs-actions.pod:6913
30561 #, no-wrap
30562 msgid ""
30563 " int\n"
30564 " guestfs_swapon_file (guestfs_h *g,\n"
30565 "                      const char *file);\n"
30566 "\n"
30567 msgstr ""
30568
30569 #. type: textblock
30570 #: ../src/guestfs-actions.pod:6917
30571 msgid ""
30572 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
30573 "notes."
30574 msgstr ""
30575
30576 #. type: =head2
30577 #: ../src/guestfs-actions.pod:6924
30578 msgid "guestfs_swapon_label"
30579 msgstr ""
30580
30581 #. type: verbatim
30582 #: ../src/guestfs-actions.pod:6926
30583 #, no-wrap
30584 msgid ""
30585 " int\n"
30586 " guestfs_swapon_label (guestfs_h *g,\n"
30587 "                       const char *label);\n"
30588 "\n"
30589 msgstr ""
30590
30591 #. type: textblock
30592 #: ../src/guestfs-actions.pod:6930
30593 msgid ""
30594 "This command enables swap to a labeled swap partition.  See "
30595 "C<guestfs_swapon_device> for other notes."
30596 msgstr ""
30597
30598 #. type: =head2
30599 #: ../src/guestfs-actions.pod:6937
30600 msgid "guestfs_swapon_uuid"
30601 msgstr ""
30602
30603 #. type: verbatim
30604 #: ../src/guestfs-actions.pod:6939
30605 #, no-wrap
30606 msgid ""
30607 " int\n"
30608 " guestfs_swapon_uuid (guestfs_h *g,\n"
30609 "                      const char *uuid);\n"
30610 "\n"
30611 msgstr ""
30612
30613 #. type: textblock
30614 #: ../src/guestfs-actions.pod:6943
30615 msgid ""
30616 "This command enables swap to a swap partition with the given UUID.  See "
30617 "C<guestfs_swapon_device> for other notes."
30618 msgstr ""
30619
30620 #. type: =head2
30621 #: ../src/guestfs-actions.pod:6950
30622 msgid "guestfs_sync"
30623 msgstr ""
30624
30625 #. type: verbatim
30626 #: ../src/guestfs-actions.pod:6952
30627 #, no-wrap
30628 msgid ""
30629 " int\n"
30630 " guestfs_sync (guestfs_h *g);\n"
30631 "\n"
30632 msgstr ""
30633
30634 #. type: =head2
30635 #: ../src/guestfs-actions.pod:6965
30636 msgid "guestfs_tail"
30637 msgstr ""
30638
30639 #. type: verbatim
30640 #: ../src/guestfs-actions.pod:6967
30641 #, no-wrap
30642 msgid ""
30643 " char **\n"
30644 " guestfs_tail (guestfs_h *g,\n"
30645 "               const char *path);\n"
30646 "\n"
30647 msgstr ""
30648
30649 #. type: =head2
30650 #: ../src/guestfs-actions.pod:6983
30651 msgid "guestfs_tail_n"
30652 msgstr ""
30653
30654 #. type: verbatim
30655 #: ../src/guestfs-actions.pod:6985
30656 #, no-wrap
30657 msgid ""
30658 " char **\n"
30659 " guestfs_tail_n (guestfs_h *g,\n"
30660 "                 int nrlines,\n"
30661 "                 const char *path);\n"
30662 "\n"
30663 msgstr ""
30664
30665 #. type: =head2
30666 #: ../src/guestfs-actions.pod:7007
30667 msgid "guestfs_tar_in"
30668 msgstr ""
30669
30670 #. type: verbatim
30671 #: ../src/guestfs-actions.pod:7009
30672 #, no-wrap
30673 msgid ""
30674 " int\n"
30675 " guestfs_tar_in (guestfs_h *g,\n"
30676 "                 const char *tarfile,\n"
30677 "                 const char *directory);\n"
30678 "\n"
30679 msgstr ""
30680
30681 #. type: textblock
30682 #: ../src/guestfs-actions.pod:7017
30683 msgid ""
30684 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30685 msgstr ""
30686
30687 #. type: textblock
30688 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7039
30689 #: ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7071
30690 msgid "(Added in 1.0.3)"
30691 msgstr ""
30692
30693 #. type: =head2
30694 #: ../src/guestfs-actions.pod:7024
30695 msgid "guestfs_tar_out"
30696 msgstr ""
30697
30698 #. type: verbatim
30699 #: ../src/guestfs-actions.pod:7026
30700 #, no-wrap
30701 msgid ""
30702 " int\n"
30703 " guestfs_tar_out (guestfs_h *g,\n"
30704 "                  const char *directory,\n"
30705 "                  const char *tarfile);\n"
30706 "\n"
30707 msgstr ""
30708
30709 #. type: textblock
30710 #: ../src/guestfs-actions.pod:7034
30711 msgid ""
30712 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30713 "C<guestfs_txz_out>."
30714 msgstr ""
30715
30716 #. type: =head2
30717 #: ../src/guestfs-actions.pod:7041
30718 msgid "guestfs_tgz_in"
30719 msgstr ""
30720
30721 #. type: verbatim
30722 #: ../src/guestfs-actions.pod:7043
30723 #, no-wrap
30724 msgid ""
30725 " int\n"
30726 " guestfs_tgz_in (guestfs_h *g,\n"
30727 "                 const char *tarball,\n"
30728 "                 const char *directory);\n"
30729 "\n"
30730 msgstr ""
30731
30732 #. type: textblock
30733 #: ../src/guestfs-actions.pod:7051
30734 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30735 msgstr ""
30736
30737 #. type: =head2
30738 #: ../src/guestfs-actions.pod:7057
30739 msgid "guestfs_tgz_out"
30740 msgstr ""
30741
30742 #. type: verbatim
30743 #: ../src/guestfs-actions.pod:7059
30744 #, no-wrap
30745 msgid ""
30746 " int\n"
30747 " guestfs_tgz_out (guestfs_h *g,\n"
30748 "                  const char *directory,\n"
30749 "                  const char *tarball);\n"
30750 "\n"
30751 msgstr ""
30752
30753 #. type: textblock
30754 #: ../src/guestfs-actions.pod:7067
30755 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30756 msgstr ""
30757
30758 #. type: =head2
30759 #: ../src/guestfs-actions.pod:7073
30760 msgid "guestfs_touch"
30761 msgstr ""
30762
30763 #. type: verbatim
30764 #: ../src/guestfs-actions.pod:7075
30765 #, no-wrap
30766 msgid ""
30767 " int\n"
30768 " guestfs_touch (guestfs_h *g,\n"
30769 "                const char *path);\n"
30770 "\n"
30771 msgstr ""
30772
30773 #. type: =head2
30774 #: ../src/guestfs-actions.pod:7090
30775 msgid "guestfs_truncate"
30776 msgstr ""
30777
30778 #. type: verbatim
30779 #: ../src/guestfs-actions.pod:7092
30780 #, no-wrap
30781 msgid ""
30782 " int\n"
30783 " guestfs_truncate (guestfs_h *g,\n"
30784 "                   const char *path);\n"
30785 "\n"
30786 msgstr ""
30787
30788 #. type: =head2
30789 #: ../src/guestfs-actions.pod:7103
30790 msgid "guestfs_truncate_size"
30791 msgstr ""
30792
30793 #. type: verbatim
30794 #: ../src/guestfs-actions.pod:7105
30795 #, no-wrap
30796 msgid ""
30797 " int\n"
30798 " guestfs_truncate_size (guestfs_h *g,\n"
30799 "                        const char *path,\n"
30800 "                        int64_t size);\n"
30801 "\n"
30802 msgstr ""
30803
30804 #. type: textblock
30805 #: ../src/guestfs-actions.pod:7113
30806 msgid ""
30807 "If the current file size is less than C<size> then the file is extended to "
30808 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30809 "blocks are not allocated for the file until you write to it).  To create a "
30810 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30811 msgstr ""
30812
30813 #. type: =head2
30814 #: ../src/guestfs-actions.pod:7123
30815 msgid "guestfs_tune2fs_l"
30816 msgstr ""
30817
30818 #. type: verbatim
30819 #: ../src/guestfs-actions.pod:7125
30820 #, no-wrap
30821 msgid ""
30822 " char **\n"
30823 " guestfs_tune2fs_l (guestfs_h *g,\n"
30824 "                    const char *device);\n"
30825 "\n"
30826 msgstr ""
30827
30828 #. type: =head2
30829 #: ../src/guestfs-actions.pod:7145
30830 msgid "guestfs_txz_in"
30831 msgstr ""
30832
30833 #. type: verbatim
30834 #: ../src/guestfs-actions.pod:7147
30835 #, no-wrap
30836 msgid ""
30837 " int\n"
30838 " guestfs_txz_in (guestfs_h *g,\n"
30839 "                 const char *tarball,\n"
30840 "                 const char *directory);\n"
30841 "\n"
30842 msgstr ""
30843
30844 #. type: =head2
30845 #: ../src/guestfs-actions.pod:7159
30846 msgid "guestfs_txz_out"
30847 msgstr ""
30848
30849 #. type: verbatim
30850 #: ../src/guestfs-actions.pod:7161
30851 #, no-wrap
30852 msgid ""
30853 " int\n"
30854 " guestfs_txz_out (guestfs_h *g,\n"
30855 "                  const char *directory,\n"
30856 "                  const char *tarball);\n"
30857 "\n"
30858 msgstr ""
30859
30860 #. type: =head2
30861 #: ../src/guestfs-actions.pod:7173
30862 msgid "guestfs_umask"
30863 msgstr ""
30864
30865 #. type: verbatim
30866 #: ../src/guestfs-actions.pod:7175
30867 #, no-wrap
30868 msgid ""
30869 " int\n"
30870 " guestfs_umask (guestfs_h *g,\n"
30871 "                int mask);\n"
30872 "\n"
30873 msgstr ""
30874
30875 #. type: textblock
30876 #: ../src/guestfs-actions.pod:7191
30877 msgid ""
30878 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
30879 "C<guestfs_mkdir>."
30880 msgstr ""
30881
30882 #. type: =head2
30883 #: ../src/guestfs-actions.pod:7200
30884 msgid "guestfs_umount"
30885 msgstr ""
30886
30887 #. type: verbatim
30888 #: ../src/guestfs-actions.pod:7202
30889 #, no-wrap
30890 msgid ""
30891 " int\n"
30892 " guestfs_umount (guestfs_h *g,\n"
30893 "                 const char *pathordevice);\n"
30894 "\n"
30895 msgstr ""
30896
30897 #. type: =head2
30898 #: ../src/guestfs-actions.pod:7214
30899 msgid "guestfs_umount_all"
30900 msgstr ""
30901
30902 #. type: verbatim
30903 #: ../src/guestfs-actions.pod:7216
30904 #, no-wrap
30905 msgid ""
30906 " int\n"
30907 " guestfs_umount_all (guestfs_h *g);\n"
30908 "\n"
30909 msgstr ""
30910
30911 #. type: =head2
30912 #: ../src/guestfs-actions.pod:7227
30913 msgid "guestfs_upload"
30914 msgstr ""
30915
30916 #. type: verbatim
30917 #: ../src/guestfs-actions.pod:7229
30918 #, no-wrap
30919 msgid ""
30920 " int\n"
30921 " guestfs_upload (guestfs_h *g,\n"
30922 "                 const char *filename,\n"
30923 "                 const char *remotefilename);\n"
30924 "\n"
30925 msgstr ""
30926
30927 #. type: textblock
30928 #: ../src/guestfs-actions.pod:7239
30929 msgid "See also C<guestfs_download>."
30930 msgstr ""
30931
30932 #. type: =head2
30933 #: ../src/guestfs-actions.pod:7250
30934 msgid "guestfs_upload_offset"
30935 msgstr ""
30936
30937 #. type: verbatim
30938 #: ../src/guestfs-actions.pod:7252
30939 #, no-wrap
30940 msgid ""
30941 " int\n"
30942 " guestfs_upload_offset (guestfs_h *g,\n"
30943 "                        const char *filename,\n"
30944 "                        const char *remotefilename,\n"
30945 "                        int64_t offset);\n"
30946 "\n"
30947 msgstr ""
30948
30949 #. type: textblock
30950 #: ../src/guestfs-actions.pod:7268
30951 msgid ""
30952 "Note that there is no limit on the amount of data that can be uploaded with "
30953 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
30954 "full amount unless an error occurs."
30955 msgstr ""
30956
30957 #. type: textblock
30958 #: ../src/guestfs-actions.pod:7273
30959 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
30960 msgstr ""
30961
30962 #. type: =head2
30963 #: ../src/guestfs-actions.pod:7284
30964 msgid "guestfs_utimens"
30965 msgstr ""
30966
30967 #. type: verbatim
30968 #: ../src/guestfs-actions.pod:7286
30969 #, no-wrap
30970 msgid ""
30971 " int\n"
30972 " guestfs_utimens (guestfs_h *g,\n"
30973 "                  const char *path,\n"
30974 "                  int64_t atsecs,\n"
30975 "                  int64_t atnsecs,\n"
30976 "                  int64_t mtsecs,\n"
30977 "                  int64_t mtnsecs);\n"
30978 "\n"
30979 msgstr ""
30980
30981 #. type: =head2
30982 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-structs.pod:175
30983 msgid "guestfs_version"
30984 msgstr ""
30985
30986 #. type: verbatim
30987 #: ../src/guestfs-actions.pod:7317
30988 #, no-wrap
30989 msgid ""
30990 " struct guestfs_version *\n"
30991 " guestfs_version (guestfs_h *g);\n"
30992 "\n"
30993 msgstr ""
30994
30995 #. type: textblock
30996 #: ../src/guestfs-actions.pod:7345
30997 msgid ""
30998 "I<Note:> Don't use this call to test for availability of features.  In "
30999 "enterprise distributions we backport features from later versions into "
31000 "earlier versions, making this an unreliable way to test for features.  Use "
31001 "C<guestfs_available> instead."
31002 msgstr ""
31003
31004 #. type: textblock
31005 #: ../src/guestfs-actions.pod:7351
31006 msgid ""
31007 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31008 "error.  I<The caller must call C<guestfs_free_version> after use>."
31009 msgstr ""
31010
31011 #. type: textblock
31012 #: ../src/guestfs-actions.pod:7355
31013 msgid "(Added in 1.0.58)"
31014 msgstr ""
31015
31016 #. type: =head2
31017 #: ../src/guestfs-actions.pod:7357
31018 msgid "guestfs_vfs_label"
31019 msgstr ""
31020
31021 #. type: verbatim
31022 #: ../src/guestfs-actions.pod:7359
31023 #, no-wrap
31024 msgid ""
31025 " char *\n"
31026 " guestfs_vfs_label (guestfs_h *g,\n"
31027 "                    const char *device);\n"
31028 "\n"
31029 msgstr ""
31030
31031 #. type: textblock
31032 #: ../src/guestfs-actions.pod:7368
31033 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31034 msgstr ""
31035
31036 #. type: textblock
31037 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7410
31038 msgid "(Added in 1.3.18)"
31039 msgstr ""
31040
31041 #. type: =head2
31042 #: ../src/guestfs-actions.pod:7375
31043 msgid "guestfs_vfs_type"
31044 msgstr ""
31045
31046 #. type: verbatim
31047 #: ../src/guestfs-actions.pod:7377
31048 #, no-wrap
31049 msgid ""
31050 " char *\n"
31051 " guestfs_vfs_type (guestfs_h *g,\n"
31052 "                   const char *device);\n"
31053 "\n"
31054 msgstr ""
31055
31056 #. type: =head2
31057 #: ../src/guestfs-actions.pod:7394
31058 msgid "guestfs_vfs_uuid"
31059 msgstr ""
31060
31061 #. type: verbatim
31062 #: ../src/guestfs-actions.pod:7396
31063 #, no-wrap
31064 msgid ""
31065 " char *\n"
31066 " guestfs_vfs_uuid (guestfs_h *g,\n"
31067 "                   const char *device);\n"
31068 "\n"
31069 msgstr ""
31070
31071 #. type: textblock
31072 #: ../src/guestfs-actions.pod:7405
31073 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31074 msgstr ""
31075
31076 #. type: =head2
31077 #: ../src/guestfs-actions.pod:7412
31078 msgid "guestfs_vg_activate"
31079 msgstr ""
31080
31081 #. type: verbatim
31082 #: ../src/guestfs-actions.pod:7414
31083 #, no-wrap
31084 msgid ""
31085 " int\n"
31086 " guestfs_vg_activate (guestfs_h *g,\n"
31087 "                      int activate,\n"
31088 "                      char *const *volgroups);\n"
31089 "\n"
31090 msgstr ""
31091
31092 #. type: =head2
31093 #: ../src/guestfs-actions.pod:7431
31094 msgid "guestfs_vg_activate_all"
31095 msgstr ""
31096
31097 #. type: verbatim
31098 #: ../src/guestfs-actions.pod:7433
31099 #, no-wrap
31100 msgid ""
31101 " int\n"
31102 " guestfs_vg_activate_all (guestfs_h *g,\n"
31103 "                          int activate);\n"
31104 "\n"
31105 msgstr ""
31106
31107 #. type: =head2
31108 #: ../src/guestfs-actions.pod:7446
31109 msgid "guestfs_vgcreate"
31110 msgstr ""
31111
31112 #. type: verbatim
31113 #: ../src/guestfs-actions.pod:7448
31114 #, no-wrap
31115 msgid ""
31116 " int\n"
31117 " guestfs_vgcreate (guestfs_h *g,\n"
31118 "                   const char *volgroup,\n"
31119 "                   char *const *physvols);\n"
31120 "\n"
31121 msgstr ""
31122
31123 #. type: =head2
31124 #: ../src/guestfs-actions.pod:7460
31125 msgid "guestfs_vglvuuids"
31126 msgstr ""
31127
31128 #. type: verbatim
31129 #: ../src/guestfs-actions.pod:7462
31130 #, no-wrap
31131 msgid ""
31132 " char **\n"
31133 " guestfs_vglvuuids (guestfs_h *g,\n"
31134 "                    const char *vgname);\n"
31135 "\n"
31136 msgstr ""
31137
31138 #. type: textblock
31139 #: ../src/guestfs-actions.pod:7469
31140 msgid ""
31141 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31142 "associate logical volumes and volume groups."
31143 msgstr ""
31144
31145 #. type: textblock
31146 #: ../src/guestfs-actions.pod:7472
31147 msgid "See also C<guestfs_vgpvuuids>."
31148 msgstr ""
31149
31150 #. type: =head2
31151 #: ../src/guestfs-actions.pod:7480
31152 msgid "guestfs_vgpvuuids"
31153 msgstr ""
31154
31155 #. type: verbatim
31156 #: ../src/guestfs-actions.pod:7482
31157 #, no-wrap
31158 msgid ""
31159 " char **\n"
31160 " guestfs_vgpvuuids (guestfs_h *g,\n"
31161 "                    const char *vgname);\n"
31162 "\n"
31163 msgstr ""
31164
31165 #. type: textblock
31166 #: ../src/guestfs-actions.pod:7489
31167 msgid ""
31168 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31169 "associate physical volumes and volume groups."
31170 msgstr ""
31171
31172 #. type: textblock
31173 #: ../src/guestfs-actions.pod:7492
31174 msgid "See also C<guestfs_vglvuuids>."
31175 msgstr ""
31176
31177 #. type: =head2
31178 #: ../src/guestfs-actions.pod:7500
31179 msgid "guestfs_vgremove"
31180 msgstr ""
31181
31182 #. type: verbatim
31183 #: ../src/guestfs-actions.pod:7502
31184 #, no-wrap
31185 msgid ""
31186 " int\n"
31187 " guestfs_vgremove (guestfs_h *g,\n"
31188 "                   const char *vgname);\n"
31189 "\n"
31190 msgstr ""
31191
31192 #. type: =head2
31193 #: ../src/guestfs-actions.pod:7515
31194 msgid "guestfs_vgrename"
31195 msgstr ""
31196
31197 #. type: verbatim
31198 #: ../src/guestfs-actions.pod:7517
31199 #, no-wrap
31200 msgid ""
31201 " int\n"
31202 " guestfs_vgrename (guestfs_h *g,\n"
31203 "                   const char *volgroup,\n"
31204 "                   const char *newvolgroup);\n"
31205 "\n"
31206 msgstr ""
31207
31208 #. type: =head2
31209 #: ../src/guestfs-actions.pod:7528
31210 msgid "guestfs_vgs"
31211 msgstr ""
31212
31213 #. type: verbatim
31214 #: ../src/guestfs-actions.pod:7530
31215 #, no-wrap
31216 msgid ""
31217 " char **\n"
31218 " guestfs_vgs (guestfs_h *g);\n"
31219 "\n"
31220 msgstr ""
31221
31222 #. type: textblock
31223 #: ../src/guestfs-actions.pod:7539
31224 msgid "See also C<guestfs_vgs_full>."
31225 msgstr ""
31226
31227 #. type: =head2
31228 #: ../src/guestfs-actions.pod:7547
31229 msgid "guestfs_vgs_full"
31230 msgstr ""
31231
31232 #. type: verbatim
31233 #: ../src/guestfs-actions.pod:7549
31234 #, no-wrap
31235 msgid ""
31236 " struct guestfs_lvm_vg_list *\n"
31237 " guestfs_vgs_full (guestfs_h *g);\n"
31238 "\n"
31239 msgstr ""
31240
31241 #. type: textblock
31242 #: ../src/guestfs-actions.pod:7555
31243 msgid ""
31244 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31245 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31246 msgstr ""
31247
31248 #. type: =head2
31249 #: ../src/guestfs-actions.pod:7561
31250 msgid "guestfs_vgscan"
31251 msgstr ""
31252
31253 #. type: verbatim
31254 #: ../src/guestfs-actions.pod:7563
31255 #, no-wrap
31256 msgid ""
31257 " int\n"
31258 " guestfs_vgscan (guestfs_h *g);\n"
31259 "\n"
31260 msgstr ""
31261
31262 #. type: =head2
31263 #: ../src/guestfs-actions.pod:7573
31264 msgid "guestfs_vguuid"
31265 msgstr ""
31266
31267 #. type: verbatim
31268 #: ../src/guestfs-actions.pod:7575
31269 #, no-wrap
31270 msgid ""
31271 " char *\n"
31272 " guestfs_vguuid (guestfs_h *g,\n"
31273 "                 const char *vgname);\n"
31274 "\n"
31275 msgstr ""
31276
31277 #. type: =head2
31278 #: ../src/guestfs-actions.pod:7586
31279 msgid "guestfs_wait_ready"
31280 msgstr ""
31281
31282 #. type: verbatim
31283 #: ../src/guestfs-actions.pod:7588
31284 #, no-wrap
31285 msgid ""
31286 " int\n"
31287 " guestfs_wait_ready (guestfs_h *g);\n"
31288 "\n"
31289 msgstr ""
31290
31291 #. type: textblock
31292 #: ../src/guestfs-actions.pod:7591
31293 msgid ""
31294 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
31295 "instead."
31296 msgstr ""
31297
31298 #. type: textblock
31299 #: ../src/guestfs-actions.pod:7598
31300 msgid "This function is a no op."
31301 msgstr ""
31302
31303 #. type: textblock
31304 #: ../src/guestfs-actions.pod:7600
31305 msgid ""
31306 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31307 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
31308 "is no longer necessary because C<guestfs_launch> now does the waiting."
31309 msgstr ""
31310
31311 #. type: textblock
31312 #: ../src/guestfs-actions.pod:7605
31313 msgid ""
31314 "If you see any calls to this function in code then you can just remove them, "
31315 "unless you want to retain compatibility with older versions of the API."
31316 msgstr ""
31317
31318 #. type: =head2
31319 #: ../src/guestfs-actions.pod:7613
31320 msgid "guestfs_wc_c"
31321 msgstr ""
31322
31323 #. type: verbatim
31324 #: ../src/guestfs-actions.pod:7615
31325 #, no-wrap
31326 msgid ""
31327 " int\n"
31328 " guestfs_wc_c (guestfs_h *g,\n"
31329 "               const char *path);\n"
31330 "\n"
31331 msgstr ""
31332
31333 #. type: =head2
31334 #: ../src/guestfs-actions.pod:7626
31335 msgid "guestfs_wc_l"
31336 msgstr ""
31337
31338 #. type: verbatim
31339 #: ../src/guestfs-actions.pod:7628
31340 #, no-wrap
31341 msgid ""
31342 " int\n"
31343 " guestfs_wc_l (guestfs_h *g,\n"
31344 "               const char *path);\n"
31345 "\n"
31346 msgstr ""
31347
31348 #. type: =head2
31349 #: ../src/guestfs-actions.pod:7639
31350 msgid "guestfs_wc_w"
31351 msgstr ""
31352
31353 #. type: verbatim
31354 #: ../src/guestfs-actions.pod:7641
31355 #, no-wrap
31356 msgid ""
31357 " int\n"
31358 " guestfs_wc_w (guestfs_h *g,\n"
31359 "               const char *path);\n"
31360 "\n"
31361 msgstr ""
31362
31363 #. type: =head2
31364 #: ../src/guestfs-actions.pod:7652
31365 msgid "guestfs_write"
31366 msgstr ""
31367
31368 #. type: verbatim
31369 #: ../src/guestfs-actions.pod:7654
31370 #, no-wrap
31371 msgid ""
31372 " int\n"
31373 " guestfs_write (guestfs_h *g,\n"
31374 "                const char *path,\n"
31375 "                const char *content,\n"
31376 "                size_t content_size);\n"
31377 "\n"
31378 msgstr ""
31379
31380 #. type: textblock
31381 #: ../src/guestfs-actions.pod:7663
31382 msgid "See also C<guestfs_write_append>."
31383 msgstr ""
31384
31385 #. type: =head2
31386 #: ../src/guestfs-actions.pod:7672
31387 msgid "guestfs_write_append"
31388 msgstr ""
31389
31390 #. type: verbatim
31391 #: ../src/guestfs-actions.pod:7674
31392 #, no-wrap
31393 msgid ""
31394 " int\n"
31395 " guestfs_write_append (guestfs_h *g,\n"
31396 "                       const char *path,\n"
31397 "                       const char *content,\n"
31398 "                       size_t content_size);\n"
31399 "\n"
31400 msgstr ""
31401
31402 #. type: textblock
31403 #: ../src/guestfs-actions.pod:7683
31404 msgid "See also C<guestfs_write>."
31405 msgstr ""
31406
31407 #. type: =head2
31408 #: ../src/guestfs-actions.pod:7692
31409 msgid "guestfs_write_file"
31410 msgstr "guestfs_write_file"
31411
31412 #. type: verbatim
31413 #: ../src/guestfs-actions.pod:7694
31414 #, no-wrap
31415 msgid ""
31416 " int\n"
31417 " guestfs_write_file (guestfs_h *g,\n"
31418 "                     const char *path,\n"
31419 "                     const char *content,\n"
31420 "                     int size);\n"
31421 "\n"
31422 msgstr ""
31423 " int\n"
31424 " guestfs_write_file (guestfs_h *g,\n"
31425 "                     const char *path,\n"
31426 "                     const char *content,\n"
31427 "                     int size);\n"
31428 "\n"
31429
31430 #. type: textblock
31431 #: ../src/guestfs-actions.pod:7700
31432 msgid ""
31433 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
31434 "instead."
31435 msgstr ""
31436
31437 #. type: =head2
31438 #: ../src/guestfs-actions.pod:7725
31439 msgid "guestfs_zegrep"
31440 msgstr "guestfs_zegrep"
31441
31442 #. type: verbatim
31443 #: ../src/guestfs-actions.pod:7727
31444 #, no-wrap
31445 msgid ""
31446 " char **\n"
31447 " guestfs_zegrep (guestfs_h *g,\n"
31448 "                 const char *regex,\n"
31449 "                 const char *path);\n"
31450 "\n"
31451 msgstr ""
31452 " char **\n"
31453 " guestfs_zegrep (guestfs_h *g,\n"
31454 "                 const char *regex,\n"
31455 "                 const char *path);\n"
31456 "\n"
31457
31458 #. type: =head2
31459 #: ../src/guestfs-actions.pod:7744
31460 msgid "guestfs_zegrepi"
31461 msgstr "guestfs_zegrepi"
31462
31463 #. type: verbatim
31464 #: ../src/guestfs-actions.pod:7746
31465 #, no-wrap
31466 msgid ""
31467 " char **\n"
31468 " guestfs_zegrepi (guestfs_h *g,\n"
31469 "                  const char *regex,\n"
31470 "                  const char *path);\n"
31471 "\n"
31472 msgstr ""
31473 " char **\n"
31474 " guestfs_zegrepi (guestfs_h *g,\n"
31475 "                  const char *regex,\n"
31476 "                  const char *path);\n"
31477 "\n"
31478
31479 #. type: =head2
31480 #: ../src/guestfs-actions.pod:7763
31481 msgid "guestfs_zero"
31482 msgstr "guestfs_zero"
31483
31484 #. type: verbatim
31485 #: ../src/guestfs-actions.pod:7765
31486 #, no-wrap
31487 msgid ""
31488 " int\n"
31489 " guestfs_zero (guestfs_h *g,\n"
31490 "               const char *device);\n"
31491 "\n"
31492 msgstr ""
31493 " int\n"
31494 " guestfs_zero (guestfs_h *g,\n"
31495 "               const char *device);\n"
31496 "\n"
31497
31498 #. type: textblock
31499 #: ../src/guestfs-actions.pod:7779
31500 msgid ""
31501 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31502 "C<guestfs_is_zero_device>"
31503 msgstr ""
31504
31505 #. type: =head2
31506 #: ../src/guestfs-actions.pod:7791
31507 msgid "guestfs_zero_device"
31508 msgstr "guestfs_zero_device"
31509
31510 #. type: verbatim
31511 #: ../src/guestfs-actions.pod:7793
31512 #, no-wrap
31513 msgid ""
31514 " int\n"
31515 " guestfs_zero_device (guestfs_h *g,\n"
31516 "                      const char *device);\n"
31517 "\n"
31518 msgstr ""
31519 " int\n"
31520 " guestfs_zero_device (guestfs_h *g,\n"
31521 "                      const char *device);\n"
31522 "\n"
31523
31524 #. type: textblock
31525 #: ../src/guestfs-actions.pod:7797
31526 msgid ""
31527 "This command writes zeroes over the entire C<device>.  Compare with "
31528 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31529 msgstr ""
31530
31531 #. type: textblock
31532 #: ../src/guestfs-actions.pod:7815
31533 msgid "(Added in 1.3.1)"
31534 msgstr "(Додано у 1.3.1)"
31535
31536 #. type: =head2
31537 #: ../src/guestfs-actions.pod:7817
31538 msgid "guestfs_zerofree"
31539 msgstr "guestfs_zerofree"
31540
31541 #. type: verbatim
31542 #: ../src/guestfs-actions.pod:7819
31543 #, no-wrap
31544 msgid ""
31545 " int\n"
31546 " guestfs_zerofree (guestfs_h *g,\n"
31547 "                   const char *device);\n"
31548 "\n"
31549 msgstr ""
31550 " int\n"
31551 " guestfs_zerofree (guestfs_h *g,\n"
31552 "                   const char *device);\n"
31553 "\n"
31554
31555 #. type: =head2
31556 #: ../src/guestfs-actions.pod:7838
31557 msgid "guestfs_zfgrep"
31558 msgstr "guestfs_zfgrep"
31559
31560 #. type: verbatim
31561 #: ../src/guestfs-actions.pod:7840
31562 #, no-wrap
31563 msgid ""
31564 " char **\n"
31565 " guestfs_zfgrep (guestfs_h *g,\n"
31566 "                 const char *pattern,\n"
31567 "                 const char *path);\n"
31568 "\n"
31569 msgstr ""
31570 " char **\n"
31571 " guestfs_zfgrep (guestfs_h *g,\n"
31572 "                 const char *pattern,\n"
31573 "                 const char *path);\n"
31574 "\n"
31575
31576 #. type: =head2
31577 #: ../src/guestfs-actions.pod:7857
31578 msgid "guestfs_zfgrepi"
31579 msgstr "guestfs_zfgrepi"
31580
31581 #. type: verbatim
31582 #: ../src/guestfs-actions.pod:7859
31583 #, no-wrap
31584 msgid ""
31585 " char **\n"
31586 " guestfs_zfgrepi (guestfs_h *g,\n"
31587 "                  const char *pattern,\n"
31588 "                  const char *path);\n"
31589 "\n"
31590 msgstr ""
31591 " char **\n"
31592 " guestfs_zfgrepi (guestfs_h *g,\n"
31593 "                  const char *pattern,\n"
31594 "                  const char *path);\n"
31595 "\n"
31596
31597 #. type: =head2
31598 #: ../src/guestfs-actions.pod:7876
31599 msgid "guestfs_zfile"
31600 msgstr "guestfs_zfile"
31601
31602 #. type: verbatim
31603 #: ../src/guestfs-actions.pod:7878
31604 #, no-wrap
31605 msgid ""
31606 " char *\n"
31607 " guestfs_zfile (guestfs_h *g,\n"
31608 "                const char *meth,\n"
31609 "                const char *path);\n"
31610 "\n"
31611 msgstr ""
31612 " char *\n"
31613 " guestfs_zfile (guestfs_h *g,\n"
31614 "                const char *meth,\n"
31615 "                const char *path);\n"
31616 "\n"
31617
31618 #. type: textblock
31619 #: ../src/guestfs-actions.pod:7883
31620 msgid ""
31621 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
31622 "instead."
31623 msgstr ""
31624
31625 #. type: textblock
31626 #: ../src/guestfs-actions.pod:7895
31627 msgid ""
31628 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31629 "files."
31630 msgstr ""
31631
31632 #. type: =head2
31633 #: ../src/guestfs-actions.pod:7903
31634 msgid "guestfs_zgrep"
31635 msgstr "guestfs_zgrep"
31636
31637 #. type: verbatim
31638 #: ../src/guestfs-actions.pod:7905
31639 #, no-wrap
31640 msgid ""
31641 " char **\n"
31642 " guestfs_zgrep (guestfs_h *g,\n"
31643 "                const char *regex,\n"
31644 "                const char *path);\n"
31645 "\n"
31646 msgstr ""
31647 " char **\n"
31648 " guestfs_zgrep (guestfs_h *g,\n"
31649 "                const char *regex,\n"
31650 "                const char *path);\n"
31651 "\n"
31652
31653 #. type: =head2
31654 #: ../src/guestfs-actions.pod:7922
31655 msgid "guestfs_zgrepi"
31656 msgstr "guestfs_zgrepi"
31657
31658 #. type: verbatim
31659 #: ../src/guestfs-actions.pod:7924
31660 #, no-wrap
31661 msgid ""
31662 " char **\n"
31663 " guestfs_zgrepi (guestfs_h *g,\n"
31664 "                 const char *regex,\n"
31665 "                 const char *path);\n"
31666 "\n"
31667 msgstr ""
31668 " char **\n"
31669 " guestfs_zgrepi (guestfs_h *g,\n"
31670 "                 const char *regex,\n"
31671 "                 const char *path);\n"
31672 "\n"
31673
31674 #. type: =item
31675 #: ../src/guestfs-availability.pod:3
31676 msgid "B<augeas>"
31677 msgstr "B<augeas>"
31678
31679 #. type: textblock
31680 #: ../src/guestfs-availability.pod:5
31681 msgid ""
31682 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
31683 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
31684 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
31685 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
31686 "L</guestfs_aug_save> L</guestfs_aug_set>"
31687 msgstr ""
31688
31689 #. type: =item
31690 #: ../src/guestfs-availability.pod:21
31691 msgid "B<btrfs>"
31692 msgstr ""
31693
31694 #. type: textblock
31695 #: ../src/guestfs-availability.pod:23
31696 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31697 msgstr ""
31698
31699 #. type: =item
31700 #: ../src/guestfs-availability.pod:26
31701 msgid "B<inotify>"
31702 msgstr "B<inotify>"
31703
31704 #. type: textblock
31705 #: ../src/guestfs-availability.pod:28
31706 msgid ""
31707 "The following functions: L</guestfs_inotify_add_watch> L</"
31708 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
31709 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31710 msgstr ""
31711
31712 #. type: =item
31713 #: ../src/guestfs-availability.pod:36
31714 msgid "B<linuxfsuuid>"
31715 msgstr "B<linuxfsuuid>"
31716
31717 #. type: textblock
31718 #: ../src/guestfs-availability.pod:38
31719 msgid ""
31720 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
31721 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31722 msgstr ""
31723
31724 #. type: =item
31725 #: ../src/guestfs-availability.pod:45
31726 msgid "B<linuxmodules>"
31727 msgstr "B<linuxmodules>"
31728
31729 #. type: textblock
31730 #: ../src/guestfs-availability.pod:47
31731 msgid "The following functions: L</guestfs_modprobe>"
31732 msgstr ""
31733
31734 #. type: =item
31735 #: ../src/guestfs-availability.pod:50
31736 msgid "B<linuxxattrs>"
31737 msgstr "B<linuxxattrs>"
31738
31739 #. type: textblock
31740 #: ../src/guestfs-availability.pod:52
31741 msgid ""
31742 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
31743 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
31744 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
31745 "guestfs_setxattr>"
31746 msgstr ""
31747
31748 #. type: =item
31749 #: ../src/guestfs-availability.pod:63
31750 msgid "B<luks>"
31751 msgstr "B<luks>"
31752
31753 #. type: textblock
31754 #: ../src/guestfs-availability.pod:65
31755 msgid ""
31756 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31757 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31758 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31759 msgstr ""
31760
31761 #. type: =item
31762 #: ../src/guestfs-availability.pod:74
31763 msgid "B<lvm2>"
31764 msgstr "B<lvm2>"
31765
31766 #. type: textblock
31767 #: ../src/guestfs-availability.pod:76
31768 msgid ""
31769 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31770 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31771 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31772 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31773 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31774 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31775 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31776 msgstr ""
31777
31778 #. type: =item
31779 #: ../src/guestfs-availability.pod:99
31780 msgid "B<mknod>"
31781 msgstr "B<mknod>"
31782
31783 #. type: textblock
31784 #: ../src/guestfs-availability.pod:101
31785 msgid ""
31786 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31787 "guestfs_mknod_b> L</guestfs_mknod_c>"
31788 msgstr ""
31789
31790 #. type: =item
31791 #: ../src/guestfs-availability.pod:107
31792 msgid "B<ntfs3g>"
31793 msgstr "B<ntfs3g>"
31794
31795 #. type: textblock
31796 #: ../src/guestfs-availability.pod:109
31797 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31798 msgstr ""
31799
31800 #. type: =item
31801 #: ../src/guestfs-availability.pod:112
31802 msgid "B<ntfsprogs>"
31803 msgstr "B<ntfsprogs>"
31804
31805 #. type: textblock
31806 #: ../src/guestfs-availability.pod:114
31807 msgid ""
31808 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31809 "L</guestfs_ntfsresize_size>"
31810 msgstr ""
31811
31812 #. type: =item
31813 #: ../src/guestfs-availability.pod:119
31814 msgid "B<realpath>"
31815 msgstr "B<realpath>"
31816
31817 #. type: textblock
31818 #: ../src/guestfs-availability.pod:121
31819 msgid "The following functions: L</guestfs_realpath>"
31820 msgstr ""
31821
31822 #. type: =item
31823 #: ../src/guestfs-availability.pod:124
31824 msgid "B<scrub>"
31825 msgstr "B<scrub>"
31826
31827 #. type: textblock
31828 #: ../src/guestfs-availability.pod:126
31829 msgid ""
31830 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31831 "guestfs_scrub_freespace>"
31832 msgstr ""
31833
31834 #. type: =item
31835 #: ../src/guestfs-availability.pod:131
31836 msgid "B<selinux>"
31837 msgstr "B<selinux>"
31838
31839 #. type: textblock
31840 #: ../src/guestfs-availability.pod:133
31841 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31842 msgstr ""
31843
31844 #. type: =item
31845 #: ../src/guestfs-availability.pod:137
31846 msgid "B<xz>"
31847 msgstr "B<xz>"
31848
31849 #. type: textblock
31850 #: ../src/guestfs-availability.pod:139
31851 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31852 msgstr ""
31853
31854 #. type: =item
31855 #: ../src/guestfs-availability.pod:143
31856 msgid "B<zerofree>"
31857 msgstr "B<zerofree>"
31858
31859 #. type: textblock
31860 #: ../src/guestfs-availability.pod:145
31861 msgid "The following functions: L</guestfs_zerofree>"
31862 msgstr ""
31863
31864 #. type: =head2
31865 #: ../src/guestfs-structs.pod:1
31866 msgid "guestfs_int_bool"
31867 msgstr ""
31868
31869 #. type: verbatim
31870 #: ../src/guestfs-structs.pod:3
31871 #, no-wrap
31872 msgid ""
31873 " struct guestfs_int_bool {\n"
31874 "   int32_t i;\n"
31875 "   int32_t b;\n"
31876 " };\n"
31877 " \n"
31878 msgstr ""
31879
31880 #. type: verbatim
31881 #: ../src/guestfs-structs.pod:8
31882 #, no-wrap
31883 msgid ""
31884 " struct guestfs_int_bool_list {\n"
31885 "   uint32_t len; /* Number of elements in list. */\n"
31886 "   struct guestfs_int_bool *val; /* Elements. */\n"
31887 " };\n"
31888 " \n"
31889 msgstr ""
31890
31891 #. type: verbatim
31892 #: ../src/guestfs-structs.pod:13
31893 #, no-wrap
31894 msgid ""
31895 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
31896 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
31897 "\n"
31898 msgstr ""
31899
31900 #. type: =head2
31901 #: ../src/guestfs-structs.pod:16
31902 msgid "guestfs_lvm_pv"
31903 msgstr ""
31904
31905 #. type: verbatim
31906 #: ../src/guestfs-structs.pod:18
31907 #, no-wrap
31908 msgid ""
31909 " struct guestfs_lvm_pv {\n"
31910 "   char *pv_name;\n"
31911 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31912 "   char pv_uuid[32];\n"
31913 "   char *pv_fmt;\n"
31914 "   uint64_t pv_size;\n"
31915 "   uint64_t dev_size;\n"
31916 "   uint64_t pv_free;\n"
31917 "   uint64_t pv_used;\n"
31918 "   char *pv_attr;\n"
31919 "   int64_t pv_pe_count;\n"
31920 "   int64_t pv_pe_alloc_count;\n"
31921 "   char *pv_tags;\n"
31922 "   uint64_t pe_start;\n"
31923 "   int64_t pv_mda_count;\n"
31924 "   uint64_t pv_mda_free;\n"
31925 " };\n"
31926 " \n"
31927 msgstr ""
31928
31929 #. type: verbatim
31930 #: ../src/guestfs-structs.pod:36
31931 #, no-wrap
31932 msgid ""
31933 " struct guestfs_lvm_pv_list {\n"
31934 "   uint32_t len; /* Number of elements in list. */\n"
31935 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
31936 " };\n"
31937 " \n"
31938 msgstr ""
31939
31940 #. type: verbatim
31941 #: ../src/guestfs-structs.pod:41
31942 #, no-wrap
31943 msgid ""
31944 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
31945 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
31946 "\n"
31947 msgstr ""
31948
31949 #. type: =head2
31950 #: ../src/guestfs-structs.pod:44
31951 msgid "guestfs_lvm_vg"
31952 msgstr ""
31953
31954 #. type: verbatim
31955 #: ../src/guestfs-structs.pod:46
31956 #, no-wrap
31957 msgid ""
31958 " struct guestfs_lvm_vg {\n"
31959 "   char *vg_name;\n"
31960 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
31961 "   char vg_uuid[32];\n"
31962 "   char *vg_fmt;\n"
31963 "   char *vg_attr;\n"
31964 "   uint64_t vg_size;\n"
31965 "   uint64_t vg_free;\n"
31966 "   char *vg_sysid;\n"
31967 "   uint64_t vg_extent_size;\n"
31968 "   int64_t vg_extent_count;\n"
31969 "   int64_t vg_free_count;\n"
31970 "   int64_t max_lv;\n"
31971 "   int64_t max_pv;\n"
31972 "   int64_t pv_count;\n"
31973 "   int64_t lv_count;\n"
31974 "   int64_t snap_count;\n"
31975 "   int64_t vg_seqno;\n"
31976 "   char *vg_tags;\n"
31977 "   int64_t vg_mda_count;\n"
31978 "   uint64_t vg_mda_free;\n"
31979 " };\n"
31980 " \n"
31981 msgstr ""
31982
31983 #. type: verbatim
31984 #: ../src/guestfs-structs.pod:69
31985 #, no-wrap
31986 msgid ""
31987 " struct guestfs_lvm_vg_list {\n"
31988 "   uint32_t len; /* Number of elements in list. */\n"
31989 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
31990 " };\n"
31991 " \n"
31992 msgstr ""
31993
31994 #. type: verbatim
31995 #: ../src/guestfs-structs.pod:74
31996 #, no-wrap
31997 msgid ""
31998 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
31999 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32000 "\n"
32001 msgstr ""
32002
32003 #. type: =head2
32004 #: ../src/guestfs-structs.pod:77
32005 msgid "guestfs_lvm_lv"
32006 msgstr ""
32007
32008 #. type: verbatim
32009 #: ../src/guestfs-structs.pod:79
32010 #, no-wrap
32011 msgid ""
32012 " struct guestfs_lvm_lv {\n"
32013 "   char *lv_name;\n"
32014 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32015 "   char lv_uuid[32];\n"
32016 "   char *lv_attr;\n"
32017 "   int64_t lv_major;\n"
32018 "   int64_t lv_minor;\n"
32019 "   int64_t lv_kernel_major;\n"
32020 "   int64_t lv_kernel_minor;\n"
32021 "   uint64_t lv_size;\n"
32022 "   int64_t seg_count;\n"
32023 "   char *origin;\n"
32024 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32025 "   float snap_percent;\n"
32026 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32027 "   float copy_percent;\n"
32028 "   char *move_pv;\n"
32029 "   char *lv_tags;\n"
32030 "   char *mirror_log;\n"
32031 "   char *modules;\n"
32032 " };\n"
32033 " \n"
32034 msgstr ""
32035
32036 #. type: verbatim
32037 #: ../src/guestfs-structs.pod:101
32038 #, no-wrap
32039 msgid ""
32040 " struct guestfs_lvm_lv_list {\n"
32041 "   uint32_t len; /* Number of elements in list. */\n"
32042 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
32043 " };\n"
32044 " \n"
32045 msgstr ""
32046
32047 #. type: verbatim
32048 #: ../src/guestfs-structs.pod:106
32049 #, no-wrap
32050 msgid ""
32051 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32052 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32053 "\n"
32054 msgstr ""
32055
32056 #. type: verbatim
32057 #: ../src/guestfs-structs.pod:111
32058 #, no-wrap
32059 msgid ""
32060 " struct guestfs_stat {\n"
32061 "   int64_t dev;\n"
32062 "   int64_t ino;\n"
32063 "   int64_t mode;\n"
32064 "   int64_t nlink;\n"
32065 "   int64_t uid;\n"
32066 "   int64_t gid;\n"
32067 "   int64_t rdev;\n"
32068 "   int64_t size;\n"
32069 "   int64_t blksize;\n"
32070 "   int64_t blocks;\n"
32071 "   int64_t atime;\n"
32072 "   int64_t mtime;\n"
32073 "   int64_t ctime;\n"
32074 " };\n"
32075 " \n"
32076 msgstr ""
32077
32078 #. type: verbatim
32079 #: ../src/guestfs-structs.pod:127
32080 #, no-wrap
32081 msgid ""
32082 " struct guestfs_stat_list {\n"
32083 "   uint32_t len; /* Number of elements in list. */\n"
32084 "   struct guestfs_stat *val; /* Elements. */\n"
32085 " };\n"
32086 " \n"
32087 msgstr ""
32088
32089 #. type: verbatim
32090 #: ../src/guestfs-structs.pod:132
32091 #, no-wrap
32092 msgid ""
32093 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32094 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32095 "\n"
32096 msgstr ""
32097
32098 #. type: verbatim
32099 #: ../src/guestfs-structs.pod:137
32100 #, no-wrap
32101 msgid ""
32102 " struct guestfs_statvfs {\n"
32103 "   int64_t bsize;\n"
32104 "   int64_t frsize;\n"
32105 "   int64_t blocks;\n"
32106 "   int64_t bfree;\n"
32107 "   int64_t bavail;\n"
32108 "   int64_t files;\n"
32109 "   int64_t ffree;\n"
32110 "   int64_t favail;\n"
32111 "   int64_t fsid;\n"
32112 "   int64_t flag;\n"
32113 "   int64_t namemax;\n"
32114 " };\n"
32115 " \n"
32116 msgstr ""
32117
32118 #. type: verbatim
32119 #: ../src/guestfs-structs.pod:151
32120 #, no-wrap
32121 msgid ""
32122 " struct guestfs_statvfs_list {\n"
32123 "   uint32_t len; /* Number of elements in list. */\n"
32124 "   struct guestfs_statvfs *val; /* Elements. */\n"
32125 " };\n"
32126 " \n"
32127 msgstr ""
32128
32129 #. type: verbatim
32130 #: ../src/guestfs-structs.pod:156
32131 #, no-wrap
32132 msgid ""
32133 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32134 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32135 "\n"
32136 msgstr ""
32137
32138 #. type: =head2
32139 #: ../src/guestfs-structs.pod:159
32140 msgid "guestfs_dirent"
32141 msgstr ""
32142
32143 #. type: verbatim
32144 #: ../src/guestfs-structs.pod:161
32145 #, no-wrap
32146 msgid ""
32147 " struct guestfs_dirent {\n"
32148 "   int64_t ino;\n"
32149 "   char ftyp;\n"
32150 "   char *name;\n"
32151 " };\n"
32152 " \n"
32153 msgstr ""
32154
32155 #. type: verbatim
32156 #: ../src/guestfs-structs.pod:167
32157 #, no-wrap
32158 msgid ""
32159 " struct guestfs_dirent_list {\n"
32160 "   uint32_t len; /* Number of elements in list. */\n"
32161 "   struct guestfs_dirent *val; /* Elements. */\n"
32162 " };\n"
32163 " \n"
32164 msgstr ""
32165
32166 #. type: verbatim
32167 #: ../src/guestfs-structs.pod:172
32168 #, no-wrap
32169 msgid ""
32170 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32171 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32172 "\n"
32173 msgstr ""
32174
32175 #. type: verbatim
32176 #: ../src/guestfs-structs.pod:177
32177 #, no-wrap
32178 msgid ""
32179 " struct guestfs_version {\n"
32180 "   int64_t major;\n"
32181 "   int64_t minor;\n"
32182 "   int64_t release;\n"
32183 "   char *extra;\n"
32184 " };\n"
32185 " \n"
32186 msgstr ""
32187
32188 #. type: verbatim
32189 #: ../src/guestfs-structs.pod:184
32190 #, no-wrap
32191 msgid ""
32192 " struct guestfs_version_list {\n"
32193 "   uint32_t len; /* Number of elements in list. */\n"
32194 "   struct guestfs_version *val; /* Elements. */\n"
32195 " };\n"
32196 " \n"
32197 msgstr ""
32198
32199 #. type: verbatim
32200 #: ../src/guestfs-structs.pod:189
32201 #, no-wrap
32202 msgid ""
32203 " void guestfs_free_version (struct guestfs_free_version *);\n"
32204 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32205 "\n"
32206 msgstr ""
32207
32208 #. type: =head2
32209 #: ../src/guestfs-structs.pod:192
32210 msgid "guestfs_xattr"
32211 msgstr ""
32212
32213 #. type: verbatim
32214 #: ../src/guestfs-structs.pod:194
32215 #, no-wrap
32216 msgid ""
32217 " struct guestfs_xattr {\n"
32218 "   char *attrname;\n"
32219 "   /* The next two fields describe a byte array. */\n"
32220 "   uint32_t attrval_len;\n"
32221 "   char *attrval;\n"
32222 " };\n"
32223 " \n"
32224 msgstr ""
32225
32226 #. type: verbatim
32227 #: ../src/guestfs-structs.pod:201
32228 #, no-wrap
32229 msgid ""
32230 " struct guestfs_xattr_list {\n"
32231 "   uint32_t len; /* Number of elements in list. */\n"
32232 "   struct guestfs_xattr *val; /* Elements. */\n"
32233 " };\n"
32234 " \n"
32235 msgstr ""
32236
32237 #. type: verbatim
32238 #: ../src/guestfs-structs.pod:206
32239 #, no-wrap
32240 msgid ""
32241 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32242 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32243 "\n"
32244 msgstr ""
32245
32246 #. type: =head2
32247 #: ../src/guestfs-structs.pod:209
32248 msgid "guestfs_inotify_event"
32249 msgstr ""
32250
32251 #. type: verbatim
32252 #: ../src/guestfs-structs.pod:211
32253 #, no-wrap
32254 msgid ""
32255 " struct guestfs_inotify_event {\n"
32256 "   int64_t in_wd;\n"
32257 "   uint32_t in_mask;\n"
32258 "   uint32_t in_cookie;\n"
32259 "   char *in_name;\n"
32260 " };\n"
32261 " \n"
32262 msgstr ""
32263
32264 #. type: verbatim
32265 #: ../src/guestfs-structs.pod:218
32266 #, no-wrap
32267 msgid ""
32268 " struct guestfs_inotify_event_list {\n"
32269 "   uint32_t len; /* Number of elements in list. */\n"
32270 "   struct guestfs_inotify_event *val; /* Elements. */\n"
32271 " };\n"
32272 " \n"
32273 msgstr ""
32274
32275 #. type: verbatim
32276 #: ../src/guestfs-structs.pod:223
32277 #, no-wrap
32278 msgid ""
32279 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32280 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32281 "\n"
32282 msgstr ""
32283
32284 #. type: =head2
32285 #: ../src/guestfs-structs.pod:226
32286 msgid "guestfs_partition"
32287 msgstr ""
32288
32289 #. type: verbatim
32290 #: ../src/guestfs-structs.pod:228
32291 #, no-wrap
32292 msgid ""
32293 " struct guestfs_partition {\n"
32294 "   int32_t part_num;\n"
32295 "   uint64_t part_start;\n"
32296 "   uint64_t part_end;\n"
32297 "   uint64_t part_size;\n"
32298 " };\n"
32299 " \n"
32300 msgstr ""
32301
32302 #. type: verbatim
32303 #: ../src/guestfs-structs.pod:235
32304 #, no-wrap
32305 msgid ""
32306 " struct guestfs_partition_list {\n"
32307 "   uint32_t len; /* Number of elements in list. */\n"
32308 "   struct guestfs_partition *val; /* Elements. */\n"
32309 " };\n"
32310 " \n"
32311 msgstr ""
32312
32313 #. type: verbatim
32314 #: ../src/guestfs-structs.pod:240
32315 #, no-wrap
32316 msgid ""
32317 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32318 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32319 "\n"
32320 msgstr ""
32321
32322 #. type: =head2
32323 #: ../src/guestfs-structs.pod:243
32324 msgid "guestfs_application"
32325 msgstr ""
32326
32327 #. type: verbatim
32328 #: ../src/guestfs-structs.pod:245
32329 #, no-wrap
32330 msgid ""
32331 " struct guestfs_application {\n"
32332 "   char *app_name;\n"
32333 "   char *app_display_name;\n"
32334 "   int32_t app_epoch;\n"
32335 "   char *app_version;\n"
32336 "   char *app_release;\n"
32337 "   char *app_install_path;\n"
32338 "   char *app_trans_path;\n"
32339 "   char *app_publisher;\n"
32340 "   char *app_url;\n"
32341 "   char *app_source_package;\n"
32342 "   char *app_summary;\n"
32343 "   char *app_description;\n"
32344 " };\n"
32345 " \n"
32346 msgstr ""
32347
32348 #. type: verbatim
32349 #: ../src/guestfs-structs.pod:260
32350 #, no-wrap
32351 msgid ""
32352 " struct guestfs_application_list {\n"
32353 "   uint32_t len; /* Number of elements in list. */\n"
32354 "   struct guestfs_application *val; /* Elements. */\n"
32355 " };\n"
32356 " \n"
32357 msgstr ""
32358
32359 #. type: verbatim
32360 #: ../src/guestfs-structs.pod:265
32361 #, no-wrap
32362 msgid ""
32363 " void guestfs_free_application (struct guestfs_free_application *);\n"
32364 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32365 "\n"
32366 msgstr ""
32367
32368 #. type: textblock
32369 #: ../src/guestfs.pod:5
32370 msgid "guestfs - Library for accessing and modifying virtual machine images"
32371 msgstr ""
32372 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
32373 "машин"
32374
32375 #. type: verbatim
32376 #: ../src/guestfs.pod:11
32377 #, no-wrap
32378 msgid ""
32379 " guestfs_h *g = guestfs_create ();\n"
32380 " guestfs_add_drive (g, \"guest.img\");\n"
32381 " guestfs_launch (g);\n"
32382 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32383 " guestfs_touch (g, \"/hello\");\n"
32384 " guestfs_umount (g, \"/\");\n"
32385 " guestfs_close (g);\n"
32386 "\n"
32387 msgstr ""
32388 " guestfs_h *g = guestfs_create ();\n"
32389 " guestfs_add_drive (g, \"guest.img\");\n"
32390 " guestfs_launch (g);\n"
32391 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32392 " guestfs_touch (g, \"/hello\");\n"
32393 " guestfs_umount (g, \"/\");\n"
32394 " guestfs_close (g);\n"
32395 "\n"
32396
32397 #. type: textblock
32398 #: ../src/guestfs.pod:25
32399 msgid ""
32400 "Libguestfs is a library for accessing and modifying guest disk images.  "
32401 "Amongst the things this is good for: making batch configuration changes to "
32402 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32403 "between virtualization systems (see also: virt-p2v), performing partial "
32404 "backups, performing partial guest clones, cloning guests and changing "
32405 "registry/UUID/hostname info, and much else besides."
32406 msgstr ""
32407
32408 #. type: textblock
32409 #: ../src/guestfs.pod:33
32410 msgid ""
32411 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32412 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32413 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32414 "qcow2, vmdk."
32415 msgstr ""
32416
32417 #. type: textblock
32418 #: ../src/guestfs.pod:38
32419 msgid ""
32420 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32421 "what filesystem is in each LV, etc.).  It can also run commands in the "
32422 "context of the guest.  Also you can access filesystems over FUSE."
32423 msgstr ""
32424
32425 #. type: textblock
32426 #: ../src/guestfs.pod:43
32427 msgid ""
32428 "Libguestfs is a library that can be linked with C and C++ management "
32429 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32430 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
32431 "line."
32432 msgstr ""
32433
32434 #. type: textblock
32435 #: ../src/guestfs.pod:48
32436 msgid ""
32437 "You don't need to be root to use libguestfs, although obviously you do need "
32438 "enough permissions to access the disk images."
32439 msgstr ""
32440
32441 #. type: textblock
32442 #: ../src/guestfs.pod:51
32443 msgid ""
32444 "Libguestfs is a large API because it can do many things.  For a gentle "
32445 "introduction, please read the L</API OVERVIEW> section next."
32446 msgstr ""
32447
32448 #. type: textblock
32449 #: ../src/guestfs.pod:54
32450 msgid ""
32451 "There are also some example programs in the L<guestfs-examples(3)> manual "
32452 "page."
32453 msgstr ""
32454
32455 #. type: =head1
32456 #: ../src/guestfs.pod:57
32457 msgid "API OVERVIEW"
32458 msgstr "ОГЛЯД API"
32459
32460 #. type: textblock
32461 #: ../src/guestfs.pod:59
32462 msgid ""
32463 "This section provides a gentler overview of the libguestfs API.  We also try "
32464 "to group API calls together, where that may not be obvious from reading "
32465 "about the individual calls in the main section of this manual."
32466 msgstr ""
32467
32468 #. type: =head2
32469 #: ../src/guestfs.pod:64
32470 msgid "HANDLES"
32471 msgstr "ОБРОБНИКИ"
32472
32473 #. type: textblock
32474 #: ../src/guestfs.pod:66
32475 msgid ""
32476 "Before you can use libguestfs calls, you have to create a handle.  Then you "
32477 "must add at least one disk image to the handle, followed by launching the "
32478 "handle, then performing whatever operations you want, and finally closing "
32479 "the handle.  By convention we use the single letter C<g> for the name of the "
32480 "handle variable, although of course you can use any name you want."
32481 msgstr ""
32482
32483 #. type: textblock
32484 #: ../src/guestfs.pod:73
32485 msgid "The general structure of all libguestfs-using programs looks like this:"
32486 msgstr ""
32487
32488 #. type: verbatim
32489 #: ../src/guestfs.pod:76
32490 #, no-wrap
32491 msgid ""
32492 " guestfs_h *g = guestfs_create ();\n"
32493 " \n"
32494 msgstr ""
32495 " guestfs_h *g = guestfs_create ();\n"
32496 " \n"
32497
32498 #. type: verbatim
32499 #: ../src/guestfs.pod:78
32500 #, no-wrap
32501 msgid ""
32502 " /* Call guestfs_add_drive additional times if there are\n"
32503 "  * multiple disk images.\n"
32504 "  */\n"
32505 " guestfs_add_drive (g, \"guest.img\");\n"
32506 " \n"
32507 msgstr ""
32508
32509 #. type: verbatim
32510 #: ../src/guestfs.pod:83
32511 #, no-wrap
32512 msgid ""
32513 " /* Most manipulation calls won't work until you've launched\n"
32514 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
32515 "  * and _before_ other commands.\n"
32516 "  */\n"
32517 " guestfs_launch (g);\n"
32518 " \n"
32519 msgstr ""
32520
32521 #. type: verbatim
32522 #: ../src/guestfs.pod:89
32523 #, no-wrap
32524 msgid ""
32525 " /* Now you can examine what partitions, LVs etc are available.\n"
32526 "  */\n"
32527 " char **partitions = guestfs_list_partitions (g);\n"
32528 " char **logvols = guestfs_lvs (g);\n"
32529 " \n"
32530 msgstr ""
32531 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
32532 "  */\n"
32533 " char **partitions = guestfs_list_partitions (g);\n"
32534 " char **logvols = guestfs_lvs (g);\n"
32535 " \n"
32536
32537 #. type: verbatim
32538 #: ../src/guestfs.pod:94
32539 #, no-wrap
32540 msgid ""
32541 " /* To access a filesystem in the image, you must mount it.\n"
32542 "  */\n"
32543 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32544 " \n"
32545 msgstr ""
32546 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
32547 "  */\n"
32548 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32549 " \n"
32550
32551 #. type: verbatim
32552 #: ../src/guestfs.pod:98
32553 #, no-wrap
32554 msgid ""
32555 " /* Now you can perform filesystem actions on the guest\n"
32556 "  * disk image.\n"
32557 "  */\n"
32558 " guestfs_touch (g, \"/hello\");\n"
32559 " \n"
32560 msgstr ""
32561
32562 #. type: verbatim
32563 #: ../src/guestfs.pod:103
32564 #, no-wrap
32565 msgid ""
32566 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
32567 "  * it is done automatically when you close the handle.  See\n"
32568 "  * discussion of autosync in this page.\n"
32569 "  */\n"
32570 " guestfs_sync (g);\n"
32571 " \n"
32572 msgstr ""
32573
32574 #. type: verbatim
32575 #: ../src/guestfs.pod:109
32576 #, no-wrap
32577 msgid ""
32578 " /* Close the handle 'g'. */\n"
32579 " guestfs_close (g);\n"
32580 "\n"
32581 msgstr ""
32582 " /* Закрити дескриптор 'g'. */\n"
32583 " guestfs_close (g);\n"
32584 "\n"
32585
32586 #. type: textblock
32587 #: ../src/guestfs.pod:112
32588 msgid ""
32589 "The code above doesn't include any error checking.  In real code you should "
32590 "check return values carefully for errors.  In general all functions that "
32591 "return integers return C<-1> on error, and all functions that return "
32592 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
32593 "how to handle errors, and consult the documentation for each function call "
32594 "below to see precisely how they return error indications.  See L<guestfs-"
32595 "examples(3)> for fully worked examples."
32596 msgstr ""
32597
32598 #. type: =head2
32599 #: ../src/guestfs.pod:121
32600 msgid "DISK IMAGES"
32601 msgstr "ОБРАЗИ ДИСКІВ"
32602
32603 #. type: textblock
32604 #: ../src/guestfs.pod:123
32605 msgid ""
32606 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32607 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32608 "actual block device, or simply an empty file of zeroes that you have created "
32609 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
32610 "of these."
32611 msgstr ""
32612
32613 #. type: textblock
32614 #: ../src/guestfs.pod:129
32615 msgid ""
32616 "The call you should use in modern code for adding drives is L</"
32617 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
32618 "specifying that the format is raw, do:"
32619 msgstr ""
32620
32621 #. type: verbatim
32622 #: ../src/guestfs.pod:133
32623 #, no-wrap
32624 msgid ""
32625 " guestfs_add_drive_opts (g, filename,\n"
32626 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32627 "                         -1);\n"
32628 "\n"
32629 msgstr ""
32630 " guestfs_add_drive_opts (g, filename,\n"
32631 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32632 "                         -1);\n"
32633 "\n"
32634
32635 #. type: textblock
32636 #: ../src/guestfs.pod:137
32637 msgid "You can add a disk read-only using:"
32638 msgstr "Ви можете додати диск у режимі лише читання:"
32639
32640 #. type: verbatim
32641 #: ../src/guestfs.pod:139
32642 #, no-wrap
32643 msgid ""
32644 " guestfs_add_drive_opts (g, filename,\n"
32645 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32646 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32647 "                         -1);\n"
32648 "\n"
32649 msgstr ""
32650 " guestfs_add_drive_opts (g, filename,\n"
32651 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32652 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32653 "                         -1);\n"
32654 "\n"
32655
32656 #. type: textblock
32657 #: ../src/guestfs.pod:144
32658 msgid ""
32659 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
32660 "libguestfs won't modify the file."
32661 msgstr ""
32662
32663 #. type: textblock
32664 #: ../src/guestfs.pod:147
32665 msgid ""
32666 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32667 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
32668 "corruption, but adding it read-only is safe."
32669 msgstr ""
32670
32671 #. type: textblock
32672 #: ../src/guestfs.pod:151
32673 msgid ""
32674 "You must add at least one disk image, and you may add multiple disk images.  "
32675 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32676 "first one you added), C</dev/sdb> (for the second one you added), etc."
32677 msgstr ""
32678
32679 #. type: textblock
32680 #: ../src/guestfs.pod:156
32681 msgid ""
32682 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
32683 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32684 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
32685 msgstr ""
32686
32687 #. type: =head2
32688 #: ../src/guestfs.pod:161
32689 msgid "MOUNTING"
32690 msgstr "МОНТУВАННЯ"
32691
32692 #. type: textblock
32693 #: ../src/guestfs.pod:163
32694 msgid ""
32695 "Before you can read or write files, create directories and so on in a disk "
32696 "image that contains filesystems, you have to mount those filesystems using "
32697 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
32698 "a disk image contains (for example) one partition with a filesystem on that "
32699 "partition, then you can mount it directly:"
32700 msgstr ""
32701
32702 #. type: verbatim
32703 #: ../src/guestfs.pod:170
32704 #, no-wrap
32705 msgid ""
32706 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32707 "\n"
32708 msgstr ""
32709 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32710 "\n"
32711
32712 #. type: textblock
32713 #: ../src/guestfs.pod:172
32714 msgid ""
32715 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32716 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
32717 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
32718 "that these are libguestfs virtual devices, and are nothing to do with host "
32719 "devices."
32720 msgstr ""
32721
32722 #. type: textblock
32723 #: ../src/guestfs.pod:178
32724 msgid ""
32725 "If you are given a disk image and you don't know what it contains then you "
32726 "have to find out.  Libguestfs can do that too: use L</"
32727 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
32728 "LVs, and either try mounting each to see what is mountable, or else examine "
32729 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
32730 "filesystems, use L</guestfs_list_filesystems>."
32731 msgstr ""
32732
32733 #. type: textblock
32734 #: ../src/guestfs.pod:186
32735 msgid ""
32736 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32737 "L</INSPECTION> below).  But you might find it easier to look at higher level "
32738 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32739 msgstr ""
32740
32741 #. type: textblock
32742 #: ../src/guestfs.pod:191
32743 msgid ""
32744 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
32745 "several other variations of the C<guestfs_mount_*> call."
32746 msgstr ""
32747
32748 #. type: =head2
32749 #: ../src/guestfs.pod:194
32750 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32751 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
32752
32753 #. type: textblock
32754 #: ../src/guestfs.pod:196
32755 msgid ""
32756 "The majority of the libguestfs API consists of fairly low-level calls for "
32757 "accessing and modifying the files, directories, symlinks etc on mounted "
32758 "filesystems.  There are over a hundred such calls which you can find listed "
32759 "in detail below in this man page, and we don't even pretend to cover them "
32760 "all in this overview."
32761 msgstr ""
32762
32763 #. type: textblock
32764 #: ../src/guestfs.pod:202
32765 msgid ""
32766 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32767 "mount point."
32768 msgstr ""
32769 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
32770 "точкою монтування."
32771
32772 #. type: textblock
32773 #: ../src/guestfs.pod:205
32774 msgid ""
32775 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32776 "the file called C<\"etc/passwd\"> then you could do:"
32777 msgstr ""
32778 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
32779 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
32780 "таким кодом:"
32781
32782 #. type: verbatim
32783 #: ../src/guestfs.pod:208
32784 #, no-wrap
32785 msgid ""
32786 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32787 "\n"
32788 msgstr ""
32789 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32790 "\n"
32791
32792 #. type: textblock
32793 #: ../src/guestfs.pod:210
32794 msgid ""
32795 "This would return C<data> as a newly allocated buffer containing the full "
32796 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32797 "or C<NULL> if there was an error."
32798 msgstr ""
32799
32800 #. type: textblock
32801 #: ../src/guestfs.pod:214
32802 msgid ""
32803 "As another example, to create a top-level directory on that filesystem "
32804 "called C<\"var\"> you would do:"
32805 msgstr ""
32806
32807 #. type: verbatim
32808 #: ../src/guestfs.pod:217
32809 #, no-wrap
32810 msgid ""
32811 " guestfs_mkdir (g, \"/var\");\n"
32812 "\n"
32813 msgstr ""
32814 " guestfs_mkdir (g, \"/var\");\n"
32815 "\n"
32816
32817 #. type: textblock
32818 #: ../src/guestfs.pod:219
32819 msgid "To create a symlink you could do:"
32820 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
32821
32822 #. type: verbatim
32823 #: ../src/guestfs.pod:221
32824 #, no-wrap
32825 msgid ""
32826 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32827 "               \"/etc/rc3.d/S30portmap\");\n"
32828 "\n"
32829 msgstr ""
32830 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32831 "               \"/etc/rc3.d/S30portmap\");\n"
32832 "\n"
32833
32834 #. type: textblock
32835 #: ../src/guestfs.pod:224
32836 msgid ""
32837 "Libguestfs will reject attempts to use relative paths and there is no "
32838 "concept of a current working directory."
32839 msgstr ""
32840
32841 #. type: textblock
32842 #: ../src/guestfs.pod:227
32843 msgid ""
32844 "Libguestfs can return errors in many situations: for example if the "
32845 "filesystem isn't writable, or if a file or directory that you requested "
32846 "doesn't exist.  If you are using the C API (documented here)  you have to "
32847 "check for those error conditions after each call.  (Other language bindings "
32848 "turn these errors into exceptions)."
32849 msgstr ""
32850
32851 #. type: textblock
32852 #: ../src/guestfs.pod:233
32853 msgid ""
32854 "File writes are affected by the per-handle umask, set by calling L</"
32855 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
32856 msgstr ""
32857
32858 #. type: =head2
32859 #: ../src/guestfs.pod:236
32860 msgid "PARTITIONING"
32861 msgstr "ПОДІЛ НА РОЗДІЛИ"
32862
32863 #. type: textblock
32864 #: ../src/guestfs.pod:238
32865 msgid ""
32866 "Libguestfs contains API calls to read, create and modify partition tables on "
32867 "disk images."
32868 msgstr ""
32869
32870 #. type: textblock
32871 #: ../src/guestfs.pod:241
32872 msgid ""
32873 "In the common case where you want to create a single partition covering the "
32874 "whole disk, you should use the L</guestfs_part_disk> call:"
32875 msgstr ""
32876
32877 #. type: verbatim
32878 #: ../src/guestfs.pod:245
32879 #, no-wrap
32880 msgid ""
32881 " const char *parttype = \"mbr\";\n"
32882 " if (disk_is_larger_than_2TB)\n"
32883 "   parttype = \"gpt\";\n"
32884 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32885 "\n"
32886 msgstr ""
32887 " const char *parttype = \"mbr\";\n"
32888 " if (disk_is_larger_than_2TB)\n"
32889 "   parttype = \"gpt\";\n"
32890 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32891 "\n"
32892
32893 #. type: textblock
32894 #: ../src/guestfs.pod:250
32895 msgid ""
32896 "Obviously this effectively wipes anything that was on that disk image before."
32897 msgstr ""
32898
32899 #. type: =head2
32900 #: ../src/guestfs.pod:253
32901 msgid "LVM2"
32902 msgstr "LVM2"
32903
32904 #. type: textblock
32905 #: ../src/guestfs.pod:255
32906 msgid ""
32907 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
32908 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
32909 "you familiarize yourself with the concepts of physical volumes, volume "
32910 "groups and logical volumes."
32911 msgstr ""
32912
32913 #. type: textblock
32914 #: ../src/guestfs.pod:260
32915 msgid ""
32916 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
32917 "tldp.org/HOWTO/LVM-HOWTO/>."
32918 msgstr ""
32919
32920 #. type: =head2
32921 #: ../src/guestfs.pod:263
32922 msgid "DOWNLOADING"
32923 msgstr "ОТРИМАННЯ ДАНИХ"
32924
32925 #. type: textblock
32926 #: ../src/guestfs.pod:265
32927 msgid ""
32928 "Use L</guestfs_cat> to download small, text only files.  This call is "
32929 "limited to files which are less than 2 MB and which cannot contain any ASCII "
32930 "NUL (C<\\0>) characters.  However the API is very simple to use."
32931 msgstr ""
32932
32933 #. type: textblock
32934 #: ../src/guestfs.pod:269
32935 msgid ""
32936 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
32937 "bit data, since it returns a (pointer, size) pair.  However it is still "
32938 "limited to \"small\" files, less than 2 MB."
32939 msgstr ""
32940
32941 #. type: textblock
32942 #: ../src/guestfs.pod:273
32943 msgid ""
32944 "L</guestfs_download> can be used to download any file, with no limits on "
32945 "content or size (even files larger than 4 GB)."
32946 msgstr ""
32947
32948 #. type: textblock
32949 #: ../src/guestfs.pod:276
32950 msgid ""
32951 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
32952 msgstr ""
32953
32954 #. type: =head2
32955 #: ../src/guestfs.pod:279
32956 msgid "UPLOADING"
32957 msgstr "ВИВАНТАЖЕННЯ"
32958
32959 #. type: textblock
32960 #: ../src/guestfs.pod:281
32961 msgid ""
32962 "It's often the case that you want to write a file or files to the disk image."
32963 msgstr ""
32964
32965 #. type: textblock
32966 #: ../src/guestfs.pod:284
32967 msgid ""
32968 "To write a small file with fixed content, use L</guestfs_write>.  To create "
32969 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
32970 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
32971 "of other functions for creating test files, for example L</guestfs_fill> and "
32972 "L</guestfs_fill_pattern>."
32973 msgstr ""
32974
32975 #. type: textblock
32976 #: ../src/guestfs.pod:290
32977 msgid ""
32978 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
32979 "file content or size (even files larger than 4 GB)."
32980 msgstr ""
32981
32982 #. type: textblock
32983 #: ../src/guestfs.pod:293
32984 msgid ""
32985 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
32986 msgstr ""
32987
32988 #. type: textblock
32989 #: ../src/guestfs.pod:295
32990 msgid ""
32991 "However the fastest way to upload I<large numbers of arbitrary files> is to "
32992 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
32993 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
32994 "in a predictable way (eg. adding it last after all other drives) then you "
32995 "can get the device name from L</guestfs_list_devices> and mount it directly "
32996 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
32997 "portable between kernel versions, and they don't support labels or UUIDs.  "
32998 "If you want to pre-build an image or you need to mount it using a label or "
32999 "UUID, use an ISO image instead."
33000 msgstr ""
33001
33002 #. type: =head2
33003 #: ../src/guestfs.pod:306
33004 msgid "COPYING"
33005 msgstr "КОПІЮВАННЯ"
33006
33007 #. type: textblock
33008 #: ../src/guestfs.pod:308
33009 msgid ""
33010 "There are various different commands for copying between files and devices "
33011 "and in and out of the guest filesystem.  These are summarised in the table "
33012 "below."
33013 msgstr ""
33014
33015 #. type: =item
33016 #: ../src/guestfs.pod:314
33017 msgid "B<file> to B<file>"
33018 msgstr "B<файл> у B<файл>"
33019
33020 #. type: textblock
33021 #: ../src/guestfs.pod:316
33022 msgid ""
33023 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33024 "directories recursively."
33025 msgstr ""
33026
33027 #. type: =item
33028 #: ../src/guestfs.pod:319
33029 msgid "B<file or device> to B<file or device>"
33030 msgstr "B<файл або пристрій> у B<файл або пристрій>"
33031
33032 #. type: textblock
33033 #: ../src/guestfs.pod:321
33034 msgid ""
33035 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33036 "devices in the guest."
33037 msgstr ""
33038
33039 #. type: textblock
33040 #: ../src/guestfs.pod:324
33041 msgid "Example: duplicate the contents of an LV:"
33042 msgstr ""
33043
33044 #. type: verbatim
33045 #: ../src/guestfs.pod:326
33046 #, no-wrap
33047 msgid ""
33048 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33049 "\n"
33050 msgstr ""
33051 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33052 "\n"
33053
33054 #. type: textblock
33055 #: ../src/guestfs.pod:328
33056 msgid ""
33057 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33058 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
33059 "guestfs_copy_size>."
33060 msgstr ""
33061
33062 #. type: =item
33063 #: ../src/guestfs.pod:332
33064 msgid "B<file on the host> to B<file or device>"
33065 msgstr ""
33066
33067 #. type: textblock
33068 #: ../src/guestfs.pod:334
33069 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
33070 msgstr ""
33071
33072 #. type: =item
33073 #: ../src/guestfs.pod:336
33074 msgid "B<file or device> to B<file on the host>"
33075 msgstr ""
33076
33077 #. type: textblock
33078 #: ../src/guestfs.pod:338
33079 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
33080 msgstr ""
33081
33082 #. type: =head2
33083 #: ../src/guestfs.pod:342
33084 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33085 msgstr ""
33086
33087 #. type: textblock
33088 #: ../src/guestfs.pod:344
33089 msgid ""
33090 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33091 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33092 "appears you can only upload and download to files.  However many Un*x-like "
33093 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33094 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33095 "and arbitrary file descriptor N."
33096 msgstr ""
33097
33098 #. type: textblock
33099 #: ../src/guestfs.pod:352
33100 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33101 msgstr ""
33102
33103 #. type: verbatim
33104 #: ../src/guestfs.pod:355
33105 #, no-wrap
33106 msgid ""
33107 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33108 "\n"
33109 msgstr ""
33110 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33111 "\n"
33112
33113 #. type: textblock
33114 #: ../src/guestfs.pod:357
33115 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33116 msgstr ""
33117
33118 #. type: verbatim
33119 #: ../src/guestfs.pod:359
33120 #, no-wrap
33121 msgid ""
33122 " char devfd[64];\n"
33123 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33124 " guestfs_tar_out (g, \"/\", devfd);\n"
33125 "\n"
33126 msgstr ""
33127 " char devfd[64];\n"
33128 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33129 " guestfs_tar_out (g, \"/\", devfd);\n"
33130 "\n"
33131
33132 #. type: =head2
33133 #: ../src/guestfs.pod:363
33134 msgid "LISTING FILES"
33135 msgstr "СПИСКИ ФАЙЛІВ"
33136
33137 #. type: textblock
33138 #: ../src/guestfs.pod:365
33139 msgid ""
33140 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33141 "L<guestfish(1)>-equivalent command C<ll>)."
33142 msgstr ""
33143
33144 #. type: textblock
33145 #: ../src/guestfs.pod:368
33146 msgid ""
33147 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33148 "programs, as a flat list of strings."
33149 msgstr ""
33150
33151 #. type: textblock
33152 #: ../src/guestfs.pod:371
33153 msgid ""
33154 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33155 "directory, plus additional information about each one.  It is more "
33156 "equivalent to using the L<readdir(3)> call on a local filesystem."
33157 msgstr ""
33158
33159 #. type: textblock
33160 #: ../src/guestfs.pod:375
33161 msgid ""
33162 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
33163 msgstr ""
33164
33165 #. type: =head2
33166 #: ../src/guestfs.pod:378
33167 msgid "RUNNING COMMANDS"
33168 msgstr "ВИКОНАННЯ КОМАНД"
33169
33170 #. type: textblock
33171 #: ../src/guestfs.pod:380
33172 msgid ""
33173 "Although libguestfs is primarily an API for manipulating files inside guest "
33174 "images, we also provide some limited facilities for running commands inside "
33175 "guests."
33176 msgstr ""
33177
33178 #. type: textblock
33179 #: ../src/guestfs.pod:384
33180 msgid "There are many limitations to this:"
33181 msgstr ""
33182
33183 #. type: textblock
33184 #: ../src/guestfs.pod:390
33185 msgid ""
33186 "The kernel version that the command runs under will be different from what "
33187 "it expects."
33188 msgstr ""
33189
33190 #. type: textblock
33191 #: ../src/guestfs.pod:395
33192 msgid ""
33193 "If the command needs to communicate with daemons, then most likely they "
33194 "won't be running."
33195 msgstr ""
33196
33197 #. type: textblock
33198 #: ../src/guestfs.pod:400
33199 msgid "The command will be running in limited memory."
33200 msgstr ""
33201
33202 #. type: textblock
33203 #: ../src/guestfs.pod:404
33204 msgid ""
33205 "The network may not be available unless you enable it (see L</"
33206 "guestfs_set_network>)."
33207 msgstr ""
33208
33209 #. type: textblock
33210 #: ../src/guestfs.pod:409
33211 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33212 msgstr ""
33213
33214 #. type: textblock
33215 #: ../src/guestfs.pod:413
33216 msgid ""
33217 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33218 msgstr ""
33219
33220 #. type: textblock
33221 #: ../src/guestfs.pod:418
33222 msgid ""
33223 "For SELinux guests, you may need to enable SELinux and load policy first.  "
33224 "See L</SELINUX> in this manpage."
33225 msgstr ""
33226
33227 #. type: textblock
33228 #: ../src/guestfs.pod:423
33229 msgid ""
33230 "I<Security:> It is not safe to run commands from untrusted, possibly "
33231 "malicious guests.  These commands may attempt to exploit your program by "
33232 "sending unexpected output.  They could also try to exploit the Linux kernel "
33233 "or qemu provided by the libguestfs appliance.  They could use the network "
33234 "provided by the libguestfs appliance to bypass ordinary network partitions "
33235 "and firewalls.  They could use the elevated privileges or different SELinux "
33236 "context of your program to their advantage."
33237 msgstr ""
33238
33239 #. type: textblock
33240 #: ../src/guestfs.pod:432
33241 msgid ""
33242 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33243 "(a script which runs when the guest next boots normally), and to have this "
33244 "script run the commands you want in the normal context of the running guest, "
33245 "network security and so on.  For information about other security issues, "
33246 "see L</SECURITY>."
33247 msgstr ""
33248
33249 #. type: textblock
33250 #: ../src/guestfs.pod:440
33251 msgid ""
33252 "The two main API calls to run commands are L</guestfs_command> and L</"
33253 "guestfs_sh> (there are also variations)."
33254 msgstr ""
33255
33256 #. type: textblock
33257 #: ../src/guestfs.pod:443
33258 msgid ""
33259 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33260 "shell globs, redirections, etc will work."
33261 msgstr ""
33262
33263 #. type: =head2
33264 #: ../src/guestfs.pod:446
33265 msgid "CONFIGURATION FILES"
33266 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
33267
33268 #. type: textblock
33269 #: ../src/guestfs.pod:448
33270 msgid ""
33271 "To read and write configuration files in Linux guest filesystems, we "
33272 "strongly recommend using Augeas.  For example, Augeas understands how to "
33273 "read and write, say, a Linux shadow password file or X.org configuration "
33274 "file, and so avoids you having to write that code."
33275 msgstr ""
33276
33277 #. type: textblock
33278 #: ../src/guestfs.pod:453
33279 msgid ""
33280 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
33281 "document Augeas itself here because there is excellent documentation on the "
33282 "L<http://augeas.net/> website."
33283 msgstr ""
33284
33285 #. type: textblock
33286 #: ../src/guestfs.pod:457
33287 msgid ""
33288 "If you don't want to use Augeas (you fool!) then try calling L</"
33289 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33290 "over."
33291 msgstr ""
33292
33293 #. type: =head2
33294 #: ../src/guestfs.pod:461
33295 msgid "SELINUX"
33296 msgstr "SELINUX"
33297
33298 #. type: textblock
33299 #: ../src/guestfs.pod:463
33300 msgid ""
33301 "We support SELinux guests.  To ensure that labeling happens correctly in "
33302 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33303 msgstr ""
33304
33305 #. type: textblock
33306 #: ../src/guestfs.pod:471
33307 msgid "Before launching, do:"
33308 msgstr ""
33309
33310 #. type: verbatim
33311 #: ../src/guestfs.pod:473
33312 #, no-wrap
33313 msgid ""
33314 " guestfs_set_selinux (g, 1);\n"
33315 "\n"
33316 msgstr ""
33317 " guestfs_set_selinux (g, 1);\n"
33318 "\n"
33319
33320 #. type: textblock
33321 #: ../src/guestfs.pod:477
33322 msgid ""
33323 "After mounting the guest's filesystem(s), load the policy.  This is best "
33324 "done by running the L<load_policy(8)> command in the guest itself:"
33325 msgstr ""
33326
33327 #. type: verbatim
33328 #: ../src/guestfs.pod:481
33329 #, no-wrap
33330 msgid ""
33331 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33332 "\n"
33333 msgstr ""
33334 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33335 "\n"
33336
33337 #. type: textblock
33338 #: ../src/guestfs.pod:483
33339 msgid ""
33340 "(Older versions of C<load_policy> require you to specify the name of the "
33341 "policy file)."
33342 msgstr ""
33343
33344 #. type: textblock
33345 #: ../src/guestfs.pod:488
33346 msgid ""
33347 "Optionally, set the security context for the API.  The correct security "
33348 "context to use can only be known by inspecting the guest.  As an example:"
33349 msgstr ""
33350
33351 #. type: verbatim
33352 #: ../src/guestfs.pod:492
33353 #, no-wrap
33354 msgid ""
33355 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33356 "\n"
33357 msgstr ""
33358 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33359 "\n"
33360
33361 #. type: textblock
33362 #: ../src/guestfs.pod:496
33363 msgid "This will work for running commands and editing existing files."
33364 msgstr ""
33365
33366 #. type: textblock
33367 #: ../src/guestfs.pod:498
33368 msgid ""
33369 "When new files are created, you may need to label them explicitly, for "
33370 "example by running the external command C<restorecon pathname>."
33371 msgstr ""
33372
33373 #. type: =head2
33374 #: ../src/guestfs.pod:502
33375 msgid "UMASK"
33376 msgstr "UMASK"
33377
33378 #. type: textblock
33379 #: ../src/guestfs.pod:504
33380 msgid ""
33381 "Certain calls are affected by the current file mode creation mask (the "
33382 "\"umask\").  In particular ones which create files or directories, such as "
33383 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
33384 "either the default mode that the file is created with or modifies the mode "
33385 "that you supply."
33386 msgstr ""
33387
33388 #. type: textblock
33389 #: ../src/guestfs.pod:510
33390 msgid ""
33391 "The default umask is C<022>, so files are created with modes such as C<0644> "
33392 "and directories with C<0755>."
33393 msgstr ""
33394
33395 #. type: textblock
33396 #: ../src/guestfs.pod:513
33397 msgid ""
33398 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
33399 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
33400 "guestfs_chmod> after creating each file or directory."
33401 msgstr ""
33402
33403 #. type: textblock
33404 #: ../src/guestfs.pod:517
33405 msgid "For more information about umask, see L<umask(2)>."
33406 msgstr ""
33407
33408 #. type: textblock
33409 #: ../src/guestfs.pod:521
33410 msgid ""
33411 "Libguestfs allows you to access Linux guests which have been encrypted using "
33412 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33413 "standard.  This includes nearly all whole disk encryption systems used by "
33414 "modern Linux guests."
33415 msgstr ""
33416
33417 #. type: textblock
33418 #: ../src/guestfs.pod:527
33419 msgid ""
33420 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33421 "returns the string C<crypto_LUKS>)."
33422 msgstr ""
33423
33424 #. type: textblock
33425 #: ../src/guestfs.pod:530
33426 msgid ""
33427 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
33428 "will require the passphrase!"
33429 msgstr ""
33430
33431 #. type: textblock
33432 #: ../src/guestfs.pod:533
33433 msgid ""
33434 "Opening a LUKS device creates a new device mapper device called C</dev/"
33435 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33436 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
33437 "from and encrypted to the underlying block device respectively."
33438 msgstr ""
33439
33440 #. type: textblock
33441 #: ../src/guestfs.pod:539
33442 msgid ""
33443 "LVM volume groups on the device can be made visible by calling L</"
33444 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
33445 "(s) can now be mounted in the usual way."
33446 msgstr ""
33447
33448 #. type: textblock
33449 #: ../src/guestfs.pod:543
33450 msgid ""
33451 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
33452 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33453 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
33454 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33455 "underlying encrypted block device)."
33456 msgstr ""
33457
33458 #. type: =head2
33459 #: ../src/guestfs.pod:550
33460 msgid "INSPECTION"
33461 msgstr "ПЕРЕВІРКА"
33462
33463 #. type: textblock
33464 #: ../src/guestfs.pod:552
33465 msgid ""
33466 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33467 "contains operating systems, an install CD or a live CD.  (These APIs used to "
33468 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33469 "version 1.5.3 the most frequently used part of this library has been "
33470 "rewritten in C and moved into the core code)."
33471 msgstr ""
33472
33473 #. type: textblock
33474 #: ../src/guestfs.pod:559
33475 msgid ""
33476 "Add all disks belonging to the unknown virtual machine and call L</"
33477 "guestfs_launch> in the usual way."
33478 msgstr ""
33479
33480 #. type: textblock
33481 #: ../src/guestfs.pod:562
33482 msgid ""
33483 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
33484 "and certain heuristics, and returns a list of operating systems that were "
33485 "found.  An empty list means none were found.  A single element is the root "
33486 "filesystem of the operating system.  For dual- or multi-boot guests, "
33487 "multiple roots can be returned, each one corresponding to a separate "
33488 "operating system.  (Multi-boot virtual machines are extremely rare in the "
33489 "world of virtualization, but since this scenario can happen, we have built "
33490 "libguestfs to deal with it.)"
33491 msgstr ""
33492
33493 #. type: textblock
33494 #: ../src/guestfs.pod:571
33495 msgid ""
33496 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33497 "to get additional details about that operating system.  For example, call L</"
33498 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33499 "Windows and Linux-based operating systems respectively."
33500 msgstr ""
33501
33502 #. type: textblock
33503 #: ../src/guestfs.pod:577
33504 msgid ""
33505 "Un*x-like and Linux-based operating systems usually consist of several "
33506 "filesystems which are mounted at boot time (for example, a separate boot "
33507 "partition mounted on C</boot>).  The inspection rules are able to detect how "
33508 "filesystems correspond to mount points.  Call "
33509 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
33510 "hash table like this example:"
33511 msgstr ""
33512
33513 #. type: verbatim
33514 #: ../src/guestfs.pod:584
33515 #, no-wrap
33516 msgid ""
33517 " /boot => /dev/sda1\n"
33518 " /     => /dev/vg_guest/lv_root\n"
33519 " /usr  => /dev/vg_guest/lv_usr\n"
33520 "\n"
33521 msgstr ""
33522 " /boot => /dev/sda1\n"
33523 " /     => /dev/vg_guest/lv_root\n"
33524 " /usr  => /dev/vg_guest/lv_usr\n"
33525 "\n"
33526
33527 #. type: textblock
33528 #: ../src/guestfs.pod:588
33529 msgid ""
33530 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33531 "filesystems as suggested."
33532 msgstr ""
33533
33534 #. type: textblock
33535 #: ../src/guestfs.pod:591
33536 msgid ""
33537 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33538 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
33539 msgstr ""
33540
33541 #. type: textblock
33542 #: ../src/guestfs.pod:595
33543 msgid ""
33544 "Inspection currently only works for some common operating systems.  "
33545 "Contributors are welcome to send patches for other operating systems that we "
33546 "currently cannot detect."
33547 msgstr ""
33548
33549 #. type: textblock
33550 #: ../src/guestfs.pod:599
33551 msgid ""
33552 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
33553 "for more details.  The L</guestfs_inspect_os> function just ignores any "
33554 "encrypted devices."
33555 msgstr ""
33556
33557 #. type: textblock
33558 #: ../src/guestfs.pod:603
33559 msgid ""
33560 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33561 "inspection and caches the results in the guest handle.  Subsequent calls to "
33562 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33563 "read the disks.  If you change the content of the guest disks, you can redo "
33564 "inspection by calling L</guestfs_inspect_os> again.  (L</"
33565 "guestfs_inspect_list_applications> works a little differently from the other "
33566 "calls and does read the disks.  See documentation for that function for "
33567 "details)."
33568 msgstr ""
33569
33570 #. type: =head3
33571 #: ../src/guestfs.pod:612
33572 msgid "INSPECTING INSTALL DISKS"
33573 msgstr ""
33574
33575 #. type: textblock
33576 #: ../src/guestfs.pod:614
33577 msgid ""
33578 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33579 "CDs and more."
33580 msgstr ""
33581
33582 #. type: textblock
33583 #: ../src/guestfs.pod:617
33584 msgid ""
33585 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33586 "system, which currently can be C<installed> (a regular operating system) or "
33587 "C<installer> (some sort of install disk)."
33588 msgstr ""
33589
33590 #. type: textblock
33591 #: ../src/guestfs.pod:621
33592 msgid ""
33593 "Further information is available about the operating system that can be "
33594 "installed using the regular inspection APIs like L</"
33595 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
33596 msgstr ""
33597
33598 #. type: textblock
33599 #: ../src/guestfs.pod:626
33600 msgid ""
33601 "Some additional information specific to installer disks is also available "
33602 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
33603 "guestfs_inspect_is_multipart> calls."
33604 msgstr ""
33605
33606 #. type: =head2
33607 #: ../src/guestfs.pod:631
33608 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33609 msgstr ""
33610
33611 #. type: textblock
33612 #: ../src/guestfs.pod:633
33613 msgid ""
33614 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
33615 "ntfs-3g.org/> driver."
33616 msgstr ""
33617
33618 #. type: =head3
33619 #: ../src/guestfs.pod:636
33620 msgid "DRIVE LETTERS AND PATHS"
33621 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
33622
33623 #. type: textblock
33624 #: ../src/guestfs.pod:638
33625 msgid ""
33626 "DOS and Windows still use drive letters, and the filesystems are always "
33627 "treated as case insensitive by Windows itself, and therefore you might find "
33628 "a Windows configuration file referring to a path like C<c:\\windows"
33629 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
33630 "might be referred to as C</WINDOWS/System32>."
33631 msgstr ""
33632
33633 #. type: textblock
33634 #: ../src/guestfs.pod:644
33635 msgid ""
33636 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33637 "L</guestfs_inspect_get_drive_mappings>)"
33638 msgstr ""
33639
33640 #. type: textblock
33641 #: ../src/guestfs.pod:647
33642 msgid ""
33643 "Dealing with separator characters (backslash vs forward slash) is outside "
33644 "the scope of libguestfs, but usually a simple character replacement will "
33645 "work."
33646 msgstr ""
33647
33648 #. type: textblock
33649 #: ../src/guestfs.pod:651
33650 msgid ""
33651 "To resolve the case insensitivity of paths, call L</"
33652 "guestfs_case_sensitive_path>."
33653 msgstr ""
33654
33655 #. type: =head3
33656 #: ../src/guestfs.pod:654
33657 msgid "ACCESSING THE WINDOWS REGISTRY"
33658 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
33659
33660 #. type: textblock
33661 #: ../src/guestfs.pod:656
33662 msgid ""
33663 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33664 "files, through the library C<hivex> which is part of the libguestfs project "
33665 "although ships as a separate tarball.  You have to locate and download the "
33666 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
33667 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
33668 "reg(1)> for more help on this issue."
33669 msgstr ""
33670
33671 #. type: =head3
33672 #: ../src/guestfs.pod:664
33673 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33674 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
33675
33676 #. type: textblock
33677 #: ../src/guestfs.pod:666
33678 msgid ""
33679 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33680 "provide something which looks like a Linux symlink.  The way it tries to do "
33681 "the rewriting is described here:"
33682 msgstr ""
33683
33684 #. type: textblock
33685 #: ../src/guestfs.pod:670
33686 msgid ""
33687 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33688 "symbolic-links/>"
33689 msgstr ""
33690 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33691 "symbolic-links/>"
33692
33693 #. type: textblock
33694 #: ../src/guestfs.pod:672
33695 msgid ""
33696 "The essential problem is that ntfs-3g simply does not have enough "
33697 "information to do a correct job.  NTFS links can contain drive letters and "
33698 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
33699 "It is almost certainly the case that libguestfs callers should ignore what "
33700 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33701 msgstr ""
33702
33703 #. type: textblock
33704 #: ../src/guestfs.pod:679
33705 msgid ""
33706 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
33707 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33708 "attribute, and read the raw reparse data from that (you can find the format "
33709 "documented in various places around the web)."
33710 msgstr ""
33711
33712 #. type: =head3
33713 #: ../src/guestfs.pod:684
33714 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33715 msgstr ""
33716
33717 #. type: textblock
33718 #: ../src/guestfs.pod:686
33719 msgid ""
33720 "There are other useful extended attributes that can be read from ntfs-3g "
33721 "filesystems (using L</guestfs_getxattr>).  See:"
33722 msgstr ""
33723
33724 #. type: textblock
33725 #: ../src/guestfs.pod:689
33726 msgid ""
33727 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33728 msgstr ""
33729 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33730
33731 #. type: =head2
33732 #: ../src/guestfs.pod:691
33733 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33734 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
33735
33736 #. type: textblock
33737 #: ../src/guestfs.pod:693
33738 msgid ""
33739 "Although we don't want to discourage you from using the C API, we will "
33740 "mention here that the same API is also available in other languages."
33741 msgstr ""
33742
33743 #. type: textblock
33744 #: ../src/guestfs.pod:696
33745 msgid ""
33746 "The API is broadly identical in all supported languages.  This means that "
33747 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33748 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33749 "OCaml.  In other words, a straightforward, predictable isomorphism between "
33750 "each language."
33751 msgstr ""
33752
33753 #. type: textblock
33754 #: ../src/guestfs.pod:702
33755 msgid ""
33756 "Error messages are automatically transformed into exceptions if the language "
33757 "supports it."
33758 msgstr ""
33759
33760 #. type: textblock
33761 #: ../src/guestfs.pod:705
33762 msgid ""
33763 "We don't try to \"object orientify\" parts of the API in OO languages, "
33764 "although contributors are welcome to write higher level APIs above what we "
33765 "provide in their favourite languages if they wish."
33766 msgstr ""
33767
33768 #. type: =item
33769 #: ../src/guestfs.pod:711
33770 msgid "B<C++>"
33771 msgstr "B<C++>"
33772
33773 #. type: textblock
33774 #: ../src/guestfs.pod:713
33775 msgid ""
33776 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
33777 "identical to the C API.  C++ classes and exceptions are not used."
33778 msgstr ""
33779
33780 #. type: =item
33781 #: ../src/guestfs.pod:717
33782 msgid "B<C#>"
33783 msgstr "B<C#>"
33784
33785 #. type: textblock
33786 #: ../src/guestfs.pod:719
33787 msgid ""
33788 "The C# bindings are highly experimental.  Please read the warnings at the "
33789 "top of C<csharp/Libguestfs.cs>."
33790 msgstr ""
33791
33792 #. type: =item
33793 #: ../src/guestfs.pod:722
33794 msgid "B<Haskell>"
33795 msgstr "B<Haskell>"
33796
33797 #. type: textblock
33798 #: ../src/guestfs.pod:724
33799 msgid ""
33800 "This is the only language binding that is working but incomplete.  Only "
33801 "calls which return simple integers have been bound in Haskell, and we are "
33802 "looking for help to complete this binding."
33803 msgstr ""
33804
33805 #. type: =item
33806 #: ../src/guestfs.pod:728
33807 msgid "B<Java>"
33808 msgstr "B<Java>"
33809
33810 #. type: textblock
33811 #: ../src/guestfs.pod:730
33812 msgid ""
33813 "Full documentation is contained in the Javadoc which is distributed with "
33814 "libguestfs.  For examples, see L<guestfs-java(3)>."
33815 msgstr ""
33816
33817 #. type: =item
33818 #: ../src/guestfs.pod:733
33819 msgid "B<OCaml>"
33820 msgstr "B<OCaml>"
33821
33822 #. type: textblock
33823 #: ../src/guestfs.pod:735
33824 msgid "See L<guestfs-ocaml(3)>."
33825 msgstr "Див. L<guestfs-ocaml(3)>."
33826
33827 #. type: =item
33828 #: ../src/guestfs.pod:737
33829 msgid "B<Perl>"
33830 msgstr "B<Perl>"
33831
33832 #. type: textblock
33833 #: ../src/guestfs.pod:739
33834 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33835 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
33836
33837 #. type: =item
33838 #: ../src/guestfs.pod:741
33839 msgid "B<PHP>"
33840 msgstr "B<PHP>"
33841
33842 #. type: textblock
33843 #: ../src/guestfs.pod:743
33844 msgid ""
33845 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33846 "the php-libguestfs package for your distribution."
33847 msgstr ""
33848
33849 #. type: textblock
33850 #: ../src/guestfs.pod:746
33851 msgid "The PHP binding only works correctly on 64 bit machines."
33852 msgstr ""
33853
33854 #. type: =item
33855 #: ../src/guestfs.pod:748
33856 msgid "B<Python>"
33857 msgstr "B<Python>"
33858
33859 #. type: textblock
33860 #: ../src/guestfs.pod:750
33861 msgid "See L<guestfs-python(3)>."
33862 msgstr "Див. L<guestfs-python(3)>."
33863
33864 #. type: =item
33865 #: ../src/guestfs.pod:752
33866 msgid "B<Ruby>"
33867 msgstr "B<Ruby>"
33868
33869 #. type: textblock
33870 #: ../src/guestfs.pod:754
33871 msgid "See L<guestfs-ruby(3)>."
33872 msgstr "Див. L<guestfs-ruby(3)>."
33873
33874 #. type: =item
33875 #: ../src/guestfs.pod:756
33876 msgid "B<shell scripts>"
33877 msgstr "B<скрипти оболонки>"
33878
33879 #. type: textblock
33880 #: ../src/guestfs.pod:758
33881 msgid "See L<guestfish(1)>."
33882 msgstr "Див. L<guestfish(1)>."
33883
33884 #. type: =head2
33885 #: ../src/guestfs.pod:762
33886 msgid "LIBGUESTFS GOTCHAS"
33887 msgstr ""
33888
33889 #. type: textblock
33890 #: ../src/guestfs.pod:764
33891 msgid ""
33892 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
33893 "system [...] that works in the way it is documented but is counterintuitive "
33894 "and almost invites mistakes.\""
33895 msgstr ""
33896
33897 #. type: textblock
33898 #: ../src/guestfs.pod:768
33899 msgid ""
33900 "Since we developed libguestfs and the associated tools, there are several "
33901 "things we would have designed differently, but are now stuck with for "
33902 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
33903 "release, you can expect these to change.  Beware of them."
33904 msgstr ""
33905
33906 #. type: =item
33907 #: ../src/guestfs.pod:776
33908 msgid "Autosync / forgetting to sync."
33909 msgstr ""
33910
33911 #. type: textblock
33912 #: ../src/guestfs.pod:778
33913 msgid ""
33914 "I<Update:> Autosync is enabled by default for all API users starting from "
33915 "libguestfs 1.5.24.  This section only applies to older versions."
33916 msgstr ""
33917
33918 #. type: textblock
33919 #: ../src/guestfs.pod:781
33920 msgid ""
33921 "When modifying a filesystem from C or another language, you B<must> unmount "
33922 "all filesystems and call L</guestfs_sync> explicitly before you close the "
33923 "libguestfs handle.  You can also call:"
33924 msgstr ""
33925
33926 #. type: verbatim
33927 #: ../src/guestfs.pod:785
33928 #, no-wrap
33929 msgid ""
33930 " guestfs_set_autosync (g, 1);\n"
33931 "\n"
33932 msgstr ""
33933 " guestfs_set_autosync (g, 1);\n"
33934 "\n"
33935
33936 #. type: textblock
33937 #: ../src/guestfs.pod:787
33938 msgid ""
33939 "to have the unmount/sync done automatically for you when the handle 'g' is "
33940 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
33941 msgstr ""
33942
33943 #. type: textblock
33944 #: ../src/guestfs.pod:791
33945 msgid ""
33946 "If you forget to do this, then it is entirely possible that your changes "
33947 "won't be written out, or will be partially written, or (very rarely) that "
33948 "you'll get disk corruption."
33949 msgstr ""
33950
33951 #. type: textblock
33952 #: ../src/guestfs.pod:795
33953 msgid ""
33954 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
33955 "guestfish scripts that forget to sync will work just fine, which can make "
33956 "this very puzzling if you are trying to debug a problem."
33957 msgstr ""
33958
33959 #. type: =item
33960 #: ../src/guestfs.pod:799
33961 msgid "Mount option C<-o sync> should not be the default."
33962 msgstr ""
33963
33964 #. type: textblock
33965 #: ../src/guestfs.pod:801
33966 msgid ""
33967 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
33968 "However C<-o sync> does not add any reliability benefit, but does have a "
33969 "very large performance impact."
33970 msgstr ""
33971
33972 #. type: textblock
33973 #: ../src/guestfs.pod:805
33974 msgid ""
33975 "The work around is to use L</guestfs_mount_options> and set the mount "
33976 "options that you actually want to use."
33977 msgstr ""
33978
33979 #. type: =item
33980 #: ../src/guestfs.pod:808
33981 msgid "Read-only should be the default."
33982 msgstr ""
33983
33984 #. type: textblock
33985 #: ../src/guestfs.pod:810
33986 msgid ""
33987 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
33988 "specify I<--rw> if you want to make changes to the image."
33989 msgstr ""
33990
33991 #. type: textblock
33992 #: ../src/guestfs.pod:813
33993 msgid "This would reduce the potential to corrupt live VM images."
33994 msgstr ""
33995
33996 #. type: textblock
33997 #: ../src/guestfs.pod:815
33998 msgid ""
33999 "Note that many filesystems change the disk when you just mount and unmount, "
34000 "even if you didn't perform any writes.  You need to use L</"
34001 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
34002 msgstr ""
34003
34004 #. type: =item
34005 #: ../src/guestfs.pod:819
34006 msgid "guestfish command line is hard to use."
34007 msgstr ""
34008
34009 #. type: textblock
34010 #: ../src/guestfs.pod:821
34011 msgid ""
34012 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34013 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
34014 "exist, so it fails.  In earlier versions of guestfish the error message was "
34015 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
34016 "we should have used C<guestfish -c command> to run commands."
34017 msgstr ""
34018
34019 #. type: =item
34020 #: ../src/guestfs.pod:828
34021 msgid "guestfish megabyte modifiers don't work right on all commands"
34022 msgstr ""
34023
34024 #. type: textblock
34025 #: ../src/guestfs.pod:830
34026 msgid ""
34027 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34028 "other modifiers).  What guestfish actually does is to multiply the number "
34029 "part by the modifier part and pass the result to the C API.  However this "
34030 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34031 "expecting some other unit (eg. megabytes)."
34032 msgstr ""
34033
34034 #. type: textblock
34035 #: ../src/guestfs.pod:837
34036 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
34037 msgstr ""
34038
34039 #. type: verbatim
34040 #: ../src/guestfs.pod:839
34041 #, no-wrap
34042 msgid ""
34043 " lvcreate LV VG 100M\n"
34044 "\n"
34045 msgstr ""
34046 " lvcreate LV VG 100M\n"
34047 "\n"
34048
34049 #. type: textblock
34050 #: ../src/guestfs.pod:841
34051 msgid ""
34052 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
34053 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34054 "megabytes * megabytes) logical volume.  The error message you get from this "
34055 "is also a little obscure."
34056 msgstr ""
34057
34058 #. type: textblock
34059 #: ../src/guestfs.pod:846
34060 msgid ""
34061 "This could be fixed in the generator by specially marking parameters and "
34062 "return values which take bytes or other units."
34063 msgstr ""
34064
34065 #. type: =item
34066 #: ../src/guestfs.pod:849
34067 msgid "Ambiguity between devices and paths"
34068 msgstr ""
34069
34070 #. type: textblock
34071 #: ../src/guestfs.pod:851
34072 msgid ""
34073 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34074 "sdb2>) and a similar pathname.  A file might just happen to be called "
34075 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34076 msgstr ""
34077
34078 #. type: textblock
34079 #: ../src/guestfs.pod:856
34080 msgid ""
34081 "In the current API we usually resolve this ambiguity by having two separate "
34082 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
34083 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34084 "detecting if the path supplied begins with C</dev/>."
34085 msgstr ""
34086
34087 #. type: textblock
34088 #: ../src/guestfs.pod:862
34089 msgid ""
34090 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34091 "make paths/devices into structured names.  One way to do this would be to "
34092 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34093 "aspect of grub.  Another way would be to use a structured type, equivalent "
34094 "to this OCaml type:"
34095 msgstr ""
34096
34097 #. type: verbatim
34098 #: ../src/guestfs.pod:868
34099 #, no-wrap
34100 msgid ""
34101 " type path = Path of string | Device of int | Partition of int * int\n"
34102 "\n"
34103 msgstr ""
34104
34105 #. type: textblock
34106 #: ../src/guestfs.pod:870
34107 msgid "which would allow you to pass arguments like:"
34108 msgstr ""
34109
34110 #. type: verbatim
34111 #: ../src/guestfs.pod:872
34112 #, no-wrap
34113 msgid ""
34114 " Path \"/foo/bar\"\n"
34115 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
34116 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34117 " Path \"/dev/sdb2\"    (* not a device *)\n"
34118 "\n"
34119 msgstr ""
34120
34121 #. type: textblock
34122 #: ../src/guestfs.pod:877
34123 msgid ""
34124 "As you can see there are still problems to resolve even with this "
34125 "representation.  Also consider how it might work in guestfish."
34126 msgstr ""
34127
34128 #. type: =head2
34129 #: ../src/guestfs.pod:882
34130 msgid "KEYS AND PASSPHRASES"
34131 msgstr "КЛЮЧІ І ПАРОЛІ"
34132
34133 #. type: textblock
34134 #: ../src/guestfs.pod:884
34135 msgid ""
34136 "Certain libguestfs calls take a parameter that contains sensitive key "
34137 "material, passed in as a C string."
34138 msgstr ""
34139
34140 #. type: textblock
34141 #: ../src/guestfs.pod:887
34142 msgid ""
34143 "In the future we would hope to change the libguestfs implementation so that "
34144 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34145 "swap.  However this is I<not> done at the moment, because of the complexity "
34146 "of such an implementation."
34147 msgstr ""
34148
34149 #. type: textblock
34150 #: ../src/guestfs.pod:892
34151 msgid ""
34152 "Therefore you should be aware that any key parameter you pass to libguestfs "
34153 "might end up being written out to the swap partition.  If this is a concern, "
34154 "scrub the swap partition or don't use libguestfs on encrypted devices."
34155 msgstr ""
34156
34157 #. type: =head2
34158 #: ../src/guestfs.pod:897
34159 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34160 msgstr ""
34161
34162 #. type: textblock
34163 #: ../src/guestfs.pod:899
34164 msgid ""
34165 "All high-level libguestfs actions are synchronous.  If you want to use "
34166 "libguestfs asynchronously then you must create a thread."
34167 msgstr ""
34168
34169 #. type: textblock
34170 #: ../src/guestfs.pod:902
34171 msgid ""
34172 "Only use the handle from a single thread.  Either use the handle exclusively "
34173 "from one thread, or provide your own mutex so that two threads cannot issue "
34174 "calls on the same handle at the same time."
34175 msgstr ""
34176
34177 #. type: textblock
34178 #: ../src/guestfs.pod:906
34179 msgid ""
34180 "See the graphical program guestfs-browser for one possible architecture for "
34181 "multithreaded programs using libvirt and libguestfs."
34182 msgstr ""
34183
34184 #. type: =head2
34185 #: ../src/guestfs.pod:909
34186 msgid "PATH"
34187 msgstr "ШЛЯХ"
34188
34189 #. type: textblock
34190 #: ../src/guestfs.pod:911
34191 msgid ""
34192 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34193 "internal path."
34194 msgstr ""
34195
34196 #. type: textblock
34197 #: ../src/guestfs.pod:914
34198 msgid ""
34199 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34200 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34201 msgstr ""
34202
34203 #. type: textblock
34204 #: ../src/guestfs.pod:917
34205 msgid ""
34206 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34207 "to change the directories that libguestfs will search in.  The value is a "
34208 "colon-separated list of paths.  The current directory is I<not> searched "
34209 "unless the path contains an empty element or C<.>.  For example "
34210 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34211 "then C</usr/lib/guestfs>."
34212 msgstr ""
34213
34214 #. type: =head2
34215 #: ../src/guestfs.pod:924
34216 msgid "QEMU WRAPPERS"
34217 msgstr ""
34218
34219 #. type: textblock
34220 #: ../src/guestfs.pod:926
34221 msgid ""
34222 "If you want to compile your own qemu, run qemu from a non-standard location, "
34223 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34224 "around qemu."
34225 msgstr ""
34226
34227 #. type: textblock
34228 #: ../src/guestfs.pod:930
34229 msgid ""
34230 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34231 "last command in the shell script (so that qemu replaces the shell and "
34232 "becomes the direct child of the libguestfs-using program).  If you don't do "
34233 "this, then the qemu process won't be cleaned up correctly."
34234 msgstr ""
34235
34236 #. type: textblock
34237 #: ../src/guestfs.pod:935
34238 msgid ""
34239 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34240 "source:"
34241 msgstr ""
34242
34243 #. type: verbatim
34244 #: ../src/guestfs.pod:938
34245 #, no-wrap
34246 msgid ""
34247 " #!/bin/sh -\n"
34248 " qemudir=/home/rjones/d/qemu\n"
34249 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34250 "\n"
34251 msgstr ""
34252 " #!/bin/sh -\n"
34253 " qemudir=/home/rjones/d/qemu\n"
34254 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34255 "\n"
34256
34257 #. type: textblock
34258 #: ../src/guestfs.pod:942
34259 msgid ""
34260 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34261 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
34262 "example:"
34263 msgstr ""
34264
34265 #. type: verbatim
34266 #: ../src/guestfs.pod:946
34267 #, no-wrap
34268 msgid ""
34269 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34270 "\n"
34271 msgstr ""
34272 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34273 "\n"
34274
34275 #. type: textblock
34276 #: ../src/guestfs.pod:948
34277 msgid ""
34278 "Note that libguestfs also calls qemu with the -help and -version options in "
34279 "order to determine features."
34280 msgstr ""
34281
34282 #. type: =head2
34283 #: ../src/guestfs.pod:951
34284 msgid "ATTACHING TO RUNNING DAEMONS"
34285 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
34286
34287 #. type: textblock
34288 #: ../src/guestfs.pod:953
34289 msgid ""
34290 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34291 "babies.  Use with caution."
34292 msgstr ""
34293
34294 #. type: textblock
34295 #: ../src/guestfs.pod:956
34296 msgid ""
34297 "I<Note (2):> This section explains how to attach to a running daemon from a "
34298 "low level perspective.  For most users, simply using virt tools such as "
34299 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34300 msgstr ""
34301
34302 #. type: =head3
34303 #: ../src/guestfs.pod:960
34304 msgid "Using guestfs_set_attach_method"
34305 msgstr "За допомогою guestfs_set_attach_method"
34306
34307 #. type: textblock
34308 #: ../src/guestfs.pod:962
34309 msgid ""
34310 "By calling L</guestfs_set_attach_method> you can change how the library "
34311 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34312 "ARCHITECTURE> for some background)."
34313 msgstr ""
34314
34315 #. type: textblock
34316 #: ../src/guestfs.pod:966
34317 msgid ""
34318 "The normal attach method is C<appliance>, where a small appliance is created "
34319 "containing the daemon, and then the library connects to this."
34320 msgstr ""
34321
34322 #. type: textblock
34323 #: ../src/guestfs.pod:969
34324 msgid ""
34325 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34326 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34327 "daemon over the Unix domain socket."
34328 msgstr ""
34329
34330 #. type: textblock
34331 #: ../src/guestfs.pod:973
34332 msgid ""
34333 "The normal use for this is to connect to a running virtual machine that "
34334 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34335 "files inside the live virtual machine."
34336 msgstr ""
34337
34338 #. type: =head3
34339 #: ../src/guestfs.pod:977
34340 msgid "Using guestfs_add_domain with live flag"
34341 msgstr "За допомогою guestfs_add_domain з прапорцем live"
34342
34343 #. type: textblock
34344 #: ../src/guestfs.pod:979
34345 msgid ""
34346 "L</guestfs_add_domain> provides some help for getting the correct attach "
34347 "method.  If you pass the C<live> option to this function, then (if the "
34348 "virtual machine is running) it will examine the libvirt XML looking for a "
34349 "virtio-serial channel to connect to:"
34350 msgstr ""
34351
34352 #. type: verbatim
34353 #: ../src/guestfs.pod:985
34354 #, no-wrap
34355 msgid ""
34356 " <domain>\n"
34357 "   ...\n"
34358 "   <devices>\n"
34359 "     ...\n"
34360 "     <channel type='unix'>\n"
34361 "       <source mode='bind' path='/path/to/socket'/>\n"
34362 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34363 "     </channel>\n"
34364 "     ...\n"
34365 "   </devices>\n"
34366 " </domain>\n"
34367 "\n"
34368 msgstr ""
34369 " <domain>\n"
34370 "   ...\n"
34371 "   <devices>\n"
34372 "     ...\n"
34373 "     <channel type='unix'>\n"
34374 "       <source mode='bind' path='/path/to/socket'/>\n"
34375 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34376 "     </channel>\n"
34377 "     ...\n"
34378 "   </devices>\n"
34379 " </domain>\n"
34380 "\n"
34381
34382 #. type: textblock
34383 #: ../src/guestfs.pod:997
34384 msgid ""
34385 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34386 "method to C<unix:/path/to/socket>."
34387 msgstr ""
34388
34389 #. type: textblock
34390 #: ../src/guestfs.pod:1000
34391 msgid ""
34392 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34393 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34394 "to attach to and modify live virtual machines."
34395 msgstr ""
34396
34397 #. type: textblock
34398 #: ../src/guestfs.pod:1004
34399 msgid ""
34400 "The virtual machine needs to have been set up beforehand so that it has the "
34401 "virtio-serial channel and so that guestfsd is running inside it."
34402 msgstr ""
34403
34404 #. type: =head2
34405 #: ../src/guestfs.pod:1008
34406 msgid "ABI GUARANTEE"
34407 msgstr "ГАРАНТІЯ ЩОДО ABI"
34408
34409 #. type: textblock
34410 #: ../src/guestfs.pod:1010
34411 msgid ""
34412 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34413 "actions as outlined in this section.  Although we will deprecate some "
34414 "actions, for example if they get replaced by newer calls, we will keep the "
34415 "old actions forever.  This allows you the developer to program in confidence "
34416 "against the libguestfs API."
34417 msgstr ""
34418
34419 #. type: =head2
34420 #: ../src/guestfs.pod:1016
34421 msgid "BLOCK DEVICE NAMING"
34422 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
34423
34424 #. type: textblock
34425 #: ../src/guestfs.pod:1018
34426 msgid ""
34427 "In the kernel there is now quite a profusion of schemata for naming block "
34428 "devices (in this context, by I<block device> I mean a physical or virtual "
34429 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
34430 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
34431 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
34432 "for the old IDE driver (particularly for SATA devices) those devices also "
34433 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
34434 "paravirtualized drivers.  This has created several different naming systems, "
34435 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34436 msgstr ""
34437
34438 #. type: textblock
34439 #: ../src/guestfs.pod:1030
34440 msgid ""
34441 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34442 "Linux kernel to access block devices.  We can run a variety of appliances "
34443 "based on a variety of Linux kernels."
34444 msgstr ""
34445
34446 #. type: textblock
34447 #: ../src/guestfs.pod:1034
34448 msgid ""
34449 "This causes a problem for libguestfs because many API calls use device or "
34450 "partition names.  Working scripts and the recipe (example) scripts that we "
34451 "make available over the internet could fail if the naming scheme changes."
34452 msgstr ""
34453
34454 #. type: textblock
34455 #: ../src/guestfs.pod:1039
34456 msgid ""
34457 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
34458 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34459 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34460 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34461 msgstr ""
34462
34463 #. type: textblock
34464 #: ../src/guestfs.pod:1045
34465 msgid ""
34466 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
34467 "L</guestfs_list_partitions> and similar calls return the true names of the "
34468 "devices and partitions as known to the appliance."
34469 msgstr ""
34470
34471 #. type: =head3
34472 #: ../src/guestfs.pod:1050
34473 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34474 msgstr ""
34475
34476 #. type: textblock
34477 #: ../src/guestfs.pod:1052
34478 msgid ""
34479 "Usually this translation is transparent.  However in some (very rare)  cases "
34480 "you may need to know the exact algorithm.  Such cases include where you use "
34481 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34482 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34483 msgstr ""
34484
34485 #. type: textblock
34486 #: ../src/guestfs.pod:1058
34487 msgid ""
34488 "The algorithm is applied only to I<parameters> which are known to be either "
34489 "device or partition names.  Return values from functions such as L</"
34490 "guestfs_list_devices> are never changed."
34491 msgstr ""
34492
34493 #. type: textblock
34494 #: ../src/guestfs.pod:1066
34495 msgid "Is the string a parameter which is a device or partition name?"
34496 msgstr ""
34497
34498 #. type: textblock
34499 #: ../src/guestfs.pod:1070
34500 msgid "Does the string begin with C</dev/sd>?"
34501 msgstr "Чи починається рядок з C</dev/sd>?"
34502
34503 #. type: textblock
34504 #: ../src/guestfs.pod:1074
34505 msgid ""
34506 "Does the named device exist? If so, we use that device.  However if I<not> "
34507 "then we continue with this algorithm."
34508 msgstr ""
34509
34510 #. type: textblock
34511 #: ../src/guestfs.pod:1079
34512 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34513 msgstr ""
34514
34515 #. type: textblock
34516 #: ../src/guestfs.pod:1081
34517 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34518 msgstr ""
34519
34520 #. type: textblock
34521 #: ../src/guestfs.pod:1083
34522 msgid "If that named device exists, use it.  If not, continue."
34523 msgstr ""
34524
34525 #. type: textblock
34526 #: ../src/guestfs.pod:1087
34527 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34528 msgstr ""
34529
34530 #. type: textblock
34531 #: ../src/guestfs.pod:1089
34532 msgid "If that named device exists, use it.  If not, return an error."
34533 msgstr ""
34534
34535 #. type: =head3
34536 #: ../src/guestfs.pod:1093
34537 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34538 msgstr ""
34539
34540 #. type: textblock
34541 #: ../src/guestfs.pod:1095
34542 msgid ""
34543 "Although the standard naming scheme and automatic translation is useful for "
34544 "simple programs and guestfish scripts, for larger programs it is best not to "
34545 "rely on this mechanism."
34546 msgstr ""
34547
34548 #. type: textblock
34549 #: ../src/guestfs.pod:1099
34550 msgid ""
34551 "Where possible for maximum future portability programs using libguestfs "
34552 "should use these future-proof techniques:"
34553 msgstr ""
34554
34555 #. type: textblock
34556 #: ../src/guestfs.pod:1106
34557 msgid ""
34558 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34559 "device names, and then use those names directly."
34560 msgstr ""
34561
34562 #. type: textblock
34563 #: ../src/guestfs.pod:1109
34564 msgid ""
34565 "Since those device names exist by definition, they will never be translated."
34566 msgstr ""
34567
34568 #. type: textblock
34569 #: ../src/guestfs.pod:1114
34570 msgid ""
34571 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34572 "filesystem labels."
34573 msgstr ""
34574
34575 #. type: =head1
34576 #: ../src/guestfs.pod:1119
34577 msgid "SECURITY"
34578 msgstr "БЕЗПЕКА"
34579
34580 #. type: textblock
34581 #: ../src/guestfs.pod:1121
34582 msgid ""
34583 "This section discusses security implications of using libguestfs, "
34584 "particularly with untrusted or malicious guests or disk images."
34585 msgstr ""
34586
34587 #. type: =head2
34588 #: ../src/guestfs.pod:1124
34589 msgid "GENERAL SECURITY CONSIDERATIONS"
34590 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
34591
34592 #. type: textblock
34593 #: ../src/guestfs.pod:1126
34594 msgid ""
34595 "Be careful with any files or data that you download from a guest (by "
34596 "\"download\" we mean not just the L</guestfs_download> command but any "
34597 "command that reads files, filenames, directories or anything else from a "
34598 "disk image).  An attacker could manipulate the data to fool your program "
34599 "into doing the wrong thing.  Consider cases such as:"
34600 msgstr ""
34601
34602 #. type: textblock
34603 #: ../src/guestfs.pod:1136
34604 msgid "the data (file etc) not being present"
34605 msgstr ""
34606
34607 #. type: textblock
34608 #: ../src/guestfs.pod:1140
34609 msgid "being present but empty"
34610 msgstr ""
34611
34612 #. type: textblock
34613 #: ../src/guestfs.pod:1144
34614 msgid "being much larger than normal"
34615 msgstr ""
34616
34617 #. type: textblock
34618 #: ../src/guestfs.pod:1148
34619 msgid "containing arbitrary 8 bit data"
34620 msgstr ""
34621
34622 #. type: textblock
34623 #: ../src/guestfs.pod:1152
34624 msgid "being in an unexpected character encoding"
34625 msgstr ""
34626
34627 #. type: textblock
34628 #: ../src/guestfs.pod:1156
34629 msgid "containing homoglyphs."
34630 msgstr ""
34631
34632 #. type: =head2
34633 #: ../src/guestfs.pod:1160
34634 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34635 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
34636
34637 #. type: textblock
34638 #: ../src/guestfs.pod:1162
34639 msgid ""
34640 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34641 "(VFS) module can sometimes be escalated into exploits by deliberately "
34642 "creating a malicious, malformed filesystem.  These exploits are very severe "
34643 "for two reasons.  Firstly there are very many filesystem drivers in the "
34644 "kernel, and many of them are infrequently used and not much developer "
34645 "attention has been paid to the code.  Linux userspace helps potential "
34646 "crackers by detecting the filesystem type and automatically choosing the "
34647 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34648 "the administrator.  Secondly, a kernel-level exploit is like a local root "
34649 "exploit (worse in some ways), giving immediate and total access to the "
34650 "system right down to the hardware level."
34651 msgstr ""
34652
34653 #. type: textblock
34654 #: ../src/guestfs.pod:1175
34655 msgid ""
34656 "That explains why you should never mount a filesystem from an untrusted "
34657 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
34658 "inside a qemu virtual machine, usually running as a non-root user.  The "
34659 "attacker would need to write a filesystem which first exploited the kernel, "
34660 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34661 "the libguestfs protocol, and finally to be as serious as the host kernel "
34662 "exploit it would need to escalate its privileges to root.  This multi-step "
34663 "escalation, performed by a static piece of data, is thought to be extremely "
34664 "hard to do, although we never say 'never' about security issues."
34665 msgstr ""
34666
34667 #. type: textblock
34668 #: ../src/guestfs.pod:1186
34669 msgid ""
34670 "In any case callers can reduce the attack surface by forcing the filesystem "
34671 "type when mounting (use L</guestfs_mount_vfs>)."
34672 msgstr ""
34673
34674 #. type: =head2
34675 #: ../src/guestfs.pod:1189
34676 msgid "PROTOCOL SECURITY"
34677 msgstr "ЗАХИСТ ПРОТОКОЛУ"
34678
34679 #. type: textblock
34680 #: ../src/guestfs.pod:1191
34681 msgid ""
34682 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
34683 "defined upper message size.  However a program that uses libguestfs must "
34684 "also take care - for example you can write a program that downloads a binary "
34685 "from a disk image and executes it locally, and no amount of protocol "
34686 "security will save you from the consequences."
34687 msgstr ""
34688
34689 #. type: =head2
34690 #: ../src/guestfs.pod:1197
34691 msgid "INSPECTION SECURITY"
34692 msgstr ""
34693
34694 #. type: textblock
34695 #: ../src/guestfs.pod:1199
34696 msgid ""
34697 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34698 "directly from the guest, and these could contain any 8 bit data.  Callers "
34699 "should be careful to escape these before printing them to a structured file "
34700 "(for example, use HTML escaping if creating a web page)."
34701 msgstr ""
34702
34703 #. type: textblock
34704 #: ../src/guestfs.pod:1205
34705 msgid ""
34706 "Guest configuration may be altered in unusual ways by the administrator of "
34707 "the virtual machine, and may not reflect reality (particularly for untrusted "
34708 "or actively malicious guests).  For example we parse the hostname from "
34709 "configuration files like C</etc/sysconfig/network> that we find in the "
34710 "guest, but the guest administrator can easily manipulate these files to "
34711 "provide the wrong hostname."
34712 msgstr ""
34713
34714 #. type: textblock
34715 #: ../src/guestfs.pod:1213
34716 msgid ""
34717 "The inspection API parses guest configuration using two external libraries: "
34718 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
34719 "designed to be robust in the face of malicious data, although denial of "
34720 "service attacks are still possible, for example with oversized configuration "
34721 "files."
34722 msgstr ""
34723
34724 #. type: =head2
34725 #: ../src/guestfs.pod:1219
34726 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34727 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
34728
34729 #. type: textblock
34730 #: ../src/guestfs.pod:1221
34731 msgid ""
34732 "Be very cautious about running commands from the guest.  By running a "
34733 "command in the guest, you are giving CPU time to a binary that you do not "
34734 "control, under the same user account as the library, albeit wrapped in qemu "
34735 "virtualization.  More information and alternatives can be found in the "
34736 "section L</RUNNING COMMANDS>."
34737 msgstr ""
34738
34739 #. type: =head2
34740 #: ../src/guestfs.pod:1227
34741 msgid "CVE-2010-3851"
34742 msgstr "CVE-2010-3851"
34743
34744 #. type: textblock
34745 #: ../src/guestfs.pod:1229
34746 msgid "https://bugzilla.redhat.com/642934"
34747 msgstr "https://bugzilla.redhat.com/642934"
34748
34749 #. type: textblock
34750 #: ../src/guestfs.pod:1231
34751 msgid ""
34752 "This security bug concerns the automatic disk format detection that qemu "
34753 "does on disk images."
34754 msgstr ""
34755
34756 #. type: textblock
34757 #: ../src/guestfs.pod:1234
34758 msgid ""
34759 "A raw disk image is just the raw bytes, there is no header.  Other disk "
34760 "images like qcow2 contain a special header.  Qemu deals with this by looking "
34761 "for one of the known headers, and if none is found then assuming the disk "
34762 "image must be raw."
34763 msgstr ""
34764
34765 #. type: textblock
34766 #: ../src/guestfs.pod:1239
34767 msgid ""
34768 "This allows a guest which has been given a raw disk image to write some "
34769 "other header.  At next boot (or when the disk image is accessed by "
34770 "libguestfs) qemu would do autodetection and think the disk image format was, "
34771 "say, qcow2 based on the header written by the guest."
34772 msgstr ""
34773
34774 #. type: textblock
34775 #: ../src/guestfs.pod:1244
34776 msgid ""
34777 "This in itself would not be a problem, but qcow2 offers many features, one "
34778 "of which is to allow a disk image to refer to another image (called the "
34779 "\"backing disk\").  It does this by placing the path to the backing disk "
34780 "into the qcow2 header.  This path is not validated and could point to any "
34781 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
34782 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34783 "control of the attacker."
34784 msgstr ""
34785
34786 #. type: textblock
34787 #: ../src/guestfs.pod:1252
34788 msgid ""
34789 "In libguestfs this is rather hard to exploit except under two circumstances:"
34790 msgstr ""
34791
34792 #. type: textblock
34793 #: ../src/guestfs.pod:1259
34794 msgid "You have enabled the network or have opened the disk in write mode."
34795 msgstr ""
34796
34797 #. type: textblock
34798 #: ../src/guestfs.pod:1263
34799 msgid ""
34800 "You are also running untrusted code from the guest (see L</RUNNING "
34801 "COMMANDS>)."
34802 msgstr ""
34803
34804 #. type: textblock
34805 #: ../src/guestfs.pod:1268
34806 msgid ""
34807 "The way to avoid this is to specify the expected disk format when adding "
34808 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
34809 "should always do this if the disk is raw format, and it's a good idea for "
34810 "other cases too."
34811 msgstr ""
34812
34813 #. type: textblock
34814 #: ../src/guestfs.pod:1273
34815 msgid ""
34816 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34817 "format is fetched from libvirt and passed through."
34818 msgstr ""
34819
34820 #. type: textblock
34821 #: ../src/guestfs.pod:1276
34822 msgid ""
34823 "For libguestfs tools, use the I<--format> command line parameter as "
34824 "appropriate."
34825 msgstr ""
34826
34827 #. type: =head1
34828 #: ../src/guestfs.pod:1279
34829 msgid "CONNECTION MANAGEMENT"
34830 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
34831
34832 #. type: =head2
34833 #: ../src/guestfs.pod:1281
34834 msgid "guestfs_h *"
34835 msgstr "guestfs_h *"
34836
34837 #. type: textblock
34838 #: ../src/guestfs.pod:1283
34839 msgid ""
34840 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
34841 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
34842 "handle and release all resources used."
34843 msgstr ""
34844
34845 #. type: textblock
34846 #: ../src/guestfs.pod:1287
34847 msgid ""
34848 "For information on using multiple handles and threads, see the section L</"
34849 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34850 msgstr ""
34851
34852 #. type: =head2
34853 #: ../src/guestfs.pod:1290
34854 msgid "guestfs_create"
34855 msgstr "guestfs_create"
34856
34857 #. type: verbatim
34858 #: ../src/guestfs.pod:1292
34859 #, no-wrap
34860 msgid ""
34861 " guestfs_h *guestfs_create (void);\n"
34862 "\n"
34863 msgstr ""
34864 " guestfs_h *guestfs_create (void);\n"
34865 "\n"
34866
34867 #. type: textblock
34868 #: ../src/guestfs.pod:1294
34869 msgid "Create a connection handle."
34870 msgstr "Створити дескриптор з’єднання."
34871
34872 #. type: textblock
34873 #: ../src/guestfs.pod:1296
34874 msgid ""
34875 "On success this returns a non-NULL pointer to a handle.  On error it returns "
34876 "NULL."
34877 msgstr ""
34878
34879 #. type: textblock
34880 #: ../src/guestfs.pod:1299
34881 msgid ""
34882 "You have to \"configure\" the handle after creating it.  This includes "
34883 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
34884 "handle at least once."
34885 msgstr ""
34886
34887 #. type: textblock
34888 #: ../src/guestfs.pod:1303
34889 msgid "After configuring the handle, you have to call L</guestfs_launch>."
34890 msgstr ""
34891
34892 #. type: textblock
34893 #: ../src/guestfs.pod:1305
34894 msgid ""
34895 "You may also want to configure error handling for the handle.  See the L</"
34896 "ERROR HANDLING> section below."
34897 msgstr ""
34898
34899 #. type: =head2
34900 #: ../src/guestfs.pod:1308
34901 msgid "guestfs_close"
34902 msgstr "guestfs_close"
34903
34904 #. type: verbatim
34905 #: ../src/guestfs.pod:1310
34906 #, no-wrap
34907 msgid ""
34908 " void guestfs_close (guestfs_h *g);\n"
34909 "\n"
34910 msgstr ""
34911 " void guestfs_close (guestfs_h *g);\n"
34912 "\n"
34913
34914 #. type: textblock
34915 #: ../src/guestfs.pod:1312
34916 msgid "This closes the connection handle and frees up all resources used."
34917 msgstr ""
34918
34919 #. type: textblock
34920 #: ../src/guestfs.pod:1314
34921 msgid ""
34922 "If autosync was set on the handle and the handle was launched, then this "
34923 "implicitly calls various functions to unmount filesystems and sync the "
34924 "disk.  See L</guestfs_set_autosync> for more details."
34925 msgstr ""
34926
34927 #. type: textblock
34928 #: ../src/guestfs.pod:1318
34929 msgid "If a close callback was set on the handle, then it is called."
34930 msgstr ""
34931
34932 #. type: =head1
34933 #: ../src/guestfs.pod:1320
34934 msgid "ERROR HANDLING"
34935 msgstr "ОБРОБКА ПОМИЛОК"
34936
34937 #. type: textblock
34938 #: ../src/guestfs.pod:1322
34939 msgid ""
34940 "API functions can return errors.  For example, almost all functions that "
34941 "return C<int> will return C<-1> to indicate an error."
34942 msgstr ""
34943
34944 #. type: textblock
34945 #: ../src/guestfs.pod:1325
34946 msgid ""
34947 "Additional information is available for errors: an error message string and "
34948 "optionally an error number (errno) if the thing that failed was a system "
34949 "call."
34950 msgstr ""
34951
34952 #. type: textblock
34953 #: ../src/guestfs.pod:1329
34954 msgid ""
34955 "You can get at the additional information about the last error on the handle "
34956 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
34957 "up an error handler with L</guestfs_set_error_handler>."
34958 msgstr ""
34959
34960 #. type: textblock
34961 #: ../src/guestfs.pod:1334
34962 msgid ""
34963 "When the handle is created, a default error handler is installed which "
34964 "prints the error message string to C<stderr>.  For small short-running "
34965 "command line programs it is sufficient to do:"
34966 msgstr ""
34967
34968 #. type: verbatim
34969 #: ../src/guestfs.pod:1338
34970 #, no-wrap
34971 msgid ""
34972 " if (guestfs_launch (g) == -1)\n"
34973 "   exit (EXIT_FAILURE);\n"
34974 "\n"
34975 msgstr ""
34976 " if (guestfs_launch (g) == -1)\n"
34977 "   exit (EXIT_FAILURE);\n"
34978 "\n"
34979
34980 #. type: textblock
34981 #: ../src/guestfs.pod:1341
34982 msgid ""
34983 "since the default error handler will ensure that an error message has been "
34984 "printed to C<stderr> before the program exits."
34985 msgstr ""
34986
34987 #. type: textblock
34988 #: ../src/guestfs.pod:1344
34989 msgid ""
34990 "For other programs the caller will almost certainly want to install an "
34991 "alternate error handler or do error handling in-line like this:"
34992 msgstr ""
34993
34994 #. type: verbatim
34995 #: ../src/guestfs.pod:1347
34996 #, no-wrap
34997 msgid ""
34998 " /* This disables the default behaviour of printing errors\n"
34999 "    on stderr. */\n"
35000 " guestfs_set_error_handler (g, NULL, NULL);\n"
35001 " \n"
35002 msgstr ""
35003
35004 #. type: verbatim
35005 #: ../src/guestfs.pod:1351
35006 #, fuzzy, no-wrap
35007 #| msgid ""
35008 #| " if (guestfs_launch (g) == -1) {\n"
35009 #| "   /* Examine the error message and print it etc. */\n"
35010 #| "   char *msg = guestfs_last_error (g);\n"
35011 #| "   int errnum = guestfs_last_errno (g);\n"
35012 #| "   fprintf (stderr, \"%s\\n\", msg);\n"
35013 #| "   /* ... */\n"
35014 #| "  }\n"
35015 #| "\n"
35016 msgid ""
35017 " if (guestfs_launch (g) == -1) {\n"
35018 "   /* Examine the error message and print it etc. */\n"
35019 "   char *msg = guestfs_last_error (g);\n"
35020 "   int errnum = guestfs_last_errno (g);\n"
35021 "   fprintf (stderr, \"%s\", msg);\n"
35022 "   if (errnum != 0)\n"
35023 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
35024 "   fprintf (stderr, \"\\n\");\n"
35025 "   /* ... */\n"
35026 " }\n"
35027 "\n"
35028 msgstr ""
35029 " if (guestfs_launch (g) == -1) {\n"
35030 "   /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
35031 "   char *msg = guestfs_last_error (g);\n"
35032 "   int errnum = guestfs_last_errno (g);\n"
35033 "   fprintf (stderr, \"%s\\n\", msg);\n"
35034 "   /* ... */\n"
35035 "  }\n"
35036 "\n"
35037
35038 #. type: textblock
35039 #: ../src/guestfs.pod:1362
35040 msgid ""
35041 "Out of memory errors are handled differently.  The default action is to call "
35042 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
35043 "guestfs_set_out_of_memory_handler>."
35044 msgstr ""
35045
35046 #. type: textblock
35047 #: ../src/guestfs.pod:1366
35048 msgid ""
35049 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35050 "because there is no handle if this happens there is no way to get additional "
35051 "error information.  However L</guestfs_create> is supposed to be a "
35052 "lightweight operation which can only fail because of insufficient memory (it "
35053 "returns NULL in this case)."
35054 msgstr ""
35055
35056 #. type: =head2
35057 #: ../src/guestfs.pod:1372
35058 msgid "guestfs_last_error"
35059 msgstr "guestfs_last_error"
35060
35061 #. type: verbatim
35062 #: ../src/guestfs.pod:1374
35063 #, no-wrap
35064 msgid ""
35065 " const char *guestfs_last_error (guestfs_h *g);\n"
35066 "\n"
35067 msgstr ""
35068 " const char *guestfs_last_error (guestfs_h *g);\n"
35069 "\n"
35070
35071 #. type: textblock
35072 #: ../src/guestfs.pod:1376
35073 msgid ""
35074 "This returns the last error message that happened on C<g>.  If there has not "
35075 "been an error since the handle was created, then this returns C<NULL>."
35076 msgstr ""
35077
35078 #. type: textblock
35079 #: ../src/guestfs.pod:1380
35080 msgid ""
35081 "The lifetime of the returned string is until the next error occurs, or L</"
35082 "guestfs_close> is called."
35083 msgstr ""
35084
35085 #. type: =head2
35086 #: ../src/guestfs.pod:1383
35087 msgid "guestfs_last_errno"
35088 msgstr "guestfs_last_errno"
35089
35090 #. type: verbatim
35091 #: ../src/guestfs.pod:1385
35092 #, no-wrap
35093 msgid ""
35094 " int guestfs_last_errno (guestfs_h *g);\n"
35095 "\n"
35096 msgstr ""
35097 " int guestfs_last_errno (guestfs_h *g);\n"
35098 "\n"
35099
35100 #. type: textblock
35101 #: ../src/guestfs.pod:1387
35102 msgid "This returns the last error number (errno) that happened on C<g>."
35103 msgstr ""
35104
35105 #. type: textblock
35106 #: ../src/guestfs.pod:1389
35107 msgid "If successful, an errno integer not equal to zero is returned."
35108 msgstr ""
35109
35110 #. type: textblock
35111 #: ../src/guestfs.pod:1391
35112 msgid ""
35113 "If no error, this returns 0.  This call can return 0 in three situations:"
35114 msgstr ""
35115
35116 #. type: textblock
35117 #: ../src/guestfs.pod:1398
35118 msgid "There has not been any error on the handle."
35119 msgstr ""
35120
35121 #. type: textblock
35122 #: ../src/guestfs.pod:1402
35123 msgid ""
35124 "There has been an error but the errno was meaningless.  This corresponds to "
35125 "the case where the error did not come from a failed system call, but for "
35126 "some other reason."
35127 msgstr ""
35128
35129 #. type: textblock
35130 #: ../src/guestfs.pod:1408
35131 msgid ""
35132 "There was an error from a failed system call, but for some reason the errno "
35133 "was not captured and returned.  This usually indicates a bug in libguestfs."
35134 msgstr ""
35135
35136 #. type: textblock
35137 #: ../src/guestfs.pod:1414
35138 msgid ""
35139 "Libguestfs tries to convert the errno from inside the applicance into a "
35140 "corresponding errno for the caller (not entirely trivial: the appliance "
35141 "might be running a completely different operating system from the library "
35142 "and error numbers are not standardized across Un*xen).  If this could not be "
35143 "done, then the error is translated to C<EINVAL>.  In practice this should "
35144 "only happen in very rare circumstances."
35145 msgstr ""
35146
35147 #. type: =head2
35148 #: ../src/guestfs.pod:1422
35149 msgid "guestfs_set_error_handler"
35150 msgstr "guestfs_set_error_handler"
35151
35152 #. type: verbatim
35153 #: ../src/guestfs.pod:1424
35154 #, no-wrap
35155 msgid ""
35156 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35157 "                                           void *opaque,\n"
35158 "                                           const char *msg);\n"
35159 " void guestfs_set_error_handler (guestfs_h *g,\n"
35160 "                                 guestfs_error_handler_cb cb,\n"
35161 "                                 void *opaque);\n"
35162 "\n"
35163 msgstr ""
35164 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35165 "                                           void *opaque,\n"
35166 "                                           const char *msg);\n"
35167 " void guestfs_set_error_handler (guestfs_h *g,\n"
35168 "                                 guestfs_error_handler_cb cb,\n"
35169 "                                 void *opaque);\n"
35170 "\n"
35171
35172 #. type: textblock
35173 #: ../src/guestfs.pod:1431
35174 msgid ""
35175 "The callback C<cb> will be called if there is an error.  The parameters "
35176 "passed to the callback are an opaque data pointer and the error message "
35177 "string."
35178 msgstr ""
35179
35180 #. type: textblock
35181 #: ../src/guestfs.pod:1435
35182 msgid ""
35183 "C<errno> is not passed to the callback.  To get that the callback must call "
35184 "L</guestfs_last_errno>."
35185 msgstr ""
35186
35187 #. type: textblock
35188 #: ../src/guestfs.pod:1438
35189 msgid ""
35190 "Note that the message string C<msg> is freed as soon as the callback "
35191 "function returns, so if you want to stash it somewhere you must make your "
35192 "own copy."
35193 msgstr ""
35194
35195 #. type: textblock
35196 #: ../src/guestfs.pod:1442
35197 msgid "The default handler prints messages on C<stderr>."
35198 msgstr ""
35199
35200 #. type: textblock
35201 #: ../src/guestfs.pod:1444
35202 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35203 msgstr ""
35204
35205 #. type: =head2
35206 #: ../src/guestfs.pod:1446
35207 msgid "guestfs_get_error_handler"
35208 msgstr "guestfs_get_error_handler"
35209
35210 #. type: verbatim
35211 #: ../src/guestfs.pod:1448
35212 #, no-wrap
35213 msgid ""
35214 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35215 "                                                     void **opaque_rtn);\n"
35216 "\n"
35217 msgstr ""
35218 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35219 "                                                     void **opaque_rtn);\n"
35220 "\n"
35221
35222 #. type: textblock
35223 #: ../src/guestfs.pod:1451
35224 msgid "Returns the current error handler callback."
35225 msgstr ""
35226
35227 #. type: =head2
35228 #: ../src/guestfs.pod:1453
35229 msgid "guestfs_set_out_of_memory_handler"
35230 msgstr "guestfs_set_out_of_memory_handler"
35231
35232 #. type: verbatim
35233 #: ../src/guestfs.pod:1455
35234 #, fuzzy, no-wrap
35235 #| msgid ""
35236 #| " typedef void (*guestfs_abort_cb) (void);\n"
35237 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35238 #| "                                        guestfs_abort_cb);\n"
35239 #| "\n"
35240 msgid ""
35241 " typedef void (*guestfs_abort_cb) (void);\n"
35242 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35243 "                                         guestfs_abort_cb);\n"
35244 "\n"
35245 msgstr ""
35246 " typedef void (*guestfs_abort_cb) (void);\n"
35247 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35248 "                                        guestfs_abort_cb);\n"
35249 "\n"
35250
35251 #. type: textblock
35252 #: ../src/guestfs.pod:1459
35253 msgid ""
35254 "The callback C<cb> will be called if there is an out of memory situation.  "
35255 "I<Note this callback must not return>."
35256 msgstr ""
35257
35258 #. type: textblock
35259 #: ../src/guestfs.pod:1462
35260 msgid "The default is to call L<abort(3)>."
35261 msgstr ""
35262
35263 #. type: textblock
35264 #: ../src/guestfs.pod:1464
35265 msgid ""
35266 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
35267 msgstr ""
35268
35269 #. type: =head2
35270 #: ../src/guestfs.pod:1467
35271 msgid "guestfs_get_out_of_memory_handler"
35272 msgstr "guestfs_get_out_of_memory_handler"
35273
35274 #. type: verbatim
35275 #: ../src/guestfs.pod:1469
35276 #, no-wrap
35277 msgid ""
35278 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35279 "\n"
35280 msgstr ""
35281 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35282 "\n"
35283
35284 #. type: textblock
35285 #: ../src/guestfs.pod:1471
35286 msgid "This returns the current out of memory handler."
35287 msgstr ""
35288
35289 #. type: =head1
35290 #: ../src/guestfs.pod:1473
35291 msgid "API CALLS"
35292 msgstr "ВИКЛИКИ API"
35293
35294 #. type: =head1
35295 #: ../src/guestfs.pod:1477
35296 msgid "STRUCTURES"
35297 msgstr "СТРУКТУРИ"
35298
35299 #. type: textblock
35300 #: ../src/guestfs.pod:1479
35301 msgid "@STRUCTS@"
35302 msgstr "@STRUCTS@"
35303
35304 #. type: =head1
35305 #: ../src/guestfs.pod:1481
35306 msgid "AVAILABILITY"
35307 msgstr "ДОСТУПНІСТЬ"
35308
35309 #. type: =head2
35310 #: ../src/guestfs.pod:1483
35311 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35312 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
35313
35314 #. type: textblock
35315 #: ../src/guestfs.pod:1485
35316 msgid ""
35317 "Using L</guestfs_available> you can test availability of the following "
35318 "groups of functions.  This test queries the appliance to see if the "
35319 "appliance you are currently using supports the functionality."
35320 msgstr ""
35321
35322 #. type: textblock
35323 #: ../src/guestfs.pod:1490
35324 msgid "@AVAILABILITY@"
35325 msgstr "@AVAILABILITY@"
35326
35327 #. type: =head2
35328 #: ../src/guestfs.pod:1492
35329 msgid "GUESTFISH supported COMMAND"
35330 msgstr ""
35331
35332 #. type: textblock
35333 #: ../src/guestfs.pod:1494
35334 msgid ""
35335 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35336 "prints out the available groups and whether they are supported by this build "
35337 "of libguestfs.  Note however that you have to do C<run> first."
35338 msgstr ""
35339
35340 #. type: =head2
35341 #: ../src/guestfs.pod:1499
35342 msgid "SINGLE CALLS AT COMPILE TIME"
35343 msgstr ""
35344
35345 #. type: textblock
35346 #: ../src/guestfs.pod:1501
35347 msgid ""
35348 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35349 "function, such as:"
35350 msgstr ""
35351
35352 #. type: verbatim
35353 #: ../src/guestfs.pod:1504
35354 #, no-wrap
35355 msgid ""
35356 " #define LIBGUESTFS_HAVE_DD 1\n"
35357 "\n"
35358 msgstr ""
35359 " #define LIBGUESTFS_HAVE_DD 1\n"
35360 "\n"
35361
35362 #. type: textblock
35363 #: ../src/guestfs.pod:1506
35364 msgid "if L</guestfs_dd> is available."
35365 msgstr ""
35366
35367 #. type: textblock
35368 #: ../src/guestfs.pod:1508
35369 msgid ""
35370 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35371 "function is available at compile time, we recommended using build tools such "
35372 "as autoconf or cmake.  For example in autotools you could use:"
35373 msgstr ""
35374
35375 #. type: verbatim
35376 #: ../src/guestfs.pod:1513
35377 #, no-wrap
35378 msgid ""
35379 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35380 " AC_CHECK_FUNCS([guestfs_dd])\n"
35381 "\n"
35382 msgstr ""
35383 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35384 " AC_CHECK_FUNCS([guestfs_dd])\n"
35385 "\n"
35386
35387 #. type: textblock
35388 #: ../src/guestfs.pod:1516
35389 msgid ""
35390 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35391 "in your program."
35392 msgstr ""
35393
35394 #. type: =head2
35395 #: ../src/guestfs.pod:1519
35396 msgid "SINGLE CALLS AT RUN TIME"
35397 msgstr ""
35398
35399 #. type: textblock
35400 #: ../src/guestfs.pod:1521
35401 msgid ""
35402 "Testing at compile time doesn't guarantee that a function really exists in "
35403 "the library.  The reason is that you might be dynamically linked against a "
35404 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
35405 "This situation unfortunately results in a segmentation fault, which is a "
35406 "shortcoming of the C dynamic linking system itself."
35407 msgstr ""
35408
35409 #. type: textblock
35410 #: ../src/guestfs.pod:1528
35411 msgid ""
35412 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35413 "in this example program (note that you still need the compile time check as "
35414 "well):"
35415 msgstr ""
35416
35417 #. type: verbatim
35418 #: ../src/guestfs.pod:1532
35419 #, no-wrap
35420 msgid ""
35421 " #include <stdio.h>\n"
35422 " #include <stdlib.h>\n"
35423 " #include <unistd.h>\n"
35424 " #include <dlfcn.h>\n"
35425 " #include <guestfs.h>\n"
35426 " \n"
35427 msgstr ""
35428 " #include <stdio.h>\n"
35429 " #include <stdlib.h>\n"
35430 " #include <unistd.h>\n"
35431 " #include <dlfcn.h>\n"
35432 " #include <guestfs.h>\n"
35433 " \n"
35434
35435 #. type: verbatim
35436 #: ../src/guestfs.pod:1538
35437 #, no-wrap
35438 msgid ""
35439 " main ()\n"
35440 " {\n"
35441 " #ifdef LIBGUESTFS_HAVE_DD\n"
35442 "   void *dl;\n"
35443 "   int has_function;\n"
35444 " \n"
35445 msgstr ""
35446 " main ()\n"
35447 " {\n"
35448 " #ifdef LIBGUESTFS_HAVE_DD\n"
35449 "   void *dl;\n"
35450 "   int has_function;\n"
35451 " \n"
35452
35453 #. type: verbatim
35454 #: ../src/guestfs.pod:1544
35455 #, no-wrap
35456 msgid ""
35457 "   /* Test if the function guestfs_dd is really available. */\n"
35458 "   dl = dlopen (NULL, RTLD_LAZY);\n"
35459 "   if (!dl) {\n"
35460 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35461 "     exit (EXIT_FAILURE);\n"
35462 "   }\n"
35463 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35464 "   dlclose (dl);\n"
35465 " \n"
35466 msgstr ""
35467
35468 #. type: verbatim
35469 #: ../src/guestfs.pod:1553
35470 #, no-wrap
35471 msgid ""
35472 "   if (!has_function)\n"
35473 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35474 "   else {\n"
35475 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35476 "     /* Now it's safe to call\n"
35477 "     guestfs_dd (g, \"foo\", \"bar\");\n"
35478 "     */\n"
35479 "   }\n"
35480 " #else\n"
35481 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35482 " #endif\n"
35483 "  }\n"
35484 "\n"
35485 msgstr ""
35486
35487 #. type: textblock
35488 #: ../src/guestfs.pod:1566
35489 msgid ""
35490 "You may think the above is an awful lot of hassle, and it is.  There are "
35491 "other ways outside of the C linking system to ensure that this kind of "
35492 "incompatibility never arises, such as using package versioning:"
35493 msgstr ""
35494
35495 #. type: verbatim
35496 #: ../src/guestfs.pod:1571
35497 #, no-wrap
35498 msgid ""
35499 " Requires: libguestfs >= 1.0.80\n"
35500 "\n"
35501 msgstr ""
35502
35503 #. type: =head1
35504 #: ../src/guestfs.pod:1573
35505 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35506 msgstr ""
35507
35508 #. type: textblock
35509 #: ../src/guestfs.pod:1575
35510 msgid ""
35511 "A recent feature of the API is the introduction of calls which take optional "
35512 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
35513 "takes variable arguments (ie. C<...>), as in this example:"
35514 msgstr ""
35515
35516 #. type: verbatim
35517 #: ../src/guestfs.pod:1580
35518 #, no-wrap
35519 msgid ""
35520 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35521 "\n"
35522 msgstr ""
35523 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35524 "\n"
35525
35526 #. type: textblock
35527 #: ../src/guestfs.pod:1582
35528 msgid ""
35529 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
35530 "call with no optional arguments specified:"
35531 msgstr ""
35532
35533 #. type: verbatim
35534 #: ../src/guestfs.pod:1585
35535 #, no-wrap
35536 msgid ""
35537 " guestfs_add_drive_opts (g, filename, -1);\n"
35538 "\n"
35539 msgstr ""
35540 " guestfs_add_drive_opts (g, filename, -1);\n"
35541 "\n"
35542
35543 #. type: textblock
35544 #: ../src/guestfs.pod:1587
35545 msgid "With a single optional argument:"
35546 msgstr ""
35547
35548 #. type: verbatim
35549 #: ../src/guestfs.pod:1589
35550 #, no-wrap
35551 msgid ""
35552 " guestfs_add_drive_opts (g, filename,\n"
35553 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35554 "                         -1);\n"
35555 "\n"
35556 msgstr ""
35557 " guestfs_add_drive_opts (g, filename,\n"
35558 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35559 "                         -1);\n"
35560 "\n"
35561
35562 #. type: textblock
35563 #: ../src/guestfs.pod:1593
35564 msgid "With two:"
35565 msgstr ""
35566
35567 #. type: verbatim
35568 #: ../src/guestfs.pod:1595
35569 #, no-wrap
35570 msgid ""
35571 " guestfs_add_drive_opts (g, filename,\n"
35572 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35573 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35574 "                         -1);\n"
35575 "\n"
35576 msgstr ""
35577 " guestfs_add_drive_opts (g, filename,\n"
35578 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35579 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35580 "                         -1);\n"
35581 "\n"
35582
35583 #. type: textblock
35584 #: ../src/guestfs.pod:1600
35585 msgid ""
35586 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
35587 "happen!"
35588 msgstr ""
35589
35590 #. type: =head2
35591 #: ../src/guestfs.pod:1603
35592 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35593 msgstr ""
35594
35595 #. type: textblock
35596 #: ../src/guestfs.pod:1605
35597 msgid ""
35598 "The second variant has the same name with the suffix C<_va>, which works the "
35599 "same way but takes a C<va_list>.  See the C manual for details.  For the "
35600 "example function, this is declared:"
35601 msgstr ""
35602
35603 #. type: verbatim
35604 #: ../src/guestfs.pod:1609
35605 #, no-wrap
35606 msgid ""
35607 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35608 "                                va_list args);\n"
35609 "\n"
35610 msgstr ""
35611 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35612 "                                va_list args);\n"
35613 "\n"
35614
35615 #. type: =head2
35616 #: ../src/guestfs.pod:1612
35617 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35618 msgstr ""
35619
35620 #. type: textblock
35621 #: ../src/guestfs.pod:1614
35622 msgid ""
35623 "The third variant is useful where you need to construct these calls.  You "
35624 "pass in a structure where you fill in the optional fields.  The structure "
35625 "has a bitmask as the first element which you must set to indicate which "
35626 "fields you have filled in.  For our example function the structure and call "
35627 "are declared:"
35628 msgstr ""
35629
35630 #. type: verbatim
35631 #: ../src/guestfs.pod:1620
35632 #, no-wrap
35633 msgid ""
35634 " struct guestfs_add_drive_opts_argv {\n"
35635 "   uint64_t bitmask;\n"
35636 "   int readonly;\n"
35637 "   const char *format;\n"
35638 "   /* ... */\n"
35639 " };\n"
35640 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35641 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35642 "\n"
35643 msgstr ""
35644 " struct guestfs_add_drive_opts_argv {\n"
35645 "   uint64_t bitmask;\n"
35646 "   int readonly;\n"
35647 "   const char *format;\n"
35648 "   /* ... */\n"
35649 " };\n"
35650 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35651 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35652 "\n"
35653
35654 #. type: textblock
35655 #: ../src/guestfs.pod:1629
35656 msgid "You could call it like this:"
35657 msgstr ""
35658
35659 #. type: verbatim
35660 #: ../src/guestfs.pod:1631
35661 #, no-wrap
35662 msgid ""
35663 " struct guestfs_add_drive_opts_argv optargs = {\n"
35664 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35665 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35666 "   .readonly = 1,\n"
35667 "   .format = \"qcow2\"\n"
35668 " };\n"
35669 " \n"
35670 msgstr ""
35671 " struct guestfs_add_drive_opts_argv optargs = {\n"
35672 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35673 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35674 "   .readonly = 1,\n"
35675 "   .format = \"qcow2\"\n"
35676 " };\n"
35677 " \n"
35678
35679 #. type: verbatim
35680 #: ../src/guestfs.pod:1638
35681 #, no-wrap
35682 msgid ""
35683 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35684 "\n"
35685 msgstr ""
35686 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35687 "\n"
35688
35689 #. type: textblock
35690 #: ../src/guestfs.pod:1646
35691 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35692 msgstr ""
35693
35694 #. type: textblock
35695 #: ../src/guestfs.pod:1651
35696 msgid "You do not need to fill in all fields of the structure."
35697 msgstr ""
35698
35699 #. type: textblock
35700 #: ../src/guestfs.pod:1655
35701 msgid ""
35702 "There must be a one-to-one correspondence between fields of the structure "
35703 "that are filled in, and bits set in the bitmask."
35704 msgstr ""
35705
35706 #. type: =head2
35707 #: ../src/guestfs.pod:1660
35708 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35709 msgstr ""
35710
35711 #. type: textblock
35712 #: ../src/guestfs.pod:1662
35713 msgid ""
35714 "In other languages, optional arguments are expressed in the way that is "
35715 "natural for that language.  We refer you to the language-specific "
35716 "documentation for more details on that."
35717 msgstr ""
35718
35719 #. type: textblock
35720 #: ../src/guestfs.pod:1666
35721 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35722 msgstr ""
35723
35724 #. type: =head2
35725 #: ../src/guestfs.pod:1668
35726 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35727 msgstr ""
35728
35729 #. type: textblock
35730 #: ../src/guestfs.pod:1670
35731 msgid ""
35732 "B<Note:> This section documents the generic event mechanism introduced in "
35733 "libguestfs 1.10, which you should use in new code if possible.  The old "
35734 "functions C<guestfs_set_log_message_callback>, "
35735 "C<guestfs_set_subprocess_quit_callback>, "
35736 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35737 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35738 "page.  Because of the ABI guarantee, the old functions continue to work."
35739 msgstr ""
35740
35741 #. type: textblock
35742 #: ../src/guestfs.pod:1679
35743 msgid ""
35744 "Handles generate events when certain things happen, such as log messages "
35745 "being generated, progress messages during long-running operations, or the "
35746 "handle being closed.  The API calls described below let you register a "
35747 "callback to be called when events happen.  You can register multiple "
35748 "callbacks (for the same, different or overlapping sets of events), and "
35749 "individually remove callbacks.  If callbacks are not removed, then they "
35750 "remain in force until the handle is closed."
35751 msgstr ""
35752
35753 #. type: textblock
35754 #: ../src/guestfs.pod:1687
35755 msgid ""
35756 "In the current implementation, events are only generated synchronously: that "
35757 "means that events (and hence callbacks) can only happen while you are in the "
35758 "middle of making another libguestfs call.  The callback is called in the "
35759 "same thread."
35760 msgstr ""
35761
35762 #. type: textblock
35763 #: ../src/guestfs.pod:1692
35764 msgid ""
35765 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35766 "unsigned integers, or a message buffer.  Payloads are discussed later on."
35767 msgstr ""
35768
35769 #. type: =head3
35770 #: ../src/guestfs.pod:1696
35771 msgid "CLASSES OF EVENTS"
35772 msgstr ""
35773
35774 #. type: =item
35775 #: ../src/guestfs.pod:1700
35776 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35777 msgstr ""
35778
35779 #. type: textblock
35780 #: ../src/guestfs.pod:1703
35781 msgid ""
35782 "The callback function will be called while the handle is being closed "
35783 "(synchronously from L</guestfs_close>)."
35784 msgstr ""
35785
35786 #. type: textblock
35787 #: ../src/guestfs.pod:1706
35788 msgid ""
35789 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35790 "handles that are open when the program exits.  This means that this callback "
35791 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35792 "problems in higher-level languages (eg. if your HLL interpreter has already "
35793 "been cleaned up by the time this is called, and if your callback then jumps "
35794 "into some HLL function)."
35795 msgstr ""
35796
35797 #. type: textblock
35798 #: ../src/guestfs.pod:1713
35799 msgid ""
35800 "If no callback is registered: the handle is closed without any callback "
35801 "being invoked."
35802 msgstr ""
35803
35804 #. type: =item
35805 #: ../src/guestfs.pod:1716
35806 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35807 msgstr ""
35808
35809 #. type: textblock
35810 #: ../src/guestfs.pod:1719
35811 msgid ""
35812 "The callback function will be called when the child process quits, either "
35813 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
35814 "corresponds to a transition from any state to the CONFIG state)."
35815 msgstr ""
35816
35817 #. type: textblock
35818 #: ../src/guestfs.pod:1723 ../src/guestfs.pod:1732
35819 msgid "If no callback is registered: the event is ignored."
35820 msgstr ""
35821
35822 #. type: =item
35823 #: ../src/guestfs.pod:1725
35824 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35825 msgstr ""
35826
35827 #. type: textblock
35828 #: ../src/guestfs.pod:1728
35829 msgid ""
35830 "The callback function will be called when the child process becomes ready "
35831 "first time after it has been launched.  (This corresponds to a transition "
35832 "from LAUNCHING to the READY state)."
35833 msgstr ""
35834
35835 #. type: =item
35836 #: ../src/guestfs.pod:1734
35837 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35838 msgstr ""
35839
35840 #. type: textblock
35841 #: ../src/guestfs.pod:1737
35842 msgid ""
35843 "Some long-running operations can generate progress messages.  If this "
35844 "callback is registered, then it will be called each time a progress message "
35845 "is generated (usually two seconds after the operation started, and three "
35846 "times per second thereafter until it completes, although the frequency may "
35847 "change in future versions)."
35848 msgstr ""
35849
35850 #. type: textblock
35851 #: ../src/guestfs.pod:1743
35852 msgid ""
35853 "The callback receives in the payload four unsigned 64 bit numbers which are "
35854 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35855 msgstr ""
35856
35857 #. type: textblock
35858 #: ../src/guestfs.pod:1746
35859 msgid ""
35860 "The units of C<total> are not defined, although for some operations C<total> "
35861 "may relate in some way to the amount of data to be transferred (eg. in bytes "
35862 "or megabytes), and C<position> may be the portion which has been transferred."
35863 msgstr ""
35864
35865 #. type: textblock
35866 #: ../src/guestfs.pod:1751
35867 msgid "The only defined and stable parts of the API are:"
35868 msgstr ""
35869
35870 #. type: textblock
35871 #: ../src/guestfs.pod:1757
35872 msgid ""
35873 "The callback can display to the user some type of progress bar or indicator "
35874 "which shows the ratio of C<position>:C<total>."
35875 msgstr ""
35876
35877 #. type: textblock
35878 #: ../src/guestfs.pod:1762
35879 msgid "0 E<lt>= C<position> E<lt>= C<total>"
35880 msgstr ""
35881
35882 #. type: textblock
35883 #: ../src/guestfs.pod:1766
35884 msgid ""
35885 "If any progress notification is sent during a call, then a final progress "
35886 "notification is always sent when C<position> = C<total> (I<unless> the call "
35887 "fails with an error)."
35888 msgstr ""
35889
35890 #. type: textblock
35891 #: ../src/guestfs.pod:1770
35892 msgid ""
35893 "This is to simplify caller code, so callers can easily set the progress "
35894 "indicator to \"100%\" at the end of the operation, without requiring special "
35895 "code to detect this case."
35896 msgstr ""
35897
35898 #. type: textblock
35899 #: ../src/guestfs.pod:1776
35900 msgid ""
35901 "For some calls we are unable to estimate the progress of the call, but we "
35902 "can still generate progress messages to indicate activity.  This is known as "
35903 "\"pulse mode\", and is directly supported by certain progress bar "
35904 "implementations (eg. GtkProgressBar)."
35905 msgstr ""
35906
35907 #. type: textblock
35908 #: ../src/guestfs.pod:1781
35909 msgid ""
35910 "For these calls, zero or more progress messages are generated with "
35911 "C<position = 0> and C<total = 1>, followed by a final message with "
35912 "C<position = total = 1>."
35913 msgstr ""
35914
35915 #. type: textblock
35916 #: ../src/guestfs.pod:1785
35917 msgid ""
35918 "As noted above, if the call fails with an error then the final message may "
35919 "not be generated."
35920 msgstr ""
35921
35922 #. type: textblock
35923 #: ../src/guestfs.pod:1790
35924 msgid ""
35925 "The callback also receives the procedure number (C<proc_nr>) and serial "
35926 "number (C<serial>) of the call.  These are only useful for debugging "
35927 "protocol issues, and the callback can normally ignore them.  The callback "
35928 "may want to print these numbers in error messages or debugging messages."
35929 msgstr ""
35930
35931 #. type: textblock
35932 #: ../src/guestfs.pod:1796
35933 msgid "If no callback is registered: progress messages are discarded."
35934 msgstr ""
35935
35936 #. type: =item
35937 #: ../src/guestfs.pod:1798
35938 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
35939 msgstr ""
35940
35941 #. type: textblock
35942 #: ../src/guestfs.pod:1801
35943 msgid ""
35944 "The callback function is called whenever a log message is generated by qemu, "
35945 "the appliance kernel, guestfsd (daemon), or utility programs."
35946 msgstr ""
35947
35948 #. type: textblock
35949 #: ../src/guestfs.pod:1804
35950 msgid ""
35951 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
35952 "guestfs_launch>) then additional debug messages are generated."
35953 msgstr ""
35954
35955 #. type: textblock
35956 #: ../src/guestfs.pod:1807 ../src/guestfs.pod:1821
35957 msgid ""
35958 "If no callback is registered: the messages are discarded unless the verbose "
35959 "flag is set in which case they are sent to stderr.  You can override the "
35960 "printing of verbose messages to stderr by setting up a callback."
35961 msgstr ""
35962
35963 #. type: =item
35964 #: ../src/guestfs.pod:1812
35965 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
35966 msgstr ""
35967
35968 #. type: textblock
35969 #: ../src/guestfs.pod:1815
35970 msgid ""
35971 "The callback function is called whenever a log message is generated by the "
35972 "library part of libguestfs."
35973 msgstr ""
35974
35975 #. type: textblock
35976 #: ../src/guestfs.pod:1818
35977 msgid ""
35978 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
35979 "messages are generated."
35980 msgstr ""
35981
35982 #. type: =item
35983 #: ../src/guestfs.pod:1826
35984 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
35985 msgstr ""
35986
35987 #. type: textblock
35988 #: ../src/guestfs.pod:1829
35989 msgid ""
35990 "The callback function is called whenever a trace message is generated.  This "
35991 "only applies if the trace flag (L</guestfs_set_trace>) is set."
35992 msgstr ""
35993
35994 #. type: textblock
35995 #: ../src/guestfs.pod:1832
35996 msgid ""
35997 "If no callback is registered: the messages are sent to stderr.  You can "
35998 "override the printing of trace messages to stderr by setting up a callback."
35999 msgstr ""
36000
36001 #. type: =head3
36002 #: ../src/guestfs.pod:1838
36003 msgid "guestfs_set_event_callback"
36004 msgstr ""
36005
36006 #. type: verbatim
36007 #: ../src/guestfs.pod:1840
36008 #, no-wrap
36009 msgid ""
36010 " int guestfs_set_event_callback (guestfs_h *g,\n"
36011 "                                 guestfs_event_callback cb,\n"
36012 "                                 uint64_t event_bitmask,\n"
36013 "                                 int flags,\n"
36014 "                                 void *opaque);\n"
36015 "\n"
36016 msgstr ""
36017
36018 #. type: textblock
36019 #: ../src/guestfs.pod:1846
36020 msgid ""
36021 "This function registers a callback (C<cb>) for all event classes in the "
36022 "C<event_bitmask>."
36023 msgstr ""
36024
36025 #. type: textblock
36026 #: ../src/guestfs.pod:1849
36027 msgid ""
36028 "For example, to register for all log message events, you could call this "
36029 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
36030 "To register a single callback for all possible classes of events, use "
36031 "C<GUESTFS_EVENT_ALL>."
36032 msgstr ""
36033
36034 #. type: textblock
36035 #: ../src/guestfs.pod:1855
36036 msgid "C<flags> should always be passed as 0."
36037 msgstr ""
36038
36039 #. type: textblock
36040 #: ../src/guestfs.pod:1857
36041 msgid ""
36042 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
36043 "it for any purpose."
36044 msgstr ""
36045
36046 #. type: textblock
36047 #: ../src/guestfs.pod:1860
36048 msgid ""
36049 "The return value is the event handle (an integer) which you can use to "
36050 "delete the callback (see below)."
36051 msgstr ""
36052
36053 #. type: textblock
36054 #: ../src/guestfs.pod:1863
36055 msgid ""
36056 "If there is an error, this function returns C<-1>, and sets the error in the "
36057 "handle in the usual way (see L</guestfs_last_error> etc.)"
36058 msgstr ""
36059
36060 #. type: textblock
36061 #: ../src/guestfs.pod:1866
36062 msgid ""
36063 "Callbacks remain in effect until they are deleted, or until the handle is "
36064 "closed."
36065 msgstr ""
36066
36067 #. type: textblock
36068 #: ../src/guestfs.pod:1869
36069 msgid ""
36070 "In the case where multiple callbacks are registered for a particular event "
36071 "class, all of the callbacks are called.  The order in which multiple "
36072 "callbacks are called is not defined."
36073 msgstr ""
36074
36075 #. type: =head3
36076 #: ../src/guestfs.pod:1873
36077 msgid "guestfs_delete_event_callback"
36078 msgstr ""
36079
36080 #. type: verbatim
36081 #: ../src/guestfs.pod:1875
36082 #, no-wrap
36083 msgid ""
36084 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36085 "\n"
36086 msgstr ""
36087
36088 #. type: textblock
36089 #: ../src/guestfs.pod:1877
36090 msgid ""
36091 "Delete a callback that was previously registered.  C<event_handle> should be "
36092 "the integer that was returned by a previous call to "
36093 "C<guestfs_set_event_callback> on the same handle."
36094 msgstr ""
36095
36096 #. type: =head3
36097 #: ../src/guestfs.pod:1881
36098 msgid "guestfs_event_callback"
36099 msgstr ""
36100
36101 #. type: verbatim
36102 #: ../src/guestfs.pod:1883
36103 #, no-wrap
36104 msgid ""
36105 " typedef void (*guestfs_event_callback) (\n"
36106 "                  guestfs_h *g,\n"
36107 "                  void *opaque,\n"
36108 "                  uint64_t event,\n"
36109 "                  int event_handle,\n"
36110 "                  int flags,\n"
36111 "                  const char *buf, size_t buf_len,\n"
36112 "                  const uint64_t *array, size_t array_len);\n"
36113 "\n"
36114 msgstr ""
36115
36116 #. type: textblock
36117 #: ../src/guestfs.pod:1892
36118 msgid ""
36119 "This is the type of the event callback function that you have to provide."
36120 msgstr ""
36121
36122 #. type: textblock
36123 #: ../src/guestfs.pod:1895
36124 msgid ""
36125 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36126 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36127 "handle, and C<flags> which in the current API you should ignore."
36128 msgstr ""
36129
36130 #. type: textblock
36131 #: ../src/guestfs.pod:1899
36132 msgid ""
36133 "The remaining parameters contain the event payload (if any).  Each event may "
36134 "contain a payload, which usually relates to the event class, but for future "
36135 "proofing your code should be written to handle any payload for any event "
36136 "class."
36137 msgstr ""
36138
36139 #. type: textblock
36140 #: ../src/guestfs.pod:1904
36141 msgid ""
36142 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36143 "there is no message buffer).  Note that this message buffer can contain "
36144 "arbitrary 8 bit data, including NUL bytes."
36145 msgstr ""
36146
36147 #. type: textblock
36148 #: ../src/guestfs.pod:1908
36149 msgid ""
36150 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
36151 "moment this is only used for progress messages."
36152 msgstr ""
36153
36154 #. type: =head3
36155 #: ../src/guestfs.pod:1911
36156 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36157 msgstr ""
36158
36159 #. type: textblock
36160 #: ../src/guestfs.pod:1913
36161 msgid ""
36162 "One motivation for the generic event API was to allow GUI programs to "
36163 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
36164 "unconditionally to C<stderr>."
36165 msgstr ""
36166
36167 #. type: textblock
36168 #: ../src/guestfs.pod:1917
36169 msgid ""
36170 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36171 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
36172 "messages are not events; you must capture error messages separately)."
36173 msgstr ""
36174
36175 #. type: textblock
36176 #: ../src/guestfs.pod:1922
36177 msgid ""
36178 "Programs have to set up a callback to capture the classes of events of "
36179 "interest:"
36180 msgstr ""
36181
36182 #. type: verbatim
36183 #: ../src/guestfs.pod:1925
36184 #, no-wrap
36185 msgid ""
36186 " int eh =\n"
36187 "   guestfs_set_event_callback\n"
36188 "     (g, message_callback,\n"
36189 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36190 "      GUESTFS_EVENT_TRACE,\n"
36191 "      0, NULL) == -1)\n"
36192 " if (eh == -1) {\n"
36193 "   // handle error in the usual way\n"
36194 " }\n"
36195 "\n"
36196 msgstr ""
36197
36198 #. type: textblock
36199 #: ../src/guestfs.pod:1935
36200 msgid ""
36201 "The callback can then direct messages to the appropriate place.  In this "
36202 "example, messages are directed to syslog:"
36203 msgstr ""
36204
36205 #. type: verbatim
36206 #: ../src/guestfs.pod:1938
36207 #, no-wrap
36208 msgid ""
36209 " static void\n"
36210 " message_callback (\n"
36211 "         guestfs_h *g,\n"
36212 "         void *opaque,\n"
36213 "         uint64_t event,\n"
36214 "         int event_handle,\n"
36215 "         int flags,\n"
36216 "         const char *buf, size_t buf_len,\n"
36217 "         const uint64_t *array, size_t array_len)\n"
36218 " {\n"
36219 "   const int priority = LOG_USER|LOG_INFO;\n"
36220 "   if (buf_len > 0)\n"
36221 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36222 " }\n"
36223 "\n"
36224 msgstr ""
36225
36226 #. type: =head1
36227 #: ../src/guestfs.pod:1953
36228 msgid "CANCELLING LONG TRANSFERS"
36229 msgstr ""
36230
36231 #. type: textblock
36232 #: ../src/guestfs.pod:1955
36233 msgid ""
36234 "Some operations can be cancelled by the caller while they are in progress.  "
36235 "Currently only operations that involve uploading or downloading data can be "
36236 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36237 "parameters in the generator)."
36238 msgstr ""
36239
36240 #. type: =head2
36241 #: ../src/guestfs.pod:1960
36242 msgid "guestfs_user_cancel"
36243 msgstr ""
36244
36245 #. type: verbatim
36246 #: ../src/guestfs.pod:1962
36247 #, no-wrap
36248 msgid ""
36249 " void guestfs_user_cancel (guestfs_h *g);\n"
36250 "\n"
36251 msgstr ""
36252
36253 #. type: textblock
36254 #: ../src/guestfs.pod:1964
36255 msgid ""
36256 "C<guestfs_user_cancel> cancels the current upload or download operation."
36257 msgstr ""
36258
36259 #. type: textblock
36260 #: ../src/guestfs.pod:1967
36261 msgid ""
36262 "Unlike most other libguestfs calls, this function is signal safe and thread "
36263 "safe.  You can call it from a signal handler or from another thread, without "
36264 "needing to do any locking."
36265 msgstr ""
36266
36267 #. type: textblock
36268 #: ../src/guestfs.pod:1971
36269 msgid ""
36270 "The transfer that was in progress (if there is one) will stop shortly "
36271 "afterwards, and will return an error.  The errno (see L</"
36272 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36273 "out if the operation was cancelled or failed because of another error."
36274 msgstr ""
36275
36276 #. type: textblock
36277 #: ../src/guestfs.pod:1977
36278 msgid ""
36279 "No cleanup is performed: for example, if a file was being uploaded then "
36280 "after cancellation there may be a partially uploaded file.  It is the "
36281 "caller's responsibility to clean up if necessary."
36282 msgstr ""
36283
36284 #. type: textblock
36285 #: ../src/guestfs.pod:1981
36286 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36287 msgstr ""
36288
36289 #. type: textblock
36290 #: ../src/guestfs.pod:1983
36291 msgid ""
36292 "In an interactive text-based program, you might call it from a C<SIGINT> "
36293 "signal handler so that pressing C<^C> cancels the current operation.  (You "
36294 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36295 "receive the C<^C> signal)."
36296 msgstr ""
36297
36298 #. type: textblock
36299 #: ../src/guestfs.pod:1988
36300 msgid ""
36301 "In a graphical program, when the main thread is displaying a progress bar "
36302 "with a cancel button, wire up the cancel button to call this function."
36303 msgstr ""
36304
36305 #. type: =head1
36306 #: ../src/guestfs.pod:1992
36307 msgid "PRIVATE DATA AREA"
36308 msgstr ""
36309
36310 #. type: textblock
36311 #: ../src/guestfs.pod:1994
36312 msgid ""
36313 "You can attach named pieces of private data to the libguestfs handle, fetch "
36314 "them by name, and walk over them, for the lifetime of the handle.  This is "
36315 "called the private data area and is only available from the C API."
36316 msgstr ""
36317
36318 #. type: textblock
36319 #: ../src/guestfs.pod:1999
36320 msgid "To attach a named piece of data, use the following call:"
36321 msgstr ""
36322
36323 #. type: verbatim
36324 #: ../src/guestfs.pod:2001
36325 #, no-wrap
36326 msgid ""
36327 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36328 "\n"
36329 msgstr ""
36330 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36331 "\n"
36332
36333 #. type: textblock
36334 #: ../src/guestfs.pod:2003
36335 msgid ""
36336 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36337 "pointer (which can be C<NULL>).  Any previous item with the same key is "
36338 "overwritten."
36339 msgstr ""
36340
36341 #. type: textblock
36342 #: ../src/guestfs.pod:2007
36343 msgid ""
36344 "You can use any C<key> you want, but your key should I<not> start with an "
36345 "underscore character.  Keys beginning with an underscore character are "
36346 "reserved for internal libguestfs purposes (eg. for implementing language "
36347 "bindings).  It is recommended that you prefix the key with some unique "
36348 "string to avoid collisions with other users."
36349 msgstr ""
36350
36351 #. type: textblock
36352 #: ../src/guestfs.pod:2013
36353 msgid "To retrieve the pointer, use:"
36354 msgstr ""
36355
36356 #. type: verbatim
36357 #: ../src/guestfs.pod:2015
36358 #, no-wrap
36359 msgid ""
36360 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36361 "\n"
36362 msgstr ""
36363 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36364 "\n"
36365
36366 #. type: textblock
36367 #: ../src/guestfs.pod:2017
36368 msgid ""
36369 "This function returns C<NULL> if either no data is found associated with "
36370 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36371 "C<NULL>."
36372 msgstr ""
36373
36374 #. type: textblock
36375 #: ../src/guestfs.pod:2021
36376 msgid ""
36377 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36378 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
36379 "all.  In particular, libguestfs does I<not> try to free the data when the "
36380 "handle is closed.  If the data must be freed, then the caller must either "
36381 "free it before calling L</guestfs_close> or must set up a close callback to "
36382 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36383 msgstr ""
36384
36385 #. type: textblock
36386 #: ../src/guestfs.pod:2028
36387 msgid "To walk over all entries, use these two functions:"
36388 msgstr ""
36389
36390 #. type: verbatim
36391 #: ../src/guestfs.pod:2030
36392 #, no-wrap
36393 msgid ""
36394 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36395 "\n"
36396 msgstr ""
36397
36398 #. type: verbatim
36399 #: ../src/guestfs.pod:2032
36400 #, no-wrap
36401 msgid ""
36402 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36403 "\n"
36404 msgstr ""
36405
36406 #. type: textblock
36407 #: ../src/guestfs.pod:2034
36408 msgid ""
36409 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36410 "not have any particular meaning -- keys are not returned in any defined "
36411 "order).  A pointer to the key is returned in C<*key_rtn> and the "
36412 "corresponding data pointer is returned from the function.  C<NULL> is "
36413 "returned if there are no keys stored in the handle."
36414 msgstr ""
36415
36416 #. type: textblock
36417 #: ../src/guestfs.pod:2040
36418 msgid ""
36419 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
36420 "value of this function is also C<NULL> is there are no further entries to "
36421 "return."
36422 msgstr ""
36423
36424 #. type: textblock
36425 #: ../src/guestfs.pod:2044
36426 msgid "Notes about walking over entries:"
36427 msgstr ""
36428
36429 #. type: textblock
36430 #: ../src/guestfs.pod:2050
36431 msgid ""
36432 "You must not call C<guestfs_set_private> while walking over the entries."
36433 msgstr ""
36434
36435 #. type: textblock
36436 #: ../src/guestfs.pod:2055
36437 msgid ""
36438 "The handle maintains an internal iterator which is reset when you call "
36439 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
36440 "call C<guestfs_set_private>."
36441 msgstr ""
36442
36443 #. type: textblock
36444 #: ../src/guestfs.pod:2061
36445 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36446 msgstr ""
36447
36448 #. type: verbatim
36449 #: ../src/guestfs.pod:2063
36450 #, no-wrap
36451 msgid ""
36452 " guestfs_set_private (g, key, NULL);\n"
36453 "\n"
36454 msgstr ""
36455
36456 #. type: textblock
36457 #: ../src/guestfs.pod:2065
36458 msgid "then that C<key> is not returned when walking."
36459 msgstr ""
36460
36461 #. type: textblock
36462 #: ../src/guestfs.pod:2069
36463 msgid ""
36464 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36465 "C<guestfs_next_private> or C<guestfs_set_private>."
36466 msgstr ""
36467
36468 #. type: textblock
36469 #: ../src/guestfs.pod:2075
36470 msgid ""
36471 "The following example code shows how to print all keys and data pointers "
36472 "that are associated with the handle C<g>:"
36473 msgstr ""
36474
36475 #. type: verbatim
36476 #: ../src/guestfs.pod:2078
36477 #, no-wrap
36478 msgid ""
36479 " const char *key;\n"
36480 " void *data = guestfs_first_private (g, &key);\n"
36481 " while (data != NULL)\n"
36482 "   {\n"
36483 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
36484 "     data = guestfs_next_private (g, &key);\n"
36485 "   }\n"
36486 "\n"
36487 msgstr ""
36488
36489 #. type: textblock
36490 #: ../src/guestfs.pod:2086
36491 msgid ""
36492 "More commonly you are only interested in keys that begin with an application-"
36493 "specific prefix C<foo_>.  Modify the loop like so:"
36494 msgstr ""
36495
36496 #. type: verbatim
36497 #: ../src/guestfs.pod:2089
36498 #, no-wrap
36499 msgid ""
36500 " const char *key;\n"
36501 " void *data = guestfs_first_private (g, &key);\n"
36502 " while (data != NULL)\n"
36503 "   {\n"
36504 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36505 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
36506 "     data = guestfs_next_private (g, &key);\n"
36507 "   }\n"
36508 "\n"
36509 msgstr ""
36510
36511 #. type: textblock
36512 #: ../src/guestfs.pod:2098
36513 msgid ""
36514 "If you need to modify keys while walking, then you have to jump back to the "
36515 "beginning of the loop.  For example, to delete all keys prefixed with "
36516 "C<foo_>:"
36517 msgstr ""
36518
36519 #. type: verbatim
36520 #: ../src/guestfs.pod:2102
36521 #, no-wrap
36522 msgid ""
36523 "  const char *key;\n"
36524 "  void *data;\n"
36525 " again:\n"
36526 "  data = guestfs_first_private (g, &key);\n"
36527 "  while (data != NULL)\n"
36528 "    {\n"
36529 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36530 "        {\n"
36531 "          guestfs_set_private (g, key, NULL);\n"
36532 "          /* note that 'key' pointer is now invalid, and so is\n"
36533 "             the internal iterator */\n"
36534 "          goto again;\n"
36535 "        }\n"
36536 "      data = guestfs_next_private (g, &key);\n"
36537 "    }\n"
36538 "\n"
36539 msgstr ""
36540
36541 #. type: textblock
36542 #: ../src/guestfs.pod:2118
36543 msgid ""
36544 "Note that the above loop is guaranteed to terminate because the keys are "
36545 "being deleted, but other manipulations of keys within the loop might not "
36546 "terminate unless you also maintain an indication of which keys have been "
36547 "visited."
36548 msgstr ""
36549
36550 #. type: =end
36551 #: ../src/guestfs.pod:2123 ../src/guestfs.pod:2128
36552 msgid "html"
36553 msgstr "html"
36554
36555 #. type: textblock
36556 #: ../src/guestfs.pod:2125
36557 msgid ""
36558 "<!-- old anchor for the next section --> <a name="
36559 "\"state_machine_and_low_level_event_api\"/>"
36560 msgstr ""
36561 "<!-- old anchor for the next section --> <a name="
36562 "\"state_machine_and_low_level_event_api\"/>"
36563
36564 #. type: =head1
36565 #: ../src/guestfs.pod:2130
36566 msgid "ARCHITECTURE"
36567 msgstr "АРХІТЕКТУРА"
36568
36569 #. type: textblock
36570 #: ../src/guestfs.pod:2132
36571 msgid ""
36572 "Internally, libguestfs is implemented by running an appliance (a special "
36573 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
36574 "process of the main program."
36575 msgstr ""
36576
36577 #. type: verbatim
36578 #: ../src/guestfs.pod:2136
36579 #, no-wrap
36580 msgid ""
36581 "  ___________________\n"
36582 " /                   \\\n"
36583 " | main program      |\n"
36584 " |                   |\n"
36585 " |                   |           child process / appliance\n"
36586 " |                   |           __________________________\n"
36587 " |                   |          / qemu                     \\\n"
36588 " +-------------------+   RPC    |      +-----------------+ |\n"
36589 " | libguestfs     <--------------------> guestfsd        | |\n"
36590 " |                   |          |      +-----------------+ |\n"
36591 " \\___________________/          |      | Linux kernel    | |\n"
36592 "                                |      +--^--------------+ |\n"
36593 "                                \\_________|________________/\n"
36594 "                                          |\n"
36595 "                                   _______v______\n"
36596 "                                  /              \\\n"
36597 "                                  | Device or    |\n"
36598 "                                  | disk image   |\n"
36599 "                                  \\______________/\n"
36600 "\n"
36601 msgstr ""
36602
36603 #. type: textblock
36604 #: ../src/guestfs.pod:2156
36605 msgid ""
36606 "The library, linked to the main program, creates the child process and hence "
36607 "the appliance in the L</guestfs_launch> function."
36608 msgstr ""
36609
36610 #. type: textblock
36611 #: ../src/guestfs.pod:2159
36612 msgid ""
36613 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36614 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36615 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
36616 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
36617 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
36618 "attached to the qemu process which translates device access by the "
36619 "appliance's Linux kernel into accesses to the image."
36620 msgstr ""
36621
36622 #. type: textblock
36623 #: ../src/guestfs.pod:2168
36624 msgid ""
36625 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
36626 "Although the disk image you are attached to might also be used by some "
36627 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
36628 "care if both libguestfs's qemu process and your virtual machine are trying "
36629 "to update the disk image at the same time, since these usually results in "
36630 "massive disk corruption)."
36631 msgstr ""
36632
36633 #. type: =head1
36634 #: ../src/guestfs.pod:2175
36635 msgid "STATE MACHINE"
36636 msgstr "СКІНЧЕННИЙ АВТОМАТ"
36637
36638 #. type: textblock
36639 #: ../src/guestfs.pod:2177
36640 msgid "libguestfs uses a state machine to model the child process:"
36641 msgstr ""
36642
36643 #. type: verbatim
36644 #: ../src/guestfs.pod:2179
36645 #, no-wrap
36646 msgid ""
36647 "                         |\n"
36648 "                    guestfs_create\n"
36649 "                         |\n"
36650 "                         |\n"
36651 "                     ____V_____\n"
36652 "                    /          \\\n"
36653 "                    |  CONFIG  |\n"
36654 "                    \\__________/\n"
36655 "                     ^ ^   ^  \\\n"
36656 "                    /  |    \\  \\ guestfs_launch\n"
36657 "                   /   |    _\\__V______\n"
36658 "                  /    |   /           \\\n"
36659 "                 /     |   | LAUNCHING |\n"
36660 "                /      |   \\___________/\n"
36661 "               /       |       /\n"
36662 "              /        |  guestfs_launch\n"
36663 "             /         |     /\n"
36664 "    ______  /        __|____V\n"
36665 "   /      \\ ------> /        \\\n"
36666 "   | BUSY |         | READY  |\n"
36667 "   \\______/ <------ \\________/\n"
36668 "\n"
36669 msgstr ""
36670
36671 #. type: textblock
36672 #: ../src/guestfs.pod:2201
36673 msgid ""
36674 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36675 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36676 "(3) alternating between READY and BUSY as commands are issued to, and "
36677 "carried out by, the child process."
36678 msgstr ""
36679
36680 #. type: textblock
36681 #: ../src/guestfs.pod:2206
36682 msgid ""
36683 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36684 "asynchronously at any time (eg. due to some internal error), and that causes "
36685 "the state to transition back to CONFIG."
36686 msgstr ""
36687
36688 #. type: textblock
36689 #: ../src/guestfs.pod:2210
36690 msgid ""
36691 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36692 "issued when in the CONFIG state."
36693 msgstr ""
36694
36695 #. type: textblock
36696 #: ../src/guestfs.pod:2213
36697 msgid ""
36698 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
36699 "L</guestfs_launch> blocks until the child process is READY to accept "
36700 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
36701 "moves the state from CONFIG to LAUNCHING while it is running."
36702 msgstr ""
36703
36704 #. type: textblock
36705 #: ../src/guestfs.pod:2219
36706 msgid ""
36707 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36708 "state.  These API calls block waiting for the command to be carried out (ie. "
36709 "the state to transition to BUSY and then back to READY).  There are no non-"
36710 "blocking versions, and no way to issue more than one command per handle at "
36711 "the same time."
36712 msgstr ""
36713
36714 #. type: textblock
36715 #: ../src/guestfs.pod:2225
36716 msgid ""
36717 "Finally, the child process sends asynchronous messages back to the main "
36718 "program, such as kernel log messages.  You can register a callback to "
36719 "receive these messages."
36720 msgstr ""
36721
36722 #. type: =head1
36723 #: ../src/guestfs.pod:2229
36724 msgid "INTERNALS"
36725 msgstr ""
36726
36727 #. type: =head2
36728 #: ../src/guestfs.pod:2231
36729 msgid "COMMUNICATION PROTOCOL"
36730 msgstr ""
36731
36732 #. type: textblock
36733 #: ../src/guestfs.pod:2233
36734 msgid ""
36735 "Don't rely on using this protocol directly.  This section documents how it "
36736 "currently works, but it may change at any time."
36737 msgstr ""
36738
36739 #. type: textblock
36740 #: ../src/guestfs.pod:2236
36741 msgid ""
36742 "The protocol used to talk between the library and the daemon running inside "
36743 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
36744 "1014, RFC 1832, RFC 4506)."
36745 msgstr ""
36746
36747 #. type: textblock
36748 #: ../src/guestfs.pod:2240
36749 msgid ""
36750 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
36751 "this file is automatically generated)."
36752 msgstr ""
36753
36754 #. type: textblock
36755 #: ../src/guestfs.pod:2243
36756 msgid ""
36757 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
36758 "and C<FileOut> parameters, which are handled with very simple request/reply "
36759 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
36760 "parameters, which use the same request and reply messages, but they may also "
36761 "be followed by files sent using a chunked encoding."
36762 msgstr ""
36763
36764 #. type: =head3
36765 #: ../src/guestfs.pod:2250
36766 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
36767 msgstr ""
36768
36769 #. type: textblock
36770 #: ../src/guestfs.pod:2252
36771 msgid "For ordinary functions, the request message is:"
36772 msgstr ""
36773
36774 #. type: verbatim
36775 #: ../src/guestfs.pod:2254
36776 #, no-wrap
36777 msgid ""
36778 " total length (header + arguments,\n"
36779 "      but not including the length word itself)\n"
36780 " struct guestfs_message_header (encoded as XDR)\n"
36781 " struct guestfs_<foo>_args (encoded as XDR)\n"
36782 "\n"
36783 msgstr ""
36784
36785 #. type: textblock
36786 #: ../src/guestfs.pod:2259
36787 msgid ""
36788 "The total length field allows the daemon to allocate a fixed size buffer "
36789 "into which it slurps the rest of the message.  As a result, the total length "
36790 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
36791 "effective size of any request is limited to somewhere under this size."
36792 msgstr ""
36793
36794 #. type: textblock
36795 #: ../src/guestfs.pod:2265
36796 msgid ""
36797 "Note also that many functions don't take any arguments, in which case the "
36798 "C<guestfs_I<foo>_args> is completely omitted."
36799 msgstr ""
36800
36801 #. type: textblock
36802 #: ../src/guestfs.pod:2268
36803 msgid ""
36804 "The header contains the procedure number (C<guestfs_proc>) which is how the "
36805 "receiver knows what type of args structure to expect, or none at all."
36806 msgstr ""
36807
36808 #. type: textblock
36809 #: ../src/guestfs.pod:2272
36810 msgid ""
36811 "For functions that take optional arguments, the optional arguments are "
36812 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
36813 "arguments.  A bitmask in the header indicates which optional arguments are "
36814 "meaningful.  The bitmask is also checked to see if it contains bits set "
36815 "which the daemon does not know about (eg. if more optional arguments were "
36816 "added in a later version of the library), and this causes the call to be "
36817 "rejected."
36818 msgstr ""
36819
36820 #. type: textblock
36821 #: ../src/guestfs.pod:2280
36822 msgid "The reply message for ordinary functions is:"
36823 msgstr ""
36824
36825 #. type: verbatim
36826 #: ../src/guestfs.pod:2282
36827 #, no-wrap
36828 msgid ""
36829 " total length (header + ret,\n"
36830 "      but not including the length word itself)\n"
36831 " struct guestfs_message_header (encoded as XDR)\n"
36832 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36833 "\n"
36834 msgstr ""
36835
36836 #. type: textblock
36837 #: ../src/guestfs.pod:2287
36838 msgid ""
36839 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
36840 "functions that return no formal return values."
36841 msgstr ""
36842
36843 #. type: textblock
36844 #: ../src/guestfs.pod:2290
36845 msgid ""
36846 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
36847 msgstr ""
36848
36849 #. type: textblock
36850 #: ../src/guestfs.pod:2293
36851 msgid ""
36852 "In the case of an error, a flag is set in the header, and the reply message "
36853 "is slightly changed:"
36854 msgstr ""
36855
36856 #. type: verbatim
36857 #: ../src/guestfs.pod:2296
36858 #, no-wrap
36859 msgid ""
36860 " total length (header + error,\n"
36861 "      but not including the length word itself)\n"
36862 " struct guestfs_message_header (encoded as XDR)\n"
36863 " struct guestfs_message_error (encoded as XDR)\n"
36864 "\n"
36865 msgstr ""
36866
36867 #. type: textblock
36868 #: ../src/guestfs.pod:2301
36869 msgid ""
36870 "The C<guestfs_message_error> structure contains the error message as a "
36871 "string."
36872 msgstr ""
36873
36874 #. type: =head3
36875 #: ../src/guestfs.pod:2304
36876 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
36877 msgstr ""
36878
36879 #. type: textblock
36880 #: ../src/guestfs.pod:2306
36881 msgid ""
36882 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
36883 "The normal request message is sent (see above).  However this is followed by "
36884 "a sequence of file chunks."
36885 msgstr ""
36886
36887 #. type: verbatim
36888 #: ../src/guestfs.pod:2310
36889 #, no-wrap
36890 msgid ""
36891 " total length (header + arguments,\n"
36892 "      but not including the length word itself,\n"
36893 "      and not including the chunks)\n"
36894 " struct guestfs_message_header (encoded as XDR)\n"
36895 " struct guestfs_<foo>_args (encoded as XDR)\n"
36896 " sequence of chunks for FileIn param #0\n"
36897 " sequence of chunks for FileIn param #1 etc.\n"
36898 "\n"
36899 msgstr ""
36900
36901 #. type: textblock
36902 #: ../src/guestfs.pod:2318
36903 msgid "The \"sequence of chunks\" is:"
36904 msgstr ""
36905
36906 #. type: verbatim
36907 #: ../src/guestfs.pod:2320
36908 #, no-wrap
36909 msgid ""
36910 " length of chunk (not including length word itself)\n"
36911 " struct guestfs_chunk (encoded as XDR)\n"
36912 " length of chunk\n"
36913 " struct guestfs_chunk (encoded as XDR)\n"
36914 "   ...\n"
36915 " length of chunk\n"
36916 " struct guestfs_chunk (with data.data_len == 0)\n"
36917 "\n"
36918 msgstr ""
36919
36920 #. type: textblock
36921 #: ../src/guestfs.pod:2328
36922 msgid ""
36923 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
36924 "is set in the final chunk to indicate either successful completion or early "
36925 "cancellation."
36926 msgstr ""
36927
36928 #. type: textblock
36929 #: ../src/guestfs.pod:2332
36930 msgid ""
36931 "At time of writing there are no functions that have more than one FileIn "
36932 "parameter.  However this is (theoretically) supported, by sending the "
36933 "sequence of chunks for each FileIn parameter one after another (from left to "
36934 "right)."
36935 msgstr ""
36936
36937 #. type: textblock
36938 #: ../src/guestfs.pod:2337
36939 msgid ""
36940 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
36941 "transfer.  The library does this by sending a chunk with a special flag set "
36942 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
36943 "RPC, does I<not> send any reply, and goes back to reading the next request."
36944 msgstr ""
36945
36946 #. type: textblock
36947 #: ../src/guestfs.pod:2343
36948 msgid ""
36949 "The daemon may also cancel.  It does this by writing a special word "
36950 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
36951 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
36952 "cancel chunk).  The special word is chosen so that even if cancellation "
36953 "happens right at the end of the transfer (after the library has finished "
36954 "writing and has started listening for the reply), the \"spurious\" cancel "
36955 "flag will not be confused with the reply message."
36956 msgstr ""
36957
36958 #. type: textblock
36959 #: ../src/guestfs.pod:2352
36960 msgid ""
36961 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
36962 "limit), and also files where the size is not known in advance (eg. from "
36963 "pipes or sockets).  However the chunks are rather small "
36964 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
36965 "to keep much in memory."
36966 msgstr ""
36967
36968 #. type: =head3
36969 #: ../src/guestfs.pod:2358
36970 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
36971 msgstr ""
36972
36973 #. type: textblock
36974 #: ../src/guestfs.pod:2360
36975 msgid ""
36976 "The protocol for FileOut parameters is exactly the same as for FileIn "
36977 "parameters, but with the roles of daemon and library reversed."
36978 msgstr ""
36979
36980 #. type: verbatim
36981 #: ../src/guestfs.pod:2363
36982 #, no-wrap
36983 msgid ""
36984 " total length (header + ret,\n"
36985 "      but not including the length word itself,\n"
36986 "      and not including the chunks)\n"
36987 " struct guestfs_message_header (encoded as XDR)\n"
36988 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36989 " sequence of chunks for FileOut param #0\n"
36990 " sequence of chunks for FileOut param #1 etc.\n"
36991 "\n"
36992 msgstr ""
36993
36994 #. type: =head3
36995 #: ../src/guestfs.pod:2371
36996 msgid "INITIAL MESSAGE"
36997 msgstr ""
36998
36999 #. type: textblock
37000 #: ../src/guestfs.pod:2373
37001 msgid ""
37002 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
37003 "which indicates that the guest and daemon is alive.  This is what L</"
37004 "guestfs_launch> waits for."
37005 msgstr ""
37006
37007 #. type: =head3
37008 #: ../src/guestfs.pod:2377
37009 msgid "PROGRESS NOTIFICATION MESSAGES"
37010 msgstr ""
37011
37012 #. type: textblock
37013 #: ../src/guestfs.pod:2379
37014 msgid ""
37015 "The daemon may send progress notification messages at any time.  These are "
37016 "distinguished by the normal length word being replaced by "
37017 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
37018 msgstr ""
37019
37020 #. type: textblock
37021 #: ../src/guestfs.pod:2383
37022 msgid ""
37023 "The library turns them into progress callbacks (see L</"
37024 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
37025 "if not."
37026 msgstr ""
37027
37028 #. type: textblock
37029 #: ../src/guestfs.pod:2387
37030 msgid ""
37031 "The daemon self-limits the frequency of progress messages it sends (see "
37032 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
37033 "messages."
37034 msgstr ""
37035
37036 #. type: =head1
37037 #: ../src/guestfs.pod:2391
37038 msgid "LIBGUESTFS VERSION NUMBERS"
37039 msgstr ""
37040
37041 #. type: textblock
37042 #: ../src/guestfs.pod:2393
37043 msgid ""
37044 "Since April 2010, libguestfs has started to make separate development and "
37045 "stable releases, along with corresponding branches in our git repository.  "
37046 "These separate releases can be identified by version number:"
37047 msgstr ""
37048
37049 #. type: verbatim
37050 #: ../src/guestfs.pod:2398
37051 #, no-wrap
37052 msgid ""
37053 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
37054 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
37055 "       |\n"
37056 "       v\n"
37057 " 1  .  3  .  5\n"
37058 " ^           ^\n"
37059 " |           |\n"
37060 " |           `-------- sub-version\n"
37061 " |\n"
37062 " `------ always '1' because we don't change the ABI\n"
37063 "\n"
37064 msgstr ""
37065
37066 #. type: textblock
37067 #: ../src/guestfs.pod:2409
37068 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37069 msgstr ""
37070
37071 #. type: textblock
37072 #: ../src/guestfs.pod:2411
37073 msgid ""
37074 "As time passes we cherry pick fixes from the development branch and backport "
37075 "those into the stable branch, the effect being that the stable branch should "
37076 "get more stable and less buggy over time.  So the stable releases are ideal "
37077 "for people who don't need new features but would just like the software to "
37078 "work."
37079 msgstr ""
37080
37081 #. type: textblock
37082 #: ../src/guestfs.pod:2417
37083 msgid "Our criteria for backporting changes are:"
37084 msgstr ""
37085
37086 #. type: textblock
37087 #: ../src/guestfs.pod:2423
37088 msgid ""
37089 "Documentation changes which don't affect any code are backported unless the "
37090 "documentation refers to a future feature which is not in stable."
37091 msgstr ""
37092
37093 #. type: textblock
37094 #: ../src/guestfs.pod:2429
37095 msgid ""
37096 "Bug fixes which are not controversial, fix obvious problems, and have been "
37097 "well tested are backported."
37098 msgstr ""
37099
37100 #. type: textblock
37101 #: ../src/guestfs.pod:2434
37102 msgid ""
37103 "Simple rearrangements of code which shouldn't affect how it works get "
37104 "backported.  This is so that the code in the two branches doesn't get too "
37105 "far out of step, allowing us to backport future fixes more easily."
37106 msgstr ""
37107
37108 #. type: textblock
37109 #: ../src/guestfs.pod:2440
37110 msgid ""
37111 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37112 "exceptional case: the new feature is required in order to implement an "
37113 "important bug fix."
37114 msgstr ""
37115
37116 #. type: textblock
37117 #: ../src/guestfs.pod:2446
37118 msgid ""
37119 "A new stable branch starts when we think the new features in development are "
37120 "substantial and compelling enough over the current stable branch to warrant "
37121 "it.  When that happens we create new stable and development versions 1.N.0 "
37122 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
37123 "stable at this point, but by backporting fixes from development, that branch "
37124 "will stabilize over time."
37125 msgstr ""
37126
37127 #. type: =head1
37128 #: ../src/guestfs.pod:2454
37129 msgid "EXTENDING LIBGUESTFS"
37130 msgstr ""
37131
37132 #. type: =head2
37133 #: ../src/guestfs.pod:2456
37134 msgid "ADDING A NEW API ACTION"
37135 msgstr ""
37136
37137 #. type: textblock
37138 #: ../src/guestfs.pod:2458
37139 msgid ""
37140 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37141 "documentation) are generated, and this makes it easy to extend the "
37142 "libguestfs API."
37143 msgstr ""
37144
37145 #. type: textblock
37146 #: ../src/guestfs.pod:2462
37147 msgid "To add a new API action there are two changes:"
37148 msgstr ""
37149
37150 #. type: textblock
37151 #: ../src/guestfs.pod:2468
37152 msgid ""
37153 "You need to add a description of the call (name, parameters, return type, "
37154 "tests, documentation) to C<generator/generator_actions.ml>."
37155 msgstr ""
37156
37157 #. type: textblock
37158 #: ../src/guestfs.pod:2471
37159 msgid ""
37160 "There are two sorts of API action, depending on whether the call goes "
37161 "through to the daemon in the appliance, or is serviced entirely by the "
37162 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
37163 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
37164 "an example of the latter, since a trace flag is maintained in the handle and "
37165 "all tracing is done on the library side."
37166 msgstr ""
37167
37168 #. type: textblock
37169 #: ../src/guestfs.pod:2479
37170 msgid ""
37171 "Most new actions are of the first type, and get added to the "
37172 "C<daemon_functions> list.  Each function has a unique procedure number used "
37173 "in the RPC protocol which is assigned to that action when we publish "
37174 "libguestfs and cannot be reused.  Take the latest procedure number and "
37175 "increment it."
37176 msgstr ""
37177
37178 #. type: textblock
37179 #: ../src/guestfs.pod:2485
37180 msgid ""
37181 "For library-only actions of the second type, add to the "
37182 "C<non_daemon_functions> list.  Since these functions are serviced by the "
37183 "library and do not travel over the RPC mechanism to the daemon, these "
37184 "functions do not need a procedure number, and so the procedure number is set "
37185 "to C<-1>."
37186 msgstr ""
37187
37188 #. type: textblock
37189 #: ../src/guestfs.pod:2493
37190 msgid "Implement the action (in C):"
37191 msgstr ""
37192
37193 #. type: textblock
37194 #: ../src/guestfs.pod:2495
37195 msgid ""
37196 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37197 "C<daemon/> directory."
37198 msgstr ""
37199
37200 #. type: textblock
37201 #: ../src/guestfs.pod:2498
37202 msgid ""
37203 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37204 "(note: double underscore) in the C<src/> directory."
37205 msgstr ""
37206
37207 #. type: textblock
37208 #: ../src/guestfs.pod:2501
37209 msgid "In either case, use another function as an example of what to do."
37210 msgstr ""
37211
37212 #. type: textblock
37213 #: ../src/guestfs.pod:2505
37214 msgid "After making these changes, use C<make> to compile."
37215 msgstr ""
37216
37217 #. type: textblock
37218 #: ../src/guestfs.pod:2507
37219 msgid ""
37220 "Note that you don't need to implement the RPC, language bindings, manual "
37221 "pages or anything else.  It's all automatically generated from the OCaml "
37222 "description."
37223 msgstr ""
37224
37225 #. type: =head2
37226 #: ../src/guestfs.pod:2511
37227 msgid "ADDING TESTS FOR AN API ACTION"
37228 msgstr ""
37229
37230 #. type: textblock
37231 #: ../src/guestfs.pod:2513
37232 msgid ""
37233 "You can supply zero or as many tests as you want per API call.  The tests "
37234 "can either be added as part of the API description (C<generator/"
37235 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37236 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
37237 "slower, so if possible use the first method."
37238 msgstr ""
37239
37240 #. type: textblock
37241 #: ../src/guestfs.pod:2519
37242 msgid ""
37243 "The following describes the test environment used when you add an API test "
37244 "in C<generator_actions.ml>."
37245 msgstr ""
37246
37247 #. type: textblock
37248 #: ../src/guestfs.pod:2522
37249 msgid "The test environment has 4 block devices:"
37250 msgstr ""
37251
37252 #. type: =item
37253 #: ../src/guestfs.pod:2526
37254 msgid "C</dev/sda> 500MB"
37255 msgstr "C</dev/sda> 500 МБ"
37256
37257 #. type: textblock
37258 #: ../src/guestfs.pod:2528
37259 msgid "General block device for testing."
37260 msgstr ""
37261
37262 #. type: =item
37263 #: ../src/guestfs.pod:2530
37264 msgid "C</dev/sdb> 50MB"
37265 msgstr "C</dev/sdb> 50 МБ"
37266
37267 #. type: textblock
37268 #: ../src/guestfs.pod:2532
37269 msgid ""
37270 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37271 "operations."
37272 msgstr ""
37273
37274 #. type: =item
37275 #: ../src/guestfs.pod:2535
37276 msgid "C</dev/sdc> 10MB"
37277 msgstr "C</dev/sdc> 10 МБ"
37278
37279 #. type: textblock
37280 #: ../src/guestfs.pod:2537
37281 msgid "Used in a few tests where two block devices are needed."
37282 msgstr ""
37283
37284 #. type: =item
37285 #: ../src/guestfs.pod:2539
37286 msgid "C</dev/sdd>"
37287 msgstr "C</dev/sdd>"
37288
37289 #. type: textblock
37290 #: ../src/guestfs.pod:2541
37291 msgid "ISO with fixed content (see C<images/test.iso>)."
37292 msgstr ""
37293
37294 #. type: textblock
37295 #: ../src/guestfs.pod:2545
37296 msgid ""
37297 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37298 "appliance and block devices are reused between tests.  So don't try testing "
37299 "L</guestfs_kill_subprocess> :-x"
37300 msgstr ""
37301
37302 #. type: textblock
37303 #: ../src/guestfs.pod:2549
37304 msgid ""
37305 "Each test starts with an initial scenario, selected using one of the "
37306 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
37307 "initialize the disks mentioned above in a particular way as documented in "
37308 "C<generator_types.ml>.  You should not assume anything about the previous "
37309 "contents of other disks that are not initialized."
37310 msgstr ""
37311
37312 #. type: textblock
37313 #: ../src/guestfs.pod:2555
37314 msgid ""
37315 "You can add a prerequisite clause to any individual test.  This is a run-"
37316 "time check, which, if it fails, causes the test to be skipped.  Useful if "
37317 "testing a command which might not work on all variations of libguestfs "
37318 "builds.  A test that has prerequisite of C<Always> means to run "
37319 "unconditionally."
37320 msgstr ""
37321
37322 #. type: textblock
37323 #: ../src/guestfs.pod:2561
37324 msgid ""
37325 "In addition, packagers can skip individual tests by setting environment "
37326 "variables before running C<make check>."
37327 msgstr ""
37328
37329 #. type: verbatim
37330 #: ../src/guestfs.pod:2564
37331 #, no-wrap
37332 msgid ""
37333 " SKIP_TEST_<CMD>_<NUM>=1\n"
37334 "\n"
37335 msgstr ""
37336
37337 #. type: textblock
37338 #: ../src/guestfs.pod:2566
37339 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37340 msgstr ""
37341
37342 #. type: textblock
37343 #: ../src/guestfs.pod:2568
37344 msgid "or:"
37345 msgstr "або:"
37346
37347 #. type: verbatim
37348 #: ../src/guestfs.pod:2570
37349 #, no-wrap
37350 msgid ""
37351 " SKIP_TEST_<CMD>=1\n"
37352 "\n"
37353 msgstr ""
37354
37355 #. type: textblock
37356 #: ../src/guestfs.pod:2572
37357 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37358 msgstr ""
37359
37360 #. type: textblock
37361 #: ../src/guestfs.pod:2574
37362 msgid "Packagers can run only certain tests by setting for example:"
37363 msgstr ""
37364
37365 #. type: verbatim
37366 #: ../src/guestfs.pod:2576
37367 #, no-wrap
37368 msgid ""
37369 " TEST_ONLY=\"vfs_type zerofree\"\n"
37370 "\n"
37371 msgstr ""
37372
37373 #. type: textblock
37374 #: ../src/guestfs.pod:2578
37375 msgid ""
37376 "See C<capitests/tests.c> for more details of how these environment variables "
37377 "work."
37378 msgstr ""
37379
37380 #. type: =head2
37381 #: ../src/guestfs.pod:2581
37382 msgid "DEBUGGING NEW API ACTIONS"
37383 msgstr ""
37384
37385 #. type: textblock
37386 #: ../src/guestfs.pod:2583
37387 msgid "Test new actions work before submitting them."
37388 msgstr ""
37389
37390 #. type: textblock
37391 #: ../src/guestfs.pod:2585
37392 msgid "You can use guestfish to try out new commands."
37393 msgstr ""
37394
37395 #. type: textblock
37396 #: ../src/guestfs.pod:2587
37397 msgid ""
37398 "Debugging the daemon is a problem because it runs inside a minimal "
37399 "environment.  However you can fprintf messages in the daemon to stderr, and "
37400 "they will show up if you use C<guestfish -v>."
37401 msgstr ""
37402
37403 #. type: =head2
37404 #: ../src/guestfs.pod:2591
37405 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37406 msgstr ""
37407
37408 #. type: textblock
37409 #: ../src/guestfs.pod:2593
37410 msgid ""
37411 "Our C source code generally adheres to some basic code-formatting "
37412 "conventions.  The existing code base is not totally consistent on this "
37413 "front, but we do prefer that contributed code be formatted similarly.  In "
37414 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37415 "indentation level, and other than that, follow the K&R style."
37416 msgstr ""
37417
37418 #. type: textblock
37419 #: ../src/guestfs.pod:2599
37420 msgid ""
37421 "If you use Emacs, add the following to one of one of your start-up files (e."
37422 "g., ~/.emacs), to help ensure that you get indentation right:"
37423 msgstr ""
37424
37425 #. type: verbatim
37426 #: ../src/guestfs.pod:2602
37427 #, no-wrap
37428 msgid ""
37429 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37430 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37431 " (add-hook 'find-file-hook\n"
37432 "     '(lambda () (if (and buffer-file-name\n"
37433 "                          (string-match \"/libguestfs\\\\>\"\n"
37434 "                              (buffer-file-name))\n"
37435 "                          (not (string-equal mode-name \"Change Log\"))\n"
37436 "                          (not (string-equal mode-name \"Makefile\")))\n"
37437 "                     (setq indent-tabs-mode nil))))\n"
37438 " \n"
37439 msgstr ""
37440
37441 #. type: verbatim
37442 #: ../src/guestfs.pod:2612
37443 #, no-wrap
37444 msgid ""
37445 " ;;; When editing C sources in libguestfs, use this style.\n"
37446 " (defun libguestfs-c-mode ()\n"
37447 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
37448 "   (interactive)\n"
37449 "   (c-set-style \"K&R\")\n"
37450 "   (setq c-indent-level 2)\n"
37451 "   (setq c-basic-offset 2))\n"
37452 " (add-hook 'c-mode-hook\n"
37453 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37454 "                               (buffer-file-name))\n"
37455 "                           (libguestfs-c-mode))))\n"
37456 "\n"
37457 msgstr ""
37458
37459 #. type: textblock
37460 #: ../src/guestfs.pod:2624
37461 msgid "Enable warnings when compiling (and fix any problems this finds):"
37462 msgstr ""
37463
37464 #. type: verbatim
37465 #: ../src/guestfs.pod:2627
37466 #, no-wrap
37467 msgid ""
37468 " ./configure --enable-gcc-warnings\n"
37469 "\n"
37470 msgstr ""
37471 " ./configure --enable-gcc-warnings\n"
37472 "\n"
37473
37474 #. type: textblock
37475 #: ../src/guestfs.pod:2629
37476 msgid "Useful targets are:"
37477 msgstr ""
37478
37479 #. type: verbatim
37480 #: ../src/guestfs.pod:2631
37481 #, no-wrap
37482 msgid ""
37483 " make syntax-check  # checks the syntax of the C code\n"
37484 " make check         # runs the test suite\n"
37485 "\n"
37486 msgstr ""
37487
37488 #. type: =head2
37489 #: ../src/guestfs.pod:2634
37490 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37491 msgstr ""
37492
37493 #. type: textblock
37494 #: ../src/guestfs.pod:2636
37495 msgid ""
37496 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37497 "which are used to do shell quoting."
37498 msgstr ""
37499
37500 #. type: =item
37501 #: ../src/guestfs.pod:2641
37502 msgid "%Q"
37503 msgstr "%Q"
37504
37505 #. type: textblock
37506 #: ../src/guestfs.pod:2643
37507 msgid ""
37508 "Simple shell quoted string.  Any spaces or other shell characters are "
37509 "escaped for you."
37510 msgstr ""
37511
37512 #. type: =item
37513 #: ../src/guestfs.pod:2646
37514 msgid "%R"
37515 msgstr "%R"
37516
37517 #. type: textblock
37518 #: ../src/guestfs.pod:2648
37519 msgid ""
37520 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37521 "the sysroot."
37522 msgstr ""
37523
37524 #. type: verbatim
37525 #: ../src/guestfs.pod:2655
37526 #, no-wrap
37527 msgid ""
37528 " asprintf (&cmd, \"cat %R\", path);\n"
37529 "\n"
37530 msgstr ""
37531
37532 #. type: textblock
37533 #: ../src/guestfs.pod:2657
37534 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37535 msgstr ""
37536
37537 #. type: textblock
37538 #: ../src/guestfs.pod:2659
37539 msgid ""
37540 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
37541 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
37542 "they are not passed via the shell (instead, straight to exec).  You probably "
37543 "want to use the C<sysroot_path()> function however."
37544 msgstr ""
37545
37546 #. type: =head2
37547 #: ../src/guestfs.pod:2665
37548 msgid "SUBMITTING YOUR NEW API ACTIONS"
37549 msgstr ""
37550
37551 #. type: textblock
37552 #: ../src/guestfs.pod:2667
37553 msgid ""
37554 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
37555 "libguestfs> and CC to L<rjones@redhat.com>."
37556 msgstr ""
37557
37558 #. type: =head2
37559 #: ../src/guestfs.pod:2671
37560 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37561 msgstr ""
37562
37563 #. type: textblock
37564 #: ../src/guestfs.pod:2673
37565 msgid "We support i18n (gettext anyhow) in the library."
37566 msgstr ""
37567
37568 #. type: textblock
37569 #: ../src/guestfs.pod:2675
37570 msgid ""
37571 "However many messages come from the daemon, and we don't translate those at "
37572 "the moment.  One reason is that the appliance generally has all locale files "
37573 "removed from it, because they take up a lot of space.  So we'd have to readd "
37574 "some of those, as well as copying our PO files into the appliance."
37575 msgstr ""
37576
37577 #. type: textblock
37578 #: ../src/guestfs.pod:2681
37579 msgid ""
37580 "Debugging messages are never translated, since they are intended for the "
37581 "programmers."
37582 msgstr ""
37583
37584 #. type: =head2
37585 #: ../src/guestfs.pod:2684
37586 msgid "SOURCE CODE SUBDIRECTORIES"
37587 msgstr ""
37588
37589 #. type: textblock
37590 #: ../src/guestfs.pod:2690
37591 msgid "The libguestfs appliance, build scripts and so on."
37592 msgstr ""
37593
37594 #. type: =item
37595 #: ../src/guestfs.pod:2692
37596 msgid "C<capitests>"
37597 msgstr "C<capitests>"
37598
37599 #. type: textblock
37600 #: ../src/guestfs.pod:2694
37601 msgid "Automated tests of the C API."
37602 msgstr ""
37603
37604 #. type: =item
37605 #: ../src/guestfs.pod:2696
37606 msgid "C<cat>"
37607 msgstr "C<cat>"
37608
37609 #. type: textblock
37610 #: ../src/guestfs.pod:2698
37611 msgid ""
37612 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37613 "documentation."
37614 msgstr ""
37615
37616 #. type: =item
37617 #: ../src/guestfs.pod:2701
37618 msgid "C<caution>"
37619 msgstr ""
37620
37621 #. type: textblock
37622 #: ../src/guestfs.pod:2703
37623 msgid ""
37624 "Safety and liveness tests of components that libguestfs depends upon (not of "
37625 "libguestfs itself).  Mainly this is for qemu and the kernel."
37626 msgstr ""
37627
37628 #. type: =item
37629 #: ../src/guestfs.pod:2706
37630 msgid "C<contrib>"
37631 msgstr "C<contrib>"
37632
37633 #. type: textblock
37634 #: ../src/guestfs.pod:2708
37635 msgid "Outside contributions, experimental parts."
37636 msgstr ""
37637
37638 #. type: =item
37639 #: ../src/guestfs.pod:2710
37640 msgid "C<daemon>"
37641 msgstr "C<daemon>"
37642
37643 #. type: textblock
37644 #: ../src/guestfs.pod:2712
37645 msgid ""
37646 "The daemon that runs inside the libguestfs appliance and carries out actions."
37647 msgstr ""
37648
37649 #. type: =item
37650 #: ../src/guestfs.pod:2715
37651 msgid "C<df>"
37652 msgstr "C<df>"
37653
37654 #. type: textblock
37655 #: ../src/guestfs.pod:2717
37656 msgid "L<virt-df(1)> command and documentation."
37657 msgstr ""
37658
37659 #. type: =item
37660 #: ../src/guestfs.pod:2719
37661 msgid "C<edit>"
37662 msgstr ""
37663
37664 #. type: textblock
37665 #: ../src/guestfs.pod:2721
37666 msgid "L<virt-edit(1)> command and documentation."
37667 msgstr ""
37668
37669 #. type: =item
37670 #: ../src/guestfs.pod:2723
37671 msgid "C<examples>"
37672 msgstr "C<examples>"
37673
37674 #. type: textblock
37675 #: ../src/guestfs.pod:2725
37676 msgid "C API example code."
37677 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
37678
37679 #. type: =item
37680 #: ../src/guestfs.pod:2727
37681 msgid "C<fish>"
37682 msgstr "C<fish>"
37683
37684 #. type: textblock
37685 #: ../src/guestfs.pod:2729
37686 msgid ""
37687 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
37688 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37689 "L<virt-tar-out(1)>."
37690 msgstr ""
37691
37692 #. type: =item
37693 #: ../src/guestfs.pod:2733
37694 msgid "C<fuse>"
37695 msgstr "C<fuse>"
37696
37697 #. type: textblock
37698 #: ../src/guestfs.pod:2735
37699 msgid ""
37700 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
37701 msgstr ""
37702
37703 #. type: =item
37704 #: ../src/guestfs.pod:2737
37705 msgid "C<generator>"
37706 msgstr "C<generator>"
37707
37708 #. type: textblock
37709 #: ../src/guestfs.pod:2739
37710 msgid ""
37711 "The crucially important generator, used to automatically generate large "
37712 "amounts of boilerplate C code for things like RPC and bindings."
37713 msgstr ""
37714
37715 #. type: =item
37716 #: ../src/guestfs.pod:2742
37717 msgid "C<images>"
37718 msgstr "C<images>"
37719
37720 #. type: textblock
37721 #: ../src/guestfs.pod:2744
37722 msgid "Files used by the test suite."
37723 msgstr ""
37724
37725 #. type: textblock
37726 #: ../src/guestfs.pod:2746
37727 msgid "Some \"phony\" guest images which we test against."
37728 msgstr ""
37729
37730 #. type: =item
37731 #: ../src/guestfs.pod:2748
37732 msgid "C<inspector>"
37733 msgstr "C<inspector>"
37734
37735 #. type: textblock
37736 #: ../src/guestfs.pod:2750
37737 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
37738 msgstr ""
37739
37740 #. type: =item
37741 #: ../src/guestfs.pod:2752
37742 msgid "C<logo>"
37743 msgstr "C<logo>"
37744
37745 #. type: textblock
37746 #: ../src/guestfs.pod:2754
37747 msgid "Logo used on the website.  The fish is called Arthur by the way."
37748 msgstr ""
37749
37750 #. type: =item
37751 #: ../src/guestfs.pod:2756
37752 msgid "C<m4>"
37753 msgstr "C<m4>"
37754
37755 #. type: textblock
37756 #: ../src/guestfs.pod:2758
37757 msgid "M4 macros used by autoconf."
37758 msgstr ""
37759
37760 #. type: =item
37761 #: ../src/guestfs.pod:2760
37762 msgid "C<po>"
37763 msgstr "C<po>"
37764
37765 #. type: textblock
37766 #: ../src/guestfs.pod:2762
37767 msgid "Translations of simple gettext strings."
37768 msgstr "Переклади простих рядків gettext."
37769
37770 #. type: =item
37771 #: ../src/guestfs.pod:2764
37772 msgid "C<po-docs>"
37773 msgstr "C<po-docs>"
37774
37775 #. type: textblock
37776 #: ../src/guestfs.pod:2766
37777 msgid ""
37778 "The build infrastructure and PO files for translations of manpages and POD "
37779 "files.  Eventually this will be combined with the C<po> directory, but that "
37780 "is rather complicated."
37781 msgstr ""
37782
37783 #. type: =item
37784 #: ../src/guestfs.pod:2770
37785 msgid "C<regressions>"
37786 msgstr "C<regressions>"
37787
37788 #. type: textblock
37789 #: ../src/guestfs.pod:2772
37790 msgid "Regression tests."
37791 msgstr "Тести на регресії."
37792
37793 #. type: =item
37794 #: ../src/guestfs.pod:2774
37795 msgid "C<rescue>"
37796 msgstr "C<rescue>"
37797
37798 #. type: textblock
37799 #: ../src/guestfs.pod:2776
37800 msgid "L<virt-rescue(1)> command and documentation."
37801 msgstr ""
37802
37803 #. type: =item
37804 #: ../src/guestfs.pod:2778
37805 msgid "C<src>"
37806 msgstr "C<src>"
37807
37808 #. type: textblock
37809 #: ../src/guestfs.pod:2780
37810 msgid "Source code to the C library."
37811 msgstr ""
37812
37813 #. type: =item
37814 #: ../src/guestfs.pod:2782
37815 msgid "C<tools>"
37816 msgstr "C<tools>"
37817
37818 #. type: textblock
37819 #: ../src/guestfs.pod:2784
37820 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
37821 msgstr ""
37822
37823 #. type: =item
37824 #: ../src/guestfs.pod:2786
37825 msgid "C<test-tool>"
37826 msgstr "C<test-tool>"
37827
37828 #. type: textblock
37829 #: ../src/guestfs.pod:2788
37830 msgid ""
37831 "Test tool for end users to test if their qemu/kernel combination will work "
37832 "with libguestfs."
37833 msgstr ""
37834
37835 #. type: =item
37836 #: ../src/guestfs.pod:2791
37837 msgid "C<csharp>"
37838 msgstr "C<csharp>"
37839
37840 #. type: =item
37841 #: ../src/guestfs.pod:2793
37842 msgid "C<haskell>"
37843 msgstr "C<haskell>"
37844
37845 #. type: =item
37846 #: ../src/guestfs.pod:2795
37847 msgid "C<java>"
37848 msgstr "C<java>"
37849
37850 #. type: =item
37851 #: ../src/guestfs.pod:2797
37852 msgid "C<ocaml>"
37853 msgstr "C<ocaml>"
37854
37855 #. type: =item
37856 #: ../src/guestfs.pod:2799
37857 msgid "C<php>"
37858 msgstr "C<php>"
37859
37860 #. type: =item
37861 #: ../src/guestfs.pod:2801
37862 msgid "C<perl>"
37863 msgstr "C<perl>"
37864
37865 #. type: =item
37866 #: ../src/guestfs.pod:2803
37867 msgid "C<python>"
37868 msgstr "C<python>"
37869
37870 #. type: =item
37871 #: ../src/guestfs.pod:2805
37872 msgid "C<ruby>"
37873 msgstr "C<ruby>"
37874
37875 #. type: textblock
37876 #: ../src/guestfs.pod:2807
37877 msgid "Language bindings."
37878 msgstr "Прив’язки до мов програмування."
37879
37880 #. type: =head2
37881 #: ../src/guestfs.pod:2811
37882 msgid "MAKING A STABLE RELEASE"
37883 msgstr ""
37884
37885 #. type: textblock
37886 #: ../src/guestfs.pod:2813
37887 msgid ""
37888 "When we make a stable release, there are several steps documented here.  See "
37889 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
37890 "branch policy."
37891 msgstr ""
37892
37893 #. type: textblock
37894 #: ../src/guestfs.pod:2821
37895 msgid ""
37896 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
37897 msgstr ""
37898
37899 #. type: textblock
37900 #: ../src/guestfs.pod:2826
37901 msgid "Finalize RELEASE-NOTES."
37902 msgstr ""
37903
37904 #. type: textblock
37905 #: ../src/guestfs.pod:2830
37906 msgid "Update ROADMAP."
37907 msgstr ""
37908
37909 #. type: textblock
37910 #: ../src/guestfs.pod:2834
37911 msgid "Run C<src/api-support/update-from-tarballs.sh>."
37912 msgstr ""
37913
37914 #. type: textblock
37915 #: ../src/guestfs.pod:2838
37916 msgid "Push and pull from Transifex."
37917 msgstr ""
37918
37919 #. type: textblock
37920 #: ../src/guestfs.pod:2840
37921 msgid "Run:"
37922 msgstr ""
37923
37924 #. type: verbatim
37925 #: ../src/guestfs.pod:2842
37926 #, no-wrap
37927 msgid ""
37928 " tx push -s\n"
37929 "\n"
37930 msgstr ""
37931
37932 #. type: textblock
37933 #: ../src/guestfs.pod:2844
37934 msgid "to push the latest POT files to Transifex.  Then run:"
37935 msgstr ""
37936
37937 #. type: verbatim
37938 #: ../src/guestfs.pod:2846
37939 #, no-wrap
37940 msgid ""
37941 " ./tx-pull.sh\n"
37942 "\n"
37943 msgstr ""
37944
37945 #. type: textblock
37946 #: ../src/guestfs.pod:2848
37947 msgid "which is a wrapper to pull the latest translated C<*.po> files."
37948 msgstr ""
37949
37950 #. type: textblock
37951 #: ../src/guestfs.pod:2852
37952 msgid ""
37953 "Create new stable and development directories under L<http://libguestfs.org/"
37954 "download>."
37955 msgstr ""
37956
37957 #. type: textblock
37958 #: ../src/guestfs.pod:2857
37959 msgid "Create the branch in git:"
37960 msgstr ""
37961
37962 #. type: verbatim
37963 #: ../src/guestfs.pod:2859
37964 #, no-wrap
37965 msgid ""
37966 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
37967 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
37968 " git branch stable-1.XX\n"
37969 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
37970 "\n"
37971 msgstr ""
37972
37973 #. type: =head1
37974 #: ../src/guestfs.pod:2866
37975 msgid "LIMITS"
37976 msgstr ""
37977
37978 #. type: =head2
37979 #: ../src/guestfs.pod:2868
37980 msgid "PROTOCOL LIMITS"
37981 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
37982
37983 #. type: textblock
37984 #: ../src/guestfs.pod:2870
37985 msgid ""
37986 "Internally libguestfs uses a message-based protocol to pass API calls and "
37987 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
37988 "plenty more detail about this).  The maximum message size used by the "
37989 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
37990 "aware of this limit.  The API calls which may be affected are individually "
37991 "documented, with a link back to this section of the documentation."
37992 msgstr ""
37993
37994 #. type: textblock
37995 #: ../src/guestfs.pod:2878
37996 msgid ""
37997 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
37998 "a simple string.  Because this string is at some point internally encoded as "
37999 "a message, the maximum size that it can return is slightly under 4 MB.  If "
38000 "the requested file is larger than this then you will get an error."
38001 msgstr ""
38002
38003 #. type: textblock
38004 #: ../src/guestfs.pod:2884
38005 msgid ""
38006 "In order to transfer large files into and out of the guest filesystem, you "
38007 "need to use particular calls that support this.  The sections L</UPLOADING> "
38008 "and L</DOWNLOADING> document how to do this."
38009 msgstr ""
38010
38011 #. type: textblock
38012 #: ../src/guestfs.pod:2888
38013 msgid ""
38014 "You might also consider mounting the disk image using our FUSE filesystem "
38015 "support (L<guestmount(1)>)."
38016 msgstr ""
38017
38018 #. type: =head2
38019 #: ../src/guestfs.pod:2891
38020 msgid "MAXIMUM NUMBER OF DISKS"
38021 msgstr ""
38022
38023 #. type: textblock
38024 #: ../src/guestfs.pod:2893
38025 msgid "When using virtio disks (the default) the current limit is B<25> disks."
38026 msgstr ""
38027
38028 #. type: textblock
38029 #: ../src/guestfs.pod:2896
38030 msgid ""
38031 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
38032 "slots.  However febootstrap only understands disks with names C</dev/vda> "
38033 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
38034 "purposes."
38035 msgstr ""
38036
38037 #. type: textblock
38038 #: ../src/guestfs.pod:2901
38039 msgid ""
38040 "We are working to substantially raise this limit in future versions but it "
38041 "requires complex changes to qemu."
38042 msgstr ""
38043
38044 #. type: textblock
38045 #: ../src/guestfs.pod:2904
38046 msgid ""
38047 "In future versions of libguestfs it should also be possible to \"hot plug\" "
38048 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
38049 "requires changes to qemu."
38050 msgstr ""
38051
38052 #. type: =head2
38053 #: ../src/guestfs.pod:2908
38054 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
38055 msgstr ""
38056
38057 #. type: textblock
38058 #: ../src/guestfs.pod:2910
38059 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38060 msgstr ""
38061
38062 #. type: textblock
38063 #: ../src/guestfs.pod:2912
38064 msgid ""
38065 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
38066 "vda>, and C</dev/vda1> through C</dev/vda15>)."
38067 msgstr ""
38068
38069 #. type: textblock
38070 #: ../src/guestfs.pod:2915
38071 msgid ""
38072 "If you attach a disk with more than 15 partitions, the extra partitions are "
38073 "ignored by libguestfs."
38074 msgstr ""
38075
38076 #. type: =head2
38077 #: ../src/guestfs.pod:2918
38078 msgid "MAXIMUM SIZE OF A DISK"
38079 msgstr ""
38080
38081 #. type: textblock
38082 #: ../src/guestfs.pod:2920
38083 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38084 msgstr ""
38085
38086 #. type: textblock
38087 #: ../src/guestfs.pod:2922
38088 msgid ""
38089 "We have tested block devices up to 1 exabyte (2**60 or "
38090 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38091 "filesystem."
38092 msgstr ""
38093
38094 #. type: textblock
38095 #: ../src/guestfs.pod:2926
38096 msgid ""
38097 "Although libguestfs probably does not impose any limit, the underlying host "
38098 "storage will.  If you store disk images on a host ext4 filesystem, then the "
38099 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38100 "TB).  If you store disk images as host logical volumes then you are limited "
38101 "by the maximum size of an LV."
38102 msgstr ""
38103
38104 #. type: textblock
38105 #: ../src/guestfs.pod:2932
38106 msgid ""
38107 "For the hugest disk image files, we recommend using XFS on the host for "
38108 "storage."
38109 msgstr ""
38110
38111 #. type: =head2
38112 #: ../src/guestfs.pod:2935
38113 msgid "MAXIMUM SIZE OF A PARTITION"
38114 msgstr ""
38115
38116 #. type: textblock
38117 #: ../src/guestfs.pod:2937
38118 msgid ""
38119 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38120 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
38121 "address a partition located beyond 2 TB on the disk."
38122 msgstr ""
38123
38124 #. type: textblock
38125 #: ../src/guestfs.pod:2941
38126 msgid ""
38127 "It is recommended that you use GPT partitions on disks which are larger than "
38128 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
38129 "which are theoretically larger than the largest disk we could support."
38130 msgstr ""
38131
38132 #. type: =head2
38133 #: ../src/guestfs.pod:2946
38134 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38135 msgstr ""
38136
38137 #. type: textblock
38138 #: ../src/guestfs.pod:2948
38139 msgid ""
38140 "This depends on the filesystem type.  libguestfs itself does not impose any "
38141 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
38142 "what these limits are."
38143 msgstr ""
38144
38145 #. type: =head2
38146 #: ../src/guestfs.pod:2952
38147 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38148 msgstr ""
38149
38150 #. type: textblock
38151 #: ../src/guestfs.pod:2954
38152 msgid ""
38153 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
38154 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38155 "uploads and downloads."
38156 msgstr ""
38157
38158 #. type: =head2
38159 #: ../src/guestfs.pod:2958
38160 msgid "INSPECTION LIMITS"
38161 msgstr ""
38162
38163 #. type: textblock
38164 #: ../src/guestfs.pod:2960
38165 msgid ""
38166 "The inspection code has several arbitrary limits on things like the size of "
38167 "Windows Registry hive it will read, and the length of product name.  These "
38168 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38169 "memory and disk space on the host, and should not be reached in practice.  "
38170 "See the source code for more information."
38171 msgstr ""
38172
38173 #. type: textblock
38174 #: ../src/guestfs.pod:2986
38175 msgid ""
38176 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
38177 "effect as calling C<guestfs_set_verbose (g, 1)>."
38178 msgstr ""
38179
38180 #. type: textblock
38181 #: ../src/guestfs.pod:2998
38182 msgid ""
38183 "Set the path that libguestfs uses to search for a supermin appliance.  See "
38184 "the discussion of paths in section L</PATH> above."
38185 msgstr ""
38186
38187 #. type: textblock
38188 #: ../src/guestfs.pod:3007
38189 msgid "See also L</QEMU WRAPPERS> above."
38190 msgstr ""
38191
38192 #. type: textblock
38193 #: ../src/guestfs.pod:3011
38194 msgid ""
38195 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
38196 "effect as calling C<guestfs_set_trace (g, 1)>."
38197 msgstr ""
38198
38199 #. type: textblock
38200 #: ../src/guestfs.pod:3029
38201 msgid ""
38202 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
38203 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
38204 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
38205 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
38206 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
38207 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
38208 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38209 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
38210 msgstr ""
38211
38212 #. type: textblock
38213 #: ../src/guestfs.pod:3059
38214 msgid ""
38215 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38216 "(8)>, L<disktype(1)>."
38217 msgstr ""
38218
38219 #. type: =head1
38220 #: ../src/guestfs.pod:3066 ../tools/virt-make-fs.pl:553
38221 #: ../tools/virt-win-reg.pl:761
38222 msgid "BUGS"
38223 msgstr "ВАДИ"
38224
38225 #. type: textblock
38226 #: ../src/guestfs.pod:3068
38227 msgid "To get a list of bugs against libguestfs use this link:"
38228 msgstr ""
38229 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
38230 "посиланням:"
38231
38232 #. type: textblock
38233 #: ../src/guestfs.pod:3070
38234 msgid ""
38235 "L<https://bugzilla.redhat.com/buglist.cgi?"
38236 "component=libguestfs&product=Virtualization+Tools>"
38237 msgstr ""
38238 "L<https://bugzilla.redhat.com/buglist.cgi?"
38239 "component=libguestfs&product=Virtualization+Tools>"
38240
38241 #. type: textblock
38242 #: ../src/guestfs.pod:3072
38243 msgid "To report a new bug against libguestfs use this link:"
38244 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
38245
38246 #. type: textblock
38247 #: ../src/guestfs.pod:3074
38248 msgid ""
38249 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38250 "component=libguestfs&product=Virtualization+Tools>"
38251 msgstr ""
38252 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38253 "component=libguestfs&product=Virtualization+Tools>"
38254
38255 #. type: textblock
38256 #: ../src/guestfs.pod:3076
38257 msgid "When reporting a bug, please check:"
38258 msgstr ""
38259
38260 #. type: textblock
38261 #: ../src/guestfs.pod:3082
38262 msgid "That the bug hasn't been reported already."
38263 msgstr ""
38264
38265 #. type: textblock
38266 #: ../src/guestfs.pod:3086
38267 msgid "That you are testing a recent version."
38268 msgstr ""
38269
38270 #. type: textblock
38271 #: ../src/guestfs.pod:3090
38272 msgid "Describe the bug accurately, and give a way to reproduce it."
38273 msgstr ""
38274
38275 #. type: textblock
38276 #: ../src/guestfs.pod:3094
38277 msgid ""
38278 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38279 "bug report."
38280 msgstr ""
38281
38282 #. type: textblock
38283 #: ../test-tool/libguestfs-test-tool.pod:5
38284 msgid "libguestfs-test-tool - End user tests for libguestfs"
38285 msgstr ""
38286
38287 #. type: verbatim
38288 #: ../test-tool/libguestfs-test-tool.pod:9
38289 #, no-wrap
38290 msgid ""
38291 " libguestfs-test-tool [--options]\n"
38292 "\n"
38293 msgstr ""
38294
38295 #. type: textblock
38296 #: ../test-tool/libguestfs-test-tool.pod:13
38297 msgid ""
38298 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
38299 "and developers, to allow them to check basic libguestfs functionality is "
38300 "working.  This is needed because libguestfs occasionally breaks for reasons "
38301 "beyond our control: usually because of changes in the underlying qemu or "
38302 "kernel packages, or the host environment."
38303 msgstr ""
38304
38305 #. type: textblock
38306 #: ../test-tool/libguestfs-test-tool.pod:20
38307 msgid "If you suspect a problem in libguestfs, then just run:"
38308 msgstr ""
38309
38310 #. type: verbatim
38311 #: ../test-tool/libguestfs-test-tool.pod:22
38312 #, no-wrap
38313 msgid ""
38314 " libguestfs-test-tool\n"
38315 "\n"
38316 msgstr ""
38317
38318 #. type: textblock
38319 #: ../test-tool/libguestfs-test-tool.pod:24
38320 msgid "It will print lots of diagnostic messages."
38321 msgstr ""
38322
38323 #. type: textblock
38324 #: ../test-tool/libguestfs-test-tool.pod:26
38325 msgid "If it runs to completion successfully, you will see this near the end:"
38326 msgstr ""
38327
38328 #. type: verbatim
38329 #: ../test-tool/libguestfs-test-tool.pod:28
38330 #, no-wrap
38331 msgid ""
38332 " ===== TEST FINISHED OK =====\n"
38333 "\n"
38334 msgstr ""
38335
38336 #. type: textblock
38337 #: ../test-tool/libguestfs-test-tool.pod:30
38338 msgid "and the test tool will exit with code 0."
38339 msgstr ""
38340
38341 #. type: textblock
38342 #: ../test-tool/libguestfs-test-tool.pod:32
38343 msgid ""
38344 "If it fails (and/or exits with non-zero error code), please paste the "
38345 "B<complete, unedited> output of the test tool into a bug report.  More "
38346 "information about reporting bugs can be found on the L<http://libguestfs.org/"
38347 "> website."
38348 msgstr ""
38349
38350 #. type: =item
38351 #: ../test-tool/libguestfs-test-tool.pod:41
38352 msgid "I<--help>"
38353 msgstr "I<--help>"
38354
38355 #. type: textblock
38356 #: ../test-tool/libguestfs-test-tool.pod:43
38357 msgid "Display short usage information and exit."
38358 msgstr ""
38359
38360 #. type: =item
38361 #: ../test-tool/libguestfs-test-tool.pod:45
38362 msgid "I<--qemu qemu_binary>"
38363 msgstr "I<--qemu виконуваний_файл_qemu>"
38364
38365 #. type: textblock
38366 #: ../test-tool/libguestfs-test-tool.pod:47
38367 msgid ""
38368 "If you have downloaded another qemu binary, point this option at the full "
38369 "path of the binary to try it."
38370 msgstr ""
38371
38372 #. type: =item
38373 #: ../test-tool/libguestfs-test-tool.pod:50
38374 msgid "I<--qemudir qemu_source_dir>"
38375 msgstr ""
38376
38377 #. type: textblock
38378 #: ../test-tool/libguestfs-test-tool.pod:52
38379 msgid ""
38380 "If you have compiled qemu from source, point this option at the source "
38381 "directory to try it."
38382 msgstr ""
38383
38384 #. type: =item
38385 #: ../test-tool/libguestfs-test-tool.pod:55
38386 msgid "I<--timeout N>"
38387 msgstr "I<--timeout N>"
38388
38389 #. type: textblock
38390 #: ../test-tool/libguestfs-test-tool.pod:57
38391 msgid ""
38392 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
38393 "does not usually need to be adjusted unless your machine is very slow."
38394 msgstr ""
38395
38396 #. type: =head1
38397 #: ../test-tool/libguestfs-test-tool.pod:63
38398 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38399 msgstr ""
38400
38401 #. type: textblock
38402 #: ../test-tool/libguestfs-test-tool.pod:65
38403 msgid ""
38404 "If you have compiled another version of qemu from source and would like to "
38405 "try that, then you can use the I<--qemudir> option to point to the qemu "
38406 "source directory."
38407 msgstr ""
38408
38409 #. type: textblock
38410 #: ../test-tool/libguestfs-test-tool.pod:69
38411 msgid ""
38412 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38413 "option to point to the binary."
38414 msgstr ""
38415
38416 #. type: textblock
38417 #: ../test-tool/libguestfs-test-tool.pod:72
38418 msgid ""
38419 "When using an alternate qemu with libguestfs, usually you would need to "
38420 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
38421 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
38422 "use either of the I<--qemudir> or I<--qemu> options."
38423 msgstr ""
38424
38425 #. type: textblock
38426 #: ../test-tool/libguestfs-test-tool.pod:79
38427 msgid ""
38428 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38429 "I<1> if there was an error."
38430 msgstr ""
38431
38432 #. type: textblock
38433 #: ../test-tool/libguestfs-test-tool.pod:84
38434 msgid ""
38435 "For the full list of environment variables which may affect libguestfs, "
38436 "please see the L<guestfs(3)> manual page."
38437 msgstr ""
38438
38439 #. type: textblock
38440 #: ../test-tool/libguestfs-test-tool.pod:89
38441 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38442 msgstr ""
38443
38444 #. type: textblock
38445 #: ../tools/virt-list-filesystems.pl:32
38446 msgid ""
38447 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38448 msgstr ""
38449
38450 #. type: verbatim
38451 #: ../tools/virt-list-filesystems.pl:36
38452 #, no-wrap
38453 msgid ""
38454 " virt-list-filesystems [--options] domname\n"
38455 "\n"
38456 msgstr ""
38457
38458 #. type: verbatim
38459 #: ../tools/virt-list-filesystems.pl:38
38460 #, no-wrap
38461 msgid ""
38462 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38463 "\n"
38464 msgstr ""
38465
38466 #. type: textblock
38467 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38468 msgid ""
38469 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
38470 "replacement."
38471 msgstr ""
38472
38473 #. type: textblock
38474 #: ../tools/virt-list-filesystems.pl:45
38475 msgid ""
38476 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38477 "are contained in a virtual machine or disk image."
38478 msgstr ""
38479
38480 #. type: textblock
38481 #: ../tools/virt-list-filesystems.pl:49
38482 msgid ""
38483 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38484 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38485 "> tool."
38486 msgstr ""
38487
38488 #. type: textblock
38489 #: ../tools/virt-list-filesystems.pl:112
38490 msgid ""
38491 "With this option, C<virt-list-filesystems> displays the type of each "
38492 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38493 msgstr ""
38494
38495 #. type: =item
38496 #: ../tools/virt-list-filesystems.pl:119
38497 #, fuzzy
38498 #| msgid "B<-a image>"
38499 msgid "B<-a>"
38500 msgstr "B<-a образ>"
38501
38502 #. type: textblock
38503 #: ../tools/virt-list-filesystems.pl:123
38504 msgid ""
38505 "Normally we only show mountable filesystems.  If this option is given then "
38506 "swap devices are shown too."
38507 msgstr ""
38508
38509 #. type: textblock
38510 #: ../tools/virt-list-filesystems.pl:197
38511 msgid ""
38512 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38513 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38514 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38515 msgstr ""
38516 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38517 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38518 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38519
38520 #. type: textblock
38521 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38522 msgid "Copyright (C) 2009 Red Hat Inc."
38523 msgstr "© Red Hat Inc., 2009"
38524
38525 #. type: textblock
38526 #: ../tools/virt-list-partitions.pl:32
38527 msgid ""
38528 "virt-list-partitions - List partitions in a virtual machine or disk image"
38529 msgstr ""
38530
38531 #. type: verbatim
38532 #: ../tools/virt-list-partitions.pl:36
38533 #, no-wrap
38534 msgid ""
38535 " virt-list-partitions [--options] domname\n"
38536 "\n"
38537 msgstr ""
38538 " virt-list-partitions [--параметри] назва_домену\n"
38539 "\n"
38540
38541 #. type: verbatim
38542 #: ../tools/virt-list-partitions.pl:38
38543 #, no-wrap
38544 msgid ""
38545 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38546 "\n"
38547 msgstr ""
38548 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
38549 "\n"
38550
38551 #. type: textblock
38552 #: ../tools/virt-list-partitions.pl:45
38553 msgid ""
38554 "C<virt-list-partitions> is a command line tool to list the partitions that "
38555 "are contained in a virtual machine or disk image.  It is mainly useful as a "
38556 "first step to using L<virt-resize(1)>."
38557 msgstr ""
38558
38559 #. type: textblock
38560 #: ../tools/virt-list-partitions.pl:50
38561 msgid ""
38562 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38563 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38564 "> tool."
38565 msgstr ""
38566
38567 #. type: textblock
38568 #: ../tools/virt-list-partitions.pl:113
38569 msgid "Show sizes in human-readable form (eg. \"1G\")."
38570 msgstr ""
38571
38572 #. type: textblock
38573 #: ../tools/virt-list-partitions.pl:123
38574 msgid ""
38575 "With this option, C<virt-list-partitions> displays the type and size of each "
38576 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38577 msgstr ""
38578
38579 #. type: =item
38580 #: ../tools/virt-list-partitions.pl:130
38581 msgid "B<-t>"
38582 msgstr ""
38583
38584 #. type: =item
38585 #: ../tools/virt-list-partitions.pl:132
38586 #, fuzzy
38587 #| msgid "B<-t> | B<--total>"
38588 msgid "B<--total>"
38589 msgstr "B<-t> | B<--total>"
38590
38591 #. type: textblock
38592 #: ../tools/virt-list-partitions.pl:134
38593 msgid ""
38594 "Display the total size of each block device (as a separate row or rows)."
38595 msgstr ""
38596
38597 #. type: textblock
38598 #: ../tools/virt-list-partitions.pl:267
38599 msgid ""
38600 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38601 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38602 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38603 msgstr ""
38604 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38605 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38606 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38607
38608 #. type: textblock
38609 #: ../tools/virt-list-partitions.pl:283
38610 msgid "Copyright (C) 2009-2010 Red Hat Inc."
38611 msgstr "© Red Hat Inc., 2009–2010"
38612
38613 #. type: textblock
38614 #: ../tools/virt-make-fs.pl:37
38615 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
38616 msgstr ""
38617
38618 #. type: verbatim
38619 #: ../tools/virt-make-fs.pl:41
38620 #, no-wrap
38621 msgid ""
38622 " virt-make-fs [--options] input.tar output.img\n"
38623 "\n"
38624 msgstr ""
38625
38626 #. type: verbatim
38627 #: ../tools/virt-make-fs.pl:43
38628 #, no-wrap
38629 msgid ""
38630 " virt-make-fs [--options] input.tar.gz output.img\n"
38631 "\n"
38632 msgstr ""
38633
38634 #. type: verbatim
38635 #: ../tools/virt-make-fs.pl:45
38636 #, no-wrap
38637 msgid ""
38638 " virt-make-fs [--options] directory output.img\n"
38639 "\n"
38640 msgstr ""
38641
38642 #. type: textblock
38643 #: ../tools/virt-make-fs.pl:49
38644 msgid ""
38645 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
38646 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
38647 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
38648 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
38649 "you want to attach these filesystems to existing virtual machines (eg. to "
38650 "import large amounts of read-only data to a VM)."
38651 msgstr ""
38652
38653 #. type: textblock
38654 #: ../tools/virt-make-fs.pl:57
38655 msgid "Basic usage is:"
38656 msgstr ""
38657
38658 #. type: verbatim
38659 #: ../tools/virt-make-fs.pl:59
38660 #, no-wrap
38661 msgid ""
38662 " virt-make-fs input output\n"
38663 "\n"
38664 msgstr ""
38665
38666 #. type: textblock
38667 #: ../tools/virt-make-fs.pl:61
38668 msgid ""
38669 "where C<input> is either a directory containing files that you want to add, "
38670 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
38671 "C<output> is a disk image.  The input type is detected automatically.  The "
38672 "output disk image defaults to a raw ext2 image unless you specify extra "
38673 "flags (see L</OPTIONS> below)."
38674 msgstr ""
38675
38676 #. type: =head2
38677 #: ../tools/virt-make-fs.pl:67
38678 msgid "EXTRA SPACE"
38679 msgstr ""
38680
38681 #. type: textblock
38682 #: ../tools/virt-make-fs.pl:69
38683 msgid ""
38684 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
38685 "the files that it contains, but might have extra space.  Depending on how "
38686 "you are going to use the output, you might think this extra space is wasted "
38687 "and want to minimize it, or you might want to leave space so that more files "
38688 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
38689 "but you can use the I<--size> flag to leave space in the filesystem if you "
38690 "want it."
38691 msgstr ""
38692
38693 #. type: textblock
38694 #: ../tools/virt-make-fs.pl:77
38695 msgid ""
38696 "An alternative way to leave extra space but not make the output image any "
38697 "bigger is to use an alternative disk image format (instead of the default "
38698 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
38699 "image format (check your hypervisor supports this before using it).  This "
38700 "allows you to choose a large I<--size> but the extra space won't actually be "
38701 "allocated in the image until you try to store something in it."
38702 msgstr ""
38703
38704 #. type: textblock
38705 #: ../tools/virt-make-fs.pl:85
38706 msgid ""
38707 "Don't forget that you can also use local commands including L<resize2fs(8)> "
38708 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
38709 "to build another image from scratch."
38710 msgstr ""
38711
38712 #. type: =head3
38713 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
38714 #: ../tools/virt-make-fs.pl:142
38715 msgid "EXAMPLE"
38716 msgstr "ПРИКЛАД"
38717
38718 #. type: verbatim
38719 #: ../tools/virt-make-fs.pl:91
38720 #, no-wrap
38721 msgid ""
38722 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38723 "\n"
38724 msgstr ""
38725 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38726 "\n"
38727
38728 #. type: =head2
38729 #: ../tools/virt-make-fs.pl:93
38730 msgid "FILESYSTEM TYPE"
38731 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
38732
38733 #. type: textblock
38734 #: ../tools/virt-make-fs.pl:95
38735 msgid ""
38736 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
38737 "libguestfs supports can be used (but I<not> read-only formats like "
38738 "ISO9660).  Here are some of the more common choices:"
38739 msgstr ""
38740
38741 #. type: =item
38742 #: ../tools/virt-make-fs.pl:101
38743 msgid "I<ext3>"
38744 msgstr "I<ext3>"
38745
38746 #. type: textblock
38747 #: ../tools/virt-make-fs.pl:103
38748 msgid ""
38749 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
38750 "you are not going to use the filesystem in a way that requires the journal, "
38751 "then this is just wasted overhead."
38752 msgstr ""
38753
38754 #. type: =item
38755 #: ../tools/virt-make-fs.pl:107
38756 msgid "I<ntfs> or I<vfat>"
38757 msgstr "I<ntfs> або I<vfat>"
38758
38759 #. type: textblock
38760 #: ../tools/virt-make-fs.pl:109
38761 msgid "Useful if exporting data to a Windows guest."
38762 msgstr ""
38763
38764 #. type: textblock
38765 #: ../tools/virt-make-fs.pl:111
38766 msgid ""
38767 "I<Note for vfat>: The tar archive or local directory must only contain files "
38768 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
38769 "program running within libguestfs is unable to change the ownership of non-"
38770 "root files, since vfat itself does not support this."
38771 msgstr ""
38772
38773 #. type: =item
38774 #: ../tools/virt-make-fs.pl:116
38775 msgid "I<minix>"
38776 msgstr "I<minix>"
38777
38778 #. type: textblock
38779 #: ../tools/virt-make-fs.pl:118
38780 msgid ""
38781 "Lower overhead than C<ext2>, but certain limitations on filename length and "
38782 "total filesystem size."
38783 msgstr ""
38784
38785 #. type: verbatim
38786 #: ../tools/virt-make-fs.pl:125
38787 #, no-wrap
38788 msgid ""
38789 " virt-make-fs --type=minix input minixfs.img\n"
38790 "\n"
38791 msgstr ""
38792
38793 #. type: =head2
38794 #: ../tools/virt-make-fs.pl:127
38795 msgid "TO PARTITION OR NOT TO PARTITION"
38796 msgstr ""
38797
38798 #. type: textblock
38799 #: ../tools/virt-make-fs.pl:129
38800 msgid "Optionally virt-make-fs can add a partition table to the output disk."
38801 msgstr ""
38802
38803 #. type: textblock
38804 #: ../tools/virt-make-fs.pl:131
38805 msgid ""
38806 "Adding a partition can make the disk image more compatible with certain "
38807 "virtualized operating systems which don't expect to see a filesystem "
38808 "directly located on a block device (Linux doesn't care and will happily "
38809 "handle both types)."
38810 msgstr ""
38811
38812 #. type: textblock
38813 #: ../tools/virt-make-fs.pl:136
38814 msgid ""
38815 "On the other hand, if you have a partition table then the output image is no "
38816 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
38817 "directly on a partitioned disk image.  (However libguestfs tools such as "
38818 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
38819 msgstr ""
38820
38821 #. type: textblock
38822 #: ../tools/virt-make-fs.pl:144
38823 msgid "Add an MBR partition:"
38824 msgstr ""
38825
38826 #. type: verbatim
38827 #: ../tools/virt-make-fs.pl:146
38828 #, no-wrap
38829 msgid ""
38830 " virt-make-fs --partition -- input disk.img\n"
38831 "\n"
38832 msgstr ""
38833
38834 #. type: textblock
38835 #: ../tools/virt-make-fs.pl:148
38836 msgid ""
38837 "If the output disk image could be terabyte-sized or larger, it's better to "
38838 "use an EFI/GPT-compatible partition table:"
38839 msgstr ""
38840
38841 #. type: verbatim
38842 #: ../tools/virt-make-fs.pl:151
38843 #, no-wrap
38844 msgid ""
38845 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
38846 "\n"
38847 msgstr ""
38848
38849 #. type: textblock
38850 #: ../tools/virt-make-fs.pl:179
38851 msgid "Enable debugging information."
38852 msgstr "Увімкнути виведення діагностичних даних."
38853
38854 #. type: =item
38855 #: ../tools/virt-make-fs.pl:185
38856 msgid "B<--size=E<lt>NE<gt>>"
38857 msgstr "B<--size=E<lt>NE<gt>>"
38858
38859 #. type: =item
38860 #: ../tools/virt-make-fs.pl:187
38861 msgid "B<--size=+E<lt>NE<gt>>"
38862 msgstr "B<--size=+E<lt>NE<gt>>"
38863
38864 #. type: =item
38865 #: ../tools/virt-make-fs.pl:189
38866 msgid "B<-s E<lt>NE<gt>>"
38867 msgstr "B<-s E<lt>NE<gt>>"
38868
38869 #. type: =item
38870 #: ../tools/virt-make-fs.pl:191
38871 msgid "B<-s +E<lt>NE<gt>>"
38872 msgstr "B<-s +E<lt>NE<gt>>"
38873
38874 #. type: textblock
38875 #: ../tools/virt-make-fs.pl:193
38876 msgid ""
38877 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
38878 msgstr ""
38879
38880 #. type: textblock
38881 #: ../tools/virt-make-fs.pl:196
38882 msgid ""
38883 "If this option is I<not> given, then the output image will be just large "
38884 "enough to contain all the files, with not much wasted space."
38885 msgstr ""
38886
38887 #. type: textblock
38888 #: ../tools/virt-make-fs.pl:199
38889 msgid ""
38890 "To choose a fixed size output disk, specify an absolute number followed by b/"
38891 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38892 "Petabytes or Exabytes.  This must be large enough to contain all the input "
38893 "files, else you will get an error."
38894 msgstr ""
38895
38896 #. type: textblock
38897 #: ../tools/virt-make-fs.pl:204
38898 msgid ""
38899 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
38900 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38901 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
38902 "the input files, and (approximately) an extra 200 MB free space."
38903 msgstr ""
38904
38905 #. type: textblock
38906 #: ../tools/virt-make-fs.pl:210
38907 msgid ""
38908 "Note that virt-make-fs estimates free space, and therefore will not produce "
38909 "filesystems containing precisely the free space requested.  (It is much more "
38910 "expensive and time-consuming to produce a filesystem which has precisely the "
38911 "desired free space)."
38912 msgstr ""
38913
38914 #. type: =item
38915 #: ../tools/virt-make-fs.pl:219
38916 msgid "B<--format=E<lt>fmtE<gt>>"
38917 msgstr ""
38918
38919 #. type: =item
38920 #: ../tools/virt-make-fs.pl:221
38921 msgid "B<-F E<lt>fmtE<gt>>"
38922 msgstr ""
38923
38924 #. type: textblock
38925 #: ../tools/virt-make-fs.pl:223
38926 msgid "Choose the output disk image format."
38927 msgstr ""
38928
38929 #. type: textblock
38930 #: ../tools/virt-make-fs.pl:225
38931 msgid "The default is C<raw> (raw disk image)."
38932 msgstr ""
38933
38934 #. type: textblock
38935 #: ../tools/virt-make-fs.pl:227
38936 msgid ""
38937 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
38938 "that would really make sense here is C<qcow2>."
38939 msgstr ""
38940
38941 #. type: =item
38942 #: ../tools/virt-make-fs.pl:234
38943 msgid "B<--type=E<lt>fsE<gt>>"
38944 msgstr ""
38945
38946 #. type: =item
38947 #: ../tools/virt-make-fs.pl:236
38948 msgid "B<-t E<lt>fsE<gt>>"
38949 msgstr ""
38950
38951 #. type: textblock
38952 #: ../tools/virt-make-fs.pl:238
38953 msgid "Choose the output filesystem type."
38954 msgstr ""
38955
38956 #. type: textblock
38957 #: ../tools/virt-make-fs.pl:240
38958 msgid "The default is C<ext2>."
38959 msgstr "Типовим значенням є C<ext2>."
38960
38961 #. type: textblock
38962 #: ../tools/virt-make-fs.pl:242
38963 msgid ""
38964 "Any filesystem which is supported read-write by libguestfs can be used here."
38965 msgstr ""
38966
38967 #. type: =item
38968 #: ../tools/virt-make-fs.pl:249
38969 msgid "B<--partition>"
38970 msgstr "B<--partition>"
38971
38972 #. type: =item
38973 #: ../tools/virt-make-fs.pl:251
38974 msgid "B<--partition=E<lt>parttypeE<gt>>"
38975 msgstr ""
38976
38977 #. type: textblock
38978 #: ../tools/virt-make-fs.pl:253
38979 msgid ""
38980 "If specified, this flag adds an MBR partition table to the output disk image."
38981 msgstr ""
38982
38983 #. type: textblock
38984 #: ../tools/virt-make-fs.pl:256
38985 msgid ""
38986 "You can change the partition table type, eg. I<--partition=gpt> for large "
38987 "disks."
38988 msgstr ""
38989
38990 #. type: textblock
38991 #: ../tools/virt-make-fs.pl:259
38992 msgid ""
38993 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
38994 "might consider the next parameter to be the partition type.  For example:"
38995 msgstr ""
38996
38997 #. type: verbatim
38998 #: ../tools/virt-make-fs.pl:263
38999 #, no-wrap
39000 msgid ""
39001 " virt-make-fs --partition input.tar ...\n"
39002 "\n"
39003 msgstr ""
39004
39005 #. type: textblock
39006 #: ../tools/virt-make-fs.pl:265
39007 msgid ""
39008 "would cause virt-make-fs to think you wanted to use a partition type of "
39009 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
39010 "dash) between options and the input file argument:"
39011 msgstr ""
39012
39013 #. type: verbatim
39014 #: ../tools/virt-make-fs.pl:269
39015 #, no-wrap
39016 msgid ""
39017 " virt-make-fs --partition -- input.tar ...\n"
39018 "\n"
39019 msgstr ""
39020 " virt-make-fs --partition -- input.tar ...\n"
39021 "\n"
39022
39023 #. type: textblock
39024 #: ../tools/virt-make-fs.pl:541
39025 msgid ""
39026 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39027 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39028 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39029 msgstr ""
39030 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39031 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39032 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39033
39034 #. type: textblock
39035 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
39036 msgid ""
39037 "When reporting bugs, please enable debugging and capture the I<complete> "
39038 "output:"
39039 msgstr ""
39040
39041 #. type: verbatim
39042 #: ../tools/virt-make-fs.pl:558
39043 #, no-wrap
39044 msgid ""
39045 " export LIBGUESTFS_DEBUG=1\n"
39046 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39047 "\n"
39048 msgstr ""
39049 " export LIBGUESTFS_DEBUG=1\n"
39050 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39051 "\n"
39052
39053 #. type: textblock
39054 #: ../tools/virt-make-fs.pl:561
39055 msgid ""
39056 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
39057 "redhat.com/>"
39058 msgstr ""
39059
39060 #. type: textblock
39061 #: ../tools/virt-tar.pl:33
39062 msgid "virt-tar - Extract or upload files to a virtual machine"
39063 msgstr ""
39064
39065 #. type: verbatim
39066 #: ../tools/virt-tar.pl:37
39067 #, no-wrap
39068 msgid ""
39069 " virt-tar [--options] -x domname directory tarball\n"
39070 "\n"
39071 msgstr ""
39072
39073 #. type: verbatim
39074 #: ../tools/virt-tar.pl:39
39075 #, no-wrap
39076 msgid ""
39077 " virt-tar [--options] -u domname tarball directory\n"
39078 "\n"
39079 msgstr ""
39080
39081 #. type: verbatim
39082 #: ../tools/virt-tar.pl:41
39083 #, no-wrap
39084 msgid ""
39085 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39086 "\n"
39087 msgstr ""
39088
39089 #. type: verbatim
39090 #: ../tools/virt-tar.pl:43
39091 #, no-wrap
39092 msgid ""
39093 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39094 "\n"
39095 msgstr ""
39096
39097 #. type: =head2
39098 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39099 msgid "NOTE"
39100 msgstr "ПРИМІТКА"
39101
39102 #. type: textblock
39103 #: ../tools/virt-tar.pl:47
39104 msgid ""
39105 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
39106 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
39107 msgstr ""
39108
39109 #. type: textblock
39110 #: ../tools/virt-tar.pl:52
39111 msgid "Download C</home> from the VM into a local tarball:"
39112 msgstr ""
39113
39114 #. type: verbatim
39115 #: ../tools/virt-tar.pl:54
39116 #, no-wrap
39117 msgid ""
39118 " virt-tar -x domname /home home.tar\n"
39119 "\n"
39120 msgstr ""
39121
39122 #. type: verbatim
39123 #: ../tools/virt-tar.pl:56
39124 #, no-wrap
39125 msgid ""
39126 " virt-tar -zx domname /home home.tar.gz\n"
39127 "\n"
39128 msgstr ""
39129
39130 #. type: textblock
39131 #: ../tools/virt-tar.pl:58
39132 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39133 msgstr ""
39134
39135 #. type: verbatim
39136 #: ../tools/virt-tar.pl:60
39137 #, no-wrap
39138 msgid ""
39139 " virt-tar -u domname uploadstuff.tar /tmp\n"
39140 "\n"
39141 msgstr ""
39142
39143 #. type: verbatim
39144 #: ../tools/virt-tar.pl:62
39145 #, no-wrap
39146 msgid ""
39147 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39148 "\n"
39149 msgstr ""
39150
39151 #. type: textblock
39152 #: ../tools/virt-tar.pl:66
39153 msgid ""
39154 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39155 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
39156 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39157 msgstr ""
39158
39159 #. type: textblock
39160 #: ../tools/virt-tar.pl:71
39161 msgid ""
39162 "You can use I<-x> (extract) on live virtual machines, but you might get "
39163 "inconsistent results or errors if there is filesystem activity inside the "
39164 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
39165 "work, but the only way to guarantee consistent results is if the virtual "
39166 "machine is shut down."
39167 msgstr ""
39168
39169 #. type: textblock
39170 #: ../tools/virt-tar.pl:79
39171 msgid ""
39172 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39173 "parts of a guest filesystem.  There are many possibilities: making backups, "
39174 "uploading data files, snooping on guest activity, fixing or customizing "
39175 "guests, etc."
39176 msgstr ""
39177
39178 #. type: textblock
39179 #: ../tools/virt-tar.pl:84
39180 msgid ""
39181 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
39182 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
39183 "should look at the L<guestfish(1)> tool."
39184 msgstr ""
39185
39186 #. type: textblock
39187 #: ../tools/virt-tar.pl:88
39188 msgid ""
39189 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39190 "its contents (recursively) from the virtual machine into a local tarball.  "
39191 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39192 "virtual machine.  You cannot use these two options together."
39193 msgstr ""
39194
39195 #. type: textblock
39196 #: ../tools/virt-tar.pl:94
39197 msgid ""
39198 "In addition, you may need to use the I<-z> (gZip) option to enable "
39199 "compression.  When uploading, you have to specify I<-z> if the upload file "
39200 "is compressed because virt-tar won't detect this on its own."
39201 msgstr ""
39202
39203 #. type: textblock
39204 #: ../tools/virt-tar.pl:98
39205 msgid ""
39206 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
39207 "example it cannot do PKZip files or bzip2 compression.  If you want that "
39208 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
39209 "the L<libguestfs(3)> API)."
39210 msgstr ""
39211
39212 #. type: =item
39213 #: ../tools/virt-tar.pl:160
39214 #, fuzzy
39215 #| msgid "B<--format>"
39216 msgid "B<--extract>"
39217 msgstr "B<--format>"
39218
39219 #. type: =item
39220 #: ../tools/virt-tar.pl:162
39221 #, fuzzy
39222 #| msgid "download"
39223 msgid "B<--download>"
39224 msgstr "download"
39225
39226 #. type: =item
39227 #: ../tools/virt-tar.pl:164
39228 msgid "B<-u>"
39229 msgstr ""
39230
39231 #. type: =item
39232 #: ../tools/virt-tar.pl:166
39233 #, fuzzy
39234 #| msgid "B<-u> | B<--upload>"
39235 msgid "B<--upload>"
39236 msgstr "B<-u> | B<--upload>"
39237
39238 #. type: textblock
39239 #: ../tools/virt-tar.pl:168
39240 msgid ""
39241 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39242 "local tarball."
39243 msgstr ""
39244
39245 #. type: textblock
39246 #: ../tools/virt-tar.pl:171
39247 msgid ""
39248 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
39249 "Please read the L</WARNING> section above before using this option."
39250 msgstr ""
39251
39252 #. type: textblock
39253 #: ../tools/virt-tar.pl:175
39254 msgid "You must specify exactly one of these options."
39255 msgstr ""
39256
39257 #. type: =item
39258 #: ../tools/virt-tar.pl:181
39259 msgid "B<-z>"
39260 msgstr ""
39261
39262 #. type: =item
39263 #: ../tools/virt-tar.pl:183
39264 #, fuzzy
39265 #| msgid "B<-z> | B<--gzip>"
39266 msgid "B<--gzip>"
39267 msgstr "B<-z> | B<--gzip>"
39268
39269 #. type: textblock
39270 #: ../tools/virt-tar.pl:185
39271 msgid "Specify that the input or output tarball is gzip-compressed."
39272 msgstr ""
39273
39274 #. type: textblock
39275 #: ../tools/virt-tar.pl:298
39276 msgid ""
39277 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39278 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39279 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39280 "org/>."
39281 msgstr ""
39282 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39283 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39284 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39285 "org/>."
39286
39287 #. type: textblock
39288 #: ../tools/virt-win-reg.pl:37
39289 msgid ""
39290 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
39291 msgstr ""
39292
39293 #. type: verbatim
39294 #: ../tools/virt-win-reg.pl:41
39295 #, no-wrap
39296 msgid ""
39297 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39298 "\n"
39299 msgstr ""
39300
39301 #. type: verbatim
39302 #: ../tools/virt-win-reg.pl:43
39303 #, no-wrap
39304 msgid ""
39305 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39306 "\n"
39307 msgstr ""
39308
39309 #. type: verbatim
39310 #: ../tools/virt-win-reg.pl:45
39311 #, no-wrap
39312 msgid ""
39313 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39314 "\n"
39315 msgstr ""
39316
39317 #. type: verbatim
39318 #: ../tools/virt-win-reg.pl:47
39319 #, no-wrap
39320 msgid ""
39321 " virt-win-reg --merge domname [input.reg ...]\n"
39322 "\n"
39323 msgstr ""
39324
39325 #. type: verbatim
39326 #: ../tools/virt-win-reg.pl:49
39327 #, no-wrap
39328 msgid ""
39329 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39330 "\n"
39331 msgstr ""
39332
39333 #. type: textblock
39334 #: ../tools/virt-win-reg.pl:53
39335 msgid ""
39336 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39337 "virtual machines.  If you do this, you I<will> get irreversible disk "
39338 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
39339 "but doesn't catch all cases."
39340 msgstr ""
39341
39342 #. type: textblock
39343 #: ../tools/virt-win-reg.pl:58
39344 msgid ""
39345 "Modifying the Windows Registry is an inherently risky operation.  The format "
39346 "is deliberately obscure and undocumented, and Registry changes can leave the "
39347 "system unbootable.  Therefore when using the I<--merge> option, make sure "
39348 "you have a reliable backup first."
39349 msgstr ""
39350
39351 #. type: textblock
39352 #: ../tools/virt-win-reg.pl:65
39353 msgid ""
39354 "This program can export and merge Windows Registry entries from a Windows "
39355 "guest."
39356 msgstr ""
39357
39358 #. type: textblock
39359 #: ../tools/virt-win-reg.pl:68
39360 msgid ""
39361 "The first parameter is the libvirt guest name or the raw disk image of a "
39362 "Windows guest."
39363 msgstr ""
39364
39365 #. type: textblock
39366 #: ../tools/virt-win-reg.pl:71
39367 msgid ""
39368 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
39369 "exported (recursively).  For example:"
39370 msgstr ""
39371
39372 #. type: verbatim
39373 #: ../tools/virt-win-reg.pl:74
39374 #, no-wrap
39375 msgid ""
39376 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39377 "\n"
39378 msgstr ""
39379
39380 #. type: textblock
39381 #: ../tools/virt-win-reg.pl:76
39382 msgid ""
39383 "You can also display single values from within registry keys, for example:"
39384 msgstr ""
39385
39386 #. type: verbatim
39387 #: ../tools/virt-win-reg.pl:79
39388 #, no-wrap
39389 msgid ""
39390 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39391 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39392 " Windows 7 Enterprise\n"
39393 "\n"
39394 msgstr ""
39395
39396 #. type: textblock
39397 #: ../tools/virt-win-reg.pl:83
39398 msgid ""
39399 "With I<--merge>, you can merge a textual regedit file into the Windows "
39400 "Registry:"
39401 msgstr ""
39402
39403 #. type: verbatim
39404 #: ../tools/virt-win-reg.pl:86
39405 #, no-wrap
39406 msgid ""
39407 " $ virt-win-reg --merge Windows7 changes.reg\n"
39408 "\n"
39409 msgstr ""
39410
39411 #. type: textblock
39412 #: ../tools/virt-win-reg.pl:90
39413 msgid ""
39414 "This program is only meant for simple access to the registry.  If you want "
39415 "to do complicated things with the registry, we suggest you download the "
39416 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39417 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39418 "L<hivexregedit(1)>."
39419 msgstr ""
39420
39421 #. type: =item
39422 #: ../tools/virt-win-reg.pl:159
39423 msgid "B<--merge>"
39424 msgstr "B<--merge>"
39425
39426 #. type: textblock
39427 #: ../tools/virt-win-reg.pl:161
39428 msgid ""
39429 "In merge mode, this merges a textual regedit file into the Windows Registry "
39430 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
39431 "displays or exports Registry entries instead."
39432 msgstr ""
39433
39434 #. type: textblock
39435 #: ../tools/virt-win-reg.pl:165
39436 msgid ""
39437 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39438 "result in disk corruption.  However exporting (without this flag)  is always "
39439 "safe."
39440 msgstr ""
39441
39442 #. type: =item
39443 #: ../tools/virt-win-reg.pl:173
39444 msgid "B<--encoding> UTF-16LE|ASCII"
39445 msgstr ""
39446
39447 #. type: textblock
39448 #: ../tools/virt-win-reg.pl:175
39449 msgid ""
39450 "When merging (only), you may need to specify the encoding for strings to be "
39451 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
39452 "(3)/ENCODING STRINGS>."
39453 msgstr ""
39454
39455 #. type: textblock
39456 #: ../tools/virt-win-reg.pl:179
39457 msgid ""
39458 "The default is to use UTF-16LE, which should work with recent versions of "
39459 "Windows."
39460 msgstr ""
39461
39462 #. type: =item
39463 #: ../tools/virt-win-reg.pl:186
39464 msgid "B<--unsafe-printable-strings>"
39465 msgstr ""
39466
39467 #. type: textblock
39468 #: ../tools/virt-win-reg.pl:188
39469 msgid ""
39470 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39471 "instead of hex sequences.  Remove the final zero codepoint from strings if "
39472 "present."
39473 msgstr ""
39474
39475 #. type: textblock
39476 #: ../tools/virt-win-reg.pl:192
39477 msgid ""
39478 "This is unsafe and does not preserve the fidelity of strings in the original "
39479 "Registry for various reasons:"
39480 msgstr ""
39481
39482 #. type: textblock
39483 #: ../tools/virt-win-reg.pl:199
39484 msgid ""
39485 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
39486 "other encodings will be corrupted by this transformation."
39487 msgstr ""
39488
39489 #. type: textblock
39490 #: ../tools/virt-win-reg.pl:204
39491 msgid ""
39492 "Assumes that everything which has type 1 or 2 is really a string and that "
39493 "everything else is not a string, but the type field in real Registries is "
39494 "not reliable."
39495 msgstr ""
39496
39497 #. type: textblock
39498 #: ../tools/virt-win-reg.pl:210
39499 msgid ""
39500 "Loses information about whether a zero codepoint followed the string in the "
39501 "Registry or not."
39502 msgstr ""
39503
39504 #. type: textblock
39505 #: ../tools/virt-win-reg.pl:215
39506 msgid ""
39507 "This all happens because the Registry itself contains no information about "
39508 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39509 msgstr ""
39510
39511 #. type: textblock
39512 #: ../tools/virt-win-reg.pl:219
39513 msgid ""
39514 "You should only use this option for quick hacking and debugging of the "
39515 "Registry contents, and I<never> use it if the output is going to be passed "
39516 "into another program or stored in another Registry."
39517 msgstr ""
39518
39519 #. type: =head1
39520 #: ../tools/virt-win-reg.pl:556
39521 msgid "SUPPORTED SYSTEMS"
39522 msgstr ""
39523
39524 #. type: textblock
39525 #: ../tools/virt-win-reg.pl:558
39526 msgid ""
39527 "The program currently supports Windows NT-derived guests starting with "
39528 "Windows XP through to at least Windows 7."
39529 msgstr ""
39530
39531 #. type: textblock
39532 #: ../tools/virt-win-reg.pl:561
39533 msgid "The following Registry keys are supported:"
39534 msgstr ""
39535
39536 #. type: =item
39537 #: ../tools/virt-win-reg.pl:565
39538 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39539 msgstr ""
39540
39541 #. type: =item
39542 #: ../tools/virt-win-reg.pl:567
39543 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39544 msgstr ""
39545
39546 #. type: =item
39547 #: ../tools/virt-win-reg.pl:569
39548 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39549 msgstr ""
39550
39551 #. type: =item
39552 #: ../tools/virt-win-reg.pl:571
39553 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39554 msgstr ""
39555
39556 #. type: =item
39557 #: ../tools/virt-win-reg.pl:573
39558 msgid "C<HKEY_USERS\\.DEFAULT>"
39559 msgstr ""
39560
39561 #. type: =item
39562 #: ../tools/virt-win-reg.pl:575
39563 msgid "C<HKEY_USERS\\I<SID>>"
39564 msgstr ""
39565
39566 #. type: textblock
39567 #: ../tools/virt-win-reg.pl:577
39568 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39569 msgstr ""
39570
39571 #. type: =item
39572 #: ../tools/virt-win-reg.pl:579
39573 msgid "C<HKEY_USERS\\I<username>>"
39574 msgstr ""
39575
39576 #. type: textblock
39577 #: ../tools/virt-win-reg.pl:581
39578 msgid ""
39579 "where I<username> is a local user name (this is a libguestfs extension)."
39580 msgstr ""
39581
39582 #. type: textblock
39583 #: ../tools/virt-win-reg.pl:585
39584 msgid ""
39585 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
39586 "C<HKEY_USERS>."
39587 msgstr ""
39588
39589 #. type: textblock
39590 #: ../tools/virt-win-reg.pl:588
39591 msgid ""
39592 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
39593 "supported (there is no \"current user\")."
39594 msgstr ""
39595
39596 #. type: =head1
39597 #: ../tools/virt-win-reg.pl:591
39598 msgid "ENCODING"
39599 msgstr "КОДУВАННЯ"
39600
39601 #. type: textblock
39602 #: ../tools/virt-win-reg.pl:593
39603 msgid ""
39604 "C<virt-win-reg> expects that regedit files have already been reencoded in "
39605 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
39606 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
39607 "Windows-style line endings, you may need to reencode the whole file before "
39608 "or after processing."
39609 msgstr ""
39610
39611 #. type: textblock
39612 #: ../tools/virt-win-reg.pl:599
39613 msgid ""
39614 "To reencode a file from Windows format to Linux (before processing it with "
39615 "the I<--merge> option), you would do something like this:"
39616 msgstr ""
39617
39618 #. type: verbatim
39619 #: ../tools/virt-win-reg.pl:602
39620 #, no-wrap
39621 msgid ""
39622 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
39623 "\n"
39624 msgstr ""
39625
39626 #. type: textblock
39627 #: ../tools/virt-win-reg.pl:604
39628 msgid ""
39629 "To go in the opposite direction, after exporting and before sending the file "
39630 "to a Windows user, do something like this:"
39631 msgstr ""
39632
39633 #. type: verbatim
39634 #: ../tools/virt-win-reg.pl:607
39635 #, no-wrap
39636 msgid ""
39637 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
39638 "\n"
39639 msgstr ""
39640
39641 #. type: textblock
39642 #: ../tools/virt-win-reg.pl:609
39643 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
39644 msgstr ""
39645
39646 #. type: textblock
39647 #: ../tools/virt-win-reg.pl:611
39648 msgid ""
39649 "If you are unsure about the current encoding, use the L<file(1)> command.  "
39650 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
39651 "style (CRLF) line endings, like this:"
39652 msgstr ""
39653
39654 #. type: verbatim
39655 #: ../tools/virt-win-reg.pl:615
39656 #, no-wrap
39657 msgid ""
39658 " $ file software.reg\n"
39659 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
39660 " with CRLF line terminators\n"
39661 "\n"
39662 msgstr ""
39663
39664 #. type: textblock
39665 #: ../tools/virt-win-reg.pl:619
39666 msgid "This file would need conversion before you could I<--merge> it."
39667 msgstr ""
39668
39669 #. type: =head1
39670 #: ../tools/virt-win-reg.pl:621
39671 msgid "CurrentControlSet etc."
39672 msgstr ""
39673
39674 #. type: textblock
39675 #: ../tools/virt-win-reg.pl:623
39676 msgid ""
39677 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
39678 "Registry at the level of the hive file, and therefore you cannot modify "
39679 "these."
39680 msgstr ""
39681
39682 #. type: textblock
39683 #: ../tools/virt-win-reg.pl:627
39684 msgid ""
39685 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
39686 "circumstances it might refer to another control set.  The way to find out is "
39687 "to look at the C<HKLM\\SYSTEM\\Select> key:"
39688 msgstr ""
39689
39690 #. type: verbatim
39691 #: ../tools/virt-win-reg.pl:631
39692 #, no-wrap
39693 msgid ""
39694 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
39695 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
39696 " \"Current\"=dword:00000001\n"
39697 " \"Default\"=dword:00000001\n"
39698 " \"Failed\"=dword:00000000\n"
39699 " \"LastKnownGood\"=dword:00000002\n"
39700 "\n"
39701 msgstr ""
39702
39703 #. type: textblock
39704 #: ../tools/virt-win-reg.pl:638
39705 msgid "\"Current\" is the one which Windows will choose when it boots."
39706 msgstr ""
39707
39708 #. type: textblock
39709 #: ../tools/virt-win-reg.pl:640
39710 msgid ""
39711 "Similarly, other C<Current...> keys in the path may need to be replaced."
39712 msgstr ""
39713
39714 #. type: =head1
39715 #: ../tools/virt-win-reg.pl:643
39716 msgid "WINDOWS TIPS"
39717 msgstr ""
39718
39719 #. type: textblock
39720 #: ../tools/virt-win-reg.pl:645
39721 msgid ""
39722 "Note that some of these tips modify the guest disk image.  The guest I<must> "
39723 "be shut off, else you will get disk corruption."
39724 msgstr ""
39725
39726 #. type: =head2
39727 #: ../tools/virt-win-reg.pl:648
39728 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
39729 msgstr ""
39730
39731 #. type: textblock
39732 #: ../tools/virt-win-reg.pl:650
39733 msgid ""
39734 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
39735 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
39736 "is uploaded into C<C:\\>:"
39737 msgstr ""
39738
39739 #. type: verbatim
39740 #: ../tools/virt-win-reg.pl:654
39741 #, no-wrap
39742 msgid ""
39743 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
39744 "\n"
39745 msgstr ""
39746
39747 #. type: textblock
39748 #: ../tools/virt-win-reg.pl:656
39749 msgid "Prepare a regedit file containing the registry change:"
39750 msgstr ""
39751
39752 #. type: verbatim
39753 #: ../tools/virt-win-reg.pl:658
39754 #, no-wrap
39755 msgid ""
39756 " cat > test.reg <<'EOF'\n"
39757 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
39758 " \"Test\"=\"c:\\\\test.bat\"\n"
39759 " EOF\n"
39760 "\n"
39761 msgstr ""
39762
39763 #. type: textblock
39764 #: ../tools/virt-win-reg.pl:663
39765 msgid ""
39766 "In this example we use the key C<RunOnce> which means that the script will "
39767 "run precisely once when the first user logs in.  If you want it to run every "
39768 "time a user logs in, replace C<RunOnce> with C<Run>."
39769 msgstr ""
39770
39771 #. type: textblock
39772 #: ../tools/virt-win-reg.pl:667
39773 msgid "Now update the registry:"
39774 msgstr ""
39775
39776 #. type: verbatim
39777 #: ../tools/virt-win-reg.pl:669
39778 #, no-wrap
39779 msgid ""
39780 " virt-win-reg --merge WindowsGuest test.reg\n"
39781 "\n"
39782 msgstr ""
39783
39784 #. type: =head2
39785 #: ../tools/virt-win-reg.pl:671
39786 msgid "INSTALLING A SERVICE"
39787 msgstr ""
39788
39789 #. type: textblock
39790 #: ../tools/virt-win-reg.pl:673
39791 msgid ""
39792 "This section assumes you are familiar with Windows services, and you either "
39793 "have a program which handles the Windows Service Control Protocol directly "
39794 "or you want to run any program using a service wrapper like SrvAny or the "
39795 "free RHSrvAny."
39796 msgstr ""
39797
39798 #. type: textblock
39799 #: ../tools/virt-win-reg.pl:678
39800 msgid ""
39801 "First upload the program and optionally the service wrapper.  In this case "
39802 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
39803 msgstr ""
39804
39805 #. type: verbatim
39806 #: ../tools/virt-win-reg.pl:682
39807 #, no-wrap
39808 msgid ""
39809 " guestfish -i -d WindowsGuest <<EOF\n"
39810 "   upload rhsrvany.exe /rhsrvany.exe\n"
39811 "   upload test.exe /test.exe\n"
39812 " EOF\n"
39813 "\n"
39814 msgstr ""
39815
39816 #. type: textblock
39817 #: ../tools/virt-win-reg.pl:687
39818 msgid ""
39819 "Prepare a regedit file containing the registry changes.  In this example, "
39820 "the first registry change is needed for the service itself or the service "
39821 "wrapper (if used).  The second registry change is only needed because I am "
39822 "using the RHSrvAny service wrapper."
39823 msgstr ""
39824
39825 #. type: verbatim
39826 #: ../tools/virt-win-reg.pl:692
39827 #, no-wrap
39828 msgid ""
39829 " cat > service.reg <<'EOF'\n"
39830 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
39831 " \"Type\"=dword:00000010\n"
39832 " \"Start\"=dword:00000002\n"
39833 " \"ErrorControl\"=dword:00000001\n"
39834 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
39835 " \"DisplayName\"=\"RHSrvAny\"\n"
39836 " \"ObjectName\"=\"NetworkService\"\n"
39837 " \n"
39838 msgstr ""
39839
39840 #. type: verbatim
39841 #: ../tools/virt-win-reg.pl:701
39842 #, no-wrap
39843 msgid ""
39844 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
39845 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
39846 " \"PWD\"=\"c:\\\\Temp\"\n"
39847 " EOF\n"
39848 "\n"
39849 msgstr ""
39850
39851 #. type: textblock
39852 #: ../tools/virt-win-reg.pl:712
39853 msgid ""
39854 "For use of C<ControlSet001> see the section above in this manual page.  You "
39855 "may need to adjust this according to the control set that is in use by the "
39856 "guest."
39857 msgstr ""
39858
39859 #. type: textblock
39860 #: ../tools/virt-win-reg.pl:718
39861 msgid ""
39862 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
39863 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
39864 "privileged account."
39865 msgstr ""
39866
39867 #. type: textblock
39868 #: ../tools/virt-win-reg.pl:724
39869 msgid ""
39870 "For the meaning of the magic numbers, see this Microsoft KB article: "
39871 "L<http://support.microsoft.com/kb/103000>."
39872 msgstr ""
39873
39874 #. type: textblock
39875 #: ../tools/virt-win-reg.pl:729
39876 msgid "Update the registry:"
39877 msgstr ""
39878
39879 #. type: verbatim
39880 #: ../tools/virt-win-reg.pl:731
39881 #, no-wrap
39882 msgid ""
39883 " virt-win-reg --merge WindowsGuest service.reg\n"
39884 "\n"
39885 msgstr ""
39886
39887 #. type: textblock
39888 #: ../tools/virt-win-reg.pl:735
39889 msgid ""
39890 "Be careful when passing parameters containing C<\\> (backslash) in the "
39891 "shell.  Usually you will have to use 'single quotes' or double backslashes "
39892 "(but not both) to protect them from the shell."
39893 msgstr ""
39894
39895 #. type: textblock
39896 #: ../tools/virt-win-reg.pl:739
39897 msgid "Paths and value names are case-insensitive."
39898 msgstr ""
39899
39900 #. type: textblock
39901 #: ../tools/virt-win-reg.pl:748
39902 msgid ""
39903 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
39904 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
39905 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39906 msgstr ""
39907
39908 #. type: verbatim
39909 #: ../tools/virt-win-reg.pl:766
39910 #, no-wrap
39911 msgid ""
39912 " export LIBGUESTFS_DEBUG=1\n"
39913 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
39914 "\n"
39915 msgstr ""
39916
39917 #. type: textblock
39918 #: ../tools/virt-win-reg.pl:769
39919 msgid ""
39920 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
39921 "redhat.com/>"
39922 msgstr ""
39923
39924 #~ msgid ""
39925 #~ " g = guestfs_create ();\n"
39926 #~ " \n"
39927 #~ msgstr ""
39928 #~ " g = guestfs_create ();\n"
39929 #~ " \n"
39930
39931 #~ msgid "B<-a> | B<--all>"
39932 #~ msgstr "B<-a> | B<--all>"
39933
39934 #~ msgid "B<-x> | B<--extract> | B<--download>"
39935 #~ msgstr "B<-x> | B<--extract> | B<--download>"