Version 1.15.3.
[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 # Translators:
6 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-11-09 22:24+0000\n"
12 "PO-Revision-Date: 2011-10-27 09:15+0000\n"
13 "Last-Translator: rjones <rjones@redhat.com>\n"
14 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
15 "Language: uk\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
20 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
21
22 #. type: =head1
23 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
24 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
25 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
26 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
27 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
28 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
29 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
30 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
31 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
32 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
33 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
34 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
35 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
36 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
38 #: ../tools/virt-win-reg.pl:35
39 msgid "NAME"
40 msgstr "НАЗВА"
41
42 #. type: textblock
43 #: ../align/virt-alignment-scan.pod:5
44 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
45 msgstr ""
46
47 #. type: =head1
48 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
49 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
50 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
51 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
52 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
53 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
54 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
55 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
56 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
57 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
58 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
59 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
60 #: ../test-tool/libguestfs-test-tool.pod:7
61 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
62 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
63 #: ../tools/virt-win-reg.pl:39
64 msgid "SYNOPSIS"
65 msgstr "КОРОТКИЙ ОПИС"
66
67 #. type: verbatim
68 #: ../align/virt-alignment-scan.pod:9
69 #, no-wrap
70 msgid ""
71 " virt-alignment-scan [--options] -d domname\n"
72 "\n"
73 msgstr ""
74
75 #. type: verbatim
76 #: ../align/virt-alignment-scan.pod:11
77 #, no-wrap
78 msgid ""
79 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
80 "\n"
81 msgstr ""
82
83 #. type: =head1
84 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
85 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
86 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
87 #: ../erlang/examples/guestfs-erlang.pod:16
88 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
89 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
90 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
91 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
92 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
93 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
94 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:31
95 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
96 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
97 #: ../test-tool/libguestfs-test-tool.pod:11
98 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
99 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
100 #: ../tools/virt-win-reg.pl:63
101 msgid "DESCRIPTION"
102 msgstr "ОПИС"
103
104 #. type: textblock
105 #: ../align/virt-alignment-scan.pod:15
106 msgid ""
107 "When older operating systems install themselves, the partitioning tools "
108 "place partitions at a sector misaligned with the underlying storage "
109 "(commonly the first partition starts on sector C<63>).  Misaligned "
110 "partitions can result in an operating system issuing more I/O than should be "
111 "necessary."
112 msgstr ""
113
114 #. type: textblock
115 #: ../align/virt-alignment-scan.pod:21
116 msgid ""
117 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
118 "machines and disk images and warns you if there are alignment problems."
119 msgstr ""
120
121 #. type: textblock
122 #: ../align/virt-alignment-scan.pod:25
123 msgid ""
124 "Currently there is no virt tool for fixing alignment problems.  You can only "
125 "reinstall the guest operating system.  The following NetApp document "
126 "summarises the problem and possible solutions: L<http://media.netapp.com/"
127 "documents/tr-3747.pdf>"
128 msgstr ""
129
130 #. type: =head1
131 #: ../align/virt-alignment-scan.pod:30
132 msgid "OUTPUT"
133 msgstr ""
134
135 #. type: textblock
136 #: ../align/virt-alignment-scan.pod:32
137 msgid "To run this tool on a disk image directly, use the I<-a> option:"
138 msgstr ""
139
140 #. type: verbatim
141 #: ../align/virt-alignment-scan.pod:34
142 #, no-wrap
143 msgid ""
144 " $ virt-alignment-scan -a winxp.img\n"
145 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
146 "\n"
147 msgstr ""
148
149 #. type: verbatim
150 #: ../align/virt-alignment-scan.pod:37
151 #, no-wrap
152 msgid ""
153 " $ virt-alignment-scan -a fedora16.img\n"
154 " /dev/sda1      1048576         1024K   ok\n"
155 " /dev/sda2      2097152         2048K   ok\n"
156 " /dev/sda3    526385152         2048K   ok\n"
157 "\n"
158 msgstr ""
159
160 #. type: textblock
161 #: ../align/virt-alignment-scan.pod:42
162 msgid ""
163 "To run the tool on a guest known to libvirt, use the I<-d> option and "
164 "possibly the I<-c> option:"
165 msgstr ""
166
167 #. type: verbatim
168 #: ../align/virt-alignment-scan.pod:45
169 #, no-wrap
170 msgid ""
171 " # virt-alignment-scan -d RHEL5\n"
172 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
173 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
174 "\n"
175 msgstr ""
176
177 #. type: verbatim
178 #: ../align/virt-alignment-scan.pod:49
179 #, no-wrap
180 msgid ""
181 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
182 " /dev/sda1      1048576         1024K   ok\n"
183 " /dev/sda2    105906176         1024K   ok\n"
184 " /dev/sdb1        65536           64K   ok\n"
185 "\n"
186 msgstr ""
187
188 #. type: textblock
189 #: ../align/virt-alignment-scan.pod:54
190 msgid ""
191 "The output consists of 4 or more whitespace-separated columns.  Only the "
192 "first 4 columns are signficant if you want to parse this from a program.  "
193 "The columns are:"
194 msgstr ""
195
196 #. type: =item
197 #: ../align/virt-alignment-scan.pod:60
198 msgid "col 1"
199 msgstr ""
200
201 #. type: textblock
202 #: ../align/virt-alignment-scan.pod:62
203 msgid ""
204 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
205 "on the first block device)"
206 msgstr ""
207
208 #. type: =item
209 #: ../align/virt-alignment-scan.pod:65
210 msgid "col 2"
211 msgstr ""
212
213 #. type: textblock
214 #: ../align/virt-alignment-scan.pod:67
215 msgid "the start of the partition in bytes"
216 msgstr ""
217
218 #. type: =item
219 #: ../align/virt-alignment-scan.pod:69
220 msgid "col 3"
221 msgstr ""
222
223 #. type: textblock
224 #: ../align/virt-alignment-scan.pod:71
225 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
226 msgstr ""
227
228 #. type: =item
229 #: ../align/virt-alignment-scan.pod:73
230 msgid "col 4"
231 msgstr ""
232
233 #. type: textblock
234 #: ../align/virt-alignment-scan.pod:75
235 msgid ""
236 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
237 "can cause performance problems"
238 msgstr ""
239
240 #. type: =item
241 #: ../align/virt-alignment-scan.pod:78
242 msgid "cols 5+"
243 msgstr ""
244
245 #. type: textblock
246 #: ../align/virt-alignment-scan.pod:80
247 msgid "optional free-text explanation."
248 msgstr ""
249
250 #. type: textblock
251 #: ../align/virt-alignment-scan.pod:84
252 msgid ""
253 "The exit code from the program changes depending on whether poorly aligned "
254 "partitions were found.  See L</EXIT STATUS> below."
255 msgstr ""
256
257 #. type: textblock
258 #: ../align/virt-alignment-scan.pod:87
259 msgid "If you just want the exit code with no output, use the I<-q> option."
260 msgstr ""
261
262 #. type: =head1
263 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
264 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
265 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
266 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
267 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
268 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
269 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:112
270 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
271 #: ../test-tool/libguestfs-test-tool.pod:36
272 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
273 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
274 #: ../tools/virt-win-reg.pl:96
275 msgid "OPTIONS"
276 msgstr "ПАРАМЕТРИ"
277
278 #. type: =item
279 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
280 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
281 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
282 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
283 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:116
284 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
285 #: ../test-tool/libguestfs-test-tool.pod:40
286 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
287 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
288 #: ../tools/virt-win-reg.pl:104
289 msgid "B<--help>"
290 msgstr "B<--help>"
291
292 #. type: textblock
293 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
294 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
295 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
296 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:118
297 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
298 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
299 #: ../tools/virt-win-reg.pl:106
300 msgid "Display brief help."
301 msgstr "Показати коротку довідку."
302
303 #. type: =item
304 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
305 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
306 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
307 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:120
308 msgid "B<-a> file"
309 msgstr "B<-a> файл"
310
311 #. type: =item
312 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
313 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
314 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
315 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:122
316 msgid "B<--add> file"
317 msgstr "B<--add> файл"
318
319 #. type: textblock
320 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
321 msgid "Add I<file> which should be a disk image from a virtual machine."
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
326 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
327 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
328 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
329 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:128
330 msgid ""
331 "The format of the disk image is auto-detected.  To override this and force a "
332 "particular format use the I<--format=..> option."
333 msgstr ""
334
335 #. type: =item
336 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
337 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
338 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
339 #: ../rescue/virt-rescue.pod:135
340 msgid "B<-c> URI"
341 msgstr "B<-c> адреса"
342
343 #. type: =item
344 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
345 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
346 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
347 #: ../rescue/virt-rescue.pod:137
348 msgid "B<--connect> URI"
349 msgstr "B<--connect> адреса"
350
351 #. type: textblock
352 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
353 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
354 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
355 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:139
356 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
357 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
358 msgid ""
359 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
360 "to the default libvirt hypervisor."
361 msgstr ""
362
363 #. type: textblock
364 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
365 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
366 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
367 #: ../rescue/virt-rescue.pod:142
368 msgid ""
369 "If you specify guest block devices directly (I<-a>), then libvirt is not "
370 "used at all."
371 msgstr ""
372
373 #. type: =item
374 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
375 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
376 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
377 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:145
378 msgid "B<-d> guest"
379 msgstr "B<-d> гість"
380
381 #. type: =item
382 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
383 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
384 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
385 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:147
386 msgid "B<--domain> guest"
387 msgstr "B<--domain> гість"
388
389 #. type: textblock
390 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
391 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
392 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
393 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:149
394 msgid ""
395 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
396 "instead of names."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
401 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
402 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
403 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
404 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:152
405 msgid "B<--format=raw|qcow2|..>"
406 msgstr "B<--format=raw|qcow2|..>"
407
408 #. type: =item
409 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
410 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
411 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
412 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
413 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
414 #: ../rescue/virt-rescue.pod:154
415 msgid "B<--format>"
416 msgstr "B<--format>"
417
418 #. type: textblock
419 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
420 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
421 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
422 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
423 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:156
424 msgid ""
425 "The default for the I<-a> option is to auto-detect the format of the disk "
426 "image.  Using this forces the disk format for I<-a> options which follow on "
427 "the command line.  Using I<--format> with no argument switches back to auto-"
428 "detection for subsequent I<-a> options."
429 msgstr ""
430
431 #. type: textblock
432 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
433 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
434 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
435 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
436 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351
437 #: ../rescue/virt-rescue.pod:161 ../src/guestfs.pod:2877
438 msgid "For example:"
439 msgstr "Приклад:"
440
441 #. type: verbatim
442 #: ../align/virt-alignment-scan.pod:134
443 #, no-wrap
444 msgid ""
445 " virt-alignment-scan --format=raw -a disk.img\n"
446 "\n"
447 msgstr ""
448
449 #. type: textblock
450 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
451 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
452 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
453 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
454 #: ../rescue/virt-rescue.pod:165
455 msgid "forces raw format (no auto-detection) for C<disk.img>."
456 msgstr ""
457
458 #. type: verbatim
459 #: ../align/virt-alignment-scan.pod:138
460 #, no-wrap
461 msgid ""
462 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
463 "\n"
464 msgstr ""
465
466 #. type: textblock
467 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
468 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
469 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
470 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
471 #: ../rescue/virt-rescue.pod:169
472 msgid ""
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
475 msgstr ""
476
477 #. type: textblock
478 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
479 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
480 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
481 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:172
482 msgid ""
483 "If you have untrusted raw-format guest disk images, you should use this "
484 "option to specify the disk format.  This avoids a possible security problem "
485 "with malicious guests (CVE-2010-3851)."
486 msgstr ""
487
488 #. type: =item
489 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:491
490 #: ../sparsify/virt-sparsify.pod:153
491 msgid "B<-q>"
492 msgstr "B<-q>"
493
494 #. type: =item
495 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
496 #: ../sparsify/virt-sparsify.pod:155
497 msgid "B<--quiet>"
498 msgstr "B<--quiet>"
499
500 #. type: textblock
501 #: ../align/virt-alignment-scan.pod:151
502 msgid ""
503 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
504 "below)."
505 msgstr ""
506
507 #. type: =item
508 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
509 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
510 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
511 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
512 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
513 #: ../rescue/virt-rescue.pod:219 ../sparsify/virt-sparsify.pod:159
514 msgid "B<-v>"
515 msgstr "B<-v>"
516
517 #. type: =item
518 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
519 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
520 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
521 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
522 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
523 #: ../rescue/virt-rescue.pod:221 ../sparsify/virt-sparsify.pod:161
524 msgid "B<--verbose>"
525 msgstr "B<--verbose>"
526
527 #. type: textblock
528 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
529 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
530 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
531 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
532 #: ../rescue/virt-rescue.pod:223 ../sparsify/virt-sparsify.pod:163
533 msgid "Enable verbose messages for debugging."
534 msgstr ""
535
536 #. type: =item
537 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
538 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
539 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
540 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
541 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
542 #: ../rescue/virt-rescue.pod:225 ../resize/virt-resize.pod:561
543 #: ../sparsify/virt-sparsify.pod:165
544 msgid "B<-V>"
545 msgstr "B<-V>"
546
547 #. type: =item
548 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
549 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
550 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
551 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
552 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
553 #: ../rescue/virt-rescue.pod:227 ../resize/virt-resize.pod:563
554 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
555 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
556 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
557 msgid "B<--version>"
558 msgstr "B<--version>"
559
560 #. type: textblock
561 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
562 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
563 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
564 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
565 #: ../rescue/virt-rescue.pod:229 ../resize/virt-resize.pod:565
566 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
567 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
568 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
569 msgid "Display version number and exit."
570 msgstr "Показати дані щодо версії і завершити роботу."
571
572 #. type: =item
573 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
574 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
575 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
576 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
577 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
578 #: ../rescue/virt-rescue.pod:240 ../sparsify/virt-sparsify.pod:171
579 #: ../tools/virt-tar.pl:158
580 msgid "B<-x>"
581 msgstr "B<-x>"
582
583 #. type: textblock
584 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
585 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
586 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
587 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
588 #: ../rescue/virt-rescue.pod:242 ../sparsify/virt-sparsify.pod:173
589 msgid "Enable tracing of libguestfs API calls."
590 msgstr ""
591
592 #. type: =head1
593 #: ../align/virt-alignment-scan.pod:172
594 msgid "RECOMMENDED ALIGNMENT"
595 msgstr ""
596
597 #. type: textblock
598 #: ../align/virt-alignment-scan.pod:174
599 msgid ""
600 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
601 "first sector of the first partition at sector 63, with a 512 byte sector "
602 "size.  This happens because of a historical accident.  Drives have to report "
603 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
604 "completely meaningless on modern drives, but it happens that the geometry "
605 "reported always has 63 sectors per track.  The operating system therefore "
606 "places the first partition at the start of the second \"track\", at sector "
607 "63."
608 msgstr ""
609
610 #. type: textblock
611 #: ../align/virt-alignment-scan.pod:183
612 msgid ""
613 "When the guest OS is virtualized, the host operating system and hypervisor "
614 "may prefer accesses aligned to one of:"
615 msgstr ""
616
617 #. type: =item
618 #: ../align/virt-alignment-scan.pod:188
619 msgid "* 512 bytes"
620 msgstr ""
621
622 #. type: textblock
623 #: ../align/virt-alignment-scan.pod:190
624 msgid ""
625 "if the host OS uses local storage directly on hard drive partitions, and the "
626 "hard drive has 512 byte physical sectors."
627 msgstr ""
628
629 #. type: =item
630 #: ../align/virt-alignment-scan.pod:193
631 msgid "* 4 Kbytes"
632 msgstr ""
633
634 #. type: textblock
635 #: ../align/virt-alignment-scan.pod:195
636 msgid ""
637 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
638 "backed storage on filesystems with 4Kbyte block size; or for some types of "
639 "network-attached storage."
640 msgstr ""
641
642 #. type: =item
643 #: ../align/virt-alignment-scan.pod:199
644 msgid "* 64 Kbytes"
645 msgstr ""
646
647 #. type: textblock
648 #: ../align/virt-alignment-scan.pod:201
649 msgid ""
650 "for high-end network-attached storage.  This is the optimal block size for "
651 "some NetApp hardware."
652 msgstr ""
653
654 #. type: =item
655 #: ../align/virt-alignment-scan.pod:204
656 msgid "* 1 Mbyte"
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:206
661 msgid "see L</1 MB PARTITION ALIGNMENT> below."
662 msgstr ""
663
664 #. type: textblock
665 #: ../align/virt-alignment-scan.pod:210
666 msgid ""
667 "Partitions which are not aligned correctly to the underlying storage cause "
668 "extra I/O.  For example:"
669 msgstr ""
670
671 #. type: verbatim
672 #: ../align/virt-alignment-scan.pod:213
673 #, no-wrap
674 msgid ""
675 "                       sect#63\n"
676 "                       +--------------------------+------\n"
677 "                       |         guest            |\n"
678 "                       |    filesystem block      |\n"
679 " ---+------------------+------+-------------------+-----+---\n"
680 "    |  host block             |  host block             |\n"
681 "    |                         |                         |\n"
682 " ---+-------------------------+-------------------------+---\n"
683 "\n"
684 msgstr ""
685
686 #. type: textblock
687 #: ../align/virt-alignment-scan.pod:222
688 msgid ""
689 "In this example, each time a 4K guest block is read, two blocks on the host "
690 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
691 "written, two host blocks must first be read, the old and new data combined, "
692 "and the two blocks written back (4x I/O)."
693 msgstr ""
694
695 #. type: =head2
696 #: ../align/virt-alignment-scan.pod:227
697 msgid "LINUX HOST BLOCK AND I/O SIZE"
698 msgstr ""
699
700 #. type: textblock
701 #: ../align/virt-alignment-scan.pod:229
702 msgid ""
703 "New versions of the Linux kernel expose the physical and logical block size, "
704 "and minimum and recommended I/O size."
705 msgstr ""
706
707 #. type: textblock
708 #: ../align/virt-alignment-scan.pod:232
709 msgid "For a typical consumer hard drive with 512 byte sectors:"
710 msgstr ""
711
712 #. type: verbatim
713 #: ../align/virt-alignment-scan.pod:234
714 #, no-wrap
715 msgid ""
716 " $ cat /sys/block/sda/queue/hw_sector_size\n"
717 " 512\n"
718 " $ cat /sys/block/sda/queue/physical_block_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/logical_block_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/minimum_io_size\n"
723 " 512\n"
724 " $ cat /sys/block/sda/queue/optimal_io_size\n"
725 " 0\n"
726 "\n"
727 msgstr ""
728
729 #. type: textblock
730 #: ../align/virt-alignment-scan.pod:245
731 msgid "For a new consumer hard drive with 4Kbyte sectors:"
732 msgstr ""
733
734 #. type: verbatim
735 #: ../align/virt-alignment-scan.pod:247
736 #, no-wrap
737 msgid ""
738 " $ cat /sys/block/sda/queue/hw_sector_size\n"
739 " 4096\n"
740 " $ cat /sys/block/sda/queue/physical_block_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sda/queue/logical_block_size\n"
743 " 4096\n"
744 " $ cat /sys/block/sda/queue/minimum_io_size\n"
745 " 4096\n"
746 " $ cat /sys/block/sda/queue/optimal_io_size\n"
747 " 0\n"
748 "\n"
749 msgstr ""
750
751 #. type: textblock
752 #: ../align/virt-alignment-scan.pod:258
753 msgid "For a NetApp LUN:"
754 msgstr ""
755
756 #. type: verbatim
757 #: ../align/virt-alignment-scan.pod:260
758 #, no-wrap
759 msgid ""
760 " $ cat /sys/block/sdc/queue/logical_block_size\n"
761 " 512\n"
762 " $ cat /sys/block/sdc/queue/physical_block_size\n"
763 " 512\n"
764 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
765 " 4096\n"
766 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
767 " 65536\n"
768 "\n"
769 msgstr ""
770
771 #. type: textblock
772 #: ../align/virt-alignment-scan.pod:269
773 msgid ""
774 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
775 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
776 msgstr ""
777
778 #. type: textblock
779 #: ../align/virt-alignment-scan.pod:273
780 msgid ""
781 "For detailed information about what these numbers mean, see L<http://docs."
782 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
783 "Storage_Administration_Guide/newstorage-iolimits.html>"
784 msgstr ""
785
786 #. type: textblock
787 #: ../align/virt-alignment-scan.pod:276
788 msgid ""
789 "[Thanks to Matt Booth for providing 4K drive data.  Thanks to Mike Snitzer "
790 "for providing NetApp data and additional information.]"
791 msgstr ""
792
793 #. type: =head2
794 #: ../align/virt-alignment-scan.pod:279
795 msgid "1 MB PARTITION ALIGNMENT"
796 msgstr ""
797
798 #. type: textblock
799 #: ../align/virt-alignment-scan.pod:281
800 msgid ""
801 "Microsoft picked 1 MB as the default alignment for all partitions starting "
802 "with Windows 2008 Server, and Linux has followed this."
803 msgstr ""
804
805 #. type: textblock
806 #: ../align/virt-alignment-scan.pod:284
807 msgid ""
808 "Assuming 512 byte sectors in the guest, you will now see the first partition "
809 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
810 "multiple of 2048 sectors."
811 msgstr ""
812
813 #. type: textblock
814 #: ../align/virt-alignment-scan.pod:288
815 msgid ""
816 "1 MB alignment is compatible with all current alignment requirements (4K, "
817 "64K) and provides room for future growth in physical block sizes."
818 msgstr ""
819
820 #. type: =head2
821 #: ../align/virt-alignment-scan.pod:291
822 msgid "SETTING ALIGNMENT"
823 msgstr ""
824
825 #. type: textblock
826 #: ../align/virt-alignment-scan.pod:293
827 msgid ""
828 "L<virt-resize(1)> can change the alignment of the partitions of some "
829 "guests.  Currently it can fully align all the partitions of all Windows "
830 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
831 "it can align the second and subsequent partitions, so the majority of OS "
832 "accesses except at boot will be aligned."
833 msgstr ""
834
835 #. type: textblock
836 #: ../align/virt-alignment-scan.pod:299
837 msgid ""
838 "Another way to correct partition alignment problems is to reinstall your "
839 "guest operating systems.  If you install operating systems from templates, "
840 "ensure these have correct partition alignment too."
841 msgstr ""
842
843 #. type: textblock
844 #: ../align/virt-alignment-scan.pod:303
845 msgid ""
846 "For older versions of Windows, the following NetApp document contains useful "
847 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
848 msgstr ""
849
850 #. type: textblock
851 #: ../align/virt-alignment-scan.pod:306
852 msgid ""
853 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
854 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
855 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
856 "contains an example."
857 msgstr ""
858
859 #. type: =head1
860 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231
861 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
862 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
863 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367
864 #: ../rescue/virt-rescue.pod:303 ../resize/virt-resize.pod:676
865 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
866 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
867 #: ../tools/virt-win-reg.pl:744
868 msgid "SHELL QUOTING"
869 msgstr ""
870
871 #. type: textblock
872 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233
873 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
874 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
875 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369
876 #: ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:678
877 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
878 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
879 #: ../tools/virt-win-reg.pl:752
880 msgid ""
881 "Libvirt guest names can contain arbitrary characters, some of which have "
882 "meaning to the shell such as C<#> and space.  You may need to quote or "
883 "escape these characters on the command line.  See the shell manual page L<sh"
884 "(1)> for details."
885 msgstr ""
886
887 #. type: =head1
888 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238
889 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
890 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
891 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
892 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390
893 #: ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:227
894 #: ../test-tool/libguestfs-test-tool.pod:90
895 msgid "EXIT STATUS"
896 msgstr ""
897
898 #. type: textblock
899 #: ../align/virt-alignment-scan.pod:320
900 msgid "This program returns:"
901 msgstr ""
902
903 #. type: =item
904 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330
905 #: ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343
906 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
907 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
908 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
909 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
910 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
911 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
912 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
913 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
914 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
915 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
916 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
917 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
918 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
919 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
920 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
921 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
922 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
923 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449
924 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463
925 #: ../fish/guestfish-actions.pod:1262 ../fish/guestfish-actions.pod:1266
926 #: ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1274
927 #: ../fish/guestfish-actions.pod:1282 ../fish/guestfish-actions.pod:1286
928 #: ../fish/guestfish-actions.pod:1290 ../fish/guestfish-actions.pod:1300
929 #: ../fish/guestfish-actions.pod:1304 ../fish/guestfish-actions.pod:1308
930 #: ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1402
931 #: ../fish/guestfish-actions.pod:1407 ../fish/guestfish-actions.pod:1412
932 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1458
933 #: ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1719
934 #: ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1733
935 #: ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2142
936 #: ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157
937 #: ../fish/guestfish-actions.pod:2164 ../fish/guestfish.pod:445
938 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
939 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:408
940 #: ../inspector/virt-inspector.pod:412 ../resize/virt-resize.pod:359
941 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:372
942 #: ../resize/virt-resize.pod:378 ../sparsify/virt-sparsify.pod:32
943 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
944 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
945 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
946 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
947 #: ../src/guestfs-actions.pod:641 ../src/guestfs-actions.pod:649
948 #: ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663
949 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083
950 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2091
951 #: ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2103
952 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:2117
953 #: ../src/guestfs-actions.pod:2121 ../src/guestfs-actions.pod:2125
954 #: ../src/guestfs-actions.pod:2263 ../src/guestfs-actions.pod:2267
955 #: ../src/guestfs-actions.pod:2272 ../src/guestfs-actions.pod:2277
956 #: ../src/guestfs-actions.pod:2338 ../src/guestfs-actions.pod:2342
957 #: ../src/guestfs-actions.pod:2347 ../src/guestfs-actions.pod:2762
958 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2776
959 #: ../src/guestfs-actions.pod:3321 ../src/guestfs-actions.pod:3327
960 #: ../src/guestfs-actions.pod:3335 ../src/guestfs-actions.pod:3342
961 #: ../src/guestfs-actions.pod:3349 ../src/guestfs.pod:403
962 #: ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417
963 #: ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431
964 #: ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113
965 #: ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130
966 #: ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179
967 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191
968 #: ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689
969 #: ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800
970 #: ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819
971 #: ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119
972 #: ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651
973 #: ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3062
974 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3071 ../src/guestfs.pod:3075
975 #: ../src/guestfs.pod:3079 ../src/guestfs.pod:3093 ../src/guestfs.pod:3098
976 #: ../src/guestfs.pod:3329 ../src/guestfs.pod:3333 ../src/guestfs.pod:3337
977 #: ../src/guestfs.pod:3341 ../tools/virt-win-reg.pl:197
978 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
979 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
980 #: ../tools/virt-win-reg.pl:733
981 msgid "*"
982 msgstr "*"
983
984 #. type: textblock
985 #: ../align/virt-alignment-scan.pod:326
986 msgid "0"
987 msgstr ""
988
989 #. type: textblock
990 #: ../align/virt-alignment-scan.pod:328
991 msgid ""
992 "successful exit, all partitions are aligned E<ge> 64K for best performance"
993 msgstr ""
994
995 #. type: textblock
996 #: ../align/virt-alignment-scan.pod:332
997 msgid "1"
998 msgstr ""
999
1000 #. type: textblock
1001 #: ../align/virt-alignment-scan.pod:334
1002 msgid "an error scanning the disk image or guest"
1003 msgstr ""
1004
1005 #. type: textblock
1006 #: ../align/virt-alignment-scan.pod:338
1007 msgid "2"
1008 msgstr ""
1009
1010 #. type: textblock
1011 #: ../align/virt-alignment-scan.pod:340
1012 msgid ""
1013 "successful exit, some partitions have alignment E<lt> 64K which can result "
1014 "in poor performance on high end network storage"
1015 msgstr ""
1016
1017 #. type: textblock
1018 #: ../align/virt-alignment-scan.pod:345
1019 msgid "3"
1020 msgstr ""
1021
1022 #. type: textblock
1023 #: ../align/virt-alignment-scan.pod:347
1024 msgid ""
1025 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1026 "poor performance on most hypervisors"
1027 msgstr ""
1028
1029 #. type: =head1
1030 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243
1031 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1032 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1033 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1034 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1035 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1036 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1037 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1038 #: ../inspector/virt-inspector.pod:395 ../java/examples/guestfs-java.pod:45
1039 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1040 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:325
1041 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1042 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3270
1043 #: ../test-tool/libguestfs-test-tool.pod:100
1044 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1045 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1046 #: ../tools/virt-win-reg.pl:757
1047 msgid "SEE ALSO"
1048 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1049
1050 #. type: textblock
1051 #: ../align/virt-alignment-scan.pod:354
1052 msgid ""
1053 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1054 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1055 msgstr ""
1056
1057 #. type: =head1
1058 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252
1059 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1060 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1061 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:334
1062 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:264
1063 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1064 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1065 #: ../tools/virt-win-reg.pl:783
1066 msgid "AUTHOR"
1067 msgstr "АВТОР"
1068
1069 #. type: textblock
1070 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254
1071 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1072 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1073 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410
1074 #: ../rescue/virt-rescue.pod:336 ../resize/virt-resize.pod:713
1075 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1076 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1077 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1078 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1079 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1080
1081 #. type: =head1
1082 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256
1083 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1084 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1085 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1086 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1087 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1088 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1089 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1090 #: ../inspector/virt-inspector.pod:418 ../java/examples/guestfs-java.pod:62
1091 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1092 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:338
1093 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1094 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3352
1095 #: ../test-tool/libguestfs-test-tool.pod:110
1096 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1097 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1098 #: ../tools/virt-win-reg.pl:787
1099 msgid "COPYRIGHT"
1100 msgstr "АВТОРСЬКІ ПРАВА"
1101
1102 #. type: textblock
1103 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507
1104 #: ../sparsify/virt-sparsify.pod:270
1105 msgid "Copyright (C) 2011 Red Hat Inc."
1106 msgstr ""
1107
1108 #. type: textblock
1109 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260
1110 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1111 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1112 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1113 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1114 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1115 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422
1116 #: ../rescue/virt-rescue.pod:342 ../resize/virt-resize.pod:719
1117 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1118 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1119 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1120 #: ../tools/virt-win-reg.pl:791
1121 msgid ""
1122 "This program is free software; you can redistribute it and/or modify it "
1123 "under the terms of the GNU General Public License as published by the Free "
1124 "Software Foundation; either version 2 of the License, or (at your option) "
1125 "any later version."
1126 msgstr ""
1127
1128 #. type: textblock
1129 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265
1130 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1131 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1132 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1133 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1134 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1135 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427
1136 #: ../rescue/virt-rescue.pod:347 ../resize/virt-resize.pod:724
1137 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1138 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1139 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1140 #: ../tools/virt-win-reg.pl:796
1141 msgid ""
1142 "This program is distributed in the hope that it will be useful, but WITHOUT "
1143 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1144 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1145 "more details."
1146 msgstr ""
1147 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1148 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1149 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1150 "дізнатися з GNU General Public License."
1151
1152 #. type: textblock
1153 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270
1154 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1155 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1156 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1157 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1158 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1159 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432
1160 #: ../rescue/virt-rescue.pod:352 ../resize/virt-resize.pod:729
1161 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1162 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1163 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1164 #: ../tools/virt-win-reg.pl:801
1165 msgid ""
1166 "You should have received a copy of the GNU General Public License along with "
1167 "this program; if not, write to the Free Software Foundation, Inc., 51 "
1168 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1169 msgstr ""
1170 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1171 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1172 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1173
1174 #. type: textblock
1175 #: ../cat/virt-cat.pod:5
1176 msgid "virt-cat - Display files in a virtual machine"
1177 msgstr "virt-cat — показ файлів у віртуальній машині"
1178
1179 #. type: verbatim
1180 #: ../cat/virt-cat.pod:9
1181 #, no-wrap
1182 msgid ""
1183 " virt-cat [--options] -d domname file [file ...]\n"
1184 "\n"
1185 msgstr ""
1186 " virt-cat [--параметри] -d назва_домену файл [файл...]\n"
1187 "\n"
1188
1189 #. type: verbatim
1190 #: ../cat/virt-cat.pod:11
1191 #, no-wrap
1192 msgid ""
1193 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1194 "\n"
1195 msgstr ""
1196 " virt-cat [--параметри] -a диск.img [-a диск.img ...] файл [файл...]\n"
1197 "\n"
1198
1199 #. type: textblock
1200 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1201 #: ../inspector/virt-inspector.pod:13
1202 msgid "Old-style:"
1203 msgstr "Застарілий стиль:"
1204
1205 #. type: verbatim
1206 #: ../cat/virt-cat.pod:15
1207 #, no-wrap
1208 msgid ""
1209 " virt-cat domname file\n"
1210 "\n"
1211 msgstr ""
1212 " virt-cat назва_домену файл\n"
1213 "\n"
1214
1215 #. type: verbatim
1216 #: ../cat/virt-cat.pod:17
1217 #, no-wrap
1218 msgid ""
1219 " virt-cat disk.img file\n"
1220 "\n"
1221 msgstr ""
1222 " virt-cat диск.img файл\n"
1223 "\n"
1224
1225 #. type: textblock
1226 #: ../cat/virt-cat.pod:21
1227 msgid ""
1228 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1229 "C<file> exists in the named virtual machine (or disk image)."
1230 msgstr ""
1231 "C<virt-cat> — інструмент командного рядка для показу вмісту C<файла>, який "
1232 "зберігається у вказаній віртуальній машині (або образі диска)."
1233
1234 #. type: textblock
1235 #: ../cat/virt-cat.pod:24
1236 msgid ""
1237 "Multiple filenames can be given, in which case they are concatenated "
1238 "together.  Each filename must be a full path, starting at the root directory "
1239 "(starting with '/')."
1240 msgstr ""
1241 "Ви можете вказати декілька назв файлів. Вміст таких файлів буде об’єднано. "
1242 "Назви файлів слід вказувати повністю (разом зі шляхом), починаючи з "
1243 "кореневого каталогу (тобто назва має починатися з «/»)."
1244
1245 #. type: textblock
1246 #: ../cat/virt-cat.pod:28
1247 msgid ""
1248 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1249 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1250 "(see L</USING GUESTFISH> below)."
1251 msgstr ""
1252 "C<virt-cat> можна скористатися для пришвидшення перегляду файла. Для "
1253 "редагування даних слід користуватися C<virt-edit>. Для виконання складніших "
1254 "дій можна скористатися програмою L<guestfish(1)> (див. L</USING GUESTFISH> "
1255 "нижче)."
1256
1257 #. type: =head1
1258 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1259 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1260 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1261 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1262 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1263 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1264 #: ../tools/virt-tar.pl:50
1265 msgid "EXAMPLES"
1266 msgstr "ПРИКЛАДИ"
1267
1268 #. type: textblock
1269 #: ../cat/virt-cat.pod:34
1270 msgid ""
1271 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1272 msgstr ""
1273 "Показ файла C</etc/fstab> з віртуальної машини libvirt з назвою C<mydomain>:"
1274
1275 #. type: verbatim
1276 #: ../cat/virt-cat.pod:37
1277 #, no-wrap
1278 msgid ""
1279 " virt-cat -d mydomain /etc/fstab\n"
1280 "\n"
1281 msgstr ""
1282 " virt-cat -d mydomain /etc/fstab\n"
1283 "\n"
1284
1285 #. type: textblock
1286 #: ../cat/virt-cat.pod:39
1287 msgid "List syslog messages from a VM disk image file:"
1288 msgstr ""
1289 "Показ списку повідомлень syslog з файла образу диска віртуальної машини:"
1290
1291 #. type: verbatim
1292 #: ../cat/virt-cat.pod:41
1293 #, no-wrap
1294 msgid ""
1295 " virt-cat -a disk.img /var/log/messages | tail\n"
1296 "\n"
1297 msgstr ""
1298 " virt-cat -a disk.img /var/log/messages | tail\n"
1299 "\n"
1300
1301 #. type: textblock
1302 #: ../cat/virt-cat.pod:43
1303 msgid "Find out what DHCP IP address a VM acquired:"
1304 msgstr "Визначення IP-адреси DHCP, використаної віртуальною машиною:"
1305
1306 #. type: verbatim
1307 #: ../cat/virt-cat.pod:45
1308 #, no-wrap
1309 msgid ""
1310 " virt-cat -d mydomain /var/log/messages | \\\n"
1311 "   grep 'dhclient: bound to' | tail\n"
1312 "\n"
1313 msgstr ""
1314 " virt-cat -d mydomain /var/log/messages | \\\n"
1315 "   grep 'dhclient: bound to' | tail\n"
1316 "\n"
1317
1318 #. type: textblock
1319 #: ../cat/virt-cat.pod:48
1320 msgid "Find out what packages were recently installed:"
1321 msgstr "Пошук нещодавно встановлених пакунків:"
1322
1323 #. type: verbatim
1324 #: ../cat/virt-cat.pod:50
1325 #, no-wrap
1326 msgid ""
1327 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1328 "\n"
1329 msgstr ""
1330 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1331 "\n"
1332
1333 #. type: textblock
1334 #: ../cat/virt-cat.pod:52
1335 msgid "Find out who is logged on inside a virtual machine:"
1336 msgstr "Визначення користувачів, які працюють у віртуальній машині:"
1337
1338 #. type: verbatim
1339 #: ../cat/virt-cat.pod:54
1340 #, no-wrap
1341 msgid ""
1342 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1343 " who /tmp/utmp\n"
1344 "\n"
1345 msgstr ""
1346 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1347 " who /tmp/utmp\n"
1348 "\n"
1349
1350 #. type: textblock
1351 #: ../cat/virt-cat.pod:57
1352 msgid "or who was logged on:"
1353 msgstr "або тих, які у ній працювали:"
1354
1355 #. type: verbatim
1356 #: ../cat/virt-cat.pod:59
1357 #, no-wrap
1358 msgid ""
1359 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1360 " last -f /tmp/wtmp\n"
1361 "\n"
1362 msgstr ""
1363 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1364 " last -f /tmp/wtmp\n"
1365 "\n"
1366
1367 #. type: textblock
1368 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1369 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1370 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:124
1371 msgid ""
1372 "Add I<file> which should be a disk image from a virtual machine.  If the "
1373 "virtual machine has multiple block devices, you must supply all of them with "
1374 "separate I<-a> options."
1375 msgstr ""
1376
1377 #. type: =item
1378 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1379 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1380 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1381 msgid "B<--echo-keys>"
1382 msgstr "B<--echo-keys>"
1383
1384 #. type: textblock
1385 #: ../cat/virt-cat.pod:100
1386 msgid ""
1387 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1388 "so you cannot see what you are typing.  If you are not worried about Tempest "
1389 "attacks and there is no one else in the room you can specify this flag to "
1390 "see what you are typing."
1391 msgstr ""
1392
1393 #. type: verbatim
1394 #: ../cat/virt-cat.pod:116
1395 #, no-wrap
1396 msgid ""
1397 " virt-cat --format=raw -a disk.img file\n"
1398 "\n"
1399 msgstr ""
1400 " virt-cat --format=raw -a disk.img file\n"
1401 "\n"
1402
1403 #. type: verbatim
1404 #: ../cat/virt-cat.pod:120
1405 #, no-wrap
1406 msgid ""
1407 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1408 "\n"
1409 msgstr ""
1410 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1411 "\n"
1412
1413 #. type: =item
1414 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1415 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1416 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1417 msgid "B<--keys-from-stdin>"
1418 msgstr "B<--keys-from-stdin>"
1419
1420 #. type: textblock
1421 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1422 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1423 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1424 msgid ""
1425 "Read key or passphrase parameters from stdin.  The default is to try to read "
1426 "passphrases from the user by opening C</dev/tty>."
1427 msgstr ""
1428
1429 #. type: =head1
1430 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1431 #: ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:246
1432 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1433 msgstr ""
1434
1435 #. type: textblock
1436 #: ../cat/virt-cat.pod:154
1437 msgid "Previous versions of virt-cat allowed you to write either:"
1438 msgstr ""
1439
1440 #. type: verbatim
1441 #: ../cat/virt-cat.pod:156
1442 #, no-wrap
1443 msgid ""
1444 " virt-cat disk.img [disk.img ...] file\n"
1445 "\n"
1446 msgstr ""
1447
1448 #. type: textblock
1449 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1450 #: ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:252
1451 msgid "or"
1452 msgstr "або"
1453
1454 #. type: verbatim
1455 #: ../cat/virt-cat.pod:160
1456 #, no-wrap
1457 msgid ""
1458 " virt-cat guestname file\n"
1459 "\n"
1460 msgstr ""
1461
1462 #. type: textblock
1463 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1464 #: ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:256
1465 msgid ""
1466 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1467 "the confusing case where a disk image might have the same name as a guest."
1468 msgstr ""
1469
1470 #. type: textblock
1471 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1472 #: ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:260
1473 msgid "For compatibility the old style is still supported."
1474 msgstr ""
1475
1476 #. type: =head1
1477 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1478 msgid "WINDOWS PATHS"
1479 msgstr "ШЛЯХИ У WINDOWS"
1480
1481 #. type: textblock
1482 #: ../cat/virt-cat.pod:170
1483 msgid ""
1484 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1485 "paths (eg. C<E:\\foo\\bar.txt>)."
1486 msgstr ""
1487
1488 #. type: textblock
1489 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1490 msgid "If and only if the guest is running Windows then:"
1491 msgstr ""
1492
1493 #. type: textblock
1494 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1495 msgid ""
1496 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1497 "to the correct filesystem."
1498 msgstr ""
1499
1500 #. type: textblock
1501 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1502 msgid ""
1503 "Any backslash (C<\\>) characters in the path are replaced with forward "
1504 "slashes so that libguestfs can process it."
1505 msgstr ""
1506
1507 #. type: textblock
1508 #: ../cat/virt-cat.pod:189
1509 msgid ""
1510 "The path is resolved case insensitively to locate the file that should be "
1511 "displayed."
1512 msgstr ""
1513
1514 #. type: textblock
1515 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1516 msgid "There are some known shortcomings:"
1517 msgstr ""
1518
1519 #. type: textblock
1520 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1521 msgid "Some NTFS symbolic links may not be followed correctly."
1522 msgstr ""
1523
1524 #. type: textblock
1525 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1526 msgid "NTFS junction points that cross filesystems are not followed."
1527 msgstr ""
1528
1529 #. type: =head1
1530 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1531 msgid "USING GUESTFISH"
1532 msgstr "ВИКОРИСТАННЯ GUESTFISH"
1533
1534 #. type: textblock
1535 #: ../cat/virt-cat.pod:210
1536 msgid ""
1537 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1538 "C<virt-cat> doesn't work."
1539 msgstr ""
1540
1541 #. type: textblock
1542 #: ../cat/virt-cat.pod:213
1543 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1544 msgstr ""
1545
1546 #. type: verbatim
1547 #: ../cat/virt-cat.pod:215
1548 #, no-wrap
1549 msgid ""
1550 " guestfish --ro -i -d domname download file -\n"
1551 "\n"
1552 msgstr ""
1553
1554 #. type: textblock
1555 #: ../cat/virt-cat.pod:217
1556 msgid ""
1557 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1558 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1559 msgstr ""
1560
1561 #. type: textblock
1562 #: ../cat/virt-cat.pod:221
1563 msgid ""
1564 "The command above uses libguestfs's guest inspection feature and so does not "
1565 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1566 "disk images that don't contain guests.  To display a file from a disk image "
1567 "directly, use:"
1568 msgstr ""
1569
1570 #. type: verbatim
1571 #: ../cat/virt-cat.pod:226
1572 #, no-wrap
1573 msgid ""
1574 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1575 "\n"
1576 msgstr ""
1577
1578 #. type: textblock
1579 #: ../cat/virt-cat.pod:228
1580 msgid ""
1581 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1582 "the disk image, and C<file> is the full path to the file."
1583 msgstr ""
1584
1585 #. type: textblock
1586 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1587 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1588 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392
1589 #: ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:229
1590 msgid ""
1591 "This program returns 0 if successful, or non-zero if there was an error."
1592 msgstr ""
1593
1594 #. type: textblock
1595 #: ../cat/virt-cat.pod:245
1596 msgid ""
1597 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1598 "tar-out(1)>, L<http://libguestfs.org/>."
1599 msgstr ""
1600 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1601 "tar-out(1)>, L<http://libguestfs.org/>."
1602
1603 #. type: textblock
1604 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420
1605 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1606 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1607 msgstr "©Red Hat Inc., 2010–2011"
1608
1609 #. type: textblock
1610 #: ../cat/virt-filesystems.pod:5
1611 msgid ""
1612 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1613 "virtual machine or disk image"
1614 msgstr ""
1615
1616 #. type: verbatim
1617 #: ../cat/virt-filesystems.pod:9
1618 #, no-wrap
1619 msgid ""
1620 " virt-filesystems [--options] -d domname\n"
1621 "\n"
1622 msgstr ""
1623 " virt-filesystems [--параметри] -d назва_домену\n"
1624 "\n"
1625
1626 #. type: verbatim
1627 #: ../cat/virt-filesystems.pod:11
1628 #, no-wrap
1629 msgid ""
1630 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1631 "\n"
1632 msgstr ""
1633
1634 #. type: textblock
1635 #: ../cat/virt-filesystems.pod:15
1636 msgid ""
1637 "This tool allows you to discover filesystems, partitions, logical volumes, "
1638 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1639 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1640 msgstr ""
1641
1642 #. type: textblock
1643 #: ../cat/virt-filesystems.pod:20
1644 msgid ""
1645 "One use for this tool is from shell scripts to iterate over all filesystems "
1646 "from a disk image:"
1647 msgstr ""
1648
1649 #. type: verbatim
1650 #: ../cat/virt-filesystems.pod:23
1651 #, no-wrap
1652 msgid ""
1653 " for fs in $(virt-filesystems -a disk.img); do\n"
1654 "   # ...\n"
1655 " done\n"
1656 "\n"
1657 msgstr ""
1658 " for fs in $(virt-filesystems -a disk.img); do\n"
1659 "   # ...\n"
1660 " done\n"
1661 "\n"
1662
1663 #. type: textblock
1664 #: ../cat/virt-filesystems.pod:27
1665 msgid ""
1666 "Another use is to list partitions before using another tool to modify those "
1667 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1668 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1669 msgstr ""
1670
1671 #. type: textblock
1672 #: ../cat/virt-filesystems.pod:32
1673 msgid ""
1674 "Various command line options control what this program displays.  You need "
1675 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1676 "guest respectively.  If you just specify that then the program shows "
1677 "filesystems found, one per line, like this:"
1678 msgstr ""
1679
1680 #. type: verbatim
1681 #: ../cat/virt-filesystems.pod:37
1682 #, no-wrap
1683 msgid ""
1684 " $ virt-filesystems -a disk.img\n"
1685 " /dev/sda1\n"
1686 " /dev/vg_guest/lv_root\n"
1687 "\n"
1688 msgstr ""
1689 " $ virt-filesystems -a disk.img\n"
1690 " /dev/sda1\n"
1691 " /dev/vg_guest/lv_root\n"
1692 "\n"
1693
1694 #. type: textblock
1695 #: ../cat/virt-filesystems.pod:41
1696 msgid ""
1697 "If you add I<-l> or I<--long> then the output includes extra information:"
1698 msgstr ""
1699
1700 #. type: verbatim
1701 #: ../cat/virt-filesystems.pod:44
1702 #, no-wrap
1703 msgid ""
1704 " $ virt-filesystems -a disk.img -l\n"
1705 " Name                   Type         VFS   Label  Size\n"
1706 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1707 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1708 "\n"
1709 msgstr ""
1710
1711 #. type: textblock
1712 #: ../cat/virt-filesystems.pod:49
1713 msgid ""
1714 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1715 "shown as well:"
1716 msgstr ""
1717
1718 #. type: verbatim
1719 #: ../cat/virt-filesystems.pod:52
1720 #, no-wrap
1721 msgid ""
1722 " $ virt-filesystems -a disk.img --extra\n"
1723 " /dev/sda1\n"
1724 " /dev/vg_guest/lv_root\n"
1725 " /dev/vg_guest/lv_swap\n"
1726 " /dev/vg_guest/lv_data\n"
1727 "\n"
1728 msgstr ""
1729 " $ virt-filesystems -a disk.img --extra\n"
1730 " /dev/sda1\n"
1731 " /dev/vg_guest/lv_root\n"
1732 " /dev/vg_guest/lv_swap\n"
1733 " /dev/vg_guest/lv_data\n"
1734 "\n"
1735
1736 #. type: textblock
1737 #: ../cat/virt-filesystems.pod:58
1738 msgid ""
1739 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1740 msgstr ""
1741
1742 #. type: verbatim
1743 #: ../cat/virt-filesystems.pod:60
1744 #, no-wrap
1745 msgid ""
1746 " $ virt-filesystems -a disk.img --partitions\n"
1747 " /dev/sda1\n"
1748 " /dev/sda2\n"
1749 "\n"
1750 msgstr ""
1751 " $ virt-filesystems -a disk.img --partitions\n"
1752 " /dev/sda1\n"
1753 " /dev/sda2\n"
1754 "\n"
1755
1756 #. type: textblock
1757 #: ../cat/virt-filesystems.pod:64
1758 msgid ""
1759 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1760 "volumes>, I<--block-devices> to list those items."
1761 msgstr ""
1762
1763 #. type: textblock
1764 #: ../cat/virt-filesystems.pod:67
1765 msgid ""
1766 "You can use these options in combination as well (if you want a combination "
1767 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1768 "items fall into several categories (eg. C</dev/sda1> might be both a "
1769 "partition and a filesystem).  These items are listed several times.  To get "
1770 "a list which includes absolutely everything that virt-filesystems knows "
1771 "about, use the I<--all> option."
1772 msgstr ""
1773
1774 #. type: textblock
1775 #: ../cat/virt-filesystems.pod:74
1776 msgid ""
1777 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1778 "uuid> option to display device and filesystem UUIDs in the long output."
1779 msgstr ""
1780
1781 #. type: textblock
1782 #: ../cat/virt-filesystems.pod:78
1783 msgid ""
1784 "I<--all --long --uuid> is a useful combination to display all possible "
1785 "information about everything."
1786 msgstr ""
1787
1788 #. type: verbatim
1789 #: ../cat/virt-filesystems.pod:81
1790 #, no-wrap
1791 msgid ""
1792 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1793 " Name      Type       VFS  Label           Size Parent   UUID\n"
1794 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1795 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1796 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1797 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1798 " /dev/sda  device     -    -               20G  -        -\n"
1799 "\n"
1800 msgstr ""
1801
1802 #. type: textblock
1803 #: ../cat/virt-filesystems.pod:89
1804 msgid ""
1805 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1806 msgstr ""
1807
1808 #. type: =item
1809 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1810 msgid "B<--all>"
1811 msgstr "B<--all>"
1812
1813 #. type: textblock
1814 #: ../cat/virt-filesystems.pod:112
1815 msgid ""
1816 "Display everything.  This is currently the same as specifying these options: "
1817 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1818 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1819 "added to this list in future)."
1820 msgstr ""
1821
1822 #. type: textblock
1823 #: ../cat/virt-filesystems.pod:117
1824 msgid "See also I<--long>."
1825 msgstr "Див. також I<--long>."
1826
1827 #. type: =item
1828 #: ../cat/virt-filesystems.pod:119
1829 msgid "B<--blkdevs>"
1830 msgstr "B<--blkdevs>"
1831
1832 #. type: =item
1833 #: ../cat/virt-filesystems.pod:121
1834 msgid "B<--block-devices>"
1835 msgstr "B<--block-devices>"
1836
1837 #. type: textblock
1838 #: ../cat/virt-filesystems.pod:123
1839 msgid "Display block devices."
1840 msgstr "Показати список блокових пристроїв."
1841
1842 #. type: =item
1843 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1844 msgid "B<--csv>"
1845 msgstr "B<--csv>"
1846
1847 #. type: textblock
1848 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1849 msgid ""
1850 "Write out the results in CSV format (comma-separated values).  This format "
1851 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1852 "ABOUT CSV FORMAT> below."
1853 msgstr ""
1854
1855 #. type: textblock
1856 #: ../cat/virt-filesystems.pod:150
1857 msgid ""
1858 "When prompting for keys and passphrases, virt-filesystems normally turns "
1859 "echoing off so you cannot see what you are typing.  If you are not worried "
1860 "about Tempest attacks and there is no one else in the room you can specify "
1861 "this flag to see what you are typing."
1862 msgstr ""
1863
1864 #. type: =item
1865 #: ../cat/virt-filesystems.pod:155
1866 msgid "B<--extra>"
1867 msgstr "B<--extra>"
1868
1869 #. type: textblock
1870 #: ../cat/virt-filesystems.pod:157
1871 msgid ""
1872 "This causes filesystems that are not ordinary, mountable filesystems to be "
1873 "displayed.  This category includes swapspace, and filesystems that are empty "
1874 "or contain unknown data."
1875 msgstr ""
1876
1877 #. type: textblock
1878 #: ../cat/virt-filesystems.pod:161
1879 msgid "This option implies I<--filesystems>."
1880 msgstr ""
1881
1882 #. type: =item
1883 #: ../cat/virt-filesystems.pod:163
1884 msgid "B<--filesystems>"
1885 msgstr "B<--filesystems>"
1886
1887 #. type: textblock
1888 #: ../cat/virt-filesystems.pod:165
1889 msgid ""
1890 "Display mountable filesystems.  If no display option was selected then this "
1891 "option is implied."
1892 msgstr ""
1893
1894 #. type: textblock
1895 #: ../cat/virt-filesystems.pod:168
1896 msgid "With I<--extra>, non-mountable filesystems are shown too."
1897 msgstr ""
1898
1899 #. type: verbatim
1900 #: ../cat/virt-filesystems.pod:181
1901 #, no-wrap
1902 msgid ""
1903 " virt-filesystems --format=raw -a disk.img\n"
1904 "\n"
1905 msgstr ""
1906 " virt-filesystems --format=raw -a диск.img\n"
1907 "\n"
1908
1909 #. type: verbatim
1910 #: ../cat/virt-filesystems.pod:185
1911 #, no-wrap
1912 msgid ""
1913 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1914 "\n"
1915 msgstr ""
1916
1917 #. type: =item
1918 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1919 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1920 #: ../tools/virt-list-partitions.pl:109
1921 msgid "B<-h>"
1922 msgstr "B<-h>"
1923
1924 #. type: =item
1925 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1926 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1927 msgid "B<--human-readable>"
1928 msgstr "B<--human-readable>"
1929
1930 #. type: textblock
1931 #: ../cat/virt-filesystems.pod:198
1932 msgid "In I<--long> mode, display sizes in human-readable format."
1933 msgstr ""
1934
1935 #. type: =item
1936 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1937 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1938 msgid "B<-l>"
1939 msgstr "B<-l>"
1940
1941 #. type: =item
1942 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1943 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1944 msgid "B<--long>"
1945 msgstr "B<--long>"
1946
1947 #. type: textblock
1948 #: ../cat/virt-filesystems.pod:209
1949 msgid "Display extra columns of data (\"long format\")."
1950 msgstr ""
1951
1952 #. type: textblock
1953 #: ../cat/virt-filesystems.pod:211
1954 msgid "A title row is added unless you also specify I<--no-title>."
1955 msgstr ""
1956
1957 #. type: textblock
1958 #: ../cat/virt-filesystems.pod:213
1959 msgid ""
1960 "The extra columns displayed depend on what output you select, and the "
1961 "ordering of columns may change in future versions.  Use the title row, I<--"
1962 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1963 "programs."
1964 msgstr ""
1965
1966 #. type: textblock
1967 #: ../cat/virt-filesystems.pod:218
1968 msgid ""
1969 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1970 "default is to show raw numbers of I<bytes>."
1971 msgstr ""
1972
1973 #. type: textblock
1974 #: ../cat/virt-filesystems.pod:221
1975 msgid "Use I<--uuid> to display UUIDs too."
1976 msgstr ""
1977
1978 #. type: =item
1979 #: ../cat/virt-filesystems.pod:223
1980 msgid "B<--lvs>"
1981 msgstr "B<--lvs>"
1982
1983 #. type: =item
1984 #: ../cat/virt-filesystems.pod:225
1985 msgid "B<--logvols>"
1986 msgstr "B<--logvols>"
1987
1988 #. type: =item
1989 #: ../cat/virt-filesystems.pod:227
1990 msgid "B<--logical-volumes>"
1991 msgstr "B<--logical-volumes>"
1992
1993 #. type: textblock
1994 #: ../cat/virt-filesystems.pod:229
1995 msgid ""
1996 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1997 "of whether the LVs contain filesystems."
1998 msgstr ""
1999
2000 #. type: =item
2001 #: ../cat/virt-filesystems.pod:232
2002 msgid "B<--no-title>"
2003 msgstr "B<--no-title>"
2004
2005 #. type: textblock
2006 #: ../cat/virt-filesystems.pod:234
2007 msgid "In I<--long> mode, don't add a title row."
2008 msgstr ""
2009
2010 #. type: textblock
2011 #: ../cat/virt-filesystems.pod:236
2012 msgid ""
2013 "Note that the order of the columns is not fixed, and may change in future "
2014 "versions of virt-filesystems, so using this option may give you unexpected "
2015 "surprises."
2016 msgstr ""
2017
2018 #. type: =item
2019 #: ../cat/virt-filesystems.pod:240
2020 msgid "B<--parts>"
2021 msgstr "B<--parts>"
2022
2023 #. type: =item
2024 #: ../cat/virt-filesystems.pod:242
2025 msgid "B<--partitions>"
2026 msgstr "B<--partitions>"
2027
2028 #. type: textblock
2029 #: ../cat/virt-filesystems.pod:244
2030 msgid ""
2031 "Display partitions.  In this mode, these are displayed irrespective of "
2032 "whether the partitions contain filesystems."
2033 msgstr ""
2034
2035 #. type: =item
2036 #: ../cat/virt-filesystems.pod:247
2037 msgid "B<--pvs>"
2038 msgstr "B<--pvs>"
2039
2040 #. type: =item
2041 #: ../cat/virt-filesystems.pod:249
2042 msgid "B<--physvols>"
2043 msgstr "B<--physvols>"
2044
2045 #. type: =item
2046 #: ../cat/virt-filesystems.pod:251
2047 msgid "B<--physical-volumes>"
2048 msgstr "B<--physical-volumes>"
2049
2050 #. type: textblock
2051 #: ../cat/virt-filesystems.pod:253
2052 msgid "Display LVM physical volumes."
2053 msgstr ""
2054
2055 #. type: =item
2056 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
2057 msgid "B<--uuid>"
2058 msgstr "B<--uuid>"
2059
2060 #. type: =item
2061 #: ../cat/virt-filesystems.pod:257
2062 msgid "B<--uuids>"
2063 msgstr "B<--uuids>"
2064
2065 #. type: textblock
2066 #: ../cat/virt-filesystems.pod:259
2067 msgid "In I<--long> mode, display UUIDs as well."
2068 msgstr ""
2069
2070 #. type: =item
2071 #: ../cat/virt-filesystems.pod:273
2072 msgid "B<--vgs>"
2073 msgstr "B<--vgs>"
2074
2075 #. type: =item
2076 #: ../cat/virt-filesystems.pod:275
2077 msgid "B<--volgroups>"
2078 msgstr "B<--volgroups>"
2079
2080 #. type: =item
2081 #: ../cat/virt-filesystems.pod:277
2082 msgid "B<--volume-groups>"
2083 msgstr "B<--volume-groups>"
2084
2085 #. type: textblock
2086 #: ../cat/virt-filesystems.pod:279
2087 msgid "Display LVM volume groups."
2088 msgstr ""
2089
2090 #. type: =head1
2091 #: ../cat/virt-filesystems.pod:287
2092 msgid "COLUMNS"
2093 msgstr "СТОВПЧИКИ"
2094
2095 #. type: textblock
2096 #: ../cat/virt-filesystems.pod:289
2097 msgid ""
2098 "Note that columns in the output are subject to reordering and change in "
2099 "future versions of this tool."
2100 msgstr ""
2101
2102 #. type: =item
2103 #: ../cat/virt-filesystems.pod:294
2104 msgid "B<Name>"
2105 msgstr ""
2106
2107 #. type: textblock
2108 #: ../cat/virt-filesystems.pod:296
2109 msgid "The filesystem, partition, block device or LVM name."
2110 msgstr ""
2111
2112 #. type: textblock
2113 #: ../cat/virt-filesystems.pod:298
2114 msgid ""
2115 "For device and partition names these are displayed as canonical libguestfs "
2116 "names, so that for example C</dev/sda2> is the second partition on the first "
2117 "device."
2118 msgstr ""
2119
2120 #. type: textblock
2121 #: ../cat/virt-filesystems.pod:302
2122 msgid ""
2123 "If the I<--long> option is B<not> specified, then only the name column is "
2124 "shown in the output."
2125 msgstr ""
2126
2127 #. type: =item
2128 #: ../cat/virt-filesystems.pod:305
2129 msgid "B<Type>"
2130 msgstr ""
2131
2132 #. type: textblock
2133 #: ../cat/virt-filesystems.pod:307
2134 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2135 msgstr ""
2136
2137 #. type: =item
2138 #: ../cat/virt-filesystems.pod:309
2139 msgid "B<VFS>"
2140 msgstr "B<VFS>"
2141
2142 #. type: textblock
2143 #: ../cat/virt-filesystems.pod:311
2144 msgid ""
2145 "If there is a filesystem, then this column displays the filesystem type if "
2146 "one could be detected, eg. C<ext4>."
2147 msgstr ""
2148
2149 #. type: =item
2150 #: ../cat/virt-filesystems.pod:314
2151 msgid "B<Label>"
2152 msgstr ""
2153
2154 #. type: textblock
2155 #: ../cat/virt-filesystems.pod:316
2156 msgid ""
2157 "If the object has a label (used for identifying and mounting filesystems) "
2158 "then this column contains the label."
2159 msgstr ""
2160
2161 #. type: =item
2162 #: ../cat/virt-filesystems.pod:319
2163 msgid "B<MBR>"
2164 msgstr ""
2165
2166 #. type: textblock
2167 #: ../cat/virt-filesystems.pod:321
2168 msgid ""
2169 "The partition type byte, displayed as a two digit hexadecimal number.  A "
2170 "comprehensive list of partition types can be found here: L<http://www.win."
2171 "tue.nl/~aeb/partitions/partition_types-1.html>"
2172 msgstr ""
2173
2174 #. type: textblock
2175 #: ../cat/virt-filesystems.pod:325
2176 msgid "This is only applicable for DOS (MBR) partitions."
2177 msgstr ""
2178
2179 #. type: =item
2180 #: ../cat/virt-filesystems.pod:327
2181 msgid "B<Size>"
2182 msgstr ""
2183
2184 #. type: textblock
2185 #: ../cat/virt-filesystems.pod:329
2186 msgid ""
2187 "The size of the object in bytes.  If the I<--human> option is used then the "
2188 "size is displayed in a human-readable form."
2189 msgstr ""
2190
2191 #. type: =item
2192 #: ../cat/virt-filesystems.pod:332
2193 msgid "B<Parent>"
2194 msgstr ""
2195
2196 #. type: textblock
2197 #: ../cat/virt-filesystems.pod:334
2198 msgid ""
2199 "The parent column records the parent relationship between objects.  For "
2200 "example, if the object is a partition, then this column contains the name of "
2201 "the containing device.  If the object is a logical volume, then this column "
2202 "is the name of the volume group."
2203 msgstr ""
2204
2205 #. type: =item
2206 #: ../cat/virt-filesystems.pod:339
2207 msgid "B<UUID>"
2208 msgstr "B<UUID>"
2209
2210 #. type: textblock
2211 #: ../cat/virt-filesystems.pod:341
2212 msgid ""
2213 "If the object has a UUID (used for identifying and mounting filesystems and "
2214 "block devices) then this column contains the UUID as a string."
2215 msgstr ""
2216
2217 #. type: textblock
2218 #: ../cat/virt-filesystems.pod:345
2219 msgid "The UUID is only displayed if the I<--uuid> option is given."
2220 msgstr ""
2221
2222 #. type: =head1
2223 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2224 #: ../df/virt-df.pod:191
2225 msgid "NOTE ABOUT CSV FORMAT"
2226 msgstr ""
2227
2228 #. type: textblock
2229 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2230 #: ../df/virt-df.pod:193
2231 msgid ""
2232 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2233 "should be easy to parse, but it is definitely not easy to parse."
2234 msgstr ""
2235
2236 #. type: textblock
2237 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2238 #: ../df/virt-df.pod:196
2239 msgid ""
2240 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2241 "reliably.  This example has two columns:"
2242 msgstr ""
2243
2244 #. type: verbatim
2245 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2246 #: ../df/virt-df.pod:199
2247 #, no-wrap
2248 msgid ""
2249 " \"foo,bar\",baz\n"
2250 "\n"
2251 msgstr ""
2252
2253 #. type: textblock
2254 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2255 #: ../df/virt-df.pod:201
2256 msgid ""
2257 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2258 "reliably.  This example has one row:"
2259 msgstr ""
2260
2261 #. type: verbatim
2262 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2263 #: ../df/virt-df.pod:204
2264 #, no-wrap
2265 msgid ""
2266 " \"foo\n"
2267 " bar\",baz\n"
2268 "\n"
2269 msgstr ""
2270
2271 #. type: textblock
2272 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2273 #: ../df/virt-df.pod:207
2274 msgid ""
2275 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2276 "packaged in major Linux distributions)."
2277 msgstr ""
2278
2279 #. type: textblock
2280 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2281 #: ../df/virt-df.pod:210
2282 msgid ""
2283 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2284 "or Python's built-in csv library)."
2285 msgstr ""
2286
2287 #. type: textblock
2288 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2289 #: ../df/virt-df.pod:213
2290 msgid "Most spreadsheets and databases can import CSV directly."
2291 msgstr ""
2292
2293 #. type: textblock
2294 #: ../cat/virt-filesystems.pod:387
2295 msgid ""
2296 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2297 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2298 "libguestfs.org/>."
2299 msgstr ""
2300 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2301 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2302 "libguestfs.org/>."
2303
2304 #. type: textblock
2305 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2306 msgid "Copyright (C) 2010 Red Hat Inc."
2307 msgstr "©Red Hat Inc., 2010"
2308
2309 #. type: textblock
2310 #: ../cat/virt-ls.pod:5
2311 msgid "virt-ls - List files in a virtual machine"
2312 msgstr ""
2313
2314 #. type: verbatim
2315 #: ../cat/virt-ls.pod:9
2316 #, no-wrap
2317 msgid ""
2318 " virt-ls [--options] -d domname directory [directory ...]\n"
2319 "\n"
2320 msgstr ""
2321
2322 #. type: verbatim
2323 #: ../cat/virt-ls.pod:11
2324 #, no-wrap
2325 msgid ""
2326 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2327 "\n"
2328 msgstr ""
2329
2330 #. type: textblock
2331 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:15
2332 msgid "Old style:"
2333 msgstr "Старий стиль:"
2334
2335 #. type: verbatim
2336 #: ../cat/virt-ls.pod:15
2337 #, no-wrap
2338 msgid ""
2339 " virt-ls [--options] domname directory\n"
2340 "\n"
2341 msgstr ""
2342
2343 #. type: verbatim
2344 #: ../cat/virt-ls.pod:17
2345 #, no-wrap
2346 msgid ""
2347 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2348 "\n"
2349 msgstr ""
2350
2351 #. type: textblock
2352 #: ../cat/virt-ls.pod:21
2353 msgid ""
2354 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2355 "more from a virtual machine or disk image."
2356 msgstr ""
2357
2358 #. type: textblock
2359 #: ../cat/virt-ls.pod:24
2360 msgid ""
2361 "Multiple directory names can be given, in which case the output from each is "
2362 "concatenated."
2363 msgstr ""
2364
2365 #. type: textblock
2366 #: ../cat/virt-ls.pod:27
2367 msgid ""
2368 "To list directories from a libvirt guest use the I<-d> option to specify the "
2369 "name of the guest.  For a disk image, use the I<-a> option."
2370 msgstr ""
2371
2372 #. type: textblock
2373 #: ../cat/virt-ls.pod:31
2374 msgid ""
2375 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2376 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2377 "(3)> API."
2378 msgstr ""
2379
2380 #. type: textblock
2381 #: ../cat/virt-ls.pod:37
2382 msgid "Get a list of all files and directories in a virtual machine:"
2383 msgstr ""
2384
2385 #. type: verbatim
2386 #: ../cat/virt-ls.pod:39
2387 #, no-wrap
2388 msgid ""
2389 " virt-ls -R -d guest /\n"
2390 "\n"
2391 msgstr ""
2392
2393 #. type: textblock
2394 #: ../cat/virt-ls.pod:41
2395 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2396 msgstr ""
2397
2398 #. type: verbatim
2399 #: ../cat/virt-ls.pod:43
2400 #, no-wrap
2401 msgid ""
2402 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2403 "\n"
2404 msgstr ""
2405
2406 #. type: textblock
2407 #: ../cat/virt-ls.pod:45
2408 msgid "List all public-writable directories in a Linux virtual machine:"
2409 msgstr ""
2410
2411 #. type: verbatim
2412 #: ../cat/virt-ls.pod:47
2413 #, no-wrap
2414 msgid ""
2415 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2416 "\n"
2417 msgstr ""
2418
2419 #. type: textblock
2420 #: ../cat/virt-ls.pod:49
2421 msgid "List all Unix domain sockets in a Linux virtual machine:"
2422 msgstr ""
2423
2424 #. type: verbatim
2425 #: ../cat/virt-ls.pod:51
2426 #, no-wrap
2427 msgid ""
2428 " virt-ls -lR -d guest / | grep '^s'\n"
2429 "\n"
2430 msgstr ""
2431
2432 #. type: textblock
2433 #: ../cat/virt-ls.pod:53
2434 msgid "List all regular files with filenames ending in '.png':"
2435 msgstr ""
2436
2437 #. type: verbatim
2438 #: ../cat/virt-ls.pod:55
2439 #, no-wrap
2440 msgid ""
2441 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2442 "\n"
2443 msgstr ""
2444
2445 #. type: textblock
2446 #: ../cat/virt-ls.pod:57
2447 msgid "To display files larger than 10MB in home directories:"
2448 msgstr ""
2449
2450 #. type: verbatim
2451 #: ../cat/virt-ls.pod:59
2452 #, no-wrap
2453 msgid ""
2454 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2455 "\n"
2456 msgstr ""
2457
2458 #. type: textblock
2459 #: ../cat/virt-ls.pod:61
2460 msgid "Find everything modified in the last 7 days:"
2461 msgstr ""
2462
2463 #. type: verbatim
2464 #: ../cat/virt-ls.pod:63
2465 #, no-wrap
2466 msgid ""
2467 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2468 "\n"
2469 msgstr ""
2470
2471 #. type: textblock
2472 #: ../cat/virt-ls.pod:65
2473 msgid "Find regular files modified in the last 24 hours:"
2474 msgstr ""
2475
2476 #. type: verbatim
2477 #: ../cat/virt-ls.pod:67
2478 #, no-wrap
2479 msgid ""
2480 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2481 "\n"
2482 msgstr ""
2483
2484 #. type: =head2
2485 #: ../cat/virt-ls.pod:69
2486 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2487 msgstr ""
2488
2489 #. type: textblock
2490 #: ../cat/virt-ls.pod:71
2491 msgid ""
2492 "Find the differences between files in a guest and an earlier snapshot of the "
2493 "same guest."
2494 msgstr ""
2495
2496 #. type: verbatim
2497 #: ../cat/virt-ls.pod:74
2498 #, no-wrap
2499 msgid ""
2500 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2501 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2502 " diff -u old new | less\n"
2503 "\n"
2504 msgstr ""
2505
2506 #. type: textblock
2507 #: ../cat/virt-ls.pod:78
2508 msgid ""
2509 "The commands above won't find files where the content has changed but the "
2510 "metadata (eg. file size and modification date) is the same.  To do that, you "
2511 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2512 "checksum> can be quite slow since it has to read and compute a checksum of "
2513 "every regular file in the virtual machine."
2514 msgstr ""
2515
2516 #. type: =head1
2517 #: ../cat/virt-ls.pod:84
2518 msgid "OUTPUT MODES"
2519 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2520
2521 #. type: textblock
2522 #: ../cat/virt-ls.pod:86
2523 msgid ""
2524 "C<virt-ls> has four output modes, controlled by different combinations of "
2525 "the I<-l> and I<-R> options."
2526 msgstr ""
2527
2528 #. type: =head2
2529 #: ../cat/virt-ls.pod:89
2530 msgid "SIMPLE LISTING"
2531 msgstr "ПРОСТИЙ СПИСОК"
2532
2533 #. type: textblock
2534 #: ../cat/virt-ls.pod:91
2535 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2536 msgstr ""
2537
2538 #. type: verbatim
2539 #: ../cat/virt-ls.pod:93
2540 #, no-wrap
2541 msgid ""
2542 " $ virt-ls -d guest /\n"
2543 " bin\n"
2544 " boot\n"
2545 " [etc.]\n"
2546 "\n"
2547 msgstr ""
2548 " $ virt-ls -d guest /\n"
2549 " bin\n"
2550 " boot\n"
2551 " [тощо]\n"
2552 "\n"
2553
2554 #. type: =head2
2555 #: ../cat/virt-ls.pod:98
2556 msgid "LONG LISTING"
2557 msgstr "ДОВГИЙ СПИСОК"
2558
2559 #. type: textblock
2560 #: ../cat/virt-ls.pod:100
2561 msgid ""
2562 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2563 "(more specifically, like the C<guestfs_ll> function)."
2564 msgstr ""
2565
2566 #. type: verbatim
2567 #: ../cat/virt-ls.pod:103
2568 #, no-wrap
2569 msgid ""
2570 " $ virt-ls -l -d guest /\n"
2571 " total 204\n"
2572 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2573 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2574 " [etc.]\n"
2575 "\n"
2576 msgstr ""
2577 " $ virt-ls -l -d guest /\n"
2578 " total 204\n"
2579 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2580 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2581 " [тощо]\n"
2582 "\n"
2583
2584 #. type: textblock
2585 #: ../cat/virt-ls.pod:109
2586 msgid ""
2587 "Note that while this is useful for displaying a directory, do not try "
2588 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2589 "instead."
2590 msgstr ""
2591
2592 #. type: =head2
2593 #: ../cat/virt-ls.pod:113
2594 msgid "RECURSIVE LISTING"
2595 msgstr "РЕКУРСИВНИЙ СПИСОК"
2596
2597 #. type: textblock
2598 #: ../cat/virt-ls.pod:115
2599 msgid ""
2600 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2601 "and directories recursively:"
2602 msgstr ""
2603
2604 #. type: verbatim
2605 #: ../cat/virt-ls.pod:118
2606 #, no-wrap
2607 msgid ""
2608 " $ virt-ls -R -d guest /tmp\n"
2609 " foo\n"
2610 " foo/bar\n"
2611 " [etc.]\n"
2612 "\n"
2613 msgstr ""
2614 " $ virt-ls -R -d guest /tmp\n"
2615 " foo\n"
2616 " foo/bar\n"
2617 " [тощо]\n"
2618 "\n"
2619
2620 #. type: textblock
2621 #: ../cat/virt-ls.pod:123
2622 msgid ""
2623 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2624 "converts C<\\0> characters to C<\\n>."
2625 msgstr ""
2626
2627 #. type: =head2
2628 #: ../cat/virt-ls.pod:126
2629 msgid "RECURSIVE LONG LISTING"
2630 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2631
2632 #. type: textblock
2633 #: ../cat/virt-ls.pod:128
2634 msgid ""
2635 "Using I<-lR> options together changes the output to display directories "
2636 "recursively, with file stats, and optionally other features such as "
2637 "checksums and extended attributes."
2638 msgstr ""
2639
2640 #. type: textblock
2641 #: ../cat/virt-ls.pod:132
2642 msgid ""
2643 "Most of the interesting features of C<virt-ls> are only available when using "
2644 "I<-lR> mode."
2645 msgstr ""
2646
2647 #. type: textblock
2648 #: ../cat/virt-ls.pod:135
2649 msgid ""
2650 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2651 "you cannot use the output in another program (because filenames can contain "
2652 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2653 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2654 "on you by creating filenames with embedded newline characters.  To B<safely> "
2655 "parse the output in another program, use the I<--csv> (Comma-Separated "
2656 "Values) option."
2657 msgstr ""
2658
2659 #. type: textblock
2660 #: ../cat/virt-ls.pod:143
2661 msgid ""
2662 "Note that this output format is completely unrelated to the C<ls -lR> "
2663 "command."
2664 msgstr ""
2665
2666 #. type: verbatim
2667 #: ../cat/virt-ls.pod:146
2668 #, no-wrap
2669 msgid ""
2670 " $ virt-ls -lR -d guest /bin\n"
2671 " d 0555       4096 /bin\n"
2672 " - 0755        123 /bin/alsaunmute\n"
2673 " - 0755      28328 /bin/arch\n"
2674 " l 0777          4 /bin/awk -> gawk\n"
2675 " - 0755      27216 /bin/basename\n"
2676 " - 0755     943360 /bin/bash\n"
2677 " [etc.]\n"
2678 "\n"
2679 msgstr ""
2680 " $ virt-ls -lR -d guest /bin\n"
2681 " d 0555       4096 /bin\n"
2682 " - 0755        123 /bin/alsaunmute\n"
2683 " - 0755      28328 /bin/arch\n"
2684 " l 0777          4 /bin/awk -> gawk\n"
2685 " - 0755      27216 /bin/basename\n"
2686 " - 0755     943360 /bin/bash\n"
2687 " [тощо]\n"
2688 "\n"
2689
2690 #. type: textblock
2691 #: ../cat/virt-ls.pod:155
2692 msgid "These basic fields are always shown:"
2693 msgstr ""
2694
2695 #. type: =item
2696 #: ../cat/virt-ls.pod:159
2697 msgid "type"
2698 msgstr "тип"
2699
2700 #. type: textblock
2701 #: ../cat/virt-ls.pod:161
2702 msgid ""
2703 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2704 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2705 "link), C<s> (socket) or C<u> (unknown)."
2706 msgstr ""
2707
2708 #. type: =item
2709 #: ../cat/virt-ls.pod:171
2710 msgid "permissions"
2711 msgstr "права доступу"
2712
2713 #. type: textblock
2714 #: ../cat/virt-ls.pod:173
2715 msgid "The Unix permissions, displayed as a 4 digit octal number."
2716 msgstr ""
2717
2718 #. type: =item
2719 #: ../cat/virt-ls.pod:175
2720 msgid "size"
2721 msgstr "розмір"
2722
2723 #. type: textblock
2724 #: ../cat/virt-ls.pod:177
2725 msgid ""
2726 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2727 "readable> option is given, in which case this is shown as a human-readable "
2728 "number."
2729 msgstr ""
2730
2731 #. type: =head2
2732 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4380
2733 msgid "path"
2734 msgstr "шлях"
2735
2736 #. type: textblock
2737 #: ../cat/virt-ls.pod:183
2738 msgid "The full path of the file or directory."
2739 msgstr ""
2740
2741 #. type: =item
2742 #: ../cat/virt-ls.pod:185
2743 msgid "link"
2744 msgstr "посилання"
2745
2746 #. type: textblock
2747 #: ../cat/virt-ls.pod:187
2748 msgid "For symbolic links only, the link target."
2749 msgstr ""
2750
2751 #. type: textblock
2752 #: ../cat/virt-ls.pod:191
2753 msgid ""
2754 "In I<-lR> mode, additional command line options enable the display of more "
2755 "fields."
2756 msgstr ""
2757
2758 #. type: textblock
2759 #: ../cat/virt-ls.pod:194
2760 msgid ""
2761 "With the I<--uids> flag, these additional fields are displayed before the "
2762 "path:"
2763 msgstr ""
2764
2765 #. type: =item
2766 #: ../cat/virt-ls.pod:199
2767 msgid "uid"
2768 msgstr "uid"
2769
2770 #. type: =item
2771 #: ../cat/virt-ls.pod:201
2772 msgid "gid"
2773 msgstr "gid"
2774
2775 #. type: textblock
2776 #: ../cat/virt-ls.pod:203
2777 msgid ""
2778 "The UID and GID of the owner of the file (displayed numerically).  Note "
2779 "these only make sense in the context of a Unix-like guest."
2780 msgstr ""
2781
2782 #. type: textblock
2783 #: ../cat/virt-ls.pod:208
2784 msgid "With the I<--times> flag, these additional fields are displayed:"
2785 msgstr ""
2786
2787 #. type: =item
2788 #: ../cat/virt-ls.pod:212
2789 msgid "atime"
2790 msgstr "atime"
2791
2792 #. type: textblock
2793 #: ../cat/virt-ls.pod:214
2794 msgid "The time of last access."
2795 msgstr "Час останнього доступу."
2796
2797 #. type: =item
2798 #: ../cat/virt-ls.pod:216
2799 msgid "mtime"
2800 msgstr "mtime"
2801
2802 #. type: textblock
2803 #: ../cat/virt-ls.pod:218
2804 msgid "The time of last modification."
2805 msgstr "Час останнього внесення змін."
2806
2807 #. type: =item
2808 #: ../cat/virt-ls.pod:220
2809 msgid "ctime"
2810 msgstr "ctime"
2811
2812 #. type: textblock
2813 #: ../cat/virt-ls.pod:222
2814 msgid "The time of last status change."
2815 msgstr "Час останньої зміни стану."
2816
2817 #. type: textblock
2818 #: ../cat/virt-ls.pod:226
2819 msgid ""
2820 "The time fields are displayed as string dates and times, unless one of the "
2821 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2822 msgstr ""
2823
2824 #. type: textblock
2825 #: ../cat/virt-ls.pod:229
2826 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2827 msgstr ""
2828
2829 #. type: =item
2830 #: ../cat/virt-ls.pod:233
2831 msgid "device"
2832 msgstr "пристрій"
2833
2834 #. type: textblock
2835 #: ../cat/virt-ls.pod:235
2836 msgid ""
2837 "The device containing the file (displayed as major:minor).  This may not "
2838 "match devices as known to the guest."
2839 msgstr ""
2840
2841 #. type: =item
2842 #: ../cat/virt-ls.pod:238
2843 msgid "inode"
2844 msgstr "inode"
2845
2846 #. type: textblock
2847 #: ../cat/virt-ls.pod:240
2848 msgid "The inode number."
2849 msgstr ""
2850
2851 #. type: =item
2852 #: ../cat/virt-ls.pod:242
2853 msgid "nlink"
2854 msgstr "nlink"
2855
2856 #. type: textblock
2857 #: ../cat/virt-ls.pod:244
2858 msgid "The number of hard links."
2859 msgstr "Кількість жорстких посилань."
2860
2861 #. type: =item
2862 #: ../cat/virt-ls.pod:246
2863 msgid "rdev"
2864 msgstr "rdev"
2865
2866 #. type: textblock
2867 #: ../cat/virt-ls.pod:248
2868 msgid ""
2869 "For block and char special files, the device (displayed as major:minor)."
2870 msgstr ""
2871
2872 #. type: =item
2873 #: ../cat/virt-ls.pod:251
2874 msgid "blocks"
2875 msgstr "блоки"
2876
2877 #. type: textblock
2878 #: ../cat/virt-ls.pod:253
2879 msgid "The number of 512 byte blocks allocated to the file."
2880 msgstr ""
2881
2882 #. type: textblock
2883 #: ../cat/virt-ls.pod:257
2884 msgid ""
2885 "With the I<--checksum> flag, the checksum of the file contents is shown "
2886 "(only for regular files).  Computing file checksums can take a considerable "
2887 "amount of time."
2888 msgstr ""
2889
2890 #. type: =item
2891 #: ../cat/virt-ls.pod:280
2892 msgid "B<--checksum>"
2893 msgstr "B<--checksum>"
2894
2895 #. type: =item
2896 #: ../cat/virt-ls.pod:282
2897 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2898 msgstr "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2899
2900 #. type: textblock
2901 #: ../cat/virt-ls.pod:284
2902 msgid ""
2903 "Display checksum over file contents for regular files.  With no argument, "
2904 "this defaults to using I<md5>.  Using an argument, you can select the "
2905 "checksum type to use."
2906 msgstr ""
2907
2908 #. type: textblock
2909 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2910 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2911 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2912 msgid ""
2913 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2914 "LISTING> above."
2915 msgstr ""
2916
2917 #. type: textblock
2918 #: ../cat/virt-ls.pod:316
2919 msgid ""
2920 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2921 "so you cannot see what you are typing.  If you are not worried about Tempest "
2922 "attacks and there is no one else in the room you can specify this flag to "
2923 "see what you are typing."
2924 msgstr ""
2925
2926 #. type: =item
2927 #: ../cat/virt-ls.pod:321
2928 msgid "B<--extra-stats>"
2929 msgstr "B<--extra-stats>"
2930
2931 #. type: textblock
2932 #: ../cat/virt-ls.pod:323
2933 msgid "Display extra stats."
2934 msgstr "Показати додаткові дані."
2935
2936 #. type: verbatim
2937 #: ../cat/virt-ls.pod:339
2938 #, no-wrap
2939 msgid ""
2940 " virt-ls --format=raw -a disk.img /dir\n"
2941 "\n"
2942 msgstr ""
2943
2944 #. type: verbatim
2945 #: ../cat/virt-ls.pod:343
2946 #, no-wrap
2947 msgid ""
2948 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2949 "\n"
2950 msgstr ""
2951
2952 #. type: textblock
2953 #: ../cat/virt-ls.pod:356
2954 msgid "Display file sizes in human-readable format."
2955 msgstr ""
2956
2957 #. type: =item
2958 #: ../cat/virt-ls.pod:370
2959 msgid "B<-R>"
2960 msgstr "B<-R>"
2961
2962 #. type: =item
2963 #: ../cat/virt-ls.pod:372
2964 msgid "B<--recursive>"
2965 msgstr "B<--recursive>"
2966
2967 #. type: textblock
2968 #: ../cat/virt-ls.pod:374
2969 msgid ""
2970 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2971 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2972 "LISTING>."
2973 msgstr ""
2974
2975 #. type: textblock
2976 #: ../cat/virt-ls.pod:378
2977 msgid ""
2978 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2979 "LONG LISTING>."
2980 msgstr ""
2981
2982 #. type: textblock
2983 #: ../cat/virt-ls.pod:381
2984 msgid ""
2985 "C<virt-ls -R> produces a recursive list of files starting at the named "
2986 "directory.  See L</RECURSIVE LISTING>."
2987 msgstr ""
2988
2989 #. type: textblock
2990 #: ../cat/virt-ls.pod:384
2991 msgid ""
2992 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2993 "parsed.  See L</RECURSIVE LONG LISTING>."
2994 msgstr ""
2995
2996 #. type: =item
2997 #: ../cat/virt-ls.pod:387
2998 msgid "B<--times>"
2999 msgstr "B<--times>"
3000
3001 #. type: textblock
3002 #: ../cat/virt-ls.pod:389
3003 msgid "Display time fields."
3004 msgstr ""
3005
3006 #. type: =item
3007 #: ../cat/virt-ls.pod:394
3008 msgid "B<--time-days>"
3009 msgstr "B<--time-days>"
3010
3011 #. type: textblock
3012 #: ../cat/virt-ls.pod:396
3013 msgid "Display time fields as days before now (negative if in the future)."
3014 msgstr ""
3015
3016 #. type: textblock
3017 #: ../cat/virt-ls.pod:398
3018 msgid ""
3019 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
3020 "of the file is between 0 and 86399 seconds."
3021 msgstr ""
3022
3023 #. type: =item
3024 #: ../cat/virt-ls.pod:404
3025 msgid "B<--time-relative>"
3026 msgstr "B<--time-relative>"
3027
3028 #. type: textblock
3029 #: ../cat/virt-ls.pod:406
3030 msgid "Display time fields as seconds before now (negative if in the future)."
3031 msgstr ""
3032
3033 #. type: =item
3034 #: ../cat/virt-ls.pod:411
3035 msgid "B<--time-t>"
3036 msgstr "B<--time-t>"
3037
3038 #. type: textblock
3039 #: ../cat/virt-ls.pod:413
3040 msgid "Display time fields as seconds since the Unix epoch."
3041 msgstr ""
3042
3043 #. type: =item
3044 #: ../cat/virt-ls.pod:418
3045 msgid "B<--uids>"
3046 msgstr "B<--uids>"
3047
3048 #. type: textblock
3049 #: ../cat/virt-ls.pod:420
3050 msgid "Display UID and GID fields."
3051 msgstr ""
3052
3053 #. type: textblock
3054 #: ../cat/virt-ls.pod:445
3055 msgid "Previous versions of virt-ls allowed you to write either:"
3056 msgstr ""
3057
3058 #. type: verbatim
3059 #: ../cat/virt-ls.pod:447
3060 #, no-wrap
3061 msgid ""
3062 " virt-ls disk.img [disk.img ...] /dir\n"
3063 "\n"
3064 msgstr ""
3065
3066 #. type: verbatim
3067 #: ../cat/virt-ls.pod:451
3068 #, no-wrap
3069 msgid ""
3070 " virt-ls guestname /dir\n"
3071 "\n"
3072 msgstr ""
3073
3074 #. type: textblock
3075 #: ../cat/virt-ls.pod:497
3076 msgid ""
3077 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3078 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3079 "L<http://libguestfs.org/>."
3080 msgstr ""
3081 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3082 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3083 "L<http://libguestfs.org/>."
3084
3085 #. type: textblock
3086 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
3087 #: ../rescue/virt-rescue.pod:340
3088 msgid "Copyright (C) 2009-2011 Red Hat Inc."
3089 msgstr "©Red Hat Inc., 2009–2011"
3090
3091 #. type: textblock
3092 #: ../clone/virt-sysprep.pod:5
3093 msgid ""
3094 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3095 msgstr ""
3096
3097 #. type: verbatim
3098 #: ../clone/virt-sysprep.pod:9
3099 #, no-wrap
3100 msgid ""
3101 " virt-sysprep [--options] -d domname\n"
3102 "\n"
3103 msgstr ""
3104
3105 #. type: verbatim
3106 #: ../clone/virt-sysprep.pod:11
3107 #, no-wrap
3108 msgid ""
3109 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3110 "\n"
3111 msgstr ""
3112
3113 #. type: textblock
3114 #: ../clone/virt-sysprep.pod:15
3115 msgid ""
3116 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3117 "can be made from it.  Steps in this process include removing SSH host keys, "
3118 "removing persistent network MAC configuration, and removing user accounts.  "
3119 "Each step can be enabled or disabled as required."
3120 msgstr ""
3121
3122 #. type: textblock
3123 #: ../clone/virt-sysprep.pod:21
3124 msgid ""
3125 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3126 "customization by the system administrator."
3127 msgstr ""
3128
3129 #. type: textblock
3130 #: ../clone/virt-sysprep.pod:24
3131 msgid ""
3132 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3133 "be shut down.  If you want to preserve the existing contents of the guest, "
3134 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3135 msgstr ""
3136
3137 #. type: textblock
3138 #: ../clone/virt-sysprep.pod:29
3139 msgid ""
3140 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3141 "recommend that you don't.  The time you might want to run it as root is when "
3142 "you need root in order to access the disk image, but even in this case it "
3143 "would be better to change the permissions on the disk image to be writable "
3144 "as the non-root user running virt-sysprep."
3145 msgstr ""
3146
3147 #. type: textblock
3148 #: ../clone/virt-sysprep.pod:35
3149 msgid ""
3150 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3151 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3152 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3153 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3154 "Windows sysprepping in a future version, and we already have code to do it."
3155 msgstr ""
3156
3157 #. type: =item
3158 #: ../clone/virt-sysprep.pod:76
3159 msgid "B<--enable=...>"
3160 msgstr ""
3161
3162 #. type: textblock
3163 #: ../clone/virt-sysprep.pod:78
3164 msgid ""
3165 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3166 "operations, for example:"
3167 msgstr ""
3168
3169 #. type: verbatim
3170 #: ../clone/virt-sysprep.pod:81
3171 #, no-wrap
3172 msgid ""
3173 " --enable=ssh-hostkeys,udev-persistent-net\n"
3174 "\n"
3175 msgstr ""
3176
3177 #. type: textblock
3178 #: ../clone/virt-sysprep.pod:83
3179 msgid ""
3180 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3181 msgstr ""
3182
3183 #. type: textblock
3184 #: ../clone/virt-sysprep.pod:85
3185 msgid ""
3186 "If the I<--enable> option is not given, then we default to trying all "
3187 "possible sysprep operations.  But some sysprep operations are skipped for "
3188 "some guest types."
3189 msgstr ""
3190
3191 #. type: textblock
3192 #: ../clone/virt-sysprep.pod:89
3193 msgid ""
3194 "Use I<--list-operations> to list operations supported by a particular "
3195 "version of virt-sysprep."
3196 msgstr ""
3197
3198 #. type: textblock
3199 #: ../clone/virt-sysprep.pod:92
3200 msgid ""
3201 "See L</OPERATIONS> below for a list and an explanation of each operation."
3202 msgstr ""
3203
3204 #. type: verbatim
3205 #: ../clone/virt-sysprep.pod:106
3206 #, no-wrap
3207 msgid ""
3208 " virt-sysprep --format=raw -a disk.img\n"
3209 "\n"
3210 msgstr ""
3211
3212 #. type: verbatim
3213 #: ../clone/virt-sysprep.pod:110
3214 #, no-wrap
3215 msgid ""
3216 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3217 "\n"
3218 msgstr ""
3219
3220 #. type: =item
3221 #: ../clone/virt-sysprep.pod:119
3222 msgid "B<--hostname> newhostname"
3223 msgstr ""
3224
3225 #. type: textblock
3226 #: ../clone/virt-sysprep.pod:121
3227 msgid ""
3228 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3229 "defaults to C<localhost.localdomain>."
3230 msgstr ""
3231
3232 #. type: =item
3233 #: ../clone/virt-sysprep.pod:124
3234 msgid "B<--list-operations>"
3235 msgstr ""
3236
3237 #. type: textblock
3238 #: ../clone/virt-sysprep.pod:126
3239 msgid "List the operations supported by the virt-sysprep program."
3240 msgstr ""
3241
3242 #. type: =item
3243 #: ../clone/virt-sysprep.pod:128
3244 msgid "B<--selinux-relabel>"
3245 msgstr ""
3246
3247 #. type: =item
3248 #: ../clone/virt-sysprep.pod:130
3249 msgid "B<--no-selinux-relabel>"
3250 msgstr ""
3251
3252 #. type: textblock
3253 #: ../clone/virt-sysprep.pod:132
3254 msgid ""
3255 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3256 "I<--no-selinux-relabel> disables relabelling."
3257 msgstr ""
3258
3259 #. type: textblock
3260 #: ../clone/virt-sysprep.pod:135
3261 msgid ""
3262 "The default is to try to detect if SELinux relabelling is required.  See L</"
3263 "SELINUX RELABELLING> below for more details."
3264 msgstr ""
3265
3266 #. type: =head1
3267 #: ../clone/virt-sysprep.pod:156
3268 msgid "OPERATIONS"
3269 msgstr ""
3270
3271 #. type: textblock
3272 #: ../clone/virt-sysprep.pod:158
3273 msgid ""
3274 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3275 "enabled>, although some are skipped depending on the type of guest."
3276 msgstr ""
3277
3278 #. type: textblock
3279 #: ../clone/virt-sysprep.pod:162
3280 msgid ""
3281 "Operations can be individually enabled using the I<--enable> option.  Use a "
3282 "comma-separated list, for example:"
3283 msgstr ""
3284
3285 #. type: verbatim
3286 #: ../clone/virt-sysprep.pod:165
3287 #, no-wrap
3288 msgid ""
3289 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3290 "\n"
3291 msgstr ""
3292
3293 #. type: textblock
3294 #: ../clone/virt-sysprep.pod:167
3295 msgid ""
3296 "To list the operations supported by the current version of virt-sysprep, use "
3297 "I<--list-operations>."
3298 msgstr ""
3299
3300 #. type: textblock
3301 #: ../clone/virt-sysprep.pod:170
3302 msgid ""
3303 "Future versions of virt-sysprep may add more operations.  If you are using "
3304 "virt-sysprep and want predictable behaviour, specify only the operations "
3305 "that you want to have enabled."
3306 msgstr ""
3307
3308 #. type: =head2
3309 #: ../clone/virt-sysprep.pod:174
3310 msgid "cron-spool"
3311 msgstr ""
3312
3313 #. type: textblock
3314 #: ../clone/virt-sysprep.pod:176
3315 msgid "Remove user at-jobs and cron-jobs."
3316 msgstr ""
3317
3318 #. type: =head2
3319 #: ../clone/virt-sysprep.pod:178
3320 msgid "dhcp-client-state"
3321 msgstr ""
3322
3323 #. type: textblock
3324 #: ../clone/virt-sysprep.pod:180
3325 msgid "Remove DHCP client leases."
3326 msgstr ""
3327
3328 #. type: =head2
3329 #: ../clone/virt-sysprep.pod:182
3330 msgid "dhcp-server-state"
3331 msgstr ""
3332
3333 #. type: textblock
3334 #: ../clone/virt-sysprep.pod:184
3335 msgid "Remove DHCP server leases."
3336 msgstr ""
3337
3338 #. type: =head2
3339 #: ../clone/virt-sysprep.pod:186
3340 msgid "hostname"
3341 msgstr ""
3342
3343 #. type: textblock
3344 #: ../clone/virt-sysprep.pod:188
3345 msgid ""
3346 "Changes the hostname of the guest to the value given in the I<--hostname> "
3347 "parameter."
3348 msgstr ""
3349
3350 #. type: textblock
3351 #: ../clone/virt-sysprep.pod:191
3352 msgid ""
3353 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3354 "C<localhost.localdomain>."
3355 msgstr ""
3356
3357 #. type: =head2
3358 #: ../clone/virt-sysprep.pod:194
3359 msgid "logfiles"
3360 msgstr ""
3361
3362 #. type: textblock
3363 #: ../clone/virt-sysprep.pod:196
3364 msgid "Remove many log files."
3365 msgstr ""
3366
3367 #. type: =head2
3368 #: ../clone/virt-sysprep.pod:198
3369 msgid "mail-spool"
3370 msgstr ""
3371
3372 #. type: textblock
3373 #: ../clone/virt-sysprep.pod:200
3374 msgid "Remove email from the local mail spool directory."
3375 msgstr ""
3376
3377 #. type: =head2
3378 #: ../clone/virt-sysprep.pod:202
3379 msgid "net-hwaddr"
3380 msgstr ""
3381
3382 #. type: textblock
3383 #: ../clone/virt-sysprep.pod:204
3384 msgid ""
3385 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3386 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3387 msgstr ""
3388
3389 #. type: =head2
3390 #: ../clone/virt-sysprep.pod:207
3391 msgid "random-seed"
3392 msgstr ""
3393
3394 #. type: textblock
3395 #: ../clone/virt-sysprep.pod:209
3396 msgid ""
3397 "Write some random bytes from the host into the random seed file of the guest."
3398 msgstr ""
3399
3400 #. type: textblock
3401 #: ../clone/virt-sysprep.pod:212
3402 msgid "See L</RANDOM SEED> below."
3403 msgstr ""
3404
3405 #. type: =head2
3406 #: ../clone/virt-sysprep.pod:214
3407 msgid "rhn-systemid"
3408 msgstr ""
3409
3410 #. type: textblock
3411 #: ../clone/virt-sysprep.pod:216
3412 msgid "Remove the RHN system ID."
3413 msgstr ""
3414
3415 #. type: =head2
3416 #: ../clone/virt-sysprep.pod:218
3417 msgid "smolt-uuid"
3418 msgstr ""
3419
3420 #. type: textblock
3421 #: ../clone/virt-sysprep.pod:220
3422 msgid "Remove the Smolt hardware UUID."
3423 msgstr ""
3424
3425 #. type: =head2
3426 #: ../clone/virt-sysprep.pod:222
3427 msgid "ssh-hostkeys"
3428 msgstr ""
3429
3430 #. type: textblock
3431 #: ../clone/virt-sysprep.pod:224
3432 msgid "Remove the SSH host keys in the guest."
3433 msgstr ""
3434
3435 #. type: textblock
3436 #: ../clone/virt-sysprep.pod:226
3437 msgid ""
3438 "The SSH host keys are regenerated (differently) next time the guest is "
3439 "booted."
3440 msgstr ""
3441
3442 #. type: textblock
3443 #: ../clone/virt-sysprep.pod:229
3444 msgid ""
3445 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3446 "stark warning about the host key changing:"
3447 msgstr ""
3448
3449 #. type: verbatim
3450 #: ../clone/virt-sysprep.pod:232
3451 #, no-wrap
3452 msgid ""
3453 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3454 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3455 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3456 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3457 "\n"
3458 msgstr ""
3459
3460 #. type: =head2
3461 #: ../clone/virt-sysprep.pod:237
3462 msgid "udev-persistent-net"
3463 msgstr ""
3464
3465 #. type: textblock
3466 #: ../clone/virt-sysprep.pod:239
3467 msgid ""
3468 "Remove udev persistent net rules which map the guest's existing MAC address "
3469 "to a fixed ethernet device (eg. eth0)."
3470 msgstr ""
3471
3472 #. type: textblock
3473 #: ../clone/virt-sysprep.pod:242
3474 msgid ""
3475 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3476 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3477 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3478 "Erasing the udev persistent net rules avoids this."
3479 msgstr ""
3480
3481 #. type: =head2
3482 #: ../clone/virt-sysprep.pod:247
3483 msgid "utmp"
3484 msgstr ""
3485
3486 #. type: textblock
3487 #: ../clone/virt-sysprep.pod:249
3488 msgid "Remove the utmp file."
3489 msgstr ""
3490
3491 #. type: textblock
3492 #: ../clone/virt-sysprep.pod:251
3493 msgid ""
3494 "This records who is currently logged in on a machine.  In modern Linux "
3495 "distros it is stored in a ramdisk and hence not part of the virtual "
3496 "machine's disk, but it was stored on disk in older distros."
3497 msgstr ""
3498
3499 #. type: =head2
3500 #: ../clone/virt-sysprep.pod:255
3501 msgid "yum-uuid"
3502 msgstr ""
3503
3504 #. type: textblock
3505 #: ../clone/virt-sysprep.pod:257
3506 msgid "Remove the yum UUID."
3507 msgstr ""
3508
3509 #. type: textblock
3510 #: ../clone/virt-sysprep.pod:259
3511 msgid ""
3512 "Yum creates a fresh UUID the next time it runs when it notices that the "
3513 "original UUID has been erased."
3514 msgstr ""
3515
3516 #. type: =head1
3517 #: ../clone/virt-sysprep.pod:262
3518 msgid "COPYING AND CLONING"
3519 msgstr ""
3520
3521 #. type: textblock
3522 #: ../clone/virt-sysprep.pod:264
3523 msgid ""
3524 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3525 "prepare a template from which guests can be cloned.  There are many "
3526 "different ways to achieve this using the virt tools, and this section is "
3527 "just an introduction."
3528 msgstr ""
3529
3530 #. type: textblock
3531 #: ../clone/virt-sysprep.pod:269
3532 msgid "A virtual machine (when switched off) consists of two parts:"
3533 msgstr ""
3534
3535 #. type: =item
3536 #: ../clone/virt-sysprep.pod:273
3537 msgid "I<configuration>"
3538 msgstr ""
3539
3540 #. type: textblock
3541 #: ../clone/virt-sysprep.pod:275
3542 msgid ""
3543 "The configuration or description of the guest.  eg. The libvirt XML (see "
3544 "C<virsh dumpxml>), the running configuration of the guest, or another "
3545 "external format like OVF."
3546 msgstr ""
3547
3548 #. type: textblock
3549 #: ../clone/virt-sysprep.pod:279
3550 msgid "Some configuration items that might need to be changed:"
3551 msgstr ""
3552
3553 #. type: textblock
3554 #: ../clone/virt-sysprep.pod:285
3555 msgid "name"
3556 msgstr ""
3557
3558 #. type: textblock
3559 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3560 msgid "UUID"
3561 msgstr ""
3562
3563 #. type: textblock
3564 #: ../clone/virt-sysprep.pod:293
3565 msgid "path to block device(s)"
3566 msgstr ""
3567
3568 #. type: textblock
3569 #: ../clone/virt-sysprep.pod:297
3570 msgid "network card MAC address"
3571 msgstr ""
3572
3573 #. type: =item
3574 #: ../clone/virt-sysprep.pod:301
3575 msgid "I<block device(s)>"
3576 msgstr ""
3577
3578 #. type: textblock
3579 #: ../clone/virt-sysprep.pod:303
3580 msgid ""
3581 "One or more hard disk images, themselves containing files, directories, "
3582 "applications, kernels, configuration, etc."
3583 msgstr ""
3584
3585 #. type: textblock
3586 #: ../clone/virt-sysprep.pod:306
3587 msgid "Some things inside the block devices that might need to be changed:"
3588 msgstr ""
3589
3590 #. type: textblock
3591 #: ../clone/virt-sysprep.pod:312
3592 msgid "hostname and other net configuration"
3593 msgstr ""
3594
3595 #. type: textblock
3596 #: ../clone/virt-sysprep.pod:320
3597 msgid "SSH host keys"
3598 msgstr ""
3599
3600 #. type: textblock
3601 #: ../clone/virt-sysprep.pod:324
3602 msgid "Windows unique security ID (SID)"
3603 msgstr ""
3604
3605 #. type: textblock
3606 #: ../clone/virt-sysprep.pod:328
3607 msgid "Puppet registration"
3608 msgstr ""
3609
3610 #. type: =head2
3611 #: ../clone/virt-sysprep.pod:334
3612 msgid "COPYING THE BLOCK DEVICE"
3613 msgstr ""
3614
3615 #. type: textblock
3616 #: ../clone/virt-sysprep.pod:336
3617 msgid ""
3618 "Starting with an original guest, you probably wish to copy the guest block "
3619 "device and its configuration to make a template.  Then once you are happy "
3620 "with the template, you will want to make many clones from it."
3621 msgstr ""
3622
3623 #. type: verbatim
3624 #: ../clone/virt-sysprep.pod:341
3625 #, no-wrap
3626 msgid ""
3627 "                        virt-sysprep\n"
3628 "                             |\n"
3629 "                             v\n"
3630 " original guest --------> template ---------->\n"
3631 "                                      \\------> cloned\n"
3632 "                                       \\-----> guests\n"
3633 "                                        \\---->\n"
3634 "\n"
3635 msgstr ""
3636
3637 #. type: textblock
3638 #: ../clone/virt-sysprep.pod:349
3639 msgid ""
3640 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3641 "L<dd(1)>."
3642 msgstr ""
3643
3644 #. type: verbatim
3645 #: ../clone/virt-sysprep.pod:352
3646 #, no-wrap
3647 msgid ""
3648 "                   dd                 dd\n"
3649 " original guest --------> template ---------->\n"
3650 "                                      \\------> cloned\n"
3651 "                                       \\-----> guests\n"
3652 "                                        \\---->\n"
3653 "\n"
3654 msgstr ""
3655
3656 #. type: textblock
3657 #: ../clone/virt-sysprep.pod:358
3658 msgid "There are some smarter (and faster) ways too:"
3659 msgstr ""
3660
3661 #. type: verbatim
3662 #: ../clone/virt-sysprep.pod:364
3663 #, no-wrap
3664 msgid ""
3665 "                          snapshot\n"
3666 "                template ---------->\n"
3667 "                            \\------> cloned\n"
3668 "                             \\-----> guests\n"
3669 "                              \\---->\n"
3670 "\n"
3671 msgstr ""
3672
3673 #. type: textblock
3674 #: ../clone/virt-sysprep.pod:370
3675 msgid ""
3676 "Use the block device as a backing file and create a snapshot on top for each "
3677 "guest.  The advantage is that you don't need to copy the block device (very "
3678 "fast) and only changes are stored (less storage required)."
3679 msgstr ""
3680
3681 #. type: textblock
3682 #: ../clone/virt-sysprep.pod:375
3683 msgid ""
3684 "Note that writing to the backing file once you have created guests on top of "
3685 "it is not possible: you will corrupt the guests."
3686 msgstr ""
3687
3688 #. type: textblock
3689 #: ../clone/virt-sysprep.pod:378
3690 msgid ""
3691 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3692 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3693 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3694 "also create cheap snapshots from files or LUNs."
3695 msgstr ""
3696
3697 #. type: textblock
3698 #: ../clone/virt-sysprep.pod:386
3699 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3700 msgstr ""
3701
3702 #. type: textblock
3703 #: ../clone/virt-sysprep.pod:390
3704 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3705 msgstr ""
3706
3707 #. type: =head2
3708 #: ../clone/virt-sysprep.pod:394
3709 msgid "VIRT-CLONE"
3710 msgstr ""
3711
3712 #. type: textblock
3713 #: ../clone/virt-sysprep.pod:396
3714 msgid ""
3715 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3716 "and/or modify the external libvirt configuration of a guest.  It will reset "
3717 "the name, UUID and MAC address of the guest in the libvirt XML."
3718 msgstr ""
3719
3720 #. type: textblock
3721 #: ../clone/virt-sysprep.pod:401
3722 msgid ""
3723 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3724 "image.  This was the original motivation to write virt-sysprep."
3725 msgstr ""
3726
3727 #. type: =head2
3728 #: ../clone/virt-sysprep.pod:404
3729 msgid "SPARSIFY"
3730 msgstr ""
3731
3732 #. type: verbatim
3733 #: ../clone/virt-sysprep.pod:406
3734 #, no-wrap
3735 msgid ""
3736 "              virt-sparsify\n"
3737 " original guest --------> template\n"
3738 "\n"
3739 msgstr ""
3740
3741 #. type: textblock
3742 #: ../clone/virt-sysprep.pod:409
3743 msgid ""
3744 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3745 "it easier to compress and/or faster to copy."
3746 msgstr ""
3747
3748 #. type: textblock
3749 #: ../clone/virt-sysprep.pod:412
3750 msgid ""
3751 "Notice that since virt-sparsify also copies the image, you can use it to "
3752 "make the initial copy (instead of C<dd>)."
3753 msgstr ""
3754
3755 #. type: =head2
3756 #: ../clone/virt-sysprep.pod:415
3757 msgid "RESIZE"
3758 msgstr ""
3759
3760 #. type: verbatim
3761 #: ../clone/virt-sysprep.pod:417
3762 #, no-wrap
3763 msgid ""
3764 "                         virt-resize\n"
3765 "                template ---------->\n"
3766 "                            \\------> cloned\n"
3767 "                             \\-----> guests\n"
3768 "                              \\---->\n"
3769 "\n"
3770 msgstr ""
3771
3772 #. type: textblock
3773 #: ../clone/virt-sysprep.pod:423
3774 msgid ""
3775 "If you want to give people cloned guests, but let them pick the size of the "
3776 "guest themselves (eg. depending on how much they are prepared to pay for "
3777 "disk space), then instead of copying the template, you can run L<virt-resize"
3778 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3779 "guests from a template."
3780 msgstr ""
3781
3782 #. type: =head1
3783 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3784 msgid "SECURITY"
3785 msgstr "БЕЗПЕКА"
3786
3787 #. type: textblock
3788 #: ../clone/virt-sysprep.pod:431
3789 msgid ""
3790 "Although virt-sysprep removes some sensitive information from the guest, it "
3791 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3792 "above, and the implementation of the operations in the shell script.  You "
3793 "should also examine the guest afterwards."
3794 msgstr ""
3795
3796 #. type: textblock
3797 #: ../clone/virt-sysprep.pod:436
3798 msgid ""
3799 "Sensitive files are simply removed.  The data they contained may still exist "
3800 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3801 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3802 "(1)> command to get rid of deleted content in directory entries and inodes."
3803 msgstr ""
3804
3805 #. type: =head2
3806 #: ../clone/virt-sysprep.pod:442
3807 msgid "RANDOM SEED"
3808 msgstr ""
3809
3810 #. type: textblock
3811 #: ../clone/virt-sysprep.pod:444
3812 msgid "I<(This section applies to Linux guests only)>"
3813 msgstr ""
3814
3815 #. type: textblock
3816 #: ../clone/virt-sysprep.pod:446
3817 msgid ""
3818 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3819 "from the host into the guest's random seed file."
3820 msgstr ""
3821
3822 #. type: textblock
3823 #: ../clone/virt-sysprep.pod:449
3824 msgid ""
3825 "If this is just done once and the guest is cloned from the same template, "
3826 "then each guest will start with the same entropy, and things like SSH host "
3827 "keys and TCP sequence numbers may be predictable."
3828 msgstr ""
3829
3830 #. type: textblock
3831 #: ../clone/virt-sysprep.pod:453
3832 msgid ""
3833 "Therefore you should arrange to add more randomness I<after> cloning from a "
3834 "template too, which can be done by just enabling the C<random-seed> "
3835 "operation:"
3836 msgstr ""
3837
3838 #. type: verbatim
3839 #: ../clone/virt-sysprep.pod:457
3840 #, no-wrap
3841 msgid ""
3842 " cp template.img newguest.img\n"
3843 " virt-sysprep --enable=random-seed -a newguest.img\n"
3844 "\n"
3845 msgstr ""
3846
3847 #. type: =head2
3848 #: ../clone/virt-sysprep.pod:460
3849 msgid "SELINUX RELABELLING"
3850 msgstr ""
3851
3852 #. type: textblock
3853 #: ../clone/virt-sysprep.pod:462
3854 msgid "I<(This section applies to Linux guests using SELinux only)>"
3855 msgstr ""
3856
3857 #. type: textblock
3858 #: ../clone/virt-sysprep.pod:464
3859 msgid ""
3860 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3861 "autorelabel> so that these will be correctly labelled by SELinux the next "
3862 "time the guest is booted.  This process interrupts boot and can take some "
3863 "time."
3864 msgstr ""
3865
3866 #. type: textblock
3867 #: ../clone/virt-sysprep.pod:469
3868 msgid ""
3869 "You can force relabelling for all guests by supplying the I<--selinux-"
3870 "relabel> option."
3871 msgstr ""
3872
3873 #. type: textblock
3874 #: ../clone/virt-sysprep.pod:472
3875 msgid ""
3876 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3877 "relabel> option."
3878 msgstr ""
3879
3880 #. type: textblock
3881 #: ../clone/virt-sysprep.pod:484
3882 msgid "This program returns 0 on success, or 1 if there was an error."
3883 msgstr ""
3884
3885 #. type: textblock
3886 #: ../clone/virt-sysprep.pod:488
3887 msgid ""
3888 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3889 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3890 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3891 msgstr ""
3892
3893 #. type: textblock
3894 #: ../df/virt-df.pod:5
3895 msgid "virt-df - Display free space on virtual filesystems"
3896 msgstr ""
3897
3898 #. type: verbatim
3899 #: ../df/virt-df.pod:9
3900 #, no-wrap
3901 msgid ""
3902 " virt-df [--options]\n"
3903 "\n"
3904 msgstr ""
3905 " virt-df [--параметри]\n"
3906 "\n"
3907
3908 #. type: verbatim
3909 #: ../df/virt-df.pod:11
3910 #, no-wrap
3911 msgid ""
3912 " virt-df [--options] -d domname\n"
3913 "\n"
3914 msgstr ""
3915
3916 #. type: verbatim
3917 #: ../df/virt-df.pod:13
3918 #, no-wrap
3919 msgid ""
3920 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3921 "\n"
3922 msgstr ""
3923
3924 #. type: verbatim
3925 #: ../df/virt-df.pod:17
3926 #, no-wrap
3927 msgid ""
3928 " virt-df [--options] domname\n"
3929 "\n"
3930 msgstr ""
3931
3932 #. type: verbatim
3933 #: ../df/virt-df.pod:19
3934 #, no-wrap
3935 msgid ""
3936 " virt-df [--options] disk.img [disk.img ...]\n"
3937 "\n"
3938 msgstr ""
3939
3940 #. type: textblock
3941 #: ../df/virt-df.pod:23
3942 msgid ""
3943 "C<virt-df> is a command line tool to display free space on virtual machine "
3944 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3945 "allocated to a virtual machine, but can look inside disk images to see how "
3946 "much space is really being used."
3947 msgstr ""
3948
3949 #. type: textblock
3950 #: ../df/virt-df.pod:28
3951 msgid ""
3952 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3953 "to get a list of all active and inactive guests, and performs a C<df>-type "
3954 "operation on each one in turn, printing out the results."
3955 msgstr ""
3956
3957 #. type: textblock
3958 #: ../df/virt-df.pod:32
3959 msgid ""
3960 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3961 "type operation on either the single named libvirt domain, or on the disk "
3962 "image(s) listed on the command line (which must all belong to a single VM).  "
3963 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3964 "guest>.  If you want to run on multiple guests, then you have to invoke "
3965 "C<virt-df> multiple times."
3966 msgstr ""
3967
3968 #. type: textblock
3969 #: ../df/virt-df.pod:39
3970 msgid ""
3971 "Use the I<--csv> option to get a format which can be easily parsed by other "
3972 "programs.  Other options are similar to the standard L<df(1)> command."
3973 msgstr ""
3974
3975 #. type: textblock
3976 #: ../df/virt-df.pod:45
3977 msgid ""
3978 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3979 "output human-readable:"
3980 msgstr ""
3981
3982 #. type: verbatim
3983 #: ../df/virt-df.pod:48
3984 #, no-wrap
3985 msgid ""
3986 " # virt-df -d F14x64 -h\n"
3987 " Filesystem                       Size     Used  Available  Use%\n"
3988 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3989 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3990 "\n"
3991 msgstr ""
3992
3993 #. type: textblock
3994 #: ../df/virt-df.pod:53
3995 msgid "Show disk usage for a disk image file called C<test.img>:"
3996 msgstr ""
3997
3998 #. type: verbatim
3999 #: ../df/virt-df.pod:55
4000 #, no-wrap
4001 msgid ""
4002 " $ virt-df -a test1.img\n"
4003 " Filesystem                  1K-blocks     Used  Available  Use%\n"
4004 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
4005 "\n"
4006 msgstr ""
4007
4008 #. type: verbatim
4009 #: ../df/virt-df.pod:112
4010 #, no-wrap
4011 msgid ""
4012 " virt-df --format=raw -a disk.img\n"
4013 "\n"
4014 msgstr ""
4015
4016 #. type: verbatim
4017 #: ../df/virt-df.pod:116
4018 #, no-wrap
4019 msgid ""
4020 " virt-df --format=raw -a disk.img --format -a another.img\n"
4021 "\n"
4022 msgstr ""
4023
4024 #. type: textblock
4025 #: ../df/virt-df.pod:129
4026 msgid "Print sizes in human-readable format."
4027 msgstr ""
4028
4029 #. type: textblock
4030 #: ../df/virt-df.pod:131
4031 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
4032 msgstr ""
4033
4034 #. type: =item
4035 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
4036 msgid "B<-i>"
4037 msgstr "B<-i>"
4038
4039 #. type: =item
4040 #: ../df/virt-df.pod:135
4041 msgid "B<--inodes>"
4042 msgstr "B<--inodes>"
4043
4044 #. type: textblock
4045 #: ../df/virt-df.pod:137
4046 msgid "Print inodes instead of blocks."
4047 msgstr ""
4048
4049 #. type: =item
4050 #: ../df/virt-df.pod:139
4051 msgid "B<--one-per-guest>"
4052 msgstr "B<--one-per-guest>"
4053
4054 #. type: textblock
4055 #: ../df/virt-df.pod:141
4056 msgid ""
4057 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
4058 "disks from several guests to a single libguestfs appliance."
4059 msgstr ""
4060
4061 #. type: textblock
4062 #: ../df/virt-df.pod:144
4063 msgid "You might use this option in the following circumstances:"
4064 msgstr ""
4065
4066 #. type: textblock
4067 #: ../df/virt-df.pod:150
4068 msgid ""
4069 "If you think an untrusted guest might actively try to exploit the libguestfs "
4070 "appliance kernel, then this prevents one guest from interfering with the "
4071 "stats printed for another guest."
4072 msgstr ""
4073
4074 #. type: textblock
4075 #: ../df/virt-df.pod:156
4076 msgid ""
4077 "If the kernel has a bug which stops it from accessing a filesystem in one "
4078 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
4079 "and report stats for further guests."
4080 msgstr ""
4081
4082 #. type: textblock
4083 #: ../df/virt-df.pod:165
4084 msgid ""
4085 "Print UUIDs instead of names.  This is useful for following a guest even "
4086 "when the guest is migrated or renamed, or when two guests happen to have the "
4087 "same name."
4088 msgstr ""
4089
4090 #. type: textblock
4091 #: ../df/virt-df.pod:169
4092 msgid ""
4093 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
4094 "images, we still print the disk image name even when this option is "
4095 "specified."
4096 msgstr ""
4097
4098 #. type: textblock
4099 #: ../df/virt-df.pod:229
4100 msgid ""
4101 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4102 "libguestfs.org/>."
4103 msgstr ""
4104
4105 #. type: textblock
4106 #: ../edit/virt-edit.pod:5
4107 msgid "virt-edit - Edit a file in a virtual machine"
4108 msgstr ""
4109
4110 #. type: verbatim
4111 #: ../edit/virt-edit.pod:9
4112 #, no-wrap
4113 msgid ""
4114 " virt-edit [--options] -d domname file [file ...]\n"
4115 "\n"
4116 msgstr ""
4117
4118 #. type: verbatim
4119 #: ../edit/virt-edit.pod:11
4120 #, no-wrap
4121 msgid ""
4122 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4123 "\n"
4124 msgstr ""
4125
4126 #. type: verbatim
4127 #: ../edit/virt-edit.pod:13
4128 #, no-wrap
4129 msgid ""
4130 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4131 "\n"
4132 msgstr ""
4133
4134 #. type: verbatim
4135 #: ../edit/virt-edit.pod:17
4136 #, no-wrap
4137 msgid ""
4138 " virt-edit domname file\n"
4139 "\n"
4140 msgstr ""
4141
4142 #. type: verbatim
4143 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4144 #, no-wrap
4145 msgid ""
4146 " virt-edit disk.img [disk.img ...] file\n"
4147 "\n"
4148 msgstr ""
4149
4150 #. type: =head1
4151 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4152 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4153 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:21
4154 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4155 msgid "WARNING"
4156 msgstr "ПОПЕРЕДЖЕННЯ"
4157
4158 #. type: textblock
4159 #: ../edit/virt-edit.pod:23
4160 msgid ""
4161 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4162 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4163 "doing this, but doesn't catch all cases."
4164 msgstr ""
4165
4166 #. type: textblock
4167 #: ../edit/virt-edit.pod:29
4168 msgid ""
4169 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4170 "exists in the named virtual machine (or disk image)."
4171 msgstr ""
4172
4173 #. type: textblock
4174 #: ../edit/virt-edit.pod:32
4175 msgid ""
4176 "Multiple filenames can be given, in which case they are each edited in "
4177 "turn.  Each filename must be a full path, starting at the root directory "
4178 "(starting with '/')."
4179 msgstr ""
4180
4181 #. type: textblock
4182 #: ../edit/virt-edit.pod:36
4183 msgid "If you want to just view a file, use L<virt-cat(1)>."
4184 msgstr ""
4185
4186 #. type: textblock
4187 #: ../edit/virt-edit.pod:38
4188 msgid ""
4189 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4190 "USING GUESTFISH> below)."
4191 msgstr ""
4192
4193 #. type: textblock
4194 #: ../edit/virt-edit.pod:41
4195 msgid ""
4196 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4197 "that and much more."
4198 msgstr ""
4199
4200 #. type: textblock
4201 #: ../edit/virt-edit.pod:46
4202 msgid "Edit the named files interactively:"
4203 msgstr ""
4204
4205 #. type: verbatim
4206 #: ../edit/virt-edit.pod:48
4207 #, no-wrap
4208 msgid ""
4209 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4210 "\n"
4211 msgstr ""
4212
4213 #. type: verbatim
4214 #: ../edit/virt-edit.pod:50
4215 #, no-wrap
4216 msgid ""
4217 " virt-edit -d mydomain /etc/passwd\n"
4218 "\n"
4219 msgstr ""
4220
4221 #. type: textblock
4222 #: ../edit/virt-edit.pod:52
4223 msgid "For Windows guests, some Windows paths are understood:"
4224 msgstr ""
4225
4226 #. type: verbatim
4227 #: ../edit/virt-edit.pod:54
4228 #, no-wrap
4229 msgid ""
4230 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4231 "\n"
4232 msgstr ""
4233
4234 #. type: textblock
4235 #: ../edit/virt-edit.pod:56
4236 msgid ""
4237 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4238 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4239 msgstr ""
4240
4241 #. type: verbatim
4242 #: ../edit/virt-edit.pod:60
4243 #, no-wrap
4244 msgid ""
4245 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4246 "\n"
4247 msgstr ""
4248
4249 #. type: =item
4250 #: ../edit/virt-edit.pod:81
4251 msgid "B<-b> extension"
4252 msgstr ""
4253
4254 #. type: =item
4255 #: ../edit/virt-edit.pod:83
4256 msgid "B<--backup> extension"
4257 msgstr ""
4258
4259 #. type: textblock
4260 #: ../edit/virt-edit.pod:85
4261 msgid ""
4262 "Create a backup of the original file I<in the guest disk image>.  The backup "
4263 "has the original filename with C<extension> added."
4264 msgstr ""
4265
4266 #. type: textblock
4267 #: ../edit/virt-edit.pod:88
4268 msgid ""
4269 "Usually the first character of C<extension> would be a dot C<.> so you would "
4270 "write:"
4271 msgstr ""
4272
4273 #. type: verbatim
4274 #: ../edit/virt-edit.pod:91
4275 #, no-wrap
4276 msgid ""
4277 " virt-edit -b .orig [etc]\n"
4278 "\n"
4279 msgstr ""
4280
4281 #. type: textblock
4282 #: ../edit/virt-edit.pod:93
4283 msgid "By default, no backup file is made."
4284 msgstr ""
4285
4286 #. type: =item
4287 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4288 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4289 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4290 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4291 msgid "B<-c URI>"
4292 msgstr "B<-c адреса>"
4293
4294 #. type: =item
4295 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4296 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4297 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4298 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4299 msgid "B<--connect URI>"
4300 msgstr "B<--connect адреса>"
4301
4302 #. type: textblock
4303 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4304 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4305 #: ../tools/virt-win-reg.pl:135
4306 msgid ""
4307 "If you specify guest block devices directly, then libvirt is not used at all."
4308 msgstr ""
4309
4310 #. type: textblock
4311 #: ../edit/virt-edit.pod:114
4312 msgid ""
4313 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4314 "off so you cannot see what you are typing.  If you are not worried about "
4315 "Tempest attacks and there is no one else in the room you can specify this "
4316 "flag to see what you are typing."
4317 msgstr ""
4318
4319 #. type: =item
4320 #: ../edit/virt-edit.pod:119
4321 msgid "B<-e> EXPR"
4322 msgstr "B<-e> вираз"
4323
4324 #. type: =item
4325 #: ../edit/virt-edit.pod:121
4326 msgid "B<--expr> EXPR"
4327 msgstr "B<--expr> вираз"
4328
4329 #. type: textblock
4330 #: ../edit/virt-edit.pod:123
4331 msgid ""
4332 "Instead of launching the external editor, non-interactively apply the Perl "
4333 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4334 "EDITING> below."
4335 msgstr ""
4336
4337 #. type: textblock
4338 #: ../edit/virt-edit.pod:127
4339 msgid ""
4340 "Be careful to properly quote the expression to prevent it from being altered "
4341 "by the shell."
4342 msgstr ""
4343
4344 #. type: textblock
4345 #: ../edit/virt-edit.pod:130
4346 msgid "Note that this option is only available when Perl 5 is installed."
4347 msgstr ""
4348
4349 #. type: =item
4350 #: ../edit/virt-edit.pod:132
4351 msgid "B<--format> raw|qcow2|..."
4352 msgstr "B<--format> raw|qcow2|..."
4353
4354 #. type: verbatim
4355 #: ../edit/virt-edit.pod:143
4356 #, no-wrap
4357 msgid ""
4358 " virt-edit --format=raw -a disk.img file\n"
4359 "\n"
4360 msgstr ""
4361
4362 #. type: verbatim
4363 #: ../edit/virt-edit.pod:147
4364 #, no-wrap
4365 msgid ""
4366 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4367 "\n"
4368 msgstr ""
4369
4370 #. type: textblock
4371 #: ../edit/virt-edit.pod:181
4372 msgid "Previous versions of virt-edit allowed you to write either:"
4373 msgstr ""
4374
4375 #. type: verbatim
4376 #: ../edit/virt-edit.pod:187
4377 #, no-wrap
4378 msgid ""
4379 " virt-edit guestname file\n"
4380 "\n"
4381 msgstr ""
4382
4383 #. type: =head1
4384 #: ../edit/virt-edit.pod:195
4385 msgid "NON-INTERACTIVE EDITING"
4386 msgstr "НЕІНТЕРАКТИВНЕ РЕДАГУВАННЯ"
4387
4388 #. type: textblock
4389 #: ../edit/virt-edit.pod:197
4390 msgid ""
4391 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4392 "administrator can interactively edit the file."
4393 msgstr ""
4394
4395 #. type: textblock
4396 #: ../edit/virt-edit.pod:200
4397 msgid ""
4398 "There are two ways also to use C<virt-edit> from scripts in order to make "
4399 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4400 "like this, it's less error-prone to write scripts directly using the "
4401 "libguestfs API and Augeas for configuration file editing.)"
4402 msgstr ""
4403
4404 #. type: textblock
4405 #: ../edit/virt-edit.pod:206
4406 msgid ""
4407 "The first method is to temporarily set C<$EDITOR> to any script or program "
4408 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4409 "update C<tmpfile> in place however it likes."
4410 msgstr ""
4411
4412 #. type: textblock
4413 #: ../edit/virt-edit.pod:210
4414 msgid ""
4415 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4416 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4417 "instances of C<foo> with C<bar> in a file:"
4418 msgstr ""
4419
4420 #. type: verbatim
4421 #: ../edit/virt-edit.pod:214
4422 #, no-wrap
4423 msgid ""
4424 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4425 "\n"
4426 msgstr ""
4427
4428 #. type: textblock
4429 #: ../edit/virt-edit.pod:216
4430 msgid ""
4431 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4432 "For example to delete root's password you could do:"
4433 msgstr ""
4434
4435 #. type: verbatim
4436 #: ../edit/virt-edit.pod:219
4437 #, no-wrap
4438 msgid ""
4439 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4440 "\n"
4441 msgstr ""
4442 " virt-edit -d назва_домену /etc/passwd -e 's/^root:.*?:/root::/'\n"
4443 "\n"
4444
4445 #. type: textblock
4446 #: ../edit/virt-edit.pod:221
4447 msgid ""
4448 "What really happens is that the snippet is evaluated as a Perl expression "
4449 "for each line of the file.  The line, including the final C<\\n>, is passed "
4450 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4451 msgstr ""
4452
4453 #. type: textblock
4454 #: ../edit/virt-edit.pod:226
4455 msgid ""
4456 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4457 "C<apache> user account from the password file you can do:"
4458 msgstr ""
4459
4460 #. type: verbatim
4461 #: ../edit/virt-edit.pod:229
4462 #, no-wrap
4463 msgid ""
4464 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4465 "\n"
4466 msgstr ""
4467 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4468 "\n"
4469
4470 #. type: textblock
4471 #: ../edit/virt-edit.pod:231
4472 msgid ""
4473 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4474 "the end of the file is rather difficult this way since there is no concept "
4475 "of \"last line of the file\" - your expression just doesn't get called "
4476 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4477 "want to do this."
4478 msgstr ""
4479
4480 #. type: textblock
4481 #: ../edit/virt-edit.pod:237
4482 msgid ""
4483 "The variable C<$lineno> contains the current line number.  As is "
4484 "traditional, the first line in the file is number C<1>."
4485 msgstr ""
4486
4487 #. type: textblock
4488 #: ../edit/virt-edit.pod:240
4489 msgid ""
4490 "The return value from the expression is ignored, but the expression may call "
4491 "C<die> in order to abort the whole program, leaving the original file "
4492 "untouched."
4493 msgstr ""
4494
4495 #. type: textblock
4496 #: ../edit/virt-edit.pod:244
4497 msgid ""
4498 "Remember when matching the end of a line that C<$_> may contain the final C<"
4499 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4500 "newline then neither of these.  Thus to match or substitute some text at the "
4501 "end of a line, use this regular expression:"
4502 msgstr ""
4503
4504 #. type: verbatim
4505 #: ../edit/virt-edit.pod:249
4506 #, no-wrap
4507 msgid ""
4508 " /some text(\\r?\\n)?$/\n"
4509 "\n"
4510 msgstr ""
4511 " /якийсь текст(\\r?\\n)?$/\n"
4512 "\n"
4513
4514 #. type: textblock
4515 #: ../edit/virt-edit.pod:251
4516 msgid ""
4517 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4518 "$_> itself (since that would remove all newlines from the file):"
4519 msgstr ""
4520
4521 #. type: verbatim
4522 #: ../edit/virt-edit.pod:255
4523 #, no-wrap
4524 msgid ""
4525 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4526 "\n"
4527 msgstr ""
4528 " my $m = $_; chomp $m; $m =~ /якийсь текст$/\n"
4529 "\n"
4530
4531 #. type: textblock
4532 #: ../edit/virt-edit.pod:259
4533 msgid ""
4534 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4535 "paths (eg. C<E:\\foo\\bar.txt>)."
4536 msgstr ""
4537
4538 #. type: textblock
4539 #: ../edit/virt-edit.pod:278
4540 msgid ""
4541 "The path is resolved case insensitively to locate the file that should be "
4542 "edited."
4543 msgstr ""
4544
4545 #. type: textblock
4546 #: ../edit/virt-edit.pod:299
4547 msgid ""
4548 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4549 "C<virt-edit> doesn't work."
4550 msgstr ""
4551
4552 #. type: textblock
4553 #: ../edit/virt-edit.pod:302
4554 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4555 msgstr ""
4556
4557 #. type: verbatim
4558 #: ../edit/virt-edit.pod:304
4559 #, no-wrap
4560 msgid ""
4561 " guestfish --rw -i -d domname edit /file\n"
4562 "\n"
4563 msgstr ""
4564
4565 #. type: textblock
4566 #: ../edit/virt-edit.pod:306
4567 msgid ""
4568 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4569 "path to the file."
4570 msgstr ""
4571
4572 #. type: textblock
4573 #: ../edit/virt-edit.pod:309
4574 msgid ""
4575 "The command above uses libguestfs's guest inspection feature and so does not "
4576 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4577 "disk images that don't contain guests.  To edit a file on a disk image "
4578 "directly, use:"
4579 msgstr ""
4580
4581 #. type: verbatim
4582 #: ../edit/virt-edit.pod:314
4583 #, no-wrap
4584 msgid ""
4585 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4586 "\n"
4587 msgstr ""
4588
4589 #. type: textblock
4590 #: ../edit/virt-edit.pod:316
4591 msgid ""
4592 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4593 "the disk image to edit, and C</file> is the full path to the file."
4594 msgstr ""
4595
4596 #. type: textblock
4597 #: ../edit/virt-edit.pod:320
4598 msgid ""
4599 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4600 "C<write> or C<upload> instead:"
4601 msgstr ""
4602
4603 #. type: verbatim
4604 #: ../edit/virt-edit.pod:323
4605 #, no-wrap
4606 msgid ""
4607 " guestfish --rw -i -d domname touch /newfile\n"
4608 "\n"
4609 msgstr ""
4610
4611 #. type: verbatim
4612 #: ../edit/virt-edit.pod:325
4613 #, no-wrap
4614 msgid ""
4615 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4616 "\n"
4617 msgstr ""
4618
4619 #. type: verbatim
4620 #: ../edit/virt-edit.pod:327
4621 #, no-wrap
4622 msgid ""
4623 " guestfish --rw -i -d domname upload localfile /newfile\n"
4624 "\n"
4625 msgstr ""
4626
4627 #. type: =head1
4628 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4629 #: ../rescue/virt-rescue.pod:298 ../sparsify/virt-sparsify.pod:232
4630 #: ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4631 msgid "ENVIRONMENT VARIABLES"
4632 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4633
4634 #. type: =item
4635 #: ../edit/virt-edit.pod:333
4636 msgid "C<EDITOR>"
4637 msgstr "C<EDITOR>"
4638
4639 #. type: textblock
4640 #: ../edit/virt-edit.pod:335
4641 msgid ""
4642 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4643 "\"emacs -nw\">"
4644 msgstr ""
4645
4646 #. type: textblock
4647 #: ../edit/virt-edit.pod:338
4648 msgid "If not set, C<vi> is used."
4649 msgstr ""
4650
4651 #. type: textblock
4652 #: ../edit/virt-edit.pod:356
4653 msgid ""
4654 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4655 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4656 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4657 msgstr ""
4658 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4659 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4660 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4661
4662 #. type: textblock
4663 #: ../erlang/examples/guestfs-erlang.pod:5
4664 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4665 msgstr ""
4666
4667 #. type: verbatim
4668 #: ../erlang/examples/guestfs-erlang.pod:9
4669 #, no-wrap
4670 msgid ""
4671 " {ok, G} = guestfs:create(),\n"
4672 " ok = guestfs:add_drive_opts(G, Disk,\n"
4673 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4674 " ok = guestfs:launch(G),\n"
4675 " [Device] = guestfs:list_devices(G),\n"
4676 " ok = guestfs:close(G).\n"
4677 "\n"
4678 msgstr ""
4679
4680 #. type: textblock
4681 #: ../erlang/examples/guestfs-erlang.pod:18
4682 msgid ""
4683 "This manual page documents how to call libguestfs from the Erlang "
4684 "programming language.  This page just documents the differences from the C "
4685 "API and gives some examples.  If you are not familiar with using libguestfs, "
4686 "you also need to read L<guestfs(3)>."
4687 msgstr ""
4688
4689 #. type: =head2
4690 #: ../erlang/examples/guestfs-erlang.pod:23
4691 msgid "OPENING AND CLOSING THE HANDLE"
4692 msgstr ""
4693
4694 #. type: textblock
4695 #: ../erlang/examples/guestfs-erlang.pod:25
4696 msgid ""
4697 "The Erlang bindings are implemented using an external program called C<erl-"
4698 "guestfs>.  This program must be on the current PATH, or else you should "
4699 "specify the full path to the program:"
4700 msgstr ""
4701
4702 #. type: verbatim
4703 #: ../erlang/examples/guestfs-erlang.pod:29
4704 #, no-wrap
4705 msgid ""
4706 " {ok, G} = guestfs:create().\n"
4707 "\n"
4708 msgstr ""
4709
4710 #. type: verbatim
4711 #: ../erlang/examples/guestfs-erlang.pod:31
4712 #, no-wrap
4713 msgid ""
4714 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4715 "\n"
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../erlang/examples/guestfs-erlang.pod:33
4720 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4721 msgstr ""
4722
4723 #. type: textblock
4724 #: ../erlang/examples/guestfs-erlang.pod:36
4725 msgid "To close the handle:"
4726 msgstr ""
4727
4728 #. type: verbatim
4729 #: ../erlang/examples/guestfs-erlang.pod:38
4730 #, no-wrap
4731 msgid ""
4732 " ok = guestfs:close(G).\n"
4733 "\n"
4734 msgstr ""
4735
4736 #. type: =head2
4737 #: ../erlang/examples/guestfs-erlang.pod:40
4738 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4739 msgstr ""
4740
4741 #. type: textblock
4742 #: ../erlang/examples/guestfs-erlang.pod:42
4743 msgid ""
4744 "For functions that take optional arguments, the first arguments are the non-"
4745 "optional ones.  The last argument is a list of tuples supplying the "
4746 "remaining optional arguments."
4747 msgstr ""
4748
4749 #. type: verbatim
4750 #: ../erlang/examples/guestfs-erlang.pod:46
4751 #, no-wrap
4752 msgid ""
4753 " ok = guestfs:add_drive_opts(G, Disk,\n"
4754 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4755 "\n"
4756 msgstr ""
4757
4758 #. type: textblock
4759 #: ../erlang/examples/guestfs-erlang.pod:49
4760 msgid "If the last argument would be an empty list, you can also omit it:"
4761 msgstr ""
4762
4763 #. type: verbatim
4764 #: ../erlang/examples/guestfs-erlang.pod:51
4765 #, no-wrap
4766 msgid ""
4767 " ok = guestfs:add_drive_opts(G, Disk).\n"
4768 "\n"
4769 msgstr ""
4770
4771 #. type: =head2
4772 #: ../erlang/examples/guestfs-erlang.pod:53
4773 msgid "RETURN VALUES AND ERRORS"
4774 msgstr ""
4775
4776 #. type: textblock
4777 #: ../erlang/examples/guestfs-erlang.pod:55
4778 msgid ""
4779 "On success, most functions return a C<Result> term (which could be a list, "
4780 "string, tuple etc.).  If there is nothing for the function to return, then "
4781 "the atom C<ok> is returned."
4782 msgstr ""
4783
4784 #. type: textblock
4785 #: ../erlang/examples/guestfs-erlang.pod:59
4786 msgid "On error, you would see one of the following tuples:"
4787 msgstr ""
4788
4789 #. type: =item
4790 #: ../erlang/examples/guestfs-erlang.pod:63
4791 msgid "C<{error, Msg, Errno}>"
4792 msgstr ""
4793
4794 #. type: textblock
4795 #: ../erlang/examples/guestfs-erlang.pod:65
4796 msgid "This indicates an ordinary error from the function."
4797 msgstr ""
4798
4799 #. type: textblock
4800 #: ../erlang/examples/guestfs-erlang.pod:67
4801 msgid ""
4802 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4803 "(integer)."
4804 msgstr ""
4805
4806 #. type: textblock
4807 #: ../erlang/examples/guestfs-erlang.pod:70
4808 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4809 msgstr ""
4810
4811 #. type: =item
4812 #: ../erlang/examples/guestfs-erlang.pod:72
4813 msgid "C<{unknown, Function}>"
4814 msgstr ""
4815
4816 #. type: textblock
4817 #: ../erlang/examples/guestfs-erlang.pod:74
4818 msgid ""
4819 "This indicates that the function you called is not known.  Generally this "
4820 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4821 "which you should not do."
4822 msgstr ""
4823
4824 #. type: textblock
4825 #: ../erlang/examples/guestfs-erlang.pod:78
4826 msgid "C<Function> is the name of the unknown function."
4827 msgstr ""
4828
4829 #. type: =item
4830 #: ../erlang/examples/guestfs-erlang.pod:80
4831 msgid "C<{unknownarg, Arg}>"
4832 msgstr ""
4833
4834 #. type: textblock
4835 #: ../erlang/examples/guestfs-erlang.pod:82
4836 msgid ""
4837 "This indicates that you called a function with optional arguments, with an "
4838 "unknown argument name."
4839 msgstr ""
4840
4841 #. type: textblock
4842 #: ../erlang/examples/guestfs-erlang.pod:85
4843 msgid "C<Arg> is the name of the unknown argument."
4844 msgstr ""
4845
4846 #. type: =head1
4847 #: ../erlang/examples/guestfs-erlang.pod:89
4848 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4849 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4850 #: ../python/examples/guestfs-python.pod:34
4851 #: ../ruby/examples/guestfs-ruby.pod:28
4852 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4853 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4854
4855 #. type: textblock
4856 #: ../erlang/examples/guestfs-erlang.pod:91
4857 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4858 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4859 #: ../python/examples/guestfs-python.pod:36
4860 #: ../ruby/examples/guestfs-ruby.pod:30
4861 msgid "@EXAMPLE1@"
4862 msgstr "@EXAMPLE1@"
4863
4864 #. type: =head1
4865 #: ../erlang/examples/guestfs-erlang.pod:93
4866 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4867 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4868 #: ../python/examples/guestfs-python.pod:38
4869 #: ../ruby/examples/guestfs-ruby.pod:32
4870 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4871 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4872
4873 #. type: textblock
4874 #: ../erlang/examples/guestfs-erlang.pod:95
4875 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4876 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4877 #: ../python/examples/guestfs-python.pod:40
4878 #: ../ruby/examples/guestfs-ruby.pod:34
4879 msgid "@EXAMPLE2@"
4880 msgstr "@EXAMPLE2@"
4881
4882 #. type: textblock
4883 #: ../erlang/examples/guestfs-erlang.pod:99
4884 msgid ""
4885 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4886 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4887 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4888 msgstr ""
4889
4890 #. type: =head1
4891 #: ../erlang/examples/guestfs-erlang.pod:110
4892 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4893 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4894 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4895 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4896 #: ../inspector/virt-inspector.pod:404 ../java/examples/guestfs-java.pod:58
4897 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4898 #: ../python/examples/guestfs-python.pod:54
4899 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3348
4900 #: ../test-tool/libguestfs-test-tool.pod:106
4901 msgid "AUTHORS"
4902 msgstr "АВТОРИ"
4903
4904 #. type: textblock
4905 #: ../erlang/examples/guestfs-erlang.pod:112
4906 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4907 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4908 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4909 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4910 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4911 #: ../perl/examples/guestfs-perl.pod:54
4912 #: ../python/examples/guestfs-python.pod:56
4913 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3350
4914 #: ../test-tool/libguestfs-test-tool.pod:108
4915 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4916 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4917
4918 #. type: textblock
4919 #: ../erlang/examples/guestfs-erlang.pod:116
4920 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4921 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4922 msgstr ""
4923
4924 #. type: textblock
4925 #: ../erlang/examples/guestfs-erlang.pod:118
4926 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4927 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4928 #: ../perl/examples/guestfs-perl.pod:60
4929 #: ../python/examples/guestfs-python.pod:62
4930 #: ../ruby/examples/guestfs-ruby.pod:56
4931 msgid ""
4932 "The examples in this manual page may be freely copied, modified and "
4933 "distributed without any restrictions."
4934 msgstr ""
4935
4936 #. type: textblock
4937 #: ../erlang/examples/guestfs-erlang.pod:121
4938 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4939 #: ../java/examples/guestfs-java.pod:69
4940 #: ../ocaml/examples/guestfs-ocaml.pod:102
4941 #: ../perl/examples/guestfs-perl.pod:63
4942 #: ../python/examples/guestfs-python.pod:65
4943 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3357
4944 msgid ""
4945 "This library is free software; you can redistribute it and/or modify it "
4946 "under the terms of the GNU Lesser General Public License as published by the "
4947 "Free Software Foundation; either version 2 of the License, or (at your "
4948 "option) any later version."
4949 msgstr ""
4950
4951 #. type: textblock
4952 #: ../erlang/examples/guestfs-erlang.pod:126
4953 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4954 #: ../java/examples/guestfs-java.pod:74
4955 #: ../ocaml/examples/guestfs-ocaml.pod:107
4956 #: ../perl/examples/guestfs-perl.pod:68
4957 #: ../python/examples/guestfs-python.pod:70
4958 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3362
4959 msgid ""
4960 "This library is distributed in the hope that it will be useful, but WITHOUT "
4961 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4962 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4963 "for more details."
4964 msgstr ""
4965
4966 #. type: textblock
4967 #: ../erlang/examples/guestfs-erlang.pod:131
4968 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4969 #: ../java/examples/guestfs-java.pod:79
4970 #: ../ocaml/examples/guestfs-ocaml.pod:112
4971 #: ../perl/examples/guestfs-perl.pod:73
4972 #: ../python/examples/guestfs-python.pod:75
4973 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3367
4974 msgid ""
4975 "You should have received a copy of the GNU Lesser General Public License "
4976 "along with this library; if not, write to the Free Software Foundation, "
4977 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4978 msgstr ""
4979
4980 #. type: textblock
4981 #: ../examples/guestfs-examples.pod:5
4982 msgid "guestfs-examples - Examples of using libguestfs from C"
4983 msgstr ""
4984
4985 #. type: verbatim
4986 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4987 #, no-wrap
4988 msgid ""
4989 " #include <guestfs.h>\n"
4990 " \n"
4991 msgstr ""
4992 " #include <guestfs.h>\n"
4993 " \n"
4994
4995 #. type: verbatim
4996 #: ../examples/guestfs-examples.pod:11
4997 #, no-wrap
4998 msgid ""
4999 " guestfs_h *g = guestfs_create ();\n"
5000 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5001 " guestfs_launch (g);\n"
5002 "\n"
5003 msgstr ""
5004 " guestfs_h *g = guestfs_create ();\n"
5005 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5006 " guestfs_launch (g);\n"
5007 "\n"
5008
5009 #. type: verbatim
5010 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
5011 #, no-wrap
5012 msgid ""
5013 " cc prog.c -o prog -lguestfs\n"
5014 "or:\n"
5015 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5016 "\n"
5017 msgstr ""
5018 " cc prog.c -o prog -lguestfs\n"
5019 "або:\n"
5020 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5021 "\n"
5022
5023 #. type: textblock
5024 #: ../examples/guestfs-examples.pod:21
5025 msgid ""
5026 "This manual page contains examples of calling libguestfs from the C "
5027 "programming language.  If you are not familiar with using libguestfs, you "
5028 "also need to read L<guestfs(3)>."
5029 msgstr ""
5030
5031 #. type: textblock
5032 #: ../examples/guestfs-examples.pod:35
5033 msgid ""
5034 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
5035 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5036 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5037 msgstr ""
5038
5039 #. type: textblock
5040 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
5041 #: ../python/examples/guestfs-python.pod:60
5042 #: ../ruby/examples/guestfs-ruby.pod:54
5043 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
5044 msgstr ""
5045
5046 #. type: =end
5047 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5048 msgid "comment"
5049 msgstr "коментар"
5050
5051 #. type: textblock
5052 #: ../examples/guestfs-recipes.pod:5
5053 msgid ""
5054 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5055 "here.  The only way which works for both sorts of output is to just write "
5056 "the URL directly.  Do NOT use L<...> for URLs."
5057 msgstr ""
5058
5059 #. type: textblock
5060 #: ../examples/guestfs-recipes.pod:9
5061 msgid ""
5062 "We break with tradition here and don't use ALL CAPS for the section "
5063 "headings, as this makes them much easier to read."
5064 msgstr ""
5065
5066 #. type: textblock
5067 #: ../examples/guestfs-recipes.pod:16
5068 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5069 msgstr ""
5070
5071 #. type: textblock
5072 #: ../examples/guestfs-recipes.pod:20
5073 msgid ""
5074 "This page contains recipes for and links to things you can do using "
5075 "libguestfs, L<guestfish(1)> and the virt tools."
5076 msgstr ""
5077
5078 #. type: =head1
5079 #: ../examples/guestfs-recipes.pod:23
5080 msgid "Audit a virtual machine for setuid files"
5081 msgstr ""
5082
5083 #. type: textblock
5084 #: ../examples/guestfs-recipes.pod:25
5085 msgid ""
5086 "The link below contains a small program which can be used to audit a Linux "
5087 "virtual machine to see what setuid and setgid files it contains."
5088 msgstr ""
5089
5090 #. type: textblock
5091 #: ../examples/guestfs-recipes.pod:28
5092 msgid ""
5093 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5094 "files/#content"
5095 msgstr ""
5096
5097 #. type: =head1
5098 #: ../examples/guestfs-recipes.pod:30
5099 msgid "Change the background image in a Windows XP VM"
5100 msgstr ""
5101
5102 #. type: textblock
5103 #: ../examples/guestfs-recipes.pod:32
5104 msgid ""
5105 "The links below explain how to use L<guestfish(1)> to change the background "
5106 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
5107 "be substantially different for each version of Windows."
5108 msgstr ""
5109
5110 #. type: textblock
5111 #: ../examples/guestfs-recipes.pod:37
5112 msgid ""
5113 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5114 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5115 msgstr ""
5116
5117 #. type: =head1
5118 #: ../examples/guestfs-recipes.pod:40
5119 msgid "Cloning a virtual machine (Linux)"
5120 msgstr ""
5121
5122 #. type: textblock
5123 #: ../examples/guestfs-recipes.pod:42
5124 msgid ""
5125 "The guestfish technique described in the link below works well for most "
5126 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5127 "slightly."
5128 msgstr ""
5129
5130 #. type: textblock
5131 #: ../examples/guestfs-recipes.pod:46
5132 msgid ""
5133 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5134 "vm/#content"
5135 msgstr ""
5136
5137 #. type: textblock
5138 #: ../examples/guestfs-recipes.pod:48
5139 msgid ""
5140 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5141 "discussion."
5142 msgstr ""
5143
5144 #. type: textblock
5145 #: ../examples/guestfs-recipes.pod:51
5146 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5147 msgstr ""
5148
5149 #. type: =head1
5150 #: ../examples/guestfs-recipes.pod:53
5151 msgid "Cloning a virtual machine (Windows)"
5152 msgstr ""
5153
5154 #. type: textblock
5155 #: ../examples/guestfs-recipes.pod:55
5156 msgid ""
5157 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5158 "straightforward.  Currently there is code in the Aeolus Oz project which "
5159 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5160 "we may add sysprepping ability."
5161 msgstr ""
5162
5163 #. type: textblock
5164 #: ../examples/guestfs-recipes.pod:60
5165 msgid ""
5166 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5167 "list/2011-May/msg00019.html"
5168 msgstr ""
5169
5170 #. type: =head1
5171 #: ../examples/guestfs-recipes.pod:63
5172 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5173 msgstr ""
5174
5175 #. type: textblock
5176 #: ../examples/guestfs-recipes.pod:65
5177 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5178 msgstr ""
5179
5180 #. type: verbatim
5181 #: ../examples/guestfs-recipes.pod:67
5182 #, no-wrap
5183 msgid ""
5184 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5185 "\n"
5186 msgstr ""
5187
5188 #. type: textblock
5189 #: ../examples/guestfs-recipes.pod:69
5190 msgid "To export just a subdirectory, eg. C</files>, do:"
5191 msgstr ""
5192
5193 #. type: verbatim
5194 #: ../examples/guestfs-recipes.pod:71
5195 #, no-wrap
5196 msgid ""
5197 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5198 "\n"
5199 msgstr ""
5200
5201 #. type: =head1
5202 #: ../examples/guestfs-recipes.pod:73
5203 msgid "Create empty disk images"
5204 msgstr ""
5205
5206 #. type: textblock
5207 #: ../examples/guestfs-recipes.pod:75
5208 msgid ""
5209 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5210 "The useful guide below explains the options available."
5211 msgstr ""
5212
5213 #. type: textblock
5214 #: ../examples/guestfs-recipes.pod:78
5215 msgid ""
5216 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5217 "#content"
5218 msgstr ""
5219
5220 #. type: =head1
5221 #: ../examples/guestfs-recipes.pod:80
5222 msgid "Dump raw filesystem content from inside a disk image or VM"
5223 msgstr ""
5224
5225 #. type: textblock
5226 #: ../examples/guestfs-recipes.pod:82
5227 msgid ""
5228 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5229 "filesystem content from any filesystem in a disk image or a VM (even one "
5230 "which is encrypted or buried inside an LV):"
5231 msgstr ""
5232
5233 #. type: verbatim
5234 #: ../examples/guestfs-recipes.pod:86
5235 #, no-wrap
5236 msgid ""
5237 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5238 "\n"
5239 msgstr ""
5240
5241 #. type: verbatim
5242 #: ../examples/guestfs-recipes.pod:88
5243 #, no-wrap
5244 msgid ""
5245 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5246 "\n"
5247 msgstr ""
5248
5249 #. type: textblock
5250 #: ../examples/guestfs-recipes.pod:90
5251 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5252 msgstr ""
5253
5254 #. type: =head1
5255 #: ../examples/guestfs-recipes.pod:92
5256 msgid "Edit grub configuration in a VM"
5257 msgstr ""
5258
5259 #. type: textblock
5260 #: ../examples/guestfs-recipes.pod:94
5261 msgid "You can use this to:"
5262 msgstr ""
5263
5264 #. type: textblock
5265 #: ../examples/guestfs-recipes.pod:100
5266 msgid "Fix a virtual machine that does not boot."
5267 msgstr ""
5268
5269 #. type: textblock
5270 #: ../examples/guestfs-recipes.pod:104
5271 msgid "Change which kernel is used to boot the VM."
5272 msgstr ""
5273
5274 #. type: textblock
5275 #: ../examples/guestfs-recipes.pod:108
5276 msgid "Change kernel command line options."
5277 msgstr ""
5278
5279 #. type: textblock
5280 #: ../examples/guestfs-recipes.pod:112
5281 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5282 msgstr ""
5283
5284 #. type: verbatim
5285 #: ../examples/guestfs-recipes.pod:114
5286 #, no-wrap
5287 msgid ""
5288 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5289 "\n"
5290 msgstr ""
5291
5292 #. type: textblock
5293 #: ../examples/guestfs-recipes.pod:116
5294 msgid ""
5295 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5296 "this:"
5297 msgstr ""
5298
5299 #. type: verbatim
5300 #: ../examples/guestfs-recipes.pod:119
5301 #, no-wrap
5302 msgid ""
5303 " virt-rescue -d BrokenGuest\n"
5304 "\n"
5305 msgstr ""
5306
5307 #. type: =head1
5308 #: ../examples/guestfs-recipes.pod:121
5309 msgid "Export any directory from a VM"
5310 msgstr ""
5311
5312 #. type: textblock
5313 #: ../examples/guestfs-recipes.pod:123
5314 msgid ""
5315 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5316 msgstr ""
5317
5318 #. type: verbatim
5319 #: ../examples/guestfs-recipes.pod:126
5320 #, no-wrap
5321 msgid ""
5322 " virt-copy-out -d Guest /home .\n"
5323 "\n"
5324 msgstr ""
5325
5326 #. type: textblock
5327 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5328 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5329 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5330 #: ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758
5331 #: ../src/guestfs-actions.pod:3317 ../src/guestfs.pod:1685
5332 #: ../tools/virt-win-reg.pl:717
5333 msgid "Notes:"
5334 msgstr "Нотатки:"
5335
5336 #. type: textblock
5337 #: ../examples/guestfs-recipes.pod:134
5338 msgid ""
5339 "The final dot of the command is not a printing error.  It means we want to "
5340 "copy out to the current directory."
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../examples/guestfs-recipes.pod:139
5345 msgid "This creates a directory called C<home> under the current directory."
5346 msgstr ""
5347
5348 #. type: textblock
5349 #: ../examples/guestfs-recipes.pod:143
5350 msgid ""
5351 "If the guest is a Windows guest then you can use drive letters and "
5352 "backslashes, but you must prefix the path with C<win:> and quote it to "
5353 "protect it from the shell, like this:"
5354 msgstr ""
5355
5356 #. type: verbatim
5357 #: ../examples/guestfs-recipes.pod:147
5358 #, no-wrap
5359 msgid ""
5360 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5361 "\n"
5362 msgstr ""
5363
5364 #. type: textblock
5365 #: ../examples/guestfs-recipes.pod:149
5366 msgid "To get the output as a compressed tarball, do:"
5367 msgstr ""
5368
5369 #. type: verbatim
5370 #: ../examples/guestfs-recipes.pod:151
5371 #, no-wrap
5372 msgid ""
5373 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5374 "\n"
5375 msgstr ""
5376
5377 #. type: textblock
5378 #: ../examples/guestfs-recipes.pod:153
5379 msgid ""
5380 "Although it sounds tempting, this is usually not a reliable way to get a "
5381 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5382 "org/FAQ.html#backup"
5383 msgstr ""
5384
5385 #. type: =head1
5386 #: ../examples/guestfs-recipes.pod:157
5387 msgid "Find out which user is using the most space"
5388 msgstr ""
5389
5390 #. type: textblock
5391 #: ../examples/guestfs-recipes.pod:159
5392 msgid ""
5393 "This simple script examines a Linux guest to find out which user is using "
5394 "the most space in their home directory:"
5395 msgstr ""
5396
5397 #. type: verbatim
5398 #: ../examples/guestfs-recipes.pod:162
5399 #, no-wrap
5400 msgid ""
5401 " #!/bin/sh -\n"
5402 " \n"
5403 msgstr ""
5404
5405 #. type: verbatim
5406 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5407 #, no-wrap
5408 msgid ""
5409 " set -e\n"
5410 " \n"
5411 msgstr ""
5412
5413 #. type: verbatim
5414 #: ../examples/guestfs-recipes.pod:166
5415 #, no-wrap
5416 msgid ""
5417 " vm=\"$1\"\n"
5418 " dir=/home\n"
5419 " \n"
5420 msgstr ""
5421
5422 #. type: verbatim
5423 #: ../examples/guestfs-recipes.pod:169
5424 #, no-wrap
5425 msgid ""
5426 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5427 " \n"
5428 msgstr ""
5429
5430 #. type: verbatim
5431 #: ../examples/guestfs-recipes.pod:171
5432 #, no-wrap
5433 msgid ""
5434 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5435 "     echo -n \"$dir/$d\"\n"
5436 "     echo -ne '\\t'\n"
5437 "     guestfish --remote du \"$dir/$d\";\n"
5438 " done | sort -nr -k 2\n"
5439 " \n"
5440 msgstr ""
5441
5442 #. type: verbatim
5443 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5444 #, no-wrap
5445 msgid ""
5446 " guestfish --remote exit\n"
5447 "\n"
5448 msgstr ""
5449
5450 #. type: =head1
5451 #: ../examples/guestfs-recipes.pod:179
5452 msgid "Get DHCP address from a VM"
5453 msgstr ""
5454
5455 #. type: textblock
5456 #: ../examples/guestfs-recipes.pod:181
5457 msgid ""
5458 "The link below explains the many different possible techniques for getting "
5459 "the last assigned DHCP address of a virtual machine."
5460 msgstr ""
5461
5462 #. type: textblock
5463 #: ../examples/guestfs-recipes.pod:184
5464 msgid ""
5465 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5466 "a-virtual-machine-disk-image/#content"
5467 msgstr ""
5468
5469 #. type: textblock
5470 #: ../examples/guestfs-recipes.pod:186
5471 msgid ""
5472 "In the libguestfs source examples directory you will find the latest version "
5473 "of the C<virt-dhcp-address.c> program."
5474 msgstr ""
5475
5476 #. type: =head1
5477 #: ../examples/guestfs-recipes.pod:189
5478 msgid "Get the operating system product name string"
5479 msgstr ""
5480
5481 #. type: textblock
5482 #: ../examples/guestfs-recipes.pod:191
5483 msgid "Save the following script into a file called C<product-name.sh>:"
5484 msgstr ""
5485
5486 #. type: verbatim
5487 #: ../examples/guestfs-recipes.pod:193
5488 #, no-wrap
5489 msgid ""
5490 " #!/bin/sh -\n"
5491 " set -e\n"
5492 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5493 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5494 " guestfish --remote inspect-get-product-name \"$root\"\n"
5495 " guestfish --remote exit\n"
5496 "\n"
5497 msgstr ""
5498
5499 #. type: textblock
5500 #: ../examples/guestfs-recipes.pod:200
5501 msgid "Make the script executable and run it on a named guest:"
5502 msgstr ""
5503
5504 #. type: verbatim
5505 #: ../examples/guestfs-recipes.pod:202
5506 #, no-wrap
5507 msgid ""
5508 " # product-name.sh RHEL60x64\n"
5509 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5510 "\n"
5511 msgstr ""
5512
5513 #. type: textblock
5514 #: ../examples/guestfs-recipes.pod:205
5515 msgid ""
5516 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5517 "C<xpath> command line tool or from your favourite programming language:"
5518 msgstr ""
5519
5520 #. type: verbatim
5521 #: ../examples/guestfs-recipes.pod:209
5522 #, no-wrap
5523 msgid ""
5524 " # virt-inspector RHEL60x64 > xml\n"
5525 " # xpath '//product_name' < xml\n"
5526 " Found 1 nodes:\n"
5527 " -- NODE --\n"
5528 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5529 "\n"
5530 msgstr ""
5531
5532 #. type: =head1
5533 #: ../examples/guestfs-recipes.pod:215
5534 msgid "Get the default boot kernel for a Linux VM"
5535 msgstr ""
5536
5537 #. type: textblock
5538 #: ../examples/guestfs-recipes.pod:217
5539 msgid ""
5540 "The link below contains a program to print the default boot kernel for a "
5541 "Linux VM."
5542 msgstr ""
5543
5544 #. type: textblock
5545 #: ../examples/guestfs-recipes.pod:220
5546 msgid ""
5547 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5548 "kernel-for-a-vm/#content"
5549 msgstr ""
5550
5551 #. type: textblock
5552 #: ../examples/guestfs-recipes.pod:222
5553 msgid ""
5554 "It uses Augeas, and the technique is generally applicable for many different "
5555 "tasks, such as:"
5556 msgstr ""
5557
5558 #. type: textblock
5559 #: ../examples/guestfs-recipes.pod:229
5560 msgid "listing the user accounts in the guest"
5561 msgstr ""
5562
5563 #. type: textblock
5564 #: ../examples/guestfs-recipes.pod:233
5565 msgid "what repositories is it configured to use"
5566 msgstr ""
5567
5568 #. type: textblock
5569 #: ../examples/guestfs-recipes.pod:237
5570 msgid "what NTP servers does it connect to"
5571 msgstr ""
5572
5573 #. type: textblock
5574 #: ../examples/guestfs-recipes.pod:241
5575 msgid "what were the boot messages last time it booted"
5576 msgstr ""
5577
5578 #. type: textblock
5579 #: ../examples/guestfs-recipes.pod:245
5580 msgid "listing who was logged in recently"
5581 msgstr ""
5582
5583 #. type: textblock
5584 #: ../examples/guestfs-recipes.pod:249
5585 msgid "http://augeas.net/"
5586 msgstr ""
5587
5588 #. type: =head1
5589 #: ../examples/guestfs-recipes.pod:251
5590 msgid "Install RPMs in a guest"
5591 msgstr ""
5592
5593 #. type: textblock
5594 #: ../examples/guestfs-recipes.pod:253
5595 msgid ""
5596 "The link below contains a method to install RPMs in a guest.  In fact the "
5597 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5598 "installs them next time the guest is booted.  You could use this technique "
5599 "to install vital security updates in an offline guest."
5600 msgstr ""
5601
5602 #. type: textblock
5603 #: ../examples/guestfs-recipes.pod:259
5604 msgid ""
5605 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5606 msgstr ""
5607
5608 #. type: =head1
5609 #: ../examples/guestfs-recipes.pod:261
5610 msgid "List applications installed in a VM"
5611 msgstr ""
5612
5613 #. type: textblock
5614 #: ../examples/guestfs-recipes.pod:263
5615 msgid "Save the following to a file C<list-apps.sh>:"
5616 msgstr ""
5617
5618 #. type: verbatim
5619 #: ../examples/guestfs-recipes.pod:265
5620 #, no-wrap
5621 msgid ""
5622 " #!/bin/sh -\n"
5623 " set -e\n"
5624 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5625 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5626 " guestfish --remote inspect-list-applications \"$root\"\n"
5627 " guestfish --remote exit\n"
5628 "\n"
5629 msgstr ""
5630
5631 #. type: textblock
5632 #: ../examples/guestfs-recipes.pod:272
5633 msgid ""
5634 "Make the file executable and then you can run it on any named virtual "
5635 "machine:"
5636 msgstr ""
5637
5638 #. type: verbatim
5639 #: ../examples/guestfs-recipes.pod:275
5640 #, no-wrap
5641 msgid ""
5642 " # list-apps.sh WinGuest\n"
5643 " [0] = {\n"
5644 "   app_name: Mozilla Firefox (3.6.12)\n"
5645 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5646 "   app_epoch: 0\n"
5647 "   app_version: 3.6.12 (en-GB)\n"
5648 "   app_release:\n"
5649 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5650 "   app_trans_path:\n"
5651 "   app_publisher: Mozilla\n"
5652 "   app_url: http://www.mozilla.com/en-GB/\n"
5653 "   app_source_package:\n"
5654 "   app_summary:\n"
5655 "   app_description: Mozilla Firefox\n"
5656 " }\n"
5657 " [1] = {\n"
5658 "   app_name: VLC media player\n"
5659 "   app_display_name: VLC media player 1.1.5\n"
5660 "   app_epoch: 0\n"
5661 "   app_version: 1.1.5\n"
5662 "   app_release:\n"
5663 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5664 "   app_trans_path:\n"
5665 "   app_publisher: VideoLAN\n"
5666 "   app_url: http://www.videolan.org/\n"
5667 "   app_source_package:\n"
5668 "   app_summary:\n"
5669 "   app_description:\n"
5670 " }\n"
5671 "\n"
5672 msgstr ""
5673
5674 #. type: textblock
5675 #: ../examples/guestfs-recipes.pod:305
5676 msgid ""
5677 "If you want to run the script on disk images (instead of libvirt virtual "
5678 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5679 ">."
5680 msgstr ""
5681
5682 #. type: =head1
5683 #: ../examples/guestfs-recipes.pod:309
5684 msgid "List files and directories in a VM"
5685 msgstr ""
5686
5687 #. type: textblock
5688 #: ../examples/guestfs-recipes.pod:311
5689 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5690 msgstr ""
5691
5692 #. type: verbatim
5693 #: ../examples/guestfs-recipes.pod:313
5694 #, no-wrap
5695 msgid ""
5696 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5697 "\n"
5698 msgstr ""
5699
5700 #. type: =head1
5701 #: ../examples/guestfs-recipes.pod:315
5702 msgid "List services in a Windows VM"
5703 msgstr ""
5704
5705 #. type: textblock
5706 #: ../examples/guestfs-recipes.pod:317
5707 msgid ""
5708 "The link below contains a script that can be used to list out the services "
5709 "from a Windows VM, and whether those services run at boot time or are loaded "
5710 "on demand."
5711 msgstr ""
5712
5713 #. type: textblock
5714 #: ../examples/guestfs-recipes.pod:321
5715 msgid ""
5716 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5717 "#content"
5718 msgstr ""
5719
5720 #. type: =head1
5721 #: ../examples/guestfs-recipes.pod:323
5722 msgid "Make a disk image sparse"
5723 msgstr ""
5724
5725 #. type: textblock
5726 #: ../examples/guestfs-recipes.pod:325
5727 msgid ""
5728 "The link below contains some guides for making a disk image sparse (or "
5729 "reintroducing sparseness)."
5730 msgstr ""
5731
5732 #. type: textblock
5733 #: ../examples/guestfs-recipes.pod:328
5734 msgid ""
5735 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5736 msgstr ""
5737
5738 #. type: =head1
5739 #: ../examples/guestfs-recipes.pod:330
5740 msgid "Monitor disk usage over time"
5741 msgstr ""
5742
5743 #. type: textblock
5744 #: ../examples/guestfs-recipes.pod:332
5745 msgid ""
5746 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5747 "The link below contains a guide."
5748 msgstr ""
5749
5750 #. type: textblock
5751 #: ../examples/guestfs-recipes.pod:335
5752 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5753 msgstr ""
5754
5755 #. type: =head1
5756 #: ../examples/guestfs-recipes.pod:337
5757 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5758 msgstr ""
5759
5760 #. type: textblock
5761 #: ../examples/guestfs-recipes.pod:339
5762 msgid ""
5763 "L<guestfish(1)> plus the tools described in the link below can be used to "
5764 "read out the Windows Event Log from any virtual machine running Windows "
5765 "Vista or a later version."
5766 msgstr ""
5767
5768 #. type: textblock
5769 #: ../examples/guestfs-recipes.pod:343
5770 msgid ""
5771 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5772 "guestfish/#content"
5773 msgstr ""
5774
5775 #. type: =head1
5776 #: ../examples/guestfs-recipes.pod:345
5777 msgid "Remove root password (Linux)"
5778 msgstr ""
5779
5780 #. type: textblock
5781 #: ../examples/guestfs-recipes.pod:347
5782 msgid ""
5783 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5784 "files.  One use is to remove the root password from a Linux guest:"
5785 msgstr ""
5786
5787 #. type: verbatim
5788 #: ../examples/guestfs-recipes.pod:350
5789 #, no-wrap
5790 msgid ""
5791 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5792 "\n"
5793 msgstr ""
5794
5795 #. type: =head1
5796 #: ../examples/guestfs-recipes.pod:352
5797 msgid "Remove Administrator password (Windows)"
5798 msgstr ""
5799
5800 #. type: textblock
5801 #: ../examples/guestfs-recipes.pod:354
5802 msgid ""
5803 "The link below contains one technique for removing the Administrator "
5804 "password from a Windows VM, or to be more precise, it gives you a command "
5805 "prompt the next time you log in which you can use to bypass any security:"
5806 msgstr ""
5807
5808 #. type: textblock
5809 #: ../examples/guestfs-recipes.pod:359
5810 msgid ""
5811 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5812 "administrator-password-with-guestfish/"
5813 msgstr ""
5814
5815 #. type: =head1
5816 #: ../examples/guestfs-recipes.pod:361
5817 msgid "Unpack a live CD"
5818 msgstr ""
5819
5820 #. type: textblock
5821 #: ../examples/guestfs-recipes.pod:363
5822 msgid ""
5823 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5824 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5825 "layers, as outlined in the guide below."
5826 msgstr ""
5827
5828 #. type: textblock
5829 #: ../examples/guestfs-recipes.pod:367
5830 msgid ""
5831 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5832 "cd/#content"
5833 msgstr ""
5834
5835 #. type: =head1
5836 #: ../examples/guestfs-recipes.pod:369
5837 msgid "Uploading and downloading files"
5838 msgstr ""
5839
5840 #. type: textblock
5841 #: ../examples/guestfs-recipes.pod:371
5842 msgid ""
5843 "The link below contains general tips on uploading (copying in)  and "
5844 "downloading (copying out) files from VMs."
5845 msgstr ""
5846
5847 #. type: textblock
5848 #: ../examples/guestfs-recipes.pod:374
5849 msgid ""
5850 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5851 msgstr ""
5852
5853 #. type: =head1
5854 #: ../examples/guestfs-recipes.pod:376
5855 msgid "Use libguestfs tools on VMware ESX guests"
5856 msgstr ""
5857
5858 #. type: textblock
5859 #: ../examples/guestfs-recipes.pod:378
5860 msgid ""
5861 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5862 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5863 msgstr ""
5864
5865 #. type: textblock
5866 #: ../examples/guestfs-recipes.pod:382
5867 msgid ""
5868 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5869 "guests/#content"
5870 msgstr ""
5871
5872 #. type: textblock
5873 #: ../examples/guestfs-recipes.pod:386
5874 msgid ""
5875 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5876 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5877 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5878 msgstr ""
5879
5880 #. type: textblock
5881 #: ../examples/guestfs-recipes.pod:403
5882 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5883 msgstr ""
5884
5885 #. type: =head2
5886 #: ../fish/guestfish-actions.pod:1
5887 msgid "add-cdrom"
5888 msgstr ""
5889
5890 #. type: verbatim
5891 #: ../fish/guestfish-actions.pod:3
5892 #, no-wrap
5893 msgid ""
5894 " add-cdrom filename\n"
5895 "\n"
5896 msgstr ""
5897
5898 #. type: textblock
5899 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5900 msgid "This function adds a virtual CD-ROM disk image to the guest."
5901 msgstr ""
5902
5903 #. type: textblock
5904 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5905 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5906 msgstr ""
5907
5908 #. type: textblock
5909 #: ../fish/guestfish-actions.pod:15
5910 msgid ""
5911 "This call checks for the existence of C<filename>.  This stops you from "
5912 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5913 "and C<http:> URLs.  To specify those, use the general L</config> call "
5914 "instead."
5915 msgstr ""
5916
5917 #. type: textblock
5918 #: ../fish/guestfish-actions.pod:22
5919 msgid ""
5920 "If you just want to add an ISO file (often you use this as an efficient way "
5921 "to transfer large files into the guest), then you should probably use L</add-"
5922 "drive-ro> instead."
5923 msgstr ""
5924
5925 #. type: textblock
5926 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
5927 #: ../fish/guestfish-actions.pod:228
5928 msgid ""
5929 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5930 "instead."
5931 msgstr ""
5932
5933 #. type: textblock
5934 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
5935 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
5936 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
5937 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
5938 #: ../fish/guestfish-actions.pod:3284 ../fish/guestfish-actions.pod:3595
5939 #: ../fish/guestfish-actions.pod:3643 ../fish/guestfish-actions.pod:4561
5940 #: ../fish/guestfish-actions.pod:4581 ../fish/guestfish-actions.pod:4600
5941 #: ../fish/guestfish-actions.pod:4638 ../fish/guestfish-actions.pod:5287
5942 #: ../fish/guestfish-actions.pod:5390 ../src/guestfs-actions.pod:10
5943 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
5944 #: ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637
5945 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419
5946 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5076
5947 #: ../src/guestfs-actions.pod:5598 ../src/guestfs-actions.pod:5698
5948 #: ../src/guestfs-actions.pod:6994 ../src/guestfs-actions.pod:7035
5949 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7126
5950 #: ../src/guestfs-actions.pod:8058 ../src/guestfs-actions.pod:8167
5951 #: ../src/guestfs-actions.pod:8347
5952 msgid ""
5953 "Deprecated functions will not be removed from the API, but the fact that "
5954 "they are deprecated indicates that there are problems with correct use of "
5955 "these functions."
5956 msgstr ""
5957
5958 #. type: =head2
5959 #: ../fish/guestfish-actions.pod:35
5960 msgid "add-domain"
5961 msgstr "add-domain"
5962
5963 #. type: =head2
5964 #: ../fish/guestfish-actions.pod:37
5965 msgid "domain"
5966 msgstr "домен"
5967
5968 #. type: verbatim
5969 #: ../fish/guestfish-actions.pod:39
5970 #, no-wrap
5971 msgid ""
5972 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] [live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
5973 "\n"
5974 msgstr ""
5975
5976 #. type: textblock
5977 #: ../fish/guestfish-actions.pod:41
5978 msgid ""
5979 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5980 "It works by connecting to libvirt, requesting the domain and domain XML from "
5981 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5982 msgstr ""
5983
5984 #. type: textblock
5985 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
5986 msgid ""
5987 "The number of disks added is returned.  This operation is atomic: if an "
5988 "error is returned, then no disks are added."
5989 msgstr ""
5990
5991 #. type: textblock
5992 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
5993 msgid ""
5994 "This function does some minimal checks to make sure the libvirt domain is "
5995 "not running (unless C<readonly> is true).  In a future version we will try "
5996 "to acquire the libvirt lock on each disk."
5997 msgstr ""
5998
5999 #. type: textblock
6000 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6001 msgid ""
6002 "Disks must be accessible locally.  This often means that adding disks from a "
6003 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6004 "unless those disks are accessible via the same device path locally too."
6005 msgstr ""
6006
6007 #. type: textblock
6008 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6009 msgid ""
6010 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6011 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6012 "libvirt URI (or one set through an environment variable, see the libvirt "
6013 "documentation for full details)."
6014 msgstr ""
6015
6016 #. type: textblock
6017 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6018 msgid ""
6019 "The optional C<live> flag controls whether this call will try to connect to "
6020 "a running virtual machine C<guestfsd> process if it sees a suitable "
6021 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6022 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6023 "DAEMONS> for more information."
6024 msgstr ""
6025
6026 #. type: textblock
6027 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6028 msgid ""
6029 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6030 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6031 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6032 "as usual."
6033 msgstr ""
6034
6035 #. type: textblock
6036 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6037 msgid ""
6038 "The optional C<readonlydisk> parameter controls what we do for disks which "
6039 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
6040 msgstr ""
6041
6042 #. type: =item
6043 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6044 msgid "readonlydisk = \"error\""
6045 msgstr ""
6046
6047 #. type: textblock
6048 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
6049 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
6050 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6051 msgid "If C<readonly> is false:"
6052 msgstr ""
6053
6054 #. type: textblock
6055 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6056 msgid ""
6057 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
6058 "E<gt> flag is found."
6059 msgstr ""
6060
6061 #. type: textblock
6062 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
6063 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
6064 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6065 msgid "If C<readonly> is true:"
6066 msgstr ""
6067
6068 #. type: textblock
6069 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
6070 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
6071 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6072 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6073 msgstr ""
6074
6075 #. type: =item
6076 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6077 msgid "readonlydisk = \"read\""
6078 msgstr ""
6079
6080 #. type: textblock
6081 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6082 msgid ""
6083 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
6084 "are added read/write."
6085 msgstr ""
6086
6087 #. type: =item
6088 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6089 msgid "readonlydisk = \"write\" (default)"
6090 msgstr ""
6091
6092 #. type: textblock
6093 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6094 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6095 msgstr ""
6096
6097 #. type: =item
6098 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6099 msgid "readonlydisk = \"ignore\""
6100 msgstr ""
6101
6102 #. type: textblock
6103 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6104 msgid "If C<readonly> is true or false:"
6105 msgstr ""
6106
6107 #. type: textblock
6108 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6109 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6110 msgstr ""
6111
6112 #. type: textblock
6113 #: ../fish/guestfish-actions.pod:122
6114 msgid ""
6115 "The other optional parameters are passed directly through to L</add-drive-"
6116 "opts>."
6117 msgstr ""
6118
6119 #. type: textblock
6120 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6121 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
6122 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6123 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6124 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6125 #: ../fish/guestfish-actions.pod:3333 ../fish/guestfish-actions.pod:3496
6126 #: ../fish/guestfish-actions.pod:3631
6127 msgid ""
6128 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6129 msgstr ""
6130
6131 #. type: =head2
6132 #: ../fish/guestfish-actions.pod:127
6133 msgid "add-drive"
6134 msgstr "add-drive"
6135
6136 #. type: verbatim
6137 #: ../fish/guestfish-actions.pod:129
6138 #, no-wrap
6139 msgid ""
6140 " add-drive filename\n"
6141 "\n"
6142 msgstr ""
6143 " add-drive назва_файла\n"
6144 "\n"
6145
6146 #. type: textblock
6147 #: ../fish/guestfish-actions.pod:131
6148 msgid ""
6149 "This function is the equivalent of calling L</add-drive-opts> with no "
6150 "optional parameters, so the disk is added writable, with the format being "
6151 "detected automatically."
6152 msgstr ""
6153
6154 #. type: textblock
6155 #: ../fish/guestfish-actions.pod:135
6156 msgid ""
6157 "Automatic detection of the format opens you up to a potential security hole "
6158 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6159 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6160 "you should think about replacing calls to this function with calls to L</add-"
6161 "drive-opts>, and specifying the format."
6162 msgstr ""
6163
6164 #. type: =head2
6165 #: ../fish/guestfish-actions.pod:142
6166 msgid "add-drive-opts"
6167 msgstr "add-drive-opts"
6168
6169 #. type: =head2
6170 #: ../fish/guestfish-actions.pod:144
6171 msgid "add"
6172 msgstr "add"
6173
6174 #. type: verbatim
6175 #: ../fish/guestfish-actions.pod:146
6176 #, no-wrap
6177 msgid ""
6178 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] [name:..]\n"
6179 "\n"
6180 msgstr ""
6181
6182 #. type: textblock
6183 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6184 msgid ""
6185 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6186 "The first time you call this function, the disk appears as C</dev/sda>, the "
6187 "second time as C</dev/sdb>, and so on."
6188 msgstr ""
6189
6190 #. type: textblock
6191 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6192 msgid ""
6193 "You don't necessarily need to be root when using libguestfs.  However you "
6194 "obviously do need sufficient permissions to access the filename for whatever "
6195 "operations you want to perform (ie. read access if you just want to read the "
6196 "image or write access if you want to modify the image)."
6197 msgstr ""
6198
6199 #. type: textblock
6200 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6201 msgid "This call checks that C<filename> exists."
6202 msgstr ""
6203
6204 #. type: textblock
6205 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3295
6206 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5113
6207 msgid "The optional arguments are:"
6208 msgstr ""
6209
6210 #. type: =item
6211 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6212 msgid "C<readonly>"
6213 msgstr "C<readonly>"
6214
6215 #. type: textblock
6216 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6217 msgid ""
6218 "If true then the image is treated as read-only.  Writes are still allowed, "
6219 "but they are stored in a temporary snapshot overlay which is discarded at "
6220 "the end.  The disk that you add is not modified."
6221 msgstr ""
6222
6223 #. type: =item
6224 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6225 msgid "C<format>"
6226 msgstr "C<format>"
6227
6228 #. type: textblock
6229 #: ../fish/guestfish-actions.pod:173
6230 msgid ""
6231 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6232 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6233 "include C<raw> and C<qcow2>."
6234 msgstr ""
6235
6236 #. type: textblock
6237 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6238 msgid ""
6239 "Automatic detection of the format opens you up to a potential security hole "
6240 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6241 "RHBZ#642934.  Specifying the format closes this security hole."
6242 msgstr ""
6243
6244 #. type: =item
6245 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6246 msgid "C<iface>"
6247 msgstr "C<iface>"
6248
6249 #. type: textblock
6250 #: ../fish/guestfish-actions.pod:184
6251 msgid ""
6252 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6253 "add-drive-with-if> call (q.v.)"
6254 msgstr ""
6255
6256 #. type: =item
6257 #: ../fish/guestfish-actions.pod:187 ../src/guestfs-actions.pod:247
6258 msgid "C<name>"
6259 msgstr ""
6260
6261 #. type: textblock
6262 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6263 msgid ""
6264 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6265 "a hint to the guest inspection process if it is available."
6266 msgstr ""
6267
6268 #. type: =head2
6269 #: ../fish/guestfish-actions.pod:196
6270 msgid "add-drive-ro"
6271 msgstr "add-drive-ro"
6272
6273 #. type: =head2
6274 #: ../fish/guestfish-actions.pod:198
6275 msgid "add-ro"
6276 msgstr "add-ro"
6277
6278 #. type: verbatim
6279 #: ../fish/guestfish-actions.pod:200
6280 #, no-wrap
6281 msgid ""
6282 " add-drive-ro filename\n"
6283 "\n"
6284 msgstr ""
6285
6286 #. type: textblock
6287 #: ../fish/guestfish-actions.pod:202
6288 msgid ""
6289 "This function is the equivalent of calling L</add-drive-opts> with the "
6290 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6291 "is added read-only, with the format being detected automatically."
6292 msgstr ""
6293
6294 #. type: =head2
6295 #: ../fish/guestfish-actions.pod:207
6296 msgid "add-drive-ro-with-if"
6297 msgstr ""
6298
6299 #. type: verbatim
6300 #: ../fish/guestfish-actions.pod:209
6301 #, no-wrap
6302 msgid ""
6303 " add-drive-ro-with-if filename iface\n"
6304 "\n"
6305 msgstr ""
6306
6307 #. type: textblock
6308 #: ../fish/guestfish-actions.pod:211
6309 msgid ""
6310 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6311 "interface emulation to use at run time."
6312 msgstr ""
6313
6314 #. type: =head2
6315 #: ../fish/guestfish-actions.pod:221
6316 msgid "add-drive-with-if"
6317 msgstr ""
6318
6319 #. type: verbatim
6320 #: ../fish/guestfish-actions.pod:223
6321 #, no-wrap
6322 msgid ""
6323 " add-drive-with-if filename iface\n"
6324 "\n"
6325 msgstr ""
6326
6327 #. type: textblock
6328 #: ../fish/guestfish-actions.pod:225
6329 msgid ""
6330 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6331 "interface emulation to use at run time."
6332 msgstr ""
6333
6334 #. type: =head2
6335 #: ../fish/guestfish-actions.pod:235
6336 msgid "aug-clear"
6337 msgstr ""
6338
6339 #. type: verbatim
6340 #: ../fish/guestfish-actions.pod:237
6341 #, no-wrap
6342 msgid ""
6343 " aug-clear augpath\n"
6344 "\n"
6345 msgstr ""
6346
6347 #. type: textblock
6348 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6349 msgid ""
6350 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6351 "L<augtool(1)> C<clear> command."
6352 msgstr ""
6353
6354 #. type: =head2
6355 #: ../fish/guestfish-actions.pod:242
6356 msgid "aug-close"
6357 msgstr ""
6358
6359 #. type: verbatim
6360 #: ../fish/guestfish-actions.pod:244
6361 #, no-wrap
6362 msgid ""
6363 " aug-close\n"
6364 "\n"
6365 msgstr ""
6366
6367 #. type: textblock
6368 #: ../fish/guestfish-actions.pod:246
6369 msgid ""
6370 "Close the current Augeas handle and free up any resources used by it.  After "
6371 "calling this, you have to call L</aug-init> again before you can use any "
6372 "other Augeas functions."
6373 msgstr ""
6374
6375 #. type: =head2
6376 #: ../fish/guestfish-actions.pod:251
6377 msgid "aug-defnode"
6378 msgstr ""
6379
6380 #. type: verbatim
6381 #: ../fish/guestfish-actions.pod:253
6382 #, no-wrap
6383 msgid ""
6384 " aug-defnode name expr val\n"
6385 "\n"
6386 msgstr ""
6387
6388 #. type: textblock
6389 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6390 msgid ""
6391 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6392 msgstr ""
6393
6394 #. type: textblock
6395 #: ../fish/guestfish-actions.pod:258
6396 msgid ""
6397 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6398 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6399 "containing that single node."
6400 msgstr ""
6401
6402 #. type: textblock
6403 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6404 msgid ""
6405 "On success this returns a pair containing the number of nodes in the "
6406 "nodeset, and a boolean flag if a node was created."
6407 msgstr ""
6408
6409 #. type: =head2
6410 #: ../fish/guestfish-actions.pod:266
6411 msgid "aug-defvar"
6412 msgstr ""
6413
6414 #. type: verbatim
6415 #: ../fish/guestfish-actions.pod:268
6416 #, no-wrap
6417 msgid ""
6418 " aug-defvar name expr\n"
6419 "\n"
6420 msgstr ""
6421
6422 #. type: textblock
6423 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6424 msgid ""
6425 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6426 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6427 msgstr ""
6428
6429 #. type: textblock
6430 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6431 msgid ""
6432 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6433 "evaluates to something which is not a nodeset."
6434 msgstr ""
6435
6436 #. type: =head2
6437 #: ../fish/guestfish-actions.pod:277
6438 msgid "aug-get"
6439 msgstr ""
6440
6441 #. type: verbatim
6442 #: ../fish/guestfish-actions.pod:279
6443 #, no-wrap
6444 msgid ""
6445 " aug-get augpath\n"
6446 "\n"
6447 msgstr ""
6448
6449 #. type: textblock
6450 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6451 msgid ""
6452 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6453 "node, the C<value> is returned."
6454 msgstr ""
6455
6456 #. type: =head2
6457 #: ../fish/guestfish-actions.pod:284
6458 msgid "aug-init"
6459 msgstr ""
6460
6461 #. type: verbatim
6462 #: ../fish/guestfish-actions.pod:286
6463 #, no-wrap
6464 msgid ""
6465 " aug-init root flags\n"
6466 "\n"
6467 msgstr ""
6468
6469 #. type: textblock
6470 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6471 msgid ""
6472 "Create a new Augeas handle for editing configuration files.  If there was "
6473 "any previous Augeas handle associated with this guestfs session, then it is "
6474 "closed."
6475 msgstr ""
6476
6477 #. type: textblock
6478 #: ../fish/guestfish-actions.pod:292
6479 msgid "You must call this before using any other L</aug-*> commands."
6480 msgstr ""
6481
6482 #. type: textblock
6483 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6484 msgid ""
6485 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6486 msgstr ""
6487
6488 #. type: textblock
6489 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6490 msgid ""
6491 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6492 "logical I<or> of the following integers:"
6493 msgstr ""
6494
6495 #. type: =item
6496 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6497 msgid "C<AUG_SAVE_BACKUP> = 1"
6498 msgstr "C<AUG_SAVE_BACKUP> = 1"
6499
6500 #. type: textblock
6501 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6502 msgid "Keep the original file with a C<.augsave> extension."
6503 msgstr ""
6504
6505 #. type: =item
6506 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6507 msgid "C<AUG_SAVE_NEWFILE> = 2"
6508 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6509
6510 #. type: textblock
6511 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6512 msgid ""
6513 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6514 "original.  Overrides C<AUG_SAVE_BACKUP>."
6515 msgstr ""
6516
6517 #. type: =item
6518 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6519 msgid "C<AUG_TYPE_CHECK> = 4"
6520 msgstr "C<AUG_TYPE_CHECK> = 4"
6521
6522 #. type: textblock
6523 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6524 msgid "Typecheck lenses."
6525 msgstr ""
6526
6527 #. type: textblock
6528 #: ../fish/guestfish-actions.pod:317
6529 msgid ""
6530 "This option is only useful when debugging Augeas lenses.  Use of this option "
6531 "may require additional memory for the libguestfs appliance.  You may need to "
6532 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6533 msgstr ""
6534
6535 #. type: =item
6536 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6537 msgid "C<AUG_NO_STDINC> = 8"
6538 msgstr "C<AUG_NO_STDINC> = 8"
6539
6540 #. type: textblock
6541 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6542 msgid "Do not use standard load path for modules."
6543 msgstr ""
6544
6545 #. type: =item
6546 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6547 msgid "C<AUG_SAVE_NOOP> = 16"
6548 msgstr "C<AUG_SAVE_NOOP> = 16"
6549
6550 #. type: textblock
6551 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6552 msgid "Make save a no-op, just record what would have been changed."
6553 msgstr ""
6554
6555 #. type: =item
6556 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6557 msgid "C<AUG_NO_LOAD> = 32"
6558 msgstr "C<AUG_NO_LOAD> = 32"
6559
6560 #. type: textblock
6561 #: ../fish/guestfish-actions.pod:332
6562 msgid "Do not load the tree in L</aug-init>."
6563 msgstr ""
6564
6565 #. type: textblock
6566 #: ../fish/guestfish-actions.pod:336
6567 msgid "To close the handle, you can call L</aug-close>."
6568 msgstr ""
6569
6570 #. type: textblock
6571 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6572 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6573 msgstr ""
6574
6575 #. type: =head2
6576 #: ../fish/guestfish-actions.pod:340
6577 msgid "aug-insert"
6578 msgstr ""
6579
6580 #. type: verbatim
6581 #: ../fish/guestfish-actions.pod:342
6582 #, no-wrap
6583 msgid ""
6584 " aug-insert augpath label true|false\n"
6585 "\n"
6586 msgstr ""
6587
6588 #. type: textblock
6589 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6590 msgid ""
6591 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6592 "or after C<path> (depending on the boolean flag C<before>)."
6593 msgstr ""
6594
6595 #. type: textblock
6596 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6597 msgid ""
6598 "C<path> must match exactly one existing node in the tree, and C<label> must "
6599 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6600 msgstr ""
6601
6602 #. type: =head2
6603 #: ../fish/guestfish-actions.pod:352
6604 msgid "aug-load"
6605 msgstr ""
6606
6607 #. type: verbatim
6608 #: ../fish/guestfish-actions.pod:354
6609 #, no-wrap
6610 msgid ""
6611 " aug-load\n"
6612 "\n"
6613 msgstr ""
6614
6615 #. type: textblock
6616 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6617 msgid "Load files into the tree."
6618 msgstr "Завантажити файли до ієрархії."
6619
6620 #. type: textblock
6621 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6622 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6623 msgstr ""
6624
6625 #. type: =head2
6626 #: ../fish/guestfish-actions.pod:361
6627 msgid "aug-ls"
6628 msgstr ""
6629
6630 #. type: verbatim
6631 #: ../fish/guestfish-actions.pod:363
6632 #, no-wrap
6633 msgid ""
6634 " aug-ls augpath\n"
6635 "\n"
6636 msgstr ""
6637
6638 #. type: textblock
6639 #: ../fish/guestfish-actions.pod:365
6640 msgid ""
6641 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6642 "resulting nodes into alphabetical order."
6643 msgstr ""
6644
6645 #. type: =head2
6646 #: ../fish/guestfish-actions.pod:368
6647 msgid "aug-match"
6648 msgstr ""
6649
6650 #. type: verbatim
6651 #: ../fish/guestfish-actions.pod:370
6652 #, no-wrap
6653 msgid ""
6654 " aug-match augpath\n"
6655 "\n"
6656 msgstr ""
6657
6658 #. type: textblock
6659 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6660 msgid ""
6661 "Returns a list of paths which match the path expression C<path>.  The "
6662 "returned paths are sufficiently qualified so that they match exactly one "
6663 "node in the current tree."
6664 msgstr ""
6665
6666 #. type: =head2
6667 #: ../fish/guestfish-actions.pod:376
6668 msgid "aug-mv"
6669 msgstr ""
6670
6671 #. type: verbatim
6672 #: ../fish/guestfish-actions.pod:378
6673 #, no-wrap
6674 msgid ""
6675 " aug-mv src dest\n"
6676 "\n"
6677 msgstr ""
6678
6679 #. type: textblock
6680 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6681 msgid ""
6682 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6683 "C<dest> is overwritten if it exists."
6684 msgstr ""
6685
6686 #. type: =head2
6687 #: ../fish/guestfish-actions.pod:383
6688 msgid "aug-rm"
6689 msgstr ""
6690
6691 #. type: verbatim
6692 #: ../fish/guestfish-actions.pod:385
6693 #, no-wrap
6694 msgid ""
6695 " aug-rm augpath\n"
6696 "\n"
6697 msgstr ""
6698
6699 #. type: textblock
6700 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6701 msgid "Remove C<path> and all of its children."
6702 msgstr ""
6703
6704 #. type: textblock
6705 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6706 msgid "On success this returns the number of entries which were removed."
6707 msgstr ""
6708
6709 #. type: =head2
6710 #: ../fish/guestfish-actions.pod:391
6711 msgid "aug-save"
6712 msgstr ""
6713
6714 #. type: verbatim
6715 #: ../fish/guestfish-actions.pod:393
6716 #, no-wrap
6717 msgid ""
6718 " aug-save\n"
6719 "\n"
6720 msgstr ""
6721
6722 #. type: textblock
6723 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6724 msgid "This writes all pending changes to disk."
6725 msgstr ""
6726
6727 #. type: textblock
6728 #: ../fish/guestfish-actions.pod:397
6729 msgid ""
6730 "The flags which were passed to L</aug-init> affect exactly how files are "
6731 "saved."
6732 msgstr ""
6733
6734 #. type: =head2
6735 #: ../fish/guestfish-actions.pod:400
6736 msgid "aug-set"
6737 msgstr ""
6738
6739 #. type: verbatim
6740 #: ../fish/guestfish-actions.pod:402
6741 #, no-wrap
6742 msgid ""
6743 " aug-set augpath val\n"
6744 "\n"
6745 msgstr ""
6746
6747 #. type: textblock
6748 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6749 msgid "Set the value associated with C<path> to C<val>."
6750 msgstr ""
6751
6752 #. type: textblock
6753 #: ../fish/guestfish-actions.pod:406
6754 msgid ""
6755 "In the Augeas API, it is possible to clear a node by setting the value to "
6756 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6757 "this call.  Instead you must use the L</aug-clear> call."
6758 msgstr ""
6759
6760 #. type: =head2
6761 #: ../fish/guestfish-actions.pod:411
6762 msgid "available"
6763 msgstr ""
6764
6765 #. type: verbatim
6766 #: ../fish/guestfish-actions.pod:413
6767 #, no-wrap
6768 msgid ""
6769 " available 'groups ...'\n"
6770 "\n"
6771 msgstr ""
6772
6773 #. type: textblock
6774 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6775 msgid ""
6776 "This command is used to check the availability of some groups of "
6777 "functionality in the appliance, which not all builds of the libguestfs "
6778 "appliance will be able to provide."
6779 msgstr ""
6780
6781 #. type: textblock
6782 #: ../fish/guestfish-actions.pod:419
6783 msgid ""
6784 "The libguestfs groups, and the functions that those groups correspond to, "
6785 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6786 "runtime by calling L</available-all-groups>."
6787 msgstr ""
6788
6789 #. type: textblock
6790 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6791 msgid ""
6792 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6793 "\"]> would check for the availability of the Linux inotify functions and "
6794 "Augeas (configuration file editing) functions."
6795 msgstr ""
6796
6797 #. type: textblock
6798 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6799 msgid "The command returns no error if I<all> requested groups are available."
6800 msgstr ""
6801
6802 #. type: textblock
6803 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6804 msgid ""
6805 "It fails with an error if one or more of the requested groups is unavailable "
6806 "in the appliance."
6807 msgstr ""
6808
6809 #. type: textblock
6810 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6811 msgid ""
6812 "If an unknown group name is included in the list of groups then an error is "
6813 "always returned."
6814 msgstr ""
6815
6816 #. type: textblock
6817 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6818 msgid "I<Notes:>"
6819 msgstr "I<Нотатки:>"
6820
6821 #. type: textblock
6822 #: ../fish/guestfish-actions.pod:443
6823 msgid "You must call L</launch> before calling this function."
6824 msgstr ""
6825
6826 #. type: textblock
6827 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6828 msgid ""
6829 "The reason is because we don't know what groups are supported by the "
6830 "appliance/daemon until it is running and can be queried."
6831 msgstr ""
6832
6833 #. type: textblock
6834 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6835 msgid ""
6836 "If a group of functions is available, this does not necessarily mean that "
6837 "they will work.  You still have to check for errors when calling individual "
6838 "API functions even if they are available."
6839 msgstr ""
6840
6841 #. type: textblock
6842 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6843 msgid ""
6844 "It is usually the job of distro packagers to build complete functionality "
6845 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6846 "with all requirements satisfied, will support everything."
6847 msgstr ""
6848
6849 #. type: textblock
6850 #: ../fish/guestfish-actions.pod:465
6851 msgid ""
6852 "This call was added in version C<1.0.80>.  In previous versions of "
6853 "libguestfs all you could do would be to speculatively execute a command to "
6854 "find out if the daemon implemented it.  See also L</version>."
6855 msgstr ""
6856
6857 #. type: =head2
6858 #: ../fish/guestfish-actions.pod:472
6859 msgid "available-all-groups"
6860 msgstr ""
6861
6862 #. type: verbatim
6863 #: ../fish/guestfish-actions.pod:474
6864 #, no-wrap
6865 msgid ""
6866 " available-all-groups\n"
6867 "\n"
6868 msgstr ""
6869
6870 #. type: textblock
6871 #: ../fish/guestfish-actions.pod:476
6872 msgid ""
6873 "This command returns a list of all optional groups that this daemon knows "
6874 "about.  Note this returns both supported and unsupported groups.  To find "
6875 "out which ones the daemon can actually support you have to call L</"
6876 "available> on each member of the returned list."
6877 msgstr ""
6878
6879 #. type: textblock
6880 #: ../fish/guestfish-actions.pod:482
6881 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6882 msgstr ""
6883
6884 #. type: =head2
6885 #: ../fish/guestfish-actions.pod:484
6886 msgid "base64-in"
6887 msgstr ""
6888
6889 #. type: verbatim
6890 #: ../fish/guestfish-actions.pod:486
6891 #, no-wrap
6892 msgid ""
6893 " base64-in (base64file|-) filename\n"
6894 "\n"
6895 msgstr ""
6896
6897 #. type: textblock
6898 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6899 msgid ""
6900 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6901 msgstr ""
6902
6903 #. type: textblock
6904 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
6905 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
6906 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
6907 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
6908 #: ../fish/guestfish-actions.pod:4858 ../fish/guestfish-actions.pod:4870
6909 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4892
6910 #: ../fish/guestfish-actions.pod:4944 ../fish/guestfish-actions.pod:4953
6911 #: ../fish/guestfish-actions.pod:5007 ../fish/guestfish-actions.pod:5030
6912 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6913 msgstr ""
6914
6915 #. type: =head2
6916 #: ../fish/guestfish-actions.pod:493
6917 msgid "base64-out"
6918 msgstr ""
6919
6920 #. type: verbatim
6921 #: ../fish/guestfish-actions.pod:495
6922 #, no-wrap
6923 msgid ""
6924 " base64-out filename (base64file|-)\n"
6925 "\n"
6926 msgstr ""
6927
6928 #. type: textblock
6929 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
6930 msgid ""
6931 "This command downloads the contents of C<filename>, writing it out to local "
6932 "file C<base64file> encoded as base64."
6933 msgstr ""
6934
6935 #. type: =head2
6936 #: ../fish/guestfish-actions.pod:502
6937 msgid "blockdev-flushbufs"
6938 msgstr ""
6939
6940 #. type: verbatim
6941 #: ../fish/guestfish-actions.pod:504
6942 #, no-wrap
6943 msgid ""
6944 " blockdev-flushbufs device\n"
6945 "\n"
6946 msgstr ""
6947
6948 #. type: textblock
6949 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
6950 msgid ""
6951 "This tells the kernel to flush internal buffers associated with C<device>."
6952 msgstr ""
6953
6954 #. type: textblock
6955 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
6956 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
6957 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
6958 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
6959 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
6960 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
6961 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
6962 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
6963 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
6964 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
6965 msgid "This uses the L<blockdev(8)> command."
6966 msgstr ""
6967
6968 #. type: =head2
6969 #: ../fish/guestfish-actions.pod:511
6970 msgid "blockdev-getbsz"
6971 msgstr ""
6972
6973 #. type: verbatim
6974 #: ../fish/guestfish-actions.pod:513
6975 #, no-wrap
6976 msgid ""
6977 " blockdev-getbsz device\n"
6978 "\n"
6979 msgstr ""
6980
6981 #. type: textblock
6982 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
6983 msgid "This returns the block size of a device."
6984 msgstr ""
6985
6986 #. type: textblock
6987 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
6988 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
6989 msgid ""
6990 "(Note this is different from both I<size in blocks> and I<filesystem block "
6991 "size>)."
6992 msgstr ""
6993
6994 #. type: =head2
6995 #: ../fish/guestfish-actions.pod:522
6996 msgid "blockdev-getro"
6997 msgstr ""
6998
6999 #. type: verbatim
7000 #: ../fish/guestfish-actions.pod:524
7001 #, no-wrap
7002 msgid ""
7003 " blockdev-getro device\n"
7004 "\n"
7005 msgstr ""
7006
7007 #. type: textblock
7008 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7009 msgid ""
7010 "Returns a boolean indicating if the block device is read-only (true if read-"
7011 "only, false if not)."
7012 msgstr ""
7013
7014 #. type: =head2
7015 #: ../fish/guestfish-actions.pod:531
7016 msgid "blockdev-getsize64"
7017 msgstr ""
7018
7019 #. type: verbatim
7020 #: ../fish/guestfish-actions.pod:533
7021 #, no-wrap
7022 msgid ""
7023 " blockdev-getsize64 device\n"
7024 "\n"
7025 msgstr ""
7026
7027 #. type: textblock
7028 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7029 msgid "This returns the size of the device in bytes."
7030 msgstr ""
7031
7032 #. type: textblock
7033 #: ../fish/guestfish-actions.pod:537
7034 msgid "See also L</blockdev-getsz>."
7035 msgstr "Див. також L</blockdev-getsz>."
7036
7037 #. type: =head2
7038 #: ../fish/guestfish-actions.pod:541
7039 msgid "blockdev-getss"
7040 msgstr ""
7041
7042 #. type: verbatim
7043 #: ../fish/guestfish-actions.pod:543
7044 #, no-wrap
7045 msgid ""
7046 " blockdev-getss device\n"
7047 "\n"
7048 msgstr ""
7049
7050 #. type: textblock
7051 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7052 msgid ""
7053 "This returns the size of sectors on a block device.  Usually 512, but can be "
7054 "larger for modern devices."
7055 msgstr ""
7056
7057 #. type: textblock
7058 #: ../fish/guestfish-actions.pod:548
7059 msgid ""
7060 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7061 msgstr ""
7062
7063 #. type: =head2
7064 #: ../fish/guestfish-actions.pod:553
7065 msgid "blockdev-getsz"
7066 msgstr ""
7067
7068 #. type: verbatim
7069 #: ../fish/guestfish-actions.pod:555
7070 #, no-wrap
7071 msgid ""
7072 " blockdev-getsz device\n"
7073 "\n"
7074 msgstr ""
7075
7076 #. type: textblock
7077 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7078 msgid ""
7079 "This returns the size of the device in units of 512-byte sectors (even if "
7080 "the sectorsize isn't 512 bytes ... weird)."
7081 msgstr ""
7082
7083 #. type: textblock
7084 #: ../fish/guestfish-actions.pod:560
7085 msgid ""
7086 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7087 "blockdev-getsize64> for the more useful I<size in bytes>."
7088 msgstr ""
7089
7090 #. type: =head2
7091 #: ../fish/guestfish-actions.pod:566
7092 msgid "blockdev-rereadpt"
7093 msgstr ""
7094
7095 #. type: verbatim
7096 #: ../fish/guestfish-actions.pod:568
7097 #, no-wrap
7098 msgid ""
7099 " blockdev-rereadpt device\n"
7100 "\n"
7101 msgstr ""
7102
7103 #. type: textblock
7104 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7105 msgid "Reread the partition table on C<device>."
7106 msgstr ""
7107
7108 #. type: =head2
7109 #: ../fish/guestfish-actions.pod:574
7110 msgid "blockdev-setbsz"
7111 msgstr ""
7112
7113 #. type: verbatim
7114 #: ../fish/guestfish-actions.pod:576
7115 #, no-wrap
7116 msgid ""
7117 " blockdev-setbsz device blocksize\n"
7118 "\n"
7119 msgstr ""
7120
7121 #. type: textblock
7122 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7123 msgid "This sets the block size of a device."
7124 msgstr ""
7125
7126 #. type: =head2
7127 #: ../fish/guestfish-actions.pod:585
7128 msgid "blockdev-setro"
7129 msgstr ""
7130
7131 #. type: verbatim
7132 #: ../fish/guestfish-actions.pod:587
7133 #, no-wrap
7134 msgid ""
7135 " blockdev-setro device\n"
7136 "\n"
7137 msgstr ""
7138
7139 #. type: textblock
7140 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7141 msgid "Sets the block device named C<device> to read-only."
7142 msgstr ""
7143
7144 #. type: =head2
7145 #: ../fish/guestfish-actions.pod:593
7146 msgid "blockdev-setrw"
7147 msgstr ""
7148
7149 #. type: verbatim
7150 #: ../fish/guestfish-actions.pod:595
7151 #, no-wrap
7152 msgid ""
7153 " blockdev-setrw device\n"
7154 "\n"
7155 msgstr ""
7156
7157 #. type: textblock
7158 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7159 msgid "Sets the block device named C<device> to read-write."
7160 msgstr ""
7161
7162 #. type: =head2
7163 #: ../fish/guestfish-actions.pod:601
7164 msgid "btrfs-filesystem-resize"
7165 msgstr ""
7166
7167 #. type: verbatim
7168 #: ../fish/guestfish-actions.pod:603
7169 #, no-wrap
7170 msgid ""
7171 " btrfs-filesystem-resize mountpoint [size:N]\n"
7172 "\n"
7173 msgstr ""
7174
7175 #. type: textblock
7176 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7177 msgid "This command resizes a btrfs filesystem."
7178 msgstr ""
7179
7180 #. type: textblock
7181 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7182 msgid ""
7183 "Note that unlike other resize calls, the filesystem has to be mounted and "
7184 "the parameter is the mountpoint not the device (this is a requirement of "
7185 "btrfs itself)."
7186 msgstr ""
7187
7188 #. type: textblock
7189 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3606
7190 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:5637
7191 msgid "The optional parameters are:"
7192 msgstr ""
7193
7194 #. type: =item
7195 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3610
7196 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5641
7197 msgid "C<size>"
7198 msgstr "C<розмір>"
7199
7200 #. type: textblock
7201 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7202 msgid ""
7203 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7204 "resized to the maximum size."
7205 msgstr ""
7206
7207 #. type: textblock
7208 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7209 msgid "See also L<btrfs(8)>."
7210 msgstr "Див. також L<btrfs(8)>."
7211
7212 #. type: =head2
7213 #: ../fish/guestfish-actions.pod:626
7214 msgid "case-sensitive-path"
7215 msgstr ""
7216
7217 #. type: verbatim
7218 #: ../fish/guestfish-actions.pod:628
7219 #, no-wrap
7220 msgid ""
7221 " case-sensitive-path path\n"
7222 "\n"
7223 msgstr ""
7224
7225 #. type: textblock
7226 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7227 msgid ""
7228 "This can be used to resolve case insensitive paths on a filesystem which is "
7229 "case sensitive.  The use case is to resolve paths which you have read from "
7230 "Windows configuration files or the Windows Registry, to the true path."
7231 msgstr ""
7232
7233 #. type: textblock
7234 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7235 msgid ""
7236 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7237 "(and probably others), which is that although the underlying filesystem is "
7238 "case-insensitive, the driver exports the filesystem to Linux as case-"
7239 "sensitive."
7240 msgstr ""
7241
7242 #. type: textblock
7243 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7244 msgid ""
7245 "One consequence of this is that special directories such as C<c:\\windows> "
7246 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7247 "precise details of how they were created.  In Windows itself this would not "
7248 "be a problem."
7249 msgstr ""
7250
7251 #. type: textblock
7252 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7253 msgid ""
7254 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7255 "#posixfilenames1>"
7256 msgstr ""
7257
7258 #. type: textblock
7259 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7260 msgid ""
7261 "This function resolves the true case of each element in the path and returns "
7262 "the case-sensitive path."
7263 msgstr ""
7264
7265 #. type: textblock
7266 #: ../fish/guestfish-actions.pod:652
7267 msgid ""
7268 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7269 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7270 "the directories were originally created under Windows)."
7271 msgstr ""
7272
7273 #. type: textblock
7274 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7275 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7276 msgstr ""
7277
7278 #. type: textblock
7279 #: ../fish/guestfish-actions.pod:660
7280 msgid "See also L</realpath>."
7281 msgstr "Див. також L</realpath>."
7282
7283 #. type: =head2
7284 #: ../fish/guestfish-actions.pod:662
7285 msgid "cat"
7286 msgstr "cat"
7287
7288 #. type: verbatim
7289 #: ../fish/guestfish-actions.pod:664
7290 #, no-wrap
7291 msgid ""
7292 " cat path\n"
7293 "\n"
7294 msgstr ""
7295 " cat шлях\n"
7296 "\n"
7297
7298 #. type: textblock
7299 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4037
7300 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6297
7301 msgid "Return the contents of the file named C<path>."
7302 msgstr ""
7303
7304 #. type: textblock
7305 #: ../fish/guestfish-actions.pod:668
7306 msgid ""
7307 "Note that this function cannot correctly handle binary files (specifically, "
7308 "files containing C<\\0> character which is treated as end of string).  For "
7309 "those you need to use the L</read-file> or L</download> functions which have "
7310 "a more complex interface."
7311 msgstr ""
7312
7313 #. type: textblock
7314 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
7315 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
7316 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
7317 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
7318 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
7319 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
7320 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
7321 #: ../fish/guestfish-actions.pod:3907 ../fish/guestfish-actions.pod:3922
7322 #: ../fish/guestfish-actions.pod:3998 ../fish/guestfish-actions.pod:4015
7323 #: ../fish/guestfish-actions.pod:4030 ../fish/guestfish-actions.pod:4699
7324 #: ../fish/guestfish-actions.pod:4745 ../fish/guestfish-actions.pod:4830
7325 #: ../fish/guestfish-actions.pod:4845 ../fish/guestfish-actions.pod:5251
7326 #: ../fish/guestfish-actions.pod:5263 ../fish/guestfish-actions.pod:5281
7327 #: ../fish/guestfish-actions.pod:5298 ../fish/guestfish-actions.pod:5308
7328 #: ../fish/guestfish-actions.pod:5362 ../fish/guestfish-actions.pod:5372
7329 #: ../fish/guestfish-actions.pod:5401 ../fish/guestfish-actions.pod:5411
7330 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
7331 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855
7332 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977
7333 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242
7334 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743
7335 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832
7336 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878
7337 #: ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6105
7338 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6262
7339 #: ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:7241
7340 #: ../src/guestfs-actions.pod:7296 ../src/guestfs-actions.pod:7442
7341 #: ../src/guestfs-actions.pod:7466 ../src/guestfs-actions.pod:8131
7342 #: ../src/guestfs-actions.pod:8151 ../src/guestfs-actions.pod:8184
7343 #: ../src/guestfs-actions.pod:8203 ../src/guestfs-actions.pod:8222
7344 #: ../src/guestfs-actions.pod:8313 ../src/guestfs-actions.pod:8332
7345 #: ../src/guestfs-actions.pod:8378 ../src/guestfs-actions.pod:8397
7346 msgid ""
7347 "Because of the message protocol, there is a transfer limit of somewhere "
7348 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7349 msgstr ""
7350
7351 #. type: =head2
7352 #: ../fish/guestfish-actions.pod:676
7353 msgid "checksum"
7354 msgstr "checksum"
7355
7356 #. type: verbatim
7357 #: ../fish/guestfish-actions.pod:678
7358 #, no-wrap
7359 msgid ""
7360 " checksum csumtype path\n"
7361 "\n"
7362 msgstr ""
7363
7364 #. type: textblock
7365 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7366 msgid ""
7367 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7368 msgstr ""
7369
7370 #. type: textblock
7371 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7372 msgid ""
7373 "The type of checksum to compute is given by the C<csumtype> parameter which "
7374 "must have one of the following values:"
7375 msgstr ""
7376
7377 #. type: =item
7378 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7379 msgid "C<crc>"
7380 msgstr "C<crc>"
7381
7382 #. type: textblock
7383 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7384 msgid ""
7385 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7386 "C<cksum> command."
7387 msgstr ""
7388
7389 #. type: =item
7390 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7391 msgid "C<md5>"
7392 msgstr "C<md5>"
7393
7394 #. type: textblock
7395 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7396 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7397 msgstr ""
7398
7399 #. type: =item
7400 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7401 msgid "C<sha1>"
7402 msgstr "C<sha1>"
7403
7404 #. type: textblock
7405 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7406 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7407 msgstr ""
7408
7409 #. type: =item
7410 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7411 msgid "C<sha224>"
7412 msgstr "C<sha224>"
7413
7414 #. type: textblock
7415 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7416 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7417 msgstr ""
7418
7419 #. type: =item
7420 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7421 msgid "C<sha256>"
7422 msgstr "C<sha256>"
7423
7424 #. type: textblock
7425 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7426 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7427 msgstr ""
7428
7429 #. type: =item
7430 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7431 msgid "C<sha384>"
7432 msgstr "C<sha384>"
7433
7434 #. type: textblock
7435 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7436 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7437 msgstr ""
7438
7439 #. type: =item
7440 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7441 msgid "C<sha512>"
7442 msgstr "C<sha512>"
7443
7444 #. type: textblock
7445 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7446 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7447 msgstr ""
7448
7449 #. type: textblock
7450 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7451 msgid "The checksum is returned as a printable string."
7452 msgstr ""
7453
7454 #. type: textblock
7455 #: ../fish/guestfish-actions.pod:721
7456 msgid "To get the checksum for a device, use L</checksum-device>."
7457 msgstr ""
7458
7459 #. type: textblock
7460 #: ../fish/guestfish-actions.pod:723
7461 msgid "To get the checksums for many files, use L</checksums-out>."
7462 msgstr ""
7463
7464 #. type: =head2
7465 #: ../fish/guestfish-actions.pod:725
7466 msgid "checksum-device"
7467 msgstr "checksum-device"
7468
7469 #. type: verbatim
7470 #: ../fish/guestfish-actions.pod:727
7471 #, no-wrap
7472 msgid ""
7473 " checksum-device csumtype device\n"
7474 "\n"
7475 msgstr ""
7476
7477 #. type: textblock
7478 #: ../fish/guestfish-actions.pod:729
7479 msgid ""
7480 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7481 "device named C<device>.  For the types of checksums supported see the L</"
7482 "checksum> command."
7483 msgstr ""
7484
7485 #. type: =head2
7486 #: ../fish/guestfish-actions.pod:733
7487 msgid "checksums-out"
7488 msgstr ""
7489
7490 #. type: verbatim
7491 #: ../fish/guestfish-actions.pod:735
7492 #, no-wrap
7493 msgid ""
7494 " checksums-out csumtype directory (sumsfile|-)\n"
7495 "\n"
7496 msgstr ""
7497
7498 #. type: textblock
7499 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7500 msgid ""
7501 "This command computes the checksums of all regular files in C<directory> and "
7502 "then emits a list of those checksums to the local output file C<sumsfile>."
7503 msgstr ""
7504
7505 #. type: textblock
7506 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7507 msgid ""
7508 "This can be used for verifying the integrity of a virtual machine.  However "
7509 "to be properly secure you should pay attention to the output of the checksum "
7510 "command (it uses the ones from GNU coreutils).  In particular when the "
7511 "filename is not printable, coreutils uses a special backslash syntax.  For "
7512 "more information, see the GNU coreutils info file."
7513 msgstr ""
7514
7515 #. type: =head2
7516 #: ../fish/guestfish-actions.pod:751
7517 msgid "chmod"
7518 msgstr "chmod"
7519
7520 #. type: verbatim
7521 #: ../fish/guestfish-actions.pod:753
7522 #, no-wrap
7523 msgid ""
7524 " chmod mode path\n"
7525 "\n"
7526 msgstr ""
7527
7528 #. type: textblock
7529 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7530 msgid ""
7531 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7532 "supported."
7533 msgstr ""
7534
7535 #. type: textblock
7536 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7537 msgid ""
7538 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7539 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7540 "C<700>."
7541 msgstr ""
7542
7543 #. type: textblock
7544 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3259
7545 #: ../fish/guestfish-actions.pod:3398 ../fish/guestfish-actions.pod:3408
7546 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:1117
7547 #: ../src/guestfs-actions.pod:5044 ../src/guestfs-actions.pod:5253
7548 #: ../src/guestfs-actions.pod:5272 ../src/guestfs-actions.pod:5291
7549 msgid "The mode actually set is affected by the umask."
7550 msgstr ""
7551
7552 #. type: =head2
7553 #: ../fish/guestfish-actions.pod:764
7554 msgid "chown"
7555 msgstr "chown"
7556
7557 #. type: verbatim
7558 #: ../fish/guestfish-actions.pod:766
7559 #, no-wrap
7560 msgid ""
7561 " chown owner group path\n"
7562 "\n"
7563 msgstr ""
7564
7565 #. type: textblock
7566 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7567 msgid "Change the file owner to C<owner> and group to C<group>."
7568 msgstr ""
7569
7570 #. type: textblock
7571 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
7572 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
7573 msgid ""
7574 "Only numeric uid and gid are supported.  If you want to use names, you will "
7575 "need to locate and parse the password file yourself (Augeas support makes "
7576 "this relatively easy)."
7577 msgstr ""
7578
7579 #. type: =head2
7580 #: ../fish/guestfish-actions.pod:774
7581 msgid "command"
7582 msgstr "command"
7583
7584 #. type: verbatim
7585 #: ../fish/guestfish-actions.pod:776
7586 #, no-wrap
7587 msgid ""
7588 " command 'arguments ...'\n"
7589 "\n"
7590 msgstr ""
7591 " command 'параметри...'\n"
7592 "\n"
7593
7594 #. type: textblock
7595 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7596 msgid ""
7597 "This call runs a command from the guest filesystem.  The filesystem must be "
7598 "mounted, and must contain a compatible operating system (ie. something "
7599 "Linux, with the same or compatible processor architecture)."
7600 msgstr ""
7601
7602 #. type: textblock
7603 #: ../fish/guestfish-actions.pod:783
7604 msgid ""
7605 "The single parameter is an argv-style list of arguments.  The first element "
7606 "is the name of the program to run.  Subsequent elements are parameters.  The "
7607 "list must be non-empty (ie. must contain a program name).  Note that the "
7608 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7609 msgstr ""
7610
7611 #. type: textblock
7612 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7613 msgid "The return value is anything printed to I<stdout> by the command."
7614 msgstr ""
7615
7616 #. type: textblock
7617 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7618 msgid ""
7619 "If the command returns a non-zero exit status, then this function returns an "
7620 "error message.  The error message string is the content of I<stderr> from "
7621 "the command."
7622 msgstr ""
7623
7624 #. type: textblock
7625 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7626 msgid ""
7627 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7628 "bin>.  If you require a program from another location, you should provide "
7629 "the full path in the first parameter."
7630 msgstr ""
7631
7632 #. type: textblock
7633 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7634 msgid ""
7635 "Shared libraries and data files required by the program must be available on "
7636 "filesystems which are mounted in the correct places.  It is the caller's "
7637 "responsibility to ensure all filesystems that are needed are mounted at the "
7638 "right locations."
7639 msgstr ""
7640
7641 #. type: =head2
7642 #: ../fish/guestfish-actions.pod:811
7643 msgid "command-lines"
7644 msgstr ""
7645
7646 #. type: verbatim
7647 #: ../fish/guestfish-actions.pod:813
7648 #, no-wrap
7649 msgid ""
7650 " command-lines 'arguments ...'\n"
7651 "\n"
7652 msgstr ""
7653
7654 #. type: textblock
7655 #: ../fish/guestfish-actions.pod:815
7656 msgid ""
7657 "This is the same as L</command>, but splits the result into a list of lines."
7658 msgstr ""
7659
7660 #. type: textblock
7661 #: ../fish/guestfish-actions.pod:818
7662 msgid "See also: L</sh-lines>"
7663 msgstr "Див. також L</sh-lines>"
7664
7665 #. type: =head2
7666 #: ../fish/guestfish-actions.pod:823
7667 msgid "compress-device-out"
7668 msgstr ""
7669
7670 #. type: verbatim
7671 #: ../fish/guestfish-actions.pod:825
7672 #, no-wrap
7673 msgid ""
7674 " compress-device-out ctype device (zdevice|-) [level:N]\n"
7675 "\n"
7676 msgstr ""
7677
7678 #. type: textblock
7679 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7680 msgid ""
7681 "This command compresses C<device> and writes it out to the local file "
7682 "C<zdevice>."
7683 msgstr ""
7684
7685 #. type: textblock
7686 #: ../fish/guestfish-actions.pod:830
7687 msgid ""
7688 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7689 "compress-out>."
7690 msgstr ""
7691
7692 #. type: =head2
7693 #: ../fish/guestfish-actions.pod:837
7694 msgid "compress-out"
7695 msgstr ""
7696
7697 #. type: verbatim
7698 #: ../fish/guestfish-actions.pod:839
7699 #, no-wrap
7700 msgid ""
7701 " compress-out ctype file (zfile|-) [level:N]\n"
7702 "\n"
7703 msgstr ""
7704
7705 #. type: textblock
7706 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7707 msgid ""
7708 "This command compresses C<file> and writes it out to the local file C<zfile>."
7709 msgstr ""
7710
7711 #. type: textblock
7712 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7713 msgid ""
7714 "The compression program used is controlled by the C<ctype> parameter.  "
7715 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7716 "Some compression types may not be supported by particular builds of "
7717 "libguestfs, in which case you will get an error containing the substring "
7718 "\"not supported\"."
7719 msgstr ""
7720
7721 #. type: textblock
7722 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7723 msgid ""
7724 "The optional C<level> parameter controls compression level.  The meaning and "
7725 "default for this parameter depends on the compression program being used."
7726 msgstr ""
7727
7728 #. type: =head2
7729 #: ../fish/guestfish-actions.pod:858
7730 msgid "config"
7731 msgstr ""
7732
7733 #. type: verbatim
7734 #: ../fish/guestfish-actions.pod:860
7735 #, no-wrap
7736 msgid ""
7737 " config qemuparam qemuvalue\n"
7738 "\n"
7739 msgstr ""
7740
7741 #. type: textblock
7742 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7743 msgid ""
7744 "This can be used to add arbitrary qemu command line parameters of the form "
7745 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7746 "setting some parameters which would interfere with parameters that we use."
7747 msgstr ""
7748
7749 #. type: textblock
7750 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7751 msgid "The first character of C<param> string must be a C<-> (dash)."
7752 msgstr ""
7753
7754 #. type: textblock
7755 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7756 msgid "C<value> can be NULL."
7757 msgstr ""
7758
7759 #. type: =head2
7760 #: ../fish/guestfish-actions.pod:871
7761 msgid "copy-device-to-device"
7762 msgstr ""
7763
7764 #. type: verbatim
7765 #: ../fish/guestfish-actions.pod:873
7766 #, no-wrap
7767 msgid ""
7768 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7769 "\n"
7770 msgstr ""
7771
7772 #. type: textblock
7773 #: ../fish/guestfish-actions.pod:875
7774 msgid ""
7775 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
7776 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
7777 "(device|file) to a destination (device|file)."
7778 msgstr ""
7779
7780 #. type: textblock
7781 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7782 msgid ""
7783 "Partial copies can be made since you can specify optionally the source "
7784 "offset, destination offset and size to copy.  These values are all specified "
7785 "in bytes.  If not given, the offsets both default to zero, and the size "
7786 "defaults to copying as much as possible until we hit the end of the source."
7787 msgstr ""
7788
7789 #. type: textblock
7790 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7791 msgid ""
7792 "The source and destination may be the same object.  However overlapping "
7793 "regions may not be copied correctly."
7794 msgstr ""
7795
7796 #. type: textblock
7797 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7798 msgid ""
7799 "If the destination is a file, it is created if required.  If the destination "
7800 "file is not large enough, it is extended."
7801 msgstr ""
7802
7803 #. type: =head2
7804 #: ../fish/guestfish-actions.pod:896
7805 msgid "copy-device-to-file"
7806 msgstr ""
7807
7808 #. type: verbatim
7809 #: ../fish/guestfish-actions.pod:898
7810 #, no-wrap
7811 msgid ""
7812 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7813 "\n"
7814 msgstr ""
7815
7816 #. type: textblock
7817 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
7818 #: ../fish/guestfish-actions.pod:918
7819 msgid "See L</copy-device-to-device> for a general overview of this call."
7820 msgstr ""
7821
7822 #. type: =head2
7823 #: ../fish/guestfish-actions.pod:905
7824 msgid "copy-file-to-device"
7825 msgstr ""
7826
7827 #. type: verbatim
7828 #: ../fish/guestfish-actions.pod:907
7829 #, no-wrap
7830 msgid ""
7831 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7832 "\n"
7833 msgstr ""
7834
7835 #. type: =head2
7836 #: ../fish/guestfish-actions.pod:914
7837 msgid "copy-file-to-file"
7838 msgstr ""
7839
7840 #. type: verbatim
7841 #: ../fish/guestfish-actions.pod:916
7842 #, no-wrap
7843 msgid ""
7844 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
7845 "\n"
7846 msgstr ""
7847
7848 #. type: textblock
7849 #: ../fish/guestfish-actions.pod:921
7850 msgid ""
7851 "This is B<not> the function you want for copying files.  This is for copying "
7852 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7853 "file copying and moving functions."
7854 msgstr ""
7855
7856 #. type: =head2
7857 #: ../fish/guestfish-actions.pod:928
7858 msgid "copy-size"
7859 msgstr ""
7860
7861 #. type: verbatim
7862 #: ../fish/guestfish-actions.pod:930
7863 #, no-wrap
7864 msgid ""
7865 " copy-size src dest size\n"
7866 "\n"
7867 msgstr ""
7868
7869 #. type: textblock
7870 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
7871 msgid ""
7872 "This command copies exactly C<size> bytes from one source device or file "
7873 "C<src> to another destination device or file C<dest>."
7874 msgstr ""
7875
7876 #. type: textblock
7877 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
7878 msgid ""
7879 "Note this will fail if the source is too short or if the destination is not "
7880 "large enough."
7881 msgstr ""
7882
7883 #. type: textblock
7884 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7885 msgid ""
7886 "I<This function is deprecated.> In new code, use the L</"
7887 "copy_device_to_device> call instead."
7888 msgstr ""
7889
7890 #. type: =head2
7891 #: ../fish/guestfish-actions.pod:945
7892 msgid "cp"
7893 msgstr "cp"
7894
7895 #. type: verbatim
7896 #: ../fish/guestfish-actions.pod:947
7897 #, no-wrap
7898 msgid ""
7899 " cp src dest\n"
7900 "\n"
7901 msgstr ""
7902
7903 #. type: textblock
7904 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
7905 msgid ""
7906 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7907 "destination filename or destination directory."
7908 msgstr ""
7909
7910 #. type: =head2
7911 #: ../fish/guestfish-actions.pod:952
7912 msgid "cp-a"
7913 msgstr "cp-a"
7914
7915 #. type: verbatim
7916 #: ../fish/guestfish-actions.pod:954
7917 #, no-wrap
7918 msgid ""
7919 " cp-a src dest\n"
7920 "\n"
7921 msgstr ""
7922
7923 #. type: textblock
7924 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
7925 msgid ""
7926 "This copies a file or directory from C<src> to C<dest> recursively using the "
7927 "C<cp -a> command."
7928 msgstr ""
7929
7930 #. type: =head2
7931 #: ../fish/guestfish-actions.pod:959
7932 msgid "dd"
7933 msgstr "dd"
7934
7935 #. type: verbatim
7936 #: ../fish/guestfish-actions.pod:961
7937 #, no-wrap
7938 msgid ""
7939 " dd src dest\n"
7940 "\n"
7941 msgstr ""
7942
7943 #. type: textblock
7944 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
7945 msgid ""
7946 "This command copies from one source device or file C<src> to another "
7947 "destination device or file C<dest>.  Normally you would use this to copy to "
7948 "or from a device or partition, for example to duplicate a filesystem."
7949 msgstr ""
7950
7951 #. type: textblock
7952 #: ../fish/guestfish-actions.pod:968
7953 msgid ""
7954 "If the destination is a device, it must be as large or larger than the "
7955 "source file or device, otherwise the copy will fail.  This command cannot do "
7956 "partial copies (see L</copy-device-to-device>)."
7957 msgstr ""
7958
7959 #. type: =head2
7960 #: ../fish/guestfish-actions.pod:980
7961 msgid "df"
7962 msgstr "df"
7963
7964 #. type: verbatim
7965 #: ../fish/guestfish-actions.pod:982
7966 #, no-wrap
7967 msgid ""
7968 " df\n"
7969 "\n"
7970 msgstr ""
7971 " df\n"
7972 "\n"
7973
7974 #. type: textblock
7975 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
7976 msgid "This command runs the C<df> command to report disk space used."
7977 msgstr ""
7978
7979 #. type: textblock
7980 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
7981 msgid ""
7982 "This command is mostly useful for interactive sessions.  It is I<not> "
7983 "intended that you try to parse the output string.  Use L</statvfs> from "
7984 "programs."
7985 msgstr ""
7986
7987 #. type: =head2
7988 #: ../fish/guestfish-actions.pod:990
7989 msgid "df-h"
7990 msgstr "df-h"
7991
7992 #. type: verbatim
7993 #: ../fish/guestfish-actions.pod:992
7994 #, no-wrap
7995 msgid ""
7996 " df-h\n"
7997 "\n"
7998 msgstr ""
7999 " df-h\n"
8000 "\n"
8001
8002 #. type: textblock
8003 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
8004 msgid ""
8005 "This command runs the C<df -h> command to report disk space used in human-"
8006 "readable format."
8007 msgstr ""
8008
8009 #. type: =head2
8010 #: ../fish/guestfish-actions.pod:1001
8011 msgid "dmesg"
8012 msgstr "dmesg"
8013
8014 #. type: verbatim
8015 #: ../fish/guestfish-actions.pod:1003
8016 #, no-wrap
8017 msgid ""
8018 " dmesg\n"
8019 "\n"
8020 msgstr ""
8021 " dmesg\n"
8022 "\n"
8023
8024 #. type: textblock
8025 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
8026 msgid ""
8027 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8028 "This is sometimes useful for extended debugging of problems."
8029 msgstr ""
8030
8031 #. type: textblock
8032 #: ../fish/guestfish-actions.pod:1009
8033 msgid ""
8034 "Another way to get the same information is to enable verbose messages with "
8035 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8036 "before running the program."
8037 msgstr ""
8038
8039 #. type: =head2
8040 #: ../fish/guestfish-actions.pod:1014
8041 msgid "download"
8042 msgstr "download"
8043
8044 #. type: verbatim
8045 #: ../fish/guestfish-actions.pod:1016
8046 #, no-wrap
8047 msgid ""
8048 " download remotefilename (filename|-)\n"
8049 "\n"
8050 msgstr ""
8051
8052 #. type: textblock
8053 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
8054 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
8055 msgid ""
8056 "Download file C<remotefilename> and save it as C<filename> on the local "
8057 "machine."
8058 msgstr ""
8059
8060 #. type: textblock
8061 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5003
8062 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7701
8063 msgid "C<filename> can also be a named pipe."
8064 msgstr ""
8065
8066 #. type: textblock
8067 #: ../fish/guestfish-actions.pod:1023
8068 msgid "See also L</upload>, L</cat>."
8069 msgstr ""
8070
8071 #. type: =head2
8072 #: ../fish/guestfish-actions.pod:1027
8073 msgid "download-offset"
8074 msgstr "download-offset"
8075
8076 #. type: verbatim
8077 #: ../fish/guestfish-actions.pod:1029
8078 #, no-wrap
8079 msgid ""
8080 " download-offset remotefilename (filename|-) offset size\n"
8081 "\n"
8082 msgstr ""
8083
8084 #. type: textblock
8085 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8086 msgid ""
8087 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8088 "region must be within the file or device)."
8089 msgstr ""
8090
8091 #. type: textblock
8092 #: ../fish/guestfish-actions.pod:1037
8093 msgid ""
8094 "Note that there is no limit on the amount of data that can be downloaded "
8095 "with this call, unlike with L</pread>, and this call always reads the full "
8096 "amount unless an error occurs."
8097 msgstr ""
8098
8099 #. type: textblock
8100 #: ../fish/guestfish-actions.pod:1042
8101 msgid "See also L</download>, L</pread>."
8102 msgstr ""
8103
8104 #. type: =head2
8105 #: ../fish/guestfish-actions.pod:1046
8106 msgid "drop-caches"
8107 msgstr ""
8108
8109 #. type: verbatim
8110 #: ../fish/guestfish-actions.pod:1048
8111 #, no-wrap
8112 msgid ""
8113 " drop-caches whattodrop\n"
8114 "\n"
8115 msgstr ""
8116
8117 #. type: textblock
8118 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8119 msgid ""
8120 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8121 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8122 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8123 msgstr ""
8124
8125 #. type: textblock
8126 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8127 msgid "Setting C<whattodrop> to 3 should drop everything."
8128 msgstr ""
8129
8130 #. type: textblock
8131 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8132 msgid ""
8133 "This automatically calls L<sync(2)> before the operation, so that the "
8134 "maximum guest memory is freed."
8135 msgstr ""
8136
8137 #. type: =head2
8138 #: ../fish/guestfish-actions.pod:1060
8139 msgid "du"
8140 msgstr "du"
8141
8142 #. type: verbatim
8143 #: ../fish/guestfish-actions.pod:1062
8144 #, no-wrap
8145 msgid ""
8146 " du path\n"
8147 "\n"
8148 msgstr ""
8149 " du шлях\n"
8150 "\n"
8151
8152 #. type: textblock
8153 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
8154 msgid ""
8155 "This command runs the C<du -s> command to estimate file space usage for "
8156 "C<path>."
8157 msgstr ""
8158
8159 #. type: textblock
8160 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
8161 msgid ""
8162 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8163 "estimate includes the contents of the directory and all subdirectories "
8164 "(recursively)."
8165 msgstr ""
8166
8167 #. type: textblock
8168 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
8169 msgid ""
8170 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8171 msgstr ""
8172
8173 #. type: =head2
8174 #: ../fish/guestfish-actions.pod:1074
8175 msgid "e2fsck-f"
8176 msgstr "e2fsck-f"
8177
8178 #. type: verbatim
8179 #: ../fish/guestfish-actions.pod:1076
8180 #, no-wrap
8181 msgid ""
8182 " e2fsck-f device\n"
8183 "\n"
8184 msgstr ""
8185
8186 #. type: textblock
8187 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
8188 msgid ""
8189 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8190 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8191 "clean (I<-f>)."
8192 msgstr ""
8193
8194 #. type: textblock
8195 #: ../fish/guestfish-actions.pod:1082
8196 msgid ""
8197 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8198 "should use L</fsck>."
8199 msgstr ""
8200
8201 #. type: =head2
8202 #: ../fish/guestfish-actions.pod:1085
8203 msgid "echo-daemon"
8204 msgstr ""
8205
8206 #. type: verbatim
8207 #: ../fish/guestfish-actions.pod:1087
8208 #, no-wrap
8209 msgid ""
8210 " echo-daemon 'words ...'\n"
8211 "\n"
8212 msgstr ""
8213
8214 #. type: textblock
8215 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
8216 msgid ""
8217 "This command concatenates the list of C<words> passed with single spaces "
8218 "between them and returns the resulting string."
8219 msgstr ""
8220
8221 #. type: textblock
8222 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
8223 msgid "You can use this command to test the connection through to the daemon."
8224 msgstr ""
8225
8226 #. type: textblock
8227 #: ../fish/guestfish-actions.pod:1094
8228 msgid "See also L</ping-daemon>."
8229 msgstr "Див. також L</ping-daemon>."
8230
8231 #. type: =head2
8232 #: ../fish/guestfish-actions.pod:1096
8233 msgid "egrep"
8234 msgstr "egrep"
8235
8236 #. type: verbatim
8237 #: ../fish/guestfish-actions.pod:1098
8238 #, no-wrap
8239 msgid ""
8240 " egrep regex path\n"
8241 "\n"
8242 msgstr ""
8243
8244 #. type: textblock
8245 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
8246 msgid ""
8247 "This calls the external C<egrep> program and returns the matching lines."
8248 msgstr ""
8249
8250 #. type: =head2
8251 #: ../fish/guestfish-actions.pod:1106
8252 msgid "egrepi"
8253 msgstr "egrepi"
8254
8255 #. type: verbatim
8256 #: ../fish/guestfish-actions.pod:1108
8257 #, no-wrap
8258 msgid ""
8259 " egrepi regex path\n"
8260 "\n"
8261 msgstr ""
8262
8263 #. type: textblock
8264 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
8265 msgid ""
8266 "This calls the external C<egrep -i> program and returns the matching lines."
8267 msgstr ""
8268
8269 #. type: =head2
8270 #: ../fish/guestfish-actions.pod:1116
8271 msgid "equal"
8272 msgstr "equal"
8273
8274 #. type: verbatim
8275 #: ../fish/guestfish-actions.pod:1118
8276 #, no-wrap
8277 msgid ""
8278 " equal file1 file2\n"
8279 "\n"
8280 msgstr ""
8281 " equal файл1 файл2\n"
8282 "\n"
8283
8284 #. type: textblock
8285 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
8286 msgid ""
8287 "This compares the two files C<file1> and C<file2> and returns true if their "
8288 "content is exactly equal, or false otherwise."
8289 msgstr ""
8290
8291 #. type: textblock
8292 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
8293 msgid "The external L<cmp(1)> program is used for the comparison."
8294 msgstr ""
8295
8296 #. type: =head2
8297 #: ../fish/guestfish-actions.pod:1125
8298 msgid "exists"
8299 msgstr "exists"
8300
8301 #. type: verbatim
8302 #: ../fish/guestfish-actions.pod:1127
8303 #, no-wrap
8304 msgid ""
8305 " exists path\n"
8306 "\n"
8307 msgstr ""
8308 " exists шлях\n"
8309 "\n"
8310
8311 #. type: textblock
8312 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
8313 msgid ""
8314 "This returns C<true> if and only if there is a file, directory (or anything) "
8315 "with the given C<path> name."
8316 msgstr ""
8317
8318 #. type: textblock
8319 #: ../fish/guestfish-actions.pod:1132
8320 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8321 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8322
8323 #. type: =head2
8324 #: ../fish/guestfish-actions.pod:1134
8325 msgid "fallocate"
8326 msgstr "fallocate"
8327
8328 #. type: verbatim
8329 #: ../fish/guestfish-actions.pod:1136
8330 #, no-wrap
8331 msgid ""
8332 " fallocate path len\n"
8333 "\n"
8334 msgstr ""
8335 " fallocate шлях довжина\n"
8336 "\n"
8337
8338 #. type: textblock
8339 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
8340 #: ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
8341 msgid ""
8342 "This command preallocates a file (containing zero bytes) named C<path> of "
8343 "size C<len> bytes.  If the file exists already, it is overwritten."
8344 msgstr ""
8345
8346 #. type: textblock
8347 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
8348 msgid ""
8349 "Do not confuse this with the guestfish-specific C<alloc> command which "
8350 "allocates a file in the host and attaches it as a device."
8351 msgstr ""
8352
8353 #. type: textblock
8354 #: ../fish/guestfish-actions.pod:1146
8355 msgid ""
8356 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8357 "instead."
8358 msgstr ""
8359
8360 #. type: =head2
8361 #: ../fish/guestfish-actions.pod:1153
8362 msgid "fallocate64"
8363 msgstr "fallocate64"
8364
8365 #. type: verbatim
8366 #: ../fish/guestfish-actions.pod:1155
8367 #, no-wrap
8368 msgid ""
8369 " fallocate64 path len\n"
8370 "\n"
8371 msgstr ""
8372 " fallocate64 шлях довжина\n"
8373 "\n"
8374
8375 #. type: textblock
8376 #: ../fish/guestfish-actions.pod:1161
8377 msgid ""
8378 "Note that this call allocates disk blocks for the file.  To create a sparse "
8379 "file use L</truncate-size> instead."
8380 msgstr ""
8381
8382 #. type: textblock
8383 #: ../fish/guestfish-actions.pod:1164
8384 msgid ""
8385 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8386 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8387 "maximum size of files created through that call to 1GB."
8388 msgstr ""
8389
8390 #. type: textblock
8391 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
8392 msgid ""
8393 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8394 "commands which create a file in the host and attach it as a device."
8395 msgstr ""
8396
8397 #. type: =head2
8398 #: ../fish/guestfish-actions.pod:1173
8399 msgid "fgrep"
8400 msgstr "fgrep"
8401
8402 #. type: verbatim
8403 #: ../fish/guestfish-actions.pod:1175
8404 #, no-wrap
8405 msgid ""
8406 " fgrep pattern path\n"
8407 "\n"
8408 msgstr ""
8409 " fgrep шаблон шлях\n"
8410 "\n"
8411
8412 #. type: textblock
8413 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
8414 msgid ""
8415 "This calls the external C<fgrep> program and returns the matching lines."
8416 msgstr ""
8417
8418 #. type: =head2
8419 #: ../fish/guestfish-actions.pod:1183
8420 msgid "fgrepi"
8421 msgstr "fgrepi"
8422
8423 #. type: verbatim
8424 #: ../fish/guestfish-actions.pod:1185
8425 #, no-wrap
8426 msgid ""
8427 " fgrepi pattern path\n"
8428 "\n"
8429 msgstr ""
8430 " fgrepi шаблон шлях\n"
8431 "\n"
8432
8433 #. type: textblock
8434 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
8435 msgid ""
8436 "This calls the external C<fgrep -i> program and returns the matching lines."
8437 msgstr ""
8438
8439 #. type: =head2
8440 #: ../fish/guestfish-actions.pod:1193
8441 msgid "file"
8442 msgstr "file"
8443
8444 #. type: verbatim
8445 #: ../fish/guestfish-actions.pod:1195
8446 #, no-wrap
8447 msgid ""
8448 " file path\n"
8449 "\n"
8450 msgstr ""
8451 " file шлях\n"
8452 "\n"
8453
8454 #. type: textblock
8455 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
8456 msgid ""
8457 "This call uses the standard L<file(1)> command to determine the type or "
8458 "contents of the file."
8459 msgstr ""
8460
8461 #. type: textblock
8462 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
8463 msgid ""
8464 "This call will also transparently look inside various types of compressed "
8465 "file."
8466 msgstr ""
8467
8468 #. type: textblock
8469 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
8470 msgid ""
8471 "The exact command which runs is C<file -zb path>.  Note in particular that "
8472 "the filename is not prepended to the output (the I<-b> option)."
8473 msgstr ""
8474
8475 #. type: textblock
8476 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
8477 msgid ""
8478 "The output depends on the output of the underlying L<file(1)> command and it "
8479 "can change in future in ways beyond our control.  In other words, the output "
8480 "is not guaranteed by the ABI."
8481 msgstr ""
8482
8483 #. type: textblock
8484 #: ../fish/guestfish-actions.pod:1211
8485 msgid ""
8486 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8487 "(etc), L</is-zero>."
8488 msgstr ""
8489
8490 #. type: =head2
8491 #: ../fish/guestfish-actions.pod:1214
8492 msgid "file-architecture"
8493 msgstr "file-architecture"
8494
8495 #. type: verbatim
8496 #: ../fish/guestfish-actions.pod:1216
8497 #, no-wrap
8498 msgid ""
8499 " file-architecture filename\n"
8500 "\n"
8501 msgstr ""
8502 " file-architecture назва_файла\n"
8503 "\n"
8504
8505 #. type: textblock
8506 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
8507 msgid ""
8508 "This detects the architecture of the binary C<filename>, and returns it if "
8509 "known."
8510 msgstr ""
8511
8512 #. type: textblock
8513 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
8514 msgid "Currently defined architectures are:"
8515 msgstr ""
8516
8517 #. type: =item
8518 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
8519 msgid "\"i386\""
8520 msgstr "\"i386\""
8521
8522 #. type: textblock
8523 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
8524 msgid ""
8525 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8526 "irrespective of the precise processor requirements of the binary."
8527 msgstr ""
8528
8529 #. type: =item
8530 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
8531 msgid "\"x86_64\""
8532 msgstr "\"x86_64\""
8533
8534 #. type: textblock
8535 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
8536 msgid "64 bit x86-64."
8537 msgstr ""
8538
8539 #. type: =item
8540 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
8541 msgid "\"sparc\""
8542 msgstr ""
8543
8544 #. type: textblock
8545 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
8546 msgid "32 bit SPARC."
8547 msgstr ""
8548
8549 #. type: =item
8550 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
8551 msgid "\"sparc64\""
8552 msgstr ""
8553
8554 #. type: textblock
8555 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
8556 msgid "64 bit SPARC V9 and above."
8557 msgstr ""
8558
8559 #. type: =item
8560 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
8561 msgid "\"ia64\""
8562 msgstr "\"ia64\""
8563
8564 #. type: textblock
8565 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
8566 msgid "Intel Itanium."
8567 msgstr "Intel Itanium."
8568
8569 #. type: =item
8570 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
8571 msgid "\"ppc\""
8572 msgstr ""
8573
8574 #. type: textblock
8575 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
8576 msgid "32 bit Power PC."
8577 msgstr ""
8578
8579 #. type: =item
8580 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
8581 msgid "\"ppc64\""
8582 msgstr ""
8583
8584 #. type: textblock
8585 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
8586 msgid "64 bit Power PC."
8587 msgstr ""
8588
8589 #. type: textblock
8590 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
8591 msgid "Libguestfs may return other architecture strings in future."
8592 msgstr ""
8593
8594 #. type: textblock
8595 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
8596 msgid "The function works on at least the following types of files:"
8597 msgstr ""
8598
8599 #. type: textblock
8600 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
8601 msgid "many types of Un*x and Linux binary"
8602 msgstr ""
8603
8604 #. type: textblock
8605 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
8606 msgid "many types of Un*x and Linux shared library"
8607 msgstr ""
8608
8609 #. type: textblock
8610 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
8611 msgid "Windows Win32 and Win64 binaries"
8612 msgstr ""
8613
8614 #. type: textblock
8615 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
8616 msgid "Windows Win32 and Win64 DLLs"
8617 msgstr ""
8618
8619 #. type: textblock
8620 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
8621 msgid "Win32 binaries and DLLs return C<i386>."
8622 msgstr ""
8623
8624 #. type: textblock
8625 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
8626 msgid "Win64 binaries and DLLs return C<x86_64>."
8627 msgstr ""
8628
8629 #. type: textblock
8630 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
8631 msgid "Linux kernel modules"
8632 msgstr ""
8633
8634 #. type: textblock
8635 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
8636 msgid "Linux new-style initrd images"
8637 msgstr ""
8638
8639 #. type: textblock
8640 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
8641 msgid "some non-x86 Linux vmlinuz kernels"
8642 msgstr ""
8643
8644 #. type: textblock
8645 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
8646 msgid "What it can't do currently:"
8647 msgstr ""
8648
8649 #. type: textblock
8650 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
8651 msgid "static libraries (libfoo.a)"
8652 msgstr ""
8653
8654 #. type: textblock
8655 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
8656 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8657 msgstr ""
8658
8659 #. type: textblock
8660 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
8661 msgid "x86 Linux vmlinuz kernels"
8662 msgstr ""
8663
8664 #. type: textblock
8665 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
8666 msgid ""
8667 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8668 "compressed code, and are horribly hard to unpack.  If you want to find the "
8669 "architecture of a kernel, use the architecture of the associated initrd or "
8670 "kernel module(s) instead."
8671 msgstr ""
8672
8673 #. type: =head2
8674 #: ../fish/guestfish-actions.pod:1319
8675 msgid "filesize"
8676 msgstr "filesize"
8677
8678 #. type: verbatim
8679 #: ../fish/guestfish-actions.pod:1321
8680 #, no-wrap
8681 msgid ""
8682 " filesize file\n"
8683 "\n"
8684 msgstr ""
8685 " filesize файл\n"
8686 "\n"
8687
8688 #. type: textblock
8689 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
8690 msgid "This command returns the size of C<file> in bytes."
8691 msgstr ""
8692
8693 #. type: textblock
8694 #: ../fish/guestfish-actions.pod:1325
8695 msgid ""
8696 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8697 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8698 msgstr ""
8699
8700 #. type: =head2
8701 #: ../fish/guestfish-actions.pod:1329
8702 msgid "fill"
8703 msgstr "fill"
8704
8705 #. type: verbatim
8706 #: ../fish/guestfish-actions.pod:1331
8707 #, no-wrap
8708 msgid ""
8709 " fill c len path\n"
8710 "\n"
8711 msgstr ""
8712
8713 #. type: textblock
8714 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
8715 msgid ""
8716 "This command creates a new file called C<path>.  The initial content of the "
8717 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8718 "[0..255]>."
8719 msgstr ""
8720
8721 #. type: textblock
8722 #: ../fish/guestfish-actions.pod:1337
8723 msgid ""
8724 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8725 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8726 "L</fill-pattern>."
8727 msgstr ""
8728
8729 #. type: =head2
8730 #: ../fish/guestfish-actions.pod:1342
8731 msgid "fill-pattern"
8732 msgstr "fill-pattern"
8733
8734 #. type: verbatim
8735 #: ../fish/guestfish-actions.pod:1344
8736 #, no-wrap
8737 msgid ""
8738 " fill-pattern pattern len path\n"
8739 "\n"
8740 msgstr ""
8741
8742 #. type: textblock
8743 #: ../fish/guestfish-actions.pod:1346
8744 msgid ""
8745 "This function is like L</fill> except that it creates a new file of length "
8746 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8747 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8748 "bytes."
8749 msgstr ""
8750
8751 #. type: =head2
8752 #: ../fish/guestfish-actions.pod:1351
8753 msgid "find"
8754 msgstr "find"
8755
8756 #. type: verbatim
8757 #: ../fish/guestfish-actions.pod:1353
8758 #, no-wrap
8759 msgid ""
8760 " find directory\n"
8761 "\n"
8762 msgstr ""
8763 " find каталог\n"
8764 "\n"
8765
8766 #. type: textblock
8767 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
8768 msgid ""
8769 "This command lists out all files and directories, recursively, starting at "
8770 "C<directory>.  It is essentially equivalent to running the shell command "
8771 "C<find directory -print> but some post-processing happens on the output, "
8772 "described below."
8773 msgstr ""
8774
8775 #. type: textblock
8776 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
8777 msgid ""
8778 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8779 "structure was:"
8780 msgstr ""
8781
8782 #. type: verbatim
8783 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
8784 #, no-wrap
8785 msgid ""
8786 " /tmp/a\n"
8787 " /tmp/b\n"
8788 " /tmp/c/d\n"
8789 "\n"
8790 msgstr ""
8791
8792 #. type: textblock
8793 #: ../fish/guestfish-actions.pod:1367
8794 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8795 msgstr ""
8796
8797 #. type: verbatim
8798 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
8799 #, no-wrap
8800 msgid ""
8801 " a\n"
8802 " b\n"
8803 " c\n"
8804 " c/d\n"
8805 "\n"
8806 msgstr ""
8807
8808 #. type: textblock
8809 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
8810 msgid "If C<directory> is not a directory, then this command returns an error."
8811 msgstr ""
8812
8813 #. type: textblock
8814 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
8815 msgid "The returned list is sorted."
8816 msgstr ""
8817
8818 #. type: textblock
8819 #: ../fish/guestfish-actions.pod:1380
8820 msgid "See also L</find0>."
8821 msgstr "Див. також L</find0>."
8822
8823 #. type: =head2
8824 #: ../fish/guestfish-actions.pod:1385
8825 msgid "find0"
8826 msgstr "find0"
8827
8828 #. type: verbatim
8829 #: ../fish/guestfish-actions.pod:1387
8830 #, no-wrap
8831 msgid ""
8832 " find0 directory (files|-)\n"
8833 "\n"
8834 msgstr ""
8835 " find0 каталог (файли|-)\n"
8836 "\n"
8837
8838 #. type: textblock
8839 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
8840 msgid ""
8841 "This command lists out all files and directories, recursively, starting at "
8842 "C<directory>, placing the resulting list in the external file called "
8843 "C<files>."
8844 msgstr ""
8845
8846 #. type: textblock
8847 #: ../fish/guestfish-actions.pod:1393
8848 msgid ""
8849 "This command works the same way as L</find> with the following exceptions:"
8850 msgstr ""
8851
8852 #. type: textblock
8853 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
8854 msgid "The resulting list is written to an external file."
8855 msgstr ""
8856
8857 #. type: textblock
8858 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
8859 msgid ""
8860 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8861 "L<find(1)> option I<-print0>."
8862 msgstr ""
8863
8864 #. type: textblock
8865 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
8866 msgid "This command is not limited in the number of names that it can return."
8867 msgstr ""
8868
8869 #. type: textblock
8870 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
8871 msgid "The result list is not sorted."
8872 msgstr ""
8873
8874 #. type: =head2
8875 #: ../fish/guestfish-actions.pod:1420
8876 msgid "findfs-label"
8877 msgstr "findfs-label"
8878
8879 #. type: verbatim
8880 #: ../fish/guestfish-actions.pod:1422
8881 #, no-wrap
8882 msgid ""
8883 " findfs-label label\n"
8884 "\n"
8885 msgstr ""
8886 " findfs-label мітка\n"
8887 "\n"
8888
8889 #. type: textblock
8890 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
8891 msgid ""
8892 "This command searches the filesystems and returns the one which has the "
8893 "given label.  An error is returned if no such filesystem can be found."
8894 msgstr ""
8895
8896 #. type: textblock
8897 #: ../fish/guestfish-actions.pod:1428
8898 msgid "To find the label of a filesystem, use L</vfs-label>."
8899 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8900
8901 #. type: =head2
8902 #: ../fish/guestfish-actions.pod:1430
8903 msgid "findfs-uuid"
8904 msgstr "findfs-uuid"
8905
8906 #. type: verbatim
8907 #: ../fish/guestfish-actions.pod:1432
8908 #, no-wrap
8909 msgid ""
8910 " findfs-uuid uuid\n"
8911 "\n"
8912 msgstr ""
8913 " findfs-uuid uuid\n"
8914 "\n"
8915
8916 #. type: textblock
8917 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
8918 msgid ""
8919 "This command searches the filesystems and returns the one which has the "
8920 "given UUID.  An error is returned if no such filesystem can be found."
8921 msgstr ""
8922
8923 #. type: textblock
8924 #: ../fish/guestfish-actions.pod:1438
8925 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8926 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8927
8928 #. type: =head2
8929 #: ../fish/guestfish-actions.pod:1440
8930 msgid "fsck"
8931 msgstr "fsck"
8932
8933 #. type: verbatim
8934 #: ../fish/guestfish-actions.pod:1442
8935 #, no-wrap
8936 msgid ""
8937 " fsck fstype device\n"
8938 "\n"
8939 msgstr ""
8940 " fsck тип_файлової_системи пристрій\n"
8941 "\n"
8942
8943 #. type: textblock
8944 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
8945 msgid ""
8946 "This runs the filesystem checker (fsck) on C<device> which should have "
8947 "filesystem type C<fstype>."
8948 msgstr ""
8949
8950 #. type: textblock
8951 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
8952 msgid ""
8953 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8954 "codes from C<fsck>."
8955 msgstr ""
8956
8957 #. type: textblock
8958 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
8959 msgid "Multiple status codes can be summed together."
8960 msgstr ""
8961
8962 #. type: textblock
8963 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
8964 msgid ""
8965 "A non-zero return code can mean \"success\", for example if errors have been "
8966 "corrected on the filesystem."
8967 msgstr ""
8968
8969 #. type: textblock
8970 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
8971 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
8976 msgid ""
8977 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8978 msgstr ""
8979
8980 #. type: =head2
8981 #: ../fish/guestfish-actions.pod:1472
8982 msgid "get-append"
8983 msgstr "get-append"
8984
8985 #. type: verbatim
8986 #: ../fish/guestfish-actions.pod:1474
8987 #, no-wrap
8988 msgid ""
8989 " get-append\n"
8990 "\n"
8991 msgstr ""
8992 " get-append\n"
8993 "\n"
8994
8995 #. type: textblock
8996 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
8997 msgid ""
8998 "Return the additional kernel options which are added to the guest kernel "
8999 "command line."
9000 msgstr ""
9001
9002 #. type: textblock
9003 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
9004 msgid "If C<NULL> then no options are added."
9005 msgstr ""
9006
9007 #. type: =head2
9008 #: ../fish/guestfish-actions.pod:1481
9009 msgid "get-attach-method"
9010 msgstr "get-attach-method"
9011
9012 #. type: verbatim
9013 #: ../fish/guestfish-actions.pod:1483
9014 #, no-wrap
9015 msgid ""
9016 " get-attach-method\n"
9017 "\n"
9018 msgstr ""
9019 " get-attach-method\n"
9020 "\n"
9021
9022 #. type: textblock
9023 #: ../fish/guestfish-actions.pod:1485
9024 msgid "Return the current attach method.  See L</set-attach-method>."
9025 msgstr ""
9026
9027 #. type: =head2
9028 #: ../fish/guestfish-actions.pod:1487
9029 msgid "get-autosync"
9030 msgstr "get-autosync"
9031
9032 #. type: verbatim
9033 #: ../fish/guestfish-actions.pod:1489
9034 #, no-wrap
9035 msgid ""
9036 " get-autosync\n"
9037 "\n"
9038 msgstr ""
9039 " get-autosync\n"
9040 "\n"
9041
9042 #. type: textblock
9043 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
9044 msgid "Get the autosync flag."
9045 msgstr ""
9046
9047 #. type: =head2
9048 #: ../fish/guestfish-actions.pod:1493
9049 msgid "get-direct"
9050 msgstr "get-direct"
9051
9052 #. type: verbatim
9053 #: ../fish/guestfish-actions.pod:1495
9054 #, no-wrap
9055 msgid ""
9056 " get-direct\n"
9057 "\n"
9058 msgstr ""
9059 " get-direct\n"
9060 "\n"
9061
9062 #. type: textblock
9063 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
9064 msgid "Return the direct appliance mode flag."
9065 msgstr ""
9066
9067 #. type: =head2
9068 #: ../fish/guestfish-actions.pod:1499
9069 msgid "get-e2label"
9070 msgstr "get-e2label"
9071
9072 #. type: verbatim
9073 #: ../fish/guestfish-actions.pod:1501
9074 #, no-wrap
9075 msgid ""
9076 " get-e2label device\n"
9077 "\n"
9078 msgstr ""
9079 " get-e2label пристрій\n"
9080 "\n"
9081
9082 #. type: textblock
9083 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
9084 msgid ""
9085 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9086 msgstr ""
9087
9088 #. type: textblock
9089 #: ../fish/guestfish-actions.pod:1506
9090 msgid ""
9091 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9092 "instead."
9093 msgstr ""
9094
9095 #. type: =head2
9096 #: ../fish/guestfish-actions.pod:1513
9097 msgid "get-e2uuid"
9098 msgstr "get-e2uuid"
9099
9100 #. type: verbatim
9101 #: ../fish/guestfish-actions.pod:1515
9102 #, no-wrap
9103 msgid ""
9104 " get-e2uuid device\n"
9105 "\n"
9106 msgstr ""
9107 " get-e2uuid пристрій\n"
9108 "\n"
9109
9110 #. type: textblock
9111 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9112 msgid ""
9113 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9114 msgstr ""
9115
9116 #. type: textblock
9117 #: ../fish/guestfish-actions.pod:1520
9118 msgid ""
9119 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9120 "instead."
9121 msgstr ""
9122
9123 #. type: =head2
9124 #: ../fish/guestfish-actions.pod:1527
9125 msgid "get-memsize"
9126 msgstr "get-memsize"
9127
9128 #. type: verbatim
9129 #: ../fish/guestfish-actions.pod:1529
9130 #, no-wrap
9131 msgid ""
9132 " get-memsize\n"
9133 "\n"
9134 msgstr ""
9135 " get-memsize\n"
9136 "\n"
9137
9138 #. type: textblock
9139 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
9140 msgid ""
9141 "This gets the memory size in megabytes allocated to the qemu subprocess."
9142 msgstr ""
9143
9144 #. type: textblock
9145 #: ../fish/guestfish-actions.pod:1534
9146 msgid ""
9147 "If L</set-memsize> was not called on this handle, and if "
9148 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9149 "value for memsize."
9150 msgstr ""
9151
9152 #. type: textblock
9153 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
9154 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4462
9155 #: ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556
9156 #: ../src/guestfs-actions.pod:6755 ../src/guestfs-actions.pod:6881
9157 msgid ""
9158 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9159 msgstr ""
9160
9161 #. type: =head2
9162 #: ../fish/guestfish-actions.pod:1541
9163 msgid "get-network"
9164 msgstr "get-network"
9165
9166 #. type: verbatim
9167 #: ../fish/guestfish-actions.pod:1543
9168 #, no-wrap
9169 msgid ""
9170 " get-network\n"
9171 "\n"
9172 msgstr ""
9173 " get-network\n"
9174 "\n"
9175
9176 #. type: textblock
9177 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
9178 msgid "This returns the enable network flag."
9179 msgstr ""
9180
9181 #. type: =head2
9182 #: ../fish/guestfish-actions.pod:1547
9183 msgid "get-path"
9184 msgstr "get-path"
9185
9186 #. type: verbatim
9187 #: ../fish/guestfish-actions.pod:1549
9188 #, no-wrap
9189 msgid ""
9190 " get-path\n"
9191 "\n"
9192 msgstr ""
9193 " get-path\n"
9194 "\n"
9195
9196 #. type: textblock
9197 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
9198 msgid "Return the current search path."
9199 msgstr ""
9200
9201 #. type: textblock
9202 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
9203 msgid ""
9204 "This is always non-NULL.  If it wasn't set already, then this will return "
9205 "the default path."
9206 msgstr ""
9207
9208 #. type: =head2
9209 #: ../fish/guestfish-actions.pod:1556
9210 msgid "get-pgroup"
9211 msgstr ""
9212
9213 #. type: verbatim
9214 #: ../fish/guestfish-actions.pod:1558
9215 #, no-wrap
9216 msgid ""
9217 " get-pgroup\n"
9218 "\n"
9219 msgstr ""
9220
9221 #. type: textblock
9222 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
9223 msgid "This returns the process group flag."
9224 msgstr ""
9225
9226 #. type: =head2
9227 #: ../fish/guestfish-actions.pod:1562
9228 msgid "get-pid"
9229 msgstr "get-pid"
9230
9231 #. type: =head2
9232 #: ../fish/guestfish-actions.pod:1564
9233 msgid "pid"
9234 msgstr "PID"
9235
9236 #. type: verbatim
9237 #: ../fish/guestfish-actions.pod:1566
9238 #, no-wrap
9239 msgid ""
9240 " get-pid\n"
9241 "\n"
9242 msgstr ""
9243 " get-pid\n"
9244 "\n"
9245
9246 #. type: textblock
9247 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
9248 msgid ""
9249 "Return the process ID of the qemu subprocess.  If there is no qemu "
9250 "subprocess, then this will return an error."
9251 msgstr ""
9252
9253 #. type: textblock
9254 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
9255 msgid "This is an internal call used for debugging and testing."
9256 msgstr ""
9257
9258 #. type: =head2
9259 #: ../fish/guestfish-actions.pod:1573
9260 msgid "get-qemu"
9261 msgstr "get-qemu"
9262
9263 #. type: verbatim
9264 #: ../fish/guestfish-actions.pod:1575
9265 #, no-wrap
9266 msgid ""
9267 " get-qemu\n"
9268 "\n"
9269 msgstr ""
9270 " get-qemu\n"
9271 "\n"
9272
9273 #. type: textblock
9274 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
9275 msgid "Return the current qemu binary."
9276 msgstr ""
9277
9278 #. type: textblock
9279 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
9280 msgid ""
9281 "This is always non-NULL.  If it wasn't set already, then this will return "
9282 "the default qemu binary name."
9283 msgstr ""
9284
9285 #. type: =head2
9286 #: ../fish/guestfish-actions.pod:1582
9287 msgid "get-recovery-proc"
9288 msgstr "get-recovery-proc"
9289
9290 #. type: verbatim
9291 #: ../fish/guestfish-actions.pod:1584
9292 #, no-wrap
9293 msgid ""
9294 " get-recovery-proc\n"
9295 "\n"
9296 msgstr ""
9297 " get-recovery-proc\n"
9298 "\n"
9299
9300 #. type: textblock
9301 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
9302 msgid "Return the recovery process enabled flag."
9303 msgstr ""
9304
9305 #. type: =head2
9306 #: ../fish/guestfish-actions.pod:1588
9307 msgid "get-selinux"
9308 msgstr "get-selinux"
9309
9310 #. type: verbatim
9311 #: ../fish/guestfish-actions.pod:1590
9312 #, no-wrap
9313 msgid ""
9314 " get-selinux\n"
9315 "\n"
9316 msgstr ""
9317 " get-selinux\n"
9318 "\n"
9319
9320 #. type: textblock
9321 #: ../fish/guestfish-actions.pod:1592
9322 msgid ""
9323 "This returns the current setting of the selinux flag which is passed to the "
9324 "appliance at boot time.  See L</set-selinux>."
9325 msgstr ""
9326
9327 #. type: =head2
9328 #: ../fish/guestfish-actions.pod:1598
9329 msgid "get-smp"
9330 msgstr ""
9331
9332 #. type: verbatim
9333 #: ../fish/guestfish-actions.pod:1600
9334 #, no-wrap
9335 msgid ""
9336 " get-smp\n"
9337 "\n"
9338 msgstr ""
9339
9340 #. type: textblock
9341 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
9342 msgid "This returns the number of virtual CPUs assigned to the appliance."
9343 msgstr ""
9344
9345 #. type: =head2
9346 #: ../fish/guestfish-actions.pod:1604
9347 msgid "get-state"
9348 msgstr "get-state"
9349
9350 #. type: verbatim
9351 #: ../fish/guestfish-actions.pod:1606
9352 #, no-wrap
9353 msgid ""
9354 " get-state\n"
9355 "\n"
9356 msgstr ""
9357 " get-state\n"
9358 "\n"
9359
9360 #. type: textblock
9361 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
9362 msgid ""
9363 "This returns the current state as an opaque integer.  This is only useful "
9364 "for printing debug and internal error messages."
9365 msgstr ""
9366
9367 #. type: textblock
9368 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
9369 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
9370 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2582
9371 #: ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3930
9372 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4018
9373 msgid "For more information on states, see L<guestfs(3)>."
9374 msgstr ""
9375
9376 #. type: =head2
9377 #: ../fish/guestfish-actions.pod:1613
9378 msgid "get-trace"
9379 msgstr "get-trace"
9380
9381 #. type: verbatim
9382 #: ../fish/guestfish-actions.pod:1615
9383 #, no-wrap
9384 msgid ""
9385 " get-trace\n"
9386 "\n"
9387 msgstr ""
9388 " get-trace\n"
9389 "\n"
9390
9391 #. type: textblock
9392 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
9393 msgid "Return the command trace flag."
9394 msgstr ""
9395
9396 #. type: =head2
9397 #: ../fish/guestfish-actions.pod:1619
9398 msgid "get-umask"
9399 msgstr "get-umask"
9400
9401 #. type: verbatim
9402 #: ../fish/guestfish-actions.pod:1621
9403 #, no-wrap
9404 msgid ""
9405 " get-umask\n"
9406 "\n"
9407 msgstr ""
9408 " get-umask\n"
9409 "\n"
9410
9411 #. type: textblock
9412 #: ../fish/guestfish-actions.pod:1623
9413 msgid ""
9414 "Return the current umask.  By default the umask is C<022> unless it has been "
9415 "set by calling L</umask>."
9416 msgstr ""
9417
9418 #. type: =head2
9419 #: ../fish/guestfish-actions.pod:1626
9420 msgid "get-verbose"
9421 msgstr "get-verbose"
9422
9423 #. type: verbatim
9424 #: ../fish/guestfish-actions.pod:1628
9425 #, no-wrap
9426 msgid ""
9427 " get-verbose\n"
9428 "\n"
9429 msgstr ""
9430 " get-verbose\n"
9431 "\n"
9432
9433 #. type: textblock
9434 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
9435 msgid "This returns the verbose messages flag."
9436 msgstr ""
9437
9438 #. type: =head2
9439 #: ../fish/guestfish-actions.pod:1632
9440 msgid "getcon"
9441 msgstr "getcon"
9442
9443 #. type: verbatim
9444 #: ../fish/guestfish-actions.pod:1634
9445 #, no-wrap
9446 msgid ""
9447 " getcon\n"
9448 "\n"
9449 msgstr ""
9450 " getcon\n"
9451 "\n"
9452
9453 #. type: textblock
9454 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
9455 msgid "This gets the SELinux security context of the daemon."
9456 msgstr ""
9457
9458 #. type: textblock
9459 #: ../fish/guestfish-actions.pod:1638
9460 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9461 msgstr ""
9462
9463 #. type: =head2
9464 #: ../fish/guestfish-actions.pod:1641
9465 msgid "getxattr"
9466 msgstr "getxattr"
9467
9468 #. type: verbatim
9469 #: ../fish/guestfish-actions.pod:1643
9470 #, no-wrap
9471 msgid ""
9472 " getxattr path name\n"
9473 "\n"
9474 msgstr ""
9475 " getxattr шлях назва\n"
9476 "\n"
9477
9478 #. type: textblock
9479 #: ../fish/guestfish-actions.pod:1645
9480 msgid ""
9481 "Get a single extended attribute from file C<path> named C<name>.  This call "
9482 "follows symlinks.  If you want to lookup an extended attribute for the "
9483 "symlink itself, use L</lgetxattr>."
9484 msgstr ""
9485
9486 #. type: textblock
9487 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
9488 msgid ""
9489 "Normally it is better to get all extended attributes from a file in one go "
9490 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9491 "buggy and do not provide a way to list out attributes.  For these "
9492 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9493 "attributes you want in advance and call this function."
9494 msgstr ""
9495
9496 #. type: textblock
9497 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
9498 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
9499 msgid ""
9500 "Extended attribute values are blobs of binary data.  If there is no extended "
9501 "attribute named C<name>, this returns an error."
9502 msgstr ""
9503
9504 #. type: textblock
9505 #: ../fish/guestfish-actions.pod:1659
9506 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9507 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9508
9509 #. type: =head2
9510 #: ../fish/guestfish-actions.pod:1661
9511 msgid "getxattrs"
9512 msgstr "getxattrs"
9513
9514 #. type: verbatim
9515 #: ../fish/guestfish-actions.pod:1663
9516 #, no-wrap
9517 msgid ""
9518 " getxattrs path\n"
9519 "\n"
9520 msgstr ""
9521 " getxattrs шлях\n"
9522 "\n"
9523
9524 #. type: textblock
9525 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
9526 msgid ""
9527 "This call lists the extended attributes of the file or directory C<path>."
9528 msgstr ""
9529
9530 #. type: textblock
9531 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
9532 msgid ""
9533 "At the system call level, this is a combination of the L<listxattr(2)> and "
9534 "L<getxattr(2)> calls."
9535 msgstr ""
9536
9537 #. type: textblock
9538 #: ../fish/guestfish-actions.pod:1671
9539 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9540 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9541
9542 #. type: =head2
9543 #: ../fish/guestfish-actions.pod:1673
9544 msgid "glob-expand"
9545 msgstr "glob-expand"
9546
9547 #. type: verbatim
9548 #: ../fish/guestfish-actions.pod:1675
9549 #, no-wrap
9550 msgid ""
9551 " glob-expand pattern\n"
9552 "\n"
9553 msgstr ""
9554 " glob-expand шаблон\n"
9555 "\n"
9556
9557 #. type: textblock
9558 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
9559 msgid ""
9560 "This command searches for all the pathnames matching C<pattern> according to "
9561 "the wildcard expansion rules used by the shell."
9562 msgstr ""
9563
9564 #. type: textblock
9565 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
9566 msgid ""
9567 "If no paths match, then this returns an empty list (note: not an error)."
9568 msgstr ""
9569
9570 #. type: textblock
9571 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
9572 msgid ""
9573 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9574 "GLOB_BRACE>.  See that manual page for more details."
9575 msgstr ""
9576
9577 #. type: =head2
9578 #: ../fish/guestfish-actions.pod:1688
9579 msgid "grep"
9580 msgstr "grep"
9581
9582 #. type: verbatim
9583 #: ../fish/guestfish-actions.pod:1690
9584 #, no-wrap
9585 msgid ""
9586 " grep regex path\n"
9587 "\n"
9588 msgstr ""
9589 " grepi формальний_вираз шлях\n"
9590 "\n"
9591
9592 #. type: textblock
9593 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
9594 msgid "This calls the external C<grep> program and returns the matching lines."
9595 msgstr ""
9596
9597 #. type: =head2
9598 #: ../fish/guestfish-actions.pod:1698
9599 msgid "grepi"
9600 msgstr "grepi"
9601
9602 #. type: verbatim
9603 #: ../fish/guestfish-actions.pod:1700
9604 #, no-wrap
9605 msgid ""
9606 " grepi regex path\n"
9607 "\n"
9608 msgstr ""
9609 " grepi формальний_вираз шлях\n"
9610 "\n"
9611
9612 #. type: textblock
9613 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
9614 msgid ""
9615 "This calls the external C<grep -i> program and returns the matching lines."
9616 msgstr ""
9617
9618 #. type: =head2
9619 #: ../fish/guestfish-actions.pod:1708
9620 msgid "grub-install"
9621 msgstr "grub-install"
9622
9623 #. type: verbatim
9624 #: ../fish/guestfish-actions.pod:1710
9625 #, no-wrap
9626 msgid ""
9627 " grub-install root device\n"
9628 "\n"
9629 msgstr ""
9630 " grub-install кореневий пристрій\n"
9631 "\n"
9632
9633 #. type: textblock
9634 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
9635 msgid ""
9636 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9637 "with the root directory being C<root>."
9638 msgstr ""
9639
9640 #. type: textblock
9641 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
9642 msgid ""
9643 "There is currently no way in the API to install grub2, which is used by most "
9644 "modern Linux guests.  It is possible to run the grub2 command from the "
9645 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9646 msgstr ""
9647
9648 #. type: textblock
9649 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
9650 msgid ""
9651 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9652 "compatible with itself, so this only works in rather narrow circumstances.  "
9653 "Careful testing with each guest version is advisable."
9654 msgstr ""
9655
9656 #. type: textblock
9657 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
9658 msgid ""
9659 "If grub-install reports the error \"No suitable drive was found in the "
9660 "generated device map.\" it may be that you need to create a C</boot/grub/"
9661 "device.map> file first that contains the mapping between grub device names "
9662 "and Linux device names.  It is usually sufficient to create a file "
9663 "containing:"
9664 msgstr ""
9665
9666 #. type: verbatim
9667 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
9668 #, no-wrap
9669 msgid ""
9670 " (hd0) /dev/vda\n"
9671 "\n"
9672 msgstr ""
9673
9674 #. type: textblock
9675 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
9676 msgid "replacing C</dev/vda> with the name of the installation device."
9677 msgstr ""
9678
9679 #. type: =head2
9680 #: ../fish/guestfish-actions.pod:1748
9681 msgid "head"
9682 msgstr "head"
9683
9684 #. type: verbatim
9685 #: ../fish/guestfish-actions.pod:1750
9686 #, no-wrap
9687 msgid ""
9688 " head path\n"
9689 "\n"
9690 msgstr ""
9691 " head шлях\n"
9692 "\n"
9693
9694 #. type: textblock
9695 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
9696 msgid ""
9697 "This command returns up to the first 10 lines of a file as a list of strings."
9698 msgstr ""
9699
9700 #. type: =head2
9701 #: ../fish/guestfish-actions.pod:1758
9702 msgid "head-n"
9703 msgstr "head-n"
9704
9705 #. type: verbatim
9706 #: ../fish/guestfish-actions.pod:1760
9707 #, no-wrap
9708 msgid ""
9709 " head-n nrlines path\n"
9710 "\n"
9711 msgstr ""
9712
9713 #. type: textblock
9714 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
9715 msgid ""
9716 "If the parameter C<nrlines> is a positive number, this returns the first "
9717 "C<nrlines> lines of the file C<path>."
9718 msgstr ""
9719
9720 #. type: textblock
9721 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
9722 msgid ""
9723 "If the parameter C<nrlines> is a negative number, this returns lines from "
9724 "the file C<path>, excluding the last C<nrlines> lines."
9725 msgstr ""
9726
9727 #. type: textblock
9728 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4843
9729 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7460
9730 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9731 msgstr ""
9732
9733 #. type: =head2
9734 #: ../fish/guestfish-actions.pod:1773
9735 msgid "hexdump"
9736 msgstr "hexdump"
9737
9738 #. type: verbatim
9739 #: ../fish/guestfish-actions.pod:1775
9740 #, no-wrap
9741 msgid ""
9742 " hexdump path\n"
9743 "\n"
9744 msgstr ""
9745 " hexdump шлях\n"
9746 "\n"
9747
9748 #. type: textblock
9749 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
9750 msgid ""
9751 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9752 "readable, canonical hex dump of the file."
9753 msgstr ""
9754
9755 #. type: =head2
9756 #: ../fish/guestfish-actions.pod:1783
9757 msgid "initrd-cat"
9758 msgstr "initrd-cat"
9759
9760 #. type: verbatim
9761 #: ../fish/guestfish-actions.pod:1785
9762 #, no-wrap
9763 msgid ""
9764 " initrd-cat initrdpath filename\n"
9765 "\n"
9766 msgstr ""
9767 " initrd-cat шлях_initrd назва_файла\n"
9768 "\n"
9769
9770 #. type: textblock
9771 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
9772 msgid ""
9773 "This command unpacks the file C<filename> from the initrd file called "
9774 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9775 "character."
9776 msgstr ""
9777
9778 #. type: textblock
9779 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
9780 msgid ""
9781 "For example, in guestfish you could use the following command to examine the "
9782 "boot script (usually called C</init>)  contained in a Linux initrd or "
9783 "initramfs image:"
9784 msgstr ""
9785
9786 #. type: verbatim
9787 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
9788 #, no-wrap
9789 msgid ""
9790 " initrd-cat /boot/initrd-<version>.img init\n"
9791 "\n"
9792 msgstr ""
9793
9794 #. type: textblock
9795 #: ../fish/guestfish-actions.pod:1797
9796 msgid "See also L</initrd-list>."
9797 msgstr "Див. також L</initrd-list>."
9798
9799 #. type: =head2
9800 #: ../fish/guestfish-actions.pod:1802
9801 msgid "initrd-list"
9802 msgstr "initrd-list"
9803
9804 #. type: verbatim
9805 #: ../fish/guestfish-actions.pod:1804
9806 #, no-wrap
9807 msgid ""
9808 " initrd-list path\n"
9809 "\n"
9810 msgstr ""
9811 " initrd-list шлях\n"
9812 "\n"
9813
9814 #. type: textblock
9815 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
9816 msgid "This command lists out files contained in an initrd."
9817 msgstr ""
9818
9819 #. type: textblock
9820 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
9821 msgid ""
9822 "The files are listed without any initial C</> character.  The files are "
9823 "listed in the order they appear (not necessarily alphabetical).  Directory "
9824 "names are listed as separate items."
9825 msgstr ""
9826
9827 #. type: textblock
9828 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
9829 msgid ""
9830 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9831 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9832 "files)."
9833 msgstr ""
9834
9835 #. type: =head2
9836 #: ../fish/guestfish-actions.pod:1816
9837 msgid "inotify-add-watch"
9838 msgstr "inotify-add-watch"
9839
9840 #. type: verbatim
9841 #: ../fish/guestfish-actions.pod:1818
9842 #, no-wrap
9843 msgid ""
9844 " inotify-add-watch path mask\n"
9845 "\n"
9846 msgstr ""
9847 " inotify-add-watch шлях маска\n"
9848 "\n"
9849
9850 #. type: textblock
9851 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
9852 msgid "Watch C<path> for the events listed in C<mask>."
9853 msgstr ""
9854
9855 #. type: textblock
9856 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
9857 msgid ""
9858 "Note that if C<path> is a directory then events within that directory are "
9859 "watched, but this does I<not> happen recursively (in subdirectories)."
9860 msgstr ""
9861
9862 #. type: textblock
9863 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
9864 msgid ""
9865 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9866 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9867 msgstr ""
9868
9869 #. type: =head2
9870 #: ../fish/guestfish-actions.pod:1830
9871 msgid "inotify-close"
9872 msgstr "inotify-close"
9873
9874 #. type: verbatim
9875 #: ../fish/guestfish-actions.pod:1832
9876 #, no-wrap
9877 msgid ""
9878 " inotify-close\n"
9879 "\n"
9880 msgstr ""
9881 " inotify-close\n"
9882 "\n"
9883
9884 #. type: textblock
9885 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
9886 msgid ""
9887 "This closes the inotify handle which was previously opened by inotify_init.  "
9888 "It removes all watches, throws away any pending events, and deallocates all "
9889 "resources."
9890 msgstr ""
9891
9892 #. type: =head2
9893 #: ../fish/guestfish-actions.pod:1838
9894 msgid "inotify-files"
9895 msgstr "inotify-files"
9896
9897 #. type: verbatim
9898 #: ../fish/guestfish-actions.pod:1840
9899 #, no-wrap
9900 msgid ""
9901 " inotify-files\n"
9902 "\n"
9903 msgstr ""
9904 " inotify-files\n"
9905 "\n"
9906
9907 #. type: textblock
9908 #: ../fish/guestfish-actions.pod:1842
9909 msgid ""
9910 "This function is a helpful wrapper around L</inotify-read> which just "
9911 "returns a list of pathnames of objects that were touched.  The returned "
9912 "pathnames are sorted and deduplicated."
9913 msgstr ""
9914
9915 #. type: =head2
9916 #: ../fish/guestfish-actions.pod:1846
9917 msgid "inotify-init"
9918 msgstr "inotify-init"
9919
9920 #. type: verbatim
9921 #: ../fish/guestfish-actions.pod:1848
9922 #, no-wrap
9923 msgid ""
9924 " inotify-init maxevents\n"
9925 "\n"
9926 msgstr ""
9927
9928 #. type: textblock
9929 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
9930 msgid ""
9931 "This command creates a new inotify handle.  The inotify subsystem can be "
9932 "used to notify events which happen to objects in the guest filesystem."
9933 msgstr ""
9934
9935 #. type: textblock
9936 #: ../fish/guestfish-actions.pod:1854
9937 msgid ""
9938 "C<maxevents> is the maximum number of events which will be queued up between "
9939 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9940 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9941 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9942 "but records the fact that it threw them away by setting a flag "
9943 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9944 msgstr ""
9945
9946 #. type: textblock
9947 #: ../fish/guestfish-actions.pod:1864
9948 msgid ""
9949 "Before any events are generated, you have to add some watches to the "
9950 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9951 "L</inotify-watch-all>."
9952 msgstr ""
9953
9954 #. type: textblock
9955 #: ../fish/guestfish-actions.pod:1870
9956 msgid ""
9957 "Queued up events should be read periodically by calling L</inotify-read> (or "
9958 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9959 "If you don't read the events out often enough then you risk the internal "
9960 "queue overflowing."
9961 msgstr ""
9962
9963 #. type: textblock
9964 #: ../fish/guestfish-actions.pod:1877
9965 msgid ""
9966 "The handle should be closed after use by calling L</inotify-close>.  This "
9967 "also removes any watches automatically."
9968 msgstr ""
9969
9970 #. type: textblock
9971 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
9972 msgid ""
9973 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9974 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9975 "that there is one global inotify handle per libguestfs instance."
9976 msgstr ""
9977
9978 #. type: =head2
9979 #: ../fish/guestfish-actions.pod:1886
9980 msgid "inotify-read"
9981 msgstr "inotify-read"
9982
9983 #. type: verbatim
9984 #: ../fish/guestfish-actions.pod:1888
9985 #, no-wrap
9986 msgid ""
9987 " inotify-read\n"
9988 "\n"
9989 msgstr ""
9990 " inotify-read\n"
9991 "\n"
9992
9993 #. type: textblock
9994 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
9995 msgid ""
9996 "Return the complete queue of events that have happened since the previous "
9997 "read call."
9998 msgstr ""
9999
10000 #. type: textblock
10001 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
10002 msgid "If no events have happened, this returns an empty list."
10003 msgstr ""
10004
10005 #. type: textblock
10006 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
10007 msgid ""
10008 "I<Note>: In order to make sure that all events have been read, you must call "
10009 "this function repeatedly until it returns an empty list.  The reason is that "
10010 "the call will read events up to the maximum appliance-to-host message size "
10011 "and leave remaining events in the queue."
10012 msgstr ""
10013
10014 #. type: =head2
10015 #: ../fish/guestfish-actions.pod:1901
10016 msgid "inotify-rm-watch"
10017 msgstr "inotify-rm-watch"
10018
10019 #. type: verbatim
10020 #: ../fish/guestfish-actions.pod:1903
10021 #, no-wrap
10022 msgid ""
10023 " inotify-rm-watch wd\n"
10024 "\n"
10025 msgstr ""
10026
10027 #. type: textblock
10028 #: ../fish/guestfish-actions.pod:1905
10029 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
10030 msgstr ""
10031
10032 #. type: =head2
10033 #: ../fish/guestfish-actions.pod:1908
10034 msgid "inspect-get-arch"
10035 msgstr "inspect-get-arch"
10036
10037 #. type: verbatim
10038 #: ../fish/guestfish-actions.pod:1910
10039 #, no-wrap
10040 msgid ""
10041 " inspect-get-arch root\n"
10042 "\n"
10043 msgstr ""
10044 " inspect-get-arch корінь\n"
10045 "\n"
10046
10047 #. type: textblock
10048 #: ../fish/guestfish-actions.pod:1912
10049 msgid ""
10050 "This returns the architecture of the inspected operating system.  The "
10051 "possible return values are listed under L</file-architecture>."
10052 msgstr ""
10053
10054 #. type: textblock
10055 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
10056 msgid ""
10057 "If the architecture could not be determined, then the string C<unknown> is "
10058 "returned."
10059 msgstr ""
10060
10061 #. type: textblock
10062 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
10063 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
10064 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
10065 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
10066 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
10067 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
10068 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
10069 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
10070 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3048
10071 #: ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254
10072 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404
10073 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516
10074 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590
10075 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3654
10076 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3691
10077 #: ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3725
10078 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3868
10079 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10080 msgstr ""
10081
10082 #. type: =head2
10083 #: ../fish/guestfish-actions.pod:1921
10084 msgid "inspect-get-distro"
10085 msgstr "inspect-get-distro"
10086
10087 #. type: verbatim
10088 #: ../fish/guestfish-actions.pod:1923
10089 #, no-wrap
10090 msgid ""
10091 " inspect-get-distro root\n"
10092 "\n"
10093 msgstr ""
10094 " inspect-get-distro корінь\n"
10095 "\n"
10096
10097 #. type: textblock
10098 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
10099 msgid ""
10100 "This returns the distro (distribution) of the inspected operating system."
10101 msgstr ""
10102
10103 #. type: textblock
10104 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
10105 msgid "Currently defined distros are:"
10106 msgstr ""
10107
10108 #. type: =item
10109 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
10110 msgid "\"archlinux\""
10111 msgstr "\"archlinux\""
10112
10113 #. type: textblock
10114 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
10115 msgid "Arch Linux."
10116 msgstr "Arch Linux."
10117
10118 #. type: =item
10119 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
10120 msgid "\"centos\""
10121 msgstr ""
10122
10123 #. type: textblock
10124 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
10125 msgid "CentOS."
10126 msgstr ""
10127
10128 #. type: =item
10129 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
10130 msgid "\"debian\""
10131 msgstr "\"debian\""
10132
10133 #. type: textblock
10134 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
10135 msgid "Debian."
10136 msgstr "Debian."
10137
10138 #. type: =item
10139 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
10140 msgid "\"fedora\""
10141 msgstr "\"fedora\""
10142
10143 #. type: textblock
10144 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
10145 msgid "Fedora."
10146 msgstr "Fedora."
10147
10148 #. type: =item
10149 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
10150 msgid "\"gentoo\""
10151 msgstr "\"gentoo\""
10152
10153 #. type: textblock
10154 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
10155 msgid "Gentoo."
10156 msgstr "Gentoo."
10157
10158 #. type: =item
10159 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
10160 msgid "\"linuxmint\""
10161 msgstr "\"linuxmint\""
10162
10163 #. type: textblock
10164 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
10165 msgid "Linux Mint."
10166 msgstr "Linux Mint."
10167
10168 #. type: =item
10169 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
10170 msgid "\"mageia\""
10171 msgstr ""
10172
10173 #. type: textblock
10174 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
10175 msgid "Mageia."
10176 msgstr ""
10177
10178 #. type: =item
10179 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
10180 msgid "\"mandriva\""
10181 msgstr "\"mandriva\""
10182
10183 #. type: textblock
10184 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
10185 msgid "Mandriva."
10186 msgstr "Mandriva."
10187
10188 #. type: =item
10189 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
10190 msgid "\"meego\""
10191 msgstr "\"meego\""
10192
10193 #. type: textblock
10194 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
10195 msgid "MeeGo."
10196 msgstr "MeeGo."
10197
10198 #. type: =item
10199 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
10200 msgid "\"opensuse\""
10201 msgstr ""
10202
10203 #. type: textblock
10204 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
10205 msgid "OpenSUSE."
10206 msgstr ""
10207
10208 #. type: =item
10209 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
10210 msgid "\"pardus\""
10211 msgstr "\"pardus\""
10212
10213 #. type: textblock
10214 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
10215 msgid "Pardus."
10216 msgstr "Pardus."
10217
10218 #. type: =item
10219 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
10220 msgid "\"redhat-based\""
10221 msgstr "\"redhat-based\""
10222
10223 #. type: textblock
10224 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
10225 msgid "Some Red Hat-derived distro."
10226 msgstr "Дистрибутив, що походить від Red Hat."
10227
10228 #. type: =item
10229 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
10230 msgid "\"rhel\""
10231 msgstr "\"rhel\""
10232
10233 #. type: textblock
10234 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
10235 msgid "Red Hat Enterprise Linux."
10236 msgstr "Red Hat Enterprise Linux."
10237
10238 #. type: =item
10239 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
10240 msgid "\"scientificlinux\""
10241 msgstr "\"scientificlinux\""
10242
10243 #. type: textblock
10244 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
10245 msgid "Scientific Linux."
10246 msgstr "Scientific Linux."
10247
10248 #. type: =item
10249 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
10250 msgid "\"slackware\""
10251 msgstr "\"slackware\""
10252
10253 #. type: textblock
10254 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
10255 msgid "Slackware."
10256 msgstr "Slackware."
10257
10258 #. type: =item
10259 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
10260 msgid "\"ttylinux\""
10261 msgstr ""
10262
10263 #. type: textblock
10264 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
10265 msgid "ttylinux."
10266 msgstr ""
10267
10268 #. type: =item
10269 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
10270 msgid "\"ubuntu\""
10271 msgstr "\"ubuntu\""
10272
10273 #. type: textblock
10274 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
10275 msgid "Ubuntu."
10276 msgstr "Ubuntu."
10277
10278 #. type: =item
10279 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
10280 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3136
10281 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3625
10282 msgid "\"unknown\""
10283 msgstr "\"unknown\""
10284
10285 #. type: textblock
10286 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
10287 msgid "The distro could not be determined."
10288 msgstr "Дистрибутив, тип якого не вдалося визначити."
10289
10290 #. type: =item
10291 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
10292 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
10293 msgid "\"windows\""
10294 msgstr "\"windows\""
10295
10296 #. type: textblock
10297 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
10298 msgid ""
10299 "Windows does not have distributions.  This string is returned if the OS type "
10300 "is Windows."
10301 msgstr ""
10302
10303 #. type: textblock
10304 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
10305 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3147
10306 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3631
10307 msgid ""
10308 "Future versions of libguestfs may return other strings here.  The caller "
10309 "should be prepared to handle any string."
10310 msgstr ""
10311
10312 #. type: =head2
10313 #: ../fish/guestfish-actions.pod:2016
10314 msgid "inspect-get-drive-mappings"
10315 msgstr ""
10316
10317 #. type: verbatim
10318 #: ../fish/guestfish-actions.pod:2018
10319 #, no-wrap
10320 msgid ""
10321 " inspect-get-drive-mappings root\n"
10322 "\n"
10323 msgstr ""
10324
10325 #. type: textblock
10326 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
10327 msgid ""
10328 "This call is useful for Windows which uses a primitive system of assigning "
10329 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10330 "Windows Registry to find out how disks/partitions are mapped to drive "
10331 "letters, and returns a hash table as in the example below:"
10332 msgstr ""
10333
10334 #. type: verbatim
10335 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
10336 #, no-wrap
10337 msgid ""
10338 " C      =>     /dev/vda2\n"
10339 " E      =>     /dev/vdb1\n"
10340 " F      =>     /dev/vdc1\n"
10341 "\n"
10342 msgstr ""
10343
10344 #. type: textblock
10345 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
10346 msgid ""
10347 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10348 "and just contains the drive letter, without the customary colon separator "
10349 "character."
10350 msgstr ""
10351
10352 #. type: textblock
10353 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
10354 msgid ""
10355 "In future we may support other operating systems that also used drive "
10356 "letters, but the keys for those might not be case insensitive and might be "
10357 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10358 "C<h1> etc."
10359 msgstr ""
10360
10361 #. type: textblock
10362 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
10363 msgid ""
10364 "For Windows guests, currently only hard drive mappings are returned.  "
10365 "Removable disks (eg. DVD-ROMs) are ignored."
10366 msgstr ""
10367
10368 #. type: textblock
10369 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
10370 msgid ""
10371 "For guests that do not use drive mappings, or if the drive mappings could "
10372 "not be determined, this returns an empty hash table."
10373 msgstr ""
10374
10375 #. type: textblock
10376 #: ../fish/guestfish-actions.pod:2045
10377 msgid ""
10378 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10379 "get-mountpoints>, L</inspect-get-filesystems>."
10380 msgstr ""
10381
10382 #. type: =head2
10383 #: ../fish/guestfish-actions.pod:2049
10384 msgid "inspect-get-filesystems"
10385 msgstr "inspect-get-filesystems"
10386
10387 #. type: verbatim
10388 #: ../fish/guestfish-actions.pod:2051
10389 #, no-wrap
10390 msgid ""
10391 " inspect-get-filesystems root\n"
10392 "\n"
10393 msgstr ""
10394 " inspect-get-filesystems корінь\n"
10395 "\n"
10396
10397 #. type: textblock
10398 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
10399 msgid ""
10400 "This returns a list of all the filesystems that we think are associated with "
10401 "this operating system.  This includes the root filesystem, other ordinary "
10402 "filesystems, and non-mounted devices like swap partitions."
10403 msgstr ""
10404
10405 #. type: textblock
10406 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
10407 msgid ""
10408 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10409 "to be shared between operating systems."
10410 msgstr ""
10411
10412 #. type: textblock
10413 #: ../fish/guestfish-actions.pod:2061
10414 msgid ""
10415 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10416 "get-mountpoints>."
10417 msgstr ""
10418
10419 #. type: =head2
10420 #: ../fish/guestfish-actions.pod:2064
10421 msgid "inspect-get-format"
10422 msgstr "inspect-get-format"
10423
10424 #. type: verbatim
10425 #: ../fish/guestfish-actions.pod:2066
10426 #, no-wrap
10427 msgid ""
10428 " inspect-get-format root\n"
10429 "\n"
10430 msgstr ""
10431 " inspect-get-format корінь\n"
10432 "\n"
10433
10434 #. type: textblock
10435 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
10436 msgid ""
10437 "This returns the format of the inspected operating system.  You can use it "
10438 "to detect install images, live CDs and similar."
10439 msgstr ""
10440
10441 #. type: textblock
10442 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
10443 msgid "Currently defined formats are:"
10444 msgstr ""
10445
10446 #. type: =item
10447 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
10448 msgid "\"installed\""
10449 msgstr "\"installed\""
10450
10451 #. type: textblock
10452 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
10453 msgid "This is an installed operating system."
10454 msgstr "Це встановлена операційна система."
10455
10456 #. type: =item
10457 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
10458 msgid "\"installer\""
10459 msgstr ""
10460
10461 #. type: textblock
10462 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
10463 msgid ""
10464 "The disk image being inspected is not an installed operating system, but a "
10465 "I<bootable> install disk, live CD, or similar."
10466 msgstr ""
10467
10468 #. type: textblock
10469 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
10470 msgid "The format of this disk image is not known."
10471 msgstr ""
10472
10473 #. type: =head2
10474 #: ../fish/guestfish-actions.pod:2095
10475 msgid "inspect-get-hostname"
10476 msgstr "inspect-get-hostname"
10477
10478 #. type: verbatim
10479 #: ../fish/guestfish-actions.pod:2097
10480 #, no-wrap
10481 msgid ""
10482 " inspect-get-hostname root\n"
10483 "\n"
10484 msgstr ""
10485 " inspect-get-hostname корінь\n"
10486 "\n"
10487
10488 #. type: textblock
10489 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
10490 msgid ""
10491 "This function returns the hostname of the operating system as found by "
10492 "inspection of the guest's configuration files."
10493 msgstr ""
10494
10495 #. type: textblock
10496 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
10497 msgid ""
10498 "If the hostname could not be determined, then the string C<unknown> is "
10499 "returned."
10500 msgstr ""
10501
10502 #. type: =head2
10503 #: ../fish/guestfish-actions.pod:2107
10504 msgid "inspect-get-icon"
10505 msgstr ""
10506
10507 #. type: verbatim
10508 #: ../fish/guestfish-actions.pod:2109
10509 #, no-wrap
10510 msgid ""
10511 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
10512 "\n"
10513 msgstr ""
10514
10515 #. type: textblock
10516 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
10517 msgid ""
10518 "This function returns an icon corresponding to the inspected operating "
10519 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10520 "to PNG if necessary)."
10521 msgstr ""
10522
10523 #. type: textblock
10524 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
10525 msgid ""
10526 "If it was not possible to get an icon this function returns a zero-length "
10527 "(non-NULL) buffer.  I<Callers must check for this case>."
10528 msgstr ""
10529
10530 #. type: textblock
10531 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
10532 msgid ""
10533 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10534 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10535 "this file will be returned.  You can disable favicons by passing the "
10536 "optional C<favicon> boolean as false (default is true)."
10537 msgstr ""
10538
10539 #. type: textblock
10540 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
10541 msgid ""
10542 "If finding the favicon fails, then we look in other places in the guest for "
10543 "a suitable icon."
10544 msgstr ""
10545
10546 #. type: textblock
10547 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
10548 msgid ""
10549 "If the optional C<highquality> boolean is true then only high quality icons "
10550 "are returned, which means only icons of high resolution with an alpha "
10551 "channel.  The default (false) is to return any icon we can, even if it is of "
10552 "substandard quality."
10553 msgstr ""
10554
10555 #. type: textblock
10556 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
10557 msgid ""
10558 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10559 "before you call this, since it needs to read information from the guest "
10560 "filesystem during the call."
10561 msgstr ""
10562
10563 #. type: textblock
10564 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
10565 msgid ""
10566 "B<Security:> The icon data comes from the untrusted guest, and should be "
10567 "treated with caution.  PNG files have been known to contain exploits.  "
10568 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10569 "trying to process or display the icon."
10570 msgstr ""
10571
10572 #. type: textblock
10573 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
10574 msgid ""
10575 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10576 "tries to return the largest, highest quality icon available.  The "
10577 "application must scale the icon to the required size."
10578 msgstr ""
10579
10580 #. type: textblock
10581 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
10582 msgid ""
10583 "Extracting icons from Windows guests requires the external C<wrestool> "
10584 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10585 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10586 "installed separately."
10587 msgstr ""
10588
10589 #. type: textblock
10590 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
10591 msgid ""
10592 "Operating system icons are usually trademarks.  Seek legal advice before "
10593 "using trademarks in applications."
10594 msgstr ""
10595
10596 #. type: =head2
10597 #: ../fish/guestfish-actions.pod:2173
10598 msgid "inspect-get-major-version"
10599 msgstr "inspect-get-major-version"
10600
10601 #. type: verbatim
10602 #: ../fish/guestfish-actions.pod:2175
10603 #, no-wrap
10604 msgid ""
10605 " inspect-get-major-version root\n"
10606 "\n"
10607 msgstr ""
10608 " inspect-get-major-version корінь\n"
10609 "\n"
10610
10611 #. type: textblock
10612 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
10613 msgid ""
10614 "This returns the major version number of the inspected operating system."
10615 msgstr ""
10616
10617 #. type: textblock
10618 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
10619 msgid ""
10620 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10621 "popular public names used by the operating system.  Notably the operating "
10622 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10623 "1).  You can find out the real versions corresponding to releases of Windows "
10624 "by consulting Wikipedia or MSDN."
10625 msgstr ""
10626
10627 #. type: textblock
10628 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
10629 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
10630 msgid "If the version could not be determined, then C<0> is returned."
10631 msgstr ""
10632
10633 #. type: =head2
10634 #: ../fish/guestfish-actions.pod:2191
10635 msgid "inspect-get-minor-version"
10636 msgstr "inspect-get-minor-version"
10637
10638 #. type: verbatim
10639 #: ../fish/guestfish-actions.pod:2193
10640 #, no-wrap
10641 msgid ""
10642 " inspect-get-minor-version root\n"
10643 "\n"
10644 msgstr ""
10645 " inspect-get-minor-version корінь\n"
10646 "\n"
10647
10648 #. type: textblock
10649 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
10650 msgid ""
10651 "This returns the minor version number of the inspected operating system."
10652 msgstr ""
10653
10654 #. type: textblock
10655 #: ../fish/guestfish-actions.pod:2200
10656 msgid ""
10657 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10658 "get-major-version>."
10659 msgstr ""
10660
10661 #. type: =head2
10662 #: ../fish/guestfish-actions.pod:2203
10663 msgid "inspect-get-mountpoints"
10664 msgstr "inspect-get-mountpoints"
10665
10666 #. type: verbatim
10667 #: ../fish/guestfish-actions.pod:2205
10668 #, no-wrap
10669 msgid ""
10670 " inspect-get-mountpoints root\n"
10671 "\n"
10672 msgstr ""
10673 " inspect-get-mountpoints корінь\n"
10674 "\n"
10675
10676 #. type: textblock
10677 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
10678 msgid ""
10679 "This returns a hash of where we think the filesystems associated with this "
10680 "operating system should be mounted.  Callers should note that this is at "
10681 "best an educated guess made by reading configuration files such as C</etc/"
10682 "fstab>.  I<In particular note> that this may return filesystems which are "
10683 "non-existent or not mountable and callers should be prepared to handle or "
10684 "ignore failures if they try to mount them."
10685 msgstr ""
10686
10687 #. type: textblock
10688 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
10689 msgid ""
10690 "Each element in the returned hashtable has a key which is the path of the "
10691 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10692 "mounted there (eg. C</dev/sda1>)."
10693 msgstr ""
10694
10695 #. type: textblock
10696 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
10697 msgid ""
10698 "Non-mounted devices such as swap devices are I<not> returned in this list."
10699 msgstr ""
10700
10701 #. type: textblock
10702 #: ../fish/guestfish-actions.pod:2224
10703 msgid ""
10704 "For operating systems like Windows which still use drive letters, this call "
10705 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10706 "information about the mapping of drive letters to partitions, see L</inspect-"
10707 "get-drive-mappings>."
10708 msgstr ""
10709
10710 #. type: textblock
10711 #: ../fish/guestfish-actions.pod:2230
10712 msgid ""
10713 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10714 "get-filesystems>."
10715 msgstr ""
10716
10717 #. type: =head2
10718 #: ../fish/guestfish-actions.pod:2233
10719 msgid "inspect-get-package-format"
10720 msgstr "inspect-get-package-format"
10721
10722 #. type: verbatim
10723 #: ../fish/guestfish-actions.pod:2235
10724 #, no-wrap
10725 msgid ""
10726 " inspect-get-package-format root\n"
10727 "\n"
10728 msgstr ""
10729 " inspect-get-package-format корінь\n"
10730 "\n"
10731
10732 #. type: textblock
10733 #: ../fish/guestfish-actions.pod:2237
10734 msgid ""
10735 "This function and L</inspect-get-package-management> return the package "
10736 "format and package management tool used by the inspected operating system.  "
10737 "For example for Fedora these functions would return C<rpm> (package format) "
10738 "and C<yum> (package management)."
10739 msgstr ""
10740
10741 #. type: textblock
10742 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
10743 msgid ""
10744 "This returns the string C<unknown> if we could not determine the package "
10745 "format I<or> if the operating system does not have a real packaging system "
10746 "(eg. Windows)."
10747 msgstr ""
10748
10749 #. type: textblock
10750 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
10751 msgid ""
10752 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10753 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10754 msgstr ""
10755
10756 #. type: =head2
10757 #: ../fish/guestfish-actions.pod:2253
10758 msgid "inspect-get-package-management"
10759 msgstr "inspect-get-package-management"
10760
10761 #. type: verbatim
10762 #: ../fish/guestfish-actions.pod:2255
10763 #, no-wrap
10764 msgid ""
10765 " inspect-get-package-management root\n"
10766 "\n"
10767 msgstr ""
10768 " inspect-get-package-management корінь\n"
10769 "\n"
10770
10771 #. type: textblock
10772 #: ../fish/guestfish-actions.pod:2257
10773 msgid ""
10774 "L</inspect-get-package-format> and this function return the package format "
10775 "and package management tool used by the inspected operating system.  For "
10776 "example for Fedora these functions would return C<rpm> (package format) and "
10777 "C<yum> (package management)."
10778 msgstr ""
10779
10780 #. type: textblock
10781 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
10782 msgid ""
10783 "This returns the string C<unknown> if we could not determine the package "
10784 "management tool I<or> if the operating system does not have a real packaging "
10785 "system (eg. Windows)."
10786 msgstr ""
10787
10788 #. type: textblock
10789 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
10790 msgid ""
10791 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10792 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10793 "versions of libguestfs may return other strings."
10794 msgstr ""
10795
10796 #. type: =head2
10797 #: ../fish/guestfish-actions.pod:2274
10798 msgid "inspect-get-product-name"
10799 msgstr "inspect-get-product-name"
10800
10801 #. type: verbatim
10802 #: ../fish/guestfish-actions.pod:2276
10803 #, no-wrap
10804 msgid ""
10805 " inspect-get-product-name root\n"
10806 "\n"
10807 msgstr ""
10808 " inspect-get-product-name корінь\n"
10809 "\n"
10810
10811 #. type: textblock
10812 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
10813 msgid ""
10814 "This returns the product name of the inspected operating system.  The "
10815 "product name is generally some freeform string which can be displayed to the "
10816 "user, but should not be parsed by programs."
10817 msgstr ""
10818
10819 #. type: textblock
10820 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
10821 msgid ""
10822 "If the product name could not be determined, then the string C<unknown> is "
10823 "returned."
10824 msgstr ""
10825
10826 #. type: =head2
10827 #: ../fish/guestfish-actions.pod:2288
10828 msgid "inspect-get-product-variant"
10829 msgstr ""
10830
10831 #. type: verbatim
10832 #: ../fish/guestfish-actions.pod:2290
10833 #, no-wrap
10834 msgid ""
10835 " inspect-get-product-variant root\n"
10836 "\n"
10837 msgstr ""
10838
10839 #. type: textblock
10840 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
10841 msgid "This returns the product variant of the inspected operating system."
10842 msgstr ""
10843
10844 #. type: textblock
10845 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
10846 msgid ""
10847 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10848 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10849 "is usually a string such as C<Client> or C<Server> (other values are "
10850 "possible).  This can be used to distinguish consumer and enterprise versions "
10851 "of Windows that have the same version number (for example, Windows 7 and "
10852 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10853 "the latter is C<Server>)."
10854 msgstr ""
10855
10856 #. type: textblock
10857 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
10858 msgid ""
10859 "For enterprise Linux guests, in future we intend this to return the product "
10860 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10861 "implemented at present."
10862 msgstr ""
10863
10864 #. type: textblock
10865 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
10866 msgid ""
10867 "If the product variant could not be determined, then the string C<unknown> "
10868 "is returned."
10869 msgstr ""
10870
10871 #. type: textblock
10872 #: ../fish/guestfish-actions.pod:2311
10873 msgid ""
10874 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10875 "get-product-name>, L</inspect-get-major-version>."
10876 msgstr ""
10877
10878 #. type: =head2
10879 #: ../fish/guestfish-actions.pod:2315
10880 msgid "inspect-get-roots"
10881 msgstr "inspect-get-roots"
10882
10883 #. type: verbatim
10884 #: ../fish/guestfish-actions.pod:2317
10885 #, no-wrap
10886 msgid ""
10887 " inspect-get-roots\n"
10888 "\n"
10889 msgstr ""
10890 " inspect-get-roots\n"
10891 "\n"
10892
10893 #. type: textblock
10894 #: ../fish/guestfish-actions.pod:2319
10895 msgid ""
10896 "This function is a convenient way to get the list of root devices, as "
10897 "returned from a previous call to L</inspect-os>, but without redoing the "
10898 "whole inspection process."
10899 msgstr ""
10900
10901 #. type: textblock
10902 #: ../fish/guestfish-actions.pod:2323
10903 msgid ""
10904 "This returns an empty list if either no root devices were found or the "
10905 "caller has not called L</inspect-os>."
10906 msgstr ""
10907
10908 #. type: =head2
10909 #: ../fish/guestfish-actions.pod:2328
10910 msgid "inspect-get-type"
10911 msgstr "inspect-get-type"
10912
10913 #. type: verbatim
10914 #: ../fish/guestfish-actions.pod:2330
10915 #, no-wrap
10916 msgid ""
10917 " inspect-get-type root\n"
10918 "\n"
10919 msgstr ""
10920 " inspect-get-type корінь\n"
10921 "\n"
10922
10923 #. type: textblock
10924 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
10925 msgid ""
10926 "This returns the type of the inspected operating system.  Currently defined "
10927 "types are:"
10928 msgstr ""
10929
10930 #. type: =item
10931 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
10932 msgid "\"linux\""
10933 msgstr "\"linux\""
10934
10935 #. type: textblock
10936 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
10937 msgid "Any Linux-based operating system."
10938 msgstr ""
10939
10940 #. type: textblock
10941 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
10942 msgid "Any Microsoft Windows operating system."
10943 msgstr ""
10944
10945 #. type: =item
10946 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
10947 msgid "\"freebsd\""
10948 msgstr "\"freebsd\""
10949
10950 #. type: textblock
10951 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
10952 msgid "FreeBSD."
10953 msgstr "FreeBSD."
10954
10955 #. type: =item
10956 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
10957 msgid "\"netbsd\""
10958 msgstr ""
10959
10960 #. type: textblock
10961 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
10962 msgid "NetBSD."
10963 msgstr ""
10964
10965 #. type: textblock
10966 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
10967 msgid "The operating system type could not be determined."
10968 msgstr ""
10969
10970 #. type: =head2
10971 #: ../fish/guestfish-actions.pod:2364
10972 msgid "inspect-get-windows-current-control-set"
10973 msgstr ""
10974
10975 #. type: verbatim
10976 #: ../fish/guestfish-actions.pod:2366
10977 #, no-wrap
10978 msgid ""
10979 " inspect-get-windows-current-control-set root\n"
10980 "\n"
10981 msgstr ""
10982
10983 #. type: textblock
10984 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
10985 msgid ""
10986 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10987 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10988 msgstr ""
10989
10990 #. type: textblock
10991 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
10992 msgid ""
10993 "This call assumes that the guest is Windows and that the Registry could be "
10994 "examined by inspection.  If this is not the case then an error is returned."
10995 msgstr ""
10996
10997 #. type: =head2
10998 #: ../fish/guestfish-actions.pod:2377
10999 msgid "inspect-get-windows-systemroot"
11000 msgstr "inspect-get-windows-systemroot"
11001
11002 #. type: verbatim
11003 #: ../fish/guestfish-actions.pod:2379
11004 #, no-wrap
11005 msgid ""
11006 " inspect-get-windows-systemroot root\n"
11007 "\n"
11008 msgstr ""
11009 " inspect-get-windows-systemroot корінь\n"
11010 "\n"
11011
11012 #. type: textblock
11013 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
11014 msgid ""
11015 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11016 "is a directory path such as C</WINDOWS>."
11017 msgstr ""
11018
11019 #. type: textblock
11020 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
11021 msgid ""
11022 "This call assumes that the guest is Windows and that the systemroot could be "
11023 "determined by inspection.  If this is not the case then an error is returned."
11024 msgstr ""
11025
11026 #. type: =head2
11027 #: ../fish/guestfish-actions.pod:2390
11028 msgid "inspect-is-live"
11029 msgstr "inspect-is-live"
11030
11031 #. type: verbatim
11032 #: ../fish/guestfish-actions.pod:2392
11033 #, no-wrap
11034 msgid ""
11035 " inspect-is-live root\n"
11036 "\n"
11037 msgstr ""
11038 " inspect-is-live корінь\n"
11039 "\n"
11040
11041 #. type: textblock
11042 #: ../fish/guestfish-actions.pod:2394
11043 msgid ""
11044 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11045 "then this returns true if a live image was detected on the disk."
11046 msgstr ""
11047
11048 #. type: =head2
11049 #: ../fish/guestfish-actions.pod:2400
11050 msgid "inspect-is-multipart"
11051 msgstr "inspect-is-multipart"
11052
11053 #. type: verbatim
11054 #: ../fish/guestfish-actions.pod:2402
11055 #, no-wrap
11056 msgid ""
11057 " inspect-is-multipart root\n"
11058 "\n"
11059 msgstr ""
11060 " inspect-is-multipart корінь\n"
11061 "\n"
11062
11063 #. type: textblock
11064 #: ../fish/guestfish-actions.pod:2404
11065 msgid ""
11066 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11067 "then this returns true if the disk is part of a set."
11068 msgstr ""
11069
11070 #. type: =head2
11071 #: ../fish/guestfish-actions.pod:2410
11072 msgid "inspect-is-netinst"
11073 msgstr "inspect-is-netinst"
11074
11075 #. type: verbatim
11076 #: ../fish/guestfish-actions.pod:2412
11077 #, no-wrap
11078 msgid ""
11079 " inspect-is-netinst root\n"
11080 "\n"
11081 msgstr ""
11082 " inspect-is-netinst корінь\n"
11083 "\n"
11084
11085 #. type: textblock
11086 #: ../fish/guestfish-actions.pod:2414
11087 msgid ""
11088 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11089 "then this returns true if the disk is a network installer, ie. not a self-"
11090 "contained install CD but one which is likely to require network access to "
11091 "complete the install."
11092 msgstr ""
11093
11094 #. type: =head2
11095 #: ../fish/guestfish-actions.pod:2422
11096 msgid "inspect-list-applications"
11097 msgstr "inspect-list-applications"
11098
11099 #. type: verbatim
11100 #: ../fish/guestfish-actions.pod:2424
11101 #, no-wrap
11102 msgid ""
11103 " inspect-list-applications root\n"
11104 "\n"
11105 msgstr ""
11106 " inspect-list-applications кореневий_каталог\n"
11107 "\n"
11108
11109 #. type: textblock
11110 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
11111 msgid "Return the list of applications installed in the operating system."
11112 msgstr ""
11113
11114 #. type: textblock
11115 #: ../fish/guestfish-actions.pod:2428
11116 msgid ""
11117 "I<Note:> This call works differently from other parts of the inspection "
11118 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11119 "then mount up the disks, before calling this.  Listing applications is a "
11120 "significantly more difficult operation which requires access to the full "
11121 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
11122 "are just returning data cached in the libguestfs handle, this call actually "
11123 "reads parts of the mounted filesystems during the call."
11124 msgstr ""
11125
11126 #. type: textblock
11127 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
11128 msgid ""
11129 "This returns an empty list if the inspection code was not able to determine "
11130 "the list of applications."
11131 msgstr ""
11132
11133 #. type: textblock
11134 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
11135 msgid "The application structure contains the following fields:"
11136 msgstr ""
11137
11138 #. type: =item
11139 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
11140 msgid "C<app_name>"
11141 msgstr "C<app_name>"
11142
11143 #. type: textblock
11144 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
11145 msgid ""
11146 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11147 "guests, this is the package name."
11148 msgstr ""
11149
11150 #. type: =item
11151 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
11152 msgid "C<app_display_name>"
11153 msgstr "C<app_display_name>"
11154
11155 #. type: textblock
11156 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
11157 msgid ""
11158 "The display name of the application, sometimes localized to the install "
11159 "language of the guest operating system."
11160 msgstr ""
11161
11162 #. type: textblock
11163 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
11164 msgid ""
11165 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11166 "to display something can use C<app_name> instead."
11167 msgstr ""
11168
11169 #. type: =item
11170 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
11171 msgid "C<app_epoch>"
11172 msgstr "C<app_epoch>"
11173
11174 #. type: textblock
11175 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
11176 msgid ""
11177 "For package managers which use epochs, this contains the epoch of the "
11178 "package (an integer).  If unavailable, this is returned as C<0>."
11179 msgstr ""
11180
11181 #. type: =item
11182 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
11183 msgid "C<app_version>"
11184 msgstr "C<app_version>"
11185
11186 #. type: textblock
11187 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
11188 msgid ""
11189 "The version string of the application or package.  If unavailable this is "
11190 "returned as an empty string C<\"\">."
11191 msgstr ""
11192
11193 #. type: =item
11194 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
11195 msgid "C<app_release>"
11196 msgstr "C<app_release>"
11197
11198 #. type: textblock
11199 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
11200 msgid ""
11201 "The release string of the application or package, for package managers that "
11202 "use this.  If unavailable this is returned as an empty string C<\"\">."
11203 msgstr ""
11204
11205 #. type: =item
11206 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
11207 msgid "C<app_install_path>"
11208 msgstr "C<app_install_path>"
11209
11210 #. type: textblock
11211 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
11212 msgid ""
11213 "The installation path of the application (on operating systems such as "
11214 "Windows which use installation paths).  This path is in the format used by "
11215 "the guest operating system, it is not a libguestfs path."
11216 msgstr ""
11217
11218 #. type: textblock
11219 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
11220 msgid "If unavailable this is returned as an empty string C<\"\">."
11221 msgstr ""
11222
11223 #. type: =item
11224 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
11225 msgid "C<app_trans_path>"
11226 msgstr "C<app_trans_path>"
11227
11228 #. type: textblock
11229 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
11230 msgid ""
11231 "The install path translated into a libguestfs path.  If unavailable this is "
11232 "returned as an empty string C<\"\">."
11233 msgstr ""
11234
11235 #. type: =item
11236 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
11237 msgid "C<app_publisher>"
11238 msgstr "C<app_publisher>"
11239
11240 #. type: textblock
11241 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
11242 msgid ""
11243 "The name of the publisher of the application, for package managers that use "
11244 "this.  If unavailable this is returned as an empty string C<\"\">."
11245 msgstr ""
11246
11247 #. type: =item
11248 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
11249 msgid "C<app_url>"
11250 msgstr "C<app_url>"
11251
11252 #. type: textblock
11253 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
11254 msgid ""
11255 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11256 "returned as an empty string C<\"\">."
11257 msgstr ""
11258
11259 #. type: =item
11260 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
11261 msgid "C<app_source_package>"
11262 msgstr "C<app_source_package>"
11263
11264 #. type: textblock
11265 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
11266 msgid ""
11267 "For packaging systems which support this, the name of the source package.  "
11268 "If unavailable this is returned as an empty string C<\"\">."
11269 msgstr ""
11270
11271 #. type: =item
11272 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
11273 msgid "C<app_summary>"
11274 msgstr "C<app_summary>"
11275
11276 #. type: textblock
11277 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
11278 msgid ""
11279 "A short (usually one line) description of the application or package.  If "
11280 "unavailable this is returned as an empty string C<\"\">."
11281 msgstr ""
11282
11283 #. type: =item
11284 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
11285 msgid "C<app_description>"
11286 msgstr "C<app_description>"
11287
11288 #. type: textblock
11289 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
11290 msgid ""
11291 "A longer description of the application or package.  If unavailable this is "
11292 "returned as an empty string C<\"\">."
11293 msgstr ""
11294
11295 #. type: =head2
11296 #: ../fish/guestfish-actions.pod:2518
11297 msgid "inspect-os"
11298 msgstr "inspect-os"
11299
11300 #. type: verbatim
11301 #: ../fish/guestfish-actions.pod:2520
11302 #, no-wrap
11303 msgid ""
11304 " inspect-os\n"
11305 "\n"
11306 msgstr ""
11307 " inspect-os\n"
11308 "\n"
11309
11310 #. type: textblock
11311 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
11312 msgid ""
11313 "This function uses other libguestfs functions and certain heuristics to "
11314 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11315 "for operating systems."
11316 msgstr ""
11317
11318 #. type: textblock
11319 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
11320 msgid "The list returned is empty if no operating systems were found."
11321 msgstr ""
11322
11323 #. type: textblock
11324 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
11325 msgid ""
11326 "If one operating system was found, then this returns a list with a single "
11327 "element, which is the name of the root filesystem of this operating system.  "
11328 "It is also possible for this function to return a list containing more than "
11329 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11330 "element being the root filesystem of one of the operating systems."
11331 msgstr ""
11332
11333 #. type: textblock
11334 #: ../fish/guestfish-actions.pod:2535
11335 msgid ""
11336 "You can pass the root string(s) returned to other L</inspect-get-*> "
11337 "functions in order to query further information about each operating system, "
11338 "such as the name and version."
11339 msgstr ""
11340
11341 #. type: textblock
11342 #: ../fish/guestfish-actions.pod:2540
11343 msgid ""
11344 "This function uses other libguestfs features such as L</mount-ro> and L</"
11345 "umount-all> in order to mount and unmount filesystems and look at the "
11346 "contents.  This should be called with no disks currently mounted.  The "
11347 "function may also use Augeas, so any existing Augeas handle will be closed."
11348 msgstr ""
11349
11350 #. type: textblock
11351 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
11352 msgid ""
11353 "This function cannot decrypt encrypted disks.  The caller must do that first "
11354 "(supplying the necessary keys) if the disk is encrypted."
11355 msgstr ""
11356
11357 #. type: textblock
11358 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
11359 #: ../fish/guestfish-actions.pod:2809
11360 msgid "See also L</list-filesystems>."
11361 msgstr "Див. також L</list-filesystems>."
11362
11363 #. type: =head2
11364 #: ../fish/guestfish-actions.pod:2554
11365 msgid "is-blockdev"
11366 msgstr "is-blockdev"
11367
11368 #. type: verbatim
11369 #: ../fish/guestfish-actions.pod:2556
11370 #, no-wrap
11371 msgid ""
11372 " is-blockdev path\n"
11373 "\n"
11374 msgstr ""
11375 " is-blockdev шлях\n"
11376 "\n"
11377
11378 #. type: textblock
11379 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
11380 msgid ""
11381 "This returns C<true> if and only if there is a block device with the given "
11382 "C<path> name."
11383 msgstr ""
11384
11385 #. type: textblock
11386 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
11387 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
11388 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
11389 #: ../fish/guestfish-actions.pod:2660
11390 msgid "See also L</stat>."
11391 msgstr "Див. також L</stat>."
11392
11393 #. type: =head2
11394 #: ../fish/guestfish-actions.pod:2563
11395 msgid "is-busy"
11396 msgstr "is-busy"
11397
11398 #. type: verbatim
11399 #: ../fish/guestfish-actions.pod:2565
11400 #, no-wrap
11401 msgid ""
11402 " is-busy\n"
11403 "\n"
11404 msgstr ""
11405 " is-busy\n"
11406 "\n"
11407
11408 #. type: textblock
11409 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
11410 msgid ""
11411 "This returns true iff this handle is busy processing a command (in the "
11412 "C<BUSY> state)."
11413 msgstr ""
11414
11415 #. type: =head2
11416 #: ../fish/guestfish-actions.pod:2572
11417 msgid "is-chardev"
11418 msgstr "is-chardev"
11419
11420 #. type: verbatim
11421 #: ../fish/guestfish-actions.pod:2574
11422 #, no-wrap
11423 msgid ""
11424 " is-chardev path\n"
11425 "\n"
11426 msgstr ""
11427 " is-chardev шлях\n"
11428 "\n"
11429
11430 #. type: textblock
11431 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
11432 msgid ""
11433 "This returns C<true> if and only if there is a character device with the "
11434 "given C<path> name."
11435 msgstr ""
11436
11437 #. type: =head2
11438 #: ../fish/guestfish-actions.pod:2581
11439 msgid "is-config"
11440 msgstr "is-config"
11441
11442 #. type: verbatim
11443 #: ../fish/guestfish-actions.pod:2583
11444 #, no-wrap
11445 msgid ""
11446 " is-config\n"
11447 "\n"
11448 msgstr ""
11449 " is-config\n"
11450 "\n"
11451
11452 #. type: textblock
11453 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
11454 msgid ""
11455 "This returns true iff this handle is being configured (in the C<CONFIG> "
11456 "state)."
11457 msgstr ""
11458
11459 #. type: =head2
11460 #: ../fish/guestfish-actions.pod:2590
11461 msgid "is-dir"
11462 msgstr "is-dir"
11463
11464 #. type: verbatim
11465 #: ../fish/guestfish-actions.pod:2592
11466 #, no-wrap
11467 msgid ""
11468 " is-dir path\n"
11469 "\n"
11470 msgstr ""
11471 " is-dir шлях\n"
11472 "\n"
11473
11474 #. type: textblock
11475 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
11476 msgid ""
11477 "This returns C<true> if and only if there is a directory with the given "
11478 "C<path> name.  Note that it returns false for other objects like files."
11479 msgstr ""
11480
11481 #. type: =head2
11482 #: ../fish/guestfish-actions.pod:2600
11483 msgid "is-fifo"
11484 msgstr "is-fifo"
11485
11486 #. type: verbatim
11487 #: ../fish/guestfish-actions.pod:2602
11488 #, no-wrap
11489 msgid ""
11490 " is-fifo path\n"
11491 "\n"
11492 msgstr ""
11493 " is-fifo шлях\n"
11494 "\n"
11495
11496 #. type: textblock
11497 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
11498 msgid ""
11499 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11500 "given C<path> name."
11501 msgstr ""
11502
11503 #. type: =head2
11504 #: ../fish/guestfish-actions.pod:2609
11505 msgid "is-file"
11506 msgstr "is-file"
11507
11508 #. type: verbatim
11509 #: ../fish/guestfish-actions.pod:2611
11510 #, no-wrap
11511 msgid ""
11512 " is-file path\n"
11513 "\n"
11514 msgstr ""
11515 " is-file шлях\n"
11516 "\n"
11517
11518 #. type: textblock
11519 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
11520 msgid ""
11521 "This returns C<true> if and only if there is a regular file with the given "
11522 "C<path> name.  Note that it returns false for other objects like directories."
11523 msgstr ""
11524
11525 #. type: =head2
11526 #: ../fish/guestfish-actions.pod:2619
11527 msgid "is-launching"
11528 msgstr "is-launching"
11529
11530 #. type: verbatim
11531 #: ../fish/guestfish-actions.pod:2621
11532 #, no-wrap
11533 msgid ""
11534 " is-launching\n"
11535 "\n"
11536 msgstr ""
11537 " is-launching\n"
11538 "\n"
11539
11540 #. type: textblock
11541 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
11542 msgid ""
11543 "This returns true iff this handle is launching the subprocess (in the "
11544 "C<LAUNCHING> state)."
11545 msgstr ""
11546
11547 #. type: =head2
11548 #: ../fish/guestfish-actions.pod:2628
11549 msgid "is-lv"
11550 msgstr "is-lv"
11551
11552 #. type: verbatim
11553 #: ../fish/guestfish-actions.pod:2630
11554 #, no-wrap
11555 msgid ""
11556 " is-lv device\n"
11557 "\n"
11558 msgstr ""
11559 " is-lv пристрій\n"
11560 "\n"
11561
11562 #. type: textblock
11563 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
11564 msgid ""
11565 "This command tests whether C<device> is a logical volume, and returns true "
11566 "iff this is the case."
11567 msgstr ""
11568
11569 #. type: =head2
11570 #: ../fish/guestfish-actions.pod:2635
11571 msgid "is-ready"
11572 msgstr "is-ready"
11573
11574 #. type: verbatim
11575 #: ../fish/guestfish-actions.pod:2637
11576 #, no-wrap
11577 msgid ""
11578 " is-ready\n"
11579 "\n"
11580 msgstr ""
11581 " is-ready\n"
11582 "\n"
11583
11584 #. type: textblock
11585 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
11586 msgid ""
11587 "This returns true iff this handle is ready to accept commands (in the "
11588 "C<READY> state)."
11589 msgstr ""
11590
11591 #. type: =head2
11592 #: ../fish/guestfish-actions.pod:2644
11593 msgid "is-socket"
11594 msgstr "is-socket"
11595
11596 #. type: verbatim
11597 #: ../fish/guestfish-actions.pod:2646
11598 #, no-wrap
11599 msgid ""
11600 " is-socket path\n"
11601 "\n"
11602 msgstr ""
11603 " is-socket шлях\n"
11604 "\n"
11605
11606 #. type: textblock
11607 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
11608 msgid ""
11609 "This returns C<true> if and only if there is a Unix domain socket with the "
11610 "given C<path> name."
11611 msgstr ""
11612
11613 #. type: =head2
11614 #: ../fish/guestfish-actions.pod:2653
11615 msgid "is-symlink"
11616 msgstr "is-symlink"
11617
11618 #. type: verbatim
11619 #: ../fish/guestfish-actions.pod:2655
11620 #, no-wrap
11621 msgid ""
11622 " is-symlink path\n"
11623 "\n"
11624 msgstr ""
11625 " is-symlink шлях\n"
11626 "\n"
11627
11628 #. type: textblock
11629 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
11630 msgid ""
11631 "This returns C<true> if and only if there is a symbolic link with the given "
11632 "C<path> name."
11633 msgstr ""
11634
11635 #. type: =head2
11636 #: ../fish/guestfish-actions.pod:2662
11637 msgid "is-zero"
11638 msgstr ""
11639
11640 #. type: verbatim
11641 #: ../fish/guestfish-actions.pod:2664
11642 #, no-wrap
11643 msgid ""
11644 " is-zero path\n"
11645 "\n"
11646 msgstr ""
11647
11648 #. type: textblock
11649 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
11650 msgid ""
11651 "This returns true iff the file exists and the file is empty or it contains "
11652 "all zero bytes."
11653 msgstr ""
11654
11655 #. type: =head2
11656 #: ../fish/guestfish-actions.pod:2669
11657 msgid "is-zero-device"
11658 msgstr ""
11659
11660 #. type: verbatim
11661 #: ../fish/guestfish-actions.pod:2671
11662 #, no-wrap
11663 msgid ""
11664 " is-zero-device device\n"
11665 "\n"
11666 msgstr ""
11667
11668 #. type: textblock
11669 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
11670 msgid "This returns true iff the device exists and contains all zero bytes."
11671 msgstr ""
11672
11673 #. type: textblock
11674 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
11675 msgid "Note that for large devices this can take a long time to run."
11676 msgstr ""
11677
11678 #. type: =head2
11679 #: ../fish/guestfish-actions.pod:2677
11680 msgid "kill-subprocess"
11681 msgstr "kill-subprocess"
11682
11683 #. type: verbatim
11684 #: ../fish/guestfish-actions.pod:2679
11685 #, no-wrap
11686 msgid ""
11687 " kill-subprocess\n"
11688 "\n"
11689 msgstr ""
11690 " kill-subprocess\n"
11691 "\n"
11692
11693 #. type: textblock
11694 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
11695 msgid "This kills the qemu subprocess.  You should never need to call this."
11696 msgstr ""
11697
11698 #. type: =head2
11699 #: ../fish/guestfish-actions.pod:2683
11700 msgid "launch"
11701 msgstr "launch"
11702
11703 #. type: =head2
11704 #: ../fish/guestfish-actions.pod:2685
11705 msgid "run"
11706 msgstr ""
11707
11708 #. type: verbatim
11709 #: ../fish/guestfish-actions.pod:2687
11710 #, no-wrap
11711 msgid ""
11712 " launch\n"
11713 "\n"
11714 msgstr ""
11715 " launch\n"
11716 "\n"
11717
11718 #. type: textblock
11719 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
11720 msgid ""
11721 "Internally libguestfs is implemented by running a virtual machine using "
11722 "L<qemu(1)>."
11723 msgstr ""
11724
11725 #. type: textblock
11726 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
11727 msgid ""
11728 "You should call this after configuring the handle (eg. adding drives) but "
11729 "before performing any actions."
11730 msgstr ""
11731
11732 #. type: =head2
11733 #: ../fish/guestfish-actions.pod:2695
11734 msgid "lchown"
11735 msgstr "lchown"
11736
11737 #. type: verbatim
11738 #: ../fish/guestfish-actions.pod:2697
11739 #, no-wrap
11740 msgid ""
11741 " lchown owner group path\n"
11742 "\n"
11743 msgstr ""
11744 " lchown власник група шлях\n"
11745 "\n"
11746
11747 #. type: textblock
11748 #: ../fish/guestfish-actions.pod:2699
11749 msgid ""
11750 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11751 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11752 "target."
11753 msgstr ""
11754
11755 #. type: =head2
11756 #: ../fish/guestfish-actions.pod:2707
11757 msgid "lgetxattr"
11758 msgstr "lgetxattr"
11759
11760 #. type: verbatim
11761 #: ../fish/guestfish-actions.pod:2709
11762 #, no-wrap
11763 msgid ""
11764 " lgetxattr path name\n"
11765 "\n"
11766 msgstr ""
11767 " lgetxattr шлях назва\n"
11768 "\n"
11769
11770 #. type: textblock
11771 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
11772 msgid ""
11773 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11774 "is a symlink, then this call returns an extended attribute from the symlink."
11775 msgstr ""
11776
11777 #. type: textblock
11778 #: ../fish/guestfish-actions.pod:2725
11779 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11780 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11781
11782 #. type: =head2
11783 #: ../fish/guestfish-actions.pod:2727
11784 msgid "lgetxattrs"
11785 msgstr "lgetxattrs"
11786
11787 #. type: verbatim
11788 #: ../fish/guestfish-actions.pod:2729
11789 #, no-wrap
11790 msgid ""
11791 " lgetxattrs path\n"
11792 "\n"
11793 msgstr ""
11794 " lgetxattrs шлях\n"
11795 "\n"
11796
11797 #. type: textblock
11798 #: ../fish/guestfish-actions.pod:2731
11799 msgid ""
11800 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11801 "it returns the extended attributes of the link itself."
11802 msgstr ""
11803
11804 #. type: =head2
11805 #: ../fish/guestfish-actions.pod:2735
11806 msgid "list-9p"
11807 msgstr ""
11808
11809 #. type: verbatim
11810 #: ../fish/guestfish-actions.pod:2737
11811 #, no-wrap
11812 msgid ""
11813 " list-9p\n"
11814 "\n"
11815 msgstr ""
11816
11817 #. type: textblock
11818 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
11819 msgid ""
11820 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11821 "returned."
11822 msgstr ""
11823
11824 #. type: =head2
11825 #: ../fish/guestfish-actions.pod:2742
11826 msgid "list-devices"
11827 msgstr "list-devices"
11828
11829 #. type: verbatim
11830 #: ../fish/guestfish-actions.pod:2744
11831 #, no-wrap
11832 msgid ""
11833 " list-devices\n"
11834 "\n"
11835 msgstr ""
11836 " list-devices\n"
11837 "\n"
11838
11839 #. type: textblock
11840 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
11841 msgid "List all the block devices."
11842 msgstr ""
11843
11844 #. type: textblock
11845 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
11846 msgid "The full block device names are returned, eg. C</dev/sda>."
11847 msgstr ""
11848
11849 #. type: =head2
11850 #: ../fish/guestfish-actions.pod:2752
11851 msgid "list-dm-devices"
11852 msgstr ""
11853
11854 #. type: verbatim
11855 #: ../fish/guestfish-actions.pod:2754
11856 #, no-wrap
11857 msgid ""
11858 " list-dm-devices\n"
11859 "\n"
11860 msgstr ""
11861
11862 #. type: textblock
11863 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
11864 msgid "List all device mapper devices."
11865 msgstr ""
11866
11867 #. type: textblock
11868 #: ../fish/guestfish-actions.pod:2758
11869 msgid ""
11870 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11871 "previous call to L</luks-open>."
11872 msgstr ""
11873
11874 #. type: textblock
11875 #: ../fish/guestfish-actions.pod:2761
11876 msgid ""
11877 "Device mapper devices which correspond to logical volumes are I<not> "
11878 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11879 msgstr ""
11880
11881 #. type: =head2
11882 #: ../fish/guestfish-actions.pod:2765
11883 msgid "list-filesystems"
11884 msgstr "list-filesystems"
11885
11886 #. type: verbatim
11887 #: ../fish/guestfish-actions.pod:2767
11888 #, no-wrap
11889 msgid ""
11890 " list-filesystems\n"
11891 "\n"
11892 msgstr ""
11893 " list-filesystems\n"
11894 "\n"
11895
11896 #. type: textblock
11897 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
11898 msgid ""
11899 "This inspection command looks for filesystems on partitions, block devices "
11900 "and logical volumes, returning a list of devices containing filesystems and "
11901 "their type."
11902 msgstr ""
11903
11904 #. type: textblock
11905 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
11906 msgid ""
11907 "The return value is a hash, where the keys are the devices containing "
11908 "filesystems, and the values are the filesystem types.  For example:"
11909 msgstr ""
11910
11911 #. type: verbatim
11912 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
11913 #, no-wrap
11914 msgid ""
11915 " \"/dev/sda1\" => \"ntfs\"\n"
11916 " \"/dev/sda2\" => \"ext2\"\n"
11917 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11918 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11919 "\n"
11920 msgstr ""
11921
11922 #. type: textblock
11923 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
11924 msgid ""
11925 "The value can have the special value \"unknown\", meaning the content of the "
11926 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11927 msgstr ""
11928
11929 #. type: textblock
11930 #: ../fish/guestfish-actions.pod:2786
11931 msgid ""
11932 "This command runs other libguestfs commands, which might include L</mount> "
11933 "and L</umount>, and therefore you should use this soon after launch and only "
11934 "when nothing is mounted."
11935 msgstr ""
11936
11937 #. type: textblock
11938 #: ../fish/guestfish-actions.pod:2790
11939 msgid ""
11940 "Not all of the filesystems returned will be mountable.  In particular, swap "
11941 "partitions are returned in the list.  Also this command does not check that "
11942 "each filesystem found is valid and mountable, and some filesystems might be "
11943 "mountable but require special options.  Filesystems may not all belong to a "
11944 "single logical operating system (use L</inspect-os> to look for OSes)."
11945 msgstr ""
11946
11947 #. type: =head2
11948 #: ../fish/guestfish-actions.pod:2798
11949 msgid "list-partitions"
11950 msgstr "list-partitions"
11951
11952 #. type: verbatim
11953 #: ../fish/guestfish-actions.pod:2800
11954 #, no-wrap
11955 msgid ""
11956 " list-partitions\n"
11957 "\n"
11958 msgstr ""
11959 " list-partitions\n"
11960 "\n"
11961
11962 #. type: textblock
11963 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
11964 msgid "List all the partitions detected on all block devices."
11965 msgstr ""
11966
11967 #. type: textblock
11968 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4278
11969 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11970 msgstr ""
11971
11972 #. type: textblock
11973 #: ../fish/guestfish-actions.pod:2806
11974 msgid ""
11975 "This does not return logical volumes.  For that you will need to call L</"
11976 "lvs>."
11977 msgstr ""
11978
11979 #. type: =head2
11980 #: ../fish/guestfish-actions.pod:2811
11981 msgid "ll"
11982 msgstr "ll"
11983
11984 #. type: verbatim
11985 #: ../fish/guestfish-actions.pod:2813
11986 #, no-wrap
11987 msgid ""
11988 " ll directory\n"
11989 "\n"
11990 msgstr ""
11991 " ll каталог\n"
11992 "\n"
11993
11994 #. type: textblock
11995 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4297
11996 msgid ""
11997 "List the files in C<directory> (relative to the root directory, there is no "
11998 "cwd) in the format of 'ls -la'."
11999 msgstr ""
12000
12001 #. type: textblock
12002 #: ../fish/guestfish-actions.pod:2818 ../src/guestfs-actions.pod:4300
12003 msgid ""
12004 "This command is mostly useful for interactive sessions.  It is I<not> "
12005 "intended that you try to parse the output string."
12006 msgstr ""
12007
12008 #. type: =head2
12009 #: ../fish/guestfish-actions.pod:2821
12010 msgid "ln"
12011 msgstr "ln"
12012
12013 #. type: verbatim
12014 #: ../fish/guestfish-actions.pod:2823
12015 #, no-wrap
12016 msgid ""
12017 " ln target linkname\n"
12018 "\n"
12019 msgstr ""
12020 " ln призначення назва_посилання\n"
12021 "\n"
12022
12023 #. type: textblock
12024 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4315
12025 msgid "This command creates a hard link using the C<ln> command."
12026 msgstr ""
12027
12028 #. type: =head2
12029 #: ../fish/guestfish-actions.pod:2827
12030 msgid "ln-f"
12031 msgstr "ln-f"
12032
12033 #. type: verbatim
12034 #: ../fish/guestfish-actions.pod:2829
12035 #, no-wrap
12036 msgid ""
12037 " ln-f target linkname\n"
12038 "\n"
12039 msgstr ""
12040 " ln-f призначення назва_посилання\n"
12041 "\n"
12042
12043 #. type: textblock
12044 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4328
12045 msgid ""
12046 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12047 "option removes the link (C<linkname>) if it exists already."
12048 msgstr ""
12049
12050 #. type: =head2
12051 #: ../fish/guestfish-actions.pod:2834
12052 msgid "ln-s"
12053 msgstr "ln-s"
12054
12055 #. type: verbatim
12056 #: ../fish/guestfish-actions.pod:2836
12057 #, no-wrap
12058 msgid ""
12059 " ln-s target linkname\n"
12060 "\n"
12061 msgstr ""
12062 " ln-s призначення назва_посилання\n"
12063 "\n"
12064
12065 #. type: textblock
12066 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4342
12067 msgid "This command creates a symbolic link using the C<ln -s> command."
12068 msgstr ""
12069
12070 #. type: =head2
12071 #: ../fish/guestfish-actions.pod:2840
12072 msgid "ln-sf"
12073 msgstr "ln-sf"
12074
12075 #. type: verbatim
12076 #: ../fish/guestfish-actions.pod:2842
12077 #, no-wrap
12078 msgid ""
12079 " ln-sf target linkname\n"
12080 "\n"
12081 msgstr ""
12082 " ln-sf призначення назва_посилання\n"
12083 "\n"
12084
12085 #. type: textblock
12086 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4355
12087 msgid ""
12088 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12089 "option removes the link (C<linkname>) if it exists already."
12090 msgstr ""
12091
12092 #. type: =head2
12093 #: ../fish/guestfish-actions.pod:2847
12094 msgid "lremovexattr"
12095 msgstr "lremovexattr"
12096
12097 #. type: verbatim
12098 #: ../fish/guestfish-actions.pod:2849
12099 #, no-wrap
12100 msgid ""
12101 " lremovexattr xattr path\n"
12102 "\n"
12103 msgstr ""
12104
12105 #. type: textblock
12106 #: ../fish/guestfish-actions.pod:2851
12107 msgid ""
12108 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12109 "it removes an extended attribute of the link itself."
12110 msgstr ""
12111
12112 #. type: =head2
12113 #: ../fish/guestfish-actions.pod:2855
12114 msgid "ls"
12115 msgstr "ls"
12116
12117 #. type: verbatim
12118 #: ../fish/guestfish-actions.pod:2857
12119 #, no-wrap
12120 msgid ""
12121 " ls directory\n"
12122 "\n"
12123 msgstr ""
12124 " ls каталог\n"
12125 "\n"
12126
12127 #. type: textblock
12128 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4383
12129 msgid ""
12130 "List the files in C<directory> (relative to the root directory, there is no "
12131 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12132 msgstr ""
12133
12134 #. type: textblock
12135 #: ../fish/guestfish-actions.pod:2863
12136 msgid ""
12137 "This command is mostly useful for interactive sessions.  Programs should "
12138 "probably use L</readdir> instead."
12139 msgstr ""
12140
12141 #. type: =head2
12142 #: ../fish/guestfish-actions.pod:2866
12143 msgid "lsetxattr"
12144 msgstr "lsetxattr"
12145
12146 #. type: verbatim
12147 #: ../fish/guestfish-actions.pod:2868
12148 #, no-wrap
12149 msgid ""
12150 " lsetxattr xattr val vallen path\n"
12151 "\n"
12152 msgstr ""
12153
12154 #. type: textblock
12155 #: ../fish/guestfish-actions.pod:2870
12156 msgid ""
12157 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12158 "sets an extended attribute of the link itself."
12159 msgstr ""
12160
12161 #. type: =head2
12162 #: ../fish/guestfish-actions.pod:2874
12163 msgid "lstat"
12164 msgstr "lstat"
12165
12166 #. type: verbatim
12167 #: ../fish/guestfish-actions.pod:2876
12168 #, no-wrap
12169 msgid ""
12170 " lstat path\n"
12171 "\n"
12172 msgstr ""
12173 " lstat шлях\n"
12174 "\n"
12175
12176 #. type: textblock
12177 #: ../fish/guestfish-actions.pod:2878 ../fish/guestfish-actions.pod:4678
12178 #: ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:7200
12179 msgid "Returns file information for the given C<path>."
12180 msgstr ""
12181
12182 #. type: textblock
12183 #: ../fish/guestfish-actions.pod:2880
12184 msgid ""
12185 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12186 "the link is stat-ed, not the file it refers to."
12187 msgstr ""
12188
12189 #. type: textblock
12190 #: ../fish/guestfish-actions.pod:2884 ../src/guestfs-actions.pod:4425
12191 msgid "This is the same as the C<lstat(2)> system call."
12192 msgstr ""
12193
12194 #. type: =head2
12195 #: ../fish/guestfish-actions.pod:2886
12196 msgid "lstatlist"
12197 msgstr "lstatlist"
12198
12199 #. type: verbatim
12200 #: ../fish/guestfish-actions.pod:2888
12201 #, no-wrap
12202 msgid ""
12203 " lstatlist path 'names ...'\n"
12204 "\n"
12205 msgstr ""
12206
12207 #. type: textblock
12208 #: ../fish/guestfish-actions.pod:2890
12209 msgid ""
12210 "This call allows you to perform the L</lstat> operation on multiple files, "
12211 "where all files are in the directory C<path>.  C<names> is the list of files "
12212 "from this directory."
12213 msgstr ""
12214
12215 #. type: textblock
12216 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4444
12217 msgid ""
12218 "On return you get a list of stat structs, with a one-to-one correspondence "
12219 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12220 "then the C<ino> field of that structure is set to C<-1>."
12221 msgstr ""
12222
12223 #. type: textblock
12224 #: ../fish/guestfish-actions.pod:2899
12225 msgid ""
12226 "This call is intended for programs that want to efficiently list a directory "
12227 "contents without making many round-trips.  See also L</lxattrlist> for a "
12228 "similarly efficient call for getting extended attributes.  Very long "
12229 "directory listings might cause the protocol message size to be exceeded, "
12230 "causing this call to fail.  The caller must split up such requests into "
12231 "smaller groups of names."
12232 msgstr ""
12233
12234 #. type: =head2
12235 #: ../fish/guestfish-actions.pod:2907
12236 msgid "luks-add-key"
12237 msgstr "luks-add-key"
12238
12239 #. type: verbatim
12240 #: ../fish/guestfish-actions.pod:2909
12241 #, no-wrap
12242 msgid ""
12243 " luks-add-key device keyslot\n"
12244 "\n"
12245 msgstr ""
12246
12247 #. type: textblock
12248 #: ../fish/guestfish-actions.pod:2911 ../src/guestfs-actions.pod:4472
12249 msgid ""
12250 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12251 "existing key, and is used to access the device.  C<newkey> is the new key to "
12252 "add.  C<keyslot> is the key slot that will be replaced."
12253 msgstr ""
12254
12255 #. type: textblock
12256 #: ../fish/guestfish-actions.pod:2916
12257 msgid ""
12258 "Note that if C<keyslot> already contains a key, then this command will "
12259 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12260 msgstr ""
12261
12262 #. type: textblock
12263 #: ../fish/guestfish-actions.pod:2920 ../fish/guestfish-actions.pod:2942
12264 #: ../fish/guestfish-actions.pod:2952 ../fish/guestfish-actions.pod:2963
12265 #: ../fish/guestfish-actions.pod:2989 ../fish/guestfish-actions.pod:2999
12266 msgid ""
12267 "This command has one or more key or passphrase parameters.  Guestfish will "
12268 "prompt for these separately."
12269 msgstr ""
12270
12271 #. type: =head2
12272 #: ../fish/guestfish-actions.pod:2923
12273 msgid "luks-close"
12274 msgstr "luks-close"
12275
12276 #. type: verbatim
12277 #: ../fish/guestfish-actions.pod:2925
12278 #, no-wrap
12279 msgid ""
12280 " luks-close device\n"
12281 "\n"
12282 msgstr ""
12283 " luks-close пристрій\n"
12284 "\n"
12285
12286 #. type: textblock
12287 #: ../fish/guestfish-actions.pod:2927
12288 msgid ""
12289 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12290 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
12291 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12292 "block device."
12293 msgstr ""
12294
12295 #. type: =head2
12296 #: ../fish/guestfish-actions.pod:2933
12297 msgid "luks-format"
12298 msgstr "luks-format"
12299
12300 #. type: verbatim
12301 #: ../fish/guestfish-actions.pod:2935
12302 #, no-wrap
12303 msgid ""
12304 " luks-format device keyslot\n"
12305 "\n"
12306 msgstr ""
12307
12308 #. type: textblock
12309 #: ../fish/guestfish-actions.pod:2937 ../src/guestfs-actions.pod:4513
12310 msgid ""
12311 "This command erases existing data on C<device> and formats the device as a "
12312 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12313 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12314 msgstr ""
12315
12316 #. type: =head2
12317 #: ../fish/guestfish-actions.pod:2945
12318 msgid "luks-format-cipher"
12319 msgstr "luks-format-cipher"
12320
12321 #. type: verbatim
12322 #: ../fish/guestfish-actions.pod:2947
12323 #, no-wrap
12324 msgid ""
12325 " luks-format-cipher device keyslot cipher\n"
12326 "\n"
12327 msgstr ""
12328
12329 #. type: textblock
12330 #: ../fish/guestfish-actions.pod:2949
12331 msgid ""
12332 "This command is the same as L</luks-format> but it also allows you to set "
12333 "the C<cipher> used."
12334 msgstr ""
12335
12336 #. type: =head2
12337 #: ../fish/guestfish-actions.pod:2955
12338 msgid "luks-kill-slot"
12339 msgstr "luks-kill-slot"
12340
12341 #. type: verbatim
12342 #: ../fish/guestfish-actions.pod:2957
12343 #, no-wrap
12344 msgid ""
12345 " luks-kill-slot device keyslot\n"
12346 "\n"
12347 msgstr ""
12348
12349 #. type: textblock
12350 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4554
12351 msgid ""
12352 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12353 "device C<device>.  C<key> must be one of the I<other> keys."
12354 msgstr ""
12355
12356 #. type: =head2
12357 #: ../fish/guestfish-actions.pod:2966
12358 msgid "luks-open"
12359 msgstr "luks-open"
12360
12361 #. type: verbatim
12362 #: ../fish/guestfish-actions.pod:2968
12363 #, no-wrap
12364 msgid ""
12365 " luks-open device mapname\n"
12366 "\n"
12367 msgstr ""
12368
12369 #. type: textblock
12370 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4574
12371 msgid ""
12372 "This command opens a block device which has been encrypted according to the "
12373 "Linux Unified Key Setup (LUKS) standard."
12374 msgstr ""
12375
12376 #. type: textblock
12377 #: ../fish/guestfish-actions.pod:2973 ../src/guestfs-actions.pod:4577
12378 msgid "C<device> is the encrypted block device or partition."
12379 msgstr ""
12380
12381 #. type: textblock
12382 #: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4579
12383 msgid ""
12384 "The caller must supply one of the keys associated with the LUKS block "
12385 "device, in the C<key> parameter."
12386 msgstr ""
12387
12388 #. type: textblock
12389 #: ../fish/guestfish-actions.pod:2978 ../src/guestfs-actions.pod:4582
12390 msgid ""
12391 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12392 "writes to this block device are decrypted from and encrypted to the "
12393 "underlying C<device> respectively."
12394 msgstr ""
12395
12396 #. type: textblock
12397 #: ../fish/guestfish-actions.pod:2982
12398 msgid ""
12399 "If this block device contains LVM volume groups, then calling L</vgscan> "
12400 "followed by L</vg-activate-all> will make them visible."
12401 msgstr ""
12402
12403 #. type: textblock
12404 #: ../fish/guestfish-actions.pod:2986
12405 msgid "Use L</list-dm-devices> to list all device mapper devices."
12406 msgstr ""
12407
12408 #. type: =head2
12409 #: ../fish/guestfish-actions.pod:2992
12410 msgid "luks-open-ro"
12411 msgstr "luks-open-ro"
12412
12413 #. type: verbatim
12414 #: ../fish/guestfish-actions.pod:2994
12415 #, no-wrap
12416 msgid ""
12417 " luks-open-ro device mapname\n"
12418 "\n"
12419 msgstr ""
12420
12421 #. type: textblock
12422 #: ../fish/guestfish-actions.pod:2996
12423 msgid ""
12424 "This is the same as L</luks-open> except that a read-only mapping is created."
12425 msgstr ""
12426
12427 #. type: =head2
12428 #: ../fish/guestfish-actions.pod:3002
12429 msgid "lvcreate"
12430 msgstr "lvcreate"
12431
12432 #. type: verbatim
12433 #: ../fish/guestfish-actions.pod:3004
12434 #, no-wrap
12435 msgid ""
12436 " lvcreate logvol volgroup mbytes\n"
12437 "\n"
12438 msgstr ""
12439
12440 #. type: textblock
12441 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4628
12442 msgid ""
12443 "This creates an LVM logical volume called C<logvol> on the volume group "
12444 "C<volgroup>, with C<size> megabytes."
12445 msgstr ""
12446
12447 #. type: =head2
12448 #: ../fish/guestfish-actions.pod:3009
12449 msgid "lvm-canonical-lv-name"
12450 msgstr "lvm-canonical-lv-name"
12451
12452 #. type: verbatim
12453 #: ../fish/guestfish-actions.pod:3011
12454 #, no-wrap
12455 msgid ""
12456 " lvm-canonical-lv-name lvname\n"
12457 "\n"
12458 msgstr ""
12459
12460 #. type: textblock
12461 #: ../fish/guestfish-actions.pod:3013 ../src/guestfs-actions.pod:4641
12462 msgid ""
12463 "This converts alternative naming schemes for LVs that you might find to the "
12464 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12465 "LV>."
12466 msgstr ""
12467
12468 #. type: textblock
12469 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4645
12470 msgid ""
12471 "This command returns an error if the C<lvname> parameter does not refer to a "
12472 "logical volume."
12473 msgstr ""
12474
12475 #. type: textblock
12476 #: ../fish/guestfish-actions.pod:3020
12477 msgid "See also L</is-lv>."
12478 msgstr "Див. також L</is-lv>."
12479
12480 #. type: =head2
12481 #: ../fish/guestfish-actions.pod:3022
12482 msgid "lvm-clear-filter"
12483 msgstr "lvm-clear-filter"
12484
12485 #. type: verbatim
12486 #: ../fish/guestfish-actions.pod:3024
12487 #, no-wrap
12488 msgid ""
12489 " lvm-clear-filter\n"
12490 "\n"
12491 msgstr ""
12492 " lvm-clear-filter\n"
12493 "\n"
12494
12495 #. type: textblock
12496 #: ../fish/guestfish-actions.pod:3026
12497 msgid ""
12498 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12499 "block device."
12500 msgstr ""
12501
12502 #. type: textblock
12503 #: ../fish/guestfish-actions.pod:3029 ../fish/guestfish-actions.pod:3057
12504 #: ../src/guestfs-actions.pod:4663 ../src/guestfs-actions.pod:4702
12505 msgid ""
12506 "This command also clears the LVM cache and performs a volume group scan."
12507 msgstr ""
12508
12509 #. type: =head2
12510 #: ../fish/guestfish-actions.pod:3032
12511 msgid "lvm-remove-all"
12512 msgstr "lvm-remove-all"
12513
12514 #. type: verbatim
12515 #: ../fish/guestfish-actions.pod:3034
12516 #, no-wrap
12517 msgid ""
12518 " lvm-remove-all\n"
12519 "\n"
12520 msgstr ""
12521 " lvm-remove-all\n"
12522 "\n"
12523
12524 #. type: textblock
12525 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4675
12526 msgid ""
12527 "This command removes all LVM logical volumes, volume groups and physical "
12528 "volumes."
12529 msgstr ""
12530
12531 #. type: =head2
12532 #: ../fish/guestfish-actions.pod:3039
12533 msgid "lvm-set-filter"
12534 msgstr "lvm-set-filter"
12535
12536 #. type: verbatim
12537 #: ../fish/guestfish-actions.pod:3041
12538 #, no-wrap
12539 msgid ""
12540 " lvm-set-filter 'devices ...'\n"
12541 "\n"
12542 msgstr ""
12543 " lvm-set-filter 'пристрої...'\n"
12544 "\n"
12545
12546 #. type: textblock
12547 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4688
12548 msgid ""
12549 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12550 "block devices in the list C<devices>, and will ignore all other attached "
12551 "block devices."
12552 msgstr ""
12553
12554 #. type: textblock
12555 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4692
12556 msgid ""
12557 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12558 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12559 "there are two types of duplication possible: either cloned PVs/VGs which "
12560 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12561 "same name.  In normal operation you cannot create this situation, but you "
12562 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12563 "inside the LVM metadata."
12564 msgstr ""
12565
12566 #. type: textblock
12567 #: ../fish/guestfish-actions.pod:3060 ../src/guestfs-actions.pod:4705
12568 msgid "You can filter whole block devices or individual partitions."
12569 msgstr ""
12570
12571 #. type: textblock
12572 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4707
12573 msgid ""
12574 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12575 "filesystem), even if you are not filtering out that VG."
12576 msgstr ""
12577
12578 #. type: =head2
12579 #: ../fish/guestfish-actions.pod:3066
12580 msgid "lvremove"
12581 msgstr "lvremove"
12582
12583 #. type: verbatim
12584 #: ../fish/guestfish-actions.pod:3068
12585 #, no-wrap
12586 msgid ""
12587 " lvremove device\n"
12588 "\n"
12589 msgstr ""
12590 " lvremove пристрій\n"
12591 "\n"
12592
12593 #. type: textblock
12594 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4721
12595 msgid ""
12596 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12597 "LV, such as C</dev/VG/LV>."
12598 msgstr ""
12599
12600 #. type: textblock
12601 #: ../fish/guestfish-actions.pod:3073 ../src/guestfs-actions.pod:4724
12602 msgid ""
12603 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12604 "dev/VG>."
12605 msgstr ""
12606
12607 #. type: =head2
12608 #: ../fish/guestfish-actions.pod:3076
12609 msgid "lvrename"
12610 msgstr "lvrename"
12611
12612 #. type: verbatim
12613 #: ../fish/guestfish-actions.pod:3078
12614 #, no-wrap
12615 msgid ""
12616 " lvrename logvol newlogvol\n"
12617 "\n"
12618 msgstr ""
12619
12620 #. type: textblock
12621 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4738
12622 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12623 msgstr ""
12624
12625 #. type: =head2
12626 #: ../fish/guestfish-actions.pod:3082
12627 msgid "lvresize"
12628 msgstr "lvresize"
12629
12630 #. type: verbatim
12631 #: ../fish/guestfish-actions.pod:3084
12632 #, no-wrap
12633 msgid ""
12634 " lvresize device mbytes\n"
12635 "\n"
12636 msgstr ""
12637
12638 #. type: textblock
12639 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4751
12640 msgid ""
12641 "This resizes (expands or shrinks) an existing LVM logical volume to "
12642 "C<mbytes>.  When reducing, data in the reduced part is lost."
12643 msgstr ""
12644
12645 #. type: =head2
12646 #: ../fish/guestfish-actions.pod:3090
12647 msgid "lvresize-free"
12648 msgstr "lvresize-free"
12649
12650 #. type: verbatim
12651 #: ../fish/guestfish-actions.pod:3092
12652 #, no-wrap
12653 msgid ""
12654 " lvresize-free lv percent\n"
12655 "\n"
12656 msgstr ""
12657
12658 #. type: textblock
12659 #: ../fish/guestfish-actions.pod:3094 ../src/guestfs-actions.pod:4766
12660 msgid ""
12661 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12662 "remaining free space in the volume group.  Commonly you would call this with "
12663 "pc = 100 which expands the logical volume as much as possible, using all "
12664 "remaining free space in the volume group."
12665 msgstr ""
12666
12667 #. type: =head2
12668 #: ../fish/guestfish-actions.pod:3100
12669 msgid "lvs"
12670 msgstr "lvs"
12671
12672 #. type: verbatim
12673 #: ../fish/guestfish-actions.pod:3102
12674 #, no-wrap
12675 msgid ""
12676 " lvs\n"
12677 "\n"
12678 msgstr ""
12679 " lvs\n"
12680 "\n"
12681
12682 #. type: textblock
12683 #: ../fish/guestfish-actions.pod:3104 ../src/guestfs-actions.pod:4781
12684 msgid ""
12685 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12686 "(8)> command."
12687 msgstr ""
12688
12689 #. type: textblock
12690 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4784
12691 msgid ""
12692 "This returns a list of the logical volume device names (eg. C</dev/"
12693 "VolGroup00/LogVol00>)."
12694 msgstr ""
12695
12696 #. type: textblock
12697 #: ../fish/guestfish-actions.pod:3110
12698 msgid "See also L</lvs-full>, L</list-filesystems>."
12699 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12700
12701 #. type: =head2
12702 #: ../fish/guestfish-actions.pod:3112
12703 msgid "lvs-full"
12704 msgstr "lvs-full"
12705
12706 #. type: verbatim
12707 #: ../fish/guestfish-actions.pod:3114
12708 #, no-wrap
12709 msgid ""
12710 " lvs-full\n"
12711 "\n"
12712 msgstr ""
12713 " lvs-full\n"
12714 "\n"
12715
12716 #. type: textblock
12717 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4800
12718 msgid ""
12719 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12720 "(8)> command.  The \"full\" version includes all fields."
12721 msgstr ""
12722
12723 #. type: =head2
12724 #: ../fish/guestfish-actions.pod:3119
12725 msgid "lvuuid"
12726 msgstr "lvuuid"
12727
12728 #. type: verbatim
12729 #: ../fish/guestfish-actions.pod:3121
12730 #, no-wrap
12731 msgid ""
12732 " lvuuid device\n"
12733 "\n"
12734 msgstr ""
12735 " lvuuid пристрій\n"
12736 "\n"
12737
12738 #. type: textblock
12739 #: ../fish/guestfish-actions.pod:3123 ../src/guestfs-actions.pod:4815
12740 msgid "This command returns the UUID of the LVM LV C<device>."
12741 msgstr ""
12742
12743 #. type: =head2
12744 #: ../fish/guestfish-actions.pod:3125
12745 msgid "lxattrlist"
12746 msgstr "lxattrlist"
12747
12748 #. type: verbatim
12749 #: ../fish/guestfish-actions.pod:3127
12750 #, no-wrap
12751 msgid ""
12752 " lxattrlist path 'names ...'\n"
12753 "\n"
12754 msgstr ""
12755
12756 #. type: textblock
12757 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4829
12758 msgid ""
12759 "This call allows you to get the extended attributes of multiple files, where "
12760 "all files are in the directory C<path>.  C<names> is the list of files from "
12761 "this directory."
12762 msgstr ""
12763
12764 #. type: textblock
12765 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4833
12766 msgid ""
12767 "On return you get a flat list of xattr structs which must be interpreted "
12768 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12769 "C<attrval> in this struct is zero-length to indicate there was an error "
12770 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12771 "number (the number of following attributes for this file, which could be C<"
12772 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12773 "for the first named file.  This repeats for the second and subsequent files."
12774 msgstr ""
12775
12776 #. type: textblock
12777 #: ../fish/guestfish-actions.pod:3143
12778 msgid ""
12779 "This call is intended for programs that want to efficiently list a directory "
12780 "contents without making many round-trips.  See also L</lstatlist> for a "
12781 "similarly efficient call for getting standard stats.  Very long directory "
12782 "listings might cause the protocol message size to be exceeded, causing this "
12783 "call to fail.  The caller must split up such requests into smaller groups of "
12784 "names."
12785 msgstr ""
12786
12787 #. type: =head2
12788 #: ../fish/guestfish-actions.pod:3151
12789 msgid "mkdir"
12790 msgstr "mkdir"
12791
12792 #. type: verbatim
12793 #: ../fish/guestfish-actions.pod:3153
12794 #, no-wrap
12795 msgid ""
12796 " mkdir path\n"
12797 "\n"
12798 msgstr ""
12799 " mkdir шлях\n"
12800 "\n"
12801
12802 #. type: textblock
12803 #: ../fish/guestfish-actions.pod:3155 ../src/guestfs-actions.pod:4863
12804 msgid "Create a directory named C<path>."
12805 msgstr ""
12806
12807 #. type: =head2
12808 #: ../fish/guestfish-actions.pod:3157
12809 msgid "mkdir-mode"
12810 msgstr "mkdir-mode"
12811
12812 #. type: verbatim
12813 #: ../fish/guestfish-actions.pod:3159
12814 #, no-wrap
12815 msgid ""
12816 " mkdir-mode path mode\n"
12817 "\n"
12818 msgstr ""
12819 " mkdir-mode шлях режим\n"
12820 "\n"
12821
12822 #. type: textblock
12823 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4876
12824 msgid ""
12825 "This command creates a directory, setting the initial permissions of the "
12826 "directory to C<mode>."
12827 msgstr ""
12828
12829 #. type: textblock
12830 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4879
12831 msgid ""
12832 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12833 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12834 "other ways."
12835 msgstr ""
12836
12837 #. type: textblock
12838 #: ../fish/guestfish-actions.pod:3168
12839 msgid "See also L</mkdir>, L</umask>"
12840 msgstr "Див. також L</mkdir>, L</umask>"
12841
12842 #. type: =head2
12843 #: ../fish/guestfish-actions.pod:3170
12844 msgid "mkdir-p"
12845 msgstr "mkdir-p"
12846
12847 #. type: verbatim
12848 #: ../fish/guestfish-actions.pod:3172
12849 #, no-wrap
12850 msgid ""
12851 " mkdir-p path\n"
12852 "\n"
12853 msgstr ""
12854 " mkdir-p шлях\n"
12855 "\n"
12856
12857 #. type: textblock
12858 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4895
12859 msgid ""
12860 "Create a directory named C<path>, creating any parent directories as "
12861 "necessary.  This is like the C<mkdir -p> shell command."
12862 msgstr ""
12863
12864 #. type: =head2
12865 #: ../fish/guestfish-actions.pod:3177
12866 msgid "mkdtemp"
12867 msgstr "mkdtemp"
12868
12869 #. type: verbatim
12870 #: ../fish/guestfish-actions.pod:3179
12871 #, no-wrap
12872 msgid ""
12873 " mkdtemp template\n"
12874 "\n"
12875 msgstr ""
12876 " mkdtemp шаблон\n"
12877 "\n"
12878
12879 #. type: textblock
12880 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4908
12881 msgid ""
12882 "This command creates a temporary directory.  The C<template> parameter "
12883 "should be a full pathname for the temporary directory name with the final "
12884 "six characters being \"XXXXXX\"."
12885 msgstr ""
12886
12887 #. type: textblock
12888 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4913
12889 msgid ""
12890 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12891 "being suitable for Windows filesystems."
12892 msgstr ""
12893
12894 #. type: textblock
12895 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4916
12896 msgid "The name of the temporary directory that was created is returned."
12897 msgstr ""
12898
12899 #. type: textblock
12900 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4919
12901 msgid "The temporary directory is created with mode 0700 and is owned by root."
12902 msgstr ""
12903
12904 #. type: textblock
12905 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4922
12906 msgid ""
12907 "The caller is responsible for deleting the temporary directory and its "
12908 "contents after use."
12909 msgstr ""
12910
12911 #. type: textblock
12912 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4925
12913 msgid "See also: L<mkdtemp(3)>"
12914 msgstr "Див. також L<mkdtemp(3)>"
12915
12916 #. type: =head2
12917 #: ../fish/guestfish-actions.pod:3200
12918 msgid "mke2fs-J"
12919 msgstr "mke2fs-J"
12920
12921 #. type: verbatim
12922 #: ../fish/guestfish-actions.pod:3202
12923 #, no-wrap
12924 msgid ""
12925 " mke2fs-J fstype blocksize device journal\n"
12926 "\n"
12927 msgstr ""
12928
12929 #. type: textblock
12930 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4941
12931 msgid ""
12932 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12933 "C<journal>.  It is equivalent to the command:"
12934 msgstr ""
12935
12936 #. type: verbatim
12937 #: ../fish/guestfish-actions.pod:3208 ../src/guestfs-actions.pod:4945
12938 #, no-wrap
12939 msgid ""
12940 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12941 "\n"
12942 msgstr ""
12943 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
12944 "\n"
12945
12946 #. type: textblock
12947 #: ../fish/guestfish-actions.pod:3210
12948 msgid "See also L</mke2journal>."
12949 msgstr "Див. також L</mke2journal>."
12950
12951 #. type: =head2
12952 #: ../fish/guestfish-actions.pod:3212
12953 msgid "mke2fs-JL"
12954 msgstr "mke2fs-JL"
12955
12956 #. type: verbatim
12957 #: ../fish/guestfish-actions.pod:3214
12958 #, no-wrap
12959 msgid ""
12960 " mke2fs-JL fstype blocksize device label\n"
12961 "\n"
12962 msgstr ""
12963
12964 #. type: textblock
12965 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4962
12966 msgid ""
12967 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12968 "the journal labeled C<label>."
12969 msgstr ""
12970
12971 #. type: textblock
12972 #: ../fish/guestfish-actions.pod:3219
12973 msgid "See also L</mke2journal-L>."
12974 msgstr "Див. також L</mke2journal-L>."
12975
12976 #. type: =head2
12977 #: ../fish/guestfish-actions.pod:3221
12978 msgid "mke2fs-JU"
12979 msgstr "mke2fs-JU"
12980
12981 #. type: verbatim
12982 #: ../fish/guestfish-actions.pod:3223
12983 #, no-wrap
12984 msgid ""
12985 " mke2fs-JU fstype blocksize device uuid\n"
12986 "\n"
12987 msgstr ""
12988
12989 #. type: textblock
12990 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4980
12991 msgid ""
12992 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12993 "the journal with UUID C<uuid>."
12994 msgstr ""
12995
12996 #. type: textblock
12997 #: ../fish/guestfish-actions.pod:3228
12998 msgid "See also L</mke2journal-U>."
12999 msgstr "Див. також L</mke2journal-U>."
13000
13001 #. type: =head2
13002 #: ../fish/guestfish-actions.pod:3230
13003 msgid "mke2journal"
13004 msgstr "mke2journal"
13005
13006 #. type: verbatim
13007 #: ../fish/guestfish-actions.pod:3232
13008 #, no-wrap
13009 msgid ""
13010 " mke2journal blocksize device\n"
13011 "\n"
13012 msgstr ""
13013
13014 #. type: textblock
13015 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4996
13016 msgid ""
13017 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13018 "command:"
13019 msgstr ""
13020
13021 #. type: verbatim
13022 #: ../fish/guestfish-actions.pod:3237 ../src/guestfs-actions.pod:4999
13023 #, no-wrap
13024 msgid ""
13025 " mke2fs -O journal_dev -b blocksize device\n"
13026 "\n"
13027 msgstr ""
13028
13029 #. type: =head2
13030 #: ../fish/guestfish-actions.pod:3239
13031 msgid "mke2journal-L"
13032 msgstr "mke2journal-L"
13033
13034 #. type: verbatim
13035 #: ../fish/guestfish-actions.pod:3241
13036 #, no-wrap
13037 msgid ""
13038 " mke2journal-L blocksize label device\n"
13039 "\n"
13040 msgstr ""
13041
13042 #. type: textblock
13043 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:5013
13044 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13045 msgstr ""
13046
13047 #. type: =head2
13048 #: ../fish/guestfish-actions.pod:3245
13049 msgid "mke2journal-U"
13050 msgstr "mke2journal-U"
13051
13052 #. type: verbatim
13053 #: ../fish/guestfish-actions.pod:3247
13054 #, no-wrap
13055 msgid ""
13056 " mke2journal-U blocksize uuid device\n"
13057 "\n"
13058 msgstr ""
13059
13060 #. type: textblock
13061 #: ../fish/guestfish-actions.pod:3249 ../src/guestfs-actions.pod:5027
13062 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13063 msgstr ""
13064
13065 #. type: =head2
13066 #: ../fish/guestfish-actions.pod:3251
13067 msgid "mkfifo"
13068 msgstr "mkfifo"
13069
13070 #. type: verbatim
13071 #: ../fish/guestfish-actions.pod:3253
13072 #, no-wrap
13073 msgid ""
13074 " mkfifo mode path\n"
13075 "\n"
13076 msgstr ""
13077 " mkfifo режим шлях\n"
13078 "\n"
13079
13080 #. type: textblock
13081 #: ../fish/guestfish-actions.pod:3255
13082 msgid ""
13083 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13084 "is just a convenient wrapper around L</mknod>."
13085 msgstr ""
13086
13087 #. type: =head2
13088 #: ../fish/guestfish-actions.pod:3261
13089 msgid "mkfs"
13090 msgstr "mkfs"
13091
13092 #. type: verbatim
13093 #: ../fish/guestfish-actions.pod:3263
13094 #, no-wrap
13095 msgid ""
13096 " mkfs fstype device\n"
13097 "\n"
13098 msgstr ""
13099 " mkfs тип_файлової_системи пристрій\n"
13100 "\n"
13101
13102 #. type: textblock
13103 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:5057
13104 msgid ""
13105 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13106 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13107 msgstr ""
13108
13109 #. type: =head2
13110 #: ../fish/guestfish-actions.pod:3269
13111 msgid "mkfs-b"
13112 msgstr "mkfs-b"
13113
13114 #. type: verbatim
13115 #: ../fish/guestfish-actions.pod:3271
13116 #, no-wrap
13117 msgid ""
13118 " mkfs-b fstype blocksize device\n"
13119 "\n"
13120 msgstr ""
13121
13122 #. type: textblock
13123 #: ../fish/guestfish-actions.pod:3273
13124 msgid ""
13125 "This call is similar to L</mkfs>, but it allows you to control the block "
13126 "size of the resulting filesystem.  Supported block sizes depend on the "
13127 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13128 msgstr ""
13129
13130 #. type: textblock
13131 #: ../fish/guestfish-actions.pod:3278 ../fish/guestfish-actions.pod:3305
13132 #: ../src/guestfs-actions.pod:5085 ../src/guestfs-actions.pod:5123
13133 msgid ""
13134 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13135 "cluster size."
13136 msgstr ""
13137
13138 #. type: textblock
13139 #: ../fish/guestfish-actions.pod:3281
13140 msgid ""
13141 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13142 "instead."
13143 msgstr ""
13144
13145 #. type: =head2
13146 #: ../fish/guestfish-actions.pod:3288
13147 msgid "mkfs-opts"
13148 msgstr "mkfs-opts"
13149
13150 #. type: verbatim
13151 #: ../fish/guestfish-actions.pod:3290
13152 #, no-wrap
13153 msgid ""
13154 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
13155 "\n"
13156 msgstr ""
13157
13158 #. type: textblock
13159 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:5110
13160 msgid ""
13161 "This function creates a filesystem on C<device>.  The filesystem type is "
13162 "C<fstype>, for example C<ext3>."
13163 msgstr ""
13164
13165 #. type: =item
13166 #: ../fish/guestfish-actions.pod:3299 ../src/guestfs-actions.pod:5117
13167 msgid "C<blocksize>"
13168 msgstr "C<blocksize>"
13169
13170 #. type: textblock
13171 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5119
13172 msgid ""
13173 "The filesystem block size.  Supported block sizes depend on the filesystem "
13174 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13175 "filesystems."
13176 msgstr ""
13177
13178 #. type: textblock
13179 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:5126
13180 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13181 msgstr ""
13182
13183 #. type: =item
13184 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5128
13185 msgid "C<features>"
13186 msgstr "C<features>"
13187
13188 #. type: textblock
13189 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5130
13190 msgid "This passes the I<-O> parameter to the external mkfs program."
13191 msgstr ""
13192
13193 #. type: textblock
13194 #: ../fish/guestfish-actions.pod:3314 ../src/guestfs-actions.pod:5132
13195 msgid ""
13196 "For certain filesystem types, this allows extra filesystem features to be "
13197 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13198 msgstr ""
13199
13200 #. type: textblock
13201 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5136
13202 msgid ""
13203 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13204 "type."
13205 msgstr ""
13206
13207 #. type: =item
13208 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5139
13209 msgid "C<inode>"
13210 msgstr "C<inode>"
13211
13212 #. type: textblock
13213 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5141
13214 msgid ""
13215 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13216 "sets the inode size (only for ext2/3/4 filesystems at present)."
13217 msgstr ""
13218
13219 #. type: =item
13220 #: ../fish/guestfish-actions.pod:3326 ../src/guestfs-actions.pod:5144
13221 msgid "C<sectorsize>"
13222 msgstr "C<sectorsize>"
13223
13224 #. type: textblock
13225 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5146
13226 msgid ""
13227 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13228 "sets sector size for ufs filesystem."
13229 msgstr ""
13230
13231 #. type: =head2
13232 #: ../fish/guestfish-actions.pod:3335
13233 msgid "mkmountpoint"
13234 msgstr "mkmountpoint"
13235
13236 #. type: verbatim
13237 #: ../fish/guestfish-actions.pod:3337
13238 #, no-wrap
13239 msgid ""
13240 " mkmountpoint exemptpath\n"
13241 "\n"
13242 msgstr ""
13243
13244 #. type: textblock
13245 #: ../fish/guestfish-actions.pod:3339
13246 msgid ""
13247 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13248 "to create extra mountpoints before mounting the first filesystem."
13249 msgstr ""
13250
13251 #. type: textblock
13252 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5189
13253 msgid ""
13254 "These calls are I<only> necessary in some very limited circumstances, mainly "
13255 "the case where you want to mount a mix of unrelated and/or read-only "
13256 "filesystems together."
13257 msgstr ""
13258
13259 #. type: textblock
13260 #: ../fish/guestfish-actions.pod:3347 ../src/guestfs-actions.pod:5193
13261 msgid ""
13262 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13263 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13264 "inside that.  You can unpack this as follows in guestfish:"
13265 msgstr ""
13266
13267 #. type: verbatim
13268 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5198
13269 #, no-wrap
13270 msgid ""
13271 " add-ro Fedora-11-i686-Live.iso\n"
13272 " run\n"
13273 " mkmountpoint /cd\n"
13274 " mkmountpoint /sqsh\n"
13275 " mkmountpoint /ext3fs\n"
13276 " mount /dev/sda /cd\n"
13277 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13278 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13279 "\n"
13280 msgstr ""
13281 " add-ro Fedora-11-i686-Live.iso\n"
13282 " run\n"
13283 " mkmountpoint /cd\n"
13284 " mkmountpoint /sqsh\n"
13285 " mkmountpoint /ext3fs\n"
13286 " mount /dev/sda /cd\n"
13287 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13288 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13289 "\n"
13290
13291 #. type: textblock
13292 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5207
13293 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13294 msgstr ""
13295
13296 #. type: textblock
13297 #: ../fish/guestfish-actions.pod:3363
13298 msgid ""
13299 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13300 "unexpected errors if you try to mix these calls.  It is safest to manually "
13301 "unmount filesystems and remove mountpoints after use."
13302 msgstr ""
13303
13304 #. type: textblock
13305 #: ../fish/guestfish-actions.pod:3367
13306 msgid ""
13307 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13308 "for this to work for manual mountpoints, you must ensure that the innermost "
13309 "mountpoints have the longest pathnames, as in the example code above."
13310 msgstr ""
13311
13312 #. type: textblock
13313 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5218
13314 msgid ""
13315 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13316 msgstr ""
13317
13318 #. type: textblock
13319 #: ../fish/guestfish-actions.pod:3374
13320 msgid ""
13321 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13322 "L</umount-all> to be called when the handle is closed which can also trigger "
13323 "these issues."
13324 msgstr ""
13325
13326 #. type: =head2
13327 #: ../fish/guestfish-actions.pod:3378
13328 msgid "mknod"
13329 msgstr "mknod"
13330
13331 #. type: verbatim
13332 #: ../fish/guestfish-actions.pod:3380
13333 #, no-wrap
13334 msgid ""
13335 " mknod mode devmajor devminor path\n"
13336 "\n"
13337 msgstr ""
13338
13339 #. type: textblock
13340 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5237
13341 msgid ""
13342 "This call creates block or character special devices, or named pipes (FIFOs)."
13343 msgstr ""
13344
13345 #. type: textblock
13346 #: ../fish/guestfish-actions.pod:3385 ../src/guestfs-actions.pod:5240
13347 msgid ""
13348 "The C<mode> parameter should be the mode, using the standard constants.  "
13349 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13350 "used when creating block and character special devices."
13351 msgstr ""
13352
13353 #. type: textblock
13354 #: ../fish/guestfish-actions.pod:3390
13355 msgid ""
13356 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13357 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13358 "regular file).  These constants are available in the standard Linux header "
13359 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13360 "wrappers around this command which bitwise OR in the appropriate constant "
13361 "for you."
13362 msgstr ""
13363
13364 #. type: =head2
13365 #: ../fish/guestfish-actions.pod:3400
13366 msgid "mknod-b"
13367 msgstr "mknod-b"
13368
13369 #. type: verbatim
13370 #: ../fish/guestfish-actions.pod:3402
13371 #, no-wrap
13372 msgid ""
13373 " mknod-b mode devmajor devminor path\n"
13374 "\n"
13375 msgstr ""
13376
13377 #. type: textblock
13378 #: ../fish/guestfish-actions.pod:3404
13379 msgid ""
13380 "This call creates a block device node called C<path> with mode C<mode> and "
13381 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13382 "wrapper around L</mknod>."
13383 msgstr ""
13384
13385 #. type: =head2
13386 #: ../fish/guestfish-actions.pod:3410
13387 msgid "mknod-c"
13388 msgstr "mknod-c"
13389
13390 #. type: verbatim
13391 #: ../fish/guestfish-actions.pod:3412
13392 #, no-wrap
13393 msgid ""
13394 " mknod-c mode devmajor devminor path\n"
13395 "\n"
13396 msgstr ""
13397
13398 #. type: textblock
13399 #: ../fish/guestfish-actions.pod:3414
13400 msgid ""
13401 "This call creates a char device node called C<path> with mode C<mode> and "
13402 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13403 "wrapper around L</mknod>."
13404 msgstr ""
13405
13406 #. type: =head2
13407 #: ../fish/guestfish-actions.pod:3420
13408 msgid "mkswap"
13409 msgstr "mkswap"
13410
13411 #. type: verbatim
13412 #: ../fish/guestfish-actions.pod:3422
13413 #, no-wrap
13414 msgid ""
13415 " mkswap device\n"
13416 "\n"
13417 msgstr ""
13418 " mkswap пристрій\n"
13419 "\n"
13420
13421 #. type: textblock
13422 #: ../fish/guestfish-actions.pod:3424 ../src/guestfs-actions.pod:5303
13423 msgid "Create a swap partition on C<device>."
13424 msgstr ""
13425
13426 #. type: =head2
13427 #: ../fish/guestfish-actions.pod:3426
13428 msgid "mkswap-L"
13429 msgstr "mkswap-L"
13430
13431 #. type: verbatim
13432 #: ../fish/guestfish-actions.pod:3428
13433 #, no-wrap
13434 msgid ""
13435 " mkswap-L label device\n"
13436 "\n"
13437 msgstr ""
13438 " mkswap-L мітка пристрій\n"
13439 "\n"
13440
13441 #. type: textblock
13442 #: ../fish/guestfish-actions.pod:3430 ../src/guestfs-actions.pod:5316
13443 msgid "Create a swap partition on C<device> with label C<label>."
13444 msgstr ""
13445
13446 #. type: textblock
13447 #: ../fish/guestfish-actions.pod:3432 ../src/guestfs-actions.pod:5318
13448 msgid ""
13449 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13450 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13451 "or swap tools."
13452 msgstr ""
13453
13454 #. type: =head2
13455 #: ../fish/guestfish-actions.pod:3436
13456 msgid "mkswap-U"
13457 msgstr "mkswap-U"
13458
13459 #. type: verbatim
13460 #: ../fish/guestfish-actions.pod:3438
13461 #, no-wrap
13462 msgid ""
13463 " mkswap-U uuid device\n"
13464 "\n"
13465 msgstr ""
13466 " mkswap-U uuid пристрій\n"
13467 "\n"
13468
13469 #. type: textblock
13470 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5333
13471 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13472 msgstr ""
13473
13474 #. type: =head2
13475 #: ../fish/guestfish-actions.pod:3442
13476 msgid "mkswap-file"
13477 msgstr "mkswap-file"
13478
13479 #. type: verbatim
13480 #: ../fish/guestfish-actions.pod:3444
13481 #, no-wrap
13482 msgid ""
13483 " mkswap-file path\n"
13484 "\n"
13485 msgstr ""
13486 " mkswap-file шлях\n"
13487 "\n"
13488
13489 #. type: textblock
13490 #: ../fish/guestfish-actions.pod:3446 ../src/guestfs-actions.pod:5345
13491 msgid "Create a swap file."
13492 msgstr "Створити файл резервної пам’яті."
13493
13494 #. type: textblock
13495 #: ../fish/guestfish-actions.pod:3448
13496 msgid ""
13497 "This command just writes a swap file signature to an existing file.  To "
13498 "create the file itself, use something like L</fallocate>."
13499 msgstr ""
13500
13501 #. type: =head2
13502 #: ../fish/guestfish-actions.pod:3451
13503 msgid "modprobe"
13504 msgstr "modprobe"
13505
13506 #. type: verbatim
13507 #: ../fish/guestfish-actions.pod:3453
13508 #, no-wrap
13509 msgid ""
13510 " modprobe modulename\n"
13511 "\n"
13512 msgstr ""
13513 " modprobe назва_модуля\n"
13514 "\n"
13515
13516 #. type: textblock
13517 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5360
13518 msgid "This loads a kernel module in the appliance."
13519 msgstr ""
13520
13521 #. type: textblock
13522 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5362
13523 msgid ""
13524 "The kernel module must have been whitelisted when libguestfs was built (see "
13525 "C<appliance/kmod.whitelist.in> in the source)."
13526 msgstr ""
13527
13528 #. type: =head2
13529 #: ../fish/guestfish-actions.pod:3460
13530 msgid "mount"
13531 msgstr "mount"
13532
13533 #. type: verbatim
13534 #: ../fish/guestfish-actions.pod:3462
13535 #, no-wrap
13536 msgid ""
13537 " mount device mountpoint\n"
13538 "\n"
13539 msgstr ""
13540 " mount пристрій точка_монтування\n"
13541 "\n"
13542
13543 #. type: textblock
13544 #: ../fish/guestfish-actions.pod:3464 ../src/guestfs-actions.pod:5376
13545 msgid ""
13546 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13547 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13548 "those block devices contain partitions, they will have the usual names (eg. "
13549 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13550 msgstr ""
13551
13552 #. type: textblock
13553 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5382
13554 msgid ""
13555 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13556 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13557 "mounted on directories which already exist."
13558 msgstr ""
13559
13560 #. type: textblock
13561 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5387
13562 msgid ""
13563 "The mounted filesystem is writable, if we have sufficient permissions on the "
13564 "underlying device."
13565 msgstr ""
13566
13567 #. type: textblock
13568 #: ../fish/guestfish-actions.pod:3478
13569 msgid ""
13570 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13571 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13572 "problems for users.  If your program might need to work with older versions "
13573 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13574 "first parameter if you don't want any options)."
13575 msgstr ""
13576
13577 #. type: =head2
13578 #: ../fish/guestfish-actions.pod:3485
13579 msgid "mount-9p"
13580 msgstr ""
13581
13582 #. type: verbatim
13583 #: ../fish/guestfish-actions.pod:3487
13584 #, no-wrap
13585 msgid ""
13586 " mount-9p mounttag mountpoint [options:..]\n"
13587 "\n"
13588 msgstr ""
13589
13590 #. type: textblock
13591 #: ../fish/guestfish-actions.pod:3489 ../src/guestfs-actions.pod:5416
13592 msgid ""
13593 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13594 "C<mountpoint>."
13595 msgstr ""
13596
13597 #. type: textblock
13598 #: ../fish/guestfish-actions.pod:3492 ../src/guestfs-actions.pod:5419
13599 msgid ""
13600 "If required, C<trans=virtio> will be automatically added to the options.  "
13601 "Any other options required can be passed in the optional C<options> "
13602 "parameter."
13603 msgstr ""
13604
13605 #. type: =head2
13606 #: ../fish/guestfish-actions.pod:3498
13607 msgid "mount-loop"
13608 msgstr "mount-loop"
13609
13610 #. type: verbatim
13611 #: ../fish/guestfish-actions.pod:3500
13612 #, no-wrap
13613 msgid ""
13614 " mount-loop file mountpoint\n"
13615 "\n"
13616 msgstr ""
13617
13618 #. type: textblock
13619 #: ../fish/guestfish-actions.pod:3502 ../src/guestfs-actions.pod:5458
13620 msgid ""
13621 "This command lets you mount C<file> (a filesystem image in a file) on a "
13622 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13623 "mountpoint>."
13624 msgstr ""
13625
13626 #. type: =head2
13627 #: ../fish/guestfish-actions.pod:3506
13628 msgid "mount-options"
13629 msgstr "mount-options"
13630
13631 #. type: verbatim
13632 #: ../fish/guestfish-actions.pod:3508
13633 #, no-wrap
13634 msgid ""
13635 " mount-options options device mountpoint\n"
13636 "\n"
13637 msgstr ""
13638
13639 #. type: textblock
13640 #: ../fish/guestfish-actions.pod:3510
13641 msgid ""
13642 "This is the same as the L</mount> command, but it allows you to set the "
13643 "mount options as for the L<mount(8)> I<-o> flag."
13644 msgstr ""
13645
13646 #. type: textblock
13647 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5478
13648 msgid ""
13649 "If the C<options> parameter is an empty string, then no options are passed "
13650 "(all options default to whatever the filesystem uses)."
13651 msgstr ""
13652
13653 #. type: =head2
13654 #: ../fish/guestfish-actions.pod:3518
13655 msgid "mount-ro"
13656 msgstr "mount-ro"
13657
13658 #. type: verbatim
13659 #: ../fish/guestfish-actions.pod:3520
13660 #, no-wrap
13661 msgid ""
13662 " mount-ro device mountpoint\n"
13663 "\n"
13664 msgstr ""
13665 " mount-ro пристрій точка_монтування\n"
13666 "\n"
13667
13668 #. type: textblock
13669 #: ../fish/guestfish-actions.pod:3522
13670 msgid ""
13671 "This is the same as the L</mount> command, but it mounts the filesystem with "
13672 "the read-only (I<-o ro>) flag."
13673 msgstr ""
13674
13675 #. type: =head2
13676 #: ../fish/guestfish-actions.pod:3525
13677 msgid "mount-vfs"
13678 msgstr "mount-vfs"
13679
13680 #. type: verbatim
13681 #: ../fish/guestfish-actions.pod:3527
13682 #, no-wrap
13683 msgid ""
13684 " mount-vfs options vfstype device mountpoint\n"
13685 "\n"
13686 msgstr ""
13687
13688 #. type: textblock
13689 #: ../fish/guestfish-actions.pod:3529
13690 msgid ""
13691 "This is the same as the L</mount> command, but it allows you to set both the "
13692 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13693 msgstr ""
13694
13695 #. type: =head2
13696 #: ../fish/guestfish-actions.pod:3533
13697 msgid "mountpoints"
13698 msgstr "mountpoints"
13699
13700 #. type: verbatim
13701 #: ../fish/guestfish-actions.pod:3535
13702 #, no-wrap
13703 msgid ""
13704 " mountpoints\n"
13705 "\n"
13706 msgstr ""
13707 " mountpoints\n"
13708 "\n"
13709
13710 #. type: textblock
13711 #: ../fish/guestfish-actions.pod:3537
13712 msgid ""
13713 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13714 "This one returns a hash table (map) of device name to directory where the "
13715 "device is mounted."
13716 msgstr ""
13717
13718 #. type: =head2
13719 #: ../fish/guestfish-actions.pod:3541
13720 msgid "mounts"
13721 msgstr "mounts"
13722
13723 #. type: verbatim
13724 #: ../fish/guestfish-actions.pod:3543
13725 #, no-wrap
13726 msgid ""
13727 " mounts\n"
13728 "\n"
13729 msgstr ""
13730 " mounts\n"
13731 "\n"
13732
13733 #. type: textblock
13734 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5539
13735 msgid ""
13736 "This returns the list of currently mounted filesystems.  It returns the list "
13737 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13738 msgstr ""
13739
13740 #. type: textblock
13741 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5542
13742 msgid "Some internal mounts are not shown."
13743 msgstr ""
13744
13745 #. type: textblock
13746 #: ../fish/guestfish-actions.pod:3550
13747 msgid "See also: L</mountpoints>"
13748 msgstr "Див. також L</mountpoints>"
13749
13750 #. type: =head2
13751 #: ../fish/guestfish-actions.pod:3552
13752 msgid "mv"
13753 msgstr "mv"
13754
13755 #. type: verbatim
13756 #: ../fish/guestfish-actions.pod:3554
13757 #, no-wrap
13758 msgid ""
13759 " mv src dest\n"
13760 "\n"
13761 msgstr ""
13762 " mv джерело призначення\n"
13763 "\n"
13764
13765 #. type: textblock
13766 #: ../fish/guestfish-actions.pod:3556 ../src/guestfs-actions.pod:5559
13767 msgid ""
13768 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13769 "destination filename or destination directory."
13770 msgstr ""
13771
13772 #. type: =head2
13773 #: ../fish/guestfish-actions.pod:3559
13774 msgid "ntfs-3g-probe"
13775 msgstr "ntfs-3g-probe"
13776
13777 #. type: verbatim
13778 #: ../fish/guestfish-actions.pod:3561
13779 #, no-wrap
13780 msgid ""
13781 " ntfs-3g-probe true|false device\n"
13782 "\n"
13783 msgstr ""
13784
13785 #. type: textblock
13786 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5573
13787 msgid ""
13788 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13789 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
13790 "write, and some cannot be mounted at all)."
13791 msgstr ""
13792
13793 #. type: textblock
13794 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5577
13795 msgid ""
13796 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13797 "can be mounted read-write.  Set it to false if you want to test if the "
13798 "volume can be mounted read-only."
13799 msgstr ""
13800
13801 #. type: textblock
13802 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5581
13803 msgid ""
13804 "The return value is an integer which C<0> if the operation would succeed, or "
13805 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13806 msgstr ""
13807
13808 #. type: =head2
13809 #: ../fish/guestfish-actions.pod:3575
13810 msgid "ntfsresize"
13811 msgstr "ntfsresize"
13812
13813 #. type: verbatim
13814 #: ../fish/guestfish-actions.pod:3577
13815 #, no-wrap
13816 msgid ""
13817 " ntfsresize device\n"
13818 "\n"
13819 msgstr ""
13820 " ntfsresize пристрій\n"
13821 "\n"
13822
13823 #. type: textblock
13824 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3603
13825 #: ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5634
13826 msgid ""
13827 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13828 "size of the underlying device."
13829 msgstr ""
13830
13831 #. type: textblock
13832 #: ../fish/guestfish-actions.pod:3582 ../src/guestfs-actions.pod:5605
13833 msgid ""
13834 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13835 "consistency check (for safety).  You have to boot into Windows to perform "
13836 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13837 "resize filesystems which have been marked in this way.  So in effect it is "
13838 "not possible to call ntfsresize multiple times on a single filesystem "
13839 "without booting into Windows between each resize."
13840 msgstr ""
13841
13842 #. type: textblock
13843 #: ../fish/guestfish-actions.pod:3590 ../fish/guestfish-actions.pod:3629
13844 #: ../src/guestfs-actions.pod:5613 ../src/guestfs-actions.pod:5660
13845 msgid "See also L<ntfsresize(8)>."
13846 msgstr "Див. також L<ntfsresize(8)>."
13847
13848 #. type: textblock
13849 #: ../fish/guestfish-actions.pod:3592 ../fish/guestfish-actions.pod:3640
13850 msgid ""
13851 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13852 "call instead."
13853 msgstr ""
13854
13855 #. type: =head2
13856 #: ../fish/guestfish-actions.pod:3599
13857 msgid "ntfsresize-opts"
13858 msgstr ""
13859
13860 #. type: verbatim
13861 #: ../fish/guestfish-actions.pod:3601
13862 #, no-wrap
13863 msgid ""
13864 " ntfsresize-opts device [size:N] [force:true|false]\n"
13865 "\n"
13866 msgstr ""
13867
13868 #. type: textblock
13869 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5643
13870 msgid ""
13871 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13872 "resized to fit the container (eg. partition)."
13873 msgstr ""
13874
13875 #. type: =item
13876 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5646
13877 msgid "C<force>"
13878 msgstr "C<force>"
13879
13880 #. type: textblock
13881 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5648
13882 msgid ""
13883 "If this option is true, then force the resize of the filesystem even if the "
13884 "filesystem is marked as requiring a consistency check."
13885 msgstr ""
13886
13887 #. type: textblock
13888 #: ../fish/guestfish-actions.pod:3620
13889 msgid ""
13890 "After the resize operation, the filesystem is always marked as requiring a "
13891 "consistency check (for safety).  You have to boot into Windows to perform "
13892 "this check and clear this condition.  If you I<don't> set the C<force> "
13893 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13894 "a single filesystem without booting into Windows between each resize."
13895 msgstr ""
13896
13897 #. type: =head2
13898 #: ../fish/guestfish-actions.pod:3633
13899 msgid "ntfsresize-size"
13900 msgstr "ntfsresize-size"
13901
13902 #. type: verbatim
13903 #: ../fish/guestfish-actions.pod:3635
13904 #, no-wrap
13905 msgid ""
13906 " ntfsresize-size device size\n"
13907 "\n"
13908 msgstr ""
13909
13910 #. type: textblock
13911 #: ../fish/guestfish-actions.pod:3637
13912 msgid ""
13913 "This command is the same as L</ntfsresize> except that it allows you to "
13914 "specify the new size (in bytes) explicitly."
13915 msgstr ""
13916
13917 #. type: =head2
13918 #: ../fish/guestfish-actions.pod:3647
13919 msgid "part-add"
13920 msgstr "part-add"
13921
13922 #. type: verbatim
13923 #: ../fish/guestfish-actions.pod:3649
13924 #, no-wrap
13925 msgid ""
13926 " part-add device prlogex startsect endsect\n"
13927 "\n"
13928 msgstr ""
13929
13930 #. type: textblock
13931 #: ../fish/guestfish-actions.pod:3651
13932 msgid ""
13933 "This command adds a partition to C<device>.  If there is no partition table "
13934 "on the device, call L</part-init> first."
13935 msgstr ""
13936
13937 #. type: textblock
13938 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5721
13939 msgid ""
13940 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13941 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13942 "C<logical>) and C<e> (or C<extended>) partition types."
13943 msgstr ""
13944
13945 #. type: textblock
13946 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5726
13947 msgid ""
13948 "C<startsect> and C<endsect> are the start and end of the partition in "
13949 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13950 "from the end of the disk (C<-1> is the last sector)."
13951 msgstr ""
13952
13953 #. type: textblock
13954 #: ../fish/guestfish-actions.pod:3663
13955 msgid ""
13956 "Creating a partition which covers the whole disk is not so easy.  Use L</"
13957 "part-disk> to do that."
13958 msgstr ""
13959
13960 #. type: =head2
13961 #: ../fish/guestfish-actions.pod:3666
13962 msgid "part-del"
13963 msgstr "part-del"
13964
13965 #. type: verbatim
13966 #: ../fish/guestfish-actions.pod:3668
13967 #, no-wrap
13968 msgid ""
13969 " part-del device partnum\n"
13970 "\n"
13971 msgstr ""
13972
13973 #. type: textblock
13974 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5744
13975 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13976 msgstr ""
13977
13978 #. type: textblock
13979 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5746
13980 msgid ""
13981 "Note that in the case of MBR partitioning, deleting an extended partition "
13982 "also deletes any logical partitions it contains."
13983 msgstr ""
13984
13985 #. type: =head2
13986 #: ../fish/guestfish-actions.pod:3676
13987 msgid "part-disk"
13988 msgstr "part-disk"
13989
13990 #. type: verbatim
13991 #: ../fish/guestfish-actions.pod:3678
13992 #, no-wrap
13993 msgid ""
13994 " part-disk device parttype\n"
13995 "\n"
13996 msgstr ""
13997 " part-disk пристрій тип_розділу\n"
13998 "\n"
13999
14000 #. type: textblock
14001 #: ../fish/guestfish-actions.pod:3680
14002 msgid ""
14003 "This command is simply a combination of L</part-init> followed by L</part-"
14004 "add> to create a single primary partition covering the whole disk."
14005 msgstr ""
14006
14007 #. type: textblock
14008 #: ../fish/guestfish-actions.pod:3684
14009 msgid ""
14010 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14011 "possible values are described in L</part-init>."
14012 msgstr ""
14013
14014 #. type: =head2
14015 #: ../fish/guestfish-actions.pod:3687
14016 msgid "part-get-bootable"
14017 msgstr "part-get-bootable"
14018
14019 #. type: verbatim
14020 #: ../fish/guestfish-actions.pod:3689
14021 #, no-wrap
14022 msgid ""
14023 " part-get-bootable device partnum\n"
14024 "\n"
14025 msgstr ""
14026
14027 #. type: textblock
14028 #: ../fish/guestfish-actions.pod:3691 ../src/guestfs-actions.pod:5779
14029 msgid ""
14030 "This command returns true if the partition C<partnum> on C<device> has the "
14031 "bootable flag set."
14032 msgstr ""
14033
14034 #. type: textblock
14035 #: ../fish/guestfish-actions.pod:3694
14036 msgid "See also L</part-set-bootable>."
14037 msgstr "Див. також L</part-set-bootable>."
14038
14039 #. type: =head2
14040 #: ../fish/guestfish-actions.pod:3696
14041 msgid "part-get-mbr-id"
14042 msgstr "part-get-mbr-id"
14043
14044 #. type: verbatim
14045 #: ../fish/guestfish-actions.pod:3698
14046 #, no-wrap
14047 msgid ""
14048 " part-get-mbr-id device partnum\n"
14049 "\n"
14050 msgstr ""
14051
14052 #. type: textblock
14053 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5795
14054 msgid ""
14055 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14056 "partition C<partnum>."
14057 msgstr ""
14058
14059 #. type: textblock
14060 #: ../fish/guestfish-actions.pod:3703 ../fish/guestfish-actions.pod:3847
14061 msgid ""
14062 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14063 "undefined results for other partition table types (see L</part-get-"
14064 "parttype>)."
14065 msgstr ""
14066
14067 #. type: =head2
14068 #: ../fish/guestfish-actions.pod:3707
14069 msgid "part-get-parttype"
14070 msgstr "part-get-parttype"
14071
14072 #. type: verbatim
14073 #: ../fish/guestfish-actions.pod:3709
14074 #, no-wrap
14075 msgid ""
14076 " part-get-parttype device\n"
14077 "\n"
14078 msgstr ""
14079 " part-get-parttype пристрій\n"
14080 "\n"
14081
14082 #. type: textblock
14083 #: ../fish/guestfish-actions.pod:3711 ../src/guestfs-actions.pod:5812
14084 msgid ""
14085 "This command examines the partition table on C<device> and returns the "
14086 "partition table type (format) being used."
14087 msgstr ""
14088
14089 #. type: textblock
14090 #: ../fish/guestfish-actions.pod:3714
14091 msgid ""
14092 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14093 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14094 "possible, although unusual.  See L</part-init> for a full list."
14095 msgstr ""
14096
14097 #. type: =head2
14098 #: ../fish/guestfish-actions.pod:3719
14099 msgid "part-init"
14100 msgstr "part-init"
14101
14102 #. type: verbatim
14103 #: ../fish/guestfish-actions.pod:3721
14104 #, no-wrap
14105 msgid ""
14106 " part-init device parttype\n"
14107 "\n"
14108 msgstr ""
14109
14110 #. type: textblock
14111 #: ../fish/guestfish-actions.pod:3723 ../src/guestfs-actions.pod:5832
14112 msgid ""
14113 "This creates an empty partition table on C<device> of one of the partition "
14114 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14115 "(for large disks)."
14116 msgstr ""
14117
14118 #. type: textblock
14119 #: ../fish/guestfish-actions.pod:3727
14120 msgid ""
14121 "Initially there are no partitions.  Following this, you should call L</part-"
14122 "add> for each partition required."
14123 msgstr ""
14124
14125 #. type: textblock
14126 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5839
14127 msgid "Possible values for C<parttype> are:"
14128 msgstr ""
14129
14130 #. type: =item
14131 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5843
14132 msgid "B<efi>"
14133 msgstr "B<efi>"
14134
14135 #. type: =item
14136 #: ../fish/guestfish-actions.pod:3736 ../src/guestfs-actions.pod:5845
14137 msgid "B<gpt>"
14138 msgstr "B<gpt>"
14139
14140 #. type: textblock
14141 #: ../fish/guestfish-actions.pod:3738 ../src/guestfs-actions.pod:5847
14142 msgid "Intel EFI / GPT partition table."
14143 msgstr ""
14144
14145 #. type: textblock
14146 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5849
14147 msgid ""
14148 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14149 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14150 "the C<mbr> format."
14151 msgstr ""
14152
14153 #. type: =item
14154 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5853
14155 msgid "B<mbr>"
14156 msgstr "B<mbr>"
14157
14158 #. type: =item
14159 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5855
14160 msgid "B<msdos>"
14161 msgstr "B<msdos>"
14162
14163 #. type: textblock
14164 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5857
14165 msgid ""
14166 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14167 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14168 "TB.  For large disks we recommend using C<gpt>."
14169 msgstr ""
14170
14171 #. type: textblock
14172 #: ../fish/guestfish-actions.pod:3755 ../src/guestfs-actions.pod:5864
14173 msgid ""
14174 "Other partition table types that may work but are not supported include:"
14175 msgstr ""
14176
14177 #. type: =item
14178 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5869
14179 msgid "B<aix>"
14180 msgstr "B<aix>"
14181
14182 #. type: textblock
14183 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5871
14184 msgid "AIX disk labels."
14185 msgstr "Мітки дисків AIX."
14186
14187 #. type: =item
14188 #: ../fish/guestfish-actions.pod:3764 ../src/guestfs-actions.pod:5873
14189 msgid "B<amiga>"
14190 msgstr "B<amiga>"
14191
14192 #. type: =item
14193 #: ../fish/guestfish-actions.pod:3766 ../src/guestfs-actions.pod:5875
14194 msgid "B<rdb>"
14195 msgstr "B<rdb>"
14196
14197 #. type: textblock
14198 #: ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5877
14199 msgid "Amiga \"Rigid Disk Block\" format."
14200 msgstr "Формат \"Rigid Disk Block\" Amiga."
14201
14202 #. type: =item
14203 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5879
14204 msgid "B<bsd>"
14205 msgstr "B<bsd>"
14206
14207 #. type: textblock
14208 #: ../fish/guestfish-actions.pod:3772 ../src/guestfs-actions.pod:5881
14209 msgid "BSD disk labels."
14210 msgstr "Мітки дисків BSD."
14211
14212 #. type: =item
14213 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5883
14214 msgid "B<dasd>"
14215 msgstr "B<dasd>"
14216
14217 #. type: textblock
14218 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5885
14219 msgid "DASD, used on IBM mainframes."
14220 msgstr "DASD, використовувалися у мейнфреймах IBM."
14221
14222 #. type: =item
14223 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5887
14224 msgid "B<dvh>"
14225 msgstr "B<dvh>"
14226
14227 #. type: textblock
14228 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5889
14229 msgid "MIPS/SGI volumes."
14230 msgstr "Томи MIPS/SGI."
14231
14232 #. type: =item
14233 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5891
14234 msgid "B<mac>"
14235 msgstr "B<mac>"
14236
14237 #. type: textblock
14238 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5893
14239 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14240 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14241
14242 #. type: =item
14243 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5895
14244 msgid "B<pc98>"
14245 msgstr "B<pc98>"
14246
14247 #. type: textblock
14248 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5897
14249 msgid "NEC PC-98 format, common in Japan apparently."
14250 msgstr "Формат NEC PC-98, поширений у Японії."
14251
14252 #. type: =item
14253 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5899
14254 msgid "B<sun>"
14255 msgstr "B<sun>"
14256
14257 #. type: textblock
14258 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5901
14259 msgid "Sun disk labels."
14260 msgstr "Мітки дисків Sun."
14261
14262 #. type: =head2
14263 #: ../fish/guestfish-actions.pod:3796
14264 msgid "part-list"
14265 msgstr "part-list"
14266
14267 #. type: verbatim
14268 #: ../fish/guestfish-actions.pod:3798
14269 #, no-wrap
14270 msgid ""
14271 " part-list device\n"
14272 "\n"
14273 msgstr ""
14274 " part-list device\n"
14275 "\n"
14276
14277 #. type: textblock
14278 #: ../fish/guestfish-actions.pod:3800 ../src/guestfs-actions.pod:5915
14279 msgid ""
14280 "This command parses the partition table on C<device> and returns the list of "
14281 "partitions found."
14282 msgstr ""
14283
14284 #. type: textblock
14285 #: ../fish/guestfish-actions.pod:3803 ../src/guestfs-actions.pod:5918
14286 msgid "The fields in the returned structure are:"
14287 msgstr ""
14288
14289 #. type: =item
14290 #: ../fish/guestfish-actions.pod:3807 ../src/guestfs-actions.pod:5922
14291 msgid "B<part_num>"
14292 msgstr "B<part_num>"
14293
14294 #. type: textblock
14295 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5924
14296 msgid "Partition number, counting from 1."
14297 msgstr ""
14298
14299 #. type: =item
14300 #: ../fish/guestfish-actions.pod:3811 ../src/guestfs-actions.pod:5926
14301 msgid "B<part_start>"
14302 msgstr "B<part_start>"
14303
14304 #. type: textblock
14305 #: ../fish/guestfish-actions.pod:3813
14306 msgid ""
14307 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14308 "the device's sector size, see L</blockdev-getss>."
14309 msgstr ""
14310
14311 #. type: =item
14312 #: ../fish/guestfish-actions.pod:3816 ../src/guestfs-actions.pod:5931
14313 msgid "B<part_end>"
14314 msgstr "B<part_end>"
14315
14316 #. type: textblock
14317 #: ../fish/guestfish-actions.pod:3818 ../src/guestfs-actions.pod:5933
14318 msgid "End of the partition in bytes."
14319 msgstr ""
14320
14321 #. type: =item
14322 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5935
14323 msgid "B<part_size>"
14324 msgstr "B<part_size>"
14325
14326 #. type: textblock
14327 #: ../fish/guestfish-actions.pod:3822 ../src/guestfs-actions.pod:5937
14328 msgid "Size of the partition in bytes."
14329 msgstr ""
14330
14331 #. type: =head2
14332 #: ../fish/guestfish-actions.pod:3826
14333 msgid "part-set-bootable"
14334 msgstr "part-set-bootable"
14335
14336 #. type: verbatim
14337 #: ../fish/guestfish-actions.pod:3828
14338 #, no-wrap
14339 msgid ""
14340 " part-set-bootable device partnum true|false\n"
14341 "\n"
14342 msgstr ""
14343
14344 #. type: textblock
14345 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5955
14346 msgid ""
14347 "This sets the bootable flag on partition numbered C<partnum> on device "
14348 "C<device>.  Note that partitions are numbered from 1."
14349 msgstr ""
14350
14351 #. type: textblock
14352 #: ../fish/guestfish-actions.pod:3833 ../src/guestfs-actions.pod:5958
14353 msgid ""
14354 "The bootable flag is used by some operating systems (notably Windows) to "
14355 "determine which partition to boot from.  It is by no means universally "
14356 "recognized."
14357 msgstr ""
14358
14359 #. type: =head2
14360 #: ../fish/guestfish-actions.pod:3837
14361 msgid "part-set-mbr-id"
14362 msgstr "part-set-mbr-id"
14363
14364 #. type: verbatim
14365 #: ../fish/guestfish-actions.pod:3839
14366 #, no-wrap
14367 msgid ""
14368 " part-set-mbr-id device partnum idbyte\n"
14369 "\n"
14370 msgstr ""
14371
14372 #. type: textblock
14373 #: ../fish/guestfish-actions.pod:3841 ../src/guestfs-actions.pod:5974
14374 msgid ""
14375 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14376 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14377 "documentation are in fact hexadecimal numbers, but usually documented "
14378 "without any leading \"0x\" which might be confusing."
14379 msgstr ""
14380
14381 #. type: =head2
14382 #: ../fish/guestfish-actions.pod:3851
14383 msgid "part-set-name"
14384 msgstr "part-set-name"
14385
14386 #. type: verbatim
14387 #: ../fish/guestfish-actions.pod:3853
14388 #, no-wrap
14389 msgid ""
14390 " part-set-name device partnum name\n"
14391 "\n"
14392 msgstr ""
14393
14394 #. type: textblock
14395 #: ../fish/guestfish-actions.pod:3855 ../src/guestfs-actions.pod:5996
14396 msgid ""
14397 "This sets the partition name on partition numbered C<partnum> on device "
14398 "C<device>.  Note that partitions are numbered from 1."
14399 msgstr ""
14400
14401 #. type: textblock
14402 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5999
14403 msgid ""
14404 "The partition name can only be set on certain types of partition table.  "
14405 "This works on C<gpt> but not on C<mbr> partitions."
14406 msgstr ""
14407
14408 #. type: =head2
14409 #: ../fish/guestfish-actions.pod:3861
14410 msgid "part-to-dev"
14411 msgstr "part-to-dev"
14412
14413 #. type: verbatim
14414 #: ../fish/guestfish-actions.pod:3863
14415 #, no-wrap
14416 msgid ""
14417 " part-to-dev partition\n"
14418 "\n"
14419 msgstr ""
14420 " part-to-dev розділ\n"
14421 "\n"
14422
14423 #. type: textblock
14424 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6012
14425 msgid ""
14426 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14427 "partition number, returning the device name (eg. \"/dev/sdb\")."
14428 msgstr ""
14429
14430 #. type: textblock
14431 #: ../fish/guestfish-actions.pod:3869 ../fish/guestfish-actions.pod:3881
14432 msgid ""
14433 "The named partition must exist, for example as a string returned from L</"
14434 "list-partitions>."
14435 msgstr ""
14436
14437 #. type: textblock
14438 #: ../fish/guestfish-actions.pod:3872
14439 msgid "See also L</part-to-partnum>."
14440 msgstr ""
14441
14442 #. type: =head2
14443 #: ../fish/guestfish-actions.pod:3874
14444 msgid "part-to-partnum"
14445 msgstr ""
14446
14447 #. type: verbatim
14448 #: ../fish/guestfish-actions.pod:3876
14449 #, no-wrap
14450 msgid ""
14451 " part-to-partnum partition\n"
14452 "\n"
14453 msgstr ""
14454
14455 #. type: textblock
14456 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6032
14457 msgid ""
14458 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14459 "partition number (eg. C<1>)."
14460 msgstr ""
14461
14462 #. type: textblock
14463 #: ../fish/guestfish-actions.pod:3884
14464 msgid "See also L</part-to-dev>."
14465 msgstr ""
14466
14467 #. type: =head2
14468 #: ../fish/guestfish-actions.pod:3886
14469 msgid "ping-daemon"
14470 msgstr "ping-daemon"
14471
14472 #. type: verbatim
14473 #: ../fish/guestfish-actions.pod:3888
14474 #, no-wrap
14475 msgid ""
14476 " ping-daemon\n"
14477 "\n"
14478 msgstr ""
14479 " ping-daemon\n"
14480 "\n"
14481
14482 #. type: textblock
14483 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6049
14484 msgid ""
14485 "This is a test probe into the guestfs daemon running inside the qemu "
14486 "subprocess.  Calling this function checks that the daemon responds to the "
14487 "ping message, without affecting the daemon or attached block device(s) in "
14488 "any other way."
14489 msgstr ""
14490
14491 #. type: =head2
14492 #: ../fish/guestfish-actions.pod:3895
14493 msgid "pread"
14494 msgstr "pread"
14495
14496 #. type: verbatim
14497 #: ../fish/guestfish-actions.pod:3897
14498 #, no-wrap
14499 msgid ""
14500 " pread path count offset\n"
14501 "\n"
14502 msgstr ""
14503
14504 #. type: textblock
14505 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:6067
14506 msgid ""
14507 "This command lets you read part of a file.  It reads C<count> bytes of the "
14508 "file, starting at C<offset>, from file C<path>."
14509 msgstr ""
14510
14511 #. type: textblock
14512 #: ../fish/guestfish-actions.pod:3902 ../fish/guestfish-actions.pod:3917
14513 #: ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6096
14514 msgid ""
14515 "This may read fewer bytes than requested.  For further details see the "
14516 "L<pread(2)> system call."
14517 msgstr ""
14518
14519 #. type: textblock
14520 #: ../fish/guestfish-actions.pod:3905
14521 msgid "See also L</pwrite>, L</pread-device>."
14522 msgstr "Див. також L</pwrite>, L</pread-device>."
14523
14524 #. type: =head2
14525 #: ../fish/guestfish-actions.pod:3910
14526 msgid "pread-device"
14527 msgstr "pread-device"
14528
14529 #. type: verbatim
14530 #: ../fish/guestfish-actions.pod:3912
14531 #, no-wrap
14532 msgid ""
14533 " pread-device device count offset\n"
14534 "\n"
14535 msgstr ""
14536
14537 #. type: textblock
14538 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:6093
14539 msgid ""
14540 "This command lets you read part of a file.  It reads C<count> bytes of "
14541 "C<device>, starting at C<offset>."
14542 msgstr ""
14543
14544 #. type: textblock
14545 #: ../fish/guestfish-actions.pod:3920
14546 msgid "See also L</pread>."
14547 msgstr "Див. також L</pread>."
14548
14549 #. type: =head2
14550 #: ../fish/guestfish-actions.pod:3925
14551 msgid "pvcreate"
14552 msgstr "pvcreate"
14553
14554 #. type: verbatim
14555 #: ../fish/guestfish-actions.pod:3927
14556 #, no-wrap
14557 msgid ""
14558 " pvcreate device\n"
14559 "\n"
14560 msgstr ""
14561 " pvcreate пристрій\n"
14562 "\n"
14563
14564 #. type: textblock
14565 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6116
14566 msgid ""
14567 "This creates an LVM physical volume on the named C<device>, where C<device> "
14568 "should usually be a partition name such as C</dev/sda1>."
14569 msgstr ""
14570
14571 #. type: =head2
14572 #: ../fish/guestfish-actions.pod:3933
14573 msgid "pvremove"
14574 msgstr "pvremove"
14575
14576 #. type: verbatim
14577 #: ../fish/guestfish-actions.pod:3935
14578 #, no-wrap
14579 msgid ""
14580 " pvremove device\n"
14581 "\n"
14582 msgstr ""
14583 " pvremove пристрій\n"
14584 "\n"
14585
14586 #. type: textblock
14587 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6130
14588 msgid ""
14589 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14590 "it."
14591 msgstr ""
14592
14593 #. type: textblock
14594 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6133
14595 msgid ""
14596 "The implementation uses the C<pvremove> command which refuses to wipe "
14597 "physical volumes that contain any volume groups, so you have to remove those "
14598 "first."
14599 msgstr ""
14600
14601 #. type: =head2
14602 #: ../fish/guestfish-actions.pod:3944
14603 msgid "pvresize"
14604 msgstr "pvresize"
14605
14606 #. type: verbatim
14607 #: ../fish/guestfish-actions.pod:3946
14608 #, no-wrap
14609 msgid ""
14610 " pvresize device\n"
14611 "\n"
14612 msgstr ""
14613 " pvresize пристрій\n"
14614 "\n"
14615
14616 #. type: textblock
14617 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6147
14618 msgid ""
14619 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14620 "the new size of the underlying device."
14621 msgstr ""
14622
14623 #. type: =head2
14624 #: ../fish/guestfish-actions.pod:3951
14625 msgid "pvresize-size"
14626 msgstr "pvresize-size"
14627
14628 #. type: verbatim
14629 #: ../fish/guestfish-actions.pod:3953
14630 #, no-wrap
14631 msgid ""
14632 " pvresize-size device size\n"
14633 "\n"
14634 msgstr ""
14635
14636 #. type: textblock
14637 #: ../fish/guestfish-actions.pod:3955
14638 msgid ""
14639 "This command is the same as L</pvresize> except that it allows you to "
14640 "specify the new size (in bytes) explicitly."
14641 msgstr ""
14642
14643 #. type: =head2
14644 #: ../fish/guestfish-actions.pod:3958
14645 msgid "pvs"
14646 msgstr "pvs"
14647
14648 #. type: verbatim
14649 #: ../fish/guestfish-actions.pod:3960
14650 #, no-wrap
14651 msgid ""
14652 " pvs\n"
14653 "\n"
14654 msgstr ""
14655 " pvs\n"
14656 "\n"
14657
14658 #. type: textblock
14659 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6173
14660 msgid ""
14661 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14662 "(8)> command."
14663 msgstr ""
14664
14665 #. type: textblock
14666 #: ../fish/guestfish-actions.pod:3965 ../src/guestfs-actions.pod:6176
14667 msgid ""
14668 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14669 "sda2>)."
14670 msgstr ""
14671
14672 #. type: textblock
14673 #: ../fish/guestfish-actions.pod:3968
14674 msgid "See also L</pvs-full>."
14675 msgstr "Див. також L</pvs-full>."
14676
14677 #. type: =head2
14678 #: ../fish/guestfish-actions.pod:3970
14679 msgid "pvs-full"
14680 msgstr "pvs-full"
14681
14682 #. type: verbatim
14683 #: ../fish/guestfish-actions.pod:3972
14684 #, no-wrap
14685 msgid ""
14686 " pvs-full\n"
14687 "\n"
14688 msgstr ""
14689 " pvs-full\n"
14690 "\n"
14691
14692 #. type: textblock
14693 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6192
14694 msgid ""
14695 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14696 "(8)> command.  The \"full\" version includes all fields."
14697 msgstr ""
14698
14699 #. type: =head2
14700 #: ../fish/guestfish-actions.pod:3977
14701 msgid "pvuuid"
14702 msgstr "pvuuid"
14703
14704 #. type: verbatim
14705 #: ../fish/guestfish-actions.pod:3979
14706 #, no-wrap
14707 msgid ""
14708 " pvuuid device\n"
14709 "\n"
14710 msgstr ""
14711 " pvuuid пристрій\n"
14712 "\n"
14713
14714 #. type: textblock
14715 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6207
14716 msgid "This command returns the UUID of the LVM PV C<device>."
14717 msgstr ""
14718
14719 #. type: =head2
14720 #: ../fish/guestfish-actions.pod:3983
14721 msgid "pwrite"
14722 msgstr "pwrite"
14723
14724 #. type: verbatim
14725 #: ../fish/guestfish-actions.pod:3985
14726 #, no-wrap
14727 msgid ""
14728 " pwrite path content offset\n"
14729 "\n"
14730 msgstr ""
14731
14732 #. type: textblock
14733 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6223
14734 msgid ""
14735 "This command writes to part of a file.  It writes the data buffer C<content> "
14736 "to the file C<path> starting at offset C<offset>."
14737 msgstr ""
14738
14739 #. type: textblock
14740 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6226
14741 msgid ""
14742 "This command implements the L<pwrite(2)> system call, and like that system "
14743 "call it may not write the full data requested.  The return value is the "
14744 "number of bytes that were actually written to the file.  This could even be "
14745 "0, although short writes are unlikely for regular files in ordinary "
14746 "circumstances."
14747 msgstr ""
14748
14749 #. type: textblock
14750 #: ../fish/guestfish-actions.pod:3996
14751 msgid "See also L</pread>, L</pwrite-device>."
14752 msgstr "Див. також L</pread>, L</pwrite-device>."
14753
14754 #. type: =head2
14755 #: ../fish/guestfish-actions.pod:4001
14756 msgid "pwrite-device"
14757 msgstr "pwrite-device"
14758
14759 #. type: verbatim
14760 #: ../fish/guestfish-actions.pod:4003
14761 #, no-wrap
14762 msgid ""
14763 " pwrite-device device content offset\n"
14764 "\n"
14765 msgstr ""
14766
14767 #. type: textblock
14768 #: ../fish/guestfish-actions.pod:4005 ../src/guestfs-actions.pod:6250
14769 msgid ""
14770 "This command writes to part of a device.  It writes the data buffer "
14771 "C<content> to C<device> starting at offset C<offset>."
14772 msgstr ""
14773
14774 #. type: textblock
14775 #: ../fish/guestfish-actions.pod:4008 ../src/guestfs-actions.pod:6253
14776 msgid ""
14777 "This command implements the L<pwrite(2)> system call, and like that system "
14778 "call it may not write the full data requested (although short writes to disk "
14779 "devices and partitions are probably impossible with standard Linux kernels)."
14780 msgstr ""
14781
14782 #. type: textblock
14783 #: ../fish/guestfish-actions.pod:4013
14784 msgid "See also L</pwrite>."
14785 msgstr "Див. також L</pwrite>."
14786
14787 #. type: =head2
14788 #: ../fish/guestfish-actions.pod:4018
14789 msgid "read-file"
14790 msgstr "read-file"
14791
14792 #. type: verbatim
14793 #: ../fish/guestfish-actions.pod:4020
14794 #, no-wrap
14795 msgid ""
14796 " read-file path\n"
14797 "\n"
14798 msgstr ""
14799 " read-file шлях\n"
14800 "\n"
14801
14802 #. type: textblock
14803 #: ../fish/guestfish-actions.pod:4022 ../src/guestfs-actions.pod:6274
14804 msgid "This calls returns the contents of the file C<path> as a buffer."
14805 msgstr ""
14806
14807 #. type: textblock
14808 #: ../fish/guestfish-actions.pod:4025
14809 msgid ""
14810 "Unlike L</cat>, this function can correctly handle files that contain "
14811 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14812 "is limited in the total size of file that can be handled."
14813 msgstr ""
14814
14815 #. type: =head2
14816 #: ../fish/guestfish-actions.pod:4033
14817 msgid "read-lines"
14818 msgstr "read-lines"
14819
14820 #. type: verbatim
14821 #: ../fish/guestfish-actions.pod:4035
14822 #, no-wrap
14823 msgid ""
14824 " read-lines path\n"
14825 "\n"
14826 msgstr ""
14827 " read-lines шлях\n"
14828 "\n"
14829
14830 #. type: textblock
14831 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6299
14832 msgid ""
14833 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14834 "C<CRLF> character sequences are I<not> returned."
14835 msgstr ""
14836
14837 #. type: textblock
14838 #: ../fish/guestfish-actions.pod:4042
14839 msgid ""
14840 "Note that this function cannot correctly handle binary files (specifically, "
14841 "files containing C<\\0> character which is treated as end of line).  For "
14842 "those you need to use the L</read-file> function which has a more complex "
14843 "interface."
14844 msgstr ""
14845
14846 #. type: =head2
14847 #: ../fish/guestfish-actions.pod:4047
14848 msgid "readdir"
14849 msgstr "readdir"
14850
14851 #. type: verbatim
14852 #: ../fish/guestfish-actions.pod:4049
14853 #, no-wrap
14854 msgid ""
14855 " readdir dir\n"
14856 "\n"
14857 msgstr ""
14858 " readdir каталог\n"
14859 "\n"
14860
14861 #. type: textblock
14862 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6319
14863 msgid "This returns the list of directory entries in directory C<dir>."
14864 msgstr ""
14865
14866 #. type: textblock
14867 #: ../fish/guestfish-actions.pod:4053 ../src/guestfs-actions.pod:6321
14868 msgid ""
14869 "All entries in the directory are returned, including C<.> and C<..>.  The "
14870 "entries are I<not> sorted, but returned in the same order as the underlying "
14871 "filesystem."
14872 msgstr ""
14873
14874 #. type: textblock
14875 #: ../fish/guestfish-actions.pod:4057 ../src/guestfs-actions.pod:6325
14876 msgid ""
14877 "Also this call returns basic file type information about each file.  The "
14878 "C<ftyp> field will contain one of the following characters:"
14879 msgstr ""
14880
14881 #. type: =item
14882 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6330
14883 msgid "'b'"
14884 msgstr "'b'"
14885
14886 #. type: textblock
14887 #: ../fish/guestfish-actions.pod:4064 ../src/guestfs-actions.pod:6332
14888 msgid "Block special"
14889 msgstr "Блоковий особливий"
14890
14891 #. type: =item
14892 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6334
14893 msgid "'c'"
14894 msgstr "'c'"
14895
14896 #. type: textblock
14897 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6336
14898 msgid "Char special"
14899 msgstr "Символьний особливий"
14900
14901 #. type: =item
14902 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6338
14903 msgid "'d'"
14904 msgstr "'d'"
14905
14906 #. type: textblock
14907 #: ../fish/guestfish-actions.pod:4072 ../src/guestfs-actions.pod:6340
14908 msgid "Directory"
14909 msgstr "Каталог"
14910
14911 #. type: =item
14912 #: ../fish/guestfish-actions.pod:4074 ../src/guestfs-actions.pod:6342
14913 msgid "'f'"
14914 msgstr "'f'"
14915
14916 #. type: textblock
14917 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6344
14918 msgid "FIFO (named pipe)"
14919 msgstr "FIFO (іменований канал)"
14920
14921 #. type: =item
14922 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6346
14923 msgid "'l'"
14924 msgstr "'l'"
14925
14926 #. type: textblock
14927 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6348
14928 msgid "Symbolic link"
14929 msgstr "Символічне посилання"
14930
14931 #. type: =item
14932 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6350
14933 msgid "'r'"
14934 msgstr "'r'"
14935
14936 #. type: textblock
14937 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6352
14938 msgid "Regular file"
14939 msgstr "Звичайний файл"
14940
14941 #. type: =item
14942 #: ../fish/guestfish-actions.pod:4086 ../src/guestfs-actions.pod:6354
14943 msgid "'s'"
14944 msgstr "'s'"
14945
14946 #. type: textblock
14947 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6356
14948 msgid "Socket"
14949 msgstr "Сокет"
14950
14951 #. type: =item
14952 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6358
14953 msgid "'u'"
14954 msgstr "'u'"
14955
14956 #. type: textblock
14957 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6360
14958 msgid "Unknown file type"
14959 msgstr "Невідомий тип файла"
14960
14961 #. type: =item
14962 #: ../fish/guestfish-actions.pod:4094 ../src/guestfs-actions.pod:6362
14963 msgid "'?'"
14964 msgstr ""
14965
14966 #. type: textblock
14967 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6364
14968 msgid ""
14969 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14970 msgstr ""
14971
14972 #. type: textblock
14973 #: ../fish/guestfish-actions.pod:4101
14974 msgid ""
14975 "This function is primarily intended for use by programs.  To get a simple "
14976 "list of names, use L</ls>.  To get a printable directory for human "
14977 "consumption, use L</ll>."
14978 msgstr ""
14979
14980 #. type: =head2
14981 #: ../fish/guestfish-actions.pod:4105
14982 msgid "readlink"
14983 msgstr "readlink"
14984
14985 #. type: verbatim
14986 #: ../fish/guestfish-actions.pod:4107
14987 #, no-wrap
14988 msgid ""
14989 " readlink path\n"
14990 "\n"
14991 msgstr ""
14992 " readlink шлях\n"
14993 "\n"
14994
14995 #. type: textblock
14996 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6385
14997 msgid "This command reads the target of a symbolic link."
14998 msgstr ""
14999
15000 #. type: =head2
15001 #: ../fish/guestfish-actions.pod:4111
15002 msgid "readlinklist"
15003 msgstr "readlinklist"
15004
15005 #. type: verbatim
15006 #: ../fish/guestfish-actions.pod:4113
15007 #, no-wrap
15008 msgid ""
15009 " readlinklist path 'names ...'\n"
15010 "\n"
15011 msgstr ""
15012
15013 #. type: textblock
15014 #: ../fish/guestfish-actions.pod:4115 ../src/guestfs-actions.pod:6399
15015 msgid ""
15016 "This call allows you to do a C<readlink> operation on multiple files, where "
15017 "all files are in the directory C<path>.  C<names> is the list of files from "
15018 "this directory."
15019 msgstr ""
15020
15021 #. type: textblock
15022 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6403
15023 msgid ""
15024 "On return you get a list of strings, with a one-to-one correspondence to the "
15025 "C<names> list.  Each string is the value of the symbolic link."
15026 msgstr ""
15027
15028 #. type: textblock
15029 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6407
15030 msgid ""
15031 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15032 "result string is the empty string C<\"\">.  However the whole operation is "
15033 "completed even if there were C<readlink(2)> errors, and so you can call this "
15034 "function with names where you don't know if they are symbolic links already "
15035 "(albeit slightly less efficient)."
15036 msgstr ""
15037
15038 #. type: textblock
15039 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6414
15040 msgid ""
15041 "This call is intended for programs that want to efficiently list a directory "
15042 "contents without making many round-trips.  Very long directory listings "
15043 "might cause the protocol message size to be exceeded, causing this call to "
15044 "fail.  The caller must split up such requests into smaller groups of names."
15045 msgstr ""
15046
15047 #. type: =head2
15048 #: ../fish/guestfish-actions.pod:4137
15049 msgid "realpath"
15050 msgstr "realpath"
15051
15052 #. type: verbatim
15053 #: ../fish/guestfish-actions.pod:4139
15054 #, no-wrap
15055 msgid ""
15056 " realpath path\n"
15057 "\n"
15058 msgstr ""
15059 " realpath шлях\n"
15060 "\n"
15061
15062 #. type: textblock
15063 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6433
15064 msgid ""
15065 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15066 "has no C<.>, C<..> or symbolic link path elements."
15067 msgstr ""
15068
15069 #. type: =head2
15070 #: ../fish/guestfish-actions.pod:4144
15071 msgid "removexattr"
15072 msgstr "removexattr"
15073
15074 #. type: verbatim
15075 #: ../fish/guestfish-actions.pod:4146
15076 #, no-wrap
15077 msgid ""
15078 " removexattr xattr path\n"
15079 "\n"
15080 msgstr ""
15081
15082 #. type: textblock
15083 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6448
15084 msgid ""
15085 "This call removes the extended attribute named C<xattr> of the file C<path>."
15086 msgstr ""
15087
15088 #. type: textblock
15089 #: ../fish/guestfish-actions.pod:4151
15090 msgid "See also: L</lremovexattr>, L<attr(5)>."
15091 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
15092
15093 #. type: =head2
15094 #: ../fish/guestfish-actions.pod:4153
15095 msgid "resize2fs"
15096 msgstr "resize2fs"
15097
15098 #. type: verbatim
15099 #: ../fish/guestfish-actions.pod:4155
15100 #, no-wrap
15101 msgid ""
15102 " resize2fs device\n"
15103 "\n"
15104 msgstr ""
15105 " resize2fs пристрій\n"
15106 "\n"
15107
15108 #. type: textblock
15109 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6463
15110 msgid ""
15111 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15112 "underlying device."
15113 msgstr ""
15114
15115 #. type: textblock
15116 #: ../fish/guestfish-actions.pod:4160
15117 msgid ""
15118 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15119 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15120 "gives an error about this and sometimes not.  In any case, it is always safe "
15121 "to call L</e2fsck-f> before calling this function."
15122 msgstr ""
15123
15124 #. type: =head2
15125 #: ../fish/guestfish-actions.pod:4166
15126 msgid "resize2fs-M"
15127 msgstr "resize2fs-M"
15128
15129 #. type: verbatim
15130 #: ../fish/guestfish-actions.pod:4168
15131 #, no-wrap
15132 msgid ""
15133 " resize2fs-M device\n"
15134 "\n"
15135 msgstr ""
15136 " resize2fs-M пристрій\n"
15137 "\n"
15138
15139 #. type: textblock
15140 #: ../fish/guestfish-actions.pod:4170
15141 msgid ""
15142 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15143 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
15144 "command."
15145 msgstr ""
15146
15147 #. type: textblock
15148 #: ../fish/guestfish-actions.pod:4174
15149 msgid ""
15150 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15151 "and read the C<Block size> and C<Block count> values.  These two numbers, "
15152 "multiplied together, give the resulting size of the minimal filesystem in "
15153 "bytes."
15154 msgstr ""
15155
15156 #. type: =head2
15157 #: ../fish/guestfish-actions.pod:4179
15158 msgid "resize2fs-size"
15159 msgstr "resize2fs-size"
15160
15161 #. type: verbatim
15162 #: ../fish/guestfish-actions.pod:4181
15163 #, no-wrap
15164 msgid ""
15165 " resize2fs-size device size\n"
15166 "\n"
15167 msgstr ""
15168
15169 #. type: textblock
15170 #: ../fish/guestfish-actions.pod:4183
15171 msgid ""
15172 "This command is the same as L</resize2fs> except that it allows you to "
15173 "specify the new size (in bytes) explicitly."
15174 msgstr ""
15175
15176 #. type: =head2
15177 #: ../fish/guestfish-actions.pod:4186
15178 msgid "rm"
15179 msgstr "rm"
15180
15181 #. type: verbatim
15182 #: ../fish/guestfish-actions.pod:4188
15183 #, no-wrap
15184 msgid ""
15185 " rm path\n"
15186 "\n"
15187 msgstr ""
15188 " rm шлях\n"
15189 "\n"
15190
15191 #. type: textblock
15192 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6515
15193 msgid "Remove the single file C<path>."
15194 msgstr ""
15195
15196 #. type: =head2
15197 #: ../fish/guestfish-actions.pod:4192
15198 msgid "rm-rf"
15199 msgstr "rm-rf"
15200
15201 #. type: verbatim
15202 #: ../fish/guestfish-actions.pod:4194
15203 #, no-wrap
15204 msgid ""
15205 " rm-rf path\n"
15206 "\n"
15207 msgstr ""
15208 " rm-rf шлях\n"
15209 "\n"
15210
15211 #. type: textblock
15212 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6527
15213 msgid ""
15214 "Remove the file or directory C<path>, recursively removing the contents if "
15215 "its a directory.  This is like the C<rm -rf> shell command."
15216 msgstr ""
15217
15218 #. type: =head2
15219 #: ../fish/guestfish-actions.pod:4200
15220 msgid "rmdir"
15221 msgstr "rmdir"
15222
15223 #. type: verbatim
15224 #: ../fish/guestfish-actions.pod:4202
15225 #, no-wrap
15226 msgid ""
15227 " rmdir path\n"
15228 "\n"
15229 msgstr ""
15230 " rmdir шлях\n"
15231 "\n"
15232
15233 #. type: textblock
15234 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6541
15235 msgid "Remove the single directory C<path>."
15236 msgstr ""
15237
15238 #. type: =head2
15239 #: ../fish/guestfish-actions.pod:4206
15240 msgid "rmmountpoint"
15241 msgstr "rmmountpoint"
15242
15243 #. type: verbatim
15244 #: ../fish/guestfish-actions.pod:4208
15245 #, no-wrap
15246 msgid ""
15247 " rmmountpoint exemptpath\n"
15248 "\n"
15249 msgstr ""
15250
15251 #. type: textblock
15252 #: ../fish/guestfish-actions.pod:4210
15253 msgid ""
15254 "This calls removes a mountpoint that was previously created with L</"
15255 "mkmountpoint>.  See L</mkmountpoint> for full details."
15256 msgstr ""
15257
15258 #. type: =head2
15259 #: ../fish/guestfish-actions.pod:4214
15260 msgid "scrub-device"
15261 msgstr "scrub-device"
15262
15263 #. type: verbatim
15264 #: ../fish/guestfish-actions.pod:4216
15265 #, no-wrap
15266 msgid ""
15267 " scrub-device device\n"
15268 "\n"
15269 msgstr ""
15270 " scrub-device пристрій\n"
15271 "\n"
15272
15273 #. type: textblock
15274 #: ../fish/guestfish-actions.pod:4218 ../src/guestfs-actions.pod:6567
15275 msgid ""
15276 "This command writes patterns over C<device> to make data retrieval more "
15277 "difficult."
15278 msgstr ""
15279
15280 #. type: textblock
15281 #: ../fish/guestfish-actions.pod:4221 ../fish/guestfish-actions.pod:4233
15282 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6570
15283 #: ../src/guestfs-actions.pod:6588 ../src/guestfs-actions.pod:6607
15284 msgid ""
15285 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15286 "more details."
15287 msgstr ""
15288
15289 #. type: =head2
15290 #: ../fish/guestfish-actions.pod:4224
15291 msgid "scrub-file"
15292 msgstr "scrub-file"
15293
15294 #. type: verbatim
15295 #: ../fish/guestfish-actions.pod:4226
15296 #, no-wrap
15297 msgid ""
15298 " scrub-file file\n"
15299 "\n"
15300 msgstr ""
15301 " scrub-file файл\n"
15302 "\n"
15303
15304 #. type: textblock
15305 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6583
15306 msgid ""
15307 "This command writes patterns over a file to make data retrieval more "
15308 "difficult."
15309 msgstr ""
15310
15311 #. type: textblock
15312 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6586
15313 msgid "The file is I<removed> after scrubbing."
15314 msgstr ""
15315
15316 #. type: =head2
15317 #: ../fish/guestfish-actions.pod:4236
15318 msgid "scrub-freespace"
15319 msgstr "scrub-freespace"
15320
15321 #. type: verbatim
15322 #: ../fish/guestfish-actions.pod:4238
15323 #, no-wrap
15324 msgid ""
15325 " scrub-freespace dir\n"
15326 "\n"
15327 msgstr ""
15328 " scrub-freespace каталог\n"
15329 "\n"
15330
15331 #. type: textblock
15332 #: ../fish/guestfish-actions.pod:4240
15333 msgid ""
15334 "This command creates the directory C<dir> and then fills it with files until "
15335 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15336 "deletes them.  The intention is to scrub any free space on the partition "
15337 "containing C<dir>."
15338 msgstr ""
15339
15340 #. type: =head2
15341 #: ../fish/guestfish-actions.pod:4249
15342 msgid "set-append"
15343 msgstr "set-append"
15344
15345 #. type: =head2
15346 #: ../fish/guestfish-actions.pod:4251
15347 msgid "append"
15348 msgstr ""
15349
15350 #. type: verbatim
15351 #: ../fish/guestfish-actions.pod:4253
15352 #, no-wrap
15353 msgid ""
15354 " set-append append\n"
15355 "\n"
15356 msgstr ""
15357
15358 #. type: textblock
15359 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6620
15360 msgid ""
15361 "This function is used to add additional options to the guest kernel command "
15362 "line."
15363 msgstr ""
15364
15365 #. type: textblock
15366 #: ../fish/guestfish-actions.pod:4258 ../src/guestfs-actions.pod:6623
15367 msgid ""
15368 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15369 "environment variable."
15370 msgstr ""
15371
15372 #. type: textblock
15373 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6626
15374 msgid ""
15375 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15376 "(libguestfs always adds a few of its own)."
15377 msgstr ""
15378
15379 #. type: =head2
15380 #: ../fish/guestfish-actions.pod:4264
15381 msgid "set-attach-method"
15382 msgstr "set-attach-method"
15383
15384 #. type: =head2
15385 #: ../fish/guestfish-actions.pod:4266
15386 msgid "attach-method"
15387 msgstr ""
15388
15389 #. type: verbatim
15390 #: ../fish/guestfish-actions.pod:4268
15391 #, no-wrap
15392 msgid ""
15393 " set-attach-method attachmethod\n"
15394 "\n"
15395 msgstr ""
15396
15397 #. type: textblock
15398 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6639
15399 msgid ""
15400 "Set the method that libguestfs uses to connect to the back end guestfsd "
15401 "daemon.  Possible methods are:"
15402 msgstr ""
15403
15404 #. type: =item
15405 #: ../fish/guestfish-actions.pod:4275 ../src/guestfs-actions.pod:6644
15406 #: ../src/guestfs.pod:2916
15407 msgid "C<appliance>"
15408 msgstr "C<appliance>"
15409
15410 #. type: textblock
15411 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6646
15412 msgid ""
15413 "Launch an appliance and connect to it.  This is the ordinary method and the "
15414 "default."
15415 msgstr ""
15416
15417 #. type: =item
15418 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6649
15419 msgid "C<unix:I<path>>"
15420 msgstr "C<unix:I<шлях>>"
15421
15422 #. type: textblock
15423 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6651
15424 msgid "Connect to the Unix domain socket I<path>."
15425 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15426
15427 #. type: textblock
15428 #: ../fish/guestfish-actions.pod:4284 ../src/guestfs-actions.pod:6653
15429 msgid ""
15430 "This method lets you connect to an existing daemon or (using virtio-serial) "
15431 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15432 "RUNNING DAEMONS>."
15433 msgstr ""
15434
15435 #. type: =head2
15436 #: ../fish/guestfish-actions.pod:4290
15437 msgid "set-autosync"
15438 msgstr "set-autosync"
15439
15440 #. type: =head2
15441 #: ../fish/guestfish-actions.pod:4292
15442 msgid "autosync"
15443 msgstr "autosync"
15444
15445 #. type: verbatim
15446 #: ../fish/guestfish-actions.pod:4294
15447 #, no-wrap
15448 msgid ""
15449 " set-autosync true|false\n"
15450 "\n"
15451 msgstr ""
15452 " set-autosync true|false\n"
15453 "\n"
15454
15455 #. type: textblock
15456 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6669
15457 msgid ""
15458 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15459 "effort attempt to make filesystems consistent and synchronized when the "
15460 "handle is closed (also if the program exits without closing handles)."
15461 msgstr ""
15462
15463 #. type: textblock
15464 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6674
15465 msgid ""
15466 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15467 "disabled by default)."
15468 msgstr ""
15469
15470 #. type: =head2
15471 #: ../fish/guestfish-actions.pod:4304
15472 msgid "set-direct"
15473 msgstr "set-direct"
15474
15475 #. type: =head2
15476 #: ../fish/guestfish-actions.pod:4306
15477 msgid "direct"
15478 msgstr "direct"
15479
15480 #. type: verbatim
15481 #: ../fish/guestfish-actions.pod:4308
15482 #, no-wrap
15483 msgid ""
15484 " set-direct true|false\n"
15485 "\n"
15486 msgstr ""
15487 " set-direct true|false\n"
15488 "\n"
15489
15490 #. type: textblock
15491 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6687
15492 msgid ""
15493 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15494 "passed directly through to the appliance once it is launched."
15495 msgstr ""
15496
15497 #. type: textblock
15498 #: ../fish/guestfish-actions.pod:4314
15499 msgid ""
15500 "One consequence of this is that log messages aren't caught by the library "
15501 "and handled by L</set-log-message-callback>, but go straight to stdout."
15502 msgstr ""
15503
15504 #. type: textblock
15505 #: ../fish/guestfish-actions.pod:4318 ../src/guestfs-actions.pod:6695
15506 msgid "You probably don't want to use this unless you know what you are doing."
15507 msgstr ""
15508
15509 #. type: textblock
15510 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6698
15511 msgid "The default is disabled."
15512 msgstr ""
15513
15514 #. type: =head2
15515 #: ../fish/guestfish-actions.pod:4323
15516 msgid "set-e2label"
15517 msgstr "set-e2label"
15518
15519 #. type: verbatim
15520 #: ../fish/guestfish-actions.pod:4325
15521 #, no-wrap
15522 msgid ""
15523 " set-e2label device label\n"
15524 "\n"
15525 msgstr ""
15526
15527 #. type: textblock
15528 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6711
15529 msgid ""
15530 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15531 "C<label>.  Filesystem labels are limited to 16 characters."
15532 msgstr ""
15533
15534 #. type: textblock
15535 #: ../fish/guestfish-actions.pod:4331
15536 msgid ""
15537 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15538 "label on a filesystem."
15539 msgstr ""
15540
15541 #. type: =head2
15542 #: ../fish/guestfish-actions.pod:4334
15543 msgid "set-e2uuid"
15544 msgstr "set-e2uuid"
15545
15546 #. type: verbatim
15547 #: ../fish/guestfish-actions.pod:4336
15548 #, no-wrap
15549 msgid ""
15550 " set-e2uuid device uuid\n"
15551 "\n"
15552 msgstr ""
15553
15554 #. type: textblock
15555 #: ../fish/guestfish-actions.pod:4338 ../src/guestfs-actions.pod:6729
15556 msgid ""
15557 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15558 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15559 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15560 msgstr ""
15561
15562 #. type: textblock
15563 #: ../fish/guestfish-actions.pod:4343
15564 msgid ""
15565 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15566 "UUID of a filesystem."
15567 msgstr ""
15568
15569 #. type: =head2
15570 #: ../fish/guestfish-actions.pod:4346
15571 msgid "set-memsize"
15572 msgstr "set-memsize"
15573
15574 #. type: =head2
15575 #: ../fish/guestfish-actions.pod:4348
15576 msgid "memsize"
15577 msgstr ""
15578
15579 #. type: verbatim
15580 #: ../fish/guestfish-actions.pod:4350
15581 #, no-wrap
15582 msgid ""
15583 " set-memsize memsize\n"
15584 "\n"
15585 msgstr ""
15586
15587 #. type: textblock
15588 #: ../fish/guestfish-actions.pod:4352
15589 msgid ""
15590 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15591 "This only has any effect if called before L</launch>."
15592 msgstr ""
15593
15594 #. type: textblock
15595 #: ../fish/guestfish-actions.pod:4356 ../src/guestfs-actions.pod:6751
15596 msgid ""
15597 "You can also change this by setting the environment variable "
15598 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15599 msgstr ""
15600
15601 #. type: =head2
15602 #: ../fish/guestfish-actions.pod:4363
15603 msgid "set-network"
15604 msgstr "set-network"
15605
15606 #. type: =head2
15607 #: ../fish/guestfish-actions.pod:4365
15608 msgid "network"
15609 msgstr "network"
15610
15611 #. type: verbatim
15612 #: ../fish/guestfish-actions.pod:4367
15613 #, no-wrap
15614 msgid ""
15615 " set-network true|false\n"
15616 "\n"
15617 msgstr ""
15618 " set-network true|false\n"
15619 "\n"
15620
15621 #. type: textblock
15622 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6768
15623 msgid ""
15624 "If C<network> is true, then the network is enabled in the libguestfs "
15625 "appliance.  The default is false."
15626 msgstr ""
15627
15628 #. type: textblock
15629 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6771
15630 msgid ""
15631 "This affects whether commands are able to access the network (see L<guestfs"
15632 "(3)/RUNNING COMMANDS>)."
15633 msgstr ""
15634
15635 #. type: textblock
15636 #: ../fish/guestfish-actions.pod:4375
15637 msgid ""
15638 "You must call this before calling L</launch>, otherwise it has no effect."
15639 msgstr ""
15640
15641 #. type: =head2
15642 #: ../fish/guestfish-actions.pod:4378
15643 msgid "set-path"
15644 msgstr "set-path"
15645
15646 #. type: verbatim
15647 #: ../fish/guestfish-actions.pod:4382
15648 #, no-wrap
15649 msgid ""
15650 " set-path searchpath\n"
15651 "\n"
15652 msgstr ""
15653
15654 #. type: textblock
15655 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6787
15656 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15657 msgstr ""
15658
15659 #. type: textblock
15660 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6789
15661 msgid ""
15662 "The default is C<$libdir/guestfs> unless overridden by setting "
15663 "C<LIBGUESTFS_PATH> environment variable."
15664 msgstr ""
15665
15666 #. type: textblock
15667 #: ../fish/guestfish-actions.pod:4389 ../src/guestfs-actions.pod:6792
15668 msgid "Setting C<path> to C<NULL> restores the default path."
15669 msgstr ""
15670
15671 #. type: =head2
15672 #: ../fish/guestfish-actions.pod:4391
15673 msgid "set-pgroup"
15674 msgstr ""
15675
15676 #. type: =head2
15677 #: ../fish/guestfish-actions.pod:4393
15678 msgid "pgroup"
15679 msgstr ""
15680
15681 #. type: verbatim
15682 #: ../fish/guestfish-actions.pod:4395
15683 #, no-wrap
15684 msgid ""
15685 " set-pgroup true|false\n"
15686 "\n"
15687 msgstr ""
15688
15689 #. type: textblock
15690 #: ../fish/guestfish-actions.pod:4397 ../src/guestfs-actions.pod:6804
15691 msgid ""
15692 "If C<pgroup> is true, child processes are placed into their own process "
15693 "group."
15694 msgstr ""
15695
15696 #. type: textblock
15697 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6807
15698 msgid ""
15699 "The practical upshot of this is that signals like C<SIGINT> (from users "
15700 "pressing C<^C>) won't be received by the child process."
15701 msgstr ""
15702
15703 #. type: textblock
15704 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6810
15705 msgid ""
15706 "The default for this flag is false, because usually you want C<^C> to kill "
15707 "the subprocess."
15708 msgstr ""
15709
15710 #. type: =head2
15711 #: ../fish/guestfish-actions.pod:4406
15712 msgid "set-qemu"
15713 msgstr "set-qemu"
15714
15715 #. type: =head2
15716 #: ../fish/guestfish-actions.pod:4408
15717 msgid "qemu"
15718 msgstr "qemu"
15719
15720 #. type: verbatim
15721 #: ../fish/guestfish-actions.pod:4410
15722 #, no-wrap
15723 msgid ""
15724 " set-qemu qemu\n"
15725 "\n"
15726 msgstr ""
15727 " set-qemu qemu\n"
15728 "\n"
15729
15730 #. type: textblock
15731 #: ../fish/guestfish-actions.pod:4412 ../src/guestfs-actions.pod:6823
15732 msgid "Set the qemu binary that we will use."
15733 msgstr ""
15734
15735 #. type: textblock
15736 #: ../fish/guestfish-actions.pod:4414 ../src/guestfs-actions.pod:6825
15737 msgid ""
15738 "The default is chosen when the library was compiled by the configure script."
15739 msgstr ""
15740
15741 #. type: textblock
15742 #: ../fish/guestfish-actions.pod:4417 ../src/guestfs-actions.pod:6828
15743 msgid ""
15744 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15745 "variable."
15746 msgstr ""
15747
15748 #. type: textblock
15749 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6831
15750 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15751 msgstr ""
15752
15753 #. type: textblock
15754 #: ../fish/guestfish-actions.pod:4422 ../src/guestfs-actions.pod:6833
15755 msgid ""
15756 "Note that you should call this function as early as possible after creating "
15757 "the handle.  This is because some pre-launch operations depend on testing "
15758 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15759 "don't retest features, and so you might see inconsistent results.  Using the "
15760 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15761 "the qemu binary at the same time as the handle is created."
15762 msgstr ""
15763
15764 #. type: =head2
15765 #: ../fish/guestfish-actions.pod:4430
15766 msgid "set-recovery-proc"
15767 msgstr "set-recovery-proc"
15768
15769 #. type: =head2
15770 #: ../fish/guestfish-actions.pod:4432
15771 msgid "recovery-proc"
15772 msgstr "recovery-proc"
15773
15774 #. type: verbatim
15775 #: ../fish/guestfish-actions.pod:4434
15776 #, no-wrap
15777 msgid ""
15778 " set-recovery-proc true|false\n"
15779 "\n"
15780 msgstr ""
15781 " set-recovery-proc true|false\n"
15782 "\n"
15783
15784 #. type: textblock
15785 #: ../fish/guestfish-actions.pod:4436
15786 msgid ""
15787 "If this is called with the parameter C<false> then L</launch> does not "
15788 "create a recovery process.  The purpose of the recovery process is to stop "
15789 "runaway qemu processes in the case where the main program aborts abruptly."
15790 msgstr ""
15791
15792 #. type: textblock
15793 #: ../fish/guestfish-actions.pod:4441
15794 msgid ""
15795 "This only has any effect if called before L</launch>, and the default is "
15796 "true."
15797 msgstr ""
15798
15799 #. type: textblock
15800 #: ../fish/guestfish-actions.pod:4444 ../src/guestfs-actions.pod:6859
15801 msgid ""
15802 "About the only time when you would want to disable this is if the main "
15803 "process will fork itself into the background (\"daemonize\" itself).  In "
15804 "this case the recovery process thinks that the main program has disappeared "
15805 "and so kills qemu, which is not very helpful."
15806 msgstr ""
15807
15808 #. type: =head2
15809 #: ../fish/guestfish-actions.pod:4450
15810 msgid "set-selinux"
15811 msgstr "set-selinux"
15812
15813 #. type: =head2
15814 #: ../fish/guestfish-actions.pod:4452
15815 msgid "selinux"
15816 msgstr "selinux"
15817
15818 #. type: verbatim
15819 #: ../fish/guestfish-actions.pod:4454
15820 #, no-wrap
15821 msgid ""
15822 " set-selinux true|false\n"
15823 "\n"
15824 msgstr ""
15825 " set-selinux true|false\n"
15826 "\n"
15827
15828 #. type: textblock
15829 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6875
15830 msgid ""
15831 "This sets the selinux flag that is passed to the appliance at boot time.  "
15832 "The default is C<selinux=0> (disabled)."
15833 msgstr ""
15834
15835 #. type: textblock
15836 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6878
15837 msgid ""
15838 "Note that if SELinux is enabled, it is always in Permissive mode "
15839 "(C<enforcing=0>)."
15840 msgstr ""
15841
15842 #. type: =head2
15843 #: ../fish/guestfish-actions.pod:4465
15844 msgid "set-smp"
15845 msgstr ""
15846
15847 #. type: =head2
15848 #: ../fish/guestfish-actions.pod:4467
15849 msgid "smp"
15850 msgstr ""
15851
15852 #. type: verbatim
15853 #: ../fish/guestfish-actions.pod:4469
15854 #, no-wrap
15855 msgid ""
15856 " set-smp smp\n"
15857 "\n"
15858 msgstr ""
15859
15860 #. type: textblock
15861 #: ../fish/guestfish-actions.pod:4471 ../src/guestfs-actions.pod:6894
15862 msgid ""
15863 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15864 "C<1>.  Increasing this may improve performance, though often it has no "
15865 "effect."
15866 msgstr ""
15867
15868 #. type: textblock
15869 #: ../fish/guestfish-actions.pod:4475
15870 msgid "This function must be called before L</launch>."
15871 msgstr ""
15872
15873 #. type: =head2
15874 #: ../fish/guestfish-actions.pod:4477
15875 msgid "set-trace"
15876 msgstr "set-trace"
15877
15878 #. type: =head2
15879 #: ../fish/guestfish-actions.pod:4479
15880 msgid "trace"
15881 msgstr "trace"
15882
15883 #. type: verbatim
15884 #: ../fish/guestfish-actions.pod:4481
15885 #, no-wrap
15886 msgid ""
15887 " set-trace true|false\n"
15888 "\n"
15889 msgstr ""
15890 " set-trace true|false\n"
15891 "\n"
15892
15893 #. type: textblock
15894 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6910
15895 msgid ""
15896 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15897 "return values are traced."
15898 msgstr ""
15899
15900 #. type: textblock
15901 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6913
15902 msgid ""
15903 "If you want to trace C API calls into libguestfs (and other libraries) then "
15904 "possibly a better way is to use the external ltrace(1) command."
15905 msgstr ""
15906
15907 #. type: textblock
15908 #: ../fish/guestfish-actions.pod:4490 ../src/guestfs-actions.pod:6917
15909 msgid ""
15910 "Command traces are disabled unless the environment variable "
15911 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15912 msgstr ""
15913
15914 #. type: textblock
15915 #: ../fish/guestfish-actions.pod:4493
15916 msgid ""
15917 "Trace messages are normally sent to C<stderr>, unless you register a "
15918 "callback to send them somewhere else (see L</set-event-callback>)."
15919 msgstr ""
15920
15921 #. type: =head2
15922 #: ../fish/guestfish-actions.pod:4497
15923 msgid "set-verbose"
15924 msgstr "set-verbose"
15925
15926 #. type: =head2
15927 #: ../fish/guestfish-actions.pod:4499
15928 msgid "verbose"
15929 msgstr "verbose"
15930
15931 #. type: verbatim
15932 #: ../fish/guestfish-actions.pod:4501
15933 #, no-wrap
15934 msgid ""
15935 " set-verbose true|false\n"
15936 "\n"
15937 msgstr ""
15938 " set-verbose true|false\n"
15939 "\n"
15940
15941 #. type: textblock
15942 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6934
15943 msgid "If C<verbose> is true, this turns on verbose messages."
15944 msgstr ""
15945
15946 #. type: textblock
15947 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6936
15948 msgid ""
15949 "Verbose messages are disabled unless the environment variable "
15950 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15951 msgstr ""
15952
15953 #. type: textblock
15954 #: ../fish/guestfish-actions.pod:4508
15955 msgid ""
15956 "Verbose messages are normally sent to C<stderr>, unless you register a "
15957 "callback to send them somewhere else (see L</set-event-callback>)."
15958 msgstr ""
15959
15960 #. type: =head2
15961 #: ../fish/guestfish-actions.pod:4512
15962 msgid "setcon"
15963 msgstr "setcon"
15964
15965 #. type: verbatim
15966 #: ../fish/guestfish-actions.pod:4514
15967 #, no-wrap
15968 msgid ""
15969 " setcon context\n"
15970 "\n"
15971 msgstr ""
15972 " setcon контекст\n"
15973 "\n"
15974
15975 #. type: textblock
15976 #: ../fish/guestfish-actions.pod:4516 ../src/guestfs-actions.pod:6953
15977 msgid ""
15978 "This sets the SELinux security context of the daemon to the string "
15979 "C<context>."
15980 msgstr ""
15981
15982 #. type: textblock
15983 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6956
15984 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15985 msgstr ""
15986
15987 #. type: =head2
15988 #: ../fish/guestfish-actions.pod:4521
15989 msgid "setxattr"
15990 msgstr "setxattr"
15991
15992 #. type: verbatim
15993 #: ../fish/guestfish-actions.pod:4523
15994 #, no-wrap
15995 msgid ""
15996 " setxattr xattr val vallen path\n"
15997 "\n"
15998 msgstr ""
15999
16000 #. type: textblock
16001 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6971
16002 msgid ""
16003 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16004 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
16005 msgstr ""
16006
16007 #. type: textblock
16008 #: ../fish/guestfish-actions.pod:4529
16009 msgid "See also: L</lsetxattr>, L<attr(5)>."
16010 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
16011
16012 #. type: =head2
16013 #: ../fish/guestfish-actions.pod:4531
16014 msgid "sfdisk"
16015 msgstr "sfdisk"
16016
16017 #. type: verbatim
16018 #: ../fish/guestfish-actions.pod:4533
16019 #, no-wrap
16020 msgid ""
16021 " sfdisk device cyls heads sectors 'lines ...'\n"
16022 "\n"
16023 msgstr ""
16024
16025 #. type: textblock
16026 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6998
16027 msgid ""
16028 "This is a direct interface to the L<sfdisk(8)> program for creating "
16029 "partitions on block devices."
16030 msgstr ""
16031
16032 #. type: textblock
16033 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:7001
16034 msgid "C<device> should be a block device, for example C</dev/sda>."
16035 msgstr ""
16036
16037 #. type: textblock
16038 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:7003
16039 msgid ""
16040 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16041 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16042 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
16043 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
16044 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16045 "the kernel) cannot work out the right geometry and you will need to tell it."
16046 msgstr ""
16047
16048 #. type: textblock
16049 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:7011
16050 msgid ""
16051 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
16052 "refer to the L<sfdisk(8)> manpage."
16053 msgstr ""
16054
16055 #. type: textblock
16056 #: ../fish/guestfish-actions.pod:4551 ../src/guestfs-actions.pod:7014
16057 msgid ""
16058 "To create a single partition occupying the whole disk, you would pass "
16059 "C<lines> as a single element list, when the single element being the string "
16060 "C<,> (comma)."
16061 msgstr ""
16062
16063 #. type: textblock
16064 #: ../fish/guestfish-actions.pod:4555
16065 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16066 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16067
16068 #. type: textblock
16069 #: ../fish/guestfish-actions.pod:4558 ../fish/guestfish-actions.pod:4578
16070 #: ../fish/guestfish-actions.pod:4597
16071 msgid ""
16072 "I<This function is deprecated.> In new code, use the L</part_add> call "
16073 "instead."
16074 msgstr ""
16075
16076 #. type: =head2
16077 #: ../fish/guestfish-actions.pod:4565
16078 msgid "sfdiskM"
16079 msgstr "sfdiskM"
16080
16081 #. type: verbatim
16082 #: ../fish/guestfish-actions.pod:4567
16083 #, no-wrap
16084 msgid ""
16085 " sfdiskM device 'lines ...'\n"
16086 "\n"
16087 msgstr ""
16088
16089 #. type: textblock
16090 #: ../fish/guestfish-actions.pod:4569
16091 msgid ""
16092 "This is a simplified interface to the L</sfdisk> command, where partition "
16093 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16094 "you don't need to specify the cyls, heads and sectors parameters which were "
16095 "rarely if ever used anyway."
16096 msgstr ""
16097
16098 #. type: textblock
16099 #: ../fish/guestfish-actions.pod:4575
16100 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16101 msgstr ""
16102 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
16103
16104 #. type: =head2
16105 #: ../fish/guestfish-actions.pod:4585
16106 msgid "sfdisk-N"
16107 msgstr "sfdisk-N"
16108
16109 #. type: verbatim
16110 #: ../fish/guestfish-actions.pod:4587
16111 #, no-wrap
16112 msgid ""
16113 " sfdisk-N device partnum cyls heads sectors line\n"
16114 "\n"
16115 msgstr ""
16116
16117 #. type: textblock
16118 #: ../fish/guestfish-actions.pod:4589 ../src/guestfs-actions.pod:7070
16119 msgid ""
16120 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16121 "(note: C<n> counts from 1)."
16122 msgstr ""
16123
16124 #. type: textblock
16125 #: ../fish/guestfish-actions.pod:4592
16126 msgid ""
16127 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16128 "cyls/heads/sectors parameters."
16129 msgstr ""
16130
16131 #. type: textblock
16132 #: ../fish/guestfish-actions.pod:4595
16133 msgid "See also: L</part-add>"
16134 msgstr "Див. також L</part-add>"
16135
16136 #. type: =head2
16137 #: ../fish/guestfish-actions.pod:4604
16138 msgid "sfdisk-disk-geometry"
16139 msgstr "sfdisk-disk-geometry"
16140
16141 #. type: verbatim
16142 #: ../fish/guestfish-actions.pod:4606
16143 #, no-wrap
16144 msgid ""
16145 " sfdisk-disk-geometry device\n"
16146 "\n"
16147 msgstr ""
16148 " sfdisk-disk-geometry пристрій\n"
16149 "\n"
16150
16151 #. type: textblock
16152 #: ../fish/guestfish-actions.pod:4608
16153 msgid ""
16154 "This displays the disk geometry of C<device> read from the partition table.  "
16155 "Especially in the case where the underlying block device has been resized, "
16156 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16157 "kernel-geometry>)."
16158 msgstr ""
16159
16160 #. type: textblock
16161 #: ../fish/guestfish-actions.pod:4613 ../fish/guestfish-actions.pod:4622
16162 #: ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7109
16163 msgid "The result is in human-readable format, and not designed to be parsed."
16164 msgstr ""
16165
16166 #. type: =head2
16167 #: ../fish/guestfish-actions.pod:4616
16168 msgid "sfdisk-kernel-geometry"
16169 msgstr "sfdisk-kernel-geometry"
16170
16171 #. type: verbatim
16172 #: ../fish/guestfish-actions.pod:4618
16173 #, no-wrap
16174 msgid ""
16175 " sfdisk-kernel-geometry device\n"
16176 "\n"
16177 msgstr ""
16178 " sfdisk-kernel-geometry пристрій\n"
16179 "\n"
16180
16181 #. type: textblock
16182 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:7107
16183 msgid "This displays the kernel's idea of the geometry of C<device>."
16184 msgstr ""
16185
16186 #. type: =head2
16187 #: ../fish/guestfish-actions.pod:4625
16188 msgid "sfdisk-l"
16189 msgstr "sfdisk-l"
16190
16191 #. type: verbatim
16192 #: ../fish/guestfish-actions.pod:4627
16193 #, no-wrap
16194 msgid ""
16195 " sfdisk-l device\n"
16196 "\n"
16197 msgstr ""
16198 " sfdisk-l пристрій\n"
16199 "\n"
16200
16201 #. type: textblock
16202 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7130
16203 msgid ""
16204 "This displays the partition table on C<device>, in the human-readable output "
16205 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16206 msgstr ""
16207
16208 #. type: textblock
16209 #: ../fish/guestfish-actions.pod:4633
16210 msgid "See also: L</part-list>"
16211 msgstr "Див. також L</part-list>"
16212
16213 #. type: textblock
16214 #: ../fish/guestfish-actions.pod:4635
16215 msgid ""
16216 "I<This function is deprecated.> In new code, use the L</part_list> call "
16217 "instead."
16218 msgstr ""
16219
16220 #. type: =head2
16221 #: ../fish/guestfish-actions.pod:4642
16222 msgid "sh"
16223 msgstr "sh"
16224
16225 #. type: verbatim
16226 #: ../fish/guestfish-actions.pod:4644
16227 #, no-wrap
16228 msgid ""
16229 " sh command\n"
16230 "\n"
16231 msgstr ""
16232 " sh команда\n"
16233 "\n"
16234
16235 #. type: textblock
16236 #: ../fish/guestfish-actions.pod:4646 ../src/guestfs-actions.pod:7147
16237 msgid ""
16238 "This call runs a command from the guest filesystem via the guest's C</bin/"
16239 "sh>."
16240 msgstr ""
16241
16242 #. type: textblock
16243 #: ../fish/guestfish-actions.pod:4649
16244 msgid "This is like L</command>, but passes the command to:"
16245 msgstr ""
16246
16247 #. type: verbatim
16248 #: ../fish/guestfish-actions.pod:4651 ../src/guestfs-actions.pod:7152
16249 #, no-wrap
16250 msgid ""
16251 " /bin/sh -c \"command\"\n"
16252 "\n"
16253 msgstr ""
16254
16255 #. type: textblock
16256 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7154
16257 msgid ""
16258 "Depending on the guest's shell, this usually results in wildcards being "
16259 "expanded, shell expressions being interpolated and so on."
16260 msgstr ""
16261
16262 #. type: textblock
16263 #: ../fish/guestfish-actions.pod:4657
16264 msgid "All the provisos about L</command> apply to this call."
16265 msgstr ""
16266
16267 #. type: =head2
16268 #: ../fish/guestfish-actions.pod:4659
16269 msgid "sh-lines"
16270 msgstr "sh-lines"
16271
16272 #. type: verbatim
16273 #: ../fish/guestfish-actions.pod:4661
16274 #, no-wrap
16275 msgid ""
16276 " sh-lines command\n"
16277 "\n"
16278 msgstr ""
16279 " sh-lines команда\n"
16280 "\n"
16281
16282 #. type: textblock
16283 #: ../fish/guestfish-actions.pod:4663
16284 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16285 msgstr ""
16286
16287 #. type: textblock
16288 #: ../fish/guestfish-actions.pod:4666
16289 msgid "See also: L</command-lines>"
16290 msgstr "Див. також L</command-lines>"
16291
16292 #. type: =head2
16293 #: ../fish/guestfish-actions.pod:4668
16294 msgid "sleep"
16295 msgstr "sleep"
16296
16297 #. type: verbatim
16298 #: ../fish/guestfish-actions.pod:4670
16299 #, no-wrap
16300 msgid ""
16301 " sleep secs\n"
16302 "\n"
16303 msgstr ""
16304 " sleep час_у_секундах\n"
16305 "\n"
16306
16307 #. type: textblock
16308 #: ../fish/guestfish-actions.pod:4672 ../src/guestfs-actions.pod:7188
16309 msgid "Sleep for C<secs> seconds."
16310 msgstr ""
16311
16312 #. type: =head2
16313 #: ../fish/guestfish-actions.pod:4674
16314 msgid "stat"
16315 msgstr "stat"
16316
16317 #. type: verbatim
16318 #: ../fish/guestfish-actions.pod:4676
16319 #, no-wrap
16320 msgid ""
16321 " stat path\n"
16322 "\n"
16323 msgstr ""
16324 " stat шлях\n"
16325 "\n"
16326
16327 #. type: textblock
16328 #: ../fish/guestfish-actions.pod:4680 ../src/guestfs-actions.pod:7202
16329 msgid "This is the same as the C<stat(2)> system call."
16330 msgstr ""
16331
16332 #. type: =head2
16333 #: ../fish/guestfish-actions.pod:4682
16334 msgid "statvfs"
16335 msgstr "statvfs"
16336
16337 #. type: verbatim
16338 #: ../fish/guestfish-actions.pod:4684
16339 #, no-wrap
16340 msgid ""
16341 " statvfs path\n"
16342 "\n"
16343 msgstr ""
16344 " statvfs шлях\n"
16345 "\n"
16346
16347 #. type: textblock
16348 #: ../fish/guestfish-actions.pod:4686 ../src/guestfs-actions.pod:7216
16349 msgid ""
16350 "Returns file system statistics for any mounted file system.  C<path> should "
16351 "be a file or directory in the mounted file system (typically it is the mount "
16352 "point itself, but it doesn't need to be)."
16353 msgstr ""
16354
16355 #. type: textblock
16356 #: ../fish/guestfish-actions.pod:4690 ../src/guestfs-actions.pod:7220
16357 msgid "This is the same as the C<statvfs(2)> system call."
16358 msgstr ""
16359
16360 #. type: =head2
16361 #: ../fish/guestfish-actions.pod:4692
16362 msgid "strings"
16363 msgstr "strings"
16364
16365 #. type: verbatim
16366 #: ../fish/guestfish-actions.pod:4694
16367 #, no-wrap
16368 msgid ""
16369 " strings path\n"
16370 "\n"
16371 msgstr ""
16372 " strings шлях\n"
16373 "\n"
16374
16375 #. type: textblock
16376 #: ../fish/guestfish-actions.pod:4696 ../src/guestfs-actions.pod:7234
16377 msgid ""
16378 "This runs the L<strings(1)> command on a file and returns the list of "
16379 "printable strings found."
16380 msgstr ""
16381
16382 #. type: =head2
16383 #: ../fish/guestfish-actions.pod:4702
16384 msgid "strings-e"
16385 msgstr "strings-e"
16386
16387 #. type: verbatim
16388 #: ../fish/guestfish-actions.pod:4704
16389 #, no-wrap
16390 msgid ""
16391 " strings-e encoding path\n"
16392 "\n"
16393 msgstr ""
16394 " strings-e кодування шлях\n"
16395 "\n"
16396
16397 #. type: textblock
16398 #: ../fish/guestfish-actions.pod:4706
16399 msgid ""
16400 "This is like the L</strings> command, but allows you to specify the encoding "
16401 "of strings that are looked for in the source file C<path>."
16402 msgstr ""
16403
16404 #. type: textblock
16405 #: ../fish/guestfish-actions.pod:4710 ../src/guestfs-actions.pod:7257
16406 msgid "Allowed encodings are:"
16407 msgstr "Можливими кодуваннями є:"
16408
16409 #. type: =item
16410 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7261
16411 msgid "s"
16412 msgstr "s"
16413
16414 #. type: textblock
16415 #: ../fish/guestfish-actions.pod:4716
16416 msgid ""
16417 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16418 "ISO-8859-X (this is what L</strings> uses)."
16419 msgstr ""
16420
16421 #. type: =item
16422 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7266
16423 msgid "S"
16424 msgstr "S"
16425
16426 #. type: textblock
16427 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7268
16428 msgid "Single 8-bit-byte characters."
16429 msgstr "Окремі 8-бітові-байтові символи."
16430
16431 #. type: =item
16432 #: ../fish/guestfish-actions.pod:4723 ../src/guestfs-actions.pod:7270
16433 msgid "b"
16434 msgstr "b"
16435
16436 #. type: textblock
16437 #: ../fish/guestfish-actions.pod:4725 ../src/guestfs-actions.pod:7272
16438 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16439 msgstr ""
16440
16441 #. type: =item
16442 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7275
16443 msgid "l (lower case letter L)"
16444 msgstr ""
16445
16446 #. type: textblock
16447 #: ../fish/guestfish-actions.pod:4730 ../src/guestfs-actions.pod:7277
16448 msgid ""
16449 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16450 "examining binaries in Windows guests."
16451 msgstr ""
16452
16453 #. type: =item
16454 #: ../fish/guestfish-actions.pod:4733 ../src/guestfs-actions.pod:7280
16455 msgid "B"
16456 msgstr "B"
16457
16458 #. type: textblock
16459 #: ../fish/guestfish-actions.pod:4735 ../src/guestfs-actions.pod:7282
16460 msgid "32-bit big endian such as UCS-4BE."
16461 msgstr ""
16462
16463 #. type: =item
16464 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7284
16465 msgid "L"
16466 msgstr "L"
16467
16468 #. type: textblock
16469 #: ../fish/guestfish-actions.pod:4739 ../src/guestfs-actions.pod:7286
16470 msgid "32-bit little endian such as UCS-4LE."
16471 msgstr ""
16472
16473 #. type: textblock
16474 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7290
16475 msgid "The returned strings are transcoded to UTF-8."
16476 msgstr ""
16477
16478 #. type: =head2
16479 #: ../fish/guestfish-actions.pod:4748
16480 msgid "swapoff-device"
16481 msgstr "swapoff-device"
16482
16483 #. type: verbatim
16484 #: ../fish/guestfish-actions.pod:4750
16485 #, no-wrap
16486 msgid ""
16487 " swapoff-device device\n"
16488 "\n"
16489 msgstr ""
16490 " swapoff-device пристрій\n"
16491 "\n"
16492
16493 #. type: textblock
16494 #: ../fish/guestfish-actions.pod:4752
16495 msgid ""
16496 "This command disables the libguestfs appliance swap device or partition "
16497 "named C<device>.  See L</swapon-device>."
16498 msgstr ""
16499
16500 #. type: =head2
16501 #: ../fish/guestfish-actions.pod:4756
16502 msgid "swapoff-file"
16503 msgstr "swapoff-file"
16504
16505 #. type: verbatim
16506 #: ../fish/guestfish-actions.pod:4758
16507 #, no-wrap
16508 msgid ""
16509 " swapoff-file file\n"
16510 "\n"
16511 msgstr ""
16512 " swapoff-file файл\n"
16513 "\n"
16514
16515 #. type: textblock
16516 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7321
16517 msgid "This command disables the libguestfs appliance swap on file."
16518 msgstr ""
16519
16520 #. type: =head2
16521 #: ../fish/guestfish-actions.pod:4762
16522 msgid "swapoff-label"
16523 msgstr "swapoff-label"
16524
16525 #. type: verbatim
16526 #: ../fish/guestfish-actions.pod:4764
16527 #, no-wrap
16528 msgid ""
16529 " swapoff-label label\n"
16530 "\n"
16531 msgstr ""
16532 " swapoff-label мітка\n"
16533 "\n"
16534
16535 #. type: textblock
16536 #: ../fish/guestfish-actions.pod:4766 ../src/guestfs-actions.pod:7333
16537 msgid ""
16538 "This command disables the libguestfs appliance swap on labeled swap "
16539 "partition."
16540 msgstr ""
16541
16542 #. type: =head2
16543 #: ../fish/guestfish-actions.pod:4769
16544 msgid "swapoff-uuid"
16545 msgstr "swapoff-uuid"
16546
16547 #. type: verbatim
16548 #: ../fish/guestfish-actions.pod:4771
16549 #, no-wrap
16550 msgid ""
16551 " swapoff-uuid uuid\n"
16552 "\n"
16553 msgstr ""
16554 " swapoff-uuid uuid\n"
16555 "\n"
16556
16557 #. type: textblock
16558 #: ../fish/guestfish-actions.pod:4773 ../src/guestfs-actions.pod:7346
16559 msgid ""
16560 "This command disables the libguestfs appliance swap partition with the given "
16561 "UUID."
16562 msgstr ""
16563
16564 #. type: =head2
16565 #: ../fish/guestfish-actions.pod:4776
16566 msgid "swapon-device"
16567 msgstr "swapon-device"
16568
16569 #. type: verbatim
16570 #: ../fish/guestfish-actions.pod:4778
16571 #, no-wrap
16572 msgid ""
16573 " swapon-device device\n"
16574 "\n"
16575 msgstr ""
16576 " swapon-device пристрій\n"
16577 "\n"
16578
16579 #. type: textblock
16580 #: ../fish/guestfish-actions.pod:4780
16581 msgid ""
16582 "This command enables the libguestfs appliance to use the swap device or "
16583 "partition named C<device>.  The increased memory is made available for all "
16584 "commands, for example those run using L</command> or L</sh>."
16585 msgstr ""
16586
16587 #. type: textblock
16588 #: ../fish/guestfish-actions.pod:4785 ../src/guestfs-actions.pod:7364
16589 msgid ""
16590 "Note that you should not swap to existing guest swap partitions unless you "
16591 "know what you are doing.  They may contain hibernation information, or other "
16592 "information that the guest doesn't want you to trash.  You also risk leaking "
16593 "information about the host to the guest this way.  Instead, attach a new "
16594 "host device to the guest and swap on that."
16595 msgstr ""
16596
16597 #. type: =head2
16598 #: ../fish/guestfish-actions.pod:4792
16599 msgid "swapon-file"
16600 msgstr "swapon-file"
16601
16602 #. type: verbatim
16603 #: ../fish/guestfish-actions.pod:4794
16604 #, no-wrap
16605 msgid ""
16606 " swapon-file file\n"
16607 "\n"
16608 msgstr ""
16609 " swapon-file файл\n"
16610 "\n"
16611
16612 #. type: textblock
16613 #: ../fish/guestfish-actions.pod:4796
16614 msgid ""
16615 "This command enables swap to a file.  See L</swapon-device> for other notes."
16616 msgstr ""
16617
16618 #. type: =head2
16619 #: ../fish/guestfish-actions.pod:4799
16620 msgid "swapon-label"
16621 msgstr "swapon-label"
16622
16623 #. type: verbatim
16624 #: ../fish/guestfish-actions.pod:4801
16625 #, no-wrap
16626 msgid ""
16627 " swapon-label label\n"
16628 "\n"
16629 msgstr ""
16630 " swapon-label мітка\n"
16631 "\n"
16632
16633 #. type: textblock
16634 #: ../fish/guestfish-actions.pod:4803
16635 msgid ""
16636 "This command enables swap to a labeled swap partition.  See L</swapon-"
16637 "device> for other notes."
16638 msgstr ""
16639
16640 #. type: =head2
16641 #: ../fish/guestfish-actions.pod:4806
16642 msgid "swapon-uuid"
16643 msgstr "swapon-uuid"
16644
16645 #. type: verbatim
16646 #: ../fish/guestfish-actions.pod:4808
16647 #, no-wrap
16648 msgid ""
16649 " swapon-uuid uuid\n"
16650 "\n"
16651 msgstr ""
16652 " swapon-uuid uuid\n"
16653 "\n"
16654
16655 #. type: textblock
16656 #: ../fish/guestfish-actions.pod:4810
16657 msgid ""
16658 "This command enables swap to a swap partition with the given UUID.  See L</"
16659 "swapon-device> for other notes."
16660 msgstr ""
16661
16662 #. type: =head2
16663 #: ../fish/guestfish-actions.pod:4813
16664 msgid "sync"
16665 msgstr "sync"
16666
16667 #. type: verbatim
16668 #: ../fish/guestfish-actions.pod:4815
16669 #, no-wrap
16670 msgid ""
16671 " sync\n"
16672 "\n"
16673 msgstr ""
16674 " sync\n"
16675 "\n"
16676
16677 #. type: textblock
16678 #: ../fish/guestfish-actions.pod:4817 ../src/guestfs-actions.pod:7419
16679 msgid ""
16680 "This syncs the disk, so that any writes are flushed through to the "
16681 "underlying disk image."
16682 msgstr ""
16683
16684 #. type: textblock
16685 #: ../fish/guestfish-actions.pod:4820 ../src/guestfs-actions.pod:7422
16686 msgid ""
16687 "You should always call this if you have modified a disk image, before "
16688 "closing the handle."
16689 msgstr ""
16690
16691 #. type: =head2
16692 #: ../fish/guestfish-actions.pod:4823
16693 msgid "tail"
16694 msgstr "tail"
16695
16696 #. type: verbatim
16697 #: ../fish/guestfish-actions.pod:4825
16698 #, no-wrap
16699 msgid ""
16700 " tail path\n"
16701 "\n"
16702 msgstr ""
16703 " tail шлях\n"
16704 "\n"
16705
16706 #. type: textblock
16707 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7435
16708 msgid ""
16709 "This command returns up to the last 10 lines of a file as a list of strings."
16710 msgstr ""
16711
16712 #. type: =head2
16713 #: ../fish/guestfish-actions.pod:4833
16714 msgid "tail-n"
16715 msgstr "tail-n"
16716
16717 #. type: verbatim
16718 #: ../fish/guestfish-actions.pod:4835
16719 #, no-wrap
16720 msgid ""
16721 " tail-n nrlines path\n"
16722 "\n"
16723 msgstr ""
16724
16725 #. type: textblock
16726 #: ../fish/guestfish-actions.pod:4837 ../src/guestfs-actions.pod:7454
16727 msgid ""
16728 "If the parameter C<nrlines> is a positive number, this returns the last "
16729 "C<nrlines> lines of the file C<path>."
16730 msgstr ""
16731
16732 #. type: textblock
16733 #: ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7457
16734 msgid ""
16735 "If the parameter C<nrlines> is a negative number, this returns lines from "
16736 "the file C<path>, starting with the C<-nrlines>th line."
16737 msgstr ""
16738
16739 #. type: =head2
16740 #: ../fish/guestfish-actions.pod:4848
16741 msgid "tar-in"
16742 msgstr "tar-in"
16743
16744 #. type: verbatim
16745 #: ../fish/guestfish-actions.pod:4850
16746 #, no-wrap
16747 msgid ""
16748 " tar-in (tarfile|-) directory\n"
16749 "\n"
16750 msgstr ""
16751 " tar-in (файл_tar|-) каталог\n"
16752 "\n"
16753
16754 #. type: textblock
16755 #: ../fish/guestfish-actions.pod:4852 ../src/guestfs-actions.pod:7478
16756 msgid ""
16757 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16758 "tar file) into C<directory>."
16759 msgstr ""
16760
16761 #. type: textblock
16762 #: ../fish/guestfish-actions.pod:4855
16763 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16764 msgstr ""
16765
16766 #. type: =head2
16767 #: ../fish/guestfish-actions.pod:4860
16768 msgid "tar-out"
16769 msgstr "tar-out"
16770
16771 #. type: verbatim
16772 #: ../fish/guestfish-actions.pod:4862
16773 #, no-wrap
16774 msgid ""
16775 " tar-out directory (tarfile|-)\n"
16776 "\n"
16777 msgstr ""
16778 " tar-out каталог (файл tar|-)\n"
16779 "\n"
16780
16781 #. type: textblock
16782 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7495
16783 msgid ""
16784 "This command packs the contents of C<directory> and downloads it to local "
16785 "file C<tarfile>."
16786 msgstr ""
16787
16788 #. type: textblock
16789 #: ../fish/guestfish-actions.pod:4867
16790 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16791 msgstr ""
16792
16793 #. type: =head2
16794 #: ../fish/guestfish-actions.pod:4872
16795 msgid "tgz-in"
16796 msgstr "tgz-in"
16797
16798 #. type: verbatim
16799 #: ../fish/guestfish-actions.pod:4874
16800 #, no-wrap
16801 msgid ""
16802 " tgz-in (tarball|-) directory\n"
16803 "\n"
16804 msgstr ""
16805 " tgz-in (архів tar|-) каталог\n"
16806 "\n"
16807
16808 #. type: textblock
16809 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7512
16810 msgid ""
16811 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16812 "tar file) into C<directory>."
16813 msgstr ""
16814
16815 #. type: textblock
16816 #: ../fish/guestfish-actions.pod:4879
16817 msgid "To upload an uncompressed tarball, use L</tar-in>."
16818 msgstr ""
16819
16820 #. type: =head2
16821 #: ../fish/guestfish-actions.pod:4883
16822 msgid "tgz-out"
16823 msgstr "tgz-out"
16824
16825 #. type: verbatim
16826 #: ../fish/guestfish-actions.pod:4885
16827 #, no-wrap
16828 msgid ""
16829 " tgz-out directory (tarball|-)\n"
16830 "\n"
16831 msgstr ""
16832 " tgz-out каталог (архів tar|-)\n"
16833 "\n"
16834
16835 #. type: textblock
16836 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7528
16837 msgid ""
16838 "This command packs the contents of C<directory> and downloads it to local "
16839 "file C<tarball>."
16840 msgstr ""
16841
16842 #. type: textblock
16843 #: ../fish/guestfish-actions.pod:4890
16844 msgid "To download an uncompressed tarball, use L</tar-out>."
16845 msgstr ""
16846
16847 #. type: =head2
16848 #: ../fish/guestfish-actions.pod:4894
16849 msgid "touch"
16850 msgstr "touch"
16851
16852 #. type: verbatim
16853 #: ../fish/guestfish-actions.pod:4896
16854 #, no-wrap
16855 msgid ""
16856 " touch path\n"
16857 "\n"
16858 msgstr ""
16859 " touch шлях\n"
16860 "\n"
16861
16862 #. type: textblock
16863 #: ../fish/guestfish-actions.pod:4898 ../src/guestfs-actions.pod:7543
16864 msgid ""
16865 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16866 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16867 "length file."
16868 msgstr ""
16869
16870 #. type: textblock
16871 #: ../fish/guestfish-actions.pod:4902 ../src/guestfs-actions.pod:7547
16872 msgid ""
16873 "This command only works on regular files, and will fail on other file types "
16874 "such as directories, symbolic links, block special etc."
16875 msgstr ""
16876
16877 #. type: =head2
16878 #: ../fish/guestfish-actions.pod:4905
16879 msgid "truncate"
16880 msgstr "truncate"
16881
16882 #. type: verbatim
16883 #: ../fish/guestfish-actions.pod:4907
16884 #, no-wrap
16885 msgid ""
16886 " truncate path\n"
16887 "\n"
16888 msgstr ""
16889 " truncate шлях\n"
16890 "\n"
16891
16892 #. type: textblock
16893 #: ../fish/guestfish-actions.pod:4909 ../src/guestfs-actions.pod:7560
16894 msgid ""
16895 "This command truncates C<path> to a zero-length file.  The file must exist "
16896 "already."
16897 msgstr ""
16898
16899 #. type: =head2
16900 #: ../fish/guestfish-actions.pod:4912
16901 msgid "truncate-size"
16902 msgstr "truncate-size"
16903
16904 #. type: verbatim
16905 #: ../fish/guestfish-actions.pod:4914
16906 #, no-wrap
16907 msgid ""
16908 " truncate-size path size\n"
16909 "\n"
16910 msgstr ""
16911 " truncate-size шлях розмір\n"
16912 "\n"
16913
16914 #. type: textblock
16915 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7574
16916 msgid ""
16917 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16918 "already."
16919 msgstr ""
16920
16921 #. type: textblock
16922 #: ../fish/guestfish-actions.pod:4919
16923 msgid ""
16924 "If the current file size is less than C<size> then the file is extended to "
16925 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16926 "blocks are not allocated for the file until you write to it).  To create a "
16927 "non-sparse file of zeroes, use L</fallocate64> instead."
16928 msgstr ""
16929
16930 #. type: =head2
16931 #: ../fish/guestfish-actions.pod:4925
16932 msgid "tune2fs-l"
16933 msgstr "tune2fs-l"
16934
16935 #. type: verbatim
16936 #: ../fish/guestfish-actions.pod:4927
16937 #, no-wrap
16938 msgid ""
16939 " tune2fs-l device\n"
16940 "\n"
16941 msgstr ""
16942 " tune2fs-l пристрій\n"
16943 "\n"
16944
16945 #. type: textblock
16946 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7593
16947 msgid ""
16948 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16949 "C<device>."
16950 msgstr ""
16951
16952 #. type: textblock
16953 #: ../fish/guestfish-actions.pod:4932 ../src/guestfs-actions.pod:7596
16954 msgid ""
16955 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16956 "for more details.  The list of fields returned isn't clearly defined, and "
16957 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16958 "and the filesystem itself."
16959 msgstr ""
16960
16961 #. type: =head2
16962 #: ../fish/guestfish-actions.pod:4937
16963 msgid "txz-in"
16964 msgstr "txz-in"
16965
16966 #. type: verbatim
16967 #: ../fish/guestfish-actions.pod:4939
16968 #, no-wrap
16969 msgid ""
16970 " txz-in (tarball|-) directory\n"
16971 "\n"
16972 msgstr ""
16973 " txz-in (архів tar|-) каталог\n"
16974 "\n"
16975
16976 #. type: textblock
16977 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7616
16978 msgid ""
16979 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16980 "tar file) into C<directory>."
16981 msgstr ""
16982
16983 #. type: =head2
16984 #: ../fish/guestfish-actions.pod:4946
16985 msgid "txz-out"
16986 msgstr "txz-out"
16987
16988 #. type: verbatim
16989 #: ../fish/guestfish-actions.pod:4948
16990 #, no-wrap
16991 msgid ""
16992 " txz-out directory (tarball|-)\n"
16993 "\n"
16994 msgstr ""
16995 " txz-out каталог (архів tar|-)\n"
16996 "\n"
16997
16998 #. type: textblock
16999 #: ../fish/guestfish-actions.pod:4950 ../src/guestfs-actions.pod:7630
17000 msgid ""
17001 "This command packs the contents of C<directory> and downloads it to local "
17002 "file C<tarball> (as an xz compressed tar archive)."
17003 msgstr ""
17004
17005 #. type: =head2
17006 #: ../fish/guestfish-actions.pod:4955
17007 msgid "umask"
17008 msgstr "umask"
17009
17010 #. type: verbatim
17011 #: ../fish/guestfish-actions.pod:4957
17012 #, no-wrap
17013 msgid ""
17014 " umask mask\n"
17015 "\n"
17016 msgstr ""
17017 " umask маска\n"
17018 "\n"
17019
17020 #. type: textblock
17021 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7643
17022 msgid ""
17023 "This function sets the mask used for creating new files and device nodes to "
17024 "C<mask & 0777>."
17025 msgstr ""
17026
17027 #. type: textblock
17028 #: ../fish/guestfish-actions.pod:4962 ../src/guestfs-actions.pod:7646
17029 msgid ""
17030 "Typical umask values would be C<022> which creates new files with "
17031 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17032 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17033 msgstr ""
17034
17035 #. type: textblock
17036 #: ../fish/guestfish-actions.pod:4967 ../src/guestfs-actions.pod:7651
17037 msgid ""
17038 "The default umask is C<022>.  This is important because it means that "
17039 "directories and device nodes will be created with C<0644> or C<0755> mode "
17040 "even if you specify C<0777>."
17041 msgstr ""
17042
17043 #. type: textblock
17044 #: ../fish/guestfish-actions.pod:4971
17045 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17046 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17047
17048 #. type: textblock
17049 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7658
17050 msgid "This call returns the previous umask."
17051 msgstr ""
17052
17053 #. type: =head2
17054 #: ../fish/guestfish-actions.pod:4976
17055 msgid "umount"
17056 msgstr "umount"
17057
17058 #. type: =head2
17059 #: ../fish/guestfish-actions.pod:4978
17060 msgid "unmount"
17061 msgstr "unmount"
17062
17063 #. type: verbatim
17064 #: ../fish/guestfish-actions.pod:4980
17065 #, no-wrap
17066 msgid ""
17067 " umount pathordevice\n"
17068 "\n"
17069 msgstr ""
17070 " umount шлях_або_пристрій\n"
17071 "\n"
17072
17073 #. type: textblock
17074 #: ../fish/guestfish-actions.pod:4982 ../src/guestfs-actions.pod:7670
17075 msgid ""
17076 "This unmounts the given filesystem.  The filesystem may be specified either "
17077 "by its mountpoint (path) or the device which contains the filesystem."
17078 msgstr ""
17079
17080 #. type: =head2
17081 #: ../fish/guestfish-actions.pod:4986
17082 msgid "umount-all"
17083 msgstr "umount-all"
17084
17085 #. type: =head2
17086 #: ../fish/guestfish-actions.pod:4988
17087 msgid "unmount-all"
17088 msgstr "unmount-all"
17089
17090 #. type: verbatim
17091 #: ../fish/guestfish-actions.pod:4990
17092 #, no-wrap
17093 msgid ""
17094 " umount-all\n"
17095 "\n"
17096 msgstr ""
17097 " umount-all\n"
17098 "\n"
17099
17100 #. type: textblock
17101 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7683
17102 msgid "This unmounts all mounted filesystems."
17103 msgstr ""
17104
17105 #. type: textblock
17106 #: ../fish/guestfish-actions.pod:4994 ../src/guestfs-actions.pod:7685
17107 msgid "Some internal mounts are not unmounted by this call."
17108 msgstr ""
17109
17110 #. type: =head2
17111 #: ../fish/guestfish-actions.pod:4996
17112 msgid "upload"
17113 msgstr "upload"
17114
17115 #. type: verbatim
17116 #: ../fish/guestfish-actions.pod:4998
17117 #, no-wrap
17118 msgid ""
17119 " upload (filename|-) remotefilename\n"
17120 "\n"
17121 msgstr ""
17122 " upload (назва_файла|-) назва_віддаленого_файла\n"
17123 "\n"
17124
17125 #. type: textblock
17126 #: ../fish/guestfish-actions.pod:5000 ../fish/guestfish-actions.pod:5013
17127 #: ../src/guestfs-actions.pod:7698 ../src/guestfs-actions.pod:7722
17128 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17129 msgstr ""
17130
17131 #. type: textblock
17132 #: ../fish/guestfish-actions.pod:5005
17133 msgid "See also L</download>."
17134 msgstr "Див. також L</download>."
17135
17136 #. type: =head2
17137 #: ../fish/guestfish-actions.pod:5009
17138 msgid "upload-offset"
17139 msgstr "upload-offset"
17140
17141 #. type: verbatim
17142 #: ../fish/guestfish-actions.pod:5011
17143 #, no-wrap
17144 msgid ""
17145 " upload-offset (filename|-) remotefilename offset\n"
17146 "\n"
17147 msgstr ""
17148 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
17149 "\n"
17150
17151 #. type: textblock
17152 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7725
17153 msgid ""
17154 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17155 "The intention is to overwrite parts of existing files or devices, although "
17156 "if a non-existant file is specified then it is created with a \"hole\" "
17157 "before C<offset>.  The size of the data written is implicit in the size of "
17158 "the source C<filename>."
17159 msgstr ""
17160
17161 #. type: textblock
17162 #: ../fish/guestfish-actions.pod:5023
17163 msgid ""
17164 "Note that there is no limit on the amount of data that can be uploaded with "
17165 "this call, unlike with L</pwrite>, and this call always writes the full "
17166 "amount unless an error occurs."
17167 msgstr ""
17168
17169 #. type: textblock
17170 #: ../fish/guestfish-actions.pod:5028
17171 msgid "See also L</upload>, L</pwrite>."
17172 msgstr "Див. також L</upload>, L</pwrite>."
17173
17174 #. type: =head2
17175 #: ../fish/guestfish-actions.pod:5032
17176 msgid "utimens"
17177 msgstr "utimens"
17178
17179 #. type: verbatim
17180 #: ../fish/guestfish-actions.pod:5034
17181 #, no-wrap
17182 msgid ""
17183 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17184 "\n"
17185 msgstr ""
17186
17187 #. type: textblock
17188 #: ../fish/guestfish-actions.pod:5036 ../src/guestfs-actions.pod:7758
17189 msgid "This command sets the timestamps of a file with nanosecond precision."
17190 msgstr ""
17191
17192 #. type: textblock
17193 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7761
17194 msgid ""
17195 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17196 "from the epoch."
17197 msgstr ""
17198
17199 #. type: textblock
17200 #: ../fish/guestfish-actions.pod:5042 ../src/guestfs-actions.pod:7764
17201 msgid ""
17202 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17203 "nanoseconds from the epoch."
17204 msgstr ""
17205
17206 #. type: textblock
17207 #: ../fish/guestfish-actions.pod:5045 ../src/guestfs-actions.pod:7767
17208 msgid ""
17209 "If the C<*nsecs> field contains the special value C<-1> then the "
17210 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17211 "ignored in this case)."
17212 msgstr ""
17213
17214 #. type: textblock
17215 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7771
17216 msgid ""
17217 "If the C<*nsecs> field contains the special value C<-2> then the "
17218 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17219 "in this case)."
17220 msgstr ""
17221
17222 #. type: =head2
17223 #: ../fish/guestfish-actions.pod:5053
17224 msgid "version"
17225 msgstr "version"
17226
17227 #. type: verbatim
17228 #: ../fish/guestfish-actions.pod:5055
17229 #, no-wrap
17230 msgid ""
17231 " version\n"
17232 "\n"
17233 msgstr ""
17234 " version\n"
17235 "\n"
17236
17237 #. type: textblock
17238 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7784
17239 msgid ""
17240 "Return the libguestfs version number that the program is linked against."
17241 msgstr ""
17242
17243 #. type: textblock
17244 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7787
17245 msgid ""
17246 "Note that because of dynamic linking this is not necessarily the version of "
17247 "libguestfs that you compiled against.  You can compile the program, and then "
17248 "at runtime dynamically link against a completely different C<libguestfs.so> "
17249 "library."
17250 msgstr ""
17251
17252 #. type: textblock
17253 #: ../fish/guestfish-actions.pod:5065 ../src/guestfs-actions.pod:7792
17254 msgid ""
17255 "This call was added in version C<1.0.58>.  In previous versions of "
17256 "libguestfs there was no way to get the version number.  From C code you can "
17257 "use dynamic linker functions to find out if this symbol exists (if it "
17258 "doesn't, then it's an earlier version)."
17259 msgstr ""
17260
17261 #. type: textblock
17262 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7798
17263 msgid ""
17264 "The call returns a structure with four elements.  The first three (C<major>, "
17265 "C<minor> and C<release>) are numbers and correspond to the usual version "
17266 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17267 "but may be used for distro-specific information."
17268 msgstr ""
17269
17270 #. type: textblock
17271 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7804
17272 msgid ""
17273 "To construct the original version string: C<$major.$minor.$release$extra>"
17274 msgstr ""
17275
17276 #. type: textblock
17277 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7807
17278 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17279 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17280
17281 #. type: textblock
17282 #: ../fish/guestfish-actions.pod:5082
17283 msgid ""
17284 "I<Note:> Don't use this call to test for availability of features.  In "
17285 "enterprise distributions we backport features from later versions into "
17286 "earlier versions, making this an unreliable way to test for features.  Use "
17287 "L</available> instead."
17288 msgstr ""
17289
17290 #. type: =head2
17291 #: ../fish/guestfish-actions.pod:5088
17292 msgid "vfs-label"
17293 msgstr "vfs-label"
17294
17295 #. type: verbatim
17296 #: ../fish/guestfish-actions.pod:5090
17297 #, no-wrap
17298 msgid ""
17299 " vfs-label device\n"
17300 "\n"
17301 msgstr ""
17302 " vfs-label пристрій\n"
17303 "\n"
17304
17305 #. type: textblock
17306 #: ../fish/guestfish-actions.pod:5092 ../src/guestfs-actions.pod:7827
17307 msgid "This returns the filesystem label of the filesystem on C<device>."
17308 msgstr ""
17309
17310 #. type: textblock
17311 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7830
17312 msgid "If the filesystem is unlabeled, this returns the empty string."
17313 msgstr ""
17314
17315 #. type: textblock
17316 #: ../fish/guestfish-actions.pod:5097
17317 msgid "To find a filesystem from the label, use L</findfs-label>."
17318 msgstr ""
17319
17320 #. type: =head2
17321 #: ../fish/guestfish-actions.pod:5099
17322 msgid "vfs-type"
17323 msgstr "vfs-type"
17324
17325 #. type: verbatim
17326 #: ../fish/guestfish-actions.pod:5101
17327 #, no-wrap
17328 msgid ""
17329 " vfs-type device\n"
17330 "\n"
17331 msgstr ""
17332 " vfs-type пристрій\n"
17333 "\n"
17334
17335 #. type: textblock
17336 #: ../fish/guestfish-actions.pod:5103 ../src/guestfs-actions.pod:7845
17337 msgid ""
17338 "This command gets the filesystem type corresponding to the filesystem on "
17339 "C<device>."
17340 msgstr ""
17341
17342 #. type: textblock
17343 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7848
17344 msgid ""
17345 "For most filesystems, the result is the name of the Linux VFS module which "
17346 "would be used to mount this filesystem if you mounted it without specifying "
17347 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17348 msgstr ""
17349
17350 #. type: =head2
17351 #: ../fish/guestfish-actions.pod:5111
17352 msgid "vfs-uuid"
17353 msgstr "vfs-uuid"
17354
17355 #. type: verbatim
17356 #: ../fish/guestfish-actions.pod:5113
17357 #, no-wrap
17358 msgid ""
17359 " vfs-uuid device\n"
17360 "\n"
17361 msgstr ""
17362 " vfs-uuid пристрій\n"
17363 "\n"
17364
17365 #. type: textblock
17366 #: ../fish/guestfish-actions.pod:5115 ../src/guestfs-actions.pod:7864
17367 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17368 msgstr ""
17369
17370 #. type: textblock
17371 #: ../fish/guestfish-actions.pod:5118 ../src/guestfs-actions.pod:7867
17372 msgid "If the filesystem does not have a UUID, this returns the empty string."
17373 msgstr ""
17374
17375 #. type: textblock
17376 #: ../fish/guestfish-actions.pod:5120
17377 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17378 msgstr ""
17379
17380 #. type: =head2
17381 #: ../fish/guestfish-actions.pod:5122
17382 msgid "vg-activate"
17383 msgstr "vg-activate"
17384
17385 #. type: verbatim
17386 #: ../fish/guestfish-actions.pod:5124
17387 #, no-wrap
17388 msgid ""
17389 " vg-activate true|false 'volgroups ...'\n"
17390 "\n"
17391 msgstr ""
17392
17393 #. type: textblock
17394 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7883
17395 msgid ""
17396 "This command activates or (if C<activate> is false) deactivates all logical "
17397 "volumes in the listed volume groups C<volgroups>."
17398 msgstr ""
17399
17400 #. type: textblock
17401 #: ../fish/guestfish-actions.pod:5129 ../src/guestfs-actions.pod:7886
17402 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17403 msgstr ""
17404
17405 #. type: textblock
17406 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7888
17407 msgid ""
17408 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17409 "activated or deactivated."
17410 msgstr ""
17411
17412 #. type: =head2
17413 #: ../fish/guestfish-actions.pod:5134
17414 msgid "vg-activate-all"
17415 msgstr "vg-activate-all"
17416
17417 #. type: verbatim
17418 #: ../fish/guestfish-actions.pod:5136
17419 #, no-wrap
17420 msgid ""
17421 " vg-activate-all true|false\n"
17422 "\n"
17423 msgstr ""
17424 " vg-activate-all true|false\n"
17425 "\n"
17426
17427 #. type: textblock
17428 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7901
17429 msgid ""
17430 "This command activates or (if C<activate> is false) deactivates all logical "
17431 "volumes in all volume groups."
17432 msgstr ""
17433
17434 #. type: textblock
17435 #: ../fish/guestfish-actions.pod:5141 ../src/guestfs-actions.pod:7904
17436 msgid "This command is the same as running C<vgchange -a y|n>"
17437 msgstr ""
17438
17439 #. type: =head2
17440 #: ../fish/guestfish-actions.pod:5143
17441 msgid "vgcreate"
17442 msgstr "vgcreate"
17443
17444 #. type: verbatim
17445 #: ../fish/guestfish-actions.pod:5145
17446 #, no-wrap
17447 msgid ""
17448 " vgcreate volgroup 'physvols ...'\n"
17449 "\n"
17450 msgstr ""
17451
17452 #. type: textblock
17453 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7917
17454 msgid ""
17455 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17456 "of physical volumes C<physvols>."
17457 msgstr ""
17458
17459 #. type: =head2
17460 #: ../fish/guestfish-actions.pod:5150
17461 msgid "vglvuuids"
17462 msgstr "vglvuuids"
17463
17464 #. type: verbatim
17465 #: ../fish/guestfish-actions.pod:5152
17466 #, no-wrap
17467 msgid ""
17468 " vglvuuids vgname\n"
17469 "\n"
17470 msgstr ""
17471
17472 #. type: textblock
17473 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7930
17474 msgid ""
17475 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17476 "volumes created in this volume group."
17477 msgstr ""
17478
17479 #. type: textblock
17480 #: ../fish/guestfish-actions.pod:5157
17481 msgid ""
17482 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17483 "logical volumes and volume groups."
17484 msgstr ""
17485
17486 #. type: textblock
17487 #: ../fish/guestfish-actions.pod:5160
17488 msgid "See also L</vgpvuuids>."
17489 msgstr "Див. також L</vgpvuuids>."
17490
17491 #. type: =head2
17492 #: ../fish/guestfish-actions.pod:5162
17493 msgid "vgpvuuids"
17494 msgstr "vgpvuuids"
17495
17496 #. type: verbatim
17497 #: ../fish/guestfish-actions.pod:5164
17498 #, no-wrap
17499 msgid ""
17500 " vgpvuuids vgname\n"
17501 "\n"
17502 msgstr ""
17503
17504 #. type: textblock
17505 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7950
17506 msgid ""
17507 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17508 "volumes that this volume group resides on."
17509 msgstr ""
17510
17511 #. type: textblock
17512 #: ../fish/guestfish-actions.pod:5169
17513 msgid ""
17514 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17515 "physical volumes and volume groups."
17516 msgstr ""
17517
17518 #. type: textblock
17519 #: ../fish/guestfish-actions.pod:5172
17520 msgid "See also L</vglvuuids>."
17521 msgstr "Див. також L</vglvuuids>."
17522
17523 #. type: =head2
17524 #: ../fish/guestfish-actions.pod:5174
17525 msgid "vgremove"
17526 msgstr "vgremove"
17527
17528 #. type: verbatim
17529 #: ../fish/guestfish-actions.pod:5176
17530 #, no-wrap
17531 msgid ""
17532 " vgremove vgname\n"
17533 "\n"
17534 msgstr ""
17535
17536 #. type: textblock
17537 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7970
17538 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17539 msgstr ""
17540
17541 #. type: textblock
17542 #: ../fish/guestfish-actions.pod:5180 ../src/guestfs-actions.pod:7972
17543 msgid ""
17544 "This also forcibly removes all logical volumes in the volume group (if any)."
17545 msgstr ""
17546
17547 #. type: =head2
17548 #: ../fish/guestfish-actions.pod:5183
17549 msgid "vgrename"
17550 msgstr "vgrename"
17551
17552 #. type: verbatim
17553 #: ../fish/guestfish-actions.pod:5185
17554 #, no-wrap
17555 msgid ""
17556 " vgrename volgroup newvolgroup\n"
17557 "\n"
17558 msgstr ""
17559
17560 #. type: textblock
17561 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7986
17562 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17563 msgstr ""
17564
17565 #. type: =head2
17566 #: ../fish/guestfish-actions.pod:5189
17567 msgid "vgs"
17568 msgstr "vgs"
17569
17570 #. type: verbatim
17571 #: ../fish/guestfish-actions.pod:5191
17572 #, no-wrap
17573 msgid ""
17574 " vgs\n"
17575 "\n"
17576 msgstr ""
17577 " vgs\n"
17578 "\n"
17579
17580 #. type: textblock
17581 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7997
17582 msgid ""
17583 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17584 "> command."
17585 msgstr ""
17586
17587 #. type: textblock
17588 #: ../fish/guestfish-actions.pod:5196 ../src/guestfs-actions.pod:8000
17589 msgid ""
17590 "This returns a list of just the volume group names that were detected (eg. "
17591 "C<VolGroup00>)."
17592 msgstr ""
17593
17594 #. type: textblock
17595 #: ../fish/guestfish-actions.pod:5199
17596 msgid "See also L</vgs-full>."
17597 msgstr "Див. також L</vgs-full>."
17598
17599 #. type: =head2
17600 #: ../fish/guestfish-actions.pod:5201
17601 msgid "vgs-full"
17602 msgstr "vgs-full"
17603
17604 #. type: verbatim
17605 #: ../fish/guestfish-actions.pod:5203
17606 #, no-wrap
17607 msgid ""
17608 " vgs-full\n"
17609 "\n"
17610 msgstr ""
17611 " vgs-full\n"
17612 "\n"
17613
17614 #. type: textblock
17615 #: ../fish/guestfish-actions.pod:5205 ../src/guestfs-actions.pod:8016
17616 msgid ""
17617 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17618 "> command.  The \"full\" version includes all fields."
17619 msgstr ""
17620
17621 #. type: =head2
17622 #: ../fish/guestfish-actions.pod:5208
17623 msgid "vgscan"
17624 msgstr "vgscan"
17625
17626 #. type: verbatim
17627 #: ../fish/guestfish-actions.pod:5210
17628 #, no-wrap
17629 msgid ""
17630 " vgscan\n"
17631 "\n"
17632 msgstr ""
17633 " vgscan\n"
17634 "\n"
17635
17636 #. type: textblock
17637 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:8030
17638 msgid ""
17639 "This rescans all block devices and rebuilds the list of LVM physical "
17640 "volumes, volume groups and logical volumes."
17641 msgstr ""
17642
17643 #. type: =head2
17644 #: ../fish/guestfish-actions.pod:5215
17645 msgid "vguuid"
17646 msgstr "vguuid"
17647
17648 #. type: verbatim
17649 #: ../fish/guestfish-actions.pod:5217
17650 #, no-wrap
17651 msgid ""
17652 " vguuid vgname\n"
17653 "\n"
17654 msgstr ""
17655
17656 #. type: textblock
17657 #: ../fish/guestfish-actions.pod:5219 ../src/guestfs-actions.pod:8043
17658 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17659 msgstr ""
17660
17661 #. type: =head2
17662 #: ../fish/guestfish-actions.pod:5221
17663 msgid "wc-c"
17664 msgstr "wc-c"
17665
17666 #. type: verbatim
17667 #: ../fish/guestfish-actions.pod:5223
17668 #, no-wrap
17669 msgid ""
17670 " wc-c path\n"
17671 "\n"
17672 msgstr ""
17673 " wc-c шлях\n"
17674 "\n"
17675
17676 #. type: textblock
17677 #: ../fish/guestfish-actions.pod:5225 ../src/guestfs-actions.pod:8083
17678 msgid ""
17679 "This command counts the characters in a file, using the C<wc -c> external "
17680 "command."
17681 msgstr ""
17682
17683 #. type: =head2
17684 #: ../fish/guestfish-actions.pod:5228
17685 msgid "wc-l"
17686 msgstr "wc-l"
17687
17688 #. type: verbatim
17689 #: ../fish/guestfish-actions.pod:5230
17690 #, no-wrap
17691 msgid ""
17692 " wc-l path\n"
17693 "\n"
17694 msgstr ""
17695 " wc-l шлях\n"
17696 "\n"
17697
17698 #. type: textblock
17699 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8096
17700 msgid ""
17701 "This command counts the lines in a file, using the C<wc -l> external command."
17702 msgstr ""
17703
17704 #. type: =head2
17705 #: ../fish/guestfish-actions.pod:5235
17706 msgid "wc-w"
17707 msgstr "wc-w"
17708
17709 #. type: verbatim
17710 #: ../fish/guestfish-actions.pod:5237
17711 #, no-wrap
17712 msgid ""
17713 " wc-w path\n"
17714 "\n"
17715 msgstr ""
17716 " wc-w шлях\n"
17717 "\n"
17718
17719 #. type: textblock
17720 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:8109
17721 msgid ""
17722 "This command counts the words in a file, using the C<wc -w> external command."
17723 msgstr ""
17724
17725 #. type: =head2
17726 #: ../fish/guestfish-actions.pod:5242
17727 msgid "write"
17728 msgstr "write"
17729
17730 #. type: verbatim
17731 #: ../fish/guestfish-actions.pod:5244
17732 #, no-wrap
17733 msgid ""
17734 " write path content\n"
17735 "\n"
17736 msgstr ""
17737 " write шлях дані\n"
17738 "\n"
17739
17740 #. type: textblock
17741 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8124
17742 msgid ""
17743 "This call creates a file called C<path>.  The content of the file is the "
17744 "string C<content> (which can contain any 8 bit data)."
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../fish/guestfish-actions.pod:5249
17749 msgid "See also L</write-append>."
17750 msgstr "Див. також L</write-append>."
17751
17752 #. type: =head2
17753 #: ../fish/guestfish-actions.pod:5254
17754 msgid "write-append"
17755 msgstr ""
17756
17757 #. type: verbatim
17758 #: ../fish/guestfish-actions.pod:5256
17759 #, no-wrap
17760 msgid ""
17761 " write-append path content\n"
17762 "\n"
17763 msgstr ""
17764
17765 #. type: textblock
17766 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8144
17767 msgid ""
17768 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17769 "not exist, then a new file is created."
17770 msgstr ""
17771
17772 #. type: textblock
17773 #: ../fish/guestfish-actions.pod:5261
17774 msgid "See also L</write>."
17775 msgstr "Див. також L</write>."
17776
17777 #. type: =head2
17778 #: ../fish/guestfish-actions.pod:5266
17779 msgid "write-file"
17780 msgstr "write-file"
17781
17782 #. type: verbatim
17783 #: ../fish/guestfish-actions.pod:5268
17784 #, no-wrap
17785 msgid ""
17786 " write-file path content size\n"
17787 "\n"
17788 msgstr ""
17789
17790 #. type: textblock
17791 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8171
17792 msgid ""
17793 "This call creates a file called C<path>.  The contents of the file is the "
17794 "string C<content> (which can contain any 8 bit data), with length C<size>."
17795 msgstr ""
17796
17797 #. type: textblock
17798 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8175
17799 msgid ""
17800 "As a special case, if C<size> is C<0> then the length is calculated using "
17801 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17802 msgstr ""
17803
17804 #. type: textblock
17805 #: ../fish/guestfish-actions.pod:5278 ../src/guestfs-actions.pod:8179
17806 msgid ""
17807 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17808 "I<not> work, even if the length is specified."
17809 msgstr ""
17810
17811 #. type: textblock
17812 #: ../fish/guestfish-actions.pod:5284
17813 msgid ""
17814 "I<This function is deprecated.> In new code, use the L</write> call instead."
17815 msgstr ""
17816
17817 #. type: =head2
17818 #: ../fish/guestfish-actions.pod:5291
17819 msgid "zegrep"
17820 msgstr "zegrep"
17821
17822 #. type: verbatim
17823 #: ../fish/guestfish-actions.pod:5293
17824 #, no-wrap
17825 msgid ""
17826 " zegrep regex path\n"
17827 "\n"
17828 msgstr ""
17829 " zegrep формальний_вираз шлях\n"
17830 "\n"
17831
17832 #. type: textblock
17833 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8196
17834 msgid ""
17835 "This calls the external C<zegrep> program and returns the matching lines."
17836 msgstr ""
17837
17838 #. type: =head2
17839 #: ../fish/guestfish-actions.pod:5301
17840 msgid "zegrepi"
17841 msgstr "zegrepi"
17842
17843 #. type: verbatim
17844 #: ../fish/guestfish-actions.pod:5303
17845 #, no-wrap
17846 msgid ""
17847 " zegrepi regex path\n"
17848 "\n"
17849 msgstr ""
17850
17851 #. type: textblock
17852 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8215
17853 msgid ""
17854 "This calls the external C<zegrep -i> program and returns the matching lines."
17855 msgstr ""
17856
17857 #. type: =head2
17858 #: ../fish/guestfish-actions.pod:5311
17859 msgid "zero"
17860 msgstr "zero"
17861
17862 #. type: verbatim
17863 #: ../fish/guestfish-actions.pod:5313
17864 #, no-wrap
17865 msgid ""
17866 " zero device\n"
17867 "\n"
17868 msgstr ""
17869 " zero пристрій\n"
17870 "\n"
17871
17872 #. type: textblock
17873 #: ../fish/guestfish-actions.pod:5315 ../src/guestfs-actions.pod:8233
17874 msgid "This command writes zeroes over the first few blocks of C<device>."
17875 msgstr ""
17876
17877 #. type: textblock
17878 #: ../fish/guestfish-actions.pod:5317 ../src/guestfs-actions.pod:8235
17879 msgid ""
17880 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17881 "securely wipe the device).  It should be sufficient to remove any partition "
17882 "tables, filesystem superblocks and so on."
17883 msgstr ""
17884
17885 #. type: textblock
17886 #: ../fish/guestfish-actions.pod:5321 ../fish/guestfish-actions.pod:5336
17887 #: ../src/guestfs-actions.pod:8239 ../src/guestfs-actions.pod:8265
17888 msgid ""
17889 "If blocks are already zero, then this command avoids writing zeroes.  This "
17890 "prevents the underlying device from becoming non-sparse or growing "
17891 "unnecessarily."
17892 msgstr ""
17893
17894 #. type: textblock
17895 #: ../fish/guestfish-actions.pod:5325
17896 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17897 msgstr ""
17898
17899 #. type: =head2
17900 #: ../fish/guestfish-actions.pod:5328
17901 msgid "zero-device"
17902 msgstr "zero-device"
17903
17904 #. type: verbatim
17905 #: ../fish/guestfish-actions.pod:5330
17906 #, no-wrap
17907 msgid ""
17908 " zero-device device\n"
17909 "\n"
17910 msgstr ""
17911 " zero-device пристрій\n"
17912 "\n"
17913
17914 #. type: textblock
17915 #: ../fish/guestfish-actions.pod:5332
17916 msgid ""
17917 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17918 "which just zeroes the first few blocks of a device."
17919 msgstr ""
17920
17921 #. type: =head2
17922 #: ../fish/guestfish-actions.pod:5340
17923 msgid "zerofree"
17924 msgstr "zerofree"
17925
17926 #. type: verbatim
17927 #: ../fish/guestfish-actions.pod:5342
17928 #, no-wrap
17929 msgid ""
17930 " zerofree device\n"
17931 "\n"
17932 msgstr ""
17933 " zerofree пристрій\n"
17934 "\n"
17935
17936 #. type: textblock
17937 #: ../fish/guestfish-actions.pod:5344 ../src/guestfs-actions.pod:8284
17938 msgid ""
17939 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17940 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17941 "possible to compress the filesystem more effectively."
17942 msgstr ""
17943
17944 #. type: textblock
17945 #: ../fish/guestfish-actions.pod:5349 ../src/guestfs-actions.pod:8289
17946 msgid "You should B<not> run this program if the filesystem is mounted."
17947 msgstr ""
17948
17949 #. type: textblock
17950 #: ../fish/guestfish-actions.pod:5352 ../src/guestfs-actions.pod:8292
17951 msgid ""
17952 "It is possible that using this program can damage the filesystem or data on "
17953 "the filesystem."
17954 msgstr ""
17955
17956 #. type: =head2
17957 #: ../fish/guestfish-actions.pod:5355
17958 msgid "zfgrep"
17959 msgstr "zfgrep"
17960
17961 #. type: verbatim
17962 #: ../fish/guestfish-actions.pod:5357
17963 #, no-wrap
17964 msgid ""
17965 " zfgrep pattern path\n"
17966 "\n"
17967 msgstr ""
17968 " zfgrep шаблон шлях\n"
17969 "\n"
17970
17971 #. type: textblock
17972 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8306
17973 msgid ""
17974 "This calls the external C<zfgrep> program and returns the matching lines."
17975 msgstr ""
17976
17977 #. type: =head2
17978 #: ../fish/guestfish-actions.pod:5365
17979 msgid "zfgrepi"
17980 msgstr "zfgrepi"
17981
17982 #. type: verbatim
17983 #: ../fish/guestfish-actions.pod:5367
17984 #, no-wrap
17985 msgid ""
17986 " zfgrepi pattern path\n"
17987 "\n"
17988 msgstr ""
17989 " zfgrepi шаблон шлях\n"
17990 "\n"
17991
17992 #. type: textblock
17993 #: ../fish/guestfish-actions.pod:5369 ../src/guestfs-actions.pod:8325
17994 msgid ""
17995 "This calls the external C<zfgrep -i> program and returns the matching lines."
17996 msgstr ""
17997
17998 #. type: =head2
17999 #: ../fish/guestfish-actions.pod:5375
18000 msgid "zfile"
18001 msgstr "zfile"
18002
18003 #. type: verbatim
18004 #: ../fish/guestfish-actions.pod:5377
18005 #, no-wrap
18006 msgid ""
18007 " zfile meth path\n"
18008 "\n"
18009 msgstr ""
18010 " zfile метод шлях\n"
18011 "\n"
18012
18013 #. type: textblock
18014 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8351
18015 msgid ""
18016 "This command runs C<file> after first decompressing C<path> using C<method>."
18017 msgstr ""
18018
18019 #. type: textblock
18020 #: ../fish/guestfish-actions.pod:5382 ../src/guestfs-actions.pod:8354
18021 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18022 msgstr ""
18023
18024 #. type: textblock
18025 #: ../fish/guestfish-actions.pod:5384
18026 msgid ""
18027 "Since 1.0.63, use L</file> instead which can now process compressed files."
18028 msgstr ""
18029
18030 #. type: textblock
18031 #: ../fish/guestfish-actions.pod:5387
18032 msgid ""
18033 "I<This function is deprecated.> In new code, use the L</file> call instead."
18034 msgstr ""
18035
18036 #. type: =head2
18037 #: ../fish/guestfish-actions.pod:5394
18038 msgid "zgrep"
18039 msgstr "zgrep"
18040
18041 #. type: verbatim
18042 #: ../fish/guestfish-actions.pod:5396
18043 #, no-wrap
18044 msgid ""
18045 " zgrep regex path\n"
18046 "\n"
18047 msgstr ""
18048 " zgrep формальний_вираз шлях\n"
18049 "\n"
18050
18051 #. type: textblock
18052 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8371
18053 msgid ""
18054 "This calls the external C<zgrep> program and returns the matching lines."
18055 msgstr ""
18056
18057 #. type: =head2
18058 #: ../fish/guestfish-actions.pod:5404
18059 msgid "zgrepi"
18060 msgstr "zgrepi"
18061
18062 #. type: verbatim
18063 #: ../fish/guestfish-actions.pod:5406
18064 #, no-wrap
18065 msgid ""
18066 " zgrepi regex path\n"
18067 "\n"
18068 msgstr ""
18069 " zgrepi формальний_вираз шлях\n"
18070 "\n"
18071
18072 #. type: textblock
18073 #: ../fish/guestfish-actions.pod:5408 ../src/guestfs-actions.pod:8390
18074 msgid ""
18075 "This calls the external C<zgrep -i> program and returns the matching lines."
18076 msgstr ""
18077
18078 #. type: =head2
18079 #: ../fish/guestfish-commands.pod:1
18080 msgid "alloc"
18081 msgstr "alloc"
18082
18083 #. type: =head2
18084 #: ../fish/guestfish-commands.pod:3
18085 msgid "allocate"
18086 msgstr ""
18087
18088 #. type: verbatim
18089 #: ../fish/guestfish-commands.pod:5
18090 #, no-wrap
18091 msgid ""
18092 " alloc filename size\n"
18093 "\n"
18094 msgstr ""
18095
18096 #. type: textblock
18097 #: ../fish/guestfish-commands.pod:7
18098 msgid ""
18099 "This creates an empty (zeroed) file of the given size, and then adds so it "
18100 "can be further examined."
18101 msgstr ""
18102
18103 #. type: textblock
18104 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18105 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18106 msgstr ""
18107
18108 #. type: textblock
18109 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18110 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18111 msgstr ""
18112
18113 #. type: textblock
18114 #: ../fish/guestfish-commands.pod:14
18115 msgid ""
18116 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18117 "image, see L</PREPARED DISK IMAGES>."
18118 msgstr ""
18119
18120 #. type: =head2
18121 #: ../fish/guestfish-commands.pod:17
18122 msgid "copy-in"
18123 msgstr "copy-in"
18124
18125 #. type: verbatim
18126 #: ../fish/guestfish-commands.pod:19
18127 #, no-wrap
18128 msgid ""
18129 " copy-in local [local ...] /remotedir\n"
18130 "\n"
18131 msgstr ""
18132
18133 #. type: textblock
18134 #: ../fish/guestfish-commands.pod:21
18135 msgid ""
18136 "C<copy-in> copies local files or directories recursively into the disk "
18137 "image, placing them in the directory called C</remotedir> (which must "
18138 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18139 "other commands as necessary."
18140 msgstr ""
18141
18142 #. type: textblock
18143 #: ../fish/guestfish-commands.pod:26
18144 msgid ""
18145 "Multiple local files and directories can be specified, but the last "
18146 "parameter must always be a remote directory.  Wildcards cannot be used."
18147 msgstr ""
18148
18149 #. type: =head2
18150 #: ../fish/guestfish-commands.pod:30
18151 msgid "copy-out"
18152 msgstr "copy-out"
18153
18154 #. type: verbatim
18155 #: ../fish/guestfish-commands.pod:32
18156 #, no-wrap
18157 msgid ""
18158 " copy-out remote [remote ...] localdir\n"
18159 "\n"
18160 msgstr ""
18161
18162 #. type: textblock
18163 #: ../fish/guestfish-commands.pod:34
18164 msgid ""
18165 "C<copy-out> copies remote files or directories recursively out of the disk "
18166 "image, placing them on the host disk in a local directory called C<localdir> "
18167 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
18168 "download>, L</tar-out> and other commands as necessary."
18169 msgstr ""
18170
18171 #. type: textblock
18172 #: ../fish/guestfish-commands.pod:40
18173 msgid ""
18174 "Multiple remote files and directories can be specified, but the last "
18175 "parameter must always be a local directory.  To download to the current "
18176 "directory, use C<.> as in:"
18177 msgstr ""
18178
18179 #. type: verbatim
18180 #: ../fish/guestfish-commands.pod:44
18181 #, no-wrap
18182 msgid ""
18183 " copy-out /home .\n"
18184 "\n"
18185 msgstr ""
18186 " copy-out /home .\n"
18187 "\n"
18188
18189 #. type: textblock
18190 #: ../fish/guestfish-commands.pod:46
18191 msgid ""
18192 "Wildcards cannot be used in the ordinary command, but you can use them with "
18193 "the help of L</glob> like this:"
18194 msgstr ""
18195
18196 #. type: verbatim
18197 #: ../fish/guestfish-commands.pod:49
18198 #, no-wrap
18199 msgid ""
18200 " glob copy-out /home/* .\n"
18201 "\n"
18202 msgstr ""
18203 " glob copy-out /home/* .\n"
18204 "\n"
18205
18206 #. type: =head2
18207 #: ../fish/guestfish-commands.pod:51
18208 msgid "display"
18209 msgstr ""
18210
18211 #. type: verbatim
18212 #: ../fish/guestfish-commands.pod:53
18213 #, no-wrap
18214 msgid ""
18215 " display filename\n"
18216 "\n"
18217 msgstr ""
18218
18219 #. type: textblock
18220 #: ../fish/guestfish-commands.pod:55
18221 msgid ""
18222 "Use C<display> (a graphical display program) to display an image file.  It "
18223 "downloads the file, and runs C<display> on it."
18224 msgstr ""
18225
18226 #. type: textblock
18227 #: ../fish/guestfish-commands.pod:58
18228 msgid ""
18229 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18230 "environment variable.  For example to use the GNOME display program:"
18231 msgstr ""
18232
18233 #. type: verbatim
18234 #: ../fish/guestfish-commands.pod:61
18235 #, no-wrap
18236 msgid ""
18237 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18238 "\n"
18239 msgstr ""
18240
18241 #. type: textblock
18242 #: ../fish/guestfish-commands.pod:63
18243 msgid "See also L<display(1)>."
18244 msgstr "Див. також L<display(1)>."
18245
18246 #. type: =head2
18247 #: ../fish/guestfish-commands.pod:65
18248 msgid "echo"
18249 msgstr "echo"
18250
18251 #. type: verbatim
18252 #: ../fish/guestfish-commands.pod:67
18253 #, no-wrap
18254 msgid ""
18255 " echo [params ...]\n"
18256 "\n"
18257 msgstr ""
18258 " echo [параметри...]\n"
18259 "\n"
18260
18261 #. type: textblock
18262 #: ../fish/guestfish-commands.pod:69
18263 msgid "This echos the parameters to the terminal."
18264 msgstr ""
18265
18266 #. type: =head2
18267 #: ../fish/guestfish-commands.pod:71
18268 msgid "edit"
18269 msgstr "edit"
18270
18271 #. type: =head2
18272 #: ../fish/guestfish-commands.pod:73
18273 msgid "vi"
18274 msgstr "vi"
18275
18276 #. type: =head2
18277 #: ../fish/guestfish-commands.pod:75
18278 msgid "emacs"
18279 msgstr "emacs"
18280
18281 #. type: verbatim
18282 #: ../fish/guestfish-commands.pod:77
18283 #, no-wrap
18284 msgid ""
18285 " edit filename\n"
18286 "\n"
18287 msgstr ""
18288 " edit назва_файла\n"
18289 "\n"
18290
18291 #. type: textblock
18292 #: ../fish/guestfish-commands.pod:79
18293 msgid ""
18294 "This is used to edit a file.  It downloads the file, edits it locally using "
18295 "your editor, then uploads the result."
18296 msgstr ""
18297
18298 #. type: textblock
18299 #: ../fish/guestfish-commands.pod:82
18300 msgid ""
18301 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18302 "or C<emacs> you will get those corresponding editors."
18303 msgstr ""
18304
18305 #. type: =head2
18306 #: ../fish/guestfish-commands.pod:86
18307 msgid "glob"
18308 msgstr "glob"
18309
18310 #. type: verbatim
18311 #: ../fish/guestfish-commands.pod:88
18312 #, no-wrap
18313 msgid ""
18314 " glob command args...\n"
18315 "\n"
18316 msgstr ""
18317 " glob команда параметри...\n"
18318 "\n"
18319
18320 #. type: textblock
18321 #: ../fish/guestfish-commands.pod:90
18322 msgid ""
18323 "Expand wildcards in any paths in the args list, and run C<command> "
18324 "repeatedly on each matching path."
18325 msgstr ""
18326
18327 #. type: textblock
18328 #: ../fish/guestfish-commands.pod:93
18329 msgid "See L</WILDCARDS AND GLOBBING>."
18330 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18331
18332 #. type: =head2
18333 #: ../fish/guestfish-commands.pod:95
18334 msgid "hexedit"
18335 msgstr "hexedit"
18336
18337 #. type: verbatim
18338 #: ../fish/guestfish-commands.pod:97
18339 #, no-wrap
18340 msgid ""
18341 " hexedit <filename|device>\n"
18342 " hexedit <filename|device> <max>\n"
18343 " hexedit <filename|device> <start> <max>\n"
18344 "\n"
18345 msgstr ""
18346
18347 #. type: textblock
18348 #: ../fish/guestfish-commands.pod:101
18349 msgid ""
18350 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18351 "device."
18352 msgstr ""
18353
18354 #. type: textblock
18355 #: ../fish/guestfish-commands.pod:104
18356 msgid ""
18357 "This command works by downloading potentially the whole file or device, "
18358 "editing it locally, then uploading it.  If the file or device is large, you "
18359 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18360 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18361 "usual modifiers allowed such as C<1M> (1 megabyte)."
18362 msgstr ""
18363
18364 #. type: textblock
18365 #: ../fish/guestfish-commands.pod:111
18366 msgid "For example to edit the first few sectors of a disk you might do:"
18367 msgstr ""
18368
18369 #. type: verbatim
18370 #: ../fish/guestfish-commands.pod:114
18371 #, no-wrap
18372 msgid ""
18373 " hexedit /dev/sda 1M\n"
18374 "\n"
18375 msgstr ""
18376 " hexedit /dev/sda 1M\n"
18377 "\n"
18378
18379 #. type: textblock
18380 #: ../fish/guestfish-commands.pod:116
18381 msgid ""
18382 "which would allow you to edit anywhere within the first megabyte of the disk."
18383 msgstr ""
18384
18385 #. type: textblock
18386 #: ../fish/guestfish-commands.pod:119
18387 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18388 msgstr ""
18389
18390 #. type: verbatim
18391 #: ../fish/guestfish-commands.pod:121
18392 #, no-wrap
18393 msgid ""
18394 " hexedit /dev/sda1 0x400 0x400\n"
18395 "\n"
18396 msgstr ""
18397 " hexedit /dev/sda1 0x400 0x400\n"
18398 "\n"
18399
18400 #. type: textblock
18401 #: ../fish/guestfish-commands.pod:123
18402 msgid "(assuming the superblock is in the standard location)."
18403 msgstr ""
18404
18405 #. type: textblock
18406 #: ../fish/guestfish-commands.pod:125
18407 msgid ""
18408 "This command requires the external L<hexedit(1)> program.  You can specify "
18409 "another program to use by setting the C<HEXEDITOR> environment variable."
18410 msgstr ""
18411
18412 #. type: textblock
18413 #: ../fish/guestfish-commands.pod:129
18414 msgid "See also L</hexdump>."
18415 msgstr "Див. також L</hexdump>."
18416
18417 #. type: =head2
18418 #: ../fish/guestfish-commands.pod:131
18419 msgid "lcd"
18420 msgstr "lcd"
18421
18422 #. type: verbatim
18423 #: ../fish/guestfish-commands.pod:133
18424 #, no-wrap
18425 msgid ""
18426 " lcd directory\n"
18427 "\n"
18428 msgstr ""
18429
18430 #. type: textblock
18431 #: ../fish/guestfish-commands.pod:135
18432 msgid ""
18433 "Change the local directory, ie. the current directory of guestfish itself."
18434 msgstr ""
18435
18436 #. type: textblock
18437 #: ../fish/guestfish-commands.pod:138
18438 msgid "Note that C<!cd> won't do what you might expect."
18439 msgstr ""
18440
18441 #. type: =head2
18442 #: ../fish/guestfish-commands.pod:140
18443 msgid "man"
18444 msgstr "man"
18445
18446 #. type: =head2
18447 #: ../fish/guestfish-commands.pod:142
18448 msgid "manual"
18449 msgstr "підручник"
18450
18451 #. type: verbatim
18452 #: ../fish/guestfish-commands.pod:144
18453 #, no-wrap
18454 msgid ""
18455 "  man\n"
18456 "\n"
18457 msgstr ""
18458 "  man\n"
18459 "\n"
18460
18461 #. type: textblock
18462 #: ../fish/guestfish-commands.pod:146
18463 msgid "Opens the manual page for guestfish."
18464 msgstr ""
18465
18466 #. type: =head2
18467 #: ../fish/guestfish-commands.pod:148
18468 msgid "more"
18469 msgstr "more"
18470
18471 #. type: =head2
18472 #: ../fish/guestfish-commands.pod:150
18473 msgid "less"
18474 msgstr "less"
18475
18476 #. type: verbatim
18477 #: ../fish/guestfish-commands.pod:152
18478 #, no-wrap
18479 msgid ""
18480 " more filename\n"
18481 "\n"
18482 msgstr ""
18483
18484 #. type: verbatim
18485 #: ../fish/guestfish-commands.pod:154
18486 #, no-wrap
18487 msgid ""
18488 " less filename\n"
18489 "\n"
18490 msgstr ""
18491
18492 #. type: textblock
18493 #: ../fish/guestfish-commands.pod:156
18494 msgid "This is used to view a file."
18495 msgstr ""
18496
18497 #. type: textblock
18498 #: ../fish/guestfish-commands.pod:158
18499 msgid ""
18500 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18501 "C<less> you will get the C<less> command specifically."
18502 msgstr ""
18503
18504 #. type: =head2
18505 #: ../fish/guestfish-commands.pod:161
18506 msgid "reopen"
18507 msgstr "reopen"
18508
18509 #. type: verbatim
18510 #: ../fish/guestfish-commands.pod:163
18511 #, no-wrap
18512 msgid ""
18513 "  reopen\n"
18514 "\n"
18515 msgstr ""
18516
18517 #. type: textblock
18518 #: ../fish/guestfish-commands.pod:165
18519 msgid ""
18520 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18521 "normally, because the handle is closed properly when guestfish exits.  "
18522 "However this is occasionally useful for testing."
18523 msgstr ""
18524
18525 #. type: =head2
18526 #: ../fish/guestfish-commands.pod:169
18527 msgid "setenv"
18528 msgstr ""
18529
18530 #. type: verbatim
18531 #: ../fish/guestfish-commands.pod:171
18532 #, no-wrap
18533 msgid ""
18534 "  setenv VAR value\n"
18535 "\n"
18536 msgstr ""
18537
18538 #. type: textblock
18539 #: ../fish/guestfish-commands.pod:173
18540 msgid "Set the environment variable C<VAR> to the string C<value>."
18541 msgstr ""
18542
18543 #. type: textblock
18544 #: ../fish/guestfish-commands.pod:175
18545 msgid ""
18546 "To print the value of an environment variable use a shell command such as:"
18547 msgstr ""
18548
18549 #. type: verbatim
18550 #: ../fish/guestfish-commands.pod:178
18551 #, no-wrap
18552 msgid ""
18553 " !echo $VAR\n"
18554 "\n"
18555 msgstr ""
18556
18557 #. type: =head2
18558 #: ../fish/guestfish-commands.pod:180
18559 msgid "sparse"
18560 msgstr "sparse"
18561
18562 #. type: verbatim
18563 #: ../fish/guestfish-commands.pod:182
18564 #, no-wrap
18565 msgid ""
18566 " sparse filename size\n"
18567 "\n"
18568 msgstr ""
18569
18570 #. type: textblock
18571 #: ../fish/guestfish-commands.pod:184
18572 msgid ""
18573 "This creates an empty sparse file of the given size, and then adds so it can "
18574 "be further examined."
18575 msgstr ""
18576
18577 #. type: textblock
18578 #: ../fish/guestfish-commands.pod:187
18579 msgid ""
18580 "In all respects it works the same as the L</alloc> command, except that the "
18581 "image file is allocated sparsely, which means that disk blocks are not "
18582 "assigned to the file until they are needed.  Sparse disk files only use "
18583 "space when written to, but they are slower and there is a danger you could "
18584 "run out of real disk space during a write operation."
18585 msgstr ""
18586
18587 #. type: =head2
18588 #: ../fish/guestfish-commands.pod:197
18589 msgid "supported"
18590 msgstr "supported"
18591
18592 #. type: verbatim
18593 #: ../fish/guestfish-commands.pod:199
18594 #, no-wrap
18595 msgid ""
18596 " supported\n"
18597 "\n"
18598 msgstr ""
18599 " supported\n"
18600 "\n"
18601
18602 #. type: textblock
18603 #: ../fish/guestfish-commands.pod:201
18604 msgid ""
18605 "This command returns a list of the optional groups known to the daemon, and "
18606 "indicates which ones are supported by this build of the libguestfs appliance."
18607 msgstr ""
18608
18609 #. type: textblock
18610 #: ../fish/guestfish-commands.pod:205
18611 msgid "See also L<guestfs(3)/AVAILABILITY>."
18612 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
18613
18614 #. type: =head2
18615 #: ../fish/guestfish-commands.pod:207
18616 msgid "time"
18617 msgstr "time"
18618
18619 #. type: verbatim
18620 #: ../fish/guestfish-commands.pod:209
18621 #, no-wrap
18622 msgid ""
18623 " time command args...\n"
18624 "\n"
18625 msgstr ""
18626
18627 #. type: textblock
18628 #: ../fish/guestfish-commands.pod:211
18629 msgid ""
18630 "Run the command as usual, but print the elapsed time afterwards.  This can "
18631 "be useful for benchmarking operations."
18632 msgstr ""
18633
18634 #. type: =head2
18635 #: ../fish/guestfish-commands.pod:214
18636 msgid "unsetenv"
18637 msgstr ""
18638
18639 #. type: verbatim
18640 #: ../fish/guestfish-commands.pod:216
18641 #, no-wrap
18642 msgid ""
18643 "  unsetenv VAR\n"
18644 "\n"
18645 msgstr ""
18646
18647 #. type: textblock
18648 #: ../fish/guestfish-commands.pod:218
18649 msgid "Remove C<VAR> from the environment."
18650 msgstr ""
18651
18652 #. type: textblock
18653 #: ../fish/guestfish.pod:5
18654 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18655 msgstr ""
18656
18657 #. type: verbatim
18658 #: ../fish/guestfish.pod:9
18659 #, no-wrap
18660 msgid ""
18661 " guestfish [--options] [commands]\n"
18662 "\n"
18663 msgstr ""
18664
18665 #. type: verbatim
18666 #: ../fish/guestfish.pod:11
18667 #, no-wrap
18668 msgid ""
18669 " guestfish\n"
18670 "\n"
18671 msgstr ""
18672
18673 #. type: verbatim
18674 #: ../fish/guestfish.pod:13
18675 #, no-wrap
18676 msgid ""
18677 " guestfish [--ro|--rw] -a disk.img\n"
18678 "\n"
18679 msgstr ""
18680
18681 #. type: verbatim
18682 #: ../fish/guestfish.pod:15
18683 #, no-wrap
18684 msgid ""
18685 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18686 "\n"
18687 msgstr ""
18688
18689 #. type: verbatim
18690 #: ../fish/guestfish.pod:17
18691 #, no-wrap
18692 msgid ""
18693 " guestfish -d libvirt-domain\n"
18694 "\n"
18695 msgstr ""
18696
18697 #. type: verbatim
18698 #: ../fish/guestfish.pod:19
18699 #, no-wrap
18700 msgid ""
18701 " guestfish [--ro|--rw] -a disk.img -i\n"
18702 "\n"
18703 msgstr ""
18704
18705 #. type: verbatim
18706 #: ../fish/guestfish.pod:21
18707 #, no-wrap
18708 msgid ""
18709 " guestfish -d libvirt-domain -i\n"
18710 "\n"
18711 msgstr ""
18712
18713 #. type: textblock
18714 #: ../fish/guestfish.pod:25
18715 msgid ""
18716 "Using guestfish in read/write mode on live virtual machines can be "
18717 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18718 "option to use guestfish safely if the disk image or virtual machine might be "
18719 "live."
18720 msgstr ""
18721
18722 #. type: textblock
18723 #: ../fish/guestfish.pod:32
18724 msgid ""
18725 "Guestfish is a shell and command-line tool for examining and modifying "
18726 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18727 "functionality of the guestfs API, see L<guestfs(3)>."
18728 msgstr ""
18729
18730 #. type: textblock
18731 #: ../fish/guestfish.pod:36
18732 msgid ""
18733 "Guestfish gives you structured access to the libguestfs API, from shell "
18734 "scripts or the command line or interactively.  If you want to rescue a "
18735 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18736 "command."
18737 msgstr ""
18738
18739 #. type: =head2
18740 #: ../fish/guestfish.pod:43
18741 msgid "As an interactive shell"
18742 msgstr ""
18743
18744 #. type: verbatim
18745 #: ../fish/guestfish.pod:45
18746 #, no-wrap
18747 msgid ""
18748 " $ guestfish\n"
18749 " \n"
18750 msgstr ""
18751
18752 #. type: verbatim
18753 #: ../fish/guestfish.pod:47
18754 #, no-wrap
18755 msgid ""
18756 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18757 " editing virtual machine filesystems.\n"
18758 " \n"
18759 msgstr ""
18760
18761 #. type: verbatim
18762 #: ../fish/guestfish.pod:50
18763 #, no-wrap
18764 msgid ""
18765 " Type: 'help' for a list of commands\n"
18766 "       'man' to read the manual\n"
18767 "       'quit' to quit the shell\n"
18768 " \n"
18769 msgstr ""
18770
18771 #. type: verbatim
18772 #: ../fish/guestfish.pod:54
18773 #, no-wrap
18774 msgid ""
18775 " ><fs> add-ro disk.img\n"
18776 " ><fs> run\n"
18777 " ><fs> list-filesystems\n"
18778 " /dev/sda1: ext4\n"
18779 " /dev/vg_guest/lv_root: ext4\n"
18780 " /dev/vg_guest/lv_swap: swap\n"
18781 " ><fs> mount /dev/vg_guest/lv_root /\n"
18782 " ><fs> cat /etc/fstab\n"
18783 " # /etc/fstab\n"
18784 " # Created by anaconda\n"
18785 " [...]\n"
18786 " ><fs> exit\n"
18787 "\n"
18788 msgstr ""
18789
18790 #. type: =head2
18791 #: ../fish/guestfish.pod:67
18792 msgid "From shell scripts"
18793 msgstr ""
18794
18795 #. type: textblock
18796 #: ../fish/guestfish.pod:69
18797 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18798 msgstr ""
18799
18800 #. type: verbatim
18801 #: ../fish/guestfish.pod:71
18802 #, no-wrap
18803 msgid ""
18804 " guestfish <<_EOF_\n"
18805 " add disk.img\n"
18806 " run\n"
18807 " mount /dev/vg_guest/lv_root /\n"
18808 " write /etc/motd \"Welcome, new users\"\n"
18809 " _EOF_\n"
18810 "\n"
18811 msgstr ""
18812
18813 #. type: textblock
18814 #: ../fish/guestfish.pod:78
18815 msgid "List the LVM logical volumes in a disk image:"
18816 msgstr ""
18817
18818 #. type: verbatim
18819 #: ../fish/guestfish.pod:80
18820 #, no-wrap
18821 msgid ""
18822 " guestfish -a disk.img --ro <<_EOF_\n"
18823 " run\n"
18824 " lvs\n"
18825 " _EOF_\n"
18826 "\n"
18827 msgstr ""
18828
18829 #. type: textblock
18830 #: ../fish/guestfish.pod:85
18831 msgid "List all the filesystems in a disk image:"
18832 msgstr ""
18833
18834 #. type: verbatim
18835 #: ../fish/guestfish.pod:87
18836 #, no-wrap
18837 msgid ""
18838 " guestfish -a disk.img --ro <<_EOF_\n"
18839 " run\n"
18840 " list-filesystems\n"
18841 " _EOF_\n"
18842 "\n"
18843 msgstr ""
18844
18845 #. type: =head2
18846 #: ../fish/guestfish.pod:92
18847 msgid "On one command line"
18848 msgstr ""
18849
18850 #. type: textblock
18851 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18852 msgid "Update C</etc/resolv.conf> in a guest:"
18853 msgstr ""
18854
18855 #. type: verbatim
18856 #: ../fish/guestfish.pod:96
18857 #, no-wrap
18858 msgid ""
18859 " guestfish \\\n"
18860 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18861 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18862 "\n"
18863 msgstr ""
18864
18865 #. type: textblock
18866 #: ../fish/guestfish.pod:100
18867 msgid "Edit C</boot/grub/grub.conf> interactively:"
18868 msgstr ""
18869
18870 #. type: verbatim
18871 #: ../fish/guestfish.pod:102
18872 #, no-wrap
18873 msgid ""
18874 " guestfish --rw --add disk.img \\\n"
18875 "   --mount /dev/vg_guest/lv_root \\\n"
18876 "   --mount /dev/sda1:/boot \\\n"
18877 "   edit /boot/grub/grub.conf\n"
18878 "\n"
18879 msgstr ""
18880
18881 #. type: =head2
18882 #: ../fish/guestfish.pod:107
18883 msgid "Mount disks automatically"
18884 msgstr ""
18885
18886 #. type: textblock
18887 #: ../fish/guestfish.pod:109
18888 msgid ""
18889 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18890 msgstr ""
18891
18892 #. type: verbatim
18893 #: ../fish/guestfish.pod:112
18894 #, no-wrap
18895 msgid ""
18896 " guestfish --ro -a disk.img -i cat /etc/group\n"
18897 "\n"
18898 msgstr ""
18899
18900 #. type: verbatim
18901 #: ../fish/guestfish.pod:114
18902 #, no-wrap
18903 msgid ""
18904 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18905 "\n"
18906 msgstr ""
18907
18908 #. type: textblock
18909 #: ../fish/guestfish.pod:116
18910 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18911 msgstr ""
18912
18913 #. type: verbatim
18914 #: ../fish/guestfish.pod:118
18915 #, no-wrap
18916 msgid ""
18917 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18918 "\n"
18919 msgstr ""
18920
18921 #. type: =head2
18922 #: ../fish/guestfish.pod:120
18923 msgid "As a script interpreter"
18924 msgstr ""
18925
18926 #. type: textblock
18927 #: ../fish/guestfish.pod:122
18928 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18929 msgstr ""
18930
18931 #. type: verbatim
18932 #: ../fish/guestfish.pod:124
18933 #, no-wrap
18934 msgid ""
18935 " #!/usr/bin/guestfish -f\n"
18936 " sparse test1.img 100M\n"
18937 " run\n"
18938 " part-disk /dev/sda mbr\n"
18939 " mkfs ext2 /dev/sda1\n"
18940 "\n"
18941 msgstr ""
18942
18943 #. type: =head2
18944 #: ../fish/guestfish.pod:130
18945 msgid "Start with a prepared disk"
18946 msgstr ""
18947
18948 #. type: textblock
18949 #: ../fish/guestfish.pod:132
18950 msgid ""
18951 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18952 "single ext2-formatted partition:"
18953 msgstr ""
18954
18955 #. type: verbatim
18956 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18957 #, no-wrap
18958 msgid ""
18959 " guestfish -N fs\n"
18960 "\n"
18961 msgstr ""
18962
18963 #. type: textblock
18964 #: ../fish/guestfish.pod:137
18965 msgid "To list what is available do:"
18966 msgstr ""
18967
18968 #. type: verbatim
18969 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18970 #, no-wrap
18971 msgid ""
18972 " guestfish -N help | less\n"
18973 "\n"
18974 msgstr ""
18975
18976 #. type: =head2
18977 #: ../fish/guestfish.pod:141
18978 msgid "Remote control"
18979 msgstr "Дистанційне керування"
18980
18981 #. type: verbatim
18982 #: ../fish/guestfish.pod:143
18983 #, no-wrap
18984 msgid ""
18985 " eval \"`guestfish --listen`\"\n"
18986 " guestfish --remote add-ro disk.img\n"
18987 " guestfish --remote run\n"
18988 " guestfish --remote lvs\n"
18989 "\n"
18990 msgstr ""
18991 " eval \"`guestfish --listen`\"\n"
18992 " guestfish --remote add-ro disk.img\n"
18993 " guestfish --remote run\n"
18994 " guestfish --remote lvs\n"
18995 "\n"
18996
18997 #. type: textblock
18998 #: ../fish/guestfish.pod:154
18999 msgid "Displays general help on options."
19000 msgstr ""
19001
19002 #. type: =item
19003 #: ../fish/guestfish.pod:158
19004 msgid "B<--cmd-help>"
19005 msgstr "B<--cmd-help>"
19006
19007 #. type: textblock
19008 #: ../fish/guestfish.pod:160
19009 msgid "Lists all available guestfish commands."
19010 msgstr ""
19011
19012 #. type: =item
19013 #: ../fish/guestfish.pod:162
19014 msgid "B<-h cmd>"
19015 msgstr "B<-h команда>"
19016
19017 #. type: =item
19018 #: ../fish/guestfish.pod:164
19019 msgid "B<--cmd-help cmd>"
19020 msgstr "B<--cmd-help команда>"
19021
19022 #. type: textblock
19023 #: ../fish/guestfish.pod:166
19024 msgid "Displays detailed help on a single command C<cmd>."
19025 msgstr ""
19026
19027 #. type: =item
19028 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19029 msgid "B<-a image>"
19030 msgstr "B<-a образ>"
19031
19032 #. type: =item
19033 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19034 msgid "B<--add image>"
19035 msgstr "B<--add образ>"
19036
19037 #. type: textblock
19038 #: ../fish/guestfish.pod:172
19039 msgid "Add a block device or virtual machine image to the shell."
19040 msgstr ""
19041
19042 #. type: textblock
19043 #: ../fish/guestfish.pod:177
19044 msgid ""
19045 "Using this flag is mostly equivalent to using the C<add> command, with "
19046 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19047 "the I<--format=...> flag was given."
19048 msgstr ""
19049
19050 #. type: textblock
19051 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19052 msgid ""
19053 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19054 "URI to use.  The default is to use the default libvirt connection."
19055 msgstr ""
19056
19057 #. type: =item
19058 #: ../fish/guestfish.pod:189
19059 msgid "B<--csh>"
19060 msgstr "B<--csh>"
19061
19062 #. type: textblock
19063 #: ../fish/guestfish.pod:191
19064 msgid ""
19065 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19066 "section L</REMOTE CONTROL AND CSH> below."
19067 msgstr ""
19068
19069 #. type: =item
19070 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19071 msgid "B<-d libvirt-domain>"
19072 msgstr "B<-d домен-libvirt>"
19073
19074 #. type: =item
19075 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19076 msgid "B<--domain libvirt-domain>"
19077 msgstr "B<--domain домен-libvirt>"
19078
19079 #. type: textblock
19080 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19081 msgid ""
19082 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19083 "used, then any libvirt domain can be used.  However in write mode, only "
19084 "libvirt domains which are shut down can be named here."
19085 msgstr ""
19086
19087 #. type: textblock
19088 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19089 msgid "Domain UUIDs can be used instead of names."
19090 msgstr ""
19091
19092 #. type: textblock
19093 #: ../fish/guestfish.pod:204
19094 msgid ""
19095 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19096 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19097 "if the I<--format:...> flag was given."
19098 msgstr ""
19099
19100 #. type: =item
19101 #: ../fish/guestfish.pod:208
19102 msgid "B<-D>"
19103 msgstr "B<-D>"
19104
19105 #. type: =item
19106 #: ../fish/guestfish.pod:210
19107 msgid "B<--no-dest-paths>"
19108 msgstr "B<--no-dest-paths>"
19109
19110 #. type: textblock
19111 #: ../fish/guestfish.pod:212
19112 msgid ""
19113 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19114 "to hit the tab key to complete paths on the guest filesystem, but this "
19115 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19116 "allow this feature to be disabled."
19117 msgstr ""
19118
19119 #. type: textblock
19120 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19121 msgid ""
19122 "When prompting for keys and passphrases, guestfish normally turns echoing "
19123 "off so you cannot see what you are typing.  If you are not worried about "
19124 "Tempest attacks and there is no one else in the room you can specify this "
19125 "flag to see what you are typing."
19126 msgstr ""
19127
19128 #. type: =item
19129 #: ../fish/guestfish.pod:224
19130 msgid "B<-f file>"
19131 msgstr "B<-f файл>"
19132
19133 #. type: =item
19134 #: ../fish/guestfish.pod:226
19135 msgid "B<--file file>"
19136 msgstr "B<--file файл>"
19137
19138 #. type: textblock
19139 #: ../fish/guestfish.pod:228
19140 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19141 msgstr ""
19142
19143 #. type: verbatim
19144 #: ../fish/guestfish.pod:231
19145 #, no-wrap
19146 msgid ""
19147 " #!/usr/bin/guestfish -f\n"
19148 "\n"
19149 msgstr ""
19150 " #!/usr/bin/guestfish -f\n"
19151 "\n"
19152
19153 #. type: verbatim
19154 #: ../fish/guestfish.pod:244
19155 #, no-wrap
19156 msgid ""
19157 " guestfish --format=raw -a disk.img\n"
19158 "\n"
19159 msgstr ""
19160 " guestfish --format=raw -a disk.img\n"
19161 "\n"
19162
19163 #. type: verbatim
19164 #: ../fish/guestfish.pod:248
19165 #, no-wrap
19166 msgid ""
19167 " guestfish --format=raw -a disk.img --format -a another.img\n"
19168 "\n"
19169 msgstr ""
19170 " guestfish --format=raw -a disk.img --format -a another.img\n"
19171 "\n"
19172
19173 #. type: textblock
19174 #: ../fish/guestfish.pod:253
19175 msgid ""
19176 "If you have untrusted raw-format guest disk images, you should use this "
19177 "option to specify the disk format.  This avoids a possible security problem "
19178 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19179 msgstr ""
19180
19181 #. type: =item
19182 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19183 msgid "B<--inspector>"
19184 msgstr "B<--inspector>"
19185
19186 #. type: textblock
19187 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19188 msgid ""
19189 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19190 "system and mount filesystems as they would be mounted on the real virtual "
19191 "machine."
19192 msgstr ""
19193
19194 #. type: textblock
19195 #: ../fish/guestfish.pod:266
19196 msgid "Typical usage is either:"
19197 msgstr ""
19198
19199 #. type: verbatim
19200 #: ../fish/guestfish.pod:268
19201 #, no-wrap
19202 msgid ""
19203 " guestfish -d myguest -i\n"
19204 "\n"
19205 msgstr ""
19206 " guestfish -d myguest -i\n"
19207 "\n"
19208
19209 #. type: textblock
19210 #: ../fish/guestfish.pod:270
19211 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19212 msgstr ""
19213
19214 #. type: verbatim
19215 #: ../fish/guestfish.pod:272
19216 #, no-wrap
19217 msgid ""
19218 " guestfish --ro -d myguest -i\n"
19219 "\n"
19220 msgstr ""
19221 " guestfish --ro -d myguest -i\n"
19222 "\n"
19223
19224 #. type: textblock
19225 #: ../fish/guestfish.pod:274
19226 msgid "(for active domains, readonly), or specify the block device directly:"
19227 msgstr ""
19228
19229 #. type: verbatim
19230 #: ../fish/guestfish.pod:276
19231 #, no-wrap
19232 msgid ""
19233 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19234 "\n"
19235 msgstr ""
19236 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19237 "\n"
19238
19239 #. type: textblock
19240 #: ../fish/guestfish.pod:278
19241 msgid ""
19242 "Note that the command line syntax changed slightly over older versions of "
19243 "guestfish.  You can still use the old syntax:"
19244 msgstr ""
19245
19246 #. type: verbatim
19247 #: ../fish/guestfish.pod:281
19248 #, no-wrap
19249 msgid ""
19250 " guestfish [--ro] -i disk.img\n"
19251 "\n"
19252 msgstr ""
19253 " guestfish [--ro] -i disk.img\n"
19254 "\n"
19255
19256 #. type: verbatim
19257 #: ../fish/guestfish.pod:283
19258 #, no-wrap
19259 msgid ""
19260 " guestfish [--ro] -i libvirt-domain\n"
19261 "\n"
19262 msgstr ""
19263
19264 #. type: textblock
19265 #: ../fish/guestfish.pod:285
19266 msgid ""
19267 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19268 "then using other commands to mount the filesystems that were found."
19269 msgstr ""
19270
19271 #. type: =item
19272 #: ../fish/guestfish.pod:294
19273 msgid "B<--listen>"
19274 msgstr "B<--listen>"
19275
19276 #. type: textblock
19277 #: ../fish/guestfish.pod:296
19278 msgid ""
19279 "Fork into the background and listen for remote commands.  See section L</"
19280 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19281 msgstr ""
19282
19283 #. type: =item
19284 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19285 msgid "B<--live>"
19286 msgstr "B<--live>"
19287
19288 #. type: textblock
19289 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19290 msgid ""
19291 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19292 "ATTACHING TO RUNNING DAEMONS>)."
19293 msgstr ""
19294
19295 #. type: =item
19296 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19297 msgid "B<-m dev[:mountpoint[:options]]>"
19298 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
19299
19300 #. type: =item
19301 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19302 msgid "B<--mount dev[:mountpoint[:options]]>"
19303 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
19304
19305 #. type: textblock
19306 #: ../fish/guestfish.pod:308
19307 msgid "Mount the named partition or logical volume on the given mountpoint."
19308 msgstr ""
19309
19310 #. type: textblock
19311 #: ../fish/guestfish.pod:310
19312 msgid "If the mountpoint is omitted, it defaults to C</>."
19313 msgstr ""
19314
19315 #. type: textblock
19316 #: ../fish/guestfish.pod:312
19317 msgid "You have to mount something on C</> before most commands will work."
19318 msgstr ""
19319
19320 #. type: textblock
19321 #: ../fish/guestfish.pod:314
19322 msgid ""
19323 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19324 "launched."
19325 msgstr ""
19326
19327 #. type: textblock
19328 #: ../fish/guestfish.pod:317
19329 msgid ""
19330 "If you don't know what filesystems a disk image contains, you can either run "
19331 "guestfish without this option, then list the partitions, filesystems and LVs "
19332 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19333 "commands), or you can use the L<virt-filesystems(1)> program."
19334 msgstr ""
19335
19336 #. type: textblock
19337 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19338 msgid ""
19339 "The third (and rarely used) part of the mount parameter is the list of mount "
19340 "options used to mount the underlying filesystem.  If this is not given, then "
19341 "the mount options are either the empty string or C<ro> (the latter if the "
19342 "I<--ro> flag is used).  By specifying the mount options, you override this "
19343 "default choice.  Probably the only time you would use this is to enable ACLs "
19344 "and/or extended attributes if the filesystem can support them:"
19345 msgstr ""
19346
19347 #. type: verbatim
19348 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19349 #, no-wrap
19350 msgid ""
19351 " -m /dev/sda1:/:acl,user_xattr\n"
19352 "\n"
19353 msgstr ""
19354
19355 #. type: textblock
19356 #: ../fish/guestfish.pod:333
19357 msgid "Using this flag is equivalent to using the C<mount-options> command."
19358 msgstr ""
19359
19360 #. type: =item
19361 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19362 #: ../resize/virt-resize.pod:435
19363 msgid "B<-n>"
19364 msgstr "B<-n>"
19365
19366 #. type: =item
19367 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19368 msgid "B<--no-sync>"
19369 msgstr "B<--no-sync>"
19370
19371 #. type: textblock
19372 #: ../fish/guestfish.pod:339
19373 msgid ""
19374 "Disable autosync.  This is enabled by default.  See the discussion of "
19375 "autosync in the L<guestfs(3)> manpage."
19376 msgstr ""
19377
19378 #. type: =item
19379 #: ../fish/guestfish.pod:342
19380 msgid "B<-N type>"
19381 msgstr "B<-N тип>"
19382
19383 #. type: =item
19384 #: ../fish/guestfish.pod:344
19385 msgid "B<--new type>"
19386 msgstr "B<--new тип>"
19387
19388 #. type: =item
19389 #: ../fish/guestfish.pod:346
19390 msgid "B<-N help>"
19391 msgstr "B<-N help>"
19392
19393 #. type: textblock
19394 #: ../fish/guestfish.pod:348
19395 msgid ""
19396 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19397 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19398 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19399 "IMAGES> below."
19400 msgstr ""
19401
19402 #. type: =item
19403 #: ../fish/guestfish.pod:353
19404 msgid "B<--progress-bars>"
19405 msgstr "B<--progress-bars>"
19406
19407 #. type: textblock
19408 #: ../fish/guestfish.pod:355
19409 msgid "Enable progress bars, even when guestfish is used non-interactively."
19410 msgstr ""
19411
19412 #. type: textblock
19413 #: ../fish/guestfish.pod:357
19414 msgid ""
19415 "Progress bars are enabled by default when guestfish is used as an "
19416 "interactive shell."
19417 msgstr ""
19418
19419 #. type: =item
19420 #: ../fish/guestfish.pod:360
19421 msgid "B<--no-progress-bars>"
19422 msgstr "B<--no-progress-bars>"
19423
19424 #. type: textblock
19425 #: ../fish/guestfish.pod:362
19426 msgid "Disable progress bars."
19427 msgstr ""
19428
19429 #. type: =item
19430 #: ../fish/guestfish.pod:364
19431 msgid "B<--remote[=pid]>"
19432 msgstr "B<--remote[=pid]>"
19433
19434 #. type: textblock
19435 #: ../fish/guestfish.pod:366
19436 msgid ""
19437 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19438 "CONTROL GUESTFISH OVER A SOCKET> below."
19439 msgstr ""
19440
19441 #. type: =item
19442 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19443 #: ../rescue/virt-rescue.pod:189
19444 msgid "B<-r>"
19445 msgstr "B<-r>"
19446
19447 #. type: =item
19448 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19449 #: ../rescue/virt-rescue.pod:191
19450 msgid "B<--ro>"
19451 msgstr "B<--ro>"
19452
19453 #. type: textblock
19454 #: ../fish/guestfish.pod:373
19455 msgid ""
19456 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19457 "mounts are done read-only."
19458 msgstr ""
19459
19460 #. type: textblock
19461 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
19462 msgid ""
19463 "The option must always be used if the disk image or virtual machine might be "
19464 "running, and is generally recommended in cases where you don't need write "
19465 "access to the disk."
19466 msgstr ""
19467
19468 #. type: textblock
19469 #: ../fish/guestfish.pod:380
19470 msgid ""
19471 "Note that prepared disk images created with I<-N> are not affected by this "
19472 "option.  Also commands like C<add> are not affected - you have to specify "
19473 "the C<readonly:true> option explicitly if you need it."
19474 msgstr ""
19475
19476 #. type: textblock
19477 #: ../fish/guestfish.pod:384
19478 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19479 msgstr ""
19480
19481 #. type: =item
19482 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19483 #: ../rescue/virt-rescue.pod:201
19484 msgid "B<--selinux>"
19485 msgstr "B<--selinux>"
19486
19487 #. type: textblock
19488 #: ../fish/guestfish.pod:388
19489 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19490 msgstr ""
19491
19492 #. type: textblock
19493 #: ../fish/guestfish.pod:394
19494 msgid ""
19495 "Enable very verbose messages.  This is particularly useful if you find a bug."
19496 msgstr ""
19497
19498 #. type: textblock
19499 #: ../fish/guestfish.pod:401
19500 msgid "Display the guestfish / libguestfs version number and exit."
19501 msgstr ""
19502
19503 #. type: =item
19504 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19505 #: ../rescue/virt-rescue.pod:231
19506 msgid "B<-w>"
19507 msgstr "B<-w>"
19508
19509 #. type: =item
19510 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19511 #: ../rescue/virt-rescue.pod:233
19512 msgid "B<--rw>"
19513 msgstr "B<--rw>"
19514
19515 #. type: textblock
19516 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19517 msgid ""
19518 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19519 "mounts are done read-write."
19520 msgstr ""
19521
19522 #. type: textblock
19523 #: ../fish/guestfish.pod:410
19524 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19525 msgstr ""
19526
19527 #. type: textblock
19528 #: ../fish/guestfish.pod:414
19529 msgid "Echo each command before executing it."
19530 msgstr ""
19531
19532 #. type: =head1
19533 #: ../fish/guestfish.pod:418
19534 msgid "COMMANDS ON COMMAND LINE"
19535 msgstr ""
19536
19537 #. type: textblock
19538 #: ../fish/guestfish.pod:420
19539 msgid ""
19540 "Any additional (non-option) arguments are treated as commands to execute."
19541 msgstr ""
19542
19543 #. type: textblock
19544 #: ../fish/guestfish.pod:423
19545 msgid ""
19546 "Commands to execute should be separated by a colon (C<:>), where the colon "
19547 "is a separate parameter.  Thus:"
19548 msgstr ""
19549
19550 #. type: verbatim
19551 #: ../fish/guestfish.pod:426
19552 #, no-wrap
19553 msgid ""
19554 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19555 "\n"
19556 msgstr ""
19557
19558 #. type: textblock
19559 #: ../fish/guestfish.pod:428
19560 msgid ""
19561 "If there are no additional arguments, then we enter a shell, either an "
19562 "interactive shell with a prompt (if the input is a terminal) or a non-"
19563 "interactive shell."
19564 msgstr ""
19565
19566 #. type: textblock
19567 #: ../fish/guestfish.pod:432
19568 msgid ""
19569 "In either command line mode or non-interactive shell, the first command that "
19570 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19571 "prompt) if a command fails, you can continue to enter commands."
19572 msgstr ""
19573
19574 #. type: =head1
19575 #: ../fish/guestfish.pod:437
19576 msgid "USING launch (OR run)"
19577 msgstr ""
19578
19579 #. type: textblock
19580 #: ../fish/guestfish.pod:439
19581 msgid ""
19582 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19583 "then launch it, then mount any disks you need, and finally issue actions/"
19584 "commands.  So the general order of the day is:"
19585 msgstr ""
19586
19587 #. type: textblock
19588 #: ../fish/guestfish.pod:447
19589 msgid "add or -a/--add"
19590 msgstr ""
19591
19592 #. type: textblock
19593 #: ../fish/guestfish.pod:451
19594 msgid "launch (aka run)"
19595 msgstr ""
19596
19597 #. type: textblock
19598 #: ../fish/guestfish.pod:455
19599 msgid "mount or -m/--mount"
19600 msgstr ""
19601
19602 #. type: textblock
19603 #: ../fish/guestfish.pod:459
19604 msgid "any other commands"
19605 msgstr ""
19606
19607 #. type: textblock
19608 #: ../fish/guestfish.pod:463
19609 msgid ""
19610 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19611 "guest before mounting or performing any other commands."
19612 msgstr ""
19613
19614 #. type: textblock
19615 #: ../fish/guestfish.pod:466
19616 msgid ""
19617 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19618 "I<--new> options were given then C<run> is done automatically, simply "
19619 "because guestfish can't perform the action you asked for without doing this."
19620 msgstr ""
19621
19622 #. type: =head1
19623 #: ../fish/guestfish.pod:471
19624 msgid "OPENING DISKS FOR READ AND WRITE"
19625 msgstr ""
19626
19627 #. type: textblock
19628 #: ../fish/guestfish.pod:473
19629 msgid ""
19630 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19631 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19632 "I<-i> and I<-m> open disk images read-only or for writing."
19633 msgstr ""
19634
19635 #. type: textblock
19636 #: ../fish/guestfish.pod:478
19637 msgid ""
19638 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19639 "opening disk images supplied on the command line for write.  To open a disk "
19640 "image read-only you have to do I<-a image --ro>."
19641 msgstr ""
19642
19643 #. type: textblock
19644 #: ../fish/guestfish.pod:482
19645 msgid ""
19646 "This matters: If you accidentally open a live VM disk image writable then "
19647 "you will cause irreversible disk corruption."
19648 msgstr ""
19649
19650 #. type: textblock
19651 #: ../fish/guestfish.pod:485
19652 msgid ""
19653 "In a future libguestfs we intend to change the default the other way.  Disk "
19654 "images will be opened read-only.  You will have to either specify "
19655 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19656 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19657 "access for disk images specified by those other command line options."
19658 msgstr ""
19659
19660 #. type: textblock
19661 #: ../fish/guestfish.pod:492
19662 msgid ""
19663 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19664 "which does nothing (it is already the default).  However it is highly "
19665 "recommended that you use this option to indicate that you need write access, "
19666 "and prepare your scripts for the day when this option will be required for "
19667 "write access."
19668 msgstr ""
19669
19670 #. type: textblock
19671 #: ../fish/guestfish.pod:498
19672 msgid ""
19673 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19674 "other libguestfs program apart from guestfish and guestmount."
19675 msgstr ""
19676
19677 #. type: =head1
19678 #: ../fish/guestfish.pod:501
19679 msgid "QUOTING"
19680 msgstr ""
19681
19682 #. type: textblock
19683 #: ../fish/guestfish.pod:503
19684 msgid ""
19685 "You can quote ordinary parameters using either single or double quotes.  For "
19686 "example:"
19687 msgstr ""
19688
19689 #. type: verbatim
19690 #: ../fish/guestfish.pod:506
19691 #, no-wrap
19692 msgid ""
19693 " add \"file with a space.img\"\n"
19694 "\n"
19695 msgstr ""
19696
19697 #. type: verbatim
19698 #: ../fish/guestfish.pod:508
19699 #, no-wrap
19700 msgid ""
19701 " rm '/file name'\n"
19702 "\n"
19703 msgstr ""
19704
19705 #. type: verbatim
19706 #: ../fish/guestfish.pod:510
19707 #, no-wrap
19708 msgid ""
19709 " rm '/\"'\n"
19710 "\n"
19711 msgstr ""
19712
19713 #. type: textblock
19714 #: ../fish/guestfish.pod:512
19715 msgid ""
19716 "A few commands require a list of strings to be passed.  For these, use a "
19717 "whitespace-separated list, enclosed in quotes.  Strings containing "
19718 "whitespace to be passed through must be enclosed in single quotes.  A "
19719 "literal single quote must be escaped with a backslash."
19720 msgstr ""
19721
19722 #. type: verbatim
19723 #: ../fish/guestfish.pod:517
19724 #, no-wrap
19725 msgid ""
19726 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19727 " command \"/bin/echo 'foo      bar'\"\n"
19728 " command \"/bin/echo \\'foo\\'\"\n"
19729 "\n"
19730 msgstr ""
19731
19732 #. type: =head2
19733 #: ../fish/guestfish.pod:521
19734 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19735 msgstr ""
19736
19737 #. type: textblock
19738 #: ../fish/guestfish.pod:523
19739 msgid ""
19740 "In double-quoted arguments (only) use backslash to insert special characters:"
19741 msgstr ""
19742
19743 #. type: =item
19744 #: ../fish/guestfish.pod:528
19745 msgid "C<\\a>"
19746 msgstr "C<\\a>"
19747
19748 #. type: textblock
19749 #: ../fish/guestfish.pod:530
19750 msgid "Alert (bell) character."
19751 msgstr "Символ гудка (дзвінка)."
19752
19753 #. type: =item
19754 #: ../fish/guestfish.pod:532
19755 msgid "C<\\b>"
19756 msgstr "C<\\b>"
19757
19758 #. type: textblock
19759 #: ../fish/guestfish.pod:534
19760 msgid "Backspace character."
19761 msgstr ""
19762
19763 #. type: =item
19764 #: ../fish/guestfish.pod:536
19765 msgid "C<\\f>"
19766 msgstr "C<\\f>"
19767
19768 #. type: textblock
19769 #: ../fish/guestfish.pod:538
19770 msgid "Form feed character."
19771 msgstr ""
19772
19773 #. type: =item
19774 #: ../fish/guestfish.pod:540
19775 msgid "C<\\n>"
19776 msgstr "C<\\n>"
19777
19778 #. type: textblock
19779 #: ../fish/guestfish.pod:542
19780 msgid "Newline character."
19781 msgstr ""
19782
19783 #. type: =item
19784 #: ../fish/guestfish.pod:544
19785 msgid "C<\\r>"
19786 msgstr "C<\\r>"
19787
19788 #. type: textblock
19789 #: ../fish/guestfish.pod:546
19790 msgid "Carriage return character."
19791 msgstr "Символ повернення каретки."
19792
19793 #. type: =item
19794 #: ../fish/guestfish.pod:548
19795 msgid "C<\\t>"
19796 msgstr "C<\\t>"
19797
19798 #. type: textblock
19799 #: ../fish/guestfish.pod:550
19800 msgid "Horizontal tab character."
19801 msgstr "Символ горизонтальної табуляції"
19802
19803 #. type: =item
19804 #: ../fish/guestfish.pod:552
19805 msgid "C<\\v>"
19806 msgstr "C<\\v>"
19807
19808 #. type: textblock
19809 #: ../fish/guestfish.pod:554
19810 msgid "Vertical tab character."
19811 msgstr "Символ вертикальної табуляції."
19812
19813 #. type: =item
19814 #: ../fish/guestfish.pod:556
19815 msgid "C<\\\">"
19816 msgstr "C<\\\">"
19817
19818 #. type: textblock
19819 #: ../fish/guestfish.pod:558
19820 msgid "A literal double quote character."
19821 msgstr ""
19822
19823 #. type: =item
19824 #: ../fish/guestfish.pod:560
19825 msgid "C<\\ooo>"
19826 msgstr "C<\\ooo>"
19827
19828 #. type: textblock
19829 #: ../fish/guestfish.pod:562
19830 msgid ""
19831 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19832 "(unlike C)."
19833 msgstr ""
19834
19835 #. type: =item
19836 #: ../fish/guestfish.pod:565
19837 msgid "C<\\xhh>"
19838 msgstr "C<\\xhh>"
19839
19840 #. type: textblock
19841 #: ../fish/guestfish.pod:567
19842 msgid ""
19843 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19844 msgstr ""
19845
19846 #. type: textblock
19847 #: ../fish/guestfish.pod:570
19848 msgid ""
19849 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19850 "strings."
19851 msgstr ""
19852
19853 #. type: =item
19854 #: ../fish/guestfish.pod:573
19855 msgid "C<\\\\>"
19856 msgstr "C<\\\\>"
19857
19858 #. type: textblock
19859 #: ../fish/guestfish.pod:575
19860 msgid "A literal backslash character."
19861 msgstr ""
19862
19863 #. type: =head1
19864 #: ../fish/guestfish.pod:579
19865 msgid "OPTIONAL ARGUMENTS"
19866 msgstr ""
19867
19868 #. type: textblock
19869 #: ../fish/guestfish.pod:581
19870 msgid ""
19871 "Some commands take optional arguments.  These arguments appear in this "
19872 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19873 msgstr ""
19874
19875 #. type: verbatim
19876 #: ../fish/guestfish.pod:585
19877 #, no-wrap
19878 msgid ""
19879 " add-drive-opts filename\n"
19880 "\n"
19881 msgstr ""
19882
19883 #. type: verbatim
19884 #: ../fish/guestfish.pod:587
19885 #, no-wrap
19886 msgid ""
19887 " add-drive-opts filename readonly:true\n"
19888 "\n"
19889 msgstr ""
19890
19891 #. type: verbatim
19892 #: ../fish/guestfish.pod:589
19893 #, no-wrap
19894 msgid ""
19895 " add-drive-opts filename format:qcow2 readonly:false\n"
19896 "\n"
19897 msgstr ""
19898
19899 #. type: textblock
19900 #: ../fish/guestfish.pod:591
19901 msgid ""
19902 "Each optional argument can appear at most once.  All optional arguments must "
19903 "appear after the required ones."
19904 msgstr ""
19905
19906 #. type: =head1
19907 #: ../fish/guestfish.pod:594
19908 msgid "NUMBERS"
19909 msgstr "ЧИСЛА"
19910
19911 #. type: textblock
19912 #: ../fish/guestfish.pod:596
19913 msgid ""
19914 "This section applies to all commands which can take integers as parameters."
19915 msgstr ""
19916
19917 #. type: =head2
19918 #: ../fish/guestfish.pod:599
19919 msgid "SIZE SUFFIX"
19920 msgstr ""
19921
19922 #. type: textblock
19923 #: ../fish/guestfish.pod:601
19924 msgid ""
19925 "When the command takes a parameter measured in bytes, you can use one of the "
19926 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19927 msgstr ""
19928
19929 #. type: =item
19930 #: ../fish/guestfish.pod:607
19931 msgid "B<k> or B<K> or B<KiB>"
19932 msgstr "B<k>, B<K> або B<KiB>"
19933
19934 #. type: textblock
19935 #: ../fish/guestfish.pod:609
19936 msgid "The size in kilobytes (multiplied by 1024)."
19937 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
19938
19939 #. type: =item
19940 #: ../fish/guestfish.pod:611
19941 msgid "B<KB>"
19942 msgstr "B<KB>"
19943
19944 #. type: textblock
19945 #: ../fish/guestfish.pod:613
19946 msgid "The size in SI 1000 byte units."
19947 msgstr "Розмір у одиницях СІ: 1000 байтів."
19948
19949 #. type: =item
19950 #: ../fish/guestfish.pod:615
19951 msgid "B<M> or B<MiB>"
19952 msgstr "B<M> або B<MiB>"
19953
19954 #. type: textblock
19955 #: ../fish/guestfish.pod:617
19956 msgid "The size in megabytes (multiplied by 1048576)."
19957 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
19958
19959 #. type: =item
19960 #: ../fish/guestfish.pod:619
19961 msgid "B<MB>"
19962 msgstr "B<MB>"
19963
19964 #. type: textblock
19965 #: ../fish/guestfish.pod:621
19966 msgid "The size in SI 1000000 byte units."
19967 msgstr "Розмір у одиницях СІ: 1000000 байтів."
19968
19969 #. type: =item
19970 #: ../fish/guestfish.pod:623
19971 msgid "B<G> or B<GiB>"
19972 msgstr "B<G> або B<GiB>"
19973
19974 #. type: textblock
19975 #: ../fish/guestfish.pod:625
19976 msgid "The size in gigabytes (multiplied by 2**30)."
19977 msgstr "Розмір у гігабайтах (з множником 2**30)."
19978
19979 #. type: =item
19980 #: ../fish/guestfish.pod:627
19981 msgid "B<GB>"
19982 msgstr "B<GB>"
19983
19984 #. type: textblock
19985 #: ../fish/guestfish.pod:629
19986 msgid "The size in SI 10**9 byte units."
19987 msgstr "Розмір у одиницях СІ: 10**9 байтів."
19988
19989 #. type: =item
19990 #: ../fish/guestfish.pod:631
19991 msgid "B<T> or B<TiB>"
19992 msgstr "B<T> або B<TiB>"
19993
19994 #. type: textblock
19995 #: ../fish/guestfish.pod:633
19996 msgid "The size in terabytes (multiplied by 2**40)."
19997 msgstr "Розмір у терабайтах (з множником 2**40)."
19998
19999 #. type: =item
20000 #: ../fish/guestfish.pod:635
20001 msgid "B<TB>"
20002 msgstr "B<TB>"
20003
20004 #. type: textblock
20005 #: ../fish/guestfish.pod:637
20006 msgid "The size in SI 10**12 byte units."
20007 msgstr "Розмір у одиницях СІ: 10**12 байтів."
20008
20009 #. type: =item
20010 #: ../fish/guestfish.pod:639
20011 msgid "B<P> or B<PiB>"
20012 msgstr "B<P> або B<PiB>"
20013
20014 #. type: textblock
20015 #: ../fish/guestfish.pod:641
20016 msgid "The size in petabytes (multiplied by 2**50)."
20017 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
20018
20019 #. type: =item
20020 #: ../fish/guestfish.pod:643
20021 msgid "B<PB>"
20022 msgstr "B<PB>"
20023
20024 #. type: textblock
20025 #: ../fish/guestfish.pod:645
20026 msgid "The size in SI 10**15 byte units."
20027 msgstr "Розмір у одиницях СІ: 10**15 байтів."
20028
20029 #. type: =item
20030 #: ../fish/guestfish.pod:647
20031 msgid "B<E> or B<EiB>"
20032 msgstr "B<E> або B<EiB>"
20033
20034 #. type: textblock
20035 #: ../fish/guestfish.pod:649
20036 msgid "The size in exabytes (multiplied by 2**60)."
20037 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
20038
20039 #. type: =item
20040 #: ../fish/guestfish.pod:651
20041 msgid "B<EB>"
20042 msgstr "B<EB>"
20043
20044 #. type: textblock
20045 #: ../fish/guestfish.pod:653
20046 msgid "The size in SI 10**18 byte units."
20047 msgstr "Розмір у одиницях СІ: 10**18 байтів."
20048
20049 #. type: =item
20050 #: ../fish/guestfish.pod:655
20051 msgid "B<Z> or B<ZiB>"
20052 msgstr "B<Z> або B<ZiB>"
20053
20054 #. type: textblock
20055 #: ../fish/guestfish.pod:657
20056 msgid "The size in zettabytes (multiplied by 2**70)."
20057 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
20058
20059 #. type: =item
20060 #: ../fish/guestfish.pod:659
20061 msgid "B<ZB>"
20062 msgstr "B<ZB>"
20063
20064 #. type: textblock
20065 #: ../fish/guestfish.pod:661
20066 msgid "The size in SI 10**21 byte units."
20067 msgstr "Розмір у одиницях СІ: 10**21 байтів."
20068
20069 #. type: =item
20070 #: ../fish/guestfish.pod:663
20071 msgid "B<Y> or B<YiB>"
20072 msgstr "B<Y> або B<YiB>"
20073
20074 #. type: textblock
20075 #: ../fish/guestfish.pod:665
20076 msgid "The size in yottabytes (multiplied by 2**80)."
20077 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
20078
20079 #. type: =item
20080 #: ../fish/guestfish.pod:667
20081 msgid "B<YB>"
20082 msgstr "B<YB>"
20083
20084 #. type: textblock
20085 #: ../fish/guestfish.pod:669
20086 msgid "The size in SI 10**24 byte units."
20087 msgstr "Розмір у одиницях СІ: 10**24 байтів."
20088
20089 #. type: verbatim
20090 #: ../fish/guestfish.pod:675
20091 #, no-wrap
20092 msgid ""
20093 " truncate-size /file 1G\n"
20094 "\n"
20095 msgstr ""
20096
20097 #. type: textblock
20098 #: ../fish/guestfish.pod:677
20099 msgid "would truncate the file to 1 gigabyte."
20100 msgstr ""
20101
20102 #. type: textblock
20103 #: ../fish/guestfish.pod:679
20104 msgid ""
20105 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20106 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20107 "suffix will probably not do what you expect."
20108 msgstr ""
20109
20110 #. type: =head2
20111 #: ../fish/guestfish.pod:683
20112 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../fish/guestfish.pod:685
20117 msgid ""
20118 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20119 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20120 msgstr ""
20121
20122 #. type: verbatim
20123 #: ../fish/guestfish.pod:688
20124 #, no-wrap
20125 msgid ""
20126 " 1234      decimal number 1234\n"
20127 " 02322     octal number, equivalent to decimal 1234\n"
20128 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20129 "\n"
20130 msgstr ""
20131
20132 #. type: textblock
20133 #: ../fish/guestfish.pod:692
20134 msgid ""
20135 "When using the C<chmod> command, you almost always want to specify an octal "
20136 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20137 "L<chmod(1)> program):"
20138 msgstr ""
20139
20140 #. type: verbatim
20141 #: ../fish/guestfish.pod:696
20142 #, no-wrap
20143 msgid ""
20144 " chmod 0777 /public  # OK\n"
20145 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20146 "\n"
20147 msgstr ""
20148
20149 #. type: textblock
20150 #: ../fish/guestfish.pod:699
20151 msgid ""
20152 "Commands that return numbers usually print them in decimal, but some "
20153 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20154 "octal, preceeded by C<0>)."
20155 msgstr ""
20156
20157 #. type: =head1
20158 #: ../fish/guestfish.pod:703
20159 msgid "WILDCARDS AND GLOBBING"
20160 msgstr ""
20161
20162 #. type: textblock
20163 #: ../fish/guestfish.pod:705
20164 msgid ""
20165 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20166 "(globbing) by default.  So for example the following will not do what you "
20167 "expect:"
20168 msgstr ""
20169
20170 #. type: verbatim
20171 #: ../fish/guestfish.pod:709
20172 #, no-wrap
20173 msgid ""
20174 " rm-rf /home/*\n"
20175 "\n"
20176 msgstr ""
20177
20178 #. type: textblock
20179 #: ../fish/guestfish.pod:711
20180 msgid ""
20181 "Assuming you don't have a directory called literally C</home/*> then the "
20182 "above command will return an error."
20183 msgstr ""
20184
20185 #. type: textblock
20186 #: ../fish/guestfish.pod:714
20187 msgid "To perform wildcard expansion, use the C<glob> command."
20188 msgstr ""
20189
20190 #. type: verbatim
20191 #: ../fish/guestfish.pod:716
20192 #, no-wrap
20193 msgid ""
20194 " glob rm-rf /home/*\n"
20195 "\n"
20196 msgstr ""
20197
20198 #. type: textblock
20199 #: ../fish/guestfish.pod:718
20200 msgid ""
20201 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20202 "many times), equivalent to:"
20203 msgstr ""
20204
20205 #. type: verbatim
20206 #: ../fish/guestfish.pod:721
20207 #, no-wrap
20208 msgid ""
20209 " rm-rf /home/jim\n"
20210 " rm-rf /home/joe\n"
20211 " rm-rf /home/mary\n"
20212 "\n"
20213 msgstr ""
20214
20215 #. type: textblock
20216 #: ../fish/guestfish.pod:725
20217 msgid "C<glob> only works on simple guest paths and not on device names."
20218 msgstr ""
20219
20220 #. type: textblock
20221 #: ../fish/guestfish.pod:727
20222 msgid ""
20223 "If you have several parameters, each containing a wildcard, then glob will "
20224 "perform a Cartesian product."
20225 msgstr ""
20226
20227 #. type: =head1
20228 #: ../fish/guestfish.pod:730
20229 msgid "COMMENTS"
20230 msgstr "КОМЕНТАРІ"
20231
20232 #. type: textblock
20233 #: ../fish/guestfish.pod:732
20234 msgid ""
20235 "Any line which starts with a I<#> character is treated as a comment and "
20236 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20237 "a command.  For example:"
20238 msgstr ""
20239
20240 #. type: verbatim
20241 #: ../fish/guestfish.pod:736
20242 #, no-wrap
20243 msgid ""
20244 " # this is a comment\n"
20245 "         # this is a comment\n"
20246 " foo # NOT a comment\n"
20247 "\n"
20248 msgstr ""
20249
20250 #. type: textblock
20251 #: ../fish/guestfish.pod:740
20252 msgid "Blank lines are also ignored."
20253 msgstr ""
20254
20255 #. type: =head1
20256 #: ../fish/guestfish.pod:742
20257 msgid "RUNNING COMMANDS LOCALLY"
20258 msgstr ""
20259
20260 #. type: textblock
20261 #: ../fish/guestfish.pod:744
20262 msgid ""
20263 "Any line which starts with a I<!> character is treated as a command sent to "
20264 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20265 msgstr ""
20266
20267 #. type: verbatim
20268 #: ../fish/guestfish.pod:748
20269 #, no-wrap
20270 msgid ""
20271 " !mkdir local\n"
20272 " tgz-out /remote local/remote-data.tar.gz\n"
20273 "\n"
20274 msgstr ""
20275
20276 #. type: textblock
20277 #: ../fish/guestfish.pod:751
20278 msgid ""
20279 "will create a directory C<local> on the host, and then export the contents "
20280 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20281 "(See C<tgz-out>)."
20282 msgstr ""
20283
20284 #. type: textblock
20285 #: ../fish/guestfish.pod:755
20286 msgid ""
20287 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20288 "effect, due to the way that subprocesses work in Unix."
20289 msgstr ""
20290
20291 #. type: =head2
20292 #: ../fish/guestfish.pod:758
20293 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20294 msgstr ""
20295
20296 #. type: textblock
20297 #: ../fish/guestfish.pod:760
20298 msgid ""
20299 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20300 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20301 "and executed as guestfish commands."
20302 msgstr ""
20303
20304 #. type: textblock
20305 #: ../fish/guestfish.pod:764
20306 msgid ""
20307 "Thus you can use shell script to construct arbitrary guestfish commands "
20308 "which are then parsed by guestfish."
20309 msgstr ""
20310
20311 #. type: textblock
20312 #: ../fish/guestfish.pod:767
20313 msgid ""
20314 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20315 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20316 "if we use a shell script to create the guestfish commands for us:"
20317 msgstr ""
20318
20319 #. type: verbatim
20320 #: ../fish/guestfish.pod:772
20321 #, no-wrap
20322 msgid ""
20323 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20324 "\n"
20325 msgstr ""
20326
20327 #. type: textblock
20328 #: ../fish/guestfish.pod:774
20329 msgid "or with names like C</foo.001>:"
20330 msgstr ""
20331
20332 #. type: verbatim
20333 #: ../fish/guestfish.pod:776
20334 #, no-wrap
20335 msgid ""
20336 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20337 "\n"
20338 msgstr ""
20339
20340 #. type: textblock
20341 #: ../fish/guestfish.pod:778
20342 msgid ""
20343 "When using guestfish interactively it can be helpful to just run the shell "
20344 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20345 "ordinary I<!> local command), see what guestfish commands it would run, and "
20346 "when you are happy with those prepend the C<E<lt>> character to run the "
20347 "guestfish commands for real."
20348 msgstr ""
20349
20350 #. type: =head1
20351 #: ../fish/guestfish.pod:784
20352 msgid "PIPES"
20353 msgstr "КАНАЛИ"
20354
20355 #. type: textblock
20356 #: ../fish/guestfish.pod:786
20357 msgid ""
20358 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20359 "command (a guestfish command) to the second command (any host command).  For "
20360 "example:"
20361 msgstr ""
20362
20363 #. type: verbatim
20364 #: ../fish/guestfish.pod:790
20365 #, no-wrap
20366 msgid ""
20367 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20368 "\n"
20369 msgstr ""
20370
20371 #. type: textblock
20372 #: ../fish/guestfish.pod:792
20373 msgid ""
20374 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20375 "program).  The above command would list all accounts in the guest filesystem "
20376 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20377 msgstr ""
20378
20379 #. type: verbatim
20380 #: ../fish/guestfish.pod:797
20381 #, no-wrap
20382 msgid ""
20383 " hexdump /bin/ls | head\n"
20384 " list-devices | tail -1\n"
20385 " tgz-out / - | tar ztf -\n"
20386 "\n"
20387 msgstr ""
20388
20389 #. type: textblock
20390 #: ../fish/guestfish.pod:801
20391 msgid ""
20392 "The space before the pipe symbol is required, any space after the pipe "
20393 "symbol is optional.  Everything after the pipe symbol is just passed "
20394 "straight to the host shell, so it can contain redirections, globs and "
20395 "anything else that makes sense on the host side."
20396 msgstr ""
20397
20398 #. type: textblock
20399 #: ../fish/guestfish.pod:806
20400 msgid ""
20401 "To use a literal argument which begins with a pipe symbol, you have to quote "
20402 "it, eg:"
20403 msgstr ""
20404
20405 #. type: verbatim
20406 #: ../fish/guestfish.pod:809
20407 #, no-wrap
20408 msgid ""
20409 " echo \"|\"\n"
20410 "\n"
20411 msgstr ""
20412
20413 #. type: =head1
20414 #: ../fish/guestfish.pod:811
20415 msgid "HOME DIRECTORIES"
20416 msgstr ""
20417
20418 #. type: textblock
20419 #: ../fish/guestfish.pod:813
20420 msgid ""
20421 "If a parameter starts with the character C<~> then the tilde may be expanded "
20422 "as a home directory path (either C<~> for the current user's home directory, "
20423 "or C<~user> for another user)."
20424 msgstr ""
20425
20426 #. type: textblock
20427 #: ../fish/guestfish.pod:817
20428 msgid ""
20429 "Note that home directory expansion happens for users known I<on the host>, "
20430 "not in the guest filesystem."
20431 msgstr ""
20432
20433 #. type: textblock
20434 #: ../fish/guestfish.pod:820
20435 msgid ""
20436 "To use a literal argument which begins with a tilde, you have to quote it, "
20437 "eg:"
20438 msgstr ""
20439
20440 #. type: verbatim
20441 #: ../fish/guestfish.pod:823
20442 #, no-wrap
20443 msgid ""
20444 " echo \"~\"\n"
20445 "\n"
20446 msgstr ""
20447
20448 #. type: =head2
20449 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20450 msgid "ENCRYPTED DISKS"
20451 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20452
20453 #. type: textblock
20454 #: ../fish/guestfish.pod:827
20455 msgid ""
20456 "Libguestfs has some support for Linux guests encrypted according to the "
20457 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20458 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
20459 "LUKS is supported."
20460 msgstr ""
20461
20462 #. type: textblock
20463 #: ../fish/guestfish.pod:832
20464 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20465 msgstr ""
20466
20467 #. type: verbatim
20468 #: ../fish/guestfish.pod:834
20469 #, no-wrap
20470 msgid ""
20471 " ><fs> vfs-type /dev/sda2\n"
20472 " crypto_LUKS\n"
20473 "\n"
20474 msgstr ""
20475
20476 #. type: textblock
20477 #: ../fish/guestfish.pod:837
20478 msgid ""
20479 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20480 "device called C</dev/mapper/luksdev>."
20481 msgstr ""
20482
20483 #. type: verbatim
20484 #: ../fish/guestfish.pod:840
20485 #, no-wrap
20486 msgid ""
20487 " ><fs> luks-open /dev/sda2 luksdev\n"
20488 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20489 "\n"
20490 msgstr ""
20491
20492 #. type: textblock
20493 #: ../fish/guestfish.pod:843
20494 msgid ""
20495 "Finally you have to tell LVM to scan for volume groups on the newly created "
20496 "mapper device:"
20497 msgstr ""
20498
20499 #. type: verbatim
20500 #: ../fish/guestfish.pod:846
20501 #, no-wrap
20502 msgid ""
20503 " vgscan\n"
20504 " vg-activate-all true\n"
20505 "\n"
20506 msgstr ""
20507
20508 #. type: textblock
20509 #: ../fish/guestfish.pod:849
20510 msgid "The logical volume(s) can now be mounted in the usual way."
20511 msgstr ""
20512
20513 #. type: textblock
20514 #: ../fish/guestfish.pod:851
20515 msgid ""
20516 "Before closing a LUKS device you must unmount any logical volumes on it and "
20517 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20518 "one.  Then you can close the mapper device:"
20519 msgstr ""
20520
20521 #. type: verbatim
20522 #: ../fish/guestfish.pod:855
20523 #, no-wrap
20524 msgid ""
20525 " vg-activate false /dev/VG\n"
20526 " luks-close /dev/mapper/luksdev\n"
20527 "\n"
20528 msgstr ""
20529
20530 #. type: textblock
20531 #: ../fish/guestfish.pod:860
20532 msgid ""
20533 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20534 "letters and paths (with some limitations).  The following commands are "
20535 "equivalent:"
20536 msgstr ""
20537
20538 #. type: verbatim
20539 #: ../fish/guestfish.pod:864
20540 #, no-wrap
20541 msgid ""
20542 " file /WINDOWS/system32/config/system.LOG\n"
20543 "\n"
20544 msgstr ""
20545
20546 #. type: verbatim
20547 #: ../fish/guestfish.pod:866
20548 #, no-wrap
20549 msgid ""
20550 " file win:\\windows\\system32\\config\\system.log\n"
20551 "\n"
20552 msgstr ""
20553
20554 #. type: verbatim
20555 #: ../fish/guestfish.pod:868
20556 #, no-wrap
20557 msgid ""
20558 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20559 "\n"
20560 msgstr ""
20561
20562 #. type: textblock
20563 #: ../fish/guestfish.pod:870
20564 msgid ""
20565 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20566 "where the drive is mounted, prepending that to the path, changing all "
20567 "backslash characters to forward slash, then resolving the result using L</"
20568 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
20569 "the parameter might be rewritten like this:"
20570 msgstr ""
20571
20572 #. type: verbatim
20573 #: ../fish/guestfish.pod:876
20574 #, no-wrap
20575 msgid ""
20576 " win:e:\\foo\\bar => /e/FOO/bar\n"
20577 "\n"
20578 msgstr ""
20579
20580 #. type: textblock
20581 #: ../fish/guestfish.pod:878
20582 msgid "This only works in argument positions that expect a path."
20583 msgstr ""
20584
20585 #. type: =head1
20586 #: ../fish/guestfish.pod:880
20587 msgid "UPLOADING AND DOWNLOADING FILES"
20588 msgstr ""
20589
20590 #. type: textblock
20591 #: ../fish/guestfish.pod:882
20592 msgid ""
20593 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20594 "others which upload from or download to a local file, you can use the "
20595 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20596 msgstr ""
20597
20598 #. type: verbatim
20599 #: ../fish/guestfish.pod:886
20600 #, no-wrap
20601 msgid ""
20602 " upload - /foo\n"
20603 "\n"
20604 msgstr ""
20605
20606 #. type: textblock
20607 #: ../fish/guestfish.pod:888
20608 msgid ""
20609 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20610 msgstr ""
20611
20612 #. type: verbatim
20613 #: ../fish/guestfish.pod:891
20614 #, no-wrap
20615 msgid ""
20616 " tar-out /etc - | tar tf -\n"
20617 "\n"
20618 msgstr ""
20619
20620 #. type: textblock
20621 #: ../fish/guestfish.pod:893
20622 msgid ""
20623 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20624 "command (see L</PIPES>)."
20625 msgstr ""
20626
20627 #. type: textblock
20628 #: ../fish/guestfish.pod:896
20629 msgid ""
20630 "When using C<-> to read from stdin, the input is read up to the end of "
20631 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20632 "some arbitrary end marker:"
20633 msgstr ""
20634
20635 #. type: verbatim
20636 #: ../fish/guestfish.pod:900
20637 #, no-wrap
20638 msgid ""
20639 " upload -<<END /foo\n"
20640 " input line 1\n"
20641 " input line 2\n"
20642 " input line 3\n"
20643 " END\n"
20644 "\n"
20645 msgstr ""
20646
20647 #. type: textblock
20648 #: ../fish/guestfish.pod:906
20649 msgid ""
20650 "Any string of characters can be used instead of C<END>.  The end marker must "
20651 "appear on a line of its own, without any preceeding or following characters "
20652 "(not even spaces)."
20653 msgstr ""
20654
20655 #. type: textblock
20656 #: ../fish/guestfish.pod:910
20657 msgid ""
20658 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20659 "upload local files (so-called \"FileIn\" parameters in the generator)."
20660 msgstr ""
20661
20662 #. type: =head1
20663 #: ../fish/guestfish.pod:913
20664 msgid "EXIT ON ERROR BEHAVIOUR"
20665 msgstr ""
20666
20667 #. type: textblock
20668 #: ../fish/guestfish.pod:915
20669 msgid ""
20670 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20671 "taking commands from a human over a tty), and will exit on the first error "
20672 "in non-interactive mode (scripts, commands given on the command line)."
20673 msgstr ""
20674
20675 #. type: textblock
20676 #: ../fish/guestfish.pod:920
20677 msgid ""
20678 "If you prefix a command with a I<-> character, then that command will not "
20679 "cause guestfish to exit, even if that (one) command returns an error."
20680 msgstr ""
20681
20682 #. type: =head1
20683 #: ../fish/guestfish.pod:924
20684 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20685 msgstr ""
20686
20687 #. type: textblock
20688 #: ../fish/guestfish.pod:926
20689 msgid ""
20690 "Guestfish can be remote-controlled over a socket.  This is useful "
20691 "particularly in shell scripts where you want to make several different "
20692 "changes to a filesystem, but you don't want the overhead of starting up a "
20693 "guestfish process each time."
20694 msgstr ""
20695
20696 #. type: textblock
20697 #: ../fish/guestfish.pod:931
20698 msgid "Start a guestfish server process using:"
20699 msgstr ""
20700
20701 #. type: verbatim
20702 #: ../fish/guestfish.pod:933
20703 #, no-wrap
20704 msgid ""
20705 " eval \"`guestfish --listen`\"\n"
20706 "\n"
20707 msgstr ""
20708
20709 #. type: textblock
20710 #: ../fish/guestfish.pod:935
20711 msgid "and then send it commands by doing:"
20712 msgstr ""
20713
20714 #. type: verbatim
20715 #: ../fish/guestfish.pod:937
20716 #, no-wrap
20717 msgid ""
20718 " guestfish --remote cmd [...]\n"
20719 "\n"
20720 msgstr ""
20721
20722 #. type: textblock
20723 #: ../fish/guestfish.pod:939
20724 msgid "To cause the server to exit, send it the exit command:"
20725 msgstr ""
20726
20727 #. type: textblock
20728 #: ../fish/guestfish.pod:943
20729 msgid ""
20730 "Note that the server will normally exit if there is an error in a command.  "
20731 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20732 "BEHAVIOUR>."
20733 msgstr ""
20734
20735 #. type: =head2
20736 #: ../fish/guestfish.pod:947
20737 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20738 msgstr ""
20739
20740 #. type: textblock
20741 #: ../fish/guestfish.pod:949
20742 msgid ""
20743 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20744 "is how the I<--remote> option knows where to send the commands.  You can "
20745 "have several guestfish listener processes running using:"
20746 msgstr ""
20747
20748 #. type: verbatim
20749 #: ../fish/guestfish.pod:953
20750 #, no-wrap
20751 msgid ""
20752 " eval \"`guestfish --listen`\"\n"
20753 " pid1=$GUESTFISH_PID\n"
20754 " eval \"`guestfish --listen`\"\n"
20755 " pid2=$GUESTFISH_PID\n"
20756 " ...\n"
20757 " guestfish --remote=$pid1 cmd\n"
20758 " guestfish --remote=$pid2 cmd\n"
20759 "\n"
20760 msgstr ""
20761
20762 #. type: =head2
20763 #: ../fish/guestfish.pod:961
20764 msgid "REMOTE CONTROL AND CSH"
20765 msgstr ""
20766
20767 #. type: textblock
20768 #: ../fish/guestfish.pod:963
20769 msgid ""
20770 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20771 "option:"
20772 msgstr ""
20773
20774 #. type: verbatim
20775 #: ../fish/guestfish.pod:966
20776 #, no-wrap
20777 msgid ""
20778 " eval \"`guestfish --listen --csh`\"\n"
20779 "\n"
20780 msgstr ""
20781
20782 #. type: =head2
20783 #: ../fish/guestfish.pod:968
20784 msgid "REMOTE CONTROL DETAILS"
20785 msgstr ""
20786
20787 #. type: textblock
20788 #: ../fish/guestfish.pod:970
20789 msgid ""
20790 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20791 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20792 "and C<$PID> is the process ID of the server."
20793 msgstr ""
20794
20795 #. type: textblock
20796 #: ../fish/guestfish.pod:974
20797 msgid "Guestfish client and server versions must match exactly."
20798 msgstr ""
20799
20800 #. type: =head2
20801 #: ../fish/guestfish.pod:976
20802 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20803 msgstr ""
20804
20805 #. type: textblock
20806 #: ../fish/guestfish.pod:978
20807 msgid ""
20808 "From Bash, you can use the following code which creates a guestfish "
20809 "instance, correctly quotes the command line, handles failure to start, and "
20810 "cleans up guestfish when the script exits:"
20811 msgstr ""
20812
20813 #. type: verbatim
20814 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20815 #, no-wrap
20816 msgid ""
20817 " #!/bin/bash -\n"
20818 " \n"
20819 msgstr ""
20820
20821 #. type: verbatim
20822 #: ../fish/guestfish.pod:986
20823 #, no-wrap
20824 msgid ""
20825 " guestfish[0]=\"guestfish\"\n"
20826 " guestfish[1]=\"--listen\"\n"
20827 " guestfish[2]=\"--ro\"\n"
20828 " guestfish[3]=\"-a\"\n"
20829 " guestfish[4]=\"disk.img\"\n"
20830 " \n"
20831 msgstr ""
20832
20833 #. type: verbatim
20834 #: ../fish/guestfish.pod:992
20835 #, no-wrap
20836 msgid ""
20837 " GUESTFISH_PID=\n"
20838 " eval $(\"${guestfish[@]}\")\n"
20839 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20840 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20841 "     exit 1\n"
20842 " fi\n"
20843 " \n"
20844 msgstr ""
20845
20846 #. type: verbatim
20847 #: ../fish/guestfish.pod:999
20848 #, no-wrap
20849 msgid ""
20850 " cleanup_guestfish ()\n"
20851 " {\n"
20852 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20853 " }\n"
20854 " trap cleanup_guestfish EXIT ERR\n"
20855 " \n"
20856 msgstr ""
20857
20858 #. type: verbatim
20859 #: ../fish/guestfish.pod:1005
20860 #, no-wrap
20861 msgid ""
20862 " guestfish --remote -- run\n"
20863 " \n"
20864 msgstr ""
20865
20866 #. type: verbatim
20867 #: ../fish/guestfish.pod:1007
20868 #, no-wrap
20869 msgid ""
20870 " # ...\n"
20871 "\n"
20872 msgstr ""
20873
20874 #. type: =head2
20875 #: ../fish/guestfish.pod:1009
20876 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20877 msgstr ""
20878
20879 #. type: textblock
20880 #: ../fish/guestfish.pod:1011
20881 msgid ""
20882 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20883 "context hangs, ie. don't do (note the backquotes):"
20884 msgstr ""
20885
20886 #. type: verbatim
20887 #: ../fish/guestfish.pod:1014
20888 #, no-wrap
20889 msgid ""
20890 " a=`guestfish --remote run`\n"
20891 "\n"
20892 msgstr ""
20893
20894 #. type: textblock
20895 #: ../fish/guestfish.pod:1016
20896 msgid ""
20897 "Since the C<run> command produces no output on stdout, this is not useful "
20898 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
20899 "cgi?id=592910>."
20900 msgstr ""
20901
20902 #. type: =head1
20903 #: ../fish/guestfish.pod:1020
20904 msgid "PREPARED DISK IMAGES"
20905 msgstr ""
20906
20907 #. type: textblock
20908 #: ../fish/guestfish.pod:1022
20909 msgid ""
20910 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20911 "preformatted disk images that guestfish can make for you to save typing.  "
20912 "This is particularly useful for testing purposes.  This option is used "
20913 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20914 "can be mixed with I<-a>)."
20915 msgstr ""
20916
20917 #. type: textblock
20918 #: ../fish/guestfish.pod:1028
20919 msgid ""
20920 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20921 "the second and so on.  Existing files in the current directory are "
20922 "I<overwritten>."
20923 msgstr ""
20924
20925 #. type: textblock
20926 #: ../fish/guestfish.pod:1032
20927 msgid ""
20928 "The type briefly describes how the disk should be sized, partitioned, how "
20929 "filesystem(s) should be created, and how content should be added.  "
20930 "Optionally the type can be followed by extra parameters, separated by C<:> "
20931 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
20932 "allocated disk, containing a single partition, with the partition formatted "
20933 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20934 "disk instead."
20935 msgstr ""
20936
20937 #. type: textblock
20938 #: ../fish/guestfish.pod:1040
20939 msgid "To list the available types and any extra parameters they take, run:"
20940 msgstr ""
20941
20942 #. type: textblock
20943 #: ../fish/guestfish.pod:1044
20944 msgid ""
20945 "Note that the prepared filesystem is not mounted.  You would usually have to "
20946 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20947 msgstr ""
20948
20949 #. type: textblock
20950 #: ../fish/guestfish.pod:1048
20951 msgid ""
20952 "If any I<-N> or I<--new> options are given, the guest is automatically "
20953 "launched."
20954 msgstr ""
20955
20956 #. type: textblock
20957 #: ../fish/guestfish.pod:1053
20958 msgid "Create a 100MB disk with an ext4-formatted partition:"
20959 msgstr ""
20960
20961 #. type: verbatim
20962 #: ../fish/guestfish.pod:1055
20963 #, no-wrap
20964 msgid ""
20965 " guestfish -N fs:ext4\n"
20966 "\n"
20967 msgstr ""
20968
20969 #. type: textblock
20970 #: ../fish/guestfish.pod:1057
20971 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20972 msgstr ""
20973
20974 #. type: verbatim
20975 #: ../fish/guestfish.pod:1059
20976 #, no-wrap
20977 msgid ""
20978 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20979 "\n"
20980 msgstr ""
20981
20982 #. type: textblock
20983 #: ../fish/guestfish.pod:1061
20984 msgid "Create a blank 200MB disk:"
20985 msgstr ""
20986
20987 #. type: verbatim
20988 #: ../fish/guestfish.pod:1063
20989 #, no-wrap
20990 msgid ""
20991 " guestfish -N disk:200M\n"
20992 "\n"
20993 msgstr ""
20994
20995 #. type: =head1
20996 #: ../fish/guestfish.pod:1065
20997 msgid "PROGRESS BARS"
20998 msgstr ""
20999
21000 #. type: textblock
21001 #: ../fish/guestfish.pod:1067
21002 msgid ""
21003 "Some (not all) long-running commands send progress notification messages as "
21004 "they are running.  Guestfish turns these messages into progress bars."
21005 msgstr ""
21006
21007 #. type: textblock
21008 #: ../fish/guestfish.pod:1071
21009 msgid ""
21010 "When a command that supports progress bars takes longer than two seconds to "
21011 "run, and if progress bars are enabled, then you will see one appearing below "
21012 "the command:"
21013 msgstr ""
21014
21015 #. type: verbatim
21016 #: ../fish/guestfish.pod:1075
21017 #, no-wrap
21018 msgid ""
21019 " ><fs> copy-size /large-file /another-file 2048M\n"
21020 " / 10% [#####-----------------------------------------] 00:30\n"
21021 "\n"
21022 msgstr ""
21023
21024 #. type: textblock
21025 #: ../fish/guestfish.pod:1078
21026 msgid ""
21027 "The spinner on the left hand side moves round once for every progress "
21028 "notification received from the backend.  This is a (reasonably) golden "
21029 "assurance that the command is \"doing something\" even if the progress bar "
21030 "is not moving, because the command is able to send the progress "
21031 "notifications.  When the bar reaches 100% and the command finishes, the "
21032 "spinner disappears."
21033 msgstr ""
21034
21035 #. type: textblock
21036 #: ../fish/guestfish.pod:1085
21037 msgid ""
21038 "Progress bars are enabled by default when guestfish is used interactively.  "
21039 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21040 "and you can disable them completely using I<--no-progress-bars>."
21041 msgstr ""
21042
21043 #. type: =head1
21044 #: ../fish/guestfish.pod:1090
21045 msgid "GUESTFISH COMMANDS"
21046 msgstr ""
21047
21048 #. type: textblock
21049 #: ../fish/guestfish.pod:1092
21050 msgid ""
21051 "The commands in this section are guestfish convenience commands, in other "
21052 "words, they are not part of the L<guestfs(3)> API."
21053 msgstr ""
21054
21055 #. type: =head2
21056 #: ../fish/guestfish.pod:1095
21057 msgid "help"
21058 msgstr "help"
21059
21060 #. type: verbatim
21061 #: ../fish/guestfish.pod:1097
21062 #, no-wrap
21063 msgid ""
21064 " help\n"
21065 " help cmd\n"
21066 "\n"
21067 msgstr ""
21068 " help\n"
21069 " help команда\n"
21070 "\n"
21071
21072 #. type: textblock
21073 #: ../fish/guestfish.pod:1100
21074 msgid "Without any parameter, this provides general help."
21075 msgstr "Без параметра показує загальну довідкову інформацію."
21076
21077 #. type: textblock
21078 #: ../fish/guestfish.pod:1102
21079 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21080 msgstr ""
21081
21082 #. type: =head2
21083 #: ../fish/guestfish.pod:1104
21084 msgid "quit | exit"
21085 msgstr ""
21086
21087 #. type: textblock
21088 #: ../fish/guestfish.pod:1106
21089 msgid "This exits guestfish.  You can also use C<^D> key."
21090 msgstr ""
21091
21092 #. type: textblock
21093 #: ../fish/guestfish.pod:1108
21094 msgid "@FISH_COMMANDS@"
21095 msgstr ""
21096
21097 #. type: =head1
21098 #: ../fish/guestfish.pod:1110
21099 msgid "COMMANDS"
21100 msgstr "КОМАНДИ"
21101
21102 #. type: textblock
21103 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21104 msgid "@ACTIONS@"
21105 msgstr "@ACTIONS@"
21106
21107 #. type: textblock
21108 #: ../fish/guestfish.pod:1116
21109 msgid ""
21110 "guestfish returns 0 if the commands completed without error, or 1 if there "
21111 "was an error."
21112 msgstr ""
21113
21114 #. type: =item
21115 #: ../fish/guestfish.pod:1123
21116 msgid "EDITOR"
21117 msgstr "РЕДАКТОР"
21118
21119 #. type: textblock
21120 #: ../fish/guestfish.pod:1125
21121 msgid ""
21122 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21123 "C<vi>."
21124 msgstr ""
21125
21126 #. type: =item
21127 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
21128 msgid "FEBOOTSTRAP_KERNEL"
21129 msgstr ""
21130
21131 #. type: =item
21132 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
21133 msgid "FEBOOTSTRAP_MODULES"
21134 msgstr ""
21135
21136 #. type: textblock
21137 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
21138 msgid ""
21139 "These two environment variables allow the kernel that libguestfs uses in the "
21140 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21141 "most recent host kernel is chosen.  For more information about kernel "
21142 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
21143 "available in febootstrap E<ge> 3.8."
21144 msgstr ""
21145
21146 #. type: =item
21147 #: ../fish/guestfish.pod:1138
21148 msgid "GUESTFISH_DISPLAY_IMAGE"
21149 msgstr ""
21150
21151 #. type: textblock
21152 #: ../fish/guestfish.pod:1140
21153 msgid ""
21154 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21155 "If not set, it uses L<display(1)>."
21156 msgstr ""
21157
21158 #. type: =item
21159 #: ../fish/guestfish.pod:1143
21160 msgid "GUESTFISH_PID"
21161 msgstr ""
21162
21163 #. type: textblock
21164 #: ../fish/guestfish.pod:1145
21165 msgid ""
21166 "Used with the I<--remote> option to specify the remote guestfish process to "
21167 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21168 msgstr ""
21169
21170 #. type: =item
21171 #: ../fish/guestfish.pod:1149
21172 msgid "HEXEDITOR"
21173 msgstr ""
21174
21175 #. type: textblock
21176 #: ../fish/guestfish.pod:1151
21177 msgid ""
21178 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21179 "not specified, the external L<hexedit(1)> program is used."
21180 msgstr ""
21181
21182 #. type: =item
21183 #: ../fish/guestfish.pod:1155
21184 msgid "HOME"
21185 msgstr "ДОМІВКА"
21186
21187 #. type: textblock
21188 #: ../fish/guestfish.pod:1157
21189 msgid ""
21190 "If compiled with GNU readline support, various files in the home directory "
21191 "can be used.  See L</FILES>."
21192 msgstr ""
21193
21194 #. type: =item
21195 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
21196 msgid "LIBGUESTFS_APPEND"
21197 msgstr ""
21198
21199 #. type: textblock
21200 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
21201 msgid "Pass additional options to the guest kernel."
21202 msgstr ""
21203
21204 #. type: =item
21205 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
21206 msgid "LIBGUESTFS_DEBUG"
21207 msgstr "LIBGUESTFS_DEBUG"
21208
21209 #. type: textblock
21210 #: ../fish/guestfish.pod:1166
21211 msgid ""
21212 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21213 "effect as using the B<-v> option."
21214 msgstr ""
21215
21216 #. type: =item
21217 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
21218 msgid "LIBGUESTFS_MEMSIZE"
21219 msgstr "LIBGUESTFS_MEMSIZE"
21220
21221 #. type: textblock
21222 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
21223 msgid ""
21224 "Set the memory allocated to the qemu process, in megabytes.  For example:"
21225 msgstr ""
21226
21227 #. type: verbatim
21228 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
21229 #, no-wrap
21230 msgid ""
21231 " LIBGUESTFS_MEMSIZE=700\n"
21232 "\n"
21233 msgstr ""
21234 " LIBGUESTFS_MEMSIZE=700\n"
21235 "\n"
21236
21237 #. type: =item
21238 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
21239 msgid "LIBGUESTFS_PATH"
21240 msgstr ""
21241
21242 #. type: textblock
21243 #: ../fish/guestfish.pod:1178
21244 msgid ""
21245 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21246 "the discussion of paths in L<guestfs(3)>."
21247 msgstr ""
21248
21249 #. type: =item
21250 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
21251 msgid "LIBGUESTFS_QEMU"
21252 msgstr ""
21253
21254 #. type: textblock
21255 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
21256 msgid ""
21257 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21258 "which was found at compile time by the configure script is used."
21259 msgstr ""
21260
21261 #. type: =item
21262 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
21263 msgid "LIBGUESTFS_TRACE"
21264 msgstr ""
21265
21266 #. type: textblock
21267 #: ../fish/guestfish.pod:1189
21268 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21269 msgstr ""
21270
21271 #. type: =item
21272 #: ../fish/guestfish.pod:1191
21273 msgid "PAGER"
21274 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21275
21276 #. type: textblock
21277 #: ../fish/guestfish.pod:1193
21278 msgid ""
21279 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21280 "C<more>."
21281 msgstr ""
21282
21283 #. type: =item
21284 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21285 #: ../src/guestfs.pod:3257
21286 msgid "TMPDIR"
21287 msgstr ""
21288
21289 #. type: textblock
21290 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
21291 msgid ""
21292 "Location of temporary directory, defaults to C</tmp> except for the cached "
21293 "supermin appliance which defaults to C</var/tmp>."
21294 msgstr ""
21295
21296 #. type: textblock
21297 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
21298 msgid ""
21299 "If libguestfs was compiled to use the supermin appliance then the real "
21300 "appliance is cached in this directory, shared between all handles belonging "
21301 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21302 "use in case C</var/tmp> is not large enough."
21303 msgstr ""
21304
21305 #. type: =head1
21306 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21307 #: ../rescue/virt-rescue.pod:310
21308 msgid "FILES"
21309 msgstr "ФАЙЛИ"
21310
21311 #. type: =item
21312 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21313 #: ../rescue/virt-rescue.pod:314
21314 msgid "$HOME/.libguestfs-tools.rc"
21315 msgstr ""
21316
21317 #. type: =item
21318 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21319 #: ../rescue/virt-rescue.pod:316
21320 msgid "/etc/libguestfs-tools.conf"
21321 msgstr ""
21322
21323 #. type: textblock
21324 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21325 #: ../rescue/virt-rescue.pod:318
21326 msgid ""
21327 "This configuration file controls the default read-only or read-write mode "
21328 "(I<--ro> or I<--rw>)."
21329 msgstr ""
21330
21331 #. type: textblock
21332 #: ../fish/guestfish.pod:1220
21333 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21334 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
21335
21336 #. type: =item
21337 #: ../fish/guestfish.pod:1222
21338 msgid "$HOME/.guestfish"
21339 msgstr ""
21340
21341 #. type: textblock
21342 #: ../fish/guestfish.pod:1224
21343 msgid ""
21344 "If compiled with GNU readline support, then the command history is saved in "
21345 "this file."
21346 msgstr ""
21347
21348 #. type: =item
21349 #: ../fish/guestfish.pod:1227
21350 msgid "$HOME/.inputrc"
21351 msgstr ""
21352
21353 #. type: =item
21354 #: ../fish/guestfish.pod:1229
21355 msgid "/etc/inputrc"
21356 msgstr ""
21357
21358 #. type: textblock
21359 #: ../fish/guestfish.pod:1231
21360 msgid ""
21361 "If compiled with GNU readline support, then these files can be used to "
21362 "configure readline.  For further information, please see L<readline(3)/"
21363 "INITIALIZATION FILE>."
21364 msgstr ""
21365
21366 #. type: textblock
21367 #: ../fish/guestfish.pod:1235
21368 msgid "To write rules which only apply to guestfish, use:"
21369 msgstr ""
21370
21371 #. type: verbatim
21372 #: ../fish/guestfish.pod:1237
21373 #, no-wrap
21374 msgid ""
21375 " $if guestfish\n"
21376 " ...\n"
21377 " $endif\n"
21378 "\n"
21379 msgstr ""
21380
21381 #. type: textblock
21382 #: ../fish/guestfish.pod:1241
21383 msgid ""
21384 "Variables that you can set in inputrc that change the behaviour of guestfish "
21385 "in useful ways include:"
21386 msgstr ""
21387
21388 #. type: =item
21389 #: ../fish/guestfish.pod:1246
21390 msgid "completion-ignore-case (default: on)"
21391 msgstr ""
21392
21393 #. type: textblock
21394 #: ../fish/guestfish.pod:1248
21395 msgid ""
21396 "By default, guestfish will ignore case when tab-completing paths on the "
21397 "disk.  Use:"
21398 msgstr ""
21399
21400 #. type: verbatim
21401 #: ../fish/guestfish.pod:1251
21402 #, no-wrap
21403 msgid ""
21404 " set completion-ignore-case off\n"
21405 "\n"
21406 msgstr ""
21407
21408 #. type: textblock
21409 #: ../fish/guestfish.pod:1253
21410 msgid "to make guestfish case sensitive."
21411 msgstr ""
21412
21413 #. type: =item
21414 #: ../fish/guestfish.pod:1257
21415 msgid "test1.img"
21416 msgstr ""
21417
21418 #. type: =item
21419 #: ../fish/guestfish.pod:1259
21420 msgid "test2.img (etc)"
21421 msgstr ""
21422
21423 #. type: textblock
21424 #: ../fish/guestfish.pod:1261
21425 msgid ""
21426 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21427 "will be created in the file C<test1.img> in the current directory.  The "
21428 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21429 "the same name will be overwritten."
21430 msgstr ""
21431
21432 #. type: textblock
21433 #: ../fish/guestfish.pod:1270
21434 msgid ""
21435 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21436 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21437 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21438 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21439 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21440 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21441 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21442 msgstr ""
21443
21444 #. type: textblock
21445 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354
21446 #: ../test-tool/libguestfs-test-tool.pod:112
21447 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21448 msgstr ""
21449
21450 #. type: textblock
21451 #: ../fish/virt-copy-in.pod:5
21452 msgid ""
21453 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21454 msgstr ""
21455
21456 #. type: verbatim
21457 #: ../fish/virt-copy-in.pod:9
21458 #, no-wrap
21459 msgid ""
21460 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21461 "\n"
21462 msgstr ""
21463
21464 #. type: verbatim
21465 #: ../fish/virt-copy-in.pod:11
21466 #, no-wrap
21467 msgid ""
21468 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21469 "\n"
21470 msgstr ""
21471
21472 #. type: textblock
21473 #: ../fish/virt-copy-in.pod:15
21474 msgid ""
21475 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21476 "causing disk corruption.  The virtual machine must be shut down before you "
21477 "use this command."
21478 msgstr ""
21479
21480 #. type: textblock
21481 #: ../fish/virt-copy-in.pod:21
21482 msgid ""
21483 "C<virt-copy-in> copies files and directories from the local disk into a "
21484 "virtual machine disk image or named libvirt domain."
21485 msgstr ""
21486
21487 #. type: textblock
21488 #: ../fish/virt-copy-in.pod:24
21489 msgid ""
21490 "You can give one of more filenames and directories on the command line.  "
21491 "Directories are copied in recursively.  The final parameter must be the "
21492 "destination directory in the disk image which must be an absolute path "
21493 "starting with a C</> character."
21494 msgstr ""
21495
21496 #. type: verbatim
21497 #: ../fish/virt-copy-in.pod:33
21498 #, no-wrap
21499 msgid ""
21500 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21501 "\n"
21502 msgstr ""
21503
21504 #. type: textblock
21505 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21506 msgid "Upload a home directory to a guest:"
21507 msgstr ""
21508
21509 #. type: verbatim
21510 #: ../fish/virt-copy-in.pod:37
21511 #, no-wrap
21512 msgid ""
21513 " virt-copy-in -d MyGuest skel /home\n"
21514 "\n"
21515 msgstr ""
21516
21517 #. type: =head1
21518 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21519 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21520 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21521 msgstr ""
21522
21523 #. type: textblock
21524 #: ../fish/virt-copy-in.pod:41
21525 msgid ""
21526 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21527 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
21528 "are probably better off using guestfish directly."
21529 msgstr ""
21530
21531 #. type: textblock
21532 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21533 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21534 msgid ""
21535 "Since the shell script just passes options straight to guestfish, read "
21536 "L<guestfish(1)> to see the full list of options."
21537 msgstr ""
21538
21539 #. type: textblock
21540 #: ../fish/virt-copy-in.pod:52
21541 msgid ""
21542 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21543 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21544 msgstr ""
21545
21546 #. type: textblock
21547 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21548 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21549 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21550 msgstr ""
21551
21552 #. type: textblock
21553 #: ../fish/virt-copy-out.pod:5
21554 msgid ""
21555 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21556 "image."
21557 msgstr ""
21558
21559 #. type: verbatim
21560 #: ../fish/virt-copy-out.pod:9
21561 #, no-wrap
21562 msgid ""
21563 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21564 "\n"
21565 msgstr ""
21566
21567 #. type: verbatim
21568 #: ../fish/virt-copy-out.pod:11
21569 #, no-wrap
21570 msgid ""
21571 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21572 "\n"
21573 msgstr ""
21574
21575 #. type: textblock
21576 #: ../fish/virt-copy-out.pod:15
21577 msgid ""
21578 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21579 "image or named libvirt domain."
21580 msgstr ""
21581
21582 #. type: textblock
21583 #: ../fish/virt-copy-out.pod:18
21584 msgid ""
21585 "You can give one of more filenames and directories on the command line.  "
21586 "Directories are copied out recursively."
21587 msgstr ""
21588
21589 #. type: textblock
21590 #: ../fish/virt-copy-out.pod:23
21591 msgid "Download the home directories from a virtual machine:"
21592 msgstr ""
21593
21594 #. type: verbatim
21595 #: ../fish/virt-copy-out.pod:25
21596 #, no-wrap
21597 msgid ""
21598 " mkdir homes\n"
21599 " virt-copy-out -d MyGuest /home homes\n"
21600 "\n"
21601 msgstr ""
21602
21603 #. type: textblock
21604 #: ../fish/virt-copy-out.pod:30
21605 msgid ""
21606 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21607 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
21608 "are probably better off using guestfish directly."
21609 msgstr ""
21610
21611 #. type: textblock
21612 #: ../fish/virt-copy-out.pod:41
21613 msgid ""
21614 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21615 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21616 msgstr ""
21617
21618 #. type: textblock
21619 #: ../fish/virt-tar-in.pod:5
21620 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21621 msgstr ""
21622
21623 #. type: verbatim
21624 #: ../fish/virt-tar-in.pod:9
21625 #, no-wrap
21626 msgid ""
21627 " virt-tar-in -a disk.img data.tar /destination\n"
21628 "\n"
21629 msgstr ""
21630
21631 #. type: verbatim
21632 #: ../fish/virt-tar-in.pod:11
21633 #, no-wrap
21634 msgid ""
21635 " virt-tar-in -d domain data.tar /destination\n"
21636 "\n"
21637 msgstr ""
21638
21639 #. type: verbatim
21640 #: ../fish/virt-tar-in.pod:13
21641 #, no-wrap
21642 msgid ""
21643 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21644 "\n"
21645 msgstr ""
21646
21647 #. type: textblock
21648 #: ../fish/virt-tar-in.pod:17
21649 msgid ""
21650 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21651 "causing disk corruption.  The virtual machine must be shut down before you "
21652 "use this command."
21653 msgstr ""
21654
21655 #. type: textblock
21656 #: ../fish/virt-tar-in.pod:23
21657 msgid ""
21658 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21659 "image or named libvirt domain."
21660 msgstr ""
21661
21662 #. type: textblock
21663 #: ../fish/virt-tar-in.pod:26
21664 msgid ""
21665 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21666 "standard input.  The second parameter is the absolute target directory to "
21667 "unpack into."
21668 msgstr ""
21669
21670 #. type: verbatim
21671 #: ../fish/virt-tar-in.pod:34
21672 #, no-wrap
21673 msgid ""
21674 " virt-tar-in -d MyGuest homes.tar /home\n"
21675 "\n"
21676 msgstr ""
21677
21678 #. type: textblock
21679 #: ../fish/virt-tar-in.pod:38
21680 msgid ""
21681 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21682 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
21683 "probably better off using guestfish directly."
21684 msgstr ""
21685
21686 #. type: textblock
21687 #: ../fish/virt-tar-in.pod:49
21688 msgid ""
21689 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21690 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21691 "org/>."
21692 msgstr ""
21693
21694 #. type: textblock
21695 #: ../fish/virt-tar-out.pod:5
21696 msgid ""
21697 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21698 msgstr ""
21699
21700 #. type: verbatim
21701 #: ../fish/virt-tar-out.pod:9
21702 #, no-wrap
21703 msgid ""
21704 " virt-tar-out -a disk.img /dir files.tar\n"
21705 "\n"
21706 msgstr ""
21707
21708 #. type: verbatim
21709 #: ../fish/virt-tar-out.pod:11
21710 #, no-wrap
21711 msgid ""
21712 " virt-tar-out -d domain /dir files.tar\n"
21713 "\n"
21714 msgstr ""
21715
21716 #. type: verbatim
21717 #: ../fish/virt-tar-out.pod:13
21718 #, no-wrap
21719 msgid ""
21720 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21721 "\n"
21722 msgstr ""
21723
21724 #. type: textblock
21725 #: ../fish/virt-tar-out.pod:17
21726 msgid ""
21727 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21728 msgstr ""
21729
21730 #. type: textblock
21731 #: ../fish/virt-tar-out.pod:20
21732 msgid ""
21733 "The first parameter is the absolute path of the virtual machine directory.  "
21734 "The second parameter is the tar file to write.  Use C<-> to write to "
21735 "standard output."
21736 msgstr ""
21737
21738 #. type: textblock
21739 #: ../fish/virt-tar-out.pod:26
21740 msgid "Download the home directories from a guest:"
21741 msgstr ""
21742
21743 #. type: verbatim
21744 #: ../fish/virt-tar-out.pod:28
21745 #, no-wrap
21746 msgid ""
21747 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21748 "\n"
21749 msgstr ""
21750
21751 #. type: textblock
21752 #: ../fish/virt-tar-out.pod:32
21753 msgid ""
21754 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21755 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
21756 "are probably better off using guestfish directly."
21757 msgstr ""
21758
21759 #. type: textblock
21760 #: ../fish/virt-tar-out.pod:43
21761 msgid ""
21762 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21763 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21764 msgstr ""
21765
21766 #. type: textblock
21767 #: ../fuse/guestmount.pod:5
21768 msgid ""
21769 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21770 msgstr ""
21771
21772 #. type: verbatim
21773 #: ../fuse/guestmount.pod:9
21774 #, no-wrap
21775 msgid ""
21776 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21777 "\n"
21778 msgstr ""
21779
21780 #. type: verbatim
21781 #: ../fuse/guestmount.pod:11
21782 #, no-wrap
21783 msgid ""
21784 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21785 "\n"
21786 msgstr ""
21787
21788 #. type: verbatim
21789 #: ../fuse/guestmount.pod:13
21790 #, no-wrap
21791 msgid ""
21792 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21793 "\n"
21794 msgstr ""
21795
21796 #. type: textblock
21797 #: ../fuse/guestmount.pod:17
21798 msgid ""
21799 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21800 "machines.  If you do this, you risk disk corruption in the VM."
21801 msgstr ""
21802
21803 #. type: textblock
21804 #: ../fuse/guestmount.pod:22
21805 msgid ""
21806 "The guestmount program can be used to mount virtual machine filesystems and "
21807 "other disk images on the host.  It uses libguestfs for access to the guest "
21808 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21809 "a mountable device."
21810 msgstr ""
21811
21812 #. type: textblock
21813 #: ../fuse/guestmount.pod:27
21814 msgid ""
21815 "Along with other options, you have to give at least one device (I<-a> "
21816 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21817 "option) or use the I<-i> inspection option or the I<--live> option.  How "
21818 "this works is better explained in the L<guestfish(1)> manual page, or by "
21819 "looking at the examples below."
21820 msgstr ""
21821
21822 #. type: textblock
21823 #: ../fuse/guestmount.pod:33
21824 msgid ""
21825 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21826 "by you, and the filesystem will not be visible to any other users unless you "
21827 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21828 "the filesystem, use the C<fusermount -u> command."
21829 msgstr ""
21830
21831 #. type: textblock
21832 #: ../fuse/guestmount.pod:41
21833 msgid ""
21834 "For a typical Windows guest which has its main filesystem on the first "
21835 "partition:"
21836 msgstr ""
21837
21838 #. type: verbatim
21839 #: ../fuse/guestmount.pod:44
21840 #, no-wrap
21841 msgid ""
21842 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21843 "\n"
21844 msgstr ""
21845
21846 #. type: textblock
21847 #: ../fuse/guestmount.pod:46
21848 msgid ""
21849 "For a typical Linux guest which has a /boot filesystem on the first "
21850 "partition, and the root filesystem on a logical volume:"
21851 msgstr ""
21852
21853 #. type: verbatim
21854 #: ../fuse/guestmount.pod:49
21855 #, no-wrap
21856 msgid ""
21857 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21858 "\n"
21859 msgstr ""
21860
21861 #. type: textblock
21862 #: ../fuse/guestmount.pod:51
21863 msgid "To get libguestfs to detect guest mountpoints for you:"
21864 msgstr ""
21865
21866 #. type: verbatim
21867 #: ../fuse/guestmount.pod:53
21868 #, no-wrap
21869 msgid ""
21870 " guestmount -a guest.img -i --ro /mnt\n"
21871 "\n"
21872 msgstr ""
21873
21874 #. type: textblock
21875 #: ../fuse/guestmount.pod:55
21876 msgid "For a libvirt guest called \"Guest\" you could do:"
21877 msgstr ""
21878
21879 #. type: verbatim
21880 #: ../fuse/guestmount.pod:57
21881 #, no-wrap
21882 msgid ""
21883 " guestmount -d Guest -i --ro /mnt\n"
21884 "\n"
21885 msgstr ""
21886
21887 #. type: textblock
21888 #: ../fuse/guestmount.pod:59
21889 msgid ""
21890 "If you don't know what filesystems are contained in a guest or disk image, "
21891 "use L<virt-filesystems(1)> first:"
21892 msgstr ""
21893
21894 #. type: verbatim
21895 #: ../fuse/guestmount.pod:62
21896 #, no-wrap
21897 msgid ""
21898 " virt-filesystems MyGuest\n"
21899 "\n"
21900 msgstr ""
21901
21902 #. type: textblock
21903 #: ../fuse/guestmount.pod:64
21904 msgid ""
21905 "If you want to trace the libguestfs calls but without excessive debugging "
21906 "information, we recommend:"
21907 msgstr ""
21908
21909 #. type: verbatim
21910 #: ../fuse/guestmount.pod:67
21911 #, no-wrap
21912 msgid ""
21913 " guestmount [...] --trace /mnt\n"
21914 "\n"
21915 msgstr ""
21916
21917 #. type: textblock
21918 #: ../fuse/guestmount.pod:69
21919 msgid "If you want to debug the program, we recommend:"
21920 msgstr ""
21921
21922 #. type: verbatim
21923 #: ../fuse/guestmount.pod:71
21924 #, no-wrap
21925 msgid ""
21926 " guestmount [...] --trace --verbose /mnt\n"
21927 "\n"
21928 msgstr ""
21929
21930 #. type: =head1
21931 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96
21932 #: ../resize/virt-resize.pod:621
21933 msgid "NOTES"
21934 msgstr "ПРИМІТКИ"
21935
21936 #. type: =head2
21937 #: ../fuse/guestmount.pod:75
21938 msgid "Other users cannot see the filesystem by default"
21939 msgstr ""
21940
21941 #. type: textblock
21942 #: ../fuse/guestmount.pod:77
21943 msgid ""
21944 "If you mount a filesystem as one user (eg. root), then other users will not "
21945 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21946 "option when mounting:"
21947 msgstr ""
21948
21949 #. type: verbatim
21950 #: ../fuse/guestmount.pod:81
21951 #, no-wrap
21952 msgid ""
21953 " sudo guestmount [...] -o allow_other /mnt\n"
21954 "\n"
21955 msgstr ""
21956
21957 #. type: =head2
21958 #: ../fuse/guestmount.pod:83
21959 msgid "Enabling FUSE"
21960 msgstr ""
21961
21962 #. type: textblock
21963 #: ../fuse/guestmount.pod:85
21964 msgid ""
21965 "On some distros, you may need to add yourself to a special group (eg. "
21966 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21967 "Debian and derivatives."
21968 msgstr ""
21969
21970 #. type: textblock
21971 #: ../fuse/guestmount.pod:89
21972 msgid ""
21973 "On other distros, no special group is required.  It is not necessary on "
21974 "Fedora or Red Hat Enterprise Linux."
21975 msgstr ""
21976
21977 #. type: textblock
21978 #: ../fuse/guestmount.pod:100
21979 msgid "Add a block device or virtual machine image."
21980 msgstr ""
21981
21982 #. type: =item
21983 #: ../fuse/guestmount.pod:123
21984 msgid "B<--dir-cache-timeout N>"
21985 msgstr "B<--dir-cache-timeout N>"
21986
21987 #. type: textblock
21988 #: ../fuse/guestmount.pod:125
21989 msgid ""
21990 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21991 "seconds.  The readdir cache [actually, there are several semi-independent "
21992 "caches] is populated after a readdir(2) call with the stat and extended "
21993 "attributes of the files in the directory, in anticipation that they will be "
21994 "requested soon after."
21995 msgstr ""
21996
21997 #. type: textblock
21998 #: ../fuse/guestmount.pod:131
21999 msgid ""
22000 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22001 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22002 "requests, only cache existing ones."
22003 msgstr ""
22004
22005 #. type: textblock
22006 #: ../fuse/guestmount.pod:151
22007 msgid ""
22008 "If you have untrusted raw-format guest disk images, you should use this "
22009 "option to specify the disk format.  This avoids a possible security problem "
22010 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
22011 "guestfs_add_drive_opts>."
22012 msgstr ""
22013
22014 #. type: =item
22015 #: ../fuse/guestmount.pod:156
22016 msgid "B<--fuse-help>"
22017 msgstr "B<--fuse-help>"
22018
22019 #. type: textblock
22020 #: ../fuse/guestmount.pod:158
22021 msgid "Display help on special FUSE options (see I<-o> below)."
22022 msgstr ""
22023
22024 #. type: textblock
22025 #: ../fuse/guestmount.pod:162
22026 msgid "Display brief help and exit."
22027 msgstr ""
22028
22029 #. type: textblock
22030 #: ../fuse/guestmount.pod:186
22031 msgid ""
22032 "Mount the named partition or logical volume on the given mountpoint B<in the "
22033 "guest> (this has nothing to do with mountpoints in the host)."
22034 msgstr ""
22035
22036 #. type: textblock
22037 #: ../fuse/guestmount.pod:189
22038 msgid ""
22039 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22040 "something on C</>."
22041 msgstr ""
22042
22043 #. type: textblock
22044 #: ../fuse/guestmount.pod:206
22045 msgid ""
22046 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22047 "unmounted.  If you specify this option, then we don't attempt to sync the "
22048 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22049 msgstr ""
22050
22051 #. type: =item
22052 #: ../fuse/guestmount.pod:211
22053 msgid "B<-o option>"
22054 msgstr "B<-o параметр>"
22055
22056 #. type: =item
22057 #: ../fuse/guestmount.pod:213
22058 msgid "B<--option option>"
22059 msgstr "B<--option параметр>"
22060
22061 #. type: textblock
22062 #: ../fuse/guestmount.pod:215
22063 msgid "Pass extra options to FUSE."
22064 msgstr ""
22065
22066 #. type: textblock
22067 #: ../fuse/guestmount.pod:217
22068 msgid ""
22069 "To get a list of all the extra options supported by FUSE, use the command "
22070 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22071 "of them are a good idea."
22072 msgstr ""
22073
22074 #. type: verbatim
22075 #: ../fuse/guestmount.pod:221
22076 #, no-wrap
22077 msgid ""
22078 " guestmount --fuse-help\n"
22079 "\n"
22080 msgstr ""
22081
22082 #. type: textblock
22083 #: ../fuse/guestmount.pod:223
22084 msgid "Some potentially useful FUSE options:"
22085 msgstr ""
22086
22087 #. type: =item
22088 #: ../fuse/guestmount.pod:227
22089 msgid "B<-o allow_other>"
22090 msgstr ""
22091
22092 #. type: textblock
22093 #: ../fuse/guestmount.pod:229
22094 msgid "Allow other users to see the filesystem."
22095 msgstr ""
22096
22097 #. type: =item
22098 #: ../fuse/guestmount.pod:231
22099 msgid "B<-o attr_timeout=N>"
22100 msgstr "B<-o attr_timeout=N>"
22101
22102 #. type: textblock
22103 #: ../fuse/guestmount.pod:233
22104 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22105 msgstr ""
22106
22107 #. type: =item
22108 #: ../fuse/guestmount.pod:235
22109 msgid "B<-o kernel_cache>"
22110 msgstr ""
22111
22112 #. type: textblock
22113 #: ../fuse/guestmount.pod:237
22114 msgid ""
22115 "Allow the kernel to cache files (reduces the number of reads that have to go "
22116 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22117 "afford the extra memory usage."
22118 msgstr ""
22119
22120 #. type: =item
22121 #: ../fuse/guestmount.pod:241
22122 msgid "B<-o uid=N> B<-o gid=N>"
22123 msgstr "B<-o uid=N> B<-o gid=N>"
22124
22125 #. type: textblock
22126 #: ../fuse/guestmount.pod:243
22127 msgid ""
22128 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22129 "the chosen values."
22130 msgstr ""
22131
22132 #. type: textblock
22133 #: ../fuse/guestmount.pod:252
22134 msgid ""
22135 "Add devices and mount everything read-only.  Also disallow writes and make "
22136 "the disk appear read-only to FUSE."
22137 msgstr ""
22138
22139 #. type: textblock
22140 #: ../fuse/guestmount.pod:255
22141 msgid ""
22142 "This is highly recommended if you are not going to edit the guest disk.  If "
22143 "the guest is running and this option is I<not> supplied, then there is a "
22144 "strong risk of disk corruption in the guest.  We try to prevent this from "
22145 "happening, but it is not always possible."
22146 msgstr ""
22147
22148 #. type: textblock
22149 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
22150 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22151 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22152
22153 #. type: textblock
22154 #: ../fuse/guestmount.pod:264
22155 msgid "Enable SELinux support for the guest."
22156 msgstr ""
22157
22158 #. type: textblock
22159 #: ../fuse/guestmount.pod:270
22160 msgid "Enable verbose messages from underlying libguestfs."
22161 msgstr ""
22162
22163 #. type: textblock
22164 #: ../fuse/guestmount.pod:276
22165 msgid "Display the program version and exit."
22166 msgstr ""
22167
22168 #. type: textblock
22169 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22170 #: ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
22171 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22172 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22173
22174 #. type: =item
22175 #: ../fuse/guestmount.pod:289
22176 msgid "B<--trace>"
22177 msgstr "B<--trace>"
22178
22179 #. type: textblock
22180 #: ../fuse/guestmount.pod:291
22181 msgid "Trace libguestfs calls and entry into each FUSE function."
22182 msgstr ""
22183
22184 #. type: textblock
22185 #: ../fuse/guestmount.pod:293
22186 msgid "This also stops the daemon from forking into the background."
22187 msgstr ""
22188
22189 #. type: textblock
22190 #: ../fuse/guestmount.pod:319
22191 msgid ""
22192 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22193 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22194 "net/>."
22195 msgstr ""
22196 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22197 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22198 "net/>."
22199
22200 #. type: textblock
22201 #: ../fuse/guestmount.pod:334
22202 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22203 msgstr ""
22204
22205 #. type: textblock
22206 #: ../inspector/virt-inspector.pod:5
22207 msgid ""
22208 "virt-inspector - Display operating system version and other information "
22209 "about a virtual machine"
22210 msgstr ""
22211
22212 #. type: verbatim
22213 #: ../inspector/virt-inspector.pod:9
22214 #, no-wrap
22215 msgid ""
22216 " virt-inspector [--options] -d domname\n"
22217 "\n"
22218 msgstr ""
22219
22220 #. type: verbatim
22221 #: ../inspector/virt-inspector.pod:11
22222 #, no-wrap
22223 msgid ""
22224 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22225 "\n"
22226 msgstr ""
22227
22228 #. type: verbatim
22229 #: ../inspector/virt-inspector.pod:15
22230 #, no-wrap
22231 msgid ""
22232 " virt-inspector domname\n"
22233 "\n"
22234 msgstr ""
22235
22236 #. type: verbatim
22237 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
22238 #, no-wrap
22239 msgid ""
22240 " virt-inspector disk.img [disk.img ...]\n"
22241 "\n"
22242 msgstr ""
22243
22244 #. type: textblock
22245 #: ../inspector/virt-inspector.pod:21
22246 msgid ""
22247 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22248 "determine the version of the operating system and other information about "
22249 "the virtual machine."
22250 msgstr ""
22251
22252 #. type: textblock
22253 #: ../inspector/virt-inspector.pod:25
22254 msgid "Virt-inspector produces XML output for feeding into other programs."
22255 msgstr ""
22256
22257 #. type: textblock
22258 #: ../inspector/virt-inspector.pod:27
22259 msgid ""
22260 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22261 "the libvirt domain (see: C<virsh list --all>)."
22262 msgstr ""
22263
22264 #. type: textblock
22265 #: ../inspector/virt-inspector.pod:30
22266 msgid ""
22267 "You can also run virt-inspector directly on disk images from a single "
22268 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22269 "has several block devices, in which case you should list several I<-a> "
22270 "options one after another, with the first corresponding to the guest's C</"
22271 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22272 msgstr ""
22273
22274 #. type: textblock
22275 #: ../inspector/virt-inspector.pod:37
22276 msgid ""
22277 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22278 "keys and similar."
22279 msgstr ""
22280
22281 #. type: textblock
22282 #: ../inspector/virt-inspector.pod:40
22283 msgid ""
22284 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22285 "inspect several virtual machines, you have to run virt-inspector several "
22286 "times (for example, from a shell script for-loop)."
22287 msgstr ""
22288
22289 #. type: textblock
22290 #: ../inspector/virt-inspector.pod:45
22291 msgid ""
22292 "Because virt-inspector needs direct access to guest images, it won't "
22293 "normally work over remote libvirt connections."
22294 msgstr ""
22295
22296 #. type: textblock
22297 #: ../inspector/virt-inspector.pod:48
22298 msgid ""
22299 "All of the information available from virt-inspector is also available "
22300 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22301 "The same information can also be fetched using guestfish or via libguestfs "
22302 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22303 "WITH OTHER PROGRAMMING LANGUAGES>)."
22304 msgstr ""
22305
22306 #. type: textblock
22307 #: ../inspector/virt-inspector.pod:81
22308 msgid ""
22309 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22310 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22311 "at all."
22312 msgstr ""
22313
22314 #. type: textblock
22315 #: ../inspector/virt-inspector.pod:94
22316 msgid ""
22317 "When prompting for keys and passphrases, virt-inspector normally turns "
22318 "echoing off so you cannot see what you are typing.  If you are not worried "
22319 "about Tempest attacks and there is no one else in the room you can specify "
22320 "this flag to see what you are typing."
22321 msgstr ""
22322
22323 #. type: textblock
22324 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22325 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22326 #: ../tools/virt-win-reg.pl:144
22327 msgid ""
22328 "Specify the format of disk images given on the command line.  If this is "
22329 "omitted then the format is autodetected from the content of the disk image."
22330 msgstr ""
22331
22332 #. type: textblock
22333 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22334 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22335 #: ../tools/virt-win-reg.pl:148
22336 msgid ""
22337 "If disk images are requested from libvirt, then this program asks libvirt "
22338 "for this information.  In this case, the value of the format parameter is "
22339 "ignored."
22340 msgstr ""
22341
22342 #. type: textblock
22343 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
22344 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132
22345 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22346 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22347 msgid ""
22348 "If working with untrusted raw-format guest disk images, you should ensure "
22349 "the format is always specified."
22350 msgstr ""
22351
22352 #. type: =item
22353 #: ../inspector/virt-inspector.pod:135
22354 #, fuzzy
22355 #| msgid "B<--parts>"
22356 msgid "B<--xpath> query"
22357 msgstr "B<--parts>"
22358
22359 #. type: textblock
22360 #: ../inspector/virt-inspector.pod:137
22361 msgid ""
22362 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
22363 "In this mode virt-inspector simply runs an XPath query; all other inspection "
22364 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../inspector/virt-inspector.pod:146
22369 msgid "Previous versions of virt-inspector allowed you to write either:"
22370 msgstr ""
22371
22372 #. type: verbatim
22373 #: ../inspector/virt-inspector.pod:152
22374 #, no-wrap
22375 msgid ""
22376 " virt-inspector guestname\n"
22377 "\n"
22378 msgstr ""
22379
22380 #. type: =head1
22381 #: ../inspector/virt-inspector.pod:160
22382 msgid "XML FORMAT"
22383 msgstr ""
22384
22385 #. type: textblock
22386 #: ../inspector/virt-inspector.pod:162
22387 msgid ""
22388 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22389 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22390 "just an overview."
22391 msgstr ""
22392
22393 #. type: textblock
22394 #: ../inspector/virt-inspector.pod:166
22395 msgid ""
22396 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22397 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22398 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22399 "which is vanishingly rare in real world VMs."
22400 msgstr ""
22401
22402 #. type: =head2
22403 #: ../inspector/virt-inspector.pod:171
22404 msgid "E<lt>operatingsystemE<gt>"
22405 msgstr ""
22406
22407 #. type: textblock
22408 #: ../inspector/virt-inspector.pod:173
22409 msgid ""
22410 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22411 "describe the operating system, its architecture, the descriptive \"product "
22412 "name\" string, the type of OS and so on, as in this example:"
22413 msgstr ""
22414
22415 #. type: verbatim
22416 #: ../inspector/virt-inspector.pod:177
22417 #, no-wrap
22418 msgid ""
22419 " <operatingsystems>\n"
22420 "   <operatingsystem>\n"
22421 "     <root>/dev/sda2</root>\n"
22422 "     <name>windows</name>\n"
22423 "     <arch>i386</arch>\n"
22424 "     <distro>windows</distro>\n"
22425 "     <product_name>Windows 7 Enterprise</product_name>\n"
22426 "     <product_variant>Client</product_variant>\n"
22427 "     <major_version>6</major_version>\n"
22428 "     <minor_version>1</minor_version>\n"
22429 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22430 "     <format>installed</format>\n"
22431 "\n"
22432 msgstr ""
22433
22434 #. type: textblock
22435 #: ../inspector/virt-inspector.pod:190
22436 msgid ""
22437 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22438 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22439 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22440 "architecture.  The other fields are fairly self-explanatory, but because "
22441 "these fields are taken directly from the libguestfs inspection API you can "
22442 "find precise information from L<guestfs(3)/INSPECTION>."
22443 msgstr ""
22444
22445 #. type: textblock
22446 #: ../inspector/virt-inspector.pod:198
22447 msgid ""
22448 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22449 "of view of libguestfs (block devices may have completely different names "
22450 "inside the VM itself)."
22451 msgstr ""
22452
22453 #. type: =head2
22454 #: ../inspector/virt-inspector.pod:202
22455 msgid "E<lt>mountpointsE<gt>"
22456 msgstr ""
22457
22458 #. type: textblock
22459 #: ../inspector/virt-inspector.pod:204
22460 msgid ""
22461 "Un*x-like guests typically have multiple filesystems which are mounted at "
22462 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22463 "element which looks like this:"
22464 msgstr ""
22465
22466 #. type: verbatim
22467 #: ../inspector/virt-inspector.pod:208
22468 #, no-wrap
22469 msgid ""
22470 " <operatingsystems>\n"
22471 "   <operatingsystem>\n"
22472 "     ...\n"
22473 "     <mountpoints>\n"
22474 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22475 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22476 "     </mountpoints>\n"
22477 "\n"
22478 msgstr ""
22479
22480 #. type: textblock
22481 #: ../inspector/virt-inspector.pod:216
22482 msgid ""
22483 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22484 "and may have completely different names inside the guest.  Only mountable "
22485 "filesystems appear in this list, not things like swap devices."
22486 msgstr ""
22487
22488 #. type: =head2
22489 #: ../inspector/virt-inspector.pod:221
22490 msgid "E<lt>filesystemsE<gt>"
22491 msgstr ""
22492
22493 #. type: textblock
22494 #: ../inspector/virt-inspector.pod:223
22495 msgid ""
22496 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22497 "filesystems belonging to the guest, including swap and empty partitions.  "
22498 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22499 "this OS or shared with this OS and other OSes)."
22500 msgstr ""
22501
22502 #. type: textblock
22503 #: ../inspector/virt-inspector.pod:229
22504 msgid "You might see something like this:"
22505 msgstr ""
22506
22507 #. type: verbatim
22508 #: ../inspector/virt-inspector.pod:231
22509 #, no-wrap
22510 msgid ""
22511 " <operatingsystems>\n"
22512 "   <operatingsystem>\n"
22513 "     ...\n"
22514 "     <filesystems>\n"
22515 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22516 "         <type>ext4</type>\n"
22517 "         <label>Fedora-13-x86_64</label>\n"
22518 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22519 "       </filesystem>\n"
22520 "\n"
22521 msgstr ""
22522
22523 #. type: textblock
22524 #: ../inspector/virt-inspector.pod:241
22525 msgid ""
22526 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22527 "the label, and the UUID."
22528 msgstr ""
22529
22530 #. type: =head2
22531 #: ../inspector/virt-inspector.pod:244
22532 msgid "E<lt>applicationsE<gt>"
22533 msgstr ""
22534
22535 #. type: textblock
22536 #: ../inspector/virt-inspector.pod:246
22537 msgid ""
22538 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22539 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22540 "machine."
22541 msgstr ""
22542
22543 #. type: textblock
22544 #: ../inspector/virt-inspector.pod:250
22545 msgid ""
22546 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22547 "Typical values would be C<rpm> and C<deb>."
22548 msgstr ""
22549
22550 #. type: textblock
22551 #: ../inspector/virt-inspector.pod:253
22552 msgid ""
22553 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22554 "Typical values include C<yum>, C<up2date> and C<apt>"
22555 msgstr ""
22556
22557 #. type: textblock
22558 #: ../inspector/virt-inspector.pod:256
22559 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22560 msgstr ""
22561
22562 #. type: verbatim
22563 #: ../inspector/virt-inspector.pod:259
22564 #, no-wrap
22565 msgid ""
22566 " <operatingsystems>\n"
22567 "   <operatingsystem>\n"
22568 "     ...\n"
22569 "     <applications>\n"
22570 "       <application>\n"
22571 "         <name>coreutils</name>\n"
22572 "         <version>8.5</version>\n"
22573 "         <release>1</release>\n"
22574 "       </application>\n"
22575 "\n"
22576 msgstr ""
22577
22578 #. type: textblock
22579 #: ../inspector/virt-inspector.pod:269
22580 msgid ""
22581 "The version and release fields may not be available for some types guests.  "
22582 "Other fields are possible, see L<guestfs(3)/"
22583 "guestfs_inspect_list_applications>."
22584 msgstr ""
22585
22586 #. type: =head2
22587 #: ../inspector/virt-inspector.pod:273
22588 msgid "E<lt>drive_mappingsE<gt>"
22589 msgstr ""
22590
22591 #. type: textblock
22592 #: ../inspector/virt-inspector.pod:275
22593 msgid ""
22594 "For operating systems like Windows which use drive letters, virt-inspector "
22595 "is able to find out how drive letters map to filesystems."
22596 msgstr ""
22597
22598 #. type: verbatim
22599 #: ../inspector/virt-inspector.pod:279
22600 #, no-wrap
22601 msgid ""
22602 " <operatingsystems>\n"
22603 "   <operatingsystem>\n"
22604 "     ...\n"
22605 "     <drive_mappings>\n"
22606 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22607 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22608 "     </drive_mappings>\n"
22609 "\n"
22610 msgstr ""
22611
22612 #. type: textblock
22613 #: ../inspector/virt-inspector.pod:287
22614 msgid ""
22615 "In the example above, drive C maps to the filesystem on the second partition "
22616 "on the first disk, and drive E maps to the filesystem on the first partition "
22617 "on the second disk."
22618 msgstr ""
22619
22620 #. type: textblock
22621 #: ../inspector/virt-inspector.pod:291
22622 msgid ""
22623 "Note that this only covers permanent local filesystem mappings, not things "
22624 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22625 "here."
22626 msgstr ""
22627
22628 #. type: =head2
22629 #: ../inspector/virt-inspector.pod:295
22630 msgid "E<lt>iconE<gt>"
22631 msgstr ""
22632
22633 #. type: textblock
22634 #: ../inspector/virt-inspector.pod:297
22635 msgid ""
22636 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22637 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22638 "very large and high quality."
22639 msgstr ""
22640
22641 #. type: verbatim
22642 #: ../inspector/virt-inspector.pod:301
22643 #, no-wrap
22644 msgid ""
22645 " <operatingsystems>\n"
22646 "   <operatingsystem>\n"
22647 "     ...\n"
22648 "     <icon>\n"
22649 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22650 "       [... many lines of base64 data ...]\n"
22651 "     </icon>\n"
22652 "\n"
22653 msgstr ""
22654
22655 #. type: textblock
22656 #: ../inspector/virt-inspector.pod:309
22657 msgid ""
22658 "To display the icon, you have to extract it and convert the base64 data back "
22659 "to a binary file.  Use an XPath query or simply an editor to extract the "
22660 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22661 "to a PNG file:"
22662 msgstr ""
22663
22664 #. type: verbatim
22665 #: ../inspector/virt-inspector.pod:314
22666 #, no-wrap
22667 msgid ""
22668 " base64 -i -d < icon.data > icon.png\n"
22669 "\n"
22670 msgstr ""
22671
22672 #. type: =head2
22673 #: ../inspector/virt-inspector.pod:316
22674 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22675 msgstr ""
22676
22677 #. type: textblock
22678 #: ../inspector/virt-inspector.pod:318
22679 msgid ""
22680 "Virt-inspector can detect some operating system installers on install disks, "
22681 "live CDs, bootable USB keys and more."
22682 msgstr ""
22683
22684 #. type: textblock
22685 #: ../inspector/virt-inspector.pod:321
22686 msgid ""
22687 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22688 "fields may be present to indicate a live CD, network installer, or one part "
22689 "of a multipart CD.  For example:"
22690 msgstr ""
22691
22692 #. type: verbatim
22693 #: ../inspector/virt-inspector.pod:325
22694 #, no-wrap
22695 msgid ""
22696 " <operatingsystems>\n"
22697 "   <operatingsystem>\n"
22698 "     <root>/dev/sda</root>\n"
22699 "     <name>linux</name>\n"
22700 "     <arch>i386</arch>\n"
22701 "     <distro>ubuntu</distro>\n"
22702 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
22703 "     <major_version>10</major_version>\n"
22704 "     <minor_version>10</minor_version>\n"
22705 "     <format>installer</format>\n"
22706 "     <live/>\n"
22707 "\n"
22708 msgstr ""
22709
22710 #. type: =head1
22711 #: ../inspector/virt-inspector.pod:337
22712 msgid "XPATH QUERIES"
22713 msgstr ""
22714
22715 #. type: textblock
22716 #: ../inspector/virt-inspector.pod:339
22717 msgid ""
22718 "Virt-inspector includes built in support for running XPath queries.  The "
22719 "reason for including XPath support directly in virt-inspector is simply that "
22720 "there are no good and widely available command line programs that can do "
22721 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
22722 "available on Red Hat Enterprise Linux."
22723 msgstr ""
22724
22725 #. type: textblock
22726 #: ../inspector/virt-inspector.pod:346
22727 msgid ""
22728 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
22729 "mode, virt-inspector simply reads XML from stdin and outputs the query "
22730 "result on stdout.  All other inspection features are disabled in this mode."
22731 msgstr ""
22732
22733 #. type: verbatim
22734 #: ../inspector/virt-inspector.pod:353
22735 #, no-wrap
22736 msgid ""
22737 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
22738 " <filesystems>\n"
22739 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22740 "        <type>ext4</type>\n"
22741 " [...]\n"
22742 "\n"
22743 msgstr ""
22744
22745 #. type: verbatim
22746 #: ../inspector/virt-inspector.pod:359
22747 #, no-wrap
22748 msgid ""
22749 " $ virt-inspector -d Guest | \\\n"
22750 "     virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22751 " ext4\n"
22752 "\n"
22753 msgstr ""
22754
22755 #. type: verbatim
22756 #: ../inspector/virt-inspector.pod:363
22757 #, no-wrap
22758 msgid ""
22759 " $ virt-inspector -d Guest | \\\n"
22760 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
22761 " [displays the guest icon, if there is one]\n"
22762 "\n"
22763 msgstr ""
22764
22765 #. type: =head1
22766 #: ../inspector/virt-inspector.pod:374
22767 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22768 msgstr ""
22769
22770 #. type: textblock
22771 #: ../inspector/virt-inspector.pod:376
22772 msgid ""
22773 "Early versions of libguestfs shipped with a different virt-inspector program "
22774 "written in Perl (the current version is written in C).  The XML output of "
22775 "the Perl virt-inspector was different and it could also output in other "
22776 "formats like text."
22777 msgstr ""
22778
22779 #. type: textblock
22780 #: ../inspector/virt-inspector.pod:381
22781 msgid ""
22782 "The old virt-inspector is no longer supported or shipped with libguestfs."
22783 msgstr ""
22784
22785 #. type: textblock
22786 #: ../inspector/virt-inspector.pod:384
22787 msgid ""
22788 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22789 "versions of virt-inspector with different names:"
22790 msgstr ""
22791
22792 #. type: verbatim
22793 #: ../inspector/virt-inspector.pod:387
22794 #, no-wrap
22795 msgid ""
22796 " virt-inspector     Old Perl version.\n"
22797 " virt-inspector2    New C version.\n"
22798 "\n"
22799 msgstr ""
22800
22801 #. type: textblock
22802 #: ../inspector/virt-inspector.pod:397
22803 msgid ""
22804 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22805 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22806 msgstr ""
22807
22808 #. type: textblock
22809 #: ../inspector/virt-inspector.pod:414
22810 msgid "Matthew Booth L<mbooth@redhat.com>"
22811 msgstr ""
22812
22813 #. type: textblock
22814 #: ../java/examples/guestfs-java.pod:5
22815 msgid "guestfs-java - How to use libguestfs from Java"
22816 msgstr ""
22817
22818 #. type: verbatim
22819 #: ../java/examples/guestfs-java.pod:9
22820 #, no-wrap
22821 msgid ""
22822 " import com.redhat.et.libguestfs.*;\n"
22823 " \n"
22824 msgstr ""
22825
22826 #. type: verbatim
22827 #: ../java/examples/guestfs-java.pod:11
22828 #, no-wrap
22829 msgid ""
22830 " GuestFS g = new GuestFS ();\n"
22831 " g.add_drive_opts (\"disk.img\", null);\n"
22832 " g.launch ();\n"
22833 "\n"
22834 msgstr ""
22835
22836 #. type: textblock
22837 #: ../java/examples/guestfs-java.pod:17
22838 msgid ""
22839 "This manual page documents how to call libguestfs from the Java programming "
22840 "language.  This page just documents the differences from the C API and gives "
22841 "some examples.  If you are not familiar with using libguestfs, you also need "
22842 "to read L<guestfs(3)>."
22843 msgstr ""
22844
22845 #. type: =head2
22846 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22847 msgid "CLOSING THE HANDLE"
22848 msgstr ""
22849
22850 #. type: textblock
22851 #: ../java/examples/guestfs-java.pod:24
22852 msgid ""
22853 "The handle is closed when it is reaped by the garbage collector.  Because "
22854 "libguestfs handles include a lot of state, it is also possible to close (and "
22855 "hence free) them explicitly by calling the C<close> method."
22856 msgstr ""
22857
22858 #. type: =head2
22859 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22860 #: ../python/examples/guestfs-python.pod:21
22861 #: ../ruby/examples/guestfs-ruby.pod:22
22862 msgid "EXCEPTIONS"
22863 msgstr "ВИНЯТКИ"
22864
22865 #. type: textblock
22866 #: ../java/examples/guestfs-java.pod:31
22867 msgid ""
22868 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22869 "exception.  This has a single parameter which is the error message (a "
22870 "C<String>)."
22871 msgstr ""
22872
22873 #. type: textblock
22874 #: ../java/examples/guestfs-java.pod:35
22875 msgid "Calling any method on a closed handle raises the same exception."
22876 msgstr ""
22877
22878 #. type: textblock
22879 #: ../java/examples/guestfs-java.pod:47
22880 msgid ""
22881 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22882 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22883 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22884 msgstr ""
22885
22886 #. type: textblock
22887 #: ../ocaml/examples/guestfs-ocaml.pod:5
22888 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22889 msgstr ""
22890
22891 #. type: textblock
22892 #: ../ocaml/examples/guestfs-ocaml.pod:9
22893 msgid "Module style:"
22894 msgstr ""
22895
22896 #. type: verbatim
22897 #: ../ocaml/examples/guestfs-ocaml.pod:11
22898 #, no-wrap
22899 msgid ""
22900 " let g = Guestfs.create () in\n"
22901 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22902 " Guestfs.launch g;\n"
22903 "\n"
22904 msgstr ""
22905
22906 #. type: textblock
22907 #: ../ocaml/examples/guestfs-ocaml.pod:15
22908 msgid "Object-oriented style:"
22909 msgstr ""
22910
22911 #. type: verbatim
22912 #: ../ocaml/examples/guestfs-ocaml.pod:17
22913 #, no-wrap
22914 msgid ""
22915 " let g = new Guestfs.guestfs () in\n"
22916 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22917 " g#launch ();\n"
22918 "\n"
22919 msgstr ""
22920
22921 #. type: verbatim
22922 #: ../ocaml/examples/guestfs-ocaml.pod:21
22923 #, no-wrap
22924 msgid ""
22925 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22926 "or:\n"
22927 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22928 "\n"
22929 msgstr ""
22930
22931 #. type: textblock
22932 #: ../ocaml/examples/guestfs-ocaml.pod:27
22933 msgid ""
22934 "This manual page documents how to call libguestfs from the OCaml programming "
22935 "language.  This page just documents the differences from the C API and gives "
22936 "some examples.  If you are not familiar with using libguestfs, you also need "
22937 "to read L<guestfs(3)>."
22938 msgstr ""
22939
22940 #. type: =head2
22941 #: ../ocaml/examples/guestfs-ocaml.pod:32
22942 msgid "PROGRAMMING STYLES"
22943 msgstr ""
22944
22945 #. type: textblock
22946 #: ../ocaml/examples/guestfs-ocaml.pod:34
22947 msgid ""
22948 "There are two different programming styles supported by the OCaml bindings.  "
22949 "You can use a module style, with each C function mapped to an OCaml function:"
22950 msgstr ""
22951
22952 #. type: verbatim
22953 #: ../ocaml/examples/guestfs-ocaml.pod:38
22954 #, no-wrap
22955 msgid ""
22956 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22957 "\n"
22958 msgstr ""
22959
22960 #. type: textblock
22961 #: ../ocaml/examples/guestfs-ocaml.pod:40
22962 msgid "becomes:"
22963 msgstr ""
22964
22965 #. type: verbatim
22966 #: ../ocaml/examples/guestfs-ocaml.pod:42
22967 #, no-wrap
22968 msgid ""
22969 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22970 "\n"
22971 msgstr ""
22972
22973 #. type: textblock
22974 #: ../ocaml/examples/guestfs-ocaml.pod:44
22975 msgid ""
22976 "Alternately you can use an object-oriented style, calling methods on the "
22977 "class C<Guestfs.guestfs>:"
22978 msgstr ""
22979
22980 #. type: verbatim
22981 #: ../ocaml/examples/guestfs-ocaml.pod:47
22982 #, no-wrap
22983 msgid ""
22984 " method set_verbose : bool -> unit\n"
22985 "\n"
22986 msgstr ""
22987
22988 #. type: textblock
22989 #: ../ocaml/examples/guestfs-ocaml.pod:49
22990 msgid ""
22991 "The object-oriented style is usually briefer, and the minor performance "
22992 "penalty isn't noticable in the general overhead of performing libguestfs "
22993 "functions."
22994 msgstr ""
22995
22996 #. type: textblock
22997 #: ../ocaml/examples/guestfs-ocaml.pod:55
22998 msgid ""
22999 "The handle is closed when it is reaped by the garbage collector.  Because "
23000 "libguestfs handles include a lot of state, it is also possible to close (and "
23001 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
23002 "method."
23003 msgstr ""
23004
23005 #. type: textblock
23006 #: ../ocaml/examples/guestfs-ocaml.pod:62
23007 msgid ""
23008 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23009 "exception.  This has a single parameter which is the error message (a "
23010 "string)."
23011 msgstr ""
23012
23013 #. type: textblock
23014 #: ../ocaml/examples/guestfs-ocaml.pod:66
23015 msgid ""
23016 "Calling any function/method on a closed handle raises C<Guestfs."
23017 "Handle_closed>.  The single parameter is the name of the function that you "
23018 "called."
23019 msgstr ""
23020
23021 #. type: textblock
23022 #: ../ocaml/examples/guestfs-ocaml.pod:80
23023 msgid ""
23024 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23025 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23026 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23027 msgstr ""
23028
23029 #. type: textblock
23030 #: ../perl/examples/guestfs-perl.pod:5
23031 msgid "guestfs-perl - How to use libguestfs from Perl"
23032 msgstr ""
23033
23034 #. type: verbatim
23035 #: ../perl/examples/guestfs-perl.pod:9
23036 #, no-wrap
23037 msgid ""
23038 " use Sys::Guestfs;\n"
23039 " \n"
23040 msgstr ""
23041
23042 #. type: verbatim
23043 #: ../perl/examples/guestfs-perl.pod:11
23044 #, no-wrap
23045 msgid ""
23046 " my $h = Sys::Guestfs->new ();\n"
23047 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23048 " $h->launch ();\n"
23049 " $h->mount_options ('', '/dev/sda1', '/');\n"
23050 " $h->touch ('/hello');\n"
23051 " $h->sync ();\n"
23052 "\n"
23053 msgstr ""
23054
23055 #. type: textblock
23056 #: ../perl/examples/guestfs-perl.pod:20
23057 msgid ""
23058 "This manual page documents how to call libguestfs from the Perl programming "
23059 "language.  This page just documents the differences from the C API and gives "
23060 "some examples.  If you are not familiar with using libguestfs, you also need "
23061 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
23062 msgstr ""
23063
23064 #. type: =head2
23065 #: ../perl/examples/guestfs-perl.pod:26
23066 msgid "ERRORS"
23067 msgstr "ПОМИЛКИ"
23068
23069 #. type: textblock
23070 #: ../perl/examples/guestfs-perl.pod:28
23071 msgid ""
23072 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23073 ">)."
23074 msgstr ""
23075
23076 #. type: textblock
23077 #: ../perl/examples/guestfs-perl.pod:41
23078 msgid ""
23079 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23080 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23081 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23082 msgstr ""
23083
23084 #. type: textblock
23085 #: ../python/examples/guestfs-python.pod:5
23086 msgid "guestfs-python - How to use libguestfs from Python"
23087 msgstr ""
23088
23089 #. type: verbatim
23090 #: ../python/examples/guestfs-python.pod:9
23091 #, no-wrap
23092 msgid ""
23093 " import guestfs\n"
23094 " g = guestfs.GuestFS ()\n"
23095 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23096 " g.launch\n"
23097 "\n"
23098 msgstr ""
23099
23100 #. type: textblock
23101 #: ../python/examples/guestfs-python.pod:16
23102 msgid ""
23103 "This manual page documents how to call libguestfs from the Python "
23104 "programming language.  This page just documents the differences from the C "
23105 "API and gives some examples.  If you are not familiar with using libguestfs, "
23106 "you also need to read L<guestfs(3)>."
23107 msgstr ""
23108
23109 #. type: textblock
23110 #: ../python/examples/guestfs-python.pod:23
23111 msgid ""
23112 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23113 "single string argument which is the error message."
23114 msgstr ""
23115
23116 #. type: =head2
23117 #: ../python/examples/guestfs-python.pod:26
23118 msgid "MORE DOCUMENTATION"
23119 msgstr ""
23120
23121 #. type: textblock
23122 #: ../python/examples/guestfs-python.pod:28
23123 msgid "Type:"
23124 msgstr "Тип:"
23125
23126 #. type: verbatim
23127 #: ../python/examples/guestfs-python.pod:30
23128 #, no-wrap
23129 msgid ""
23130 " $ python\n"
23131 " >>> import guestfs\n"
23132 " >>> help (guestfs)\n"
23133 "\n"
23134 msgstr ""
23135
23136 #. type: textblock
23137 #: ../python/examples/guestfs-python.pod:44
23138 msgid ""
23139 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23140 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23141 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23142 msgstr ""
23143
23144 #. type: textblock
23145 #: ../rescue/virt-rescue.pod:5
23146 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23147 msgstr ""
23148
23149 #. type: verbatim
23150 #: ../rescue/virt-rescue.pod:9
23151 #, no-wrap
23152 msgid ""
23153 " virt-rescue [--options] -d domname\n"
23154 "\n"
23155 msgstr ""
23156
23157 #. type: verbatim
23158 #: ../rescue/virt-rescue.pod:11
23159 #, no-wrap
23160 msgid ""
23161 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23162 "\n"
23163 msgstr ""
23164
23165 #. type: verbatim
23166 #: ../rescue/virt-rescue.pod:13
23167 #, fuzzy, no-wrap
23168 #| msgid ""
23169 #| " virt-filesystems --format=raw -a disk.img\n"
23170 #| "\n"
23171 msgid ""
23172 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
23173 "\n"
23174 msgstr ""
23175 " virt-filesystems --format=raw -a диск.img\n"
23176 "\n"
23177
23178 #. type: verbatim
23179 #: ../rescue/virt-rescue.pod:17
23180 #, no-wrap
23181 msgid ""
23182 " virt-rescue [--options] domname\n"
23183 "\n"
23184 msgstr ""
23185
23186 #. type: verbatim
23187 #: ../rescue/virt-rescue.pod:19
23188 #, no-wrap
23189 msgid ""
23190 " virt-rescue [--options] disk.img [disk.img ...]\n"
23191 "\n"
23192 msgstr ""
23193
23194 #. type: textblock
23195 #: ../rescue/virt-rescue.pod:23
23196 msgid ""
23197 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23198 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23199 "you from doing this, but doesn't catch all cases."
23200 msgstr ""
23201
23202 #. type: textblock
23203 #: ../rescue/virt-rescue.pod:27
23204 msgid ""
23205 "However if you use the I<--ro> (read only) option, then you can attach a "
23206 "shell to a live virtual machine.  The results might be strange or "
23207 "inconsistent at times but you won't get disk corruption."
23208 msgstr ""
23209
23210 #. type: textblock
23211 #: ../rescue/virt-rescue.pod:33
23212 msgid ""
23213 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23214 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23215 "recovery tools which you can use to examine or rescue a virtual machine or "
23216 "disk image."
23217 msgstr ""
23218
23219 #. type: textblock
23220 #: ../rescue/virt-rescue.pod:38
23221 msgid ""
23222 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23223 "on disk image(s):"
23224 msgstr ""
23225
23226 #. type: verbatim
23227 #: ../rescue/virt-rescue.pod:41
23228 #, no-wrap
23229 msgid ""
23230 " virt-rescue -d GuestName\n"
23231 "\n"
23232 msgstr ""
23233
23234 #. type: verbatim
23235 #: ../rescue/virt-rescue.pod:43
23236 #, no-wrap
23237 msgid ""
23238 " virt-rescue --ro -a /path/to/disk.img\n"
23239 "\n"
23240 msgstr ""
23241
23242 #. type: verbatim
23243 #: ../rescue/virt-rescue.pod:45
23244 #, no-wrap
23245 msgid ""
23246 " virt-rescue -a /dev/sdc\n"
23247 "\n"
23248 msgstr ""
23249
23250 #. type: textblock
23251 #: ../rescue/virt-rescue.pod:47
23252 msgid "For live VMs you I<must> use the --ro option."
23253 msgstr ""
23254
23255 #. type: textblock
23256 #: ../rescue/virt-rescue.pod:49
23257 msgid ""
23258 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23259 "in an interactive bash shell where you can use many ordinary Linux "
23260 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23261 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23262 "is an empty directory called C</sysroot> where you can mount filesystems."
23263 msgstr ""
23264
23265 #. type: textblock
23266 #: ../rescue/virt-rescue.pod:56
23267 msgid ""
23268 "You can get virt-rescue to suggest mount commands for you by using the I<--"
23269 "suggest> option (in another terminal):"
23270 msgstr ""
23271
23272 #. type: verbatim
23273 #: ../rescue/virt-rescue.pod:59
23274 #, no-wrap
23275 msgid ""
23276 " $ virt-rescue --suggest -d Fedora15\n"
23277 " Inspecting the virtual machine or disk image ...\n"
23278 " \n"
23279 msgstr ""
23280
23281 #. type: verbatim
23282 #: ../rescue/virt-rescue.pod:62
23283 #, no-wrap
23284 msgid ""
23285 " This disk contains one or more operating systems.  You can use these\n"
23286 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
23287 " filesystems.\n"
23288 " \n"
23289 msgstr ""
23290
23291 #. type: verbatim
23292 #: ../rescue/virt-rescue.pod:66
23293 #, no-wrap
23294 msgid ""
23295 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
23296 " # type: linux, distro: fedora, version: 15.0\n"
23297 " # Fedora release 15 (Lovelock)\n"
23298 " \n"
23299 msgstr ""
23300
23301 #. type: verbatim
23302 #: ../rescue/virt-rescue.pod:70
23303 #, no-wrap
23304 msgid ""
23305 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
23306 " mount /dev/vda1 /sysroot/boot\n"
23307 " mount --bind /dev /sysroot/dev\n"
23308 " mount --bind /dev/pts /sysroot/dev/pts\n"
23309 " mount --bind /proc /sysroot/proc\n"
23310 " mount --bind /sys /sysroot/sys\n"
23311 "\n"
23312 msgstr ""
23313
23314 #. type: textblock
23315 #: ../rescue/virt-rescue.pod:77
23316 msgid ""
23317 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
23318 "(with L<parted(8)>) and mount them by hand:"
23319 msgstr ""
23320
23321 #. type: verbatim
23322 #: ../rescue/virt-rescue.pod:80
23323 #, no-wrap
23324 msgid ""
23325 " ><rescue> lvs\n"
23326 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23327 " lv_root vg_f15x32 -wi-a-   8.83G\n"
23328 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
23329 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
23330 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
23331 " ><rescue> ls /sysroot\n"
23332 "\n"
23333 msgstr ""
23334
23335 #. type: textblock
23336 #: ../rescue/virt-rescue.pod:88
23337 msgid ""
23338 "Another command to list available filesystems is L<virt-filesystems(1)>."
23339 msgstr ""
23340
23341 #. type: textblock
23342 #: ../rescue/virt-rescue.pod:91
23343 msgid ""
23344 "To run commands in a Linux guest (for example, grub), you should chroot into "
23345 "the /sysroot directory first:"
23346 msgstr ""
23347
23348 #. type: verbatim
23349 #: ../rescue/virt-rescue.pod:94
23350 #, no-wrap
23351 msgid ""
23352 " ><rescue> chroot /sysroot\n"
23353 "\n"
23354 msgstr ""
23355
23356 #. type: textblock
23357 #: ../rescue/virt-rescue.pod:98
23358 msgid ""
23359 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23360 "virtual machine.  For example you can use it on a blank file if you want to "
23361 "partition that file (although we would recommend using L<guestfish(1)> "
23362 "instead as it is more suitable for this purpose).  You can even use virt-"
23363 "rescue on things like SD cards."
23364 msgstr ""
23365
23366 #. type: textblock
23367 #: ../rescue/virt-rescue.pod:104
23368 msgid ""
23369 "Virt-rescue does not require root.  You only need to run it as root if you "
23370 "need root to open the disk image."
23371 msgstr ""
23372
23373 #. type: textblock
23374 #: ../rescue/virt-rescue.pod:107
23375 msgid ""
23376 "This tool is just designed for quick interactive hacking on a virtual "
23377 "machine.  For more structured access to a virtual machine disk image, you "
23378 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23379 "make scripted changes to guests, use L<guestfish(1)>."
23380 msgstr ""
23381
23382 #. type: =item
23383 #: ../rescue/virt-rescue.pod:131
23384 msgid "B<--append kernelopts>"
23385 msgstr "B<--append параметри_ядра>"
23386
23387 #. type: textblock
23388 #: ../rescue/virt-rescue.pod:133
23389 msgid "Pass additional options to the rescue kernel."
23390 msgstr ""
23391
23392 #. type: verbatim
23393 #: ../rescue/virt-rescue.pod:163
23394 #, no-wrap
23395 msgid ""
23396 " virt-rescue --format=raw -a disk.img\n"
23397 "\n"
23398 msgstr ""
23399
23400 #. type: verbatim
23401 #: ../rescue/virt-rescue.pod:167
23402 #, no-wrap
23403 msgid ""
23404 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23405 "\n"
23406 msgstr ""
23407
23408 #. type: =item
23409 #: ../rescue/virt-rescue.pod:176
23410 msgid "B<-m MB>"
23411 msgstr "B<-m МБ>"
23412
23413 #. type: =item
23414 #: ../rescue/virt-rescue.pod:178
23415 msgid "B<--memsize MB>"
23416 msgstr "B<--memsize МБ>"
23417
23418 #. type: textblock
23419 #: ../rescue/virt-rescue.pod:180
23420 msgid ""
23421 "Change the amount of memory allocated to the rescue system.  The default is "
23422 "set by libguestfs and is small but adequate for running system tools.  The "
23423 "occasional program might need more memory.  The parameter is specified in "
23424 "megabytes."
23425 msgstr ""
23426
23427 #. type: =item
23428 #: ../rescue/virt-rescue.pod:185
23429 msgid "B<--network>"
23430 msgstr "B<--network>"
23431
23432 #. type: textblock
23433 #: ../rescue/virt-rescue.pod:187
23434 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23435 msgstr ""
23436
23437 #. type: textblock
23438 #: ../rescue/virt-rescue.pod:193
23439 msgid "Open the image read-only."
23440 msgstr ""
23441
23442 #. type: textblock
23443 #: ../rescue/virt-rescue.pod:203
23444 msgid ""
23445 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
23446 "SELINUX> before using this option."
23447 msgstr ""
23448
23449 #. type: =item
23450 #: ../rescue/virt-rescue.pod:206
23451 msgid "B<--smp> N"
23452 msgstr ""
23453
23454 #. type: textblock
23455 #: ../rescue/virt-rescue.pod:208
23456 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23457 msgstr ""
23458
23459 #. type: =item
23460 #: ../rescue/virt-rescue.pod:210
23461 #, fuzzy
23462 #| msgid "B<--quiet>"
23463 msgid "B<--suggest>"
23464 msgstr "B<--quiet>"
23465
23466 #. type: textblock
23467 #: ../rescue/virt-rescue.pod:212
23468 msgid ""
23469 "Inspect the disk image and suggest what mount commands should be used to "
23470 "mount the disks.  You should use the I<--suggest> option in a second "
23471 "terminal, then paste the commands into another virt-rescue."
23472 msgstr ""
23473
23474 #. type: textblock
23475 #: ../rescue/virt-rescue.pod:216
23476 msgid ""
23477 "This option implies I<--ro> and is safe to use even if the guest is up or if "
23478 "another virt-rescue is running."
23479 msgstr ""
23480
23481 #. type: textblock
23482 #: ../rescue/virt-rescue.pod:235
23483 msgid ""
23484 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23485 "are done read-write."
23486 msgstr ""
23487
23488 #. type: textblock
23489 #: ../rescue/virt-rescue.pod:248
23490 msgid "Previous versions of virt-rescue allowed you to write either:"
23491 msgstr ""
23492
23493 #. type: verbatim
23494 #: ../rescue/virt-rescue.pod:250
23495 #, no-wrap
23496 msgid ""
23497 " virt-rescue disk.img [disk.img ...]\n"
23498 "\n"
23499 msgstr ""
23500
23501 #. type: verbatim
23502 #: ../rescue/virt-rescue.pod:254
23503 #, no-wrap
23504 msgid ""
23505 " virt-rescue guestname\n"
23506 "\n"
23507 msgstr ""
23508
23509 #. type: =head1
23510 #: ../rescue/virt-rescue.pod:262
23511 msgid "NETWORK"
23512 msgstr "МЕРЕЖА"
23513
23514 #. type: textblock
23515 #: ../rescue/virt-rescue.pod:264
23516 msgid ""
23517 "Adding the I<--network> option enables QEMU user networking in the rescue "
23518 "appliance.  There are some differences between user networking and ordinary "
23519 "networking:"
23520 msgstr ""
23521
23522 #. type: =item
23523 #: ../rescue/virt-rescue.pod:270
23524 msgid "ping does not work"
23525 msgstr ""
23526
23527 #. type: textblock
23528 #: ../rescue/virt-rescue.pod:272
23529 msgid ""
23530 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23531 "send the ping packets, and because virt-rescue must be able to run as non-"
23532 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
23533 "The ping command will appear to resolve addresses but will not be able to "
23534 "send or receive any packets.  This does not mean that the network is not "
23535 "working."
23536 msgstr ""
23537
23538 #. type: =item
23539 #: ../rescue/virt-rescue.pod:279
23540 msgid "cannot receive connections"
23541 msgstr ""
23542
23543 #. type: textblock
23544 #: ../rescue/virt-rescue.pod:281
23545 msgid "QEMU user networking cannot receive incoming connections."
23546 msgstr ""
23547
23548 #. type: =item
23549 #: ../rescue/virt-rescue.pod:283
23550 msgid "making TCP connections"
23551 msgstr ""
23552
23553 #. type: textblock
23554 #: ../rescue/virt-rescue.pod:285
23555 msgid ""
23556 "The virt-rescue appliance needs to be small and so does not include many "
23557 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23558 "make TCP connections from the shell using the magical C</dev/tcp/"
23559 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23560 msgstr ""
23561
23562 #. type: verbatim
23563 #: ../rescue/virt-rescue.pod:290
23564 #, no-wrap
23565 msgid ""
23566 " exec 3<>/dev/tcp/redhat.com/80\n"
23567 " echo \"GET /\" >&3\n"
23568 " cat <&3\n"
23569 "\n"
23570 msgstr ""
23571
23572 #. type: textblock
23573 #: ../rescue/virt-rescue.pod:294
23574 msgid "See L<bash(1)> for more details."
23575 msgstr ""
23576
23577 #. type: textblock
23578 #: ../rescue/virt-rescue.pod:300
23579 msgid ""
23580 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
23581 "ENVIRONMENT VARIABLES> for the complete list."
23582 msgstr ""
23583
23584 #. type: textblock
23585 #: ../rescue/virt-rescue.pod:327
23586 #, fuzzy
23587 #| msgid ""
23588 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
23589 #| "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
23590 msgid ""
23591 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
23592 "filesystems(1)>, L<http://libguestfs.org/>."
23593 msgstr ""
23594 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
23595 "tar-out(1)>, L<http://libguestfs.org/>."
23596
23597 #. type: textblock
23598 #: ../resize/virt-resize.pod:5
23599 msgid "virt-resize - Resize a virtual machine disk"
23600 msgstr ""
23601
23602 #. type: verbatim
23603 #: ../resize/virt-resize.pod:9
23604 #, no-wrap
23605 msgid ""
23606 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23607 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23608 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23609 "\n"
23610 msgstr ""
23611
23612 #. type: textblock
23613 #: ../resize/virt-resize.pod:15
23614 msgid ""
23615 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23616 "larger or smaller overall, and resizing or deleting any partitions contained "
23617 "within."
23618 msgstr ""
23619
23620 #. type: textblock
23621 #: ../resize/virt-resize.pod:19
23622 msgid ""
23623 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23624 "not> be used on live virtual machines - for consistent results, shut the "
23625 "virtual machine down before resizing it."
23626 msgstr ""
23627
23628 #. type: textblock
23629 #: ../resize/virt-resize.pod:23
23630 msgid ""
23631 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23632 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23633 msgstr ""
23634
23635 #. type: =item
23636 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
23637 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
23638 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
23639 msgid "1."
23640 msgstr "1."
23641
23642 #. type: textblock
23643 #: ../resize/virt-resize.pod:33
23644 msgid ""
23645 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23646 "fill the extra 5GB of space."
23647 msgstr ""
23648
23649 #. type: verbatim
23650 #: ../resize/virt-resize.pod:36
23651 #, no-wrap
23652 msgid ""
23653 " virt-filesystems --long -h --all -a olddisk\n"
23654 " \n"
23655 msgstr ""
23656
23657 #. type: verbatim
23658 #: ../resize/virt-resize.pod:38
23659 #, no-wrap
23660 msgid ""
23661 " truncate -r olddisk newdisk\n"
23662 " truncate -s +5G newdisk\n"
23663 " \n"
23664 msgstr ""
23665
23666 #. type: verbatim
23667 #: ../resize/virt-resize.pod:41
23668 #, no-wrap
23669 msgid ""
23670 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23671 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23672 "\n"
23673 msgstr ""
23674
23675 #. type: =item
23676 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
23677 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
23678 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23679 msgid "2."
23680 msgstr "2."
23681
23682 #. type: textblock
23683 #: ../resize/virt-resize.pod:46
23684 msgid ""
23685 "As above, but make the /boot partition 200MB bigger, while giving the "
23686 "remaining space to /dev/sda2:"
23687 msgstr ""
23688
23689 #. type: verbatim
23690 #: ../resize/virt-resize.pod:49
23691 #, no-wrap
23692 msgid ""
23693 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23694 "   olddisk newdisk\n"
23695 "\n"
23696 msgstr ""
23697
23698 #. type: =item
23699 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
23700 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
23701 #: ../src/guestfs.pod:1451
23702 msgid "3."
23703 msgstr "3."
23704
23705 #. type: textblock
23706 #: ../resize/virt-resize.pod:54
23707 msgid ""
23708 "As in the first example, but expand a logical volume as the final step.  "
23709 "This is what you would typically use for Linux guests that use LVM:"
23710 msgstr ""
23711
23712 #. type: verbatim
23713 #: ../resize/virt-resize.pod:58
23714 #, no-wrap
23715 msgid ""
23716 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23717 "   olddisk newdisk\n"
23718 "\n"
23719 msgstr ""
23720
23721 #. type: =item
23722 #: ../resize/virt-resize.pod:61
23723 msgid "4."
23724 msgstr ""
23725
23726 #. type: textblock
23727 #: ../resize/virt-resize.pod:63
23728 msgid ""
23729 "As in the first example, but the output format will be qcow2 instead of a "
23730 "raw disk:"
23731 msgstr ""
23732
23733 #. type: verbatim
23734 #: ../resize/virt-resize.pod:66
23735 #, no-wrap
23736 msgid ""
23737 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23738 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23739 "\n"
23740 msgstr ""
23741
23742 #. type: =head1
23743 #: ../resize/virt-resize.pod:71
23744 msgid "DETAILED USAGE"
23745 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
23746
23747 #. type: =head2
23748 #: ../resize/virt-resize.pod:73
23749 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23750 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
23751
23752 #. type: =item
23753 #: ../resize/virt-resize.pod:77
23754 msgid "1. Shut down the virtual machine"
23755 msgstr ""
23756
23757 #. type: =item
23758 #: ../resize/virt-resize.pod:79
23759 msgid "2. Locate input disk image"
23760 msgstr ""
23761
23762 #. type: textblock
23763 #: ../resize/virt-resize.pod:81
23764 msgid ""
23765 "Locate the input disk image (ie. the file or device on the host containing "
23766 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23767 "dumpxml> like this to find the disk image name:"
23768 msgstr ""
23769
23770 #. type: verbatim
23771 #: ../resize/virt-resize.pod:85
23772 #, no-wrap
23773 msgid ""
23774 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23775 " Found 1 nodes:\n"
23776 " -- NODE --\n"
23777 " <source dev=\"/dev/vg/lv_guest\" />\n"
23778 "\n"
23779 msgstr ""
23780
23781 #. type: =item
23782 #: ../resize/virt-resize.pod:90
23783 msgid "3. Look at current sizing"
23784 msgstr ""
23785
23786 #. type: textblock
23787 #: ../resize/virt-resize.pod:92
23788 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23789 msgstr ""
23790
23791 #. type: verbatim
23792 #: ../resize/virt-resize.pod:95
23793 #, no-wrap
23794 msgid ""
23795 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23796 " Name       Type       Size  Parent\n"
23797 " /dev/sda1  partition  101M  /dev/sda\n"
23798 " /dev/sda2  partition  7.9G  /dev/sda\n"
23799 " /dev/sda   device     8.0G  -\n"
23800 "\n"
23801 msgstr ""
23802
23803 #. type: textblock
23804 #: ../resize/virt-resize.pod:101
23805 msgid ""
23806 "(This example is a virtual machine with an 8 GB disk which we would like to "
23807 "expand up to 10 GB)."
23808 msgstr ""
23809
23810 #. type: =item
23811 #: ../resize/virt-resize.pod:104
23812 msgid "4. Create output disk"
23813 msgstr ""
23814
23815 #. type: textblock
23816 #: ../resize/virt-resize.pod:106
23817 msgid ""
23818 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23819 "to store the resized output disk."
23820 msgstr ""
23821
23822 #. type: textblock
23823 #: ../resize/virt-resize.pod:109
23824 msgid ""
23825 "To store the resized disk image in a file, create a file of a suitable size:"
23826 msgstr ""
23827
23828 #. type: verbatim
23829 #: ../resize/virt-resize.pod:112
23830 #, no-wrap
23831 msgid ""
23832 " # rm -f outdisk\n"
23833 " # truncate -s 10G outdisk\n"
23834 "\n"
23835 msgstr ""
23836
23837 #. type: textblock
23838 #: ../resize/virt-resize.pod:115
23839 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23840 msgstr ""
23841
23842 #. type: verbatim
23843 #: ../resize/virt-resize.pod:117
23844 #, no-wrap
23845 msgid ""
23846 " # lvcreate -L 10G -n lv_name vg_name\n"
23847 "\n"
23848 msgstr ""
23849
23850 #. type: textblock
23851 #: ../resize/virt-resize.pod:119
23852 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23853 msgstr ""
23854
23855 #. type: verbatim
23856 #: ../resize/virt-resize.pod:121
23857 #, no-wrap
23858 msgid ""
23859 " # virsh pool-list\n"
23860 " # virsh vol-create-as poolname newvol 10G\n"
23861 "\n"
23862 msgstr ""
23863
23864 #. type: =item
23865 #: ../resize/virt-resize.pod:124
23866 msgid "5. Resize"
23867 msgstr "5. Зміна розміру"
23868
23869 #. type: textblock
23870 #: ../resize/virt-resize.pod:126
23871 msgid ""
23872 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23873 "file) and the output disk.  The output disk is the one created in the "
23874 "previous step."
23875 msgstr ""
23876
23877 #. type: verbatim
23878 #: ../resize/virt-resize.pod:130
23879 #, no-wrap
23880 msgid ""
23881 " # virt-resize indisk outdisk\n"
23882 "\n"
23883 msgstr ""
23884
23885 #. type: textblock
23886 #: ../resize/virt-resize.pod:132
23887 msgid ""
23888 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23889 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23890 "larger, then an extra, empty partition is created at the end of the disk "
23891 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23892 "error."
23893 msgstr ""
23894
23895 #. type: textblock
23896 #: ../resize/virt-resize.pod:138
23897 msgid ""
23898 "More realistically you'd want to expand existing partitions in the disk "
23899 "image by passing extra options (for the full list see the L</OPTIONS> "
23900 "section below)."
23901 msgstr ""
23902
23903 #. type: textblock
23904 #: ../resize/virt-resize.pod:142
23905 msgid ""
23906 "L</--expand> is the most useful option.  It expands the named partition "
23907 "within the disk to fill any extra space:"
23908 msgstr ""
23909
23910 #. type: verbatim
23911 #: ../resize/virt-resize.pod:145
23912 #, no-wrap
23913 msgid ""
23914 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23915 "\n"
23916 msgstr ""
23917
23918 #. type: textblock
23919 #: ../resize/virt-resize.pod:147
23920 msgid ""
23921 "(In this case, an extra partition is I<not> created at the end of the disk, "
23922 "because there will be no unused space)."
23923 msgstr ""
23924
23925 #. type: textblock
23926 #: ../resize/virt-resize.pod:150
23927 msgid ""
23928 "L</--resize> is the other commonly used option.  The following would "
23929 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23930 "rest of the available space:"
23931 msgstr ""
23932
23933 #. type: verbatim
23934 #: ../resize/virt-resize.pod:154
23935 #, no-wrap
23936 msgid ""
23937 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23938 "     indisk outdisk\n"
23939 "\n"
23940 msgstr ""
23941
23942 #. type: textblock
23943 #: ../resize/virt-resize.pod:157
23944 msgid ""
23945 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23946 "if virt-resize knows how, it will resize the contents, the equivalent of "
23947 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23948 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23949 "filesystems, so you would have to online resize them after booting the guest."
23950 msgstr ""
23951
23952 #. type: textblock
23953 #: ../resize/virt-resize.pod:164
23954 msgid "Other options are covered below."
23955 msgstr ""
23956
23957 #. type: =item
23958 #: ../resize/virt-resize.pod:166
23959 msgid "6. Test"
23960 msgstr "6. Перевірка"
23961
23962 #. type: textblock
23963 #: ../resize/virt-resize.pod:168
23964 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23965 msgstr ""
23966
23967 #. type: textblock
23968 #: ../resize/virt-resize.pod:170
23969 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23970 msgstr ""
23971
23972 #. type: verbatim
23973 #: ../resize/virt-resize.pod:172
23974 #, no-wrap
23975 msgid ""
23976 " # virsh edit guestname\n"
23977 "\n"
23978 msgstr ""
23979
23980 #. type: textblock
23981 #: ../resize/virt-resize.pod:174
23982 msgid ""
23983 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23984 "html#elementsDisks>"
23985 msgstr ""
23986
23987 #. type: textblock
23988 #: ../resize/virt-resize.pod:177
23989 msgid "Then start up the domain with the new, resized disk:"
23990 msgstr ""
23991
23992 #. type: verbatim
23993 #: ../resize/virt-resize.pod:179
23994 #, no-wrap
23995 msgid ""
23996 " # virsh start guestname\n"
23997 "\n"
23998 msgstr ""
23999
24000 #. type: textblock
24001 #: ../resize/virt-resize.pod:181
24002 msgid ""
24003 "and check that it still works.  See also the L</NOTES> section below for "
24004 "additional information."
24005 msgstr ""
24006
24007 #. type: =item
24008 #: ../resize/virt-resize.pod:184
24009 msgid "7. Resize LVs etc inside the guest"
24010 msgstr ""
24011
24012 #. type: textblock
24013 #: ../resize/virt-resize.pod:186
24014 msgid "(This can also be done offline using L<guestfish(1)>)"
24015 msgstr ""
24016
24017 #. type: textblock
24018 #: ../resize/virt-resize.pod:188
24019 msgid ""
24020 "Once the guest has booted you should see the new space available, at least "
24021 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
24022 "may need to resize LVs inside PVs, and also resize filesystem types that "
24023 "virt-resize does not know how to expand."
24024 msgstr ""
24025
24026 #. type: =head2
24027 #: ../resize/virt-resize.pod:195
24028 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24029 msgstr ""
24030
24031 #. type: textblock
24032 #: ../resize/virt-resize.pod:197
24033 msgid ""
24034 "Shrinking is somewhat more complex than expanding, and only an overview is "
24035 "given here."
24036 msgstr ""
24037
24038 #. type: textblock
24039 #: ../resize/virt-resize.pod:200
24040 msgid ""
24041 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24042 "filesystems).  The user has to shrink content before passing the disk image "
24043 "to virt-resize, and virt-resize will check that the content has been shrunk "
24044 "properly."
24045 msgstr ""
24046
24047 #. type: textblock
24048 #: ../resize/virt-resize.pod:205
24049 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24050 msgstr ""
24051
24052 #. type: textblock
24053 #: ../resize/virt-resize.pod:207
24054 msgid ""
24055 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24056 "steps 3 and 4 above to allocate a new disk image."
24057 msgstr ""
24058
24059 #. type: textblock
24060 #: ../resize/virt-resize.pod:210
24061 msgid ""
24062 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24063 msgstr ""
24064
24065 #. type: =head2
24066 #: ../resize/virt-resize.pod:213
24067 msgid "IGNORING OR DELETING PARTITIONS"
24068 msgstr ""
24069
24070 #. type: textblock
24071 #: ../resize/virt-resize.pod:215
24072 msgid ""
24073 "virt-resize also gives a convenient way to ignore or delete partitions when "
24074 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24075 "up the copy where you don't care about the existing contents of a "
24076 "partition.  Deleting a partition removes it completely, but note that it "
24077 "also renumbers any partitions after the one which is deleted, which can "
24078 "leave some guests unbootable."
24079 msgstr ""
24080
24081 #. type: =head2
24082 #: ../resize/virt-resize.pod:222
24083 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24084 msgstr ""
24085
24086 #. type: textblock
24087 #: ../resize/virt-resize.pod:224
24088 msgid ""
24089 "If the input disk is in qcow2 format, then you may prefer that the output is "
24090 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
24091 "the fly.  The output format is simply determined by the format of the empty "
24092 "output container that you provide.  Thus to create qcow2 output, use:"
24093 msgstr ""
24094
24095 #. type: verbatim
24096 #: ../resize/virt-resize.pod:230
24097 #, no-wrap
24098 msgid ""
24099 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24100 "\n"
24101 msgstr ""
24102
24103 #. type: textblock
24104 #: ../resize/virt-resize.pod:232
24105 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24106 msgstr ""
24107
24108 #. type: textblock
24109 #: ../resize/virt-resize.pod:234
24110 msgid "Similarly, to get non-sparse raw output use:"
24111 msgstr ""
24112
24113 #. type: verbatim
24114 #: ../resize/virt-resize.pod:236
24115 #, no-wrap
24116 msgid ""
24117 " fallocate -l size outdisk\n"
24118 "\n"
24119 msgstr ""
24120
24121 #. type: textblock
24122 #: ../resize/virt-resize.pod:238
24123 msgid ""
24124 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24125 "dev/zero of=outdisk bs=1M count=..>)"
24126 msgstr ""
24127
24128 #. type: =head2
24129 #: ../resize/virt-resize.pod:241
24130 msgid "LOGICAL PARTITIONS"
24131 msgstr ""
24132
24133 #. type: textblock
24134 #: ../resize/virt-resize.pod:243
24135 msgid ""
24136 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24137 "tables) cannot be resized."
24138 msgstr ""
24139
24140 #. type: textblock
24141 #: ../resize/virt-resize.pod:246
24142 msgid ""
24143 "To understand what is going on, firstly one of the four partitions C</dev/"
24144 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
24145 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
24146 "type."
24147 msgstr ""
24148
24149 #. type: textblock
24150 #: ../resize/virt-resize.pod:251
24151 msgid "Logical partitions live inside the extended partition."
24152 msgstr ""
24153
24154 #. type: textblock
24155 #: ../resize/virt-resize.pod:253
24156 msgid ""
24157 "The extended partition can be expanded, but not shrunk (unless you force it, "
24158 "which is not advisable).  When the extended partition is copied across, all "
24159 "the logical partitions contained inside are copied over implicitly.  Virt-"
24160 "resize does not look inside the extended partition, so it copies the logical "
24161 "partitions blindly."
24162 msgstr ""
24163
24164 #. type: textblock
24165 #: ../resize/virt-resize.pod:259
24166 msgid ""
24167 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24168 "line.  Doing so will give an error."
24169 msgstr ""
24170
24171 #. type: textblock
24172 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24173 msgid "Display help."
24174 msgstr ""
24175
24176 #. type: =item
24177 #: ../resize/virt-resize.pod:270
24178 msgid "B<--align-first auto>"
24179 msgstr ""
24180
24181 #. type: =item
24182 #: ../resize/virt-resize.pod:272
24183 msgid "B<--align-first never>"
24184 msgstr ""
24185
24186 #. type: =item
24187 #: ../resize/virt-resize.pod:274
24188 msgid "B<--align-first always>"
24189 msgstr ""
24190
24191 #. type: textblock
24192 #: ../resize/virt-resize.pod:276
24193 msgid ""
24194 "Align the first partition for improved performance (see also the I<--"
24195 "alignment> option)."
24196 msgstr ""
24197
24198 #. type: textblock
24199 #: ../resize/virt-resize.pod:279
24200 msgid ""
24201 "The default is I<--align-first auto> which only aligns the first partition "
24202 "if it is safe to do so.  That is, only when we know how to fix the "
24203 "bootloader automatically, and at the moment that can only be done for "
24204 "Windows guests."
24205 msgstr ""
24206
24207 #. type: textblock
24208 #: ../resize/virt-resize.pod:284
24209 msgid ""
24210 "I<--align-first never> means we never move the first partition.  This is the "
24211 "safest option.  Try this if the guest does not boot after resizing."
24212 msgstr ""
24213
24214 #. type: textblock
24215 #: ../resize/virt-resize.pod:288
24216 msgid ""
24217 "I<--align-first always> means we always align the first partition (if it "
24218 "needs to be aligned).  For some guests this will break the bootloader, "
24219 "making the guest unbootable."
24220 msgstr ""
24221
24222 #. type: =item
24223 #: ../resize/virt-resize.pod:292
24224 msgid "B<--alignment N>"
24225 msgstr ""
24226
24227 #. type: textblock
24228 #: ../resize/virt-resize.pod:294
24229 msgid ""
24230 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24231 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24232 msgstr ""
24233
24234 #. type: textblock
24235 #: ../resize/virt-resize.pod:298
24236 msgid ""
24237 "Assuming 512 byte sector size inside the guest, here are some suitable "
24238 "values for this:"
24239 msgstr ""
24240
24241 #. type: =item
24242 #: ../resize/virt-resize.pod:303
24243 msgid "I<--alignment 1> (512 bytes)"
24244 msgstr ""
24245
24246 #. type: textblock
24247 #: ../resize/virt-resize.pod:305
24248 msgid ""
24249 "The partitions would be packed together as closely as possible, but would be "
24250 "completely unaligned.  In some cases this can cause very poor performance.  "
24251 "See L<virt-alignment-scan(1)> for further details."
24252 msgstr ""
24253
24254 #. type: =item
24255 #: ../resize/virt-resize.pod:309
24256 msgid "I<--alignment 8> (4K)"
24257 msgstr ""
24258
24259 #. type: textblock
24260 #: ../resize/virt-resize.pod:311
24261 msgid ""
24262 "This would be the minimum acceptable alignment for reasonable performance on "
24263 "modern hosts."
24264 msgstr ""
24265
24266 #. type: =item
24267 #: ../resize/virt-resize.pod:314
24268 msgid "I<--alignment 128> (64K)"
24269 msgstr ""
24270
24271 #. type: textblock
24272 #: ../resize/virt-resize.pod:316
24273 msgid ""
24274 "This alignment provides good performance when the host is using high end "
24275 "network storage."
24276 msgstr ""
24277
24278 #. type: =item
24279 #: ../resize/virt-resize.pod:319
24280 msgid "I<--alignment 2048> (1M)"
24281 msgstr ""
24282
24283 #. type: textblock
24284 #: ../resize/virt-resize.pod:321
24285 msgid ""
24286 "This is the standard alignment used by all newly installed guests since "
24287 "around 2008."
24288 msgstr ""
24289
24290 #. type: =item
24291 #: ../resize/virt-resize.pod:326
24292 msgid "B<-d>"
24293 msgstr "B<-d>"
24294
24295 #. type: =item
24296 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
24297 #: ../tools/virt-win-reg.pl:120
24298 msgid "B<--debug>"
24299 msgstr "B<--debug>"
24300
24301 #. type: textblock
24302 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24303 msgid "Enable debugging messages."
24304 msgstr ""
24305
24306 #. type: =item
24307 #: ../resize/virt-resize.pod:332
24308 msgid "B<--delete part>"
24309 msgstr "B<--delete розділ>"
24310
24311 #. type: textblock
24312 #: ../resize/virt-resize.pod:334
24313 msgid ""
24314 "Delete the named partition.  It would be more accurate to describe this as "
24315 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24316 "the original disk image is left intact."
24317 msgstr ""
24318
24319 #. type: textblock
24320 #: ../resize/virt-resize.pod:338
24321 msgid ""
24322 "Note that when you delete a partition, then anything contained in the "
24323 "partition is also deleted.  Furthermore, this causes any partitions that "
24324 "come after to be I<renumbered>, which can easily make your guest unbootable."
24325 msgstr ""
24326
24327 #. type: textblock
24328 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
24329 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
24330 msgid "You can give this option multiple times."
24331 msgstr ""
24332
24333 #. type: =item
24334 #: ../resize/virt-resize.pod:345
24335 msgid "B<--expand part>"
24336 msgstr "B<--expand розділ>"
24337
24338 #. type: textblock
24339 #: ../resize/virt-resize.pod:347
24340 msgid ""
24341 "Expand the named partition so it uses up all extra space (space left over "
24342 "after any other resize changes that you request have been done)."
24343 msgstr ""
24344
24345 #. type: textblock
24346 #: ../resize/virt-resize.pod:350
24347 msgid ""
24348 "If virt-resize knows how, it will expand the direct content of the "
24349 "partition.  For example, if the partition is an LVM PV, it will expand the "
24350 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24351 "content it doesn't know about alone."
24352 msgstr ""
24353
24354 #. type: textblock
24355 #: ../resize/virt-resize.pod:355
24356 msgid "Currently virt-resize can resize:"
24357 msgstr ""
24358
24359 #. type: textblock
24360 #: ../resize/virt-resize.pod:361
24361 msgid "ext2, ext3 and ext4 filesystems."
24362 msgstr ""
24363
24364 #. type: textblock
24365 #: ../resize/virt-resize.pod:365
24366 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24367 msgstr ""
24368
24369 #. type: textblock
24370 #: ../resize/virt-resize.pod:367
24371 msgid ""
24372 "The filesystem must have been shut down consistently last time it was used.  "
24373 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24374 "consistency check, so at the first boot after resizing Windows will check "
24375 "the disk."
24376 msgstr ""
24377
24378 #. type: textblock
24379 #: ../resize/virt-resize.pod:374
24380 msgid ""
24381 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24382 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24383 "resize LVs as desired after boot."
24384 msgstr ""
24385
24386 #. type: textblock
24387 #: ../resize/virt-resize.pod:380
24388 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24389 msgstr ""
24390
24391 #. type: textblock
24392 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
24393 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24394 msgstr ""
24395
24396 #. type: =item
24397 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
24398 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24399 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24400 msgid "B<--format> raw"
24401 msgstr "B<--format> raw"
24402
24403 #. type: textblock
24404 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
24405 msgid ""
24406 "Specify the format of the input disk image.  If this flag is not given then "
24407 "it is auto-detected from the image itself."
24408 msgstr ""
24409
24410 #. type: textblock
24411 #: ../resize/virt-resize.pod:394
24412 msgid ""
24413 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24414 "AND NON-SPARSE RAW FORMATS>."
24415 msgstr ""
24416
24417 #. type: =item
24418 #: ../resize/virt-resize.pod:397
24419 msgid "B<--ignore part>"
24420 msgstr "B<--ignore розділ>"
24421
24422 #. type: textblock
24423 #: ../resize/virt-resize.pod:399
24424 msgid ""
24425 "Ignore the named partition.  Effectively this means the partition is "
24426 "allocated on the destination disk, but the content is not copied across from "
24427 "the source disk.  The content of the partition will be blank (all zero "
24428 "bytes)."
24429 msgstr ""
24430
24431 #. type: =item
24432 #: ../resize/virt-resize.pod:406
24433 msgid "B<--LV-expand logvol>"
24434 msgstr "B<--LV-expand логічний_том>"
24435
24436 #. type: textblock
24437 #: ../resize/virt-resize.pod:408
24438 msgid ""
24439 "This takes the logical volume and, as a final step, expands it to fill all "
24440 "the space available in its volume group.  A typical usage, assuming a Linux "
24441 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24442 "lv_root> would be:"
24443 msgstr ""
24444
24445 #. type: verbatim
24446 #: ../resize/virt-resize.pod:413
24447 #, no-wrap
24448 msgid ""
24449 " virt-resize indisk outdisk \\\n"
24450 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24451 "\n"
24452 msgstr ""
24453
24454 #. type: textblock
24455 #: ../resize/virt-resize.pod:416
24456 msgid ""
24457 "This would first expand the partition (and PV), and then expand the root "
24458 "device to fill the extra space in the PV."
24459 msgstr ""
24460
24461 #. type: textblock
24462 #: ../resize/virt-resize.pod:419
24463 msgid ""
24464 "The contents of the LV are also resized if virt-resize knows how to do "
24465 "that.  You can stop virt-resize from trying to expand the content by using "
24466 "the option I<--no-expand-content>."
24467 msgstr ""
24468
24469 #. type: textblock
24470 #: ../resize/virt-resize.pod:423
24471 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24472 msgstr ""
24473
24474 #. type: textblock
24475 #: ../resize/virt-resize.pod:425
24476 msgid ""
24477 "You can give this option multiple times, I<but> it doesn't make sense to do "
24478 "this unless the logical volumes you specify are all in different volume "
24479 "groups."
24480 msgstr ""
24481
24482 #. type: =item
24483 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
24484 msgid "B<--machine-readable>"
24485 msgstr ""
24486
24487 #. type: textblock
24488 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
24489 msgid ""
24490 "This option is used to make the output more machine friendly when being "
24491 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24492 msgstr ""
24493
24494 #. type: =item
24495 #: ../resize/virt-resize.pod:437
24496 msgid "B<--dryrun>"
24497 msgstr "B<--dryrun>"
24498
24499 #. type: textblock
24500 #: ../resize/virt-resize.pod:439
24501 msgid "Print a summary of what would be done, but don't do anything."
24502 msgstr ""
24503
24504 #. type: =item
24505 #: ../resize/virt-resize.pod:441
24506 msgid "B<--no-copy-boot-loader>"
24507 msgstr "B<--no-copy-boot-loader>"
24508
24509 #. type: textblock
24510 #: ../resize/virt-resize.pod:443
24511 msgid ""
24512 "By default, virt-resize copies over some sectors at the start of the disk "
24513 "(up to the beginning of the first partition).  Commonly these sectors "
24514 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24515 "in order for the guest to boot correctly."
24516 msgstr ""
24517
24518 #. type: textblock
24519 #: ../resize/virt-resize.pod:448
24520 msgid ""
24521 "If you specify this flag, then this initial copy is not done.  You may need "
24522 "to reinstall the boot loader in this case."
24523 msgstr ""
24524
24525 #. type: =item
24526 #: ../resize/virt-resize.pod:451
24527 msgid "B<--no-extra-partition>"
24528 msgstr "B<--no-extra-partition>"
24529
24530 #. type: textblock
24531 #: ../resize/virt-resize.pod:453
24532 msgid ""
24533 "By default, virt-resize creates an extra partition if there is any extra, "
24534 "unused space after all resizing has happened.  Use this option to prevent "
24535 "the extra partition from being created.  If you do this then the extra space "
24536 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24537 "tool in the guest."
24538 msgstr ""
24539
24540 #. type: textblock
24541 #: ../resize/virt-resize.pod:459
24542 msgid ""
24543 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24544 "will be created."
24545 msgstr ""
24546
24547 #. type: =item
24548 #: ../resize/virt-resize.pod:462
24549 msgid "B<--no-expand-content>"
24550 msgstr "B<--no-expand-content>"
24551
24552 #. type: textblock
24553 #: ../resize/virt-resize.pod:464
24554 msgid ""
24555 "By default, virt-resize will try to expand the direct contents of "
24556 "partitions, if it knows how (see I<--expand> option above)."
24557 msgstr ""
24558
24559 #. type: textblock
24560 #: ../resize/virt-resize.pod:467
24561 msgid ""
24562 "If you give the I<--no-expand-content> option then virt-resize will not "
24563 "attempt this."
24564 msgstr ""
24565
24566 #. type: =item
24567 #: ../resize/virt-resize.pod:470
24568 msgid "B<--ntfsresize-force>"
24569 msgstr "B<--ntfsresize-force>"
24570
24571 #. type: textblock
24572 #: ../resize/virt-resize.pod:472
24573 msgid ""
24574 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24575 "the NTFS disk is marked as needing a consistency check.  You have to use "
24576 "this option if you want to resize a Windows guest multiple times without "
24577 "booting into Windows between each resize."
24578 msgstr ""
24579
24580 #. type: =item
24581 #: ../resize/virt-resize.pod:478
24582 msgid "B<--output-format> raw"
24583 msgstr "B<--output-format> raw"
24584
24585 #. type: textblock
24586 #: ../resize/virt-resize.pod:480
24587 msgid ""
24588 "Specify the format of the output disk image.  If this flag is not given then "
24589 "it is auto-detected from the image itself."
24590 msgstr ""
24591
24592 #. type: textblock
24593 #: ../resize/virt-resize.pod:486
24594 msgid ""
24595 "Note that this option I<does not create> the output format.  This option "
24596 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24597 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
24598 "SPARSE RAW FORMATS>."
24599 msgstr ""
24600
24601 #. type: textblock
24602 #: ../resize/virt-resize.pod:495
24603 msgid "Don't print the summary."
24604 msgstr ""
24605
24606 #. type: =item
24607 #: ../resize/virt-resize.pod:497
24608 msgid "B<--resize part=size>"
24609 msgstr "B<--resize розділ=розмір>"
24610
24611 #. type: textblock
24612 #: ../resize/virt-resize.pod:499
24613 msgid ""
24614 "Resize the named partition (expanding or shrinking it) so that it has the "
24615 "given size."
24616 msgstr ""
24617
24618 #. type: textblock
24619 #: ../resize/virt-resize.pod:502
24620 msgid ""
24621 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24622 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24623 "size; or as a relative number or percentage.  For example:"
24624 msgstr ""
24625
24626 #. type: verbatim
24627 #: ../resize/virt-resize.pod:508
24628 #, no-wrap
24629 msgid ""
24630 " --resize /dev/sda2=10G\n"
24631 "\n"
24632 msgstr ""
24633
24634 #. type: verbatim
24635 #: ../resize/virt-resize.pod:510
24636 #, no-wrap
24637 msgid ""
24638 " --resize /dev/sda4=90%\n"
24639 "\n"
24640 msgstr ""
24641
24642 #. type: verbatim
24643 #: ../resize/virt-resize.pod:512
24644 #, no-wrap
24645 msgid ""
24646 " --resize /dev/sda2=+1G\n"
24647 "\n"
24648 msgstr ""
24649
24650 #. type: verbatim
24651 #: ../resize/virt-resize.pod:514
24652 #, no-wrap
24653 msgid ""
24654 " --resize /dev/sda2=-200M\n"
24655 "\n"
24656 msgstr ""
24657
24658 #. type: verbatim
24659 #: ../resize/virt-resize.pod:516
24660 #, no-wrap
24661 msgid ""
24662 " --resize /dev/sda1=+128K\n"
24663 "\n"
24664 msgstr ""
24665
24666 #. type: verbatim
24667 #: ../resize/virt-resize.pod:518
24668 #, no-wrap
24669 msgid ""
24670 " --resize /dev/sda1=+10%\n"
24671 "\n"
24672 msgstr ""
24673
24674 #. type: verbatim
24675 #: ../resize/virt-resize.pod:520
24676 #, no-wrap
24677 msgid ""
24678 " --resize /dev/sda1=-10%\n"
24679 "\n"
24680 msgstr ""
24681
24682 #. type: textblock
24683 #: ../resize/virt-resize.pod:522
24684 msgid ""
24685 "You can increase the size of any partition.  Virt-resize will expand the "
24686 "direct content of the partition if it knows how (see I<--expand> below)."
24687 msgstr ""
24688
24689 #. type: textblock
24690 #: ../resize/virt-resize.pod:526
24691 msgid ""
24692 "You can only I<decrease> the size of partitions that contain filesystems or "
24693 "PVs which have already been shrunk.  Virt-resize will check this has been "
24694 "done before proceeding, or else will print an error (see also I<--resize-"
24695 "force>)."
24696 msgstr ""
24697
24698 #. type: =item
24699 #: ../resize/virt-resize.pod:533
24700 msgid "B<--resize-force part=size>"
24701 msgstr "B<--resize-force розділ=розмір>"
24702
24703 #. type: textblock
24704 #: ../resize/virt-resize.pod:535
24705 msgid ""
24706 "This is the same as I<--resize> except that it will let you decrease the "
24707 "size of any partition.  Generally this means you will lose any data which "
24708 "was at the end of the partition you shrink, but you may not care about that "
24709 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24710 "as a swap partition)."
24711 msgstr ""
24712
24713 #. type: textblock
24714 #: ../resize/virt-resize.pod:541
24715 msgid "See also the I<--ignore> option."
24716 msgstr ""
24717
24718 #. type: =item
24719 #: ../resize/virt-resize.pod:543
24720 msgid "B<--shrink part>"
24721 msgstr "B<--shrink розділ>"
24722
24723 #. type: textblock
24724 #: ../resize/virt-resize.pod:545
24725 msgid ""
24726 "Shrink the named partition until the overall disk image fits in the "
24727 "destination.  The named partition B<must> contain a filesystem or PV which "
24728 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24729 "online tools).  Virt-resize will check this and give an error if it has not "
24730 "been done."
24731 msgstr ""
24732
24733 #. type: textblock
24734 #: ../resize/virt-resize.pod:551
24735 msgid ""
24736 "The amount by which the overall disk must be shrunk (after carrying out all "
24737 "other operations requested by the user) is called the \"deficit\".  For "
24738 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24739 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24740 "would give an error unless the user specified a partition to shrink and that "
24741 "partition had more than a gigabyte of free space."
24742 msgstr ""
24743
24744 #. type: =head1
24745 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
24746 msgid "MACHINE READABLE OUTPUT"
24747 msgstr ""
24748
24749 #. type: textblock
24750 #: ../resize/virt-resize.pod:571
24751 msgid ""
24752 "The I<--machine-readable> option can be used to make the output more machine "
24753 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24754 "etc."
24755 msgstr ""
24756
24757 #. type: textblock
24758 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
24759 msgid "There are two ways to use this option."
24760 msgstr ""
24761
24762 #. type: textblock
24763 #: ../resize/virt-resize.pod:577
24764 msgid ""
24765 "Firstly use the option on its own to query the capabilities of the virt-"
24766 "resize binary.  Typical output looks like this:"
24767 msgstr ""
24768
24769 #. type: verbatim
24770 #: ../resize/virt-resize.pod:580
24771 #, no-wrap
24772 msgid ""
24773 " $ virt-resize --machine-readable\n"
24774 " virt-resize\n"
24775 " ntfsresize-force\n"
24776 " 32bitok\n"
24777 " ntfs\n"
24778 " btrfs\n"
24779 "\n"
24780 msgstr ""
24781
24782 #. type: textblock
24783 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
24784 msgid ""
24785 "A list of features is printed, one per line, and the program exits with "
24786 "status 0."
24787 msgstr ""
24788
24789 #. type: textblock
24790 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
24791 msgid ""
24792 "Secondly use the option in conjunction with other options to make the "
24793 "regular program output more machine friendly."
24794 msgstr ""
24795
24796 #. type: textblock
24797 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
24798 msgid "At the moment this means:"
24799 msgstr ""
24800
24801 #. type: textblock
24802 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
24803 msgid ""
24804 "Progress bar messages can be parsed from stdout by looking for this regular "
24805 "expression:"
24806 msgstr ""
24807
24808 #. type: verbatim
24809 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
24810 #, no-wrap
24811 msgid ""
24812 " ^[0-9]+/[0-9]+$\n"
24813 "\n"
24814 msgstr ""
24815
24816 #. type: textblock
24817 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
24818 msgid ""
24819 "The calling program should treat messages sent to stdout (except for "
24820 "progress bar messages) as status messages.  They can be logged and/or "
24821 "displayed to the user."
24822 msgstr ""
24823
24824 #. type: textblock
24825 #: ../resize/virt-resize.pod:612
24826 msgid ""
24827 "The calling program should treat messages sent to stderr as error messages.  "
24828 "In addition, virt-resize exits with a non-zero status code if there was a "
24829 "fatal error."
24830 msgstr ""
24831
24832 #. type: textblock
24833 #: ../resize/virt-resize.pod:618
24834 msgid ""
24835 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24836 "readable> option and will return an error."
24837 msgstr ""
24838
24839 #. type: =head2
24840 #: ../resize/virt-resize.pod:623
24841 msgid "\"Partition 1 does not end on cylinder boundary.\""
24842 msgstr ""
24843
24844 #. type: textblock
24845 #: ../resize/virt-resize.pod:625
24846 msgid ""
24847 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24848 "alignment> parameter).  Usually this means the partitions will not be "
24849 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24850 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24851 "drives.  Alignment of partitions to cylinders is not required by any modern "
24852 "operating system."
24853 msgstr ""
24854
24855 #. type: =head2
24856 #: ../resize/virt-resize.pod:632
24857 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24858 msgstr ""
24859
24860 #. type: textblock
24861 #: ../resize/virt-resize.pod:634
24862 msgid ""
24863 "In Windows Vista and later versions, Microsoft switched to using a separate "
24864 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24865 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24866 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24867 "the second partition (ie. C: drive)  should work."
24868 msgstr ""
24869
24870 #. type: textblock
24871 #: ../resize/virt-resize.pod:641
24872 msgid ""
24873 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24874 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24875 "it find errors) is nothing to worry about."
24876 msgstr ""
24877
24878 #. type: =head2
24879 #: ../resize/virt-resize.pod:645
24880 msgid "GUEST BOOT STUCK AT \"GRUB\""
24881 msgstr ""
24882
24883 #. type: textblock
24884 #: ../resize/virt-resize.pod:647
24885 msgid ""
24886 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24887 "printing C<GRUB> on the console, try reinstalling grub."
24888 msgstr ""
24889
24890 #. type: verbatim
24891 #: ../resize/virt-resize.pod:650
24892 #, no-wrap
24893 msgid ""
24894 " guestfish -i -a newdisk\n"
24895 " ><fs> cat /boot/grub/device.map\n"
24896 " # check the contents of this file are sensible or\n"
24897 " # edit the file if necessary\n"
24898 " ><fs> grub-install / /dev/vda\n"
24899 " ><fs> exit\n"
24900 "\n"
24901 msgstr ""
24902
24903 #. type: textblock
24904 #: ../resize/virt-resize.pod:657
24905 msgid ""
24906 "For more flexible guest reconfiguration, including if you need to specify "
24907 "other parameters to grub-install, use L<virt-rescue(1)>."
24908 msgstr ""
24909
24910 #. type: =head1
24911 #: ../resize/virt-resize.pod:660
24912 msgid "ALTERNATIVE TOOLS"
24913 msgstr ""
24914
24915 #. type: textblock
24916 #: ../resize/virt-resize.pod:662
24917 msgid ""
24918 "There are several proprietary tools for resizing partitions.  We won't "
24919 "mention any here."
24920 msgstr ""
24921
24922 #. type: textblock
24923 #: ../resize/virt-resize.pod:665
24924 msgid ""
24925 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24926 "operations on disk images.  They can resize and move partitions, but I don't "
24927 "think they can do anything with the contents, and they certainly don't "
24928 "understand LVM."
24929 msgstr ""
24930
24931 #. type: textblock
24932 #: ../resize/virt-resize.pod:670
24933 msgid ""
24934 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24935 "but at a much lower level.  You will probably end up hand-calculating sector "
24936 "offsets, which is something that virt-resize was designed to avoid.  If you "
24937 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24938 "I<--debug> flag."
24939 msgstr ""
24940
24941 #. type: textblock
24942 #: ../resize/virt-resize.pod:690
24943 msgid ""
24944 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24945 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24946 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24947 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24948 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24949 msgstr ""
24950
24951 #. type: textblock
24952 #: ../ruby/examples/guestfs-ruby.pod:5
24953 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24954 msgstr ""
24955
24956 #. type: verbatim
24957 #: ../ruby/examples/guestfs-ruby.pod:9
24958 #, no-wrap
24959 msgid ""
24960 " require 'guestfs'\n"
24961 " g = Guestfs::Guestfs.new()\n"
24962 " g.add_drive_opts(\"disk.img\",\n"
24963 "                  :readonly => 1, :format => \"raw\")\n"
24964 " g.launch()\n"
24965 "\n"
24966 msgstr ""
24967
24968 #. type: textblock
24969 #: ../ruby/examples/guestfs-ruby.pod:17
24970 msgid ""
24971 "This manual page documents how to call libguestfs from the Ruby programming "
24972 "language.  This page just documents the differences from the C API and gives "
24973 "some examples.  If you are not familiar with using libguestfs, you also need "
24974 "to read L<guestfs(3)>."
24975 msgstr ""
24976
24977 #. type: textblock
24978 #: ../ruby/examples/guestfs-ruby.pod:24
24979 msgid ""
24980 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24981 "This has a single parameter which is the error message (a string)."
24982 msgstr ""
24983
24984 #. type: textblock
24985 #: ../ruby/examples/guestfs-ruby.pod:38
24986 msgid ""
24987 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24988 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24989 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24990 msgstr ""
24991
24992 #. type: textblock
24993 #: ../sparsify/virt-sparsify.pod:5
24994 msgid "virt-sparsify - Make a virtual machine disk sparse"
24995 msgstr ""
24996
24997 #. type: verbatim
24998 #: ../sparsify/virt-sparsify.pod:9
24999 #, no-wrap
25000 msgid ""
25001 " virt-sparsify [--options] indisk outdisk\n"
25002 "\n"
25003 msgstr ""
25004
25005 #. type: textblock
25006 #: ../sparsify/virt-sparsify.pod:13
25007 msgid ""
25008 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
25009 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
25010 "the disk image can be converted back to free space on the host."
25011 msgstr ""
25012
25013 #. type: textblock
25014 #: ../sparsify/virt-sparsify.pod:18
25015 msgid ""
25016 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
25017 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
25018 msgstr ""
25019
25020 #. type: textblock
25021 #: ../sparsify/virt-sparsify.pod:21
25022 msgid ""
25023 "Virt-sparsify can also convert between some disk formats, for example "
25024 "converting a raw disk image to a thin-provisioned qcow2 image."
25025 msgstr ""
25026
25027 #. type: textblock
25028 #: ../sparsify/virt-sparsify.pod:24
25029 msgid ""
25030 "Virt-sparsify can operate on any disk image, not just ones from virtual "
25031 "machines.  If a virtual machine has more than one attached disk, you must "
25032 "sparsify each one separately."
25033 msgstr ""
25034
25035 #. type: =head2
25036 #: ../sparsify/virt-sparsify.pod:28
25037 msgid "IMPORTANT LIMITATIONS"
25038 msgstr ""
25039
25040 #. type: textblock
25041 #: ../sparsify/virt-sparsify.pod:34
25042 msgid ""
25043 "Virt-sparsify does not do in-place modifications.  It copies from a source "
25044 "image to a destination image, leaving the source unchanged.  I<Check that "
25045 "the sparsification was successful before deleting the source image>."
25046 msgstr ""
25047
25048 #. type: textblock
25049 #: ../sparsify/virt-sparsify.pod:41
25050 msgid "The virtual machine I<must be shut down> before using this tool."
25051 msgstr ""
25052
25053 #. type: textblock
25054 #: ../sparsify/virt-sparsify.pod:45
25055 msgid ""
25056 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
25057 "(1 temporary copy + 1 destination image).  This is in the worst case and "
25058 "usually much less space is required."
25059 msgstr ""
25060
25061 #. type: textblock
25062 #: ../sparsify/virt-sparsify.pod:51
25063 msgid ""
25064 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
25065 msgstr ""
25066
25067 #. type: textblock
25068 #: ../sparsify/virt-sparsify.pod:56
25069 msgid "Virt-sparsify cannot handle encrypted disks."
25070 msgstr ""
25071
25072 #. type: textblock
25073 #: ../sparsify/virt-sparsify.pod:60
25074 msgid ""
25075 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
25076 "this space is often used for critical items like bootloaders so it's not "
25077 "really unused."
25078 msgstr ""
25079
25080 #. type: textblock
25081 #: ../sparsify/virt-sparsify.pod:66
25082 msgid ""
25083 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
25084 "to do this unless we can be sure there is no hibernation data, so at the "
25085 "moment swap partitions are ignored."
25086 msgstr ""
25087
25088 #. type: textblock
25089 #: ../sparsify/virt-sparsify.pod:72
25090 msgid ""
25091 "You may also want to read the manual pages for the associated tools L<virt-"
25092 "filesystems(1)> and L<virt-df(1)> before starting."
25093 msgstr ""
25094
25095 #. type: textblock
25096 #: ../sparsify/virt-sparsify.pod:77
25097 msgid "Typical usage is:"
25098 msgstr ""
25099
25100 #. type: verbatim
25101 #: ../sparsify/virt-sparsify.pod:79
25102 #, no-wrap
25103 msgid ""
25104 " virt-sparsify indisk outdisk\n"
25105 "\n"
25106 msgstr ""
25107
25108 #. type: textblock
25109 #: ../sparsify/virt-sparsify.pod:81
25110 msgid ""
25111 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
25112 "is created, or overwritten if it already exists.  The format of the input "
25113 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25114 msgstr ""
25115
25116 #. type: textblock
25117 #: ../sparsify/virt-sparsify.pod:86
25118 msgid "To convert between formats, use the I<--convert> option:"
25119 msgstr ""
25120
25121 #. type: verbatim
25122 #: ../sparsify/virt-sparsify.pod:88
25123 #, no-wrap
25124 msgid ""
25125 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25126 "\n"
25127 msgstr ""
25128
25129 #. type: textblock
25130 #: ../sparsify/virt-sparsify.pod:90
25131 msgid ""
25132 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25133 "can find within the source disk image.  You can get it to ignore (don't zero "
25134 "free space on) certain filesystems by doing:"
25135 msgstr ""
25136
25137 #. type: verbatim
25138 #: ../sparsify/virt-sparsify.pod:94
25139 #, no-wrap
25140 msgid ""
25141 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25142 "\n"
25143 msgstr ""
25144
25145 #. type: textblock
25146 #: ../sparsify/virt-sparsify.pod:96
25147 msgid ""
25148 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25149 msgstr ""
25150
25151 #. type: =item
25152 #: ../sparsify/virt-sparsify.pod:107
25153 msgid "B<--convert> raw"
25154 msgstr ""
25155
25156 #. type: =item
25157 #: ../sparsify/virt-sparsify.pod:109
25158 msgid "B<--convert> qcow2"
25159 msgstr ""
25160
25161 #. type: =item
25162 #: ../sparsify/virt-sparsify.pod:111
25163 msgid "B<--convert> [other formats]"
25164 msgstr ""
25165
25166 #. type: textblock
25167 #: ../sparsify/virt-sparsify.pod:113
25168 msgid ""
25169 "Use C<output-format> as the format for the destination image.  If this is "
25170 "not specified, then the input format is used."
25171 msgstr ""
25172
25173 #. type: textblock
25174 #: ../sparsify/virt-sparsify.pod:116
25175 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
25176 msgstr ""
25177
25178 #. type: textblock
25179 #: ../sparsify/virt-sparsify.pod:118
25180 msgid ""
25181 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25182 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
25183 msgstr ""
25184
25185 #. type: textblock
25186 #: ../sparsify/virt-sparsify.pod:122
25187 msgid ""
25188 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25189 "sparsify doesn't need to try to guess the input format."
25190 msgstr ""
25191
25192 #. type: =item
25193 #: ../sparsify/virt-sparsify.pod:127
25194 msgid "B<--format> qcow2"
25195 msgstr ""
25196
25197 #. type: =item
25198 #: ../sparsify/virt-sparsify.pod:135
25199 msgid "B<--ignore> filesystem"
25200 msgstr ""
25201
25202 #. type: =item
25203 #: ../sparsify/virt-sparsify.pod:137
25204 msgid "B<--ignore> volgroup"
25205 msgstr ""
25206
25207 #. type: textblock
25208 #: ../sparsify/virt-sparsify.pod:139
25209 msgid ""
25210 "Ignore the named filesystem.  Free space on the filesystem will not be "
25211 "zeroed, but existing blocks of zeroes will still be sparsified."
25212 msgstr ""
25213
25214 #. type: textblock
25215 #: ../sparsify/virt-sparsify.pod:142
25216 msgid ""
25217 "In the second form, this ignores the named volume group.  Use the volume "
25218 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25219 msgstr ""
25220
25221 #. type: textblock
25222 #: ../sparsify/virt-sparsify.pod:157
25223 msgid "This disables progress bars and other unnecessary output."
25224 msgstr ""
25225
25226 #. type: textblock
25227 #: ../sparsify/virt-sparsify.pod:179
25228 msgid ""
25229 "The I<--machine-readable> option can be used to make the output more machine "
25230 "friendly, which is useful when calling virt-sparsify from other programs, "
25231 "GUIs etc."
25232 msgstr ""
25233
25234 #. type: textblock
25235 #: ../sparsify/virt-sparsify.pod:185
25236 msgid ""
25237 "Firstly use the option on its own to query the capabilities of the virt-"
25238 "sparsify binary.  Typical output looks like this:"
25239 msgstr ""
25240
25241 #. type: verbatim
25242 #: ../sparsify/virt-sparsify.pod:188
25243 #, no-wrap
25244 msgid ""
25245 " $ virt-sparsify --machine-readable\n"
25246 " virt-sparsify\n"
25247 " ntfs\n"
25248 " btrfs\n"
25249 "\n"
25250 msgstr ""
25251
25252 #. type: textblock
25253 #: ../sparsify/virt-sparsify.pod:218
25254 msgid ""
25255 "The calling program should treat messages sent to stderr as error messages.  "
25256 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25257 "fatal error."
25258 msgstr ""
25259
25260 #. type: textblock
25261 #: ../sparsify/virt-sparsify.pod:224
25262 msgid ""
25263 "All versions of virt-sparsify have supported the I<--machine-readable> "
25264 "option."
25265 msgstr ""
25266
25267 #. type: textblock
25268 #: ../sparsify/virt-sparsify.pod:238
25269 msgid ""
25270 "Location of the temporary directory used for the potentially large temporary "
25271 "overlay file."
25272 msgstr ""
25273
25274 #. type: textblock
25275 #: ../sparsify/virt-sparsify.pod:241
25276 msgid ""
25277 "You should ensure there is enough free space in the worst case for a full "
25278 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25279 "to another directory that has enough space."
25280 msgstr ""
25281
25282 #. type: textblock
25283 #: ../sparsify/virt-sparsify.pod:245
25284 msgid "This defaults to C</tmp>."
25285 msgstr ""
25286
25287 #. type: textblock
25288 #: ../sparsify/virt-sparsify.pod:249
25289 msgid ""
25290 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25291 msgstr ""
25292
25293 #. type: textblock
25294 #: ../sparsify/virt-sparsify.pod:253
25295 msgid ""
25296 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25297 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25298 "(1)>, L<http://libguestfs.org/>."
25299 msgstr ""
25300
25301 #. type: =head2
25302 #: ../src/guestfs-actions.pod:1
25303 msgid "guestfs_add_cdrom"
25304 msgstr ""
25305
25306 #. type: verbatim
25307 #: ../src/guestfs-actions.pod:3
25308 #, no-wrap
25309 msgid ""
25310 " int\n"
25311 " guestfs_add_cdrom (guestfs_h *g,\n"
25312 "                    const char *filename);\n"
25313 "\n"
25314 msgstr ""
25315
25316 #. type: textblock
25317 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
25318 #: ../src/guestfs-actions.pod:323
25319 msgid ""
25320 "I<This function is deprecated.> In new code, use the L</"
25321 "guestfs_add_drive_opts> call instead."
25322 msgstr ""
25323
25324 #. type: textblock
25325 #: ../src/guestfs-actions.pod:24
25326 msgid ""
25327 "This call checks for the existence of C<filename>.  This stops you from "
25328 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25329 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25330 "instead."
25331 msgstr ""
25332
25333 #. type: textblock
25334 #: ../src/guestfs-actions.pod:31
25335 msgid ""
25336 "If you just want to add an ISO file (often you use this as an efficient way "
25337 "to transfer large files into the guest), then you should probably use "
25338 "C<guestfs_add_drive_ro> instead."
25339 msgstr ""
25340
25341 #. type: textblock
25342 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
25343 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
25344 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
25345 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
25346 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
25347 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
25348 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
25349 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
25350 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
25351 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
25352 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
25353 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
25354 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
25355 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
25356 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
25357 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
25358 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
25359 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
25360 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
25361 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
25362 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
25363 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
25364 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
25365 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
25366 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
25367 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103
25368 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4317
25369 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4344
25370 #: ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4373
25371 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4481
25372 #: ../src/guestfs-actions.pod:4501 ../src/guestfs-actions.pod:4518
25373 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558
25374 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612
25375 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4666
25376 #: ../src/guestfs-actions.pod:4678 ../src/guestfs-actions.pod:4711
25377 #: ../src/guestfs-actions.pod:4727 ../src/guestfs-actions.pod:4740
25378 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4772
25379 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4885
25380 #: ../src/guestfs-actions.pod:4898 ../src/guestfs-actions.pod:4949
25381 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4985
25382 #: ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5015
25383 #: ../src/guestfs-actions.pod:5029 ../src/guestfs-actions.pod:5046
25384 #: ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5088
25385 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5224
25386 #: ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:5274
25387 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5305
25388 #: ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:5335
25389 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5365
25390 #: ../src/guestfs-actions.pod:5397 ../src/guestfs-actions.pod:5423
25391 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5482
25392 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5513
25393 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5615
25394 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5705
25395 #: ../src/guestfs-actions.pod:5733 ../src/guestfs-actions.pod:5750
25396 #: ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5905
25397 #: ../src/guestfs-actions.pod:5962 ../src/guestfs-actions.pod:5984
25398 #: ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6054
25399 #: ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6137
25400 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6164
25401 #: ../src/guestfs-actions.pod:6453 ../src/guestfs-actions.pod:6472
25402 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:6505
25403 #: ../src/guestfs-actions.pod:6517 ../src/guestfs-actions.pod:6531
25404 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6557
25405 #: ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:6591
25406 #: ../src/guestfs-actions.pod:6610 ../src/guestfs-actions.pod:6629
25407 #: ../src/guestfs-actions.pod:6659 ../src/guestfs-actions.pod:6677
25408 #: ../src/guestfs-actions.pod:6700 ../src/guestfs-actions.pod:6718
25409 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6758
25410 #: ../src/guestfs-actions.pod:6777 ../src/guestfs-actions.pod:6794
25411 #: ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6841
25412 #: ../src/guestfs-actions.pod:6865 ../src/guestfs-actions.pod:6884
25413 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6924
25414 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6958
25415 #: ../src/guestfs-actions.pod:6977 ../src/guestfs-actions.pod:7021
25416 #: ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7078
25417 #: ../src/guestfs-actions.pod:7190 ../src/guestfs-actions.pod:7311
25418 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7336
25419 #: ../src/guestfs-actions.pod:7349 ../src/guestfs-actions.pod:7371
25420 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7397
25421 #: ../src/guestfs-actions.pod:7410 ../src/guestfs-actions.pod:7425
25422 #: ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7501
25423 #: ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7533
25424 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563
25425 #: ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7619
25426 #: ../src/guestfs-actions.pod:7633 ../src/guestfs-actions.pod:7674
25427 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7705
25428 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7775
25429 #: ../src/guestfs-actions.pod:7891 ../src/guestfs-actions.pod:7906
25430 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7975
25431 #: ../src/guestfs-actions.pod:7988 ../src/guestfs-actions.pod:8033
25432 #: ../src/guestfs-actions.pod:8073 ../src/guestfs-actions.pod:8129
25433 #: ../src/guestfs-actions.pod:8149 ../src/guestfs-actions.pod:8182
25434 #: ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8269
25435 #: ../src/guestfs-actions.pod:8295
25436 msgid "This function returns 0 on success or -1 on error."
25437 msgstr ""
25438
25439 #. type: textblock
25440 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
25441 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
25442 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
25443 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110
25444 #: ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:6679
25445 #: ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6945
25446 #: ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7552
25447 #: ../src/guestfs-actions.pod:8075
25448 msgid "(Added in 0.3)"
25449 msgstr "(Додано у 0.3)"
25450
25451 #. type: =head2
25452 #: ../src/guestfs-actions.pod:41
25453 msgid "guestfs_add_domain"
25454 msgstr ""
25455
25456 #. type: verbatim
25457 #: ../src/guestfs-actions.pod:43
25458 #, no-wrap
25459 msgid ""
25460 " int\n"
25461 " guestfs_add_domain (guestfs_h *g,\n"
25462 "                     const char *dom,\n"
25463 "                     ...);\n"
25464 "\n"
25465 msgstr ""
25466
25467 #. type: textblock
25468 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
25469 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
25470 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
25471 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
25472 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
25473 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5409
25474 #: ../src/guestfs-actions.pod:5626
25475 msgid ""
25476 "You may supply a list of optional arguments to this call.  Use zero or more "
25477 "of the following pairs of parameters, and terminate the list with C<-1> on "
25478 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25479 msgstr ""
25480
25481 #. type: verbatim
25482 #: ../src/guestfs-actions.pod:53
25483 #, no-wrap
25484 msgid ""
25485 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25486 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25487 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25488 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25489 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25490 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25491 "\n"
25492 msgstr ""
25493
25494 #. type: textblock
25495 #: ../src/guestfs-actions.pod:60
25496 msgid ""
25497 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25498 "It works by connecting to libvirt, requesting the domain and domain XML from "
25499 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25500 "one."
25501 msgstr ""
25502
25503 #. type: textblock
25504 #: ../src/guestfs-actions.pod:141
25505 msgid ""
25506 "The other optional parameters are passed directly through to "
25507 "C<guestfs_add_drive_opts>."
25508 msgstr ""
25509
25510 #. type: textblock
25511 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
25512 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
25513 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
25514 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
25515 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
25516 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
25517 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
25518 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
25519 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
25520 #: ../src/guestfs-actions.pod:5585 ../src/guestfs-actions.pod:5802
25521 #: ../src/guestfs-actions.pod:6040 ../src/guestfs-actions.pod:6234
25522 #: ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:7660
25523 #: ../src/guestfs-actions.pod:8086 ../src/guestfs-actions.pod:8099
25524 #: ../src/guestfs-actions.pod:8112
25525 msgid "On error this function returns -1."
25526 msgstr ""
25527
25528 #. type: textblock
25529 #: ../src/guestfs-actions.pod:146
25530 msgid "(Added in 1.7.4)"
25531 msgstr "(Додано у 1.7.4)"
25532
25533 #. type: =head2
25534 #: ../src/guestfs-actions.pod:148
25535 msgid "guestfs_add_domain_va"
25536 msgstr ""
25537
25538 #. type: verbatim
25539 #: ../src/guestfs-actions.pod:150
25540 #, no-wrap
25541 msgid ""
25542 " int\n"
25543 " guestfs_add_domain_va (guestfs_h *g,\n"
25544 "                        const char *dom,\n"
25545 "                        va_list args);\n"
25546 "\n"
25547 msgstr ""
25548
25549 #. type: textblock
25550 #: ../src/guestfs-actions.pod:155
25551 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25552 msgstr ""
25553
25554 #. type: textblock
25555 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
25556 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
25557 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
25558 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
25559 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
25560 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
25561 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
25562 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
25563 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
25564 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
25565 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5177
25566 #: ../src/guestfs-actions.pod:5437 ../src/guestfs-actions.pod:5449
25567 #: ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:5686
25568 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25569 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25570
25571 #. type: =head2
25572 #: ../src/guestfs-actions.pod:159
25573 msgid "guestfs_add_domain_argv"
25574 msgstr "guestfs_add_domain_argv"
25575
25576 #. type: verbatim
25577 #: ../src/guestfs-actions.pod:161
25578 #, no-wrap
25579 msgid ""
25580 " int\n"
25581 " guestfs_add_domain_argv (guestfs_h *g,\n"
25582 "                          const char *dom,\n"
25583 "                          const struct guestfs_add_domain_argv *optargs);\n"
25584 "\n"
25585 msgstr ""
25586
25587 #. type: textblock
25588 #: ../src/guestfs-actions.pod:166
25589 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25590 msgstr ""
25591
25592 #. type: =head2
25593 #: ../src/guestfs-actions.pod:170
25594 msgid "guestfs_add_drive"
25595 msgstr ""
25596
25597 #. type: verbatim
25598 #: ../src/guestfs-actions.pod:172
25599 #, no-wrap
25600 msgid ""
25601 " int\n"
25602 " guestfs_add_drive (guestfs_h *g,\n"
25603 "                    const char *filename);\n"
25604 "\n"
25605 msgstr ""
25606
25607 #. type: textblock
25608 #: ../src/guestfs-actions.pod:176
25609 msgid ""
25610 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25611 "optional parameters, so the disk is added writable, with the format being "
25612 "detected automatically."
25613 msgstr ""
25614
25615 #. type: textblock
25616 #: ../src/guestfs-actions.pod:180
25617 msgid ""
25618 "Automatic detection of the format opens you up to a potential security hole "
25619 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25620 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25621 "you should think about replacing calls to this function with calls to "
25622 "C<guestfs_add_drive_opts>, and specifying the format."
25623 msgstr ""
25624
25625 #. type: =head2
25626 #: ../src/guestfs-actions.pod:191
25627 msgid "guestfs_add_drive_opts"
25628 msgstr ""
25629
25630 #. type: verbatim
25631 #: ../src/guestfs-actions.pod:193
25632 #, no-wrap
25633 msgid ""
25634 " int\n"
25635 " guestfs_add_drive_opts (guestfs_h *g,\n"
25636 "                         const char *filename,\n"
25637 "                         ...);\n"
25638 "\n"
25639 msgstr ""
25640
25641 #. type: verbatim
25642 #: ../src/guestfs-actions.pod:203
25643 #, no-wrap
25644 msgid ""
25645 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25646 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25647 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25648 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25649 "\n"
25650 msgstr ""
25651
25652 #. type: textblock
25653 #: ../src/guestfs-actions.pod:233
25654 msgid ""
25655 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25656 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25657 "Possible formats include C<raw> and C<qcow2>."
25658 msgstr ""
25659
25660 #. type: textblock
25661 #: ../src/guestfs-actions.pod:244
25662 msgid ""
25663 "This rarely-used option lets you emulate the behaviour of the deprecated "
25664 "C<guestfs_add_drive_with_if> call (q.v.)"
25665 msgstr ""
25666
25667 #. type: textblock
25668 #: ../src/guestfs-actions.pod:256
25669 msgid "(Added in 1.5.23)"
25670 msgstr "(Додано у 1.5.23)"
25671
25672 #. type: =head2
25673 #: ../src/guestfs-actions.pod:258
25674 msgid "guestfs_add_drive_opts_va"
25675 msgstr ""
25676
25677 #. type: verbatim
25678 #: ../src/guestfs-actions.pod:260
25679 #, no-wrap
25680 msgid ""
25681 " int\n"
25682 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25683 "                            const char *filename,\n"
25684 "                            va_list args);\n"
25685 "\n"
25686 msgstr ""
25687
25688 #. type: textblock
25689 #: ../src/guestfs-actions.pod:265
25690 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25691 msgstr ""
25692
25693 #. type: =head2
25694 #: ../src/guestfs-actions.pod:269
25695 msgid "guestfs_add_drive_opts_argv"
25696 msgstr ""
25697
25698 #. type: verbatim
25699 #: ../src/guestfs-actions.pod:271
25700 #, no-wrap
25701 msgid ""
25702 " int\n"
25703 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25704 "                              const char *filename,\n"
25705 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
25706 "\n"
25707 msgstr ""
25708
25709 #. type: textblock
25710 #: ../src/guestfs-actions.pod:276
25711 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25712 msgstr ""
25713
25714 #. type: =head2
25715 #: ../src/guestfs-actions.pod:280
25716 msgid "guestfs_add_drive_ro"
25717 msgstr ""
25718
25719 #. type: verbatim
25720 #: ../src/guestfs-actions.pod:282
25721 #, no-wrap
25722 msgid ""
25723 " int\n"
25724 " guestfs_add_drive_ro (guestfs_h *g,\n"
25725 "                       const char *filename);\n"
25726 "\n"
25727 msgstr ""
25728
25729 #. type: textblock
25730 #: ../src/guestfs-actions.pod:286
25731 msgid ""
25732 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25733 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25734 "disk is added read-only, with the format being detected automatically."
25735 msgstr ""
25736
25737 #. type: textblock
25738 #: ../src/guestfs-actions.pod:293
25739 msgid "(Added in 1.0.38)"
25740 msgstr "(Додано у 1.0.38)"
25741
25742 #. type: =head2
25743 #: ../src/guestfs-actions.pod:295
25744 msgid "guestfs_add_drive_ro_with_if"
25745 msgstr ""
25746
25747 #. type: verbatim
25748 #: ../src/guestfs-actions.pod:297
25749 #, no-wrap
25750 msgid ""
25751 " int\n"
25752 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25753 "                               const char *filename,\n"
25754 "                               const char *iface);\n"
25755 "\n"
25756 msgstr ""
25757
25758 #. type: textblock
25759 #: ../src/guestfs-actions.pod:309
25760 msgid ""
25761 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25762 "QEMU interface emulation to use at run time."
25763 msgstr ""
25764
25765 #. type: textblock
25766 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
25767 #: ../src/guestfs-actions.pod:2881
25768 msgid "(Added in 1.0.84)"
25769 msgstr "(Додано у 1.0.84)"
25770
25771 #. type: =head2
25772 #: ../src/guestfs-actions.pod:316
25773 msgid "guestfs_add_drive_with_if"
25774 msgstr ""
25775
25776 #. type: verbatim
25777 #: ../src/guestfs-actions.pod:318
25778 #, no-wrap
25779 msgid ""
25780 " int\n"
25781 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25782 "                            const char *filename,\n"
25783 "                            const char *iface);\n"
25784 "\n"
25785 msgstr ""
25786
25787 #. type: textblock
25788 #: ../src/guestfs-actions.pod:330
25789 msgid ""
25790 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25791 "QEMU interface emulation to use at run time."
25792 msgstr ""
25793
25794 #. type: =head2
25795 #: ../src/guestfs-actions.pod:337
25796 msgid "guestfs_aug_clear"
25797 msgstr ""
25798
25799 #. type: verbatim
25800 #: ../src/guestfs-actions.pod:339
25801 #, no-wrap
25802 msgid ""
25803 " int\n"
25804 " guestfs_aug_clear (guestfs_h *g,\n"
25805 "                    const char *augpath);\n"
25806 "\n"
25807 msgstr ""
25808
25809 #. type: textblock
25810 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
25811 msgid "(Added in 1.3.4)"
25812 msgstr "(Додано у 1.3.4)"
25813
25814 #. type: =head2
25815 #: ../src/guestfs-actions.pod:350
25816 msgid "guestfs_aug_close"
25817 msgstr ""
25818
25819 #. type: verbatim
25820 #: ../src/guestfs-actions.pod:352
25821 #, no-wrap
25822 msgid ""
25823 " int\n"
25824 " guestfs_aug_close (guestfs_h *g);\n"
25825 "\n"
25826 msgstr ""
25827
25828 #. type: textblock
25829 #: ../src/guestfs-actions.pod:355
25830 msgid ""
25831 "Close the current Augeas handle and free up any resources used by it.  After "
25832 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25833 "any other Augeas functions."
25834 msgstr ""
25835
25836 #. type: textblock
25837 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
25838 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
25839 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
25840 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
25841 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
25842 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
25843 #: ../src/guestfs-actions.pod:6311
25844 msgid "(Added in 0.7)"
25845 msgstr "(Додано у 0.7)"
25846
25847 #. type: =head2
25848 #: ../src/guestfs-actions.pod:364
25849 msgid "guestfs_aug_defnode"
25850 msgstr ""
25851
25852 #. type: verbatim
25853 #: ../src/guestfs-actions.pod:366
25854 #, no-wrap
25855 msgid ""
25856 " struct guestfs_int_bool *\n"
25857 " guestfs_aug_defnode (guestfs_h *g,\n"
25858 "                      const char *name,\n"
25859 "                      const char *expr,\n"
25860 "                      const char *val);\n"
25861 "\n"
25862 msgstr ""
25863
25864 #. type: textblock
25865 #: ../src/guestfs-actions.pod:375
25866 msgid ""
25867 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25868 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25869 "containing that single node."
25870 msgstr ""
25871
25872 #. type: textblock
25873 #: ../src/guestfs-actions.pod:383
25874 msgid ""
25875 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25876 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25877 msgstr ""
25878
25879 #. type: =head2
25880 #: ../src/guestfs-actions.pod:389
25881 msgid "guestfs_aug_defvar"
25882 msgstr ""
25883
25884 #. type: verbatim
25885 #: ../src/guestfs-actions.pod:391
25886 #, no-wrap
25887 msgid ""
25888 " int\n"
25889 " guestfs_aug_defvar (guestfs_h *g,\n"
25890 "                     const char *name,\n"
25891 "                     const char *expr);\n"
25892 "\n"
25893 msgstr ""
25894
25895 #. type: =head2
25896 #: ../src/guestfs-actions.pod:407
25897 msgid "guestfs_aug_get"
25898 msgstr "guestfs_aug_get"
25899
25900 #. type: verbatim
25901 #: ../src/guestfs-actions.pod:409
25902 #, no-wrap
25903 msgid ""
25904 " char *\n"
25905 " guestfs_aug_get (guestfs_h *g,\n"
25906 "                  const char *augpath);\n"
25907 "\n"
25908 msgstr ""
25909 " char *\n"
25910 " guestfs_aug_get (guestfs_h *g,\n"
25911 "                  const char *augpath);\n"
25912 "\n"
25913
25914 #. type: textblock
25915 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
25916 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
25917 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
25918 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
25919 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
25920 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
25921 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
25922 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
25923 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
25924 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
25925 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
25926 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
25927 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
25928 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636
25929 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676
25930 #: ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4650
25931 #: ../src/guestfs-actions.pod:4817 ../src/guestfs-actions.pod:4927
25932 #: ../src/guestfs-actions.pod:5820 ../src/guestfs-actions.pod:6021
25933 #: ../src/guestfs-actions.pod:6209 ../src/guestfs-actions.pod:6387
25934 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:7096
25935 #: ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7136
25936 #: ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7834
25937 #: ../src/guestfs-actions.pod:7853 ../src/guestfs-actions.pod:7871
25938 #: ../src/guestfs-actions.pod:8045 ../src/guestfs-actions.pod:8359
25939 msgid ""
25940 "This function returns a string, or NULL on error.  I<The caller must free "
25941 "the returned string after use>."
25942 msgstr ""
25943
25944 #. type: =head2
25945 #: ../src/guestfs-actions.pod:421
25946 msgid "guestfs_aug_init"
25947 msgstr "guestfs_aug_init"
25948
25949 #. type: verbatim
25950 #: ../src/guestfs-actions.pod:423
25951 #, no-wrap
25952 msgid ""
25953 " int\n"
25954 " guestfs_aug_init (guestfs_h *g,\n"
25955 "                   const char *root,\n"
25956 "                   int flags);\n"
25957 "\n"
25958 msgstr ""
25959 " int\n"
25960 " guestfs_aug_init (guestfs_h *g,\n"
25961 "                   const char *root,\n"
25962 "                   int flags);\n"
25963 "\n"
25964
25965 #. type: textblock
25966 #: ../src/guestfs-actions.pod:432
25967 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25968 msgstr ""
25969
25970 #. type: textblock
25971 #: ../src/guestfs-actions.pod:457
25972 msgid ""
25973 "This option is only useful when debugging Augeas lenses.  Use of this option "
25974 "may require additional memory for the libguestfs appliance.  You may need to "
25975 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25976 "C<guestfs_set_memsize>."
25977 msgstr ""
25978
25979 #. type: textblock
25980 #: ../src/guestfs-actions.pod:472
25981 msgid "Do not load the tree in C<guestfs_aug_init>."
25982 msgstr ""
25983
25984 #. type: textblock
25985 #: ../src/guestfs-actions.pod:476
25986 msgid "To close the handle, you can call C<guestfs_aug_close>."
25987 msgstr ""
25988
25989 #. type: =head2
25990 #: ../src/guestfs-actions.pod:484
25991 msgid "guestfs_aug_insert"
25992 msgstr "guestfs_aug_insert"
25993
25994 #. type: verbatim
25995 #: ../src/guestfs-actions.pod:486
25996 #, no-wrap
25997 msgid ""
25998 " int\n"
25999 " guestfs_aug_insert (guestfs_h *g,\n"
26000 "                     const char *augpath,\n"
26001 "                     const char *label,\n"
26002 "                     int before);\n"
26003 "\n"
26004 msgstr ""
26005 " int\n"
26006 " guestfs_aug_insert (guestfs_h *g,\n"
26007 "                     const char *augpath,\n"
26008 "                     const char *label,\n"
26009 "                     int before);\n"
26010 "\n"
26011
26012 #. type: =head2
26013 #: ../src/guestfs-actions.pod:504
26014 msgid "guestfs_aug_load"
26015 msgstr "guestfs_aug_load"
26016
26017 #. type: verbatim
26018 #: ../src/guestfs-actions.pod:506
26019 #, no-wrap
26020 msgid ""
26021 " int\n"
26022 " guestfs_aug_load (guestfs_h *g);\n"
26023 "\n"
26024 msgstr ""
26025 " int\n"
26026 " guestfs_aug_load (guestfs_h *g);\n"
26027 "\n"
26028
26029 #. type: =head2
26030 #: ../src/guestfs-actions.pod:518
26031 msgid "guestfs_aug_ls"
26032 msgstr "guestfs_aug_ls"
26033
26034 #. type: verbatim
26035 #: ../src/guestfs-actions.pod:520
26036 #, no-wrap
26037 msgid ""
26038 " char **\n"
26039 " guestfs_aug_ls (guestfs_h *g,\n"
26040 "                 const char *augpath);\n"
26041 "\n"
26042 msgstr ""
26043 " char **\n"
26044 " guestfs_aug_ls (guestfs_h *g,\n"
26045 "                 const char *augpath);\n"
26046 "\n"
26047
26048 #. type: textblock
26049 #: ../src/guestfs-actions.pod:524
26050 msgid ""
26051 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
26052 "sorting the resulting nodes into alphabetical order."
26053 msgstr ""
26054
26055 #. type: textblock
26056 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
26057 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
26058 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
26059 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
26060 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
26061 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
26062 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
26063 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
26064 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
26065 #: ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186
26066 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223
26067 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4390
26068 #: ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5546
26069 #: ../src/guestfs-actions.pod:6181 ../src/guestfs-actions.pod:6307
26070 #: ../src/guestfs-actions.pod:6421 ../src/guestfs-actions.pod:7176
26071 #: ../src/guestfs-actions.pod:7237 ../src/guestfs-actions.pod:7292
26072 #: ../src/guestfs-actions.pod:7438 ../src/guestfs-actions.pod:7462
26073 #: ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7958
26074 #: ../src/guestfs-actions.pod:8005 ../src/guestfs-actions.pod:8199
26075 #: ../src/guestfs-actions.pod:8218 ../src/guestfs-actions.pod:8309
26076 #: ../src/guestfs-actions.pod:8328 ../src/guestfs-actions.pod:8374
26077 #: ../src/guestfs-actions.pod:8393
26078 msgid ""
26079 "This function returns a NULL-terminated array of strings (like L<environ(3)"
26080 ">), or NULL if there was an error.  I<The caller must free the strings and "
26081 "the array after use>."
26082 msgstr ""
26083
26084 #. type: textblock
26085 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
26086 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
26087 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981
26088 #: ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4680
26089 #: ../src/guestfs-actions.pod:4867 ../src/guestfs-actions.pod:4900
26090 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5550
26091 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6519
26092 #: ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6545
26093 #: ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7676
26094 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7922
26095 #: ../src/guestfs-actions.pod:8187
26096 msgid "(Added in 0.8)"
26097 msgstr "(Додано у 0.8)"
26098
26099 #. type: =head2
26100 #: ../src/guestfs-actions.pod:533
26101 msgid "guestfs_aug_match"
26102 msgstr "guestfs_aug_match"
26103
26104 #. type: verbatim
26105 #: ../src/guestfs-actions.pod:535
26106 #, no-wrap
26107 msgid ""
26108 " char **\n"
26109 " guestfs_aug_match (guestfs_h *g,\n"
26110 "                    const char *augpath);\n"
26111 "\n"
26112 msgstr ""
26113 " char **\n"
26114 " guestfs_aug_match (guestfs_h *g,\n"
26115 "                    const char *augpath);\n"
26116 "\n"
26117
26118 #. type: =head2
26119 #: ../src/guestfs-actions.pod:549
26120 msgid "guestfs_aug_mv"
26121 msgstr "guestfs_aug_mv"
26122
26123 #. type: verbatim
26124 #: ../src/guestfs-actions.pod:551
26125 #, no-wrap
26126 msgid ""
26127 " int\n"
26128 " guestfs_aug_mv (guestfs_h *g,\n"
26129 "                 const char *src,\n"
26130 "                 const char *dest);\n"
26131 "\n"
26132 msgstr ""
26133 " int\n"
26134 " guestfs_aug_mv (guestfs_h *g,\n"
26135 "                 const char *src,\n"
26136 "                 const char *dest);\n"
26137 "\n"
26138
26139 #. type: =head2
26140 #: ../src/guestfs-actions.pod:563
26141 msgid "guestfs_aug_rm"
26142 msgstr "guestfs_aug_rm"
26143
26144 #. type: verbatim
26145 #: ../src/guestfs-actions.pod:565
26146 #, no-wrap
26147 msgid ""
26148 " int\n"
26149 " guestfs_aug_rm (guestfs_h *g,\n"
26150 "                 const char *augpath);\n"
26151 "\n"
26152 msgstr ""
26153 " int\n"
26154 " guestfs_aug_rm (guestfs_h *g,\n"
26155 "                 const char *augpath);\n"
26156 "\n"
26157
26158 #. type: =head2
26159 #: ../src/guestfs-actions.pod:577
26160 msgid "guestfs_aug_save"
26161 msgstr "guestfs_aug_save"
26162
26163 #. type: verbatim
26164 #: ../src/guestfs-actions.pod:579
26165 #, no-wrap
26166 msgid ""
26167 " int\n"
26168 " guestfs_aug_save (guestfs_h *g);\n"
26169 "\n"
26170 msgstr ""
26171 " int\n"
26172 " guestfs_aug_save (guestfs_h *g);\n"
26173 "\n"
26174
26175 #. type: textblock
26176 #: ../src/guestfs-actions.pod:584
26177 msgid ""
26178 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26179 "are saved."
26180 msgstr ""
26181
26182 #. type: =head2
26183 #: ../src/guestfs-actions.pod:591
26184 msgid "guestfs_aug_set"
26185 msgstr "guestfs_aug_set"
26186
26187 #. type: verbatim
26188 #: ../src/guestfs-actions.pod:593
26189 #, no-wrap
26190 msgid ""
26191 " int\n"
26192 " guestfs_aug_set (guestfs_h *g,\n"
26193 "                  const char *augpath,\n"
26194 "                  const char *val);\n"
26195 "\n"
26196 msgstr ""
26197 " int\n"
26198 " guestfs_aug_set (guestfs_h *g,\n"
26199 "                  const char *augpath,\n"
26200 "                  const char *val);\n"
26201 "\n"
26202
26203 #. type: textblock
26204 #: ../src/guestfs-actions.pod:600
26205 msgid ""
26206 "In the Augeas API, it is possible to clear a node by setting the value to "
26207 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
26208 "this call.  Instead you must use the C<guestfs_aug_clear> call."
26209 msgstr ""
26210
26211 #. type: =head2
26212 #: ../src/guestfs-actions.pod:609
26213 msgid "guestfs_available"
26214 msgstr "guestfs_available"
26215
26216 #. type: verbatim
26217 #: ../src/guestfs-actions.pod:611
26218 #, no-wrap
26219 msgid ""
26220 " int\n"
26221 " guestfs_available (guestfs_h *g,\n"
26222 "                    char *const *groups);\n"
26223 "\n"
26224 msgstr ""
26225 " int\n"
26226 " guestfs_available (guestfs_h *g,\n"
26227 "                    char *const *groups);\n"
26228 "\n"
26229
26230 #. type: textblock
26231 #: ../src/guestfs-actions.pod:619
26232 msgid ""
26233 "The libguestfs groups, and the functions that those groups correspond to, "
26234 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
26235 "runtime by calling C<guestfs_available_all_groups>."
26236 msgstr ""
26237
26238 #. type: textblock
26239 #: ../src/guestfs-actions.pod:643
26240 msgid "You must call C<guestfs_launch> before calling this function."
26241 msgstr ""
26242
26243 #. type: textblock
26244 #: ../src/guestfs-actions.pod:665
26245 msgid ""
26246 "This call was added in version C<1.0.80>.  In previous versions of "
26247 "libguestfs all you could do would be to speculatively execute a command to "
26248 "find out if the daemon implemented it.  See also C<guestfs_version>."
26249 msgstr ""
26250
26251 #. type: textblock
26252 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
26253 msgid "(Added in 1.0.80)"
26254 msgstr "(Додано у 1.0.80)"
26255
26256 #. type: =head2
26257 #: ../src/guestfs-actions.pod:676
26258 msgid "guestfs_available_all_groups"
26259 msgstr "guestfs_available_all_groups"
26260
26261 #. type: verbatim
26262 #: ../src/guestfs-actions.pod:678
26263 #, no-wrap
26264 msgid ""
26265 " char **\n"
26266 " guestfs_available_all_groups (guestfs_h *g);\n"
26267 "\n"
26268 msgstr ""
26269 " char **\n"
26270 " guestfs_available_all_groups (guestfs_h *g);\n"
26271 "\n"
26272
26273 #. type: textblock
26274 #: ../src/guestfs-actions.pod:681
26275 msgid ""
26276 "This command returns a list of all optional groups that this daemon knows "
26277 "about.  Note this returns both supported and unsupported groups.  To find "
26278 "out which ones the daemon can actually support you have to call "
26279 "C<guestfs_available> on each member of the returned list."
26280 msgstr ""
26281
26282 #. type: textblock
26283 #: ../src/guestfs-actions.pod:687
26284 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26285 msgstr ""
26286
26287 #. type: textblock
26288 #: ../src/guestfs-actions.pod:693
26289 msgid "(Added in 1.3.15)"
26290 msgstr "(Додано у 1.3.15)"
26291
26292 #. type: =head2
26293 #: ../src/guestfs-actions.pod:695
26294 msgid "guestfs_base64_in"
26295 msgstr "guestfs_base64_in"
26296
26297 #. type: verbatim
26298 #: ../src/guestfs-actions.pod:697
26299 #, no-wrap
26300 msgid ""
26301 " int\n"
26302 " guestfs_base64_in (guestfs_h *g,\n"
26303 "                    const char *base64file,\n"
26304 "                    const char *filename);\n"
26305 "\n"
26306 msgstr ""
26307 " int\n"
26308 " guestfs_base64_in (guestfs_h *g,\n"
26309 "                    const char *base64file,\n"
26310 "                    const char *filename);\n"
26311 "\n"
26312
26313 #. type: textblock
26314 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
26315 msgid "(Added in 1.3.5)"
26316 msgstr "(Додано у 1.3.5)"
26317
26318 #. type: =head2
26319 #: ../src/guestfs-actions.pod:709
26320 msgid "guestfs_base64_out"
26321 msgstr "guestfs_base64_out"
26322
26323 #. type: verbatim
26324 #: ../src/guestfs-actions.pod:711
26325 #, no-wrap
26326 msgid ""
26327 " int\n"
26328 " guestfs_base64_out (guestfs_h *g,\n"
26329 "                     const char *filename,\n"
26330 "                     const char *base64file);\n"
26331 "\n"
26332 msgstr ""
26333 " int\n"
26334 " guestfs_base64_out (guestfs_h *g,\n"
26335 "                     const char *filename,\n"
26336 "                     const char *base64file);\n"
26337 "\n"
26338
26339 #. type: =head2
26340 #: ../src/guestfs-actions.pod:723
26341 msgid "guestfs_blockdev_flushbufs"
26342 msgstr "guestfs_blockdev_flushbufs"
26343
26344 #. type: verbatim
26345 #: ../src/guestfs-actions.pod:725
26346 #, no-wrap
26347 msgid ""
26348 " int\n"
26349 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26350 "                             const char *device);\n"
26351 "\n"
26352 msgstr ""
26353 " int\n"
26354 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26355 "                             const char *device);\n"
26356 "\n"
26357
26358 #. type: textblock
26359 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
26360 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
26361 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
26362 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
26363 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
26364 msgid "(Added in 0.9.3)"
26365 msgstr "(Додано у 0.9.3)"
26366
26367 #. type: =head2
26368 #: ../src/guestfs-actions.pod:738
26369 msgid "guestfs_blockdev_getbsz"
26370 msgstr "guestfs_blockdev_getbsz"
26371
26372 #. type: verbatim
26373 #: ../src/guestfs-actions.pod:740
26374 #, no-wrap
26375 msgid ""
26376 " int\n"
26377 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26378 "                          const char *device);\n"
26379 "\n"
26380 msgstr ""
26381 " int\n"
26382 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26383 "                          const char *device);\n"
26384 "\n"
26385
26386 #. type: =head2
26387 #: ../src/guestfs-actions.pod:755
26388 msgid "guestfs_blockdev_getro"
26389 msgstr "guestfs_blockdev_getro"
26390
26391 #. type: verbatim
26392 #: ../src/guestfs-actions.pod:757
26393 #, no-wrap
26394 msgid ""
26395 " int\n"
26396 " guestfs_blockdev_getro (guestfs_h *g,\n"
26397 "                         const char *device);\n"
26398 "\n"
26399 msgstr ""
26400 " int\n"
26401 " guestfs_blockdev_getro (guestfs_h *g,\n"
26402 "                         const char *device);\n"
26403 "\n"
26404
26405 #. type: textblock
26406 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
26407 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
26408 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
26409 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
26410 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
26411 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693
26412 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727
26413 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903
26414 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932
26415 #: ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963
26416 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993
26417 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020
26418 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050
26419 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077
26420 #: ../src/guestfs-actions.pod:5784
26421 msgid "This function returns a C truth value on success or -1 on error."
26422 msgstr ""
26423
26424 #. type: =head2
26425 #: ../src/guestfs-actions.pod:770
26426 msgid "guestfs_blockdev_getsize64"
26427 msgstr "guestfs_blockdev_getsize64"
26428
26429 #. type: verbatim
26430 #: ../src/guestfs-actions.pod:772
26431 #, no-wrap
26432 msgid ""
26433 " int64_t\n"
26434 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26435 "                             const char *device);\n"
26436 "\n"
26437 msgstr ""
26438 " int64_t\n"
26439 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26440 "                             const char *device);\n"
26441 "\n"
26442
26443 #. type: textblock
26444 #: ../src/guestfs-actions.pod:778
26445 msgid "See also C<guestfs_blockdev_getsz>."
26446 msgstr ""
26447
26448 #. type: =head2
26449 #: ../src/guestfs-actions.pod:786
26450 msgid "guestfs_blockdev_getss"
26451 msgstr "guestfs_blockdev_getss"
26452
26453 #. type: verbatim
26454 #: ../src/guestfs-actions.pod:788
26455 #, no-wrap
26456 msgid ""
26457 " int\n"
26458 " guestfs_blockdev_getss (guestfs_h *g,\n"
26459 "                         const char *device);\n"
26460 "\n"
26461 msgstr ""
26462 " int\n"
26463 " guestfs_blockdev_getss (guestfs_h *g,\n"
26464 "                         const char *device);\n"
26465 "\n"
26466
26467 #. type: textblock
26468 #: ../src/guestfs-actions.pod:795
26469 msgid ""
26470 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26471 "that)."
26472 msgstr ""
26473
26474 #. type: =head2
26475 #: ../src/guestfs-actions.pod:804
26476 msgid "guestfs_blockdev_getsz"
26477 msgstr "guestfs_blockdev_getsz"
26478
26479 #. type: verbatim
26480 #: ../src/guestfs-actions.pod:806
26481 #, no-wrap
26482 msgid ""
26483 " int64_t\n"
26484 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26485 "                         const char *device);\n"
26486 "\n"
26487 msgstr ""
26488 " int64_t\n"
26489 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26490 "                         const char *device);\n"
26491 "\n"
26492
26493 #. type: textblock
26494 #: ../src/guestfs-actions.pod:813
26495 msgid ""
26496 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26497 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26498 msgstr ""
26499
26500 #. type: =head2
26501 #: ../src/guestfs-actions.pod:823
26502 msgid "guestfs_blockdev_rereadpt"
26503 msgstr "guestfs_blockdev_rereadpt"
26504
26505 #. type: verbatim
26506 #: ../src/guestfs-actions.pod:825
26507 #, no-wrap
26508 msgid ""
26509 " int\n"
26510 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26511 "                            const char *device);\n"
26512 "\n"
26513 msgstr ""
26514 " int\n"
26515 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26516 "                            const char *device);\n"
26517 "\n"
26518
26519 #. type: =head2
26520 #: ../src/guestfs-actions.pod:837
26521 msgid "guestfs_blockdev_setbsz"
26522 msgstr "guestfs_blockdev_setbsz"
26523
26524 #. type: verbatim
26525 #: ../src/guestfs-actions.pod:839
26526 #, no-wrap
26527 msgid ""
26528 " int\n"
26529 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26530 "                          const char *device,\n"
26531 "                          int blocksize);\n"
26532 "\n"
26533 msgstr ""
26534 " int\n"
26535 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26536 "                          const char *device,\n"
26537 "                          int blocksize);\n"
26538 "\n"
26539
26540 #. type: =head2
26541 #: ../src/guestfs-actions.pod:855
26542 msgid "guestfs_blockdev_setro"
26543 msgstr "guestfs_blockdev_setro"
26544
26545 #. type: verbatim
26546 #: ../src/guestfs-actions.pod:857
26547 #, no-wrap
26548 msgid ""
26549 " int\n"
26550 " guestfs_blockdev_setro (guestfs_h *g,\n"
26551 "                         const char *device);\n"
26552 "\n"
26553 msgstr ""
26554 " int\n"
26555 " guestfs_blockdev_setro (guestfs_h *g,\n"
26556 "                         const char *device);\n"
26557 "\n"
26558
26559 #. type: =head2
26560 #: ../src/guestfs-actions.pod:869
26561 msgid "guestfs_blockdev_setrw"
26562 msgstr "guestfs_blockdev_setrw"
26563
26564 #. type: verbatim
26565 #: ../src/guestfs-actions.pod:871
26566 #, no-wrap
26567 msgid ""
26568 " int\n"
26569 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26570 "                         const char *device);\n"
26571 "\n"
26572 msgstr ""
26573 " int\n"
26574 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26575 "                         const char *device);\n"
26576 "\n"
26577
26578 #. type: =head2
26579 #: ../src/guestfs-actions.pod:883
26580 msgid "guestfs_btrfs_filesystem_resize"
26581 msgstr "guestfs_btrfs_filesystem_resize"
26582
26583 #. type: verbatim
26584 #: ../src/guestfs-actions.pod:885
26585 #, no-wrap
26586 msgid ""
26587 " int\n"
26588 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26589 "                                  const char *mountpoint,\n"
26590 "                                  ...);\n"
26591 "\n"
26592 msgstr ""
26593 " int\n"
26594 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26595 "                                  const char *mountpoint,\n"
26596 "                                  ...);\n"
26597 "\n"
26598
26599 #. type: verbatim
26600 #: ../src/guestfs-actions.pod:895
26601 #, no-wrap
26602 msgid ""
26603 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26604 "\n"
26605 msgstr ""
26606 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26607 "\n"
26608
26609 #. type: textblock
26610 #: ../src/guestfs-actions.pod:918
26611 msgid "(Added in 1.11.17)"
26612 msgstr "(Додано у 1.11.17)"
26613
26614 #. type: =head2
26615 #: ../src/guestfs-actions.pod:920
26616 msgid "guestfs_btrfs_filesystem_resize_va"
26617 msgstr "guestfs_btrfs_filesystem_resize_va"
26618
26619 #. type: verbatim
26620 #: ../src/guestfs-actions.pod:922
26621 #, no-wrap
26622 msgid ""
26623 " int\n"
26624 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26625 "                                     const char *mountpoint,\n"
26626 "                                     va_list args);\n"
26627 "\n"
26628 msgstr ""
26629 " int\n"
26630 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26631 "                                     const char *mountpoint,\n"
26632 "                                     va_list args);\n"
26633 "\n"
26634
26635 #. type: textblock
26636 #: ../src/guestfs-actions.pod:927
26637 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26638 msgstr ""
26639
26640 #. type: =head2
26641 #: ../src/guestfs-actions.pod:931
26642 msgid "guestfs_btrfs_filesystem_resize_argv"
26643 msgstr "guestfs_btrfs_filesystem_resize_argv"
26644
26645 #. type: verbatim
26646 #: ../src/guestfs-actions.pod:933
26647 #, no-wrap
26648 msgid ""
26649 " int\n"
26650 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26651 "                                       const char *mountpoint,\n"
26652 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26653 "\n"
26654 msgstr ""
26655 " int\n"
26656 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26657 "                                       const char *mountpoint,\n"
26658 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26659 "\n"
26660
26661 #. type: textblock
26662 #: ../src/guestfs-actions.pod:938
26663 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26664 msgstr ""
26665
26666 #. type: =head2
26667 #: ../src/guestfs-actions.pod:942
26668 msgid "guestfs_case_sensitive_path"
26669 msgstr ""
26670
26671 #. type: verbatim
26672 #: ../src/guestfs-actions.pod:944
26673 #, no-wrap
26674 msgid ""
26675 " char *\n"
26676 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26677 "                              const char *path);\n"
26678 "\n"
26679 msgstr ""
26680
26681 #. type: textblock
26682 #: ../src/guestfs-actions.pod:970
26683 msgid ""
26684 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
26685 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26686 "how the directories were originally created under Windows)."
26687 msgstr ""
26688
26689 #. type: textblock
26690 #: ../src/guestfs-actions.pod:978
26691 msgid "See also C<guestfs_realpath>."
26692 msgstr ""
26693
26694 #. type: textblock
26695 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7856
26696 msgid "(Added in 1.0.75)"
26697 msgstr "(Додано у 1.0.75)"
26698
26699 #. type: =head2
26700 #: ../src/guestfs-actions.pod:985
26701 msgid "guestfs_cat"
26702 msgstr ""
26703
26704 #. type: verbatim
26705 #: ../src/guestfs-actions.pod:987
26706 #, no-wrap
26707 msgid ""
26708 " char *\n"
26709 " guestfs_cat (guestfs_h *g,\n"
26710 "              const char *path);\n"
26711 "\n"
26712 msgstr ""
26713
26714 #. type: textblock
26715 #: ../src/guestfs-actions.pod:993
26716 msgid ""
26717 "Note that this function cannot correctly handle binary files (specifically, "
26718 "files containing C<\\0> character which is treated as end of string).  For "
26719 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26720 "functions which have a more complex interface."
26721 msgstr ""
26722
26723 #. type: textblock
26724 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207
26725 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4306
26726 #: ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4793
26727 #: ../src/guestfs-actions.pod:4807 ../src/guestfs-actions.pod:6185
26728 #: ../src/guestfs-actions.pod:6199 ../src/guestfs-actions.pod:8009
26729 #: ../src/guestfs-actions.pod:8023
26730 msgid "(Added in 0.4)"
26731 msgstr "(Додано у 0.4)"
26732
26733 #. type: =head2
26734 #: ../src/guestfs-actions.pod:1006
26735 msgid "guestfs_checksum"
26736 msgstr ""
26737
26738 #. type: verbatim
26739 #: ../src/guestfs-actions.pod:1008
26740 #, no-wrap
26741 msgid ""
26742 " char *\n"
26743 " guestfs_checksum (guestfs_h *g,\n"
26744 "                   const char *csumtype,\n"
26745 "                   const char *path);\n"
26746 "\n"
26747 msgstr ""
26748
26749 #. type: textblock
26750 #: ../src/guestfs-actions.pod:1054
26751 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26752 msgstr ""
26753
26754 #. type: textblock
26755 #: ../src/guestfs-actions.pod:1056
26756 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26757 msgstr ""
26758
26759 #. type: textblock
26760 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
26761 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905
26762 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995
26763 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:7712
26764 msgid "(Added in 1.0.2)"
26765 msgstr "(Додано у 1.0.2)"
26766
26767 #. type: =head2
26768 #: ../src/guestfs-actions.pod:1063
26769 msgid "guestfs_checksum_device"
26770 msgstr ""
26771
26772 #. type: verbatim
26773 #: ../src/guestfs-actions.pod:1065
26774 #, no-wrap
26775 msgid ""
26776 " char *\n"
26777 " guestfs_checksum_device (guestfs_h *g,\n"
26778 "                          const char *csumtype,\n"
26779 "                          const char *device);\n"
26780 "\n"
26781 msgstr ""
26782
26783 #. type: textblock
26784 #: ../src/guestfs-actions.pod:1070
26785 msgid ""
26786 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26787 "device named C<device>.  For the types of checksums supported see the "
26788 "C<guestfs_checksum> command."
26789 msgstr ""
26790
26791 #. type: textblock
26792 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5617
26793 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5786
26794 #: ../src/guestfs-actions.pod:5804 ../src/guestfs-actions.pod:5986
26795 #: ../src/guestfs-actions.pod:7621 ../src/guestfs-actions.pod:7635
26796 #: ../src/guestfs-actions.pod:8035
26797 msgid "(Added in 1.3.2)"
26798 msgstr "(Додано у 1.3.2)"
26799
26800 #. type: =head2
26801 #: ../src/guestfs-actions.pod:1079
26802 msgid "guestfs_checksums_out"
26803 msgstr ""
26804
26805 #. type: verbatim
26806 #: ../src/guestfs-actions.pod:1081
26807 #, no-wrap
26808 msgid ""
26809 " int\n"
26810 " guestfs_checksums_out (guestfs_h *g,\n"
26811 "                        const char *csumtype,\n"
26812 "                        const char *directory,\n"
26813 "                        const char *sumsfile);\n"
26814 "\n"
26815 msgstr ""
26816
26817 #. type: textblock
26818 #: ../src/guestfs-actions.pod:1101
26819 msgid "(Added in 1.3.7)"
26820 msgstr "(Додано у 1.3.7)"
26821
26822 #. type: =head2
26823 #: ../src/guestfs-actions.pod:1103
26824 msgid "guestfs_chmod"
26825 msgstr ""
26826
26827 #. type: verbatim
26828 #: ../src/guestfs-actions.pod:1105
26829 #, no-wrap
26830 msgid ""
26831 " int\n"
26832 " guestfs_chmod (guestfs_h *g,\n"
26833 "                int mode,\n"
26834 "                const char *path);\n"
26835 "\n"
26836 msgstr ""
26837
26838 #. type: =head2
26839 #: ../src/guestfs-actions.pod:1123
26840 msgid "guestfs_chown"
26841 msgstr ""
26842
26843 #. type: verbatim
26844 #: ../src/guestfs-actions.pod:1125
26845 #, no-wrap
26846 msgid ""
26847 " int\n"
26848 " guestfs_chown (guestfs_h *g,\n"
26849 "                int owner,\n"
26850 "                int group,\n"
26851 "                const char *path);\n"
26852 "\n"
26853 msgstr ""
26854
26855 #. type: =head2
26856 #: ../src/guestfs-actions.pod:1141
26857 msgid "guestfs_command"
26858 msgstr ""
26859
26860 #. type: verbatim
26861 #: ../src/guestfs-actions.pod:1143
26862 #, no-wrap
26863 msgid ""
26864 " char *\n"
26865 " guestfs_command (guestfs_h *g,\n"
26866 "                  char *const *arguments);\n"
26867 "\n"
26868 msgstr ""
26869
26870 #. type: textblock
26871 #: ../src/guestfs-actions.pod:1152
26872 msgid ""
26873 "The single parameter is an argv-style list of arguments.  The first element "
26874 "is the name of the program to run.  Subsequent elements are parameters.  The "
26875 "list must be non-empty (ie. must contain a program name).  Note that the "
26876 "command runs directly, and is I<not> invoked via the shell (see "
26877 "C<guestfs_sh>)."
26878 msgstr ""
26879
26880 #. type: textblock
26881 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
26882 #: ../src/guestfs-actions.pod:2027
26883 msgid "(Added in 0.9.1)"
26884 msgstr "(Додано у 0.9.1)"
26885
26886 #. type: =head2
26887 #: ../src/guestfs-actions.pod:1185
26888 msgid "guestfs_command_lines"
26889 msgstr ""
26890
26891 #. type: verbatim
26892 #: ../src/guestfs-actions.pod:1187
26893 #, no-wrap
26894 msgid ""
26895 " char **\n"
26896 " guestfs_command_lines (guestfs_h *g,\n"
26897 "                        char *const *arguments);\n"
26898 "\n"
26899 msgstr ""
26900
26901 #. type: textblock
26902 #: ../src/guestfs-actions.pod:1191
26903 msgid ""
26904 "This is the same as C<guestfs_command>, but splits the result into a list of "
26905 "lines."
26906 msgstr ""
26907
26908 #. type: textblock
26909 #: ../src/guestfs-actions.pod:1194
26910 msgid "See also: C<guestfs_sh_lines>"
26911 msgstr ""
26912
26913 #. type: =head2
26914 #: ../src/guestfs-actions.pod:1205
26915 msgid "guestfs_compress_device_out"
26916 msgstr ""
26917
26918 #. type: verbatim
26919 #: ../src/guestfs-actions.pod:1207
26920 #, no-wrap
26921 msgid ""
26922 " int\n"
26923 " guestfs_compress_device_out (guestfs_h *g,\n"
26924 "                              const char *ctype,\n"
26925 "                              const char *device,\n"
26926 "                              const char *zdevice,\n"
26927 "                              ...);\n"
26928 "\n"
26929 msgstr ""
26930
26931 #. type: verbatim
26932 #: ../src/guestfs-actions.pod:1219
26933 #, no-wrap
26934 msgid ""
26935 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26936 "\n"
26937 msgstr ""
26938
26939 #. type: textblock
26940 #: ../src/guestfs-actions.pod:1224
26941 msgid ""
26942 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26943 "C<guestfs_compress_out>."
26944 msgstr ""
26945
26946 #. type: textblock
26947 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
26948 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:6902
26949 msgid "(Added in 1.13.15)"
26950 msgstr ""
26951
26952 #. type: =head2
26953 #: ../src/guestfs-actions.pod:1231
26954 msgid "guestfs_compress_device_out_va"
26955 msgstr ""
26956
26957 #. type: verbatim
26958 #: ../src/guestfs-actions.pod:1233
26959 #, no-wrap
26960 msgid ""
26961 " int\n"
26962 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26963 "                                 const char *ctype,\n"
26964 "                                 const char *device,\n"
26965 "                                 const char *zdevice,\n"
26966 "                                 va_list args);\n"
26967 "\n"
26968 msgstr ""
26969
26970 #. type: textblock
26971 #: ../src/guestfs-actions.pod:1240
26972 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26973 msgstr ""
26974
26975 #. type: =head2
26976 #: ../src/guestfs-actions.pod:1244
26977 msgid "guestfs_compress_device_out_argv"
26978 msgstr ""
26979
26980 #. type: verbatim
26981 #: ../src/guestfs-actions.pod:1246
26982 #, no-wrap
26983 msgid ""
26984 " int\n"
26985 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26986 "                                   const char *ctype,\n"
26987 "                                   const char *device,\n"
26988 "                                   const char *zdevice,\n"
26989 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
26990 "\n"
26991 msgstr ""
26992
26993 #. type: textblock
26994 #: ../src/guestfs-actions.pod:1253
26995 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26996 msgstr ""
26997
26998 #. type: =head2
26999 #: ../src/guestfs-actions.pod:1257
27000 msgid "guestfs_compress_out"
27001 msgstr ""
27002
27003 #. type: verbatim
27004 #: ../src/guestfs-actions.pod:1259
27005 #, no-wrap
27006 msgid ""
27007 " int\n"
27008 " guestfs_compress_out (guestfs_h *g,\n"
27009 "                       const char *ctype,\n"
27010 "                       const char *file,\n"
27011 "                       const char *zfile,\n"
27012 "                       ...);\n"
27013 "\n"
27014 msgstr ""
27015
27016 #. type: verbatim
27017 #: ../src/guestfs-actions.pod:1271
27018 #, no-wrap
27019 msgid ""
27020 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
27021 "\n"
27022 msgstr ""
27023
27024 #. type: =head2
27025 #: ../src/guestfs-actions.pod:1290
27026 msgid "guestfs_compress_out_va"
27027 msgstr ""
27028
27029 #. type: verbatim
27030 #: ../src/guestfs-actions.pod:1292
27031 #, no-wrap
27032 msgid ""
27033 " int\n"
27034 " guestfs_compress_out_va (guestfs_h *g,\n"
27035 "                          const char *ctype,\n"
27036 "                          const char *file,\n"
27037 "                          const char *zfile,\n"
27038 "                          va_list args);\n"
27039 "\n"
27040 msgstr ""
27041
27042 #. type: textblock
27043 #: ../src/guestfs-actions.pod:1299
27044 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
27045 msgstr ""
27046
27047 #. type: =head2
27048 #: ../src/guestfs-actions.pod:1303
27049 msgid "guestfs_compress_out_argv"
27050 msgstr ""
27051
27052 #. type: verbatim
27053 #: ../src/guestfs-actions.pod:1305
27054 #, no-wrap
27055 msgid ""
27056 " int\n"
27057 " guestfs_compress_out_argv (guestfs_h *g,\n"
27058 "                            const char *ctype,\n"
27059 "                            const char *file,\n"
27060 "                            const char *zfile,\n"
27061 "                            const struct guestfs_compress_out_argv *optargs);\n"
27062 "\n"
27063 msgstr ""
27064
27065 #. type: textblock
27066 #: ../src/guestfs-actions.pod:1312
27067 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
27068 msgstr ""
27069
27070 #. type: =head2
27071 #: ../src/guestfs-actions.pod:1316
27072 msgid "guestfs_config"
27073 msgstr ""
27074
27075 #. type: verbatim
27076 #: ../src/guestfs-actions.pod:1318
27077 #, no-wrap
27078 msgid ""
27079 " int\n"
27080 " guestfs_config (guestfs_h *g,\n"
27081 "                 const char *qemuparam,\n"
27082 "                 const char *qemuvalue);\n"
27083 "\n"
27084 msgstr ""
27085
27086 #. type: =head2
27087 #: ../src/guestfs-actions.pod:1336
27088 msgid "guestfs_copy_device_to_device"
27089 msgstr ""
27090
27091 #. type: verbatim
27092 #: ../src/guestfs-actions.pod:1338
27093 #, no-wrap
27094 msgid ""
27095 " int\n"
27096 " guestfs_copy_device_to_device (guestfs_h *g,\n"
27097 "                                const char *src,\n"
27098 "                                const char *dest,\n"
27099 "                                ...);\n"
27100 "\n"
27101 msgstr ""
27102
27103 #. type: verbatim
27104 #: ../src/guestfs-actions.pod:1349
27105 #, no-wrap
27106 msgid ""
27107 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27108 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27109 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27110 "\n"
27111 msgstr ""
27112
27113 #. type: textblock
27114 #: ../src/guestfs-actions.pod:1353
27115 msgid ""
27116 "The four calls C<guestfs_copy_device_to_device>, "
27117 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27118 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27119 "destination (device|file)."
27120 msgstr ""
27121
27122 #. type: textblock
27123 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
27124 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
27125 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
27126 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
27127 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
27128 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:7707
27129 #: ../src/guestfs-actions.pod:7741 ../src/guestfs-actions.pod:8248
27130 #: ../src/guestfs-actions.pod:8271
27131 msgid ""
27132 "This long-running command can generate progress notification messages so "
27133 "that the caller can display a progress bar or indicator.  To receive these "
27134 "messages, the caller must register a progress event callback.  See L<guestfs"
27135 "(3)/GUESTFS_EVENT_PROGRESS>."
27136 msgstr ""
27137
27138 #. type: textblock
27139 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
27140 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
27141 #: ../src/guestfs-actions.pod:6042
27142 #, fuzzy
27143 #| msgid "(Added in 1.3.5)"
27144 msgid "(Added in 1.13.25)"
27145 msgstr "(Додано у 1.3.5)"
27146
27147 #. type: =head2
27148 #: ../src/guestfs-actions.pod:1381
27149 msgid "guestfs_copy_device_to_device_va"
27150 msgstr ""
27151
27152 #. type: verbatim
27153 #: ../src/guestfs-actions.pod:1383
27154 #, no-wrap
27155 msgid ""
27156 " int\n"
27157 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27158 "                                   const char *src,\n"
27159 "                                   const char *dest,\n"
27160 "                                   va_list args);\n"
27161 "\n"
27162 msgstr ""
27163
27164 #. type: textblock
27165 #: ../src/guestfs-actions.pod:1389
27166 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27167 msgstr ""
27168
27169 #. type: =head2
27170 #: ../src/guestfs-actions.pod:1393
27171 msgid "guestfs_copy_device_to_device_argv"
27172 msgstr ""
27173
27174 #. type: verbatim
27175 #: ../src/guestfs-actions.pod:1395
27176 #, no-wrap
27177 msgid ""
27178 " int\n"
27179 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27180 "                                     const char *src,\n"
27181 "                                     const char *dest,\n"
27182 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
27183 "\n"
27184 msgstr ""
27185
27186 #. type: textblock
27187 #: ../src/guestfs-actions.pod:1401
27188 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27189 msgstr ""
27190
27191 #. type: =head2
27192 #: ../src/guestfs-actions.pod:1405
27193 msgid "guestfs_copy_device_to_file"
27194 msgstr ""
27195
27196 #. type: verbatim
27197 #: ../src/guestfs-actions.pod:1407
27198 #, no-wrap
27199 msgid ""
27200 " int\n"
27201 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27202 "                              const char *src,\n"
27203 "                              const char *dest,\n"
27204 "                              ...);\n"
27205 "\n"
27206 msgstr ""
27207
27208 #. type: verbatim
27209 #: ../src/guestfs-actions.pod:1418
27210 #, no-wrap
27211 msgid ""
27212 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27213 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27214 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27215 "\n"
27216 msgstr ""
27217
27218 #. type: textblock
27219 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
27220 #: ../src/guestfs-actions.pod:1528
27221 msgid ""
27222 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27223 msgstr ""
27224
27225 #. type: =head2
27226 #: ../src/guestfs-actions.pod:1434
27227 msgid "guestfs_copy_device_to_file_va"
27228 msgstr ""
27229
27230 #. type: verbatim
27231 #: ../src/guestfs-actions.pod:1436
27232 #, no-wrap
27233 msgid ""
27234 " int\n"
27235 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27236 "                                 const char *src,\n"
27237 "                                 const char *dest,\n"
27238 "                                 va_list args);\n"
27239 "\n"
27240 msgstr ""
27241
27242 #. type: textblock
27243 #: ../src/guestfs-actions.pod:1442
27244 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
27245 msgstr ""
27246
27247 #. type: =head2
27248 #: ../src/guestfs-actions.pod:1446
27249 msgid "guestfs_copy_device_to_file_argv"
27250 msgstr ""
27251
27252 #. type: verbatim
27253 #: ../src/guestfs-actions.pod:1448
27254 #, no-wrap
27255 msgid ""
27256 " int\n"
27257 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
27258 "                                   const char *src,\n"
27259 "                                   const char *dest,\n"
27260 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
27261 "\n"
27262 msgstr ""
27263
27264 #. type: textblock
27265 #: ../src/guestfs-actions.pod:1454
27266 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
27267 msgstr ""
27268
27269 #. type: =head2
27270 #: ../src/guestfs-actions.pod:1458
27271 msgid "guestfs_copy_file_to_device"
27272 msgstr ""
27273
27274 #. type: verbatim
27275 #: ../src/guestfs-actions.pod:1460
27276 #, no-wrap
27277 msgid ""
27278 " int\n"
27279 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27280 "                              const char *src,\n"
27281 "                              const char *dest,\n"
27282 "                              ...);\n"
27283 "\n"
27284 msgstr ""
27285
27286 #. type: verbatim
27287 #: ../src/guestfs-actions.pod:1471
27288 #, no-wrap
27289 msgid ""
27290 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27291 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27292 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27293 "\n"
27294 msgstr ""
27295
27296 #. type: =head2
27297 #: ../src/guestfs-actions.pod:1487
27298 msgid "guestfs_copy_file_to_device_va"
27299 msgstr ""
27300
27301 #. type: verbatim
27302 #: ../src/guestfs-actions.pod:1489
27303 #, no-wrap
27304 msgid ""
27305 " int\n"
27306 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
27307 "                                 const char *src,\n"
27308 "                                 const char *dest,\n"
27309 "                                 va_list args);\n"
27310 "\n"
27311 msgstr ""
27312
27313 #. type: textblock
27314 #: ../src/guestfs-actions.pod:1495
27315 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
27316 msgstr ""
27317
27318 #. type: =head2
27319 #: ../src/guestfs-actions.pod:1499
27320 msgid "guestfs_copy_file_to_device_argv"
27321 msgstr ""
27322
27323 #. type: verbatim
27324 #: ../src/guestfs-actions.pod:1501
27325 #, no-wrap
27326 msgid ""
27327 " int\n"
27328 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
27329 "                                   const char *src,\n"
27330 "                                   const char *dest,\n"
27331 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
27332 "\n"
27333 msgstr ""
27334
27335 #. type: textblock
27336 #: ../src/guestfs-actions.pod:1507
27337 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
27338 msgstr ""
27339
27340 #. type: =head2
27341 #: ../src/guestfs-actions.pod:1511
27342 msgid "guestfs_copy_file_to_file"
27343 msgstr ""
27344
27345 #. type: verbatim
27346 #: ../src/guestfs-actions.pod:1513
27347 #, no-wrap
27348 msgid ""
27349 " int\n"
27350 " guestfs_copy_file_to_file (guestfs_h *g,\n"
27351 "                            const char *src,\n"
27352 "                            const char *dest,\n"
27353 "                            ...);\n"
27354 "\n"
27355 msgstr ""
27356
27357 #. type: verbatim
27358 #: ../src/guestfs-actions.pod:1524
27359 #, no-wrap
27360 msgid ""
27361 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27362 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27363 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
27364 "\n"
27365 msgstr ""
27366
27367 #. type: textblock
27368 #: ../src/guestfs-actions.pod:1531
27369 msgid ""
27370 "This is B<not> the function you want for copying files.  This is for copying "
27371 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
27372 "C<guestfs_mv> for general file copying and moving functions."
27373 msgstr ""
27374
27375 #. type: =head2
27376 #: ../src/guestfs-actions.pod:1545
27377 msgid "guestfs_copy_file_to_file_va"
27378 msgstr ""
27379
27380 #. type: verbatim
27381 #: ../src/guestfs-actions.pod:1547
27382 #, no-wrap
27383 msgid ""
27384 " int\n"
27385 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27386 "                               const char *src,\n"
27387 "                               const char *dest,\n"
27388 "                               va_list args);\n"
27389 "\n"
27390 msgstr ""
27391
27392 #. type: textblock
27393 #: ../src/guestfs-actions.pod:1553
27394 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27395 msgstr ""
27396
27397 #. type: =head2
27398 #: ../src/guestfs-actions.pod:1557
27399 msgid "guestfs_copy_file_to_file_argv"
27400 msgstr ""
27401
27402 #. type: verbatim
27403 #: ../src/guestfs-actions.pod:1559
27404 #, no-wrap
27405 msgid ""
27406 " int\n"
27407 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27408 "                                 const char *src,\n"
27409 "                                 const char *dest,\n"
27410 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
27411 "\n"
27412 msgstr ""
27413
27414 #. type: textblock
27415 #: ../src/guestfs-actions.pod:1565
27416 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27417 msgstr ""
27418
27419 #. type: =head2
27420 #: ../src/guestfs-actions.pod:1569
27421 msgid "guestfs_copy_size"
27422 msgstr ""
27423
27424 #. type: verbatim
27425 #: ../src/guestfs-actions.pod:1571
27426 #, no-wrap
27427 msgid ""
27428 " int\n"
27429 " guestfs_copy_size (guestfs_h *g,\n"
27430 "                    const char *src,\n"
27431 "                    const char *dest,\n"
27432 "                    int64_t size);\n"
27433 "\n"
27434 msgstr ""
27435
27436 #. type: textblock
27437 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
27438 msgid ""
27439 "I<This function is deprecated.> In new code, use the L</"
27440 "guestfs_copy_device_to_device> call instead."
27441 msgstr ""
27442
27443 #. type: textblock
27444 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4820
27445 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:7942
27446 #: ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:8048
27447 msgid "(Added in 1.0.87)"
27448 msgstr "(Додано у 1.0.87)"
27449
27450 #. type: =head2
27451 #: ../src/guestfs-actions.pod:1599
27452 msgid "guestfs_cp"
27453 msgstr ""
27454
27455 #. type: verbatim
27456 #: ../src/guestfs-actions.pod:1601
27457 #, no-wrap
27458 msgid ""
27459 " int\n"
27460 " guestfs_cp (guestfs_h *g,\n"
27461 "             const char *src,\n"
27462 "             const char *dest);\n"
27463 "\n"
27464 msgstr ""
27465
27466 #. type: textblock
27467 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
27468 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
27469 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5564
27470 #: ../src/guestfs-actions.pod:6056
27471 msgid "(Added in 1.0.18)"
27472 msgstr "(Додано у 1.0.18)"
27473
27474 #. type: =head2
27475 #: ../src/guestfs-actions.pod:1613
27476 msgid "guestfs_cp_a"
27477 msgstr ""
27478
27479 #. type: verbatim
27480 #: ../src/guestfs-actions.pod:1615
27481 #, no-wrap
27482 msgid ""
27483 " int\n"
27484 " guestfs_cp_a (guestfs_h *g,\n"
27485 "               const char *src,\n"
27486 "               const char *dest);\n"
27487 "\n"
27488 msgstr ""
27489
27490 #. type: =head2
27491 #: ../src/guestfs-actions.pod:1627
27492 msgid "guestfs_dd"
27493 msgstr ""
27494
27495 #. type: verbatim
27496 #: ../src/guestfs-actions.pod:1629
27497 #, no-wrap
27498 msgid ""
27499 " int\n"
27500 " guestfs_dd (guestfs_h *g,\n"
27501 "             const char *src,\n"
27502 "             const char *dest);\n"
27503 "\n"
27504 msgstr ""
27505
27506 #. type: textblock
27507 #: ../src/guestfs-actions.pod:1646
27508 msgid ""
27509 "If the destination is a device, it must be as large or larger than the "
27510 "source file or device, otherwise the copy will fail.  This command cannot do "
27511 "partial copies (see C<guestfs_copy_device_to_device>)."
27512 msgstr ""
27513
27514 #. type: =head2
27515 #: ../src/guestfs-actions.pod:1655
27516 msgid "guestfs_df"
27517 msgstr ""
27518
27519 #. type: verbatim
27520 #: ../src/guestfs-actions.pod:1657
27521 #, no-wrap
27522 msgid ""
27523 " char *\n"
27524 " guestfs_df (guestfs_h *g);\n"
27525 "\n"
27526 msgstr ""
27527
27528 #. type: textblock
27529 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
27530 msgid ""
27531 "This command is mostly useful for interactive sessions.  It is I<not> "
27532 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
27533 "from programs."
27534 msgstr ""
27535
27536 #. type: textblock
27537 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
27538 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
27539 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
27540 #: ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:5464
27541 #: ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7469
27542 #: ../src/guestfs-actions.pod:8088 ../src/guestfs-actions.pod:8101
27543 #: ../src/guestfs-actions.pod:8114
27544 msgid "(Added in 1.0.54)"
27545 msgstr "(Додано у 1.0.54)"
27546
27547 #. type: =head2
27548 #: ../src/guestfs-actions.pod:1671
27549 msgid "guestfs_df_h"
27550 msgstr ""
27551
27552 #. type: verbatim
27553 #: ../src/guestfs-actions.pod:1673
27554 #, no-wrap
27555 msgid ""
27556 " char *\n"
27557 " guestfs_df_h (guestfs_h *g);\n"
27558 "\n"
27559 msgstr ""
27560
27561 #. type: =head2
27562 #: ../src/guestfs-actions.pod:1688
27563 msgid "guestfs_dmesg"
27564 msgstr ""
27565
27566 #. type: verbatim
27567 #: ../src/guestfs-actions.pod:1690
27568 #, no-wrap
27569 msgid ""
27570 " char *\n"
27571 " guestfs_dmesg (guestfs_h *g);\n"
27572 "\n"
27573 msgstr ""
27574
27575 #. type: textblock
27576 #: ../src/guestfs-actions.pod:1697
27577 msgid ""
27578 "Another way to get the same information is to enable verbose messages with "
27579 "C<guestfs_set_verbose> or by setting the environment variable "
27580 "C<LIBGUESTFS_DEBUG=1> before running the program."
27581 msgstr ""
27582
27583 #. type: =head2
27584 #: ../src/guestfs-actions.pod:1707
27585 msgid "guestfs_download"
27586 msgstr ""
27587
27588 #. type: verbatim
27589 #: ../src/guestfs-actions.pod:1709
27590 #, no-wrap
27591 msgid ""
27592 " int\n"
27593 " guestfs_download (guestfs_h *g,\n"
27594 "                   const char *remotefilename,\n"
27595 "                   const char *filename);\n"
27596 "\n"
27597 msgstr ""
27598
27599 #. type: textblock
27600 #: ../src/guestfs-actions.pod:1719
27601 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27602 msgstr ""
27603
27604 #. type: =head2
27605 #: ../src/guestfs-actions.pod:1730
27606 msgid "guestfs_download_offset"
27607 msgstr ""
27608
27609 #. type: verbatim
27610 #: ../src/guestfs-actions.pod:1732
27611 #, no-wrap
27612 msgid ""
27613 " int\n"
27614 " guestfs_download_offset (guestfs_h *g,\n"
27615 "                          const char *remotefilename,\n"
27616 "                          const char *filename,\n"
27617 "                          int64_t offset,\n"
27618 "                          int64_t size);\n"
27619 "\n"
27620 msgstr ""
27621
27622 #. type: textblock
27623 #: ../src/guestfs-actions.pod:1745
27624 msgid ""
27625 "Note that there is no limit on the amount of data that can be downloaded "
27626 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27627 "full amount unless an error occurs."
27628 msgstr ""
27629
27630 #. type: textblock
27631 #: ../src/guestfs-actions.pod:1750
27632 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27633 msgstr ""
27634
27635 #. type: textblock
27636 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:7746
27637 msgid "(Added in 1.5.17)"
27638 msgstr "(Додано у 1.5.17)"
27639
27640 #. type: =head2
27641 #: ../src/guestfs-actions.pod:1761
27642 msgid "guestfs_drop_caches"
27643 msgstr ""
27644
27645 #. type: verbatim
27646 #: ../src/guestfs-actions.pod:1763
27647 #, no-wrap
27648 msgid ""
27649 " int\n"
27650 " guestfs_drop_caches (guestfs_h *g,\n"
27651 "                      int whattodrop);\n"
27652 "\n"
27653 msgstr ""
27654
27655 #. type: =head2
27656 #: ../src/guestfs-actions.pod:1781
27657 msgid "guestfs_du"
27658 msgstr ""
27659
27660 #. type: verbatim
27661 #: ../src/guestfs-actions.pod:1783
27662 #, no-wrap
27663 msgid ""
27664 " int64_t\n"
27665 " guestfs_du (guestfs_h *g,\n"
27666 "             const char *path);\n"
27667 "\n"
27668 msgstr ""
27669
27670 #. type: =head2
27671 #: ../src/guestfs-actions.pod:1806
27672 msgid "guestfs_e2fsck_f"
27673 msgstr ""
27674
27675 #. type: verbatim
27676 #: ../src/guestfs-actions.pod:1808
27677 #, no-wrap
27678 msgid ""
27679 " int\n"
27680 " guestfs_e2fsck_f (guestfs_h *g,\n"
27681 "                   const char *device);\n"
27682 "\n"
27683 msgstr ""
27684
27685 #. type: textblock
27686 #: ../src/guestfs-actions.pod:1816
27687 msgid ""
27688 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
27689 "Normally you should use C<guestfs_fsck>."
27690 msgstr ""
27691
27692 #. type: textblock
27693 #: ../src/guestfs-actions.pod:1821
27694 msgid "(Added in 1.0.29)"
27695 msgstr "(Додано у 1.0.29)"
27696
27697 #. type: =head2
27698 #: ../src/guestfs-actions.pod:1823
27699 msgid "guestfs_echo_daemon"
27700 msgstr "guestfs_echo_daemon"
27701
27702 #. type: verbatim
27703 #: ../src/guestfs-actions.pod:1825
27704 #, no-wrap
27705 msgid ""
27706 " char *\n"
27707 " guestfs_echo_daemon (guestfs_h *g,\n"
27708 "                      char *const *words);\n"
27709 "\n"
27710 msgstr ""
27711 " char *\n"
27712 " guestfs_echo_daemon (guestfs_h *g,\n"
27713 "                      char *const *words);\n"
27714 "\n"
27715
27716 #. type: textblock
27717 #: ../src/guestfs-actions.pod:1834
27718 msgid "See also C<guestfs_ping_daemon>."
27719 msgstr ""
27720
27721 #. type: textblock
27722 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
27723 #: ../src/guestfs-actions.pod:6926
27724 msgid "(Added in 1.0.69)"
27725 msgstr "(Додано у 1.0.69)"
27726
27727 #. type: =head2
27728 #: ../src/guestfs-actions.pod:1841
27729 msgid "guestfs_egrep"
27730 msgstr "guestfs_egrep"
27731
27732 #. type: verbatim
27733 #: ../src/guestfs-actions.pod:1843
27734 #, no-wrap
27735 msgid ""
27736 " char **\n"
27737 " guestfs_egrep (guestfs_h *g,\n"
27738 "                const char *regex,\n"
27739 "                const char *path);\n"
27740 "\n"
27741 msgstr ""
27742 " char **\n"
27743 " guestfs_egrep (guestfs_h *g,\n"
27744 "                const char *regex,\n"
27745 "                const char *path);\n"
27746 "\n"
27747
27748 #. type: textblock
27749 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
27750 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
27751 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
27752 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
27753 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
27754 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
27755 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4319
27756 #: ../src/guestfs-actions.pod:4333 ../src/guestfs-actions.pod:4346
27757 #: ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:5352
27758 #: ../src/guestfs-actions.pod:6390 ../src/guestfs-actions.pod:6439
27759 #: ../src/guestfs-actions.pod:7313 ../src/guestfs-actions.pod:7325
27760 #: ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7351
27761 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7386
27762 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-actions.pod:7412
27763 #: ../src/guestfs-actions.pod:8206 ../src/guestfs-actions.pod:8225
27764 #: ../src/guestfs-actions.pod:8316 ../src/guestfs-actions.pod:8335
27765 #: ../src/guestfs-actions.pod:8381 ../src/guestfs-actions.pod:8400
27766 msgid "(Added in 1.0.66)"
27767 msgstr "(Додано у 1.0.66)"
27768
27769 #. type: =head2
27770 #: ../src/guestfs-actions.pod:1860
27771 msgid "guestfs_egrepi"
27772 msgstr "guestfs_egrepi"
27773
27774 #. type: verbatim
27775 #: ../src/guestfs-actions.pod:1862
27776 #, no-wrap
27777 msgid ""
27778 " char **\n"
27779 " guestfs_egrepi (guestfs_h *g,\n"
27780 "                 const char *regex,\n"
27781 "                 const char *path);\n"
27782 "\n"
27783 msgstr ""
27784
27785 #. type: =head2
27786 #: ../src/guestfs-actions.pod:1879
27787 msgid "guestfs_equal"
27788 msgstr ""
27789
27790 #. type: verbatim
27791 #: ../src/guestfs-actions.pod:1881
27792 #, no-wrap
27793 msgid ""
27794 " int\n"
27795 " guestfs_equal (guestfs_h *g,\n"
27796 "                const char *file1,\n"
27797 "                const char *file2);\n"
27798 "\n"
27799 msgstr ""
27800
27801 #. type: =head2
27802 #: ../src/guestfs-actions.pod:1895
27803 msgid "guestfs_exists"
27804 msgstr ""
27805
27806 #. type: verbatim
27807 #: ../src/guestfs-actions.pod:1897
27808 #, no-wrap
27809 msgid ""
27810 " int\n"
27811 " guestfs_exists (guestfs_h *g,\n"
27812 "                 const char *path);\n"
27813 "\n"
27814 msgstr ""
27815
27816 #. type: textblock
27817 #: ../src/guestfs-actions.pod:1904
27818 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27819 msgstr ""
27820
27821 #. type: =head2
27822 #: ../src/guestfs-actions.pod:1910
27823 msgid "guestfs_fallocate"
27824 msgstr ""
27825
27826 #. type: verbatim
27827 #: ../src/guestfs-actions.pod:1912
27828 #, no-wrap
27829 msgid ""
27830 " int\n"
27831 " guestfs_fallocate (guestfs_h *g,\n"
27832 "                    const char *path,\n"
27833 "                    int len);\n"
27834 "\n"
27835 msgstr ""
27836
27837 #. type: textblock
27838 #: ../src/guestfs-actions.pod:1917
27839 msgid ""
27840 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27841 "call instead."
27842 msgstr ""
27843
27844 #. type: =head2
27845 #: ../src/guestfs-actions.pod:1936
27846 msgid "guestfs_fallocate64"
27847 msgstr ""
27848
27849 #. type: verbatim
27850 #: ../src/guestfs-actions.pod:1938
27851 #, no-wrap
27852 msgid ""
27853 " int\n"
27854 " guestfs_fallocate64 (guestfs_h *g,\n"
27855 "                      const char *path,\n"
27856 "                      int64_t len);\n"
27857 "\n"
27858 msgstr ""
27859
27860 #. type: textblock
27861 #: ../src/guestfs-actions.pod:1947
27862 msgid ""
27863 "Note that this call allocates disk blocks for the file.  To create a sparse "
27864 "file use C<guestfs_truncate_size> instead."
27865 msgstr ""
27866
27867 #. type: textblock
27868 #: ../src/guestfs-actions.pod:1950
27869 msgid ""
27870 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27871 "oversight it only allowed 30 bit lengths to be specified, effectively "
27872 "limiting the maximum size of files created through that call to 1GB."
27873 msgstr ""
27874
27875 #. type: textblock
27876 #: ../src/guestfs-actions.pod:1961
27877 msgid "(Added in 1.3.17)"
27878 msgstr "(Додано у 1.3.17)"
27879
27880 #. type: =head2
27881 #: ../src/guestfs-actions.pod:1963
27882 msgid "guestfs_fgrep"
27883 msgstr ""
27884
27885 #. type: verbatim
27886 #: ../src/guestfs-actions.pod:1965
27887 #, no-wrap
27888 msgid ""
27889 " char **\n"
27890 " guestfs_fgrep (guestfs_h *g,\n"
27891 "                const char *pattern,\n"
27892 "                const char *path);\n"
27893 "\n"
27894 msgstr ""
27895
27896 #. type: =head2
27897 #: ../src/guestfs-actions.pod:1982
27898 msgid "guestfs_fgrepi"
27899 msgstr ""
27900
27901 #. type: verbatim
27902 #: ../src/guestfs-actions.pod:1984
27903 #, no-wrap
27904 msgid ""
27905 " char **\n"
27906 " guestfs_fgrepi (guestfs_h *g,\n"
27907 "                 const char *pattern,\n"
27908 "                 const char *path);\n"
27909 "\n"
27910 msgstr ""
27911
27912 #. type: =head2
27913 #: ../src/guestfs-actions.pod:2001
27914 msgid "guestfs_file"
27915 msgstr ""
27916
27917 #. type: verbatim
27918 #: ../src/guestfs-actions.pod:2003
27919 #, no-wrap
27920 msgid ""
27921 " char *\n"
27922 " guestfs_file (guestfs_h *g,\n"
27923 "               const char *path);\n"
27924 "\n"
27925 msgstr ""
27926
27927 #. type: textblock
27928 #: ../src/guestfs-actions.pod:2021
27929 msgid ""
27930 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27931 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27932 msgstr ""
27933
27934 #. type: =head2
27935 #: ../src/guestfs-actions.pod:2029
27936 msgid "guestfs_file_architecture"
27937 msgstr ""
27938
27939 #. type: verbatim
27940 #: ../src/guestfs-actions.pod:2031
27941 #, no-wrap
27942 msgid ""
27943 " char *\n"
27944 " guestfs_file_architecture (guestfs_h *g,\n"
27945 "                            const char *filename);\n"
27946 "\n"
27947 msgstr ""
27948
27949 #. type: textblock
27950 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
27951 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
27952 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
27953 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
27954 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
27955 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876
27956 #: ../src/guestfs-actions.pod:4008
27957 msgid "(Added in 1.5.3)"
27958 msgstr "(Додано у 1.5.3)"
27959
27960 #. type: =head2
27961 #: ../src/guestfs-actions.pod:2141
27962 msgid "guestfs_filesize"
27963 msgstr ""
27964
27965 #. type: verbatim
27966 #: ../src/guestfs-actions.pod:2143
27967 #, no-wrap
27968 msgid ""
27969 " int64_t\n"
27970 " guestfs_filesize (guestfs_h *g,\n"
27971 "                   const char *file);\n"
27972 "\n"
27973 msgstr ""
27974
27975 #. type: textblock
27976 #: ../src/guestfs-actions.pod:2149
27977 msgid ""
27978 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27979 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27980 "devices, use C<guestfs_blockdev_getsize64>."
27981 msgstr ""
27982
27983 #. type: textblock
27984 #: ../src/guestfs-actions.pod:2155
27985 msgid "(Added in 1.0.82)"
27986 msgstr "(Додано у 1.0.82)"
27987
27988 #. type: =head2
27989 #: ../src/guestfs-actions.pod:2157
27990 msgid "guestfs_fill"
27991 msgstr ""
27992
27993 #. type: verbatim
27994 #: ../src/guestfs-actions.pod:2159
27995 #, no-wrap
27996 msgid ""
27997 " int\n"
27998 " guestfs_fill (guestfs_h *g,\n"
27999 "               int c,\n"
28000 "               int len,\n"
28001 "               const char *path);\n"
28002 "\n"
28003 msgstr ""
28004
28005 #. type: textblock
28006 #: ../src/guestfs-actions.pod:2169
28007 msgid ""
28008 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
28009 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
28010 "bytes use C<guestfs_fill_pattern>."
28011 msgstr ""
28012
28013 #. type: textblock
28014 #: ../src/guestfs-actions.pod:2181
28015 msgid "(Added in 1.0.79)"
28016 msgstr "(Додано у 1.0.79)"
28017
28018 #. type: =head2
28019 #: ../src/guestfs-actions.pod:2183
28020 msgid "guestfs_fill_pattern"
28021 msgstr ""
28022
28023 #. type: verbatim
28024 #: ../src/guestfs-actions.pod:2185
28025 #, no-wrap
28026 msgid ""
28027 " int\n"
28028 " guestfs_fill_pattern (guestfs_h *g,\n"
28029 "                       const char *pattern,\n"
28030 "                       int len,\n"
28031 "                       const char *path);\n"
28032 "\n"
28033 msgstr ""
28034
28035 #. type: textblock
28036 #: ../src/guestfs-actions.pod:2191
28037 msgid ""
28038 "This function is like C<guestfs_fill> except that it creates a new file of "
28039 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
28040 "pattern is truncated if necessary to ensure the length of the file is "
28041 "exactly C<len> bytes."
28042 msgstr ""
28043
28044 #. type: textblock
28045 #: ../src/guestfs-actions.pod:2203
28046 msgid "(Added in 1.3.12)"
28047 msgstr "(Додано у 1.3.12)"
28048
28049 #. type: =head2
28050 #: ../src/guestfs-actions.pod:2205
28051 msgid "guestfs_find"
28052 msgstr ""
28053
28054 #. type: verbatim
28055 #: ../src/guestfs-actions.pod:2207
28056 #, no-wrap
28057 msgid ""
28058 " char **\n"
28059 " guestfs_find (guestfs_h *g,\n"
28060 "               const char *directory);\n"
28061 "\n"
28062 msgstr ""
28063
28064 #. type: textblock
28065 #: ../src/guestfs-actions.pod:2223
28066 msgid ""
28067 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28068 msgstr ""
28069
28070 #. type: textblock
28071 #: ../src/guestfs-actions.pod:2236
28072 msgid "See also C<guestfs_find0>."
28073 msgstr ""
28074
28075 #. type: textblock
28076 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4757
28077 #: ../src/guestfs-actions.pod:6474
28078 msgid "(Added in 1.0.27)"
28079 msgstr "(Додано у 1.0.27)"
28080
28081 #. type: =head2
28082 #: ../src/guestfs-actions.pod:2247
28083 msgid "guestfs_find0"
28084 msgstr ""
28085
28086 #. type: verbatim
28087 #: ../src/guestfs-actions.pod:2249
28088 #, no-wrap
28089 msgid ""
28090 " int\n"
28091 " guestfs_find0 (guestfs_h *g,\n"
28092 "                const char *directory,\n"
28093 "                const char *files);\n"
28094 "\n"
28095 msgstr ""
28096
28097 #. type: textblock
28098 #: ../src/guestfs-actions.pod:2258
28099 msgid ""
28100 "This command works the same way as C<guestfs_find> with the following "
28101 "exceptions:"
28102 msgstr ""
28103
28104 #. type: textblock
28105 #: ../src/guestfs-actions.pod:2285
28106 msgid "(Added in 1.0.74)"
28107 msgstr "(Додано у 1.0.74)"
28108
28109 #. type: =head2
28110 #: ../src/guestfs-actions.pod:2287
28111 msgid "guestfs_findfs_label"
28112 msgstr ""
28113
28114 #. type: verbatim
28115 #: ../src/guestfs-actions.pod:2289
28116 #, no-wrap
28117 msgid ""
28118 " char *\n"
28119 " guestfs_findfs_label (guestfs_h *g,\n"
28120 "                       const char *label);\n"
28121 "\n"
28122 msgstr ""
28123
28124 #. type: textblock
28125 #: ../src/guestfs-actions.pod:2297
28126 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28127 msgstr ""
28128
28129 #. type: =head2
28130 #: ../src/guestfs-actions.pod:2304
28131 msgid "guestfs_findfs_uuid"
28132 msgstr ""
28133
28134 #. type: verbatim
28135 #: ../src/guestfs-actions.pod:2306
28136 #, no-wrap
28137 msgid ""
28138 " char *\n"
28139 " guestfs_findfs_uuid (guestfs_h *g,\n"
28140 "                      const char *uuid);\n"
28141 "\n"
28142 msgstr ""
28143
28144 #. type: textblock
28145 #: ../src/guestfs-actions.pod:2314
28146 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28147 msgstr ""
28148
28149 #. type: =head2
28150 #: ../src/guestfs-actions.pod:2321
28151 msgid "guestfs_fsck"
28152 msgstr ""
28153
28154 #. type: verbatim
28155 #: ../src/guestfs-actions.pod:2323
28156 #, no-wrap
28157 msgid ""
28158 " int\n"
28159 " guestfs_fsck (guestfs_h *g,\n"
28160 "               const char *fstype,\n"
28161 "               const char *device);\n"
28162 "\n"
28163 msgstr ""
28164
28165 #. type: textblock
28166 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8253
28167 msgid "(Added in 1.0.16)"
28168 msgstr "(Додано у 1.0.16)"
28169
28170 #. type: =head2
28171 #: ../src/guestfs-actions.pod:2360
28172 msgid "guestfs_get_append"
28173 msgstr ""
28174
28175 #. type: verbatim
28176 #: ../src/guestfs-actions.pod:2362
28177 #, no-wrap
28178 msgid ""
28179 " const char *\n"
28180 " guestfs_get_append (guestfs_h *g);\n"
28181 "\n"
28182 msgstr ""
28183
28184 #. type: textblock
28185 #: ../src/guestfs-actions.pod:2370
28186 msgid ""
28187 "This function returns a string which may be NULL.  There is no way to return "
28188 "an error from this function.  The string is owned by the guest handle and "
28189 "must I<not> be freed."
28190 msgstr ""
28191
28192 #. type: textblock
28193 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6152
28194 #: ../src/guestfs-actions.pod:6631 ../src/guestfs-actions.pod:7080
28195 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7115
28196 #: ../src/guestfs-actions.pod:7139 ../src/guestfs-actions.pod:7893
28197 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8297
28198 msgid "(Added in 1.0.26)"
28199 msgstr "(Додано у 1.0.26)"
28200
28201 #. type: =head2
28202 #: ../src/guestfs-actions.pod:2376
28203 msgid "guestfs_get_attach_method"
28204 msgstr ""
28205
28206 #. type: verbatim
28207 #: ../src/guestfs-actions.pod:2378
28208 #, no-wrap
28209 msgid ""
28210 " char *\n"
28211 " guestfs_get_attach_method (guestfs_h *g);\n"
28212 "\n"
28213 msgstr ""
28214
28215 #. type: textblock
28216 #: ../src/guestfs-actions.pod:2381
28217 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
28218 msgstr ""
28219
28220 #. type: textblock
28221 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6661
28222 msgid "(Added in 1.9.8)"
28223 msgstr "(Додано у 1.9.8)"
28224
28225 #. type: =head2
28226 #: ../src/guestfs-actions.pod:2388
28227 msgid "guestfs_get_autosync"
28228 msgstr ""
28229
28230 #. type: verbatim
28231 #: ../src/guestfs-actions.pod:2390
28232 #, no-wrap
28233 msgid ""
28234 " int\n"
28235 " guestfs_get_autosync (guestfs_h *g);\n"
28236 "\n"
28237 msgstr ""
28238
28239 #. type: =head2
28240 #: ../src/guestfs-actions.pod:2399
28241 msgid "guestfs_get_direct"
28242 msgstr ""
28243
28244 #. type: verbatim
28245 #: ../src/guestfs-actions.pod:2401
28246 #, no-wrap
28247 msgid ""
28248 " int\n"
28249 " guestfs_get_direct (guestfs_h *g);\n"
28250 "\n"
28251 msgstr ""
28252
28253 #. type: textblock
28254 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6702
28255 msgid "(Added in 1.0.72)"
28256 msgstr "(Додано у 1.0.72)"
28257
28258 #. type: =head2
28259 #: ../src/guestfs-actions.pod:2410
28260 msgid "guestfs_get_e2label"
28261 msgstr ""
28262
28263 #. type: verbatim
28264 #: ../src/guestfs-actions.pod:2412
28265 #, no-wrap
28266 msgid ""
28267 " char *\n"
28268 " guestfs_get_e2label (guestfs_h *g,\n"
28269 "                      const char *device);\n"
28270 "\n"
28271 msgstr ""
28272
28273 #. type: textblock
28274 #: ../src/guestfs-actions.pod:2416
28275 msgid ""
28276 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28277 "call instead."
28278 msgstr ""
28279
28280 #. type: textblock
28281 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
28282 #: ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:6739
28283 msgid "(Added in 1.0.15)"
28284 msgstr "(Додано у 1.0.15)"
28285
28286 #. type: =head2
28287 #: ../src/guestfs-actions.pod:2431
28288 msgid "guestfs_get_e2uuid"
28289 msgstr ""
28290
28291 #. type: verbatim
28292 #: ../src/guestfs-actions.pod:2433
28293 #, no-wrap
28294 msgid ""
28295 " char *\n"
28296 " guestfs_get_e2uuid (guestfs_h *g,\n"
28297 "                     const char *device);\n"
28298 "\n"
28299 msgstr ""
28300
28301 #. type: textblock
28302 #: ../src/guestfs-actions.pod:2437
28303 msgid ""
28304 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28305 "call instead."
28306 msgstr ""
28307
28308 #. type: =head2
28309 #: ../src/guestfs-actions.pod:2452
28310 msgid "guestfs_get_memsize"
28311 msgstr ""
28312
28313 #. type: verbatim
28314 #: ../src/guestfs-actions.pod:2454
28315 #, no-wrap
28316 msgid ""
28317 " int\n"
28318 " guestfs_get_memsize (guestfs_h *g);\n"
28319 "\n"
28320 msgstr ""
28321
28322 #. type: textblock
28323 #: ../src/guestfs-actions.pod:2460
28324 msgid ""
28325 "If C<guestfs_set_memsize> was not called on this handle, and if "
28326 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28327 "value for memsize."
28328 msgstr ""
28329
28330 #. type: textblock
28331 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5048
28332 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5276
28333 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5307
28334 #: ../src/guestfs-actions.pod:5324 ../src/guestfs-actions.pod:5337
28335 #: ../src/guestfs-actions.pod:6377 ../src/guestfs-actions.pod:6760
28336 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7662
28337 msgid "(Added in 1.0.55)"
28338 msgstr "(Додано у 1.0.55)"
28339
28340 #. type: =head2
28341 #: ../src/guestfs-actions.pod:2471
28342 msgid "guestfs_get_network"
28343 msgstr ""
28344
28345 #. type: verbatim
28346 #: ../src/guestfs-actions.pod:2473
28347 #, no-wrap
28348 msgid ""
28349 " int\n"
28350 " guestfs_get_network (guestfs_h *g);\n"
28351 "\n"
28352 msgstr ""
28353
28354 #. type: textblock
28355 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6779
28356 msgid "(Added in 1.5.4)"
28357 msgstr "(Додано у 1.5.4)"
28358
28359 #. type: =head2
28360 #: ../src/guestfs-actions.pod:2482
28361 msgid "guestfs_get_path"
28362 msgstr ""
28363
28364 #. type: verbatim
28365 #: ../src/guestfs-actions.pod:2484
28366 #, no-wrap
28367 msgid ""
28368 " const char *\n"
28369 " guestfs_get_path (guestfs_h *g);\n"
28370 "\n"
28371 msgstr ""
28372
28373 #. type: textblock
28374 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
28375 msgid ""
28376 "This function returns a string, or NULL on error.  The string is owned by "
28377 "the guest handle and must I<not> be freed."
28378 msgstr ""
28379
28380 #. type: =head2
28381 #: ../src/guestfs-actions.pod:2497
28382 msgid "guestfs_get_pgroup"
28383 msgstr ""
28384
28385 #. type: verbatim
28386 #: ../src/guestfs-actions.pod:2499
28387 #, no-wrap
28388 msgid ""
28389 " int\n"
28390 " guestfs_get_pgroup (guestfs_h *g);\n"
28391 "\n"
28392 msgstr ""
28393
28394 #. type: textblock
28395 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6815
28396 #: ../src/guestfs-actions.pod:8154
28397 msgid "(Added in 1.11.18)"
28398 msgstr "(Додано у 1.11.18)"
28399
28400 #. type: =head2
28401 #: ../src/guestfs-actions.pod:2508
28402 msgid "guestfs_get_pid"
28403 msgstr ""
28404
28405 #. type: verbatim
28406 #: ../src/guestfs-actions.pod:2510
28407 #, no-wrap
28408 msgid ""
28409 " int\n"
28410 " guestfs_get_pid (guestfs_h *g);\n"
28411 "\n"
28412 msgstr ""
28413
28414 #. type: textblock
28415 #: ../src/guestfs-actions.pod:2520
28416 msgid "(Added in 1.0.56)"
28417 msgstr "(Додано у 1.0.56)"
28418
28419 #. type: =head2
28420 #: ../src/guestfs-actions.pod:2522
28421 msgid "guestfs_get_qemu"
28422 msgstr ""
28423
28424 #. type: verbatim
28425 #: ../src/guestfs-actions.pod:2524
28426 #, no-wrap
28427 msgid ""
28428 " const char *\n"
28429 " guestfs_get_qemu (guestfs_h *g);\n"
28430 "\n"
28431 msgstr ""
28432
28433 #. type: textblock
28434 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6843
28435 msgid "(Added in 1.0.6)"
28436 msgstr "(Додано у 1.0.6)"
28437
28438 #. type: =head2
28439 #: ../src/guestfs-actions.pod:2537
28440 msgid "guestfs_get_recovery_proc"
28441 msgstr ""
28442
28443 #. type: verbatim
28444 #: ../src/guestfs-actions.pod:2539
28445 #, no-wrap
28446 msgid ""
28447 " int\n"
28448 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28449 "\n"
28450 msgstr ""
28451
28452 #. type: textblock
28453 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130
28454 #: ../src/guestfs-actions.pod:4461 ../src/guestfs-actions.pod:4855
28455 #: ../src/guestfs-actions.pod:4887 ../src/guestfs-actions.pod:6082
28456 #: ../src/guestfs-actions.pod:6425 ../src/guestfs-actions.pod:6867
28457 #: ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7585
28458 #: ../src/guestfs-actions.pod:7777
28459 msgid "(Added in 1.0.77)"
28460 msgstr "(Додано у 1.0.77)"
28461
28462 #. type: =head2
28463 #: ../src/guestfs-actions.pod:2548
28464 msgid "guestfs_get_selinux"
28465 msgstr ""
28466
28467 #. type: verbatim
28468 #: ../src/guestfs-actions.pod:2550
28469 #, no-wrap
28470 msgid ""
28471 " int\n"
28472 " guestfs_get_selinux (guestfs_h *g);\n"
28473 "\n"
28474 msgstr ""
28475
28476 #. type: textblock
28477 #: ../src/guestfs-actions.pod:2553
28478 msgid ""
28479 "This returns the current setting of the selinux flag which is passed to the "
28480 "appliance at boot time.  See C<guestfs_set_selinux>."
28481 msgstr ""
28482
28483 #. type: textblock
28484 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
28485 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6960
28486 msgid "(Added in 1.0.67)"
28487 msgstr "(Додано у 1.0.67)"
28488
28489 #. type: =head2
28490 #: ../src/guestfs-actions.pod:2563
28491 msgid "guestfs_get_smp"
28492 msgstr ""
28493
28494 #. type: verbatim
28495 #: ../src/guestfs-actions.pod:2565
28496 #, no-wrap
28497 msgid ""
28498 " int\n"
28499 " guestfs_get_smp (guestfs_h *g);\n"
28500 "\n"
28501 msgstr ""
28502
28503 #. type: =head2
28504 #: ../src/guestfs-actions.pod:2574
28505 msgid "guestfs_get_state"
28506 msgstr ""
28507
28508 #. type: verbatim
28509 #: ../src/guestfs-actions.pod:2576
28510 #, no-wrap
28511 msgid ""
28512 " int\n"
28513 " guestfs_get_state (guestfs_h *g);\n"
28514 "\n"
28515 msgstr ""
28516
28517 #. type: =head2
28518 #: ../src/guestfs-actions.pod:2588
28519 msgid "guestfs_get_trace"
28520 msgstr ""
28521
28522 #. type: verbatim
28523 #: ../src/guestfs-actions.pod:2590
28524 #, no-wrap
28525 msgid ""
28526 " int\n"
28527 " guestfs_get_trace (guestfs_h *g);\n"
28528 "\n"
28529 msgstr ""
28530
28531 #. type: =head2
28532 #: ../src/guestfs-actions.pod:2599
28533 msgid "guestfs_get_umask"
28534 msgstr ""
28535
28536 #. type: verbatim
28537 #: ../src/guestfs-actions.pod:2601
28538 #, no-wrap
28539 msgid ""
28540 " int\n"
28541 " guestfs_get_umask (guestfs_h *g);\n"
28542 "\n"
28543 msgstr ""
28544
28545 #. type: textblock
28546 #: ../src/guestfs-actions.pod:2604
28547 msgid ""
28548 "Return the current umask.  By default the umask is C<022> unless it has been "
28549 "set by calling C<guestfs_umask>."
28550 msgstr ""
28551
28552 #. type: =head2
28553 #: ../src/guestfs-actions.pod:2611
28554 msgid "guestfs_get_verbose"
28555 msgstr ""
28556
28557 #. type: verbatim
28558 #: ../src/guestfs-actions.pod:2613
28559 #, no-wrap
28560 msgid ""
28561 " int\n"
28562 " guestfs_get_verbose (guestfs_h *g);\n"
28563 "\n"
28564 msgstr ""
28565
28566 #. type: =head2
28567 #: ../src/guestfs-actions.pod:2622
28568 msgid "guestfs_getcon"
28569 msgstr ""
28570
28571 #. type: verbatim
28572 #: ../src/guestfs-actions.pod:2624
28573 #, no-wrap
28574 msgid ""
28575 " char *\n"
28576 " guestfs_getcon (guestfs_h *g);\n"
28577 "\n"
28578 msgstr ""
28579
28580 #. type: textblock
28581 #: ../src/guestfs-actions.pod:2629
28582 msgid ""
28583 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28584 msgstr ""
28585
28586 #. type: =head2
28587 #: ../src/guestfs-actions.pod:2637
28588 msgid "guestfs_getxattr"
28589 msgstr ""
28590
28591 #. type: verbatim
28592 #: ../src/guestfs-actions.pod:2639
28593 #, no-wrap
28594 msgid ""
28595 " char *\n"
28596 " guestfs_getxattr (guestfs_h *g,\n"
28597 "                   const char *path,\n"
28598 "                   const char *name,\n"
28599 "                   size_t *size_r);\n"
28600 "\n"
28601 msgstr ""
28602
28603 #. type: textblock
28604 #: ../src/guestfs-actions.pod:2645
28605 msgid ""
28606 "Get a single extended attribute from file C<path> named C<name>.  This call "
28607 "follows symlinks.  If you want to lookup an extended attribute for the "
28608 "symlink itself, use C<guestfs_lgetxattr>."
28609 msgstr ""
28610
28611 #. type: textblock
28612 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
28613 msgid ""
28614 "Normally it is better to get all extended attributes from a file in one go "
28615 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
28616 "implementations are buggy and do not provide a way to list out attributes.  "
28617 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
28618 "extended attributes you want in advance and call this function."
28619 msgstr ""
28620
28621 #. type: textblock
28622 #: ../src/guestfs-actions.pod:2659
28623 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28624 msgstr ""
28625
28626 #. type: textblock
28627 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
28628 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156
28629 #: ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6101
28630 #: ../src/guestfs-actions.pod:6282
28631 msgid ""
28632 "This function returns a buffer, or NULL on error.  The size of the returned "
28633 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
28634 "after use>."
28635 msgstr ""
28636
28637 #. type: textblock
28638 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
28639 msgid "(Added in 1.7.24)"
28640 msgstr "(Додано у 1.7.24)"
28641
28642 #. type: =head2
28643 #: ../src/guestfs-actions.pod:2667
28644 msgid "guestfs_getxattrs"
28645 msgstr ""
28646
28647 #. type: verbatim
28648 #: ../src/guestfs-actions.pod:2669
28649 #, no-wrap
28650 msgid ""
28651 " struct guestfs_xattr_list *\n"
28652 " guestfs_getxattrs (guestfs_h *g,\n"
28653 "                    const char *path);\n"
28654 "\n"
28655 msgstr ""
28656
28657 #. type: textblock
28658 #: ../src/guestfs-actions.pod:2679
28659 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28660 msgstr ""
28661
28662 #. type: textblock
28663 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172
28664 #: ../src/guestfs-actions.pod:4851
28665 msgid ""
28666 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28667 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
28668 msgstr ""
28669
28670 #. type: textblock
28671 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176
28672 #: ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4411
28673 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6979
28674 #: ../src/guestfs-actions.pod:8362
28675 msgid "(Added in 1.0.59)"
28676 msgstr "(Додано у 1.0.59)"
28677
28678 #. type: =head2
28679 #: ../src/guestfs-actions.pod:2687
28680 msgid "guestfs_glob_expand"
28681 msgstr ""
28682
28683 #. type: verbatim
28684 #: ../src/guestfs-actions.pod:2689
28685 #, no-wrap
28686 msgid ""
28687 " char **\n"
28688 " guestfs_glob_expand (guestfs_h *g,\n"
28689 "                      const char *pattern);\n"
28690 "\n"
28691 msgstr ""
28692
28693 #. type: textblock
28694 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7163
28695 #: ../src/guestfs-actions.pod:7180
28696 msgid "(Added in 1.0.50)"
28697 msgstr "(Додано у 1.0.50)"
28698
28699 #. type: =head2
28700 #: ../src/guestfs-actions.pod:2710
28701 msgid "guestfs_grep"
28702 msgstr ""
28703
28704 #. type: verbatim
28705 #: ../src/guestfs-actions.pod:2712
28706 #, no-wrap
28707 msgid ""
28708 " char **\n"
28709 " guestfs_grep (guestfs_h *g,\n"
28710 "               const char *regex,\n"
28711 "               const char *path);\n"
28712 "\n"
28713 msgstr ""
28714
28715 #. type: =head2
28716 #: ../src/guestfs-actions.pod:2729
28717 msgid "guestfs_grepi"
28718 msgstr ""
28719
28720 #. type: verbatim
28721 #: ../src/guestfs-actions.pod:2731
28722 #, no-wrap
28723 msgid ""
28724 " char **\n"
28725 " guestfs_grepi (guestfs_h *g,\n"
28726 "                const char *regex,\n"
28727 "                const char *path);\n"
28728 "\n"
28729 msgstr ""
28730
28731 #. type: =head2
28732 #: ../src/guestfs-actions.pod:2748
28733 msgid "guestfs_grub_install"
28734 msgstr ""
28735
28736 #. type: verbatim
28737 #: ../src/guestfs-actions.pod:2750
28738 #, no-wrap
28739 msgid ""
28740 " int\n"
28741 " guestfs_grub_install (guestfs_h *g,\n"
28742 "                       const char *root,\n"
28743 "                       const char *device);\n"
28744 "\n"
28745 msgstr ""
28746
28747 #. type: textblock
28748 #: ../src/guestfs-actions.pod:2793
28749 msgid "(Added in 1.0.17)"
28750 msgstr "(Додано у 1.0.17)"
28751
28752 #. type: =head2
28753 #: ../src/guestfs-actions.pod:2795
28754 msgid "guestfs_head"
28755 msgstr ""
28756
28757 #. type: verbatim
28758 #: ../src/guestfs-actions.pod:2797
28759 #, no-wrap
28760 msgid ""
28761 " char **\n"
28762 " guestfs_head (guestfs_h *g,\n"
28763 "               const char *path);\n"
28764 "\n"
28765 msgstr ""
28766
28767 #. type: =head2
28768 #: ../src/guestfs-actions.pod:2813
28769 msgid "guestfs_head_n"
28770 msgstr ""
28771
28772 #. type: verbatim
28773 #: ../src/guestfs-actions.pod:2815
28774 #, no-wrap
28775 msgid ""
28776 " char **\n"
28777 " guestfs_head_n (guestfs_h *g,\n"
28778 "                 int nrlines,\n"
28779 "                 const char *path);\n"
28780 "\n"
28781 msgstr ""
28782
28783 #. type: =head2
28784 #: ../src/guestfs-actions.pod:2837
28785 msgid "guestfs_hexdump"
28786 msgstr ""
28787
28788 #. type: verbatim
28789 #: ../src/guestfs-actions.pod:2839
28790 #, no-wrap
28791 msgid ""
28792 " char *\n"
28793 " guestfs_hexdump (guestfs_h *g,\n"
28794 "                  const char *path);\n"
28795 "\n"
28796 msgstr ""
28797
28798 #. type: textblock
28799 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7244
28800 #: ../src/guestfs-actions.pod:7299
28801 msgid "(Added in 1.0.22)"
28802 msgstr "(Додано у 1.0.22)"
28803
28804 #. type: =head2
28805 #: ../src/guestfs-actions.pod:2854
28806 msgid "guestfs_initrd_cat"
28807 msgstr ""
28808
28809 #. type: verbatim
28810 #: ../src/guestfs-actions.pod:2856
28811 #, no-wrap
28812 msgid ""
28813 " char *\n"
28814 " guestfs_initrd_cat (guestfs_h *g,\n"
28815 "                     const char *initrdpath,\n"
28816 "                     const char *filename,\n"
28817 "                     size_t *size_r);\n"
28818 "\n"
28819 msgstr ""
28820
28821 #. type: textblock
28822 #: ../src/guestfs-actions.pod:2872
28823 msgid "See also C<guestfs_initrd_list>."
28824 msgstr ""
28825
28826 #. type: =head2
28827 #: ../src/guestfs-actions.pod:2883
28828 msgid "guestfs_initrd_list"
28829 msgstr ""
28830
28831 #. type: verbatim
28832 #: ../src/guestfs-actions.pod:2885
28833 #, no-wrap
28834 msgid ""
28835 " char **\n"
28836 " guestfs_initrd_list (guestfs_h *g,\n"
28837 "                      const char *path);\n"
28838 "\n"
28839 msgstr ""
28840
28841 #. type: =head2
28842 #: ../src/guestfs-actions.pod:2905
28843 msgid "guestfs_inotify_add_watch"
28844 msgstr ""
28845
28846 #. type: verbatim
28847 #: ../src/guestfs-actions.pod:2907
28848 #, no-wrap
28849 msgid ""
28850 " int64_t\n"
28851 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28852 "                            const char *path,\n"
28853 "                            int mask);\n"
28854 "\n"
28855 msgstr ""
28856
28857 #. type: =head2
28858 #: ../src/guestfs-actions.pod:2926
28859 msgid "guestfs_inotify_close"
28860 msgstr ""
28861
28862 #. type: verbatim
28863 #: ../src/guestfs-actions.pod:2928
28864 #, no-wrap
28865 msgid ""
28866 " int\n"
28867 " guestfs_inotify_close (guestfs_h *g);\n"
28868 "\n"
28869 msgstr ""
28870
28871 #. type: =head2
28872 #: ../src/guestfs-actions.pod:2939
28873 msgid "guestfs_inotify_files"
28874 msgstr ""
28875
28876 #. type: verbatim
28877 #: ../src/guestfs-actions.pod:2941
28878 #, no-wrap
28879 msgid ""
28880 " char **\n"
28881 " guestfs_inotify_files (guestfs_h *g);\n"
28882 "\n"
28883 msgstr ""
28884
28885 #. type: textblock
28886 #: ../src/guestfs-actions.pod:2944
28887 msgid ""
28888 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28889 "returns a list of pathnames of objects that were touched.  The returned "
28890 "pathnames are sorted and deduplicated."
28891 msgstr ""
28892
28893 #. type: =head2
28894 #: ../src/guestfs-actions.pod:2954
28895 msgid "guestfs_inotify_init"
28896 msgstr ""
28897
28898 #. type: verbatim
28899 #: ../src/guestfs-actions.pod:2956
28900 #, no-wrap
28901 msgid ""
28902 " int\n"
28903 " guestfs_inotify_init (guestfs_h *g,\n"
28904 "                       int maxevents);\n"
28905 "\n"
28906 msgstr ""
28907
28908 #. type: textblock
28909 #: ../src/guestfs-actions.pod:2964
28910 msgid ""
28911 "C<maxevents> is the maximum number of events which will be queued up between "
28912 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28913 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28914 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28915 "throws away events, but records the fact that it threw them away by setting "
28916 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28917 "C<guestfs_inotify_read>)."
28918 msgstr ""
28919
28920 #. type: textblock
28921 #: ../src/guestfs-actions.pod:2974
28922 msgid ""
28923 "Before any events are generated, you have to add some watches to the "
28924 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28925 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28926 msgstr ""
28927
28928 #. type: textblock
28929 #: ../src/guestfs-actions.pod:2980
28930 msgid ""
28931 "Queued up events should be read periodically by calling "
28932 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28933 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28934 "often enough then you risk the internal queue overflowing."
28935 msgstr ""
28936
28937 #. type: textblock
28938 #: ../src/guestfs-actions.pod:2987
28939 msgid ""
28940 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28941 "This also removes any watches automatically."
28942 msgstr ""
28943
28944 #. type: =head2
28945 #: ../src/guestfs-actions.pod:3000
28946 msgid "guestfs_inotify_read"
28947 msgstr ""
28948
28949 #. type: verbatim
28950 #: ../src/guestfs-actions.pod:3002
28951 #, no-wrap
28952 msgid ""
28953 " struct guestfs_inotify_event_list *\n"
28954 " guestfs_inotify_read (guestfs_h *g);\n"
28955 "\n"
28956 msgstr ""
28957
28958 #. type: textblock
28959 #: ../src/guestfs-actions.pod:3016
28960 msgid ""
28961 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28962 "there was an error.  I<The caller must call "
28963 "C<guestfs_free_inotify_event_list> after use>."
28964 msgstr ""
28965
28966 #. type: =head2
28967 #: ../src/guestfs-actions.pod:3022
28968 msgid "guestfs_inotify_rm_watch"
28969 msgstr ""
28970
28971 #. type: verbatim
28972 #: ../src/guestfs-actions.pod:3024
28973 #, no-wrap
28974 msgid ""
28975 " int\n"
28976 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28977 "                           int wd);\n"
28978 "\n"
28979 msgstr ""
28980
28981 #. type: textblock
28982 #: ../src/guestfs-actions.pod:3028
28983 msgid ""
28984 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
28985 msgstr ""
28986
28987 #. type: =head2
28988 #: ../src/guestfs-actions.pod:3035
28989 msgid "guestfs_inspect_get_arch"
28990 msgstr ""
28991
28992 #. type: verbatim
28993 #: ../src/guestfs-actions.pod:3037
28994 #, no-wrap
28995 msgid ""
28996 " char *\n"
28997 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28998 "                           const char *root);\n"
28999 "\n"
29000 msgstr ""
29001
29002 #. type: textblock
29003 #: ../src/guestfs-actions.pod:3041
29004 msgid ""
29005 "This returns the architecture of the inspected operating system.  The "
29006 "possible return values are listed under C<guestfs_file_architecture>."
29007 msgstr ""
29008
29009 #. type: =head2
29010 #: ../src/guestfs-actions.pod:3055
29011 msgid "guestfs_inspect_get_distro"
29012 msgstr ""
29013
29014 #. type: verbatim
29015 #: ../src/guestfs-actions.pod:3057
29016 #, no-wrap
29017 msgid ""
29018 " char *\n"
29019 " guestfs_inspect_get_distro (guestfs_h *g,\n"
29020 "                             const char *root);\n"
29021 "\n"
29022 msgstr ""
29023
29024 #. type: =head2
29025 #: ../src/guestfs-actions.pod:3157
29026 msgid "guestfs_inspect_get_drive_mappings"
29027 msgstr ""
29028
29029 #. type: verbatim
29030 #: ../src/guestfs-actions.pod:3159
29031 #, no-wrap
29032 msgid ""
29033 " char **\n"
29034 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
29035 "                                     const char *root);\n"
29036 "\n"
29037 msgstr ""
29038
29039 #. type: textblock
29040 #: ../src/guestfs-actions.pod:3188
29041 msgid ""
29042 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29043 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
29044 msgstr ""
29045
29046 #. type: textblock
29047 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
29048 #: ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5526
29049 #: ../src/guestfs-actions.pod:7601
29050 msgid ""
29051 "This function returns a NULL-terminated array of strings, or NULL if there "
29052 "was an error.  The array of strings will always have length C<2n+1>, where "
29053 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
29054 "caller must free the strings and the array after use>."
29055 msgstr ""
29056
29057 #. type: textblock
29058 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
29059 msgid "(Added in 1.9.17)"
29060 msgstr "(Додано у 1.9.17)"
29061
29062 #. type: =head2
29063 #: ../src/guestfs-actions.pod:3200
29064 msgid "guestfs_inspect_get_filesystems"
29065 msgstr ""
29066
29067 #. type: verbatim
29068 #: ../src/guestfs-actions.pod:3202
29069 #, no-wrap
29070 msgid ""
29071 " char **\n"
29072 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29073 "                                  const char *root);\n"
29074 "\n"
29075 msgstr ""
29076
29077 #. type: textblock
29078 #: ../src/guestfs-actions.pod:3214
29079 msgid ""
29080 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29081 "C<guestfs_inspect_get_mountpoints>."
29082 msgstr ""
29083
29084 #. type: =head2
29085 #: ../src/guestfs-actions.pod:3223
29086 msgid "guestfs_inspect_get_format"
29087 msgstr ""
29088
29089 #. type: verbatim
29090 #: ../src/guestfs-actions.pod:3225
29091 #, no-wrap
29092 msgid ""
29093 " char *\n"
29094 " guestfs_inspect_get_format (guestfs_h *g,\n"
29095 "                             const char *root);\n"
29096 "\n"
29097 msgstr ""
29098
29099 #. type: textblock
29100 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695
29101 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
29102 #: ../src/guestfs-actions.pod:6493
29103 msgid "(Added in 1.9.4)"
29104 msgstr "(Додано у 1.9.4)"
29105
29106 #. type: =head2
29107 #: ../src/guestfs-actions.pod:3261
29108 msgid "guestfs_inspect_get_hostname"
29109 msgstr ""
29110
29111 #. type: verbatim
29112 #: ../src/guestfs-actions.pod:3263
29113 #, no-wrap
29114 msgid ""
29115 " char *\n"
29116 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29117 "                               const char *root);\n"
29118 "\n"
29119 msgstr ""
29120
29121 #. type: textblock
29122 #: ../src/guestfs-actions.pod:3278
29123 msgid "(Added in 1.7.9)"
29124 msgstr "(Додано у 1.7.9)"
29125
29126 #. type: =head2
29127 #: ../src/guestfs-actions.pod:3280
29128 msgid "guestfs_inspect_get_icon"
29129 msgstr ""
29130
29131 #. type: verbatim
29132 #: ../src/guestfs-actions.pod:3282
29133 #, no-wrap
29134 msgid ""
29135 " char *\n"
29136 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29137 "                           const char *root,\n"
29138 "                           size_t *size_r,\n"
29139 "                           ...);\n"
29140 "\n"
29141 msgstr ""
29142
29143 #. type: verbatim
29144 #: ../src/guestfs-actions.pod:3293
29145 #, no-wrap
29146 msgid ""
29147 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29148 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29149 "\n"
29150 msgstr ""
29151
29152 #. type: textblock
29153 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190
29154 #: ../src/guestfs-actions.pod:5425
29155 msgid "(Added in 1.11.12)"
29156 msgstr "(Додано у 1.11.12)"
29157
29158 #. type: =head2
29159 #: ../src/guestfs-actions.pod:3362
29160 msgid "guestfs_inspect_get_icon_va"
29161 msgstr ""
29162
29163 #. type: verbatim
29164 #: ../src/guestfs-actions.pod:3364
29165 #, no-wrap
29166 msgid ""
29167 " char *\n"
29168 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29169 "                              const char *root,\n"
29170 "                              size_t *size_r,\n"
29171 "                              va_list args);\n"
29172 "\n"
29173 msgstr ""
29174
29175 #. type: textblock
29176 #: ../src/guestfs-actions.pod:3370
29177 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29178 msgstr ""
29179
29180 #. type: =head2
29181 #: ../src/guestfs-actions.pod:3374
29182 msgid "guestfs_inspect_get_icon_argv"
29183 msgstr ""
29184
29185 #. type: verbatim
29186 #: ../src/guestfs-actions.pod:3376
29187 #, no-wrap
29188 msgid ""
29189 " char *\n"
29190 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29191 "                                const char *root,\n"
29192 "                                size_t *size_r,\n"
29193 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
29194 "\n"
29195 msgstr ""
29196
29197 #. type: textblock
29198 #: ../src/guestfs-actions.pod:3382
29199 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29200 msgstr ""
29201
29202 #. type: =head2
29203 #: ../src/guestfs-actions.pod:3386
29204 msgid "guestfs_inspect_get_major_version"
29205 msgstr ""
29206
29207 #. type: verbatim
29208 #: ../src/guestfs-actions.pod:3388
29209 #, no-wrap
29210 msgid ""
29211 " int\n"
29212 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29213 "                                    const char *root);\n"
29214 "\n"
29215 msgstr ""
29216
29217 #. type: =head2
29218 #: ../src/guestfs-actions.pod:3410
29219 msgid "guestfs_inspect_get_minor_version"
29220 msgstr ""
29221
29222 #. type: verbatim
29223 #: ../src/guestfs-actions.pod:3412
29224 #, no-wrap
29225 msgid ""
29226 " int\n"
29227 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29228 "                                    const char *root);\n"
29229 "\n"
29230 msgstr ""
29231
29232 #. type: textblock
29233 #: ../src/guestfs-actions.pod:3421
29234 msgid ""
29235 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29236 "C<guestfs_inspect_get_major_version>."
29237 msgstr ""
29238
29239 #. type: =head2
29240 #: ../src/guestfs-actions.pod:3428
29241 msgid "guestfs_inspect_get_mountpoints"
29242 msgstr ""
29243
29244 #. type: verbatim
29245 #: ../src/guestfs-actions.pod:3430
29246 #, no-wrap
29247 msgid ""
29248 " char **\n"
29249 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29250 "                                  const char *root);\n"
29251 "\n"
29252 msgstr ""
29253
29254 #. type: textblock
29255 #: ../src/guestfs-actions.pod:3451
29256 msgid ""
29257 "For operating systems like Windows which still use drive letters, this call "
29258 "will only return an entry for the first drive \"mounted on\" C</>.  For "
29259 "information about the mapping of drive letters to partitions, see "
29260 "C<guestfs_inspect_get_drive_mappings>."
29261 msgstr ""
29262
29263 #. type: textblock
29264 #: ../src/guestfs-actions.pod:3457
29265 msgid ""
29266 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29267 "C<guestfs_inspect_get_filesystems>."
29268 msgstr ""
29269
29270 #. type: =head2
29271 #: ../src/guestfs-actions.pod:3468
29272 msgid "guestfs_inspect_get_package_format"
29273 msgstr ""
29274
29275 #. type: verbatim
29276 #: ../src/guestfs-actions.pod:3470
29277 #, no-wrap
29278 msgid ""
29279 " char *\n"
29280 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29281 "                                     const char *root);\n"
29282 "\n"
29283 msgstr ""
29284
29285 #. type: textblock
29286 #: ../src/guestfs-actions.pod:3474
29287 msgid ""
29288 "This function and C<guestfs_inspect_get_package_management> return the "
29289 "package format and package management tool used by the inspected operating "
29290 "system.  For example for Fedora these functions would return C<rpm> (package "
29291 "format) and C<yum> (package management)."
29292 msgstr ""
29293
29294 #. type: textblock
29295 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
29296 msgid "(Added in 1.7.5)"
29297 msgstr "(Додано у 1.7.5)"
29298
29299 #. type: =head2
29300 #: ../src/guestfs-actions.pod:3495
29301 msgid "guestfs_inspect_get_package_management"
29302 msgstr ""
29303
29304 #. type: verbatim
29305 #: ../src/guestfs-actions.pod:3497
29306 #, no-wrap
29307 msgid ""
29308 " char *\n"
29309 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29310 "                                         const char *root);\n"
29311 "\n"
29312 msgstr ""
29313
29314 #. type: textblock
29315 #: ../src/guestfs-actions.pod:3501
29316 msgid ""
29317 "C<guestfs_inspect_get_package_format> and this function return the package "
29318 "format and package management tool used by the inspected operating system.  "
29319 "For example for Fedora these functions would return C<rpm> (package format) "
29320 "and C<yum> (package management)."
29321 msgstr ""
29322
29323 #. type: =head2
29324 #: ../src/guestfs-actions.pod:3523
29325 msgid "guestfs_inspect_get_product_name"
29326 msgstr ""
29327
29328 #. type: verbatim
29329 #: ../src/guestfs-actions.pod:3525
29330 #, no-wrap
29331 msgid ""
29332 " char *\n"
29333 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29334 "                                   const char *root);\n"
29335 "\n"
29336 msgstr ""
29337
29338 #. type: =head2
29339 #: ../src/guestfs-actions.pod:3544
29340 msgid "guestfs_inspect_get_product_variant"
29341 msgstr ""
29342
29343 #. type: verbatim
29344 #: ../src/guestfs-actions.pod:3546
29345 #, no-wrap
29346 msgid ""
29347 " char *\n"
29348 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29349 "                                      const char *root);\n"
29350 "\n"
29351 msgstr ""
29352
29353 #. type: textblock
29354 #: ../src/guestfs-actions.pod:3569
29355 msgid ""
29356 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29357 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29358 msgstr ""
29359
29360 #. type: textblock
29361 #: ../src/guestfs-actions.pod:3576
29362 msgid "(Added in 1.9.13)"
29363 msgstr "(Додано у 1.9.13)"
29364
29365 #. type: =head2
29366 #: ../src/guestfs-actions.pod:3578
29367 msgid "guestfs_inspect_get_roots"
29368 msgstr ""
29369
29370 #. type: verbatim
29371 #: ../src/guestfs-actions.pod:3580
29372 #, no-wrap
29373 msgid ""
29374 " char **\n"
29375 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29376 "\n"
29377 msgstr ""
29378
29379 #. type: textblock
29380 #: ../src/guestfs-actions.pod:3583
29381 msgid ""
29382 "This function is a convenient way to get the list of root devices, as "
29383 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29384 "the whole inspection process."
29385 msgstr ""
29386
29387 #. type: textblock
29388 #: ../src/guestfs-actions.pod:3587
29389 msgid ""
29390 "This returns an empty list if either no root devices were found or the "
29391 "caller has not called C<guestfs_inspect_os>."
29392 msgstr ""
29393
29394 #. type: textblock
29395 #: ../src/guestfs-actions.pod:3596
29396 msgid "(Added in 1.7.3)"
29397 msgstr "(Додано у 1.7.3)"
29398
29399 #. type: =head2
29400 #: ../src/guestfs-actions.pod:3598
29401 msgid "guestfs_inspect_get_type"
29402 msgstr ""
29403
29404 #. type: verbatim
29405 #: ../src/guestfs-actions.pod:3600
29406 #, no-wrap
29407 msgid ""
29408 " char *\n"
29409 " guestfs_inspect_get_type (guestfs_h *g,\n"
29410 "                           const char *root);\n"
29411 "\n"
29412 msgstr ""
29413
29414 #. type: =head2
29415 #: ../src/guestfs-actions.pod:3641
29416 msgid "guestfs_inspect_get_windows_current_control_set"
29417 msgstr ""
29418
29419 #. type: verbatim
29420 #: ../src/guestfs-actions.pod:3643
29421 #, no-wrap
29422 msgid ""
29423 " char *\n"
29424 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29425 "                                                  const char *root);\n"
29426 "\n"
29427 msgstr ""
29428
29429 #. type: =head2
29430 #: ../src/guestfs-actions.pod:3661
29431 msgid "guestfs_inspect_get_windows_systemroot"
29432 msgstr ""
29433
29434 #. type: verbatim
29435 #: ../src/guestfs-actions.pod:3663
29436 #, no-wrap
29437 msgid ""
29438 " char *\n"
29439 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29440 "                                         const char *root);\n"
29441 "\n"
29442 msgstr ""
29443
29444 #. type: textblock
29445 #: ../src/guestfs-actions.pod:3679
29446 msgid "(Added in 1.5.25)"
29447 msgstr "(Додано у 1.5.25)"
29448
29449 #. type: =head2
29450 #: ../src/guestfs-actions.pod:3681
29451 msgid "guestfs_inspect_is_live"
29452 msgstr ""
29453
29454 #. type: verbatim
29455 #: ../src/guestfs-actions.pod:3683
29456 #, no-wrap
29457 msgid ""
29458 " int\n"
29459 " guestfs_inspect_is_live (guestfs_h *g,\n"
29460 "                          const char *root);\n"
29461 "\n"
29462 msgstr ""
29463
29464 #. type: textblock
29465 #: ../src/guestfs-actions.pod:3687
29466 msgid ""
29467 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29468 "disk), then this returns true if a live image was detected on the disk."
29469 msgstr ""
29470
29471 #. type: =head2
29472 #: ../src/guestfs-actions.pod:3697
29473 msgid "guestfs_inspect_is_multipart"
29474 msgstr ""
29475
29476 #. type: verbatim
29477 #: ../src/guestfs-actions.pod:3699
29478 #, no-wrap
29479 msgid ""
29480 " int\n"
29481 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29482 "                               const char *root);\n"
29483 "\n"
29484 msgstr ""
29485
29486 #. type: textblock
29487 #: ../src/guestfs-actions.pod:3703
29488 msgid ""
29489 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29490 "disk), then this returns true if the disk is part of a set."
29491 msgstr ""
29492
29493 #. type: =head2
29494 #: ../src/guestfs-actions.pod:3713
29495 msgid "guestfs_inspect_is_netinst"
29496 msgstr ""
29497
29498 #. type: verbatim
29499 #: ../src/guestfs-actions.pod:3715
29500 #, no-wrap
29501 msgid ""
29502 " int\n"
29503 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29504 "                             const char *root);\n"
29505 "\n"
29506 msgstr ""
29507
29508 #. type: textblock
29509 #: ../src/guestfs-actions.pod:3719
29510 msgid ""
29511 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29512 "disk), then this returns true if the disk is a network installer, ie. not a "
29513 "self-contained install CD but one which is likely to require network access "
29514 "to complete the install."
29515 msgstr ""
29516
29517 #. type: =head2
29518 #: ../src/guestfs-actions.pod:3731
29519 msgid "guestfs_inspect_list_applications"
29520 msgstr ""
29521
29522 #. type: verbatim
29523 #: ../src/guestfs-actions.pod:3733
29524 #, no-wrap
29525 msgid ""
29526 " struct guestfs_application_list *\n"
29527 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29528 "                                    const char *root);\n"
29529 "\n"
29530 msgstr ""
29531
29532 #. type: textblock
29533 #: ../src/guestfs-actions.pod:3739
29534 msgid ""
29535 "I<Note:> This call works differently from other parts of the inspection "
29536 "API.  You have to call C<guestfs_inspect_os>, then "
29537 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29538 "this.  Listing applications is a significantly more difficult operation "
29539 "which requires access to the full filesystem.  Also note that unlike the "
29540 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29541 "the libguestfs handle, this call actually reads parts of the mounted "
29542 "filesystems during the call."
29543 msgstr ""
29544
29545 #. type: textblock
29546 #: ../src/guestfs-actions.pod:3829
29547 msgid ""
29548 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29549 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
29550 "after use>."
29551 msgstr ""
29552
29553 #. type: textblock
29554 #: ../src/guestfs-actions.pod:3833
29555 msgid "(Added in 1.7.8)"
29556 msgstr "(Додано у 1.7.8)"
29557
29558 #. type: =head2
29559 #: ../src/guestfs-actions.pod:3835
29560 msgid "guestfs_inspect_os"
29561 msgstr ""
29562
29563 #. type: verbatim
29564 #: ../src/guestfs-actions.pod:3837
29565 #, no-wrap
29566 msgid ""
29567 " char **\n"
29568 " guestfs_inspect_os (guestfs_h *g);\n"
29569 "\n"
29570 msgstr ""
29571
29572 #. type: textblock
29573 #: ../src/guestfs-actions.pod:3853
29574 msgid ""
29575 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29576 "functions in order to query further information about each operating system, "
29577 "such as the name and version."
29578 msgstr ""
29579
29580 #. type: textblock
29581 #: ../src/guestfs-actions.pod:3858
29582 msgid ""
29583 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29584 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29585 "the contents.  This should be called with no disks currently mounted.  The "
29586 "function may also use Augeas, so any existing Augeas handle will be closed."
29587 msgstr ""
29588
29589 #. type: textblock
29590 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201
29591 #: ../src/guestfs-actions.pod:4283
29592 msgid "See also C<guestfs_list_filesystems>."
29593 msgstr ""
29594
29595 #. type: =head2
29596 #: ../src/guestfs-actions.pod:3878
29597 msgid "guestfs_is_blockdev"
29598 msgstr ""
29599
29600 #. type: verbatim
29601 #: ../src/guestfs-actions.pod:3880
29602 #, no-wrap
29603 msgid ""
29604 " int\n"
29605 " guestfs_is_blockdev (guestfs_h *g,\n"
29606 "                      const char *path);\n"
29607 "\n"
29608 msgstr ""
29609
29610 #. type: textblock
29611 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916
29612 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961
29613 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033
29614 #: ../src/guestfs-actions.pod:4048
29615 msgid "See also C<guestfs_stat>."
29616 msgstr ""
29617
29618 #. type: textblock
29619 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
29620 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037
29621 #: ../src/guestfs-actions.pod:4052
29622 msgid "(Added in 1.5.10)"
29623 msgstr "(Додано у 1.5.10)"
29624
29625 #. type: =head2
29626 #: ../src/guestfs-actions.pod:3893
29627 msgid "guestfs_is_busy"
29628 msgstr ""
29629
29630 #. type: verbatim
29631 #: ../src/guestfs-actions.pod:3895
29632 #, no-wrap
29633 msgid ""
29634 " int\n"
29635 " guestfs_is_busy (guestfs_h *g);\n"
29636 "\n"
29637 msgstr ""
29638
29639 #. type: =head2
29640 #: ../src/guestfs-actions.pod:3907
29641 msgid "guestfs_is_chardev"
29642 msgstr ""
29643
29644 #. type: verbatim
29645 #: ../src/guestfs-actions.pod:3909
29646 #, no-wrap
29647 msgid ""
29648 " int\n"
29649 " guestfs_is_chardev (guestfs_h *g,\n"
29650 "                     const char *path);\n"
29651 "\n"
29652 msgstr ""
29653
29654 #. type: =head2
29655 #: ../src/guestfs-actions.pod:3922
29656 msgid "guestfs_is_config"
29657 msgstr ""
29658
29659 #. type: verbatim
29660 #: ../src/guestfs-actions.pod:3924
29661 #, no-wrap
29662 msgid ""
29663 " int\n"
29664 " guestfs_is_config (guestfs_h *g);\n"
29665 "\n"
29666 msgstr ""
29667
29668 #. type: =head2
29669 #: ../src/guestfs-actions.pod:3936
29670 msgid "guestfs_is_dir"
29671 msgstr ""
29672
29673 #. type: verbatim
29674 #: ../src/guestfs-actions.pod:3938
29675 #, no-wrap
29676 msgid ""
29677 " int\n"
29678 " guestfs_is_dir (guestfs_h *g,\n"
29679 "                 const char *path);\n"
29680 "\n"
29681 msgstr ""
29682
29683 #. type: =head2
29684 #: ../src/guestfs-actions.pod:3952
29685 msgid "guestfs_is_fifo"
29686 msgstr ""
29687
29688 #. type: verbatim
29689 #: ../src/guestfs-actions.pod:3954
29690 #, no-wrap
29691 msgid ""
29692 " int\n"
29693 " guestfs_is_fifo (guestfs_h *g,\n"
29694 "                  const char *path);\n"
29695 "\n"
29696 msgstr ""
29697
29698 #. type: =head2
29699 #: ../src/guestfs-actions.pod:3967
29700 msgid "guestfs_is_file"
29701 msgstr ""
29702
29703 #. type: verbatim
29704 #: ../src/guestfs-actions.pod:3969
29705 #, no-wrap
29706 msgid ""
29707 " int\n"
29708 " guestfs_is_file (guestfs_h *g,\n"
29709 "                  const char *path);\n"
29710 "\n"
29711 msgstr ""
29712
29713 #. type: =head2
29714 #: ../src/guestfs-actions.pod:3983
29715 msgid "guestfs_is_launching"
29716 msgstr ""
29717
29718 #. type: verbatim
29719 #: ../src/guestfs-actions.pod:3985
29720 #, no-wrap
29721 msgid ""
29722 " int\n"
29723 " guestfs_is_launching (guestfs_h *g);\n"
29724 "\n"
29725 msgstr ""
29726
29727 #. type: =head2
29728 #: ../src/guestfs-actions.pod:3997
29729 msgid "guestfs_is_lv"
29730 msgstr ""
29731
29732 #. type: verbatim
29733 #: ../src/guestfs-actions.pod:3999
29734 #, no-wrap
29735 msgid ""
29736 " int\n"
29737 " guestfs_is_lv (guestfs_h *g,\n"
29738 "                const char *device);\n"
29739 "\n"
29740 msgstr ""
29741
29742 #. type: =head2
29743 #: ../src/guestfs-actions.pod:4010
29744 msgid "guestfs_is_ready"
29745 msgstr ""
29746
29747 #. type: verbatim
29748 #: ../src/guestfs-actions.pod:4012
29749 #, no-wrap
29750 msgid ""
29751 " int\n"
29752 " guestfs_is_ready (guestfs_h *g);\n"
29753 "\n"
29754 msgstr ""
29755
29756 #. type: =head2
29757 #: ../src/guestfs-actions.pod:4024
29758 msgid "guestfs_is_socket"
29759 msgstr ""
29760
29761 #. type: verbatim
29762 #: ../src/guestfs-actions.pod:4026
29763 #, no-wrap
29764 msgid ""
29765 " int\n"
29766 " guestfs_is_socket (guestfs_h *g,\n"
29767 "                    const char *path);\n"
29768 "\n"
29769 msgstr ""
29770
29771 #. type: =head2
29772 #: ../src/guestfs-actions.pod:4039
29773 msgid "guestfs_is_symlink"
29774 msgstr ""
29775
29776 #. type: verbatim
29777 #: ../src/guestfs-actions.pod:4041
29778 #, no-wrap
29779 msgid ""
29780 " int\n"
29781 " guestfs_is_symlink (guestfs_h *g,\n"
29782 "                     const char *path);\n"
29783 "\n"
29784 msgstr ""
29785
29786 #. type: =head2
29787 #: ../src/guestfs-actions.pod:4054
29788 msgid "guestfs_is_zero"
29789 msgstr ""
29790
29791 #. type: verbatim
29792 #: ../src/guestfs-actions.pod:4056
29793 #, no-wrap
29794 msgid ""
29795 " int\n"
29796 " guestfs_is_zero (guestfs_h *g,\n"
29797 "                  const char *path);\n"
29798 "\n"
29799 msgstr ""
29800
29801 #. type: textblock
29802 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
29803 msgid "(Added in 1.11.8)"
29804 msgstr "(Додано у 1.11.8)"
29805
29806 #. type: =head2
29807 #: ../src/guestfs-actions.pod:4067
29808 msgid "guestfs_is_zero_device"
29809 msgstr ""
29810
29811 #. type: verbatim
29812 #: ../src/guestfs-actions.pod:4069
29813 #, no-wrap
29814 msgid ""
29815 " int\n"
29816 " guestfs_is_zero_device (guestfs_h *g,\n"
29817 "                         const char *device);\n"
29818 "\n"
29819 msgstr ""
29820
29821 #. type: =head2
29822 #: ../src/guestfs-actions.pod:4081
29823 msgid "guestfs_kill_subprocess"
29824 msgstr ""
29825
29826 #. type: verbatim
29827 #: ../src/guestfs-actions.pod:4083
29828 #, no-wrap
29829 msgid ""
29830 " int\n"
29831 " guestfs_kill_subprocess (guestfs_h *g);\n"
29832 "\n"
29833 msgstr ""
29834
29835 #. type: =head2
29836 #: ../src/guestfs-actions.pod:4092
29837 msgid "guestfs_launch"
29838 msgstr ""
29839
29840 #. type: verbatim
29841 #: ../src/guestfs-actions.pod:4094
29842 #, no-wrap
29843 msgid ""
29844 " int\n"
29845 " guestfs_launch (guestfs_h *g);\n"
29846 "\n"
29847 msgstr ""
29848
29849 #. type: =head2
29850 #: ../src/guestfs-actions.pod:4112
29851 msgid "guestfs_lchown"
29852 msgstr ""
29853
29854 #. type: verbatim
29855 #: ../src/guestfs-actions.pod:4114
29856 #, no-wrap
29857 msgid ""
29858 " int\n"
29859 " guestfs_lchown (guestfs_h *g,\n"
29860 "                 int owner,\n"
29861 "                 int group,\n"
29862 "                 const char *path);\n"
29863 "\n"
29864 msgstr ""
29865
29866 #. type: textblock
29867 #: ../src/guestfs-actions.pod:4120
29868 msgid ""
29869 "Change the file owner to C<owner> and group to C<group>.  This is like "
29870 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29871 "changed, not the target."
29872 msgstr ""
29873
29874 #. type: =head2
29875 #: ../src/guestfs-actions.pod:4132
29876 msgid "guestfs_lgetxattr"
29877 msgstr ""
29878
29879 #. type: verbatim
29880 #: ../src/guestfs-actions.pod:4134
29881 #, no-wrap
29882 msgid ""
29883 " char *\n"
29884 " guestfs_lgetxattr (guestfs_h *g,\n"
29885 "                    const char *path,\n"
29886 "                    const char *name,\n"
29887 "                    size_t *size_r);\n"
29888 "\n"
29889 msgstr ""
29890
29891 #. type: textblock
29892 #: ../src/guestfs-actions.pod:4154
29893 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29894 msgstr ""
29895
29896 #. type: =head2
29897 #: ../src/guestfs-actions.pod:4162
29898 msgid "guestfs_lgetxattrs"
29899 msgstr ""
29900
29901 #. type: verbatim
29902 #: ../src/guestfs-actions.pod:4164
29903 #, no-wrap
29904 msgid ""
29905 " struct guestfs_xattr_list *\n"
29906 " guestfs_lgetxattrs (guestfs_h *g,\n"
29907 "                     const char *path);\n"
29908 "\n"
29909 msgstr ""
29910
29911 #. type: textblock
29912 #: ../src/guestfs-actions.pod:4168
29913 msgid ""
29914 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29915 "then it returns the extended attributes of the link itself."
29916 msgstr ""
29917
29918 #. type: =head2
29919 #: ../src/guestfs-actions.pod:4178
29920 msgid "guestfs_list_9p"
29921 msgstr ""
29922
29923 #. type: verbatim
29924 #: ../src/guestfs-actions.pod:4180
29925 #, no-wrap
29926 msgid ""
29927 " char **\n"
29928 " guestfs_list_9p (guestfs_h *g);\n"
29929 "\n"
29930 msgstr ""
29931
29932 #. type: =head2
29933 #: ../src/guestfs-actions.pod:4192
29934 msgid "guestfs_list_devices"
29935 msgstr ""
29936
29937 #. type: verbatim
29938 #: ../src/guestfs-actions.pod:4194
29939 #, no-wrap
29940 msgid ""
29941 " char **\n"
29942 " guestfs_list_devices (guestfs_h *g);\n"
29943 "\n"
29944 msgstr ""
29945
29946 #. type: =head2
29947 #: ../src/guestfs-actions.pod:4209
29948 msgid "guestfs_list_dm_devices"
29949 msgstr ""
29950
29951 #. type: verbatim
29952 #: ../src/guestfs-actions.pod:4211
29953 #, no-wrap
29954 msgid ""
29955 " char **\n"
29956 " guestfs_list_dm_devices (guestfs_h *g);\n"
29957 "\n"
29958 msgstr ""
29959
29960 #. type: textblock
29961 #: ../src/guestfs-actions.pod:4216
29962 msgid ""
29963 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29964 "previous call to C<guestfs_luks_open>."
29965 msgstr ""
29966
29967 #. type: textblock
29968 #: ../src/guestfs-actions.pod:4219
29969 msgid ""
29970 "Device mapper devices which correspond to logical volumes are I<not> "
29971 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29972 "volumes."
29973 msgstr ""
29974
29975 #. type: textblock
29976 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5664
29977 msgid "(Added in 1.11.15)"
29978 msgstr "(Додано у 1.11.15)"
29979
29980 #. type: =head2
29981 #: ../src/guestfs-actions.pod:4229
29982 msgid "guestfs_list_filesystems"
29983 msgstr ""
29984
29985 #. type: verbatim
29986 #: ../src/guestfs-actions.pod:4231
29987 #, no-wrap
29988 msgid ""
29989 " char **\n"
29990 " guestfs_list_filesystems (guestfs_h *g);\n"
29991 "\n"
29992 msgstr ""
29993
29994 #. type: textblock
29995 #: ../src/guestfs-actions.pod:4251
29996 msgid ""
29997 "This command runs other libguestfs commands, which might include "
29998 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29999 "soon after launch and only when nothing is mounted."
30000 msgstr ""
30001
30002 #. type: textblock
30003 #: ../src/guestfs-actions.pod:4255
30004 msgid ""
30005 "Not all of the filesystems returned will be mountable.  In particular, swap "
30006 "partitions are returned in the list.  Also this command does not check that "
30007 "each filesystem found is valid and mountable, and some filesystems might be "
30008 "mountable but require special options.  Filesystems may not all belong to a "
30009 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
30010 msgstr ""
30011
30012 #. type: textblock
30013 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6024
30014 msgid "(Added in 1.5.15)"
30015 msgstr "(Додано у 1.5.15)"
30016
30017 #. type: =head2
30018 #: ../src/guestfs-actions.pod:4271
30019 msgid "guestfs_list_partitions"
30020 msgstr "guestfs_list_partitions"
30021
30022 #. type: verbatim
30023 #: ../src/guestfs-actions.pod:4273
30024 #, no-wrap
30025 msgid ""
30026 " char **\n"
30027 " guestfs_list_partitions (guestfs_h *g);\n"
30028 "\n"
30029 msgstr ""
30030 " char **\n"
30031 " guestfs_list_partitions (guestfs_h *g);\n"
30032 "\n"
30033
30034 #. type: textblock
30035 #: ../src/guestfs-actions.pod:4280
30036 msgid ""
30037 "This does not return logical volumes.  For that you will need to call "
30038 "C<guestfs_lvs>."
30039 msgstr ""
30040
30041 #. type: =head2
30042 #: ../src/guestfs-actions.pod:4291
30043 msgid "guestfs_ll"
30044 msgstr "guestfs_ll"
30045
30046 #. type: verbatim
30047 #: ../src/guestfs-actions.pod:4293
30048 #, no-wrap
30049 msgid ""
30050 " char *\n"
30051 " guestfs_ll (guestfs_h *g,\n"
30052 "             const char *directory);\n"
30053 "\n"
30054 msgstr ""
30055 " char *\n"
30056 " guestfs_ll (guestfs_h *g,\n"
30057 "             const char *directory);\n"
30058 "\n"
30059
30060 #. type: =head2
30061 #: ../src/guestfs-actions.pod:4308
30062 msgid "guestfs_ln"
30063 msgstr "guestfs_ln"
30064
30065 #. type: verbatim
30066 #: ../src/guestfs-actions.pod:4310
30067 #, no-wrap
30068 msgid ""
30069 " int\n"
30070 " guestfs_ln (guestfs_h *g,\n"
30071 "             const char *target,\n"
30072 "             const char *linkname);\n"
30073 "\n"
30074 msgstr ""
30075 " int\n"
30076 " guestfs_ln (guestfs_h *g,\n"
30077 "             const char *target,\n"
30078 "             const char *linkname);\n"
30079 "\n"
30080
30081 #. type: =head2
30082 #: ../src/guestfs-actions.pod:4321
30083 msgid "guestfs_ln_f"
30084 msgstr "guestfs_ln_f"
30085
30086 #. type: verbatim
30087 #: ../src/guestfs-actions.pod:4323
30088 #, no-wrap
30089 msgid ""
30090 " int\n"
30091 " guestfs_ln_f (guestfs_h *g,\n"
30092 "               const char *target,\n"
30093 "               const char *linkname);\n"
30094 "\n"
30095 msgstr ""
30096 " int\n"
30097 " guestfs_ln_f (guestfs_h *g,\n"
30098 "               const char *target,\n"
30099 "               const char *linkname);\n"
30100 "\n"
30101
30102 #. type: =head2
30103 #: ../src/guestfs-actions.pod:4335
30104 msgid "guestfs_ln_s"
30105 msgstr "guestfs_ln_s"
30106
30107 #. type: verbatim
30108 #: ../src/guestfs-actions.pod:4337
30109 #, no-wrap
30110 msgid ""
30111 " int\n"
30112 " guestfs_ln_s (guestfs_h *g,\n"
30113 "               const char *target,\n"
30114 "               const char *linkname);\n"
30115 "\n"
30116 msgstr ""
30117 " int\n"
30118 " guestfs_ln_s (guestfs_h *g,\n"
30119 "               const char *target,\n"
30120 "               const char *linkname);\n"
30121 "\n"
30122
30123 #. type: =head2
30124 #: ../src/guestfs-actions.pod:4348
30125 msgid "guestfs_ln_sf"
30126 msgstr "guestfs_ln_sf"
30127
30128 #. type: verbatim
30129 #: ../src/guestfs-actions.pod:4350
30130 #, no-wrap
30131 msgid ""
30132 " int\n"
30133 " guestfs_ln_sf (guestfs_h *g,\n"
30134 "                const char *target,\n"
30135 "                const char *linkname);\n"
30136 "\n"
30137 msgstr ""
30138 " int\n"
30139 " guestfs_ln_sf (guestfs_h *g,\n"
30140 "                const char *target,\n"
30141 "                const char *linkname);\n"
30142 "\n"
30143
30144 #. type: =head2
30145 #: ../src/guestfs-actions.pod:4362
30146 msgid "guestfs_lremovexattr"
30147 msgstr "guestfs_lremovexattr"
30148
30149 #. type: verbatim
30150 #: ../src/guestfs-actions.pod:4364
30151 #, no-wrap
30152 msgid ""
30153 " int\n"
30154 " guestfs_lremovexattr (guestfs_h *g,\n"
30155 "                       const char *xattr,\n"
30156 "                       const char *path);\n"
30157 "\n"
30158 msgstr ""
30159 " int\n"
30160 " guestfs_lremovexattr (guestfs_h *g,\n"
30161 "                       const char *xattr,\n"
30162 "                       const char *path);\n"
30163 "\n"
30164
30165 #. type: textblock
30166 #: ../src/guestfs-actions.pod:4369
30167 msgid ""
30168 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30169 "link, then it removes an extended attribute of the link itself."
30170 msgstr ""
30171
30172 #. type: =head2
30173 #: ../src/guestfs-actions.pod:4377
30174 msgid "guestfs_ls"
30175 msgstr "guestfs_ls"
30176
30177 #. type: verbatim
30178 #: ../src/guestfs-actions.pod:4379
30179 #, no-wrap
30180 msgid ""
30181 " char **\n"
30182 " guestfs_ls (guestfs_h *g,\n"
30183 "             const char *directory);\n"
30184 "\n"
30185 msgstr ""
30186 " char **\n"
30187 " guestfs_ls (guestfs_h *g,\n"
30188 "             const char *directory);\n"
30189 "\n"
30190
30191 #. type: textblock
30192 #: ../src/guestfs-actions.pod:4387
30193 msgid ""
30194 "This command is mostly useful for interactive sessions.  Programs should "
30195 "probably use C<guestfs_readdir> instead."
30196 msgstr ""
30197
30198 #. type: =head2
30199 #: ../src/guestfs-actions.pod:4396
30200 msgid "guestfs_lsetxattr"
30201 msgstr "guestfs_lsetxattr"
30202
30203 #. type: verbatim
30204 #: ../src/guestfs-actions.pod:4398
30205 #, no-wrap
30206 msgid ""
30207 " int\n"
30208 " guestfs_lsetxattr (guestfs_h *g,\n"
30209 "                    const char *xattr,\n"
30210 "                    const char *val,\n"
30211 "                    int vallen,\n"
30212 "                    const char *path);\n"
30213 "\n"
30214 msgstr ""
30215 " int\n"
30216 " guestfs_lsetxattr (guestfs_h *g,\n"
30217 "                    const char *xattr,\n"
30218 "                    const char *val,\n"
30219 "                    int vallen,\n"
30220 "                    const char *path);\n"
30221 "\n"
30222
30223 #. type: textblock
30224 #: ../src/guestfs-actions.pod:4405
30225 msgid ""
30226 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30227 "then it sets an extended attribute of the link itself."
30228 msgstr ""
30229
30230 #. type: =head2
30231 #: ../src/guestfs-actions.pod:4413
30232 msgid "guestfs_lstat"
30233 msgstr "guestfs_lstat"
30234
30235 #. type: verbatim
30236 #: ../src/guestfs-actions.pod:4415
30237 #, no-wrap
30238 msgid ""
30239 " struct guestfs_stat *\n"
30240 " guestfs_lstat (guestfs_h *g,\n"
30241 "                const char *path);\n"
30242 "\n"
30243 msgstr ""
30244 " struct guestfs_stat *\n"
30245 " guestfs_lstat (guestfs_h *g,\n"
30246 "                const char *path);\n"
30247 "\n"
30248
30249 #. type: textblock
30250 #: ../src/guestfs-actions.pod:4421
30251 msgid ""
30252 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30253 "link, then the link is stat-ed, not the file it refers to."
30254 msgstr ""
30255
30256 #. type: textblock
30257 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:7204
30258 msgid ""
30259 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30260 "error.  I<The caller must call C<guestfs_free_stat> after use>."
30261 msgstr ""
30262
30263 #. type: textblock
30264 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7208
30265 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7607
30266 msgid "(Added in 0.9.2)"
30267 msgstr "(Додано у 0.9.2)"
30268
30269 #. type: =head2
30270 #: ../src/guestfs-actions.pod:4433
30271 msgid "guestfs_lstatlist"
30272 msgstr "guestfs_lstatlist"
30273
30274 #. type: verbatim
30275 #: ../src/guestfs-actions.pod:4435
30276 #, no-wrap
30277 msgid ""
30278 " struct guestfs_stat_list *\n"
30279 " guestfs_lstatlist (guestfs_h *g,\n"
30280 "                    const char *path,\n"
30281 "                    char *const *names);\n"
30282 "\n"
30283 msgstr ""
30284 " struct guestfs_stat_list *\n"
30285 " guestfs_lstatlist (guestfs_h *g,\n"
30286 "                    const char *path,\n"
30287 "                    char *const *names);\n"
30288 "\n"
30289
30290 #. type: textblock
30291 #: ../src/guestfs-actions.pod:4440
30292 msgid ""
30293 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30294 "files, where all files are in the directory C<path>.  C<names> is the list "
30295 "of files from this directory."
30296 msgstr ""
30297
30298 #. type: textblock
30299 #: ../src/guestfs-actions.pod:4449
30300 msgid ""
30301 "This call is intended for programs that want to efficiently list a directory "
30302 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
30303 "for a similarly efficient call for getting extended attributes.  Very long "
30304 "directory listings might cause the protocol message size to be exceeded, "
30305 "causing this call to fail.  The caller must split up such requests into "
30306 "smaller groups of names."
30307 msgstr ""
30308
30309 #. type: textblock
30310 #: ../src/guestfs-actions.pod:4457
30311 msgid ""
30312 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30313 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
30314 msgstr ""
30315
30316 #. type: =head2
30317 #: ../src/guestfs-actions.pod:4463
30318 msgid "guestfs_luks_add_key"
30319 msgstr "guestfs_luks_add_key"
30320
30321 #. type: verbatim
30322 #: ../src/guestfs-actions.pod:4465
30323 #, no-wrap
30324 msgid ""
30325 " int\n"
30326 " guestfs_luks_add_key (guestfs_h *g,\n"
30327 "                       const char *device,\n"
30328 "                       const char *key,\n"
30329 "                       const char *newkey,\n"
30330 "                       int keyslot);\n"
30331 "\n"
30332 msgstr ""
30333 " int\n"
30334 " guestfs_luks_add_key (guestfs_h *g,\n"
30335 "                       const char *device,\n"
30336 "                       const char *key,\n"
30337 "                       const char *newkey,\n"
30338 "                       int keyslot);\n"
30339 "\n"
30340
30341 #. type: textblock
30342 #: ../src/guestfs-actions.pod:4477
30343 msgid ""
30344 "Note that if C<keyslot> already contains a key, then this command will "
30345 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
30346 msgstr ""
30347
30348 #. type: textblock
30349 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:4520
30350 #: ../src/guestfs-actions.pod:4540 ../src/guestfs-actions.pod:4560
30351 #: ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:4614
30352 msgid ""
30353 "This function takes a key or passphrase parameter which could contain "
30354 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
30355 "information."
30356 msgstr ""
30357
30358 #. type: textblock
30359 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4524
30360 #: ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4564
30361 msgid "(Added in 1.5.2)"
30362 msgstr "(Додано у 1.5.2)"
30363
30364 #. type: =head2
30365 #: ../src/guestfs-actions.pod:4489
30366 msgid "guestfs_luks_close"
30367 msgstr "guestfs_luks_close"
30368
30369 #. type: verbatim
30370 #: ../src/guestfs-actions.pod:4491
30371 #, no-wrap
30372 msgid ""
30373 " int\n"
30374 " guestfs_luks_close (guestfs_h *g,\n"
30375 "                     const char *device);\n"
30376 "\n"
30377 msgstr ""
30378 " int\n"
30379 " guestfs_luks_close (guestfs_h *g,\n"
30380 "                     const char *device);\n"
30381 "\n"
30382
30383 #. type: textblock
30384 #: ../src/guestfs-actions.pod:4495
30385 msgid ""
30386 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30387 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
30388 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
30389 "underlying block device."
30390 msgstr ""
30391
30392 #. type: textblock
30393 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4599
30394 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4668
30395 #: ../src/guestfs-actions.pod:4713
30396 msgid "(Added in 1.5.1)"
30397 msgstr "(Додано у 1.5.1)"
30398
30399 #. type: =head2
30400 #: ../src/guestfs-actions.pod:4505
30401 msgid "guestfs_luks_format"
30402 msgstr "guestfs_luks_format"
30403
30404 #. type: verbatim
30405 #: ../src/guestfs-actions.pod:4507
30406 #, no-wrap
30407 msgid ""
30408 " int\n"
30409 " guestfs_luks_format (guestfs_h *g,\n"
30410 "                      const char *device,\n"
30411 "                      const char *key,\n"
30412 "                      int keyslot);\n"
30413 "\n"
30414 msgstr ""
30415 " int\n"
30416 " guestfs_luks_format (guestfs_h *g,\n"
30417 "                      const char *device,\n"
30418 "                      const char *key,\n"
30419 "                      int keyslot);\n"
30420 "\n"
30421
30422 #. type: =head2
30423 #: ../src/guestfs-actions.pod:4526
30424 msgid "guestfs_luks_format_cipher"
30425 msgstr "guestfs_luks_format_cipher"
30426
30427 #. type: verbatim
30428 #: ../src/guestfs-actions.pod:4528
30429 #, no-wrap
30430 msgid ""
30431 " int\n"
30432 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30433 "                             const char *device,\n"
30434 "                             const char *key,\n"
30435 "                             int keyslot,\n"
30436 "                             const char *cipher);\n"
30437 "\n"
30438 msgstr ""
30439 " int\n"
30440 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30441 "                             const char *device,\n"
30442 "                             const char *key,\n"
30443 "                             int keyslot,\n"
30444 "                             const char *cipher);\n"
30445 "\n"
30446
30447 #. type: textblock
30448 #: ../src/guestfs-actions.pod:4535
30449 msgid ""
30450 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30451 "set the C<cipher> used."
30452 msgstr ""
30453
30454 #. type: =head2
30455 #: ../src/guestfs-actions.pod:4546
30456 msgid "guestfs_luks_kill_slot"
30457 msgstr "guestfs_luks_kill_slot"
30458
30459 #. type: verbatim
30460 #: ../src/guestfs-actions.pod:4548
30461 #, no-wrap
30462 msgid ""
30463 " int\n"
30464 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30465 "                         const char *device,\n"
30466 "                         const char *key,\n"
30467 "                         int keyslot);\n"
30468 "\n"
30469 msgstr ""
30470 " int\n"
30471 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30472 "                         const char *device,\n"
30473 "                         const char *key,\n"
30474 "                         int keyslot);\n"
30475 "\n"
30476
30477 #. type: =head2
30478 #: ../src/guestfs-actions.pod:4566
30479 msgid "guestfs_luks_open"
30480 msgstr "guestfs_luks_open"
30481
30482 #. type: verbatim
30483 #: ../src/guestfs-actions.pod:4568
30484 #, no-wrap
30485 msgid ""
30486 " int\n"
30487 " guestfs_luks_open (guestfs_h *g,\n"
30488 "                    const char *device,\n"
30489 "                    const char *key,\n"
30490 "                    const char *mapname);\n"
30491 "\n"
30492 msgstr ""
30493 " int\n"
30494 " guestfs_luks_open (guestfs_h *g,\n"
30495 "                    const char *device,\n"
30496 "                    const char *key,\n"
30497 "                    const char *mapname);\n"
30498 "\n"
30499
30500 #. type: textblock
30501 #: ../src/guestfs-actions.pod:4586
30502 msgid ""
30503 "If this block device contains LVM volume groups, then calling "
30504 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30505 "visible."
30506 msgstr ""
30507
30508 #. type: textblock
30509 #: ../src/guestfs-actions.pod:4590
30510 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30511 msgstr ""
30512
30513 #. type: =head2
30514 #: ../src/guestfs-actions.pod:4601
30515 msgid "guestfs_luks_open_ro"
30516 msgstr "guestfs_luks_open_ro"
30517
30518 #. type: verbatim
30519 #: ../src/guestfs-actions.pod:4603
30520 #, no-wrap
30521 msgid ""
30522 " int\n"
30523 " guestfs_luks_open_ro (guestfs_h *g,\n"
30524 "                       const char *device,\n"
30525 "                       const char *key,\n"
30526 "                       const char *mapname);\n"
30527 "\n"
30528 msgstr ""
30529 " int\n"
30530 " guestfs_luks_open_ro (guestfs_h *g,\n"
30531 "                       const char *device,\n"
30532 "                       const char *key,\n"
30533 "                       const char *mapname);\n"
30534 "\n"
30535
30536 #. type: textblock
30537 #: ../src/guestfs-actions.pod:4609
30538 msgid ""
30539 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30540 "created."
30541 msgstr ""
30542
30543 #. type: =head2
30544 #: ../src/guestfs-actions.pod:4620
30545 msgid "guestfs_lvcreate"
30546 msgstr "guestfs_lvcreate"
30547
30548 #. type: verbatim
30549 #: ../src/guestfs-actions.pod:4622
30550 #, no-wrap
30551 msgid ""
30552 " int\n"
30553 " guestfs_lvcreate (guestfs_h *g,\n"
30554 "                   const char *logvol,\n"
30555 "                   const char *volgroup,\n"
30556 "                   int mbytes);\n"
30557 "\n"
30558 msgstr ""
30559 " int\n"
30560 " guestfs_lvcreate (guestfs_h *g,\n"
30561 "                   const char *logvol,\n"
30562 "                   const char *volgroup,\n"
30563 "                   int mbytes);\n"
30564 "\n"
30565
30566 #. type: =head2
30567 #: ../src/guestfs-actions.pod:4635
30568 msgid "guestfs_lvm_canonical_lv_name"
30569 msgstr "guestfs_lvm_canonical_lv_name"
30570
30571 #. type: verbatim
30572 #: ../src/guestfs-actions.pod:4637
30573 #, no-wrap
30574 msgid ""
30575 " char *\n"
30576 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30577 "                                const char *lvname);\n"
30578 "\n"
30579 msgstr ""
30580 " char *\n"
30581 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30582 "                                const char *lvname);\n"
30583 "\n"
30584
30585 #. type: textblock
30586 #: ../src/guestfs-actions.pod:4648
30587 msgid "See also C<guestfs_is_lv>."
30588 msgstr ""
30589
30590 #. type: textblock
30591 #: ../src/guestfs-actions.pod:4653
30592 msgid "(Added in 1.5.24)"
30593 msgstr "(Додано у 1.5.24)"
30594
30595 #. type: =head2
30596 #: ../src/guestfs-actions.pod:4655
30597 msgid "guestfs_lvm_clear_filter"
30598 msgstr "guestfs_lvm_clear_filter"
30599
30600 #. type: verbatim
30601 #: ../src/guestfs-actions.pod:4657
30602 #, no-wrap
30603 msgid ""
30604 " int\n"
30605 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30606 "\n"
30607 msgstr ""
30608 " int\n"
30609 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30610 "\n"
30611
30612 #. type: textblock
30613 #: ../src/guestfs-actions.pod:4660
30614 msgid ""
30615 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
30616 "see every block device."
30617 msgstr ""
30618
30619 #. type: =head2
30620 #: ../src/guestfs-actions.pod:4670
30621 msgid "guestfs_lvm_remove_all"
30622 msgstr "guestfs_lvm_remove_all"
30623
30624 #. type: verbatim
30625 #: ../src/guestfs-actions.pod:4672
30626 #, no-wrap
30627 msgid ""
30628 " int\n"
30629 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30630 "\n"
30631 msgstr ""
30632 " int\n"
30633 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30634 "\n"
30635
30636 #. type: =head2
30637 #: ../src/guestfs-actions.pod:4682
30638 msgid "guestfs_lvm_set_filter"
30639 msgstr "guestfs_lvm_set_filter"
30640
30641 #. type: verbatim
30642 #: ../src/guestfs-actions.pod:4684
30643 #, no-wrap
30644 msgid ""
30645 " int\n"
30646 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30647 "                         char *const *devices);\n"
30648 "\n"
30649 msgstr ""
30650 " int\n"
30651 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30652 "                         char *const *devices);\n"
30653 "\n"
30654
30655 #. type: =head2
30656 #: ../src/guestfs-actions.pod:4715
30657 msgid "guestfs_lvremove"
30658 msgstr "guestfs_lvremove"
30659
30660 #. type: verbatim
30661 #: ../src/guestfs-actions.pod:4717
30662 #, no-wrap
30663 msgid ""
30664 " int\n"
30665 " guestfs_lvremove (guestfs_h *g,\n"
30666 "                   const char *device);\n"
30667 "\n"
30668 msgstr ""
30669 " int\n"
30670 " guestfs_lvremove (guestfs_h *g,\n"
30671 "                   const char *device);\n"
30672 "\n"
30673
30674 #. type: textblock
30675 #: ../src/guestfs-actions.pod:4729 ../src/guestfs-actions.pod:6139
30676 #: ../src/guestfs-actions.pod:7977
30677 msgid "(Added in 1.0.13)"
30678 msgstr "(Додано у 1.0.13)"
30679
30680 #. type: =head2
30681 #: ../src/guestfs-actions.pod:4731
30682 msgid "guestfs_lvrename"
30683 msgstr "guestfs_lvrename"
30684
30685 #. type: verbatim
30686 #: ../src/guestfs-actions.pod:4733
30687 #, no-wrap
30688 msgid ""
30689 " int\n"
30690 " guestfs_lvrename (guestfs_h *g,\n"
30691 "                   const char *logvol,\n"
30692 "                   const char *newlogvol);\n"
30693 "\n"
30694 msgstr ""
30695 " int\n"
30696 " guestfs_lvrename (guestfs_h *g,\n"
30697 "                   const char *logvol,\n"
30698 "                   const char *newlogvol);\n"
30699 "\n"
30700
30701 #. type: textblock
30702 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:7990
30703 msgid "(Added in 1.0.83)"
30704 msgstr "(Додано у 1.0.83)"
30705
30706 #. type: =head2
30707 #: ../src/guestfs-actions.pod:4744
30708 msgid "guestfs_lvresize"
30709 msgstr "guestfs_lvresize"
30710
30711 #. type: verbatim
30712 #: ../src/guestfs-actions.pod:4746
30713 #, no-wrap
30714 msgid ""
30715 " int\n"
30716 " guestfs_lvresize (guestfs_h *g,\n"
30717 "                   const char *device,\n"
30718 "                   int mbytes);\n"
30719 "\n"
30720 msgstr ""
30721 " int\n"
30722 " guestfs_lvresize (guestfs_h *g,\n"
30723 "                   const char *device,\n"
30724 "                   int mbytes);\n"
30725 "\n"
30726
30727 #. type: =head2
30728 #: ../src/guestfs-actions.pod:4759
30729 msgid "guestfs_lvresize_free"
30730 msgstr "guestfs_lvresize_free"
30731
30732 #. type: verbatim
30733 #: ../src/guestfs-actions.pod:4761
30734 #, no-wrap
30735 msgid ""
30736 " int\n"
30737 " guestfs_lvresize_free (guestfs_h *g,\n"
30738 "                        const char *lv,\n"
30739 "                        int percent);\n"
30740 "\n"
30741 msgstr ""
30742 " int\n"
30743 " guestfs_lvresize_free (guestfs_h *g,\n"
30744 "                        const char *lv,\n"
30745 "                        int percent);\n"
30746 "\n"
30747
30748 #. type: textblock
30749 #: ../src/guestfs-actions.pod:4774
30750 msgid "(Added in 1.3.3)"
30751 msgstr "(Додано у 1.3.3)"
30752
30753 #. type: =head2
30754 #: ../src/guestfs-actions.pod:4776
30755 msgid "guestfs_lvs"
30756 msgstr "guestfs_lvs"
30757
30758 #. type: verbatim
30759 #: ../src/guestfs-actions.pod:4778
30760 #, no-wrap
30761 msgid ""
30762 " char **\n"
30763 " guestfs_lvs (guestfs_h *g);\n"
30764 "\n"
30765 msgstr ""
30766 " char **\n"
30767 " guestfs_lvs (guestfs_h *g);\n"
30768 "\n"
30769
30770 #. type: textblock
30771 #: ../src/guestfs-actions.pod:4787
30772 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30773 msgstr ""
30774
30775 #. type: =head2
30776 #: ../src/guestfs-actions.pod:4795
30777 msgid "guestfs_lvs_full"
30778 msgstr "guestfs_lvs_full"
30779
30780 #. type: verbatim
30781 #: ../src/guestfs-actions.pod:4797
30782 #, no-wrap
30783 msgid ""
30784 " struct guestfs_lvm_lv_list *\n"
30785 " guestfs_lvs_full (guestfs_h *g);\n"
30786 "\n"
30787 msgstr ""
30788 " struct guestfs_lvm_lv_list *\n"
30789 " guestfs_lvs_full (guestfs_h *g);\n"
30790 "\n"
30791
30792 #. type: textblock
30793 #: ../src/guestfs-actions.pod:4803
30794 msgid ""
30795 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30796 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30797 msgstr ""
30798
30799 #. type: =head2
30800 #: ../src/guestfs-actions.pod:4809
30801 msgid "guestfs_lvuuid"
30802 msgstr "guestfs_lvuuid"
30803
30804 #. type: verbatim
30805 #: ../src/guestfs-actions.pod:4811
30806 #, no-wrap
30807 msgid ""
30808 " char *\n"
30809 " guestfs_lvuuid (guestfs_h *g,\n"
30810 "                 const char *device);\n"
30811 "\n"
30812 msgstr ""
30813 " char *\n"
30814 " guestfs_lvuuid (guestfs_h *g,\n"
30815 "                 const char *device);\n"
30816 "\n"
30817
30818 #. type: =head2
30819 #: ../src/guestfs-actions.pod:4822
30820 msgid "guestfs_lxattrlist"
30821 msgstr "guestfs_lxattrlist"
30822
30823 #. type: verbatim
30824 #: ../src/guestfs-actions.pod:4824
30825 #, no-wrap
30826 msgid ""
30827 " struct guestfs_xattr_list *\n"
30828 " guestfs_lxattrlist (guestfs_h *g,\n"
30829 "                     const char *path,\n"
30830 "                     char *const *names);\n"
30831 "\n"
30832 msgstr ""
30833 " struct guestfs_xattr_list *\n"
30834 " guestfs_lxattrlist (guestfs_h *g,\n"
30835 "                     const char *path,\n"
30836 "                     char *const *names);\n"
30837 "\n"
30838
30839 #. type: textblock
30840 #: ../src/guestfs-actions.pod:4843
30841 msgid ""
30842 "This call is intended for programs that want to efficiently list a directory "
30843 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
30844 "a similarly efficient call for getting standard stats.  Very long directory "
30845 "listings might cause the protocol message size to be exceeded, causing this "
30846 "call to fail.  The caller must split up such requests into smaller groups of "
30847 "names."
30848 msgstr ""
30849
30850 #. type: =head2
30851 #: ../src/guestfs-actions.pod:4857
30852 msgid "guestfs_mkdir"
30853 msgstr "guestfs_mkdir"
30854
30855 #. type: verbatim
30856 #: ../src/guestfs-actions.pod:4859
30857 #, no-wrap
30858 msgid ""
30859 " int\n"
30860 " guestfs_mkdir (guestfs_h *g,\n"
30861 "                const char *path);\n"
30862 "\n"
30863 msgstr ""
30864 " int\n"
30865 " guestfs_mkdir (guestfs_h *g,\n"
30866 "                const char *path);\n"
30867 "\n"
30868
30869 #. type: =head2
30870 #: ../src/guestfs-actions.pod:4869
30871 msgid "guestfs_mkdir_mode"
30872 msgstr "guestfs_mkdir_mode"
30873
30874 #. type: verbatim
30875 #: ../src/guestfs-actions.pod:4871
30876 #, no-wrap
30877 msgid ""
30878 " int\n"
30879 " guestfs_mkdir_mode (guestfs_h *g,\n"
30880 "                     const char *path,\n"
30881 "                     int mode);\n"
30882 "\n"
30883 msgstr ""
30884 " int\n"
30885 " guestfs_mkdir_mode (guestfs_h *g,\n"
30886 "                     const char *path,\n"
30887 "                     int mode);\n"
30888 "\n"
30889
30890 #. type: textblock
30891 #: ../src/guestfs-actions.pod:4883
30892 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30893 msgstr ""
30894
30895 #. type: =head2
30896 #: ../src/guestfs-actions.pod:4889
30897 msgid "guestfs_mkdir_p"
30898 msgstr "guestfs_mkdir_p"
30899
30900 #. type: verbatim
30901 #: ../src/guestfs-actions.pod:4891
30902 #, no-wrap
30903 msgid ""
30904 " int\n"
30905 " guestfs_mkdir_p (guestfs_h *g,\n"
30906 "                  const char *path);\n"
30907 "\n"
30908 msgstr ""
30909 " int\n"
30910 " guestfs_mkdir_p (guestfs_h *g,\n"
30911 "                  const char *path);\n"
30912 "\n"
30913
30914 #. type: =head2
30915 #: ../src/guestfs-actions.pod:4902
30916 msgid "guestfs_mkdtemp"
30917 msgstr "guestfs_mkdtemp"
30918
30919 #. type: verbatim
30920 #: ../src/guestfs-actions.pod:4904
30921 #, no-wrap
30922 msgid ""
30923 " char *\n"
30924 " guestfs_mkdtemp (guestfs_h *g,\n"
30925 "                  const char *template);\n"
30926 "\n"
30927 msgstr ""
30928 " char *\n"
30929 " guestfs_mkdtemp (guestfs_h *g,\n"
30930 "                  const char *template);\n"
30931 "\n"
30932
30933 #. type: =head2
30934 #: ../src/guestfs-actions.pod:4932
30935 msgid "guestfs_mke2fs_J"
30936 msgstr "guestfs_mke2fs_J"
30937
30938 #. type: verbatim
30939 #: ../src/guestfs-actions.pod:4934
30940 #, no-wrap
30941 msgid ""
30942 " int\n"
30943 " guestfs_mke2fs_J (guestfs_h *g,\n"
30944 "                   const char *fstype,\n"
30945 "                   int blocksize,\n"
30946 "                   const char *device,\n"
30947 "                   const char *journal);\n"
30948 "\n"
30949 msgstr ""
30950 " int\n"
30951 " guestfs_mke2fs_J (guestfs_h *g,\n"
30952 "                   const char *fstype,\n"
30953 "                   int blocksize,\n"
30954 "                   const char *device,\n"
30955 "                   const char *journal);\n"
30956 "\n"
30957
30958 #. type: textblock
30959 #: ../src/guestfs-actions.pod:4947
30960 msgid "See also C<guestfs_mke2journal>."
30961 msgstr ""
30962
30963 #. type: textblock
30964 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:4969
30965 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5003
30966 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5031
30967 #: ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5367
30968 msgid "(Added in 1.0.68)"
30969 msgstr "(Додано у 1.0.68)"
30970
30971 #. type: =head2
30972 #: ../src/guestfs-actions.pod:4953
30973 msgid "guestfs_mke2fs_JL"
30974 msgstr "guestfs_mke2fs_JL"
30975
30976 #. type: verbatim
30977 #: ../src/guestfs-actions.pod:4955
30978 #, no-wrap
30979 msgid ""
30980 " int\n"
30981 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30982 "                    const char *fstype,\n"
30983 "                    int blocksize,\n"
30984 "                    const char *device,\n"
30985 "                    const char *label);\n"
30986 "\n"
30987 msgstr ""
30988 " int\n"
30989 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30990 "                    const char *fstype,\n"
30991 "                    int blocksize,\n"
30992 "                    const char *device,\n"
30993 "                    const char *label);\n"
30994 "\n"
30995
30996 #. type: textblock
30997 #: ../src/guestfs-actions.pod:4965
30998 msgid "See also C<guestfs_mke2journal_L>."
30999 msgstr ""
31000
31001 #. type: =head2
31002 #: ../src/guestfs-actions.pod:4971
31003 msgid "guestfs_mke2fs_JU"
31004 msgstr "guestfs_mke2fs_JU"
31005
31006 #. type: verbatim
31007 #: ../src/guestfs-actions.pod:4973
31008 #, no-wrap
31009 msgid ""
31010 " int\n"
31011 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31012 "                    const char *fstype,\n"
31013 "                    int blocksize,\n"
31014 "                    const char *device,\n"
31015 "                    const char *uuid);\n"
31016 "\n"
31017 msgstr ""
31018 " int\n"
31019 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31020 "                    const char *fstype,\n"
31021 "                    int blocksize,\n"
31022 "                    const char *device,\n"
31023 "                    const char *uuid);\n"
31024 "\n"
31025
31026 #. type: textblock
31027 #: ../src/guestfs-actions.pod:4983
31028 msgid "See also C<guestfs_mke2journal_U>."
31029 msgstr ""
31030
31031 #. type: =head2
31032 #: ../src/guestfs-actions.pod:4989
31033 msgid "guestfs_mke2journal"
31034 msgstr "guestfs_mke2journal"
31035
31036 #. type: verbatim
31037 #: ../src/guestfs-actions.pod:4991
31038 #, no-wrap
31039 msgid ""
31040 " int\n"
31041 " guestfs_mke2journal (guestfs_h *g,\n"
31042 "                      int blocksize,\n"
31043 "                      const char *device);\n"
31044 "\n"
31045 msgstr ""
31046 " int\n"
31047 " guestfs_mke2journal (guestfs_h *g,\n"
31048 "                      int blocksize,\n"
31049 "                      const char *device);\n"
31050 "\n"
31051
31052 #. type: =head2
31053 #: ../src/guestfs-actions.pod:5005
31054 msgid "guestfs_mke2journal_L"
31055 msgstr "guestfs_mke2journal_L"
31056
31057 #. type: verbatim
31058 #: ../src/guestfs-actions.pod:5007
31059 #, no-wrap
31060 msgid ""
31061 " int\n"
31062 " guestfs_mke2journal_L (guestfs_h *g,\n"
31063 "                        int blocksize,\n"
31064 "                        const char *label,\n"
31065 "                        const char *device);\n"
31066 "\n"
31067 msgstr ""
31068 " int\n"
31069 " guestfs_mke2journal_L (guestfs_h *g,\n"
31070 "                        int blocksize,\n"
31071 "                        const char *label,\n"
31072 "                        const char *device);\n"
31073 "\n"
31074
31075 #. type: =head2
31076 #: ../src/guestfs-actions.pod:5019
31077 msgid "guestfs_mke2journal_U"
31078 msgstr "guestfs_mke2journal_U"
31079
31080 #. type: verbatim
31081 #: ../src/guestfs-actions.pod:5021
31082 #, no-wrap
31083 msgid ""
31084 " int\n"
31085 " guestfs_mke2journal_U (guestfs_h *g,\n"
31086 "                        int blocksize,\n"
31087 "                        const char *uuid,\n"
31088 "                        const char *device);\n"
31089 "\n"
31090 msgstr ""
31091 " int\n"
31092 " guestfs_mke2journal_U (guestfs_h *g,\n"
31093 "                        int blocksize,\n"
31094 "                        const char *uuid,\n"
31095 "                        const char *device);\n"
31096 "\n"
31097
31098 #. type: =head2
31099 #: ../src/guestfs-actions.pod:5033
31100 msgid "guestfs_mkfifo"
31101 msgstr "guestfs_mkfifo"
31102
31103 #. type: verbatim
31104 #: ../src/guestfs-actions.pod:5035
31105 #, no-wrap
31106 msgid ""
31107 " int\n"
31108 " guestfs_mkfifo (guestfs_h *g,\n"
31109 "                 int mode,\n"
31110 "                 const char *path);\n"
31111 "\n"
31112 msgstr ""
31113 " int\n"
31114 " guestfs_mkfifo (guestfs_h *g,\n"
31115 "                 int mode,\n"
31116 "                 const char *path);\n"
31117 "\n"
31118
31119 #. type: textblock
31120 #: ../src/guestfs-actions.pod:5040
31121 msgid ""
31122 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
31123 "is just a convenient wrapper around C<guestfs_mknod>."
31124 msgstr ""
31125
31126 #. type: =head2
31127 #: ../src/guestfs-actions.pod:5050
31128 msgid "guestfs_mkfs"
31129 msgstr "guestfs_mkfs"
31130
31131 #. type: verbatim
31132 #: ../src/guestfs-actions.pod:5052
31133 #, no-wrap
31134 msgid ""
31135 " int\n"
31136 " guestfs_mkfs (guestfs_h *g,\n"
31137 "               const char *fstype,\n"
31138 "               const char *device);\n"
31139 "\n"
31140 msgstr ""
31141 " int\n"
31142 " guestfs_mkfs (guestfs_h *g,\n"
31143 "               const char *fstype,\n"
31144 "               const char *device);\n"
31145 "\n"
31146
31147 #. type: =head2
31148 #: ../src/guestfs-actions.pod:5065
31149 msgid "guestfs_mkfs_b"
31150 msgstr "guestfs_mkfs_b"
31151
31152 #. type: verbatim
31153 #: ../src/guestfs-actions.pod:5067
31154 #, no-wrap
31155 msgid ""
31156 " int\n"
31157 " guestfs_mkfs_b (guestfs_h *g,\n"
31158 "                 const char *fstype,\n"
31159 "                 int blocksize,\n"
31160 "                 const char *device);\n"
31161 "\n"
31162 msgstr ""
31163 " int\n"
31164 " guestfs_mkfs_b (guestfs_h *g,\n"
31165 "                 const char *fstype,\n"
31166 "                 int blocksize,\n"
31167 "                 const char *device);\n"
31168 "\n"
31169
31170 #. type: textblock
31171 #: ../src/guestfs-actions.pod:5073
31172 msgid ""
31173 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31174 "call instead."
31175 msgstr ""
31176
31177 #. type: textblock
31178 #: ../src/guestfs-actions.pod:5080
31179 msgid ""
31180 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31181 "block size of the resulting filesystem.  Supported block sizes depend on the "
31182 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31183 msgstr ""
31184
31185 #. type: =head2
31186 #: ../src/guestfs-actions.pod:5092
31187 msgid "guestfs_mkfs_opts"
31188 msgstr "guestfs_mkfs_opts"
31189
31190 #. type: verbatim
31191 #: ../src/guestfs-actions.pod:5094
31192 #, no-wrap
31193 msgid ""
31194 " int\n"
31195 " guestfs_mkfs_opts (guestfs_h *g,\n"
31196 "                    const char *fstype,\n"
31197 "                    const char *device,\n"
31198 "                    ...);\n"
31199 "\n"
31200 msgstr ""
31201 " int\n"
31202 " guestfs_mkfs_opts (guestfs_h *g,\n"
31203 "                    const char *fstype,\n"
31204 "                    const char *device,\n"
31205 "                    ...);\n"
31206 "\n"
31207
31208 #. type: verbatim
31209 #: ../src/guestfs-actions.pod:5105
31210 #, no-wrap
31211 msgid ""
31212 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31213 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31214 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31215 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31216 "\n"
31217 msgstr ""
31218
31219 #. type: textblock
31220 #: ../src/guestfs-actions.pod:5153
31221 msgid "(Added in 1.7.19)"
31222 msgstr "(Додано у 1.7.19)"
31223
31224 #. type: =head2
31225 #: ../src/guestfs-actions.pod:5155
31226 msgid "guestfs_mkfs_opts_va"
31227 msgstr "guestfs_mkfs_opts_va"
31228
31229 #. type: verbatim
31230 #: ../src/guestfs-actions.pod:5157
31231 #, no-wrap
31232 msgid ""
31233 " int\n"
31234 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31235 "                       const char *fstype,\n"
31236 "                       const char *device,\n"
31237 "                       va_list args);\n"
31238 "\n"
31239 msgstr ""
31240 " int\n"
31241 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31242 "                       const char *fstype,\n"
31243 "                       const char *device,\n"
31244 "                       va_list args);\n"
31245 "\n"
31246
31247 #. type: textblock
31248 #: ../src/guestfs-actions.pod:5163
31249 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31250 msgstr ""
31251
31252 #. type: =head2
31253 #: ../src/guestfs-actions.pod:5167
31254 msgid "guestfs_mkfs_opts_argv"
31255 msgstr "guestfs_mkfs_opts_argv"
31256
31257 #. type: verbatim
31258 #: ../src/guestfs-actions.pod:5169
31259 #, no-wrap
31260 msgid ""
31261 " int\n"
31262 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31263 "                         const char *fstype,\n"
31264 "                         const char *device,\n"
31265 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31266 "\n"
31267 msgstr ""
31268 " int\n"
31269 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31270 "                         const char *fstype,\n"
31271 "                         const char *device,\n"
31272 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31273 "\n"
31274
31275 #. type: textblock
31276 #: ../src/guestfs-actions.pod:5175
31277 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31278 msgstr ""
31279
31280 #. type: =head2
31281 #: ../src/guestfs-actions.pod:5179
31282 msgid "guestfs_mkmountpoint"
31283 msgstr "guestfs_mkmountpoint"
31284
31285 #. type: verbatim
31286 #: ../src/guestfs-actions.pod:5181
31287 #, no-wrap
31288 msgid ""
31289 " int\n"
31290 " guestfs_mkmountpoint (guestfs_h *g,\n"
31291 "                       const char *exemptpath);\n"
31292 "\n"
31293 msgstr ""
31294 " int\n"
31295 " guestfs_mkmountpoint (guestfs_h *g,\n"
31296 "                       const char *exemptpath);\n"
31297 "\n"
31298
31299 #. type: textblock
31300 #: ../src/guestfs-actions.pod:5185
31301 msgid ""
31302 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31303 "that can be used to create extra mountpoints before mounting the first "
31304 "filesystem."
31305 msgstr ""
31306
31307 #. type: textblock
31308 #: ../src/guestfs-actions.pod:5209
31309 msgid ""
31310 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
31311 "may get unexpected errors if you try to mix these calls.  It is safest to "
31312 "manually unmount filesystems and remove mountpoints after use."
31313 msgstr ""
31314
31315 #. type: textblock
31316 #: ../src/guestfs-actions.pod:5213
31317 msgid ""
31318 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31319 "first, so for this to work for manual mountpoints, you must ensure that the "
31320 "innermost mountpoints have the longest pathnames, as in the example code "
31321 "above."
31322 msgstr ""
31323
31324 #. type: textblock
31325 #: ../src/guestfs-actions.pod:5220
31326 msgid ""
31327 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31328 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31329 "can also trigger these issues."
31330 msgstr ""
31331
31332 #. type: textblock
31333 #: ../src/guestfs-actions.pod:5226 ../src/guestfs-actions.pod:5532
31334 #: ../src/guestfs-actions.pod:6559
31335 msgid "(Added in 1.0.62)"
31336 msgstr "(Додано у 1.0.62)"
31337
31338 #. type: =head2
31339 #: ../src/guestfs-actions.pod:5228
31340 msgid "guestfs_mknod"
31341 msgstr ""
31342
31343 #. type: verbatim
31344 #: ../src/guestfs-actions.pod:5230
31345 #, no-wrap
31346 msgid ""
31347 " int\n"
31348 " guestfs_mknod (guestfs_h *g,\n"
31349 "                int mode,\n"
31350 "                int devmajor,\n"
31351 "                int devminor,\n"
31352 "                const char *path);\n"
31353 "\n"
31354 msgstr ""
31355
31356 #. type: textblock
31357 #: ../src/guestfs-actions.pod:5245
31358 msgid ""
31359 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31360 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31361 "regular file).  These constants are available in the standard Linux header "
31362 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31363 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31364 "the appropriate constant for you."
31365 msgstr ""
31366
31367 #. type: =head2
31368 #: ../src/guestfs-actions.pod:5259
31369 msgid "guestfs_mknod_b"
31370 msgstr ""
31371
31372 #. type: verbatim
31373 #: ../src/guestfs-actions.pod:5261
31374 #, no-wrap
31375 msgid ""
31376 " int\n"
31377 " guestfs_mknod_b (guestfs_h *g,\n"
31378 "                  int mode,\n"
31379 "                  int devmajor,\n"
31380 "                  int devminor,\n"
31381 "                  const char *path);\n"
31382 "\n"
31383 msgstr ""
31384
31385 #. type: textblock
31386 #: ../src/guestfs-actions.pod:5268
31387 msgid ""
31388 "This call creates a block device node called C<path> with mode C<mode> and "
31389 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31390 "wrapper around C<guestfs_mknod>."
31391 msgstr ""
31392
31393 #. type: =head2
31394 #: ../src/guestfs-actions.pod:5278
31395 msgid "guestfs_mknod_c"
31396 msgstr ""
31397
31398 #. type: verbatim
31399 #: ../src/guestfs-actions.pod:5280
31400 #, no-wrap
31401 msgid ""
31402 " int\n"
31403 " guestfs_mknod_c (guestfs_h *g,\n"
31404 "                  int mode,\n"
31405 "                  int devmajor,\n"
31406 "                  int devminor,\n"
31407 "                  const char *path);\n"
31408 "\n"
31409 msgstr ""
31410
31411 #. type: textblock
31412 #: ../src/guestfs-actions.pod:5287
31413 msgid ""
31414 "This call creates a char device node called C<path> with mode C<mode> and "
31415 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31416 "wrapper around C<guestfs_mknod>."
31417 msgstr ""
31418
31419 #. type: =head2
31420 #: ../src/guestfs-actions.pod:5297
31421 msgid "guestfs_mkswap"
31422 msgstr ""
31423
31424 #. type: verbatim
31425 #: ../src/guestfs-actions.pod:5299
31426 #, no-wrap
31427 msgid ""
31428 " int\n"
31429 " guestfs_mkswap (guestfs_h *g,\n"
31430 "                 const char *device);\n"
31431 "\n"
31432 msgstr ""
31433
31434 #. type: =head2
31435 #: ../src/guestfs-actions.pod:5309
31436 msgid "guestfs_mkswap_L"
31437 msgstr ""
31438
31439 #. type: verbatim
31440 #: ../src/guestfs-actions.pod:5311
31441 #, no-wrap
31442 msgid ""
31443 " int\n"
31444 " guestfs_mkswap_L (guestfs_h *g,\n"
31445 "                   const char *label,\n"
31446 "                   const char *device);\n"
31447 "\n"
31448 msgstr ""
31449
31450 #. type: =head2
31451 #: ../src/guestfs-actions.pod:5326
31452 msgid "guestfs_mkswap_U"
31453 msgstr ""
31454
31455 #. type: verbatim
31456 #: ../src/guestfs-actions.pod:5328
31457 #, no-wrap
31458 msgid ""
31459 " int\n"
31460 " guestfs_mkswap_U (guestfs_h *g,\n"
31461 "                   const char *uuid,\n"
31462 "                   const char *device);\n"
31463 "\n"
31464 msgstr ""
31465
31466 #. type: =head2
31467 #: ../src/guestfs-actions.pod:5339
31468 msgid "guestfs_mkswap_file"
31469 msgstr ""
31470
31471 #. type: verbatim
31472 #: ../src/guestfs-actions.pod:5341
31473 #, no-wrap
31474 msgid ""
31475 " int\n"
31476 " guestfs_mkswap_file (guestfs_h *g,\n"
31477 "                      const char *path);\n"
31478 "\n"
31479 msgstr ""
31480
31481 #. type: textblock
31482 #: ../src/guestfs-actions.pod:5347
31483 msgid ""
31484 "This command just writes a swap file signature to an existing file.  To "
31485 "create the file itself, use something like C<guestfs_fallocate>."
31486 msgstr ""
31487
31488 #. type: =head2
31489 #: ../src/guestfs-actions.pod:5354
31490 msgid "guestfs_modprobe"
31491 msgstr ""
31492
31493 #. type: verbatim
31494 #: ../src/guestfs-actions.pod:5356
31495 #, no-wrap
31496 msgid ""
31497 " int\n"
31498 " guestfs_modprobe (guestfs_h *g,\n"
31499 "                   const char *modulename);\n"
31500 "\n"
31501 msgstr ""
31502
31503 #. type: =head2
31504 #: ../src/guestfs-actions.pod:5369
31505 msgid "guestfs_mount"
31506 msgstr ""
31507
31508 #. type: verbatim
31509 #: ../src/guestfs-actions.pod:5371
31510 #, no-wrap
31511 msgid ""
31512 " int\n"
31513 " guestfs_mount (guestfs_h *g,\n"
31514 "                const char *device,\n"
31515 "                const char *mountpoint);\n"
31516 "\n"
31517 msgstr ""
31518
31519 #. type: textblock
31520 #: ../src/guestfs-actions.pod:5390
31521 msgid ""
31522 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31523 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
31524 "problems for users.  If your program might need to work with older versions "
31525 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31526 "for the first parameter if you don't want any options)."
31527 msgstr ""
31528
31529 #. type: =head2
31530 #: ../src/guestfs-actions.pod:5401
31531 msgid "guestfs_mount_9p"
31532 msgstr ""
31533
31534 #. type: verbatim
31535 #: ../src/guestfs-actions.pod:5403
31536 #, no-wrap
31537 msgid ""
31538 " int\n"
31539 " guestfs_mount_9p (guestfs_h *g,\n"
31540 "                   const char *mounttag,\n"
31541 "                   const char *mountpoint,\n"
31542 "                   ...);\n"
31543 "\n"
31544 msgstr ""
31545
31546 #. type: verbatim
31547 #: ../src/guestfs-actions.pod:5414
31548 #, no-wrap
31549 msgid ""
31550 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31551 "\n"
31552 msgstr ""
31553
31554 #. type: =head2
31555 #: ../src/guestfs-actions.pod:5427
31556 msgid "guestfs_mount_9p_va"
31557 msgstr ""
31558
31559 #. type: verbatim
31560 #: ../src/guestfs-actions.pod:5429
31561 #, no-wrap
31562 msgid ""
31563 " int\n"
31564 " guestfs_mount_9p_va (guestfs_h *g,\n"
31565 "                      const char *mounttag,\n"
31566 "                      const char *mountpoint,\n"
31567 "                      va_list args);\n"
31568 "\n"
31569 msgstr ""
31570
31571 #. type: textblock
31572 #: ../src/guestfs-actions.pod:5435
31573 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31574 msgstr ""
31575
31576 #. type: =head2
31577 #: ../src/guestfs-actions.pod:5439
31578 msgid "guestfs_mount_9p_argv"
31579 msgstr ""
31580
31581 #. type: verbatim
31582 #: ../src/guestfs-actions.pod:5441
31583 #, no-wrap
31584 msgid ""
31585 " int\n"
31586 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31587 "                        const char *mounttag,\n"
31588 "                        const char *mountpoint,\n"
31589 "                        const struct guestfs_mount_9p_argv *optargs);\n"
31590 "\n"
31591 msgstr ""
31592
31593 #. type: textblock
31594 #: ../src/guestfs-actions.pod:5447
31595 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31596 msgstr ""
31597
31598 #. type: =head2
31599 #: ../src/guestfs-actions.pod:5451
31600 msgid "guestfs_mount_loop"
31601 msgstr ""
31602
31603 #. type: verbatim
31604 #: ../src/guestfs-actions.pod:5453
31605 #, no-wrap
31606 msgid ""
31607 " int\n"
31608 " guestfs_mount_loop (guestfs_h *g,\n"
31609 "                     const char *file,\n"
31610 "                     const char *mountpoint);\n"
31611 "\n"
31612 msgstr ""
31613
31614 #. type: =head2
31615 #: ../src/guestfs-actions.pod:5466
31616 msgid "guestfs_mount_options"
31617 msgstr ""
31618
31619 #. type: verbatim
31620 #: ../src/guestfs-actions.pod:5468
31621 #, no-wrap
31622 msgid ""
31623 " int\n"
31624 " guestfs_mount_options (guestfs_h *g,\n"
31625 "                        const char *options,\n"
31626 "                        const char *device,\n"
31627 "                        const char *mountpoint);\n"
31628 "\n"
31629 msgstr ""
31630
31631 #. type: textblock
31632 #: ../src/guestfs-actions.pod:5474
31633 msgid ""
31634 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31635 "the mount options as for the L<mount(8)> I<-o> flag."
31636 msgstr ""
31637
31638 #. type: textblock
31639 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5498
31640 #: ../src/guestfs-actions.pod:5515
31641 msgid "(Added in 1.0.10)"
31642 msgstr "(Додано у 1.0.10)"
31643
31644 #. type: =head2
31645 #: ../src/guestfs-actions.pod:5486
31646 msgid "guestfs_mount_ro"
31647 msgstr ""
31648
31649 #. type: verbatim
31650 #: ../src/guestfs-actions.pod:5488
31651 #, no-wrap
31652 msgid ""
31653 " int\n"
31654 " guestfs_mount_ro (guestfs_h *g,\n"
31655 "                   const char *device,\n"
31656 "                   const char *mountpoint);\n"
31657 "\n"
31658 msgstr ""
31659
31660 #. type: textblock
31661 #: ../src/guestfs-actions.pod:5493
31662 msgid ""
31663 "This is the same as the C<guestfs_mount> command, but it mounts the "
31664 "filesystem with the read-only (I<-o ro>) flag."
31665 msgstr ""
31666
31667 #. type: =head2
31668 #: ../src/guestfs-actions.pod:5500
31669 msgid "guestfs_mount_vfs"
31670 msgstr ""
31671
31672 #. type: verbatim
31673 #: ../src/guestfs-actions.pod:5502
31674 #, no-wrap
31675 msgid ""
31676 " int\n"
31677 " guestfs_mount_vfs (guestfs_h *g,\n"
31678 "                    const char *options,\n"
31679 "                    const char *vfstype,\n"
31680 "                    const char *device,\n"
31681 "                    const char *mountpoint);\n"
31682 "\n"
31683 msgstr ""
31684
31685 #. type: textblock
31686 #: ../src/guestfs-actions.pod:5509
31687 msgid ""
31688 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31689 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
31690 "t> flags."
31691 msgstr ""
31692
31693 #. type: =head2
31694 #: ../src/guestfs-actions.pod:5517
31695 msgid "guestfs_mountpoints"
31696 msgstr ""
31697
31698 #. type: verbatim
31699 #: ../src/guestfs-actions.pod:5519
31700 #, no-wrap
31701 msgid ""
31702 " char **\n"
31703 " guestfs_mountpoints (guestfs_h *g);\n"
31704 "\n"
31705 msgstr ""
31706
31707 #. type: textblock
31708 #: ../src/guestfs-actions.pod:5522
31709 msgid ""
31710 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
31711 "devices.  This one returns a hash table (map) of device name to directory "
31712 "where the device is mounted."
31713 msgstr ""
31714
31715 #. type: =head2
31716 #: ../src/guestfs-actions.pod:5534
31717 msgid "guestfs_mounts"
31718 msgstr ""
31719
31720 #. type: verbatim
31721 #: ../src/guestfs-actions.pod:5536
31722 #, no-wrap
31723 msgid ""
31724 " char **\n"
31725 " guestfs_mounts (guestfs_h *g);\n"
31726 "\n"
31727 msgstr ""
31728
31729 #. type: textblock
31730 #: ../src/guestfs-actions.pod:5544
31731 msgid "See also: C<guestfs_mountpoints>"
31732 msgstr ""
31733
31734 #. type: =head2
31735 #: ../src/guestfs-actions.pod:5552
31736 msgid "guestfs_mv"
31737 msgstr ""
31738
31739 #. type: verbatim
31740 #: ../src/guestfs-actions.pod:5554
31741 #, no-wrap
31742 msgid ""
31743 " int\n"
31744 " guestfs_mv (guestfs_h *g,\n"
31745 "             const char *src,\n"
31746 "             const char *dest);\n"
31747 "\n"
31748 msgstr ""
31749
31750 #. type: =head2
31751 #: ../src/guestfs-actions.pod:5566
31752 msgid "guestfs_ntfs_3g_probe"
31753 msgstr ""
31754
31755 #. type: verbatim
31756 #: ../src/guestfs-actions.pod:5568
31757 #, no-wrap
31758 msgid ""
31759 " int\n"
31760 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31761 "                        int rw,\n"
31762 "                        const char *device);\n"
31763 "\n"
31764 msgstr ""
31765
31766 #. type: textblock
31767 #: ../src/guestfs-actions.pod:5587
31768 msgid "(Added in 1.0.43)"
31769 msgstr "(Додано у 1.0.43)"
31770
31771 #. type: =head2
31772 #: ../src/guestfs-actions.pod:5589
31773 msgid "guestfs_ntfsresize"
31774 msgstr ""
31775
31776 #. type: verbatim
31777 #: ../src/guestfs-actions.pod:5591
31778 #, no-wrap
31779 msgid ""
31780 " int\n"
31781 " guestfs_ntfsresize (guestfs_h *g,\n"
31782 "                     const char *device);\n"
31783 "\n"
31784 msgstr ""
31785
31786 #. type: textblock
31787 #: ../src/guestfs-actions.pod:5595 ../src/guestfs-actions.pod:5695
31788 msgid ""
31789 "I<This function is deprecated.> In new code, use the L</"
31790 "guestfs_ntfsresize_opts> call instead."
31791 msgstr ""
31792
31793 #. type: =head2
31794 #: ../src/guestfs-actions.pod:5619
31795 msgid "guestfs_ntfsresize_opts"
31796 msgstr ""
31797
31798 #. type: verbatim
31799 #: ../src/guestfs-actions.pod:5621
31800 #, no-wrap
31801 msgid ""
31802 " int\n"
31803 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31804 "                          const char *device,\n"
31805 "                          ...);\n"
31806 "\n"
31807 msgstr ""
31808
31809 #. type: verbatim
31810 #: ../src/guestfs-actions.pod:5631
31811 #, no-wrap
31812 msgid ""
31813 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31814 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31815 "\n"
31816 msgstr ""
31817
31818 #. type: textblock
31819 #: ../src/guestfs-actions.pod:5651
31820 msgid ""
31821 "After the resize operation, the filesystem is always marked as requiring a "
31822 "consistency check (for safety).  You have to boot into Windows to perform "
31823 "this check and clear this condition.  If you I<don't> set the C<force> "
31824 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31825 "times on a single filesystem without booting into Windows between each "
31826 "resize."
31827 msgstr ""
31828
31829 #. type: =head2
31830 #: ../src/guestfs-actions.pod:5666
31831 msgid "guestfs_ntfsresize_opts_va"
31832 msgstr ""
31833
31834 #. type: verbatim
31835 #: ../src/guestfs-actions.pod:5668
31836 #, no-wrap
31837 msgid ""
31838 " int\n"
31839 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31840 "                             const char *device,\n"
31841 "                             va_list args);\n"
31842 "\n"
31843 msgstr ""
31844
31845 #. type: textblock
31846 #: ../src/guestfs-actions.pod:5673
31847 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31848 msgstr ""
31849
31850 #. type: =head2
31851 #: ../src/guestfs-actions.pod:5677
31852 msgid "guestfs_ntfsresize_opts_argv"
31853 msgstr ""
31854
31855 #. type: verbatim
31856 #: ../src/guestfs-actions.pod:5679
31857 #, no-wrap
31858 msgid ""
31859 " int\n"
31860 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31861 "                               const char *device,\n"
31862 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31863 "\n"
31864 msgstr ""
31865
31866 #. type: textblock
31867 #: ../src/guestfs-actions.pod:5684
31868 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31869 msgstr ""
31870
31871 #. type: =head2
31872 #: ../src/guestfs-actions.pod:5688
31873 msgid "guestfs_ntfsresize_size"
31874 msgstr ""
31875
31876 #. type: verbatim
31877 #: ../src/guestfs-actions.pod:5690
31878 #, no-wrap
31879 msgid ""
31880 " int\n"
31881 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31882 "                          const char *device,\n"
31883 "                          int64_t size);\n"
31884 "\n"
31885 msgstr ""
31886
31887 #. type: textblock
31888 #: ../src/guestfs-actions.pod:5702
31889 msgid ""
31890 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31891 "to specify the new size (in bytes) explicitly."
31892 msgstr ""
31893
31894 #. type: textblock
31895 #: ../src/guestfs-actions.pod:5707 ../src/guestfs-actions.pod:6166
31896 #: ../src/guestfs-actions.pod:6239 ../src/guestfs-actions.pod:6507
31897 #: ../src/guestfs-actions.pod:8134
31898 msgid "(Added in 1.3.14)"
31899 msgstr "(Додано у 1.3.14)"
31900
31901 #. type: =head2
31902 #: ../src/guestfs-actions.pod:5709
31903 msgid "guestfs_part_add"
31904 msgstr ""
31905
31906 #. type: verbatim
31907 #: ../src/guestfs-actions.pod:5711
31908 #, no-wrap
31909 msgid ""
31910 " int\n"
31911 " guestfs_part_add (guestfs_h *g,\n"
31912 "                   const char *device,\n"
31913 "                   const char *prlogex,\n"
31914 "                   int64_t startsect,\n"
31915 "                   int64_t endsect);\n"
31916 "\n"
31917 msgstr ""
31918
31919 #. type: textblock
31920 #: ../src/guestfs-actions.pod:5718
31921 msgid ""
31922 "This command adds a partition to C<device>.  If there is no partition table "
31923 "on the device, call C<guestfs_part_init> first."
31924 msgstr ""
31925
31926 #. type: textblock
31927 #: ../src/guestfs-actions.pod:5730
31928 msgid ""
31929 "Creating a partition which covers the whole disk is not so easy.  Use "
31930 "C<guestfs_part_disk> to do that."
31931 msgstr ""
31932
31933 #. type: textblock
31934 #: ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5770
31935 #: ../src/guestfs-actions.pod:5823 ../src/guestfs-actions.pod:5907
31936 #: ../src/guestfs-actions.pod:5945 ../src/guestfs-actions.pod:5964
31937 #: ../src/guestfs-actions.pod:6004
31938 msgid "(Added in 1.0.78)"
31939 msgstr "(Додано у 1.0.78)"
31940
31941 #. type: =head2
31942 #: ../src/guestfs-actions.pod:5737
31943 msgid "guestfs_part_del"
31944 msgstr ""
31945
31946 #. type: verbatim
31947 #: ../src/guestfs-actions.pod:5739
31948 #, no-wrap
31949 msgid ""
31950 " int\n"
31951 " guestfs_part_del (guestfs_h *g,\n"
31952 "                   const char *device,\n"
31953 "                   int partnum);\n"
31954 "\n"
31955 msgstr ""
31956
31957 #. type: =head2
31958 #: ../src/guestfs-actions.pod:5754
31959 msgid "guestfs_part_disk"
31960 msgstr ""
31961
31962 #. type: verbatim
31963 #: ../src/guestfs-actions.pod:5756
31964 #, no-wrap
31965 msgid ""
31966 " int\n"
31967 " guestfs_part_disk (guestfs_h *g,\n"
31968 "                    const char *device,\n"
31969 "                    const char *parttype);\n"
31970 "\n"
31971 msgstr ""
31972
31973 #. type: textblock
31974 #: ../src/guestfs-actions.pod:5761
31975 msgid ""
31976 "This command is simply a combination of C<guestfs_part_init> followed by "
31977 "C<guestfs_part_add> to create a single primary partition covering the whole "
31978 "disk."
31979 msgstr ""
31980
31981 #. type: textblock
31982 #: ../src/guestfs-actions.pod:5765
31983 msgid ""
31984 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31985 "possible values are described in C<guestfs_part_init>."
31986 msgstr ""
31987
31988 #. type: =head2
31989 #: ../src/guestfs-actions.pod:5772
31990 msgid "guestfs_part_get_bootable"
31991 msgstr ""
31992
31993 #. type: verbatim
31994 #: ../src/guestfs-actions.pod:5774
31995 #, no-wrap
31996 msgid ""
31997 " int\n"
31998 " guestfs_part_get_bootable (guestfs_h *g,\n"
31999 "                            const char *device,\n"
32000 "                            int partnum);\n"
32001 "\n"
32002 msgstr ""
32003
32004 #. type: textblock
32005 #: ../src/guestfs-actions.pod:5782
32006 msgid "See also C<guestfs_part_set_bootable>."
32007 msgstr ""
32008
32009 #. type: =head2
32010 #: ../src/guestfs-actions.pod:5788
32011 msgid "guestfs_part_get_mbr_id"
32012 msgstr ""
32013
32014 #. type: verbatim
32015 #: ../src/guestfs-actions.pod:5790
32016 #, no-wrap
32017 msgid ""
32018 " int\n"
32019 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
32020 "                          const char *device,\n"
32021 "                          int partnum);\n"
32022 "\n"
32023 msgstr ""
32024
32025 #. type: textblock
32026 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5980
32027 msgid ""
32028 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
32029 "undefined results for other partition table types (see "
32030 "C<guestfs_part_get_parttype>)."
32031 msgstr ""
32032
32033 #. type: =head2
32034 #: ../src/guestfs-actions.pod:5806
32035 msgid "guestfs_part_get_parttype"
32036 msgstr ""
32037
32038 #. type: verbatim
32039 #: ../src/guestfs-actions.pod:5808
32040 #, no-wrap
32041 msgid ""
32042 " char *\n"
32043 " guestfs_part_get_parttype (guestfs_h *g,\n"
32044 "                            const char *device);\n"
32045 "\n"
32046 msgstr ""
32047
32048 #. type: textblock
32049 #: ../src/guestfs-actions.pod:5815
32050 msgid ""
32051 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
32052 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
32053 "possible, although unusual.  See C<guestfs_part_init> for a full list."
32054 msgstr ""
32055
32056 #. type: =head2
32057 #: ../src/guestfs-actions.pod:5825
32058 msgid "guestfs_part_init"
32059 msgstr ""
32060
32061 #. type: verbatim
32062 #: ../src/guestfs-actions.pod:5827
32063 #, no-wrap
32064 msgid ""
32065 " int\n"
32066 " guestfs_part_init (guestfs_h *g,\n"
32067 "                    const char *device,\n"
32068 "                    const char *parttype);\n"
32069 "\n"
32070 msgstr ""
32071
32072 #. type: textblock
32073 #: ../src/guestfs-actions.pod:5836
32074 msgid ""
32075 "Initially there are no partitions.  Following this, you should call "
32076 "C<guestfs_part_add> for each partition required."
32077 msgstr ""
32078
32079 #. type: =head2
32080 #: ../src/guestfs-actions.pod:5909
32081 msgid "guestfs_part_list"
32082 msgstr "guestfs_part_list"
32083
32084 #. type: verbatim
32085 #: ../src/guestfs-actions.pod:5911
32086 #, no-wrap
32087 msgid ""
32088 " struct guestfs_partition_list *\n"
32089 " guestfs_part_list (guestfs_h *g,\n"
32090 "                    const char *device);\n"
32091 "\n"
32092 msgstr ""
32093 " struct guestfs_partition_list *\n"
32094 " guestfs_part_list (guestfs_h *g,\n"
32095 "                    const char *device);\n"
32096 "\n"
32097
32098 #. type: textblock
32099 #: ../src/guestfs-actions.pod:5928
32100 msgid ""
32101 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
32102 "the device's sector size, see C<guestfs_blockdev_getss>."
32103 msgstr ""
32104
32105 #. type: textblock
32106 #: ../src/guestfs-actions.pod:5941
32107 msgid ""
32108 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32109 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
32110 "use>."
32111 msgstr ""
32112
32113 #. type: =head2
32114 #: ../src/guestfs-actions.pod:5947
32115 msgid "guestfs_part_set_bootable"
32116 msgstr ""
32117
32118 #. type: verbatim
32119 #: ../src/guestfs-actions.pod:5949
32120 #, no-wrap
32121 msgid ""
32122 " int\n"
32123 " guestfs_part_set_bootable (guestfs_h *g,\n"
32124 "                            const char *device,\n"
32125 "                            int partnum,\n"
32126 "                            int bootable);\n"
32127 "\n"
32128 msgstr ""
32129
32130 #. type: =head2
32131 #: ../src/guestfs-actions.pod:5966
32132 msgid "guestfs_part_set_mbr_id"
32133 msgstr ""
32134
32135 #. type: verbatim
32136 #: ../src/guestfs-actions.pod:5968
32137 #, no-wrap
32138 msgid ""
32139 " int\n"
32140 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32141 "                          const char *device,\n"
32142 "                          int partnum,\n"
32143 "                          int idbyte);\n"
32144 "\n"
32145 msgstr ""
32146
32147 #. type: =head2
32148 #: ../src/guestfs-actions.pod:5988
32149 msgid "guestfs_part_set_name"
32150 msgstr ""
32151
32152 #. type: verbatim
32153 #: ../src/guestfs-actions.pod:5990
32154 #, no-wrap
32155 msgid ""
32156 " int\n"
32157 " guestfs_part_set_name (guestfs_h *g,\n"
32158 "                        const char *device,\n"
32159 "                        int partnum,\n"
32160 "                        const char *name);\n"
32161 "\n"
32162 msgstr ""
32163
32164 #. type: =head2
32165 #: ../src/guestfs-actions.pod:6006
32166 msgid "guestfs_part_to_dev"
32167 msgstr ""
32168
32169 #. type: verbatim
32170 #: ../src/guestfs-actions.pod:6008
32171 #, no-wrap
32172 msgid ""
32173 " char *\n"
32174 " guestfs_part_to_dev (guestfs_h *g,\n"
32175 "                      const char *partition);\n"
32176 "\n"
32177 msgstr ""
32178
32179 #. type: textblock
32180 #: ../src/guestfs-actions.pod:6016 ../src/guestfs-actions.pod:6035
32181 msgid ""
32182 "The named partition must exist, for example as a string returned from "
32183 "C<guestfs_list_partitions>."
32184 msgstr ""
32185
32186 #. type: textblock
32187 #: ../src/guestfs-actions.pod:6019
32188 msgid "See also C<guestfs_part_to_partnum>."
32189 msgstr ""
32190
32191 #. type: =head2
32192 #: ../src/guestfs-actions.pod:6026
32193 msgid "guestfs_part_to_partnum"
32194 msgstr ""
32195
32196 #. type: verbatim
32197 #: ../src/guestfs-actions.pod:6028
32198 #, no-wrap
32199 msgid ""
32200 " int\n"
32201 " guestfs_part_to_partnum (guestfs_h *g,\n"
32202 "                          const char *partition);\n"
32203 "\n"
32204 msgstr ""
32205
32206 #. type: textblock
32207 #: ../src/guestfs-actions.pod:6038
32208 msgid "See also C<guestfs_part_to_dev>."
32209 msgstr ""
32210
32211 #. type: =head2
32212 #: ../src/guestfs-actions.pod:6044
32213 msgid "guestfs_ping_daemon"
32214 msgstr ""
32215
32216 #. type: verbatim
32217 #: ../src/guestfs-actions.pod:6046
32218 #, no-wrap
32219 msgid ""
32220 " int\n"
32221 " guestfs_ping_daemon (guestfs_h *g);\n"
32222 "\n"
32223 msgstr ""
32224
32225 #. type: =head2
32226 #: ../src/guestfs-actions.pod:6058
32227 msgid "guestfs_pread"
32228 msgstr ""
32229
32230 #. type: verbatim
32231 #: ../src/guestfs-actions.pod:6060
32232 #, no-wrap
32233 msgid ""
32234 " char *\n"
32235 " guestfs_pread (guestfs_h *g,\n"
32236 "                const char *path,\n"
32237 "                int count,\n"
32238 "                int64_t offset,\n"
32239 "                size_t *size_r);\n"
32240 "\n"
32241 msgstr ""
32242
32243 #. type: textblock
32244 #: ../src/guestfs-actions.pod:6073
32245 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32246 msgstr ""
32247
32248 #. type: =head2
32249 #: ../src/guestfs-actions.pod:6084
32250 msgid "guestfs_pread_device"
32251 msgstr ""
32252
32253 #. type: verbatim
32254 #: ../src/guestfs-actions.pod:6086
32255 #, no-wrap
32256 msgid ""
32257 " char *\n"
32258 " guestfs_pread_device (guestfs_h *g,\n"
32259 "                       const char *device,\n"
32260 "                       int count,\n"
32261 "                       int64_t offset,\n"
32262 "                       size_t *size_r);\n"
32263 "\n"
32264 msgstr ""
32265
32266 #. type: textblock
32267 #: ../src/guestfs-actions.pod:6099
32268 msgid "See also C<guestfs_pread>."
32269 msgstr ""
32270
32271 #. type: textblock
32272 #: ../src/guestfs-actions.pod:6108
32273 msgid "(Added in 1.5.21)"
32274 msgstr "(Додано у 1.5.21)"
32275
32276 #. type: =head2
32277 #: ../src/guestfs-actions.pod:6110
32278 msgid "guestfs_pvcreate"
32279 msgstr ""
32280
32281 #. type: verbatim
32282 #: ../src/guestfs-actions.pod:6112
32283 #, no-wrap
32284 msgid ""
32285 " int\n"
32286 " guestfs_pvcreate (guestfs_h *g,\n"
32287 "                   const char *device);\n"
32288 "\n"
32289 msgstr ""
32290
32291 #. type: =head2
32292 #: ../src/guestfs-actions.pod:6124
32293 msgid "guestfs_pvremove"
32294 msgstr ""
32295
32296 #. type: verbatim
32297 #: ../src/guestfs-actions.pod:6126
32298 #, no-wrap
32299 msgid ""
32300 " int\n"
32301 " guestfs_pvremove (guestfs_h *g,\n"
32302 "                   const char *device);\n"
32303 "\n"
32304 msgstr ""
32305
32306 #. type: =head2
32307 #: ../src/guestfs-actions.pod:6141
32308 msgid "guestfs_pvresize"
32309 msgstr ""
32310
32311 #. type: verbatim
32312 #: ../src/guestfs-actions.pod:6143
32313 #, no-wrap
32314 msgid ""
32315 " int\n"
32316 " guestfs_pvresize (guestfs_h *g,\n"
32317 "                   const char *device);\n"
32318 "\n"
32319 msgstr ""
32320
32321 #. type: =head2
32322 #: ../src/guestfs-actions.pod:6154
32323 msgid "guestfs_pvresize_size"
32324 msgstr ""
32325
32326 #. type: verbatim
32327 #: ../src/guestfs-actions.pod:6156
32328 #, no-wrap
32329 msgid ""
32330 " int\n"
32331 " guestfs_pvresize_size (guestfs_h *g,\n"
32332 "                        const char *device,\n"
32333 "                        int64_t size);\n"
32334 "\n"
32335 msgstr ""
32336
32337 #. type: textblock
32338 #: ../src/guestfs-actions.pod:6161
32339 msgid ""
32340 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32341 "specify the new size (in bytes) explicitly."
32342 msgstr ""
32343
32344 #. type: =head2
32345 #: ../src/guestfs-actions.pod:6168
32346 msgid "guestfs_pvs"
32347 msgstr ""
32348
32349 #. type: verbatim
32350 #: ../src/guestfs-actions.pod:6170
32351 #, no-wrap
32352 msgid ""
32353 " char **\n"
32354 " guestfs_pvs (guestfs_h *g);\n"
32355 "\n"
32356 msgstr ""
32357
32358 #. type: textblock
32359 #: ../src/guestfs-actions.pod:6179
32360 msgid "See also C<guestfs_pvs_full>."
32361 msgstr ""
32362
32363 #. type: =head2
32364 #: ../src/guestfs-actions.pod:6187
32365 msgid "guestfs_pvs_full"
32366 msgstr ""
32367
32368 #. type: verbatim
32369 #: ../src/guestfs-actions.pod:6189
32370 #, no-wrap
32371 msgid ""
32372 " struct guestfs_lvm_pv_list *\n"
32373 " guestfs_pvs_full (guestfs_h *g);\n"
32374 "\n"
32375 msgstr ""
32376
32377 #. type: textblock
32378 #: ../src/guestfs-actions.pod:6195
32379 msgid ""
32380 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32381 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32382 msgstr ""
32383
32384 #. type: =head2
32385 #: ../src/guestfs-actions.pod:6201
32386 msgid "guestfs_pvuuid"
32387 msgstr ""
32388
32389 #. type: verbatim
32390 #: ../src/guestfs-actions.pod:6203
32391 #, no-wrap
32392 msgid ""
32393 " char *\n"
32394 " guestfs_pvuuid (guestfs_h *g,\n"
32395 "                 const char *device);\n"
32396 "\n"
32397 msgstr ""
32398
32399 #. type: =head2
32400 #: ../src/guestfs-actions.pod:6214
32401 msgid "guestfs_pwrite"
32402 msgstr ""
32403
32404 #. type: verbatim
32405 #: ../src/guestfs-actions.pod:6216
32406 #, no-wrap
32407 msgid ""
32408 " int\n"
32409 " guestfs_pwrite (guestfs_h *g,\n"
32410 "                 const char *path,\n"
32411 "                 const char *content,\n"
32412 "                 size_t content_size,\n"
32413 "                 int64_t offset);\n"
32414 "\n"
32415 msgstr ""
32416
32417 #. type: textblock
32418 #: ../src/guestfs-actions.pod:6232
32419 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32420 msgstr ""
32421
32422 #. type: =head2
32423 #: ../src/guestfs-actions.pod:6241
32424 msgid "guestfs_pwrite_device"
32425 msgstr ""
32426
32427 #. type: verbatim
32428 #: ../src/guestfs-actions.pod:6243
32429 #, no-wrap
32430 msgid ""
32431 " int\n"
32432 " guestfs_pwrite_device (guestfs_h *g,\n"
32433 "                        const char *device,\n"
32434 "                        const char *content,\n"
32435 "                        size_t content_size,\n"
32436 "                        int64_t offset);\n"
32437 "\n"
32438 msgstr ""
32439
32440 #. type: textblock
32441 #: ../src/guestfs-actions.pod:6258
32442 msgid "See also C<guestfs_pwrite>."
32443 msgstr ""
32444
32445 #. type: textblock
32446 #: ../src/guestfs-actions.pod:6265
32447 msgid "(Added in 1.5.20)"
32448 msgstr "(Додано у 1.5.20)"
32449
32450 #. type: =head2
32451 #: ../src/guestfs-actions.pod:6267
32452 msgid "guestfs_read_file"
32453 msgstr ""
32454
32455 #. type: verbatim
32456 #: ../src/guestfs-actions.pod:6269
32457 #, no-wrap
32458 msgid ""
32459 " char *\n"
32460 " guestfs_read_file (guestfs_h *g,\n"
32461 "                    const char *path,\n"
32462 "                    size_t *size_r);\n"
32463 "\n"
32464 msgstr ""
32465
32466 #. type: textblock
32467 #: ../src/guestfs-actions.pod:6277
32468 msgid ""
32469 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
32470 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
32471 "function is limited in the total size of file that can be handled."
32472 msgstr ""
32473
32474 #. type: textblock
32475 #: ../src/guestfs-actions.pod:6289
32476 msgid "(Added in 1.0.63)"
32477 msgstr "(Додано у 1.0.63)"
32478
32479 #. type: =head2
32480 #: ../src/guestfs-actions.pod:6291
32481 msgid "guestfs_read_lines"
32482 msgstr ""
32483
32484 #. type: verbatim
32485 #: ../src/guestfs-actions.pod:6293
32486 #, no-wrap
32487 msgid ""
32488 " char **\n"
32489 " guestfs_read_lines (guestfs_h *g,\n"
32490 "                     const char *path);\n"
32491 "\n"
32492 msgstr ""
32493
32494 #. type: textblock
32495 #: ../src/guestfs-actions.pod:6302
32496 msgid ""
32497 "Note that this function cannot correctly handle binary files (specifically, "
32498 "files containing C<\\0> character which is treated as end of line).  For "
32499 "those you need to use the C<guestfs_read_file> function which has a more "
32500 "complex interface."
32501 msgstr ""
32502
32503 #. type: =head2
32504 #: ../src/guestfs-actions.pod:6313
32505 msgid "guestfs_readdir"
32506 msgstr ""
32507
32508 #. type: verbatim
32509 #: ../src/guestfs-actions.pod:6315
32510 #, no-wrap
32511 msgid ""
32512 " struct guestfs_dirent_list *\n"
32513 " guestfs_readdir (guestfs_h *g,\n"
32514 "                  const char *dir);\n"
32515 "\n"
32516 msgstr ""
32517
32518 #. type: textblock
32519 #: ../src/guestfs-actions.pod:6369
32520 msgid ""
32521 "This function is primarily intended for use by programs.  To get a simple "
32522 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
32523 "consumption, use C<guestfs_ll>."
32524 msgstr ""
32525
32526 #. type: textblock
32527 #: ../src/guestfs-actions.pod:6373
32528 msgid ""
32529 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32530 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
32531 msgstr ""
32532
32533 #. type: =head2
32534 #: ../src/guestfs-actions.pod:6379
32535 msgid "guestfs_readlink"
32536 msgstr ""
32537
32538 #. type: verbatim
32539 #: ../src/guestfs-actions.pod:6381
32540 #, no-wrap
32541 msgid ""
32542 " char *\n"
32543 " guestfs_readlink (guestfs_h *g,\n"
32544 "                   const char *path);\n"
32545 "\n"
32546 msgstr ""
32547
32548 #. type: =head2
32549 #: ../src/guestfs-actions.pod:6392
32550 msgid "guestfs_readlinklist"
32551 msgstr ""
32552
32553 #. type: verbatim
32554 #: ../src/guestfs-actions.pod:6394
32555 #, no-wrap
32556 msgid ""
32557 " char **\n"
32558 " guestfs_readlinklist (guestfs_h *g,\n"
32559 "                       const char *path,\n"
32560 "                       char *const *names);\n"
32561 "\n"
32562 msgstr ""
32563
32564 #. type: =head2
32565 #: ../src/guestfs-actions.pod:6427
32566 msgid "guestfs_realpath"
32567 msgstr ""
32568
32569 #. type: verbatim
32570 #: ../src/guestfs-actions.pod:6429
32571 #, no-wrap
32572 msgid ""
32573 " char *\n"
32574 " guestfs_realpath (guestfs_h *g,\n"
32575 "                   const char *path);\n"
32576 "\n"
32577 msgstr ""
32578
32579 #. type: =head2
32580 #: ../src/guestfs-actions.pod:6441
32581 msgid "guestfs_removexattr"
32582 msgstr ""
32583
32584 #. type: verbatim
32585 #: ../src/guestfs-actions.pod:6443
32586 #, no-wrap
32587 msgid ""
32588 " int\n"
32589 " guestfs_removexattr (guestfs_h *g,\n"
32590 "                      const char *xattr,\n"
32591 "                      const char *path);\n"
32592 "\n"
32593 msgstr ""
32594
32595 #. type: textblock
32596 #: ../src/guestfs-actions.pod:6451
32597 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32598 msgstr ""
32599
32600 #. type: =head2
32601 #: ../src/guestfs-actions.pod:6457
32602 msgid "guestfs_resize2fs"
32603 msgstr ""
32604
32605 #. type: verbatim
32606 #: ../src/guestfs-actions.pod:6459
32607 #, no-wrap
32608 msgid ""
32609 " int\n"
32610 " guestfs_resize2fs (guestfs_h *g,\n"
32611 "                    const char *device);\n"
32612 "\n"
32613 msgstr ""
32614
32615 #. type: textblock
32616 #: ../src/guestfs-actions.pod:6466
32617 msgid ""
32618 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32619 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
32620 "sometimes gives an error about this and sometimes not.  In any case, it is "
32621 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32622 msgstr ""
32623
32624 #. type: =head2
32625 #: ../src/guestfs-actions.pod:6476
32626 msgid "guestfs_resize2fs_M"
32627 msgstr ""
32628
32629 #. type: verbatim
32630 #: ../src/guestfs-actions.pod:6478
32631 #, no-wrap
32632 msgid ""
32633 " int\n"
32634 " guestfs_resize2fs_M (guestfs_h *g,\n"
32635 "                      const char *device);\n"
32636 "\n"
32637 msgstr ""
32638
32639 #. type: textblock
32640 #: ../src/guestfs-actions.pod:6482
32641 msgid ""
32642 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32643 "resized to its minimum size.  This works like the I<-M> option to the "
32644 "C<resize2fs> command."
32645 msgstr ""
32646
32647 #. type: textblock
32648 #: ../src/guestfs-actions.pod:6486
32649 msgid ""
32650 "To get the resulting size of the filesystem you should call "
32651 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
32652 "These two numbers, multiplied together, give the resulting size of the "
32653 "minimal filesystem in bytes."
32654 msgstr ""
32655
32656 #. type: =head2
32657 #: ../src/guestfs-actions.pod:6495
32658 msgid "guestfs_resize2fs_size"
32659 msgstr ""
32660
32661 #. type: verbatim
32662 #: ../src/guestfs-actions.pod:6497
32663 #, no-wrap
32664 msgid ""
32665 " int\n"
32666 " guestfs_resize2fs_size (guestfs_h *g,\n"
32667 "                         const char *device,\n"
32668 "                         int64_t size);\n"
32669 "\n"
32670 msgstr ""
32671
32672 #. type: textblock
32673 #: ../src/guestfs-actions.pod:6502
32674 msgid ""
32675 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32676 "to specify the new size (in bytes) explicitly."
32677 msgstr ""
32678
32679 #. type: =head2
32680 #: ../src/guestfs-actions.pod:6509
32681 msgid "guestfs_rm"
32682 msgstr ""
32683
32684 #. type: verbatim
32685 #: ../src/guestfs-actions.pod:6511
32686 #, no-wrap
32687 msgid ""
32688 " int\n"
32689 " guestfs_rm (guestfs_h *g,\n"
32690 "             const char *path);\n"
32691 "\n"
32692 msgstr ""
32693
32694 #. type: =head2
32695 #: ../src/guestfs-actions.pod:6521
32696 msgid "guestfs_rm_rf"
32697 msgstr ""
32698
32699 #. type: verbatim
32700 #: ../src/guestfs-actions.pod:6523
32701 #, no-wrap
32702 msgid ""
32703 " int\n"
32704 " guestfs_rm_rf (guestfs_h *g,\n"
32705 "                const char *path);\n"
32706 "\n"
32707 msgstr ""
32708
32709 #. type: =head2
32710 #: ../src/guestfs-actions.pod:6535
32711 msgid "guestfs_rmdir"
32712 msgstr ""
32713
32714 #. type: verbatim
32715 #: ../src/guestfs-actions.pod:6537
32716 #, no-wrap
32717 msgid ""
32718 " int\n"
32719 " guestfs_rmdir (guestfs_h *g,\n"
32720 "                const char *path);\n"
32721 "\n"
32722 msgstr ""
32723
32724 #. type: =head2
32725 #: ../src/guestfs-actions.pod:6547
32726 msgid "guestfs_rmmountpoint"
32727 msgstr ""
32728
32729 #. type: verbatim
32730 #: ../src/guestfs-actions.pod:6549
32731 #, no-wrap
32732 msgid ""
32733 " int\n"
32734 " guestfs_rmmountpoint (guestfs_h *g,\n"
32735 "                       const char *exemptpath);\n"
32736 "\n"
32737 msgstr ""
32738
32739 #. type: textblock
32740 #: ../src/guestfs-actions.pod:6553
32741 msgid ""
32742 "This calls removes a mountpoint that was previously created with "
32743 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
32744 msgstr ""
32745
32746 #. type: =head2
32747 #: ../src/guestfs-actions.pod:6561
32748 msgid "guestfs_scrub_device"
32749 msgstr ""
32750
32751 #. type: verbatim
32752 #: ../src/guestfs-actions.pod:6563
32753 #, no-wrap
32754 msgid ""
32755 " int\n"
32756 " guestfs_scrub_device (guestfs_h *g,\n"
32757 "                       const char *device);\n"
32758 "\n"
32759 msgstr ""
32760
32761 #. type: textblock
32762 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6593
32763 #: ../src/guestfs-actions.pod:6612
32764 msgid "(Added in 1.0.52)"
32765 msgstr "(Додано у 1.0.52)"
32766
32767 #. type: =head2
32768 #: ../src/guestfs-actions.pod:6577
32769 msgid "guestfs_scrub_file"
32770 msgstr ""
32771
32772 #. type: verbatim
32773 #: ../src/guestfs-actions.pod:6579
32774 #, no-wrap
32775 msgid ""
32776 " int\n"
32777 " guestfs_scrub_file (guestfs_h *g,\n"
32778 "                     const char *file);\n"
32779 "\n"
32780 msgstr ""
32781
32782 #. type: =head2
32783 #: ../src/guestfs-actions.pod:6595
32784 msgid "guestfs_scrub_freespace"
32785 msgstr ""
32786
32787 #. type: verbatim
32788 #: ../src/guestfs-actions.pod:6597
32789 #, no-wrap
32790 msgid ""
32791 " int\n"
32792 " guestfs_scrub_freespace (guestfs_h *g,\n"
32793 "                          const char *dir);\n"
32794 "\n"
32795 msgstr ""
32796
32797 #. type: textblock
32798 #: ../src/guestfs-actions.pod:6601
32799 msgid ""
32800 "This command creates the directory C<dir> and then fills it with files until "
32801 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32802 "and deletes them.  The intention is to scrub any free space on the partition "
32803 "containing C<dir>."
32804 msgstr ""
32805
32806 #. type: =head2
32807 #: ../src/guestfs-actions.pod:6614
32808 msgid "guestfs_set_append"
32809 msgstr ""
32810
32811 #. type: verbatim
32812 #: ../src/guestfs-actions.pod:6616
32813 #, no-wrap
32814 msgid ""
32815 " int\n"
32816 " guestfs_set_append (guestfs_h *g,\n"
32817 "                     const char *append);\n"
32818 "\n"
32819 msgstr ""
32820
32821 #. type: =head2
32822 #: ../src/guestfs-actions.pod:6633
32823 msgid "guestfs_set_attach_method"
32824 msgstr ""
32825
32826 #. type: verbatim
32827 #: ../src/guestfs-actions.pod:6635
32828 #, no-wrap
32829 msgid ""
32830 " int\n"
32831 " guestfs_set_attach_method (guestfs_h *g,\n"
32832 "                            const char *attachmethod);\n"
32833 "\n"
32834 msgstr ""
32835
32836 #. type: =head2
32837 #: ../src/guestfs-actions.pod:6663
32838 msgid "guestfs_set_autosync"
32839 msgstr ""
32840
32841 #. type: verbatim
32842 #: ../src/guestfs-actions.pod:6665
32843 #, no-wrap
32844 msgid ""
32845 " int\n"
32846 " guestfs_set_autosync (guestfs_h *g,\n"
32847 "                       int autosync);\n"
32848 "\n"
32849 msgstr ""
32850
32851 #. type: =head2
32852 #: ../src/guestfs-actions.pod:6681
32853 msgid "guestfs_set_direct"
32854 msgstr ""
32855
32856 #. type: verbatim
32857 #: ../src/guestfs-actions.pod:6683
32858 #, no-wrap
32859 msgid ""
32860 " int\n"
32861 " guestfs_set_direct (guestfs_h *g,\n"
32862 "                     int direct);\n"
32863 "\n"
32864 msgstr ""
32865
32866 #. type: textblock
32867 #: ../src/guestfs-actions.pod:6691
32868 msgid ""
32869 "One consequence of this is that log messages aren't caught by the library "
32870 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32871 "stdout."
32872 msgstr ""
32873
32874 #. type: =head2
32875 #: ../src/guestfs-actions.pod:6704
32876 msgid "guestfs_set_e2label"
32877 msgstr ""
32878
32879 #. type: verbatim
32880 #: ../src/guestfs-actions.pod:6706
32881 #, no-wrap
32882 msgid ""
32883 " int\n"
32884 " guestfs_set_e2label (guestfs_h *g,\n"
32885 "                      const char *device,\n"
32886 "                      const char *label);\n"
32887 "\n"
32888 msgstr ""
32889
32890 #. type: textblock
32891 #: ../src/guestfs-actions.pod:6715
32892 msgid ""
32893 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32894 "the existing label on a filesystem."
32895 msgstr ""
32896
32897 #. type: =head2
32898 #: ../src/guestfs-actions.pod:6722
32899 msgid "guestfs_set_e2uuid"
32900 msgstr ""
32901
32902 #. type: verbatim
32903 #: ../src/guestfs-actions.pod:6724
32904 #, no-wrap
32905 msgid ""
32906 " int\n"
32907 " guestfs_set_e2uuid (guestfs_h *g,\n"
32908 "                     const char *device,\n"
32909 "                     const char *uuid);\n"
32910 "\n"
32911 msgstr ""
32912
32913 #. type: textblock
32914 #: ../src/guestfs-actions.pod:6734
32915 msgid ""
32916 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32917 "the existing UUID of a filesystem."
32918 msgstr ""
32919
32920 #. type: =head2
32921 #: ../src/guestfs-actions.pod:6741
32922 msgid "guestfs_set_memsize"
32923 msgstr ""
32924
32925 #. type: verbatim
32926 #: ../src/guestfs-actions.pod:6743
32927 #, no-wrap
32928 msgid ""
32929 " int\n"
32930 " guestfs_set_memsize (guestfs_h *g,\n"
32931 "                      int memsize);\n"
32932 "\n"
32933 msgstr ""
32934
32935 #. type: textblock
32936 #: ../src/guestfs-actions.pod:6747
32937 msgid ""
32938 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
32939 "This only has any effect if called before C<guestfs_launch>."
32940 msgstr ""
32941
32942 #. type: =head2
32943 #: ../src/guestfs-actions.pod:6762
32944 msgid "guestfs_set_network"
32945 msgstr ""
32946
32947 #. type: verbatim
32948 #: ../src/guestfs-actions.pod:6764
32949 #, no-wrap
32950 msgid ""
32951 " int\n"
32952 " guestfs_set_network (guestfs_h *g,\n"
32953 "                      int network);\n"
32954 "\n"
32955 msgstr ""
32956
32957 #. type: textblock
32958 #: ../src/guestfs-actions.pod:6774
32959 msgid ""
32960 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32961 "effect."
32962 msgstr ""
32963
32964 #. type: =head2
32965 #: ../src/guestfs-actions.pod:6781
32966 msgid "guestfs_set_path"
32967 msgstr ""
32968
32969 #. type: verbatim
32970 #: ../src/guestfs-actions.pod:6783
32971 #, no-wrap
32972 msgid ""
32973 " int\n"
32974 " guestfs_set_path (guestfs_h *g,\n"
32975 "                   const char *searchpath);\n"
32976 "\n"
32977 msgstr ""
32978
32979 #. type: =head2
32980 #: ../src/guestfs-actions.pod:6798
32981 msgid "guestfs_set_pgroup"
32982 msgstr ""
32983
32984 #. type: verbatim
32985 #: ../src/guestfs-actions.pod:6800
32986 #, no-wrap
32987 msgid ""
32988 " int\n"
32989 " guestfs_set_pgroup (guestfs_h *g,\n"
32990 "                     int pgroup);\n"
32991 "\n"
32992 msgstr ""
32993
32994 #. type: =head2
32995 #: ../src/guestfs-actions.pod:6817
32996 msgid "guestfs_set_qemu"
32997 msgstr ""
32998
32999 #. type: verbatim
33000 #: ../src/guestfs-actions.pod:6819
33001 #, no-wrap
33002 msgid ""
33003 " int\n"
33004 " guestfs_set_qemu (guestfs_h *g,\n"
33005 "                   const char *qemu);\n"
33006 "\n"
33007 msgstr ""
33008
33009 #. type: =head2
33010 #: ../src/guestfs-actions.pod:6845
33011 msgid "guestfs_set_recovery_proc"
33012 msgstr ""
33013
33014 #. type: verbatim
33015 #: ../src/guestfs-actions.pod:6847
33016 #, no-wrap
33017 msgid ""
33018 " int\n"
33019 " guestfs_set_recovery_proc (guestfs_h *g,\n"
33020 "                            int recoveryproc);\n"
33021 "\n"
33022 msgstr ""
33023
33024 #. type: textblock
33025 #: ../src/guestfs-actions.pod:6851
33026 msgid ""
33027 "If this is called with the parameter C<false> then C<guestfs_launch> does "
33028 "not create a recovery process.  The purpose of the recovery process is to "
33029 "stop runaway qemu processes in the case where the main program aborts "
33030 "abruptly."
33031 msgstr ""
33032
33033 #. type: textblock
33034 #: ../src/guestfs-actions.pod:6856
33035 msgid ""
33036 "This only has any effect if called before C<guestfs_launch>, and the default "
33037 "is true."
33038 msgstr ""
33039
33040 #. type: =head2
33041 #: ../src/guestfs-actions.pod:6869
33042 msgid "guestfs_set_selinux"
33043 msgstr ""
33044
33045 #. type: verbatim
33046 #: ../src/guestfs-actions.pod:6871
33047 #, no-wrap
33048 msgid ""
33049 " int\n"
33050 " guestfs_set_selinux (guestfs_h *g,\n"
33051 "                      int selinux);\n"
33052 "\n"
33053 msgstr ""
33054
33055 #. type: =head2
33056 #: ../src/guestfs-actions.pod:6888
33057 msgid "guestfs_set_smp"
33058 msgstr ""
33059
33060 #. type: verbatim
33061 #: ../src/guestfs-actions.pod:6890
33062 #, no-wrap
33063 msgid ""
33064 " int\n"
33065 " guestfs_set_smp (guestfs_h *g,\n"
33066 "                  int smp);\n"
33067 "\n"
33068 msgstr ""
33069
33070 #. type: textblock
33071 #: ../src/guestfs-actions.pod:6898
33072 msgid "This function must be called before C<guestfs_launch>."
33073 msgstr ""
33074
33075 #. type: =head2
33076 #: ../src/guestfs-actions.pod:6904
33077 msgid "guestfs_set_trace"
33078 msgstr ""
33079
33080 #. type: verbatim
33081 #: ../src/guestfs-actions.pod:6906
33082 #, no-wrap
33083 msgid ""
33084 " int\n"
33085 " guestfs_set_trace (guestfs_h *g,\n"
33086 "                    int trace);\n"
33087 "\n"
33088 msgstr ""
33089
33090 #. type: textblock
33091 #: ../src/guestfs-actions.pod:6920
33092 msgid ""
33093 "Trace messages are normally sent to C<stderr>, unless you register a "
33094 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33095 msgstr ""
33096
33097 #. type: =head2
33098 #: ../src/guestfs-actions.pod:6928
33099 msgid "guestfs_set_verbose"
33100 msgstr ""
33101
33102 #. type: verbatim
33103 #: ../src/guestfs-actions.pod:6930
33104 #, no-wrap
33105 msgid ""
33106 " int\n"
33107 " guestfs_set_verbose (guestfs_h *g,\n"
33108 "                      int verbose);\n"
33109 "\n"
33110 msgstr ""
33111
33112 #. type: textblock
33113 #: ../src/guestfs-actions.pod:6939
33114 msgid ""
33115 "Verbose messages are normally sent to C<stderr>, unless you register a "
33116 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33117 msgstr ""
33118
33119 #. type: =head2
33120 #: ../src/guestfs-actions.pod:6947
33121 msgid "guestfs_setcon"
33122 msgstr ""
33123
33124 #. type: verbatim
33125 #: ../src/guestfs-actions.pod:6949
33126 #, no-wrap
33127 msgid ""
33128 " int\n"
33129 " guestfs_setcon (guestfs_h *g,\n"
33130 "                 const char *context);\n"
33131 "\n"
33132 msgstr ""
33133
33134 #. type: =head2
33135 #: ../src/guestfs-actions.pod:6962
33136 msgid "guestfs_setxattr"
33137 msgstr ""
33138
33139 #. type: verbatim
33140 #: ../src/guestfs-actions.pod:6964
33141 #, no-wrap
33142 msgid ""
33143 " int\n"
33144 " guestfs_setxattr (guestfs_h *g,\n"
33145 "                   const char *xattr,\n"
33146 "                   const char *val,\n"
33147 "                   int vallen,\n"
33148 "                   const char *path);\n"
33149 "\n"
33150 msgstr ""
33151
33152 #. type: textblock
33153 #: ../src/guestfs-actions.pod:6975
33154 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33155 msgstr ""
33156
33157 #. type: =head2
33158 #: ../src/guestfs-actions.pod:6981
33159 msgid "guestfs_sfdisk"
33160 msgstr ""
33161
33162 #. type: verbatim
33163 #: ../src/guestfs-actions.pod:6983
33164 #, no-wrap
33165 msgid ""
33166 " int\n"
33167 " guestfs_sfdisk (guestfs_h *g,\n"
33168 "                 const char *device,\n"
33169 "                 int cyls,\n"
33170 "                 int heads,\n"
33171 "                 int sectors,\n"
33172 "                 char *const *lines);\n"
33173 "\n"
33174 msgstr ""
33175
33176 #. type: textblock
33177 #: ../src/guestfs-actions.pod:6991 ../src/guestfs-actions.pod:7032
33178 #: ../src/guestfs-actions.pod:7063
33179 msgid ""
33180 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33181 "call instead."
33182 msgstr ""
33183
33184 #. type: textblock
33185 #: ../src/guestfs-actions.pod:7018
33186 msgid ""
33187 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33188 msgstr ""
33189
33190 #. type: =head2
33191 #: ../src/guestfs-actions.pod:7025
33192 msgid "guestfs_sfdiskM"
33193 msgstr ""
33194
33195 #. type: verbatim
33196 #: ../src/guestfs-actions.pod:7027
33197 #, no-wrap
33198 msgid ""
33199 " int\n"
33200 " guestfs_sfdiskM (guestfs_h *g,\n"
33201 "                  const char *device,\n"
33202 "                  char *const *lines);\n"
33203 "\n"
33204 msgstr ""
33205
33206 #. type: textblock
33207 #: ../src/guestfs-actions.pod:7039
33208 msgid ""
33209 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33210 "partition sizes are specified in megabytes only (rounded to the nearest "
33211 "cylinder) and you don't need to specify the cyls, heads and sectors "
33212 "parameters which were rarely if ever used anyway."
33213 msgstr ""
33214
33215 #. type: textblock
33216 #: ../src/guestfs-actions.pod:7045
33217 msgid ""
33218 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33219 "C<guestfs_part_disk>"
33220 msgstr ""
33221
33222 #. type: =head2
33223 #: ../src/guestfs-actions.pod:7052
33224 msgid "guestfs_sfdisk_N"
33225 msgstr ""
33226
33227 #. type: verbatim
33228 #: ../src/guestfs-actions.pod:7054
33229 #, no-wrap
33230 msgid ""
33231 " int\n"
33232 " guestfs_sfdisk_N (guestfs_h *g,\n"
33233 "                   const char *device,\n"
33234 "                   int partnum,\n"
33235 "                   int cyls,\n"
33236 "                   int heads,\n"
33237 "                   int sectors,\n"
33238 "                   const char *line);\n"
33239 "\n"
33240 msgstr ""
33241
33242 #. type: textblock
33243 #: ../src/guestfs-actions.pod:7073
33244 msgid ""
33245 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
33246 "for the cyls/heads/sectors parameters."
33247 msgstr ""
33248
33249 #. type: textblock
33250 #: ../src/guestfs-actions.pod:7076
33251 msgid "See also: C<guestfs_part_add>"
33252 msgstr ""
33253
33254 #. type: =head2
33255 #: ../src/guestfs-actions.pod:7082
33256 msgid "guestfs_sfdisk_disk_geometry"
33257 msgstr ""
33258
33259 #. type: verbatim
33260 #: ../src/guestfs-actions.pod:7084
33261 #, no-wrap
33262 msgid ""
33263 " char *\n"
33264 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33265 "                               const char *device);\n"
33266 "\n"
33267 msgstr ""
33268
33269 #. type: textblock
33270 #: ../src/guestfs-actions.pod:7088
33271 msgid ""
33272 "This displays the disk geometry of C<device> read from the partition table.  "
33273 "Especially in the case where the underlying block device has been resized, "
33274 "this can be different from the kernel's idea of the geometry (see "
33275 "C<guestfs_sfdisk_kernel_geometry>)."
33276 msgstr ""
33277
33278 #. type: =head2
33279 #: ../src/guestfs-actions.pod:7101
33280 msgid "guestfs_sfdisk_kernel_geometry"
33281 msgstr ""
33282
33283 #. type: verbatim
33284 #: ../src/guestfs-actions.pod:7103
33285 #, no-wrap
33286 msgid ""
33287 " char *\n"
33288 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33289 "                                 const char *device);\n"
33290 "\n"
33291 msgstr ""
33292
33293 #. type: =head2
33294 #: ../src/guestfs-actions.pod:7117
33295 msgid "guestfs_sfdisk_l"
33296 msgstr ""
33297
33298 #. type: verbatim
33299 #: ../src/guestfs-actions.pod:7119
33300 #, no-wrap
33301 msgid ""
33302 " char *\n"
33303 " guestfs_sfdisk_l (guestfs_h *g,\n"
33304 "                   const char *device);\n"
33305 "\n"
33306 msgstr ""
33307
33308 #. type: textblock
33309 #: ../src/guestfs-actions.pod:7123
33310 msgid ""
33311 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33312 "call instead."
33313 msgstr ""
33314
33315 #. type: textblock
33316 #: ../src/guestfs-actions.pod:7134
33317 msgid "See also: C<guestfs_part_list>"
33318 msgstr ""
33319
33320 #. type: =head2
33321 #: ../src/guestfs-actions.pod:7141
33322 msgid "guestfs_sh"
33323 msgstr ""
33324
33325 #. type: verbatim
33326 #: ../src/guestfs-actions.pod:7143
33327 #, no-wrap
33328 msgid ""
33329 " char *\n"
33330 " guestfs_sh (guestfs_h *g,\n"
33331 "             const char *command);\n"
33332 "\n"
33333 msgstr ""
33334
33335 #. type: textblock
33336 #: ../src/guestfs-actions.pod:7150
33337 msgid "This is like C<guestfs_command>, but passes the command to:"
33338 msgstr ""
33339
33340 #. type: textblock
33341 #: ../src/guestfs-actions.pod:7158
33342 msgid "All the provisos about C<guestfs_command> apply to this call."
33343 msgstr ""
33344
33345 #. type: =head2
33346 #: ../src/guestfs-actions.pod:7165
33347 msgid "guestfs_sh_lines"
33348 msgstr ""
33349
33350 #. type: verbatim
33351 #: ../src/guestfs-actions.pod:7167
33352 #, no-wrap
33353 msgid ""
33354 " char **\n"
33355 " guestfs_sh_lines (guestfs_h *g,\n"
33356 "                   const char *command);\n"
33357 "\n"
33358 msgstr ""
33359
33360 #. type: textblock
33361 #: ../src/guestfs-actions.pod:7171
33362 msgid ""
33363 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33364 "lines."
33365 msgstr ""
33366
33367 #. type: textblock
33368 #: ../src/guestfs-actions.pod:7174
33369 msgid "See also: C<guestfs_command_lines>"
33370 msgstr ""
33371
33372 #. type: =head2
33373 #: ../src/guestfs-actions.pod:7182
33374 msgid "guestfs_sleep"
33375 msgstr ""
33376
33377 #. type: verbatim
33378 #: ../src/guestfs-actions.pod:7184
33379 #, no-wrap
33380 msgid ""
33381 " int\n"
33382 " guestfs_sleep (guestfs_h *g,\n"
33383 "                int secs);\n"
33384 "\n"
33385 msgstr ""
33386
33387 #. type: textblock
33388 #: ../src/guestfs-actions.pod:7192
33389 msgid "(Added in 1.0.41)"
33390 msgstr "(Додано у 1.0.41)"
33391
33392 #. type: =head2
33393 #: ../src/guestfs-actions.pod:7194 ../src/guestfs-structs.pod:109
33394 msgid "guestfs_stat"
33395 msgstr ""
33396
33397 #. type: verbatim
33398 #: ../src/guestfs-actions.pod:7196
33399 #, no-wrap
33400 msgid ""
33401 " struct guestfs_stat *\n"
33402 " guestfs_stat (guestfs_h *g,\n"
33403 "               const char *path);\n"
33404 "\n"
33405 msgstr ""
33406
33407 #. type: =head2
33408 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-structs.pod:135
33409 msgid "guestfs_statvfs"
33410 msgstr ""
33411
33412 #. type: verbatim
33413 #: ../src/guestfs-actions.pod:7212
33414 #, no-wrap
33415 msgid ""
33416 " struct guestfs_statvfs *\n"
33417 " guestfs_statvfs (guestfs_h *g,\n"
33418 "                  const char *path);\n"
33419 "\n"
33420 msgstr ""
33421
33422 #. type: textblock
33423 #: ../src/guestfs-actions.pod:7222
33424 msgid ""
33425 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33426 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
33427 msgstr ""
33428
33429 #. type: =head2
33430 #: ../src/guestfs-actions.pod:7228
33431 msgid "guestfs_strings"
33432 msgstr ""
33433
33434 #. type: verbatim
33435 #: ../src/guestfs-actions.pod:7230
33436 #, no-wrap
33437 msgid ""
33438 " char **\n"
33439 " guestfs_strings (guestfs_h *g,\n"
33440 "                  const char *path);\n"
33441 "\n"
33442 msgstr ""
33443
33444 #. type: =head2
33445 #: ../src/guestfs-actions.pod:7246
33446 msgid "guestfs_strings_e"
33447 msgstr ""
33448
33449 #. type: verbatim
33450 #: ../src/guestfs-actions.pod:7248
33451 #, no-wrap
33452 msgid ""
33453 " char **\n"
33454 " guestfs_strings_e (guestfs_h *g,\n"
33455 "                    const char *encoding,\n"
33456 "                    const char *path);\n"
33457 "\n"
33458 msgstr ""
33459
33460 #. type: textblock
33461 #: ../src/guestfs-actions.pod:7253
33462 msgid ""
33463 "This is like the C<guestfs_strings> command, but allows you to specify the "
33464 "encoding of strings that are looked for in the source file C<path>."
33465 msgstr ""
33466
33467 #. type: textblock
33468 #: ../src/guestfs-actions.pod:7263
33469 msgid ""
33470 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33471 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33472 msgstr ""
33473
33474 #. type: =head2
33475 #: ../src/guestfs-actions.pod:7301
33476 msgid "guestfs_swapoff_device"
33477 msgstr ""
33478
33479 #. type: verbatim
33480 #: ../src/guestfs-actions.pod:7303
33481 #, no-wrap
33482 msgid ""
33483 " int\n"
33484 " guestfs_swapoff_device (guestfs_h *g,\n"
33485 "                         const char *device);\n"
33486 "\n"
33487 msgstr ""
33488
33489 #. type: textblock
33490 #: ../src/guestfs-actions.pod:7307
33491 msgid ""
33492 "This command disables the libguestfs appliance swap device or partition "
33493 "named C<device>.  See C<guestfs_swapon_device>."
33494 msgstr ""
33495
33496 #. type: =head2
33497 #: ../src/guestfs-actions.pod:7315
33498 msgid "guestfs_swapoff_file"
33499 msgstr ""
33500
33501 #. type: verbatim
33502 #: ../src/guestfs-actions.pod:7317
33503 #, no-wrap
33504 msgid ""
33505 " int\n"
33506 " guestfs_swapoff_file (guestfs_h *g,\n"
33507 "                       const char *file);\n"
33508 "\n"
33509 msgstr ""
33510
33511 #. type: =head2
33512 #: ../src/guestfs-actions.pod:7327
33513 msgid "guestfs_swapoff_label"
33514 msgstr ""
33515
33516 #. type: verbatim
33517 #: ../src/guestfs-actions.pod:7329
33518 #, no-wrap
33519 msgid ""
33520 " int\n"
33521 " guestfs_swapoff_label (guestfs_h *g,\n"
33522 "                        const char *label);\n"
33523 "\n"
33524 msgstr ""
33525
33526 #. type: =head2
33527 #: ../src/guestfs-actions.pod:7340
33528 msgid "guestfs_swapoff_uuid"
33529 msgstr ""
33530
33531 #. type: verbatim
33532 #: ../src/guestfs-actions.pod:7342
33533 #, no-wrap
33534 msgid ""
33535 " int\n"
33536 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33537 "                       const char *uuid);\n"
33538 "\n"
33539 msgstr ""
33540
33541 #. type: =head2
33542 #: ../src/guestfs-actions.pod:7353
33543 msgid "guestfs_swapon_device"
33544 msgstr ""
33545
33546 #. type: verbatim
33547 #: ../src/guestfs-actions.pod:7355
33548 #, no-wrap
33549 msgid ""
33550 " int\n"
33551 " guestfs_swapon_device (guestfs_h *g,\n"
33552 "                        const char *device);\n"
33553 "\n"
33554 msgstr ""
33555
33556 #. type: textblock
33557 #: ../src/guestfs-actions.pod:7359
33558 msgid ""
33559 "This command enables the libguestfs appliance to use the swap device or "
33560 "partition named C<device>.  The increased memory is made available for all "
33561 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33562 msgstr ""
33563
33564 #. type: =head2
33565 #: ../src/guestfs-actions.pod:7375
33566 msgid "guestfs_swapon_file"
33567 msgstr ""
33568
33569 #. type: verbatim
33570 #: ../src/guestfs-actions.pod:7377
33571 #, no-wrap
33572 msgid ""
33573 " int\n"
33574 " guestfs_swapon_file (guestfs_h *g,\n"
33575 "                      const char *file);\n"
33576 "\n"
33577 msgstr ""
33578
33579 #. type: textblock
33580 #: ../src/guestfs-actions.pod:7381
33581 msgid ""
33582 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
33583 "notes."
33584 msgstr ""
33585
33586 #. type: =head2
33587 #: ../src/guestfs-actions.pod:7388
33588 msgid "guestfs_swapon_label"
33589 msgstr ""
33590
33591 #. type: verbatim
33592 #: ../src/guestfs-actions.pod:7390
33593 #, no-wrap
33594 msgid ""
33595 " int\n"
33596 " guestfs_swapon_label (guestfs_h *g,\n"
33597 "                       const char *label);\n"
33598 "\n"
33599 msgstr ""
33600
33601 #. type: textblock
33602 #: ../src/guestfs-actions.pod:7394
33603 msgid ""
33604 "This command enables swap to a labeled swap partition.  See "
33605 "C<guestfs_swapon_device> for other notes."
33606 msgstr ""
33607
33608 #. type: =head2
33609 #: ../src/guestfs-actions.pod:7401
33610 msgid "guestfs_swapon_uuid"
33611 msgstr ""
33612
33613 #. type: verbatim
33614 #: ../src/guestfs-actions.pod:7403
33615 #, no-wrap
33616 msgid ""
33617 " int\n"
33618 " guestfs_swapon_uuid (guestfs_h *g,\n"
33619 "                      const char *uuid);\n"
33620 "\n"
33621 msgstr ""
33622
33623 #. type: textblock
33624 #: ../src/guestfs-actions.pod:7407
33625 msgid ""
33626 "This command enables swap to a swap partition with the given UUID.  See "
33627 "C<guestfs_swapon_device> for other notes."
33628 msgstr ""
33629
33630 #. type: =head2
33631 #: ../src/guestfs-actions.pod:7414
33632 msgid "guestfs_sync"
33633 msgstr ""
33634
33635 #. type: verbatim
33636 #: ../src/guestfs-actions.pod:7416
33637 #, no-wrap
33638 msgid ""
33639 " int\n"
33640 " guestfs_sync (guestfs_h *g);\n"
33641 "\n"
33642 msgstr ""
33643
33644 #. type: =head2
33645 #: ../src/guestfs-actions.pod:7429
33646 msgid "guestfs_tail"
33647 msgstr ""
33648
33649 #. type: verbatim
33650 #: ../src/guestfs-actions.pod:7431
33651 #, no-wrap
33652 msgid ""
33653 " char **\n"
33654 " guestfs_tail (guestfs_h *g,\n"
33655 "               const char *path);\n"
33656 "\n"
33657 msgstr ""
33658
33659 #. type: =head2
33660 #: ../src/guestfs-actions.pod:7447
33661 msgid "guestfs_tail_n"
33662 msgstr ""
33663
33664 #. type: verbatim
33665 #: ../src/guestfs-actions.pod:7449
33666 #, no-wrap
33667 msgid ""
33668 " char **\n"
33669 " guestfs_tail_n (guestfs_h *g,\n"
33670 "                 int nrlines,\n"
33671 "                 const char *path);\n"
33672 "\n"
33673 msgstr ""
33674
33675 #. type: =head2
33676 #: ../src/guestfs-actions.pod:7471
33677 msgid "guestfs_tar_in"
33678 msgstr ""
33679
33680 #. type: verbatim
33681 #: ../src/guestfs-actions.pod:7473
33682 #, no-wrap
33683 msgid ""
33684 " int\n"
33685 " guestfs_tar_in (guestfs_h *g,\n"
33686 "                 const char *tarfile,\n"
33687 "                 const char *directory);\n"
33688 "\n"
33689 msgstr ""
33690
33691 #. type: textblock
33692 #: ../src/guestfs-actions.pod:7481
33693 msgid ""
33694 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33695 msgstr ""
33696
33697 #. type: textblock
33698 #: ../src/guestfs-actions.pod:7486 ../src/guestfs-actions.pod:7503
33699 #: ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7535
33700 msgid "(Added in 1.0.3)"
33701 msgstr "(Додано у 1.0.3)"
33702
33703 #. type: =head2
33704 #: ../src/guestfs-actions.pod:7488
33705 msgid "guestfs_tar_out"
33706 msgstr ""
33707
33708 #. type: verbatim
33709 #: ../src/guestfs-actions.pod:7490
33710 #, no-wrap
33711 msgid ""
33712 " int\n"
33713 " guestfs_tar_out (guestfs_h *g,\n"
33714 "                  const char *directory,\n"
33715 "                  const char *tarfile);\n"
33716 "\n"
33717 msgstr ""
33718
33719 #. type: textblock
33720 #: ../src/guestfs-actions.pod:7498
33721 msgid ""
33722 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33723 "C<guestfs_txz_out>."
33724 msgstr ""
33725
33726 #. type: =head2
33727 #: ../src/guestfs-actions.pod:7505
33728 msgid "guestfs_tgz_in"
33729 msgstr ""
33730
33731 #. type: verbatim
33732 #: ../src/guestfs-actions.pod:7507
33733 #, no-wrap
33734 msgid ""
33735 " int\n"
33736 " guestfs_tgz_in (guestfs_h *g,\n"
33737 "                 const char *tarball,\n"
33738 "                 const char *directory);\n"
33739 "\n"
33740 msgstr ""
33741
33742 #. type: textblock
33743 #: ../src/guestfs-actions.pod:7515
33744 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33745 msgstr ""
33746
33747 #. type: =head2
33748 #: ../src/guestfs-actions.pod:7521
33749 msgid "guestfs_tgz_out"
33750 msgstr ""
33751
33752 #. type: verbatim
33753 #: ../src/guestfs-actions.pod:7523
33754 #, no-wrap
33755 msgid ""
33756 " int\n"
33757 " guestfs_tgz_out (guestfs_h *g,\n"
33758 "                  const char *directory,\n"
33759 "                  const char *tarball);\n"
33760 "\n"
33761 msgstr ""
33762
33763 #. type: textblock
33764 #: ../src/guestfs-actions.pod:7531
33765 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33766 msgstr ""
33767
33768 #. type: =head2
33769 #: ../src/guestfs-actions.pod:7537
33770 msgid "guestfs_touch"
33771 msgstr ""
33772
33773 #. type: verbatim
33774 #: ../src/guestfs-actions.pod:7539
33775 #, no-wrap
33776 msgid ""
33777 " int\n"
33778 " guestfs_touch (guestfs_h *g,\n"
33779 "                const char *path);\n"
33780 "\n"
33781 msgstr ""
33782
33783 #. type: =head2
33784 #: ../src/guestfs-actions.pod:7554
33785 msgid "guestfs_truncate"
33786 msgstr ""
33787
33788 #. type: verbatim
33789 #: ../src/guestfs-actions.pod:7556
33790 #, no-wrap
33791 msgid ""
33792 " int\n"
33793 " guestfs_truncate (guestfs_h *g,\n"
33794 "                   const char *path);\n"
33795 "\n"
33796 msgstr ""
33797
33798 #. type: =head2
33799 #: ../src/guestfs-actions.pod:7567
33800 msgid "guestfs_truncate_size"
33801 msgstr ""
33802
33803 #. type: verbatim
33804 #: ../src/guestfs-actions.pod:7569
33805 #, no-wrap
33806 msgid ""
33807 " int\n"
33808 " guestfs_truncate_size (guestfs_h *g,\n"
33809 "                        const char *path,\n"
33810 "                        int64_t size);\n"
33811 "\n"
33812 msgstr ""
33813
33814 #. type: textblock
33815 #: ../src/guestfs-actions.pod:7577
33816 msgid ""
33817 "If the current file size is less than C<size> then the file is extended to "
33818 "the required size with zero bytes.  This creates a sparse file (ie. disk "
33819 "blocks are not allocated for the file until you write to it).  To create a "
33820 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33821 msgstr ""
33822
33823 #. type: =head2
33824 #: ../src/guestfs-actions.pod:7587
33825 msgid "guestfs_tune2fs_l"
33826 msgstr ""
33827
33828 #. type: verbatim
33829 #: ../src/guestfs-actions.pod:7589
33830 #, no-wrap
33831 msgid ""
33832 " char **\n"
33833 " guestfs_tune2fs_l (guestfs_h *g,\n"
33834 "                    const char *device);\n"
33835 "\n"
33836 msgstr ""
33837
33838 #. type: =head2
33839 #: ../src/guestfs-actions.pod:7609
33840 msgid "guestfs_txz_in"
33841 msgstr ""
33842
33843 #. type: verbatim
33844 #: ../src/guestfs-actions.pod:7611
33845 #, no-wrap
33846 msgid ""
33847 " int\n"
33848 " guestfs_txz_in (guestfs_h *g,\n"
33849 "                 const char *tarball,\n"
33850 "                 const char *directory);\n"
33851 "\n"
33852 msgstr ""
33853
33854 #. type: =head2
33855 #: ../src/guestfs-actions.pod:7623
33856 msgid "guestfs_txz_out"
33857 msgstr ""
33858
33859 #. type: verbatim
33860 #: ../src/guestfs-actions.pod:7625
33861 #, no-wrap
33862 msgid ""
33863 " int\n"
33864 " guestfs_txz_out (guestfs_h *g,\n"
33865 "                  const char *directory,\n"
33866 "                  const char *tarball);\n"
33867 "\n"
33868 msgstr ""
33869
33870 #. type: =head2
33871 #: ../src/guestfs-actions.pod:7637
33872 msgid "guestfs_umask"
33873 msgstr ""
33874
33875 #. type: verbatim
33876 #: ../src/guestfs-actions.pod:7639
33877 #, no-wrap
33878 msgid ""
33879 " int\n"
33880 " guestfs_umask (guestfs_h *g,\n"
33881 "                int mask);\n"
33882 "\n"
33883 msgstr ""
33884
33885 #. type: textblock
33886 #: ../src/guestfs-actions.pod:7655
33887 msgid ""
33888 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33889 "C<guestfs_mkdir>."
33890 msgstr ""
33891
33892 #. type: =head2
33893 #: ../src/guestfs-actions.pod:7664
33894 msgid "guestfs_umount"
33895 msgstr ""
33896
33897 #. type: verbatim
33898 #: ../src/guestfs-actions.pod:7666
33899 #, no-wrap
33900 msgid ""
33901 " int\n"
33902 " guestfs_umount (guestfs_h *g,\n"
33903 "                 const char *pathordevice);\n"
33904 "\n"
33905 msgstr ""
33906
33907 #. type: =head2
33908 #: ../src/guestfs-actions.pod:7678
33909 msgid "guestfs_umount_all"
33910 msgstr ""
33911
33912 #. type: verbatim
33913 #: ../src/guestfs-actions.pod:7680
33914 #, no-wrap
33915 msgid ""
33916 " int\n"
33917 " guestfs_umount_all (guestfs_h *g);\n"
33918 "\n"
33919 msgstr ""
33920
33921 #. type: =head2
33922 #: ../src/guestfs-actions.pod:7691
33923 msgid "guestfs_upload"
33924 msgstr ""
33925
33926 #. type: verbatim
33927 #: ../src/guestfs-actions.pod:7693
33928 #, no-wrap
33929 msgid ""
33930 " int\n"
33931 " guestfs_upload (guestfs_h *g,\n"
33932 "                 const char *filename,\n"
33933 "                 const char *remotefilename);\n"
33934 "\n"
33935 msgstr ""
33936
33937 #. type: textblock
33938 #: ../src/guestfs-actions.pod:7703
33939 msgid "See also C<guestfs_download>."
33940 msgstr ""
33941
33942 #. type: =head2
33943 #: ../src/guestfs-actions.pod:7714
33944 msgid "guestfs_upload_offset"
33945 msgstr ""
33946
33947 #. type: verbatim
33948 #: ../src/guestfs-actions.pod:7716
33949 #, no-wrap
33950 msgid ""
33951 " int\n"
33952 " guestfs_upload_offset (guestfs_h *g,\n"
33953 "                        const char *filename,\n"
33954 "                        const char *remotefilename,\n"
33955 "                        int64_t offset);\n"
33956 "\n"
33957 msgstr ""
33958
33959 #. type: textblock
33960 #: ../src/guestfs-actions.pod:7732
33961 msgid ""
33962 "Note that there is no limit on the amount of data that can be uploaded with "
33963 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33964 "full amount unless an error occurs."
33965 msgstr ""
33966
33967 #. type: textblock
33968 #: ../src/guestfs-actions.pod:7737
33969 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33970 msgstr ""
33971
33972 #. type: =head2
33973 #: ../src/guestfs-actions.pod:7748
33974 msgid "guestfs_utimens"
33975 msgstr ""
33976
33977 #. type: verbatim
33978 #: ../src/guestfs-actions.pod:7750
33979 #, no-wrap
33980 msgid ""
33981 " int\n"
33982 " guestfs_utimens (guestfs_h *g,\n"
33983 "                  const char *path,\n"
33984 "                  int64_t atsecs,\n"
33985 "                  int64_t atnsecs,\n"
33986 "                  int64_t mtsecs,\n"
33987 "                  int64_t mtnsecs);\n"
33988 "\n"
33989 msgstr ""
33990
33991 #. type: =head2
33992 #: ../src/guestfs-actions.pod:7779 ../src/guestfs-structs.pod:175
33993 msgid "guestfs_version"
33994 msgstr ""
33995
33996 #. type: verbatim
33997 #: ../src/guestfs-actions.pod:7781
33998 #, no-wrap
33999 msgid ""
34000 " struct guestfs_version *\n"
34001 " guestfs_version (guestfs_h *g);\n"
34002 "\n"
34003 msgstr ""
34004
34005 #. type: textblock
34006 #: ../src/guestfs-actions.pod:7809
34007 msgid ""
34008 "I<Note:> Don't use this call to test for availability of features.  In "
34009 "enterprise distributions we backport features from later versions into "
34010 "earlier versions, making this an unreliable way to test for features.  Use "
34011 "C<guestfs_available> instead."
34012 msgstr ""
34013
34014 #. type: textblock
34015 #: ../src/guestfs-actions.pod:7815
34016 msgid ""
34017 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
34018 "error.  I<The caller must call C<guestfs_free_version> after use>."
34019 msgstr ""
34020
34021 #. type: textblock
34022 #: ../src/guestfs-actions.pod:7819
34023 msgid "(Added in 1.0.58)"
34024 msgstr "(Додано у 1.0.58)"
34025
34026 #. type: =head2
34027 #: ../src/guestfs-actions.pod:7821
34028 msgid "guestfs_vfs_label"
34029 msgstr ""
34030
34031 #. type: verbatim
34032 #: ../src/guestfs-actions.pod:7823
34033 #, no-wrap
34034 msgid ""
34035 " char *\n"
34036 " guestfs_vfs_label (guestfs_h *g,\n"
34037 "                    const char *device);\n"
34038 "\n"
34039 msgstr ""
34040
34041 #. type: textblock
34042 #: ../src/guestfs-actions.pod:7832
34043 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
34044 msgstr ""
34045
34046 #. type: textblock
34047 #: ../src/guestfs-actions.pod:7837 ../src/guestfs-actions.pod:7874
34048 msgid "(Added in 1.3.18)"
34049 msgstr "(Додано у 1.3.18)"
34050
34051 #. type: =head2
34052 #: ../src/guestfs-actions.pod:7839
34053 msgid "guestfs_vfs_type"
34054 msgstr ""
34055
34056 #. type: verbatim
34057 #: ../src/guestfs-actions.pod:7841
34058 #, no-wrap
34059 msgid ""
34060 " char *\n"
34061 " guestfs_vfs_type (guestfs_h *g,\n"
34062 "                   const char *device);\n"
34063 "\n"
34064 msgstr ""
34065
34066 #. type: =head2
34067 #: ../src/guestfs-actions.pod:7858
34068 msgid "guestfs_vfs_uuid"
34069 msgstr ""
34070
34071 #. type: verbatim
34072 #: ../src/guestfs-actions.pod:7860
34073 #, no-wrap
34074 msgid ""
34075 " char *\n"
34076 " guestfs_vfs_uuid (guestfs_h *g,\n"
34077 "                   const char *device);\n"
34078 "\n"
34079 msgstr ""
34080
34081 #. type: textblock
34082 #: ../src/guestfs-actions.pod:7869
34083 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
34084 msgstr ""
34085
34086 #. type: =head2
34087 #: ../src/guestfs-actions.pod:7876
34088 msgid "guestfs_vg_activate"
34089 msgstr ""
34090
34091 #. type: verbatim
34092 #: ../src/guestfs-actions.pod:7878
34093 #, no-wrap
34094 msgid ""
34095 " int\n"
34096 " guestfs_vg_activate (guestfs_h *g,\n"
34097 "                      int activate,\n"
34098 "                      char *const *volgroups);\n"
34099 "\n"
34100 msgstr ""
34101
34102 #. type: =head2
34103 #: ../src/guestfs-actions.pod:7895
34104 msgid "guestfs_vg_activate_all"
34105 msgstr ""
34106
34107 #. type: verbatim
34108 #: ../src/guestfs-actions.pod:7897
34109 #, no-wrap
34110 msgid ""
34111 " int\n"
34112 " guestfs_vg_activate_all (guestfs_h *g,\n"
34113 "                          int activate);\n"
34114 "\n"
34115 msgstr ""
34116
34117 #. type: =head2
34118 #: ../src/guestfs-actions.pod:7910
34119 msgid "guestfs_vgcreate"
34120 msgstr ""
34121
34122 #. type: verbatim
34123 #: ../src/guestfs-actions.pod:7912
34124 #, no-wrap
34125 msgid ""
34126 " int\n"
34127 " guestfs_vgcreate (guestfs_h *g,\n"
34128 "                   const char *volgroup,\n"
34129 "                   char *const *physvols);\n"
34130 "\n"
34131 msgstr ""
34132
34133 #. type: =head2
34134 #: ../src/guestfs-actions.pod:7924
34135 msgid "guestfs_vglvuuids"
34136 msgstr ""
34137
34138 #. type: verbatim
34139 #: ../src/guestfs-actions.pod:7926
34140 #, no-wrap
34141 msgid ""
34142 " char **\n"
34143 " guestfs_vglvuuids (guestfs_h *g,\n"
34144 "                    const char *vgname);\n"
34145 "\n"
34146 msgstr ""
34147
34148 #. type: textblock
34149 #: ../src/guestfs-actions.pod:7933
34150 msgid ""
34151 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34152 "associate logical volumes and volume groups."
34153 msgstr ""
34154
34155 #. type: textblock
34156 #: ../src/guestfs-actions.pod:7936
34157 msgid "See also C<guestfs_vgpvuuids>."
34158 msgstr ""
34159
34160 #. type: =head2
34161 #: ../src/guestfs-actions.pod:7944
34162 msgid "guestfs_vgpvuuids"
34163 msgstr ""
34164
34165 #. type: verbatim
34166 #: ../src/guestfs-actions.pod:7946
34167 #, no-wrap
34168 msgid ""
34169 " char **\n"
34170 " guestfs_vgpvuuids (guestfs_h *g,\n"
34171 "                    const char *vgname);\n"
34172 "\n"
34173 msgstr ""
34174
34175 #. type: textblock
34176 #: ../src/guestfs-actions.pod:7953
34177 msgid ""
34178 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34179 "associate physical volumes and volume groups."
34180 msgstr ""
34181
34182 #. type: textblock
34183 #: ../src/guestfs-actions.pod:7956
34184 msgid "See also C<guestfs_vglvuuids>."
34185 msgstr ""
34186
34187 #. type: =head2
34188 #: ../src/guestfs-actions.pod:7964
34189 msgid "guestfs_vgremove"
34190 msgstr ""
34191
34192 #. type: verbatim
34193 #: ../src/guestfs-actions.pod:7966
34194 #, no-wrap
34195 msgid ""
34196 " int\n"
34197 " guestfs_vgremove (guestfs_h *g,\n"
34198 "                   const char *vgname);\n"
34199 "\n"
34200 msgstr ""
34201
34202 #. type: =head2
34203 #: ../src/guestfs-actions.pod:7979
34204 msgid "guestfs_vgrename"
34205 msgstr ""
34206
34207 #. type: verbatim
34208 #: ../src/guestfs-actions.pod:7981
34209 #, no-wrap
34210 msgid ""
34211 " int\n"
34212 " guestfs_vgrename (guestfs_h *g,\n"
34213 "                   const char *volgroup,\n"
34214 "                   const char *newvolgroup);\n"
34215 "\n"
34216 msgstr ""
34217
34218 #. type: =head2
34219 #: ../src/guestfs-actions.pod:7992
34220 msgid "guestfs_vgs"
34221 msgstr ""
34222
34223 #. type: verbatim
34224 #: ../src/guestfs-actions.pod:7994
34225 #, no-wrap
34226 msgid ""
34227 " char **\n"
34228 " guestfs_vgs (guestfs_h *g);\n"
34229 "\n"
34230 msgstr ""
34231
34232 #. type: textblock
34233 #: ../src/guestfs-actions.pod:8003
34234 msgid "See also C<guestfs_vgs_full>."
34235 msgstr ""
34236
34237 #. type: =head2
34238 #: ../src/guestfs-actions.pod:8011
34239 msgid "guestfs_vgs_full"
34240 msgstr ""
34241
34242 #. type: verbatim
34243 #: ../src/guestfs-actions.pod:8013
34244 #, no-wrap
34245 msgid ""
34246 " struct guestfs_lvm_vg_list *\n"
34247 " guestfs_vgs_full (guestfs_h *g);\n"
34248 "\n"
34249 msgstr ""
34250
34251 #. type: textblock
34252 #: ../src/guestfs-actions.pod:8019
34253 msgid ""
34254 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34255 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
34256 msgstr ""
34257
34258 #. type: =head2
34259 #: ../src/guestfs-actions.pod:8025
34260 msgid "guestfs_vgscan"
34261 msgstr ""
34262
34263 #. type: verbatim
34264 #: ../src/guestfs-actions.pod:8027
34265 #, no-wrap
34266 msgid ""
34267 " int\n"
34268 " guestfs_vgscan (guestfs_h *g);\n"
34269 "\n"
34270 msgstr ""
34271
34272 #. type: =head2
34273 #: ../src/guestfs-actions.pod:8037
34274 msgid "guestfs_vguuid"
34275 msgstr ""
34276
34277 #. type: verbatim
34278 #: ../src/guestfs-actions.pod:8039
34279 #, no-wrap
34280 msgid ""
34281 " char *\n"
34282 " guestfs_vguuid (guestfs_h *g,\n"
34283 "                 const char *vgname);\n"
34284 "\n"
34285 msgstr ""
34286
34287 #. type: =head2
34288 #: ../src/guestfs-actions.pod:8050
34289 msgid "guestfs_wait_ready"
34290 msgstr ""
34291
34292 #. type: verbatim
34293 #: ../src/guestfs-actions.pod:8052
34294 #, no-wrap
34295 msgid ""
34296 " int\n"
34297 " guestfs_wait_ready (guestfs_h *g);\n"
34298 "\n"
34299 msgstr ""
34300
34301 #. type: textblock
34302 #: ../src/guestfs-actions.pod:8055
34303 msgid ""
34304 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34305 "instead."
34306 msgstr ""
34307
34308 #. type: textblock
34309 #: ../src/guestfs-actions.pod:8062
34310 msgid "This function is a no op."
34311 msgstr ""
34312
34313 #. type: textblock
34314 #: ../src/guestfs-actions.pod:8064
34315 msgid ""
34316 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
34317 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
34318 "is no longer necessary because C<guestfs_launch> now does the waiting."
34319 msgstr ""
34320
34321 #. type: textblock
34322 #: ../src/guestfs-actions.pod:8069
34323 msgid ""
34324 "If you see any calls to this function in code then you can just remove them, "
34325 "unless you want to retain compatibility with older versions of the API."
34326 msgstr ""
34327
34328 #. type: =head2
34329 #: ../src/guestfs-actions.pod:8077
34330 msgid "guestfs_wc_c"
34331 msgstr ""
34332
34333 #. type: verbatim
34334 #: ../src/guestfs-actions.pod:8079
34335 #, no-wrap
34336 msgid ""
34337 " int\n"
34338 " guestfs_wc_c (guestfs_h *g,\n"
34339 "               const char *path);\n"
34340 "\n"
34341 msgstr ""
34342
34343 #. type: =head2
34344 #: ../src/guestfs-actions.pod:8090
34345 msgid "guestfs_wc_l"
34346 msgstr ""
34347
34348 #. type: verbatim
34349 #: ../src/guestfs-actions.pod:8092
34350 #, no-wrap
34351 msgid ""
34352 " int\n"
34353 " guestfs_wc_l (guestfs_h *g,\n"
34354 "               const char *path);\n"
34355 "\n"
34356 msgstr ""
34357
34358 #. type: =head2
34359 #: ../src/guestfs-actions.pod:8103
34360 msgid "guestfs_wc_w"
34361 msgstr ""
34362
34363 #. type: verbatim
34364 #: ../src/guestfs-actions.pod:8105
34365 #, no-wrap
34366 msgid ""
34367 " int\n"
34368 " guestfs_wc_w (guestfs_h *g,\n"
34369 "               const char *path);\n"
34370 "\n"
34371 msgstr ""
34372
34373 #. type: =head2
34374 #: ../src/guestfs-actions.pod:8116
34375 msgid "guestfs_write"
34376 msgstr ""
34377
34378 #. type: verbatim
34379 #: ../src/guestfs-actions.pod:8118
34380 #, no-wrap
34381 msgid ""
34382 " int\n"
34383 " guestfs_write (guestfs_h *g,\n"
34384 "                const char *path,\n"
34385 "                const char *content,\n"
34386 "                size_t content_size);\n"
34387 "\n"
34388 msgstr ""
34389
34390 #. type: textblock
34391 #: ../src/guestfs-actions.pod:8127
34392 msgid "See also C<guestfs_write_append>."
34393 msgstr ""
34394
34395 #. type: =head2
34396 #: ../src/guestfs-actions.pod:8136
34397 msgid "guestfs_write_append"
34398 msgstr ""
34399
34400 #. type: verbatim
34401 #: ../src/guestfs-actions.pod:8138
34402 #, no-wrap
34403 msgid ""
34404 " int\n"
34405 " guestfs_write_append (guestfs_h *g,\n"
34406 "                       const char *path,\n"
34407 "                       const char *content,\n"
34408 "                       size_t content_size);\n"
34409 "\n"
34410 msgstr ""
34411
34412 #. type: textblock
34413 #: ../src/guestfs-actions.pod:8147
34414 msgid "See also C<guestfs_write>."
34415 msgstr ""
34416
34417 #. type: =head2
34418 #: ../src/guestfs-actions.pod:8156
34419 msgid "guestfs_write_file"
34420 msgstr "guestfs_write_file"
34421
34422 #. type: verbatim
34423 #: ../src/guestfs-actions.pod:8158
34424 #, no-wrap
34425 msgid ""
34426 " int\n"
34427 " guestfs_write_file (guestfs_h *g,\n"
34428 "                     const char *path,\n"
34429 "                     const char *content,\n"
34430 "                     int size);\n"
34431 "\n"
34432 msgstr ""
34433 " int\n"
34434 " guestfs_write_file (guestfs_h *g,\n"
34435 "                     const char *path,\n"
34436 "                     const char *content,\n"
34437 "                     int size);\n"
34438 "\n"
34439
34440 #. type: textblock
34441 #: ../src/guestfs-actions.pod:8164
34442 msgid ""
34443 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
34444 "instead."
34445 msgstr ""
34446
34447 #. type: =head2
34448 #: ../src/guestfs-actions.pod:8189
34449 msgid "guestfs_zegrep"
34450 msgstr "guestfs_zegrep"
34451
34452 #. type: verbatim
34453 #: ../src/guestfs-actions.pod:8191
34454 #, no-wrap
34455 msgid ""
34456 " char **\n"
34457 " guestfs_zegrep (guestfs_h *g,\n"
34458 "                 const char *regex,\n"
34459 "                 const char *path);\n"
34460 "\n"
34461 msgstr ""
34462 " char **\n"
34463 " guestfs_zegrep (guestfs_h *g,\n"
34464 "                 const char *regex,\n"
34465 "                 const char *path);\n"
34466 "\n"
34467
34468 #. type: =head2
34469 #: ../src/guestfs-actions.pod:8208
34470 msgid "guestfs_zegrepi"
34471 msgstr "guestfs_zegrepi"
34472
34473 #. type: verbatim
34474 #: ../src/guestfs-actions.pod:8210
34475 #, no-wrap
34476 msgid ""
34477 " char **\n"
34478 " guestfs_zegrepi (guestfs_h *g,\n"
34479 "                  const char *regex,\n"
34480 "                  const char *path);\n"
34481 "\n"
34482 msgstr ""
34483 " char **\n"
34484 " guestfs_zegrepi (guestfs_h *g,\n"
34485 "                  const char *regex,\n"
34486 "                  const char *path);\n"
34487 "\n"
34488
34489 #. type: =head2
34490 #: ../src/guestfs-actions.pod:8227
34491 msgid "guestfs_zero"
34492 msgstr "guestfs_zero"
34493
34494 #. type: verbatim
34495 #: ../src/guestfs-actions.pod:8229
34496 #, no-wrap
34497 msgid ""
34498 " int\n"
34499 " guestfs_zero (guestfs_h *g,\n"
34500 "               const char *device);\n"
34501 "\n"
34502 msgstr ""
34503 " int\n"
34504 " guestfs_zero (guestfs_h *g,\n"
34505 "               const char *device);\n"
34506 "\n"
34507
34508 #. type: textblock
34509 #: ../src/guestfs-actions.pod:8243
34510 msgid ""
34511 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34512 "C<guestfs_is_zero_device>"
34513 msgstr ""
34514
34515 #. type: =head2
34516 #: ../src/guestfs-actions.pod:8255
34517 msgid "guestfs_zero_device"
34518 msgstr "guestfs_zero_device"
34519
34520 #. type: verbatim
34521 #: ../src/guestfs-actions.pod:8257
34522 #, no-wrap
34523 msgid ""
34524 " int\n"
34525 " guestfs_zero_device (guestfs_h *g,\n"
34526 "                      const char *device);\n"
34527 "\n"
34528 msgstr ""
34529 " int\n"
34530 " guestfs_zero_device (guestfs_h *g,\n"
34531 "                      const char *device);\n"
34532 "\n"
34533
34534 #. type: textblock
34535 #: ../src/guestfs-actions.pod:8261
34536 msgid ""
34537 "This command writes zeroes over the entire C<device>.  Compare with "
34538 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34539 msgstr ""
34540
34541 #. type: textblock
34542 #: ../src/guestfs-actions.pod:8276
34543 msgid "(Added in 1.3.1)"
34544 msgstr "(Додано у 1.3.1)"
34545
34546 #. type: =head2
34547 #: ../src/guestfs-actions.pod:8278
34548 msgid "guestfs_zerofree"
34549 msgstr "guestfs_zerofree"
34550
34551 #. type: verbatim
34552 #: ../src/guestfs-actions.pod:8280
34553 #, no-wrap
34554 msgid ""
34555 " int\n"
34556 " guestfs_zerofree (guestfs_h *g,\n"
34557 "                   const char *device);\n"
34558 "\n"
34559 msgstr ""
34560 " int\n"
34561 " guestfs_zerofree (guestfs_h *g,\n"
34562 "                   const char *device);\n"
34563 "\n"
34564
34565 #. type: =head2
34566 #: ../src/guestfs-actions.pod:8299
34567 msgid "guestfs_zfgrep"
34568 msgstr "guestfs_zfgrep"
34569
34570 #. type: verbatim
34571 #: ../src/guestfs-actions.pod:8301
34572 #, no-wrap
34573 msgid ""
34574 " char **\n"
34575 " guestfs_zfgrep (guestfs_h *g,\n"
34576 "                 const char *pattern,\n"
34577 "                 const char *path);\n"
34578 "\n"
34579 msgstr ""
34580 " char **\n"
34581 " guestfs_zfgrep (guestfs_h *g,\n"
34582 "                 const char *pattern,\n"
34583 "                 const char *path);\n"
34584 "\n"
34585
34586 #. type: =head2
34587 #: ../src/guestfs-actions.pod:8318
34588 msgid "guestfs_zfgrepi"
34589 msgstr "guestfs_zfgrepi"
34590
34591 #. type: verbatim
34592 #: ../src/guestfs-actions.pod:8320
34593 #, no-wrap
34594 msgid ""
34595 " char **\n"
34596 " guestfs_zfgrepi (guestfs_h *g,\n"
34597 "                  const char *pattern,\n"
34598 "                  const char *path);\n"
34599 "\n"
34600 msgstr ""
34601 " char **\n"
34602 " guestfs_zfgrepi (guestfs_h *g,\n"
34603 "                  const char *pattern,\n"
34604 "                  const char *path);\n"
34605 "\n"
34606
34607 #. type: =head2
34608 #: ../src/guestfs-actions.pod:8337
34609 msgid "guestfs_zfile"
34610 msgstr "guestfs_zfile"
34611
34612 #. type: verbatim
34613 #: ../src/guestfs-actions.pod:8339
34614 #, no-wrap
34615 msgid ""
34616 " char *\n"
34617 " guestfs_zfile (guestfs_h *g,\n"
34618 "                const char *meth,\n"
34619 "                const char *path);\n"
34620 "\n"
34621 msgstr ""
34622 " char *\n"
34623 " guestfs_zfile (guestfs_h *g,\n"
34624 "                const char *meth,\n"
34625 "                const char *path);\n"
34626 "\n"
34627
34628 #. type: textblock
34629 #: ../src/guestfs-actions.pod:8344
34630 msgid ""
34631 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34632 "instead."
34633 msgstr ""
34634
34635 #. type: textblock
34636 #: ../src/guestfs-actions.pod:8356
34637 msgid ""
34638 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34639 "files."
34640 msgstr ""
34641
34642 #. type: =head2
34643 #: ../src/guestfs-actions.pod:8364
34644 msgid "guestfs_zgrep"
34645 msgstr "guestfs_zgrep"
34646
34647 #. type: verbatim
34648 #: ../src/guestfs-actions.pod:8366
34649 #, no-wrap
34650 msgid ""
34651 " char **\n"
34652 " guestfs_zgrep (guestfs_h *g,\n"
34653 "                const char *regex,\n"
34654 "                const char *path);\n"
34655 "\n"
34656 msgstr ""
34657 " char **\n"
34658 " guestfs_zgrep (guestfs_h *g,\n"
34659 "                const char *regex,\n"
34660 "                const char *path);\n"
34661 "\n"
34662
34663 #. type: =head2
34664 #: ../src/guestfs-actions.pod:8383
34665 msgid "guestfs_zgrepi"
34666 msgstr "guestfs_zgrepi"
34667
34668 #. type: verbatim
34669 #: ../src/guestfs-actions.pod:8385
34670 #, no-wrap
34671 msgid ""
34672 " char **\n"
34673 " guestfs_zgrepi (guestfs_h *g,\n"
34674 "                 const char *regex,\n"
34675 "                 const char *path);\n"
34676 "\n"
34677 msgstr ""
34678 " char **\n"
34679 " guestfs_zgrepi (guestfs_h *g,\n"
34680 "                 const char *regex,\n"
34681 "                 const char *path);\n"
34682 "\n"
34683
34684 #. type: =item
34685 #: ../src/guestfs-availability.pod:3
34686 msgid "B<augeas>"
34687 msgstr "B<augeas>"
34688
34689 #. type: textblock
34690 #: ../src/guestfs-availability.pod:5
34691 msgid ""
34692 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
34693 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
34694 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
34695 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
34696 "L</guestfs_aug_save> L</guestfs_aug_set>"
34697 msgstr ""
34698
34699 #. type: =item
34700 #: ../src/guestfs-availability.pod:21
34701 msgid "B<btrfs>"
34702 msgstr "B<btrfs>"
34703
34704 #. type: textblock
34705 #: ../src/guestfs-availability.pod:23
34706 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34707 msgstr ""
34708
34709 #. type: =item
34710 #: ../src/guestfs-availability.pod:26
34711 msgid "B<grub>"
34712 msgstr ""
34713
34714 #. type: textblock
34715 #: ../src/guestfs-availability.pod:28
34716 msgid "The following functions: L</guestfs_grub_install>"
34717 msgstr ""
34718
34719 #. type: =item
34720 #: ../src/guestfs-availability.pod:31
34721 msgid "B<inotify>"
34722 msgstr "B<inotify>"
34723
34724 #. type: textblock
34725 #: ../src/guestfs-availability.pod:33
34726 msgid ""
34727 "The following functions: L</guestfs_inotify_add_watch> L</"
34728 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
34729 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34730 msgstr ""
34731
34732 #. type: =item
34733 #: ../src/guestfs-availability.pod:41
34734 msgid "B<linuxfsuuid>"
34735 msgstr "B<linuxfsuuid>"
34736
34737 #. type: textblock
34738 #: ../src/guestfs-availability.pod:43
34739 msgid ""
34740 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
34741 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34742 msgstr ""
34743
34744 #. type: =item
34745 #: ../src/guestfs-availability.pod:50
34746 msgid "B<linuxmodules>"
34747 msgstr "B<linuxmodules>"
34748
34749 #. type: textblock
34750 #: ../src/guestfs-availability.pod:52
34751 msgid "The following functions: L</guestfs_modprobe>"
34752 msgstr ""
34753
34754 #. type: =item
34755 #: ../src/guestfs-availability.pod:55
34756 msgid "B<linuxxattrs>"
34757 msgstr "B<linuxxattrs>"
34758
34759 #. type: textblock
34760 #: ../src/guestfs-availability.pod:57
34761 msgid ""
34762 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
34763 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
34764 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
34765 "guestfs_setxattr>"
34766 msgstr ""
34767
34768 #. type: =item
34769 #: ../src/guestfs-availability.pod:68
34770 msgid "B<luks>"
34771 msgstr "B<luks>"
34772
34773 #. type: textblock
34774 #: ../src/guestfs-availability.pod:70
34775 msgid ""
34776 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
34777 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
34778 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34779 msgstr ""
34780
34781 #. type: =item
34782 #: ../src/guestfs-availability.pod:79
34783 msgid "B<lvm2>"
34784 msgstr "B<lvm2>"
34785
34786 #. type: textblock
34787 #: ../src/guestfs-availability.pod:81
34788 msgid ""
34789 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34790 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34791 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34792 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34793 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34794 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34795 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34796 msgstr ""
34797
34798 #. type: =item
34799 #: ../src/guestfs-availability.pod:104
34800 msgid "B<mknod>"
34801 msgstr "B<mknod>"
34802
34803 #. type: textblock
34804 #: ../src/guestfs-availability.pod:106
34805 msgid ""
34806 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34807 "guestfs_mknod_b> L</guestfs_mknod_c>"
34808 msgstr ""
34809
34810 #. type: =item
34811 #: ../src/guestfs-availability.pod:112
34812 msgid "B<ntfs3g>"
34813 msgstr "B<ntfs3g>"
34814
34815 #. type: textblock
34816 #: ../src/guestfs-availability.pod:114
34817 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34818 msgstr ""
34819
34820 #. type: =item
34821 #: ../src/guestfs-availability.pod:117
34822 msgid "B<ntfsprogs>"
34823 msgstr "B<ntfsprogs>"
34824
34825 #. type: textblock
34826 #: ../src/guestfs-availability.pod:119
34827 msgid ""
34828 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34829 "L</guestfs_ntfsresize_size>"
34830 msgstr ""
34831
34832 #. type: =item
34833 #: ../src/guestfs-availability.pod:124
34834 msgid "B<realpath>"
34835 msgstr "B<realpath>"
34836
34837 #. type: textblock
34838 #: ../src/guestfs-availability.pod:126
34839 msgid "The following functions: L</guestfs_realpath>"
34840 msgstr ""
34841
34842 #. type: =item
34843 #: ../src/guestfs-availability.pod:129
34844 msgid "B<scrub>"
34845 msgstr "B<scrub>"
34846
34847 #. type: textblock
34848 #: ../src/guestfs-availability.pod:131
34849 msgid ""
34850 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34851 "guestfs_scrub_freespace>"
34852 msgstr ""
34853
34854 #. type: =item
34855 #: ../src/guestfs-availability.pod:136
34856 msgid "B<selinux>"
34857 msgstr "B<selinux>"
34858
34859 #. type: textblock
34860 #: ../src/guestfs-availability.pod:138
34861 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34862 msgstr ""
34863
34864 #. type: =item
34865 #: ../src/guestfs-availability.pod:142
34866 msgid "B<xz>"
34867 msgstr "B<xz>"
34868
34869 #. type: textblock
34870 #: ../src/guestfs-availability.pod:144
34871 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34872 msgstr ""
34873
34874 #. type: =item
34875 #: ../src/guestfs-availability.pod:148
34876 msgid "B<zerofree>"
34877 msgstr "B<zerofree>"
34878
34879 #. type: textblock
34880 #: ../src/guestfs-availability.pod:150
34881 msgid "The following functions: L</guestfs_zerofree>"
34882 msgstr ""
34883
34884 #. type: =head2
34885 #: ../src/guestfs-structs.pod:1
34886 msgid "guestfs_int_bool"
34887 msgstr ""
34888
34889 #. type: verbatim
34890 #: ../src/guestfs-structs.pod:3
34891 #, no-wrap
34892 msgid ""
34893 " struct guestfs_int_bool {\n"
34894 "   int32_t i;\n"
34895 "   int32_t b;\n"
34896 " };\n"
34897 " \n"
34898 msgstr ""
34899
34900 #. type: verbatim
34901 #: ../src/guestfs-structs.pod:8
34902 #, no-wrap
34903 msgid ""
34904 " struct guestfs_int_bool_list {\n"
34905 "   uint32_t len; /* Number of elements in list. */\n"
34906 "   struct guestfs_int_bool *val; /* Elements. */\n"
34907 " };\n"
34908 " \n"
34909 msgstr ""
34910
34911 #. type: verbatim
34912 #: ../src/guestfs-structs.pod:13
34913 #, no-wrap
34914 msgid ""
34915 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34916 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34917 "\n"
34918 msgstr ""
34919
34920 #. type: =head2
34921 #: ../src/guestfs-structs.pod:16
34922 msgid "guestfs_lvm_pv"
34923 msgstr ""
34924
34925 #. type: verbatim
34926 #: ../src/guestfs-structs.pod:18
34927 #, no-wrap
34928 msgid ""
34929 " struct guestfs_lvm_pv {\n"
34930 "   char *pv_name;\n"
34931 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34932 "   char pv_uuid[32];\n"
34933 "   char *pv_fmt;\n"
34934 "   uint64_t pv_size;\n"
34935 "   uint64_t dev_size;\n"
34936 "   uint64_t pv_free;\n"
34937 "   uint64_t pv_used;\n"
34938 "   char *pv_attr;\n"
34939 "   int64_t pv_pe_count;\n"
34940 "   int64_t pv_pe_alloc_count;\n"
34941 "   char *pv_tags;\n"
34942 "   uint64_t pe_start;\n"
34943 "   int64_t pv_mda_count;\n"
34944 "   uint64_t pv_mda_free;\n"
34945 " };\n"
34946 " \n"
34947 msgstr ""
34948
34949 #. type: verbatim
34950 #: ../src/guestfs-structs.pod:36
34951 #, no-wrap
34952 msgid ""
34953 " struct guestfs_lvm_pv_list {\n"
34954 "   uint32_t len; /* Number of elements in list. */\n"
34955 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
34956 " };\n"
34957 " \n"
34958 msgstr ""
34959
34960 #. type: verbatim
34961 #: ../src/guestfs-structs.pod:41
34962 #, no-wrap
34963 msgid ""
34964 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34965 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34966 "\n"
34967 msgstr ""
34968
34969 #. type: =head2
34970 #: ../src/guestfs-structs.pod:44
34971 msgid "guestfs_lvm_vg"
34972 msgstr ""
34973
34974 #. type: verbatim
34975 #: ../src/guestfs-structs.pod:46
34976 #, no-wrap
34977 msgid ""
34978 " struct guestfs_lvm_vg {\n"
34979 "   char *vg_name;\n"
34980 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34981 "   char vg_uuid[32];\n"
34982 "   char *vg_fmt;\n"
34983 "   char *vg_attr;\n"
34984 "   uint64_t vg_size;\n"
34985 "   uint64_t vg_free;\n"
34986 "   char *vg_sysid;\n"
34987 "   uint64_t vg_extent_size;\n"
34988 "   int64_t vg_extent_count;\n"
34989 "   int64_t vg_free_count;\n"
34990 "   int64_t max_lv;\n"
34991 "   int64_t max_pv;\n"
34992 "   int64_t pv_count;\n"
34993 "   int64_t lv_count;\n"
34994 "   int64_t snap_count;\n"
34995 "   int64_t vg_seqno;\n"
34996 "   char *vg_tags;\n"
34997 "   int64_t vg_mda_count;\n"
34998 "   uint64_t vg_mda_free;\n"
34999 " };\n"
35000 " \n"
35001 msgstr ""
35002
35003 #. type: verbatim
35004 #: ../src/guestfs-structs.pod:69
35005 #, no-wrap
35006 msgid ""
35007 " struct guestfs_lvm_vg_list {\n"
35008 "   uint32_t len; /* Number of elements in list. */\n"
35009 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
35010 " };\n"
35011 " \n"
35012 msgstr ""
35013
35014 #. type: verbatim
35015 #: ../src/guestfs-structs.pod:74
35016 #, no-wrap
35017 msgid ""
35018 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
35019 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
35020 "\n"
35021 msgstr ""
35022
35023 #. type: =head2
35024 #: ../src/guestfs-structs.pod:77
35025 msgid "guestfs_lvm_lv"
35026 msgstr ""
35027
35028 #. type: verbatim
35029 #: ../src/guestfs-structs.pod:79
35030 #, no-wrap
35031 msgid ""
35032 " struct guestfs_lvm_lv {\n"
35033 "   char *lv_name;\n"
35034 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35035 "   char lv_uuid[32];\n"
35036 "   char *lv_attr;\n"
35037 "   int64_t lv_major;\n"
35038 "   int64_t lv_minor;\n"
35039 "   int64_t lv_kernel_major;\n"
35040 "   int64_t lv_kernel_minor;\n"
35041 "   uint64_t lv_size;\n"
35042 "   int64_t seg_count;\n"
35043 "   char *origin;\n"
35044 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35045 "   float snap_percent;\n"
35046 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35047 "   float copy_percent;\n"
35048 "   char *move_pv;\n"
35049 "   char *lv_tags;\n"
35050 "   char *mirror_log;\n"
35051 "   char *modules;\n"
35052 " };\n"
35053 " \n"
35054 msgstr ""
35055
35056 #. type: verbatim
35057 #: ../src/guestfs-structs.pod:101
35058 #, no-wrap
35059 msgid ""
35060 " struct guestfs_lvm_lv_list {\n"
35061 "   uint32_t len; /* Number of elements in list. */\n"
35062 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
35063 " };\n"
35064 " \n"
35065 msgstr ""
35066
35067 #. type: verbatim
35068 #: ../src/guestfs-structs.pod:106
35069 #, no-wrap
35070 msgid ""
35071 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
35072 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
35073 "\n"
35074 msgstr ""
35075
35076 #. type: verbatim
35077 #: ../src/guestfs-structs.pod:111
35078 #, no-wrap
35079 msgid ""
35080 " struct guestfs_stat {\n"
35081 "   int64_t dev;\n"
35082 "   int64_t ino;\n"
35083 "   int64_t mode;\n"
35084 "   int64_t nlink;\n"
35085 "   int64_t uid;\n"
35086 "   int64_t gid;\n"
35087 "   int64_t rdev;\n"
35088 "   int64_t size;\n"
35089 "   int64_t blksize;\n"
35090 "   int64_t blocks;\n"
35091 "   int64_t atime;\n"
35092 "   int64_t mtime;\n"
35093 "   int64_t ctime;\n"
35094 " };\n"
35095 " \n"
35096 msgstr ""
35097
35098 #. type: verbatim
35099 #: ../src/guestfs-structs.pod:127
35100 #, no-wrap
35101 msgid ""
35102 " struct guestfs_stat_list {\n"
35103 "   uint32_t len; /* Number of elements in list. */\n"
35104 "   struct guestfs_stat *val; /* Elements. */\n"
35105 " };\n"
35106 " \n"
35107 msgstr ""
35108
35109 #. type: verbatim
35110 #: ../src/guestfs-structs.pod:132
35111 #, no-wrap
35112 msgid ""
35113 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35114 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35115 "\n"
35116 msgstr ""
35117
35118 #. type: verbatim
35119 #: ../src/guestfs-structs.pod:137
35120 #, no-wrap
35121 msgid ""
35122 " struct guestfs_statvfs {\n"
35123 "   int64_t bsize;\n"
35124 "   int64_t frsize;\n"
35125 "   int64_t blocks;\n"
35126 "   int64_t bfree;\n"
35127 "   int64_t bavail;\n"
35128 "   int64_t files;\n"
35129 "   int64_t ffree;\n"
35130 "   int64_t favail;\n"
35131 "   int64_t fsid;\n"
35132 "   int64_t flag;\n"
35133 "   int64_t namemax;\n"
35134 " };\n"
35135 " \n"
35136 msgstr ""
35137
35138 #. type: verbatim
35139 #: ../src/guestfs-structs.pod:151
35140 #, no-wrap
35141 msgid ""
35142 " struct guestfs_statvfs_list {\n"
35143 "   uint32_t len; /* Number of elements in list. */\n"
35144 "   struct guestfs_statvfs *val; /* Elements. */\n"
35145 " };\n"
35146 " \n"
35147 msgstr ""
35148
35149 #. type: verbatim
35150 #: ../src/guestfs-structs.pod:156
35151 #, no-wrap
35152 msgid ""
35153 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35154 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35155 "\n"
35156 msgstr ""
35157
35158 #. type: =head2
35159 #: ../src/guestfs-structs.pod:159
35160 msgid "guestfs_dirent"
35161 msgstr ""
35162
35163 #. type: verbatim
35164 #: ../src/guestfs-structs.pod:161
35165 #, no-wrap
35166 msgid ""
35167 " struct guestfs_dirent {\n"
35168 "   int64_t ino;\n"
35169 "   char ftyp;\n"
35170 "   char *name;\n"
35171 " };\n"
35172 " \n"
35173 msgstr ""
35174
35175 #. type: verbatim
35176 #: ../src/guestfs-structs.pod:167
35177 #, no-wrap
35178 msgid ""
35179 " struct guestfs_dirent_list {\n"
35180 "   uint32_t len; /* Number of elements in list. */\n"
35181 "   struct guestfs_dirent *val; /* Elements. */\n"
35182 " };\n"
35183 " \n"
35184 msgstr ""
35185
35186 #. type: verbatim
35187 #: ../src/guestfs-structs.pod:172
35188 #, no-wrap
35189 msgid ""
35190 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35191 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35192 "\n"
35193 msgstr ""
35194
35195 #. type: verbatim
35196 #: ../src/guestfs-structs.pod:177
35197 #, no-wrap
35198 msgid ""
35199 " struct guestfs_version {\n"
35200 "   int64_t major;\n"
35201 "   int64_t minor;\n"
35202 "   int64_t release;\n"
35203 "   char *extra;\n"
35204 " };\n"
35205 " \n"
35206 msgstr ""
35207
35208 #. type: verbatim
35209 #: ../src/guestfs-structs.pod:184
35210 #, no-wrap
35211 msgid ""
35212 " struct guestfs_version_list {\n"
35213 "   uint32_t len; /* Number of elements in list. */\n"
35214 "   struct guestfs_version *val; /* Elements. */\n"
35215 " };\n"
35216 " \n"
35217 msgstr ""
35218
35219 #. type: verbatim
35220 #: ../src/guestfs-structs.pod:189
35221 #, no-wrap
35222 msgid ""
35223 " void guestfs_free_version (struct guestfs_free_version *);\n"
35224 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35225 "\n"
35226 msgstr ""
35227
35228 #. type: =head2
35229 #: ../src/guestfs-structs.pod:192
35230 msgid "guestfs_xattr"
35231 msgstr ""
35232
35233 #. type: verbatim
35234 #: ../src/guestfs-structs.pod:194
35235 #, no-wrap
35236 msgid ""
35237 " struct guestfs_xattr {\n"
35238 "   char *attrname;\n"
35239 "   /* The next two fields describe a byte array. */\n"
35240 "   uint32_t attrval_len;\n"
35241 "   char *attrval;\n"
35242 " };\n"
35243 " \n"
35244 msgstr ""
35245
35246 #. type: verbatim
35247 #: ../src/guestfs-structs.pod:201
35248 #, no-wrap
35249 msgid ""
35250 " struct guestfs_xattr_list {\n"
35251 "   uint32_t len; /* Number of elements in list. */\n"
35252 "   struct guestfs_xattr *val; /* Elements. */\n"
35253 " };\n"
35254 " \n"
35255 msgstr ""
35256
35257 #. type: verbatim
35258 #: ../src/guestfs-structs.pod:206
35259 #, no-wrap
35260 msgid ""
35261 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35262 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35263 "\n"
35264 msgstr ""
35265
35266 #. type: =head2
35267 #: ../src/guestfs-structs.pod:209
35268 msgid "guestfs_inotify_event"
35269 msgstr ""
35270
35271 #. type: verbatim
35272 #: ../src/guestfs-structs.pod:211
35273 #, no-wrap
35274 msgid ""
35275 " struct guestfs_inotify_event {\n"
35276 "   int64_t in_wd;\n"
35277 "   uint32_t in_mask;\n"
35278 "   uint32_t in_cookie;\n"
35279 "   char *in_name;\n"
35280 " };\n"
35281 " \n"
35282 msgstr ""
35283
35284 #. type: verbatim
35285 #: ../src/guestfs-structs.pod:218
35286 #, no-wrap
35287 msgid ""
35288 " struct guestfs_inotify_event_list {\n"
35289 "   uint32_t len; /* Number of elements in list. */\n"
35290 "   struct guestfs_inotify_event *val; /* Elements. */\n"
35291 " };\n"
35292 " \n"
35293 msgstr ""
35294
35295 #. type: verbatim
35296 #: ../src/guestfs-structs.pod:223
35297 #, no-wrap
35298 msgid ""
35299 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
35300 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
35301 "\n"
35302 msgstr ""
35303
35304 #. type: =head2
35305 #: ../src/guestfs-structs.pod:226
35306 msgid "guestfs_partition"
35307 msgstr ""
35308
35309 #. type: verbatim
35310 #: ../src/guestfs-structs.pod:228
35311 #, no-wrap
35312 msgid ""
35313 " struct guestfs_partition {\n"
35314 "   int32_t part_num;\n"
35315 "   uint64_t part_start;\n"
35316 "   uint64_t part_end;\n"
35317 "   uint64_t part_size;\n"
35318 " };\n"
35319 " \n"
35320 msgstr ""
35321
35322 #. type: verbatim
35323 #: ../src/guestfs-structs.pod:235
35324 #, no-wrap
35325 msgid ""
35326 " struct guestfs_partition_list {\n"
35327 "   uint32_t len; /* Number of elements in list. */\n"
35328 "   struct guestfs_partition *val; /* Elements. */\n"
35329 " };\n"
35330 " \n"
35331 msgstr ""
35332
35333 #. type: verbatim
35334 #: ../src/guestfs-structs.pod:240
35335 #, no-wrap
35336 msgid ""
35337 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
35338 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
35339 "\n"
35340 msgstr ""
35341
35342 #. type: =head2
35343 #: ../src/guestfs-structs.pod:243
35344 msgid "guestfs_application"
35345 msgstr ""
35346
35347 #. type: verbatim
35348 #: ../src/guestfs-structs.pod:245
35349 #, no-wrap
35350 msgid ""
35351 " struct guestfs_application {\n"
35352 "   char *app_name;\n"
35353 "   char *app_display_name;\n"
35354 "   int32_t app_epoch;\n"
35355 "   char *app_version;\n"
35356 "   char *app_release;\n"
35357 "   char *app_install_path;\n"
35358 "   char *app_trans_path;\n"
35359 "   char *app_publisher;\n"
35360 "   char *app_url;\n"
35361 "   char *app_source_package;\n"
35362 "   char *app_summary;\n"
35363 "   char *app_description;\n"
35364 " };\n"
35365 " \n"
35366 msgstr ""
35367
35368 #. type: verbatim
35369 #: ../src/guestfs-structs.pod:260
35370 #, no-wrap
35371 msgid ""
35372 " struct guestfs_application_list {\n"
35373 "   uint32_t len; /* Number of elements in list. */\n"
35374 "   struct guestfs_application *val; /* Elements. */\n"
35375 " };\n"
35376 " \n"
35377 msgstr ""
35378
35379 #. type: verbatim
35380 #: ../src/guestfs-structs.pod:265
35381 #, no-wrap
35382 msgid ""
35383 " void guestfs_free_application (struct guestfs_free_application *);\n"
35384 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
35385 "\n"
35386 msgstr ""
35387
35388 #. type: textblock
35389 #: ../src/guestfs.pod:5
35390 msgid "guestfs - Library for accessing and modifying virtual machine images"
35391 msgstr ""
35392 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
35393 "машин"
35394
35395 #. type: verbatim
35396 #: ../src/guestfs.pod:11
35397 #, no-wrap
35398 msgid ""
35399 " guestfs_h *g = guestfs_create ();\n"
35400 " guestfs_add_drive (g, \"guest.img\");\n"
35401 " guestfs_launch (g);\n"
35402 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35403 " guestfs_touch (g, \"/hello\");\n"
35404 " guestfs_umount (g, \"/\");\n"
35405 " guestfs_close (g);\n"
35406 "\n"
35407 msgstr ""
35408 " guestfs_h *g = guestfs_create ();\n"
35409 " guestfs_add_drive (g, \"guest.img\");\n"
35410 " guestfs_launch (g);\n"
35411 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35412 " guestfs_touch (g, \"/hello\");\n"
35413 " guestfs_umount (g, \"/\");\n"
35414 " guestfs_close (g);\n"
35415 "\n"
35416
35417 #. type: textblock
35418 #: ../src/guestfs.pod:25
35419 msgid ""
35420 "Libguestfs is a library for accessing and modifying guest disk images.  "
35421 "Amongst the things this is good for: making batch configuration changes to "
35422 "guests, getting disk used/free statistics (see also: virt-df), migrating "
35423 "between virtualization systems (see also: virt-p2v), performing partial "
35424 "backups, performing partial guest clones, cloning guests and changing "
35425 "registry/UUID/hostname info, and much else besides."
35426 msgstr ""
35427
35428 #. type: textblock
35429 #: ../src/guestfs.pod:33
35430 msgid ""
35431 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
35432 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
35433 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
35434 "qcow2, vmdk."
35435 msgstr ""
35436
35437 #. type: textblock
35438 #: ../src/guestfs.pod:38
35439 msgid ""
35440 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
35441 "what filesystem is in each LV, etc.).  It can also run commands in the "
35442 "context of the guest.  Also you can access filesystems over FUSE."
35443 msgstr ""
35444
35445 #. type: textblock
35446 #: ../src/guestfs.pod:43
35447 msgid ""
35448 "Libguestfs is a library that can be linked with C and C++ management "
35449 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
35450 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
35451 "command line."
35452 msgstr ""
35453
35454 #. type: textblock
35455 #: ../src/guestfs.pod:48
35456 msgid ""
35457 "You don't need to be root to use libguestfs, although obviously you do need "
35458 "enough permissions to access the disk images."
35459 msgstr ""
35460
35461 #. type: textblock
35462 #: ../src/guestfs.pod:51
35463 msgid ""
35464 "Libguestfs is a large API because it can do many things.  For a gentle "
35465 "introduction, please read the L</API OVERVIEW> section next."
35466 msgstr ""
35467
35468 #. type: textblock
35469 #: ../src/guestfs.pod:54
35470 msgid ""
35471 "There are also some example programs in the L<guestfs-examples(3)> manual "
35472 "page."
35473 msgstr ""
35474
35475 #. type: =head1
35476 #: ../src/guestfs.pod:57
35477 msgid "API OVERVIEW"
35478 msgstr "ОГЛЯД API"
35479
35480 #. type: textblock
35481 #: ../src/guestfs.pod:59
35482 msgid ""
35483 "This section provides a gentler overview of the libguestfs API.  We also try "
35484 "to group API calls together, where that may not be obvious from reading "
35485 "about the individual calls in the main section of this manual."
35486 msgstr ""
35487
35488 #. type: =head2
35489 #: ../src/guestfs.pod:64
35490 msgid "HANDLES"
35491 msgstr "ОБРОБНИКИ"
35492
35493 #. type: textblock
35494 #: ../src/guestfs.pod:66
35495 msgid ""
35496 "Before you can use libguestfs calls, you have to create a handle.  Then you "
35497 "must add at least one disk image to the handle, followed by launching the "
35498 "handle, then performing whatever operations you want, and finally closing "
35499 "the handle.  By convention we use the single letter C<g> for the name of the "
35500 "handle variable, although of course you can use any name you want."
35501 msgstr ""
35502
35503 #. type: textblock
35504 #: ../src/guestfs.pod:73
35505 msgid "The general structure of all libguestfs-using programs looks like this:"
35506 msgstr ""
35507
35508 #. type: verbatim
35509 #: ../src/guestfs.pod:76
35510 #, no-wrap
35511 msgid ""
35512 " guestfs_h *g = guestfs_create ();\n"
35513 " \n"
35514 msgstr ""
35515 " guestfs_h *g = guestfs_create ();\n"
35516 " \n"
35517
35518 #. type: verbatim
35519 #: ../src/guestfs.pod:78
35520 #, no-wrap
35521 msgid ""
35522 " /* Call guestfs_add_drive additional times if there are\n"
35523 "  * multiple disk images.\n"
35524 "  */\n"
35525 " guestfs_add_drive (g, \"guest.img\");\n"
35526 " \n"
35527 msgstr ""
35528
35529 #. type: verbatim
35530 #: ../src/guestfs.pod:83
35531 #, no-wrap
35532 msgid ""
35533 " /* Most manipulation calls won't work until you've launched\n"
35534 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
35535 "  * and _before_ other commands.\n"
35536 "  */\n"
35537 " guestfs_launch (g);\n"
35538 " \n"
35539 msgstr ""
35540
35541 #. type: verbatim
35542 #: ../src/guestfs.pod:89
35543 #, no-wrap
35544 msgid ""
35545 " /* Now you can examine what partitions, LVs etc are available.\n"
35546 "  */\n"
35547 " char **partitions = guestfs_list_partitions (g);\n"
35548 " char **logvols = guestfs_lvs (g);\n"
35549 " \n"
35550 msgstr ""
35551 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
35552 "  */\n"
35553 " char **partitions = guestfs_list_partitions (g);\n"
35554 " char **logvols = guestfs_lvs (g);\n"
35555 " \n"
35556
35557 #. type: verbatim
35558 #: ../src/guestfs.pod:94
35559 #, no-wrap
35560 msgid ""
35561 " /* To access a filesystem in the image, you must mount it.\n"
35562 "  */\n"
35563 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35564 " \n"
35565 msgstr ""
35566 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
35567 "  */\n"
35568 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35569 " \n"
35570
35571 #. type: verbatim
35572 #: ../src/guestfs.pod:98
35573 #, no-wrap
35574 msgid ""
35575 " /* Now you can perform filesystem actions on the guest\n"
35576 "  * disk image.\n"
35577 "  */\n"
35578 " guestfs_touch (g, \"/hello\");\n"
35579 " \n"
35580 msgstr ""
35581 " /* Тепер ви можете виконувати дії з файловою системою на\n"
35582 "  * образі диска операційної системи.\n"
35583 "  */\n"
35584 " guestfs_touch (g, \"/hello\");\n"
35585 " \n"
35586
35587 #. type: verbatim
35588 #: ../src/guestfs.pod:103
35589 #, no-wrap
35590 msgid ""
35591 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
35592 "  * it is done automatically when you close the handle.  See\n"
35593 "  * discussion of autosync in this page.\n"
35594 "  */\n"
35595 " guestfs_sync (g);\n"
35596 " \n"
35597 msgstr ""
35598
35599 #. type: verbatim
35600 #: ../src/guestfs.pod:109
35601 #, no-wrap
35602 msgid ""
35603 " /* Close the handle 'g'. */\n"
35604 " guestfs_close (g);\n"
35605 "\n"
35606 msgstr ""
35607 " /* Закрити дескриптор 'g'. */\n"
35608 " guestfs_close (g);\n"
35609 "\n"
35610
35611 #. type: textblock
35612 #: ../src/guestfs.pod:112
35613 msgid ""
35614 "The code above doesn't include any error checking.  In real code you should "
35615 "check return values carefully for errors.  In general all functions that "
35616 "return integers return C<-1> on error, and all functions that return "
35617 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
35618 "how to handle errors, and consult the documentation for each function call "
35619 "below to see precisely how they return error indications.  See L<guestfs-"
35620 "examples(3)> for fully worked examples."
35621 msgstr ""
35622
35623 #. type: =head2
35624 #: ../src/guestfs.pod:121
35625 msgid "DISK IMAGES"
35626 msgstr "ОБРАЗИ ДИСКІВ"
35627
35628 #. type: textblock
35629 #: ../src/guestfs.pod:123
35630 msgid ""
35631 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35632 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35633 "actual block device, or simply an empty file of zeroes that you have created "
35634 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
35635 "of these."
35636 msgstr ""
35637
35638 #. type: textblock
35639 #: ../src/guestfs.pod:129
35640 msgid ""
35641 "The call you should use in modern code for adding drives is L</"
35642 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
35643 "specifying that the format is raw, do:"
35644 msgstr ""
35645
35646 #. type: verbatim
35647 #: ../src/guestfs.pod:133
35648 #, no-wrap
35649 msgid ""
35650 " guestfs_add_drive_opts (g, filename,\n"
35651 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35652 "                         -1);\n"
35653 "\n"
35654 msgstr ""
35655 " guestfs_add_drive_opts (g, filename,\n"
35656 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35657 "                         -1);\n"
35658 "\n"
35659
35660 #. type: textblock
35661 #: ../src/guestfs.pod:137
35662 msgid "You can add a disk read-only using:"
35663 msgstr "Ви можете додати диск у режимі лише читання:"
35664
35665 #. type: verbatim
35666 #: ../src/guestfs.pod:139
35667 #, no-wrap
35668 msgid ""
35669 " guestfs_add_drive_opts (g, filename,\n"
35670 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35671 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35672 "                         -1);\n"
35673 "\n"
35674 msgstr ""
35675 " guestfs_add_drive_opts (g, filename,\n"
35676 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35677 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35678 "                         -1);\n"
35679 "\n"
35680
35681 #. type: textblock
35682 #: ../src/guestfs.pod:144
35683 msgid ""
35684 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
35685 "libguestfs won't modify the file."
35686 msgstr ""
35687
35688 #. type: textblock
35689 #: ../src/guestfs.pod:147
35690 msgid ""
35691 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35692 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
35693 "corruption, but adding it read-only is safe."
35694 msgstr ""
35695
35696 #. type: textblock
35697 #: ../src/guestfs.pod:151
35698 msgid ""
35699 "You must add at least one disk image, and you may add multiple disk images.  "
35700 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35701 "first one you added), C</dev/sdb> (for the second one you added), etc."
35702 msgstr ""
35703
35704 #. type: textblock
35705 #: ../src/guestfs.pod:156
35706 msgid ""
35707 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
35708 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35709 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
35710 msgstr ""
35711
35712 #. type: =head2
35713 #: ../src/guestfs.pod:161
35714 msgid "MOUNTING"
35715 msgstr "МОНТУВАННЯ"
35716
35717 #. type: textblock
35718 #: ../src/guestfs.pod:163
35719 msgid ""
35720 "Before you can read or write files, create directories and so on in a disk "
35721 "image that contains filesystems, you have to mount those filesystems using "
35722 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
35723 "a disk image contains (for example) one partition with a filesystem on that "
35724 "partition, then you can mount it directly:"
35725 msgstr ""
35726
35727 #. type: verbatim
35728 #: ../src/guestfs.pod:170
35729 #, no-wrap
35730 msgid ""
35731 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35732 "\n"
35733 msgstr ""
35734 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35735 "\n"
35736
35737 #. type: textblock
35738 #: ../src/guestfs.pod:172
35739 msgid ""
35740 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35741 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
35742 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
35743 "that these are libguestfs virtual devices, and are nothing to do with host "
35744 "devices."
35745 msgstr ""
35746
35747 #. type: textblock
35748 #: ../src/guestfs.pod:178
35749 msgid ""
35750 "If you are given a disk image and you don't know what it contains then you "
35751 "have to find out.  Libguestfs can do that too: use L</"
35752 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
35753 "LVs, and either try mounting each to see what is mountable, or else examine "
35754 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
35755 "filesystems, use L</guestfs_list_filesystems>."
35756 msgstr ""
35757
35758 #. type: textblock
35759 #: ../src/guestfs.pod:186
35760 msgid ""
35761 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35762 "L</INSPECTION> below).  But you might find it easier to look at higher level "
35763 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35764 msgstr ""
35765
35766 #. type: textblock
35767 #: ../src/guestfs.pod:191
35768 msgid ""
35769 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
35770 "several other variations of the C<guestfs_mount_*> call."
35771 msgstr ""
35772
35773 #. type: =head2
35774 #: ../src/guestfs.pod:194
35775 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35776 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
35777
35778 #. type: textblock
35779 #: ../src/guestfs.pod:196
35780 msgid ""
35781 "The majority of the libguestfs API consists of fairly low-level calls for "
35782 "accessing and modifying the files, directories, symlinks etc on mounted "
35783 "filesystems.  There are over a hundred such calls which you can find listed "
35784 "in detail below in this man page, and we don't even pretend to cover them "
35785 "all in this overview."
35786 msgstr ""
35787
35788 #. type: textblock
35789 #: ../src/guestfs.pod:202
35790 msgid ""
35791 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35792 "mount point."
35793 msgstr ""
35794 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
35795 "точкою монтування."
35796
35797 #. type: textblock
35798 #: ../src/guestfs.pod:205
35799 msgid ""
35800 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35801 "the file called C<\"etc/passwd\"> then you could do:"
35802 msgstr ""
35803 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
35804 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
35805 "таким кодом:"
35806
35807 #. type: verbatim
35808 #: ../src/guestfs.pod:208
35809 #, no-wrap
35810 msgid ""
35811 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35812 "\n"
35813 msgstr ""
35814 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35815 "\n"
35816
35817 #. type: textblock
35818 #: ../src/guestfs.pod:210
35819 msgid ""
35820 "This would return C<data> as a newly allocated buffer containing the full "
35821 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35822 "or C<NULL> if there was an error."
35823 msgstr ""
35824
35825 #. type: textblock
35826 #: ../src/guestfs.pod:214
35827 msgid ""
35828 "As another example, to create a top-level directory on that filesystem "
35829 "called C<\"var\"> you would do:"
35830 msgstr ""
35831
35832 #. type: verbatim
35833 #: ../src/guestfs.pod:217
35834 #, no-wrap
35835 msgid ""
35836 " guestfs_mkdir (g, \"/var\");\n"
35837 "\n"
35838 msgstr ""
35839 " guestfs_mkdir (g, \"/var\");\n"
35840 "\n"
35841
35842 #. type: textblock
35843 #: ../src/guestfs.pod:219
35844 msgid "To create a symlink you could do:"
35845 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
35846
35847 #. type: verbatim
35848 #: ../src/guestfs.pod:221
35849 #, no-wrap
35850 msgid ""
35851 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35852 "               \"/etc/rc3.d/S30portmap\");\n"
35853 "\n"
35854 msgstr ""
35855 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35856 "               \"/etc/rc3.d/S30portmap\");\n"
35857 "\n"
35858
35859 #. type: textblock
35860 #: ../src/guestfs.pod:224
35861 msgid ""
35862 "Libguestfs will reject attempts to use relative paths and there is no "
35863 "concept of a current working directory."
35864 msgstr ""
35865
35866 #. type: textblock
35867 #: ../src/guestfs.pod:227
35868 msgid ""
35869 "Libguestfs can return errors in many situations: for example if the "
35870 "filesystem isn't writable, or if a file or directory that you requested "
35871 "doesn't exist.  If you are using the C API (documented here)  you have to "
35872 "check for those error conditions after each call.  (Other language bindings "
35873 "turn these errors into exceptions)."
35874 msgstr ""
35875
35876 #. type: textblock
35877 #: ../src/guestfs.pod:233
35878 msgid ""
35879 "File writes are affected by the per-handle umask, set by calling L</"
35880 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
35881 msgstr ""
35882
35883 #. type: =head2
35884 #: ../src/guestfs.pod:236
35885 msgid "PARTITIONING"
35886 msgstr "ПОДІЛ НА РОЗДІЛИ"
35887
35888 #. type: textblock
35889 #: ../src/guestfs.pod:238
35890 msgid ""
35891 "Libguestfs contains API calls to read, create and modify partition tables on "
35892 "disk images."
35893 msgstr ""
35894
35895 #. type: textblock
35896 #: ../src/guestfs.pod:241
35897 msgid ""
35898 "In the common case where you want to create a single partition covering the "
35899 "whole disk, you should use the L</guestfs_part_disk> call:"
35900 msgstr ""
35901
35902 #. type: verbatim
35903 #: ../src/guestfs.pod:245
35904 #, no-wrap
35905 msgid ""
35906 " const char *parttype = \"mbr\";\n"
35907 " if (disk_is_larger_than_2TB)\n"
35908 "   parttype = \"gpt\";\n"
35909 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35910 "\n"
35911 msgstr ""
35912 " const char *parttype = \"mbr\";\n"
35913 " if (disk_is_larger_than_2TB)\n"
35914 "   parttype = \"gpt\";\n"
35915 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35916 "\n"
35917
35918 #. type: textblock
35919 #: ../src/guestfs.pod:250
35920 msgid ""
35921 "Obviously this effectively wipes anything that was on that disk image before."
35922 msgstr ""
35923
35924 #. type: =head2
35925 #: ../src/guestfs.pod:253
35926 msgid "LVM2"
35927 msgstr "LVM2"
35928
35929 #. type: textblock
35930 #: ../src/guestfs.pod:255
35931 msgid ""
35932 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35933 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
35934 "you familiarize yourself with the concepts of physical volumes, volume "
35935 "groups and logical volumes."
35936 msgstr ""
35937
35938 #. type: textblock
35939 #: ../src/guestfs.pod:260
35940 msgid ""
35941 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35942 "tldp.org/HOWTO/LVM-HOWTO/>."
35943 msgstr ""
35944
35945 #. type: =head2
35946 #: ../src/guestfs.pod:263
35947 msgid "DOWNLOADING"
35948 msgstr "ОТРИМАННЯ ДАНИХ"
35949
35950 #. type: textblock
35951 #: ../src/guestfs.pod:265
35952 msgid ""
35953 "Use L</guestfs_cat> to download small, text only files.  This call is "
35954 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35955 "NUL (C<\\0>) characters.  However the API is very simple to use."
35956 msgstr ""
35957
35958 #. type: textblock
35959 #: ../src/guestfs.pod:269
35960 msgid ""
35961 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35962 "bit data, since it returns a (pointer, size) pair.  However it is still "
35963 "limited to \"small\" files, less than 2 MB."
35964 msgstr ""
35965
35966 #. type: textblock
35967 #: ../src/guestfs.pod:273
35968 msgid ""
35969 "L</guestfs_download> can be used to download any file, with no limits on "
35970 "content or size (even files larger than 4 GB)."
35971 msgstr ""
35972
35973 #. type: textblock
35974 #: ../src/guestfs.pod:276
35975 msgid ""
35976 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35977 msgstr ""
35978
35979 #. type: =head2
35980 #: ../src/guestfs.pod:279
35981 msgid "UPLOADING"
35982 msgstr "ВИВАНТАЖЕННЯ"
35983
35984 #. type: textblock
35985 #: ../src/guestfs.pod:281
35986 msgid ""
35987 "It's often the case that you want to write a file or files to the disk image."
35988 msgstr ""
35989
35990 #. type: textblock
35991 #: ../src/guestfs.pod:284
35992 msgid ""
35993 "To write a small file with fixed content, use L</guestfs_write>.  To create "
35994 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35995 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
35996 "of other functions for creating test files, for example L</guestfs_fill> and "
35997 "L</guestfs_fill_pattern>."
35998 msgstr ""
35999
36000 #. type: textblock
36001 #: ../src/guestfs.pod:290
36002 msgid ""
36003 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
36004 "file content or size (even files larger than 4 GB)."
36005 msgstr ""
36006
36007 #. type: textblock
36008 #: ../src/guestfs.pod:293
36009 msgid ""
36010 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
36011 msgstr ""
36012
36013 #. type: textblock
36014 #: ../src/guestfs.pod:295
36015 msgid ""
36016 "However the fastest way to upload I<large numbers of arbitrary files> is to "
36017 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
36018 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
36019 "in a predictable way (eg. adding it last after all other drives) then you "
36020 "can get the device name from L</guestfs_list_devices> and mount it directly "
36021 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
36022 "portable between kernel versions, and they don't support labels or UUIDs.  "
36023 "If you want to pre-build an image or you need to mount it using a label or "
36024 "UUID, use an ISO image instead."
36025 msgstr ""
36026
36027 #. type: =head2
36028 #: ../src/guestfs.pod:306
36029 msgid "COPYING"
36030 msgstr "КОПІЮВАННЯ"
36031
36032 #. type: textblock
36033 #: ../src/guestfs.pod:308
36034 msgid ""
36035 "There are various different commands for copying between files and devices "
36036 "and in and out of the guest filesystem.  These are summarised in the table "
36037 "below."
36038 msgstr ""
36039
36040 #. type: =item
36041 #: ../src/guestfs.pod:314
36042 msgid "B<file> to B<file>"
36043 msgstr "B<файл> у B<файл>"
36044
36045 #. type: textblock
36046 #: ../src/guestfs.pod:316
36047 msgid ""
36048 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
36049 "directories recursively."
36050 msgstr ""
36051
36052 #. type: textblock
36053 #: ../src/guestfs.pod:319
36054 msgid ""
36055 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
36056 msgstr ""
36057
36058 #. type: =item
36059 #: ../src/guestfs.pod:322
36060 msgid "B<file> to B<device>"
36061 msgstr ""
36062
36063 #. type: =item
36064 #: ../src/guestfs.pod:324
36065 msgid "B<device> to B<file>"
36066 msgstr ""
36067
36068 #. type: =item
36069 #: ../src/guestfs.pod:326
36070 msgid "B<device> to B<device>"
36071 msgstr ""
36072
36073 #. type: textblock
36074 #: ../src/guestfs.pod:328
36075 msgid ""
36076 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
36077 "guestfs_copy_device_to_device>."
36078 msgstr ""
36079
36080 #. type: textblock
36081 #: ../src/guestfs.pod:331
36082 msgid "Example: duplicate the contents of an LV:"
36083 msgstr ""
36084
36085 #. type: verbatim
36086 #: ../src/guestfs.pod:333
36087 #, no-wrap
36088 msgid ""
36089 " guestfs_copy_device_to_device (g,\n"
36090 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36091 "         /* -1 marks the end of the list of optional parameters */\n"
36092 "         -1);\n"
36093 "\n"
36094 msgstr ""
36095
36096 #. type: textblock
36097 #: ../src/guestfs.pod:338
36098 msgid ""
36099 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36100 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
36101 "optional C<size> parameter:"
36102 msgstr ""
36103
36104 #. type: verbatim
36105 #: ../src/guestfs.pod:342
36106 #, no-wrap
36107 msgid ""
36108 " guestfs_copy_device_to_device (g,\n"
36109 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36110 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36111 "         -1);\n"
36112 "\n"
36113 msgstr ""
36114
36115 #. type: =item
36116 #: ../src/guestfs.pod:347
36117 msgid "B<file on the host> to B<file or device>"
36118 msgstr ""
36119
36120 #. type: textblock
36121 #: ../src/guestfs.pod:349
36122 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
36123 msgstr ""
36124
36125 #. type: =item
36126 #: ../src/guestfs.pod:351
36127 msgid "B<file or device> to B<file on the host>"
36128 msgstr ""
36129
36130 #. type: textblock
36131 #: ../src/guestfs.pod:353
36132 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
36133 msgstr ""
36134
36135 #. type: =head2
36136 #: ../src/guestfs.pod:357
36137 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36138 msgstr ""
36139
36140 #. type: textblock
36141 #: ../src/guestfs.pod:359
36142 msgid ""
36143 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36144 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36145 "appears you can only upload and download to files.  However many Un*x-like "
36146 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36147 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36148 "and arbitrary file descriptor N."
36149 msgstr ""
36150
36151 #. type: textblock
36152 #: ../src/guestfs.pod:367
36153 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36154 msgstr ""
36155
36156 #. type: verbatim
36157 #: ../src/guestfs.pod:370
36158 #, no-wrap
36159 msgid ""
36160 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36161 "\n"
36162 msgstr ""
36163 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36164 "\n"
36165
36166 #. type: textblock
36167 #: ../src/guestfs.pod:372
36168 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36169 msgstr ""
36170
36171 #. type: verbatim
36172 #: ../src/guestfs.pod:374
36173 #, no-wrap
36174 msgid ""
36175 " char devfd[64];\n"
36176 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36177 " guestfs_tar_out (g, \"/\", devfd);\n"
36178 "\n"
36179 msgstr ""
36180 " char devfd[64];\n"
36181 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36182 " guestfs_tar_out (g, \"/\", devfd);\n"
36183 "\n"
36184
36185 #. type: =head2
36186 #: ../src/guestfs.pod:378
36187 msgid "LISTING FILES"
36188 msgstr "СПИСКИ ФАЙЛІВ"
36189
36190 #. type: textblock
36191 #: ../src/guestfs.pod:380
36192 msgid ""
36193 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36194 "L<guestfish(1)>-equivalent command C<ll>)."
36195 msgstr ""
36196
36197 #. type: textblock
36198 #: ../src/guestfs.pod:383
36199 msgid ""
36200 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36201 "programs, as a flat list of strings."
36202 msgstr ""
36203
36204 #. type: textblock
36205 #: ../src/guestfs.pod:386
36206 msgid ""
36207 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36208 "directory, plus additional information about each one.  It is more "
36209 "equivalent to using the L<readdir(3)> call on a local filesystem."
36210 msgstr ""
36211
36212 #. type: textblock
36213 #: ../src/guestfs.pod:390
36214 msgid ""
36215 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36216 msgstr ""
36217
36218 #. type: =head2
36219 #: ../src/guestfs.pod:393
36220 msgid "RUNNING COMMANDS"
36221 msgstr "ВИКОНАННЯ КОМАНД"
36222
36223 #. type: textblock
36224 #: ../src/guestfs.pod:395
36225 msgid ""
36226 "Although libguestfs is primarily an API for manipulating files inside guest "
36227 "images, we also provide some limited facilities for running commands inside "
36228 "guests."
36229 msgstr ""
36230
36231 #. type: textblock
36232 #: ../src/guestfs.pod:399
36233 msgid "There are many limitations to this:"
36234 msgstr ""
36235
36236 #. type: textblock
36237 #: ../src/guestfs.pod:405
36238 msgid ""
36239 "The kernel version that the command runs under will be different from what "
36240 "it expects."
36241 msgstr ""
36242
36243 #. type: textblock
36244 #: ../src/guestfs.pod:410
36245 msgid ""
36246 "If the command needs to communicate with daemons, then most likely they "
36247 "won't be running."
36248 msgstr ""
36249
36250 #. type: textblock
36251 #: ../src/guestfs.pod:415
36252 msgid "The command will be running in limited memory."
36253 msgstr ""
36254
36255 #. type: textblock
36256 #: ../src/guestfs.pod:419
36257 msgid ""
36258 "The network may not be available unless you enable it (see L</"
36259 "guestfs_set_network>)."
36260 msgstr ""
36261
36262 #. type: textblock
36263 #: ../src/guestfs.pod:424
36264 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36265 msgstr ""
36266
36267 #. type: textblock
36268 #: ../src/guestfs.pod:428
36269 msgid ""
36270 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36271 msgstr ""
36272
36273 #. type: textblock
36274 #: ../src/guestfs.pod:433
36275 msgid ""
36276 "For SELinux guests, you may need to enable SELinux and load policy first.  "
36277 "See L</SELINUX> in this manpage."
36278 msgstr ""
36279
36280 #. type: textblock
36281 #: ../src/guestfs.pod:438
36282 msgid ""
36283 "I<Security:> It is not safe to run commands from untrusted, possibly "
36284 "malicious guests.  These commands may attempt to exploit your program by "
36285 "sending unexpected output.  They could also try to exploit the Linux kernel "
36286 "or qemu provided by the libguestfs appliance.  They could use the network "
36287 "provided by the libguestfs appliance to bypass ordinary network partitions "
36288 "and firewalls.  They could use the elevated privileges or different SELinux "
36289 "context of your program to their advantage."
36290 msgstr ""
36291
36292 #. type: textblock
36293 #: ../src/guestfs.pod:447
36294 msgid ""
36295 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36296 "(a script which runs when the guest next boots normally), and to have this "
36297 "script run the commands you want in the normal context of the running guest, "
36298 "network security and so on.  For information about other security issues, "
36299 "see L</SECURITY>."
36300 msgstr ""
36301
36302 #. type: textblock
36303 #: ../src/guestfs.pod:455
36304 msgid ""
36305 "The two main API calls to run commands are L</guestfs_command> and L</"
36306 "guestfs_sh> (there are also variations)."
36307 msgstr ""
36308
36309 #. type: textblock
36310 #: ../src/guestfs.pod:458
36311 msgid ""
36312 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
36313 "shell globs, redirections, etc will work."
36314 msgstr ""
36315
36316 #. type: =head2
36317 #: ../src/guestfs.pod:461
36318 msgid "CONFIGURATION FILES"
36319 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
36320
36321 #. type: textblock
36322 #: ../src/guestfs.pod:463
36323 msgid ""
36324 "To read and write configuration files in Linux guest filesystems, we "
36325 "strongly recommend using Augeas.  For example, Augeas understands how to "
36326 "read and write, say, a Linux shadow password file or X.org configuration "
36327 "file, and so avoids you having to write that code."
36328 msgstr ""
36329
36330 #. type: textblock
36331 #: ../src/guestfs.pod:468
36332 msgid ""
36333 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
36334 "document Augeas itself here because there is excellent documentation on the "
36335 "L<http://augeas.net/> website."
36336 msgstr ""
36337
36338 #. type: textblock
36339 #: ../src/guestfs.pod:472
36340 msgid ""
36341 "If you don't want to use Augeas (you fool!) then try calling L</"
36342 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
36343 "over."
36344 msgstr ""
36345
36346 #. type: =head2
36347 #: ../src/guestfs.pod:476
36348 msgid "SELINUX"
36349 msgstr "SELINUX"
36350
36351 #. type: textblock
36352 #: ../src/guestfs.pod:478
36353 msgid ""
36354 "We support SELinux guests.  To ensure that labeling happens correctly in "
36355 "SELinux guests, you need to enable SELinux and load the guest's policy:"
36356 msgstr ""
36357
36358 #. type: textblock
36359 #: ../src/guestfs.pod:486
36360 msgid "Before launching, do:"
36361 msgstr ""
36362
36363 #. type: verbatim
36364 #: ../src/guestfs.pod:488
36365 #, no-wrap
36366 msgid ""
36367 " guestfs_set_selinux (g, 1);\n"
36368 "\n"
36369 msgstr ""
36370 " guestfs_set_selinux (g, 1);\n"
36371 "\n"
36372
36373 #. type: textblock
36374 #: ../src/guestfs.pod:492
36375 msgid ""
36376 "After mounting the guest's filesystem(s), load the policy.  This is best "
36377 "done by running the L<load_policy(8)> command in the guest itself:"
36378 msgstr ""
36379
36380 #. type: verbatim
36381 #: ../src/guestfs.pod:496
36382 #, no-wrap
36383 msgid ""
36384 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36385 "\n"
36386 msgstr ""
36387 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36388 "\n"
36389
36390 #. type: textblock
36391 #: ../src/guestfs.pod:498
36392 msgid ""
36393 "(Older versions of C<load_policy> require you to specify the name of the "
36394 "policy file)."
36395 msgstr ""
36396
36397 #. type: textblock
36398 #: ../src/guestfs.pod:503
36399 msgid ""
36400 "Optionally, set the security context for the API.  The correct security "
36401 "context to use can only be known by inspecting the guest.  As an example:"
36402 msgstr ""
36403
36404 #. type: verbatim
36405 #: ../src/guestfs.pod:507
36406 #, no-wrap
36407 msgid ""
36408 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36409 "\n"
36410 msgstr ""
36411 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36412 "\n"
36413
36414 #. type: textblock
36415 #: ../src/guestfs.pod:511
36416 msgid "This will work for running commands and editing existing files."
36417 msgstr ""
36418
36419 #. type: textblock
36420 #: ../src/guestfs.pod:513
36421 msgid ""
36422 "When new files are created, you may need to label them explicitly, for "
36423 "example by running the external command C<restorecon pathname>."
36424 msgstr ""
36425
36426 #. type: =head2
36427 #: ../src/guestfs.pod:517
36428 msgid "UMASK"
36429 msgstr "UMASK"
36430
36431 #. type: textblock
36432 #: ../src/guestfs.pod:519
36433 msgid ""
36434 "Certain calls are affected by the current file mode creation mask (the "
36435 "\"umask\").  In particular ones which create files or directories, such as "
36436 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
36437 "either the default mode that the file is created with or modifies the mode "
36438 "that you supply."
36439 msgstr ""
36440
36441 #. type: textblock
36442 #: ../src/guestfs.pod:525
36443 msgid ""
36444 "The default umask is C<022>, so files are created with modes such as C<0644> "
36445 "and directories with C<0755>."
36446 msgstr ""
36447
36448 #. type: textblock
36449 #: ../src/guestfs.pod:528
36450 msgid ""
36451 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
36452 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
36453 "guestfs_chmod> after creating each file or directory."
36454 msgstr ""
36455
36456 #. type: textblock
36457 #: ../src/guestfs.pod:532
36458 msgid "For more information about umask, see L<umask(2)>."
36459 msgstr ""
36460
36461 #. type: textblock
36462 #: ../src/guestfs.pod:536
36463 msgid ""
36464 "Libguestfs allows you to access Linux guests which have been encrypted using "
36465 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
36466 "standard.  This includes nearly all whole disk encryption systems used by "
36467 "modern Linux guests."
36468 msgstr ""
36469
36470 #. type: textblock
36471 #: ../src/guestfs.pod:542
36472 msgid ""
36473 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
36474 "returns the string C<crypto_LUKS>)."
36475 msgstr ""
36476
36477 #. type: textblock
36478 #: ../src/guestfs.pod:545
36479 msgid ""
36480 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
36481 "will require the passphrase!"
36482 msgstr ""
36483
36484 #. type: textblock
36485 #: ../src/guestfs.pod:548
36486 msgid ""
36487 "Opening a LUKS device creates a new device mapper device called C</dev/"
36488 "mapper/mapname> (where C<mapname> is the string you supply to L</"
36489 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
36490 "from and encrypted to the underlying block device respectively."
36491 msgstr ""
36492
36493 #. type: textblock
36494 #: ../src/guestfs.pod:554
36495 msgid ""
36496 "LVM volume groups on the device can be made visible by calling L</"
36497 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
36498 "(s) can now be mounted in the usual way."
36499 msgstr ""
36500
36501 #. type: textblock
36502 #: ../src/guestfs.pod:558
36503 msgid ""
36504 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
36505 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36506 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
36507 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36508 "underlying encrypted block device)."
36509 msgstr ""
36510
36511 #. type: =head2
36512 #: ../src/guestfs.pod:565
36513 msgid "INSPECTION"
36514 msgstr "ПЕРЕВІРКА"
36515
36516 #. type: textblock
36517 #: ../src/guestfs.pod:567
36518 msgid ""
36519 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36520 "contains operating systems, an install CD or a live CD.  (These APIs used to "
36521 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
36522 "version 1.5.3 the most frequently used part of this library has been "
36523 "rewritten in C and moved into the core code)."
36524 msgstr ""
36525
36526 #. type: textblock
36527 #: ../src/guestfs.pod:574
36528 msgid ""
36529 "Add all disks belonging to the unknown virtual machine and call L</"
36530 "guestfs_launch> in the usual way."
36531 msgstr ""
36532
36533 #. type: textblock
36534 #: ../src/guestfs.pod:577
36535 msgid ""
36536 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
36537 "and certain heuristics, and returns a list of operating systems that were "
36538 "found.  An empty list means none were found.  A single element is the root "
36539 "filesystem of the operating system.  For dual- or multi-boot guests, "
36540 "multiple roots can be returned, each one corresponding to a separate "
36541 "operating system.  (Multi-boot virtual machines are extremely rare in the "
36542 "world of virtualization, but since this scenario can happen, we have built "
36543 "libguestfs to deal with it.)"
36544 msgstr ""
36545
36546 #. type: textblock
36547 #: ../src/guestfs.pod:586
36548 msgid ""
36549 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36550 "to get additional details about that operating system.  For example, call L</"
36551 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36552 "Windows and Linux-based operating systems respectively."
36553 msgstr ""
36554
36555 #. type: textblock
36556 #: ../src/guestfs.pod:592
36557 msgid ""
36558 "Un*x-like and Linux-based operating systems usually consist of several "
36559 "filesystems which are mounted at boot time (for example, a separate boot "
36560 "partition mounted on C</boot>).  The inspection rules are able to detect how "
36561 "filesystems correspond to mount points.  Call "
36562 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
36563 "hash table like this example:"
36564 msgstr ""
36565
36566 #. type: verbatim
36567 #: ../src/guestfs.pod:599
36568 #, no-wrap
36569 msgid ""
36570 " /boot => /dev/sda1\n"
36571 " /     => /dev/vg_guest/lv_root\n"
36572 " /usr  => /dev/vg_guest/lv_usr\n"
36573 "\n"
36574 msgstr ""
36575 " /boot => /dev/sda1\n"
36576 " /     => /dev/vg_guest/lv_root\n"
36577 " /usr  => /dev/vg_guest/lv_usr\n"
36578 "\n"
36579
36580 #. type: textblock
36581 #: ../src/guestfs.pod:603
36582 msgid ""
36583 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36584 "filesystems as suggested."
36585 msgstr ""
36586
36587 #. type: textblock
36588 #: ../src/guestfs.pod:606
36589 msgid ""
36590 "Be careful to mount filesystems in the right order (eg. C</> before C</"
36591 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
36592 msgstr ""
36593
36594 #. type: textblock
36595 #: ../src/guestfs.pod:610
36596 msgid ""
36597 "Inspection currently only works for some common operating systems.  "
36598 "Contributors are welcome to send patches for other operating systems that we "
36599 "currently cannot detect."
36600 msgstr ""
36601
36602 #. type: textblock
36603 #: ../src/guestfs.pod:614
36604 msgid ""
36605 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
36606 "for more details.  The L</guestfs_inspect_os> function just ignores any "
36607 "encrypted devices."
36608 msgstr ""
36609
36610 #. type: textblock
36611 #: ../src/guestfs.pod:618
36612 msgid ""
36613 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36614 "inspection and caches the results in the guest handle.  Subsequent calls to "
36615 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36616 "read the disks.  If you change the content of the guest disks, you can redo "
36617 "inspection by calling L</guestfs_inspect_os> again.  (L</"
36618 "guestfs_inspect_list_applications> works a little differently from the other "
36619 "calls and does read the disks.  See documentation for that function for "
36620 "details)."
36621 msgstr ""
36622
36623 #. type: =head3
36624 #: ../src/guestfs.pod:627
36625 msgid "INSPECTING INSTALL DISKS"
36626 msgstr ""
36627
36628 #. type: textblock
36629 #: ../src/guestfs.pod:629
36630 msgid ""
36631 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36632 "CDs and more."
36633 msgstr ""
36634
36635 #. type: textblock
36636 #: ../src/guestfs.pod:632
36637 msgid ""
36638 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36639 "system, which currently can be C<installed> (a regular operating system) or "
36640 "C<installer> (some sort of install disk)."
36641 msgstr ""
36642
36643 #. type: textblock
36644 #: ../src/guestfs.pod:636
36645 msgid ""
36646 "Further information is available about the operating system that can be "
36647 "installed using the regular inspection APIs like L</"
36648 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
36649 msgstr ""
36650
36651 #. type: textblock
36652 #: ../src/guestfs.pod:641
36653 msgid ""
36654 "Some additional information specific to installer disks is also available "
36655 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
36656 "guestfs_inspect_is_multipart> calls."
36657 msgstr ""
36658
36659 #. type: =head2
36660 #: ../src/guestfs.pod:646
36661 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36662 msgstr ""
36663
36664 #. type: textblock
36665 #: ../src/guestfs.pod:648
36666 msgid ""
36667 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
36668 "ntfs-3g.org/> driver."
36669 msgstr ""
36670
36671 #. type: =head3
36672 #: ../src/guestfs.pod:651
36673 msgid "DRIVE LETTERS AND PATHS"
36674 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
36675
36676 #. type: textblock
36677 #: ../src/guestfs.pod:653
36678 msgid ""
36679 "DOS and Windows still use drive letters, and the filesystems are always "
36680 "treated as case insensitive by Windows itself, and therefore you might find "
36681 "a Windows configuration file referring to a path like C<c:\\windows"
36682 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
36683 "might be referred to as C</WINDOWS/System32>."
36684 msgstr ""
36685
36686 #. type: textblock
36687 #: ../src/guestfs.pod:659
36688 msgid ""
36689 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36690 "L</guestfs_inspect_get_drive_mappings>)"
36691 msgstr ""
36692
36693 #. type: textblock
36694 #: ../src/guestfs.pod:662
36695 msgid ""
36696 "Dealing with separator characters (backslash vs forward slash) is outside "
36697 "the scope of libguestfs, but usually a simple character replacement will "
36698 "work."
36699 msgstr ""
36700
36701 #. type: textblock
36702 #: ../src/guestfs.pod:666
36703 msgid ""
36704 "To resolve the case insensitivity of paths, call L</"
36705 "guestfs_case_sensitive_path>."
36706 msgstr ""
36707
36708 #. type: =head3
36709 #: ../src/guestfs.pod:669
36710 msgid "ACCESSING THE WINDOWS REGISTRY"
36711 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
36712
36713 #. type: textblock
36714 #: ../src/guestfs.pod:671
36715 msgid ""
36716 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36717 "files, through the library C<hivex> which is part of the libguestfs project "
36718 "although ships as a separate tarball.  You have to locate and download the "
36719 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
36720 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
36721 "reg(1)> for more help on this issue."
36722 msgstr ""
36723
36724 #. type: =head3
36725 #: ../src/guestfs.pod:679
36726 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36727 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
36728
36729 #. type: textblock
36730 #: ../src/guestfs.pod:681
36731 msgid ""
36732 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36733 "provide something which looks like a Linux symlink.  The way it tries to do "
36734 "the rewriting is described here:"
36735 msgstr ""
36736
36737 #. type: textblock
36738 #: ../src/guestfs.pod:685
36739 msgid ""
36740 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36741 "symbolic-links/>"
36742 msgstr ""
36743 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36744 "symbolic-links/>"
36745
36746 #. type: textblock
36747 #: ../src/guestfs.pod:687
36748 msgid ""
36749 "The essential problem is that ntfs-3g simply does not have enough "
36750 "information to do a correct job.  NTFS links can contain drive letters and "
36751 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
36752 "It is almost certainly the case that libguestfs callers should ignore what "
36753 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36754 msgstr ""
36755
36756 #. type: textblock
36757 #: ../src/guestfs.pod:694
36758 msgid ""
36759 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
36760 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36761 "attribute, and read the raw reparse data from that (you can find the format "
36762 "documented in various places around the web)."
36763 msgstr ""
36764
36765 #. type: =head3
36766 #: ../src/guestfs.pod:699
36767 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36768 msgstr ""
36769
36770 #. type: textblock
36771 #: ../src/guestfs.pod:701
36772 msgid ""
36773 "There are other useful extended attributes that can be read from ntfs-3g "
36774 "filesystems (using L</guestfs_getxattr>).  See:"
36775 msgstr ""
36776
36777 #. type: textblock
36778 #: ../src/guestfs.pod:704
36779 msgid ""
36780 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36781 msgstr ""
36782 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36783
36784 #. type: =head2
36785 #: ../src/guestfs.pod:706
36786 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36787 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
36788
36789 #. type: textblock
36790 #: ../src/guestfs.pod:708
36791 msgid ""
36792 "Although we don't want to discourage you from using the C API, we will "
36793 "mention here that the same API is also available in other languages."
36794 msgstr ""
36795
36796 #. type: textblock
36797 #: ../src/guestfs.pod:711
36798 msgid ""
36799 "The API is broadly identical in all supported languages.  This means that "
36800 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36801 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36802 "OCaml.  In other words, a straightforward, predictable isomorphism between "
36803 "each language."
36804 msgstr ""
36805
36806 #. type: textblock
36807 #: ../src/guestfs.pod:717
36808 msgid ""
36809 "Error messages are automatically transformed into exceptions if the language "
36810 "supports it."
36811 msgstr ""
36812
36813 #. type: textblock
36814 #: ../src/guestfs.pod:720
36815 msgid ""
36816 "We don't try to \"object orientify\" parts of the API in OO languages, "
36817 "although contributors are welcome to write higher level APIs above what we "
36818 "provide in their favourite languages if they wish."
36819 msgstr ""
36820
36821 #. type: =item
36822 #: ../src/guestfs.pod:726
36823 msgid "B<C++>"
36824 msgstr "B<C++>"
36825
36826 #. type: textblock
36827 #: ../src/guestfs.pod:728
36828 msgid ""
36829 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
36830 "identical to the C API.  C++ classes and exceptions are not used."
36831 msgstr ""
36832
36833 #. type: =item
36834 #: ../src/guestfs.pod:732
36835 msgid "B<C#>"
36836 msgstr "B<C#>"
36837
36838 #. type: textblock
36839 #: ../src/guestfs.pod:734
36840 msgid ""
36841 "The C# bindings are highly experimental.  Please read the warnings at the "
36842 "top of C<csharp/Libguestfs.cs>."
36843 msgstr ""
36844
36845 #. type: =item
36846 #: ../src/guestfs.pod:737
36847 msgid "B<Erlang>"
36848 msgstr ""
36849
36850 #. type: textblock
36851 #: ../src/guestfs.pod:739
36852 msgid "See L<guestfs-erlang(3)>."
36853 msgstr ""
36854
36855 #. type: =item
36856 #: ../src/guestfs.pod:741
36857 msgid "B<Haskell>"
36858 msgstr "B<Haskell>"
36859
36860 #. type: textblock
36861 #: ../src/guestfs.pod:743
36862 msgid ""
36863 "This is the only language binding that is working but incomplete.  Only "
36864 "calls which return simple integers have been bound in Haskell, and we are "
36865 "looking for help to complete this binding."
36866 msgstr ""
36867
36868 #. type: =item
36869 #: ../src/guestfs.pod:747
36870 msgid "B<Java>"
36871 msgstr "B<Java>"
36872
36873 #. type: textblock
36874 #: ../src/guestfs.pod:749
36875 msgid ""
36876 "Full documentation is contained in the Javadoc which is distributed with "
36877 "libguestfs.  For examples, see L<guestfs-java(3)>."
36878 msgstr ""
36879
36880 #. type: =item
36881 #: ../src/guestfs.pod:752
36882 msgid "B<OCaml>"
36883 msgstr "B<OCaml>"
36884
36885 #. type: textblock
36886 #: ../src/guestfs.pod:754
36887 msgid "See L<guestfs-ocaml(3)>."
36888 msgstr "Див. L<guestfs-ocaml(3)>."
36889
36890 #. type: =item
36891 #: ../src/guestfs.pod:756
36892 msgid "B<Perl>"
36893 msgstr "B<Perl>"
36894
36895 #. type: textblock
36896 #: ../src/guestfs.pod:758
36897 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36898 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
36899
36900 #. type: =item
36901 #: ../src/guestfs.pod:760
36902 msgid "B<PHP>"
36903 msgstr "B<PHP>"
36904
36905 #. type: textblock
36906 #: ../src/guestfs.pod:762
36907 msgid ""
36908 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36909 "the php-libguestfs package for your distribution."
36910 msgstr ""
36911
36912 #. type: textblock
36913 #: ../src/guestfs.pod:765
36914 msgid "The PHP binding only works correctly on 64 bit machines."
36915 msgstr ""
36916
36917 #. type: =item
36918 #: ../src/guestfs.pod:767
36919 msgid "B<Python>"
36920 msgstr "B<Python>"
36921
36922 #. type: textblock
36923 #: ../src/guestfs.pod:769
36924 msgid "See L<guestfs-python(3)>."
36925 msgstr "Див. L<guestfs-python(3)>."
36926
36927 #. type: =item
36928 #: ../src/guestfs.pod:771
36929 msgid "B<Ruby>"
36930 msgstr "B<Ruby>"
36931
36932 #. type: textblock
36933 #: ../src/guestfs.pod:773
36934 msgid "See L<guestfs-ruby(3)>."
36935 msgstr "Див. L<guestfs-ruby(3)>."
36936
36937 #. type: =item
36938 #: ../src/guestfs.pod:775
36939 msgid "B<shell scripts>"
36940 msgstr "B<скрипти оболонки>"
36941
36942 #. type: textblock
36943 #: ../src/guestfs.pod:777
36944 msgid "See L<guestfish(1)>."
36945 msgstr "Див. L<guestfish(1)>."
36946
36947 #. type: =head2
36948 #: ../src/guestfs.pod:781
36949 msgid "LIBGUESTFS GOTCHAS"
36950 msgstr ""
36951
36952 #. type: textblock
36953 #: ../src/guestfs.pod:783
36954 msgid ""
36955 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36956 "system [...] that works in the way it is documented but is counterintuitive "
36957 "and almost invites mistakes.\""
36958 msgstr ""
36959
36960 #. type: textblock
36961 #: ../src/guestfs.pod:787
36962 msgid ""
36963 "Since we developed libguestfs and the associated tools, there are several "
36964 "things we would have designed differently, but are now stuck with for "
36965 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
36966 "release, you can expect these to change.  Beware of them."
36967 msgstr ""
36968
36969 #. type: =item
36970 #: ../src/guestfs.pod:795
36971 msgid "Autosync / forgetting to sync."
36972 msgstr ""
36973
36974 #. type: textblock
36975 #: ../src/guestfs.pod:797
36976 msgid ""
36977 "I<Update:> Autosync is enabled by default for all API users starting from "
36978 "libguestfs 1.5.24.  This section only applies to older versions."
36979 msgstr ""
36980
36981 #. type: textblock
36982 #: ../src/guestfs.pod:800
36983 msgid ""
36984 "When modifying a filesystem from C or another language, you B<must> unmount "
36985 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36986 "libguestfs handle.  You can also call:"
36987 msgstr ""
36988
36989 #. type: verbatim
36990 #: ../src/guestfs.pod:804
36991 #, no-wrap
36992 msgid ""
36993 " guestfs_set_autosync (g, 1);\n"
36994 "\n"
36995 msgstr ""
36996 " guestfs_set_autosync (g, 1);\n"
36997 "\n"
36998
36999 #. type: textblock
37000 #: ../src/guestfs.pod:806
37001 msgid ""
37002 "to have the unmount/sync done automatically for you when the handle 'g' is "
37003 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
37004 msgstr ""
37005
37006 #. type: textblock
37007 #: ../src/guestfs.pod:810
37008 msgid ""
37009 "If you forget to do this, then it is entirely possible that your changes "
37010 "won't be written out, or will be partially written, or (very rarely) that "
37011 "you'll get disk corruption."
37012 msgstr ""
37013
37014 #. type: textblock
37015 #: ../src/guestfs.pod:814
37016 msgid ""
37017 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
37018 "guestfish scripts that forget to sync will work just fine, which can make "
37019 "this very puzzling if you are trying to debug a problem."
37020 msgstr ""
37021
37022 #. type: =item
37023 #: ../src/guestfs.pod:818
37024 msgid "Mount option C<-o sync> should not be the default."
37025 msgstr ""
37026
37027 #. type: textblock
37028 #: ../src/guestfs.pod:820
37029 msgid ""
37030 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
37031 "libguestfs 1.13.16.  This section only applies to older versions."
37032 msgstr ""
37033
37034 #. type: textblock
37035 #: ../src/guestfs.pod:823
37036 msgid ""
37037 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
37038 "However C<-o sync> does not add any reliability benefit, but does have a "
37039 "very large performance impact."
37040 msgstr ""
37041
37042 #. type: textblock
37043 #: ../src/guestfs.pod:827
37044 msgid ""
37045 "The work around is to use L</guestfs_mount_options> and set the mount "
37046 "options that you actually want to use."
37047 msgstr ""
37048
37049 #. type: =item
37050 #: ../src/guestfs.pod:830
37051 msgid "Read-only should be the default."
37052 msgstr ""
37053
37054 #. type: textblock
37055 #: ../src/guestfs.pod:832
37056 msgid ""
37057 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
37058 "specify I<--rw> if you want to make changes to the image."
37059 msgstr ""
37060
37061 #. type: textblock
37062 #: ../src/guestfs.pod:835
37063 msgid "This would reduce the potential to corrupt live VM images."
37064 msgstr ""
37065
37066 #. type: textblock
37067 #: ../src/guestfs.pod:837
37068 msgid ""
37069 "Note that many filesystems change the disk when you just mount and unmount, "
37070 "even if you didn't perform any writes.  You need to use L</"
37071 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
37072 msgstr ""
37073
37074 #. type: =item
37075 #: ../src/guestfs.pod:841
37076 msgid "guestfish command line is hard to use."
37077 msgstr ""
37078
37079 #. type: textblock
37080 #: ../src/guestfs.pod:843
37081 msgid ""
37082 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
37083 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
37084 "exist, so it fails.  In earlier versions of guestfish the error message was "
37085 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
37086 "we should have used C<guestfish -c command> to run commands."
37087 msgstr ""
37088
37089 #. type: =item
37090 #: ../src/guestfs.pod:850
37091 msgid "guestfish megabyte modifiers don't work right on all commands"
37092 msgstr ""
37093
37094 #. type: textblock
37095 #: ../src/guestfs.pod:852
37096 msgid ""
37097 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37098 "other modifiers).  What guestfish actually does is to multiply the number "
37099 "part by the modifier part and pass the result to the C API.  However this "
37100 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37101 "expecting some other unit (eg. megabytes)."
37102 msgstr ""
37103
37104 #. type: textblock
37105 #: ../src/guestfs.pod:859
37106 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
37107 msgstr ""
37108
37109 #. type: verbatim
37110 #: ../src/guestfs.pod:861
37111 #, no-wrap
37112 msgid ""
37113 " lvcreate LV VG 100M\n"
37114 "\n"
37115 msgstr ""
37116 " lvcreate LV VG 100M\n"
37117 "\n"
37118
37119 #. type: textblock
37120 #: ../src/guestfs.pod:863
37121 msgid ""
37122 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
37123 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37124 "megabytes * megabytes) logical volume.  The error message you get from this "
37125 "is also a little obscure."
37126 msgstr ""
37127
37128 #. type: textblock
37129 #: ../src/guestfs.pod:868
37130 msgid ""
37131 "This could be fixed in the generator by specially marking parameters and "
37132 "return values which take bytes or other units."
37133 msgstr ""
37134
37135 #. type: =item
37136 #: ../src/guestfs.pod:871
37137 msgid "Ambiguity between devices and paths"
37138 msgstr ""
37139
37140 #. type: textblock
37141 #: ../src/guestfs.pod:873
37142 msgid ""
37143 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37144 "sdb2>) and a similar pathname.  A file might just happen to be called "
37145 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37146 msgstr ""
37147
37148 #. type: textblock
37149 #: ../src/guestfs.pod:878
37150 msgid ""
37151 "In the current API we usually resolve this ambiguity by having two separate "
37152 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
37153 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37154 "detecting if the path supplied begins with C</dev/>."
37155 msgstr ""
37156
37157 #. type: textblock
37158 #: ../src/guestfs.pod:884
37159 msgid ""
37160 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37161 "make paths/devices into structured names.  One way to do this would be to "
37162 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37163 "aspect of grub.  Another way would be to use a structured type, equivalent "
37164 "to this OCaml type:"
37165 msgstr ""
37166
37167 #. type: verbatim
37168 #: ../src/guestfs.pod:890
37169 #, no-wrap
37170 msgid ""
37171 " type path = Path of string | Device of int | Partition of int * int\n"
37172 "\n"
37173 msgstr ""
37174
37175 #. type: textblock
37176 #: ../src/guestfs.pod:892
37177 msgid "which would allow you to pass arguments like:"
37178 msgstr ""
37179
37180 #. type: verbatim
37181 #: ../src/guestfs.pod:894
37182 #, no-wrap
37183 msgid ""
37184 " Path \"/foo/bar\"\n"
37185 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
37186 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37187 " Path \"/dev/sdb2\"    (* not a device *)\n"
37188 "\n"
37189 msgstr ""
37190
37191 #. type: textblock
37192 #: ../src/guestfs.pod:899
37193 msgid ""
37194 "As you can see there are still problems to resolve even with this "
37195 "representation.  Also consider how it might work in guestfish."
37196 msgstr ""
37197
37198 #. type: =head2
37199 #: ../src/guestfs.pod:904
37200 msgid "KEYS AND PASSPHRASES"
37201 msgstr "КЛЮЧІ І ПАРОЛІ"
37202
37203 #. type: textblock
37204 #: ../src/guestfs.pod:906
37205 msgid ""
37206 "Certain libguestfs calls take a parameter that contains sensitive key "
37207 "material, passed in as a C string."
37208 msgstr ""
37209
37210 #. type: textblock
37211 #: ../src/guestfs.pod:909
37212 msgid ""
37213 "In the future we would hope to change the libguestfs implementation so that "
37214 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37215 "swap.  However this is I<not> done at the moment, because of the complexity "
37216 "of such an implementation."
37217 msgstr ""
37218
37219 #. type: textblock
37220 #: ../src/guestfs.pod:914
37221 msgid ""
37222 "Therefore you should be aware that any key parameter you pass to libguestfs "
37223 "might end up being written out to the swap partition.  If this is a concern, "
37224 "scrub the swap partition or don't use libguestfs on encrypted devices."
37225 msgstr ""
37226
37227 #. type: =head2
37228 #: ../src/guestfs.pod:919
37229 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37230 msgstr ""
37231
37232 #. type: textblock
37233 #: ../src/guestfs.pod:921
37234 msgid ""
37235 "All high-level libguestfs actions are synchronous.  If you want to use "
37236 "libguestfs asynchronously then you must create a thread."
37237 msgstr ""
37238
37239 #. type: textblock
37240 #: ../src/guestfs.pod:924
37241 msgid ""
37242 "Only use the handle from a single thread.  Either use the handle exclusively "
37243 "from one thread, or provide your own mutex so that two threads cannot issue "
37244 "calls on the same handle at the same time."
37245 msgstr ""
37246
37247 #. type: textblock
37248 #: ../src/guestfs.pod:928
37249 msgid ""
37250 "See the graphical program guestfs-browser for one possible architecture for "
37251 "multithreaded programs using libvirt and libguestfs."
37252 msgstr ""
37253
37254 #. type: =head2
37255 #: ../src/guestfs.pod:931
37256 msgid "PATH"
37257 msgstr "ШЛЯХ"
37258
37259 #. type: textblock
37260 #: ../src/guestfs.pod:933
37261 msgid ""
37262 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37263 "internal path."
37264 msgstr ""
37265
37266 #. type: textblock
37267 #: ../src/guestfs.pod:936
37268 msgid ""
37269 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
37270 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37271 msgstr ""
37272
37273 #. type: textblock
37274 #: ../src/guestfs.pod:939
37275 msgid ""
37276 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
37277 "to change the directories that libguestfs will search in.  The value is a "
37278 "colon-separated list of paths.  The current directory is I<not> searched "
37279 "unless the path contains an empty element or C<.>.  For example "
37280 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37281 "then C</usr/lib/guestfs>."
37282 msgstr ""
37283
37284 #. type: =head2
37285 #: ../src/guestfs.pod:946
37286 msgid "QEMU WRAPPERS"
37287 msgstr ""
37288
37289 #. type: textblock
37290 #: ../src/guestfs.pod:948
37291 msgid ""
37292 "If you want to compile your own qemu, run qemu from a non-standard location, "
37293 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
37294 "around qemu."
37295 msgstr ""
37296
37297 #. type: textblock
37298 #: ../src/guestfs.pod:952
37299 msgid ""
37300 "There is one important rule to remember: you I<must C<exec qemu>> as the "
37301 "last command in the shell script (so that qemu replaces the shell and "
37302 "becomes the direct child of the libguestfs-using program).  If you don't do "
37303 "this, then the qemu process won't be cleaned up correctly."
37304 msgstr ""
37305
37306 #. type: textblock
37307 #: ../src/guestfs.pod:957
37308 msgid ""
37309 "Here is an example of a wrapper, where I have built my own copy of qemu from "
37310 "source:"
37311 msgstr ""
37312
37313 #. type: verbatim
37314 #: ../src/guestfs.pod:960
37315 #, no-wrap
37316 msgid ""
37317 " #!/bin/sh -\n"
37318 " qemudir=/home/rjones/d/qemu\n"
37319 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37320 "\n"
37321 msgstr ""
37322 " #!/bin/sh -\n"
37323 " qemudir=/home/rjones/d/qemu\n"
37324 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37325 "\n"
37326
37327 #. type: textblock
37328 #: ../src/guestfs.pod:964
37329 msgid ""
37330 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
37331 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
37332 "example:"
37333 msgstr ""
37334
37335 #. type: verbatim
37336 #: ../src/guestfs.pod:968
37337 #, no-wrap
37338 msgid ""
37339 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37340 "\n"
37341 msgstr ""
37342 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37343 "\n"
37344
37345 #. type: textblock
37346 #: ../src/guestfs.pod:970
37347 msgid ""
37348 "Note that libguestfs also calls qemu with the -help and -version options in "
37349 "order to determine features."
37350 msgstr ""
37351
37352 #. type: textblock
37353 #: ../src/guestfs.pod:973
37354 msgid ""
37355 "Wrappers can also be used to edit the options passed to qemu.  In the "
37356 "following example, the C<-machine ...> option (C<-machine> and the following "
37357 "argument) are removed from the command line and replaced with C<-machine pc,"
37358 "accel=tcg>.  The while loop iterates over the options until it finds the "
37359 "right one to remove, putting the remaining options into the C<args> array."
37360 msgstr ""
37361
37362 #. type: verbatim
37363 #: ../src/guestfs.pod:982
37364 #, no-wrap
37365 msgid ""
37366 " i=0\n"
37367 " while [ $# -gt 0 ]; do\n"
37368 "     case \"$1\" in\n"
37369 "     -machine)\n"
37370 "         shift 2;;\n"
37371 "     *)\n"
37372 "         args[i]=\"$1\"\n"
37373 "         (( i++ ))\n"
37374 "         shift ;;\n"
37375 "     esac\n"
37376 " done\n"
37377 " \n"
37378 msgstr ""
37379
37380 #. type: verbatim
37381 #: ../src/guestfs.pod:994
37382 #, no-wrap
37383 msgid ""
37384 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
37385 "\n"
37386 msgstr ""
37387
37388 #. type: =head2
37389 #: ../src/guestfs.pod:996
37390 msgid "ATTACHING TO RUNNING DAEMONS"
37391 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
37392
37393 #. type: textblock
37394 #: ../src/guestfs.pod:998
37395 msgid ""
37396 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
37397 "babies.  Use with caution."
37398 msgstr ""
37399
37400 #. type: textblock
37401 #: ../src/guestfs.pod:1001
37402 msgid ""
37403 "I<Note (2):> This section explains how to attach to a running daemon from a "
37404 "low level perspective.  For most users, simply using virt tools such as "
37405 "L<guestfish(1)> with the I<--live> option will \"just work\"."
37406 msgstr ""
37407
37408 #. type: =head3
37409 #: ../src/guestfs.pod:1005
37410 msgid "Using guestfs_set_attach_method"
37411 msgstr "За допомогою guestfs_set_attach_method"
37412
37413 #. type: textblock
37414 #: ../src/guestfs.pod:1007
37415 msgid ""
37416 "By calling L</guestfs_set_attach_method> you can change how the library "
37417 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
37418 "ARCHITECTURE> for some background)."
37419 msgstr ""
37420
37421 #. type: textblock
37422 #: ../src/guestfs.pod:1011
37423 msgid ""
37424 "The normal attach method is C<appliance>, where a small appliance is created "
37425 "containing the daemon, and then the library connects to this."
37426 msgstr ""
37427
37428 #. type: textblock
37429 #: ../src/guestfs.pod:1014
37430 msgid ""
37431 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
37432 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
37433 "daemon over the Unix domain socket."
37434 msgstr ""
37435
37436 #. type: textblock
37437 #: ../src/guestfs.pod:1018
37438 msgid ""
37439 "The normal use for this is to connect to a running virtual machine that "
37440 "contains a C<guestfsd> daemon, and send commands so you can read and write "
37441 "files inside the live virtual machine."
37442 msgstr ""
37443
37444 #. type: =head3
37445 #: ../src/guestfs.pod:1022
37446 msgid "Using guestfs_add_domain with live flag"
37447 msgstr "За допомогою guestfs_add_domain з прапорцем live"
37448
37449 #. type: textblock
37450 #: ../src/guestfs.pod:1024
37451 msgid ""
37452 "L</guestfs_add_domain> provides some help for getting the correct attach "
37453 "method.  If you pass the C<live> option to this function, then (if the "
37454 "virtual machine is running) it will examine the libvirt XML looking for a "
37455 "virtio-serial channel to connect to:"
37456 msgstr ""
37457
37458 #. type: verbatim
37459 #: ../src/guestfs.pod:1030
37460 #, no-wrap
37461 msgid ""
37462 " <domain>\n"
37463 "   ...\n"
37464 "   <devices>\n"
37465 "     ...\n"
37466 "     <channel type='unix'>\n"
37467 "       <source mode='bind' path='/path/to/socket'/>\n"
37468 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37469 "     </channel>\n"
37470 "     ...\n"
37471 "   </devices>\n"
37472 " </domain>\n"
37473 "\n"
37474 msgstr ""
37475 " <domain>\n"
37476 "   ...\n"
37477 "   <devices>\n"
37478 "     ...\n"
37479 "     <channel type='unix'>\n"
37480 "       <source mode='bind' path='/path/to/socket'/>\n"
37481 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37482 "     </channel>\n"
37483 "     ...\n"
37484 "   </devices>\n"
37485 " </domain>\n"
37486 "\n"
37487
37488 #. type: textblock
37489 #: ../src/guestfs.pod:1042
37490 msgid ""
37491 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
37492 "method to C<unix:/path/to/socket>."
37493 msgstr ""
37494
37495 #. type: textblock
37496 #: ../src/guestfs.pod:1045
37497 msgid ""
37498 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37499 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37500 "to attach to and modify live virtual machines."
37501 msgstr ""
37502
37503 #. type: textblock
37504 #: ../src/guestfs.pod:1049
37505 msgid ""
37506 "The virtual machine needs to have been set up beforehand so that it has the "
37507 "virtio-serial channel and so that guestfsd is running inside it."
37508 msgstr ""
37509
37510 #. type: =head2
37511 #: ../src/guestfs.pod:1053
37512 msgid "ABI GUARANTEE"
37513 msgstr "ГАРАНТІЯ ЩОДО ABI"
37514
37515 #. type: textblock
37516 #: ../src/guestfs.pod:1055
37517 msgid ""
37518 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37519 "actions as outlined in this section.  Although we will deprecate some "
37520 "actions, for example if they get replaced by newer calls, we will keep the "
37521 "old actions forever.  This allows you the developer to program in confidence "
37522 "against the libguestfs API."
37523 msgstr ""
37524
37525 #. type: =head2
37526 #: ../src/guestfs.pod:1061
37527 msgid "BLOCK DEVICE NAMING"
37528 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
37529
37530 #. type: textblock
37531 #: ../src/guestfs.pod:1063
37532 msgid ""
37533 "In the kernel there is now quite a profusion of schemata for naming block "
37534 "devices (in this context, by I<block device> I mean a physical or virtual "
37535 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
37536 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
37537 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
37538 "for the old IDE driver (particularly for SATA devices) those devices also "
37539 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
37540 "paravirtualized drivers.  This has created several different naming systems, "
37541 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
37542 msgstr ""
37543
37544 #. type: textblock
37545 #: ../src/guestfs.pod:1075
37546 msgid ""
37547 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37548 "Linux kernel to access block devices.  We can run a variety of appliances "
37549 "based on a variety of Linux kernels."
37550 msgstr ""
37551
37552 #. type: textblock
37553 #: ../src/guestfs.pod:1079
37554 msgid ""
37555 "This causes a problem for libguestfs because many API calls use device or "
37556 "partition names.  Working scripts and the recipe (example) scripts that we "
37557 "make available over the internet could fail if the naming scheme changes."
37558 msgstr ""
37559
37560 #. type: textblock
37561 #: ../src/guestfs.pod:1084
37562 msgid ""
37563 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
37564 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37565 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37566 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37567 msgstr ""
37568
37569 #. type: textblock
37570 #: ../src/guestfs.pod:1090
37571 msgid ""
37572 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
37573 "L</guestfs_list_partitions> and similar calls return the true names of the "
37574 "devices and partitions as known to the appliance."
37575 msgstr ""
37576
37577 #. type: =head3
37578 #: ../src/guestfs.pod:1095
37579 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37580 msgstr ""
37581
37582 #. type: textblock
37583 #: ../src/guestfs.pod:1097
37584 msgid ""
37585 "Usually this translation is transparent.  However in some (very rare)  cases "
37586 "you may need to know the exact algorithm.  Such cases include where you use "
37587 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37588 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37589 msgstr ""
37590
37591 #. type: textblock
37592 #: ../src/guestfs.pod:1103
37593 msgid ""
37594 "The algorithm is applied only to I<parameters> which are known to be either "
37595 "device or partition names.  Return values from functions such as L</"
37596 "guestfs_list_devices> are never changed."
37597 msgstr ""
37598
37599 #. type: textblock
37600 #: ../src/guestfs.pod:1111
37601 msgid "Is the string a parameter which is a device or partition name?"
37602 msgstr ""
37603
37604 #. type: textblock
37605 #: ../src/guestfs.pod:1115
37606 msgid "Does the string begin with C</dev/sd>?"
37607 msgstr "Чи починається рядок з C</dev/sd>?"
37608
37609 #. type: textblock
37610 #: ../src/guestfs.pod:1119
37611 msgid ""
37612 "Does the named device exist? If so, we use that device.  However if I<not> "
37613 "then we continue with this algorithm."
37614 msgstr ""
37615
37616 #. type: textblock
37617 #: ../src/guestfs.pod:1124
37618 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37619 msgstr ""
37620
37621 #. type: textblock
37622 #: ../src/guestfs.pod:1126
37623 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37624 msgstr ""
37625
37626 #. type: textblock
37627 #: ../src/guestfs.pod:1128
37628 msgid "If that named device exists, use it.  If not, continue."
37629 msgstr ""
37630
37631 #. type: textblock
37632 #: ../src/guestfs.pod:1132
37633 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37634 msgstr ""
37635
37636 #. type: textblock
37637 #: ../src/guestfs.pod:1134
37638 msgid "If that named device exists, use it.  If not, return an error."
37639 msgstr ""
37640
37641 #. type: =head3
37642 #: ../src/guestfs.pod:1138
37643 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37644 msgstr ""
37645
37646 #. type: textblock
37647 #: ../src/guestfs.pod:1140
37648 msgid ""
37649 "Although the standard naming scheme and automatic translation is useful for "
37650 "simple programs and guestfish scripts, for larger programs it is best not to "
37651 "rely on this mechanism."
37652 msgstr ""
37653
37654 #. type: textblock
37655 #: ../src/guestfs.pod:1144
37656 msgid ""
37657 "Where possible for maximum future portability programs using libguestfs "
37658 "should use these future-proof techniques:"
37659 msgstr ""
37660
37661 #. type: textblock
37662 #: ../src/guestfs.pod:1151
37663 msgid ""
37664 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37665 "device names, and then use those names directly."
37666 msgstr ""
37667
37668 #. type: textblock
37669 #: ../src/guestfs.pod:1154
37670 msgid ""
37671 "Since those device names exist by definition, they will never be translated."
37672 msgstr ""
37673
37674 #. type: textblock
37675 #: ../src/guestfs.pod:1159
37676 msgid ""
37677 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37678 "filesystem labels."
37679 msgstr ""
37680
37681 #. type: textblock
37682 #: ../src/guestfs.pod:1166
37683 msgid ""
37684 "This section discusses security implications of using libguestfs, "
37685 "particularly with untrusted or malicious guests or disk images."
37686 msgstr ""
37687
37688 #. type: =head2
37689 #: ../src/guestfs.pod:1169
37690 msgid "GENERAL SECURITY CONSIDERATIONS"
37691 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
37692
37693 #. type: textblock
37694 #: ../src/guestfs.pod:1171
37695 msgid ""
37696 "Be careful with any files or data that you download from a guest (by "
37697 "\"download\" we mean not just the L</guestfs_download> command but any "
37698 "command that reads files, filenames, directories or anything else from a "
37699 "disk image).  An attacker could manipulate the data to fool your program "
37700 "into doing the wrong thing.  Consider cases such as:"
37701 msgstr ""
37702
37703 #. type: textblock
37704 #: ../src/guestfs.pod:1181
37705 msgid "the data (file etc) not being present"
37706 msgstr ""
37707
37708 #. type: textblock
37709 #: ../src/guestfs.pod:1185
37710 msgid "being present but empty"
37711 msgstr ""
37712
37713 #. type: textblock
37714 #: ../src/guestfs.pod:1189
37715 msgid "being much larger than normal"
37716 msgstr ""
37717
37718 #. type: textblock
37719 #: ../src/guestfs.pod:1193
37720 msgid "containing arbitrary 8 bit data"
37721 msgstr ""
37722
37723 #. type: textblock
37724 #: ../src/guestfs.pod:1197
37725 msgid "being in an unexpected character encoding"
37726 msgstr ""
37727
37728 #. type: textblock
37729 #: ../src/guestfs.pod:1201
37730 msgid "containing homoglyphs."
37731 msgstr ""
37732
37733 #. type: =head2
37734 #: ../src/guestfs.pod:1205
37735 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37736 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
37737
37738 #. type: textblock
37739 #: ../src/guestfs.pod:1207
37740 msgid ""
37741 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37742 "(VFS) module can sometimes be escalated into exploits by deliberately "
37743 "creating a malicious, malformed filesystem.  These exploits are very severe "
37744 "for two reasons.  Firstly there are very many filesystem drivers in the "
37745 "kernel, and many of them are infrequently used and not much developer "
37746 "attention has been paid to the code.  Linux userspace helps potential "
37747 "crackers by detecting the filesystem type and automatically choosing the "
37748 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37749 "the administrator.  Secondly, a kernel-level exploit is like a local root "
37750 "exploit (worse in some ways), giving immediate and total access to the "
37751 "system right down to the hardware level."
37752 msgstr ""
37753
37754 #. type: textblock
37755 #: ../src/guestfs.pod:1220
37756 msgid ""
37757 "That explains why you should never mount a filesystem from an untrusted "
37758 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
37759 "inside a qemu virtual machine, usually running as a non-root user.  The "
37760 "attacker would need to write a filesystem which first exploited the kernel, "
37761 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37762 "the libguestfs protocol, and finally to be as serious as the host kernel "
37763 "exploit it would need to escalate its privileges to root.  This multi-step "
37764 "escalation, performed by a static piece of data, is thought to be extremely "
37765 "hard to do, although we never say 'never' about security issues."
37766 msgstr ""
37767
37768 #. type: textblock
37769 #: ../src/guestfs.pod:1231
37770 msgid ""
37771 "In any case callers can reduce the attack surface by forcing the filesystem "
37772 "type when mounting (use L</guestfs_mount_vfs>)."
37773 msgstr ""
37774
37775 #. type: =head2
37776 #: ../src/guestfs.pod:1234
37777 msgid "PROTOCOL SECURITY"
37778 msgstr "ЗАХИСТ ПРОТОКОЛУ"
37779
37780 #. type: textblock
37781 #: ../src/guestfs.pod:1236
37782 msgid ""
37783 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
37784 "defined upper message size.  However a program that uses libguestfs must "
37785 "also take care - for example you can write a program that downloads a binary "
37786 "from a disk image and executes it locally, and no amount of protocol "
37787 "security will save you from the consequences."
37788 msgstr ""
37789
37790 #. type: =head2
37791 #: ../src/guestfs.pod:1242
37792 msgid "INSPECTION SECURITY"
37793 msgstr ""
37794
37795 #. type: textblock
37796 #: ../src/guestfs.pod:1244
37797 msgid ""
37798 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37799 "directly from the guest, and these could contain any 8 bit data.  Callers "
37800 "should be careful to escape these before printing them to a structured file "
37801 "(for example, use HTML escaping if creating a web page)."
37802 msgstr ""
37803
37804 #. type: textblock
37805 #: ../src/guestfs.pod:1250
37806 msgid ""
37807 "Guest configuration may be altered in unusual ways by the administrator of "
37808 "the virtual machine, and may not reflect reality (particularly for untrusted "
37809 "or actively malicious guests).  For example we parse the hostname from "
37810 "configuration files like C</etc/sysconfig/network> that we find in the "
37811 "guest, but the guest administrator can easily manipulate these files to "
37812 "provide the wrong hostname."
37813 msgstr ""
37814
37815 #. type: textblock
37816 #: ../src/guestfs.pod:1258
37817 msgid ""
37818 "The inspection API parses guest configuration using two external libraries: "
37819 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
37820 "designed to be robust in the face of malicious data, although denial of "
37821 "service attacks are still possible, for example with oversized configuration "
37822 "files."
37823 msgstr ""
37824
37825 #. type: =head2
37826 #: ../src/guestfs.pod:1264
37827 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37828 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
37829
37830 #. type: textblock
37831 #: ../src/guestfs.pod:1266
37832 msgid ""
37833 "Be very cautious about running commands from the guest.  By running a "
37834 "command in the guest, you are giving CPU time to a binary that you do not "
37835 "control, under the same user account as the library, albeit wrapped in qemu "
37836 "virtualization.  More information and alternatives can be found in the "
37837 "section L</RUNNING COMMANDS>."
37838 msgstr ""
37839
37840 #. type: =head2
37841 #: ../src/guestfs.pod:1272
37842 msgid "CVE-2010-3851"
37843 msgstr "CVE-2010-3851"
37844
37845 #. type: textblock
37846 #: ../src/guestfs.pod:1274
37847 msgid "https://bugzilla.redhat.com/642934"
37848 msgstr "https://bugzilla.redhat.com/642934"
37849
37850 #. type: textblock
37851 #: ../src/guestfs.pod:1276
37852 msgid ""
37853 "This security bug concerns the automatic disk format detection that qemu "
37854 "does on disk images."
37855 msgstr ""
37856
37857 #. type: textblock
37858 #: ../src/guestfs.pod:1279
37859 msgid ""
37860 "A raw disk image is just the raw bytes, there is no header.  Other disk "
37861 "images like qcow2 contain a special header.  Qemu deals with this by looking "
37862 "for one of the known headers, and if none is found then assuming the disk "
37863 "image must be raw."
37864 msgstr ""
37865
37866 #. type: textblock
37867 #: ../src/guestfs.pod:1284
37868 msgid ""
37869 "This allows a guest which has been given a raw disk image to write some "
37870 "other header.  At next boot (or when the disk image is accessed by "
37871 "libguestfs) qemu would do autodetection and think the disk image format was, "
37872 "say, qcow2 based on the header written by the guest."
37873 msgstr ""
37874
37875 #. type: textblock
37876 #: ../src/guestfs.pod:1289
37877 msgid ""
37878 "This in itself would not be a problem, but qcow2 offers many features, one "
37879 "of which is to allow a disk image to refer to another image (called the "
37880 "\"backing disk\").  It does this by placing the path to the backing disk "
37881 "into the qcow2 header.  This path is not validated and could point to any "
37882 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
37883 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37884 "control of the attacker."
37885 msgstr ""
37886
37887 #. type: textblock
37888 #: ../src/guestfs.pod:1297
37889 msgid ""
37890 "In libguestfs this is rather hard to exploit except under two circumstances:"
37891 msgstr ""
37892
37893 #. type: textblock
37894 #: ../src/guestfs.pod:1304
37895 msgid "You have enabled the network or have opened the disk in write mode."
37896 msgstr ""
37897
37898 #. type: textblock
37899 #: ../src/guestfs.pod:1308
37900 msgid ""
37901 "You are also running untrusted code from the guest (see L</RUNNING "
37902 "COMMANDS>)."
37903 msgstr ""
37904
37905 #. type: textblock
37906 #: ../src/guestfs.pod:1313
37907 msgid ""
37908 "The way to avoid this is to specify the expected disk format when adding "
37909 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
37910 "should always do this if the disk is raw format, and it's a good idea for "
37911 "other cases too."
37912 msgstr ""
37913
37914 #. type: textblock
37915 #: ../src/guestfs.pod:1318
37916 msgid ""
37917 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37918 "format is fetched from libvirt and passed through."
37919 msgstr ""
37920
37921 #. type: textblock
37922 #: ../src/guestfs.pod:1321
37923 msgid ""
37924 "For libguestfs tools, use the I<--format> command line parameter as "
37925 "appropriate."
37926 msgstr ""
37927
37928 #. type: =head1
37929 #: ../src/guestfs.pod:1324
37930 msgid "CONNECTION MANAGEMENT"
37931 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
37932
37933 #. type: =head2
37934 #: ../src/guestfs.pod:1326
37935 msgid "guestfs_h *"
37936 msgstr "guestfs_h *"
37937
37938 #. type: textblock
37939 #: ../src/guestfs.pod:1328
37940 msgid ""
37941 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
37942 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
37943 "handle and release all resources used."
37944 msgstr ""
37945
37946 #. type: textblock
37947 #: ../src/guestfs.pod:1332
37948 msgid ""
37949 "For information on using multiple handles and threads, see the section L</"
37950 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37951 msgstr ""
37952
37953 #. type: =head2
37954 #: ../src/guestfs.pod:1335
37955 msgid "guestfs_create"
37956 msgstr "guestfs_create"
37957
37958 #. type: verbatim
37959 #: ../src/guestfs.pod:1337
37960 #, no-wrap
37961 msgid ""
37962 " guestfs_h *guestfs_create (void);\n"
37963 "\n"
37964 msgstr ""
37965 " guestfs_h *guestfs_create (void);\n"
37966 "\n"
37967
37968 #. type: textblock
37969 #: ../src/guestfs.pod:1339
37970 msgid "Create a connection handle."
37971 msgstr "Створити дескриптор з’єднання."
37972
37973 #. type: textblock
37974 #: ../src/guestfs.pod:1341
37975 msgid ""
37976 "On success this returns a non-NULL pointer to a handle.  On error it returns "
37977 "NULL."
37978 msgstr ""
37979
37980 #. type: textblock
37981 #: ../src/guestfs.pod:1344
37982 msgid ""
37983 "You have to \"configure\" the handle after creating it.  This includes "
37984 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37985 "handle at least once."
37986 msgstr ""
37987
37988 #. type: textblock
37989 #: ../src/guestfs.pod:1348
37990 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37991 msgstr ""
37992
37993 #. type: textblock
37994 #: ../src/guestfs.pod:1350
37995 msgid ""
37996 "You may also want to configure error handling for the handle.  See the L</"
37997 "ERROR HANDLING> section below."
37998 msgstr ""
37999
38000 #. type: =head2
38001 #: ../src/guestfs.pod:1353
38002 msgid "guestfs_close"
38003 msgstr "guestfs_close"
38004
38005 #. type: verbatim
38006 #: ../src/guestfs.pod:1355
38007 #, no-wrap
38008 msgid ""
38009 " void guestfs_close (guestfs_h *g);\n"
38010 "\n"
38011 msgstr ""
38012 " void guestfs_close (guestfs_h *g);\n"
38013 "\n"
38014
38015 #. type: textblock
38016 #: ../src/guestfs.pod:1357
38017 msgid "This closes the connection handle and frees up all resources used."
38018 msgstr ""
38019
38020 #. type: textblock
38021 #: ../src/guestfs.pod:1359
38022 msgid ""
38023 "If autosync was set on the handle and the handle was launched, then this "
38024 "implicitly calls various functions to unmount filesystems and sync the "
38025 "disk.  See L</guestfs_set_autosync> for more details."
38026 msgstr ""
38027
38028 #. type: textblock
38029 #: ../src/guestfs.pod:1363
38030 msgid "If a close callback was set on the handle, then it is called."
38031 msgstr ""
38032
38033 #. type: =head1
38034 #: ../src/guestfs.pod:1365
38035 msgid "ERROR HANDLING"
38036 msgstr "ОБРОБКА ПОМИЛОК"
38037
38038 #. type: textblock
38039 #: ../src/guestfs.pod:1367
38040 msgid ""
38041 "API functions can return errors.  For example, almost all functions that "
38042 "return C<int> will return C<-1> to indicate an error."
38043 msgstr ""
38044
38045 #. type: textblock
38046 #: ../src/guestfs.pod:1370
38047 msgid ""
38048 "Additional information is available for errors: an error message string and "
38049 "optionally an error number (errno) if the thing that failed was a system "
38050 "call."
38051 msgstr ""
38052
38053 #. type: textblock
38054 #: ../src/guestfs.pod:1374
38055 msgid ""
38056 "You can get at the additional information about the last error on the handle "
38057 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
38058 "up an error handler with L</guestfs_set_error_handler>."
38059 msgstr ""
38060
38061 #. type: textblock
38062 #: ../src/guestfs.pod:1379
38063 msgid ""
38064 "When the handle is created, a default error handler is installed which "
38065 "prints the error message string to C<stderr>.  For small short-running "
38066 "command line programs it is sufficient to do:"
38067 msgstr ""
38068
38069 #. type: verbatim
38070 #: ../src/guestfs.pod:1383
38071 #, no-wrap
38072 msgid ""
38073 " if (guestfs_launch (g) == -1)\n"
38074 "   exit (EXIT_FAILURE);\n"
38075 "\n"
38076 msgstr ""
38077 " if (guestfs_launch (g) == -1)\n"
38078 "   exit (EXIT_FAILURE);\n"
38079 "\n"
38080
38081 #. type: textblock
38082 #: ../src/guestfs.pod:1386
38083 msgid ""
38084 "since the default error handler will ensure that an error message has been "
38085 "printed to C<stderr> before the program exits."
38086 msgstr ""
38087
38088 #. type: textblock
38089 #: ../src/guestfs.pod:1389
38090 msgid ""
38091 "For other programs the caller will almost certainly want to install an "
38092 "alternate error handler or do error handling in-line like this:"
38093 msgstr ""
38094
38095 #. type: verbatim
38096 #: ../src/guestfs.pod:1392
38097 #, no-wrap
38098 msgid ""
38099 " /* This disables the default behaviour of printing errors\n"
38100 "    on stderr. */\n"
38101 " guestfs_set_error_handler (g, NULL, NULL);\n"
38102 " \n"
38103 msgstr ""
38104
38105 #. type: verbatim
38106 #: ../src/guestfs.pod:1396
38107 #, no-wrap
38108 msgid ""
38109 " if (guestfs_launch (g) == -1) {\n"
38110 "   /* Examine the error message and print it etc. */\n"
38111 "   char *msg = guestfs_last_error (g);\n"
38112 "   int errnum = guestfs_last_errno (g);\n"
38113 "   fprintf (stderr, \"%s\", msg);\n"
38114 "   if (errnum != 0)\n"
38115 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
38116 "   fprintf (stderr, \"\\n\");\n"
38117 "   /* ... */\n"
38118 " }\n"
38119 "\n"
38120 msgstr ""
38121
38122 #. type: textblock
38123 #: ../src/guestfs.pod:1407
38124 msgid ""
38125 "Out of memory errors are handled differently.  The default action is to call "
38126 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
38127 "guestfs_set_out_of_memory_handler>."
38128 msgstr ""
38129
38130 #. type: textblock
38131 #: ../src/guestfs.pod:1411
38132 msgid ""
38133 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38134 "because there is no handle if this happens there is no way to get additional "
38135 "error information.  However L</guestfs_create> is supposed to be a "
38136 "lightweight operation which can only fail because of insufficient memory (it "
38137 "returns NULL in this case)."
38138 msgstr ""
38139
38140 #. type: =head2
38141 #: ../src/guestfs.pod:1417
38142 msgid "guestfs_last_error"
38143 msgstr "guestfs_last_error"
38144
38145 #. type: verbatim
38146 #: ../src/guestfs.pod:1419
38147 #, no-wrap
38148 msgid ""
38149 " const char *guestfs_last_error (guestfs_h *g);\n"
38150 "\n"
38151 msgstr ""
38152 " const char *guestfs_last_error (guestfs_h *g);\n"
38153 "\n"
38154
38155 #. type: textblock
38156 #: ../src/guestfs.pod:1421
38157 msgid ""
38158 "This returns the last error message that happened on C<g>.  If there has not "
38159 "been an error since the handle was created, then this returns C<NULL>."
38160 msgstr ""
38161
38162 #. type: textblock
38163 #: ../src/guestfs.pod:1425
38164 msgid ""
38165 "The lifetime of the returned string is until the next error occurs, or L</"
38166 "guestfs_close> is called."
38167 msgstr ""
38168
38169 #. type: =head2
38170 #: ../src/guestfs.pod:1428
38171 msgid "guestfs_last_errno"
38172 msgstr "guestfs_last_errno"
38173
38174 #. type: verbatim
38175 #: ../src/guestfs.pod:1430
38176 #, no-wrap
38177 msgid ""
38178 " int guestfs_last_errno (guestfs_h *g);\n"
38179 "\n"
38180 msgstr ""
38181 " int guestfs_last_errno (guestfs_h *g);\n"
38182 "\n"
38183
38184 #. type: textblock
38185 #: ../src/guestfs.pod:1432
38186 msgid "This returns the last error number (errno) that happened on C<g>."
38187 msgstr ""
38188
38189 #. type: textblock
38190 #: ../src/guestfs.pod:1434
38191 msgid "If successful, an errno integer not equal to zero is returned."
38192 msgstr ""
38193
38194 #. type: textblock
38195 #: ../src/guestfs.pod:1436
38196 msgid ""
38197 "If no error, this returns 0.  This call can return 0 in three situations:"
38198 msgstr ""
38199
38200 #. type: textblock
38201 #: ../src/guestfs.pod:1443
38202 msgid "There has not been any error on the handle."
38203 msgstr ""
38204
38205 #. type: textblock
38206 #: ../src/guestfs.pod:1447
38207 msgid ""
38208 "There has been an error but the errno was meaningless.  This corresponds to "
38209 "the case where the error did not come from a failed system call, but for "
38210 "some other reason."
38211 msgstr ""
38212
38213 #. type: textblock
38214 #: ../src/guestfs.pod:1453
38215 msgid ""
38216 "There was an error from a failed system call, but for some reason the errno "
38217 "was not captured and returned.  This usually indicates a bug in libguestfs."
38218 msgstr ""
38219
38220 #. type: textblock
38221 #: ../src/guestfs.pod:1459
38222 msgid ""
38223 "Libguestfs tries to convert the errno from inside the applicance into a "
38224 "corresponding errno for the caller (not entirely trivial: the appliance "
38225 "might be running a completely different operating system from the library "
38226 "and error numbers are not standardized across Un*xen).  If this could not be "
38227 "done, then the error is translated to C<EINVAL>.  In practice this should "
38228 "only happen in very rare circumstances."
38229 msgstr ""
38230
38231 #. type: =head2
38232 #: ../src/guestfs.pod:1467
38233 msgid "guestfs_set_error_handler"
38234 msgstr "guestfs_set_error_handler"
38235
38236 #. type: verbatim
38237 #: ../src/guestfs.pod:1469
38238 #, no-wrap
38239 msgid ""
38240 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38241 "                                           void *opaque,\n"
38242 "                                           const char *msg);\n"
38243 " void guestfs_set_error_handler (guestfs_h *g,\n"
38244 "                                 guestfs_error_handler_cb cb,\n"
38245 "                                 void *opaque);\n"
38246 "\n"
38247 msgstr ""
38248 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38249 "                                           void *opaque,\n"
38250 "                                           const char *msg);\n"
38251 " void guestfs_set_error_handler (guestfs_h *g,\n"
38252 "                                 guestfs_error_handler_cb cb,\n"
38253 "                                 void *opaque);\n"
38254 "\n"
38255
38256 #. type: textblock
38257 #: ../src/guestfs.pod:1476
38258 msgid ""
38259 "The callback C<cb> will be called if there is an error.  The parameters "
38260 "passed to the callback are an opaque data pointer and the error message "
38261 "string."
38262 msgstr ""
38263
38264 #. type: textblock
38265 #: ../src/guestfs.pod:1480
38266 msgid ""
38267 "C<errno> is not passed to the callback.  To get that the callback must call "
38268 "L</guestfs_last_errno>."
38269 msgstr ""
38270
38271 #. type: textblock
38272 #: ../src/guestfs.pod:1483
38273 msgid ""
38274 "Note that the message string C<msg> is freed as soon as the callback "
38275 "function returns, so if you want to stash it somewhere you must make your "
38276 "own copy."
38277 msgstr ""
38278
38279 #. type: textblock
38280 #: ../src/guestfs.pod:1487
38281 msgid "The default handler prints messages on C<stderr>."
38282 msgstr ""
38283
38284 #. type: textblock
38285 #: ../src/guestfs.pod:1489
38286 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38287 msgstr ""
38288
38289 #. type: =head2
38290 #: ../src/guestfs.pod:1491
38291 msgid "guestfs_get_error_handler"
38292 msgstr "guestfs_get_error_handler"
38293
38294 #. type: verbatim
38295 #: ../src/guestfs.pod:1493
38296 #, no-wrap
38297 msgid ""
38298 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38299 "                                                     void **opaque_rtn);\n"
38300 "\n"
38301 msgstr ""
38302 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38303 "                                                     void **opaque_rtn);\n"
38304 "\n"
38305
38306 #. type: textblock
38307 #: ../src/guestfs.pod:1496
38308 msgid "Returns the current error handler callback."
38309 msgstr ""
38310
38311 #. type: =head2
38312 #: ../src/guestfs.pod:1498
38313 msgid "guestfs_set_out_of_memory_handler"
38314 msgstr "guestfs_set_out_of_memory_handler"
38315
38316 #. type: verbatim
38317 #: ../src/guestfs.pod:1500
38318 #, no-wrap
38319 msgid ""
38320 " typedef void (*guestfs_abort_cb) (void);\n"
38321 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38322 "                                         guestfs_abort_cb);\n"
38323 "\n"
38324 msgstr ""
38325
38326 #. type: textblock
38327 #: ../src/guestfs.pod:1504
38328 msgid ""
38329 "The callback C<cb> will be called if there is an out of memory situation.  "
38330 "I<Note this callback must not return>."
38331 msgstr ""
38332
38333 #. type: textblock
38334 #: ../src/guestfs.pod:1507
38335 msgid "The default is to call L<abort(3)>."
38336 msgstr ""
38337
38338 #. type: textblock
38339 #: ../src/guestfs.pod:1509
38340 msgid ""
38341 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
38342 msgstr ""
38343
38344 #. type: =head2
38345 #: ../src/guestfs.pod:1512
38346 msgid "guestfs_get_out_of_memory_handler"
38347 msgstr "guestfs_get_out_of_memory_handler"
38348
38349 #. type: verbatim
38350 #: ../src/guestfs.pod:1514
38351 #, no-wrap
38352 msgid ""
38353 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38354 "\n"
38355 msgstr ""
38356 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38357 "\n"
38358
38359 #. type: textblock
38360 #: ../src/guestfs.pod:1516
38361 msgid "This returns the current out of memory handler."
38362 msgstr ""
38363
38364 #. type: =head1
38365 #: ../src/guestfs.pod:1518
38366 msgid "API CALLS"
38367 msgstr "ВИКЛИКИ API"
38368
38369 #. type: =head1
38370 #: ../src/guestfs.pod:1522
38371 msgid "STRUCTURES"
38372 msgstr "СТРУКТУРИ"
38373
38374 #. type: textblock
38375 #: ../src/guestfs.pod:1524
38376 msgid "@STRUCTS@"
38377 msgstr "@STRUCTS@"
38378
38379 #. type: =head1
38380 #: ../src/guestfs.pod:1526
38381 msgid "AVAILABILITY"
38382 msgstr "ДОСТУПНІСТЬ"
38383
38384 #. type: =head2
38385 #: ../src/guestfs.pod:1528
38386 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
38387 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
38388
38389 #. type: textblock
38390 #: ../src/guestfs.pod:1530
38391 msgid ""
38392 "Using L</guestfs_available> you can test availability of the following "
38393 "groups of functions.  This test queries the appliance to see if the "
38394 "appliance you are currently using supports the functionality."
38395 msgstr ""
38396
38397 #. type: textblock
38398 #: ../src/guestfs.pod:1535
38399 msgid "@AVAILABILITY@"
38400 msgstr "@AVAILABILITY@"
38401
38402 #. type: =head2
38403 #: ../src/guestfs.pod:1537
38404 msgid "GUESTFISH supported COMMAND"
38405 msgstr ""
38406
38407 #. type: textblock
38408 #: ../src/guestfs.pod:1539
38409 msgid ""
38410 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
38411 "prints out the available groups and whether they are supported by this build "
38412 "of libguestfs.  Note however that you have to do C<run> first."
38413 msgstr ""
38414
38415 #. type: =head2
38416 #: ../src/guestfs.pod:1544
38417 msgid "SINGLE CALLS AT COMPILE TIME"
38418 msgstr ""
38419
38420 #. type: textblock
38421 #: ../src/guestfs.pod:1546
38422 msgid ""
38423 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
38424 "function, such as:"
38425 msgstr ""
38426
38427 #. type: verbatim
38428 #: ../src/guestfs.pod:1549
38429 #, no-wrap
38430 msgid ""
38431 " #define LIBGUESTFS_HAVE_DD 1\n"
38432 "\n"
38433 msgstr ""
38434 " #define LIBGUESTFS_HAVE_DD 1\n"
38435 "\n"
38436
38437 #. type: textblock
38438 #: ../src/guestfs.pod:1551
38439 msgid "if L</guestfs_dd> is available."
38440 msgstr ""
38441
38442 #. type: textblock
38443 #: ../src/guestfs.pod:1553
38444 msgid ""
38445 "Before version 1.5.8, if you needed to test whether a single libguestfs "
38446 "function is available at compile time, we recommended using build tools such "
38447 "as autoconf or cmake.  For example in autotools you could use:"
38448 msgstr ""
38449
38450 #. type: verbatim
38451 #: ../src/guestfs.pod:1558
38452 #, no-wrap
38453 msgid ""
38454 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38455 " AC_CHECK_FUNCS([guestfs_dd])\n"
38456 "\n"
38457 msgstr ""
38458 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38459 " AC_CHECK_FUNCS([guestfs_dd])\n"
38460 "\n"
38461
38462 #. type: textblock
38463 #: ../src/guestfs.pod:1561
38464 msgid ""
38465 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
38466 "in your program."
38467 msgstr ""
38468
38469 #. type: =head2
38470 #: ../src/guestfs.pod:1564
38471 msgid "SINGLE CALLS AT RUN TIME"
38472 msgstr ""
38473
38474 #. type: textblock
38475 #: ../src/guestfs.pod:1566
38476 msgid ""
38477 "Testing at compile time doesn't guarantee that a function really exists in "
38478 "the library.  The reason is that you might be dynamically linked against a "
38479 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
38480 "This situation unfortunately results in a segmentation fault, which is a "
38481 "shortcoming of the C dynamic linking system itself."
38482 msgstr ""
38483
38484 #. type: textblock
38485 #: ../src/guestfs.pod:1573
38486 msgid ""
38487 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38488 "in this example program (note that you still need the compile time check as "
38489 "well):"
38490 msgstr ""
38491
38492 #. type: verbatim
38493 #: ../src/guestfs.pod:1577
38494 #, no-wrap
38495 msgid ""
38496 " #include <stdio.h>\n"
38497 " #include <stdlib.h>\n"
38498 " #include <unistd.h>\n"
38499 " #include <dlfcn.h>\n"
38500 " #include <guestfs.h>\n"
38501 " \n"
38502 msgstr ""
38503 " #include <stdio.h>\n"
38504 " #include <stdlib.h>\n"
38505 " #include <unistd.h>\n"
38506 " #include <dlfcn.h>\n"
38507 " #include <guestfs.h>\n"
38508 " \n"
38509
38510 #. type: verbatim
38511 #: ../src/guestfs.pod:1583
38512 #, no-wrap
38513 msgid ""
38514 " main ()\n"
38515 " {\n"
38516 " #ifdef LIBGUESTFS_HAVE_DD\n"
38517 "   void *dl;\n"
38518 "   int has_function;\n"
38519 " \n"
38520 msgstr ""
38521 " main ()\n"
38522 " {\n"
38523 " #ifdef LIBGUESTFS_HAVE_DD\n"
38524 "   void *dl;\n"
38525 "   int has_function;\n"
38526 " \n"
38527
38528 #. type: verbatim
38529 #: ../src/guestfs.pod:1589
38530 #, no-wrap
38531 msgid ""
38532 "   /* Test if the function guestfs_dd is really available. */\n"
38533 "   dl = dlopen (NULL, RTLD_LAZY);\n"
38534 "   if (!dl) {\n"
38535 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38536 "     exit (EXIT_FAILURE);\n"
38537 "   }\n"
38538 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38539 "   dlclose (dl);\n"
38540 " \n"
38541 msgstr ""
38542
38543 #. type: verbatim
38544 #: ../src/guestfs.pod:1598
38545 #, no-wrap
38546 msgid ""
38547 "   if (!has_function)\n"
38548 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38549 "   else {\n"
38550 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38551 "     /* Now it's safe to call\n"
38552 "     guestfs_dd (g, \"foo\", \"bar\");\n"
38553 "     */\n"
38554 "   }\n"
38555 " #else\n"
38556 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38557 " #endif\n"
38558 "  }\n"
38559 "\n"
38560 msgstr ""
38561
38562 #. type: textblock
38563 #: ../src/guestfs.pod:1611
38564 msgid ""
38565 "You may think the above is an awful lot of hassle, and it is.  There are "
38566 "other ways outside of the C linking system to ensure that this kind of "
38567 "incompatibility never arises, such as using package versioning:"
38568 msgstr ""
38569
38570 #. type: verbatim
38571 #: ../src/guestfs.pod:1616
38572 #, no-wrap
38573 msgid ""
38574 " Requires: libguestfs >= 1.0.80\n"
38575 "\n"
38576 msgstr ""
38577
38578 #. type: =head1
38579 #: ../src/guestfs.pod:1618
38580 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38581 msgstr ""
38582
38583 #. type: textblock
38584 #: ../src/guestfs.pod:1620
38585 msgid ""
38586 "A recent feature of the API is the introduction of calls which take optional "
38587 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
38588 "takes variable arguments (ie. C<...>), as in this example:"
38589 msgstr ""
38590
38591 #. type: verbatim
38592 #: ../src/guestfs.pod:1625
38593 #, no-wrap
38594 msgid ""
38595 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38596 "\n"
38597 msgstr ""
38598 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38599 "\n"
38600
38601 #. type: textblock
38602 #: ../src/guestfs.pod:1627
38603 msgid ""
38604 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
38605 "call with no optional arguments specified:"
38606 msgstr ""
38607
38608 #. type: verbatim
38609 #: ../src/guestfs.pod:1630
38610 #, no-wrap
38611 msgid ""
38612 " guestfs_add_drive_opts (g, filename, -1);\n"
38613 "\n"
38614 msgstr ""
38615 " guestfs_add_drive_opts (g, filename, -1);\n"
38616 "\n"
38617
38618 #. type: textblock
38619 #: ../src/guestfs.pod:1632
38620 msgid "With a single optional argument:"
38621 msgstr ""
38622
38623 #. type: verbatim
38624 #: ../src/guestfs.pod:1634
38625 #, no-wrap
38626 msgid ""
38627 " guestfs_add_drive_opts (g, filename,\n"
38628 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38629 "                         -1);\n"
38630 "\n"
38631 msgstr ""
38632 " guestfs_add_drive_opts (g, filename,\n"
38633 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38634 "                         -1);\n"
38635 "\n"
38636
38637 #. type: textblock
38638 #: ../src/guestfs.pod:1638
38639 msgid "With two:"
38640 msgstr ""
38641
38642 #. type: verbatim
38643 #: ../src/guestfs.pod:1640
38644 #, no-wrap
38645 msgid ""
38646 " guestfs_add_drive_opts (g, filename,\n"
38647 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38648 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38649 "                         -1);\n"
38650 "\n"
38651 msgstr ""
38652 " guestfs_add_drive_opts (g, filename,\n"
38653 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38654 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38655 "                         -1);\n"
38656 "\n"
38657
38658 #. type: textblock
38659 #: ../src/guestfs.pod:1645
38660 msgid ""
38661 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
38662 "happen!"
38663 msgstr ""
38664
38665 #. type: =head2
38666 #: ../src/guestfs.pod:1648
38667 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38668 msgstr ""
38669
38670 #. type: textblock
38671 #: ../src/guestfs.pod:1650
38672 msgid ""
38673 "The second variant has the same name with the suffix C<_va>, which works the "
38674 "same way but takes a C<va_list>.  See the C manual for details.  For the "
38675 "example function, this is declared:"
38676 msgstr ""
38677
38678 #. type: verbatim
38679 #: ../src/guestfs.pod:1654
38680 #, no-wrap
38681 msgid ""
38682 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38683 "                                va_list args);\n"
38684 "\n"
38685 msgstr ""
38686 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38687 "                                va_list args);\n"
38688 "\n"
38689
38690 #. type: =head2
38691 #: ../src/guestfs.pod:1657
38692 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38693 msgstr ""
38694
38695 #. type: textblock
38696 #: ../src/guestfs.pod:1659
38697 msgid ""
38698 "The third variant is useful where you need to construct these calls.  You "
38699 "pass in a structure where you fill in the optional fields.  The structure "
38700 "has a bitmask as the first element which you must set to indicate which "
38701 "fields you have filled in.  For our example function the structure and call "
38702 "are declared:"
38703 msgstr ""
38704
38705 #. type: verbatim
38706 #: ../src/guestfs.pod:1665
38707 #, no-wrap
38708 msgid ""
38709 " struct guestfs_add_drive_opts_argv {\n"
38710 "   uint64_t bitmask;\n"
38711 "   int readonly;\n"
38712 "   const char *format;\n"
38713 "   /* ... */\n"
38714 " };\n"
38715 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38716 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38717 "\n"
38718 msgstr ""
38719 " struct guestfs_add_drive_opts_argv {\n"
38720 "   uint64_t bitmask;\n"
38721 "   int readonly;\n"
38722 "   const char *format;\n"
38723 "   /* ... */\n"
38724 " };\n"
38725 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38726 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38727 "\n"
38728
38729 #. type: textblock
38730 #: ../src/guestfs.pod:1674
38731 msgid "You could call it like this:"
38732 msgstr ""
38733
38734 #. type: verbatim
38735 #: ../src/guestfs.pod:1676
38736 #, no-wrap
38737 msgid ""
38738 " struct guestfs_add_drive_opts_argv optargs = {\n"
38739 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38740 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38741 "   .readonly = 1,\n"
38742 "   .format = \"qcow2\"\n"
38743 " };\n"
38744 " \n"
38745 msgstr ""
38746 " struct guestfs_add_drive_opts_argv optargs = {\n"
38747 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38748 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38749 "   .readonly = 1,\n"
38750 "   .format = \"qcow2\"\n"
38751 " };\n"
38752 " \n"
38753
38754 #. type: verbatim
38755 #: ../src/guestfs.pod:1683
38756 #, no-wrap
38757 msgid ""
38758 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38759 "\n"
38760 msgstr ""
38761 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38762 "\n"
38763
38764 #. type: textblock
38765 #: ../src/guestfs.pod:1691
38766 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38767 msgstr ""
38768
38769 #. type: textblock
38770 #: ../src/guestfs.pod:1696
38771 msgid "You do not need to fill in all fields of the structure."
38772 msgstr ""
38773
38774 #. type: textblock
38775 #: ../src/guestfs.pod:1700
38776 msgid ""
38777 "There must be a one-to-one correspondence between fields of the structure "
38778 "that are filled in, and bits set in the bitmask."
38779 msgstr ""
38780
38781 #. type: =head2
38782 #: ../src/guestfs.pod:1705
38783 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38784 msgstr ""
38785
38786 #. type: textblock
38787 #: ../src/guestfs.pod:1707
38788 msgid ""
38789 "In other languages, optional arguments are expressed in the way that is "
38790 "natural for that language.  We refer you to the language-specific "
38791 "documentation for more details on that."
38792 msgstr ""
38793
38794 #. type: textblock
38795 #: ../src/guestfs.pod:1711
38796 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38797 msgstr ""
38798
38799 #. type: =head2
38800 #: ../src/guestfs.pod:1713
38801 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38802 msgstr ""
38803
38804 #. type: textblock
38805 #: ../src/guestfs.pod:1715
38806 msgid ""
38807 "B<Note:> This section documents the generic event mechanism introduced in "
38808 "libguestfs 1.10, which you should use in new code if possible.  The old "
38809 "functions C<guestfs_set_log_message_callback>, "
38810 "C<guestfs_set_subprocess_quit_callback>, "
38811 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38812 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38813 "page.  Because of the ABI guarantee, the old functions continue to work."
38814 msgstr ""
38815
38816 #. type: textblock
38817 #: ../src/guestfs.pod:1724
38818 msgid ""
38819 "Handles generate events when certain things happen, such as log messages "
38820 "being generated, progress messages during long-running operations, or the "
38821 "handle being closed.  The API calls described below let you register a "
38822 "callback to be called when events happen.  You can register multiple "
38823 "callbacks (for the same, different or overlapping sets of events), and "
38824 "individually remove callbacks.  If callbacks are not removed, then they "
38825 "remain in force until the handle is closed."
38826 msgstr ""
38827
38828 #. type: textblock
38829 #: ../src/guestfs.pod:1732
38830 msgid ""
38831 "In the current implementation, events are only generated synchronously: that "
38832 "means that events (and hence callbacks) can only happen while you are in the "
38833 "middle of making another libguestfs call.  The callback is called in the "
38834 "same thread."
38835 msgstr ""
38836
38837 #. type: textblock
38838 #: ../src/guestfs.pod:1737
38839 msgid ""
38840 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38841 "unsigned integers, or a message buffer.  Payloads are discussed later on."
38842 msgstr ""
38843
38844 #. type: =head3
38845 #: ../src/guestfs.pod:1741
38846 msgid "CLASSES OF EVENTS"
38847 msgstr ""
38848
38849 #. type: =item
38850 #: ../src/guestfs.pod:1745
38851 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38852 msgstr ""
38853
38854 #. type: textblock
38855 #: ../src/guestfs.pod:1748
38856 msgid ""
38857 "The callback function will be called while the handle is being closed "
38858 "(synchronously from L</guestfs_close>)."
38859 msgstr ""
38860
38861 #. type: textblock
38862 #: ../src/guestfs.pod:1751
38863 msgid ""
38864 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38865 "handles that are open when the program exits.  This means that this callback "
38866 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38867 "problems in higher-level languages (eg. if your HLL interpreter has already "
38868 "been cleaned up by the time this is called, and if your callback then jumps "
38869 "into some HLL function)."
38870 msgstr ""
38871
38872 #. type: textblock
38873 #: ../src/guestfs.pod:1758
38874 msgid ""
38875 "If no callback is registered: the handle is closed without any callback "
38876 "being invoked."
38877 msgstr ""
38878
38879 #. type: =item
38880 #: ../src/guestfs.pod:1761
38881 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38882 msgstr ""
38883
38884 #. type: textblock
38885 #: ../src/guestfs.pod:1764
38886 msgid ""
38887 "The callback function will be called when the child process quits, either "
38888 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
38889 "corresponds to a transition from any state to the CONFIG state)."
38890 msgstr ""
38891
38892 #. type: textblock
38893 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
38894 msgid "If no callback is registered: the event is ignored."
38895 msgstr ""
38896
38897 #. type: =item
38898 #: ../src/guestfs.pod:1770
38899 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38900 msgstr ""
38901
38902 #. type: textblock
38903 #: ../src/guestfs.pod:1773
38904 msgid ""
38905 "The callback function will be called when the child process becomes ready "
38906 "first time after it has been launched.  (This corresponds to a transition "
38907 "from LAUNCHING to the READY state)."
38908 msgstr ""
38909
38910 #. type: =item
38911 #: ../src/guestfs.pod:1779
38912 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38913 msgstr ""
38914
38915 #. type: textblock
38916 #: ../src/guestfs.pod:1782
38917 msgid ""
38918 "Some long-running operations can generate progress messages.  If this "
38919 "callback is registered, then it will be called each time a progress message "
38920 "is generated (usually two seconds after the operation started, and three "
38921 "times per second thereafter until it completes, although the frequency may "
38922 "change in future versions)."
38923 msgstr ""
38924
38925 #. type: textblock
38926 #: ../src/guestfs.pod:1788
38927 msgid ""
38928 "The callback receives in the payload four unsigned 64 bit numbers which are "
38929 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38930 msgstr ""
38931
38932 #. type: textblock
38933 #: ../src/guestfs.pod:1791
38934 msgid ""
38935 "The units of C<total> are not defined, although for some operations C<total> "
38936 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38937 "or megabytes), and C<position> may be the portion which has been transferred."
38938 msgstr ""
38939
38940 #. type: textblock
38941 #: ../src/guestfs.pod:1796
38942 msgid "The only defined and stable parts of the API are:"
38943 msgstr ""
38944
38945 #. type: textblock
38946 #: ../src/guestfs.pod:1802
38947 msgid ""
38948 "The callback can display to the user some type of progress bar or indicator "
38949 "which shows the ratio of C<position>:C<total>."
38950 msgstr ""
38951
38952 #. type: textblock
38953 #: ../src/guestfs.pod:1807
38954 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38955 msgstr ""
38956
38957 #. type: textblock
38958 #: ../src/guestfs.pod:1811
38959 msgid ""
38960 "If any progress notification is sent during a call, then a final progress "
38961 "notification is always sent when C<position> = C<total> (I<unless> the call "
38962 "fails with an error)."
38963 msgstr ""
38964
38965 #. type: textblock
38966 #: ../src/guestfs.pod:1815
38967 msgid ""
38968 "This is to simplify caller code, so callers can easily set the progress "
38969 "indicator to \"100%\" at the end of the operation, without requiring special "
38970 "code to detect this case."
38971 msgstr ""
38972
38973 #. type: textblock
38974 #: ../src/guestfs.pod:1821
38975 msgid ""
38976 "For some calls we are unable to estimate the progress of the call, but we "
38977 "can still generate progress messages to indicate activity.  This is known as "
38978 "\"pulse mode\", and is directly supported by certain progress bar "
38979 "implementations (eg. GtkProgressBar)."
38980 msgstr ""
38981
38982 #. type: textblock
38983 #: ../src/guestfs.pod:1826
38984 msgid ""
38985 "For these calls, zero or more progress messages are generated with "
38986 "C<position = 0> and C<total = 1>, followed by a final message with "
38987 "C<position = total = 1>."
38988 msgstr ""
38989
38990 #. type: textblock
38991 #: ../src/guestfs.pod:1830
38992 msgid ""
38993 "As noted above, if the call fails with an error then the final message may "
38994 "not be generated."
38995 msgstr ""
38996
38997 #. type: textblock
38998 #: ../src/guestfs.pod:1835
38999 msgid ""
39000 "The callback also receives the procedure number (C<proc_nr>) and serial "
39001 "number (C<serial>) of the call.  These are only useful for debugging "
39002 "protocol issues, and the callback can normally ignore them.  The callback "
39003 "may want to print these numbers in error messages or debugging messages."
39004 msgstr ""
39005
39006 #. type: textblock
39007 #: ../src/guestfs.pod:1841
39008 msgid "If no callback is registered: progress messages are discarded."
39009 msgstr ""
39010
39011 #. type: =item
39012 #: ../src/guestfs.pod:1843
39013 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
39014 msgstr ""
39015
39016 #. type: textblock
39017 #: ../src/guestfs.pod:1846
39018 msgid ""
39019 "The callback function is called whenever a log message is generated by qemu, "
39020 "the appliance kernel, guestfsd (daemon), or utility programs."
39021 msgstr ""
39022
39023 #. type: textblock
39024 #: ../src/guestfs.pod:1849
39025 msgid ""
39026 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
39027 "guestfs_launch>) then additional debug messages are generated."
39028 msgstr ""
39029
39030 #. type: textblock
39031 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
39032 msgid ""
39033 "If no callback is registered: the messages are discarded unless the verbose "
39034 "flag is set in which case they are sent to stderr.  You can override the "
39035 "printing of verbose messages to stderr by setting up a callback."
39036 msgstr ""
39037
39038 #. type: =item
39039 #: ../src/guestfs.pod:1857
39040 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
39041 msgstr ""
39042
39043 #. type: textblock
39044 #: ../src/guestfs.pod:1860
39045 msgid ""
39046 "The callback function is called whenever a log message is generated by the "
39047 "library part of libguestfs."
39048 msgstr ""
39049
39050 #. type: textblock
39051 #: ../src/guestfs.pod:1863
39052 msgid ""
39053 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
39054 "messages are generated."
39055 msgstr ""
39056
39057 #. type: =item
39058 #: ../src/guestfs.pod:1871
39059 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
39060 msgstr ""
39061
39062 #. type: textblock
39063 #: ../src/guestfs.pod:1874
39064 msgid ""
39065 "The callback function is called whenever a trace message is generated.  This "
39066 "only applies if the trace flag (L</guestfs_set_trace>) is set."
39067 msgstr ""
39068
39069 #. type: textblock
39070 #: ../src/guestfs.pod:1877
39071 msgid ""
39072 "If no callback is registered: the messages are sent to stderr.  You can "
39073 "override the printing of trace messages to stderr by setting up a callback."
39074 msgstr ""
39075
39076 #. type: =item
39077 #: ../src/guestfs.pod:1881
39078 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
39079 msgstr ""
39080
39081 #. type: textblock
39082 #: ../src/guestfs.pod:1884
39083 msgid ""
39084 "The callback function is called whenever a libguestfs function is entered."
39085 msgstr ""
39086
39087 #. type: textblock
39088 #: ../src/guestfs.pod:1887
39089 msgid ""
39090 "The payload is a string which contains the name of the function that we are "
39091 "entering (not including C<guestfs_> prefix)."
39092 msgstr ""
39093
39094 #. type: textblock
39095 #: ../src/guestfs.pod:1890
39096 msgid ""
39097 "Note that libguestfs functions can call themselves, so you may see many "
39098 "events from a single call.  A few libguestfs functions do not generate this "
39099 "event."
39100 msgstr ""
39101
39102 #. type: =head3
39103 #: ../src/guestfs.pod:1898
39104 msgid "guestfs_set_event_callback"
39105 msgstr ""
39106
39107 #. type: verbatim
39108 #: ../src/guestfs.pod:1900
39109 #, no-wrap
39110 msgid ""
39111 " int guestfs_set_event_callback (guestfs_h *g,\n"
39112 "                                 guestfs_event_callback cb,\n"
39113 "                                 uint64_t event_bitmask,\n"
39114 "                                 int flags,\n"
39115 "                                 void *opaque);\n"
39116 "\n"
39117 msgstr ""
39118
39119 #. type: textblock
39120 #: ../src/guestfs.pod:1906
39121 msgid ""
39122 "This function registers a callback (C<cb>) for all event classes in the "
39123 "C<event_bitmask>."
39124 msgstr ""
39125
39126 #. type: textblock
39127 #: ../src/guestfs.pod:1909
39128 msgid ""
39129 "For example, to register for all log message events, you could call this "
39130 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
39131 "To register a single callback for all possible classes of events, use "
39132 "C<GUESTFS_EVENT_ALL>."
39133 msgstr ""
39134
39135 #. type: textblock
39136 #: ../src/guestfs.pod:1915
39137 msgid "C<flags> should always be passed as 0."
39138 msgstr ""
39139
39140 #. type: textblock
39141 #: ../src/guestfs.pod:1917
39142 msgid ""
39143 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
39144 "it for any purpose."
39145 msgstr ""
39146
39147 #. type: textblock
39148 #: ../src/guestfs.pod:1920
39149 msgid ""
39150 "The return value is the event handle (an integer) which you can use to "
39151 "delete the callback (see below)."
39152 msgstr ""
39153
39154 #. type: textblock
39155 #: ../src/guestfs.pod:1923
39156 msgid ""
39157 "If there is an error, this function returns C<-1>, and sets the error in the "
39158 "handle in the usual way (see L</guestfs_last_error> etc.)"
39159 msgstr ""
39160
39161 #. type: textblock
39162 #: ../src/guestfs.pod:1926
39163 msgid ""
39164 "Callbacks remain in effect until they are deleted, or until the handle is "
39165 "closed."
39166 msgstr ""
39167
39168 #. type: textblock
39169 #: ../src/guestfs.pod:1929
39170 msgid ""
39171 "In the case where multiple callbacks are registered for a particular event "
39172 "class, all of the callbacks are called.  The order in which multiple "
39173 "callbacks are called is not defined."
39174 msgstr ""
39175
39176 #. type: =head3
39177 #: ../src/guestfs.pod:1933
39178 msgid "guestfs_delete_event_callback"
39179 msgstr ""
39180
39181 #. type: verbatim
39182 #: ../src/guestfs.pod:1935
39183 #, no-wrap
39184 msgid ""
39185 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39186 "\n"
39187 msgstr ""
39188
39189 #. type: textblock
39190 #: ../src/guestfs.pod:1937
39191 msgid ""
39192 "Delete a callback that was previously registered.  C<event_handle> should be "
39193 "the integer that was returned by a previous call to "
39194 "C<guestfs_set_event_callback> on the same handle."
39195 msgstr ""
39196
39197 #. type: =head3
39198 #: ../src/guestfs.pod:1941
39199 msgid "guestfs_event_callback"
39200 msgstr ""
39201
39202 #. type: verbatim
39203 #: ../src/guestfs.pod:1943
39204 #, no-wrap
39205 msgid ""
39206 " typedef void (*guestfs_event_callback) (\n"
39207 "                  guestfs_h *g,\n"
39208 "                  void *opaque,\n"
39209 "                  uint64_t event,\n"
39210 "                  int event_handle,\n"
39211 "                  int flags,\n"
39212 "                  const char *buf, size_t buf_len,\n"
39213 "                  const uint64_t *array, size_t array_len);\n"
39214 "\n"
39215 msgstr ""
39216
39217 #. type: textblock
39218 #: ../src/guestfs.pod:1952
39219 msgid ""
39220 "This is the type of the event callback function that you have to provide."
39221 msgstr ""
39222
39223 #. type: textblock
39224 #: ../src/guestfs.pod:1955
39225 msgid ""
39226 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39227 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39228 "handle, and C<flags> which in the current API you should ignore."
39229 msgstr ""
39230
39231 #. type: textblock
39232 #: ../src/guestfs.pod:1959
39233 msgid ""
39234 "The remaining parameters contain the event payload (if any).  Each event may "
39235 "contain a payload, which usually relates to the event class, but for future "
39236 "proofing your code should be written to handle any payload for any event "
39237 "class."
39238 msgstr ""
39239
39240 #. type: textblock
39241 #: ../src/guestfs.pod:1964
39242 msgid ""
39243 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39244 "there is no message buffer).  Note that this message buffer can contain "
39245 "arbitrary 8 bit data, including NUL bytes."
39246 msgstr ""
39247
39248 #. type: textblock
39249 #: ../src/guestfs.pod:1968
39250 msgid ""
39251 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
39252 "moment this is only used for progress messages."
39253 msgstr ""
39254
39255 #. type: =head3
39256 #: ../src/guestfs.pod:1971
39257 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39258 msgstr ""
39259
39260 #. type: textblock
39261 #: ../src/guestfs.pod:1973
39262 msgid ""
39263 "One motivation for the generic event API was to allow GUI programs to "
39264 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
39265 "unconditionally to C<stderr>."
39266 msgstr ""
39267
39268 #. type: textblock
39269 #: ../src/guestfs.pod:1977
39270 msgid ""
39271 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39272 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
39273 "messages are not events; you must capture error messages separately)."
39274 msgstr ""
39275
39276 #. type: textblock
39277 #: ../src/guestfs.pod:1982
39278 msgid ""
39279 "Programs have to set up a callback to capture the classes of events of "
39280 "interest:"
39281 msgstr ""
39282
39283 #. type: verbatim
39284 #: ../src/guestfs.pod:1985
39285 #, no-wrap
39286 msgid ""
39287 " int eh =\n"
39288 "   guestfs_set_event_callback\n"
39289 "     (g, message_callback,\n"
39290 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39291 "      GUESTFS_EVENT_TRACE,\n"
39292 "      0, NULL) == -1)\n"
39293 " if (eh == -1) {\n"
39294 "   // handle error in the usual way\n"
39295 " }\n"
39296 "\n"
39297 msgstr ""
39298
39299 #. type: textblock
39300 #: ../src/guestfs.pod:1995
39301 msgid ""
39302 "The callback can then direct messages to the appropriate place.  In this "
39303 "example, messages are directed to syslog:"
39304 msgstr ""
39305
39306 #. type: verbatim
39307 #: ../src/guestfs.pod:1998
39308 #, no-wrap
39309 msgid ""
39310 " static void\n"
39311 " message_callback (\n"
39312 "         guestfs_h *g,\n"
39313 "         void *opaque,\n"
39314 "         uint64_t event,\n"
39315 "         int event_handle,\n"
39316 "         int flags,\n"
39317 "         const char *buf, size_t buf_len,\n"
39318 "         const uint64_t *array, size_t array_len)\n"
39319 " {\n"
39320 "   const int priority = LOG_USER|LOG_INFO;\n"
39321 "   if (buf_len > 0)\n"
39322 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
39323 " }\n"
39324 "\n"
39325 msgstr ""
39326
39327 #. type: =head1
39328 #: ../src/guestfs.pod:2013
39329 msgid "CANCELLING LONG TRANSFERS"
39330 msgstr ""
39331
39332 #. type: textblock
39333 #: ../src/guestfs.pod:2015
39334 msgid ""
39335 "Some operations can be cancelled by the caller while they are in progress.  "
39336 "Currently only operations that involve uploading or downloading data can be "
39337 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
39338 "parameters in the generator)."
39339 msgstr ""
39340
39341 #. type: =head2
39342 #: ../src/guestfs.pod:2020
39343 msgid "guestfs_user_cancel"
39344 msgstr ""
39345
39346 #. type: verbatim
39347 #: ../src/guestfs.pod:2022
39348 #, no-wrap
39349 msgid ""
39350 " void guestfs_user_cancel (guestfs_h *g);\n"
39351 "\n"
39352 msgstr ""
39353
39354 #. type: textblock
39355 #: ../src/guestfs.pod:2024
39356 msgid ""
39357 "C<guestfs_user_cancel> cancels the current upload or download operation."
39358 msgstr ""
39359
39360 #. type: textblock
39361 #: ../src/guestfs.pod:2027
39362 msgid ""
39363 "Unlike most other libguestfs calls, this function is signal safe and thread "
39364 "safe.  You can call it from a signal handler or from another thread, without "
39365 "needing to do any locking."
39366 msgstr ""
39367
39368 #. type: textblock
39369 #: ../src/guestfs.pod:2031
39370 msgid ""
39371 "The transfer that was in progress (if there is one) will stop shortly "
39372 "afterwards, and will return an error.  The errno (see L</"
39373 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
39374 "out if the operation was cancelled or failed because of another error."
39375 msgstr ""
39376
39377 #. type: textblock
39378 #: ../src/guestfs.pod:2037
39379 msgid ""
39380 "No cleanup is performed: for example, if a file was being uploaded then "
39381 "after cancellation there may be a partially uploaded file.  It is the "
39382 "caller's responsibility to clean up if necessary."
39383 msgstr ""
39384
39385 #. type: textblock
39386 #: ../src/guestfs.pod:2041
39387 msgid "There are two common places that you might call C<guestfs_user_cancel>."
39388 msgstr ""
39389
39390 #. type: textblock
39391 #: ../src/guestfs.pod:2043
39392 msgid ""
39393 "In an interactive text-based program, you might call it from a C<SIGINT> "
39394 "signal handler so that pressing C<^C> cancels the current operation.  (You "
39395 "also need to call L</guestfs_set_pgroup> so that child processes don't "
39396 "receive the C<^C> signal)."
39397 msgstr ""
39398
39399 #. type: textblock
39400 #: ../src/guestfs.pod:2048
39401 msgid ""
39402 "In a graphical program, when the main thread is displaying a progress bar "
39403 "with a cancel button, wire up the cancel button to call this function."
39404 msgstr ""
39405
39406 #. type: =head1
39407 #: ../src/guestfs.pod:2052
39408 msgid "PRIVATE DATA AREA"
39409 msgstr ""
39410
39411 #. type: textblock
39412 #: ../src/guestfs.pod:2054
39413 msgid ""
39414 "You can attach named pieces of private data to the libguestfs handle, fetch "
39415 "them by name, and walk over them, for the lifetime of the handle.  This is "
39416 "called the private data area and is only available from the C API."
39417 msgstr ""
39418
39419 #. type: textblock
39420 #: ../src/guestfs.pod:2059
39421 msgid "To attach a named piece of data, use the following call:"
39422 msgstr ""
39423
39424 #. type: verbatim
39425 #: ../src/guestfs.pod:2061
39426 #, no-wrap
39427 msgid ""
39428 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39429 "\n"
39430 msgstr ""
39431 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39432 "\n"
39433
39434 #. type: textblock
39435 #: ../src/guestfs.pod:2063
39436 msgid ""
39437 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
39438 "pointer (which can be C<NULL>).  Any previous item with the same key is "
39439 "overwritten."
39440 msgstr ""
39441
39442 #. type: textblock
39443 #: ../src/guestfs.pod:2067
39444 msgid ""
39445 "You can use any C<key> you want, but your key should I<not> start with an "
39446 "underscore character.  Keys beginning with an underscore character are "
39447 "reserved for internal libguestfs purposes (eg. for implementing language "
39448 "bindings).  It is recommended that you prefix the key with some unique "
39449 "string to avoid collisions with other users."
39450 msgstr ""
39451
39452 #. type: textblock
39453 #: ../src/guestfs.pod:2073
39454 msgid "To retrieve the pointer, use:"
39455 msgstr ""
39456
39457 #. type: verbatim
39458 #: ../src/guestfs.pod:2075
39459 #, no-wrap
39460 msgid ""
39461 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39462 "\n"
39463 msgstr ""
39464 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39465 "\n"
39466
39467 #. type: textblock
39468 #: ../src/guestfs.pod:2077
39469 msgid ""
39470 "This function returns C<NULL> if either no data is found associated with "
39471 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39472 "C<NULL>."
39473 msgstr ""
39474
39475 #. type: textblock
39476 #: ../src/guestfs.pod:2081
39477 msgid ""
39478 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39479 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
39480 "all.  In particular, libguestfs does I<not> try to free the data when the "
39481 "handle is closed.  If the data must be freed, then the caller must either "
39482 "free it before calling L</guestfs_close> or must set up a close callback to "
39483 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39484 msgstr ""
39485
39486 #. type: textblock
39487 #: ../src/guestfs.pod:2088
39488 msgid "To walk over all entries, use these two functions:"
39489 msgstr ""
39490
39491 #. type: verbatim
39492 #: ../src/guestfs.pod:2090
39493 #, no-wrap
39494 msgid ""
39495 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39496 "\n"
39497 msgstr ""
39498
39499 #. type: verbatim
39500 #: ../src/guestfs.pod:2092
39501 #, no-wrap
39502 msgid ""
39503 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39504 "\n"
39505 msgstr ""
39506
39507 #. type: textblock
39508 #: ../src/guestfs.pod:2094
39509 msgid ""
39510 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
39511 "not have any particular meaning -- keys are not returned in any defined "
39512 "order).  A pointer to the key is returned in C<*key_rtn> and the "
39513 "corresponding data pointer is returned from the function.  C<NULL> is "
39514 "returned if there are no keys stored in the handle."
39515 msgstr ""
39516
39517 #. type: textblock
39518 #: ../src/guestfs.pod:2100
39519 msgid ""
39520 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
39521 "value of this function is also C<NULL> is there are no further entries to "
39522 "return."
39523 msgstr ""
39524
39525 #. type: textblock
39526 #: ../src/guestfs.pod:2104
39527 msgid "Notes about walking over entries:"
39528 msgstr ""
39529
39530 #. type: textblock
39531 #: ../src/guestfs.pod:2110
39532 msgid ""
39533 "You must not call C<guestfs_set_private> while walking over the entries."
39534 msgstr ""
39535
39536 #. type: textblock
39537 #: ../src/guestfs.pod:2115
39538 msgid ""
39539 "The handle maintains an internal iterator which is reset when you call "
39540 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
39541 "call C<guestfs_set_private>."
39542 msgstr ""
39543
39544 #. type: textblock
39545 #: ../src/guestfs.pod:2121
39546 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39547 msgstr ""
39548
39549 #. type: verbatim
39550 #: ../src/guestfs.pod:2123
39551 #, no-wrap
39552 msgid ""
39553 " guestfs_set_private (g, key, NULL);\n"
39554 "\n"
39555 msgstr ""
39556
39557 #. type: textblock
39558 #: ../src/guestfs.pod:2125
39559 msgid "then that C<key> is not returned when walking."
39560 msgstr ""
39561
39562 #. type: textblock
39563 #: ../src/guestfs.pod:2129
39564 msgid ""
39565 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39566 "C<guestfs_next_private> or C<guestfs_set_private>."
39567 msgstr ""
39568
39569 #. type: textblock
39570 #: ../src/guestfs.pod:2135
39571 msgid ""
39572 "The following example code shows how to print all keys and data pointers "
39573 "that are associated with the handle C<g>:"
39574 msgstr ""
39575
39576 #. type: verbatim
39577 #: ../src/guestfs.pod:2138
39578 #, no-wrap
39579 msgid ""
39580 " const char *key;\n"
39581 " void *data = guestfs_first_private (g, &key);\n"
39582 " while (data != NULL)\n"
39583 "   {\n"
39584 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
39585 "     data = guestfs_next_private (g, &key);\n"
39586 "   }\n"
39587 "\n"
39588 msgstr ""
39589
39590 #. type: textblock
39591 #: ../src/guestfs.pod:2146
39592 msgid ""
39593 "More commonly you are only interested in keys that begin with an application-"
39594 "specific prefix C<foo_>.  Modify the loop like so:"
39595 msgstr ""
39596
39597 #. type: verbatim
39598 #: ../src/guestfs.pod:2149
39599 #, no-wrap
39600 msgid ""
39601 " const char *key;\n"
39602 " void *data = guestfs_first_private (g, &key);\n"
39603 " while (data != NULL)\n"
39604 "   {\n"
39605 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39606 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
39607 "     data = guestfs_next_private (g, &key);\n"
39608 "   }\n"
39609 "\n"
39610 msgstr ""
39611
39612 #. type: textblock
39613 #: ../src/guestfs.pod:2158
39614 msgid ""
39615 "If you need to modify keys while walking, then you have to jump back to the "
39616 "beginning of the loop.  For example, to delete all keys prefixed with "
39617 "C<foo_>:"
39618 msgstr ""
39619
39620 #. type: verbatim
39621 #: ../src/guestfs.pod:2162
39622 #, no-wrap
39623 msgid ""
39624 "  const char *key;\n"
39625 "  void *data;\n"
39626 " again:\n"
39627 "  data = guestfs_first_private (g, &key);\n"
39628 "  while (data != NULL)\n"
39629 "    {\n"
39630 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39631 "        {\n"
39632 "          guestfs_set_private (g, key, NULL);\n"
39633 "          /* note that 'key' pointer is now invalid, and so is\n"
39634 "             the internal iterator */\n"
39635 "          goto again;\n"
39636 "        }\n"
39637 "      data = guestfs_next_private (g, &key);\n"
39638 "    }\n"
39639 "\n"
39640 msgstr ""
39641
39642 #. type: textblock
39643 #: ../src/guestfs.pod:2178
39644 msgid ""
39645 "Note that the above loop is guaranteed to terminate because the keys are "
39646 "being deleted, but other manipulations of keys within the loop might not "
39647 "terminate unless you also maintain an indication of which keys have been "
39648 "visited."
39649 msgstr ""
39650
39651 #. type: =head1
39652 #: ../src/guestfs.pod:2183
39653 msgid "SYSTEMTAP"
39654 msgstr ""
39655
39656 #. type: textblock
39657 #: ../src/guestfs.pod:2185
39658 msgid ""
39659 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
39660 "true of any library, not just libguestfs.  However libguestfs also contains "
39661 "static markers to help in probing internal operations."
39662 msgstr ""
39663
39664 #. type: textblock
39665 #: ../src/guestfs.pod:2189
39666 msgid "You can list all the static markers by doing:"
39667 msgstr ""
39668
39669 #. type: verbatim
39670 #: ../src/guestfs.pod:2191
39671 #, no-wrap
39672 msgid ""
39673 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39674 "              .provider(\"guestfs\").mark(\"*\")'\n"
39675 "\n"
39676 msgstr ""
39677
39678 #. type: textblock
39679 #: ../src/guestfs.pod:2194
39680 msgid ""
39681 "B<Note:> These static markers are I<not> part of the stable API and may "
39682 "change in future versions."
39683 msgstr ""
39684
39685 #. type: =head2
39686 #: ../src/guestfs.pod:2197
39687 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39688 msgstr ""
39689
39690 #. type: textblock
39691 #: ../src/guestfs.pod:2199
39692 msgid ""
39693 "This script contains examples of displaying both the static markers and some "
39694 "ordinary C entry points:"
39695 msgstr ""
39696
39697 #. type: verbatim
39698 #: ../src/guestfs.pod:2202
39699 #, no-wrap
39700 msgid ""
39701 " global last;\n"
39702 " \n"
39703 msgstr ""
39704
39705 #. type: verbatim
39706 #: ../src/guestfs.pod:2204
39707 #, no-wrap
39708 msgid ""
39709 " function display_time () {\n"
39710 "       now = gettimeofday_us ();\n"
39711 "       delta = 0;\n"
39712 "       if (last > 0)\n"
39713 "             delta = now - last;\n"
39714 "       last = now;\n"
39715 " \n"
39716 msgstr ""
39717
39718 #. type: verbatim
39719 #: ../src/guestfs.pod:2211
39720 #, no-wrap
39721 msgid ""
39722 "       printf (\"%d (+%d):\", now, delta);\n"
39723 " }\n"
39724 " \n"
39725 msgstr ""
39726
39727 #. type: verbatim
39728 #: ../src/guestfs.pod:2214
39729 #, no-wrap
39730 msgid ""
39731 " probe begin {\n"
39732 "       last = 0;\n"
39733 "       printf (\"ready\\n\");\n"
39734 " }\n"
39735 " \n"
39736 msgstr ""
39737
39738 #. type: verbatim
39739 #: ../src/guestfs.pod:2219
39740 #, no-wrap
39741 msgid ""
39742 " /* Display all calls to static markers. */\n"
39743 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39744 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
39745 "       display_time();\n"
39746 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39747 " }\n"
39748 " \n"
39749 msgstr ""
39750
39751 #. type: verbatim
39752 #: ../src/guestfs.pod:2226
39753 #, no-wrap
39754 msgid ""
39755 " /* Display all calls to guestfs_mkfs* functions. */\n"
39756 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39757 "           .function(\"guestfs_mkfs*\") ? {\n"
39758 "       display_time();\n"
39759 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39760 " }\n"
39761 "\n"
39762 msgstr ""
39763
39764 #. type: textblock
39765 #: ../src/guestfs.pod:2233
39766 msgid ""
39767 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39768 "program.  Note that you either have to be root, or you have to add yourself "
39769 "to several special stap groups.  Consult the systemtap documentation for "
39770 "more information."
39771 msgstr ""
39772
39773 #. type: verbatim
39774 #: ../src/guestfs.pod:2238
39775 #, no-wrap
39776 msgid ""
39777 " # stap /tmp/test.stap\n"
39778 " ready\n"
39779 "\n"
39780 msgstr ""
39781
39782 #. type: textblock
39783 #: ../src/guestfs.pod:2241
39784 msgid "In another terminal, run a guestfish command such as this:"
39785 msgstr ""
39786
39787 #. type: textblock
39788 #: ../src/guestfs.pod:2245
39789 msgid "In the first terminal, stap trace output similar to this is shown:"
39790 msgstr ""
39791
39792 #. type: verbatim
39793 #: ../src/guestfs.pod:2247
39794 #, no-wrap
39795 msgid ""
39796 " 1318248056692655 (+0):\tlaunch_start\n"
39797 " 1318248056692850 (+195):       launch_build_appliance_start\n"
39798 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
39799 " 1318248056838059 (+19774):     launch_run_qemu\n"
39800 " 1318248061071167 (+4233108):   launch_end\n"
39801 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
39802 "\n"
39803 msgstr ""
39804
39805 #. type: =end
39806 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
39807 msgid "html"
39808 msgstr "html"
39809
39810 #. type: textblock
39811 #: ../src/guestfs.pod:2256
39812 msgid ""
39813 "<!-- old anchor for the next section --> <a name="
39814 "\"state_machine_and_low_level_event_api\"/>"
39815 msgstr ""
39816 "<!-- old anchor for the next section --> <a name="
39817 "\"state_machine_and_low_level_event_api\"/>"
39818
39819 #. type: =head1
39820 #: ../src/guestfs.pod:2261
39821 msgid "ARCHITECTURE"
39822 msgstr "АРХІТЕКТУРА"
39823
39824 #. type: textblock
39825 #: ../src/guestfs.pod:2263
39826 msgid ""
39827 "Internally, libguestfs is implemented by running an appliance (a special "
39828 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
39829 "process of the main program."
39830 msgstr ""
39831
39832 #. type: verbatim
39833 #: ../src/guestfs.pod:2267
39834 #, no-wrap
39835 msgid ""
39836 "  ___________________\n"
39837 " /                   \\\n"
39838 " | main program      |\n"
39839 " |                   |\n"
39840 " |                   |           child process / appliance\n"
39841 " |                   |           __________________________\n"
39842 " |                   |          / qemu                     \\\n"
39843 " +-------------------+   RPC    |      +-----------------+ |\n"
39844 " | libguestfs     <--------------------> guestfsd        | |\n"
39845 " |                   |          |      +-----------------+ |\n"
39846 " \\___________________/          |      | Linux kernel    | |\n"
39847 "                                |      +--^--------------+ |\n"
39848 "                                \\_________|________________/\n"
39849 "                                          |\n"
39850 "                                   _______v______\n"
39851 "                                  /              \\\n"
39852 "                                  | Device or    |\n"
39853 "                                  | disk image   |\n"
39854 "                                  \\______________/\n"
39855 "\n"
39856 msgstr ""
39857
39858 #. type: textblock
39859 #: ../src/guestfs.pod:2287
39860 msgid ""
39861 "The library, linked to the main program, creates the child process and hence "
39862 "the appliance in the L</guestfs_launch> function."
39863 msgstr ""
39864
39865 #. type: textblock
39866 #: ../src/guestfs.pod:2290
39867 msgid ""
39868 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39869 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39870 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
39871 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
39872 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
39873 "attached to the qemu process which translates device access by the "
39874 "appliance's Linux kernel into accesses to the image."
39875 msgstr ""
39876
39877 #. type: textblock
39878 #: ../src/guestfs.pod:2299
39879 msgid ""
39880 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
39881 "Although the disk image you are attached to might also be used by some "
39882 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
39883 "care if both libguestfs's qemu process and your virtual machine are trying "
39884 "to update the disk image at the same time, since these usually results in "
39885 "massive disk corruption)."
39886 msgstr ""
39887
39888 #. type: =head1
39889 #: ../src/guestfs.pod:2306
39890 msgid "STATE MACHINE"
39891 msgstr "СКІНЧЕННИЙ АВТОМАТ"
39892
39893 #. type: textblock
39894 #: ../src/guestfs.pod:2308
39895 msgid "libguestfs uses a state machine to model the child process:"
39896 msgstr ""
39897
39898 #. type: verbatim
39899 #: ../src/guestfs.pod:2310
39900 #, no-wrap
39901 msgid ""
39902 "                         |\n"
39903 "                    guestfs_create\n"
39904 "                         |\n"
39905 "                         |\n"
39906 "                     ____V_____\n"
39907 "                    /          \\\n"
39908 "                    |  CONFIG  |\n"
39909 "                    \\__________/\n"
39910 "                     ^ ^   ^  \\\n"
39911 "                    /  |    \\  \\ guestfs_launch\n"
39912 "                   /   |    _\\__V______\n"
39913 "                  /    |   /           \\\n"
39914 "                 /     |   | LAUNCHING |\n"
39915 "                /      |   \\___________/\n"
39916 "               /       |       /\n"
39917 "              /        |  guestfs_launch\n"
39918 "             /         |     /\n"
39919 "    ______  /        __|____V\n"
39920 "   /      \\ ------> /        \\\n"
39921 "   | BUSY |         | READY  |\n"
39922 "   \\______/ <------ \\________/\n"
39923 "\n"
39924 msgstr ""
39925
39926 #. type: textblock
39927 #: ../src/guestfs.pod:2332
39928 msgid ""
39929 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39930 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39931 "(3) alternating between READY and BUSY as commands are issued to, and "
39932 "carried out by, the child process."
39933 msgstr ""
39934
39935 #. type: textblock
39936 #: ../src/guestfs.pod:2337
39937 msgid ""
39938 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39939 "asynchronously at any time (eg. due to some internal error), and that causes "
39940 "the state to transition back to CONFIG."
39941 msgstr ""
39942
39943 #. type: textblock
39944 #: ../src/guestfs.pod:2341
39945 msgid ""
39946 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39947 "issued when in the CONFIG state."
39948 msgstr ""
39949
39950 #. type: textblock
39951 #: ../src/guestfs.pod:2344
39952 msgid ""
39953 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
39954 "L</guestfs_launch> blocks until the child process is READY to accept "
39955 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
39956 "moves the state from CONFIG to LAUNCHING while it is running."
39957 msgstr ""
39958
39959 #. type: textblock
39960 #: ../src/guestfs.pod:2350
39961 msgid ""
39962 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39963 "state.  These API calls block waiting for the command to be carried out (ie. "
39964 "the state to transition to BUSY and then back to READY).  There are no non-"
39965 "blocking versions, and no way to issue more than one command per handle at "
39966 "the same time."
39967 msgstr ""
39968
39969 #. type: textblock
39970 #: ../src/guestfs.pod:2356
39971 msgid ""
39972 "Finally, the child process sends asynchronous messages back to the main "
39973 "program, such as kernel log messages.  You can register a callback to "
39974 "receive these messages."
39975 msgstr ""
39976
39977 #. type: =head1
39978 #: ../src/guestfs.pod:2360
39979 msgid "INTERNALS"
39980 msgstr ""
39981
39982 #. type: =head2
39983 #: ../src/guestfs.pod:2362
39984 msgid "APPLIANCE BOOT PROCESS"
39985 msgstr ""
39986
39987 #. type: textblock
39988 #: ../src/guestfs.pod:2364
39989 msgid ""
39990 "This process has evolved and continues to evolve.  The description here "
39991 "corresponds only to the current version of libguestfs and is provided for "
39992 "information only."
39993 msgstr ""
39994
39995 #. type: textblock
39996 #: ../src/guestfs.pod:2368
39997 msgid ""
39998 "In order to follow the stages involved below, enable libguestfs debugging "
39999 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
40000 msgstr ""
40001
40002 #. type: =item
40003 #: ../src/guestfs.pod:2373
40004 msgid "Create the appliance"
40005 msgstr ""
40006
40007 #. type: textblock
40008 #: ../src/guestfs.pod:2375
40009 msgid ""
40010 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
40011 "initrd and the appliance."
40012 msgstr ""
40013
40014 #. type: textblock
40015 #: ../src/guestfs.pod:2378
40016 msgid ""
40017 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
40018 "directory if C<TMPDIR> is set)."
40019 msgstr ""
40020
40021 #. type: textblock
40022 #: ../src/guestfs.pod:2381
40023 msgid ""
40024 "For a complete description of how the appliance is created and cached, read "
40025 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
40026 msgstr ""
40027
40028 #. type: =item
40029 #: ../src/guestfs.pod:2385
40030 msgid "Start qemu and boot the kernel"
40031 msgstr ""
40032
40033 #. type: textblock
40034 #: ../src/guestfs.pod:2387
40035 msgid "qemu is invoked to boot the kernel."
40036 msgstr ""
40037
40038 #. type: =item
40039 #: ../src/guestfs.pod:2389
40040 msgid "Run the initrd"
40041 msgstr ""
40042
40043 #. type: textblock
40044 #: ../src/guestfs.pod:2391
40045 msgid ""
40046 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
40047 "appliance.  The purpose of the initrd is to load enough kernel modules in "
40048 "order that the appliance itself can be mounted and started."
40049 msgstr ""
40050
40051 #. type: textblock
40052 #: ../src/guestfs.pod:2395
40053 msgid ""
40054 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
40055 "initrd>."
40056 msgstr ""
40057
40058 #. type: textblock
40059 #: ../src/guestfs.pod:2398
40060 msgid ""
40061 "When the initrd has started you will see messages showing that kernel "
40062 "modules are being loaded, similar to this:"
40063 msgstr ""
40064
40065 #. type: verbatim
40066 #: ../src/guestfs.pod:2401
40067 #, no-wrap
40068 msgid ""
40069 " febootstrap: ext2 mini initrd starting up\n"
40070 " febootstrap: mounting /sys\n"
40071 " febootstrap: internal insmod libcrc32c.ko\n"
40072 " febootstrap: internal insmod crc32c-intel.ko\n"
40073 "\n"
40074 msgstr ""
40075
40076 #. type: =item
40077 #: ../src/guestfs.pod:2406
40078 msgid "Find and mount the appliance device"
40079 msgstr ""
40080
40081 #. type: textblock
40082 #: ../src/guestfs.pod:2408
40083 msgid ""
40084 "The appliance is a sparse file containing an ext2 filesystem which contains "
40085 "a familiar (although reduced in size) Linux operating system.  It would "
40086 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40087 msgstr ""
40088
40089 #. type: textblock
40090 #: ../src/guestfs.pod:2412
40091 msgid ""
40092 "The regular disks being inspected by libguestfs are the first devices "
40093 "exposed by qemu (eg. as C</dev/vda>)."
40094 msgstr ""
40095
40096 #. type: textblock
40097 #: ../src/guestfs.pod:2415
40098 msgid ""
40099 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40100 "there was only one regular disk)."
40101 msgstr ""
40102
40103 #. type: textblock
40104 #: ../src/guestfs.pod:2418
40105 msgid ""
40106 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40107 "and switch root into the appliance, and run C</init> from the appliance."
40108 msgstr ""
40109
40110 #. type: textblock
40111 #: ../src/guestfs.pod:2422
40112 msgid "If this works successfully you will see messages such as:"
40113 msgstr ""
40114
40115 #. type: verbatim
40116 #: ../src/guestfs.pod:2424
40117 #, no-wrap
40118 msgid ""
40119 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40120 " febootstrap: creating /dev/root as block special 252:16\n"
40121 " febootstrap: mounting new root on /root\n"
40122 " febootstrap: chroot\n"
40123 " Starting /init script ...\n"
40124 "\n"
40125 msgstr ""
40126
40127 #. type: textblock
40128 #: ../src/guestfs.pod:2430
40129 msgid ""
40130 "Note that C<Starting /init script ...> indicates that the appliance's init "
40131 "script is now running."
40132 msgstr ""
40133
40134 #. type: =item
40135 #: ../src/guestfs.pod:2433
40136 msgid "Initialize the appliance"
40137 msgstr ""
40138
40139 #. type: textblock
40140 #: ../src/guestfs.pod:2435
40141 msgid ""
40142 "The appliance itself now initializes itself.  This involves starting certain "
40143 "processes like C<udev>, possibly printing some debug information, and "
40144 "finally running the daemon (C<guestfsd>)."
40145 msgstr ""
40146
40147 #. type: =item
40148 #: ../src/guestfs.pod:2439
40149 msgid "The daemon"
40150 msgstr ""
40151
40152 #. type: textblock
40153 #: ../src/guestfs.pod:2441
40154 msgid ""
40155 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
40156 "should see:"
40157 msgstr ""
40158
40159 #. type: verbatim
40160 #: ../src/guestfs.pod:2444
40161 #, no-wrap
40162 msgid ""
40163 " verbose daemon enabled\n"
40164 "\n"
40165 msgstr ""
40166
40167 #. type: textblock
40168 #: ../src/guestfs.pod:2446
40169 msgid ""
40170 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40171 "connected on the other end to the library."
40172 msgstr ""
40173
40174 #. type: textblock
40175 #: ../src/guestfs.pod:2449
40176 msgid ""
40177 "The daemon connects to this port (and hence to the library) and sends a four "
40178 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40179 "protocol (see below)."
40180 msgstr ""
40181
40182 #. type: =head2
40183 #: ../src/guestfs.pod:2455
40184 msgid "COMMUNICATION PROTOCOL"
40185 msgstr ""
40186
40187 #. type: textblock
40188 #: ../src/guestfs.pod:2457
40189 msgid ""
40190 "Don't rely on using this protocol directly.  This section documents how it "
40191 "currently works, but it may change at any time."
40192 msgstr ""
40193
40194 #. type: textblock
40195 #: ../src/guestfs.pod:2460
40196 msgid ""
40197 "The protocol used to talk between the library and the daemon running inside "
40198 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40199 "1014, RFC 1832, RFC 4506)."
40200 msgstr ""
40201
40202 #. type: textblock
40203 #: ../src/guestfs.pod:2464
40204 msgid ""
40205 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40206 "this file is automatically generated)."
40207 msgstr ""
40208
40209 #. type: textblock
40210 #: ../src/guestfs.pod:2467
40211 msgid ""
40212 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40213 "and C<FileOut> parameters, which are handled with very simple request/reply "
40214 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
40215 "parameters, which use the same request and reply messages, but they may also "
40216 "be followed by files sent using a chunked encoding."
40217 msgstr ""
40218
40219 #. type: =head3
40220 #: ../src/guestfs.pod:2474
40221 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40222 msgstr ""
40223
40224 #. type: textblock
40225 #: ../src/guestfs.pod:2476
40226 msgid "For ordinary functions, the request message is:"
40227 msgstr ""
40228
40229 #. type: verbatim
40230 #: ../src/guestfs.pod:2478
40231 #, no-wrap
40232 msgid ""
40233 " total length (header + arguments,\n"
40234 "      but not including the length word itself)\n"
40235 " struct guestfs_message_header (encoded as XDR)\n"
40236 " struct guestfs_<foo>_args (encoded as XDR)\n"
40237 "\n"
40238 msgstr ""
40239
40240 #. type: textblock
40241 #: ../src/guestfs.pod:2483
40242 msgid ""
40243 "The total length field allows the daemon to allocate a fixed size buffer "
40244 "into which it slurps the rest of the message.  As a result, the total length "
40245 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
40246 "effective size of any request is limited to somewhere under this size."
40247 msgstr ""
40248
40249 #. type: textblock
40250 #: ../src/guestfs.pod:2489
40251 msgid ""
40252 "Note also that many functions don't take any arguments, in which case the "
40253 "C<guestfs_I<foo>_args> is completely omitted."
40254 msgstr ""
40255
40256 #. type: textblock
40257 #: ../src/guestfs.pod:2492
40258 msgid ""
40259 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40260 "receiver knows what type of args structure to expect, or none at all."
40261 msgstr ""
40262
40263 #. type: textblock
40264 #: ../src/guestfs.pod:2496
40265 msgid ""
40266 "For functions that take optional arguments, the optional arguments are "
40267 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40268 "arguments.  A bitmask in the header indicates which optional arguments are "
40269 "meaningful.  The bitmask is also checked to see if it contains bits set "
40270 "which the daemon does not know about (eg. if more optional arguments were "
40271 "added in a later version of the library), and this causes the call to be "
40272 "rejected."
40273 msgstr ""
40274
40275 #. type: textblock
40276 #: ../src/guestfs.pod:2504
40277 msgid "The reply message for ordinary functions is:"
40278 msgstr ""
40279
40280 #. type: verbatim
40281 #: ../src/guestfs.pod:2506
40282 #, no-wrap
40283 msgid ""
40284 " total length (header + ret,\n"
40285 "      but not including the length word itself)\n"
40286 " struct guestfs_message_header (encoded as XDR)\n"
40287 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40288 "\n"
40289 msgstr ""
40290
40291 #. type: textblock
40292 #: ../src/guestfs.pod:2511
40293 msgid ""
40294 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40295 "functions that return no formal return values."
40296 msgstr ""
40297
40298 #. type: textblock
40299 #: ../src/guestfs.pod:2514
40300 msgid ""
40301 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
40302 msgstr ""
40303
40304 #. type: textblock
40305 #: ../src/guestfs.pod:2517
40306 msgid ""
40307 "In the case of an error, a flag is set in the header, and the reply message "
40308 "is slightly changed:"
40309 msgstr ""
40310
40311 #. type: verbatim
40312 #: ../src/guestfs.pod:2520
40313 #, no-wrap
40314 msgid ""
40315 " total length (header + error,\n"
40316 "      but not including the length word itself)\n"
40317 " struct guestfs_message_header (encoded as XDR)\n"
40318 " struct guestfs_message_error (encoded as XDR)\n"
40319 "\n"
40320 msgstr ""
40321
40322 #. type: textblock
40323 #: ../src/guestfs.pod:2525
40324 msgid ""
40325 "The C<guestfs_message_error> structure contains the error message as a "
40326 "string."
40327 msgstr ""
40328
40329 #. type: =head3
40330 #: ../src/guestfs.pod:2528
40331 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
40332 msgstr ""
40333
40334 #. type: textblock
40335 #: ../src/guestfs.pod:2530
40336 msgid ""
40337 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
40338 "The normal request message is sent (see above).  However this is followed by "
40339 "a sequence of file chunks."
40340 msgstr ""
40341
40342 #. type: verbatim
40343 #: ../src/guestfs.pod:2534
40344 #, no-wrap
40345 msgid ""
40346 " total length (header + arguments,\n"
40347 "      but not including the length word itself,\n"
40348 "      and not including the chunks)\n"
40349 " struct guestfs_message_header (encoded as XDR)\n"
40350 " struct guestfs_<foo>_args (encoded as XDR)\n"
40351 " sequence of chunks for FileIn param #0\n"
40352 " sequence of chunks for FileIn param #1 etc.\n"
40353 "\n"
40354 msgstr ""
40355
40356 #. type: textblock
40357 #: ../src/guestfs.pod:2542
40358 msgid "The \"sequence of chunks\" is:"
40359 msgstr ""
40360
40361 #. type: verbatim
40362 #: ../src/guestfs.pod:2544
40363 #, no-wrap
40364 msgid ""
40365 " length of chunk (not including length word itself)\n"
40366 " struct guestfs_chunk (encoded as XDR)\n"
40367 " length of chunk\n"
40368 " struct guestfs_chunk (encoded as XDR)\n"
40369 "   ...\n"
40370 " length of chunk\n"
40371 " struct guestfs_chunk (with data.data_len == 0)\n"
40372 "\n"
40373 msgstr ""
40374
40375 #. type: textblock
40376 #: ../src/guestfs.pod:2552
40377 msgid ""
40378 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
40379 "is set in the final chunk to indicate either successful completion or early "
40380 "cancellation."
40381 msgstr ""
40382
40383 #. type: textblock
40384 #: ../src/guestfs.pod:2556
40385 msgid ""
40386 "At time of writing there are no functions that have more than one FileIn "
40387 "parameter.  However this is (theoretically) supported, by sending the "
40388 "sequence of chunks for each FileIn parameter one after another (from left to "
40389 "right)."
40390 msgstr ""
40391
40392 #. type: textblock
40393 #: ../src/guestfs.pod:2561
40394 msgid ""
40395 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
40396 "transfer.  The library does this by sending a chunk with a special flag set "
40397 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
40398 "RPC, does I<not> send any reply, and goes back to reading the next request."
40399 msgstr ""
40400
40401 #. type: textblock
40402 #: ../src/guestfs.pod:2567
40403 msgid ""
40404 "The daemon may also cancel.  It does this by writing a special word "
40405 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
40406 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
40407 "cancel chunk).  The special word is chosen so that even if cancellation "
40408 "happens right at the end of the transfer (after the library has finished "
40409 "writing and has started listening for the reply), the \"spurious\" cancel "
40410 "flag will not be confused with the reply message."
40411 msgstr ""
40412
40413 #. type: textblock
40414 #: ../src/guestfs.pod:2576
40415 msgid ""
40416 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
40417 "limit), and also files where the size is not known in advance (eg. from "
40418 "pipes or sockets).  However the chunks are rather small "
40419 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
40420 "to keep much in memory."
40421 msgstr ""
40422
40423 #. type: =head3
40424 #: ../src/guestfs.pod:2582
40425 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
40426 msgstr ""
40427
40428 #. type: textblock
40429 #: ../src/guestfs.pod:2584
40430 msgid ""
40431 "The protocol for FileOut parameters is exactly the same as for FileIn "
40432 "parameters, but with the roles of daemon and library reversed."
40433 msgstr ""
40434
40435 #. type: verbatim
40436 #: ../src/guestfs.pod:2587
40437 #, no-wrap
40438 msgid ""
40439 " total length (header + ret,\n"
40440 "      but not including the length word itself,\n"
40441 "      and not including the chunks)\n"
40442 " struct guestfs_message_header (encoded as XDR)\n"
40443 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40444 " sequence of chunks for FileOut param #0\n"
40445 " sequence of chunks for FileOut param #1 etc.\n"
40446 "\n"
40447 msgstr ""
40448
40449 #. type: =head3
40450 #: ../src/guestfs.pod:2595
40451 msgid "INITIAL MESSAGE"
40452 msgstr ""
40453
40454 #. type: textblock
40455 #: ../src/guestfs.pod:2597
40456 msgid ""
40457 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
40458 "which indicates that the guest and daemon is alive.  This is what L</"
40459 "guestfs_launch> waits for."
40460 msgstr ""
40461
40462 #. type: =head3
40463 #: ../src/guestfs.pod:2601
40464 msgid "PROGRESS NOTIFICATION MESSAGES"
40465 msgstr ""
40466
40467 #. type: textblock
40468 #: ../src/guestfs.pod:2603
40469 msgid ""
40470 "The daemon may send progress notification messages at any time.  These are "
40471 "distinguished by the normal length word being replaced by "
40472 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
40473 msgstr ""
40474
40475 #. type: textblock
40476 #: ../src/guestfs.pod:2607
40477 msgid ""
40478 "The library turns them into progress callbacks (see L</"
40479 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
40480 "if not."
40481 msgstr ""
40482
40483 #. type: textblock
40484 #: ../src/guestfs.pod:2611
40485 msgid ""
40486 "The daemon self-limits the frequency of progress messages it sends (see "
40487 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
40488 "messages."
40489 msgstr ""
40490
40491 #. type: =head1
40492 #: ../src/guestfs.pod:2615
40493 msgid "LIBGUESTFS VERSION NUMBERS"
40494 msgstr ""
40495
40496 #. type: textblock
40497 #: ../src/guestfs.pod:2617
40498 msgid ""
40499 "Since April 2010, libguestfs has started to make separate development and "
40500 "stable releases, along with corresponding branches in our git repository.  "
40501 "These separate releases can be identified by version number:"
40502 msgstr ""
40503
40504 #. type: verbatim
40505 #: ../src/guestfs.pod:2622
40506 #, no-wrap
40507 msgid ""
40508 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
40509 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
40510 "       |\n"
40511 "       v\n"
40512 " 1  .  3  .  5\n"
40513 " ^           ^\n"
40514 " |           |\n"
40515 " |           `-------- sub-version\n"
40516 " |\n"
40517 " `------ always '1' because we don't change the ABI\n"
40518 "\n"
40519 msgstr ""
40520
40521 #. type: textblock
40522 #: ../src/guestfs.pod:2633
40523 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
40524 msgstr ""
40525
40526 #. type: textblock
40527 #: ../src/guestfs.pod:2635
40528 msgid ""
40529 "As time passes we cherry pick fixes from the development branch and backport "
40530 "those into the stable branch, the effect being that the stable branch should "
40531 "get more stable and less buggy over time.  So the stable releases are ideal "
40532 "for people who don't need new features but would just like the software to "
40533 "work."
40534 msgstr ""
40535
40536 #. type: textblock
40537 #: ../src/guestfs.pod:2641
40538 msgid "Our criteria for backporting changes are:"
40539 msgstr ""
40540
40541 #. type: textblock
40542 #: ../src/guestfs.pod:2647
40543 msgid ""
40544 "Documentation changes which don't affect any code are backported unless the "
40545 "documentation refers to a future feature which is not in stable."
40546 msgstr ""
40547
40548 #. type: textblock
40549 #: ../src/guestfs.pod:2653
40550 msgid ""
40551 "Bug fixes which are not controversial, fix obvious problems, and have been "
40552 "well tested are backported."
40553 msgstr ""
40554
40555 #. type: textblock
40556 #: ../src/guestfs.pod:2658
40557 msgid ""
40558 "Simple rearrangements of code which shouldn't affect how it works get "
40559 "backported.  This is so that the code in the two branches doesn't get too "
40560 "far out of step, allowing us to backport future fixes more easily."
40561 msgstr ""
40562
40563 #. type: textblock
40564 #: ../src/guestfs.pod:2664
40565 msgid ""
40566 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40567 "exceptional case: the new feature is required in order to implement an "
40568 "important bug fix."
40569 msgstr ""
40570
40571 #. type: textblock
40572 #: ../src/guestfs.pod:2670
40573 msgid ""
40574 "A new stable branch starts when we think the new features in development are "
40575 "substantial and compelling enough over the current stable branch to warrant "
40576 "it.  When that happens we create new stable and development versions 1.N.0 "
40577 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
40578 "stable at this point, but by backporting fixes from development, that branch "
40579 "will stabilize over time."
40580 msgstr ""
40581
40582 #. type: =head1
40583 #: ../src/guestfs.pod:2678
40584 msgid "EXTENDING LIBGUESTFS"
40585 msgstr ""
40586
40587 #. type: =head2
40588 #: ../src/guestfs.pod:2680
40589 msgid "ADDING A NEW API ACTION"
40590 msgstr ""
40591
40592 #. type: textblock
40593 #: ../src/guestfs.pod:2682
40594 msgid ""
40595 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
40596 "documentation) are generated, and this makes it easy to extend the "
40597 "libguestfs API."
40598 msgstr ""
40599
40600 #. type: textblock
40601 #: ../src/guestfs.pod:2686
40602 msgid "To add a new API action there are two changes:"
40603 msgstr ""
40604
40605 #. type: textblock
40606 #: ../src/guestfs.pod:2692
40607 msgid ""
40608 "You need to add a description of the call (name, parameters, return type, "
40609 "tests, documentation) to C<generator/generator_actions.ml>."
40610 msgstr ""
40611
40612 #. type: textblock
40613 #: ../src/guestfs.pod:2695
40614 msgid ""
40615 "There are two sorts of API action, depending on whether the call goes "
40616 "through to the daemon in the appliance, or is serviced entirely by the "
40617 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
40618 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
40619 "an example of the latter, since a trace flag is maintained in the handle and "
40620 "all tracing is done on the library side."
40621 msgstr ""
40622
40623 #. type: textblock
40624 #: ../src/guestfs.pod:2703
40625 msgid ""
40626 "Most new actions are of the first type, and get added to the "
40627 "C<daemon_functions> list.  Each function has a unique procedure number used "
40628 "in the RPC protocol which is assigned to that action when we publish "
40629 "libguestfs and cannot be reused.  Take the latest procedure number and "
40630 "increment it."
40631 msgstr ""
40632
40633 #. type: textblock
40634 #: ../src/guestfs.pod:2709
40635 msgid ""
40636 "For library-only actions of the second type, add to the "
40637 "C<non_daemon_functions> list.  Since these functions are serviced by the "
40638 "library and do not travel over the RPC mechanism to the daemon, these "
40639 "functions do not need a procedure number, and so the procedure number is set "
40640 "to C<-1>."
40641 msgstr ""
40642
40643 #. type: textblock
40644 #: ../src/guestfs.pod:2717
40645 msgid "Implement the action (in C):"
40646 msgstr ""
40647
40648 #. type: textblock
40649 #: ../src/guestfs.pod:2719
40650 msgid ""
40651 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40652 "C<daemon/> directory."
40653 msgstr ""
40654
40655 #. type: textblock
40656 #: ../src/guestfs.pod:2722
40657 msgid ""
40658 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40659 "(note: double underscore) in the C<src/> directory."
40660 msgstr ""
40661
40662 #. type: textblock
40663 #: ../src/guestfs.pod:2725
40664 msgid "In either case, use another function as an example of what to do."
40665 msgstr ""
40666
40667 #. type: textblock
40668 #: ../src/guestfs.pod:2729
40669 msgid "After making these changes, use C<make> to compile."
40670 msgstr ""
40671
40672 #. type: textblock
40673 #: ../src/guestfs.pod:2731
40674 msgid ""
40675 "Note that you don't need to implement the RPC, language bindings, manual "
40676 "pages or anything else.  It's all automatically generated from the OCaml "
40677 "description."
40678 msgstr ""
40679
40680 #. type: =head2
40681 #: ../src/guestfs.pod:2735
40682 msgid "ADDING TESTS FOR AN API ACTION"
40683 msgstr ""
40684
40685 #. type: textblock
40686 #: ../src/guestfs.pod:2737
40687 msgid ""
40688 "You can supply zero or as many tests as you want per API call.  The tests "
40689 "can either be added as part of the API description (C<generator/"
40690 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
40691 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
40692 "slower, so if possible use the first method."
40693 msgstr ""
40694
40695 #. type: textblock
40696 #: ../src/guestfs.pod:2743
40697 msgid ""
40698 "The following describes the test environment used when you add an API test "
40699 "in C<generator_actions.ml>."
40700 msgstr ""
40701
40702 #. type: textblock
40703 #: ../src/guestfs.pod:2746
40704 msgid "The test environment has 4 block devices:"
40705 msgstr ""
40706
40707 #. type: =item
40708 #: ../src/guestfs.pod:2750
40709 msgid "C</dev/sda> 500MB"
40710 msgstr "C</dev/sda> 500 МБ"
40711
40712 #. type: textblock
40713 #: ../src/guestfs.pod:2752
40714 msgid "General block device for testing."
40715 msgstr ""
40716
40717 #. type: =item
40718 #: ../src/guestfs.pod:2754
40719 msgid "C</dev/sdb> 50MB"
40720 msgstr "C</dev/sdb> 50 МБ"
40721
40722 #. type: textblock
40723 #: ../src/guestfs.pod:2756
40724 msgid ""
40725 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40726 "operations."
40727 msgstr ""
40728
40729 #. type: =item
40730 #: ../src/guestfs.pod:2759
40731 msgid "C</dev/sdc> 10MB"
40732 msgstr "C</dev/sdc> 10 МБ"
40733
40734 #. type: textblock
40735 #: ../src/guestfs.pod:2761
40736 msgid "Used in a few tests where two block devices are needed."
40737 msgstr ""
40738
40739 #. type: =item
40740 #: ../src/guestfs.pod:2763
40741 msgid "C</dev/sdd>"
40742 msgstr "C</dev/sdd>"
40743
40744 #. type: textblock
40745 #: ../src/guestfs.pod:2765
40746 msgid "ISO with fixed content (see C<images/test.iso>)."
40747 msgstr ""
40748
40749 #. type: textblock
40750 #: ../src/guestfs.pod:2769
40751 msgid ""
40752 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40753 "appliance and block devices are reused between tests.  So don't try testing "
40754 "L</guestfs_kill_subprocess> :-x"
40755 msgstr ""
40756
40757 #. type: textblock
40758 #: ../src/guestfs.pod:2773
40759 msgid ""
40760 "Each test starts with an initial scenario, selected using one of the "
40761 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
40762 "initialize the disks mentioned above in a particular way as documented in "
40763 "C<generator_types.ml>.  You should not assume anything about the previous "
40764 "contents of other disks that are not initialized."
40765 msgstr ""
40766
40767 #. type: textblock
40768 #: ../src/guestfs.pod:2779
40769 msgid ""
40770 "You can add a prerequisite clause to any individual test.  This is a run-"
40771 "time check, which, if it fails, causes the test to be skipped.  Useful if "
40772 "testing a command which might not work on all variations of libguestfs "
40773 "builds.  A test that has prerequisite of C<Always> means to run "
40774 "unconditionally."
40775 msgstr ""
40776
40777 #. type: textblock
40778 #: ../src/guestfs.pod:2785
40779 msgid ""
40780 "In addition, packagers can skip individual tests by setting environment "
40781 "variables before running C<make check>."
40782 msgstr ""
40783
40784 #. type: verbatim
40785 #: ../src/guestfs.pod:2788
40786 #, no-wrap
40787 msgid ""
40788 " SKIP_TEST_<CMD>_<NUM>=1\n"
40789 "\n"
40790 msgstr ""
40791
40792 #. type: textblock
40793 #: ../src/guestfs.pod:2790
40794 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40795 msgstr ""
40796
40797 #. type: textblock
40798 #: ../src/guestfs.pod:2792
40799 msgid "or:"
40800 msgstr "або:"
40801
40802 #. type: verbatim
40803 #: ../src/guestfs.pod:2794
40804 #, no-wrap
40805 msgid ""
40806 " SKIP_TEST_<CMD>=1\n"
40807 "\n"
40808 msgstr ""
40809
40810 #. type: textblock
40811 #: ../src/guestfs.pod:2796
40812 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40813 msgstr ""
40814
40815 #. type: textblock
40816 #: ../src/guestfs.pod:2798
40817 msgid "Packagers can run only certain tests by setting for example:"
40818 msgstr ""
40819
40820 #. type: verbatim
40821 #: ../src/guestfs.pod:2800
40822 #, no-wrap
40823 msgid ""
40824 " TEST_ONLY=\"vfs_type zerofree\"\n"
40825 "\n"
40826 msgstr ""
40827
40828 #. type: textblock
40829 #: ../src/guestfs.pod:2802
40830 msgid ""
40831 "See C<capitests/tests.c> for more details of how these environment variables "
40832 "work."
40833 msgstr ""
40834
40835 #. type: =head2
40836 #: ../src/guestfs.pod:2805
40837 msgid "DEBUGGING NEW API ACTIONS"
40838 msgstr ""
40839
40840 #. type: textblock
40841 #: ../src/guestfs.pod:2807
40842 msgid "Test new actions work before submitting them."
40843 msgstr ""
40844
40845 #. type: textblock
40846 #: ../src/guestfs.pod:2809
40847 msgid "You can use guestfish to try out new commands."
40848 msgstr ""
40849
40850 #. type: textblock
40851 #: ../src/guestfs.pod:2811
40852 msgid ""
40853 "Debugging the daemon is a problem because it runs inside a minimal "
40854 "environment.  However you can fprintf messages in the daemon to stderr, and "
40855 "they will show up if you use C<guestfish -v>."
40856 msgstr ""
40857
40858 #. type: =head2
40859 #: ../src/guestfs.pod:2815
40860 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40861 msgstr ""
40862
40863 #. type: textblock
40864 #: ../src/guestfs.pod:2817
40865 msgid ""
40866 "Our C source code generally adheres to some basic code-formatting "
40867 "conventions.  The existing code base is not totally consistent on this "
40868 "front, but we do prefer that contributed code be formatted similarly.  In "
40869 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40870 "indentation level, and other than that, follow the K&R style."
40871 msgstr ""
40872
40873 #. type: textblock
40874 #: ../src/guestfs.pod:2823
40875 msgid ""
40876 "If you use Emacs, add the following to one of one of your start-up files (e."
40877 "g., ~/.emacs), to help ensure that you get indentation right:"
40878 msgstr ""
40879
40880 #. type: verbatim
40881 #: ../src/guestfs.pod:2826
40882 #, no-wrap
40883 msgid ""
40884 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40885 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40886 " (add-hook 'find-file-hook\n"
40887 "     '(lambda () (if (and buffer-file-name\n"
40888 "                          (string-match \"/libguestfs\\\\>\"\n"
40889 "                              (buffer-file-name))\n"
40890 "                          (not (string-equal mode-name \"Change Log\"))\n"
40891 "                          (not (string-equal mode-name \"Makefile\")))\n"
40892 "                     (setq indent-tabs-mode nil))))\n"
40893 " \n"
40894 msgstr ""
40895
40896 #. type: verbatim
40897 #: ../src/guestfs.pod:2836
40898 #, no-wrap
40899 msgid ""
40900 " ;;; When editing C sources in libguestfs, use this style.\n"
40901 " (defun libguestfs-c-mode ()\n"
40902 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
40903 "   (interactive)\n"
40904 "   (c-set-style \"K&R\")\n"
40905 "   (setq c-indent-level 2)\n"
40906 "   (setq c-basic-offset 2))\n"
40907 " (add-hook 'c-mode-hook\n"
40908 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40909 "                               (buffer-file-name))\n"
40910 "                           (libguestfs-c-mode))))\n"
40911 "\n"
40912 msgstr ""
40913
40914 #. type: textblock
40915 #: ../src/guestfs.pod:2848
40916 msgid "Enable warnings when compiling (and fix any problems this finds):"
40917 msgstr ""
40918
40919 #. type: verbatim
40920 #: ../src/guestfs.pod:2851
40921 #, no-wrap
40922 msgid ""
40923 " ./configure --enable-gcc-warnings\n"
40924 "\n"
40925 msgstr ""
40926 " ./configure --enable-gcc-warnings\n"
40927 "\n"
40928
40929 #. type: textblock
40930 #: ../src/guestfs.pod:2853
40931 msgid "Useful targets are:"
40932 msgstr ""
40933
40934 #. type: verbatim
40935 #: ../src/guestfs.pod:2855
40936 #, no-wrap
40937 msgid ""
40938 " make syntax-check  # checks the syntax of the C code\n"
40939 " make check         # runs the test suite\n"
40940 "\n"
40941 msgstr ""
40942
40943 #. type: =head2
40944 #: ../src/guestfs.pod:2858
40945 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40946 msgstr ""
40947
40948 #. type: textblock
40949 #: ../src/guestfs.pod:2860
40950 msgid ""
40951 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40952 "which are used to do shell quoting."
40953 msgstr ""
40954
40955 #. type: =item
40956 #: ../src/guestfs.pod:2865
40957 msgid "%Q"
40958 msgstr "%Q"
40959
40960 #. type: textblock
40961 #: ../src/guestfs.pod:2867
40962 msgid ""
40963 "Simple shell quoted string.  Any spaces or other shell characters are "
40964 "escaped for you."
40965 msgstr ""
40966
40967 #. type: =item
40968 #: ../src/guestfs.pod:2870
40969 msgid "%R"
40970 msgstr "%R"
40971
40972 #. type: textblock
40973 #: ../src/guestfs.pod:2872
40974 msgid ""
40975 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40976 "the sysroot."
40977 msgstr ""
40978
40979 #. type: verbatim
40980 #: ../src/guestfs.pod:2879
40981 #, no-wrap
40982 msgid ""
40983 " asprintf (&cmd, \"cat %R\", path);\n"
40984 "\n"
40985 msgstr ""
40986 " asprintf (&cmd, \"cat %R\", path);\n"
40987 "\n"
40988
40989 #. type: textblock
40990 #: ../src/guestfs.pod:2881
40991 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40992 msgstr ""
40993
40994 #. type: textblock
40995 #: ../src/guestfs.pod:2883
40996 msgid ""
40997 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
40998 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
40999 "they are not passed via the shell (instead, straight to exec).  You probably "
41000 "want to use the C<sysroot_path()> function however."
41001 msgstr ""
41002
41003 #. type: =head2
41004 #: ../src/guestfs.pod:2889
41005 msgid "SUBMITTING YOUR NEW API ACTIONS"
41006 msgstr ""
41007
41008 #. type: textblock
41009 #: ../src/guestfs.pod:2891
41010 msgid ""
41011 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
41012 "libguestfs> and CC to L<rjones@redhat.com>."
41013 msgstr ""
41014
41015 #. type: =head2
41016 #: ../src/guestfs.pod:2895
41017 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
41018 msgstr ""
41019
41020 #. type: textblock
41021 #: ../src/guestfs.pod:2897
41022 msgid "We support i18n (gettext anyhow) in the library."
41023 msgstr ""
41024
41025 #. type: textblock
41026 #: ../src/guestfs.pod:2899
41027 msgid ""
41028 "However many messages come from the daemon, and we don't translate those at "
41029 "the moment.  One reason is that the appliance generally has all locale files "
41030 "removed from it, because they take up a lot of space.  So we'd have to readd "
41031 "some of those, as well as copying our PO files into the appliance."
41032 msgstr ""
41033
41034 #. type: textblock
41035 #: ../src/guestfs.pod:2905
41036 msgid ""
41037 "Debugging messages are never translated, since they are intended for the "
41038 "programmers."
41039 msgstr ""
41040
41041 #. type: =head2
41042 #: ../src/guestfs.pod:2908
41043 msgid "SOURCE CODE SUBDIRECTORIES"
41044 msgstr ""
41045
41046 #. type: =item
41047 #: ../src/guestfs.pod:2912
41048 msgid "C<align>"
41049 msgstr ""
41050
41051 #. type: textblock
41052 #: ../src/guestfs.pod:2914
41053 msgid "L<virt-alignment-scan(1)> command and documentation."
41054 msgstr ""
41055
41056 #. type: textblock
41057 #: ../src/guestfs.pod:2918
41058 msgid "The libguestfs appliance, build scripts and so on."
41059 msgstr ""
41060
41061 #. type: =item
41062 #: ../src/guestfs.pod:2920
41063 msgid "C<capitests>"
41064 msgstr "C<capitests>"
41065
41066 #. type: textblock
41067 #: ../src/guestfs.pod:2922
41068 msgid "Automated tests of the C API."
41069 msgstr ""
41070
41071 #. type: =item
41072 #: ../src/guestfs.pod:2924
41073 msgid "C<cat>"
41074 msgstr "C<cat>"
41075
41076 #. type: textblock
41077 #: ../src/guestfs.pod:2926
41078 msgid ""
41079 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
41080 "documentation."
41081 msgstr ""
41082
41083 #. type: =item
41084 #: ../src/guestfs.pod:2929
41085 msgid "C<caution>"
41086 msgstr "C<caution>"
41087
41088 #. type: textblock
41089 #: ../src/guestfs.pod:2931
41090 msgid ""
41091 "Safety and liveness tests of components that libguestfs depends upon (not of "
41092 "libguestfs itself).  Mainly this is for qemu and the kernel."
41093 msgstr ""
41094
41095 #. type: =item
41096 #: ../src/guestfs.pod:2934
41097 msgid "C<clone>"
41098 msgstr ""
41099
41100 #. type: textblock
41101 #: ../src/guestfs.pod:2936
41102 msgid ""
41103 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
41104 "command and documentation."
41105 msgstr ""
41106
41107 #. type: =item
41108 #: ../src/guestfs.pod:2939
41109 msgid "C<contrib>"
41110 msgstr "C<contrib>"
41111
41112 #. type: textblock
41113 #: ../src/guestfs.pod:2941
41114 msgid "Outside contributions, experimental parts."
41115 msgstr ""
41116
41117 #. type: =item
41118 #: ../src/guestfs.pod:2943
41119 msgid "C<daemon>"
41120 msgstr "C<daemon>"
41121
41122 #. type: textblock
41123 #: ../src/guestfs.pod:2945
41124 msgid ""
41125 "The daemon that runs inside the libguestfs appliance and carries out actions."
41126 msgstr ""
41127
41128 #. type: =item
41129 #: ../src/guestfs.pod:2948
41130 msgid "C<df>"
41131 msgstr "C<df>"
41132
41133 #. type: textblock
41134 #: ../src/guestfs.pod:2950
41135 msgid "L<virt-df(1)> command and documentation."
41136 msgstr ""
41137
41138 #. type: =item
41139 #: ../src/guestfs.pod:2952
41140 msgid "C<edit>"
41141 msgstr "C<edit>"
41142
41143 #. type: textblock
41144 #: ../src/guestfs.pod:2954
41145 msgid "L<virt-edit(1)> command and documentation."
41146 msgstr ""
41147
41148 #. type: =item
41149 #: ../src/guestfs.pod:2956
41150 msgid "C<examples>"
41151 msgstr "C<examples>"
41152
41153 #. type: textblock
41154 #: ../src/guestfs.pod:2958
41155 msgid "C API example code."
41156 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
41157
41158 #. type: =item
41159 #: ../src/guestfs.pod:2960
41160 msgid "C<fish>"
41161 msgstr "C<fish>"
41162
41163 #. type: textblock
41164 #: ../src/guestfs.pod:2962
41165 msgid ""
41166 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41167 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41168 "L<virt-tar-out(1)>."
41169 msgstr ""
41170
41171 #. type: =item
41172 #: ../src/guestfs.pod:2966
41173 msgid "C<fuse>"
41174 msgstr "C<fuse>"
41175
41176 #. type: textblock
41177 #: ../src/guestfs.pod:2968
41178 msgid ""
41179 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41180 msgstr ""
41181
41182 #. type: =item
41183 #: ../src/guestfs.pod:2970
41184 msgid "C<generator>"
41185 msgstr "C<generator>"
41186
41187 #. type: textblock
41188 #: ../src/guestfs.pod:2972
41189 msgid ""
41190 "The crucially important generator, used to automatically generate large "
41191 "amounts of boilerplate C code for things like RPC and bindings."
41192 msgstr ""
41193
41194 #. type: =item
41195 #: ../src/guestfs.pod:2975
41196 msgid "C<images>"
41197 msgstr "C<images>"
41198
41199 #. type: textblock
41200 #: ../src/guestfs.pod:2977
41201 msgid "Files used by the test suite."
41202 msgstr ""
41203
41204 #. type: textblock
41205 #: ../src/guestfs.pod:2979
41206 msgid "Some \"phony\" guest images which we test against."
41207 msgstr ""
41208
41209 #. type: =item
41210 #: ../src/guestfs.pod:2981
41211 msgid "C<inspector>"
41212 msgstr "C<inspector>"
41213
41214 #. type: textblock
41215 #: ../src/guestfs.pod:2983
41216 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41217 msgstr ""
41218
41219 #. type: =item
41220 #: ../src/guestfs.pod:2985
41221 msgid "C<logo>"
41222 msgstr "C<logo>"
41223
41224 #. type: textblock
41225 #: ../src/guestfs.pod:2987
41226 msgid "Logo used on the website.  The fish is called Arthur by the way."
41227 msgstr ""
41228
41229 #. type: =item
41230 #: ../src/guestfs.pod:2989
41231 msgid "C<m4>"
41232 msgstr "C<m4>"
41233
41234 #. type: textblock
41235 #: ../src/guestfs.pod:2991
41236 msgid "M4 macros used by autoconf."
41237 msgstr ""
41238
41239 #. type: =item
41240 #: ../src/guestfs.pod:2993
41241 msgid "C<po>"
41242 msgstr "C<po>"
41243
41244 #. type: textblock
41245 #: ../src/guestfs.pod:2995
41246 msgid "Translations of simple gettext strings."
41247 msgstr "Переклади простих рядків gettext."
41248
41249 #. type: =item
41250 #: ../src/guestfs.pod:2997
41251 msgid "C<po-docs>"
41252 msgstr "C<po-docs>"
41253
41254 #. type: textblock
41255 #: ../src/guestfs.pod:2999
41256 msgid ""
41257 "The build infrastructure and PO files for translations of manpages and POD "
41258 "files.  Eventually this will be combined with the C<po> directory, but that "
41259 "is rather complicated."
41260 msgstr ""
41261
41262 #. type: =item
41263 #: ../src/guestfs.pod:3003
41264 msgid "C<regressions>"
41265 msgstr "C<regressions>"
41266
41267 #. type: textblock
41268 #: ../src/guestfs.pod:3005
41269 msgid "Regression tests."
41270 msgstr "Тести на регресії."
41271
41272 #. type: =item
41273 #: ../src/guestfs.pod:3007
41274 msgid "C<rescue>"
41275 msgstr "C<rescue>"
41276
41277 #. type: textblock
41278 #: ../src/guestfs.pod:3009
41279 msgid "L<virt-rescue(1)> command and documentation."
41280 msgstr ""
41281
41282 #. type: =item
41283 #: ../src/guestfs.pod:3011
41284 msgid "C<resize>"
41285 msgstr ""
41286
41287 #. type: textblock
41288 #: ../src/guestfs.pod:3013
41289 msgid "L<virt-resize(1)> command and documentation."
41290 msgstr ""
41291
41292 #. type: =item
41293 #: ../src/guestfs.pod:3015
41294 msgid "C<sparsify>"
41295 msgstr ""
41296
41297 #. type: textblock
41298 #: ../src/guestfs.pod:3017
41299 msgid "L<virt-sparsify(1)> command and documentation."
41300 msgstr ""
41301
41302 #. type: =item
41303 #: ../src/guestfs.pod:3019
41304 msgid "C<src>"
41305 msgstr "C<src>"
41306
41307 #. type: textblock
41308 #: ../src/guestfs.pod:3021
41309 msgid "Source code to the C library."
41310 msgstr ""
41311
41312 #. type: =item
41313 #: ../src/guestfs.pod:3023
41314 msgid "C<tools>"
41315 msgstr "C<tools>"
41316
41317 #. type: textblock
41318 #: ../src/guestfs.pod:3025
41319 msgid ""
41320 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
41321 msgstr ""
41322
41323 #. type: =item
41324 #: ../src/guestfs.pod:3027
41325 msgid "C<test-tool>"
41326 msgstr "C<test-tool>"
41327
41328 #. type: textblock
41329 #: ../src/guestfs.pod:3029
41330 msgid ""
41331 "Test tool for end users to test if their qemu/kernel combination will work "
41332 "with libguestfs."
41333 msgstr ""
41334
41335 #. type: =item
41336 #: ../src/guestfs.pod:3032
41337 msgid "C<csharp>"
41338 msgstr "C<csharp>"
41339
41340 #. type: =item
41341 #: ../src/guestfs.pod:3034
41342 msgid "C<erlang>"
41343 msgstr ""
41344
41345 #. type: =item
41346 #: ../src/guestfs.pod:3036
41347 msgid "C<haskell>"
41348 msgstr "C<haskell>"
41349
41350 #. type: =item
41351 #: ../src/guestfs.pod:3038
41352 msgid "C<java>"
41353 msgstr "C<java>"
41354
41355 #. type: =item
41356 #: ../src/guestfs.pod:3040
41357 msgid "C<ocaml>"
41358 msgstr "C<ocaml>"
41359
41360 #. type: =item
41361 #: ../src/guestfs.pod:3042
41362 msgid "C<php>"
41363 msgstr "C<php>"
41364
41365 #. type: =item
41366 #: ../src/guestfs.pod:3044
41367 msgid "C<perl>"
41368 msgstr "C<perl>"
41369
41370 #. type: =item
41371 #: ../src/guestfs.pod:3046
41372 msgid "C<python>"
41373 msgstr "C<python>"
41374
41375 #. type: =item
41376 #: ../src/guestfs.pod:3048
41377 msgid "C<ruby>"
41378 msgstr "C<ruby>"
41379
41380 #. type: textblock
41381 #: ../src/guestfs.pod:3050
41382 msgid "Language bindings."
41383 msgstr "Прив’язки до мов програмування."
41384
41385 #. type: =head2
41386 #: ../src/guestfs.pod:3054
41387 msgid "MAKING A STABLE RELEASE"
41388 msgstr ""
41389
41390 #. type: textblock
41391 #: ../src/guestfs.pod:3056
41392 msgid ""
41393 "When we make a stable release, there are several steps documented here.  See "
41394 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
41395 "branch policy."
41396 msgstr ""
41397
41398 #. type: textblock
41399 #: ../src/guestfs.pod:3064
41400 msgid ""
41401 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
41402 msgstr ""
41403
41404 #. type: textblock
41405 #: ../src/guestfs.pod:3069
41406 msgid "Finalize RELEASE-NOTES."
41407 msgstr ""
41408
41409 #. type: textblock
41410 #: ../src/guestfs.pod:3073
41411 msgid "Update ROADMAP."
41412 msgstr ""
41413
41414 #. type: textblock
41415 #: ../src/guestfs.pod:3077
41416 msgid "Run C<src/api-support/update-from-tarballs.sh>."
41417 msgstr ""
41418
41419 #. type: textblock
41420 #: ../src/guestfs.pod:3081
41421 msgid "Push and pull from Transifex."
41422 msgstr ""
41423
41424 #. type: textblock
41425 #: ../src/guestfs.pod:3083
41426 msgid "Run:"
41427 msgstr ""
41428
41429 #. type: verbatim
41430 #: ../src/guestfs.pod:3085
41431 #, no-wrap
41432 msgid ""
41433 " tx push -s\n"
41434 "\n"
41435 msgstr ""
41436
41437 #. type: textblock
41438 #: ../src/guestfs.pod:3087
41439 msgid "to push the latest POT files to Transifex.  Then run:"
41440 msgstr ""
41441
41442 #. type: verbatim
41443 #: ../src/guestfs.pod:3089
41444 #, no-wrap
41445 msgid ""
41446 " ./tx-pull.sh\n"
41447 "\n"
41448 msgstr ""
41449
41450 #. type: textblock
41451 #: ../src/guestfs.pod:3091
41452 msgid "which is a wrapper to pull the latest translated C<*.po> files."
41453 msgstr ""
41454
41455 #. type: textblock
41456 #: ../src/guestfs.pod:3095
41457 msgid ""
41458 "Create new stable and development directories under L<http://libguestfs.org/"
41459 "download>."
41460 msgstr ""
41461
41462 #. type: textblock
41463 #: ../src/guestfs.pod:3100
41464 msgid "Create the branch in git:"
41465 msgstr ""
41466
41467 #. type: verbatim
41468 #: ../src/guestfs.pod:3102
41469 #, no-wrap
41470 msgid ""
41471 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
41472 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
41473 " git branch stable-1.XX\n"
41474 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
41475 "\n"
41476 msgstr ""
41477
41478 #. type: =head1
41479 #: ../src/guestfs.pod:3109
41480 msgid "LIMITS"
41481 msgstr "ОБМЕЖЕННЯ"
41482
41483 #. type: =head2
41484 #: ../src/guestfs.pod:3111
41485 msgid "PROTOCOL LIMITS"
41486 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
41487
41488 #. type: textblock
41489 #: ../src/guestfs.pod:3113
41490 msgid ""
41491 "Internally libguestfs uses a message-based protocol to pass API calls and "
41492 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
41493 "plenty more detail about this).  The maximum message size used by the "
41494 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
41495 "aware of this limit.  The API calls which may be affected are individually "
41496 "documented, with a link back to this section of the documentation."
41497 msgstr ""
41498
41499 #. type: textblock
41500 #: ../src/guestfs.pod:3121
41501 msgid ""
41502 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
41503 "a simple string.  Because this string is at some point internally encoded as "
41504 "a message, the maximum size that it can return is slightly under 4 MB.  If "
41505 "the requested file is larger than this then you will get an error."
41506 msgstr ""
41507
41508 #. type: textblock
41509 #: ../src/guestfs.pod:3127
41510 msgid ""
41511 "In order to transfer large files into and out of the guest filesystem, you "
41512 "need to use particular calls that support this.  The sections L</UPLOADING> "
41513 "and L</DOWNLOADING> document how to do this."
41514 msgstr ""
41515
41516 #. type: textblock
41517 #: ../src/guestfs.pod:3131
41518 msgid ""
41519 "You might also consider mounting the disk image using our FUSE filesystem "
41520 "support (L<guestmount(1)>)."
41521 msgstr ""
41522
41523 #. type: =head2
41524 #: ../src/guestfs.pod:3134
41525 msgid "MAXIMUM NUMBER OF DISKS"
41526 msgstr ""
41527
41528 #. type: textblock
41529 #: ../src/guestfs.pod:3136
41530 msgid "When using virtio disks (the default) the current limit is B<25> disks."
41531 msgstr ""
41532
41533 #. type: textblock
41534 #: ../src/guestfs.pod:3139
41535 msgid ""
41536 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
41537 "slots.  However febootstrap only understands disks with names C</dev/vda> "
41538 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41539 "purposes."
41540 msgstr ""
41541
41542 #. type: textblock
41543 #: ../src/guestfs.pod:3144
41544 msgid ""
41545 "We are working to substantially raise this limit in future versions but it "
41546 "requires complex changes to qemu."
41547 msgstr ""
41548
41549 #. type: textblock
41550 #: ../src/guestfs.pod:3147
41551 msgid ""
41552 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41553 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
41554 "requires changes to qemu."
41555 msgstr ""
41556
41557 #. type: =head2
41558 #: ../src/guestfs.pod:3151
41559 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41560 msgstr ""
41561
41562 #. type: textblock
41563 #: ../src/guestfs.pod:3153
41564 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41565 msgstr ""
41566
41567 #. type: textblock
41568 #: ../src/guestfs.pod:3155
41569 msgid ""
41570 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
41571 "vda>, and C</dev/vda1> through C</dev/vda15>)."
41572 msgstr ""
41573
41574 #. type: textblock
41575 #: ../src/guestfs.pod:3158
41576 msgid ""
41577 "If you attach a disk with more than 15 partitions, the extra partitions are "
41578 "ignored by libguestfs."
41579 msgstr ""
41580
41581 #. type: =head2
41582 #: ../src/guestfs.pod:3161
41583 msgid "MAXIMUM SIZE OF A DISK"
41584 msgstr ""
41585
41586 #. type: textblock
41587 #: ../src/guestfs.pod:3163
41588 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41589 msgstr ""
41590
41591 #. type: textblock
41592 #: ../src/guestfs.pod:3165
41593 msgid ""
41594 "We have tested block devices up to 1 exabyte (2**60 or "
41595 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41596 "filesystem."
41597 msgstr ""
41598
41599 #. type: textblock
41600 #: ../src/guestfs.pod:3169
41601 msgid ""
41602 "Although libguestfs probably does not impose any limit, the underlying host "
41603 "storage will.  If you store disk images on a host ext4 filesystem, then the "
41604 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41605 "TB).  If you store disk images as host logical volumes then you are limited "
41606 "by the maximum size of an LV."
41607 msgstr ""
41608
41609 #. type: textblock
41610 #: ../src/guestfs.pod:3175
41611 msgid ""
41612 "For the hugest disk image files, we recommend using XFS on the host for "
41613 "storage."
41614 msgstr ""
41615
41616 #. type: =head2
41617 #: ../src/guestfs.pod:3178
41618 msgid "MAXIMUM SIZE OF A PARTITION"
41619 msgstr ""
41620
41621 #. type: textblock
41622 #: ../src/guestfs.pod:3180
41623 msgid ""
41624 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41625 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
41626 "address a partition located beyond 2 TB on the disk."
41627 msgstr ""
41628
41629 #. type: textblock
41630 #: ../src/guestfs.pod:3184
41631 msgid ""
41632 "It is recommended that you use GPT partitions on disks which are larger than "
41633 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
41634 "which are theoretically larger than the largest disk we could support."
41635 msgstr ""
41636
41637 #. type: =head2
41638 #: ../src/guestfs.pod:3189
41639 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41640 msgstr ""
41641
41642 #. type: textblock
41643 #: ../src/guestfs.pod:3191
41644 msgid ""
41645 "This depends on the filesystem type.  libguestfs itself does not impose any "
41646 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
41647 "what these limits are."
41648 msgstr ""
41649
41650 #. type: =head2
41651 #: ../src/guestfs.pod:3195
41652 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41653 msgstr ""
41654
41655 #. type: textblock
41656 #: ../src/guestfs.pod:3197
41657 msgid ""
41658 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41659 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41660 "uploads and downloads."
41661 msgstr ""
41662
41663 #. type: =head2
41664 #: ../src/guestfs.pod:3201
41665 msgid "INSPECTION LIMITS"
41666 msgstr ""
41667
41668 #. type: textblock
41669 #: ../src/guestfs.pod:3203
41670 msgid ""
41671 "The inspection code has several arbitrary limits on things like the size of "
41672 "Windows Registry hive it will read, and the length of product name.  These "
41673 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41674 "memory and disk space on the host, and should not be reached in practice.  "
41675 "See the source code for more information."
41676 msgstr ""
41677
41678 #. type: textblock
41679 #: ../src/guestfs.pod:3229
41680 msgid ""
41681 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
41682 "effect as calling C<guestfs_set_verbose (g, 1)>."
41683 msgstr ""
41684
41685 #. type: textblock
41686 #: ../src/guestfs.pod:3241
41687 msgid ""
41688 "Set the path that libguestfs uses to search for a supermin appliance.  See "
41689 "the discussion of paths in section L</PATH> above."
41690 msgstr ""
41691
41692 #. type: textblock
41693 #: ../src/guestfs.pod:3250
41694 msgid "See also L</QEMU WRAPPERS> above."
41695 msgstr ""
41696
41697 #. type: textblock
41698 #: ../src/guestfs.pod:3254
41699 msgid ""
41700 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
41701 "effect as calling C<guestfs_set_trace (g, 1)>."
41702 msgstr ""
41703
41704 #. type: textblock
41705 #: ../src/guestfs.pod:3272
41706 msgid ""
41707 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41708 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41709 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
41710 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
41711 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41712 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
41713 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
41714 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
41715 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
41716 ">, L<http://libguestfs.org/>."
41717 msgstr ""
41718
41719 #. type: textblock
41720 #: ../src/guestfs.pod:3308
41721 msgid ""
41722 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
41723 "(8)>, L<disktype(1)>."
41724 msgstr ""
41725
41726 #. type: =head1
41727 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
41728 #: ../tools/virt-win-reg.pl:772
41729 msgid "BUGS"
41730 msgstr "ВАДИ"
41731
41732 #. type: textblock
41733 #: ../src/guestfs.pod:3317
41734 msgid "To get a list of bugs against libguestfs use this link:"
41735 msgstr ""
41736 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
41737 "посиланням:"
41738
41739 #. type: textblock
41740 #: ../src/guestfs.pod:3319
41741 msgid ""
41742 "L<https://bugzilla.redhat.com/buglist.cgi?"
41743 "component=libguestfs&product=Virtualization+Tools>"
41744 msgstr ""
41745 "L<https://bugzilla.redhat.com/buglist.cgi?"
41746 "component=libguestfs&product=Virtualization+Tools>"
41747
41748 #. type: textblock
41749 #: ../src/guestfs.pod:3321
41750 msgid "To report a new bug against libguestfs use this link:"
41751 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
41752
41753 #. type: textblock
41754 #: ../src/guestfs.pod:3323
41755 msgid ""
41756 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41757 "component=libguestfs&product=Virtualization+Tools>"
41758 msgstr ""
41759 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41760 "component=libguestfs&product=Virtualization+Tools>"
41761
41762 #. type: textblock
41763 #: ../src/guestfs.pod:3325
41764 msgid "When reporting a bug, please check:"
41765 msgstr ""
41766
41767 #. type: textblock
41768 #: ../src/guestfs.pod:3331
41769 msgid "That the bug hasn't been reported already."
41770 msgstr ""
41771
41772 #. type: textblock
41773 #: ../src/guestfs.pod:3335
41774 msgid "That you are testing a recent version."
41775 msgstr ""
41776
41777 #. type: textblock
41778 #: ../src/guestfs.pod:3339
41779 msgid "Describe the bug accurately, and give a way to reproduce it."
41780 msgstr ""
41781
41782 #. type: textblock
41783 #: ../src/guestfs.pod:3343
41784 msgid ""
41785 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41786 "bug report."
41787 msgstr ""
41788
41789 #. type: textblock
41790 #: ../test-tool/libguestfs-test-tool.pod:5
41791 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41792 msgstr ""
41793
41794 #. type: verbatim
41795 #: ../test-tool/libguestfs-test-tool.pod:9
41796 #, no-wrap
41797 msgid ""
41798 " libguestfs-test-tool [--options]\n"
41799 "\n"
41800 msgstr ""
41801
41802 #. type: textblock
41803 #: ../test-tool/libguestfs-test-tool.pod:13
41804 msgid ""
41805 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41806 "to check basic libguestfs functionality is working.  This is needed because "
41807 "libguestfs occasionally breaks for reasons beyond our control: usually "
41808 "because of changes in the underlying qemu or kernel packages, or the host "
41809 "environment."
41810 msgstr ""
41811
41812 #. type: textblock
41813 #: ../test-tool/libguestfs-test-tool.pod:19
41814 msgid "If you suspect a problem in libguestfs, then just run:"
41815 msgstr ""
41816
41817 #. type: verbatim
41818 #: ../test-tool/libguestfs-test-tool.pod:21
41819 #, no-wrap
41820 msgid ""
41821 " libguestfs-test-tool\n"
41822 "\n"
41823 msgstr ""
41824
41825 #. type: textblock
41826 #: ../test-tool/libguestfs-test-tool.pod:23
41827 msgid "It will print lots of diagnostic messages."
41828 msgstr ""
41829
41830 #. type: textblock
41831 #: ../test-tool/libguestfs-test-tool.pod:25
41832 msgid "If it runs to completion successfully, you will see this near the end:"
41833 msgstr ""
41834
41835 #. type: verbatim
41836 #: ../test-tool/libguestfs-test-tool.pod:27
41837 #, no-wrap
41838 msgid ""
41839 " ===== TEST FINISHED OK =====\n"
41840 "\n"
41841 msgstr ""
41842
41843 #. type: textblock
41844 #: ../test-tool/libguestfs-test-tool.pod:29
41845 msgid "and the test tool will exit with code 0."
41846 msgstr ""
41847
41848 #. type: textblock
41849 #: ../test-tool/libguestfs-test-tool.pod:31
41850 msgid ""
41851 "If it fails (and/or exits with non-zero error code), please paste the "
41852 "I<complete, unedited> output of the test tool into a bug report.  More "
41853 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41854 "> website."
41855 msgstr ""
41856
41857 #. type: textblock
41858 #: ../test-tool/libguestfs-test-tool.pod:42
41859 msgid "Display short usage information and exit."
41860 msgstr ""
41861
41862 #. type: =item
41863 #: ../test-tool/libguestfs-test-tool.pod:44
41864 msgid "B<--qemu qemu_binary>"
41865 msgstr ""
41866
41867 #. type: textblock
41868 #: ../test-tool/libguestfs-test-tool.pod:46
41869 msgid ""
41870 "If you have downloaded another qemu binary, point this option at the full "
41871 "path of the binary to try it."
41872 msgstr ""
41873
41874 #. type: =item
41875 #: ../test-tool/libguestfs-test-tool.pod:49
41876 msgid "B<--qemudir qemu_source_dir>"
41877 msgstr ""
41878
41879 #. type: textblock
41880 #: ../test-tool/libguestfs-test-tool.pod:51
41881 msgid ""
41882 "If you have compiled qemu from source, point this option at the source "
41883 "directory to try it."
41884 msgstr ""
41885
41886 #. type: =item
41887 #: ../test-tool/libguestfs-test-tool.pod:54
41888 msgid "B<-t N>"
41889 msgstr ""
41890
41891 #. type: =item
41892 #: ../test-tool/libguestfs-test-tool.pod:56
41893 msgid "B<--timeout N>"
41894 msgstr ""
41895
41896 #. type: textblock
41897 #: ../test-tool/libguestfs-test-tool.pod:58
41898 msgid ""
41899 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
41900 "minutes) which does not usually need to be adjusted."
41901 msgstr ""
41902
41903 #. type: =head1
41904 #: ../test-tool/libguestfs-test-tool.pod:63
41905 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41906 msgstr ""
41907
41908 #. type: textblock
41909 #: ../test-tool/libguestfs-test-tool.pod:65
41910 msgid ""
41911 "If you have compiled another version of qemu from source and would like to "
41912 "try that, then you can use the I<--qemudir> option to point to the qemu "
41913 "source directory."
41914 msgstr ""
41915
41916 #. type: textblock
41917 #: ../test-tool/libguestfs-test-tool.pod:69
41918 msgid ""
41919 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41920 "option to point to the binary."
41921 msgstr ""
41922
41923 #. type: textblock
41924 #: ../test-tool/libguestfs-test-tool.pod:72
41925 msgid ""
41926 "Note when using these options, you can ignore the business of qemu wrapper "
41927 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41928 "wrapper script for you if one is needed."
41929 msgstr ""
41930
41931 #. type: =head1
41932 #: ../test-tool/libguestfs-test-tool.pod:76
41933 msgid "TRYING OUT A DIFFERENT KERNEL"
41934 msgstr ""
41935
41936 #. type: textblock
41937 #: ../test-tool/libguestfs-test-tool.pod:78
41938 msgid ""
41939 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41940 "libguestfs tries.  You do this by setting the environment variables "
41941 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41942 msgstr ""
41943
41944 #. type: textblock
41945 #: ../test-tool/libguestfs-test-tool.pod:82
41946 msgid ""
41947 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41948 "information."
41949 msgstr ""
41950
41951 #. type: =head1
41952 #: ../test-tool/libguestfs-test-tool.pod:85
41953 msgid "SELF-DIAGNOSIS"
41954 msgstr ""
41955
41956 #. type: textblock
41957 #: ../test-tool/libguestfs-test-tool.pod:87
41958 msgid ""
41959 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41960 "produced by libguestfs-test-tool and/or possible errors."
41961 msgstr ""
41962
41963 #. type: textblock
41964 #: ../test-tool/libguestfs-test-tool.pod:92
41965 msgid ""
41966 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41967 "I<1> if there was an error."
41968 msgstr ""
41969
41970 #. type: textblock
41971 #: ../test-tool/libguestfs-test-tool.pod:97
41972 msgid ""
41973 "For the full list of environment variables which may affect libguestfs, "
41974 "please see the L<guestfs(3)> manual page."
41975 msgstr ""
41976
41977 #. type: textblock
41978 #: ../test-tool/libguestfs-test-tool.pod:102
41979 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41980 msgstr ""
41981
41982 #. type: textblock
41983 #: ../tools/virt-list-filesystems.pl:32
41984 msgid ""
41985 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41986 msgstr ""
41987
41988 #. type: verbatim
41989 #: ../tools/virt-list-filesystems.pl:36
41990 #, no-wrap
41991 msgid ""
41992 " virt-list-filesystems [--options] domname\n"
41993 "\n"
41994 msgstr ""
41995
41996 #. type: verbatim
41997 #: ../tools/virt-list-filesystems.pl:38
41998 #, no-wrap
41999 msgid ""
42000 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
42001 "\n"
42002 msgstr ""
42003
42004 #. type: textblock
42005 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
42006 msgid ""
42007 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
42008 "replacement."
42009 msgstr ""
42010
42011 #. type: textblock
42012 #: ../tools/virt-list-filesystems.pl:45
42013 msgid ""
42014 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
42015 "are contained in a virtual machine or disk image."
42016 msgstr ""
42017
42018 #. type: textblock
42019 #: ../tools/virt-list-filesystems.pl:49
42020 msgid ""
42021 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
42022 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42023 "> tool."
42024 msgstr ""
42025
42026 #. type: textblock
42027 #: ../tools/virt-list-filesystems.pl:112
42028 msgid ""
42029 "With this option, C<virt-list-filesystems> displays the type of each "
42030 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
42031 msgstr ""
42032
42033 #. type: =item
42034 #: ../tools/virt-list-filesystems.pl:119
42035 msgid "B<-a>"
42036 msgstr "B<-a>"
42037
42038 #. type: textblock
42039 #: ../tools/virt-list-filesystems.pl:123
42040 msgid ""
42041 "Normally we only show mountable filesystems.  If this option is given then "
42042 "swap devices are shown too."
42043 msgstr ""
42044
42045 #. type: textblock
42046 #: ../tools/virt-list-filesystems.pl:197
42047 msgid ""
42048 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42049 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42050 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42051 msgstr ""
42052 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42053 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42054 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42055
42056 #. type: textblock
42057 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
42058 msgid "Copyright (C) 2009 Red Hat Inc."
42059 msgstr "© Red Hat Inc., 2009"
42060
42061 #. type: textblock
42062 #: ../tools/virt-list-partitions.pl:32
42063 msgid ""
42064 "virt-list-partitions - List partitions in a virtual machine or disk image"
42065 msgstr ""
42066
42067 #. type: verbatim
42068 #: ../tools/virt-list-partitions.pl:36
42069 #, no-wrap
42070 msgid ""
42071 " virt-list-partitions [--options] domname\n"
42072 "\n"
42073 msgstr ""
42074 " virt-list-partitions [--параметри] назва_домену\n"
42075 "\n"
42076
42077 #. type: verbatim
42078 #: ../tools/virt-list-partitions.pl:38
42079 #, no-wrap
42080 msgid ""
42081 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
42082 "\n"
42083 msgstr ""
42084 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
42085 "\n"
42086
42087 #. type: textblock
42088 #: ../tools/virt-list-partitions.pl:45
42089 msgid ""
42090 "C<virt-list-partitions> is a command line tool to list the partitions that "
42091 "are contained in a virtual machine or disk image.  It is mainly useful as a "
42092 "first step to using L<virt-resize(1)>."
42093 msgstr ""
42094
42095 #. type: textblock
42096 #: ../tools/virt-list-partitions.pl:50
42097 msgid ""
42098 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42099 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42100 "> tool."
42101 msgstr ""
42102
42103 #. type: textblock
42104 #: ../tools/virt-list-partitions.pl:113
42105 msgid "Show sizes in human-readable form (eg. \"1G\")."
42106 msgstr ""
42107
42108 #. type: textblock
42109 #: ../tools/virt-list-partitions.pl:123
42110 msgid ""
42111 "With this option, C<virt-list-partitions> displays the type and size of each "
42112 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42113 msgstr ""
42114
42115 #. type: =item
42116 #: ../tools/virt-list-partitions.pl:130
42117 msgid "B<-t>"
42118 msgstr "B<-t>"
42119
42120 #. type: =item
42121 #: ../tools/virt-list-partitions.pl:132
42122 msgid "B<--total>"
42123 msgstr "B<--total>"
42124
42125 #. type: textblock
42126 #: ../tools/virt-list-partitions.pl:134
42127 msgid ""
42128 "Display the total size of each block device (as a separate row or rows)."
42129 msgstr ""
42130
42131 #. type: textblock
42132 #: ../tools/virt-list-partitions.pl:267
42133 msgid ""
42134 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42135 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42136 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42137 msgstr ""
42138 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42139 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42140 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42141
42142 #. type: textblock
42143 #: ../tools/virt-list-partitions.pl:283
42144 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42145 msgstr "© Red Hat Inc., 2009–2010"
42146
42147 #. type: textblock
42148 #: ../tools/virt-make-fs.pl:37
42149 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42150 msgstr ""
42151
42152 #. type: verbatim
42153 #: ../tools/virt-make-fs.pl:41
42154 #, no-wrap
42155 msgid ""
42156 " virt-make-fs [--options] input.tar output.img\n"
42157 "\n"
42158 msgstr ""
42159
42160 #. type: verbatim
42161 #: ../tools/virt-make-fs.pl:43
42162 #, no-wrap
42163 msgid ""
42164 " virt-make-fs [--options] input.tar.gz output.img\n"
42165 "\n"
42166 msgstr ""
42167
42168 #. type: verbatim
42169 #: ../tools/virt-make-fs.pl:45
42170 #, no-wrap
42171 msgid ""
42172 " virt-make-fs [--options] directory output.img\n"
42173 "\n"
42174 msgstr ""
42175
42176 #. type: textblock
42177 #: ../tools/virt-make-fs.pl:49
42178 msgid ""
42179 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42180 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
42181 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
42182 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42183 "you want to attach these filesystems to existing virtual machines (eg. to "
42184 "import large amounts of read-only data to a VM)."
42185 msgstr ""
42186
42187 #. type: textblock
42188 #: ../tools/virt-make-fs.pl:57
42189 msgid "Basic usage is:"
42190 msgstr ""
42191
42192 #. type: verbatim
42193 #: ../tools/virt-make-fs.pl:59
42194 #, no-wrap
42195 msgid ""
42196 " virt-make-fs input output.img\n"
42197 "\n"
42198 msgstr ""
42199
42200 #. type: textblock
42201 #: ../tools/virt-make-fs.pl:61
42202 msgid ""
42203 "where C<input> is either a directory containing files that you want to add, "
42204 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42205 "C<output.img> is a disk image.  The input type is detected automatically.  "
42206 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42207 "extra flags (see L</OPTIONS> below)."
42208 msgstr ""
42209
42210 #. type: =head2
42211 #: ../tools/virt-make-fs.pl:67
42212 msgid "FILESYSTEM TYPE"
42213 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
42214
42215 #. type: textblock
42216 #: ../tools/virt-make-fs.pl:69
42217 msgid ""
42218 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
42219 "libguestfs supports can be used (but I<not> read-only formats like "
42220 "ISO9660).  Here are some of the more common choices:"
42221 msgstr ""
42222
42223 #. type: =item
42224 #: ../tools/virt-make-fs.pl:75
42225 msgid "I<ext3>"
42226 msgstr "I<ext3>"
42227
42228 #. type: textblock
42229 #: ../tools/virt-make-fs.pl:77
42230 msgid ""
42231 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
42232 "you are not going to use the filesystem in a way that requires the journal, "
42233 "then this is just wasted overhead."
42234 msgstr ""
42235
42236 #. type: =item
42237 #: ../tools/virt-make-fs.pl:81
42238 msgid "I<ntfs> or I<vfat>"
42239 msgstr "I<ntfs> або I<vfat>"
42240
42241 #. type: textblock
42242 #: ../tools/virt-make-fs.pl:83
42243 msgid "Useful if exporting data to a Windows guest."
42244 msgstr ""
42245
42246 #. type: textblock
42247 #: ../tools/virt-make-fs.pl:85
42248 msgid ""
42249 "I<Note for vfat>: The tar archive or local directory must only contain files "
42250 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
42251 "program running within libguestfs is unable to change the ownership of non-"
42252 "root files, since vfat itself does not support this."
42253 msgstr ""
42254
42255 #. type: =item
42256 #: ../tools/virt-make-fs.pl:90
42257 msgid "I<minix>"
42258 msgstr "I<minix>"
42259
42260 #. type: textblock
42261 #: ../tools/virt-make-fs.pl:92
42262 msgid ""
42263 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42264 "total filesystem size."
42265 msgstr ""
42266
42267 #. type: =head3
42268 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
42269 #: ../tools/virt-make-fs.pl:149
42270 msgid "EXAMPLE"
42271 msgstr "ПРИКЛАД"
42272
42273 #. type: verbatim
42274 #: ../tools/virt-make-fs.pl:99
42275 #, no-wrap
42276 msgid ""
42277 " virt-make-fs --type=minix input minixfs.img\n"
42278 "\n"
42279 msgstr ""
42280
42281 #. type: =head2
42282 #: ../tools/virt-make-fs.pl:101
42283 msgid "TO PARTITION OR NOT TO PARTITION"
42284 msgstr ""
42285
42286 #. type: textblock
42287 #: ../tools/virt-make-fs.pl:103
42288 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42289 msgstr ""
42290
42291 #. type: textblock
42292 #: ../tools/virt-make-fs.pl:105
42293 msgid ""
42294 "Adding a partition can make the disk image more compatible with certain "
42295 "virtualized operating systems which don't expect to see a filesystem "
42296 "directly located on a block device (Linux doesn't care and will happily "
42297 "handle both types)."
42298 msgstr ""
42299
42300 #. type: textblock
42301 #: ../tools/virt-make-fs.pl:110
42302 msgid ""
42303 "On the other hand, if you have a partition table then the output image is no "
42304 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
42305 "directly on a partitioned disk image.  (However libguestfs tools such as "
42306 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
42307 msgstr ""
42308
42309 #. type: textblock
42310 #: ../tools/virt-make-fs.pl:118
42311 msgid "Add an MBR partition:"
42312 msgstr ""
42313
42314 #. type: verbatim
42315 #: ../tools/virt-make-fs.pl:120
42316 #, no-wrap
42317 msgid ""
42318 " virt-make-fs --partition -- input disk.img\n"
42319 "\n"
42320 msgstr ""
42321
42322 #. type: textblock
42323 #: ../tools/virt-make-fs.pl:122
42324 msgid ""
42325 "If the output disk image could be terabyte-sized or larger, it's better to "
42326 "use an EFI/GPT-compatible partition table:"
42327 msgstr ""
42328
42329 #. type: verbatim
42330 #: ../tools/virt-make-fs.pl:125
42331 #, no-wrap
42332 msgid ""
42333 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
42334 "\n"
42335 msgstr ""
42336
42337 #. type: =head2
42338 #: ../tools/virt-make-fs.pl:127
42339 msgid "EXTRA SPACE"
42340 msgstr ""
42341
42342 #. type: textblock
42343 #: ../tools/virt-make-fs.pl:129
42344 msgid ""
42345 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
42346 "the files that it contains, but might have extra space.  Depending on how "
42347 "you are going to use the output, you might think this extra space is wasted "
42348 "and want to minimize it, or you might want to leave space so that more files "
42349 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
42350 "but you can use the I<--size> flag to leave space in the filesystem if you "
42351 "want it."
42352 msgstr ""
42353
42354 #. type: textblock
42355 #: ../tools/virt-make-fs.pl:137
42356 msgid ""
42357 "An alternative way to leave extra space but not make the output image any "
42358 "bigger is to use an alternative disk image format (instead of the default "
42359 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
42360 "image format (check your hypervisor supports this before using it).  This "
42361 "allows you to choose a large I<--size> but the extra space won't actually be "
42362 "allocated in the image until you try to store something in it."
42363 msgstr ""
42364
42365 #. type: textblock
42366 #: ../tools/virt-make-fs.pl:145
42367 msgid ""
42368 "Don't forget that you can also use local commands including L<resize2fs(8)> "
42369 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
42370 "to build another image from scratch."
42371 msgstr ""
42372
42373 #. type: verbatim
42374 #: ../tools/virt-make-fs.pl:151
42375 #, no-wrap
42376 msgid ""
42377 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42378 "\n"
42379 msgstr ""
42380 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42381 "\n"
42382
42383 #. type: textblock
42384 #: ../tools/virt-make-fs.pl:179
42385 msgid "Enable debugging information."
42386 msgstr "Увімкнути виведення діагностичних даних."
42387
42388 #. type: =item
42389 #: ../tools/virt-make-fs.pl:185
42390 msgid "B<--size=E<lt>NE<gt>>"
42391 msgstr "B<--size=E<lt>NE<gt>>"
42392
42393 #. type: =item
42394 #: ../tools/virt-make-fs.pl:187
42395 msgid "B<--size=+E<lt>NE<gt>>"
42396 msgstr "B<--size=+E<lt>NE<gt>>"
42397
42398 #. type: =item
42399 #: ../tools/virt-make-fs.pl:189
42400 msgid "B<-s E<lt>NE<gt>>"
42401 msgstr "B<-s E<lt>NE<gt>>"
42402
42403 #. type: =item
42404 #: ../tools/virt-make-fs.pl:191
42405 msgid "B<-s +E<lt>NE<gt>>"
42406 msgstr "B<-s +E<lt>NE<gt>>"
42407
42408 #. type: textblock
42409 #: ../tools/virt-make-fs.pl:193
42410 msgid ""
42411 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
42412 msgstr ""
42413
42414 #. type: textblock
42415 #: ../tools/virt-make-fs.pl:196
42416 msgid ""
42417 "If this option is I<not> given, then the output image will be just large "
42418 "enough to contain all the files, with not much wasted space."
42419 msgstr ""
42420
42421 #. type: textblock
42422 #: ../tools/virt-make-fs.pl:199
42423 msgid ""
42424 "To choose a fixed size output disk, specify an absolute number followed by b/"
42425 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42426 "Petabytes or Exabytes.  This must be large enough to contain all the input "
42427 "files, else you will get an error."
42428 msgstr ""
42429
42430 #. type: textblock
42431 #: ../tools/virt-make-fs.pl:204
42432 msgid ""
42433 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
42434 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42435 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
42436 "the input files, and (approximately) an extra 200 MB free space."
42437 msgstr ""
42438
42439 #. type: textblock
42440 #: ../tools/virt-make-fs.pl:210
42441 msgid ""
42442 "Note that virt-make-fs estimates free space, and therefore will not produce "
42443 "filesystems containing precisely the free space requested.  (It is much more "
42444 "expensive and time-consuming to produce a filesystem which has precisely the "
42445 "desired free space)."
42446 msgstr ""
42447
42448 #. type: =item
42449 #: ../tools/virt-make-fs.pl:219
42450 msgid "B<--format=E<lt>fmtE<gt>>"
42451 msgstr ""
42452
42453 #. type: =item
42454 #: ../tools/virt-make-fs.pl:221
42455 msgid "B<-F E<lt>fmtE<gt>>"
42456 msgstr ""
42457
42458 #. type: textblock
42459 #: ../tools/virt-make-fs.pl:223
42460 msgid "Choose the output disk image format."
42461 msgstr ""
42462
42463 #. type: textblock
42464 #: ../tools/virt-make-fs.pl:225
42465 msgid "The default is C<raw> (raw sparse disk image)."
42466 msgstr ""
42467
42468 #. type: textblock
42469 #: ../tools/virt-make-fs.pl:227
42470 msgid ""
42471 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
42472 "that would really make sense here is C<qcow2>."
42473 msgstr ""
42474
42475 #. type: =item
42476 #: ../tools/virt-make-fs.pl:234
42477 msgid "B<--type=E<lt>fsE<gt>>"
42478 msgstr ""
42479
42480 #. type: =item
42481 #: ../tools/virt-make-fs.pl:236
42482 msgid "B<-t E<lt>fsE<gt>>"
42483 msgstr ""
42484
42485 #. type: textblock
42486 #: ../tools/virt-make-fs.pl:238
42487 msgid "Choose the output filesystem type."
42488 msgstr ""
42489
42490 #. type: textblock
42491 #: ../tools/virt-make-fs.pl:240
42492 msgid "The default is C<ext2>."
42493 msgstr "Типовим значенням є C<ext2>."
42494
42495 #. type: textblock
42496 #: ../tools/virt-make-fs.pl:242
42497 msgid ""
42498 "Any filesystem which is supported read-write by libguestfs can be used here."
42499 msgstr ""
42500
42501 #. type: =item
42502 #: ../tools/virt-make-fs.pl:249
42503 msgid "B<--partition>"
42504 msgstr "B<--partition>"
42505
42506 #. type: =item
42507 #: ../tools/virt-make-fs.pl:251
42508 msgid "B<--partition=E<lt>parttypeE<gt>>"
42509 msgstr ""
42510
42511 #. type: textblock
42512 #: ../tools/virt-make-fs.pl:253
42513 msgid ""
42514 "If specified, this flag adds an MBR partition table to the output disk image."
42515 msgstr ""
42516
42517 #. type: textblock
42518 #: ../tools/virt-make-fs.pl:256
42519 msgid ""
42520 "You can change the partition table type, eg. I<--partition=gpt> for large "
42521 "disks."
42522 msgstr ""
42523
42524 #. type: textblock
42525 #: ../tools/virt-make-fs.pl:259
42526 msgid ""
42527 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
42528 "might consider the next parameter to be the partition type.  For example:"
42529 msgstr ""
42530
42531 #. type: verbatim
42532 #: ../tools/virt-make-fs.pl:263
42533 #, no-wrap
42534 msgid ""
42535 " virt-make-fs --partition input.tar output.img\n"
42536 "\n"
42537 msgstr ""
42538
42539 #. type: textblock
42540 #: ../tools/virt-make-fs.pl:265
42541 msgid ""
42542 "would cause virt-make-fs to think you wanted to use a partition type of "
42543 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
42544 "dash) between options and the input and output arguments:"
42545 msgstr ""
42546
42547 #. type: verbatim
42548 #: ../tools/virt-make-fs.pl:269
42549 #, no-wrap
42550 msgid ""
42551 " virt-make-fs --partition -- input.tar output.img\n"
42552 "\n"
42553 msgstr ""
42554
42555 #. type: textblock
42556 #: ../tools/virt-make-fs.pl:271
42557 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
42558 msgstr ""
42559
42560 #. type: textblock
42561 #: ../tools/virt-make-fs.pl:559
42562 msgid ""
42563 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42564 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42565 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42566 msgstr ""
42567 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42568 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42569 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42570
42571 #. type: textblock
42572 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
42573 msgid ""
42574 "When reporting bugs, please enable debugging and capture the I<complete> "
42575 "output:"
42576 msgstr ""
42577
42578 #. type: verbatim
42579 #: ../tools/virt-make-fs.pl:576
42580 #, no-wrap
42581 msgid ""
42582 " export LIBGUESTFS_DEBUG=1\n"
42583 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42584 "\n"
42585 msgstr ""
42586 " export LIBGUESTFS_DEBUG=1\n"
42587 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42588 "\n"
42589
42590 #. type: textblock
42591 #: ../tools/virt-make-fs.pl:579
42592 msgid ""
42593 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
42594 "redhat.com/>"
42595 msgstr ""
42596
42597 #. type: textblock
42598 #: ../tools/virt-tar.pl:33
42599 msgid "virt-tar - Extract or upload files to a virtual machine"
42600 msgstr ""
42601
42602 #. type: verbatim
42603 #: ../tools/virt-tar.pl:37
42604 #, no-wrap
42605 msgid ""
42606 " virt-tar [--options] -x domname directory tarball\n"
42607 "\n"
42608 msgstr ""
42609
42610 #. type: verbatim
42611 #: ../tools/virt-tar.pl:39
42612 #, no-wrap
42613 msgid ""
42614 " virt-tar [--options] -u domname tarball directory\n"
42615 "\n"
42616 msgstr ""
42617
42618 #. type: verbatim
42619 #: ../tools/virt-tar.pl:41
42620 #, no-wrap
42621 msgid ""
42622 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42623 "\n"
42624 msgstr ""
42625
42626 #. type: verbatim
42627 #: ../tools/virt-tar.pl:43
42628 #, no-wrap
42629 msgid ""
42630 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42631 "\n"
42632 msgstr ""
42633
42634 #. type: =head2
42635 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42636 msgid "NOTE"
42637 msgstr "ПРИМІТКА"
42638
42639 #. type: textblock
42640 #: ../tools/virt-tar.pl:47
42641 msgid ""
42642 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42643 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42644 msgstr ""
42645
42646 #. type: textblock
42647 #: ../tools/virt-tar.pl:52
42648 msgid "Download C</home> from the VM into a local tarball:"
42649 msgstr ""
42650
42651 #. type: verbatim
42652 #: ../tools/virt-tar.pl:54
42653 #, no-wrap
42654 msgid ""
42655 " virt-tar -x domname /home home.tar\n"
42656 "\n"
42657 msgstr ""
42658
42659 #. type: verbatim
42660 #: ../tools/virt-tar.pl:56
42661 #, no-wrap
42662 msgid ""
42663 " virt-tar -zx domname /home home.tar.gz\n"
42664 "\n"
42665 msgstr ""
42666
42667 #. type: textblock
42668 #: ../tools/virt-tar.pl:58
42669 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42670 msgstr ""
42671
42672 #. type: verbatim
42673 #: ../tools/virt-tar.pl:60
42674 #, no-wrap
42675 msgid ""
42676 " virt-tar -u domname uploadstuff.tar /tmp\n"
42677 "\n"
42678 msgstr ""
42679
42680 #. type: verbatim
42681 #: ../tools/virt-tar.pl:62
42682 #, no-wrap
42683 msgid ""
42684 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42685 "\n"
42686 msgstr ""
42687
42688 #. type: textblock
42689 #: ../tools/virt-tar.pl:66
42690 msgid ""
42691 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42692 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
42693 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42694 msgstr ""
42695
42696 #. type: textblock
42697 #: ../tools/virt-tar.pl:71
42698 msgid ""
42699 "You can use I<-x> (extract) on live virtual machines, but you might get "
42700 "inconsistent results or errors if there is filesystem activity inside the "
42701 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
42702 "work, but the only way to guarantee consistent results is if the virtual "
42703 "machine is shut down."
42704 msgstr ""
42705
42706 #. type: textblock
42707 #: ../tools/virt-tar.pl:79
42708 msgid ""
42709 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42710 "parts of a guest filesystem.  There are many possibilities: making backups, "
42711 "uploading data files, snooping on guest activity, fixing or customizing "
42712 "guests, etc."
42713 msgstr ""
42714
42715 #. type: textblock
42716 #: ../tools/virt-tar.pl:84
42717 msgid ""
42718 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
42719 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
42720 "should look at the L<guestfish(1)> tool."
42721 msgstr ""
42722
42723 #. type: textblock
42724 #: ../tools/virt-tar.pl:88
42725 msgid ""
42726 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42727 "its contents (recursively) from the virtual machine into a local tarball.  "
42728 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42729 "virtual machine.  You cannot use these two options together."
42730 msgstr ""
42731
42732 #. type: textblock
42733 #: ../tools/virt-tar.pl:94
42734 msgid ""
42735 "In addition, you may need to use the I<-z> (gZip) option to enable "
42736 "compression.  When uploading, you have to specify I<-z> if the upload file "
42737 "is compressed because virt-tar won't detect this on its own."
42738 msgstr ""
42739
42740 #. type: textblock
42741 #: ../tools/virt-tar.pl:98
42742 msgid ""
42743 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
42744 "example it cannot do PKZip files or bzip2 compression.  If you want that "
42745 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
42746 "the L<libguestfs(3)> API)."
42747 msgstr ""
42748
42749 #. type: =item
42750 #: ../tools/virt-tar.pl:160
42751 msgid "B<--extract>"
42752 msgstr "B<--extract>"
42753
42754 #. type: =item
42755 #: ../tools/virt-tar.pl:162
42756 msgid "B<--download>"
42757 msgstr "B<--download>"
42758
42759 #. type: =item
42760 #: ../tools/virt-tar.pl:164
42761 msgid "B<-u>"
42762 msgstr "B<-u>"
42763
42764 #. type: =item
42765 #: ../tools/virt-tar.pl:166
42766 msgid "B<--upload>"
42767 msgstr "B<--upload>"
42768
42769 #. type: textblock
42770 #: ../tools/virt-tar.pl:168
42771 msgid ""
42772 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42773 "local tarball."
42774 msgstr ""
42775
42776 #. type: textblock
42777 #: ../tools/virt-tar.pl:171
42778 msgid ""
42779 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
42780 "Please read the L</WARNING> section above before using this option."
42781 msgstr ""
42782
42783 #. type: textblock
42784 #: ../tools/virt-tar.pl:175
42785 msgid "You must specify exactly one of these options."
42786 msgstr ""
42787
42788 #. type: =item
42789 #: ../tools/virt-tar.pl:181
42790 msgid "B<-z>"
42791 msgstr "B<-z>"
42792
42793 #. type: =item
42794 #: ../tools/virt-tar.pl:183
42795 msgid "B<--gzip>"
42796 msgstr "B<--gzip>"
42797
42798 #. type: textblock
42799 #: ../tools/virt-tar.pl:185
42800 msgid "Specify that the input or output tarball is gzip-compressed."
42801 msgstr ""
42802
42803 #. type: textblock
42804 #: ../tools/virt-tar.pl:298
42805 msgid ""
42806 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42807 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42808 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42809 "org/>."
42810 msgstr ""
42811 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42812 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42813 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42814 "org/>."
42815
42816 #. type: textblock
42817 #: ../tools/virt-win-reg.pl:37
42818 msgid ""
42819 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42820 msgstr ""
42821
42822 #. type: verbatim
42823 #: ../tools/virt-win-reg.pl:41
42824 #, no-wrap
42825 msgid ""
42826 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42827 "\n"
42828 msgstr ""
42829
42830 #. type: verbatim
42831 #: ../tools/virt-win-reg.pl:43
42832 #, no-wrap
42833 msgid ""
42834 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42835 "\n"
42836 msgstr ""
42837
42838 #. type: verbatim
42839 #: ../tools/virt-win-reg.pl:45
42840 #, no-wrap
42841 msgid ""
42842 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42843 "\n"
42844 msgstr ""
42845
42846 #. type: verbatim
42847 #: ../tools/virt-win-reg.pl:47
42848 #, no-wrap
42849 msgid ""
42850 " virt-win-reg --merge domname [input.reg ...]\n"
42851 "\n"
42852 msgstr ""
42853
42854 #. type: verbatim
42855 #: ../tools/virt-win-reg.pl:49
42856 #, no-wrap
42857 msgid ""
42858 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42859 "\n"
42860 msgstr ""
42861
42862 #. type: textblock
42863 #: ../tools/virt-win-reg.pl:53
42864 msgid ""
42865 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42866 "virtual machines.  If you do this, you I<will> get irreversible disk "
42867 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
42868 "but doesn't catch all cases."
42869 msgstr ""
42870
42871 #. type: textblock
42872 #: ../tools/virt-win-reg.pl:58
42873 msgid ""
42874 "Modifying the Windows Registry is an inherently risky operation.  The format "
42875 "is deliberately obscure and undocumented, and Registry changes can leave the "
42876 "system unbootable.  Therefore when using the I<--merge> option, make sure "
42877 "you have a reliable backup first."
42878 msgstr ""
42879
42880 #. type: textblock
42881 #: ../tools/virt-win-reg.pl:65
42882 msgid ""
42883 "This program can export and merge Windows Registry entries from a Windows "
42884 "guest."
42885 msgstr ""
42886
42887 #. type: textblock
42888 #: ../tools/virt-win-reg.pl:68
42889 msgid ""
42890 "The first parameter is the libvirt guest name or the raw disk image of a "
42891 "Windows guest."
42892 msgstr ""
42893
42894 #. type: textblock
42895 #: ../tools/virt-win-reg.pl:71
42896 msgid ""
42897 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42898 "exported (recursively).  For example:"
42899 msgstr ""
42900
42901 #. type: verbatim
42902 #: ../tools/virt-win-reg.pl:74
42903 #, no-wrap
42904 msgid ""
42905 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42906 "\n"
42907 msgstr ""
42908 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42909 "\n"
42910
42911 #. type: textblock
42912 #: ../tools/virt-win-reg.pl:76
42913 msgid ""
42914 "You can also display single values from within registry keys, for example:"
42915 msgstr ""
42916
42917 #. type: verbatim
42918 #: ../tools/virt-win-reg.pl:79
42919 #, no-wrap
42920 msgid ""
42921 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42922 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42923 " Windows 7 Enterprise\n"
42924 "\n"
42925 msgstr ""
42926 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42927 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42928 " Windows 7 Enterprise\n"
42929 "\n"
42930
42931 #. type: textblock
42932 #: ../tools/virt-win-reg.pl:83
42933 msgid ""
42934 "With I<--merge>, you can merge a textual regedit file into the Windows "
42935 "Registry:"
42936 msgstr ""
42937
42938 #. type: verbatim
42939 #: ../tools/virt-win-reg.pl:86
42940 #, no-wrap
42941 msgid ""
42942 " $ virt-win-reg --merge Windows7 changes.reg\n"
42943 "\n"
42944 msgstr ""
42945 " $ virt-win-reg --merge Windows7 changes.reg\n"
42946 "\n"
42947
42948 #. type: textblock
42949 #: ../tools/virt-win-reg.pl:90
42950 msgid ""
42951 "This program is only meant for simple access to the registry.  If you want "
42952 "to do complicated things with the registry, we suggest you download the "
42953 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42954 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42955 "L<hivexregedit(1)>."
42956 msgstr ""
42957
42958 #. type: =item
42959 #: ../tools/virt-win-reg.pl:159
42960 msgid "B<--merge>"
42961 msgstr "B<--merge>"
42962
42963 #. type: textblock
42964 #: ../tools/virt-win-reg.pl:161
42965 msgid ""
42966 "In merge mode, this merges a textual regedit file into the Windows Registry "
42967 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
42968 "displays or exports Registry entries instead."
42969 msgstr ""
42970
42971 #. type: textblock
42972 #: ../tools/virt-win-reg.pl:165
42973 msgid ""
42974 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42975 "result in disk corruption.  However exporting (without this flag)  is always "
42976 "safe."
42977 msgstr ""
42978
42979 #. type: =item
42980 #: ../tools/virt-win-reg.pl:173
42981 msgid "B<--encoding> UTF-16LE|ASCII"
42982 msgstr "B<--encoding> UTF-16LE|ASCII"
42983
42984 #. type: textblock
42985 #: ../tools/virt-win-reg.pl:175
42986 msgid ""
42987 "When merging (only), you may need to specify the encoding for strings to be "
42988 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
42989 "(3)/ENCODING STRINGS>."
42990 msgstr ""
42991
42992 #. type: textblock
42993 #: ../tools/virt-win-reg.pl:179
42994 msgid ""
42995 "The default is to use UTF-16LE, which should work with recent versions of "
42996 "Windows."
42997 msgstr ""
42998
42999 #. type: =item
43000 #: ../tools/virt-win-reg.pl:186
43001 msgid "B<--unsafe-printable-strings>"
43002 msgstr "B<--unsafe-printable-strings>"
43003
43004 #. type: textblock
43005 #: ../tools/virt-win-reg.pl:188
43006 msgid ""
43007 "When exporting (only), assume strings are UTF-16LE and print them as strings "
43008 "instead of hex sequences.  Remove the final zero codepoint from strings if "
43009 "present."
43010 msgstr ""
43011
43012 #. type: textblock
43013 #: ../tools/virt-win-reg.pl:192
43014 msgid ""
43015 "This is unsafe and does not preserve the fidelity of strings in the original "
43016 "Registry for various reasons:"
43017 msgstr ""
43018
43019 #. type: textblock
43020 #: ../tools/virt-win-reg.pl:199
43021 msgid ""
43022 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
43023 "other encodings will be corrupted by this transformation."
43024 msgstr ""
43025
43026 #. type: textblock
43027 #: ../tools/virt-win-reg.pl:204
43028 msgid ""
43029 "Assumes that everything which has type 1 or 2 is really a string and that "
43030 "everything else is not a string, but the type field in real Registries is "
43031 "not reliable."
43032 msgstr ""
43033
43034 #. type: textblock
43035 #: ../tools/virt-win-reg.pl:210
43036 msgid ""
43037 "Loses information about whether a zero codepoint followed the string in the "
43038 "Registry or not."
43039 msgstr ""
43040
43041 #. type: textblock
43042 #: ../tools/virt-win-reg.pl:215
43043 msgid ""
43044 "This all happens because the Registry itself contains no information about "
43045 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
43046 msgstr ""
43047
43048 #. type: textblock
43049 #: ../tools/virt-win-reg.pl:219
43050 msgid ""
43051 "You should only use this option for quick hacking and debugging of the "
43052 "Registry contents, and I<never> use it if the output is going to be passed "
43053 "into another program or stored in another Registry."
43054 msgstr ""
43055
43056 #. type: =head1
43057 #: ../tools/virt-win-reg.pl:556
43058 msgid "SUPPORTED SYSTEMS"
43059 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
43060
43061 #. type: textblock
43062 #: ../tools/virt-win-reg.pl:558
43063 msgid ""
43064 "The program currently supports Windows NT-derived guests starting with "
43065 "Windows XP through to at least Windows 7."
43066 msgstr ""
43067
43068 #. type: textblock
43069 #: ../tools/virt-win-reg.pl:561
43070 msgid "The following Registry keys are supported:"
43071 msgstr ""
43072
43073 #. type: =item
43074 #: ../tools/virt-win-reg.pl:565
43075 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43076 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43077
43078 #. type: =item
43079 #: ../tools/virt-win-reg.pl:567
43080 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43081 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43082
43083 #. type: =item
43084 #: ../tools/virt-win-reg.pl:569
43085 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43086 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43087
43088 #. type: =item
43089 #: ../tools/virt-win-reg.pl:571
43090 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43091 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43092
43093 #. type: =item
43094 #: ../tools/virt-win-reg.pl:573
43095 msgid "C<HKEY_USERS\\.DEFAULT>"
43096 msgstr "C<HKEY_USERS\\.DEFAULT>"
43097
43098 #. type: =item
43099 #: ../tools/virt-win-reg.pl:575
43100 msgid "C<HKEY_USERS\\I<SID>>"
43101 msgstr "C<HKEY_USERS\\I<SID>>"
43102
43103 #. type: textblock
43104 #: ../tools/virt-win-reg.pl:577
43105 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43106 msgstr ""
43107
43108 #. type: =item
43109 #: ../tools/virt-win-reg.pl:579
43110 msgid "C<HKEY_USERS\\I<username>>"
43111 msgstr "C<HKEY_USERS\\I<користувач>>"
43112
43113 #. type: textblock
43114 #: ../tools/virt-win-reg.pl:581
43115 msgid ""
43116 "where I<username> is a local user name (this is a libguestfs extension)."
43117 msgstr ""
43118
43119 #. type: textblock
43120 #: ../tools/virt-win-reg.pl:585
43121 msgid ""
43122 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43123 "C<HKEY_USERS>."
43124 msgstr ""
43125
43126 #. type: textblock
43127 #: ../tools/virt-win-reg.pl:588
43128 msgid ""
43129 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43130 "supported (there is no \"current user\")."
43131 msgstr ""
43132
43133 #. type: =head1
43134 #: ../tools/virt-win-reg.pl:591
43135 msgid "ENCODING"
43136 msgstr "КОДУВАННЯ"
43137
43138 #. type: textblock
43139 #: ../tools/virt-win-reg.pl:593
43140 msgid ""
43141 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43142 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
43143 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
43144 "Windows-style line endings, you may need to reencode the whole file before "
43145 "or after processing."
43146 msgstr ""
43147
43148 #. type: textblock
43149 #: ../tools/virt-win-reg.pl:599
43150 msgid ""
43151 "To reencode a file from Windows format to Linux (before processing it with "
43152 "the I<--merge> option), you would do something like this:"
43153 msgstr ""
43154
43155 #. type: verbatim
43156 #: ../tools/virt-win-reg.pl:602
43157 #, no-wrap
43158 msgid ""
43159 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43160 "\n"
43161 msgstr ""
43162 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43163 "\n"
43164
43165 #. type: textblock
43166 #: ../tools/virt-win-reg.pl:604
43167 msgid ""
43168 "To go in the opposite direction, after exporting and before sending the file "
43169 "to a Windows user, do something like this:"
43170 msgstr ""
43171
43172 #. type: verbatim
43173 #: ../tools/virt-win-reg.pl:607
43174 #, no-wrap
43175 msgid ""
43176 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43177 "\n"
43178 msgstr ""
43179 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43180 "\n"
43181
43182 #. type: textblock
43183 #: ../tools/virt-win-reg.pl:609
43184 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43185 msgstr ""
43186
43187 #. type: textblock
43188 #: ../tools/virt-win-reg.pl:611
43189 msgid ""
43190 "If you are unsure about the current encoding, use the L<file(1)> command.  "
43191 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43192 "style (CRLF) line endings, like this:"
43193 msgstr ""
43194
43195 #. type: verbatim
43196 #: ../tools/virt-win-reg.pl:615
43197 #, no-wrap
43198 msgid ""
43199 " $ file software.reg\n"
43200 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43201 " with CRLF line terminators\n"
43202 "\n"
43203 msgstr ""
43204
43205 #. type: textblock
43206 #: ../tools/virt-win-reg.pl:619
43207 msgid "This file would need conversion before you could I<--merge> it."
43208 msgstr ""
43209
43210 #. type: =head1
43211 #: ../tools/virt-win-reg.pl:621
43212 msgid "CurrentControlSet etc."
43213 msgstr ""
43214
43215 #. type: textblock
43216 #: ../tools/virt-win-reg.pl:623
43217 msgid ""
43218 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43219 "Registry at the level of the hive file, and therefore you cannot modify "
43220 "these."
43221 msgstr ""
43222
43223 #. type: textblock
43224 #: ../tools/virt-win-reg.pl:627
43225 msgid ""
43226 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
43227 "circumstances it might refer to another control set.  The way to find out is "
43228 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43229 msgstr ""
43230
43231 #. type: verbatim
43232 #: ../tools/virt-win-reg.pl:631
43233 #, no-wrap
43234 msgid ""
43235 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43236 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43237 " \"Current\"=dword:00000001\n"
43238 " \"Default\"=dword:00000001\n"
43239 " \"Failed\"=dword:00000000\n"
43240 " \"LastKnownGood\"=dword:00000002\n"
43241 "\n"
43242 msgstr ""
43243 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43244 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43245 " \"Current\"=dword:00000001\n"
43246 " \"Default\"=dword:00000001\n"
43247 " \"Failed\"=dword:00000000\n"
43248 " \"LastKnownGood\"=dword:00000002\n"
43249 "\n"
43250
43251 #. type: textblock
43252 #: ../tools/virt-win-reg.pl:638
43253 msgid "\"Current\" is the one which Windows will choose when it boots."
43254 msgstr ""
43255
43256 #. type: textblock
43257 #: ../tools/virt-win-reg.pl:640
43258 msgid ""
43259 "Similarly, other C<Current...> keys in the path may need to be replaced."
43260 msgstr ""
43261
43262 #. type: =head1
43263 #: ../tools/virt-win-reg.pl:643
43264 msgid "DELETING REGISTRY KEYS AND VALUES"
43265 msgstr ""
43266
43267 #. type: textblock
43268 #: ../tools/virt-win-reg.pl:645
43269 msgid "To delete a whole registry key, use the syntax:"
43270 msgstr ""
43271
43272 #. type: verbatim
43273 #: ../tools/virt-win-reg.pl:647
43274 #, no-wrap
43275 msgid ""
43276 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
43277 "\n"
43278 msgstr ""
43279
43280 #. type: textblock
43281 #: ../tools/virt-win-reg.pl:649
43282 msgid "To delete a single value within a key, use the syntax:"
43283 msgstr ""
43284
43285 #. type: verbatim
43286 #: ../tools/virt-win-reg.pl:651
43287 #, no-wrap
43288 msgid ""
43289 " [HKEY_LOCAL_MACHINE\\Foo]\n"
43290 " \"Value\"=-\n"
43291 "\n"
43292 msgstr ""
43293
43294 #. type: =head1
43295 #: ../tools/virt-win-reg.pl:654
43296 msgid "WINDOWS TIPS"
43297 msgstr ""
43298
43299 #. type: textblock
43300 #: ../tools/virt-win-reg.pl:656
43301 msgid ""
43302 "Note that some of these tips modify the guest disk image.  The guest I<must> "
43303 "be shut off, else you will get disk corruption."
43304 msgstr ""
43305
43306 #. type: =head2
43307 #: ../tools/virt-win-reg.pl:659
43308 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
43309 msgstr ""
43310
43311 #. type: textblock
43312 #: ../tools/virt-win-reg.pl:661
43313 msgid ""
43314 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
43315 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
43316 "is uploaded into C<C:\\>:"
43317 msgstr ""
43318
43319 #. type: verbatim
43320 #: ../tools/virt-win-reg.pl:665
43321 #, no-wrap
43322 msgid ""
43323 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43324 "\n"
43325 msgstr ""
43326 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43327 "\n"
43328
43329 #. type: textblock
43330 #: ../tools/virt-win-reg.pl:667
43331 msgid "Prepare a regedit file containing the registry change:"
43332 msgstr ""
43333
43334 #. type: verbatim
43335 #: ../tools/virt-win-reg.pl:669
43336 #, no-wrap
43337 msgid ""
43338 " cat > test.reg <<'EOF'\n"
43339 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43340 " \"Test\"=\"c:\\\\test.bat\"\n"
43341 " EOF\n"
43342 "\n"
43343 msgstr ""
43344 " cat > test.reg <<'EOF'\n"
43345 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43346 " \"Test\"=\"c:\\\\test.bat\"\n"
43347 " EOF\n"
43348 "\n"
43349
43350 #. type: textblock
43351 #: ../tools/virt-win-reg.pl:674
43352 msgid ""
43353 "In this example we use the key C<RunOnce> which means that the script will "
43354 "run precisely once when the first user logs in.  If you want it to run every "
43355 "time a user logs in, replace C<RunOnce> with C<Run>."
43356 msgstr ""
43357
43358 #. type: textblock
43359 #: ../tools/virt-win-reg.pl:678
43360 msgid "Now update the registry:"
43361 msgstr "Оновіть регістр:"
43362
43363 #. type: verbatim
43364 #: ../tools/virt-win-reg.pl:680
43365 #, no-wrap
43366 msgid ""
43367 " virt-win-reg --merge WindowsGuest test.reg\n"
43368 "\n"
43369 msgstr ""
43370
43371 #. type: =head2
43372 #: ../tools/virt-win-reg.pl:682
43373 msgid "INSTALLING A SERVICE"
43374 msgstr ""
43375
43376 #. type: textblock
43377 #: ../tools/virt-win-reg.pl:684
43378 msgid ""
43379 "This section assumes you are familiar with Windows services, and you either "
43380 "have a program which handles the Windows Service Control Protocol directly "
43381 "or you want to run any program using a service wrapper like SrvAny or the "
43382 "free RHSrvAny."
43383 msgstr ""
43384
43385 #. type: textblock
43386 #: ../tools/virt-win-reg.pl:689
43387 msgid ""
43388 "First upload the program and optionally the service wrapper.  In this case "
43389 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
43390 msgstr ""
43391
43392 #. type: verbatim
43393 #: ../tools/virt-win-reg.pl:693
43394 #, no-wrap
43395 msgid ""
43396 " guestfish -i -d WindowsGuest <<EOF\n"
43397 "   upload rhsrvany.exe /rhsrvany.exe\n"
43398 "   upload test.exe /test.exe\n"
43399 " EOF\n"
43400 "\n"
43401 msgstr ""
43402 " guestfish -i -d WindowsGuest <<EOF\n"
43403 "   upload rhsrvany.exe /rhsrvany.exe\n"
43404 "   upload test.exe /test.exe\n"
43405 " EOF\n"
43406 "\n"
43407
43408 #. type: textblock
43409 #: ../tools/virt-win-reg.pl:698
43410 msgid ""
43411 "Prepare a regedit file containing the registry changes.  In this example, "
43412 "the first registry change is needed for the service itself or the service "
43413 "wrapper (if used).  The second registry change is only needed because I am "
43414 "using the RHSrvAny service wrapper."
43415 msgstr ""
43416
43417 #. type: verbatim
43418 #: ../tools/virt-win-reg.pl:703
43419 #, no-wrap
43420 msgid ""
43421 " cat > service.reg <<'EOF'\n"
43422 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43423 " \"Type\"=dword:00000010\n"
43424 " \"Start\"=dword:00000002\n"
43425 " \"ErrorControl\"=dword:00000001\n"
43426 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43427 " \"DisplayName\"=\"RHSrvAny\"\n"
43428 " \"ObjectName\"=\"NetworkService\"\n"
43429 " \n"
43430 msgstr ""
43431 " cat > service.reg <<'EOF'\n"
43432 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43433 " \"Type\"=dword:00000010\n"
43434 " \"Start\"=dword:00000002\n"
43435 " \"ErrorControl\"=dword:00000001\n"
43436 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43437 " \"DisplayName\"=\"RHSrvAny\"\n"
43438 " \"ObjectName\"=\"NetworkService\"\n"
43439 " \n"
43440
43441 #. type: verbatim
43442 #: ../tools/virt-win-reg.pl:712
43443 #, no-wrap
43444 msgid ""
43445 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43446 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43447 " \"PWD\"=\"c:\\\\Temp\"\n"
43448 " EOF\n"
43449 "\n"
43450 msgstr ""
43451 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43452 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43453 " \"PWD\"=\"c:\\\\Temp\"\n"
43454 " EOF\n"
43455 "\n"
43456
43457 #. type: textblock
43458 #: ../tools/virt-win-reg.pl:723
43459 msgid ""
43460 "For use of C<ControlSet001> see the section above in this manual page.  You "
43461 "may need to adjust this according to the control set that is in use by the "
43462 "guest."
43463 msgstr ""
43464
43465 #. type: textblock
43466 #: ../tools/virt-win-reg.pl:729
43467 msgid ""
43468 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
43469 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
43470 "privileged account."
43471 msgstr ""
43472
43473 #. type: textblock
43474 #: ../tools/virt-win-reg.pl:735
43475 msgid ""
43476 "For the meaning of the magic numbers, see this Microsoft KB article: "
43477 "L<http://support.microsoft.com/kb/103000>."
43478 msgstr ""
43479
43480 #. type: textblock
43481 #: ../tools/virt-win-reg.pl:740
43482 msgid "Update the registry:"
43483 msgstr "Оновіть регістр:"
43484
43485 #. type: verbatim
43486 #: ../tools/virt-win-reg.pl:742
43487 #, no-wrap
43488 msgid ""
43489 " virt-win-reg --merge WindowsGuest service.reg\n"
43490 "\n"
43491 msgstr ""
43492
43493 #. type: textblock
43494 #: ../tools/virt-win-reg.pl:746
43495 msgid ""
43496 "Be careful when passing parameters containing C<\\> (backslash) in the "
43497 "shell.  Usually you will have to use 'single quotes' or double backslashes "
43498 "(but not both) to protect them from the shell."
43499 msgstr ""
43500
43501 #. type: textblock
43502 #: ../tools/virt-win-reg.pl:750
43503 msgid "Paths and value names are case-insensitive."
43504 msgstr ""
43505
43506 #. type: textblock
43507 #: ../tools/virt-win-reg.pl:759
43508 msgid ""
43509 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43510 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43511 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43512 msgstr ""
43513 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43514 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43515 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43516
43517 #. type: verbatim
43518 #: ../tools/virt-win-reg.pl:777
43519 #, no-wrap
43520 msgid ""
43521 " export LIBGUESTFS_DEBUG=1\n"
43522 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
43523 "\n"
43524 msgstr ""
43525
43526 #. type: textblock
43527 #: ../tools/virt-win-reg.pl:780
43528 msgid ""
43529 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
43530 "redhat.com/>"
43531 msgstr ""