Version 1.15.1.
[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-01 14:20+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:336
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:352
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:354
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:375
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:393
940 #: ../inspector/virt-inspector.pod:397 ../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:380 ../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:395
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:403 ../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:407
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:412
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:417
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., 675 Mass "
1168 "Ave, Cambridge, MA 02139, USA."
1169 msgstr ""
1170 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1171 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1172 "Inc., 675 Mass Ave, Cambridge, MA 02139, 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:137 ../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:143 ../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:147 ../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:151 ../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:377
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:405
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:389 ../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:..] [iface:..] [live:..] [allowuuid:..] [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:..] [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"
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"
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"
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:..] [destoffset:..] [size:..]\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:..] [destoffset:..] [size:..]\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:..] [destoffset:..] [size:..]\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:..] [destoffset:..] [size:..]\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:..] [highquality:..]\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:..] [features:..] [inode:..] [sectorsize:..]\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:..] [force:..]\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:141
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: textblock
22353 #: ../inspector/virt-inspector.pod:139
22354 msgid "Previous versions of virt-inspector allowed you to write either:"
22355 msgstr ""
22356
22357 #. type: verbatim
22358 #: ../inspector/virt-inspector.pod:145
22359 #, no-wrap
22360 msgid ""
22361 " virt-inspector guestname\n"
22362 "\n"
22363 msgstr ""
22364
22365 #. type: =head1
22366 #: ../inspector/virt-inspector.pod:153
22367 msgid "XML FORMAT"
22368 msgstr ""
22369
22370 #. type: textblock
22371 #: ../inspector/virt-inspector.pod:155
22372 msgid ""
22373 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22374 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22375 "just an overview."
22376 msgstr ""
22377
22378 #. type: textblock
22379 #: ../inspector/virt-inspector.pod:159
22380 msgid ""
22381 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22382 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22383 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22384 "which is vanishingly rare in real world VMs."
22385 msgstr ""
22386
22387 #. type: =head2
22388 #: ../inspector/virt-inspector.pod:164
22389 msgid "E<lt>operatingsystemE<gt>"
22390 msgstr ""
22391
22392 #. type: textblock
22393 #: ../inspector/virt-inspector.pod:166
22394 msgid ""
22395 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22396 "describe the operating system, its architecture, the descriptive \"product "
22397 "name\" string, the type of OS and so on, as in this example:"
22398 msgstr ""
22399
22400 #. type: verbatim
22401 #: ../inspector/virt-inspector.pod:170
22402 #, no-wrap
22403 msgid ""
22404 " <operatingsystems>\n"
22405 "   <operatingsystem>\n"
22406 "     <root>/dev/sda2</root>\n"
22407 "     <name>windows</name>\n"
22408 "     <arch>i386</arch>\n"
22409 "     <distro>windows</distro>\n"
22410 "     <product_name>Windows 7 Enterprise</product_name>\n"
22411 "     <product_variant>Client</product_variant>\n"
22412 "     <major_version>6</major_version>\n"
22413 "     <minor_version>1</minor_version>\n"
22414 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22415 "     <format>installed</format>\n"
22416 "\n"
22417 msgstr ""
22418
22419 #. type: textblock
22420 #: ../inspector/virt-inspector.pod:183
22421 msgid ""
22422 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22423 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22424 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22425 "architecture.  The other fields are fairly self-explanatory, but because "
22426 "these fields are taken directly from the libguestfs inspection API you can "
22427 "find precise information from L<guestfs(3)/INSPECTION>."
22428 msgstr ""
22429
22430 #. type: textblock
22431 #: ../inspector/virt-inspector.pod:191
22432 msgid ""
22433 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22434 "of view of libguestfs (block devices may have completely different names "
22435 "inside the VM itself)."
22436 msgstr ""
22437
22438 #. type: =head2
22439 #: ../inspector/virt-inspector.pod:195
22440 msgid "E<lt>mountpointsE<gt>"
22441 msgstr ""
22442
22443 #. type: textblock
22444 #: ../inspector/virt-inspector.pod:197
22445 msgid ""
22446 "Un*x-like guests typically have multiple filesystems which are mounted at "
22447 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22448 "element which looks like this:"
22449 msgstr ""
22450
22451 #. type: verbatim
22452 #: ../inspector/virt-inspector.pod:201
22453 #, no-wrap
22454 msgid ""
22455 " <operatingsystems>\n"
22456 "   <operatingsystem>\n"
22457 "     ...\n"
22458 "     <mountpoints>\n"
22459 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22460 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22461 "     </mountpoints>\n"
22462 "\n"
22463 msgstr ""
22464
22465 #. type: textblock
22466 #: ../inspector/virt-inspector.pod:209
22467 msgid ""
22468 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22469 "and may have completely different names inside the guest.  Only mountable "
22470 "filesystems appear in this list, not things like swap devices."
22471 msgstr ""
22472
22473 #. type: =head2
22474 #: ../inspector/virt-inspector.pod:214
22475 msgid "E<lt>filesystemsE<gt>"
22476 msgstr ""
22477
22478 #. type: textblock
22479 #: ../inspector/virt-inspector.pod:216
22480 msgid ""
22481 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22482 "filesystems belonging to the guest, including swap and empty partitions.  "
22483 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22484 "this OS or shared with this OS and other OSes)."
22485 msgstr ""
22486
22487 #. type: textblock
22488 #: ../inspector/virt-inspector.pod:222
22489 msgid "You might see something like this:"
22490 msgstr ""
22491
22492 #. type: verbatim
22493 #: ../inspector/virt-inspector.pod:224
22494 #, no-wrap
22495 msgid ""
22496 " <operatingsystems>\n"
22497 "   <operatingsystem>\n"
22498 "     ...\n"
22499 "     <filesystems>\n"
22500 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22501 "         <type>ext4</type>\n"
22502 "         <label>Fedora-13-x86_64</label>\n"
22503 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22504 "       </filesystem>\n"
22505 "\n"
22506 msgstr ""
22507
22508 #. type: textblock
22509 #: ../inspector/virt-inspector.pod:234
22510 msgid ""
22511 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22512 "the label, and the UUID."
22513 msgstr ""
22514
22515 #. type: =head2
22516 #: ../inspector/virt-inspector.pod:237
22517 msgid "E<lt>applicationsE<gt>"
22518 msgstr ""
22519
22520 #. type: textblock
22521 #: ../inspector/virt-inspector.pod:239
22522 msgid ""
22523 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22524 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22525 "machine."
22526 msgstr ""
22527
22528 #. type: textblock
22529 #: ../inspector/virt-inspector.pod:243
22530 msgid ""
22531 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22532 "Typical values would be C<rpm> and C<deb>."
22533 msgstr ""
22534
22535 #. type: textblock
22536 #: ../inspector/virt-inspector.pod:246
22537 msgid ""
22538 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22539 "Typical values include C<yum>, C<up2date> and C<apt>"
22540 msgstr ""
22541
22542 #. type: textblock
22543 #: ../inspector/virt-inspector.pod:249
22544 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22545 msgstr ""
22546
22547 #. type: verbatim
22548 #: ../inspector/virt-inspector.pod:252
22549 #, no-wrap
22550 msgid ""
22551 " <operatingsystems>\n"
22552 "   <operatingsystem>\n"
22553 "     ...\n"
22554 "     <applications>\n"
22555 "       <application>\n"
22556 "         <name>coreutils</name>\n"
22557 "         <version>8.5</version>\n"
22558 "         <release>1</release>\n"
22559 "       </application>\n"
22560 "\n"
22561 msgstr ""
22562
22563 #. type: textblock
22564 #: ../inspector/virt-inspector.pod:262
22565 msgid ""
22566 "The version and release fields may not be available for some types guests.  "
22567 "Other fields are possible, see L<guestfs(3)/"
22568 "guestfs_inspect_list_applications>."
22569 msgstr ""
22570
22571 #. type: =head2
22572 #: ../inspector/virt-inspector.pod:266
22573 msgid "E<lt>drive_mappingsE<gt>"
22574 msgstr ""
22575
22576 #. type: textblock
22577 #: ../inspector/virt-inspector.pod:268
22578 msgid ""
22579 "For operating systems like Windows which use drive letters, virt-inspector "
22580 "is able to find out how drive letters map to filesystems."
22581 msgstr ""
22582
22583 #. type: verbatim
22584 #: ../inspector/virt-inspector.pod:272
22585 #, no-wrap
22586 msgid ""
22587 " <operatingsystems>\n"
22588 "   <operatingsystem>\n"
22589 "     ...\n"
22590 "     <drive_mappings>\n"
22591 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22592 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22593 "     </drive_mappings>\n"
22594 "\n"
22595 msgstr ""
22596
22597 #. type: textblock
22598 #: ../inspector/virt-inspector.pod:280
22599 msgid ""
22600 "In the example above, drive C maps to the filesystem on the second partition "
22601 "on the first disk, and drive E maps to the filesystem on the first partition "
22602 "on the second disk."
22603 msgstr ""
22604
22605 #. type: textblock
22606 #: ../inspector/virt-inspector.pod:284
22607 msgid ""
22608 "Note that this only covers permanent local filesystem mappings, not things "
22609 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22610 "here."
22611 msgstr ""
22612
22613 #. type: =head2
22614 #: ../inspector/virt-inspector.pod:288
22615 msgid "E<lt>iconE<gt>"
22616 msgstr ""
22617
22618 #. type: textblock
22619 #: ../inspector/virt-inspector.pod:290
22620 msgid ""
22621 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22622 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22623 "very large and high quality."
22624 msgstr ""
22625
22626 #. type: verbatim
22627 #: ../inspector/virt-inspector.pod:294
22628 #, no-wrap
22629 msgid ""
22630 " <operatingsystems>\n"
22631 "   <operatingsystem>\n"
22632 "     ...\n"
22633 "     <icon>\n"
22634 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22635 "       [... many lines of base64 data ...]\n"
22636 "     </icon>\n"
22637 "\n"
22638 msgstr ""
22639
22640 #. type: textblock
22641 #: ../inspector/virt-inspector.pod:302
22642 msgid ""
22643 "To display the icon, you have to extract it and convert the base64 data back "
22644 "to a binary file.  Use an XPath query or simply an editor to extract the "
22645 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22646 "to a PNG file:"
22647 msgstr ""
22648
22649 #. type: verbatim
22650 #: ../inspector/virt-inspector.pod:307
22651 #, no-wrap
22652 msgid ""
22653 " base64 -i -d < icon.data > icon.png\n"
22654 "\n"
22655 msgstr ""
22656
22657 #. type: =head2
22658 #: ../inspector/virt-inspector.pod:309
22659 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22660 msgstr ""
22661
22662 #. type: textblock
22663 #: ../inspector/virt-inspector.pod:311
22664 msgid ""
22665 "Virt-inspector can detect some operating system installers on install disks, "
22666 "live CDs, bootable USB keys and more."
22667 msgstr ""
22668
22669 #. type: textblock
22670 #: ../inspector/virt-inspector.pod:314
22671 msgid ""
22672 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22673 "fields may be present to indicate a live CD, network installer, or one part "
22674 "of a multipart CD.  For example:"
22675 msgstr ""
22676
22677 #. type: verbatim
22678 #: ../inspector/virt-inspector.pod:318
22679 #, no-wrap
22680 msgid ""
22681 " <operatingsystems>\n"
22682 "   <operatingsystem>\n"
22683 "     <root>/dev/sda</root>\n"
22684 "     <name>linux</name>\n"
22685 "     <arch>i386</arch>\n"
22686 "     <distro>ubuntu</distro>\n"
22687 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
22688 "     <major_version>10</major_version>\n"
22689 "     <minor_version>10</minor_version>\n"
22690 "     <format>installer</format>\n"
22691 "     <live/>\n"
22692 "\n"
22693 msgstr ""
22694
22695 #. type: =head1
22696 #: ../inspector/virt-inspector.pod:330
22697 msgid "USING XPATH"
22698 msgstr ""
22699
22700 #. type: textblock
22701 #: ../inspector/virt-inspector.pod:332
22702 msgid ""
22703 "You can use the XPath query language to select parts of the XML.  We "
22704 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
22705 msgstr ""
22706
22707 #. type: verbatim
22708 #: ../inspector/virt-inspector.pod:338
22709 #, no-wrap
22710 msgid ""
22711 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22712 " <filesystems>\n"
22713 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22714 "        <type>ext4</type>\n"
22715 " [...]\n"
22716 "\n"
22717 msgstr ""
22718
22719 #. type: verbatim
22720 #: ../inspector/virt-inspector.pod:344
22721 #, no-wrap
22722 msgid ""
22723 " $ virt-inspector -d Guest | \\\n"
22724 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22725 " ext4\n"
22726 "\n"
22727 msgstr ""
22728
22729 #. type: verbatim
22730 #: ../inspector/virt-inspector.pod:348
22731 #, no-wrap
22732 msgid ""
22733 " $ virt-inspector -d Guest | \\\n"
22734 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22735 " [displays the guest icon, if there is one]\n"
22736 "\n"
22737 msgstr ""
22738
22739 #. type: =head1
22740 #: ../inspector/virt-inspector.pod:359
22741 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22742 msgstr ""
22743
22744 #. type: textblock
22745 #: ../inspector/virt-inspector.pod:361
22746 msgid ""
22747 "Early versions of libguestfs shipped with a different virt-inspector program "
22748 "written in Perl (the current version is written in C).  The XML output of "
22749 "the Perl virt-inspector was different and it could also output in other "
22750 "formats like text."
22751 msgstr ""
22752
22753 #. type: textblock
22754 #: ../inspector/virt-inspector.pod:366
22755 msgid ""
22756 "The old virt-inspector is no longer supported or shipped with libguestfs."
22757 msgstr ""
22758
22759 #. type: textblock
22760 #: ../inspector/virt-inspector.pod:369
22761 msgid ""
22762 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22763 "versions of virt-inspector with different names:"
22764 msgstr ""
22765
22766 #. type: verbatim
22767 #: ../inspector/virt-inspector.pod:372
22768 #, no-wrap
22769 msgid ""
22770 " virt-inspector     Old Perl version.\n"
22771 " virt-inspector2    New C version.\n"
22772 "\n"
22773 msgstr ""
22774
22775 #. type: textblock
22776 #: ../inspector/virt-inspector.pod:382
22777 msgid ""
22778 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22779 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22780 msgstr ""
22781
22782 #. type: textblock
22783 #: ../inspector/virt-inspector.pod:399
22784 msgid "Matthew Booth L<mbooth@redhat.com>"
22785 msgstr ""
22786
22787 #. type: textblock
22788 #: ../java/examples/guestfs-java.pod:5
22789 msgid "guestfs-java - How to use libguestfs from Java"
22790 msgstr ""
22791
22792 #. type: verbatim
22793 #: ../java/examples/guestfs-java.pod:9
22794 #, no-wrap
22795 msgid ""
22796 " import com.redhat.et.libguestfs.*;\n"
22797 " \n"
22798 msgstr ""
22799
22800 #. type: verbatim
22801 #: ../java/examples/guestfs-java.pod:11
22802 #, no-wrap
22803 msgid ""
22804 " GuestFS g = new GuestFS ();\n"
22805 " g.add_drive_opts (\"disk.img\", null);\n"
22806 " g.launch ();\n"
22807 "\n"
22808 msgstr ""
22809
22810 #. type: textblock
22811 #: ../java/examples/guestfs-java.pod:17
22812 msgid ""
22813 "This manual page documents how to call libguestfs from the Java programming "
22814 "language.  This page just documents the differences from the C API and gives "
22815 "some examples.  If you are not familiar with using libguestfs, you also need "
22816 "to read L<guestfs(3)>."
22817 msgstr ""
22818
22819 #. type: =head2
22820 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22821 msgid "CLOSING THE HANDLE"
22822 msgstr ""
22823
22824 #. type: textblock
22825 #: ../java/examples/guestfs-java.pod:24
22826 msgid ""
22827 "The handle is closed when it is reaped by the garbage collector.  Because "
22828 "libguestfs handles include a lot of state, it is also possible to close (and "
22829 "hence free) them explicitly by calling the C<close> method."
22830 msgstr ""
22831
22832 #. type: =head2
22833 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22834 #: ../python/examples/guestfs-python.pod:21
22835 #: ../ruby/examples/guestfs-ruby.pod:22
22836 msgid "EXCEPTIONS"
22837 msgstr "ВИНЯТКИ"
22838
22839 #. type: textblock
22840 #: ../java/examples/guestfs-java.pod:31
22841 msgid ""
22842 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22843 "exception.  This has a single parameter which is the error message (a "
22844 "C<String>)."
22845 msgstr ""
22846
22847 #. type: textblock
22848 #: ../java/examples/guestfs-java.pod:35
22849 msgid "Calling any method on a closed handle raises the same exception."
22850 msgstr ""
22851
22852 #. type: textblock
22853 #: ../java/examples/guestfs-java.pod:47
22854 msgid ""
22855 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22856 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22857 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22858 msgstr ""
22859
22860 #. type: textblock
22861 #: ../ocaml/examples/guestfs-ocaml.pod:5
22862 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22863 msgstr ""
22864
22865 #. type: textblock
22866 #: ../ocaml/examples/guestfs-ocaml.pod:9
22867 msgid "Module style:"
22868 msgstr ""
22869
22870 #. type: verbatim
22871 #: ../ocaml/examples/guestfs-ocaml.pod:11
22872 #, no-wrap
22873 msgid ""
22874 " let g = Guestfs.create () in\n"
22875 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22876 " Guestfs.launch g;\n"
22877 "\n"
22878 msgstr ""
22879
22880 #. type: textblock
22881 #: ../ocaml/examples/guestfs-ocaml.pod:15
22882 msgid "Object-oriented style:"
22883 msgstr ""
22884
22885 #. type: verbatim
22886 #: ../ocaml/examples/guestfs-ocaml.pod:17
22887 #, no-wrap
22888 msgid ""
22889 " let g = new Guestfs.guestfs () in\n"
22890 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22891 " g#launch ();\n"
22892 "\n"
22893 msgstr ""
22894
22895 #. type: verbatim
22896 #: ../ocaml/examples/guestfs-ocaml.pod:21
22897 #, no-wrap
22898 msgid ""
22899 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22900 "or:\n"
22901 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22902 "\n"
22903 msgstr ""
22904
22905 #. type: textblock
22906 #: ../ocaml/examples/guestfs-ocaml.pod:27
22907 msgid ""
22908 "This manual page documents how to call libguestfs from the OCaml programming "
22909 "language.  This page just documents the differences from the C API and gives "
22910 "some examples.  If you are not familiar with using libguestfs, you also need "
22911 "to read L<guestfs(3)>."
22912 msgstr ""
22913
22914 #. type: =head2
22915 #: ../ocaml/examples/guestfs-ocaml.pod:32
22916 msgid "PROGRAMMING STYLES"
22917 msgstr ""
22918
22919 #. type: textblock
22920 #: ../ocaml/examples/guestfs-ocaml.pod:34
22921 msgid ""
22922 "There are two different programming styles supported by the OCaml bindings.  "
22923 "You can use a module style, with each C function mapped to an OCaml function:"
22924 msgstr ""
22925
22926 #. type: verbatim
22927 #: ../ocaml/examples/guestfs-ocaml.pod:38
22928 #, no-wrap
22929 msgid ""
22930 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22931 "\n"
22932 msgstr ""
22933
22934 #. type: textblock
22935 #: ../ocaml/examples/guestfs-ocaml.pod:40
22936 msgid "becomes:"
22937 msgstr ""
22938
22939 #. type: verbatim
22940 #: ../ocaml/examples/guestfs-ocaml.pod:42
22941 #, no-wrap
22942 msgid ""
22943 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22944 "\n"
22945 msgstr ""
22946
22947 #. type: textblock
22948 #: ../ocaml/examples/guestfs-ocaml.pod:44
22949 msgid ""
22950 "Alternately you can use an object-oriented style, calling methods on the "
22951 "class C<Guestfs.guestfs>:"
22952 msgstr ""
22953
22954 #. type: verbatim
22955 #: ../ocaml/examples/guestfs-ocaml.pod:47
22956 #, no-wrap
22957 msgid ""
22958 " method set_verbose : bool -> unit\n"
22959 "\n"
22960 msgstr ""
22961
22962 #. type: textblock
22963 #: ../ocaml/examples/guestfs-ocaml.pod:49
22964 msgid ""
22965 "The object-oriented style is usually briefer, and the minor performance "
22966 "penalty isn't noticable in the general overhead of performing libguestfs "
22967 "functions."
22968 msgstr ""
22969
22970 #. type: textblock
22971 #: ../ocaml/examples/guestfs-ocaml.pod:55
22972 msgid ""
22973 "The handle is closed when it is reaped by the garbage collector.  Because "
22974 "libguestfs handles include a lot of state, it is also possible to close (and "
22975 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22976 "method."
22977 msgstr ""
22978
22979 #. type: textblock
22980 #: ../ocaml/examples/guestfs-ocaml.pod:62
22981 msgid ""
22982 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22983 "exception.  This has a single parameter which is the error message (a "
22984 "string)."
22985 msgstr ""
22986
22987 #. type: textblock
22988 #: ../ocaml/examples/guestfs-ocaml.pod:66
22989 msgid ""
22990 "Calling any function/method on a closed handle raises C<Guestfs."
22991 "Handle_closed>.  The single parameter is the name of the function that you "
22992 "called."
22993 msgstr ""
22994
22995 #. type: textblock
22996 #: ../ocaml/examples/guestfs-ocaml.pod:80
22997 msgid ""
22998 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22999 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23000 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23001 msgstr ""
23002
23003 #. type: textblock
23004 #: ../perl/examples/guestfs-perl.pod:5
23005 msgid "guestfs-perl - How to use libguestfs from Perl"
23006 msgstr ""
23007
23008 #. type: verbatim
23009 #: ../perl/examples/guestfs-perl.pod:9
23010 #, no-wrap
23011 msgid ""
23012 " use Sys::Guestfs;\n"
23013 " \n"
23014 msgstr ""
23015
23016 #. type: verbatim
23017 #: ../perl/examples/guestfs-perl.pod:11
23018 #, no-wrap
23019 msgid ""
23020 " my $h = Sys::Guestfs->new ();\n"
23021 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23022 " $h->launch ();\n"
23023 " $h->mount_options ('', '/dev/sda1', '/');\n"
23024 " $h->touch ('/hello');\n"
23025 " $h->sync ();\n"
23026 "\n"
23027 msgstr ""
23028
23029 #. type: textblock
23030 #: ../perl/examples/guestfs-perl.pod:20
23031 msgid ""
23032 "This manual page documents how to call libguestfs from the Perl programming "
23033 "language.  This page just documents the differences from the C API and gives "
23034 "some examples.  If you are not familiar with using libguestfs, you also need "
23035 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
23036 msgstr ""
23037
23038 #. type: =head2
23039 #: ../perl/examples/guestfs-perl.pod:26
23040 msgid "ERRORS"
23041 msgstr "ПОМИЛКИ"
23042
23043 #. type: textblock
23044 #: ../perl/examples/guestfs-perl.pod:28
23045 msgid ""
23046 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23047 ">)."
23048 msgstr ""
23049
23050 #. type: textblock
23051 #: ../perl/examples/guestfs-perl.pod:41
23052 msgid ""
23053 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23054 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23055 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23056 msgstr ""
23057
23058 #. type: textblock
23059 #: ../python/examples/guestfs-python.pod:5
23060 msgid "guestfs-python - How to use libguestfs from Python"
23061 msgstr ""
23062
23063 #. type: verbatim
23064 #: ../python/examples/guestfs-python.pod:9
23065 #, no-wrap
23066 msgid ""
23067 " import guestfs\n"
23068 " g = guestfs.GuestFS ()\n"
23069 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23070 " g.launch\n"
23071 "\n"
23072 msgstr ""
23073
23074 #. type: textblock
23075 #: ../python/examples/guestfs-python.pod:16
23076 msgid ""
23077 "This manual page documents how to call libguestfs from the Python "
23078 "programming language.  This page just documents the differences from the C "
23079 "API and gives some examples.  If you are not familiar with using libguestfs, "
23080 "you also need to read L<guestfs(3)>."
23081 msgstr ""
23082
23083 #. type: textblock
23084 #: ../python/examples/guestfs-python.pod:23
23085 msgid ""
23086 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23087 "single string argument which is the error message."
23088 msgstr ""
23089
23090 #. type: =head2
23091 #: ../python/examples/guestfs-python.pod:26
23092 msgid "MORE DOCUMENTATION"
23093 msgstr ""
23094
23095 #. type: textblock
23096 #: ../python/examples/guestfs-python.pod:28
23097 msgid "Type:"
23098 msgstr "Тип:"
23099
23100 #. type: verbatim
23101 #: ../python/examples/guestfs-python.pod:30
23102 #, no-wrap
23103 msgid ""
23104 " $ python\n"
23105 " >>> import guestfs\n"
23106 " >>> help (guestfs)\n"
23107 "\n"
23108 msgstr ""
23109
23110 #. type: textblock
23111 #: ../python/examples/guestfs-python.pod:44
23112 msgid ""
23113 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23114 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23115 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23116 msgstr ""
23117
23118 #. type: textblock
23119 #: ../rescue/virt-rescue.pod:5
23120 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23121 msgstr ""
23122
23123 #. type: verbatim
23124 #: ../rescue/virt-rescue.pod:9
23125 #, no-wrap
23126 msgid ""
23127 " virt-rescue [--options] -d domname\n"
23128 "\n"
23129 msgstr ""
23130
23131 #. type: verbatim
23132 #: ../rescue/virt-rescue.pod:11
23133 #, no-wrap
23134 msgid ""
23135 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23136 "\n"
23137 msgstr ""
23138
23139 #. type: verbatim
23140 #: ../rescue/virt-rescue.pod:13
23141 #, fuzzy, no-wrap
23142 #| msgid ""
23143 #| " virt-filesystems --format=raw -a disk.img\n"
23144 #| "\n"
23145 msgid ""
23146 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
23147 "\n"
23148 msgstr ""
23149 " virt-filesystems --format=raw -a диск.img\n"
23150 "\n"
23151
23152 #. type: verbatim
23153 #: ../rescue/virt-rescue.pod:17
23154 #, no-wrap
23155 msgid ""
23156 " virt-rescue [--options] domname\n"
23157 "\n"
23158 msgstr ""
23159
23160 #. type: verbatim
23161 #: ../rescue/virt-rescue.pod:19
23162 #, no-wrap
23163 msgid ""
23164 " virt-rescue [--options] disk.img [disk.img ...]\n"
23165 "\n"
23166 msgstr ""
23167
23168 #. type: textblock
23169 #: ../rescue/virt-rescue.pod:23
23170 msgid ""
23171 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23172 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23173 "you from doing this, but doesn't catch all cases."
23174 msgstr ""
23175
23176 #. type: textblock
23177 #: ../rescue/virt-rescue.pod:27
23178 msgid ""
23179 "However if you use the I<--ro> (read only) option, then you can attach a "
23180 "shell to a live virtual machine.  The results might be strange or "
23181 "inconsistent at times but you won't get disk corruption."
23182 msgstr ""
23183
23184 #. type: textblock
23185 #: ../rescue/virt-rescue.pod:33
23186 msgid ""
23187 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23188 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23189 "recovery tools which you can use to examine or rescue a virtual machine or "
23190 "disk image."
23191 msgstr ""
23192
23193 #. type: textblock
23194 #: ../rescue/virt-rescue.pod:38
23195 msgid ""
23196 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23197 "on disk image(s):"
23198 msgstr ""
23199
23200 #. type: verbatim
23201 #: ../rescue/virt-rescue.pod:41
23202 #, no-wrap
23203 msgid ""
23204 " virt-rescue -d GuestName\n"
23205 "\n"
23206 msgstr ""
23207
23208 #. type: verbatim
23209 #: ../rescue/virt-rescue.pod:43
23210 #, no-wrap
23211 msgid ""
23212 " virt-rescue --ro -a /path/to/disk.img\n"
23213 "\n"
23214 msgstr ""
23215
23216 #. type: verbatim
23217 #: ../rescue/virt-rescue.pod:45
23218 #, no-wrap
23219 msgid ""
23220 " virt-rescue -a /dev/sdc\n"
23221 "\n"
23222 msgstr ""
23223
23224 #. type: textblock
23225 #: ../rescue/virt-rescue.pod:47
23226 msgid "For live VMs you I<must> use the --ro option."
23227 msgstr ""
23228
23229 #. type: textblock
23230 #: ../rescue/virt-rescue.pod:49
23231 msgid ""
23232 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23233 "in an interactive bash shell where you can use many ordinary Linux "
23234 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23235 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23236 "is an empty directory called C</sysroot> where you can mount filesystems."
23237 msgstr ""
23238
23239 #. type: textblock
23240 #: ../rescue/virt-rescue.pod:56
23241 msgid ""
23242 "You can get virt-rescue to suggest mount commands for you by using the I<--"
23243 "suggest> option (in another terminal):"
23244 msgstr ""
23245
23246 #. type: verbatim
23247 #: ../rescue/virt-rescue.pod:59
23248 #, no-wrap
23249 msgid ""
23250 " $ virt-rescue --suggest -d Fedora15\n"
23251 " Inspecting the virtual machine or disk image ...\n"
23252 " \n"
23253 msgstr ""
23254
23255 #. type: verbatim
23256 #: ../rescue/virt-rescue.pod:62
23257 #, no-wrap
23258 msgid ""
23259 " This disk contains one or more operating systems.  You can use these\n"
23260 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
23261 " filesystems.\n"
23262 " \n"
23263 msgstr ""
23264
23265 #. type: verbatim
23266 #: ../rescue/virt-rescue.pod:66
23267 #, no-wrap
23268 msgid ""
23269 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
23270 " # type: linux, distro: fedora, version: 15.0\n"
23271 " # Fedora release 15 (Lovelock)\n"
23272 " \n"
23273 msgstr ""
23274
23275 #. type: verbatim
23276 #: ../rescue/virt-rescue.pod:70
23277 #, no-wrap
23278 msgid ""
23279 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
23280 " mount /dev/vda1 /sysroot/boot\n"
23281 " mount --bind /dev /sysroot/dev\n"
23282 " mount --bind /dev/pts /sysroot/dev/pts\n"
23283 " mount --bind /proc /sysroot/proc\n"
23284 " mount --bind /sys /sysroot/sys\n"
23285 "\n"
23286 msgstr ""
23287
23288 #. type: textblock
23289 #: ../rescue/virt-rescue.pod:77
23290 msgid ""
23291 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
23292 "(with L<parted(8)>) and mount them by hand:"
23293 msgstr ""
23294
23295 #. type: verbatim
23296 #: ../rescue/virt-rescue.pod:80
23297 #, no-wrap
23298 msgid ""
23299 " ><rescue> lvs\n"
23300 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23301 " lv_root vg_f15x32 -wi-a-   8.83G\n"
23302 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
23303 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
23304 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
23305 " ><rescue> ls /sysroot\n"
23306 "\n"
23307 msgstr ""
23308
23309 #. type: textblock
23310 #: ../rescue/virt-rescue.pod:88
23311 msgid ""
23312 "Another command to list available filesystems is L<virt-filesystems(1)>."
23313 msgstr ""
23314
23315 #. type: textblock
23316 #: ../rescue/virt-rescue.pod:91
23317 msgid ""
23318 "To run commands in a Linux guest (for example, grub), you should chroot into "
23319 "the /sysroot directory first:"
23320 msgstr ""
23321
23322 #. type: verbatim
23323 #: ../rescue/virt-rescue.pod:94
23324 #, no-wrap
23325 msgid ""
23326 " ><rescue> chroot /sysroot\n"
23327 "\n"
23328 msgstr ""
23329
23330 #. type: textblock
23331 #: ../rescue/virt-rescue.pod:98
23332 msgid ""
23333 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23334 "virtual machine.  For example you can use it on a blank file if you want to "
23335 "partition that file (although we would recommend using L<guestfish(1)> "
23336 "instead as it is more suitable for this purpose).  You can even use virt-"
23337 "rescue on things like SD cards."
23338 msgstr ""
23339
23340 #. type: textblock
23341 #: ../rescue/virt-rescue.pod:104
23342 msgid ""
23343 "Virt-rescue does not require root.  You only need to run it as root if you "
23344 "need root to open the disk image."
23345 msgstr ""
23346
23347 #. type: textblock
23348 #: ../rescue/virt-rescue.pod:107
23349 msgid ""
23350 "This tool is just designed for quick interactive hacking on a virtual "
23351 "machine.  For more structured access to a virtual machine disk image, you "
23352 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23353 "make scripted changes to guests, use L<guestfish(1)>."
23354 msgstr ""
23355
23356 #. type: =item
23357 #: ../rescue/virt-rescue.pod:131
23358 msgid "B<--append kernelopts>"
23359 msgstr "B<--append параметри_ядра>"
23360
23361 #. type: textblock
23362 #: ../rescue/virt-rescue.pod:133
23363 msgid "Pass additional options to the rescue kernel."
23364 msgstr ""
23365
23366 #. type: verbatim
23367 #: ../rescue/virt-rescue.pod:163
23368 #, no-wrap
23369 msgid ""
23370 " virt-rescue --format=raw -a disk.img\n"
23371 "\n"
23372 msgstr ""
23373
23374 #. type: verbatim
23375 #: ../rescue/virt-rescue.pod:167
23376 #, no-wrap
23377 msgid ""
23378 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23379 "\n"
23380 msgstr ""
23381
23382 #. type: =item
23383 #: ../rescue/virt-rescue.pod:176
23384 msgid "B<-m MB>"
23385 msgstr "B<-m МБ>"
23386
23387 #. type: =item
23388 #: ../rescue/virt-rescue.pod:178
23389 msgid "B<--memsize MB>"
23390 msgstr "B<--memsize МБ>"
23391
23392 #. type: textblock
23393 #: ../rescue/virt-rescue.pod:180
23394 msgid ""
23395 "Change the amount of memory allocated to the rescue system.  The default is "
23396 "set by libguestfs and is small but adequate for running system tools.  The "
23397 "occasional program might need more memory.  The parameter is specified in "
23398 "megabytes."
23399 msgstr ""
23400
23401 #. type: =item
23402 #: ../rescue/virt-rescue.pod:185
23403 msgid "B<--network>"
23404 msgstr "B<--network>"
23405
23406 #. type: textblock
23407 #: ../rescue/virt-rescue.pod:187
23408 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23409 msgstr ""
23410
23411 #. type: textblock
23412 #: ../rescue/virt-rescue.pod:193
23413 msgid "Open the image read-only."
23414 msgstr ""
23415
23416 #. type: textblock
23417 #: ../rescue/virt-rescue.pod:203
23418 msgid ""
23419 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
23420 "SELINUX> before using this option."
23421 msgstr ""
23422
23423 #. type: =item
23424 #: ../rescue/virt-rescue.pod:206
23425 msgid "B<--smp> N"
23426 msgstr ""
23427
23428 #. type: textblock
23429 #: ../rescue/virt-rescue.pod:208
23430 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23431 msgstr ""
23432
23433 #. type: =item
23434 #: ../rescue/virt-rescue.pod:210
23435 #, fuzzy
23436 #| msgid "B<--quiet>"
23437 msgid "B<--suggest>"
23438 msgstr "B<--quiet>"
23439
23440 #. type: textblock
23441 #: ../rescue/virt-rescue.pod:212
23442 msgid ""
23443 "Inspect the disk image and suggest what mount commands should be used to "
23444 "mount the disks.  You should use the I<--suggest> option in a second "
23445 "terminal, then paste the commands into another virt-rescue."
23446 msgstr ""
23447
23448 #. type: textblock
23449 #: ../rescue/virt-rescue.pod:216
23450 msgid ""
23451 "This option implies I<--ro> and is safe to use even if the guest is up or if "
23452 "another virt-rescue is running."
23453 msgstr ""
23454
23455 #. type: textblock
23456 #: ../rescue/virt-rescue.pod:235
23457 msgid ""
23458 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23459 "are done read-write."
23460 msgstr ""
23461
23462 #. type: textblock
23463 #: ../rescue/virt-rescue.pod:248
23464 msgid "Previous versions of virt-rescue allowed you to write either:"
23465 msgstr ""
23466
23467 #. type: verbatim
23468 #: ../rescue/virt-rescue.pod:250
23469 #, no-wrap
23470 msgid ""
23471 " virt-rescue disk.img [disk.img ...]\n"
23472 "\n"
23473 msgstr ""
23474
23475 #. type: verbatim
23476 #: ../rescue/virt-rescue.pod:254
23477 #, no-wrap
23478 msgid ""
23479 " virt-rescue guestname\n"
23480 "\n"
23481 msgstr ""
23482
23483 #. type: =head1
23484 #: ../rescue/virt-rescue.pod:262
23485 msgid "NETWORK"
23486 msgstr "МЕРЕЖА"
23487
23488 #. type: textblock
23489 #: ../rescue/virt-rescue.pod:264
23490 msgid ""
23491 "Adding the I<--network> option enables QEMU user networking in the rescue "
23492 "appliance.  There are some differences between user networking and ordinary "
23493 "networking:"
23494 msgstr ""
23495
23496 #. type: =item
23497 #: ../rescue/virt-rescue.pod:270
23498 msgid "ping does not work"
23499 msgstr ""
23500
23501 #. type: textblock
23502 #: ../rescue/virt-rescue.pod:272
23503 msgid ""
23504 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23505 "send the ping packets, and because virt-rescue must be able to run as non-"
23506 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
23507 "The ping command will appear to resolve addresses but will not be able to "
23508 "send or receive any packets.  This does not mean that the network is not "
23509 "working."
23510 msgstr ""
23511
23512 #. type: =item
23513 #: ../rescue/virt-rescue.pod:279
23514 msgid "cannot receive connections"
23515 msgstr ""
23516
23517 #. type: textblock
23518 #: ../rescue/virt-rescue.pod:281
23519 msgid "QEMU user networking cannot receive incoming connections."
23520 msgstr ""
23521
23522 #. type: =item
23523 #: ../rescue/virt-rescue.pod:283
23524 msgid "making TCP connections"
23525 msgstr ""
23526
23527 #. type: textblock
23528 #: ../rescue/virt-rescue.pod:285
23529 msgid ""
23530 "The virt-rescue appliance needs to be small and so does not include many "
23531 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23532 "make TCP connections from the shell using the magical C</dev/tcp/"
23533 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23534 msgstr ""
23535
23536 #. type: verbatim
23537 #: ../rescue/virt-rescue.pod:290
23538 #, no-wrap
23539 msgid ""
23540 " exec 3<>/dev/tcp/redhat.com/80\n"
23541 " echo \"GET /\" >&3\n"
23542 " cat <&3\n"
23543 "\n"
23544 msgstr ""
23545
23546 #. type: textblock
23547 #: ../rescue/virt-rescue.pod:294
23548 msgid "See L<bash(1)> for more details."
23549 msgstr ""
23550
23551 #. type: textblock
23552 #: ../rescue/virt-rescue.pod:300
23553 msgid ""
23554 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
23555 "ENVIRONMENT VARIABLES> for the complete list."
23556 msgstr ""
23557
23558 #. type: textblock
23559 #: ../rescue/virt-rescue.pod:327
23560 #, fuzzy
23561 #| msgid ""
23562 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
23563 #| "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
23564 msgid ""
23565 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
23566 "filesystems(1)>, L<http://libguestfs.org/>."
23567 msgstr ""
23568 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
23569 "tar-out(1)>, L<http://libguestfs.org/>."
23570
23571 #. type: textblock
23572 #: ../resize/virt-resize.pod:5
23573 msgid "virt-resize - Resize a virtual machine disk"
23574 msgstr ""
23575
23576 #. type: verbatim
23577 #: ../resize/virt-resize.pod:9
23578 #, no-wrap
23579 msgid ""
23580 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23581 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23582 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23583 "\n"
23584 msgstr ""
23585
23586 #. type: textblock
23587 #: ../resize/virt-resize.pod:15
23588 msgid ""
23589 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23590 "larger or smaller overall, and resizing or deleting any partitions contained "
23591 "within."
23592 msgstr ""
23593
23594 #. type: textblock
23595 #: ../resize/virt-resize.pod:19
23596 msgid ""
23597 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23598 "not> be used on live virtual machines - for consistent results, shut the "
23599 "virtual machine down before resizing it."
23600 msgstr ""
23601
23602 #. type: textblock
23603 #: ../resize/virt-resize.pod:23
23604 msgid ""
23605 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23606 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23607 msgstr ""
23608
23609 #. type: =item
23610 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
23611 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
23612 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
23613 msgid "1."
23614 msgstr "1."
23615
23616 #. type: textblock
23617 #: ../resize/virt-resize.pod:33
23618 msgid ""
23619 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23620 "fill the extra 5GB of space."
23621 msgstr ""
23622
23623 #. type: verbatim
23624 #: ../resize/virt-resize.pod:36
23625 #, no-wrap
23626 msgid ""
23627 " virt-filesystems --long -h --all -a olddisk\n"
23628 " \n"
23629 msgstr ""
23630
23631 #. type: verbatim
23632 #: ../resize/virt-resize.pod:38
23633 #, no-wrap
23634 msgid ""
23635 " truncate -r olddisk newdisk\n"
23636 " truncate -s +5G newdisk\n"
23637 " \n"
23638 msgstr ""
23639
23640 #. type: verbatim
23641 #: ../resize/virt-resize.pod:41
23642 #, no-wrap
23643 msgid ""
23644 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23645 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23646 "\n"
23647 msgstr ""
23648
23649 #. type: =item
23650 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
23651 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
23652 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23653 msgid "2."
23654 msgstr "2."
23655
23656 #. type: textblock
23657 #: ../resize/virt-resize.pod:46
23658 msgid ""
23659 "As above, but make the /boot partition 200MB bigger, while giving the "
23660 "remaining space to /dev/sda2:"
23661 msgstr ""
23662
23663 #. type: verbatim
23664 #: ../resize/virt-resize.pod:49
23665 #, no-wrap
23666 msgid ""
23667 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23668 "   olddisk newdisk\n"
23669 "\n"
23670 msgstr ""
23671
23672 #. type: =item
23673 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
23674 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
23675 #: ../src/guestfs.pod:1451
23676 msgid "3."
23677 msgstr "3."
23678
23679 #. type: textblock
23680 #: ../resize/virt-resize.pod:54
23681 msgid ""
23682 "As in the first example, but expand a logical volume as the final step.  "
23683 "This is what you would typically use for Linux guests that use LVM:"
23684 msgstr ""
23685
23686 #. type: verbatim
23687 #: ../resize/virt-resize.pod:58
23688 #, no-wrap
23689 msgid ""
23690 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23691 "   olddisk newdisk\n"
23692 "\n"
23693 msgstr ""
23694
23695 #. type: =item
23696 #: ../resize/virt-resize.pod:61
23697 msgid "4."
23698 msgstr ""
23699
23700 #. type: textblock
23701 #: ../resize/virt-resize.pod:63
23702 msgid ""
23703 "As in the first example, but the output format will be qcow2 instead of a "
23704 "raw disk:"
23705 msgstr ""
23706
23707 #. type: verbatim
23708 #: ../resize/virt-resize.pod:66
23709 #, no-wrap
23710 msgid ""
23711 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23712 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23713 "\n"
23714 msgstr ""
23715
23716 #. type: =head1
23717 #: ../resize/virt-resize.pod:71
23718 msgid "DETAILED USAGE"
23719 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
23720
23721 #. type: =head2
23722 #: ../resize/virt-resize.pod:73
23723 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23724 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
23725
23726 #. type: =item
23727 #: ../resize/virt-resize.pod:77
23728 msgid "1. Shut down the virtual machine"
23729 msgstr ""
23730
23731 #. type: =item
23732 #: ../resize/virt-resize.pod:79
23733 msgid "2. Locate input disk image"
23734 msgstr ""
23735
23736 #. type: textblock
23737 #: ../resize/virt-resize.pod:81
23738 msgid ""
23739 "Locate the input disk image (ie. the file or device on the host containing "
23740 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23741 "dumpxml> like this to find the disk image name:"
23742 msgstr ""
23743
23744 #. type: verbatim
23745 #: ../resize/virt-resize.pod:85
23746 #, no-wrap
23747 msgid ""
23748 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23749 " Found 1 nodes:\n"
23750 " -- NODE --\n"
23751 " <source dev=\"/dev/vg/lv_guest\" />\n"
23752 "\n"
23753 msgstr ""
23754
23755 #. type: =item
23756 #: ../resize/virt-resize.pod:90
23757 msgid "3. Look at current sizing"
23758 msgstr ""
23759
23760 #. type: textblock
23761 #: ../resize/virt-resize.pod:92
23762 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23763 msgstr ""
23764
23765 #. type: verbatim
23766 #: ../resize/virt-resize.pod:95
23767 #, no-wrap
23768 msgid ""
23769 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23770 " Name       Type       Size  Parent\n"
23771 " /dev/sda1  partition  101M  /dev/sda\n"
23772 " /dev/sda2  partition  7.9G  /dev/sda\n"
23773 " /dev/sda   device     8.0G  -\n"
23774 "\n"
23775 msgstr ""
23776
23777 #. type: textblock
23778 #: ../resize/virt-resize.pod:101
23779 msgid ""
23780 "(This example is a virtual machine with an 8 GB disk which we would like to "
23781 "expand up to 10 GB)."
23782 msgstr ""
23783
23784 #. type: =item
23785 #: ../resize/virt-resize.pod:104
23786 msgid "4. Create output disk"
23787 msgstr ""
23788
23789 #. type: textblock
23790 #: ../resize/virt-resize.pod:106
23791 msgid ""
23792 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23793 "to store the resized output disk."
23794 msgstr ""
23795
23796 #. type: textblock
23797 #: ../resize/virt-resize.pod:109
23798 msgid ""
23799 "To store the resized disk image in a file, create a file of a suitable size:"
23800 msgstr ""
23801
23802 #. type: verbatim
23803 #: ../resize/virt-resize.pod:112
23804 #, no-wrap
23805 msgid ""
23806 " # rm -f outdisk\n"
23807 " # truncate -s 10G outdisk\n"
23808 "\n"
23809 msgstr ""
23810
23811 #. type: textblock
23812 #: ../resize/virt-resize.pod:115
23813 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23814 msgstr ""
23815
23816 #. type: verbatim
23817 #: ../resize/virt-resize.pod:117
23818 #, no-wrap
23819 msgid ""
23820 " # lvcreate -L 10G -n lv_name vg_name\n"
23821 "\n"
23822 msgstr ""
23823
23824 #. type: textblock
23825 #: ../resize/virt-resize.pod:119
23826 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23827 msgstr ""
23828
23829 #. type: verbatim
23830 #: ../resize/virt-resize.pod:121
23831 #, no-wrap
23832 msgid ""
23833 " # virsh pool-list\n"
23834 " # virsh vol-create-as poolname newvol 10G\n"
23835 "\n"
23836 msgstr ""
23837
23838 #. type: =item
23839 #: ../resize/virt-resize.pod:124
23840 msgid "5. Resize"
23841 msgstr "5. Зміна розміру"
23842
23843 #. type: textblock
23844 #: ../resize/virt-resize.pod:126
23845 msgid ""
23846 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23847 "file) and the output disk.  The output disk is the one created in the "
23848 "previous step."
23849 msgstr ""
23850
23851 #. type: verbatim
23852 #: ../resize/virt-resize.pod:130
23853 #, no-wrap
23854 msgid ""
23855 " # virt-resize indisk outdisk\n"
23856 "\n"
23857 msgstr ""
23858
23859 #. type: textblock
23860 #: ../resize/virt-resize.pod:132
23861 msgid ""
23862 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23863 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23864 "larger, then an extra, empty partition is created at the end of the disk "
23865 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23866 "error."
23867 msgstr ""
23868
23869 #. type: textblock
23870 #: ../resize/virt-resize.pod:138
23871 msgid ""
23872 "More realistically you'd want to expand existing partitions in the disk "
23873 "image by passing extra options (for the full list see the L</OPTIONS> "
23874 "section below)."
23875 msgstr ""
23876
23877 #. type: textblock
23878 #: ../resize/virt-resize.pod:142
23879 msgid ""
23880 "L</--expand> is the most useful option.  It expands the named partition "
23881 "within the disk to fill any extra space:"
23882 msgstr ""
23883
23884 #. type: verbatim
23885 #: ../resize/virt-resize.pod:145
23886 #, no-wrap
23887 msgid ""
23888 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23889 "\n"
23890 msgstr ""
23891
23892 #. type: textblock
23893 #: ../resize/virt-resize.pod:147
23894 msgid ""
23895 "(In this case, an extra partition is I<not> created at the end of the disk, "
23896 "because there will be no unused space)."
23897 msgstr ""
23898
23899 #. type: textblock
23900 #: ../resize/virt-resize.pod:150
23901 msgid ""
23902 "L</--resize> is the other commonly used option.  The following would "
23903 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23904 "rest of the available space:"
23905 msgstr ""
23906
23907 #. type: verbatim
23908 #: ../resize/virt-resize.pod:154
23909 #, no-wrap
23910 msgid ""
23911 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23912 "     indisk outdisk\n"
23913 "\n"
23914 msgstr ""
23915
23916 #. type: textblock
23917 #: ../resize/virt-resize.pod:157
23918 msgid ""
23919 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23920 "if virt-resize knows how, it will resize the contents, the equivalent of "
23921 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23922 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23923 "filesystems, so you would have to online resize them after booting the guest."
23924 msgstr ""
23925
23926 #. type: textblock
23927 #: ../resize/virt-resize.pod:164
23928 msgid "Other options are covered below."
23929 msgstr ""
23930
23931 #. type: =item
23932 #: ../resize/virt-resize.pod:166
23933 msgid "6. Test"
23934 msgstr "6. Перевірка"
23935
23936 #. type: textblock
23937 #: ../resize/virt-resize.pod:168
23938 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23939 msgstr ""
23940
23941 #. type: textblock
23942 #: ../resize/virt-resize.pod:170
23943 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23944 msgstr ""
23945
23946 #. type: verbatim
23947 #: ../resize/virt-resize.pod:172
23948 #, no-wrap
23949 msgid ""
23950 " # virsh edit guestname\n"
23951 "\n"
23952 msgstr ""
23953
23954 #. type: textblock
23955 #: ../resize/virt-resize.pod:174
23956 msgid ""
23957 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23958 "html#elementsDisks>"
23959 msgstr ""
23960
23961 #. type: textblock
23962 #: ../resize/virt-resize.pod:177
23963 msgid "Then start up the domain with the new, resized disk:"
23964 msgstr ""
23965
23966 #. type: verbatim
23967 #: ../resize/virt-resize.pod:179
23968 #, no-wrap
23969 msgid ""
23970 " # virsh start guestname\n"
23971 "\n"
23972 msgstr ""
23973
23974 #. type: textblock
23975 #: ../resize/virt-resize.pod:181
23976 msgid ""
23977 "and check that it still works.  See also the L</NOTES> section below for "
23978 "additional information."
23979 msgstr ""
23980
23981 #. type: =item
23982 #: ../resize/virt-resize.pod:184
23983 msgid "7. Resize LVs etc inside the guest"
23984 msgstr ""
23985
23986 #. type: textblock
23987 #: ../resize/virt-resize.pod:186
23988 msgid "(This can also be done offline using L<guestfish(1)>)"
23989 msgstr ""
23990
23991 #. type: textblock
23992 #: ../resize/virt-resize.pod:188
23993 msgid ""
23994 "Once the guest has booted you should see the new space available, at least "
23995 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23996 "may need to resize LVs inside PVs, and also resize filesystem types that "
23997 "virt-resize does not know how to expand."
23998 msgstr ""
23999
24000 #. type: =head2
24001 #: ../resize/virt-resize.pod:195
24002 msgid "SHRINKING A VIRTUAL MACHINE DISK"
24003 msgstr ""
24004
24005 #. type: textblock
24006 #: ../resize/virt-resize.pod:197
24007 msgid ""
24008 "Shrinking is somewhat more complex than expanding, and only an overview is "
24009 "given here."
24010 msgstr ""
24011
24012 #. type: textblock
24013 #: ../resize/virt-resize.pod:200
24014 msgid ""
24015 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
24016 "filesystems).  The user has to shrink content before passing the disk image "
24017 "to virt-resize, and virt-resize will check that the content has been shrunk "
24018 "properly."
24019 msgstr ""
24020
24021 #. type: textblock
24022 #: ../resize/virt-resize.pod:205
24023 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
24024 msgstr ""
24025
24026 #. type: textblock
24027 #: ../resize/virt-resize.pod:207
24028 msgid ""
24029 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
24030 "steps 3 and 4 above to allocate a new disk image."
24031 msgstr ""
24032
24033 #. type: textblock
24034 #: ../resize/virt-resize.pod:210
24035 msgid ""
24036 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
24037 msgstr ""
24038
24039 #. type: =head2
24040 #: ../resize/virt-resize.pod:213
24041 msgid "IGNORING OR DELETING PARTITIONS"
24042 msgstr ""
24043
24044 #. type: textblock
24045 #: ../resize/virt-resize.pod:215
24046 msgid ""
24047 "virt-resize also gives a convenient way to ignore or delete partitions when "
24048 "copying from the input disk to the output disk.  Ignoring a partition speeds "
24049 "up the copy where you don't care about the existing contents of a "
24050 "partition.  Deleting a partition removes it completely, but note that it "
24051 "also renumbers any partitions after the one which is deleted, which can "
24052 "leave some guests unbootable."
24053 msgstr ""
24054
24055 #. type: =head2
24056 #: ../resize/virt-resize.pod:222
24057 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
24058 msgstr ""
24059
24060 #. type: textblock
24061 #: ../resize/virt-resize.pod:224
24062 msgid ""
24063 "If the input disk is in qcow2 format, then you may prefer that the output is "
24064 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
24065 "the fly.  The output format is simply determined by the format of the empty "
24066 "output container that you provide.  Thus to create qcow2 output, use:"
24067 msgstr ""
24068
24069 #. type: verbatim
24070 #: ../resize/virt-resize.pod:230
24071 #, no-wrap
24072 msgid ""
24073 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
24074 "\n"
24075 msgstr ""
24076
24077 #. type: textblock
24078 #: ../resize/virt-resize.pod:232
24079 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
24080 msgstr ""
24081
24082 #. type: textblock
24083 #: ../resize/virt-resize.pod:234
24084 msgid "Similarly, to get non-sparse raw output use:"
24085 msgstr ""
24086
24087 #. type: verbatim
24088 #: ../resize/virt-resize.pod:236
24089 #, no-wrap
24090 msgid ""
24091 " fallocate -l size outdisk\n"
24092 "\n"
24093 msgstr ""
24094
24095 #. type: textblock
24096 #: ../resize/virt-resize.pod:238
24097 msgid ""
24098 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24099 "dev/zero of=outdisk bs=1M count=..>)"
24100 msgstr ""
24101
24102 #. type: =head2
24103 #: ../resize/virt-resize.pod:241
24104 msgid "LOGICAL PARTITIONS"
24105 msgstr ""
24106
24107 #. type: textblock
24108 #: ../resize/virt-resize.pod:243
24109 msgid ""
24110 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24111 "tables) cannot be resized."
24112 msgstr ""
24113
24114 #. type: textblock
24115 #: ../resize/virt-resize.pod:246
24116 msgid ""
24117 "To understand what is going on, firstly one of the four partitions C</dev/"
24118 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
24119 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
24120 "type."
24121 msgstr ""
24122
24123 #. type: textblock
24124 #: ../resize/virt-resize.pod:251
24125 msgid "Logical partitions live inside the extended partition."
24126 msgstr ""
24127
24128 #. type: textblock
24129 #: ../resize/virt-resize.pod:253
24130 msgid ""
24131 "The extended partition can be expanded, but not shrunk (unless you force it, "
24132 "which is not advisable).  When the extended partition is copied across, all "
24133 "the logical partitions contained inside are copied over implicitly.  Virt-"
24134 "resize does not look inside the extended partition, so it copies the logical "
24135 "partitions blindly."
24136 msgstr ""
24137
24138 #. type: textblock
24139 #: ../resize/virt-resize.pod:259
24140 msgid ""
24141 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24142 "line.  Doing so will give an error."
24143 msgstr ""
24144
24145 #. type: textblock
24146 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24147 msgid "Display help."
24148 msgstr ""
24149
24150 #. type: =item
24151 #: ../resize/virt-resize.pod:270
24152 msgid "B<--align-first auto>"
24153 msgstr ""
24154
24155 #. type: =item
24156 #: ../resize/virt-resize.pod:272
24157 msgid "B<--align-first never>"
24158 msgstr ""
24159
24160 #. type: =item
24161 #: ../resize/virt-resize.pod:274
24162 msgid "B<--align-first always>"
24163 msgstr ""
24164
24165 #. type: textblock
24166 #: ../resize/virt-resize.pod:276
24167 msgid ""
24168 "Align the first partition for improved performance (see also the I<--"
24169 "alignment> option)."
24170 msgstr ""
24171
24172 #. type: textblock
24173 #: ../resize/virt-resize.pod:279
24174 msgid ""
24175 "The default is I<--align-first auto> which only aligns the first partition "
24176 "if it is safe to do so.  That is, only when we know how to fix the "
24177 "bootloader automatically, and at the moment that can only be done for "
24178 "Windows guests."
24179 msgstr ""
24180
24181 #. type: textblock
24182 #: ../resize/virt-resize.pod:284
24183 msgid ""
24184 "I<--align-first never> means we never move the first partition.  This is the "
24185 "safest option.  Try this if the guest does not boot after resizing."
24186 msgstr ""
24187
24188 #. type: textblock
24189 #: ../resize/virt-resize.pod:288
24190 msgid ""
24191 "I<--align-first always> means we always align the first partition (if it "
24192 "needs to be aligned).  For some guests this will break the bootloader, "
24193 "making the guest unbootable."
24194 msgstr ""
24195
24196 #. type: =item
24197 #: ../resize/virt-resize.pod:292
24198 msgid "B<--alignment N>"
24199 msgstr ""
24200
24201 #. type: textblock
24202 #: ../resize/virt-resize.pod:294
24203 msgid ""
24204 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24205 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24206 msgstr ""
24207
24208 #. type: textblock
24209 #: ../resize/virt-resize.pod:298
24210 msgid ""
24211 "Assuming 512 byte sector size inside the guest, here are some suitable "
24212 "values for this:"
24213 msgstr ""
24214
24215 #. type: =item
24216 #: ../resize/virt-resize.pod:303
24217 msgid "I<--alignment 1> (512 bytes)"
24218 msgstr ""
24219
24220 #. type: textblock
24221 #: ../resize/virt-resize.pod:305
24222 msgid ""
24223 "The partitions would be packed together as closely as possible, but would be "
24224 "completely unaligned.  In some cases this can cause very poor performance.  "
24225 "See L<virt-alignment-scan(1)> for further details."
24226 msgstr ""
24227
24228 #. type: =item
24229 #: ../resize/virt-resize.pod:309
24230 msgid "I<--alignment 8> (4K)"
24231 msgstr ""
24232
24233 #. type: textblock
24234 #: ../resize/virt-resize.pod:311
24235 msgid ""
24236 "This would be the minimum acceptable alignment for reasonable performance on "
24237 "modern hosts."
24238 msgstr ""
24239
24240 #. type: =item
24241 #: ../resize/virt-resize.pod:314
24242 msgid "I<--alignment 128> (64K)"
24243 msgstr ""
24244
24245 #. type: textblock
24246 #: ../resize/virt-resize.pod:316
24247 msgid ""
24248 "This alignment provides good performance when the host is using high end "
24249 "network storage."
24250 msgstr ""
24251
24252 #. type: =item
24253 #: ../resize/virt-resize.pod:319
24254 msgid "I<--alignment 2048> (1M)"
24255 msgstr ""
24256
24257 #. type: textblock
24258 #: ../resize/virt-resize.pod:321
24259 msgid ""
24260 "This is the standard alignment used by all newly installed guests since "
24261 "around 2008."
24262 msgstr ""
24263
24264 #. type: =item
24265 #: ../resize/virt-resize.pod:326
24266 msgid "B<-d>"
24267 msgstr "B<-d>"
24268
24269 #. type: =item
24270 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
24271 #: ../tools/virt-win-reg.pl:120
24272 msgid "B<--debug>"
24273 msgstr "B<--debug>"
24274
24275 #. type: textblock
24276 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24277 msgid "Enable debugging messages."
24278 msgstr ""
24279
24280 #. type: =item
24281 #: ../resize/virt-resize.pod:332
24282 msgid "B<--delete part>"
24283 msgstr "B<--delete розділ>"
24284
24285 #. type: textblock
24286 #: ../resize/virt-resize.pod:334
24287 msgid ""
24288 "Delete the named partition.  It would be more accurate to describe this as "
24289 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24290 "the original disk image is left intact."
24291 msgstr ""
24292
24293 #. type: textblock
24294 #: ../resize/virt-resize.pod:338
24295 msgid ""
24296 "Note that when you delete a partition, then anything contained in the "
24297 "partition is also deleted.  Furthermore, this causes any partitions that "
24298 "come after to be I<renumbered>, which can easily make your guest unbootable."
24299 msgstr ""
24300
24301 #. type: textblock
24302 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
24303 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
24304 msgid "You can give this option multiple times."
24305 msgstr ""
24306
24307 #. type: =item
24308 #: ../resize/virt-resize.pod:345
24309 msgid "B<--expand part>"
24310 msgstr "B<--expand розділ>"
24311
24312 #. type: textblock
24313 #: ../resize/virt-resize.pod:347
24314 msgid ""
24315 "Expand the named partition so it uses up all extra space (space left over "
24316 "after any other resize changes that you request have been done)."
24317 msgstr ""
24318
24319 #. type: textblock
24320 #: ../resize/virt-resize.pod:350
24321 msgid ""
24322 "If virt-resize knows how, it will expand the direct content of the "
24323 "partition.  For example, if the partition is an LVM PV, it will expand the "
24324 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24325 "content it doesn't know about alone."
24326 msgstr ""
24327
24328 #. type: textblock
24329 #: ../resize/virt-resize.pod:355
24330 msgid "Currently virt-resize can resize:"
24331 msgstr ""
24332
24333 #. type: textblock
24334 #: ../resize/virt-resize.pod:361
24335 msgid "ext2, ext3 and ext4 filesystems."
24336 msgstr ""
24337
24338 #. type: textblock
24339 #: ../resize/virt-resize.pod:365
24340 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24341 msgstr ""
24342
24343 #. type: textblock
24344 #: ../resize/virt-resize.pod:367
24345 msgid ""
24346 "The filesystem must have been shut down consistently last time it was used.  "
24347 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24348 "consistency check, so at the first boot after resizing Windows will check "
24349 "the disk."
24350 msgstr ""
24351
24352 #. type: textblock
24353 #: ../resize/virt-resize.pod:374
24354 msgid ""
24355 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24356 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24357 "resize LVs as desired after boot."
24358 msgstr ""
24359
24360 #. type: textblock
24361 #: ../resize/virt-resize.pod:380
24362 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24363 msgstr ""
24364
24365 #. type: textblock
24366 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
24367 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24368 msgstr ""
24369
24370 #. type: =item
24371 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
24372 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24373 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24374 msgid "B<--format> raw"
24375 msgstr "B<--format> raw"
24376
24377 #. type: textblock
24378 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
24379 msgid ""
24380 "Specify the format of the input disk image.  If this flag is not given then "
24381 "it is auto-detected from the image itself."
24382 msgstr ""
24383
24384 #. type: textblock
24385 #: ../resize/virt-resize.pod:394
24386 msgid ""
24387 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24388 "AND NON-SPARSE RAW FORMATS>."
24389 msgstr ""
24390
24391 #. type: =item
24392 #: ../resize/virt-resize.pod:397
24393 msgid "B<--ignore part>"
24394 msgstr "B<--ignore розділ>"
24395
24396 #. type: textblock
24397 #: ../resize/virt-resize.pod:399
24398 msgid ""
24399 "Ignore the named partition.  Effectively this means the partition is "
24400 "allocated on the destination disk, but the content is not copied across from "
24401 "the source disk.  The content of the partition will be blank (all zero "
24402 "bytes)."
24403 msgstr ""
24404
24405 #. type: =item
24406 #: ../resize/virt-resize.pod:406
24407 msgid "B<--LV-expand logvol>"
24408 msgstr "B<--LV-expand логічний_том>"
24409
24410 #. type: textblock
24411 #: ../resize/virt-resize.pod:408
24412 msgid ""
24413 "This takes the logical volume and, as a final step, expands it to fill all "
24414 "the space available in its volume group.  A typical usage, assuming a Linux "
24415 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24416 "lv_root> would be:"
24417 msgstr ""
24418
24419 #. type: verbatim
24420 #: ../resize/virt-resize.pod:413
24421 #, no-wrap
24422 msgid ""
24423 " virt-resize indisk outdisk \\\n"
24424 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24425 "\n"
24426 msgstr ""
24427
24428 #. type: textblock
24429 #: ../resize/virt-resize.pod:416
24430 msgid ""
24431 "This would first expand the partition (and PV), and then expand the root "
24432 "device to fill the extra space in the PV."
24433 msgstr ""
24434
24435 #. type: textblock
24436 #: ../resize/virt-resize.pod:419
24437 msgid ""
24438 "The contents of the LV are also resized if virt-resize knows how to do "
24439 "that.  You can stop virt-resize from trying to expand the content by using "
24440 "the option I<--no-expand-content>."
24441 msgstr ""
24442
24443 #. type: textblock
24444 #: ../resize/virt-resize.pod:423
24445 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24446 msgstr ""
24447
24448 #. type: textblock
24449 #: ../resize/virt-resize.pod:425
24450 msgid ""
24451 "You can give this option multiple times, I<but> it doesn't make sense to do "
24452 "this unless the logical volumes you specify are all in different volume "
24453 "groups."
24454 msgstr ""
24455
24456 #. type: =item
24457 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
24458 msgid "B<--machine-readable>"
24459 msgstr ""
24460
24461 #. type: textblock
24462 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
24463 msgid ""
24464 "This option is used to make the output more machine friendly when being "
24465 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24466 msgstr ""
24467
24468 #. type: =item
24469 #: ../resize/virt-resize.pod:437
24470 msgid "B<--dryrun>"
24471 msgstr "B<--dryrun>"
24472
24473 #. type: textblock
24474 #: ../resize/virt-resize.pod:439
24475 msgid "Print a summary of what would be done, but don't do anything."
24476 msgstr ""
24477
24478 #. type: =item
24479 #: ../resize/virt-resize.pod:441
24480 msgid "B<--no-copy-boot-loader>"
24481 msgstr "B<--no-copy-boot-loader>"
24482
24483 #. type: textblock
24484 #: ../resize/virt-resize.pod:443
24485 msgid ""
24486 "By default, virt-resize copies over some sectors at the start of the disk "
24487 "(up to the beginning of the first partition).  Commonly these sectors "
24488 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24489 "in order for the guest to boot correctly."
24490 msgstr ""
24491
24492 #. type: textblock
24493 #: ../resize/virt-resize.pod:448
24494 msgid ""
24495 "If you specify this flag, then this initial copy is not done.  You may need "
24496 "to reinstall the boot loader in this case."
24497 msgstr ""
24498
24499 #. type: =item
24500 #: ../resize/virt-resize.pod:451
24501 msgid "B<--no-extra-partition>"
24502 msgstr "B<--no-extra-partition>"
24503
24504 #. type: textblock
24505 #: ../resize/virt-resize.pod:453
24506 msgid ""
24507 "By default, virt-resize creates an extra partition if there is any extra, "
24508 "unused space after all resizing has happened.  Use this option to prevent "
24509 "the extra partition from being created.  If you do this then the extra space "
24510 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24511 "tool in the guest."
24512 msgstr ""
24513
24514 #. type: textblock
24515 #: ../resize/virt-resize.pod:459
24516 msgid ""
24517 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24518 "will be created."
24519 msgstr ""
24520
24521 #. type: =item
24522 #: ../resize/virt-resize.pod:462
24523 msgid "B<--no-expand-content>"
24524 msgstr "B<--no-expand-content>"
24525
24526 #. type: textblock
24527 #: ../resize/virt-resize.pod:464
24528 msgid ""
24529 "By default, virt-resize will try to expand the direct contents of "
24530 "partitions, if it knows how (see I<--expand> option above)."
24531 msgstr ""
24532
24533 #. type: textblock
24534 #: ../resize/virt-resize.pod:467
24535 msgid ""
24536 "If you give the I<--no-expand-content> option then virt-resize will not "
24537 "attempt this."
24538 msgstr ""
24539
24540 #. type: =item
24541 #: ../resize/virt-resize.pod:470
24542 msgid "B<--ntfsresize-force>"
24543 msgstr "B<--ntfsresize-force>"
24544
24545 #. type: textblock
24546 #: ../resize/virt-resize.pod:472
24547 msgid ""
24548 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24549 "the NTFS disk is marked as needing a consistency check.  You have to use "
24550 "this option if you want to resize a Windows guest multiple times without "
24551 "booting into Windows between each resize."
24552 msgstr ""
24553
24554 #. type: =item
24555 #: ../resize/virt-resize.pod:478
24556 msgid "B<--output-format> raw"
24557 msgstr "B<--output-format> raw"
24558
24559 #. type: textblock
24560 #: ../resize/virt-resize.pod:480
24561 msgid ""
24562 "Specify the format of the output disk image.  If this flag is not given then "
24563 "it is auto-detected from the image itself."
24564 msgstr ""
24565
24566 #. type: textblock
24567 #: ../resize/virt-resize.pod:486
24568 msgid ""
24569 "Note that this option I<does not create> the output format.  This option "
24570 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24571 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
24572 "SPARSE RAW FORMATS>."
24573 msgstr ""
24574
24575 #. type: textblock
24576 #: ../resize/virt-resize.pod:495
24577 msgid "Don't print the summary."
24578 msgstr ""
24579
24580 #. type: =item
24581 #: ../resize/virt-resize.pod:497
24582 msgid "B<--resize part=size>"
24583 msgstr "B<--resize розділ=розмір>"
24584
24585 #. type: textblock
24586 #: ../resize/virt-resize.pod:499
24587 msgid ""
24588 "Resize the named partition (expanding or shrinking it) so that it has the "
24589 "given size."
24590 msgstr ""
24591
24592 #. type: textblock
24593 #: ../resize/virt-resize.pod:502
24594 msgid ""
24595 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24596 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24597 "size; or as a relative number or percentage.  For example:"
24598 msgstr ""
24599
24600 #. type: verbatim
24601 #: ../resize/virt-resize.pod:508
24602 #, no-wrap
24603 msgid ""
24604 " --resize /dev/sda2=10G\n"
24605 "\n"
24606 msgstr ""
24607
24608 #. type: verbatim
24609 #: ../resize/virt-resize.pod:510
24610 #, no-wrap
24611 msgid ""
24612 " --resize /dev/sda4=90%\n"
24613 "\n"
24614 msgstr ""
24615
24616 #. type: verbatim
24617 #: ../resize/virt-resize.pod:512
24618 #, no-wrap
24619 msgid ""
24620 " --resize /dev/sda2=+1G\n"
24621 "\n"
24622 msgstr ""
24623
24624 #. type: verbatim
24625 #: ../resize/virt-resize.pod:514
24626 #, no-wrap
24627 msgid ""
24628 " --resize /dev/sda2=-200M\n"
24629 "\n"
24630 msgstr ""
24631
24632 #. type: verbatim
24633 #: ../resize/virt-resize.pod:516
24634 #, no-wrap
24635 msgid ""
24636 " --resize /dev/sda1=+128K\n"
24637 "\n"
24638 msgstr ""
24639
24640 #. type: verbatim
24641 #: ../resize/virt-resize.pod:518
24642 #, no-wrap
24643 msgid ""
24644 " --resize /dev/sda1=+10%\n"
24645 "\n"
24646 msgstr ""
24647
24648 #. type: verbatim
24649 #: ../resize/virt-resize.pod:520
24650 #, no-wrap
24651 msgid ""
24652 " --resize /dev/sda1=-10%\n"
24653 "\n"
24654 msgstr ""
24655
24656 #. type: textblock
24657 #: ../resize/virt-resize.pod:522
24658 msgid ""
24659 "You can increase the size of any partition.  Virt-resize will expand the "
24660 "direct content of the partition if it knows how (see I<--expand> below)."
24661 msgstr ""
24662
24663 #. type: textblock
24664 #: ../resize/virt-resize.pod:526
24665 msgid ""
24666 "You can only I<decrease> the size of partitions that contain filesystems or "
24667 "PVs which have already been shrunk.  Virt-resize will check this has been "
24668 "done before proceeding, or else will print an error (see also I<--resize-"
24669 "force>)."
24670 msgstr ""
24671
24672 #. type: =item
24673 #: ../resize/virt-resize.pod:533
24674 msgid "B<--resize-force part=size>"
24675 msgstr "B<--resize-force розділ=розмір>"
24676
24677 #. type: textblock
24678 #: ../resize/virt-resize.pod:535
24679 msgid ""
24680 "This is the same as I<--resize> except that it will let you decrease the "
24681 "size of any partition.  Generally this means you will lose any data which "
24682 "was at the end of the partition you shrink, but you may not care about that "
24683 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24684 "as a swap partition)."
24685 msgstr ""
24686
24687 #. type: textblock
24688 #: ../resize/virt-resize.pod:541
24689 msgid "See also the I<--ignore> option."
24690 msgstr ""
24691
24692 #. type: =item
24693 #: ../resize/virt-resize.pod:543
24694 msgid "B<--shrink part>"
24695 msgstr "B<--shrink розділ>"
24696
24697 #. type: textblock
24698 #: ../resize/virt-resize.pod:545
24699 msgid ""
24700 "Shrink the named partition until the overall disk image fits in the "
24701 "destination.  The named partition B<must> contain a filesystem or PV which "
24702 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24703 "online tools).  Virt-resize will check this and give an error if it has not "
24704 "been done."
24705 msgstr ""
24706
24707 #. type: textblock
24708 #: ../resize/virt-resize.pod:551
24709 msgid ""
24710 "The amount by which the overall disk must be shrunk (after carrying out all "
24711 "other operations requested by the user) is called the \"deficit\".  For "
24712 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24713 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24714 "would give an error unless the user specified a partition to shrink and that "
24715 "partition had more than a gigabyte of free space."
24716 msgstr ""
24717
24718 #. type: =head1
24719 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
24720 msgid "MACHINE READABLE OUTPUT"
24721 msgstr ""
24722
24723 #. type: textblock
24724 #: ../resize/virt-resize.pod:571
24725 msgid ""
24726 "The I<--machine-readable> option can be used to make the output more machine "
24727 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24728 "etc."
24729 msgstr ""
24730
24731 #. type: textblock
24732 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
24733 msgid "There are two ways to use this option."
24734 msgstr ""
24735
24736 #. type: textblock
24737 #: ../resize/virt-resize.pod:577
24738 msgid ""
24739 "Firstly use the option on its own to query the capabilities of the virt-"
24740 "resize binary.  Typical output looks like this:"
24741 msgstr ""
24742
24743 #. type: verbatim
24744 #: ../resize/virt-resize.pod:580
24745 #, no-wrap
24746 msgid ""
24747 " $ virt-resize --machine-readable\n"
24748 " virt-resize\n"
24749 " ntfsresize-force\n"
24750 " 32bitok\n"
24751 " ntfs\n"
24752 " btrfs\n"
24753 "\n"
24754 msgstr ""
24755
24756 #. type: textblock
24757 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
24758 msgid ""
24759 "A list of features is printed, one per line, and the program exits with "
24760 "status 0."
24761 msgstr ""
24762
24763 #. type: textblock
24764 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
24765 msgid ""
24766 "Secondly use the option in conjunction with other options to make the "
24767 "regular program output more machine friendly."
24768 msgstr ""
24769
24770 #. type: textblock
24771 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
24772 msgid "At the moment this means:"
24773 msgstr ""
24774
24775 #. type: textblock
24776 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
24777 msgid ""
24778 "Progress bar messages can be parsed from stdout by looking for this regular "
24779 "expression:"
24780 msgstr ""
24781
24782 #. type: verbatim
24783 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
24784 #, no-wrap
24785 msgid ""
24786 " ^[0-9]+/[0-9]+$\n"
24787 "\n"
24788 msgstr ""
24789
24790 #. type: textblock
24791 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
24792 msgid ""
24793 "The calling program should treat messages sent to stdout (except for "
24794 "progress bar messages) as status messages.  They can be logged and/or "
24795 "displayed to the user."
24796 msgstr ""
24797
24798 #. type: textblock
24799 #: ../resize/virt-resize.pod:612
24800 msgid ""
24801 "The calling program should treat messages sent to stderr as error messages.  "
24802 "In addition, virt-resize exits with a non-zero status code if there was a "
24803 "fatal error."
24804 msgstr ""
24805
24806 #. type: textblock
24807 #: ../resize/virt-resize.pod:618
24808 msgid ""
24809 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24810 "readable> option and will return an error."
24811 msgstr ""
24812
24813 #. type: =head2
24814 #: ../resize/virt-resize.pod:623
24815 msgid "\"Partition 1 does not end on cylinder boundary.\""
24816 msgstr ""
24817
24818 #. type: textblock
24819 #: ../resize/virt-resize.pod:625
24820 msgid ""
24821 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24822 "alignment> parameter).  Usually this means the partitions will not be "
24823 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24824 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24825 "drives.  Alignment of partitions to cylinders is not required by any modern "
24826 "operating system."
24827 msgstr ""
24828
24829 #. type: =head2
24830 #: ../resize/virt-resize.pod:632
24831 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24832 msgstr ""
24833
24834 #. type: textblock
24835 #: ../resize/virt-resize.pod:634
24836 msgid ""
24837 "In Windows Vista and later versions, Microsoft switched to using a separate "
24838 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24839 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24840 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24841 "the second partition (ie. C: drive)  should work."
24842 msgstr ""
24843
24844 #. type: textblock
24845 #: ../resize/virt-resize.pod:641
24846 msgid ""
24847 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24848 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24849 "it find errors) is nothing to worry about."
24850 msgstr ""
24851
24852 #. type: =head2
24853 #: ../resize/virt-resize.pod:645
24854 msgid "GUEST BOOT STUCK AT \"GRUB\""
24855 msgstr ""
24856
24857 #. type: textblock
24858 #: ../resize/virt-resize.pod:647
24859 msgid ""
24860 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24861 "printing C<GRUB> on the console, try reinstalling grub."
24862 msgstr ""
24863
24864 #. type: verbatim
24865 #: ../resize/virt-resize.pod:650
24866 #, no-wrap
24867 msgid ""
24868 " guestfish -i -a newdisk\n"
24869 " ><fs> cat /boot/grub/device.map\n"
24870 " # check the contents of this file are sensible or\n"
24871 " # edit the file if necessary\n"
24872 " ><fs> grub-install / /dev/vda\n"
24873 " ><fs> exit\n"
24874 "\n"
24875 msgstr ""
24876
24877 #. type: textblock
24878 #: ../resize/virt-resize.pod:657
24879 msgid ""
24880 "For more flexible guest reconfiguration, including if you need to specify "
24881 "other parameters to grub-install, use L<virt-rescue(1)>."
24882 msgstr ""
24883
24884 #. type: =head1
24885 #: ../resize/virt-resize.pod:660
24886 msgid "ALTERNATIVE TOOLS"
24887 msgstr ""
24888
24889 #. type: textblock
24890 #: ../resize/virt-resize.pod:662
24891 msgid ""
24892 "There are several proprietary tools for resizing partitions.  We won't "
24893 "mention any here."
24894 msgstr ""
24895
24896 #. type: textblock
24897 #: ../resize/virt-resize.pod:665
24898 msgid ""
24899 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24900 "operations on disk images.  They can resize and move partitions, but I don't "
24901 "think they can do anything with the contents, and they certainly don't "
24902 "understand LVM."
24903 msgstr ""
24904
24905 #. type: textblock
24906 #: ../resize/virt-resize.pod:670
24907 msgid ""
24908 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24909 "but at a much lower level.  You will probably end up hand-calculating sector "
24910 "offsets, which is something that virt-resize was designed to avoid.  If you "
24911 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24912 "I<--debug> flag."
24913 msgstr ""
24914
24915 #. type: textblock
24916 #: ../resize/virt-resize.pod:690
24917 msgid ""
24918 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24919 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24920 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24921 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24922 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24923 msgstr ""
24924
24925 #. type: textblock
24926 #: ../ruby/examples/guestfs-ruby.pod:5
24927 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24928 msgstr ""
24929
24930 #. type: verbatim
24931 #: ../ruby/examples/guestfs-ruby.pod:9
24932 #, no-wrap
24933 msgid ""
24934 " require 'guestfs'\n"
24935 " g = Guestfs::Guestfs.new()\n"
24936 " g.add_drive_opts(\"disk.img\",\n"
24937 "                  :readonly => 1, :format => \"raw\")\n"
24938 " g.launch()\n"
24939 "\n"
24940 msgstr ""
24941
24942 #. type: textblock
24943 #: ../ruby/examples/guestfs-ruby.pod:17
24944 msgid ""
24945 "This manual page documents how to call libguestfs from the Ruby programming "
24946 "language.  This page just documents the differences from the C API and gives "
24947 "some examples.  If you are not familiar with using libguestfs, you also need "
24948 "to read L<guestfs(3)>."
24949 msgstr ""
24950
24951 #. type: textblock
24952 #: ../ruby/examples/guestfs-ruby.pod:24
24953 msgid ""
24954 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24955 "This has a single parameter which is the error message (a string)."
24956 msgstr ""
24957
24958 #. type: textblock
24959 #: ../ruby/examples/guestfs-ruby.pod:38
24960 msgid ""
24961 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24962 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24963 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24964 msgstr ""
24965
24966 #. type: textblock
24967 #: ../sparsify/virt-sparsify.pod:5
24968 msgid "virt-sparsify - Make a virtual machine disk sparse"
24969 msgstr ""
24970
24971 #. type: verbatim
24972 #: ../sparsify/virt-sparsify.pod:9
24973 #, no-wrap
24974 msgid ""
24975 " virt-sparsify [--options] indisk outdisk\n"
24976 "\n"
24977 msgstr ""
24978
24979 #. type: textblock
24980 #: ../sparsify/virt-sparsify.pod:13
24981 msgid ""
24982 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24983 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24984 "the disk image can be converted back to free space on the host."
24985 msgstr ""
24986
24987 #. type: textblock
24988 #: ../sparsify/virt-sparsify.pod:18
24989 msgid ""
24990 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24991 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24992 msgstr ""
24993
24994 #. type: textblock
24995 #: ../sparsify/virt-sparsify.pod:21
24996 msgid ""
24997 "Virt-sparsify can also convert between some disk formats, for example "
24998 "converting a raw disk image to a thin-provisioned qcow2 image."
24999 msgstr ""
25000
25001 #. type: textblock
25002 #: ../sparsify/virt-sparsify.pod:24
25003 msgid ""
25004 "Virt-sparsify can operate on any disk image, not just ones from virtual "
25005 "machines.  If a virtual machine has more than one attached disk, you must "
25006 "sparsify each one separately."
25007 msgstr ""
25008
25009 #. type: =head2
25010 #: ../sparsify/virt-sparsify.pod:28
25011 msgid "IMPORTANT LIMITATIONS"
25012 msgstr ""
25013
25014 #. type: textblock
25015 #: ../sparsify/virt-sparsify.pod:34
25016 msgid ""
25017 "Virt-sparsify does not do in-place modifications.  It copies from a source "
25018 "image to a destination image, leaving the source unchanged.  I<Check that "
25019 "the sparsification was successful before deleting the source image>."
25020 msgstr ""
25021
25022 #. type: textblock
25023 #: ../sparsify/virt-sparsify.pod:41
25024 msgid "The virtual machine I<must be shut down> before using this tool."
25025 msgstr ""
25026
25027 #. type: textblock
25028 #: ../sparsify/virt-sparsify.pod:45
25029 msgid ""
25030 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
25031 "(1 temporary copy + 1 destination image).  This is in the worst case and "
25032 "usually much less space is required."
25033 msgstr ""
25034
25035 #. type: textblock
25036 #: ../sparsify/virt-sparsify.pod:51
25037 msgid ""
25038 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
25039 msgstr ""
25040
25041 #. type: textblock
25042 #: ../sparsify/virt-sparsify.pod:56
25043 msgid "Virt-sparsify cannot handle encrypted disks."
25044 msgstr ""
25045
25046 #. type: textblock
25047 #: ../sparsify/virt-sparsify.pod:60
25048 msgid ""
25049 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
25050 "this space is often used for critical items like bootloaders so it's not "
25051 "really unused."
25052 msgstr ""
25053
25054 #. type: textblock
25055 #: ../sparsify/virt-sparsify.pod:66
25056 msgid ""
25057 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
25058 "to do this unless we can be sure there is no hibernation data, so at the "
25059 "moment swap partitions are ignored."
25060 msgstr ""
25061
25062 #. type: textblock
25063 #: ../sparsify/virt-sparsify.pod:72
25064 msgid ""
25065 "You may also want to read the manual pages for the associated tools L<virt-"
25066 "filesystems(1)> and L<virt-df(1)> before starting."
25067 msgstr ""
25068
25069 #. type: textblock
25070 #: ../sparsify/virt-sparsify.pod:77
25071 msgid "Typical usage is:"
25072 msgstr ""
25073
25074 #. type: verbatim
25075 #: ../sparsify/virt-sparsify.pod:79
25076 #, no-wrap
25077 msgid ""
25078 " virt-sparsify indisk outdisk\n"
25079 "\n"
25080 msgstr ""
25081
25082 #. type: textblock
25083 #: ../sparsify/virt-sparsify.pod:81
25084 msgid ""
25085 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
25086 "is created, or overwritten if it already exists.  The format of the input "
25087 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25088 msgstr ""
25089
25090 #. type: textblock
25091 #: ../sparsify/virt-sparsify.pod:86
25092 msgid "To convert between formats, use the I<--convert> option:"
25093 msgstr ""
25094
25095 #. type: verbatim
25096 #: ../sparsify/virt-sparsify.pod:88
25097 #, no-wrap
25098 msgid ""
25099 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25100 "\n"
25101 msgstr ""
25102
25103 #. type: textblock
25104 #: ../sparsify/virt-sparsify.pod:90
25105 msgid ""
25106 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25107 "can find within the source disk image.  You can get it to ignore (don't zero "
25108 "free space on) certain filesystems by doing:"
25109 msgstr ""
25110
25111 #. type: verbatim
25112 #: ../sparsify/virt-sparsify.pod:94
25113 #, no-wrap
25114 msgid ""
25115 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25116 "\n"
25117 msgstr ""
25118
25119 #. type: textblock
25120 #: ../sparsify/virt-sparsify.pod:96
25121 msgid ""
25122 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25123 msgstr ""
25124
25125 #. type: =item
25126 #: ../sparsify/virt-sparsify.pod:107
25127 msgid "B<--convert> raw"
25128 msgstr ""
25129
25130 #. type: =item
25131 #: ../sparsify/virt-sparsify.pod:109
25132 msgid "B<--convert> qcow2"
25133 msgstr ""
25134
25135 #. type: =item
25136 #: ../sparsify/virt-sparsify.pod:111
25137 msgid "B<--convert> [other formats]"
25138 msgstr ""
25139
25140 #. type: textblock
25141 #: ../sparsify/virt-sparsify.pod:113
25142 msgid ""
25143 "Use C<output-format> as the format for the destination image.  If this is "
25144 "not specified, then the input format is used."
25145 msgstr ""
25146
25147 #. type: textblock
25148 #: ../sparsify/virt-sparsify.pod:116
25149 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
25150 msgstr ""
25151
25152 #. type: textblock
25153 #: ../sparsify/virt-sparsify.pod:118
25154 msgid ""
25155 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25156 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
25157 msgstr ""
25158
25159 #. type: textblock
25160 #: ../sparsify/virt-sparsify.pod:122
25161 msgid ""
25162 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25163 "sparsify doesn't need to try to guess the input format."
25164 msgstr ""
25165
25166 #. type: =item
25167 #: ../sparsify/virt-sparsify.pod:127
25168 msgid "B<--format> qcow2"
25169 msgstr ""
25170
25171 #. type: =item
25172 #: ../sparsify/virt-sparsify.pod:135
25173 msgid "B<--ignore> filesystem"
25174 msgstr ""
25175
25176 #. type: =item
25177 #: ../sparsify/virt-sparsify.pod:137
25178 msgid "B<--ignore> volgroup"
25179 msgstr ""
25180
25181 #. type: textblock
25182 #: ../sparsify/virt-sparsify.pod:139
25183 msgid ""
25184 "Ignore the named filesystem.  Free space on the filesystem will not be "
25185 "zeroed, but existing blocks of zeroes will still be sparsified."
25186 msgstr ""
25187
25188 #. type: textblock
25189 #: ../sparsify/virt-sparsify.pod:142
25190 msgid ""
25191 "In the second form, this ignores the named volume group.  Use the volume "
25192 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25193 msgstr ""
25194
25195 #. type: textblock
25196 #: ../sparsify/virt-sparsify.pod:157
25197 msgid "This disables progress bars and other unnecessary output."
25198 msgstr ""
25199
25200 #. type: textblock
25201 #: ../sparsify/virt-sparsify.pod:179
25202 msgid ""
25203 "The I<--machine-readable> option can be used to make the output more machine "
25204 "friendly, which is useful when calling virt-sparsify from other programs, "
25205 "GUIs etc."
25206 msgstr ""
25207
25208 #. type: textblock
25209 #: ../sparsify/virt-sparsify.pod:185
25210 msgid ""
25211 "Firstly use the option on its own to query the capabilities of the virt-"
25212 "sparsify binary.  Typical output looks like this:"
25213 msgstr ""
25214
25215 #. type: verbatim
25216 #: ../sparsify/virt-sparsify.pod:188
25217 #, no-wrap
25218 msgid ""
25219 " $ virt-sparsify --machine-readable\n"
25220 " virt-sparsify\n"
25221 " ntfs\n"
25222 " btrfs\n"
25223 "\n"
25224 msgstr ""
25225
25226 #. type: textblock
25227 #: ../sparsify/virt-sparsify.pod:218
25228 msgid ""
25229 "The calling program should treat messages sent to stderr as error messages.  "
25230 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25231 "fatal error."
25232 msgstr ""
25233
25234 #. type: textblock
25235 #: ../sparsify/virt-sparsify.pod:224
25236 msgid ""
25237 "All versions of virt-sparsify have supported the I<--machine-readable> "
25238 "option."
25239 msgstr ""
25240
25241 #. type: textblock
25242 #: ../sparsify/virt-sparsify.pod:238
25243 msgid ""
25244 "Location of the temporary directory used for the potentially large temporary "
25245 "overlay file."
25246 msgstr ""
25247
25248 #. type: textblock
25249 #: ../sparsify/virt-sparsify.pod:241
25250 msgid ""
25251 "You should ensure there is enough free space in the worst case for a full "
25252 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25253 "to another directory that has enough space."
25254 msgstr ""
25255
25256 #. type: textblock
25257 #: ../sparsify/virt-sparsify.pod:245
25258 msgid "This defaults to C</tmp>."
25259 msgstr ""
25260
25261 #. type: textblock
25262 #: ../sparsify/virt-sparsify.pod:249
25263 msgid ""
25264 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25265 msgstr ""
25266
25267 #. type: textblock
25268 #: ../sparsify/virt-sparsify.pod:253
25269 msgid ""
25270 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25271 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25272 "(1)>, L<http://libguestfs.org/>."
25273 msgstr ""
25274
25275 #. type: =head2
25276 #: ../src/guestfs-actions.pod:1
25277 msgid "guestfs_add_cdrom"
25278 msgstr ""
25279
25280 #. type: verbatim
25281 #: ../src/guestfs-actions.pod:3
25282 #, no-wrap
25283 msgid ""
25284 " int\n"
25285 " guestfs_add_cdrom (guestfs_h *g,\n"
25286 "                    const char *filename);\n"
25287 "\n"
25288 msgstr ""
25289
25290 #. type: textblock
25291 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
25292 #: ../src/guestfs-actions.pod:323
25293 msgid ""
25294 "I<This function is deprecated.> In new code, use the L</"
25295 "guestfs_add_drive_opts> call instead."
25296 msgstr ""
25297
25298 #. type: textblock
25299 #: ../src/guestfs-actions.pod:24
25300 msgid ""
25301 "This call checks for the existence of C<filename>.  This stops you from "
25302 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25303 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25304 "instead."
25305 msgstr ""
25306
25307 #. type: textblock
25308 #: ../src/guestfs-actions.pod:31
25309 msgid ""
25310 "If you just want to add an ISO file (often you use this as an efficient way "
25311 "to transfer large files into the guest), then you should probably use "
25312 "C<guestfs_add_drive_ro> instead."
25313 msgstr ""
25314
25315 #. type: textblock
25316 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
25317 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
25318 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
25319 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
25320 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
25321 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
25322 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
25323 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
25324 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
25325 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
25326 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
25327 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
25328 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
25329 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
25330 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
25331 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
25332 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
25333 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
25334 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
25335 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
25336 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
25337 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
25338 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
25339 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
25340 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
25341 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103
25342 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4317
25343 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4344
25344 #: ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4373
25345 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4481
25346 #: ../src/guestfs-actions.pod:4501 ../src/guestfs-actions.pod:4518
25347 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558
25348 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612
25349 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4666
25350 #: ../src/guestfs-actions.pod:4678 ../src/guestfs-actions.pod:4711
25351 #: ../src/guestfs-actions.pod:4727 ../src/guestfs-actions.pod:4740
25352 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:4772
25353 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4885
25354 #: ../src/guestfs-actions.pod:4898 ../src/guestfs-actions.pod:4949
25355 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4985
25356 #: ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5015
25357 #: ../src/guestfs-actions.pod:5029 ../src/guestfs-actions.pod:5046
25358 #: ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5088
25359 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5224
25360 #: ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:5274
25361 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5305
25362 #: ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:5335
25363 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:5365
25364 #: ../src/guestfs-actions.pod:5397 ../src/guestfs-actions.pod:5423
25365 #: ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5482
25366 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5513
25367 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5615
25368 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5705
25369 #: ../src/guestfs-actions.pod:5733 ../src/guestfs-actions.pod:5750
25370 #: ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5905
25371 #: ../src/guestfs-actions.pod:5962 ../src/guestfs-actions.pod:5984
25372 #: ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6054
25373 #: ../src/guestfs-actions.pod:6120 ../src/guestfs-actions.pod:6137
25374 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6164
25375 #: ../src/guestfs-actions.pod:6453 ../src/guestfs-actions.pod:6472
25376 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:6505
25377 #: ../src/guestfs-actions.pod:6517 ../src/guestfs-actions.pod:6531
25378 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6557
25379 #: ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:6591
25380 #: ../src/guestfs-actions.pod:6610 ../src/guestfs-actions.pod:6629
25381 #: ../src/guestfs-actions.pod:6659 ../src/guestfs-actions.pod:6677
25382 #: ../src/guestfs-actions.pod:6700 ../src/guestfs-actions.pod:6718
25383 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:6758
25384 #: ../src/guestfs-actions.pod:6777 ../src/guestfs-actions.pod:6794
25385 #: ../src/guestfs-actions.pod:6813 ../src/guestfs-actions.pod:6841
25386 #: ../src/guestfs-actions.pod:6865 ../src/guestfs-actions.pod:6884
25387 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6924
25388 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6958
25389 #: ../src/guestfs-actions.pod:6977 ../src/guestfs-actions.pod:7021
25390 #: ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7078
25391 #: ../src/guestfs-actions.pod:7190 ../src/guestfs-actions.pod:7311
25392 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7336
25393 #: ../src/guestfs-actions.pod:7349 ../src/guestfs-actions.pod:7371
25394 #: ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7397
25395 #: ../src/guestfs-actions.pod:7410 ../src/guestfs-actions.pod:7425
25396 #: ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7501
25397 #: ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7533
25398 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563
25399 #: ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7619
25400 #: ../src/guestfs-actions.pod:7633 ../src/guestfs-actions.pod:7674
25401 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7705
25402 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7775
25403 #: ../src/guestfs-actions.pod:7891 ../src/guestfs-actions.pod:7906
25404 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7975
25405 #: ../src/guestfs-actions.pod:7988 ../src/guestfs-actions.pod:8033
25406 #: ../src/guestfs-actions.pod:8073 ../src/guestfs-actions.pod:8129
25407 #: ../src/guestfs-actions.pod:8149 ../src/guestfs-actions.pod:8182
25408 #: ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8269
25409 #: ../src/guestfs-actions.pod:8295
25410 msgid "This function returns 0 on success or -1 on error."
25411 msgstr ""
25412
25413 #. type: textblock
25414 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
25415 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
25416 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
25417 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110
25418 #: ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:6679
25419 #: ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6945
25420 #: ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7552
25421 #: ../src/guestfs-actions.pod:8075
25422 msgid "(Added in 0.3)"
25423 msgstr "(Додано у 0.3)"
25424
25425 #. type: =head2
25426 #: ../src/guestfs-actions.pod:41
25427 msgid "guestfs_add_domain"
25428 msgstr ""
25429
25430 #. type: verbatim
25431 #: ../src/guestfs-actions.pod:43
25432 #, no-wrap
25433 msgid ""
25434 " int\n"
25435 " guestfs_add_domain (guestfs_h *g,\n"
25436 "                     const char *dom,\n"
25437 "                     ...);\n"
25438 "\n"
25439 msgstr ""
25440
25441 #. type: textblock
25442 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
25443 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
25444 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
25445 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
25446 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
25447 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5409
25448 #: ../src/guestfs-actions.pod:5626
25449 msgid ""
25450 "You may supply a list of optional arguments to this call.  Use zero or more "
25451 "of the following pairs of parameters, and terminate the list with C<-1> on "
25452 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25453 msgstr ""
25454
25455 #. type: verbatim
25456 #: ../src/guestfs-actions.pod:53
25457 #, no-wrap
25458 msgid ""
25459 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25460 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25461 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25462 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25463 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25464 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25465 "\n"
25466 msgstr ""
25467
25468 #. type: textblock
25469 #: ../src/guestfs-actions.pod:60
25470 msgid ""
25471 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25472 "It works by connecting to libvirt, requesting the domain and domain XML from "
25473 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25474 "one."
25475 msgstr ""
25476
25477 #. type: textblock
25478 #: ../src/guestfs-actions.pod:141
25479 msgid ""
25480 "The other optional parameters are passed directly through to "
25481 "C<guestfs_add_drive_opts>."
25482 msgstr ""
25483
25484 #. type: textblock
25485 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
25486 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
25487 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
25488 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
25489 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
25490 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
25491 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
25492 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
25493 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
25494 #: ../src/guestfs-actions.pod:5585 ../src/guestfs-actions.pod:5802
25495 #: ../src/guestfs-actions.pod:6040 ../src/guestfs-actions.pod:6234
25496 #: ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:7660
25497 #: ../src/guestfs-actions.pod:8086 ../src/guestfs-actions.pod:8099
25498 #: ../src/guestfs-actions.pod:8112
25499 msgid "On error this function returns -1."
25500 msgstr ""
25501
25502 #. type: textblock
25503 #: ../src/guestfs-actions.pod:146
25504 msgid "(Added in 1.7.4)"
25505 msgstr "(Додано у 1.7.4)"
25506
25507 #. type: =head2
25508 #: ../src/guestfs-actions.pod:148
25509 msgid "guestfs_add_domain_va"
25510 msgstr ""
25511
25512 #. type: verbatim
25513 #: ../src/guestfs-actions.pod:150
25514 #, no-wrap
25515 msgid ""
25516 " int\n"
25517 " guestfs_add_domain_va (guestfs_h *g,\n"
25518 "                        const char *dom,\n"
25519 "                        va_list args);\n"
25520 "\n"
25521 msgstr ""
25522
25523 #. type: textblock
25524 #: ../src/guestfs-actions.pod:155
25525 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25526 msgstr ""
25527
25528 #. type: textblock
25529 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
25530 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
25531 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
25532 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
25533 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
25534 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
25535 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
25536 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
25537 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
25538 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
25539 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5177
25540 #: ../src/guestfs-actions.pod:5437 ../src/guestfs-actions.pod:5449
25541 #: ../src/guestfs-actions.pod:5675 ../src/guestfs-actions.pod:5686
25542 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25543 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25544
25545 #. type: =head2
25546 #: ../src/guestfs-actions.pod:159
25547 msgid "guestfs_add_domain_argv"
25548 msgstr "guestfs_add_domain_argv"
25549
25550 #. type: verbatim
25551 #: ../src/guestfs-actions.pod:161
25552 #, no-wrap
25553 msgid ""
25554 " int\n"
25555 " guestfs_add_domain_argv (guestfs_h *g,\n"
25556 "                          const char *dom,\n"
25557 "                          const struct guestfs_add_domain_argv *optargs);\n"
25558 "\n"
25559 msgstr ""
25560
25561 #. type: textblock
25562 #: ../src/guestfs-actions.pod:166
25563 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25564 msgstr ""
25565
25566 #. type: =head2
25567 #: ../src/guestfs-actions.pod:170
25568 msgid "guestfs_add_drive"
25569 msgstr ""
25570
25571 #. type: verbatim
25572 #: ../src/guestfs-actions.pod:172
25573 #, no-wrap
25574 msgid ""
25575 " int\n"
25576 " guestfs_add_drive (guestfs_h *g,\n"
25577 "                    const char *filename);\n"
25578 "\n"
25579 msgstr ""
25580
25581 #. type: textblock
25582 #: ../src/guestfs-actions.pod:176
25583 msgid ""
25584 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25585 "optional parameters, so the disk is added writable, with the format being "
25586 "detected automatically."
25587 msgstr ""
25588
25589 #. type: textblock
25590 #: ../src/guestfs-actions.pod:180
25591 msgid ""
25592 "Automatic detection of the format opens you up to a potential security hole "
25593 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25594 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25595 "you should think about replacing calls to this function with calls to "
25596 "C<guestfs_add_drive_opts>, and specifying the format."
25597 msgstr ""
25598
25599 #. type: =head2
25600 #: ../src/guestfs-actions.pod:191
25601 msgid "guestfs_add_drive_opts"
25602 msgstr ""
25603
25604 #. type: verbatim
25605 #: ../src/guestfs-actions.pod:193
25606 #, no-wrap
25607 msgid ""
25608 " int\n"
25609 " guestfs_add_drive_opts (guestfs_h *g,\n"
25610 "                         const char *filename,\n"
25611 "                         ...);\n"
25612 "\n"
25613 msgstr ""
25614
25615 #. type: verbatim
25616 #: ../src/guestfs-actions.pod:203
25617 #, no-wrap
25618 msgid ""
25619 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25620 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25621 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25622 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25623 "\n"
25624 msgstr ""
25625
25626 #. type: textblock
25627 #: ../src/guestfs-actions.pod:233
25628 msgid ""
25629 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25630 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25631 "Possible formats include C<raw> and C<qcow2>."
25632 msgstr ""
25633
25634 #. type: textblock
25635 #: ../src/guestfs-actions.pod:244
25636 msgid ""
25637 "This rarely-used option lets you emulate the behaviour of the deprecated "
25638 "C<guestfs_add_drive_with_if> call (q.v.)"
25639 msgstr ""
25640
25641 #. type: textblock
25642 #: ../src/guestfs-actions.pod:256
25643 msgid "(Added in 1.5.23)"
25644 msgstr "(Додано у 1.5.23)"
25645
25646 #. type: =head2
25647 #: ../src/guestfs-actions.pod:258
25648 msgid "guestfs_add_drive_opts_va"
25649 msgstr ""
25650
25651 #. type: verbatim
25652 #: ../src/guestfs-actions.pod:260
25653 #, no-wrap
25654 msgid ""
25655 " int\n"
25656 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25657 "                            const char *filename,\n"
25658 "                            va_list args);\n"
25659 "\n"
25660 msgstr ""
25661
25662 #. type: textblock
25663 #: ../src/guestfs-actions.pod:265
25664 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25665 msgstr ""
25666
25667 #. type: =head2
25668 #: ../src/guestfs-actions.pod:269
25669 msgid "guestfs_add_drive_opts_argv"
25670 msgstr ""
25671
25672 #. type: verbatim
25673 #: ../src/guestfs-actions.pod:271
25674 #, no-wrap
25675 msgid ""
25676 " int\n"
25677 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25678 "                              const char *filename,\n"
25679 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
25680 "\n"
25681 msgstr ""
25682
25683 #. type: textblock
25684 #: ../src/guestfs-actions.pod:276
25685 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25686 msgstr ""
25687
25688 #. type: =head2
25689 #: ../src/guestfs-actions.pod:280
25690 msgid "guestfs_add_drive_ro"
25691 msgstr ""
25692
25693 #. type: verbatim
25694 #: ../src/guestfs-actions.pod:282
25695 #, no-wrap
25696 msgid ""
25697 " int\n"
25698 " guestfs_add_drive_ro (guestfs_h *g,\n"
25699 "                       const char *filename);\n"
25700 "\n"
25701 msgstr ""
25702
25703 #. type: textblock
25704 #: ../src/guestfs-actions.pod:286
25705 msgid ""
25706 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25707 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25708 "disk is added read-only, with the format being detected automatically."
25709 msgstr ""
25710
25711 #. type: textblock
25712 #: ../src/guestfs-actions.pod:293
25713 msgid "(Added in 1.0.38)"
25714 msgstr "(Додано у 1.0.38)"
25715
25716 #. type: =head2
25717 #: ../src/guestfs-actions.pod:295
25718 msgid "guestfs_add_drive_ro_with_if"
25719 msgstr ""
25720
25721 #. type: verbatim
25722 #: ../src/guestfs-actions.pod:297
25723 #, no-wrap
25724 msgid ""
25725 " int\n"
25726 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25727 "                               const char *filename,\n"
25728 "                               const char *iface);\n"
25729 "\n"
25730 msgstr ""
25731
25732 #. type: textblock
25733 #: ../src/guestfs-actions.pod:309
25734 msgid ""
25735 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25736 "QEMU interface emulation to use at run time."
25737 msgstr ""
25738
25739 #. type: textblock
25740 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
25741 #: ../src/guestfs-actions.pod:2881
25742 msgid "(Added in 1.0.84)"
25743 msgstr "(Додано у 1.0.84)"
25744
25745 #. type: =head2
25746 #: ../src/guestfs-actions.pod:316
25747 msgid "guestfs_add_drive_with_if"
25748 msgstr ""
25749
25750 #. type: verbatim
25751 #: ../src/guestfs-actions.pod:318
25752 #, no-wrap
25753 msgid ""
25754 " int\n"
25755 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25756 "                            const char *filename,\n"
25757 "                            const char *iface);\n"
25758 "\n"
25759 msgstr ""
25760
25761 #. type: textblock
25762 #: ../src/guestfs-actions.pod:330
25763 msgid ""
25764 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25765 "QEMU interface emulation to use at run time."
25766 msgstr ""
25767
25768 #. type: =head2
25769 #: ../src/guestfs-actions.pod:337
25770 msgid "guestfs_aug_clear"
25771 msgstr ""
25772
25773 #. type: verbatim
25774 #: ../src/guestfs-actions.pod:339
25775 #, no-wrap
25776 msgid ""
25777 " int\n"
25778 " guestfs_aug_clear (guestfs_h *g,\n"
25779 "                    const char *augpath);\n"
25780 "\n"
25781 msgstr ""
25782
25783 #. type: textblock
25784 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
25785 msgid "(Added in 1.3.4)"
25786 msgstr "(Додано у 1.3.4)"
25787
25788 #. type: =head2
25789 #: ../src/guestfs-actions.pod:350
25790 msgid "guestfs_aug_close"
25791 msgstr ""
25792
25793 #. type: verbatim
25794 #: ../src/guestfs-actions.pod:352
25795 #, no-wrap
25796 msgid ""
25797 " int\n"
25798 " guestfs_aug_close (guestfs_h *g);\n"
25799 "\n"
25800 msgstr ""
25801
25802 #. type: textblock
25803 #: ../src/guestfs-actions.pod:355
25804 msgid ""
25805 "Close the current Augeas handle and free up any resources used by it.  After "
25806 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25807 "any other Augeas functions."
25808 msgstr ""
25809
25810 #. type: textblock
25811 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
25812 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
25813 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
25814 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
25815 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
25816 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
25817 #: ../src/guestfs-actions.pod:6311
25818 msgid "(Added in 0.7)"
25819 msgstr "(Додано у 0.7)"
25820
25821 #. type: =head2
25822 #: ../src/guestfs-actions.pod:364
25823 msgid "guestfs_aug_defnode"
25824 msgstr ""
25825
25826 #. type: verbatim
25827 #: ../src/guestfs-actions.pod:366
25828 #, no-wrap
25829 msgid ""
25830 " struct guestfs_int_bool *\n"
25831 " guestfs_aug_defnode (guestfs_h *g,\n"
25832 "                      const char *name,\n"
25833 "                      const char *expr,\n"
25834 "                      const char *val);\n"
25835 "\n"
25836 msgstr ""
25837
25838 #. type: textblock
25839 #: ../src/guestfs-actions.pod:375
25840 msgid ""
25841 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25842 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25843 "containing that single node."
25844 msgstr ""
25845
25846 #. type: textblock
25847 #: ../src/guestfs-actions.pod:383
25848 msgid ""
25849 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25850 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25851 msgstr ""
25852
25853 #. type: =head2
25854 #: ../src/guestfs-actions.pod:389
25855 msgid "guestfs_aug_defvar"
25856 msgstr ""
25857
25858 #. type: verbatim
25859 #: ../src/guestfs-actions.pod:391
25860 #, no-wrap
25861 msgid ""
25862 " int\n"
25863 " guestfs_aug_defvar (guestfs_h *g,\n"
25864 "                     const char *name,\n"
25865 "                     const char *expr);\n"
25866 "\n"
25867 msgstr ""
25868
25869 #. type: =head2
25870 #: ../src/guestfs-actions.pod:407
25871 msgid "guestfs_aug_get"
25872 msgstr "guestfs_aug_get"
25873
25874 #. type: verbatim
25875 #: ../src/guestfs-actions.pod:409
25876 #, no-wrap
25877 msgid ""
25878 " char *\n"
25879 " guestfs_aug_get (guestfs_h *g,\n"
25880 "                  const char *augpath);\n"
25881 "\n"
25882 msgstr ""
25883 " char *\n"
25884 " guestfs_aug_get (guestfs_h *g,\n"
25885 "                  const char *augpath);\n"
25886 "\n"
25887
25888 #. type: textblock
25889 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
25890 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
25891 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
25892 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
25893 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
25894 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
25895 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
25896 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
25897 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
25898 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
25899 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
25900 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
25901 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
25902 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636
25903 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676
25904 #: ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4650
25905 #: ../src/guestfs-actions.pod:4817 ../src/guestfs-actions.pod:4927
25906 #: ../src/guestfs-actions.pod:5820 ../src/guestfs-actions.pod:6021
25907 #: ../src/guestfs-actions.pod:6209 ../src/guestfs-actions.pod:6387
25908 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:7096
25909 #: ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7136
25910 #: ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7834
25911 #: ../src/guestfs-actions.pod:7853 ../src/guestfs-actions.pod:7871
25912 #: ../src/guestfs-actions.pod:8045 ../src/guestfs-actions.pod:8359
25913 msgid ""
25914 "This function returns a string, or NULL on error.  I<The caller must free "
25915 "the returned string after use>."
25916 msgstr ""
25917
25918 #. type: =head2
25919 #: ../src/guestfs-actions.pod:421
25920 msgid "guestfs_aug_init"
25921 msgstr "guestfs_aug_init"
25922
25923 #. type: verbatim
25924 #: ../src/guestfs-actions.pod:423
25925 #, no-wrap
25926 msgid ""
25927 " int\n"
25928 " guestfs_aug_init (guestfs_h *g,\n"
25929 "                   const char *root,\n"
25930 "                   int flags);\n"
25931 "\n"
25932 msgstr ""
25933 " int\n"
25934 " guestfs_aug_init (guestfs_h *g,\n"
25935 "                   const char *root,\n"
25936 "                   int flags);\n"
25937 "\n"
25938
25939 #. type: textblock
25940 #: ../src/guestfs-actions.pod:432
25941 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25942 msgstr ""
25943
25944 #. type: textblock
25945 #: ../src/guestfs-actions.pod:457
25946 msgid ""
25947 "This option is only useful when debugging Augeas lenses.  Use of this option "
25948 "may require additional memory for the libguestfs appliance.  You may need to "
25949 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25950 "C<guestfs_set_memsize>."
25951 msgstr ""
25952
25953 #. type: textblock
25954 #: ../src/guestfs-actions.pod:472
25955 msgid "Do not load the tree in C<guestfs_aug_init>."
25956 msgstr ""
25957
25958 #. type: textblock
25959 #: ../src/guestfs-actions.pod:476
25960 msgid "To close the handle, you can call C<guestfs_aug_close>."
25961 msgstr ""
25962
25963 #. type: =head2
25964 #: ../src/guestfs-actions.pod:484
25965 msgid "guestfs_aug_insert"
25966 msgstr "guestfs_aug_insert"
25967
25968 #. type: verbatim
25969 #: ../src/guestfs-actions.pod:486
25970 #, no-wrap
25971 msgid ""
25972 " int\n"
25973 " guestfs_aug_insert (guestfs_h *g,\n"
25974 "                     const char *augpath,\n"
25975 "                     const char *label,\n"
25976 "                     int before);\n"
25977 "\n"
25978 msgstr ""
25979 " int\n"
25980 " guestfs_aug_insert (guestfs_h *g,\n"
25981 "                     const char *augpath,\n"
25982 "                     const char *label,\n"
25983 "                     int before);\n"
25984 "\n"
25985
25986 #. type: =head2
25987 #: ../src/guestfs-actions.pod:504
25988 msgid "guestfs_aug_load"
25989 msgstr "guestfs_aug_load"
25990
25991 #. type: verbatim
25992 #: ../src/guestfs-actions.pod:506
25993 #, no-wrap
25994 msgid ""
25995 " int\n"
25996 " guestfs_aug_load (guestfs_h *g);\n"
25997 "\n"
25998 msgstr ""
25999 " int\n"
26000 " guestfs_aug_load (guestfs_h *g);\n"
26001 "\n"
26002
26003 #. type: =head2
26004 #: ../src/guestfs-actions.pod:518
26005 msgid "guestfs_aug_ls"
26006 msgstr "guestfs_aug_ls"
26007
26008 #. type: verbatim
26009 #: ../src/guestfs-actions.pod:520
26010 #, no-wrap
26011 msgid ""
26012 " char **\n"
26013 " guestfs_aug_ls (guestfs_h *g,\n"
26014 "                 const char *augpath);\n"
26015 "\n"
26016 msgstr ""
26017 " char **\n"
26018 " guestfs_aug_ls (guestfs_h *g,\n"
26019 "                 const char *augpath);\n"
26020 "\n"
26021
26022 #. type: textblock
26023 #: ../src/guestfs-actions.pod:524
26024 msgid ""
26025 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
26026 "sorting the resulting nodes into alphabetical order."
26027 msgstr ""
26028
26029 #. type: textblock
26030 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
26031 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
26032 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
26033 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
26034 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
26035 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
26036 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
26037 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
26038 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
26039 #: ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186
26040 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223
26041 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4390
26042 #: ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5546
26043 #: ../src/guestfs-actions.pod:6181 ../src/guestfs-actions.pod:6307
26044 #: ../src/guestfs-actions.pod:6421 ../src/guestfs-actions.pod:7176
26045 #: ../src/guestfs-actions.pod:7237 ../src/guestfs-actions.pod:7292
26046 #: ../src/guestfs-actions.pod:7438 ../src/guestfs-actions.pod:7462
26047 #: ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7958
26048 #: ../src/guestfs-actions.pod:8005 ../src/guestfs-actions.pod:8199
26049 #: ../src/guestfs-actions.pod:8218 ../src/guestfs-actions.pod:8309
26050 #: ../src/guestfs-actions.pod:8328 ../src/guestfs-actions.pod:8374
26051 #: ../src/guestfs-actions.pod:8393
26052 msgid ""
26053 "This function returns a NULL-terminated array of strings (like L<environ(3)"
26054 ">), or NULL if there was an error.  I<The caller must free the strings and "
26055 "the array after use>."
26056 msgstr ""
26057
26058 #. type: textblock
26059 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
26060 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
26061 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981
26062 #: ../src/guestfs-actions.pod:4633 ../src/guestfs-actions.pod:4680
26063 #: ../src/guestfs-actions.pod:4867 ../src/guestfs-actions.pod:4900
26064 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5550
26065 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6519
26066 #: ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6545
26067 #: ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7676
26068 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7922
26069 #: ../src/guestfs-actions.pod:8187
26070 msgid "(Added in 0.8)"
26071 msgstr "(Додано у 0.8)"
26072
26073 #. type: =head2
26074 #: ../src/guestfs-actions.pod:533
26075 msgid "guestfs_aug_match"
26076 msgstr "guestfs_aug_match"
26077
26078 #. type: verbatim
26079 #: ../src/guestfs-actions.pod:535
26080 #, no-wrap
26081 msgid ""
26082 " char **\n"
26083 " guestfs_aug_match (guestfs_h *g,\n"
26084 "                    const char *augpath);\n"
26085 "\n"
26086 msgstr ""
26087 " char **\n"
26088 " guestfs_aug_match (guestfs_h *g,\n"
26089 "                    const char *augpath);\n"
26090 "\n"
26091
26092 #. type: =head2
26093 #: ../src/guestfs-actions.pod:549
26094 msgid "guestfs_aug_mv"
26095 msgstr "guestfs_aug_mv"
26096
26097 #. type: verbatim
26098 #: ../src/guestfs-actions.pod:551
26099 #, no-wrap
26100 msgid ""
26101 " int\n"
26102 " guestfs_aug_mv (guestfs_h *g,\n"
26103 "                 const char *src,\n"
26104 "                 const char *dest);\n"
26105 "\n"
26106 msgstr ""
26107 " int\n"
26108 " guestfs_aug_mv (guestfs_h *g,\n"
26109 "                 const char *src,\n"
26110 "                 const char *dest);\n"
26111 "\n"
26112
26113 #. type: =head2
26114 #: ../src/guestfs-actions.pod:563
26115 msgid "guestfs_aug_rm"
26116 msgstr "guestfs_aug_rm"
26117
26118 #. type: verbatim
26119 #: ../src/guestfs-actions.pod:565
26120 #, no-wrap
26121 msgid ""
26122 " int\n"
26123 " guestfs_aug_rm (guestfs_h *g,\n"
26124 "                 const char *augpath);\n"
26125 "\n"
26126 msgstr ""
26127 " int\n"
26128 " guestfs_aug_rm (guestfs_h *g,\n"
26129 "                 const char *augpath);\n"
26130 "\n"
26131
26132 #. type: =head2
26133 #: ../src/guestfs-actions.pod:577
26134 msgid "guestfs_aug_save"
26135 msgstr "guestfs_aug_save"
26136
26137 #. type: verbatim
26138 #: ../src/guestfs-actions.pod:579
26139 #, no-wrap
26140 msgid ""
26141 " int\n"
26142 " guestfs_aug_save (guestfs_h *g);\n"
26143 "\n"
26144 msgstr ""
26145 " int\n"
26146 " guestfs_aug_save (guestfs_h *g);\n"
26147 "\n"
26148
26149 #. type: textblock
26150 #: ../src/guestfs-actions.pod:584
26151 msgid ""
26152 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26153 "are saved."
26154 msgstr ""
26155
26156 #. type: =head2
26157 #: ../src/guestfs-actions.pod:591
26158 msgid "guestfs_aug_set"
26159 msgstr "guestfs_aug_set"
26160
26161 #. type: verbatim
26162 #: ../src/guestfs-actions.pod:593
26163 #, no-wrap
26164 msgid ""
26165 " int\n"
26166 " guestfs_aug_set (guestfs_h *g,\n"
26167 "                  const char *augpath,\n"
26168 "                  const char *val);\n"
26169 "\n"
26170 msgstr ""
26171 " int\n"
26172 " guestfs_aug_set (guestfs_h *g,\n"
26173 "                  const char *augpath,\n"
26174 "                  const char *val);\n"
26175 "\n"
26176
26177 #. type: textblock
26178 #: ../src/guestfs-actions.pod:600
26179 msgid ""
26180 "In the Augeas API, it is possible to clear a node by setting the value to "
26181 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
26182 "this call.  Instead you must use the C<guestfs_aug_clear> call."
26183 msgstr ""
26184
26185 #. type: =head2
26186 #: ../src/guestfs-actions.pod:609
26187 msgid "guestfs_available"
26188 msgstr "guestfs_available"
26189
26190 #. type: verbatim
26191 #: ../src/guestfs-actions.pod:611
26192 #, no-wrap
26193 msgid ""
26194 " int\n"
26195 " guestfs_available (guestfs_h *g,\n"
26196 "                    char *const *groups);\n"
26197 "\n"
26198 msgstr ""
26199 " int\n"
26200 " guestfs_available (guestfs_h *g,\n"
26201 "                    char *const *groups);\n"
26202 "\n"
26203
26204 #. type: textblock
26205 #: ../src/guestfs-actions.pod:619
26206 msgid ""
26207 "The libguestfs groups, and the functions that those groups correspond to, "
26208 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
26209 "runtime by calling C<guestfs_available_all_groups>."
26210 msgstr ""
26211
26212 #. type: textblock
26213 #: ../src/guestfs-actions.pod:643
26214 msgid "You must call C<guestfs_launch> before calling this function."
26215 msgstr ""
26216
26217 #. type: textblock
26218 #: ../src/guestfs-actions.pod:665
26219 msgid ""
26220 "This call was added in version C<1.0.80>.  In previous versions of "
26221 "libguestfs all you could do would be to speculatively execute a command to "
26222 "find out if the daemon implemented it.  See also C<guestfs_version>."
26223 msgstr ""
26224
26225 #. type: textblock
26226 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
26227 msgid "(Added in 1.0.80)"
26228 msgstr "(Додано у 1.0.80)"
26229
26230 #. type: =head2
26231 #: ../src/guestfs-actions.pod:676
26232 msgid "guestfs_available_all_groups"
26233 msgstr "guestfs_available_all_groups"
26234
26235 #. type: verbatim
26236 #: ../src/guestfs-actions.pod:678
26237 #, no-wrap
26238 msgid ""
26239 " char **\n"
26240 " guestfs_available_all_groups (guestfs_h *g);\n"
26241 "\n"
26242 msgstr ""
26243 " char **\n"
26244 " guestfs_available_all_groups (guestfs_h *g);\n"
26245 "\n"
26246
26247 #. type: textblock
26248 #: ../src/guestfs-actions.pod:681
26249 msgid ""
26250 "This command returns a list of all optional groups that this daemon knows "
26251 "about.  Note this returns both supported and unsupported groups.  To find "
26252 "out which ones the daemon can actually support you have to call "
26253 "C<guestfs_available> on each member of the returned list."
26254 msgstr ""
26255
26256 #. type: textblock
26257 #: ../src/guestfs-actions.pod:687
26258 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26259 msgstr ""
26260
26261 #. type: textblock
26262 #: ../src/guestfs-actions.pod:693
26263 msgid "(Added in 1.3.15)"
26264 msgstr "(Додано у 1.3.15)"
26265
26266 #. type: =head2
26267 #: ../src/guestfs-actions.pod:695
26268 msgid "guestfs_base64_in"
26269 msgstr "guestfs_base64_in"
26270
26271 #. type: verbatim
26272 #: ../src/guestfs-actions.pod:697
26273 #, no-wrap
26274 msgid ""
26275 " int\n"
26276 " guestfs_base64_in (guestfs_h *g,\n"
26277 "                    const char *base64file,\n"
26278 "                    const char *filename);\n"
26279 "\n"
26280 msgstr ""
26281 " int\n"
26282 " guestfs_base64_in (guestfs_h *g,\n"
26283 "                    const char *base64file,\n"
26284 "                    const char *filename);\n"
26285 "\n"
26286
26287 #. type: textblock
26288 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
26289 msgid "(Added in 1.3.5)"
26290 msgstr "(Додано у 1.3.5)"
26291
26292 #. type: =head2
26293 #: ../src/guestfs-actions.pod:709
26294 msgid "guestfs_base64_out"
26295 msgstr "guestfs_base64_out"
26296
26297 #. type: verbatim
26298 #: ../src/guestfs-actions.pod:711
26299 #, no-wrap
26300 msgid ""
26301 " int\n"
26302 " guestfs_base64_out (guestfs_h *g,\n"
26303 "                     const char *filename,\n"
26304 "                     const char *base64file);\n"
26305 "\n"
26306 msgstr ""
26307 " int\n"
26308 " guestfs_base64_out (guestfs_h *g,\n"
26309 "                     const char *filename,\n"
26310 "                     const char *base64file);\n"
26311 "\n"
26312
26313 #. type: =head2
26314 #: ../src/guestfs-actions.pod:723
26315 msgid "guestfs_blockdev_flushbufs"
26316 msgstr "guestfs_blockdev_flushbufs"
26317
26318 #. type: verbatim
26319 #: ../src/guestfs-actions.pod:725
26320 #, no-wrap
26321 msgid ""
26322 " int\n"
26323 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26324 "                             const char *device);\n"
26325 "\n"
26326 msgstr ""
26327 " int\n"
26328 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26329 "                             const char *device);\n"
26330 "\n"
26331
26332 #. type: textblock
26333 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
26334 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
26335 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
26336 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
26337 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
26338 msgid "(Added in 0.9.3)"
26339 msgstr "(Додано у 0.9.3)"
26340
26341 #. type: =head2
26342 #: ../src/guestfs-actions.pod:738
26343 msgid "guestfs_blockdev_getbsz"
26344 msgstr "guestfs_blockdev_getbsz"
26345
26346 #. type: verbatim
26347 #: ../src/guestfs-actions.pod:740
26348 #, no-wrap
26349 msgid ""
26350 " int\n"
26351 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26352 "                          const char *device);\n"
26353 "\n"
26354 msgstr ""
26355 " int\n"
26356 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26357 "                          const char *device);\n"
26358 "\n"
26359
26360 #. type: =head2
26361 #: ../src/guestfs-actions.pod:755
26362 msgid "guestfs_blockdev_getro"
26363 msgstr "guestfs_blockdev_getro"
26364
26365 #. type: verbatim
26366 #: ../src/guestfs-actions.pod:757
26367 #, no-wrap
26368 msgid ""
26369 " int\n"
26370 " guestfs_blockdev_getro (guestfs_h *g,\n"
26371 "                         const char *device);\n"
26372 "\n"
26373 msgstr ""
26374 " int\n"
26375 " guestfs_blockdev_getro (guestfs_h *g,\n"
26376 "                         const char *device);\n"
26377 "\n"
26378
26379 #. type: textblock
26380 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
26381 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
26382 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
26383 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
26384 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
26385 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693
26386 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727
26387 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903
26388 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932
26389 #: ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963
26390 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993
26391 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020
26392 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050
26393 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077
26394 #: ../src/guestfs-actions.pod:5784
26395 msgid "This function returns a C truth value on success or -1 on error."
26396 msgstr ""
26397
26398 #. type: =head2
26399 #: ../src/guestfs-actions.pod:770
26400 msgid "guestfs_blockdev_getsize64"
26401 msgstr "guestfs_blockdev_getsize64"
26402
26403 #. type: verbatim
26404 #: ../src/guestfs-actions.pod:772
26405 #, no-wrap
26406 msgid ""
26407 " int64_t\n"
26408 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26409 "                             const char *device);\n"
26410 "\n"
26411 msgstr ""
26412 " int64_t\n"
26413 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26414 "                             const char *device);\n"
26415 "\n"
26416
26417 #. type: textblock
26418 #: ../src/guestfs-actions.pod:778
26419 msgid "See also C<guestfs_blockdev_getsz>."
26420 msgstr ""
26421
26422 #. type: =head2
26423 #: ../src/guestfs-actions.pod:786
26424 msgid "guestfs_blockdev_getss"
26425 msgstr "guestfs_blockdev_getss"
26426
26427 #. type: verbatim
26428 #: ../src/guestfs-actions.pod:788
26429 #, no-wrap
26430 msgid ""
26431 " int\n"
26432 " guestfs_blockdev_getss (guestfs_h *g,\n"
26433 "                         const char *device);\n"
26434 "\n"
26435 msgstr ""
26436 " int\n"
26437 " guestfs_blockdev_getss (guestfs_h *g,\n"
26438 "                         const char *device);\n"
26439 "\n"
26440
26441 #. type: textblock
26442 #: ../src/guestfs-actions.pod:795
26443 msgid ""
26444 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26445 "that)."
26446 msgstr ""
26447
26448 #. type: =head2
26449 #: ../src/guestfs-actions.pod:804
26450 msgid "guestfs_blockdev_getsz"
26451 msgstr "guestfs_blockdev_getsz"
26452
26453 #. type: verbatim
26454 #: ../src/guestfs-actions.pod:806
26455 #, no-wrap
26456 msgid ""
26457 " int64_t\n"
26458 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26459 "                         const char *device);\n"
26460 "\n"
26461 msgstr ""
26462 " int64_t\n"
26463 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26464 "                         const char *device);\n"
26465 "\n"
26466
26467 #. type: textblock
26468 #: ../src/guestfs-actions.pod:813
26469 msgid ""
26470 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26471 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26472 msgstr ""
26473
26474 #. type: =head2
26475 #: ../src/guestfs-actions.pod:823
26476 msgid "guestfs_blockdev_rereadpt"
26477 msgstr "guestfs_blockdev_rereadpt"
26478
26479 #. type: verbatim
26480 #: ../src/guestfs-actions.pod:825
26481 #, no-wrap
26482 msgid ""
26483 " int\n"
26484 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26485 "                            const char *device);\n"
26486 "\n"
26487 msgstr ""
26488 " int\n"
26489 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26490 "                            const char *device);\n"
26491 "\n"
26492
26493 #. type: =head2
26494 #: ../src/guestfs-actions.pod:837
26495 msgid "guestfs_blockdev_setbsz"
26496 msgstr "guestfs_blockdev_setbsz"
26497
26498 #. type: verbatim
26499 #: ../src/guestfs-actions.pod:839
26500 #, no-wrap
26501 msgid ""
26502 " int\n"
26503 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26504 "                          const char *device,\n"
26505 "                          int blocksize);\n"
26506 "\n"
26507 msgstr ""
26508 " int\n"
26509 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26510 "                          const char *device,\n"
26511 "                          int blocksize);\n"
26512 "\n"
26513
26514 #. type: =head2
26515 #: ../src/guestfs-actions.pod:855
26516 msgid "guestfs_blockdev_setro"
26517 msgstr "guestfs_blockdev_setro"
26518
26519 #. type: verbatim
26520 #: ../src/guestfs-actions.pod:857
26521 #, no-wrap
26522 msgid ""
26523 " int\n"
26524 " guestfs_blockdev_setro (guestfs_h *g,\n"
26525 "                         const char *device);\n"
26526 "\n"
26527 msgstr ""
26528 " int\n"
26529 " guestfs_blockdev_setro (guestfs_h *g,\n"
26530 "                         const char *device);\n"
26531 "\n"
26532
26533 #. type: =head2
26534 #: ../src/guestfs-actions.pod:869
26535 msgid "guestfs_blockdev_setrw"
26536 msgstr "guestfs_blockdev_setrw"
26537
26538 #. type: verbatim
26539 #: ../src/guestfs-actions.pod:871
26540 #, no-wrap
26541 msgid ""
26542 " int\n"
26543 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26544 "                         const char *device);\n"
26545 "\n"
26546 msgstr ""
26547 " int\n"
26548 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26549 "                         const char *device);\n"
26550 "\n"
26551
26552 #. type: =head2
26553 #: ../src/guestfs-actions.pod:883
26554 msgid "guestfs_btrfs_filesystem_resize"
26555 msgstr "guestfs_btrfs_filesystem_resize"
26556
26557 #. type: verbatim
26558 #: ../src/guestfs-actions.pod:885
26559 #, no-wrap
26560 msgid ""
26561 " int\n"
26562 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26563 "                                  const char *mountpoint,\n"
26564 "                                  ...);\n"
26565 "\n"
26566 msgstr ""
26567 " int\n"
26568 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26569 "                                  const char *mountpoint,\n"
26570 "                                  ...);\n"
26571 "\n"
26572
26573 #. type: verbatim
26574 #: ../src/guestfs-actions.pod:895
26575 #, no-wrap
26576 msgid ""
26577 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26578 "\n"
26579 msgstr ""
26580 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26581 "\n"
26582
26583 #. type: textblock
26584 #: ../src/guestfs-actions.pod:918
26585 msgid "(Added in 1.11.17)"
26586 msgstr "(Додано у 1.11.17)"
26587
26588 #. type: =head2
26589 #: ../src/guestfs-actions.pod:920
26590 msgid "guestfs_btrfs_filesystem_resize_va"
26591 msgstr "guestfs_btrfs_filesystem_resize_va"
26592
26593 #. type: verbatim
26594 #: ../src/guestfs-actions.pod:922
26595 #, no-wrap
26596 msgid ""
26597 " int\n"
26598 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26599 "                                     const char *mountpoint,\n"
26600 "                                     va_list args);\n"
26601 "\n"
26602 msgstr ""
26603 " int\n"
26604 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26605 "                                     const char *mountpoint,\n"
26606 "                                     va_list args);\n"
26607 "\n"
26608
26609 #. type: textblock
26610 #: ../src/guestfs-actions.pod:927
26611 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26612 msgstr ""
26613
26614 #. type: =head2
26615 #: ../src/guestfs-actions.pod:931
26616 msgid "guestfs_btrfs_filesystem_resize_argv"
26617 msgstr "guestfs_btrfs_filesystem_resize_argv"
26618
26619 #. type: verbatim
26620 #: ../src/guestfs-actions.pod:933
26621 #, no-wrap
26622 msgid ""
26623 " int\n"
26624 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26625 "                                       const char *mountpoint,\n"
26626 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26627 "\n"
26628 msgstr ""
26629 " int\n"
26630 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26631 "                                       const char *mountpoint,\n"
26632 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26633 "\n"
26634
26635 #. type: textblock
26636 #: ../src/guestfs-actions.pod:938
26637 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26638 msgstr ""
26639
26640 #. type: =head2
26641 #: ../src/guestfs-actions.pod:942
26642 msgid "guestfs_case_sensitive_path"
26643 msgstr ""
26644
26645 #. type: verbatim
26646 #: ../src/guestfs-actions.pod:944
26647 #, no-wrap
26648 msgid ""
26649 " char *\n"
26650 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26651 "                              const char *path);\n"
26652 "\n"
26653 msgstr ""
26654
26655 #. type: textblock
26656 #: ../src/guestfs-actions.pod:970
26657 msgid ""
26658 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
26659 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26660 "how the directories were originally created under Windows)."
26661 msgstr ""
26662
26663 #. type: textblock
26664 #: ../src/guestfs-actions.pod:978
26665 msgid "See also C<guestfs_realpath>."
26666 msgstr ""
26667
26668 #. type: textblock
26669 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7856
26670 msgid "(Added in 1.0.75)"
26671 msgstr "(Додано у 1.0.75)"
26672
26673 #. type: =head2
26674 #: ../src/guestfs-actions.pod:985
26675 msgid "guestfs_cat"
26676 msgstr ""
26677
26678 #. type: verbatim
26679 #: ../src/guestfs-actions.pod:987
26680 #, no-wrap
26681 msgid ""
26682 " char *\n"
26683 " guestfs_cat (guestfs_h *g,\n"
26684 "              const char *path);\n"
26685 "\n"
26686 msgstr ""
26687
26688 #. type: textblock
26689 #: ../src/guestfs-actions.pod:993
26690 msgid ""
26691 "Note that this function cannot correctly handle binary files (specifically, "
26692 "files containing C<\\0> character which is treated as end of string).  For "
26693 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26694 "functions which have a more complex interface."
26695 msgstr ""
26696
26697 #. type: textblock
26698 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207
26699 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:4306
26700 #: ../src/guestfs-actions.pod:4394 ../src/guestfs-actions.pod:4793
26701 #: ../src/guestfs-actions.pod:4807 ../src/guestfs-actions.pod:6185
26702 #: ../src/guestfs-actions.pod:6199 ../src/guestfs-actions.pod:8009
26703 #: ../src/guestfs-actions.pod:8023
26704 msgid "(Added in 0.4)"
26705 msgstr "(Додано у 0.4)"
26706
26707 #. type: =head2
26708 #: ../src/guestfs-actions.pod:1006
26709 msgid "guestfs_checksum"
26710 msgstr ""
26711
26712 #. type: verbatim
26713 #: ../src/guestfs-actions.pod:1008
26714 #, no-wrap
26715 msgid ""
26716 " char *\n"
26717 " guestfs_checksum (guestfs_h *g,\n"
26718 "                   const char *csumtype,\n"
26719 "                   const char *path);\n"
26720 "\n"
26721 msgstr ""
26722
26723 #. type: textblock
26724 #: ../src/guestfs-actions.pod:1054
26725 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26726 msgstr ""
26727
26728 #. type: textblock
26729 #: ../src/guestfs-actions.pod:1056
26730 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26731 msgstr ""
26732
26733 #. type: textblock
26734 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
26735 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905
26736 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995
26737 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:7712
26738 msgid "(Added in 1.0.2)"
26739 msgstr "(Додано у 1.0.2)"
26740
26741 #. type: =head2
26742 #: ../src/guestfs-actions.pod:1063
26743 msgid "guestfs_checksum_device"
26744 msgstr ""
26745
26746 #. type: verbatim
26747 #: ../src/guestfs-actions.pod:1065
26748 #, no-wrap
26749 msgid ""
26750 " char *\n"
26751 " guestfs_checksum_device (guestfs_h *g,\n"
26752 "                          const char *csumtype,\n"
26753 "                          const char *device);\n"
26754 "\n"
26755 msgstr ""
26756
26757 #. type: textblock
26758 #: ../src/guestfs-actions.pod:1070
26759 msgid ""
26760 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26761 "device named C<device>.  For the types of checksums supported see the "
26762 "C<guestfs_checksum> command."
26763 msgstr ""
26764
26765 #. type: textblock
26766 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5617
26767 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5786
26768 #: ../src/guestfs-actions.pod:5804 ../src/guestfs-actions.pod:5986
26769 #: ../src/guestfs-actions.pod:7621 ../src/guestfs-actions.pod:7635
26770 #: ../src/guestfs-actions.pod:8035
26771 msgid "(Added in 1.3.2)"
26772 msgstr "(Додано у 1.3.2)"
26773
26774 #. type: =head2
26775 #: ../src/guestfs-actions.pod:1079
26776 msgid "guestfs_checksums_out"
26777 msgstr ""
26778
26779 #. type: verbatim
26780 #: ../src/guestfs-actions.pod:1081
26781 #, no-wrap
26782 msgid ""
26783 " int\n"
26784 " guestfs_checksums_out (guestfs_h *g,\n"
26785 "                        const char *csumtype,\n"
26786 "                        const char *directory,\n"
26787 "                        const char *sumsfile);\n"
26788 "\n"
26789 msgstr ""
26790
26791 #. type: textblock
26792 #: ../src/guestfs-actions.pod:1101
26793 msgid "(Added in 1.3.7)"
26794 msgstr "(Додано у 1.3.7)"
26795
26796 #. type: =head2
26797 #: ../src/guestfs-actions.pod:1103
26798 msgid "guestfs_chmod"
26799 msgstr ""
26800
26801 #. type: verbatim
26802 #: ../src/guestfs-actions.pod:1105
26803 #, no-wrap
26804 msgid ""
26805 " int\n"
26806 " guestfs_chmod (guestfs_h *g,\n"
26807 "                int mode,\n"
26808 "                const char *path);\n"
26809 "\n"
26810 msgstr ""
26811
26812 #. type: =head2
26813 #: ../src/guestfs-actions.pod:1123
26814 msgid "guestfs_chown"
26815 msgstr ""
26816
26817 #. type: verbatim
26818 #: ../src/guestfs-actions.pod:1125
26819 #, no-wrap
26820 msgid ""
26821 " int\n"
26822 " guestfs_chown (guestfs_h *g,\n"
26823 "                int owner,\n"
26824 "                int group,\n"
26825 "                const char *path);\n"
26826 "\n"
26827 msgstr ""
26828
26829 #. type: =head2
26830 #: ../src/guestfs-actions.pod:1141
26831 msgid "guestfs_command"
26832 msgstr ""
26833
26834 #. type: verbatim
26835 #: ../src/guestfs-actions.pod:1143
26836 #, no-wrap
26837 msgid ""
26838 " char *\n"
26839 " guestfs_command (guestfs_h *g,\n"
26840 "                  char *const *arguments);\n"
26841 "\n"
26842 msgstr ""
26843
26844 #. type: textblock
26845 #: ../src/guestfs-actions.pod:1152
26846 msgid ""
26847 "The single parameter is an argv-style list of arguments.  The first element "
26848 "is the name of the program to run.  Subsequent elements are parameters.  The "
26849 "list must be non-empty (ie. must contain a program name).  Note that the "
26850 "command runs directly, and is I<not> invoked via the shell (see "
26851 "C<guestfs_sh>)."
26852 msgstr ""
26853
26854 #. type: textblock
26855 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
26856 #: ../src/guestfs-actions.pod:2027
26857 msgid "(Added in 0.9.1)"
26858 msgstr "(Додано у 0.9.1)"
26859
26860 #. type: =head2
26861 #: ../src/guestfs-actions.pod:1185
26862 msgid "guestfs_command_lines"
26863 msgstr ""
26864
26865 #. type: verbatim
26866 #: ../src/guestfs-actions.pod:1187
26867 #, no-wrap
26868 msgid ""
26869 " char **\n"
26870 " guestfs_command_lines (guestfs_h *g,\n"
26871 "                        char *const *arguments);\n"
26872 "\n"
26873 msgstr ""
26874
26875 #. type: textblock
26876 #: ../src/guestfs-actions.pod:1191
26877 msgid ""
26878 "This is the same as C<guestfs_command>, but splits the result into a list of "
26879 "lines."
26880 msgstr ""
26881
26882 #. type: textblock
26883 #: ../src/guestfs-actions.pod:1194
26884 msgid "See also: C<guestfs_sh_lines>"
26885 msgstr ""
26886
26887 #. type: =head2
26888 #: ../src/guestfs-actions.pod:1205
26889 msgid "guestfs_compress_device_out"
26890 msgstr ""
26891
26892 #. type: verbatim
26893 #: ../src/guestfs-actions.pod:1207
26894 #, no-wrap
26895 msgid ""
26896 " int\n"
26897 " guestfs_compress_device_out (guestfs_h *g,\n"
26898 "                              const char *ctype,\n"
26899 "                              const char *device,\n"
26900 "                              const char *zdevice,\n"
26901 "                              ...);\n"
26902 "\n"
26903 msgstr ""
26904
26905 #. type: verbatim
26906 #: ../src/guestfs-actions.pod:1219
26907 #, no-wrap
26908 msgid ""
26909 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26910 "\n"
26911 msgstr ""
26912
26913 #. type: textblock
26914 #: ../src/guestfs-actions.pod:1224
26915 msgid ""
26916 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26917 "C<guestfs_compress_out>."
26918 msgstr ""
26919
26920 #. type: textblock
26921 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
26922 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:6902
26923 msgid "(Added in 1.13.15)"
26924 msgstr ""
26925
26926 #. type: =head2
26927 #: ../src/guestfs-actions.pod:1231
26928 msgid "guestfs_compress_device_out_va"
26929 msgstr ""
26930
26931 #. type: verbatim
26932 #: ../src/guestfs-actions.pod:1233
26933 #, no-wrap
26934 msgid ""
26935 " int\n"
26936 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26937 "                                 const char *ctype,\n"
26938 "                                 const char *device,\n"
26939 "                                 const char *zdevice,\n"
26940 "                                 va_list args);\n"
26941 "\n"
26942 msgstr ""
26943
26944 #. type: textblock
26945 #: ../src/guestfs-actions.pod:1240
26946 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26947 msgstr ""
26948
26949 #. type: =head2
26950 #: ../src/guestfs-actions.pod:1244
26951 msgid "guestfs_compress_device_out_argv"
26952 msgstr ""
26953
26954 #. type: verbatim
26955 #: ../src/guestfs-actions.pod:1246
26956 #, no-wrap
26957 msgid ""
26958 " int\n"
26959 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26960 "                                   const char *ctype,\n"
26961 "                                   const char *device,\n"
26962 "                                   const char *zdevice,\n"
26963 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
26964 "\n"
26965 msgstr ""
26966
26967 #. type: textblock
26968 #: ../src/guestfs-actions.pod:1253
26969 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26970 msgstr ""
26971
26972 #. type: =head2
26973 #: ../src/guestfs-actions.pod:1257
26974 msgid "guestfs_compress_out"
26975 msgstr ""
26976
26977 #. type: verbatim
26978 #: ../src/guestfs-actions.pod:1259
26979 #, no-wrap
26980 msgid ""
26981 " int\n"
26982 " guestfs_compress_out (guestfs_h *g,\n"
26983 "                       const char *ctype,\n"
26984 "                       const char *file,\n"
26985 "                       const char *zfile,\n"
26986 "                       ...);\n"
26987 "\n"
26988 msgstr ""
26989
26990 #. type: verbatim
26991 #: ../src/guestfs-actions.pod:1271
26992 #, no-wrap
26993 msgid ""
26994 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26995 "\n"
26996 msgstr ""
26997
26998 #. type: =head2
26999 #: ../src/guestfs-actions.pod:1290
27000 msgid "guestfs_compress_out_va"
27001 msgstr ""
27002
27003 #. type: verbatim
27004 #: ../src/guestfs-actions.pod:1292
27005 #, no-wrap
27006 msgid ""
27007 " int\n"
27008 " guestfs_compress_out_va (guestfs_h *g,\n"
27009 "                          const char *ctype,\n"
27010 "                          const char *file,\n"
27011 "                          const char *zfile,\n"
27012 "                          va_list args);\n"
27013 "\n"
27014 msgstr ""
27015
27016 #. type: textblock
27017 #: ../src/guestfs-actions.pod:1299
27018 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
27019 msgstr ""
27020
27021 #. type: =head2
27022 #: ../src/guestfs-actions.pod:1303
27023 msgid "guestfs_compress_out_argv"
27024 msgstr ""
27025
27026 #. type: verbatim
27027 #: ../src/guestfs-actions.pod:1305
27028 #, no-wrap
27029 msgid ""
27030 " int\n"
27031 " guestfs_compress_out_argv (guestfs_h *g,\n"
27032 "                            const char *ctype,\n"
27033 "                            const char *file,\n"
27034 "                            const char *zfile,\n"
27035 "                            const struct guestfs_compress_out_argv *optargs);\n"
27036 "\n"
27037 msgstr ""
27038
27039 #. type: textblock
27040 #: ../src/guestfs-actions.pod:1312
27041 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
27042 msgstr ""
27043
27044 #. type: =head2
27045 #: ../src/guestfs-actions.pod:1316
27046 msgid "guestfs_config"
27047 msgstr ""
27048
27049 #. type: verbatim
27050 #: ../src/guestfs-actions.pod:1318
27051 #, no-wrap
27052 msgid ""
27053 " int\n"
27054 " guestfs_config (guestfs_h *g,\n"
27055 "                 const char *qemuparam,\n"
27056 "                 const char *qemuvalue);\n"
27057 "\n"
27058 msgstr ""
27059
27060 #. type: =head2
27061 #: ../src/guestfs-actions.pod:1336
27062 msgid "guestfs_copy_device_to_device"
27063 msgstr ""
27064
27065 #. type: verbatim
27066 #: ../src/guestfs-actions.pod:1338
27067 #, no-wrap
27068 msgid ""
27069 " int\n"
27070 " guestfs_copy_device_to_device (guestfs_h *g,\n"
27071 "                                const char *src,\n"
27072 "                                const char *dest,\n"
27073 "                                ...);\n"
27074 "\n"
27075 msgstr ""
27076
27077 #. type: verbatim
27078 #: ../src/guestfs-actions.pod:1349
27079 #, no-wrap
27080 msgid ""
27081 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27082 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27083 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27084 "\n"
27085 msgstr ""
27086
27087 #. type: textblock
27088 #: ../src/guestfs-actions.pod:1353
27089 msgid ""
27090 "The four calls C<guestfs_copy_device_to_device>, "
27091 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27092 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27093 "destination (device|file)."
27094 msgstr ""
27095
27096 #. type: textblock
27097 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
27098 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
27099 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
27100 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
27101 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
27102 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:7707
27103 #: ../src/guestfs-actions.pod:7741 ../src/guestfs-actions.pod:8248
27104 #: ../src/guestfs-actions.pod:8271
27105 msgid ""
27106 "This long-running command can generate progress notification messages so "
27107 "that the caller can display a progress bar or indicator.  To receive these "
27108 "messages, the caller must register a progress event callback.  See L<guestfs"
27109 "(3)/GUESTFS_EVENT_PROGRESS>."
27110 msgstr ""
27111
27112 #. type: textblock
27113 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
27114 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
27115 #: ../src/guestfs-actions.pod:6042
27116 #, fuzzy
27117 #| msgid "(Added in 1.3.5)"
27118 msgid "(Added in 1.13.25)"
27119 msgstr "(Додано у 1.3.5)"
27120
27121 #. type: =head2
27122 #: ../src/guestfs-actions.pod:1381
27123 msgid "guestfs_copy_device_to_device_va"
27124 msgstr ""
27125
27126 #. type: verbatim
27127 #: ../src/guestfs-actions.pod:1383
27128 #, no-wrap
27129 msgid ""
27130 " int\n"
27131 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27132 "                                   const char *src,\n"
27133 "                                   const char *dest,\n"
27134 "                                   va_list args);\n"
27135 "\n"
27136 msgstr ""
27137
27138 #. type: textblock
27139 #: ../src/guestfs-actions.pod:1389
27140 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27141 msgstr ""
27142
27143 #. type: =head2
27144 #: ../src/guestfs-actions.pod:1393
27145 msgid "guestfs_copy_device_to_device_argv"
27146 msgstr ""
27147
27148 #. type: verbatim
27149 #: ../src/guestfs-actions.pod:1395
27150 #, no-wrap
27151 msgid ""
27152 " int\n"
27153 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27154 "                                     const char *src,\n"
27155 "                                     const char *dest,\n"
27156 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
27157 "\n"
27158 msgstr ""
27159
27160 #. type: textblock
27161 #: ../src/guestfs-actions.pod:1401
27162 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27163 msgstr ""
27164
27165 #. type: =head2
27166 #: ../src/guestfs-actions.pod:1405
27167 msgid "guestfs_copy_device_to_file"
27168 msgstr ""
27169
27170 #. type: verbatim
27171 #: ../src/guestfs-actions.pod:1407
27172 #, no-wrap
27173 msgid ""
27174 " int\n"
27175 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27176 "                              const char *src,\n"
27177 "                              const char *dest,\n"
27178 "                              ...);\n"
27179 "\n"
27180 msgstr ""
27181
27182 #. type: verbatim
27183 #: ../src/guestfs-actions.pod:1418
27184 #, no-wrap
27185 msgid ""
27186 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27187 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27188 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27189 "\n"
27190 msgstr ""
27191
27192 #. type: textblock
27193 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
27194 #: ../src/guestfs-actions.pod:1528
27195 msgid ""
27196 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27197 msgstr ""
27198
27199 #. type: =head2
27200 #: ../src/guestfs-actions.pod:1434
27201 msgid "guestfs_copy_device_to_file_va"
27202 msgstr ""
27203
27204 #. type: verbatim
27205 #: ../src/guestfs-actions.pod:1436
27206 #, no-wrap
27207 msgid ""
27208 " int\n"
27209 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27210 "                                 const char *src,\n"
27211 "                                 const char *dest,\n"
27212 "                                 va_list args);\n"
27213 "\n"
27214 msgstr ""
27215
27216 #. type: textblock
27217 #: ../src/guestfs-actions.pod:1442
27218 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
27219 msgstr ""
27220
27221 #. type: =head2
27222 #: ../src/guestfs-actions.pod:1446
27223 msgid "guestfs_copy_device_to_file_argv"
27224 msgstr ""
27225
27226 #. type: verbatim
27227 #: ../src/guestfs-actions.pod:1448
27228 #, no-wrap
27229 msgid ""
27230 " int\n"
27231 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
27232 "                                   const char *src,\n"
27233 "                                   const char *dest,\n"
27234 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
27235 "\n"
27236 msgstr ""
27237
27238 #. type: textblock
27239 #: ../src/guestfs-actions.pod:1454
27240 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
27241 msgstr ""
27242
27243 #. type: =head2
27244 #: ../src/guestfs-actions.pod:1458
27245 msgid "guestfs_copy_file_to_device"
27246 msgstr ""
27247
27248 #. type: verbatim
27249 #: ../src/guestfs-actions.pod:1460
27250 #, no-wrap
27251 msgid ""
27252 " int\n"
27253 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27254 "                              const char *src,\n"
27255 "                              const char *dest,\n"
27256 "                              ...);\n"
27257 "\n"
27258 msgstr ""
27259
27260 #. type: verbatim
27261 #: ../src/guestfs-actions.pod:1471
27262 #, no-wrap
27263 msgid ""
27264 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27265 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27266 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27267 "\n"
27268 msgstr ""
27269
27270 #. type: =head2
27271 #: ../src/guestfs-actions.pod:1487
27272 msgid "guestfs_copy_file_to_device_va"
27273 msgstr ""
27274
27275 #. type: verbatim
27276 #: ../src/guestfs-actions.pod:1489
27277 #, no-wrap
27278 msgid ""
27279 " int\n"
27280 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
27281 "                                 const char *src,\n"
27282 "                                 const char *dest,\n"
27283 "                                 va_list args);\n"
27284 "\n"
27285 msgstr ""
27286
27287 #. type: textblock
27288 #: ../src/guestfs-actions.pod:1495
27289 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
27290 msgstr ""
27291
27292 #. type: =head2
27293 #: ../src/guestfs-actions.pod:1499
27294 msgid "guestfs_copy_file_to_device_argv"
27295 msgstr ""
27296
27297 #. type: verbatim
27298 #: ../src/guestfs-actions.pod:1501
27299 #, no-wrap
27300 msgid ""
27301 " int\n"
27302 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
27303 "                                   const char *src,\n"
27304 "                                   const char *dest,\n"
27305 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
27306 "\n"
27307 msgstr ""
27308
27309 #. type: textblock
27310 #: ../src/guestfs-actions.pod:1507
27311 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
27312 msgstr ""
27313
27314 #. type: =head2
27315 #: ../src/guestfs-actions.pod:1511
27316 msgid "guestfs_copy_file_to_file"
27317 msgstr ""
27318
27319 #. type: verbatim
27320 #: ../src/guestfs-actions.pod:1513
27321 #, no-wrap
27322 msgid ""
27323 " int\n"
27324 " guestfs_copy_file_to_file (guestfs_h *g,\n"
27325 "                            const char *src,\n"
27326 "                            const char *dest,\n"
27327 "                            ...);\n"
27328 "\n"
27329 msgstr ""
27330
27331 #. type: verbatim
27332 #: ../src/guestfs-actions.pod:1524
27333 #, no-wrap
27334 msgid ""
27335 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27336 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27337 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
27338 "\n"
27339 msgstr ""
27340
27341 #. type: textblock
27342 #: ../src/guestfs-actions.pod:1531
27343 msgid ""
27344 "This is B<not> the function you want for copying files.  This is for copying "
27345 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
27346 "C<guestfs_mv> for general file copying and moving functions."
27347 msgstr ""
27348
27349 #. type: =head2
27350 #: ../src/guestfs-actions.pod:1545
27351 msgid "guestfs_copy_file_to_file_va"
27352 msgstr ""
27353
27354 #. type: verbatim
27355 #: ../src/guestfs-actions.pod:1547
27356 #, no-wrap
27357 msgid ""
27358 " int\n"
27359 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27360 "                               const char *src,\n"
27361 "                               const char *dest,\n"
27362 "                               va_list args);\n"
27363 "\n"
27364 msgstr ""
27365
27366 #. type: textblock
27367 #: ../src/guestfs-actions.pod:1553
27368 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27369 msgstr ""
27370
27371 #. type: =head2
27372 #: ../src/guestfs-actions.pod:1557
27373 msgid "guestfs_copy_file_to_file_argv"
27374 msgstr ""
27375
27376 #. type: verbatim
27377 #: ../src/guestfs-actions.pod:1559
27378 #, no-wrap
27379 msgid ""
27380 " int\n"
27381 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27382 "                                 const char *src,\n"
27383 "                                 const char *dest,\n"
27384 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
27385 "\n"
27386 msgstr ""
27387
27388 #. type: textblock
27389 #: ../src/guestfs-actions.pod:1565
27390 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27391 msgstr ""
27392
27393 #. type: =head2
27394 #: ../src/guestfs-actions.pod:1569
27395 msgid "guestfs_copy_size"
27396 msgstr ""
27397
27398 #. type: verbatim
27399 #: ../src/guestfs-actions.pod:1571
27400 #, no-wrap
27401 msgid ""
27402 " int\n"
27403 " guestfs_copy_size (guestfs_h *g,\n"
27404 "                    const char *src,\n"
27405 "                    const char *dest,\n"
27406 "                    int64_t size);\n"
27407 "\n"
27408 msgstr ""
27409
27410 #. type: textblock
27411 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
27412 msgid ""
27413 "I<This function is deprecated.> In new code, use the L</"
27414 "guestfs_copy_device_to_device> call instead."
27415 msgstr ""
27416
27417 #. type: textblock
27418 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4820
27419 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:7942
27420 #: ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:8048
27421 msgid "(Added in 1.0.87)"
27422 msgstr "(Додано у 1.0.87)"
27423
27424 #. type: =head2
27425 #: ../src/guestfs-actions.pod:1599
27426 msgid "guestfs_cp"
27427 msgstr ""
27428
27429 #. type: verbatim
27430 #: ../src/guestfs-actions.pod:1601
27431 #, no-wrap
27432 msgid ""
27433 " int\n"
27434 " guestfs_cp (guestfs_h *g,\n"
27435 "             const char *src,\n"
27436 "             const char *dest);\n"
27437 "\n"
27438 msgstr ""
27439
27440 #. type: textblock
27441 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
27442 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
27443 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5564
27444 #: ../src/guestfs-actions.pod:6056
27445 msgid "(Added in 1.0.18)"
27446 msgstr "(Додано у 1.0.18)"
27447
27448 #. type: =head2
27449 #: ../src/guestfs-actions.pod:1613
27450 msgid "guestfs_cp_a"
27451 msgstr ""
27452
27453 #. type: verbatim
27454 #: ../src/guestfs-actions.pod:1615
27455 #, no-wrap
27456 msgid ""
27457 " int\n"
27458 " guestfs_cp_a (guestfs_h *g,\n"
27459 "               const char *src,\n"
27460 "               const char *dest);\n"
27461 "\n"
27462 msgstr ""
27463
27464 #. type: =head2
27465 #: ../src/guestfs-actions.pod:1627
27466 msgid "guestfs_dd"
27467 msgstr ""
27468
27469 #. type: verbatim
27470 #: ../src/guestfs-actions.pod:1629
27471 #, no-wrap
27472 msgid ""
27473 " int\n"
27474 " guestfs_dd (guestfs_h *g,\n"
27475 "             const char *src,\n"
27476 "             const char *dest);\n"
27477 "\n"
27478 msgstr ""
27479
27480 #. type: textblock
27481 #: ../src/guestfs-actions.pod:1646
27482 msgid ""
27483 "If the destination is a device, it must be as large or larger than the "
27484 "source file or device, otherwise the copy will fail.  This command cannot do "
27485 "partial copies (see C<guestfs_copy_device_to_device>)."
27486 msgstr ""
27487
27488 #. type: =head2
27489 #: ../src/guestfs-actions.pod:1655
27490 msgid "guestfs_df"
27491 msgstr ""
27492
27493 #. type: verbatim
27494 #: ../src/guestfs-actions.pod:1657
27495 #, no-wrap
27496 msgid ""
27497 " char *\n"
27498 " guestfs_df (guestfs_h *g);\n"
27499 "\n"
27500 msgstr ""
27501
27502 #. type: textblock
27503 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
27504 msgid ""
27505 "This command is mostly useful for interactive sessions.  It is I<not> "
27506 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
27507 "from programs."
27508 msgstr ""
27509
27510 #. type: textblock
27511 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
27512 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
27513 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
27514 #: ../src/guestfs-actions.pod:4930 ../src/guestfs-actions.pod:5464
27515 #: ../src/guestfs-actions.pod:7445 ../src/guestfs-actions.pod:7469
27516 #: ../src/guestfs-actions.pod:8088 ../src/guestfs-actions.pod:8101
27517 #: ../src/guestfs-actions.pod:8114
27518 msgid "(Added in 1.0.54)"
27519 msgstr "(Додано у 1.0.54)"
27520
27521 #. type: =head2
27522 #: ../src/guestfs-actions.pod:1671
27523 msgid "guestfs_df_h"
27524 msgstr ""
27525
27526 #. type: verbatim
27527 #: ../src/guestfs-actions.pod:1673
27528 #, no-wrap
27529 msgid ""
27530 " char *\n"
27531 " guestfs_df_h (guestfs_h *g);\n"
27532 "\n"
27533 msgstr ""
27534
27535 #. type: =head2
27536 #: ../src/guestfs-actions.pod:1688
27537 msgid "guestfs_dmesg"
27538 msgstr ""
27539
27540 #. type: verbatim
27541 #: ../src/guestfs-actions.pod:1690
27542 #, no-wrap
27543 msgid ""
27544 " char *\n"
27545 " guestfs_dmesg (guestfs_h *g);\n"
27546 "\n"
27547 msgstr ""
27548
27549 #. type: textblock
27550 #: ../src/guestfs-actions.pod:1697
27551 msgid ""
27552 "Another way to get the same information is to enable verbose messages with "
27553 "C<guestfs_set_verbose> or by setting the environment variable "
27554 "C<LIBGUESTFS_DEBUG=1> before running the program."
27555 msgstr ""
27556
27557 #. type: =head2
27558 #: ../src/guestfs-actions.pod:1707
27559 msgid "guestfs_download"
27560 msgstr ""
27561
27562 #. type: verbatim
27563 #: ../src/guestfs-actions.pod:1709
27564 #, no-wrap
27565 msgid ""
27566 " int\n"
27567 " guestfs_download (guestfs_h *g,\n"
27568 "                   const char *remotefilename,\n"
27569 "                   const char *filename);\n"
27570 "\n"
27571 msgstr ""
27572
27573 #. type: textblock
27574 #: ../src/guestfs-actions.pod:1719
27575 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27576 msgstr ""
27577
27578 #. type: =head2
27579 #: ../src/guestfs-actions.pod:1730
27580 msgid "guestfs_download_offset"
27581 msgstr ""
27582
27583 #. type: verbatim
27584 #: ../src/guestfs-actions.pod:1732
27585 #, no-wrap
27586 msgid ""
27587 " int\n"
27588 " guestfs_download_offset (guestfs_h *g,\n"
27589 "                          const char *remotefilename,\n"
27590 "                          const char *filename,\n"
27591 "                          int64_t offset,\n"
27592 "                          int64_t size);\n"
27593 "\n"
27594 msgstr ""
27595
27596 #. type: textblock
27597 #: ../src/guestfs-actions.pod:1745
27598 msgid ""
27599 "Note that there is no limit on the amount of data that can be downloaded "
27600 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27601 "full amount unless an error occurs."
27602 msgstr ""
27603
27604 #. type: textblock
27605 #: ../src/guestfs-actions.pod:1750
27606 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27607 msgstr ""
27608
27609 #. type: textblock
27610 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:7746
27611 msgid "(Added in 1.5.17)"
27612 msgstr "(Додано у 1.5.17)"
27613
27614 #. type: =head2
27615 #: ../src/guestfs-actions.pod:1761
27616 msgid "guestfs_drop_caches"
27617 msgstr ""
27618
27619 #. type: verbatim
27620 #: ../src/guestfs-actions.pod:1763
27621 #, no-wrap
27622 msgid ""
27623 " int\n"
27624 " guestfs_drop_caches (guestfs_h *g,\n"
27625 "                      int whattodrop);\n"
27626 "\n"
27627 msgstr ""
27628
27629 #. type: =head2
27630 #: ../src/guestfs-actions.pod:1781
27631 msgid "guestfs_du"
27632 msgstr ""
27633
27634 #. type: verbatim
27635 #: ../src/guestfs-actions.pod:1783
27636 #, no-wrap
27637 msgid ""
27638 " int64_t\n"
27639 " guestfs_du (guestfs_h *g,\n"
27640 "             const char *path);\n"
27641 "\n"
27642 msgstr ""
27643
27644 #. type: =head2
27645 #: ../src/guestfs-actions.pod:1806
27646 msgid "guestfs_e2fsck_f"
27647 msgstr ""
27648
27649 #. type: verbatim
27650 #: ../src/guestfs-actions.pod:1808
27651 #, no-wrap
27652 msgid ""
27653 " int\n"
27654 " guestfs_e2fsck_f (guestfs_h *g,\n"
27655 "                   const char *device);\n"
27656 "\n"
27657 msgstr ""
27658
27659 #. type: textblock
27660 #: ../src/guestfs-actions.pod:1816
27661 msgid ""
27662 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
27663 "Normally you should use C<guestfs_fsck>."
27664 msgstr ""
27665
27666 #. type: textblock
27667 #: ../src/guestfs-actions.pod:1821
27668 msgid "(Added in 1.0.29)"
27669 msgstr "(Додано у 1.0.29)"
27670
27671 #. type: =head2
27672 #: ../src/guestfs-actions.pod:1823
27673 msgid "guestfs_echo_daemon"
27674 msgstr "guestfs_echo_daemon"
27675
27676 #. type: verbatim
27677 #: ../src/guestfs-actions.pod:1825
27678 #, no-wrap
27679 msgid ""
27680 " char *\n"
27681 " guestfs_echo_daemon (guestfs_h *g,\n"
27682 "                      char *const *words);\n"
27683 "\n"
27684 msgstr ""
27685 " char *\n"
27686 " guestfs_echo_daemon (guestfs_h *g,\n"
27687 "                      char *const *words);\n"
27688 "\n"
27689
27690 #. type: textblock
27691 #: ../src/guestfs-actions.pod:1834
27692 msgid "See also C<guestfs_ping_daemon>."
27693 msgstr ""
27694
27695 #. type: textblock
27696 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
27697 #: ../src/guestfs-actions.pod:6926
27698 msgid "(Added in 1.0.69)"
27699 msgstr "(Додано у 1.0.69)"
27700
27701 #. type: =head2
27702 #: ../src/guestfs-actions.pod:1841
27703 msgid "guestfs_egrep"
27704 msgstr "guestfs_egrep"
27705
27706 #. type: verbatim
27707 #: ../src/guestfs-actions.pod:1843
27708 #, no-wrap
27709 msgid ""
27710 " char **\n"
27711 " guestfs_egrep (guestfs_h *g,\n"
27712 "                const char *regex,\n"
27713 "                const char *path);\n"
27714 "\n"
27715 msgstr ""
27716 " char **\n"
27717 " guestfs_egrep (guestfs_h *g,\n"
27718 "                const char *regex,\n"
27719 "                const char *path);\n"
27720 "\n"
27721
27722 #. type: textblock
27723 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
27724 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
27725 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
27726 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
27727 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
27728 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
27729 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4319
27730 #: ../src/guestfs-actions.pod:4333 ../src/guestfs-actions.pod:4346
27731 #: ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:5352
27732 #: ../src/guestfs-actions.pod:6390 ../src/guestfs-actions.pod:6439
27733 #: ../src/guestfs-actions.pod:7313 ../src/guestfs-actions.pod:7325
27734 #: ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7351
27735 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7386
27736 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-actions.pod:7412
27737 #: ../src/guestfs-actions.pod:8206 ../src/guestfs-actions.pod:8225
27738 #: ../src/guestfs-actions.pod:8316 ../src/guestfs-actions.pod:8335
27739 #: ../src/guestfs-actions.pod:8381 ../src/guestfs-actions.pod:8400
27740 msgid "(Added in 1.0.66)"
27741 msgstr "(Додано у 1.0.66)"
27742
27743 #. type: =head2
27744 #: ../src/guestfs-actions.pod:1860
27745 msgid "guestfs_egrepi"
27746 msgstr "guestfs_egrepi"
27747
27748 #. type: verbatim
27749 #: ../src/guestfs-actions.pod:1862
27750 #, no-wrap
27751 msgid ""
27752 " char **\n"
27753 " guestfs_egrepi (guestfs_h *g,\n"
27754 "                 const char *regex,\n"
27755 "                 const char *path);\n"
27756 "\n"
27757 msgstr ""
27758
27759 #. type: =head2
27760 #: ../src/guestfs-actions.pod:1879
27761 msgid "guestfs_equal"
27762 msgstr ""
27763
27764 #. type: verbatim
27765 #: ../src/guestfs-actions.pod:1881
27766 #, no-wrap
27767 msgid ""
27768 " int\n"
27769 " guestfs_equal (guestfs_h *g,\n"
27770 "                const char *file1,\n"
27771 "                const char *file2);\n"
27772 "\n"
27773 msgstr ""
27774
27775 #. type: =head2
27776 #: ../src/guestfs-actions.pod:1895
27777 msgid "guestfs_exists"
27778 msgstr ""
27779
27780 #. type: verbatim
27781 #: ../src/guestfs-actions.pod:1897
27782 #, no-wrap
27783 msgid ""
27784 " int\n"
27785 " guestfs_exists (guestfs_h *g,\n"
27786 "                 const char *path);\n"
27787 "\n"
27788 msgstr ""
27789
27790 #. type: textblock
27791 #: ../src/guestfs-actions.pod:1904
27792 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27793 msgstr ""
27794
27795 #. type: =head2
27796 #: ../src/guestfs-actions.pod:1910
27797 msgid "guestfs_fallocate"
27798 msgstr ""
27799
27800 #. type: verbatim
27801 #: ../src/guestfs-actions.pod:1912
27802 #, no-wrap
27803 msgid ""
27804 " int\n"
27805 " guestfs_fallocate (guestfs_h *g,\n"
27806 "                    const char *path,\n"
27807 "                    int len);\n"
27808 "\n"
27809 msgstr ""
27810
27811 #. type: textblock
27812 #: ../src/guestfs-actions.pod:1917
27813 msgid ""
27814 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27815 "call instead."
27816 msgstr ""
27817
27818 #. type: =head2
27819 #: ../src/guestfs-actions.pod:1936
27820 msgid "guestfs_fallocate64"
27821 msgstr ""
27822
27823 #. type: verbatim
27824 #: ../src/guestfs-actions.pod:1938
27825 #, no-wrap
27826 msgid ""
27827 " int\n"
27828 " guestfs_fallocate64 (guestfs_h *g,\n"
27829 "                      const char *path,\n"
27830 "                      int64_t len);\n"
27831 "\n"
27832 msgstr ""
27833
27834 #. type: textblock
27835 #: ../src/guestfs-actions.pod:1947
27836 msgid ""
27837 "Note that this call allocates disk blocks for the file.  To create a sparse "
27838 "file use C<guestfs_truncate_size> instead."
27839 msgstr ""
27840
27841 #. type: textblock
27842 #: ../src/guestfs-actions.pod:1950
27843 msgid ""
27844 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27845 "oversight it only allowed 30 bit lengths to be specified, effectively "
27846 "limiting the maximum size of files created through that call to 1GB."
27847 msgstr ""
27848
27849 #. type: textblock
27850 #: ../src/guestfs-actions.pod:1961
27851 msgid "(Added in 1.3.17)"
27852 msgstr "(Додано у 1.3.17)"
27853
27854 #. type: =head2
27855 #: ../src/guestfs-actions.pod:1963
27856 msgid "guestfs_fgrep"
27857 msgstr ""
27858
27859 #. type: verbatim
27860 #: ../src/guestfs-actions.pod:1965
27861 #, no-wrap
27862 msgid ""
27863 " char **\n"
27864 " guestfs_fgrep (guestfs_h *g,\n"
27865 "                const char *pattern,\n"
27866 "                const char *path);\n"
27867 "\n"
27868 msgstr ""
27869
27870 #. type: =head2
27871 #: ../src/guestfs-actions.pod:1982
27872 msgid "guestfs_fgrepi"
27873 msgstr ""
27874
27875 #. type: verbatim
27876 #: ../src/guestfs-actions.pod:1984
27877 #, no-wrap
27878 msgid ""
27879 " char **\n"
27880 " guestfs_fgrepi (guestfs_h *g,\n"
27881 "                 const char *pattern,\n"
27882 "                 const char *path);\n"
27883 "\n"
27884 msgstr ""
27885
27886 #. type: =head2
27887 #: ../src/guestfs-actions.pod:2001
27888 msgid "guestfs_file"
27889 msgstr ""
27890
27891 #. type: verbatim
27892 #: ../src/guestfs-actions.pod:2003
27893 #, no-wrap
27894 msgid ""
27895 " char *\n"
27896 " guestfs_file (guestfs_h *g,\n"
27897 "               const char *path);\n"
27898 "\n"
27899 msgstr ""
27900
27901 #. type: textblock
27902 #: ../src/guestfs-actions.pod:2021
27903 msgid ""
27904 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27905 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27906 msgstr ""
27907
27908 #. type: =head2
27909 #: ../src/guestfs-actions.pod:2029
27910 msgid "guestfs_file_architecture"
27911 msgstr ""
27912
27913 #. type: verbatim
27914 #: ../src/guestfs-actions.pod:2031
27915 #, no-wrap
27916 msgid ""
27917 " char *\n"
27918 " guestfs_file_architecture (guestfs_h *g,\n"
27919 "                            const char *filename);\n"
27920 "\n"
27921 msgstr ""
27922
27923 #. type: textblock
27924 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
27925 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
27926 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
27927 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
27928 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
27929 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876
27930 #: ../src/guestfs-actions.pod:4008
27931 msgid "(Added in 1.5.3)"
27932 msgstr "(Додано у 1.5.3)"
27933
27934 #. type: =head2
27935 #: ../src/guestfs-actions.pod:2141
27936 msgid "guestfs_filesize"
27937 msgstr ""
27938
27939 #. type: verbatim
27940 #: ../src/guestfs-actions.pod:2143
27941 #, no-wrap
27942 msgid ""
27943 " int64_t\n"
27944 " guestfs_filesize (guestfs_h *g,\n"
27945 "                   const char *file);\n"
27946 "\n"
27947 msgstr ""
27948
27949 #. type: textblock
27950 #: ../src/guestfs-actions.pod:2149
27951 msgid ""
27952 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27953 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27954 "devices, use C<guestfs_blockdev_getsize64>."
27955 msgstr ""
27956
27957 #. type: textblock
27958 #: ../src/guestfs-actions.pod:2155
27959 msgid "(Added in 1.0.82)"
27960 msgstr "(Додано у 1.0.82)"
27961
27962 #. type: =head2
27963 #: ../src/guestfs-actions.pod:2157
27964 msgid "guestfs_fill"
27965 msgstr ""
27966
27967 #. type: verbatim
27968 #: ../src/guestfs-actions.pod:2159
27969 #, no-wrap
27970 msgid ""
27971 " int\n"
27972 " guestfs_fill (guestfs_h *g,\n"
27973 "               int c,\n"
27974 "               int len,\n"
27975 "               const char *path);\n"
27976 "\n"
27977 msgstr ""
27978
27979 #. type: textblock
27980 #: ../src/guestfs-actions.pod:2169
27981 msgid ""
27982 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27983 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27984 "bytes use C<guestfs_fill_pattern>."
27985 msgstr ""
27986
27987 #. type: textblock
27988 #: ../src/guestfs-actions.pod:2181
27989 msgid "(Added in 1.0.79)"
27990 msgstr "(Додано у 1.0.79)"
27991
27992 #. type: =head2
27993 #: ../src/guestfs-actions.pod:2183
27994 msgid "guestfs_fill_pattern"
27995 msgstr ""
27996
27997 #. type: verbatim
27998 #: ../src/guestfs-actions.pod:2185
27999 #, no-wrap
28000 msgid ""
28001 " int\n"
28002 " guestfs_fill_pattern (guestfs_h *g,\n"
28003 "                       const char *pattern,\n"
28004 "                       int len,\n"
28005 "                       const char *path);\n"
28006 "\n"
28007 msgstr ""
28008
28009 #. type: textblock
28010 #: ../src/guestfs-actions.pod:2191
28011 msgid ""
28012 "This function is like C<guestfs_fill> except that it creates a new file of "
28013 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
28014 "pattern is truncated if necessary to ensure the length of the file is "
28015 "exactly C<len> bytes."
28016 msgstr ""
28017
28018 #. type: textblock
28019 #: ../src/guestfs-actions.pod:2203
28020 msgid "(Added in 1.3.12)"
28021 msgstr "(Додано у 1.3.12)"
28022
28023 #. type: =head2
28024 #: ../src/guestfs-actions.pod:2205
28025 msgid "guestfs_find"
28026 msgstr ""
28027
28028 #. type: verbatim
28029 #: ../src/guestfs-actions.pod:2207
28030 #, no-wrap
28031 msgid ""
28032 " char **\n"
28033 " guestfs_find (guestfs_h *g,\n"
28034 "               const char *directory);\n"
28035 "\n"
28036 msgstr ""
28037
28038 #. type: textblock
28039 #: ../src/guestfs-actions.pod:2223
28040 msgid ""
28041 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28042 msgstr ""
28043
28044 #. type: textblock
28045 #: ../src/guestfs-actions.pod:2236
28046 msgid "See also C<guestfs_find0>."
28047 msgstr ""
28048
28049 #. type: textblock
28050 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4757
28051 #: ../src/guestfs-actions.pod:6474
28052 msgid "(Added in 1.0.27)"
28053 msgstr "(Додано у 1.0.27)"
28054
28055 #. type: =head2
28056 #: ../src/guestfs-actions.pod:2247
28057 msgid "guestfs_find0"
28058 msgstr ""
28059
28060 #. type: verbatim
28061 #: ../src/guestfs-actions.pod:2249
28062 #, no-wrap
28063 msgid ""
28064 " int\n"
28065 " guestfs_find0 (guestfs_h *g,\n"
28066 "                const char *directory,\n"
28067 "                const char *files);\n"
28068 "\n"
28069 msgstr ""
28070
28071 #. type: textblock
28072 #: ../src/guestfs-actions.pod:2258
28073 msgid ""
28074 "This command works the same way as C<guestfs_find> with the following "
28075 "exceptions:"
28076 msgstr ""
28077
28078 #. type: textblock
28079 #: ../src/guestfs-actions.pod:2285
28080 msgid "(Added in 1.0.74)"
28081 msgstr "(Додано у 1.0.74)"
28082
28083 #. type: =head2
28084 #: ../src/guestfs-actions.pod:2287
28085 msgid "guestfs_findfs_label"
28086 msgstr ""
28087
28088 #. type: verbatim
28089 #: ../src/guestfs-actions.pod:2289
28090 #, no-wrap
28091 msgid ""
28092 " char *\n"
28093 " guestfs_findfs_label (guestfs_h *g,\n"
28094 "                       const char *label);\n"
28095 "\n"
28096 msgstr ""
28097
28098 #. type: textblock
28099 #: ../src/guestfs-actions.pod:2297
28100 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28101 msgstr ""
28102
28103 #. type: =head2
28104 #: ../src/guestfs-actions.pod:2304
28105 msgid "guestfs_findfs_uuid"
28106 msgstr ""
28107
28108 #. type: verbatim
28109 #: ../src/guestfs-actions.pod:2306
28110 #, no-wrap
28111 msgid ""
28112 " char *\n"
28113 " guestfs_findfs_uuid (guestfs_h *g,\n"
28114 "                      const char *uuid);\n"
28115 "\n"
28116 msgstr ""
28117
28118 #. type: textblock
28119 #: ../src/guestfs-actions.pod:2314
28120 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28121 msgstr ""
28122
28123 #. type: =head2
28124 #: ../src/guestfs-actions.pod:2321
28125 msgid "guestfs_fsck"
28126 msgstr ""
28127
28128 #. type: verbatim
28129 #: ../src/guestfs-actions.pod:2323
28130 #, no-wrap
28131 msgid ""
28132 " int\n"
28133 " guestfs_fsck (guestfs_h *g,\n"
28134 "               const char *fstype,\n"
28135 "               const char *device);\n"
28136 "\n"
28137 msgstr ""
28138
28139 #. type: textblock
28140 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8253
28141 msgid "(Added in 1.0.16)"
28142 msgstr "(Додано у 1.0.16)"
28143
28144 #. type: =head2
28145 #: ../src/guestfs-actions.pod:2360
28146 msgid "guestfs_get_append"
28147 msgstr ""
28148
28149 #. type: verbatim
28150 #: ../src/guestfs-actions.pod:2362
28151 #, no-wrap
28152 msgid ""
28153 " const char *\n"
28154 " guestfs_get_append (guestfs_h *g);\n"
28155 "\n"
28156 msgstr ""
28157
28158 #. type: textblock
28159 #: ../src/guestfs-actions.pod:2370
28160 msgid ""
28161 "This function returns a string which may be NULL.  There is no way to return "
28162 "an error from this function.  The string is owned by the guest handle and "
28163 "must I<not> be freed."
28164 msgstr ""
28165
28166 #. type: textblock
28167 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6152
28168 #: ../src/guestfs-actions.pod:6631 ../src/guestfs-actions.pod:7080
28169 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7115
28170 #: ../src/guestfs-actions.pod:7139 ../src/guestfs-actions.pod:7893
28171 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8297
28172 msgid "(Added in 1.0.26)"
28173 msgstr "(Додано у 1.0.26)"
28174
28175 #. type: =head2
28176 #: ../src/guestfs-actions.pod:2376
28177 msgid "guestfs_get_attach_method"
28178 msgstr ""
28179
28180 #. type: verbatim
28181 #: ../src/guestfs-actions.pod:2378
28182 #, no-wrap
28183 msgid ""
28184 " char *\n"
28185 " guestfs_get_attach_method (guestfs_h *g);\n"
28186 "\n"
28187 msgstr ""
28188
28189 #. type: textblock
28190 #: ../src/guestfs-actions.pod:2381
28191 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
28192 msgstr ""
28193
28194 #. type: textblock
28195 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6661
28196 msgid "(Added in 1.9.8)"
28197 msgstr "(Додано у 1.9.8)"
28198
28199 #. type: =head2
28200 #: ../src/guestfs-actions.pod:2388
28201 msgid "guestfs_get_autosync"
28202 msgstr ""
28203
28204 #. type: verbatim
28205 #: ../src/guestfs-actions.pod:2390
28206 #, no-wrap
28207 msgid ""
28208 " int\n"
28209 " guestfs_get_autosync (guestfs_h *g);\n"
28210 "\n"
28211 msgstr ""
28212
28213 #. type: =head2
28214 #: ../src/guestfs-actions.pod:2399
28215 msgid "guestfs_get_direct"
28216 msgstr ""
28217
28218 #. type: verbatim
28219 #: ../src/guestfs-actions.pod:2401
28220 #, no-wrap
28221 msgid ""
28222 " int\n"
28223 " guestfs_get_direct (guestfs_h *g);\n"
28224 "\n"
28225 msgstr ""
28226
28227 #. type: textblock
28228 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6702
28229 msgid "(Added in 1.0.72)"
28230 msgstr "(Додано у 1.0.72)"
28231
28232 #. type: =head2
28233 #: ../src/guestfs-actions.pod:2410
28234 msgid "guestfs_get_e2label"
28235 msgstr ""
28236
28237 #. type: verbatim
28238 #: ../src/guestfs-actions.pod:2412
28239 #, no-wrap
28240 msgid ""
28241 " char *\n"
28242 " guestfs_get_e2label (guestfs_h *g,\n"
28243 "                      const char *device);\n"
28244 "\n"
28245 msgstr ""
28246
28247 #. type: textblock
28248 #: ../src/guestfs-actions.pod:2416
28249 msgid ""
28250 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28251 "call instead."
28252 msgstr ""
28253
28254 #. type: textblock
28255 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
28256 #: ../src/guestfs-actions.pod:6720 ../src/guestfs-actions.pod:6739
28257 msgid "(Added in 1.0.15)"
28258 msgstr "(Додано у 1.0.15)"
28259
28260 #. type: =head2
28261 #: ../src/guestfs-actions.pod:2431
28262 msgid "guestfs_get_e2uuid"
28263 msgstr ""
28264
28265 #. type: verbatim
28266 #: ../src/guestfs-actions.pod:2433
28267 #, no-wrap
28268 msgid ""
28269 " char *\n"
28270 " guestfs_get_e2uuid (guestfs_h *g,\n"
28271 "                     const char *device);\n"
28272 "\n"
28273 msgstr ""
28274
28275 #. type: textblock
28276 #: ../src/guestfs-actions.pod:2437
28277 msgid ""
28278 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28279 "call instead."
28280 msgstr ""
28281
28282 #. type: =head2
28283 #: ../src/guestfs-actions.pod:2452
28284 msgid "guestfs_get_memsize"
28285 msgstr ""
28286
28287 #. type: verbatim
28288 #: ../src/guestfs-actions.pod:2454
28289 #, no-wrap
28290 msgid ""
28291 " int\n"
28292 " guestfs_get_memsize (guestfs_h *g);\n"
28293 "\n"
28294 msgstr ""
28295
28296 #. type: textblock
28297 #: ../src/guestfs-actions.pod:2460
28298 msgid ""
28299 "If C<guestfs_set_memsize> was not called on this handle, and if "
28300 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28301 "value for memsize."
28302 msgstr ""
28303
28304 #. type: textblock
28305 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5048
28306 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5276
28307 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:5307
28308 #: ../src/guestfs-actions.pod:5324 ../src/guestfs-actions.pod:5337
28309 #: ../src/guestfs-actions.pod:6377 ../src/guestfs-actions.pod:6760
28310 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7662
28311 msgid "(Added in 1.0.55)"
28312 msgstr "(Додано у 1.0.55)"
28313
28314 #. type: =head2
28315 #: ../src/guestfs-actions.pod:2471
28316 msgid "guestfs_get_network"
28317 msgstr ""
28318
28319 #. type: verbatim
28320 #: ../src/guestfs-actions.pod:2473
28321 #, no-wrap
28322 msgid ""
28323 " int\n"
28324 " guestfs_get_network (guestfs_h *g);\n"
28325 "\n"
28326 msgstr ""
28327
28328 #. type: textblock
28329 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6779
28330 msgid "(Added in 1.5.4)"
28331 msgstr "(Додано у 1.5.4)"
28332
28333 #. type: =head2
28334 #: ../src/guestfs-actions.pod:2482
28335 msgid "guestfs_get_path"
28336 msgstr ""
28337
28338 #. type: verbatim
28339 #: ../src/guestfs-actions.pod:2484
28340 #, no-wrap
28341 msgid ""
28342 " const char *\n"
28343 " guestfs_get_path (guestfs_h *g);\n"
28344 "\n"
28345 msgstr ""
28346
28347 #. type: textblock
28348 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
28349 msgid ""
28350 "This function returns a string, or NULL on error.  The string is owned by "
28351 "the guest handle and must I<not> be freed."
28352 msgstr ""
28353
28354 #. type: =head2
28355 #: ../src/guestfs-actions.pod:2497
28356 msgid "guestfs_get_pgroup"
28357 msgstr ""
28358
28359 #. type: verbatim
28360 #: ../src/guestfs-actions.pod:2499
28361 #, no-wrap
28362 msgid ""
28363 " int\n"
28364 " guestfs_get_pgroup (guestfs_h *g);\n"
28365 "\n"
28366 msgstr ""
28367
28368 #. type: textblock
28369 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6815
28370 #: ../src/guestfs-actions.pod:8154
28371 msgid "(Added in 1.11.18)"
28372 msgstr "(Додано у 1.11.18)"
28373
28374 #. type: =head2
28375 #: ../src/guestfs-actions.pod:2508
28376 msgid "guestfs_get_pid"
28377 msgstr ""
28378
28379 #. type: verbatim
28380 #: ../src/guestfs-actions.pod:2510
28381 #, no-wrap
28382 msgid ""
28383 " int\n"
28384 " guestfs_get_pid (guestfs_h *g);\n"
28385 "\n"
28386 msgstr ""
28387
28388 #. type: textblock
28389 #: ../src/guestfs-actions.pod:2520
28390 msgid "(Added in 1.0.56)"
28391 msgstr "(Додано у 1.0.56)"
28392
28393 #. type: =head2
28394 #: ../src/guestfs-actions.pod:2522
28395 msgid "guestfs_get_qemu"
28396 msgstr ""
28397
28398 #. type: verbatim
28399 #: ../src/guestfs-actions.pod:2524
28400 #, no-wrap
28401 msgid ""
28402 " const char *\n"
28403 " guestfs_get_qemu (guestfs_h *g);\n"
28404 "\n"
28405 msgstr ""
28406
28407 #. type: textblock
28408 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:6843
28409 msgid "(Added in 1.0.6)"
28410 msgstr "(Додано у 1.0.6)"
28411
28412 #. type: =head2
28413 #: ../src/guestfs-actions.pod:2537
28414 msgid "guestfs_get_recovery_proc"
28415 msgstr ""
28416
28417 #. type: verbatim
28418 #: ../src/guestfs-actions.pod:2539
28419 #, no-wrap
28420 msgid ""
28421 " int\n"
28422 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28423 "\n"
28424 msgstr ""
28425
28426 #. type: textblock
28427 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130
28428 #: ../src/guestfs-actions.pod:4461 ../src/guestfs-actions.pod:4855
28429 #: ../src/guestfs-actions.pod:4887 ../src/guestfs-actions.pod:6082
28430 #: ../src/guestfs-actions.pod:6425 ../src/guestfs-actions.pod:6867
28431 #: ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7585
28432 #: ../src/guestfs-actions.pod:7777
28433 msgid "(Added in 1.0.77)"
28434 msgstr "(Додано у 1.0.77)"
28435
28436 #. type: =head2
28437 #: ../src/guestfs-actions.pod:2548
28438 msgid "guestfs_get_selinux"
28439 msgstr ""
28440
28441 #. type: verbatim
28442 #: ../src/guestfs-actions.pod:2550
28443 #, no-wrap
28444 msgid ""
28445 " int\n"
28446 " guestfs_get_selinux (guestfs_h *g);\n"
28447 "\n"
28448 msgstr ""
28449
28450 #. type: textblock
28451 #: ../src/guestfs-actions.pod:2553
28452 msgid ""
28453 "This returns the current setting of the selinux flag which is passed to the "
28454 "appliance at boot time.  See C<guestfs_set_selinux>."
28455 msgstr ""
28456
28457 #. type: textblock
28458 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
28459 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6960
28460 msgid "(Added in 1.0.67)"
28461 msgstr "(Додано у 1.0.67)"
28462
28463 #. type: =head2
28464 #: ../src/guestfs-actions.pod:2563
28465 msgid "guestfs_get_smp"
28466 msgstr ""
28467
28468 #. type: verbatim
28469 #: ../src/guestfs-actions.pod:2565
28470 #, no-wrap
28471 msgid ""
28472 " int\n"
28473 " guestfs_get_smp (guestfs_h *g);\n"
28474 "\n"
28475 msgstr ""
28476
28477 #. type: =head2
28478 #: ../src/guestfs-actions.pod:2574
28479 msgid "guestfs_get_state"
28480 msgstr ""
28481
28482 #. type: verbatim
28483 #: ../src/guestfs-actions.pod:2576
28484 #, no-wrap
28485 msgid ""
28486 " int\n"
28487 " guestfs_get_state (guestfs_h *g);\n"
28488 "\n"
28489 msgstr ""
28490
28491 #. type: =head2
28492 #: ../src/guestfs-actions.pod:2588
28493 msgid "guestfs_get_trace"
28494 msgstr ""
28495
28496 #. type: verbatim
28497 #: ../src/guestfs-actions.pod:2590
28498 #, no-wrap
28499 msgid ""
28500 " int\n"
28501 " guestfs_get_trace (guestfs_h *g);\n"
28502 "\n"
28503 msgstr ""
28504
28505 #. type: =head2
28506 #: ../src/guestfs-actions.pod:2599
28507 msgid "guestfs_get_umask"
28508 msgstr ""
28509
28510 #. type: verbatim
28511 #: ../src/guestfs-actions.pod:2601
28512 #, no-wrap
28513 msgid ""
28514 " int\n"
28515 " guestfs_get_umask (guestfs_h *g);\n"
28516 "\n"
28517 msgstr ""
28518
28519 #. type: textblock
28520 #: ../src/guestfs-actions.pod:2604
28521 msgid ""
28522 "Return the current umask.  By default the umask is C<022> unless it has been "
28523 "set by calling C<guestfs_umask>."
28524 msgstr ""
28525
28526 #. type: =head2
28527 #: ../src/guestfs-actions.pod:2611
28528 msgid "guestfs_get_verbose"
28529 msgstr ""
28530
28531 #. type: verbatim
28532 #: ../src/guestfs-actions.pod:2613
28533 #, no-wrap
28534 msgid ""
28535 " int\n"
28536 " guestfs_get_verbose (guestfs_h *g);\n"
28537 "\n"
28538 msgstr ""
28539
28540 #. type: =head2
28541 #: ../src/guestfs-actions.pod:2622
28542 msgid "guestfs_getcon"
28543 msgstr ""
28544
28545 #. type: verbatim
28546 #: ../src/guestfs-actions.pod:2624
28547 #, no-wrap
28548 msgid ""
28549 " char *\n"
28550 " guestfs_getcon (guestfs_h *g);\n"
28551 "\n"
28552 msgstr ""
28553
28554 #. type: textblock
28555 #: ../src/guestfs-actions.pod:2629
28556 msgid ""
28557 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28558 msgstr ""
28559
28560 #. type: =head2
28561 #: ../src/guestfs-actions.pod:2637
28562 msgid "guestfs_getxattr"
28563 msgstr ""
28564
28565 #. type: verbatim
28566 #: ../src/guestfs-actions.pod:2639
28567 #, no-wrap
28568 msgid ""
28569 " char *\n"
28570 " guestfs_getxattr (guestfs_h *g,\n"
28571 "                   const char *path,\n"
28572 "                   const char *name,\n"
28573 "                   size_t *size_r);\n"
28574 "\n"
28575 msgstr ""
28576
28577 #. type: textblock
28578 #: ../src/guestfs-actions.pod:2645
28579 msgid ""
28580 "Get a single extended attribute from file C<path> named C<name>.  This call "
28581 "follows symlinks.  If you want to lookup an extended attribute for the "
28582 "symlink itself, use C<guestfs_lgetxattr>."
28583 msgstr ""
28584
28585 #. type: textblock
28586 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
28587 msgid ""
28588 "Normally it is better to get all extended attributes from a file in one go "
28589 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
28590 "implementations are buggy and do not provide a way to list out attributes.  "
28591 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
28592 "extended attributes you want in advance and call this function."
28593 msgstr ""
28594
28595 #. type: textblock
28596 #: ../src/guestfs-actions.pod:2659
28597 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28598 msgstr ""
28599
28600 #. type: textblock
28601 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
28602 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156
28603 #: ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6101
28604 #: ../src/guestfs-actions.pod:6282
28605 msgid ""
28606 "This function returns a buffer, or NULL on error.  The size of the returned "
28607 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
28608 "after use>."
28609 msgstr ""
28610
28611 #. type: textblock
28612 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
28613 msgid "(Added in 1.7.24)"
28614 msgstr "(Додано у 1.7.24)"
28615
28616 #. type: =head2
28617 #: ../src/guestfs-actions.pod:2667
28618 msgid "guestfs_getxattrs"
28619 msgstr ""
28620
28621 #. type: verbatim
28622 #: ../src/guestfs-actions.pod:2669
28623 #, no-wrap
28624 msgid ""
28625 " struct guestfs_xattr_list *\n"
28626 " guestfs_getxattrs (guestfs_h *g,\n"
28627 "                    const char *path);\n"
28628 "\n"
28629 msgstr ""
28630
28631 #. type: textblock
28632 #: ../src/guestfs-actions.pod:2679
28633 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28634 msgstr ""
28635
28636 #. type: textblock
28637 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172
28638 #: ../src/guestfs-actions.pod:4851
28639 msgid ""
28640 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28641 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
28642 msgstr ""
28643
28644 #. type: textblock
28645 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176
28646 #: ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4411
28647 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6979
28648 #: ../src/guestfs-actions.pod:8362
28649 msgid "(Added in 1.0.59)"
28650 msgstr "(Додано у 1.0.59)"
28651
28652 #. type: =head2
28653 #: ../src/guestfs-actions.pod:2687
28654 msgid "guestfs_glob_expand"
28655 msgstr ""
28656
28657 #. type: verbatim
28658 #: ../src/guestfs-actions.pod:2689
28659 #, no-wrap
28660 msgid ""
28661 " char **\n"
28662 " guestfs_glob_expand (guestfs_h *g,\n"
28663 "                      const char *pattern);\n"
28664 "\n"
28665 msgstr ""
28666
28667 #. type: textblock
28668 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7163
28669 #: ../src/guestfs-actions.pod:7180
28670 msgid "(Added in 1.0.50)"
28671 msgstr "(Додано у 1.0.50)"
28672
28673 #. type: =head2
28674 #: ../src/guestfs-actions.pod:2710
28675 msgid "guestfs_grep"
28676 msgstr ""
28677
28678 #. type: verbatim
28679 #: ../src/guestfs-actions.pod:2712
28680 #, no-wrap
28681 msgid ""
28682 " char **\n"
28683 " guestfs_grep (guestfs_h *g,\n"
28684 "               const char *regex,\n"
28685 "               const char *path);\n"
28686 "\n"
28687 msgstr ""
28688
28689 #. type: =head2
28690 #: ../src/guestfs-actions.pod:2729
28691 msgid "guestfs_grepi"
28692 msgstr ""
28693
28694 #. type: verbatim
28695 #: ../src/guestfs-actions.pod:2731
28696 #, no-wrap
28697 msgid ""
28698 " char **\n"
28699 " guestfs_grepi (guestfs_h *g,\n"
28700 "                const char *regex,\n"
28701 "                const char *path);\n"
28702 "\n"
28703 msgstr ""
28704
28705 #. type: =head2
28706 #: ../src/guestfs-actions.pod:2748
28707 msgid "guestfs_grub_install"
28708 msgstr ""
28709
28710 #. type: verbatim
28711 #: ../src/guestfs-actions.pod:2750
28712 #, no-wrap
28713 msgid ""
28714 " int\n"
28715 " guestfs_grub_install (guestfs_h *g,\n"
28716 "                       const char *root,\n"
28717 "                       const char *device);\n"
28718 "\n"
28719 msgstr ""
28720
28721 #. type: textblock
28722 #: ../src/guestfs-actions.pod:2793
28723 msgid "(Added in 1.0.17)"
28724 msgstr "(Додано у 1.0.17)"
28725
28726 #. type: =head2
28727 #: ../src/guestfs-actions.pod:2795
28728 msgid "guestfs_head"
28729 msgstr ""
28730
28731 #. type: verbatim
28732 #: ../src/guestfs-actions.pod:2797
28733 #, no-wrap
28734 msgid ""
28735 " char **\n"
28736 " guestfs_head (guestfs_h *g,\n"
28737 "               const char *path);\n"
28738 "\n"
28739 msgstr ""
28740
28741 #. type: =head2
28742 #: ../src/guestfs-actions.pod:2813
28743 msgid "guestfs_head_n"
28744 msgstr ""
28745
28746 #. type: verbatim
28747 #: ../src/guestfs-actions.pod:2815
28748 #, no-wrap
28749 msgid ""
28750 " char **\n"
28751 " guestfs_head_n (guestfs_h *g,\n"
28752 "                 int nrlines,\n"
28753 "                 const char *path);\n"
28754 "\n"
28755 msgstr ""
28756
28757 #. type: =head2
28758 #: ../src/guestfs-actions.pod:2837
28759 msgid "guestfs_hexdump"
28760 msgstr ""
28761
28762 #. type: verbatim
28763 #: ../src/guestfs-actions.pod:2839
28764 #, no-wrap
28765 msgid ""
28766 " char *\n"
28767 " guestfs_hexdump (guestfs_h *g,\n"
28768 "                  const char *path);\n"
28769 "\n"
28770 msgstr ""
28771
28772 #. type: textblock
28773 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7244
28774 #: ../src/guestfs-actions.pod:7299
28775 msgid "(Added in 1.0.22)"
28776 msgstr "(Додано у 1.0.22)"
28777
28778 #. type: =head2
28779 #: ../src/guestfs-actions.pod:2854
28780 msgid "guestfs_initrd_cat"
28781 msgstr ""
28782
28783 #. type: verbatim
28784 #: ../src/guestfs-actions.pod:2856
28785 #, no-wrap
28786 msgid ""
28787 " char *\n"
28788 " guestfs_initrd_cat (guestfs_h *g,\n"
28789 "                     const char *initrdpath,\n"
28790 "                     const char *filename,\n"
28791 "                     size_t *size_r);\n"
28792 "\n"
28793 msgstr ""
28794
28795 #. type: textblock
28796 #: ../src/guestfs-actions.pod:2872
28797 msgid "See also C<guestfs_initrd_list>."
28798 msgstr ""
28799
28800 #. type: =head2
28801 #: ../src/guestfs-actions.pod:2883
28802 msgid "guestfs_initrd_list"
28803 msgstr ""
28804
28805 #. type: verbatim
28806 #: ../src/guestfs-actions.pod:2885
28807 #, no-wrap
28808 msgid ""
28809 " char **\n"
28810 " guestfs_initrd_list (guestfs_h *g,\n"
28811 "                      const char *path);\n"
28812 "\n"
28813 msgstr ""
28814
28815 #. type: =head2
28816 #: ../src/guestfs-actions.pod:2905
28817 msgid "guestfs_inotify_add_watch"
28818 msgstr ""
28819
28820 #. type: verbatim
28821 #: ../src/guestfs-actions.pod:2907
28822 #, no-wrap
28823 msgid ""
28824 " int64_t\n"
28825 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28826 "                            const char *path,\n"
28827 "                            int mask);\n"
28828 "\n"
28829 msgstr ""
28830
28831 #. type: =head2
28832 #: ../src/guestfs-actions.pod:2926
28833 msgid "guestfs_inotify_close"
28834 msgstr ""
28835
28836 #. type: verbatim
28837 #: ../src/guestfs-actions.pod:2928
28838 #, no-wrap
28839 msgid ""
28840 " int\n"
28841 " guestfs_inotify_close (guestfs_h *g);\n"
28842 "\n"
28843 msgstr ""
28844
28845 #. type: =head2
28846 #: ../src/guestfs-actions.pod:2939
28847 msgid "guestfs_inotify_files"
28848 msgstr ""
28849
28850 #. type: verbatim
28851 #: ../src/guestfs-actions.pod:2941
28852 #, no-wrap
28853 msgid ""
28854 " char **\n"
28855 " guestfs_inotify_files (guestfs_h *g);\n"
28856 "\n"
28857 msgstr ""
28858
28859 #. type: textblock
28860 #: ../src/guestfs-actions.pod:2944
28861 msgid ""
28862 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28863 "returns a list of pathnames of objects that were touched.  The returned "
28864 "pathnames are sorted and deduplicated."
28865 msgstr ""
28866
28867 #. type: =head2
28868 #: ../src/guestfs-actions.pod:2954
28869 msgid "guestfs_inotify_init"
28870 msgstr ""
28871
28872 #. type: verbatim
28873 #: ../src/guestfs-actions.pod:2956
28874 #, no-wrap
28875 msgid ""
28876 " int\n"
28877 " guestfs_inotify_init (guestfs_h *g,\n"
28878 "                       int maxevents);\n"
28879 "\n"
28880 msgstr ""
28881
28882 #. type: textblock
28883 #: ../src/guestfs-actions.pod:2964
28884 msgid ""
28885 "C<maxevents> is the maximum number of events which will be queued up between "
28886 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28887 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28888 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28889 "throws away events, but records the fact that it threw them away by setting "
28890 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28891 "C<guestfs_inotify_read>)."
28892 msgstr ""
28893
28894 #. type: textblock
28895 #: ../src/guestfs-actions.pod:2974
28896 msgid ""
28897 "Before any events are generated, you have to add some watches to the "
28898 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28899 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28900 msgstr ""
28901
28902 #. type: textblock
28903 #: ../src/guestfs-actions.pod:2980
28904 msgid ""
28905 "Queued up events should be read periodically by calling "
28906 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28907 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28908 "often enough then you risk the internal queue overflowing."
28909 msgstr ""
28910
28911 #. type: textblock
28912 #: ../src/guestfs-actions.pod:2987
28913 msgid ""
28914 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28915 "This also removes any watches automatically."
28916 msgstr ""
28917
28918 #. type: =head2
28919 #: ../src/guestfs-actions.pod:3000
28920 msgid "guestfs_inotify_read"
28921 msgstr ""
28922
28923 #. type: verbatim
28924 #: ../src/guestfs-actions.pod:3002
28925 #, no-wrap
28926 msgid ""
28927 " struct guestfs_inotify_event_list *\n"
28928 " guestfs_inotify_read (guestfs_h *g);\n"
28929 "\n"
28930 msgstr ""
28931
28932 #. type: textblock
28933 #: ../src/guestfs-actions.pod:3016
28934 msgid ""
28935 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28936 "there was an error.  I<The caller must call "
28937 "C<guestfs_free_inotify_event_list> after use>."
28938 msgstr ""
28939
28940 #. type: =head2
28941 #: ../src/guestfs-actions.pod:3022
28942 msgid "guestfs_inotify_rm_watch"
28943 msgstr ""
28944
28945 #. type: verbatim
28946 #: ../src/guestfs-actions.pod:3024
28947 #, no-wrap
28948 msgid ""
28949 " int\n"
28950 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28951 "                           int wd);\n"
28952 "\n"
28953 msgstr ""
28954
28955 #. type: textblock
28956 #: ../src/guestfs-actions.pod:3028
28957 msgid ""
28958 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
28959 msgstr ""
28960
28961 #. type: =head2
28962 #: ../src/guestfs-actions.pod:3035
28963 msgid "guestfs_inspect_get_arch"
28964 msgstr ""
28965
28966 #. type: verbatim
28967 #: ../src/guestfs-actions.pod:3037
28968 #, no-wrap
28969 msgid ""
28970 " char *\n"
28971 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28972 "                           const char *root);\n"
28973 "\n"
28974 msgstr ""
28975
28976 #. type: textblock
28977 #: ../src/guestfs-actions.pod:3041
28978 msgid ""
28979 "This returns the architecture of the inspected operating system.  The "
28980 "possible return values are listed under C<guestfs_file_architecture>."
28981 msgstr ""
28982
28983 #. type: =head2
28984 #: ../src/guestfs-actions.pod:3055
28985 msgid "guestfs_inspect_get_distro"
28986 msgstr ""
28987
28988 #. type: verbatim
28989 #: ../src/guestfs-actions.pod:3057
28990 #, no-wrap
28991 msgid ""
28992 " char *\n"
28993 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28994 "                             const char *root);\n"
28995 "\n"
28996 msgstr ""
28997
28998 #. type: =head2
28999 #: ../src/guestfs-actions.pod:3157
29000 msgid "guestfs_inspect_get_drive_mappings"
29001 msgstr ""
29002
29003 #. type: verbatim
29004 #: ../src/guestfs-actions.pod:3159
29005 #, no-wrap
29006 msgid ""
29007 " char **\n"
29008 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
29009 "                                     const char *root);\n"
29010 "\n"
29011 msgstr ""
29012
29013 #. type: textblock
29014 #: ../src/guestfs-actions.pod:3188
29015 msgid ""
29016 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29017 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
29018 msgstr ""
29019
29020 #. type: textblock
29021 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
29022 #: ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5526
29023 #: ../src/guestfs-actions.pod:7601
29024 msgid ""
29025 "This function returns a NULL-terminated array of strings, or NULL if there "
29026 "was an error.  The array of strings will always have length C<2n+1>, where "
29027 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
29028 "caller must free the strings and the array after use>."
29029 msgstr ""
29030
29031 #. type: textblock
29032 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
29033 msgid "(Added in 1.9.17)"
29034 msgstr "(Додано у 1.9.17)"
29035
29036 #. type: =head2
29037 #: ../src/guestfs-actions.pod:3200
29038 msgid "guestfs_inspect_get_filesystems"
29039 msgstr ""
29040
29041 #. type: verbatim
29042 #: ../src/guestfs-actions.pod:3202
29043 #, no-wrap
29044 msgid ""
29045 " char **\n"
29046 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29047 "                                  const char *root);\n"
29048 "\n"
29049 msgstr ""
29050
29051 #. type: textblock
29052 #: ../src/guestfs-actions.pod:3214
29053 msgid ""
29054 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29055 "C<guestfs_inspect_get_mountpoints>."
29056 msgstr ""
29057
29058 #. type: =head2
29059 #: ../src/guestfs-actions.pod:3223
29060 msgid "guestfs_inspect_get_format"
29061 msgstr ""
29062
29063 #. type: verbatim
29064 #: ../src/guestfs-actions.pod:3225
29065 #, no-wrap
29066 msgid ""
29067 " char *\n"
29068 " guestfs_inspect_get_format (guestfs_h *g,\n"
29069 "                             const char *root);\n"
29070 "\n"
29071 msgstr ""
29072
29073 #. type: textblock
29074 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695
29075 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
29076 #: ../src/guestfs-actions.pod:6493
29077 msgid "(Added in 1.9.4)"
29078 msgstr "(Додано у 1.9.4)"
29079
29080 #. type: =head2
29081 #: ../src/guestfs-actions.pod:3261
29082 msgid "guestfs_inspect_get_hostname"
29083 msgstr ""
29084
29085 #. type: verbatim
29086 #: ../src/guestfs-actions.pod:3263
29087 #, no-wrap
29088 msgid ""
29089 " char *\n"
29090 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29091 "                               const char *root);\n"
29092 "\n"
29093 msgstr ""
29094
29095 #. type: textblock
29096 #: ../src/guestfs-actions.pod:3278
29097 msgid "(Added in 1.7.9)"
29098 msgstr "(Додано у 1.7.9)"
29099
29100 #. type: =head2
29101 #: ../src/guestfs-actions.pod:3280
29102 msgid "guestfs_inspect_get_icon"
29103 msgstr ""
29104
29105 #. type: verbatim
29106 #: ../src/guestfs-actions.pod:3282
29107 #, no-wrap
29108 msgid ""
29109 " char *\n"
29110 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29111 "                           const char *root,\n"
29112 "                           size_t *size_r,\n"
29113 "                           ...);\n"
29114 "\n"
29115 msgstr ""
29116
29117 #. type: verbatim
29118 #: ../src/guestfs-actions.pod:3293
29119 #, no-wrap
29120 msgid ""
29121 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29122 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29123 "\n"
29124 msgstr ""
29125
29126 #. type: textblock
29127 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190
29128 #: ../src/guestfs-actions.pod:5425
29129 msgid "(Added in 1.11.12)"
29130 msgstr "(Додано у 1.11.12)"
29131
29132 #. type: =head2
29133 #: ../src/guestfs-actions.pod:3362
29134 msgid "guestfs_inspect_get_icon_va"
29135 msgstr ""
29136
29137 #. type: verbatim
29138 #: ../src/guestfs-actions.pod:3364
29139 #, no-wrap
29140 msgid ""
29141 " char *\n"
29142 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29143 "                              const char *root,\n"
29144 "                              size_t *size_r,\n"
29145 "                              va_list args);\n"
29146 "\n"
29147 msgstr ""
29148
29149 #. type: textblock
29150 #: ../src/guestfs-actions.pod:3370
29151 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29152 msgstr ""
29153
29154 #. type: =head2
29155 #: ../src/guestfs-actions.pod:3374
29156 msgid "guestfs_inspect_get_icon_argv"
29157 msgstr ""
29158
29159 #. type: verbatim
29160 #: ../src/guestfs-actions.pod:3376
29161 #, no-wrap
29162 msgid ""
29163 " char *\n"
29164 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29165 "                                const char *root,\n"
29166 "                                size_t *size_r,\n"
29167 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
29168 "\n"
29169 msgstr ""
29170
29171 #. type: textblock
29172 #: ../src/guestfs-actions.pod:3382
29173 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29174 msgstr ""
29175
29176 #. type: =head2
29177 #: ../src/guestfs-actions.pod:3386
29178 msgid "guestfs_inspect_get_major_version"
29179 msgstr ""
29180
29181 #. type: verbatim
29182 #: ../src/guestfs-actions.pod:3388
29183 #, no-wrap
29184 msgid ""
29185 " int\n"
29186 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29187 "                                    const char *root);\n"
29188 "\n"
29189 msgstr ""
29190
29191 #. type: =head2
29192 #: ../src/guestfs-actions.pod:3410
29193 msgid "guestfs_inspect_get_minor_version"
29194 msgstr ""
29195
29196 #. type: verbatim
29197 #: ../src/guestfs-actions.pod:3412
29198 #, no-wrap
29199 msgid ""
29200 " int\n"
29201 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29202 "                                    const char *root);\n"
29203 "\n"
29204 msgstr ""
29205
29206 #. type: textblock
29207 #: ../src/guestfs-actions.pod:3421
29208 msgid ""
29209 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29210 "C<guestfs_inspect_get_major_version>."
29211 msgstr ""
29212
29213 #. type: =head2
29214 #: ../src/guestfs-actions.pod:3428
29215 msgid "guestfs_inspect_get_mountpoints"
29216 msgstr ""
29217
29218 #. type: verbatim
29219 #: ../src/guestfs-actions.pod:3430
29220 #, no-wrap
29221 msgid ""
29222 " char **\n"
29223 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29224 "                                  const char *root);\n"
29225 "\n"
29226 msgstr ""
29227
29228 #. type: textblock
29229 #: ../src/guestfs-actions.pod:3451
29230 msgid ""
29231 "For operating systems like Windows which still use drive letters, this call "
29232 "will only return an entry for the first drive \"mounted on\" C</>.  For "
29233 "information about the mapping of drive letters to partitions, see "
29234 "C<guestfs_inspect_get_drive_mappings>."
29235 msgstr ""
29236
29237 #. type: textblock
29238 #: ../src/guestfs-actions.pod:3457
29239 msgid ""
29240 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29241 "C<guestfs_inspect_get_filesystems>."
29242 msgstr ""
29243
29244 #. type: =head2
29245 #: ../src/guestfs-actions.pod:3468
29246 msgid "guestfs_inspect_get_package_format"
29247 msgstr ""
29248
29249 #. type: verbatim
29250 #: ../src/guestfs-actions.pod:3470
29251 #, no-wrap
29252 msgid ""
29253 " char *\n"
29254 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29255 "                                     const char *root);\n"
29256 "\n"
29257 msgstr ""
29258
29259 #. type: textblock
29260 #: ../src/guestfs-actions.pod:3474
29261 msgid ""
29262 "This function and C<guestfs_inspect_get_package_management> return the "
29263 "package format and package management tool used by the inspected operating "
29264 "system.  For example for Fedora these functions would return C<rpm> (package "
29265 "format) and C<yum> (package management)."
29266 msgstr ""
29267
29268 #. type: textblock
29269 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
29270 msgid "(Added in 1.7.5)"
29271 msgstr "(Додано у 1.7.5)"
29272
29273 #. type: =head2
29274 #: ../src/guestfs-actions.pod:3495
29275 msgid "guestfs_inspect_get_package_management"
29276 msgstr ""
29277
29278 #. type: verbatim
29279 #: ../src/guestfs-actions.pod:3497
29280 #, no-wrap
29281 msgid ""
29282 " char *\n"
29283 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29284 "                                         const char *root);\n"
29285 "\n"
29286 msgstr ""
29287
29288 #. type: textblock
29289 #: ../src/guestfs-actions.pod:3501
29290 msgid ""
29291 "C<guestfs_inspect_get_package_format> and this function return the package "
29292 "format and package management tool used by the inspected operating system.  "
29293 "For example for Fedora these functions would return C<rpm> (package format) "
29294 "and C<yum> (package management)."
29295 msgstr ""
29296
29297 #. type: =head2
29298 #: ../src/guestfs-actions.pod:3523
29299 msgid "guestfs_inspect_get_product_name"
29300 msgstr ""
29301
29302 #. type: verbatim
29303 #: ../src/guestfs-actions.pod:3525
29304 #, no-wrap
29305 msgid ""
29306 " char *\n"
29307 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29308 "                                   const char *root);\n"
29309 "\n"
29310 msgstr ""
29311
29312 #. type: =head2
29313 #: ../src/guestfs-actions.pod:3544
29314 msgid "guestfs_inspect_get_product_variant"
29315 msgstr ""
29316
29317 #. type: verbatim
29318 #: ../src/guestfs-actions.pod:3546
29319 #, no-wrap
29320 msgid ""
29321 " char *\n"
29322 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29323 "                                      const char *root);\n"
29324 "\n"
29325 msgstr ""
29326
29327 #. type: textblock
29328 #: ../src/guestfs-actions.pod:3569
29329 msgid ""
29330 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29331 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29332 msgstr ""
29333
29334 #. type: textblock
29335 #: ../src/guestfs-actions.pod:3576
29336 msgid "(Added in 1.9.13)"
29337 msgstr "(Додано у 1.9.13)"
29338
29339 #. type: =head2
29340 #: ../src/guestfs-actions.pod:3578
29341 msgid "guestfs_inspect_get_roots"
29342 msgstr ""
29343
29344 #. type: verbatim
29345 #: ../src/guestfs-actions.pod:3580
29346 #, no-wrap
29347 msgid ""
29348 " char **\n"
29349 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29350 "\n"
29351 msgstr ""
29352
29353 #. type: textblock
29354 #: ../src/guestfs-actions.pod:3583
29355 msgid ""
29356 "This function is a convenient way to get the list of root devices, as "
29357 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29358 "the whole inspection process."
29359 msgstr ""
29360
29361 #. type: textblock
29362 #: ../src/guestfs-actions.pod:3587
29363 msgid ""
29364 "This returns an empty list if either no root devices were found or the "
29365 "caller has not called C<guestfs_inspect_os>."
29366 msgstr ""
29367
29368 #. type: textblock
29369 #: ../src/guestfs-actions.pod:3596
29370 msgid "(Added in 1.7.3)"
29371 msgstr "(Додано у 1.7.3)"
29372
29373 #. type: =head2
29374 #: ../src/guestfs-actions.pod:3598
29375 msgid "guestfs_inspect_get_type"
29376 msgstr ""
29377
29378 #. type: verbatim
29379 #: ../src/guestfs-actions.pod:3600
29380 #, no-wrap
29381 msgid ""
29382 " char *\n"
29383 " guestfs_inspect_get_type (guestfs_h *g,\n"
29384 "                           const char *root);\n"
29385 "\n"
29386 msgstr ""
29387
29388 #. type: =head2
29389 #: ../src/guestfs-actions.pod:3641
29390 msgid "guestfs_inspect_get_windows_current_control_set"
29391 msgstr ""
29392
29393 #. type: verbatim
29394 #: ../src/guestfs-actions.pod:3643
29395 #, no-wrap
29396 msgid ""
29397 " char *\n"
29398 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29399 "                                                  const char *root);\n"
29400 "\n"
29401 msgstr ""
29402
29403 #. type: =head2
29404 #: ../src/guestfs-actions.pod:3661
29405 msgid "guestfs_inspect_get_windows_systemroot"
29406 msgstr ""
29407
29408 #. type: verbatim
29409 #: ../src/guestfs-actions.pod:3663
29410 #, no-wrap
29411 msgid ""
29412 " char *\n"
29413 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29414 "                                         const char *root);\n"
29415 "\n"
29416 msgstr ""
29417
29418 #. type: textblock
29419 #: ../src/guestfs-actions.pod:3679
29420 msgid "(Added in 1.5.25)"
29421 msgstr "(Додано у 1.5.25)"
29422
29423 #. type: =head2
29424 #: ../src/guestfs-actions.pod:3681
29425 msgid "guestfs_inspect_is_live"
29426 msgstr ""
29427
29428 #. type: verbatim
29429 #: ../src/guestfs-actions.pod:3683
29430 #, no-wrap
29431 msgid ""
29432 " int\n"
29433 " guestfs_inspect_is_live (guestfs_h *g,\n"
29434 "                          const char *root);\n"
29435 "\n"
29436 msgstr ""
29437
29438 #. type: textblock
29439 #: ../src/guestfs-actions.pod:3687
29440 msgid ""
29441 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29442 "disk), then this returns true if a live image was detected on the disk."
29443 msgstr ""
29444
29445 #. type: =head2
29446 #: ../src/guestfs-actions.pod:3697
29447 msgid "guestfs_inspect_is_multipart"
29448 msgstr ""
29449
29450 #. type: verbatim
29451 #: ../src/guestfs-actions.pod:3699
29452 #, no-wrap
29453 msgid ""
29454 " int\n"
29455 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29456 "                               const char *root);\n"
29457 "\n"
29458 msgstr ""
29459
29460 #. type: textblock
29461 #: ../src/guestfs-actions.pod:3703
29462 msgid ""
29463 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29464 "disk), then this returns true if the disk is part of a set."
29465 msgstr ""
29466
29467 #. type: =head2
29468 #: ../src/guestfs-actions.pod:3713
29469 msgid "guestfs_inspect_is_netinst"
29470 msgstr ""
29471
29472 #. type: verbatim
29473 #: ../src/guestfs-actions.pod:3715
29474 #, no-wrap
29475 msgid ""
29476 " int\n"
29477 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29478 "                             const char *root);\n"
29479 "\n"
29480 msgstr ""
29481
29482 #. type: textblock
29483 #: ../src/guestfs-actions.pod:3719
29484 msgid ""
29485 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29486 "disk), then this returns true if the disk is a network installer, ie. not a "
29487 "self-contained install CD but one which is likely to require network access "
29488 "to complete the install."
29489 msgstr ""
29490
29491 #. type: =head2
29492 #: ../src/guestfs-actions.pod:3731
29493 msgid "guestfs_inspect_list_applications"
29494 msgstr ""
29495
29496 #. type: verbatim
29497 #: ../src/guestfs-actions.pod:3733
29498 #, no-wrap
29499 msgid ""
29500 " struct guestfs_application_list *\n"
29501 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29502 "                                    const char *root);\n"
29503 "\n"
29504 msgstr ""
29505
29506 #. type: textblock
29507 #: ../src/guestfs-actions.pod:3739
29508 msgid ""
29509 "I<Note:> This call works differently from other parts of the inspection "
29510 "API.  You have to call C<guestfs_inspect_os>, then "
29511 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29512 "this.  Listing applications is a significantly more difficult operation "
29513 "which requires access to the full filesystem.  Also note that unlike the "
29514 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29515 "the libguestfs handle, this call actually reads parts of the mounted "
29516 "filesystems during the call."
29517 msgstr ""
29518
29519 #. type: textblock
29520 #: ../src/guestfs-actions.pod:3829
29521 msgid ""
29522 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29523 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
29524 "after use>."
29525 msgstr ""
29526
29527 #. type: textblock
29528 #: ../src/guestfs-actions.pod:3833
29529 msgid "(Added in 1.7.8)"
29530 msgstr "(Додано у 1.7.8)"
29531
29532 #. type: =head2
29533 #: ../src/guestfs-actions.pod:3835
29534 msgid "guestfs_inspect_os"
29535 msgstr ""
29536
29537 #. type: verbatim
29538 #: ../src/guestfs-actions.pod:3837
29539 #, no-wrap
29540 msgid ""
29541 " char **\n"
29542 " guestfs_inspect_os (guestfs_h *g);\n"
29543 "\n"
29544 msgstr ""
29545
29546 #. type: textblock
29547 #: ../src/guestfs-actions.pod:3853
29548 msgid ""
29549 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29550 "functions in order to query further information about each operating system, "
29551 "such as the name and version."
29552 msgstr ""
29553
29554 #. type: textblock
29555 #: ../src/guestfs-actions.pod:3858
29556 msgid ""
29557 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29558 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29559 "the contents.  This should be called with no disks currently mounted.  The "
29560 "function may also use Augeas, so any existing Augeas handle will be closed."
29561 msgstr ""
29562
29563 #. type: textblock
29564 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201
29565 #: ../src/guestfs-actions.pod:4283
29566 msgid "See also C<guestfs_list_filesystems>."
29567 msgstr ""
29568
29569 #. type: =head2
29570 #: ../src/guestfs-actions.pod:3878
29571 msgid "guestfs_is_blockdev"
29572 msgstr ""
29573
29574 #. type: verbatim
29575 #: ../src/guestfs-actions.pod:3880
29576 #, no-wrap
29577 msgid ""
29578 " int\n"
29579 " guestfs_is_blockdev (guestfs_h *g,\n"
29580 "                      const char *path);\n"
29581 "\n"
29582 msgstr ""
29583
29584 #. type: textblock
29585 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916
29586 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961
29587 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033
29588 #: ../src/guestfs-actions.pod:4048
29589 msgid "See also C<guestfs_stat>."
29590 msgstr ""
29591
29592 #. type: textblock
29593 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
29594 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037
29595 #: ../src/guestfs-actions.pod:4052
29596 msgid "(Added in 1.5.10)"
29597 msgstr "(Додано у 1.5.10)"
29598
29599 #. type: =head2
29600 #: ../src/guestfs-actions.pod:3893
29601 msgid "guestfs_is_busy"
29602 msgstr ""
29603
29604 #. type: verbatim
29605 #: ../src/guestfs-actions.pod:3895
29606 #, no-wrap
29607 msgid ""
29608 " int\n"
29609 " guestfs_is_busy (guestfs_h *g);\n"
29610 "\n"
29611 msgstr ""
29612
29613 #. type: =head2
29614 #: ../src/guestfs-actions.pod:3907
29615 msgid "guestfs_is_chardev"
29616 msgstr ""
29617
29618 #. type: verbatim
29619 #: ../src/guestfs-actions.pod:3909
29620 #, no-wrap
29621 msgid ""
29622 " int\n"
29623 " guestfs_is_chardev (guestfs_h *g,\n"
29624 "                     const char *path);\n"
29625 "\n"
29626 msgstr ""
29627
29628 #. type: =head2
29629 #: ../src/guestfs-actions.pod:3922
29630 msgid "guestfs_is_config"
29631 msgstr ""
29632
29633 #. type: verbatim
29634 #: ../src/guestfs-actions.pod:3924
29635 #, no-wrap
29636 msgid ""
29637 " int\n"
29638 " guestfs_is_config (guestfs_h *g);\n"
29639 "\n"
29640 msgstr ""
29641
29642 #. type: =head2
29643 #: ../src/guestfs-actions.pod:3936
29644 msgid "guestfs_is_dir"
29645 msgstr ""
29646
29647 #. type: verbatim
29648 #: ../src/guestfs-actions.pod:3938
29649 #, no-wrap
29650 msgid ""
29651 " int\n"
29652 " guestfs_is_dir (guestfs_h *g,\n"
29653 "                 const char *path);\n"
29654 "\n"
29655 msgstr ""
29656
29657 #. type: =head2
29658 #: ../src/guestfs-actions.pod:3952
29659 msgid "guestfs_is_fifo"
29660 msgstr ""
29661
29662 #. type: verbatim
29663 #: ../src/guestfs-actions.pod:3954
29664 #, no-wrap
29665 msgid ""
29666 " int\n"
29667 " guestfs_is_fifo (guestfs_h *g,\n"
29668 "                  const char *path);\n"
29669 "\n"
29670 msgstr ""
29671
29672 #. type: =head2
29673 #: ../src/guestfs-actions.pod:3967
29674 msgid "guestfs_is_file"
29675 msgstr ""
29676
29677 #. type: verbatim
29678 #: ../src/guestfs-actions.pod:3969
29679 #, no-wrap
29680 msgid ""
29681 " int\n"
29682 " guestfs_is_file (guestfs_h *g,\n"
29683 "                  const char *path);\n"
29684 "\n"
29685 msgstr ""
29686
29687 #. type: =head2
29688 #: ../src/guestfs-actions.pod:3983
29689 msgid "guestfs_is_launching"
29690 msgstr ""
29691
29692 #. type: verbatim
29693 #: ../src/guestfs-actions.pod:3985
29694 #, no-wrap
29695 msgid ""
29696 " int\n"
29697 " guestfs_is_launching (guestfs_h *g);\n"
29698 "\n"
29699 msgstr ""
29700
29701 #. type: =head2
29702 #: ../src/guestfs-actions.pod:3997
29703 msgid "guestfs_is_lv"
29704 msgstr ""
29705
29706 #. type: verbatim
29707 #: ../src/guestfs-actions.pod:3999
29708 #, no-wrap
29709 msgid ""
29710 " int\n"
29711 " guestfs_is_lv (guestfs_h *g,\n"
29712 "                const char *device);\n"
29713 "\n"
29714 msgstr ""
29715
29716 #. type: =head2
29717 #: ../src/guestfs-actions.pod:4010
29718 msgid "guestfs_is_ready"
29719 msgstr ""
29720
29721 #. type: verbatim
29722 #: ../src/guestfs-actions.pod:4012
29723 #, no-wrap
29724 msgid ""
29725 " int\n"
29726 " guestfs_is_ready (guestfs_h *g);\n"
29727 "\n"
29728 msgstr ""
29729
29730 #. type: =head2
29731 #: ../src/guestfs-actions.pod:4024
29732 msgid "guestfs_is_socket"
29733 msgstr ""
29734
29735 #. type: verbatim
29736 #: ../src/guestfs-actions.pod:4026
29737 #, no-wrap
29738 msgid ""
29739 " int\n"
29740 " guestfs_is_socket (guestfs_h *g,\n"
29741 "                    const char *path);\n"
29742 "\n"
29743 msgstr ""
29744
29745 #. type: =head2
29746 #: ../src/guestfs-actions.pod:4039
29747 msgid "guestfs_is_symlink"
29748 msgstr ""
29749
29750 #. type: verbatim
29751 #: ../src/guestfs-actions.pod:4041
29752 #, no-wrap
29753 msgid ""
29754 " int\n"
29755 " guestfs_is_symlink (guestfs_h *g,\n"
29756 "                     const char *path);\n"
29757 "\n"
29758 msgstr ""
29759
29760 #. type: =head2
29761 #: ../src/guestfs-actions.pod:4054
29762 msgid "guestfs_is_zero"
29763 msgstr ""
29764
29765 #. type: verbatim
29766 #: ../src/guestfs-actions.pod:4056
29767 #, no-wrap
29768 msgid ""
29769 " int\n"
29770 " guestfs_is_zero (guestfs_h *g,\n"
29771 "                  const char *path);\n"
29772 "\n"
29773 msgstr ""
29774
29775 #. type: textblock
29776 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
29777 msgid "(Added in 1.11.8)"
29778 msgstr "(Додано у 1.11.8)"
29779
29780 #. type: =head2
29781 #: ../src/guestfs-actions.pod:4067
29782 msgid "guestfs_is_zero_device"
29783 msgstr ""
29784
29785 #. type: verbatim
29786 #: ../src/guestfs-actions.pod:4069
29787 #, no-wrap
29788 msgid ""
29789 " int\n"
29790 " guestfs_is_zero_device (guestfs_h *g,\n"
29791 "                         const char *device);\n"
29792 "\n"
29793 msgstr ""
29794
29795 #. type: =head2
29796 #: ../src/guestfs-actions.pod:4081
29797 msgid "guestfs_kill_subprocess"
29798 msgstr ""
29799
29800 #. type: verbatim
29801 #: ../src/guestfs-actions.pod:4083
29802 #, no-wrap
29803 msgid ""
29804 " int\n"
29805 " guestfs_kill_subprocess (guestfs_h *g);\n"
29806 "\n"
29807 msgstr ""
29808
29809 #. type: =head2
29810 #: ../src/guestfs-actions.pod:4092
29811 msgid "guestfs_launch"
29812 msgstr ""
29813
29814 #. type: verbatim
29815 #: ../src/guestfs-actions.pod:4094
29816 #, no-wrap
29817 msgid ""
29818 " int\n"
29819 " guestfs_launch (guestfs_h *g);\n"
29820 "\n"
29821 msgstr ""
29822
29823 #. type: =head2
29824 #: ../src/guestfs-actions.pod:4112
29825 msgid "guestfs_lchown"
29826 msgstr ""
29827
29828 #. type: verbatim
29829 #: ../src/guestfs-actions.pod:4114
29830 #, no-wrap
29831 msgid ""
29832 " int\n"
29833 " guestfs_lchown (guestfs_h *g,\n"
29834 "                 int owner,\n"
29835 "                 int group,\n"
29836 "                 const char *path);\n"
29837 "\n"
29838 msgstr ""
29839
29840 #. type: textblock
29841 #: ../src/guestfs-actions.pod:4120
29842 msgid ""
29843 "Change the file owner to C<owner> and group to C<group>.  This is like "
29844 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29845 "changed, not the target."
29846 msgstr ""
29847
29848 #. type: =head2
29849 #: ../src/guestfs-actions.pod:4132
29850 msgid "guestfs_lgetxattr"
29851 msgstr ""
29852
29853 #. type: verbatim
29854 #: ../src/guestfs-actions.pod:4134
29855 #, no-wrap
29856 msgid ""
29857 " char *\n"
29858 " guestfs_lgetxattr (guestfs_h *g,\n"
29859 "                    const char *path,\n"
29860 "                    const char *name,\n"
29861 "                    size_t *size_r);\n"
29862 "\n"
29863 msgstr ""
29864
29865 #. type: textblock
29866 #: ../src/guestfs-actions.pod:4154
29867 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29868 msgstr ""
29869
29870 #. type: =head2
29871 #: ../src/guestfs-actions.pod:4162
29872 msgid "guestfs_lgetxattrs"
29873 msgstr ""
29874
29875 #. type: verbatim
29876 #: ../src/guestfs-actions.pod:4164
29877 #, no-wrap
29878 msgid ""
29879 " struct guestfs_xattr_list *\n"
29880 " guestfs_lgetxattrs (guestfs_h *g,\n"
29881 "                     const char *path);\n"
29882 "\n"
29883 msgstr ""
29884
29885 #. type: textblock
29886 #: ../src/guestfs-actions.pod:4168
29887 msgid ""
29888 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29889 "then it returns the extended attributes of the link itself."
29890 msgstr ""
29891
29892 #. type: =head2
29893 #: ../src/guestfs-actions.pod:4178
29894 msgid "guestfs_list_9p"
29895 msgstr ""
29896
29897 #. type: verbatim
29898 #: ../src/guestfs-actions.pod:4180
29899 #, no-wrap
29900 msgid ""
29901 " char **\n"
29902 " guestfs_list_9p (guestfs_h *g);\n"
29903 "\n"
29904 msgstr ""
29905
29906 #. type: =head2
29907 #: ../src/guestfs-actions.pod:4192
29908 msgid "guestfs_list_devices"
29909 msgstr ""
29910
29911 #. type: verbatim
29912 #: ../src/guestfs-actions.pod:4194
29913 #, no-wrap
29914 msgid ""
29915 " char **\n"
29916 " guestfs_list_devices (guestfs_h *g);\n"
29917 "\n"
29918 msgstr ""
29919
29920 #. type: =head2
29921 #: ../src/guestfs-actions.pod:4209
29922 msgid "guestfs_list_dm_devices"
29923 msgstr ""
29924
29925 #. type: verbatim
29926 #: ../src/guestfs-actions.pod:4211
29927 #, no-wrap
29928 msgid ""
29929 " char **\n"
29930 " guestfs_list_dm_devices (guestfs_h *g);\n"
29931 "\n"
29932 msgstr ""
29933
29934 #. type: textblock
29935 #: ../src/guestfs-actions.pod:4216
29936 msgid ""
29937 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29938 "previous call to C<guestfs_luks_open>."
29939 msgstr ""
29940
29941 #. type: textblock
29942 #: ../src/guestfs-actions.pod:4219
29943 msgid ""
29944 "Device mapper devices which correspond to logical volumes are I<not> "
29945 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29946 "volumes."
29947 msgstr ""
29948
29949 #. type: textblock
29950 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5664
29951 msgid "(Added in 1.11.15)"
29952 msgstr "(Додано у 1.11.15)"
29953
29954 #. type: =head2
29955 #: ../src/guestfs-actions.pod:4229
29956 msgid "guestfs_list_filesystems"
29957 msgstr ""
29958
29959 #. type: verbatim
29960 #: ../src/guestfs-actions.pod:4231
29961 #, no-wrap
29962 msgid ""
29963 " char **\n"
29964 " guestfs_list_filesystems (guestfs_h *g);\n"
29965 "\n"
29966 msgstr ""
29967
29968 #. type: textblock
29969 #: ../src/guestfs-actions.pod:4251
29970 msgid ""
29971 "This command runs other libguestfs commands, which might include "
29972 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29973 "soon after launch and only when nothing is mounted."
29974 msgstr ""
29975
29976 #. type: textblock
29977 #: ../src/guestfs-actions.pod:4255
29978 msgid ""
29979 "Not all of the filesystems returned will be mountable.  In particular, swap "
29980 "partitions are returned in the list.  Also this command does not check that "
29981 "each filesystem found is valid and mountable, and some filesystems might be "
29982 "mountable but require special options.  Filesystems may not all belong to a "
29983 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29984 msgstr ""
29985
29986 #. type: textblock
29987 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6024
29988 msgid "(Added in 1.5.15)"
29989 msgstr "(Додано у 1.5.15)"
29990
29991 #. type: =head2
29992 #: ../src/guestfs-actions.pod:4271
29993 msgid "guestfs_list_partitions"
29994 msgstr "guestfs_list_partitions"
29995
29996 #. type: verbatim
29997 #: ../src/guestfs-actions.pod:4273
29998 #, no-wrap
29999 msgid ""
30000 " char **\n"
30001 " guestfs_list_partitions (guestfs_h *g);\n"
30002 "\n"
30003 msgstr ""
30004 " char **\n"
30005 " guestfs_list_partitions (guestfs_h *g);\n"
30006 "\n"
30007
30008 #. type: textblock
30009 #: ../src/guestfs-actions.pod:4280
30010 msgid ""
30011 "This does not return logical volumes.  For that you will need to call "
30012 "C<guestfs_lvs>."
30013 msgstr ""
30014
30015 #. type: =head2
30016 #: ../src/guestfs-actions.pod:4291
30017 msgid "guestfs_ll"
30018 msgstr "guestfs_ll"
30019
30020 #. type: verbatim
30021 #: ../src/guestfs-actions.pod:4293
30022 #, no-wrap
30023 msgid ""
30024 " char *\n"
30025 " guestfs_ll (guestfs_h *g,\n"
30026 "             const char *directory);\n"
30027 "\n"
30028 msgstr ""
30029 " char *\n"
30030 " guestfs_ll (guestfs_h *g,\n"
30031 "             const char *directory);\n"
30032 "\n"
30033
30034 #. type: =head2
30035 #: ../src/guestfs-actions.pod:4308
30036 msgid "guestfs_ln"
30037 msgstr "guestfs_ln"
30038
30039 #. type: verbatim
30040 #: ../src/guestfs-actions.pod:4310
30041 #, no-wrap
30042 msgid ""
30043 " int\n"
30044 " guestfs_ln (guestfs_h *g,\n"
30045 "             const char *target,\n"
30046 "             const char *linkname);\n"
30047 "\n"
30048 msgstr ""
30049 " int\n"
30050 " guestfs_ln (guestfs_h *g,\n"
30051 "             const char *target,\n"
30052 "             const char *linkname);\n"
30053 "\n"
30054
30055 #. type: =head2
30056 #: ../src/guestfs-actions.pod:4321
30057 msgid "guestfs_ln_f"
30058 msgstr "guestfs_ln_f"
30059
30060 #. type: verbatim
30061 #: ../src/guestfs-actions.pod:4323
30062 #, no-wrap
30063 msgid ""
30064 " int\n"
30065 " guestfs_ln_f (guestfs_h *g,\n"
30066 "               const char *target,\n"
30067 "               const char *linkname);\n"
30068 "\n"
30069 msgstr ""
30070 " int\n"
30071 " guestfs_ln_f (guestfs_h *g,\n"
30072 "               const char *target,\n"
30073 "               const char *linkname);\n"
30074 "\n"
30075
30076 #. type: =head2
30077 #: ../src/guestfs-actions.pod:4335
30078 msgid "guestfs_ln_s"
30079 msgstr "guestfs_ln_s"
30080
30081 #. type: verbatim
30082 #: ../src/guestfs-actions.pod:4337
30083 #, no-wrap
30084 msgid ""
30085 " int\n"
30086 " guestfs_ln_s (guestfs_h *g,\n"
30087 "               const char *target,\n"
30088 "               const char *linkname);\n"
30089 "\n"
30090 msgstr ""
30091 " int\n"
30092 " guestfs_ln_s (guestfs_h *g,\n"
30093 "               const char *target,\n"
30094 "               const char *linkname);\n"
30095 "\n"
30096
30097 #. type: =head2
30098 #: ../src/guestfs-actions.pod:4348
30099 msgid "guestfs_ln_sf"
30100 msgstr "guestfs_ln_sf"
30101
30102 #. type: verbatim
30103 #: ../src/guestfs-actions.pod:4350
30104 #, no-wrap
30105 msgid ""
30106 " int\n"
30107 " guestfs_ln_sf (guestfs_h *g,\n"
30108 "                const char *target,\n"
30109 "                const char *linkname);\n"
30110 "\n"
30111 msgstr ""
30112 " int\n"
30113 " guestfs_ln_sf (guestfs_h *g,\n"
30114 "                const char *target,\n"
30115 "                const char *linkname);\n"
30116 "\n"
30117
30118 #. type: =head2
30119 #: ../src/guestfs-actions.pod:4362
30120 msgid "guestfs_lremovexattr"
30121 msgstr "guestfs_lremovexattr"
30122
30123 #. type: verbatim
30124 #: ../src/guestfs-actions.pod:4364
30125 #, no-wrap
30126 msgid ""
30127 " int\n"
30128 " guestfs_lremovexattr (guestfs_h *g,\n"
30129 "                       const char *xattr,\n"
30130 "                       const char *path);\n"
30131 "\n"
30132 msgstr ""
30133 " int\n"
30134 " guestfs_lremovexattr (guestfs_h *g,\n"
30135 "                       const char *xattr,\n"
30136 "                       const char *path);\n"
30137 "\n"
30138
30139 #. type: textblock
30140 #: ../src/guestfs-actions.pod:4369
30141 msgid ""
30142 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30143 "link, then it removes an extended attribute of the link itself."
30144 msgstr ""
30145
30146 #. type: =head2
30147 #: ../src/guestfs-actions.pod:4377
30148 msgid "guestfs_ls"
30149 msgstr "guestfs_ls"
30150
30151 #. type: verbatim
30152 #: ../src/guestfs-actions.pod:4379
30153 #, no-wrap
30154 msgid ""
30155 " char **\n"
30156 " guestfs_ls (guestfs_h *g,\n"
30157 "             const char *directory);\n"
30158 "\n"
30159 msgstr ""
30160 " char **\n"
30161 " guestfs_ls (guestfs_h *g,\n"
30162 "             const char *directory);\n"
30163 "\n"
30164
30165 #. type: textblock
30166 #: ../src/guestfs-actions.pod:4387
30167 msgid ""
30168 "This command is mostly useful for interactive sessions.  Programs should "
30169 "probably use C<guestfs_readdir> instead."
30170 msgstr ""
30171
30172 #. type: =head2
30173 #: ../src/guestfs-actions.pod:4396
30174 msgid "guestfs_lsetxattr"
30175 msgstr "guestfs_lsetxattr"
30176
30177 #. type: verbatim
30178 #: ../src/guestfs-actions.pod:4398
30179 #, no-wrap
30180 msgid ""
30181 " int\n"
30182 " guestfs_lsetxattr (guestfs_h *g,\n"
30183 "                    const char *xattr,\n"
30184 "                    const char *val,\n"
30185 "                    int vallen,\n"
30186 "                    const char *path);\n"
30187 "\n"
30188 msgstr ""
30189 " int\n"
30190 " guestfs_lsetxattr (guestfs_h *g,\n"
30191 "                    const char *xattr,\n"
30192 "                    const char *val,\n"
30193 "                    int vallen,\n"
30194 "                    const char *path);\n"
30195 "\n"
30196
30197 #. type: textblock
30198 #: ../src/guestfs-actions.pod:4405
30199 msgid ""
30200 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30201 "then it sets an extended attribute of the link itself."
30202 msgstr ""
30203
30204 #. type: =head2
30205 #: ../src/guestfs-actions.pod:4413
30206 msgid "guestfs_lstat"
30207 msgstr "guestfs_lstat"
30208
30209 #. type: verbatim
30210 #: ../src/guestfs-actions.pod:4415
30211 #, no-wrap
30212 msgid ""
30213 " struct guestfs_stat *\n"
30214 " guestfs_lstat (guestfs_h *g,\n"
30215 "                const char *path);\n"
30216 "\n"
30217 msgstr ""
30218 " struct guestfs_stat *\n"
30219 " guestfs_lstat (guestfs_h *g,\n"
30220 "                const char *path);\n"
30221 "\n"
30222
30223 #. type: textblock
30224 #: ../src/guestfs-actions.pod:4421
30225 msgid ""
30226 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30227 "link, then the link is stat-ed, not the file it refers to."
30228 msgstr ""
30229
30230 #. type: textblock
30231 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:7204
30232 msgid ""
30233 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30234 "error.  I<The caller must call C<guestfs_free_stat> after use>."
30235 msgstr ""
30236
30237 #. type: textblock
30238 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7208
30239 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7607
30240 msgid "(Added in 0.9.2)"
30241 msgstr "(Додано у 0.9.2)"
30242
30243 #. type: =head2
30244 #: ../src/guestfs-actions.pod:4433
30245 msgid "guestfs_lstatlist"
30246 msgstr "guestfs_lstatlist"
30247
30248 #. type: verbatim
30249 #: ../src/guestfs-actions.pod:4435
30250 #, no-wrap
30251 msgid ""
30252 " struct guestfs_stat_list *\n"
30253 " guestfs_lstatlist (guestfs_h *g,\n"
30254 "                    const char *path,\n"
30255 "                    char *const *names);\n"
30256 "\n"
30257 msgstr ""
30258 " struct guestfs_stat_list *\n"
30259 " guestfs_lstatlist (guestfs_h *g,\n"
30260 "                    const char *path,\n"
30261 "                    char *const *names);\n"
30262 "\n"
30263
30264 #. type: textblock
30265 #: ../src/guestfs-actions.pod:4440
30266 msgid ""
30267 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30268 "files, where all files are in the directory C<path>.  C<names> is the list "
30269 "of files from this directory."
30270 msgstr ""
30271
30272 #. type: textblock
30273 #: ../src/guestfs-actions.pod:4449
30274 msgid ""
30275 "This call is intended for programs that want to efficiently list a directory "
30276 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
30277 "for a similarly efficient call for getting extended attributes.  Very long "
30278 "directory listings might cause the protocol message size to be exceeded, "
30279 "causing this call to fail.  The caller must split up such requests into "
30280 "smaller groups of names."
30281 msgstr ""
30282
30283 #. type: textblock
30284 #: ../src/guestfs-actions.pod:4457
30285 msgid ""
30286 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30287 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
30288 msgstr ""
30289
30290 #. type: =head2
30291 #: ../src/guestfs-actions.pod:4463
30292 msgid "guestfs_luks_add_key"
30293 msgstr "guestfs_luks_add_key"
30294
30295 #. type: verbatim
30296 #: ../src/guestfs-actions.pod:4465
30297 #, no-wrap
30298 msgid ""
30299 " int\n"
30300 " guestfs_luks_add_key (guestfs_h *g,\n"
30301 "                       const char *device,\n"
30302 "                       const char *key,\n"
30303 "                       const char *newkey,\n"
30304 "                       int keyslot);\n"
30305 "\n"
30306 msgstr ""
30307 " int\n"
30308 " guestfs_luks_add_key (guestfs_h *g,\n"
30309 "                       const char *device,\n"
30310 "                       const char *key,\n"
30311 "                       const char *newkey,\n"
30312 "                       int keyslot);\n"
30313 "\n"
30314
30315 #. type: textblock
30316 #: ../src/guestfs-actions.pod:4477
30317 msgid ""
30318 "Note that if C<keyslot> already contains a key, then this command will "
30319 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
30320 msgstr ""
30321
30322 #. type: textblock
30323 #: ../src/guestfs-actions.pod:4483 ../src/guestfs-actions.pod:4520
30324 #: ../src/guestfs-actions.pod:4540 ../src/guestfs-actions.pod:4560
30325 #: ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:4614
30326 msgid ""
30327 "This function takes a key or passphrase parameter which could contain "
30328 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
30329 "information."
30330 msgstr ""
30331
30332 #. type: textblock
30333 #: ../src/guestfs-actions.pod:4487 ../src/guestfs-actions.pod:4524
30334 #: ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4564
30335 msgid "(Added in 1.5.2)"
30336 msgstr "(Додано у 1.5.2)"
30337
30338 #. type: =head2
30339 #: ../src/guestfs-actions.pod:4489
30340 msgid "guestfs_luks_close"
30341 msgstr "guestfs_luks_close"
30342
30343 #. type: verbatim
30344 #: ../src/guestfs-actions.pod:4491
30345 #, no-wrap
30346 msgid ""
30347 " int\n"
30348 " guestfs_luks_close (guestfs_h *g,\n"
30349 "                     const char *device);\n"
30350 "\n"
30351 msgstr ""
30352 " int\n"
30353 " guestfs_luks_close (guestfs_h *g,\n"
30354 "                     const char *device);\n"
30355 "\n"
30356
30357 #. type: textblock
30358 #: ../src/guestfs-actions.pod:4495
30359 msgid ""
30360 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30361 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
30362 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
30363 "underlying block device."
30364 msgstr ""
30365
30366 #. type: textblock
30367 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:4599
30368 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4668
30369 #: ../src/guestfs-actions.pod:4713
30370 msgid "(Added in 1.5.1)"
30371 msgstr "(Додано у 1.5.1)"
30372
30373 #. type: =head2
30374 #: ../src/guestfs-actions.pod:4505
30375 msgid "guestfs_luks_format"
30376 msgstr "guestfs_luks_format"
30377
30378 #. type: verbatim
30379 #: ../src/guestfs-actions.pod:4507
30380 #, no-wrap
30381 msgid ""
30382 " int\n"
30383 " guestfs_luks_format (guestfs_h *g,\n"
30384 "                      const char *device,\n"
30385 "                      const char *key,\n"
30386 "                      int keyslot);\n"
30387 "\n"
30388 msgstr ""
30389 " int\n"
30390 " guestfs_luks_format (guestfs_h *g,\n"
30391 "                      const char *device,\n"
30392 "                      const char *key,\n"
30393 "                      int keyslot);\n"
30394 "\n"
30395
30396 #. type: =head2
30397 #: ../src/guestfs-actions.pod:4526
30398 msgid "guestfs_luks_format_cipher"
30399 msgstr "guestfs_luks_format_cipher"
30400
30401 #. type: verbatim
30402 #: ../src/guestfs-actions.pod:4528
30403 #, no-wrap
30404 msgid ""
30405 " int\n"
30406 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30407 "                             const char *device,\n"
30408 "                             const char *key,\n"
30409 "                             int keyslot,\n"
30410 "                             const char *cipher);\n"
30411 "\n"
30412 msgstr ""
30413 " int\n"
30414 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30415 "                             const char *device,\n"
30416 "                             const char *key,\n"
30417 "                             int keyslot,\n"
30418 "                             const char *cipher);\n"
30419 "\n"
30420
30421 #. type: textblock
30422 #: ../src/guestfs-actions.pod:4535
30423 msgid ""
30424 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30425 "set the C<cipher> used."
30426 msgstr ""
30427
30428 #. type: =head2
30429 #: ../src/guestfs-actions.pod:4546
30430 msgid "guestfs_luks_kill_slot"
30431 msgstr "guestfs_luks_kill_slot"
30432
30433 #. type: verbatim
30434 #: ../src/guestfs-actions.pod:4548
30435 #, no-wrap
30436 msgid ""
30437 " int\n"
30438 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30439 "                         const char *device,\n"
30440 "                         const char *key,\n"
30441 "                         int keyslot);\n"
30442 "\n"
30443 msgstr ""
30444 " int\n"
30445 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30446 "                         const char *device,\n"
30447 "                         const char *key,\n"
30448 "                         int keyslot);\n"
30449 "\n"
30450
30451 #. type: =head2
30452 #: ../src/guestfs-actions.pod:4566
30453 msgid "guestfs_luks_open"
30454 msgstr "guestfs_luks_open"
30455
30456 #. type: verbatim
30457 #: ../src/guestfs-actions.pod:4568
30458 #, no-wrap
30459 msgid ""
30460 " int\n"
30461 " guestfs_luks_open (guestfs_h *g,\n"
30462 "                    const char *device,\n"
30463 "                    const char *key,\n"
30464 "                    const char *mapname);\n"
30465 "\n"
30466 msgstr ""
30467 " int\n"
30468 " guestfs_luks_open (guestfs_h *g,\n"
30469 "                    const char *device,\n"
30470 "                    const char *key,\n"
30471 "                    const char *mapname);\n"
30472 "\n"
30473
30474 #. type: textblock
30475 #: ../src/guestfs-actions.pod:4586
30476 msgid ""
30477 "If this block device contains LVM volume groups, then calling "
30478 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30479 "visible."
30480 msgstr ""
30481
30482 #. type: textblock
30483 #: ../src/guestfs-actions.pod:4590
30484 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30485 msgstr ""
30486
30487 #. type: =head2
30488 #: ../src/guestfs-actions.pod:4601
30489 msgid "guestfs_luks_open_ro"
30490 msgstr "guestfs_luks_open_ro"
30491
30492 #. type: verbatim
30493 #: ../src/guestfs-actions.pod:4603
30494 #, no-wrap
30495 msgid ""
30496 " int\n"
30497 " guestfs_luks_open_ro (guestfs_h *g,\n"
30498 "                       const char *device,\n"
30499 "                       const char *key,\n"
30500 "                       const char *mapname);\n"
30501 "\n"
30502 msgstr ""
30503 " int\n"
30504 " guestfs_luks_open_ro (guestfs_h *g,\n"
30505 "                       const char *device,\n"
30506 "                       const char *key,\n"
30507 "                       const char *mapname);\n"
30508 "\n"
30509
30510 #. type: textblock
30511 #: ../src/guestfs-actions.pod:4609
30512 msgid ""
30513 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30514 "created."
30515 msgstr ""
30516
30517 #. type: =head2
30518 #: ../src/guestfs-actions.pod:4620
30519 msgid "guestfs_lvcreate"
30520 msgstr "guestfs_lvcreate"
30521
30522 #. type: verbatim
30523 #: ../src/guestfs-actions.pod:4622
30524 #, no-wrap
30525 msgid ""
30526 " int\n"
30527 " guestfs_lvcreate (guestfs_h *g,\n"
30528 "                   const char *logvol,\n"
30529 "                   const char *volgroup,\n"
30530 "                   int mbytes);\n"
30531 "\n"
30532 msgstr ""
30533 " int\n"
30534 " guestfs_lvcreate (guestfs_h *g,\n"
30535 "                   const char *logvol,\n"
30536 "                   const char *volgroup,\n"
30537 "                   int mbytes);\n"
30538 "\n"
30539
30540 #. type: =head2
30541 #: ../src/guestfs-actions.pod:4635
30542 msgid "guestfs_lvm_canonical_lv_name"
30543 msgstr "guestfs_lvm_canonical_lv_name"
30544
30545 #. type: verbatim
30546 #: ../src/guestfs-actions.pod:4637
30547 #, no-wrap
30548 msgid ""
30549 " char *\n"
30550 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30551 "                                const char *lvname);\n"
30552 "\n"
30553 msgstr ""
30554 " char *\n"
30555 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30556 "                                const char *lvname);\n"
30557 "\n"
30558
30559 #. type: textblock
30560 #: ../src/guestfs-actions.pod:4648
30561 msgid "See also C<guestfs_is_lv>."
30562 msgstr ""
30563
30564 #. type: textblock
30565 #: ../src/guestfs-actions.pod:4653
30566 msgid "(Added in 1.5.24)"
30567 msgstr "(Додано у 1.5.24)"
30568
30569 #. type: =head2
30570 #: ../src/guestfs-actions.pod:4655
30571 msgid "guestfs_lvm_clear_filter"
30572 msgstr "guestfs_lvm_clear_filter"
30573
30574 #. type: verbatim
30575 #: ../src/guestfs-actions.pod:4657
30576 #, no-wrap
30577 msgid ""
30578 " int\n"
30579 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30580 "\n"
30581 msgstr ""
30582 " int\n"
30583 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30584 "\n"
30585
30586 #. type: textblock
30587 #: ../src/guestfs-actions.pod:4660
30588 msgid ""
30589 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
30590 "see every block device."
30591 msgstr ""
30592
30593 #. type: =head2
30594 #: ../src/guestfs-actions.pod:4670
30595 msgid "guestfs_lvm_remove_all"
30596 msgstr "guestfs_lvm_remove_all"
30597
30598 #. type: verbatim
30599 #: ../src/guestfs-actions.pod:4672
30600 #, no-wrap
30601 msgid ""
30602 " int\n"
30603 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30604 "\n"
30605 msgstr ""
30606 " int\n"
30607 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30608 "\n"
30609
30610 #. type: =head2
30611 #: ../src/guestfs-actions.pod:4682
30612 msgid "guestfs_lvm_set_filter"
30613 msgstr "guestfs_lvm_set_filter"
30614
30615 #. type: verbatim
30616 #: ../src/guestfs-actions.pod:4684
30617 #, no-wrap
30618 msgid ""
30619 " int\n"
30620 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30621 "                         char *const *devices);\n"
30622 "\n"
30623 msgstr ""
30624 " int\n"
30625 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30626 "                         char *const *devices);\n"
30627 "\n"
30628
30629 #. type: =head2
30630 #: ../src/guestfs-actions.pod:4715
30631 msgid "guestfs_lvremove"
30632 msgstr "guestfs_lvremove"
30633
30634 #. type: verbatim
30635 #: ../src/guestfs-actions.pod:4717
30636 #, no-wrap
30637 msgid ""
30638 " int\n"
30639 " guestfs_lvremove (guestfs_h *g,\n"
30640 "                   const char *device);\n"
30641 "\n"
30642 msgstr ""
30643 " int\n"
30644 " guestfs_lvremove (guestfs_h *g,\n"
30645 "                   const char *device);\n"
30646 "\n"
30647
30648 #. type: textblock
30649 #: ../src/guestfs-actions.pod:4729 ../src/guestfs-actions.pod:6139
30650 #: ../src/guestfs-actions.pod:7977
30651 msgid "(Added in 1.0.13)"
30652 msgstr "(Додано у 1.0.13)"
30653
30654 #. type: =head2
30655 #: ../src/guestfs-actions.pod:4731
30656 msgid "guestfs_lvrename"
30657 msgstr "guestfs_lvrename"
30658
30659 #. type: verbatim
30660 #: ../src/guestfs-actions.pod:4733
30661 #, no-wrap
30662 msgid ""
30663 " int\n"
30664 " guestfs_lvrename (guestfs_h *g,\n"
30665 "                   const char *logvol,\n"
30666 "                   const char *newlogvol);\n"
30667 "\n"
30668 msgstr ""
30669 " int\n"
30670 " guestfs_lvrename (guestfs_h *g,\n"
30671 "                   const char *logvol,\n"
30672 "                   const char *newlogvol);\n"
30673 "\n"
30674
30675 #. type: textblock
30676 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:7990
30677 msgid "(Added in 1.0.83)"
30678 msgstr "(Додано у 1.0.83)"
30679
30680 #. type: =head2
30681 #: ../src/guestfs-actions.pod:4744
30682 msgid "guestfs_lvresize"
30683 msgstr "guestfs_lvresize"
30684
30685 #. type: verbatim
30686 #: ../src/guestfs-actions.pod:4746
30687 #, no-wrap
30688 msgid ""
30689 " int\n"
30690 " guestfs_lvresize (guestfs_h *g,\n"
30691 "                   const char *device,\n"
30692 "                   int mbytes);\n"
30693 "\n"
30694 msgstr ""
30695 " int\n"
30696 " guestfs_lvresize (guestfs_h *g,\n"
30697 "                   const char *device,\n"
30698 "                   int mbytes);\n"
30699 "\n"
30700
30701 #. type: =head2
30702 #: ../src/guestfs-actions.pod:4759
30703 msgid "guestfs_lvresize_free"
30704 msgstr "guestfs_lvresize_free"
30705
30706 #. type: verbatim
30707 #: ../src/guestfs-actions.pod:4761
30708 #, no-wrap
30709 msgid ""
30710 " int\n"
30711 " guestfs_lvresize_free (guestfs_h *g,\n"
30712 "                        const char *lv,\n"
30713 "                        int percent);\n"
30714 "\n"
30715 msgstr ""
30716 " int\n"
30717 " guestfs_lvresize_free (guestfs_h *g,\n"
30718 "                        const char *lv,\n"
30719 "                        int percent);\n"
30720 "\n"
30721
30722 #. type: textblock
30723 #: ../src/guestfs-actions.pod:4774
30724 msgid "(Added in 1.3.3)"
30725 msgstr "(Додано у 1.3.3)"
30726
30727 #. type: =head2
30728 #: ../src/guestfs-actions.pod:4776
30729 msgid "guestfs_lvs"
30730 msgstr "guestfs_lvs"
30731
30732 #. type: verbatim
30733 #: ../src/guestfs-actions.pod:4778
30734 #, no-wrap
30735 msgid ""
30736 " char **\n"
30737 " guestfs_lvs (guestfs_h *g);\n"
30738 "\n"
30739 msgstr ""
30740 " char **\n"
30741 " guestfs_lvs (guestfs_h *g);\n"
30742 "\n"
30743
30744 #. type: textblock
30745 #: ../src/guestfs-actions.pod:4787
30746 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30747 msgstr ""
30748
30749 #. type: =head2
30750 #: ../src/guestfs-actions.pod:4795
30751 msgid "guestfs_lvs_full"
30752 msgstr "guestfs_lvs_full"
30753
30754 #. type: verbatim
30755 #: ../src/guestfs-actions.pod:4797
30756 #, no-wrap
30757 msgid ""
30758 " struct guestfs_lvm_lv_list *\n"
30759 " guestfs_lvs_full (guestfs_h *g);\n"
30760 "\n"
30761 msgstr ""
30762 " struct guestfs_lvm_lv_list *\n"
30763 " guestfs_lvs_full (guestfs_h *g);\n"
30764 "\n"
30765
30766 #. type: textblock
30767 #: ../src/guestfs-actions.pod:4803
30768 msgid ""
30769 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30770 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30771 msgstr ""
30772
30773 #. type: =head2
30774 #: ../src/guestfs-actions.pod:4809
30775 msgid "guestfs_lvuuid"
30776 msgstr "guestfs_lvuuid"
30777
30778 #. type: verbatim
30779 #: ../src/guestfs-actions.pod:4811
30780 #, no-wrap
30781 msgid ""
30782 " char *\n"
30783 " guestfs_lvuuid (guestfs_h *g,\n"
30784 "                 const char *device);\n"
30785 "\n"
30786 msgstr ""
30787 " char *\n"
30788 " guestfs_lvuuid (guestfs_h *g,\n"
30789 "                 const char *device);\n"
30790 "\n"
30791
30792 #. type: =head2
30793 #: ../src/guestfs-actions.pod:4822
30794 msgid "guestfs_lxattrlist"
30795 msgstr "guestfs_lxattrlist"
30796
30797 #. type: verbatim
30798 #: ../src/guestfs-actions.pod:4824
30799 #, no-wrap
30800 msgid ""
30801 " struct guestfs_xattr_list *\n"
30802 " guestfs_lxattrlist (guestfs_h *g,\n"
30803 "                     const char *path,\n"
30804 "                     char *const *names);\n"
30805 "\n"
30806 msgstr ""
30807 " struct guestfs_xattr_list *\n"
30808 " guestfs_lxattrlist (guestfs_h *g,\n"
30809 "                     const char *path,\n"
30810 "                     char *const *names);\n"
30811 "\n"
30812
30813 #. type: textblock
30814 #: ../src/guestfs-actions.pod:4843
30815 msgid ""
30816 "This call is intended for programs that want to efficiently list a directory "
30817 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
30818 "a similarly efficient call for getting standard stats.  Very long directory "
30819 "listings might cause the protocol message size to be exceeded, causing this "
30820 "call to fail.  The caller must split up such requests into smaller groups of "
30821 "names."
30822 msgstr ""
30823
30824 #. type: =head2
30825 #: ../src/guestfs-actions.pod:4857
30826 msgid "guestfs_mkdir"
30827 msgstr "guestfs_mkdir"
30828
30829 #. type: verbatim
30830 #: ../src/guestfs-actions.pod:4859
30831 #, no-wrap
30832 msgid ""
30833 " int\n"
30834 " guestfs_mkdir (guestfs_h *g,\n"
30835 "                const char *path);\n"
30836 "\n"
30837 msgstr ""
30838 " int\n"
30839 " guestfs_mkdir (guestfs_h *g,\n"
30840 "                const char *path);\n"
30841 "\n"
30842
30843 #. type: =head2
30844 #: ../src/guestfs-actions.pod:4869
30845 msgid "guestfs_mkdir_mode"
30846 msgstr "guestfs_mkdir_mode"
30847
30848 #. type: verbatim
30849 #: ../src/guestfs-actions.pod:4871
30850 #, no-wrap
30851 msgid ""
30852 " int\n"
30853 " guestfs_mkdir_mode (guestfs_h *g,\n"
30854 "                     const char *path,\n"
30855 "                     int mode);\n"
30856 "\n"
30857 msgstr ""
30858 " int\n"
30859 " guestfs_mkdir_mode (guestfs_h *g,\n"
30860 "                     const char *path,\n"
30861 "                     int mode);\n"
30862 "\n"
30863
30864 #. type: textblock
30865 #: ../src/guestfs-actions.pod:4883
30866 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30867 msgstr ""
30868
30869 #. type: =head2
30870 #: ../src/guestfs-actions.pod:4889
30871 msgid "guestfs_mkdir_p"
30872 msgstr "guestfs_mkdir_p"
30873
30874 #. type: verbatim
30875 #: ../src/guestfs-actions.pod:4891
30876 #, no-wrap
30877 msgid ""
30878 " int\n"
30879 " guestfs_mkdir_p (guestfs_h *g,\n"
30880 "                  const char *path);\n"
30881 "\n"
30882 msgstr ""
30883 " int\n"
30884 " guestfs_mkdir_p (guestfs_h *g,\n"
30885 "                  const char *path);\n"
30886 "\n"
30887
30888 #. type: =head2
30889 #: ../src/guestfs-actions.pod:4902
30890 msgid "guestfs_mkdtemp"
30891 msgstr "guestfs_mkdtemp"
30892
30893 #. type: verbatim
30894 #: ../src/guestfs-actions.pod:4904
30895 #, no-wrap
30896 msgid ""
30897 " char *\n"
30898 " guestfs_mkdtemp (guestfs_h *g,\n"
30899 "                  const char *template);\n"
30900 "\n"
30901 msgstr ""
30902 " char *\n"
30903 " guestfs_mkdtemp (guestfs_h *g,\n"
30904 "                  const char *template);\n"
30905 "\n"
30906
30907 #. type: =head2
30908 #: ../src/guestfs-actions.pod:4932
30909 msgid "guestfs_mke2fs_J"
30910 msgstr "guestfs_mke2fs_J"
30911
30912 #. type: verbatim
30913 #: ../src/guestfs-actions.pod:4934
30914 #, no-wrap
30915 msgid ""
30916 " int\n"
30917 " guestfs_mke2fs_J (guestfs_h *g,\n"
30918 "                   const char *fstype,\n"
30919 "                   int blocksize,\n"
30920 "                   const char *device,\n"
30921 "                   const char *journal);\n"
30922 "\n"
30923 msgstr ""
30924 " int\n"
30925 " guestfs_mke2fs_J (guestfs_h *g,\n"
30926 "                   const char *fstype,\n"
30927 "                   int blocksize,\n"
30928 "                   const char *device,\n"
30929 "                   const char *journal);\n"
30930 "\n"
30931
30932 #. type: textblock
30933 #: ../src/guestfs-actions.pod:4947
30934 msgid "See also C<guestfs_mke2journal>."
30935 msgstr ""
30936
30937 #. type: textblock
30938 #: ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:4969
30939 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:5003
30940 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5031
30941 #: ../src/guestfs-actions.pod:5090 ../src/guestfs-actions.pod:5367
30942 msgid "(Added in 1.0.68)"
30943 msgstr "(Додано у 1.0.68)"
30944
30945 #. type: =head2
30946 #: ../src/guestfs-actions.pod:4953
30947 msgid "guestfs_mke2fs_JL"
30948 msgstr "guestfs_mke2fs_JL"
30949
30950 #. type: verbatim
30951 #: ../src/guestfs-actions.pod:4955
30952 #, no-wrap
30953 msgid ""
30954 " int\n"
30955 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30956 "                    const char *fstype,\n"
30957 "                    int blocksize,\n"
30958 "                    const char *device,\n"
30959 "                    const char *label);\n"
30960 "\n"
30961 msgstr ""
30962 " int\n"
30963 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30964 "                    const char *fstype,\n"
30965 "                    int blocksize,\n"
30966 "                    const char *device,\n"
30967 "                    const char *label);\n"
30968 "\n"
30969
30970 #. type: textblock
30971 #: ../src/guestfs-actions.pod:4965
30972 msgid "See also C<guestfs_mke2journal_L>."
30973 msgstr ""
30974
30975 #. type: =head2
30976 #: ../src/guestfs-actions.pod:4971
30977 msgid "guestfs_mke2fs_JU"
30978 msgstr "guestfs_mke2fs_JU"
30979
30980 #. type: verbatim
30981 #: ../src/guestfs-actions.pod:4973
30982 #, no-wrap
30983 msgid ""
30984 " int\n"
30985 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30986 "                    const char *fstype,\n"
30987 "                    int blocksize,\n"
30988 "                    const char *device,\n"
30989 "                    const char *uuid);\n"
30990 "\n"
30991 msgstr ""
30992 " int\n"
30993 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30994 "                    const char *fstype,\n"
30995 "                    int blocksize,\n"
30996 "                    const char *device,\n"
30997 "                    const char *uuid);\n"
30998 "\n"
30999
31000 #. type: textblock
31001 #: ../src/guestfs-actions.pod:4983
31002 msgid "See also C<guestfs_mke2journal_U>."
31003 msgstr ""
31004
31005 #. type: =head2
31006 #: ../src/guestfs-actions.pod:4989
31007 msgid "guestfs_mke2journal"
31008 msgstr "guestfs_mke2journal"
31009
31010 #. type: verbatim
31011 #: ../src/guestfs-actions.pod:4991
31012 #, no-wrap
31013 msgid ""
31014 " int\n"
31015 " guestfs_mke2journal (guestfs_h *g,\n"
31016 "                      int blocksize,\n"
31017 "                      const char *device);\n"
31018 "\n"
31019 msgstr ""
31020 " int\n"
31021 " guestfs_mke2journal (guestfs_h *g,\n"
31022 "                      int blocksize,\n"
31023 "                      const char *device);\n"
31024 "\n"
31025
31026 #. type: =head2
31027 #: ../src/guestfs-actions.pod:5005
31028 msgid "guestfs_mke2journal_L"
31029 msgstr "guestfs_mke2journal_L"
31030
31031 #. type: verbatim
31032 #: ../src/guestfs-actions.pod:5007
31033 #, no-wrap
31034 msgid ""
31035 " int\n"
31036 " guestfs_mke2journal_L (guestfs_h *g,\n"
31037 "                        int blocksize,\n"
31038 "                        const char *label,\n"
31039 "                        const char *device);\n"
31040 "\n"
31041 msgstr ""
31042 " int\n"
31043 " guestfs_mke2journal_L (guestfs_h *g,\n"
31044 "                        int blocksize,\n"
31045 "                        const char *label,\n"
31046 "                        const char *device);\n"
31047 "\n"
31048
31049 #. type: =head2
31050 #: ../src/guestfs-actions.pod:5019
31051 msgid "guestfs_mke2journal_U"
31052 msgstr "guestfs_mke2journal_U"
31053
31054 #. type: verbatim
31055 #: ../src/guestfs-actions.pod:5021
31056 #, no-wrap
31057 msgid ""
31058 " int\n"
31059 " guestfs_mke2journal_U (guestfs_h *g,\n"
31060 "                        int blocksize,\n"
31061 "                        const char *uuid,\n"
31062 "                        const char *device);\n"
31063 "\n"
31064 msgstr ""
31065 " int\n"
31066 " guestfs_mke2journal_U (guestfs_h *g,\n"
31067 "                        int blocksize,\n"
31068 "                        const char *uuid,\n"
31069 "                        const char *device);\n"
31070 "\n"
31071
31072 #. type: =head2
31073 #: ../src/guestfs-actions.pod:5033
31074 msgid "guestfs_mkfifo"
31075 msgstr "guestfs_mkfifo"
31076
31077 #. type: verbatim
31078 #: ../src/guestfs-actions.pod:5035
31079 #, no-wrap
31080 msgid ""
31081 " int\n"
31082 " guestfs_mkfifo (guestfs_h *g,\n"
31083 "                 int mode,\n"
31084 "                 const char *path);\n"
31085 "\n"
31086 msgstr ""
31087 " int\n"
31088 " guestfs_mkfifo (guestfs_h *g,\n"
31089 "                 int mode,\n"
31090 "                 const char *path);\n"
31091 "\n"
31092
31093 #. type: textblock
31094 #: ../src/guestfs-actions.pod:5040
31095 msgid ""
31096 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
31097 "is just a convenient wrapper around C<guestfs_mknod>."
31098 msgstr ""
31099
31100 #. type: =head2
31101 #: ../src/guestfs-actions.pod:5050
31102 msgid "guestfs_mkfs"
31103 msgstr "guestfs_mkfs"
31104
31105 #. type: verbatim
31106 #: ../src/guestfs-actions.pod:5052
31107 #, no-wrap
31108 msgid ""
31109 " int\n"
31110 " guestfs_mkfs (guestfs_h *g,\n"
31111 "               const char *fstype,\n"
31112 "               const char *device);\n"
31113 "\n"
31114 msgstr ""
31115 " int\n"
31116 " guestfs_mkfs (guestfs_h *g,\n"
31117 "               const char *fstype,\n"
31118 "               const char *device);\n"
31119 "\n"
31120
31121 #. type: =head2
31122 #: ../src/guestfs-actions.pod:5065
31123 msgid "guestfs_mkfs_b"
31124 msgstr "guestfs_mkfs_b"
31125
31126 #. type: verbatim
31127 #: ../src/guestfs-actions.pod:5067
31128 #, no-wrap
31129 msgid ""
31130 " int\n"
31131 " guestfs_mkfs_b (guestfs_h *g,\n"
31132 "                 const char *fstype,\n"
31133 "                 int blocksize,\n"
31134 "                 const char *device);\n"
31135 "\n"
31136 msgstr ""
31137 " int\n"
31138 " guestfs_mkfs_b (guestfs_h *g,\n"
31139 "                 const char *fstype,\n"
31140 "                 int blocksize,\n"
31141 "                 const char *device);\n"
31142 "\n"
31143
31144 #. type: textblock
31145 #: ../src/guestfs-actions.pod:5073
31146 msgid ""
31147 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31148 "call instead."
31149 msgstr ""
31150
31151 #. type: textblock
31152 #: ../src/guestfs-actions.pod:5080
31153 msgid ""
31154 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31155 "block size of the resulting filesystem.  Supported block sizes depend on the "
31156 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31157 msgstr ""
31158
31159 #. type: =head2
31160 #: ../src/guestfs-actions.pod:5092
31161 msgid "guestfs_mkfs_opts"
31162 msgstr "guestfs_mkfs_opts"
31163
31164 #. type: verbatim
31165 #: ../src/guestfs-actions.pod:5094
31166 #, no-wrap
31167 msgid ""
31168 " int\n"
31169 " guestfs_mkfs_opts (guestfs_h *g,\n"
31170 "                    const char *fstype,\n"
31171 "                    const char *device,\n"
31172 "                    ...);\n"
31173 "\n"
31174 msgstr ""
31175 " int\n"
31176 " guestfs_mkfs_opts (guestfs_h *g,\n"
31177 "                    const char *fstype,\n"
31178 "                    const char *device,\n"
31179 "                    ...);\n"
31180 "\n"
31181
31182 #. type: verbatim
31183 #: ../src/guestfs-actions.pod:5105
31184 #, no-wrap
31185 msgid ""
31186 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31187 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31188 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31189 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31190 "\n"
31191 msgstr ""
31192
31193 #. type: textblock
31194 #: ../src/guestfs-actions.pod:5153
31195 msgid "(Added in 1.7.19)"
31196 msgstr "(Додано у 1.7.19)"
31197
31198 #. type: =head2
31199 #: ../src/guestfs-actions.pod:5155
31200 msgid "guestfs_mkfs_opts_va"
31201 msgstr "guestfs_mkfs_opts_va"
31202
31203 #. type: verbatim
31204 #: ../src/guestfs-actions.pod:5157
31205 #, no-wrap
31206 msgid ""
31207 " int\n"
31208 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31209 "                       const char *fstype,\n"
31210 "                       const char *device,\n"
31211 "                       va_list args);\n"
31212 "\n"
31213 msgstr ""
31214 " int\n"
31215 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31216 "                       const char *fstype,\n"
31217 "                       const char *device,\n"
31218 "                       va_list args);\n"
31219 "\n"
31220
31221 #. type: textblock
31222 #: ../src/guestfs-actions.pod:5163
31223 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31224 msgstr ""
31225
31226 #. type: =head2
31227 #: ../src/guestfs-actions.pod:5167
31228 msgid "guestfs_mkfs_opts_argv"
31229 msgstr "guestfs_mkfs_opts_argv"
31230
31231 #. type: verbatim
31232 #: ../src/guestfs-actions.pod:5169
31233 #, no-wrap
31234 msgid ""
31235 " int\n"
31236 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31237 "                         const char *fstype,\n"
31238 "                         const char *device,\n"
31239 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31240 "\n"
31241 msgstr ""
31242 " int\n"
31243 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31244 "                         const char *fstype,\n"
31245 "                         const char *device,\n"
31246 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31247 "\n"
31248
31249 #. type: textblock
31250 #: ../src/guestfs-actions.pod:5175
31251 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31252 msgstr ""
31253
31254 #. type: =head2
31255 #: ../src/guestfs-actions.pod:5179
31256 msgid "guestfs_mkmountpoint"
31257 msgstr "guestfs_mkmountpoint"
31258
31259 #. type: verbatim
31260 #: ../src/guestfs-actions.pod:5181
31261 #, no-wrap
31262 msgid ""
31263 " int\n"
31264 " guestfs_mkmountpoint (guestfs_h *g,\n"
31265 "                       const char *exemptpath);\n"
31266 "\n"
31267 msgstr ""
31268 " int\n"
31269 " guestfs_mkmountpoint (guestfs_h *g,\n"
31270 "                       const char *exemptpath);\n"
31271 "\n"
31272
31273 #. type: textblock
31274 #: ../src/guestfs-actions.pod:5185
31275 msgid ""
31276 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31277 "that can be used to create extra mountpoints before mounting the first "
31278 "filesystem."
31279 msgstr ""
31280
31281 #. type: textblock
31282 #: ../src/guestfs-actions.pod:5209
31283 msgid ""
31284 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
31285 "may get unexpected errors if you try to mix these calls.  It is safest to "
31286 "manually unmount filesystems and remove mountpoints after use."
31287 msgstr ""
31288
31289 #. type: textblock
31290 #: ../src/guestfs-actions.pod:5213
31291 msgid ""
31292 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31293 "first, so for this to work for manual mountpoints, you must ensure that the "
31294 "innermost mountpoints have the longest pathnames, as in the example code "
31295 "above."
31296 msgstr ""
31297
31298 #. type: textblock
31299 #: ../src/guestfs-actions.pod:5220
31300 msgid ""
31301 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31302 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31303 "can also trigger these issues."
31304 msgstr ""
31305
31306 #. type: textblock
31307 #: ../src/guestfs-actions.pod:5226 ../src/guestfs-actions.pod:5532
31308 #: ../src/guestfs-actions.pod:6559
31309 msgid "(Added in 1.0.62)"
31310 msgstr "(Додано у 1.0.62)"
31311
31312 #. type: =head2
31313 #: ../src/guestfs-actions.pod:5228
31314 msgid "guestfs_mknod"
31315 msgstr ""
31316
31317 #. type: verbatim
31318 #: ../src/guestfs-actions.pod:5230
31319 #, no-wrap
31320 msgid ""
31321 " int\n"
31322 " guestfs_mknod (guestfs_h *g,\n"
31323 "                int mode,\n"
31324 "                int devmajor,\n"
31325 "                int devminor,\n"
31326 "                const char *path);\n"
31327 "\n"
31328 msgstr ""
31329
31330 #. type: textblock
31331 #: ../src/guestfs-actions.pod:5245
31332 msgid ""
31333 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31334 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31335 "regular file).  These constants are available in the standard Linux header "
31336 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31337 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31338 "the appropriate constant for you."
31339 msgstr ""
31340
31341 #. type: =head2
31342 #: ../src/guestfs-actions.pod:5259
31343 msgid "guestfs_mknod_b"
31344 msgstr ""
31345
31346 #. type: verbatim
31347 #: ../src/guestfs-actions.pod:5261
31348 #, no-wrap
31349 msgid ""
31350 " int\n"
31351 " guestfs_mknod_b (guestfs_h *g,\n"
31352 "                  int mode,\n"
31353 "                  int devmajor,\n"
31354 "                  int devminor,\n"
31355 "                  const char *path);\n"
31356 "\n"
31357 msgstr ""
31358
31359 #. type: textblock
31360 #: ../src/guestfs-actions.pod:5268
31361 msgid ""
31362 "This call creates a block device node called C<path> with mode C<mode> and "
31363 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31364 "wrapper around C<guestfs_mknod>."
31365 msgstr ""
31366
31367 #. type: =head2
31368 #: ../src/guestfs-actions.pod:5278
31369 msgid "guestfs_mknod_c"
31370 msgstr ""
31371
31372 #. type: verbatim
31373 #: ../src/guestfs-actions.pod:5280
31374 #, no-wrap
31375 msgid ""
31376 " int\n"
31377 " guestfs_mknod_c (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:5287
31387 msgid ""
31388 "This call creates a char 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:5297
31395 msgid "guestfs_mkswap"
31396 msgstr ""
31397
31398 #. type: verbatim
31399 #: ../src/guestfs-actions.pod:5299
31400 #, no-wrap
31401 msgid ""
31402 " int\n"
31403 " guestfs_mkswap (guestfs_h *g,\n"
31404 "                 const char *device);\n"
31405 "\n"
31406 msgstr ""
31407
31408 #. type: =head2
31409 #: ../src/guestfs-actions.pod:5309
31410 msgid "guestfs_mkswap_L"
31411 msgstr ""
31412
31413 #. type: verbatim
31414 #: ../src/guestfs-actions.pod:5311
31415 #, no-wrap
31416 msgid ""
31417 " int\n"
31418 " guestfs_mkswap_L (guestfs_h *g,\n"
31419 "                   const char *label,\n"
31420 "                   const char *device);\n"
31421 "\n"
31422 msgstr ""
31423
31424 #. type: =head2
31425 #: ../src/guestfs-actions.pod:5326
31426 msgid "guestfs_mkswap_U"
31427 msgstr ""
31428
31429 #. type: verbatim
31430 #: ../src/guestfs-actions.pod:5328
31431 #, no-wrap
31432 msgid ""
31433 " int\n"
31434 " guestfs_mkswap_U (guestfs_h *g,\n"
31435 "                   const char *uuid,\n"
31436 "                   const char *device);\n"
31437 "\n"
31438 msgstr ""
31439
31440 #. type: =head2
31441 #: ../src/guestfs-actions.pod:5339
31442 msgid "guestfs_mkswap_file"
31443 msgstr ""
31444
31445 #. type: verbatim
31446 #: ../src/guestfs-actions.pod:5341
31447 #, no-wrap
31448 msgid ""
31449 " int\n"
31450 " guestfs_mkswap_file (guestfs_h *g,\n"
31451 "                      const char *path);\n"
31452 "\n"
31453 msgstr ""
31454
31455 #. type: textblock
31456 #: ../src/guestfs-actions.pod:5347
31457 msgid ""
31458 "This command just writes a swap file signature to an existing file.  To "
31459 "create the file itself, use something like C<guestfs_fallocate>."
31460 msgstr ""
31461
31462 #. type: =head2
31463 #: ../src/guestfs-actions.pod:5354
31464 msgid "guestfs_modprobe"
31465 msgstr ""
31466
31467 #. type: verbatim
31468 #: ../src/guestfs-actions.pod:5356
31469 #, no-wrap
31470 msgid ""
31471 " int\n"
31472 " guestfs_modprobe (guestfs_h *g,\n"
31473 "                   const char *modulename);\n"
31474 "\n"
31475 msgstr ""
31476
31477 #. type: =head2
31478 #: ../src/guestfs-actions.pod:5369
31479 msgid "guestfs_mount"
31480 msgstr ""
31481
31482 #. type: verbatim
31483 #: ../src/guestfs-actions.pod:5371
31484 #, no-wrap
31485 msgid ""
31486 " int\n"
31487 " guestfs_mount (guestfs_h *g,\n"
31488 "                const char *device,\n"
31489 "                const char *mountpoint);\n"
31490 "\n"
31491 msgstr ""
31492
31493 #. type: textblock
31494 #: ../src/guestfs-actions.pod:5390
31495 msgid ""
31496 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31497 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
31498 "problems for users.  If your program might need to work with older versions "
31499 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31500 "for the first parameter if you don't want any options)."
31501 msgstr ""
31502
31503 #. type: =head2
31504 #: ../src/guestfs-actions.pod:5401
31505 msgid "guestfs_mount_9p"
31506 msgstr ""
31507
31508 #. type: verbatim
31509 #: ../src/guestfs-actions.pod:5403
31510 #, no-wrap
31511 msgid ""
31512 " int\n"
31513 " guestfs_mount_9p (guestfs_h *g,\n"
31514 "                   const char *mounttag,\n"
31515 "                   const char *mountpoint,\n"
31516 "                   ...);\n"
31517 "\n"
31518 msgstr ""
31519
31520 #. type: verbatim
31521 #: ../src/guestfs-actions.pod:5414
31522 #, no-wrap
31523 msgid ""
31524 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31525 "\n"
31526 msgstr ""
31527
31528 #. type: =head2
31529 #: ../src/guestfs-actions.pod:5427
31530 msgid "guestfs_mount_9p_va"
31531 msgstr ""
31532
31533 #. type: verbatim
31534 #: ../src/guestfs-actions.pod:5429
31535 #, no-wrap
31536 msgid ""
31537 " int\n"
31538 " guestfs_mount_9p_va (guestfs_h *g,\n"
31539 "                      const char *mounttag,\n"
31540 "                      const char *mountpoint,\n"
31541 "                      va_list args);\n"
31542 "\n"
31543 msgstr ""
31544
31545 #. type: textblock
31546 #: ../src/guestfs-actions.pod:5435
31547 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31548 msgstr ""
31549
31550 #. type: =head2
31551 #: ../src/guestfs-actions.pod:5439
31552 msgid "guestfs_mount_9p_argv"
31553 msgstr ""
31554
31555 #. type: verbatim
31556 #: ../src/guestfs-actions.pod:5441
31557 #, no-wrap
31558 msgid ""
31559 " int\n"
31560 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31561 "                        const char *mounttag,\n"
31562 "                        const char *mountpoint,\n"
31563 "                        const struct guestfs_mount_9p_argv *optargs);\n"
31564 "\n"
31565 msgstr ""
31566
31567 #. type: textblock
31568 #: ../src/guestfs-actions.pod:5447
31569 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31570 msgstr ""
31571
31572 #. type: =head2
31573 #: ../src/guestfs-actions.pod:5451
31574 msgid "guestfs_mount_loop"
31575 msgstr ""
31576
31577 #. type: verbatim
31578 #: ../src/guestfs-actions.pod:5453
31579 #, no-wrap
31580 msgid ""
31581 " int\n"
31582 " guestfs_mount_loop (guestfs_h *g,\n"
31583 "                     const char *file,\n"
31584 "                     const char *mountpoint);\n"
31585 "\n"
31586 msgstr ""
31587
31588 #. type: =head2
31589 #: ../src/guestfs-actions.pod:5466
31590 msgid "guestfs_mount_options"
31591 msgstr ""
31592
31593 #. type: verbatim
31594 #: ../src/guestfs-actions.pod:5468
31595 #, no-wrap
31596 msgid ""
31597 " int\n"
31598 " guestfs_mount_options (guestfs_h *g,\n"
31599 "                        const char *options,\n"
31600 "                        const char *device,\n"
31601 "                        const char *mountpoint);\n"
31602 "\n"
31603 msgstr ""
31604
31605 #. type: textblock
31606 #: ../src/guestfs-actions.pod:5474
31607 msgid ""
31608 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31609 "the mount options as for the L<mount(8)> I<-o> flag."
31610 msgstr ""
31611
31612 #. type: textblock
31613 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5498
31614 #: ../src/guestfs-actions.pod:5515
31615 msgid "(Added in 1.0.10)"
31616 msgstr "(Додано у 1.0.10)"
31617
31618 #. type: =head2
31619 #: ../src/guestfs-actions.pod:5486
31620 msgid "guestfs_mount_ro"
31621 msgstr ""
31622
31623 #. type: verbatim
31624 #: ../src/guestfs-actions.pod:5488
31625 #, no-wrap
31626 msgid ""
31627 " int\n"
31628 " guestfs_mount_ro (guestfs_h *g,\n"
31629 "                   const char *device,\n"
31630 "                   const char *mountpoint);\n"
31631 "\n"
31632 msgstr ""
31633
31634 #. type: textblock
31635 #: ../src/guestfs-actions.pod:5493
31636 msgid ""
31637 "This is the same as the C<guestfs_mount> command, but it mounts the "
31638 "filesystem with the read-only (I<-o ro>) flag."
31639 msgstr ""
31640
31641 #. type: =head2
31642 #: ../src/guestfs-actions.pod:5500
31643 msgid "guestfs_mount_vfs"
31644 msgstr ""
31645
31646 #. type: verbatim
31647 #: ../src/guestfs-actions.pod:5502
31648 #, no-wrap
31649 msgid ""
31650 " int\n"
31651 " guestfs_mount_vfs (guestfs_h *g,\n"
31652 "                    const char *options,\n"
31653 "                    const char *vfstype,\n"
31654 "                    const char *device,\n"
31655 "                    const char *mountpoint);\n"
31656 "\n"
31657 msgstr ""
31658
31659 #. type: textblock
31660 #: ../src/guestfs-actions.pod:5509
31661 msgid ""
31662 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31663 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
31664 "t> flags."
31665 msgstr ""
31666
31667 #. type: =head2
31668 #: ../src/guestfs-actions.pod:5517
31669 msgid "guestfs_mountpoints"
31670 msgstr ""
31671
31672 #. type: verbatim
31673 #: ../src/guestfs-actions.pod:5519
31674 #, no-wrap
31675 msgid ""
31676 " char **\n"
31677 " guestfs_mountpoints (guestfs_h *g);\n"
31678 "\n"
31679 msgstr ""
31680
31681 #. type: textblock
31682 #: ../src/guestfs-actions.pod:5522
31683 msgid ""
31684 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
31685 "devices.  This one returns a hash table (map) of device name to directory "
31686 "where the device is mounted."
31687 msgstr ""
31688
31689 #. type: =head2
31690 #: ../src/guestfs-actions.pod:5534
31691 msgid "guestfs_mounts"
31692 msgstr ""
31693
31694 #. type: verbatim
31695 #: ../src/guestfs-actions.pod:5536
31696 #, no-wrap
31697 msgid ""
31698 " char **\n"
31699 " guestfs_mounts (guestfs_h *g);\n"
31700 "\n"
31701 msgstr ""
31702
31703 #. type: textblock
31704 #: ../src/guestfs-actions.pod:5544
31705 msgid "See also: C<guestfs_mountpoints>"
31706 msgstr ""
31707
31708 #. type: =head2
31709 #: ../src/guestfs-actions.pod:5552
31710 msgid "guestfs_mv"
31711 msgstr ""
31712
31713 #. type: verbatim
31714 #: ../src/guestfs-actions.pod:5554
31715 #, no-wrap
31716 msgid ""
31717 " int\n"
31718 " guestfs_mv (guestfs_h *g,\n"
31719 "             const char *src,\n"
31720 "             const char *dest);\n"
31721 "\n"
31722 msgstr ""
31723
31724 #. type: =head2
31725 #: ../src/guestfs-actions.pod:5566
31726 msgid "guestfs_ntfs_3g_probe"
31727 msgstr ""
31728
31729 #. type: verbatim
31730 #: ../src/guestfs-actions.pod:5568
31731 #, no-wrap
31732 msgid ""
31733 " int\n"
31734 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31735 "                        int rw,\n"
31736 "                        const char *device);\n"
31737 "\n"
31738 msgstr ""
31739
31740 #. type: textblock
31741 #: ../src/guestfs-actions.pod:5587
31742 msgid "(Added in 1.0.43)"
31743 msgstr "(Додано у 1.0.43)"
31744
31745 #. type: =head2
31746 #: ../src/guestfs-actions.pod:5589
31747 msgid "guestfs_ntfsresize"
31748 msgstr ""
31749
31750 #. type: verbatim
31751 #: ../src/guestfs-actions.pod:5591
31752 #, no-wrap
31753 msgid ""
31754 " int\n"
31755 " guestfs_ntfsresize (guestfs_h *g,\n"
31756 "                     const char *device);\n"
31757 "\n"
31758 msgstr ""
31759
31760 #. type: textblock
31761 #: ../src/guestfs-actions.pod:5595 ../src/guestfs-actions.pod:5695
31762 msgid ""
31763 "I<This function is deprecated.> In new code, use the L</"
31764 "guestfs_ntfsresize_opts> call instead."
31765 msgstr ""
31766
31767 #. type: =head2
31768 #: ../src/guestfs-actions.pod:5619
31769 msgid "guestfs_ntfsresize_opts"
31770 msgstr ""
31771
31772 #. type: verbatim
31773 #: ../src/guestfs-actions.pod:5621
31774 #, no-wrap
31775 msgid ""
31776 " int\n"
31777 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31778 "                          const char *device,\n"
31779 "                          ...);\n"
31780 "\n"
31781 msgstr ""
31782
31783 #. type: verbatim
31784 #: ../src/guestfs-actions.pod:5631
31785 #, no-wrap
31786 msgid ""
31787 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31788 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31789 "\n"
31790 msgstr ""
31791
31792 #. type: textblock
31793 #: ../src/guestfs-actions.pod:5651
31794 msgid ""
31795 "After the resize operation, the filesystem is always marked as requiring a "
31796 "consistency check (for safety).  You have to boot into Windows to perform "
31797 "this check and clear this condition.  If you I<don't> set the C<force> "
31798 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31799 "times on a single filesystem without booting into Windows between each "
31800 "resize."
31801 msgstr ""
31802
31803 #. type: =head2
31804 #: ../src/guestfs-actions.pod:5666
31805 msgid "guestfs_ntfsresize_opts_va"
31806 msgstr ""
31807
31808 #. type: verbatim
31809 #: ../src/guestfs-actions.pod:5668
31810 #, no-wrap
31811 msgid ""
31812 " int\n"
31813 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31814 "                             const char *device,\n"
31815 "                             va_list args);\n"
31816 "\n"
31817 msgstr ""
31818
31819 #. type: textblock
31820 #: ../src/guestfs-actions.pod:5673
31821 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31822 msgstr ""
31823
31824 #. type: =head2
31825 #: ../src/guestfs-actions.pod:5677
31826 msgid "guestfs_ntfsresize_opts_argv"
31827 msgstr ""
31828
31829 #. type: verbatim
31830 #: ../src/guestfs-actions.pod:5679
31831 #, no-wrap
31832 msgid ""
31833 " int\n"
31834 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31835 "                               const char *device,\n"
31836 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31837 "\n"
31838 msgstr ""
31839
31840 #. type: textblock
31841 #: ../src/guestfs-actions.pod:5684
31842 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31843 msgstr ""
31844
31845 #. type: =head2
31846 #: ../src/guestfs-actions.pod:5688
31847 msgid "guestfs_ntfsresize_size"
31848 msgstr ""
31849
31850 #. type: verbatim
31851 #: ../src/guestfs-actions.pod:5690
31852 #, no-wrap
31853 msgid ""
31854 " int\n"
31855 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31856 "                          const char *device,\n"
31857 "                          int64_t size);\n"
31858 "\n"
31859 msgstr ""
31860
31861 #. type: textblock
31862 #: ../src/guestfs-actions.pod:5702
31863 msgid ""
31864 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31865 "to specify the new size (in bytes) explicitly."
31866 msgstr ""
31867
31868 #. type: textblock
31869 #: ../src/guestfs-actions.pod:5707 ../src/guestfs-actions.pod:6166
31870 #: ../src/guestfs-actions.pod:6239 ../src/guestfs-actions.pod:6507
31871 #: ../src/guestfs-actions.pod:8134
31872 msgid "(Added in 1.3.14)"
31873 msgstr "(Додано у 1.3.14)"
31874
31875 #. type: =head2
31876 #: ../src/guestfs-actions.pod:5709
31877 msgid "guestfs_part_add"
31878 msgstr ""
31879
31880 #. type: verbatim
31881 #: ../src/guestfs-actions.pod:5711
31882 #, no-wrap
31883 msgid ""
31884 " int\n"
31885 " guestfs_part_add (guestfs_h *g,\n"
31886 "                   const char *device,\n"
31887 "                   const char *prlogex,\n"
31888 "                   int64_t startsect,\n"
31889 "                   int64_t endsect);\n"
31890 "\n"
31891 msgstr ""
31892
31893 #. type: textblock
31894 #: ../src/guestfs-actions.pod:5718
31895 msgid ""
31896 "This command adds a partition to C<device>.  If there is no partition table "
31897 "on the device, call C<guestfs_part_init> first."
31898 msgstr ""
31899
31900 #. type: textblock
31901 #: ../src/guestfs-actions.pod:5730
31902 msgid ""
31903 "Creating a partition which covers the whole disk is not so easy.  Use "
31904 "C<guestfs_part_disk> to do that."
31905 msgstr ""
31906
31907 #. type: textblock
31908 #: ../src/guestfs-actions.pod:5735 ../src/guestfs-actions.pod:5770
31909 #: ../src/guestfs-actions.pod:5823 ../src/guestfs-actions.pod:5907
31910 #: ../src/guestfs-actions.pod:5945 ../src/guestfs-actions.pod:5964
31911 #: ../src/guestfs-actions.pod:6004
31912 msgid "(Added in 1.0.78)"
31913 msgstr "(Додано у 1.0.78)"
31914
31915 #. type: =head2
31916 #: ../src/guestfs-actions.pod:5737
31917 msgid "guestfs_part_del"
31918 msgstr ""
31919
31920 #. type: verbatim
31921 #: ../src/guestfs-actions.pod:5739
31922 #, no-wrap
31923 msgid ""
31924 " int\n"
31925 " guestfs_part_del (guestfs_h *g,\n"
31926 "                   const char *device,\n"
31927 "                   int partnum);\n"
31928 "\n"
31929 msgstr ""
31930
31931 #. type: =head2
31932 #: ../src/guestfs-actions.pod:5754
31933 msgid "guestfs_part_disk"
31934 msgstr ""
31935
31936 #. type: verbatim
31937 #: ../src/guestfs-actions.pod:5756
31938 #, no-wrap
31939 msgid ""
31940 " int\n"
31941 " guestfs_part_disk (guestfs_h *g,\n"
31942 "                    const char *device,\n"
31943 "                    const char *parttype);\n"
31944 "\n"
31945 msgstr ""
31946
31947 #. type: textblock
31948 #: ../src/guestfs-actions.pod:5761
31949 msgid ""
31950 "This command is simply a combination of C<guestfs_part_init> followed by "
31951 "C<guestfs_part_add> to create a single primary partition covering the whole "
31952 "disk."
31953 msgstr ""
31954
31955 #. type: textblock
31956 #: ../src/guestfs-actions.pod:5765
31957 msgid ""
31958 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31959 "possible values are described in C<guestfs_part_init>."
31960 msgstr ""
31961
31962 #. type: =head2
31963 #: ../src/guestfs-actions.pod:5772
31964 msgid "guestfs_part_get_bootable"
31965 msgstr ""
31966
31967 #. type: verbatim
31968 #: ../src/guestfs-actions.pod:5774
31969 #, no-wrap
31970 msgid ""
31971 " int\n"
31972 " guestfs_part_get_bootable (guestfs_h *g,\n"
31973 "                            const char *device,\n"
31974 "                            int partnum);\n"
31975 "\n"
31976 msgstr ""
31977
31978 #. type: textblock
31979 #: ../src/guestfs-actions.pod:5782
31980 msgid "See also C<guestfs_part_set_bootable>."
31981 msgstr ""
31982
31983 #. type: =head2
31984 #: ../src/guestfs-actions.pod:5788
31985 msgid "guestfs_part_get_mbr_id"
31986 msgstr ""
31987
31988 #. type: verbatim
31989 #: ../src/guestfs-actions.pod:5790
31990 #, no-wrap
31991 msgid ""
31992 " int\n"
31993 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31994 "                          const char *device,\n"
31995 "                          int partnum);\n"
31996 "\n"
31997 msgstr ""
31998
31999 #. type: textblock
32000 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5980
32001 msgid ""
32002 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
32003 "undefined results for other partition table types (see "
32004 "C<guestfs_part_get_parttype>)."
32005 msgstr ""
32006
32007 #. type: =head2
32008 #: ../src/guestfs-actions.pod:5806
32009 msgid "guestfs_part_get_parttype"
32010 msgstr ""
32011
32012 #. type: verbatim
32013 #: ../src/guestfs-actions.pod:5808
32014 #, no-wrap
32015 msgid ""
32016 " char *\n"
32017 " guestfs_part_get_parttype (guestfs_h *g,\n"
32018 "                            const char *device);\n"
32019 "\n"
32020 msgstr ""
32021
32022 #. type: textblock
32023 #: ../src/guestfs-actions.pod:5815
32024 msgid ""
32025 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
32026 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
32027 "possible, although unusual.  See C<guestfs_part_init> for a full list."
32028 msgstr ""
32029
32030 #. type: =head2
32031 #: ../src/guestfs-actions.pod:5825
32032 msgid "guestfs_part_init"
32033 msgstr ""
32034
32035 #. type: verbatim
32036 #: ../src/guestfs-actions.pod:5827
32037 #, no-wrap
32038 msgid ""
32039 " int\n"
32040 " guestfs_part_init (guestfs_h *g,\n"
32041 "                    const char *device,\n"
32042 "                    const char *parttype);\n"
32043 "\n"
32044 msgstr ""
32045
32046 #. type: textblock
32047 #: ../src/guestfs-actions.pod:5836
32048 msgid ""
32049 "Initially there are no partitions.  Following this, you should call "
32050 "C<guestfs_part_add> for each partition required."
32051 msgstr ""
32052
32053 #. type: =head2
32054 #: ../src/guestfs-actions.pod:5909
32055 msgid "guestfs_part_list"
32056 msgstr "guestfs_part_list"
32057
32058 #. type: verbatim
32059 #: ../src/guestfs-actions.pod:5911
32060 #, no-wrap
32061 msgid ""
32062 " struct guestfs_partition_list *\n"
32063 " guestfs_part_list (guestfs_h *g,\n"
32064 "                    const char *device);\n"
32065 "\n"
32066 msgstr ""
32067 " struct guestfs_partition_list *\n"
32068 " guestfs_part_list (guestfs_h *g,\n"
32069 "                    const char *device);\n"
32070 "\n"
32071
32072 #. type: textblock
32073 #: ../src/guestfs-actions.pod:5928
32074 msgid ""
32075 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
32076 "the device's sector size, see C<guestfs_blockdev_getss>."
32077 msgstr ""
32078
32079 #. type: textblock
32080 #: ../src/guestfs-actions.pod:5941
32081 msgid ""
32082 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32083 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
32084 "use>."
32085 msgstr ""
32086
32087 #. type: =head2
32088 #: ../src/guestfs-actions.pod:5947
32089 msgid "guestfs_part_set_bootable"
32090 msgstr ""
32091
32092 #. type: verbatim
32093 #: ../src/guestfs-actions.pod:5949
32094 #, no-wrap
32095 msgid ""
32096 " int\n"
32097 " guestfs_part_set_bootable (guestfs_h *g,\n"
32098 "                            const char *device,\n"
32099 "                            int partnum,\n"
32100 "                            int bootable);\n"
32101 "\n"
32102 msgstr ""
32103
32104 #. type: =head2
32105 #: ../src/guestfs-actions.pod:5966
32106 msgid "guestfs_part_set_mbr_id"
32107 msgstr ""
32108
32109 #. type: verbatim
32110 #: ../src/guestfs-actions.pod:5968
32111 #, no-wrap
32112 msgid ""
32113 " int\n"
32114 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32115 "                          const char *device,\n"
32116 "                          int partnum,\n"
32117 "                          int idbyte);\n"
32118 "\n"
32119 msgstr ""
32120
32121 #. type: =head2
32122 #: ../src/guestfs-actions.pod:5988
32123 msgid "guestfs_part_set_name"
32124 msgstr ""
32125
32126 #. type: verbatim
32127 #: ../src/guestfs-actions.pod:5990
32128 #, no-wrap
32129 msgid ""
32130 " int\n"
32131 " guestfs_part_set_name (guestfs_h *g,\n"
32132 "                        const char *device,\n"
32133 "                        int partnum,\n"
32134 "                        const char *name);\n"
32135 "\n"
32136 msgstr ""
32137
32138 #. type: =head2
32139 #: ../src/guestfs-actions.pod:6006
32140 msgid "guestfs_part_to_dev"
32141 msgstr ""
32142
32143 #. type: verbatim
32144 #: ../src/guestfs-actions.pod:6008
32145 #, no-wrap
32146 msgid ""
32147 " char *\n"
32148 " guestfs_part_to_dev (guestfs_h *g,\n"
32149 "                      const char *partition);\n"
32150 "\n"
32151 msgstr ""
32152
32153 #. type: textblock
32154 #: ../src/guestfs-actions.pod:6016 ../src/guestfs-actions.pod:6035
32155 msgid ""
32156 "The named partition must exist, for example as a string returned from "
32157 "C<guestfs_list_partitions>."
32158 msgstr ""
32159
32160 #. type: textblock
32161 #: ../src/guestfs-actions.pod:6019
32162 msgid "See also C<guestfs_part_to_partnum>."
32163 msgstr ""
32164
32165 #. type: =head2
32166 #: ../src/guestfs-actions.pod:6026
32167 msgid "guestfs_part_to_partnum"
32168 msgstr ""
32169
32170 #. type: verbatim
32171 #: ../src/guestfs-actions.pod:6028
32172 #, no-wrap
32173 msgid ""
32174 " int\n"
32175 " guestfs_part_to_partnum (guestfs_h *g,\n"
32176 "                          const char *partition);\n"
32177 "\n"
32178 msgstr ""
32179
32180 #. type: textblock
32181 #: ../src/guestfs-actions.pod:6038
32182 msgid "See also C<guestfs_part_to_dev>."
32183 msgstr ""
32184
32185 #. type: =head2
32186 #: ../src/guestfs-actions.pod:6044
32187 msgid "guestfs_ping_daemon"
32188 msgstr ""
32189
32190 #. type: verbatim
32191 #: ../src/guestfs-actions.pod:6046
32192 #, no-wrap
32193 msgid ""
32194 " int\n"
32195 " guestfs_ping_daemon (guestfs_h *g);\n"
32196 "\n"
32197 msgstr ""
32198
32199 #. type: =head2
32200 #: ../src/guestfs-actions.pod:6058
32201 msgid "guestfs_pread"
32202 msgstr ""
32203
32204 #. type: verbatim
32205 #: ../src/guestfs-actions.pod:6060
32206 #, no-wrap
32207 msgid ""
32208 " char *\n"
32209 " guestfs_pread (guestfs_h *g,\n"
32210 "                const char *path,\n"
32211 "                int count,\n"
32212 "                int64_t offset,\n"
32213 "                size_t *size_r);\n"
32214 "\n"
32215 msgstr ""
32216
32217 #. type: textblock
32218 #: ../src/guestfs-actions.pod:6073
32219 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32220 msgstr ""
32221
32222 #. type: =head2
32223 #: ../src/guestfs-actions.pod:6084
32224 msgid "guestfs_pread_device"
32225 msgstr ""
32226
32227 #. type: verbatim
32228 #: ../src/guestfs-actions.pod:6086
32229 #, no-wrap
32230 msgid ""
32231 " char *\n"
32232 " guestfs_pread_device (guestfs_h *g,\n"
32233 "                       const char *device,\n"
32234 "                       int count,\n"
32235 "                       int64_t offset,\n"
32236 "                       size_t *size_r);\n"
32237 "\n"
32238 msgstr ""
32239
32240 #. type: textblock
32241 #: ../src/guestfs-actions.pod:6099
32242 msgid "See also C<guestfs_pread>."
32243 msgstr ""
32244
32245 #. type: textblock
32246 #: ../src/guestfs-actions.pod:6108
32247 msgid "(Added in 1.5.21)"
32248 msgstr "(Додано у 1.5.21)"
32249
32250 #. type: =head2
32251 #: ../src/guestfs-actions.pod:6110
32252 msgid "guestfs_pvcreate"
32253 msgstr ""
32254
32255 #. type: verbatim
32256 #: ../src/guestfs-actions.pod:6112
32257 #, no-wrap
32258 msgid ""
32259 " int\n"
32260 " guestfs_pvcreate (guestfs_h *g,\n"
32261 "                   const char *device);\n"
32262 "\n"
32263 msgstr ""
32264
32265 #. type: =head2
32266 #: ../src/guestfs-actions.pod:6124
32267 msgid "guestfs_pvremove"
32268 msgstr ""
32269
32270 #. type: verbatim
32271 #: ../src/guestfs-actions.pod:6126
32272 #, no-wrap
32273 msgid ""
32274 " int\n"
32275 " guestfs_pvremove (guestfs_h *g,\n"
32276 "                   const char *device);\n"
32277 "\n"
32278 msgstr ""
32279
32280 #. type: =head2
32281 #: ../src/guestfs-actions.pod:6141
32282 msgid "guestfs_pvresize"
32283 msgstr ""
32284
32285 #. type: verbatim
32286 #: ../src/guestfs-actions.pod:6143
32287 #, no-wrap
32288 msgid ""
32289 " int\n"
32290 " guestfs_pvresize (guestfs_h *g,\n"
32291 "                   const char *device);\n"
32292 "\n"
32293 msgstr ""
32294
32295 #. type: =head2
32296 #: ../src/guestfs-actions.pod:6154
32297 msgid "guestfs_pvresize_size"
32298 msgstr ""
32299
32300 #. type: verbatim
32301 #: ../src/guestfs-actions.pod:6156
32302 #, no-wrap
32303 msgid ""
32304 " int\n"
32305 " guestfs_pvresize_size (guestfs_h *g,\n"
32306 "                        const char *device,\n"
32307 "                        int64_t size);\n"
32308 "\n"
32309 msgstr ""
32310
32311 #. type: textblock
32312 #: ../src/guestfs-actions.pod:6161
32313 msgid ""
32314 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32315 "specify the new size (in bytes) explicitly."
32316 msgstr ""
32317
32318 #. type: =head2
32319 #: ../src/guestfs-actions.pod:6168
32320 msgid "guestfs_pvs"
32321 msgstr ""
32322
32323 #. type: verbatim
32324 #: ../src/guestfs-actions.pod:6170
32325 #, no-wrap
32326 msgid ""
32327 " char **\n"
32328 " guestfs_pvs (guestfs_h *g);\n"
32329 "\n"
32330 msgstr ""
32331
32332 #. type: textblock
32333 #: ../src/guestfs-actions.pod:6179
32334 msgid "See also C<guestfs_pvs_full>."
32335 msgstr ""
32336
32337 #. type: =head2
32338 #: ../src/guestfs-actions.pod:6187
32339 msgid "guestfs_pvs_full"
32340 msgstr ""
32341
32342 #. type: verbatim
32343 #: ../src/guestfs-actions.pod:6189
32344 #, no-wrap
32345 msgid ""
32346 " struct guestfs_lvm_pv_list *\n"
32347 " guestfs_pvs_full (guestfs_h *g);\n"
32348 "\n"
32349 msgstr ""
32350
32351 #. type: textblock
32352 #: ../src/guestfs-actions.pod:6195
32353 msgid ""
32354 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32355 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32356 msgstr ""
32357
32358 #. type: =head2
32359 #: ../src/guestfs-actions.pod:6201
32360 msgid "guestfs_pvuuid"
32361 msgstr ""
32362
32363 #. type: verbatim
32364 #: ../src/guestfs-actions.pod:6203
32365 #, no-wrap
32366 msgid ""
32367 " char *\n"
32368 " guestfs_pvuuid (guestfs_h *g,\n"
32369 "                 const char *device);\n"
32370 "\n"
32371 msgstr ""
32372
32373 #. type: =head2
32374 #: ../src/guestfs-actions.pod:6214
32375 msgid "guestfs_pwrite"
32376 msgstr ""
32377
32378 #. type: verbatim
32379 #: ../src/guestfs-actions.pod:6216
32380 #, no-wrap
32381 msgid ""
32382 " int\n"
32383 " guestfs_pwrite (guestfs_h *g,\n"
32384 "                 const char *path,\n"
32385 "                 const char *content,\n"
32386 "                 size_t content_size,\n"
32387 "                 int64_t offset);\n"
32388 "\n"
32389 msgstr ""
32390
32391 #. type: textblock
32392 #: ../src/guestfs-actions.pod:6232
32393 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32394 msgstr ""
32395
32396 #. type: =head2
32397 #: ../src/guestfs-actions.pod:6241
32398 msgid "guestfs_pwrite_device"
32399 msgstr ""
32400
32401 #. type: verbatim
32402 #: ../src/guestfs-actions.pod:6243
32403 #, no-wrap
32404 msgid ""
32405 " int\n"
32406 " guestfs_pwrite_device (guestfs_h *g,\n"
32407 "                        const char *device,\n"
32408 "                        const char *content,\n"
32409 "                        size_t content_size,\n"
32410 "                        int64_t offset);\n"
32411 "\n"
32412 msgstr ""
32413
32414 #. type: textblock
32415 #: ../src/guestfs-actions.pod:6258
32416 msgid "See also C<guestfs_pwrite>."
32417 msgstr ""
32418
32419 #. type: textblock
32420 #: ../src/guestfs-actions.pod:6265
32421 msgid "(Added in 1.5.20)"
32422 msgstr "(Додано у 1.5.20)"
32423
32424 #. type: =head2
32425 #: ../src/guestfs-actions.pod:6267
32426 msgid "guestfs_read_file"
32427 msgstr ""
32428
32429 #. type: verbatim
32430 #: ../src/guestfs-actions.pod:6269
32431 #, no-wrap
32432 msgid ""
32433 " char *\n"
32434 " guestfs_read_file (guestfs_h *g,\n"
32435 "                    const char *path,\n"
32436 "                    size_t *size_r);\n"
32437 "\n"
32438 msgstr ""
32439
32440 #. type: textblock
32441 #: ../src/guestfs-actions.pod:6277
32442 msgid ""
32443 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
32444 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
32445 "function is limited in the total size of file that can be handled."
32446 msgstr ""
32447
32448 #. type: textblock
32449 #: ../src/guestfs-actions.pod:6289
32450 msgid "(Added in 1.0.63)"
32451 msgstr "(Додано у 1.0.63)"
32452
32453 #. type: =head2
32454 #: ../src/guestfs-actions.pod:6291
32455 msgid "guestfs_read_lines"
32456 msgstr ""
32457
32458 #. type: verbatim
32459 #: ../src/guestfs-actions.pod:6293
32460 #, no-wrap
32461 msgid ""
32462 " char **\n"
32463 " guestfs_read_lines (guestfs_h *g,\n"
32464 "                     const char *path);\n"
32465 "\n"
32466 msgstr ""
32467
32468 #. type: textblock
32469 #: ../src/guestfs-actions.pod:6302
32470 msgid ""
32471 "Note that this function cannot correctly handle binary files (specifically, "
32472 "files containing C<\\0> character which is treated as end of line).  For "
32473 "those you need to use the C<guestfs_read_file> function which has a more "
32474 "complex interface."
32475 msgstr ""
32476
32477 #. type: =head2
32478 #: ../src/guestfs-actions.pod:6313
32479 msgid "guestfs_readdir"
32480 msgstr ""
32481
32482 #. type: verbatim
32483 #: ../src/guestfs-actions.pod:6315
32484 #, no-wrap
32485 msgid ""
32486 " struct guestfs_dirent_list *\n"
32487 " guestfs_readdir (guestfs_h *g,\n"
32488 "                  const char *dir);\n"
32489 "\n"
32490 msgstr ""
32491
32492 #. type: textblock
32493 #: ../src/guestfs-actions.pod:6369
32494 msgid ""
32495 "This function is primarily intended for use by programs.  To get a simple "
32496 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
32497 "consumption, use C<guestfs_ll>."
32498 msgstr ""
32499
32500 #. type: textblock
32501 #: ../src/guestfs-actions.pod:6373
32502 msgid ""
32503 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32504 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
32505 msgstr ""
32506
32507 #. type: =head2
32508 #: ../src/guestfs-actions.pod:6379
32509 msgid "guestfs_readlink"
32510 msgstr ""
32511
32512 #. type: verbatim
32513 #: ../src/guestfs-actions.pod:6381
32514 #, no-wrap
32515 msgid ""
32516 " char *\n"
32517 " guestfs_readlink (guestfs_h *g,\n"
32518 "                   const char *path);\n"
32519 "\n"
32520 msgstr ""
32521
32522 #. type: =head2
32523 #: ../src/guestfs-actions.pod:6392
32524 msgid "guestfs_readlinklist"
32525 msgstr ""
32526
32527 #. type: verbatim
32528 #: ../src/guestfs-actions.pod:6394
32529 #, no-wrap
32530 msgid ""
32531 " char **\n"
32532 " guestfs_readlinklist (guestfs_h *g,\n"
32533 "                       const char *path,\n"
32534 "                       char *const *names);\n"
32535 "\n"
32536 msgstr ""
32537
32538 #. type: =head2
32539 #: ../src/guestfs-actions.pod:6427
32540 msgid "guestfs_realpath"
32541 msgstr ""
32542
32543 #. type: verbatim
32544 #: ../src/guestfs-actions.pod:6429
32545 #, no-wrap
32546 msgid ""
32547 " char *\n"
32548 " guestfs_realpath (guestfs_h *g,\n"
32549 "                   const char *path);\n"
32550 "\n"
32551 msgstr ""
32552
32553 #. type: =head2
32554 #: ../src/guestfs-actions.pod:6441
32555 msgid "guestfs_removexattr"
32556 msgstr ""
32557
32558 #. type: verbatim
32559 #: ../src/guestfs-actions.pod:6443
32560 #, no-wrap
32561 msgid ""
32562 " int\n"
32563 " guestfs_removexattr (guestfs_h *g,\n"
32564 "                      const char *xattr,\n"
32565 "                      const char *path);\n"
32566 "\n"
32567 msgstr ""
32568
32569 #. type: textblock
32570 #: ../src/guestfs-actions.pod:6451
32571 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32572 msgstr ""
32573
32574 #. type: =head2
32575 #: ../src/guestfs-actions.pod:6457
32576 msgid "guestfs_resize2fs"
32577 msgstr ""
32578
32579 #. type: verbatim
32580 #: ../src/guestfs-actions.pod:6459
32581 #, no-wrap
32582 msgid ""
32583 " int\n"
32584 " guestfs_resize2fs (guestfs_h *g,\n"
32585 "                    const char *device);\n"
32586 "\n"
32587 msgstr ""
32588
32589 #. type: textblock
32590 #: ../src/guestfs-actions.pod:6466
32591 msgid ""
32592 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32593 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
32594 "sometimes gives an error about this and sometimes not.  In any case, it is "
32595 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32596 msgstr ""
32597
32598 #. type: =head2
32599 #: ../src/guestfs-actions.pod:6476
32600 msgid "guestfs_resize2fs_M"
32601 msgstr ""
32602
32603 #. type: verbatim
32604 #: ../src/guestfs-actions.pod:6478
32605 #, no-wrap
32606 msgid ""
32607 " int\n"
32608 " guestfs_resize2fs_M (guestfs_h *g,\n"
32609 "                      const char *device);\n"
32610 "\n"
32611 msgstr ""
32612
32613 #. type: textblock
32614 #: ../src/guestfs-actions.pod:6482
32615 msgid ""
32616 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32617 "resized to its minimum size.  This works like the I<-M> option to the "
32618 "C<resize2fs> command."
32619 msgstr ""
32620
32621 #. type: textblock
32622 #: ../src/guestfs-actions.pod:6486
32623 msgid ""
32624 "To get the resulting size of the filesystem you should call "
32625 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
32626 "These two numbers, multiplied together, give the resulting size of the "
32627 "minimal filesystem in bytes."
32628 msgstr ""
32629
32630 #. type: =head2
32631 #: ../src/guestfs-actions.pod:6495
32632 msgid "guestfs_resize2fs_size"
32633 msgstr ""
32634
32635 #. type: verbatim
32636 #: ../src/guestfs-actions.pod:6497
32637 #, no-wrap
32638 msgid ""
32639 " int\n"
32640 " guestfs_resize2fs_size (guestfs_h *g,\n"
32641 "                         const char *device,\n"
32642 "                         int64_t size);\n"
32643 "\n"
32644 msgstr ""
32645
32646 #. type: textblock
32647 #: ../src/guestfs-actions.pod:6502
32648 msgid ""
32649 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32650 "to specify the new size (in bytes) explicitly."
32651 msgstr ""
32652
32653 #. type: =head2
32654 #: ../src/guestfs-actions.pod:6509
32655 msgid "guestfs_rm"
32656 msgstr ""
32657
32658 #. type: verbatim
32659 #: ../src/guestfs-actions.pod:6511
32660 #, no-wrap
32661 msgid ""
32662 " int\n"
32663 " guestfs_rm (guestfs_h *g,\n"
32664 "             const char *path);\n"
32665 "\n"
32666 msgstr ""
32667
32668 #. type: =head2
32669 #: ../src/guestfs-actions.pod:6521
32670 msgid "guestfs_rm_rf"
32671 msgstr ""
32672
32673 #. type: verbatim
32674 #: ../src/guestfs-actions.pod:6523
32675 #, no-wrap
32676 msgid ""
32677 " int\n"
32678 " guestfs_rm_rf (guestfs_h *g,\n"
32679 "                const char *path);\n"
32680 "\n"
32681 msgstr ""
32682
32683 #. type: =head2
32684 #: ../src/guestfs-actions.pod:6535
32685 msgid "guestfs_rmdir"
32686 msgstr ""
32687
32688 #. type: verbatim
32689 #: ../src/guestfs-actions.pod:6537
32690 #, no-wrap
32691 msgid ""
32692 " int\n"
32693 " guestfs_rmdir (guestfs_h *g,\n"
32694 "                const char *path);\n"
32695 "\n"
32696 msgstr ""
32697
32698 #. type: =head2
32699 #: ../src/guestfs-actions.pod:6547
32700 msgid "guestfs_rmmountpoint"
32701 msgstr ""
32702
32703 #. type: verbatim
32704 #: ../src/guestfs-actions.pod:6549
32705 #, no-wrap
32706 msgid ""
32707 " int\n"
32708 " guestfs_rmmountpoint (guestfs_h *g,\n"
32709 "                       const char *exemptpath);\n"
32710 "\n"
32711 msgstr ""
32712
32713 #. type: textblock
32714 #: ../src/guestfs-actions.pod:6553
32715 msgid ""
32716 "This calls removes a mountpoint that was previously created with "
32717 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
32718 msgstr ""
32719
32720 #. type: =head2
32721 #: ../src/guestfs-actions.pod:6561
32722 msgid "guestfs_scrub_device"
32723 msgstr ""
32724
32725 #. type: verbatim
32726 #: ../src/guestfs-actions.pod:6563
32727 #, no-wrap
32728 msgid ""
32729 " int\n"
32730 " guestfs_scrub_device (guestfs_h *g,\n"
32731 "                       const char *device);\n"
32732 "\n"
32733 msgstr ""
32734
32735 #. type: textblock
32736 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6593
32737 #: ../src/guestfs-actions.pod:6612
32738 msgid "(Added in 1.0.52)"
32739 msgstr "(Додано у 1.0.52)"
32740
32741 #. type: =head2
32742 #: ../src/guestfs-actions.pod:6577
32743 msgid "guestfs_scrub_file"
32744 msgstr ""
32745
32746 #. type: verbatim
32747 #: ../src/guestfs-actions.pod:6579
32748 #, no-wrap
32749 msgid ""
32750 " int\n"
32751 " guestfs_scrub_file (guestfs_h *g,\n"
32752 "                     const char *file);\n"
32753 "\n"
32754 msgstr ""
32755
32756 #. type: =head2
32757 #: ../src/guestfs-actions.pod:6595
32758 msgid "guestfs_scrub_freespace"
32759 msgstr ""
32760
32761 #. type: verbatim
32762 #: ../src/guestfs-actions.pod:6597
32763 #, no-wrap
32764 msgid ""
32765 " int\n"
32766 " guestfs_scrub_freespace (guestfs_h *g,\n"
32767 "                          const char *dir);\n"
32768 "\n"
32769 msgstr ""
32770
32771 #. type: textblock
32772 #: ../src/guestfs-actions.pod:6601
32773 msgid ""
32774 "This command creates the directory C<dir> and then fills it with files until "
32775 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32776 "and deletes them.  The intention is to scrub any free space on the partition "
32777 "containing C<dir>."
32778 msgstr ""
32779
32780 #. type: =head2
32781 #: ../src/guestfs-actions.pod:6614
32782 msgid "guestfs_set_append"
32783 msgstr ""
32784
32785 #. type: verbatim
32786 #: ../src/guestfs-actions.pod:6616
32787 #, no-wrap
32788 msgid ""
32789 " int\n"
32790 " guestfs_set_append (guestfs_h *g,\n"
32791 "                     const char *append);\n"
32792 "\n"
32793 msgstr ""
32794
32795 #. type: =head2
32796 #: ../src/guestfs-actions.pod:6633
32797 msgid "guestfs_set_attach_method"
32798 msgstr ""
32799
32800 #. type: verbatim
32801 #: ../src/guestfs-actions.pod:6635
32802 #, no-wrap
32803 msgid ""
32804 " int\n"
32805 " guestfs_set_attach_method (guestfs_h *g,\n"
32806 "                            const char *attachmethod);\n"
32807 "\n"
32808 msgstr ""
32809
32810 #. type: =head2
32811 #: ../src/guestfs-actions.pod:6663
32812 msgid "guestfs_set_autosync"
32813 msgstr ""
32814
32815 #. type: verbatim
32816 #: ../src/guestfs-actions.pod:6665
32817 #, no-wrap
32818 msgid ""
32819 " int\n"
32820 " guestfs_set_autosync (guestfs_h *g,\n"
32821 "                       int autosync);\n"
32822 "\n"
32823 msgstr ""
32824
32825 #. type: =head2
32826 #: ../src/guestfs-actions.pod:6681
32827 msgid "guestfs_set_direct"
32828 msgstr ""
32829
32830 #. type: verbatim
32831 #: ../src/guestfs-actions.pod:6683
32832 #, no-wrap
32833 msgid ""
32834 " int\n"
32835 " guestfs_set_direct (guestfs_h *g,\n"
32836 "                     int direct);\n"
32837 "\n"
32838 msgstr ""
32839
32840 #. type: textblock
32841 #: ../src/guestfs-actions.pod:6691
32842 msgid ""
32843 "One consequence of this is that log messages aren't caught by the library "
32844 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32845 "stdout."
32846 msgstr ""
32847
32848 #. type: =head2
32849 #: ../src/guestfs-actions.pod:6704
32850 msgid "guestfs_set_e2label"
32851 msgstr ""
32852
32853 #. type: verbatim
32854 #: ../src/guestfs-actions.pod:6706
32855 #, no-wrap
32856 msgid ""
32857 " int\n"
32858 " guestfs_set_e2label (guestfs_h *g,\n"
32859 "                      const char *device,\n"
32860 "                      const char *label);\n"
32861 "\n"
32862 msgstr ""
32863
32864 #. type: textblock
32865 #: ../src/guestfs-actions.pod:6715
32866 msgid ""
32867 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32868 "the existing label on a filesystem."
32869 msgstr ""
32870
32871 #. type: =head2
32872 #: ../src/guestfs-actions.pod:6722
32873 msgid "guestfs_set_e2uuid"
32874 msgstr ""
32875
32876 #. type: verbatim
32877 #: ../src/guestfs-actions.pod:6724
32878 #, no-wrap
32879 msgid ""
32880 " int\n"
32881 " guestfs_set_e2uuid (guestfs_h *g,\n"
32882 "                     const char *device,\n"
32883 "                     const char *uuid);\n"
32884 "\n"
32885 msgstr ""
32886
32887 #. type: textblock
32888 #: ../src/guestfs-actions.pod:6734
32889 msgid ""
32890 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32891 "the existing UUID of a filesystem."
32892 msgstr ""
32893
32894 #. type: =head2
32895 #: ../src/guestfs-actions.pod:6741
32896 msgid "guestfs_set_memsize"
32897 msgstr ""
32898
32899 #. type: verbatim
32900 #: ../src/guestfs-actions.pod:6743
32901 #, no-wrap
32902 msgid ""
32903 " int\n"
32904 " guestfs_set_memsize (guestfs_h *g,\n"
32905 "                      int memsize);\n"
32906 "\n"
32907 msgstr ""
32908
32909 #. type: textblock
32910 #: ../src/guestfs-actions.pod:6747
32911 msgid ""
32912 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
32913 "This only has any effect if called before C<guestfs_launch>."
32914 msgstr ""
32915
32916 #. type: =head2
32917 #: ../src/guestfs-actions.pod:6762
32918 msgid "guestfs_set_network"
32919 msgstr ""
32920
32921 #. type: verbatim
32922 #: ../src/guestfs-actions.pod:6764
32923 #, no-wrap
32924 msgid ""
32925 " int\n"
32926 " guestfs_set_network (guestfs_h *g,\n"
32927 "                      int network);\n"
32928 "\n"
32929 msgstr ""
32930
32931 #. type: textblock
32932 #: ../src/guestfs-actions.pod:6774
32933 msgid ""
32934 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32935 "effect."
32936 msgstr ""
32937
32938 #. type: =head2
32939 #: ../src/guestfs-actions.pod:6781
32940 msgid "guestfs_set_path"
32941 msgstr ""
32942
32943 #. type: verbatim
32944 #: ../src/guestfs-actions.pod:6783
32945 #, no-wrap
32946 msgid ""
32947 " int\n"
32948 " guestfs_set_path (guestfs_h *g,\n"
32949 "                   const char *searchpath);\n"
32950 "\n"
32951 msgstr ""
32952
32953 #. type: =head2
32954 #: ../src/guestfs-actions.pod:6798
32955 msgid "guestfs_set_pgroup"
32956 msgstr ""
32957
32958 #. type: verbatim
32959 #: ../src/guestfs-actions.pod:6800
32960 #, no-wrap
32961 msgid ""
32962 " int\n"
32963 " guestfs_set_pgroup (guestfs_h *g,\n"
32964 "                     int pgroup);\n"
32965 "\n"
32966 msgstr ""
32967
32968 #. type: =head2
32969 #: ../src/guestfs-actions.pod:6817
32970 msgid "guestfs_set_qemu"
32971 msgstr ""
32972
32973 #. type: verbatim
32974 #: ../src/guestfs-actions.pod:6819
32975 #, no-wrap
32976 msgid ""
32977 " int\n"
32978 " guestfs_set_qemu (guestfs_h *g,\n"
32979 "                   const char *qemu);\n"
32980 "\n"
32981 msgstr ""
32982
32983 #. type: =head2
32984 #: ../src/guestfs-actions.pod:6845
32985 msgid "guestfs_set_recovery_proc"
32986 msgstr ""
32987
32988 #. type: verbatim
32989 #: ../src/guestfs-actions.pod:6847
32990 #, no-wrap
32991 msgid ""
32992 " int\n"
32993 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32994 "                            int recoveryproc);\n"
32995 "\n"
32996 msgstr ""
32997
32998 #. type: textblock
32999 #: ../src/guestfs-actions.pod:6851
33000 msgid ""
33001 "If this is called with the parameter C<false> then C<guestfs_launch> does "
33002 "not create a recovery process.  The purpose of the recovery process is to "
33003 "stop runaway qemu processes in the case where the main program aborts "
33004 "abruptly."
33005 msgstr ""
33006
33007 #. type: textblock
33008 #: ../src/guestfs-actions.pod:6856
33009 msgid ""
33010 "This only has any effect if called before C<guestfs_launch>, and the default "
33011 "is true."
33012 msgstr ""
33013
33014 #. type: =head2
33015 #: ../src/guestfs-actions.pod:6869
33016 msgid "guestfs_set_selinux"
33017 msgstr ""
33018
33019 #. type: verbatim
33020 #: ../src/guestfs-actions.pod:6871
33021 #, no-wrap
33022 msgid ""
33023 " int\n"
33024 " guestfs_set_selinux (guestfs_h *g,\n"
33025 "                      int selinux);\n"
33026 "\n"
33027 msgstr ""
33028
33029 #. type: =head2
33030 #: ../src/guestfs-actions.pod:6888
33031 msgid "guestfs_set_smp"
33032 msgstr ""
33033
33034 #. type: verbatim
33035 #: ../src/guestfs-actions.pod:6890
33036 #, no-wrap
33037 msgid ""
33038 " int\n"
33039 " guestfs_set_smp (guestfs_h *g,\n"
33040 "                  int smp);\n"
33041 "\n"
33042 msgstr ""
33043
33044 #. type: textblock
33045 #: ../src/guestfs-actions.pod:6898
33046 msgid "This function must be called before C<guestfs_launch>."
33047 msgstr ""
33048
33049 #. type: =head2
33050 #: ../src/guestfs-actions.pod:6904
33051 msgid "guestfs_set_trace"
33052 msgstr ""
33053
33054 #. type: verbatim
33055 #: ../src/guestfs-actions.pod:6906
33056 #, no-wrap
33057 msgid ""
33058 " int\n"
33059 " guestfs_set_trace (guestfs_h *g,\n"
33060 "                    int trace);\n"
33061 "\n"
33062 msgstr ""
33063
33064 #. type: textblock
33065 #: ../src/guestfs-actions.pod:6920
33066 msgid ""
33067 "Trace messages are normally sent to C<stderr>, unless you register a "
33068 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33069 msgstr ""
33070
33071 #. type: =head2
33072 #: ../src/guestfs-actions.pod:6928
33073 msgid "guestfs_set_verbose"
33074 msgstr ""
33075
33076 #. type: verbatim
33077 #: ../src/guestfs-actions.pod:6930
33078 #, no-wrap
33079 msgid ""
33080 " int\n"
33081 " guestfs_set_verbose (guestfs_h *g,\n"
33082 "                      int verbose);\n"
33083 "\n"
33084 msgstr ""
33085
33086 #. type: textblock
33087 #: ../src/guestfs-actions.pod:6939
33088 msgid ""
33089 "Verbose messages are normally sent to C<stderr>, unless you register a "
33090 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33091 msgstr ""
33092
33093 #. type: =head2
33094 #: ../src/guestfs-actions.pod:6947
33095 msgid "guestfs_setcon"
33096 msgstr ""
33097
33098 #. type: verbatim
33099 #: ../src/guestfs-actions.pod:6949
33100 #, no-wrap
33101 msgid ""
33102 " int\n"
33103 " guestfs_setcon (guestfs_h *g,\n"
33104 "                 const char *context);\n"
33105 "\n"
33106 msgstr ""
33107
33108 #. type: =head2
33109 #: ../src/guestfs-actions.pod:6962
33110 msgid "guestfs_setxattr"
33111 msgstr ""
33112
33113 #. type: verbatim
33114 #: ../src/guestfs-actions.pod:6964
33115 #, no-wrap
33116 msgid ""
33117 " int\n"
33118 " guestfs_setxattr (guestfs_h *g,\n"
33119 "                   const char *xattr,\n"
33120 "                   const char *val,\n"
33121 "                   int vallen,\n"
33122 "                   const char *path);\n"
33123 "\n"
33124 msgstr ""
33125
33126 #. type: textblock
33127 #: ../src/guestfs-actions.pod:6975
33128 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33129 msgstr ""
33130
33131 #. type: =head2
33132 #: ../src/guestfs-actions.pod:6981
33133 msgid "guestfs_sfdisk"
33134 msgstr ""
33135
33136 #. type: verbatim
33137 #: ../src/guestfs-actions.pod:6983
33138 #, no-wrap
33139 msgid ""
33140 " int\n"
33141 " guestfs_sfdisk (guestfs_h *g,\n"
33142 "                 const char *device,\n"
33143 "                 int cyls,\n"
33144 "                 int heads,\n"
33145 "                 int sectors,\n"
33146 "                 char *const *lines);\n"
33147 "\n"
33148 msgstr ""
33149
33150 #. type: textblock
33151 #: ../src/guestfs-actions.pod:6991 ../src/guestfs-actions.pod:7032
33152 #: ../src/guestfs-actions.pod:7063
33153 msgid ""
33154 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33155 "call instead."
33156 msgstr ""
33157
33158 #. type: textblock
33159 #: ../src/guestfs-actions.pod:7018
33160 msgid ""
33161 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33162 msgstr ""
33163
33164 #. type: =head2
33165 #: ../src/guestfs-actions.pod:7025
33166 msgid "guestfs_sfdiskM"
33167 msgstr ""
33168
33169 #. type: verbatim
33170 #: ../src/guestfs-actions.pod:7027
33171 #, no-wrap
33172 msgid ""
33173 " int\n"
33174 " guestfs_sfdiskM (guestfs_h *g,\n"
33175 "                  const char *device,\n"
33176 "                  char *const *lines);\n"
33177 "\n"
33178 msgstr ""
33179
33180 #. type: textblock
33181 #: ../src/guestfs-actions.pod:7039
33182 msgid ""
33183 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33184 "partition sizes are specified in megabytes only (rounded to the nearest "
33185 "cylinder) and you don't need to specify the cyls, heads and sectors "
33186 "parameters which were rarely if ever used anyway."
33187 msgstr ""
33188
33189 #. type: textblock
33190 #: ../src/guestfs-actions.pod:7045
33191 msgid ""
33192 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33193 "C<guestfs_part_disk>"
33194 msgstr ""
33195
33196 #. type: =head2
33197 #: ../src/guestfs-actions.pod:7052
33198 msgid "guestfs_sfdisk_N"
33199 msgstr ""
33200
33201 #. type: verbatim
33202 #: ../src/guestfs-actions.pod:7054
33203 #, no-wrap
33204 msgid ""
33205 " int\n"
33206 " guestfs_sfdisk_N (guestfs_h *g,\n"
33207 "                   const char *device,\n"
33208 "                   int partnum,\n"
33209 "                   int cyls,\n"
33210 "                   int heads,\n"
33211 "                   int sectors,\n"
33212 "                   const char *line);\n"
33213 "\n"
33214 msgstr ""
33215
33216 #. type: textblock
33217 #: ../src/guestfs-actions.pod:7073
33218 msgid ""
33219 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
33220 "for the cyls/heads/sectors parameters."
33221 msgstr ""
33222
33223 #. type: textblock
33224 #: ../src/guestfs-actions.pod:7076
33225 msgid "See also: C<guestfs_part_add>"
33226 msgstr ""
33227
33228 #. type: =head2
33229 #: ../src/guestfs-actions.pod:7082
33230 msgid "guestfs_sfdisk_disk_geometry"
33231 msgstr ""
33232
33233 #. type: verbatim
33234 #: ../src/guestfs-actions.pod:7084
33235 #, no-wrap
33236 msgid ""
33237 " char *\n"
33238 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33239 "                               const char *device);\n"
33240 "\n"
33241 msgstr ""
33242
33243 #. type: textblock
33244 #: ../src/guestfs-actions.pod:7088
33245 msgid ""
33246 "This displays the disk geometry of C<device> read from the partition table.  "
33247 "Especially in the case where the underlying block device has been resized, "
33248 "this can be different from the kernel's idea of the geometry (see "
33249 "C<guestfs_sfdisk_kernel_geometry>)."
33250 msgstr ""
33251
33252 #. type: =head2
33253 #: ../src/guestfs-actions.pod:7101
33254 msgid "guestfs_sfdisk_kernel_geometry"
33255 msgstr ""
33256
33257 #. type: verbatim
33258 #: ../src/guestfs-actions.pod:7103
33259 #, no-wrap
33260 msgid ""
33261 " char *\n"
33262 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33263 "                                 const char *device);\n"
33264 "\n"
33265 msgstr ""
33266
33267 #. type: =head2
33268 #: ../src/guestfs-actions.pod:7117
33269 msgid "guestfs_sfdisk_l"
33270 msgstr ""
33271
33272 #. type: verbatim
33273 #: ../src/guestfs-actions.pod:7119
33274 #, no-wrap
33275 msgid ""
33276 " char *\n"
33277 " guestfs_sfdisk_l (guestfs_h *g,\n"
33278 "                   const char *device);\n"
33279 "\n"
33280 msgstr ""
33281
33282 #. type: textblock
33283 #: ../src/guestfs-actions.pod:7123
33284 msgid ""
33285 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33286 "call instead."
33287 msgstr ""
33288
33289 #. type: textblock
33290 #: ../src/guestfs-actions.pod:7134
33291 msgid "See also: C<guestfs_part_list>"
33292 msgstr ""
33293
33294 #. type: =head2
33295 #: ../src/guestfs-actions.pod:7141
33296 msgid "guestfs_sh"
33297 msgstr ""
33298
33299 #. type: verbatim
33300 #: ../src/guestfs-actions.pod:7143
33301 #, no-wrap
33302 msgid ""
33303 " char *\n"
33304 " guestfs_sh (guestfs_h *g,\n"
33305 "             const char *command);\n"
33306 "\n"
33307 msgstr ""
33308
33309 #. type: textblock
33310 #: ../src/guestfs-actions.pod:7150
33311 msgid "This is like C<guestfs_command>, but passes the command to:"
33312 msgstr ""
33313
33314 #. type: textblock
33315 #: ../src/guestfs-actions.pod:7158
33316 msgid "All the provisos about C<guestfs_command> apply to this call."
33317 msgstr ""
33318
33319 #. type: =head2
33320 #: ../src/guestfs-actions.pod:7165
33321 msgid "guestfs_sh_lines"
33322 msgstr ""
33323
33324 #. type: verbatim
33325 #: ../src/guestfs-actions.pod:7167
33326 #, no-wrap
33327 msgid ""
33328 " char **\n"
33329 " guestfs_sh_lines (guestfs_h *g,\n"
33330 "                   const char *command);\n"
33331 "\n"
33332 msgstr ""
33333
33334 #. type: textblock
33335 #: ../src/guestfs-actions.pod:7171
33336 msgid ""
33337 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33338 "lines."
33339 msgstr ""
33340
33341 #. type: textblock
33342 #: ../src/guestfs-actions.pod:7174
33343 msgid "See also: C<guestfs_command_lines>"
33344 msgstr ""
33345
33346 #. type: =head2
33347 #: ../src/guestfs-actions.pod:7182
33348 msgid "guestfs_sleep"
33349 msgstr ""
33350
33351 #. type: verbatim
33352 #: ../src/guestfs-actions.pod:7184
33353 #, no-wrap
33354 msgid ""
33355 " int\n"
33356 " guestfs_sleep (guestfs_h *g,\n"
33357 "                int secs);\n"
33358 "\n"
33359 msgstr ""
33360
33361 #. type: textblock
33362 #: ../src/guestfs-actions.pod:7192
33363 msgid "(Added in 1.0.41)"
33364 msgstr "(Додано у 1.0.41)"
33365
33366 #. type: =head2
33367 #: ../src/guestfs-actions.pod:7194 ../src/guestfs-structs.pod:109
33368 msgid "guestfs_stat"
33369 msgstr ""
33370
33371 #. type: verbatim
33372 #: ../src/guestfs-actions.pod:7196
33373 #, no-wrap
33374 msgid ""
33375 " struct guestfs_stat *\n"
33376 " guestfs_stat (guestfs_h *g,\n"
33377 "               const char *path);\n"
33378 "\n"
33379 msgstr ""
33380
33381 #. type: =head2
33382 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-structs.pod:135
33383 msgid "guestfs_statvfs"
33384 msgstr ""
33385
33386 #. type: verbatim
33387 #: ../src/guestfs-actions.pod:7212
33388 #, no-wrap
33389 msgid ""
33390 " struct guestfs_statvfs *\n"
33391 " guestfs_statvfs (guestfs_h *g,\n"
33392 "                  const char *path);\n"
33393 "\n"
33394 msgstr ""
33395
33396 #. type: textblock
33397 #: ../src/guestfs-actions.pod:7222
33398 msgid ""
33399 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33400 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
33401 msgstr ""
33402
33403 #. type: =head2
33404 #: ../src/guestfs-actions.pod:7228
33405 msgid "guestfs_strings"
33406 msgstr ""
33407
33408 #. type: verbatim
33409 #: ../src/guestfs-actions.pod:7230
33410 #, no-wrap
33411 msgid ""
33412 " char **\n"
33413 " guestfs_strings (guestfs_h *g,\n"
33414 "                  const char *path);\n"
33415 "\n"
33416 msgstr ""
33417
33418 #. type: =head2
33419 #: ../src/guestfs-actions.pod:7246
33420 msgid "guestfs_strings_e"
33421 msgstr ""
33422
33423 #. type: verbatim
33424 #: ../src/guestfs-actions.pod:7248
33425 #, no-wrap
33426 msgid ""
33427 " char **\n"
33428 " guestfs_strings_e (guestfs_h *g,\n"
33429 "                    const char *encoding,\n"
33430 "                    const char *path);\n"
33431 "\n"
33432 msgstr ""
33433
33434 #. type: textblock
33435 #: ../src/guestfs-actions.pod:7253
33436 msgid ""
33437 "This is like the C<guestfs_strings> command, but allows you to specify the "
33438 "encoding of strings that are looked for in the source file C<path>."
33439 msgstr ""
33440
33441 #. type: textblock
33442 #: ../src/guestfs-actions.pod:7263
33443 msgid ""
33444 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33445 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33446 msgstr ""
33447
33448 #. type: =head2
33449 #: ../src/guestfs-actions.pod:7301
33450 msgid "guestfs_swapoff_device"
33451 msgstr ""
33452
33453 #. type: verbatim
33454 #: ../src/guestfs-actions.pod:7303
33455 #, no-wrap
33456 msgid ""
33457 " int\n"
33458 " guestfs_swapoff_device (guestfs_h *g,\n"
33459 "                         const char *device);\n"
33460 "\n"
33461 msgstr ""
33462
33463 #. type: textblock
33464 #: ../src/guestfs-actions.pod:7307
33465 msgid ""
33466 "This command disables the libguestfs appliance swap device or partition "
33467 "named C<device>.  See C<guestfs_swapon_device>."
33468 msgstr ""
33469
33470 #. type: =head2
33471 #: ../src/guestfs-actions.pod:7315
33472 msgid "guestfs_swapoff_file"
33473 msgstr ""
33474
33475 #. type: verbatim
33476 #: ../src/guestfs-actions.pod:7317
33477 #, no-wrap
33478 msgid ""
33479 " int\n"
33480 " guestfs_swapoff_file (guestfs_h *g,\n"
33481 "                       const char *file);\n"
33482 "\n"
33483 msgstr ""
33484
33485 #. type: =head2
33486 #: ../src/guestfs-actions.pod:7327
33487 msgid "guestfs_swapoff_label"
33488 msgstr ""
33489
33490 #. type: verbatim
33491 #: ../src/guestfs-actions.pod:7329
33492 #, no-wrap
33493 msgid ""
33494 " int\n"
33495 " guestfs_swapoff_label (guestfs_h *g,\n"
33496 "                        const char *label);\n"
33497 "\n"
33498 msgstr ""
33499
33500 #. type: =head2
33501 #: ../src/guestfs-actions.pod:7340
33502 msgid "guestfs_swapoff_uuid"
33503 msgstr ""
33504
33505 #. type: verbatim
33506 #: ../src/guestfs-actions.pod:7342
33507 #, no-wrap
33508 msgid ""
33509 " int\n"
33510 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33511 "                       const char *uuid);\n"
33512 "\n"
33513 msgstr ""
33514
33515 #. type: =head2
33516 #: ../src/guestfs-actions.pod:7353
33517 msgid "guestfs_swapon_device"
33518 msgstr ""
33519
33520 #. type: verbatim
33521 #: ../src/guestfs-actions.pod:7355
33522 #, no-wrap
33523 msgid ""
33524 " int\n"
33525 " guestfs_swapon_device (guestfs_h *g,\n"
33526 "                        const char *device);\n"
33527 "\n"
33528 msgstr ""
33529
33530 #. type: textblock
33531 #: ../src/guestfs-actions.pod:7359
33532 msgid ""
33533 "This command enables the libguestfs appliance to use the swap device or "
33534 "partition named C<device>.  The increased memory is made available for all "
33535 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33536 msgstr ""
33537
33538 #. type: =head2
33539 #: ../src/guestfs-actions.pod:7375
33540 msgid "guestfs_swapon_file"
33541 msgstr ""
33542
33543 #. type: verbatim
33544 #: ../src/guestfs-actions.pod:7377
33545 #, no-wrap
33546 msgid ""
33547 " int\n"
33548 " guestfs_swapon_file (guestfs_h *g,\n"
33549 "                      const char *file);\n"
33550 "\n"
33551 msgstr ""
33552
33553 #. type: textblock
33554 #: ../src/guestfs-actions.pod:7381
33555 msgid ""
33556 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
33557 "notes."
33558 msgstr ""
33559
33560 #. type: =head2
33561 #: ../src/guestfs-actions.pod:7388
33562 msgid "guestfs_swapon_label"
33563 msgstr ""
33564
33565 #. type: verbatim
33566 #: ../src/guestfs-actions.pod:7390
33567 #, no-wrap
33568 msgid ""
33569 " int\n"
33570 " guestfs_swapon_label (guestfs_h *g,\n"
33571 "                       const char *label);\n"
33572 "\n"
33573 msgstr ""
33574
33575 #. type: textblock
33576 #: ../src/guestfs-actions.pod:7394
33577 msgid ""
33578 "This command enables swap to a labeled swap partition.  See "
33579 "C<guestfs_swapon_device> for other notes."
33580 msgstr ""
33581
33582 #. type: =head2
33583 #: ../src/guestfs-actions.pod:7401
33584 msgid "guestfs_swapon_uuid"
33585 msgstr ""
33586
33587 #. type: verbatim
33588 #: ../src/guestfs-actions.pod:7403
33589 #, no-wrap
33590 msgid ""
33591 " int\n"
33592 " guestfs_swapon_uuid (guestfs_h *g,\n"
33593 "                      const char *uuid);\n"
33594 "\n"
33595 msgstr ""
33596
33597 #. type: textblock
33598 #: ../src/guestfs-actions.pod:7407
33599 msgid ""
33600 "This command enables swap to a swap partition with the given UUID.  See "
33601 "C<guestfs_swapon_device> for other notes."
33602 msgstr ""
33603
33604 #. type: =head2
33605 #: ../src/guestfs-actions.pod:7414
33606 msgid "guestfs_sync"
33607 msgstr ""
33608
33609 #. type: verbatim
33610 #: ../src/guestfs-actions.pod:7416
33611 #, no-wrap
33612 msgid ""
33613 " int\n"
33614 " guestfs_sync (guestfs_h *g);\n"
33615 "\n"
33616 msgstr ""
33617
33618 #. type: =head2
33619 #: ../src/guestfs-actions.pod:7429
33620 msgid "guestfs_tail"
33621 msgstr ""
33622
33623 #. type: verbatim
33624 #: ../src/guestfs-actions.pod:7431
33625 #, no-wrap
33626 msgid ""
33627 " char **\n"
33628 " guestfs_tail (guestfs_h *g,\n"
33629 "               const char *path);\n"
33630 "\n"
33631 msgstr ""
33632
33633 #. type: =head2
33634 #: ../src/guestfs-actions.pod:7447
33635 msgid "guestfs_tail_n"
33636 msgstr ""
33637
33638 #. type: verbatim
33639 #: ../src/guestfs-actions.pod:7449
33640 #, no-wrap
33641 msgid ""
33642 " char **\n"
33643 " guestfs_tail_n (guestfs_h *g,\n"
33644 "                 int nrlines,\n"
33645 "                 const char *path);\n"
33646 "\n"
33647 msgstr ""
33648
33649 #. type: =head2
33650 #: ../src/guestfs-actions.pod:7471
33651 msgid "guestfs_tar_in"
33652 msgstr ""
33653
33654 #. type: verbatim
33655 #: ../src/guestfs-actions.pod:7473
33656 #, no-wrap
33657 msgid ""
33658 " int\n"
33659 " guestfs_tar_in (guestfs_h *g,\n"
33660 "                 const char *tarfile,\n"
33661 "                 const char *directory);\n"
33662 "\n"
33663 msgstr ""
33664
33665 #. type: textblock
33666 #: ../src/guestfs-actions.pod:7481
33667 msgid ""
33668 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33669 msgstr ""
33670
33671 #. type: textblock
33672 #: ../src/guestfs-actions.pod:7486 ../src/guestfs-actions.pod:7503
33673 #: ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7535
33674 msgid "(Added in 1.0.3)"
33675 msgstr "(Додано у 1.0.3)"
33676
33677 #. type: =head2
33678 #: ../src/guestfs-actions.pod:7488
33679 msgid "guestfs_tar_out"
33680 msgstr ""
33681
33682 #. type: verbatim
33683 #: ../src/guestfs-actions.pod:7490
33684 #, no-wrap
33685 msgid ""
33686 " int\n"
33687 " guestfs_tar_out (guestfs_h *g,\n"
33688 "                  const char *directory,\n"
33689 "                  const char *tarfile);\n"
33690 "\n"
33691 msgstr ""
33692
33693 #. type: textblock
33694 #: ../src/guestfs-actions.pod:7498
33695 msgid ""
33696 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33697 "C<guestfs_txz_out>."
33698 msgstr ""
33699
33700 #. type: =head2
33701 #: ../src/guestfs-actions.pod:7505
33702 msgid "guestfs_tgz_in"
33703 msgstr ""
33704
33705 #. type: verbatim
33706 #: ../src/guestfs-actions.pod:7507
33707 #, no-wrap
33708 msgid ""
33709 " int\n"
33710 " guestfs_tgz_in (guestfs_h *g,\n"
33711 "                 const char *tarball,\n"
33712 "                 const char *directory);\n"
33713 "\n"
33714 msgstr ""
33715
33716 #. type: textblock
33717 #: ../src/guestfs-actions.pod:7515
33718 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33719 msgstr ""
33720
33721 #. type: =head2
33722 #: ../src/guestfs-actions.pod:7521
33723 msgid "guestfs_tgz_out"
33724 msgstr ""
33725
33726 #. type: verbatim
33727 #: ../src/guestfs-actions.pod:7523
33728 #, no-wrap
33729 msgid ""
33730 " int\n"
33731 " guestfs_tgz_out (guestfs_h *g,\n"
33732 "                  const char *directory,\n"
33733 "                  const char *tarball);\n"
33734 "\n"
33735 msgstr ""
33736
33737 #. type: textblock
33738 #: ../src/guestfs-actions.pod:7531
33739 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33740 msgstr ""
33741
33742 #. type: =head2
33743 #: ../src/guestfs-actions.pod:7537
33744 msgid "guestfs_touch"
33745 msgstr ""
33746
33747 #. type: verbatim
33748 #: ../src/guestfs-actions.pod:7539
33749 #, no-wrap
33750 msgid ""
33751 " int\n"
33752 " guestfs_touch (guestfs_h *g,\n"
33753 "                const char *path);\n"
33754 "\n"
33755 msgstr ""
33756
33757 #. type: =head2
33758 #: ../src/guestfs-actions.pod:7554
33759 msgid "guestfs_truncate"
33760 msgstr ""
33761
33762 #. type: verbatim
33763 #: ../src/guestfs-actions.pod:7556
33764 #, no-wrap
33765 msgid ""
33766 " int\n"
33767 " guestfs_truncate (guestfs_h *g,\n"
33768 "                   const char *path);\n"
33769 "\n"
33770 msgstr ""
33771
33772 #. type: =head2
33773 #: ../src/guestfs-actions.pod:7567
33774 msgid "guestfs_truncate_size"
33775 msgstr ""
33776
33777 #. type: verbatim
33778 #: ../src/guestfs-actions.pod:7569
33779 #, no-wrap
33780 msgid ""
33781 " int\n"
33782 " guestfs_truncate_size (guestfs_h *g,\n"
33783 "                        const char *path,\n"
33784 "                        int64_t size);\n"
33785 "\n"
33786 msgstr ""
33787
33788 #. type: textblock
33789 #: ../src/guestfs-actions.pod:7577
33790 msgid ""
33791 "If the current file size is less than C<size> then the file is extended to "
33792 "the required size with zero bytes.  This creates a sparse file (ie. disk "
33793 "blocks are not allocated for the file until you write to it).  To create a "
33794 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33795 msgstr ""
33796
33797 #. type: =head2
33798 #: ../src/guestfs-actions.pod:7587
33799 msgid "guestfs_tune2fs_l"
33800 msgstr ""
33801
33802 #. type: verbatim
33803 #: ../src/guestfs-actions.pod:7589
33804 #, no-wrap
33805 msgid ""
33806 " char **\n"
33807 " guestfs_tune2fs_l (guestfs_h *g,\n"
33808 "                    const char *device);\n"
33809 "\n"
33810 msgstr ""
33811
33812 #. type: =head2
33813 #: ../src/guestfs-actions.pod:7609
33814 msgid "guestfs_txz_in"
33815 msgstr ""
33816
33817 #. type: verbatim
33818 #: ../src/guestfs-actions.pod:7611
33819 #, no-wrap
33820 msgid ""
33821 " int\n"
33822 " guestfs_txz_in (guestfs_h *g,\n"
33823 "                 const char *tarball,\n"
33824 "                 const char *directory);\n"
33825 "\n"
33826 msgstr ""
33827
33828 #. type: =head2
33829 #: ../src/guestfs-actions.pod:7623
33830 msgid "guestfs_txz_out"
33831 msgstr ""
33832
33833 #. type: verbatim
33834 #: ../src/guestfs-actions.pod:7625
33835 #, no-wrap
33836 msgid ""
33837 " int\n"
33838 " guestfs_txz_out (guestfs_h *g,\n"
33839 "                  const char *directory,\n"
33840 "                  const char *tarball);\n"
33841 "\n"
33842 msgstr ""
33843
33844 #. type: =head2
33845 #: ../src/guestfs-actions.pod:7637
33846 msgid "guestfs_umask"
33847 msgstr ""
33848
33849 #. type: verbatim
33850 #: ../src/guestfs-actions.pod:7639
33851 #, no-wrap
33852 msgid ""
33853 " int\n"
33854 " guestfs_umask (guestfs_h *g,\n"
33855 "                int mask);\n"
33856 "\n"
33857 msgstr ""
33858
33859 #. type: textblock
33860 #: ../src/guestfs-actions.pod:7655
33861 msgid ""
33862 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33863 "C<guestfs_mkdir>."
33864 msgstr ""
33865
33866 #. type: =head2
33867 #: ../src/guestfs-actions.pod:7664
33868 msgid "guestfs_umount"
33869 msgstr ""
33870
33871 #. type: verbatim
33872 #: ../src/guestfs-actions.pod:7666
33873 #, no-wrap
33874 msgid ""
33875 " int\n"
33876 " guestfs_umount (guestfs_h *g,\n"
33877 "                 const char *pathordevice);\n"
33878 "\n"
33879 msgstr ""
33880
33881 #. type: =head2
33882 #: ../src/guestfs-actions.pod:7678
33883 msgid "guestfs_umount_all"
33884 msgstr ""
33885
33886 #. type: verbatim
33887 #: ../src/guestfs-actions.pod:7680
33888 #, no-wrap
33889 msgid ""
33890 " int\n"
33891 " guestfs_umount_all (guestfs_h *g);\n"
33892 "\n"
33893 msgstr ""
33894
33895 #. type: =head2
33896 #: ../src/guestfs-actions.pod:7691
33897 msgid "guestfs_upload"
33898 msgstr ""
33899
33900 #. type: verbatim
33901 #: ../src/guestfs-actions.pod:7693
33902 #, no-wrap
33903 msgid ""
33904 " int\n"
33905 " guestfs_upload (guestfs_h *g,\n"
33906 "                 const char *filename,\n"
33907 "                 const char *remotefilename);\n"
33908 "\n"
33909 msgstr ""
33910
33911 #. type: textblock
33912 #: ../src/guestfs-actions.pod:7703
33913 msgid "See also C<guestfs_download>."
33914 msgstr ""
33915
33916 #. type: =head2
33917 #: ../src/guestfs-actions.pod:7714
33918 msgid "guestfs_upload_offset"
33919 msgstr ""
33920
33921 #. type: verbatim
33922 #: ../src/guestfs-actions.pod:7716
33923 #, no-wrap
33924 msgid ""
33925 " int\n"
33926 " guestfs_upload_offset (guestfs_h *g,\n"
33927 "                        const char *filename,\n"
33928 "                        const char *remotefilename,\n"
33929 "                        int64_t offset);\n"
33930 "\n"
33931 msgstr ""
33932
33933 #. type: textblock
33934 #: ../src/guestfs-actions.pod:7732
33935 msgid ""
33936 "Note that there is no limit on the amount of data that can be uploaded with "
33937 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33938 "full amount unless an error occurs."
33939 msgstr ""
33940
33941 #. type: textblock
33942 #: ../src/guestfs-actions.pod:7737
33943 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33944 msgstr ""
33945
33946 #. type: =head2
33947 #: ../src/guestfs-actions.pod:7748
33948 msgid "guestfs_utimens"
33949 msgstr ""
33950
33951 #. type: verbatim
33952 #: ../src/guestfs-actions.pod:7750
33953 #, no-wrap
33954 msgid ""
33955 " int\n"
33956 " guestfs_utimens (guestfs_h *g,\n"
33957 "                  const char *path,\n"
33958 "                  int64_t atsecs,\n"
33959 "                  int64_t atnsecs,\n"
33960 "                  int64_t mtsecs,\n"
33961 "                  int64_t mtnsecs);\n"
33962 "\n"
33963 msgstr ""
33964
33965 #. type: =head2
33966 #: ../src/guestfs-actions.pod:7779 ../src/guestfs-structs.pod:175
33967 msgid "guestfs_version"
33968 msgstr ""
33969
33970 #. type: verbatim
33971 #: ../src/guestfs-actions.pod:7781
33972 #, no-wrap
33973 msgid ""
33974 " struct guestfs_version *\n"
33975 " guestfs_version (guestfs_h *g);\n"
33976 "\n"
33977 msgstr ""
33978
33979 #. type: textblock
33980 #: ../src/guestfs-actions.pod:7809
33981 msgid ""
33982 "I<Note:> Don't use this call to test for availability of features.  In "
33983 "enterprise distributions we backport features from later versions into "
33984 "earlier versions, making this an unreliable way to test for features.  Use "
33985 "C<guestfs_available> instead."
33986 msgstr ""
33987
33988 #. type: textblock
33989 #: ../src/guestfs-actions.pod:7815
33990 msgid ""
33991 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33992 "error.  I<The caller must call C<guestfs_free_version> after use>."
33993 msgstr ""
33994
33995 #. type: textblock
33996 #: ../src/guestfs-actions.pod:7819
33997 msgid "(Added in 1.0.58)"
33998 msgstr "(Додано у 1.0.58)"
33999
34000 #. type: =head2
34001 #: ../src/guestfs-actions.pod:7821
34002 msgid "guestfs_vfs_label"
34003 msgstr ""
34004
34005 #. type: verbatim
34006 #: ../src/guestfs-actions.pod:7823
34007 #, no-wrap
34008 msgid ""
34009 " char *\n"
34010 " guestfs_vfs_label (guestfs_h *g,\n"
34011 "                    const char *device);\n"
34012 "\n"
34013 msgstr ""
34014
34015 #. type: textblock
34016 #: ../src/guestfs-actions.pod:7832
34017 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
34018 msgstr ""
34019
34020 #. type: textblock
34021 #: ../src/guestfs-actions.pod:7837 ../src/guestfs-actions.pod:7874
34022 msgid "(Added in 1.3.18)"
34023 msgstr "(Додано у 1.3.18)"
34024
34025 #. type: =head2
34026 #: ../src/guestfs-actions.pod:7839
34027 msgid "guestfs_vfs_type"
34028 msgstr ""
34029
34030 #. type: verbatim
34031 #: ../src/guestfs-actions.pod:7841
34032 #, no-wrap
34033 msgid ""
34034 " char *\n"
34035 " guestfs_vfs_type (guestfs_h *g,\n"
34036 "                   const char *device);\n"
34037 "\n"
34038 msgstr ""
34039
34040 #. type: =head2
34041 #: ../src/guestfs-actions.pod:7858
34042 msgid "guestfs_vfs_uuid"
34043 msgstr ""
34044
34045 #. type: verbatim
34046 #: ../src/guestfs-actions.pod:7860
34047 #, no-wrap
34048 msgid ""
34049 " char *\n"
34050 " guestfs_vfs_uuid (guestfs_h *g,\n"
34051 "                   const char *device);\n"
34052 "\n"
34053 msgstr ""
34054
34055 #. type: textblock
34056 #: ../src/guestfs-actions.pod:7869
34057 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
34058 msgstr ""
34059
34060 #. type: =head2
34061 #: ../src/guestfs-actions.pod:7876
34062 msgid "guestfs_vg_activate"
34063 msgstr ""
34064
34065 #. type: verbatim
34066 #: ../src/guestfs-actions.pod:7878
34067 #, no-wrap
34068 msgid ""
34069 " int\n"
34070 " guestfs_vg_activate (guestfs_h *g,\n"
34071 "                      int activate,\n"
34072 "                      char *const *volgroups);\n"
34073 "\n"
34074 msgstr ""
34075
34076 #. type: =head2
34077 #: ../src/guestfs-actions.pod:7895
34078 msgid "guestfs_vg_activate_all"
34079 msgstr ""
34080
34081 #. type: verbatim
34082 #: ../src/guestfs-actions.pod:7897
34083 #, no-wrap
34084 msgid ""
34085 " int\n"
34086 " guestfs_vg_activate_all (guestfs_h *g,\n"
34087 "                          int activate);\n"
34088 "\n"
34089 msgstr ""
34090
34091 #. type: =head2
34092 #: ../src/guestfs-actions.pod:7910
34093 msgid "guestfs_vgcreate"
34094 msgstr ""
34095
34096 #. type: verbatim
34097 #: ../src/guestfs-actions.pod:7912
34098 #, no-wrap
34099 msgid ""
34100 " int\n"
34101 " guestfs_vgcreate (guestfs_h *g,\n"
34102 "                   const char *volgroup,\n"
34103 "                   char *const *physvols);\n"
34104 "\n"
34105 msgstr ""
34106
34107 #. type: =head2
34108 #: ../src/guestfs-actions.pod:7924
34109 msgid "guestfs_vglvuuids"
34110 msgstr ""
34111
34112 #. type: verbatim
34113 #: ../src/guestfs-actions.pod:7926
34114 #, no-wrap
34115 msgid ""
34116 " char **\n"
34117 " guestfs_vglvuuids (guestfs_h *g,\n"
34118 "                    const char *vgname);\n"
34119 "\n"
34120 msgstr ""
34121
34122 #. type: textblock
34123 #: ../src/guestfs-actions.pod:7933
34124 msgid ""
34125 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34126 "associate logical volumes and volume groups."
34127 msgstr ""
34128
34129 #. type: textblock
34130 #: ../src/guestfs-actions.pod:7936
34131 msgid "See also C<guestfs_vgpvuuids>."
34132 msgstr ""
34133
34134 #. type: =head2
34135 #: ../src/guestfs-actions.pod:7944
34136 msgid "guestfs_vgpvuuids"
34137 msgstr ""
34138
34139 #. type: verbatim
34140 #: ../src/guestfs-actions.pod:7946
34141 #, no-wrap
34142 msgid ""
34143 " char **\n"
34144 " guestfs_vgpvuuids (guestfs_h *g,\n"
34145 "                    const char *vgname);\n"
34146 "\n"
34147 msgstr ""
34148
34149 #. type: textblock
34150 #: ../src/guestfs-actions.pod:7953
34151 msgid ""
34152 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34153 "associate physical volumes and volume groups."
34154 msgstr ""
34155
34156 #. type: textblock
34157 #: ../src/guestfs-actions.pod:7956
34158 msgid "See also C<guestfs_vglvuuids>."
34159 msgstr ""
34160
34161 #. type: =head2
34162 #: ../src/guestfs-actions.pod:7964
34163 msgid "guestfs_vgremove"
34164 msgstr ""
34165
34166 #. type: verbatim
34167 #: ../src/guestfs-actions.pod:7966
34168 #, no-wrap
34169 msgid ""
34170 " int\n"
34171 " guestfs_vgremove (guestfs_h *g,\n"
34172 "                   const char *vgname);\n"
34173 "\n"
34174 msgstr ""
34175
34176 #. type: =head2
34177 #: ../src/guestfs-actions.pod:7979
34178 msgid "guestfs_vgrename"
34179 msgstr ""
34180
34181 #. type: verbatim
34182 #: ../src/guestfs-actions.pod:7981
34183 #, no-wrap
34184 msgid ""
34185 " int\n"
34186 " guestfs_vgrename (guestfs_h *g,\n"
34187 "                   const char *volgroup,\n"
34188 "                   const char *newvolgroup);\n"
34189 "\n"
34190 msgstr ""
34191
34192 #. type: =head2
34193 #: ../src/guestfs-actions.pod:7992
34194 msgid "guestfs_vgs"
34195 msgstr ""
34196
34197 #. type: verbatim
34198 #: ../src/guestfs-actions.pod:7994
34199 #, no-wrap
34200 msgid ""
34201 " char **\n"
34202 " guestfs_vgs (guestfs_h *g);\n"
34203 "\n"
34204 msgstr ""
34205
34206 #. type: textblock
34207 #: ../src/guestfs-actions.pod:8003
34208 msgid "See also C<guestfs_vgs_full>."
34209 msgstr ""
34210
34211 #. type: =head2
34212 #: ../src/guestfs-actions.pod:8011
34213 msgid "guestfs_vgs_full"
34214 msgstr ""
34215
34216 #. type: verbatim
34217 #: ../src/guestfs-actions.pod:8013
34218 #, no-wrap
34219 msgid ""
34220 " struct guestfs_lvm_vg_list *\n"
34221 " guestfs_vgs_full (guestfs_h *g);\n"
34222 "\n"
34223 msgstr ""
34224
34225 #. type: textblock
34226 #: ../src/guestfs-actions.pod:8019
34227 msgid ""
34228 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34229 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
34230 msgstr ""
34231
34232 #. type: =head2
34233 #: ../src/guestfs-actions.pod:8025
34234 msgid "guestfs_vgscan"
34235 msgstr ""
34236
34237 #. type: verbatim
34238 #: ../src/guestfs-actions.pod:8027
34239 #, no-wrap
34240 msgid ""
34241 " int\n"
34242 " guestfs_vgscan (guestfs_h *g);\n"
34243 "\n"
34244 msgstr ""
34245
34246 #. type: =head2
34247 #: ../src/guestfs-actions.pod:8037
34248 msgid "guestfs_vguuid"
34249 msgstr ""
34250
34251 #. type: verbatim
34252 #: ../src/guestfs-actions.pod:8039
34253 #, no-wrap
34254 msgid ""
34255 " char *\n"
34256 " guestfs_vguuid (guestfs_h *g,\n"
34257 "                 const char *vgname);\n"
34258 "\n"
34259 msgstr ""
34260
34261 #. type: =head2
34262 #: ../src/guestfs-actions.pod:8050
34263 msgid "guestfs_wait_ready"
34264 msgstr ""
34265
34266 #. type: verbatim
34267 #: ../src/guestfs-actions.pod:8052
34268 #, no-wrap
34269 msgid ""
34270 " int\n"
34271 " guestfs_wait_ready (guestfs_h *g);\n"
34272 "\n"
34273 msgstr ""
34274
34275 #. type: textblock
34276 #: ../src/guestfs-actions.pod:8055
34277 msgid ""
34278 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34279 "instead."
34280 msgstr ""
34281
34282 #. type: textblock
34283 #: ../src/guestfs-actions.pod:8062
34284 msgid "This function is a no op."
34285 msgstr ""
34286
34287 #. type: textblock
34288 #: ../src/guestfs-actions.pod:8064
34289 msgid ""
34290 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
34291 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
34292 "is no longer necessary because C<guestfs_launch> now does the waiting."
34293 msgstr ""
34294
34295 #. type: textblock
34296 #: ../src/guestfs-actions.pod:8069
34297 msgid ""
34298 "If you see any calls to this function in code then you can just remove them, "
34299 "unless you want to retain compatibility with older versions of the API."
34300 msgstr ""
34301
34302 #. type: =head2
34303 #: ../src/guestfs-actions.pod:8077
34304 msgid "guestfs_wc_c"
34305 msgstr ""
34306
34307 #. type: verbatim
34308 #: ../src/guestfs-actions.pod:8079
34309 #, no-wrap
34310 msgid ""
34311 " int\n"
34312 " guestfs_wc_c (guestfs_h *g,\n"
34313 "               const char *path);\n"
34314 "\n"
34315 msgstr ""
34316
34317 #. type: =head2
34318 #: ../src/guestfs-actions.pod:8090
34319 msgid "guestfs_wc_l"
34320 msgstr ""
34321
34322 #. type: verbatim
34323 #: ../src/guestfs-actions.pod:8092
34324 #, no-wrap
34325 msgid ""
34326 " int\n"
34327 " guestfs_wc_l (guestfs_h *g,\n"
34328 "               const char *path);\n"
34329 "\n"
34330 msgstr ""
34331
34332 #. type: =head2
34333 #: ../src/guestfs-actions.pod:8103
34334 msgid "guestfs_wc_w"
34335 msgstr ""
34336
34337 #. type: verbatim
34338 #: ../src/guestfs-actions.pod:8105
34339 #, no-wrap
34340 msgid ""
34341 " int\n"
34342 " guestfs_wc_w (guestfs_h *g,\n"
34343 "               const char *path);\n"
34344 "\n"
34345 msgstr ""
34346
34347 #. type: =head2
34348 #: ../src/guestfs-actions.pod:8116
34349 msgid "guestfs_write"
34350 msgstr ""
34351
34352 #. type: verbatim
34353 #: ../src/guestfs-actions.pod:8118
34354 #, no-wrap
34355 msgid ""
34356 " int\n"
34357 " guestfs_write (guestfs_h *g,\n"
34358 "                const char *path,\n"
34359 "                const char *content,\n"
34360 "                size_t content_size);\n"
34361 "\n"
34362 msgstr ""
34363
34364 #. type: textblock
34365 #: ../src/guestfs-actions.pod:8127
34366 msgid "See also C<guestfs_write_append>."
34367 msgstr ""
34368
34369 #. type: =head2
34370 #: ../src/guestfs-actions.pod:8136
34371 msgid "guestfs_write_append"
34372 msgstr ""
34373
34374 #. type: verbatim
34375 #: ../src/guestfs-actions.pod:8138
34376 #, no-wrap
34377 msgid ""
34378 " int\n"
34379 " guestfs_write_append (guestfs_h *g,\n"
34380 "                       const char *path,\n"
34381 "                       const char *content,\n"
34382 "                       size_t content_size);\n"
34383 "\n"
34384 msgstr ""
34385
34386 #. type: textblock
34387 #: ../src/guestfs-actions.pod:8147
34388 msgid "See also C<guestfs_write>."
34389 msgstr ""
34390
34391 #. type: =head2
34392 #: ../src/guestfs-actions.pod:8156
34393 msgid "guestfs_write_file"
34394 msgstr "guestfs_write_file"
34395
34396 #. type: verbatim
34397 #: ../src/guestfs-actions.pod:8158
34398 #, no-wrap
34399 msgid ""
34400 " int\n"
34401 " guestfs_write_file (guestfs_h *g,\n"
34402 "                     const char *path,\n"
34403 "                     const char *content,\n"
34404 "                     int size);\n"
34405 "\n"
34406 msgstr ""
34407 " int\n"
34408 " guestfs_write_file (guestfs_h *g,\n"
34409 "                     const char *path,\n"
34410 "                     const char *content,\n"
34411 "                     int size);\n"
34412 "\n"
34413
34414 #. type: textblock
34415 #: ../src/guestfs-actions.pod:8164
34416 msgid ""
34417 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
34418 "instead."
34419 msgstr ""
34420
34421 #. type: =head2
34422 #: ../src/guestfs-actions.pod:8189
34423 msgid "guestfs_zegrep"
34424 msgstr "guestfs_zegrep"
34425
34426 #. type: verbatim
34427 #: ../src/guestfs-actions.pod:8191
34428 #, no-wrap
34429 msgid ""
34430 " char **\n"
34431 " guestfs_zegrep (guestfs_h *g,\n"
34432 "                 const char *regex,\n"
34433 "                 const char *path);\n"
34434 "\n"
34435 msgstr ""
34436 " char **\n"
34437 " guestfs_zegrep (guestfs_h *g,\n"
34438 "                 const char *regex,\n"
34439 "                 const char *path);\n"
34440 "\n"
34441
34442 #. type: =head2
34443 #: ../src/guestfs-actions.pod:8208
34444 msgid "guestfs_zegrepi"
34445 msgstr "guestfs_zegrepi"
34446
34447 #. type: verbatim
34448 #: ../src/guestfs-actions.pod:8210
34449 #, no-wrap
34450 msgid ""
34451 " char **\n"
34452 " guestfs_zegrepi (guestfs_h *g,\n"
34453 "                  const char *regex,\n"
34454 "                  const char *path);\n"
34455 "\n"
34456 msgstr ""
34457 " char **\n"
34458 " guestfs_zegrepi (guestfs_h *g,\n"
34459 "                  const char *regex,\n"
34460 "                  const char *path);\n"
34461 "\n"
34462
34463 #. type: =head2
34464 #: ../src/guestfs-actions.pod:8227
34465 msgid "guestfs_zero"
34466 msgstr "guestfs_zero"
34467
34468 #. type: verbatim
34469 #: ../src/guestfs-actions.pod:8229
34470 #, no-wrap
34471 msgid ""
34472 " int\n"
34473 " guestfs_zero (guestfs_h *g,\n"
34474 "               const char *device);\n"
34475 "\n"
34476 msgstr ""
34477 " int\n"
34478 " guestfs_zero (guestfs_h *g,\n"
34479 "               const char *device);\n"
34480 "\n"
34481
34482 #. type: textblock
34483 #: ../src/guestfs-actions.pod:8243
34484 msgid ""
34485 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34486 "C<guestfs_is_zero_device>"
34487 msgstr ""
34488
34489 #. type: =head2
34490 #: ../src/guestfs-actions.pod:8255
34491 msgid "guestfs_zero_device"
34492 msgstr "guestfs_zero_device"
34493
34494 #. type: verbatim
34495 #: ../src/guestfs-actions.pod:8257
34496 #, no-wrap
34497 msgid ""
34498 " int\n"
34499 " guestfs_zero_device (guestfs_h *g,\n"
34500 "                      const char *device);\n"
34501 "\n"
34502 msgstr ""
34503 " int\n"
34504 " guestfs_zero_device (guestfs_h *g,\n"
34505 "                      const char *device);\n"
34506 "\n"
34507
34508 #. type: textblock
34509 #: ../src/guestfs-actions.pod:8261
34510 msgid ""
34511 "This command writes zeroes over the entire C<device>.  Compare with "
34512 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34513 msgstr ""
34514
34515 #. type: textblock
34516 #: ../src/guestfs-actions.pod:8276
34517 msgid "(Added in 1.3.1)"
34518 msgstr "(Додано у 1.3.1)"
34519
34520 #. type: =head2
34521 #: ../src/guestfs-actions.pod:8278
34522 msgid "guestfs_zerofree"
34523 msgstr "guestfs_zerofree"
34524
34525 #. type: verbatim
34526 #: ../src/guestfs-actions.pod:8280
34527 #, no-wrap
34528 msgid ""
34529 " int\n"
34530 " guestfs_zerofree (guestfs_h *g,\n"
34531 "                   const char *device);\n"
34532 "\n"
34533 msgstr ""
34534 " int\n"
34535 " guestfs_zerofree (guestfs_h *g,\n"
34536 "                   const char *device);\n"
34537 "\n"
34538
34539 #. type: =head2
34540 #: ../src/guestfs-actions.pod:8299
34541 msgid "guestfs_zfgrep"
34542 msgstr "guestfs_zfgrep"
34543
34544 #. type: verbatim
34545 #: ../src/guestfs-actions.pod:8301
34546 #, no-wrap
34547 msgid ""
34548 " char **\n"
34549 " guestfs_zfgrep (guestfs_h *g,\n"
34550 "                 const char *pattern,\n"
34551 "                 const char *path);\n"
34552 "\n"
34553 msgstr ""
34554 " char **\n"
34555 " guestfs_zfgrep (guestfs_h *g,\n"
34556 "                 const char *pattern,\n"
34557 "                 const char *path);\n"
34558 "\n"
34559
34560 #. type: =head2
34561 #: ../src/guestfs-actions.pod:8318
34562 msgid "guestfs_zfgrepi"
34563 msgstr "guestfs_zfgrepi"
34564
34565 #. type: verbatim
34566 #: ../src/guestfs-actions.pod:8320
34567 #, no-wrap
34568 msgid ""
34569 " char **\n"
34570 " guestfs_zfgrepi (guestfs_h *g,\n"
34571 "                  const char *pattern,\n"
34572 "                  const char *path);\n"
34573 "\n"
34574 msgstr ""
34575 " char **\n"
34576 " guestfs_zfgrepi (guestfs_h *g,\n"
34577 "                  const char *pattern,\n"
34578 "                  const char *path);\n"
34579 "\n"
34580
34581 #. type: =head2
34582 #: ../src/guestfs-actions.pod:8337
34583 msgid "guestfs_zfile"
34584 msgstr "guestfs_zfile"
34585
34586 #. type: verbatim
34587 #: ../src/guestfs-actions.pod:8339
34588 #, no-wrap
34589 msgid ""
34590 " char *\n"
34591 " guestfs_zfile (guestfs_h *g,\n"
34592 "                const char *meth,\n"
34593 "                const char *path);\n"
34594 "\n"
34595 msgstr ""
34596 " char *\n"
34597 " guestfs_zfile (guestfs_h *g,\n"
34598 "                const char *meth,\n"
34599 "                const char *path);\n"
34600 "\n"
34601
34602 #. type: textblock
34603 #: ../src/guestfs-actions.pod:8344
34604 msgid ""
34605 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34606 "instead."
34607 msgstr ""
34608
34609 #. type: textblock
34610 #: ../src/guestfs-actions.pod:8356
34611 msgid ""
34612 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34613 "files."
34614 msgstr ""
34615
34616 #. type: =head2
34617 #: ../src/guestfs-actions.pod:8364
34618 msgid "guestfs_zgrep"
34619 msgstr "guestfs_zgrep"
34620
34621 #. type: verbatim
34622 #: ../src/guestfs-actions.pod:8366
34623 #, no-wrap
34624 msgid ""
34625 " char **\n"
34626 " guestfs_zgrep (guestfs_h *g,\n"
34627 "                const char *regex,\n"
34628 "                const char *path);\n"
34629 "\n"
34630 msgstr ""
34631 " char **\n"
34632 " guestfs_zgrep (guestfs_h *g,\n"
34633 "                const char *regex,\n"
34634 "                const char *path);\n"
34635 "\n"
34636
34637 #. type: =head2
34638 #: ../src/guestfs-actions.pod:8383
34639 msgid "guestfs_zgrepi"
34640 msgstr "guestfs_zgrepi"
34641
34642 #. type: verbatim
34643 #: ../src/guestfs-actions.pod:8385
34644 #, no-wrap
34645 msgid ""
34646 " char **\n"
34647 " guestfs_zgrepi (guestfs_h *g,\n"
34648 "                 const char *regex,\n"
34649 "                 const char *path);\n"
34650 "\n"
34651 msgstr ""
34652 " char **\n"
34653 " guestfs_zgrepi (guestfs_h *g,\n"
34654 "                 const char *regex,\n"
34655 "                 const char *path);\n"
34656 "\n"
34657
34658 #. type: =item
34659 #: ../src/guestfs-availability.pod:3
34660 msgid "B<augeas>"
34661 msgstr "B<augeas>"
34662
34663 #. type: textblock
34664 #: ../src/guestfs-availability.pod:5
34665 msgid ""
34666 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
34667 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
34668 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
34669 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
34670 "L</guestfs_aug_save> L</guestfs_aug_set>"
34671 msgstr ""
34672
34673 #. type: =item
34674 #: ../src/guestfs-availability.pod:21
34675 msgid "B<btrfs>"
34676 msgstr "B<btrfs>"
34677
34678 #. type: textblock
34679 #: ../src/guestfs-availability.pod:23
34680 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34681 msgstr ""
34682
34683 #. type: =item
34684 #: ../src/guestfs-availability.pod:26
34685 msgid "B<grub>"
34686 msgstr ""
34687
34688 #. type: textblock
34689 #: ../src/guestfs-availability.pod:28
34690 msgid "The following functions: L</guestfs_grub_install>"
34691 msgstr ""
34692
34693 #. type: =item
34694 #: ../src/guestfs-availability.pod:31
34695 msgid "B<inotify>"
34696 msgstr "B<inotify>"
34697
34698 #. type: textblock
34699 #: ../src/guestfs-availability.pod:33
34700 msgid ""
34701 "The following functions: L</guestfs_inotify_add_watch> L</"
34702 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
34703 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34704 msgstr ""
34705
34706 #. type: =item
34707 #: ../src/guestfs-availability.pod:41
34708 msgid "B<linuxfsuuid>"
34709 msgstr "B<linuxfsuuid>"
34710
34711 #. type: textblock
34712 #: ../src/guestfs-availability.pod:43
34713 msgid ""
34714 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
34715 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34716 msgstr ""
34717
34718 #. type: =item
34719 #: ../src/guestfs-availability.pod:50
34720 msgid "B<linuxmodules>"
34721 msgstr "B<linuxmodules>"
34722
34723 #. type: textblock
34724 #: ../src/guestfs-availability.pod:52
34725 msgid "The following functions: L</guestfs_modprobe>"
34726 msgstr ""
34727
34728 #. type: =item
34729 #: ../src/guestfs-availability.pod:55
34730 msgid "B<linuxxattrs>"
34731 msgstr "B<linuxxattrs>"
34732
34733 #. type: textblock
34734 #: ../src/guestfs-availability.pod:57
34735 msgid ""
34736 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
34737 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
34738 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
34739 "guestfs_setxattr>"
34740 msgstr ""
34741
34742 #. type: =item
34743 #: ../src/guestfs-availability.pod:68
34744 msgid "B<luks>"
34745 msgstr "B<luks>"
34746
34747 #. type: textblock
34748 #: ../src/guestfs-availability.pod:70
34749 msgid ""
34750 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
34751 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
34752 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34753 msgstr ""
34754
34755 #. type: =item
34756 #: ../src/guestfs-availability.pod:79
34757 msgid "B<lvm2>"
34758 msgstr "B<lvm2>"
34759
34760 #. type: textblock
34761 #: ../src/guestfs-availability.pod:81
34762 msgid ""
34763 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34764 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34765 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34766 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34767 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34768 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34769 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34770 msgstr ""
34771
34772 #. type: =item
34773 #: ../src/guestfs-availability.pod:104
34774 msgid "B<mknod>"
34775 msgstr "B<mknod>"
34776
34777 #. type: textblock
34778 #: ../src/guestfs-availability.pod:106
34779 msgid ""
34780 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34781 "guestfs_mknod_b> L</guestfs_mknod_c>"
34782 msgstr ""
34783
34784 #. type: =item
34785 #: ../src/guestfs-availability.pod:112
34786 msgid "B<ntfs3g>"
34787 msgstr "B<ntfs3g>"
34788
34789 #. type: textblock
34790 #: ../src/guestfs-availability.pod:114
34791 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34792 msgstr ""
34793
34794 #. type: =item
34795 #: ../src/guestfs-availability.pod:117
34796 msgid "B<ntfsprogs>"
34797 msgstr "B<ntfsprogs>"
34798
34799 #. type: textblock
34800 #: ../src/guestfs-availability.pod:119
34801 msgid ""
34802 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34803 "L</guestfs_ntfsresize_size>"
34804 msgstr ""
34805
34806 #. type: =item
34807 #: ../src/guestfs-availability.pod:124
34808 msgid "B<realpath>"
34809 msgstr "B<realpath>"
34810
34811 #. type: textblock
34812 #: ../src/guestfs-availability.pod:126
34813 msgid "The following functions: L</guestfs_realpath>"
34814 msgstr ""
34815
34816 #. type: =item
34817 #: ../src/guestfs-availability.pod:129
34818 msgid "B<scrub>"
34819 msgstr "B<scrub>"
34820
34821 #. type: textblock
34822 #: ../src/guestfs-availability.pod:131
34823 msgid ""
34824 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34825 "guestfs_scrub_freespace>"
34826 msgstr ""
34827
34828 #. type: =item
34829 #: ../src/guestfs-availability.pod:136
34830 msgid "B<selinux>"
34831 msgstr "B<selinux>"
34832
34833 #. type: textblock
34834 #: ../src/guestfs-availability.pod:138
34835 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34836 msgstr ""
34837
34838 #. type: =item
34839 #: ../src/guestfs-availability.pod:142
34840 msgid "B<xz>"
34841 msgstr "B<xz>"
34842
34843 #. type: textblock
34844 #: ../src/guestfs-availability.pod:144
34845 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34846 msgstr ""
34847
34848 #. type: =item
34849 #: ../src/guestfs-availability.pod:148
34850 msgid "B<zerofree>"
34851 msgstr "B<zerofree>"
34852
34853 #. type: textblock
34854 #: ../src/guestfs-availability.pod:150
34855 msgid "The following functions: L</guestfs_zerofree>"
34856 msgstr ""
34857
34858 #. type: =head2
34859 #: ../src/guestfs-structs.pod:1
34860 msgid "guestfs_int_bool"
34861 msgstr ""
34862
34863 #. type: verbatim
34864 #: ../src/guestfs-structs.pod:3
34865 #, no-wrap
34866 msgid ""
34867 " struct guestfs_int_bool {\n"
34868 "   int32_t i;\n"
34869 "   int32_t b;\n"
34870 " };\n"
34871 " \n"
34872 msgstr ""
34873
34874 #. type: verbatim
34875 #: ../src/guestfs-structs.pod:8
34876 #, no-wrap
34877 msgid ""
34878 " struct guestfs_int_bool_list {\n"
34879 "   uint32_t len; /* Number of elements in list. */\n"
34880 "   struct guestfs_int_bool *val; /* Elements. */\n"
34881 " };\n"
34882 " \n"
34883 msgstr ""
34884
34885 #. type: verbatim
34886 #: ../src/guestfs-structs.pod:13
34887 #, no-wrap
34888 msgid ""
34889 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34890 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34891 "\n"
34892 msgstr ""
34893
34894 #. type: =head2
34895 #: ../src/guestfs-structs.pod:16
34896 msgid "guestfs_lvm_pv"
34897 msgstr ""
34898
34899 #. type: verbatim
34900 #: ../src/guestfs-structs.pod:18
34901 #, no-wrap
34902 msgid ""
34903 " struct guestfs_lvm_pv {\n"
34904 "   char *pv_name;\n"
34905 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34906 "   char pv_uuid[32];\n"
34907 "   char *pv_fmt;\n"
34908 "   uint64_t pv_size;\n"
34909 "   uint64_t dev_size;\n"
34910 "   uint64_t pv_free;\n"
34911 "   uint64_t pv_used;\n"
34912 "   char *pv_attr;\n"
34913 "   int64_t pv_pe_count;\n"
34914 "   int64_t pv_pe_alloc_count;\n"
34915 "   char *pv_tags;\n"
34916 "   uint64_t pe_start;\n"
34917 "   int64_t pv_mda_count;\n"
34918 "   uint64_t pv_mda_free;\n"
34919 " };\n"
34920 " \n"
34921 msgstr ""
34922
34923 #. type: verbatim
34924 #: ../src/guestfs-structs.pod:36
34925 #, no-wrap
34926 msgid ""
34927 " struct guestfs_lvm_pv_list {\n"
34928 "   uint32_t len; /* Number of elements in list. */\n"
34929 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
34930 " };\n"
34931 " \n"
34932 msgstr ""
34933
34934 #. type: verbatim
34935 #: ../src/guestfs-structs.pod:41
34936 #, no-wrap
34937 msgid ""
34938 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34939 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34940 "\n"
34941 msgstr ""
34942
34943 #. type: =head2
34944 #: ../src/guestfs-structs.pod:44
34945 msgid "guestfs_lvm_vg"
34946 msgstr ""
34947
34948 #. type: verbatim
34949 #: ../src/guestfs-structs.pod:46
34950 #, no-wrap
34951 msgid ""
34952 " struct guestfs_lvm_vg {\n"
34953 "   char *vg_name;\n"
34954 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34955 "   char vg_uuid[32];\n"
34956 "   char *vg_fmt;\n"
34957 "   char *vg_attr;\n"
34958 "   uint64_t vg_size;\n"
34959 "   uint64_t vg_free;\n"
34960 "   char *vg_sysid;\n"
34961 "   uint64_t vg_extent_size;\n"
34962 "   int64_t vg_extent_count;\n"
34963 "   int64_t vg_free_count;\n"
34964 "   int64_t max_lv;\n"
34965 "   int64_t max_pv;\n"
34966 "   int64_t pv_count;\n"
34967 "   int64_t lv_count;\n"
34968 "   int64_t snap_count;\n"
34969 "   int64_t vg_seqno;\n"
34970 "   char *vg_tags;\n"
34971 "   int64_t vg_mda_count;\n"
34972 "   uint64_t vg_mda_free;\n"
34973 " };\n"
34974 " \n"
34975 msgstr ""
34976
34977 #. type: verbatim
34978 #: ../src/guestfs-structs.pod:69
34979 #, no-wrap
34980 msgid ""
34981 " struct guestfs_lvm_vg_list {\n"
34982 "   uint32_t len; /* Number of elements in list. */\n"
34983 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
34984 " };\n"
34985 " \n"
34986 msgstr ""
34987
34988 #. type: verbatim
34989 #: ../src/guestfs-structs.pod:74
34990 #, no-wrap
34991 msgid ""
34992 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34993 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34994 "\n"
34995 msgstr ""
34996
34997 #. type: =head2
34998 #: ../src/guestfs-structs.pod:77
34999 msgid "guestfs_lvm_lv"
35000 msgstr ""
35001
35002 #. type: verbatim
35003 #: ../src/guestfs-structs.pod:79
35004 #, no-wrap
35005 msgid ""
35006 " struct guestfs_lvm_lv {\n"
35007 "   char *lv_name;\n"
35008 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35009 "   char lv_uuid[32];\n"
35010 "   char *lv_attr;\n"
35011 "   int64_t lv_major;\n"
35012 "   int64_t lv_minor;\n"
35013 "   int64_t lv_kernel_major;\n"
35014 "   int64_t lv_kernel_minor;\n"
35015 "   uint64_t lv_size;\n"
35016 "   int64_t seg_count;\n"
35017 "   char *origin;\n"
35018 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35019 "   float snap_percent;\n"
35020 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35021 "   float copy_percent;\n"
35022 "   char *move_pv;\n"
35023 "   char *lv_tags;\n"
35024 "   char *mirror_log;\n"
35025 "   char *modules;\n"
35026 " };\n"
35027 " \n"
35028 msgstr ""
35029
35030 #. type: verbatim
35031 #: ../src/guestfs-structs.pod:101
35032 #, no-wrap
35033 msgid ""
35034 " struct guestfs_lvm_lv_list {\n"
35035 "   uint32_t len; /* Number of elements in list. */\n"
35036 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
35037 " };\n"
35038 " \n"
35039 msgstr ""
35040
35041 #. type: verbatim
35042 #: ../src/guestfs-structs.pod:106
35043 #, no-wrap
35044 msgid ""
35045 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
35046 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
35047 "\n"
35048 msgstr ""
35049
35050 #. type: verbatim
35051 #: ../src/guestfs-structs.pod:111
35052 #, no-wrap
35053 msgid ""
35054 " struct guestfs_stat {\n"
35055 "   int64_t dev;\n"
35056 "   int64_t ino;\n"
35057 "   int64_t mode;\n"
35058 "   int64_t nlink;\n"
35059 "   int64_t uid;\n"
35060 "   int64_t gid;\n"
35061 "   int64_t rdev;\n"
35062 "   int64_t size;\n"
35063 "   int64_t blksize;\n"
35064 "   int64_t blocks;\n"
35065 "   int64_t atime;\n"
35066 "   int64_t mtime;\n"
35067 "   int64_t ctime;\n"
35068 " };\n"
35069 " \n"
35070 msgstr ""
35071
35072 #. type: verbatim
35073 #: ../src/guestfs-structs.pod:127
35074 #, no-wrap
35075 msgid ""
35076 " struct guestfs_stat_list {\n"
35077 "   uint32_t len; /* Number of elements in list. */\n"
35078 "   struct guestfs_stat *val; /* Elements. */\n"
35079 " };\n"
35080 " \n"
35081 msgstr ""
35082
35083 #. type: verbatim
35084 #: ../src/guestfs-structs.pod:132
35085 #, no-wrap
35086 msgid ""
35087 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35088 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35089 "\n"
35090 msgstr ""
35091
35092 #. type: verbatim
35093 #: ../src/guestfs-structs.pod:137
35094 #, no-wrap
35095 msgid ""
35096 " struct guestfs_statvfs {\n"
35097 "   int64_t bsize;\n"
35098 "   int64_t frsize;\n"
35099 "   int64_t blocks;\n"
35100 "   int64_t bfree;\n"
35101 "   int64_t bavail;\n"
35102 "   int64_t files;\n"
35103 "   int64_t ffree;\n"
35104 "   int64_t favail;\n"
35105 "   int64_t fsid;\n"
35106 "   int64_t flag;\n"
35107 "   int64_t namemax;\n"
35108 " };\n"
35109 " \n"
35110 msgstr ""
35111
35112 #. type: verbatim
35113 #: ../src/guestfs-structs.pod:151
35114 #, no-wrap
35115 msgid ""
35116 " struct guestfs_statvfs_list {\n"
35117 "   uint32_t len; /* Number of elements in list. */\n"
35118 "   struct guestfs_statvfs *val; /* Elements. */\n"
35119 " };\n"
35120 " \n"
35121 msgstr ""
35122
35123 #. type: verbatim
35124 #: ../src/guestfs-structs.pod:156
35125 #, no-wrap
35126 msgid ""
35127 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35128 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35129 "\n"
35130 msgstr ""
35131
35132 #. type: =head2
35133 #: ../src/guestfs-structs.pod:159
35134 msgid "guestfs_dirent"
35135 msgstr ""
35136
35137 #. type: verbatim
35138 #: ../src/guestfs-structs.pod:161
35139 #, no-wrap
35140 msgid ""
35141 " struct guestfs_dirent {\n"
35142 "   int64_t ino;\n"
35143 "   char ftyp;\n"
35144 "   char *name;\n"
35145 " };\n"
35146 " \n"
35147 msgstr ""
35148
35149 #. type: verbatim
35150 #: ../src/guestfs-structs.pod:167
35151 #, no-wrap
35152 msgid ""
35153 " struct guestfs_dirent_list {\n"
35154 "   uint32_t len; /* Number of elements in list. */\n"
35155 "   struct guestfs_dirent *val; /* Elements. */\n"
35156 " };\n"
35157 " \n"
35158 msgstr ""
35159
35160 #. type: verbatim
35161 #: ../src/guestfs-structs.pod:172
35162 #, no-wrap
35163 msgid ""
35164 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35165 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35166 "\n"
35167 msgstr ""
35168
35169 #. type: verbatim
35170 #: ../src/guestfs-structs.pod:177
35171 #, no-wrap
35172 msgid ""
35173 " struct guestfs_version {\n"
35174 "   int64_t major;\n"
35175 "   int64_t minor;\n"
35176 "   int64_t release;\n"
35177 "   char *extra;\n"
35178 " };\n"
35179 " \n"
35180 msgstr ""
35181
35182 #. type: verbatim
35183 #: ../src/guestfs-structs.pod:184
35184 #, no-wrap
35185 msgid ""
35186 " struct guestfs_version_list {\n"
35187 "   uint32_t len; /* Number of elements in list. */\n"
35188 "   struct guestfs_version *val; /* Elements. */\n"
35189 " };\n"
35190 " \n"
35191 msgstr ""
35192
35193 #. type: verbatim
35194 #: ../src/guestfs-structs.pod:189
35195 #, no-wrap
35196 msgid ""
35197 " void guestfs_free_version (struct guestfs_free_version *);\n"
35198 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35199 "\n"
35200 msgstr ""
35201
35202 #. type: =head2
35203 #: ../src/guestfs-structs.pod:192
35204 msgid "guestfs_xattr"
35205 msgstr ""
35206
35207 #. type: verbatim
35208 #: ../src/guestfs-structs.pod:194
35209 #, no-wrap
35210 msgid ""
35211 " struct guestfs_xattr {\n"
35212 "   char *attrname;\n"
35213 "   /* The next two fields describe a byte array. */\n"
35214 "   uint32_t attrval_len;\n"
35215 "   char *attrval;\n"
35216 " };\n"
35217 " \n"
35218 msgstr ""
35219
35220 #. type: verbatim
35221 #: ../src/guestfs-structs.pod:201
35222 #, no-wrap
35223 msgid ""
35224 " struct guestfs_xattr_list {\n"
35225 "   uint32_t len; /* Number of elements in list. */\n"
35226 "   struct guestfs_xattr *val; /* Elements. */\n"
35227 " };\n"
35228 " \n"
35229 msgstr ""
35230
35231 #. type: verbatim
35232 #: ../src/guestfs-structs.pod:206
35233 #, no-wrap
35234 msgid ""
35235 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35236 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35237 "\n"
35238 msgstr ""
35239
35240 #. type: =head2
35241 #: ../src/guestfs-structs.pod:209
35242 msgid "guestfs_inotify_event"
35243 msgstr ""
35244
35245 #. type: verbatim
35246 #: ../src/guestfs-structs.pod:211
35247 #, no-wrap
35248 msgid ""
35249 " struct guestfs_inotify_event {\n"
35250 "   int64_t in_wd;\n"
35251 "   uint32_t in_mask;\n"
35252 "   uint32_t in_cookie;\n"
35253 "   char *in_name;\n"
35254 " };\n"
35255 " \n"
35256 msgstr ""
35257
35258 #. type: verbatim
35259 #: ../src/guestfs-structs.pod:218
35260 #, no-wrap
35261 msgid ""
35262 " struct guestfs_inotify_event_list {\n"
35263 "   uint32_t len; /* Number of elements in list. */\n"
35264 "   struct guestfs_inotify_event *val; /* Elements. */\n"
35265 " };\n"
35266 " \n"
35267 msgstr ""
35268
35269 #. type: verbatim
35270 #: ../src/guestfs-structs.pod:223
35271 #, no-wrap
35272 msgid ""
35273 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
35274 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
35275 "\n"
35276 msgstr ""
35277
35278 #. type: =head2
35279 #: ../src/guestfs-structs.pod:226
35280 msgid "guestfs_partition"
35281 msgstr ""
35282
35283 #. type: verbatim
35284 #: ../src/guestfs-structs.pod:228
35285 #, no-wrap
35286 msgid ""
35287 " struct guestfs_partition {\n"
35288 "   int32_t part_num;\n"
35289 "   uint64_t part_start;\n"
35290 "   uint64_t part_end;\n"
35291 "   uint64_t part_size;\n"
35292 " };\n"
35293 " \n"
35294 msgstr ""
35295
35296 #. type: verbatim
35297 #: ../src/guestfs-structs.pod:235
35298 #, no-wrap
35299 msgid ""
35300 " struct guestfs_partition_list {\n"
35301 "   uint32_t len; /* Number of elements in list. */\n"
35302 "   struct guestfs_partition *val; /* Elements. */\n"
35303 " };\n"
35304 " \n"
35305 msgstr ""
35306
35307 #. type: verbatim
35308 #: ../src/guestfs-structs.pod:240
35309 #, no-wrap
35310 msgid ""
35311 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
35312 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
35313 "\n"
35314 msgstr ""
35315
35316 #. type: =head2
35317 #: ../src/guestfs-structs.pod:243
35318 msgid "guestfs_application"
35319 msgstr ""
35320
35321 #. type: verbatim
35322 #: ../src/guestfs-structs.pod:245
35323 #, no-wrap
35324 msgid ""
35325 " struct guestfs_application {\n"
35326 "   char *app_name;\n"
35327 "   char *app_display_name;\n"
35328 "   int32_t app_epoch;\n"
35329 "   char *app_version;\n"
35330 "   char *app_release;\n"
35331 "   char *app_install_path;\n"
35332 "   char *app_trans_path;\n"
35333 "   char *app_publisher;\n"
35334 "   char *app_url;\n"
35335 "   char *app_source_package;\n"
35336 "   char *app_summary;\n"
35337 "   char *app_description;\n"
35338 " };\n"
35339 " \n"
35340 msgstr ""
35341
35342 #. type: verbatim
35343 #: ../src/guestfs-structs.pod:260
35344 #, no-wrap
35345 msgid ""
35346 " struct guestfs_application_list {\n"
35347 "   uint32_t len; /* Number of elements in list. */\n"
35348 "   struct guestfs_application *val; /* Elements. */\n"
35349 " };\n"
35350 " \n"
35351 msgstr ""
35352
35353 #. type: verbatim
35354 #: ../src/guestfs-structs.pod:265
35355 #, no-wrap
35356 msgid ""
35357 " void guestfs_free_application (struct guestfs_free_application *);\n"
35358 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
35359 "\n"
35360 msgstr ""
35361
35362 #. type: textblock
35363 #: ../src/guestfs.pod:5
35364 msgid "guestfs - Library for accessing and modifying virtual machine images"
35365 msgstr ""
35366 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
35367 "машин"
35368
35369 #. type: verbatim
35370 #: ../src/guestfs.pod:11
35371 #, no-wrap
35372 msgid ""
35373 " guestfs_h *g = guestfs_create ();\n"
35374 " guestfs_add_drive (g, \"guest.img\");\n"
35375 " guestfs_launch (g);\n"
35376 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35377 " guestfs_touch (g, \"/hello\");\n"
35378 " guestfs_umount (g, \"/\");\n"
35379 " guestfs_close (g);\n"
35380 "\n"
35381 msgstr ""
35382 " guestfs_h *g = guestfs_create ();\n"
35383 " guestfs_add_drive (g, \"guest.img\");\n"
35384 " guestfs_launch (g);\n"
35385 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35386 " guestfs_touch (g, \"/hello\");\n"
35387 " guestfs_umount (g, \"/\");\n"
35388 " guestfs_close (g);\n"
35389 "\n"
35390
35391 #. type: textblock
35392 #: ../src/guestfs.pod:25
35393 msgid ""
35394 "Libguestfs is a library for accessing and modifying guest disk images.  "
35395 "Amongst the things this is good for: making batch configuration changes to "
35396 "guests, getting disk used/free statistics (see also: virt-df), migrating "
35397 "between virtualization systems (see also: virt-p2v), performing partial "
35398 "backups, performing partial guest clones, cloning guests and changing "
35399 "registry/UUID/hostname info, and much else besides."
35400 msgstr ""
35401
35402 #. type: textblock
35403 #: ../src/guestfs.pod:33
35404 msgid ""
35405 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
35406 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
35407 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
35408 "qcow2, vmdk."
35409 msgstr ""
35410
35411 #. type: textblock
35412 #: ../src/guestfs.pod:38
35413 msgid ""
35414 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
35415 "what filesystem is in each LV, etc.).  It can also run commands in the "
35416 "context of the guest.  Also you can access filesystems over FUSE."
35417 msgstr ""
35418
35419 #. type: textblock
35420 #: ../src/guestfs.pod:43
35421 msgid ""
35422 "Libguestfs is a library that can be linked with C and C++ management "
35423 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
35424 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
35425 "command line."
35426 msgstr ""
35427
35428 #. type: textblock
35429 #: ../src/guestfs.pod:48
35430 msgid ""
35431 "You don't need to be root to use libguestfs, although obviously you do need "
35432 "enough permissions to access the disk images."
35433 msgstr ""
35434
35435 #. type: textblock
35436 #: ../src/guestfs.pod:51
35437 msgid ""
35438 "Libguestfs is a large API because it can do many things.  For a gentle "
35439 "introduction, please read the L</API OVERVIEW> section next."
35440 msgstr ""
35441
35442 #. type: textblock
35443 #: ../src/guestfs.pod:54
35444 msgid ""
35445 "There are also some example programs in the L<guestfs-examples(3)> manual "
35446 "page."
35447 msgstr ""
35448
35449 #. type: =head1
35450 #: ../src/guestfs.pod:57
35451 msgid "API OVERVIEW"
35452 msgstr "ОГЛЯД API"
35453
35454 #. type: textblock
35455 #: ../src/guestfs.pod:59
35456 msgid ""
35457 "This section provides a gentler overview of the libguestfs API.  We also try "
35458 "to group API calls together, where that may not be obvious from reading "
35459 "about the individual calls in the main section of this manual."
35460 msgstr ""
35461
35462 #. type: =head2
35463 #: ../src/guestfs.pod:64
35464 msgid "HANDLES"
35465 msgstr "ОБРОБНИКИ"
35466
35467 #. type: textblock
35468 #: ../src/guestfs.pod:66
35469 msgid ""
35470 "Before you can use libguestfs calls, you have to create a handle.  Then you "
35471 "must add at least one disk image to the handle, followed by launching the "
35472 "handle, then performing whatever operations you want, and finally closing "
35473 "the handle.  By convention we use the single letter C<g> for the name of the "
35474 "handle variable, although of course you can use any name you want."
35475 msgstr ""
35476
35477 #. type: textblock
35478 #: ../src/guestfs.pod:73
35479 msgid "The general structure of all libguestfs-using programs looks like this:"
35480 msgstr ""
35481
35482 #. type: verbatim
35483 #: ../src/guestfs.pod:76
35484 #, no-wrap
35485 msgid ""
35486 " guestfs_h *g = guestfs_create ();\n"
35487 " \n"
35488 msgstr ""
35489 " guestfs_h *g = guestfs_create ();\n"
35490 " \n"
35491
35492 #. type: verbatim
35493 #: ../src/guestfs.pod:78
35494 #, no-wrap
35495 msgid ""
35496 " /* Call guestfs_add_drive additional times if there are\n"
35497 "  * multiple disk images.\n"
35498 "  */\n"
35499 " guestfs_add_drive (g, \"guest.img\");\n"
35500 " \n"
35501 msgstr ""
35502
35503 #. type: verbatim
35504 #: ../src/guestfs.pod:83
35505 #, no-wrap
35506 msgid ""
35507 " /* Most manipulation calls won't work until you've launched\n"
35508 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
35509 "  * and _before_ other commands.\n"
35510 "  */\n"
35511 " guestfs_launch (g);\n"
35512 " \n"
35513 msgstr ""
35514
35515 #. type: verbatim
35516 #: ../src/guestfs.pod:89
35517 #, no-wrap
35518 msgid ""
35519 " /* Now you can examine what partitions, LVs etc are available.\n"
35520 "  */\n"
35521 " char **partitions = guestfs_list_partitions (g);\n"
35522 " char **logvols = guestfs_lvs (g);\n"
35523 " \n"
35524 msgstr ""
35525 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
35526 "  */\n"
35527 " char **partitions = guestfs_list_partitions (g);\n"
35528 " char **logvols = guestfs_lvs (g);\n"
35529 " \n"
35530
35531 #. type: verbatim
35532 #: ../src/guestfs.pod:94
35533 #, no-wrap
35534 msgid ""
35535 " /* To access a filesystem in the image, you must mount it.\n"
35536 "  */\n"
35537 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35538 " \n"
35539 msgstr ""
35540 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
35541 "  */\n"
35542 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35543 " \n"
35544
35545 #. type: verbatim
35546 #: ../src/guestfs.pod:98
35547 #, no-wrap
35548 msgid ""
35549 " /* Now you can perform filesystem actions on the guest\n"
35550 "  * disk image.\n"
35551 "  */\n"
35552 " guestfs_touch (g, \"/hello\");\n"
35553 " \n"
35554 msgstr ""
35555 " /* Тепер ви можете виконувати дії з файловою системою на\n"
35556 "  * образі диска операційної системи.\n"
35557 "  */\n"
35558 " guestfs_touch (g, \"/hello\");\n"
35559 " \n"
35560
35561 #. type: verbatim
35562 #: ../src/guestfs.pod:103
35563 #, no-wrap
35564 msgid ""
35565 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
35566 "  * it is done automatically when you close the handle.  See\n"
35567 "  * discussion of autosync in this page.\n"
35568 "  */\n"
35569 " guestfs_sync (g);\n"
35570 " \n"
35571 msgstr ""
35572
35573 #. type: verbatim
35574 #: ../src/guestfs.pod:109
35575 #, no-wrap
35576 msgid ""
35577 " /* Close the handle 'g'. */\n"
35578 " guestfs_close (g);\n"
35579 "\n"
35580 msgstr ""
35581 " /* Закрити дескриптор 'g'. */\n"
35582 " guestfs_close (g);\n"
35583 "\n"
35584
35585 #. type: textblock
35586 #: ../src/guestfs.pod:112
35587 msgid ""
35588 "The code above doesn't include any error checking.  In real code you should "
35589 "check return values carefully for errors.  In general all functions that "
35590 "return integers return C<-1> on error, and all functions that return "
35591 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
35592 "how to handle errors, and consult the documentation for each function call "
35593 "below to see precisely how they return error indications.  See L<guestfs-"
35594 "examples(3)> for fully worked examples."
35595 msgstr ""
35596
35597 #. type: =head2
35598 #: ../src/guestfs.pod:121
35599 msgid "DISK IMAGES"
35600 msgstr "ОБРАЗИ ДИСКІВ"
35601
35602 #. type: textblock
35603 #: ../src/guestfs.pod:123
35604 msgid ""
35605 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35606 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35607 "actual block device, or simply an empty file of zeroes that you have created "
35608 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
35609 "of these."
35610 msgstr ""
35611
35612 #. type: textblock
35613 #: ../src/guestfs.pod:129
35614 msgid ""
35615 "The call you should use in modern code for adding drives is L</"
35616 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
35617 "specifying that the format is raw, do:"
35618 msgstr ""
35619
35620 #. type: verbatim
35621 #: ../src/guestfs.pod:133
35622 #, no-wrap
35623 msgid ""
35624 " guestfs_add_drive_opts (g, filename,\n"
35625 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35626 "                         -1);\n"
35627 "\n"
35628 msgstr ""
35629 " guestfs_add_drive_opts (g, filename,\n"
35630 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35631 "                         -1);\n"
35632 "\n"
35633
35634 #. type: textblock
35635 #: ../src/guestfs.pod:137
35636 msgid "You can add a disk read-only using:"
35637 msgstr "Ви можете додати диск у режимі лише читання:"
35638
35639 #. type: verbatim
35640 #: ../src/guestfs.pod:139
35641 #, no-wrap
35642 msgid ""
35643 " guestfs_add_drive_opts (g, filename,\n"
35644 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35645 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35646 "                         -1);\n"
35647 "\n"
35648 msgstr ""
35649 " guestfs_add_drive_opts (g, filename,\n"
35650 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35651 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35652 "                         -1);\n"
35653 "\n"
35654
35655 #. type: textblock
35656 #: ../src/guestfs.pod:144
35657 msgid ""
35658 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
35659 "libguestfs won't modify the file."
35660 msgstr ""
35661
35662 #. type: textblock
35663 #: ../src/guestfs.pod:147
35664 msgid ""
35665 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35666 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
35667 "corruption, but adding it read-only is safe."
35668 msgstr ""
35669
35670 #. type: textblock
35671 #: ../src/guestfs.pod:151
35672 msgid ""
35673 "You must add at least one disk image, and you may add multiple disk images.  "
35674 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35675 "first one you added), C</dev/sdb> (for the second one you added), etc."
35676 msgstr ""
35677
35678 #. type: textblock
35679 #: ../src/guestfs.pod:156
35680 msgid ""
35681 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
35682 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35683 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
35684 msgstr ""
35685
35686 #. type: =head2
35687 #: ../src/guestfs.pod:161
35688 msgid "MOUNTING"
35689 msgstr "МОНТУВАННЯ"
35690
35691 #. type: textblock
35692 #: ../src/guestfs.pod:163
35693 msgid ""
35694 "Before you can read or write files, create directories and so on in a disk "
35695 "image that contains filesystems, you have to mount those filesystems using "
35696 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
35697 "a disk image contains (for example) one partition with a filesystem on that "
35698 "partition, then you can mount it directly:"
35699 msgstr ""
35700
35701 #. type: verbatim
35702 #: ../src/guestfs.pod:170
35703 #, no-wrap
35704 msgid ""
35705 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35706 "\n"
35707 msgstr ""
35708 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35709 "\n"
35710
35711 #. type: textblock
35712 #: ../src/guestfs.pod:172
35713 msgid ""
35714 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35715 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
35716 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
35717 "that these are libguestfs virtual devices, and are nothing to do with host "
35718 "devices."
35719 msgstr ""
35720
35721 #. type: textblock
35722 #: ../src/guestfs.pod:178
35723 msgid ""
35724 "If you are given a disk image and you don't know what it contains then you "
35725 "have to find out.  Libguestfs can do that too: use L</"
35726 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
35727 "LVs, and either try mounting each to see what is mountable, or else examine "
35728 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
35729 "filesystems, use L</guestfs_list_filesystems>."
35730 msgstr ""
35731
35732 #. type: textblock
35733 #: ../src/guestfs.pod:186
35734 msgid ""
35735 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35736 "L</INSPECTION> below).  But you might find it easier to look at higher level "
35737 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35738 msgstr ""
35739
35740 #. type: textblock
35741 #: ../src/guestfs.pod:191
35742 msgid ""
35743 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
35744 "several other variations of the C<guestfs_mount_*> call."
35745 msgstr ""
35746
35747 #. type: =head2
35748 #: ../src/guestfs.pod:194
35749 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35750 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
35751
35752 #. type: textblock
35753 #: ../src/guestfs.pod:196
35754 msgid ""
35755 "The majority of the libguestfs API consists of fairly low-level calls for "
35756 "accessing and modifying the files, directories, symlinks etc on mounted "
35757 "filesystems.  There are over a hundred such calls which you can find listed "
35758 "in detail below in this man page, and we don't even pretend to cover them "
35759 "all in this overview."
35760 msgstr ""
35761
35762 #. type: textblock
35763 #: ../src/guestfs.pod:202
35764 msgid ""
35765 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35766 "mount point."
35767 msgstr ""
35768 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
35769 "точкою монтування."
35770
35771 #. type: textblock
35772 #: ../src/guestfs.pod:205
35773 msgid ""
35774 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35775 "the file called C<\"etc/passwd\"> then you could do:"
35776 msgstr ""
35777 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
35778 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
35779 "таким кодом:"
35780
35781 #. type: verbatim
35782 #: ../src/guestfs.pod:208
35783 #, no-wrap
35784 msgid ""
35785 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35786 "\n"
35787 msgstr ""
35788 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35789 "\n"
35790
35791 #. type: textblock
35792 #: ../src/guestfs.pod:210
35793 msgid ""
35794 "This would return C<data> as a newly allocated buffer containing the full "
35795 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35796 "or C<NULL> if there was an error."
35797 msgstr ""
35798
35799 #. type: textblock
35800 #: ../src/guestfs.pod:214
35801 msgid ""
35802 "As another example, to create a top-level directory on that filesystem "
35803 "called C<\"var\"> you would do:"
35804 msgstr ""
35805
35806 #. type: verbatim
35807 #: ../src/guestfs.pod:217
35808 #, no-wrap
35809 msgid ""
35810 " guestfs_mkdir (g, \"/var\");\n"
35811 "\n"
35812 msgstr ""
35813 " guestfs_mkdir (g, \"/var\");\n"
35814 "\n"
35815
35816 #. type: textblock
35817 #: ../src/guestfs.pod:219
35818 msgid "To create a symlink you could do:"
35819 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
35820
35821 #. type: verbatim
35822 #: ../src/guestfs.pod:221
35823 #, no-wrap
35824 msgid ""
35825 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35826 "               \"/etc/rc3.d/S30portmap\");\n"
35827 "\n"
35828 msgstr ""
35829 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35830 "               \"/etc/rc3.d/S30portmap\");\n"
35831 "\n"
35832
35833 #. type: textblock
35834 #: ../src/guestfs.pod:224
35835 msgid ""
35836 "Libguestfs will reject attempts to use relative paths and there is no "
35837 "concept of a current working directory."
35838 msgstr ""
35839
35840 #. type: textblock
35841 #: ../src/guestfs.pod:227
35842 msgid ""
35843 "Libguestfs can return errors in many situations: for example if the "
35844 "filesystem isn't writable, or if a file or directory that you requested "
35845 "doesn't exist.  If you are using the C API (documented here)  you have to "
35846 "check for those error conditions after each call.  (Other language bindings "
35847 "turn these errors into exceptions)."
35848 msgstr ""
35849
35850 #. type: textblock
35851 #: ../src/guestfs.pod:233
35852 msgid ""
35853 "File writes are affected by the per-handle umask, set by calling L</"
35854 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
35855 msgstr ""
35856
35857 #. type: =head2
35858 #: ../src/guestfs.pod:236
35859 msgid "PARTITIONING"
35860 msgstr "ПОДІЛ НА РОЗДІЛИ"
35861
35862 #. type: textblock
35863 #: ../src/guestfs.pod:238
35864 msgid ""
35865 "Libguestfs contains API calls to read, create and modify partition tables on "
35866 "disk images."
35867 msgstr ""
35868
35869 #. type: textblock
35870 #: ../src/guestfs.pod:241
35871 msgid ""
35872 "In the common case where you want to create a single partition covering the "
35873 "whole disk, you should use the L</guestfs_part_disk> call:"
35874 msgstr ""
35875
35876 #. type: verbatim
35877 #: ../src/guestfs.pod:245
35878 #, no-wrap
35879 msgid ""
35880 " const char *parttype = \"mbr\";\n"
35881 " if (disk_is_larger_than_2TB)\n"
35882 "   parttype = \"gpt\";\n"
35883 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35884 "\n"
35885 msgstr ""
35886 " const char *parttype = \"mbr\";\n"
35887 " if (disk_is_larger_than_2TB)\n"
35888 "   parttype = \"gpt\";\n"
35889 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35890 "\n"
35891
35892 #. type: textblock
35893 #: ../src/guestfs.pod:250
35894 msgid ""
35895 "Obviously this effectively wipes anything that was on that disk image before."
35896 msgstr ""
35897
35898 #. type: =head2
35899 #: ../src/guestfs.pod:253
35900 msgid "LVM2"
35901 msgstr "LVM2"
35902
35903 #. type: textblock
35904 #: ../src/guestfs.pod:255
35905 msgid ""
35906 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35907 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
35908 "you familiarize yourself with the concepts of physical volumes, volume "
35909 "groups and logical volumes."
35910 msgstr ""
35911
35912 #. type: textblock
35913 #: ../src/guestfs.pod:260
35914 msgid ""
35915 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35916 "tldp.org/HOWTO/LVM-HOWTO/>."
35917 msgstr ""
35918
35919 #. type: =head2
35920 #: ../src/guestfs.pod:263
35921 msgid "DOWNLOADING"
35922 msgstr "ОТРИМАННЯ ДАНИХ"
35923
35924 #. type: textblock
35925 #: ../src/guestfs.pod:265
35926 msgid ""
35927 "Use L</guestfs_cat> to download small, text only files.  This call is "
35928 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35929 "NUL (C<\\0>) characters.  However the API is very simple to use."
35930 msgstr ""
35931
35932 #. type: textblock
35933 #: ../src/guestfs.pod:269
35934 msgid ""
35935 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35936 "bit data, since it returns a (pointer, size) pair.  However it is still "
35937 "limited to \"small\" files, less than 2 MB."
35938 msgstr ""
35939
35940 #. type: textblock
35941 #: ../src/guestfs.pod:273
35942 msgid ""
35943 "L</guestfs_download> can be used to download any file, with no limits on "
35944 "content or size (even files larger than 4 GB)."
35945 msgstr ""
35946
35947 #. type: textblock
35948 #: ../src/guestfs.pod:276
35949 msgid ""
35950 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35951 msgstr ""
35952
35953 #. type: =head2
35954 #: ../src/guestfs.pod:279
35955 msgid "UPLOADING"
35956 msgstr "ВИВАНТАЖЕННЯ"
35957
35958 #. type: textblock
35959 #: ../src/guestfs.pod:281
35960 msgid ""
35961 "It's often the case that you want to write a file or files to the disk image."
35962 msgstr ""
35963
35964 #. type: textblock
35965 #: ../src/guestfs.pod:284
35966 msgid ""
35967 "To write a small file with fixed content, use L</guestfs_write>.  To create "
35968 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35969 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
35970 "of other functions for creating test files, for example L</guestfs_fill> and "
35971 "L</guestfs_fill_pattern>."
35972 msgstr ""
35973
35974 #. type: textblock
35975 #: ../src/guestfs.pod:290
35976 msgid ""
35977 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
35978 "file content or size (even files larger than 4 GB)."
35979 msgstr ""
35980
35981 #. type: textblock
35982 #: ../src/guestfs.pod:293
35983 msgid ""
35984 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35985 msgstr ""
35986
35987 #. type: textblock
35988 #: ../src/guestfs.pod:295
35989 msgid ""
35990 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35991 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
35992 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
35993 "in a predictable way (eg. adding it last after all other drives) then you "
35994 "can get the device name from L</guestfs_list_devices> and mount it directly "
35995 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
35996 "portable between kernel versions, and they don't support labels or UUIDs.  "
35997 "If you want to pre-build an image or you need to mount it using a label or "
35998 "UUID, use an ISO image instead."
35999 msgstr ""
36000
36001 #. type: =head2
36002 #: ../src/guestfs.pod:306
36003 msgid "COPYING"
36004 msgstr "КОПІЮВАННЯ"
36005
36006 #. type: textblock
36007 #: ../src/guestfs.pod:308
36008 msgid ""
36009 "There are various different commands for copying between files and devices "
36010 "and in and out of the guest filesystem.  These are summarised in the table "
36011 "below."
36012 msgstr ""
36013
36014 #. type: =item
36015 #: ../src/guestfs.pod:314
36016 msgid "B<file> to B<file>"
36017 msgstr "B<файл> у B<файл>"
36018
36019 #. type: textblock
36020 #: ../src/guestfs.pod:316
36021 msgid ""
36022 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
36023 "directories recursively."
36024 msgstr ""
36025
36026 #. type: textblock
36027 #: ../src/guestfs.pod:319
36028 msgid ""
36029 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
36030 msgstr ""
36031
36032 #. type: =item
36033 #: ../src/guestfs.pod:322
36034 msgid "B<file> to B<device>"
36035 msgstr ""
36036
36037 #. type: =item
36038 #: ../src/guestfs.pod:324
36039 msgid "B<device> to B<file>"
36040 msgstr ""
36041
36042 #. type: =item
36043 #: ../src/guestfs.pod:326
36044 msgid "B<device> to B<device>"
36045 msgstr ""
36046
36047 #. type: textblock
36048 #: ../src/guestfs.pod:328
36049 msgid ""
36050 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
36051 "guestfs_copy_device_to_device>."
36052 msgstr ""
36053
36054 #. type: textblock
36055 #: ../src/guestfs.pod:331
36056 msgid "Example: duplicate the contents of an LV:"
36057 msgstr ""
36058
36059 #. type: verbatim
36060 #: ../src/guestfs.pod:333
36061 #, no-wrap
36062 msgid ""
36063 " guestfs_copy_device_to_device (g,\n"
36064 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36065 "         /* -1 marks the end of the list of optional parameters */\n"
36066 "         -1);\n"
36067 "\n"
36068 msgstr ""
36069
36070 #. type: textblock
36071 #: ../src/guestfs.pod:338
36072 msgid ""
36073 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36074 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
36075 "optional C<size> parameter:"
36076 msgstr ""
36077
36078 #. type: verbatim
36079 #: ../src/guestfs.pod:342
36080 #, no-wrap
36081 msgid ""
36082 " guestfs_copy_device_to_device (g,\n"
36083 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36084 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36085 "         -1);\n"
36086 "\n"
36087 msgstr ""
36088
36089 #. type: =item
36090 #: ../src/guestfs.pod:347
36091 msgid "B<file on the host> to B<file or device>"
36092 msgstr ""
36093
36094 #. type: textblock
36095 #: ../src/guestfs.pod:349
36096 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
36097 msgstr ""
36098
36099 #. type: =item
36100 #: ../src/guestfs.pod:351
36101 msgid "B<file or device> to B<file on the host>"
36102 msgstr ""
36103
36104 #. type: textblock
36105 #: ../src/guestfs.pod:353
36106 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
36107 msgstr ""
36108
36109 #. type: =head2
36110 #: ../src/guestfs.pod:357
36111 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36112 msgstr ""
36113
36114 #. type: textblock
36115 #: ../src/guestfs.pod:359
36116 msgid ""
36117 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36118 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36119 "appears you can only upload and download to files.  However many Un*x-like "
36120 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36121 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36122 "and arbitrary file descriptor N."
36123 msgstr ""
36124
36125 #. type: textblock
36126 #: ../src/guestfs.pod:367
36127 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36128 msgstr ""
36129
36130 #. type: verbatim
36131 #: ../src/guestfs.pod:370
36132 #, no-wrap
36133 msgid ""
36134 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36135 "\n"
36136 msgstr ""
36137 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36138 "\n"
36139
36140 #. type: textblock
36141 #: ../src/guestfs.pod:372
36142 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36143 msgstr ""
36144
36145 #. type: verbatim
36146 #: ../src/guestfs.pod:374
36147 #, no-wrap
36148 msgid ""
36149 " char devfd[64];\n"
36150 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36151 " guestfs_tar_out (g, \"/\", devfd);\n"
36152 "\n"
36153 msgstr ""
36154 " char devfd[64];\n"
36155 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36156 " guestfs_tar_out (g, \"/\", devfd);\n"
36157 "\n"
36158
36159 #. type: =head2
36160 #: ../src/guestfs.pod:378
36161 msgid "LISTING FILES"
36162 msgstr "СПИСКИ ФАЙЛІВ"
36163
36164 #. type: textblock
36165 #: ../src/guestfs.pod:380
36166 msgid ""
36167 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36168 "L<guestfish(1)>-equivalent command C<ll>)."
36169 msgstr ""
36170
36171 #. type: textblock
36172 #: ../src/guestfs.pod:383
36173 msgid ""
36174 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36175 "programs, as a flat list of strings."
36176 msgstr ""
36177
36178 #. type: textblock
36179 #: ../src/guestfs.pod:386
36180 msgid ""
36181 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36182 "directory, plus additional information about each one.  It is more "
36183 "equivalent to using the L<readdir(3)> call on a local filesystem."
36184 msgstr ""
36185
36186 #. type: textblock
36187 #: ../src/guestfs.pod:390
36188 msgid ""
36189 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36190 msgstr ""
36191
36192 #. type: =head2
36193 #: ../src/guestfs.pod:393
36194 msgid "RUNNING COMMANDS"
36195 msgstr "ВИКОНАННЯ КОМАНД"
36196
36197 #. type: textblock
36198 #: ../src/guestfs.pod:395
36199 msgid ""
36200 "Although libguestfs is primarily an API for manipulating files inside guest "
36201 "images, we also provide some limited facilities for running commands inside "
36202 "guests."
36203 msgstr ""
36204
36205 #. type: textblock
36206 #: ../src/guestfs.pod:399
36207 msgid "There are many limitations to this:"
36208 msgstr ""
36209
36210 #. type: textblock
36211 #: ../src/guestfs.pod:405
36212 msgid ""
36213 "The kernel version that the command runs under will be different from what "
36214 "it expects."
36215 msgstr ""
36216
36217 #. type: textblock
36218 #: ../src/guestfs.pod:410
36219 msgid ""
36220 "If the command needs to communicate with daemons, then most likely they "
36221 "won't be running."
36222 msgstr ""
36223
36224 #. type: textblock
36225 #: ../src/guestfs.pod:415
36226 msgid "The command will be running in limited memory."
36227 msgstr ""
36228
36229 #. type: textblock
36230 #: ../src/guestfs.pod:419
36231 msgid ""
36232 "The network may not be available unless you enable it (see L</"
36233 "guestfs_set_network>)."
36234 msgstr ""
36235
36236 #. type: textblock
36237 #: ../src/guestfs.pod:424
36238 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36239 msgstr ""
36240
36241 #. type: textblock
36242 #: ../src/guestfs.pod:428
36243 msgid ""
36244 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36245 msgstr ""
36246
36247 #. type: textblock
36248 #: ../src/guestfs.pod:433
36249 msgid ""
36250 "For SELinux guests, you may need to enable SELinux and load policy first.  "
36251 "See L</SELINUX> in this manpage."
36252 msgstr ""
36253
36254 #. type: textblock
36255 #: ../src/guestfs.pod:438
36256 msgid ""
36257 "I<Security:> It is not safe to run commands from untrusted, possibly "
36258 "malicious guests.  These commands may attempt to exploit your program by "
36259 "sending unexpected output.  They could also try to exploit the Linux kernel "
36260 "or qemu provided by the libguestfs appliance.  They could use the network "
36261 "provided by the libguestfs appliance to bypass ordinary network partitions "
36262 "and firewalls.  They could use the elevated privileges or different SELinux "
36263 "context of your program to their advantage."
36264 msgstr ""
36265
36266 #. type: textblock
36267 #: ../src/guestfs.pod:447
36268 msgid ""
36269 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36270 "(a script which runs when the guest next boots normally), and to have this "
36271 "script run the commands you want in the normal context of the running guest, "
36272 "network security and so on.  For information about other security issues, "
36273 "see L</SECURITY>."
36274 msgstr ""
36275
36276 #. type: textblock
36277 #: ../src/guestfs.pod:455
36278 msgid ""
36279 "The two main API calls to run commands are L</guestfs_command> and L</"
36280 "guestfs_sh> (there are also variations)."
36281 msgstr ""
36282
36283 #. type: textblock
36284 #: ../src/guestfs.pod:458
36285 msgid ""
36286 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
36287 "shell globs, redirections, etc will work."
36288 msgstr ""
36289
36290 #. type: =head2
36291 #: ../src/guestfs.pod:461
36292 msgid "CONFIGURATION FILES"
36293 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
36294
36295 #. type: textblock
36296 #: ../src/guestfs.pod:463
36297 msgid ""
36298 "To read and write configuration files in Linux guest filesystems, we "
36299 "strongly recommend using Augeas.  For example, Augeas understands how to "
36300 "read and write, say, a Linux shadow password file or X.org configuration "
36301 "file, and so avoids you having to write that code."
36302 msgstr ""
36303
36304 #. type: textblock
36305 #: ../src/guestfs.pod:468
36306 msgid ""
36307 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
36308 "document Augeas itself here because there is excellent documentation on the "
36309 "L<http://augeas.net/> website."
36310 msgstr ""
36311
36312 #. type: textblock
36313 #: ../src/guestfs.pod:472
36314 msgid ""
36315 "If you don't want to use Augeas (you fool!) then try calling L</"
36316 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
36317 "over."
36318 msgstr ""
36319
36320 #. type: =head2
36321 #: ../src/guestfs.pod:476
36322 msgid "SELINUX"
36323 msgstr "SELINUX"
36324
36325 #. type: textblock
36326 #: ../src/guestfs.pod:478
36327 msgid ""
36328 "We support SELinux guests.  To ensure that labeling happens correctly in "
36329 "SELinux guests, you need to enable SELinux and load the guest's policy:"
36330 msgstr ""
36331
36332 #. type: textblock
36333 #: ../src/guestfs.pod:486
36334 msgid "Before launching, do:"
36335 msgstr ""
36336
36337 #. type: verbatim
36338 #: ../src/guestfs.pod:488
36339 #, no-wrap
36340 msgid ""
36341 " guestfs_set_selinux (g, 1);\n"
36342 "\n"
36343 msgstr ""
36344 " guestfs_set_selinux (g, 1);\n"
36345 "\n"
36346
36347 #. type: textblock
36348 #: ../src/guestfs.pod:492
36349 msgid ""
36350 "After mounting the guest's filesystem(s), load the policy.  This is best "
36351 "done by running the L<load_policy(8)> command in the guest itself:"
36352 msgstr ""
36353
36354 #. type: verbatim
36355 #: ../src/guestfs.pod:496
36356 #, no-wrap
36357 msgid ""
36358 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36359 "\n"
36360 msgstr ""
36361 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36362 "\n"
36363
36364 #. type: textblock
36365 #: ../src/guestfs.pod:498
36366 msgid ""
36367 "(Older versions of C<load_policy> require you to specify the name of the "
36368 "policy file)."
36369 msgstr ""
36370
36371 #. type: textblock
36372 #: ../src/guestfs.pod:503
36373 msgid ""
36374 "Optionally, set the security context for the API.  The correct security "
36375 "context to use can only be known by inspecting the guest.  As an example:"
36376 msgstr ""
36377
36378 #. type: verbatim
36379 #: ../src/guestfs.pod:507
36380 #, no-wrap
36381 msgid ""
36382 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36383 "\n"
36384 msgstr ""
36385 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36386 "\n"
36387
36388 #. type: textblock
36389 #: ../src/guestfs.pod:511
36390 msgid "This will work for running commands and editing existing files."
36391 msgstr ""
36392
36393 #. type: textblock
36394 #: ../src/guestfs.pod:513
36395 msgid ""
36396 "When new files are created, you may need to label them explicitly, for "
36397 "example by running the external command C<restorecon pathname>."
36398 msgstr ""
36399
36400 #. type: =head2
36401 #: ../src/guestfs.pod:517
36402 msgid "UMASK"
36403 msgstr "UMASK"
36404
36405 #. type: textblock
36406 #: ../src/guestfs.pod:519
36407 msgid ""
36408 "Certain calls are affected by the current file mode creation mask (the "
36409 "\"umask\").  In particular ones which create files or directories, such as "
36410 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
36411 "either the default mode that the file is created with or modifies the mode "
36412 "that you supply."
36413 msgstr ""
36414
36415 #. type: textblock
36416 #: ../src/guestfs.pod:525
36417 msgid ""
36418 "The default umask is C<022>, so files are created with modes such as C<0644> "
36419 "and directories with C<0755>."
36420 msgstr ""
36421
36422 #. type: textblock
36423 #: ../src/guestfs.pod:528
36424 msgid ""
36425 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
36426 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
36427 "guestfs_chmod> after creating each file or directory."
36428 msgstr ""
36429
36430 #. type: textblock
36431 #: ../src/guestfs.pod:532
36432 msgid "For more information about umask, see L<umask(2)>."
36433 msgstr ""
36434
36435 #. type: textblock
36436 #: ../src/guestfs.pod:536
36437 msgid ""
36438 "Libguestfs allows you to access Linux guests which have been encrypted using "
36439 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
36440 "standard.  This includes nearly all whole disk encryption systems used by "
36441 "modern Linux guests."
36442 msgstr ""
36443
36444 #. type: textblock
36445 #: ../src/guestfs.pod:542
36446 msgid ""
36447 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
36448 "returns the string C<crypto_LUKS>)."
36449 msgstr ""
36450
36451 #. type: textblock
36452 #: ../src/guestfs.pod:545
36453 msgid ""
36454 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
36455 "will require the passphrase!"
36456 msgstr ""
36457
36458 #. type: textblock
36459 #: ../src/guestfs.pod:548
36460 msgid ""
36461 "Opening a LUKS device creates a new device mapper device called C</dev/"
36462 "mapper/mapname> (where C<mapname> is the string you supply to L</"
36463 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
36464 "from and encrypted to the underlying block device respectively."
36465 msgstr ""
36466
36467 #. type: textblock
36468 #: ../src/guestfs.pod:554
36469 msgid ""
36470 "LVM volume groups on the device can be made visible by calling L</"
36471 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
36472 "(s) can now be mounted in the usual way."
36473 msgstr ""
36474
36475 #. type: textblock
36476 #: ../src/guestfs.pod:558
36477 msgid ""
36478 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
36479 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36480 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
36481 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36482 "underlying encrypted block device)."
36483 msgstr ""
36484
36485 #. type: =head2
36486 #: ../src/guestfs.pod:565
36487 msgid "INSPECTION"
36488 msgstr "ПЕРЕВІРКА"
36489
36490 #. type: textblock
36491 #: ../src/guestfs.pod:567
36492 msgid ""
36493 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36494 "contains operating systems, an install CD or a live CD.  (These APIs used to "
36495 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
36496 "version 1.5.3 the most frequently used part of this library has been "
36497 "rewritten in C and moved into the core code)."
36498 msgstr ""
36499
36500 #. type: textblock
36501 #: ../src/guestfs.pod:574
36502 msgid ""
36503 "Add all disks belonging to the unknown virtual machine and call L</"
36504 "guestfs_launch> in the usual way."
36505 msgstr ""
36506
36507 #. type: textblock
36508 #: ../src/guestfs.pod:577
36509 msgid ""
36510 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
36511 "and certain heuristics, and returns a list of operating systems that were "
36512 "found.  An empty list means none were found.  A single element is the root "
36513 "filesystem of the operating system.  For dual- or multi-boot guests, "
36514 "multiple roots can be returned, each one corresponding to a separate "
36515 "operating system.  (Multi-boot virtual machines are extremely rare in the "
36516 "world of virtualization, but since this scenario can happen, we have built "
36517 "libguestfs to deal with it.)"
36518 msgstr ""
36519
36520 #. type: textblock
36521 #: ../src/guestfs.pod:586
36522 msgid ""
36523 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36524 "to get additional details about that operating system.  For example, call L</"
36525 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36526 "Windows and Linux-based operating systems respectively."
36527 msgstr ""
36528
36529 #. type: textblock
36530 #: ../src/guestfs.pod:592
36531 msgid ""
36532 "Un*x-like and Linux-based operating systems usually consist of several "
36533 "filesystems which are mounted at boot time (for example, a separate boot "
36534 "partition mounted on C</boot>).  The inspection rules are able to detect how "
36535 "filesystems correspond to mount points.  Call "
36536 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
36537 "hash table like this example:"
36538 msgstr ""
36539
36540 #. type: verbatim
36541 #: ../src/guestfs.pod:599
36542 #, no-wrap
36543 msgid ""
36544 " /boot => /dev/sda1\n"
36545 " /     => /dev/vg_guest/lv_root\n"
36546 " /usr  => /dev/vg_guest/lv_usr\n"
36547 "\n"
36548 msgstr ""
36549 " /boot => /dev/sda1\n"
36550 " /     => /dev/vg_guest/lv_root\n"
36551 " /usr  => /dev/vg_guest/lv_usr\n"
36552 "\n"
36553
36554 #. type: textblock
36555 #: ../src/guestfs.pod:603
36556 msgid ""
36557 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36558 "filesystems as suggested."
36559 msgstr ""
36560
36561 #. type: textblock
36562 #: ../src/guestfs.pod:606
36563 msgid ""
36564 "Be careful to mount filesystems in the right order (eg. C</> before C</"
36565 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
36566 msgstr ""
36567
36568 #. type: textblock
36569 #: ../src/guestfs.pod:610
36570 msgid ""
36571 "Inspection currently only works for some common operating systems.  "
36572 "Contributors are welcome to send patches for other operating systems that we "
36573 "currently cannot detect."
36574 msgstr ""
36575
36576 #. type: textblock
36577 #: ../src/guestfs.pod:614
36578 msgid ""
36579 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
36580 "for more details.  The L</guestfs_inspect_os> function just ignores any "
36581 "encrypted devices."
36582 msgstr ""
36583
36584 #. type: textblock
36585 #: ../src/guestfs.pod:618
36586 msgid ""
36587 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36588 "inspection and caches the results in the guest handle.  Subsequent calls to "
36589 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36590 "read the disks.  If you change the content of the guest disks, you can redo "
36591 "inspection by calling L</guestfs_inspect_os> again.  (L</"
36592 "guestfs_inspect_list_applications> works a little differently from the other "
36593 "calls and does read the disks.  See documentation for that function for "
36594 "details)."
36595 msgstr ""
36596
36597 #. type: =head3
36598 #: ../src/guestfs.pod:627
36599 msgid "INSPECTING INSTALL DISKS"
36600 msgstr ""
36601
36602 #. type: textblock
36603 #: ../src/guestfs.pod:629
36604 msgid ""
36605 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36606 "CDs and more."
36607 msgstr ""
36608
36609 #. type: textblock
36610 #: ../src/guestfs.pod:632
36611 msgid ""
36612 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36613 "system, which currently can be C<installed> (a regular operating system) or "
36614 "C<installer> (some sort of install disk)."
36615 msgstr ""
36616
36617 #. type: textblock
36618 #: ../src/guestfs.pod:636
36619 msgid ""
36620 "Further information is available about the operating system that can be "
36621 "installed using the regular inspection APIs like L</"
36622 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
36623 msgstr ""
36624
36625 #. type: textblock
36626 #: ../src/guestfs.pod:641
36627 msgid ""
36628 "Some additional information specific to installer disks is also available "
36629 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
36630 "guestfs_inspect_is_multipart> calls."
36631 msgstr ""
36632
36633 #. type: =head2
36634 #: ../src/guestfs.pod:646
36635 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36636 msgstr ""
36637
36638 #. type: textblock
36639 #: ../src/guestfs.pod:648
36640 msgid ""
36641 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
36642 "ntfs-3g.org/> driver."
36643 msgstr ""
36644
36645 #. type: =head3
36646 #: ../src/guestfs.pod:651
36647 msgid "DRIVE LETTERS AND PATHS"
36648 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
36649
36650 #. type: textblock
36651 #: ../src/guestfs.pod:653
36652 msgid ""
36653 "DOS and Windows still use drive letters, and the filesystems are always "
36654 "treated as case insensitive by Windows itself, and therefore you might find "
36655 "a Windows configuration file referring to a path like C<c:\\windows"
36656 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
36657 "might be referred to as C</WINDOWS/System32>."
36658 msgstr ""
36659
36660 #. type: textblock
36661 #: ../src/guestfs.pod:659
36662 msgid ""
36663 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36664 "L</guestfs_inspect_get_drive_mappings>)"
36665 msgstr ""
36666
36667 #. type: textblock
36668 #: ../src/guestfs.pod:662
36669 msgid ""
36670 "Dealing with separator characters (backslash vs forward slash) is outside "
36671 "the scope of libguestfs, but usually a simple character replacement will "
36672 "work."
36673 msgstr ""
36674
36675 #. type: textblock
36676 #: ../src/guestfs.pod:666
36677 msgid ""
36678 "To resolve the case insensitivity of paths, call L</"
36679 "guestfs_case_sensitive_path>."
36680 msgstr ""
36681
36682 #. type: =head3
36683 #: ../src/guestfs.pod:669
36684 msgid "ACCESSING THE WINDOWS REGISTRY"
36685 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
36686
36687 #. type: textblock
36688 #: ../src/guestfs.pod:671
36689 msgid ""
36690 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36691 "files, through the library C<hivex> which is part of the libguestfs project "
36692 "although ships as a separate tarball.  You have to locate and download the "
36693 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
36694 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
36695 "reg(1)> for more help on this issue."
36696 msgstr ""
36697
36698 #. type: =head3
36699 #: ../src/guestfs.pod:679
36700 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36701 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
36702
36703 #. type: textblock
36704 #: ../src/guestfs.pod:681
36705 msgid ""
36706 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36707 "provide something which looks like a Linux symlink.  The way it tries to do "
36708 "the rewriting is described here:"
36709 msgstr ""
36710
36711 #. type: textblock
36712 #: ../src/guestfs.pod:685
36713 msgid ""
36714 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36715 "symbolic-links/>"
36716 msgstr ""
36717 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36718 "symbolic-links/>"
36719
36720 #. type: textblock
36721 #: ../src/guestfs.pod:687
36722 msgid ""
36723 "The essential problem is that ntfs-3g simply does not have enough "
36724 "information to do a correct job.  NTFS links can contain drive letters and "
36725 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
36726 "It is almost certainly the case that libguestfs callers should ignore what "
36727 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36728 msgstr ""
36729
36730 #. type: textblock
36731 #: ../src/guestfs.pod:694
36732 msgid ""
36733 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
36734 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36735 "attribute, and read the raw reparse data from that (you can find the format "
36736 "documented in various places around the web)."
36737 msgstr ""
36738
36739 #. type: =head3
36740 #: ../src/guestfs.pod:699
36741 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36742 msgstr ""
36743
36744 #. type: textblock
36745 #: ../src/guestfs.pod:701
36746 msgid ""
36747 "There are other useful extended attributes that can be read from ntfs-3g "
36748 "filesystems (using L</guestfs_getxattr>).  See:"
36749 msgstr ""
36750
36751 #. type: textblock
36752 #: ../src/guestfs.pod:704
36753 msgid ""
36754 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36755 msgstr ""
36756 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36757
36758 #. type: =head2
36759 #: ../src/guestfs.pod:706
36760 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36761 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
36762
36763 #. type: textblock
36764 #: ../src/guestfs.pod:708
36765 msgid ""
36766 "Although we don't want to discourage you from using the C API, we will "
36767 "mention here that the same API is also available in other languages."
36768 msgstr ""
36769
36770 #. type: textblock
36771 #: ../src/guestfs.pod:711
36772 msgid ""
36773 "The API is broadly identical in all supported languages.  This means that "
36774 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36775 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36776 "OCaml.  In other words, a straightforward, predictable isomorphism between "
36777 "each language."
36778 msgstr ""
36779
36780 #. type: textblock
36781 #: ../src/guestfs.pod:717
36782 msgid ""
36783 "Error messages are automatically transformed into exceptions if the language "
36784 "supports it."
36785 msgstr ""
36786
36787 #. type: textblock
36788 #: ../src/guestfs.pod:720
36789 msgid ""
36790 "We don't try to \"object orientify\" parts of the API in OO languages, "
36791 "although contributors are welcome to write higher level APIs above what we "
36792 "provide in their favourite languages if they wish."
36793 msgstr ""
36794
36795 #. type: =item
36796 #: ../src/guestfs.pod:726
36797 msgid "B<C++>"
36798 msgstr "B<C++>"
36799
36800 #. type: textblock
36801 #: ../src/guestfs.pod:728
36802 msgid ""
36803 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
36804 "identical to the C API.  C++ classes and exceptions are not used."
36805 msgstr ""
36806
36807 #. type: =item
36808 #: ../src/guestfs.pod:732
36809 msgid "B<C#>"
36810 msgstr "B<C#>"
36811
36812 #. type: textblock
36813 #: ../src/guestfs.pod:734
36814 msgid ""
36815 "The C# bindings are highly experimental.  Please read the warnings at the "
36816 "top of C<csharp/Libguestfs.cs>."
36817 msgstr ""
36818
36819 #. type: =item
36820 #: ../src/guestfs.pod:737
36821 msgid "B<Erlang>"
36822 msgstr ""
36823
36824 #. type: textblock
36825 #: ../src/guestfs.pod:739
36826 msgid "See L<guestfs-erlang(3)>."
36827 msgstr ""
36828
36829 #. type: =item
36830 #: ../src/guestfs.pod:741
36831 msgid "B<Haskell>"
36832 msgstr "B<Haskell>"
36833
36834 #. type: textblock
36835 #: ../src/guestfs.pod:743
36836 msgid ""
36837 "This is the only language binding that is working but incomplete.  Only "
36838 "calls which return simple integers have been bound in Haskell, and we are "
36839 "looking for help to complete this binding."
36840 msgstr ""
36841
36842 #. type: =item
36843 #: ../src/guestfs.pod:747
36844 msgid "B<Java>"
36845 msgstr "B<Java>"
36846
36847 #. type: textblock
36848 #: ../src/guestfs.pod:749
36849 msgid ""
36850 "Full documentation is contained in the Javadoc which is distributed with "
36851 "libguestfs.  For examples, see L<guestfs-java(3)>."
36852 msgstr ""
36853
36854 #. type: =item
36855 #: ../src/guestfs.pod:752
36856 msgid "B<OCaml>"
36857 msgstr "B<OCaml>"
36858
36859 #. type: textblock
36860 #: ../src/guestfs.pod:754
36861 msgid "See L<guestfs-ocaml(3)>."
36862 msgstr "Див. L<guestfs-ocaml(3)>."
36863
36864 #. type: =item
36865 #: ../src/guestfs.pod:756
36866 msgid "B<Perl>"
36867 msgstr "B<Perl>"
36868
36869 #. type: textblock
36870 #: ../src/guestfs.pod:758
36871 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36872 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
36873
36874 #. type: =item
36875 #: ../src/guestfs.pod:760
36876 msgid "B<PHP>"
36877 msgstr "B<PHP>"
36878
36879 #. type: textblock
36880 #: ../src/guestfs.pod:762
36881 msgid ""
36882 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36883 "the php-libguestfs package for your distribution."
36884 msgstr ""
36885
36886 #. type: textblock
36887 #: ../src/guestfs.pod:765
36888 msgid "The PHP binding only works correctly on 64 bit machines."
36889 msgstr ""
36890
36891 #. type: =item
36892 #: ../src/guestfs.pod:767
36893 msgid "B<Python>"
36894 msgstr "B<Python>"
36895
36896 #. type: textblock
36897 #: ../src/guestfs.pod:769
36898 msgid "See L<guestfs-python(3)>."
36899 msgstr "Див. L<guestfs-python(3)>."
36900
36901 #. type: =item
36902 #: ../src/guestfs.pod:771
36903 msgid "B<Ruby>"
36904 msgstr "B<Ruby>"
36905
36906 #. type: textblock
36907 #: ../src/guestfs.pod:773
36908 msgid "See L<guestfs-ruby(3)>."
36909 msgstr "Див. L<guestfs-ruby(3)>."
36910
36911 #. type: =item
36912 #: ../src/guestfs.pod:775
36913 msgid "B<shell scripts>"
36914 msgstr "B<скрипти оболонки>"
36915
36916 #. type: textblock
36917 #: ../src/guestfs.pod:777
36918 msgid "See L<guestfish(1)>."
36919 msgstr "Див. L<guestfish(1)>."
36920
36921 #. type: =head2
36922 #: ../src/guestfs.pod:781
36923 msgid "LIBGUESTFS GOTCHAS"
36924 msgstr ""
36925
36926 #. type: textblock
36927 #: ../src/guestfs.pod:783
36928 msgid ""
36929 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36930 "system [...] that works in the way it is documented but is counterintuitive "
36931 "and almost invites mistakes.\""
36932 msgstr ""
36933
36934 #. type: textblock
36935 #: ../src/guestfs.pod:787
36936 msgid ""
36937 "Since we developed libguestfs and the associated tools, there are several "
36938 "things we would have designed differently, but are now stuck with for "
36939 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
36940 "release, you can expect these to change.  Beware of them."
36941 msgstr ""
36942
36943 #. type: =item
36944 #: ../src/guestfs.pod:795
36945 msgid "Autosync / forgetting to sync."
36946 msgstr ""
36947
36948 #. type: textblock
36949 #: ../src/guestfs.pod:797
36950 msgid ""
36951 "I<Update:> Autosync is enabled by default for all API users starting from "
36952 "libguestfs 1.5.24.  This section only applies to older versions."
36953 msgstr ""
36954
36955 #. type: textblock
36956 #: ../src/guestfs.pod:800
36957 msgid ""
36958 "When modifying a filesystem from C or another language, you B<must> unmount "
36959 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36960 "libguestfs handle.  You can also call:"
36961 msgstr ""
36962
36963 #. type: verbatim
36964 #: ../src/guestfs.pod:804
36965 #, no-wrap
36966 msgid ""
36967 " guestfs_set_autosync (g, 1);\n"
36968 "\n"
36969 msgstr ""
36970 " guestfs_set_autosync (g, 1);\n"
36971 "\n"
36972
36973 #. type: textblock
36974 #: ../src/guestfs.pod:806
36975 msgid ""
36976 "to have the unmount/sync done automatically for you when the handle 'g' is "
36977 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
36978 msgstr ""
36979
36980 #. type: textblock
36981 #: ../src/guestfs.pod:810
36982 msgid ""
36983 "If you forget to do this, then it is entirely possible that your changes "
36984 "won't be written out, or will be partially written, or (very rarely) that "
36985 "you'll get disk corruption."
36986 msgstr ""
36987
36988 #. type: textblock
36989 #: ../src/guestfs.pod:814
36990 msgid ""
36991 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
36992 "guestfish scripts that forget to sync will work just fine, which can make "
36993 "this very puzzling if you are trying to debug a problem."
36994 msgstr ""
36995
36996 #. type: =item
36997 #: ../src/guestfs.pod:818
36998 msgid "Mount option C<-o sync> should not be the default."
36999 msgstr ""
37000
37001 #. type: textblock
37002 #: ../src/guestfs.pod:820
37003 msgid ""
37004 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
37005 "libguestfs 1.13.16.  This section only applies to older versions."
37006 msgstr ""
37007
37008 #. type: textblock
37009 #: ../src/guestfs.pod:823
37010 msgid ""
37011 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
37012 "However C<-o sync> does not add any reliability benefit, but does have a "
37013 "very large performance impact."
37014 msgstr ""
37015
37016 #. type: textblock
37017 #: ../src/guestfs.pod:827
37018 msgid ""
37019 "The work around is to use L</guestfs_mount_options> and set the mount "
37020 "options that you actually want to use."
37021 msgstr ""
37022
37023 #. type: =item
37024 #: ../src/guestfs.pod:830
37025 msgid "Read-only should be the default."
37026 msgstr ""
37027
37028 #. type: textblock
37029 #: ../src/guestfs.pod:832
37030 msgid ""
37031 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
37032 "specify I<--rw> if you want to make changes to the image."
37033 msgstr ""
37034
37035 #. type: textblock
37036 #: ../src/guestfs.pod:835
37037 msgid "This would reduce the potential to corrupt live VM images."
37038 msgstr ""
37039
37040 #. type: textblock
37041 #: ../src/guestfs.pod:837
37042 msgid ""
37043 "Note that many filesystems change the disk when you just mount and unmount, "
37044 "even if you didn't perform any writes.  You need to use L</"
37045 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
37046 msgstr ""
37047
37048 #. type: =item
37049 #: ../src/guestfs.pod:841
37050 msgid "guestfish command line is hard to use."
37051 msgstr ""
37052
37053 #. type: textblock
37054 #: ../src/guestfs.pod:843
37055 msgid ""
37056 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
37057 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
37058 "exist, so it fails.  In earlier versions of guestfish the error message was "
37059 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
37060 "we should have used C<guestfish -c command> to run commands."
37061 msgstr ""
37062
37063 #. type: =item
37064 #: ../src/guestfs.pod:850
37065 msgid "guestfish megabyte modifiers don't work right on all commands"
37066 msgstr ""
37067
37068 #. type: textblock
37069 #: ../src/guestfs.pod:852
37070 msgid ""
37071 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37072 "other modifiers).  What guestfish actually does is to multiply the number "
37073 "part by the modifier part and pass the result to the C API.  However this "
37074 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37075 "expecting some other unit (eg. megabytes)."
37076 msgstr ""
37077
37078 #. type: textblock
37079 #: ../src/guestfs.pod:859
37080 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
37081 msgstr ""
37082
37083 #. type: verbatim
37084 #: ../src/guestfs.pod:861
37085 #, no-wrap
37086 msgid ""
37087 " lvcreate LV VG 100M\n"
37088 "\n"
37089 msgstr ""
37090 " lvcreate LV VG 100M\n"
37091 "\n"
37092
37093 #. type: textblock
37094 #: ../src/guestfs.pod:863
37095 msgid ""
37096 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
37097 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37098 "megabytes * megabytes) logical volume.  The error message you get from this "
37099 "is also a little obscure."
37100 msgstr ""
37101
37102 #. type: textblock
37103 #: ../src/guestfs.pod:868
37104 msgid ""
37105 "This could be fixed in the generator by specially marking parameters and "
37106 "return values which take bytes or other units."
37107 msgstr ""
37108
37109 #. type: =item
37110 #: ../src/guestfs.pod:871
37111 msgid "Ambiguity between devices and paths"
37112 msgstr ""
37113
37114 #. type: textblock
37115 #: ../src/guestfs.pod:873
37116 msgid ""
37117 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37118 "sdb2>) and a similar pathname.  A file might just happen to be called "
37119 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37120 msgstr ""
37121
37122 #. type: textblock
37123 #: ../src/guestfs.pod:878
37124 msgid ""
37125 "In the current API we usually resolve this ambiguity by having two separate "
37126 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
37127 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37128 "detecting if the path supplied begins with C</dev/>."
37129 msgstr ""
37130
37131 #. type: textblock
37132 #: ../src/guestfs.pod:884
37133 msgid ""
37134 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37135 "make paths/devices into structured names.  One way to do this would be to "
37136 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37137 "aspect of grub.  Another way would be to use a structured type, equivalent "
37138 "to this OCaml type:"
37139 msgstr ""
37140
37141 #. type: verbatim
37142 #: ../src/guestfs.pod:890
37143 #, no-wrap
37144 msgid ""
37145 " type path = Path of string | Device of int | Partition of int * int\n"
37146 "\n"
37147 msgstr ""
37148
37149 #. type: textblock
37150 #: ../src/guestfs.pod:892
37151 msgid "which would allow you to pass arguments like:"
37152 msgstr ""
37153
37154 #. type: verbatim
37155 #: ../src/guestfs.pod:894
37156 #, no-wrap
37157 msgid ""
37158 " Path \"/foo/bar\"\n"
37159 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
37160 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37161 " Path \"/dev/sdb2\"    (* not a device *)\n"
37162 "\n"
37163 msgstr ""
37164
37165 #. type: textblock
37166 #: ../src/guestfs.pod:899
37167 msgid ""
37168 "As you can see there are still problems to resolve even with this "
37169 "representation.  Also consider how it might work in guestfish."
37170 msgstr ""
37171
37172 #. type: =head2
37173 #: ../src/guestfs.pod:904
37174 msgid "KEYS AND PASSPHRASES"
37175 msgstr "КЛЮЧІ І ПАРОЛІ"
37176
37177 #. type: textblock
37178 #: ../src/guestfs.pod:906
37179 msgid ""
37180 "Certain libguestfs calls take a parameter that contains sensitive key "
37181 "material, passed in as a C string."
37182 msgstr ""
37183
37184 #. type: textblock
37185 #: ../src/guestfs.pod:909
37186 msgid ""
37187 "In the future we would hope to change the libguestfs implementation so that "
37188 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37189 "swap.  However this is I<not> done at the moment, because of the complexity "
37190 "of such an implementation."
37191 msgstr ""
37192
37193 #. type: textblock
37194 #: ../src/guestfs.pod:914
37195 msgid ""
37196 "Therefore you should be aware that any key parameter you pass to libguestfs "
37197 "might end up being written out to the swap partition.  If this is a concern, "
37198 "scrub the swap partition or don't use libguestfs on encrypted devices."
37199 msgstr ""
37200
37201 #. type: =head2
37202 #: ../src/guestfs.pod:919
37203 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37204 msgstr ""
37205
37206 #. type: textblock
37207 #: ../src/guestfs.pod:921
37208 msgid ""
37209 "All high-level libguestfs actions are synchronous.  If you want to use "
37210 "libguestfs asynchronously then you must create a thread."
37211 msgstr ""
37212
37213 #. type: textblock
37214 #: ../src/guestfs.pod:924
37215 msgid ""
37216 "Only use the handle from a single thread.  Either use the handle exclusively "
37217 "from one thread, or provide your own mutex so that two threads cannot issue "
37218 "calls on the same handle at the same time."
37219 msgstr ""
37220
37221 #. type: textblock
37222 #: ../src/guestfs.pod:928
37223 msgid ""
37224 "See the graphical program guestfs-browser for one possible architecture for "
37225 "multithreaded programs using libvirt and libguestfs."
37226 msgstr ""
37227
37228 #. type: =head2
37229 #: ../src/guestfs.pod:931
37230 msgid "PATH"
37231 msgstr "ШЛЯХ"
37232
37233 #. type: textblock
37234 #: ../src/guestfs.pod:933
37235 msgid ""
37236 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37237 "internal path."
37238 msgstr ""
37239
37240 #. type: textblock
37241 #: ../src/guestfs.pod:936
37242 msgid ""
37243 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
37244 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37245 msgstr ""
37246
37247 #. type: textblock
37248 #: ../src/guestfs.pod:939
37249 msgid ""
37250 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
37251 "to change the directories that libguestfs will search in.  The value is a "
37252 "colon-separated list of paths.  The current directory is I<not> searched "
37253 "unless the path contains an empty element or C<.>.  For example "
37254 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37255 "then C</usr/lib/guestfs>."
37256 msgstr ""
37257
37258 #. type: =head2
37259 #: ../src/guestfs.pod:946
37260 msgid "QEMU WRAPPERS"
37261 msgstr ""
37262
37263 #. type: textblock
37264 #: ../src/guestfs.pod:948
37265 msgid ""
37266 "If you want to compile your own qemu, run qemu from a non-standard location, "
37267 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
37268 "around qemu."
37269 msgstr ""
37270
37271 #. type: textblock
37272 #: ../src/guestfs.pod:952
37273 msgid ""
37274 "There is one important rule to remember: you I<must C<exec qemu>> as the "
37275 "last command in the shell script (so that qemu replaces the shell and "
37276 "becomes the direct child of the libguestfs-using program).  If you don't do "
37277 "this, then the qemu process won't be cleaned up correctly."
37278 msgstr ""
37279
37280 #. type: textblock
37281 #: ../src/guestfs.pod:957
37282 msgid ""
37283 "Here is an example of a wrapper, where I have built my own copy of qemu from "
37284 "source:"
37285 msgstr ""
37286
37287 #. type: verbatim
37288 #: ../src/guestfs.pod:960
37289 #, no-wrap
37290 msgid ""
37291 " #!/bin/sh -\n"
37292 " qemudir=/home/rjones/d/qemu\n"
37293 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37294 "\n"
37295 msgstr ""
37296 " #!/bin/sh -\n"
37297 " qemudir=/home/rjones/d/qemu\n"
37298 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37299 "\n"
37300
37301 #. type: textblock
37302 #: ../src/guestfs.pod:964
37303 msgid ""
37304 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
37305 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
37306 "example:"
37307 msgstr ""
37308
37309 #. type: verbatim
37310 #: ../src/guestfs.pod:968
37311 #, no-wrap
37312 msgid ""
37313 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37314 "\n"
37315 msgstr ""
37316 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37317 "\n"
37318
37319 #. type: textblock
37320 #: ../src/guestfs.pod:970
37321 msgid ""
37322 "Note that libguestfs also calls qemu with the -help and -version options in "
37323 "order to determine features."
37324 msgstr ""
37325
37326 #. type: textblock
37327 #: ../src/guestfs.pod:973
37328 msgid ""
37329 "Wrappers can also be used to edit the options passed to qemu.  In the "
37330 "following example, the C<-machine ...> option (C<-machine> and the following "
37331 "argument) are removed from the command line and replaced with C<-machine pc,"
37332 "accel=tcg>.  The while loop iterates over the options until it finds the "
37333 "right one to remove, putting the remaining options into the C<args> array."
37334 msgstr ""
37335
37336 #. type: verbatim
37337 #: ../src/guestfs.pod:982
37338 #, no-wrap
37339 msgid ""
37340 " i=0\n"
37341 " while [ $# -gt 0 ]; do\n"
37342 "     case \"$1\" in\n"
37343 "     -machine)\n"
37344 "         shift 2;;\n"
37345 "     *)\n"
37346 "         args[i]=\"$1\"\n"
37347 "         (( i++ ))\n"
37348 "         shift ;;\n"
37349 "     esac\n"
37350 " done\n"
37351 " \n"
37352 msgstr ""
37353
37354 #. type: verbatim
37355 #: ../src/guestfs.pod:994
37356 #, no-wrap
37357 msgid ""
37358 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
37359 "\n"
37360 msgstr ""
37361
37362 #. type: =head2
37363 #: ../src/guestfs.pod:996
37364 msgid "ATTACHING TO RUNNING DAEMONS"
37365 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
37366
37367 #. type: textblock
37368 #: ../src/guestfs.pod:998
37369 msgid ""
37370 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
37371 "babies.  Use with caution."
37372 msgstr ""
37373
37374 #. type: textblock
37375 #: ../src/guestfs.pod:1001
37376 msgid ""
37377 "I<Note (2):> This section explains how to attach to a running daemon from a "
37378 "low level perspective.  For most users, simply using virt tools such as "
37379 "L<guestfish(1)> with the I<--live> option will \"just work\"."
37380 msgstr ""
37381
37382 #. type: =head3
37383 #: ../src/guestfs.pod:1005
37384 msgid "Using guestfs_set_attach_method"
37385 msgstr "За допомогою guestfs_set_attach_method"
37386
37387 #. type: textblock
37388 #: ../src/guestfs.pod:1007
37389 msgid ""
37390 "By calling L</guestfs_set_attach_method> you can change how the library "
37391 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
37392 "ARCHITECTURE> for some background)."
37393 msgstr ""
37394
37395 #. type: textblock
37396 #: ../src/guestfs.pod:1011
37397 msgid ""
37398 "The normal attach method is C<appliance>, where a small appliance is created "
37399 "containing the daemon, and then the library connects to this."
37400 msgstr ""
37401
37402 #. type: textblock
37403 #: ../src/guestfs.pod:1014
37404 msgid ""
37405 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
37406 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
37407 "daemon over the Unix domain socket."
37408 msgstr ""
37409
37410 #. type: textblock
37411 #: ../src/guestfs.pod:1018
37412 msgid ""
37413 "The normal use for this is to connect to a running virtual machine that "
37414 "contains a C<guestfsd> daemon, and send commands so you can read and write "
37415 "files inside the live virtual machine."
37416 msgstr ""
37417
37418 #. type: =head3
37419 #: ../src/guestfs.pod:1022
37420 msgid "Using guestfs_add_domain with live flag"
37421 msgstr "За допомогою guestfs_add_domain з прапорцем live"
37422
37423 #. type: textblock
37424 #: ../src/guestfs.pod:1024
37425 msgid ""
37426 "L</guestfs_add_domain> provides some help for getting the correct attach "
37427 "method.  If you pass the C<live> option to this function, then (if the "
37428 "virtual machine is running) it will examine the libvirt XML looking for a "
37429 "virtio-serial channel to connect to:"
37430 msgstr ""
37431
37432 #. type: verbatim
37433 #: ../src/guestfs.pod:1030
37434 #, no-wrap
37435 msgid ""
37436 " <domain>\n"
37437 "   ...\n"
37438 "   <devices>\n"
37439 "     ...\n"
37440 "     <channel type='unix'>\n"
37441 "       <source mode='bind' path='/path/to/socket'/>\n"
37442 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37443 "     </channel>\n"
37444 "     ...\n"
37445 "   </devices>\n"
37446 " </domain>\n"
37447 "\n"
37448 msgstr ""
37449 " <domain>\n"
37450 "   ...\n"
37451 "   <devices>\n"
37452 "     ...\n"
37453 "     <channel type='unix'>\n"
37454 "       <source mode='bind' path='/path/to/socket'/>\n"
37455 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37456 "     </channel>\n"
37457 "     ...\n"
37458 "   </devices>\n"
37459 " </domain>\n"
37460 "\n"
37461
37462 #. type: textblock
37463 #: ../src/guestfs.pod:1042
37464 msgid ""
37465 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
37466 "method to C<unix:/path/to/socket>."
37467 msgstr ""
37468
37469 #. type: textblock
37470 #: ../src/guestfs.pod:1045
37471 msgid ""
37472 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37473 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37474 "to attach to and modify live virtual machines."
37475 msgstr ""
37476
37477 #. type: textblock
37478 #: ../src/guestfs.pod:1049
37479 msgid ""
37480 "The virtual machine needs to have been set up beforehand so that it has the "
37481 "virtio-serial channel and so that guestfsd is running inside it."
37482 msgstr ""
37483
37484 #. type: =head2
37485 #: ../src/guestfs.pod:1053
37486 msgid "ABI GUARANTEE"
37487 msgstr "ГАРАНТІЯ ЩОДО ABI"
37488
37489 #. type: textblock
37490 #: ../src/guestfs.pod:1055
37491 msgid ""
37492 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37493 "actions as outlined in this section.  Although we will deprecate some "
37494 "actions, for example if they get replaced by newer calls, we will keep the "
37495 "old actions forever.  This allows you the developer to program in confidence "
37496 "against the libguestfs API."
37497 msgstr ""
37498
37499 #. type: =head2
37500 #: ../src/guestfs.pod:1061
37501 msgid "BLOCK DEVICE NAMING"
37502 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
37503
37504 #. type: textblock
37505 #: ../src/guestfs.pod:1063
37506 msgid ""
37507 "In the kernel there is now quite a profusion of schemata for naming block "
37508 "devices (in this context, by I<block device> I mean a physical or virtual "
37509 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
37510 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
37511 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
37512 "for the old IDE driver (particularly for SATA devices) those devices also "
37513 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
37514 "paravirtualized drivers.  This has created several different naming systems, "
37515 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
37516 msgstr ""
37517
37518 #. type: textblock
37519 #: ../src/guestfs.pod:1075
37520 msgid ""
37521 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37522 "Linux kernel to access block devices.  We can run a variety of appliances "
37523 "based on a variety of Linux kernels."
37524 msgstr ""
37525
37526 #. type: textblock
37527 #: ../src/guestfs.pod:1079
37528 msgid ""
37529 "This causes a problem for libguestfs because many API calls use device or "
37530 "partition names.  Working scripts and the recipe (example) scripts that we "
37531 "make available over the internet could fail if the naming scheme changes."
37532 msgstr ""
37533
37534 #. type: textblock
37535 #: ../src/guestfs.pod:1084
37536 msgid ""
37537 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
37538 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37539 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37540 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37541 msgstr ""
37542
37543 #. type: textblock
37544 #: ../src/guestfs.pod:1090
37545 msgid ""
37546 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
37547 "L</guestfs_list_partitions> and similar calls return the true names of the "
37548 "devices and partitions as known to the appliance."
37549 msgstr ""
37550
37551 #. type: =head3
37552 #: ../src/guestfs.pod:1095
37553 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37554 msgstr ""
37555
37556 #. type: textblock
37557 #: ../src/guestfs.pod:1097
37558 msgid ""
37559 "Usually this translation is transparent.  However in some (very rare)  cases "
37560 "you may need to know the exact algorithm.  Such cases include where you use "
37561 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37562 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37563 msgstr ""
37564
37565 #. type: textblock
37566 #: ../src/guestfs.pod:1103
37567 msgid ""
37568 "The algorithm is applied only to I<parameters> which are known to be either "
37569 "device or partition names.  Return values from functions such as L</"
37570 "guestfs_list_devices> are never changed."
37571 msgstr ""
37572
37573 #. type: textblock
37574 #: ../src/guestfs.pod:1111
37575 msgid "Is the string a parameter which is a device or partition name?"
37576 msgstr ""
37577
37578 #. type: textblock
37579 #: ../src/guestfs.pod:1115
37580 msgid "Does the string begin with C</dev/sd>?"
37581 msgstr "Чи починається рядок з C</dev/sd>?"
37582
37583 #. type: textblock
37584 #: ../src/guestfs.pod:1119
37585 msgid ""
37586 "Does the named device exist? If so, we use that device.  However if I<not> "
37587 "then we continue with this algorithm."
37588 msgstr ""
37589
37590 #. type: textblock
37591 #: ../src/guestfs.pod:1124
37592 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37593 msgstr ""
37594
37595 #. type: textblock
37596 #: ../src/guestfs.pod:1126
37597 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37598 msgstr ""
37599
37600 #. type: textblock
37601 #: ../src/guestfs.pod:1128
37602 msgid "If that named device exists, use it.  If not, continue."
37603 msgstr ""
37604
37605 #. type: textblock
37606 #: ../src/guestfs.pod:1132
37607 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37608 msgstr ""
37609
37610 #. type: textblock
37611 #: ../src/guestfs.pod:1134
37612 msgid "If that named device exists, use it.  If not, return an error."
37613 msgstr ""
37614
37615 #. type: =head3
37616 #: ../src/guestfs.pod:1138
37617 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37618 msgstr ""
37619
37620 #. type: textblock
37621 #: ../src/guestfs.pod:1140
37622 msgid ""
37623 "Although the standard naming scheme and automatic translation is useful for "
37624 "simple programs and guestfish scripts, for larger programs it is best not to "
37625 "rely on this mechanism."
37626 msgstr ""
37627
37628 #. type: textblock
37629 #: ../src/guestfs.pod:1144
37630 msgid ""
37631 "Where possible for maximum future portability programs using libguestfs "
37632 "should use these future-proof techniques:"
37633 msgstr ""
37634
37635 #. type: textblock
37636 #: ../src/guestfs.pod:1151
37637 msgid ""
37638 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37639 "device names, and then use those names directly."
37640 msgstr ""
37641
37642 #. type: textblock
37643 #: ../src/guestfs.pod:1154
37644 msgid ""
37645 "Since those device names exist by definition, they will never be translated."
37646 msgstr ""
37647
37648 #. type: textblock
37649 #: ../src/guestfs.pod:1159
37650 msgid ""
37651 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37652 "filesystem labels."
37653 msgstr ""
37654
37655 #. type: textblock
37656 #: ../src/guestfs.pod:1166
37657 msgid ""
37658 "This section discusses security implications of using libguestfs, "
37659 "particularly with untrusted or malicious guests or disk images."
37660 msgstr ""
37661
37662 #. type: =head2
37663 #: ../src/guestfs.pod:1169
37664 msgid "GENERAL SECURITY CONSIDERATIONS"
37665 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
37666
37667 #. type: textblock
37668 #: ../src/guestfs.pod:1171
37669 msgid ""
37670 "Be careful with any files or data that you download from a guest (by "
37671 "\"download\" we mean not just the L</guestfs_download> command but any "
37672 "command that reads files, filenames, directories or anything else from a "
37673 "disk image).  An attacker could manipulate the data to fool your program "
37674 "into doing the wrong thing.  Consider cases such as:"
37675 msgstr ""
37676
37677 #. type: textblock
37678 #: ../src/guestfs.pod:1181
37679 msgid "the data (file etc) not being present"
37680 msgstr ""
37681
37682 #. type: textblock
37683 #: ../src/guestfs.pod:1185
37684 msgid "being present but empty"
37685 msgstr ""
37686
37687 #. type: textblock
37688 #: ../src/guestfs.pod:1189
37689 msgid "being much larger than normal"
37690 msgstr ""
37691
37692 #. type: textblock
37693 #: ../src/guestfs.pod:1193
37694 msgid "containing arbitrary 8 bit data"
37695 msgstr ""
37696
37697 #. type: textblock
37698 #: ../src/guestfs.pod:1197
37699 msgid "being in an unexpected character encoding"
37700 msgstr ""
37701
37702 #. type: textblock
37703 #: ../src/guestfs.pod:1201
37704 msgid "containing homoglyphs."
37705 msgstr ""
37706
37707 #. type: =head2
37708 #: ../src/guestfs.pod:1205
37709 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37710 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
37711
37712 #. type: textblock
37713 #: ../src/guestfs.pod:1207
37714 msgid ""
37715 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37716 "(VFS) module can sometimes be escalated into exploits by deliberately "
37717 "creating a malicious, malformed filesystem.  These exploits are very severe "
37718 "for two reasons.  Firstly there are very many filesystem drivers in the "
37719 "kernel, and many of them are infrequently used and not much developer "
37720 "attention has been paid to the code.  Linux userspace helps potential "
37721 "crackers by detecting the filesystem type and automatically choosing the "
37722 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37723 "the administrator.  Secondly, a kernel-level exploit is like a local root "
37724 "exploit (worse in some ways), giving immediate and total access to the "
37725 "system right down to the hardware level."
37726 msgstr ""
37727
37728 #. type: textblock
37729 #: ../src/guestfs.pod:1220
37730 msgid ""
37731 "That explains why you should never mount a filesystem from an untrusted "
37732 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
37733 "inside a qemu virtual machine, usually running as a non-root user.  The "
37734 "attacker would need to write a filesystem which first exploited the kernel, "
37735 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37736 "the libguestfs protocol, and finally to be as serious as the host kernel "
37737 "exploit it would need to escalate its privileges to root.  This multi-step "
37738 "escalation, performed by a static piece of data, is thought to be extremely "
37739 "hard to do, although we never say 'never' about security issues."
37740 msgstr ""
37741
37742 #. type: textblock
37743 #: ../src/guestfs.pod:1231
37744 msgid ""
37745 "In any case callers can reduce the attack surface by forcing the filesystem "
37746 "type when mounting (use L</guestfs_mount_vfs>)."
37747 msgstr ""
37748
37749 #. type: =head2
37750 #: ../src/guestfs.pod:1234
37751 msgid "PROTOCOL SECURITY"
37752 msgstr "ЗАХИСТ ПРОТОКОЛУ"
37753
37754 #. type: textblock
37755 #: ../src/guestfs.pod:1236
37756 msgid ""
37757 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
37758 "defined upper message size.  However a program that uses libguestfs must "
37759 "also take care - for example you can write a program that downloads a binary "
37760 "from a disk image and executes it locally, and no amount of protocol "
37761 "security will save you from the consequences."
37762 msgstr ""
37763
37764 #. type: =head2
37765 #: ../src/guestfs.pod:1242
37766 msgid "INSPECTION SECURITY"
37767 msgstr ""
37768
37769 #. type: textblock
37770 #: ../src/guestfs.pod:1244
37771 msgid ""
37772 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37773 "directly from the guest, and these could contain any 8 bit data.  Callers "
37774 "should be careful to escape these before printing them to a structured file "
37775 "(for example, use HTML escaping if creating a web page)."
37776 msgstr ""
37777
37778 #. type: textblock
37779 #: ../src/guestfs.pod:1250
37780 msgid ""
37781 "Guest configuration may be altered in unusual ways by the administrator of "
37782 "the virtual machine, and may not reflect reality (particularly for untrusted "
37783 "or actively malicious guests).  For example we parse the hostname from "
37784 "configuration files like C</etc/sysconfig/network> that we find in the "
37785 "guest, but the guest administrator can easily manipulate these files to "
37786 "provide the wrong hostname."
37787 msgstr ""
37788
37789 #. type: textblock
37790 #: ../src/guestfs.pod:1258
37791 msgid ""
37792 "The inspection API parses guest configuration using two external libraries: "
37793 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
37794 "designed to be robust in the face of malicious data, although denial of "
37795 "service attacks are still possible, for example with oversized configuration "
37796 "files."
37797 msgstr ""
37798
37799 #. type: =head2
37800 #: ../src/guestfs.pod:1264
37801 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37802 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
37803
37804 #. type: textblock
37805 #: ../src/guestfs.pod:1266
37806 msgid ""
37807 "Be very cautious about running commands from the guest.  By running a "
37808 "command in the guest, you are giving CPU time to a binary that you do not "
37809 "control, under the same user account as the library, albeit wrapped in qemu "
37810 "virtualization.  More information and alternatives can be found in the "
37811 "section L</RUNNING COMMANDS>."
37812 msgstr ""
37813
37814 #. type: =head2
37815 #: ../src/guestfs.pod:1272
37816 msgid "CVE-2010-3851"
37817 msgstr "CVE-2010-3851"
37818
37819 #. type: textblock
37820 #: ../src/guestfs.pod:1274
37821 msgid "https://bugzilla.redhat.com/642934"
37822 msgstr "https://bugzilla.redhat.com/642934"
37823
37824 #. type: textblock
37825 #: ../src/guestfs.pod:1276
37826 msgid ""
37827 "This security bug concerns the automatic disk format detection that qemu "
37828 "does on disk images."
37829 msgstr ""
37830
37831 #. type: textblock
37832 #: ../src/guestfs.pod:1279
37833 msgid ""
37834 "A raw disk image is just the raw bytes, there is no header.  Other disk "
37835 "images like qcow2 contain a special header.  Qemu deals with this by looking "
37836 "for one of the known headers, and if none is found then assuming the disk "
37837 "image must be raw."
37838 msgstr ""
37839
37840 #. type: textblock
37841 #: ../src/guestfs.pod:1284
37842 msgid ""
37843 "This allows a guest which has been given a raw disk image to write some "
37844 "other header.  At next boot (or when the disk image is accessed by "
37845 "libguestfs) qemu would do autodetection and think the disk image format was, "
37846 "say, qcow2 based on the header written by the guest."
37847 msgstr ""
37848
37849 #. type: textblock
37850 #: ../src/guestfs.pod:1289
37851 msgid ""
37852 "This in itself would not be a problem, but qcow2 offers many features, one "
37853 "of which is to allow a disk image to refer to another image (called the "
37854 "\"backing disk\").  It does this by placing the path to the backing disk "
37855 "into the qcow2 header.  This path is not validated and could point to any "
37856 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
37857 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37858 "control of the attacker."
37859 msgstr ""
37860
37861 #. type: textblock
37862 #: ../src/guestfs.pod:1297
37863 msgid ""
37864 "In libguestfs this is rather hard to exploit except under two circumstances:"
37865 msgstr ""
37866
37867 #. type: textblock
37868 #: ../src/guestfs.pod:1304
37869 msgid "You have enabled the network or have opened the disk in write mode."
37870 msgstr ""
37871
37872 #. type: textblock
37873 #: ../src/guestfs.pod:1308
37874 msgid ""
37875 "You are also running untrusted code from the guest (see L</RUNNING "
37876 "COMMANDS>)."
37877 msgstr ""
37878
37879 #. type: textblock
37880 #: ../src/guestfs.pod:1313
37881 msgid ""
37882 "The way to avoid this is to specify the expected disk format when adding "
37883 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
37884 "should always do this if the disk is raw format, and it's a good idea for "
37885 "other cases too."
37886 msgstr ""
37887
37888 #. type: textblock
37889 #: ../src/guestfs.pod:1318
37890 msgid ""
37891 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37892 "format is fetched from libvirt and passed through."
37893 msgstr ""
37894
37895 #. type: textblock
37896 #: ../src/guestfs.pod:1321
37897 msgid ""
37898 "For libguestfs tools, use the I<--format> command line parameter as "
37899 "appropriate."
37900 msgstr ""
37901
37902 #. type: =head1
37903 #: ../src/guestfs.pod:1324
37904 msgid "CONNECTION MANAGEMENT"
37905 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
37906
37907 #. type: =head2
37908 #: ../src/guestfs.pod:1326
37909 msgid "guestfs_h *"
37910 msgstr "guestfs_h *"
37911
37912 #. type: textblock
37913 #: ../src/guestfs.pod:1328
37914 msgid ""
37915 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
37916 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
37917 "handle and release all resources used."
37918 msgstr ""
37919
37920 #. type: textblock
37921 #: ../src/guestfs.pod:1332
37922 msgid ""
37923 "For information on using multiple handles and threads, see the section L</"
37924 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37925 msgstr ""
37926
37927 #. type: =head2
37928 #: ../src/guestfs.pod:1335
37929 msgid "guestfs_create"
37930 msgstr "guestfs_create"
37931
37932 #. type: verbatim
37933 #: ../src/guestfs.pod:1337
37934 #, no-wrap
37935 msgid ""
37936 " guestfs_h *guestfs_create (void);\n"
37937 "\n"
37938 msgstr ""
37939 " guestfs_h *guestfs_create (void);\n"
37940 "\n"
37941
37942 #. type: textblock
37943 #: ../src/guestfs.pod:1339
37944 msgid "Create a connection handle."
37945 msgstr "Створити дескриптор з’єднання."
37946
37947 #. type: textblock
37948 #: ../src/guestfs.pod:1341
37949 msgid ""
37950 "On success this returns a non-NULL pointer to a handle.  On error it returns "
37951 "NULL."
37952 msgstr ""
37953
37954 #. type: textblock
37955 #: ../src/guestfs.pod:1344
37956 msgid ""
37957 "You have to \"configure\" the handle after creating it.  This includes "
37958 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37959 "handle at least once."
37960 msgstr ""
37961
37962 #. type: textblock
37963 #: ../src/guestfs.pod:1348
37964 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37965 msgstr ""
37966
37967 #. type: textblock
37968 #: ../src/guestfs.pod:1350
37969 msgid ""
37970 "You may also want to configure error handling for the handle.  See the L</"
37971 "ERROR HANDLING> section below."
37972 msgstr ""
37973
37974 #. type: =head2
37975 #: ../src/guestfs.pod:1353
37976 msgid "guestfs_close"
37977 msgstr "guestfs_close"
37978
37979 #. type: verbatim
37980 #: ../src/guestfs.pod:1355
37981 #, no-wrap
37982 msgid ""
37983 " void guestfs_close (guestfs_h *g);\n"
37984 "\n"
37985 msgstr ""
37986 " void guestfs_close (guestfs_h *g);\n"
37987 "\n"
37988
37989 #. type: textblock
37990 #: ../src/guestfs.pod:1357
37991 msgid "This closes the connection handle and frees up all resources used."
37992 msgstr ""
37993
37994 #. type: textblock
37995 #: ../src/guestfs.pod:1359
37996 msgid ""
37997 "If autosync was set on the handle and the handle was launched, then this "
37998 "implicitly calls various functions to unmount filesystems and sync the "
37999 "disk.  See L</guestfs_set_autosync> for more details."
38000 msgstr ""
38001
38002 #. type: textblock
38003 #: ../src/guestfs.pod:1363
38004 msgid "If a close callback was set on the handle, then it is called."
38005 msgstr ""
38006
38007 #. type: =head1
38008 #: ../src/guestfs.pod:1365
38009 msgid "ERROR HANDLING"
38010 msgstr "ОБРОБКА ПОМИЛОК"
38011
38012 #. type: textblock
38013 #: ../src/guestfs.pod:1367
38014 msgid ""
38015 "API functions can return errors.  For example, almost all functions that "
38016 "return C<int> will return C<-1> to indicate an error."
38017 msgstr ""
38018
38019 #. type: textblock
38020 #: ../src/guestfs.pod:1370
38021 msgid ""
38022 "Additional information is available for errors: an error message string and "
38023 "optionally an error number (errno) if the thing that failed was a system "
38024 "call."
38025 msgstr ""
38026
38027 #. type: textblock
38028 #: ../src/guestfs.pod:1374
38029 msgid ""
38030 "You can get at the additional information about the last error on the handle "
38031 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
38032 "up an error handler with L</guestfs_set_error_handler>."
38033 msgstr ""
38034
38035 #. type: textblock
38036 #: ../src/guestfs.pod:1379
38037 msgid ""
38038 "When the handle is created, a default error handler is installed which "
38039 "prints the error message string to C<stderr>.  For small short-running "
38040 "command line programs it is sufficient to do:"
38041 msgstr ""
38042
38043 #. type: verbatim
38044 #: ../src/guestfs.pod:1383
38045 #, no-wrap
38046 msgid ""
38047 " if (guestfs_launch (g) == -1)\n"
38048 "   exit (EXIT_FAILURE);\n"
38049 "\n"
38050 msgstr ""
38051 " if (guestfs_launch (g) == -1)\n"
38052 "   exit (EXIT_FAILURE);\n"
38053 "\n"
38054
38055 #. type: textblock
38056 #: ../src/guestfs.pod:1386
38057 msgid ""
38058 "since the default error handler will ensure that an error message has been "
38059 "printed to C<stderr> before the program exits."
38060 msgstr ""
38061
38062 #. type: textblock
38063 #: ../src/guestfs.pod:1389
38064 msgid ""
38065 "For other programs the caller will almost certainly want to install an "
38066 "alternate error handler or do error handling in-line like this:"
38067 msgstr ""
38068
38069 #. type: verbatim
38070 #: ../src/guestfs.pod:1392
38071 #, no-wrap
38072 msgid ""
38073 " /* This disables the default behaviour of printing errors\n"
38074 "    on stderr. */\n"
38075 " guestfs_set_error_handler (g, NULL, NULL);\n"
38076 " \n"
38077 msgstr ""
38078
38079 #. type: verbatim
38080 #: ../src/guestfs.pod:1396
38081 #, no-wrap
38082 msgid ""
38083 " if (guestfs_launch (g) == -1) {\n"
38084 "   /* Examine the error message and print it etc. */\n"
38085 "   char *msg = guestfs_last_error (g);\n"
38086 "   int errnum = guestfs_last_errno (g);\n"
38087 "   fprintf (stderr, \"%s\", msg);\n"
38088 "   if (errnum != 0)\n"
38089 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
38090 "   fprintf (stderr, \"\\n\");\n"
38091 "   /* ... */\n"
38092 " }\n"
38093 "\n"
38094 msgstr ""
38095
38096 #. type: textblock
38097 #: ../src/guestfs.pod:1407
38098 msgid ""
38099 "Out of memory errors are handled differently.  The default action is to call "
38100 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
38101 "guestfs_set_out_of_memory_handler>."
38102 msgstr ""
38103
38104 #. type: textblock
38105 #: ../src/guestfs.pod:1411
38106 msgid ""
38107 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38108 "because there is no handle if this happens there is no way to get additional "
38109 "error information.  However L</guestfs_create> is supposed to be a "
38110 "lightweight operation which can only fail because of insufficient memory (it "
38111 "returns NULL in this case)."
38112 msgstr ""
38113
38114 #. type: =head2
38115 #: ../src/guestfs.pod:1417
38116 msgid "guestfs_last_error"
38117 msgstr "guestfs_last_error"
38118
38119 #. type: verbatim
38120 #: ../src/guestfs.pod:1419
38121 #, no-wrap
38122 msgid ""
38123 " const char *guestfs_last_error (guestfs_h *g);\n"
38124 "\n"
38125 msgstr ""
38126 " const char *guestfs_last_error (guestfs_h *g);\n"
38127 "\n"
38128
38129 #. type: textblock
38130 #: ../src/guestfs.pod:1421
38131 msgid ""
38132 "This returns the last error message that happened on C<g>.  If there has not "
38133 "been an error since the handle was created, then this returns C<NULL>."
38134 msgstr ""
38135
38136 #. type: textblock
38137 #: ../src/guestfs.pod:1425
38138 msgid ""
38139 "The lifetime of the returned string is until the next error occurs, or L</"
38140 "guestfs_close> is called."
38141 msgstr ""
38142
38143 #. type: =head2
38144 #: ../src/guestfs.pod:1428
38145 msgid "guestfs_last_errno"
38146 msgstr "guestfs_last_errno"
38147
38148 #. type: verbatim
38149 #: ../src/guestfs.pod:1430
38150 #, no-wrap
38151 msgid ""
38152 " int guestfs_last_errno (guestfs_h *g);\n"
38153 "\n"
38154 msgstr ""
38155 " int guestfs_last_errno (guestfs_h *g);\n"
38156 "\n"
38157
38158 #. type: textblock
38159 #: ../src/guestfs.pod:1432
38160 msgid "This returns the last error number (errno) that happened on C<g>."
38161 msgstr ""
38162
38163 #. type: textblock
38164 #: ../src/guestfs.pod:1434
38165 msgid "If successful, an errno integer not equal to zero is returned."
38166 msgstr ""
38167
38168 #. type: textblock
38169 #: ../src/guestfs.pod:1436
38170 msgid ""
38171 "If no error, this returns 0.  This call can return 0 in three situations:"
38172 msgstr ""
38173
38174 #. type: textblock
38175 #: ../src/guestfs.pod:1443
38176 msgid "There has not been any error on the handle."
38177 msgstr ""
38178
38179 #. type: textblock
38180 #: ../src/guestfs.pod:1447
38181 msgid ""
38182 "There has been an error but the errno was meaningless.  This corresponds to "
38183 "the case where the error did not come from a failed system call, but for "
38184 "some other reason."
38185 msgstr ""
38186
38187 #. type: textblock
38188 #: ../src/guestfs.pod:1453
38189 msgid ""
38190 "There was an error from a failed system call, but for some reason the errno "
38191 "was not captured and returned.  This usually indicates a bug in libguestfs."
38192 msgstr ""
38193
38194 #. type: textblock
38195 #: ../src/guestfs.pod:1459
38196 msgid ""
38197 "Libguestfs tries to convert the errno from inside the applicance into a "
38198 "corresponding errno for the caller (not entirely trivial: the appliance "
38199 "might be running a completely different operating system from the library "
38200 "and error numbers are not standardized across Un*xen).  If this could not be "
38201 "done, then the error is translated to C<EINVAL>.  In practice this should "
38202 "only happen in very rare circumstances."
38203 msgstr ""
38204
38205 #. type: =head2
38206 #: ../src/guestfs.pod:1467
38207 msgid "guestfs_set_error_handler"
38208 msgstr "guestfs_set_error_handler"
38209
38210 #. type: verbatim
38211 #: ../src/guestfs.pod:1469
38212 #, no-wrap
38213 msgid ""
38214 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38215 "                                           void *opaque,\n"
38216 "                                           const char *msg);\n"
38217 " void guestfs_set_error_handler (guestfs_h *g,\n"
38218 "                                 guestfs_error_handler_cb cb,\n"
38219 "                                 void *opaque);\n"
38220 "\n"
38221 msgstr ""
38222 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38223 "                                           void *opaque,\n"
38224 "                                           const char *msg);\n"
38225 " void guestfs_set_error_handler (guestfs_h *g,\n"
38226 "                                 guestfs_error_handler_cb cb,\n"
38227 "                                 void *opaque);\n"
38228 "\n"
38229
38230 #. type: textblock
38231 #: ../src/guestfs.pod:1476
38232 msgid ""
38233 "The callback C<cb> will be called if there is an error.  The parameters "
38234 "passed to the callback are an opaque data pointer and the error message "
38235 "string."
38236 msgstr ""
38237
38238 #. type: textblock
38239 #: ../src/guestfs.pod:1480
38240 msgid ""
38241 "C<errno> is not passed to the callback.  To get that the callback must call "
38242 "L</guestfs_last_errno>."
38243 msgstr ""
38244
38245 #. type: textblock
38246 #: ../src/guestfs.pod:1483
38247 msgid ""
38248 "Note that the message string C<msg> is freed as soon as the callback "
38249 "function returns, so if you want to stash it somewhere you must make your "
38250 "own copy."
38251 msgstr ""
38252
38253 #. type: textblock
38254 #: ../src/guestfs.pod:1487
38255 msgid "The default handler prints messages on C<stderr>."
38256 msgstr ""
38257
38258 #. type: textblock
38259 #: ../src/guestfs.pod:1489
38260 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38261 msgstr ""
38262
38263 #. type: =head2
38264 #: ../src/guestfs.pod:1491
38265 msgid "guestfs_get_error_handler"
38266 msgstr "guestfs_get_error_handler"
38267
38268 #. type: verbatim
38269 #: ../src/guestfs.pod:1493
38270 #, no-wrap
38271 msgid ""
38272 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38273 "                                                     void **opaque_rtn);\n"
38274 "\n"
38275 msgstr ""
38276 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38277 "                                                     void **opaque_rtn);\n"
38278 "\n"
38279
38280 #. type: textblock
38281 #: ../src/guestfs.pod:1496
38282 msgid "Returns the current error handler callback."
38283 msgstr ""
38284
38285 #. type: =head2
38286 #: ../src/guestfs.pod:1498
38287 msgid "guestfs_set_out_of_memory_handler"
38288 msgstr "guestfs_set_out_of_memory_handler"
38289
38290 #. type: verbatim
38291 #: ../src/guestfs.pod:1500
38292 #, no-wrap
38293 msgid ""
38294 " typedef void (*guestfs_abort_cb) (void);\n"
38295 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38296 "                                         guestfs_abort_cb);\n"
38297 "\n"
38298 msgstr ""
38299
38300 #. type: textblock
38301 #: ../src/guestfs.pod:1504
38302 msgid ""
38303 "The callback C<cb> will be called if there is an out of memory situation.  "
38304 "I<Note this callback must not return>."
38305 msgstr ""
38306
38307 #. type: textblock
38308 #: ../src/guestfs.pod:1507
38309 msgid "The default is to call L<abort(3)>."
38310 msgstr ""
38311
38312 #. type: textblock
38313 #: ../src/guestfs.pod:1509
38314 msgid ""
38315 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
38316 msgstr ""
38317
38318 #. type: =head2
38319 #: ../src/guestfs.pod:1512
38320 msgid "guestfs_get_out_of_memory_handler"
38321 msgstr "guestfs_get_out_of_memory_handler"
38322
38323 #. type: verbatim
38324 #: ../src/guestfs.pod:1514
38325 #, no-wrap
38326 msgid ""
38327 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38328 "\n"
38329 msgstr ""
38330 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38331 "\n"
38332
38333 #. type: textblock
38334 #: ../src/guestfs.pod:1516
38335 msgid "This returns the current out of memory handler."
38336 msgstr ""
38337
38338 #. type: =head1
38339 #: ../src/guestfs.pod:1518
38340 msgid "API CALLS"
38341 msgstr "ВИКЛИКИ API"
38342
38343 #. type: =head1
38344 #: ../src/guestfs.pod:1522
38345 msgid "STRUCTURES"
38346 msgstr "СТРУКТУРИ"
38347
38348 #. type: textblock
38349 #: ../src/guestfs.pod:1524
38350 msgid "@STRUCTS@"
38351 msgstr "@STRUCTS@"
38352
38353 #. type: =head1
38354 #: ../src/guestfs.pod:1526
38355 msgid "AVAILABILITY"
38356 msgstr "ДОСТУПНІСТЬ"
38357
38358 #. type: =head2
38359 #: ../src/guestfs.pod:1528
38360 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
38361 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
38362
38363 #. type: textblock
38364 #: ../src/guestfs.pod:1530
38365 msgid ""
38366 "Using L</guestfs_available> you can test availability of the following "
38367 "groups of functions.  This test queries the appliance to see if the "
38368 "appliance you are currently using supports the functionality."
38369 msgstr ""
38370
38371 #. type: textblock
38372 #: ../src/guestfs.pod:1535
38373 msgid "@AVAILABILITY@"
38374 msgstr "@AVAILABILITY@"
38375
38376 #. type: =head2
38377 #: ../src/guestfs.pod:1537
38378 msgid "GUESTFISH supported COMMAND"
38379 msgstr ""
38380
38381 #. type: textblock
38382 #: ../src/guestfs.pod:1539
38383 msgid ""
38384 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
38385 "prints out the available groups and whether they are supported by this build "
38386 "of libguestfs.  Note however that you have to do C<run> first."
38387 msgstr ""
38388
38389 #. type: =head2
38390 #: ../src/guestfs.pod:1544
38391 msgid "SINGLE CALLS AT COMPILE TIME"
38392 msgstr ""
38393
38394 #. type: textblock
38395 #: ../src/guestfs.pod:1546
38396 msgid ""
38397 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
38398 "function, such as:"
38399 msgstr ""
38400
38401 #. type: verbatim
38402 #: ../src/guestfs.pod:1549
38403 #, no-wrap
38404 msgid ""
38405 " #define LIBGUESTFS_HAVE_DD 1\n"
38406 "\n"
38407 msgstr ""
38408 " #define LIBGUESTFS_HAVE_DD 1\n"
38409 "\n"
38410
38411 #. type: textblock
38412 #: ../src/guestfs.pod:1551
38413 msgid "if L</guestfs_dd> is available."
38414 msgstr ""
38415
38416 #. type: textblock
38417 #: ../src/guestfs.pod:1553
38418 msgid ""
38419 "Before version 1.5.8, if you needed to test whether a single libguestfs "
38420 "function is available at compile time, we recommended using build tools such "
38421 "as autoconf or cmake.  For example in autotools you could use:"
38422 msgstr ""
38423
38424 #. type: verbatim
38425 #: ../src/guestfs.pod:1558
38426 #, no-wrap
38427 msgid ""
38428 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38429 " AC_CHECK_FUNCS([guestfs_dd])\n"
38430 "\n"
38431 msgstr ""
38432 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38433 " AC_CHECK_FUNCS([guestfs_dd])\n"
38434 "\n"
38435
38436 #. type: textblock
38437 #: ../src/guestfs.pod:1561
38438 msgid ""
38439 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
38440 "in your program."
38441 msgstr ""
38442
38443 #. type: =head2
38444 #: ../src/guestfs.pod:1564
38445 msgid "SINGLE CALLS AT RUN TIME"
38446 msgstr ""
38447
38448 #. type: textblock
38449 #: ../src/guestfs.pod:1566
38450 msgid ""
38451 "Testing at compile time doesn't guarantee that a function really exists in "
38452 "the library.  The reason is that you might be dynamically linked against a "
38453 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
38454 "This situation unfortunately results in a segmentation fault, which is a "
38455 "shortcoming of the C dynamic linking system itself."
38456 msgstr ""
38457
38458 #. type: textblock
38459 #: ../src/guestfs.pod:1573
38460 msgid ""
38461 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38462 "in this example program (note that you still need the compile time check as "
38463 "well):"
38464 msgstr ""
38465
38466 #. type: verbatim
38467 #: ../src/guestfs.pod:1577
38468 #, no-wrap
38469 msgid ""
38470 " #include <stdio.h>\n"
38471 " #include <stdlib.h>\n"
38472 " #include <unistd.h>\n"
38473 " #include <dlfcn.h>\n"
38474 " #include <guestfs.h>\n"
38475 " \n"
38476 msgstr ""
38477 " #include <stdio.h>\n"
38478 " #include <stdlib.h>\n"
38479 " #include <unistd.h>\n"
38480 " #include <dlfcn.h>\n"
38481 " #include <guestfs.h>\n"
38482 " \n"
38483
38484 #. type: verbatim
38485 #: ../src/guestfs.pod:1583
38486 #, no-wrap
38487 msgid ""
38488 " main ()\n"
38489 " {\n"
38490 " #ifdef LIBGUESTFS_HAVE_DD\n"
38491 "   void *dl;\n"
38492 "   int has_function;\n"
38493 " \n"
38494 msgstr ""
38495 " main ()\n"
38496 " {\n"
38497 " #ifdef LIBGUESTFS_HAVE_DD\n"
38498 "   void *dl;\n"
38499 "   int has_function;\n"
38500 " \n"
38501
38502 #. type: verbatim
38503 #: ../src/guestfs.pod:1589
38504 #, no-wrap
38505 msgid ""
38506 "   /* Test if the function guestfs_dd is really available. */\n"
38507 "   dl = dlopen (NULL, RTLD_LAZY);\n"
38508 "   if (!dl) {\n"
38509 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38510 "     exit (EXIT_FAILURE);\n"
38511 "   }\n"
38512 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38513 "   dlclose (dl);\n"
38514 " \n"
38515 msgstr ""
38516
38517 #. type: verbatim
38518 #: ../src/guestfs.pod:1598
38519 #, no-wrap
38520 msgid ""
38521 "   if (!has_function)\n"
38522 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38523 "   else {\n"
38524 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38525 "     /* Now it's safe to call\n"
38526 "     guestfs_dd (g, \"foo\", \"bar\");\n"
38527 "     */\n"
38528 "   }\n"
38529 " #else\n"
38530 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38531 " #endif\n"
38532 "  }\n"
38533 "\n"
38534 msgstr ""
38535
38536 #. type: textblock
38537 #: ../src/guestfs.pod:1611
38538 msgid ""
38539 "You may think the above is an awful lot of hassle, and it is.  There are "
38540 "other ways outside of the C linking system to ensure that this kind of "
38541 "incompatibility never arises, such as using package versioning:"
38542 msgstr ""
38543
38544 #. type: verbatim
38545 #: ../src/guestfs.pod:1616
38546 #, no-wrap
38547 msgid ""
38548 " Requires: libguestfs >= 1.0.80\n"
38549 "\n"
38550 msgstr ""
38551
38552 #. type: =head1
38553 #: ../src/guestfs.pod:1618
38554 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38555 msgstr ""
38556
38557 #. type: textblock
38558 #: ../src/guestfs.pod:1620
38559 msgid ""
38560 "A recent feature of the API is the introduction of calls which take optional "
38561 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
38562 "takes variable arguments (ie. C<...>), as in this example:"
38563 msgstr ""
38564
38565 #. type: verbatim
38566 #: ../src/guestfs.pod:1625
38567 #, no-wrap
38568 msgid ""
38569 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38570 "\n"
38571 msgstr ""
38572 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38573 "\n"
38574
38575 #. type: textblock
38576 #: ../src/guestfs.pod:1627
38577 msgid ""
38578 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
38579 "call with no optional arguments specified:"
38580 msgstr ""
38581
38582 #. type: verbatim
38583 #: ../src/guestfs.pod:1630
38584 #, no-wrap
38585 msgid ""
38586 " guestfs_add_drive_opts (g, filename, -1);\n"
38587 "\n"
38588 msgstr ""
38589 " guestfs_add_drive_opts (g, filename, -1);\n"
38590 "\n"
38591
38592 #. type: textblock
38593 #: ../src/guestfs.pod:1632
38594 msgid "With a single optional argument:"
38595 msgstr ""
38596
38597 #. type: verbatim
38598 #: ../src/guestfs.pod:1634
38599 #, no-wrap
38600 msgid ""
38601 " guestfs_add_drive_opts (g, filename,\n"
38602 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38603 "                         -1);\n"
38604 "\n"
38605 msgstr ""
38606 " guestfs_add_drive_opts (g, filename,\n"
38607 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38608 "                         -1);\n"
38609 "\n"
38610
38611 #. type: textblock
38612 #: ../src/guestfs.pod:1638
38613 msgid "With two:"
38614 msgstr ""
38615
38616 #. type: verbatim
38617 #: ../src/guestfs.pod:1640
38618 #, no-wrap
38619 msgid ""
38620 " guestfs_add_drive_opts (g, filename,\n"
38621 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38622 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38623 "                         -1);\n"
38624 "\n"
38625 msgstr ""
38626 " guestfs_add_drive_opts (g, filename,\n"
38627 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38628 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38629 "                         -1);\n"
38630 "\n"
38631
38632 #. type: textblock
38633 #: ../src/guestfs.pod:1645
38634 msgid ""
38635 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
38636 "happen!"
38637 msgstr ""
38638
38639 #. type: =head2
38640 #: ../src/guestfs.pod:1648
38641 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38642 msgstr ""
38643
38644 #. type: textblock
38645 #: ../src/guestfs.pod:1650
38646 msgid ""
38647 "The second variant has the same name with the suffix C<_va>, which works the "
38648 "same way but takes a C<va_list>.  See the C manual for details.  For the "
38649 "example function, this is declared:"
38650 msgstr ""
38651
38652 #. type: verbatim
38653 #: ../src/guestfs.pod:1654
38654 #, no-wrap
38655 msgid ""
38656 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38657 "                                va_list args);\n"
38658 "\n"
38659 msgstr ""
38660 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38661 "                                va_list args);\n"
38662 "\n"
38663
38664 #. type: =head2
38665 #: ../src/guestfs.pod:1657
38666 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38667 msgstr ""
38668
38669 #. type: textblock
38670 #: ../src/guestfs.pod:1659
38671 msgid ""
38672 "The third variant is useful where you need to construct these calls.  You "
38673 "pass in a structure where you fill in the optional fields.  The structure "
38674 "has a bitmask as the first element which you must set to indicate which "
38675 "fields you have filled in.  For our example function the structure and call "
38676 "are declared:"
38677 msgstr ""
38678
38679 #. type: verbatim
38680 #: ../src/guestfs.pod:1665
38681 #, no-wrap
38682 msgid ""
38683 " struct guestfs_add_drive_opts_argv {\n"
38684 "   uint64_t bitmask;\n"
38685 "   int readonly;\n"
38686 "   const char *format;\n"
38687 "   /* ... */\n"
38688 " };\n"
38689 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38690 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38691 "\n"
38692 msgstr ""
38693 " struct guestfs_add_drive_opts_argv {\n"
38694 "   uint64_t bitmask;\n"
38695 "   int readonly;\n"
38696 "   const char *format;\n"
38697 "   /* ... */\n"
38698 " };\n"
38699 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38700 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38701 "\n"
38702
38703 #. type: textblock
38704 #: ../src/guestfs.pod:1674
38705 msgid "You could call it like this:"
38706 msgstr ""
38707
38708 #. type: verbatim
38709 #: ../src/guestfs.pod:1676
38710 #, no-wrap
38711 msgid ""
38712 " struct guestfs_add_drive_opts_argv optargs = {\n"
38713 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38714 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38715 "   .readonly = 1,\n"
38716 "   .format = \"qcow2\"\n"
38717 " };\n"
38718 " \n"
38719 msgstr ""
38720 " struct guestfs_add_drive_opts_argv optargs = {\n"
38721 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38722 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38723 "   .readonly = 1,\n"
38724 "   .format = \"qcow2\"\n"
38725 " };\n"
38726 " \n"
38727
38728 #. type: verbatim
38729 #: ../src/guestfs.pod:1683
38730 #, no-wrap
38731 msgid ""
38732 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38733 "\n"
38734 msgstr ""
38735 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38736 "\n"
38737
38738 #. type: textblock
38739 #: ../src/guestfs.pod:1691
38740 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38741 msgstr ""
38742
38743 #. type: textblock
38744 #: ../src/guestfs.pod:1696
38745 msgid "You do not need to fill in all fields of the structure."
38746 msgstr ""
38747
38748 #. type: textblock
38749 #: ../src/guestfs.pod:1700
38750 msgid ""
38751 "There must be a one-to-one correspondence between fields of the structure "
38752 "that are filled in, and bits set in the bitmask."
38753 msgstr ""
38754
38755 #. type: =head2
38756 #: ../src/guestfs.pod:1705
38757 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38758 msgstr ""
38759
38760 #. type: textblock
38761 #: ../src/guestfs.pod:1707
38762 msgid ""
38763 "In other languages, optional arguments are expressed in the way that is "
38764 "natural for that language.  We refer you to the language-specific "
38765 "documentation for more details on that."
38766 msgstr ""
38767
38768 #. type: textblock
38769 #: ../src/guestfs.pod:1711
38770 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38771 msgstr ""
38772
38773 #. type: =head2
38774 #: ../src/guestfs.pod:1713
38775 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38776 msgstr ""
38777
38778 #. type: textblock
38779 #: ../src/guestfs.pod:1715
38780 msgid ""
38781 "B<Note:> This section documents the generic event mechanism introduced in "
38782 "libguestfs 1.10, which you should use in new code if possible.  The old "
38783 "functions C<guestfs_set_log_message_callback>, "
38784 "C<guestfs_set_subprocess_quit_callback>, "
38785 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38786 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38787 "page.  Because of the ABI guarantee, the old functions continue to work."
38788 msgstr ""
38789
38790 #. type: textblock
38791 #: ../src/guestfs.pod:1724
38792 msgid ""
38793 "Handles generate events when certain things happen, such as log messages "
38794 "being generated, progress messages during long-running operations, or the "
38795 "handle being closed.  The API calls described below let you register a "
38796 "callback to be called when events happen.  You can register multiple "
38797 "callbacks (for the same, different or overlapping sets of events), and "
38798 "individually remove callbacks.  If callbacks are not removed, then they "
38799 "remain in force until the handle is closed."
38800 msgstr ""
38801
38802 #. type: textblock
38803 #: ../src/guestfs.pod:1732
38804 msgid ""
38805 "In the current implementation, events are only generated synchronously: that "
38806 "means that events (and hence callbacks) can only happen while you are in the "
38807 "middle of making another libguestfs call.  The callback is called in the "
38808 "same thread."
38809 msgstr ""
38810
38811 #. type: textblock
38812 #: ../src/guestfs.pod:1737
38813 msgid ""
38814 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38815 "unsigned integers, or a message buffer.  Payloads are discussed later on."
38816 msgstr ""
38817
38818 #. type: =head3
38819 #: ../src/guestfs.pod:1741
38820 msgid "CLASSES OF EVENTS"
38821 msgstr ""
38822
38823 #. type: =item
38824 #: ../src/guestfs.pod:1745
38825 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38826 msgstr ""
38827
38828 #. type: textblock
38829 #: ../src/guestfs.pod:1748
38830 msgid ""
38831 "The callback function will be called while the handle is being closed "
38832 "(synchronously from L</guestfs_close>)."
38833 msgstr ""
38834
38835 #. type: textblock
38836 #: ../src/guestfs.pod:1751
38837 msgid ""
38838 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38839 "handles that are open when the program exits.  This means that this callback "
38840 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38841 "problems in higher-level languages (eg. if your HLL interpreter has already "
38842 "been cleaned up by the time this is called, and if your callback then jumps "
38843 "into some HLL function)."
38844 msgstr ""
38845
38846 #. type: textblock
38847 #: ../src/guestfs.pod:1758
38848 msgid ""
38849 "If no callback is registered: the handle is closed without any callback "
38850 "being invoked."
38851 msgstr ""
38852
38853 #. type: =item
38854 #: ../src/guestfs.pod:1761
38855 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38856 msgstr ""
38857
38858 #. type: textblock
38859 #: ../src/guestfs.pod:1764
38860 msgid ""
38861 "The callback function will be called when the child process quits, either "
38862 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
38863 "corresponds to a transition from any state to the CONFIG state)."
38864 msgstr ""
38865
38866 #. type: textblock
38867 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
38868 msgid "If no callback is registered: the event is ignored."
38869 msgstr ""
38870
38871 #. type: =item
38872 #: ../src/guestfs.pod:1770
38873 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38874 msgstr ""
38875
38876 #. type: textblock
38877 #: ../src/guestfs.pod:1773
38878 msgid ""
38879 "The callback function will be called when the child process becomes ready "
38880 "first time after it has been launched.  (This corresponds to a transition "
38881 "from LAUNCHING to the READY state)."
38882 msgstr ""
38883
38884 #. type: =item
38885 #: ../src/guestfs.pod:1779
38886 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38887 msgstr ""
38888
38889 #. type: textblock
38890 #: ../src/guestfs.pod:1782
38891 msgid ""
38892 "Some long-running operations can generate progress messages.  If this "
38893 "callback is registered, then it will be called each time a progress message "
38894 "is generated (usually two seconds after the operation started, and three "
38895 "times per second thereafter until it completes, although the frequency may "
38896 "change in future versions)."
38897 msgstr ""
38898
38899 #. type: textblock
38900 #: ../src/guestfs.pod:1788
38901 msgid ""
38902 "The callback receives in the payload four unsigned 64 bit numbers which are "
38903 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38904 msgstr ""
38905
38906 #. type: textblock
38907 #: ../src/guestfs.pod:1791
38908 msgid ""
38909 "The units of C<total> are not defined, although for some operations C<total> "
38910 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38911 "or megabytes), and C<position> may be the portion which has been transferred."
38912 msgstr ""
38913
38914 #. type: textblock
38915 #: ../src/guestfs.pod:1796
38916 msgid "The only defined and stable parts of the API are:"
38917 msgstr ""
38918
38919 #. type: textblock
38920 #: ../src/guestfs.pod:1802
38921 msgid ""
38922 "The callback can display to the user some type of progress bar or indicator "
38923 "which shows the ratio of C<position>:C<total>."
38924 msgstr ""
38925
38926 #. type: textblock
38927 #: ../src/guestfs.pod:1807
38928 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38929 msgstr ""
38930
38931 #. type: textblock
38932 #: ../src/guestfs.pod:1811
38933 msgid ""
38934 "If any progress notification is sent during a call, then a final progress "
38935 "notification is always sent when C<position> = C<total> (I<unless> the call "
38936 "fails with an error)."
38937 msgstr ""
38938
38939 #. type: textblock
38940 #: ../src/guestfs.pod:1815
38941 msgid ""
38942 "This is to simplify caller code, so callers can easily set the progress "
38943 "indicator to \"100%\" at the end of the operation, without requiring special "
38944 "code to detect this case."
38945 msgstr ""
38946
38947 #. type: textblock
38948 #: ../src/guestfs.pod:1821
38949 msgid ""
38950 "For some calls we are unable to estimate the progress of the call, but we "
38951 "can still generate progress messages to indicate activity.  This is known as "
38952 "\"pulse mode\", and is directly supported by certain progress bar "
38953 "implementations (eg. GtkProgressBar)."
38954 msgstr ""
38955
38956 #. type: textblock
38957 #: ../src/guestfs.pod:1826
38958 msgid ""
38959 "For these calls, zero or more progress messages are generated with "
38960 "C<position = 0> and C<total = 1>, followed by a final message with "
38961 "C<position = total = 1>."
38962 msgstr ""
38963
38964 #. type: textblock
38965 #: ../src/guestfs.pod:1830
38966 msgid ""
38967 "As noted above, if the call fails with an error then the final message may "
38968 "not be generated."
38969 msgstr ""
38970
38971 #. type: textblock
38972 #: ../src/guestfs.pod:1835
38973 msgid ""
38974 "The callback also receives the procedure number (C<proc_nr>) and serial "
38975 "number (C<serial>) of the call.  These are only useful for debugging "
38976 "protocol issues, and the callback can normally ignore them.  The callback "
38977 "may want to print these numbers in error messages or debugging messages."
38978 msgstr ""
38979
38980 #. type: textblock
38981 #: ../src/guestfs.pod:1841
38982 msgid "If no callback is registered: progress messages are discarded."
38983 msgstr ""
38984
38985 #. type: =item
38986 #: ../src/guestfs.pod:1843
38987 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38988 msgstr ""
38989
38990 #. type: textblock
38991 #: ../src/guestfs.pod:1846
38992 msgid ""
38993 "The callback function is called whenever a log message is generated by qemu, "
38994 "the appliance kernel, guestfsd (daemon), or utility programs."
38995 msgstr ""
38996
38997 #. type: textblock
38998 #: ../src/guestfs.pod:1849
38999 msgid ""
39000 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
39001 "guestfs_launch>) then additional debug messages are generated."
39002 msgstr ""
39003
39004 #. type: textblock
39005 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
39006 msgid ""
39007 "If no callback is registered: the messages are discarded unless the verbose "
39008 "flag is set in which case they are sent to stderr.  You can override the "
39009 "printing of verbose messages to stderr by setting up a callback."
39010 msgstr ""
39011
39012 #. type: =item
39013 #: ../src/guestfs.pod:1857
39014 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
39015 msgstr ""
39016
39017 #. type: textblock
39018 #: ../src/guestfs.pod:1860
39019 msgid ""
39020 "The callback function is called whenever a log message is generated by the "
39021 "library part of libguestfs."
39022 msgstr ""
39023
39024 #. type: textblock
39025 #: ../src/guestfs.pod:1863
39026 msgid ""
39027 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
39028 "messages are generated."
39029 msgstr ""
39030
39031 #. type: =item
39032 #: ../src/guestfs.pod:1871
39033 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
39034 msgstr ""
39035
39036 #. type: textblock
39037 #: ../src/guestfs.pod:1874
39038 msgid ""
39039 "The callback function is called whenever a trace message is generated.  This "
39040 "only applies if the trace flag (L</guestfs_set_trace>) is set."
39041 msgstr ""
39042
39043 #. type: textblock
39044 #: ../src/guestfs.pod:1877
39045 msgid ""
39046 "If no callback is registered: the messages are sent to stderr.  You can "
39047 "override the printing of trace messages to stderr by setting up a callback."
39048 msgstr ""
39049
39050 #. type: =item
39051 #: ../src/guestfs.pod:1881
39052 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
39053 msgstr ""
39054
39055 #. type: textblock
39056 #: ../src/guestfs.pod:1884
39057 msgid ""
39058 "The callback function is called whenever a libguestfs function is entered."
39059 msgstr ""
39060
39061 #. type: textblock
39062 #: ../src/guestfs.pod:1887
39063 msgid ""
39064 "The payload is a string which contains the name of the function that we are "
39065 "entering (not including C<guestfs_> prefix)."
39066 msgstr ""
39067
39068 #. type: textblock
39069 #: ../src/guestfs.pod:1890
39070 msgid ""
39071 "Note that libguestfs functions can call themselves, so you may see many "
39072 "events from a single call.  A few libguestfs functions do not generate this "
39073 "event."
39074 msgstr ""
39075
39076 #. type: =head3
39077 #: ../src/guestfs.pod:1898
39078 msgid "guestfs_set_event_callback"
39079 msgstr ""
39080
39081 #. type: verbatim
39082 #: ../src/guestfs.pod:1900
39083 #, no-wrap
39084 msgid ""
39085 " int guestfs_set_event_callback (guestfs_h *g,\n"
39086 "                                 guestfs_event_callback cb,\n"
39087 "                                 uint64_t event_bitmask,\n"
39088 "                                 int flags,\n"
39089 "                                 void *opaque);\n"
39090 "\n"
39091 msgstr ""
39092
39093 #. type: textblock
39094 #: ../src/guestfs.pod:1906
39095 msgid ""
39096 "This function registers a callback (C<cb>) for all event classes in the "
39097 "C<event_bitmask>."
39098 msgstr ""
39099
39100 #. type: textblock
39101 #: ../src/guestfs.pod:1909
39102 msgid ""
39103 "For example, to register for all log message events, you could call this "
39104 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
39105 "To register a single callback for all possible classes of events, use "
39106 "C<GUESTFS_EVENT_ALL>."
39107 msgstr ""
39108
39109 #. type: textblock
39110 #: ../src/guestfs.pod:1915
39111 msgid "C<flags> should always be passed as 0."
39112 msgstr ""
39113
39114 #. type: textblock
39115 #: ../src/guestfs.pod:1917
39116 msgid ""
39117 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
39118 "it for any purpose."
39119 msgstr ""
39120
39121 #. type: textblock
39122 #: ../src/guestfs.pod:1920
39123 msgid ""
39124 "The return value is the event handle (an integer) which you can use to "
39125 "delete the callback (see below)."
39126 msgstr ""
39127
39128 #. type: textblock
39129 #: ../src/guestfs.pod:1923
39130 msgid ""
39131 "If there is an error, this function returns C<-1>, and sets the error in the "
39132 "handle in the usual way (see L</guestfs_last_error> etc.)"
39133 msgstr ""
39134
39135 #. type: textblock
39136 #: ../src/guestfs.pod:1926
39137 msgid ""
39138 "Callbacks remain in effect until they are deleted, or until the handle is "
39139 "closed."
39140 msgstr ""
39141
39142 #. type: textblock
39143 #: ../src/guestfs.pod:1929
39144 msgid ""
39145 "In the case where multiple callbacks are registered for a particular event "
39146 "class, all of the callbacks are called.  The order in which multiple "
39147 "callbacks are called is not defined."
39148 msgstr ""
39149
39150 #. type: =head3
39151 #: ../src/guestfs.pod:1933
39152 msgid "guestfs_delete_event_callback"
39153 msgstr ""
39154
39155 #. type: verbatim
39156 #: ../src/guestfs.pod:1935
39157 #, no-wrap
39158 msgid ""
39159 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39160 "\n"
39161 msgstr ""
39162
39163 #. type: textblock
39164 #: ../src/guestfs.pod:1937
39165 msgid ""
39166 "Delete a callback that was previously registered.  C<event_handle> should be "
39167 "the integer that was returned by a previous call to "
39168 "C<guestfs_set_event_callback> on the same handle."
39169 msgstr ""
39170
39171 #. type: =head3
39172 #: ../src/guestfs.pod:1941
39173 msgid "guestfs_event_callback"
39174 msgstr ""
39175
39176 #. type: verbatim
39177 #: ../src/guestfs.pod:1943
39178 #, no-wrap
39179 msgid ""
39180 " typedef void (*guestfs_event_callback) (\n"
39181 "                  guestfs_h *g,\n"
39182 "                  void *opaque,\n"
39183 "                  uint64_t event,\n"
39184 "                  int event_handle,\n"
39185 "                  int flags,\n"
39186 "                  const char *buf, size_t buf_len,\n"
39187 "                  const uint64_t *array, size_t array_len);\n"
39188 "\n"
39189 msgstr ""
39190
39191 #. type: textblock
39192 #: ../src/guestfs.pod:1952
39193 msgid ""
39194 "This is the type of the event callback function that you have to provide."
39195 msgstr ""
39196
39197 #. type: textblock
39198 #: ../src/guestfs.pod:1955
39199 msgid ""
39200 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39201 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39202 "handle, and C<flags> which in the current API you should ignore."
39203 msgstr ""
39204
39205 #. type: textblock
39206 #: ../src/guestfs.pod:1959
39207 msgid ""
39208 "The remaining parameters contain the event payload (if any).  Each event may "
39209 "contain a payload, which usually relates to the event class, but for future "
39210 "proofing your code should be written to handle any payload for any event "
39211 "class."
39212 msgstr ""
39213
39214 #. type: textblock
39215 #: ../src/guestfs.pod:1964
39216 msgid ""
39217 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39218 "there is no message buffer).  Note that this message buffer can contain "
39219 "arbitrary 8 bit data, including NUL bytes."
39220 msgstr ""
39221
39222 #. type: textblock
39223 #: ../src/guestfs.pod:1968
39224 msgid ""
39225 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
39226 "moment this is only used for progress messages."
39227 msgstr ""
39228
39229 #. type: =head3
39230 #: ../src/guestfs.pod:1971
39231 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39232 msgstr ""
39233
39234 #. type: textblock
39235 #: ../src/guestfs.pod:1973
39236 msgid ""
39237 "One motivation for the generic event API was to allow GUI programs to "
39238 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
39239 "unconditionally to C<stderr>."
39240 msgstr ""
39241
39242 #. type: textblock
39243 #: ../src/guestfs.pod:1977
39244 msgid ""
39245 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39246 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
39247 "messages are not events; you must capture error messages separately)."
39248 msgstr ""
39249
39250 #. type: textblock
39251 #: ../src/guestfs.pod:1982
39252 msgid ""
39253 "Programs have to set up a callback to capture the classes of events of "
39254 "interest:"
39255 msgstr ""
39256
39257 #. type: verbatim
39258 #: ../src/guestfs.pod:1985
39259 #, no-wrap
39260 msgid ""
39261 " int eh =\n"
39262 "   guestfs_set_event_callback\n"
39263 "     (g, message_callback,\n"
39264 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39265 "      GUESTFS_EVENT_TRACE,\n"
39266 "      0, NULL) == -1)\n"
39267 " if (eh == -1) {\n"
39268 "   // handle error in the usual way\n"
39269 " }\n"
39270 "\n"
39271 msgstr ""
39272
39273 #. type: textblock
39274 #: ../src/guestfs.pod:1995
39275 msgid ""
39276 "The callback can then direct messages to the appropriate place.  In this "
39277 "example, messages are directed to syslog:"
39278 msgstr ""
39279
39280 #. type: verbatim
39281 #: ../src/guestfs.pod:1998
39282 #, no-wrap
39283 msgid ""
39284 " static void\n"
39285 " message_callback (\n"
39286 "         guestfs_h *g,\n"
39287 "         void *opaque,\n"
39288 "         uint64_t event,\n"
39289 "         int event_handle,\n"
39290 "         int flags,\n"
39291 "         const char *buf, size_t buf_len,\n"
39292 "         const uint64_t *array, size_t array_len)\n"
39293 " {\n"
39294 "   const int priority = LOG_USER|LOG_INFO;\n"
39295 "   if (buf_len > 0)\n"
39296 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
39297 " }\n"
39298 "\n"
39299 msgstr ""
39300
39301 #. type: =head1
39302 #: ../src/guestfs.pod:2013
39303 msgid "CANCELLING LONG TRANSFERS"
39304 msgstr ""
39305
39306 #. type: textblock
39307 #: ../src/guestfs.pod:2015
39308 msgid ""
39309 "Some operations can be cancelled by the caller while they are in progress.  "
39310 "Currently only operations that involve uploading or downloading data can be "
39311 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
39312 "parameters in the generator)."
39313 msgstr ""
39314
39315 #. type: =head2
39316 #: ../src/guestfs.pod:2020
39317 msgid "guestfs_user_cancel"
39318 msgstr ""
39319
39320 #. type: verbatim
39321 #: ../src/guestfs.pod:2022
39322 #, no-wrap
39323 msgid ""
39324 " void guestfs_user_cancel (guestfs_h *g);\n"
39325 "\n"
39326 msgstr ""
39327
39328 #. type: textblock
39329 #: ../src/guestfs.pod:2024
39330 msgid ""
39331 "C<guestfs_user_cancel> cancels the current upload or download operation."
39332 msgstr ""
39333
39334 #. type: textblock
39335 #: ../src/guestfs.pod:2027
39336 msgid ""
39337 "Unlike most other libguestfs calls, this function is signal safe and thread "
39338 "safe.  You can call it from a signal handler or from another thread, without "
39339 "needing to do any locking."
39340 msgstr ""
39341
39342 #. type: textblock
39343 #: ../src/guestfs.pod:2031
39344 msgid ""
39345 "The transfer that was in progress (if there is one) will stop shortly "
39346 "afterwards, and will return an error.  The errno (see L</"
39347 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
39348 "out if the operation was cancelled or failed because of another error."
39349 msgstr ""
39350
39351 #. type: textblock
39352 #: ../src/guestfs.pod:2037
39353 msgid ""
39354 "No cleanup is performed: for example, if a file was being uploaded then "
39355 "after cancellation there may be a partially uploaded file.  It is the "
39356 "caller's responsibility to clean up if necessary."
39357 msgstr ""
39358
39359 #. type: textblock
39360 #: ../src/guestfs.pod:2041
39361 msgid "There are two common places that you might call C<guestfs_user_cancel>."
39362 msgstr ""
39363
39364 #. type: textblock
39365 #: ../src/guestfs.pod:2043
39366 msgid ""
39367 "In an interactive text-based program, you might call it from a C<SIGINT> "
39368 "signal handler so that pressing C<^C> cancels the current operation.  (You "
39369 "also need to call L</guestfs_set_pgroup> so that child processes don't "
39370 "receive the C<^C> signal)."
39371 msgstr ""
39372
39373 #. type: textblock
39374 #: ../src/guestfs.pod:2048
39375 msgid ""
39376 "In a graphical program, when the main thread is displaying a progress bar "
39377 "with a cancel button, wire up the cancel button to call this function."
39378 msgstr ""
39379
39380 #. type: =head1
39381 #: ../src/guestfs.pod:2052
39382 msgid "PRIVATE DATA AREA"
39383 msgstr ""
39384
39385 #. type: textblock
39386 #: ../src/guestfs.pod:2054
39387 msgid ""
39388 "You can attach named pieces of private data to the libguestfs handle, fetch "
39389 "them by name, and walk over them, for the lifetime of the handle.  This is "
39390 "called the private data area and is only available from the C API."
39391 msgstr ""
39392
39393 #. type: textblock
39394 #: ../src/guestfs.pod:2059
39395 msgid "To attach a named piece of data, use the following call:"
39396 msgstr ""
39397
39398 #. type: verbatim
39399 #: ../src/guestfs.pod:2061
39400 #, no-wrap
39401 msgid ""
39402 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39403 "\n"
39404 msgstr ""
39405 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39406 "\n"
39407
39408 #. type: textblock
39409 #: ../src/guestfs.pod:2063
39410 msgid ""
39411 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
39412 "pointer (which can be C<NULL>).  Any previous item with the same key is "
39413 "overwritten."
39414 msgstr ""
39415
39416 #. type: textblock
39417 #: ../src/guestfs.pod:2067
39418 msgid ""
39419 "You can use any C<key> you want, but your key should I<not> start with an "
39420 "underscore character.  Keys beginning with an underscore character are "
39421 "reserved for internal libguestfs purposes (eg. for implementing language "
39422 "bindings).  It is recommended that you prefix the key with some unique "
39423 "string to avoid collisions with other users."
39424 msgstr ""
39425
39426 #. type: textblock
39427 #: ../src/guestfs.pod:2073
39428 msgid "To retrieve the pointer, use:"
39429 msgstr ""
39430
39431 #. type: verbatim
39432 #: ../src/guestfs.pod:2075
39433 #, no-wrap
39434 msgid ""
39435 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39436 "\n"
39437 msgstr ""
39438 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39439 "\n"
39440
39441 #. type: textblock
39442 #: ../src/guestfs.pod:2077
39443 msgid ""
39444 "This function returns C<NULL> if either no data is found associated with "
39445 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39446 "C<NULL>."
39447 msgstr ""
39448
39449 #. type: textblock
39450 #: ../src/guestfs.pod:2081
39451 msgid ""
39452 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39453 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
39454 "all.  In particular, libguestfs does I<not> try to free the data when the "
39455 "handle is closed.  If the data must be freed, then the caller must either "
39456 "free it before calling L</guestfs_close> or must set up a close callback to "
39457 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39458 msgstr ""
39459
39460 #. type: textblock
39461 #: ../src/guestfs.pod:2088
39462 msgid "To walk over all entries, use these two functions:"
39463 msgstr ""
39464
39465 #. type: verbatim
39466 #: ../src/guestfs.pod:2090
39467 #, no-wrap
39468 msgid ""
39469 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39470 "\n"
39471 msgstr ""
39472
39473 #. type: verbatim
39474 #: ../src/guestfs.pod:2092
39475 #, no-wrap
39476 msgid ""
39477 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39478 "\n"
39479 msgstr ""
39480
39481 #. type: textblock
39482 #: ../src/guestfs.pod:2094
39483 msgid ""
39484 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
39485 "not have any particular meaning -- keys are not returned in any defined "
39486 "order).  A pointer to the key is returned in C<*key_rtn> and the "
39487 "corresponding data pointer is returned from the function.  C<NULL> is "
39488 "returned if there are no keys stored in the handle."
39489 msgstr ""
39490
39491 #. type: textblock
39492 #: ../src/guestfs.pod:2100
39493 msgid ""
39494 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
39495 "value of this function is also C<NULL> is there are no further entries to "
39496 "return."
39497 msgstr ""
39498
39499 #. type: textblock
39500 #: ../src/guestfs.pod:2104
39501 msgid "Notes about walking over entries:"
39502 msgstr ""
39503
39504 #. type: textblock
39505 #: ../src/guestfs.pod:2110
39506 msgid ""
39507 "You must not call C<guestfs_set_private> while walking over the entries."
39508 msgstr ""
39509
39510 #. type: textblock
39511 #: ../src/guestfs.pod:2115
39512 msgid ""
39513 "The handle maintains an internal iterator which is reset when you call "
39514 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
39515 "call C<guestfs_set_private>."
39516 msgstr ""
39517
39518 #. type: textblock
39519 #: ../src/guestfs.pod:2121
39520 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39521 msgstr ""
39522
39523 #. type: verbatim
39524 #: ../src/guestfs.pod:2123
39525 #, no-wrap
39526 msgid ""
39527 " guestfs_set_private (g, key, NULL);\n"
39528 "\n"
39529 msgstr ""
39530
39531 #. type: textblock
39532 #: ../src/guestfs.pod:2125
39533 msgid "then that C<key> is not returned when walking."
39534 msgstr ""
39535
39536 #. type: textblock
39537 #: ../src/guestfs.pod:2129
39538 msgid ""
39539 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39540 "C<guestfs_next_private> or C<guestfs_set_private>."
39541 msgstr ""
39542
39543 #. type: textblock
39544 #: ../src/guestfs.pod:2135
39545 msgid ""
39546 "The following example code shows how to print all keys and data pointers "
39547 "that are associated with the handle C<g>:"
39548 msgstr ""
39549
39550 #. type: verbatim
39551 #: ../src/guestfs.pod:2138
39552 #, no-wrap
39553 msgid ""
39554 " const char *key;\n"
39555 " void *data = guestfs_first_private (g, &key);\n"
39556 " while (data != NULL)\n"
39557 "   {\n"
39558 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
39559 "     data = guestfs_next_private (g, &key);\n"
39560 "   }\n"
39561 "\n"
39562 msgstr ""
39563
39564 #. type: textblock
39565 #: ../src/guestfs.pod:2146
39566 msgid ""
39567 "More commonly you are only interested in keys that begin with an application-"
39568 "specific prefix C<foo_>.  Modify the loop like so:"
39569 msgstr ""
39570
39571 #. type: verbatim
39572 #: ../src/guestfs.pod:2149
39573 #, no-wrap
39574 msgid ""
39575 " const char *key;\n"
39576 " void *data = guestfs_first_private (g, &key);\n"
39577 " while (data != NULL)\n"
39578 "   {\n"
39579 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39580 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
39581 "     data = guestfs_next_private (g, &key);\n"
39582 "   }\n"
39583 "\n"
39584 msgstr ""
39585
39586 #. type: textblock
39587 #: ../src/guestfs.pod:2158
39588 msgid ""
39589 "If you need to modify keys while walking, then you have to jump back to the "
39590 "beginning of the loop.  For example, to delete all keys prefixed with "
39591 "C<foo_>:"
39592 msgstr ""
39593
39594 #. type: verbatim
39595 #: ../src/guestfs.pod:2162
39596 #, no-wrap
39597 msgid ""
39598 "  const char *key;\n"
39599 "  void *data;\n"
39600 " again:\n"
39601 "  data = guestfs_first_private (g, &key);\n"
39602 "  while (data != NULL)\n"
39603 "    {\n"
39604 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39605 "        {\n"
39606 "          guestfs_set_private (g, key, NULL);\n"
39607 "          /* note that 'key' pointer is now invalid, and so is\n"
39608 "             the internal iterator */\n"
39609 "          goto again;\n"
39610 "        }\n"
39611 "      data = guestfs_next_private (g, &key);\n"
39612 "    }\n"
39613 "\n"
39614 msgstr ""
39615
39616 #. type: textblock
39617 #: ../src/guestfs.pod:2178
39618 msgid ""
39619 "Note that the above loop is guaranteed to terminate because the keys are "
39620 "being deleted, but other manipulations of keys within the loop might not "
39621 "terminate unless you also maintain an indication of which keys have been "
39622 "visited."
39623 msgstr ""
39624
39625 #. type: =head1
39626 #: ../src/guestfs.pod:2183
39627 msgid "SYSTEMTAP"
39628 msgstr ""
39629
39630 #. type: textblock
39631 #: ../src/guestfs.pod:2185
39632 msgid ""
39633 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
39634 "true of any library, not just libguestfs.  However libguestfs also contains "
39635 "static markers to help in probing internal operations."
39636 msgstr ""
39637
39638 #. type: textblock
39639 #: ../src/guestfs.pod:2189
39640 msgid "You can list all the static markers by doing:"
39641 msgstr ""
39642
39643 #. type: verbatim
39644 #: ../src/guestfs.pod:2191
39645 #, no-wrap
39646 msgid ""
39647 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39648 "              .provider(\"guestfs\").mark(\"*\")'\n"
39649 "\n"
39650 msgstr ""
39651
39652 #. type: textblock
39653 #: ../src/guestfs.pod:2194
39654 msgid ""
39655 "B<Note:> These static markers are I<not> part of the stable API and may "
39656 "change in future versions."
39657 msgstr ""
39658
39659 #. type: =head2
39660 #: ../src/guestfs.pod:2197
39661 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39662 msgstr ""
39663
39664 #. type: textblock
39665 #: ../src/guestfs.pod:2199
39666 msgid ""
39667 "This script contains examples of displaying both the static markers and some "
39668 "ordinary C entry points:"
39669 msgstr ""
39670
39671 #. type: verbatim
39672 #: ../src/guestfs.pod:2202
39673 #, no-wrap
39674 msgid ""
39675 " global last;\n"
39676 " \n"
39677 msgstr ""
39678
39679 #. type: verbatim
39680 #: ../src/guestfs.pod:2204
39681 #, no-wrap
39682 msgid ""
39683 " function display_time () {\n"
39684 "       now = gettimeofday_us ();\n"
39685 "       delta = 0;\n"
39686 "       if (last > 0)\n"
39687 "             delta = now - last;\n"
39688 "       last = now;\n"
39689 " \n"
39690 msgstr ""
39691
39692 #. type: verbatim
39693 #: ../src/guestfs.pod:2211
39694 #, no-wrap
39695 msgid ""
39696 "       printf (\"%d (+%d):\", now, delta);\n"
39697 " }\n"
39698 " \n"
39699 msgstr ""
39700
39701 #. type: verbatim
39702 #: ../src/guestfs.pod:2214
39703 #, no-wrap
39704 msgid ""
39705 " probe begin {\n"
39706 "       last = 0;\n"
39707 "       printf (\"ready\\n\");\n"
39708 " }\n"
39709 " \n"
39710 msgstr ""
39711
39712 #. type: verbatim
39713 #: ../src/guestfs.pod:2219
39714 #, no-wrap
39715 msgid ""
39716 " /* Display all calls to static markers. */\n"
39717 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39718 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
39719 "       display_time();\n"
39720 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39721 " }\n"
39722 " \n"
39723 msgstr ""
39724
39725 #. type: verbatim
39726 #: ../src/guestfs.pod:2226
39727 #, no-wrap
39728 msgid ""
39729 " /* Display all calls to guestfs_mkfs* functions. */\n"
39730 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39731 "           .function(\"guestfs_mkfs*\") ? {\n"
39732 "       display_time();\n"
39733 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39734 " }\n"
39735 "\n"
39736 msgstr ""
39737
39738 #. type: textblock
39739 #: ../src/guestfs.pod:2233
39740 msgid ""
39741 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39742 "program.  Note that you either have to be root, or you have to add yourself "
39743 "to several special stap groups.  Consult the systemtap documentation for "
39744 "more information."
39745 msgstr ""
39746
39747 #. type: verbatim
39748 #: ../src/guestfs.pod:2238
39749 #, no-wrap
39750 msgid ""
39751 " # stap /tmp/test.stap\n"
39752 " ready\n"
39753 "\n"
39754 msgstr ""
39755
39756 #. type: textblock
39757 #: ../src/guestfs.pod:2241
39758 msgid "In another terminal, run a guestfish command such as this:"
39759 msgstr ""
39760
39761 #. type: textblock
39762 #: ../src/guestfs.pod:2245
39763 msgid "In the first terminal, stap trace output similar to this is shown:"
39764 msgstr ""
39765
39766 #. type: verbatim
39767 #: ../src/guestfs.pod:2247
39768 #, no-wrap
39769 msgid ""
39770 " 1318248056692655 (+0):\tlaunch_start\n"
39771 " 1318248056692850 (+195):       launch_build_appliance_start\n"
39772 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
39773 " 1318248056838059 (+19774):     launch_run_qemu\n"
39774 " 1318248061071167 (+4233108):   launch_end\n"
39775 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
39776 "\n"
39777 msgstr ""
39778
39779 #. type: =end
39780 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
39781 msgid "html"
39782 msgstr "html"
39783
39784 #. type: textblock
39785 #: ../src/guestfs.pod:2256
39786 msgid ""
39787 "<!-- old anchor for the next section --> <a name="
39788 "\"state_machine_and_low_level_event_api\"/>"
39789 msgstr ""
39790 "<!-- old anchor for the next section --> <a name="
39791 "\"state_machine_and_low_level_event_api\"/>"
39792
39793 #. type: =head1
39794 #: ../src/guestfs.pod:2261
39795 msgid "ARCHITECTURE"
39796 msgstr "АРХІТЕКТУРА"
39797
39798 #. type: textblock
39799 #: ../src/guestfs.pod:2263
39800 msgid ""
39801 "Internally, libguestfs is implemented by running an appliance (a special "
39802 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
39803 "process of the main program."
39804 msgstr ""
39805
39806 #. type: verbatim
39807 #: ../src/guestfs.pod:2267
39808 #, no-wrap
39809 msgid ""
39810 "  ___________________\n"
39811 " /                   \\\n"
39812 " | main program      |\n"
39813 " |                   |\n"
39814 " |                   |           child process / appliance\n"
39815 " |                   |           __________________________\n"
39816 " |                   |          / qemu                     \\\n"
39817 " +-------------------+   RPC    |      +-----------------+ |\n"
39818 " | libguestfs     <--------------------> guestfsd        | |\n"
39819 " |                   |          |      +-----------------+ |\n"
39820 " \\___________________/          |      | Linux kernel    | |\n"
39821 "                                |      +--^--------------+ |\n"
39822 "                                \\_________|________________/\n"
39823 "                                          |\n"
39824 "                                   _______v______\n"
39825 "                                  /              \\\n"
39826 "                                  | Device or    |\n"
39827 "                                  | disk image   |\n"
39828 "                                  \\______________/\n"
39829 "\n"
39830 msgstr ""
39831
39832 #. type: textblock
39833 #: ../src/guestfs.pod:2287
39834 msgid ""
39835 "The library, linked to the main program, creates the child process and hence "
39836 "the appliance in the L</guestfs_launch> function."
39837 msgstr ""
39838
39839 #. type: textblock
39840 #: ../src/guestfs.pod:2290
39841 msgid ""
39842 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39843 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39844 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
39845 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
39846 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
39847 "attached to the qemu process which translates device access by the "
39848 "appliance's Linux kernel into accesses to the image."
39849 msgstr ""
39850
39851 #. type: textblock
39852 #: ../src/guestfs.pod:2299
39853 msgid ""
39854 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
39855 "Although the disk image you are attached to might also be used by some "
39856 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
39857 "care if both libguestfs's qemu process and your virtual machine are trying "
39858 "to update the disk image at the same time, since these usually results in "
39859 "massive disk corruption)."
39860 msgstr ""
39861
39862 #. type: =head1
39863 #: ../src/guestfs.pod:2306
39864 msgid "STATE MACHINE"
39865 msgstr "СКІНЧЕННИЙ АВТОМАТ"
39866
39867 #. type: textblock
39868 #: ../src/guestfs.pod:2308
39869 msgid "libguestfs uses a state machine to model the child process:"
39870 msgstr ""
39871
39872 #. type: verbatim
39873 #: ../src/guestfs.pod:2310
39874 #, no-wrap
39875 msgid ""
39876 "                         |\n"
39877 "                    guestfs_create\n"
39878 "                         |\n"
39879 "                         |\n"
39880 "                     ____V_____\n"
39881 "                    /          \\\n"
39882 "                    |  CONFIG  |\n"
39883 "                    \\__________/\n"
39884 "                     ^ ^   ^  \\\n"
39885 "                    /  |    \\  \\ guestfs_launch\n"
39886 "                   /   |    _\\__V______\n"
39887 "                  /    |   /           \\\n"
39888 "                 /     |   | LAUNCHING |\n"
39889 "                /      |   \\___________/\n"
39890 "               /       |       /\n"
39891 "              /        |  guestfs_launch\n"
39892 "             /         |     /\n"
39893 "    ______  /        __|____V\n"
39894 "   /      \\ ------> /        \\\n"
39895 "   | BUSY |         | READY  |\n"
39896 "   \\______/ <------ \\________/\n"
39897 "\n"
39898 msgstr ""
39899
39900 #. type: textblock
39901 #: ../src/guestfs.pod:2332
39902 msgid ""
39903 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39904 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39905 "(3) alternating between READY and BUSY as commands are issued to, and "
39906 "carried out by, the child process."
39907 msgstr ""
39908
39909 #. type: textblock
39910 #: ../src/guestfs.pod:2337
39911 msgid ""
39912 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39913 "asynchronously at any time (eg. due to some internal error), and that causes "
39914 "the state to transition back to CONFIG."
39915 msgstr ""
39916
39917 #. type: textblock
39918 #: ../src/guestfs.pod:2341
39919 msgid ""
39920 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39921 "issued when in the CONFIG state."
39922 msgstr ""
39923
39924 #. type: textblock
39925 #: ../src/guestfs.pod:2344
39926 msgid ""
39927 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
39928 "L</guestfs_launch> blocks until the child process is READY to accept "
39929 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
39930 "moves the state from CONFIG to LAUNCHING while it is running."
39931 msgstr ""
39932
39933 #. type: textblock
39934 #: ../src/guestfs.pod:2350
39935 msgid ""
39936 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39937 "state.  These API calls block waiting for the command to be carried out (ie. "
39938 "the state to transition to BUSY and then back to READY).  There are no non-"
39939 "blocking versions, and no way to issue more than one command per handle at "
39940 "the same time."
39941 msgstr ""
39942
39943 #. type: textblock
39944 #: ../src/guestfs.pod:2356
39945 msgid ""
39946 "Finally, the child process sends asynchronous messages back to the main "
39947 "program, such as kernel log messages.  You can register a callback to "
39948 "receive these messages."
39949 msgstr ""
39950
39951 #. type: =head1
39952 #: ../src/guestfs.pod:2360
39953 msgid "INTERNALS"
39954 msgstr ""
39955
39956 #. type: =head2
39957 #: ../src/guestfs.pod:2362
39958 msgid "APPLIANCE BOOT PROCESS"
39959 msgstr ""
39960
39961 #. type: textblock
39962 #: ../src/guestfs.pod:2364
39963 msgid ""
39964 "This process has evolved and continues to evolve.  The description here "
39965 "corresponds only to the current version of libguestfs and is provided for "
39966 "information only."
39967 msgstr ""
39968
39969 #. type: textblock
39970 #: ../src/guestfs.pod:2368
39971 msgid ""
39972 "In order to follow the stages involved below, enable libguestfs debugging "
39973 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39974 msgstr ""
39975
39976 #. type: =item
39977 #: ../src/guestfs.pod:2373
39978 msgid "Create the appliance"
39979 msgstr ""
39980
39981 #. type: textblock
39982 #: ../src/guestfs.pod:2375
39983 msgid ""
39984 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39985 "initrd and the appliance."
39986 msgstr ""
39987
39988 #. type: textblock
39989 #: ../src/guestfs.pod:2378
39990 msgid ""
39991 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39992 "directory if C<TMPDIR> is set)."
39993 msgstr ""
39994
39995 #. type: textblock
39996 #: ../src/guestfs.pod:2381
39997 msgid ""
39998 "For a complete description of how the appliance is created and cached, read "
39999 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
40000 msgstr ""
40001
40002 #. type: =item
40003 #: ../src/guestfs.pod:2385
40004 msgid "Start qemu and boot the kernel"
40005 msgstr ""
40006
40007 #. type: textblock
40008 #: ../src/guestfs.pod:2387
40009 msgid "qemu is invoked to boot the kernel."
40010 msgstr ""
40011
40012 #. type: =item
40013 #: ../src/guestfs.pod:2389
40014 msgid "Run the initrd"
40015 msgstr ""
40016
40017 #. type: textblock
40018 #: ../src/guestfs.pod:2391
40019 msgid ""
40020 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
40021 "appliance.  The purpose of the initrd is to load enough kernel modules in "
40022 "order that the appliance itself can be mounted and started."
40023 msgstr ""
40024
40025 #. type: textblock
40026 #: ../src/guestfs.pod:2395
40027 msgid ""
40028 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
40029 "initrd>."
40030 msgstr ""
40031
40032 #. type: textblock
40033 #: ../src/guestfs.pod:2398
40034 msgid ""
40035 "When the initrd has started you will see messages showing that kernel "
40036 "modules are being loaded, similar to this:"
40037 msgstr ""
40038
40039 #. type: verbatim
40040 #: ../src/guestfs.pod:2401
40041 #, no-wrap
40042 msgid ""
40043 " febootstrap: ext2 mini initrd starting up\n"
40044 " febootstrap: mounting /sys\n"
40045 " febootstrap: internal insmod libcrc32c.ko\n"
40046 " febootstrap: internal insmod crc32c-intel.ko\n"
40047 "\n"
40048 msgstr ""
40049
40050 #. type: =item
40051 #: ../src/guestfs.pod:2406
40052 msgid "Find and mount the appliance device"
40053 msgstr ""
40054
40055 #. type: textblock
40056 #: ../src/guestfs.pod:2408
40057 msgid ""
40058 "The appliance is a sparse file containing an ext2 filesystem which contains "
40059 "a familiar (although reduced in size) Linux operating system.  It would "
40060 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40061 msgstr ""
40062
40063 #. type: textblock
40064 #: ../src/guestfs.pod:2412
40065 msgid ""
40066 "The regular disks being inspected by libguestfs are the first devices "
40067 "exposed by qemu (eg. as C</dev/vda>)."
40068 msgstr ""
40069
40070 #. type: textblock
40071 #: ../src/guestfs.pod:2415
40072 msgid ""
40073 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40074 "there was only one regular disk)."
40075 msgstr ""
40076
40077 #. type: textblock
40078 #: ../src/guestfs.pod:2418
40079 msgid ""
40080 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40081 "and switch root into the appliance, and run C</init> from the appliance."
40082 msgstr ""
40083
40084 #. type: textblock
40085 #: ../src/guestfs.pod:2422
40086 msgid "If this works successfully you will see messages such as:"
40087 msgstr ""
40088
40089 #. type: verbatim
40090 #: ../src/guestfs.pod:2424
40091 #, no-wrap
40092 msgid ""
40093 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40094 " febootstrap: creating /dev/root as block special 252:16\n"
40095 " febootstrap: mounting new root on /root\n"
40096 " febootstrap: chroot\n"
40097 " Starting /init script ...\n"
40098 "\n"
40099 msgstr ""
40100
40101 #. type: textblock
40102 #: ../src/guestfs.pod:2430
40103 msgid ""
40104 "Note that C<Starting /init script ...> indicates that the appliance's init "
40105 "script is now running."
40106 msgstr ""
40107
40108 #. type: =item
40109 #: ../src/guestfs.pod:2433
40110 msgid "Initialize the appliance"
40111 msgstr ""
40112
40113 #. type: textblock
40114 #: ../src/guestfs.pod:2435
40115 msgid ""
40116 "The appliance itself now initializes itself.  This involves starting certain "
40117 "processes like C<udev>, possibly printing some debug information, and "
40118 "finally running the daemon (C<guestfsd>)."
40119 msgstr ""
40120
40121 #. type: =item
40122 #: ../src/guestfs.pod:2439
40123 msgid "The daemon"
40124 msgstr ""
40125
40126 #. type: textblock
40127 #: ../src/guestfs.pod:2441
40128 msgid ""
40129 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
40130 "should see:"
40131 msgstr ""
40132
40133 #. type: verbatim
40134 #: ../src/guestfs.pod:2444
40135 #, no-wrap
40136 msgid ""
40137 " verbose daemon enabled\n"
40138 "\n"
40139 msgstr ""
40140
40141 #. type: textblock
40142 #: ../src/guestfs.pod:2446
40143 msgid ""
40144 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40145 "connected on the other end to the library."
40146 msgstr ""
40147
40148 #. type: textblock
40149 #: ../src/guestfs.pod:2449
40150 msgid ""
40151 "The daemon connects to this port (and hence to the library) and sends a four "
40152 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40153 "protocol (see below)."
40154 msgstr ""
40155
40156 #. type: =head2
40157 #: ../src/guestfs.pod:2455
40158 msgid "COMMUNICATION PROTOCOL"
40159 msgstr ""
40160
40161 #. type: textblock
40162 #: ../src/guestfs.pod:2457
40163 msgid ""
40164 "Don't rely on using this protocol directly.  This section documents how it "
40165 "currently works, but it may change at any time."
40166 msgstr ""
40167
40168 #. type: textblock
40169 #: ../src/guestfs.pod:2460
40170 msgid ""
40171 "The protocol used to talk between the library and the daemon running inside "
40172 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40173 "1014, RFC 1832, RFC 4506)."
40174 msgstr ""
40175
40176 #. type: textblock
40177 #: ../src/guestfs.pod:2464
40178 msgid ""
40179 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40180 "this file is automatically generated)."
40181 msgstr ""
40182
40183 #. type: textblock
40184 #: ../src/guestfs.pod:2467
40185 msgid ""
40186 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40187 "and C<FileOut> parameters, which are handled with very simple request/reply "
40188 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
40189 "parameters, which use the same request and reply messages, but they may also "
40190 "be followed by files sent using a chunked encoding."
40191 msgstr ""
40192
40193 #. type: =head3
40194 #: ../src/guestfs.pod:2474
40195 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40196 msgstr ""
40197
40198 #. type: textblock
40199 #: ../src/guestfs.pod:2476
40200 msgid "For ordinary functions, the request message is:"
40201 msgstr ""
40202
40203 #. type: verbatim
40204 #: ../src/guestfs.pod:2478
40205 #, no-wrap
40206 msgid ""
40207 " total length (header + arguments,\n"
40208 "      but not including the length word itself)\n"
40209 " struct guestfs_message_header (encoded as XDR)\n"
40210 " struct guestfs_<foo>_args (encoded as XDR)\n"
40211 "\n"
40212 msgstr ""
40213
40214 #. type: textblock
40215 #: ../src/guestfs.pod:2483
40216 msgid ""
40217 "The total length field allows the daemon to allocate a fixed size buffer "
40218 "into which it slurps the rest of the message.  As a result, the total length "
40219 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
40220 "effective size of any request is limited to somewhere under this size."
40221 msgstr ""
40222
40223 #. type: textblock
40224 #: ../src/guestfs.pod:2489
40225 msgid ""
40226 "Note also that many functions don't take any arguments, in which case the "
40227 "C<guestfs_I<foo>_args> is completely omitted."
40228 msgstr ""
40229
40230 #. type: textblock
40231 #: ../src/guestfs.pod:2492
40232 msgid ""
40233 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40234 "receiver knows what type of args structure to expect, or none at all."
40235 msgstr ""
40236
40237 #. type: textblock
40238 #: ../src/guestfs.pod:2496
40239 msgid ""
40240 "For functions that take optional arguments, the optional arguments are "
40241 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40242 "arguments.  A bitmask in the header indicates which optional arguments are "
40243 "meaningful.  The bitmask is also checked to see if it contains bits set "
40244 "which the daemon does not know about (eg. if more optional arguments were "
40245 "added in a later version of the library), and this causes the call to be "
40246 "rejected."
40247 msgstr ""
40248
40249 #. type: textblock
40250 #: ../src/guestfs.pod:2504
40251 msgid "The reply message for ordinary functions is:"
40252 msgstr ""
40253
40254 #. type: verbatim
40255 #: ../src/guestfs.pod:2506
40256 #, no-wrap
40257 msgid ""
40258 " total length (header + ret,\n"
40259 "      but not including the length word itself)\n"
40260 " struct guestfs_message_header (encoded as XDR)\n"
40261 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40262 "\n"
40263 msgstr ""
40264
40265 #. type: textblock
40266 #: ../src/guestfs.pod:2511
40267 msgid ""
40268 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40269 "functions that return no formal return values."
40270 msgstr ""
40271
40272 #. type: textblock
40273 #: ../src/guestfs.pod:2514
40274 msgid ""
40275 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
40276 msgstr ""
40277
40278 #. type: textblock
40279 #: ../src/guestfs.pod:2517
40280 msgid ""
40281 "In the case of an error, a flag is set in the header, and the reply message "
40282 "is slightly changed:"
40283 msgstr ""
40284
40285 #. type: verbatim
40286 #: ../src/guestfs.pod:2520
40287 #, no-wrap
40288 msgid ""
40289 " total length (header + error,\n"
40290 "      but not including the length word itself)\n"
40291 " struct guestfs_message_header (encoded as XDR)\n"
40292 " struct guestfs_message_error (encoded as XDR)\n"
40293 "\n"
40294 msgstr ""
40295
40296 #. type: textblock
40297 #: ../src/guestfs.pod:2525
40298 msgid ""
40299 "The C<guestfs_message_error> structure contains the error message as a "
40300 "string."
40301 msgstr ""
40302
40303 #. type: =head3
40304 #: ../src/guestfs.pod:2528
40305 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
40306 msgstr ""
40307
40308 #. type: textblock
40309 #: ../src/guestfs.pod:2530
40310 msgid ""
40311 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
40312 "The normal request message is sent (see above).  However this is followed by "
40313 "a sequence of file chunks."
40314 msgstr ""
40315
40316 #. type: verbatim
40317 #: ../src/guestfs.pod:2534
40318 #, no-wrap
40319 msgid ""
40320 " total length (header + arguments,\n"
40321 "      but not including the length word itself,\n"
40322 "      and not including the chunks)\n"
40323 " struct guestfs_message_header (encoded as XDR)\n"
40324 " struct guestfs_<foo>_args (encoded as XDR)\n"
40325 " sequence of chunks for FileIn param #0\n"
40326 " sequence of chunks for FileIn param #1 etc.\n"
40327 "\n"
40328 msgstr ""
40329
40330 #. type: textblock
40331 #: ../src/guestfs.pod:2542
40332 msgid "The \"sequence of chunks\" is:"
40333 msgstr ""
40334
40335 #. type: verbatim
40336 #: ../src/guestfs.pod:2544
40337 #, no-wrap
40338 msgid ""
40339 " length of chunk (not including length word itself)\n"
40340 " struct guestfs_chunk (encoded as XDR)\n"
40341 " length of chunk\n"
40342 " struct guestfs_chunk (encoded as XDR)\n"
40343 "   ...\n"
40344 " length of chunk\n"
40345 " struct guestfs_chunk (with data.data_len == 0)\n"
40346 "\n"
40347 msgstr ""
40348
40349 #. type: textblock
40350 #: ../src/guestfs.pod:2552
40351 msgid ""
40352 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
40353 "is set in the final chunk to indicate either successful completion or early "
40354 "cancellation."
40355 msgstr ""
40356
40357 #. type: textblock
40358 #: ../src/guestfs.pod:2556
40359 msgid ""
40360 "At time of writing there are no functions that have more than one FileIn "
40361 "parameter.  However this is (theoretically) supported, by sending the "
40362 "sequence of chunks for each FileIn parameter one after another (from left to "
40363 "right)."
40364 msgstr ""
40365
40366 #. type: textblock
40367 #: ../src/guestfs.pod:2561
40368 msgid ""
40369 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
40370 "transfer.  The library does this by sending a chunk with a special flag set "
40371 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
40372 "RPC, does I<not> send any reply, and goes back to reading the next request."
40373 msgstr ""
40374
40375 #. type: textblock
40376 #: ../src/guestfs.pod:2567
40377 msgid ""
40378 "The daemon may also cancel.  It does this by writing a special word "
40379 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
40380 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
40381 "cancel chunk).  The special word is chosen so that even if cancellation "
40382 "happens right at the end of the transfer (after the library has finished "
40383 "writing and has started listening for the reply), the \"spurious\" cancel "
40384 "flag will not be confused with the reply message."
40385 msgstr ""
40386
40387 #. type: textblock
40388 #: ../src/guestfs.pod:2576
40389 msgid ""
40390 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
40391 "limit), and also files where the size is not known in advance (eg. from "
40392 "pipes or sockets).  However the chunks are rather small "
40393 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
40394 "to keep much in memory."
40395 msgstr ""
40396
40397 #. type: =head3
40398 #: ../src/guestfs.pod:2582
40399 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
40400 msgstr ""
40401
40402 #. type: textblock
40403 #: ../src/guestfs.pod:2584
40404 msgid ""
40405 "The protocol for FileOut parameters is exactly the same as for FileIn "
40406 "parameters, but with the roles of daemon and library reversed."
40407 msgstr ""
40408
40409 #. type: verbatim
40410 #: ../src/guestfs.pod:2587
40411 #, no-wrap
40412 msgid ""
40413 " total length (header + ret,\n"
40414 "      but not including the length word itself,\n"
40415 "      and not including the chunks)\n"
40416 " struct guestfs_message_header (encoded as XDR)\n"
40417 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40418 " sequence of chunks for FileOut param #0\n"
40419 " sequence of chunks for FileOut param #1 etc.\n"
40420 "\n"
40421 msgstr ""
40422
40423 #. type: =head3
40424 #: ../src/guestfs.pod:2595
40425 msgid "INITIAL MESSAGE"
40426 msgstr ""
40427
40428 #. type: textblock
40429 #: ../src/guestfs.pod:2597
40430 msgid ""
40431 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
40432 "which indicates that the guest and daemon is alive.  This is what L</"
40433 "guestfs_launch> waits for."
40434 msgstr ""
40435
40436 #. type: =head3
40437 #: ../src/guestfs.pod:2601
40438 msgid "PROGRESS NOTIFICATION MESSAGES"
40439 msgstr ""
40440
40441 #. type: textblock
40442 #: ../src/guestfs.pod:2603
40443 msgid ""
40444 "The daemon may send progress notification messages at any time.  These are "
40445 "distinguished by the normal length word being replaced by "
40446 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
40447 msgstr ""
40448
40449 #. type: textblock
40450 #: ../src/guestfs.pod:2607
40451 msgid ""
40452 "The library turns them into progress callbacks (see L</"
40453 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
40454 "if not."
40455 msgstr ""
40456
40457 #. type: textblock
40458 #: ../src/guestfs.pod:2611
40459 msgid ""
40460 "The daemon self-limits the frequency of progress messages it sends (see "
40461 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
40462 "messages."
40463 msgstr ""
40464
40465 #. type: =head1
40466 #: ../src/guestfs.pod:2615
40467 msgid "LIBGUESTFS VERSION NUMBERS"
40468 msgstr ""
40469
40470 #. type: textblock
40471 #: ../src/guestfs.pod:2617
40472 msgid ""
40473 "Since April 2010, libguestfs has started to make separate development and "
40474 "stable releases, along with corresponding branches in our git repository.  "
40475 "These separate releases can be identified by version number:"
40476 msgstr ""
40477
40478 #. type: verbatim
40479 #: ../src/guestfs.pod:2622
40480 #, no-wrap
40481 msgid ""
40482 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
40483 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
40484 "       |\n"
40485 "       v\n"
40486 " 1  .  3  .  5\n"
40487 " ^           ^\n"
40488 " |           |\n"
40489 " |           `-------- sub-version\n"
40490 " |\n"
40491 " `------ always '1' because we don't change the ABI\n"
40492 "\n"
40493 msgstr ""
40494
40495 #. type: textblock
40496 #: ../src/guestfs.pod:2633
40497 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
40498 msgstr ""
40499
40500 #. type: textblock
40501 #: ../src/guestfs.pod:2635
40502 msgid ""
40503 "As time passes we cherry pick fixes from the development branch and backport "
40504 "those into the stable branch, the effect being that the stable branch should "
40505 "get more stable and less buggy over time.  So the stable releases are ideal "
40506 "for people who don't need new features but would just like the software to "
40507 "work."
40508 msgstr ""
40509
40510 #. type: textblock
40511 #: ../src/guestfs.pod:2641
40512 msgid "Our criteria for backporting changes are:"
40513 msgstr ""
40514
40515 #. type: textblock
40516 #: ../src/guestfs.pod:2647
40517 msgid ""
40518 "Documentation changes which don't affect any code are backported unless the "
40519 "documentation refers to a future feature which is not in stable."
40520 msgstr ""
40521
40522 #. type: textblock
40523 #: ../src/guestfs.pod:2653
40524 msgid ""
40525 "Bug fixes which are not controversial, fix obvious problems, and have been "
40526 "well tested are backported."
40527 msgstr ""
40528
40529 #. type: textblock
40530 #: ../src/guestfs.pod:2658
40531 msgid ""
40532 "Simple rearrangements of code which shouldn't affect how it works get "
40533 "backported.  This is so that the code in the two branches doesn't get too "
40534 "far out of step, allowing us to backport future fixes more easily."
40535 msgstr ""
40536
40537 #. type: textblock
40538 #: ../src/guestfs.pod:2664
40539 msgid ""
40540 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40541 "exceptional case: the new feature is required in order to implement an "
40542 "important bug fix."
40543 msgstr ""
40544
40545 #. type: textblock
40546 #: ../src/guestfs.pod:2670
40547 msgid ""
40548 "A new stable branch starts when we think the new features in development are "
40549 "substantial and compelling enough over the current stable branch to warrant "
40550 "it.  When that happens we create new stable and development versions 1.N.0 "
40551 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
40552 "stable at this point, but by backporting fixes from development, that branch "
40553 "will stabilize over time."
40554 msgstr ""
40555
40556 #. type: =head1
40557 #: ../src/guestfs.pod:2678
40558 msgid "EXTENDING LIBGUESTFS"
40559 msgstr ""
40560
40561 #. type: =head2
40562 #: ../src/guestfs.pod:2680
40563 msgid "ADDING A NEW API ACTION"
40564 msgstr ""
40565
40566 #. type: textblock
40567 #: ../src/guestfs.pod:2682
40568 msgid ""
40569 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
40570 "documentation) are generated, and this makes it easy to extend the "
40571 "libguestfs API."
40572 msgstr ""
40573
40574 #. type: textblock
40575 #: ../src/guestfs.pod:2686
40576 msgid "To add a new API action there are two changes:"
40577 msgstr ""
40578
40579 #. type: textblock
40580 #: ../src/guestfs.pod:2692
40581 msgid ""
40582 "You need to add a description of the call (name, parameters, return type, "
40583 "tests, documentation) to C<generator/generator_actions.ml>."
40584 msgstr ""
40585
40586 #. type: textblock
40587 #: ../src/guestfs.pod:2695
40588 msgid ""
40589 "There are two sorts of API action, depending on whether the call goes "
40590 "through to the daemon in the appliance, or is serviced entirely by the "
40591 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
40592 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
40593 "an example of the latter, since a trace flag is maintained in the handle and "
40594 "all tracing is done on the library side."
40595 msgstr ""
40596
40597 #. type: textblock
40598 #: ../src/guestfs.pod:2703
40599 msgid ""
40600 "Most new actions are of the first type, and get added to the "
40601 "C<daemon_functions> list.  Each function has a unique procedure number used "
40602 "in the RPC protocol which is assigned to that action when we publish "
40603 "libguestfs and cannot be reused.  Take the latest procedure number and "
40604 "increment it."
40605 msgstr ""
40606
40607 #. type: textblock
40608 #: ../src/guestfs.pod:2709
40609 msgid ""
40610 "For library-only actions of the second type, add to the "
40611 "C<non_daemon_functions> list.  Since these functions are serviced by the "
40612 "library and do not travel over the RPC mechanism to the daemon, these "
40613 "functions do not need a procedure number, and so the procedure number is set "
40614 "to C<-1>."
40615 msgstr ""
40616
40617 #. type: textblock
40618 #: ../src/guestfs.pod:2717
40619 msgid "Implement the action (in C):"
40620 msgstr ""
40621
40622 #. type: textblock
40623 #: ../src/guestfs.pod:2719
40624 msgid ""
40625 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40626 "C<daemon/> directory."
40627 msgstr ""
40628
40629 #. type: textblock
40630 #: ../src/guestfs.pod:2722
40631 msgid ""
40632 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40633 "(note: double underscore) in the C<src/> directory."
40634 msgstr ""
40635
40636 #. type: textblock
40637 #: ../src/guestfs.pod:2725
40638 msgid "In either case, use another function as an example of what to do."
40639 msgstr ""
40640
40641 #. type: textblock
40642 #: ../src/guestfs.pod:2729
40643 msgid "After making these changes, use C<make> to compile."
40644 msgstr ""
40645
40646 #. type: textblock
40647 #: ../src/guestfs.pod:2731
40648 msgid ""
40649 "Note that you don't need to implement the RPC, language bindings, manual "
40650 "pages or anything else.  It's all automatically generated from the OCaml "
40651 "description."
40652 msgstr ""
40653
40654 #. type: =head2
40655 #: ../src/guestfs.pod:2735
40656 msgid "ADDING TESTS FOR AN API ACTION"
40657 msgstr ""
40658
40659 #. type: textblock
40660 #: ../src/guestfs.pod:2737
40661 msgid ""
40662 "You can supply zero or as many tests as you want per API call.  The tests "
40663 "can either be added as part of the API description (C<generator/"
40664 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
40665 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
40666 "slower, so if possible use the first method."
40667 msgstr ""
40668
40669 #. type: textblock
40670 #: ../src/guestfs.pod:2743
40671 msgid ""
40672 "The following describes the test environment used when you add an API test "
40673 "in C<generator_actions.ml>."
40674 msgstr ""
40675
40676 #. type: textblock
40677 #: ../src/guestfs.pod:2746
40678 msgid "The test environment has 4 block devices:"
40679 msgstr ""
40680
40681 #. type: =item
40682 #: ../src/guestfs.pod:2750
40683 msgid "C</dev/sda> 500MB"
40684 msgstr "C</dev/sda> 500 МБ"
40685
40686 #. type: textblock
40687 #: ../src/guestfs.pod:2752
40688 msgid "General block device for testing."
40689 msgstr ""
40690
40691 #. type: =item
40692 #: ../src/guestfs.pod:2754
40693 msgid "C</dev/sdb> 50MB"
40694 msgstr "C</dev/sdb> 50 МБ"
40695
40696 #. type: textblock
40697 #: ../src/guestfs.pod:2756
40698 msgid ""
40699 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40700 "operations."
40701 msgstr ""
40702
40703 #. type: =item
40704 #: ../src/guestfs.pod:2759
40705 msgid "C</dev/sdc> 10MB"
40706 msgstr "C</dev/sdc> 10 МБ"
40707
40708 #. type: textblock
40709 #: ../src/guestfs.pod:2761
40710 msgid "Used in a few tests where two block devices are needed."
40711 msgstr ""
40712
40713 #. type: =item
40714 #: ../src/guestfs.pod:2763
40715 msgid "C</dev/sdd>"
40716 msgstr "C</dev/sdd>"
40717
40718 #. type: textblock
40719 #: ../src/guestfs.pod:2765
40720 msgid "ISO with fixed content (see C<images/test.iso>)."
40721 msgstr ""
40722
40723 #. type: textblock
40724 #: ../src/guestfs.pod:2769
40725 msgid ""
40726 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40727 "appliance and block devices are reused between tests.  So don't try testing "
40728 "L</guestfs_kill_subprocess> :-x"
40729 msgstr ""
40730
40731 #. type: textblock
40732 #: ../src/guestfs.pod:2773
40733 msgid ""
40734 "Each test starts with an initial scenario, selected using one of the "
40735 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
40736 "initialize the disks mentioned above in a particular way as documented in "
40737 "C<generator_types.ml>.  You should not assume anything about the previous "
40738 "contents of other disks that are not initialized."
40739 msgstr ""
40740
40741 #. type: textblock
40742 #: ../src/guestfs.pod:2779
40743 msgid ""
40744 "You can add a prerequisite clause to any individual test.  This is a run-"
40745 "time check, which, if it fails, causes the test to be skipped.  Useful if "
40746 "testing a command which might not work on all variations of libguestfs "
40747 "builds.  A test that has prerequisite of C<Always> means to run "
40748 "unconditionally."
40749 msgstr ""
40750
40751 #. type: textblock
40752 #: ../src/guestfs.pod:2785
40753 msgid ""
40754 "In addition, packagers can skip individual tests by setting environment "
40755 "variables before running C<make check>."
40756 msgstr ""
40757
40758 #. type: verbatim
40759 #: ../src/guestfs.pod:2788
40760 #, no-wrap
40761 msgid ""
40762 " SKIP_TEST_<CMD>_<NUM>=1\n"
40763 "\n"
40764 msgstr ""
40765
40766 #. type: textblock
40767 #: ../src/guestfs.pod:2790
40768 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40769 msgstr ""
40770
40771 #. type: textblock
40772 #: ../src/guestfs.pod:2792
40773 msgid "or:"
40774 msgstr "або:"
40775
40776 #. type: verbatim
40777 #: ../src/guestfs.pod:2794
40778 #, no-wrap
40779 msgid ""
40780 " SKIP_TEST_<CMD>=1\n"
40781 "\n"
40782 msgstr ""
40783
40784 #. type: textblock
40785 #: ../src/guestfs.pod:2796
40786 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40787 msgstr ""
40788
40789 #. type: textblock
40790 #: ../src/guestfs.pod:2798
40791 msgid "Packagers can run only certain tests by setting for example:"
40792 msgstr ""
40793
40794 #. type: verbatim
40795 #: ../src/guestfs.pod:2800
40796 #, no-wrap
40797 msgid ""
40798 " TEST_ONLY=\"vfs_type zerofree\"\n"
40799 "\n"
40800 msgstr ""
40801
40802 #. type: textblock
40803 #: ../src/guestfs.pod:2802
40804 msgid ""
40805 "See C<capitests/tests.c> for more details of how these environment variables "
40806 "work."
40807 msgstr ""
40808
40809 #. type: =head2
40810 #: ../src/guestfs.pod:2805
40811 msgid "DEBUGGING NEW API ACTIONS"
40812 msgstr ""
40813
40814 #. type: textblock
40815 #: ../src/guestfs.pod:2807
40816 msgid "Test new actions work before submitting them."
40817 msgstr ""
40818
40819 #. type: textblock
40820 #: ../src/guestfs.pod:2809
40821 msgid "You can use guestfish to try out new commands."
40822 msgstr ""
40823
40824 #. type: textblock
40825 #: ../src/guestfs.pod:2811
40826 msgid ""
40827 "Debugging the daemon is a problem because it runs inside a minimal "
40828 "environment.  However you can fprintf messages in the daemon to stderr, and "
40829 "they will show up if you use C<guestfish -v>."
40830 msgstr ""
40831
40832 #. type: =head2
40833 #: ../src/guestfs.pod:2815
40834 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40835 msgstr ""
40836
40837 #. type: textblock
40838 #: ../src/guestfs.pod:2817
40839 msgid ""
40840 "Our C source code generally adheres to some basic code-formatting "
40841 "conventions.  The existing code base is not totally consistent on this "
40842 "front, but we do prefer that contributed code be formatted similarly.  In "
40843 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40844 "indentation level, and other than that, follow the K&R style."
40845 msgstr ""
40846
40847 #. type: textblock
40848 #: ../src/guestfs.pod:2823
40849 msgid ""
40850 "If you use Emacs, add the following to one of one of your start-up files (e."
40851 "g., ~/.emacs), to help ensure that you get indentation right:"
40852 msgstr ""
40853
40854 #. type: verbatim
40855 #: ../src/guestfs.pod:2826
40856 #, no-wrap
40857 msgid ""
40858 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40859 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40860 " (add-hook 'find-file-hook\n"
40861 "     '(lambda () (if (and buffer-file-name\n"
40862 "                          (string-match \"/libguestfs\\\\>\"\n"
40863 "                              (buffer-file-name))\n"
40864 "                          (not (string-equal mode-name \"Change Log\"))\n"
40865 "                          (not (string-equal mode-name \"Makefile\")))\n"
40866 "                     (setq indent-tabs-mode nil))))\n"
40867 " \n"
40868 msgstr ""
40869
40870 #. type: verbatim
40871 #: ../src/guestfs.pod:2836
40872 #, no-wrap
40873 msgid ""
40874 " ;;; When editing C sources in libguestfs, use this style.\n"
40875 " (defun libguestfs-c-mode ()\n"
40876 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
40877 "   (interactive)\n"
40878 "   (c-set-style \"K&R\")\n"
40879 "   (setq c-indent-level 2)\n"
40880 "   (setq c-basic-offset 2))\n"
40881 " (add-hook 'c-mode-hook\n"
40882 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40883 "                               (buffer-file-name))\n"
40884 "                           (libguestfs-c-mode))))\n"
40885 "\n"
40886 msgstr ""
40887
40888 #. type: textblock
40889 #: ../src/guestfs.pod:2848
40890 msgid "Enable warnings when compiling (and fix any problems this finds):"
40891 msgstr ""
40892
40893 #. type: verbatim
40894 #: ../src/guestfs.pod:2851
40895 #, no-wrap
40896 msgid ""
40897 " ./configure --enable-gcc-warnings\n"
40898 "\n"
40899 msgstr ""
40900 " ./configure --enable-gcc-warnings\n"
40901 "\n"
40902
40903 #. type: textblock
40904 #: ../src/guestfs.pod:2853
40905 msgid "Useful targets are:"
40906 msgstr ""
40907
40908 #. type: verbatim
40909 #: ../src/guestfs.pod:2855
40910 #, no-wrap
40911 msgid ""
40912 " make syntax-check  # checks the syntax of the C code\n"
40913 " make check         # runs the test suite\n"
40914 "\n"
40915 msgstr ""
40916
40917 #. type: =head2
40918 #: ../src/guestfs.pod:2858
40919 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40920 msgstr ""
40921
40922 #. type: textblock
40923 #: ../src/guestfs.pod:2860
40924 msgid ""
40925 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40926 "which are used to do shell quoting."
40927 msgstr ""
40928
40929 #. type: =item
40930 #: ../src/guestfs.pod:2865
40931 msgid "%Q"
40932 msgstr "%Q"
40933
40934 #. type: textblock
40935 #: ../src/guestfs.pod:2867
40936 msgid ""
40937 "Simple shell quoted string.  Any spaces or other shell characters are "
40938 "escaped for you."
40939 msgstr ""
40940
40941 #. type: =item
40942 #: ../src/guestfs.pod:2870
40943 msgid "%R"
40944 msgstr "%R"
40945
40946 #. type: textblock
40947 #: ../src/guestfs.pod:2872
40948 msgid ""
40949 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40950 "the sysroot."
40951 msgstr ""
40952
40953 #. type: verbatim
40954 #: ../src/guestfs.pod:2879
40955 #, no-wrap
40956 msgid ""
40957 " asprintf (&cmd, \"cat %R\", path);\n"
40958 "\n"
40959 msgstr ""
40960 " asprintf (&cmd, \"cat %R\", path);\n"
40961 "\n"
40962
40963 #. type: textblock
40964 #: ../src/guestfs.pod:2881
40965 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40966 msgstr ""
40967
40968 #. type: textblock
40969 #: ../src/guestfs.pod:2883
40970 msgid ""
40971 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
40972 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
40973 "they are not passed via the shell (instead, straight to exec).  You probably "
40974 "want to use the C<sysroot_path()> function however."
40975 msgstr ""
40976
40977 #. type: =head2
40978 #: ../src/guestfs.pod:2889
40979 msgid "SUBMITTING YOUR NEW API ACTIONS"
40980 msgstr ""
40981
40982 #. type: textblock
40983 #: ../src/guestfs.pod:2891
40984 msgid ""
40985 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
40986 "libguestfs> and CC to L<rjones@redhat.com>."
40987 msgstr ""
40988
40989 #. type: =head2
40990 #: ../src/guestfs.pod:2895
40991 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40992 msgstr ""
40993
40994 #. type: textblock
40995 #: ../src/guestfs.pod:2897
40996 msgid "We support i18n (gettext anyhow) in the library."
40997 msgstr ""
40998
40999 #. type: textblock
41000 #: ../src/guestfs.pod:2899
41001 msgid ""
41002 "However many messages come from the daemon, and we don't translate those at "
41003 "the moment.  One reason is that the appliance generally has all locale files "
41004 "removed from it, because they take up a lot of space.  So we'd have to readd "
41005 "some of those, as well as copying our PO files into the appliance."
41006 msgstr ""
41007
41008 #. type: textblock
41009 #: ../src/guestfs.pod:2905
41010 msgid ""
41011 "Debugging messages are never translated, since they are intended for the "
41012 "programmers."
41013 msgstr ""
41014
41015 #. type: =head2
41016 #: ../src/guestfs.pod:2908
41017 msgid "SOURCE CODE SUBDIRECTORIES"
41018 msgstr ""
41019
41020 #. type: =item
41021 #: ../src/guestfs.pod:2912
41022 msgid "C<align>"
41023 msgstr ""
41024
41025 #. type: textblock
41026 #: ../src/guestfs.pod:2914
41027 msgid "L<virt-alignment-scan(1)> command and documentation."
41028 msgstr ""
41029
41030 #. type: textblock
41031 #: ../src/guestfs.pod:2918
41032 msgid "The libguestfs appliance, build scripts and so on."
41033 msgstr ""
41034
41035 #. type: =item
41036 #: ../src/guestfs.pod:2920
41037 msgid "C<capitests>"
41038 msgstr "C<capitests>"
41039
41040 #. type: textblock
41041 #: ../src/guestfs.pod:2922
41042 msgid "Automated tests of the C API."
41043 msgstr ""
41044
41045 #. type: =item
41046 #: ../src/guestfs.pod:2924
41047 msgid "C<cat>"
41048 msgstr "C<cat>"
41049
41050 #. type: textblock
41051 #: ../src/guestfs.pod:2926
41052 msgid ""
41053 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
41054 "documentation."
41055 msgstr ""
41056
41057 #. type: =item
41058 #: ../src/guestfs.pod:2929
41059 msgid "C<caution>"
41060 msgstr "C<caution>"
41061
41062 #. type: textblock
41063 #: ../src/guestfs.pod:2931
41064 msgid ""
41065 "Safety and liveness tests of components that libguestfs depends upon (not of "
41066 "libguestfs itself).  Mainly this is for qemu and the kernel."
41067 msgstr ""
41068
41069 #. type: =item
41070 #: ../src/guestfs.pod:2934
41071 msgid "C<clone>"
41072 msgstr ""
41073
41074 #. type: textblock
41075 #: ../src/guestfs.pod:2936
41076 msgid ""
41077 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
41078 "command and documentation."
41079 msgstr ""
41080
41081 #. type: =item
41082 #: ../src/guestfs.pod:2939
41083 msgid "C<contrib>"
41084 msgstr "C<contrib>"
41085
41086 #. type: textblock
41087 #: ../src/guestfs.pod:2941
41088 msgid "Outside contributions, experimental parts."
41089 msgstr ""
41090
41091 #. type: =item
41092 #: ../src/guestfs.pod:2943
41093 msgid "C<daemon>"
41094 msgstr "C<daemon>"
41095
41096 #. type: textblock
41097 #: ../src/guestfs.pod:2945
41098 msgid ""
41099 "The daemon that runs inside the libguestfs appliance and carries out actions."
41100 msgstr ""
41101
41102 #. type: =item
41103 #: ../src/guestfs.pod:2948
41104 msgid "C<df>"
41105 msgstr "C<df>"
41106
41107 #. type: textblock
41108 #: ../src/guestfs.pod:2950
41109 msgid "L<virt-df(1)> command and documentation."
41110 msgstr ""
41111
41112 #. type: =item
41113 #: ../src/guestfs.pod:2952
41114 msgid "C<edit>"
41115 msgstr "C<edit>"
41116
41117 #. type: textblock
41118 #: ../src/guestfs.pod:2954
41119 msgid "L<virt-edit(1)> command and documentation."
41120 msgstr ""
41121
41122 #. type: =item
41123 #: ../src/guestfs.pod:2956
41124 msgid "C<examples>"
41125 msgstr "C<examples>"
41126
41127 #. type: textblock
41128 #: ../src/guestfs.pod:2958
41129 msgid "C API example code."
41130 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
41131
41132 #. type: =item
41133 #: ../src/guestfs.pod:2960
41134 msgid "C<fish>"
41135 msgstr "C<fish>"
41136
41137 #. type: textblock
41138 #: ../src/guestfs.pod:2962
41139 msgid ""
41140 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41141 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41142 "L<virt-tar-out(1)>."
41143 msgstr ""
41144
41145 #. type: =item
41146 #: ../src/guestfs.pod:2966
41147 msgid "C<fuse>"
41148 msgstr "C<fuse>"
41149
41150 #. type: textblock
41151 #: ../src/guestfs.pod:2968
41152 msgid ""
41153 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41154 msgstr ""
41155
41156 #. type: =item
41157 #: ../src/guestfs.pod:2970
41158 msgid "C<generator>"
41159 msgstr "C<generator>"
41160
41161 #. type: textblock
41162 #: ../src/guestfs.pod:2972
41163 msgid ""
41164 "The crucially important generator, used to automatically generate large "
41165 "amounts of boilerplate C code for things like RPC and bindings."
41166 msgstr ""
41167
41168 #. type: =item
41169 #: ../src/guestfs.pod:2975
41170 msgid "C<images>"
41171 msgstr "C<images>"
41172
41173 #. type: textblock
41174 #: ../src/guestfs.pod:2977
41175 msgid "Files used by the test suite."
41176 msgstr ""
41177
41178 #. type: textblock
41179 #: ../src/guestfs.pod:2979
41180 msgid "Some \"phony\" guest images which we test against."
41181 msgstr ""
41182
41183 #. type: =item
41184 #: ../src/guestfs.pod:2981
41185 msgid "C<inspector>"
41186 msgstr "C<inspector>"
41187
41188 #. type: textblock
41189 #: ../src/guestfs.pod:2983
41190 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41191 msgstr ""
41192
41193 #. type: =item
41194 #: ../src/guestfs.pod:2985
41195 msgid "C<logo>"
41196 msgstr "C<logo>"
41197
41198 #. type: textblock
41199 #: ../src/guestfs.pod:2987
41200 msgid "Logo used on the website.  The fish is called Arthur by the way."
41201 msgstr ""
41202
41203 #. type: =item
41204 #: ../src/guestfs.pod:2989
41205 msgid "C<m4>"
41206 msgstr "C<m4>"
41207
41208 #. type: textblock
41209 #: ../src/guestfs.pod:2991
41210 msgid "M4 macros used by autoconf."
41211 msgstr ""
41212
41213 #. type: =item
41214 #: ../src/guestfs.pod:2993
41215 msgid "C<po>"
41216 msgstr "C<po>"
41217
41218 #. type: textblock
41219 #: ../src/guestfs.pod:2995
41220 msgid "Translations of simple gettext strings."
41221 msgstr "Переклади простих рядків gettext."
41222
41223 #. type: =item
41224 #: ../src/guestfs.pod:2997
41225 msgid "C<po-docs>"
41226 msgstr "C<po-docs>"
41227
41228 #. type: textblock
41229 #: ../src/guestfs.pod:2999
41230 msgid ""
41231 "The build infrastructure and PO files for translations of manpages and POD "
41232 "files.  Eventually this will be combined with the C<po> directory, but that "
41233 "is rather complicated."
41234 msgstr ""
41235
41236 #. type: =item
41237 #: ../src/guestfs.pod:3003
41238 msgid "C<regressions>"
41239 msgstr "C<regressions>"
41240
41241 #. type: textblock
41242 #: ../src/guestfs.pod:3005
41243 msgid "Regression tests."
41244 msgstr "Тести на регресії."
41245
41246 #. type: =item
41247 #: ../src/guestfs.pod:3007
41248 msgid "C<rescue>"
41249 msgstr "C<rescue>"
41250
41251 #. type: textblock
41252 #: ../src/guestfs.pod:3009
41253 msgid "L<virt-rescue(1)> command and documentation."
41254 msgstr ""
41255
41256 #. type: =item
41257 #: ../src/guestfs.pod:3011
41258 msgid "C<resize>"
41259 msgstr ""
41260
41261 #. type: textblock
41262 #: ../src/guestfs.pod:3013
41263 msgid "L<virt-resize(1)> command and documentation."
41264 msgstr ""
41265
41266 #. type: =item
41267 #: ../src/guestfs.pod:3015
41268 msgid "C<sparsify>"
41269 msgstr ""
41270
41271 #. type: textblock
41272 #: ../src/guestfs.pod:3017
41273 msgid "L<virt-sparsify(1)> command and documentation."
41274 msgstr ""
41275
41276 #. type: =item
41277 #: ../src/guestfs.pod:3019
41278 msgid "C<src>"
41279 msgstr "C<src>"
41280
41281 #. type: textblock
41282 #: ../src/guestfs.pod:3021
41283 msgid "Source code to the C library."
41284 msgstr ""
41285
41286 #. type: =item
41287 #: ../src/guestfs.pod:3023
41288 msgid "C<tools>"
41289 msgstr "C<tools>"
41290
41291 #. type: textblock
41292 #: ../src/guestfs.pod:3025
41293 msgid ""
41294 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
41295 msgstr ""
41296
41297 #. type: =item
41298 #: ../src/guestfs.pod:3027
41299 msgid "C<test-tool>"
41300 msgstr "C<test-tool>"
41301
41302 #. type: textblock
41303 #: ../src/guestfs.pod:3029
41304 msgid ""
41305 "Test tool for end users to test if their qemu/kernel combination will work "
41306 "with libguestfs."
41307 msgstr ""
41308
41309 #. type: =item
41310 #: ../src/guestfs.pod:3032
41311 msgid "C<csharp>"
41312 msgstr "C<csharp>"
41313
41314 #. type: =item
41315 #: ../src/guestfs.pod:3034
41316 msgid "C<erlang>"
41317 msgstr ""
41318
41319 #. type: =item
41320 #: ../src/guestfs.pod:3036
41321 msgid "C<haskell>"
41322 msgstr "C<haskell>"
41323
41324 #. type: =item
41325 #: ../src/guestfs.pod:3038
41326 msgid "C<java>"
41327 msgstr "C<java>"
41328
41329 #. type: =item
41330 #: ../src/guestfs.pod:3040
41331 msgid "C<ocaml>"
41332 msgstr "C<ocaml>"
41333
41334 #. type: =item
41335 #: ../src/guestfs.pod:3042
41336 msgid "C<php>"
41337 msgstr "C<php>"
41338
41339 #. type: =item
41340 #: ../src/guestfs.pod:3044
41341 msgid "C<perl>"
41342 msgstr "C<perl>"
41343
41344 #. type: =item
41345 #: ../src/guestfs.pod:3046
41346 msgid "C<python>"
41347 msgstr "C<python>"
41348
41349 #. type: =item
41350 #: ../src/guestfs.pod:3048
41351 msgid "C<ruby>"
41352 msgstr "C<ruby>"
41353
41354 #. type: textblock
41355 #: ../src/guestfs.pod:3050
41356 msgid "Language bindings."
41357 msgstr "Прив’язки до мов програмування."
41358
41359 #. type: =head2
41360 #: ../src/guestfs.pod:3054
41361 msgid "MAKING A STABLE RELEASE"
41362 msgstr ""
41363
41364 #. type: textblock
41365 #: ../src/guestfs.pod:3056
41366 msgid ""
41367 "When we make a stable release, there are several steps documented here.  See "
41368 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
41369 "branch policy."
41370 msgstr ""
41371
41372 #. type: textblock
41373 #: ../src/guestfs.pod:3064
41374 msgid ""
41375 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
41376 msgstr ""
41377
41378 #. type: textblock
41379 #: ../src/guestfs.pod:3069
41380 msgid "Finalize RELEASE-NOTES."
41381 msgstr ""
41382
41383 #. type: textblock
41384 #: ../src/guestfs.pod:3073
41385 msgid "Update ROADMAP."
41386 msgstr ""
41387
41388 #. type: textblock
41389 #: ../src/guestfs.pod:3077
41390 msgid "Run C<src/api-support/update-from-tarballs.sh>."
41391 msgstr ""
41392
41393 #. type: textblock
41394 #: ../src/guestfs.pod:3081
41395 msgid "Push and pull from Transifex."
41396 msgstr ""
41397
41398 #. type: textblock
41399 #: ../src/guestfs.pod:3083
41400 msgid "Run:"
41401 msgstr ""
41402
41403 #. type: verbatim
41404 #: ../src/guestfs.pod:3085
41405 #, no-wrap
41406 msgid ""
41407 " tx push -s\n"
41408 "\n"
41409 msgstr ""
41410
41411 #. type: textblock
41412 #: ../src/guestfs.pod:3087
41413 msgid "to push the latest POT files to Transifex.  Then run:"
41414 msgstr ""
41415
41416 #. type: verbatim
41417 #: ../src/guestfs.pod:3089
41418 #, no-wrap
41419 msgid ""
41420 " ./tx-pull.sh\n"
41421 "\n"
41422 msgstr ""
41423
41424 #. type: textblock
41425 #: ../src/guestfs.pod:3091
41426 msgid "which is a wrapper to pull the latest translated C<*.po> files."
41427 msgstr ""
41428
41429 #. type: textblock
41430 #: ../src/guestfs.pod:3095
41431 msgid ""
41432 "Create new stable and development directories under L<http://libguestfs.org/"
41433 "download>."
41434 msgstr ""
41435
41436 #. type: textblock
41437 #: ../src/guestfs.pod:3100
41438 msgid "Create the branch in git:"
41439 msgstr ""
41440
41441 #. type: verbatim
41442 #: ../src/guestfs.pod:3102
41443 #, no-wrap
41444 msgid ""
41445 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
41446 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
41447 " git branch stable-1.XX\n"
41448 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
41449 "\n"
41450 msgstr ""
41451
41452 #. type: =head1
41453 #: ../src/guestfs.pod:3109
41454 msgid "LIMITS"
41455 msgstr "ОБМЕЖЕННЯ"
41456
41457 #. type: =head2
41458 #: ../src/guestfs.pod:3111
41459 msgid "PROTOCOL LIMITS"
41460 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
41461
41462 #. type: textblock
41463 #: ../src/guestfs.pod:3113
41464 msgid ""
41465 "Internally libguestfs uses a message-based protocol to pass API calls and "
41466 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
41467 "plenty more detail about this).  The maximum message size used by the "
41468 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
41469 "aware of this limit.  The API calls which may be affected are individually "
41470 "documented, with a link back to this section of the documentation."
41471 msgstr ""
41472
41473 #. type: textblock
41474 #: ../src/guestfs.pod:3121
41475 msgid ""
41476 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
41477 "a simple string.  Because this string is at some point internally encoded as "
41478 "a message, the maximum size that it can return is slightly under 4 MB.  If "
41479 "the requested file is larger than this then you will get an error."
41480 msgstr ""
41481
41482 #. type: textblock
41483 #: ../src/guestfs.pod:3127
41484 msgid ""
41485 "In order to transfer large files into and out of the guest filesystem, you "
41486 "need to use particular calls that support this.  The sections L</UPLOADING> "
41487 "and L</DOWNLOADING> document how to do this."
41488 msgstr ""
41489
41490 #. type: textblock
41491 #: ../src/guestfs.pod:3131
41492 msgid ""
41493 "You might also consider mounting the disk image using our FUSE filesystem "
41494 "support (L<guestmount(1)>)."
41495 msgstr ""
41496
41497 #. type: =head2
41498 #: ../src/guestfs.pod:3134
41499 msgid "MAXIMUM NUMBER OF DISKS"
41500 msgstr ""
41501
41502 #. type: textblock
41503 #: ../src/guestfs.pod:3136
41504 msgid "When using virtio disks (the default) the current limit is B<25> disks."
41505 msgstr ""
41506
41507 #. type: textblock
41508 #: ../src/guestfs.pod:3139
41509 msgid ""
41510 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
41511 "slots.  However febootstrap only understands disks with names C</dev/vda> "
41512 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41513 "purposes."
41514 msgstr ""
41515
41516 #. type: textblock
41517 #: ../src/guestfs.pod:3144
41518 msgid ""
41519 "We are working to substantially raise this limit in future versions but it "
41520 "requires complex changes to qemu."
41521 msgstr ""
41522
41523 #. type: textblock
41524 #: ../src/guestfs.pod:3147
41525 msgid ""
41526 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41527 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
41528 "requires changes to qemu."
41529 msgstr ""
41530
41531 #. type: =head2
41532 #: ../src/guestfs.pod:3151
41533 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41534 msgstr ""
41535
41536 #. type: textblock
41537 #: ../src/guestfs.pod:3153
41538 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41539 msgstr ""
41540
41541 #. type: textblock
41542 #: ../src/guestfs.pod:3155
41543 msgid ""
41544 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
41545 "vda>, and C</dev/vda1> through C</dev/vda15>)."
41546 msgstr ""
41547
41548 #. type: textblock
41549 #: ../src/guestfs.pod:3158
41550 msgid ""
41551 "If you attach a disk with more than 15 partitions, the extra partitions are "
41552 "ignored by libguestfs."
41553 msgstr ""
41554
41555 #. type: =head2
41556 #: ../src/guestfs.pod:3161
41557 msgid "MAXIMUM SIZE OF A DISK"
41558 msgstr ""
41559
41560 #. type: textblock
41561 #: ../src/guestfs.pod:3163
41562 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41563 msgstr ""
41564
41565 #. type: textblock
41566 #: ../src/guestfs.pod:3165
41567 msgid ""
41568 "We have tested block devices up to 1 exabyte (2**60 or "
41569 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41570 "filesystem."
41571 msgstr ""
41572
41573 #. type: textblock
41574 #: ../src/guestfs.pod:3169
41575 msgid ""
41576 "Although libguestfs probably does not impose any limit, the underlying host "
41577 "storage will.  If you store disk images on a host ext4 filesystem, then the "
41578 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41579 "TB).  If you store disk images as host logical volumes then you are limited "
41580 "by the maximum size of an LV."
41581 msgstr ""
41582
41583 #. type: textblock
41584 #: ../src/guestfs.pod:3175
41585 msgid ""
41586 "For the hugest disk image files, we recommend using XFS on the host for "
41587 "storage."
41588 msgstr ""
41589
41590 #. type: =head2
41591 #: ../src/guestfs.pod:3178
41592 msgid "MAXIMUM SIZE OF A PARTITION"
41593 msgstr ""
41594
41595 #. type: textblock
41596 #: ../src/guestfs.pod:3180
41597 msgid ""
41598 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41599 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
41600 "address a partition located beyond 2 TB on the disk."
41601 msgstr ""
41602
41603 #. type: textblock
41604 #: ../src/guestfs.pod:3184
41605 msgid ""
41606 "It is recommended that you use GPT partitions on disks which are larger than "
41607 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
41608 "which are theoretically larger than the largest disk we could support."
41609 msgstr ""
41610
41611 #. type: =head2
41612 #: ../src/guestfs.pod:3189
41613 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41614 msgstr ""
41615
41616 #. type: textblock
41617 #: ../src/guestfs.pod:3191
41618 msgid ""
41619 "This depends on the filesystem type.  libguestfs itself does not impose any "
41620 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
41621 "what these limits are."
41622 msgstr ""
41623
41624 #. type: =head2
41625 #: ../src/guestfs.pod:3195
41626 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41627 msgstr ""
41628
41629 #. type: textblock
41630 #: ../src/guestfs.pod:3197
41631 msgid ""
41632 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41633 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41634 "uploads and downloads."
41635 msgstr ""
41636
41637 #. type: =head2
41638 #: ../src/guestfs.pod:3201
41639 msgid "INSPECTION LIMITS"
41640 msgstr ""
41641
41642 #. type: textblock
41643 #: ../src/guestfs.pod:3203
41644 msgid ""
41645 "The inspection code has several arbitrary limits on things like the size of "
41646 "Windows Registry hive it will read, and the length of product name.  These "
41647 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41648 "memory and disk space on the host, and should not be reached in practice.  "
41649 "See the source code for more information."
41650 msgstr ""
41651
41652 #. type: textblock
41653 #: ../src/guestfs.pod:3229
41654 msgid ""
41655 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
41656 "effect as calling C<guestfs_set_verbose (g, 1)>."
41657 msgstr ""
41658
41659 #. type: textblock
41660 #: ../src/guestfs.pod:3241
41661 msgid ""
41662 "Set the path that libguestfs uses to search for a supermin appliance.  See "
41663 "the discussion of paths in section L</PATH> above."
41664 msgstr ""
41665
41666 #. type: textblock
41667 #: ../src/guestfs.pod:3250
41668 msgid "See also L</QEMU WRAPPERS> above."
41669 msgstr ""
41670
41671 #. type: textblock
41672 #: ../src/guestfs.pod:3254
41673 msgid ""
41674 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
41675 "effect as calling C<guestfs_set_trace (g, 1)>."
41676 msgstr ""
41677
41678 #. type: textblock
41679 #: ../src/guestfs.pod:3272
41680 msgid ""
41681 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41682 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41683 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
41684 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
41685 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41686 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
41687 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
41688 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
41689 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
41690 ">, L<http://libguestfs.org/>."
41691 msgstr ""
41692
41693 #. type: textblock
41694 #: ../src/guestfs.pod:3308
41695 msgid ""
41696 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
41697 "(8)>, L<disktype(1)>."
41698 msgstr ""
41699
41700 #. type: =head1
41701 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
41702 #: ../tools/virt-win-reg.pl:772
41703 msgid "BUGS"
41704 msgstr "ВАДИ"
41705
41706 #. type: textblock
41707 #: ../src/guestfs.pod:3317
41708 msgid "To get a list of bugs against libguestfs use this link:"
41709 msgstr ""
41710 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
41711 "посиланням:"
41712
41713 #. type: textblock
41714 #: ../src/guestfs.pod:3319
41715 msgid ""
41716 "L<https://bugzilla.redhat.com/buglist.cgi?"
41717 "component=libguestfs&product=Virtualization+Tools>"
41718 msgstr ""
41719 "L<https://bugzilla.redhat.com/buglist.cgi?"
41720 "component=libguestfs&product=Virtualization+Tools>"
41721
41722 #. type: textblock
41723 #: ../src/guestfs.pod:3321
41724 msgid "To report a new bug against libguestfs use this link:"
41725 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
41726
41727 #. type: textblock
41728 #: ../src/guestfs.pod:3323
41729 msgid ""
41730 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41731 "component=libguestfs&product=Virtualization+Tools>"
41732 msgstr ""
41733 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41734 "component=libguestfs&product=Virtualization+Tools>"
41735
41736 #. type: textblock
41737 #: ../src/guestfs.pod:3325
41738 msgid "When reporting a bug, please check:"
41739 msgstr ""
41740
41741 #. type: textblock
41742 #: ../src/guestfs.pod:3331
41743 msgid "That the bug hasn't been reported already."
41744 msgstr ""
41745
41746 #. type: textblock
41747 #: ../src/guestfs.pod:3335
41748 msgid "That you are testing a recent version."
41749 msgstr ""
41750
41751 #. type: textblock
41752 #: ../src/guestfs.pod:3339
41753 msgid "Describe the bug accurately, and give a way to reproduce it."
41754 msgstr ""
41755
41756 #. type: textblock
41757 #: ../src/guestfs.pod:3343
41758 msgid ""
41759 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41760 "bug report."
41761 msgstr ""
41762
41763 #. type: textblock
41764 #: ../test-tool/libguestfs-test-tool.pod:5
41765 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41766 msgstr ""
41767
41768 #. type: verbatim
41769 #: ../test-tool/libguestfs-test-tool.pod:9
41770 #, no-wrap
41771 msgid ""
41772 " libguestfs-test-tool [--options]\n"
41773 "\n"
41774 msgstr ""
41775
41776 #. type: textblock
41777 #: ../test-tool/libguestfs-test-tool.pod:13
41778 msgid ""
41779 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41780 "to check basic libguestfs functionality is working.  This is needed because "
41781 "libguestfs occasionally breaks for reasons beyond our control: usually "
41782 "because of changes in the underlying qemu or kernel packages, or the host "
41783 "environment."
41784 msgstr ""
41785
41786 #. type: textblock
41787 #: ../test-tool/libguestfs-test-tool.pod:19
41788 msgid "If you suspect a problem in libguestfs, then just run:"
41789 msgstr ""
41790
41791 #. type: verbatim
41792 #: ../test-tool/libguestfs-test-tool.pod:21
41793 #, no-wrap
41794 msgid ""
41795 " libguestfs-test-tool\n"
41796 "\n"
41797 msgstr ""
41798
41799 #. type: textblock
41800 #: ../test-tool/libguestfs-test-tool.pod:23
41801 msgid "It will print lots of diagnostic messages."
41802 msgstr ""
41803
41804 #. type: textblock
41805 #: ../test-tool/libguestfs-test-tool.pod:25
41806 msgid "If it runs to completion successfully, you will see this near the end:"
41807 msgstr ""
41808
41809 #. type: verbatim
41810 #: ../test-tool/libguestfs-test-tool.pod:27
41811 #, no-wrap
41812 msgid ""
41813 " ===== TEST FINISHED OK =====\n"
41814 "\n"
41815 msgstr ""
41816
41817 #. type: textblock
41818 #: ../test-tool/libguestfs-test-tool.pod:29
41819 msgid "and the test tool will exit with code 0."
41820 msgstr ""
41821
41822 #. type: textblock
41823 #: ../test-tool/libguestfs-test-tool.pod:31
41824 msgid ""
41825 "If it fails (and/or exits with non-zero error code), please paste the "
41826 "I<complete, unedited> output of the test tool into a bug report.  More "
41827 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41828 "> website."
41829 msgstr ""
41830
41831 #. type: textblock
41832 #: ../test-tool/libguestfs-test-tool.pod:42
41833 msgid "Display short usage information and exit."
41834 msgstr ""
41835
41836 #. type: =item
41837 #: ../test-tool/libguestfs-test-tool.pod:44
41838 msgid "B<--qemu qemu_binary>"
41839 msgstr ""
41840
41841 #. type: textblock
41842 #: ../test-tool/libguestfs-test-tool.pod:46
41843 msgid ""
41844 "If you have downloaded another qemu binary, point this option at the full "
41845 "path of the binary to try it."
41846 msgstr ""
41847
41848 #. type: =item
41849 #: ../test-tool/libguestfs-test-tool.pod:49
41850 msgid "B<--qemudir qemu_source_dir>"
41851 msgstr ""
41852
41853 #. type: textblock
41854 #: ../test-tool/libguestfs-test-tool.pod:51
41855 msgid ""
41856 "If you have compiled qemu from source, point this option at the source "
41857 "directory to try it."
41858 msgstr ""
41859
41860 #. type: =item
41861 #: ../test-tool/libguestfs-test-tool.pod:54
41862 msgid "B<-t N>"
41863 msgstr ""
41864
41865 #. type: =item
41866 #: ../test-tool/libguestfs-test-tool.pod:56
41867 msgid "B<--timeout N>"
41868 msgstr ""
41869
41870 #. type: textblock
41871 #: ../test-tool/libguestfs-test-tool.pod:58
41872 msgid ""
41873 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
41874 "minutes) which does not usually need to be adjusted."
41875 msgstr ""
41876
41877 #. type: =head1
41878 #: ../test-tool/libguestfs-test-tool.pod:63
41879 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41880 msgstr ""
41881
41882 #. type: textblock
41883 #: ../test-tool/libguestfs-test-tool.pod:65
41884 msgid ""
41885 "If you have compiled another version of qemu from source and would like to "
41886 "try that, then you can use the I<--qemudir> option to point to the qemu "
41887 "source directory."
41888 msgstr ""
41889
41890 #. type: textblock
41891 #: ../test-tool/libguestfs-test-tool.pod:69
41892 msgid ""
41893 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41894 "option to point to the binary."
41895 msgstr ""
41896
41897 #. type: textblock
41898 #: ../test-tool/libguestfs-test-tool.pod:72
41899 msgid ""
41900 "Note when using these options, you can ignore the business of qemu wrapper "
41901 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41902 "wrapper script for you if one is needed."
41903 msgstr ""
41904
41905 #. type: =head1
41906 #: ../test-tool/libguestfs-test-tool.pod:76
41907 msgid "TRYING OUT A DIFFERENT KERNEL"
41908 msgstr ""
41909
41910 #. type: textblock
41911 #: ../test-tool/libguestfs-test-tool.pod:78
41912 msgid ""
41913 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41914 "libguestfs tries.  You do this by setting the environment variables "
41915 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41916 msgstr ""
41917
41918 #. type: textblock
41919 #: ../test-tool/libguestfs-test-tool.pod:82
41920 msgid ""
41921 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41922 "information."
41923 msgstr ""
41924
41925 #. type: =head1
41926 #: ../test-tool/libguestfs-test-tool.pod:85
41927 msgid "SELF-DIAGNOSIS"
41928 msgstr ""
41929
41930 #. type: textblock
41931 #: ../test-tool/libguestfs-test-tool.pod:87
41932 msgid ""
41933 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41934 "produced by libguestfs-test-tool and/or possible errors."
41935 msgstr ""
41936
41937 #. type: textblock
41938 #: ../test-tool/libguestfs-test-tool.pod:92
41939 msgid ""
41940 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41941 "I<1> if there was an error."
41942 msgstr ""
41943
41944 #. type: textblock
41945 #: ../test-tool/libguestfs-test-tool.pod:97
41946 msgid ""
41947 "For the full list of environment variables which may affect libguestfs, "
41948 "please see the L<guestfs(3)> manual page."
41949 msgstr ""
41950
41951 #. type: textblock
41952 #: ../test-tool/libguestfs-test-tool.pod:102
41953 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41954 msgstr ""
41955
41956 #. type: textblock
41957 #: ../tools/virt-list-filesystems.pl:32
41958 msgid ""
41959 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41960 msgstr ""
41961
41962 #. type: verbatim
41963 #: ../tools/virt-list-filesystems.pl:36
41964 #, no-wrap
41965 msgid ""
41966 " virt-list-filesystems [--options] domname\n"
41967 "\n"
41968 msgstr ""
41969
41970 #. type: verbatim
41971 #: ../tools/virt-list-filesystems.pl:38
41972 #, no-wrap
41973 msgid ""
41974 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41975 "\n"
41976 msgstr ""
41977
41978 #. type: textblock
41979 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41980 msgid ""
41981 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
41982 "replacement."
41983 msgstr ""
41984
41985 #. type: textblock
41986 #: ../tools/virt-list-filesystems.pl:45
41987 msgid ""
41988 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41989 "are contained in a virtual machine or disk image."
41990 msgstr ""
41991
41992 #. type: textblock
41993 #: ../tools/virt-list-filesystems.pl:49
41994 msgid ""
41995 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41996 "functionality.  For more complex cases you should look at the L<guestfish(1)"
41997 "> tool."
41998 msgstr ""
41999
42000 #. type: textblock
42001 #: ../tools/virt-list-filesystems.pl:112
42002 msgid ""
42003 "With this option, C<virt-list-filesystems> displays the type of each "
42004 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
42005 msgstr ""
42006
42007 #. type: =item
42008 #: ../tools/virt-list-filesystems.pl:119
42009 msgid "B<-a>"
42010 msgstr "B<-a>"
42011
42012 #. type: textblock
42013 #: ../tools/virt-list-filesystems.pl:123
42014 msgid ""
42015 "Normally we only show mountable filesystems.  If this option is given then "
42016 "swap devices are shown too."
42017 msgstr ""
42018
42019 #. type: textblock
42020 #: ../tools/virt-list-filesystems.pl:197
42021 msgid ""
42022 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42023 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42024 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42025 msgstr ""
42026 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42027 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42028 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42029
42030 #. type: textblock
42031 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
42032 msgid "Copyright (C) 2009 Red Hat Inc."
42033 msgstr "© Red Hat Inc., 2009"
42034
42035 #. type: textblock
42036 #: ../tools/virt-list-partitions.pl:32
42037 msgid ""
42038 "virt-list-partitions - List partitions in a virtual machine or disk image"
42039 msgstr ""
42040
42041 #. type: verbatim
42042 #: ../tools/virt-list-partitions.pl:36
42043 #, no-wrap
42044 msgid ""
42045 " virt-list-partitions [--options] domname\n"
42046 "\n"
42047 msgstr ""
42048 " virt-list-partitions [--параметри] назва_домену\n"
42049 "\n"
42050
42051 #. type: verbatim
42052 #: ../tools/virt-list-partitions.pl:38
42053 #, no-wrap
42054 msgid ""
42055 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
42056 "\n"
42057 msgstr ""
42058 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
42059 "\n"
42060
42061 #. type: textblock
42062 #: ../tools/virt-list-partitions.pl:45
42063 msgid ""
42064 "C<virt-list-partitions> is a command line tool to list the partitions that "
42065 "are contained in a virtual machine or disk image.  It is mainly useful as a "
42066 "first step to using L<virt-resize(1)>."
42067 msgstr ""
42068
42069 #. type: textblock
42070 #: ../tools/virt-list-partitions.pl:50
42071 msgid ""
42072 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42073 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42074 "> tool."
42075 msgstr ""
42076
42077 #. type: textblock
42078 #: ../tools/virt-list-partitions.pl:113
42079 msgid "Show sizes in human-readable form (eg. \"1G\")."
42080 msgstr ""
42081
42082 #. type: textblock
42083 #: ../tools/virt-list-partitions.pl:123
42084 msgid ""
42085 "With this option, C<virt-list-partitions> displays the type and size of each "
42086 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42087 msgstr ""
42088
42089 #. type: =item
42090 #: ../tools/virt-list-partitions.pl:130
42091 msgid "B<-t>"
42092 msgstr "B<-t>"
42093
42094 #. type: =item
42095 #: ../tools/virt-list-partitions.pl:132
42096 msgid "B<--total>"
42097 msgstr "B<--total>"
42098
42099 #. type: textblock
42100 #: ../tools/virt-list-partitions.pl:134
42101 msgid ""
42102 "Display the total size of each block device (as a separate row or rows)."
42103 msgstr ""
42104
42105 #. type: textblock
42106 #: ../tools/virt-list-partitions.pl:267
42107 msgid ""
42108 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42109 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42110 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42111 msgstr ""
42112 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42113 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42114 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42115
42116 #. type: textblock
42117 #: ../tools/virt-list-partitions.pl:283
42118 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42119 msgstr "© Red Hat Inc., 2009–2010"
42120
42121 #. type: textblock
42122 #: ../tools/virt-make-fs.pl:37
42123 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42124 msgstr ""
42125
42126 #. type: verbatim
42127 #: ../tools/virt-make-fs.pl:41
42128 #, no-wrap
42129 msgid ""
42130 " virt-make-fs [--options] input.tar output.img\n"
42131 "\n"
42132 msgstr ""
42133
42134 #. type: verbatim
42135 #: ../tools/virt-make-fs.pl:43
42136 #, no-wrap
42137 msgid ""
42138 " virt-make-fs [--options] input.tar.gz output.img\n"
42139 "\n"
42140 msgstr ""
42141
42142 #. type: verbatim
42143 #: ../tools/virt-make-fs.pl:45
42144 #, no-wrap
42145 msgid ""
42146 " virt-make-fs [--options] directory output.img\n"
42147 "\n"
42148 msgstr ""
42149
42150 #. type: textblock
42151 #: ../tools/virt-make-fs.pl:49
42152 msgid ""
42153 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42154 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
42155 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
42156 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42157 "you want to attach these filesystems to existing virtual machines (eg. to "
42158 "import large amounts of read-only data to a VM)."
42159 msgstr ""
42160
42161 #. type: textblock
42162 #: ../tools/virt-make-fs.pl:57
42163 msgid "Basic usage is:"
42164 msgstr ""
42165
42166 #. type: verbatim
42167 #: ../tools/virt-make-fs.pl:59
42168 #, no-wrap
42169 msgid ""
42170 " virt-make-fs input output.img\n"
42171 "\n"
42172 msgstr ""
42173
42174 #. type: textblock
42175 #: ../tools/virt-make-fs.pl:61
42176 msgid ""
42177 "where C<input> is either a directory containing files that you want to add, "
42178 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42179 "C<output.img> is a disk image.  The input type is detected automatically.  "
42180 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42181 "extra flags (see L</OPTIONS> below)."
42182 msgstr ""
42183
42184 #. type: =head2
42185 #: ../tools/virt-make-fs.pl:67
42186 msgid "FILESYSTEM TYPE"
42187 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
42188
42189 #. type: textblock
42190 #: ../tools/virt-make-fs.pl:69
42191 msgid ""
42192 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
42193 "libguestfs supports can be used (but I<not> read-only formats like "
42194 "ISO9660).  Here are some of the more common choices:"
42195 msgstr ""
42196
42197 #. type: =item
42198 #: ../tools/virt-make-fs.pl:75
42199 msgid "I<ext3>"
42200 msgstr "I<ext3>"
42201
42202 #. type: textblock
42203 #: ../tools/virt-make-fs.pl:77
42204 msgid ""
42205 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
42206 "you are not going to use the filesystem in a way that requires the journal, "
42207 "then this is just wasted overhead."
42208 msgstr ""
42209
42210 #. type: =item
42211 #: ../tools/virt-make-fs.pl:81
42212 msgid "I<ntfs> or I<vfat>"
42213 msgstr "I<ntfs> або I<vfat>"
42214
42215 #. type: textblock
42216 #: ../tools/virt-make-fs.pl:83
42217 msgid "Useful if exporting data to a Windows guest."
42218 msgstr ""
42219
42220 #. type: textblock
42221 #: ../tools/virt-make-fs.pl:85
42222 msgid ""
42223 "I<Note for vfat>: The tar archive or local directory must only contain files "
42224 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
42225 "program running within libguestfs is unable to change the ownership of non-"
42226 "root files, since vfat itself does not support this."
42227 msgstr ""
42228
42229 #. type: =item
42230 #: ../tools/virt-make-fs.pl:90
42231 msgid "I<minix>"
42232 msgstr "I<minix>"
42233
42234 #. type: textblock
42235 #: ../tools/virt-make-fs.pl:92
42236 msgid ""
42237 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42238 "total filesystem size."
42239 msgstr ""
42240
42241 #. type: =head3
42242 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
42243 #: ../tools/virt-make-fs.pl:149
42244 msgid "EXAMPLE"
42245 msgstr "ПРИКЛАД"
42246
42247 #. type: verbatim
42248 #: ../tools/virt-make-fs.pl:99
42249 #, no-wrap
42250 msgid ""
42251 " virt-make-fs --type=minix input minixfs.img\n"
42252 "\n"
42253 msgstr ""
42254
42255 #. type: =head2
42256 #: ../tools/virt-make-fs.pl:101
42257 msgid "TO PARTITION OR NOT TO PARTITION"
42258 msgstr ""
42259
42260 #. type: textblock
42261 #: ../tools/virt-make-fs.pl:103
42262 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42263 msgstr ""
42264
42265 #. type: textblock
42266 #: ../tools/virt-make-fs.pl:105
42267 msgid ""
42268 "Adding a partition can make the disk image more compatible with certain "
42269 "virtualized operating systems which don't expect to see a filesystem "
42270 "directly located on a block device (Linux doesn't care and will happily "
42271 "handle both types)."
42272 msgstr ""
42273
42274 #. type: textblock
42275 #: ../tools/virt-make-fs.pl:110
42276 msgid ""
42277 "On the other hand, if you have a partition table then the output image is no "
42278 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
42279 "directly on a partitioned disk image.  (However libguestfs tools such as "
42280 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
42281 msgstr ""
42282
42283 #. type: textblock
42284 #: ../tools/virt-make-fs.pl:118
42285 msgid "Add an MBR partition:"
42286 msgstr ""
42287
42288 #. type: verbatim
42289 #: ../tools/virt-make-fs.pl:120
42290 #, no-wrap
42291 msgid ""
42292 " virt-make-fs --partition -- input disk.img\n"
42293 "\n"
42294 msgstr ""
42295
42296 #. type: textblock
42297 #: ../tools/virt-make-fs.pl:122
42298 msgid ""
42299 "If the output disk image could be terabyte-sized or larger, it's better to "
42300 "use an EFI/GPT-compatible partition table:"
42301 msgstr ""
42302
42303 #. type: verbatim
42304 #: ../tools/virt-make-fs.pl:125
42305 #, no-wrap
42306 msgid ""
42307 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
42308 "\n"
42309 msgstr ""
42310
42311 #. type: =head2
42312 #: ../tools/virt-make-fs.pl:127
42313 msgid "EXTRA SPACE"
42314 msgstr ""
42315
42316 #. type: textblock
42317 #: ../tools/virt-make-fs.pl:129
42318 msgid ""
42319 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
42320 "the files that it contains, but might have extra space.  Depending on how "
42321 "you are going to use the output, you might think this extra space is wasted "
42322 "and want to minimize it, or you might want to leave space so that more files "
42323 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
42324 "but you can use the I<--size> flag to leave space in the filesystem if you "
42325 "want it."
42326 msgstr ""
42327
42328 #. type: textblock
42329 #: ../tools/virt-make-fs.pl:137
42330 msgid ""
42331 "An alternative way to leave extra space but not make the output image any "
42332 "bigger is to use an alternative disk image format (instead of the default "
42333 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
42334 "image format (check your hypervisor supports this before using it).  This "
42335 "allows you to choose a large I<--size> but the extra space won't actually be "
42336 "allocated in the image until you try to store something in it."
42337 msgstr ""
42338
42339 #. type: textblock
42340 #: ../tools/virt-make-fs.pl:145
42341 msgid ""
42342 "Don't forget that you can also use local commands including L<resize2fs(8)> "
42343 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
42344 "to build another image from scratch."
42345 msgstr ""
42346
42347 #. type: verbatim
42348 #: ../tools/virt-make-fs.pl:151
42349 #, no-wrap
42350 msgid ""
42351 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42352 "\n"
42353 msgstr ""
42354 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42355 "\n"
42356
42357 #. type: textblock
42358 #: ../tools/virt-make-fs.pl:179
42359 msgid "Enable debugging information."
42360 msgstr "Увімкнути виведення діагностичних даних."
42361
42362 #. type: =item
42363 #: ../tools/virt-make-fs.pl:185
42364 msgid "B<--size=E<lt>NE<gt>>"
42365 msgstr "B<--size=E<lt>NE<gt>>"
42366
42367 #. type: =item
42368 #: ../tools/virt-make-fs.pl:187
42369 msgid "B<--size=+E<lt>NE<gt>>"
42370 msgstr "B<--size=+E<lt>NE<gt>>"
42371
42372 #. type: =item
42373 #: ../tools/virt-make-fs.pl:189
42374 msgid "B<-s E<lt>NE<gt>>"
42375 msgstr "B<-s E<lt>NE<gt>>"
42376
42377 #. type: =item
42378 #: ../tools/virt-make-fs.pl:191
42379 msgid "B<-s +E<lt>NE<gt>>"
42380 msgstr "B<-s +E<lt>NE<gt>>"
42381
42382 #. type: textblock
42383 #: ../tools/virt-make-fs.pl:193
42384 msgid ""
42385 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
42386 msgstr ""
42387
42388 #. type: textblock
42389 #: ../tools/virt-make-fs.pl:196
42390 msgid ""
42391 "If this option is I<not> given, then the output image will be just large "
42392 "enough to contain all the files, with not much wasted space."
42393 msgstr ""
42394
42395 #. type: textblock
42396 #: ../tools/virt-make-fs.pl:199
42397 msgid ""
42398 "To choose a fixed size output disk, specify an absolute number followed by b/"
42399 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42400 "Petabytes or Exabytes.  This must be large enough to contain all the input "
42401 "files, else you will get an error."
42402 msgstr ""
42403
42404 #. type: textblock
42405 #: ../tools/virt-make-fs.pl:204
42406 msgid ""
42407 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
42408 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42409 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
42410 "the input files, and (approximately) an extra 200 MB free space."
42411 msgstr ""
42412
42413 #. type: textblock
42414 #: ../tools/virt-make-fs.pl:210
42415 msgid ""
42416 "Note that virt-make-fs estimates free space, and therefore will not produce "
42417 "filesystems containing precisely the free space requested.  (It is much more "
42418 "expensive and time-consuming to produce a filesystem which has precisely the "
42419 "desired free space)."
42420 msgstr ""
42421
42422 #. type: =item
42423 #: ../tools/virt-make-fs.pl:219
42424 msgid "B<--format=E<lt>fmtE<gt>>"
42425 msgstr ""
42426
42427 #. type: =item
42428 #: ../tools/virt-make-fs.pl:221
42429 msgid "B<-F E<lt>fmtE<gt>>"
42430 msgstr ""
42431
42432 #. type: textblock
42433 #: ../tools/virt-make-fs.pl:223
42434 msgid "Choose the output disk image format."
42435 msgstr ""
42436
42437 #. type: textblock
42438 #: ../tools/virt-make-fs.pl:225
42439 msgid "The default is C<raw> (raw sparse disk image)."
42440 msgstr ""
42441
42442 #. type: textblock
42443 #: ../tools/virt-make-fs.pl:227
42444 msgid ""
42445 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
42446 "that would really make sense here is C<qcow2>."
42447 msgstr ""
42448
42449 #. type: =item
42450 #: ../tools/virt-make-fs.pl:234
42451 msgid "B<--type=E<lt>fsE<gt>>"
42452 msgstr ""
42453
42454 #. type: =item
42455 #: ../tools/virt-make-fs.pl:236
42456 msgid "B<-t E<lt>fsE<gt>>"
42457 msgstr ""
42458
42459 #. type: textblock
42460 #: ../tools/virt-make-fs.pl:238
42461 msgid "Choose the output filesystem type."
42462 msgstr ""
42463
42464 #. type: textblock
42465 #: ../tools/virt-make-fs.pl:240
42466 msgid "The default is C<ext2>."
42467 msgstr "Типовим значенням є C<ext2>."
42468
42469 #. type: textblock
42470 #: ../tools/virt-make-fs.pl:242
42471 msgid ""
42472 "Any filesystem which is supported read-write by libguestfs can be used here."
42473 msgstr ""
42474
42475 #. type: =item
42476 #: ../tools/virt-make-fs.pl:249
42477 msgid "B<--partition>"
42478 msgstr "B<--partition>"
42479
42480 #. type: =item
42481 #: ../tools/virt-make-fs.pl:251
42482 msgid "B<--partition=E<lt>parttypeE<gt>>"
42483 msgstr ""
42484
42485 #. type: textblock
42486 #: ../tools/virt-make-fs.pl:253
42487 msgid ""
42488 "If specified, this flag adds an MBR partition table to the output disk image."
42489 msgstr ""
42490
42491 #. type: textblock
42492 #: ../tools/virt-make-fs.pl:256
42493 msgid ""
42494 "You can change the partition table type, eg. I<--partition=gpt> for large "
42495 "disks."
42496 msgstr ""
42497
42498 #. type: textblock
42499 #: ../tools/virt-make-fs.pl:259
42500 msgid ""
42501 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
42502 "might consider the next parameter to be the partition type.  For example:"
42503 msgstr ""
42504
42505 #. type: verbatim
42506 #: ../tools/virt-make-fs.pl:263
42507 #, no-wrap
42508 msgid ""
42509 " virt-make-fs --partition input.tar output.img\n"
42510 "\n"
42511 msgstr ""
42512
42513 #. type: textblock
42514 #: ../tools/virt-make-fs.pl:265
42515 msgid ""
42516 "would cause virt-make-fs to think you wanted to use a partition type of "
42517 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
42518 "dash) between options and the input and output arguments:"
42519 msgstr ""
42520
42521 #. type: verbatim
42522 #: ../tools/virt-make-fs.pl:269
42523 #, no-wrap
42524 msgid ""
42525 " virt-make-fs --partition -- input.tar output.img\n"
42526 "\n"
42527 msgstr ""
42528
42529 #. type: textblock
42530 #: ../tools/virt-make-fs.pl:271
42531 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
42532 msgstr ""
42533
42534 #. type: textblock
42535 #: ../tools/virt-make-fs.pl:559
42536 msgid ""
42537 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42538 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42539 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42540 msgstr ""
42541 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42542 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42543 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42544
42545 #. type: textblock
42546 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
42547 msgid ""
42548 "When reporting bugs, please enable debugging and capture the I<complete> "
42549 "output:"
42550 msgstr ""
42551
42552 #. type: verbatim
42553 #: ../tools/virt-make-fs.pl:576
42554 #, no-wrap
42555 msgid ""
42556 " export LIBGUESTFS_DEBUG=1\n"
42557 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42558 "\n"
42559 msgstr ""
42560 " export LIBGUESTFS_DEBUG=1\n"
42561 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42562 "\n"
42563
42564 #. type: textblock
42565 #: ../tools/virt-make-fs.pl:579
42566 msgid ""
42567 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
42568 "redhat.com/>"
42569 msgstr ""
42570
42571 #. type: textblock
42572 #: ../tools/virt-tar.pl:33
42573 msgid "virt-tar - Extract or upload files to a virtual machine"
42574 msgstr ""
42575
42576 #. type: verbatim
42577 #: ../tools/virt-tar.pl:37
42578 #, no-wrap
42579 msgid ""
42580 " virt-tar [--options] -x domname directory tarball\n"
42581 "\n"
42582 msgstr ""
42583
42584 #. type: verbatim
42585 #: ../tools/virt-tar.pl:39
42586 #, no-wrap
42587 msgid ""
42588 " virt-tar [--options] -u domname tarball directory\n"
42589 "\n"
42590 msgstr ""
42591
42592 #. type: verbatim
42593 #: ../tools/virt-tar.pl:41
42594 #, no-wrap
42595 msgid ""
42596 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42597 "\n"
42598 msgstr ""
42599
42600 #. type: verbatim
42601 #: ../tools/virt-tar.pl:43
42602 #, no-wrap
42603 msgid ""
42604 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42605 "\n"
42606 msgstr ""
42607
42608 #. type: =head2
42609 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42610 msgid "NOTE"
42611 msgstr "ПРИМІТКА"
42612
42613 #. type: textblock
42614 #: ../tools/virt-tar.pl:47
42615 msgid ""
42616 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42617 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42618 msgstr ""
42619
42620 #. type: textblock
42621 #: ../tools/virt-tar.pl:52
42622 msgid "Download C</home> from the VM into a local tarball:"
42623 msgstr ""
42624
42625 #. type: verbatim
42626 #: ../tools/virt-tar.pl:54
42627 #, no-wrap
42628 msgid ""
42629 " virt-tar -x domname /home home.tar\n"
42630 "\n"
42631 msgstr ""
42632
42633 #. type: verbatim
42634 #: ../tools/virt-tar.pl:56
42635 #, no-wrap
42636 msgid ""
42637 " virt-tar -zx domname /home home.tar.gz\n"
42638 "\n"
42639 msgstr ""
42640
42641 #. type: textblock
42642 #: ../tools/virt-tar.pl:58
42643 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42644 msgstr ""
42645
42646 #. type: verbatim
42647 #: ../tools/virt-tar.pl:60
42648 #, no-wrap
42649 msgid ""
42650 " virt-tar -u domname uploadstuff.tar /tmp\n"
42651 "\n"
42652 msgstr ""
42653
42654 #. type: verbatim
42655 #: ../tools/virt-tar.pl:62
42656 #, no-wrap
42657 msgid ""
42658 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42659 "\n"
42660 msgstr ""
42661
42662 #. type: textblock
42663 #: ../tools/virt-tar.pl:66
42664 msgid ""
42665 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42666 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
42667 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42668 msgstr ""
42669
42670 #. type: textblock
42671 #: ../tools/virt-tar.pl:71
42672 msgid ""
42673 "You can use I<-x> (extract) on live virtual machines, but you might get "
42674 "inconsistent results or errors if there is filesystem activity inside the "
42675 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
42676 "work, but the only way to guarantee consistent results is if the virtual "
42677 "machine is shut down."
42678 msgstr ""
42679
42680 #. type: textblock
42681 #: ../tools/virt-tar.pl:79
42682 msgid ""
42683 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42684 "parts of a guest filesystem.  There are many possibilities: making backups, "
42685 "uploading data files, snooping on guest activity, fixing or customizing "
42686 "guests, etc."
42687 msgstr ""
42688
42689 #. type: textblock
42690 #: ../tools/virt-tar.pl:84
42691 msgid ""
42692 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
42693 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
42694 "should look at the L<guestfish(1)> tool."
42695 msgstr ""
42696
42697 #. type: textblock
42698 #: ../tools/virt-tar.pl:88
42699 msgid ""
42700 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42701 "its contents (recursively) from the virtual machine into a local tarball.  "
42702 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42703 "virtual machine.  You cannot use these two options together."
42704 msgstr ""
42705
42706 #. type: textblock
42707 #: ../tools/virt-tar.pl:94
42708 msgid ""
42709 "In addition, you may need to use the I<-z> (gZip) option to enable "
42710 "compression.  When uploading, you have to specify I<-z> if the upload file "
42711 "is compressed because virt-tar won't detect this on its own."
42712 msgstr ""
42713
42714 #. type: textblock
42715 #: ../tools/virt-tar.pl:98
42716 msgid ""
42717 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
42718 "example it cannot do PKZip files or bzip2 compression.  If you want that "
42719 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
42720 "the L<libguestfs(3)> API)."
42721 msgstr ""
42722
42723 #. type: =item
42724 #: ../tools/virt-tar.pl:160
42725 msgid "B<--extract>"
42726 msgstr "B<--extract>"
42727
42728 #. type: =item
42729 #: ../tools/virt-tar.pl:162
42730 msgid "B<--download>"
42731 msgstr "B<--download>"
42732
42733 #. type: =item
42734 #: ../tools/virt-tar.pl:164
42735 msgid "B<-u>"
42736 msgstr "B<-u>"
42737
42738 #. type: =item
42739 #: ../tools/virt-tar.pl:166
42740 msgid "B<--upload>"
42741 msgstr "B<--upload>"
42742
42743 #. type: textblock
42744 #: ../tools/virt-tar.pl:168
42745 msgid ""
42746 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42747 "local tarball."
42748 msgstr ""
42749
42750 #. type: textblock
42751 #: ../tools/virt-tar.pl:171
42752 msgid ""
42753 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
42754 "Please read the L</WARNING> section above before using this option."
42755 msgstr ""
42756
42757 #. type: textblock
42758 #: ../tools/virt-tar.pl:175
42759 msgid "You must specify exactly one of these options."
42760 msgstr ""
42761
42762 #. type: =item
42763 #: ../tools/virt-tar.pl:181
42764 msgid "B<-z>"
42765 msgstr "B<-z>"
42766
42767 #. type: =item
42768 #: ../tools/virt-tar.pl:183
42769 msgid "B<--gzip>"
42770 msgstr "B<--gzip>"
42771
42772 #. type: textblock
42773 #: ../tools/virt-tar.pl:185
42774 msgid "Specify that the input or output tarball is gzip-compressed."
42775 msgstr ""
42776
42777 #. type: textblock
42778 #: ../tools/virt-tar.pl:298
42779 msgid ""
42780 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42781 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42782 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42783 "org/>."
42784 msgstr ""
42785 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42786 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42787 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42788 "org/>."
42789
42790 #. type: textblock
42791 #: ../tools/virt-win-reg.pl:37
42792 msgid ""
42793 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42794 msgstr ""
42795
42796 #. type: verbatim
42797 #: ../tools/virt-win-reg.pl:41
42798 #, no-wrap
42799 msgid ""
42800 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42801 "\n"
42802 msgstr ""
42803
42804 #. type: verbatim
42805 #: ../tools/virt-win-reg.pl:43
42806 #, no-wrap
42807 msgid ""
42808 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42809 "\n"
42810 msgstr ""
42811
42812 #. type: verbatim
42813 #: ../tools/virt-win-reg.pl:45
42814 #, no-wrap
42815 msgid ""
42816 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42817 "\n"
42818 msgstr ""
42819
42820 #. type: verbatim
42821 #: ../tools/virt-win-reg.pl:47
42822 #, no-wrap
42823 msgid ""
42824 " virt-win-reg --merge domname [input.reg ...]\n"
42825 "\n"
42826 msgstr ""
42827
42828 #. type: verbatim
42829 #: ../tools/virt-win-reg.pl:49
42830 #, no-wrap
42831 msgid ""
42832 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42833 "\n"
42834 msgstr ""
42835
42836 #. type: textblock
42837 #: ../tools/virt-win-reg.pl:53
42838 msgid ""
42839 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42840 "virtual machines.  If you do this, you I<will> get irreversible disk "
42841 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
42842 "but doesn't catch all cases."
42843 msgstr ""
42844
42845 #. type: textblock
42846 #: ../tools/virt-win-reg.pl:58
42847 msgid ""
42848 "Modifying the Windows Registry is an inherently risky operation.  The format "
42849 "is deliberately obscure and undocumented, and Registry changes can leave the "
42850 "system unbootable.  Therefore when using the I<--merge> option, make sure "
42851 "you have a reliable backup first."
42852 msgstr ""
42853
42854 #. type: textblock
42855 #: ../tools/virt-win-reg.pl:65
42856 msgid ""
42857 "This program can export and merge Windows Registry entries from a Windows "
42858 "guest."
42859 msgstr ""
42860
42861 #. type: textblock
42862 #: ../tools/virt-win-reg.pl:68
42863 msgid ""
42864 "The first parameter is the libvirt guest name or the raw disk image of a "
42865 "Windows guest."
42866 msgstr ""
42867
42868 #. type: textblock
42869 #: ../tools/virt-win-reg.pl:71
42870 msgid ""
42871 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42872 "exported (recursively).  For example:"
42873 msgstr ""
42874
42875 #. type: verbatim
42876 #: ../tools/virt-win-reg.pl:74
42877 #, no-wrap
42878 msgid ""
42879 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42880 "\n"
42881 msgstr ""
42882 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42883 "\n"
42884
42885 #. type: textblock
42886 #: ../tools/virt-win-reg.pl:76
42887 msgid ""
42888 "You can also display single values from within registry keys, for example:"
42889 msgstr ""
42890
42891 #. type: verbatim
42892 #: ../tools/virt-win-reg.pl:79
42893 #, no-wrap
42894 msgid ""
42895 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42896 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42897 " Windows 7 Enterprise\n"
42898 "\n"
42899 msgstr ""
42900 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42901 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42902 " Windows 7 Enterprise\n"
42903 "\n"
42904
42905 #. type: textblock
42906 #: ../tools/virt-win-reg.pl:83
42907 msgid ""
42908 "With I<--merge>, you can merge a textual regedit file into the Windows "
42909 "Registry:"
42910 msgstr ""
42911
42912 #. type: verbatim
42913 #: ../tools/virt-win-reg.pl:86
42914 #, no-wrap
42915 msgid ""
42916 " $ virt-win-reg --merge Windows7 changes.reg\n"
42917 "\n"
42918 msgstr ""
42919 " $ virt-win-reg --merge Windows7 changes.reg\n"
42920 "\n"
42921
42922 #. type: textblock
42923 #: ../tools/virt-win-reg.pl:90
42924 msgid ""
42925 "This program is only meant for simple access to the registry.  If you want "
42926 "to do complicated things with the registry, we suggest you download the "
42927 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42928 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42929 "L<hivexregedit(1)>."
42930 msgstr ""
42931
42932 #. type: =item
42933 #: ../tools/virt-win-reg.pl:159
42934 msgid "B<--merge>"
42935 msgstr "B<--merge>"
42936
42937 #. type: textblock
42938 #: ../tools/virt-win-reg.pl:161
42939 msgid ""
42940 "In merge mode, this merges a textual regedit file into the Windows Registry "
42941 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
42942 "displays or exports Registry entries instead."
42943 msgstr ""
42944
42945 #. type: textblock
42946 #: ../tools/virt-win-reg.pl:165
42947 msgid ""
42948 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42949 "result in disk corruption.  However exporting (without this flag)  is always "
42950 "safe."
42951 msgstr ""
42952
42953 #. type: =item
42954 #: ../tools/virt-win-reg.pl:173
42955 msgid "B<--encoding> UTF-16LE|ASCII"
42956 msgstr "B<--encoding> UTF-16LE|ASCII"
42957
42958 #. type: textblock
42959 #: ../tools/virt-win-reg.pl:175
42960 msgid ""
42961 "When merging (only), you may need to specify the encoding for strings to be "
42962 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
42963 "(3)/ENCODING STRINGS>."
42964 msgstr ""
42965
42966 #. type: textblock
42967 #: ../tools/virt-win-reg.pl:179
42968 msgid ""
42969 "The default is to use UTF-16LE, which should work with recent versions of "
42970 "Windows."
42971 msgstr ""
42972
42973 #. type: =item
42974 #: ../tools/virt-win-reg.pl:186
42975 msgid "B<--unsafe-printable-strings>"
42976 msgstr "B<--unsafe-printable-strings>"
42977
42978 #. type: textblock
42979 #: ../tools/virt-win-reg.pl:188
42980 msgid ""
42981 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42982 "instead of hex sequences.  Remove the final zero codepoint from strings if "
42983 "present."
42984 msgstr ""
42985
42986 #. type: textblock
42987 #: ../tools/virt-win-reg.pl:192
42988 msgid ""
42989 "This is unsafe and does not preserve the fidelity of strings in the original "
42990 "Registry for various reasons:"
42991 msgstr ""
42992
42993 #. type: textblock
42994 #: ../tools/virt-win-reg.pl:199
42995 msgid ""
42996 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
42997 "other encodings will be corrupted by this transformation."
42998 msgstr ""
42999
43000 #. type: textblock
43001 #: ../tools/virt-win-reg.pl:204
43002 msgid ""
43003 "Assumes that everything which has type 1 or 2 is really a string and that "
43004 "everything else is not a string, but the type field in real Registries is "
43005 "not reliable."
43006 msgstr ""
43007
43008 #. type: textblock
43009 #: ../tools/virt-win-reg.pl:210
43010 msgid ""
43011 "Loses information about whether a zero codepoint followed the string in the "
43012 "Registry or not."
43013 msgstr ""
43014
43015 #. type: textblock
43016 #: ../tools/virt-win-reg.pl:215
43017 msgid ""
43018 "This all happens because the Registry itself contains no information about "
43019 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
43020 msgstr ""
43021
43022 #. type: textblock
43023 #: ../tools/virt-win-reg.pl:219
43024 msgid ""
43025 "You should only use this option for quick hacking and debugging of the "
43026 "Registry contents, and I<never> use it if the output is going to be passed "
43027 "into another program or stored in another Registry."
43028 msgstr ""
43029
43030 #. type: =head1
43031 #: ../tools/virt-win-reg.pl:556
43032 msgid "SUPPORTED SYSTEMS"
43033 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
43034
43035 #. type: textblock
43036 #: ../tools/virt-win-reg.pl:558
43037 msgid ""
43038 "The program currently supports Windows NT-derived guests starting with "
43039 "Windows XP through to at least Windows 7."
43040 msgstr ""
43041
43042 #. type: textblock
43043 #: ../tools/virt-win-reg.pl:561
43044 msgid "The following Registry keys are supported:"
43045 msgstr ""
43046
43047 #. type: =item
43048 #: ../tools/virt-win-reg.pl:565
43049 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43050 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43051
43052 #. type: =item
43053 #: ../tools/virt-win-reg.pl:567
43054 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43055 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43056
43057 #. type: =item
43058 #: ../tools/virt-win-reg.pl:569
43059 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43060 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43061
43062 #. type: =item
43063 #: ../tools/virt-win-reg.pl:571
43064 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43065 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43066
43067 #. type: =item
43068 #: ../tools/virt-win-reg.pl:573
43069 msgid "C<HKEY_USERS\\.DEFAULT>"
43070 msgstr "C<HKEY_USERS\\.DEFAULT>"
43071
43072 #. type: =item
43073 #: ../tools/virt-win-reg.pl:575
43074 msgid "C<HKEY_USERS\\I<SID>>"
43075 msgstr "C<HKEY_USERS\\I<SID>>"
43076
43077 #. type: textblock
43078 #: ../tools/virt-win-reg.pl:577
43079 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43080 msgstr ""
43081
43082 #. type: =item
43083 #: ../tools/virt-win-reg.pl:579
43084 msgid "C<HKEY_USERS\\I<username>>"
43085 msgstr "C<HKEY_USERS\\I<користувач>>"
43086
43087 #. type: textblock
43088 #: ../tools/virt-win-reg.pl:581
43089 msgid ""
43090 "where I<username> is a local user name (this is a libguestfs extension)."
43091 msgstr ""
43092
43093 #. type: textblock
43094 #: ../tools/virt-win-reg.pl:585
43095 msgid ""
43096 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43097 "C<HKEY_USERS>."
43098 msgstr ""
43099
43100 #. type: textblock
43101 #: ../tools/virt-win-reg.pl:588
43102 msgid ""
43103 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43104 "supported (there is no \"current user\")."
43105 msgstr ""
43106
43107 #. type: =head1
43108 #: ../tools/virt-win-reg.pl:591
43109 msgid "ENCODING"
43110 msgstr "КОДУВАННЯ"
43111
43112 #. type: textblock
43113 #: ../tools/virt-win-reg.pl:593
43114 msgid ""
43115 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43116 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
43117 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
43118 "Windows-style line endings, you may need to reencode the whole file before "
43119 "or after processing."
43120 msgstr ""
43121
43122 #. type: textblock
43123 #: ../tools/virt-win-reg.pl:599
43124 msgid ""
43125 "To reencode a file from Windows format to Linux (before processing it with "
43126 "the I<--merge> option), you would do something like this:"
43127 msgstr ""
43128
43129 #. type: verbatim
43130 #: ../tools/virt-win-reg.pl:602
43131 #, no-wrap
43132 msgid ""
43133 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43134 "\n"
43135 msgstr ""
43136 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43137 "\n"
43138
43139 #. type: textblock
43140 #: ../tools/virt-win-reg.pl:604
43141 msgid ""
43142 "To go in the opposite direction, after exporting and before sending the file "
43143 "to a Windows user, do something like this:"
43144 msgstr ""
43145
43146 #. type: verbatim
43147 #: ../tools/virt-win-reg.pl:607
43148 #, no-wrap
43149 msgid ""
43150 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43151 "\n"
43152 msgstr ""
43153 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43154 "\n"
43155
43156 #. type: textblock
43157 #: ../tools/virt-win-reg.pl:609
43158 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43159 msgstr ""
43160
43161 #. type: textblock
43162 #: ../tools/virt-win-reg.pl:611
43163 msgid ""
43164 "If you are unsure about the current encoding, use the L<file(1)> command.  "
43165 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43166 "style (CRLF) line endings, like this:"
43167 msgstr ""
43168
43169 #. type: verbatim
43170 #: ../tools/virt-win-reg.pl:615
43171 #, no-wrap
43172 msgid ""
43173 " $ file software.reg\n"
43174 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43175 " with CRLF line terminators\n"
43176 "\n"
43177 msgstr ""
43178
43179 #. type: textblock
43180 #: ../tools/virt-win-reg.pl:619
43181 msgid "This file would need conversion before you could I<--merge> it."
43182 msgstr ""
43183
43184 #. type: =head1
43185 #: ../tools/virt-win-reg.pl:621
43186 msgid "CurrentControlSet etc."
43187 msgstr ""
43188
43189 #. type: textblock
43190 #: ../tools/virt-win-reg.pl:623
43191 msgid ""
43192 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43193 "Registry at the level of the hive file, and therefore you cannot modify "
43194 "these."
43195 msgstr ""
43196
43197 #. type: textblock
43198 #: ../tools/virt-win-reg.pl:627
43199 msgid ""
43200 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
43201 "circumstances it might refer to another control set.  The way to find out is "
43202 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43203 msgstr ""
43204
43205 #. type: verbatim
43206 #: ../tools/virt-win-reg.pl:631
43207 #, no-wrap
43208 msgid ""
43209 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43210 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43211 " \"Current\"=dword:00000001\n"
43212 " \"Default\"=dword:00000001\n"
43213 " \"Failed\"=dword:00000000\n"
43214 " \"LastKnownGood\"=dword:00000002\n"
43215 "\n"
43216 msgstr ""
43217 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43218 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43219 " \"Current\"=dword:00000001\n"
43220 " \"Default\"=dword:00000001\n"
43221 " \"Failed\"=dword:00000000\n"
43222 " \"LastKnownGood\"=dword:00000002\n"
43223 "\n"
43224
43225 #. type: textblock
43226 #: ../tools/virt-win-reg.pl:638
43227 msgid "\"Current\" is the one which Windows will choose when it boots."
43228 msgstr ""
43229
43230 #. type: textblock
43231 #: ../tools/virt-win-reg.pl:640
43232 msgid ""
43233 "Similarly, other C<Current...> keys in the path may need to be replaced."
43234 msgstr ""
43235
43236 #. type: =head1
43237 #: ../tools/virt-win-reg.pl:643
43238 msgid "DELETING REGISTRY KEYS AND VALUES"
43239 msgstr ""
43240
43241 #. type: textblock
43242 #: ../tools/virt-win-reg.pl:645
43243 msgid "To delete a whole registry key, use the syntax:"
43244 msgstr ""
43245
43246 #. type: verbatim
43247 #: ../tools/virt-win-reg.pl:647
43248 #, no-wrap
43249 msgid ""
43250 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
43251 "\n"
43252 msgstr ""
43253
43254 #. type: textblock
43255 #: ../tools/virt-win-reg.pl:649
43256 msgid "To delete a single value within a key, use the syntax:"
43257 msgstr ""
43258
43259 #. type: verbatim
43260 #: ../tools/virt-win-reg.pl:651
43261 #, no-wrap
43262 msgid ""
43263 " [HKEY_LOCAL_MACHINE\\Foo]\n"
43264 " \"Value\"=-\n"
43265 "\n"
43266 msgstr ""
43267
43268 #. type: =head1
43269 #: ../tools/virt-win-reg.pl:654
43270 msgid "WINDOWS TIPS"
43271 msgstr ""
43272
43273 #. type: textblock
43274 #: ../tools/virt-win-reg.pl:656
43275 msgid ""
43276 "Note that some of these tips modify the guest disk image.  The guest I<must> "
43277 "be shut off, else you will get disk corruption."
43278 msgstr ""
43279
43280 #. type: =head2
43281 #: ../tools/virt-win-reg.pl:659
43282 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
43283 msgstr ""
43284
43285 #. type: textblock
43286 #: ../tools/virt-win-reg.pl:661
43287 msgid ""
43288 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
43289 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
43290 "is uploaded into C<C:\\>:"
43291 msgstr ""
43292
43293 #. type: verbatim
43294 #: ../tools/virt-win-reg.pl:665
43295 #, no-wrap
43296 msgid ""
43297 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43298 "\n"
43299 msgstr ""
43300 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43301 "\n"
43302
43303 #. type: textblock
43304 #: ../tools/virt-win-reg.pl:667
43305 msgid "Prepare a regedit file containing the registry change:"
43306 msgstr ""
43307
43308 #. type: verbatim
43309 #: ../tools/virt-win-reg.pl:669
43310 #, no-wrap
43311 msgid ""
43312 " cat > test.reg <<'EOF'\n"
43313 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43314 " \"Test\"=\"c:\\\\test.bat\"\n"
43315 " EOF\n"
43316 "\n"
43317 msgstr ""
43318 " cat > test.reg <<'EOF'\n"
43319 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43320 " \"Test\"=\"c:\\\\test.bat\"\n"
43321 " EOF\n"
43322 "\n"
43323
43324 #. type: textblock
43325 #: ../tools/virt-win-reg.pl:674
43326 msgid ""
43327 "In this example we use the key C<RunOnce> which means that the script will "
43328 "run precisely once when the first user logs in.  If you want it to run every "
43329 "time a user logs in, replace C<RunOnce> with C<Run>."
43330 msgstr ""
43331
43332 #. type: textblock
43333 #: ../tools/virt-win-reg.pl:678
43334 msgid "Now update the registry:"
43335 msgstr "Оновіть регістр:"
43336
43337 #. type: verbatim
43338 #: ../tools/virt-win-reg.pl:680
43339 #, no-wrap
43340 msgid ""
43341 " virt-win-reg --merge WindowsGuest test.reg\n"
43342 "\n"
43343 msgstr ""
43344
43345 #. type: =head2
43346 #: ../tools/virt-win-reg.pl:682
43347 msgid "INSTALLING A SERVICE"
43348 msgstr ""
43349
43350 #. type: textblock
43351 #: ../tools/virt-win-reg.pl:684
43352 msgid ""
43353 "This section assumes you are familiar with Windows services, and you either "
43354 "have a program which handles the Windows Service Control Protocol directly "
43355 "or you want to run any program using a service wrapper like SrvAny or the "
43356 "free RHSrvAny."
43357 msgstr ""
43358
43359 #. type: textblock
43360 #: ../tools/virt-win-reg.pl:689
43361 msgid ""
43362 "First upload the program and optionally the service wrapper.  In this case "
43363 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
43364 msgstr ""
43365
43366 #. type: verbatim
43367 #: ../tools/virt-win-reg.pl:693
43368 #, no-wrap
43369 msgid ""
43370 " guestfish -i -d WindowsGuest <<EOF\n"
43371 "   upload rhsrvany.exe /rhsrvany.exe\n"
43372 "   upload test.exe /test.exe\n"
43373 " EOF\n"
43374 "\n"
43375 msgstr ""
43376 " guestfish -i -d WindowsGuest <<EOF\n"
43377 "   upload rhsrvany.exe /rhsrvany.exe\n"
43378 "   upload test.exe /test.exe\n"
43379 " EOF\n"
43380 "\n"
43381
43382 #. type: textblock
43383 #: ../tools/virt-win-reg.pl:698
43384 msgid ""
43385 "Prepare a regedit file containing the registry changes.  In this example, "
43386 "the first registry change is needed for the service itself or the service "
43387 "wrapper (if used).  The second registry change is only needed because I am "
43388 "using the RHSrvAny service wrapper."
43389 msgstr ""
43390
43391 #. type: verbatim
43392 #: ../tools/virt-win-reg.pl:703
43393 #, no-wrap
43394 msgid ""
43395 " cat > service.reg <<'EOF'\n"
43396 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43397 " \"Type\"=dword:00000010\n"
43398 " \"Start\"=dword:00000002\n"
43399 " \"ErrorControl\"=dword:00000001\n"
43400 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43401 " \"DisplayName\"=\"RHSrvAny\"\n"
43402 " \"ObjectName\"=\"NetworkService\"\n"
43403 " \n"
43404 msgstr ""
43405 " cat > service.reg <<'EOF'\n"
43406 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43407 " \"Type\"=dword:00000010\n"
43408 " \"Start\"=dword:00000002\n"
43409 " \"ErrorControl\"=dword:00000001\n"
43410 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43411 " \"DisplayName\"=\"RHSrvAny\"\n"
43412 " \"ObjectName\"=\"NetworkService\"\n"
43413 " \n"
43414
43415 #. type: verbatim
43416 #: ../tools/virt-win-reg.pl:712
43417 #, no-wrap
43418 msgid ""
43419 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43420 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43421 " \"PWD\"=\"c:\\\\Temp\"\n"
43422 " EOF\n"
43423 "\n"
43424 msgstr ""
43425 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43426 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43427 " \"PWD\"=\"c:\\\\Temp\"\n"
43428 " EOF\n"
43429 "\n"
43430
43431 #. type: textblock
43432 #: ../tools/virt-win-reg.pl:723
43433 msgid ""
43434 "For use of C<ControlSet001> see the section above in this manual page.  You "
43435 "may need to adjust this according to the control set that is in use by the "
43436 "guest."
43437 msgstr ""
43438
43439 #. type: textblock
43440 #: ../tools/virt-win-reg.pl:729
43441 msgid ""
43442 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
43443 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
43444 "privileged account."
43445 msgstr ""
43446
43447 #. type: textblock
43448 #: ../tools/virt-win-reg.pl:735
43449 msgid ""
43450 "For the meaning of the magic numbers, see this Microsoft KB article: "
43451 "L<http://support.microsoft.com/kb/103000>."
43452 msgstr ""
43453
43454 #. type: textblock
43455 #: ../tools/virt-win-reg.pl:740
43456 msgid "Update the registry:"
43457 msgstr "Оновіть регістр:"
43458
43459 #. type: verbatim
43460 #: ../tools/virt-win-reg.pl:742
43461 #, no-wrap
43462 msgid ""
43463 " virt-win-reg --merge WindowsGuest service.reg\n"
43464 "\n"
43465 msgstr ""
43466
43467 #. type: textblock
43468 #: ../tools/virt-win-reg.pl:746
43469 msgid ""
43470 "Be careful when passing parameters containing C<\\> (backslash) in the "
43471 "shell.  Usually you will have to use 'single quotes' or double backslashes "
43472 "(but not both) to protect them from the shell."
43473 msgstr ""
43474
43475 #. type: textblock
43476 #: ../tools/virt-win-reg.pl:750
43477 msgid "Paths and value names are case-insensitive."
43478 msgstr ""
43479
43480 #. type: textblock
43481 #: ../tools/virt-win-reg.pl:759
43482 msgid ""
43483 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43484 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43485 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43486 msgstr ""
43487 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43488 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43489 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43490
43491 #. type: verbatim
43492 #: ../tools/virt-win-reg.pl:777
43493 #, no-wrap
43494 msgid ""
43495 " export LIBGUESTFS_DEBUG=1\n"
43496 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
43497 "\n"
43498 msgstr ""
43499
43500 #. type: textblock
43501 #: ../tools/virt-win-reg.pl:780
43502 msgid ""
43503 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
43504 "redhat.com/>"
43505 msgstr ""