Version 1.13.26.
[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-10-26 21:10+0200\n"
12 "PO-Revision-Date: 2011-10-19 15:46+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:29
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:84
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:88
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:90
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:92
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:94
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:100
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:107
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:109
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:111
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:114
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:117
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:119
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:121
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:124
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:126
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:128
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:133 ../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:137
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:141
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:144
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:182 ../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:184 ../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:186 ../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:188 ../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:190 ../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:192 ../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:203 ../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:205 ../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 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/physical_block_size\n"
717 " 512\n"
718 " $ cat /sys/block/sda/queue/logical_block_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/minimum_io_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/optimal_io_size\n"
723 " 0\n"
724 "\n"
725 msgstr ""
726
727 #. type: textblock
728 #: ../align/virt-alignment-scan.pod:243
729 msgid "For a NetApp LUN:"
730 msgstr ""
731
732 #. type: verbatim
733 #: ../align/virt-alignment-scan.pod:245
734 #, no-wrap
735 msgid ""
736 " $ cat /sys/block/sdc/queue/logical_block_size\n"
737 " 512\n"
738 " $ cat /sys/block/sdc/queue/physical_block_size\n"
739 " 512\n"
740 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
743 " 65536\n"
744 "\n"
745 msgstr ""
746
747 #. type: textblock
748 #: ../align/virt-alignment-scan.pod:254
749 msgid ""
750 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
751 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
752 msgstr ""
753
754 #. type: textblock
755 #: ../align/virt-alignment-scan.pod:258
756 msgid ""
757 "For detailed information about what these numbers mean, see L<http://docs."
758 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
759 "Storage_Administration_Guide/newstorage-iolimits.html>"
760 msgstr ""
761
762 #. type: textblock
763 #: ../align/virt-alignment-scan.pod:261
764 msgid ""
765 "[Thanks to Mike Snitzer for providing NetApp data and additional "
766 "information.]"
767 msgstr ""
768
769 #. type: =head2
770 #: ../align/virt-alignment-scan.pod:264
771 msgid "1 MB PARTITION ALIGNMENT"
772 msgstr ""
773
774 #. type: textblock
775 #: ../align/virt-alignment-scan.pod:266
776 msgid ""
777 "Microsoft picked 1 MB as the default alignment for all partitions starting "
778 "with Windows 2008 Server, and Linux has followed this."
779 msgstr ""
780
781 #. type: textblock
782 #: ../align/virt-alignment-scan.pod:269
783 msgid ""
784 "Assuming 512 byte sectors in the guest, you will now see the first partition "
785 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
786 "multiple of 2048 sectors."
787 msgstr ""
788
789 #. type: textblock
790 #: ../align/virt-alignment-scan.pod:273
791 msgid ""
792 "1 MB alignment is compatible with all current alignment requirements (4K, "
793 "64K) and provides room for future growth in physical block sizes."
794 msgstr ""
795
796 #. type: =head2
797 #: ../align/virt-alignment-scan.pod:276
798 msgid "SETTING ALIGNMENT"
799 msgstr ""
800
801 #. type: textblock
802 #: ../align/virt-alignment-scan.pod:278
803 msgid ""
804 "L<virt-resize(1)> can change the alignment of the partitions of some "
805 "guests.  Currently it can fully align all the partitions of all Windows "
806 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
807 "it can align the second and subsequent partitions, so the majority of OS "
808 "accesses except at boot will be aligned."
809 msgstr ""
810
811 #. type: textblock
812 #: ../align/virt-alignment-scan.pod:284
813 msgid ""
814 "Another way to correct partition alignment problems is to reinstall your "
815 "guest operating systems.  If you install operating systems from templates, "
816 "ensure these have correct partition alignment too."
817 msgstr ""
818
819 #. type: textblock
820 #: ../align/virt-alignment-scan.pod:288
821 msgid ""
822 "For older versions of Windows, the following NetApp document contains useful "
823 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
824 msgstr ""
825
826 #. type: textblock
827 #: ../align/virt-alignment-scan.pod:291
828 msgid ""
829 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
830 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
831 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
832 "contains an example."
833 msgstr ""
834
835 #. type: =head1
836 #: ../align/virt-alignment-scan.pod:296 ../cat/virt-cat.pod:231
837 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
838 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
839 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352
840 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:676
841 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
842 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
843 #: ../tools/virt-win-reg.pl:744
844 msgid "SHELL QUOTING"
845 msgstr ""
846
847 #. type: textblock
848 #: ../align/virt-alignment-scan.pod:298 ../cat/virt-cat.pod:233
849 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
850 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
851 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354
852 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:678
853 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
854 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
855 #: ../tools/virt-win-reg.pl:752
856 msgid ""
857 "Libvirt guest names can contain arbitrary characters, some of which have "
858 "meaning to the shell such as C<#> and space.  You may need to quote or "
859 "escape these characters on the command line.  See the shell manual page L<sh"
860 "(1)> for details."
861 msgstr ""
862
863 #. type: =head1
864 #: ../align/virt-alignment-scan.pod:303 ../cat/virt-cat.pod:238
865 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
866 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
867 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
868 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375
869 #: ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:227
870 #: ../test-tool/libguestfs-test-tool.pod:90
871 msgid "EXIT STATUS"
872 msgstr ""
873
874 #. type: textblock
875 #: ../align/virt-alignment-scan.pod:305
876 msgid "This program returns:"
877 msgstr ""
878
879 #. type: =item
880 #: ../align/virt-alignment-scan.pod:309 ../align/virt-alignment-scan.pod:315
881 #: ../align/virt-alignment-scan.pod:321 ../align/virt-alignment-scan.pod:328
882 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
883 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
884 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
885 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
886 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
887 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
888 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
889 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
890 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
891 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
892 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
893 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
894 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
895 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
896 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
897 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
898 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
899 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:449
900 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:463
901 #: ../fish/guestfish-actions.pod:1262 ../fish/guestfish-actions.pod:1266
902 #: ../fish/guestfish-actions.pod:1270 ../fish/guestfish-actions.pod:1274
903 #: ../fish/guestfish-actions.pod:1282 ../fish/guestfish-actions.pod:1286
904 #: ../fish/guestfish-actions.pod:1290 ../fish/guestfish-actions.pod:1300
905 #: ../fish/guestfish-actions.pod:1304 ../fish/guestfish-actions.pod:1308
906 #: ../fish/guestfish-actions.pod:1398 ../fish/guestfish-actions.pod:1402
907 #: ../fish/guestfish-actions.pod:1407 ../fish/guestfish-actions.pod:1412
908 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:1458
909 #: ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1719
910 #: ../fish/guestfish-actions.pod:1726 ../fish/guestfish-actions.pod:1733
911 #: ../fish/guestfish-actions.pod:2136 ../fish/guestfish-actions.pod:2142
912 #: ../fish/guestfish-actions.pod:2150 ../fish/guestfish-actions.pod:2157
913 #: ../fish/guestfish-actions.pod:2164 ../fish/guestfish.pod:445
914 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
915 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
916 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:359
917 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:372
918 #: ../resize/virt-resize.pod:378 ../sparsify/virt-sparsify.pod:32
919 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
920 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
921 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
922 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
923 #: ../src/guestfs-actions.pod:641 ../src/guestfs-actions.pod:649
924 #: ../src/guestfs-actions.pod:656 ../src/guestfs-actions.pod:663
925 #: ../src/guestfs-actions.pod:2071 ../src/guestfs-actions.pod:2075
926 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083
927 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:2095
928 #: ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2109
929 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:2117
930 #: ../src/guestfs-actions.pod:2255 ../src/guestfs-actions.pod:2259
931 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2269
932 #: ../src/guestfs-actions.pod:2330 ../src/guestfs-actions.pod:2334
933 #: ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2754
934 #: ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2768
935 #: ../src/guestfs-actions.pod:3313 ../src/guestfs-actions.pod:3319
936 #: ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3334
937 #: ../src/guestfs-actions.pod:3341 ../src/guestfs.pod:403
938 #: ../src/guestfs.pod:408 ../src/guestfs.pod:413 ../src/guestfs.pod:417
939 #: ../src/guestfs.pod:422 ../src/guestfs.pod:426 ../src/guestfs.pod:431
940 #: ../src/guestfs.pod:436 ../src/guestfs.pod:1109 ../src/guestfs.pod:1113
941 #: ../src/guestfs.pod:1117 ../src/guestfs.pod:1122 ../src/guestfs.pod:1130
942 #: ../src/guestfs.pod:1149 ../src/guestfs.pod:1157 ../src/guestfs.pod:1179
943 #: ../src/guestfs.pod:1183 ../src/guestfs.pod:1187 ../src/guestfs.pod:1191
944 #: ../src/guestfs.pod:1195 ../src/guestfs.pod:1199 ../src/guestfs.pod:1689
945 #: ../src/guestfs.pod:1694 ../src/guestfs.pod:1698 ../src/guestfs.pod:1800
946 #: ../src/guestfs.pod:1805 ../src/guestfs.pod:1809 ../src/guestfs.pod:1819
947 #: ../src/guestfs.pod:2108 ../src/guestfs.pod:2113 ../src/guestfs.pod:2119
948 #: ../src/guestfs.pod:2127 ../src/guestfs.pod:2645 ../src/guestfs.pod:2651
949 #: ../src/guestfs.pod:2656 ../src/guestfs.pod:2662 ../src/guestfs.pod:3062
950 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3071 ../src/guestfs.pod:3075
951 #: ../src/guestfs.pod:3079 ../src/guestfs.pod:3093 ../src/guestfs.pod:3098
952 #: ../src/guestfs.pod:3329 ../src/guestfs.pod:3333 ../src/guestfs.pod:3337
953 #: ../src/guestfs.pod:3341 ../tools/virt-win-reg.pl:197
954 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
955 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
956 #: ../tools/virt-win-reg.pl:733
957 msgid "*"
958 msgstr "*"
959
960 #. type: textblock
961 #: ../align/virt-alignment-scan.pod:311
962 msgid "0"
963 msgstr ""
964
965 #. type: textblock
966 #: ../align/virt-alignment-scan.pod:313
967 msgid ""
968 "successful exit, all partitions are aligned E<ge> 64K for best performance"
969 msgstr ""
970
971 #. type: textblock
972 #: ../align/virt-alignment-scan.pod:317
973 msgid "1"
974 msgstr ""
975
976 #. type: textblock
977 #: ../align/virt-alignment-scan.pod:319
978 msgid "an error scanning the disk image or guest"
979 msgstr ""
980
981 #. type: textblock
982 #: ../align/virt-alignment-scan.pod:323
983 msgid "2"
984 msgstr ""
985
986 #. type: textblock
987 #: ../align/virt-alignment-scan.pod:325
988 msgid ""
989 "successful exit, some partitions have alignment E<lt> 64K which can result "
990 "in poor performance on high end network storage"
991 msgstr ""
992
993 #. type: textblock
994 #: ../align/virt-alignment-scan.pod:330
995 msgid "3"
996 msgstr ""
997
998 #. type: textblock
999 #: ../align/virt-alignment-scan.pod:332
1000 msgid ""
1001 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1002 "poor performance on most hypervisors"
1003 msgstr ""
1004
1005 #. type: =head1
1006 #: ../align/virt-alignment-scan.pod:337 ../cat/virt-cat.pod:243
1007 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1008 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1009 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1010 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1011 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1012 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1013 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1014 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1015 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1016 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1017 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1018 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3270
1019 #: ../test-tool/libguestfs-test-tool.pod:100
1020 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1021 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1022 #: ../tools/virt-win-reg.pl:757
1023 msgid "SEE ALSO"
1024 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1025
1026 #. type: textblock
1027 #: ../align/virt-alignment-scan.pod:339
1028 msgid ""
1029 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1030 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1031 msgstr ""
1032
1033 #. type: =head1
1034 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:252
1035 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1036 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1037 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1038 #: ../resize/virt-resize.pod:711 ../sparsify/virt-sparsify.pod:264
1039 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1040 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1041 #: ../tools/virt-win-reg.pl:783
1042 msgid "AUTHOR"
1043 msgstr "АВТОР"
1044
1045 #. type: textblock
1046 #: ../align/virt-alignment-scan.pod:348 ../cat/virt-cat.pod:254
1047 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1048 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1049 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1050 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:713
1051 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1052 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1053 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1054 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1055 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1056
1057 #. type: =head1
1058 #: ../align/virt-alignment-scan.pod:350 ../cat/virt-cat.pod:256
1059 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1060 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1061 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1062 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1063 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1064 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1065 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1066 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1067 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1068 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1069 #: ../resize/virt-resize.pod:715 ../ruby/examples/guestfs-ruby.pod:52
1070 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3352
1071 #: ../test-tool/libguestfs-test-tool.pod:110
1072 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1073 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1074 #: ../tools/virt-win-reg.pl:787
1075 msgid "COPYRIGHT"
1076 msgstr "АВТОРСЬКІ ПРАВА"
1077
1078 #. type: textblock
1079 #: ../align/virt-alignment-scan.pod:352 ../clone/virt-sysprep.pod:507
1080 #: ../sparsify/virt-sparsify.pod:270
1081 msgid "Copyright (C) 2011 Red Hat Inc."
1082 msgstr ""
1083
1084 #. type: textblock
1085 #: ../align/virt-alignment-scan.pod:354 ../cat/virt-cat.pod:260
1086 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1087 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1088 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1089 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1090 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1091 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407
1092 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:719
1093 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1094 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1095 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1096 #: ../tools/virt-win-reg.pl:791
1097 msgid ""
1098 "This program is free software; you can redistribute it and/or modify it "
1099 "under the terms of the GNU General Public License as published by the Free "
1100 "Software Foundation; either version 2 of the License, or (at your option) "
1101 "any later version."
1102 msgstr ""
1103
1104 #. type: textblock
1105 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:265
1106 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1107 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1108 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1109 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1110 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1111 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412
1112 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:724
1113 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1114 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1115 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1116 #: ../tools/virt-win-reg.pl:796
1117 msgid ""
1118 "This program is distributed in the hope that it will be useful, but WITHOUT "
1119 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1120 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1121 "more details."
1122 msgstr ""
1123 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1124 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1125 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1126 "дізнатися з GNU General Public License."
1127
1128 #. type: textblock
1129 #: ../align/virt-alignment-scan.pod:364 ../cat/virt-cat.pod:270
1130 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1131 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1132 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1133 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1134 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1135 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417
1136 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:729
1137 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1138 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1139 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1140 #: ../tools/virt-win-reg.pl:801
1141 msgid ""
1142 "You should have received a copy of the GNU General Public License along with "
1143 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
1144 "Ave, Cambridge, MA 02139, USA."
1145 msgstr ""
1146 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1147 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1148 "Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
1149
1150 #. type: textblock
1151 #: ../cat/virt-cat.pod:5
1152 msgid "virt-cat - Display files in a virtual machine"
1153 msgstr "virt-cat — показ файлів у віртуальній машині"
1154
1155 #. type: verbatim
1156 #: ../cat/virt-cat.pod:9
1157 #, no-wrap
1158 msgid ""
1159 " virt-cat [--options] -d domname file [file ...]\n"
1160 "\n"
1161 msgstr ""
1162 " virt-cat [--параметри] -d назва_домену файл [файл...]\n"
1163 "\n"
1164
1165 #. type: verbatim
1166 #: ../cat/virt-cat.pod:11
1167 #, no-wrap
1168 msgid ""
1169 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1170 "\n"
1171 msgstr ""
1172 " virt-cat [--параметри] -a диск.img [-a диск.img ...] файл [файл...]\n"
1173 "\n"
1174
1175 #. type: textblock
1176 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1177 #: ../inspector/virt-inspector.pod:13
1178 msgid "Old-style:"
1179 msgstr "Застарілий стиль:"
1180
1181 #. type: verbatim
1182 #: ../cat/virt-cat.pod:15
1183 #, no-wrap
1184 msgid ""
1185 " virt-cat domname file\n"
1186 "\n"
1187 msgstr ""
1188 " virt-cat назва_домену файл\n"
1189 "\n"
1190
1191 #. type: verbatim
1192 #: ../cat/virt-cat.pod:17
1193 #, no-wrap
1194 msgid ""
1195 " virt-cat disk.img file\n"
1196 "\n"
1197 msgstr ""
1198 " virt-cat диск.img файл\n"
1199 "\n"
1200
1201 #. type: textblock
1202 #: ../cat/virt-cat.pod:21
1203 msgid ""
1204 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1205 "C<file> exists in the named virtual machine (or disk image)."
1206 msgstr ""
1207 "C<virt-cat> — інструмент командного рядка для показу вмісту C<файла>, який "
1208 "зберігається у вказаній віртуальній машині (або образі диска)."
1209
1210 #. type: textblock
1211 #: ../cat/virt-cat.pod:24
1212 msgid ""
1213 "Multiple filenames can be given, in which case they are concatenated "
1214 "together.  Each filename must be a full path, starting at the root directory "
1215 "(starting with '/')."
1216 msgstr ""
1217 "Ви можете вказати декілька назв файлів. Вміст таких файлів буде об’єднано. "
1218 "Назви файлів слід вказувати повністю (разом зі шляхом), починаючи з "
1219 "кореневого каталогу (тобто назва має починатися з «/»)."
1220
1221 #. type: textblock
1222 #: ../cat/virt-cat.pod:28
1223 msgid ""
1224 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1225 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1226 "(see L</USING GUESTFISH> below)."
1227 msgstr ""
1228 "C<virt-cat> можна скористатися для пришвидшення перегляду файла. Для "
1229 "редагування даних слід користуватися C<virt-edit>. Для виконання складніших "
1230 "дій можна скористатися програмою L<guestfish(1)> (див. L</USING GUESTFISH> "
1231 "нижче)."
1232
1233 #. type: =head1
1234 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1235 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1236 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1237 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1238 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1239 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1240 #: ../tools/virt-tar.pl:50
1241 msgid "EXAMPLES"
1242 msgstr "ПРИКЛАДИ"
1243
1244 #. type: textblock
1245 #: ../cat/virt-cat.pod:34
1246 msgid ""
1247 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1248 msgstr ""
1249 "Показ файла C</etc/fstab> з віртуальної машини libvirt з назвою C<mydomain>:"
1250
1251 #. type: verbatim
1252 #: ../cat/virt-cat.pod:37
1253 #, no-wrap
1254 msgid ""
1255 " virt-cat -d mydomain /etc/fstab\n"
1256 "\n"
1257 msgstr ""
1258 " virt-cat -d mydomain /etc/fstab\n"
1259 "\n"
1260
1261 #. type: textblock
1262 #: ../cat/virt-cat.pod:39
1263 msgid "List syslog messages from a VM disk image file:"
1264 msgstr ""
1265 "Показ списку повідомлень syslog з файла образу диска віртуальної машини:"
1266
1267 #. type: verbatim
1268 #: ../cat/virt-cat.pod:41
1269 #, no-wrap
1270 msgid ""
1271 " virt-cat -a disk.img /var/log/messages | tail\n"
1272 "\n"
1273 msgstr ""
1274 " virt-cat -a disk.img /var/log/messages | tail\n"
1275 "\n"
1276
1277 #. type: textblock
1278 #: ../cat/virt-cat.pod:43
1279 msgid "Find out what DHCP IP address a VM acquired:"
1280 msgstr "Визначення IP-адреси DHCP, використаної віртуальною машиною:"
1281
1282 #. type: verbatim
1283 #: ../cat/virt-cat.pod:45
1284 #, no-wrap
1285 msgid ""
1286 " virt-cat -d mydomain /var/log/messages | \\\n"
1287 "   grep 'dhclient: bound to' | tail\n"
1288 "\n"
1289 msgstr ""
1290 " virt-cat -d mydomain /var/log/messages | \\\n"
1291 "   grep 'dhclient: bound to' | tail\n"
1292 "\n"
1293
1294 #. type: textblock
1295 #: ../cat/virt-cat.pod:48
1296 msgid "Find out what packages were recently installed:"
1297 msgstr "Пошук нещодавно встановлених пакунків:"
1298
1299 #. type: verbatim
1300 #: ../cat/virt-cat.pod:50
1301 #, no-wrap
1302 msgid ""
1303 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1304 "\n"
1305 msgstr ""
1306 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1307 "\n"
1308
1309 #. type: textblock
1310 #: ../cat/virt-cat.pod:52
1311 msgid "Find out who is logged on inside a virtual machine:"
1312 msgstr "Визначення користувачів, які працюють у віртуальній машині:"
1313
1314 #. type: verbatim
1315 #: ../cat/virt-cat.pod:54
1316 #, no-wrap
1317 msgid ""
1318 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1319 " who /tmp/utmp\n"
1320 "\n"
1321 msgstr ""
1322 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1323 " who /tmp/utmp\n"
1324 "\n"
1325
1326 #. type: textblock
1327 #: ../cat/virt-cat.pod:57
1328 msgid "or who was logged on:"
1329 msgstr "або тих, які у ній працювали:"
1330
1331 #. type: verbatim
1332 #: ../cat/virt-cat.pod:59
1333 #, no-wrap
1334 msgid ""
1335 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1336 " last -f /tmp/wtmp\n"
1337 "\n"
1338 msgstr ""
1339 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1340 " last -f /tmp/wtmp\n"
1341 "\n"
1342
1343 #. type: textblock
1344 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1345 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1346 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1347 msgid ""
1348 "Add I<file> which should be a disk image from a virtual machine.  If the "
1349 "virtual machine has multiple block devices, you must supply all of them with "
1350 "separate I<-a> options."
1351 msgstr ""
1352
1353 #. type: =item
1354 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1355 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1356 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1357 msgid "B<--echo-keys>"
1358 msgstr "B<--echo-keys>"
1359
1360 #. type: textblock
1361 #: ../cat/virt-cat.pod:100
1362 msgid ""
1363 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1364 "so you cannot see what you are typing.  If you are not worried about Tempest "
1365 "attacks and there is no one else in the room you can specify this flag to "
1366 "see what you are typing."
1367 msgstr ""
1368
1369 #. type: verbatim
1370 #: ../cat/virt-cat.pod:116
1371 #, no-wrap
1372 msgid ""
1373 " virt-cat --format=raw -a disk.img file\n"
1374 "\n"
1375 msgstr ""
1376 " virt-cat --format=raw -a disk.img file\n"
1377 "\n"
1378
1379 #. type: verbatim
1380 #: ../cat/virt-cat.pod:120
1381 #, no-wrap
1382 msgid ""
1383 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1384 "\n"
1385 msgstr ""
1386 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1387 "\n"
1388
1389 #. type: =item
1390 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1391 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1392 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1393 msgid "B<--keys-from-stdin>"
1394 msgstr "B<--keys-from-stdin>"
1395
1396 #. type: textblock
1397 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1398 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1399 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1400 msgid ""
1401 "Read key or passphrase parameters from stdin.  The default is to try to read "
1402 "passphrases from the user by opening C</dev/tty>."
1403 msgstr ""
1404
1405 #. type: =head1
1406 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1407 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1408 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1409 msgstr ""
1410
1411 #. type: textblock
1412 #: ../cat/virt-cat.pod:154
1413 msgid "Previous versions of virt-cat allowed you to write either:"
1414 msgstr ""
1415
1416 #. type: verbatim
1417 #: ../cat/virt-cat.pod:156
1418 #, no-wrap
1419 msgid ""
1420 " virt-cat disk.img [disk.img ...] file\n"
1421 "\n"
1422 msgstr ""
1423
1424 #. type: textblock
1425 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1426 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1427 msgid "or"
1428 msgstr "або"
1429
1430 #. type: verbatim
1431 #: ../cat/virt-cat.pod:160
1432 #, no-wrap
1433 msgid ""
1434 " virt-cat guestname file\n"
1435 "\n"
1436 msgstr ""
1437
1438 #. type: textblock
1439 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1440 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1441 msgid ""
1442 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1443 "the confusing case where a disk image might have the same name as a guest."
1444 msgstr ""
1445
1446 #. type: textblock
1447 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1448 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1449 msgid "For compatibility the old style is still supported."
1450 msgstr ""
1451
1452 #. type: =head1
1453 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1454 msgid "WINDOWS PATHS"
1455 msgstr "ШЛЯХИ У WINDOWS"
1456
1457 #. type: textblock
1458 #: ../cat/virt-cat.pod:170
1459 msgid ""
1460 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1461 "paths (eg. C<E:\\foo\\bar.txt>)."
1462 msgstr ""
1463
1464 #. type: textblock
1465 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1466 msgid "If and only if the guest is running Windows then:"
1467 msgstr ""
1468
1469 #. type: textblock
1470 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1471 msgid ""
1472 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1473 "to the correct filesystem."
1474 msgstr ""
1475
1476 #. type: textblock
1477 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1478 msgid ""
1479 "Any backslash (C<\\>) characters in the path are replaced with forward "
1480 "slashes so that libguestfs can process it."
1481 msgstr ""
1482
1483 #. type: textblock
1484 #: ../cat/virt-cat.pod:189
1485 msgid ""
1486 "The path is resolved case insensitively to locate the file that should be "
1487 "displayed."
1488 msgstr ""
1489
1490 #. type: textblock
1491 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1492 msgid "There are some known shortcomings:"
1493 msgstr ""
1494
1495 #. type: textblock
1496 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1497 msgid "Some NTFS symbolic links may not be followed correctly."
1498 msgstr ""
1499
1500 #. type: textblock
1501 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1502 msgid "NTFS junction points that cross filesystems are not followed."
1503 msgstr ""
1504
1505 #. type: =head1
1506 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1507 msgid "USING GUESTFISH"
1508 msgstr "ВИКОРИСТАННЯ GUESTFISH"
1509
1510 #. type: textblock
1511 #: ../cat/virt-cat.pod:210
1512 msgid ""
1513 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1514 "C<virt-cat> doesn't work."
1515 msgstr ""
1516
1517 #. type: textblock
1518 #: ../cat/virt-cat.pod:213
1519 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1520 msgstr ""
1521
1522 #. type: verbatim
1523 #: ../cat/virt-cat.pod:215
1524 #, no-wrap
1525 msgid ""
1526 " guestfish --ro -i -d domname download file -\n"
1527 "\n"
1528 msgstr ""
1529
1530 #. type: textblock
1531 #: ../cat/virt-cat.pod:217
1532 msgid ""
1533 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1534 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1535 msgstr ""
1536
1537 #. type: textblock
1538 #: ../cat/virt-cat.pod:221
1539 msgid ""
1540 "The command above uses libguestfs's guest inspection feature and so does not "
1541 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1542 "disk images that don't contain guests.  To display a file from a disk image "
1543 "directly, use:"
1544 msgstr ""
1545
1546 #. type: verbatim
1547 #: ../cat/virt-cat.pod:226
1548 #, no-wrap
1549 msgid ""
1550 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1551 "\n"
1552 msgstr ""
1553
1554 #. type: textblock
1555 #: ../cat/virt-cat.pod:228
1556 msgid ""
1557 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1558 "the disk image, and C<file> is the full path to the file."
1559 msgstr ""
1560
1561 #. type: textblock
1562 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1563 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1564 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
1565 #: ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:229
1566 msgid ""
1567 "This program returns 0 if successful, or non-zero if there was an error."
1568 msgstr ""
1569
1570 #. type: textblock
1571 #: ../cat/virt-cat.pod:245
1572 msgid ""
1573 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1574 "tar-out(1)>, L<http://libguestfs.org/>."
1575 msgstr ""
1576 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1577 "tar-out(1)>, L<http://libguestfs.org/>."
1578
1579 #. type: textblock
1580 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:405
1581 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1582 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1583 msgstr "©Red Hat Inc., 2010–2011"
1584
1585 #. type: textblock
1586 #: ../cat/virt-filesystems.pod:5
1587 msgid ""
1588 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1589 "virtual machine or disk image"
1590 msgstr ""
1591
1592 #. type: verbatim
1593 #: ../cat/virt-filesystems.pod:9
1594 #, no-wrap
1595 msgid ""
1596 " virt-filesystems [--options] -d domname\n"
1597 "\n"
1598 msgstr ""
1599 " virt-filesystems [--параметри] -d назва_домену\n"
1600 "\n"
1601
1602 #. type: verbatim
1603 #: ../cat/virt-filesystems.pod:11
1604 #, no-wrap
1605 msgid ""
1606 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1607 "\n"
1608 msgstr ""
1609
1610 #. type: textblock
1611 #: ../cat/virt-filesystems.pod:15
1612 msgid ""
1613 "This tool allows you to discover filesystems, partitions, logical volumes, "
1614 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1615 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1616 msgstr ""
1617
1618 #. type: textblock
1619 #: ../cat/virt-filesystems.pod:20
1620 msgid ""
1621 "One use for this tool is from shell scripts to iterate over all filesystems "
1622 "from a disk image:"
1623 msgstr ""
1624
1625 #. type: verbatim
1626 #: ../cat/virt-filesystems.pod:23
1627 #, no-wrap
1628 msgid ""
1629 " for fs in $(virt-filesystems -a disk.img); do\n"
1630 "   # ...\n"
1631 " done\n"
1632 "\n"
1633 msgstr ""
1634 " for fs in $(virt-filesystems -a disk.img); do\n"
1635 "   # ...\n"
1636 " done\n"
1637 "\n"
1638
1639 #. type: textblock
1640 #: ../cat/virt-filesystems.pod:27
1641 msgid ""
1642 "Another use is to list partitions before using another tool to modify those "
1643 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1644 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1645 msgstr ""
1646
1647 #. type: textblock
1648 #: ../cat/virt-filesystems.pod:32
1649 msgid ""
1650 "Various command line options control what this program displays.  You need "
1651 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1652 "guest respectively.  If you just specify that then the program shows "
1653 "filesystems found, one per line, like this:"
1654 msgstr ""
1655
1656 #. type: verbatim
1657 #: ../cat/virt-filesystems.pod:37
1658 #, no-wrap
1659 msgid ""
1660 " $ virt-filesystems -a disk.img\n"
1661 " /dev/sda1\n"
1662 " /dev/vg_guest/lv_root\n"
1663 "\n"
1664 msgstr ""
1665 " $ virt-filesystems -a disk.img\n"
1666 " /dev/sda1\n"
1667 " /dev/vg_guest/lv_root\n"
1668 "\n"
1669
1670 #. type: textblock
1671 #: ../cat/virt-filesystems.pod:41
1672 msgid ""
1673 "If you add I<-l> or I<--long> then the output includes extra information:"
1674 msgstr ""
1675
1676 #. type: verbatim
1677 #: ../cat/virt-filesystems.pod:44
1678 #, no-wrap
1679 msgid ""
1680 " $ virt-filesystems -a disk.img -l\n"
1681 " Name                   Type         VFS   Label  Size\n"
1682 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1683 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1684 "\n"
1685 msgstr ""
1686
1687 #. type: textblock
1688 #: ../cat/virt-filesystems.pod:49
1689 msgid ""
1690 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1691 "shown as well:"
1692 msgstr ""
1693
1694 #. type: verbatim
1695 #: ../cat/virt-filesystems.pod:52
1696 #, no-wrap
1697 msgid ""
1698 " $ virt-filesystems -a disk.img --extra\n"
1699 " /dev/sda1\n"
1700 " /dev/vg_guest/lv_root\n"
1701 " /dev/vg_guest/lv_swap\n"
1702 " /dev/vg_guest/lv_data\n"
1703 "\n"
1704 msgstr ""
1705 " $ virt-filesystems -a disk.img --extra\n"
1706 " /dev/sda1\n"
1707 " /dev/vg_guest/lv_root\n"
1708 " /dev/vg_guest/lv_swap\n"
1709 " /dev/vg_guest/lv_data\n"
1710 "\n"
1711
1712 #. type: textblock
1713 #: ../cat/virt-filesystems.pod:58
1714 msgid ""
1715 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1716 msgstr ""
1717
1718 #. type: verbatim
1719 #: ../cat/virt-filesystems.pod:60
1720 #, no-wrap
1721 msgid ""
1722 " $ virt-filesystems -a disk.img --partitions\n"
1723 " /dev/sda1\n"
1724 " /dev/sda2\n"
1725 "\n"
1726 msgstr ""
1727 " $ virt-filesystems -a disk.img --partitions\n"
1728 " /dev/sda1\n"
1729 " /dev/sda2\n"
1730 "\n"
1731
1732 #. type: textblock
1733 #: ../cat/virt-filesystems.pod:64
1734 msgid ""
1735 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1736 "volumes>, I<--block-devices> to list those items."
1737 msgstr ""
1738
1739 #. type: textblock
1740 #: ../cat/virt-filesystems.pod:67
1741 msgid ""
1742 "You can use these options in combination as well (if you want a combination "
1743 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1744 "items fall into several categories (eg. C</dev/sda1> might be both a "
1745 "partition and a filesystem).  These items are listed several times.  To get "
1746 "a list which includes absolutely everything that virt-filesystems knows "
1747 "about, use the I<--all> option."
1748 msgstr ""
1749
1750 #. type: textblock
1751 #: ../cat/virt-filesystems.pod:74
1752 msgid ""
1753 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1754 "uuid> option to display device and filesystem UUIDs in the long output."
1755 msgstr ""
1756
1757 #. type: textblock
1758 #: ../cat/virt-filesystems.pod:78
1759 msgid ""
1760 "I<--all --long --uuid> is a useful combination to display all possible "
1761 "information about everything."
1762 msgstr ""
1763
1764 #. type: verbatim
1765 #: ../cat/virt-filesystems.pod:81
1766 #, no-wrap
1767 msgid ""
1768 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1769 " Name      Type       VFS  Label           Size Parent   UUID\n"
1770 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1771 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1772 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1773 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1774 " /dev/sda  device     -    -               20G  -        -\n"
1775 "\n"
1776 msgstr ""
1777
1778 #. type: textblock
1779 #: ../cat/virt-filesystems.pod:89
1780 msgid ""
1781 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1782 msgstr ""
1783
1784 #. type: =item
1785 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1786 msgid "B<--all>"
1787 msgstr "B<--all>"
1788
1789 #. type: textblock
1790 #: ../cat/virt-filesystems.pod:112
1791 msgid ""
1792 "Display everything.  This is currently the same as specifying these options: "
1793 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1794 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1795 "added to this list in future)."
1796 msgstr ""
1797
1798 #. type: textblock
1799 #: ../cat/virt-filesystems.pod:117
1800 msgid "See also I<--long>."
1801 msgstr "Див. також I<--long>."
1802
1803 #. type: =item
1804 #: ../cat/virt-filesystems.pod:119
1805 msgid "B<--blkdevs>"
1806 msgstr "B<--blkdevs>"
1807
1808 #. type: =item
1809 #: ../cat/virt-filesystems.pod:121
1810 msgid "B<--block-devices>"
1811 msgstr "B<--block-devices>"
1812
1813 #. type: textblock
1814 #: ../cat/virt-filesystems.pod:123
1815 msgid "Display block devices."
1816 msgstr "Показати список блокових пристроїв."
1817
1818 #. type: =item
1819 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1820 msgid "B<--csv>"
1821 msgstr "B<--csv>"
1822
1823 #. type: textblock
1824 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1825 msgid ""
1826 "Write out the results in CSV format (comma-separated values).  This format "
1827 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1828 "ABOUT CSV FORMAT> below."
1829 msgstr ""
1830
1831 #. type: textblock
1832 #: ../cat/virt-filesystems.pod:150
1833 msgid ""
1834 "When prompting for keys and passphrases, virt-filesystems normally turns "
1835 "echoing off so you cannot see what you are typing.  If you are not worried "
1836 "about Tempest attacks and there is no one else in the room you can specify "
1837 "this flag to see what you are typing."
1838 msgstr ""
1839
1840 #. type: =item
1841 #: ../cat/virt-filesystems.pod:155
1842 msgid "B<--extra>"
1843 msgstr "B<--extra>"
1844
1845 #. type: textblock
1846 #: ../cat/virt-filesystems.pod:157
1847 msgid ""
1848 "This causes filesystems that are not ordinary, mountable filesystems to be "
1849 "displayed.  This category includes swapspace, and filesystems that are empty "
1850 "or contain unknown data."
1851 msgstr ""
1852
1853 #. type: textblock
1854 #: ../cat/virt-filesystems.pod:161
1855 msgid "This option implies I<--filesystems>."
1856 msgstr ""
1857
1858 #. type: =item
1859 #: ../cat/virt-filesystems.pod:163
1860 msgid "B<--filesystems>"
1861 msgstr "B<--filesystems>"
1862
1863 #. type: textblock
1864 #: ../cat/virt-filesystems.pod:165
1865 msgid ""
1866 "Display mountable filesystems.  If no display option was selected then this "
1867 "option is implied."
1868 msgstr ""
1869
1870 #. type: textblock
1871 #: ../cat/virt-filesystems.pod:168
1872 msgid "With I<--extra>, non-mountable filesystems are shown too."
1873 msgstr ""
1874
1875 #. type: verbatim
1876 #: ../cat/virt-filesystems.pod:181
1877 #, no-wrap
1878 msgid ""
1879 " virt-filesystems --format=raw -a disk.img\n"
1880 "\n"
1881 msgstr ""
1882 " virt-filesystems --format=raw -a диск.img\n"
1883 "\n"
1884
1885 #. type: verbatim
1886 #: ../cat/virt-filesystems.pod:185
1887 #, no-wrap
1888 msgid ""
1889 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1890 "\n"
1891 msgstr ""
1892
1893 #. type: =item
1894 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1895 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1896 #: ../tools/virt-list-partitions.pl:109
1897 msgid "B<-h>"
1898 msgstr "B<-h>"
1899
1900 #. type: =item
1901 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1902 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1903 msgid "B<--human-readable>"
1904 msgstr "B<--human-readable>"
1905
1906 #. type: textblock
1907 #: ../cat/virt-filesystems.pod:198
1908 msgid "In I<--long> mode, display sizes in human-readable format."
1909 msgstr ""
1910
1911 #. type: =item
1912 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1913 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1914 msgid "B<-l>"
1915 msgstr "B<-l>"
1916
1917 #. type: =item
1918 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1919 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1920 msgid "B<--long>"
1921 msgstr "B<--long>"
1922
1923 #. type: textblock
1924 #: ../cat/virt-filesystems.pod:209
1925 msgid "Display extra columns of data (\"long format\")."
1926 msgstr ""
1927
1928 #. type: textblock
1929 #: ../cat/virt-filesystems.pod:211
1930 msgid "A title row is added unless you also specify I<--no-title>."
1931 msgstr ""
1932
1933 #. type: textblock
1934 #: ../cat/virt-filesystems.pod:213
1935 msgid ""
1936 "The extra columns displayed depend on what output you select, and the "
1937 "ordering of columns may change in future versions.  Use the title row, I<--"
1938 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1939 "programs."
1940 msgstr ""
1941
1942 #. type: textblock
1943 #: ../cat/virt-filesystems.pod:218
1944 msgid ""
1945 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1946 "default is to show raw numbers of I<bytes>."
1947 msgstr ""
1948
1949 #. type: textblock
1950 #: ../cat/virt-filesystems.pod:221
1951 msgid "Use I<--uuid> to display UUIDs too."
1952 msgstr ""
1953
1954 #. type: =item
1955 #: ../cat/virt-filesystems.pod:223
1956 msgid "B<--lvs>"
1957 msgstr "B<--lvs>"
1958
1959 #. type: =item
1960 #: ../cat/virt-filesystems.pod:225
1961 msgid "B<--logvols>"
1962 msgstr "B<--logvols>"
1963
1964 #. type: =item
1965 #: ../cat/virt-filesystems.pod:227
1966 msgid "B<--logical-volumes>"
1967 msgstr "B<--logical-volumes>"
1968
1969 #. type: textblock
1970 #: ../cat/virt-filesystems.pod:229
1971 msgid ""
1972 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1973 "of whether the LVs contain filesystems."
1974 msgstr ""
1975
1976 #. type: =item
1977 #: ../cat/virt-filesystems.pod:232
1978 msgid "B<--no-title>"
1979 msgstr "B<--no-title>"
1980
1981 #. type: textblock
1982 #: ../cat/virt-filesystems.pod:234
1983 msgid "In I<--long> mode, don't add a title row."
1984 msgstr ""
1985
1986 #. type: textblock
1987 #: ../cat/virt-filesystems.pod:236
1988 msgid ""
1989 "Note that the order of the columns is not fixed, and may change in future "
1990 "versions of virt-filesystems, so using this option may give you unexpected "
1991 "surprises."
1992 msgstr ""
1993
1994 #. type: =item
1995 #: ../cat/virt-filesystems.pod:240
1996 msgid "B<--parts>"
1997 msgstr "B<--parts>"
1998
1999 #. type: =item
2000 #: ../cat/virt-filesystems.pod:242
2001 msgid "B<--partitions>"
2002 msgstr "B<--partitions>"
2003
2004 #. type: textblock
2005 #: ../cat/virt-filesystems.pod:244
2006 msgid ""
2007 "Display partitions.  In this mode, these are displayed irrespective of "
2008 "whether the partitions contain filesystems."
2009 msgstr ""
2010
2011 #. type: =item
2012 #: ../cat/virt-filesystems.pod:247
2013 msgid "B<--pvs>"
2014 msgstr "B<--pvs>"
2015
2016 #. type: =item
2017 #: ../cat/virt-filesystems.pod:249
2018 msgid "B<--physvols>"
2019 msgstr "B<--physvols>"
2020
2021 #. type: =item
2022 #: ../cat/virt-filesystems.pod:251
2023 msgid "B<--physical-volumes>"
2024 msgstr "B<--physical-volumes>"
2025
2026 #. type: textblock
2027 #: ../cat/virt-filesystems.pod:253
2028 msgid "Display LVM physical volumes."
2029 msgstr ""
2030
2031 #. type: =item
2032 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
2033 msgid "B<--uuid>"
2034 msgstr "B<--uuid>"
2035
2036 #. type: =item
2037 #: ../cat/virt-filesystems.pod:257
2038 msgid "B<--uuids>"
2039 msgstr "B<--uuids>"
2040
2041 #. type: textblock
2042 #: ../cat/virt-filesystems.pod:259
2043 msgid "In I<--long> mode, display UUIDs as well."
2044 msgstr ""
2045
2046 #. type: =item
2047 #: ../cat/virt-filesystems.pod:273
2048 msgid "B<--vgs>"
2049 msgstr "B<--vgs>"
2050
2051 #. type: =item
2052 #: ../cat/virt-filesystems.pod:275
2053 msgid "B<--volgroups>"
2054 msgstr "B<--volgroups>"
2055
2056 #. type: =item
2057 #: ../cat/virt-filesystems.pod:277
2058 msgid "B<--volume-groups>"
2059 msgstr "B<--volume-groups>"
2060
2061 #. type: textblock
2062 #: ../cat/virt-filesystems.pod:279
2063 msgid "Display LVM volume groups."
2064 msgstr ""
2065
2066 #. type: =head1
2067 #: ../cat/virt-filesystems.pod:287
2068 msgid "COLUMNS"
2069 msgstr "СТОВПЧИКИ"
2070
2071 #. type: textblock
2072 #: ../cat/virt-filesystems.pod:289
2073 msgid ""
2074 "Note that columns in the output are subject to reordering and change in "
2075 "future versions of this tool."
2076 msgstr ""
2077
2078 #. type: =item
2079 #: ../cat/virt-filesystems.pod:294
2080 msgid "B<Name>"
2081 msgstr ""
2082
2083 #. type: textblock
2084 #: ../cat/virt-filesystems.pod:296
2085 msgid "The filesystem, partition, block device or LVM name."
2086 msgstr ""
2087
2088 #. type: textblock
2089 #: ../cat/virt-filesystems.pod:298
2090 msgid ""
2091 "For device and partition names these are displayed as canonical libguestfs "
2092 "names, so that for example C</dev/sda2> is the second partition on the first "
2093 "device."
2094 msgstr ""
2095
2096 #. type: textblock
2097 #: ../cat/virt-filesystems.pod:302
2098 msgid ""
2099 "If the I<--long> option is B<not> specified, then only the name column is "
2100 "shown in the output."
2101 msgstr ""
2102
2103 #. type: =item
2104 #: ../cat/virt-filesystems.pod:305
2105 msgid "B<Type>"
2106 msgstr ""
2107
2108 #. type: textblock
2109 #: ../cat/virt-filesystems.pod:307
2110 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2111 msgstr ""
2112
2113 #. type: =item
2114 #: ../cat/virt-filesystems.pod:309
2115 msgid "B<VFS>"
2116 msgstr "B<VFS>"
2117
2118 #. type: textblock
2119 #: ../cat/virt-filesystems.pod:311
2120 msgid ""
2121 "If there is a filesystem, then this column displays the filesystem type if "
2122 "one could be detected, eg. C<ext4>."
2123 msgstr ""
2124
2125 #. type: =item
2126 #: ../cat/virt-filesystems.pod:314
2127 msgid "B<Label>"
2128 msgstr ""
2129
2130 #. type: textblock
2131 #: ../cat/virt-filesystems.pod:316
2132 msgid ""
2133 "If the object has a label (used for identifying and mounting filesystems) "
2134 "then this column contains the label."
2135 msgstr ""
2136
2137 #. type: =item
2138 #: ../cat/virt-filesystems.pod:319
2139 #, fuzzy
2140 #| msgid "B<MB>"
2141 msgid "B<MBR>"
2142 msgstr "B<MB>"
2143
2144 #. type: textblock
2145 #: ../cat/virt-filesystems.pod:321
2146 msgid ""
2147 "The partition type byte, displayed as a two digit hexadecimal number.  A "
2148 "comprehensive list of partition types can be found here: L<http://www.win."
2149 "tue.nl/~aeb/partitions/partition_types-1.html>"
2150 msgstr ""
2151
2152 #. type: textblock
2153 #: ../cat/virt-filesystems.pod:325
2154 msgid "This is only applicable for DOS (MBR) partitions."
2155 msgstr ""
2156
2157 #. type: =item
2158 #: ../cat/virt-filesystems.pod:327
2159 msgid "B<Size>"
2160 msgstr ""
2161
2162 #. type: textblock
2163 #: ../cat/virt-filesystems.pod:329
2164 msgid ""
2165 "The size of the object in bytes.  If the I<--human> option is used then the "
2166 "size is displayed in a human-readable form."
2167 msgstr ""
2168
2169 #. type: =item
2170 #: ../cat/virt-filesystems.pod:332
2171 msgid "B<Parent>"
2172 msgstr ""
2173
2174 #. type: textblock
2175 #: ../cat/virt-filesystems.pod:334
2176 msgid ""
2177 "The parent column records the parent relationship between objects.  For "
2178 "example, if the object is a partition, then this column contains the name of "
2179 "the containing device.  If the object is a logical volume, then this column "
2180 "is the name of the volume group."
2181 msgstr ""
2182
2183 #. type: =item
2184 #: ../cat/virt-filesystems.pod:339
2185 msgid "B<UUID>"
2186 msgstr "B<UUID>"
2187
2188 #. type: textblock
2189 #: ../cat/virt-filesystems.pod:341
2190 msgid ""
2191 "If the object has a UUID (used for identifying and mounting filesystems and "
2192 "block devices) then this column contains the UUID as a string."
2193 msgstr ""
2194
2195 #. type: textblock
2196 #: ../cat/virt-filesystems.pod:345
2197 msgid "The UUID is only displayed if the I<--uuid> option is given."
2198 msgstr ""
2199
2200 #. type: =head1
2201 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2202 #: ../df/virt-df.pod:191
2203 msgid "NOTE ABOUT CSV FORMAT"
2204 msgstr ""
2205
2206 #. type: textblock
2207 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2208 #: ../df/virt-df.pod:193
2209 msgid ""
2210 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2211 "should be easy to parse, but it is definitely not easy to parse."
2212 msgstr ""
2213
2214 #. type: textblock
2215 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2216 #: ../df/virt-df.pod:196
2217 msgid ""
2218 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2219 "reliably.  This example has two columns:"
2220 msgstr ""
2221
2222 #. type: verbatim
2223 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2224 #: ../df/virt-df.pod:199
2225 #, no-wrap
2226 msgid ""
2227 " \"foo,bar\",baz\n"
2228 "\n"
2229 msgstr ""
2230
2231 #. type: textblock
2232 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2233 #: ../df/virt-df.pod:201
2234 msgid ""
2235 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2236 "reliably.  This example has one row:"
2237 msgstr ""
2238
2239 #. type: verbatim
2240 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2241 #: ../df/virt-df.pod:204
2242 #, no-wrap
2243 msgid ""
2244 " \"foo\n"
2245 " bar\",baz\n"
2246 "\n"
2247 msgstr ""
2248
2249 #. type: textblock
2250 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2251 #: ../df/virt-df.pod:207
2252 msgid ""
2253 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2254 "packaged in major Linux distributions)."
2255 msgstr ""
2256
2257 #. type: textblock
2258 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2259 #: ../df/virt-df.pod:210
2260 msgid ""
2261 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2262 "or Python's built-in csv library)."
2263 msgstr ""
2264
2265 #. type: textblock
2266 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2267 #: ../df/virt-df.pod:213
2268 msgid "Most spreadsheets and databases can import CSV directly."
2269 msgstr ""
2270
2271 #. type: textblock
2272 #: ../cat/virt-filesystems.pod:387
2273 msgid ""
2274 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2275 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2276 "libguestfs.org/>."
2277 msgstr ""
2278 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2279 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2280 "libguestfs.org/>."
2281
2282 #. type: textblock
2283 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2284 msgid "Copyright (C) 2010 Red Hat Inc."
2285 msgstr "©Red Hat Inc., 2010"
2286
2287 #. type: textblock
2288 #: ../cat/virt-ls.pod:5
2289 msgid "virt-ls - List files in a virtual machine"
2290 msgstr ""
2291
2292 #. type: verbatim
2293 #: ../cat/virt-ls.pod:9
2294 #, no-wrap
2295 msgid ""
2296 " virt-ls [--options] -d domname directory [directory ...]\n"
2297 "\n"
2298 msgstr ""
2299
2300 #. type: verbatim
2301 #: ../cat/virt-ls.pod:11
2302 #, no-wrap
2303 msgid ""
2304 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2305 "\n"
2306 msgstr ""
2307
2308 #. type: textblock
2309 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2310 msgid "Old style:"
2311 msgstr "Старий стиль:"
2312
2313 #. type: verbatim
2314 #: ../cat/virt-ls.pod:15
2315 #, no-wrap
2316 msgid ""
2317 " virt-ls [--options] domname directory\n"
2318 "\n"
2319 msgstr ""
2320
2321 #. type: verbatim
2322 #: ../cat/virt-ls.pod:17
2323 #, no-wrap
2324 msgid ""
2325 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2326 "\n"
2327 msgstr ""
2328
2329 #. type: textblock
2330 #: ../cat/virt-ls.pod:21
2331 msgid ""
2332 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2333 "more from a virtual machine or disk image."
2334 msgstr ""
2335
2336 #. type: textblock
2337 #: ../cat/virt-ls.pod:24
2338 msgid ""
2339 "Multiple directory names can be given, in which case the output from each is "
2340 "concatenated."
2341 msgstr ""
2342
2343 #. type: textblock
2344 #: ../cat/virt-ls.pod:27
2345 msgid ""
2346 "To list directories from a libvirt guest use the I<-d> option to specify the "
2347 "name of the guest.  For a disk image, use the I<-a> option."
2348 msgstr ""
2349
2350 #. type: textblock
2351 #: ../cat/virt-ls.pod:31
2352 msgid ""
2353 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2354 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2355 "(3)> API."
2356 msgstr ""
2357
2358 #. type: textblock
2359 #: ../cat/virt-ls.pod:37
2360 msgid "Get a list of all files and directories in a virtual machine:"
2361 msgstr ""
2362
2363 #. type: verbatim
2364 #: ../cat/virt-ls.pod:39
2365 #, no-wrap
2366 msgid ""
2367 " virt-ls -R -d guest /\n"
2368 "\n"
2369 msgstr ""
2370
2371 #. type: textblock
2372 #: ../cat/virt-ls.pod:41
2373 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2374 msgstr ""
2375
2376 #. type: verbatim
2377 #: ../cat/virt-ls.pod:43
2378 #, no-wrap
2379 msgid ""
2380 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2381 "\n"
2382 msgstr ""
2383
2384 #. type: textblock
2385 #: ../cat/virt-ls.pod:45
2386 msgid "List all public-writable directories in a Linux virtual machine:"
2387 msgstr ""
2388
2389 #. type: verbatim
2390 #: ../cat/virt-ls.pod:47
2391 #, no-wrap
2392 msgid ""
2393 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2394 "\n"
2395 msgstr ""
2396
2397 #. type: textblock
2398 #: ../cat/virt-ls.pod:49
2399 msgid "List all Unix domain sockets in a Linux virtual machine:"
2400 msgstr ""
2401
2402 #. type: verbatim
2403 #: ../cat/virt-ls.pod:51
2404 #, no-wrap
2405 msgid ""
2406 " virt-ls -lR -d guest / | grep '^s'\n"
2407 "\n"
2408 msgstr ""
2409
2410 #. type: textblock
2411 #: ../cat/virt-ls.pod:53
2412 msgid "List all regular files with filenames ending in '.png':"
2413 msgstr ""
2414
2415 #. type: verbatim
2416 #: ../cat/virt-ls.pod:55
2417 #, no-wrap
2418 msgid ""
2419 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2420 "\n"
2421 msgstr ""
2422
2423 #. type: textblock
2424 #: ../cat/virt-ls.pod:57
2425 msgid "To display files larger than 10MB in home directories:"
2426 msgstr ""
2427
2428 #. type: verbatim
2429 #: ../cat/virt-ls.pod:59
2430 #, no-wrap
2431 msgid ""
2432 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2433 "\n"
2434 msgstr ""
2435
2436 #. type: textblock
2437 #: ../cat/virt-ls.pod:61
2438 msgid "Find everything modified in the last 7 days:"
2439 msgstr ""
2440
2441 #. type: verbatim
2442 #: ../cat/virt-ls.pod:63
2443 #, no-wrap
2444 msgid ""
2445 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2446 "\n"
2447 msgstr ""
2448
2449 #. type: textblock
2450 #: ../cat/virt-ls.pod:65
2451 msgid "Find regular files modified in the last 24 hours:"
2452 msgstr ""
2453
2454 #. type: verbatim
2455 #: ../cat/virt-ls.pod:67
2456 #, no-wrap
2457 msgid ""
2458 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2459 "\n"
2460 msgstr ""
2461
2462 #. type: =head2
2463 #: ../cat/virt-ls.pod:69
2464 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2465 msgstr ""
2466
2467 #. type: textblock
2468 #: ../cat/virt-ls.pod:71
2469 msgid ""
2470 "Find the differences between files in a guest and an earlier snapshot of the "
2471 "same guest."
2472 msgstr ""
2473
2474 #. type: verbatim
2475 #: ../cat/virt-ls.pod:74
2476 #, no-wrap
2477 msgid ""
2478 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2479 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2480 " diff -u old new | less\n"
2481 "\n"
2482 msgstr ""
2483
2484 #. type: textblock
2485 #: ../cat/virt-ls.pod:78
2486 msgid ""
2487 "The commands above won't find files where the content has changed but the "
2488 "metadata (eg. file size and modification date) is the same.  To do that, you "
2489 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2490 "checksum> can be quite slow since it has to read and compute a checksum of "
2491 "every regular file in the virtual machine."
2492 msgstr ""
2493
2494 #. type: =head1
2495 #: ../cat/virt-ls.pod:84
2496 msgid "OUTPUT MODES"
2497 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2498
2499 #. type: textblock
2500 #: ../cat/virt-ls.pod:86
2501 msgid ""
2502 "C<virt-ls> has four output modes, controlled by different combinations of "
2503 "the I<-l> and I<-R> options."
2504 msgstr ""
2505
2506 #. type: =head2
2507 #: ../cat/virt-ls.pod:89
2508 msgid "SIMPLE LISTING"
2509 msgstr "ПРОСТИЙ СПИСОК"
2510
2511 #. type: textblock
2512 #: ../cat/virt-ls.pod:91
2513 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2514 msgstr ""
2515
2516 #. type: verbatim
2517 #: ../cat/virt-ls.pod:93
2518 #, no-wrap
2519 msgid ""
2520 " $ virt-ls -d guest /\n"
2521 " bin\n"
2522 " boot\n"
2523 " [etc.]\n"
2524 "\n"
2525 msgstr ""
2526 " $ virt-ls -d guest /\n"
2527 " bin\n"
2528 " boot\n"
2529 " [тощо]\n"
2530 "\n"
2531
2532 #. type: =head2
2533 #: ../cat/virt-ls.pod:98
2534 msgid "LONG LISTING"
2535 msgstr "ДОВГИЙ СПИСОК"
2536
2537 #. type: textblock
2538 #: ../cat/virt-ls.pod:100
2539 msgid ""
2540 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2541 "(more specifically, like the C<guestfs_ll> function)."
2542 msgstr ""
2543
2544 #. type: verbatim
2545 #: ../cat/virt-ls.pod:103
2546 #, no-wrap
2547 msgid ""
2548 " $ virt-ls -l -d guest /\n"
2549 " total 204\n"
2550 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2551 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2552 " [etc.]\n"
2553 "\n"
2554 msgstr ""
2555 " $ virt-ls -l -d guest /\n"
2556 " total 204\n"
2557 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2558 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2559 " [тощо]\n"
2560 "\n"
2561
2562 #. type: textblock
2563 #: ../cat/virt-ls.pod:109
2564 msgid ""
2565 "Note that while this is useful for displaying a directory, do not try "
2566 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2567 "instead."
2568 msgstr ""
2569
2570 #. type: =head2
2571 #: ../cat/virt-ls.pod:113
2572 msgid "RECURSIVE LISTING"
2573 msgstr "РЕКУРСИВНИЙ СПИСОК"
2574
2575 #. type: textblock
2576 #: ../cat/virt-ls.pod:115
2577 msgid ""
2578 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2579 "and directories recursively:"
2580 msgstr ""
2581
2582 #. type: verbatim
2583 #: ../cat/virt-ls.pod:118
2584 #, no-wrap
2585 msgid ""
2586 " $ virt-ls -R -d guest /tmp\n"
2587 " foo\n"
2588 " foo/bar\n"
2589 " [etc.]\n"
2590 "\n"
2591 msgstr ""
2592 " $ virt-ls -R -d guest /tmp\n"
2593 " foo\n"
2594 " foo/bar\n"
2595 " [тощо]\n"
2596 "\n"
2597
2598 #. type: textblock
2599 #: ../cat/virt-ls.pod:123
2600 msgid ""
2601 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2602 "converts C<\\0> characters to C<\\n>."
2603 msgstr ""
2604
2605 #. type: =head2
2606 #: ../cat/virt-ls.pod:126
2607 msgid "RECURSIVE LONG LISTING"
2608 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2609
2610 #. type: textblock
2611 #: ../cat/virt-ls.pod:128
2612 msgid ""
2613 "Using I<-lR> options together changes the output to display directories "
2614 "recursively, with file stats, and optionally other features such as "
2615 "checksums and extended attributes."
2616 msgstr ""
2617
2618 #. type: textblock
2619 #: ../cat/virt-ls.pod:132
2620 msgid ""
2621 "Most of the interesting features of C<virt-ls> are only available when using "
2622 "I<-lR> mode."
2623 msgstr ""
2624
2625 #. type: textblock
2626 #: ../cat/virt-ls.pod:135
2627 msgid ""
2628 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2629 "you cannot use the output in another program (because filenames can contain "
2630 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2631 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2632 "on you by creating filenames with embedded newline characters.  To B<safely> "
2633 "parse the output in another program, use the I<--csv> (Comma-Separated "
2634 "Values) option."
2635 msgstr ""
2636
2637 #. type: textblock
2638 #: ../cat/virt-ls.pod:143
2639 msgid ""
2640 "Note that this output format is completely unrelated to the C<ls -lR> "
2641 "command."
2642 msgstr ""
2643
2644 #. type: verbatim
2645 #: ../cat/virt-ls.pod:146
2646 #, no-wrap
2647 msgid ""
2648 " $ virt-ls -lR -d guest /bin\n"
2649 " d 0555       4096 /bin\n"
2650 " - 0755        123 /bin/alsaunmute\n"
2651 " - 0755      28328 /bin/arch\n"
2652 " l 0777          4 /bin/awk -> gawk\n"
2653 " - 0755      27216 /bin/basename\n"
2654 " - 0755     943360 /bin/bash\n"
2655 " [etc.]\n"
2656 "\n"
2657 msgstr ""
2658 " $ virt-ls -lR -d guest /bin\n"
2659 " d 0555       4096 /bin\n"
2660 " - 0755        123 /bin/alsaunmute\n"
2661 " - 0755      28328 /bin/arch\n"
2662 " l 0777          4 /bin/awk -> gawk\n"
2663 " - 0755      27216 /bin/basename\n"
2664 " - 0755     943360 /bin/bash\n"
2665 " [тощо]\n"
2666 "\n"
2667
2668 #. type: textblock
2669 #: ../cat/virt-ls.pod:155
2670 msgid "These basic fields are always shown:"
2671 msgstr ""
2672
2673 #. type: =item
2674 #: ../cat/virt-ls.pod:159
2675 msgid "type"
2676 msgstr "тип"
2677
2678 #. type: textblock
2679 #: ../cat/virt-ls.pod:161
2680 msgid ""
2681 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2682 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2683 "link), C<s> (socket) or C<u> (unknown)."
2684 msgstr ""
2685
2686 #. type: =item
2687 #: ../cat/virt-ls.pod:171
2688 msgid "permissions"
2689 msgstr "права доступу"
2690
2691 #. type: textblock
2692 #: ../cat/virt-ls.pod:173
2693 msgid "The Unix permissions, displayed as a 4 digit octal number."
2694 msgstr ""
2695
2696 #. type: =item
2697 #: ../cat/virt-ls.pod:175
2698 msgid "size"
2699 msgstr "розмір"
2700
2701 #. type: textblock
2702 #: ../cat/virt-ls.pod:177
2703 msgid ""
2704 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2705 "readable> option is given, in which case this is shown as a human-readable "
2706 "number."
2707 msgstr ""
2708
2709 #. type: =head2
2710 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4395
2711 msgid "path"
2712 msgstr "шлях"
2713
2714 #. type: textblock
2715 #: ../cat/virt-ls.pod:183
2716 msgid "The full path of the file or directory."
2717 msgstr ""
2718
2719 #. type: =item
2720 #: ../cat/virt-ls.pod:185
2721 msgid "link"
2722 msgstr "посилання"
2723
2724 #. type: textblock
2725 #: ../cat/virt-ls.pod:187
2726 msgid "For symbolic links only, the link target."
2727 msgstr ""
2728
2729 #. type: textblock
2730 #: ../cat/virt-ls.pod:191
2731 msgid ""
2732 "In I<-lR> mode, additional command line options enable the display of more "
2733 "fields."
2734 msgstr ""
2735
2736 #. type: textblock
2737 #: ../cat/virt-ls.pod:194
2738 msgid ""
2739 "With the I<--uids> flag, these additional fields are displayed before the "
2740 "path:"
2741 msgstr ""
2742
2743 #. type: =item
2744 #: ../cat/virt-ls.pod:199
2745 msgid "uid"
2746 msgstr "uid"
2747
2748 #. type: =item
2749 #: ../cat/virt-ls.pod:201
2750 msgid "gid"
2751 msgstr "gid"
2752
2753 #. type: textblock
2754 #: ../cat/virt-ls.pod:203
2755 msgid ""
2756 "The UID and GID of the owner of the file (displayed numerically).  Note "
2757 "these only make sense in the context of a Unix-like guest."
2758 msgstr ""
2759
2760 #. type: textblock
2761 #: ../cat/virt-ls.pod:208
2762 msgid "With the I<--times> flag, these additional fields are displayed:"
2763 msgstr ""
2764
2765 #. type: =item
2766 #: ../cat/virt-ls.pod:212
2767 msgid "atime"
2768 msgstr "atime"
2769
2770 #. type: textblock
2771 #: ../cat/virt-ls.pod:214
2772 msgid "The time of last access."
2773 msgstr "Час останнього доступу."
2774
2775 #. type: =item
2776 #: ../cat/virt-ls.pod:216
2777 msgid "mtime"
2778 msgstr "mtime"
2779
2780 #. type: textblock
2781 #: ../cat/virt-ls.pod:218
2782 msgid "The time of last modification."
2783 msgstr "Час останнього внесення змін."
2784
2785 #. type: =item
2786 #: ../cat/virt-ls.pod:220
2787 msgid "ctime"
2788 msgstr "ctime"
2789
2790 #. type: textblock
2791 #: ../cat/virt-ls.pod:222
2792 msgid "The time of last status change."
2793 msgstr "Час останньої зміни стану."
2794
2795 #. type: textblock
2796 #: ../cat/virt-ls.pod:226
2797 msgid ""
2798 "The time fields are displayed as string dates and times, unless one of the "
2799 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2800 msgstr ""
2801
2802 #. type: textblock
2803 #: ../cat/virt-ls.pod:229
2804 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2805 msgstr ""
2806
2807 #. type: =item
2808 #: ../cat/virt-ls.pod:233
2809 msgid "device"
2810 msgstr "пристрій"
2811
2812 #. type: textblock
2813 #: ../cat/virt-ls.pod:235
2814 msgid ""
2815 "The device containing the file (displayed as major:minor).  This may not "
2816 "match devices as known to the guest."
2817 msgstr ""
2818
2819 #. type: =item
2820 #: ../cat/virt-ls.pod:238
2821 msgid "inode"
2822 msgstr "inode"
2823
2824 #. type: textblock
2825 #: ../cat/virt-ls.pod:240
2826 msgid "The inode number."
2827 msgstr ""
2828
2829 #. type: =item
2830 #: ../cat/virt-ls.pod:242
2831 msgid "nlink"
2832 msgstr "nlink"
2833
2834 #. type: textblock
2835 #: ../cat/virt-ls.pod:244
2836 msgid "The number of hard links."
2837 msgstr "Кількість жорстких посилань."
2838
2839 #. type: =item
2840 #: ../cat/virt-ls.pod:246
2841 msgid "rdev"
2842 msgstr "rdev"
2843
2844 #. type: textblock
2845 #: ../cat/virt-ls.pod:248
2846 msgid ""
2847 "For block and char special files, the device (displayed as major:minor)."
2848 msgstr ""
2849
2850 #. type: =item
2851 #: ../cat/virt-ls.pod:251
2852 msgid "blocks"
2853 msgstr "блоки"
2854
2855 #. type: textblock
2856 #: ../cat/virt-ls.pod:253
2857 msgid "The number of 512 byte blocks allocated to the file."
2858 msgstr ""
2859
2860 #. type: textblock
2861 #: ../cat/virt-ls.pod:257
2862 msgid ""
2863 "With the I<--checksum> flag, the checksum of the file contents is shown "
2864 "(only for regular files).  Computing file checksums can take a considerable "
2865 "amount of time."
2866 msgstr ""
2867
2868 #. type: =item
2869 #: ../cat/virt-ls.pod:280
2870 msgid "B<--checksum>"
2871 msgstr "B<--checksum>"
2872
2873 #. type: =item
2874 #: ../cat/virt-ls.pod:282
2875 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2876 msgstr "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2877
2878 #. type: textblock
2879 #: ../cat/virt-ls.pod:284
2880 msgid ""
2881 "Display checksum over file contents for regular files.  With no argument, "
2882 "this defaults to using I<md5>.  Using an argument, you can select the "
2883 "checksum type to use."
2884 msgstr ""
2885
2886 #. type: textblock
2887 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2888 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2889 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2890 msgid ""
2891 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2892 "LISTING> above."
2893 msgstr ""
2894
2895 #. type: textblock
2896 #: ../cat/virt-ls.pod:316
2897 msgid ""
2898 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2899 "so you cannot see what you are typing.  If you are not worried about Tempest "
2900 "attacks and there is no one else in the room you can specify this flag to "
2901 "see what you are typing."
2902 msgstr ""
2903
2904 #. type: =item
2905 #: ../cat/virt-ls.pod:321
2906 msgid "B<--extra-stats>"
2907 msgstr "B<--extra-stats>"
2908
2909 #. type: textblock
2910 #: ../cat/virt-ls.pod:323
2911 msgid "Display extra stats."
2912 msgstr "Показати додаткові дані."
2913
2914 #. type: verbatim
2915 #: ../cat/virt-ls.pod:339
2916 #, no-wrap
2917 msgid ""
2918 " virt-ls --format=raw -a disk.img /dir\n"
2919 "\n"
2920 msgstr ""
2921
2922 #. type: verbatim
2923 #: ../cat/virt-ls.pod:343
2924 #, no-wrap
2925 msgid ""
2926 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2927 "\n"
2928 msgstr ""
2929
2930 #. type: textblock
2931 #: ../cat/virt-ls.pod:356
2932 msgid "Display file sizes in human-readable format."
2933 msgstr ""
2934
2935 #. type: =item
2936 #: ../cat/virt-ls.pod:370
2937 msgid "B<-R>"
2938 msgstr "B<-R>"
2939
2940 #. type: =item
2941 #: ../cat/virt-ls.pod:372
2942 msgid "B<--recursive>"
2943 msgstr "B<--recursive>"
2944
2945 #. type: textblock
2946 #: ../cat/virt-ls.pod:374
2947 msgid ""
2948 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2949 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2950 "LISTING>."
2951 msgstr ""
2952
2953 #. type: textblock
2954 #: ../cat/virt-ls.pod:378
2955 msgid ""
2956 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2957 "LONG LISTING>."
2958 msgstr ""
2959
2960 #. type: textblock
2961 #: ../cat/virt-ls.pod:381
2962 msgid ""
2963 "C<virt-ls -R> produces a recursive list of files starting at the named "
2964 "directory.  See L</RECURSIVE LISTING>."
2965 msgstr ""
2966
2967 #. type: textblock
2968 #: ../cat/virt-ls.pod:384
2969 msgid ""
2970 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2971 "parsed.  See L</RECURSIVE LONG LISTING>."
2972 msgstr ""
2973
2974 #. type: =item
2975 #: ../cat/virt-ls.pod:387
2976 msgid "B<--times>"
2977 msgstr "B<--times>"
2978
2979 #. type: textblock
2980 #: ../cat/virt-ls.pod:389
2981 msgid "Display time fields."
2982 msgstr ""
2983
2984 #. type: =item
2985 #: ../cat/virt-ls.pod:394
2986 msgid "B<--time-days>"
2987 msgstr "B<--time-days>"
2988
2989 #. type: textblock
2990 #: ../cat/virt-ls.pod:396
2991 msgid "Display time fields as days before now (negative if in the future)."
2992 msgstr ""
2993
2994 #. type: textblock
2995 #: ../cat/virt-ls.pod:398
2996 msgid ""
2997 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2998 "of the file is between 0 and 86399 seconds."
2999 msgstr ""
3000
3001 #. type: =item
3002 #: ../cat/virt-ls.pod:404
3003 msgid "B<--time-relative>"
3004 msgstr "B<--time-relative>"
3005
3006 #. type: textblock
3007 #: ../cat/virt-ls.pod:406
3008 msgid "Display time fields as seconds before now (negative if in the future)."
3009 msgstr ""
3010
3011 #. type: =item
3012 #: ../cat/virt-ls.pod:411
3013 msgid "B<--time-t>"
3014 msgstr "B<--time-t>"
3015
3016 #. type: textblock
3017 #: ../cat/virt-ls.pod:413
3018 msgid "Display time fields as seconds since the Unix epoch."
3019 msgstr ""
3020
3021 #. type: =item
3022 #: ../cat/virt-ls.pod:418
3023 msgid "B<--uids>"
3024 msgstr "B<--uids>"
3025
3026 #. type: textblock
3027 #: ../cat/virt-ls.pod:420
3028 msgid "Display UID and GID fields."
3029 msgstr ""
3030
3031 #. type: textblock
3032 #: ../cat/virt-ls.pod:445
3033 msgid "Previous versions of virt-ls allowed you to write either:"
3034 msgstr ""
3035
3036 #. type: verbatim
3037 #: ../cat/virt-ls.pod:447
3038 #, no-wrap
3039 msgid ""
3040 " virt-ls disk.img [disk.img ...] /dir\n"
3041 "\n"
3042 msgstr ""
3043
3044 #. type: verbatim
3045 #: ../cat/virt-ls.pod:451
3046 #, no-wrap
3047 msgid ""
3048 " virt-ls guestname /dir\n"
3049 "\n"
3050 msgstr ""
3051
3052 #. type: textblock
3053 #: ../cat/virt-ls.pod:497
3054 msgid ""
3055 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3056 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3057 "L<http://libguestfs.org/>."
3058 msgstr ""
3059 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3060 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3061 "L<http://libguestfs.org/>."
3062
3063 #. type: textblock
3064 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
3065 #: ../rescue/virt-rescue.pod:302
3066 msgid "Copyright (C) 2009-2011 Red Hat Inc."
3067 msgstr "©Red Hat Inc., 2009–2011"
3068
3069 #. type: textblock
3070 #: ../clone/virt-sysprep.pod:5
3071 msgid ""
3072 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3073 msgstr ""
3074
3075 #. type: verbatim
3076 #: ../clone/virt-sysprep.pod:9
3077 #, no-wrap
3078 msgid ""
3079 " virt-sysprep [--options] -d domname\n"
3080 "\n"
3081 msgstr ""
3082
3083 #. type: verbatim
3084 #: ../clone/virt-sysprep.pod:11
3085 #, no-wrap
3086 msgid ""
3087 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3088 "\n"
3089 msgstr ""
3090
3091 #. type: textblock
3092 #: ../clone/virt-sysprep.pod:15
3093 msgid ""
3094 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3095 "can be made from it.  Steps in this process include removing SSH host keys, "
3096 "removing persistent network MAC configuration, and removing user accounts.  "
3097 "Each step can be enabled or disabled as required."
3098 msgstr ""
3099
3100 #. type: textblock
3101 #: ../clone/virt-sysprep.pod:21
3102 msgid ""
3103 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3104 "customization by the system administrator."
3105 msgstr ""
3106
3107 #. type: textblock
3108 #: ../clone/virt-sysprep.pod:24
3109 msgid ""
3110 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3111 "be shut down.  If you want to preserve the existing contents of the guest, "
3112 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3113 msgstr ""
3114
3115 #. type: textblock
3116 #: ../clone/virt-sysprep.pod:29
3117 msgid ""
3118 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3119 "recommend that you don't.  The time you might want to run it as root is when "
3120 "you need root in order to access the disk image, but even in this case it "
3121 "would be better to change the permissions on the disk image to be writable "
3122 "as the non-root user running virt-sysprep."
3123 msgstr ""
3124
3125 #. type: textblock
3126 #: ../clone/virt-sysprep.pod:35
3127 msgid ""
3128 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3129 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3130 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3131 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3132 "Windows sysprepping in a future version, and we already have code to do it."
3133 msgstr ""
3134
3135 #. type: =item
3136 #: ../clone/virt-sysprep.pod:76
3137 msgid "B<--enable=...>"
3138 msgstr ""
3139
3140 #. type: textblock
3141 #: ../clone/virt-sysprep.pod:78
3142 msgid ""
3143 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3144 "operations, for example:"
3145 msgstr ""
3146
3147 #. type: verbatim
3148 #: ../clone/virt-sysprep.pod:81
3149 #, no-wrap
3150 msgid ""
3151 " --enable=ssh-hostkeys,udev-persistent-net\n"
3152 "\n"
3153 msgstr ""
3154
3155 #. type: textblock
3156 #: ../clone/virt-sysprep.pod:83
3157 msgid ""
3158 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3159 msgstr ""
3160
3161 #. type: textblock
3162 #: ../clone/virt-sysprep.pod:85
3163 msgid ""
3164 "If the I<--enable> option is not given, then we default to trying all "
3165 "possible sysprep operations.  But some sysprep operations are skipped for "
3166 "some guest types."
3167 msgstr ""
3168
3169 #. type: textblock
3170 #: ../clone/virt-sysprep.pod:89
3171 msgid ""
3172 "Use I<--list-operations> to list operations supported by a particular "
3173 "version of virt-sysprep."
3174 msgstr ""
3175
3176 #. type: textblock
3177 #: ../clone/virt-sysprep.pod:92
3178 msgid ""
3179 "See L</OPERATIONS> below for a list and an explanation of each operation."
3180 msgstr ""
3181
3182 #. type: verbatim
3183 #: ../clone/virt-sysprep.pod:106
3184 #, no-wrap
3185 msgid ""
3186 " virt-sysprep --format=raw -a disk.img\n"
3187 "\n"
3188 msgstr ""
3189
3190 #. type: verbatim
3191 #: ../clone/virt-sysprep.pod:110
3192 #, no-wrap
3193 msgid ""
3194 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3195 "\n"
3196 msgstr ""
3197
3198 #. type: =item
3199 #: ../clone/virt-sysprep.pod:119
3200 msgid "B<--hostname> newhostname"
3201 msgstr ""
3202
3203 #. type: textblock
3204 #: ../clone/virt-sysprep.pod:121
3205 msgid ""
3206 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3207 "defaults to C<localhost.localdomain>."
3208 msgstr ""
3209
3210 #. type: =item
3211 #: ../clone/virt-sysprep.pod:124
3212 msgid "B<--list-operations>"
3213 msgstr ""
3214
3215 #. type: textblock
3216 #: ../clone/virt-sysprep.pod:126
3217 msgid "List the operations supported by the virt-sysprep program."
3218 msgstr ""
3219
3220 #. type: =item
3221 #: ../clone/virt-sysprep.pod:128
3222 msgid "B<--selinux-relabel>"
3223 msgstr ""
3224
3225 #. type: =item
3226 #: ../clone/virt-sysprep.pod:130
3227 msgid "B<--no-selinux-relabel>"
3228 msgstr ""
3229
3230 #. type: textblock
3231 #: ../clone/virt-sysprep.pod:132
3232 msgid ""
3233 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3234 "I<--no-selinux-relabel> disables relabelling."
3235 msgstr ""
3236
3237 #. type: textblock
3238 #: ../clone/virt-sysprep.pod:135
3239 msgid ""
3240 "The default is to try to detect if SELinux relabelling is required.  See L</"
3241 "SELINUX RELABELLING> below for more details."
3242 msgstr ""
3243
3244 #. type: =head1
3245 #: ../clone/virt-sysprep.pod:156
3246 msgid "OPERATIONS"
3247 msgstr ""
3248
3249 #. type: textblock
3250 #: ../clone/virt-sysprep.pod:158
3251 msgid ""
3252 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3253 "enabled>, although some are skipped depending on the type of guest."
3254 msgstr ""
3255
3256 #. type: textblock
3257 #: ../clone/virt-sysprep.pod:162
3258 msgid ""
3259 "Operations can be individually enabled using the I<--enable> option.  Use a "
3260 "comma-separated list, for example:"
3261 msgstr ""
3262
3263 #. type: verbatim
3264 #: ../clone/virt-sysprep.pod:165
3265 #, no-wrap
3266 msgid ""
3267 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3268 "\n"
3269 msgstr ""
3270
3271 #. type: textblock
3272 #: ../clone/virt-sysprep.pod:167
3273 msgid ""
3274 "To list the operations supported by the current version of virt-sysprep, use "
3275 "I<--list-operations>."
3276 msgstr ""
3277
3278 #. type: textblock
3279 #: ../clone/virt-sysprep.pod:170
3280 msgid ""
3281 "Future versions of virt-sysprep may add more operations.  If you are using "
3282 "virt-sysprep and want predictable behaviour, specify only the operations "
3283 "that you want to have enabled."
3284 msgstr ""
3285
3286 #. type: =head2
3287 #: ../clone/virt-sysprep.pod:174
3288 msgid "cron-spool"
3289 msgstr ""
3290
3291 #. type: textblock
3292 #: ../clone/virt-sysprep.pod:176
3293 msgid "Remove user at-jobs and cron-jobs."
3294 msgstr ""
3295
3296 #. type: =head2
3297 #: ../clone/virt-sysprep.pod:178
3298 msgid "dhcp-client-state"
3299 msgstr ""
3300
3301 #. type: textblock
3302 #: ../clone/virt-sysprep.pod:180
3303 msgid "Remove DHCP client leases."
3304 msgstr ""
3305
3306 #. type: =head2
3307 #: ../clone/virt-sysprep.pod:182
3308 msgid "dhcp-server-state"
3309 msgstr ""
3310
3311 #. type: textblock
3312 #: ../clone/virt-sysprep.pod:184
3313 msgid "Remove DHCP server leases."
3314 msgstr ""
3315
3316 #. type: =head2
3317 #: ../clone/virt-sysprep.pod:186
3318 msgid "hostname"
3319 msgstr ""
3320
3321 #. type: textblock
3322 #: ../clone/virt-sysprep.pod:188
3323 msgid ""
3324 "Changes the hostname of the guest to the value given in the I<--hostname> "
3325 "parameter."
3326 msgstr ""
3327
3328 #. type: textblock
3329 #: ../clone/virt-sysprep.pod:191
3330 msgid ""
3331 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3332 "C<localhost.localdomain>."
3333 msgstr ""
3334
3335 #. type: =head2
3336 #: ../clone/virt-sysprep.pod:194
3337 msgid "logfiles"
3338 msgstr ""
3339
3340 #. type: textblock
3341 #: ../clone/virt-sysprep.pod:196
3342 msgid "Remove many log files."
3343 msgstr ""
3344
3345 #. type: =head2
3346 #: ../clone/virt-sysprep.pod:198
3347 msgid "mail-spool"
3348 msgstr ""
3349
3350 #. type: textblock
3351 #: ../clone/virt-sysprep.pod:200
3352 msgid "Remove email from the local mail spool directory."
3353 msgstr ""
3354
3355 #. type: =head2
3356 #: ../clone/virt-sysprep.pod:202
3357 msgid "net-hwaddr"
3358 msgstr ""
3359
3360 #. type: textblock
3361 #: ../clone/virt-sysprep.pod:204
3362 msgid ""
3363 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3364 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3365 msgstr ""
3366
3367 #. type: =head2
3368 #: ../clone/virt-sysprep.pod:207
3369 msgid "random-seed"
3370 msgstr ""
3371
3372 #. type: textblock
3373 #: ../clone/virt-sysprep.pod:209
3374 msgid ""
3375 "Write some random bytes from the host into the random seed file of the guest."
3376 msgstr ""
3377
3378 #. type: textblock
3379 #: ../clone/virt-sysprep.pod:212
3380 msgid "See L</RANDOM SEED> below."
3381 msgstr ""
3382
3383 #. type: =head2
3384 #: ../clone/virt-sysprep.pod:214
3385 msgid "rhn-systemid"
3386 msgstr ""
3387
3388 #. type: textblock
3389 #: ../clone/virt-sysprep.pod:216
3390 msgid "Remove the RHN system ID."
3391 msgstr ""
3392
3393 #. type: =head2
3394 #: ../clone/virt-sysprep.pod:218
3395 msgid "smolt-uuid"
3396 msgstr ""
3397
3398 #. type: textblock
3399 #: ../clone/virt-sysprep.pod:220
3400 msgid "Remove the Smolt hardware UUID."
3401 msgstr ""
3402
3403 #. type: =head2
3404 #: ../clone/virt-sysprep.pod:222
3405 msgid "ssh-hostkeys"
3406 msgstr ""
3407
3408 #. type: textblock
3409 #: ../clone/virt-sysprep.pod:224
3410 msgid "Remove the SSH host keys in the guest."
3411 msgstr ""
3412
3413 #. type: textblock
3414 #: ../clone/virt-sysprep.pod:226
3415 msgid ""
3416 "The SSH host keys are regenerated (differently) next time the guest is "
3417 "booted."
3418 msgstr ""
3419
3420 #. type: textblock
3421 #: ../clone/virt-sysprep.pod:229
3422 msgid ""
3423 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3424 "stark warning about the host key changing:"
3425 msgstr ""
3426
3427 #. type: verbatim
3428 #: ../clone/virt-sysprep.pod:232
3429 #, no-wrap
3430 msgid ""
3431 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3432 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3433 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3434 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3435 "\n"
3436 msgstr ""
3437
3438 #. type: =head2
3439 #: ../clone/virt-sysprep.pod:237
3440 msgid "udev-persistent-net"
3441 msgstr ""
3442
3443 #. type: textblock
3444 #: ../clone/virt-sysprep.pod:239
3445 msgid ""
3446 "Remove udev persistent net rules which map the guest's existing MAC address "
3447 "to a fixed ethernet device (eg. eth0)."
3448 msgstr ""
3449
3450 #. type: textblock
3451 #: ../clone/virt-sysprep.pod:242
3452 msgid ""
3453 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3454 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3455 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3456 "Erasing the udev persistent net rules avoids this."
3457 msgstr ""
3458
3459 #. type: =head2
3460 #: ../clone/virt-sysprep.pod:247
3461 msgid "utmp"
3462 msgstr ""
3463
3464 #. type: textblock
3465 #: ../clone/virt-sysprep.pod:249
3466 msgid "Remove the utmp file."
3467 msgstr ""
3468
3469 #. type: textblock
3470 #: ../clone/virt-sysprep.pod:251
3471 msgid ""
3472 "This records who is currently logged in on a machine.  In modern Linux "
3473 "distros it is stored in a ramdisk and hence not part of the virtual "
3474 "machine's disk, but it was stored on disk in older distros."
3475 msgstr ""
3476
3477 #. type: =head2
3478 #: ../clone/virt-sysprep.pod:255
3479 msgid "yum-uuid"
3480 msgstr ""
3481
3482 #. type: textblock
3483 #: ../clone/virt-sysprep.pod:257
3484 msgid "Remove the yum UUID."
3485 msgstr ""
3486
3487 #. type: textblock
3488 #: ../clone/virt-sysprep.pod:259
3489 msgid ""
3490 "Yum creates a fresh UUID the next time it runs when it notices that the "
3491 "original UUID has been erased."
3492 msgstr ""
3493
3494 #. type: =head1
3495 #: ../clone/virt-sysprep.pod:262
3496 msgid "COPYING AND CLONING"
3497 msgstr ""
3498
3499 #. type: textblock
3500 #: ../clone/virt-sysprep.pod:264
3501 msgid ""
3502 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3503 "prepare a template from which guests can be cloned.  There are many "
3504 "different ways to achieve this using the virt tools, and this section is "
3505 "just an introduction."
3506 msgstr ""
3507
3508 #. type: textblock
3509 #: ../clone/virt-sysprep.pod:269
3510 msgid "A virtual machine (when switched off) consists of two parts:"
3511 msgstr ""
3512
3513 #. type: =item
3514 #: ../clone/virt-sysprep.pod:273
3515 msgid "I<configuration>"
3516 msgstr ""
3517
3518 #. type: textblock
3519 #: ../clone/virt-sysprep.pod:275
3520 msgid ""
3521 "The configuration or description of the guest.  eg. The libvirt XML (see "
3522 "C<virsh dumpxml>), the running configuration of the guest, or another "
3523 "external format like OVF."
3524 msgstr ""
3525
3526 #. type: textblock
3527 #: ../clone/virt-sysprep.pod:279
3528 msgid "Some configuration items that might need to be changed:"
3529 msgstr ""
3530
3531 #. type: textblock
3532 #: ../clone/virt-sysprep.pod:285
3533 msgid "name"
3534 msgstr ""
3535
3536 #. type: textblock
3537 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3538 msgid "UUID"
3539 msgstr ""
3540
3541 #. type: textblock
3542 #: ../clone/virt-sysprep.pod:293
3543 msgid "path to block device(s)"
3544 msgstr ""
3545
3546 #. type: textblock
3547 #: ../clone/virt-sysprep.pod:297
3548 msgid "network card MAC address"
3549 msgstr ""
3550
3551 #. type: =item
3552 #: ../clone/virt-sysprep.pod:301
3553 msgid "I<block device(s)>"
3554 msgstr ""
3555
3556 #. type: textblock
3557 #: ../clone/virt-sysprep.pod:303
3558 msgid ""
3559 "One or more hard disk images, themselves containing files, directories, "
3560 "applications, kernels, configuration, etc."
3561 msgstr ""
3562
3563 #. type: textblock
3564 #: ../clone/virt-sysprep.pod:306
3565 msgid "Some things inside the block devices that might need to be changed:"
3566 msgstr ""
3567
3568 #. type: textblock
3569 #: ../clone/virt-sysprep.pod:312
3570 msgid "hostname and other net configuration"
3571 msgstr ""
3572
3573 #. type: textblock
3574 #: ../clone/virt-sysprep.pod:320
3575 msgid "SSH host keys"
3576 msgstr ""
3577
3578 #. type: textblock
3579 #: ../clone/virt-sysprep.pod:324
3580 msgid "Windows unique security ID (SID)"
3581 msgstr ""
3582
3583 #. type: textblock
3584 #: ../clone/virt-sysprep.pod:328
3585 msgid "Puppet registration"
3586 msgstr ""
3587
3588 #. type: =head2
3589 #: ../clone/virt-sysprep.pod:334
3590 msgid "COPYING THE BLOCK DEVICE"
3591 msgstr ""
3592
3593 #. type: textblock
3594 #: ../clone/virt-sysprep.pod:336
3595 msgid ""
3596 "Starting with an original guest, you probably wish to copy the guest block "
3597 "device and its configuration to make a template.  Then once you are happy "
3598 "with the template, you will want to make many clones from it."
3599 msgstr ""
3600
3601 #. type: verbatim
3602 #: ../clone/virt-sysprep.pod:341
3603 #, no-wrap
3604 msgid ""
3605 "                        virt-sysprep\n"
3606 "                             |\n"
3607 "                             v\n"
3608 " original guest --------> template ---------->\n"
3609 "                                      \\------> cloned\n"
3610 "                                       \\-----> guests\n"
3611 "                                        \\---->\n"
3612 "\n"
3613 msgstr ""
3614
3615 #. type: textblock
3616 #: ../clone/virt-sysprep.pod:349
3617 msgid ""
3618 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3619 "L<dd(1)>."
3620 msgstr ""
3621
3622 #. type: verbatim
3623 #: ../clone/virt-sysprep.pod:352
3624 #, no-wrap
3625 msgid ""
3626 "                   dd                 dd\n"
3627 " original guest --------> template ---------->\n"
3628 "                                      \\------> cloned\n"
3629 "                                       \\-----> guests\n"
3630 "                                        \\---->\n"
3631 "\n"
3632 msgstr ""
3633
3634 #. type: textblock
3635 #: ../clone/virt-sysprep.pod:358
3636 msgid "There are some smarter (and faster) ways too:"
3637 msgstr ""
3638
3639 #. type: verbatim
3640 #: ../clone/virt-sysprep.pod:364
3641 #, no-wrap
3642 msgid ""
3643 "                          snapshot\n"
3644 "                template ---------->\n"
3645 "                            \\------> cloned\n"
3646 "                             \\-----> guests\n"
3647 "                              \\---->\n"
3648 "\n"
3649 msgstr ""
3650
3651 #. type: textblock
3652 #: ../clone/virt-sysprep.pod:370
3653 msgid ""
3654 "Use the block device as a backing file and create a snapshot on top for each "
3655 "guest.  The advantage is that you don't need to copy the block device (very "
3656 "fast) and only changes are stored (less storage required)."
3657 msgstr ""
3658
3659 #. type: textblock
3660 #: ../clone/virt-sysprep.pod:375
3661 msgid ""
3662 "Note that writing to the backing file once you have created guests on top of "
3663 "it is not possible: you will corrupt the guests."
3664 msgstr ""
3665
3666 #. type: textblock
3667 #: ../clone/virt-sysprep.pod:378
3668 msgid ""
3669 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3670 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3671 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3672 "also create cheap snapshots from files or LUNs."
3673 msgstr ""
3674
3675 #. type: textblock
3676 #: ../clone/virt-sysprep.pod:386
3677 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3678 msgstr ""
3679
3680 #. type: textblock
3681 #: ../clone/virt-sysprep.pod:390
3682 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3683 msgstr ""
3684
3685 #. type: =head2
3686 #: ../clone/virt-sysprep.pod:394
3687 msgid "VIRT-CLONE"
3688 msgstr ""
3689
3690 #. type: textblock
3691 #: ../clone/virt-sysprep.pod:396
3692 msgid ""
3693 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3694 "and/or modify the external libvirt configuration of a guest.  It will reset "
3695 "the name, UUID and MAC address of the guest in the libvirt XML."
3696 msgstr ""
3697
3698 #. type: textblock
3699 #: ../clone/virt-sysprep.pod:401
3700 msgid ""
3701 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3702 "image.  This was the original motivation to write virt-sysprep."
3703 msgstr ""
3704
3705 #. type: =head2
3706 #: ../clone/virt-sysprep.pod:404
3707 msgid "SPARSIFY"
3708 msgstr ""
3709
3710 #. type: verbatim
3711 #: ../clone/virt-sysprep.pod:406
3712 #, no-wrap
3713 msgid ""
3714 "              virt-sparsify\n"
3715 " original guest --------> template\n"
3716 "\n"
3717 msgstr ""
3718
3719 #. type: textblock
3720 #: ../clone/virt-sysprep.pod:409
3721 msgid ""
3722 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3723 "it easier to compress and/or faster to copy."
3724 msgstr ""
3725
3726 #. type: textblock
3727 #: ../clone/virt-sysprep.pod:412
3728 msgid ""
3729 "Notice that since virt-sparsify also copies the image, you can use it to "
3730 "make the initial copy (instead of C<dd>)."
3731 msgstr ""
3732
3733 #. type: =head2
3734 #: ../clone/virt-sysprep.pod:415
3735 msgid "RESIZE"
3736 msgstr ""
3737
3738 #. type: verbatim
3739 #: ../clone/virt-sysprep.pod:417
3740 #, no-wrap
3741 msgid ""
3742 "                         virt-resize\n"
3743 "                template ---------->\n"
3744 "                            \\------> cloned\n"
3745 "                             \\-----> guests\n"
3746 "                              \\---->\n"
3747 "\n"
3748 msgstr ""
3749
3750 #. type: textblock
3751 #: ../clone/virt-sysprep.pod:423
3752 msgid ""
3753 "If you want to give people cloned guests, but let them pick the size of the "
3754 "guest themselves (eg. depending on how much they are prepared to pay for "
3755 "disk space), then instead of copying the template, you can run L<virt-resize"
3756 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3757 "guests from a template."
3758 msgstr ""
3759
3760 #. type: =head1
3761 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3762 msgid "SECURITY"
3763 msgstr "БЕЗПЕКА"
3764
3765 #. type: textblock
3766 #: ../clone/virt-sysprep.pod:431
3767 msgid ""
3768 "Although virt-sysprep removes some sensitive information from the guest, it "
3769 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3770 "above, and the implementation of the operations in the shell script.  You "
3771 "should also examine the guest afterwards."
3772 msgstr ""
3773
3774 #. type: textblock
3775 #: ../clone/virt-sysprep.pod:436
3776 msgid ""
3777 "Sensitive files are simply removed.  The data they contained may still exist "
3778 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3779 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3780 "(1)> command to get rid of deleted content in directory entries and inodes."
3781 msgstr ""
3782
3783 #. type: =head2
3784 #: ../clone/virt-sysprep.pod:442
3785 msgid "RANDOM SEED"
3786 msgstr ""
3787
3788 #. type: textblock
3789 #: ../clone/virt-sysprep.pod:444
3790 msgid "I<(This section applies to Linux guests only)>"
3791 msgstr ""
3792
3793 #. type: textblock
3794 #: ../clone/virt-sysprep.pod:446
3795 msgid ""
3796 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3797 "from the host into the guest's random seed file."
3798 msgstr ""
3799
3800 #. type: textblock
3801 #: ../clone/virt-sysprep.pod:449
3802 msgid ""
3803 "If this is just done once and the guest is cloned from the same template, "
3804 "then each guest will start with the same entropy, and things like SSH host "
3805 "keys and TCP sequence numbers may be predictable."
3806 msgstr ""
3807
3808 #. type: textblock
3809 #: ../clone/virt-sysprep.pod:453
3810 msgid ""
3811 "Therefore you should arrange to add more randomness I<after> cloning from a "
3812 "template too, which can be done by just enabling the C<random-seed> "
3813 "operation:"
3814 msgstr ""
3815
3816 #. type: verbatim
3817 #: ../clone/virt-sysprep.pod:457
3818 #, no-wrap
3819 msgid ""
3820 " cp template.img newguest.img\n"
3821 " virt-sysprep --enable=random-seed -a newguest.img\n"
3822 "\n"
3823 msgstr ""
3824
3825 #. type: =head2
3826 #: ../clone/virt-sysprep.pod:460
3827 msgid "SELINUX RELABELLING"
3828 msgstr ""
3829
3830 #. type: textblock
3831 #: ../clone/virt-sysprep.pod:462
3832 msgid "I<(This section applies to Linux guests using SELinux only)>"
3833 msgstr ""
3834
3835 #. type: textblock
3836 #: ../clone/virt-sysprep.pod:464
3837 msgid ""
3838 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3839 "autorelabel> so that these will be correctly labelled by SELinux the next "
3840 "time the guest is booted.  This process interrupts boot and can take some "
3841 "time."
3842 msgstr ""
3843
3844 #. type: textblock
3845 #: ../clone/virt-sysprep.pod:469
3846 msgid ""
3847 "You can force relabelling for all guests by supplying the I<--selinux-"
3848 "relabel> option."
3849 msgstr ""
3850
3851 #. type: textblock
3852 #: ../clone/virt-sysprep.pod:472
3853 msgid ""
3854 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3855 "relabel> option."
3856 msgstr ""
3857
3858 #. type: textblock
3859 #: ../clone/virt-sysprep.pod:484
3860 msgid "This program returns 0 on success, or 1 if there was an error."
3861 msgstr ""
3862
3863 #. type: textblock
3864 #: ../clone/virt-sysprep.pod:488
3865 msgid ""
3866 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3867 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3868 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3869 msgstr ""
3870
3871 #. type: textblock
3872 #: ../df/virt-df.pod:5
3873 msgid "virt-df - Display free space on virtual filesystems"
3874 msgstr ""
3875
3876 #. type: verbatim
3877 #: ../df/virt-df.pod:9
3878 #, no-wrap
3879 msgid ""
3880 " virt-df [--options]\n"
3881 "\n"
3882 msgstr ""
3883 " virt-df [--параметри]\n"
3884 "\n"
3885
3886 #. type: verbatim
3887 #: ../df/virt-df.pod:11
3888 #, no-wrap
3889 msgid ""
3890 " virt-df [--options] -d domname\n"
3891 "\n"
3892 msgstr ""
3893
3894 #. type: verbatim
3895 #: ../df/virt-df.pod:13
3896 #, no-wrap
3897 msgid ""
3898 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3899 "\n"
3900 msgstr ""
3901
3902 #. type: verbatim
3903 #: ../df/virt-df.pod:17
3904 #, no-wrap
3905 msgid ""
3906 " virt-df [--options] domname\n"
3907 "\n"
3908 msgstr ""
3909
3910 #. type: verbatim
3911 #: ../df/virt-df.pod:19
3912 #, no-wrap
3913 msgid ""
3914 " virt-df [--options] disk.img [disk.img ...]\n"
3915 "\n"
3916 msgstr ""
3917
3918 #. type: textblock
3919 #: ../df/virt-df.pod:23
3920 msgid ""
3921 "C<virt-df> is a command line tool to display free space on virtual machine "
3922 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3923 "allocated to a virtual machine, but can look inside disk images to see how "
3924 "much space is really being used."
3925 msgstr ""
3926
3927 #. type: textblock
3928 #: ../df/virt-df.pod:28
3929 msgid ""
3930 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3931 "to get a list of all active and inactive guests, and performs a C<df>-type "
3932 "operation on each one in turn, printing out the results."
3933 msgstr ""
3934
3935 #. type: textblock
3936 #: ../df/virt-df.pod:32
3937 msgid ""
3938 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3939 "type operation on either the single named libvirt domain, or on the disk "
3940 "image(s) listed on the command line (which must all belong to a single VM).  "
3941 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3942 "guest>.  If you want to run on multiple guests, then you have to invoke "
3943 "C<virt-df> multiple times."
3944 msgstr ""
3945
3946 #. type: textblock
3947 #: ../df/virt-df.pod:39
3948 msgid ""
3949 "Use the I<--csv> option to get a format which can be easily parsed by other "
3950 "programs.  Other options are similar to the standard L<df(1)> command."
3951 msgstr ""
3952
3953 #. type: textblock
3954 #: ../df/virt-df.pod:45
3955 msgid ""
3956 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3957 "output human-readable:"
3958 msgstr ""
3959
3960 #. type: verbatim
3961 #: ../df/virt-df.pod:48
3962 #, no-wrap
3963 msgid ""
3964 " # virt-df -d F14x64 -h\n"
3965 " Filesystem                       Size     Used  Available  Use%\n"
3966 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3967 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3968 "\n"
3969 msgstr ""
3970
3971 #. type: textblock
3972 #: ../df/virt-df.pod:53
3973 msgid "Show disk usage for a disk image file called C<test.img>:"
3974 msgstr ""
3975
3976 #. type: verbatim
3977 #: ../df/virt-df.pod:55
3978 #, no-wrap
3979 msgid ""
3980 " $ virt-df -a test1.img\n"
3981 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3982 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3983 "\n"
3984 msgstr ""
3985
3986 #. type: verbatim
3987 #: ../df/virt-df.pod:112
3988 #, no-wrap
3989 msgid ""
3990 " virt-df --format=raw -a disk.img\n"
3991 "\n"
3992 msgstr ""
3993
3994 #. type: verbatim
3995 #: ../df/virt-df.pod:116
3996 #, no-wrap
3997 msgid ""
3998 " virt-df --format=raw -a disk.img --format -a another.img\n"
3999 "\n"
4000 msgstr ""
4001
4002 #. type: textblock
4003 #: ../df/virt-df.pod:129
4004 msgid "Print sizes in human-readable format."
4005 msgstr ""
4006
4007 #. type: textblock
4008 #: ../df/virt-df.pod:131
4009 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
4010 msgstr ""
4011
4012 #. type: =item
4013 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
4014 msgid "B<-i>"
4015 msgstr "B<-i>"
4016
4017 #. type: =item
4018 #: ../df/virt-df.pod:135
4019 msgid "B<--inodes>"
4020 msgstr "B<--inodes>"
4021
4022 #. type: textblock
4023 #: ../df/virt-df.pod:137
4024 msgid "Print inodes instead of blocks."
4025 msgstr ""
4026
4027 #. type: =item
4028 #: ../df/virt-df.pod:139
4029 msgid "B<--one-per-guest>"
4030 msgstr "B<--one-per-guest>"
4031
4032 #. type: textblock
4033 #: ../df/virt-df.pod:141
4034 msgid ""
4035 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
4036 "disks from several guests to a single libguestfs appliance."
4037 msgstr ""
4038
4039 #. type: textblock
4040 #: ../df/virt-df.pod:144
4041 msgid "You might use this option in the following circumstances:"
4042 msgstr ""
4043
4044 #. type: textblock
4045 #: ../df/virt-df.pod:150
4046 msgid ""
4047 "If you think an untrusted guest might actively try to exploit the libguestfs "
4048 "appliance kernel, then this prevents one guest from interfering with the "
4049 "stats printed for another guest."
4050 msgstr ""
4051
4052 #. type: textblock
4053 #: ../df/virt-df.pod:156
4054 msgid ""
4055 "If the kernel has a bug which stops it from accessing a filesystem in one "
4056 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
4057 "and report stats for further guests."
4058 msgstr ""
4059
4060 #. type: textblock
4061 #: ../df/virt-df.pod:165
4062 msgid ""
4063 "Print UUIDs instead of names.  This is useful for following a guest even "
4064 "when the guest is migrated or renamed, or when two guests happen to have the "
4065 "same name."
4066 msgstr ""
4067
4068 #. type: textblock
4069 #: ../df/virt-df.pod:169
4070 msgid ""
4071 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
4072 "images, we still print the disk image name even when this option is "
4073 "specified."
4074 msgstr ""
4075
4076 #. type: textblock
4077 #: ../df/virt-df.pod:229
4078 msgid ""
4079 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4080 "libguestfs.org/>."
4081 msgstr ""
4082
4083 #. type: textblock
4084 #: ../edit/virt-edit.pod:5
4085 msgid "virt-edit - Edit a file in a virtual machine"
4086 msgstr ""
4087
4088 #. type: verbatim
4089 #: ../edit/virt-edit.pod:9
4090 #, no-wrap
4091 msgid ""
4092 " virt-edit [--options] -d domname file [file ...]\n"
4093 "\n"
4094 msgstr ""
4095
4096 #. type: verbatim
4097 #: ../edit/virt-edit.pod:11
4098 #, no-wrap
4099 msgid ""
4100 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4101 "\n"
4102 msgstr ""
4103
4104 #. type: verbatim
4105 #: ../edit/virt-edit.pod:13
4106 #, no-wrap
4107 msgid ""
4108 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4109 "\n"
4110 msgstr ""
4111
4112 #. type: verbatim
4113 #: ../edit/virt-edit.pod:17
4114 #, no-wrap
4115 msgid ""
4116 " virt-edit domname file\n"
4117 "\n"
4118 msgstr ""
4119
4120 #. type: verbatim
4121 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4122 #, no-wrap
4123 msgid ""
4124 " virt-edit disk.img [disk.img ...] file\n"
4125 "\n"
4126 msgstr ""
4127
4128 #. type: =head1
4129 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4130 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4131 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4132 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4133 msgid "WARNING"
4134 msgstr "ПОПЕРЕДЖЕННЯ"
4135
4136 #. type: textblock
4137 #: ../edit/virt-edit.pod:23
4138 msgid ""
4139 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4140 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4141 "doing this, but doesn't catch all cases."
4142 msgstr ""
4143
4144 #. type: textblock
4145 #: ../edit/virt-edit.pod:29
4146 msgid ""
4147 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4148 "exists in the named virtual machine (or disk image)."
4149 msgstr ""
4150
4151 #. type: textblock
4152 #: ../edit/virt-edit.pod:32
4153 msgid ""
4154 "Multiple filenames can be given, in which case they are each edited in "
4155 "turn.  Each filename must be a full path, starting at the root directory "
4156 "(starting with '/')."
4157 msgstr ""
4158
4159 #. type: textblock
4160 #: ../edit/virt-edit.pod:36
4161 msgid "If you want to just view a file, use L<virt-cat(1)>."
4162 msgstr ""
4163
4164 #. type: textblock
4165 #: ../edit/virt-edit.pod:38
4166 msgid ""
4167 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4168 "USING GUESTFISH> below)."
4169 msgstr ""
4170
4171 #. type: textblock
4172 #: ../edit/virt-edit.pod:41
4173 msgid ""
4174 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4175 "that and much more."
4176 msgstr ""
4177
4178 #. type: textblock
4179 #: ../edit/virt-edit.pod:46
4180 msgid "Edit the named files interactively:"
4181 msgstr ""
4182
4183 #. type: verbatim
4184 #: ../edit/virt-edit.pod:48
4185 #, no-wrap
4186 msgid ""
4187 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4188 "\n"
4189 msgstr ""
4190
4191 #. type: verbatim
4192 #: ../edit/virt-edit.pod:50
4193 #, no-wrap
4194 msgid ""
4195 " virt-edit -d mydomain /etc/passwd\n"
4196 "\n"
4197 msgstr ""
4198
4199 #. type: textblock
4200 #: ../edit/virt-edit.pod:52
4201 msgid "For Windows guests, some Windows paths are understood:"
4202 msgstr ""
4203
4204 #. type: verbatim
4205 #: ../edit/virt-edit.pod:54
4206 #, no-wrap
4207 msgid ""
4208 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4209 "\n"
4210 msgstr ""
4211
4212 #. type: textblock
4213 #: ../edit/virt-edit.pod:56
4214 msgid ""
4215 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4216 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4217 msgstr ""
4218
4219 #. type: verbatim
4220 #: ../edit/virt-edit.pod:60
4221 #, no-wrap
4222 msgid ""
4223 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4224 "\n"
4225 msgstr ""
4226
4227 #. type: =item
4228 #: ../edit/virt-edit.pod:81
4229 msgid "B<-b> extension"
4230 msgstr ""
4231
4232 #. type: =item
4233 #: ../edit/virt-edit.pod:83
4234 msgid "B<--backup> extension"
4235 msgstr ""
4236
4237 #. type: textblock
4238 #: ../edit/virt-edit.pod:85
4239 msgid ""
4240 "Create a backup of the original file I<in the guest disk image>.  The backup "
4241 "has the original filename with C<extension> added."
4242 msgstr ""
4243
4244 #. type: textblock
4245 #: ../edit/virt-edit.pod:88
4246 msgid ""
4247 "Usually the first character of C<extension> would be a dot C<.> so you would "
4248 "write:"
4249 msgstr ""
4250
4251 #. type: verbatim
4252 #: ../edit/virt-edit.pod:91
4253 #, no-wrap
4254 msgid ""
4255 " virt-edit -b .orig [etc]\n"
4256 "\n"
4257 msgstr ""
4258
4259 #. type: textblock
4260 #: ../edit/virt-edit.pod:93
4261 msgid "By default, no backup file is made."
4262 msgstr ""
4263
4264 #. type: =item
4265 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4266 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4267 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4268 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4269 msgid "B<-c URI>"
4270 msgstr "B<-c адреса>"
4271
4272 #. type: =item
4273 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4274 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4275 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4276 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4277 msgid "B<--connect URI>"
4278 msgstr "B<--connect адреса>"
4279
4280 #. type: textblock
4281 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4282 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4283 #: ../tools/virt-win-reg.pl:135
4284 msgid ""
4285 "If you specify guest block devices directly, then libvirt is not used at all."
4286 msgstr ""
4287
4288 #. type: textblock
4289 #: ../edit/virt-edit.pod:114
4290 msgid ""
4291 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4292 "off so you cannot see what you are typing.  If you are not worried about "
4293 "Tempest attacks and there is no one else in the room you can specify this "
4294 "flag to see what you are typing."
4295 msgstr ""
4296
4297 #. type: =item
4298 #: ../edit/virt-edit.pod:119
4299 msgid "B<-e> EXPR"
4300 msgstr "B<-e> вираз"
4301
4302 #. type: =item
4303 #: ../edit/virt-edit.pod:121
4304 msgid "B<--expr> EXPR"
4305 msgstr "B<--expr> вираз"
4306
4307 #. type: textblock
4308 #: ../edit/virt-edit.pod:123
4309 msgid ""
4310 "Instead of launching the external editor, non-interactively apply the Perl "
4311 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4312 "EDITING> below."
4313 msgstr ""
4314
4315 #. type: textblock
4316 #: ../edit/virt-edit.pod:127
4317 msgid ""
4318 "Be careful to properly quote the expression to prevent it from being altered "
4319 "by the shell."
4320 msgstr ""
4321
4322 #. type: textblock
4323 #: ../edit/virt-edit.pod:130
4324 msgid "Note that this option is only available when Perl 5 is installed."
4325 msgstr ""
4326
4327 #. type: =item
4328 #: ../edit/virt-edit.pod:132
4329 msgid "B<--format> raw|qcow2|..."
4330 msgstr "B<--format> raw|qcow2|..."
4331
4332 #. type: verbatim
4333 #: ../edit/virt-edit.pod:143
4334 #, no-wrap
4335 msgid ""
4336 " virt-edit --format=raw -a disk.img file\n"
4337 "\n"
4338 msgstr ""
4339
4340 #. type: verbatim
4341 #: ../edit/virt-edit.pod:147
4342 #, no-wrap
4343 msgid ""
4344 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4345 "\n"
4346 msgstr ""
4347
4348 #. type: textblock
4349 #: ../edit/virt-edit.pod:181
4350 msgid "Previous versions of virt-edit allowed you to write either:"
4351 msgstr ""
4352
4353 #. type: verbatim
4354 #: ../edit/virt-edit.pod:187
4355 #, no-wrap
4356 msgid ""
4357 " virt-edit guestname file\n"
4358 "\n"
4359 msgstr ""
4360
4361 #. type: =head1
4362 #: ../edit/virt-edit.pod:195
4363 msgid "NON-INTERACTIVE EDITING"
4364 msgstr "НЕІНТЕРАКТИВНЕ РЕДАГУВАННЯ"
4365
4366 #. type: textblock
4367 #: ../edit/virt-edit.pod:197
4368 msgid ""
4369 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4370 "administrator can interactively edit the file."
4371 msgstr ""
4372
4373 #. type: textblock
4374 #: ../edit/virt-edit.pod:200
4375 msgid ""
4376 "There are two ways also to use C<virt-edit> from scripts in order to make "
4377 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4378 "like this, it's less error-prone to write scripts directly using the "
4379 "libguestfs API and Augeas for configuration file editing.)"
4380 msgstr ""
4381
4382 #. type: textblock
4383 #: ../edit/virt-edit.pod:206
4384 msgid ""
4385 "The first method is to temporarily set C<$EDITOR> to any script or program "
4386 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4387 "update C<tmpfile> in place however it likes."
4388 msgstr ""
4389
4390 #. type: textblock
4391 #: ../edit/virt-edit.pod:210
4392 msgid ""
4393 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4394 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4395 "instances of C<foo> with C<bar> in a file:"
4396 msgstr ""
4397
4398 #. type: verbatim
4399 #: ../edit/virt-edit.pod:214
4400 #, no-wrap
4401 msgid ""
4402 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4403 "\n"
4404 msgstr ""
4405
4406 #. type: textblock
4407 #: ../edit/virt-edit.pod:216
4408 msgid ""
4409 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4410 "For example to delete root's password you could do:"
4411 msgstr ""
4412
4413 #. type: verbatim
4414 #: ../edit/virt-edit.pod:219
4415 #, no-wrap
4416 msgid ""
4417 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4418 "\n"
4419 msgstr ""
4420 " virt-edit -d назва_домену /etc/passwd -e 's/^root:.*?:/root::/'\n"
4421 "\n"
4422
4423 #. type: textblock
4424 #: ../edit/virt-edit.pod:221
4425 msgid ""
4426 "What really happens is that the snippet is evaluated as a Perl expression "
4427 "for each line of the file.  The line, including the final C<\\n>, is passed "
4428 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4429 msgstr ""
4430
4431 #. type: textblock
4432 #: ../edit/virt-edit.pod:226
4433 msgid ""
4434 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4435 "C<apache> user account from the password file you can do:"
4436 msgstr ""
4437
4438 #. type: verbatim
4439 #: ../edit/virt-edit.pod:229
4440 #, no-wrap
4441 msgid ""
4442 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4443 "\n"
4444 msgstr ""
4445 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4446 "\n"
4447
4448 #. type: textblock
4449 #: ../edit/virt-edit.pod:231
4450 msgid ""
4451 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4452 "the end of the file is rather difficult this way since there is no concept "
4453 "of \"last line of the file\" - your expression just doesn't get called "
4454 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4455 "want to do this."
4456 msgstr ""
4457
4458 #. type: textblock
4459 #: ../edit/virt-edit.pod:237
4460 msgid ""
4461 "The variable C<$lineno> contains the current line number.  As is "
4462 "traditional, the first line in the file is number C<1>."
4463 msgstr ""
4464
4465 #. type: textblock
4466 #: ../edit/virt-edit.pod:240
4467 msgid ""
4468 "The return value from the expression is ignored, but the expression may call "
4469 "C<die> in order to abort the whole program, leaving the original file "
4470 "untouched."
4471 msgstr ""
4472
4473 #. type: textblock
4474 #: ../edit/virt-edit.pod:244
4475 msgid ""
4476 "Remember when matching the end of a line that C<$_> may contain the final C<"
4477 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4478 "newline then neither of these.  Thus to match or substitute some text at the "
4479 "end of a line, use this regular expression:"
4480 msgstr ""
4481
4482 #. type: verbatim
4483 #: ../edit/virt-edit.pod:249
4484 #, no-wrap
4485 msgid ""
4486 " /some text(\\r?\\n)?$/\n"
4487 "\n"
4488 msgstr ""
4489 " /якийсь текст(\\r?\\n)?$/\n"
4490 "\n"
4491
4492 #. type: textblock
4493 #: ../edit/virt-edit.pod:251
4494 msgid ""
4495 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4496 "$_> itself (since that would remove all newlines from the file):"
4497 msgstr ""
4498
4499 #. type: verbatim
4500 #: ../edit/virt-edit.pod:255
4501 #, no-wrap
4502 msgid ""
4503 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4504 "\n"
4505 msgstr ""
4506 " my $m = $_; chomp $m; $m =~ /якийсь текст$/\n"
4507 "\n"
4508
4509 #. type: textblock
4510 #: ../edit/virt-edit.pod:259
4511 msgid ""
4512 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4513 "paths (eg. C<E:\\foo\\bar.txt>)."
4514 msgstr ""
4515
4516 #. type: textblock
4517 #: ../edit/virt-edit.pod:278
4518 msgid ""
4519 "The path is resolved case insensitively to locate the file that should be "
4520 "edited."
4521 msgstr ""
4522
4523 #. type: textblock
4524 #: ../edit/virt-edit.pod:299
4525 msgid ""
4526 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4527 "C<virt-edit> doesn't work."
4528 msgstr ""
4529
4530 #. type: textblock
4531 #: ../edit/virt-edit.pod:302
4532 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4533 msgstr ""
4534
4535 #. type: verbatim
4536 #: ../edit/virt-edit.pod:304
4537 #, no-wrap
4538 msgid ""
4539 " guestfish --rw -i -d domname edit /file\n"
4540 "\n"
4541 msgstr ""
4542
4543 #. type: textblock
4544 #: ../edit/virt-edit.pod:306
4545 msgid ""
4546 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4547 "path to the file."
4548 msgstr ""
4549
4550 #. type: textblock
4551 #: ../edit/virt-edit.pod:309
4552 msgid ""
4553 "The command above uses libguestfs's guest inspection feature and so does not "
4554 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4555 "disk images that don't contain guests.  To edit a file on a disk image "
4556 "directly, use:"
4557 msgstr ""
4558
4559 #. type: verbatim
4560 #: ../edit/virt-edit.pod:314
4561 #, no-wrap
4562 msgid ""
4563 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4564 "\n"
4565 msgstr ""
4566
4567 #. type: textblock
4568 #: ../edit/virt-edit.pod:316
4569 msgid ""
4570 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4571 "the disk image to edit, and C</file> is the full path to the file."
4572 msgstr ""
4573
4574 #. type: textblock
4575 #: ../edit/virt-edit.pod:320
4576 msgid ""
4577 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4578 "C<write> or C<upload> instead:"
4579 msgstr ""
4580
4581 #. type: verbatim
4582 #: ../edit/virt-edit.pod:323
4583 #, no-wrap
4584 msgid ""
4585 " guestfish --rw -i -d domname touch /newfile\n"
4586 "\n"
4587 msgstr ""
4588
4589 #. type: verbatim
4590 #: ../edit/virt-edit.pod:325
4591 #, no-wrap
4592 msgid ""
4593 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4594 "\n"
4595 msgstr ""
4596
4597 #. type: verbatim
4598 #: ../edit/virt-edit.pod:327
4599 #, no-wrap
4600 msgid ""
4601 " guestfish --rw -i -d domname upload localfile /newfile\n"
4602 "\n"
4603 msgstr ""
4604
4605 #. type: =head1
4606 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4607 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4608 #: ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4609 msgid "ENVIRONMENT VARIABLES"
4610 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4611
4612 #. type: =item
4613 #: ../edit/virt-edit.pod:333
4614 msgid "C<EDITOR>"
4615 msgstr "C<EDITOR>"
4616
4617 #. type: textblock
4618 #: ../edit/virt-edit.pod:335
4619 msgid ""
4620 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4621 "\"emacs -nw\">"
4622 msgstr ""
4623
4624 #. type: textblock
4625 #: ../edit/virt-edit.pod:338
4626 msgid "If not set, C<vi> is used."
4627 msgstr ""
4628
4629 #. type: textblock
4630 #: ../edit/virt-edit.pod:356
4631 msgid ""
4632 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4633 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4634 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4635 msgstr ""
4636 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4637 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4638 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4639
4640 #. type: textblock
4641 #: ../erlang/examples/guestfs-erlang.pod:5
4642 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4643 msgstr ""
4644
4645 #. type: verbatim
4646 #: ../erlang/examples/guestfs-erlang.pod:9
4647 #, no-wrap
4648 msgid ""
4649 " {ok, G} = guestfs:create(),\n"
4650 " ok = guestfs:add_drive_opts(G, Disk,\n"
4651 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4652 " ok = guestfs:launch(G),\n"
4653 " [Device] = guestfs:list_devices(G),\n"
4654 " ok = guestfs:close(G).\n"
4655 "\n"
4656 msgstr ""
4657
4658 #. type: textblock
4659 #: ../erlang/examples/guestfs-erlang.pod:18
4660 msgid ""
4661 "This manual page documents how to call libguestfs from the Erlang "
4662 "programming language.  This page just documents the differences from the C "
4663 "API and gives some examples.  If you are not familiar with using libguestfs, "
4664 "you also need to read L<guestfs(3)>."
4665 msgstr ""
4666
4667 #. type: =head2
4668 #: ../erlang/examples/guestfs-erlang.pod:23
4669 msgid "OPENING AND CLOSING THE HANDLE"
4670 msgstr ""
4671
4672 #. type: textblock
4673 #: ../erlang/examples/guestfs-erlang.pod:25
4674 msgid ""
4675 "The Erlang bindings are implemented using an external program called C<erl-"
4676 "guestfs>.  This program must be on the current PATH, or else you should "
4677 "specify the full path to the program:"
4678 msgstr ""
4679
4680 #. type: verbatim
4681 #: ../erlang/examples/guestfs-erlang.pod:29
4682 #, no-wrap
4683 msgid ""
4684 " {ok, G} = guestfs:create().\n"
4685 "\n"
4686 msgstr ""
4687
4688 #. type: verbatim
4689 #: ../erlang/examples/guestfs-erlang.pod:31
4690 #, no-wrap
4691 msgid ""
4692 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4693 "\n"
4694 msgstr ""
4695
4696 #. type: textblock
4697 #: ../erlang/examples/guestfs-erlang.pod:33
4698 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4699 msgstr ""
4700
4701 #. type: textblock
4702 #: ../erlang/examples/guestfs-erlang.pod:36
4703 msgid "To close the handle:"
4704 msgstr ""
4705
4706 #. type: verbatim
4707 #: ../erlang/examples/guestfs-erlang.pod:38
4708 #, no-wrap
4709 msgid ""
4710 " ok = guestfs:close(G).\n"
4711 "\n"
4712 msgstr ""
4713
4714 #. type: =head2
4715 #: ../erlang/examples/guestfs-erlang.pod:40
4716 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4717 msgstr ""
4718
4719 #. type: textblock
4720 #: ../erlang/examples/guestfs-erlang.pod:42
4721 msgid ""
4722 "For functions that take optional arguments, the first arguments are the non-"
4723 "optional ones.  The last argument is a list of tuples supplying the "
4724 "remaining optional arguments."
4725 msgstr ""
4726
4727 #. type: verbatim
4728 #: ../erlang/examples/guestfs-erlang.pod:46
4729 #, no-wrap
4730 msgid ""
4731 " ok = guestfs:add_drive_opts(G, Disk,\n"
4732 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4733 "\n"
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../erlang/examples/guestfs-erlang.pod:49
4738 msgid "If the last argument would be an empty list, you can also omit it:"
4739 msgstr ""
4740
4741 #. type: verbatim
4742 #: ../erlang/examples/guestfs-erlang.pod:51
4743 #, no-wrap
4744 msgid ""
4745 " ok = guestfs:add_drive_opts(G, Disk).\n"
4746 "\n"
4747 msgstr ""
4748
4749 #. type: =head2
4750 #: ../erlang/examples/guestfs-erlang.pod:53
4751 msgid "RETURN VALUES AND ERRORS"
4752 msgstr ""
4753
4754 #. type: textblock
4755 #: ../erlang/examples/guestfs-erlang.pod:55
4756 msgid ""
4757 "On success, most functions return a C<Result> term (which could be a list, "
4758 "string, tuple etc.).  If there is nothing for the function to return, then "
4759 "the atom C<ok> is returned."
4760 msgstr ""
4761
4762 #. type: textblock
4763 #: ../erlang/examples/guestfs-erlang.pod:59
4764 msgid "On error, you would see one of the following tuples:"
4765 msgstr ""
4766
4767 #. type: =item
4768 #: ../erlang/examples/guestfs-erlang.pod:63
4769 msgid "C<{error, Msg, Errno}>"
4770 msgstr ""
4771
4772 #. type: textblock
4773 #: ../erlang/examples/guestfs-erlang.pod:65
4774 msgid "This indicates an ordinary error from the function."
4775 msgstr ""
4776
4777 #. type: textblock
4778 #: ../erlang/examples/guestfs-erlang.pod:67
4779 msgid ""
4780 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4781 "(integer)."
4782 msgstr ""
4783
4784 #. type: textblock
4785 #: ../erlang/examples/guestfs-erlang.pod:70
4786 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4787 msgstr ""
4788
4789 #. type: =item
4790 #: ../erlang/examples/guestfs-erlang.pod:72
4791 msgid "C<{unknown, Function}>"
4792 msgstr ""
4793
4794 #. type: textblock
4795 #: ../erlang/examples/guestfs-erlang.pod:74
4796 msgid ""
4797 "This indicates that the function you called is not known.  Generally this "
4798 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4799 "which you should not do."
4800 msgstr ""
4801
4802 #. type: textblock
4803 #: ../erlang/examples/guestfs-erlang.pod:78
4804 msgid "C<Function> is the name of the unknown function."
4805 msgstr ""
4806
4807 #. type: =item
4808 #: ../erlang/examples/guestfs-erlang.pod:80
4809 msgid "C<{unknownarg, Arg}>"
4810 msgstr ""
4811
4812 #. type: textblock
4813 #: ../erlang/examples/guestfs-erlang.pod:82
4814 msgid ""
4815 "This indicates that you called a function with optional arguments, with an "
4816 "unknown argument name."
4817 msgstr ""
4818
4819 #. type: textblock
4820 #: ../erlang/examples/guestfs-erlang.pod:85
4821 msgid "C<Arg> is the name of the unknown argument."
4822 msgstr ""
4823
4824 #. type: =head1
4825 #: ../erlang/examples/guestfs-erlang.pod:89
4826 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4827 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4828 #: ../python/examples/guestfs-python.pod:34
4829 #: ../ruby/examples/guestfs-ruby.pod:28
4830 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4831 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4832
4833 #. type: textblock
4834 #: ../erlang/examples/guestfs-erlang.pod:91
4835 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4836 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4837 #: ../python/examples/guestfs-python.pod:36
4838 #: ../ruby/examples/guestfs-ruby.pod:30
4839 msgid "@EXAMPLE1@"
4840 msgstr "@EXAMPLE1@"
4841
4842 #. type: =head1
4843 #: ../erlang/examples/guestfs-erlang.pod:93
4844 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4845 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4846 #: ../python/examples/guestfs-python.pod:38
4847 #: ../ruby/examples/guestfs-ruby.pod:32
4848 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4849 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4850
4851 #. type: textblock
4852 #: ../erlang/examples/guestfs-erlang.pod:95
4853 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4854 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4855 #: ../python/examples/guestfs-python.pod:40
4856 #: ../ruby/examples/guestfs-ruby.pod:34
4857 msgid "@EXAMPLE2@"
4858 msgstr "@EXAMPLE2@"
4859
4860 #. type: textblock
4861 #: ../erlang/examples/guestfs-erlang.pod:99
4862 msgid ""
4863 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4864 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4865 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4866 msgstr ""
4867
4868 #. type: =head1
4869 #: ../erlang/examples/guestfs-erlang.pod:110
4870 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4871 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4872 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4873 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4874 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4875 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4876 #: ../python/examples/guestfs-python.pod:54
4877 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3348
4878 #: ../test-tool/libguestfs-test-tool.pod:106
4879 msgid "AUTHORS"
4880 msgstr "АВТОРИ"
4881
4882 #. type: textblock
4883 #: ../erlang/examples/guestfs-erlang.pod:112
4884 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4885 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4886 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4887 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4888 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4889 #: ../perl/examples/guestfs-perl.pod:54
4890 #: ../python/examples/guestfs-python.pod:56
4891 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3350
4892 #: ../test-tool/libguestfs-test-tool.pod:108
4893 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4894 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4895
4896 #. type: textblock
4897 #: ../erlang/examples/guestfs-erlang.pod:116
4898 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4899 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4900 msgstr ""
4901
4902 #. type: textblock
4903 #: ../erlang/examples/guestfs-erlang.pod:118
4904 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4905 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4906 #: ../perl/examples/guestfs-perl.pod:60
4907 #: ../python/examples/guestfs-python.pod:62
4908 #: ../ruby/examples/guestfs-ruby.pod:56
4909 msgid ""
4910 "The examples in this manual page may be freely copied, modified and "
4911 "distributed without any restrictions."
4912 msgstr ""
4913
4914 #. type: textblock
4915 #: ../erlang/examples/guestfs-erlang.pod:121
4916 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4917 #: ../java/examples/guestfs-java.pod:69
4918 #: ../ocaml/examples/guestfs-ocaml.pod:102
4919 #: ../perl/examples/guestfs-perl.pod:63
4920 #: ../python/examples/guestfs-python.pod:65
4921 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3357
4922 msgid ""
4923 "This library is free software; you can redistribute it and/or modify it "
4924 "under the terms of the GNU Lesser General Public License as published by the "
4925 "Free Software Foundation; either version 2 of the License, or (at your "
4926 "option) any later version."
4927 msgstr ""
4928
4929 #. type: textblock
4930 #: ../erlang/examples/guestfs-erlang.pod:126
4931 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4932 #: ../java/examples/guestfs-java.pod:74
4933 #: ../ocaml/examples/guestfs-ocaml.pod:107
4934 #: ../perl/examples/guestfs-perl.pod:68
4935 #: ../python/examples/guestfs-python.pod:70
4936 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3362
4937 msgid ""
4938 "This library is distributed in the hope that it will be useful, but WITHOUT "
4939 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4940 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4941 "for more details."
4942 msgstr ""
4943
4944 #. type: textblock
4945 #: ../erlang/examples/guestfs-erlang.pod:131
4946 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4947 #: ../java/examples/guestfs-java.pod:79
4948 #: ../ocaml/examples/guestfs-ocaml.pod:112
4949 #: ../perl/examples/guestfs-perl.pod:73
4950 #: ../python/examples/guestfs-python.pod:75
4951 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3367
4952 msgid ""
4953 "You should have received a copy of the GNU Lesser General Public License "
4954 "along with this library; if not, write to the Free Software Foundation, "
4955 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4956 msgstr ""
4957
4958 #. type: textblock
4959 #: ../examples/guestfs-examples.pod:5
4960 msgid "guestfs-examples - Examples of using libguestfs from C"
4961 msgstr ""
4962
4963 #. type: verbatim
4964 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4965 #, no-wrap
4966 msgid ""
4967 " #include <guestfs.h>\n"
4968 " \n"
4969 msgstr ""
4970 " #include <guestfs.h>\n"
4971 " \n"
4972
4973 #. type: verbatim
4974 #: ../examples/guestfs-examples.pod:11
4975 #, no-wrap
4976 msgid ""
4977 " guestfs_h *g = guestfs_create ();\n"
4978 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4979 " guestfs_launch (g);\n"
4980 "\n"
4981 msgstr ""
4982 " guestfs_h *g = guestfs_create ();\n"
4983 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4984 " guestfs_launch (g);\n"
4985 "\n"
4986
4987 #. type: verbatim
4988 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4989 #, no-wrap
4990 msgid ""
4991 " cc prog.c -o prog -lguestfs\n"
4992 "or:\n"
4993 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4994 "\n"
4995 msgstr ""
4996 " cc prog.c -o prog -lguestfs\n"
4997 "або:\n"
4998 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4999 "\n"
5000
5001 #. type: textblock
5002 #: ../examples/guestfs-examples.pod:21
5003 msgid ""
5004 "This manual page contains examples of calling libguestfs from the C "
5005 "programming language.  If you are not familiar with using libguestfs, you "
5006 "also need to read L<guestfs(3)>."
5007 msgstr ""
5008
5009 #. type: textblock
5010 #: ../examples/guestfs-examples.pod:35
5011 msgid ""
5012 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
5013 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5014 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5015 msgstr ""
5016
5017 #. type: textblock
5018 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
5019 #: ../python/examples/guestfs-python.pod:60
5020 #: ../ruby/examples/guestfs-ruby.pod:54
5021 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
5022 msgstr ""
5023
5024 #. type: =end
5025 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5026 msgid "comment"
5027 msgstr "коментар"
5028
5029 #. type: textblock
5030 #: ../examples/guestfs-recipes.pod:5
5031 msgid ""
5032 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5033 "here.  The only way which works for both sorts of output is to just write "
5034 "the URL directly.  Do NOT use L<...> for URLs."
5035 msgstr ""
5036
5037 #. type: textblock
5038 #: ../examples/guestfs-recipes.pod:9
5039 msgid ""
5040 "We break with tradition here and don't use ALL CAPS for the section "
5041 "headings, as this makes them much easier to read."
5042 msgstr ""
5043
5044 #. type: textblock
5045 #: ../examples/guestfs-recipes.pod:16
5046 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5047 msgstr ""
5048
5049 #. type: textblock
5050 #: ../examples/guestfs-recipes.pod:20
5051 msgid ""
5052 "This page contains recipes for and links to things you can do using "
5053 "libguestfs, L<guestfish(1)> and the virt tools."
5054 msgstr ""
5055
5056 #. type: =head1
5057 #: ../examples/guestfs-recipes.pod:23
5058 msgid "Audit a virtual machine for setuid files"
5059 msgstr ""
5060
5061 #. type: textblock
5062 #: ../examples/guestfs-recipes.pod:25
5063 msgid ""
5064 "The link below contains a small program which can be used to audit a Linux "
5065 "virtual machine to see what setuid and setgid files it contains."
5066 msgstr ""
5067
5068 #. type: textblock
5069 #: ../examples/guestfs-recipes.pod:28
5070 msgid ""
5071 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5072 "files/#content"
5073 msgstr ""
5074
5075 #. type: =head1
5076 #: ../examples/guestfs-recipes.pod:30
5077 msgid "Change the background image in a Windows XP VM"
5078 msgstr ""
5079
5080 #. type: textblock
5081 #: ../examples/guestfs-recipes.pod:32
5082 msgid ""
5083 "The links below explain how to use L<guestfish(1)> to change the background "
5084 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
5085 "be substantially different for each version of Windows."
5086 msgstr ""
5087
5088 #. type: textblock
5089 #: ../examples/guestfs-recipes.pod:37
5090 msgid ""
5091 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5092 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5093 msgstr ""
5094
5095 #. type: =head1
5096 #: ../examples/guestfs-recipes.pod:40
5097 msgid "Cloning a virtual machine (Linux)"
5098 msgstr ""
5099
5100 #. type: textblock
5101 #: ../examples/guestfs-recipes.pod:42
5102 msgid ""
5103 "The guestfish technique described in the link below works well for most "
5104 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5105 "slightly."
5106 msgstr ""
5107
5108 #. type: textblock
5109 #: ../examples/guestfs-recipes.pod:46
5110 msgid ""
5111 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5112 "vm/#content"
5113 msgstr ""
5114
5115 #. type: textblock
5116 #: ../examples/guestfs-recipes.pod:48
5117 msgid ""
5118 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5119 "discussion."
5120 msgstr ""
5121
5122 #. type: textblock
5123 #: ../examples/guestfs-recipes.pod:51
5124 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5125 msgstr ""
5126
5127 #. type: =head1
5128 #: ../examples/guestfs-recipes.pod:53
5129 msgid "Cloning a virtual machine (Windows)"
5130 msgstr ""
5131
5132 #. type: textblock
5133 #: ../examples/guestfs-recipes.pod:55
5134 msgid ""
5135 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5136 "straightforward.  Currently there is code in the Aeolus Oz project which "
5137 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5138 "we may add sysprepping ability."
5139 msgstr ""
5140
5141 #. type: textblock
5142 #: ../examples/guestfs-recipes.pod:60
5143 msgid ""
5144 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5145 "list/2011-May/msg00019.html"
5146 msgstr ""
5147
5148 #. type: =head1
5149 #: ../examples/guestfs-recipes.pod:63
5150 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5151 msgstr ""
5152
5153 #. type: textblock
5154 #: ../examples/guestfs-recipes.pod:65
5155 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5156 msgstr ""
5157
5158 #. type: verbatim
5159 #: ../examples/guestfs-recipes.pod:67
5160 #, no-wrap
5161 msgid ""
5162 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5163 "\n"
5164 msgstr ""
5165
5166 #. type: textblock
5167 #: ../examples/guestfs-recipes.pod:69
5168 msgid "To export just a subdirectory, eg. C</files>, do:"
5169 msgstr ""
5170
5171 #. type: verbatim
5172 #: ../examples/guestfs-recipes.pod:71
5173 #, no-wrap
5174 msgid ""
5175 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5176 "\n"
5177 msgstr ""
5178
5179 #. type: =head1
5180 #: ../examples/guestfs-recipes.pod:73
5181 msgid "Create empty disk images"
5182 msgstr ""
5183
5184 #. type: textblock
5185 #: ../examples/guestfs-recipes.pod:75
5186 msgid ""
5187 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5188 "The useful guide below explains the options available."
5189 msgstr ""
5190
5191 #. type: textblock
5192 #: ../examples/guestfs-recipes.pod:78
5193 msgid ""
5194 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5195 "#content"
5196 msgstr ""
5197
5198 #. type: =head1
5199 #: ../examples/guestfs-recipes.pod:80
5200 msgid "Dump raw filesystem content from inside a disk image or VM"
5201 msgstr ""
5202
5203 #. type: textblock
5204 #: ../examples/guestfs-recipes.pod:82
5205 msgid ""
5206 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5207 "filesystem content from any filesystem in a disk image or a VM (even one "
5208 "which is encrypted or buried inside an LV):"
5209 msgstr ""
5210
5211 #. type: verbatim
5212 #: ../examples/guestfs-recipes.pod:86
5213 #, no-wrap
5214 msgid ""
5215 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5216 "\n"
5217 msgstr ""
5218
5219 #. type: verbatim
5220 #: ../examples/guestfs-recipes.pod:88
5221 #, no-wrap
5222 msgid ""
5223 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5224 "\n"
5225 msgstr ""
5226
5227 #. type: textblock
5228 #: ../examples/guestfs-recipes.pod:90
5229 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5230 msgstr ""
5231
5232 #. type: =head1
5233 #: ../examples/guestfs-recipes.pod:92
5234 msgid "Edit grub configuration in a VM"
5235 msgstr ""
5236
5237 #. type: textblock
5238 #: ../examples/guestfs-recipes.pod:94
5239 msgid "You can use this to:"
5240 msgstr ""
5241
5242 #. type: textblock
5243 #: ../examples/guestfs-recipes.pod:100
5244 msgid "Fix a virtual machine that does not boot."
5245 msgstr ""
5246
5247 #. type: textblock
5248 #: ../examples/guestfs-recipes.pod:104
5249 msgid "Change which kernel is used to boot the VM."
5250 msgstr ""
5251
5252 #. type: textblock
5253 #: ../examples/guestfs-recipes.pod:108
5254 msgid "Change kernel command line options."
5255 msgstr ""
5256
5257 #. type: textblock
5258 #: ../examples/guestfs-recipes.pod:112
5259 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5260 msgstr ""
5261
5262 #. type: verbatim
5263 #: ../examples/guestfs-recipes.pod:114
5264 #, no-wrap
5265 msgid ""
5266 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5267 "\n"
5268 msgstr ""
5269
5270 #. type: textblock
5271 #: ../examples/guestfs-recipes.pod:116
5272 msgid ""
5273 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5274 "this:"
5275 msgstr ""
5276
5277 #. type: verbatim
5278 #: ../examples/guestfs-recipes.pod:119
5279 #, no-wrap
5280 msgid ""
5281 " virt-rescue -d BrokenGuest\n"
5282 "\n"
5283 msgstr ""
5284
5285 #. type: =head1
5286 #: ../examples/guestfs-recipes.pod:121
5287 msgid "Export any directory from a VM"
5288 msgstr ""
5289
5290 #. type: textblock
5291 #: ../examples/guestfs-recipes.pod:123
5292 msgid ""
5293 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5294 msgstr ""
5295
5296 #. type: verbatim
5297 #: ../examples/guestfs-recipes.pod:126
5298 #, no-wrap
5299 msgid ""
5300 " virt-copy-out -d Guest /home .\n"
5301 "\n"
5302 msgstr ""
5303
5304 #. type: textblock
5305 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5306 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5307 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5308 #: ../src/guestfs-actions.pod:2326 ../src/guestfs-actions.pod:2750
5309 #: ../src/guestfs-actions.pod:3309 ../src/guestfs.pod:1685
5310 #: ../tools/virt-win-reg.pl:717
5311 msgid "Notes:"
5312 msgstr "Нотатки:"
5313
5314 #. type: textblock
5315 #: ../examples/guestfs-recipes.pod:134
5316 msgid ""
5317 "The final dot of the command is not a printing error.  It means we want to "
5318 "copy out to the current directory."
5319 msgstr ""
5320
5321 #. type: textblock
5322 #: ../examples/guestfs-recipes.pod:139
5323 msgid "This creates a directory called C<home> under the current directory."
5324 msgstr ""
5325
5326 #. type: textblock
5327 #: ../examples/guestfs-recipes.pod:143
5328 msgid ""
5329 "If the guest is a Windows guest then you can use drive letters and "
5330 "backslashes, but you must prefix the path with C<win:> and quote it to "
5331 "protect it from the shell, like this:"
5332 msgstr ""
5333
5334 #. type: verbatim
5335 #: ../examples/guestfs-recipes.pod:147
5336 #, no-wrap
5337 msgid ""
5338 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5339 "\n"
5340 msgstr ""
5341
5342 #. type: textblock
5343 #: ../examples/guestfs-recipes.pod:149
5344 msgid "To get the output as a compressed tarball, do:"
5345 msgstr ""
5346
5347 #. type: verbatim
5348 #: ../examples/guestfs-recipes.pod:151
5349 #, no-wrap
5350 msgid ""
5351 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5352 "\n"
5353 msgstr ""
5354
5355 #. type: textblock
5356 #: ../examples/guestfs-recipes.pod:153
5357 msgid ""
5358 "Although it sounds tempting, this is usually not a reliable way to get a "
5359 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5360 "org/FAQ.html#backup"
5361 msgstr ""
5362
5363 #. type: =head1
5364 #: ../examples/guestfs-recipes.pod:157
5365 msgid "Find out which user is using the most space"
5366 msgstr ""
5367
5368 #. type: textblock
5369 #: ../examples/guestfs-recipes.pod:159
5370 msgid ""
5371 "This simple script examines a Linux guest to find out which user is using "
5372 "the most space in their home directory:"
5373 msgstr ""
5374
5375 #. type: verbatim
5376 #: ../examples/guestfs-recipes.pod:162
5377 #, no-wrap
5378 msgid ""
5379 " #!/bin/sh -\n"
5380 " \n"
5381 msgstr ""
5382
5383 #. type: verbatim
5384 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5385 #, no-wrap
5386 msgid ""
5387 " set -e\n"
5388 " \n"
5389 msgstr ""
5390
5391 #. type: verbatim
5392 #: ../examples/guestfs-recipes.pod:166
5393 #, no-wrap
5394 msgid ""
5395 " vm=\"$1\"\n"
5396 " dir=/home\n"
5397 " \n"
5398 msgstr ""
5399
5400 #. type: verbatim
5401 #: ../examples/guestfs-recipes.pod:169
5402 #, no-wrap
5403 msgid ""
5404 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5405 " \n"
5406 msgstr ""
5407
5408 #. type: verbatim
5409 #: ../examples/guestfs-recipes.pod:171
5410 #, no-wrap
5411 msgid ""
5412 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5413 "     echo -n \"$dir/$d\"\n"
5414 "     echo -ne '\\t'\n"
5415 "     guestfish --remote du \"$dir/$d\";\n"
5416 " done | sort -nr -k 2\n"
5417 " \n"
5418 msgstr ""
5419
5420 #. type: verbatim
5421 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5422 #, no-wrap
5423 msgid ""
5424 " guestfish --remote exit\n"
5425 "\n"
5426 msgstr ""
5427
5428 #. type: =head1
5429 #: ../examples/guestfs-recipes.pod:179
5430 msgid "Get DHCP address from a VM"
5431 msgstr ""
5432
5433 #. type: textblock
5434 #: ../examples/guestfs-recipes.pod:181
5435 msgid ""
5436 "The link below explains the many different possible techniques for getting "
5437 "the last assigned DHCP address of a virtual machine."
5438 msgstr ""
5439
5440 #. type: textblock
5441 #: ../examples/guestfs-recipes.pod:184
5442 msgid ""
5443 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5444 "a-virtual-machine-disk-image/#content"
5445 msgstr ""
5446
5447 #. type: textblock
5448 #: ../examples/guestfs-recipes.pod:186
5449 msgid ""
5450 "In the libguestfs source examples directory you will find the latest version "
5451 "of the C<virt-dhcp-address.c> program."
5452 msgstr ""
5453
5454 #. type: =head1
5455 #: ../examples/guestfs-recipes.pod:189
5456 msgid "Get the operating system product name string"
5457 msgstr ""
5458
5459 #. type: textblock
5460 #: ../examples/guestfs-recipes.pod:191
5461 msgid "Save the following script into a file called C<product-name.sh>:"
5462 msgstr ""
5463
5464 #. type: verbatim
5465 #: ../examples/guestfs-recipes.pod:193
5466 #, no-wrap
5467 msgid ""
5468 " #!/bin/sh -\n"
5469 " set -e\n"
5470 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5471 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5472 " guestfish --remote inspect-get-product-name \"$root\"\n"
5473 " guestfish --remote exit\n"
5474 "\n"
5475 msgstr ""
5476
5477 #. type: textblock
5478 #: ../examples/guestfs-recipes.pod:200
5479 msgid "Make the script executable and run it on a named guest:"
5480 msgstr ""
5481
5482 #. type: verbatim
5483 #: ../examples/guestfs-recipes.pod:202
5484 #, no-wrap
5485 msgid ""
5486 " # product-name.sh RHEL60x64\n"
5487 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5488 "\n"
5489 msgstr ""
5490
5491 #. type: textblock
5492 #: ../examples/guestfs-recipes.pod:205
5493 msgid ""
5494 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5495 "C<xpath> command line tool or from your favourite programming language:"
5496 msgstr ""
5497
5498 #. type: verbatim
5499 #: ../examples/guestfs-recipes.pod:209
5500 #, no-wrap
5501 msgid ""
5502 " # virt-inspector RHEL60x64 > xml\n"
5503 " # xpath '//product_name' < xml\n"
5504 " Found 1 nodes:\n"
5505 " -- NODE --\n"
5506 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5507 "\n"
5508 msgstr ""
5509
5510 #. type: =head1
5511 #: ../examples/guestfs-recipes.pod:215
5512 msgid "Get the default boot kernel for a Linux VM"
5513 msgstr ""
5514
5515 #. type: textblock
5516 #: ../examples/guestfs-recipes.pod:217
5517 msgid ""
5518 "The link below contains a program to print the default boot kernel for a "
5519 "Linux VM."
5520 msgstr ""
5521
5522 #. type: textblock
5523 #: ../examples/guestfs-recipes.pod:220
5524 msgid ""
5525 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5526 "kernel-for-a-vm/#content"
5527 msgstr ""
5528
5529 #. type: textblock
5530 #: ../examples/guestfs-recipes.pod:222
5531 msgid ""
5532 "It uses Augeas, and the technique is generally applicable for many different "
5533 "tasks, such as:"
5534 msgstr ""
5535
5536 #. type: textblock
5537 #: ../examples/guestfs-recipes.pod:229
5538 msgid "listing the user accounts in the guest"
5539 msgstr ""
5540
5541 #. type: textblock
5542 #: ../examples/guestfs-recipes.pod:233
5543 msgid "what repositories is it configured to use"
5544 msgstr ""
5545
5546 #. type: textblock
5547 #: ../examples/guestfs-recipes.pod:237
5548 msgid "what NTP servers does it connect to"
5549 msgstr ""
5550
5551 #. type: textblock
5552 #: ../examples/guestfs-recipes.pod:241
5553 msgid "what were the boot messages last time it booted"
5554 msgstr ""
5555
5556 #. type: textblock
5557 #: ../examples/guestfs-recipes.pod:245
5558 msgid "listing who was logged in recently"
5559 msgstr ""
5560
5561 #. type: textblock
5562 #: ../examples/guestfs-recipes.pod:249
5563 msgid "http://augeas.net/"
5564 msgstr ""
5565
5566 #. type: =head1
5567 #: ../examples/guestfs-recipes.pod:251
5568 msgid "Install RPMs in a guest"
5569 msgstr ""
5570
5571 #. type: textblock
5572 #: ../examples/guestfs-recipes.pod:253
5573 msgid ""
5574 "The link below contains a method to install RPMs in a guest.  In fact the "
5575 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5576 "installs them next time the guest is booted.  You could use this technique "
5577 "to install vital security updates in an offline guest."
5578 msgstr ""
5579
5580 #. type: textblock
5581 #: ../examples/guestfs-recipes.pod:259
5582 msgid ""
5583 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5584 msgstr ""
5585
5586 #. type: =head1
5587 #: ../examples/guestfs-recipes.pod:261
5588 msgid "List applications installed in a VM"
5589 msgstr ""
5590
5591 #. type: textblock
5592 #: ../examples/guestfs-recipes.pod:263
5593 msgid "Save the following to a file C<list-apps.sh>:"
5594 msgstr ""
5595
5596 #. type: verbatim
5597 #: ../examples/guestfs-recipes.pod:265
5598 #, no-wrap
5599 msgid ""
5600 " #!/bin/sh -\n"
5601 " set -e\n"
5602 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5603 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5604 " guestfish --remote inspect-list-applications \"$root\"\n"
5605 " guestfish --remote exit\n"
5606 "\n"
5607 msgstr ""
5608
5609 #. type: textblock
5610 #: ../examples/guestfs-recipes.pod:272
5611 msgid ""
5612 "Make the file executable and then you can run it on any named virtual "
5613 "machine:"
5614 msgstr ""
5615
5616 #. type: verbatim
5617 #: ../examples/guestfs-recipes.pod:275
5618 #, no-wrap
5619 msgid ""
5620 " # list-apps.sh WinGuest\n"
5621 " [0] = {\n"
5622 "   app_name: Mozilla Firefox (3.6.12)\n"
5623 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5624 "   app_epoch: 0\n"
5625 "   app_version: 3.6.12 (en-GB)\n"
5626 "   app_release:\n"
5627 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5628 "   app_trans_path:\n"
5629 "   app_publisher: Mozilla\n"
5630 "   app_url: http://www.mozilla.com/en-GB/\n"
5631 "   app_source_package:\n"
5632 "   app_summary:\n"
5633 "   app_description: Mozilla Firefox\n"
5634 " }\n"
5635 " [1] = {\n"
5636 "   app_name: VLC media player\n"
5637 "   app_display_name: VLC media player 1.1.5\n"
5638 "   app_epoch: 0\n"
5639 "   app_version: 1.1.5\n"
5640 "   app_release:\n"
5641 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5642 "   app_trans_path:\n"
5643 "   app_publisher: VideoLAN\n"
5644 "   app_url: http://www.videolan.org/\n"
5645 "   app_source_package:\n"
5646 "   app_summary:\n"
5647 "   app_description:\n"
5648 " }\n"
5649 "\n"
5650 msgstr ""
5651
5652 #. type: textblock
5653 #: ../examples/guestfs-recipes.pod:305
5654 msgid ""
5655 "If you want to run the script on disk images (instead of libvirt virtual "
5656 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5657 ">."
5658 msgstr ""
5659
5660 #. type: =head1
5661 #: ../examples/guestfs-recipes.pod:309
5662 msgid "List files and directories in a VM"
5663 msgstr ""
5664
5665 #. type: textblock
5666 #: ../examples/guestfs-recipes.pod:311
5667 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5668 msgstr ""
5669
5670 #. type: verbatim
5671 #: ../examples/guestfs-recipes.pod:313
5672 #, no-wrap
5673 msgid ""
5674 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5675 "\n"
5676 msgstr ""
5677
5678 #. type: =head1
5679 #: ../examples/guestfs-recipes.pod:315
5680 msgid "List services in a Windows VM"
5681 msgstr ""
5682
5683 #. type: textblock
5684 #: ../examples/guestfs-recipes.pod:317
5685 msgid ""
5686 "The link below contains a script that can be used to list out the services "
5687 "from a Windows VM, and whether those services run at boot time or are loaded "
5688 "on demand."
5689 msgstr ""
5690
5691 #. type: textblock
5692 #: ../examples/guestfs-recipes.pod:321
5693 msgid ""
5694 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5695 "#content"
5696 msgstr ""
5697
5698 #. type: =head1
5699 #: ../examples/guestfs-recipes.pod:323
5700 msgid "Make a disk image sparse"
5701 msgstr ""
5702
5703 #. type: textblock
5704 #: ../examples/guestfs-recipes.pod:325
5705 msgid ""
5706 "The link below contains some guides for making a disk image sparse (or "
5707 "reintroducing sparseness)."
5708 msgstr ""
5709
5710 #. type: textblock
5711 #: ../examples/guestfs-recipes.pod:328
5712 msgid ""
5713 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5714 msgstr ""
5715
5716 #. type: =head1
5717 #: ../examples/guestfs-recipes.pod:330
5718 msgid "Monitor disk usage over time"
5719 msgstr ""
5720
5721 #. type: textblock
5722 #: ../examples/guestfs-recipes.pod:332
5723 msgid ""
5724 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5725 "The link below contains a guide."
5726 msgstr ""
5727
5728 #. type: textblock
5729 #: ../examples/guestfs-recipes.pod:335
5730 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5731 msgstr ""
5732
5733 #. type: =head1
5734 #: ../examples/guestfs-recipes.pod:337
5735 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5736 msgstr ""
5737
5738 #. type: textblock
5739 #: ../examples/guestfs-recipes.pod:339
5740 msgid ""
5741 "L<guestfish(1)> plus the tools described in the link below can be used to "
5742 "read out the Windows Event Log from any virtual machine running Windows "
5743 "Vista or a later version."
5744 msgstr ""
5745
5746 #. type: textblock
5747 #: ../examples/guestfs-recipes.pod:343
5748 msgid ""
5749 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5750 "guestfish/#content"
5751 msgstr ""
5752
5753 #. type: =head1
5754 #: ../examples/guestfs-recipes.pod:345
5755 msgid "Remove root password (Linux)"
5756 msgstr ""
5757
5758 #. type: textblock
5759 #: ../examples/guestfs-recipes.pod:347
5760 msgid ""
5761 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5762 "files.  One use is to remove the root password from a Linux guest:"
5763 msgstr ""
5764
5765 #. type: verbatim
5766 #: ../examples/guestfs-recipes.pod:350
5767 #, no-wrap
5768 msgid ""
5769 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5770 "\n"
5771 msgstr ""
5772
5773 #. type: =head1
5774 #: ../examples/guestfs-recipes.pod:352
5775 msgid "Remove Administrator password (Windows)"
5776 msgstr ""
5777
5778 #. type: textblock
5779 #: ../examples/guestfs-recipes.pod:354
5780 msgid ""
5781 "The link below contains one technique for removing the Administrator "
5782 "password from a Windows VM, or to be more precise, it gives you a command "
5783 "prompt the next time you log in which you can use to bypass any security:"
5784 msgstr ""
5785
5786 #. type: textblock
5787 #: ../examples/guestfs-recipes.pod:359
5788 msgid ""
5789 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5790 "administrator-password-with-guestfish/"
5791 msgstr ""
5792
5793 #. type: =head1
5794 #: ../examples/guestfs-recipes.pod:361
5795 msgid "Unpack a live CD"
5796 msgstr ""
5797
5798 #. type: textblock
5799 #: ../examples/guestfs-recipes.pod:363
5800 msgid ""
5801 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5802 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5803 "layers, as outlined in the guide below."
5804 msgstr ""
5805
5806 #. type: textblock
5807 #: ../examples/guestfs-recipes.pod:367
5808 msgid ""
5809 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5810 "cd/#content"
5811 msgstr ""
5812
5813 #. type: =head1
5814 #: ../examples/guestfs-recipes.pod:369
5815 msgid "Uploading and downloading files"
5816 msgstr ""
5817
5818 #. type: textblock
5819 #: ../examples/guestfs-recipes.pod:371
5820 msgid ""
5821 "The link below contains general tips on uploading (copying in)  and "
5822 "downloading (copying out) files from VMs."
5823 msgstr ""
5824
5825 #. type: textblock
5826 #: ../examples/guestfs-recipes.pod:374
5827 msgid ""
5828 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5829 msgstr ""
5830
5831 #. type: =head1
5832 #: ../examples/guestfs-recipes.pod:376
5833 msgid "Use libguestfs tools on VMware ESX guests"
5834 msgstr ""
5835
5836 #. type: textblock
5837 #: ../examples/guestfs-recipes.pod:378
5838 msgid ""
5839 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5840 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5841 msgstr ""
5842
5843 #. type: textblock
5844 #: ../examples/guestfs-recipes.pod:382
5845 msgid ""
5846 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5847 "guests/#content"
5848 msgstr ""
5849
5850 #. type: textblock
5851 #: ../examples/guestfs-recipes.pod:386
5852 msgid ""
5853 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5854 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5855 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5856 msgstr ""
5857
5858 #. type: textblock
5859 #: ../examples/guestfs-recipes.pod:403
5860 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5861 msgstr ""
5862
5863 #. type: =head2
5864 #: ../fish/guestfish-actions.pod:1
5865 msgid "add-cdrom"
5866 msgstr ""
5867
5868 #. type: verbatim
5869 #: ../fish/guestfish-actions.pod:3
5870 #, no-wrap
5871 msgid ""
5872 " add-cdrom filename\n"
5873 "\n"
5874 msgstr ""
5875
5876 #. type: textblock
5877 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5878 msgid "This function adds a virtual CD-ROM disk image to the guest."
5879 msgstr ""
5880
5881 #. type: textblock
5882 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5883 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5884 msgstr ""
5885
5886 #. type: textblock
5887 #: ../fish/guestfish-actions.pod:15
5888 msgid ""
5889 "This call checks for the existence of C<filename>.  This stops you from "
5890 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5891 "and C<http:> URLs.  To specify those, use the general L</config> call "
5892 "instead."
5893 msgstr ""
5894
5895 #. type: textblock
5896 #: ../fish/guestfish-actions.pod:22
5897 msgid ""
5898 "If you just want to add an ISO file (often you use this as an efficient way "
5899 "to transfer large files into the guest), then you should probably use L</add-"
5900 "drive-ro> instead."
5901 msgstr ""
5902
5903 #. type: textblock
5904 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
5905 #: ../fish/guestfish-actions.pod:228
5906 msgid ""
5907 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5908 "instead."
5909 msgstr ""
5910
5911 #. type: textblock
5912 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
5913 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
5914 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
5915 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
5916 #: ../fish/guestfish-actions.pod:3293 ../fish/guestfish-actions.pod:3604
5917 #: ../fish/guestfish-actions.pod:3652 ../fish/guestfish-actions.pod:4579
5918 #: ../fish/guestfish-actions.pod:4602 ../fish/guestfish-actions.pod:4624
5919 #: ../fish/guestfish-actions.pod:4662 ../fish/guestfish-actions.pod:5311
5920 #: ../fish/guestfish-actions.pod:5417 ../src/guestfs-actions.pod:10
5921 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
5922 #: ../src/guestfs-actions.pod:1572 ../src/guestfs-actions.pod:1629
5923 #: ../src/guestfs-actions.pod:1912 ../src/guestfs-actions.pod:2411
5924 #: ../src/guestfs-actions.pod:2432 ../src/guestfs-actions.pod:5077
5925 #: ../src/guestfs-actions.pod:5599 ../src/guestfs-actions.pod:5699
5926 #: ../src/guestfs-actions.pod:6999 ../src/guestfs-actions.pod:7043
5927 #: ../src/guestfs-actions.pod:7077 ../src/guestfs-actions.pod:7140
5928 #: ../src/guestfs-actions.pod:8072 ../src/guestfs-actions.pod:8181
5929 #: ../src/guestfs-actions.pod:8364
5930 msgid ""
5931 "Deprecated functions will not be removed from the API, but the fact that "
5932 "they are deprecated indicates that there are problems with correct use of "
5933 "these functions."
5934 msgstr ""
5935
5936 #. type: =head2
5937 #: ../fish/guestfish-actions.pod:35
5938 msgid "add-domain"
5939 msgstr "add-domain"
5940
5941 #. type: =head2
5942 #: ../fish/guestfish-actions.pod:37
5943 msgid "domain"
5944 msgstr "домен"
5945
5946 #. type: verbatim
5947 #: ../fish/guestfish-actions.pod:39
5948 #, no-wrap
5949 msgid ""
5950 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..] [readonlydisk:..]\n"
5951 "\n"
5952 msgstr ""
5953
5954 #. type: textblock
5955 #: ../fish/guestfish-actions.pod:41
5956 msgid ""
5957 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5958 "It works by connecting to libvirt, requesting the domain and domain XML from "
5959 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5960 msgstr ""
5961
5962 #. type: textblock
5963 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
5964 msgid ""
5965 "The number of disks added is returned.  This operation is atomic: if an "
5966 "error is returned, then no disks are added."
5967 msgstr ""
5968
5969 #. type: textblock
5970 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
5971 msgid ""
5972 "This function does some minimal checks to make sure the libvirt domain is "
5973 "not running (unless C<readonly> is true).  In a future version we will try "
5974 "to acquire the libvirt lock on each disk."
5975 msgstr ""
5976
5977 #. type: textblock
5978 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
5979 msgid ""
5980 "Disks must be accessible locally.  This often means that adding disks from a "
5981 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5982 "unless those disks are accessible via the same device path locally too."
5983 msgstr ""
5984
5985 #. type: textblock
5986 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
5987 msgid ""
5988 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5989 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5990 "libvirt URI (or one set through an environment variable, see the libvirt "
5991 "documentation for full details)."
5992 msgstr ""
5993
5994 #. type: textblock
5995 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
5996 msgid ""
5997 "The optional C<live> flag controls whether this call will try to connect to "
5998 "a running virtual machine C<guestfsd> process if it sees a suitable "
5999 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6000 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6001 "DAEMONS> for more information."
6002 msgstr ""
6003
6004 #. type: textblock
6005 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6006 msgid ""
6007 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6008 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6009 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6010 "as usual."
6011 msgstr ""
6012
6013 #. type: textblock
6014 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6015 msgid ""
6016 "The optional C<readonlydisk> parameter controls what we do for disks which "
6017 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
6018 msgstr ""
6019
6020 #. type: =item
6021 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6022 msgid "readonlydisk = \"error\""
6023 msgstr ""
6024
6025 #. type: textblock
6026 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
6027 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
6028 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6029 #, fuzzy
6030 #| msgid "C<readonly>"
6031 msgid "If C<readonly> is false:"
6032 msgstr "C<readonly>"
6033
6034 #. type: textblock
6035 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6036 msgid ""
6037 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
6038 "E<gt> flag is found."
6039 msgstr ""
6040
6041 #. type: textblock
6042 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
6043 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
6044 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6045 #, fuzzy
6046 #| msgid "C<readonly>"
6047 msgid "If C<readonly> is true:"
6048 msgstr "C<readonly>"
6049
6050 #. type: textblock
6051 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
6052 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
6053 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6054 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6055 msgstr ""
6056
6057 #. type: =item
6058 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6059 msgid "readonlydisk = \"read\""
6060 msgstr ""
6061
6062 #. type: textblock
6063 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6064 msgid ""
6065 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
6066 "are added read/write."
6067 msgstr ""
6068
6069 #. type: =item
6070 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6071 msgid "readonlydisk = \"write\" (default)"
6072 msgstr ""
6073
6074 #. type: textblock
6075 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6076 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6077 msgstr ""
6078
6079 #. type: =item
6080 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6081 msgid "readonlydisk = \"ignore\""
6082 msgstr ""
6083
6084 #. type: textblock
6085 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6086 msgid "If C<readonly> is true or false:"
6087 msgstr ""
6088
6089 #. type: textblock
6090 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6091 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6092 msgstr ""
6093
6094 #. type: textblock
6095 #: ../fish/guestfish-actions.pod:122
6096 msgid ""
6097 "The other optional parameters are passed directly through to L</add-drive-"
6098 "opts>."
6099 msgstr ""
6100
6101 #. type: textblock
6102 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6103 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
6104 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6105 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6106 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6107 #: ../fish/guestfish-actions.pod:3342 ../fish/guestfish-actions.pod:3505
6108 #: ../fish/guestfish-actions.pod:3640
6109 msgid ""
6110 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6111 msgstr ""
6112
6113 #. type: =head2
6114 #: ../fish/guestfish-actions.pod:127
6115 msgid "add-drive"
6116 msgstr "add-drive"
6117
6118 #. type: verbatim
6119 #: ../fish/guestfish-actions.pod:129
6120 #, no-wrap
6121 msgid ""
6122 " add-drive filename\n"
6123 "\n"
6124 msgstr ""
6125 " add-drive назва_файла\n"
6126 "\n"
6127
6128 #. type: textblock
6129 #: ../fish/guestfish-actions.pod:131
6130 msgid ""
6131 "This function is the equivalent of calling L</add-drive-opts> with no "
6132 "optional parameters, so the disk is added writable, with the format being "
6133 "detected automatically."
6134 msgstr ""
6135
6136 #. type: textblock
6137 #: ../fish/guestfish-actions.pod:135
6138 msgid ""
6139 "Automatic detection of the format opens you up to a potential security hole "
6140 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6141 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6142 "you should think about replacing calls to this function with calls to L</add-"
6143 "drive-opts>, and specifying the format."
6144 msgstr ""
6145
6146 #. type: =head2
6147 #: ../fish/guestfish-actions.pod:142
6148 msgid "add-drive-opts"
6149 msgstr "add-drive-opts"
6150
6151 #. type: =head2
6152 #: ../fish/guestfish-actions.pod:144
6153 msgid "add"
6154 msgstr "add"
6155
6156 #. type: verbatim
6157 #: ../fish/guestfish-actions.pod:146
6158 #, no-wrap
6159 msgid ""
6160 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
6161 "\n"
6162 msgstr ""
6163
6164 #. type: textblock
6165 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
6166 msgid ""
6167 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6168 "The first time you call this function, the disk appears as C</dev/sda>, the "
6169 "second time as C</dev/sdb>, and so on."
6170 msgstr ""
6171
6172 #. type: textblock
6173 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
6174 msgid ""
6175 "You don't necessarily need to be root when using libguestfs.  However you "
6176 "obviously do need sufficient permissions to access the filename for whatever "
6177 "operations you want to perform (ie. read access if you just want to read the "
6178 "image or write access if you want to modify the image)."
6179 msgstr ""
6180
6181 #. type: textblock
6182 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
6183 msgid "This call checks that C<filename> exists."
6184 msgstr ""
6185
6186 #. type: textblock
6187 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3304
6188 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5114
6189 msgid "The optional arguments are:"
6190 msgstr ""
6191
6192 #. type: =item
6193 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
6194 msgid "C<readonly>"
6195 msgstr "C<readonly>"
6196
6197 #. type: textblock
6198 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
6199 msgid ""
6200 "If true then the image is treated as read-only.  Writes are still allowed, "
6201 "but they are stored in a temporary snapshot overlay which is discarded at "
6202 "the end.  The disk that you add is not modified."
6203 msgstr ""
6204
6205 #. type: =item
6206 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
6207 msgid "C<format>"
6208 msgstr "C<format>"
6209
6210 #. type: textblock
6211 #: ../fish/guestfish-actions.pod:173
6212 msgid ""
6213 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6214 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6215 "include C<raw> and C<qcow2>."
6216 msgstr ""
6217
6218 #. type: textblock
6219 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
6220 msgid ""
6221 "Automatic detection of the format opens you up to a potential security hole "
6222 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6223 "RHBZ#642934.  Specifying the format closes this security hole."
6224 msgstr ""
6225
6226 #. type: =item
6227 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
6228 msgid "C<iface>"
6229 msgstr "C<iface>"
6230
6231 #. type: textblock
6232 #: ../fish/guestfish-actions.pod:184
6233 msgid ""
6234 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6235 "add-drive-with-if> call (q.v.)"
6236 msgstr ""
6237
6238 #. type: =item
6239 #: ../fish/guestfish-actions.pod:187 ../src/guestfs-actions.pod:247
6240 #, fuzzy
6241 #| msgid "C<app_name>"
6242 msgid "C<name>"
6243 msgstr "C<app_name>"
6244
6245 #. type: textblock
6246 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
6247 msgid ""
6248 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6249 "a hint to the guest inspection process if it is available."
6250 msgstr ""
6251
6252 #. type: =head2
6253 #: ../fish/guestfish-actions.pod:196
6254 msgid "add-drive-ro"
6255 msgstr "add-drive-ro"
6256
6257 #. type: =head2
6258 #: ../fish/guestfish-actions.pod:198
6259 msgid "add-ro"
6260 msgstr "add-ro"
6261
6262 #. type: verbatim
6263 #: ../fish/guestfish-actions.pod:200
6264 #, no-wrap
6265 msgid ""
6266 " add-drive-ro filename\n"
6267 "\n"
6268 msgstr ""
6269
6270 #. type: textblock
6271 #: ../fish/guestfish-actions.pod:202
6272 msgid ""
6273 "This function is the equivalent of calling L</add-drive-opts> with the "
6274 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6275 "is added read-only, with the format being detected automatically."
6276 msgstr ""
6277
6278 #. type: =head2
6279 #: ../fish/guestfish-actions.pod:207
6280 msgid "add-drive-ro-with-if"
6281 msgstr ""
6282
6283 #. type: verbatim
6284 #: ../fish/guestfish-actions.pod:209
6285 #, no-wrap
6286 msgid ""
6287 " add-drive-ro-with-if filename iface\n"
6288 "\n"
6289 msgstr ""
6290
6291 #. type: textblock
6292 #: ../fish/guestfish-actions.pod:211
6293 msgid ""
6294 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6295 "interface emulation to use at run time."
6296 msgstr ""
6297
6298 #. type: =head2
6299 #: ../fish/guestfish-actions.pod:221
6300 msgid "add-drive-with-if"
6301 msgstr ""
6302
6303 #. type: verbatim
6304 #: ../fish/guestfish-actions.pod:223
6305 #, no-wrap
6306 msgid ""
6307 " add-drive-with-if filename iface\n"
6308 "\n"
6309 msgstr ""
6310
6311 #. type: textblock
6312 #: ../fish/guestfish-actions.pod:225
6313 msgid ""
6314 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6315 "interface emulation to use at run time."
6316 msgstr ""
6317
6318 #. type: =head2
6319 #: ../fish/guestfish-actions.pod:235
6320 msgid "aug-clear"
6321 msgstr ""
6322
6323 #. type: verbatim
6324 #: ../fish/guestfish-actions.pod:237
6325 #, no-wrap
6326 msgid ""
6327 " aug-clear augpath\n"
6328 "\n"
6329 msgstr ""
6330
6331 #. type: textblock
6332 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
6333 msgid ""
6334 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6335 "L<augtool(1)> C<clear> command."
6336 msgstr ""
6337
6338 #. type: =head2
6339 #: ../fish/guestfish-actions.pod:242
6340 msgid "aug-close"
6341 msgstr ""
6342
6343 #. type: verbatim
6344 #: ../fish/guestfish-actions.pod:244
6345 #, no-wrap
6346 msgid ""
6347 " aug-close\n"
6348 "\n"
6349 msgstr ""
6350
6351 #. type: textblock
6352 #: ../fish/guestfish-actions.pod:246
6353 msgid ""
6354 "Close the current Augeas handle and free up any resources used by it.  After "
6355 "calling this, you have to call L</aug-init> again before you can use any "
6356 "other Augeas functions."
6357 msgstr ""
6358
6359 #. type: =head2
6360 #: ../fish/guestfish-actions.pod:251
6361 msgid "aug-defnode"
6362 msgstr ""
6363
6364 #. type: verbatim
6365 #: ../fish/guestfish-actions.pod:253
6366 #, no-wrap
6367 msgid ""
6368 " aug-defnode name expr val\n"
6369 "\n"
6370 msgstr ""
6371
6372 #. type: textblock
6373 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
6374 msgid ""
6375 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6376 msgstr ""
6377
6378 #. type: textblock
6379 #: ../fish/guestfish-actions.pod:258
6380 msgid ""
6381 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6382 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6383 "containing that single node."
6384 msgstr ""
6385
6386 #. type: textblock
6387 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
6388 msgid ""
6389 "On success this returns a pair containing the number of nodes in the "
6390 "nodeset, and a boolean flag if a node was created."
6391 msgstr ""
6392
6393 #. type: =head2
6394 #: ../fish/guestfish-actions.pod:266
6395 msgid "aug-defvar"
6396 msgstr ""
6397
6398 #. type: verbatim
6399 #: ../fish/guestfish-actions.pod:268
6400 #, no-wrap
6401 msgid ""
6402 " aug-defvar name expr\n"
6403 "\n"
6404 msgstr ""
6405
6406 #. type: textblock
6407 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
6408 msgid ""
6409 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6410 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6411 msgstr ""
6412
6413 #. type: textblock
6414 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
6415 msgid ""
6416 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6417 "evaluates to something which is not a nodeset."
6418 msgstr ""
6419
6420 #. type: =head2
6421 #: ../fish/guestfish-actions.pod:277
6422 msgid "aug-get"
6423 msgstr ""
6424
6425 #. type: verbatim
6426 #: ../fish/guestfish-actions.pod:279
6427 #, no-wrap
6428 msgid ""
6429 " aug-get augpath\n"
6430 "\n"
6431 msgstr ""
6432
6433 #. type: textblock
6434 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
6435 msgid ""
6436 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6437 "node, the C<value> is returned."
6438 msgstr ""
6439
6440 #. type: =head2
6441 #: ../fish/guestfish-actions.pod:284
6442 msgid "aug-init"
6443 msgstr ""
6444
6445 #. type: verbatim
6446 #: ../fish/guestfish-actions.pod:286
6447 #, no-wrap
6448 msgid ""
6449 " aug-init root flags\n"
6450 "\n"
6451 msgstr ""
6452
6453 #. type: textblock
6454 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
6455 msgid ""
6456 "Create a new Augeas handle for editing configuration files.  If there was "
6457 "any previous Augeas handle associated with this guestfs session, then it is "
6458 "closed."
6459 msgstr ""
6460
6461 #. type: textblock
6462 #: ../fish/guestfish-actions.pod:292
6463 msgid "You must call this before using any other L</aug-*> commands."
6464 msgstr ""
6465
6466 #. type: textblock
6467 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
6468 msgid ""
6469 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6470 msgstr ""
6471
6472 #. type: textblock
6473 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
6474 msgid ""
6475 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6476 "logical I<or> of the following integers:"
6477 msgstr ""
6478
6479 #. type: =item
6480 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
6481 msgid "C<AUG_SAVE_BACKUP> = 1"
6482 msgstr "C<AUG_SAVE_BACKUP> = 1"
6483
6484 #. type: textblock
6485 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
6486 msgid "Keep the original file with a C<.augsave> extension."
6487 msgstr ""
6488
6489 #. type: =item
6490 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
6491 msgid "C<AUG_SAVE_NEWFILE> = 2"
6492 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6493
6494 #. type: textblock
6495 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
6496 msgid ""
6497 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6498 "original.  Overrides C<AUG_SAVE_BACKUP>."
6499 msgstr ""
6500
6501 #. type: =item
6502 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
6503 msgid "C<AUG_TYPE_CHECK> = 4"
6504 msgstr "C<AUG_TYPE_CHECK> = 4"
6505
6506 #. type: textblock
6507 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
6508 msgid "Typecheck lenses."
6509 msgstr ""
6510
6511 #. type: textblock
6512 #: ../fish/guestfish-actions.pod:317
6513 msgid ""
6514 "This option is only useful when debugging Augeas lenses.  Use of this option "
6515 "may require additional memory for the libguestfs appliance.  You may need to "
6516 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6517 msgstr ""
6518
6519 #. type: =item
6520 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
6521 msgid "C<AUG_NO_STDINC> = 8"
6522 msgstr "C<AUG_NO_STDINC> = 8"
6523
6524 #. type: textblock
6525 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
6526 msgid "Do not use standard load path for modules."
6527 msgstr ""
6528
6529 #. type: =item
6530 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
6531 msgid "C<AUG_SAVE_NOOP> = 16"
6532 msgstr "C<AUG_SAVE_NOOP> = 16"
6533
6534 #. type: textblock
6535 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
6536 msgid "Make save a no-op, just record what would have been changed."
6537 msgstr ""
6538
6539 #. type: =item
6540 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
6541 msgid "C<AUG_NO_LOAD> = 32"
6542 msgstr "C<AUG_NO_LOAD> = 32"
6543
6544 #. type: textblock
6545 #: ../fish/guestfish-actions.pod:332
6546 msgid "Do not load the tree in L</aug-init>."
6547 msgstr ""
6548
6549 #. type: textblock
6550 #: ../fish/guestfish-actions.pod:336
6551 msgid "To close the handle, you can call L</aug-close>."
6552 msgstr ""
6553
6554 #. type: textblock
6555 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
6556 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6557 msgstr ""
6558
6559 #. type: =head2
6560 #: ../fish/guestfish-actions.pod:340
6561 msgid "aug-insert"
6562 msgstr ""
6563
6564 #. type: verbatim
6565 #: ../fish/guestfish-actions.pod:342
6566 #, no-wrap
6567 msgid ""
6568 " aug-insert augpath label true|false\n"
6569 "\n"
6570 msgstr ""
6571
6572 #. type: textblock
6573 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
6574 msgid ""
6575 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6576 "or after C<path> (depending on the boolean flag C<before>)."
6577 msgstr ""
6578
6579 #. type: textblock
6580 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
6581 msgid ""
6582 "C<path> must match exactly one existing node in the tree, and C<label> must "
6583 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6584 msgstr ""
6585
6586 #. type: =head2
6587 #: ../fish/guestfish-actions.pod:352
6588 msgid "aug-load"
6589 msgstr ""
6590
6591 #. type: verbatim
6592 #: ../fish/guestfish-actions.pod:354
6593 #, no-wrap
6594 msgid ""
6595 " aug-load\n"
6596 "\n"
6597 msgstr ""
6598
6599 #. type: textblock
6600 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
6601 msgid "Load files into the tree."
6602 msgstr "Завантажити файли до ієрархії."
6603
6604 #. type: textblock
6605 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
6606 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6607 msgstr ""
6608
6609 #. type: =head2
6610 #: ../fish/guestfish-actions.pod:361
6611 msgid "aug-ls"
6612 msgstr ""
6613
6614 #. type: verbatim
6615 #: ../fish/guestfish-actions.pod:363
6616 #, no-wrap
6617 msgid ""
6618 " aug-ls augpath\n"
6619 "\n"
6620 msgstr ""
6621
6622 #. type: textblock
6623 #: ../fish/guestfish-actions.pod:365
6624 msgid ""
6625 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6626 "resulting nodes into alphabetical order."
6627 msgstr ""
6628
6629 #. type: =head2
6630 #: ../fish/guestfish-actions.pod:368
6631 msgid "aug-match"
6632 msgstr ""
6633
6634 #. type: verbatim
6635 #: ../fish/guestfish-actions.pod:370
6636 #, no-wrap
6637 msgid ""
6638 " aug-match augpath\n"
6639 "\n"
6640 msgstr ""
6641
6642 #. type: textblock
6643 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
6644 msgid ""
6645 "Returns a list of paths which match the path expression C<path>.  The "
6646 "returned paths are sufficiently qualified so that they match exactly one "
6647 "node in the current tree."
6648 msgstr ""
6649
6650 #. type: =head2
6651 #: ../fish/guestfish-actions.pod:376
6652 msgid "aug-mv"
6653 msgstr ""
6654
6655 #. type: verbatim
6656 #: ../fish/guestfish-actions.pod:378
6657 #, no-wrap
6658 msgid ""
6659 " aug-mv src dest\n"
6660 "\n"
6661 msgstr ""
6662
6663 #. type: textblock
6664 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
6665 msgid ""
6666 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6667 "C<dest> is overwritten if it exists."
6668 msgstr ""
6669
6670 #. type: =head2
6671 #: ../fish/guestfish-actions.pod:383
6672 msgid "aug-rm"
6673 msgstr ""
6674
6675 #. type: verbatim
6676 #: ../fish/guestfish-actions.pod:385
6677 #, no-wrap
6678 msgid ""
6679 " aug-rm augpath\n"
6680 "\n"
6681 msgstr ""
6682
6683 #. type: textblock
6684 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6685 msgid "Remove C<path> and all of its children."
6686 msgstr ""
6687
6688 #. type: textblock
6689 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6690 msgid "On success this returns the number of entries which were removed."
6691 msgstr ""
6692
6693 #. type: =head2
6694 #: ../fish/guestfish-actions.pod:391
6695 msgid "aug-save"
6696 msgstr ""
6697
6698 #. type: verbatim
6699 #: ../fish/guestfish-actions.pod:393
6700 #, no-wrap
6701 msgid ""
6702 " aug-save\n"
6703 "\n"
6704 msgstr ""
6705
6706 #. type: textblock
6707 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6708 msgid "This writes all pending changes to disk."
6709 msgstr ""
6710
6711 #. type: textblock
6712 #: ../fish/guestfish-actions.pod:397
6713 msgid ""
6714 "The flags which were passed to L</aug-init> affect exactly how files are "
6715 "saved."
6716 msgstr ""
6717
6718 #. type: =head2
6719 #: ../fish/guestfish-actions.pod:400
6720 msgid "aug-set"
6721 msgstr ""
6722
6723 #. type: verbatim
6724 #: ../fish/guestfish-actions.pod:402
6725 #, no-wrap
6726 msgid ""
6727 " aug-set augpath val\n"
6728 "\n"
6729 msgstr ""
6730
6731 #. type: textblock
6732 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6733 msgid "Set the value associated with C<path> to C<val>."
6734 msgstr ""
6735
6736 #. type: textblock
6737 #: ../fish/guestfish-actions.pod:406
6738 msgid ""
6739 "In the Augeas API, it is possible to clear a node by setting the value to "
6740 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6741 "this call.  Instead you must use the L</aug-clear> call."
6742 msgstr ""
6743
6744 #. type: =head2
6745 #: ../fish/guestfish-actions.pod:411
6746 msgid "available"
6747 msgstr ""
6748
6749 #. type: verbatim
6750 #: ../fish/guestfish-actions.pod:413
6751 #, no-wrap
6752 msgid ""
6753 " available 'groups ...'\n"
6754 "\n"
6755 msgstr ""
6756
6757 #. type: textblock
6758 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6759 msgid ""
6760 "This command is used to check the availability of some groups of "
6761 "functionality in the appliance, which not all builds of the libguestfs "
6762 "appliance will be able to provide."
6763 msgstr ""
6764
6765 #. type: textblock
6766 #: ../fish/guestfish-actions.pod:419
6767 msgid ""
6768 "The libguestfs groups, and the functions that those groups correspond to, "
6769 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6770 "runtime by calling L</available-all-groups>."
6771 msgstr ""
6772
6773 #. type: textblock
6774 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6775 msgid ""
6776 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6777 "\"]> would check for the availability of the Linux inotify functions and "
6778 "Augeas (configuration file editing) functions."
6779 msgstr ""
6780
6781 #. type: textblock
6782 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6783 msgid "The command returns no error if I<all> requested groups are available."
6784 msgstr ""
6785
6786 #. type: textblock
6787 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6788 msgid ""
6789 "It fails with an error if one or more of the requested groups is unavailable "
6790 "in the appliance."
6791 msgstr ""
6792
6793 #. type: textblock
6794 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6795 msgid ""
6796 "If an unknown group name is included in the list of groups then an error is "
6797 "always returned."
6798 msgstr ""
6799
6800 #. type: textblock
6801 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6802 msgid "I<Notes:>"
6803 msgstr "I<Нотатки:>"
6804
6805 #. type: textblock
6806 #: ../fish/guestfish-actions.pod:443
6807 msgid "You must call L</launch> before calling this function."
6808 msgstr ""
6809
6810 #. type: textblock
6811 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6812 msgid ""
6813 "The reason is because we don't know what groups are supported by the "
6814 "appliance/daemon until it is running and can be queried."
6815 msgstr ""
6816
6817 #. type: textblock
6818 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6819 msgid ""
6820 "If a group of functions is available, this does not necessarily mean that "
6821 "they will work.  You still have to check for errors when calling individual "
6822 "API functions even if they are available."
6823 msgstr ""
6824
6825 #. type: textblock
6826 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6827 msgid ""
6828 "It is usually the job of distro packagers to build complete functionality "
6829 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6830 "with all requirements satisfied, will support everything."
6831 msgstr ""
6832
6833 #. type: textblock
6834 #: ../fish/guestfish-actions.pod:465
6835 msgid ""
6836 "This call was added in version C<1.0.80>.  In previous versions of "
6837 "libguestfs all you could do would be to speculatively execute a command to "
6838 "find out if the daemon implemented it.  See also L</version>."
6839 msgstr ""
6840
6841 #. type: =head2
6842 #: ../fish/guestfish-actions.pod:472
6843 msgid "available-all-groups"
6844 msgstr ""
6845
6846 #. type: verbatim
6847 #: ../fish/guestfish-actions.pod:474
6848 #, no-wrap
6849 msgid ""
6850 " available-all-groups\n"
6851 "\n"
6852 msgstr ""
6853
6854 #. type: textblock
6855 #: ../fish/guestfish-actions.pod:476
6856 msgid ""
6857 "This command returns a list of all optional groups that this daemon knows "
6858 "about.  Note this returns both supported and unsupported groups.  To find "
6859 "out which ones the daemon can actually support you have to call L</"
6860 "available> on each member of the returned list."
6861 msgstr ""
6862
6863 #. type: textblock
6864 #: ../fish/guestfish-actions.pod:482
6865 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6866 msgstr ""
6867
6868 #. type: =head2
6869 #: ../fish/guestfish-actions.pod:484
6870 msgid "base64-in"
6871 msgstr ""
6872
6873 #. type: verbatim
6874 #: ../fish/guestfish-actions.pod:486
6875 #, no-wrap
6876 msgid ""
6877 " base64-in (base64file|-) filename\n"
6878 "\n"
6879 msgstr ""
6880
6881 #. type: textblock
6882 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6883 msgid ""
6884 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6885 msgstr ""
6886
6887 #. type: textblock
6888 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
6889 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
6890 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
6891 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
6892 #: ../fish/guestfish-actions.pod:4882 ../fish/guestfish-actions.pod:4894
6893 #: ../fish/guestfish-actions.pod:4905 ../fish/guestfish-actions.pod:4916
6894 #: ../fish/guestfish-actions.pod:4968 ../fish/guestfish-actions.pod:4977
6895 #: ../fish/guestfish-actions.pod:5031 ../fish/guestfish-actions.pod:5054
6896 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6897 msgstr ""
6898
6899 #. type: =head2
6900 #: ../fish/guestfish-actions.pod:493
6901 msgid "base64-out"
6902 msgstr ""
6903
6904 #. type: verbatim
6905 #: ../fish/guestfish-actions.pod:495
6906 #, no-wrap
6907 msgid ""
6908 " base64-out filename (base64file|-)\n"
6909 "\n"
6910 msgstr ""
6911
6912 #. type: textblock
6913 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
6914 msgid ""
6915 "This command downloads the contents of C<filename>, writing it out to local "
6916 "file C<base64file> encoded as base64."
6917 msgstr ""
6918
6919 #. type: =head2
6920 #: ../fish/guestfish-actions.pod:502
6921 msgid "blockdev-flushbufs"
6922 msgstr ""
6923
6924 #. type: verbatim
6925 #: ../fish/guestfish-actions.pod:504
6926 #, no-wrap
6927 msgid ""
6928 " blockdev-flushbufs device\n"
6929 "\n"
6930 msgstr ""
6931
6932 #. type: textblock
6933 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
6934 msgid ""
6935 "This tells the kernel to flush internal buffers associated with C<device>."
6936 msgstr ""
6937
6938 #. type: textblock
6939 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
6940 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
6941 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
6942 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
6943 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
6944 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
6945 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
6946 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
6947 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
6948 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
6949 msgid "This uses the L<blockdev(8)> command."
6950 msgstr ""
6951
6952 #. type: =head2
6953 #: ../fish/guestfish-actions.pod:511
6954 msgid "blockdev-getbsz"
6955 msgstr ""
6956
6957 #. type: verbatim
6958 #: ../fish/guestfish-actions.pod:513
6959 #, no-wrap
6960 msgid ""
6961 " blockdev-getbsz device\n"
6962 "\n"
6963 msgstr ""
6964
6965 #. type: textblock
6966 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
6967 msgid "This returns the block size of a device."
6968 msgstr ""
6969
6970 #. type: textblock
6971 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
6972 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
6973 msgid ""
6974 "(Note this is different from both I<size in blocks> and I<filesystem block "
6975 "size>)."
6976 msgstr ""
6977
6978 #. type: =head2
6979 #: ../fish/guestfish-actions.pod:522
6980 msgid "blockdev-getro"
6981 msgstr ""
6982
6983 #. type: verbatim
6984 #: ../fish/guestfish-actions.pod:524
6985 #, no-wrap
6986 msgid ""
6987 " blockdev-getro device\n"
6988 "\n"
6989 msgstr ""
6990
6991 #. type: textblock
6992 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
6993 msgid ""
6994 "Returns a boolean indicating if the block device is read-only (true if read-"
6995 "only, false if not)."
6996 msgstr ""
6997
6998 #. type: =head2
6999 #: ../fish/guestfish-actions.pod:531
7000 msgid "blockdev-getsize64"
7001 msgstr ""
7002
7003 #. type: verbatim
7004 #: ../fish/guestfish-actions.pod:533
7005 #, no-wrap
7006 msgid ""
7007 " blockdev-getsize64 device\n"
7008 "\n"
7009 msgstr ""
7010
7011 #. type: textblock
7012 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7013 msgid "This returns the size of the device in bytes."
7014 msgstr ""
7015
7016 #. type: textblock
7017 #: ../fish/guestfish-actions.pod:537
7018 msgid "See also L</blockdev-getsz>."
7019 msgstr "Див. також L</blockdev-getsz>."
7020
7021 #. type: =head2
7022 #: ../fish/guestfish-actions.pod:541
7023 msgid "blockdev-getss"
7024 msgstr ""
7025
7026 #. type: verbatim
7027 #: ../fish/guestfish-actions.pod:543
7028 #, no-wrap
7029 msgid ""
7030 " blockdev-getss device\n"
7031 "\n"
7032 msgstr ""
7033
7034 #. type: textblock
7035 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7036 msgid ""
7037 "This returns the size of sectors on a block device.  Usually 512, but can be "
7038 "larger for modern devices."
7039 msgstr ""
7040
7041 #. type: textblock
7042 #: ../fish/guestfish-actions.pod:548
7043 msgid ""
7044 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7045 msgstr ""
7046
7047 #. type: =head2
7048 #: ../fish/guestfish-actions.pod:553
7049 msgid "blockdev-getsz"
7050 msgstr ""
7051
7052 #. type: verbatim
7053 #: ../fish/guestfish-actions.pod:555
7054 #, no-wrap
7055 msgid ""
7056 " blockdev-getsz device\n"
7057 "\n"
7058 msgstr ""
7059
7060 #. type: textblock
7061 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7062 msgid ""
7063 "This returns the size of the device in units of 512-byte sectors (even if "
7064 "the sectorsize isn't 512 bytes ... weird)."
7065 msgstr ""
7066
7067 #. type: textblock
7068 #: ../fish/guestfish-actions.pod:560
7069 msgid ""
7070 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7071 "blockdev-getsize64> for the more useful I<size in bytes>."
7072 msgstr ""
7073
7074 #. type: =head2
7075 #: ../fish/guestfish-actions.pod:566
7076 msgid "blockdev-rereadpt"
7077 msgstr ""
7078
7079 #. type: verbatim
7080 #: ../fish/guestfish-actions.pod:568
7081 #, no-wrap
7082 msgid ""
7083 " blockdev-rereadpt device\n"
7084 "\n"
7085 msgstr ""
7086
7087 #. type: textblock
7088 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7089 msgid "Reread the partition table on C<device>."
7090 msgstr ""
7091
7092 #. type: =head2
7093 #: ../fish/guestfish-actions.pod:574
7094 msgid "blockdev-setbsz"
7095 msgstr ""
7096
7097 #. type: verbatim
7098 #: ../fish/guestfish-actions.pod:576
7099 #, no-wrap
7100 msgid ""
7101 " blockdev-setbsz device blocksize\n"
7102 "\n"
7103 msgstr ""
7104
7105 #. type: textblock
7106 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7107 msgid "This sets the block size of a device."
7108 msgstr ""
7109
7110 #. type: =head2
7111 #: ../fish/guestfish-actions.pod:585
7112 msgid "blockdev-setro"
7113 msgstr ""
7114
7115 #. type: verbatim
7116 #: ../fish/guestfish-actions.pod:587
7117 #, no-wrap
7118 msgid ""
7119 " blockdev-setro device\n"
7120 "\n"
7121 msgstr ""
7122
7123 #. type: textblock
7124 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
7125 msgid "Sets the block device named C<device> to read-only."
7126 msgstr ""
7127
7128 #. type: =head2
7129 #: ../fish/guestfish-actions.pod:593
7130 msgid "blockdev-setrw"
7131 msgstr ""
7132
7133 #. type: verbatim
7134 #: ../fish/guestfish-actions.pod:595
7135 #, no-wrap
7136 msgid ""
7137 " blockdev-setrw device\n"
7138 "\n"
7139 msgstr ""
7140
7141 #. type: textblock
7142 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
7143 msgid "Sets the block device named C<device> to read-write."
7144 msgstr ""
7145
7146 #. type: =head2
7147 #: ../fish/guestfish-actions.pod:601
7148 msgid "btrfs-filesystem-resize"
7149 msgstr ""
7150
7151 #. type: verbatim
7152 #: ../fish/guestfish-actions.pod:603
7153 #, no-wrap
7154 msgid ""
7155 " btrfs-filesystem-resize mountpoint [size:..]\n"
7156 "\n"
7157 msgstr ""
7158
7159 #. type: textblock
7160 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
7161 msgid "This command resizes a btrfs filesystem."
7162 msgstr ""
7163
7164 #. type: textblock
7165 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
7166 msgid ""
7167 "Note that unlike other resize calls, the filesystem has to be mounted and "
7168 "the parameter is the mountpoint not the device (this is a requirement of "
7169 "btrfs itself)."
7170 msgstr ""
7171
7172 #. type: textblock
7173 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3615
7174 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:5638
7175 msgid "The optional parameters are:"
7176 msgstr ""
7177
7178 #. type: =item
7179 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3619
7180 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5642
7181 msgid "C<size>"
7182 msgstr "C<розмір>"
7183
7184 #. type: textblock
7185 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
7186 msgid ""
7187 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7188 "resized to the maximum size."
7189 msgstr ""
7190
7191 #. type: textblock
7192 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
7193 msgid "See also L<btrfs(8)>."
7194 msgstr "Див. також L<btrfs(8)>."
7195
7196 #. type: =head2
7197 #: ../fish/guestfish-actions.pod:626
7198 msgid "case-sensitive-path"
7199 msgstr ""
7200
7201 #. type: verbatim
7202 #: ../fish/guestfish-actions.pod:628
7203 #, no-wrap
7204 msgid ""
7205 " case-sensitive-path path\n"
7206 "\n"
7207 msgstr ""
7208
7209 #. type: textblock
7210 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
7211 msgid ""
7212 "This can be used to resolve case insensitive paths on a filesystem which is "
7213 "case sensitive.  The use case is to resolve paths which you have read from "
7214 "Windows configuration files or the Windows Registry, to the true path."
7215 msgstr ""
7216
7217 #. type: textblock
7218 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
7219 msgid ""
7220 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7221 "(and probably others), which is that although the underlying filesystem is "
7222 "case-insensitive, the driver exports the filesystem to Linux as case-"
7223 "sensitive."
7224 msgstr ""
7225
7226 #. type: textblock
7227 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
7228 msgid ""
7229 "One consequence of this is that special directories such as C<c:\\windows> "
7230 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7231 "precise details of how they were created.  In Windows itself this would not "
7232 "be a problem."
7233 msgstr ""
7234
7235 #. type: textblock
7236 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
7237 msgid ""
7238 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7239 "#posixfilenames1>"
7240 msgstr ""
7241
7242 #. type: textblock
7243 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
7244 msgid ""
7245 "This function resolves the true case of each element in the path and returns "
7246 "the case-sensitive path."
7247 msgstr ""
7248
7249 #. type: textblock
7250 #: ../fish/guestfish-actions.pod:652
7251 msgid ""
7252 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7253 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7254 "the directories were originally created under Windows)."
7255 msgstr ""
7256
7257 #. type: textblock
7258 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
7259 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7260 msgstr ""
7261
7262 #. type: textblock
7263 #: ../fish/guestfish-actions.pod:660
7264 msgid "See also L</realpath>."
7265 msgstr "Див. також L</realpath>."
7266
7267 #. type: =head2
7268 #: ../fish/guestfish-actions.pod:662
7269 msgid "cat"
7270 msgstr "cat"
7271
7272 #. type: verbatim
7273 #: ../fish/guestfish-actions.pod:664
7274 #, no-wrap
7275 msgid ""
7276 " cat path\n"
7277 "\n"
7278 msgstr ""
7279 " cat шлях\n"
7280 "\n"
7281
7282 #. type: textblock
7283 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4049
7284 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6299
7285 msgid "Return the contents of the file named C<path>."
7286 msgstr ""
7287
7288 #. type: textblock
7289 #: ../fish/guestfish-actions.pod:668
7290 msgid ""
7291 "Note that this function cannot correctly handle binary files (specifically, "
7292 "files containing C<\\0> character which is treated as end of string).  For "
7293 "those you need to use the L</read-file> or L</download> functions which have "
7294 "a more complex interface."
7295 msgstr ""
7296
7297 #. type: textblock
7298 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
7299 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
7300 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
7301 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
7302 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
7303 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
7304 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
7305 #: ../fish/guestfish-actions.pod:3919 ../fish/guestfish-actions.pod:3934
7306 #: ../fish/guestfish-actions.pod:4010 ../fish/guestfish-actions.pod:4027
7307 #: ../fish/guestfish-actions.pod:4042 ../fish/guestfish-actions.pod:4723
7308 #: ../fish/guestfish-actions.pod:4769 ../fish/guestfish-actions.pod:4854
7309 #: ../fish/guestfish-actions.pod:4869 ../fish/guestfish-actions.pod:5275
7310 #: ../fish/guestfish-actions.pod:5287 ../fish/guestfish-actions.pod:5305
7311 #: ../fish/guestfish-actions.pod:5322 ../fish/guestfish-actions.pod:5332
7312 #: ../fish/guestfish-actions.pod:5389 ../fish/guestfish-actions.pod:5399
7313 #: ../fish/guestfish-actions.pod:5428 ../fish/guestfish-actions.pod:5438
7314 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
7315 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1847
7316 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:1969
7317 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2234
7318 #: ../src/guestfs-actions.pod:2716 ../src/guestfs-actions.pod:2735
7319 #: ../src/guestfs-actions.pod:2800 ../src/guestfs-actions.pod:2824
7320 #: ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2870
7321 #: ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6107
7322 #: ../src/guestfs-actions.pod:6238 ../src/guestfs-actions.pod:6264
7323 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:7255
7324 #: ../src/guestfs-actions.pod:7310 ../src/guestfs-actions.pod:7456
7325 #: ../src/guestfs-actions.pod:7480 ../src/guestfs-actions.pod:8145
7326 #: ../src/guestfs-actions.pod:8165 ../src/guestfs-actions.pod:8198
7327 #: ../src/guestfs-actions.pod:8217 ../src/guestfs-actions.pod:8236
7328 #: ../src/guestfs-actions.pod:8330 ../src/guestfs-actions.pod:8349
7329 #: ../src/guestfs-actions.pod:8395 ../src/guestfs-actions.pod:8414
7330 msgid ""
7331 "Because of the message protocol, there is a transfer limit of somewhere "
7332 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7333 msgstr ""
7334
7335 #. type: =head2
7336 #: ../fish/guestfish-actions.pod:676
7337 msgid "checksum"
7338 msgstr "checksum"
7339
7340 #. type: verbatim
7341 #: ../fish/guestfish-actions.pod:678
7342 #, no-wrap
7343 msgid ""
7344 " checksum csumtype path\n"
7345 "\n"
7346 msgstr ""
7347
7348 #. type: textblock
7349 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
7350 msgid ""
7351 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7352 msgstr ""
7353
7354 #. type: textblock
7355 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
7356 msgid ""
7357 "The type of checksum to compute is given by the C<csumtype> parameter which "
7358 "must have one of the following values:"
7359 msgstr ""
7360
7361 #. type: =item
7362 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
7363 msgid "C<crc>"
7364 msgstr "C<crc>"
7365
7366 #. type: textblock
7367 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
7368 msgid ""
7369 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7370 "C<cksum> command."
7371 msgstr ""
7372
7373 #. type: =item
7374 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
7375 msgid "C<md5>"
7376 msgstr "C<md5>"
7377
7378 #. type: textblock
7379 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
7380 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7381 msgstr ""
7382
7383 #. type: =item
7384 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
7385 msgid "C<sha1>"
7386 msgstr "C<sha1>"
7387
7388 #. type: textblock
7389 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
7390 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7391 msgstr ""
7392
7393 #. type: =item
7394 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
7395 msgid "C<sha224>"
7396 msgstr "C<sha224>"
7397
7398 #. type: textblock
7399 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
7400 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7401 msgstr ""
7402
7403 #. type: =item
7404 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
7405 msgid "C<sha256>"
7406 msgstr "C<sha256>"
7407
7408 #. type: textblock
7409 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
7410 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7411 msgstr ""
7412
7413 #. type: =item
7414 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
7415 msgid "C<sha384>"
7416 msgstr "C<sha384>"
7417
7418 #. type: textblock
7419 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
7420 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7421 msgstr ""
7422
7423 #. type: =item
7424 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
7425 msgid "C<sha512>"
7426 msgstr "C<sha512>"
7427
7428 #. type: textblock
7429 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
7430 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7431 msgstr ""
7432
7433 #. type: textblock
7434 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
7435 msgid "The checksum is returned as a printable string."
7436 msgstr ""
7437
7438 #. type: textblock
7439 #: ../fish/guestfish-actions.pod:721
7440 msgid "To get the checksum for a device, use L</checksum-device>."
7441 msgstr ""
7442
7443 #. type: textblock
7444 #: ../fish/guestfish-actions.pod:723
7445 msgid "To get the checksums for many files, use L</checksums-out>."
7446 msgstr ""
7447
7448 #. type: =head2
7449 #: ../fish/guestfish-actions.pod:725
7450 msgid "checksum-device"
7451 msgstr "checksum-device"
7452
7453 #. type: verbatim
7454 #: ../fish/guestfish-actions.pod:727
7455 #, no-wrap
7456 msgid ""
7457 " checksum-device csumtype device\n"
7458 "\n"
7459 msgstr ""
7460
7461 #. type: textblock
7462 #: ../fish/guestfish-actions.pod:729
7463 msgid ""
7464 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7465 "device named C<device>.  For the types of checksums supported see the L</"
7466 "checksum> command."
7467 msgstr ""
7468
7469 #. type: =head2
7470 #: ../fish/guestfish-actions.pod:733
7471 msgid "checksums-out"
7472 msgstr ""
7473
7474 #. type: verbatim
7475 #: ../fish/guestfish-actions.pod:735
7476 #, no-wrap
7477 msgid ""
7478 " checksums-out csumtype directory (sumsfile|-)\n"
7479 "\n"
7480 msgstr ""
7481
7482 #. type: textblock
7483 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
7484 msgid ""
7485 "This command computes the checksums of all regular files in C<directory> and "
7486 "then emits a list of those checksums to the local output file C<sumsfile>."
7487 msgstr ""
7488
7489 #. type: textblock
7490 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
7491 msgid ""
7492 "This can be used for verifying the integrity of a virtual machine.  However "
7493 "to be properly secure you should pay attention to the output of the checksum "
7494 "command (it uses the ones from GNU coreutils).  In particular when the "
7495 "filename is not printable, coreutils uses a special backslash syntax.  For "
7496 "more information, see the GNU coreutils info file."
7497 msgstr ""
7498
7499 #. type: =head2
7500 #: ../fish/guestfish-actions.pod:751
7501 msgid "chmod"
7502 msgstr "chmod"
7503
7504 #. type: verbatim
7505 #: ../fish/guestfish-actions.pod:753
7506 #, no-wrap
7507 msgid ""
7508 " chmod mode path\n"
7509 "\n"
7510 msgstr ""
7511
7512 #. type: textblock
7513 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
7514 msgid ""
7515 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7516 "supported."
7517 msgstr ""
7518
7519 #. type: textblock
7520 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
7521 msgid ""
7522 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7523 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7524 "C<700>."
7525 msgstr ""
7526
7527 #. type: textblock
7528 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3268
7529 #: ../fish/guestfish-actions.pod:3407 ../fish/guestfish-actions.pod:3417
7530 #: ../fish/guestfish-actions.pod:3427 ../src/guestfs-actions.pod:1117
7531 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5254
7532 #: ../src/guestfs-actions.pod:5273 ../src/guestfs-actions.pod:5292
7533 msgid "The mode actually set is affected by the umask."
7534 msgstr ""
7535
7536 #. type: =head2
7537 #: ../fish/guestfish-actions.pod:764
7538 msgid "chown"
7539 msgstr "chown"
7540
7541 #. type: verbatim
7542 #: ../fish/guestfish-actions.pod:766
7543 #, no-wrap
7544 msgid ""
7545 " chown owner group path\n"
7546 "\n"
7547 msgstr ""
7548
7549 #. type: textblock
7550 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
7551 msgid "Change the file owner to C<owner> and group to C<group>."
7552 msgstr ""
7553
7554 #. type: textblock
7555 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703
7556 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4116
7557 msgid ""
7558 "Only numeric uid and gid are supported.  If you want to use names, you will "
7559 "need to locate and parse the password file yourself (Augeas support makes "
7560 "this relatively easy)."
7561 msgstr ""
7562
7563 #. type: =head2
7564 #: ../fish/guestfish-actions.pod:774
7565 msgid "command"
7566 msgstr "command"
7567
7568 #. type: verbatim
7569 #: ../fish/guestfish-actions.pod:776
7570 #, no-wrap
7571 msgid ""
7572 " command 'arguments ...'\n"
7573 "\n"
7574 msgstr ""
7575 " command 'параметри...'\n"
7576 "\n"
7577
7578 #. type: textblock
7579 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
7580 msgid ""
7581 "This call runs a command from the guest filesystem.  The filesystem must be "
7582 "mounted, and must contain a compatible operating system (ie. something "
7583 "Linux, with the same or compatible processor architecture)."
7584 msgstr ""
7585
7586 #. type: textblock
7587 #: ../fish/guestfish-actions.pod:783
7588 msgid ""
7589 "The single parameter is an argv-style list of arguments.  The first element "
7590 "is the name of the program to run.  Subsequent elements are parameters.  The "
7591 "list must be non-empty (ie. must contain a program name).  Note that the "
7592 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7593 msgstr ""
7594
7595 #. type: textblock
7596 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
7597 msgid "The return value is anything printed to I<stdout> by the command."
7598 msgstr ""
7599
7600 #. type: textblock
7601 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
7602 msgid ""
7603 "If the command returns a non-zero exit status, then this function returns an "
7604 "error message.  The error message string is the content of I<stderr> from "
7605 "the command."
7606 msgstr ""
7607
7608 #. type: textblock
7609 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
7610 msgid ""
7611 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7612 "bin>.  If you require a program from another location, you should provide "
7613 "the full path in the first parameter."
7614 msgstr ""
7615
7616 #. type: textblock
7617 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
7618 msgid ""
7619 "Shared libraries and data files required by the program must be available on "
7620 "filesystems which are mounted in the correct places.  It is the caller's "
7621 "responsibility to ensure all filesystems that are needed are mounted at the "
7622 "right locations."
7623 msgstr ""
7624
7625 #. type: =head2
7626 #: ../fish/guestfish-actions.pod:811
7627 msgid "command-lines"
7628 msgstr ""
7629
7630 #. type: verbatim
7631 #: ../fish/guestfish-actions.pod:813
7632 #, no-wrap
7633 msgid ""
7634 " command-lines 'arguments ...'\n"
7635 "\n"
7636 msgstr ""
7637
7638 #. type: textblock
7639 #: ../fish/guestfish-actions.pod:815
7640 msgid ""
7641 "This is the same as L</command>, but splits the result into a list of lines."
7642 msgstr ""
7643
7644 #. type: textblock
7645 #: ../fish/guestfish-actions.pod:818
7646 msgid "See also: L</sh-lines>"
7647 msgstr "Див. також L</sh-lines>"
7648
7649 #. type: =head2
7650 #: ../fish/guestfish-actions.pod:823
7651 msgid "compress-device-out"
7652 msgstr ""
7653
7654 #. type: verbatim
7655 #: ../fish/guestfish-actions.pod:825
7656 #, no-wrap
7657 msgid ""
7658 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7659 "\n"
7660 msgstr ""
7661
7662 #. type: textblock
7663 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
7664 msgid ""
7665 "This command compresses C<device> and writes it out to the local file "
7666 "C<zdevice>."
7667 msgstr ""
7668
7669 #. type: textblock
7670 #: ../fish/guestfish-actions.pod:830
7671 msgid ""
7672 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7673 "compress-out>."
7674 msgstr ""
7675
7676 #. type: =head2
7677 #: ../fish/guestfish-actions.pod:837
7678 msgid "compress-out"
7679 msgstr ""
7680
7681 #. type: verbatim
7682 #: ../fish/guestfish-actions.pod:839
7683 #, no-wrap
7684 msgid ""
7685 " compress-out ctype file (zfile|-) [level:..]\n"
7686 "\n"
7687 msgstr ""
7688
7689 #. type: textblock
7690 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
7691 msgid ""
7692 "This command compresses C<file> and writes it out to the local file C<zfile>."
7693 msgstr ""
7694
7695 #. type: textblock
7696 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
7697 msgid ""
7698 "The compression program used is controlled by the C<ctype> parameter.  "
7699 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7700 "Some compression types may not be supported by particular builds of "
7701 "libguestfs, in which case you will get an error containing the substring "
7702 "\"not supported\"."
7703 msgstr ""
7704
7705 #. type: textblock
7706 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
7707 msgid ""
7708 "The optional C<level> parameter controls compression level.  The meaning and "
7709 "default for this parameter depends on the compression program being used."
7710 msgstr ""
7711
7712 #. type: =head2
7713 #: ../fish/guestfish-actions.pod:858
7714 msgid "config"
7715 msgstr ""
7716
7717 #. type: verbatim
7718 #: ../fish/guestfish-actions.pod:860
7719 #, no-wrap
7720 msgid ""
7721 " config qemuparam qemuvalue\n"
7722 "\n"
7723 msgstr ""
7724
7725 #. type: textblock
7726 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
7727 msgid ""
7728 "This can be used to add arbitrary qemu command line parameters of the form "
7729 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7730 "setting some parameters which would interfere with parameters that we use."
7731 msgstr ""
7732
7733 #. type: textblock
7734 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7735 msgid "The first character of C<param> string must be a C<-> (dash)."
7736 msgstr ""
7737
7738 #. type: textblock
7739 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7740 msgid "C<value> can be NULL."
7741 msgstr ""
7742
7743 #. type: =head2
7744 #: ../fish/guestfish-actions.pod:871
7745 #, fuzzy
7746 #| msgid ""
7747 #| " zero-device device\n"
7748 #| "\n"
7749 msgid "copy-device-to-device"
7750 msgstr ""
7751 " zero-device пристрій\n"
7752 "\n"
7753
7754 #. type: verbatim
7755 #: ../fish/guestfish-actions.pod:873
7756 #, no-wrap
7757 msgid ""
7758 " copy-device-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7759 "\n"
7760 msgstr ""
7761
7762 #. type: textblock
7763 #: ../fish/guestfish-actions.pod:875
7764 msgid ""
7765 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
7766 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
7767 "(device|file) to a destination (device|file)."
7768 msgstr ""
7769
7770 #. type: textblock
7771 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7772 msgid ""
7773 "Partial copies can be made since you can specify optionally the source "
7774 "offset, destination offset and size to copy.  These values are all specified "
7775 "in bytes.  If not given, the offsets both default to zero, and the size "
7776 "defaults to copying as much as possible until we hit the end of the source."
7777 msgstr ""
7778
7779 #. type: textblock
7780 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7781 msgid ""
7782 "The source and destination may be the same object.  However overlapping "
7783 "regions may not be copied correctly."
7784 msgstr ""
7785
7786 #. type: textblock
7787 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7788 msgid ""
7789 "If the destination is a file, it is created if required.  If the destination "
7790 "file is not large enough, it is extended."
7791 msgstr ""
7792
7793 #. type: =head2
7794 #: ../fish/guestfish-actions.pod:896
7795 msgid "copy-device-to-file"
7796 msgstr ""
7797
7798 #. type: verbatim
7799 #: ../fish/guestfish-actions.pod:898
7800 #, no-wrap
7801 msgid ""
7802 " copy-device-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7803 "\n"
7804 msgstr ""
7805
7806 #. type: textblock
7807 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
7808 #: ../fish/guestfish-actions.pod:918
7809 msgid "See L</copy-device-to-device> for a general overview of this call."
7810 msgstr ""
7811
7812 #. type: =head2
7813 #: ../fish/guestfish-actions.pod:905
7814 #, fuzzy
7815 #| msgid "pwrite-device"
7816 msgid "copy-file-to-device"
7817 msgstr "pwrite-device"
7818
7819 #. type: verbatim
7820 #: ../fish/guestfish-actions.pod:907
7821 #, no-wrap
7822 msgid ""
7823 " copy-file-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7824 "\n"
7825 msgstr ""
7826
7827 #. type: =head2
7828 #: ../fish/guestfish-actions.pod:914
7829 msgid "copy-file-to-file"
7830 msgstr ""
7831
7832 #. type: verbatim
7833 #: ../fish/guestfish-actions.pod:916
7834 #, no-wrap
7835 msgid ""
7836 " copy-file-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7837 "\n"
7838 msgstr ""
7839
7840 #. type: textblock
7841 #: ../fish/guestfish-actions.pod:921
7842 msgid ""
7843 "This is B<not> the function you want for copying files.  This is for copying "
7844 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7845 "file copying and moving functions."
7846 msgstr ""
7847
7848 #. type: =head2
7849 #: ../fish/guestfish-actions.pod:928
7850 msgid "copy-size"
7851 msgstr ""
7852
7853 #. type: verbatim
7854 #: ../fish/guestfish-actions.pod:930
7855 #, no-wrap
7856 msgid ""
7857 " copy-size src dest size\n"
7858 "\n"
7859 msgstr ""
7860
7861 #. type: textblock
7862 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1576
7863 msgid ""
7864 "This command copies exactly C<size> bytes from one source device or file "
7865 "C<src> to another destination device or file C<dest>."
7866 msgstr ""
7867
7868 #. type: textblock
7869 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1579
7870 msgid ""
7871 "Note this will fail if the source is too short or if the destination is not "
7872 "large enough."
7873 msgstr ""
7874
7875 #. type: textblock
7876 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7877 msgid ""
7878 "I<This function is deprecated.> In new code, use the L</"
7879 "copy_device_to_device> call instead."
7880 msgstr ""
7881
7882 #. type: =head2
7883 #: ../fish/guestfish-actions.pod:945
7884 msgid "cp"
7885 msgstr "cp"
7886
7887 #. type: verbatim
7888 #: ../fish/guestfish-actions.pod:947
7889 #, no-wrap
7890 msgid ""
7891 " cp src dest\n"
7892 "\n"
7893 msgstr ""
7894
7895 #. type: textblock
7896 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1598
7897 msgid ""
7898 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7899 "destination filename or destination directory."
7900 msgstr ""
7901
7902 #. type: =head2
7903 #: ../fish/guestfish-actions.pod:952
7904 msgid "cp-a"
7905 msgstr "cp-a"
7906
7907 #. type: verbatim
7908 #: ../fish/guestfish-actions.pod:954
7909 #, no-wrap
7910 msgid ""
7911 " cp-a src dest\n"
7912 "\n"
7913 msgstr ""
7914
7915 #. type: textblock
7916 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1612
7917 msgid ""
7918 "This copies a file or directory from C<src> to C<dest> recursively using the "
7919 "C<cp -a> command."
7920 msgstr ""
7921
7922 #. type: =head2
7923 #: ../fish/guestfish-actions.pod:959
7924 msgid "dd"
7925 msgstr "dd"
7926
7927 #. type: verbatim
7928 #: ../fish/guestfish-actions.pod:961
7929 #, no-wrap
7930 msgid ""
7931 " dd src dest\n"
7932 "\n"
7933 msgstr ""
7934
7935 #. type: textblock
7936 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1633
7937 msgid ""
7938 "This command copies from one source device or file C<src> to another "
7939 "destination device or file C<dest>.  Normally you would use this to copy to "
7940 "or from a device or partition, for example to duplicate a filesystem."
7941 msgstr ""
7942
7943 #. type: textblock
7944 #: ../fish/guestfish-actions.pod:968
7945 msgid ""
7946 "If the destination is a device, it must be as large or larger than the "
7947 "source file or device, otherwise the copy will fail.  This command cannot do "
7948 "partial copies (see L</copy-device-to-device>)."
7949 msgstr ""
7950
7951 #. type: =head2
7952 #: ../fish/guestfish-actions.pod:980
7953 msgid "df"
7954 msgstr "df"
7955
7956 #. type: verbatim
7957 #: ../fish/guestfish-actions.pod:982
7958 #, no-wrap
7959 msgid ""
7960 " df\n"
7961 "\n"
7962 msgstr ""
7963 " df\n"
7964 "\n"
7965
7966 #. type: textblock
7967 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1652
7968 msgid "This command runs the C<df> command to report disk space used."
7969 msgstr ""
7970
7971 #. type: textblock
7972 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
7973 msgid ""
7974 "This command is mostly useful for interactive sessions.  It is I<not> "
7975 "intended that you try to parse the output string.  Use L</statvfs> from "
7976 "programs."
7977 msgstr ""
7978
7979 #. type: =head2
7980 #: ../fish/guestfish-actions.pod:990
7981 msgid "df-h"
7982 msgstr "df-h"
7983
7984 #. type: verbatim
7985 #: ../fish/guestfish-actions.pod:992
7986 #, no-wrap
7987 msgid ""
7988 " df-h\n"
7989 "\n"
7990 msgstr ""
7991 " df-h\n"
7992 "\n"
7993
7994 #. type: textblock
7995 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1668
7996 msgid ""
7997 "This command runs the C<df -h> command to report disk space used in human-"
7998 "readable format."
7999 msgstr ""
8000
8001 #. type: =head2
8002 #: ../fish/guestfish-actions.pod:1001
8003 msgid "dmesg"
8004 msgstr "dmesg"
8005
8006 #. type: verbatim
8007 #: ../fish/guestfish-actions.pod:1003
8008 #, no-wrap
8009 msgid ""
8010 " dmesg\n"
8011 "\n"
8012 msgstr ""
8013 " dmesg\n"
8014 "\n"
8015
8016 #. type: textblock
8017 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1685
8018 msgid ""
8019 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8020 "This is sometimes useful for extended debugging of problems."
8021 msgstr ""
8022
8023 #. type: textblock
8024 #: ../fish/guestfish-actions.pod:1009
8025 msgid ""
8026 "Another way to get the same information is to enable verbose messages with "
8027 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8028 "before running the program."
8029 msgstr ""
8030
8031 #. type: =head2
8032 #: ../fish/guestfish-actions.pod:1014
8033 msgid "download"
8034 msgstr "download"
8035
8036 #. type: verbatim
8037 #: ../fish/guestfish-actions.pod:1016
8038 #, no-wrap
8039 msgid ""
8040 " download remotefilename (filename|-)\n"
8041 "\n"
8042 msgstr ""
8043
8044 #. type: textblock
8045 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
8046 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:1731
8047 msgid ""
8048 "Download file C<remotefilename> and save it as C<filename> on the local "
8049 "machine."
8050 msgstr ""
8051
8052 #. type: textblock
8053 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5027
8054 #: ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:7715
8055 msgid "C<filename> can also be a named pipe."
8056 msgstr ""
8057
8058 #. type: textblock
8059 #: ../fish/guestfish-actions.pod:1023
8060 msgid "See also L</upload>, L</cat>."
8061 msgstr ""
8062
8063 #. type: =head2
8064 #: ../fish/guestfish-actions.pod:1027
8065 msgid "download-offset"
8066 msgstr "download-offset"
8067
8068 #. type: verbatim
8069 #: ../fish/guestfish-actions.pod:1029
8070 #, no-wrap
8071 msgid ""
8072 " download-offset remotefilename (filename|-) offset size\n"
8073 "\n"
8074 msgstr ""
8075
8076 #. type: textblock
8077 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1734
8078 msgid ""
8079 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8080 "region must be within the file or device)."
8081 msgstr ""
8082
8083 #. type: textblock
8084 #: ../fish/guestfish-actions.pod:1037
8085 msgid ""
8086 "Note that there is no limit on the amount of data that can be downloaded "
8087 "with this call, unlike with L</pread>, and this call always reads the full "
8088 "amount unless an error occurs."
8089 msgstr ""
8090
8091 #. type: textblock
8092 #: ../fish/guestfish-actions.pod:1042
8093 msgid "See also L</download>, L</pread>."
8094 msgstr ""
8095
8096 #. type: =head2
8097 #: ../fish/guestfish-actions.pod:1046
8098 msgid "drop-caches"
8099 msgstr ""
8100
8101 #. type: verbatim
8102 #: ../fish/guestfish-actions.pod:1048
8103 #, no-wrap
8104 msgid ""
8105 " drop-caches whattodrop\n"
8106 "\n"
8107 msgstr ""
8108
8109 #. type: textblock
8110 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1759
8111 msgid ""
8112 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8113 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8114 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8115 msgstr ""
8116
8117 #. type: textblock
8118 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1764
8119 msgid "Setting C<whattodrop> to 3 should drop everything."
8120 msgstr ""
8121
8122 #. type: textblock
8123 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1766
8124 msgid ""
8125 "This automatically calls L<sync(2)> before the operation, so that the "
8126 "maximum guest memory is freed."
8127 msgstr ""
8128
8129 #. type: =head2
8130 #: ../fish/guestfish-actions.pod:1060
8131 msgid "du"
8132 msgstr "du"
8133
8134 #. type: verbatim
8135 #: ../fish/guestfish-actions.pod:1062
8136 #, no-wrap
8137 msgid ""
8138 " du path\n"
8139 "\n"
8140 msgstr ""
8141 " du шлях\n"
8142 "\n"
8143
8144 #. type: textblock
8145 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1779
8146 msgid ""
8147 "This command runs the C<du -s> command to estimate file space usage for "
8148 "C<path>."
8149 msgstr ""
8150
8151 #. type: textblock
8152 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1782
8153 msgid ""
8154 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8155 "estimate includes the contents of the directory and all subdirectories "
8156 "(recursively)."
8157 msgstr ""
8158
8159 #. type: textblock
8160 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1786
8161 msgid ""
8162 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8163 msgstr ""
8164
8165 #. type: =head2
8166 #: ../fish/guestfish-actions.pod:1074
8167 msgid "e2fsck-f"
8168 msgstr "e2fsck-f"
8169
8170 #. type: verbatim
8171 #: ../fish/guestfish-actions.pod:1076
8172 #, no-wrap
8173 msgid ""
8174 " e2fsck-f device\n"
8175 "\n"
8176 msgstr ""
8177
8178 #. type: textblock
8179 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1804
8180 msgid ""
8181 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8182 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8183 "clean (I<-f>)."
8184 msgstr ""
8185
8186 #. type: textblock
8187 #: ../fish/guestfish-actions.pod:1082
8188 msgid ""
8189 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8190 "should use L</fsck>."
8191 msgstr ""
8192
8193 #. type: =head2
8194 #: ../fish/guestfish-actions.pod:1085
8195 msgid "echo-daemon"
8196 msgstr ""
8197
8198 #. type: verbatim
8199 #: ../fish/guestfish-actions.pod:1087
8200 #, no-wrap
8201 msgid ""
8202 " echo-daemon 'words ...'\n"
8203 "\n"
8204 msgstr ""
8205
8206 #. type: textblock
8207 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1821
8208 msgid ""
8209 "This command concatenates the list of C<words> passed with single spaces "
8210 "between them and returns the resulting string."
8211 msgstr ""
8212
8213 #. type: textblock
8214 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1824
8215 msgid "You can use this command to test the connection through to the daemon."
8216 msgstr ""
8217
8218 #. type: textblock
8219 #: ../fish/guestfish-actions.pod:1094
8220 msgid "See also L</ping-daemon>."
8221 msgstr "Див. також L</ping-daemon>."
8222
8223 #. type: =head2
8224 #: ../fish/guestfish-actions.pod:1096
8225 msgid "egrep"
8226 msgstr "egrep"
8227
8228 #. type: verbatim
8229 #: ../fish/guestfish-actions.pod:1098
8230 #, no-wrap
8231 msgid ""
8232 " egrep regex path\n"
8233 "\n"
8234 msgstr ""
8235
8236 #. type: textblock
8237 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1840
8238 msgid ""
8239 "This calls the external C<egrep> program and returns the matching lines."
8240 msgstr ""
8241
8242 #. type: =head2
8243 #: ../fish/guestfish-actions.pod:1106
8244 msgid "egrepi"
8245 msgstr "egrepi"
8246
8247 #. type: verbatim
8248 #: ../fish/guestfish-actions.pod:1108
8249 #, no-wrap
8250 msgid ""
8251 " egrepi regex path\n"
8252 "\n"
8253 msgstr ""
8254
8255 #. type: textblock
8256 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1859
8257 msgid ""
8258 "This calls the external C<egrep -i> program and returns the matching lines."
8259 msgstr ""
8260
8261 #. type: =head2
8262 #: ../fish/guestfish-actions.pod:1116
8263 msgid "equal"
8264 msgstr "equal"
8265
8266 #. type: verbatim
8267 #: ../fish/guestfish-actions.pod:1118
8268 #, no-wrap
8269 msgid ""
8270 " equal file1 file2\n"
8271 "\n"
8272 msgstr ""
8273 " equal файл1 файл2\n"
8274 "\n"
8275
8276 #. type: textblock
8277 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1878
8278 msgid ""
8279 "This compares the two files C<file1> and C<file2> and returns true if their "
8280 "content is exactly equal, or false otherwise."
8281 msgstr ""
8282
8283 #. type: textblock
8284 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1881
8285 msgid "The external L<cmp(1)> program is used for the comparison."
8286 msgstr ""
8287
8288 #. type: =head2
8289 #: ../fish/guestfish-actions.pod:1125
8290 msgid "exists"
8291 msgstr "exists"
8292
8293 #. type: verbatim
8294 #: ../fish/guestfish-actions.pod:1127
8295 #, no-wrap
8296 msgid ""
8297 " exists path\n"
8298 "\n"
8299 msgstr ""
8300 " exists шлях\n"
8301 "\n"
8302
8303 #. type: textblock
8304 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1893
8305 msgid ""
8306 "This returns C<true> if and only if there is a file, directory (or anything) "
8307 "with the given C<path> name."
8308 msgstr ""
8309
8310 #. type: textblock
8311 #: ../fish/guestfish-actions.pod:1132
8312 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8313 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8314
8315 #. type: =head2
8316 #: ../fish/guestfish-actions.pod:1134
8317 msgid "fallocate"
8318 msgstr "fallocate"
8319
8320 #. type: verbatim
8321 #: ../fish/guestfish-actions.pod:1136
8322 #, no-wrap
8323 msgid ""
8324 " fallocate path len\n"
8325 "\n"
8326 msgstr ""
8327 " fallocate шлях довжина\n"
8328 "\n"
8329
8330 #. type: textblock
8331 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
8332 #: ../src/guestfs-actions.pod:1916 ../src/guestfs-actions.pod:1935
8333 msgid ""
8334 "This command preallocates a file (containing zero bytes) named C<path> of "
8335 "size C<len> bytes.  If the file exists already, it is overwritten."
8336 msgstr ""
8337
8338 #. type: textblock
8339 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1920
8340 msgid ""
8341 "Do not confuse this with the guestfish-specific C<alloc> command which "
8342 "allocates a file in the host and attaches it as a device."
8343 msgstr ""
8344
8345 #. type: textblock
8346 #: ../fish/guestfish-actions.pod:1146
8347 msgid ""
8348 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8349 "instead."
8350 msgstr ""
8351
8352 #. type: =head2
8353 #: ../fish/guestfish-actions.pod:1153
8354 msgid "fallocate64"
8355 msgstr "fallocate64"
8356
8357 #. type: verbatim
8358 #: ../fish/guestfish-actions.pod:1155
8359 #, no-wrap
8360 msgid ""
8361 " fallocate64 path len\n"
8362 "\n"
8363 msgstr ""
8364 " fallocate64 шлях довжина\n"
8365 "\n"
8366
8367 #. type: textblock
8368 #: ../fish/guestfish-actions.pod:1161
8369 msgid ""
8370 "Note that this call allocates disk blocks for the file.  To create a sparse "
8371 "file use L</truncate-size> instead."
8372 msgstr ""
8373
8374 #. type: textblock
8375 #: ../fish/guestfish-actions.pod:1164
8376 msgid ""
8377 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8378 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8379 "maximum size of files created through that call to 1GB."
8380 msgstr ""
8381
8382 #. type: textblock
8383 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1947
8384 msgid ""
8385 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8386 "commands which create a file in the host and attach it as a device."
8387 msgstr ""
8388
8389 #. type: =head2
8390 #: ../fish/guestfish-actions.pod:1173
8391 msgid "fgrep"
8392 msgstr "fgrep"
8393
8394 #. type: verbatim
8395 #: ../fish/guestfish-actions.pod:1175
8396 #, no-wrap
8397 msgid ""
8398 " fgrep pattern path\n"
8399 "\n"
8400 msgstr ""
8401 " fgrep шаблон шлях\n"
8402 "\n"
8403
8404 #. type: textblock
8405 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1962
8406 msgid ""
8407 "This calls the external C<fgrep> program and returns the matching lines."
8408 msgstr ""
8409
8410 #. type: =head2
8411 #: ../fish/guestfish-actions.pod:1183
8412 msgid "fgrepi"
8413 msgstr "fgrepi"
8414
8415 #. type: verbatim
8416 #: ../fish/guestfish-actions.pod:1185
8417 #, no-wrap
8418 msgid ""
8419 " fgrepi pattern path\n"
8420 "\n"
8421 msgstr ""
8422 " fgrepi шаблон шлях\n"
8423 "\n"
8424
8425 #. type: textblock
8426 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1981
8427 msgid ""
8428 "This calls the external C<fgrep -i> program and returns the matching lines."
8429 msgstr ""
8430
8431 #. type: =head2
8432 #: ../fish/guestfish-actions.pod:1193
8433 msgid "file"
8434 msgstr "file"
8435
8436 #. type: verbatim
8437 #: ../fish/guestfish-actions.pod:1195
8438 #, no-wrap
8439 msgid ""
8440 " file path\n"
8441 "\n"
8442 msgstr ""
8443 " file шлях\n"
8444 "\n"
8445
8446 #. type: textblock
8447 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1999
8448 msgid ""
8449 "This call uses the standard L<file(1)> command to determine the type or "
8450 "contents of the file."
8451 msgstr ""
8452
8453 #. type: textblock
8454 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2002
8455 msgid ""
8456 "This call will also transparently look inside various types of compressed "
8457 "file."
8458 msgstr ""
8459
8460 #. type: textblock
8461 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2005
8462 msgid ""
8463 "The exact command which runs is C<file -zb path>.  Note in particular that "
8464 "the filename is not prepended to the output (the I<-b> option)."
8465 msgstr ""
8466
8467 #. type: textblock
8468 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2009
8469 msgid ""
8470 "The output depends on the output of the underlying L<file(1)> command and it "
8471 "can change in future in ways beyond our control.  In other words, the output "
8472 "is not guaranteed by the ABI."
8473 msgstr ""
8474
8475 #. type: textblock
8476 #: ../fish/guestfish-actions.pod:1211
8477 msgid ""
8478 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8479 "(etc), L</is-zero>."
8480 msgstr ""
8481
8482 #. type: =head2
8483 #: ../fish/guestfish-actions.pod:1214
8484 msgid "file-architecture"
8485 msgstr "file-architecture"
8486
8487 #. type: verbatim
8488 #: ../fish/guestfish-actions.pod:1216
8489 #, no-wrap
8490 msgid ""
8491 " file-architecture filename\n"
8492 "\n"
8493 msgstr ""
8494 " file-architecture назва_файла\n"
8495 "\n"
8496
8497 #. type: textblock
8498 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2027
8499 msgid ""
8500 "This detects the architecture of the binary C<filename>, and returns it if "
8501 "known."
8502 msgstr ""
8503
8504 #. type: textblock
8505 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2030
8506 msgid "Currently defined architectures are:"
8507 msgstr ""
8508
8509 #. type: =item
8510 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2034
8511 msgid "\"i386\""
8512 msgstr "\"i386\""
8513
8514 #. type: textblock
8515 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2036
8516 msgid ""
8517 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8518 "irrespective of the precise processor requirements of the binary."
8519 msgstr ""
8520
8521 #. type: =item
8522 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2039
8523 msgid "\"x86_64\""
8524 msgstr "\"x86_64\""
8525
8526 #. type: textblock
8527 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2041
8528 msgid "64 bit x86-64."
8529 msgstr ""
8530
8531 #. type: =item
8532 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2043
8533 msgid "\"sparc\""
8534 msgstr ""
8535
8536 #. type: textblock
8537 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2045
8538 msgid "32 bit SPARC."
8539 msgstr ""
8540
8541 #. type: =item
8542 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2047
8543 msgid "\"sparc64\""
8544 msgstr ""
8545
8546 #. type: textblock
8547 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2049
8548 msgid "64 bit SPARC V9 and above."
8549 msgstr ""
8550
8551 #. type: =item
8552 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2051
8553 msgid "\"ia64\""
8554 msgstr "\"ia64\""
8555
8556 #. type: textblock
8557 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2053
8558 msgid "Intel Itanium."
8559 msgstr "Intel Itanium."
8560
8561 #. type: =item
8562 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2055
8563 msgid "\"ppc\""
8564 msgstr ""
8565
8566 #. type: textblock
8567 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2057
8568 msgid "32 bit Power PC."
8569 msgstr ""
8570
8571 #. type: =item
8572 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2059
8573 msgid "\"ppc64\""
8574 msgstr ""
8575
8576 #. type: textblock
8577 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2061
8578 msgid "64 bit Power PC."
8579 msgstr ""
8580
8581 #. type: textblock
8582 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2065
8583 msgid "Libguestfs may return other architecture strings in future."
8584 msgstr ""
8585
8586 #. type: textblock
8587 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2067
8588 msgid "The function works on at least the following types of files:"
8589 msgstr ""
8590
8591 #. type: textblock
8592 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2073
8593 msgid "many types of Un*x and Linux binary"
8594 msgstr ""
8595
8596 #. type: textblock
8597 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2077
8598 msgid "many types of Un*x and Linux shared library"
8599 msgstr ""
8600
8601 #. type: textblock
8602 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2081
8603 msgid "Windows Win32 and Win64 binaries"
8604 msgstr ""
8605
8606 #. type: textblock
8607 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2085
8608 msgid "Windows Win32 and Win64 DLLs"
8609 msgstr ""
8610
8611 #. type: textblock
8612 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2087
8613 msgid "Win32 binaries and DLLs return C<i386>."
8614 msgstr ""
8615
8616 #. type: textblock
8617 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2089
8618 msgid "Win64 binaries and DLLs return C<x86_64>."
8619 msgstr ""
8620
8621 #. type: textblock
8622 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2093
8623 msgid "Linux kernel modules"
8624 msgstr ""
8625
8626 #. type: textblock
8627 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2097
8628 msgid "Linux new-style initrd images"
8629 msgstr ""
8630
8631 #. type: textblock
8632 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2101
8633 msgid "some non-x86 Linux vmlinuz kernels"
8634 msgstr ""
8635
8636 #. type: textblock
8637 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2105
8638 msgid "What it can't do currently:"
8639 msgstr ""
8640
8641 #. type: textblock
8642 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2111
8643 msgid "static libraries (libfoo.a)"
8644 msgstr ""
8645
8646 #. type: textblock
8647 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2115
8648 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8649 msgstr ""
8650
8651 #. type: textblock
8652 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2119
8653 msgid "x86 Linux vmlinuz kernels"
8654 msgstr ""
8655
8656 #. type: textblock
8657 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2121
8658 msgid ""
8659 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8660 "compressed code, and are horribly hard to unpack.  If you want to find the "
8661 "architecture of a kernel, use the architecture of the associated initrd or "
8662 "kernel module(s) instead."
8663 msgstr ""
8664
8665 #. type: =head2
8666 #: ../fish/guestfish-actions.pod:1319
8667 msgid "filesize"
8668 msgstr "filesize"
8669
8670 #. type: verbatim
8671 #: ../fish/guestfish-actions.pod:1321
8672 #, no-wrap
8673 msgid ""
8674 " filesize file\n"
8675 "\n"
8676 msgstr ""
8677 " filesize файл\n"
8678 "\n"
8679
8680 #. type: textblock
8681 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2139
8682 msgid "This command returns the size of C<file> in bytes."
8683 msgstr ""
8684
8685 #. type: textblock
8686 #: ../fish/guestfish-actions.pod:1325
8687 msgid ""
8688 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8689 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8690 msgstr ""
8691
8692 #. type: =head2
8693 #: ../fish/guestfish-actions.pod:1329
8694 msgid "fill"
8695 msgstr "fill"
8696
8697 #. type: verbatim
8698 #: ../fish/guestfish-actions.pod:1331
8699 #, no-wrap
8700 msgid ""
8701 " fill c len path\n"
8702 "\n"
8703 msgstr ""
8704
8705 #. type: textblock
8706 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2157
8707 msgid ""
8708 "This command creates a new file called C<path>.  The initial content of the "
8709 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8710 "[0..255]>."
8711 msgstr ""
8712
8713 #. type: textblock
8714 #: ../fish/guestfish-actions.pod:1337
8715 msgid ""
8716 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8717 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8718 "L</fill-pattern>."
8719 msgstr ""
8720
8721 #. type: =head2
8722 #: ../fish/guestfish-actions.pod:1342
8723 msgid "fill-pattern"
8724 msgstr "fill-pattern"
8725
8726 #. type: verbatim
8727 #: ../fish/guestfish-actions.pod:1344
8728 #, no-wrap
8729 msgid ""
8730 " fill-pattern pattern len path\n"
8731 "\n"
8732 msgstr ""
8733
8734 #. type: textblock
8735 #: ../fish/guestfish-actions.pod:1346
8736 msgid ""
8737 "This function is like L</fill> except that it creates a new file of length "
8738 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8739 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8740 "bytes."
8741 msgstr ""
8742
8743 #. type: =head2
8744 #: ../fish/guestfish-actions.pod:1351
8745 msgid "find"
8746 msgstr "find"
8747
8748 #. type: verbatim
8749 #: ../fish/guestfish-actions.pod:1353
8750 #, no-wrap
8751 msgid ""
8752 " find directory\n"
8753 "\n"
8754 msgstr ""
8755 " find каталог\n"
8756 "\n"
8757
8758 #. type: textblock
8759 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2203
8760 msgid ""
8761 "This command lists out all files and directories, recursively, starting at "
8762 "C<directory>.  It is essentially equivalent to running the shell command "
8763 "C<find directory -print> but some post-processing happens on the output, "
8764 "described below."
8765 msgstr ""
8766
8767 #. type: textblock
8768 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2208
8769 msgid ""
8770 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8771 "structure was:"
8772 msgstr ""
8773
8774 #. type: verbatim
8775 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2211
8776 #, no-wrap
8777 msgid ""
8778 " /tmp/a\n"
8779 " /tmp/b\n"
8780 " /tmp/c/d\n"
8781 "\n"
8782 msgstr ""
8783
8784 #. type: textblock
8785 #: ../fish/guestfish-actions.pod:1367
8786 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8787 msgstr ""
8788
8789 #. type: verbatim
8790 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2218
8791 #, no-wrap
8792 msgid ""
8793 " a\n"
8794 " b\n"
8795 " c\n"
8796 " c/d\n"
8797 "\n"
8798 msgstr ""
8799
8800 #. type: textblock
8801 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2223
8802 msgid "If C<directory> is not a directory, then this command returns an error."
8803 msgstr ""
8804
8805 #. type: textblock
8806 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2226
8807 msgid "The returned list is sorted."
8808 msgstr ""
8809
8810 #. type: textblock
8811 #: ../fish/guestfish-actions.pod:1380
8812 msgid "See also L</find0>."
8813 msgstr "Див. також L</find0>."
8814
8815 #. type: =head2
8816 #: ../fish/guestfish-actions.pod:1385
8817 msgid "find0"
8818 msgstr "find0"
8819
8820 #. type: verbatim
8821 #: ../fish/guestfish-actions.pod:1387
8822 #, no-wrap
8823 msgid ""
8824 " find0 directory (files|-)\n"
8825 "\n"
8826 msgstr ""
8827 " find0 каталог (файли|-)\n"
8828 "\n"
8829
8830 #. type: textblock
8831 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2246
8832 msgid ""
8833 "This command lists out all files and directories, recursively, starting at "
8834 "C<directory>, placing the resulting list in the external file called "
8835 "C<files>."
8836 msgstr ""
8837
8838 #. type: textblock
8839 #: ../fish/guestfish-actions.pod:1393
8840 msgid ""
8841 "This command works the same way as L</find> with the following exceptions:"
8842 msgstr ""
8843
8844 #. type: textblock
8845 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2257
8846 msgid "The resulting list is written to an external file."
8847 msgstr ""
8848
8849 #. type: textblock
8850 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2261
8851 msgid ""
8852 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8853 "L<find(1)> option I<-print0>."
8854 msgstr ""
8855
8856 #. type: textblock
8857 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2266
8858 msgid "This command is not limited in the number of names that it can return."
8859 msgstr ""
8860
8861 #. type: textblock
8862 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2271
8863 msgid "The result list is not sorted."
8864 msgstr ""
8865
8866 #. type: =head2
8867 #: ../fish/guestfish-actions.pod:1420
8868 msgid "findfs-label"
8869 msgstr "findfs-label"
8870
8871 #. type: verbatim
8872 #: ../fish/guestfish-actions.pod:1422
8873 #, no-wrap
8874 msgid ""
8875 " findfs-label label\n"
8876 "\n"
8877 msgstr ""
8878 " findfs-label мітка\n"
8879 "\n"
8880
8881 #. type: textblock
8882 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2285
8883 msgid ""
8884 "This command searches the filesystems and returns the one which has the "
8885 "given label.  An error is returned if no such filesystem can be found."
8886 msgstr ""
8887
8888 #. type: textblock
8889 #: ../fish/guestfish-actions.pod:1428
8890 msgid "To find the label of a filesystem, use L</vfs-label>."
8891 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8892
8893 #. type: =head2
8894 #: ../fish/guestfish-actions.pod:1430
8895 msgid "findfs-uuid"
8896 msgstr "findfs-uuid"
8897
8898 #. type: verbatim
8899 #: ../fish/guestfish-actions.pod:1432
8900 #, no-wrap
8901 msgid ""
8902 " findfs-uuid uuid\n"
8903 "\n"
8904 msgstr ""
8905 " findfs-uuid uuid\n"
8906 "\n"
8907
8908 #. type: textblock
8909 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2302
8910 msgid ""
8911 "This command searches the filesystems and returns the one which has the "
8912 "given UUID.  An error is returned if no such filesystem can be found."
8913 msgstr ""
8914
8915 #. type: textblock
8916 #: ../fish/guestfish-actions.pod:1438
8917 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8918 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8919
8920 #. type: =head2
8921 #: ../fish/guestfish-actions.pod:1440
8922 msgid "fsck"
8923 msgstr "fsck"
8924
8925 #. type: verbatim
8926 #: ../fish/guestfish-actions.pod:1442
8927 #, no-wrap
8928 msgid ""
8929 " fsck fstype device\n"
8930 "\n"
8931 msgstr ""
8932 " fsck тип_файлової_системи пристрій\n"
8933 "\n"
8934
8935 #. type: textblock
8936 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2320
8937 msgid ""
8938 "This runs the filesystem checker (fsck) on C<device> which should have "
8939 "filesystem type C<fstype>."
8940 msgstr ""
8941
8942 #. type: textblock
8943 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2323
8944 msgid ""
8945 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8946 "codes from C<fsck>."
8947 msgstr ""
8948
8949 #. type: textblock
8950 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2332
8951 msgid "Multiple status codes can be summed together."
8952 msgstr ""
8953
8954 #. type: textblock
8955 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2336
8956 msgid ""
8957 "A non-zero return code can mean \"success\", for example if errors have been "
8958 "corrected on the filesystem."
8959 msgstr ""
8960
8961 #. type: textblock
8962 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2341
8963 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8964 msgstr ""
8965
8966 #. type: textblock
8967 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2346
8968 msgid ""
8969 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8970 msgstr ""
8971
8972 #. type: =head2
8973 #: ../fish/guestfish-actions.pod:1472
8974 msgid "get-append"
8975 msgstr "get-append"
8976
8977 #. type: verbatim
8978 #: ../fish/guestfish-actions.pod:1474
8979 #, no-wrap
8980 msgid ""
8981 " get-append\n"
8982 "\n"
8983 msgstr ""
8984 " get-append\n"
8985 "\n"
8986
8987 #. type: textblock
8988 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2357
8989 msgid ""
8990 "Return the additional kernel options which are added to the guest kernel "
8991 "command line."
8992 msgstr ""
8993
8994 #. type: textblock
8995 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2360
8996 msgid "If C<NULL> then no options are added."
8997 msgstr ""
8998
8999 #. type: =head2
9000 #: ../fish/guestfish-actions.pod:1481
9001 msgid "get-attach-method"
9002 msgstr "get-attach-method"
9003
9004 #. type: verbatim
9005 #: ../fish/guestfish-actions.pod:1483
9006 #, no-wrap
9007 msgid ""
9008 " get-attach-method\n"
9009 "\n"
9010 msgstr ""
9011 " get-attach-method\n"
9012 "\n"
9013
9014 #. type: textblock
9015 #: ../fish/guestfish-actions.pod:1485
9016 msgid "Return the current attach method.  See L</set-attach-method>."
9017 msgstr ""
9018
9019 #. type: =head2
9020 #: ../fish/guestfish-actions.pod:1487
9021 msgid "get-autosync"
9022 msgstr "get-autosync"
9023
9024 #. type: verbatim
9025 #: ../fish/guestfish-actions.pod:1489
9026 #, no-wrap
9027 msgid ""
9028 " get-autosync\n"
9029 "\n"
9030 msgstr ""
9031 " get-autosync\n"
9032 "\n"
9033
9034 #. type: textblock
9035 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2385
9036 msgid "Get the autosync flag."
9037 msgstr ""
9038
9039 #. type: =head2
9040 #: ../fish/guestfish-actions.pod:1493
9041 msgid "get-direct"
9042 msgstr "get-direct"
9043
9044 #. type: verbatim
9045 #: ../fish/guestfish-actions.pod:1495
9046 #, no-wrap
9047 msgid ""
9048 " get-direct\n"
9049 "\n"
9050 msgstr ""
9051 " get-direct\n"
9052 "\n"
9053
9054 #. type: textblock
9055 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2396
9056 msgid "Return the direct appliance mode flag."
9057 msgstr ""
9058
9059 #. type: =head2
9060 #: ../fish/guestfish-actions.pod:1499
9061 msgid "get-e2label"
9062 msgstr "get-e2label"
9063
9064 #. type: verbatim
9065 #: ../fish/guestfish-actions.pod:1501
9066 #, no-wrap
9067 msgid ""
9068 " get-e2label device\n"
9069 "\n"
9070 msgstr ""
9071 " get-e2label пристрій\n"
9072 "\n"
9073
9074 #. type: textblock
9075 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2415
9076 msgid ""
9077 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9078 msgstr ""
9079
9080 #. type: textblock
9081 #: ../fish/guestfish-actions.pod:1506
9082 msgid ""
9083 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9084 "instead."
9085 msgstr ""
9086
9087 #. type: =head2
9088 #: ../fish/guestfish-actions.pod:1513
9089 msgid "get-e2uuid"
9090 msgstr "get-e2uuid"
9091
9092 #. type: verbatim
9093 #: ../fish/guestfish-actions.pod:1515
9094 #, no-wrap
9095 msgid ""
9096 " get-e2uuid device\n"
9097 "\n"
9098 msgstr ""
9099 " get-e2uuid пристрій\n"
9100 "\n"
9101
9102 #. type: textblock
9103 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2436
9104 msgid ""
9105 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9106 msgstr ""
9107
9108 #. type: textblock
9109 #: ../fish/guestfish-actions.pod:1520
9110 msgid ""
9111 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9112 "instead."
9113 msgstr ""
9114
9115 #. type: =head2
9116 #: ../fish/guestfish-actions.pod:1527
9117 msgid "get-memsize"
9118 msgstr "get-memsize"
9119
9120 #. type: verbatim
9121 #: ../fish/guestfish-actions.pod:1529
9122 #, no-wrap
9123 msgid ""
9124 " get-memsize\n"
9125 "\n"
9126 msgstr ""
9127 " get-memsize\n"
9128 "\n"
9129
9130 #. type: textblock
9131 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2449
9132 msgid ""
9133 "This gets the memory size in megabytes allocated to the qemu subprocess."
9134 msgstr ""
9135
9136 #. type: textblock
9137 #: ../fish/guestfish-actions.pod:1534
9138 msgid ""
9139 "If L</set-memsize> was not called on this handle, and if "
9140 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9141 "value for memsize."
9142 msgstr ""
9143
9144 #. type: textblock
9145 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
9146 #: ../fish/guestfish-actions.pod:4375 ../fish/guestfish-actions.pod:4477
9147 #: ../src/guestfs-actions.pod:2456 ../src/guestfs-actions.pod:2548
9148 #: ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:6886
9149 msgid ""
9150 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9151 msgstr ""
9152
9153 #. type: =head2
9154 #: ../fish/guestfish-actions.pod:1541
9155 msgid "get-network"
9156 msgstr "get-network"
9157
9158 #. type: verbatim
9159 #: ../fish/guestfish-actions.pod:1543
9160 #, no-wrap
9161 msgid ""
9162 " get-network\n"
9163 "\n"
9164 msgstr ""
9165 " get-network\n"
9166 "\n"
9167
9168 #. type: textblock
9169 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2468
9170 msgid "This returns the enable network flag."
9171 msgstr ""
9172
9173 #. type: =head2
9174 #: ../fish/guestfish-actions.pod:1547
9175 msgid "get-path"
9176 msgstr "get-path"
9177
9178 #. type: verbatim
9179 #: ../fish/guestfish-actions.pod:1549
9180 #, no-wrap
9181 msgid ""
9182 " get-path\n"
9183 "\n"
9184 msgstr ""
9185 " get-path\n"
9186 "\n"
9187
9188 #. type: textblock
9189 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2479
9190 msgid "Return the current search path."
9191 msgstr ""
9192
9193 #. type: textblock
9194 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2481
9195 msgid ""
9196 "This is always non-NULL.  If it wasn't set already, then this will return "
9197 "the default path."
9198 msgstr ""
9199
9200 #. type: =head2
9201 #: ../fish/guestfish-actions.pod:1556
9202 msgid "get-pgroup"
9203 msgstr ""
9204
9205 #. type: verbatim
9206 #: ../fish/guestfish-actions.pod:1558
9207 #, no-wrap
9208 msgid ""
9209 " get-pgroup\n"
9210 "\n"
9211 msgstr ""
9212
9213 #. type: textblock
9214 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2494
9215 msgid "This returns the process group flag."
9216 msgstr ""
9217
9218 #. type: =head2
9219 #: ../fish/guestfish-actions.pod:1562
9220 msgid "get-pid"
9221 msgstr "get-pid"
9222
9223 #. type: =head2
9224 #: ../fish/guestfish-actions.pod:1564
9225 msgid "pid"
9226 msgstr "PID"
9227
9228 #. type: verbatim
9229 #: ../fish/guestfish-actions.pod:1566
9230 #, no-wrap
9231 msgid ""
9232 " get-pid\n"
9233 "\n"
9234 msgstr ""
9235 " get-pid\n"
9236 "\n"
9237
9238 #. type: textblock
9239 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2505
9240 msgid ""
9241 "Return the process ID of the qemu subprocess.  If there is no qemu "
9242 "subprocess, then this will return an error."
9243 msgstr ""
9244
9245 #. type: textblock
9246 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2508
9247 msgid "This is an internal call used for debugging and testing."
9248 msgstr ""
9249
9250 #. type: =head2
9251 #: ../fish/guestfish-actions.pod:1573
9252 msgid "get-qemu"
9253 msgstr "get-qemu"
9254
9255 #. type: verbatim
9256 #: ../fish/guestfish-actions.pod:1575
9257 #, no-wrap
9258 msgid ""
9259 " get-qemu\n"
9260 "\n"
9261 msgstr ""
9262 " get-qemu\n"
9263 "\n"
9264
9265 #. type: textblock
9266 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2519
9267 msgid "Return the current qemu binary."
9268 msgstr ""
9269
9270 #. type: textblock
9271 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2521
9272 msgid ""
9273 "This is always non-NULL.  If it wasn't set already, then this will return "
9274 "the default qemu binary name."
9275 msgstr ""
9276
9277 #. type: =head2
9278 #: ../fish/guestfish-actions.pod:1582
9279 msgid "get-recovery-proc"
9280 msgstr "get-recovery-proc"
9281
9282 #. type: verbatim
9283 #: ../fish/guestfish-actions.pod:1584
9284 #, no-wrap
9285 msgid ""
9286 " get-recovery-proc\n"
9287 "\n"
9288 msgstr ""
9289 " get-recovery-proc\n"
9290 "\n"
9291
9292 #. type: textblock
9293 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2534
9294 msgid "Return the recovery process enabled flag."
9295 msgstr ""
9296
9297 #. type: =head2
9298 #: ../fish/guestfish-actions.pod:1588
9299 msgid "get-selinux"
9300 msgstr "get-selinux"
9301
9302 #. type: verbatim
9303 #: ../fish/guestfish-actions.pod:1590
9304 #, no-wrap
9305 msgid ""
9306 " get-selinux\n"
9307 "\n"
9308 msgstr ""
9309 " get-selinux\n"
9310 "\n"
9311
9312 #. type: textblock
9313 #: ../fish/guestfish-actions.pod:1592
9314 msgid ""
9315 "This returns the current setting of the selinux flag which is passed to the "
9316 "appliance at boot time.  See L</set-selinux>."
9317 msgstr ""
9318
9319 #. type: =head2
9320 #: ../fish/guestfish-actions.pod:1598
9321 msgid "get-smp"
9322 msgstr ""
9323
9324 #. type: verbatim
9325 #: ../fish/guestfish-actions.pod:1600
9326 #, no-wrap
9327 msgid ""
9328 " get-smp\n"
9329 "\n"
9330 msgstr ""
9331
9332 #. type: textblock
9333 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2560
9334 msgid "This returns the number of virtual CPUs assigned to the appliance."
9335 msgstr ""
9336
9337 #. type: =head2
9338 #: ../fish/guestfish-actions.pod:1604
9339 msgid "get-state"
9340 msgstr "get-state"
9341
9342 #. type: verbatim
9343 #: ../fish/guestfish-actions.pod:1606
9344 #, no-wrap
9345 msgid ""
9346 " get-state\n"
9347 "\n"
9348 msgstr ""
9349 " get-state\n"
9350 "\n"
9351
9352 #. type: textblock
9353 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2571
9354 msgid ""
9355 "This returns the current state as an opaque integer.  This is only useful "
9356 "for printing debug and internal error messages."
9357 msgstr ""
9358
9359 #. type: textblock
9360 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2570
9361 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
9362 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2574
9363 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3922
9364 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:4010
9365 msgid "For more information on states, see L<guestfs(3)>."
9366 msgstr ""
9367
9368 #. type: =head2
9369 #: ../fish/guestfish-actions.pod:1613
9370 msgid "get-trace"
9371 msgstr "get-trace"
9372
9373 #. type: verbatim
9374 #: ../fish/guestfish-actions.pod:1615
9375 #, no-wrap
9376 msgid ""
9377 " get-trace\n"
9378 "\n"
9379 msgstr ""
9380 " get-trace\n"
9381 "\n"
9382
9383 #. type: textblock
9384 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2585
9385 msgid "Return the command trace flag."
9386 msgstr ""
9387
9388 #. type: =head2
9389 #: ../fish/guestfish-actions.pod:1619
9390 msgid "get-umask"
9391 msgstr "get-umask"
9392
9393 #. type: verbatim
9394 #: ../fish/guestfish-actions.pod:1621
9395 #, no-wrap
9396 msgid ""
9397 " get-umask\n"
9398 "\n"
9399 msgstr ""
9400 " get-umask\n"
9401 "\n"
9402
9403 #. type: textblock
9404 #: ../fish/guestfish-actions.pod:1623
9405 msgid ""
9406 "Return the current umask.  By default the umask is C<022> unless it has been "
9407 "set by calling L</umask>."
9408 msgstr ""
9409
9410 #. type: =head2
9411 #: ../fish/guestfish-actions.pod:1626
9412 msgid "get-verbose"
9413 msgstr "get-verbose"
9414
9415 #. type: verbatim
9416 #: ../fish/guestfish-actions.pod:1628
9417 #, no-wrap
9418 msgid ""
9419 " get-verbose\n"
9420 "\n"
9421 msgstr ""
9422 " get-verbose\n"
9423 "\n"
9424
9425 #. type: textblock
9426 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2608
9427 msgid "This returns the verbose messages flag."
9428 msgstr ""
9429
9430 #. type: =head2
9431 #: ../fish/guestfish-actions.pod:1632
9432 msgid "getcon"
9433 msgstr "getcon"
9434
9435 #. type: verbatim
9436 #: ../fish/guestfish-actions.pod:1634
9437 #, no-wrap
9438 msgid ""
9439 " getcon\n"
9440 "\n"
9441 msgstr ""
9442 " getcon\n"
9443 "\n"
9444
9445 #. type: textblock
9446 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2619
9447 msgid "This gets the SELinux security context of the daemon."
9448 msgstr ""
9449
9450 #. type: textblock
9451 #: ../fish/guestfish-actions.pod:1638
9452 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9453 msgstr ""
9454
9455 #. type: =head2
9456 #: ../fish/guestfish-actions.pod:1641
9457 msgid "getxattr"
9458 msgstr "getxattr"
9459
9460 #. type: verbatim
9461 #: ../fish/guestfish-actions.pod:1643
9462 #, no-wrap
9463 msgid ""
9464 " getxattr path name\n"
9465 "\n"
9466 msgstr ""
9467 " getxattr шлях назва\n"
9468 "\n"
9469
9470 #. type: textblock
9471 #: ../fish/guestfish-actions.pod:1645
9472 msgid ""
9473 "Get a single extended attribute from file C<path> named C<name>.  This call "
9474 "follows symlinks.  If you want to lookup an extended attribute for the "
9475 "symlink itself, use L</lgetxattr>."
9476 msgstr ""
9477
9478 #. type: textblock
9479 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
9480 msgid ""
9481 "Normally it is better to get all extended attributes from a file in one go "
9482 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9483 "buggy and do not provide a way to list out attributes.  For these "
9484 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9485 "attributes you want in advance and call this function."
9486 msgstr ""
9487
9488 #. type: textblock
9489 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722
9490 #: ../src/guestfs-actions.pod:2648 ../src/guestfs-actions.pod:4143
9491 msgid ""
9492 "Extended attribute values are blobs of binary data.  If there is no extended "
9493 "attribute named C<name>, this returns an error."
9494 msgstr ""
9495
9496 #. type: textblock
9497 #: ../fish/guestfish-actions.pod:1659
9498 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9499 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9500
9501 #. type: =head2
9502 #: ../fish/guestfish-actions.pod:1661
9503 msgid "getxattrs"
9504 msgstr "getxattrs"
9505
9506 #. type: verbatim
9507 #: ../fish/guestfish-actions.pod:1663
9508 #, no-wrap
9509 msgid ""
9510 " getxattrs path\n"
9511 "\n"
9512 msgstr ""
9513 " getxattrs шлях\n"
9514 "\n"
9515
9516 #. type: textblock
9517 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2665
9518 msgid ""
9519 "This call lists the extended attributes of the file or directory C<path>."
9520 msgstr ""
9521
9522 #. type: textblock
9523 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2668
9524 msgid ""
9525 "At the system call level, this is a combination of the L<listxattr(2)> and "
9526 "L<getxattr(2)> calls."
9527 msgstr ""
9528
9529 #. type: textblock
9530 #: ../fish/guestfish-actions.pod:1671
9531 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9532 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9533
9534 #. type: =head2
9535 #: ../fish/guestfish-actions.pod:1673
9536 msgid "glob-expand"
9537 msgstr "glob-expand"
9538
9539 #. type: verbatim
9540 #: ../fish/guestfish-actions.pod:1675
9541 #, no-wrap
9542 msgid ""
9543 " glob-expand pattern\n"
9544 "\n"
9545 msgstr ""
9546 " glob-expand шаблон\n"
9547 "\n"
9548
9549 #. type: textblock
9550 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2685
9551 msgid ""
9552 "This command searches for all the pathnames matching C<pattern> according to "
9553 "the wildcard expansion rules used by the shell."
9554 msgstr ""
9555
9556 #. type: textblock
9557 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2689
9558 msgid ""
9559 "If no paths match, then this returns an empty list (note: not an error)."
9560 msgstr ""
9561
9562 #. type: textblock
9563 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2692
9564 msgid ""
9565 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9566 "GLOB_BRACE>.  See that manual page for more details."
9567 msgstr ""
9568
9569 #. type: =head2
9570 #: ../fish/guestfish-actions.pod:1688
9571 msgid "grep"
9572 msgstr "grep"
9573
9574 #. type: verbatim
9575 #: ../fish/guestfish-actions.pod:1690
9576 #, no-wrap
9577 msgid ""
9578 " grep regex path\n"
9579 "\n"
9580 msgstr ""
9581 " grepi формальний_вираз шлях\n"
9582 "\n"
9583
9584 #. type: textblock
9585 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2709
9586 msgid "This calls the external C<grep> program and returns the matching lines."
9587 msgstr ""
9588
9589 #. type: =head2
9590 #: ../fish/guestfish-actions.pod:1698
9591 msgid "grepi"
9592 msgstr "grepi"
9593
9594 #. type: verbatim
9595 #: ../fish/guestfish-actions.pod:1700
9596 #, no-wrap
9597 msgid ""
9598 " grepi regex path\n"
9599 "\n"
9600 msgstr ""
9601 " grepi формальний_вираз шлях\n"
9602 "\n"
9603
9604 #. type: textblock
9605 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2728
9606 msgid ""
9607 "This calls the external C<grep -i> program and returns the matching lines."
9608 msgstr ""
9609
9610 #. type: =head2
9611 #: ../fish/guestfish-actions.pod:1708
9612 msgid "grub-install"
9613 msgstr "grub-install"
9614
9615 #. type: verbatim
9616 #: ../fish/guestfish-actions.pod:1710
9617 #, no-wrap
9618 msgid ""
9619 " grub-install root device\n"
9620 "\n"
9621 msgstr ""
9622 " grub-install кореневий пристрій\n"
9623 "\n"
9624
9625 #. type: textblock
9626 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2747
9627 msgid ""
9628 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9629 "with the root directory being C<root>."
9630 msgstr ""
9631
9632 #. type: textblock
9633 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2756
9634 msgid ""
9635 "There is currently no way in the API to install grub2, which is used by most "
9636 "modern Linux guests.  It is possible to run the grub2 command from the "
9637 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9638 msgstr ""
9639
9640 #. type: textblock
9641 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2763
9642 msgid ""
9643 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9644 "compatible with itself, so this only works in rather narrow circumstances.  "
9645 "Careful testing with each guest version is advisable."
9646 msgstr ""
9647
9648 #. type: textblock
9649 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2770
9650 msgid ""
9651 "If grub-install reports the error \"No suitable drive was found in the "
9652 "generated device map.\" it may be that you need to create a C</boot/grub/"
9653 "device.map> file first that contains the mapping between grub device names "
9654 "and Linux device names.  It is usually sufficient to create a file "
9655 "containing:"
9656 msgstr ""
9657
9658 #. type: verbatim
9659 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2777
9660 #, no-wrap
9661 msgid ""
9662 " (hd0) /dev/vda\n"
9663 "\n"
9664 msgstr ""
9665
9666 #. type: textblock
9667 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2779
9668 msgid "replacing C</dev/vda> with the name of the installation device."
9669 msgstr ""
9670
9671 #. type: =head2
9672 #: ../fish/guestfish-actions.pod:1748
9673 msgid "head"
9674 msgstr "head"
9675
9676 #. type: verbatim
9677 #: ../fish/guestfish-actions.pod:1750
9678 #, no-wrap
9679 msgid ""
9680 " head path\n"
9681 "\n"
9682 msgstr ""
9683 " head шлях\n"
9684 "\n"
9685
9686 #. type: textblock
9687 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2793
9688 msgid ""
9689 "This command returns up to the first 10 lines of a file as a list of strings."
9690 msgstr ""
9691
9692 #. type: =head2
9693 #: ../fish/guestfish-actions.pod:1758
9694 msgid "head-n"
9695 msgstr "head-n"
9696
9697 #. type: verbatim
9698 #: ../fish/guestfish-actions.pod:1760
9699 #, no-wrap
9700 msgid ""
9701 " head-n nrlines path\n"
9702 "\n"
9703 msgstr ""
9704
9705 #. type: textblock
9706 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2812
9707 msgid ""
9708 "If the parameter C<nrlines> is a positive number, this returns the first "
9709 "C<nrlines> lines of the file C<path>."
9710 msgstr ""
9711
9712 #. type: textblock
9713 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2815
9714 msgid ""
9715 "If the parameter C<nrlines> is a negative number, this returns lines from "
9716 "the file C<path>, excluding the last C<nrlines> lines."
9717 msgstr ""
9718
9719 #. type: textblock
9720 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4867
9721 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:7474
9722 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9723 msgstr ""
9724
9725 #. type: =head2
9726 #: ../fish/guestfish-actions.pod:1773
9727 msgid "hexdump"
9728 msgstr "hexdump"
9729
9730 #. type: verbatim
9731 #: ../fish/guestfish-actions.pod:1775
9732 #, no-wrap
9733 msgid ""
9734 " hexdump path\n"
9735 "\n"
9736 msgstr ""
9737 " hexdump шлях\n"
9738 "\n"
9739
9740 #. type: textblock
9741 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2835
9742 msgid ""
9743 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9744 "readable, canonical hex dump of the file."
9745 msgstr ""
9746
9747 #. type: =head2
9748 #: ../fish/guestfish-actions.pod:1783
9749 msgid "initrd-cat"
9750 msgstr "initrd-cat"
9751
9752 #. type: verbatim
9753 #: ../fish/guestfish-actions.pod:1785
9754 #, no-wrap
9755 msgid ""
9756 " initrd-cat initrdpath filename\n"
9757 "\n"
9758 msgstr ""
9759 " initrd-cat шлях_initrd назва_файла\n"
9760 "\n"
9761
9762 #. type: textblock
9763 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2854
9764 msgid ""
9765 "This command unpacks the file C<filename> from the initrd file called "
9766 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9767 "character."
9768 msgstr ""
9769
9770 #. type: textblock
9771 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2858
9772 msgid ""
9773 "For example, in guestfish you could use the following command to examine the "
9774 "boot script (usually called C</init>)  contained in a Linux initrd or "
9775 "initramfs image:"
9776 msgstr ""
9777
9778 #. type: verbatim
9779 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2862
9780 #, no-wrap
9781 msgid ""
9782 " initrd-cat /boot/initrd-<version>.img init\n"
9783 "\n"
9784 msgstr ""
9785
9786 #. type: textblock
9787 #: ../fish/guestfish-actions.pod:1797
9788 msgid "See also L</initrd-list>."
9789 msgstr "Див. також L</initrd-list>."
9790
9791 #. type: =head2
9792 #: ../fish/guestfish-actions.pod:1802
9793 msgid "initrd-list"
9794 msgstr "initrd-list"
9795
9796 #. type: verbatim
9797 #: ../fish/guestfish-actions.pod:1804
9798 #, no-wrap
9799 msgid ""
9800 " initrd-list path\n"
9801 "\n"
9802 msgstr ""
9803 " initrd-list шлях\n"
9804 "\n"
9805
9806 #. type: textblock
9807 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2881
9808 msgid "This command lists out files contained in an initrd."
9809 msgstr ""
9810
9811 #. type: textblock
9812 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2883
9813 msgid ""
9814 "The files are listed without any initial C</> character.  The files are "
9815 "listed in the order they appear (not necessarily alphabetical).  Directory "
9816 "names are listed as separate items."
9817 msgstr ""
9818
9819 #. type: textblock
9820 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2887
9821 msgid ""
9822 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9823 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9824 "files)."
9825 msgstr ""
9826
9827 #. type: =head2
9828 #: ../fish/guestfish-actions.pod:1816
9829 msgid "inotify-add-watch"
9830 msgstr "inotify-add-watch"
9831
9832 #. type: verbatim
9833 #: ../fish/guestfish-actions.pod:1818
9834 #, no-wrap
9835 msgid ""
9836 " inotify-add-watch path mask\n"
9837 "\n"
9838 msgstr ""
9839 " inotify-add-watch шлях маска\n"
9840 "\n"
9841
9842 #. type: textblock
9843 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2904
9844 msgid "Watch C<path> for the events listed in C<mask>."
9845 msgstr ""
9846
9847 #. type: textblock
9848 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2906
9849 msgid ""
9850 "Note that if C<path> is a directory then events within that directory are "
9851 "watched, but this does I<not> happen recursively (in subdirectories)."
9852 msgstr ""
9853
9854 #. type: textblock
9855 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2910
9856 msgid ""
9857 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9858 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9859 msgstr ""
9860
9861 #. type: =head2
9862 #: ../fish/guestfish-actions.pod:1830
9863 msgid "inotify-close"
9864 msgstr "inotify-close"
9865
9866 #. type: verbatim
9867 #: ../fish/guestfish-actions.pod:1832
9868 #, no-wrap
9869 msgid ""
9870 " inotify-close\n"
9871 "\n"
9872 msgstr ""
9873 " inotify-close\n"
9874 "\n"
9875
9876 #. type: textblock
9877 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2923
9878 msgid ""
9879 "This closes the inotify handle which was previously opened by inotify_init.  "
9880 "It removes all watches, throws away any pending events, and deallocates all "
9881 "resources."
9882 msgstr ""
9883
9884 #. type: =head2
9885 #: ../fish/guestfish-actions.pod:1838
9886 msgid "inotify-files"
9887 msgstr "inotify-files"
9888
9889 #. type: verbatim
9890 #: ../fish/guestfish-actions.pod:1840
9891 #, no-wrap
9892 msgid ""
9893 " inotify-files\n"
9894 "\n"
9895 msgstr ""
9896 " inotify-files\n"
9897 "\n"
9898
9899 #. type: textblock
9900 #: ../fish/guestfish-actions.pod:1842
9901 msgid ""
9902 "This function is a helpful wrapper around L</inotify-read> which just "
9903 "returns a list of pathnames of objects that were touched.  The returned "
9904 "pathnames are sorted and deduplicated."
9905 msgstr ""
9906
9907 #. type: =head2
9908 #: ../fish/guestfish-actions.pod:1846
9909 msgid "inotify-init"
9910 msgstr "inotify-init"
9911
9912 #. type: verbatim
9913 #: ../fish/guestfish-actions.pod:1848
9914 #, no-wrap
9915 msgid ""
9916 " inotify-init maxevents\n"
9917 "\n"
9918 msgstr ""
9919
9920 #. type: textblock
9921 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2952
9922 msgid ""
9923 "This command creates a new inotify handle.  The inotify subsystem can be "
9924 "used to notify events which happen to objects in the guest filesystem."
9925 msgstr ""
9926
9927 #. type: textblock
9928 #: ../fish/guestfish-actions.pod:1854
9929 msgid ""
9930 "C<maxevents> is the maximum number of events which will be queued up between "
9931 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9932 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9933 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9934 "but records the fact that it threw them away by setting a flag "
9935 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9936 msgstr ""
9937
9938 #. type: textblock
9939 #: ../fish/guestfish-actions.pod:1864
9940 msgid ""
9941 "Before any events are generated, you have to add some watches to the "
9942 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9943 "L</inotify-watch-all>."
9944 msgstr ""
9945
9946 #. type: textblock
9947 #: ../fish/guestfish-actions.pod:1870
9948 msgid ""
9949 "Queued up events should be read periodically by calling L</inotify-read> (or "
9950 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9951 "If you don't read the events out often enough then you risk the internal "
9952 "queue overflowing."
9953 msgstr ""
9954
9955 #. type: textblock
9956 #: ../fish/guestfish-actions.pod:1877
9957 msgid ""
9958 "The handle should be closed after use by calling L</inotify-close>.  This "
9959 "also removes any watches automatically."
9960 msgstr ""
9961
9962 #. type: textblock
9963 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2983
9964 msgid ""
9965 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9966 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9967 "that there is one global inotify handle per libguestfs instance."
9968 msgstr ""
9969
9970 #. type: =head2
9971 #: ../fish/guestfish-actions.pod:1886
9972 msgid "inotify-read"
9973 msgstr "inotify-read"
9974
9975 #. type: verbatim
9976 #: ../fish/guestfish-actions.pod:1888
9977 #, no-wrap
9978 msgid ""
9979 " inotify-read\n"
9980 "\n"
9981 msgstr ""
9982 " inotify-read\n"
9983 "\n"
9984
9985 #. type: textblock
9986 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:2997
9987 msgid ""
9988 "Return the complete queue of events that have happened since the previous "
9989 "read call."
9990 msgstr ""
9991
9992 #. type: textblock
9993 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3000
9994 msgid "If no events have happened, this returns an empty list."
9995 msgstr ""
9996
9997 #. type: textblock
9998 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3002
9999 msgid ""
10000 "I<Note>: In order to make sure that all events have been read, you must call "
10001 "this function repeatedly until it returns an empty list.  The reason is that "
10002 "the call will read events up to the maximum appliance-to-host message size "
10003 "and leave remaining events in the queue."
10004 msgstr ""
10005
10006 #. type: =head2
10007 #: ../fish/guestfish-actions.pod:1901
10008 msgid "inotify-rm-watch"
10009 msgstr "inotify-rm-watch"
10010
10011 #. type: verbatim
10012 #: ../fish/guestfish-actions.pod:1903
10013 #, no-wrap
10014 msgid ""
10015 " inotify-rm-watch wd\n"
10016 "\n"
10017 msgstr ""
10018
10019 #. type: textblock
10020 #: ../fish/guestfish-actions.pod:1905
10021 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
10022 msgstr ""
10023
10024 #. type: =head2
10025 #: ../fish/guestfish-actions.pod:1908
10026 msgid "inspect-get-arch"
10027 msgstr "inspect-get-arch"
10028
10029 #. type: verbatim
10030 #: ../fish/guestfish-actions.pod:1910
10031 #, no-wrap
10032 msgid ""
10033 " inspect-get-arch root\n"
10034 "\n"
10035 msgstr ""
10036 " inspect-get-arch корінь\n"
10037 "\n"
10038
10039 #. type: textblock
10040 #: ../fish/guestfish-actions.pod:1912
10041 msgid ""
10042 "This returns the architecture of the inspected operating system.  The "
10043 "possible return values are listed under L</file-architecture>."
10044 msgstr ""
10045
10046 #. type: textblock
10047 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3037
10048 msgid ""
10049 "If the architecture could not be determined, then the string C<unknown> is "
10050 "returned."
10051 msgstr ""
10052
10053 #. type: textblock
10054 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
10055 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
10056 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
10057 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
10058 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2362
10059 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
10060 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
10061 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
10062 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3040
10063 #: ../src/guestfs-actions.pod:3142 ../src/guestfs-actions.pod:3246
10064 #: ../src/guestfs-actions.pod:3265 ../src/guestfs-actions.pod:3396
10065 #: ../src/guestfs-actions.pod:3480 ../src/guestfs-actions.pod:3508
10066 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3582
10067 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3646
10068 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3683
10069 #: ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:3717
10070 #: ../src/guestfs-actions.pod:3819 ../src/guestfs-actions.pod:3860
10071 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10072 msgstr ""
10073
10074 #. type: =head2
10075 #: ../fish/guestfish-actions.pod:1921
10076 msgid "inspect-get-distro"
10077 msgstr "inspect-get-distro"
10078
10079 #. type: verbatim
10080 #: ../fish/guestfish-actions.pod:1923
10081 #, no-wrap
10082 msgid ""
10083 " inspect-get-distro root\n"
10084 "\n"
10085 msgstr ""
10086 " inspect-get-distro корінь\n"
10087 "\n"
10088
10089 #. type: textblock
10090 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3053
10091 msgid ""
10092 "This returns the distro (distribution) of the inspected operating system."
10093 msgstr ""
10094
10095 #. type: textblock
10096 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3056
10097 msgid "Currently defined distros are:"
10098 msgstr ""
10099
10100 #. type: =item
10101 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3060
10102 msgid "\"archlinux\""
10103 msgstr "\"archlinux\""
10104
10105 #. type: textblock
10106 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3062
10107 msgid "Arch Linux."
10108 msgstr "Arch Linux."
10109
10110 #. type: =item
10111 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3064
10112 msgid "\"centos\""
10113 msgstr ""
10114
10115 #. type: textblock
10116 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3066
10117 msgid "CentOS."
10118 msgstr ""
10119
10120 #. type: =item
10121 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3068
10122 msgid "\"debian\""
10123 msgstr "\"debian\""
10124
10125 #. type: textblock
10126 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3070
10127 msgid "Debian."
10128 msgstr "Debian."
10129
10130 #. type: =item
10131 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3072
10132 msgid "\"fedora\""
10133 msgstr "\"fedora\""
10134
10135 #. type: textblock
10136 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3074
10137 msgid "Fedora."
10138 msgstr "Fedora."
10139
10140 #. type: =item
10141 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3076
10142 msgid "\"gentoo\""
10143 msgstr "\"gentoo\""
10144
10145 #. type: textblock
10146 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3078
10147 msgid "Gentoo."
10148 msgstr "Gentoo."
10149
10150 #. type: =item
10151 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3080
10152 msgid "\"linuxmint\""
10153 msgstr "\"linuxmint\""
10154
10155 #. type: textblock
10156 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3082
10157 msgid "Linux Mint."
10158 msgstr "Linux Mint."
10159
10160 #. type: =item
10161 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3084
10162 msgid "\"mageia\""
10163 msgstr ""
10164
10165 #. type: textblock
10166 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3086
10167 msgid "Mageia."
10168 msgstr ""
10169
10170 #. type: =item
10171 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3088
10172 msgid "\"mandriva\""
10173 msgstr "\"mandriva\""
10174
10175 #. type: textblock
10176 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3090
10177 msgid "Mandriva."
10178 msgstr "Mandriva."
10179
10180 #. type: =item
10181 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3092
10182 msgid "\"meego\""
10183 msgstr "\"meego\""
10184
10185 #. type: textblock
10186 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3094
10187 msgid "MeeGo."
10188 msgstr "MeeGo."
10189
10190 #. type: =item
10191 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3096
10192 msgid "\"opensuse\""
10193 msgstr ""
10194
10195 #. type: textblock
10196 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3098
10197 msgid "OpenSUSE."
10198 msgstr ""
10199
10200 #. type: =item
10201 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3100
10202 msgid "\"pardus\""
10203 msgstr "\"pardus\""
10204
10205 #. type: textblock
10206 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3102
10207 msgid "Pardus."
10208 msgstr "Pardus."
10209
10210 #. type: =item
10211 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3104
10212 msgid "\"redhat-based\""
10213 msgstr "\"redhat-based\""
10214
10215 #. type: textblock
10216 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3106
10217 msgid "Some Red Hat-derived distro."
10218 msgstr "Дистрибутив, що походить від Red Hat."
10219
10220 #. type: =item
10221 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3108
10222 msgid "\"rhel\""
10223 msgstr "\"rhel\""
10224
10225 #. type: textblock
10226 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3110
10227 msgid "Red Hat Enterprise Linux."
10228 msgstr "Red Hat Enterprise Linux."
10229
10230 #. type: =item
10231 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3112
10232 msgid "\"scientificlinux\""
10233 msgstr "\"scientificlinux\""
10234
10235 #. type: textblock
10236 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3114
10237 msgid "Scientific Linux."
10238 msgstr "Scientific Linux."
10239
10240 #. type: =item
10241 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3116
10242 msgid "\"slackware\""
10243 msgstr "\"slackware\""
10244
10245 #. type: textblock
10246 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3118
10247 msgid "Slackware."
10248 msgstr "Slackware."
10249
10250 #. type: =item
10251 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3120
10252 msgid "\"ttylinux\""
10253 msgstr ""
10254
10255 #. type: textblock
10256 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3122
10257 msgid "ttylinux."
10258 msgstr ""
10259
10260 #. type: =item
10261 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3124
10262 msgid "\"ubuntu\""
10263 msgstr "\"ubuntu\""
10264
10265 #. type: textblock
10266 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3126
10267 msgid "Ubuntu."
10268 msgstr "Ubuntu."
10269
10270 #. type: =item
10271 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
10272 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3128
10273 #: ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3617
10274 msgid "\"unknown\""
10275 msgstr "\"unknown\""
10276
10277 #. type: textblock
10278 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3130
10279 msgid "The distro could not be determined."
10280 msgstr "Дистрибутив, тип якого не вдалося визначити."
10281
10282 #. type: =item
10283 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
10284 #: ../src/guestfs-actions.pod:3132 ../src/guestfs-actions.pod:3605
10285 msgid "\"windows\""
10286 msgstr "\"windows\""
10287
10288 #. type: textblock
10289 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3134
10290 msgid ""
10291 "Windows does not have distributions.  This string is returned if the OS type "
10292 "is Windows."
10293 msgstr ""
10294
10295 #. type: textblock
10296 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
10297 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3139
10298 #: ../src/guestfs-actions.pod:3243 ../src/guestfs-actions.pod:3623
10299 msgid ""
10300 "Future versions of libguestfs may return other strings here.  The caller "
10301 "should be prepared to handle any string."
10302 msgstr ""
10303
10304 #. type: =head2
10305 #: ../fish/guestfish-actions.pod:2016
10306 msgid "inspect-get-drive-mappings"
10307 msgstr ""
10308
10309 #. type: verbatim
10310 #: ../fish/guestfish-actions.pod:2018
10311 #, no-wrap
10312 msgid ""
10313 " inspect-get-drive-mappings root\n"
10314 "\n"
10315 msgstr ""
10316
10317 #. type: textblock
10318 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3155
10319 msgid ""
10320 "This call is useful for Windows which uses a primitive system of assigning "
10321 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10322 "Windows Registry to find out how disks/partitions are mapped to drive "
10323 "letters, and returns a hash table as in the example below:"
10324 msgstr ""
10325
10326 #. type: verbatim
10327 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3161
10328 #, no-wrap
10329 msgid ""
10330 " C      =>     /dev/vda2\n"
10331 " E      =>     /dev/vdb1\n"
10332 " F      =>     /dev/vdc1\n"
10333 "\n"
10334 msgstr ""
10335
10336 #. type: textblock
10337 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3165
10338 msgid ""
10339 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10340 "and just contains the drive letter, without the customary colon separator "
10341 "character."
10342 msgstr ""
10343
10344 #. type: textblock
10345 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3169
10346 msgid ""
10347 "In future we may support other operating systems that also used drive "
10348 "letters, but the keys for those might not be case insensitive and might be "
10349 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10350 "C<h1> etc."
10351 msgstr ""
10352
10353 #. type: textblock
10354 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3174
10355 msgid ""
10356 "For Windows guests, currently only hard drive mappings are returned.  "
10357 "Removable disks (eg. DVD-ROMs) are ignored."
10358 msgstr ""
10359
10360 #. type: textblock
10361 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3177
10362 msgid ""
10363 "For guests that do not use drive mappings, or if the drive mappings could "
10364 "not be determined, this returns an empty hash table."
10365 msgstr ""
10366
10367 #. type: textblock
10368 #: ../fish/guestfish-actions.pod:2045
10369 msgid ""
10370 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10371 "get-mountpoints>, L</inspect-get-filesystems>."
10372 msgstr ""
10373
10374 #. type: =head2
10375 #: ../fish/guestfish-actions.pod:2049
10376 msgid "inspect-get-filesystems"
10377 msgstr "inspect-get-filesystems"
10378
10379 #. type: verbatim
10380 #: ../fish/guestfish-actions.pod:2051
10381 #, no-wrap
10382 msgid ""
10383 " inspect-get-filesystems root\n"
10384 "\n"
10385 msgstr ""
10386 " inspect-get-filesystems корінь\n"
10387 "\n"
10388
10389 #. type: textblock
10390 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3198
10391 msgid ""
10392 "This returns a list of all the filesystems that we think are associated with "
10393 "this operating system.  This includes the root filesystem, other ordinary "
10394 "filesystems, and non-mounted devices like swap partitions."
10395 msgstr ""
10396
10397 #. type: textblock
10398 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3203
10399 msgid ""
10400 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10401 "to be shared between operating systems."
10402 msgstr ""
10403
10404 #. type: textblock
10405 #: ../fish/guestfish-actions.pod:2061
10406 msgid ""
10407 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10408 "get-mountpoints>."
10409 msgstr ""
10410
10411 #. type: =head2
10412 #: ../fish/guestfish-actions.pod:2064
10413 msgid "inspect-get-format"
10414 msgstr "inspect-get-format"
10415
10416 #. type: verbatim
10417 #: ../fish/guestfish-actions.pod:2066
10418 #, no-wrap
10419 msgid ""
10420 " inspect-get-format root\n"
10421 "\n"
10422 msgstr ""
10423 " inspect-get-format корінь\n"
10424 "\n"
10425
10426 #. type: textblock
10427 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3221
10428 msgid ""
10429 "This returns the format of the inspected operating system.  You can use it "
10430 "to detect install images, live CDs and similar."
10431 msgstr ""
10432
10433 #. type: textblock
10434 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3224
10435 msgid "Currently defined formats are:"
10436 msgstr ""
10437
10438 #. type: =item
10439 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3228
10440 msgid "\"installed\""
10441 msgstr "\"installed\""
10442
10443 #. type: textblock
10444 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3230
10445 msgid "This is an installed operating system."
10446 msgstr "Це встановлена операційна система."
10447
10448 #. type: =item
10449 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3232
10450 msgid "\"installer\""
10451 msgstr ""
10452
10453 #. type: textblock
10454 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3234
10455 msgid ""
10456 "The disk image being inspected is not an installed operating system, but a "
10457 "I<bootable> install disk, live CD, or similar."
10458 msgstr ""
10459
10460 #. type: textblock
10461 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3239
10462 msgid "The format of this disk image is not known."
10463 msgstr ""
10464
10465 #. type: =head2
10466 #: ../fish/guestfish-actions.pod:2095
10467 msgid "inspect-get-hostname"
10468 msgstr "inspect-get-hostname"
10469
10470 #. type: verbatim
10471 #: ../fish/guestfish-actions.pod:2097
10472 #, no-wrap
10473 msgid ""
10474 " inspect-get-hostname root\n"
10475 "\n"
10476 msgstr ""
10477 " inspect-get-hostname корінь\n"
10478 "\n"
10479
10480 #. type: textblock
10481 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3259
10482 msgid ""
10483 "This function returns the hostname of the operating system as found by "
10484 "inspection of the guest's configuration files."
10485 msgstr ""
10486
10487 #. type: textblock
10488 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3262
10489 msgid ""
10490 "If the hostname could not be determined, then the string C<unknown> is "
10491 "returned."
10492 msgstr ""
10493
10494 #. type: =head2
10495 #: ../fish/guestfish-actions.pod:2107
10496 msgid "inspect-get-icon"
10497 msgstr ""
10498
10499 #. type: verbatim
10500 #: ../fish/guestfish-actions.pod:2109
10501 #, no-wrap
10502 msgid ""
10503 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10504 "\n"
10505 msgstr ""
10506
10507 #. type: textblock
10508 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3288
10509 msgid ""
10510 "This function returns an icon corresponding to the inspected operating "
10511 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10512 "to PNG if necessary)."
10513 msgstr ""
10514
10515 #. type: textblock
10516 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3292
10517 msgid ""
10518 "If it was not possible to get an icon this function returns a zero-length "
10519 "(non-NULL) buffer.  I<Callers must check for this case>."
10520 msgstr ""
10521
10522 #. type: textblock
10523 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3295
10524 msgid ""
10525 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10526 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10527 "this file will be returned.  You can disable favicons by passing the "
10528 "optional C<favicon> boolean as false (default is true)."
10529 msgstr ""
10530
10531 #. type: textblock
10532 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3301
10533 msgid ""
10534 "If finding the favicon fails, then we look in other places in the guest for "
10535 "a suitable icon."
10536 msgstr ""
10537
10538 #. type: textblock
10539 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3304
10540 msgid ""
10541 "If the optional C<highquality> boolean is true then only high quality icons "
10542 "are returned, which means only icons of high resolution with an alpha "
10543 "channel.  The default (false) is to return any icon we can, even if it is of "
10544 "substandard quality."
10545 msgstr ""
10546
10547 #. type: textblock
10548 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3315
10549 msgid ""
10550 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10551 "before you call this, since it needs to read information from the guest "
10552 "filesystem during the call."
10553 msgstr ""
10554
10555 #. type: textblock
10556 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3321
10557 msgid ""
10558 "B<Security:> The icon data comes from the untrusted guest, and should be "
10559 "treated with caution.  PNG files have been known to contain exploits.  "
10560 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10561 "trying to process or display the icon."
10562 msgstr ""
10563
10564 #. type: textblock
10565 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3329
10566 msgid ""
10567 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10568 "tries to return the largest, highest quality icon available.  The "
10569 "application must scale the icon to the required size."
10570 msgstr ""
10571
10572 #. type: textblock
10573 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3336
10574 msgid ""
10575 "Extracting icons from Windows guests requires the external C<wrestool> "
10576 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10577 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10578 "installed separately."
10579 msgstr ""
10580
10581 #. type: textblock
10582 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3343
10583 msgid ""
10584 "Operating system icons are usually trademarks.  Seek legal advice before "
10585 "using trademarks in applications."
10586 msgstr ""
10587
10588 #. type: =head2
10589 #: ../fish/guestfish-actions.pod:2173
10590 msgid "inspect-get-major-version"
10591 msgstr "inspect-get-major-version"
10592
10593 #. type: verbatim
10594 #: ../fish/guestfish-actions.pod:2175
10595 #, no-wrap
10596 msgid ""
10597 " inspect-get-major-version root\n"
10598 "\n"
10599 msgstr ""
10600 " inspect-get-major-version корінь\n"
10601 "\n"
10602
10603 #. type: textblock
10604 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3384
10605 msgid ""
10606 "This returns the major version number of the inspected operating system."
10607 msgstr ""
10608
10609 #. type: textblock
10610 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3387
10611 msgid ""
10612 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10613 "popular public names used by the operating system.  Notably the operating "
10614 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10615 "1).  You can find out the real versions corresponding to releases of Windows "
10616 "by consulting Wikipedia or MSDN."
10617 msgstr ""
10618
10619 #. type: textblock
10620 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
10621 #: ../src/guestfs-actions.pod:3394 ../src/guestfs-actions.pod:3411
10622 msgid "If the version could not be determined, then C<0> is returned."
10623 msgstr ""
10624
10625 #. type: =head2
10626 #: ../fish/guestfish-actions.pod:2191
10627 msgid "inspect-get-minor-version"
10628 msgstr "inspect-get-minor-version"
10629
10630 #. type: verbatim
10631 #: ../fish/guestfish-actions.pod:2193
10632 #, no-wrap
10633 msgid ""
10634 " inspect-get-minor-version root\n"
10635 "\n"
10636 msgstr ""
10637 " inspect-get-minor-version корінь\n"
10638 "\n"
10639
10640 #. type: textblock
10641 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3408
10642 msgid ""
10643 "This returns the minor version number of the inspected operating system."
10644 msgstr ""
10645
10646 #. type: textblock
10647 #: ../fish/guestfish-actions.pod:2200
10648 msgid ""
10649 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10650 "get-major-version>."
10651 msgstr ""
10652
10653 #. type: =head2
10654 #: ../fish/guestfish-actions.pod:2203
10655 msgid "inspect-get-mountpoints"
10656 msgstr "inspect-get-mountpoints"
10657
10658 #. type: verbatim
10659 #: ../fish/guestfish-actions.pod:2205
10660 #, no-wrap
10661 msgid ""
10662 " inspect-get-mountpoints root\n"
10663 "\n"
10664 msgstr ""
10665 " inspect-get-mountpoints корінь\n"
10666 "\n"
10667
10668 #. type: textblock
10669 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3426
10670 msgid ""
10671 "This returns a hash of where we think the filesystems associated with this "
10672 "operating system should be mounted.  Callers should note that this is at "
10673 "best an educated guess made by reading configuration files such as C</etc/"
10674 "fstab>.  I<In particular note> that this may return filesystems which are "
10675 "non-existent or not mountable and callers should be prepared to handle or "
10676 "ignore failures if they try to mount them."
10677 msgstr ""
10678
10679 #. type: textblock
10680 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3435
10681 msgid ""
10682 "Each element in the returned hashtable has a key which is the path of the "
10683 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10684 "mounted there (eg. C</dev/sda1>)."
10685 msgstr ""
10686
10687 #. type: textblock
10688 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3440
10689 msgid ""
10690 "Non-mounted devices such as swap devices are I<not> returned in this list."
10691 msgstr ""
10692
10693 #. type: textblock
10694 #: ../fish/guestfish-actions.pod:2224
10695 msgid ""
10696 "For operating systems like Windows which still use drive letters, this call "
10697 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10698 "information about the mapping of drive letters to partitions, see L</inspect-"
10699 "get-drive-mappings>."
10700 msgstr ""
10701
10702 #. type: textblock
10703 #: ../fish/guestfish-actions.pod:2230
10704 msgid ""
10705 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10706 "get-filesystems>."
10707 msgstr ""
10708
10709 #. type: =head2
10710 #: ../fish/guestfish-actions.pod:2233
10711 msgid "inspect-get-package-format"
10712 msgstr "inspect-get-package-format"
10713
10714 #. type: verbatim
10715 #: ../fish/guestfish-actions.pod:2235
10716 #, no-wrap
10717 msgid ""
10718 " inspect-get-package-format root\n"
10719 "\n"
10720 msgstr ""
10721 " inspect-get-package-format корінь\n"
10722 "\n"
10723
10724 #. type: textblock
10725 #: ../fish/guestfish-actions.pod:2237
10726 msgid ""
10727 "This function and L</inspect-get-package-management> return the package "
10728 "format and package management tool used by the inspected operating system.  "
10729 "For example for Fedora these functions would return C<rpm> (package format) "
10730 "and C<yum> (package management)."
10731 msgstr ""
10732
10733 #. type: textblock
10734 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3472
10735 msgid ""
10736 "This returns the string C<unknown> if we could not determine the package "
10737 "format I<or> if the operating system does not have a real packaging system "
10738 "(eg. Windows)."
10739 msgstr ""
10740
10741 #. type: textblock
10742 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3476
10743 msgid ""
10744 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10745 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10746 msgstr ""
10747
10748 #. type: =head2
10749 #: ../fish/guestfish-actions.pod:2253
10750 msgid "inspect-get-package-management"
10751 msgstr "inspect-get-package-management"
10752
10753 #. type: verbatim
10754 #: ../fish/guestfish-actions.pod:2255
10755 #, no-wrap
10756 msgid ""
10757 " inspect-get-package-management root\n"
10758 "\n"
10759 msgstr ""
10760 " inspect-get-package-management корінь\n"
10761 "\n"
10762
10763 #. type: textblock
10764 #: ../fish/guestfish-actions.pod:2257
10765 msgid ""
10766 "L</inspect-get-package-format> and this function return the package format "
10767 "and package management tool used by the inspected operating system.  For "
10768 "example for Fedora these functions would return C<rpm> (package format) and "
10769 "C<yum> (package management)."
10770 msgstr ""
10771
10772 #. type: textblock
10773 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3499
10774 msgid ""
10775 "This returns the string C<unknown> if we could not determine the package "
10776 "management tool I<or> if the operating system does not have a real packaging "
10777 "system (eg. Windows)."
10778 msgstr ""
10779
10780 #. type: textblock
10781 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3503
10782 msgid ""
10783 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10784 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10785 "versions of libguestfs may return other strings."
10786 msgstr ""
10787
10788 #. type: =head2
10789 #: ../fish/guestfish-actions.pod:2274
10790 msgid "inspect-get-product-name"
10791 msgstr "inspect-get-product-name"
10792
10793 #. type: verbatim
10794 #: ../fish/guestfish-actions.pod:2276
10795 #, no-wrap
10796 msgid ""
10797 " inspect-get-product-name root\n"
10798 "\n"
10799 msgstr ""
10800 " inspect-get-product-name корінь\n"
10801 "\n"
10802
10803 #. type: textblock
10804 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3521
10805 msgid ""
10806 "This returns the product name of the inspected operating system.  The "
10807 "product name is generally some freeform string which can be displayed to the "
10808 "user, but should not be parsed by programs."
10809 msgstr ""
10810
10811 #. type: textblock
10812 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3526
10813 msgid ""
10814 "If the product name could not be determined, then the string C<unknown> is "
10815 "returned."
10816 msgstr ""
10817
10818 #. type: =head2
10819 #: ../fish/guestfish-actions.pod:2288
10820 msgid "inspect-get-product-variant"
10821 msgstr ""
10822
10823 #. type: verbatim
10824 #: ../fish/guestfish-actions.pod:2290
10825 #, no-wrap
10826 msgid ""
10827 " inspect-get-product-variant root\n"
10828 "\n"
10829 msgstr ""
10830
10831 #. type: textblock
10832 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3542
10833 msgid "This returns the product variant of the inspected operating system."
10834 msgstr ""
10835
10836 #. type: textblock
10837 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3545
10838 msgid ""
10839 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10840 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10841 "is usually a string such as C<Client> or C<Server> (other values are "
10842 "possible).  This can be used to distinguish consumer and enterprise versions "
10843 "of Windows that have the same version number (for example, Windows 7 and "
10844 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10845 "the latter is C<Server>)."
10846 msgstr ""
10847
10848 #. type: textblock
10849 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3554
10850 msgid ""
10851 "For enterprise Linux guests, in future we intend this to return the product "
10852 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10853 "implemented at present."
10854 msgstr ""
10855
10856 #. type: textblock
10857 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3558
10858 msgid ""
10859 "If the product variant could not be determined, then the string C<unknown> "
10860 "is returned."
10861 msgstr ""
10862
10863 #. type: textblock
10864 #: ../fish/guestfish-actions.pod:2311
10865 msgid ""
10866 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10867 "get-product-name>, L</inspect-get-major-version>."
10868 msgstr ""
10869
10870 #. type: =head2
10871 #: ../fish/guestfish-actions.pod:2315
10872 msgid "inspect-get-roots"
10873 msgstr "inspect-get-roots"
10874
10875 #. type: verbatim
10876 #: ../fish/guestfish-actions.pod:2317
10877 #, no-wrap
10878 msgid ""
10879 " inspect-get-roots\n"
10880 "\n"
10881 msgstr ""
10882 " inspect-get-roots\n"
10883 "\n"
10884
10885 #. type: textblock
10886 #: ../fish/guestfish-actions.pod:2319
10887 msgid ""
10888 "This function is a convenient way to get the list of root devices, as "
10889 "returned from a previous call to L</inspect-os>, but without redoing the "
10890 "whole inspection process."
10891 msgstr ""
10892
10893 #. type: textblock
10894 #: ../fish/guestfish-actions.pod:2323
10895 msgid ""
10896 "This returns an empty list if either no root devices were found or the "
10897 "caller has not called L</inspect-os>."
10898 msgstr ""
10899
10900 #. type: =head2
10901 #: ../fish/guestfish-actions.pod:2328
10902 msgid "inspect-get-type"
10903 msgstr "inspect-get-type"
10904
10905 #. type: verbatim
10906 #: ../fish/guestfish-actions.pod:2330
10907 #, no-wrap
10908 msgid ""
10909 " inspect-get-type root\n"
10910 "\n"
10911 msgstr ""
10912 " inspect-get-type корінь\n"
10913 "\n"
10914
10915 #. type: textblock
10916 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3596
10917 msgid ""
10918 "This returns the type of the inspected operating system.  Currently defined "
10919 "types are:"
10920 msgstr ""
10921
10922 #. type: =item
10923 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3601
10924 msgid "\"linux\""
10925 msgstr "\"linux\""
10926
10927 #. type: textblock
10928 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3603
10929 msgid "Any Linux-based operating system."
10930 msgstr ""
10931
10932 #. type: textblock
10933 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3607
10934 msgid "Any Microsoft Windows operating system."
10935 msgstr ""
10936
10937 #. type: =item
10938 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3609
10939 msgid "\"freebsd\""
10940 msgstr "\"freebsd\""
10941
10942 #. type: textblock
10943 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3611
10944 msgid "FreeBSD."
10945 msgstr "FreeBSD."
10946
10947 #. type: =item
10948 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3613
10949 msgid "\"netbsd\""
10950 msgstr ""
10951
10952 #. type: textblock
10953 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3615
10954 msgid "NetBSD."
10955 msgstr ""
10956
10957 #. type: textblock
10958 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3619
10959 msgid "The operating system type could not be determined."
10960 msgstr ""
10961
10962 #. type: =head2
10963 #: ../fish/guestfish-actions.pod:2364
10964 msgid "inspect-get-windows-current-control-set"
10965 msgstr ""
10966
10967 #. type: verbatim
10968 #: ../fish/guestfish-actions.pod:2366
10969 #, no-wrap
10970 msgid ""
10971 " inspect-get-windows-current-control-set root\n"
10972 "\n"
10973 msgstr ""
10974
10975 #. type: textblock
10976 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3639
10977 msgid ""
10978 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10979 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10980 msgstr ""
10981
10982 #. type: textblock
10983 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3642
10984 msgid ""
10985 "This call assumes that the guest is Windows and that the Registry could be "
10986 "examined by inspection.  If this is not the case then an error is returned."
10987 msgstr ""
10988
10989 #. type: =head2
10990 #: ../fish/guestfish-actions.pod:2377
10991 msgid "inspect-get-windows-systemroot"
10992 msgstr "inspect-get-windows-systemroot"
10993
10994 #. type: verbatim
10995 #: ../fish/guestfish-actions.pod:2379
10996 #, no-wrap
10997 msgid ""
10998 " inspect-get-windows-systemroot root\n"
10999 "\n"
11000 msgstr ""
11001 " inspect-get-windows-systemroot корінь\n"
11002 "\n"
11003
11004 #. type: textblock
11005 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3659
11006 msgid ""
11007 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11008 "is a directory path such as C</WINDOWS>."
11009 msgstr ""
11010
11011 #. type: textblock
11012 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3662
11013 msgid ""
11014 "This call assumes that the guest is Windows and that the systemroot could be "
11015 "determined by inspection.  If this is not the case then an error is returned."
11016 msgstr ""
11017
11018 #. type: =head2
11019 #: ../fish/guestfish-actions.pod:2390
11020 msgid "inspect-is-live"
11021 msgstr "inspect-is-live"
11022
11023 #. type: verbatim
11024 #: ../fish/guestfish-actions.pod:2392
11025 #, no-wrap
11026 msgid ""
11027 " inspect-is-live root\n"
11028 "\n"
11029 msgstr ""
11030 " inspect-is-live корінь\n"
11031 "\n"
11032
11033 #. type: textblock
11034 #: ../fish/guestfish-actions.pod:2394
11035 msgid ""
11036 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11037 "then this returns true if a live image was detected on the disk."
11038 msgstr ""
11039
11040 #. type: =head2
11041 #: ../fish/guestfish-actions.pod:2400
11042 msgid "inspect-is-multipart"
11043 msgstr "inspect-is-multipart"
11044
11045 #. type: verbatim
11046 #: ../fish/guestfish-actions.pod:2402
11047 #, no-wrap
11048 msgid ""
11049 " inspect-is-multipart root\n"
11050 "\n"
11051 msgstr ""
11052 " inspect-is-multipart корінь\n"
11053 "\n"
11054
11055 #. type: textblock
11056 #: ../fish/guestfish-actions.pod:2404
11057 msgid ""
11058 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11059 "then this returns true if the disk is part of a set."
11060 msgstr ""
11061
11062 #. type: =head2
11063 #: ../fish/guestfish-actions.pod:2410
11064 msgid "inspect-is-netinst"
11065 msgstr "inspect-is-netinst"
11066
11067 #. type: verbatim
11068 #: ../fish/guestfish-actions.pod:2412
11069 #, no-wrap
11070 msgid ""
11071 " inspect-is-netinst root\n"
11072 "\n"
11073 msgstr ""
11074 " inspect-is-netinst корінь\n"
11075 "\n"
11076
11077 #. type: textblock
11078 #: ../fish/guestfish-actions.pod:2414
11079 msgid ""
11080 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11081 "then this returns true if the disk is a network installer, ie. not a self-"
11082 "contained install CD but one which is likely to require network access to "
11083 "complete the install."
11084 msgstr ""
11085
11086 #. type: =head2
11087 #: ../fish/guestfish-actions.pod:2422
11088 msgid "inspect-list-applications"
11089 msgstr "inspect-list-applications"
11090
11091 #. type: verbatim
11092 #: ../fish/guestfish-actions.pod:2424
11093 #, no-wrap
11094 msgid ""
11095 " inspect-list-applications root\n"
11096 "\n"
11097 msgstr ""
11098 " inspect-list-applications кореневий_каталог\n"
11099 "\n"
11100
11101 #. type: textblock
11102 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3729
11103 msgid "Return the list of applications installed in the operating system."
11104 msgstr ""
11105
11106 #. type: textblock
11107 #: ../fish/guestfish-actions.pod:2428
11108 msgid ""
11109 "I<Note:> This call works differently from other parts of the inspection "
11110 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11111 "then mount up the disks, before calling this.  Listing applications is a "
11112 "significantly more difficult operation which requires access to the full "
11113 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
11114 "are just returning data cached in the libguestfs handle, this call actually "
11115 "reads parts of the mounted filesystems during the call."
11116 msgstr ""
11117
11118 #. type: textblock
11119 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3741
11120 msgid ""
11121 "This returns an empty list if the inspection code was not able to determine "
11122 "the list of applications."
11123 msgstr ""
11124
11125 #. type: textblock
11126 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3744
11127 msgid "The application structure contains the following fields:"
11128 msgstr ""
11129
11130 #. type: =item
11131 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3748
11132 msgid "C<app_name>"
11133 msgstr "C<app_name>"
11134
11135 #. type: textblock
11136 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3750
11137 msgid ""
11138 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11139 "guests, this is the package name."
11140 msgstr ""
11141
11142 #. type: =item
11143 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3753
11144 msgid "C<app_display_name>"
11145 msgstr "C<app_display_name>"
11146
11147 #. type: textblock
11148 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3755
11149 msgid ""
11150 "The display name of the application, sometimes localized to the install "
11151 "language of the guest operating system."
11152 msgstr ""
11153
11154 #. type: textblock
11155 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3758
11156 msgid ""
11157 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11158 "to display something can use C<app_name> instead."
11159 msgstr ""
11160
11161 #. type: =item
11162 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3761
11163 msgid "C<app_epoch>"
11164 msgstr "C<app_epoch>"
11165
11166 #. type: textblock
11167 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3763
11168 msgid ""
11169 "For package managers which use epochs, this contains the epoch of the "
11170 "package (an integer).  If unavailable, this is returned as C<0>."
11171 msgstr ""
11172
11173 #. type: =item
11174 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3766
11175 msgid "C<app_version>"
11176 msgstr "C<app_version>"
11177
11178 #. type: textblock
11179 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3768
11180 msgid ""
11181 "The version string of the application or package.  If unavailable this is "
11182 "returned as an empty string C<\"\">."
11183 msgstr ""
11184
11185 #. type: =item
11186 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3771
11187 msgid "C<app_release>"
11188 msgstr "C<app_release>"
11189
11190 #. type: textblock
11191 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3773
11192 msgid ""
11193 "The release string of the application or package, for package managers that "
11194 "use this.  If unavailable this is returned as an empty string C<\"\">."
11195 msgstr ""
11196
11197 #. type: =item
11198 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3777
11199 msgid "C<app_install_path>"
11200 msgstr "C<app_install_path>"
11201
11202 #. type: textblock
11203 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3779
11204 msgid ""
11205 "The installation path of the application (on operating systems such as "
11206 "Windows which use installation paths).  This path is in the format used by "
11207 "the guest operating system, it is not a libguestfs path."
11208 msgstr ""
11209
11210 #. type: textblock
11211 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3784
11212 msgid "If unavailable this is returned as an empty string C<\"\">."
11213 msgstr ""
11214
11215 #. type: =item
11216 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3786
11217 msgid "C<app_trans_path>"
11218 msgstr "C<app_trans_path>"
11219
11220 #. type: textblock
11221 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3788
11222 msgid ""
11223 "The install path translated into a libguestfs path.  If unavailable this is "
11224 "returned as an empty string C<\"\">."
11225 msgstr ""
11226
11227 #. type: =item
11228 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3791
11229 msgid "C<app_publisher>"
11230 msgstr "C<app_publisher>"
11231
11232 #. type: textblock
11233 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3793
11234 msgid ""
11235 "The name of the publisher of the application, for package managers that use "
11236 "this.  If unavailable this is returned as an empty string C<\"\">."
11237 msgstr ""
11238
11239 #. type: =item
11240 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3797
11241 msgid "C<app_url>"
11242 msgstr "C<app_url>"
11243
11244 #. type: textblock
11245 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3799
11246 msgid ""
11247 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11248 "returned as an empty string C<\"\">."
11249 msgstr ""
11250
11251 #. type: =item
11252 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3802
11253 msgid "C<app_source_package>"
11254 msgstr "C<app_source_package>"
11255
11256 #. type: textblock
11257 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3804
11258 msgid ""
11259 "For packaging systems which support this, the name of the source package.  "
11260 "If unavailable this is returned as an empty string C<\"\">."
11261 msgstr ""
11262
11263 #. type: =item
11264 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3807
11265 msgid "C<app_summary>"
11266 msgstr "C<app_summary>"
11267
11268 #. type: textblock
11269 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3809
11270 msgid ""
11271 "A short (usually one line) description of the application or package.  If "
11272 "unavailable this is returned as an empty string C<\"\">."
11273 msgstr ""
11274
11275 #. type: =item
11276 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3812
11277 msgid "C<app_description>"
11278 msgstr "C<app_description>"
11279
11280 #. type: textblock
11281 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3814
11282 msgid ""
11283 "A longer description of the application or package.  If unavailable this is "
11284 "returned as an empty string C<\"\">."
11285 msgstr ""
11286
11287 #. type: =head2
11288 #: ../fish/guestfish-actions.pod:2518
11289 msgid "inspect-os"
11290 msgstr "inspect-os"
11291
11292 #. type: verbatim
11293 #: ../fish/guestfish-actions.pod:2520
11294 #, no-wrap
11295 msgid ""
11296 " inspect-os\n"
11297 "\n"
11298 msgstr ""
11299 " inspect-os\n"
11300 "\n"
11301
11302 #. type: textblock
11303 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3832
11304 msgid ""
11305 "This function uses other libguestfs functions and certain heuristics to "
11306 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11307 "for operating systems."
11308 msgstr ""
11309
11310 #. type: textblock
11311 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3836
11312 msgid "The list returned is empty if no operating systems were found."
11313 msgstr ""
11314
11315 #. type: textblock
11316 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3838
11317 msgid ""
11318 "If one operating system was found, then this returns a list with a single "
11319 "element, which is the name of the root filesystem of this operating system.  "
11320 "It is also possible for this function to return a list containing more than "
11321 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11322 "element being the root filesystem of one of the operating systems."
11323 msgstr ""
11324
11325 #. type: textblock
11326 #: ../fish/guestfish-actions.pod:2535
11327 msgid ""
11328 "You can pass the root string(s) returned to other L</inspect-get-*> "
11329 "functions in order to query further information about each operating system, "
11330 "such as the name and version."
11331 msgstr ""
11332
11333 #. type: textblock
11334 #: ../fish/guestfish-actions.pod:2540
11335 msgid ""
11336 "This function uses other libguestfs features such as L</mount-ro> and L</"
11337 "umount-all> in order to mount and unmount filesystems and look at the "
11338 "contents.  This should be called with no disks currently mounted.  The "
11339 "function may also use Augeas, so any existing Augeas handle will be closed."
11340 msgstr ""
11341
11342 #. type: textblock
11343 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3856
11344 msgid ""
11345 "This function cannot decrypt encrypted disks.  The caller must do that first "
11346 "(supplying the necessary keys) if the disk is encrypted."
11347 msgstr ""
11348
11349 #. type: textblock
11350 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
11351 #: ../fish/guestfish-actions.pod:2809
11352 msgid "See also L</list-filesystems>."
11353 msgstr "Див. також L</list-filesystems>."
11354
11355 #. type: =head2
11356 #: ../fish/guestfish-actions.pod:2554
11357 msgid "is-blockdev"
11358 msgstr "is-blockdev"
11359
11360 #. type: verbatim
11361 #: ../fish/guestfish-actions.pod:2556
11362 #, no-wrap
11363 msgid ""
11364 " is-blockdev path\n"
11365 "\n"
11366 msgstr ""
11367 " is-blockdev шлях\n"
11368 "\n"
11369
11370 #. type: textblock
11371 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3876
11372 msgid ""
11373 "This returns C<true> if and only if there is a block device with the given "
11374 "C<path> name."
11375 msgstr ""
11376
11377 #. type: textblock
11378 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
11379 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
11380 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
11381 #: ../fish/guestfish-actions.pod:2660
11382 msgid "See also L</stat>."
11383 msgstr "Див. також L</stat>."
11384
11385 #. type: =head2
11386 #: ../fish/guestfish-actions.pod:2563
11387 msgid "is-busy"
11388 msgstr "is-busy"
11389
11390 #. type: verbatim
11391 #: ../fish/guestfish-actions.pod:2565
11392 #, no-wrap
11393 msgid ""
11394 " is-busy\n"
11395 "\n"
11396 msgstr ""
11397 " is-busy\n"
11398 "\n"
11399
11400 #. type: textblock
11401 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3890
11402 msgid ""
11403 "This returns true iff this handle is busy processing a command (in the "
11404 "C<BUSY> state)."
11405 msgstr ""
11406
11407 #. type: =head2
11408 #: ../fish/guestfish-actions.pod:2572
11409 msgid "is-chardev"
11410 msgstr "is-chardev"
11411
11412 #. type: verbatim
11413 #: ../fish/guestfish-actions.pod:2574
11414 #, no-wrap
11415 msgid ""
11416 " is-chardev path\n"
11417 "\n"
11418 msgstr ""
11419 " is-chardev шлях\n"
11420 "\n"
11421
11422 #. type: textblock
11423 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3905
11424 msgid ""
11425 "This returns C<true> if and only if there is a character device with the "
11426 "given C<path> name."
11427 msgstr ""
11428
11429 #. type: =head2
11430 #: ../fish/guestfish-actions.pod:2581
11431 msgid "is-config"
11432 msgstr "is-config"
11433
11434 #. type: verbatim
11435 #: ../fish/guestfish-actions.pod:2583
11436 #, no-wrap
11437 msgid ""
11438 " is-config\n"
11439 "\n"
11440 msgstr ""
11441 " is-config\n"
11442 "\n"
11443
11444 #. type: textblock
11445 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3919
11446 msgid ""
11447 "This returns true iff this handle is being configured (in the C<CONFIG> "
11448 "state)."
11449 msgstr ""
11450
11451 #. type: =head2
11452 #: ../fish/guestfish-actions.pod:2590
11453 msgid "is-dir"
11454 msgstr "is-dir"
11455
11456 #. type: verbatim
11457 #: ../fish/guestfish-actions.pod:2592
11458 #, no-wrap
11459 msgid ""
11460 " is-dir path\n"
11461 "\n"
11462 msgstr ""
11463 " is-dir шлях\n"
11464 "\n"
11465
11466 #. type: textblock
11467 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3934
11468 msgid ""
11469 "This returns C<true> if and only if there is a directory with the given "
11470 "C<path> name.  Note that it returns false for other objects like files."
11471 msgstr ""
11472
11473 #. type: =head2
11474 #: ../fish/guestfish-actions.pod:2600
11475 msgid "is-fifo"
11476 msgstr "is-fifo"
11477
11478 #. type: verbatim
11479 #: ../fish/guestfish-actions.pod:2602
11480 #, no-wrap
11481 msgid ""
11482 " is-fifo path\n"
11483 "\n"
11484 msgstr ""
11485 " is-fifo шлях\n"
11486 "\n"
11487
11488 #. type: textblock
11489 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3950
11490 msgid ""
11491 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11492 "given C<path> name."
11493 msgstr ""
11494
11495 #. type: =head2
11496 #: ../fish/guestfish-actions.pod:2609
11497 msgid "is-file"
11498 msgstr "is-file"
11499
11500 #. type: verbatim
11501 #: ../fish/guestfish-actions.pod:2611
11502 #, no-wrap
11503 msgid ""
11504 " is-file path\n"
11505 "\n"
11506 msgstr ""
11507 " is-file шлях\n"
11508 "\n"
11509
11510 #. type: textblock
11511 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3965
11512 msgid ""
11513 "This returns C<true> if and only if there is a regular file with the given "
11514 "C<path> name.  Note that it returns false for other objects like directories."
11515 msgstr ""
11516
11517 #. type: =head2
11518 #: ../fish/guestfish-actions.pod:2619
11519 msgid "is-launching"
11520 msgstr "is-launching"
11521
11522 #. type: verbatim
11523 #: ../fish/guestfish-actions.pod:2621
11524 #, no-wrap
11525 msgid ""
11526 " is-launching\n"
11527 "\n"
11528 msgstr ""
11529 " is-launching\n"
11530 "\n"
11531
11532 #. type: textblock
11533 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3980
11534 msgid ""
11535 "This returns true iff this handle is launching the subprocess (in the "
11536 "C<LAUNCHING> state)."
11537 msgstr ""
11538
11539 #. type: =head2
11540 #: ../fish/guestfish-actions.pod:2628
11541 msgid "is-lv"
11542 msgstr "is-lv"
11543
11544 #. type: verbatim
11545 #: ../fish/guestfish-actions.pod:2630
11546 #, no-wrap
11547 msgid ""
11548 " is-lv device\n"
11549 "\n"
11550 msgstr ""
11551 " is-lv пристрій\n"
11552 "\n"
11553
11554 #. type: textblock
11555 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:3995
11556 msgid ""
11557 "This command tests whether C<device> is a logical volume, and returns true "
11558 "iff this is the case."
11559 msgstr ""
11560
11561 #. type: =head2
11562 #: ../fish/guestfish-actions.pod:2635
11563 msgid "is-ready"
11564 msgstr "is-ready"
11565
11566 #. type: verbatim
11567 #: ../fish/guestfish-actions.pod:2637
11568 #, no-wrap
11569 msgid ""
11570 " is-ready\n"
11571 "\n"
11572 msgstr ""
11573 " is-ready\n"
11574 "\n"
11575
11576 #. type: textblock
11577 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4007
11578 msgid ""
11579 "This returns true iff this handle is ready to accept commands (in the "
11580 "C<READY> state)."
11581 msgstr ""
11582
11583 #. type: =head2
11584 #: ../fish/guestfish-actions.pod:2644
11585 msgid "is-socket"
11586 msgstr "is-socket"
11587
11588 #. type: verbatim
11589 #: ../fish/guestfish-actions.pod:2646
11590 #, no-wrap
11591 msgid ""
11592 " is-socket path\n"
11593 "\n"
11594 msgstr ""
11595 " is-socket шлях\n"
11596 "\n"
11597
11598 #. type: textblock
11599 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4022
11600 msgid ""
11601 "This returns C<true> if and only if there is a Unix domain socket with the "
11602 "given C<path> name."
11603 msgstr ""
11604
11605 #. type: =head2
11606 #: ../fish/guestfish-actions.pod:2653
11607 msgid "is-symlink"
11608 msgstr "is-symlink"
11609
11610 #. type: verbatim
11611 #: ../fish/guestfish-actions.pod:2655
11612 #, no-wrap
11613 msgid ""
11614 " is-symlink path\n"
11615 "\n"
11616 msgstr ""
11617 " is-symlink шлях\n"
11618 "\n"
11619
11620 #. type: textblock
11621 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4037
11622 msgid ""
11623 "This returns C<true> if and only if there is a symbolic link with the given "
11624 "C<path> name."
11625 msgstr ""
11626
11627 #. type: =head2
11628 #: ../fish/guestfish-actions.pod:2662
11629 msgid "is-zero"
11630 msgstr ""
11631
11632 #. type: verbatim
11633 #: ../fish/guestfish-actions.pod:2664
11634 #, no-wrap
11635 msgid ""
11636 " is-zero path\n"
11637 "\n"
11638 msgstr ""
11639
11640 #. type: textblock
11641 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4052
11642 msgid ""
11643 "This returns true iff the file exists and the file is empty or it contains "
11644 "all zero bytes."
11645 msgstr ""
11646
11647 #. type: =head2
11648 #: ../fish/guestfish-actions.pod:2669
11649 msgid "is-zero-device"
11650 msgstr ""
11651
11652 #. type: verbatim
11653 #: ../fish/guestfish-actions.pod:2671
11654 #, no-wrap
11655 msgid ""
11656 " is-zero-device device\n"
11657 "\n"
11658 msgstr ""
11659
11660 #. type: textblock
11661 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4065
11662 msgid "This returns true iff the device exists and contains all zero bytes."
11663 msgstr ""
11664
11665 #. type: textblock
11666 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4067
11667 msgid "Note that for large devices this can take a long time to run."
11668 msgstr ""
11669
11670 #. type: =head2
11671 #: ../fish/guestfish-actions.pod:2677
11672 msgid "kill-subprocess"
11673 msgstr "kill-subprocess"
11674
11675 #. type: verbatim
11676 #: ../fish/guestfish-actions.pod:2679
11677 #, no-wrap
11678 msgid ""
11679 " kill-subprocess\n"
11680 "\n"
11681 msgstr ""
11682 " kill-subprocess\n"
11683 "\n"
11684
11685 #. type: textblock
11686 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4078
11687 msgid "This kills the qemu subprocess.  You should never need to call this."
11688 msgstr ""
11689
11690 #. type: =head2
11691 #: ../fish/guestfish-actions.pod:2683
11692 msgid "launch"
11693 msgstr "launch"
11694
11695 #. type: =head2
11696 #: ../fish/guestfish-actions.pod:2685
11697 msgid "run"
11698 msgstr ""
11699
11700 #. type: verbatim
11701 #: ../fish/guestfish-actions.pod:2687
11702 #, no-wrap
11703 msgid ""
11704 " launch\n"
11705 "\n"
11706 msgstr ""
11707 " launch\n"
11708 "\n"
11709
11710 #. type: textblock
11711 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4089
11712 msgid ""
11713 "Internally libguestfs is implemented by running a virtual machine using "
11714 "L<qemu(1)>."
11715 msgstr ""
11716
11717 #. type: textblock
11718 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4092
11719 msgid ""
11720 "You should call this after configuring the handle (eg. adding drives) but "
11721 "before performing any actions."
11722 msgstr ""
11723
11724 #. type: =head2
11725 #: ../fish/guestfish-actions.pod:2695
11726 msgid "lchown"
11727 msgstr "lchown"
11728
11729 #. type: verbatim
11730 #: ../fish/guestfish-actions.pod:2697
11731 #, no-wrap
11732 msgid ""
11733 " lchown owner group path\n"
11734 "\n"
11735 msgstr ""
11736 " lchown власник група шлях\n"
11737 "\n"
11738
11739 #. type: textblock
11740 #: ../fish/guestfish-actions.pod:2699
11741 msgid ""
11742 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11743 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11744 "target."
11745 msgstr ""
11746
11747 #. type: =head2
11748 #: ../fish/guestfish-actions.pod:2707
11749 msgid "lgetxattr"
11750 msgstr "lgetxattr"
11751
11752 #. type: verbatim
11753 #: ../fish/guestfish-actions.pod:2709
11754 #, no-wrap
11755 msgid ""
11756 " lgetxattr path name\n"
11757 "\n"
11758 msgstr ""
11759 " lgetxattr шлях назва\n"
11760 "\n"
11761
11762 #. type: textblock
11763 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4132
11764 msgid ""
11765 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11766 "is a symlink, then this call returns an extended attribute from the symlink."
11767 msgstr ""
11768
11769 #. type: textblock
11770 #: ../fish/guestfish-actions.pod:2725
11771 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11772 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11773
11774 #. type: =head2
11775 #: ../fish/guestfish-actions.pod:2727
11776 msgid "lgetxattrs"
11777 msgstr "lgetxattrs"
11778
11779 #. type: verbatim
11780 #: ../fish/guestfish-actions.pod:2729
11781 #, no-wrap
11782 msgid ""
11783 " lgetxattrs path\n"
11784 "\n"
11785 msgstr ""
11786 " lgetxattrs шлях\n"
11787 "\n"
11788
11789 #. type: textblock
11790 #: ../fish/guestfish-actions.pod:2731
11791 msgid ""
11792 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11793 "it returns the extended attributes of the link itself."
11794 msgstr ""
11795
11796 #. type: =head2
11797 #: ../fish/guestfish-actions.pod:2735
11798 msgid "list-9p"
11799 msgstr ""
11800
11801 #. type: verbatim
11802 #: ../fish/guestfish-actions.pod:2737
11803 #, no-wrap
11804 msgid ""
11805 " list-9p\n"
11806 "\n"
11807 msgstr ""
11808
11809 #. type: textblock
11810 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4175
11811 msgid ""
11812 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11813 "returned."
11814 msgstr ""
11815
11816 #. type: =head2
11817 #: ../fish/guestfish-actions.pod:2742
11818 msgid "list-devices"
11819 msgstr "list-devices"
11820
11821 #. type: verbatim
11822 #: ../fish/guestfish-actions.pod:2744
11823 #, no-wrap
11824 msgid ""
11825 " list-devices\n"
11826 "\n"
11827 msgstr ""
11828 " list-devices\n"
11829 "\n"
11830
11831 #. type: textblock
11832 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4189
11833 msgid "List all the block devices."
11834 msgstr ""
11835
11836 #. type: textblock
11837 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4191
11838 msgid "The full block device names are returned, eg. C</dev/sda>."
11839 msgstr ""
11840
11841 #. type: =head2
11842 #: ../fish/guestfish-actions.pod:2752
11843 msgid "list-dm-devices"
11844 msgstr ""
11845
11846 #. type: verbatim
11847 #: ../fish/guestfish-actions.pod:2754
11848 #, no-wrap
11849 msgid ""
11850 " list-dm-devices\n"
11851 "\n"
11852 msgstr ""
11853
11854 #. type: textblock
11855 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4206
11856 msgid "List all device mapper devices."
11857 msgstr ""
11858
11859 #. type: textblock
11860 #: ../fish/guestfish-actions.pod:2758
11861 msgid ""
11862 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11863 "previous call to L</luks-open>."
11864 msgstr ""
11865
11866 #. type: textblock
11867 #: ../fish/guestfish-actions.pod:2761
11868 msgid ""
11869 "Device mapper devices which correspond to logical volumes are I<not> "
11870 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11871 msgstr ""
11872
11873 #. type: =head2
11874 #: ../fish/guestfish-actions.pod:2765
11875 msgid "list-filesystems"
11876 msgstr "list-filesystems"
11877
11878 #. type: verbatim
11879 #: ../fish/guestfish-actions.pod:2767
11880 #, no-wrap
11881 msgid ""
11882 " list-filesystems\n"
11883 "\n"
11884 msgstr ""
11885 " list-filesystems\n"
11886 "\n"
11887
11888 #. type: textblock
11889 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4226
11890 msgid ""
11891 "This inspection command looks for filesystems on partitions, block devices "
11892 "and logical volumes, returning a list of devices containing filesystems and "
11893 "their type."
11894 msgstr ""
11895
11896 #. type: textblock
11897 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4230
11898 msgid ""
11899 "The return value is a hash, where the keys are the devices containing "
11900 "filesystems, and the values are the filesystem types.  For example:"
11901 msgstr ""
11902
11903 #. type: verbatim
11904 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4234
11905 #, no-wrap
11906 msgid ""
11907 " \"/dev/sda1\" => \"ntfs\"\n"
11908 " \"/dev/sda2\" => \"ext2\"\n"
11909 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11910 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11911 "\n"
11912 msgstr ""
11913
11914 #. type: textblock
11915 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4239
11916 msgid ""
11917 "The value can have the special value \"unknown\", meaning the content of the "
11918 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11919 msgstr ""
11920
11921 #. type: textblock
11922 #: ../fish/guestfish-actions.pod:2786
11923 msgid ""
11924 "This command runs other libguestfs commands, which might include L</mount> "
11925 "and L</umount>, and therefore you should use this soon after launch and only "
11926 "when nothing is mounted."
11927 msgstr ""
11928
11929 #. type: textblock
11930 #: ../fish/guestfish-actions.pod:2790
11931 msgid ""
11932 "Not all of the filesystems returned will be mountable.  In particular, swap "
11933 "partitions are returned in the list.  Also this command does not check that "
11934 "each filesystem found is valid and mountable, and some filesystems might be "
11935 "mountable but require special options.  Filesystems may not all belong to a "
11936 "single logical operating system (use L</inspect-os> to look for OSes)."
11937 msgstr ""
11938
11939 #. type: =head2
11940 #: ../fish/guestfish-actions.pod:2798
11941 msgid "list-partitions"
11942 msgstr "list-partitions"
11943
11944 #. type: verbatim
11945 #: ../fish/guestfish-actions.pod:2800
11946 #, no-wrap
11947 msgid ""
11948 " list-partitions\n"
11949 "\n"
11950 msgstr ""
11951 " list-partitions\n"
11952 "\n"
11953
11954 #. type: textblock
11955 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4268
11956 msgid "List all the partitions detected on all block devices."
11957 msgstr ""
11958
11959 #. type: textblock
11960 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4270
11961 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11962 msgstr ""
11963
11964 #. type: textblock
11965 #: ../fish/guestfish-actions.pod:2806
11966 msgid ""
11967 "This does not return logical volumes.  For that you will need to call L</"
11968 "lvs>."
11969 msgstr ""
11970
11971 #. type: =head2
11972 #: ../fish/guestfish-actions.pod:2811
11973 msgid "ll"
11974 msgstr "ll"
11975
11976 #. type: verbatim
11977 #: ../fish/guestfish-actions.pod:2813
11978 #, no-wrap
11979 msgid ""
11980 " ll directory\n"
11981 "\n"
11982 msgstr ""
11983 " ll каталог\n"
11984 "\n"
11985
11986 #. type: textblock
11987 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4289
11988 msgid ""
11989 "List the files in C<directory> (relative to the root directory, there is no "
11990 "cwd) in the format of 'ls -la'."
11991 msgstr ""
11992
11993 #. type: textblock
11994 #: ../fish/guestfish-actions.pod:2818 ../src/guestfs-actions.pod:4292
11995 msgid ""
11996 "This command is mostly useful for interactive sessions.  It is I<not> "
11997 "intended that you try to parse the output string."
11998 msgstr ""
11999
12000 #. type: =head2
12001 #: ../fish/guestfish-actions.pod:2821
12002 msgid "ln"
12003 msgstr "ln"
12004
12005 #. type: verbatim
12006 #: ../fish/guestfish-actions.pod:2823
12007 #, no-wrap
12008 msgid ""
12009 " ln target linkname\n"
12010 "\n"
12011 msgstr ""
12012 " ln призначення назва_посилання\n"
12013 "\n"
12014
12015 #. type: textblock
12016 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4307
12017 msgid "This command creates a hard link using the C<ln> command."
12018 msgstr ""
12019
12020 #. type: =head2
12021 #: ../fish/guestfish-actions.pod:2827
12022 msgid "ln-f"
12023 msgstr "ln-f"
12024
12025 #. type: verbatim
12026 #: ../fish/guestfish-actions.pod:2829
12027 #, no-wrap
12028 msgid ""
12029 " ln-f target linkname\n"
12030 "\n"
12031 msgstr ""
12032 " ln-f призначення назва_посилання\n"
12033 "\n"
12034
12035 #. type: textblock
12036 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4320
12037 msgid ""
12038 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12039 "option removes the link (C<linkname>) if it exists already."
12040 msgstr ""
12041
12042 #. type: =head2
12043 #: ../fish/guestfish-actions.pod:2834
12044 msgid "ln-s"
12045 msgstr "ln-s"
12046
12047 #. type: verbatim
12048 #: ../fish/guestfish-actions.pod:2836
12049 #, no-wrap
12050 msgid ""
12051 " ln-s target linkname\n"
12052 "\n"
12053 msgstr ""
12054 " ln-s призначення назва_посилання\n"
12055 "\n"
12056
12057 #. type: textblock
12058 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4334
12059 msgid "This command creates a symbolic link using the C<ln -s> command."
12060 msgstr ""
12061
12062 #. type: =head2
12063 #: ../fish/guestfish-actions.pod:2840
12064 msgid "ln-sf"
12065 msgstr "ln-sf"
12066
12067 #. type: verbatim
12068 #: ../fish/guestfish-actions.pod:2842
12069 #, no-wrap
12070 msgid ""
12071 " ln-sf target linkname\n"
12072 "\n"
12073 msgstr ""
12074 " ln-sf призначення назва_посилання\n"
12075 "\n"
12076
12077 #. type: textblock
12078 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4347
12079 msgid ""
12080 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12081 "option removes the link (C<linkname>) if it exists already."
12082 msgstr ""
12083
12084 #. type: =head2
12085 #: ../fish/guestfish-actions.pod:2847
12086 msgid "lremovexattr"
12087 msgstr "lremovexattr"
12088
12089 #. type: verbatim
12090 #: ../fish/guestfish-actions.pod:2849
12091 #, no-wrap
12092 msgid ""
12093 " lremovexattr xattr path\n"
12094 "\n"
12095 msgstr ""
12096
12097 #. type: textblock
12098 #: ../fish/guestfish-actions.pod:2851
12099 msgid ""
12100 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12101 "it removes an extended attribute of the link itself."
12102 msgstr ""
12103
12104 #. type: =head2
12105 #: ../fish/guestfish-actions.pod:2855
12106 msgid "ls"
12107 msgstr "ls"
12108
12109 #. type: verbatim
12110 #: ../fish/guestfish-actions.pod:2857
12111 #, no-wrap
12112 msgid ""
12113 " ls directory\n"
12114 "\n"
12115 msgstr ""
12116 " ls каталог\n"
12117 "\n"
12118
12119 #. type: textblock
12120 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4375
12121 msgid ""
12122 "List the files in C<directory> (relative to the root directory, there is no "
12123 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12124 msgstr ""
12125
12126 #. type: textblock
12127 #: ../fish/guestfish-actions.pod:2863
12128 msgid ""
12129 "This command is mostly useful for interactive sessions.  Programs should "
12130 "probably use L</readdir> instead."
12131 msgstr ""
12132
12133 #. type: =head2
12134 #: ../fish/guestfish-actions.pod:2866
12135 msgid "lsetxattr"
12136 msgstr "lsetxattr"
12137
12138 #. type: verbatim
12139 #: ../fish/guestfish-actions.pod:2868
12140 #, no-wrap
12141 msgid ""
12142 " lsetxattr xattr val vallen path\n"
12143 "\n"
12144 msgstr ""
12145
12146 #. type: textblock
12147 #: ../fish/guestfish-actions.pod:2870
12148 msgid ""
12149 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12150 "sets an extended attribute of the link itself."
12151 msgstr ""
12152
12153 #. type: =head2
12154 #: ../fish/guestfish-actions.pod:2874
12155 msgid "lstat"
12156 msgstr "lstat"
12157
12158 #. type: verbatim
12159 #: ../fish/guestfish-actions.pod:2876
12160 #, no-wrap
12161 msgid ""
12162 " lstat path\n"
12163 "\n"
12164 msgstr ""
12165 " lstat шлях\n"
12166 "\n"
12167
12168 #. type: textblock
12169 #: ../fish/guestfish-actions.pod:2878 ../fish/guestfish-actions.pod:4702
12170 #: ../src/guestfs-actions.pod:4411 ../src/guestfs-actions.pod:7214
12171 msgid "Returns file information for the given C<path>."
12172 msgstr ""
12173
12174 #. type: textblock
12175 #: ../fish/guestfish-actions.pod:2880
12176 msgid ""
12177 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12178 "the link is stat-ed, not the file it refers to."
12179 msgstr ""
12180
12181 #. type: textblock
12182 #: ../fish/guestfish-actions.pod:2884 ../src/guestfs-actions.pod:4417
12183 msgid "This is the same as the C<lstat(2)> system call."
12184 msgstr ""
12185
12186 #. type: =head2
12187 #: ../fish/guestfish-actions.pod:2886
12188 msgid "lstatlist"
12189 msgstr "lstatlist"
12190
12191 #. type: verbatim
12192 #: ../fish/guestfish-actions.pod:2888
12193 #, no-wrap
12194 msgid ""
12195 " lstatlist path 'names ...'\n"
12196 "\n"
12197 msgstr ""
12198
12199 #. type: textblock
12200 #: ../fish/guestfish-actions.pod:2890
12201 msgid ""
12202 "This call allows you to perform the L</lstat> operation on multiple files, "
12203 "where all files are in the directory C<path>.  C<names> is the list of files "
12204 "from this directory."
12205 msgstr ""
12206
12207 #. type: textblock
12208 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4436
12209 msgid ""
12210 "On return you get a list of stat structs, with a one-to-one correspondence "
12211 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12212 "then the C<ino> field of that structure is set to C<-1>."
12213 msgstr ""
12214
12215 #. type: textblock
12216 #: ../fish/guestfish-actions.pod:2899
12217 msgid ""
12218 "This call is intended for programs that want to efficiently list a directory "
12219 "contents without making many round-trips.  See also L</lxattrlist> for a "
12220 "similarly efficient call for getting extended attributes.  Very long "
12221 "directory listings might cause the protocol message size to be exceeded, "
12222 "causing this call to fail.  The caller must split up such requests into "
12223 "smaller groups of names."
12224 msgstr ""
12225
12226 #. type: =head2
12227 #: ../fish/guestfish-actions.pod:2907
12228 msgid "luks-add-key"
12229 msgstr "luks-add-key"
12230
12231 #. type: verbatim
12232 #: ../fish/guestfish-actions.pod:2909
12233 #, no-wrap
12234 msgid ""
12235 " luks-add-key device keyslot\n"
12236 "\n"
12237 msgstr ""
12238
12239 #. type: textblock
12240 #: ../fish/guestfish-actions.pod:2911 ../src/guestfs-actions.pod:4464
12241 msgid ""
12242 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12243 "existing key, and is used to access the device.  C<newkey> is the new key to "
12244 "add.  C<keyslot> is the key slot that will be replaced."
12245 msgstr ""
12246
12247 #. type: textblock
12248 #: ../fish/guestfish-actions.pod:2916
12249 msgid ""
12250 "Note that if C<keyslot> already contains a key, then this command will "
12251 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12252 msgstr ""
12253
12254 #. type: textblock
12255 #: ../fish/guestfish-actions.pod:2920 ../fish/guestfish-actions.pod:2942
12256 #: ../fish/guestfish-actions.pod:2955 ../fish/guestfish-actions.pod:2969
12257 #: ../fish/guestfish-actions.pod:2995 ../fish/guestfish-actions.pod:3005
12258 msgid ""
12259 "This command has one or more key or passphrase parameters.  Guestfish will "
12260 "prompt for these separately."
12261 msgstr ""
12262
12263 #. type: =head2
12264 #: ../fish/guestfish-actions.pod:2923
12265 msgid "luks-close"
12266 msgstr "luks-close"
12267
12268 #. type: verbatim
12269 #: ../fish/guestfish-actions.pod:2925
12270 #, no-wrap
12271 msgid ""
12272 " luks-close device\n"
12273 "\n"
12274 msgstr ""
12275 " luks-close пристрій\n"
12276 "\n"
12277
12278 #. type: textblock
12279 #: ../fish/guestfish-actions.pod:2927
12280 msgid ""
12281 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12282 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
12283 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12284 "block device."
12285 msgstr ""
12286
12287 #. type: =head2
12288 #: ../fish/guestfish-actions.pod:2933
12289 msgid "luks-format"
12290 msgstr "luks-format"
12291
12292 #. type: verbatim
12293 #: ../fish/guestfish-actions.pod:2935
12294 #, no-wrap
12295 msgid ""
12296 " luks-format device keyslot\n"
12297 "\n"
12298 msgstr ""
12299
12300 #. type: textblock
12301 #: ../fish/guestfish-actions.pod:2937 ../src/guestfs-actions.pod:4505
12302 msgid ""
12303 "This command erases existing data on C<device> and formats the device as a "
12304 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12305 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12306 msgstr ""
12307
12308 #. type: textblock
12309 #: ../fish/guestfish-actions.pod:2945 ../fish/guestfish-actions.pod:2958
12310 #: ../fish/guestfish-actions.pod:3045 ../fish/guestfish-actions.pod:3696
12311 #: ../fish/guestfish-actions.pod:4236 ../fish/guestfish-actions.pod:4573
12312 #: ../fish/guestfish-actions.pod:4596 ../fish/guestfish-actions.pod:4618
12313 #: ../fish/guestfish-actions.pod:5364 ../src/guestfs-actions.pod:4512
12314 #: ../src/guestfs-actions.pod:4535 ../src/guestfs-actions.pod:4678
12315 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:6577
12316 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7058
12317 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:8290
12318 msgid ""
12319 "B<This command is dangerous.  Without careful use you can easily destroy all "
12320 "your data>."
12321 msgstr ""
12322
12323 #. type: =head2
12324 #: ../fish/guestfish-actions.pod:2948
12325 msgid "luks-format-cipher"
12326 msgstr "luks-format-cipher"
12327
12328 #. type: verbatim
12329 #: ../fish/guestfish-actions.pod:2950
12330 #, no-wrap
12331 msgid ""
12332 " luks-format-cipher device keyslot cipher\n"
12333 "\n"
12334 msgstr ""
12335
12336 #. type: textblock
12337 #: ../fish/guestfish-actions.pod:2952
12338 msgid ""
12339 "This command is the same as L</luks-format> but it also allows you to set "
12340 "the C<cipher> used."
12341 msgstr ""
12342
12343 #. type: =head2
12344 #: ../fish/guestfish-actions.pod:2961
12345 msgid "luks-kill-slot"
12346 msgstr "luks-kill-slot"
12347
12348 #. type: verbatim
12349 #: ../fish/guestfish-actions.pod:2963
12350 #, no-wrap
12351 msgid ""
12352 " luks-kill-slot device keyslot\n"
12353 "\n"
12354 msgstr ""
12355
12356 #. type: textblock
12357 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4552
12358 msgid ""
12359 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12360 "device C<device>.  C<key> must be one of the I<other> keys."
12361 msgstr ""
12362
12363 #. type: =head2
12364 #: ../fish/guestfish-actions.pod:2972
12365 msgid "luks-open"
12366 msgstr "luks-open"
12367
12368 #. type: verbatim
12369 #: ../fish/guestfish-actions.pod:2974
12370 #, no-wrap
12371 msgid ""
12372 " luks-open device mapname\n"
12373 "\n"
12374 msgstr ""
12375
12376 #. type: textblock
12377 #: ../fish/guestfish-actions.pod:2976 ../src/guestfs-actions.pod:4572
12378 msgid ""
12379 "This command opens a block device which has been encrypted according to the "
12380 "Linux Unified Key Setup (LUKS) standard."
12381 msgstr ""
12382
12383 #. type: textblock
12384 #: ../fish/guestfish-actions.pod:2979 ../src/guestfs-actions.pod:4575
12385 msgid "C<device> is the encrypted block device or partition."
12386 msgstr ""
12387
12388 #. type: textblock
12389 #: ../fish/guestfish-actions.pod:2981 ../src/guestfs-actions.pod:4577
12390 msgid ""
12391 "The caller must supply one of the keys associated with the LUKS block "
12392 "device, in the C<key> parameter."
12393 msgstr ""
12394
12395 #. type: textblock
12396 #: ../fish/guestfish-actions.pod:2984 ../src/guestfs-actions.pod:4580
12397 msgid ""
12398 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12399 "writes to this block device are decrypted from and encrypted to the "
12400 "underlying C<device> respectively."
12401 msgstr ""
12402
12403 #. type: textblock
12404 #: ../fish/guestfish-actions.pod:2988
12405 msgid ""
12406 "If this block device contains LVM volume groups, then calling L</vgscan> "
12407 "followed by L</vg-activate-all> will make them visible."
12408 msgstr ""
12409
12410 #. type: textblock
12411 #: ../fish/guestfish-actions.pod:2992
12412 msgid "Use L</list-dm-devices> to list all device mapper devices."
12413 msgstr ""
12414
12415 #. type: =head2
12416 #: ../fish/guestfish-actions.pod:2998
12417 msgid "luks-open-ro"
12418 msgstr "luks-open-ro"
12419
12420 #. type: verbatim
12421 #: ../fish/guestfish-actions.pod:3000
12422 #, no-wrap
12423 msgid ""
12424 " luks-open-ro device mapname\n"
12425 "\n"
12426 msgstr ""
12427
12428 #. type: textblock
12429 #: ../fish/guestfish-actions.pod:3002
12430 msgid ""
12431 "This is the same as L</luks-open> except that a read-only mapping is created."
12432 msgstr ""
12433
12434 #. type: =head2
12435 #: ../fish/guestfish-actions.pod:3008
12436 msgid "lvcreate"
12437 msgstr "lvcreate"
12438
12439 #. type: verbatim
12440 #: ../fish/guestfish-actions.pod:3010
12441 #, no-wrap
12442 msgid ""
12443 " lvcreate logvol volgroup mbytes\n"
12444 "\n"
12445 msgstr ""
12446
12447 #. type: textblock
12448 #: ../fish/guestfish-actions.pod:3012 ../src/guestfs-actions.pod:4626
12449 msgid ""
12450 "This creates an LVM logical volume called C<logvol> on the volume group "
12451 "C<volgroup>, with C<size> megabytes."
12452 msgstr ""
12453
12454 #. type: =head2
12455 #: ../fish/guestfish-actions.pod:3015
12456 msgid "lvm-canonical-lv-name"
12457 msgstr "lvm-canonical-lv-name"
12458
12459 #. type: verbatim
12460 #: ../fish/guestfish-actions.pod:3017
12461 #, no-wrap
12462 msgid ""
12463 " lvm-canonical-lv-name lvname\n"
12464 "\n"
12465 msgstr ""
12466
12467 #. type: textblock
12468 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4639
12469 msgid ""
12470 "This converts alternative naming schemes for LVs that you might find to the "
12471 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12472 "LV>."
12473 msgstr ""
12474
12475 #. type: textblock
12476 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4643
12477 msgid ""
12478 "This command returns an error if the C<lvname> parameter does not refer to a "
12479 "logical volume."
12480 msgstr ""
12481
12482 #. type: textblock
12483 #: ../fish/guestfish-actions.pod:3026
12484 msgid "See also L</is-lv>."
12485 msgstr "Див. також L</is-lv>."
12486
12487 #. type: =head2
12488 #: ../fish/guestfish-actions.pod:3028
12489 msgid "lvm-clear-filter"
12490 msgstr "lvm-clear-filter"
12491
12492 #. type: verbatim
12493 #: ../fish/guestfish-actions.pod:3030
12494 #, no-wrap
12495 msgid ""
12496 " lvm-clear-filter\n"
12497 "\n"
12498 msgstr ""
12499 " lvm-clear-filter\n"
12500 "\n"
12501
12502 #. type: textblock
12503 #: ../fish/guestfish-actions.pod:3032
12504 msgid ""
12505 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12506 "block device."
12507 msgstr ""
12508
12509 #. type: textblock
12510 #: ../fish/guestfish-actions.pod:3035 ../fish/guestfish-actions.pod:3066
12511 #: ../src/guestfs-actions.pod:4661 ../src/guestfs-actions.pod:4703
12512 msgid ""
12513 "This command also clears the LVM cache and performs a volume group scan."
12514 msgstr ""
12515
12516 #. type: =head2
12517 #: ../fish/guestfish-actions.pod:3038
12518 msgid "lvm-remove-all"
12519 msgstr "lvm-remove-all"
12520
12521 #. type: verbatim
12522 #: ../fish/guestfish-actions.pod:3040
12523 #, no-wrap
12524 msgid ""
12525 " lvm-remove-all\n"
12526 "\n"
12527 msgstr ""
12528 " lvm-remove-all\n"
12529 "\n"
12530
12531 #. type: textblock
12532 #: ../fish/guestfish-actions.pod:3042 ../src/guestfs-actions.pod:4673
12533 msgid ""
12534 "This command removes all LVM logical volumes, volume groups and physical "
12535 "volumes."
12536 msgstr ""
12537
12538 #. type: =head2
12539 #: ../fish/guestfish-actions.pod:3048
12540 msgid "lvm-set-filter"
12541 msgstr "lvm-set-filter"
12542
12543 #. type: verbatim
12544 #: ../fish/guestfish-actions.pod:3050
12545 #, no-wrap
12546 msgid ""
12547 " lvm-set-filter 'devices ...'\n"
12548 "\n"
12549 msgstr ""
12550 " lvm-set-filter 'пристрої...'\n"
12551 "\n"
12552
12553 #. type: textblock
12554 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4689
12555 msgid ""
12556 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12557 "block devices in the list C<devices>, and will ignore all other attached "
12558 "block devices."
12559 msgstr ""
12560
12561 #. type: textblock
12562 #: ../fish/guestfish-actions.pod:3056 ../src/guestfs-actions.pod:4693
12563 msgid ""
12564 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12565 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12566 "there are two types of duplication possible: either cloned PVs/VGs which "
12567 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12568 "same name.  In normal operation you cannot create this situation, but you "
12569 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12570 "inside the LVM metadata."
12571 msgstr ""
12572
12573 #. type: textblock
12574 #: ../fish/guestfish-actions.pod:3069 ../src/guestfs-actions.pod:4706
12575 msgid "You can filter whole block devices or individual partitions."
12576 msgstr ""
12577
12578 #. type: textblock
12579 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4708
12580 msgid ""
12581 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12582 "filesystem), even if you are not filtering out that VG."
12583 msgstr ""
12584
12585 #. type: =head2
12586 #: ../fish/guestfish-actions.pod:3075
12587 msgid "lvremove"
12588 msgstr "lvremove"
12589
12590 #. type: verbatim
12591 #: ../fish/guestfish-actions.pod:3077
12592 #, no-wrap
12593 msgid ""
12594 " lvremove device\n"
12595 "\n"
12596 msgstr ""
12597 " lvremove пристрій\n"
12598 "\n"
12599
12600 #. type: textblock
12601 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4722
12602 msgid ""
12603 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12604 "LV, such as C</dev/VG/LV>."
12605 msgstr ""
12606
12607 #. type: textblock
12608 #: ../fish/guestfish-actions.pod:3082 ../src/guestfs-actions.pod:4725
12609 msgid ""
12610 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12611 "dev/VG>."
12612 msgstr ""
12613
12614 #. type: =head2
12615 #: ../fish/guestfish-actions.pod:3085
12616 msgid "lvrename"
12617 msgstr "lvrename"
12618
12619 #. type: verbatim
12620 #: ../fish/guestfish-actions.pod:3087
12621 #, no-wrap
12622 msgid ""
12623 " lvrename logvol newlogvol\n"
12624 "\n"
12625 msgstr ""
12626
12627 #. type: textblock
12628 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4739
12629 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12630 msgstr ""
12631
12632 #. type: =head2
12633 #: ../fish/guestfish-actions.pod:3091
12634 msgid "lvresize"
12635 msgstr "lvresize"
12636
12637 #. type: verbatim
12638 #: ../fish/guestfish-actions.pod:3093
12639 #, no-wrap
12640 msgid ""
12641 " lvresize device mbytes\n"
12642 "\n"
12643 msgstr ""
12644
12645 #. type: textblock
12646 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4752
12647 msgid ""
12648 "This resizes (expands or shrinks) an existing LVM logical volume to "
12649 "C<mbytes>.  When reducing, data in the reduced part is lost."
12650 msgstr ""
12651
12652 #. type: =head2
12653 #: ../fish/guestfish-actions.pod:3099
12654 msgid "lvresize-free"
12655 msgstr "lvresize-free"
12656
12657 #. type: verbatim
12658 #: ../fish/guestfish-actions.pod:3101
12659 #, no-wrap
12660 msgid ""
12661 " lvresize-free lv percent\n"
12662 "\n"
12663 msgstr ""
12664
12665 #. type: textblock
12666 #: ../fish/guestfish-actions.pod:3103 ../src/guestfs-actions.pod:4767
12667 msgid ""
12668 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12669 "remaining free space in the volume group.  Commonly you would call this with "
12670 "pc = 100 which expands the logical volume as much as possible, using all "
12671 "remaining free space in the volume group."
12672 msgstr ""
12673
12674 #. type: =head2
12675 #: ../fish/guestfish-actions.pod:3109
12676 msgid "lvs"
12677 msgstr "lvs"
12678
12679 #. type: verbatim
12680 #: ../fish/guestfish-actions.pod:3111
12681 #, no-wrap
12682 msgid ""
12683 " lvs\n"
12684 "\n"
12685 msgstr ""
12686 " lvs\n"
12687 "\n"
12688
12689 #. type: textblock
12690 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4782
12691 msgid ""
12692 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12693 "(8)> command."
12694 msgstr ""
12695
12696 #. type: textblock
12697 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4785
12698 msgid ""
12699 "This returns a list of the logical volume device names (eg. C</dev/"
12700 "VolGroup00/LogVol00>)."
12701 msgstr ""
12702
12703 #. type: textblock
12704 #: ../fish/guestfish-actions.pod:3119
12705 msgid "See also L</lvs-full>, L</list-filesystems>."
12706 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12707
12708 #. type: =head2
12709 #: ../fish/guestfish-actions.pod:3121
12710 msgid "lvs-full"
12711 msgstr "lvs-full"
12712
12713 #. type: verbatim
12714 #: ../fish/guestfish-actions.pod:3123
12715 #, no-wrap
12716 msgid ""
12717 " lvs-full\n"
12718 "\n"
12719 msgstr ""
12720 " lvs-full\n"
12721 "\n"
12722
12723 #. type: textblock
12724 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4801
12725 msgid ""
12726 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12727 "(8)> command.  The \"full\" version includes all fields."
12728 msgstr ""
12729
12730 #. type: =head2
12731 #: ../fish/guestfish-actions.pod:3128
12732 msgid "lvuuid"
12733 msgstr "lvuuid"
12734
12735 #. type: verbatim
12736 #: ../fish/guestfish-actions.pod:3130
12737 #, no-wrap
12738 msgid ""
12739 " lvuuid device\n"
12740 "\n"
12741 msgstr ""
12742 " lvuuid пристрій\n"
12743 "\n"
12744
12745 #. type: textblock
12746 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4816
12747 msgid "This command returns the UUID of the LVM LV C<device>."
12748 msgstr ""
12749
12750 #. type: =head2
12751 #: ../fish/guestfish-actions.pod:3134
12752 msgid "lxattrlist"
12753 msgstr "lxattrlist"
12754
12755 #. type: verbatim
12756 #: ../fish/guestfish-actions.pod:3136
12757 #, no-wrap
12758 msgid ""
12759 " lxattrlist path 'names ...'\n"
12760 "\n"
12761 msgstr ""
12762
12763 #. type: textblock
12764 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4830
12765 msgid ""
12766 "This call allows you to get the extended attributes of multiple files, where "
12767 "all files are in the directory C<path>.  C<names> is the list of files from "
12768 "this directory."
12769 msgstr ""
12770
12771 #. type: textblock
12772 #: ../fish/guestfish-actions.pod:3142 ../src/guestfs-actions.pod:4834
12773 msgid ""
12774 "On return you get a flat list of xattr structs which must be interpreted "
12775 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12776 "C<attrval> in this struct is zero-length to indicate there was an error "
12777 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12778 "number (the number of following attributes for this file, which could be C<"
12779 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12780 "for the first named file.  This repeats for the second and subsequent files."
12781 msgstr ""
12782
12783 #. type: textblock
12784 #: ../fish/guestfish-actions.pod:3152
12785 msgid ""
12786 "This call is intended for programs that want to efficiently list a directory "
12787 "contents without making many round-trips.  See also L</lstatlist> for a "
12788 "similarly efficient call for getting standard stats.  Very long directory "
12789 "listings might cause the protocol message size to be exceeded, causing this "
12790 "call to fail.  The caller must split up such requests into smaller groups of "
12791 "names."
12792 msgstr ""
12793
12794 #. type: =head2
12795 #: ../fish/guestfish-actions.pod:3160
12796 msgid "mkdir"
12797 msgstr "mkdir"
12798
12799 #. type: verbatim
12800 #: ../fish/guestfish-actions.pod:3162
12801 #, no-wrap
12802 msgid ""
12803 " mkdir path\n"
12804 "\n"
12805 msgstr ""
12806 " mkdir шлях\n"
12807 "\n"
12808
12809 #. type: textblock
12810 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4864
12811 msgid "Create a directory named C<path>."
12812 msgstr ""
12813
12814 #. type: =head2
12815 #: ../fish/guestfish-actions.pod:3166
12816 msgid "mkdir-mode"
12817 msgstr "mkdir-mode"
12818
12819 #. type: verbatim
12820 #: ../fish/guestfish-actions.pod:3168
12821 #, no-wrap
12822 msgid ""
12823 " mkdir-mode path mode\n"
12824 "\n"
12825 msgstr ""
12826 " mkdir-mode шлях режим\n"
12827 "\n"
12828
12829 #. type: textblock
12830 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4877
12831 msgid ""
12832 "This command creates a directory, setting the initial permissions of the "
12833 "directory to C<mode>."
12834 msgstr ""
12835
12836 #. type: textblock
12837 #: ../fish/guestfish-actions.pod:3173 ../src/guestfs-actions.pod:4880
12838 msgid ""
12839 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12840 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12841 "other ways."
12842 msgstr ""
12843
12844 #. type: textblock
12845 #: ../fish/guestfish-actions.pod:3177
12846 msgid "See also L</mkdir>, L</umask>"
12847 msgstr "Див. також L</mkdir>, L</umask>"
12848
12849 #. type: =head2
12850 #: ../fish/guestfish-actions.pod:3179
12851 msgid "mkdir-p"
12852 msgstr "mkdir-p"
12853
12854 #. type: verbatim
12855 #: ../fish/guestfish-actions.pod:3181
12856 #, no-wrap
12857 msgid ""
12858 " mkdir-p path\n"
12859 "\n"
12860 msgstr ""
12861 " mkdir-p шлях\n"
12862 "\n"
12863
12864 #. type: textblock
12865 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4896
12866 msgid ""
12867 "Create a directory named C<path>, creating any parent directories as "
12868 "necessary.  This is like the C<mkdir -p> shell command."
12869 msgstr ""
12870
12871 #. type: =head2
12872 #: ../fish/guestfish-actions.pod:3186
12873 msgid "mkdtemp"
12874 msgstr "mkdtemp"
12875
12876 #. type: verbatim
12877 #: ../fish/guestfish-actions.pod:3188
12878 #, no-wrap
12879 msgid ""
12880 " mkdtemp template\n"
12881 "\n"
12882 msgstr ""
12883 " mkdtemp шаблон\n"
12884 "\n"
12885
12886 #. type: textblock
12887 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4909
12888 msgid ""
12889 "This command creates a temporary directory.  The C<template> parameter "
12890 "should be a full pathname for the temporary directory name with the final "
12891 "six characters being \"XXXXXX\"."
12892 msgstr ""
12893
12894 #. type: textblock
12895 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4914
12896 msgid ""
12897 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12898 "being suitable for Windows filesystems."
12899 msgstr ""
12900
12901 #. type: textblock
12902 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4917
12903 msgid "The name of the temporary directory that was created is returned."
12904 msgstr ""
12905
12906 #. type: textblock
12907 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4920
12908 msgid "The temporary directory is created with mode 0700 and is owned by root."
12909 msgstr ""
12910
12911 #. type: textblock
12912 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4923
12913 msgid ""
12914 "The caller is responsible for deleting the temporary directory and its "
12915 "contents after use."
12916 msgstr ""
12917
12918 #. type: textblock
12919 #: ../fish/guestfish-actions.pod:3207 ../src/guestfs-actions.pod:4926
12920 msgid "See also: L<mkdtemp(3)>"
12921 msgstr "Див. також L<mkdtemp(3)>"
12922
12923 #. type: =head2
12924 #: ../fish/guestfish-actions.pod:3209
12925 msgid "mke2fs-J"
12926 msgstr "mke2fs-J"
12927
12928 #. type: verbatim
12929 #: ../fish/guestfish-actions.pod:3211
12930 #, no-wrap
12931 msgid ""
12932 " mke2fs-J fstype blocksize device journal\n"
12933 "\n"
12934 msgstr ""
12935
12936 #. type: textblock
12937 #: ../fish/guestfish-actions.pod:3213 ../src/guestfs-actions.pod:4942
12938 msgid ""
12939 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12940 "C<journal>.  It is equivalent to the command:"
12941 msgstr ""
12942
12943 #. type: verbatim
12944 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4946
12945 #, no-wrap
12946 msgid ""
12947 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12948 "\n"
12949 msgstr ""
12950 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
12951 "\n"
12952
12953 #. type: textblock
12954 #: ../fish/guestfish-actions.pod:3219
12955 msgid "See also L</mke2journal>."
12956 msgstr "Див. також L</mke2journal>."
12957
12958 #. type: =head2
12959 #: ../fish/guestfish-actions.pod:3221
12960 msgid "mke2fs-JL"
12961 msgstr "mke2fs-JL"
12962
12963 #. type: verbatim
12964 #: ../fish/guestfish-actions.pod:3223
12965 #, no-wrap
12966 msgid ""
12967 " mke2fs-JL fstype blocksize device label\n"
12968 "\n"
12969 msgstr ""
12970
12971 #. type: textblock
12972 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4963
12973 msgid ""
12974 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12975 "the journal labeled C<label>."
12976 msgstr ""
12977
12978 #. type: textblock
12979 #: ../fish/guestfish-actions.pod:3228
12980 msgid "See also L</mke2journal-L>."
12981 msgstr "Див. також L</mke2journal-L>."
12982
12983 #. type: =head2
12984 #: ../fish/guestfish-actions.pod:3230
12985 msgid "mke2fs-JU"
12986 msgstr "mke2fs-JU"
12987
12988 #. type: verbatim
12989 #: ../fish/guestfish-actions.pod:3232
12990 #, no-wrap
12991 msgid ""
12992 " mke2fs-JU fstype blocksize device uuid\n"
12993 "\n"
12994 msgstr ""
12995
12996 #. type: textblock
12997 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4981
12998 msgid ""
12999 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13000 "the journal with UUID C<uuid>."
13001 msgstr ""
13002
13003 #. type: textblock
13004 #: ../fish/guestfish-actions.pod:3237
13005 msgid "See also L</mke2journal-U>."
13006 msgstr "Див. також L</mke2journal-U>."
13007
13008 #. type: =head2
13009 #: ../fish/guestfish-actions.pod:3239
13010 msgid "mke2journal"
13011 msgstr "mke2journal"
13012
13013 #. type: verbatim
13014 #: ../fish/guestfish-actions.pod:3241
13015 #, no-wrap
13016 msgid ""
13017 " mke2journal blocksize device\n"
13018 "\n"
13019 msgstr ""
13020
13021 #. type: textblock
13022 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4997
13023 msgid ""
13024 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13025 "command:"
13026 msgstr ""
13027
13028 #. type: verbatim
13029 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:5000
13030 #, no-wrap
13031 msgid ""
13032 " mke2fs -O journal_dev -b blocksize device\n"
13033 "\n"
13034 msgstr ""
13035
13036 #. type: =head2
13037 #: ../fish/guestfish-actions.pod:3248
13038 msgid "mke2journal-L"
13039 msgstr "mke2journal-L"
13040
13041 #. type: verbatim
13042 #: ../fish/guestfish-actions.pod:3250
13043 #, no-wrap
13044 msgid ""
13045 " mke2journal-L blocksize label device\n"
13046 "\n"
13047 msgstr ""
13048
13049 #. type: textblock
13050 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:5014
13051 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13052 msgstr ""
13053
13054 #. type: =head2
13055 #: ../fish/guestfish-actions.pod:3254
13056 msgid "mke2journal-U"
13057 msgstr "mke2journal-U"
13058
13059 #. type: verbatim
13060 #: ../fish/guestfish-actions.pod:3256
13061 #, no-wrap
13062 msgid ""
13063 " mke2journal-U blocksize uuid device\n"
13064 "\n"
13065 msgstr ""
13066
13067 #. type: textblock
13068 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:5028
13069 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
13070 msgstr ""
13071
13072 #. type: =head2
13073 #: ../fish/guestfish-actions.pod:3260
13074 msgid "mkfifo"
13075 msgstr "mkfifo"
13076
13077 #. type: verbatim
13078 #: ../fish/guestfish-actions.pod:3262
13079 #, no-wrap
13080 msgid ""
13081 " mkfifo mode path\n"
13082 "\n"
13083 msgstr ""
13084 " mkfifo режим шлях\n"
13085 "\n"
13086
13087 #. type: textblock
13088 #: ../fish/guestfish-actions.pod:3264
13089 msgid ""
13090 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13091 "is just a convenient wrapper around L</mknod>."
13092 msgstr ""
13093
13094 #. type: =head2
13095 #: ../fish/guestfish-actions.pod:3270
13096 msgid "mkfs"
13097 msgstr "mkfs"
13098
13099 #. type: verbatim
13100 #: ../fish/guestfish-actions.pod:3272
13101 #, no-wrap
13102 msgid ""
13103 " mkfs fstype device\n"
13104 "\n"
13105 msgstr ""
13106 " mkfs тип_файлової_системи пристрій\n"
13107 "\n"
13108
13109 #. type: textblock
13110 #: ../fish/guestfish-actions.pod:3274 ../src/guestfs-actions.pod:5058
13111 msgid ""
13112 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13113 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13114 msgstr ""
13115
13116 #. type: =head2
13117 #: ../fish/guestfish-actions.pod:3278
13118 msgid "mkfs-b"
13119 msgstr "mkfs-b"
13120
13121 #. type: verbatim
13122 #: ../fish/guestfish-actions.pod:3280
13123 #, no-wrap
13124 msgid ""
13125 " mkfs-b fstype blocksize device\n"
13126 "\n"
13127 msgstr ""
13128
13129 #. type: textblock
13130 #: ../fish/guestfish-actions.pod:3282
13131 msgid ""
13132 "This call is similar to L</mkfs>, but it allows you to control the block "
13133 "size of the resulting filesystem.  Supported block sizes depend on the "
13134 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13135 msgstr ""
13136
13137 #. type: textblock
13138 #: ../fish/guestfish-actions.pod:3287 ../fish/guestfish-actions.pod:3314
13139 #: ../src/guestfs-actions.pod:5086 ../src/guestfs-actions.pod:5124
13140 msgid ""
13141 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13142 "cluster size."
13143 msgstr ""
13144
13145 #. type: textblock
13146 #: ../fish/guestfish-actions.pod:3290
13147 msgid ""
13148 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13149 "instead."
13150 msgstr ""
13151
13152 #. type: =head2
13153 #: ../fish/guestfish-actions.pod:3297
13154 msgid "mkfs-opts"
13155 msgstr "mkfs-opts"
13156
13157 #. type: verbatim
13158 #: ../fish/guestfish-actions.pod:3299
13159 #, no-wrap
13160 msgid ""
13161 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
13162 "\n"
13163 msgstr ""
13164
13165 #. type: textblock
13166 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5111
13167 msgid ""
13168 "This function creates a filesystem on C<device>.  The filesystem type is "
13169 "C<fstype>, for example C<ext3>."
13170 msgstr ""
13171
13172 #. type: =item
13173 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:5118
13174 msgid "C<blocksize>"
13175 msgstr "C<blocksize>"
13176
13177 #. type: textblock
13178 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5120
13179 msgid ""
13180 "The filesystem block size.  Supported block sizes depend on the filesystem "
13181 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13182 "filesystems."
13183 msgstr ""
13184
13185 #. type: textblock
13186 #: ../fish/guestfish-actions.pod:3317 ../src/guestfs-actions.pod:5127
13187 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13188 msgstr ""
13189
13190 #. type: =item
13191 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5129
13192 msgid "C<features>"
13193 msgstr "C<features>"
13194
13195 #. type: textblock
13196 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5131
13197 msgid "This passes the I<-O> parameter to the external mkfs program."
13198 msgstr ""
13199
13200 #. type: textblock
13201 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5133
13202 msgid ""
13203 "For certain filesystem types, this allows extra filesystem features to be "
13204 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13205 msgstr ""
13206
13207 #. type: textblock
13208 #: ../fish/guestfish-actions.pod:3327 ../src/guestfs-actions.pod:5137
13209 msgid ""
13210 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13211 "type."
13212 msgstr ""
13213
13214 #. type: =item
13215 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5140
13216 msgid "C<inode>"
13217 msgstr "C<inode>"
13218
13219 #. type: textblock
13220 #: ../fish/guestfish-actions.pod:3332 ../src/guestfs-actions.pod:5142
13221 msgid ""
13222 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13223 "sets the inode size (only for ext2/3/4 filesystems at present)."
13224 msgstr ""
13225
13226 #. type: =item
13227 #: ../fish/guestfish-actions.pod:3335 ../src/guestfs-actions.pod:5145
13228 msgid "C<sectorsize>"
13229 msgstr "C<sectorsize>"
13230
13231 #. type: textblock
13232 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5147
13233 msgid ""
13234 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13235 "sets sector size for ufs filesystem."
13236 msgstr ""
13237
13238 #. type: =head2
13239 #: ../fish/guestfish-actions.pod:3344
13240 msgid "mkmountpoint"
13241 msgstr "mkmountpoint"
13242
13243 #. type: verbatim
13244 #: ../fish/guestfish-actions.pod:3346
13245 #, no-wrap
13246 msgid ""
13247 " mkmountpoint exemptpath\n"
13248 "\n"
13249 msgstr ""
13250
13251 #. type: textblock
13252 #: ../fish/guestfish-actions.pod:3348
13253 msgid ""
13254 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13255 "to create extra mountpoints before mounting the first filesystem."
13256 msgstr ""
13257
13258 #. type: textblock
13259 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5190
13260 msgid ""
13261 "These calls are I<only> necessary in some very limited circumstances, mainly "
13262 "the case where you want to mount a mix of unrelated and/or read-only "
13263 "filesystems together."
13264 msgstr ""
13265
13266 #. type: textblock
13267 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5194
13268 msgid ""
13269 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13270 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13271 "inside that.  You can unpack this as follows in guestfish:"
13272 msgstr ""
13273
13274 #. type: verbatim
13275 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5199
13276 #, no-wrap
13277 msgid ""
13278 " add-ro Fedora-11-i686-Live.iso\n"
13279 " run\n"
13280 " mkmountpoint /cd\n"
13281 " mkmountpoint /sqsh\n"
13282 " mkmountpoint /ext3fs\n"
13283 " mount /dev/sda /cd\n"
13284 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13285 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13286 "\n"
13287 msgstr ""
13288 " add-ro Fedora-11-i686-Live.iso\n"
13289 " run\n"
13290 " mkmountpoint /cd\n"
13291 " mkmountpoint /sqsh\n"
13292 " mkmountpoint /ext3fs\n"
13293 " mount /dev/sda /cd\n"
13294 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13295 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13296 "\n"
13297
13298 #. type: textblock
13299 #: ../fish/guestfish-actions.pod:3370 ../src/guestfs-actions.pod:5208
13300 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13301 msgstr ""
13302
13303 #. type: textblock
13304 #: ../fish/guestfish-actions.pod:3372
13305 msgid ""
13306 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13307 "unexpected errors if you try to mix these calls.  It is safest to manually "
13308 "unmount filesystems and remove mountpoints after use."
13309 msgstr ""
13310
13311 #. type: textblock
13312 #: ../fish/guestfish-actions.pod:3376
13313 msgid ""
13314 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13315 "for this to work for manual mountpoints, you must ensure that the innermost "
13316 "mountpoints have the longest pathnames, as in the example code above."
13317 msgstr ""
13318
13319 #. type: textblock
13320 #: ../fish/guestfish-actions.pod:3381 ../src/guestfs-actions.pod:5219
13321 msgid ""
13322 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13323 msgstr ""
13324
13325 #. type: textblock
13326 #: ../fish/guestfish-actions.pod:3383
13327 msgid ""
13328 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13329 "L</umount-all> to be called when the handle is closed which can also trigger "
13330 "these issues."
13331 msgstr ""
13332
13333 #. type: =head2
13334 #: ../fish/guestfish-actions.pod:3387
13335 msgid "mknod"
13336 msgstr "mknod"
13337
13338 #. type: verbatim
13339 #: ../fish/guestfish-actions.pod:3389
13340 #, no-wrap
13341 msgid ""
13342 " mknod mode devmajor devminor path\n"
13343 "\n"
13344 msgstr ""
13345
13346 #. type: textblock
13347 #: ../fish/guestfish-actions.pod:3391 ../src/guestfs-actions.pod:5238
13348 msgid ""
13349 "This call creates block or character special devices, or named pipes (FIFOs)."
13350 msgstr ""
13351
13352 #. type: textblock
13353 #: ../fish/guestfish-actions.pod:3394 ../src/guestfs-actions.pod:5241
13354 msgid ""
13355 "The C<mode> parameter should be the mode, using the standard constants.  "
13356 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13357 "used when creating block and character special devices."
13358 msgstr ""
13359
13360 #. type: textblock
13361 #: ../fish/guestfish-actions.pod:3399
13362 msgid ""
13363 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13364 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13365 "regular file).  These constants are available in the standard Linux header "
13366 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13367 "wrappers around this command which bitwise OR in the appropriate constant "
13368 "for you."
13369 msgstr ""
13370
13371 #. type: =head2
13372 #: ../fish/guestfish-actions.pod:3409
13373 msgid "mknod-b"
13374 msgstr "mknod-b"
13375
13376 #. type: verbatim
13377 #: ../fish/guestfish-actions.pod:3411
13378 #, no-wrap
13379 msgid ""
13380 " mknod-b mode devmajor devminor path\n"
13381 "\n"
13382 msgstr ""
13383
13384 #. type: textblock
13385 #: ../fish/guestfish-actions.pod:3413
13386 msgid ""
13387 "This call creates a block device node called C<path> with mode C<mode> and "
13388 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13389 "wrapper around L</mknod>."
13390 msgstr ""
13391
13392 #. type: =head2
13393 #: ../fish/guestfish-actions.pod:3419
13394 msgid "mknod-c"
13395 msgstr "mknod-c"
13396
13397 #. type: verbatim
13398 #: ../fish/guestfish-actions.pod:3421
13399 #, no-wrap
13400 msgid ""
13401 " mknod-c mode devmajor devminor path\n"
13402 "\n"
13403 msgstr ""
13404
13405 #. type: textblock
13406 #: ../fish/guestfish-actions.pod:3423
13407 msgid ""
13408 "This call creates a char device node called C<path> with mode C<mode> and "
13409 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13410 "wrapper around L</mknod>."
13411 msgstr ""
13412
13413 #. type: =head2
13414 #: ../fish/guestfish-actions.pod:3429
13415 msgid "mkswap"
13416 msgstr "mkswap"
13417
13418 #. type: verbatim
13419 #: ../fish/guestfish-actions.pod:3431
13420 #, no-wrap
13421 msgid ""
13422 " mkswap device\n"
13423 "\n"
13424 msgstr ""
13425 " mkswap пристрій\n"
13426 "\n"
13427
13428 #. type: textblock
13429 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5304
13430 msgid "Create a swap partition on C<device>."
13431 msgstr ""
13432
13433 #. type: =head2
13434 #: ../fish/guestfish-actions.pod:3435
13435 msgid "mkswap-L"
13436 msgstr "mkswap-L"
13437
13438 #. type: verbatim
13439 #: ../fish/guestfish-actions.pod:3437
13440 #, no-wrap
13441 msgid ""
13442 " mkswap-L label device\n"
13443 "\n"
13444 msgstr ""
13445 " mkswap-L мітка пристрій\n"
13446 "\n"
13447
13448 #. type: textblock
13449 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5317
13450 msgid "Create a swap partition on C<device> with label C<label>."
13451 msgstr ""
13452
13453 #. type: textblock
13454 #: ../fish/guestfish-actions.pod:3441 ../src/guestfs-actions.pod:5319
13455 msgid ""
13456 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13457 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13458 "or swap tools."
13459 msgstr ""
13460
13461 #. type: =head2
13462 #: ../fish/guestfish-actions.pod:3445
13463 msgid "mkswap-U"
13464 msgstr "mkswap-U"
13465
13466 #. type: verbatim
13467 #: ../fish/guestfish-actions.pod:3447
13468 #, no-wrap
13469 msgid ""
13470 " mkswap-U uuid device\n"
13471 "\n"
13472 msgstr ""
13473 " mkswap-U uuid пристрій\n"
13474 "\n"
13475
13476 #. type: textblock
13477 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5334
13478 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13479 msgstr ""
13480
13481 #. type: =head2
13482 #: ../fish/guestfish-actions.pod:3451
13483 msgid "mkswap-file"
13484 msgstr "mkswap-file"
13485
13486 #. type: verbatim
13487 #: ../fish/guestfish-actions.pod:3453
13488 #, no-wrap
13489 msgid ""
13490 " mkswap-file path\n"
13491 "\n"
13492 msgstr ""
13493 " mkswap-file шлях\n"
13494 "\n"
13495
13496 #. type: textblock
13497 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5346
13498 msgid "Create a swap file."
13499 msgstr "Створити файл резервної пам’яті."
13500
13501 #. type: textblock
13502 #: ../fish/guestfish-actions.pod:3457
13503 msgid ""
13504 "This command just writes a swap file signature to an existing file.  To "
13505 "create the file itself, use something like L</fallocate>."
13506 msgstr ""
13507
13508 #. type: =head2
13509 #: ../fish/guestfish-actions.pod:3460
13510 msgid "modprobe"
13511 msgstr "modprobe"
13512
13513 #. type: verbatim
13514 #: ../fish/guestfish-actions.pod:3462
13515 #, no-wrap
13516 msgid ""
13517 " modprobe modulename\n"
13518 "\n"
13519 msgstr ""
13520 " modprobe назва_модуля\n"
13521 "\n"
13522
13523 #. type: textblock
13524 #: ../fish/guestfish-actions.pod:3464 ../src/guestfs-actions.pod:5361
13525 msgid "This loads a kernel module in the appliance."
13526 msgstr ""
13527
13528 #. type: textblock
13529 #: ../fish/guestfish-actions.pod:3466 ../src/guestfs-actions.pod:5363
13530 msgid ""
13531 "The kernel module must have been whitelisted when libguestfs was built (see "
13532 "C<appliance/kmod.whitelist.in> in the source)."
13533 msgstr ""
13534
13535 #. type: =head2
13536 #: ../fish/guestfish-actions.pod:3469
13537 msgid "mount"
13538 msgstr "mount"
13539
13540 #. type: verbatim
13541 #: ../fish/guestfish-actions.pod:3471
13542 #, no-wrap
13543 msgid ""
13544 " mount device mountpoint\n"
13545 "\n"
13546 msgstr ""
13547 " mount пристрій точка_монтування\n"
13548 "\n"
13549
13550 #. type: textblock
13551 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5377
13552 msgid ""
13553 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13554 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13555 "those block devices contain partitions, they will have the usual names (eg. "
13556 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13557 msgstr ""
13558
13559 #. type: textblock
13560 #: ../fish/guestfish-actions.pod:3479 ../src/guestfs-actions.pod:5383
13561 msgid ""
13562 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13563 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13564 "mounted on directories which already exist."
13565 msgstr ""
13566
13567 #. type: textblock
13568 #: ../fish/guestfish-actions.pod:3484 ../src/guestfs-actions.pod:5388
13569 msgid ""
13570 "The mounted filesystem is writable, if we have sufficient permissions on the "
13571 "underlying device."
13572 msgstr ""
13573
13574 #. type: textblock
13575 #: ../fish/guestfish-actions.pod:3487
13576 msgid ""
13577 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13578 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13579 "problems for users.  If your program might need to work with older versions "
13580 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13581 "first parameter if you don't want any options)."
13582 msgstr ""
13583
13584 #. type: =head2
13585 #: ../fish/guestfish-actions.pod:3494
13586 msgid "mount-9p"
13587 msgstr ""
13588
13589 #. type: verbatim
13590 #: ../fish/guestfish-actions.pod:3496
13591 #, no-wrap
13592 msgid ""
13593 " mount-9p mounttag mountpoint [options:..]\n"
13594 "\n"
13595 msgstr ""
13596
13597 #. type: textblock
13598 #: ../fish/guestfish-actions.pod:3498 ../src/guestfs-actions.pod:5417
13599 msgid ""
13600 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13601 "C<mountpoint>."
13602 msgstr ""
13603
13604 #. type: textblock
13605 #: ../fish/guestfish-actions.pod:3501 ../src/guestfs-actions.pod:5420
13606 msgid ""
13607 "If required, C<trans=virtio> will be automatically added to the options.  "
13608 "Any other options required can be passed in the optional C<options> "
13609 "parameter."
13610 msgstr ""
13611
13612 #. type: =head2
13613 #: ../fish/guestfish-actions.pod:3507
13614 msgid "mount-loop"
13615 msgstr "mount-loop"
13616
13617 #. type: verbatim
13618 #: ../fish/guestfish-actions.pod:3509
13619 #, no-wrap
13620 msgid ""
13621 " mount-loop file mountpoint\n"
13622 "\n"
13623 msgstr ""
13624
13625 #. type: textblock
13626 #: ../fish/guestfish-actions.pod:3511 ../src/guestfs-actions.pod:5459
13627 msgid ""
13628 "This command lets you mount C<file> (a filesystem image in a file) on a "
13629 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13630 "mountpoint>."
13631 msgstr ""
13632
13633 #. type: =head2
13634 #: ../fish/guestfish-actions.pod:3515
13635 msgid "mount-options"
13636 msgstr "mount-options"
13637
13638 #. type: verbatim
13639 #: ../fish/guestfish-actions.pod:3517
13640 #, no-wrap
13641 msgid ""
13642 " mount-options options device mountpoint\n"
13643 "\n"
13644 msgstr ""
13645
13646 #. type: textblock
13647 #: ../fish/guestfish-actions.pod:3519
13648 msgid ""
13649 "This is the same as the L</mount> command, but it allows you to set the "
13650 "mount options as for the L<mount(8)> I<-o> flag."
13651 msgstr ""
13652
13653 #. type: textblock
13654 #: ../fish/guestfish-actions.pod:3523 ../src/guestfs-actions.pod:5479
13655 msgid ""
13656 "If the C<options> parameter is an empty string, then no options are passed "
13657 "(all options default to whatever the filesystem uses)."
13658 msgstr ""
13659
13660 #. type: =head2
13661 #: ../fish/guestfish-actions.pod:3527
13662 msgid "mount-ro"
13663 msgstr "mount-ro"
13664
13665 #. type: verbatim
13666 #: ../fish/guestfish-actions.pod:3529
13667 #, no-wrap
13668 msgid ""
13669 " mount-ro device mountpoint\n"
13670 "\n"
13671 msgstr ""
13672 " mount-ro пристрій точка_монтування\n"
13673 "\n"
13674
13675 #. type: textblock
13676 #: ../fish/guestfish-actions.pod:3531
13677 msgid ""
13678 "This is the same as the L</mount> command, but it mounts the filesystem with "
13679 "the read-only (I<-o ro>) flag."
13680 msgstr ""
13681
13682 #. type: =head2
13683 #: ../fish/guestfish-actions.pod:3534
13684 msgid "mount-vfs"
13685 msgstr "mount-vfs"
13686
13687 #. type: verbatim
13688 #: ../fish/guestfish-actions.pod:3536
13689 #, no-wrap
13690 msgid ""
13691 " mount-vfs options vfstype device mountpoint\n"
13692 "\n"
13693 msgstr ""
13694
13695 #. type: textblock
13696 #: ../fish/guestfish-actions.pod:3538
13697 msgid ""
13698 "This is the same as the L</mount> command, but it allows you to set both the "
13699 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13700 msgstr ""
13701
13702 #. type: =head2
13703 #: ../fish/guestfish-actions.pod:3542
13704 msgid "mountpoints"
13705 msgstr "mountpoints"
13706
13707 #. type: verbatim
13708 #: ../fish/guestfish-actions.pod:3544
13709 #, no-wrap
13710 msgid ""
13711 " mountpoints\n"
13712 "\n"
13713 msgstr ""
13714 " mountpoints\n"
13715 "\n"
13716
13717 #. type: textblock
13718 #: ../fish/guestfish-actions.pod:3546
13719 msgid ""
13720 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13721 "This one returns a hash table (map) of device name to directory where the "
13722 "device is mounted."
13723 msgstr ""
13724
13725 #. type: =head2
13726 #: ../fish/guestfish-actions.pod:3550
13727 msgid "mounts"
13728 msgstr "mounts"
13729
13730 #. type: verbatim
13731 #: ../fish/guestfish-actions.pod:3552
13732 #, no-wrap
13733 msgid ""
13734 " mounts\n"
13735 "\n"
13736 msgstr ""
13737 " mounts\n"
13738 "\n"
13739
13740 #. type: textblock
13741 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5540
13742 msgid ""
13743 "This returns the list of currently mounted filesystems.  It returns the list "
13744 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13745 msgstr ""
13746
13747 #. type: textblock
13748 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5543
13749 msgid "Some internal mounts are not shown."
13750 msgstr ""
13751
13752 #. type: textblock
13753 #: ../fish/guestfish-actions.pod:3559
13754 msgid "See also: L</mountpoints>"
13755 msgstr "Див. також L</mountpoints>"
13756
13757 #. type: =head2
13758 #: ../fish/guestfish-actions.pod:3561
13759 msgid "mv"
13760 msgstr "mv"
13761
13762 #. type: verbatim
13763 #: ../fish/guestfish-actions.pod:3563
13764 #, no-wrap
13765 msgid ""
13766 " mv src dest\n"
13767 "\n"
13768 msgstr ""
13769 " mv джерело призначення\n"
13770 "\n"
13771
13772 #. type: textblock
13773 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5560
13774 msgid ""
13775 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13776 "destination filename or destination directory."
13777 msgstr ""
13778
13779 #. type: =head2
13780 #: ../fish/guestfish-actions.pod:3568
13781 msgid "ntfs-3g-probe"
13782 msgstr "ntfs-3g-probe"
13783
13784 #. type: verbatim
13785 #: ../fish/guestfish-actions.pod:3570
13786 #, no-wrap
13787 msgid ""
13788 " ntfs-3g-probe true|false device\n"
13789 "\n"
13790 msgstr ""
13791
13792 #. type: textblock
13793 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5574
13794 msgid ""
13795 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13796 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
13797 "write, and some cannot be mounted at all)."
13798 msgstr ""
13799
13800 #. type: textblock
13801 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5578
13802 msgid ""
13803 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13804 "can be mounted read-write.  Set it to false if you want to test if the "
13805 "volume can be mounted read-only."
13806 msgstr ""
13807
13808 #. type: textblock
13809 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5582
13810 msgid ""
13811 "The return value is an integer which C<0> if the operation would succeed, or "
13812 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13813 msgstr ""
13814
13815 #. type: =head2
13816 #: ../fish/guestfish-actions.pod:3584
13817 msgid "ntfsresize"
13818 msgstr "ntfsresize"
13819
13820 #. type: verbatim
13821 #: ../fish/guestfish-actions.pod:3586
13822 #, no-wrap
13823 msgid ""
13824 " ntfsresize device\n"
13825 "\n"
13826 msgstr ""
13827 " ntfsresize пристрій\n"
13828 "\n"
13829
13830 #. type: textblock
13831 #: ../fish/guestfish-actions.pod:3588 ../fish/guestfish-actions.pod:3612
13832 #: ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5635
13833 msgid ""
13834 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13835 "size of the underlying device."
13836 msgstr ""
13837
13838 #. type: textblock
13839 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5606
13840 msgid ""
13841 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13842 "consistency check (for safety).  You have to boot into Windows to perform "
13843 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13844 "resize filesystems which have been marked in this way.  So in effect it is "
13845 "not possible to call ntfsresize multiple times on a single filesystem "
13846 "without booting into Windows between each resize."
13847 msgstr ""
13848
13849 #. type: textblock
13850 #: ../fish/guestfish-actions.pod:3599 ../fish/guestfish-actions.pod:3638
13851 #: ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5661
13852 msgid "See also L<ntfsresize(8)>."
13853 msgstr "Див. також L<ntfsresize(8)>."
13854
13855 #. type: textblock
13856 #: ../fish/guestfish-actions.pod:3601 ../fish/guestfish-actions.pod:3649
13857 msgid ""
13858 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13859 "call instead."
13860 msgstr ""
13861
13862 #. type: =head2
13863 #: ../fish/guestfish-actions.pod:3608
13864 msgid "ntfsresize-opts"
13865 msgstr ""
13866
13867 #. type: verbatim
13868 #: ../fish/guestfish-actions.pod:3610
13869 #, no-wrap
13870 msgid ""
13871 " ntfsresize-opts device [size:..] [force:..]\n"
13872 "\n"
13873 msgstr ""
13874
13875 #. type: textblock
13876 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5644
13877 msgid ""
13878 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13879 "resized to fit the container (eg. partition)."
13880 msgstr ""
13881
13882 #. type: =item
13883 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5647
13884 msgid "C<force>"
13885 msgstr "C<force>"
13886
13887 #. type: textblock
13888 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5649
13889 msgid ""
13890 "If this option is true, then force the resize of the filesystem even if the "
13891 "filesystem is marked as requiring a consistency check."
13892 msgstr ""
13893
13894 #. type: textblock
13895 #: ../fish/guestfish-actions.pod:3629
13896 msgid ""
13897 "After the resize operation, the filesystem is always marked as requiring a "
13898 "consistency check (for safety).  You have to boot into Windows to perform "
13899 "this check and clear this condition.  If you I<don't> set the C<force> "
13900 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13901 "a single filesystem without booting into Windows between each resize."
13902 msgstr ""
13903
13904 #. type: =head2
13905 #: ../fish/guestfish-actions.pod:3642
13906 msgid "ntfsresize-size"
13907 msgstr "ntfsresize-size"
13908
13909 #. type: verbatim
13910 #: ../fish/guestfish-actions.pod:3644
13911 #, no-wrap
13912 msgid ""
13913 " ntfsresize-size device size\n"
13914 "\n"
13915 msgstr ""
13916
13917 #. type: textblock
13918 #: ../fish/guestfish-actions.pod:3646
13919 msgid ""
13920 "This command is the same as L</ntfsresize> except that it allows you to "
13921 "specify the new size (in bytes) explicitly."
13922 msgstr ""
13923
13924 #. type: =head2
13925 #: ../fish/guestfish-actions.pod:3656
13926 msgid "part-add"
13927 msgstr "part-add"
13928
13929 #. type: verbatim
13930 #: ../fish/guestfish-actions.pod:3658
13931 #, no-wrap
13932 msgid ""
13933 " part-add device prlogex startsect endsect\n"
13934 "\n"
13935 msgstr ""
13936
13937 #. type: textblock
13938 #: ../fish/guestfish-actions.pod:3660
13939 msgid ""
13940 "This command adds a partition to C<device>.  If there is no partition table "
13941 "on the device, call L</part-init> first."
13942 msgstr ""
13943
13944 #. type: textblock
13945 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5722
13946 msgid ""
13947 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13948 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13949 "C<logical>) and C<e> (or C<extended>) partition types."
13950 msgstr ""
13951
13952 #. type: textblock
13953 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5727
13954 msgid ""
13955 "C<startsect> and C<endsect> are the start and end of the partition in "
13956 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13957 "from the end of the disk (C<-1> is the last sector)."
13958 msgstr ""
13959
13960 #. type: textblock
13961 #: ../fish/guestfish-actions.pod:3672
13962 msgid ""
13963 "Creating a partition which covers the whole disk is not so easy.  Use L</"
13964 "part-disk> to do that."
13965 msgstr ""
13966
13967 #. type: =head2
13968 #: ../fish/guestfish-actions.pod:3675
13969 msgid "part-del"
13970 msgstr "part-del"
13971
13972 #. type: verbatim
13973 #: ../fish/guestfish-actions.pod:3677
13974 #, no-wrap
13975 msgid ""
13976 " part-del device partnum\n"
13977 "\n"
13978 msgstr ""
13979
13980 #. type: textblock
13981 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5745
13982 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13983 msgstr ""
13984
13985 #. type: textblock
13986 #: ../fish/guestfish-actions.pod:3681 ../src/guestfs-actions.pod:5747
13987 msgid ""
13988 "Note that in the case of MBR partitioning, deleting an extended partition "
13989 "also deletes any logical partitions it contains."
13990 msgstr ""
13991
13992 #. type: =head2
13993 #: ../fish/guestfish-actions.pod:3685
13994 msgid "part-disk"
13995 msgstr "part-disk"
13996
13997 #. type: verbatim
13998 #: ../fish/guestfish-actions.pod:3687
13999 #, no-wrap
14000 msgid ""
14001 " part-disk device parttype\n"
14002 "\n"
14003 msgstr ""
14004 " part-disk пристрій тип_розділу\n"
14005 "\n"
14006
14007 #. type: textblock
14008 #: ../fish/guestfish-actions.pod:3689
14009 msgid ""
14010 "This command is simply a combination of L</part-init> followed by L</part-"
14011 "add> to create a single primary partition covering the whole disk."
14012 msgstr ""
14013
14014 #. type: textblock
14015 #: ../fish/guestfish-actions.pod:3693
14016 msgid ""
14017 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
14018 "possible values are described in L</part-init>."
14019 msgstr ""
14020
14021 #. type: =head2
14022 #: ../fish/guestfish-actions.pod:3699
14023 msgid "part-get-bootable"
14024 msgstr "part-get-bootable"
14025
14026 #. type: verbatim
14027 #: ../fish/guestfish-actions.pod:3701
14028 #, no-wrap
14029 msgid ""
14030 " part-get-bootable device partnum\n"
14031 "\n"
14032 msgstr ""
14033
14034 #. type: textblock
14035 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5783
14036 msgid ""
14037 "This command returns true if the partition C<partnum> on C<device> has the "
14038 "bootable flag set."
14039 msgstr ""
14040
14041 #. type: textblock
14042 #: ../fish/guestfish-actions.pod:3706
14043 msgid "See also L</part-set-bootable>."
14044 msgstr "Див. також L</part-set-bootable>."
14045
14046 #. type: =head2
14047 #: ../fish/guestfish-actions.pod:3708
14048 msgid "part-get-mbr-id"
14049 msgstr "part-get-mbr-id"
14050
14051 #. type: verbatim
14052 #: ../fish/guestfish-actions.pod:3710
14053 #, no-wrap
14054 msgid ""
14055 " part-get-mbr-id device partnum\n"
14056 "\n"
14057 msgstr ""
14058
14059 #. type: textblock
14060 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5799
14061 msgid ""
14062 "Returns the MBR type byte (also known as the ID byte) from the numbered "
14063 "partition C<partnum>."
14064 msgstr ""
14065
14066 #. type: textblock
14067 #: ../fish/guestfish-actions.pod:3715 ../fish/guestfish-actions.pod:3859
14068 msgid ""
14069 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
14070 "undefined results for other partition table types (see L</part-get-"
14071 "parttype>)."
14072 msgstr ""
14073
14074 #. type: =head2
14075 #: ../fish/guestfish-actions.pod:3719
14076 msgid "part-get-parttype"
14077 msgstr "part-get-parttype"
14078
14079 #. type: verbatim
14080 #: ../fish/guestfish-actions.pod:3721
14081 #, no-wrap
14082 msgid ""
14083 " part-get-parttype device\n"
14084 "\n"
14085 msgstr ""
14086 " part-get-parttype пристрій\n"
14087 "\n"
14088
14089 #. type: textblock
14090 #: ../fish/guestfish-actions.pod:3723 ../src/guestfs-actions.pod:5816
14091 msgid ""
14092 "This command examines the partition table on C<device> and returns the "
14093 "partition table type (format) being used."
14094 msgstr ""
14095
14096 #. type: textblock
14097 #: ../fish/guestfish-actions.pod:3726
14098 msgid ""
14099 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14100 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14101 "possible, although unusual.  See L</part-init> for a full list."
14102 msgstr ""
14103
14104 #. type: =head2
14105 #: ../fish/guestfish-actions.pod:3731
14106 msgid "part-init"
14107 msgstr "part-init"
14108
14109 #. type: verbatim
14110 #: ../fish/guestfish-actions.pod:3733
14111 #, no-wrap
14112 msgid ""
14113 " part-init device parttype\n"
14114 "\n"
14115 msgstr ""
14116
14117 #. type: textblock
14118 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5836
14119 msgid ""
14120 "This creates an empty partition table on C<device> of one of the partition "
14121 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14122 "(for large disks)."
14123 msgstr ""
14124
14125 #. type: textblock
14126 #: ../fish/guestfish-actions.pod:3739
14127 msgid ""
14128 "Initially there are no partitions.  Following this, you should call L</part-"
14129 "add> for each partition required."
14130 msgstr ""
14131
14132 #. type: textblock
14133 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5843
14134 msgid "Possible values for C<parttype> are:"
14135 msgstr ""
14136
14137 #. type: =item
14138 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5847
14139 msgid "B<efi>"
14140 msgstr "B<efi>"
14141
14142 #. type: =item
14143 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5849
14144 msgid "B<gpt>"
14145 msgstr "B<gpt>"
14146
14147 #. type: textblock
14148 #: ../fish/guestfish-actions.pod:3750 ../src/guestfs-actions.pod:5851
14149 msgid "Intel EFI / GPT partition table."
14150 msgstr ""
14151
14152 #. type: textblock
14153 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5853
14154 msgid ""
14155 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14156 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14157 "the C<mbr> format."
14158 msgstr ""
14159
14160 #. type: =item
14161 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5857
14162 msgid "B<mbr>"
14163 msgstr "B<mbr>"
14164
14165 #. type: =item
14166 #: ../fish/guestfish-actions.pod:3758 ../src/guestfs-actions.pod:5859
14167 msgid "B<msdos>"
14168 msgstr "B<msdos>"
14169
14170 #. type: textblock
14171 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5861
14172 msgid ""
14173 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14174 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14175 "TB.  For large disks we recommend using C<gpt>."
14176 msgstr ""
14177
14178 #. type: textblock
14179 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5868
14180 msgid ""
14181 "Other partition table types that may work but are not supported include:"
14182 msgstr ""
14183
14184 #. type: =item
14185 #: ../fish/guestfish-actions.pod:3772 ../src/guestfs-actions.pod:5873
14186 msgid "B<aix>"
14187 msgstr "B<aix>"
14188
14189 #. type: textblock
14190 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5875
14191 msgid "AIX disk labels."
14192 msgstr "Мітки дисків AIX."
14193
14194 #. type: =item
14195 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5877
14196 msgid "B<amiga>"
14197 msgstr "B<amiga>"
14198
14199 #. type: =item
14200 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5879
14201 msgid "B<rdb>"
14202 msgstr "B<rdb>"
14203
14204 #. type: textblock
14205 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5881
14206 msgid "Amiga \"Rigid Disk Block\" format."
14207 msgstr "Формат \"Rigid Disk Block\" Amiga."
14208
14209 #. type: =item
14210 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5883
14211 msgid "B<bsd>"
14212 msgstr "B<bsd>"
14213
14214 #. type: textblock
14215 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5885
14216 msgid "BSD disk labels."
14217 msgstr "Мітки дисків BSD."
14218
14219 #. type: =item
14220 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5887
14221 msgid "B<dasd>"
14222 msgstr "B<dasd>"
14223
14224 #. type: textblock
14225 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5889
14226 msgid "DASD, used on IBM mainframes."
14227 msgstr "DASD, використовувалися у мейнфреймах IBM."
14228
14229 #. type: =item
14230 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5891
14231 msgid "B<dvh>"
14232 msgstr "B<dvh>"
14233
14234 #. type: textblock
14235 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5893
14236 msgid "MIPS/SGI volumes."
14237 msgstr "Томи MIPS/SGI."
14238
14239 #. type: =item
14240 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5895
14241 msgid "B<mac>"
14242 msgstr "B<mac>"
14243
14244 #. type: textblock
14245 #: ../fish/guestfish-actions.pod:3796 ../src/guestfs-actions.pod:5897
14246 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14247 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14248
14249 #. type: =item
14250 #: ../fish/guestfish-actions.pod:3798 ../src/guestfs-actions.pod:5899
14251 msgid "B<pc98>"
14252 msgstr "B<pc98>"
14253
14254 #. type: textblock
14255 #: ../fish/guestfish-actions.pod:3800 ../src/guestfs-actions.pod:5901
14256 msgid "NEC PC-98 format, common in Japan apparently."
14257 msgstr "Формат NEC PC-98, поширений у Японії."
14258
14259 #. type: =item
14260 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5903
14261 msgid "B<sun>"
14262 msgstr "B<sun>"
14263
14264 #. type: textblock
14265 #: ../fish/guestfish-actions.pod:3804 ../src/guestfs-actions.pod:5905
14266 msgid "Sun disk labels."
14267 msgstr "Мітки дисків Sun."
14268
14269 #. type: =head2
14270 #: ../fish/guestfish-actions.pod:3808
14271 msgid "part-list"
14272 msgstr "part-list"
14273
14274 #. type: verbatim
14275 #: ../fish/guestfish-actions.pod:3810
14276 #, no-wrap
14277 msgid ""
14278 " part-list device\n"
14279 "\n"
14280 msgstr ""
14281 " part-list device\n"
14282 "\n"
14283
14284 #. type: textblock
14285 #: ../fish/guestfish-actions.pod:3812 ../src/guestfs-actions.pod:5919
14286 msgid ""
14287 "This command parses the partition table on C<device> and returns the list of "
14288 "partitions found."
14289 msgstr ""
14290
14291 #. type: textblock
14292 #: ../fish/guestfish-actions.pod:3815 ../src/guestfs-actions.pod:5922
14293 msgid "The fields in the returned structure are:"
14294 msgstr ""
14295
14296 #. type: =item
14297 #: ../fish/guestfish-actions.pod:3819 ../src/guestfs-actions.pod:5926
14298 msgid "B<part_num>"
14299 msgstr "B<part_num>"
14300
14301 #. type: textblock
14302 #: ../fish/guestfish-actions.pod:3821 ../src/guestfs-actions.pod:5928
14303 msgid "Partition number, counting from 1."
14304 msgstr ""
14305
14306 #. type: =item
14307 #: ../fish/guestfish-actions.pod:3823 ../src/guestfs-actions.pod:5930
14308 msgid "B<part_start>"
14309 msgstr "B<part_start>"
14310
14311 #. type: textblock
14312 #: ../fish/guestfish-actions.pod:3825
14313 msgid ""
14314 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14315 "the device's sector size, see L</blockdev-getss>."
14316 msgstr ""
14317
14318 #. type: =item
14319 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5935
14320 msgid "B<part_end>"
14321 msgstr "B<part_end>"
14322
14323 #. type: textblock
14324 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5937
14325 msgid "End of the partition in bytes."
14326 msgstr ""
14327
14328 #. type: =item
14329 #: ../fish/guestfish-actions.pod:3832 ../src/guestfs-actions.pod:5939
14330 msgid "B<part_size>"
14331 msgstr "B<part_size>"
14332
14333 #. type: textblock
14334 #: ../fish/guestfish-actions.pod:3834 ../src/guestfs-actions.pod:5941
14335 msgid "Size of the partition in bytes."
14336 msgstr ""
14337
14338 #. type: =head2
14339 #: ../fish/guestfish-actions.pod:3838
14340 msgid "part-set-bootable"
14341 msgstr "part-set-bootable"
14342
14343 #. type: verbatim
14344 #: ../fish/guestfish-actions.pod:3840
14345 #, no-wrap
14346 msgid ""
14347 " part-set-bootable device partnum true|false\n"
14348 "\n"
14349 msgstr ""
14350
14351 #. type: textblock
14352 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5959
14353 msgid ""
14354 "This sets the bootable flag on partition numbered C<partnum> on device "
14355 "C<device>.  Note that partitions are numbered from 1."
14356 msgstr ""
14357
14358 #. type: textblock
14359 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5962
14360 msgid ""
14361 "The bootable flag is used by some operating systems (notably Windows) to "
14362 "determine which partition to boot from.  It is by no means universally "
14363 "recognized."
14364 msgstr ""
14365
14366 #. type: =head2
14367 #: ../fish/guestfish-actions.pod:3849
14368 msgid "part-set-mbr-id"
14369 msgstr "part-set-mbr-id"
14370
14371 #. type: verbatim
14372 #: ../fish/guestfish-actions.pod:3851
14373 #, no-wrap
14374 msgid ""
14375 " part-set-mbr-id device partnum idbyte\n"
14376 "\n"
14377 msgstr ""
14378
14379 #. type: textblock
14380 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5978
14381 msgid ""
14382 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14383 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14384 "documentation are in fact hexadecimal numbers, but usually documented "
14385 "without any leading \"0x\" which might be confusing."
14386 msgstr ""
14387
14388 #. type: =head2
14389 #: ../fish/guestfish-actions.pod:3863
14390 msgid "part-set-name"
14391 msgstr "part-set-name"
14392
14393 #. type: verbatim
14394 #: ../fish/guestfish-actions.pod:3865
14395 #, no-wrap
14396 msgid ""
14397 " part-set-name device partnum name\n"
14398 "\n"
14399 msgstr ""
14400
14401 #. type: textblock
14402 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:6000
14403 msgid ""
14404 "This sets the partition name on partition numbered C<partnum> on device "
14405 "C<device>.  Note that partitions are numbered from 1."
14406 msgstr ""
14407
14408 #. type: textblock
14409 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:6003
14410 msgid ""
14411 "The partition name can only be set on certain types of partition table.  "
14412 "This works on C<gpt> but not on C<mbr> partitions."
14413 msgstr ""
14414
14415 #. type: =head2
14416 #: ../fish/guestfish-actions.pod:3873
14417 msgid "part-to-dev"
14418 msgstr "part-to-dev"
14419
14420 #. type: verbatim
14421 #: ../fish/guestfish-actions.pod:3875
14422 #, no-wrap
14423 msgid ""
14424 " part-to-dev partition\n"
14425 "\n"
14426 msgstr ""
14427 " part-to-dev розділ\n"
14428 "\n"
14429
14430 #. type: textblock
14431 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6016
14432 msgid ""
14433 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14434 "partition number, returning the device name (eg. \"/dev/sdb\")."
14435 msgstr ""
14436
14437 #. type: textblock
14438 #: ../fish/guestfish-actions.pod:3881 ../fish/guestfish-actions.pod:3893
14439 msgid ""
14440 "The named partition must exist, for example as a string returned from L</"
14441 "list-partitions>."
14442 msgstr ""
14443
14444 #. type: textblock
14445 #: ../fish/guestfish-actions.pod:3884
14446 #, fuzzy
14447 #| msgid "See also: L</part-add>"
14448 msgid "See also L</part-to-partnum>."
14449 msgstr "Див. також L</part-add>"
14450
14451 #. type: =head2
14452 #: ../fish/guestfish-actions.pod:3886
14453 #, fuzzy
14454 #| msgid "part-get-parttype"
14455 msgid "part-to-partnum"
14456 msgstr "part-get-parttype"
14457
14458 #. type: verbatim
14459 #: ../fish/guestfish-actions.pod:3888
14460 #, fuzzy, no-wrap
14461 #| msgid ""
14462 #| " part-to-dev partition\n"
14463 #| "\n"
14464 msgid ""
14465 " part-to-partnum partition\n"
14466 "\n"
14467 msgstr ""
14468 " part-to-dev розділ\n"
14469 "\n"
14470
14471 #. type: textblock
14472 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6036
14473 msgid ""
14474 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14475 "partition number (eg. C<1>)."
14476 msgstr ""
14477
14478 #. type: textblock
14479 #: ../fish/guestfish-actions.pod:3896
14480 #, fuzzy
14481 #| msgid "See also: L</part-add>"
14482 msgid "See also L</part-to-dev>."
14483 msgstr "Див. також L</part-add>"
14484
14485 #. type: =head2
14486 #: ../fish/guestfish-actions.pod:3898
14487 msgid "ping-daemon"
14488 msgstr "ping-daemon"
14489
14490 #. type: verbatim
14491 #: ../fish/guestfish-actions.pod:3900
14492 #, no-wrap
14493 msgid ""
14494 " ping-daemon\n"
14495 "\n"
14496 msgstr ""
14497 " ping-daemon\n"
14498 "\n"
14499
14500 #. type: textblock
14501 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:6051
14502 msgid ""
14503 "This is a test probe into the guestfs daemon running inside the qemu "
14504 "subprocess.  Calling this function checks that the daemon responds to the "
14505 "ping message, without affecting the daemon or attached block device(s) in "
14506 "any other way."
14507 msgstr ""
14508
14509 #. type: =head2
14510 #: ../fish/guestfish-actions.pod:3907
14511 msgid "pread"
14512 msgstr "pread"
14513
14514 #. type: verbatim
14515 #: ../fish/guestfish-actions.pod:3909
14516 #, no-wrap
14517 msgid ""
14518 " pread path count offset\n"
14519 "\n"
14520 msgstr ""
14521
14522 #. type: textblock
14523 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:6069
14524 msgid ""
14525 "This command lets you read part of a file.  It reads C<count> bytes of the "
14526 "file, starting at C<offset>, from file C<path>."
14527 msgstr ""
14528
14529 #. type: textblock
14530 #: ../fish/guestfish-actions.pod:3914 ../fish/guestfish-actions.pod:3929
14531 #: ../src/guestfs-actions.pod:6072 ../src/guestfs-actions.pod:6098
14532 msgid ""
14533 "This may read fewer bytes than requested.  For further details see the "
14534 "L<pread(2)> system call."
14535 msgstr ""
14536
14537 #. type: textblock
14538 #: ../fish/guestfish-actions.pod:3917
14539 msgid "See also L</pwrite>, L</pread-device>."
14540 msgstr "Див. також L</pwrite>, L</pread-device>."
14541
14542 #. type: =head2
14543 #: ../fish/guestfish-actions.pod:3922
14544 msgid "pread-device"
14545 msgstr "pread-device"
14546
14547 #. type: verbatim
14548 #: ../fish/guestfish-actions.pod:3924
14549 #, no-wrap
14550 msgid ""
14551 " pread-device device count offset\n"
14552 "\n"
14553 msgstr ""
14554
14555 #. type: textblock
14556 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6095
14557 msgid ""
14558 "This command lets you read part of a file.  It reads C<count> bytes of "
14559 "C<device>, starting at C<offset>."
14560 msgstr ""
14561
14562 #. type: textblock
14563 #: ../fish/guestfish-actions.pod:3932
14564 msgid "See also L</pread>."
14565 msgstr "Див. також L</pread>."
14566
14567 #. type: =head2
14568 #: ../fish/guestfish-actions.pod:3937
14569 msgid "pvcreate"
14570 msgstr "pvcreate"
14571
14572 #. type: verbatim
14573 #: ../fish/guestfish-actions.pod:3939
14574 #, no-wrap
14575 msgid ""
14576 " pvcreate device\n"
14577 "\n"
14578 msgstr ""
14579 " pvcreate пристрій\n"
14580 "\n"
14581
14582 #. type: textblock
14583 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:6118
14584 msgid ""
14585 "This creates an LVM physical volume on the named C<device>, where C<device> "
14586 "should usually be a partition name such as C</dev/sda1>."
14587 msgstr ""
14588
14589 #. type: =head2
14590 #: ../fish/guestfish-actions.pod:3945
14591 msgid "pvremove"
14592 msgstr "pvremove"
14593
14594 #. type: verbatim
14595 #: ../fish/guestfish-actions.pod:3947
14596 #, no-wrap
14597 msgid ""
14598 " pvremove device\n"
14599 "\n"
14600 msgstr ""
14601 " pvremove пристрій\n"
14602 "\n"
14603
14604 #. type: textblock
14605 #: ../fish/guestfish-actions.pod:3949 ../src/guestfs-actions.pod:6132
14606 msgid ""
14607 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14608 "it."
14609 msgstr ""
14610
14611 #. type: textblock
14612 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6135
14613 msgid ""
14614 "The implementation uses the C<pvremove> command which refuses to wipe "
14615 "physical volumes that contain any volume groups, so you have to remove those "
14616 "first."
14617 msgstr ""
14618
14619 #. type: =head2
14620 #: ../fish/guestfish-actions.pod:3956
14621 msgid "pvresize"
14622 msgstr "pvresize"
14623
14624 #. type: verbatim
14625 #: ../fish/guestfish-actions.pod:3958
14626 #, no-wrap
14627 msgid ""
14628 " pvresize device\n"
14629 "\n"
14630 msgstr ""
14631 " pvresize пристрій\n"
14632 "\n"
14633
14634 #. type: textblock
14635 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6149
14636 msgid ""
14637 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14638 "the new size of the underlying device."
14639 msgstr ""
14640
14641 #. type: =head2
14642 #: ../fish/guestfish-actions.pod:3963
14643 msgid "pvresize-size"
14644 msgstr "pvresize-size"
14645
14646 #. type: verbatim
14647 #: ../fish/guestfish-actions.pod:3965
14648 #, no-wrap
14649 msgid ""
14650 " pvresize-size device size\n"
14651 "\n"
14652 msgstr ""
14653
14654 #. type: textblock
14655 #: ../fish/guestfish-actions.pod:3967
14656 msgid ""
14657 "This command is the same as L</pvresize> except that it allows you to "
14658 "specify the new size (in bytes) explicitly."
14659 msgstr ""
14660
14661 #. type: =head2
14662 #: ../fish/guestfish-actions.pod:3970
14663 msgid "pvs"
14664 msgstr "pvs"
14665
14666 #. type: verbatim
14667 #: ../fish/guestfish-actions.pod:3972
14668 #, no-wrap
14669 msgid ""
14670 " pvs\n"
14671 "\n"
14672 msgstr ""
14673 " pvs\n"
14674 "\n"
14675
14676 #. type: textblock
14677 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6175
14678 msgid ""
14679 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14680 "(8)> command."
14681 msgstr ""
14682
14683 #. type: textblock
14684 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6178
14685 msgid ""
14686 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14687 "sda2>)."
14688 msgstr ""
14689
14690 #. type: textblock
14691 #: ../fish/guestfish-actions.pod:3980
14692 msgid "See also L</pvs-full>."
14693 msgstr "Див. також L</pvs-full>."
14694
14695 #. type: =head2
14696 #: ../fish/guestfish-actions.pod:3982
14697 msgid "pvs-full"
14698 msgstr "pvs-full"
14699
14700 #. type: verbatim
14701 #: ../fish/guestfish-actions.pod:3984
14702 #, no-wrap
14703 msgid ""
14704 " pvs-full\n"
14705 "\n"
14706 msgstr ""
14707 " pvs-full\n"
14708 "\n"
14709
14710 #. type: textblock
14711 #: ../fish/guestfish-actions.pod:3986 ../src/guestfs-actions.pod:6194
14712 msgid ""
14713 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14714 "(8)> command.  The \"full\" version includes all fields."
14715 msgstr ""
14716
14717 #. type: =head2
14718 #: ../fish/guestfish-actions.pod:3989
14719 msgid "pvuuid"
14720 msgstr "pvuuid"
14721
14722 #. type: verbatim
14723 #: ../fish/guestfish-actions.pod:3991
14724 #, no-wrap
14725 msgid ""
14726 " pvuuid device\n"
14727 "\n"
14728 msgstr ""
14729 " pvuuid пристрій\n"
14730 "\n"
14731
14732 #. type: textblock
14733 #: ../fish/guestfish-actions.pod:3993 ../src/guestfs-actions.pod:6209
14734 msgid "This command returns the UUID of the LVM PV C<device>."
14735 msgstr ""
14736
14737 #. type: =head2
14738 #: ../fish/guestfish-actions.pod:3995
14739 msgid "pwrite"
14740 msgstr "pwrite"
14741
14742 #. type: verbatim
14743 #: ../fish/guestfish-actions.pod:3997
14744 #, no-wrap
14745 msgid ""
14746 " pwrite path content offset\n"
14747 "\n"
14748 msgstr ""
14749
14750 #. type: textblock
14751 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6225
14752 msgid ""
14753 "This command writes to part of a file.  It writes the data buffer C<content> "
14754 "to the file C<path> starting at offset C<offset>."
14755 msgstr ""
14756
14757 #. type: textblock
14758 #: ../fish/guestfish-actions.pod:4002 ../src/guestfs-actions.pod:6228
14759 msgid ""
14760 "This command implements the L<pwrite(2)> system call, and like that system "
14761 "call it may not write the full data requested.  The return value is the "
14762 "number of bytes that were actually written to the file.  This could even be "
14763 "0, although short writes are unlikely for regular files in ordinary "
14764 "circumstances."
14765 msgstr ""
14766
14767 #. type: textblock
14768 #: ../fish/guestfish-actions.pod:4008
14769 msgid "See also L</pread>, L</pwrite-device>."
14770 msgstr "Див. також L</pread>, L</pwrite-device>."
14771
14772 #. type: =head2
14773 #: ../fish/guestfish-actions.pod:4013
14774 msgid "pwrite-device"
14775 msgstr "pwrite-device"
14776
14777 #. type: verbatim
14778 #: ../fish/guestfish-actions.pod:4015
14779 #, no-wrap
14780 msgid ""
14781 " pwrite-device device content offset\n"
14782 "\n"
14783 msgstr ""
14784
14785 #. type: textblock
14786 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6252
14787 msgid ""
14788 "This command writes to part of a device.  It writes the data buffer "
14789 "C<content> to C<device> starting at offset C<offset>."
14790 msgstr ""
14791
14792 #. type: textblock
14793 #: ../fish/guestfish-actions.pod:4020 ../src/guestfs-actions.pod:6255
14794 msgid ""
14795 "This command implements the L<pwrite(2)> system call, and like that system "
14796 "call it may not write the full data requested (although short writes to disk "
14797 "devices and partitions are probably impossible with standard Linux kernels)."
14798 msgstr ""
14799
14800 #. type: textblock
14801 #: ../fish/guestfish-actions.pod:4025
14802 msgid "See also L</pwrite>."
14803 msgstr "Див. також L</pwrite>."
14804
14805 #. type: =head2
14806 #: ../fish/guestfish-actions.pod:4030
14807 msgid "read-file"
14808 msgstr "read-file"
14809
14810 #. type: verbatim
14811 #: ../fish/guestfish-actions.pod:4032
14812 #, no-wrap
14813 msgid ""
14814 " read-file path\n"
14815 "\n"
14816 msgstr ""
14817 " read-file шлях\n"
14818 "\n"
14819
14820 #. type: textblock
14821 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6276
14822 msgid "This calls returns the contents of the file C<path> as a buffer."
14823 msgstr ""
14824
14825 #. type: textblock
14826 #: ../fish/guestfish-actions.pod:4037
14827 msgid ""
14828 "Unlike L</cat>, this function can correctly handle files that contain "
14829 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14830 "is limited in the total size of file that can be handled."
14831 msgstr ""
14832
14833 #. type: =head2
14834 #: ../fish/guestfish-actions.pod:4045
14835 msgid "read-lines"
14836 msgstr "read-lines"
14837
14838 #. type: verbatim
14839 #: ../fish/guestfish-actions.pod:4047
14840 #, no-wrap
14841 msgid ""
14842 " read-lines path\n"
14843 "\n"
14844 msgstr ""
14845 " read-lines шлях\n"
14846 "\n"
14847
14848 #. type: textblock
14849 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6301
14850 msgid ""
14851 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14852 "C<CRLF> character sequences are I<not> returned."
14853 msgstr ""
14854
14855 #. type: textblock
14856 #: ../fish/guestfish-actions.pod:4054
14857 msgid ""
14858 "Note that this function cannot correctly handle binary files (specifically, "
14859 "files containing C<\\0> character which is treated as end of line).  For "
14860 "those you need to use the L</read-file> function which has a more complex "
14861 "interface."
14862 msgstr ""
14863
14864 #. type: =head2
14865 #: ../fish/guestfish-actions.pod:4059
14866 msgid "readdir"
14867 msgstr "readdir"
14868
14869 #. type: verbatim
14870 #: ../fish/guestfish-actions.pod:4061
14871 #, no-wrap
14872 msgid ""
14873 " readdir dir\n"
14874 "\n"
14875 msgstr ""
14876 " readdir каталог\n"
14877 "\n"
14878
14879 #. type: textblock
14880 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6321
14881 msgid "This returns the list of directory entries in directory C<dir>."
14882 msgstr ""
14883
14884 #. type: textblock
14885 #: ../fish/guestfish-actions.pod:4065 ../src/guestfs-actions.pod:6323
14886 msgid ""
14887 "All entries in the directory are returned, including C<.> and C<..>.  The "
14888 "entries are I<not> sorted, but returned in the same order as the underlying "
14889 "filesystem."
14890 msgstr ""
14891
14892 #. type: textblock
14893 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6327
14894 msgid ""
14895 "Also this call returns basic file type information about each file.  The "
14896 "C<ftyp> field will contain one of the following characters:"
14897 msgstr ""
14898
14899 #. type: =item
14900 #: ../fish/guestfish-actions.pod:4074 ../src/guestfs-actions.pod:6332
14901 msgid "'b'"
14902 msgstr "'b'"
14903
14904 #. type: textblock
14905 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6334
14906 msgid "Block special"
14907 msgstr "Блоковий особливий"
14908
14909 #. type: =item
14910 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6336
14911 msgid "'c'"
14912 msgstr "'c'"
14913
14914 #. type: textblock
14915 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6338
14916 msgid "Char special"
14917 msgstr "Символьний особливий"
14918
14919 #. type: =item
14920 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6340
14921 msgid "'d'"
14922 msgstr "'d'"
14923
14924 #. type: textblock
14925 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6342
14926 msgid "Directory"
14927 msgstr "Каталог"
14928
14929 #. type: =item
14930 #: ../fish/guestfish-actions.pod:4086 ../src/guestfs-actions.pod:6344
14931 msgid "'f'"
14932 msgstr "'f'"
14933
14934 #. type: textblock
14935 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6346
14936 msgid "FIFO (named pipe)"
14937 msgstr "FIFO (іменований канал)"
14938
14939 #. type: =item
14940 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6348
14941 msgid "'l'"
14942 msgstr "'l'"
14943
14944 #. type: textblock
14945 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6350
14946 msgid "Symbolic link"
14947 msgstr "Символічне посилання"
14948
14949 #. type: =item
14950 #: ../fish/guestfish-actions.pod:4094 ../src/guestfs-actions.pod:6352
14951 msgid "'r'"
14952 msgstr "'r'"
14953
14954 #. type: textblock
14955 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6354
14956 msgid "Regular file"
14957 msgstr "Звичайний файл"
14958
14959 #. type: =item
14960 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6356
14961 msgid "'s'"
14962 msgstr "'s'"
14963
14964 #. type: textblock
14965 #: ../fish/guestfish-actions.pod:4100 ../src/guestfs-actions.pod:6358
14966 msgid "Socket"
14967 msgstr "Сокет"
14968
14969 #. type: =item
14970 #: ../fish/guestfish-actions.pod:4102 ../src/guestfs-actions.pod:6360
14971 msgid "'u'"
14972 msgstr "'u'"
14973
14974 #. type: textblock
14975 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6362
14976 msgid "Unknown file type"
14977 msgstr "Невідомий тип файла"
14978
14979 #. type: =item
14980 #: ../fish/guestfish-actions.pod:4106 ../src/guestfs-actions.pod:6364
14981 msgid "'?'"
14982 msgstr ""
14983
14984 #. type: textblock
14985 #: ../fish/guestfish-actions.pod:4108 ../src/guestfs-actions.pod:6366
14986 msgid ""
14987 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14988 msgstr ""
14989
14990 #. type: textblock
14991 #: ../fish/guestfish-actions.pod:4113
14992 msgid ""
14993 "This function is primarily intended for use by programs.  To get a simple "
14994 "list of names, use L</ls>.  To get a printable directory for human "
14995 "consumption, use L</ll>."
14996 msgstr ""
14997
14998 #. type: =head2
14999 #: ../fish/guestfish-actions.pod:4117
15000 msgid "readlink"
15001 msgstr "readlink"
15002
15003 #. type: verbatim
15004 #: ../fish/guestfish-actions.pod:4119
15005 #, no-wrap
15006 msgid ""
15007 " readlink path\n"
15008 "\n"
15009 msgstr ""
15010 " readlink шлях\n"
15011 "\n"
15012
15013 #. type: textblock
15014 #: ../fish/guestfish-actions.pod:4121 ../src/guestfs-actions.pod:6387
15015 msgid "This command reads the target of a symbolic link."
15016 msgstr ""
15017
15018 #. type: =head2
15019 #: ../fish/guestfish-actions.pod:4123
15020 msgid "readlinklist"
15021 msgstr "readlinklist"
15022
15023 #. type: verbatim
15024 #: ../fish/guestfish-actions.pod:4125
15025 #, no-wrap
15026 msgid ""
15027 " readlinklist path 'names ...'\n"
15028 "\n"
15029 msgstr ""
15030
15031 #. type: textblock
15032 #: ../fish/guestfish-actions.pod:4127 ../src/guestfs-actions.pod:6401
15033 msgid ""
15034 "This call allows you to do a C<readlink> operation on multiple files, where "
15035 "all files are in the directory C<path>.  C<names> is the list of files from "
15036 "this directory."
15037 msgstr ""
15038
15039 #. type: textblock
15040 #: ../fish/guestfish-actions.pod:4131 ../src/guestfs-actions.pod:6405
15041 msgid ""
15042 "On return you get a list of strings, with a one-to-one correspondence to the "
15043 "C<names> list.  Each string is the value of the symbolic link."
15044 msgstr ""
15045
15046 #. type: textblock
15047 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6409
15048 msgid ""
15049 "If the C<readlink(2)> operation fails on any name, then the corresponding "
15050 "result string is the empty string C<\"\">.  However the whole operation is "
15051 "completed even if there were C<readlink(2)> errors, and so you can call this "
15052 "function with names where you don't know if they are symbolic links already "
15053 "(albeit slightly less efficient)."
15054 msgstr ""
15055
15056 #. type: textblock
15057 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6416
15058 msgid ""
15059 "This call is intended for programs that want to efficiently list a directory "
15060 "contents without making many round-trips.  Very long directory listings "
15061 "might cause the protocol message size to be exceeded, causing this call to "
15062 "fail.  The caller must split up such requests into smaller groups of names."
15063 msgstr ""
15064
15065 #. type: =head2
15066 #: ../fish/guestfish-actions.pod:4149
15067 msgid "realpath"
15068 msgstr "realpath"
15069
15070 #. type: verbatim
15071 #: ../fish/guestfish-actions.pod:4151
15072 #, no-wrap
15073 msgid ""
15074 " realpath path\n"
15075 "\n"
15076 msgstr ""
15077 " realpath шлях\n"
15078 "\n"
15079
15080 #. type: textblock
15081 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6435
15082 msgid ""
15083 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15084 "has no C<.>, C<..> or symbolic link path elements."
15085 msgstr ""
15086
15087 #. type: =head2
15088 #: ../fish/guestfish-actions.pod:4156
15089 msgid "removexattr"
15090 msgstr "removexattr"
15091
15092 #. type: verbatim
15093 #: ../fish/guestfish-actions.pod:4158
15094 #, no-wrap
15095 msgid ""
15096 " removexattr xattr path\n"
15097 "\n"
15098 msgstr ""
15099
15100 #. type: textblock
15101 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6450
15102 msgid ""
15103 "This call removes the extended attribute named C<xattr> of the file C<path>."
15104 msgstr ""
15105
15106 #. type: textblock
15107 #: ../fish/guestfish-actions.pod:4163
15108 msgid "See also: L</lremovexattr>, L<attr(5)>."
15109 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
15110
15111 #. type: =head2
15112 #: ../fish/guestfish-actions.pod:4165
15113 msgid "resize2fs"
15114 msgstr "resize2fs"
15115
15116 #. type: verbatim
15117 #: ../fish/guestfish-actions.pod:4167
15118 #, no-wrap
15119 msgid ""
15120 " resize2fs device\n"
15121 "\n"
15122 msgstr ""
15123 " resize2fs пристрій\n"
15124 "\n"
15125
15126 #. type: textblock
15127 #: ../fish/guestfish-actions.pod:4169 ../src/guestfs-actions.pod:6465
15128 msgid ""
15129 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15130 "underlying device."
15131 msgstr ""
15132
15133 #. type: textblock
15134 #: ../fish/guestfish-actions.pod:4172
15135 msgid ""
15136 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15137 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15138 "gives an error about this and sometimes not.  In any case, it is always safe "
15139 "to call L</e2fsck-f> before calling this function."
15140 msgstr ""
15141
15142 #. type: =head2
15143 #: ../fish/guestfish-actions.pod:4178
15144 msgid "resize2fs-M"
15145 msgstr "resize2fs-M"
15146
15147 #. type: verbatim
15148 #: ../fish/guestfish-actions.pod:4180
15149 #, no-wrap
15150 msgid ""
15151 " resize2fs-M device\n"
15152 "\n"
15153 msgstr ""
15154 " resize2fs-M пристрій\n"
15155 "\n"
15156
15157 #. type: textblock
15158 #: ../fish/guestfish-actions.pod:4182
15159 msgid ""
15160 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15161 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
15162 "command."
15163 msgstr ""
15164
15165 #. type: textblock
15166 #: ../fish/guestfish-actions.pod:4186
15167 msgid ""
15168 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15169 "and read the C<Block size> and C<Block count> values.  These two numbers, "
15170 "multiplied together, give the resulting size of the minimal filesystem in "
15171 "bytes."
15172 msgstr ""
15173
15174 #. type: =head2
15175 #: ../fish/guestfish-actions.pod:4191
15176 msgid "resize2fs-size"
15177 msgstr "resize2fs-size"
15178
15179 #. type: verbatim
15180 #: ../fish/guestfish-actions.pod:4193
15181 #, no-wrap
15182 msgid ""
15183 " resize2fs-size device size\n"
15184 "\n"
15185 msgstr ""
15186
15187 #. type: textblock
15188 #: ../fish/guestfish-actions.pod:4195
15189 msgid ""
15190 "This command is the same as L</resize2fs> except that it allows you to "
15191 "specify the new size (in bytes) explicitly."
15192 msgstr ""
15193
15194 #. type: =head2
15195 #: ../fish/guestfish-actions.pod:4198
15196 msgid "rm"
15197 msgstr "rm"
15198
15199 #. type: verbatim
15200 #: ../fish/guestfish-actions.pod:4200
15201 #, no-wrap
15202 msgid ""
15203 " rm path\n"
15204 "\n"
15205 msgstr ""
15206 " rm шлях\n"
15207 "\n"
15208
15209 #. type: textblock
15210 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6517
15211 msgid "Remove the single file C<path>."
15212 msgstr ""
15213
15214 #. type: =head2
15215 #: ../fish/guestfish-actions.pod:4204
15216 msgid "rm-rf"
15217 msgstr "rm-rf"
15218
15219 #. type: verbatim
15220 #: ../fish/guestfish-actions.pod:4206
15221 #, no-wrap
15222 msgid ""
15223 " rm-rf path\n"
15224 "\n"
15225 msgstr ""
15226 " rm-rf шлях\n"
15227 "\n"
15228
15229 #. type: textblock
15230 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6529
15231 msgid ""
15232 "Remove the file or directory C<path>, recursively removing the contents if "
15233 "its a directory.  This is like the C<rm -rf> shell command."
15234 msgstr ""
15235
15236 #. type: =head2
15237 #: ../fish/guestfish-actions.pod:4212
15238 msgid "rmdir"
15239 msgstr "rmdir"
15240
15241 #. type: verbatim
15242 #: ../fish/guestfish-actions.pod:4214
15243 #, no-wrap
15244 msgid ""
15245 " rmdir path\n"
15246 "\n"
15247 msgstr ""
15248 " rmdir шлях\n"
15249 "\n"
15250
15251 #. type: textblock
15252 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6543
15253 msgid "Remove the single directory C<path>."
15254 msgstr ""
15255
15256 #. type: =head2
15257 #: ../fish/guestfish-actions.pod:4218
15258 msgid "rmmountpoint"
15259 msgstr "rmmountpoint"
15260
15261 #. type: verbatim
15262 #: ../fish/guestfish-actions.pod:4220
15263 #, no-wrap
15264 msgid ""
15265 " rmmountpoint exemptpath\n"
15266 "\n"
15267 msgstr ""
15268
15269 #. type: textblock
15270 #: ../fish/guestfish-actions.pod:4222
15271 msgid ""
15272 "This calls removes a mountpoint that was previously created with L</"
15273 "mkmountpoint>.  See L</mkmountpoint> for full details."
15274 msgstr ""
15275
15276 #. type: =head2
15277 #: ../fish/guestfish-actions.pod:4226
15278 msgid "scrub-device"
15279 msgstr "scrub-device"
15280
15281 #. type: verbatim
15282 #: ../fish/guestfish-actions.pod:4228
15283 #, no-wrap
15284 msgid ""
15285 " scrub-device device\n"
15286 "\n"
15287 msgstr ""
15288 " scrub-device пристрій\n"
15289 "\n"
15290
15291 #. type: textblock
15292 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6569
15293 msgid ""
15294 "This command writes patterns over C<device> to make data retrieval more "
15295 "difficult."
15296 msgstr ""
15297
15298 #. type: textblock
15299 #: ../fish/guestfish-actions.pod:4233 ../fish/guestfish-actions.pod:4248
15300 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6572
15301 #: ../src/guestfs-actions.pod:6593 ../src/guestfs-actions.pod:6612
15302 msgid ""
15303 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15304 "more details."
15305 msgstr ""
15306
15307 #. type: =head2
15308 #: ../fish/guestfish-actions.pod:4239
15309 msgid "scrub-file"
15310 msgstr "scrub-file"
15311
15312 #. type: verbatim
15313 #: ../fish/guestfish-actions.pod:4241
15314 #, no-wrap
15315 msgid ""
15316 " scrub-file file\n"
15317 "\n"
15318 msgstr ""
15319 " scrub-file файл\n"
15320 "\n"
15321
15322 #. type: textblock
15323 #: ../fish/guestfish-actions.pod:4243 ../src/guestfs-actions.pod:6588
15324 msgid ""
15325 "This command writes patterns over a file to make data retrieval more "
15326 "difficult."
15327 msgstr ""
15328
15329 #. type: textblock
15330 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6591
15331 msgid "The file is I<removed> after scrubbing."
15332 msgstr ""
15333
15334 #. type: =head2
15335 #: ../fish/guestfish-actions.pod:4251
15336 msgid "scrub-freespace"
15337 msgstr "scrub-freespace"
15338
15339 #. type: verbatim
15340 #: ../fish/guestfish-actions.pod:4253
15341 #, no-wrap
15342 msgid ""
15343 " scrub-freespace dir\n"
15344 "\n"
15345 msgstr ""
15346 " scrub-freespace каталог\n"
15347 "\n"
15348
15349 #. type: textblock
15350 #: ../fish/guestfish-actions.pod:4255
15351 msgid ""
15352 "This command creates the directory C<dir> and then fills it with files until "
15353 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15354 "deletes them.  The intention is to scrub any free space on the partition "
15355 "containing C<dir>."
15356 msgstr ""
15357
15358 #. type: =head2
15359 #: ../fish/guestfish-actions.pod:4264
15360 msgid "set-append"
15361 msgstr "set-append"
15362
15363 #. type: =head2
15364 #: ../fish/guestfish-actions.pod:4266
15365 msgid "append"
15366 msgstr ""
15367
15368 #. type: verbatim
15369 #: ../fish/guestfish-actions.pod:4268
15370 #, no-wrap
15371 msgid ""
15372 " set-append append\n"
15373 "\n"
15374 msgstr ""
15375
15376 #. type: textblock
15377 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6625
15378 msgid ""
15379 "This function is used to add additional options to the guest kernel command "
15380 "line."
15381 msgstr ""
15382
15383 #. type: textblock
15384 #: ../fish/guestfish-actions.pod:4273 ../src/guestfs-actions.pod:6628
15385 msgid ""
15386 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15387 "environment variable."
15388 msgstr ""
15389
15390 #. type: textblock
15391 #: ../fish/guestfish-actions.pod:4276 ../src/guestfs-actions.pod:6631
15392 msgid ""
15393 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15394 "(libguestfs always adds a few of its own)."
15395 msgstr ""
15396
15397 #. type: =head2
15398 #: ../fish/guestfish-actions.pod:4279
15399 msgid "set-attach-method"
15400 msgstr "set-attach-method"
15401
15402 #. type: =head2
15403 #: ../fish/guestfish-actions.pod:4281
15404 msgid "attach-method"
15405 msgstr ""
15406
15407 #. type: verbatim
15408 #: ../fish/guestfish-actions.pod:4283
15409 #, no-wrap
15410 msgid ""
15411 " set-attach-method attachmethod\n"
15412 "\n"
15413 msgstr ""
15414
15415 #. type: textblock
15416 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6644
15417 msgid ""
15418 "Set the method that libguestfs uses to connect to the back end guestfsd "
15419 "daemon.  Possible methods are:"
15420 msgstr ""
15421
15422 #. type: =item
15423 #: ../fish/guestfish-actions.pod:4290 ../src/guestfs-actions.pod:6649
15424 #: ../src/guestfs.pod:2916
15425 msgid "C<appliance>"
15426 msgstr "C<appliance>"
15427
15428 #. type: textblock
15429 #: ../fish/guestfish-actions.pod:4292 ../src/guestfs-actions.pod:6651
15430 msgid ""
15431 "Launch an appliance and connect to it.  This is the ordinary method and the "
15432 "default."
15433 msgstr ""
15434
15435 #. type: =item
15436 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6654
15437 msgid "C<unix:I<path>>"
15438 msgstr "C<unix:I<шлях>>"
15439
15440 #. type: textblock
15441 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6656
15442 msgid "Connect to the Unix domain socket I<path>."
15443 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15444
15445 #. type: textblock
15446 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6658
15447 msgid ""
15448 "This method lets you connect to an existing daemon or (using virtio-serial) "
15449 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15450 "RUNNING DAEMONS>."
15451 msgstr ""
15452
15453 #. type: =head2
15454 #: ../fish/guestfish-actions.pod:4305
15455 msgid "set-autosync"
15456 msgstr "set-autosync"
15457
15458 #. type: =head2
15459 #: ../fish/guestfish-actions.pod:4307
15460 msgid "autosync"
15461 msgstr "autosync"
15462
15463 #. type: verbatim
15464 #: ../fish/guestfish-actions.pod:4309
15465 #, no-wrap
15466 msgid ""
15467 " set-autosync true|false\n"
15468 "\n"
15469 msgstr ""
15470 " set-autosync true|false\n"
15471 "\n"
15472
15473 #. type: textblock
15474 #: ../fish/guestfish-actions.pod:4311 ../src/guestfs-actions.pod:6674
15475 msgid ""
15476 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15477 "effort attempt to make filesystems consistent and synchronized when the "
15478 "handle is closed (also if the program exits without closing handles)."
15479 msgstr ""
15480
15481 #. type: textblock
15482 #: ../fish/guestfish-actions.pod:4316 ../src/guestfs-actions.pod:6679
15483 msgid ""
15484 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15485 "disabled by default)."
15486 msgstr ""
15487
15488 #. type: =head2
15489 #: ../fish/guestfish-actions.pod:4319
15490 msgid "set-direct"
15491 msgstr "set-direct"
15492
15493 #. type: =head2
15494 #: ../fish/guestfish-actions.pod:4321
15495 msgid "direct"
15496 msgstr "direct"
15497
15498 #. type: verbatim
15499 #: ../fish/guestfish-actions.pod:4323
15500 #, no-wrap
15501 msgid ""
15502 " set-direct true|false\n"
15503 "\n"
15504 msgstr ""
15505 " set-direct true|false\n"
15506 "\n"
15507
15508 #. type: textblock
15509 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6692
15510 msgid ""
15511 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15512 "passed directly through to the appliance once it is launched."
15513 msgstr ""
15514
15515 #. type: textblock
15516 #: ../fish/guestfish-actions.pod:4329
15517 msgid ""
15518 "One consequence of this is that log messages aren't caught by the library "
15519 "and handled by L</set-log-message-callback>, but go straight to stdout."
15520 msgstr ""
15521
15522 #. type: textblock
15523 #: ../fish/guestfish-actions.pod:4333 ../src/guestfs-actions.pod:6700
15524 msgid "You probably don't want to use this unless you know what you are doing."
15525 msgstr ""
15526
15527 #. type: textblock
15528 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6703
15529 msgid "The default is disabled."
15530 msgstr ""
15531
15532 #. type: =head2
15533 #: ../fish/guestfish-actions.pod:4338
15534 msgid "set-e2label"
15535 msgstr "set-e2label"
15536
15537 #. type: verbatim
15538 #: ../fish/guestfish-actions.pod:4340
15539 #, no-wrap
15540 msgid ""
15541 " set-e2label device label\n"
15542 "\n"
15543 msgstr ""
15544
15545 #. type: textblock
15546 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6716
15547 msgid ""
15548 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15549 "C<label>.  Filesystem labels are limited to 16 characters."
15550 msgstr ""
15551
15552 #. type: textblock
15553 #: ../fish/guestfish-actions.pod:4346
15554 msgid ""
15555 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15556 "label on a filesystem."
15557 msgstr ""
15558
15559 #. type: =head2
15560 #: ../fish/guestfish-actions.pod:4349
15561 msgid "set-e2uuid"
15562 msgstr "set-e2uuid"
15563
15564 #. type: verbatim
15565 #: ../fish/guestfish-actions.pod:4351
15566 #, no-wrap
15567 msgid ""
15568 " set-e2uuid device uuid\n"
15569 "\n"
15570 msgstr ""
15571
15572 #. type: textblock
15573 #: ../fish/guestfish-actions.pod:4353 ../src/guestfs-actions.pod:6734
15574 msgid ""
15575 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15576 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15577 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15578 msgstr ""
15579
15580 #. type: textblock
15581 #: ../fish/guestfish-actions.pod:4358
15582 msgid ""
15583 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15584 "UUID of a filesystem."
15585 msgstr ""
15586
15587 #. type: =head2
15588 #: ../fish/guestfish-actions.pod:4361
15589 msgid "set-memsize"
15590 msgstr "set-memsize"
15591
15592 #. type: =head2
15593 #: ../fish/guestfish-actions.pod:4363
15594 msgid "memsize"
15595 msgstr ""
15596
15597 #. type: verbatim
15598 #: ../fish/guestfish-actions.pod:4365
15599 #, no-wrap
15600 msgid ""
15601 " set-memsize memsize\n"
15602 "\n"
15603 msgstr ""
15604
15605 #. type: textblock
15606 #: ../fish/guestfish-actions.pod:4367
15607 msgid ""
15608 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15609 "This only has any effect if called before L</launch>."
15610 msgstr ""
15611
15612 #. type: textblock
15613 #: ../fish/guestfish-actions.pod:4371 ../src/guestfs-actions.pod:6756
15614 msgid ""
15615 "You can also change this by setting the environment variable "
15616 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15617 msgstr ""
15618
15619 #. type: =head2
15620 #: ../fish/guestfish-actions.pod:4378
15621 msgid "set-network"
15622 msgstr "set-network"
15623
15624 #. type: =head2
15625 #: ../fish/guestfish-actions.pod:4380
15626 msgid "network"
15627 msgstr "network"
15628
15629 #. type: verbatim
15630 #: ../fish/guestfish-actions.pod:4382
15631 #, no-wrap
15632 msgid ""
15633 " set-network true|false\n"
15634 "\n"
15635 msgstr ""
15636 " set-network true|false\n"
15637 "\n"
15638
15639 #. type: textblock
15640 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6773
15641 msgid ""
15642 "If C<network> is true, then the network is enabled in the libguestfs "
15643 "appliance.  The default is false."
15644 msgstr ""
15645
15646 #. type: textblock
15647 #: ../fish/guestfish-actions.pod:4387 ../src/guestfs-actions.pod:6776
15648 msgid ""
15649 "This affects whether commands are able to access the network (see L<guestfs"
15650 "(3)/RUNNING COMMANDS>)."
15651 msgstr ""
15652
15653 #. type: textblock
15654 #: ../fish/guestfish-actions.pod:4390
15655 msgid ""
15656 "You must call this before calling L</launch>, otherwise it has no effect."
15657 msgstr ""
15658
15659 #. type: =head2
15660 #: ../fish/guestfish-actions.pod:4393
15661 msgid "set-path"
15662 msgstr "set-path"
15663
15664 #. type: verbatim
15665 #: ../fish/guestfish-actions.pod:4397
15666 #, no-wrap
15667 msgid ""
15668 " set-path searchpath\n"
15669 "\n"
15670 msgstr ""
15671
15672 #. type: textblock
15673 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6792
15674 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15675 msgstr ""
15676
15677 #. type: textblock
15678 #: ../fish/guestfish-actions.pod:4401 ../src/guestfs-actions.pod:6794
15679 msgid ""
15680 "The default is C<$libdir/guestfs> unless overridden by setting "
15681 "C<LIBGUESTFS_PATH> environment variable."
15682 msgstr ""
15683
15684 #. type: textblock
15685 #: ../fish/guestfish-actions.pod:4404 ../src/guestfs-actions.pod:6797
15686 msgid "Setting C<path> to C<NULL> restores the default path."
15687 msgstr ""
15688
15689 #. type: =head2
15690 #: ../fish/guestfish-actions.pod:4406
15691 msgid "set-pgroup"
15692 msgstr ""
15693
15694 #. type: =head2
15695 #: ../fish/guestfish-actions.pod:4408
15696 msgid "pgroup"
15697 msgstr ""
15698
15699 #. type: verbatim
15700 #: ../fish/guestfish-actions.pod:4410
15701 #, no-wrap
15702 msgid ""
15703 " set-pgroup true|false\n"
15704 "\n"
15705 msgstr ""
15706
15707 #. type: textblock
15708 #: ../fish/guestfish-actions.pod:4412 ../src/guestfs-actions.pod:6809
15709 msgid ""
15710 "If C<pgroup> is true, child processes are placed into their own process "
15711 "group."
15712 msgstr ""
15713
15714 #. type: textblock
15715 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6812
15716 msgid ""
15717 "The practical upshot of this is that signals like C<SIGINT> (from users "
15718 "pressing C<^C>) won't be received by the child process."
15719 msgstr ""
15720
15721 #. type: textblock
15722 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6815
15723 msgid ""
15724 "The default for this flag is false, because usually you want C<^C> to kill "
15725 "the subprocess."
15726 msgstr ""
15727
15728 #. type: =head2
15729 #: ../fish/guestfish-actions.pod:4421
15730 msgid "set-qemu"
15731 msgstr "set-qemu"
15732
15733 #. type: =head2
15734 #: ../fish/guestfish-actions.pod:4423
15735 msgid "qemu"
15736 msgstr "qemu"
15737
15738 #. type: verbatim
15739 #: ../fish/guestfish-actions.pod:4425
15740 #, no-wrap
15741 msgid ""
15742 " set-qemu qemu\n"
15743 "\n"
15744 msgstr ""
15745 " set-qemu qemu\n"
15746 "\n"
15747
15748 #. type: textblock
15749 #: ../fish/guestfish-actions.pod:4427 ../src/guestfs-actions.pod:6828
15750 msgid "Set the qemu binary that we will use."
15751 msgstr ""
15752
15753 #. type: textblock
15754 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6830
15755 msgid ""
15756 "The default is chosen when the library was compiled by the configure script."
15757 msgstr ""
15758
15759 #. type: textblock
15760 #: ../fish/guestfish-actions.pod:4432 ../src/guestfs-actions.pod:6833
15761 msgid ""
15762 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15763 "variable."
15764 msgstr ""
15765
15766 #. type: textblock
15767 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6836
15768 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15769 msgstr ""
15770
15771 #. type: textblock
15772 #: ../fish/guestfish-actions.pod:4437 ../src/guestfs-actions.pod:6838
15773 msgid ""
15774 "Note that you should call this function as early as possible after creating "
15775 "the handle.  This is because some pre-launch operations depend on testing "
15776 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15777 "don't retest features, and so you might see inconsistent results.  Using the "
15778 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15779 "the qemu binary at the same time as the handle is created."
15780 msgstr ""
15781
15782 #. type: =head2
15783 #: ../fish/guestfish-actions.pod:4445
15784 msgid "set-recovery-proc"
15785 msgstr "set-recovery-proc"
15786
15787 #. type: =head2
15788 #: ../fish/guestfish-actions.pod:4447
15789 msgid "recovery-proc"
15790 msgstr "recovery-proc"
15791
15792 #. type: verbatim
15793 #: ../fish/guestfish-actions.pod:4449
15794 #, no-wrap
15795 msgid ""
15796 " set-recovery-proc true|false\n"
15797 "\n"
15798 msgstr ""
15799 " set-recovery-proc true|false\n"
15800 "\n"
15801
15802 #. type: textblock
15803 #: ../fish/guestfish-actions.pod:4451
15804 msgid ""
15805 "If this is called with the parameter C<false> then L</launch> does not "
15806 "create a recovery process.  The purpose of the recovery process is to stop "
15807 "runaway qemu processes in the case where the main program aborts abruptly."
15808 msgstr ""
15809
15810 #. type: textblock
15811 #: ../fish/guestfish-actions.pod:4456
15812 msgid ""
15813 "This only has any effect if called before L</launch>, and the default is "
15814 "true."
15815 msgstr ""
15816
15817 #. type: textblock
15818 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6864
15819 msgid ""
15820 "About the only time when you would want to disable this is if the main "
15821 "process will fork itself into the background (\"daemonize\" itself).  In "
15822 "this case the recovery process thinks that the main program has disappeared "
15823 "and so kills qemu, which is not very helpful."
15824 msgstr ""
15825
15826 #. type: =head2
15827 #: ../fish/guestfish-actions.pod:4465
15828 msgid "set-selinux"
15829 msgstr "set-selinux"
15830
15831 #. type: =head2
15832 #: ../fish/guestfish-actions.pod:4467
15833 msgid "selinux"
15834 msgstr "selinux"
15835
15836 #. type: verbatim
15837 #: ../fish/guestfish-actions.pod:4469
15838 #, no-wrap
15839 msgid ""
15840 " set-selinux true|false\n"
15841 "\n"
15842 msgstr ""
15843 " set-selinux true|false\n"
15844 "\n"
15845
15846 #. type: textblock
15847 #: ../fish/guestfish-actions.pod:4471 ../src/guestfs-actions.pod:6880
15848 msgid ""
15849 "This sets the selinux flag that is passed to the appliance at boot time.  "
15850 "The default is C<selinux=0> (disabled)."
15851 msgstr ""
15852
15853 #. type: textblock
15854 #: ../fish/guestfish-actions.pod:4474 ../src/guestfs-actions.pod:6883
15855 msgid ""
15856 "Note that if SELinux is enabled, it is always in Permissive mode "
15857 "(C<enforcing=0>)."
15858 msgstr ""
15859
15860 #. type: =head2
15861 #: ../fish/guestfish-actions.pod:4480
15862 msgid "set-smp"
15863 msgstr ""
15864
15865 #. type: =head2
15866 #: ../fish/guestfish-actions.pod:4482
15867 msgid "smp"
15868 msgstr ""
15869
15870 #. type: verbatim
15871 #: ../fish/guestfish-actions.pod:4484
15872 #, no-wrap
15873 msgid ""
15874 " set-smp smp\n"
15875 "\n"
15876 msgstr ""
15877
15878 #. type: textblock
15879 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6899
15880 msgid ""
15881 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15882 "C<1>.  Increasing this may improve performance, though often it has no "
15883 "effect."
15884 msgstr ""
15885
15886 #. type: textblock
15887 #: ../fish/guestfish-actions.pod:4490
15888 msgid "This function must be called before L</launch>."
15889 msgstr ""
15890
15891 #. type: =head2
15892 #: ../fish/guestfish-actions.pod:4492
15893 msgid "set-trace"
15894 msgstr "set-trace"
15895
15896 #. type: =head2
15897 #: ../fish/guestfish-actions.pod:4494
15898 msgid "trace"
15899 msgstr "trace"
15900
15901 #. type: verbatim
15902 #: ../fish/guestfish-actions.pod:4496
15903 #, no-wrap
15904 msgid ""
15905 " set-trace true|false\n"
15906 "\n"
15907 msgstr ""
15908 " set-trace true|false\n"
15909 "\n"
15910
15911 #. type: textblock
15912 #: ../fish/guestfish-actions.pod:4498 ../src/guestfs-actions.pod:6915
15913 msgid ""
15914 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15915 "return values are traced."
15916 msgstr ""
15917
15918 #. type: textblock
15919 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6918
15920 msgid ""
15921 "If you want to trace C API calls into libguestfs (and other libraries) then "
15922 "possibly a better way is to use the external ltrace(1) command."
15923 msgstr ""
15924
15925 #. type: textblock
15926 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6922
15927 msgid ""
15928 "Command traces are disabled unless the environment variable "
15929 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15930 msgstr ""
15931
15932 #. type: textblock
15933 #: ../fish/guestfish-actions.pod:4508
15934 msgid ""
15935 "Trace messages are normally sent to C<stderr>, unless you register a "
15936 "callback to send them somewhere else (see L</set-event-callback>)."
15937 msgstr ""
15938
15939 #. type: =head2
15940 #: ../fish/guestfish-actions.pod:4512
15941 msgid "set-verbose"
15942 msgstr "set-verbose"
15943
15944 #. type: =head2
15945 #: ../fish/guestfish-actions.pod:4514
15946 msgid "verbose"
15947 msgstr "verbose"
15948
15949 #. type: verbatim
15950 #: ../fish/guestfish-actions.pod:4516
15951 #, no-wrap
15952 msgid ""
15953 " set-verbose true|false\n"
15954 "\n"
15955 msgstr ""
15956 " set-verbose true|false\n"
15957 "\n"
15958
15959 #. type: textblock
15960 #: ../fish/guestfish-actions.pod:4518 ../src/guestfs-actions.pod:6939
15961 msgid "If C<verbose> is true, this turns on verbose messages."
15962 msgstr ""
15963
15964 #. type: textblock
15965 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6941
15966 msgid ""
15967 "Verbose messages are disabled unless the environment variable "
15968 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15969 msgstr ""
15970
15971 #. type: textblock
15972 #: ../fish/guestfish-actions.pod:4523
15973 msgid ""
15974 "Verbose messages are normally sent to C<stderr>, unless you register a "
15975 "callback to send them somewhere else (see L</set-event-callback>)."
15976 msgstr ""
15977
15978 #. type: =head2
15979 #: ../fish/guestfish-actions.pod:4527
15980 msgid "setcon"
15981 msgstr "setcon"
15982
15983 #. type: verbatim
15984 #: ../fish/guestfish-actions.pod:4529
15985 #, no-wrap
15986 msgid ""
15987 " setcon context\n"
15988 "\n"
15989 msgstr ""
15990 " setcon контекст\n"
15991 "\n"
15992
15993 #. type: textblock
15994 #: ../fish/guestfish-actions.pod:4531 ../src/guestfs-actions.pod:6958
15995 msgid ""
15996 "This sets the SELinux security context of the daemon to the string "
15997 "C<context>."
15998 msgstr ""
15999
16000 #. type: textblock
16001 #: ../fish/guestfish-actions.pod:4534 ../src/guestfs-actions.pod:6961
16002 msgid "See the documentation about SELINUX in L<guestfs(3)>."
16003 msgstr ""
16004
16005 #. type: =head2
16006 #: ../fish/guestfish-actions.pod:4536
16007 msgid "setxattr"
16008 msgstr "setxattr"
16009
16010 #. type: verbatim
16011 #: ../fish/guestfish-actions.pod:4538
16012 #, no-wrap
16013 msgid ""
16014 " setxattr xattr val vallen path\n"
16015 "\n"
16016 msgstr ""
16017
16018 #. type: textblock
16019 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6976
16020 msgid ""
16021 "This call sets the extended attribute named C<xattr> of the file C<path> to "
16022 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
16023 msgstr ""
16024
16025 #. type: textblock
16026 #: ../fish/guestfish-actions.pod:4544
16027 msgid "See also: L</lsetxattr>, L<attr(5)>."
16028 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
16029
16030 #. type: =head2
16031 #: ../fish/guestfish-actions.pod:4546
16032 msgid "sfdisk"
16033 msgstr "sfdisk"
16034
16035 #. type: verbatim
16036 #: ../fish/guestfish-actions.pod:4548
16037 #, no-wrap
16038 msgid ""
16039 " sfdisk device cyls heads sectors 'lines ...'\n"
16040 "\n"
16041 msgstr ""
16042
16043 #. type: textblock
16044 #: ../fish/guestfish-actions.pod:4550 ../src/guestfs-actions.pod:7003
16045 msgid ""
16046 "This is a direct interface to the L<sfdisk(8)> program for creating "
16047 "partitions on block devices."
16048 msgstr ""
16049
16050 #. type: textblock
16051 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7006
16052 msgid "C<device> should be a block device, for example C</dev/sda>."
16053 msgstr ""
16054
16055 #. type: textblock
16056 #: ../fish/guestfish-actions.pod:4555 ../src/guestfs-actions.pod:7008
16057 msgid ""
16058 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
16059 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
16060 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
16061 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
16062 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
16063 "the kernel) cannot work out the right geometry and you will need to tell it."
16064 msgstr ""
16065
16066 #. type: textblock
16067 #: ../fish/guestfish-actions.pod:4563 ../src/guestfs-actions.pod:7016
16068 msgid ""
16069 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
16070 "refer to the L<sfdisk(8)> manpage."
16071 msgstr ""
16072
16073 #. type: textblock
16074 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:7019
16075 msgid ""
16076 "To create a single partition occupying the whole disk, you would pass "
16077 "C<lines> as a single element list, when the single element being the string "
16078 "C<,> (comma)."
16079 msgstr ""
16080
16081 #. type: textblock
16082 #: ../fish/guestfish-actions.pod:4570
16083 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16084 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16085
16086 #. type: textblock
16087 #: ../fish/guestfish-actions.pod:4576 ../fish/guestfish-actions.pod:4599
16088 #: ../fish/guestfish-actions.pod:4621
16089 msgid ""
16090 "I<This function is deprecated.> In new code, use the L</part_add> call "
16091 "instead."
16092 msgstr ""
16093
16094 #. type: =head2
16095 #: ../fish/guestfish-actions.pod:4583
16096 msgid "sfdiskM"
16097 msgstr "sfdiskM"
16098
16099 #. type: verbatim
16100 #: ../fish/guestfish-actions.pod:4585
16101 #, no-wrap
16102 msgid ""
16103 " sfdiskM device 'lines ...'\n"
16104 "\n"
16105 msgstr ""
16106
16107 #. type: textblock
16108 #: ../fish/guestfish-actions.pod:4587
16109 msgid ""
16110 "This is a simplified interface to the L</sfdisk> command, where partition "
16111 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16112 "you don't need to specify the cyls, heads and sectors parameters which were "
16113 "rarely if ever used anyway."
16114 msgstr ""
16115
16116 #. type: textblock
16117 #: ../fish/guestfish-actions.pod:4593
16118 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16119 msgstr ""
16120 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
16121
16122 #. type: =head2
16123 #: ../fish/guestfish-actions.pod:4606
16124 msgid "sfdisk-N"
16125 msgstr "sfdisk-N"
16126
16127 #. type: verbatim
16128 #: ../fish/guestfish-actions.pod:4608
16129 #, no-wrap
16130 msgid ""
16131 " sfdisk-N device partnum cyls heads sectors line\n"
16132 "\n"
16133 msgstr ""
16134
16135 #. type: textblock
16136 #: ../fish/guestfish-actions.pod:4610 ../src/guestfs-actions.pod:7081
16137 msgid ""
16138 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16139 "(note: C<n> counts from 1)."
16140 msgstr ""
16141
16142 #. type: textblock
16143 #: ../fish/guestfish-actions.pod:4613
16144 msgid ""
16145 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16146 "cyls/heads/sectors parameters."
16147 msgstr ""
16148
16149 #. type: textblock
16150 #: ../fish/guestfish-actions.pod:4616
16151 msgid "See also: L</part-add>"
16152 msgstr "Див. також L</part-add>"
16153
16154 #. type: =head2
16155 #: ../fish/guestfish-actions.pod:4628
16156 msgid "sfdisk-disk-geometry"
16157 msgstr "sfdisk-disk-geometry"
16158
16159 #. type: verbatim
16160 #: ../fish/guestfish-actions.pod:4630
16161 #, no-wrap
16162 msgid ""
16163 " sfdisk-disk-geometry device\n"
16164 "\n"
16165 msgstr ""
16166 " sfdisk-disk-geometry пристрій\n"
16167 "\n"
16168
16169 #. type: textblock
16170 #: ../fish/guestfish-actions.pod:4632
16171 msgid ""
16172 "This displays the disk geometry of C<device> read from the partition table.  "
16173 "Especially in the case where the underlying block device has been resized, "
16174 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16175 "kernel-geometry>)."
16176 msgstr ""
16177
16178 #. type: textblock
16179 #: ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4646
16180 #: ../src/guestfs-actions.pod:7107 ../src/guestfs-actions.pod:7123
16181 msgid "The result is in human-readable format, and not designed to be parsed."
16182 msgstr ""
16183
16184 #. type: =head2
16185 #: ../fish/guestfish-actions.pod:4640
16186 msgid "sfdisk-kernel-geometry"
16187 msgstr "sfdisk-kernel-geometry"
16188
16189 #. type: verbatim
16190 #: ../fish/guestfish-actions.pod:4642
16191 #, no-wrap
16192 msgid ""
16193 " sfdisk-kernel-geometry device\n"
16194 "\n"
16195 msgstr ""
16196 " sfdisk-kernel-geometry пристрій\n"
16197 "\n"
16198
16199 #. type: textblock
16200 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:7121
16201 msgid "This displays the kernel's idea of the geometry of C<device>."
16202 msgstr ""
16203
16204 #. type: =head2
16205 #: ../fish/guestfish-actions.pod:4649
16206 msgid "sfdisk-l"
16207 msgstr "sfdisk-l"
16208
16209 #. type: verbatim
16210 #: ../fish/guestfish-actions.pod:4651
16211 #, no-wrap
16212 msgid ""
16213 " sfdisk-l device\n"
16214 "\n"
16215 msgstr ""
16216 " sfdisk-l пристрій\n"
16217 "\n"
16218
16219 #. type: textblock
16220 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7144
16221 msgid ""
16222 "This displays the partition table on C<device>, in the human-readable output "
16223 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16224 msgstr ""
16225
16226 #. type: textblock
16227 #: ../fish/guestfish-actions.pod:4657
16228 msgid "See also: L</part-list>"
16229 msgstr "Див. також L</part-list>"
16230
16231 #. type: textblock
16232 #: ../fish/guestfish-actions.pod:4659
16233 msgid ""
16234 "I<This function is deprecated.> In new code, use the L</part_list> call "
16235 "instead."
16236 msgstr ""
16237
16238 #. type: =head2
16239 #: ../fish/guestfish-actions.pod:4666
16240 msgid "sh"
16241 msgstr "sh"
16242
16243 #. type: verbatim
16244 #: ../fish/guestfish-actions.pod:4668
16245 #, no-wrap
16246 msgid ""
16247 " sh command\n"
16248 "\n"
16249 msgstr ""
16250 " sh команда\n"
16251 "\n"
16252
16253 #. type: textblock
16254 #: ../fish/guestfish-actions.pod:4670 ../src/guestfs-actions.pod:7161
16255 msgid ""
16256 "This call runs a command from the guest filesystem via the guest's C</bin/"
16257 "sh>."
16258 msgstr ""
16259
16260 #. type: textblock
16261 #: ../fish/guestfish-actions.pod:4673
16262 msgid "This is like L</command>, but passes the command to:"
16263 msgstr ""
16264
16265 #. type: verbatim
16266 #: ../fish/guestfish-actions.pod:4675 ../src/guestfs-actions.pod:7166
16267 #, no-wrap
16268 msgid ""
16269 " /bin/sh -c \"command\"\n"
16270 "\n"
16271 msgstr ""
16272
16273 #. type: textblock
16274 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7168
16275 msgid ""
16276 "Depending on the guest's shell, this usually results in wildcards being "
16277 "expanded, shell expressions being interpolated and so on."
16278 msgstr ""
16279
16280 #. type: textblock
16281 #: ../fish/guestfish-actions.pod:4681
16282 msgid "All the provisos about L</command> apply to this call."
16283 msgstr ""
16284
16285 #. type: =head2
16286 #: ../fish/guestfish-actions.pod:4683
16287 msgid "sh-lines"
16288 msgstr "sh-lines"
16289
16290 #. type: verbatim
16291 #: ../fish/guestfish-actions.pod:4685
16292 #, no-wrap
16293 msgid ""
16294 " sh-lines command\n"
16295 "\n"
16296 msgstr ""
16297 " sh-lines команда\n"
16298 "\n"
16299
16300 #. type: textblock
16301 #: ../fish/guestfish-actions.pod:4687
16302 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16303 msgstr ""
16304
16305 #. type: textblock
16306 #: ../fish/guestfish-actions.pod:4690
16307 msgid "See also: L</command-lines>"
16308 msgstr "Див. також L</command-lines>"
16309
16310 #. type: =head2
16311 #: ../fish/guestfish-actions.pod:4692
16312 msgid "sleep"
16313 msgstr "sleep"
16314
16315 #. type: verbatim
16316 #: ../fish/guestfish-actions.pod:4694
16317 #, no-wrap
16318 msgid ""
16319 " sleep secs\n"
16320 "\n"
16321 msgstr ""
16322 " sleep час_у_секундах\n"
16323 "\n"
16324
16325 #. type: textblock
16326 #: ../fish/guestfish-actions.pod:4696 ../src/guestfs-actions.pod:7202
16327 msgid "Sleep for C<secs> seconds."
16328 msgstr ""
16329
16330 #. type: =head2
16331 #: ../fish/guestfish-actions.pod:4698
16332 msgid "stat"
16333 msgstr "stat"
16334
16335 #. type: verbatim
16336 #: ../fish/guestfish-actions.pod:4700
16337 #, no-wrap
16338 msgid ""
16339 " stat path\n"
16340 "\n"
16341 msgstr ""
16342 " stat шлях\n"
16343 "\n"
16344
16345 #. type: textblock
16346 #: ../fish/guestfish-actions.pod:4704 ../src/guestfs-actions.pod:7216
16347 msgid "This is the same as the C<stat(2)> system call."
16348 msgstr ""
16349
16350 #. type: =head2
16351 #: ../fish/guestfish-actions.pod:4706
16352 msgid "statvfs"
16353 msgstr "statvfs"
16354
16355 #. type: verbatim
16356 #: ../fish/guestfish-actions.pod:4708
16357 #, no-wrap
16358 msgid ""
16359 " statvfs path\n"
16360 "\n"
16361 msgstr ""
16362 " statvfs шлях\n"
16363 "\n"
16364
16365 #. type: textblock
16366 #: ../fish/guestfish-actions.pod:4710 ../src/guestfs-actions.pod:7230
16367 msgid ""
16368 "Returns file system statistics for any mounted file system.  C<path> should "
16369 "be a file or directory in the mounted file system (typically it is the mount "
16370 "point itself, but it doesn't need to be)."
16371 msgstr ""
16372
16373 #. type: textblock
16374 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7234
16375 msgid "This is the same as the C<statvfs(2)> system call."
16376 msgstr ""
16377
16378 #. type: =head2
16379 #: ../fish/guestfish-actions.pod:4716
16380 msgid "strings"
16381 msgstr "strings"
16382
16383 #. type: verbatim
16384 #: ../fish/guestfish-actions.pod:4718
16385 #, no-wrap
16386 msgid ""
16387 " strings path\n"
16388 "\n"
16389 msgstr ""
16390 " strings шлях\n"
16391 "\n"
16392
16393 #. type: textblock
16394 #: ../fish/guestfish-actions.pod:4720 ../src/guestfs-actions.pod:7248
16395 msgid ""
16396 "This runs the L<strings(1)> command on a file and returns the list of "
16397 "printable strings found."
16398 msgstr ""
16399
16400 #. type: =head2
16401 #: ../fish/guestfish-actions.pod:4726
16402 msgid "strings-e"
16403 msgstr "strings-e"
16404
16405 #. type: verbatim
16406 #: ../fish/guestfish-actions.pod:4728
16407 #, no-wrap
16408 msgid ""
16409 " strings-e encoding path\n"
16410 "\n"
16411 msgstr ""
16412 " strings-e кодування шлях\n"
16413 "\n"
16414
16415 #. type: textblock
16416 #: ../fish/guestfish-actions.pod:4730
16417 msgid ""
16418 "This is like the L</strings> command, but allows you to specify the encoding "
16419 "of strings that are looked for in the source file C<path>."
16420 msgstr ""
16421
16422 #. type: textblock
16423 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7271
16424 msgid "Allowed encodings are:"
16425 msgstr "Можливими кодуваннями є:"
16426
16427 #. type: =item
16428 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7275
16429 msgid "s"
16430 msgstr "s"
16431
16432 #. type: textblock
16433 #: ../fish/guestfish-actions.pod:4740
16434 msgid ""
16435 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16436 "ISO-8859-X (this is what L</strings> uses)."
16437 msgstr ""
16438
16439 #. type: =item
16440 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7280
16441 msgid "S"
16442 msgstr "S"
16443
16444 #. type: textblock
16445 #: ../fish/guestfish-actions.pod:4745 ../src/guestfs-actions.pod:7282
16446 msgid "Single 8-bit-byte characters."
16447 msgstr "Окремі 8-бітові-байтові символи."
16448
16449 #. type: =item
16450 #: ../fish/guestfish-actions.pod:4747 ../src/guestfs-actions.pod:7284
16451 msgid "b"
16452 msgstr "b"
16453
16454 #. type: textblock
16455 #: ../fish/guestfish-actions.pod:4749 ../src/guestfs-actions.pod:7286
16456 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16457 msgstr ""
16458
16459 #. type: =item
16460 #: ../fish/guestfish-actions.pod:4752 ../src/guestfs-actions.pod:7289
16461 msgid "l (lower case letter L)"
16462 msgstr ""
16463
16464 #. type: textblock
16465 #: ../fish/guestfish-actions.pod:4754 ../src/guestfs-actions.pod:7291
16466 msgid ""
16467 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16468 "examining binaries in Windows guests."
16469 msgstr ""
16470
16471 #. type: =item
16472 #: ../fish/guestfish-actions.pod:4757 ../src/guestfs-actions.pod:7294
16473 msgid "B"
16474 msgstr "B"
16475
16476 #. type: textblock
16477 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7296
16478 msgid "32-bit big endian such as UCS-4BE."
16479 msgstr ""
16480
16481 #. type: =item
16482 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7298
16483 msgid "L"
16484 msgstr "L"
16485
16486 #. type: textblock
16487 #: ../fish/guestfish-actions.pod:4763 ../src/guestfs-actions.pod:7300
16488 msgid "32-bit little endian such as UCS-4LE."
16489 msgstr ""
16490
16491 #. type: textblock
16492 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7304
16493 msgid "The returned strings are transcoded to UTF-8."
16494 msgstr ""
16495
16496 #. type: =head2
16497 #: ../fish/guestfish-actions.pod:4772
16498 msgid "swapoff-device"
16499 msgstr "swapoff-device"
16500
16501 #. type: verbatim
16502 #: ../fish/guestfish-actions.pod:4774
16503 #, no-wrap
16504 msgid ""
16505 " swapoff-device device\n"
16506 "\n"
16507 msgstr ""
16508 " swapoff-device пристрій\n"
16509 "\n"
16510
16511 #. type: textblock
16512 #: ../fish/guestfish-actions.pod:4776
16513 msgid ""
16514 "This command disables the libguestfs appliance swap device or partition "
16515 "named C<device>.  See L</swapon-device>."
16516 msgstr ""
16517
16518 #. type: =head2
16519 #: ../fish/guestfish-actions.pod:4780
16520 msgid "swapoff-file"
16521 msgstr "swapoff-file"
16522
16523 #. type: verbatim
16524 #: ../fish/guestfish-actions.pod:4782
16525 #, no-wrap
16526 msgid ""
16527 " swapoff-file file\n"
16528 "\n"
16529 msgstr ""
16530 " swapoff-file файл\n"
16531 "\n"
16532
16533 #. type: textblock
16534 #: ../fish/guestfish-actions.pod:4784 ../src/guestfs-actions.pod:7335
16535 msgid "This command disables the libguestfs appliance swap on file."
16536 msgstr ""
16537
16538 #. type: =head2
16539 #: ../fish/guestfish-actions.pod:4786
16540 msgid "swapoff-label"
16541 msgstr "swapoff-label"
16542
16543 #. type: verbatim
16544 #: ../fish/guestfish-actions.pod:4788
16545 #, no-wrap
16546 msgid ""
16547 " swapoff-label label\n"
16548 "\n"
16549 msgstr ""
16550 " swapoff-label мітка\n"
16551 "\n"
16552
16553 #. type: textblock
16554 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7347
16555 msgid ""
16556 "This command disables the libguestfs appliance swap on labeled swap "
16557 "partition."
16558 msgstr ""
16559
16560 #. type: =head2
16561 #: ../fish/guestfish-actions.pod:4793
16562 msgid "swapoff-uuid"
16563 msgstr "swapoff-uuid"
16564
16565 #. type: verbatim
16566 #: ../fish/guestfish-actions.pod:4795
16567 #, no-wrap
16568 msgid ""
16569 " swapoff-uuid uuid\n"
16570 "\n"
16571 msgstr ""
16572 " swapoff-uuid uuid\n"
16573 "\n"
16574
16575 #. type: textblock
16576 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7360
16577 msgid ""
16578 "This command disables the libguestfs appliance swap partition with the given "
16579 "UUID."
16580 msgstr ""
16581
16582 #. type: =head2
16583 #: ../fish/guestfish-actions.pod:4800
16584 msgid "swapon-device"
16585 msgstr "swapon-device"
16586
16587 #. type: verbatim
16588 #: ../fish/guestfish-actions.pod:4802
16589 #, no-wrap
16590 msgid ""
16591 " swapon-device device\n"
16592 "\n"
16593 msgstr ""
16594 " swapon-device пристрій\n"
16595 "\n"
16596
16597 #. type: textblock
16598 #: ../fish/guestfish-actions.pod:4804
16599 msgid ""
16600 "This command enables the libguestfs appliance to use the swap device or "
16601 "partition named C<device>.  The increased memory is made available for all "
16602 "commands, for example those run using L</command> or L</sh>."
16603 msgstr ""
16604
16605 #. type: textblock
16606 #: ../fish/guestfish-actions.pod:4809 ../src/guestfs-actions.pod:7378
16607 msgid ""
16608 "Note that you should not swap to existing guest swap partitions unless you "
16609 "know what you are doing.  They may contain hibernation information, or other "
16610 "information that the guest doesn't want you to trash.  You also risk leaking "
16611 "information about the host to the guest this way.  Instead, attach a new "
16612 "host device to the guest and swap on that."
16613 msgstr ""
16614
16615 #. type: =head2
16616 #: ../fish/guestfish-actions.pod:4816
16617 msgid "swapon-file"
16618 msgstr "swapon-file"
16619
16620 #. type: verbatim
16621 #: ../fish/guestfish-actions.pod:4818
16622 #, no-wrap
16623 msgid ""
16624 " swapon-file file\n"
16625 "\n"
16626 msgstr ""
16627 " swapon-file файл\n"
16628 "\n"
16629
16630 #. type: textblock
16631 #: ../fish/guestfish-actions.pod:4820
16632 msgid ""
16633 "This command enables swap to a file.  See L</swapon-device> for other notes."
16634 msgstr ""
16635
16636 #. type: =head2
16637 #: ../fish/guestfish-actions.pod:4823
16638 msgid "swapon-label"
16639 msgstr "swapon-label"
16640
16641 #. type: verbatim
16642 #: ../fish/guestfish-actions.pod:4825
16643 #, no-wrap
16644 msgid ""
16645 " swapon-label label\n"
16646 "\n"
16647 msgstr ""
16648 " swapon-label мітка\n"
16649 "\n"
16650
16651 #. type: textblock
16652 #: ../fish/guestfish-actions.pod:4827
16653 msgid ""
16654 "This command enables swap to a labeled swap partition.  See L</swapon-"
16655 "device> for other notes."
16656 msgstr ""
16657
16658 #. type: =head2
16659 #: ../fish/guestfish-actions.pod:4830
16660 msgid "swapon-uuid"
16661 msgstr "swapon-uuid"
16662
16663 #. type: verbatim
16664 #: ../fish/guestfish-actions.pod:4832
16665 #, no-wrap
16666 msgid ""
16667 " swapon-uuid uuid\n"
16668 "\n"
16669 msgstr ""
16670 " swapon-uuid uuid\n"
16671 "\n"
16672
16673 #. type: textblock
16674 #: ../fish/guestfish-actions.pod:4834
16675 msgid ""
16676 "This command enables swap to a swap partition with the given UUID.  See L</"
16677 "swapon-device> for other notes."
16678 msgstr ""
16679
16680 #. type: =head2
16681 #: ../fish/guestfish-actions.pod:4837
16682 msgid "sync"
16683 msgstr "sync"
16684
16685 #. type: verbatim
16686 #: ../fish/guestfish-actions.pod:4839
16687 #, no-wrap
16688 msgid ""
16689 " sync\n"
16690 "\n"
16691 msgstr ""
16692 " sync\n"
16693 "\n"
16694
16695 #. type: textblock
16696 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7433
16697 msgid ""
16698 "This syncs the disk, so that any writes are flushed through to the "
16699 "underlying disk image."
16700 msgstr ""
16701
16702 #. type: textblock
16703 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7436
16704 msgid ""
16705 "You should always call this if you have modified a disk image, before "
16706 "closing the handle."
16707 msgstr ""
16708
16709 #. type: =head2
16710 #: ../fish/guestfish-actions.pod:4847
16711 msgid "tail"
16712 msgstr "tail"
16713
16714 #. type: verbatim
16715 #: ../fish/guestfish-actions.pod:4849
16716 #, no-wrap
16717 msgid ""
16718 " tail path\n"
16719 "\n"
16720 msgstr ""
16721 " tail шлях\n"
16722 "\n"
16723
16724 #. type: textblock
16725 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7449
16726 msgid ""
16727 "This command returns up to the last 10 lines of a file as a list of strings."
16728 msgstr ""
16729
16730 #. type: =head2
16731 #: ../fish/guestfish-actions.pod:4857
16732 msgid "tail-n"
16733 msgstr "tail-n"
16734
16735 #. type: verbatim
16736 #: ../fish/guestfish-actions.pod:4859
16737 #, no-wrap
16738 msgid ""
16739 " tail-n nrlines path\n"
16740 "\n"
16741 msgstr ""
16742
16743 #. type: textblock
16744 #: ../fish/guestfish-actions.pod:4861 ../src/guestfs-actions.pod:7468
16745 msgid ""
16746 "If the parameter C<nrlines> is a positive number, this returns the last "
16747 "C<nrlines> lines of the file C<path>."
16748 msgstr ""
16749
16750 #. type: textblock
16751 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7471
16752 msgid ""
16753 "If the parameter C<nrlines> is a negative number, this returns lines from "
16754 "the file C<path>, starting with the C<-nrlines>th line."
16755 msgstr ""
16756
16757 #. type: =head2
16758 #: ../fish/guestfish-actions.pod:4872
16759 msgid "tar-in"
16760 msgstr "tar-in"
16761
16762 #. type: verbatim
16763 #: ../fish/guestfish-actions.pod:4874
16764 #, no-wrap
16765 msgid ""
16766 " tar-in (tarfile|-) directory\n"
16767 "\n"
16768 msgstr ""
16769 " tar-in (файл_tar|-) каталог\n"
16770 "\n"
16771
16772 #. type: textblock
16773 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7492
16774 msgid ""
16775 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16776 "tar file) into C<directory>."
16777 msgstr ""
16778
16779 #. type: textblock
16780 #: ../fish/guestfish-actions.pod:4879
16781 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16782 msgstr ""
16783
16784 #. type: =head2
16785 #: ../fish/guestfish-actions.pod:4884
16786 msgid "tar-out"
16787 msgstr "tar-out"
16788
16789 #. type: verbatim
16790 #: ../fish/guestfish-actions.pod:4886
16791 #, no-wrap
16792 msgid ""
16793 " tar-out directory (tarfile|-)\n"
16794 "\n"
16795 msgstr ""
16796 " tar-out каталог (файл tar|-)\n"
16797 "\n"
16798
16799 #. type: textblock
16800 #: ../fish/guestfish-actions.pod:4888 ../src/guestfs-actions.pod:7509
16801 msgid ""
16802 "This command packs the contents of C<directory> and downloads it to local "
16803 "file C<tarfile>."
16804 msgstr ""
16805
16806 #. type: textblock
16807 #: ../fish/guestfish-actions.pod:4891
16808 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16809 msgstr ""
16810
16811 #. type: =head2
16812 #: ../fish/guestfish-actions.pod:4896
16813 msgid "tgz-in"
16814 msgstr "tgz-in"
16815
16816 #. type: verbatim
16817 #: ../fish/guestfish-actions.pod:4898
16818 #, no-wrap
16819 msgid ""
16820 " tgz-in (tarball|-) directory\n"
16821 "\n"
16822 msgstr ""
16823 " tgz-in (архів tar|-) каталог\n"
16824 "\n"
16825
16826 #. type: textblock
16827 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7526
16828 msgid ""
16829 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16830 "tar file) into C<directory>."
16831 msgstr ""
16832
16833 #. type: textblock
16834 #: ../fish/guestfish-actions.pod:4903
16835 msgid "To upload an uncompressed tarball, use L</tar-in>."
16836 msgstr ""
16837
16838 #. type: =head2
16839 #: ../fish/guestfish-actions.pod:4907
16840 msgid "tgz-out"
16841 msgstr "tgz-out"
16842
16843 #. type: verbatim
16844 #: ../fish/guestfish-actions.pod:4909
16845 #, no-wrap
16846 msgid ""
16847 " tgz-out directory (tarball|-)\n"
16848 "\n"
16849 msgstr ""
16850 " tgz-out каталог (архів tar|-)\n"
16851 "\n"
16852
16853 #. type: textblock
16854 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7542
16855 msgid ""
16856 "This command packs the contents of C<directory> and downloads it to local "
16857 "file C<tarball>."
16858 msgstr ""
16859
16860 #. type: textblock
16861 #: ../fish/guestfish-actions.pod:4914
16862 msgid "To download an uncompressed tarball, use L</tar-out>."
16863 msgstr ""
16864
16865 #. type: =head2
16866 #: ../fish/guestfish-actions.pod:4918
16867 msgid "touch"
16868 msgstr "touch"
16869
16870 #. type: verbatim
16871 #: ../fish/guestfish-actions.pod:4920
16872 #, no-wrap
16873 msgid ""
16874 " touch path\n"
16875 "\n"
16876 msgstr ""
16877 " touch шлях\n"
16878 "\n"
16879
16880 #. type: textblock
16881 #: ../fish/guestfish-actions.pod:4922 ../src/guestfs-actions.pod:7557
16882 msgid ""
16883 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16884 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16885 "length file."
16886 msgstr ""
16887
16888 #. type: textblock
16889 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7561
16890 msgid ""
16891 "This command only works on regular files, and will fail on other file types "
16892 "such as directories, symbolic links, block special etc."
16893 msgstr ""
16894
16895 #. type: =head2
16896 #: ../fish/guestfish-actions.pod:4929
16897 msgid "truncate"
16898 msgstr "truncate"
16899
16900 #. type: verbatim
16901 #: ../fish/guestfish-actions.pod:4931
16902 #, no-wrap
16903 msgid ""
16904 " truncate path\n"
16905 "\n"
16906 msgstr ""
16907 " truncate шлях\n"
16908 "\n"
16909
16910 #. type: textblock
16911 #: ../fish/guestfish-actions.pod:4933 ../src/guestfs-actions.pod:7574
16912 msgid ""
16913 "This command truncates C<path> to a zero-length file.  The file must exist "
16914 "already."
16915 msgstr ""
16916
16917 #. type: =head2
16918 #: ../fish/guestfish-actions.pod:4936
16919 msgid "truncate-size"
16920 msgstr "truncate-size"
16921
16922 #. type: verbatim
16923 #: ../fish/guestfish-actions.pod:4938
16924 #, no-wrap
16925 msgid ""
16926 " truncate-size path size\n"
16927 "\n"
16928 msgstr ""
16929 " truncate-size шлях розмір\n"
16930 "\n"
16931
16932 #. type: textblock
16933 #: ../fish/guestfish-actions.pod:4940 ../src/guestfs-actions.pod:7588
16934 msgid ""
16935 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16936 "already."
16937 msgstr ""
16938
16939 #. type: textblock
16940 #: ../fish/guestfish-actions.pod:4943
16941 msgid ""
16942 "If the current file size is less than C<size> then the file is extended to "
16943 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16944 "blocks are not allocated for the file until you write to it).  To create a "
16945 "non-sparse file of zeroes, use L</fallocate64> instead."
16946 msgstr ""
16947
16948 #. type: =head2
16949 #: ../fish/guestfish-actions.pod:4949
16950 msgid "tune2fs-l"
16951 msgstr "tune2fs-l"
16952
16953 #. type: verbatim
16954 #: ../fish/guestfish-actions.pod:4951
16955 #, no-wrap
16956 msgid ""
16957 " tune2fs-l device\n"
16958 "\n"
16959 msgstr ""
16960 " tune2fs-l пристрій\n"
16961 "\n"
16962
16963 #. type: textblock
16964 #: ../fish/guestfish-actions.pod:4953 ../src/guestfs-actions.pod:7607
16965 msgid ""
16966 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16967 "C<device>."
16968 msgstr ""
16969
16970 #. type: textblock
16971 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7610
16972 msgid ""
16973 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16974 "for more details.  The list of fields returned isn't clearly defined, and "
16975 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16976 "and the filesystem itself."
16977 msgstr ""
16978
16979 #. type: =head2
16980 #: ../fish/guestfish-actions.pod:4961
16981 msgid "txz-in"
16982 msgstr "txz-in"
16983
16984 #. type: verbatim
16985 #: ../fish/guestfish-actions.pod:4963
16986 #, no-wrap
16987 msgid ""
16988 " txz-in (tarball|-) directory\n"
16989 "\n"
16990 msgstr ""
16991 " txz-in (архів tar|-) каталог\n"
16992 "\n"
16993
16994 #. type: textblock
16995 #: ../fish/guestfish-actions.pod:4965 ../src/guestfs-actions.pod:7630
16996 msgid ""
16997 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16998 "tar file) into C<directory>."
16999 msgstr ""
17000
17001 #. type: =head2
17002 #: ../fish/guestfish-actions.pod:4970
17003 msgid "txz-out"
17004 msgstr "txz-out"
17005
17006 #. type: verbatim
17007 #: ../fish/guestfish-actions.pod:4972
17008 #, no-wrap
17009 msgid ""
17010 " txz-out directory (tarball|-)\n"
17011 "\n"
17012 msgstr ""
17013 " txz-out каталог (архів tar|-)\n"
17014 "\n"
17015
17016 #. type: textblock
17017 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7644
17018 msgid ""
17019 "This command packs the contents of C<directory> and downloads it to local "
17020 "file C<tarball> (as an xz compressed tar archive)."
17021 msgstr ""
17022
17023 #. type: =head2
17024 #: ../fish/guestfish-actions.pod:4979
17025 msgid "umask"
17026 msgstr "umask"
17027
17028 #. type: verbatim
17029 #: ../fish/guestfish-actions.pod:4981
17030 #, no-wrap
17031 msgid ""
17032 " umask mask\n"
17033 "\n"
17034 msgstr ""
17035 " umask маска\n"
17036 "\n"
17037
17038 #. type: textblock
17039 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7657
17040 msgid ""
17041 "This function sets the mask used for creating new files and device nodes to "
17042 "C<mask & 0777>."
17043 msgstr ""
17044
17045 #. type: textblock
17046 #: ../fish/guestfish-actions.pod:4986 ../src/guestfs-actions.pod:7660
17047 msgid ""
17048 "Typical umask values would be C<022> which creates new files with "
17049 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
17050 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
17051 msgstr ""
17052
17053 #. type: textblock
17054 #: ../fish/guestfish-actions.pod:4991 ../src/guestfs-actions.pod:7665
17055 msgid ""
17056 "The default umask is C<022>.  This is important because it means that "
17057 "directories and device nodes will be created with C<0644> or C<0755> mode "
17058 "even if you specify C<0777>."
17059 msgstr ""
17060
17061 #. type: textblock
17062 #: ../fish/guestfish-actions.pod:4995
17063 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17064 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
17065
17066 #. type: textblock
17067 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7672
17068 msgid "This call returns the previous umask."
17069 msgstr ""
17070
17071 #. type: =head2
17072 #: ../fish/guestfish-actions.pod:5000
17073 msgid "umount"
17074 msgstr "umount"
17075
17076 #. type: =head2
17077 #: ../fish/guestfish-actions.pod:5002
17078 msgid "unmount"
17079 msgstr "unmount"
17080
17081 #. type: verbatim
17082 #: ../fish/guestfish-actions.pod:5004
17083 #, no-wrap
17084 msgid ""
17085 " umount pathordevice\n"
17086 "\n"
17087 msgstr ""
17088 " umount шлях_або_пристрій\n"
17089 "\n"
17090
17091 #. type: textblock
17092 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7684
17093 msgid ""
17094 "This unmounts the given filesystem.  The filesystem may be specified either "
17095 "by its mountpoint (path) or the device which contains the filesystem."
17096 msgstr ""
17097
17098 #. type: =head2
17099 #: ../fish/guestfish-actions.pod:5010
17100 msgid "umount-all"
17101 msgstr "umount-all"
17102
17103 #. type: =head2
17104 #: ../fish/guestfish-actions.pod:5012
17105 msgid "unmount-all"
17106 msgstr "unmount-all"
17107
17108 #. type: verbatim
17109 #: ../fish/guestfish-actions.pod:5014
17110 #, no-wrap
17111 msgid ""
17112 " umount-all\n"
17113 "\n"
17114 msgstr ""
17115 " umount-all\n"
17116 "\n"
17117
17118 #. type: textblock
17119 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7697
17120 msgid "This unmounts all mounted filesystems."
17121 msgstr ""
17122
17123 #. type: textblock
17124 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7699
17125 msgid "Some internal mounts are not unmounted by this call."
17126 msgstr ""
17127
17128 #. type: =head2
17129 #: ../fish/guestfish-actions.pod:5020
17130 msgid "upload"
17131 msgstr "upload"
17132
17133 #. type: verbatim
17134 #: ../fish/guestfish-actions.pod:5022
17135 #, no-wrap
17136 msgid ""
17137 " upload (filename|-) remotefilename\n"
17138 "\n"
17139 msgstr ""
17140 " upload (назва_файла|-) назва_віддаленого_файла\n"
17141 "\n"
17142
17143 #. type: textblock
17144 #: ../fish/guestfish-actions.pod:5024 ../fish/guestfish-actions.pod:5037
17145 #: ../src/guestfs-actions.pod:7712 ../src/guestfs-actions.pod:7736
17146 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17147 msgstr ""
17148
17149 #. type: textblock
17150 #: ../fish/guestfish-actions.pod:5029
17151 msgid "See also L</download>."
17152 msgstr "Див. також L</download>."
17153
17154 #. type: =head2
17155 #: ../fish/guestfish-actions.pod:5033
17156 msgid "upload-offset"
17157 msgstr "upload-offset"
17158
17159 #. type: verbatim
17160 #: ../fish/guestfish-actions.pod:5035
17161 #, no-wrap
17162 msgid ""
17163 " upload-offset (filename|-) remotefilename offset\n"
17164 "\n"
17165 msgstr ""
17166 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
17167 "\n"
17168
17169 #. type: textblock
17170 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7739
17171 msgid ""
17172 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17173 "The intention is to overwrite parts of existing files or devices, although "
17174 "if a non-existant file is specified then it is created with a \"hole\" "
17175 "before C<offset>.  The size of the data written is implicit in the size of "
17176 "the source C<filename>."
17177 msgstr ""
17178
17179 #. type: textblock
17180 #: ../fish/guestfish-actions.pod:5047
17181 msgid ""
17182 "Note that there is no limit on the amount of data that can be uploaded with "
17183 "this call, unlike with L</pwrite>, and this call always writes the full "
17184 "amount unless an error occurs."
17185 msgstr ""
17186
17187 #. type: textblock
17188 #: ../fish/guestfish-actions.pod:5052
17189 msgid "See also L</upload>, L</pwrite>."
17190 msgstr "Див. також L</upload>, L</pwrite>."
17191
17192 #. type: =head2
17193 #: ../fish/guestfish-actions.pod:5056
17194 msgid "utimens"
17195 msgstr "utimens"
17196
17197 #. type: verbatim
17198 #: ../fish/guestfish-actions.pod:5058
17199 #, no-wrap
17200 msgid ""
17201 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17202 "\n"
17203 msgstr ""
17204
17205 #. type: textblock
17206 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7772
17207 msgid "This command sets the timestamps of a file with nanosecond precision."
17208 msgstr ""
17209
17210 #. type: textblock
17211 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7775
17212 msgid ""
17213 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17214 "from the epoch."
17215 msgstr ""
17216
17217 #. type: textblock
17218 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7778
17219 msgid ""
17220 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17221 "nanoseconds from the epoch."
17222 msgstr ""
17223
17224 #. type: textblock
17225 #: ../fish/guestfish-actions.pod:5069 ../src/guestfs-actions.pod:7781
17226 msgid ""
17227 "If the C<*nsecs> field contains the special value C<-1> then the "
17228 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17229 "ignored in this case)."
17230 msgstr ""
17231
17232 #. type: textblock
17233 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7785
17234 msgid ""
17235 "If the C<*nsecs> field contains the special value C<-2> then the "
17236 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17237 "in this case)."
17238 msgstr ""
17239
17240 #. type: =head2
17241 #: ../fish/guestfish-actions.pod:5077
17242 msgid "version"
17243 msgstr "version"
17244
17245 #. type: verbatim
17246 #: ../fish/guestfish-actions.pod:5079
17247 #, no-wrap
17248 msgid ""
17249 " version\n"
17250 "\n"
17251 msgstr ""
17252 " version\n"
17253 "\n"
17254
17255 #. type: textblock
17256 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7798
17257 msgid ""
17258 "Return the libguestfs version number that the program is linked against."
17259 msgstr ""
17260
17261 #. type: textblock
17262 #: ../fish/guestfish-actions.pod:5084 ../src/guestfs-actions.pod:7801
17263 msgid ""
17264 "Note that because of dynamic linking this is not necessarily the version of "
17265 "libguestfs that you compiled against.  You can compile the program, and then "
17266 "at runtime dynamically link against a completely different C<libguestfs.so> "
17267 "library."
17268 msgstr ""
17269
17270 #. type: textblock
17271 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7806
17272 msgid ""
17273 "This call was added in version C<1.0.58>.  In previous versions of "
17274 "libguestfs there was no way to get the version number.  From C code you can "
17275 "use dynamic linker functions to find out if this symbol exists (if it "
17276 "doesn't, then it's an earlier version)."
17277 msgstr ""
17278
17279 #. type: textblock
17280 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7812
17281 msgid ""
17282 "The call returns a structure with four elements.  The first three (C<major>, "
17283 "C<minor> and C<release>) are numbers and correspond to the usual version "
17284 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17285 "but may be used for distro-specific information."
17286 msgstr ""
17287
17288 #. type: textblock
17289 #: ../fish/guestfish-actions.pod:5101 ../src/guestfs-actions.pod:7818
17290 msgid ""
17291 "To construct the original version string: C<$major.$minor.$release$extra>"
17292 msgstr ""
17293
17294 #. type: textblock
17295 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7821
17296 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17297 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17298
17299 #. type: textblock
17300 #: ../fish/guestfish-actions.pod:5106
17301 msgid ""
17302 "I<Note:> Don't use this call to test for availability of features.  In "
17303 "enterprise distributions we backport features from later versions into "
17304 "earlier versions, making this an unreliable way to test for features.  Use "
17305 "L</available> instead."
17306 msgstr ""
17307
17308 #. type: =head2
17309 #: ../fish/guestfish-actions.pod:5112
17310 msgid "vfs-label"
17311 msgstr "vfs-label"
17312
17313 #. type: verbatim
17314 #: ../fish/guestfish-actions.pod:5114
17315 #, no-wrap
17316 msgid ""
17317 " vfs-label device\n"
17318 "\n"
17319 msgstr ""
17320 " vfs-label пристрій\n"
17321 "\n"
17322
17323 #. type: textblock
17324 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7841
17325 msgid "This returns the filesystem label of the filesystem on C<device>."
17326 msgstr ""
17327
17328 #. type: textblock
17329 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7844
17330 msgid "If the filesystem is unlabeled, this returns the empty string."
17331 msgstr ""
17332
17333 #. type: textblock
17334 #: ../fish/guestfish-actions.pod:5121
17335 msgid "To find a filesystem from the label, use L</findfs-label>."
17336 msgstr ""
17337
17338 #. type: =head2
17339 #: ../fish/guestfish-actions.pod:5123
17340 msgid "vfs-type"
17341 msgstr "vfs-type"
17342
17343 #. type: verbatim
17344 #: ../fish/guestfish-actions.pod:5125
17345 #, no-wrap
17346 msgid ""
17347 " vfs-type device\n"
17348 "\n"
17349 msgstr ""
17350 " vfs-type пристрій\n"
17351 "\n"
17352
17353 #. type: textblock
17354 #: ../fish/guestfish-actions.pod:5127 ../src/guestfs-actions.pod:7859
17355 msgid ""
17356 "This command gets the filesystem type corresponding to the filesystem on "
17357 "C<device>."
17358 msgstr ""
17359
17360 #. type: textblock
17361 #: ../fish/guestfish-actions.pod:5130 ../src/guestfs-actions.pod:7862
17362 msgid ""
17363 "For most filesystems, the result is the name of the Linux VFS module which "
17364 "would be used to mount this filesystem if you mounted it without specifying "
17365 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17366 msgstr ""
17367
17368 #. type: =head2
17369 #: ../fish/guestfish-actions.pod:5135
17370 msgid "vfs-uuid"
17371 msgstr "vfs-uuid"
17372
17373 #. type: verbatim
17374 #: ../fish/guestfish-actions.pod:5137
17375 #, no-wrap
17376 msgid ""
17377 " vfs-uuid device\n"
17378 "\n"
17379 msgstr ""
17380 " vfs-uuid пристрій\n"
17381 "\n"
17382
17383 #. type: textblock
17384 #: ../fish/guestfish-actions.pod:5139 ../src/guestfs-actions.pod:7878
17385 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17386 msgstr ""
17387
17388 #. type: textblock
17389 #: ../fish/guestfish-actions.pod:5142 ../src/guestfs-actions.pod:7881
17390 msgid "If the filesystem does not have a UUID, this returns the empty string."
17391 msgstr ""
17392
17393 #. type: textblock
17394 #: ../fish/guestfish-actions.pod:5144
17395 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17396 msgstr ""
17397
17398 #. type: =head2
17399 #: ../fish/guestfish-actions.pod:5146
17400 msgid "vg-activate"
17401 msgstr "vg-activate"
17402
17403 #. type: verbatim
17404 #: ../fish/guestfish-actions.pod:5148
17405 #, no-wrap
17406 msgid ""
17407 " vg-activate true|false 'volgroups ...'\n"
17408 "\n"
17409 msgstr ""
17410
17411 #. type: textblock
17412 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7897
17413 msgid ""
17414 "This command activates or (if C<activate> is false) deactivates all logical "
17415 "volumes in the listed volume groups C<volgroups>."
17416 msgstr ""
17417
17418 #. type: textblock
17419 #: ../fish/guestfish-actions.pod:5153 ../src/guestfs-actions.pod:7900
17420 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17421 msgstr ""
17422
17423 #. type: textblock
17424 #: ../fish/guestfish-actions.pod:5155 ../src/guestfs-actions.pod:7902
17425 msgid ""
17426 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17427 "activated or deactivated."
17428 msgstr ""
17429
17430 #. type: =head2
17431 #: ../fish/guestfish-actions.pod:5158
17432 msgid "vg-activate-all"
17433 msgstr "vg-activate-all"
17434
17435 #. type: verbatim
17436 #: ../fish/guestfish-actions.pod:5160
17437 #, no-wrap
17438 msgid ""
17439 " vg-activate-all true|false\n"
17440 "\n"
17441 msgstr ""
17442 " vg-activate-all true|false\n"
17443 "\n"
17444
17445 #. type: textblock
17446 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7915
17447 msgid ""
17448 "This command activates or (if C<activate> is false) deactivates all logical "
17449 "volumes in all volume groups."
17450 msgstr ""
17451
17452 #. type: textblock
17453 #: ../fish/guestfish-actions.pod:5165 ../src/guestfs-actions.pod:7918
17454 msgid "This command is the same as running C<vgchange -a y|n>"
17455 msgstr ""
17456
17457 #. type: =head2
17458 #: ../fish/guestfish-actions.pod:5167
17459 msgid "vgcreate"
17460 msgstr "vgcreate"
17461
17462 #. type: verbatim
17463 #: ../fish/guestfish-actions.pod:5169
17464 #, no-wrap
17465 msgid ""
17466 " vgcreate volgroup 'physvols ...'\n"
17467 "\n"
17468 msgstr ""
17469
17470 #. type: textblock
17471 #: ../fish/guestfish-actions.pod:5171 ../src/guestfs-actions.pod:7931
17472 msgid ""
17473 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17474 "of physical volumes C<physvols>."
17475 msgstr ""
17476
17477 #. type: =head2
17478 #: ../fish/guestfish-actions.pod:5174
17479 msgid "vglvuuids"
17480 msgstr "vglvuuids"
17481
17482 #. type: verbatim
17483 #: ../fish/guestfish-actions.pod:5176
17484 #, no-wrap
17485 msgid ""
17486 " vglvuuids vgname\n"
17487 "\n"
17488 msgstr ""
17489
17490 #. type: textblock
17491 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7944
17492 msgid ""
17493 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17494 "volumes created in this volume group."
17495 msgstr ""
17496
17497 #. type: textblock
17498 #: ../fish/guestfish-actions.pod:5181
17499 msgid ""
17500 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17501 "logical volumes and volume groups."
17502 msgstr ""
17503
17504 #. type: textblock
17505 #: ../fish/guestfish-actions.pod:5184
17506 msgid "See also L</vgpvuuids>."
17507 msgstr "Див. також L</vgpvuuids>."
17508
17509 #. type: =head2
17510 #: ../fish/guestfish-actions.pod:5186
17511 msgid "vgpvuuids"
17512 msgstr "vgpvuuids"
17513
17514 #. type: verbatim
17515 #: ../fish/guestfish-actions.pod:5188
17516 #, no-wrap
17517 msgid ""
17518 " vgpvuuids vgname\n"
17519 "\n"
17520 msgstr ""
17521
17522 #. type: textblock
17523 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7964
17524 msgid ""
17525 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17526 "volumes that this volume group resides on."
17527 msgstr ""
17528
17529 #. type: textblock
17530 #: ../fish/guestfish-actions.pod:5193
17531 msgid ""
17532 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17533 "physical volumes and volume groups."
17534 msgstr ""
17535
17536 #. type: textblock
17537 #: ../fish/guestfish-actions.pod:5196
17538 msgid "See also L</vglvuuids>."
17539 msgstr "Див. також L</vglvuuids>."
17540
17541 #. type: =head2
17542 #: ../fish/guestfish-actions.pod:5198
17543 msgid "vgremove"
17544 msgstr "vgremove"
17545
17546 #. type: verbatim
17547 #: ../fish/guestfish-actions.pod:5200
17548 #, no-wrap
17549 msgid ""
17550 " vgremove vgname\n"
17551 "\n"
17552 msgstr ""
17553
17554 #. type: textblock
17555 #: ../fish/guestfish-actions.pod:5202 ../src/guestfs-actions.pod:7984
17556 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17557 msgstr ""
17558
17559 #. type: textblock
17560 #: ../fish/guestfish-actions.pod:5204 ../src/guestfs-actions.pod:7986
17561 msgid ""
17562 "This also forcibly removes all logical volumes in the volume group (if any)."
17563 msgstr ""
17564
17565 #. type: =head2
17566 #: ../fish/guestfish-actions.pod:5207
17567 msgid "vgrename"
17568 msgstr "vgrename"
17569
17570 #. type: verbatim
17571 #: ../fish/guestfish-actions.pod:5209
17572 #, no-wrap
17573 msgid ""
17574 " vgrename volgroup newvolgroup\n"
17575 "\n"
17576 msgstr ""
17577
17578 #. type: textblock
17579 #: ../fish/guestfish-actions.pod:5211 ../src/guestfs-actions.pod:8000
17580 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17581 msgstr ""
17582
17583 #. type: =head2
17584 #: ../fish/guestfish-actions.pod:5213
17585 msgid "vgs"
17586 msgstr "vgs"
17587
17588 #. type: verbatim
17589 #: ../fish/guestfish-actions.pod:5215
17590 #, no-wrap
17591 msgid ""
17592 " vgs\n"
17593 "\n"
17594 msgstr ""
17595 " vgs\n"
17596 "\n"
17597
17598 #. type: textblock
17599 #: ../fish/guestfish-actions.pod:5217 ../src/guestfs-actions.pod:8011
17600 msgid ""
17601 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17602 "> command."
17603 msgstr ""
17604
17605 #. type: textblock
17606 #: ../fish/guestfish-actions.pod:5220 ../src/guestfs-actions.pod:8014
17607 msgid ""
17608 "This returns a list of just the volume group names that were detected (eg. "
17609 "C<VolGroup00>)."
17610 msgstr ""
17611
17612 #. type: textblock
17613 #: ../fish/guestfish-actions.pod:5223
17614 msgid "See also L</vgs-full>."
17615 msgstr "Див. також L</vgs-full>."
17616
17617 #. type: =head2
17618 #: ../fish/guestfish-actions.pod:5225
17619 msgid "vgs-full"
17620 msgstr "vgs-full"
17621
17622 #. type: verbatim
17623 #: ../fish/guestfish-actions.pod:5227
17624 #, no-wrap
17625 msgid ""
17626 " vgs-full\n"
17627 "\n"
17628 msgstr ""
17629 " vgs-full\n"
17630 "\n"
17631
17632 #. type: textblock
17633 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:8030
17634 msgid ""
17635 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17636 "> command.  The \"full\" version includes all fields."
17637 msgstr ""
17638
17639 #. type: =head2
17640 #: ../fish/guestfish-actions.pod:5232
17641 msgid "vgscan"
17642 msgstr "vgscan"
17643
17644 #. type: verbatim
17645 #: ../fish/guestfish-actions.pod:5234
17646 #, no-wrap
17647 msgid ""
17648 " vgscan\n"
17649 "\n"
17650 msgstr ""
17651 " vgscan\n"
17652 "\n"
17653
17654 #. type: textblock
17655 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8044
17656 msgid ""
17657 "This rescans all block devices and rebuilds the list of LVM physical "
17658 "volumes, volume groups and logical volumes."
17659 msgstr ""
17660
17661 #. type: =head2
17662 #: ../fish/guestfish-actions.pod:5239
17663 msgid "vguuid"
17664 msgstr "vguuid"
17665
17666 #. type: verbatim
17667 #: ../fish/guestfish-actions.pod:5241
17668 #, no-wrap
17669 msgid ""
17670 " vguuid vgname\n"
17671 "\n"
17672 msgstr ""
17673
17674 #. type: textblock
17675 #: ../fish/guestfish-actions.pod:5243 ../src/guestfs-actions.pod:8057
17676 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17677 msgstr ""
17678
17679 #. type: =head2
17680 #: ../fish/guestfish-actions.pod:5245
17681 msgid "wc-c"
17682 msgstr "wc-c"
17683
17684 #. type: verbatim
17685 #: ../fish/guestfish-actions.pod:5247
17686 #, no-wrap
17687 msgid ""
17688 " wc-c path\n"
17689 "\n"
17690 msgstr ""
17691 " wc-c шлях\n"
17692 "\n"
17693
17694 #. type: textblock
17695 #: ../fish/guestfish-actions.pod:5249 ../src/guestfs-actions.pod:8097
17696 msgid ""
17697 "This command counts the characters in a file, using the C<wc -c> external "
17698 "command."
17699 msgstr ""
17700
17701 #. type: =head2
17702 #: ../fish/guestfish-actions.pod:5252
17703 msgid "wc-l"
17704 msgstr "wc-l"
17705
17706 #. type: verbatim
17707 #: ../fish/guestfish-actions.pod:5254
17708 #, no-wrap
17709 msgid ""
17710 " wc-l path\n"
17711 "\n"
17712 msgstr ""
17713 " wc-l шлях\n"
17714 "\n"
17715
17716 #. type: textblock
17717 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8110
17718 msgid ""
17719 "This command counts the lines in a file, using the C<wc -l> external command."
17720 msgstr ""
17721
17722 #. type: =head2
17723 #: ../fish/guestfish-actions.pod:5259
17724 msgid "wc-w"
17725 msgstr "wc-w"
17726
17727 #. type: verbatim
17728 #: ../fish/guestfish-actions.pod:5261
17729 #, no-wrap
17730 msgid ""
17731 " wc-w path\n"
17732 "\n"
17733 msgstr ""
17734 " wc-w шлях\n"
17735 "\n"
17736
17737 #. type: textblock
17738 #: ../fish/guestfish-actions.pod:5263 ../src/guestfs-actions.pod:8123
17739 msgid ""
17740 "This command counts the words in a file, using the C<wc -w> external command."
17741 msgstr ""
17742
17743 #. type: =head2
17744 #: ../fish/guestfish-actions.pod:5266
17745 msgid "write"
17746 msgstr "write"
17747
17748 #. type: verbatim
17749 #: ../fish/guestfish-actions.pod:5268
17750 #, no-wrap
17751 msgid ""
17752 " write path content\n"
17753 "\n"
17754 msgstr ""
17755 " write шлях дані\n"
17756 "\n"
17757
17758 #. type: textblock
17759 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8138
17760 msgid ""
17761 "This call creates a file called C<path>.  The content of the file is the "
17762 "string C<content> (which can contain any 8 bit data)."
17763 msgstr ""
17764
17765 #. type: textblock
17766 #: ../fish/guestfish-actions.pod:5273
17767 msgid "See also L</write-append>."
17768 msgstr "Див. також L</write-append>."
17769
17770 #. type: =head2
17771 #: ../fish/guestfish-actions.pod:5278
17772 msgid "write-append"
17773 msgstr ""
17774
17775 #. type: verbatim
17776 #: ../fish/guestfish-actions.pod:5280
17777 #, no-wrap
17778 msgid ""
17779 " write-append path content\n"
17780 "\n"
17781 msgstr ""
17782
17783 #. type: textblock
17784 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8158
17785 msgid ""
17786 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17787 "not exist, then a new file is created."
17788 msgstr ""
17789
17790 #. type: textblock
17791 #: ../fish/guestfish-actions.pod:5285
17792 msgid "See also L</write>."
17793 msgstr "Див. також L</write>."
17794
17795 #. type: =head2
17796 #: ../fish/guestfish-actions.pod:5290
17797 msgid "write-file"
17798 msgstr "write-file"
17799
17800 #. type: verbatim
17801 #: ../fish/guestfish-actions.pod:5292
17802 #, no-wrap
17803 msgid ""
17804 " write-file path content size\n"
17805 "\n"
17806 msgstr ""
17807
17808 #. type: textblock
17809 #: ../fish/guestfish-actions.pod:5294 ../src/guestfs-actions.pod:8185
17810 msgid ""
17811 "This call creates a file called C<path>.  The contents of the file is the "
17812 "string C<content> (which can contain any 8 bit data), with length C<size>."
17813 msgstr ""
17814
17815 #. type: textblock
17816 #: ../fish/guestfish-actions.pod:5298 ../src/guestfs-actions.pod:8189
17817 msgid ""
17818 "As a special case, if C<size> is C<0> then the length is calculated using "
17819 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17820 msgstr ""
17821
17822 #. type: textblock
17823 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8193
17824 msgid ""
17825 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17826 "I<not> work, even if the length is specified."
17827 msgstr ""
17828
17829 #. type: textblock
17830 #: ../fish/guestfish-actions.pod:5308
17831 msgid ""
17832 "I<This function is deprecated.> In new code, use the L</write> call instead."
17833 msgstr ""
17834
17835 #. type: =head2
17836 #: ../fish/guestfish-actions.pod:5315
17837 msgid "zegrep"
17838 msgstr "zegrep"
17839
17840 #. type: verbatim
17841 #: ../fish/guestfish-actions.pod:5317
17842 #, no-wrap
17843 msgid ""
17844 " zegrep regex path\n"
17845 "\n"
17846 msgstr ""
17847 " zegrep формальний_вираз шлях\n"
17848 "\n"
17849
17850 #. type: textblock
17851 #: ../fish/guestfish-actions.pod:5319 ../src/guestfs-actions.pod:8210
17852 msgid ""
17853 "This calls the external C<zegrep> program and returns the matching lines."
17854 msgstr ""
17855
17856 #. type: =head2
17857 #: ../fish/guestfish-actions.pod:5325
17858 msgid "zegrepi"
17859 msgstr "zegrepi"
17860
17861 #. type: verbatim
17862 #: ../fish/guestfish-actions.pod:5327
17863 #, no-wrap
17864 msgid ""
17865 " zegrepi regex path\n"
17866 "\n"
17867 msgstr ""
17868
17869 #. type: textblock
17870 #: ../fish/guestfish-actions.pod:5329 ../src/guestfs-actions.pod:8229
17871 msgid ""
17872 "This calls the external C<zegrep -i> program and returns the matching lines."
17873 msgstr ""
17874
17875 #. type: =head2
17876 #: ../fish/guestfish-actions.pod:5335
17877 msgid "zero"
17878 msgstr "zero"
17879
17880 #. type: verbatim
17881 #: ../fish/guestfish-actions.pod:5337
17882 #, no-wrap
17883 msgid ""
17884 " zero device\n"
17885 "\n"
17886 msgstr ""
17887 " zero пристрій\n"
17888 "\n"
17889
17890 #. type: textblock
17891 #: ../fish/guestfish-actions.pod:5339 ../src/guestfs-actions.pod:8247
17892 msgid "This command writes zeroes over the first few blocks of C<device>."
17893 msgstr ""
17894
17895 #. type: textblock
17896 #: ../fish/guestfish-actions.pod:5341 ../src/guestfs-actions.pod:8249
17897 msgid ""
17898 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17899 "securely wipe the device).  It should be sufficient to remove any partition "
17900 "tables, filesystem superblocks and so on."
17901 msgstr ""
17902
17903 #. type: textblock
17904 #: ../fish/guestfish-actions.pod:5345 ../fish/guestfish-actions.pod:5360
17905 #: ../src/guestfs-actions.pod:8253 ../src/guestfs-actions.pod:8279
17906 msgid ""
17907 "If blocks are already zero, then this command avoids writing zeroes.  This "
17908 "prevents the underlying device from becoming non-sparse or growing "
17909 "unnecessarily."
17910 msgstr ""
17911
17912 #. type: textblock
17913 #: ../fish/guestfish-actions.pod:5349
17914 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17915 msgstr ""
17916
17917 #. type: =head2
17918 #: ../fish/guestfish-actions.pod:5352
17919 msgid "zero-device"
17920 msgstr "zero-device"
17921
17922 #. type: verbatim
17923 #: ../fish/guestfish-actions.pod:5354
17924 #, no-wrap
17925 msgid ""
17926 " zero-device device\n"
17927 "\n"
17928 msgstr ""
17929 " zero-device пристрій\n"
17930 "\n"
17931
17932 #. type: textblock
17933 #: ../fish/guestfish-actions.pod:5356
17934 msgid ""
17935 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17936 "which just zeroes the first few blocks of a device."
17937 msgstr ""
17938
17939 #. type: =head2
17940 #: ../fish/guestfish-actions.pod:5367
17941 msgid "zerofree"
17942 msgstr "zerofree"
17943
17944 #. type: verbatim
17945 #: ../fish/guestfish-actions.pod:5369
17946 #, no-wrap
17947 msgid ""
17948 " zerofree device\n"
17949 "\n"
17950 msgstr ""
17951 " zerofree пристрій\n"
17952 "\n"
17953
17954 #. type: textblock
17955 #: ../fish/guestfish-actions.pod:5371 ../src/guestfs-actions.pod:8301
17956 msgid ""
17957 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17958 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17959 "possible to compress the filesystem more effectively."
17960 msgstr ""
17961
17962 #. type: textblock
17963 #: ../fish/guestfish-actions.pod:5376 ../src/guestfs-actions.pod:8306
17964 msgid "You should B<not> run this program if the filesystem is mounted."
17965 msgstr ""
17966
17967 #. type: textblock
17968 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8309
17969 msgid ""
17970 "It is possible that using this program can damage the filesystem or data on "
17971 "the filesystem."
17972 msgstr ""
17973
17974 #. type: =head2
17975 #: ../fish/guestfish-actions.pod:5382
17976 msgid "zfgrep"
17977 msgstr "zfgrep"
17978
17979 #. type: verbatim
17980 #: ../fish/guestfish-actions.pod:5384
17981 #, no-wrap
17982 msgid ""
17983 " zfgrep pattern path\n"
17984 "\n"
17985 msgstr ""
17986 " zfgrep шаблон шлях\n"
17987 "\n"
17988
17989 #. type: textblock
17990 #: ../fish/guestfish-actions.pod:5386 ../src/guestfs-actions.pod:8323
17991 msgid ""
17992 "This calls the external C<zfgrep> program and returns the matching lines."
17993 msgstr ""
17994
17995 #. type: =head2
17996 #: ../fish/guestfish-actions.pod:5392
17997 msgid "zfgrepi"
17998 msgstr "zfgrepi"
17999
18000 #. type: verbatim
18001 #: ../fish/guestfish-actions.pod:5394
18002 #, no-wrap
18003 msgid ""
18004 " zfgrepi pattern path\n"
18005 "\n"
18006 msgstr ""
18007 " zfgrepi шаблон шлях\n"
18008 "\n"
18009
18010 #. type: textblock
18011 #: ../fish/guestfish-actions.pod:5396 ../src/guestfs-actions.pod:8342
18012 msgid ""
18013 "This calls the external C<zfgrep -i> program and returns the matching lines."
18014 msgstr ""
18015
18016 #. type: =head2
18017 #: ../fish/guestfish-actions.pod:5402
18018 msgid "zfile"
18019 msgstr "zfile"
18020
18021 #. type: verbatim
18022 #: ../fish/guestfish-actions.pod:5404
18023 #, no-wrap
18024 msgid ""
18025 " zfile meth path\n"
18026 "\n"
18027 msgstr ""
18028 " zfile метод шлях\n"
18029 "\n"
18030
18031 #. type: textblock
18032 #: ../fish/guestfish-actions.pod:5406 ../src/guestfs-actions.pod:8368
18033 msgid ""
18034 "This command runs C<file> after first decompressing C<path> using C<method>."
18035 msgstr ""
18036
18037 #. type: textblock
18038 #: ../fish/guestfish-actions.pod:5409 ../src/guestfs-actions.pod:8371
18039 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
18040 msgstr ""
18041
18042 #. type: textblock
18043 #: ../fish/guestfish-actions.pod:5411
18044 msgid ""
18045 "Since 1.0.63, use L</file> instead which can now process compressed files."
18046 msgstr ""
18047
18048 #. type: textblock
18049 #: ../fish/guestfish-actions.pod:5414
18050 msgid ""
18051 "I<This function is deprecated.> In new code, use the L</file> call instead."
18052 msgstr ""
18053
18054 #. type: =head2
18055 #: ../fish/guestfish-actions.pod:5421
18056 msgid "zgrep"
18057 msgstr "zgrep"
18058
18059 #. type: verbatim
18060 #: ../fish/guestfish-actions.pod:5423
18061 #, no-wrap
18062 msgid ""
18063 " zgrep regex path\n"
18064 "\n"
18065 msgstr ""
18066 " zgrep формальний_вираз шлях\n"
18067 "\n"
18068
18069 #. type: textblock
18070 #: ../fish/guestfish-actions.pod:5425 ../src/guestfs-actions.pod:8388
18071 msgid ""
18072 "This calls the external C<zgrep> program and returns the matching lines."
18073 msgstr ""
18074
18075 #. type: =head2
18076 #: ../fish/guestfish-actions.pod:5431
18077 msgid "zgrepi"
18078 msgstr "zgrepi"
18079
18080 #. type: verbatim
18081 #: ../fish/guestfish-actions.pod:5433
18082 #, no-wrap
18083 msgid ""
18084 " zgrepi regex path\n"
18085 "\n"
18086 msgstr ""
18087 " zgrepi формальний_вираз шлях\n"
18088 "\n"
18089
18090 #. type: textblock
18091 #: ../fish/guestfish-actions.pod:5435 ../src/guestfs-actions.pod:8407
18092 msgid ""
18093 "This calls the external C<zgrep -i> program and returns the matching lines."
18094 msgstr ""
18095
18096 #. type: =head2
18097 #: ../fish/guestfish-commands.pod:1
18098 msgid "alloc"
18099 msgstr "alloc"
18100
18101 #. type: =head2
18102 #: ../fish/guestfish-commands.pod:3
18103 msgid "allocate"
18104 msgstr ""
18105
18106 #. type: verbatim
18107 #: ../fish/guestfish-commands.pod:5
18108 #, no-wrap
18109 msgid ""
18110 " alloc filename size\n"
18111 "\n"
18112 msgstr ""
18113
18114 #. type: textblock
18115 #: ../fish/guestfish-commands.pod:7
18116 msgid ""
18117 "This creates an empty (zeroed) file of the given size, and then adds so it "
18118 "can be further examined."
18119 msgstr ""
18120
18121 #. type: textblock
18122 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18123 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18124 msgstr ""
18125
18126 #. type: textblock
18127 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18128 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18129 msgstr ""
18130
18131 #. type: textblock
18132 #: ../fish/guestfish-commands.pod:14
18133 msgid ""
18134 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18135 "image, see L</PREPARED DISK IMAGES>."
18136 msgstr ""
18137
18138 #. type: =head2
18139 #: ../fish/guestfish-commands.pod:17
18140 msgid "copy-in"
18141 msgstr "copy-in"
18142
18143 #. type: verbatim
18144 #: ../fish/guestfish-commands.pod:19
18145 #, no-wrap
18146 msgid ""
18147 " copy-in local [local ...] /remotedir\n"
18148 "\n"
18149 msgstr ""
18150
18151 #. type: textblock
18152 #: ../fish/guestfish-commands.pod:21
18153 msgid ""
18154 "C<copy-in> copies local files or directories recursively into the disk "
18155 "image, placing them in the directory called C</remotedir> (which must "
18156 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18157 "other commands as necessary."
18158 msgstr ""
18159
18160 #. type: textblock
18161 #: ../fish/guestfish-commands.pod:26
18162 msgid ""
18163 "Multiple local files and directories can be specified, but the last "
18164 "parameter must always be a remote directory.  Wildcards cannot be used."
18165 msgstr ""
18166
18167 #. type: =head2
18168 #: ../fish/guestfish-commands.pod:30
18169 msgid "copy-out"
18170 msgstr "copy-out"
18171
18172 #. type: verbatim
18173 #: ../fish/guestfish-commands.pod:32
18174 #, no-wrap
18175 msgid ""
18176 " copy-out remote [remote ...] localdir\n"
18177 "\n"
18178 msgstr ""
18179
18180 #. type: textblock
18181 #: ../fish/guestfish-commands.pod:34
18182 msgid ""
18183 "C<copy-out> copies remote files or directories recursively out of the disk "
18184 "image, placing them on the host disk in a local directory called C<localdir> "
18185 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
18186 "download>, L</tar-out> and other commands as necessary."
18187 msgstr ""
18188
18189 #. type: textblock
18190 #: ../fish/guestfish-commands.pod:40
18191 msgid ""
18192 "Multiple remote files and directories can be specified, but the last "
18193 "parameter must always be a local directory.  To download to the current "
18194 "directory, use C<.> as in:"
18195 msgstr ""
18196
18197 #. type: verbatim
18198 #: ../fish/guestfish-commands.pod:44
18199 #, no-wrap
18200 msgid ""
18201 " copy-out /home .\n"
18202 "\n"
18203 msgstr ""
18204 " copy-out /home .\n"
18205 "\n"
18206
18207 #. type: textblock
18208 #: ../fish/guestfish-commands.pod:46
18209 msgid ""
18210 "Wildcards cannot be used in the ordinary command, but you can use them with "
18211 "the help of L</glob> like this:"
18212 msgstr ""
18213
18214 #. type: verbatim
18215 #: ../fish/guestfish-commands.pod:49
18216 #, no-wrap
18217 msgid ""
18218 " glob copy-out /home/* .\n"
18219 "\n"
18220 msgstr ""
18221 " glob copy-out /home/* .\n"
18222 "\n"
18223
18224 #. type: =head2
18225 #: ../fish/guestfish-commands.pod:51
18226 msgid "display"
18227 msgstr ""
18228
18229 #. type: verbatim
18230 #: ../fish/guestfish-commands.pod:53
18231 #, no-wrap
18232 msgid ""
18233 " display filename\n"
18234 "\n"
18235 msgstr ""
18236
18237 #. type: textblock
18238 #: ../fish/guestfish-commands.pod:55
18239 msgid ""
18240 "Use C<display> (a graphical display program) to display an image file.  It "
18241 "downloads the file, and runs C<display> on it."
18242 msgstr ""
18243
18244 #. type: textblock
18245 #: ../fish/guestfish-commands.pod:58
18246 msgid ""
18247 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18248 "environment variable.  For example to use the GNOME display program:"
18249 msgstr ""
18250
18251 #. type: verbatim
18252 #: ../fish/guestfish-commands.pod:61
18253 #, no-wrap
18254 msgid ""
18255 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18256 "\n"
18257 msgstr ""
18258
18259 #. type: textblock
18260 #: ../fish/guestfish-commands.pod:63
18261 msgid "See also L<display(1)>."
18262 msgstr "Див. також L<display(1)>."
18263
18264 #. type: =head2
18265 #: ../fish/guestfish-commands.pod:65
18266 msgid "echo"
18267 msgstr "echo"
18268
18269 #. type: verbatim
18270 #: ../fish/guestfish-commands.pod:67
18271 #, no-wrap
18272 msgid ""
18273 " echo [params ...]\n"
18274 "\n"
18275 msgstr ""
18276 " echo [параметри...]\n"
18277 "\n"
18278
18279 #. type: textblock
18280 #: ../fish/guestfish-commands.pod:69
18281 msgid "This echos the parameters to the terminal."
18282 msgstr ""
18283
18284 #. type: =head2
18285 #: ../fish/guestfish-commands.pod:71
18286 msgid "edit"
18287 msgstr "edit"
18288
18289 #. type: =head2
18290 #: ../fish/guestfish-commands.pod:73
18291 msgid "vi"
18292 msgstr "vi"
18293
18294 #. type: =head2
18295 #: ../fish/guestfish-commands.pod:75
18296 msgid "emacs"
18297 msgstr "emacs"
18298
18299 #. type: verbatim
18300 #: ../fish/guestfish-commands.pod:77
18301 #, no-wrap
18302 msgid ""
18303 " edit filename\n"
18304 "\n"
18305 msgstr ""
18306 " edit назва_файла\n"
18307 "\n"
18308
18309 #. type: textblock
18310 #: ../fish/guestfish-commands.pod:79
18311 msgid ""
18312 "This is used to edit a file.  It downloads the file, edits it locally using "
18313 "your editor, then uploads the result."
18314 msgstr ""
18315
18316 #. type: textblock
18317 #: ../fish/guestfish-commands.pod:82
18318 msgid ""
18319 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18320 "or C<emacs> you will get those corresponding editors."
18321 msgstr ""
18322
18323 #. type: =head2
18324 #: ../fish/guestfish-commands.pod:86
18325 msgid "glob"
18326 msgstr "glob"
18327
18328 #. type: verbatim
18329 #: ../fish/guestfish-commands.pod:88
18330 #, no-wrap
18331 msgid ""
18332 " glob command args...\n"
18333 "\n"
18334 msgstr ""
18335 " glob команда параметри...\n"
18336 "\n"
18337
18338 #. type: textblock
18339 #: ../fish/guestfish-commands.pod:90
18340 msgid ""
18341 "Expand wildcards in any paths in the args list, and run C<command> "
18342 "repeatedly on each matching path."
18343 msgstr ""
18344
18345 #. type: textblock
18346 #: ../fish/guestfish-commands.pod:93
18347 msgid "See L</WILDCARDS AND GLOBBING>."
18348 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18349
18350 #. type: =head2
18351 #: ../fish/guestfish-commands.pod:95
18352 msgid "hexedit"
18353 msgstr "hexedit"
18354
18355 #. type: verbatim
18356 #: ../fish/guestfish-commands.pod:97
18357 #, no-wrap
18358 msgid ""
18359 " hexedit <filename|device>\n"
18360 " hexedit <filename|device> <max>\n"
18361 " hexedit <filename|device> <start> <max>\n"
18362 "\n"
18363 msgstr ""
18364
18365 #. type: textblock
18366 #: ../fish/guestfish-commands.pod:101
18367 msgid ""
18368 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18369 "device."
18370 msgstr ""
18371
18372 #. type: textblock
18373 #: ../fish/guestfish-commands.pod:104
18374 msgid ""
18375 "This command works by downloading potentially the whole file or device, "
18376 "editing it locally, then uploading it.  If the file or device is large, you "
18377 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18378 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18379 "usual modifiers allowed such as C<1M> (1 megabyte)."
18380 msgstr ""
18381
18382 #. type: textblock
18383 #: ../fish/guestfish-commands.pod:111
18384 msgid "For example to edit the first few sectors of a disk you might do:"
18385 msgstr ""
18386
18387 #. type: verbatim
18388 #: ../fish/guestfish-commands.pod:114
18389 #, no-wrap
18390 msgid ""
18391 " hexedit /dev/sda 1M\n"
18392 "\n"
18393 msgstr ""
18394 " hexedit /dev/sda 1M\n"
18395 "\n"
18396
18397 #. type: textblock
18398 #: ../fish/guestfish-commands.pod:116
18399 msgid ""
18400 "which would allow you to edit anywhere within the first megabyte of the disk."
18401 msgstr ""
18402
18403 #. type: textblock
18404 #: ../fish/guestfish-commands.pod:119
18405 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18406 msgstr ""
18407
18408 #. type: verbatim
18409 #: ../fish/guestfish-commands.pod:121
18410 #, no-wrap
18411 msgid ""
18412 " hexedit /dev/sda1 0x400 0x400\n"
18413 "\n"
18414 msgstr ""
18415 " hexedit /dev/sda1 0x400 0x400\n"
18416 "\n"
18417
18418 #. type: textblock
18419 #: ../fish/guestfish-commands.pod:123
18420 msgid "(assuming the superblock is in the standard location)."
18421 msgstr ""
18422
18423 #. type: textblock
18424 #: ../fish/guestfish-commands.pod:125
18425 msgid ""
18426 "This command requires the external L<hexedit(1)> program.  You can specify "
18427 "another program to use by setting the C<HEXEDITOR> environment variable."
18428 msgstr ""
18429
18430 #. type: textblock
18431 #: ../fish/guestfish-commands.pod:129
18432 msgid "See also L</hexdump>."
18433 msgstr "Див. також L</hexdump>."
18434
18435 #. type: =head2
18436 #: ../fish/guestfish-commands.pod:131
18437 msgid "lcd"
18438 msgstr "lcd"
18439
18440 #. type: verbatim
18441 #: ../fish/guestfish-commands.pod:133
18442 #, no-wrap
18443 msgid ""
18444 " lcd directory\n"
18445 "\n"
18446 msgstr ""
18447
18448 #. type: textblock
18449 #: ../fish/guestfish-commands.pod:135
18450 msgid ""
18451 "Change the local directory, ie. the current directory of guestfish itself."
18452 msgstr ""
18453
18454 #. type: textblock
18455 #: ../fish/guestfish-commands.pod:138
18456 msgid "Note that C<!cd> won't do what you might expect."
18457 msgstr ""
18458
18459 #. type: =head2
18460 #: ../fish/guestfish-commands.pod:140
18461 msgid "man"
18462 msgstr "man"
18463
18464 #. type: =head2
18465 #: ../fish/guestfish-commands.pod:142
18466 msgid "manual"
18467 msgstr "підручник"
18468
18469 #. type: verbatim
18470 #: ../fish/guestfish-commands.pod:144
18471 #, no-wrap
18472 msgid ""
18473 "  man\n"
18474 "\n"
18475 msgstr ""
18476 "  man\n"
18477 "\n"
18478
18479 #. type: textblock
18480 #: ../fish/guestfish-commands.pod:146
18481 msgid "Opens the manual page for guestfish."
18482 msgstr ""
18483
18484 #. type: =head2
18485 #: ../fish/guestfish-commands.pod:148
18486 msgid "more"
18487 msgstr "more"
18488
18489 #. type: =head2
18490 #: ../fish/guestfish-commands.pod:150
18491 msgid "less"
18492 msgstr "less"
18493
18494 #. type: verbatim
18495 #: ../fish/guestfish-commands.pod:152
18496 #, no-wrap
18497 msgid ""
18498 " more filename\n"
18499 "\n"
18500 msgstr ""
18501
18502 #. type: verbatim
18503 #: ../fish/guestfish-commands.pod:154
18504 #, no-wrap
18505 msgid ""
18506 " less filename\n"
18507 "\n"
18508 msgstr ""
18509
18510 #. type: textblock
18511 #: ../fish/guestfish-commands.pod:156
18512 msgid "This is used to view a file."
18513 msgstr ""
18514
18515 #. type: textblock
18516 #: ../fish/guestfish-commands.pod:158
18517 msgid ""
18518 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18519 "C<less> you will get the C<less> command specifically."
18520 msgstr ""
18521
18522 #. type: =head2
18523 #: ../fish/guestfish-commands.pod:161
18524 msgid "reopen"
18525 msgstr "reopen"
18526
18527 #. type: verbatim
18528 #: ../fish/guestfish-commands.pod:163
18529 #, no-wrap
18530 msgid ""
18531 "  reopen\n"
18532 "\n"
18533 msgstr ""
18534
18535 #. type: textblock
18536 #: ../fish/guestfish-commands.pod:165
18537 msgid ""
18538 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18539 "normally, because the handle is closed properly when guestfish exits.  "
18540 "However this is occasionally useful for testing."
18541 msgstr ""
18542
18543 #. type: =head2
18544 #: ../fish/guestfish-commands.pod:169
18545 msgid "setenv"
18546 msgstr ""
18547
18548 #. type: verbatim
18549 #: ../fish/guestfish-commands.pod:171
18550 #, no-wrap
18551 msgid ""
18552 "  setenv VAR value\n"
18553 "\n"
18554 msgstr ""
18555
18556 #. type: textblock
18557 #: ../fish/guestfish-commands.pod:173
18558 msgid "Set the environment variable C<VAR> to the string C<value>."
18559 msgstr ""
18560
18561 #. type: textblock
18562 #: ../fish/guestfish-commands.pod:175
18563 msgid ""
18564 "To print the value of an environment variable use a shell command such as:"
18565 msgstr ""
18566
18567 #. type: verbatim
18568 #: ../fish/guestfish-commands.pod:178
18569 #, no-wrap
18570 msgid ""
18571 " !echo $VAR\n"
18572 "\n"
18573 msgstr ""
18574
18575 #. type: =head2
18576 #: ../fish/guestfish-commands.pod:180
18577 msgid "sparse"
18578 msgstr "sparse"
18579
18580 #. type: verbatim
18581 #: ../fish/guestfish-commands.pod:182
18582 #, no-wrap
18583 msgid ""
18584 " sparse filename size\n"
18585 "\n"
18586 msgstr ""
18587
18588 #. type: textblock
18589 #: ../fish/guestfish-commands.pod:184
18590 msgid ""
18591 "This creates an empty sparse file of the given size, and then adds so it can "
18592 "be further examined."
18593 msgstr ""
18594
18595 #. type: textblock
18596 #: ../fish/guestfish-commands.pod:187
18597 msgid ""
18598 "In all respects it works the same as the L</alloc> command, except that the "
18599 "image file is allocated sparsely, which means that disk blocks are not "
18600 "assigned to the file until they are needed.  Sparse disk files only use "
18601 "space when written to, but they are slower and there is a danger you could "
18602 "run out of real disk space during a write operation."
18603 msgstr ""
18604
18605 #. type: =head2
18606 #: ../fish/guestfish-commands.pod:197
18607 msgid "supported"
18608 msgstr "supported"
18609
18610 #. type: verbatim
18611 #: ../fish/guestfish-commands.pod:199
18612 #, no-wrap
18613 msgid ""
18614 " supported\n"
18615 "\n"
18616 msgstr ""
18617 " supported\n"
18618 "\n"
18619
18620 #. type: textblock
18621 #: ../fish/guestfish-commands.pod:201
18622 msgid ""
18623 "This command returns a list of the optional groups known to the daemon, and "
18624 "indicates which ones are supported by this build of the libguestfs appliance."
18625 msgstr ""
18626
18627 #. type: textblock
18628 #: ../fish/guestfish-commands.pod:205
18629 msgid "See also L<guestfs(3)/AVAILABILITY>."
18630 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
18631
18632 #. type: =head2
18633 #: ../fish/guestfish-commands.pod:207
18634 msgid "time"
18635 msgstr "time"
18636
18637 #. type: verbatim
18638 #: ../fish/guestfish-commands.pod:209
18639 #, no-wrap
18640 msgid ""
18641 " time command args...\n"
18642 "\n"
18643 msgstr ""
18644
18645 #. type: textblock
18646 #: ../fish/guestfish-commands.pod:211
18647 msgid ""
18648 "Run the command as usual, but print the elapsed time afterwards.  This can "
18649 "be useful for benchmarking operations."
18650 msgstr ""
18651
18652 #. type: =head2
18653 #: ../fish/guestfish-commands.pod:214
18654 msgid "unsetenv"
18655 msgstr ""
18656
18657 #. type: verbatim
18658 #: ../fish/guestfish-commands.pod:216
18659 #, no-wrap
18660 msgid ""
18661 "  unsetenv VAR\n"
18662 "\n"
18663 msgstr ""
18664
18665 #. type: textblock
18666 #: ../fish/guestfish-commands.pod:218
18667 msgid "Remove C<VAR> from the environment."
18668 msgstr ""
18669
18670 #. type: textblock
18671 #: ../fish/guestfish.pod:5
18672 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18673 msgstr ""
18674
18675 #. type: verbatim
18676 #: ../fish/guestfish.pod:9
18677 #, no-wrap
18678 msgid ""
18679 " guestfish [--options] [commands]\n"
18680 "\n"
18681 msgstr ""
18682
18683 #. type: verbatim
18684 #: ../fish/guestfish.pod:11
18685 #, no-wrap
18686 msgid ""
18687 " guestfish\n"
18688 "\n"
18689 msgstr ""
18690
18691 #. type: verbatim
18692 #: ../fish/guestfish.pod:13
18693 #, no-wrap
18694 msgid ""
18695 " guestfish [--ro|--rw] -a disk.img\n"
18696 "\n"
18697 msgstr ""
18698
18699 #. type: verbatim
18700 #: ../fish/guestfish.pod:15
18701 #, no-wrap
18702 msgid ""
18703 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18704 "\n"
18705 msgstr ""
18706
18707 #. type: verbatim
18708 #: ../fish/guestfish.pod:17
18709 #, no-wrap
18710 msgid ""
18711 " guestfish -d libvirt-domain\n"
18712 "\n"
18713 msgstr ""
18714
18715 #. type: verbatim
18716 #: ../fish/guestfish.pod:19
18717 #, no-wrap
18718 msgid ""
18719 " guestfish [--ro|--rw] -a disk.img -i\n"
18720 "\n"
18721 msgstr ""
18722
18723 #. type: verbatim
18724 #: ../fish/guestfish.pod:21
18725 #, no-wrap
18726 msgid ""
18727 " guestfish -d libvirt-domain -i\n"
18728 "\n"
18729 msgstr ""
18730
18731 #. type: textblock
18732 #: ../fish/guestfish.pod:25
18733 msgid ""
18734 "Using guestfish in read/write mode on live virtual machines can be "
18735 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18736 "option to use guestfish safely if the disk image or virtual machine might be "
18737 "live."
18738 msgstr ""
18739
18740 #. type: textblock
18741 #: ../fish/guestfish.pod:32
18742 msgid ""
18743 "Guestfish is a shell and command-line tool for examining and modifying "
18744 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18745 "functionality of the guestfs API, see L<guestfs(3)>."
18746 msgstr ""
18747
18748 #. type: textblock
18749 #: ../fish/guestfish.pod:36
18750 msgid ""
18751 "Guestfish gives you structured access to the libguestfs API, from shell "
18752 "scripts or the command line or interactively.  If you want to rescue a "
18753 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18754 "command."
18755 msgstr ""
18756
18757 #. type: =head2
18758 #: ../fish/guestfish.pod:43
18759 msgid "As an interactive shell"
18760 msgstr ""
18761
18762 #. type: verbatim
18763 #: ../fish/guestfish.pod:45
18764 #, no-wrap
18765 msgid ""
18766 " $ guestfish\n"
18767 " \n"
18768 msgstr ""
18769
18770 #. type: verbatim
18771 #: ../fish/guestfish.pod:47
18772 #, no-wrap
18773 msgid ""
18774 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18775 " editing virtual machine filesystems.\n"
18776 " \n"
18777 msgstr ""
18778
18779 #. type: verbatim
18780 #: ../fish/guestfish.pod:50
18781 #, no-wrap
18782 msgid ""
18783 " Type: 'help' for a list of commands\n"
18784 "       'man' to read the manual\n"
18785 "       'quit' to quit the shell\n"
18786 " \n"
18787 msgstr ""
18788
18789 #. type: verbatim
18790 #: ../fish/guestfish.pod:54
18791 #, no-wrap
18792 msgid ""
18793 " ><fs> add-ro disk.img\n"
18794 " ><fs> run\n"
18795 " ><fs> list-filesystems\n"
18796 " /dev/sda1: ext4\n"
18797 " /dev/vg_guest/lv_root: ext4\n"
18798 " /dev/vg_guest/lv_swap: swap\n"
18799 " ><fs> mount /dev/vg_guest/lv_root /\n"
18800 " ><fs> cat /etc/fstab\n"
18801 " # /etc/fstab\n"
18802 " # Created by anaconda\n"
18803 " [...]\n"
18804 " ><fs> exit\n"
18805 "\n"
18806 msgstr ""
18807
18808 #. type: =head2
18809 #: ../fish/guestfish.pod:67
18810 msgid "From shell scripts"
18811 msgstr ""
18812
18813 #. type: textblock
18814 #: ../fish/guestfish.pod:69
18815 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18816 msgstr ""
18817
18818 #. type: verbatim
18819 #: ../fish/guestfish.pod:71
18820 #, no-wrap
18821 msgid ""
18822 " guestfish <<_EOF_\n"
18823 " add disk.img\n"
18824 " run\n"
18825 " mount /dev/vg_guest/lv_root /\n"
18826 " write /etc/motd \"Welcome, new users\"\n"
18827 " _EOF_\n"
18828 "\n"
18829 msgstr ""
18830
18831 #. type: textblock
18832 #: ../fish/guestfish.pod:78
18833 msgid "List the LVM logical volumes in a disk image:"
18834 msgstr ""
18835
18836 #. type: verbatim
18837 #: ../fish/guestfish.pod:80
18838 #, no-wrap
18839 msgid ""
18840 " guestfish -a disk.img --ro <<_EOF_\n"
18841 " run\n"
18842 " lvs\n"
18843 " _EOF_\n"
18844 "\n"
18845 msgstr ""
18846
18847 #. type: textblock
18848 #: ../fish/guestfish.pod:85
18849 msgid "List all the filesystems in a disk image:"
18850 msgstr ""
18851
18852 #. type: verbatim
18853 #: ../fish/guestfish.pod:87
18854 #, no-wrap
18855 msgid ""
18856 " guestfish -a disk.img --ro <<_EOF_\n"
18857 " run\n"
18858 " list-filesystems\n"
18859 " _EOF_\n"
18860 "\n"
18861 msgstr ""
18862
18863 #. type: =head2
18864 #: ../fish/guestfish.pod:92
18865 msgid "On one command line"
18866 msgstr ""
18867
18868 #. type: textblock
18869 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18870 msgid "Update C</etc/resolv.conf> in a guest:"
18871 msgstr ""
18872
18873 #. type: verbatim
18874 #: ../fish/guestfish.pod:96
18875 #, no-wrap
18876 msgid ""
18877 " guestfish \\\n"
18878 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18879 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18880 "\n"
18881 msgstr ""
18882
18883 #. type: textblock
18884 #: ../fish/guestfish.pod:100
18885 msgid "Edit C</boot/grub/grub.conf> interactively:"
18886 msgstr ""
18887
18888 #. type: verbatim
18889 #: ../fish/guestfish.pod:102
18890 #, no-wrap
18891 msgid ""
18892 " guestfish --rw --add disk.img \\\n"
18893 "   --mount /dev/vg_guest/lv_root \\\n"
18894 "   --mount /dev/sda1:/boot \\\n"
18895 "   edit /boot/grub/grub.conf\n"
18896 "\n"
18897 msgstr ""
18898
18899 #. type: =head2
18900 #: ../fish/guestfish.pod:107
18901 msgid "Mount disks automatically"
18902 msgstr ""
18903
18904 #. type: textblock
18905 #: ../fish/guestfish.pod:109
18906 msgid ""
18907 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18908 msgstr ""
18909
18910 #. type: verbatim
18911 #: ../fish/guestfish.pod:112
18912 #, no-wrap
18913 msgid ""
18914 " guestfish --ro -a disk.img -i cat /etc/group\n"
18915 "\n"
18916 msgstr ""
18917
18918 #. type: verbatim
18919 #: ../fish/guestfish.pod:114
18920 #, no-wrap
18921 msgid ""
18922 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18923 "\n"
18924 msgstr ""
18925
18926 #. type: textblock
18927 #: ../fish/guestfish.pod:116
18928 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18929 msgstr ""
18930
18931 #. type: verbatim
18932 #: ../fish/guestfish.pod:118
18933 #, no-wrap
18934 msgid ""
18935 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18936 "\n"
18937 msgstr ""
18938
18939 #. type: =head2
18940 #: ../fish/guestfish.pod:120
18941 msgid "As a script interpreter"
18942 msgstr ""
18943
18944 #. type: textblock
18945 #: ../fish/guestfish.pod:122
18946 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18947 msgstr ""
18948
18949 #. type: verbatim
18950 #: ../fish/guestfish.pod:124
18951 #, no-wrap
18952 msgid ""
18953 " #!/usr/bin/guestfish -f\n"
18954 " sparse test1.img 100M\n"
18955 " run\n"
18956 " part-disk /dev/sda mbr\n"
18957 " mkfs ext2 /dev/sda1\n"
18958 "\n"
18959 msgstr ""
18960
18961 #. type: =head2
18962 #: ../fish/guestfish.pod:130
18963 msgid "Start with a prepared disk"
18964 msgstr ""
18965
18966 #. type: textblock
18967 #: ../fish/guestfish.pod:132
18968 msgid ""
18969 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18970 "single ext2-formatted partition:"
18971 msgstr ""
18972
18973 #. type: verbatim
18974 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18975 #, no-wrap
18976 msgid ""
18977 " guestfish -N fs\n"
18978 "\n"
18979 msgstr ""
18980
18981 #. type: textblock
18982 #: ../fish/guestfish.pod:137
18983 msgid "To list what is available do:"
18984 msgstr ""
18985
18986 #. type: verbatim
18987 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18988 #, no-wrap
18989 msgid ""
18990 " guestfish -N help | less\n"
18991 "\n"
18992 msgstr ""
18993
18994 #. type: =head2
18995 #: ../fish/guestfish.pod:141
18996 msgid "Remote control"
18997 msgstr "Дистанційне керування"
18998
18999 #. type: verbatim
19000 #: ../fish/guestfish.pod:143
19001 #, no-wrap
19002 msgid ""
19003 " eval \"`guestfish --listen`\"\n"
19004 " guestfish --remote add-ro disk.img\n"
19005 " guestfish --remote run\n"
19006 " guestfish --remote lvs\n"
19007 "\n"
19008 msgstr ""
19009 " eval \"`guestfish --listen`\"\n"
19010 " guestfish --remote add-ro disk.img\n"
19011 " guestfish --remote run\n"
19012 " guestfish --remote lvs\n"
19013 "\n"
19014
19015 #. type: textblock
19016 #: ../fish/guestfish.pod:154
19017 msgid "Displays general help on options."
19018 msgstr ""
19019
19020 #. type: =item
19021 #: ../fish/guestfish.pod:158
19022 msgid "B<--cmd-help>"
19023 msgstr "B<--cmd-help>"
19024
19025 #. type: textblock
19026 #: ../fish/guestfish.pod:160
19027 msgid "Lists all available guestfish commands."
19028 msgstr ""
19029
19030 #. type: =item
19031 #: ../fish/guestfish.pod:162
19032 msgid "B<-h cmd>"
19033 msgstr "B<-h команда>"
19034
19035 #. type: =item
19036 #: ../fish/guestfish.pod:164
19037 msgid "B<--cmd-help cmd>"
19038 msgstr "B<--cmd-help команда>"
19039
19040 #. type: textblock
19041 #: ../fish/guestfish.pod:166
19042 msgid "Displays detailed help on a single command C<cmd>."
19043 msgstr ""
19044
19045 #. type: =item
19046 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
19047 msgid "B<-a image>"
19048 msgstr "B<-a образ>"
19049
19050 #. type: =item
19051 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
19052 msgid "B<--add image>"
19053 msgstr "B<--add образ>"
19054
19055 #. type: textblock
19056 #: ../fish/guestfish.pod:172
19057 msgid "Add a block device or virtual machine image to the shell."
19058 msgstr ""
19059
19060 #. type: textblock
19061 #: ../fish/guestfish.pod:177
19062 msgid ""
19063 "Using this flag is mostly equivalent to using the C<add> command, with "
19064 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
19065 "the I<--format=...> flag was given."
19066 msgstr ""
19067
19068 #. type: textblock
19069 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
19070 msgid ""
19071 "When used in conjunction with the I<-d> option, this specifies the libvirt "
19072 "URI to use.  The default is to use the default libvirt connection."
19073 msgstr ""
19074
19075 #. type: =item
19076 #: ../fish/guestfish.pod:189
19077 msgid "B<--csh>"
19078 msgstr "B<--csh>"
19079
19080 #. type: textblock
19081 #: ../fish/guestfish.pod:191
19082 msgid ""
19083 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19084 "section L</REMOTE CONTROL AND CSH> below."
19085 msgstr ""
19086
19087 #. type: =item
19088 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19089 msgid "B<-d libvirt-domain>"
19090 msgstr "B<-d домен-libvirt>"
19091
19092 #. type: =item
19093 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19094 msgid "B<--domain libvirt-domain>"
19095 msgstr "B<--domain домен-libvirt>"
19096
19097 #. type: textblock
19098 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19099 msgid ""
19100 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19101 "used, then any libvirt domain can be used.  However in write mode, only "
19102 "libvirt domains which are shut down can be named here."
19103 msgstr ""
19104
19105 #. type: textblock
19106 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19107 msgid "Domain UUIDs can be used instead of names."
19108 msgstr ""
19109
19110 #. type: textblock
19111 #: ../fish/guestfish.pod:204
19112 msgid ""
19113 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19114 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19115 "if the I<--format:...> flag was given."
19116 msgstr ""
19117
19118 #. type: =item
19119 #: ../fish/guestfish.pod:208
19120 msgid "B<-D>"
19121 msgstr "B<-D>"
19122
19123 #. type: =item
19124 #: ../fish/guestfish.pod:210
19125 msgid "B<--no-dest-paths>"
19126 msgstr "B<--no-dest-paths>"
19127
19128 #. type: textblock
19129 #: ../fish/guestfish.pod:212
19130 msgid ""
19131 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19132 "to hit the tab key to complete paths on the guest filesystem, but this "
19133 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19134 "allow this feature to be disabled."
19135 msgstr ""
19136
19137 #. type: textblock
19138 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19139 msgid ""
19140 "When prompting for keys and passphrases, guestfish normally turns echoing "
19141 "off so you cannot see what you are typing.  If you are not worried about "
19142 "Tempest attacks and there is no one else in the room you can specify this "
19143 "flag to see what you are typing."
19144 msgstr ""
19145
19146 #. type: =item
19147 #: ../fish/guestfish.pod:224
19148 msgid "B<-f file>"
19149 msgstr "B<-f файл>"
19150
19151 #. type: =item
19152 #: ../fish/guestfish.pod:226
19153 msgid "B<--file file>"
19154 msgstr "B<--file файл>"
19155
19156 #. type: textblock
19157 #: ../fish/guestfish.pod:228
19158 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19159 msgstr ""
19160
19161 #. type: verbatim
19162 #: ../fish/guestfish.pod:231
19163 #, no-wrap
19164 msgid ""
19165 " #!/usr/bin/guestfish -f\n"
19166 "\n"
19167 msgstr ""
19168 " #!/usr/bin/guestfish -f\n"
19169 "\n"
19170
19171 #. type: verbatim
19172 #: ../fish/guestfish.pod:244
19173 #, no-wrap
19174 msgid ""
19175 " guestfish --format=raw -a disk.img\n"
19176 "\n"
19177 msgstr ""
19178 " guestfish --format=raw -a disk.img\n"
19179 "\n"
19180
19181 #. type: verbatim
19182 #: ../fish/guestfish.pod:248
19183 #, no-wrap
19184 msgid ""
19185 " guestfish --format=raw -a disk.img --format -a another.img\n"
19186 "\n"
19187 msgstr ""
19188 " guestfish --format=raw -a disk.img --format -a another.img\n"
19189 "\n"
19190
19191 #. type: textblock
19192 #: ../fish/guestfish.pod:253
19193 msgid ""
19194 "If you have untrusted raw-format guest disk images, you should use this "
19195 "option to specify the disk format.  This avoids a possible security problem "
19196 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19197 msgstr ""
19198
19199 #. type: =item
19200 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19201 msgid "B<--inspector>"
19202 msgstr "B<--inspector>"
19203
19204 #. type: textblock
19205 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19206 msgid ""
19207 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19208 "system and mount filesystems as they would be mounted on the real virtual "
19209 "machine."
19210 msgstr ""
19211
19212 #. type: textblock
19213 #: ../fish/guestfish.pod:266
19214 msgid "Typical usage is either:"
19215 msgstr ""
19216
19217 #. type: verbatim
19218 #: ../fish/guestfish.pod:268
19219 #, no-wrap
19220 msgid ""
19221 " guestfish -d myguest -i\n"
19222 "\n"
19223 msgstr ""
19224 " guestfish -d myguest -i\n"
19225 "\n"
19226
19227 #. type: textblock
19228 #: ../fish/guestfish.pod:270
19229 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19230 msgstr ""
19231
19232 #. type: verbatim
19233 #: ../fish/guestfish.pod:272
19234 #, no-wrap
19235 msgid ""
19236 " guestfish --ro -d myguest -i\n"
19237 "\n"
19238 msgstr ""
19239 " guestfish --ro -d myguest -i\n"
19240 "\n"
19241
19242 #. type: textblock
19243 #: ../fish/guestfish.pod:274
19244 msgid "(for active domains, readonly), or specify the block device directly:"
19245 msgstr ""
19246
19247 #. type: verbatim
19248 #: ../fish/guestfish.pod:276
19249 #, no-wrap
19250 msgid ""
19251 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19252 "\n"
19253 msgstr ""
19254 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19255 "\n"
19256
19257 #. type: textblock
19258 #: ../fish/guestfish.pod:278
19259 msgid ""
19260 "Note that the command line syntax changed slightly over older versions of "
19261 "guestfish.  You can still use the old syntax:"
19262 msgstr ""
19263
19264 #. type: verbatim
19265 #: ../fish/guestfish.pod:281
19266 #, no-wrap
19267 msgid ""
19268 " guestfish [--ro] -i disk.img\n"
19269 "\n"
19270 msgstr ""
19271 " guestfish [--ro] -i disk.img\n"
19272 "\n"
19273
19274 #. type: verbatim
19275 #: ../fish/guestfish.pod:283
19276 #, no-wrap
19277 msgid ""
19278 " guestfish [--ro] -i libvirt-domain\n"
19279 "\n"
19280 msgstr ""
19281
19282 #. type: textblock
19283 #: ../fish/guestfish.pod:285
19284 msgid ""
19285 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19286 "then using other commands to mount the filesystems that were found."
19287 msgstr ""
19288
19289 #. type: =item
19290 #: ../fish/guestfish.pod:294
19291 msgid "B<--listen>"
19292 msgstr "B<--listen>"
19293
19294 #. type: textblock
19295 #: ../fish/guestfish.pod:296
19296 msgid ""
19297 "Fork into the background and listen for remote commands.  See section L</"
19298 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19299 msgstr ""
19300
19301 #. type: =item
19302 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19303 msgid "B<--live>"
19304 msgstr "B<--live>"
19305
19306 #. type: textblock
19307 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19308 msgid ""
19309 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19310 "ATTACHING TO RUNNING DAEMONS>)."
19311 msgstr ""
19312
19313 #. type: =item
19314 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19315 msgid "B<-m dev[:mountpoint[:options]]>"
19316 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
19317
19318 #. type: =item
19319 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19320 msgid "B<--mount dev[:mountpoint[:options]]>"
19321 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
19322
19323 #. type: textblock
19324 #: ../fish/guestfish.pod:308
19325 msgid "Mount the named partition or logical volume on the given mountpoint."
19326 msgstr ""
19327
19328 #. type: textblock
19329 #: ../fish/guestfish.pod:310
19330 msgid "If the mountpoint is omitted, it defaults to C</>."
19331 msgstr ""
19332
19333 #. type: textblock
19334 #: ../fish/guestfish.pod:312
19335 msgid "You have to mount something on C</> before most commands will work."
19336 msgstr ""
19337
19338 #. type: textblock
19339 #: ../fish/guestfish.pod:314
19340 msgid ""
19341 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19342 "launched."
19343 msgstr ""
19344
19345 #. type: textblock
19346 #: ../fish/guestfish.pod:317
19347 msgid ""
19348 "If you don't know what filesystems a disk image contains, you can either run "
19349 "guestfish without this option, then list the partitions, filesystems and LVs "
19350 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19351 "commands), or you can use the L<virt-filesystems(1)> program."
19352 msgstr ""
19353
19354 #. type: textblock
19355 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19356 msgid ""
19357 "The third (and rarely used) part of the mount parameter is the list of mount "
19358 "options used to mount the underlying filesystem.  If this is not given, then "
19359 "the mount options are either the empty string or C<ro> (the latter if the "
19360 "I<--ro> flag is used).  By specifying the mount options, you override this "
19361 "default choice.  Probably the only time you would use this is to enable ACLs "
19362 "and/or extended attributes if the filesystem can support them:"
19363 msgstr ""
19364
19365 #. type: verbatim
19366 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19367 #, no-wrap
19368 msgid ""
19369 " -m /dev/sda1:/:acl,user_xattr\n"
19370 "\n"
19371 msgstr ""
19372
19373 #. type: textblock
19374 #: ../fish/guestfish.pod:333
19375 msgid "Using this flag is equivalent to using the C<mount-options> command."
19376 msgstr ""
19377
19378 #. type: =item
19379 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19380 #: ../resize/virt-resize.pod:435
19381 msgid "B<-n>"
19382 msgstr "B<-n>"
19383
19384 #. type: =item
19385 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19386 msgid "B<--no-sync>"
19387 msgstr "B<--no-sync>"
19388
19389 #. type: textblock
19390 #: ../fish/guestfish.pod:339
19391 msgid ""
19392 "Disable autosync.  This is enabled by default.  See the discussion of "
19393 "autosync in the L<guestfs(3)> manpage."
19394 msgstr ""
19395
19396 #. type: =item
19397 #: ../fish/guestfish.pod:342
19398 msgid "B<-N type>"
19399 msgstr "B<-N тип>"
19400
19401 #. type: =item
19402 #: ../fish/guestfish.pod:344
19403 msgid "B<--new type>"
19404 msgstr "B<--new тип>"
19405
19406 #. type: =item
19407 #: ../fish/guestfish.pod:346
19408 msgid "B<-N help>"
19409 msgstr "B<-N help>"
19410
19411 #. type: textblock
19412 #: ../fish/guestfish.pod:348
19413 msgid ""
19414 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19415 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19416 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19417 "IMAGES> below."
19418 msgstr ""
19419
19420 #. type: =item
19421 #: ../fish/guestfish.pod:353
19422 msgid "B<--progress-bars>"
19423 msgstr "B<--progress-bars>"
19424
19425 #. type: textblock
19426 #: ../fish/guestfish.pod:355
19427 msgid "Enable progress bars, even when guestfish is used non-interactively."
19428 msgstr ""
19429
19430 #. type: textblock
19431 #: ../fish/guestfish.pod:357
19432 msgid ""
19433 "Progress bars are enabled by default when guestfish is used as an "
19434 "interactive shell."
19435 msgstr ""
19436
19437 #. type: =item
19438 #: ../fish/guestfish.pod:360
19439 msgid "B<--no-progress-bars>"
19440 msgstr "B<--no-progress-bars>"
19441
19442 #. type: textblock
19443 #: ../fish/guestfish.pod:362
19444 msgid "Disable progress bars."
19445 msgstr ""
19446
19447 #. type: =item
19448 #: ../fish/guestfish.pod:364
19449 msgid "B<--remote[=pid]>"
19450 msgstr "B<--remote[=pid]>"
19451
19452 #. type: textblock
19453 #: ../fish/guestfish.pod:366
19454 msgid ""
19455 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19456 "CONTROL GUESTFISH OVER A SOCKET> below."
19457 msgstr ""
19458
19459 #. type: =item
19460 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19461 #: ../rescue/virt-rescue.pod:161
19462 msgid "B<-r>"
19463 msgstr "B<-r>"
19464
19465 #. type: =item
19466 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19467 #: ../rescue/virt-rescue.pod:163
19468 msgid "B<--ro>"
19469 msgstr "B<--ro>"
19470
19471 #. type: textblock
19472 #: ../fish/guestfish.pod:373
19473 msgid ""
19474 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19475 "mounts are done read-only."
19476 msgstr ""
19477
19478 #. type: textblock
19479 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19480 msgid ""
19481 "The option must always be used if the disk image or virtual machine might be "
19482 "running, and is generally recommended in cases where you don't need write "
19483 "access to the disk."
19484 msgstr ""
19485
19486 #. type: textblock
19487 #: ../fish/guestfish.pod:380
19488 msgid ""
19489 "Note that prepared disk images created with I<-N> are not affected by this "
19490 "option.  Also commands like C<add> are not affected - you have to specify "
19491 "the C<readonly:true> option explicitly if you need it."
19492 msgstr ""
19493
19494 #. type: textblock
19495 #: ../fish/guestfish.pod:384
19496 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19497 msgstr ""
19498
19499 #. type: =item
19500 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19501 #: ../rescue/virt-rescue.pod:173
19502 msgid "B<--selinux>"
19503 msgstr "B<--selinux>"
19504
19505 #. type: textblock
19506 #: ../fish/guestfish.pod:388
19507 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19508 msgstr ""
19509
19510 #. type: textblock
19511 #: ../fish/guestfish.pod:394
19512 msgid ""
19513 "Enable very verbose messages.  This is particularly useful if you find a bug."
19514 msgstr ""
19515
19516 #. type: textblock
19517 #: ../fish/guestfish.pod:401
19518 msgid "Display the guestfish / libguestfs version number and exit."
19519 msgstr ""
19520
19521 #. type: =item
19522 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19523 #: ../rescue/virt-rescue.pod:194
19524 msgid "B<-w>"
19525 msgstr "B<-w>"
19526
19527 #. type: =item
19528 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19529 #: ../rescue/virt-rescue.pod:196
19530 msgid "B<--rw>"
19531 msgstr "B<--rw>"
19532
19533 #. type: textblock
19534 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19535 msgid ""
19536 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19537 "mounts are done read-write."
19538 msgstr ""
19539
19540 #. type: textblock
19541 #: ../fish/guestfish.pod:410
19542 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19543 msgstr ""
19544
19545 #. type: textblock
19546 #: ../fish/guestfish.pod:414
19547 msgid "Echo each command before executing it."
19548 msgstr ""
19549
19550 #. type: =head1
19551 #: ../fish/guestfish.pod:418
19552 msgid "COMMANDS ON COMMAND LINE"
19553 msgstr ""
19554
19555 #. type: textblock
19556 #: ../fish/guestfish.pod:420
19557 msgid ""
19558 "Any additional (non-option) arguments are treated as commands to execute."
19559 msgstr ""
19560
19561 #. type: textblock
19562 #: ../fish/guestfish.pod:423
19563 msgid ""
19564 "Commands to execute should be separated by a colon (C<:>), where the colon "
19565 "is a separate parameter.  Thus:"
19566 msgstr ""
19567
19568 #. type: verbatim
19569 #: ../fish/guestfish.pod:426
19570 #, no-wrap
19571 msgid ""
19572 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19573 "\n"
19574 msgstr ""
19575
19576 #. type: textblock
19577 #: ../fish/guestfish.pod:428
19578 msgid ""
19579 "If there are no additional arguments, then we enter a shell, either an "
19580 "interactive shell with a prompt (if the input is a terminal) or a non-"
19581 "interactive shell."
19582 msgstr ""
19583
19584 #. type: textblock
19585 #: ../fish/guestfish.pod:432
19586 msgid ""
19587 "In either command line mode or non-interactive shell, the first command that "
19588 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19589 "prompt) if a command fails, you can continue to enter commands."
19590 msgstr ""
19591
19592 #. type: =head1
19593 #: ../fish/guestfish.pod:437
19594 msgid "USING launch (OR run)"
19595 msgstr ""
19596
19597 #. type: textblock
19598 #: ../fish/guestfish.pod:439
19599 msgid ""
19600 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19601 "then launch it, then mount any disks you need, and finally issue actions/"
19602 "commands.  So the general order of the day is:"
19603 msgstr ""
19604
19605 #. type: textblock
19606 #: ../fish/guestfish.pod:447
19607 msgid "add or -a/--add"
19608 msgstr ""
19609
19610 #. type: textblock
19611 #: ../fish/guestfish.pod:451
19612 msgid "launch (aka run)"
19613 msgstr ""
19614
19615 #. type: textblock
19616 #: ../fish/guestfish.pod:455
19617 msgid "mount or -m/--mount"
19618 msgstr ""
19619
19620 #. type: textblock
19621 #: ../fish/guestfish.pod:459
19622 msgid "any other commands"
19623 msgstr ""
19624
19625 #. type: textblock
19626 #: ../fish/guestfish.pod:463
19627 msgid ""
19628 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19629 "guest before mounting or performing any other commands."
19630 msgstr ""
19631
19632 #. type: textblock
19633 #: ../fish/guestfish.pod:466
19634 msgid ""
19635 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19636 "I<--new> options were given then C<run> is done automatically, simply "
19637 "because guestfish can't perform the action you asked for without doing this."
19638 msgstr ""
19639
19640 #. type: =head1
19641 #: ../fish/guestfish.pod:471
19642 msgid "OPENING DISKS FOR READ AND WRITE"
19643 msgstr ""
19644
19645 #. type: textblock
19646 #: ../fish/guestfish.pod:473
19647 msgid ""
19648 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19649 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19650 "I<-i> and I<-m> open disk images read-only or for writing."
19651 msgstr ""
19652
19653 #. type: textblock
19654 #: ../fish/guestfish.pod:478
19655 msgid ""
19656 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19657 "opening disk images supplied on the command line for write.  To open a disk "
19658 "image read-only you have to do I<-a image --ro>."
19659 msgstr ""
19660
19661 #. type: textblock
19662 #: ../fish/guestfish.pod:482
19663 msgid ""
19664 "This matters: If you accidentally open a live VM disk image writable then "
19665 "you will cause irreversible disk corruption."
19666 msgstr ""
19667
19668 #. type: textblock
19669 #: ../fish/guestfish.pod:485
19670 msgid ""
19671 "In a future libguestfs we intend to change the default the other way.  Disk "
19672 "images will be opened read-only.  You will have to either specify "
19673 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19674 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19675 "access for disk images specified by those other command line options."
19676 msgstr ""
19677
19678 #. type: textblock
19679 #: ../fish/guestfish.pod:492
19680 msgid ""
19681 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19682 "which does nothing (it is already the default).  However it is highly "
19683 "recommended that you use this option to indicate that you need write access, "
19684 "and prepare your scripts for the day when this option will be required for "
19685 "write access."
19686 msgstr ""
19687
19688 #. type: textblock
19689 #: ../fish/guestfish.pod:498
19690 msgid ""
19691 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19692 "other libguestfs program apart from guestfish and guestmount."
19693 msgstr ""
19694
19695 #. type: =head1
19696 #: ../fish/guestfish.pod:501
19697 msgid "QUOTING"
19698 msgstr ""
19699
19700 #. type: textblock
19701 #: ../fish/guestfish.pod:503
19702 msgid ""
19703 "You can quote ordinary parameters using either single or double quotes.  For "
19704 "example:"
19705 msgstr ""
19706
19707 #. type: verbatim
19708 #: ../fish/guestfish.pod:506
19709 #, no-wrap
19710 msgid ""
19711 " add \"file with a space.img\"\n"
19712 "\n"
19713 msgstr ""
19714
19715 #. type: verbatim
19716 #: ../fish/guestfish.pod:508
19717 #, no-wrap
19718 msgid ""
19719 " rm '/file name'\n"
19720 "\n"
19721 msgstr ""
19722
19723 #. type: verbatim
19724 #: ../fish/guestfish.pod:510
19725 #, no-wrap
19726 msgid ""
19727 " rm '/\"'\n"
19728 "\n"
19729 msgstr ""
19730
19731 #. type: textblock
19732 #: ../fish/guestfish.pod:512
19733 msgid ""
19734 "A few commands require a list of strings to be passed.  For these, use a "
19735 "whitespace-separated list, enclosed in quotes.  Strings containing "
19736 "whitespace to be passed through must be enclosed in single quotes.  A "
19737 "literal single quote must be escaped with a backslash."
19738 msgstr ""
19739
19740 #. type: verbatim
19741 #: ../fish/guestfish.pod:517
19742 #, no-wrap
19743 msgid ""
19744 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19745 " command \"/bin/echo 'foo      bar'\"\n"
19746 " command \"/bin/echo \\'foo\\'\"\n"
19747 "\n"
19748 msgstr ""
19749
19750 #. type: =head2
19751 #: ../fish/guestfish.pod:521
19752 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19753 msgstr ""
19754
19755 #. type: textblock
19756 #: ../fish/guestfish.pod:523
19757 msgid ""
19758 "In double-quoted arguments (only) use backslash to insert special characters:"
19759 msgstr ""
19760
19761 #. type: =item
19762 #: ../fish/guestfish.pod:528
19763 msgid "C<\\a>"
19764 msgstr "C<\\a>"
19765
19766 #. type: textblock
19767 #: ../fish/guestfish.pod:530
19768 msgid "Alert (bell) character."
19769 msgstr "Символ гудка (дзвінка)."
19770
19771 #. type: =item
19772 #: ../fish/guestfish.pod:532
19773 msgid "C<\\b>"
19774 msgstr "C<\\b>"
19775
19776 #. type: textblock
19777 #: ../fish/guestfish.pod:534
19778 msgid "Backspace character."
19779 msgstr ""
19780
19781 #. type: =item
19782 #: ../fish/guestfish.pod:536
19783 msgid "C<\\f>"
19784 msgstr "C<\\f>"
19785
19786 #. type: textblock
19787 #: ../fish/guestfish.pod:538
19788 msgid "Form feed character."
19789 msgstr ""
19790
19791 #. type: =item
19792 #: ../fish/guestfish.pod:540
19793 msgid "C<\\n>"
19794 msgstr "C<\\n>"
19795
19796 #. type: textblock
19797 #: ../fish/guestfish.pod:542
19798 msgid "Newline character."
19799 msgstr ""
19800
19801 #. type: =item
19802 #: ../fish/guestfish.pod:544
19803 msgid "C<\\r>"
19804 msgstr "C<\\r>"
19805
19806 #. type: textblock
19807 #: ../fish/guestfish.pod:546
19808 msgid "Carriage return character."
19809 msgstr "Символ повернення каретки."
19810
19811 #. type: =item
19812 #: ../fish/guestfish.pod:548
19813 msgid "C<\\t>"
19814 msgstr "C<\\t>"
19815
19816 #. type: textblock
19817 #: ../fish/guestfish.pod:550
19818 msgid "Horizontal tab character."
19819 msgstr "Символ горизонтальної табуляції"
19820
19821 #. type: =item
19822 #: ../fish/guestfish.pod:552
19823 msgid "C<\\v>"
19824 msgstr "C<\\v>"
19825
19826 #. type: textblock
19827 #: ../fish/guestfish.pod:554
19828 msgid "Vertical tab character."
19829 msgstr "Символ вертикальної табуляції."
19830
19831 #. type: =item
19832 #: ../fish/guestfish.pod:556
19833 msgid "C<\\\">"
19834 msgstr "C<\\\">"
19835
19836 #. type: textblock
19837 #: ../fish/guestfish.pod:558
19838 msgid "A literal double quote character."
19839 msgstr ""
19840
19841 #. type: =item
19842 #: ../fish/guestfish.pod:560
19843 msgid "C<\\ooo>"
19844 msgstr "C<\\ooo>"
19845
19846 #. type: textblock
19847 #: ../fish/guestfish.pod:562
19848 msgid ""
19849 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19850 "(unlike C)."
19851 msgstr ""
19852
19853 #. type: =item
19854 #: ../fish/guestfish.pod:565
19855 msgid "C<\\xhh>"
19856 msgstr "C<\\xhh>"
19857
19858 #. type: textblock
19859 #: ../fish/guestfish.pod:567
19860 msgid ""
19861 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19862 msgstr ""
19863
19864 #. type: textblock
19865 #: ../fish/guestfish.pod:570
19866 msgid ""
19867 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19868 "strings."
19869 msgstr ""
19870
19871 #. type: =item
19872 #: ../fish/guestfish.pod:573
19873 msgid "C<\\\\>"
19874 msgstr "C<\\\\>"
19875
19876 #. type: textblock
19877 #: ../fish/guestfish.pod:575
19878 msgid "A literal backslash character."
19879 msgstr ""
19880
19881 #. type: =head1
19882 #: ../fish/guestfish.pod:579
19883 msgid "OPTIONAL ARGUMENTS"
19884 msgstr ""
19885
19886 #. type: textblock
19887 #: ../fish/guestfish.pod:581
19888 msgid ""
19889 "Some commands take optional arguments.  These arguments appear in this "
19890 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19891 msgstr ""
19892
19893 #. type: verbatim
19894 #: ../fish/guestfish.pod:585
19895 #, no-wrap
19896 msgid ""
19897 " add-drive-opts filename\n"
19898 "\n"
19899 msgstr ""
19900
19901 #. type: verbatim
19902 #: ../fish/guestfish.pod:587
19903 #, no-wrap
19904 msgid ""
19905 " add-drive-opts filename readonly:true\n"
19906 "\n"
19907 msgstr ""
19908
19909 #. type: verbatim
19910 #: ../fish/guestfish.pod:589
19911 #, no-wrap
19912 msgid ""
19913 " add-drive-opts filename format:qcow2 readonly:false\n"
19914 "\n"
19915 msgstr ""
19916
19917 #. type: textblock
19918 #: ../fish/guestfish.pod:591
19919 msgid ""
19920 "Each optional argument can appear at most once.  All optional arguments must "
19921 "appear after the required ones."
19922 msgstr ""
19923
19924 #. type: =head1
19925 #: ../fish/guestfish.pod:594
19926 msgid "NUMBERS"
19927 msgstr "ЧИСЛА"
19928
19929 #. type: textblock
19930 #: ../fish/guestfish.pod:596
19931 msgid ""
19932 "This section applies to all commands which can take integers as parameters."
19933 msgstr ""
19934
19935 #. type: =head2
19936 #: ../fish/guestfish.pod:599
19937 msgid "SIZE SUFFIX"
19938 msgstr ""
19939
19940 #. type: textblock
19941 #: ../fish/guestfish.pod:601
19942 msgid ""
19943 "When the command takes a parameter measured in bytes, you can use one of the "
19944 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19945 msgstr ""
19946
19947 #. type: =item
19948 #: ../fish/guestfish.pod:607
19949 msgid "B<k> or B<K> or B<KiB>"
19950 msgstr "B<k>, B<K> або B<KiB>"
19951
19952 #. type: textblock
19953 #: ../fish/guestfish.pod:609
19954 msgid "The size in kilobytes (multiplied by 1024)."
19955 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
19956
19957 #. type: =item
19958 #: ../fish/guestfish.pod:611
19959 msgid "B<KB>"
19960 msgstr "B<KB>"
19961
19962 #. type: textblock
19963 #: ../fish/guestfish.pod:613
19964 msgid "The size in SI 1000 byte units."
19965 msgstr "Розмір у одиницях СІ: 1000 байтів."
19966
19967 #. type: =item
19968 #: ../fish/guestfish.pod:615
19969 msgid "B<M> or B<MiB>"
19970 msgstr "B<M> або B<MiB>"
19971
19972 #. type: textblock
19973 #: ../fish/guestfish.pod:617
19974 msgid "The size in megabytes (multiplied by 1048576)."
19975 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
19976
19977 #. type: =item
19978 #: ../fish/guestfish.pod:619
19979 msgid "B<MB>"
19980 msgstr "B<MB>"
19981
19982 #. type: textblock
19983 #: ../fish/guestfish.pod:621
19984 msgid "The size in SI 1000000 byte units."
19985 msgstr "Розмір у одиницях СІ: 1000000 байтів."
19986
19987 #. type: =item
19988 #: ../fish/guestfish.pod:623
19989 msgid "B<G> or B<GiB>"
19990 msgstr "B<G> або B<GiB>"
19991
19992 #. type: textblock
19993 #: ../fish/guestfish.pod:625
19994 msgid "The size in gigabytes (multiplied by 2**30)."
19995 msgstr "Розмір у гігабайтах (з множником 2**30)."
19996
19997 #. type: =item
19998 #: ../fish/guestfish.pod:627
19999 msgid "B<GB>"
20000 msgstr "B<GB>"
20001
20002 #. type: textblock
20003 #: ../fish/guestfish.pod:629
20004 msgid "The size in SI 10**9 byte units."
20005 msgstr "Розмір у одиницях СІ: 10**9 байтів."
20006
20007 #. type: =item
20008 #: ../fish/guestfish.pod:631
20009 msgid "B<T> or B<TiB>"
20010 msgstr "B<T> або B<TiB>"
20011
20012 #. type: textblock
20013 #: ../fish/guestfish.pod:633
20014 msgid "The size in terabytes (multiplied by 2**40)."
20015 msgstr "Розмір у терабайтах (з множником 2**40)."
20016
20017 #. type: =item
20018 #: ../fish/guestfish.pod:635
20019 msgid "B<TB>"
20020 msgstr "B<TB>"
20021
20022 #. type: textblock
20023 #: ../fish/guestfish.pod:637
20024 msgid "The size in SI 10**12 byte units."
20025 msgstr "Розмір у одиницях СІ: 10**12 байтів."
20026
20027 #. type: =item
20028 #: ../fish/guestfish.pod:639
20029 msgid "B<P> or B<PiB>"
20030 msgstr "B<P> або B<PiB>"
20031
20032 #. type: textblock
20033 #: ../fish/guestfish.pod:641
20034 msgid "The size in petabytes (multiplied by 2**50)."
20035 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
20036
20037 #. type: =item
20038 #: ../fish/guestfish.pod:643
20039 msgid "B<PB>"
20040 msgstr "B<PB>"
20041
20042 #. type: textblock
20043 #: ../fish/guestfish.pod:645
20044 msgid "The size in SI 10**15 byte units."
20045 msgstr "Розмір у одиницях СІ: 10**15 байтів."
20046
20047 #. type: =item
20048 #: ../fish/guestfish.pod:647
20049 msgid "B<E> or B<EiB>"
20050 msgstr "B<E> або B<EiB>"
20051
20052 #. type: textblock
20053 #: ../fish/guestfish.pod:649
20054 msgid "The size in exabytes (multiplied by 2**60)."
20055 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
20056
20057 #. type: =item
20058 #: ../fish/guestfish.pod:651
20059 msgid "B<EB>"
20060 msgstr "B<EB>"
20061
20062 #. type: textblock
20063 #: ../fish/guestfish.pod:653
20064 msgid "The size in SI 10**18 byte units."
20065 msgstr "Розмір у одиницях СІ: 10**18 байтів."
20066
20067 #. type: =item
20068 #: ../fish/guestfish.pod:655
20069 msgid "B<Z> or B<ZiB>"
20070 msgstr "B<Z> або B<ZiB>"
20071
20072 #. type: textblock
20073 #: ../fish/guestfish.pod:657
20074 msgid "The size in zettabytes (multiplied by 2**70)."
20075 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
20076
20077 #. type: =item
20078 #: ../fish/guestfish.pod:659
20079 msgid "B<ZB>"
20080 msgstr "B<ZB>"
20081
20082 #. type: textblock
20083 #: ../fish/guestfish.pod:661
20084 msgid "The size in SI 10**21 byte units."
20085 msgstr "Розмір у одиницях СІ: 10**21 байтів."
20086
20087 #. type: =item
20088 #: ../fish/guestfish.pod:663
20089 msgid "B<Y> or B<YiB>"
20090 msgstr "B<Y> або B<YiB>"
20091
20092 #. type: textblock
20093 #: ../fish/guestfish.pod:665
20094 msgid "The size in yottabytes (multiplied by 2**80)."
20095 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
20096
20097 #. type: =item
20098 #: ../fish/guestfish.pod:667
20099 msgid "B<YB>"
20100 msgstr "B<YB>"
20101
20102 #. type: textblock
20103 #: ../fish/guestfish.pod:669
20104 msgid "The size in SI 10**24 byte units."
20105 msgstr "Розмір у одиницях СІ: 10**24 байтів."
20106
20107 #. type: verbatim
20108 #: ../fish/guestfish.pod:675
20109 #, no-wrap
20110 msgid ""
20111 " truncate-size /file 1G\n"
20112 "\n"
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../fish/guestfish.pod:677
20117 msgid "would truncate the file to 1 gigabyte."
20118 msgstr ""
20119
20120 #. type: textblock
20121 #: ../fish/guestfish.pod:679
20122 msgid ""
20123 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20124 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20125 "suffix will probably not do what you expect."
20126 msgstr ""
20127
20128 #. type: =head2
20129 #: ../fish/guestfish.pod:683
20130 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20131 msgstr ""
20132
20133 #. type: textblock
20134 #: ../fish/guestfish.pod:685
20135 msgid ""
20136 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20137 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20138 msgstr ""
20139
20140 #. type: verbatim
20141 #: ../fish/guestfish.pod:688
20142 #, no-wrap
20143 msgid ""
20144 " 1234      decimal number 1234\n"
20145 " 02322     octal number, equivalent to decimal 1234\n"
20146 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20147 "\n"
20148 msgstr ""
20149
20150 #. type: textblock
20151 #: ../fish/guestfish.pod:692
20152 msgid ""
20153 "When using the C<chmod> command, you almost always want to specify an octal "
20154 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20155 "L<chmod(1)> program):"
20156 msgstr ""
20157
20158 #. type: verbatim
20159 #: ../fish/guestfish.pod:696
20160 #, no-wrap
20161 msgid ""
20162 " chmod 0777 /public  # OK\n"
20163 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20164 "\n"
20165 msgstr ""
20166
20167 #. type: textblock
20168 #: ../fish/guestfish.pod:699
20169 msgid ""
20170 "Commands that return numbers usually print them in decimal, but some "
20171 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20172 "octal, preceeded by C<0>)."
20173 msgstr ""
20174
20175 #. type: =head1
20176 #: ../fish/guestfish.pod:703
20177 msgid "WILDCARDS AND GLOBBING"
20178 msgstr ""
20179
20180 #. type: textblock
20181 #: ../fish/guestfish.pod:705
20182 msgid ""
20183 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20184 "(globbing) by default.  So for example the following will not do what you "
20185 "expect:"
20186 msgstr ""
20187
20188 #. type: verbatim
20189 #: ../fish/guestfish.pod:709
20190 #, no-wrap
20191 msgid ""
20192 " rm-rf /home/*\n"
20193 "\n"
20194 msgstr ""
20195
20196 #. type: textblock
20197 #: ../fish/guestfish.pod:711
20198 msgid ""
20199 "Assuming you don't have a directory called literally C</home/*> then the "
20200 "above command will return an error."
20201 msgstr ""
20202
20203 #. type: textblock
20204 #: ../fish/guestfish.pod:714
20205 msgid "To perform wildcard expansion, use the C<glob> command."
20206 msgstr ""
20207
20208 #. type: verbatim
20209 #: ../fish/guestfish.pod:716
20210 #, no-wrap
20211 msgid ""
20212 " glob rm-rf /home/*\n"
20213 "\n"
20214 msgstr ""
20215
20216 #. type: textblock
20217 #: ../fish/guestfish.pod:718
20218 msgid ""
20219 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20220 "many times), equivalent to:"
20221 msgstr ""
20222
20223 #. type: verbatim
20224 #: ../fish/guestfish.pod:721
20225 #, no-wrap
20226 msgid ""
20227 " rm-rf /home/jim\n"
20228 " rm-rf /home/joe\n"
20229 " rm-rf /home/mary\n"
20230 "\n"
20231 msgstr ""
20232
20233 #. type: textblock
20234 #: ../fish/guestfish.pod:725
20235 msgid "C<glob> only works on simple guest paths and not on device names."
20236 msgstr ""
20237
20238 #. type: textblock
20239 #: ../fish/guestfish.pod:727
20240 msgid ""
20241 "If you have several parameters, each containing a wildcard, then glob will "
20242 "perform a Cartesian product."
20243 msgstr ""
20244
20245 #. type: =head1
20246 #: ../fish/guestfish.pod:730
20247 msgid "COMMENTS"
20248 msgstr "КОМЕНТАРІ"
20249
20250 #. type: textblock
20251 #: ../fish/guestfish.pod:732
20252 msgid ""
20253 "Any line which starts with a I<#> character is treated as a comment and "
20254 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20255 "a command.  For example:"
20256 msgstr ""
20257
20258 #. type: verbatim
20259 #: ../fish/guestfish.pod:736
20260 #, no-wrap
20261 msgid ""
20262 " # this is a comment\n"
20263 "         # this is a comment\n"
20264 " foo # NOT a comment\n"
20265 "\n"
20266 msgstr ""
20267
20268 #. type: textblock
20269 #: ../fish/guestfish.pod:740
20270 msgid "Blank lines are also ignored."
20271 msgstr ""
20272
20273 #. type: =head1
20274 #: ../fish/guestfish.pod:742
20275 msgid "RUNNING COMMANDS LOCALLY"
20276 msgstr ""
20277
20278 #. type: textblock
20279 #: ../fish/guestfish.pod:744
20280 msgid ""
20281 "Any line which starts with a I<!> character is treated as a command sent to "
20282 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20283 msgstr ""
20284
20285 #. type: verbatim
20286 #: ../fish/guestfish.pod:748
20287 #, no-wrap
20288 msgid ""
20289 " !mkdir local\n"
20290 " tgz-out /remote local/remote-data.tar.gz\n"
20291 "\n"
20292 msgstr ""
20293
20294 #. type: textblock
20295 #: ../fish/guestfish.pod:751
20296 msgid ""
20297 "will create a directory C<local> on the host, and then export the contents "
20298 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20299 "(See C<tgz-out>)."
20300 msgstr ""
20301
20302 #. type: textblock
20303 #: ../fish/guestfish.pod:755
20304 msgid ""
20305 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20306 "effect, due to the way that subprocesses work in Unix."
20307 msgstr ""
20308
20309 #. type: =head2
20310 #: ../fish/guestfish.pod:758
20311 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20312 msgstr ""
20313
20314 #. type: textblock
20315 #: ../fish/guestfish.pod:760
20316 msgid ""
20317 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20318 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20319 "and executed as guestfish commands."
20320 msgstr ""
20321
20322 #. type: textblock
20323 #: ../fish/guestfish.pod:764
20324 msgid ""
20325 "Thus you can use shell script to construct arbitrary guestfish commands "
20326 "which are then parsed by guestfish."
20327 msgstr ""
20328
20329 #. type: textblock
20330 #: ../fish/guestfish.pod:767
20331 msgid ""
20332 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20333 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20334 "if we use a shell script to create the guestfish commands for us:"
20335 msgstr ""
20336
20337 #. type: verbatim
20338 #: ../fish/guestfish.pod:772
20339 #, no-wrap
20340 msgid ""
20341 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20342 "\n"
20343 msgstr ""
20344
20345 #. type: textblock
20346 #: ../fish/guestfish.pod:774
20347 msgid "or with names like C</foo.001>:"
20348 msgstr ""
20349
20350 #. type: verbatim
20351 #: ../fish/guestfish.pod:776
20352 #, no-wrap
20353 msgid ""
20354 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20355 "\n"
20356 msgstr ""
20357
20358 #. type: textblock
20359 #: ../fish/guestfish.pod:778
20360 msgid ""
20361 "When using guestfish interactively it can be helpful to just run the shell "
20362 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20363 "ordinary I<!> local command), see what guestfish commands it would run, and "
20364 "when you are happy with those prepend the C<E<lt>> character to run the "
20365 "guestfish commands for real."
20366 msgstr ""
20367
20368 #. type: =head1
20369 #: ../fish/guestfish.pod:784
20370 msgid "PIPES"
20371 msgstr "КАНАЛИ"
20372
20373 #. type: textblock
20374 #: ../fish/guestfish.pod:786
20375 msgid ""
20376 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20377 "command (a guestfish command) to the second command (any host command).  For "
20378 "example:"
20379 msgstr ""
20380
20381 #. type: verbatim
20382 #: ../fish/guestfish.pod:790
20383 #, no-wrap
20384 msgid ""
20385 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20386 "\n"
20387 msgstr ""
20388
20389 #. type: textblock
20390 #: ../fish/guestfish.pod:792
20391 msgid ""
20392 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20393 "program).  The above command would list all accounts in the guest filesystem "
20394 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20395 msgstr ""
20396
20397 #. type: verbatim
20398 #: ../fish/guestfish.pod:797
20399 #, no-wrap
20400 msgid ""
20401 " hexdump /bin/ls | head\n"
20402 " list-devices | tail -1\n"
20403 " tgz-out / - | tar ztf -\n"
20404 "\n"
20405 msgstr ""
20406
20407 #. type: textblock
20408 #: ../fish/guestfish.pod:801
20409 msgid ""
20410 "The space before the pipe symbol is required, any space after the pipe "
20411 "symbol is optional.  Everything after the pipe symbol is just passed "
20412 "straight to the host shell, so it can contain redirections, globs and "
20413 "anything else that makes sense on the host side."
20414 msgstr ""
20415
20416 #. type: textblock
20417 #: ../fish/guestfish.pod:806
20418 msgid ""
20419 "To use a literal argument which begins with a pipe symbol, you have to quote "
20420 "it, eg:"
20421 msgstr ""
20422
20423 #. type: verbatim
20424 #: ../fish/guestfish.pod:809
20425 #, no-wrap
20426 msgid ""
20427 " echo \"|\"\n"
20428 "\n"
20429 msgstr ""
20430
20431 #. type: =head1
20432 #: ../fish/guestfish.pod:811
20433 msgid "HOME DIRECTORIES"
20434 msgstr ""
20435
20436 #. type: textblock
20437 #: ../fish/guestfish.pod:813
20438 msgid ""
20439 "If a parameter starts with the character C<~> then the tilde may be expanded "
20440 "as a home directory path (either C<~> for the current user's home directory, "
20441 "or C<~user> for another user)."
20442 msgstr ""
20443
20444 #. type: textblock
20445 #: ../fish/guestfish.pod:817
20446 msgid ""
20447 "Note that home directory expansion happens for users known I<on the host>, "
20448 "not in the guest filesystem."
20449 msgstr ""
20450
20451 #. type: textblock
20452 #: ../fish/guestfish.pod:820
20453 msgid ""
20454 "To use a literal argument which begins with a tilde, you have to quote it, "
20455 "eg:"
20456 msgstr ""
20457
20458 #. type: verbatim
20459 #: ../fish/guestfish.pod:823
20460 #, no-wrap
20461 msgid ""
20462 " echo \"~\"\n"
20463 "\n"
20464 msgstr ""
20465
20466 #. type: =head2
20467 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20468 msgid "ENCRYPTED DISKS"
20469 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20470
20471 #. type: textblock
20472 #: ../fish/guestfish.pod:827
20473 msgid ""
20474 "Libguestfs has some support for Linux guests encrypted according to the "
20475 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20476 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
20477 "LUKS is supported."
20478 msgstr ""
20479
20480 #. type: textblock
20481 #: ../fish/guestfish.pod:832
20482 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20483 msgstr ""
20484
20485 #. type: verbatim
20486 #: ../fish/guestfish.pod:834
20487 #, no-wrap
20488 msgid ""
20489 " ><fs> vfs-type /dev/sda2\n"
20490 " crypto_LUKS\n"
20491 "\n"
20492 msgstr ""
20493
20494 #. type: textblock
20495 #: ../fish/guestfish.pod:837
20496 msgid ""
20497 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20498 "device called C</dev/mapper/luksdev>."
20499 msgstr ""
20500
20501 #. type: verbatim
20502 #: ../fish/guestfish.pod:840
20503 #, no-wrap
20504 msgid ""
20505 " ><fs> luks-open /dev/sda2 luksdev\n"
20506 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20507 "\n"
20508 msgstr ""
20509
20510 #. type: textblock
20511 #: ../fish/guestfish.pod:843
20512 msgid ""
20513 "Finally you have to tell LVM to scan for volume groups on the newly created "
20514 "mapper device:"
20515 msgstr ""
20516
20517 #. type: verbatim
20518 #: ../fish/guestfish.pod:846
20519 #, no-wrap
20520 msgid ""
20521 " vgscan\n"
20522 " vg-activate-all true\n"
20523 "\n"
20524 msgstr ""
20525
20526 #. type: textblock
20527 #: ../fish/guestfish.pod:849
20528 msgid "The logical volume(s) can now be mounted in the usual way."
20529 msgstr ""
20530
20531 #. type: textblock
20532 #: ../fish/guestfish.pod:851
20533 msgid ""
20534 "Before closing a LUKS device you must unmount any logical volumes on it and "
20535 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20536 "one.  Then you can close the mapper device:"
20537 msgstr ""
20538
20539 #. type: verbatim
20540 #: ../fish/guestfish.pod:855
20541 #, no-wrap
20542 msgid ""
20543 " vg-activate false /dev/VG\n"
20544 " luks-close /dev/mapper/luksdev\n"
20545 "\n"
20546 msgstr ""
20547
20548 #. type: textblock
20549 #: ../fish/guestfish.pod:860
20550 msgid ""
20551 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20552 "letters and paths (with some limitations).  The following commands are "
20553 "equivalent:"
20554 msgstr ""
20555
20556 #. type: verbatim
20557 #: ../fish/guestfish.pod:864
20558 #, no-wrap
20559 msgid ""
20560 " file /WINDOWS/system32/config/system.LOG\n"
20561 "\n"
20562 msgstr ""
20563
20564 #. type: verbatim
20565 #: ../fish/guestfish.pod:866
20566 #, no-wrap
20567 msgid ""
20568 " file win:\\windows\\system32\\config\\system.log\n"
20569 "\n"
20570 msgstr ""
20571
20572 #. type: verbatim
20573 #: ../fish/guestfish.pod:868
20574 #, no-wrap
20575 msgid ""
20576 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20577 "\n"
20578 msgstr ""
20579
20580 #. type: textblock
20581 #: ../fish/guestfish.pod:870
20582 msgid ""
20583 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20584 "where the drive is mounted, prepending that to the path, changing all "
20585 "backslash characters to forward slash, then resolving the result using L</"
20586 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
20587 "the parameter might be rewritten like this:"
20588 msgstr ""
20589
20590 #. type: verbatim
20591 #: ../fish/guestfish.pod:876
20592 #, no-wrap
20593 msgid ""
20594 " win:e:\\foo\\bar => /e/FOO/bar\n"
20595 "\n"
20596 msgstr ""
20597
20598 #. type: textblock
20599 #: ../fish/guestfish.pod:878
20600 msgid "This only works in argument positions that expect a path."
20601 msgstr ""
20602
20603 #. type: =head1
20604 #: ../fish/guestfish.pod:880
20605 msgid "UPLOADING AND DOWNLOADING FILES"
20606 msgstr ""
20607
20608 #. type: textblock
20609 #: ../fish/guestfish.pod:882
20610 msgid ""
20611 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20612 "others which upload from or download to a local file, you can use the "
20613 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20614 msgstr ""
20615
20616 #. type: verbatim
20617 #: ../fish/guestfish.pod:886
20618 #, no-wrap
20619 msgid ""
20620 " upload - /foo\n"
20621 "\n"
20622 msgstr ""
20623
20624 #. type: textblock
20625 #: ../fish/guestfish.pod:888
20626 msgid ""
20627 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20628 msgstr ""
20629
20630 #. type: verbatim
20631 #: ../fish/guestfish.pod:891
20632 #, no-wrap
20633 msgid ""
20634 " tar-out /etc - | tar tf -\n"
20635 "\n"
20636 msgstr ""
20637
20638 #. type: textblock
20639 #: ../fish/guestfish.pod:893
20640 msgid ""
20641 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20642 "command (see L</PIPES>)."
20643 msgstr ""
20644
20645 #. type: textblock
20646 #: ../fish/guestfish.pod:896
20647 msgid ""
20648 "When using C<-> to read from stdin, the input is read up to the end of "
20649 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20650 "some arbitrary end marker:"
20651 msgstr ""
20652
20653 #. type: verbatim
20654 #: ../fish/guestfish.pod:900
20655 #, no-wrap
20656 msgid ""
20657 " upload -<<END /foo\n"
20658 " input line 1\n"
20659 " input line 2\n"
20660 " input line 3\n"
20661 " END\n"
20662 "\n"
20663 msgstr ""
20664
20665 #. type: textblock
20666 #: ../fish/guestfish.pod:906
20667 msgid ""
20668 "Any string of characters can be used instead of C<END>.  The end marker must "
20669 "appear on a line of its own, without any preceeding or following characters "
20670 "(not even spaces)."
20671 msgstr ""
20672
20673 #. type: textblock
20674 #: ../fish/guestfish.pod:910
20675 msgid ""
20676 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20677 "upload local files (so-called \"FileIn\" parameters in the generator)."
20678 msgstr ""
20679
20680 #. type: =head1
20681 #: ../fish/guestfish.pod:913
20682 msgid "EXIT ON ERROR BEHAVIOUR"
20683 msgstr ""
20684
20685 #. type: textblock
20686 #: ../fish/guestfish.pod:915
20687 msgid ""
20688 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20689 "taking commands from a human over a tty), and will exit on the first error "
20690 "in non-interactive mode (scripts, commands given on the command line)."
20691 msgstr ""
20692
20693 #. type: textblock
20694 #: ../fish/guestfish.pod:920
20695 msgid ""
20696 "If you prefix a command with a I<-> character, then that command will not "
20697 "cause guestfish to exit, even if that (one) command returns an error."
20698 msgstr ""
20699
20700 #. type: =head1
20701 #: ../fish/guestfish.pod:924
20702 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20703 msgstr ""
20704
20705 #. type: textblock
20706 #: ../fish/guestfish.pod:926
20707 msgid ""
20708 "Guestfish can be remote-controlled over a socket.  This is useful "
20709 "particularly in shell scripts where you want to make several different "
20710 "changes to a filesystem, but you don't want the overhead of starting up a "
20711 "guestfish process each time."
20712 msgstr ""
20713
20714 #. type: textblock
20715 #: ../fish/guestfish.pod:931
20716 msgid "Start a guestfish server process using:"
20717 msgstr ""
20718
20719 #. type: verbatim
20720 #: ../fish/guestfish.pod:933
20721 #, no-wrap
20722 msgid ""
20723 " eval \"`guestfish --listen`\"\n"
20724 "\n"
20725 msgstr ""
20726
20727 #. type: textblock
20728 #: ../fish/guestfish.pod:935
20729 msgid "and then send it commands by doing:"
20730 msgstr ""
20731
20732 #. type: verbatim
20733 #: ../fish/guestfish.pod:937
20734 #, no-wrap
20735 msgid ""
20736 " guestfish --remote cmd [...]\n"
20737 "\n"
20738 msgstr ""
20739
20740 #. type: textblock
20741 #: ../fish/guestfish.pod:939
20742 msgid "To cause the server to exit, send it the exit command:"
20743 msgstr ""
20744
20745 #. type: textblock
20746 #: ../fish/guestfish.pod:943
20747 msgid ""
20748 "Note that the server will normally exit if there is an error in a command.  "
20749 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20750 "BEHAVIOUR>."
20751 msgstr ""
20752
20753 #. type: =head2
20754 #: ../fish/guestfish.pod:947
20755 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20756 msgstr ""
20757
20758 #. type: textblock
20759 #: ../fish/guestfish.pod:949
20760 msgid ""
20761 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20762 "is how the I<--remote> option knows where to send the commands.  You can "
20763 "have several guestfish listener processes running using:"
20764 msgstr ""
20765
20766 #. type: verbatim
20767 #: ../fish/guestfish.pod:953
20768 #, no-wrap
20769 msgid ""
20770 " eval \"`guestfish --listen`\"\n"
20771 " pid1=$GUESTFISH_PID\n"
20772 " eval \"`guestfish --listen`\"\n"
20773 " pid2=$GUESTFISH_PID\n"
20774 " ...\n"
20775 " guestfish --remote=$pid1 cmd\n"
20776 " guestfish --remote=$pid2 cmd\n"
20777 "\n"
20778 msgstr ""
20779
20780 #. type: =head2
20781 #: ../fish/guestfish.pod:961
20782 msgid "REMOTE CONTROL AND CSH"
20783 msgstr ""
20784
20785 #. type: textblock
20786 #: ../fish/guestfish.pod:963
20787 msgid ""
20788 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20789 "option:"
20790 msgstr ""
20791
20792 #. type: verbatim
20793 #: ../fish/guestfish.pod:966
20794 #, no-wrap
20795 msgid ""
20796 " eval \"`guestfish --listen --csh`\"\n"
20797 "\n"
20798 msgstr ""
20799
20800 #. type: =head2
20801 #: ../fish/guestfish.pod:968
20802 msgid "REMOTE CONTROL DETAILS"
20803 msgstr ""
20804
20805 #. type: textblock
20806 #: ../fish/guestfish.pod:970
20807 msgid ""
20808 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20809 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20810 "and C<$PID> is the process ID of the server."
20811 msgstr ""
20812
20813 #. type: textblock
20814 #: ../fish/guestfish.pod:974
20815 msgid "Guestfish client and server versions must match exactly."
20816 msgstr ""
20817
20818 #. type: =head2
20819 #: ../fish/guestfish.pod:976
20820 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20821 msgstr ""
20822
20823 #. type: textblock
20824 #: ../fish/guestfish.pod:978
20825 msgid ""
20826 "From Bash, you can use the following code which creates a guestfish "
20827 "instance, correctly quotes the command line, handles failure to start, and "
20828 "cleans up guestfish when the script exits:"
20829 msgstr ""
20830
20831 #. type: verbatim
20832 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20833 #, no-wrap
20834 msgid ""
20835 " #!/bin/bash -\n"
20836 " \n"
20837 msgstr ""
20838
20839 #. type: verbatim
20840 #: ../fish/guestfish.pod:986
20841 #, no-wrap
20842 msgid ""
20843 " guestfish[0]=\"guestfish\"\n"
20844 " guestfish[1]=\"--listen\"\n"
20845 " guestfish[2]=\"--ro\"\n"
20846 " guestfish[3]=\"-a\"\n"
20847 " guestfish[4]=\"disk.img\"\n"
20848 " \n"
20849 msgstr ""
20850
20851 #. type: verbatim
20852 #: ../fish/guestfish.pod:992
20853 #, no-wrap
20854 msgid ""
20855 " GUESTFISH_PID=\n"
20856 " eval $(\"${guestfish[@]}\")\n"
20857 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20858 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20859 "     exit 1\n"
20860 " fi\n"
20861 " \n"
20862 msgstr ""
20863
20864 #. type: verbatim
20865 #: ../fish/guestfish.pod:999
20866 #, no-wrap
20867 msgid ""
20868 " cleanup_guestfish ()\n"
20869 " {\n"
20870 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20871 " }\n"
20872 " trap cleanup_guestfish EXIT ERR\n"
20873 " \n"
20874 msgstr ""
20875
20876 #. type: verbatim
20877 #: ../fish/guestfish.pod:1005
20878 #, no-wrap
20879 msgid ""
20880 " guestfish --remote -- run\n"
20881 " \n"
20882 msgstr ""
20883
20884 #. type: verbatim
20885 #: ../fish/guestfish.pod:1007
20886 #, no-wrap
20887 msgid ""
20888 " # ...\n"
20889 "\n"
20890 msgstr ""
20891
20892 #. type: =head2
20893 #: ../fish/guestfish.pod:1009
20894 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20895 msgstr ""
20896
20897 #. type: textblock
20898 #: ../fish/guestfish.pod:1011
20899 msgid ""
20900 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20901 "context hangs, ie. don't do (note the backquotes):"
20902 msgstr ""
20903
20904 #. type: verbatim
20905 #: ../fish/guestfish.pod:1014
20906 #, no-wrap
20907 msgid ""
20908 " a=`guestfish --remote run`\n"
20909 "\n"
20910 msgstr ""
20911
20912 #. type: textblock
20913 #: ../fish/guestfish.pod:1016
20914 msgid ""
20915 "Since the C<run> command produces no output on stdout, this is not useful "
20916 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
20917 "cgi?id=592910>."
20918 msgstr ""
20919
20920 #. type: =head1
20921 #: ../fish/guestfish.pod:1020
20922 msgid "PREPARED DISK IMAGES"
20923 msgstr ""
20924
20925 #. type: textblock
20926 #: ../fish/guestfish.pod:1022
20927 msgid ""
20928 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20929 "preformatted disk images that guestfish can make for you to save typing.  "
20930 "This is particularly useful for testing purposes.  This option is used "
20931 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20932 "can be mixed with I<-a>)."
20933 msgstr ""
20934
20935 #. type: textblock
20936 #: ../fish/guestfish.pod:1028
20937 msgid ""
20938 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20939 "the second and so on.  Existing files in the current directory are "
20940 "I<overwritten>."
20941 msgstr ""
20942
20943 #. type: textblock
20944 #: ../fish/guestfish.pod:1032
20945 msgid ""
20946 "The type briefly describes how the disk should be sized, partitioned, how "
20947 "filesystem(s) should be created, and how content should be added.  "
20948 "Optionally the type can be followed by extra parameters, separated by C<:> "
20949 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
20950 "allocated disk, containing a single partition, with the partition formatted "
20951 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20952 "disk instead."
20953 msgstr ""
20954
20955 #. type: textblock
20956 #: ../fish/guestfish.pod:1040
20957 msgid "To list the available types and any extra parameters they take, run:"
20958 msgstr ""
20959
20960 #. type: textblock
20961 #: ../fish/guestfish.pod:1044
20962 msgid ""
20963 "Note that the prepared filesystem is not mounted.  You would usually have to "
20964 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20965 msgstr ""
20966
20967 #. type: textblock
20968 #: ../fish/guestfish.pod:1048
20969 msgid ""
20970 "If any I<-N> or I<--new> options are given, the guest is automatically "
20971 "launched."
20972 msgstr ""
20973
20974 #. type: textblock
20975 #: ../fish/guestfish.pod:1053
20976 msgid "Create a 100MB disk with an ext4-formatted partition:"
20977 msgstr ""
20978
20979 #. type: verbatim
20980 #: ../fish/guestfish.pod:1055
20981 #, no-wrap
20982 msgid ""
20983 " guestfish -N fs:ext4\n"
20984 "\n"
20985 msgstr ""
20986
20987 #. type: textblock
20988 #: ../fish/guestfish.pod:1057
20989 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20990 msgstr ""
20991
20992 #. type: verbatim
20993 #: ../fish/guestfish.pod:1059
20994 #, no-wrap
20995 msgid ""
20996 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20997 "\n"
20998 msgstr ""
20999
21000 #. type: textblock
21001 #: ../fish/guestfish.pod:1061
21002 msgid "Create a blank 200MB disk:"
21003 msgstr ""
21004
21005 #. type: verbatim
21006 #: ../fish/guestfish.pod:1063
21007 #, no-wrap
21008 msgid ""
21009 " guestfish -N disk:200M\n"
21010 "\n"
21011 msgstr ""
21012
21013 #. type: =head1
21014 #: ../fish/guestfish.pod:1065
21015 msgid "PROGRESS BARS"
21016 msgstr ""
21017
21018 #. type: textblock
21019 #: ../fish/guestfish.pod:1067
21020 msgid ""
21021 "Some (not all) long-running commands send progress notification messages as "
21022 "they are running.  Guestfish turns these messages into progress bars."
21023 msgstr ""
21024
21025 #. type: textblock
21026 #: ../fish/guestfish.pod:1071
21027 msgid ""
21028 "When a command that supports progress bars takes longer than two seconds to "
21029 "run, and if progress bars are enabled, then you will see one appearing below "
21030 "the command:"
21031 msgstr ""
21032
21033 #. type: verbatim
21034 #: ../fish/guestfish.pod:1075
21035 #, no-wrap
21036 msgid ""
21037 " ><fs> copy-size /large-file /another-file 2048M\n"
21038 " / 10% [#####-----------------------------------------] 00:30\n"
21039 "\n"
21040 msgstr ""
21041
21042 #. type: textblock
21043 #: ../fish/guestfish.pod:1078
21044 msgid ""
21045 "The spinner on the left hand side moves round once for every progress "
21046 "notification received from the backend.  This is a (reasonably) golden "
21047 "assurance that the command is \"doing something\" even if the progress bar "
21048 "is not moving, because the command is able to send the progress "
21049 "notifications.  When the bar reaches 100% and the command finishes, the "
21050 "spinner disappears."
21051 msgstr ""
21052
21053 #. type: textblock
21054 #: ../fish/guestfish.pod:1085
21055 msgid ""
21056 "Progress bars are enabled by default when guestfish is used interactively.  "
21057 "You can enable them even for non-interactive modes using I<--progress-bars>, "
21058 "and you can disable them completely using I<--no-progress-bars>."
21059 msgstr ""
21060
21061 #. type: =head1
21062 #: ../fish/guestfish.pod:1090
21063 msgid "GUESTFISH COMMANDS"
21064 msgstr ""
21065
21066 #. type: textblock
21067 #: ../fish/guestfish.pod:1092
21068 msgid ""
21069 "The commands in this section are guestfish convenience commands, in other "
21070 "words, they are not part of the L<guestfs(3)> API."
21071 msgstr ""
21072
21073 #. type: =head2
21074 #: ../fish/guestfish.pod:1095
21075 msgid "help"
21076 msgstr "help"
21077
21078 #. type: verbatim
21079 #: ../fish/guestfish.pod:1097
21080 #, no-wrap
21081 msgid ""
21082 " help\n"
21083 " help cmd\n"
21084 "\n"
21085 msgstr ""
21086 " help\n"
21087 " help команда\n"
21088 "\n"
21089
21090 #. type: textblock
21091 #: ../fish/guestfish.pod:1100
21092 msgid "Without any parameter, this provides general help."
21093 msgstr "Без параметра показує загальну довідкову інформацію."
21094
21095 #. type: textblock
21096 #: ../fish/guestfish.pod:1102
21097 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21098 msgstr ""
21099
21100 #. type: =head2
21101 #: ../fish/guestfish.pod:1104
21102 msgid "quit | exit"
21103 msgstr ""
21104
21105 #. type: textblock
21106 #: ../fish/guestfish.pod:1106
21107 msgid "This exits guestfish.  You can also use C<^D> key."
21108 msgstr ""
21109
21110 #. type: textblock
21111 #: ../fish/guestfish.pod:1108
21112 msgid "@FISH_COMMANDS@"
21113 msgstr ""
21114
21115 #. type: =head1
21116 #: ../fish/guestfish.pod:1110
21117 msgid "COMMANDS"
21118 msgstr "КОМАНДИ"
21119
21120 #. type: textblock
21121 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21122 msgid "@ACTIONS@"
21123 msgstr "@ACTIONS@"
21124
21125 #. type: textblock
21126 #: ../fish/guestfish.pod:1116
21127 msgid ""
21128 "guestfish returns 0 if the commands completed without error, or 1 if there "
21129 "was an error."
21130 msgstr ""
21131
21132 #. type: =item
21133 #: ../fish/guestfish.pod:1123
21134 msgid "EDITOR"
21135 msgstr "РЕДАКТОР"
21136
21137 #. type: textblock
21138 #: ../fish/guestfish.pod:1125
21139 msgid ""
21140 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21141 "C<vi>."
21142 msgstr ""
21143
21144 #. type: =item
21145 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
21146 msgid "FEBOOTSTRAP_KERNEL"
21147 msgstr ""
21148
21149 #. type: =item
21150 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
21151 msgid "FEBOOTSTRAP_MODULES"
21152 msgstr ""
21153
21154 #. type: textblock
21155 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
21156 msgid ""
21157 "These two environment variables allow the kernel that libguestfs uses in the "
21158 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21159 "most recent host kernel is chosen.  For more information about kernel "
21160 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
21161 "available in febootstrap E<ge> 3.8."
21162 msgstr ""
21163
21164 #. type: =item
21165 #: ../fish/guestfish.pod:1138
21166 msgid "GUESTFISH_DISPLAY_IMAGE"
21167 msgstr ""
21168
21169 #. type: textblock
21170 #: ../fish/guestfish.pod:1140
21171 msgid ""
21172 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21173 "If not set, it uses L<display(1)>."
21174 msgstr ""
21175
21176 #. type: =item
21177 #: ../fish/guestfish.pod:1143
21178 msgid "GUESTFISH_PID"
21179 msgstr ""
21180
21181 #. type: textblock
21182 #: ../fish/guestfish.pod:1145
21183 msgid ""
21184 "Used with the I<--remote> option to specify the remote guestfish process to "
21185 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21186 msgstr ""
21187
21188 #. type: =item
21189 #: ../fish/guestfish.pod:1149
21190 msgid "HEXEDITOR"
21191 msgstr ""
21192
21193 #. type: textblock
21194 #: ../fish/guestfish.pod:1151
21195 msgid ""
21196 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21197 "not specified, the external L<hexedit(1)> program is used."
21198 msgstr ""
21199
21200 #. type: =item
21201 #: ../fish/guestfish.pod:1155
21202 msgid "HOME"
21203 msgstr "ДОМІВКА"
21204
21205 #. type: textblock
21206 #: ../fish/guestfish.pod:1157
21207 msgid ""
21208 "If compiled with GNU readline support, various files in the home directory "
21209 "can be used.  See L</FILES>."
21210 msgstr ""
21211
21212 #. type: =item
21213 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
21214 msgid "LIBGUESTFS_APPEND"
21215 msgstr ""
21216
21217 #. type: textblock
21218 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
21219 msgid "Pass additional options to the guest kernel."
21220 msgstr ""
21221
21222 #. type: =item
21223 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
21224 msgid "LIBGUESTFS_DEBUG"
21225 msgstr "LIBGUESTFS_DEBUG"
21226
21227 #. type: textblock
21228 #: ../fish/guestfish.pod:1166
21229 msgid ""
21230 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21231 "effect as using the B<-v> option."
21232 msgstr ""
21233
21234 #. type: =item
21235 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
21236 msgid "LIBGUESTFS_MEMSIZE"
21237 msgstr "LIBGUESTFS_MEMSIZE"
21238
21239 #. type: textblock
21240 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
21241 msgid ""
21242 "Set the memory allocated to the qemu process, in megabytes.  For example:"
21243 msgstr ""
21244
21245 #. type: verbatim
21246 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
21247 #, no-wrap
21248 msgid ""
21249 " LIBGUESTFS_MEMSIZE=700\n"
21250 "\n"
21251 msgstr ""
21252 " LIBGUESTFS_MEMSIZE=700\n"
21253 "\n"
21254
21255 #. type: =item
21256 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
21257 msgid "LIBGUESTFS_PATH"
21258 msgstr ""
21259
21260 #. type: textblock
21261 #: ../fish/guestfish.pod:1178
21262 msgid ""
21263 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21264 "the discussion of paths in L<guestfs(3)>."
21265 msgstr ""
21266
21267 #. type: =item
21268 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
21269 msgid "LIBGUESTFS_QEMU"
21270 msgstr ""
21271
21272 #. type: textblock
21273 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
21274 msgid ""
21275 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21276 "which was found at compile time by the configure script is used."
21277 msgstr ""
21278
21279 #. type: =item
21280 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
21281 msgid "LIBGUESTFS_TRACE"
21282 msgstr ""
21283
21284 #. type: textblock
21285 #: ../fish/guestfish.pod:1189
21286 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21287 msgstr ""
21288
21289 #. type: =item
21290 #: ../fish/guestfish.pod:1191
21291 msgid "PAGER"
21292 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21293
21294 #. type: textblock
21295 #: ../fish/guestfish.pod:1193
21296 msgid ""
21297 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21298 "C<more>."
21299 msgstr ""
21300
21301 #. type: =item
21302 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21303 #: ../src/guestfs.pod:3257
21304 msgid "TMPDIR"
21305 msgstr ""
21306
21307 #. type: textblock
21308 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
21309 msgid ""
21310 "Location of temporary directory, defaults to C</tmp> except for the cached "
21311 "supermin appliance which defaults to C</var/tmp>."
21312 msgstr ""
21313
21314 #. type: textblock
21315 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
21316 msgid ""
21317 "If libguestfs was compiled to use the supermin appliance then the real "
21318 "appliance is cached in this directory, shared between all handles belonging "
21319 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21320 "use in case C</var/tmp> is not large enough."
21321 msgstr ""
21322
21323 #. type: =head1
21324 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21325 #: ../rescue/virt-rescue.pod:273
21326 msgid "FILES"
21327 msgstr "ФАЙЛИ"
21328
21329 #. type: =item
21330 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21331 #: ../rescue/virt-rescue.pod:277
21332 msgid "$HOME/.libguestfs-tools.rc"
21333 msgstr ""
21334
21335 #. type: =item
21336 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21337 #: ../rescue/virt-rescue.pod:279
21338 msgid "/etc/libguestfs-tools.conf"
21339 msgstr ""
21340
21341 #. type: textblock
21342 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21343 #: ../rescue/virt-rescue.pod:281
21344 msgid ""
21345 "This configuration file controls the default read-only or read-write mode "
21346 "(I<--ro> or I<--rw>)."
21347 msgstr ""
21348
21349 #. type: textblock
21350 #: ../fish/guestfish.pod:1220
21351 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21352 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
21353
21354 #. type: =item
21355 #: ../fish/guestfish.pod:1222
21356 msgid "$HOME/.guestfish"
21357 msgstr ""
21358
21359 #. type: textblock
21360 #: ../fish/guestfish.pod:1224
21361 msgid ""
21362 "If compiled with GNU readline support, then the command history is saved in "
21363 "this file."
21364 msgstr ""
21365
21366 #. type: =item
21367 #: ../fish/guestfish.pod:1227
21368 msgid "$HOME/.inputrc"
21369 msgstr ""
21370
21371 #. type: =item
21372 #: ../fish/guestfish.pod:1229
21373 msgid "/etc/inputrc"
21374 msgstr ""
21375
21376 #. type: textblock
21377 #: ../fish/guestfish.pod:1231
21378 msgid ""
21379 "If compiled with GNU readline support, then these files can be used to "
21380 "configure readline.  For further information, please see L<readline(3)/"
21381 "INITIALIZATION FILE>."
21382 msgstr ""
21383
21384 #. type: textblock
21385 #: ../fish/guestfish.pod:1235
21386 msgid "To write rules which only apply to guestfish, use:"
21387 msgstr ""
21388
21389 #. type: verbatim
21390 #: ../fish/guestfish.pod:1237
21391 #, no-wrap
21392 msgid ""
21393 " $if guestfish\n"
21394 " ...\n"
21395 " $endif\n"
21396 "\n"
21397 msgstr ""
21398
21399 #. type: textblock
21400 #: ../fish/guestfish.pod:1241
21401 msgid ""
21402 "Variables that you can set in inputrc that change the behaviour of guestfish "
21403 "in useful ways include:"
21404 msgstr ""
21405
21406 #. type: =item
21407 #: ../fish/guestfish.pod:1246
21408 msgid "completion-ignore-case (default: on)"
21409 msgstr ""
21410
21411 #. type: textblock
21412 #: ../fish/guestfish.pod:1248
21413 msgid ""
21414 "By default, guestfish will ignore case when tab-completing paths on the "
21415 "disk.  Use:"
21416 msgstr ""
21417
21418 #. type: verbatim
21419 #: ../fish/guestfish.pod:1251
21420 #, no-wrap
21421 msgid ""
21422 " set completion-ignore-case off\n"
21423 "\n"
21424 msgstr ""
21425
21426 #. type: textblock
21427 #: ../fish/guestfish.pod:1253
21428 msgid "to make guestfish case sensitive."
21429 msgstr ""
21430
21431 #. type: =item
21432 #: ../fish/guestfish.pod:1257
21433 msgid "test1.img"
21434 msgstr ""
21435
21436 #. type: =item
21437 #: ../fish/guestfish.pod:1259
21438 msgid "test2.img (etc)"
21439 msgstr ""
21440
21441 #. type: textblock
21442 #: ../fish/guestfish.pod:1261
21443 msgid ""
21444 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21445 "will be created in the file C<test1.img> in the current directory.  The "
21446 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21447 "the same name will be overwritten."
21448 msgstr ""
21449
21450 #. type: textblock
21451 #: ../fish/guestfish.pod:1270
21452 msgid ""
21453 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21454 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21455 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21456 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21457 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21458 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21459 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21460 msgstr ""
21461
21462 #. type: textblock
21463 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354
21464 #: ../test-tool/libguestfs-test-tool.pod:112
21465 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21466 msgstr ""
21467
21468 #. type: textblock
21469 #: ../fish/virt-copy-in.pod:5
21470 msgid ""
21471 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21472 msgstr ""
21473
21474 #. type: verbatim
21475 #: ../fish/virt-copy-in.pod:9
21476 #, no-wrap
21477 msgid ""
21478 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21479 "\n"
21480 msgstr ""
21481
21482 #. type: verbatim
21483 #: ../fish/virt-copy-in.pod:11
21484 #, no-wrap
21485 msgid ""
21486 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21487 "\n"
21488 msgstr ""
21489
21490 #. type: textblock
21491 #: ../fish/virt-copy-in.pod:15
21492 msgid ""
21493 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21494 "causing disk corruption.  The virtual machine must be shut down before you "
21495 "use this command."
21496 msgstr ""
21497
21498 #. type: textblock
21499 #: ../fish/virt-copy-in.pod:21
21500 msgid ""
21501 "C<virt-copy-in> copies files and directories from the local disk into a "
21502 "virtual machine disk image or named libvirt domain."
21503 msgstr ""
21504
21505 #. type: textblock
21506 #: ../fish/virt-copy-in.pod:24
21507 msgid ""
21508 "You can give one of more filenames and directories on the command line.  "
21509 "Directories are copied in recursively.  The final parameter must be the "
21510 "destination directory in the disk image which must be an absolute path "
21511 "starting with a C</> character."
21512 msgstr ""
21513
21514 #. type: verbatim
21515 #: ../fish/virt-copy-in.pod:33
21516 #, no-wrap
21517 msgid ""
21518 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21519 "\n"
21520 msgstr ""
21521
21522 #. type: textblock
21523 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21524 msgid "Upload a home directory to a guest:"
21525 msgstr ""
21526
21527 #. type: verbatim
21528 #: ../fish/virt-copy-in.pod:37
21529 #, no-wrap
21530 msgid ""
21531 " virt-copy-in -d MyGuest skel /home\n"
21532 "\n"
21533 msgstr ""
21534
21535 #. type: =head1
21536 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21537 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21538 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21539 msgstr ""
21540
21541 #. type: textblock
21542 #: ../fish/virt-copy-in.pod:41
21543 msgid ""
21544 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21545 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
21546 "are probably better off using guestfish directly."
21547 msgstr ""
21548
21549 #. type: textblock
21550 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21551 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21552 msgid ""
21553 "Since the shell script just passes options straight to guestfish, read "
21554 "L<guestfish(1)> to see the full list of options."
21555 msgstr ""
21556
21557 #. type: textblock
21558 #: ../fish/virt-copy-in.pod:52
21559 msgid ""
21560 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21561 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21562 msgstr ""
21563
21564 #. type: textblock
21565 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21566 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21567 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21568 msgstr ""
21569
21570 #. type: textblock
21571 #: ../fish/virt-copy-out.pod:5
21572 msgid ""
21573 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21574 "image."
21575 msgstr ""
21576
21577 #. type: verbatim
21578 #: ../fish/virt-copy-out.pod:9
21579 #, no-wrap
21580 msgid ""
21581 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21582 "\n"
21583 msgstr ""
21584
21585 #. type: verbatim
21586 #: ../fish/virt-copy-out.pod:11
21587 #, no-wrap
21588 msgid ""
21589 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21590 "\n"
21591 msgstr ""
21592
21593 #. type: textblock
21594 #: ../fish/virt-copy-out.pod:15
21595 msgid ""
21596 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21597 "image or named libvirt domain."
21598 msgstr ""
21599
21600 #. type: textblock
21601 #: ../fish/virt-copy-out.pod:18
21602 msgid ""
21603 "You can give one of more filenames and directories on the command line.  "
21604 "Directories are copied out recursively."
21605 msgstr ""
21606
21607 #. type: textblock
21608 #: ../fish/virt-copy-out.pod:23
21609 msgid "Download the home directories from a virtual machine:"
21610 msgstr ""
21611
21612 #. type: verbatim
21613 #: ../fish/virt-copy-out.pod:25
21614 #, no-wrap
21615 msgid ""
21616 " mkdir homes\n"
21617 " virt-copy-out -d MyGuest /home homes\n"
21618 "\n"
21619 msgstr ""
21620
21621 #. type: textblock
21622 #: ../fish/virt-copy-out.pod:30
21623 msgid ""
21624 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21625 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
21626 "are probably better off using guestfish directly."
21627 msgstr ""
21628
21629 #. type: textblock
21630 #: ../fish/virt-copy-out.pod:41
21631 msgid ""
21632 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21633 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21634 msgstr ""
21635
21636 #. type: textblock
21637 #: ../fish/virt-tar-in.pod:5
21638 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21639 msgstr ""
21640
21641 #. type: verbatim
21642 #: ../fish/virt-tar-in.pod:9
21643 #, no-wrap
21644 msgid ""
21645 " virt-tar-in -a disk.img data.tar /destination\n"
21646 "\n"
21647 msgstr ""
21648
21649 #. type: verbatim
21650 #: ../fish/virt-tar-in.pod:11
21651 #, no-wrap
21652 msgid ""
21653 " virt-tar-in -d domain data.tar /destination\n"
21654 "\n"
21655 msgstr ""
21656
21657 #. type: verbatim
21658 #: ../fish/virt-tar-in.pod:13
21659 #, no-wrap
21660 msgid ""
21661 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21662 "\n"
21663 msgstr ""
21664
21665 #. type: textblock
21666 #: ../fish/virt-tar-in.pod:17
21667 msgid ""
21668 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21669 "causing disk corruption.  The virtual machine must be shut down before you "
21670 "use this command."
21671 msgstr ""
21672
21673 #. type: textblock
21674 #: ../fish/virt-tar-in.pod:23
21675 msgid ""
21676 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21677 "image or named libvirt domain."
21678 msgstr ""
21679
21680 #. type: textblock
21681 #: ../fish/virt-tar-in.pod:26
21682 msgid ""
21683 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21684 "standard input.  The second parameter is the absolute target directory to "
21685 "unpack into."
21686 msgstr ""
21687
21688 #. type: verbatim
21689 #: ../fish/virt-tar-in.pod:34
21690 #, no-wrap
21691 msgid ""
21692 " virt-tar-in -d MyGuest homes.tar /home\n"
21693 "\n"
21694 msgstr ""
21695
21696 #. type: textblock
21697 #: ../fish/virt-tar-in.pod:38
21698 msgid ""
21699 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21700 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
21701 "probably better off using guestfish directly."
21702 msgstr ""
21703
21704 #. type: textblock
21705 #: ../fish/virt-tar-in.pod:49
21706 msgid ""
21707 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21708 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21709 "org/>."
21710 msgstr ""
21711
21712 #. type: textblock
21713 #: ../fish/virt-tar-out.pod:5
21714 msgid ""
21715 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21716 msgstr ""
21717
21718 #. type: verbatim
21719 #: ../fish/virt-tar-out.pod:9
21720 #, no-wrap
21721 msgid ""
21722 " virt-tar-out -a disk.img /dir files.tar\n"
21723 "\n"
21724 msgstr ""
21725
21726 #. type: verbatim
21727 #: ../fish/virt-tar-out.pod:11
21728 #, no-wrap
21729 msgid ""
21730 " virt-tar-out -d domain /dir files.tar\n"
21731 "\n"
21732 msgstr ""
21733
21734 #. type: verbatim
21735 #: ../fish/virt-tar-out.pod:13
21736 #, no-wrap
21737 msgid ""
21738 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21739 "\n"
21740 msgstr ""
21741
21742 #. type: textblock
21743 #: ../fish/virt-tar-out.pod:17
21744 msgid ""
21745 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21746 msgstr ""
21747
21748 #. type: textblock
21749 #: ../fish/virt-tar-out.pod:20
21750 msgid ""
21751 "The first parameter is the absolute path of the virtual machine directory.  "
21752 "The second parameter is the tar file to write.  Use C<-> to write to "
21753 "standard output."
21754 msgstr ""
21755
21756 #. type: textblock
21757 #: ../fish/virt-tar-out.pod:26
21758 msgid "Download the home directories from a guest:"
21759 msgstr ""
21760
21761 #. type: verbatim
21762 #: ../fish/virt-tar-out.pod:28
21763 #, no-wrap
21764 msgid ""
21765 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21766 "\n"
21767 msgstr ""
21768
21769 #. type: textblock
21770 #: ../fish/virt-tar-out.pod:32
21771 msgid ""
21772 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21773 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
21774 "are probably better off using guestfish directly."
21775 msgstr ""
21776
21777 #. type: textblock
21778 #: ../fish/virt-tar-out.pod:43
21779 msgid ""
21780 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21781 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21782 msgstr ""
21783
21784 #. type: textblock
21785 #: ../fuse/guestmount.pod:5
21786 msgid ""
21787 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21788 msgstr ""
21789
21790 #. type: verbatim
21791 #: ../fuse/guestmount.pod:9
21792 #, no-wrap
21793 msgid ""
21794 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21795 "\n"
21796 msgstr ""
21797
21798 #. type: verbatim
21799 #: ../fuse/guestmount.pod:11
21800 #, no-wrap
21801 msgid ""
21802 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21803 "\n"
21804 msgstr ""
21805
21806 #. type: verbatim
21807 #: ../fuse/guestmount.pod:13
21808 #, no-wrap
21809 msgid ""
21810 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21811 "\n"
21812 msgstr ""
21813
21814 #. type: textblock
21815 #: ../fuse/guestmount.pod:17
21816 msgid ""
21817 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21818 "machines.  If you do this, you risk disk corruption in the VM."
21819 msgstr ""
21820
21821 #. type: textblock
21822 #: ../fuse/guestmount.pod:22
21823 msgid ""
21824 "The guestmount program can be used to mount virtual machine filesystems and "
21825 "other disk images on the host.  It uses libguestfs for access to the guest "
21826 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21827 "a mountable device."
21828 msgstr ""
21829
21830 #. type: textblock
21831 #: ../fuse/guestmount.pod:27
21832 msgid ""
21833 "Along with other options, you have to give at least one device (I<-a> "
21834 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21835 "option) or use the I<-i> inspection option or the I<--live> option.  How "
21836 "this works is better explained in the L<guestfish(1)> manual page, or by "
21837 "looking at the examples below."
21838 msgstr ""
21839
21840 #. type: textblock
21841 #: ../fuse/guestmount.pod:33
21842 msgid ""
21843 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21844 "by you, and the filesystem will not be visible to any other users unless you "
21845 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21846 "the filesystem, use the C<fusermount -u> command."
21847 msgstr ""
21848
21849 #. type: textblock
21850 #: ../fuse/guestmount.pod:41
21851 msgid ""
21852 "For a typical Windows guest which has its main filesystem on the first "
21853 "partition:"
21854 msgstr ""
21855
21856 #. type: verbatim
21857 #: ../fuse/guestmount.pod:44
21858 #, no-wrap
21859 msgid ""
21860 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21861 "\n"
21862 msgstr ""
21863
21864 #. type: textblock
21865 #: ../fuse/guestmount.pod:46
21866 msgid ""
21867 "For a typical Linux guest which has a /boot filesystem on the first "
21868 "partition, and the root filesystem on a logical volume:"
21869 msgstr ""
21870
21871 #. type: verbatim
21872 #: ../fuse/guestmount.pod:49
21873 #, no-wrap
21874 msgid ""
21875 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21876 "\n"
21877 msgstr ""
21878
21879 #. type: textblock
21880 #: ../fuse/guestmount.pod:51
21881 msgid "To get libguestfs to detect guest mountpoints for you:"
21882 msgstr ""
21883
21884 #. type: verbatim
21885 #: ../fuse/guestmount.pod:53
21886 #, no-wrap
21887 msgid ""
21888 " guestmount -a guest.img -i --ro /mnt\n"
21889 "\n"
21890 msgstr ""
21891
21892 #. type: textblock
21893 #: ../fuse/guestmount.pod:55
21894 msgid "For a libvirt guest called \"Guest\" you could do:"
21895 msgstr ""
21896
21897 #. type: verbatim
21898 #: ../fuse/guestmount.pod:57
21899 #, no-wrap
21900 msgid ""
21901 " guestmount -d Guest -i --ro /mnt\n"
21902 "\n"
21903 msgstr ""
21904
21905 #. type: textblock
21906 #: ../fuse/guestmount.pod:59
21907 msgid ""
21908 "If you don't know what filesystems are contained in a guest or disk image, "
21909 "use L<virt-filesystems(1)> first:"
21910 msgstr ""
21911
21912 #. type: verbatim
21913 #: ../fuse/guestmount.pod:62
21914 #, no-wrap
21915 msgid ""
21916 " virt-filesystems MyGuest\n"
21917 "\n"
21918 msgstr ""
21919
21920 #. type: textblock
21921 #: ../fuse/guestmount.pod:64
21922 msgid ""
21923 "If you want to trace the libguestfs calls but without excessive debugging "
21924 "information, we recommend:"
21925 msgstr ""
21926
21927 #. type: verbatim
21928 #: ../fuse/guestmount.pod:67
21929 #, no-wrap
21930 msgid ""
21931 " guestmount [...] --trace /mnt\n"
21932 "\n"
21933 msgstr ""
21934
21935 #. type: textblock
21936 #: ../fuse/guestmount.pod:69
21937 msgid "If you want to debug the program, we recommend:"
21938 msgstr ""
21939
21940 #. type: verbatim
21941 #: ../fuse/guestmount.pod:71
21942 #, no-wrap
21943 msgid ""
21944 " guestmount [...] --trace --verbose /mnt\n"
21945 "\n"
21946 msgstr ""
21947
21948 #. type: =head1
21949 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21950 #: ../resize/virt-resize.pod:621
21951 msgid "NOTES"
21952 msgstr "ПРИМІТКИ"
21953
21954 #. type: =head2
21955 #: ../fuse/guestmount.pod:75
21956 msgid "Other users cannot see the filesystem by default"
21957 msgstr ""
21958
21959 #. type: textblock
21960 #: ../fuse/guestmount.pod:77
21961 msgid ""
21962 "If you mount a filesystem as one user (eg. root), then other users will not "
21963 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21964 "option when mounting:"
21965 msgstr ""
21966
21967 #. type: verbatim
21968 #: ../fuse/guestmount.pod:81
21969 #, no-wrap
21970 msgid ""
21971 " sudo guestmount [...] -o allow_other /mnt\n"
21972 "\n"
21973 msgstr ""
21974
21975 #. type: =head2
21976 #: ../fuse/guestmount.pod:83
21977 msgid "Enabling FUSE"
21978 msgstr ""
21979
21980 #. type: textblock
21981 #: ../fuse/guestmount.pod:85
21982 msgid ""
21983 "On some distros, you may need to add yourself to a special group (eg. "
21984 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21985 "Debian and derivatives."
21986 msgstr ""
21987
21988 #. type: textblock
21989 #: ../fuse/guestmount.pod:89
21990 msgid ""
21991 "On other distros, no special group is required.  It is not necessary on "
21992 "Fedora or Red Hat Enterprise Linux."
21993 msgstr ""
21994
21995 #. type: textblock
21996 #: ../fuse/guestmount.pod:100
21997 msgid "Add a block device or virtual machine image."
21998 msgstr ""
21999
22000 #. type: =item
22001 #: ../fuse/guestmount.pod:123
22002 msgid "B<--dir-cache-timeout N>"
22003 msgstr "B<--dir-cache-timeout N>"
22004
22005 #. type: textblock
22006 #: ../fuse/guestmount.pod:125
22007 msgid ""
22008 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
22009 "seconds.  The readdir cache [actually, there are several semi-independent "
22010 "caches] is populated after a readdir(2) call with the stat and extended "
22011 "attributes of the files in the directory, in anticipation that they will be "
22012 "requested soon after."
22013 msgstr ""
22014
22015 #. type: textblock
22016 #: ../fuse/guestmount.pod:131
22017 msgid ""
22018 "There is also a different attribute cache implemented by FUSE (see the FUSE "
22019 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
22020 "requests, only cache existing ones."
22021 msgstr ""
22022
22023 #. type: textblock
22024 #: ../fuse/guestmount.pod:151
22025 msgid ""
22026 "If you have untrusted raw-format guest disk images, you should use this "
22027 "option to specify the disk format.  This avoids a possible security problem "
22028 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
22029 "guestfs_add_drive_opts>."
22030 msgstr ""
22031
22032 #. type: =item
22033 #: ../fuse/guestmount.pod:156
22034 msgid "B<--fuse-help>"
22035 msgstr "B<--fuse-help>"
22036
22037 #. type: textblock
22038 #: ../fuse/guestmount.pod:158
22039 msgid "Display help on special FUSE options (see I<-o> below)."
22040 msgstr ""
22041
22042 #. type: textblock
22043 #: ../fuse/guestmount.pod:162
22044 msgid "Display brief help and exit."
22045 msgstr ""
22046
22047 #. type: textblock
22048 #: ../fuse/guestmount.pod:186
22049 msgid ""
22050 "Mount the named partition or logical volume on the given mountpoint B<in the "
22051 "guest> (this has nothing to do with mountpoints in the host)."
22052 msgstr ""
22053
22054 #. type: textblock
22055 #: ../fuse/guestmount.pod:189
22056 msgid ""
22057 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
22058 "something on C</>."
22059 msgstr ""
22060
22061 #. type: textblock
22062 #: ../fuse/guestmount.pod:206
22063 msgid ""
22064 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
22065 "unmounted.  If you specify this option, then we don't attempt to sync the "
22066 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
22067 msgstr ""
22068
22069 #. type: =item
22070 #: ../fuse/guestmount.pod:211
22071 msgid "B<-o option>"
22072 msgstr "B<-o параметр>"
22073
22074 #. type: =item
22075 #: ../fuse/guestmount.pod:213
22076 msgid "B<--option option>"
22077 msgstr "B<--option параметр>"
22078
22079 #. type: textblock
22080 #: ../fuse/guestmount.pod:215
22081 msgid "Pass extra options to FUSE."
22082 msgstr ""
22083
22084 #. type: textblock
22085 #: ../fuse/guestmount.pod:217
22086 msgid ""
22087 "To get a list of all the extra options supported by FUSE, use the command "
22088 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22089 "of them are a good idea."
22090 msgstr ""
22091
22092 #. type: verbatim
22093 #: ../fuse/guestmount.pod:221
22094 #, no-wrap
22095 msgid ""
22096 " guestmount --fuse-help\n"
22097 "\n"
22098 msgstr ""
22099
22100 #. type: textblock
22101 #: ../fuse/guestmount.pod:223
22102 msgid "Some potentially useful FUSE options:"
22103 msgstr ""
22104
22105 #. type: =item
22106 #: ../fuse/guestmount.pod:227
22107 msgid "B<-o allow_other>"
22108 msgstr ""
22109
22110 #. type: textblock
22111 #: ../fuse/guestmount.pod:229
22112 msgid "Allow other users to see the filesystem."
22113 msgstr ""
22114
22115 #. type: =item
22116 #: ../fuse/guestmount.pod:231
22117 msgid "B<-o attr_timeout=N>"
22118 msgstr "B<-o attr_timeout=N>"
22119
22120 #. type: textblock
22121 #: ../fuse/guestmount.pod:233
22122 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22123 msgstr ""
22124
22125 #. type: =item
22126 #: ../fuse/guestmount.pod:235
22127 msgid "B<-o kernel_cache>"
22128 msgstr ""
22129
22130 #. type: textblock
22131 #: ../fuse/guestmount.pod:237
22132 msgid ""
22133 "Allow the kernel to cache files (reduces the number of reads that have to go "
22134 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22135 "afford the extra memory usage."
22136 msgstr ""
22137
22138 #. type: =item
22139 #: ../fuse/guestmount.pod:241
22140 msgid "B<-o uid=N> B<-o gid=N>"
22141 msgstr "B<-o uid=N> B<-o gid=N>"
22142
22143 #. type: textblock
22144 #: ../fuse/guestmount.pod:243
22145 msgid ""
22146 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22147 "the chosen values."
22148 msgstr ""
22149
22150 #. type: textblock
22151 #: ../fuse/guestmount.pod:252
22152 msgid ""
22153 "Add devices and mount everything read-only.  Also disallow writes and make "
22154 "the disk appear read-only to FUSE."
22155 msgstr ""
22156
22157 #. type: textblock
22158 #: ../fuse/guestmount.pod:255
22159 msgid ""
22160 "This is highly recommended if you are not going to edit the guest disk.  If "
22161 "the guest is running and this option is I<not> supplied, then there is a "
22162 "strong risk of disk corruption in the guest.  We try to prevent this from "
22163 "happening, but it is not always possible."
22164 msgstr ""
22165
22166 #. type: textblock
22167 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
22168 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22169 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22170
22171 #. type: textblock
22172 #: ../fuse/guestmount.pod:264
22173 msgid "Enable SELinux support for the guest."
22174 msgstr ""
22175
22176 #. type: textblock
22177 #: ../fuse/guestmount.pod:270
22178 msgid "Enable verbose messages from underlying libguestfs."
22179 msgstr ""
22180
22181 #. type: textblock
22182 #: ../fuse/guestmount.pod:276
22183 msgid "Display the program version and exit."
22184 msgstr ""
22185
22186 #. type: textblock
22187 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22188 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
22189 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22190 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22191
22192 #. type: =item
22193 #: ../fuse/guestmount.pod:289
22194 msgid "B<--trace>"
22195 msgstr "B<--trace>"
22196
22197 #. type: textblock
22198 #: ../fuse/guestmount.pod:291
22199 msgid "Trace libguestfs calls and entry into each FUSE function."
22200 msgstr ""
22201
22202 #. type: textblock
22203 #: ../fuse/guestmount.pod:293
22204 msgid "This also stops the daemon from forking into the background."
22205 msgstr ""
22206
22207 #. type: textblock
22208 #: ../fuse/guestmount.pod:319
22209 msgid ""
22210 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22211 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22212 "net/>."
22213 msgstr ""
22214 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22215 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22216 "net/>."
22217
22218 #. type: textblock
22219 #: ../fuse/guestmount.pod:334
22220 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22221 msgstr ""
22222
22223 #. type: textblock
22224 #: ../inspector/virt-inspector.pod:5
22225 msgid ""
22226 "virt-inspector - Display operating system version and other information "
22227 "about a virtual machine"
22228 msgstr ""
22229
22230 #. type: verbatim
22231 #: ../inspector/virt-inspector.pod:9
22232 #, no-wrap
22233 msgid ""
22234 " virt-inspector [--options] -d domname\n"
22235 "\n"
22236 msgstr ""
22237
22238 #. type: verbatim
22239 #: ../inspector/virt-inspector.pod:11
22240 #, no-wrap
22241 msgid ""
22242 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22243 "\n"
22244 msgstr ""
22245
22246 #. type: verbatim
22247 #: ../inspector/virt-inspector.pod:15
22248 #, no-wrap
22249 msgid ""
22250 " virt-inspector domname\n"
22251 "\n"
22252 msgstr ""
22253
22254 #. type: verbatim
22255 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
22256 #, no-wrap
22257 msgid ""
22258 " virt-inspector disk.img [disk.img ...]\n"
22259 "\n"
22260 msgstr ""
22261
22262 #. type: textblock
22263 #: ../inspector/virt-inspector.pod:21
22264 msgid ""
22265 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22266 "determine the version of the operating system and other information about "
22267 "the virtual machine."
22268 msgstr ""
22269
22270 #. type: textblock
22271 #: ../inspector/virt-inspector.pod:25
22272 msgid "Virt-inspector produces XML output for feeding into other programs."
22273 msgstr ""
22274
22275 #. type: textblock
22276 #: ../inspector/virt-inspector.pod:27
22277 msgid ""
22278 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22279 "the libvirt domain (see: C<virsh list --all>)."
22280 msgstr ""
22281
22282 #. type: textblock
22283 #: ../inspector/virt-inspector.pod:30
22284 msgid ""
22285 "You can also run virt-inspector directly on disk images from a single "
22286 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22287 "has several block devices, in which case you should list several I<-a> "
22288 "options one after another, with the first corresponding to the guest's C</"
22289 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22290 msgstr ""
22291
22292 #. type: textblock
22293 #: ../inspector/virt-inspector.pod:37
22294 msgid ""
22295 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22296 "keys and similar."
22297 msgstr ""
22298
22299 #. type: textblock
22300 #: ../inspector/virt-inspector.pod:40
22301 msgid ""
22302 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22303 "inspect several virtual machines, you have to run virt-inspector several "
22304 "times (for example, from a shell script for-loop)."
22305 msgstr ""
22306
22307 #. type: textblock
22308 #: ../inspector/virt-inspector.pod:45
22309 msgid ""
22310 "Because virt-inspector needs direct access to guest images, it won't "
22311 "normally work over remote libvirt connections."
22312 msgstr ""
22313
22314 #. type: textblock
22315 #: ../inspector/virt-inspector.pod:48
22316 msgid ""
22317 "All of the information available from virt-inspector is also available "
22318 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22319 "The same information can also be fetched using guestfish or via libguestfs "
22320 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22321 "WITH OTHER PROGRAMMING LANGUAGES>)."
22322 msgstr ""
22323
22324 #. type: textblock
22325 #: ../inspector/virt-inspector.pod:81
22326 msgid ""
22327 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22328 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22329 "at all."
22330 msgstr ""
22331
22332 #. type: textblock
22333 #: ../inspector/virt-inspector.pod:94
22334 msgid ""
22335 "When prompting for keys and passphrases, virt-inspector normally turns "
22336 "echoing off so you cannot see what you are typing.  If you are not worried "
22337 "about Tempest attacks and there is no one else in the room you can specify "
22338 "this flag to see what you are typing."
22339 msgstr ""
22340
22341 #. type: textblock
22342 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22343 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22344 #: ../tools/virt-win-reg.pl:144
22345 msgid ""
22346 "Specify the format of disk images given on the command line.  If this is "
22347 "omitted then the format is autodetected from the content of the disk image."
22348 msgstr ""
22349
22350 #. type: textblock
22351 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22352 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22353 #: ../tools/virt-win-reg.pl:148
22354 msgid ""
22355 "If disk images are requested from libvirt, then this program asks libvirt "
22356 "for this information.  In this case, the value of the format parameter is "
22357 "ignored."
22358 msgstr ""
22359
22360 #. type: textblock
22361 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
22362 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132
22363 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22364 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22365 msgid ""
22366 "If working with untrusted raw-format guest disk images, you should ensure "
22367 "the format is always specified."
22368 msgstr ""
22369
22370 #. type: textblock
22371 #: ../inspector/virt-inspector.pod:139
22372 msgid "Previous versions of virt-inspector allowed you to write either:"
22373 msgstr ""
22374
22375 #. type: verbatim
22376 #: ../inspector/virt-inspector.pod:145
22377 #, no-wrap
22378 msgid ""
22379 " virt-inspector guestname\n"
22380 "\n"
22381 msgstr ""
22382
22383 #. type: =head1
22384 #: ../inspector/virt-inspector.pod:153
22385 msgid "XML FORMAT"
22386 msgstr ""
22387
22388 #. type: textblock
22389 #: ../inspector/virt-inspector.pod:155
22390 msgid ""
22391 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22392 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22393 "just an overview."
22394 msgstr ""
22395
22396 #. type: textblock
22397 #: ../inspector/virt-inspector.pod:159
22398 msgid ""
22399 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22400 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22401 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22402 "which is vanishingly rare in real world VMs."
22403 msgstr ""
22404
22405 #. type: =head2
22406 #: ../inspector/virt-inspector.pod:164
22407 msgid "E<lt>operatingsystemE<gt>"
22408 msgstr ""
22409
22410 #. type: textblock
22411 #: ../inspector/virt-inspector.pod:166
22412 msgid ""
22413 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22414 "describe the operating system, its architecture, the descriptive \"product "
22415 "name\" string, the type of OS and so on, as in this example:"
22416 msgstr ""
22417
22418 #. type: verbatim
22419 #: ../inspector/virt-inspector.pod:170
22420 #, no-wrap
22421 msgid ""
22422 " <operatingsystems>\n"
22423 "   <operatingsystem>\n"
22424 "     <root>/dev/sda2</root>\n"
22425 "     <name>windows</name>\n"
22426 "     <arch>i386</arch>\n"
22427 "     <distro>windows</distro>\n"
22428 "     <product_name>Windows 7 Enterprise</product_name>\n"
22429 "     <product_variant>Client</product_variant>\n"
22430 "     <major_version>6</major_version>\n"
22431 "     <minor_version>1</minor_version>\n"
22432 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22433 "     <format>installed</format>\n"
22434 "\n"
22435 msgstr ""
22436
22437 #. type: textblock
22438 #: ../inspector/virt-inspector.pod:183
22439 msgid ""
22440 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22441 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22442 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22443 "architecture.  The other fields are fairly self-explanatory, but because "
22444 "these fields are taken directly from the libguestfs inspection API you can "
22445 "find precise information from L<guestfs(3)/INSPECTION>."
22446 msgstr ""
22447
22448 #. type: textblock
22449 #: ../inspector/virt-inspector.pod:191
22450 msgid ""
22451 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22452 "of view of libguestfs (block devices may have completely different names "
22453 "inside the VM itself)."
22454 msgstr ""
22455
22456 #. type: =head2
22457 #: ../inspector/virt-inspector.pod:195
22458 msgid "E<lt>mountpointsE<gt>"
22459 msgstr ""
22460
22461 #. type: textblock
22462 #: ../inspector/virt-inspector.pod:197
22463 msgid ""
22464 "Un*x-like guests typically have multiple filesystems which are mounted at "
22465 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22466 "element which looks like this:"
22467 msgstr ""
22468
22469 #. type: verbatim
22470 #: ../inspector/virt-inspector.pod:201
22471 #, no-wrap
22472 msgid ""
22473 " <operatingsystems>\n"
22474 "   <operatingsystem>\n"
22475 "     ...\n"
22476 "     <mountpoints>\n"
22477 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22478 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22479 "     </mountpoints>\n"
22480 "\n"
22481 msgstr ""
22482
22483 #. type: textblock
22484 #: ../inspector/virt-inspector.pod:209
22485 msgid ""
22486 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22487 "and may have completely different names inside the guest.  Only mountable "
22488 "filesystems appear in this list, not things like swap devices."
22489 msgstr ""
22490
22491 #. type: =head2
22492 #: ../inspector/virt-inspector.pod:214
22493 msgid "E<lt>filesystemsE<gt>"
22494 msgstr ""
22495
22496 #. type: textblock
22497 #: ../inspector/virt-inspector.pod:216
22498 msgid ""
22499 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22500 "filesystems belonging to the guest, including swap and empty partitions.  "
22501 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22502 "this OS or shared with this OS and other OSes)."
22503 msgstr ""
22504
22505 #. type: textblock
22506 #: ../inspector/virt-inspector.pod:222
22507 msgid "You might see something like this:"
22508 msgstr ""
22509
22510 #. type: verbatim
22511 #: ../inspector/virt-inspector.pod:224
22512 #, no-wrap
22513 msgid ""
22514 " <operatingsystems>\n"
22515 "   <operatingsystem>\n"
22516 "     ...\n"
22517 "     <filesystems>\n"
22518 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22519 "         <type>ext4</type>\n"
22520 "         <label>Fedora-13-x86_64</label>\n"
22521 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22522 "       </filesystem>\n"
22523 "\n"
22524 msgstr ""
22525
22526 #. type: textblock
22527 #: ../inspector/virt-inspector.pod:234
22528 msgid ""
22529 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22530 "the label, and the UUID."
22531 msgstr ""
22532
22533 #. type: =head2
22534 #: ../inspector/virt-inspector.pod:237
22535 msgid "E<lt>applicationsE<gt>"
22536 msgstr ""
22537
22538 #. type: textblock
22539 #: ../inspector/virt-inspector.pod:239
22540 msgid ""
22541 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22542 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22543 "machine."
22544 msgstr ""
22545
22546 #. type: textblock
22547 #: ../inspector/virt-inspector.pod:243
22548 msgid ""
22549 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22550 "Typical values would be C<rpm> and C<deb>."
22551 msgstr ""
22552
22553 #. type: textblock
22554 #: ../inspector/virt-inspector.pod:246
22555 msgid ""
22556 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22557 "Typical values include C<yum>, C<up2date> and C<apt>"
22558 msgstr ""
22559
22560 #. type: textblock
22561 #: ../inspector/virt-inspector.pod:249
22562 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22563 msgstr ""
22564
22565 #. type: verbatim
22566 #: ../inspector/virt-inspector.pod:252
22567 #, no-wrap
22568 msgid ""
22569 " <operatingsystems>\n"
22570 "   <operatingsystem>\n"
22571 "     ...\n"
22572 "     <applications>\n"
22573 "       <application>\n"
22574 "         <name>coreutils</name>\n"
22575 "         <version>8.5</version>\n"
22576 "         <release>1</release>\n"
22577 "       </application>\n"
22578 "\n"
22579 msgstr ""
22580
22581 #. type: textblock
22582 #: ../inspector/virt-inspector.pod:262
22583 msgid ""
22584 "The version and release fields may not be available for some types guests.  "
22585 "Other fields are possible, see L<guestfs(3)/"
22586 "guestfs_inspect_list_applications>."
22587 msgstr ""
22588
22589 #. type: =head2
22590 #: ../inspector/virt-inspector.pod:266
22591 msgid "E<lt>drive_mappingsE<gt>"
22592 msgstr ""
22593
22594 #. type: textblock
22595 #: ../inspector/virt-inspector.pod:268
22596 msgid ""
22597 "For operating systems like Windows which use drive letters, virt-inspector "
22598 "is able to find out how drive letters map to filesystems."
22599 msgstr ""
22600
22601 #. type: verbatim
22602 #: ../inspector/virt-inspector.pod:272
22603 #, no-wrap
22604 msgid ""
22605 " <operatingsystems>\n"
22606 "   <operatingsystem>\n"
22607 "     ...\n"
22608 "     <drive_mappings>\n"
22609 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22610 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22611 "     </drive_mappings>\n"
22612 "\n"
22613 msgstr ""
22614
22615 #. type: textblock
22616 #: ../inspector/virt-inspector.pod:280
22617 msgid ""
22618 "In the example above, drive C maps to the filesystem on the second partition "
22619 "on the first disk, and drive E maps to the filesystem on the first partition "
22620 "on the second disk."
22621 msgstr ""
22622
22623 #. type: textblock
22624 #: ../inspector/virt-inspector.pod:284
22625 msgid ""
22626 "Note that this only covers permanent local filesystem mappings, not things "
22627 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22628 "here."
22629 msgstr ""
22630
22631 #. type: =head2
22632 #: ../inspector/virt-inspector.pod:288
22633 msgid "E<lt>iconE<gt>"
22634 msgstr ""
22635
22636 #. type: textblock
22637 #: ../inspector/virt-inspector.pod:290
22638 msgid ""
22639 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22640 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22641 "very large and high quality."
22642 msgstr ""
22643
22644 #. type: verbatim
22645 #: ../inspector/virt-inspector.pod:294
22646 #, no-wrap
22647 msgid ""
22648 " <operatingsystems>\n"
22649 "   <operatingsystem>\n"
22650 "     ...\n"
22651 "     <icon>\n"
22652 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22653 "       [... many lines of base64 data ...]\n"
22654 "     </icon>\n"
22655 "\n"
22656 msgstr ""
22657
22658 #. type: textblock
22659 #: ../inspector/virt-inspector.pod:302
22660 msgid ""
22661 "To display the icon, you have to extract it and convert the base64 data back "
22662 "to a binary file.  Use an XPath query or simply an editor to extract the "
22663 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22664 "to a PNG file:"
22665 msgstr ""
22666
22667 #. type: verbatim
22668 #: ../inspector/virt-inspector.pod:307
22669 #, no-wrap
22670 msgid ""
22671 " base64 -i -d < icon.data > icon.png\n"
22672 "\n"
22673 msgstr ""
22674
22675 #. type: =head2
22676 #: ../inspector/virt-inspector.pod:309
22677 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22678 msgstr ""
22679
22680 #. type: textblock
22681 #: ../inspector/virt-inspector.pod:311
22682 msgid ""
22683 "Virt-inspector can detect some operating system installers on install disks, "
22684 "live CDs, bootable USB keys and more."
22685 msgstr ""
22686
22687 #. type: textblock
22688 #: ../inspector/virt-inspector.pod:314
22689 msgid ""
22690 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22691 "fields may be present to indicate a live CD, network installer, or one part "
22692 "of a multipart CD.  For example:"
22693 msgstr ""
22694
22695 #. type: verbatim
22696 #: ../inspector/virt-inspector.pod:318
22697 #, no-wrap
22698 msgid ""
22699 " <operatingsystems>\n"
22700 "   <operatingsystem>\n"
22701 "     <root>/dev/sda</root>\n"
22702 "     <name>linux</name>\n"
22703 "     <arch>i386</arch>\n"
22704 "     <distro>ubuntu</distro>\n"
22705 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
22706 "     <major_version>10</major_version>\n"
22707 "     <minor_version>10</minor_version>\n"
22708 "     <format>installer</format>\n"
22709 "     <live/>\n"
22710 "\n"
22711 msgstr ""
22712
22713 #. type: =head1
22714 #: ../inspector/virt-inspector.pod:330
22715 msgid "USING XPATH"
22716 msgstr ""
22717
22718 #. type: textblock
22719 #: ../inspector/virt-inspector.pod:332
22720 msgid ""
22721 "You can use the XPath query language to select parts of the XML.  We "
22722 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
22723 msgstr ""
22724
22725 #. type: verbatim
22726 #: ../inspector/virt-inspector.pod:338
22727 #, no-wrap
22728 msgid ""
22729 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22730 " <filesystems>\n"
22731 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22732 "        <type>ext4</type>\n"
22733 " [...]\n"
22734 "\n"
22735 msgstr ""
22736
22737 #. type: verbatim
22738 #: ../inspector/virt-inspector.pod:344
22739 #, no-wrap
22740 msgid ""
22741 " $ virt-inspector -d Guest | \\\n"
22742 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22743 " ext4\n"
22744 "\n"
22745 msgstr ""
22746
22747 #. type: verbatim
22748 #: ../inspector/virt-inspector.pod:348
22749 #, no-wrap
22750 msgid ""
22751 " $ virt-inspector -d Guest | \\\n"
22752 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22753 " [displays the guest icon, if there is one]\n"
22754 "\n"
22755 msgstr ""
22756
22757 #. type: =head1
22758 #: ../inspector/virt-inspector.pod:359
22759 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22760 msgstr ""
22761
22762 #. type: textblock
22763 #: ../inspector/virt-inspector.pod:361
22764 msgid ""
22765 "Early versions of libguestfs shipped with a different virt-inspector program "
22766 "written in Perl (the current version is written in C).  The XML output of "
22767 "the Perl virt-inspector was different and it could also output in other "
22768 "formats like text."
22769 msgstr ""
22770
22771 #. type: textblock
22772 #: ../inspector/virt-inspector.pod:366
22773 msgid ""
22774 "The old virt-inspector is no longer supported or shipped with libguestfs."
22775 msgstr ""
22776
22777 #. type: textblock
22778 #: ../inspector/virt-inspector.pod:369
22779 msgid ""
22780 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22781 "versions of virt-inspector with different names:"
22782 msgstr ""
22783
22784 #. type: verbatim
22785 #: ../inspector/virt-inspector.pod:372
22786 #, no-wrap
22787 msgid ""
22788 " virt-inspector     Old Perl version.\n"
22789 " virt-inspector2    New C version.\n"
22790 "\n"
22791 msgstr ""
22792
22793 #. type: textblock
22794 #: ../inspector/virt-inspector.pod:382
22795 msgid ""
22796 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22797 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22798 msgstr ""
22799
22800 #. type: textblock
22801 #: ../inspector/virt-inspector.pod:399
22802 msgid "Matthew Booth L<mbooth@redhat.com>"
22803 msgstr ""
22804
22805 #. type: textblock
22806 #: ../java/examples/guestfs-java.pod:5
22807 msgid "guestfs-java - How to use libguestfs from Java"
22808 msgstr ""
22809
22810 #. type: verbatim
22811 #: ../java/examples/guestfs-java.pod:9
22812 #, no-wrap
22813 msgid ""
22814 " import com.redhat.et.libguestfs.*;\n"
22815 " \n"
22816 msgstr ""
22817
22818 #. type: verbatim
22819 #: ../java/examples/guestfs-java.pod:11
22820 #, no-wrap
22821 msgid ""
22822 " GuestFS g = new GuestFS ();\n"
22823 " g.add_drive_opts (\"disk.img\", null);\n"
22824 " g.launch ();\n"
22825 "\n"
22826 msgstr ""
22827
22828 #. type: textblock
22829 #: ../java/examples/guestfs-java.pod:17
22830 msgid ""
22831 "This manual page documents how to call libguestfs from the Java programming "
22832 "language.  This page just documents the differences from the C API and gives "
22833 "some examples.  If you are not familiar with using libguestfs, you also need "
22834 "to read L<guestfs(3)>."
22835 msgstr ""
22836
22837 #. type: =head2
22838 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22839 msgid "CLOSING THE HANDLE"
22840 msgstr ""
22841
22842 #. type: textblock
22843 #: ../java/examples/guestfs-java.pod:24
22844 msgid ""
22845 "The handle is closed when it is reaped by the garbage collector.  Because "
22846 "libguestfs handles include a lot of state, it is also possible to close (and "
22847 "hence free) them explicitly by calling the C<close> method."
22848 msgstr ""
22849
22850 #. type: =head2
22851 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22852 #: ../python/examples/guestfs-python.pod:21
22853 #: ../ruby/examples/guestfs-ruby.pod:22
22854 msgid "EXCEPTIONS"
22855 msgstr "ВИНЯТКИ"
22856
22857 #. type: textblock
22858 #: ../java/examples/guestfs-java.pod:31
22859 msgid ""
22860 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22861 "exception.  This has a single parameter which is the error message (a "
22862 "C<String>)."
22863 msgstr ""
22864
22865 #. type: textblock
22866 #: ../java/examples/guestfs-java.pod:35
22867 msgid "Calling any method on a closed handle raises the same exception."
22868 msgstr ""
22869
22870 #. type: textblock
22871 #: ../java/examples/guestfs-java.pod:47
22872 msgid ""
22873 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22874 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22875 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22876 msgstr ""
22877
22878 #. type: textblock
22879 #: ../ocaml/examples/guestfs-ocaml.pod:5
22880 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22881 msgstr ""
22882
22883 #. type: textblock
22884 #: ../ocaml/examples/guestfs-ocaml.pod:9
22885 msgid "Module style:"
22886 msgstr ""
22887
22888 #. type: verbatim
22889 #: ../ocaml/examples/guestfs-ocaml.pod:11
22890 #, no-wrap
22891 msgid ""
22892 " let g = Guestfs.create () in\n"
22893 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22894 " Guestfs.launch g;\n"
22895 "\n"
22896 msgstr ""
22897
22898 #. type: textblock
22899 #: ../ocaml/examples/guestfs-ocaml.pod:15
22900 msgid "Object-oriented style:"
22901 msgstr ""
22902
22903 #. type: verbatim
22904 #: ../ocaml/examples/guestfs-ocaml.pod:17
22905 #, no-wrap
22906 msgid ""
22907 " let g = new Guestfs.guestfs () in\n"
22908 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22909 " g#launch ();\n"
22910 "\n"
22911 msgstr ""
22912
22913 #. type: verbatim
22914 #: ../ocaml/examples/guestfs-ocaml.pod:21
22915 #, no-wrap
22916 msgid ""
22917 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22918 "or:\n"
22919 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22920 "\n"
22921 msgstr ""
22922
22923 #. type: textblock
22924 #: ../ocaml/examples/guestfs-ocaml.pod:27
22925 msgid ""
22926 "This manual page documents how to call libguestfs from the OCaml programming "
22927 "language.  This page just documents the differences from the C API and gives "
22928 "some examples.  If you are not familiar with using libguestfs, you also need "
22929 "to read L<guestfs(3)>."
22930 msgstr ""
22931
22932 #. type: =head2
22933 #: ../ocaml/examples/guestfs-ocaml.pod:32
22934 msgid "PROGRAMMING STYLES"
22935 msgstr ""
22936
22937 #. type: textblock
22938 #: ../ocaml/examples/guestfs-ocaml.pod:34
22939 msgid ""
22940 "There are two different programming styles supported by the OCaml bindings.  "
22941 "You can use a module style, with each C function mapped to an OCaml function:"
22942 msgstr ""
22943
22944 #. type: verbatim
22945 #: ../ocaml/examples/guestfs-ocaml.pod:38
22946 #, no-wrap
22947 msgid ""
22948 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22949 "\n"
22950 msgstr ""
22951
22952 #. type: textblock
22953 #: ../ocaml/examples/guestfs-ocaml.pod:40
22954 msgid "becomes:"
22955 msgstr ""
22956
22957 #. type: verbatim
22958 #: ../ocaml/examples/guestfs-ocaml.pod:42
22959 #, no-wrap
22960 msgid ""
22961 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22962 "\n"
22963 msgstr ""
22964
22965 #. type: textblock
22966 #: ../ocaml/examples/guestfs-ocaml.pod:44
22967 msgid ""
22968 "Alternately you can use an object-oriented style, calling methods on the "
22969 "class C<Guestfs.guestfs>:"
22970 msgstr ""
22971
22972 #. type: verbatim
22973 #: ../ocaml/examples/guestfs-ocaml.pod:47
22974 #, no-wrap
22975 msgid ""
22976 " method set_verbose : bool -> unit\n"
22977 "\n"
22978 msgstr ""
22979
22980 #. type: textblock
22981 #: ../ocaml/examples/guestfs-ocaml.pod:49
22982 msgid ""
22983 "The object-oriented style is usually briefer, and the minor performance "
22984 "penalty isn't noticable in the general overhead of performing libguestfs "
22985 "functions."
22986 msgstr ""
22987
22988 #. type: textblock
22989 #: ../ocaml/examples/guestfs-ocaml.pod:55
22990 msgid ""
22991 "The handle is closed when it is reaped by the garbage collector.  Because "
22992 "libguestfs handles include a lot of state, it is also possible to close (and "
22993 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22994 "method."
22995 msgstr ""
22996
22997 #. type: textblock
22998 #: ../ocaml/examples/guestfs-ocaml.pod:62
22999 msgid ""
23000 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
23001 "exception.  This has a single parameter which is the error message (a "
23002 "string)."
23003 msgstr ""
23004
23005 #. type: textblock
23006 #: ../ocaml/examples/guestfs-ocaml.pod:66
23007 msgid ""
23008 "Calling any function/method on a closed handle raises C<Guestfs."
23009 "Handle_closed>.  The single parameter is the name of the function that you "
23010 "called."
23011 msgstr ""
23012
23013 #. type: textblock
23014 #: ../ocaml/examples/guestfs-ocaml.pod:80
23015 msgid ""
23016 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23017 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
23018 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
23019 msgstr ""
23020
23021 #. type: textblock
23022 #: ../perl/examples/guestfs-perl.pod:5
23023 msgid "guestfs-perl - How to use libguestfs from Perl"
23024 msgstr ""
23025
23026 #. type: verbatim
23027 #: ../perl/examples/guestfs-perl.pod:9
23028 #, no-wrap
23029 msgid ""
23030 " use Sys::Guestfs;\n"
23031 " \n"
23032 msgstr ""
23033
23034 #. type: verbatim
23035 #: ../perl/examples/guestfs-perl.pod:11
23036 #, no-wrap
23037 msgid ""
23038 " my $h = Sys::Guestfs->new ();\n"
23039 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
23040 " $h->launch ();\n"
23041 " $h->mount_options ('', '/dev/sda1', '/');\n"
23042 " $h->touch ('/hello');\n"
23043 " $h->sync ();\n"
23044 "\n"
23045 msgstr ""
23046
23047 #. type: textblock
23048 #: ../perl/examples/guestfs-perl.pod:20
23049 msgid ""
23050 "This manual page documents how to call libguestfs from the Perl programming "
23051 "language.  This page just documents the differences from the C API and gives "
23052 "some examples.  If you are not familiar with using libguestfs, you also need "
23053 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
23054 msgstr ""
23055
23056 #. type: =head2
23057 #: ../perl/examples/guestfs-perl.pod:26
23058 msgid "ERRORS"
23059 msgstr "ПОМИЛКИ"
23060
23061 #. type: textblock
23062 #: ../perl/examples/guestfs-perl.pod:28
23063 msgid ""
23064 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
23065 ">)."
23066 msgstr ""
23067
23068 #. type: textblock
23069 #: ../perl/examples/guestfs-perl.pod:41
23070 msgid ""
23071 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
23072 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
23073 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23074 msgstr ""
23075
23076 #. type: textblock
23077 #: ../python/examples/guestfs-python.pod:5
23078 msgid "guestfs-python - How to use libguestfs from Python"
23079 msgstr ""
23080
23081 #. type: verbatim
23082 #: ../python/examples/guestfs-python.pod:9
23083 #, no-wrap
23084 msgid ""
23085 " import guestfs\n"
23086 " g = guestfs.GuestFS ()\n"
23087 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23088 " g.launch\n"
23089 "\n"
23090 msgstr ""
23091
23092 #. type: textblock
23093 #: ../python/examples/guestfs-python.pod:16
23094 msgid ""
23095 "This manual page documents how to call libguestfs from the Python "
23096 "programming language.  This page just documents the differences from the C "
23097 "API and gives some examples.  If you are not familiar with using libguestfs, "
23098 "you also need to read L<guestfs(3)>."
23099 msgstr ""
23100
23101 #. type: textblock
23102 #: ../python/examples/guestfs-python.pod:23
23103 msgid ""
23104 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23105 "single string argument which is the error message."
23106 msgstr ""
23107
23108 #. type: =head2
23109 #: ../python/examples/guestfs-python.pod:26
23110 msgid "MORE DOCUMENTATION"
23111 msgstr ""
23112
23113 #. type: textblock
23114 #: ../python/examples/guestfs-python.pod:28
23115 msgid "Type:"
23116 msgstr "Тип:"
23117
23118 #. type: verbatim
23119 #: ../python/examples/guestfs-python.pod:30
23120 #, no-wrap
23121 msgid ""
23122 " $ python\n"
23123 " >>> import guestfs\n"
23124 " >>> help (guestfs)\n"
23125 "\n"
23126 msgstr ""
23127
23128 #. type: textblock
23129 #: ../python/examples/guestfs-python.pod:44
23130 msgid ""
23131 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23132 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23133 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23134 msgstr ""
23135
23136 #. type: textblock
23137 #: ../rescue/virt-rescue.pod:5
23138 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23139 msgstr ""
23140
23141 #. type: verbatim
23142 #: ../rescue/virt-rescue.pod:9
23143 #, no-wrap
23144 msgid ""
23145 " virt-rescue [--options] -d domname\n"
23146 "\n"
23147 msgstr ""
23148
23149 #. type: verbatim
23150 #: ../rescue/virt-rescue.pod:11
23151 #, no-wrap
23152 msgid ""
23153 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23154 "\n"
23155 msgstr ""
23156
23157 #. type: verbatim
23158 #: ../rescue/virt-rescue.pod:15
23159 #, no-wrap
23160 msgid ""
23161 " virt-rescue [--options] domname\n"
23162 "\n"
23163 msgstr ""
23164
23165 #. type: verbatim
23166 #: ../rescue/virt-rescue.pod:17
23167 #, no-wrap
23168 msgid ""
23169 " virt-rescue [--options] disk.img [disk.img ...]\n"
23170 "\n"
23171 msgstr ""
23172
23173 #. type: textblock
23174 #: ../rescue/virt-rescue.pod:21
23175 msgid ""
23176 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23177 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23178 "you from doing this, but doesn't catch all cases."
23179 msgstr ""
23180
23181 #. type: textblock
23182 #: ../rescue/virt-rescue.pod:25
23183 msgid ""
23184 "However if you use the I<--ro> (read only) option, then you can attach a "
23185 "shell to a live virtual machine.  The results might be strange or "
23186 "inconsistent at times but you won't get disk corruption."
23187 msgstr ""
23188
23189 #. type: textblock
23190 #: ../rescue/virt-rescue.pod:31
23191 msgid ""
23192 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23193 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23194 "recovery tools which you can use to examine or rescue a virtual machine or "
23195 "disk image."
23196 msgstr ""
23197
23198 #. type: textblock
23199 #: ../rescue/virt-rescue.pod:36
23200 msgid ""
23201 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23202 "on disk image(s):"
23203 msgstr ""
23204
23205 #. type: verbatim
23206 #: ../rescue/virt-rescue.pod:39
23207 #, no-wrap
23208 msgid ""
23209 " virt-rescue -d GuestName\n"
23210 "\n"
23211 msgstr ""
23212
23213 #. type: verbatim
23214 #: ../rescue/virt-rescue.pod:41
23215 #, no-wrap
23216 msgid ""
23217 " virt-rescue --ro -a /path/to/disk.img\n"
23218 "\n"
23219 msgstr ""
23220
23221 #. type: verbatim
23222 #: ../rescue/virt-rescue.pod:43
23223 #, no-wrap
23224 msgid ""
23225 " virt-rescue -a /dev/sdc\n"
23226 "\n"
23227 msgstr ""
23228
23229 #. type: textblock
23230 #: ../rescue/virt-rescue.pod:45
23231 msgid "For live VMs you I<must> use the --ro option."
23232 msgstr ""
23233
23234 #. type: textblock
23235 #: ../rescue/virt-rescue.pod:47
23236 msgid ""
23237 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23238 "in an interactive bash shell where you can use many ordinary Linux "
23239 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23240 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23241 "is an empty directory called C</sysroot> where you can mount filesystems."
23242 msgstr ""
23243
23244 #. type: textblock
23245 #: ../rescue/virt-rescue.pod:54
23246 msgid ""
23247 "In the example below, we list logical volumes, then choose one to mount "
23248 "under C</sysroot>:"
23249 msgstr ""
23250
23251 #. type: verbatim
23252 #: ../rescue/virt-rescue.pod:57
23253 #, no-wrap
23254 msgid ""
23255 " ><rescue> lvs\n"
23256 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23257 " lv_root vg_f11x64 -wi-a-   8.83G\n"
23258 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
23259 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
23260 " ><rescue> ls /sysroot\n"
23261 "\n"
23262 msgstr ""
23263
23264 #. type: textblock
23265 #: ../rescue/virt-rescue.pod:64
23266 msgid ""
23267 "If you don't know what filesystems are available on the virtual machine then "
23268 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
23269 msgstr ""
23270
23271 #. type: textblock
23272 #: ../rescue/virt-rescue.pod:70
23273 msgid ""
23274 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23275 "virtual machine.  For example you can use it on a blank file if you want to "
23276 "partition that file (although we would recommend using L<guestfish(1)> "
23277 "instead as it is more suitable for this purpose).  You can even use virt-"
23278 "rescue on things like SD cards."
23279 msgstr ""
23280
23281 #. type: textblock
23282 #: ../rescue/virt-rescue.pod:76
23283 msgid ""
23284 "Virt-rescue does not require root.  You only need to run it as root if you "
23285 "need root to open the disk image."
23286 msgstr ""
23287
23288 #. type: textblock
23289 #: ../rescue/virt-rescue.pod:79
23290 msgid ""
23291 "This tool is just designed for quick interactive hacking on a virtual "
23292 "machine.  For more structured access to a virtual machine disk image, you "
23293 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23294 "make scripted changes to guests, use L<guestfish(1)>."
23295 msgstr ""
23296
23297 #. type: =item
23298 #: ../rescue/virt-rescue.pod:103
23299 msgid "B<--append kernelopts>"
23300 msgstr "B<--append параметри_ядра>"
23301
23302 #. type: textblock
23303 #: ../rescue/virt-rescue.pod:105
23304 msgid "Pass additional options to the rescue kernel."
23305 msgstr ""
23306
23307 #. type: verbatim
23308 #: ../rescue/virt-rescue.pod:135
23309 #, no-wrap
23310 msgid ""
23311 " virt-rescue --format=raw -a disk.img\n"
23312 "\n"
23313 msgstr ""
23314
23315 #. type: verbatim
23316 #: ../rescue/virt-rescue.pod:139
23317 #, no-wrap
23318 msgid ""
23319 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23320 "\n"
23321 msgstr ""
23322
23323 #. type: =item
23324 #: ../rescue/virt-rescue.pod:148
23325 msgid "B<-m MB>"
23326 msgstr "B<-m МБ>"
23327
23328 #. type: =item
23329 #: ../rescue/virt-rescue.pod:150
23330 msgid "B<--memsize MB>"
23331 msgstr "B<--memsize МБ>"
23332
23333 #. type: textblock
23334 #: ../rescue/virt-rescue.pod:152
23335 msgid ""
23336 "Change the amount of memory allocated to the rescue system.  The default is "
23337 "set by libguestfs and is small but adequate for running system tools.  The "
23338 "occasional program might need more memory.  The parameter is specified in "
23339 "megabytes."
23340 msgstr ""
23341
23342 #. type: =item
23343 #: ../rescue/virt-rescue.pod:157
23344 msgid "B<--network>"
23345 msgstr "B<--network>"
23346
23347 #. type: textblock
23348 #: ../rescue/virt-rescue.pod:159
23349 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23350 msgstr ""
23351
23352 #. type: textblock
23353 #: ../rescue/virt-rescue.pod:165
23354 msgid "Open the image read-only."
23355 msgstr ""
23356
23357 #. type: textblock
23358 #: ../rescue/virt-rescue.pod:175
23359 msgid ""
23360 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
23361 "SELINUX> before using this option."
23362 msgstr ""
23363
23364 #. type: =item
23365 #: ../rescue/virt-rescue.pod:178
23366 msgid "B<--smp> N"
23367 msgstr ""
23368
23369 #. type: textblock
23370 #: ../rescue/virt-rescue.pod:180
23371 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23372 msgstr ""
23373
23374 #. type: textblock
23375 #: ../rescue/virt-rescue.pod:198
23376 msgid ""
23377 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23378 "are done read-write."
23379 msgstr ""
23380
23381 #. type: textblock
23382 #: ../rescue/virt-rescue.pod:211
23383 msgid "Previous versions of virt-rescue allowed you to write either:"
23384 msgstr ""
23385
23386 #. type: verbatim
23387 #: ../rescue/virt-rescue.pod:213
23388 #, no-wrap
23389 msgid ""
23390 " virt-rescue disk.img [disk.img ...]\n"
23391 "\n"
23392 msgstr ""
23393
23394 #. type: verbatim
23395 #: ../rescue/virt-rescue.pod:217
23396 #, no-wrap
23397 msgid ""
23398 " virt-rescue guestname\n"
23399 "\n"
23400 msgstr ""
23401
23402 #. type: =head1
23403 #: ../rescue/virt-rescue.pod:225
23404 msgid "NETWORK"
23405 msgstr "МЕРЕЖА"
23406
23407 #. type: textblock
23408 #: ../rescue/virt-rescue.pod:227
23409 msgid ""
23410 "Adding the I<--network> option enables QEMU user networking in the rescue "
23411 "appliance.  There are some differences between user networking and ordinary "
23412 "networking:"
23413 msgstr ""
23414
23415 #. type: =item
23416 #: ../rescue/virt-rescue.pod:233
23417 msgid "ping does not work"
23418 msgstr ""
23419
23420 #. type: textblock
23421 #: ../rescue/virt-rescue.pod:235
23422 msgid ""
23423 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23424 "send the ping packets, and because virt-rescue must be able to run as non-"
23425 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
23426 "The ping command will appear to resolve addresses but will not be able to "
23427 "send or receive any packets.  This does not mean that the network is not "
23428 "working."
23429 msgstr ""
23430
23431 #. type: =item
23432 #: ../rescue/virt-rescue.pod:242
23433 msgid "cannot receive connections"
23434 msgstr ""
23435
23436 #. type: textblock
23437 #: ../rescue/virt-rescue.pod:244
23438 msgid "QEMU user networking cannot receive incoming connections."
23439 msgstr ""
23440
23441 #. type: =item
23442 #: ../rescue/virt-rescue.pod:246
23443 msgid "making TCP connections"
23444 msgstr ""
23445
23446 #. type: textblock
23447 #: ../rescue/virt-rescue.pod:248
23448 msgid ""
23449 "The virt-rescue appliance needs to be small and so does not include many "
23450 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23451 "make TCP connections from the shell using the magical C</dev/tcp/"
23452 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23453 msgstr ""
23454
23455 #. type: verbatim
23456 #: ../rescue/virt-rescue.pod:253
23457 #, no-wrap
23458 msgid ""
23459 " exec 3<>/dev/tcp/redhat.com/80\n"
23460 " echo \"GET /\" >&3\n"
23461 " cat <&3\n"
23462 "\n"
23463 msgstr ""
23464
23465 #. type: textblock
23466 #: ../rescue/virt-rescue.pod:257
23467 msgid "See L<bash(1)> for more details."
23468 msgstr ""
23469
23470 #. type: textblock
23471 #: ../rescue/virt-rescue.pod:263
23472 msgid ""
23473 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
23474 "ENVIRONMENT VARIABLES> for the complete list."
23475 msgstr ""
23476
23477 #. type: textblock
23478 #: ../rescue/virt-rescue.pod:290
23479 msgid ""
23480 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
23481 "libguestfs.org/>."
23482 msgstr ""
23483
23484 #. type: textblock
23485 #: ../resize/virt-resize.pod:5
23486 msgid "virt-resize - Resize a virtual machine disk"
23487 msgstr ""
23488
23489 #. type: verbatim
23490 #: ../resize/virt-resize.pod:9
23491 #, no-wrap
23492 msgid ""
23493 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23494 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23495 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23496 "\n"
23497 msgstr ""
23498
23499 #. type: textblock
23500 #: ../resize/virt-resize.pod:15
23501 msgid ""
23502 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23503 "larger or smaller overall, and resizing or deleting any partitions contained "
23504 "within."
23505 msgstr ""
23506
23507 #. type: textblock
23508 #: ../resize/virt-resize.pod:19
23509 msgid ""
23510 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23511 "not> be used on live virtual machines - for consistent results, shut the "
23512 "virtual machine down before resizing it."
23513 msgstr ""
23514
23515 #. type: textblock
23516 #: ../resize/virt-resize.pod:23
23517 msgid ""
23518 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23519 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23520 msgstr ""
23521
23522 #. type: =item
23523 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
23524 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
23525 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
23526 msgid "1."
23527 msgstr "1."
23528
23529 #. type: textblock
23530 #: ../resize/virt-resize.pod:33
23531 msgid ""
23532 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23533 "fill the extra 5GB of space."
23534 msgstr ""
23535
23536 #. type: verbatim
23537 #: ../resize/virt-resize.pod:36
23538 #, no-wrap
23539 msgid ""
23540 " virt-filesystems --long -h --all -a olddisk\n"
23541 " \n"
23542 msgstr ""
23543
23544 #. type: verbatim
23545 #: ../resize/virt-resize.pod:38
23546 #, no-wrap
23547 msgid ""
23548 " truncate -r olddisk newdisk\n"
23549 " truncate -s +5G newdisk\n"
23550 " \n"
23551 msgstr ""
23552
23553 #. type: verbatim
23554 #: ../resize/virt-resize.pod:41
23555 #, no-wrap
23556 msgid ""
23557 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23558 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23559 "\n"
23560 msgstr ""
23561
23562 #. type: =item
23563 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
23564 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
23565 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23566 msgid "2."
23567 msgstr "2."
23568
23569 #. type: textblock
23570 #: ../resize/virt-resize.pod:46
23571 msgid ""
23572 "As above, but make the /boot partition 200MB bigger, while giving the "
23573 "remaining space to /dev/sda2:"
23574 msgstr ""
23575
23576 #. type: verbatim
23577 #: ../resize/virt-resize.pod:49
23578 #, no-wrap
23579 msgid ""
23580 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23581 "   olddisk newdisk\n"
23582 "\n"
23583 msgstr ""
23584
23585 #. type: =item
23586 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
23587 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
23588 #: ../src/guestfs.pod:1451
23589 msgid "3."
23590 msgstr "3."
23591
23592 #. type: textblock
23593 #: ../resize/virt-resize.pod:54
23594 msgid ""
23595 "As in the first example, but expand a logical volume as the final step.  "
23596 "This is what you would typically use for Linux guests that use LVM:"
23597 msgstr ""
23598
23599 #. type: verbatim
23600 #: ../resize/virt-resize.pod:58
23601 #, no-wrap
23602 msgid ""
23603 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23604 "   olddisk newdisk\n"
23605 "\n"
23606 msgstr ""
23607
23608 #. type: =item
23609 #: ../resize/virt-resize.pod:61
23610 msgid "4."
23611 msgstr ""
23612
23613 #. type: textblock
23614 #: ../resize/virt-resize.pod:63
23615 msgid ""
23616 "As in the first example, but the output format will be qcow2 instead of a "
23617 "raw disk:"
23618 msgstr ""
23619
23620 #. type: verbatim
23621 #: ../resize/virt-resize.pod:66
23622 #, no-wrap
23623 msgid ""
23624 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23625 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23626 "\n"
23627 msgstr ""
23628
23629 #. type: =head1
23630 #: ../resize/virt-resize.pod:71
23631 msgid "DETAILED USAGE"
23632 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
23633
23634 #. type: =head2
23635 #: ../resize/virt-resize.pod:73
23636 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23637 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
23638
23639 #. type: =item
23640 #: ../resize/virt-resize.pod:77
23641 msgid "1. Shut down the virtual machine"
23642 msgstr ""
23643
23644 #. type: =item
23645 #: ../resize/virt-resize.pod:79
23646 msgid "2. Locate input disk image"
23647 msgstr ""
23648
23649 #. type: textblock
23650 #: ../resize/virt-resize.pod:81
23651 msgid ""
23652 "Locate the input disk image (ie. the file or device on the host containing "
23653 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23654 "dumpxml> like this to find the disk image name:"
23655 msgstr ""
23656
23657 #. type: verbatim
23658 #: ../resize/virt-resize.pod:85
23659 #, no-wrap
23660 msgid ""
23661 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23662 " Found 1 nodes:\n"
23663 " -- NODE --\n"
23664 " <source dev=\"/dev/vg/lv_guest\" />\n"
23665 "\n"
23666 msgstr ""
23667
23668 #. type: =item
23669 #: ../resize/virt-resize.pod:90
23670 msgid "3. Look at current sizing"
23671 msgstr ""
23672
23673 #. type: textblock
23674 #: ../resize/virt-resize.pod:92
23675 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23676 msgstr ""
23677
23678 #. type: verbatim
23679 #: ../resize/virt-resize.pod:95
23680 #, no-wrap
23681 msgid ""
23682 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23683 " Name       Type       Size  Parent\n"
23684 " /dev/sda1  partition  101M  /dev/sda\n"
23685 " /dev/sda2  partition  7.9G  /dev/sda\n"
23686 " /dev/sda   device     8.0G  -\n"
23687 "\n"
23688 msgstr ""
23689
23690 #. type: textblock
23691 #: ../resize/virt-resize.pod:101
23692 msgid ""
23693 "(This example is a virtual machine with an 8 GB disk which we would like to "
23694 "expand up to 10 GB)."
23695 msgstr ""
23696
23697 #. type: =item
23698 #: ../resize/virt-resize.pod:104
23699 msgid "4. Create output disk"
23700 msgstr ""
23701
23702 #. type: textblock
23703 #: ../resize/virt-resize.pod:106
23704 msgid ""
23705 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23706 "to store the resized output disk."
23707 msgstr ""
23708
23709 #. type: textblock
23710 #: ../resize/virt-resize.pod:109
23711 msgid ""
23712 "To store the resized disk image in a file, create a file of a suitable size:"
23713 msgstr ""
23714
23715 #. type: verbatim
23716 #: ../resize/virt-resize.pod:112
23717 #, no-wrap
23718 msgid ""
23719 " # rm -f outdisk\n"
23720 " # truncate -s 10G outdisk\n"
23721 "\n"
23722 msgstr ""
23723
23724 #. type: textblock
23725 #: ../resize/virt-resize.pod:115
23726 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23727 msgstr ""
23728
23729 #. type: verbatim
23730 #: ../resize/virt-resize.pod:117
23731 #, no-wrap
23732 msgid ""
23733 " # lvcreate -L 10G -n lv_name vg_name\n"
23734 "\n"
23735 msgstr ""
23736
23737 #. type: textblock
23738 #: ../resize/virt-resize.pod:119
23739 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23740 msgstr ""
23741
23742 #. type: verbatim
23743 #: ../resize/virt-resize.pod:121
23744 #, no-wrap
23745 msgid ""
23746 " # virsh pool-list\n"
23747 " # virsh vol-create-as poolname newvol 10G\n"
23748 "\n"
23749 msgstr ""
23750
23751 #. type: =item
23752 #: ../resize/virt-resize.pod:124
23753 msgid "5. Resize"
23754 msgstr "5. Зміна розміру"
23755
23756 #. type: textblock
23757 #: ../resize/virt-resize.pod:126
23758 msgid ""
23759 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23760 "file) and the output disk.  The output disk is the one created in the "
23761 "previous step."
23762 msgstr ""
23763
23764 #. type: verbatim
23765 #: ../resize/virt-resize.pod:130
23766 #, no-wrap
23767 msgid ""
23768 " # virt-resize indisk outdisk\n"
23769 "\n"
23770 msgstr ""
23771
23772 #. type: textblock
23773 #: ../resize/virt-resize.pod:132
23774 msgid ""
23775 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23776 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23777 "larger, then an extra, empty partition is created at the end of the disk "
23778 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23779 "error."
23780 msgstr ""
23781
23782 #. type: textblock
23783 #: ../resize/virt-resize.pod:138
23784 msgid ""
23785 "More realistically you'd want to expand existing partitions in the disk "
23786 "image by passing extra options (for the full list see the L</OPTIONS> "
23787 "section below)."
23788 msgstr ""
23789
23790 #. type: textblock
23791 #: ../resize/virt-resize.pod:142
23792 msgid ""
23793 "L</--expand> is the most useful option.  It expands the named partition "
23794 "within the disk to fill any extra space:"
23795 msgstr ""
23796
23797 #. type: verbatim
23798 #: ../resize/virt-resize.pod:145
23799 #, no-wrap
23800 msgid ""
23801 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23802 "\n"
23803 msgstr ""
23804
23805 #. type: textblock
23806 #: ../resize/virt-resize.pod:147
23807 msgid ""
23808 "(In this case, an extra partition is I<not> created at the end of the disk, "
23809 "because there will be no unused space)."
23810 msgstr ""
23811
23812 #. type: textblock
23813 #: ../resize/virt-resize.pod:150
23814 msgid ""
23815 "L</--resize> is the other commonly used option.  The following would "
23816 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23817 "rest of the available space:"
23818 msgstr ""
23819
23820 #. type: verbatim
23821 #: ../resize/virt-resize.pod:154
23822 #, no-wrap
23823 msgid ""
23824 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23825 "     indisk outdisk\n"
23826 "\n"
23827 msgstr ""
23828
23829 #. type: textblock
23830 #: ../resize/virt-resize.pod:157
23831 msgid ""
23832 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23833 "if virt-resize knows how, it will resize the contents, the equivalent of "
23834 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23835 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23836 "filesystems, so you would have to online resize them after booting the guest."
23837 msgstr ""
23838
23839 #. type: textblock
23840 #: ../resize/virt-resize.pod:164
23841 msgid "Other options are covered below."
23842 msgstr ""
23843
23844 #. type: =item
23845 #: ../resize/virt-resize.pod:166
23846 msgid "6. Test"
23847 msgstr "6. Перевірка"
23848
23849 #. type: textblock
23850 #: ../resize/virt-resize.pod:168
23851 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23852 msgstr ""
23853
23854 #. type: textblock
23855 #: ../resize/virt-resize.pod:170
23856 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23857 msgstr ""
23858
23859 #. type: verbatim
23860 #: ../resize/virt-resize.pod:172
23861 #, no-wrap
23862 msgid ""
23863 " # virsh edit guestname\n"
23864 "\n"
23865 msgstr ""
23866
23867 #. type: textblock
23868 #: ../resize/virt-resize.pod:174
23869 msgid ""
23870 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23871 "html#elementsDisks>"
23872 msgstr ""
23873
23874 #. type: textblock
23875 #: ../resize/virt-resize.pod:177
23876 msgid "Then start up the domain with the new, resized disk:"
23877 msgstr ""
23878
23879 #. type: verbatim
23880 #: ../resize/virt-resize.pod:179
23881 #, no-wrap
23882 msgid ""
23883 " # virsh start guestname\n"
23884 "\n"
23885 msgstr ""
23886
23887 #. type: textblock
23888 #: ../resize/virt-resize.pod:181
23889 msgid ""
23890 "and check that it still works.  See also the L</NOTES> section below for "
23891 "additional information."
23892 msgstr ""
23893
23894 #. type: =item
23895 #: ../resize/virt-resize.pod:184
23896 msgid "7. Resize LVs etc inside the guest"
23897 msgstr ""
23898
23899 #. type: textblock
23900 #: ../resize/virt-resize.pod:186
23901 msgid "(This can also be done offline using L<guestfish(1)>)"
23902 msgstr ""
23903
23904 #. type: textblock
23905 #: ../resize/virt-resize.pod:188
23906 msgid ""
23907 "Once the guest has booted you should see the new space available, at least "
23908 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23909 "may need to resize LVs inside PVs, and also resize filesystem types that "
23910 "virt-resize does not know how to expand."
23911 msgstr ""
23912
23913 #. type: =head2
23914 #: ../resize/virt-resize.pod:195
23915 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23916 msgstr ""
23917
23918 #. type: textblock
23919 #: ../resize/virt-resize.pod:197
23920 msgid ""
23921 "Shrinking is somewhat more complex than expanding, and only an overview is "
23922 "given here."
23923 msgstr ""
23924
23925 #. type: textblock
23926 #: ../resize/virt-resize.pod:200
23927 msgid ""
23928 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23929 "filesystems).  The user has to shrink content before passing the disk image "
23930 "to virt-resize, and virt-resize will check that the content has been shrunk "
23931 "properly."
23932 msgstr ""
23933
23934 #. type: textblock
23935 #: ../resize/virt-resize.pod:205
23936 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23937 msgstr ""
23938
23939 #. type: textblock
23940 #: ../resize/virt-resize.pod:207
23941 msgid ""
23942 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23943 "steps 3 and 4 above to allocate a new disk image."
23944 msgstr ""
23945
23946 #. type: textblock
23947 #: ../resize/virt-resize.pod:210
23948 msgid ""
23949 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23950 msgstr ""
23951
23952 #. type: =head2
23953 #: ../resize/virt-resize.pod:213
23954 msgid "IGNORING OR DELETING PARTITIONS"
23955 msgstr ""
23956
23957 #. type: textblock
23958 #: ../resize/virt-resize.pod:215
23959 msgid ""
23960 "virt-resize also gives a convenient way to ignore or delete partitions when "
23961 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23962 "up the copy where you don't care about the existing contents of a "
23963 "partition.  Deleting a partition removes it completely, but note that it "
23964 "also renumbers any partitions after the one which is deleted, which can "
23965 "leave some guests unbootable."
23966 msgstr ""
23967
23968 #. type: =head2
23969 #: ../resize/virt-resize.pod:222
23970 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23971 msgstr ""
23972
23973 #. type: textblock
23974 #: ../resize/virt-resize.pod:224
23975 msgid ""
23976 "If the input disk is in qcow2 format, then you may prefer that the output is "
23977 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23978 "the fly.  The output format is simply determined by the format of the empty "
23979 "output container that you provide.  Thus to create qcow2 output, use:"
23980 msgstr ""
23981
23982 #. type: verbatim
23983 #: ../resize/virt-resize.pod:230
23984 #, no-wrap
23985 msgid ""
23986 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23987 "\n"
23988 msgstr ""
23989
23990 #. type: textblock
23991 #: ../resize/virt-resize.pod:232
23992 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23993 msgstr ""
23994
23995 #. type: textblock
23996 #: ../resize/virt-resize.pod:234
23997 msgid "Similarly, to get non-sparse raw output use:"
23998 msgstr ""
23999
24000 #. type: verbatim
24001 #: ../resize/virt-resize.pod:236
24002 #, no-wrap
24003 msgid ""
24004 " fallocate -l size outdisk\n"
24005 "\n"
24006 msgstr ""
24007
24008 #. type: textblock
24009 #: ../resize/virt-resize.pod:238
24010 msgid ""
24011 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
24012 "dev/zero of=outdisk bs=1M count=..>)"
24013 msgstr ""
24014
24015 #. type: =head2
24016 #: ../resize/virt-resize.pod:241
24017 #, fuzzy
24018 #| msgid "PARTITIONING"
24019 msgid "LOGICAL PARTITIONS"
24020 msgstr "ПОДІЛ НА РОЗДІЛИ"
24021
24022 #. type: textblock
24023 #: ../resize/virt-resize.pod:243
24024 msgid ""
24025 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
24026 "tables) cannot be resized."
24027 msgstr ""
24028
24029 #. type: textblock
24030 #: ../resize/virt-resize.pod:246
24031 msgid ""
24032 "To understand what is going on, firstly one of the four partitions C</dev/"
24033 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
24034 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
24035 "type."
24036 msgstr ""
24037
24038 #. type: textblock
24039 #: ../resize/virt-resize.pod:251
24040 msgid "Logical partitions live inside the extended partition."
24041 msgstr ""
24042
24043 #. type: textblock
24044 #: ../resize/virt-resize.pod:253
24045 msgid ""
24046 "The extended partition can be expanded, but not shrunk (unless you force it, "
24047 "which is not advisable).  When the extended partition is copied across, all "
24048 "the logical partitions contained inside are copied over implicitly.  Virt-"
24049 "resize does not look inside the extended partition, so it copies the logical "
24050 "partitions blindly."
24051 msgstr ""
24052
24053 #. type: textblock
24054 #: ../resize/virt-resize.pod:259
24055 msgid ""
24056 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
24057 "line.  Doing so will give an error."
24058 msgstr ""
24059
24060 #. type: textblock
24061 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
24062 msgid "Display help."
24063 msgstr ""
24064
24065 #. type: =item
24066 #: ../resize/virt-resize.pod:270
24067 #, fuzzy
24068 #| msgid "B<--ignore part>"
24069 msgid "B<--align-first auto>"
24070 msgstr "B<--ignore розділ>"
24071
24072 #. type: =item
24073 #: ../resize/virt-resize.pod:272
24074 #, fuzzy
24075 #| msgid "B<--listen>"
24076 msgid "B<--align-first never>"
24077 msgstr "B<--listen>"
24078
24079 #. type: =item
24080 #: ../resize/virt-resize.pod:274
24081 msgid "B<--align-first always>"
24082 msgstr ""
24083
24084 #. type: textblock
24085 #: ../resize/virt-resize.pod:276
24086 msgid ""
24087 "Align the first partition for improved performance (see also the I<--"
24088 "alignment> option)."
24089 msgstr ""
24090
24091 #. type: textblock
24092 #: ../resize/virt-resize.pod:279
24093 msgid ""
24094 "The default is I<--align-first auto> which only aligns the first partition "
24095 "if it is safe to do so.  That is, only when we know how to fix the "
24096 "bootloader automatically, and at the moment that can only be done for "
24097 "Windows guests."
24098 msgstr ""
24099
24100 #. type: textblock
24101 #: ../resize/virt-resize.pod:284
24102 msgid ""
24103 "I<--align-first never> means we never move the first partition.  This is the "
24104 "safest option.  Try this if the guest does not boot after resizing."
24105 msgstr ""
24106
24107 #. type: textblock
24108 #: ../resize/virt-resize.pod:288
24109 msgid ""
24110 "I<--align-first always> means we always align the first partition (if it "
24111 "needs to be aligned).  For some guests this will break the bootloader, "
24112 "making the guest unbootable."
24113 msgstr ""
24114
24115 #. type: =item
24116 #: ../resize/virt-resize.pod:292
24117 #, fuzzy
24118 #| msgid "B<--time-t>"
24119 msgid "B<--alignment N>"
24120 msgstr "B<--time-t>"
24121
24122 #. type: textblock
24123 #: ../resize/virt-resize.pod:294
24124 msgid ""
24125 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24126 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24127 msgstr ""
24128
24129 #. type: textblock
24130 #: ../resize/virt-resize.pod:298
24131 msgid ""
24132 "Assuming 512 byte sector size inside the guest, here are some suitable "
24133 "values for this:"
24134 msgstr ""
24135
24136 #. type: =item
24137 #: ../resize/virt-resize.pod:303
24138 msgid "I<--alignment 1> (512 bytes)"
24139 msgstr ""
24140
24141 #. type: textblock
24142 #: ../resize/virt-resize.pod:305
24143 msgid ""
24144 "The partitions would be packed together as closely as possible, but would be "
24145 "completely unaligned.  In some cases this can cause very poor performance.  "
24146 "See L<virt-alignment-scan(1)> for further details."
24147 msgstr ""
24148
24149 #. type: =item
24150 #: ../resize/virt-resize.pod:309
24151 msgid "I<--alignment 8> (4K)"
24152 msgstr ""
24153
24154 #. type: textblock
24155 #: ../resize/virt-resize.pod:311
24156 msgid ""
24157 "This would be the minimum acceptable alignment for reasonable performance on "
24158 "modern hosts."
24159 msgstr ""
24160
24161 #. type: =item
24162 #: ../resize/virt-resize.pod:314
24163 msgid "I<--alignment 128> (64K)"
24164 msgstr ""
24165
24166 #. type: textblock
24167 #: ../resize/virt-resize.pod:316
24168 msgid ""
24169 "This alignment provides good performance when the host is using high end "
24170 "network storage."
24171 msgstr ""
24172
24173 #. type: =item
24174 #: ../resize/virt-resize.pod:319
24175 msgid "I<--alignment 2048> (1M)"
24176 msgstr ""
24177
24178 #. type: textblock
24179 #: ../resize/virt-resize.pod:321
24180 msgid ""
24181 "This is the standard alignment used by all newly installed guests since "
24182 "around 2008."
24183 msgstr ""
24184
24185 #. type: =item
24186 #: ../resize/virt-resize.pod:326
24187 msgid "B<-d>"
24188 msgstr "B<-d>"
24189
24190 #. type: =item
24191 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
24192 #: ../tools/virt-win-reg.pl:120
24193 msgid "B<--debug>"
24194 msgstr "B<--debug>"
24195
24196 #. type: textblock
24197 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24198 msgid "Enable debugging messages."
24199 msgstr ""
24200
24201 #. type: =item
24202 #: ../resize/virt-resize.pod:332
24203 msgid "B<--delete part>"
24204 msgstr "B<--delete розділ>"
24205
24206 #. type: textblock
24207 #: ../resize/virt-resize.pod:334
24208 msgid ""
24209 "Delete the named partition.  It would be more accurate to describe this as "
24210 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24211 "the original disk image is left intact."
24212 msgstr ""
24213
24214 #. type: textblock
24215 #: ../resize/virt-resize.pod:338
24216 msgid ""
24217 "Note that when you delete a partition, then anything contained in the "
24218 "partition is also deleted.  Furthermore, this causes any partitions that "
24219 "come after to be I<renumbered>, which can easily make your guest unbootable."
24220 msgstr ""
24221
24222 #. type: textblock
24223 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
24224 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
24225 msgid "You can give this option multiple times."
24226 msgstr ""
24227
24228 #. type: =item
24229 #: ../resize/virt-resize.pod:345
24230 msgid "B<--expand part>"
24231 msgstr "B<--expand розділ>"
24232
24233 #. type: textblock
24234 #: ../resize/virt-resize.pod:347
24235 msgid ""
24236 "Expand the named partition so it uses up all extra space (space left over "
24237 "after any other resize changes that you request have been done)."
24238 msgstr ""
24239
24240 #. type: textblock
24241 #: ../resize/virt-resize.pod:350
24242 msgid ""
24243 "If virt-resize knows how, it will expand the direct content of the "
24244 "partition.  For example, if the partition is an LVM PV, it will expand the "
24245 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24246 "content it doesn't know about alone."
24247 msgstr ""
24248
24249 #. type: textblock
24250 #: ../resize/virt-resize.pod:355
24251 msgid "Currently virt-resize can resize:"
24252 msgstr ""
24253
24254 #. type: textblock
24255 #: ../resize/virt-resize.pod:361
24256 msgid "ext2, ext3 and ext4 filesystems."
24257 msgstr ""
24258
24259 #. type: textblock
24260 #: ../resize/virt-resize.pod:365
24261 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24262 msgstr ""
24263
24264 #. type: textblock
24265 #: ../resize/virt-resize.pod:367
24266 msgid ""
24267 "The filesystem must have been shut down consistently last time it was used.  "
24268 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24269 "consistency check, so at the first boot after resizing Windows will check "
24270 "the disk."
24271 msgstr ""
24272
24273 #. type: textblock
24274 #: ../resize/virt-resize.pod:374
24275 msgid ""
24276 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24277 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24278 "resize LVs as desired after boot."
24279 msgstr ""
24280
24281 #. type: textblock
24282 #: ../resize/virt-resize.pod:380
24283 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24284 msgstr ""
24285
24286 #. type: textblock
24287 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
24288 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24289 msgstr ""
24290
24291 #. type: =item
24292 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
24293 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24294 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24295 msgid "B<--format> raw"
24296 msgstr "B<--format> raw"
24297
24298 #. type: textblock
24299 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
24300 msgid ""
24301 "Specify the format of the input disk image.  If this flag is not given then "
24302 "it is auto-detected from the image itself."
24303 msgstr ""
24304
24305 #. type: textblock
24306 #: ../resize/virt-resize.pod:394
24307 msgid ""
24308 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24309 "AND NON-SPARSE RAW FORMATS>."
24310 msgstr ""
24311
24312 #. type: =item
24313 #: ../resize/virt-resize.pod:397
24314 msgid "B<--ignore part>"
24315 msgstr "B<--ignore розділ>"
24316
24317 #. type: textblock
24318 #: ../resize/virt-resize.pod:399
24319 msgid ""
24320 "Ignore the named partition.  Effectively this means the partition is "
24321 "allocated on the destination disk, but the content is not copied across from "
24322 "the source disk.  The content of the partition will be blank (all zero "
24323 "bytes)."
24324 msgstr ""
24325
24326 #. type: =item
24327 #: ../resize/virt-resize.pod:406
24328 msgid "B<--LV-expand logvol>"
24329 msgstr "B<--LV-expand логічний_том>"
24330
24331 #. type: textblock
24332 #: ../resize/virt-resize.pod:408
24333 msgid ""
24334 "This takes the logical volume and, as a final step, expands it to fill all "
24335 "the space available in its volume group.  A typical usage, assuming a Linux "
24336 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24337 "lv_root> would be:"
24338 msgstr ""
24339
24340 #. type: verbatim
24341 #: ../resize/virt-resize.pod:413
24342 #, no-wrap
24343 msgid ""
24344 " virt-resize indisk outdisk \\\n"
24345 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24346 "\n"
24347 msgstr ""
24348
24349 #. type: textblock
24350 #: ../resize/virt-resize.pod:416
24351 msgid ""
24352 "This would first expand the partition (and PV), and then expand the root "
24353 "device to fill the extra space in the PV."
24354 msgstr ""
24355
24356 #. type: textblock
24357 #: ../resize/virt-resize.pod:419
24358 msgid ""
24359 "The contents of the LV are also resized if virt-resize knows how to do "
24360 "that.  You can stop virt-resize from trying to expand the content by using "
24361 "the option I<--no-expand-content>."
24362 msgstr ""
24363
24364 #. type: textblock
24365 #: ../resize/virt-resize.pod:423
24366 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24367 msgstr ""
24368
24369 #. type: textblock
24370 #: ../resize/virt-resize.pod:425
24371 msgid ""
24372 "You can give this option multiple times, I<but> it doesn't make sense to do "
24373 "this unless the logical volumes you specify are all in different volume "
24374 "groups."
24375 msgstr ""
24376
24377 #. type: =item
24378 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
24379 msgid "B<--machine-readable>"
24380 msgstr ""
24381
24382 #. type: textblock
24383 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
24384 msgid ""
24385 "This option is used to make the output more machine friendly when being "
24386 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24387 msgstr ""
24388
24389 #. type: =item
24390 #: ../resize/virt-resize.pod:437
24391 msgid "B<--dryrun>"
24392 msgstr "B<--dryrun>"
24393
24394 #. type: textblock
24395 #: ../resize/virt-resize.pod:439
24396 msgid "Print a summary of what would be done, but don't do anything."
24397 msgstr ""
24398
24399 #. type: =item
24400 #: ../resize/virt-resize.pod:441
24401 msgid "B<--no-copy-boot-loader>"
24402 msgstr "B<--no-copy-boot-loader>"
24403
24404 #. type: textblock
24405 #: ../resize/virt-resize.pod:443
24406 msgid ""
24407 "By default, virt-resize copies over some sectors at the start of the disk "
24408 "(up to the beginning of the first partition).  Commonly these sectors "
24409 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24410 "in order for the guest to boot correctly."
24411 msgstr ""
24412
24413 #. type: textblock
24414 #: ../resize/virt-resize.pod:448
24415 msgid ""
24416 "If you specify this flag, then this initial copy is not done.  You may need "
24417 "to reinstall the boot loader in this case."
24418 msgstr ""
24419
24420 #. type: =item
24421 #: ../resize/virt-resize.pod:451
24422 msgid "B<--no-extra-partition>"
24423 msgstr "B<--no-extra-partition>"
24424
24425 #. type: textblock
24426 #: ../resize/virt-resize.pod:453
24427 msgid ""
24428 "By default, virt-resize creates an extra partition if there is any extra, "
24429 "unused space after all resizing has happened.  Use this option to prevent "
24430 "the extra partition from being created.  If you do this then the extra space "
24431 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24432 "tool in the guest."
24433 msgstr ""
24434
24435 #. type: textblock
24436 #: ../resize/virt-resize.pod:459
24437 msgid ""
24438 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24439 "will be created."
24440 msgstr ""
24441
24442 #. type: =item
24443 #: ../resize/virt-resize.pod:462
24444 msgid "B<--no-expand-content>"
24445 msgstr "B<--no-expand-content>"
24446
24447 #. type: textblock
24448 #: ../resize/virt-resize.pod:464
24449 msgid ""
24450 "By default, virt-resize will try to expand the direct contents of "
24451 "partitions, if it knows how (see I<--expand> option above)."
24452 msgstr ""
24453
24454 #. type: textblock
24455 #: ../resize/virt-resize.pod:467
24456 msgid ""
24457 "If you give the I<--no-expand-content> option then virt-resize will not "
24458 "attempt this."
24459 msgstr ""
24460
24461 #. type: =item
24462 #: ../resize/virt-resize.pod:470
24463 msgid "B<--ntfsresize-force>"
24464 msgstr "B<--ntfsresize-force>"
24465
24466 #. type: textblock
24467 #: ../resize/virt-resize.pod:472
24468 msgid ""
24469 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24470 "the NTFS disk is marked as needing a consistency check.  You have to use "
24471 "this option if you want to resize a Windows guest multiple times without "
24472 "booting into Windows between each resize."
24473 msgstr ""
24474
24475 #. type: =item
24476 #: ../resize/virt-resize.pod:478
24477 msgid "B<--output-format> raw"
24478 msgstr "B<--output-format> raw"
24479
24480 #. type: textblock
24481 #: ../resize/virt-resize.pod:480
24482 msgid ""
24483 "Specify the format of the output disk image.  If this flag is not given then "
24484 "it is auto-detected from the image itself."
24485 msgstr ""
24486
24487 #. type: textblock
24488 #: ../resize/virt-resize.pod:486
24489 msgid ""
24490 "Note that this option I<does not create> the output format.  This option "
24491 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24492 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
24493 "SPARSE RAW FORMATS>."
24494 msgstr ""
24495
24496 #. type: textblock
24497 #: ../resize/virt-resize.pod:495
24498 msgid "Don't print the summary."
24499 msgstr ""
24500
24501 #. type: =item
24502 #: ../resize/virt-resize.pod:497
24503 msgid "B<--resize part=size>"
24504 msgstr "B<--resize розділ=розмір>"
24505
24506 #. type: textblock
24507 #: ../resize/virt-resize.pod:499
24508 msgid ""
24509 "Resize the named partition (expanding or shrinking it) so that it has the "
24510 "given size."
24511 msgstr ""
24512
24513 #. type: textblock
24514 #: ../resize/virt-resize.pod:502
24515 msgid ""
24516 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24517 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24518 "size; or as a relative number or percentage.  For example:"
24519 msgstr ""
24520
24521 #. type: verbatim
24522 #: ../resize/virt-resize.pod:508
24523 #, no-wrap
24524 msgid ""
24525 " --resize /dev/sda2=10G\n"
24526 "\n"
24527 msgstr ""
24528
24529 #. type: verbatim
24530 #: ../resize/virt-resize.pod:510
24531 #, no-wrap
24532 msgid ""
24533 " --resize /dev/sda4=90%\n"
24534 "\n"
24535 msgstr ""
24536
24537 #. type: verbatim
24538 #: ../resize/virt-resize.pod:512
24539 #, no-wrap
24540 msgid ""
24541 " --resize /dev/sda2=+1G\n"
24542 "\n"
24543 msgstr ""
24544
24545 #. type: verbatim
24546 #: ../resize/virt-resize.pod:514
24547 #, no-wrap
24548 msgid ""
24549 " --resize /dev/sda2=-200M\n"
24550 "\n"
24551 msgstr ""
24552
24553 #. type: verbatim
24554 #: ../resize/virt-resize.pod:516
24555 #, no-wrap
24556 msgid ""
24557 " --resize /dev/sda1=+128K\n"
24558 "\n"
24559 msgstr ""
24560
24561 #. type: verbatim
24562 #: ../resize/virt-resize.pod:518
24563 #, no-wrap
24564 msgid ""
24565 " --resize /dev/sda1=+10%\n"
24566 "\n"
24567 msgstr ""
24568
24569 #. type: verbatim
24570 #: ../resize/virt-resize.pod:520
24571 #, no-wrap
24572 msgid ""
24573 " --resize /dev/sda1=-10%\n"
24574 "\n"
24575 msgstr ""
24576
24577 #. type: textblock
24578 #: ../resize/virt-resize.pod:522
24579 msgid ""
24580 "You can increase the size of any partition.  Virt-resize will expand the "
24581 "direct content of the partition if it knows how (see I<--expand> below)."
24582 msgstr ""
24583
24584 #. type: textblock
24585 #: ../resize/virt-resize.pod:526
24586 msgid ""
24587 "You can only I<decrease> the size of partitions that contain filesystems or "
24588 "PVs which have already been shrunk.  Virt-resize will check this has been "
24589 "done before proceeding, or else will print an error (see also I<--resize-"
24590 "force>)."
24591 msgstr ""
24592
24593 #. type: =item
24594 #: ../resize/virt-resize.pod:533
24595 msgid "B<--resize-force part=size>"
24596 msgstr "B<--resize-force розділ=розмір>"
24597
24598 #. type: textblock
24599 #: ../resize/virt-resize.pod:535
24600 msgid ""
24601 "This is the same as I<--resize> except that it will let you decrease the "
24602 "size of any partition.  Generally this means you will lose any data which "
24603 "was at the end of the partition you shrink, but you may not care about that "
24604 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24605 "as a swap partition)."
24606 msgstr ""
24607
24608 #. type: textblock
24609 #: ../resize/virt-resize.pod:541
24610 msgid "See also the I<--ignore> option."
24611 msgstr ""
24612
24613 #. type: =item
24614 #: ../resize/virt-resize.pod:543
24615 msgid "B<--shrink part>"
24616 msgstr "B<--shrink розділ>"
24617
24618 #. type: textblock
24619 #: ../resize/virt-resize.pod:545
24620 msgid ""
24621 "Shrink the named partition until the overall disk image fits in the "
24622 "destination.  The named partition B<must> contain a filesystem or PV which "
24623 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24624 "online tools).  Virt-resize will check this and give an error if it has not "
24625 "been done."
24626 msgstr ""
24627
24628 #. type: textblock
24629 #: ../resize/virt-resize.pod:551
24630 msgid ""
24631 "The amount by which the overall disk must be shrunk (after carrying out all "
24632 "other operations requested by the user) is called the \"deficit\".  For "
24633 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24634 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24635 "would give an error unless the user specified a partition to shrink and that "
24636 "partition had more than a gigabyte of free space."
24637 msgstr ""
24638
24639 #. type: =head1
24640 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
24641 msgid "MACHINE READABLE OUTPUT"
24642 msgstr ""
24643
24644 #. type: textblock
24645 #: ../resize/virt-resize.pod:571
24646 msgid ""
24647 "The I<--machine-readable> option can be used to make the output more machine "
24648 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24649 "etc."
24650 msgstr ""
24651
24652 #. type: textblock
24653 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
24654 msgid "There are two ways to use this option."
24655 msgstr ""
24656
24657 #. type: textblock
24658 #: ../resize/virt-resize.pod:577
24659 msgid ""
24660 "Firstly use the option on its own to query the capabilities of the virt-"
24661 "resize binary.  Typical output looks like this:"
24662 msgstr ""
24663
24664 #. type: verbatim
24665 #: ../resize/virt-resize.pod:580
24666 #, no-wrap
24667 msgid ""
24668 " $ virt-resize --machine-readable\n"
24669 " virt-resize\n"
24670 " ntfsresize-force\n"
24671 " 32bitok\n"
24672 " ntfs\n"
24673 " btrfs\n"
24674 "\n"
24675 msgstr ""
24676
24677 #. type: textblock
24678 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
24679 msgid ""
24680 "A list of features is printed, one per line, and the program exits with "
24681 "status 0."
24682 msgstr ""
24683
24684 #. type: textblock
24685 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
24686 msgid ""
24687 "Secondly use the option in conjunction with other options to make the "
24688 "regular program output more machine friendly."
24689 msgstr ""
24690
24691 #. type: textblock
24692 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
24693 msgid "At the moment this means:"
24694 msgstr ""
24695
24696 #. type: textblock
24697 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
24698 msgid ""
24699 "Progress bar messages can be parsed from stdout by looking for this regular "
24700 "expression:"
24701 msgstr ""
24702
24703 #. type: verbatim
24704 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
24705 #, no-wrap
24706 msgid ""
24707 " ^[0-9]+/[0-9]+$\n"
24708 "\n"
24709 msgstr ""
24710
24711 #. type: textblock
24712 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
24713 msgid ""
24714 "The calling program should treat messages sent to stdout (except for "
24715 "progress bar messages) as status messages.  They can be logged and/or "
24716 "displayed to the user."
24717 msgstr ""
24718
24719 #. type: textblock
24720 #: ../resize/virt-resize.pod:612
24721 msgid ""
24722 "The calling program should treat messages sent to stderr as error messages.  "
24723 "In addition, virt-resize exits with a non-zero status code if there was a "
24724 "fatal error."
24725 msgstr ""
24726
24727 #. type: textblock
24728 #: ../resize/virt-resize.pod:618
24729 msgid ""
24730 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24731 "readable> option and will return an error."
24732 msgstr ""
24733
24734 #. type: =head2
24735 #: ../resize/virt-resize.pod:623
24736 msgid "\"Partition 1 does not end on cylinder boundary.\""
24737 msgstr ""
24738
24739 #. type: textblock
24740 #: ../resize/virt-resize.pod:625
24741 msgid ""
24742 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24743 "alignment> parameter).  Usually this means the partitions will not be "
24744 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24745 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24746 "drives.  Alignment of partitions to cylinders is not required by any modern "
24747 "operating system."
24748 msgstr ""
24749
24750 #. type: =head2
24751 #: ../resize/virt-resize.pod:632
24752 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24753 msgstr ""
24754
24755 #. type: textblock
24756 #: ../resize/virt-resize.pod:634
24757 msgid ""
24758 "In Windows Vista and later versions, Microsoft switched to using a separate "
24759 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24760 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24761 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24762 "the second partition (ie. C: drive)  should work."
24763 msgstr ""
24764
24765 #. type: textblock
24766 #: ../resize/virt-resize.pod:641
24767 msgid ""
24768 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24769 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24770 "it find errors) is nothing to worry about."
24771 msgstr ""
24772
24773 #. type: =head2
24774 #: ../resize/virt-resize.pod:645
24775 msgid "GUEST BOOT STUCK AT \"GRUB\""
24776 msgstr ""
24777
24778 #. type: textblock
24779 #: ../resize/virt-resize.pod:647
24780 msgid ""
24781 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24782 "printing C<GRUB> on the console, try reinstalling grub."
24783 msgstr ""
24784
24785 #. type: verbatim
24786 #: ../resize/virt-resize.pod:650
24787 #, no-wrap
24788 msgid ""
24789 " guestfish -i -a newdisk\n"
24790 " ><fs> cat /boot/grub/device.map\n"
24791 " # check the contents of this file are sensible or\n"
24792 " # edit the file if necessary\n"
24793 " ><fs> grub-install / /dev/vda\n"
24794 " ><fs> exit\n"
24795 "\n"
24796 msgstr ""
24797
24798 #. type: textblock
24799 #: ../resize/virt-resize.pod:657
24800 msgid ""
24801 "For more flexible guest reconfiguration, including if you need to specify "
24802 "other parameters to grub-install, use L<virt-rescue(1)>."
24803 msgstr ""
24804
24805 #. type: =head1
24806 #: ../resize/virt-resize.pod:660
24807 msgid "ALTERNATIVE TOOLS"
24808 msgstr ""
24809
24810 #. type: textblock
24811 #: ../resize/virt-resize.pod:662
24812 msgid ""
24813 "There are several proprietary tools for resizing partitions.  We won't "
24814 "mention any here."
24815 msgstr ""
24816
24817 #. type: textblock
24818 #: ../resize/virt-resize.pod:665
24819 msgid ""
24820 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24821 "operations on disk images.  They can resize and move partitions, but I don't "
24822 "think they can do anything with the contents, and they certainly don't "
24823 "understand LVM."
24824 msgstr ""
24825
24826 #. type: textblock
24827 #: ../resize/virt-resize.pod:670
24828 msgid ""
24829 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24830 "but at a much lower level.  You will probably end up hand-calculating sector "
24831 "offsets, which is something that virt-resize was designed to avoid.  If you "
24832 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24833 "I<--debug> flag."
24834 msgstr ""
24835
24836 #. type: textblock
24837 #: ../resize/virt-resize.pod:690
24838 msgid ""
24839 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24840 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24841 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24842 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24843 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24844 msgstr ""
24845
24846 #. type: textblock
24847 #: ../ruby/examples/guestfs-ruby.pod:5
24848 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24849 msgstr ""
24850
24851 #. type: verbatim
24852 #: ../ruby/examples/guestfs-ruby.pod:9
24853 #, no-wrap
24854 msgid ""
24855 " require 'guestfs'\n"
24856 " g = Guestfs::Guestfs.new()\n"
24857 " g.add_drive_opts(\"disk.img\",\n"
24858 "                  :readonly => 1, :format => \"raw\")\n"
24859 " g.launch()\n"
24860 "\n"
24861 msgstr ""
24862
24863 #. type: textblock
24864 #: ../ruby/examples/guestfs-ruby.pod:17
24865 msgid ""
24866 "This manual page documents how to call libguestfs from the Ruby programming "
24867 "language.  This page just documents the differences from the C API and gives "
24868 "some examples.  If you are not familiar with using libguestfs, you also need "
24869 "to read L<guestfs(3)>."
24870 msgstr ""
24871
24872 #. type: textblock
24873 #: ../ruby/examples/guestfs-ruby.pod:24
24874 msgid ""
24875 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24876 "This has a single parameter which is the error message (a string)."
24877 msgstr ""
24878
24879 #. type: textblock
24880 #: ../ruby/examples/guestfs-ruby.pod:38
24881 msgid ""
24882 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24883 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24884 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24885 msgstr ""
24886
24887 #. type: textblock
24888 #: ../sparsify/virt-sparsify.pod:5
24889 msgid "virt-sparsify - Make a virtual machine disk sparse"
24890 msgstr ""
24891
24892 #. type: verbatim
24893 #: ../sparsify/virt-sparsify.pod:9
24894 #, no-wrap
24895 msgid ""
24896 " virt-sparsify [--options] indisk outdisk\n"
24897 "\n"
24898 msgstr ""
24899
24900 #. type: textblock
24901 #: ../sparsify/virt-sparsify.pod:13
24902 msgid ""
24903 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24904 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24905 "the disk image can be converted back to free space on the host."
24906 msgstr ""
24907
24908 #. type: textblock
24909 #: ../sparsify/virt-sparsify.pod:18
24910 msgid ""
24911 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24912 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24913 msgstr ""
24914
24915 #. type: textblock
24916 #: ../sparsify/virt-sparsify.pod:21
24917 msgid ""
24918 "Virt-sparsify can also convert between some disk formats, for example "
24919 "converting a raw disk image to a thin-provisioned qcow2 image."
24920 msgstr ""
24921
24922 #. type: textblock
24923 #: ../sparsify/virt-sparsify.pod:24
24924 msgid ""
24925 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24926 "machines.  If a virtual machine has more than one attached disk, you must "
24927 "sparsify each one separately."
24928 msgstr ""
24929
24930 #. type: =head2
24931 #: ../sparsify/virt-sparsify.pod:28
24932 msgid "IMPORTANT LIMITATIONS"
24933 msgstr ""
24934
24935 #. type: textblock
24936 #: ../sparsify/virt-sparsify.pod:34
24937 msgid ""
24938 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24939 "image to a destination image, leaving the source unchanged.  I<Check that "
24940 "the sparsification was successful before deleting the source image>."
24941 msgstr ""
24942
24943 #. type: textblock
24944 #: ../sparsify/virt-sparsify.pod:41
24945 msgid "The virtual machine I<must be shut down> before using this tool."
24946 msgstr ""
24947
24948 #. type: textblock
24949 #: ../sparsify/virt-sparsify.pod:45
24950 msgid ""
24951 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24952 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24953 "usually much less space is required."
24954 msgstr ""
24955
24956 #. type: textblock
24957 #: ../sparsify/virt-sparsify.pod:51
24958 msgid ""
24959 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24960 msgstr ""
24961
24962 #. type: textblock
24963 #: ../sparsify/virt-sparsify.pod:56
24964 msgid "Virt-sparsify cannot handle encrypted disks."
24965 msgstr ""
24966
24967 #. type: textblock
24968 #: ../sparsify/virt-sparsify.pod:60
24969 msgid ""
24970 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24971 "this space is often used for critical items like bootloaders so it's not "
24972 "really unused."
24973 msgstr ""
24974
24975 #. type: textblock
24976 #: ../sparsify/virt-sparsify.pod:66
24977 msgid ""
24978 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24979 "to do this unless we can be sure there is no hibernation data, so at the "
24980 "moment swap partitions are ignored."
24981 msgstr ""
24982
24983 #. type: textblock
24984 #: ../sparsify/virt-sparsify.pod:72
24985 msgid ""
24986 "You may also want to read the manual pages for the associated tools L<virt-"
24987 "filesystems(1)> and L<virt-df(1)> before starting."
24988 msgstr ""
24989
24990 #. type: textblock
24991 #: ../sparsify/virt-sparsify.pod:77
24992 msgid "Typical usage is:"
24993 msgstr ""
24994
24995 #. type: verbatim
24996 #: ../sparsify/virt-sparsify.pod:79
24997 #, no-wrap
24998 msgid ""
24999 " virt-sparsify indisk outdisk\n"
25000 "\n"
25001 msgstr ""
25002
25003 #. type: textblock
25004 #: ../sparsify/virt-sparsify.pod:81
25005 msgid ""
25006 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
25007 "is created, or overwritten if it already exists.  The format of the input "
25008 "disk is detected (eg. qcow2) and the same format is used for the output disk."
25009 msgstr ""
25010
25011 #. type: textblock
25012 #: ../sparsify/virt-sparsify.pod:86
25013 msgid "To convert between formats, use the I<--convert> option:"
25014 msgstr ""
25015
25016 #. type: verbatim
25017 #: ../sparsify/virt-sparsify.pod:88
25018 #, no-wrap
25019 msgid ""
25020 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
25021 "\n"
25022 msgstr ""
25023
25024 #. type: textblock
25025 #: ../sparsify/virt-sparsify.pod:90
25026 msgid ""
25027 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
25028 "can find within the source disk image.  You can get it to ignore (don't zero "
25029 "free space on) certain filesystems by doing:"
25030 msgstr ""
25031
25032 #. type: verbatim
25033 #: ../sparsify/virt-sparsify.pod:94
25034 #, no-wrap
25035 msgid ""
25036 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
25037 "\n"
25038 msgstr ""
25039
25040 #. type: textblock
25041 #: ../sparsify/virt-sparsify.pod:96
25042 msgid ""
25043 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
25044 msgstr ""
25045
25046 #. type: =item
25047 #: ../sparsify/virt-sparsify.pod:107
25048 msgid "B<--convert> raw"
25049 msgstr ""
25050
25051 #. type: =item
25052 #: ../sparsify/virt-sparsify.pod:109
25053 msgid "B<--convert> qcow2"
25054 msgstr ""
25055
25056 #. type: =item
25057 #: ../sparsify/virt-sparsify.pod:111
25058 msgid "B<--convert> [other formats]"
25059 msgstr ""
25060
25061 #. type: textblock
25062 #: ../sparsify/virt-sparsify.pod:113
25063 msgid ""
25064 "Use C<output-format> as the format for the destination image.  If this is "
25065 "not specified, then the input format is used."
25066 msgstr ""
25067
25068 #. type: textblock
25069 #: ../sparsify/virt-sparsify.pod:116
25070 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
25071 msgstr ""
25072
25073 #. type: textblock
25074 #: ../sparsify/virt-sparsify.pod:118
25075 msgid ""
25076 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
25077 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
25078 msgstr ""
25079
25080 #. type: textblock
25081 #: ../sparsify/virt-sparsify.pod:122
25082 msgid ""
25083 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25084 "sparsify doesn't need to try to guess the input format."
25085 msgstr ""
25086
25087 #. type: =item
25088 #: ../sparsify/virt-sparsify.pod:127
25089 msgid "B<--format> qcow2"
25090 msgstr ""
25091
25092 #. type: =item
25093 #: ../sparsify/virt-sparsify.pod:135
25094 msgid "B<--ignore> filesystem"
25095 msgstr ""
25096
25097 #. type: =item
25098 #: ../sparsify/virt-sparsify.pod:137
25099 msgid "B<--ignore> volgroup"
25100 msgstr ""
25101
25102 #. type: textblock
25103 #: ../sparsify/virt-sparsify.pod:139
25104 msgid ""
25105 "Ignore the named filesystem.  Free space on the filesystem will not be "
25106 "zeroed, but existing blocks of zeroes will still be sparsified."
25107 msgstr ""
25108
25109 #. type: textblock
25110 #: ../sparsify/virt-sparsify.pod:142
25111 msgid ""
25112 "In the second form, this ignores the named volume group.  Use the volume "
25113 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25114 msgstr ""
25115
25116 #. type: textblock
25117 #: ../sparsify/virt-sparsify.pod:157
25118 msgid "This disables progress bars and other unnecessary output."
25119 msgstr ""
25120
25121 #. type: textblock
25122 #: ../sparsify/virt-sparsify.pod:179
25123 msgid ""
25124 "The I<--machine-readable> option can be used to make the output more machine "
25125 "friendly, which is useful when calling virt-sparsify from other programs, "
25126 "GUIs etc."
25127 msgstr ""
25128
25129 #. type: textblock
25130 #: ../sparsify/virt-sparsify.pod:185
25131 msgid ""
25132 "Firstly use the option on its own to query the capabilities of the virt-"
25133 "sparsify binary.  Typical output looks like this:"
25134 msgstr ""
25135
25136 #. type: verbatim
25137 #: ../sparsify/virt-sparsify.pod:188
25138 #, no-wrap
25139 msgid ""
25140 " $ virt-sparsify --machine-readable\n"
25141 " virt-sparsify\n"
25142 " ntfs\n"
25143 " btrfs\n"
25144 "\n"
25145 msgstr ""
25146
25147 #. type: textblock
25148 #: ../sparsify/virt-sparsify.pod:218
25149 msgid ""
25150 "The calling program should treat messages sent to stderr as error messages.  "
25151 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25152 "fatal error."
25153 msgstr ""
25154
25155 #. type: textblock
25156 #: ../sparsify/virt-sparsify.pod:224
25157 msgid ""
25158 "All versions of virt-sparsify have supported the I<--machine-readable> "
25159 "option."
25160 msgstr ""
25161
25162 #. type: textblock
25163 #: ../sparsify/virt-sparsify.pod:238
25164 msgid ""
25165 "Location of the temporary directory used for the potentially large temporary "
25166 "overlay file."
25167 msgstr ""
25168
25169 #. type: textblock
25170 #: ../sparsify/virt-sparsify.pod:241
25171 msgid ""
25172 "You should ensure there is enough free space in the worst case for a full "
25173 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25174 "to another directory that has enough space."
25175 msgstr ""
25176
25177 #. type: textblock
25178 #: ../sparsify/virt-sparsify.pod:245
25179 msgid "This defaults to C</tmp>."
25180 msgstr ""
25181
25182 #. type: textblock
25183 #: ../sparsify/virt-sparsify.pod:249
25184 msgid ""
25185 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25186 msgstr ""
25187
25188 #. type: textblock
25189 #: ../sparsify/virt-sparsify.pod:253
25190 msgid ""
25191 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25192 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25193 "(1)>, L<http://libguestfs.org/>."
25194 msgstr ""
25195
25196 #. type: =head2
25197 #: ../src/guestfs-actions.pod:1
25198 msgid "guestfs_add_cdrom"
25199 msgstr ""
25200
25201 #. type: verbatim
25202 #: ../src/guestfs-actions.pod:3
25203 #, no-wrap
25204 msgid ""
25205 " int\n"
25206 " guestfs_add_cdrom (guestfs_h *g,\n"
25207 "                    const char *filename);\n"
25208 "\n"
25209 msgstr ""
25210
25211 #. type: textblock
25212 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
25213 #: ../src/guestfs-actions.pod:323
25214 msgid ""
25215 "I<This function is deprecated.> In new code, use the L</"
25216 "guestfs_add_drive_opts> call instead."
25217 msgstr ""
25218
25219 #. type: textblock
25220 #: ../src/guestfs-actions.pod:24
25221 msgid ""
25222 "This call checks for the existence of C<filename>.  This stops you from "
25223 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25224 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25225 "instead."
25226 msgstr ""
25227
25228 #. type: textblock
25229 #: ../src/guestfs-actions.pod:31
25230 msgid ""
25231 "If you just want to add an ISO file (often you use this as an efficient way "
25232 "to transfer large files into the guest), then you should probably use "
25233 "C<guestfs_add_drive_ro> instead."
25234 msgstr ""
25235
25236 #. type: textblock
25237 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
25238 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
25239 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
25240 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
25241 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
25242 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
25243 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
25244 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
25245 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
25246 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
25247 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
25248 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
25249 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
25250 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
25251 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
25252 #: ../src/guestfs-actions.pod:1423 ../src/guestfs-actions.pod:1474
25253 #: ../src/guestfs-actions.pod:1530 ../src/guestfs-actions.pod:1582
25254 #: ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:1615
25255 #: ../src/guestfs-actions.pod:1643 ../src/guestfs-actions.pod:1713
25256 #: ../src/guestfs-actions.pod:1744 ../src/guestfs-actions.pod:1769
25257 #: ../src/guestfs-actions.pod:1811 ../src/guestfs-actions.pod:1924
25258 #: ../src/guestfs-actions.pod:1951 ../src/guestfs-actions.pod:2166
25259 #: ../src/guestfs-actions.pod:2188 ../src/guestfs-actions.pod:2275
25260 #: ../src/guestfs-actions.pod:2783 ../src/guestfs-actions.pod:2927
25261 #: ../src/guestfs-actions.pod:2988 ../src/guestfs-actions.pod:3023
25262 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4095
25263 #: ../src/guestfs-actions.pod:4120 ../src/guestfs-actions.pod:4309
25264 #: ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4336
25265 #: ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4365
25266 #: ../src/guestfs-actions.pod:4401 ../src/guestfs-actions.pod:4473
25267 #: ../src/guestfs-actions.pod:4493 ../src/guestfs-actions.pod:4510
25268 #: ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4556
25269 #: ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4610
25270 #: ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4664
25271 #: ../src/guestfs-actions.pod:4676 ../src/guestfs-actions.pod:4712
25272 #: ../src/guestfs-actions.pod:4728 ../src/guestfs-actions.pod:4741
25273 #: ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4773
25274 #: ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4886
25275 #: ../src/guestfs-actions.pod:4899 ../src/guestfs-actions.pod:4950
25276 #: ../src/guestfs-actions.pod:4968 ../src/guestfs-actions.pod:4986
25277 #: ../src/guestfs-actions.pod:5002 ../src/guestfs-actions.pod:5016
25278 #: ../src/guestfs-actions.pod:5030 ../src/guestfs-actions.pod:5047
25279 #: ../src/guestfs-actions.pod:5062 ../src/guestfs-actions.pod:5089
25280 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5225
25281 #: ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5275
25282 #: ../src/guestfs-actions.pod:5294 ../src/guestfs-actions.pod:5306
25283 #: ../src/guestfs-actions.pod:5323 ../src/guestfs-actions.pod:5336
25284 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5366
25285 #: ../src/guestfs-actions.pod:5398 ../src/guestfs-actions.pod:5424
25286 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5483
25287 #: ../src/guestfs-actions.pod:5497 ../src/guestfs-actions.pod:5514
25288 #: ../src/guestfs-actions.pod:5563 ../src/guestfs-actions.pod:5616
25289 #: ../src/guestfs-actions.pod:5663 ../src/guestfs-actions.pod:5706
25290 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:5751
25291 #: ../src/guestfs-actions.pod:5769 ../src/guestfs-actions.pod:5909
25292 #: ../src/guestfs-actions.pod:5966 ../src/guestfs-actions.pod:5988
25293 #: ../src/guestfs-actions.pod:6006 ../src/guestfs-actions.pod:6056
25294 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6139
25295 #: ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6166
25296 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6474
25297 #: ../src/guestfs-actions.pod:6493 ../src/guestfs-actions.pod:6507
25298 #: ../src/guestfs-actions.pod:6519 ../src/guestfs-actions.pod:6533
25299 #: ../src/guestfs-actions.pod:6545 ../src/guestfs-actions.pod:6559
25300 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6596
25301 #: ../src/guestfs-actions.pod:6615 ../src/guestfs-actions.pod:6634
25302 #: ../src/guestfs-actions.pod:6664 ../src/guestfs-actions.pod:6682
25303 #: ../src/guestfs-actions.pod:6705 ../src/guestfs-actions.pod:6723
25304 #: ../src/guestfs-actions.pod:6742 ../src/guestfs-actions.pod:6763
25305 #: ../src/guestfs-actions.pod:6782 ../src/guestfs-actions.pod:6799
25306 #: ../src/guestfs-actions.pod:6818 ../src/guestfs-actions.pod:6846
25307 #: ../src/guestfs-actions.pod:6870 ../src/guestfs-actions.pod:6889
25308 #: ../src/guestfs-actions.pod:6905 ../src/guestfs-actions.pod:6929
25309 #: ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:6963
25310 #: ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:7026
25311 #: ../src/guestfs-actions.pod:7056 ../src/guestfs-actions.pod:7089
25312 #: ../src/guestfs-actions.pod:7204 ../src/guestfs-actions.pod:7325
25313 #: ../src/guestfs-actions.pod:7337 ../src/guestfs-actions.pod:7350
25314 #: ../src/guestfs-actions.pod:7363 ../src/guestfs-actions.pod:7385
25315 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7411
25316 #: ../src/guestfs-actions.pod:7424 ../src/guestfs-actions.pod:7439
25317 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7515
25318 #: ../src/guestfs-actions.pod:7531 ../src/guestfs-actions.pod:7547
25319 #: ../src/guestfs-actions.pod:7564 ../src/guestfs-actions.pod:7577
25320 #: ../src/guestfs-actions.pod:7597 ../src/guestfs-actions.pod:7633
25321 #: ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7688
25322 #: ../src/guestfs-actions.pod:7701 ../src/guestfs-actions.pod:7719
25323 #: ../src/guestfs-actions.pod:7753 ../src/guestfs-actions.pod:7789
25324 #: ../src/guestfs-actions.pod:7905 ../src/guestfs-actions.pod:7920
25325 #: ../src/guestfs-actions.pod:7934 ../src/guestfs-actions.pod:7989
25326 #: ../src/guestfs-actions.pod:8002 ../src/guestfs-actions.pod:8047
25327 #: ../src/guestfs-actions.pod:8087 ../src/guestfs-actions.pod:8143
25328 #: ../src/guestfs-actions.pod:8163 ../src/guestfs-actions.pod:8196
25329 #: ../src/guestfs-actions.pod:8260 ../src/guestfs-actions.pod:8283
25330 #: ../src/guestfs-actions.pod:8312
25331 msgid "This function returns 0 on success or -1 on error."
25332 msgstr ""
25333
25334 #. type: textblock
25335 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
25336 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2389
25337 #: ../src/guestfs-actions.pod:2487 ../src/guestfs-actions.pod:2612
25338 #: ../src/guestfs-actions.pod:4082 ../src/guestfs-actions.pod:4102
25339 #: ../src/guestfs-actions.pod:5400 ../src/guestfs-actions.pod:6684
25340 #: ../src/guestfs-actions.pod:6801 ../src/guestfs-actions.pod:6950
25341 #: ../src/guestfs-actions.pod:7441 ../src/guestfs-actions.pod:7566
25342 #: ../src/guestfs-actions.pod:8089
25343 msgid "(Added in 0.3)"
25344 msgstr "(Додано у 0.3)"
25345
25346 #. type: =head2
25347 #: ../src/guestfs-actions.pod:41
25348 msgid "guestfs_add_domain"
25349 msgstr ""
25350
25351 #. type: verbatim
25352 #: ../src/guestfs-actions.pod:43
25353 #, no-wrap
25354 msgid ""
25355 " int\n"
25356 " guestfs_add_domain (guestfs_h *g,\n"
25357 "                     const char *dom,\n"
25358 "                     ...);\n"
25359 "\n"
25360 msgstr ""
25361
25362 #. type: textblock
25363 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
25364 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
25365 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
25366 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1462
25367 #: ../src/guestfs-actions.pod:1513 ../src/guestfs-actions.pod:3280
25368 #: ../src/guestfs-actions.pod:5101 ../src/guestfs-actions.pod:5410
25369 #: ../src/guestfs-actions.pod:5627
25370 msgid ""
25371 "You may supply a list of optional arguments to this call.  Use zero or more "
25372 "of the following pairs of parameters, and terminate the list with C<-1> on "
25373 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25374 msgstr ""
25375
25376 #. type: verbatim
25377 #: ../src/guestfs-actions.pod:53
25378 #, no-wrap
25379 msgid ""
25380 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25381 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25382 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25383 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25384 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25385 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
25386 "\n"
25387 msgstr ""
25388
25389 #. type: textblock
25390 #: ../src/guestfs-actions.pod:60
25391 msgid ""
25392 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25393 "It works by connecting to libvirt, requesting the domain and domain XML from "
25394 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25395 "one."
25396 msgstr ""
25397
25398 #. type: textblock
25399 #: ../src/guestfs-actions.pod:141
25400 msgid ""
25401 "The other optional parameters are passed directly through to "
25402 "C<guestfs_add_drive_opts>."
25403 msgstr ""
25404
25405 #. type: textblock
25406 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
25407 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
25408 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
25409 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1789
25410 #: ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:2348
25411 #: ../src/guestfs-actions.pod:2459 ../src/guestfs-actions.pod:2510
25412 #: ../src/guestfs-actions.pod:2562 ../src/guestfs-actions.pod:2576
25413 #: ../src/guestfs-actions.pod:2599 ../src/guestfs-actions.pod:2914
25414 #: ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3416
25415 #: ../src/guestfs-actions.pod:5586 ../src/guestfs-actions.pod:5806
25416 #: ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6236
25417 #: ../src/guestfs-actions.pod:6262 ../src/guestfs-actions.pod:7674
25418 #: ../src/guestfs-actions.pod:8100 ../src/guestfs-actions.pod:8113
25419 #: ../src/guestfs-actions.pod:8126
25420 msgid "On error this function returns -1."
25421 msgstr ""
25422
25423 #. type: textblock
25424 #: ../src/guestfs-actions.pod:146
25425 msgid "(Added in 1.7.4)"
25426 msgstr "(Додано у 1.7.4)"
25427
25428 #. type: =head2
25429 #: ../src/guestfs-actions.pod:148
25430 msgid "guestfs_add_domain_va"
25431 msgstr ""
25432
25433 #. type: verbatim
25434 #: ../src/guestfs-actions.pod:150
25435 #, no-wrap
25436 msgid ""
25437 " int\n"
25438 " guestfs_add_domain_va (guestfs_h *g,\n"
25439 "                        const char *dom,\n"
25440 "                        va_list args);\n"
25441 "\n"
25442 msgstr ""
25443
25444 #. type: textblock
25445 #: ../src/guestfs-actions.pod:155
25446 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25447 msgstr ""
25448
25449 #. type: textblock
25450 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
25451 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
25452 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
25453 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
25454 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
25455 #: ../src/guestfs-actions.pod:1389 ../src/guestfs-actions.pod:1401
25456 #: ../src/guestfs-actions.pod:1440 ../src/guestfs-actions.pod:1452
25457 #: ../src/guestfs-actions.pod:1491 ../src/guestfs-actions.pod:1503
25458 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1559
25459 #: ../src/guestfs-actions.pod:3364 ../src/guestfs-actions.pod:3376
25460 #: ../src/guestfs-actions.pod:5166 ../src/guestfs-actions.pod:5178
25461 #: ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:5450
25462 #: ../src/guestfs-actions.pod:5676 ../src/guestfs-actions.pod:5687
25463 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25464 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25465
25466 #. type: =head2
25467 #: ../src/guestfs-actions.pod:159
25468 msgid "guestfs_add_domain_argv"
25469 msgstr "guestfs_add_domain_argv"
25470
25471 #. type: verbatim
25472 #: ../src/guestfs-actions.pod:161
25473 #, no-wrap
25474 msgid ""
25475 " int\n"
25476 " guestfs_add_domain_argv (guestfs_h *g,\n"
25477 "                          const char *dom,\n"
25478 "                          const struct guestfs_add_domain_argv *optargs);\n"
25479 "\n"
25480 msgstr ""
25481
25482 #. type: textblock
25483 #: ../src/guestfs-actions.pod:166
25484 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25485 msgstr ""
25486
25487 #. type: =head2
25488 #: ../src/guestfs-actions.pod:170
25489 msgid "guestfs_add_drive"
25490 msgstr ""
25491
25492 #. type: verbatim
25493 #: ../src/guestfs-actions.pod:172
25494 #, no-wrap
25495 msgid ""
25496 " int\n"
25497 " guestfs_add_drive (guestfs_h *g,\n"
25498 "                    const char *filename);\n"
25499 "\n"
25500 msgstr ""
25501
25502 #. type: textblock
25503 #: ../src/guestfs-actions.pod:176
25504 msgid ""
25505 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25506 "optional parameters, so the disk is added writable, with the format being "
25507 "detected automatically."
25508 msgstr ""
25509
25510 #. type: textblock
25511 #: ../src/guestfs-actions.pod:180
25512 msgid ""
25513 "Automatic detection of the format opens you up to a potential security hole "
25514 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25515 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25516 "you should think about replacing calls to this function with calls to "
25517 "C<guestfs_add_drive_opts>, and specifying the format."
25518 msgstr ""
25519
25520 #. type: =head2
25521 #: ../src/guestfs-actions.pod:191
25522 msgid "guestfs_add_drive_opts"
25523 msgstr ""
25524
25525 #. type: verbatim
25526 #: ../src/guestfs-actions.pod:193
25527 #, no-wrap
25528 msgid ""
25529 " int\n"
25530 " guestfs_add_drive_opts (guestfs_h *g,\n"
25531 "                         const char *filename,\n"
25532 "                         ...);\n"
25533 "\n"
25534 msgstr ""
25535
25536 #. type: verbatim
25537 #: ../src/guestfs-actions.pod:203
25538 #, no-wrap
25539 msgid ""
25540 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25541 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25542 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25543 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25544 "\n"
25545 msgstr ""
25546
25547 #. type: textblock
25548 #: ../src/guestfs-actions.pod:233
25549 msgid ""
25550 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25551 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25552 "Possible formats include C<raw> and C<qcow2>."
25553 msgstr ""
25554
25555 #. type: textblock
25556 #: ../src/guestfs-actions.pod:244
25557 msgid ""
25558 "This rarely-used option lets you emulate the behaviour of the deprecated "
25559 "C<guestfs_add_drive_with_if> call (q.v.)"
25560 msgstr ""
25561
25562 #. type: textblock
25563 #: ../src/guestfs-actions.pod:256
25564 msgid "(Added in 1.5.23)"
25565 msgstr "(Додано у 1.5.23)"
25566
25567 #. type: =head2
25568 #: ../src/guestfs-actions.pod:258
25569 msgid "guestfs_add_drive_opts_va"
25570 msgstr ""
25571
25572 #. type: verbatim
25573 #: ../src/guestfs-actions.pod:260
25574 #, no-wrap
25575 msgid ""
25576 " int\n"
25577 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25578 "                            const char *filename,\n"
25579 "                            va_list args);\n"
25580 "\n"
25581 msgstr ""
25582
25583 #. type: textblock
25584 #: ../src/guestfs-actions.pod:265
25585 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25586 msgstr ""
25587
25588 #. type: =head2
25589 #: ../src/guestfs-actions.pod:269
25590 msgid "guestfs_add_drive_opts_argv"
25591 msgstr ""
25592
25593 #. type: verbatim
25594 #: ../src/guestfs-actions.pod:271
25595 #, no-wrap
25596 msgid ""
25597 " int\n"
25598 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25599 "                              const char *filename,\n"
25600 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
25601 "\n"
25602 msgstr ""
25603
25604 #. type: textblock
25605 #: ../src/guestfs-actions.pod:276
25606 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25607 msgstr ""
25608
25609 #. type: =head2
25610 #: ../src/guestfs-actions.pod:280
25611 msgid "guestfs_add_drive_ro"
25612 msgstr ""
25613
25614 #. type: verbatim
25615 #: ../src/guestfs-actions.pod:282
25616 #, no-wrap
25617 msgid ""
25618 " int\n"
25619 " guestfs_add_drive_ro (guestfs_h *g,\n"
25620 "                       const char *filename);\n"
25621 "\n"
25622 msgstr ""
25623
25624 #. type: textblock
25625 #: ../src/guestfs-actions.pod:286
25626 msgid ""
25627 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25628 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25629 "disk is added read-only, with the format being detected automatically."
25630 msgstr ""
25631
25632 #. type: textblock
25633 #: ../src/guestfs-actions.pod:293
25634 msgid "(Added in 1.0.38)"
25635 msgstr "(Додано у 1.0.38)"
25636
25637 #. type: =head2
25638 #: ../src/guestfs-actions.pod:295
25639 msgid "guestfs_add_drive_ro_with_if"
25640 msgstr ""
25641
25642 #. type: verbatim
25643 #: ../src/guestfs-actions.pod:297
25644 #, no-wrap
25645 msgid ""
25646 " int\n"
25647 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25648 "                               const char *filename,\n"
25649 "                               const char *iface);\n"
25650 "\n"
25651 msgstr ""
25652
25653 #. type: textblock
25654 #: ../src/guestfs-actions.pod:309
25655 msgid ""
25656 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25657 "QEMU interface emulation to use at run time."
25658 msgstr ""
25659
25660 #. type: textblock
25661 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
25662 #: ../src/guestfs-actions.pod:2873
25663 msgid "(Added in 1.0.84)"
25664 msgstr "(Додано у 1.0.84)"
25665
25666 #. type: =head2
25667 #: ../src/guestfs-actions.pod:316
25668 msgid "guestfs_add_drive_with_if"
25669 msgstr ""
25670
25671 #. type: verbatim
25672 #: ../src/guestfs-actions.pod:318
25673 #, no-wrap
25674 msgid ""
25675 " int\n"
25676 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25677 "                            const char *filename,\n"
25678 "                            const char *iface);\n"
25679 "\n"
25680 msgstr ""
25681
25682 #. type: textblock
25683 #: ../src/guestfs-actions.pod:330
25684 msgid ""
25685 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25686 "QEMU interface emulation to use at run time."
25687 msgstr ""
25688
25689 #. type: =head2
25690 #: ../src/guestfs-actions.pod:337
25691 msgid "guestfs_aug_clear"
25692 msgstr ""
25693
25694 #. type: verbatim
25695 #: ../src/guestfs-actions.pod:339
25696 #, no-wrap
25697 msgid ""
25698 " int\n"
25699 " guestfs_aug_clear (guestfs_h *g,\n"
25700 "                    const char *augpath);\n"
25701 "\n"
25702 msgstr ""
25703
25704 #. type: textblock
25705 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2601
25706 msgid "(Added in 1.3.4)"
25707 msgstr "(Додано у 1.3.4)"
25708
25709 #. type: =head2
25710 #: ../src/guestfs-actions.pod:350
25711 msgid "guestfs_aug_close"
25712 msgstr ""
25713
25714 #. type: verbatim
25715 #: ../src/guestfs-actions.pod:352
25716 #, no-wrap
25717 msgid ""
25718 " int\n"
25719 " guestfs_aug_close (guestfs_h *g);\n"
25720 "\n"
25721 msgstr ""
25722
25723 #. type: textblock
25724 #: ../src/guestfs-actions.pod:355
25725 msgid ""
25726 "Close the current Augeas handle and free up any resources used by it.  After "
25727 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25728 "any other Augeas functions."
25729 msgstr ""
25730
25731 #. type: textblock
25732 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
25733 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
25734 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
25735 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
25736 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
25737 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
25738 #: ../src/guestfs-actions.pod:6313
25739 msgid "(Added in 0.7)"
25740 msgstr "(Додано у 0.7)"
25741
25742 #. type: =head2
25743 #: ../src/guestfs-actions.pod:364
25744 msgid "guestfs_aug_defnode"
25745 msgstr ""
25746
25747 #. type: verbatim
25748 #: ../src/guestfs-actions.pod:366
25749 #, no-wrap
25750 msgid ""
25751 " struct guestfs_int_bool *\n"
25752 " guestfs_aug_defnode (guestfs_h *g,\n"
25753 "                      const char *name,\n"
25754 "                      const char *expr,\n"
25755 "                      const char *val);\n"
25756 "\n"
25757 msgstr ""
25758
25759 #. type: textblock
25760 #: ../src/guestfs-actions.pod:375
25761 msgid ""
25762 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25763 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25764 "containing that single node."
25765 msgstr ""
25766
25767 #. type: textblock
25768 #: ../src/guestfs-actions.pod:383
25769 msgid ""
25770 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25771 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25772 msgstr ""
25773
25774 #. type: =head2
25775 #: ../src/guestfs-actions.pod:389
25776 msgid "guestfs_aug_defvar"
25777 msgstr ""
25778
25779 #. type: verbatim
25780 #: ../src/guestfs-actions.pod:391
25781 #, no-wrap
25782 msgid ""
25783 " int\n"
25784 " guestfs_aug_defvar (guestfs_h *g,\n"
25785 "                     const char *name,\n"
25786 "                     const char *expr);\n"
25787 "\n"
25788 msgstr ""
25789
25790 #. type: =head2
25791 #: ../src/guestfs-actions.pod:407
25792 msgid "guestfs_aug_get"
25793 msgstr "guestfs_aug_get"
25794
25795 #. type: verbatim
25796 #: ../src/guestfs-actions.pod:409
25797 #, no-wrap
25798 msgid ""
25799 " char *\n"
25800 " guestfs_aug_get (guestfs_h *g,\n"
25801 "                  const char *augpath);\n"
25802 "\n"
25803 msgstr ""
25804 " char *\n"
25805 " guestfs_aug_get (guestfs_h *g,\n"
25806 "                  const char *augpath);\n"
25807 "\n"
25808
25809 #. type: textblock
25810 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
25811 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
25812 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
25813 #: ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1675
25814 #: ../src/guestfs-actions.pod:1694 ../src/guestfs-actions.pod:1828
25815 #: ../src/guestfs-actions.pod:2016 ../src/guestfs-actions.pod:2128
25816 #: ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:2308
25817 #: ../src/guestfs-actions.pod:2375 ../src/guestfs-actions.pod:2418
25818 #: ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2624
25819 #: ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:3042
25820 #: ../src/guestfs-actions.pod:3144 ../src/guestfs-actions.pod:3248
25821 #: ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:3482
25822 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3531
25823 #: ../src/guestfs-actions.pod:3565 ../src/guestfs-actions.pod:3628
25824 #: ../src/guestfs-actions.pod:3648 ../src/guestfs-actions.pod:3668
25825 #: ../src/guestfs-actions.pod:4295 ../src/guestfs-actions.pod:4648
25826 #: ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:4928
25827 #: ../src/guestfs-actions.pod:5824 ../src/guestfs-actions.pod:6025
25828 #: ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6389
25829 #: ../src/guestfs-actions.pod:6438 ../src/guestfs-actions.pod:7110
25830 #: ../src/guestfs-actions.pod:7126 ../src/guestfs-actions.pod:7150
25831 #: ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7848
25832 #: ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7885
25833 #: ../src/guestfs-actions.pod:8059 ../src/guestfs-actions.pod:8376
25834 msgid ""
25835 "This function returns a string, or NULL on error.  I<The caller must free "
25836 "the returned string after use>."
25837 msgstr ""
25838
25839 #. type: =head2
25840 #: ../src/guestfs-actions.pod:421
25841 msgid "guestfs_aug_init"
25842 msgstr "guestfs_aug_init"
25843
25844 #. type: verbatim
25845 #: ../src/guestfs-actions.pod:423
25846 #, no-wrap
25847 msgid ""
25848 " int\n"
25849 " guestfs_aug_init (guestfs_h *g,\n"
25850 "                   const char *root,\n"
25851 "                   int flags);\n"
25852 "\n"
25853 msgstr ""
25854 " int\n"
25855 " guestfs_aug_init (guestfs_h *g,\n"
25856 "                   const char *root,\n"
25857 "                   int flags);\n"
25858 "\n"
25859
25860 #. type: textblock
25861 #: ../src/guestfs-actions.pod:432
25862 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25863 msgstr ""
25864
25865 #. type: textblock
25866 #: ../src/guestfs-actions.pod:457
25867 msgid ""
25868 "This option is only useful when debugging Augeas lenses.  Use of this option "
25869 "may require additional memory for the libguestfs appliance.  You may need to "
25870 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25871 "C<guestfs_set_memsize>."
25872 msgstr ""
25873
25874 #. type: textblock
25875 #: ../src/guestfs-actions.pod:472
25876 msgid "Do not load the tree in C<guestfs_aug_init>."
25877 msgstr ""
25878
25879 #. type: textblock
25880 #: ../src/guestfs-actions.pod:476
25881 msgid "To close the handle, you can call C<guestfs_aug_close>."
25882 msgstr ""
25883
25884 #. type: =head2
25885 #: ../src/guestfs-actions.pod:484
25886 msgid "guestfs_aug_insert"
25887 msgstr "guestfs_aug_insert"
25888
25889 #. type: verbatim
25890 #: ../src/guestfs-actions.pod:486
25891 #, no-wrap
25892 msgid ""
25893 " int\n"
25894 " guestfs_aug_insert (guestfs_h *g,\n"
25895 "                     const char *augpath,\n"
25896 "                     const char *label,\n"
25897 "                     int before);\n"
25898 "\n"
25899 msgstr ""
25900 " int\n"
25901 " guestfs_aug_insert (guestfs_h *g,\n"
25902 "                     const char *augpath,\n"
25903 "                     const char *label,\n"
25904 "                     int before);\n"
25905 "\n"
25906
25907 #. type: =head2
25908 #: ../src/guestfs-actions.pod:504
25909 msgid "guestfs_aug_load"
25910 msgstr "guestfs_aug_load"
25911
25912 #. type: verbatim
25913 #: ../src/guestfs-actions.pod:506
25914 #, no-wrap
25915 msgid ""
25916 " int\n"
25917 " guestfs_aug_load (guestfs_h *g);\n"
25918 "\n"
25919 msgstr ""
25920 " int\n"
25921 " guestfs_aug_load (guestfs_h *g);\n"
25922 "\n"
25923
25924 #. type: =head2
25925 #: ../src/guestfs-actions.pod:518
25926 msgid "guestfs_aug_ls"
25927 msgstr "guestfs_aug_ls"
25928
25929 #. type: verbatim
25930 #: ../src/guestfs-actions.pod:520
25931 #, no-wrap
25932 msgid ""
25933 " char **\n"
25934 " guestfs_aug_ls (guestfs_h *g,\n"
25935 "                 const char *augpath);\n"
25936 "\n"
25937 msgstr ""
25938 " char **\n"
25939 " guestfs_aug_ls (guestfs_h *g,\n"
25940 "                 const char *augpath);\n"
25941 "\n"
25942
25943 #. type: textblock
25944 #: ../src/guestfs-actions.pod:524
25945 msgid ""
25946 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25947 "sorting the resulting nodes into alphabetical order."
25948 msgstr ""
25949
25950 #. type: textblock
25951 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
25952 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
25953 #: ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:1862
25954 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:1984
25955 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2696
25956 #: ../src/guestfs-actions.pod:2712 ../src/guestfs-actions.pod:2731
25957 #: ../src/guestfs-actions.pod:2796 ../src/guestfs-actions.pod:2820
25958 #: ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:2940
25959 #: ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3584
25960 #: ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:4178
25961 #: ../src/guestfs-actions.pod:4195 ../src/guestfs-actions.pod:4215
25962 #: ../src/guestfs-actions.pod:4277 ../src/guestfs-actions.pod:4382
25963 #: ../src/guestfs-actions.pod:4790 ../src/guestfs-actions.pod:5547
25964 #: ../src/guestfs-actions.pod:6183 ../src/guestfs-actions.pod:6309
25965 #: ../src/guestfs-actions.pod:6423 ../src/guestfs-actions.pod:7190
25966 #: ../src/guestfs-actions.pod:7251 ../src/guestfs-actions.pod:7306
25967 #: ../src/guestfs-actions.pod:7452 ../src/guestfs-actions.pod:7476
25968 #: ../src/guestfs-actions.pod:7952 ../src/guestfs-actions.pod:7972
25969 #: ../src/guestfs-actions.pod:8019 ../src/guestfs-actions.pod:8213
25970 #: ../src/guestfs-actions.pod:8232 ../src/guestfs-actions.pod:8326
25971 #: ../src/guestfs-actions.pod:8345 ../src/guestfs-actions.pod:8391
25972 #: ../src/guestfs-actions.pod:8410
25973 msgid ""
25974 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25975 ">), or NULL if there was an error.  I<The caller must free the strings and "
25976 "the array after use>."
25977 msgstr ""
25978
25979 #. type: textblock
25980 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
25981 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1900
25982 #: ../src/guestfs-actions.pod:3942 ../src/guestfs-actions.pod:3973
25983 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4681
25984 #: ../src/guestfs-actions.pod:4868 ../src/guestfs-actions.pod:4901
25985 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5551
25986 #: ../src/guestfs-actions.pod:6124 ../src/guestfs-actions.pod:6521
25987 #: ../src/guestfs-actions.pod:6535 ../src/guestfs-actions.pod:6547
25988 #: ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7690
25989 #: ../src/guestfs-actions.pod:7703 ../src/guestfs-actions.pod:7936
25990 #: ../src/guestfs-actions.pod:8201
25991 msgid "(Added in 0.8)"
25992 msgstr "(Додано у 0.8)"
25993
25994 #. type: =head2
25995 #: ../src/guestfs-actions.pod:533
25996 msgid "guestfs_aug_match"
25997 msgstr "guestfs_aug_match"
25998
25999 #. type: verbatim
26000 #: ../src/guestfs-actions.pod:535
26001 #, no-wrap
26002 msgid ""
26003 " char **\n"
26004 " guestfs_aug_match (guestfs_h *g,\n"
26005 "                    const char *augpath);\n"
26006 "\n"
26007 msgstr ""
26008 " char **\n"
26009 " guestfs_aug_match (guestfs_h *g,\n"
26010 "                    const char *augpath);\n"
26011 "\n"
26012
26013 #. type: =head2
26014 #: ../src/guestfs-actions.pod:549
26015 msgid "guestfs_aug_mv"
26016 msgstr "guestfs_aug_mv"
26017
26018 #. type: verbatim
26019 #: ../src/guestfs-actions.pod:551
26020 #, no-wrap
26021 msgid ""
26022 " int\n"
26023 " guestfs_aug_mv (guestfs_h *g,\n"
26024 "                 const char *src,\n"
26025 "                 const char *dest);\n"
26026 "\n"
26027 msgstr ""
26028 " int\n"
26029 " guestfs_aug_mv (guestfs_h *g,\n"
26030 "                 const char *src,\n"
26031 "                 const char *dest);\n"
26032 "\n"
26033
26034 #. type: =head2
26035 #: ../src/guestfs-actions.pod:563
26036 msgid "guestfs_aug_rm"
26037 msgstr "guestfs_aug_rm"
26038
26039 #. type: verbatim
26040 #: ../src/guestfs-actions.pod:565
26041 #, no-wrap
26042 msgid ""
26043 " int\n"
26044 " guestfs_aug_rm (guestfs_h *g,\n"
26045 "                 const char *augpath);\n"
26046 "\n"
26047 msgstr ""
26048 " int\n"
26049 " guestfs_aug_rm (guestfs_h *g,\n"
26050 "                 const char *augpath);\n"
26051 "\n"
26052
26053 #. type: =head2
26054 #: ../src/guestfs-actions.pod:577
26055 msgid "guestfs_aug_save"
26056 msgstr "guestfs_aug_save"
26057
26058 #. type: verbatim
26059 #: ../src/guestfs-actions.pod:579
26060 #, no-wrap
26061 msgid ""
26062 " int\n"
26063 " guestfs_aug_save (guestfs_h *g);\n"
26064 "\n"
26065 msgstr ""
26066 " int\n"
26067 " guestfs_aug_save (guestfs_h *g);\n"
26068 "\n"
26069
26070 #. type: textblock
26071 #: ../src/guestfs-actions.pod:584
26072 msgid ""
26073 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
26074 "are saved."
26075 msgstr ""
26076
26077 #. type: =head2
26078 #: ../src/guestfs-actions.pod:591
26079 msgid "guestfs_aug_set"
26080 msgstr "guestfs_aug_set"
26081
26082 #. type: verbatim
26083 #: ../src/guestfs-actions.pod:593
26084 #, no-wrap
26085 msgid ""
26086 " int\n"
26087 " guestfs_aug_set (guestfs_h *g,\n"
26088 "                  const char *augpath,\n"
26089 "                  const char *val);\n"
26090 "\n"
26091 msgstr ""
26092 " int\n"
26093 " guestfs_aug_set (guestfs_h *g,\n"
26094 "                  const char *augpath,\n"
26095 "                  const char *val);\n"
26096 "\n"
26097
26098 #. type: textblock
26099 #: ../src/guestfs-actions.pod:600
26100 msgid ""
26101 "In the Augeas API, it is possible to clear a node by setting the value to "
26102 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
26103 "this call.  Instead you must use the C<guestfs_aug_clear> call."
26104 msgstr ""
26105
26106 #. type: =head2
26107 #: ../src/guestfs-actions.pod:609
26108 msgid "guestfs_available"
26109 msgstr "guestfs_available"
26110
26111 #. type: verbatim
26112 #: ../src/guestfs-actions.pod:611
26113 #, no-wrap
26114 msgid ""
26115 " int\n"
26116 " guestfs_available (guestfs_h *g,\n"
26117 "                    char *const *groups);\n"
26118 "\n"
26119 msgstr ""
26120 " int\n"
26121 " guestfs_available (guestfs_h *g,\n"
26122 "                    char *const *groups);\n"
26123 "\n"
26124
26125 #. type: textblock
26126 #: ../src/guestfs-actions.pod:619
26127 msgid ""
26128 "The libguestfs groups, and the functions that those groups correspond to, "
26129 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
26130 "runtime by calling C<guestfs_available_all_groups>."
26131 msgstr ""
26132
26133 #. type: textblock
26134 #: ../src/guestfs-actions.pod:643
26135 msgid "You must call C<guestfs_launch> before calling this function."
26136 msgstr ""
26137
26138 #. type: textblock
26139 #: ../src/guestfs-actions.pod:665
26140 msgid ""
26141 "This call was added in version C<1.0.80>.  In previous versions of "
26142 "libguestfs all you could do would be to speculatively execute a command to "
26143 "find out if the daemon implemented it.  See also C<guestfs_version>."
26144 msgstr ""
26145
26146 #. type: textblock
26147 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1645
26148 msgid "(Added in 1.0.80)"
26149 msgstr "(Додано у 1.0.80)"
26150
26151 #. type: =head2
26152 #: ../src/guestfs-actions.pod:676
26153 msgid "guestfs_available_all_groups"
26154 msgstr "guestfs_available_all_groups"
26155
26156 #. type: verbatim
26157 #: ../src/guestfs-actions.pod:678
26158 #, no-wrap
26159 msgid ""
26160 " char **\n"
26161 " guestfs_available_all_groups (guestfs_h *g);\n"
26162 "\n"
26163 msgstr ""
26164 " char **\n"
26165 " guestfs_available_all_groups (guestfs_h *g);\n"
26166 "\n"
26167
26168 #. type: textblock
26169 #: ../src/guestfs-actions.pod:681
26170 msgid ""
26171 "This command returns a list of all optional groups that this daemon knows "
26172 "about.  Note this returns both supported and unsupported groups.  To find "
26173 "out which ones the daemon can actually support you have to call "
26174 "C<guestfs_available> on each member of the returned list."
26175 msgstr ""
26176
26177 #. type: textblock
26178 #: ../src/guestfs-actions.pod:687
26179 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26180 msgstr ""
26181
26182 #. type: textblock
26183 #: ../src/guestfs-actions.pod:693
26184 msgid "(Added in 1.3.15)"
26185 msgstr "(Додано у 1.3.15)"
26186
26187 #. type: =head2
26188 #: ../src/guestfs-actions.pod:695
26189 msgid "guestfs_base64_in"
26190 msgstr "guestfs_base64_in"
26191
26192 #. type: verbatim
26193 #: ../src/guestfs-actions.pod:697
26194 #, no-wrap
26195 msgid ""
26196 " int\n"
26197 " guestfs_base64_in (guestfs_h *g,\n"
26198 "                    const char *base64file,\n"
26199 "                    const char *filename);\n"
26200 "\n"
26201 msgstr ""
26202 " int\n"
26203 " guestfs_base64_in (guestfs_h *g,\n"
26204 "                    const char *base64file,\n"
26205 "                    const char *filename);\n"
26206 "\n"
26207
26208 #. type: textblock
26209 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
26210 msgid "(Added in 1.3.5)"
26211 msgstr "(Додано у 1.3.5)"
26212
26213 #. type: =head2
26214 #: ../src/guestfs-actions.pod:709
26215 msgid "guestfs_base64_out"
26216 msgstr "guestfs_base64_out"
26217
26218 #. type: verbatim
26219 #: ../src/guestfs-actions.pod:711
26220 #, no-wrap
26221 msgid ""
26222 " int\n"
26223 " guestfs_base64_out (guestfs_h *g,\n"
26224 "                     const char *filename,\n"
26225 "                     const char *base64file);\n"
26226 "\n"
26227 msgstr ""
26228 " int\n"
26229 " guestfs_base64_out (guestfs_h *g,\n"
26230 "                     const char *filename,\n"
26231 "                     const char *base64file);\n"
26232 "\n"
26233
26234 #. type: =head2
26235 #: ../src/guestfs-actions.pod:723
26236 msgid "guestfs_blockdev_flushbufs"
26237 msgstr "guestfs_blockdev_flushbufs"
26238
26239 #. type: verbatim
26240 #: ../src/guestfs-actions.pod:725
26241 #, no-wrap
26242 msgid ""
26243 " int\n"
26244 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26245 "                             const char *device);\n"
26246 "\n"
26247 msgstr ""
26248 " int\n"
26249 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26250 "                             const char *device);\n"
26251 "\n"
26252
26253 #. type: textblock
26254 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
26255 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
26256 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
26257 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
26258 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
26259 msgid "(Added in 0.9.3)"
26260 msgstr "(Додано у 0.9.3)"
26261
26262 #. type: =head2
26263 #: ../src/guestfs-actions.pod:738
26264 msgid "guestfs_blockdev_getbsz"
26265 msgstr "guestfs_blockdev_getbsz"
26266
26267 #. type: verbatim
26268 #: ../src/guestfs-actions.pod:740
26269 #, no-wrap
26270 msgid ""
26271 " int\n"
26272 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26273 "                          const char *device);\n"
26274 "\n"
26275 msgstr ""
26276 " int\n"
26277 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26278 "                          const char *device);\n"
26279 "\n"
26280
26281 #. type: =head2
26282 #: ../src/guestfs-actions.pod:755
26283 msgid "guestfs_blockdev_getro"
26284 msgstr "guestfs_blockdev_getro"
26285
26286 #. type: verbatim
26287 #: ../src/guestfs-actions.pod:757
26288 #, no-wrap
26289 msgid ""
26290 " int\n"
26291 " guestfs_blockdev_getro (guestfs_h *g,\n"
26292 "                         const char *device);\n"
26293 "\n"
26294 msgstr ""
26295 " int\n"
26296 " guestfs_blockdev_getro (guestfs_h *g,\n"
26297 "                         const char *device);\n"
26298 "\n"
26299
26300 #. type: textblock
26301 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1883
26302 #: ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:2387
26303 #: ../src/guestfs-actions.pod:2398 ../src/guestfs-actions.pod:2470
26304 #: ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2536
26305 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2587
26306 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:3685
26307 #: ../src/guestfs-actions.pod:3701 ../src/guestfs-actions.pod:3719
26308 #: ../src/guestfs-actions.pod:3881 ../src/guestfs-actions.pod:3895
26309 #: ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3924
26310 #: ../src/guestfs-actions.pod:3940 ../src/guestfs-actions.pod:3955
26311 #: ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:3985
26312 #: ../src/guestfs-actions.pod:3998 ../src/guestfs-actions.pod:4012
26313 #: ../src/guestfs-actions.pod:4027 ../src/guestfs-actions.pod:4042
26314 #: ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4069
26315 #: ../src/guestfs-actions.pod:5788
26316 msgid "This function returns a C truth value on success or -1 on error."
26317 msgstr ""
26318
26319 #. type: =head2
26320 #: ../src/guestfs-actions.pod:770
26321 msgid "guestfs_blockdev_getsize64"
26322 msgstr "guestfs_blockdev_getsize64"
26323
26324 #. type: verbatim
26325 #: ../src/guestfs-actions.pod:772
26326 #, no-wrap
26327 msgid ""
26328 " int64_t\n"
26329 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26330 "                             const char *device);\n"
26331 "\n"
26332 msgstr ""
26333 " int64_t\n"
26334 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26335 "                             const char *device);\n"
26336 "\n"
26337
26338 #. type: textblock
26339 #: ../src/guestfs-actions.pod:778
26340 msgid "See also C<guestfs_blockdev_getsz>."
26341 msgstr ""
26342
26343 #. type: =head2
26344 #: ../src/guestfs-actions.pod:786
26345 msgid "guestfs_blockdev_getss"
26346 msgstr "guestfs_blockdev_getss"
26347
26348 #. type: verbatim
26349 #: ../src/guestfs-actions.pod:788
26350 #, no-wrap
26351 msgid ""
26352 " int\n"
26353 " guestfs_blockdev_getss (guestfs_h *g,\n"
26354 "                         const char *device);\n"
26355 "\n"
26356 msgstr ""
26357 " int\n"
26358 " guestfs_blockdev_getss (guestfs_h *g,\n"
26359 "                         const char *device);\n"
26360 "\n"
26361
26362 #. type: textblock
26363 #: ../src/guestfs-actions.pod:795
26364 msgid ""
26365 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26366 "that)."
26367 msgstr ""
26368
26369 #. type: =head2
26370 #: ../src/guestfs-actions.pod:804
26371 msgid "guestfs_blockdev_getsz"
26372 msgstr "guestfs_blockdev_getsz"
26373
26374 #. type: verbatim
26375 #: ../src/guestfs-actions.pod:806
26376 #, no-wrap
26377 msgid ""
26378 " int64_t\n"
26379 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26380 "                         const char *device);\n"
26381 "\n"
26382 msgstr ""
26383 " int64_t\n"
26384 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26385 "                         const char *device);\n"
26386 "\n"
26387
26388 #. type: textblock
26389 #: ../src/guestfs-actions.pod:813
26390 msgid ""
26391 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26392 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26393 msgstr ""
26394
26395 #. type: =head2
26396 #: ../src/guestfs-actions.pod:823
26397 msgid "guestfs_blockdev_rereadpt"
26398 msgstr "guestfs_blockdev_rereadpt"
26399
26400 #. type: verbatim
26401 #: ../src/guestfs-actions.pod:825
26402 #, no-wrap
26403 msgid ""
26404 " int\n"
26405 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26406 "                            const char *device);\n"
26407 "\n"
26408 msgstr ""
26409 " int\n"
26410 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26411 "                            const char *device);\n"
26412 "\n"
26413
26414 #. type: =head2
26415 #: ../src/guestfs-actions.pod:837
26416 msgid "guestfs_blockdev_setbsz"
26417 msgstr "guestfs_blockdev_setbsz"
26418
26419 #. type: verbatim
26420 #: ../src/guestfs-actions.pod:839
26421 #, no-wrap
26422 msgid ""
26423 " int\n"
26424 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26425 "                          const char *device,\n"
26426 "                          int blocksize);\n"
26427 "\n"
26428 msgstr ""
26429 " int\n"
26430 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26431 "                          const char *device,\n"
26432 "                          int blocksize);\n"
26433 "\n"
26434
26435 #. type: =head2
26436 #: ../src/guestfs-actions.pod:855
26437 msgid "guestfs_blockdev_setro"
26438 msgstr "guestfs_blockdev_setro"
26439
26440 #. type: verbatim
26441 #: ../src/guestfs-actions.pod:857
26442 #, no-wrap
26443 msgid ""
26444 " int\n"
26445 " guestfs_blockdev_setro (guestfs_h *g,\n"
26446 "                         const char *device);\n"
26447 "\n"
26448 msgstr ""
26449 " int\n"
26450 " guestfs_blockdev_setro (guestfs_h *g,\n"
26451 "                         const char *device);\n"
26452 "\n"
26453
26454 #. type: =head2
26455 #: ../src/guestfs-actions.pod:869
26456 msgid "guestfs_blockdev_setrw"
26457 msgstr "guestfs_blockdev_setrw"
26458
26459 #. type: verbatim
26460 #: ../src/guestfs-actions.pod:871
26461 #, no-wrap
26462 msgid ""
26463 " int\n"
26464 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26465 "                         const char *device);\n"
26466 "\n"
26467 msgstr ""
26468 " int\n"
26469 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26470 "                         const char *device);\n"
26471 "\n"
26472
26473 #. type: =head2
26474 #: ../src/guestfs-actions.pod:883
26475 msgid "guestfs_btrfs_filesystem_resize"
26476 msgstr "guestfs_btrfs_filesystem_resize"
26477
26478 #. type: verbatim
26479 #: ../src/guestfs-actions.pod:885
26480 #, no-wrap
26481 msgid ""
26482 " int\n"
26483 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26484 "                                  const char *mountpoint,\n"
26485 "                                  ...);\n"
26486 "\n"
26487 msgstr ""
26488 " int\n"
26489 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26490 "                                  const char *mountpoint,\n"
26491 "                                  ...);\n"
26492 "\n"
26493
26494 #. type: verbatim
26495 #: ../src/guestfs-actions.pod:895
26496 #, no-wrap
26497 msgid ""
26498 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26499 "\n"
26500 msgstr ""
26501 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26502 "\n"
26503
26504 #. type: textblock
26505 #: ../src/guestfs-actions.pod:918
26506 msgid "(Added in 1.11.17)"
26507 msgstr "(Додано у 1.11.17)"
26508
26509 #. type: =head2
26510 #: ../src/guestfs-actions.pod:920
26511 msgid "guestfs_btrfs_filesystem_resize_va"
26512 msgstr "guestfs_btrfs_filesystem_resize_va"
26513
26514 #. type: verbatim
26515 #: ../src/guestfs-actions.pod:922
26516 #, no-wrap
26517 msgid ""
26518 " int\n"
26519 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26520 "                                     const char *mountpoint,\n"
26521 "                                     va_list args);\n"
26522 "\n"
26523 msgstr ""
26524 " int\n"
26525 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26526 "                                     const char *mountpoint,\n"
26527 "                                     va_list args);\n"
26528 "\n"
26529
26530 #. type: textblock
26531 #: ../src/guestfs-actions.pod:927
26532 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26533 msgstr ""
26534
26535 #. type: =head2
26536 #: ../src/guestfs-actions.pod:931
26537 msgid "guestfs_btrfs_filesystem_resize_argv"
26538 msgstr "guestfs_btrfs_filesystem_resize_argv"
26539
26540 #. type: verbatim
26541 #: ../src/guestfs-actions.pod:933
26542 #, no-wrap
26543 msgid ""
26544 " int\n"
26545 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26546 "                                       const char *mountpoint,\n"
26547 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26548 "\n"
26549 msgstr ""
26550 " int\n"
26551 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26552 "                                       const char *mountpoint,\n"
26553 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26554 "\n"
26555
26556 #. type: textblock
26557 #: ../src/guestfs-actions.pod:938
26558 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26559 msgstr ""
26560
26561 #. type: =head2
26562 #: ../src/guestfs-actions.pod:942
26563 msgid "guestfs_case_sensitive_path"
26564 msgstr ""
26565
26566 #. type: verbatim
26567 #: ../src/guestfs-actions.pod:944
26568 #, no-wrap
26569 msgid ""
26570 " char *\n"
26571 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26572 "                              const char *path);\n"
26573 "\n"
26574 msgstr ""
26575
26576 #. type: textblock
26577 #: ../src/guestfs-actions.pod:970
26578 msgid ""
26579 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
26580 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26581 "how the directories were originally created under Windows)."
26582 msgstr ""
26583
26584 #. type: textblock
26585 #: ../src/guestfs-actions.pod:978
26586 msgid "See also C<guestfs_realpath>."
26587 msgstr ""
26588
26589 #. type: textblock
26590 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7870
26591 msgid "(Added in 1.0.75)"
26592 msgstr "(Додано у 1.0.75)"
26593
26594 #. type: =head2
26595 #: ../src/guestfs-actions.pod:985
26596 msgid "guestfs_cat"
26597 msgstr ""
26598
26599 #. type: verbatim
26600 #: ../src/guestfs-actions.pod:987
26601 #, no-wrap
26602 msgid ""
26603 " char *\n"
26604 " guestfs_cat (guestfs_h *g,\n"
26605 "              const char *path);\n"
26606 "\n"
26607 msgstr ""
26608
26609 #. type: textblock
26610 #: ../src/guestfs-actions.pod:993
26611 msgid ""
26612 "Note that this function cannot correctly handle binary files (specifically, "
26613 "files containing C<\\0> character which is treated as end of string).  For "
26614 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26615 "functions which have a more complex interface."
26616 msgstr ""
26617
26618 #. type: textblock
26619 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4199
26620 #: ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4298
26621 #: ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4794
26622 #: ../src/guestfs-actions.pod:4808 ../src/guestfs-actions.pod:6187
26623 #: ../src/guestfs-actions.pod:6201 ../src/guestfs-actions.pod:8023
26624 #: ../src/guestfs-actions.pod:8037
26625 msgid "(Added in 0.4)"
26626 msgstr "(Додано у 0.4)"
26627
26628 #. type: =head2
26629 #: ../src/guestfs-actions.pod:1006
26630 msgid "guestfs_checksum"
26631 msgstr ""
26632
26633 #. type: verbatim
26634 #: ../src/guestfs-actions.pod:1008
26635 #, no-wrap
26636 msgid ""
26637 " char *\n"
26638 " guestfs_checksum (guestfs_h *g,\n"
26639 "                   const char *csumtype,\n"
26640 "                   const char *path);\n"
26641 "\n"
26642 msgstr ""
26643
26644 #. type: textblock
26645 #: ../src/guestfs-actions.pod:1054
26646 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26647 msgstr ""
26648
26649 #. type: textblock
26650 #: ../src/guestfs-actions.pod:1056
26651 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26652 msgstr ""
26653
26654 #. type: textblock
26655 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1720
26656 #: ../src/guestfs-actions.pod:2578 ../src/guestfs-actions.pod:3897
26657 #: ../src/guestfs-actions.pod:3926 ../src/guestfs-actions.pod:3987
26658 #: ../src/guestfs-actions.pod:4014 ../src/guestfs-actions.pod:7726
26659 msgid "(Added in 1.0.2)"
26660 msgstr "(Додано у 1.0.2)"
26661
26662 #. type: =head2
26663 #: ../src/guestfs-actions.pod:1063
26664 msgid "guestfs_checksum_device"
26665 msgstr ""
26666
26667 #. type: verbatim
26668 #: ../src/guestfs-actions.pod:1065
26669 #, no-wrap
26670 msgid ""
26671 " char *\n"
26672 " guestfs_checksum_device (guestfs_h *g,\n"
26673 "                          const char *csumtype,\n"
26674 "                          const char *device);\n"
26675 "\n"
26676 msgstr ""
26677
26678 #. type: textblock
26679 #: ../src/guestfs-actions.pod:1070
26680 msgid ""
26681 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26682 "device named C<device>.  For the types of checksums supported see the "
26683 "C<guestfs_checksum> command."
26684 msgstr ""
26685
26686 #. type: textblock
26687 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5618
26688 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5790
26689 #: ../src/guestfs-actions.pod:5808 ../src/guestfs-actions.pod:5990
26690 #: ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:7649
26691 #: ../src/guestfs-actions.pod:8049
26692 msgid "(Added in 1.3.2)"
26693 msgstr "(Додано у 1.3.2)"
26694
26695 #. type: =head2
26696 #: ../src/guestfs-actions.pod:1079
26697 msgid "guestfs_checksums_out"
26698 msgstr ""
26699
26700 #. type: verbatim
26701 #: ../src/guestfs-actions.pod:1081
26702 #, no-wrap
26703 msgid ""
26704 " int\n"
26705 " guestfs_checksums_out (guestfs_h *g,\n"
26706 "                        const char *csumtype,\n"
26707 "                        const char *directory,\n"
26708 "                        const char *sumsfile);\n"
26709 "\n"
26710 msgstr ""
26711
26712 #. type: textblock
26713 #: ../src/guestfs-actions.pod:1101
26714 msgid "(Added in 1.3.7)"
26715 msgstr "(Додано у 1.3.7)"
26716
26717 #. type: =head2
26718 #: ../src/guestfs-actions.pod:1103
26719 msgid "guestfs_chmod"
26720 msgstr ""
26721
26722 #. type: verbatim
26723 #: ../src/guestfs-actions.pod:1105
26724 #, no-wrap
26725 msgid ""
26726 " int\n"
26727 " guestfs_chmod (guestfs_h *g,\n"
26728 "                int mode,\n"
26729 "                const char *path);\n"
26730 "\n"
26731 msgstr ""
26732
26733 #. type: =head2
26734 #: ../src/guestfs-actions.pod:1123
26735 msgid "guestfs_chown"
26736 msgstr ""
26737
26738 #. type: verbatim
26739 #: ../src/guestfs-actions.pod:1125
26740 #, no-wrap
26741 msgid ""
26742 " int\n"
26743 " guestfs_chown (guestfs_h *g,\n"
26744 "                int owner,\n"
26745 "                int group,\n"
26746 "                const char *path);\n"
26747 "\n"
26748 msgstr ""
26749
26750 #. type: =head2
26751 #: ../src/guestfs-actions.pod:1141
26752 msgid "guestfs_command"
26753 msgstr ""
26754
26755 #. type: verbatim
26756 #: ../src/guestfs-actions.pod:1143
26757 #, no-wrap
26758 msgid ""
26759 " char *\n"
26760 " guestfs_command (guestfs_h *g,\n"
26761 "                  char *const *arguments);\n"
26762 "\n"
26763 msgstr ""
26764
26765 #. type: textblock
26766 #: ../src/guestfs-actions.pod:1152
26767 msgid ""
26768 "The single parameter is an argv-style list of arguments.  The first element "
26769 "is the name of the program to run.  Subsequent elements are parameters.  The "
26770 "list must be non-empty (ie. must contain a program name).  Note that the "
26771 "command runs directly, and is I<not> invoked via the shell (see "
26772 "C<guestfs_sh>)."
26773 msgstr ""
26774
26775 #. type: textblock
26776 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
26777 #: ../src/guestfs-actions.pod:2019
26778 msgid "(Added in 0.9.1)"
26779 msgstr "(Додано у 0.9.1)"
26780
26781 #. type: =head2
26782 #: ../src/guestfs-actions.pod:1185
26783 msgid "guestfs_command_lines"
26784 msgstr ""
26785
26786 #. type: verbatim
26787 #: ../src/guestfs-actions.pod:1187
26788 #, no-wrap
26789 msgid ""
26790 " char **\n"
26791 " guestfs_command_lines (guestfs_h *g,\n"
26792 "                        char *const *arguments);\n"
26793 "\n"
26794 msgstr ""
26795
26796 #. type: textblock
26797 #: ../src/guestfs-actions.pod:1191
26798 msgid ""
26799 "This is the same as C<guestfs_command>, but splits the result into a list of "
26800 "lines."
26801 msgstr ""
26802
26803 #. type: textblock
26804 #: ../src/guestfs-actions.pod:1194
26805 msgid "See also: C<guestfs_sh_lines>"
26806 msgstr ""
26807
26808 #. type: =head2
26809 #: ../src/guestfs-actions.pod:1205
26810 msgid "guestfs_compress_device_out"
26811 msgstr ""
26812
26813 #. type: verbatim
26814 #: ../src/guestfs-actions.pod:1207
26815 #, no-wrap
26816 msgid ""
26817 " int\n"
26818 " guestfs_compress_device_out (guestfs_h *g,\n"
26819 "                              const char *ctype,\n"
26820 "                              const char *device,\n"
26821 "                              const char *zdevice,\n"
26822 "                              ...);\n"
26823 "\n"
26824 msgstr ""
26825
26826 #. type: verbatim
26827 #: ../src/guestfs-actions.pod:1219
26828 #, no-wrap
26829 msgid ""
26830 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26831 "\n"
26832 msgstr ""
26833
26834 #. type: textblock
26835 #: ../src/guestfs-actions.pod:1224
26836 msgid ""
26837 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26838 "C<guestfs_compress_out>."
26839 msgstr ""
26840
26841 #. type: textblock
26842 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
26843 #: ../src/guestfs-actions.pod:2564 ../src/guestfs-actions.pod:6907
26844 msgid "(Added in 1.13.15)"
26845 msgstr ""
26846
26847 #. type: =head2
26848 #: ../src/guestfs-actions.pod:1231
26849 msgid "guestfs_compress_device_out_va"
26850 msgstr ""
26851
26852 #. type: verbatim
26853 #: ../src/guestfs-actions.pod:1233
26854 #, no-wrap
26855 msgid ""
26856 " int\n"
26857 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26858 "                                 const char *ctype,\n"
26859 "                                 const char *device,\n"
26860 "                                 const char *zdevice,\n"
26861 "                                 va_list args);\n"
26862 "\n"
26863 msgstr ""
26864
26865 #. type: textblock
26866 #: ../src/guestfs-actions.pod:1240
26867 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26868 msgstr ""
26869
26870 #. type: =head2
26871 #: ../src/guestfs-actions.pod:1244
26872 msgid "guestfs_compress_device_out_argv"
26873 msgstr ""
26874
26875 #. type: verbatim
26876 #: ../src/guestfs-actions.pod:1246
26877 #, no-wrap
26878 msgid ""
26879 " int\n"
26880 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26881 "                                   const char *ctype,\n"
26882 "                                   const char *device,\n"
26883 "                                   const char *zdevice,\n"
26884 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
26885 "\n"
26886 msgstr ""
26887
26888 #. type: textblock
26889 #: ../src/guestfs-actions.pod:1253
26890 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26891 msgstr ""
26892
26893 #. type: =head2
26894 #: ../src/guestfs-actions.pod:1257
26895 msgid "guestfs_compress_out"
26896 msgstr ""
26897
26898 #. type: verbatim
26899 #: ../src/guestfs-actions.pod:1259
26900 #, no-wrap
26901 msgid ""
26902 " int\n"
26903 " guestfs_compress_out (guestfs_h *g,\n"
26904 "                       const char *ctype,\n"
26905 "                       const char *file,\n"
26906 "                       const char *zfile,\n"
26907 "                       ...);\n"
26908 "\n"
26909 msgstr ""
26910
26911 #. type: verbatim
26912 #: ../src/guestfs-actions.pod:1271
26913 #, no-wrap
26914 msgid ""
26915 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26916 "\n"
26917 msgstr ""
26918
26919 #. type: =head2
26920 #: ../src/guestfs-actions.pod:1290
26921 msgid "guestfs_compress_out_va"
26922 msgstr ""
26923
26924 #. type: verbatim
26925 #: ../src/guestfs-actions.pod:1292
26926 #, no-wrap
26927 msgid ""
26928 " int\n"
26929 " guestfs_compress_out_va (guestfs_h *g,\n"
26930 "                          const char *ctype,\n"
26931 "                          const char *file,\n"
26932 "                          const char *zfile,\n"
26933 "                          va_list args);\n"
26934 "\n"
26935 msgstr ""
26936
26937 #. type: textblock
26938 #: ../src/guestfs-actions.pod:1299
26939 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26940 msgstr ""
26941
26942 #. type: =head2
26943 #: ../src/guestfs-actions.pod:1303
26944 msgid "guestfs_compress_out_argv"
26945 msgstr ""
26946
26947 #. type: verbatim
26948 #: ../src/guestfs-actions.pod:1305
26949 #, no-wrap
26950 msgid ""
26951 " int\n"
26952 " guestfs_compress_out_argv (guestfs_h *g,\n"
26953 "                            const char *ctype,\n"
26954 "                            const char *file,\n"
26955 "                            const char *zfile,\n"
26956 "                            const struct guestfs_compress_out_argv *optargs);\n"
26957 "\n"
26958 msgstr ""
26959
26960 #. type: textblock
26961 #: ../src/guestfs-actions.pod:1312
26962 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26963 msgstr ""
26964
26965 #. type: =head2
26966 #: ../src/guestfs-actions.pod:1316
26967 msgid "guestfs_config"
26968 msgstr ""
26969
26970 #. type: verbatim
26971 #: ../src/guestfs-actions.pod:1318
26972 #, no-wrap
26973 msgid ""
26974 " int\n"
26975 " guestfs_config (guestfs_h *g,\n"
26976 "                 const char *qemuparam,\n"
26977 "                 const char *qemuvalue);\n"
26978 "\n"
26979 msgstr ""
26980
26981 #. type: =head2
26982 #: ../src/guestfs-actions.pod:1336
26983 #, fuzzy
26984 #| msgid "guestfs_zero_device"
26985 msgid "guestfs_copy_device_to_device"
26986 msgstr "guestfs_zero_device"
26987
26988 #. type: verbatim
26989 #: ../src/guestfs-actions.pod:1338
26990 #, fuzzy, no-wrap
26991 #| msgid ""
26992 #| " int\n"
26993 #| " guestfs_luks_kill_slot (guestfs_h *g,\n"
26994 #| "                         const char *device,\n"
26995 #| "                         const char *key,\n"
26996 #| "                         int keyslot);\n"
26997 #| "\n"
26998 msgid ""
26999 " int\n"
27000 " guestfs_copy_device_to_device (guestfs_h *g,\n"
27001 "                                const char *src,\n"
27002 "                                const char *dest,\n"
27003 "                                ...);\n"
27004 "\n"
27005 msgstr ""
27006 " int\n"
27007 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27008 "                         const char *device,\n"
27009 "                         const char *key,\n"
27010 "                         int keyslot);\n"
27011 "\n"
27012
27013 #. type: verbatim
27014 #: ../src/guestfs-actions.pod:1349
27015 #, no-wrap
27016 msgid ""
27017 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27018 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27019 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
27020 "\n"
27021 msgstr ""
27022
27023 #. type: textblock
27024 #: ../src/guestfs-actions.pod:1353
27025 msgid ""
27026 "The four calls C<guestfs_copy_device_to_device>, "
27027 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
27028 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
27029 "destination (device|file)."
27030 msgstr ""
27031
27032 #. type: textblock
27033 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1425
27034 #: ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:1532
27035 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1715
27036 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:1791
27037 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2190
27038 #: ../src/guestfs-actions.pod:4097 ../src/guestfs-actions.pod:7721
27039 #: ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:8262
27040 #: ../src/guestfs-actions.pod:8285
27041 msgid ""
27042 "This long-running command can generate progress notification messages so "
27043 "that the caller can display a progress bar or indicator.  To receive these "
27044 "messages, the caller must register a progress event callback.  See L<guestfs"
27045 "(3)/GUESTFS_EVENT_PROGRESS>."
27046 msgstr ""
27047
27048 #. type: =head2
27049 #: ../src/guestfs-actions.pod:1379
27050 #, fuzzy
27051 #| msgid "guestfs_zero_device"
27052 msgid "guestfs_copy_device_to_device_va"
27053 msgstr "guestfs_zero_device"
27054
27055 #. type: verbatim
27056 #: ../src/guestfs-actions.pod:1381
27057 #, fuzzy, no-wrap
27058 #| msgid ""
27059 #| " int\n"
27060 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27061 #| "                       const char *fstype,\n"
27062 #| "                       const char *device,\n"
27063 #| "                       va_list args);\n"
27064 #| "\n"
27065 msgid ""
27066 " int\n"
27067 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
27068 "                                   const char *src,\n"
27069 "                                   const char *dest,\n"
27070 "                                   va_list args);\n"
27071 "\n"
27072 msgstr ""
27073 " int\n"
27074 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27075 "                       const char *fstype,\n"
27076 "                       const char *device,\n"
27077 "                       va_list args);\n"
27078 "\n"
27079
27080 #. type: textblock
27081 #: ../src/guestfs-actions.pod:1387
27082 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27083 msgstr ""
27084
27085 #. type: =head2
27086 #: ../src/guestfs-actions.pod:1391
27087 #, fuzzy
27088 #| msgid "guestfs_zero_device"
27089 msgid "guestfs_copy_device_to_device_argv"
27090 msgstr "guestfs_zero_device"
27091
27092 #. type: verbatim
27093 #: ../src/guestfs-actions.pod:1393
27094 #, fuzzy, no-wrap
27095 #| msgid ""
27096 #| " int\n"
27097 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27098 #| "                         const char *fstype,\n"
27099 #| "                         const char *device,\n"
27100 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27101 #| "\n"
27102 msgid ""
27103 " int\n"
27104 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27105 "                                     const char *src,\n"
27106 "                                     const char *dest,\n"
27107 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
27108 "\n"
27109 msgstr ""
27110 " int\n"
27111 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27112 "                         const char *fstype,\n"
27113 "                         const char *device,\n"
27114 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27115 "\n"
27116
27117 #. type: textblock
27118 #: ../src/guestfs-actions.pod:1399
27119 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27120 msgstr ""
27121
27122 #. type: =head2
27123 #: ../src/guestfs-actions.pod:1403
27124 #, fuzzy
27125 #| msgid "guestfs_zero_device"
27126 msgid "guestfs_copy_device_to_file"
27127 msgstr "guestfs_zero_device"
27128
27129 #. type: verbatim
27130 #: ../src/guestfs-actions.pod:1405
27131 #, fuzzy, no-wrap
27132 #| msgid ""
27133 #| " int\n"
27134 #| " guestfs_luks_kill_slot (guestfs_h *g,\n"
27135 #| "                         const char *device,\n"
27136 #| "                         const char *key,\n"
27137 #| "                         int keyslot);\n"
27138 #| "\n"
27139 msgid ""
27140 " int\n"
27141 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27142 "                              const char *src,\n"
27143 "                              const char *dest,\n"
27144 "                              ...);\n"
27145 "\n"
27146 msgstr ""
27147 " int\n"
27148 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27149 "                         const char *device,\n"
27150 "                         const char *key,\n"
27151 "                         int keyslot);\n"
27152 "\n"
27153
27154 #. type: verbatim
27155 #: ../src/guestfs-actions.pod:1416
27156 #, no-wrap
27157 msgid ""
27158 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27159 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27160 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27161 "\n"
27162 msgstr ""
27163
27164 #. type: textblock
27165 #: ../src/guestfs-actions.pod:1420 ../src/guestfs-actions.pod:1471
27166 #: ../src/guestfs-actions.pod:1522
27167 msgid ""
27168 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27169 msgstr ""
27170
27171 #. type: =head2
27172 #: ../src/guestfs-actions.pod:1430
27173 #, fuzzy
27174 #| msgid "guestfs_zero_device"
27175 msgid "guestfs_copy_device_to_file_va"
27176 msgstr "guestfs_zero_device"
27177
27178 #. type: verbatim
27179 #: ../src/guestfs-actions.pod:1432
27180 #, fuzzy, no-wrap
27181 #| msgid ""
27182 #| " int\n"
27183 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27184 #| "                       const char *fstype,\n"
27185 #| "                       const char *device,\n"
27186 #| "                       va_list args);\n"
27187 #| "\n"
27188 msgid ""
27189 " int\n"
27190 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27191 "                                 const char *src,\n"
27192 "                                 const char *dest,\n"
27193 "                                 va_list args);\n"
27194 "\n"
27195 msgstr ""
27196 " int\n"
27197 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27198 "                       const char *fstype,\n"
27199 "                       const char *device,\n"
27200 "                       va_list args);\n"
27201 "\n"
27202
27203 #. type: textblock
27204 #: ../src/guestfs-actions.pod:1438
27205 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
27206 msgstr ""
27207
27208 #. type: =head2
27209 #: ../src/guestfs-actions.pod:1442
27210 #, fuzzy
27211 #| msgid "guestfs_lvm_set_filter"
27212 msgid "guestfs_copy_device_to_file_argv"
27213 msgstr "guestfs_lvm_set_filter"
27214
27215 #. type: verbatim
27216 #: ../src/guestfs-actions.pod:1444
27217 #, fuzzy, no-wrap
27218 #| msgid ""
27219 #| " int\n"
27220 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27221 #| "                         const char *fstype,\n"
27222 #| "                         const char *device,\n"
27223 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27224 #| "\n"
27225 msgid ""
27226 " int\n"
27227 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
27228 "                                   const char *src,\n"
27229 "                                   const char *dest,\n"
27230 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
27231 "\n"
27232 msgstr ""
27233 " int\n"
27234 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27235 "                         const char *fstype,\n"
27236 "                         const char *device,\n"
27237 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27238 "\n"
27239
27240 #. type: textblock
27241 #: ../src/guestfs-actions.pod:1450
27242 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
27243 msgstr ""
27244
27245 #. type: =head2
27246 #: ../src/guestfs-actions.pod:1454
27247 #, fuzzy
27248 #| msgid "guestfs_zero_device"
27249 msgid "guestfs_copy_file_to_device"
27250 msgstr "guestfs_zero_device"
27251
27252 #. type: verbatim
27253 #: ../src/guestfs-actions.pod:1456
27254 #, fuzzy, no-wrap
27255 #| msgid ""
27256 #| " int\n"
27257 #| " guestfs_luks_kill_slot (guestfs_h *g,\n"
27258 #| "                         const char *device,\n"
27259 #| "                         const char *key,\n"
27260 #| "                         int keyslot);\n"
27261 #| "\n"
27262 msgid ""
27263 " int\n"
27264 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27265 "                              const char *src,\n"
27266 "                              const char *dest,\n"
27267 "                              ...);\n"
27268 "\n"
27269 msgstr ""
27270 " int\n"
27271 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27272 "                         const char *device,\n"
27273 "                         const char *key,\n"
27274 "                         int keyslot);\n"
27275 "\n"
27276
27277 #. type: verbatim
27278 #: ../src/guestfs-actions.pod:1467
27279 #, no-wrap
27280 msgid ""
27281 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27282 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27283 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27284 "\n"
27285 msgstr ""
27286
27287 #. type: =head2
27288 #: ../src/guestfs-actions.pod:1481
27289 #, fuzzy
27290 #| msgid "guestfs_zero_device"
27291 msgid "guestfs_copy_file_to_device_va"
27292 msgstr "guestfs_zero_device"
27293
27294 #. type: verbatim
27295 #: ../src/guestfs-actions.pod:1483
27296 #, fuzzy, no-wrap
27297 #| msgid ""
27298 #| " int\n"
27299 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27300 #| "                       const char *fstype,\n"
27301 #| "                       const char *device,\n"
27302 #| "                       va_list args);\n"
27303 #| "\n"
27304 msgid ""
27305 " int\n"
27306 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
27307 "                                 const char *src,\n"
27308 "                                 const char *dest,\n"
27309 "                                 va_list args);\n"
27310 "\n"
27311 msgstr ""
27312 " int\n"
27313 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27314 "                       const char *fstype,\n"
27315 "                       const char *device,\n"
27316 "                       va_list args);\n"
27317 "\n"
27318
27319 #. type: textblock
27320 #: ../src/guestfs-actions.pod:1489
27321 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
27322 msgstr ""
27323
27324 #. type: =head2
27325 #: ../src/guestfs-actions.pod:1493
27326 #, fuzzy
27327 #| msgid "guestfs_btrfs_filesystem_resize_argv"
27328 msgid "guestfs_copy_file_to_device_argv"
27329 msgstr "guestfs_btrfs_filesystem_resize_argv"
27330
27331 #. type: verbatim
27332 #: ../src/guestfs-actions.pod:1495
27333 #, fuzzy, no-wrap
27334 #| msgid ""
27335 #| " int\n"
27336 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27337 #| "                         const char *fstype,\n"
27338 #| "                         const char *device,\n"
27339 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27340 #| "\n"
27341 msgid ""
27342 " int\n"
27343 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
27344 "                                   const char *src,\n"
27345 "                                   const char *dest,\n"
27346 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
27347 "\n"
27348 msgstr ""
27349 " int\n"
27350 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27351 "                         const char *fstype,\n"
27352 "                         const char *device,\n"
27353 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27354 "\n"
27355
27356 #. type: textblock
27357 #: ../src/guestfs-actions.pod:1501
27358 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
27359 msgstr ""
27360
27361 #. type: =head2
27362 #: ../src/guestfs-actions.pod:1505
27363 #, fuzzy
27364 #| msgid "guestfs_write_file"
27365 msgid "guestfs_copy_file_to_file"
27366 msgstr "guestfs_write_file"
27367
27368 #. type: verbatim
27369 #: ../src/guestfs-actions.pod:1507
27370 #, fuzzy, no-wrap
27371 #| msgid ""
27372 #| " int\n"
27373 #| " guestfs_luks_kill_slot (guestfs_h *g,\n"
27374 #| "                         const char *device,\n"
27375 #| "                         const char *key,\n"
27376 #| "                         int keyslot);\n"
27377 #| "\n"
27378 msgid ""
27379 " int\n"
27380 " guestfs_copy_file_to_file (guestfs_h *g,\n"
27381 "                            const char *src,\n"
27382 "                            const char *dest,\n"
27383 "                            ...);\n"
27384 "\n"
27385 msgstr ""
27386 " int\n"
27387 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27388 "                         const char *device,\n"
27389 "                         const char *key,\n"
27390 "                         int keyslot);\n"
27391 "\n"
27392
27393 #. type: verbatim
27394 #: ../src/guestfs-actions.pod:1518
27395 #, no-wrap
27396 msgid ""
27397 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27398 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27399 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
27400 "\n"
27401 msgstr ""
27402
27403 #. type: textblock
27404 #: ../src/guestfs-actions.pod:1525
27405 msgid ""
27406 "This is B<not> the function you want for copying files.  This is for copying "
27407 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
27408 "C<guestfs_mv> for general file copying and moving functions."
27409 msgstr ""
27410
27411 #. type: =head2
27412 #: ../src/guestfs-actions.pod:1537
27413 #, fuzzy
27414 #| msgid "guestfs_write_file"
27415 msgid "guestfs_copy_file_to_file_va"
27416 msgstr "guestfs_write_file"
27417
27418 #. type: verbatim
27419 #: ../src/guestfs-actions.pod:1539
27420 #, fuzzy, no-wrap
27421 #| msgid ""
27422 #| " int\n"
27423 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27424 #| "                       const char *fstype,\n"
27425 #| "                       const char *device,\n"
27426 #| "                       va_list args);\n"
27427 #| "\n"
27428 msgid ""
27429 " int\n"
27430 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27431 "                               const char *src,\n"
27432 "                               const char *dest,\n"
27433 "                               va_list args);\n"
27434 "\n"
27435 msgstr ""
27436 " int\n"
27437 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27438 "                       const char *fstype,\n"
27439 "                       const char *device,\n"
27440 "                       va_list args);\n"
27441 "\n"
27442
27443 #. type: textblock
27444 #: ../src/guestfs-actions.pod:1545
27445 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27446 msgstr ""
27447
27448 #. type: =head2
27449 #: ../src/guestfs-actions.pod:1549
27450 #, fuzzy
27451 #| msgid "guestfs_btrfs_filesystem_resize_argv"
27452 msgid "guestfs_copy_file_to_file_argv"
27453 msgstr "guestfs_btrfs_filesystem_resize_argv"
27454
27455 #. type: verbatim
27456 #: ../src/guestfs-actions.pod:1551
27457 #, fuzzy, no-wrap
27458 #| msgid ""
27459 #| " int\n"
27460 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27461 #| "                         const char *fstype,\n"
27462 #| "                         const char *device,\n"
27463 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27464 #| "\n"
27465 msgid ""
27466 " int\n"
27467 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27468 "                                 const char *src,\n"
27469 "                                 const char *dest,\n"
27470 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
27471 "\n"
27472 msgstr ""
27473 " int\n"
27474 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27475 "                         const char *fstype,\n"
27476 "                         const char *device,\n"
27477 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27478 "\n"
27479
27480 #. type: textblock
27481 #: ../src/guestfs-actions.pod:1557
27482 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27483 msgstr ""
27484
27485 #. type: =head2
27486 #: ../src/guestfs-actions.pod:1561
27487 msgid "guestfs_copy_size"
27488 msgstr ""
27489
27490 #. type: verbatim
27491 #: ../src/guestfs-actions.pod:1563
27492 #, no-wrap
27493 msgid ""
27494 " int\n"
27495 " guestfs_copy_size (guestfs_h *g,\n"
27496 "                    const char *src,\n"
27497 "                    const char *dest,\n"
27498 "                    int64_t size);\n"
27499 "\n"
27500 msgstr ""
27501
27502 #. type: textblock
27503 #: ../src/guestfs-actions.pod:1569 ../src/guestfs-actions.pod:1626
27504 msgid ""
27505 "I<This function is deprecated.> In new code, use the L</"
27506 "guestfs_copy_device_to_device> call instead."
27507 msgstr ""
27508
27509 #. type: textblock
27510 #: ../src/guestfs-actions.pod:1589 ../src/guestfs-actions.pod:4821
27511 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:7956
27512 #: ../src/guestfs-actions.pod:7976 ../src/guestfs-actions.pod:8062
27513 msgid "(Added in 1.0.87)"
27514 msgstr "(Додано у 1.0.87)"
27515
27516 #. type: =head2
27517 #: ../src/guestfs-actions.pod:1591
27518 msgid "guestfs_cp"
27519 msgstr ""
27520
27521 #. type: verbatim
27522 #: ../src/guestfs-actions.pod:1593
27523 #, no-wrap
27524 msgid ""
27525 " int\n"
27526 " guestfs_cp (guestfs_h *g,\n"
27527 "             const char *src,\n"
27528 "             const char *dest);\n"
27529 "\n"
27530 msgstr ""
27531
27532 #. type: textblock
27533 #: ../src/guestfs-actions.pod:1603 ../src/guestfs-actions.pod:1617
27534 #: ../src/guestfs-actions.pod:1697 ../src/guestfs-actions.pod:1771
27535 #: ../src/guestfs-actions.pod:1885 ../src/guestfs-actions.pod:5565
27536 #: ../src/guestfs-actions.pod:6058
27537 msgid "(Added in 1.0.18)"
27538 msgstr "(Додано у 1.0.18)"
27539
27540 #. type: =head2
27541 #: ../src/guestfs-actions.pod:1605
27542 msgid "guestfs_cp_a"
27543 msgstr ""
27544
27545 #. type: verbatim
27546 #: ../src/guestfs-actions.pod:1607
27547 #, no-wrap
27548 msgid ""
27549 " int\n"
27550 " guestfs_cp_a (guestfs_h *g,\n"
27551 "               const char *src,\n"
27552 "               const char *dest);\n"
27553 "\n"
27554 msgstr ""
27555
27556 #. type: =head2
27557 #: ../src/guestfs-actions.pod:1619
27558 msgid "guestfs_dd"
27559 msgstr ""
27560
27561 #. type: verbatim
27562 #: ../src/guestfs-actions.pod:1621
27563 #, no-wrap
27564 msgid ""
27565 " int\n"
27566 " guestfs_dd (guestfs_h *g,\n"
27567 "             const char *src,\n"
27568 "             const char *dest);\n"
27569 "\n"
27570 msgstr ""
27571
27572 #. type: textblock
27573 #: ../src/guestfs-actions.pod:1638
27574 msgid ""
27575 "If the destination is a device, it must be as large or larger than the "
27576 "source file or device, otherwise the copy will fail.  This command cannot do "
27577 "partial copies (see C<guestfs_copy_device_to_device>)."
27578 msgstr ""
27579
27580 #. type: =head2
27581 #: ../src/guestfs-actions.pod:1647
27582 msgid "guestfs_df"
27583 msgstr ""
27584
27585 #. type: verbatim
27586 #: ../src/guestfs-actions.pod:1649
27587 #, no-wrap
27588 msgid ""
27589 " char *\n"
27590 " guestfs_df (guestfs_h *g);\n"
27591 "\n"
27592 msgstr ""
27593
27594 #. type: textblock
27595 #: ../src/guestfs-actions.pod:1654 ../src/guestfs-actions.pod:1671
27596 msgid ""
27597 "This command is mostly useful for interactive sessions.  It is I<not> "
27598 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
27599 "from programs."
27600 msgstr ""
27601
27602 #. type: textblock
27603 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1678
27604 #: ../src/guestfs-actions.pod:1796 ../src/guestfs-actions.pod:2803
27605 #: ../src/guestfs-actions.pod:2827 ../src/guestfs-actions.pod:2895
27606 #: ../src/guestfs-actions.pod:4931 ../src/guestfs-actions.pod:5465
27607 #: ../src/guestfs-actions.pod:7459 ../src/guestfs-actions.pod:7483
27608 #: ../src/guestfs-actions.pod:8102 ../src/guestfs-actions.pod:8115
27609 #: ../src/guestfs-actions.pod:8128
27610 msgid "(Added in 1.0.54)"
27611 msgstr "(Додано у 1.0.54)"
27612
27613 #. type: =head2
27614 #: ../src/guestfs-actions.pod:1663
27615 msgid "guestfs_df_h"
27616 msgstr ""
27617
27618 #. type: verbatim
27619 #: ../src/guestfs-actions.pod:1665
27620 #, no-wrap
27621 msgid ""
27622 " char *\n"
27623 " guestfs_df_h (guestfs_h *g);\n"
27624 "\n"
27625 msgstr ""
27626
27627 #. type: =head2
27628 #: ../src/guestfs-actions.pod:1680
27629 msgid "guestfs_dmesg"
27630 msgstr ""
27631
27632 #. type: verbatim
27633 #: ../src/guestfs-actions.pod:1682
27634 #, no-wrap
27635 msgid ""
27636 " char *\n"
27637 " guestfs_dmesg (guestfs_h *g);\n"
27638 "\n"
27639 msgstr ""
27640
27641 #. type: textblock
27642 #: ../src/guestfs-actions.pod:1689
27643 msgid ""
27644 "Another way to get the same information is to enable verbose messages with "
27645 "C<guestfs_set_verbose> or by setting the environment variable "
27646 "C<LIBGUESTFS_DEBUG=1> before running the program."
27647 msgstr ""
27648
27649 #. type: =head2
27650 #: ../src/guestfs-actions.pod:1699
27651 msgid "guestfs_download"
27652 msgstr ""
27653
27654 #. type: verbatim
27655 #: ../src/guestfs-actions.pod:1701
27656 #, no-wrap
27657 msgid ""
27658 " int\n"
27659 " guestfs_download (guestfs_h *g,\n"
27660 "                   const char *remotefilename,\n"
27661 "                   const char *filename);\n"
27662 "\n"
27663 msgstr ""
27664
27665 #. type: textblock
27666 #: ../src/guestfs-actions.pod:1711
27667 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27668 msgstr ""
27669
27670 #. type: =head2
27671 #: ../src/guestfs-actions.pod:1722
27672 msgid "guestfs_download_offset"
27673 msgstr ""
27674
27675 #. type: verbatim
27676 #: ../src/guestfs-actions.pod:1724
27677 #, no-wrap
27678 msgid ""
27679 " int\n"
27680 " guestfs_download_offset (guestfs_h *g,\n"
27681 "                          const char *remotefilename,\n"
27682 "                          const char *filename,\n"
27683 "                          int64_t offset,\n"
27684 "                          int64_t size);\n"
27685 "\n"
27686 msgstr ""
27687
27688 #. type: textblock
27689 #: ../src/guestfs-actions.pod:1737
27690 msgid ""
27691 "Note that there is no limit on the amount of data that can be downloaded "
27692 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27693 "full amount unless an error occurs."
27694 msgstr ""
27695
27696 #. type: textblock
27697 #: ../src/guestfs-actions.pod:1742
27698 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27699 msgstr ""
27700
27701 #. type: textblock
27702 #: ../src/guestfs-actions.pod:1751 ../src/guestfs-actions.pod:7760
27703 msgid "(Added in 1.5.17)"
27704 msgstr "(Додано у 1.5.17)"
27705
27706 #. type: =head2
27707 #: ../src/guestfs-actions.pod:1753
27708 msgid "guestfs_drop_caches"
27709 msgstr ""
27710
27711 #. type: verbatim
27712 #: ../src/guestfs-actions.pod:1755
27713 #, no-wrap
27714 msgid ""
27715 " int\n"
27716 " guestfs_drop_caches (guestfs_h *g,\n"
27717 "                      int whattodrop);\n"
27718 "\n"
27719 msgstr ""
27720
27721 #. type: =head2
27722 #: ../src/guestfs-actions.pod:1773
27723 msgid "guestfs_du"
27724 msgstr ""
27725
27726 #. type: verbatim
27727 #: ../src/guestfs-actions.pod:1775
27728 #, no-wrap
27729 msgid ""
27730 " int64_t\n"
27731 " guestfs_du (guestfs_h *g,\n"
27732 "             const char *path);\n"
27733 "\n"
27734 msgstr ""
27735
27736 #. type: =head2
27737 #: ../src/guestfs-actions.pod:1798
27738 msgid "guestfs_e2fsck_f"
27739 msgstr ""
27740
27741 #. type: verbatim
27742 #: ../src/guestfs-actions.pod:1800
27743 #, no-wrap
27744 msgid ""
27745 " int\n"
27746 " guestfs_e2fsck_f (guestfs_h *g,\n"
27747 "                   const char *device);\n"
27748 "\n"
27749 msgstr ""
27750
27751 #. type: textblock
27752 #: ../src/guestfs-actions.pod:1808
27753 msgid ""
27754 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
27755 "Normally you should use C<guestfs_fsck>."
27756 msgstr ""
27757
27758 #. type: textblock
27759 #: ../src/guestfs-actions.pod:1813
27760 msgid "(Added in 1.0.29)"
27761 msgstr "(Додано у 1.0.29)"
27762
27763 #. type: =head2
27764 #: ../src/guestfs-actions.pod:1815
27765 msgid "guestfs_echo_daemon"
27766 msgstr "guestfs_echo_daemon"
27767
27768 #. type: verbatim
27769 #: ../src/guestfs-actions.pod:1817
27770 #, no-wrap
27771 msgid ""
27772 " char *\n"
27773 " guestfs_echo_daemon (guestfs_h *g,\n"
27774 "                      char *const *words);\n"
27775 "\n"
27776 msgstr ""
27777 " char *\n"
27778 " guestfs_echo_daemon (guestfs_h *g,\n"
27779 "                      char *const *words);\n"
27780 "\n"
27781
27782 #. type: textblock
27783 #: ../src/guestfs-actions.pod:1826
27784 msgid "See also C<guestfs_ping_daemon>."
27785 msgstr ""
27786
27787 #. type: textblock
27788 #: ../src/guestfs-actions.pod:1831 ../src/guestfs-actions.pod:2589
27789 #: ../src/guestfs-actions.pod:6931
27790 msgid "(Added in 1.0.69)"
27791 msgstr "(Додано у 1.0.69)"
27792
27793 #. type: =head2
27794 #: ../src/guestfs-actions.pod:1833
27795 msgid "guestfs_egrep"
27796 msgstr "guestfs_egrep"
27797
27798 #. type: verbatim
27799 #: ../src/guestfs-actions.pod:1835
27800 #, no-wrap
27801 msgid ""
27802 " char **\n"
27803 " guestfs_egrep (guestfs_h *g,\n"
27804 "                const char *regex,\n"
27805 "                const char *path);\n"
27806 "\n"
27807 msgstr ""
27808 " char **\n"
27809 " guestfs_egrep (guestfs_h *g,\n"
27810 "                const char *regex,\n"
27811 "                const char *path);\n"
27812 "\n"
27813
27814 #. type: textblock
27815 #: ../src/guestfs-actions.pod:1850 ../src/guestfs-actions.pod:1869
27816 #: ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1972
27817 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2719
27818 #: ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:2916
27819 #: ../src/guestfs-actions.pod:2929 ../src/guestfs-actions.pod:2944
27820 #: ../src/guestfs-actions.pod:2990 ../src/guestfs-actions.pod:3012
27821 #: ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:4311
27822 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4338
27823 #: ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:5353
27824 #: ../src/guestfs-actions.pod:6392 ../src/guestfs-actions.pod:6441
27825 #: ../src/guestfs-actions.pod:7327 ../src/guestfs-actions.pod:7339
27826 #: ../src/guestfs-actions.pod:7352 ../src/guestfs-actions.pod:7365
27827 #: ../src/guestfs-actions.pod:7387 ../src/guestfs-actions.pod:7400
27828 #: ../src/guestfs-actions.pod:7413 ../src/guestfs-actions.pod:7426
27829 #: ../src/guestfs-actions.pod:8220 ../src/guestfs-actions.pod:8239
27830 #: ../src/guestfs-actions.pod:8333 ../src/guestfs-actions.pod:8352
27831 #: ../src/guestfs-actions.pod:8398 ../src/guestfs-actions.pod:8417
27832 msgid "(Added in 1.0.66)"
27833 msgstr "(Додано у 1.0.66)"
27834
27835 #. type: =head2
27836 #: ../src/guestfs-actions.pod:1852
27837 msgid "guestfs_egrepi"
27838 msgstr "guestfs_egrepi"
27839
27840 #. type: verbatim
27841 #: ../src/guestfs-actions.pod:1854
27842 #, no-wrap
27843 msgid ""
27844 " char **\n"
27845 " guestfs_egrepi (guestfs_h *g,\n"
27846 "                 const char *regex,\n"
27847 "                 const char *path);\n"
27848 "\n"
27849 msgstr ""
27850
27851 #. type: =head2
27852 #: ../src/guestfs-actions.pod:1871
27853 msgid "guestfs_equal"
27854 msgstr ""
27855
27856 #. type: verbatim
27857 #: ../src/guestfs-actions.pod:1873
27858 #, no-wrap
27859 msgid ""
27860 " int\n"
27861 " guestfs_equal (guestfs_h *g,\n"
27862 "                const char *file1,\n"
27863 "                const char *file2);\n"
27864 "\n"
27865 msgstr ""
27866
27867 #. type: =head2
27868 #: ../src/guestfs-actions.pod:1887
27869 msgid "guestfs_exists"
27870 msgstr ""
27871
27872 #. type: verbatim
27873 #: ../src/guestfs-actions.pod:1889
27874 #, no-wrap
27875 msgid ""
27876 " int\n"
27877 " guestfs_exists (guestfs_h *g,\n"
27878 "                 const char *path);\n"
27879 "\n"
27880 msgstr ""
27881
27882 #. type: textblock
27883 #: ../src/guestfs-actions.pod:1896
27884 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27885 msgstr ""
27886
27887 #. type: =head2
27888 #: ../src/guestfs-actions.pod:1902
27889 msgid "guestfs_fallocate"
27890 msgstr ""
27891
27892 #. type: verbatim
27893 #: ../src/guestfs-actions.pod:1904
27894 #, no-wrap
27895 msgid ""
27896 " int\n"
27897 " guestfs_fallocate (guestfs_h *g,\n"
27898 "                    const char *path,\n"
27899 "                    int len);\n"
27900 "\n"
27901 msgstr ""
27902
27903 #. type: textblock
27904 #: ../src/guestfs-actions.pod:1909
27905 msgid ""
27906 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27907 "call instead."
27908 msgstr ""
27909
27910 #. type: =head2
27911 #: ../src/guestfs-actions.pod:1928
27912 msgid "guestfs_fallocate64"
27913 msgstr ""
27914
27915 #. type: verbatim
27916 #: ../src/guestfs-actions.pod:1930
27917 #, no-wrap
27918 msgid ""
27919 " int\n"
27920 " guestfs_fallocate64 (guestfs_h *g,\n"
27921 "                      const char *path,\n"
27922 "                      int64_t len);\n"
27923 "\n"
27924 msgstr ""
27925
27926 #. type: textblock
27927 #: ../src/guestfs-actions.pod:1939
27928 msgid ""
27929 "Note that this call allocates disk blocks for the file.  To create a sparse "
27930 "file use C<guestfs_truncate_size> instead."
27931 msgstr ""
27932
27933 #. type: textblock
27934 #: ../src/guestfs-actions.pod:1942
27935 msgid ""
27936 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27937 "oversight it only allowed 30 bit lengths to be specified, effectively "
27938 "limiting the maximum size of files created through that call to 1GB."
27939 msgstr ""
27940
27941 #. type: textblock
27942 #: ../src/guestfs-actions.pod:1953
27943 msgid "(Added in 1.3.17)"
27944 msgstr "(Додано у 1.3.17)"
27945
27946 #. type: =head2
27947 #: ../src/guestfs-actions.pod:1955
27948 msgid "guestfs_fgrep"
27949 msgstr ""
27950
27951 #. type: verbatim
27952 #: ../src/guestfs-actions.pod:1957
27953 #, no-wrap
27954 msgid ""
27955 " char **\n"
27956 " guestfs_fgrep (guestfs_h *g,\n"
27957 "                const char *pattern,\n"
27958 "                const char *path);\n"
27959 "\n"
27960 msgstr ""
27961
27962 #. type: =head2
27963 #: ../src/guestfs-actions.pod:1974
27964 msgid "guestfs_fgrepi"
27965 msgstr ""
27966
27967 #. type: verbatim
27968 #: ../src/guestfs-actions.pod:1976
27969 #, no-wrap
27970 msgid ""
27971 " char **\n"
27972 " guestfs_fgrepi (guestfs_h *g,\n"
27973 "                 const char *pattern,\n"
27974 "                 const char *path);\n"
27975 "\n"
27976 msgstr ""
27977
27978 #. type: =head2
27979 #: ../src/guestfs-actions.pod:1993
27980 msgid "guestfs_file"
27981 msgstr ""
27982
27983 #. type: verbatim
27984 #: ../src/guestfs-actions.pod:1995
27985 #, no-wrap
27986 msgid ""
27987 " char *\n"
27988 " guestfs_file (guestfs_h *g,\n"
27989 "               const char *path);\n"
27990 "\n"
27991 msgstr ""
27992
27993 #. type: textblock
27994 #: ../src/guestfs-actions.pod:2013
27995 msgid ""
27996 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27997 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27998 msgstr ""
27999
28000 #. type: =head2
28001 #: ../src/guestfs-actions.pod:2021
28002 msgid "guestfs_file_architecture"
28003 msgstr ""
28004
28005 #. type: verbatim
28006 #: ../src/guestfs-actions.pod:2023
28007 #, no-wrap
28008 msgid ""
28009 " char *\n"
28010 " guestfs_file_architecture (guestfs_h *g,\n"
28011 "                            const char *filename);\n"
28012 "\n"
28013 msgstr ""
28014
28015 #. type: textblock
28016 #: ../src/guestfs-actions.pod:2131 ../src/guestfs-actions.pod:2294
28017 #: ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:3045
28018 #: ../src/guestfs-actions.pod:3147 ../src/guestfs-actions.pod:3213
28019 #: ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3418
28020 #: ../src/guestfs-actions.pod:3458 ../src/guestfs-actions.pod:3534
28021 #: ../src/guestfs-actions.pod:3631 ../src/guestfs-actions.pod:3868
28022 #: ../src/guestfs-actions.pod:4000
28023 msgid "(Added in 1.5.3)"
28024 msgstr "(Додано у 1.5.3)"
28025
28026 #. type: =head2
28027 #: ../src/guestfs-actions.pod:2133
28028 msgid "guestfs_filesize"
28029 msgstr ""
28030
28031 #. type: verbatim
28032 #: ../src/guestfs-actions.pod:2135
28033 #, no-wrap
28034 msgid ""
28035 " int64_t\n"
28036 " guestfs_filesize (guestfs_h *g,\n"
28037 "                   const char *file);\n"
28038 "\n"
28039 msgstr ""
28040
28041 #. type: textblock
28042 #: ../src/guestfs-actions.pod:2141
28043 msgid ""
28044 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
28045 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
28046 "devices, use C<guestfs_blockdev_getsize64>."
28047 msgstr ""
28048
28049 #. type: textblock
28050 #: ../src/guestfs-actions.pod:2147
28051 msgid "(Added in 1.0.82)"
28052 msgstr "(Додано у 1.0.82)"
28053
28054 #. type: =head2
28055 #: ../src/guestfs-actions.pod:2149
28056 msgid "guestfs_fill"
28057 msgstr ""
28058
28059 #. type: verbatim
28060 #: ../src/guestfs-actions.pod:2151
28061 #, no-wrap
28062 msgid ""
28063 " int\n"
28064 " guestfs_fill (guestfs_h *g,\n"
28065 "               int c,\n"
28066 "               int len,\n"
28067 "               const char *path);\n"
28068 "\n"
28069 msgstr ""
28070
28071 #. type: textblock
28072 #: ../src/guestfs-actions.pod:2161
28073 msgid ""
28074 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
28075 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
28076 "bytes use C<guestfs_fill_pattern>."
28077 msgstr ""
28078
28079 #. type: textblock
28080 #: ../src/guestfs-actions.pod:2173
28081 msgid "(Added in 1.0.79)"
28082 msgstr "(Додано у 1.0.79)"
28083
28084 #. type: =head2
28085 #: ../src/guestfs-actions.pod:2175
28086 msgid "guestfs_fill_pattern"
28087 msgstr ""
28088
28089 #. type: verbatim
28090 #: ../src/guestfs-actions.pod:2177
28091 #, no-wrap
28092 msgid ""
28093 " int\n"
28094 " guestfs_fill_pattern (guestfs_h *g,\n"
28095 "                       const char *pattern,\n"
28096 "                       int len,\n"
28097 "                       const char *path);\n"
28098 "\n"
28099 msgstr ""
28100
28101 #. type: textblock
28102 #: ../src/guestfs-actions.pod:2183
28103 msgid ""
28104 "This function is like C<guestfs_fill> except that it creates a new file of "
28105 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
28106 "pattern is truncated if necessary to ensure the length of the file is "
28107 "exactly C<len> bytes."
28108 msgstr ""
28109
28110 #. type: textblock
28111 #: ../src/guestfs-actions.pod:2195
28112 msgid "(Added in 1.3.12)"
28113 msgstr "(Додано у 1.3.12)"
28114
28115 #. type: =head2
28116 #: ../src/guestfs-actions.pod:2197
28117 msgid "guestfs_find"
28118 msgstr ""
28119
28120 #. type: verbatim
28121 #: ../src/guestfs-actions.pod:2199
28122 #, no-wrap
28123 msgid ""
28124 " char **\n"
28125 " guestfs_find (guestfs_h *g,\n"
28126 "               const char *directory);\n"
28127 "\n"
28128 msgstr ""
28129
28130 #. type: textblock
28131 #: ../src/guestfs-actions.pod:2215
28132 msgid ""
28133 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28134 msgstr ""
28135
28136 #. type: textblock
28137 #: ../src/guestfs-actions.pod:2228
28138 msgid "See also C<guestfs_find0>."
28139 msgstr ""
28140
28141 #. type: textblock
28142 #: ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:4758
28143 #: ../src/guestfs-actions.pod:6476
28144 msgid "(Added in 1.0.27)"
28145 msgstr "(Додано у 1.0.27)"
28146
28147 #. type: =head2
28148 #: ../src/guestfs-actions.pod:2239
28149 msgid "guestfs_find0"
28150 msgstr ""
28151
28152 #. type: verbatim
28153 #: ../src/guestfs-actions.pod:2241
28154 #, no-wrap
28155 msgid ""
28156 " int\n"
28157 " guestfs_find0 (guestfs_h *g,\n"
28158 "                const char *directory,\n"
28159 "                const char *files);\n"
28160 "\n"
28161 msgstr ""
28162
28163 #. type: textblock
28164 #: ../src/guestfs-actions.pod:2250
28165 msgid ""
28166 "This command works the same way as C<guestfs_find> with the following "
28167 "exceptions:"
28168 msgstr ""
28169
28170 #. type: textblock
28171 #: ../src/guestfs-actions.pod:2277
28172 msgid "(Added in 1.0.74)"
28173 msgstr "(Додано у 1.0.74)"
28174
28175 #. type: =head2
28176 #: ../src/guestfs-actions.pod:2279
28177 msgid "guestfs_findfs_label"
28178 msgstr ""
28179
28180 #. type: verbatim
28181 #: ../src/guestfs-actions.pod:2281
28182 #, no-wrap
28183 msgid ""
28184 " char *\n"
28185 " guestfs_findfs_label (guestfs_h *g,\n"
28186 "                       const char *label);\n"
28187 "\n"
28188 msgstr ""
28189
28190 #. type: textblock
28191 #: ../src/guestfs-actions.pod:2289
28192 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28193 msgstr ""
28194
28195 #. type: =head2
28196 #: ../src/guestfs-actions.pod:2296
28197 msgid "guestfs_findfs_uuid"
28198 msgstr ""
28199
28200 #. type: verbatim
28201 #: ../src/guestfs-actions.pod:2298
28202 #, no-wrap
28203 msgid ""
28204 " char *\n"
28205 " guestfs_findfs_uuid (guestfs_h *g,\n"
28206 "                      const char *uuid);\n"
28207 "\n"
28208 msgstr ""
28209
28210 #. type: textblock
28211 #: ../src/guestfs-actions.pod:2306
28212 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28213 msgstr ""
28214
28215 #. type: =head2
28216 #: ../src/guestfs-actions.pod:2313
28217 msgid "guestfs_fsck"
28218 msgstr ""
28219
28220 #. type: verbatim
28221 #: ../src/guestfs-actions.pod:2315
28222 #, no-wrap
28223 msgid ""
28224 " int\n"
28225 " guestfs_fsck (guestfs_h *g,\n"
28226 "               const char *fstype,\n"
28227 "               const char *device);\n"
28228 "\n"
28229 msgstr ""
28230
28231 #. type: textblock
28232 #: ../src/guestfs-actions.pod:2350 ../src/guestfs-actions.pod:8267
28233 msgid "(Added in 1.0.16)"
28234 msgstr "(Додано у 1.0.16)"
28235
28236 #. type: =head2
28237 #: ../src/guestfs-actions.pod:2352
28238 msgid "guestfs_get_append"
28239 msgstr ""
28240
28241 #. type: verbatim
28242 #: ../src/guestfs-actions.pod:2354
28243 #, no-wrap
28244 msgid ""
28245 " const char *\n"
28246 " guestfs_get_append (guestfs_h *g);\n"
28247 "\n"
28248 msgstr ""
28249
28250 #. type: textblock
28251 #: ../src/guestfs-actions.pod:2362
28252 msgid ""
28253 "This function returns a string which may be NULL.  There is no way to return "
28254 "an error from this function.  The string is owned by the guest handle and "
28255 "must I<not> be freed."
28256 msgstr ""
28257
28258 #. type: textblock
28259 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:6154
28260 #: ../src/guestfs-actions.pod:6636 ../src/guestfs-actions.pod:7094
28261 #: ../src/guestfs-actions.pod:7113 ../src/guestfs-actions.pod:7129
28262 #: ../src/guestfs-actions.pod:7153 ../src/guestfs-actions.pod:7907
28263 #: ../src/guestfs-actions.pod:7922 ../src/guestfs-actions.pod:8314
28264 msgid "(Added in 1.0.26)"
28265 msgstr "(Додано у 1.0.26)"
28266
28267 #. type: =head2
28268 #: ../src/guestfs-actions.pod:2368
28269 msgid "guestfs_get_attach_method"
28270 msgstr ""
28271
28272 #. type: verbatim
28273 #: ../src/guestfs-actions.pod:2370
28274 #, no-wrap
28275 msgid ""
28276 " char *\n"
28277 " guestfs_get_attach_method (guestfs_h *g);\n"
28278 "\n"
28279 msgstr ""
28280
28281 #. type: textblock
28282 #: ../src/guestfs-actions.pod:2373
28283 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
28284 msgstr ""
28285
28286 #. type: textblock
28287 #: ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:6666
28288 msgid "(Added in 1.9.8)"
28289 msgstr "(Додано у 1.9.8)"
28290
28291 #. type: =head2
28292 #: ../src/guestfs-actions.pod:2380
28293 msgid "guestfs_get_autosync"
28294 msgstr ""
28295
28296 #. type: verbatim
28297 #: ../src/guestfs-actions.pod:2382
28298 #, no-wrap
28299 msgid ""
28300 " int\n"
28301 " guestfs_get_autosync (guestfs_h *g);\n"
28302 "\n"
28303 msgstr ""
28304
28305 #. type: =head2
28306 #: ../src/guestfs-actions.pod:2391
28307 msgid "guestfs_get_direct"
28308 msgstr ""
28309
28310 #. type: verbatim
28311 #: ../src/guestfs-actions.pod:2393
28312 #, no-wrap
28313 msgid ""
28314 " int\n"
28315 " guestfs_get_direct (guestfs_h *g);\n"
28316 "\n"
28317 msgstr ""
28318
28319 #. type: textblock
28320 #: ../src/guestfs-actions.pod:2400 ../src/guestfs-actions.pod:6707
28321 msgid "(Added in 1.0.72)"
28322 msgstr "(Додано у 1.0.72)"
28323
28324 #. type: =head2
28325 #: ../src/guestfs-actions.pod:2402
28326 msgid "guestfs_get_e2label"
28327 msgstr ""
28328
28329 #. type: verbatim
28330 #: ../src/guestfs-actions.pod:2404
28331 #, no-wrap
28332 msgid ""
28333 " char *\n"
28334 " guestfs_get_e2label (guestfs_h *g,\n"
28335 "                      const char *device);\n"
28336 "\n"
28337 msgstr ""
28338
28339 #. type: textblock
28340 #: ../src/guestfs-actions.pod:2408
28341 msgid ""
28342 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28343 "call instead."
28344 msgstr ""
28345
28346 #. type: textblock
28347 #: ../src/guestfs-actions.pod:2421 ../src/guestfs-actions.pod:2442
28348 #: ../src/guestfs-actions.pod:6725 ../src/guestfs-actions.pod:6744
28349 msgid "(Added in 1.0.15)"
28350 msgstr "(Додано у 1.0.15)"
28351
28352 #. type: =head2
28353 #: ../src/guestfs-actions.pod:2423
28354 msgid "guestfs_get_e2uuid"
28355 msgstr ""
28356
28357 #. type: verbatim
28358 #: ../src/guestfs-actions.pod:2425
28359 #, no-wrap
28360 msgid ""
28361 " char *\n"
28362 " guestfs_get_e2uuid (guestfs_h *g,\n"
28363 "                     const char *device);\n"
28364 "\n"
28365 msgstr ""
28366
28367 #. type: textblock
28368 #: ../src/guestfs-actions.pod:2429
28369 msgid ""
28370 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28371 "call instead."
28372 msgstr ""
28373
28374 #. type: =head2
28375 #: ../src/guestfs-actions.pod:2444
28376 msgid "guestfs_get_memsize"
28377 msgstr ""
28378
28379 #. type: verbatim
28380 #: ../src/guestfs-actions.pod:2446
28381 #, no-wrap
28382 msgid ""
28383 " int\n"
28384 " guestfs_get_memsize (guestfs_h *g);\n"
28385 "\n"
28386 msgstr ""
28387
28388 #. type: textblock
28389 #: ../src/guestfs-actions.pod:2452
28390 msgid ""
28391 "If C<guestfs_set_memsize> was not called on this handle, and if "
28392 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28393 "value for memsize."
28394 msgstr ""
28395
28396 #. type: textblock
28397 #: ../src/guestfs-actions.pod:2461 ../src/guestfs-actions.pod:5049
28398 #: ../src/guestfs-actions.pod:5258 ../src/guestfs-actions.pod:5277
28399 #: ../src/guestfs-actions.pod:5296 ../src/guestfs-actions.pod:5308
28400 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5338
28401 #: ../src/guestfs-actions.pod:6379 ../src/guestfs-actions.pod:6765
28402 #: ../src/guestfs-actions.pod:7061 ../src/guestfs-actions.pod:7676
28403 msgid "(Added in 1.0.55)"
28404 msgstr "(Додано у 1.0.55)"
28405
28406 #. type: =head2
28407 #: ../src/guestfs-actions.pod:2463
28408 msgid "guestfs_get_network"
28409 msgstr ""
28410
28411 #. type: verbatim
28412 #: ../src/guestfs-actions.pod:2465
28413 #, no-wrap
28414 msgid ""
28415 " int\n"
28416 " guestfs_get_network (guestfs_h *g);\n"
28417 "\n"
28418 msgstr ""
28419
28420 #. type: textblock
28421 #: ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:6784
28422 msgid "(Added in 1.5.4)"
28423 msgstr "(Додано у 1.5.4)"
28424
28425 #. type: =head2
28426 #: ../src/guestfs-actions.pod:2474
28427 msgid "guestfs_get_path"
28428 msgstr ""
28429
28430 #. type: verbatim
28431 #: ../src/guestfs-actions.pod:2476
28432 #, no-wrap
28433 msgid ""
28434 " const char *\n"
28435 " guestfs_get_path (guestfs_h *g);\n"
28436 "\n"
28437 msgstr ""
28438
28439 #. type: textblock
28440 #: ../src/guestfs-actions.pod:2484 ../src/guestfs-actions.pod:2524
28441 msgid ""
28442 "This function returns a string, or NULL on error.  The string is owned by "
28443 "the guest handle and must I<not> be freed."
28444 msgstr ""
28445
28446 #. type: =head2
28447 #: ../src/guestfs-actions.pod:2489
28448 msgid "guestfs_get_pgroup"
28449 msgstr ""
28450
28451 #. type: verbatim
28452 #: ../src/guestfs-actions.pod:2491
28453 #, no-wrap
28454 msgid ""
28455 " int\n"
28456 " guestfs_get_pgroup (guestfs_h *g);\n"
28457 "\n"
28458 msgstr ""
28459
28460 #. type: textblock
28461 #: ../src/guestfs-actions.pod:2498 ../src/guestfs-actions.pod:6820
28462 #: ../src/guestfs-actions.pod:8168
28463 msgid "(Added in 1.11.18)"
28464 msgstr "(Додано у 1.11.18)"
28465
28466 #. type: =head2
28467 #: ../src/guestfs-actions.pod:2500
28468 msgid "guestfs_get_pid"
28469 msgstr ""
28470
28471 #. type: verbatim
28472 #: ../src/guestfs-actions.pod:2502
28473 #, no-wrap
28474 msgid ""
28475 " int\n"
28476 " guestfs_get_pid (guestfs_h *g);\n"
28477 "\n"
28478 msgstr ""
28479
28480 #. type: textblock
28481 #: ../src/guestfs-actions.pod:2512
28482 msgid "(Added in 1.0.56)"
28483 msgstr "(Додано у 1.0.56)"
28484
28485 #. type: =head2
28486 #: ../src/guestfs-actions.pod:2514
28487 msgid "guestfs_get_qemu"
28488 msgstr ""
28489
28490 #. type: verbatim
28491 #: ../src/guestfs-actions.pod:2516
28492 #, no-wrap
28493 msgid ""
28494 " const char *\n"
28495 " guestfs_get_qemu (guestfs_h *g);\n"
28496 "\n"
28497 msgstr ""
28498
28499 #. type: textblock
28500 #: ../src/guestfs-actions.pod:2527 ../src/guestfs-actions.pod:6848
28501 msgid "(Added in 1.0.6)"
28502 msgstr "(Додано у 1.0.6)"
28503
28504 #. type: =head2
28505 #: ../src/guestfs-actions.pod:2529
28506 msgid "guestfs_get_recovery_proc"
28507 msgstr ""
28508
28509 #. type: verbatim
28510 #: ../src/guestfs-actions.pod:2531
28511 #, no-wrap
28512 msgid ""
28513 " int\n"
28514 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28515 "\n"
28516 msgstr ""
28517
28518 #. type: textblock
28519 #: ../src/guestfs-actions.pod:2538 ../src/guestfs-actions.pod:4122
28520 #: ../src/guestfs-actions.pod:4453 ../src/guestfs-actions.pod:4856
28521 #: ../src/guestfs-actions.pod:4888 ../src/guestfs-actions.pod:6084
28522 #: ../src/guestfs-actions.pod:6427 ../src/guestfs-actions.pod:6872
28523 #: ../src/guestfs-actions.pod:7579 ../src/guestfs-actions.pod:7599
28524 #: ../src/guestfs-actions.pod:7791
28525 msgid "(Added in 1.0.77)"
28526 msgstr "(Додано у 1.0.77)"
28527
28528 #. type: =head2
28529 #: ../src/guestfs-actions.pod:2540
28530 msgid "guestfs_get_selinux"
28531 msgstr ""
28532
28533 #. type: verbatim
28534 #: ../src/guestfs-actions.pod:2542
28535 #, no-wrap
28536 msgid ""
28537 " int\n"
28538 " guestfs_get_selinux (guestfs_h *g);\n"
28539 "\n"
28540 msgstr ""
28541
28542 #. type: textblock
28543 #: ../src/guestfs-actions.pod:2545
28544 msgid ""
28545 "This returns the current setting of the selinux flag which is passed to the "
28546 "appliance at boot time.  See C<guestfs_set_selinux>."
28547 msgstr ""
28548
28549 #. type: textblock
28550 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2627
28551 #: ../src/guestfs-actions.pod:6891 ../src/guestfs-actions.pod:6965
28552 msgid "(Added in 1.0.67)"
28553 msgstr "(Додано у 1.0.67)"
28554
28555 #. type: =head2
28556 #: ../src/guestfs-actions.pod:2555
28557 msgid "guestfs_get_smp"
28558 msgstr ""
28559
28560 #. type: verbatim
28561 #: ../src/guestfs-actions.pod:2557
28562 #, no-wrap
28563 msgid ""
28564 " int\n"
28565 " guestfs_get_smp (guestfs_h *g);\n"
28566 "\n"
28567 msgstr ""
28568
28569 #. type: =head2
28570 #: ../src/guestfs-actions.pod:2566
28571 msgid "guestfs_get_state"
28572 msgstr ""
28573
28574 #. type: verbatim
28575 #: ../src/guestfs-actions.pod:2568
28576 #, no-wrap
28577 msgid ""
28578 " int\n"
28579 " guestfs_get_state (guestfs_h *g);\n"
28580 "\n"
28581 msgstr ""
28582
28583 #. type: =head2
28584 #: ../src/guestfs-actions.pod:2580
28585 msgid "guestfs_get_trace"
28586 msgstr ""
28587
28588 #. type: verbatim
28589 #: ../src/guestfs-actions.pod:2582
28590 #, no-wrap
28591 msgid ""
28592 " int\n"
28593 " guestfs_get_trace (guestfs_h *g);\n"
28594 "\n"
28595 msgstr ""
28596
28597 #. type: =head2
28598 #: ../src/guestfs-actions.pod:2591
28599 msgid "guestfs_get_umask"
28600 msgstr ""
28601
28602 #. type: verbatim
28603 #: ../src/guestfs-actions.pod:2593
28604 #, no-wrap
28605 msgid ""
28606 " int\n"
28607 " guestfs_get_umask (guestfs_h *g);\n"
28608 "\n"
28609 msgstr ""
28610
28611 #. type: textblock
28612 #: ../src/guestfs-actions.pod:2596
28613 msgid ""
28614 "Return the current umask.  By default the umask is C<022> unless it has been "
28615 "set by calling C<guestfs_umask>."
28616 msgstr ""
28617
28618 #. type: =head2
28619 #: ../src/guestfs-actions.pod:2603
28620 msgid "guestfs_get_verbose"
28621 msgstr ""
28622
28623 #. type: verbatim
28624 #: ../src/guestfs-actions.pod:2605
28625 #, no-wrap
28626 msgid ""
28627 " int\n"
28628 " guestfs_get_verbose (guestfs_h *g);\n"
28629 "\n"
28630 msgstr ""
28631
28632 #. type: =head2
28633 #: ../src/guestfs-actions.pod:2614
28634 msgid "guestfs_getcon"
28635 msgstr ""
28636
28637 #. type: verbatim
28638 #: ../src/guestfs-actions.pod:2616
28639 #, no-wrap
28640 msgid ""
28641 " char *\n"
28642 " guestfs_getcon (guestfs_h *g);\n"
28643 "\n"
28644 msgstr ""
28645
28646 #. type: textblock
28647 #: ../src/guestfs-actions.pod:2621
28648 msgid ""
28649 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28650 msgstr ""
28651
28652 #. type: =head2
28653 #: ../src/guestfs-actions.pod:2629
28654 msgid "guestfs_getxattr"
28655 msgstr ""
28656
28657 #. type: verbatim
28658 #: ../src/guestfs-actions.pod:2631
28659 #, no-wrap
28660 msgid ""
28661 " char *\n"
28662 " guestfs_getxattr (guestfs_h *g,\n"
28663 "                   const char *path,\n"
28664 "                   const char *name,\n"
28665 "                   size_t *size_r);\n"
28666 "\n"
28667 msgstr ""
28668
28669 #. type: textblock
28670 #: ../src/guestfs-actions.pod:2637
28671 msgid ""
28672 "Get a single extended attribute from file C<path> named C<name>.  This call "
28673 "follows symlinks.  If you want to lookup an extended attribute for the "
28674 "symlink itself, use C<guestfs_lgetxattr>."
28675 msgstr ""
28676
28677 #. type: textblock
28678 #: ../src/guestfs-actions.pod:2641 ../src/guestfs-actions.pod:4136
28679 msgid ""
28680 "Normally it is better to get all extended attributes from a file in one go "
28681 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
28682 "implementations are buggy and do not provide a way to list out attributes.  "
28683 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
28684 "extended attributes you want in advance and call this function."
28685 msgstr ""
28686
28687 #. type: textblock
28688 #: ../src/guestfs-actions.pod:2651
28689 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28690 msgstr ""
28691
28692 #. type: textblock
28693 #: ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:2866
28694 #: ../src/guestfs-actions.pod:3348 ../src/guestfs-actions.pod:4148
28695 #: ../src/guestfs-actions.pod:6077 ../src/guestfs-actions.pod:6103
28696 #: ../src/guestfs-actions.pod:6284
28697 msgid ""
28698 "This function returns a buffer, or NULL on error.  The size of the returned "
28699 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
28700 "after use>."
28701 msgstr ""
28702
28703 #. type: textblock
28704 #: ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:4152
28705 msgid "(Added in 1.7.24)"
28706 msgstr "(Додано у 1.7.24)"
28707
28708 #. type: =head2
28709 #: ../src/guestfs-actions.pod:2659
28710 msgid "guestfs_getxattrs"
28711 msgstr ""
28712
28713 #. type: verbatim
28714 #: ../src/guestfs-actions.pod:2661
28715 #, no-wrap
28716 msgid ""
28717 " struct guestfs_xattr_list *\n"
28718 " guestfs_getxattrs (guestfs_h *g,\n"
28719 "                    const char *path);\n"
28720 "\n"
28721 msgstr ""
28722
28723 #. type: textblock
28724 #: ../src/guestfs-actions.pod:2671
28725 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28726 msgstr ""
28727
28728 #. type: textblock
28729 #: ../src/guestfs-actions.pod:2673 ../src/guestfs-actions.pod:4164
28730 #: ../src/guestfs-actions.pod:4852
28731 msgid ""
28732 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28733 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
28734 msgstr ""
28735
28736 #. type: textblock
28737 #: ../src/guestfs-actions.pod:2677 ../src/guestfs-actions.pod:4168
28738 #: ../src/guestfs-actions.pod:4367 ../src/guestfs-actions.pod:4403
28739 #: ../src/guestfs-actions.pod:6457 ../src/guestfs-actions.pod:6984
28740 #: ../src/guestfs-actions.pod:8379
28741 msgid "(Added in 1.0.59)"
28742 msgstr "(Додано у 1.0.59)"
28743
28744 #. type: =head2
28745 #: ../src/guestfs-actions.pod:2679
28746 msgid "guestfs_glob_expand"
28747 msgstr ""
28748
28749 #. type: verbatim
28750 #: ../src/guestfs-actions.pod:2681
28751 #, no-wrap
28752 msgid ""
28753 " char **\n"
28754 " guestfs_glob_expand (guestfs_h *g,\n"
28755 "                      const char *pattern);\n"
28756 "\n"
28757 msgstr ""
28758
28759 #. type: textblock
28760 #: ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:7177
28761 #: ../src/guestfs-actions.pod:7194
28762 msgid "(Added in 1.0.50)"
28763 msgstr "(Додано у 1.0.50)"
28764
28765 #. type: =head2
28766 #: ../src/guestfs-actions.pod:2702
28767 msgid "guestfs_grep"
28768 msgstr ""
28769
28770 #. type: verbatim
28771 #: ../src/guestfs-actions.pod:2704
28772 #, no-wrap
28773 msgid ""
28774 " char **\n"
28775 " guestfs_grep (guestfs_h *g,\n"
28776 "               const char *regex,\n"
28777 "               const char *path);\n"
28778 "\n"
28779 msgstr ""
28780
28781 #. type: =head2
28782 #: ../src/guestfs-actions.pod:2721
28783 msgid "guestfs_grepi"
28784 msgstr ""
28785
28786 #. type: verbatim
28787 #: ../src/guestfs-actions.pod:2723
28788 #, no-wrap
28789 msgid ""
28790 " char **\n"
28791 " guestfs_grepi (guestfs_h *g,\n"
28792 "                const char *regex,\n"
28793 "                const char *path);\n"
28794 "\n"
28795 msgstr ""
28796
28797 #. type: =head2
28798 #: ../src/guestfs-actions.pod:2740
28799 msgid "guestfs_grub_install"
28800 msgstr ""
28801
28802 #. type: verbatim
28803 #: ../src/guestfs-actions.pod:2742
28804 #, no-wrap
28805 msgid ""
28806 " int\n"
28807 " guestfs_grub_install (guestfs_h *g,\n"
28808 "                       const char *root,\n"
28809 "                       const char *device);\n"
28810 "\n"
28811 msgstr ""
28812
28813 #. type: textblock
28814 #: ../src/guestfs-actions.pod:2785
28815 msgid "(Added in 1.0.17)"
28816 msgstr "(Додано у 1.0.17)"
28817
28818 #. type: =head2
28819 #: ../src/guestfs-actions.pod:2787
28820 msgid "guestfs_head"
28821 msgstr ""
28822
28823 #. type: verbatim
28824 #: ../src/guestfs-actions.pod:2789
28825 #, no-wrap
28826 msgid ""
28827 " char **\n"
28828 " guestfs_head (guestfs_h *g,\n"
28829 "               const char *path);\n"
28830 "\n"
28831 msgstr ""
28832
28833 #. type: =head2
28834 #: ../src/guestfs-actions.pod:2805
28835 msgid "guestfs_head_n"
28836 msgstr ""
28837
28838 #. type: verbatim
28839 #: ../src/guestfs-actions.pod:2807
28840 #, no-wrap
28841 msgid ""
28842 " char **\n"
28843 " guestfs_head_n (guestfs_h *g,\n"
28844 "                 int nrlines,\n"
28845 "                 const char *path);\n"
28846 "\n"
28847 msgstr ""
28848
28849 #. type: =head2
28850 #: ../src/guestfs-actions.pod:2829
28851 msgid "guestfs_hexdump"
28852 msgstr ""
28853
28854 #. type: verbatim
28855 #: ../src/guestfs-actions.pod:2831
28856 #, no-wrap
28857 msgid ""
28858 " char *\n"
28859 " guestfs_hexdump (guestfs_h *g,\n"
28860 "                  const char *path);\n"
28861 "\n"
28862 msgstr ""
28863
28864 #. type: textblock
28865 #: ../src/guestfs-actions.pod:2844 ../src/guestfs-actions.pod:7258
28866 #: ../src/guestfs-actions.pod:7313
28867 msgid "(Added in 1.0.22)"
28868 msgstr "(Додано у 1.0.22)"
28869
28870 #. type: =head2
28871 #: ../src/guestfs-actions.pod:2846
28872 msgid "guestfs_initrd_cat"
28873 msgstr ""
28874
28875 #. type: verbatim
28876 #: ../src/guestfs-actions.pod:2848
28877 #, no-wrap
28878 msgid ""
28879 " char *\n"
28880 " guestfs_initrd_cat (guestfs_h *g,\n"
28881 "                     const char *initrdpath,\n"
28882 "                     const char *filename,\n"
28883 "                     size_t *size_r);\n"
28884 "\n"
28885 msgstr ""
28886
28887 #. type: textblock
28888 #: ../src/guestfs-actions.pod:2864
28889 msgid "See also C<guestfs_initrd_list>."
28890 msgstr ""
28891
28892 #. type: =head2
28893 #: ../src/guestfs-actions.pod:2875
28894 msgid "guestfs_initrd_list"
28895 msgstr ""
28896
28897 #. type: verbatim
28898 #: ../src/guestfs-actions.pod:2877
28899 #, no-wrap
28900 msgid ""
28901 " char **\n"
28902 " guestfs_initrd_list (guestfs_h *g,\n"
28903 "                      const char *path);\n"
28904 "\n"
28905 msgstr ""
28906
28907 #. type: =head2
28908 #: ../src/guestfs-actions.pod:2897
28909 msgid "guestfs_inotify_add_watch"
28910 msgstr ""
28911
28912 #. type: verbatim
28913 #: ../src/guestfs-actions.pod:2899
28914 #, no-wrap
28915 msgid ""
28916 " int64_t\n"
28917 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28918 "                            const char *path,\n"
28919 "                            int mask);\n"
28920 "\n"
28921 msgstr ""
28922
28923 #. type: =head2
28924 #: ../src/guestfs-actions.pod:2918
28925 msgid "guestfs_inotify_close"
28926 msgstr ""
28927
28928 #. type: verbatim
28929 #: ../src/guestfs-actions.pod:2920
28930 #, no-wrap
28931 msgid ""
28932 " int\n"
28933 " guestfs_inotify_close (guestfs_h *g);\n"
28934 "\n"
28935 msgstr ""
28936
28937 #. type: =head2
28938 #: ../src/guestfs-actions.pod:2931
28939 msgid "guestfs_inotify_files"
28940 msgstr ""
28941
28942 #. type: verbatim
28943 #: ../src/guestfs-actions.pod:2933
28944 #, no-wrap
28945 msgid ""
28946 " char **\n"
28947 " guestfs_inotify_files (guestfs_h *g);\n"
28948 "\n"
28949 msgstr ""
28950
28951 #. type: textblock
28952 #: ../src/guestfs-actions.pod:2936
28953 msgid ""
28954 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28955 "returns a list of pathnames of objects that were touched.  The returned "
28956 "pathnames are sorted and deduplicated."
28957 msgstr ""
28958
28959 #. type: =head2
28960 #: ../src/guestfs-actions.pod:2946
28961 msgid "guestfs_inotify_init"
28962 msgstr ""
28963
28964 #. type: verbatim
28965 #: ../src/guestfs-actions.pod:2948
28966 #, no-wrap
28967 msgid ""
28968 " int\n"
28969 " guestfs_inotify_init (guestfs_h *g,\n"
28970 "                       int maxevents);\n"
28971 "\n"
28972 msgstr ""
28973
28974 #. type: textblock
28975 #: ../src/guestfs-actions.pod:2956
28976 msgid ""
28977 "C<maxevents> is the maximum number of events which will be queued up between "
28978 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28979 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28980 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28981 "throws away events, but records the fact that it threw them away by setting "
28982 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28983 "C<guestfs_inotify_read>)."
28984 msgstr ""
28985
28986 #. type: textblock
28987 #: ../src/guestfs-actions.pod:2966
28988 msgid ""
28989 "Before any events are generated, you have to add some watches to the "
28990 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28991 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28992 msgstr ""
28993
28994 #. type: textblock
28995 #: ../src/guestfs-actions.pod:2972
28996 msgid ""
28997 "Queued up events should be read periodically by calling "
28998 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28999 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
29000 "often enough then you risk the internal queue overflowing."
29001 msgstr ""
29002
29003 #. type: textblock
29004 #: ../src/guestfs-actions.pod:2979
29005 msgid ""
29006 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
29007 "This also removes any watches automatically."
29008 msgstr ""
29009
29010 #. type: =head2
29011 #: ../src/guestfs-actions.pod:2992
29012 msgid "guestfs_inotify_read"
29013 msgstr ""
29014
29015 #. type: verbatim
29016 #: ../src/guestfs-actions.pod:2994
29017 #, no-wrap
29018 msgid ""
29019 " struct guestfs_inotify_event_list *\n"
29020 " guestfs_inotify_read (guestfs_h *g);\n"
29021 "\n"
29022 msgstr ""
29023
29024 #. type: textblock
29025 #: ../src/guestfs-actions.pod:3008
29026 msgid ""
29027 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
29028 "there was an error.  I<The caller must call "
29029 "C<guestfs_free_inotify_event_list> after use>."
29030 msgstr ""
29031
29032 #. type: =head2
29033 #: ../src/guestfs-actions.pod:3014
29034 msgid "guestfs_inotify_rm_watch"
29035 msgstr ""
29036
29037 #. type: verbatim
29038 #: ../src/guestfs-actions.pod:3016
29039 #, no-wrap
29040 msgid ""
29041 " int\n"
29042 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
29043 "                           int wd);\n"
29044 "\n"
29045 msgstr ""
29046
29047 #. type: textblock
29048 #: ../src/guestfs-actions.pod:3020
29049 msgid ""
29050 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
29051 msgstr ""
29052
29053 #. type: =head2
29054 #: ../src/guestfs-actions.pod:3027
29055 msgid "guestfs_inspect_get_arch"
29056 msgstr ""
29057
29058 #. type: verbatim
29059 #: ../src/guestfs-actions.pod:3029
29060 #, no-wrap
29061 msgid ""
29062 " char *\n"
29063 " guestfs_inspect_get_arch (guestfs_h *g,\n"
29064 "                           const char *root);\n"
29065 "\n"
29066 msgstr ""
29067
29068 #. type: textblock
29069 #: ../src/guestfs-actions.pod:3033
29070 msgid ""
29071 "This returns the architecture of the inspected operating system.  The "
29072 "possible return values are listed under C<guestfs_file_architecture>."
29073 msgstr ""
29074
29075 #. type: =head2
29076 #: ../src/guestfs-actions.pod:3047
29077 msgid "guestfs_inspect_get_distro"
29078 msgstr ""
29079
29080 #. type: verbatim
29081 #: ../src/guestfs-actions.pod:3049
29082 #, no-wrap
29083 msgid ""
29084 " char *\n"
29085 " guestfs_inspect_get_distro (guestfs_h *g,\n"
29086 "                             const char *root);\n"
29087 "\n"
29088 msgstr ""
29089
29090 #. type: =head2
29091 #: ../src/guestfs-actions.pod:3149
29092 msgid "guestfs_inspect_get_drive_mappings"
29093 msgstr ""
29094
29095 #. type: verbatim
29096 #: ../src/guestfs-actions.pod:3151
29097 #, no-wrap
29098 msgid ""
29099 " char **\n"
29100 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
29101 "                                     const char *root);\n"
29102 "\n"
29103 msgstr ""
29104
29105 #. type: textblock
29106 #: ../src/guestfs-actions.pod:3180
29107 msgid ""
29108 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29109 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
29110 msgstr ""
29111
29112 #. type: textblock
29113 #: ../src/guestfs-actions.pod:3184 ../src/guestfs-actions.pod:3452
29114 #: ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:5527
29115 #: ../src/guestfs-actions.pod:7615
29116 msgid ""
29117 "This function returns a NULL-terminated array of strings, or NULL if there "
29118 "was an error.  The array of strings will always have length C<2n+1>, where "
29119 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
29120 "caller must free the strings and the array after use>."
29121 msgstr ""
29122
29123 #. type: textblock
29124 #: ../src/guestfs-actions.pod:3190 ../src/guestfs-actions.pod:3651
29125 msgid "(Added in 1.9.17)"
29126 msgstr "(Додано у 1.9.17)"
29127
29128 #. type: =head2
29129 #: ../src/guestfs-actions.pod:3192
29130 msgid "guestfs_inspect_get_filesystems"
29131 msgstr ""
29132
29133 #. type: verbatim
29134 #: ../src/guestfs-actions.pod:3194
29135 #, no-wrap
29136 msgid ""
29137 " char **\n"
29138 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29139 "                                  const char *root);\n"
29140 "\n"
29141 msgstr ""
29142
29143 #. type: textblock
29144 #: ../src/guestfs-actions.pod:3206
29145 msgid ""
29146 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29147 "C<guestfs_inspect_get_mountpoints>."
29148 msgstr ""
29149
29150 #. type: =head2
29151 #: ../src/guestfs-actions.pod:3215
29152 msgid "guestfs_inspect_get_format"
29153 msgstr ""
29154
29155 #. type: verbatim
29156 #: ../src/guestfs-actions.pod:3217
29157 #, no-wrap
29158 msgid ""
29159 " char *\n"
29160 " guestfs_inspect_get_format (guestfs_h *g,\n"
29161 "                             const char *root);\n"
29162 "\n"
29163 msgstr ""
29164
29165 #. type: textblock
29166 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3687
29167 #: ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:3721
29168 #: ../src/guestfs-actions.pod:6495
29169 msgid "(Added in 1.9.4)"
29170 msgstr "(Додано у 1.9.4)"
29171
29172 #. type: =head2
29173 #: ../src/guestfs-actions.pod:3253
29174 msgid "guestfs_inspect_get_hostname"
29175 msgstr ""
29176
29177 #. type: verbatim
29178 #: ../src/guestfs-actions.pod:3255
29179 #, no-wrap
29180 msgid ""
29181 " char *\n"
29182 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29183 "                               const char *root);\n"
29184 "\n"
29185 msgstr ""
29186
29187 #. type: textblock
29188 #: ../src/guestfs-actions.pod:3270
29189 msgid "(Added in 1.7.9)"
29190 msgstr "(Додано у 1.7.9)"
29191
29192 #. type: =head2
29193 #: ../src/guestfs-actions.pod:3272
29194 msgid "guestfs_inspect_get_icon"
29195 msgstr ""
29196
29197 #. type: verbatim
29198 #: ../src/guestfs-actions.pod:3274
29199 #, no-wrap
29200 msgid ""
29201 " char *\n"
29202 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29203 "                           const char *root,\n"
29204 "                           size_t *size_r,\n"
29205 "                           ...);\n"
29206 "\n"
29207 msgstr ""
29208
29209 #. type: verbatim
29210 #: ../src/guestfs-actions.pod:3285
29211 #, no-wrap
29212 msgid ""
29213 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29214 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29215 "\n"
29216 msgstr ""
29217
29218 #. type: textblock
29219 #: ../src/guestfs-actions.pod:3352 ../src/guestfs-actions.pod:4182
29220 #: ../src/guestfs-actions.pod:5426
29221 msgid "(Added in 1.11.12)"
29222 msgstr "(Додано у 1.11.12)"
29223
29224 #. type: =head2
29225 #: ../src/guestfs-actions.pod:3354
29226 msgid "guestfs_inspect_get_icon_va"
29227 msgstr ""
29228
29229 #. type: verbatim
29230 #: ../src/guestfs-actions.pod:3356
29231 #, no-wrap
29232 msgid ""
29233 " char *\n"
29234 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29235 "                              const char *root,\n"
29236 "                              size_t *size_r,\n"
29237 "                              va_list args);\n"
29238 "\n"
29239 msgstr ""
29240
29241 #. type: textblock
29242 #: ../src/guestfs-actions.pod:3362
29243 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29244 msgstr ""
29245
29246 #. type: =head2
29247 #: ../src/guestfs-actions.pod:3366
29248 msgid "guestfs_inspect_get_icon_argv"
29249 msgstr ""
29250
29251 #. type: verbatim
29252 #: ../src/guestfs-actions.pod:3368
29253 #, no-wrap
29254 msgid ""
29255 " char *\n"
29256 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29257 "                                const char *root,\n"
29258 "                                size_t *size_r,\n"
29259 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
29260 "\n"
29261 msgstr ""
29262
29263 #. type: textblock
29264 #: ../src/guestfs-actions.pod:3374
29265 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29266 msgstr ""
29267
29268 #. type: =head2
29269 #: ../src/guestfs-actions.pod:3378
29270 msgid "guestfs_inspect_get_major_version"
29271 msgstr ""
29272
29273 #. type: verbatim
29274 #: ../src/guestfs-actions.pod:3380
29275 #, no-wrap
29276 msgid ""
29277 " int\n"
29278 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29279 "                                    const char *root);\n"
29280 "\n"
29281 msgstr ""
29282
29283 #. type: =head2
29284 #: ../src/guestfs-actions.pod:3402
29285 msgid "guestfs_inspect_get_minor_version"
29286 msgstr ""
29287
29288 #. type: verbatim
29289 #: ../src/guestfs-actions.pod:3404
29290 #, no-wrap
29291 msgid ""
29292 " int\n"
29293 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29294 "                                    const char *root);\n"
29295 "\n"
29296 msgstr ""
29297
29298 #. type: textblock
29299 #: ../src/guestfs-actions.pod:3413
29300 msgid ""
29301 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29302 "C<guestfs_inspect_get_major_version>."
29303 msgstr ""
29304
29305 #. type: =head2
29306 #: ../src/guestfs-actions.pod:3420
29307 msgid "guestfs_inspect_get_mountpoints"
29308 msgstr ""
29309
29310 #. type: verbatim
29311 #: ../src/guestfs-actions.pod:3422
29312 #, no-wrap
29313 msgid ""
29314 " char **\n"
29315 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29316 "                                  const char *root);\n"
29317 "\n"
29318 msgstr ""
29319
29320 #. type: textblock
29321 #: ../src/guestfs-actions.pod:3443
29322 msgid ""
29323 "For operating systems like Windows which still use drive letters, this call "
29324 "will only return an entry for the first drive \"mounted on\" C</>.  For "
29325 "information about the mapping of drive letters to partitions, see "
29326 "C<guestfs_inspect_get_drive_mappings>."
29327 msgstr ""
29328
29329 #. type: textblock
29330 #: ../src/guestfs-actions.pod:3449
29331 msgid ""
29332 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29333 "C<guestfs_inspect_get_filesystems>."
29334 msgstr ""
29335
29336 #. type: =head2
29337 #: ../src/guestfs-actions.pod:3460
29338 msgid "guestfs_inspect_get_package_format"
29339 msgstr ""
29340
29341 #. type: verbatim
29342 #: ../src/guestfs-actions.pod:3462
29343 #, no-wrap
29344 msgid ""
29345 " char *\n"
29346 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29347 "                                     const char *root);\n"
29348 "\n"
29349 msgstr ""
29350
29351 #. type: textblock
29352 #: ../src/guestfs-actions.pod:3466
29353 msgid ""
29354 "This function and C<guestfs_inspect_get_package_management> return the "
29355 "package format and package management tool used by the inspected operating "
29356 "system.  For example for Fedora these functions would return C<rpm> (package "
29357 "format) and C<yum> (package management)."
29358 msgstr ""
29359
29360 #. type: textblock
29361 #: ../src/guestfs-actions.pod:3485 ../src/guestfs-actions.pod:3513
29362 msgid "(Added in 1.7.5)"
29363 msgstr "(Додано у 1.7.5)"
29364
29365 #. type: =head2
29366 #: ../src/guestfs-actions.pod:3487
29367 msgid "guestfs_inspect_get_package_management"
29368 msgstr ""
29369
29370 #. type: verbatim
29371 #: ../src/guestfs-actions.pod:3489
29372 #, no-wrap
29373 msgid ""
29374 " char *\n"
29375 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29376 "                                         const char *root);\n"
29377 "\n"
29378 msgstr ""
29379
29380 #. type: textblock
29381 #: ../src/guestfs-actions.pod:3493
29382 msgid ""
29383 "C<guestfs_inspect_get_package_format> and this function return the package "
29384 "format and package management tool used by the inspected operating system.  "
29385 "For example for Fedora these functions would return C<rpm> (package format) "
29386 "and C<yum> (package management)."
29387 msgstr ""
29388
29389 #. type: =head2
29390 #: ../src/guestfs-actions.pod:3515
29391 msgid "guestfs_inspect_get_product_name"
29392 msgstr ""
29393
29394 #. type: verbatim
29395 #: ../src/guestfs-actions.pod:3517
29396 #, no-wrap
29397 msgid ""
29398 " char *\n"
29399 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29400 "                                   const char *root);\n"
29401 "\n"
29402 msgstr ""
29403
29404 #. type: =head2
29405 #: ../src/guestfs-actions.pod:3536
29406 msgid "guestfs_inspect_get_product_variant"
29407 msgstr ""
29408
29409 #. type: verbatim
29410 #: ../src/guestfs-actions.pod:3538
29411 #, no-wrap
29412 msgid ""
29413 " char *\n"
29414 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29415 "                                      const char *root);\n"
29416 "\n"
29417 msgstr ""
29418
29419 #. type: textblock
29420 #: ../src/guestfs-actions.pod:3561
29421 msgid ""
29422 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29423 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29424 msgstr ""
29425
29426 #. type: textblock
29427 #: ../src/guestfs-actions.pod:3568
29428 msgid "(Added in 1.9.13)"
29429 msgstr "(Додано у 1.9.13)"
29430
29431 #. type: =head2
29432 #: ../src/guestfs-actions.pod:3570
29433 msgid "guestfs_inspect_get_roots"
29434 msgstr ""
29435
29436 #. type: verbatim
29437 #: ../src/guestfs-actions.pod:3572
29438 #, no-wrap
29439 msgid ""
29440 " char **\n"
29441 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29442 "\n"
29443 msgstr ""
29444
29445 #. type: textblock
29446 #: ../src/guestfs-actions.pod:3575
29447 msgid ""
29448 "This function is a convenient way to get the list of root devices, as "
29449 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29450 "the whole inspection process."
29451 msgstr ""
29452
29453 #. type: textblock
29454 #: ../src/guestfs-actions.pod:3579
29455 msgid ""
29456 "This returns an empty list if either no root devices were found or the "
29457 "caller has not called C<guestfs_inspect_os>."
29458 msgstr ""
29459
29460 #. type: textblock
29461 #: ../src/guestfs-actions.pod:3588
29462 msgid "(Added in 1.7.3)"
29463 msgstr "(Додано у 1.7.3)"
29464
29465 #. type: =head2
29466 #: ../src/guestfs-actions.pod:3590
29467 msgid "guestfs_inspect_get_type"
29468 msgstr ""
29469
29470 #. type: verbatim
29471 #: ../src/guestfs-actions.pod:3592
29472 #, no-wrap
29473 msgid ""
29474 " char *\n"
29475 " guestfs_inspect_get_type (guestfs_h *g,\n"
29476 "                           const char *root);\n"
29477 "\n"
29478 msgstr ""
29479
29480 #. type: =head2
29481 #: ../src/guestfs-actions.pod:3633
29482 msgid "guestfs_inspect_get_windows_current_control_set"
29483 msgstr ""
29484
29485 #. type: verbatim
29486 #: ../src/guestfs-actions.pod:3635
29487 #, no-wrap
29488 msgid ""
29489 " char *\n"
29490 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29491 "                                                  const char *root);\n"
29492 "\n"
29493 msgstr ""
29494
29495 #. type: =head2
29496 #: ../src/guestfs-actions.pod:3653
29497 msgid "guestfs_inspect_get_windows_systemroot"
29498 msgstr ""
29499
29500 #. type: verbatim
29501 #: ../src/guestfs-actions.pod:3655
29502 #, no-wrap
29503 msgid ""
29504 " char *\n"
29505 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29506 "                                         const char *root);\n"
29507 "\n"
29508 msgstr ""
29509
29510 #. type: textblock
29511 #: ../src/guestfs-actions.pod:3671
29512 msgid "(Added in 1.5.25)"
29513 msgstr "(Додано у 1.5.25)"
29514
29515 #. type: =head2
29516 #: ../src/guestfs-actions.pod:3673
29517 msgid "guestfs_inspect_is_live"
29518 msgstr ""
29519
29520 #. type: verbatim
29521 #: ../src/guestfs-actions.pod:3675
29522 #, no-wrap
29523 msgid ""
29524 " int\n"
29525 " guestfs_inspect_is_live (guestfs_h *g,\n"
29526 "                          const char *root);\n"
29527 "\n"
29528 msgstr ""
29529
29530 #. type: textblock
29531 #: ../src/guestfs-actions.pod:3679
29532 msgid ""
29533 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29534 "disk), then this returns true if a live image was detected on the disk."
29535 msgstr ""
29536
29537 #. type: =head2
29538 #: ../src/guestfs-actions.pod:3689
29539 msgid "guestfs_inspect_is_multipart"
29540 msgstr ""
29541
29542 #. type: verbatim
29543 #: ../src/guestfs-actions.pod:3691
29544 #, no-wrap
29545 msgid ""
29546 " int\n"
29547 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29548 "                               const char *root);\n"
29549 "\n"
29550 msgstr ""
29551
29552 #. type: textblock
29553 #: ../src/guestfs-actions.pod:3695
29554 msgid ""
29555 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29556 "disk), then this returns true if the disk is part of a set."
29557 msgstr ""
29558
29559 #. type: =head2
29560 #: ../src/guestfs-actions.pod:3705
29561 msgid "guestfs_inspect_is_netinst"
29562 msgstr ""
29563
29564 #. type: verbatim
29565 #: ../src/guestfs-actions.pod:3707
29566 #, no-wrap
29567 msgid ""
29568 " int\n"
29569 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29570 "                             const char *root);\n"
29571 "\n"
29572 msgstr ""
29573
29574 #. type: textblock
29575 #: ../src/guestfs-actions.pod:3711
29576 msgid ""
29577 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29578 "disk), then this returns true if the disk is a network installer, ie. not a "
29579 "self-contained install CD but one which is likely to require network access "
29580 "to complete the install."
29581 msgstr ""
29582
29583 #. type: =head2
29584 #: ../src/guestfs-actions.pod:3723
29585 msgid "guestfs_inspect_list_applications"
29586 msgstr ""
29587
29588 #. type: verbatim
29589 #: ../src/guestfs-actions.pod:3725
29590 #, no-wrap
29591 msgid ""
29592 " struct guestfs_application_list *\n"
29593 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29594 "                                    const char *root);\n"
29595 "\n"
29596 msgstr ""
29597
29598 #. type: textblock
29599 #: ../src/guestfs-actions.pod:3731
29600 msgid ""
29601 "I<Note:> This call works differently from other parts of the inspection "
29602 "API.  You have to call C<guestfs_inspect_os>, then "
29603 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29604 "this.  Listing applications is a significantly more difficult operation "
29605 "which requires access to the full filesystem.  Also note that unlike the "
29606 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29607 "the libguestfs handle, this call actually reads parts of the mounted "
29608 "filesystems during the call."
29609 msgstr ""
29610
29611 #. type: textblock
29612 #: ../src/guestfs-actions.pod:3821
29613 msgid ""
29614 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29615 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
29616 "after use>."
29617 msgstr ""
29618
29619 #. type: textblock
29620 #: ../src/guestfs-actions.pod:3825
29621 msgid "(Added in 1.7.8)"
29622 msgstr "(Додано у 1.7.8)"
29623
29624 #. type: =head2
29625 #: ../src/guestfs-actions.pod:3827
29626 msgid "guestfs_inspect_os"
29627 msgstr ""
29628
29629 #. type: verbatim
29630 #: ../src/guestfs-actions.pod:3829
29631 #, no-wrap
29632 msgid ""
29633 " char **\n"
29634 " guestfs_inspect_os (guestfs_h *g);\n"
29635 "\n"
29636 msgstr ""
29637
29638 #. type: textblock
29639 #: ../src/guestfs-actions.pod:3845
29640 msgid ""
29641 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29642 "functions in order to query further information about each operating system, "
29643 "such as the name and version."
29644 msgstr ""
29645
29646 #. type: textblock
29647 #: ../src/guestfs-actions.pod:3850
29648 msgid ""
29649 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29650 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29651 "the contents.  This should be called with no disks currently mounted.  The "
29652 "function may also use Augeas, so any existing Augeas handle will be closed."
29653 msgstr ""
29654
29655 #. type: textblock
29656 #: ../src/guestfs-actions.pod:3862 ../src/guestfs-actions.pod:4193
29657 #: ../src/guestfs-actions.pod:4275
29658 msgid "See also C<guestfs_list_filesystems>."
29659 msgstr ""
29660
29661 #. type: =head2
29662 #: ../src/guestfs-actions.pod:3870
29663 msgid "guestfs_is_blockdev"
29664 msgstr ""
29665
29666 #. type: verbatim
29667 #: ../src/guestfs-actions.pod:3872
29668 #, no-wrap
29669 msgid ""
29670 " int\n"
29671 " guestfs_is_blockdev (guestfs_h *g,\n"
29672 "                      const char *path);\n"
29673 "\n"
29674 msgstr ""
29675
29676 #. type: textblock
29677 #: ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3908
29678 #: ../src/guestfs-actions.pod:3938 ../src/guestfs-actions.pod:3953
29679 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4025
29680 #: ../src/guestfs-actions.pod:4040
29681 msgid "See also C<guestfs_stat>."
29682 msgstr ""
29683
29684 #. type: textblock
29685 #: ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3912
29686 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:4029
29687 #: ../src/guestfs-actions.pod:4044
29688 msgid "(Added in 1.5.10)"
29689 msgstr "(Додано у 1.5.10)"
29690
29691 #. type: =head2
29692 #: ../src/guestfs-actions.pod:3885
29693 msgid "guestfs_is_busy"
29694 msgstr ""
29695
29696 #. type: verbatim
29697 #: ../src/guestfs-actions.pod:3887
29698 #, no-wrap
29699 msgid ""
29700 " int\n"
29701 " guestfs_is_busy (guestfs_h *g);\n"
29702 "\n"
29703 msgstr ""
29704
29705 #. type: =head2
29706 #: ../src/guestfs-actions.pod:3899
29707 msgid "guestfs_is_chardev"
29708 msgstr ""
29709
29710 #. type: verbatim
29711 #: ../src/guestfs-actions.pod:3901
29712 #, no-wrap
29713 msgid ""
29714 " int\n"
29715 " guestfs_is_chardev (guestfs_h *g,\n"
29716 "                     const char *path);\n"
29717 "\n"
29718 msgstr ""
29719
29720 #. type: =head2
29721 #: ../src/guestfs-actions.pod:3914
29722 msgid "guestfs_is_config"
29723 msgstr ""
29724
29725 #. type: verbatim
29726 #: ../src/guestfs-actions.pod:3916
29727 #, no-wrap
29728 msgid ""
29729 " int\n"
29730 " guestfs_is_config (guestfs_h *g);\n"
29731 "\n"
29732 msgstr ""
29733
29734 #. type: =head2
29735 #: ../src/guestfs-actions.pod:3928
29736 msgid "guestfs_is_dir"
29737 msgstr ""
29738
29739 #. type: verbatim
29740 #: ../src/guestfs-actions.pod:3930
29741 #, no-wrap
29742 msgid ""
29743 " int\n"
29744 " guestfs_is_dir (guestfs_h *g,\n"
29745 "                 const char *path);\n"
29746 "\n"
29747 msgstr ""
29748
29749 #. type: =head2
29750 #: ../src/guestfs-actions.pod:3944
29751 msgid "guestfs_is_fifo"
29752 msgstr ""
29753
29754 #. type: verbatim
29755 #: ../src/guestfs-actions.pod:3946
29756 #, no-wrap
29757 msgid ""
29758 " int\n"
29759 " guestfs_is_fifo (guestfs_h *g,\n"
29760 "                  const char *path);\n"
29761 "\n"
29762 msgstr ""
29763
29764 #. type: =head2
29765 #: ../src/guestfs-actions.pod:3959
29766 msgid "guestfs_is_file"
29767 msgstr ""
29768
29769 #. type: verbatim
29770 #: ../src/guestfs-actions.pod:3961
29771 #, no-wrap
29772 msgid ""
29773 " int\n"
29774 " guestfs_is_file (guestfs_h *g,\n"
29775 "                  const char *path);\n"
29776 "\n"
29777 msgstr ""
29778
29779 #. type: =head2
29780 #: ../src/guestfs-actions.pod:3975
29781 msgid "guestfs_is_launching"
29782 msgstr ""
29783
29784 #. type: verbatim
29785 #: ../src/guestfs-actions.pod:3977
29786 #, no-wrap
29787 msgid ""
29788 " int\n"
29789 " guestfs_is_launching (guestfs_h *g);\n"
29790 "\n"
29791 msgstr ""
29792
29793 #. type: =head2
29794 #: ../src/guestfs-actions.pod:3989
29795 msgid "guestfs_is_lv"
29796 msgstr ""
29797
29798 #. type: verbatim
29799 #: ../src/guestfs-actions.pod:3991
29800 #, no-wrap
29801 msgid ""
29802 " int\n"
29803 " guestfs_is_lv (guestfs_h *g,\n"
29804 "                const char *device);\n"
29805 "\n"
29806 msgstr ""
29807
29808 #. type: =head2
29809 #: ../src/guestfs-actions.pod:4002
29810 msgid "guestfs_is_ready"
29811 msgstr ""
29812
29813 #. type: verbatim
29814 #: ../src/guestfs-actions.pod:4004
29815 #, no-wrap
29816 msgid ""
29817 " int\n"
29818 " guestfs_is_ready (guestfs_h *g);\n"
29819 "\n"
29820 msgstr ""
29821
29822 #. type: =head2
29823 #: ../src/guestfs-actions.pod:4016
29824 msgid "guestfs_is_socket"
29825 msgstr ""
29826
29827 #. type: verbatim
29828 #: ../src/guestfs-actions.pod:4018
29829 #, no-wrap
29830 msgid ""
29831 " int\n"
29832 " guestfs_is_socket (guestfs_h *g,\n"
29833 "                    const char *path);\n"
29834 "\n"
29835 msgstr ""
29836
29837 #. type: =head2
29838 #: ../src/guestfs-actions.pod:4031
29839 msgid "guestfs_is_symlink"
29840 msgstr ""
29841
29842 #. type: verbatim
29843 #: ../src/guestfs-actions.pod:4033
29844 #, no-wrap
29845 msgid ""
29846 " int\n"
29847 " guestfs_is_symlink (guestfs_h *g,\n"
29848 "                     const char *path);\n"
29849 "\n"
29850 msgstr ""
29851
29852 #. type: =head2
29853 #: ../src/guestfs-actions.pod:4046
29854 msgid "guestfs_is_zero"
29855 msgstr ""
29856
29857 #. type: verbatim
29858 #: ../src/guestfs-actions.pod:4048
29859 #, no-wrap
29860 msgid ""
29861 " int\n"
29862 " guestfs_is_zero (guestfs_h *g,\n"
29863 "                  const char *path);\n"
29864 "\n"
29865 msgstr ""
29866
29867 #. type: textblock
29868 #: ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4071
29869 msgid "(Added in 1.11.8)"
29870 msgstr "(Додано у 1.11.8)"
29871
29872 #. type: =head2
29873 #: ../src/guestfs-actions.pod:4059
29874 msgid "guestfs_is_zero_device"
29875 msgstr ""
29876
29877 #. type: verbatim
29878 #: ../src/guestfs-actions.pod:4061
29879 #, no-wrap
29880 msgid ""
29881 " int\n"
29882 " guestfs_is_zero_device (guestfs_h *g,\n"
29883 "                         const char *device);\n"
29884 "\n"
29885 msgstr ""
29886
29887 #. type: =head2
29888 #: ../src/guestfs-actions.pod:4073
29889 msgid "guestfs_kill_subprocess"
29890 msgstr ""
29891
29892 #. type: verbatim
29893 #: ../src/guestfs-actions.pod:4075
29894 #, no-wrap
29895 msgid ""
29896 " int\n"
29897 " guestfs_kill_subprocess (guestfs_h *g);\n"
29898 "\n"
29899 msgstr ""
29900
29901 #. type: =head2
29902 #: ../src/guestfs-actions.pod:4084
29903 msgid "guestfs_launch"
29904 msgstr ""
29905
29906 #. type: verbatim
29907 #: ../src/guestfs-actions.pod:4086
29908 #, no-wrap
29909 msgid ""
29910 " int\n"
29911 " guestfs_launch (guestfs_h *g);\n"
29912 "\n"
29913 msgstr ""
29914
29915 #. type: =head2
29916 #: ../src/guestfs-actions.pod:4104
29917 msgid "guestfs_lchown"
29918 msgstr ""
29919
29920 #. type: verbatim
29921 #: ../src/guestfs-actions.pod:4106
29922 #, no-wrap
29923 msgid ""
29924 " int\n"
29925 " guestfs_lchown (guestfs_h *g,\n"
29926 "                 int owner,\n"
29927 "                 int group,\n"
29928 "                 const char *path);\n"
29929 "\n"
29930 msgstr ""
29931
29932 #. type: textblock
29933 #: ../src/guestfs-actions.pod:4112
29934 msgid ""
29935 "Change the file owner to C<owner> and group to C<group>.  This is like "
29936 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29937 "changed, not the target."
29938 msgstr ""
29939
29940 #. type: =head2
29941 #: ../src/guestfs-actions.pod:4124
29942 msgid "guestfs_lgetxattr"
29943 msgstr ""
29944
29945 #. type: verbatim
29946 #: ../src/guestfs-actions.pod:4126
29947 #, no-wrap
29948 msgid ""
29949 " char *\n"
29950 " guestfs_lgetxattr (guestfs_h *g,\n"
29951 "                    const char *path,\n"
29952 "                    const char *name,\n"
29953 "                    size_t *size_r);\n"
29954 "\n"
29955 msgstr ""
29956
29957 #. type: textblock
29958 #: ../src/guestfs-actions.pod:4146
29959 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29960 msgstr ""
29961
29962 #. type: =head2
29963 #: ../src/guestfs-actions.pod:4154
29964 msgid "guestfs_lgetxattrs"
29965 msgstr ""
29966
29967 #. type: verbatim
29968 #: ../src/guestfs-actions.pod:4156
29969 #, no-wrap
29970 msgid ""
29971 " struct guestfs_xattr_list *\n"
29972 " guestfs_lgetxattrs (guestfs_h *g,\n"
29973 "                     const char *path);\n"
29974 "\n"
29975 msgstr ""
29976
29977 #. type: textblock
29978 #: ../src/guestfs-actions.pod:4160
29979 msgid ""
29980 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29981 "then it returns the extended attributes of the link itself."
29982 msgstr ""
29983
29984 #. type: =head2
29985 #: ../src/guestfs-actions.pod:4170
29986 msgid "guestfs_list_9p"
29987 msgstr ""
29988
29989 #. type: verbatim
29990 #: ../src/guestfs-actions.pod:4172
29991 #, no-wrap
29992 msgid ""
29993 " char **\n"
29994 " guestfs_list_9p (guestfs_h *g);\n"
29995 "\n"
29996 msgstr ""
29997
29998 #. type: =head2
29999 #: ../src/guestfs-actions.pod:4184
30000 msgid "guestfs_list_devices"
30001 msgstr ""
30002
30003 #. type: verbatim
30004 #: ../src/guestfs-actions.pod:4186
30005 #, no-wrap
30006 msgid ""
30007 " char **\n"
30008 " guestfs_list_devices (guestfs_h *g);\n"
30009 "\n"
30010 msgstr ""
30011
30012 #. type: =head2
30013 #: ../src/guestfs-actions.pod:4201
30014 msgid "guestfs_list_dm_devices"
30015 msgstr ""
30016
30017 #. type: verbatim
30018 #: ../src/guestfs-actions.pod:4203
30019 #, no-wrap
30020 msgid ""
30021 " char **\n"
30022 " guestfs_list_dm_devices (guestfs_h *g);\n"
30023 "\n"
30024 msgstr ""
30025
30026 #. type: textblock
30027 #: ../src/guestfs-actions.pod:4208
30028 msgid ""
30029 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
30030 "previous call to C<guestfs_luks_open>."
30031 msgstr ""
30032
30033 #. type: textblock
30034 #: ../src/guestfs-actions.pod:4211
30035 msgid ""
30036 "Device mapper devices which correspond to logical volumes are I<not> "
30037 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
30038 "volumes."
30039 msgstr ""
30040
30041 #. type: textblock
30042 #: ../src/guestfs-actions.pod:4219 ../src/guestfs-actions.pod:5665
30043 msgid "(Added in 1.11.15)"
30044 msgstr "(Додано у 1.11.15)"
30045
30046 #. type: =head2
30047 #: ../src/guestfs-actions.pod:4221
30048 msgid "guestfs_list_filesystems"
30049 msgstr ""
30050
30051 #. type: verbatim
30052 #: ../src/guestfs-actions.pod:4223
30053 #, no-wrap
30054 msgid ""
30055 " char **\n"
30056 " guestfs_list_filesystems (guestfs_h *g);\n"
30057 "\n"
30058 msgstr ""
30059
30060 #. type: textblock
30061 #: ../src/guestfs-actions.pod:4243
30062 msgid ""
30063 "This command runs other libguestfs commands, which might include "
30064 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
30065 "soon after launch and only when nothing is mounted."
30066 msgstr ""
30067
30068 #. type: textblock
30069 #: ../src/guestfs-actions.pod:4247
30070 msgid ""
30071 "Not all of the filesystems returned will be mountable.  In particular, swap "
30072 "partitions are returned in the list.  Also this command does not check that "
30073 "each filesystem found is valid and mountable, and some filesystems might be "
30074 "mountable but require special options.  Filesystems may not all belong to a "
30075 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
30076 msgstr ""
30077
30078 #. type: textblock
30079 #: ../src/guestfs-actions.pod:4261 ../src/guestfs-actions.pod:6028
30080 msgid "(Added in 1.5.15)"
30081 msgstr "(Додано у 1.5.15)"
30082
30083 #. type: =head2
30084 #: ../src/guestfs-actions.pod:4263
30085 msgid "guestfs_list_partitions"
30086 msgstr "guestfs_list_partitions"
30087
30088 #. type: verbatim
30089 #: ../src/guestfs-actions.pod:4265
30090 #, no-wrap
30091 msgid ""
30092 " char **\n"
30093 " guestfs_list_partitions (guestfs_h *g);\n"
30094 "\n"
30095 msgstr ""
30096 " char **\n"
30097 " guestfs_list_partitions (guestfs_h *g);\n"
30098 "\n"
30099
30100 #. type: textblock
30101 #: ../src/guestfs-actions.pod:4272
30102 msgid ""
30103 "This does not return logical volumes.  For that you will need to call "
30104 "C<guestfs_lvs>."
30105 msgstr ""
30106
30107 #. type: =head2
30108 #: ../src/guestfs-actions.pod:4283
30109 msgid "guestfs_ll"
30110 msgstr "guestfs_ll"
30111
30112 #. type: verbatim
30113 #: ../src/guestfs-actions.pod:4285
30114 #, no-wrap
30115 msgid ""
30116 " char *\n"
30117 " guestfs_ll (guestfs_h *g,\n"
30118 "             const char *directory);\n"
30119 "\n"
30120 msgstr ""
30121 " char *\n"
30122 " guestfs_ll (guestfs_h *g,\n"
30123 "             const char *directory);\n"
30124 "\n"
30125
30126 #. type: =head2
30127 #: ../src/guestfs-actions.pod:4300
30128 msgid "guestfs_ln"
30129 msgstr "guestfs_ln"
30130
30131 #. type: verbatim
30132 #: ../src/guestfs-actions.pod:4302
30133 #, no-wrap
30134 msgid ""
30135 " int\n"
30136 " guestfs_ln (guestfs_h *g,\n"
30137 "             const char *target,\n"
30138 "             const char *linkname);\n"
30139 "\n"
30140 msgstr ""
30141 " int\n"
30142 " guestfs_ln (guestfs_h *g,\n"
30143 "             const char *target,\n"
30144 "             const char *linkname);\n"
30145 "\n"
30146
30147 #. type: =head2
30148 #: ../src/guestfs-actions.pod:4313
30149 msgid "guestfs_ln_f"
30150 msgstr "guestfs_ln_f"
30151
30152 #. type: verbatim
30153 #: ../src/guestfs-actions.pod:4315
30154 #, no-wrap
30155 msgid ""
30156 " int\n"
30157 " guestfs_ln_f (guestfs_h *g,\n"
30158 "               const char *target,\n"
30159 "               const char *linkname);\n"
30160 "\n"
30161 msgstr ""
30162 " int\n"
30163 " guestfs_ln_f (guestfs_h *g,\n"
30164 "               const char *target,\n"
30165 "               const char *linkname);\n"
30166 "\n"
30167
30168 #. type: =head2
30169 #: ../src/guestfs-actions.pod:4327
30170 msgid "guestfs_ln_s"
30171 msgstr "guestfs_ln_s"
30172
30173 #. type: verbatim
30174 #: ../src/guestfs-actions.pod:4329
30175 #, no-wrap
30176 msgid ""
30177 " int\n"
30178 " guestfs_ln_s (guestfs_h *g,\n"
30179 "               const char *target,\n"
30180 "               const char *linkname);\n"
30181 "\n"
30182 msgstr ""
30183 " int\n"
30184 " guestfs_ln_s (guestfs_h *g,\n"
30185 "               const char *target,\n"
30186 "               const char *linkname);\n"
30187 "\n"
30188
30189 #. type: =head2
30190 #: ../src/guestfs-actions.pod:4340
30191 msgid "guestfs_ln_sf"
30192 msgstr "guestfs_ln_sf"
30193
30194 #. type: verbatim
30195 #: ../src/guestfs-actions.pod:4342
30196 #, no-wrap
30197 msgid ""
30198 " int\n"
30199 " guestfs_ln_sf (guestfs_h *g,\n"
30200 "                const char *target,\n"
30201 "                const char *linkname);\n"
30202 "\n"
30203 msgstr ""
30204 " int\n"
30205 " guestfs_ln_sf (guestfs_h *g,\n"
30206 "                const char *target,\n"
30207 "                const char *linkname);\n"
30208 "\n"
30209
30210 #. type: =head2
30211 #: ../src/guestfs-actions.pod:4354
30212 msgid "guestfs_lremovexattr"
30213 msgstr "guestfs_lremovexattr"
30214
30215 #. type: verbatim
30216 #: ../src/guestfs-actions.pod:4356
30217 #, no-wrap
30218 msgid ""
30219 " int\n"
30220 " guestfs_lremovexattr (guestfs_h *g,\n"
30221 "                       const char *xattr,\n"
30222 "                       const char *path);\n"
30223 "\n"
30224 msgstr ""
30225 " int\n"
30226 " guestfs_lremovexattr (guestfs_h *g,\n"
30227 "                       const char *xattr,\n"
30228 "                       const char *path);\n"
30229 "\n"
30230
30231 #. type: textblock
30232 #: ../src/guestfs-actions.pod:4361
30233 msgid ""
30234 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30235 "link, then it removes an extended attribute of the link itself."
30236 msgstr ""
30237
30238 #. type: =head2
30239 #: ../src/guestfs-actions.pod:4369
30240 msgid "guestfs_ls"
30241 msgstr "guestfs_ls"
30242
30243 #. type: verbatim
30244 #: ../src/guestfs-actions.pod:4371
30245 #, no-wrap
30246 msgid ""
30247 " char **\n"
30248 " guestfs_ls (guestfs_h *g,\n"
30249 "             const char *directory);\n"
30250 "\n"
30251 msgstr ""
30252 " char **\n"
30253 " guestfs_ls (guestfs_h *g,\n"
30254 "             const char *directory);\n"
30255 "\n"
30256
30257 #. type: textblock
30258 #: ../src/guestfs-actions.pod:4379
30259 msgid ""
30260 "This command is mostly useful for interactive sessions.  Programs should "
30261 "probably use C<guestfs_readdir> instead."
30262 msgstr ""
30263
30264 #. type: =head2
30265 #: ../src/guestfs-actions.pod:4388
30266 msgid "guestfs_lsetxattr"
30267 msgstr "guestfs_lsetxattr"
30268
30269 #. type: verbatim
30270 #: ../src/guestfs-actions.pod:4390
30271 #, no-wrap
30272 msgid ""
30273 " int\n"
30274 " guestfs_lsetxattr (guestfs_h *g,\n"
30275 "                    const char *xattr,\n"
30276 "                    const char *val,\n"
30277 "                    int vallen,\n"
30278 "                    const char *path);\n"
30279 "\n"
30280 msgstr ""
30281 " int\n"
30282 " guestfs_lsetxattr (guestfs_h *g,\n"
30283 "                    const char *xattr,\n"
30284 "                    const char *val,\n"
30285 "                    int vallen,\n"
30286 "                    const char *path);\n"
30287 "\n"
30288
30289 #. type: textblock
30290 #: ../src/guestfs-actions.pod:4397
30291 msgid ""
30292 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30293 "then it sets an extended attribute of the link itself."
30294 msgstr ""
30295
30296 #. type: =head2
30297 #: ../src/guestfs-actions.pod:4405
30298 msgid "guestfs_lstat"
30299 msgstr "guestfs_lstat"
30300
30301 #. type: verbatim
30302 #: ../src/guestfs-actions.pod:4407
30303 #, no-wrap
30304 msgid ""
30305 " struct guestfs_stat *\n"
30306 " guestfs_lstat (guestfs_h *g,\n"
30307 "                const char *path);\n"
30308 "\n"
30309 msgstr ""
30310 " struct guestfs_stat *\n"
30311 " guestfs_lstat (guestfs_h *g,\n"
30312 "                const char *path);\n"
30313 "\n"
30314
30315 #. type: textblock
30316 #: ../src/guestfs-actions.pod:4413
30317 msgid ""
30318 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30319 "link, then the link is stat-ed, not the file it refers to."
30320 msgstr ""
30321
30322 #. type: textblock
30323 #: ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:7218
30324 msgid ""
30325 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30326 "error.  I<The caller must call C<guestfs_free_stat> after use>."
30327 msgstr ""
30328
30329 #. type: textblock
30330 #: ../src/guestfs-actions.pod:4423 ../src/guestfs-actions.pod:7222
30331 #: ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7621
30332 msgid "(Added in 0.9.2)"
30333 msgstr "(Додано у 0.9.2)"
30334
30335 #. type: =head2
30336 #: ../src/guestfs-actions.pod:4425
30337 msgid "guestfs_lstatlist"
30338 msgstr "guestfs_lstatlist"
30339
30340 #. type: verbatim
30341 #: ../src/guestfs-actions.pod:4427
30342 #, no-wrap
30343 msgid ""
30344 " struct guestfs_stat_list *\n"
30345 " guestfs_lstatlist (guestfs_h *g,\n"
30346 "                    const char *path,\n"
30347 "                    char *const *names);\n"
30348 "\n"
30349 msgstr ""
30350 " struct guestfs_stat_list *\n"
30351 " guestfs_lstatlist (guestfs_h *g,\n"
30352 "                    const char *path,\n"
30353 "                    char *const *names);\n"
30354 "\n"
30355
30356 #. type: textblock
30357 #: ../src/guestfs-actions.pod:4432
30358 msgid ""
30359 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30360 "files, where all files are in the directory C<path>.  C<names> is the list "
30361 "of files from this directory."
30362 msgstr ""
30363
30364 #. type: textblock
30365 #: ../src/guestfs-actions.pod:4441
30366 msgid ""
30367 "This call is intended for programs that want to efficiently list a directory "
30368 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
30369 "for a similarly efficient call for getting extended attributes.  Very long "
30370 "directory listings might cause the protocol message size to be exceeded, "
30371 "causing this call to fail.  The caller must split up such requests into "
30372 "smaller groups of names."
30373 msgstr ""
30374
30375 #. type: textblock
30376 #: ../src/guestfs-actions.pod:4449
30377 msgid ""
30378 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30379 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
30380 msgstr ""
30381
30382 #. type: =head2
30383 #: ../src/guestfs-actions.pod:4455
30384 msgid "guestfs_luks_add_key"
30385 msgstr "guestfs_luks_add_key"
30386
30387 #. type: verbatim
30388 #: ../src/guestfs-actions.pod:4457
30389 #, no-wrap
30390 msgid ""
30391 " int\n"
30392 " guestfs_luks_add_key (guestfs_h *g,\n"
30393 "                       const char *device,\n"
30394 "                       const char *key,\n"
30395 "                       const char *newkey,\n"
30396 "                       int keyslot);\n"
30397 "\n"
30398 msgstr ""
30399 " int\n"
30400 " guestfs_luks_add_key (guestfs_h *g,\n"
30401 "                       const char *device,\n"
30402 "                       const char *key,\n"
30403 "                       const char *newkey,\n"
30404 "                       int keyslot);\n"
30405 "\n"
30406
30407 #. type: textblock
30408 #: ../src/guestfs-actions.pod:4469
30409 msgid ""
30410 "Note that if C<keyslot> already contains a key, then this command will "
30411 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
30412 msgstr ""
30413
30414 #. type: textblock
30415 #: ../src/guestfs-actions.pod:4475 ../src/guestfs-actions.pod:4515
30416 #: ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558
30417 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612
30418 msgid ""
30419 "This function takes a key or passphrase parameter which could contain "
30420 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
30421 "information."
30422 msgstr ""
30423
30424 #. type: textblock
30425 #: ../src/guestfs-actions.pod:4479 ../src/guestfs-actions.pod:4519
30426 #: ../src/guestfs-actions.pod:4542 ../src/guestfs-actions.pod:4562
30427 msgid "(Added in 1.5.2)"
30428 msgstr "(Додано у 1.5.2)"
30429
30430 #. type: =head2
30431 #: ../src/guestfs-actions.pod:4481
30432 msgid "guestfs_luks_close"
30433 msgstr "guestfs_luks_close"
30434
30435 #. type: verbatim
30436 #: ../src/guestfs-actions.pod:4483
30437 #, no-wrap
30438 msgid ""
30439 " int\n"
30440 " guestfs_luks_close (guestfs_h *g,\n"
30441 "                     const char *device);\n"
30442 "\n"
30443 msgstr ""
30444 " int\n"
30445 " guestfs_luks_close (guestfs_h *g,\n"
30446 "                     const char *device);\n"
30447 "\n"
30448
30449 #. type: textblock
30450 #: ../src/guestfs-actions.pod:4487
30451 msgid ""
30452 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30453 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
30454 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
30455 "underlying block device."
30456 msgstr ""
30457
30458 #. type: textblock
30459 #: ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4597
30460 #: ../src/guestfs-actions.pod:4616 ../src/guestfs-actions.pod:4666
30461 #: ../src/guestfs-actions.pod:4714
30462 msgid "(Added in 1.5.1)"
30463 msgstr "(Додано у 1.5.1)"
30464
30465 #. type: =head2
30466 #: ../src/guestfs-actions.pod:4497
30467 msgid "guestfs_luks_format"
30468 msgstr "guestfs_luks_format"
30469
30470 #. type: verbatim
30471 #: ../src/guestfs-actions.pod:4499
30472 #, no-wrap
30473 msgid ""
30474 " int\n"
30475 " guestfs_luks_format (guestfs_h *g,\n"
30476 "                      const char *device,\n"
30477 "                      const char *key,\n"
30478 "                      int keyslot);\n"
30479 "\n"
30480 msgstr ""
30481 " int\n"
30482 " guestfs_luks_format (guestfs_h *g,\n"
30483 "                      const char *device,\n"
30484 "                      const char *key,\n"
30485 "                      int keyslot);\n"
30486 "\n"
30487
30488 #. type: =head2
30489 #: ../src/guestfs-actions.pod:4521
30490 msgid "guestfs_luks_format_cipher"
30491 msgstr "guestfs_luks_format_cipher"
30492
30493 #. type: verbatim
30494 #: ../src/guestfs-actions.pod:4523
30495 #, no-wrap
30496 msgid ""
30497 " int\n"
30498 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30499 "                             const char *device,\n"
30500 "                             const char *key,\n"
30501 "                             int keyslot,\n"
30502 "                             const char *cipher);\n"
30503 "\n"
30504 msgstr ""
30505 " int\n"
30506 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30507 "                             const char *device,\n"
30508 "                             const char *key,\n"
30509 "                             int keyslot,\n"
30510 "                             const char *cipher);\n"
30511 "\n"
30512
30513 #. type: textblock
30514 #: ../src/guestfs-actions.pod:4530
30515 msgid ""
30516 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30517 "set the C<cipher> used."
30518 msgstr ""
30519
30520 #. type: =head2
30521 #: ../src/guestfs-actions.pod:4544
30522 msgid "guestfs_luks_kill_slot"
30523 msgstr "guestfs_luks_kill_slot"
30524
30525 #. type: verbatim
30526 #: ../src/guestfs-actions.pod:4546
30527 #, no-wrap
30528 msgid ""
30529 " int\n"
30530 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30531 "                         const char *device,\n"
30532 "                         const char *key,\n"
30533 "                         int keyslot);\n"
30534 "\n"
30535 msgstr ""
30536 " int\n"
30537 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30538 "                         const char *device,\n"
30539 "                         const char *key,\n"
30540 "                         int keyslot);\n"
30541 "\n"
30542
30543 #. type: =head2
30544 #: ../src/guestfs-actions.pod:4564
30545 msgid "guestfs_luks_open"
30546 msgstr "guestfs_luks_open"
30547
30548 #. type: verbatim
30549 #: ../src/guestfs-actions.pod:4566
30550 #, no-wrap
30551 msgid ""
30552 " int\n"
30553 " guestfs_luks_open (guestfs_h *g,\n"
30554 "                    const char *device,\n"
30555 "                    const char *key,\n"
30556 "                    const char *mapname);\n"
30557 "\n"
30558 msgstr ""
30559 " int\n"
30560 " guestfs_luks_open (guestfs_h *g,\n"
30561 "                    const char *device,\n"
30562 "                    const char *key,\n"
30563 "                    const char *mapname);\n"
30564 "\n"
30565
30566 #. type: textblock
30567 #: ../src/guestfs-actions.pod:4584
30568 msgid ""
30569 "If this block device contains LVM volume groups, then calling "
30570 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30571 "visible."
30572 msgstr ""
30573
30574 #. type: textblock
30575 #: ../src/guestfs-actions.pod:4588
30576 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30577 msgstr ""
30578
30579 #. type: =head2
30580 #: ../src/guestfs-actions.pod:4599
30581 msgid "guestfs_luks_open_ro"
30582 msgstr "guestfs_luks_open_ro"
30583
30584 #. type: verbatim
30585 #: ../src/guestfs-actions.pod:4601
30586 #, no-wrap
30587 msgid ""
30588 " int\n"
30589 " guestfs_luks_open_ro (guestfs_h *g,\n"
30590 "                       const char *device,\n"
30591 "                       const char *key,\n"
30592 "                       const char *mapname);\n"
30593 "\n"
30594 msgstr ""
30595 " int\n"
30596 " guestfs_luks_open_ro (guestfs_h *g,\n"
30597 "                       const char *device,\n"
30598 "                       const char *key,\n"
30599 "                       const char *mapname);\n"
30600 "\n"
30601
30602 #. type: textblock
30603 #: ../src/guestfs-actions.pod:4607
30604 msgid ""
30605 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30606 "created."
30607 msgstr ""
30608
30609 #. type: =head2
30610 #: ../src/guestfs-actions.pod:4618
30611 msgid "guestfs_lvcreate"
30612 msgstr "guestfs_lvcreate"
30613
30614 #. type: verbatim
30615 #: ../src/guestfs-actions.pod:4620
30616 #, no-wrap
30617 msgid ""
30618 " int\n"
30619 " guestfs_lvcreate (guestfs_h *g,\n"
30620 "                   const char *logvol,\n"
30621 "                   const char *volgroup,\n"
30622 "                   int mbytes);\n"
30623 "\n"
30624 msgstr ""
30625 " int\n"
30626 " guestfs_lvcreate (guestfs_h *g,\n"
30627 "                   const char *logvol,\n"
30628 "                   const char *volgroup,\n"
30629 "                   int mbytes);\n"
30630 "\n"
30631
30632 #. type: =head2
30633 #: ../src/guestfs-actions.pod:4633
30634 msgid "guestfs_lvm_canonical_lv_name"
30635 msgstr "guestfs_lvm_canonical_lv_name"
30636
30637 #. type: verbatim
30638 #: ../src/guestfs-actions.pod:4635
30639 #, no-wrap
30640 msgid ""
30641 " char *\n"
30642 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30643 "                                const char *lvname);\n"
30644 "\n"
30645 msgstr ""
30646 " char *\n"
30647 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30648 "                                const char *lvname);\n"
30649 "\n"
30650
30651 #. type: textblock
30652 #: ../src/guestfs-actions.pod:4646
30653 msgid "See also C<guestfs_is_lv>."
30654 msgstr ""
30655
30656 #. type: textblock
30657 #: ../src/guestfs-actions.pod:4651
30658 msgid "(Added in 1.5.24)"
30659 msgstr "(Додано у 1.5.24)"
30660
30661 #. type: =head2
30662 #: ../src/guestfs-actions.pod:4653
30663 msgid "guestfs_lvm_clear_filter"
30664 msgstr "guestfs_lvm_clear_filter"
30665
30666 #. type: verbatim
30667 #: ../src/guestfs-actions.pod:4655
30668 #, no-wrap
30669 msgid ""
30670 " int\n"
30671 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30672 "\n"
30673 msgstr ""
30674 " int\n"
30675 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30676 "\n"
30677
30678 #. type: textblock
30679 #: ../src/guestfs-actions.pod:4658
30680 msgid ""
30681 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
30682 "see every block device."
30683 msgstr ""
30684
30685 #. type: =head2
30686 #: ../src/guestfs-actions.pod:4668
30687 msgid "guestfs_lvm_remove_all"
30688 msgstr "guestfs_lvm_remove_all"
30689
30690 #. type: verbatim
30691 #: ../src/guestfs-actions.pod:4670
30692 #, no-wrap
30693 msgid ""
30694 " int\n"
30695 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30696 "\n"
30697 msgstr ""
30698 " int\n"
30699 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30700 "\n"
30701
30702 #. type: =head2
30703 #: ../src/guestfs-actions.pod:4683
30704 msgid "guestfs_lvm_set_filter"
30705 msgstr "guestfs_lvm_set_filter"
30706
30707 #. type: verbatim
30708 #: ../src/guestfs-actions.pod:4685
30709 #, no-wrap
30710 msgid ""
30711 " int\n"
30712 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30713 "                         char *const *devices);\n"
30714 "\n"
30715 msgstr ""
30716 " int\n"
30717 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30718 "                         char *const *devices);\n"
30719 "\n"
30720
30721 #. type: =head2
30722 #: ../src/guestfs-actions.pod:4716
30723 msgid "guestfs_lvremove"
30724 msgstr "guestfs_lvremove"
30725
30726 #. type: verbatim
30727 #: ../src/guestfs-actions.pod:4718
30728 #, no-wrap
30729 msgid ""
30730 " int\n"
30731 " guestfs_lvremove (guestfs_h *g,\n"
30732 "                   const char *device);\n"
30733 "\n"
30734 msgstr ""
30735 " int\n"
30736 " guestfs_lvremove (guestfs_h *g,\n"
30737 "                   const char *device);\n"
30738 "\n"
30739
30740 #. type: textblock
30741 #: ../src/guestfs-actions.pod:4730 ../src/guestfs-actions.pod:6141
30742 #: ../src/guestfs-actions.pod:7991
30743 msgid "(Added in 1.0.13)"
30744 msgstr "(Додано у 1.0.13)"
30745
30746 #. type: =head2
30747 #: ../src/guestfs-actions.pod:4732
30748 msgid "guestfs_lvrename"
30749 msgstr "guestfs_lvrename"
30750
30751 #. type: verbatim
30752 #: ../src/guestfs-actions.pod:4734
30753 #, no-wrap
30754 msgid ""
30755 " int\n"
30756 " guestfs_lvrename (guestfs_h *g,\n"
30757 "                   const char *logvol,\n"
30758 "                   const char *newlogvol);\n"
30759 "\n"
30760 msgstr ""
30761 " int\n"
30762 " guestfs_lvrename (guestfs_h *g,\n"
30763 "                   const char *logvol,\n"
30764 "                   const char *newlogvol);\n"
30765 "\n"
30766
30767 #. type: textblock
30768 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:8004
30769 msgid "(Added in 1.0.83)"
30770 msgstr "(Додано у 1.0.83)"
30771
30772 #. type: =head2
30773 #: ../src/guestfs-actions.pod:4745
30774 msgid "guestfs_lvresize"
30775 msgstr "guestfs_lvresize"
30776
30777 #. type: verbatim
30778 #: ../src/guestfs-actions.pod:4747
30779 #, no-wrap
30780 msgid ""
30781 " int\n"
30782 " guestfs_lvresize (guestfs_h *g,\n"
30783 "                   const char *device,\n"
30784 "                   int mbytes);\n"
30785 "\n"
30786 msgstr ""
30787 " int\n"
30788 " guestfs_lvresize (guestfs_h *g,\n"
30789 "                   const char *device,\n"
30790 "                   int mbytes);\n"
30791 "\n"
30792
30793 #. type: =head2
30794 #: ../src/guestfs-actions.pod:4760
30795 msgid "guestfs_lvresize_free"
30796 msgstr "guestfs_lvresize_free"
30797
30798 #. type: verbatim
30799 #: ../src/guestfs-actions.pod:4762
30800 #, no-wrap
30801 msgid ""
30802 " int\n"
30803 " guestfs_lvresize_free (guestfs_h *g,\n"
30804 "                        const char *lv,\n"
30805 "                        int percent);\n"
30806 "\n"
30807 msgstr ""
30808 " int\n"
30809 " guestfs_lvresize_free (guestfs_h *g,\n"
30810 "                        const char *lv,\n"
30811 "                        int percent);\n"
30812 "\n"
30813
30814 #. type: textblock
30815 #: ../src/guestfs-actions.pod:4775
30816 msgid "(Added in 1.3.3)"
30817 msgstr "(Додано у 1.3.3)"
30818
30819 #. type: =head2
30820 #: ../src/guestfs-actions.pod:4777
30821 msgid "guestfs_lvs"
30822 msgstr "guestfs_lvs"
30823
30824 #. type: verbatim
30825 #: ../src/guestfs-actions.pod:4779
30826 #, no-wrap
30827 msgid ""
30828 " char **\n"
30829 " guestfs_lvs (guestfs_h *g);\n"
30830 "\n"
30831 msgstr ""
30832 " char **\n"
30833 " guestfs_lvs (guestfs_h *g);\n"
30834 "\n"
30835
30836 #. type: textblock
30837 #: ../src/guestfs-actions.pod:4788
30838 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30839 msgstr ""
30840
30841 #. type: =head2
30842 #: ../src/guestfs-actions.pod:4796
30843 msgid "guestfs_lvs_full"
30844 msgstr "guestfs_lvs_full"
30845
30846 #. type: verbatim
30847 #: ../src/guestfs-actions.pod:4798
30848 #, no-wrap
30849 msgid ""
30850 " struct guestfs_lvm_lv_list *\n"
30851 " guestfs_lvs_full (guestfs_h *g);\n"
30852 "\n"
30853 msgstr ""
30854 " struct guestfs_lvm_lv_list *\n"
30855 " guestfs_lvs_full (guestfs_h *g);\n"
30856 "\n"
30857
30858 #. type: textblock
30859 #: ../src/guestfs-actions.pod:4804
30860 msgid ""
30861 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30862 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30863 msgstr ""
30864
30865 #. type: =head2
30866 #: ../src/guestfs-actions.pod:4810
30867 msgid "guestfs_lvuuid"
30868 msgstr "guestfs_lvuuid"
30869
30870 #. type: verbatim
30871 #: ../src/guestfs-actions.pod:4812
30872 #, no-wrap
30873 msgid ""
30874 " char *\n"
30875 " guestfs_lvuuid (guestfs_h *g,\n"
30876 "                 const char *device);\n"
30877 "\n"
30878 msgstr ""
30879 " char *\n"
30880 " guestfs_lvuuid (guestfs_h *g,\n"
30881 "                 const char *device);\n"
30882 "\n"
30883
30884 #. type: =head2
30885 #: ../src/guestfs-actions.pod:4823
30886 msgid "guestfs_lxattrlist"
30887 msgstr "guestfs_lxattrlist"
30888
30889 #. type: verbatim
30890 #: ../src/guestfs-actions.pod:4825
30891 #, no-wrap
30892 msgid ""
30893 " struct guestfs_xattr_list *\n"
30894 " guestfs_lxattrlist (guestfs_h *g,\n"
30895 "                     const char *path,\n"
30896 "                     char *const *names);\n"
30897 "\n"
30898 msgstr ""
30899 " struct guestfs_xattr_list *\n"
30900 " guestfs_lxattrlist (guestfs_h *g,\n"
30901 "                     const char *path,\n"
30902 "                     char *const *names);\n"
30903 "\n"
30904
30905 #. type: textblock
30906 #: ../src/guestfs-actions.pod:4844
30907 msgid ""
30908 "This call is intended for programs that want to efficiently list a directory "
30909 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
30910 "a similarly efficient call for getting standard stats.  Very long directory "
30911 "listings might cause the protocol message size to be exceeded, causing this "
30912 "call to fail.  The caller must split up such requests into smaller groups of "
30913 "names."
30914 msgstr ""
30915
30916 #. type: =head2
30917 #: ../src/guestfs-actions.pod:4858
30918 msgid "guestfs_mkdir"
30919 msgstr "guestfs_mkdir"
30920
30921 #. type: verbatim
30922 #: ../src/guestfs-actions.pod:4860
30923 #, no-wrap
30924 msgid ""
30925 " int\n"
30926 " guestfs_mkdir (guestfs_h *g,\n"
30927 "                const char *path);\n"
30928 "\n"
30929 msgstr ""
30930 " int\n"
30931 " guestfs_mkdir (guestfs_h *g,\n"
30932 "                const char *path);\n"
30933 "\n"
30934
30935 #. type: =head2
30936 #: ../src/guestfs-actions.pod:4870
30937 msgid "guestfs_mkdir_mode"
30938 msgstr "guestfs_mkdir_mode"
30939
30940 #. type: verbatim
30941 #: ../src/guestfs-actions.pod:4872
30942 #, no-wrap
30943 msgid ""
30944 " int\n"
30945 " guestfs_mkdir_mode (guestfs_h *g,\n"
30946 "                     const char *path,\n"
30947 "                     int mode);\n"
30948 "\n"
30949 msgstr ""
30950 " int\n"
30951 " guestfs_mkdir_mode (guestfs_h *g,\n"
30952 "                     const char *path,\n"
30953 "                     int mode);\n"
30954 "\n"
30955
30956 #. type: textblock
30957 #: ../src/guestfs-actions.pod:4884
30958 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30959 msgstr ""
30960
30961 #. type: =head2
30962 #: ../src/guestfs-actions.pod:4890
30963 msgid "guestfs_mkdir_p"
30964 msgstr "guestfs_mkdir_p"
30965
30966 #. type: verbatim
30967 #: ../src/guestfs-actions.pod:4892
30968 #, no-wrap
30969 msgid ""
30970 " int\n"
30971 " guestfs_mkdir_p (guestfs_h *g,\n"
30972 "                  const char *path);\n"
30973 "\n"
30974 msgstr ""
30975 " int\n"
30976 " guestfs_mkdir_p (guestfs_h *g,\n"
30977 "                  const char *path);\n"
30978 "\n"
30979
30980 #. type: =head2
30981 #: ../src/guestfs-actions.pod:4903
30982 msgid "guestfs_mkdtemp"
30983 msgstr "guestfs_mkdtemp"
30984
30985 #. type: verbatim
30986 #: ../src/guestfs-actions.pod:4905
30987 #, no-wrap
30988 msgid ""
30989 " char *\n"
30990 " guestfs_mkdtemp (guestfs_h *g,\n"
30991 "                  const char *template);\n"
30992 "\n"
30993 msgstr ""
30994 " char *\n"
30995 " guestfs_mkdtemp (guestfs_h *g,\n"
30996 "                  const char *template);\n"
30997 "\n"
30998
30999 #. type: =head2
31000 #: ../src/guestfs-actions.pod:4933
31001 msgid "guestfs_mke2fs_J"
31002 msgstr "guestfs_mke2fs_J"
31003
31004 #. type: verbatim
31005 #: ../src/guestfs-actions.pod:4935
31006 #, no-wrap
31007 msgid ""
31008 " int\n"
31009 " guestfs_mke2fs_J (guestfs_h *g,\n"
31010 "                   const char *fstype,\n"
31011 "                   int blocksize,\n"
31012 "                   const char *device,\n"
31013 "                   const char *journal);\n"
31014 "\n"
31015 msgstr ""
31016 " int\n"
31017 " guestfs_mke2fs_J (guestfs_h *g,\n"
31018 "                   const char *fstype,\n"
31019 "                   int blocksize,\n"
31020 "                   const char *device,\n"
31021 "                   const char *journal);\n"
31022 "\n"
31023
31024 #. type: textblock
31025 #: ../src/guestfs-actions.pod:4948
31026 msgid "See also C<guestfs_mke2journal>."
31027 msgstr ""
31028
31029 #. type: textblock
31030 #: ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4970
31031 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5004
31032 #: ../src/guestfs-actions.pod:5018 ../src/guestfs-actions.pod:5032
31033 #: ../src/guestfs-actions.pod:5091 ../src/guestfs-actions.pod:5368
31034 msgid "(Added in 1.0.68)"
31035 msgstr "(Додано у 1.0.68)"
31036
31037 #. type: =head2
31038 #: ../src/guestfs-actions.pod:4954
31039 msgid "guestfs_mke2fs_JL"
31040 msgstr "guestfs_mke2fs_JL"
31041
31042 #. type: verbatim
31043 #: ../src/guestfs-actions.pod:4956
31044 #, no-wrap
31045 msgid ""
31046 " int\n"
31047 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31048 "                    const char *fstype,\n"
31049 "                    int blocksize,\n"
31050 "                    const char *device,\n"
31051 "                    const char *label);\n"
31052 "\n"
31053 msgstr ""
31054 " int\n"
31055 " guestfs_mke2fs_JL (guestfs_h *g,\n"
31056 "                    const char *fstype,\n"
31057 "                    int blocksize,\n"
31058 "                    const char *device,\n"
31059 "                    const char *label);\n"
31060 "\n"
31061
31062 #. type: textblock
31063 #: ../src/guestfs-actions.pod:4966
31064 msgid "See also C<guestfs_mke2journal_L>."
31065 msgstr ""
31066
31067 #. type: =head2
31068 #: ../src/guestfs-actions.pod:4972
31069 msgid "guestfs_mke2fs_JU"
31070 msgstr "guestfs_mke2fs_JU"
31071
31072 #. type: verbatim
31073 #: ../src/guestfs-actions.pod:4974
31074 #, no-wrap
31075 msgid ""
31076 " int\n"
31077 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31078 "                    const char *fstype,\n"
31079 "                    int blocksize,\n"
31080 "                    const char *device,\n"
31081 "                    const char *uuid);\n"
31082 "\n"
31083 msgstr ""
31084 " int\n"
31085 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31086 "                    const char *fstype,\n"
31087 "                    int blocksize,\n"
31088 "                    const char *device,\n"
31089 "                    const char *uuid);\n"
31090 "\n"
31091
31092 #. type: textblock
31093 #: ../src/guestfs-actions.pod:4984
31094 msgid "See also C<guestfs_mke2journal_U>."
31095 msgstr ""
31096
31097 #. type: =head2
31098 #: ../src/guestfs-actions.pod:4990
31099 msgid "guestfs_mke2journal"
31100 msgstr "guestfs_mke2journal"
31101
31102 #. type: verbatim
31103 #: ../src/guestfs-actions.pod:4992
31104 #, no-wrap
31105 msgid ""
31106 " int\n"
31107 " guestfs_mke2journal (guestfs_h *g,\n"
31108 "                      int blocksize,\n"
31109 "                      const char *device);\n"
31110 "\n"
31111 msgstr ""
31112 " int\n"
31113 " guestfs_mke2journal (guestfs_h *g,\n"
31114 "                      int blocksize,\n"
31115 "                      const char *device);\n"
31116 "\n"
31117
31118 #. type: =head2
31119 #: ../src/guestfs-actions.pod:5006
31120 msgid "guestfs_mke2journal_L"
31121 msgstr "guestfs_mke2journal_L"
31122
31123 #. type: verbatim
31124 #: ../src/guestfs-actions.pod:5008
31125 #, no-wrap
31126 msgid ""
31127 " int\n"
31128 " guestfs_mke2journal_L (guestfs_h *g,\n"
31129 "                        int blocksize,\n"
31130 "                        const char *label,\n"
31131 "                        const char *device);\n"
31132 "\n"
31133 msgstr ""
31134 " int\n"
31135 " guestfs_mke2journal_L (guestfs_h *g,\n"
31136 "                        int blocksize,\n"
31137 "                        const char *label,\n"
31138 "                        const char *device);\n"
31139 "\n"
31140
31141 #. type: =head2
31142 #: ../src/guestfs-actions.pod:5020
31143 msgid "guestfs_mke2journal_U"
31144 msgstr "guestfs_mke2journal_U"
31145
31146 #. type: verbatim
31147 #: ../src/guestfs-actions.pod:5022
31148 #, no-wrap
31149 msgid ""
31150 " int\n"
31151 " guestfs_mke2journal_U (guestfs_h *g,\n"
31152 "                        int blocksize,\n"
31153 "                        const char *uuid,\n"
31154 "                        const char *device);\n"
31155 "\n"
31156 msgstr ""
31157 " int\n"
31158 " guestfs_mke2journal_U (guestfs_h *g,\n"
31159 "                        int blocksize,\n"
31160 "                        const char *uuid,\n"
31161 "                        const char *device);\n"
31162 "\n"
31163
31164 #. type: =head2
31165 #: ../src/guestfs-actions.pod:5034
31166 msgid "guestfs_mkfifo"
31167 msgstr "guestfs_mkfifo"
31168
31169 #. type: verbatim
31170 #: ../src/guestfs-actions.pod:5036
31171 #, no-wrap
31172 msgid ""
31173 " int\n"
31174 " guestfs_mkfifo (guestfs_h *g,\n"
31175 "                 int mode,\n"
31176 "                 const char *path);\n"
31177 "\n"
31178 msgstr ""
31179 " int\n"
31180 " guestfs_mkfifo (guestfs_h *g,\n"
31181 "                 int mode,\n"
31182 "                 const char *path);\n"
31183 "\n"
31184
31185 #. type: textblock
31186 #: ../src/guestfs-actions.pod:5041
31187 msgid ""
31188 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
31189 "is just a convenient wrapper around C<guestfs_mknod>."
31190 msgstr ""
31191
31192 #. type: =head2
31193 #: ../src/guestfs-actions.pod:5051
31194 msgid "guestfs_mkfs"
31195 msgstr "guestfs_mkfs"
31196
31197 #. type: verbatim
31198 #: ../src/guestfs-actions.pod:5053
31199 #, no-wrap
31200 msgid ""
31201 " int\n"
31202 " guestfs_mkfs (guestfs_h *g,\n"
31203 "               const char *fstype,\n"
31204 "               const char *device);\n"
31205 "\n"
31206 msgstr ""
31207 " int\n"
31208 " guestfs_mkfs (guestfs_h *g,\n"
31209 "               const char *fstype,\n"
31210 "               const char *device);\n"
31211 "\n"
31212
31213 #. type: =head2
31214 #: ../src/guestfs-actions.pod:5066
31215 msgid "guestfs_mkfs_b"
31216 msgstr "guestfs_mkfs_b"
31217
31218 #. type: verbatim
31219 #: ../src/guestfs-actions.pod:5068
31220 #, no-wrap
31221 msgid ""
31222 " int\n"
31223 " guestfs_mkfs_b (guestfs_h *g,\n"
31224 "                 const char *fstype,\n"
31225 "                 int blocksize,\n"
31226 "                 const char *device);\n"
31227 "\n"
31228 msgstr ""
31229 " int\n"
31230 " guestfs_mkfs_b (guestfs_h *g,\n"
31231 "                 const char *fstype,\n"
31232 "                 int blocksize,\n"
31233 "                 const char *device);\n"
31234 "\n"
31235
31236 #. type: textblock
31237 #: ../src/guestfs-actions.pod:5074
31238 msgid ""
31239 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31240 "call instead."
31241 msgstr ""
31242
31243 #. type: textblock
31244 #: ../src/guestfs-actions.pod:5081
31245 msgid ""
31246 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31247 "block size of the resulting filesystem.  Supported block sizes depend on the "
31248 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31249 msgstr ""
31250
31251 #. type: =head2
31252 #: ../src/guestfs-actions.pod:5093
31253 msgid "guestfs_mkfs_opts"
31254 msgstr "guestfs_mkfs_opts"
31255
31256 #. type: verbatim
31257 #: ../src/guestfs-actions.pod:5095
31258 #, no-wrap
31259 msgid ""
31260 " int\n"
31261 " guestfs_mkfs_opts (guestfs_h *g,\n"
31262 "                    const char *fstype,\n"
31263 "                    const char *device,\n"
31264 "                    ...);\n"
31265 "\n"
31266 msgstr ""
31267 " int\n"
31268 " guestfs_mkfs_opts (guestfs_h *g,\n"
31269 "                    const char *fstype,\n"
31270 "                    const char *device,\n"
31271 "                    ...);\n"
31272 "\n"
31273
31274 #. type: verbatim
31275 #: ../src/guestfs-actions.pod:5106
31276 #, no-wrap
31277 msgid ""
31278 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31279 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31280 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31281 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31282 "\n"
31283 msgstr ""
31284
31285 #. type: textblock
31286 #: ../src/guestfs-actions.pod:5154
31287 msgid "(Added in 1.7.19)"
31288 msgstr "(Додано у 1.7.19)"
31289
31290 #. type: =head2
31291 #: ../src/guestfs-actions.pod:5156
31292 msgid "guestfs_mkfs_opts_va"
31293 msgstr "guestfs_mkfs_opts_va"
31294
31295 #. type: verbatim
31296 #: ../src/guestfs-actions.pod:5158
31297 #, no-wrap
31298 msgid ""
31299 " int\n"
31300 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31301 "                       const char *fstype,\n"
31302 "                       const char *device,\n"
31303 "                       va_list args);\n"
31304 "\n"
31305 msgstr ""
31306 " int\n"
31307 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31308 "                       const char *fstype,\n"
31309 "                       const char *device,\n"
31310 "                       va_list args);\n"
31311 "\n"
31312
31313 #. type: textblock
31314 #: ../src/guestfs-actions.pod:5164
31315 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31316 msgstr ""
31317
31318 #. type: =head2
31319 #: ../src/guestfs-actions.pod:5168
31320 msgid "guestfs_mkfs_opts_argv"
31321 msgstr "guestfs_mkfs_opts_argv"
31322
31323 #. type: verbatim
31324 #: ../src/guestfs-actions.pod:5170
31325 #, no-wrap
31326 msgid ""
31327 " int\n"
31328 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31329 "                         const char *fstype,\n"
31330 "                         const char *device,\n"
31331 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31332 "\n"
31333 msgstr ""
31334 " int\n"
31335 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31336 "                         const char *fstype,\n"
31337 "                         const char *device,\n"
31338 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31339 "\n"
31340
31341 #. type: textblock
31342 #: ../src/guestfs-actions.pod:5176
31343 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31344 msgstr ""
31345
31346 #. type: =head2
31347 #: ../src/guestfs-actions.pod:5180
31348 msgid "guestfs_mkmountpoint"
31349 msgstr "guestfs_mkmountpoint"
31350
31351 #. type: verbatim
31352 #: ../src/guestfs-actions.pod:5182
31353 #, no-wrap
31354 msgid ""
31355 " int\n"
31356 " guestfs_mkmountpoint (guestfs_h *g,\n"
31357 "                       const char *exemptpath);\n"
31358 "\n"
31359 msgstr ""
31360 " int\n"
31361 " guestfs_mkmountpoint (guestfs_h *g,\n"
31362 "                       const char *exemptpath);\n"
31363 "\n"
31364
31365 #. type: textblock
31366 #: ../src/guestfs-actions.pod:5186
31367 msgid ""
31368 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31369 "that can be used to create extra mountpoints before mounting the first "
31370 "filesystem."
31371 msgstr ""
31372
31373 #. type: textblock
31374 #: ../src/guestfs-actions.pod:5210
31375 msgid ""
31376 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
31377 "may get unexpected errors if you try to mix these calls.  It is safest to "
31378 "manually unmount filesystems and remove mountpoints after use."
31379 msgstr ""
31380
31381 #. type: textblock
31382 #: ../src/guestfs-actions.pod:5214
31383 msgid ""
31384 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31385 "first, so for this to work for manual mountpoints, you must ensure that the "
31386 "innermost mountpoints have the longest pathnames, as in the example code "
31387 "above."
31388 msgstr ""
31389
31390 #. type: textblock
31391 #: ../src/guestfs-actions.pod:5221
31392 msgid ""
31393 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31394 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31395 "can also trigger these issues."
31396 msgstr ""
31397
31398 #. type: textblock
31399 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5533
31400 #: ../src/guestfs-actions.pod:6561
31401 msgid "(Added in 1.0.62)"
31402 msgstr "(Додано у 1.0.62)"
31403
31404 #. type: =head2
31405 #: ../src/guestfs-actions.pod:5229
31406 msgid "guestfs_mknod"
31407 msgstr ""
31408
31409 #. type: verbatim
31410 #: ../src/guestfs-actions.pod:5231
31411 #, no-wrap
31412 msgid ""
31413 " int\n"
31414 " guestfs_mknod (guestfs_h *g,\n"
31415 "                int mode,\n"
31416 "                int devmajor,\n"
31417 "                int devminor,\n"
31418 "                const char *path);\n"
31419 "\n"
31420 msgstr ""
31421
31422 #. type: textblock
31423 #: ../src/guestfs-actions.pod:5246
31424 msgid ""
31425 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31426 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31427 "regular file).  These constants are available in the standard Linux header "
31428 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31429 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31430 "the appropriate constant for you."
31431 msgstr ""
31432
31433 #. type: =head2
31434 #: ../src/guestfs-actions.pod:5260
31435 msgid "guestfs_mknod_b"
31436 msgstr ""
31437
31438 #. type: verbatim
31439 #: ../src/guestfs-actions.pod:5262
31440 #, no-wrap
31441 msgid ""
31442 " int\n"
31443 " guestfs_mknod_b (guestfs_h *g,\n"
31444 "                  int mode,\n"
31445 "                  int devmajor,\n"
31446 "                  int devminor,\n"
31447 "                  const char *path);\n"
31448 "\n"
31449 msgstr ""
31450
31451 #. type: textblock
31452 #: ../src/guestfs-actions.pod:5269
31453 msgid ""
31454 "This call creates a block device node called C<path> with mode C<mode> and "
31455 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31456 "wrapper around C<guestfs_mknod>."
31457 msgstr ""
31458
31459 #. type: =head2
31460 #: ../src/guestfs-actions.pod:5279
31461 msgid "guestfs_mknod_c"
31462 msgstr ""
31463
31464 #. type: verbatim
31465 #: ../src/guestfs-actions.pod:5281
31466 #, no-wrap
31467 msgid ""
31468 " int\n"
31469 " guestfs_mknod_c (guestfs_h *g,\n"
31470 "                  int mode,\n"
31471 "                  int devmajor,\n"
31472 "                  int devminor,\n"
31473 "                  const char *path);\n"
31474 "\n"
31475 msgstr ""
31476
31477 #. type: textblock
31478 #: ../src/guestfs-actions.pod:5288
31479 msgid ""
31480 "This call creates a char device node called C<path> with mode C<mode> and "
31481 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31482 "wrapper around C<guestfs_mknod>."
31483 msgstr ""
31484
31485 #. type: =head2
31486 #: ../src/guestfs-actions.pod:5298
31487 msgid "guestfs_mkswap"
31488 msgstr ""
31489
31490 #. type: verbatim
31491 #: ../src/guestfs-actions.pod:5300
31492 #, no-wrap
31493 msgid ""
31494 " int\n"
31495 " guestfs_mkswap (guestfs_h *g,\n"
31496 "                 const char *device);\n"
31497 "\n"
31498 msgstr ""
31499
31500 #. type: =head2
31501 #: ../src/guestfs-actions.pod:5310
31502 msgid "guestfs_mkswap_L"
31503 msgstr ""
31504
31505 #. type: verbatim
31506 #: ../src/guestfs-actions.pod:5312
31507 #, no-wrap
31508 msgid ""
31509 " int\n"
31510 " guestfs_mkswap_L (guestfs_h *g,\n"
31511 "                   const char *label,\n"
31512 "                   const char *device);\n"
31513 "\n"
31514 msgstr ""
31515
31516 #. type: =head2
31517 #: ../src/guestfs-actions.pod:5327
31518 msgid "guestfs_mkswap_U"
31519 msgstr ""
31520
31521 #. type: verbatim
31522 #: ../src/guestfs-actions.pod:5329
31523 #, no-wrap
31524 msgid ""
31525 " int\n"
31526 " guestfs_mkswap_U (guestfs_h *g,\n"
31527 "                   const char *uuid,\n"
31528 "                   const char *device);\n"
31529 "\n"
31530 msgstr ""
31531
31532 #. type: =head2
31533 #: ../src/guestfs-actions.pod:5340
31534 msgid "guestfs_mkswap_file"
31535 msgstr ""
31536
31537 #. type: verbatim
31538 #: ../src/guestfs-actions.pod:5342
31539 #, no-wrap
31540 msgid ""
31541 " int\n"
31542 " guestfs_mkswap_file (guestfs_h *g,\n"
31543 "                      const char *path);\n"
31544 "\n"
31545 msgstr ""
31546
31547 #. type: textblock
31548 #: ../src/guestfs-actions.pod:5348
31549 msgid ""
31550 "This command just writes a swap file signature to an existing file.  To "
31551 "create the file itself, use something like C<guestfs_fallocate>."
31552 msgstr ""
31553
31554 #. type: =head2
31555 #: ../src/guestfs-actions.pod:5355
31556 msgid "guestfs_modprobe"
31557 msgstr ""
31558
31559 #. type: verbatim
31560 #: ../src/guestfs-actions.pod:5357
31561 #, no-wrap
31562 msgid ""
31563 " int\n"
31564 " guestfs_modprobe (guestfs_h *g,\n"
31565 "                   const char *modulename);\n"
31566 "\n"
31567 msgstr ""
31568
31569 #. type: =head2
31570 #: ../src/guestfs-actions.pod:5370
31571 msgid "guestfs_mount"
31572 msgstr ""
31573
31574 #. type: verbatim
31575 #: ../src/guestfs-actions.pod:5372
31576 #, no-wrap
31577 msgid ""
31578 " int\n"
31579 " guestfs_mount (guestfs_h *g,\n"
31580 "                const char *device,\n"
31581 "                const char *mountpoint);\n"
31582 "\n"
31583 msgstr ""
31584
31585 #. type: textblock
31586 #: ../src/guestfs-actions.pod:5391
31587 msgid ""
31588 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31589 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
31590 "problems for users.  If your program might need to work with older versions "
31591 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31592 "for the first parameter if you don't want any options)."
31593 msgstr ""
31594
31595 #. type: =head2
31596 #: ../src/guestfs-actions.pod:5402
31597 msgid "guestfs_mount_9p"
31598 msgstr ""
31599
31600 #. type: verbatim
31601 #: ../src/guestfs-actions.pod:5404
31602 #, no-wrap
31603 msgid ""
31604 " int\n"
31605 " guestfs_mount_9p (guestfs_h *g,\n"
31606 "                   const char *mounttag,\n"
31607 "                   const char *mountpoint,\n"
31608 "                   ...);\n"
31609 "\n"
31610 msgstr ""
31611
31612 #. type: verbatim
31613 #: ../src/guestfs-actions.pod:5415
31614 #, no-wrap
31615 msgid ""
31616 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31617 "\n"
31618 msgstr ""
31619
31620 #. type: =head2
31621 #: ../src/guestfs-actions.pod:5428
31622 msgid "guestfs_mount_9p_va"
31623 msgstr ""
31624
31625 #. type: verbatim
31626 #: ../src/guestfs-actions.pod:5430
31627 #, no-wrap
31628 msgid ""
31629 " int\n"
31630 " guestfs_mount_9p_va (guestfs_h *g,\n"
31631 "                      const char *mounttag,\n"
31632 "                      const char *mountpoint,\n"
31633 "                      va_list args);\n"
31634 "\n"
31635 msgstr ""
31636
31637 #. type: textblock
31638 #: ../src/guestfs-actions.pod:5436
31639 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31640 msgstr ""
31641
31642 #. type: =head2
31643 #: ../src/guestfs-actions.pod:5440
31644 msgid "guestfs_mount_9p_argv"
31645 msgstr ""
31646
31647 #. type: verbatim
31648 #: ../src/guestfs-actions.pod:5442
31649 #, no-wrap
31650 msgid ""
31651 " int\n"
31652 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31653 "                        const char *mounttag,\n"
31654 "                        const char *mountpoint,\n"
31655 "                        const struct guestfs_mount_9p_argv *optargs);\n"
31656 "\n"
31657 msgstr ""
31658
31659 #. type: textblock
31660 #: ../src/guestfs-actions.pod:5448
31661 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31662 msgstr ""
31663
31664 #. type: =head2
31665 #: ../src/guestfs-actions.pod:5452
31666 msgid "guestfs_mount_loop"
31667 msgstr ""
31668
31669 #. type: verbatim
31670 #: ../src/guestfs-actions.pod:5454
31671 #, no-wrap
31672 msgid ""
31673 " int\n"
31674 " guestfs_mount_loop (guestfs_h *g,\n"
31675 "                     const char *file,\n"
31676 "                     const char *mountpoint);\n"
31677 "\n"
31678 msgstr ""
31679
31680 #. type: =head2
31681 #: ../src/guestfs-actions.pod:5467
31682 msgid "guestfs_mount_options"
31683 msgstr ""
31684
31685 #. type: verbatim
31686 #: ../src/guestfs-actions.pod:5469
31687 #, no-wrap
31688 msgid ""
31689 " int\n"
31690 " guestfs_mount_options (guestfs_h *g,\n"
31691 "                        const char *options,\n"
31692 "                        const char *device,\n"
31693 "                        const char *mountpoint);\n"
31694 "\n"
31695 msgstr ""
31696
31697 #. type: textblock
31698 #: ../src/guestfs-actions.pod:5475
31699 msgid ""
31700 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31701 "the mount options as for the L<mount(8)> I<-o> flag."
31702 msgstr ""
31703
31704 #. type: textblock
31705 #: ../src/guestfs-actions.pod:5485 ../src/guestfs-actions.pod:5499
31706 #: ../src/guestfs-actions.pod:5516
31707 msgid "(Added in 1.0.10)"
31708 msgstr "(Додано у 1.0.10)"
31709
31710 #. type: =head2
31711 #: ../src/guestfs-actions.pod:5487
31712 msgid "guestfs_mount_ro"
31713 msgstr ""
31714
31715 #. type: verbatim
31716 #: ../src/guestfs-actions.pod:5489
31717 #, no-wrap
31718 msgid ""
31719 " int\n"
31720 " guestfs_mount_ro (guestfs_h *g,\n"
31721 "                   const char *device,\n"
31722 "                   const char *mountpoint);\n"
31723 "\n"
31724 msgstr ""
31725
31726 #. type: textblock
31727 #: ../src/guestfs-actions.pod:5494
31728 msgid ""
31729 "This is the same as the C<guestfs_mount> command, but it mounts the "
31730 "filesystem with the read-only (I<-o ro>) flag."
31731 msgstr ""
31732
31733 #. type: =head2
31734 #: ../src/guestfs-actions.pod:5501
31735 msgid "guestfs_mount_vfs"
31736 msgstr ""
31737
31738 #. type: verbatim
31739 #: ../src/guestfs-actions.pod:5503
31740 #, no-wrap
31741 msgid ""
31742 " int\n"
31743 " guestfs_mount_vfs (guestfs_h *g,\n"
31744 "                    const char *options,\n"
31745 "                    const char *vfstype,\n"
31746 "                    const char *device,\n"
31747 "                    const char *mountpoint);\n"
31748 "\n"
31749 msgstr ""
31750
31751 #. type: textblock
31752 #: ../src/guestfs-actions.pod:5510
31753 msgid ""
31754 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31755 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
31756 "t> flags."
31757 msgstr ""
31758
31759 #. type: =head2
31760 #: ../src/guestfs-actions.pod:5518
31761 msgid "guestfs_mountpoints"
31762 msgstr ""
31763
31764 #. type: verbatim
31765 #: ../src/guestfs-actions.pod:5520
31766 #, no-wrap
31767 msgid ""
31768 " char **\n"
31769 " guestfs_mountpoints (guestfs_h *g);\n"
31770 "\n"
31771 msgstr ""
31772
31773 #. type: textblock
31774 #: ../src/guestfs-actions.pod:5523
31775 msgid ""
31776 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
31777 "devices.  This one returns a hash table (map) of device name to directory "
31778 "where the device is mounted."
31779 msgstr ""
31780
31781 #. type: =head2
31782 #: ../src/guestfs-actions.pod:5535
31783 msgid "guestfs_mounts"
31784 msgstr ""
31785
31786 #. type: verbatim
31787 #: ../src/guestfs-actions.pod:5537
31788 #, no-wrap
31789 msgid ""
31790 " char **\n"
31791 " guestfs_mounts (guestfs_h *g);\n"
31792 "\n"
31793 msgstr ""
31794
31795 #. type: textblock
31796 #: ../src/guestfs-actions.pod:5545
31797 msgid "See also: C<guestfs_mountpoints>"
31798 msgstr ""
31799
31800 #. type: =head2
31801 #: ../src/guestfs-actions.pod:5553
31802 msgid "guestfs_mv"
31803 msgstr ""
31804
31805 #. type: verbatim
31806 #: ../src/guestfs-actions.pod:5555
31807 #, no-wrap
31808 msgid ""
31809 " int\n"
31810 " guestfs_mv (guestfs_h *g,\n"
31811 "             const char *src,\n"
31812 "             const char *dest);\n"
31813 "\n"
31814 msgstr ""
31815
31816 #. type: =head2
31817 #: ../src/guestfs-actions.pod:5567
31818 msgid "guestfs_ntfs_3g_probe"
31819 msgstr ""
31820
31821 #. type: verbatim
31822 #: ../src/guestfs-actions.pod:5569
31823 #, no-wrap
31824 msgid ""
31825 " int\n"
31826 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31827 "                        int rw,\n"
31828 "                        const char *device);\n"
31829 "\n"
31830 msgstr ""
31831
31832 #. type: textblock
31833 #: ../src/guestfs-actions.pod:5588
31834 msgid "(Added in 1.0.43)"
31835 msgstr "(Додано у 1.0.43)"
31836
31837 #. type: =head2
31838 #: ../src/guestfs-actions.pod:5590
31839 msgid "guestfs_ntfsresize"
31840 msgstr ""
31841
31842 #. type: verbatim
31843 #: ../src/guestfs-actions.pod:5592
31844 #, no-wrap
31845 msgid ""
31846 " int\n"
31847 " guestfs_ntfsresize (guestfs_h *g,\n"
31848 "                     const char *device);\n"
31849 "\n"
31850 msgstr ""
31851
31852 #. type: textblock
31853 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5696
31854 msgid ""
31855 "I<This function is deprecated.> In new code, use the L</"
31856 "guestfs_ntfsresize_opts> call instead."
31857 msgstr ""
31858
31859 #. type: =head2
31860 #: ../src/guestfs-actions.pod:5620
31861 msgid "guestfs_ntfsresize_opts"
31862 msgstr ""
31863
31864 #. type: verbatim
31865 #: ../src/guestfs-actions.pod:5622
31866 #, no-wrap
31867 msgid ""
31868 " int\n"
31869 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31870 "                          const char *device,\n"
31871 "                          ...);\n"
31872 "\n"
31873 msgstr ""
31874
31875 #. type: verbatim
31876 #: ../src/guestfs-actions.pod:5632
31877 #, no-wrap
31878 msgid ""
31879 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31880 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31881 "\n"
31882 msgstr ""
31883
31884 #. type: textblock
31885 #: ../src/guestfs-actions.pod:5652
31886 msgid ""
31887 "After the resize operation, the filesystem is always marked as requiring a "
31888 "consistency check (for safety).  You have to boot into Windows to perform "
31889 "this check and clear this condition.  If you I<don't> set the C<force> "
31890 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31891 "times on a single filesystem without booting into Windows between each "
31892 "resize."
31893 msgstr ""
31894
31895 #. type: =head2
31896 #: ../src/guestfs-actions.pod:5667
31897 msgid "guestfs_ntfsresize_opts_va"
31898 msgstr ""
31899
31900 #. type: verbatim
31901 #: ../src/guestfs-actions.pod:5669
31902 #, no-wrap
31903 msgid ""
31904 " int\n"
31905 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31906 "                             const char *device,\n"
31907 "                             va_list args);\n"
31908 "\n"
31909 msgstr ""
31910
31911 #. type: textblock
31912 #: ../src/guestfs-actions.pod:5674
31913 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31914 msgstr ""
31915
31916 #. type: =head2
31917 #: ../src/guestfs-actions.pod:5678
31918 msgid "guestfs_ntfsresize_opts_argv"
31919 msgstr ""
31920
31921 #. type: verbatim
31922 #: ../src/guestfs-actions.pod:5680
31923 #, no-wrap
31924 msgid ""
31925 " int\n"
31926 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31927 "                               const char *device,\n"
31928 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31929 "\n"
31930 msgstr ""
31931
31932 #. type: textblock
31933 #: ../src/guestfs-actions.pod:5685
31934 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31935 msgstr ""
31936
31937 #. type: =head2
31938 #: ../src/guestfs-actions.pod:5689
31939 msgid "guestfs_ntfsresize_size"
31940 msgstr ""
31941
31942 #. type: verbatim
31943 #: ../src/guestfs-actions.pod:5691
31944 #, no-wrap
31945 msgid ""
31946 " int\n"
31947 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31948 "                          const char *device,\n"
31949 "                          int64_t size);\n"
31950 "\n"
31951 msgstr ""
31952
31953 #. type: textblock
31954 #: ../src/guestfs-actions.pod:5703
31955 msgid ""
31956 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31957 "to specify the new size (in bytes) explicitly."
31958 msgstr ""
31959
31960 #. type: textblock
31961 #: ../src/guestfs-actions.pod:5708 ../src/guestfs-actions.pod:6168
31962 #: ../src/guestfs-actions.pod:6241 ../src/guestfs-actions.pod:6509
31963 #: ../src/guestfs-actions.pod:8148
31964 msgid "(Added in 1.3.14)"
31965 msgstr "(Додано у 1.3.14)"
31966
31967 #. type: =head2
31968 #: ../src/guestfs-actions.pod:5710
31969 msgid "guestfs_part_add"
31970 msgstr ""
31971
31972 #. type: verbatim
31973 #: ../src/guestfs-actions.pod:5712
31974 #, no-wrap
31975 msgid ""
31976 " int\n"
31977 " guestfs_part_add (guestfs_h *g,\n"
31978 "                   const char *device,\n"
31979 "                   const char *prlogex,\n"
31980 "                   int64_t startsect,\n"
31981 "                   int64_t endsect);\n"
31982 "\n"
31983 msgstr ""
31984
31985 #. type: textblock
31986 #: ../src/guestfs-actions.pod:5719
31987 msgid ""
31988 "This command adds a partition to C<device>.  If there is no partition table "
31989 "on the device, call C<guestfs_part_init> first."
31990 msgstr ""
31991
31992 #. type: textblock
31993 #: ../src/guestfs-actions.pod:5731
31994 msgid ""
31995 "Creating a partition which covers the whole disk is not so easy.  Use "
31996 "C<guestfs_part_disk> to do that."
31997 msgstr ""
31998
31999 #. type: textblock
32000 #: ../src/guestfs-actions.pod:5736 ../src/guestfs-actions.pod:5774
32001 #: ../src/guestfs-actions.pod:5827 ../src/guestfs-actions.pod:5911
32002 #: ../src/guestfs-actions.pod:5949 ../src/guestfs-actions.pod:5968
32003 #: ../src/guestfs-actions.pod:6008
32004 msgid "(Added in 1.0.78)"
32005 msgstr "(Додано у 1.0.78)"
32006
32007 #. type: =head2
32008 #: ../src/guestfs-actions.pod:5738
32009 msgid "guestfs_part_del"
32010 msgstr ""
32011
32012 #. type: verbatim
32013 #: ../src/guestfs-actions.pod:5740
32014 #, no-wrap
32015 msgid ""
32016 " int\n"
32017 " guestfs_part_del (guestfs_h *g,\n"
32018 "                   const char *device,\n"
32019 "                   int partnum);\n"
32020 "\n"
32021 msgstr ""
32022
32023 #. type: =head2
32024 #: ../src/guestfs-actions.pod:5755
32025 msgid "guestfs_part_disk"
32026 msgstr ""
32027
32028 #. type: verbatim
32029 #: ../src/guestfs-actions.pod:5757
32030 #, no-wrap
32031 msgid ""
32032 " int\n"
32033 " guestfs_part_disk (guestfs_h *g,\n"
32034 "                    const char *device,\n"
32035 "                    const char *parttype);\n"
32036 "\n"
32037 msgstr ""
32038
32039 #. type: textblock
32040 #: ../src/guestfs-actions.pod:5762
32041 msgid ""
32042 "This command is simply a combination of C<guestfs_part_init> followed by "
32043 "C<guestfs_part_add> to create a single primary partition covering the whole "
32044 "disk."
32045 msgstr ""
32046
32047 #. type: textblock
32048 #: ../src/guestfs-actions.pod:5766
32049 msgid ""
32050 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
32051 "possible values are described in C<guestfs_part_init>."
32052 msgstr ""
32053
32054 #. type: =head2
32055 #: ../src/guestfs-actions.pod:5776
32056 msgid "guestfs_part_get_bootable"
32057 msgstr ""
32058
32059 #. type: verbatim
32060 #: ../src/guestfs-actions.pod:5778
32061 #, no-wrap
32062 msgid ""
32063 " int\n"
32064 " guestfs_part_get_bootable (guestfs_h *g,\n"
32065 "                            const char *device,\n"
32066 "                            int partnum);\n"
32067 "\n"
32068 msgstr ""
32069
32070 #. type: textblock
32071 #: ../src/guestfs-actions.pod:5786
32072 msgid "See also C<guestfs_part_set_bootable>."
32073 msgstr ""
32074
32075 #. type: =head2
32076 #: ../src/guestfs-actions.pod:5792
32077 msgid "guestfs_part_get_mbr_id"
32078 msgstr ""
32079
32080 #. type: verbatim
32081 #: ../src/guestfs-actions.pod:5794
32082 #, no-wrap
32083 msgid ""
32084 " int\n"
32085 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
32086 "                          const char *device,\n"
32087 "                          int partnum);\n"
32088 "\n"
32089 msgstr ""
32090
32091 #. type: textblock
32092 #: ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5984
32093 msgid ""
32094 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
32095 "undefined results for other partition table types (see "
32096 "C<guestfs_part_get_parttype>)."
32097 msgstr ""
32098
32099 #. type: =head2
32100 #: ../src/guestfs-actions.pod:5810
32101 msgid "guestfs_part_get_parttype"
32102 msgstr ""
32103
32104 #. type: verbatim
32105 #: ../src/guestfs-actions.pod:5812
32106 #, no-wrap
32107 msgid ""
32108 " char *\n"
32109 " guestfs_part_get_parttype (guestfs_h *g,\n"
32110 "                            const char *device);\n"
32111 "\n"
32112 msgstr ""
32113
32114 #. type: textblock
32115 #: ../src/guestfs-actions.pod:5819
32116 msgid ""
32117 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
32118 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
32119 "possible, although unusual.  See C<guestfs_part_init> for a full list."
32120 msgstr ""
32121
32122 #. type: =head2
32123 #: ../src/guestfs-actions.pod:5829
32124 msgid "guestfs_part_init"
32125 msgstr ""
32126
32127 #. type: verbatim
32128 #: ../src/guestfs-actions.pod:5831
32129 #, no-wrap
32130 msgid ""
32131 " int\n"
32132 " guestfs_part_init (guestfs_h *g,\n"
32133 "                    const char *device,\n"
32134 "                    const char *parttype);\n"
32135 "\n"
32136 msgstr ""
32137
32138 #. type: textblock
32139 #: ../src/guestfs-actions.pod:5840
32140 msgid ""
32141 "Initially there are no partitions.  Following this, you should call "
32142 "C<guestfs_part_add> for each partition required."
32143 msgstr ""
32144
32145 #. type: =head2
32146 #: ../src/guestfs-actions.pod:5913
32147 msgid "guestfs_part_list"
32148 msgstr "guestfs_part_list"
32149
32150 #. type: verbatim
32151 #: ../src/guestfs-actions.pod:5915
32152 #, no-wrap
32153 msgid ""
32154 " struct guestfs_partition_list *\n"
32155 " guestfs_part_list (guestfs_h *g,\n"
32156 "                    const char *device);\n"
32157 "\n"
32158 msgstr ""
32159 " struct guestfs_partition_list *\n"
32160 " guestfs_part_list (guestfs_h *g,\n"
32161 "                    const char *device);\n"
32162 "\n"
32163
32164 #. type: textblock
32165 #: ../src/guestfs-actions.pod:5932
32166 msgid ""
32167 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
32168 "the device's sector size, see C<guestfs_blockdev_getss>."
32169 msgstr ""
32170
32171 #. type: textblock
32172 #: ../src/guestfs-actions.pod:5945
32173 msgid ""
32174 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32175 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
32176 "use>."
32177 msgstr ""
32178
32179 #. type: =head2
32180 #: ../src/guestfs-actions.pod:5951
32181 msgid "guestfs_part_set_bootable"
32182 msgstr ""
32183
32184 #. type: verbatim
32185 #: ../src/guestfs-actions.pod:5953
32186 #, no-wrap
32187 msgid ""
32188 " int\n"
32189 " guestfs_part_set_bootable (guestfs_h *g,\n"
32190 "                            const char *device,\n"
32191 "                            int partnum,\n"
32192 "                            int bootable);\n"
32193 "\n"
32194 msgstr ""
32195
32196 #. type: =head2
32197 #: ../src/guestfs-actions.pod:5970
32198 msgid "guestfs_part_set_mbr_id"
32199 msgstr ""
32200
32201 #. type: verbatim
32202 #: ../src/guestfs-actions.pod:5972
32203 #, no-wrap
32204 msgid ""
32205 " int\n"
32206 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32207 "                          const char *device,\n"
32208 "                          int partnum,\n"
32209 "                          int idbyte);\n"
32210 "\n"
32211 msgstr ""
32212
32213 #. type: =head2
32214 #: ../src/guestfs-actions.pod:5992
32215 msgid "guestfs_part_set_name"
32216 msgstr ""
32217
32218 #. type: verbatim
32219 #: ../src/guestfs-actions.pod:5994
32220 #, no-wrap
32221 msgid ""
32222 " int\n"
32223 " guestfs_part_set_name (guestfs_h *g,\n"
32224 "                        const char *device,\n"
32225 "                        int partnum,\n"
32226 "                        const char *name);\n"
32227 "\n"
32228 msgstr ""
32229
32230 #. type: =head2
32231 #: ../src/guestfs-actions.pod:6010
32232 msgid "guestfs_part_to_dev"
32233 msgstr ""
32234
32235 #. type: verbatim
32236 #: ../src/guestfs-actions.pod:6012
32237 #, no-wrap
32238 msgid ""
32239 " char *\n"
32240 " guestfs_part_to_dev (guestfs_h *g,\n"
32241 "                      const char *partition);\n"
32242 "\n"
32243 msgstr ""
32244
32245 #. type: textblock
32246 #: ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6039
32247 msgid ""
32248 "The named partition must exist, for example as a string returned from "
32249 "C<guestfs_list_partitions>."
32250 msgstr ""
32251
32252 #. type: textblock
32253 #: ../src/guestfs-actions.pod:6023
32254 msgid "See also C<guestfs_part_to_partnum>."
32255 msgstr ""
32256
32257 #. type: =head2
32258 #: ../src/guestfs-actions.pod:6030
32259 #, fuzzy
32260 #| msgid "guestfs_part_list"
32261 msgid "guestfs_part_to_partnum"
32262 msgstr "guestfs_part_list"
32263
32264 #. type: verbatim
32265 #: ../src/guestfs-actions.pod:6032
32266 #, fuzzy, no-wrap
32267 #| msgid ""
32268 #| " int\n"
32269 #| " guestfs_mkdir_p (guestfs_h *g,\n"
32270 #| "                  const char *path);\n"
32271 #| "\n"
32272 msgid ""
32273 " int\n"
32274 " guestfs_part_to_partnum (guestfs_h *g,\n"
32275 "                          const char *partition);\n"
32276 "\n"
32277 msgstr ""
32278 " int\n"
32279 " guestfs_mkdir_p (guestfs_h *g,\n"
32280 "                  const char *path);\n"
32281 "\n"
32282
32283 #. type: textblock
32284 #: ../src/guestfs-actions.pod:6042
32285 #, fuzzy
32286 #| msgid "See also L</stat>."
32287 msgid "See also C<guestfs_part_to_dev>."
32288 msgstr "Див. також L</stat>."
32289
32290 #. type: =head2
32291 #: ../src/guestfs-actions.pod:6046
32292 msgid "guestfs_ping_daemon"
32293 msgstr ""
32294
32295 #. type: verbatim
32296 #: ../src/guestfs-actions.pod:6048
32297 #, no-wrap
32298 msgid ""
32299 " int\n"
32300 " guestfs_ping_daemon (guestfs_h *g);\n"
32301 "\n"
32302 msgstr ""
32303
32304 #. type: =head2
32305 #: ../src/guestfs-actions.pod:6060
32306 msgid "guestfs_pread"
32307 msgstr ""
32308
32309 #. type: verbatim
32310 #: ../src/guestfs-actions.pod:6062
32311 #, no-wrap
32312 msgid ""
32313 " char *\n"
32314 " guestfs_pread (guestfs_h *g,\n"
32315 "                const char *path,\n"
32316 "                int count,\n"
32317 "                int64_t offset,\n"
32318 "                size_t *size_r);\n"
32319 "\n"
32320 msgstr ""
32321
32322 #. type: textblock
32323 #: ../src/guestfs-actions.pod:6075
32324 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32325 msgstr ""
32326
32327 #. type: =head2
32328 #: ../src/guestfs-actions.pod:6086
32329 msgid "guestfs_pread_device"
32330 msgstr ""
32331
32332 #. type: verbatim
32333 #: ../src/guestfs-actions.pod:6088
32334 #, no-wrap
32335 msgid ""
32336 " char *\n"
32337 " guestfs_pread_device (guestfs_h *g,\n"
32338 "                       const char *device,\n"
32339 "                       int count,\n"
32340 "                       int64_t offset,\n"
32341 "                       size_t *size_r);\n"
32342 "\n"
32343 msgstr ""
32344
32345 #. type: textblock
32346 #: ../src/guestfs-actions.pod:6101
32347 msgid "See also C<guestfs_pread>."
32348 msgstr ""
32349
32350 #. type: textblock
32351 #: ../src/guestfs-actions.pod:6110
32352 msgid "(Added in 1.5.21)"
32353 msgstr "(Додано у 1.5.21)"
32354
32355 #. type: =head2
32356 #: ../src/guestfs-actions.pod:6112
32357 msgid "guestfs_pvcreate"
32358 msgstr ""
32359
32360 #. type: verbatim
32361 #: ../src/guestfs-actions.pod:6114
32362 #, no-wrap
32363 msgid ""
32364 " int\n"
32365 " guestfs_pvcreate (guestfs_h *g,\n"
32366 "                   const char *device);\n"
32367 "\n"
32368 msgstr ""
32369
32370 #. type: =head2
32371 #: ../src/guestfs-actions.pod:6126
32372 msgid "guestfs_pvremove"
32373 msgstr ""
32374
32375 #. type: verbatim
32376 #: ../src/guestfs-actions.pod:6128
32377 #, no-wrap
32378 msgid ""
32379 " int\n"
32380 " guestfs_pvremove (guestfs_h *g,\n"
32381 "                   const char *device);\n"
32382 "\n"
32383 msgstr ""
32384
32385 #. type: =head2
32386 #: ../src/guestfs-actions.pod:6143
32387 msgid "guestfs_pvresize"
32388 msgstr ""
32389
32390 #. type: verbatim
32391 #: ../src/guestfs-actions.pod:6145
32392 #, no-wrap
32393 msgid ""
32394 " int\n"
32395 " guestfs_pvresize (guestfs_h *g,\n"
32396 "                   const char *device);\n"
32397 "\n"
32398 msgstr ""
32399
32400 #. type: =head2
32401 #: ../src/guestfs-actions.pod:6156
32402 msgid "guestfs_pvresize_size"
32403 msgstr ""
32404
32405 #. type: verbatim
32406 #: ../src/guestfs-actions.pod:6158
32407 #, no-wrap
32408 msgid ""
32409 " int\n"
32410 " guestfs_pvresize_size (guestfs_h *g,\n"
32411 "                        const char *device,\n"
32412 "                        int64_t size);\n"
32413 "\n"
32414 msgstr ""
32415
32416 #. type: textblock
32417 #: ../src/guestfs-actions.pod:6163
32418 msgid ""
32419 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32420 "specify the new size (in bytes) explicitly."
32421 msgstr ""
32422
32423 #. type: =head2
32424 #: ../src/guestfs-actions.pod:6170
32425 msgid "guestfs_pvs"
32426 msgstr ""
32427
32428 #. type: verbatim
32429 #: ../src/guestfs-actions.pod:6172
32430 #, no-wrap
32431 msgid ""
32432 " char **\n"
32433 " guestfs_pvs (guestfs_h *g);\n"
32434 "\n"
32435 msgstr ""
32436
32437 #. type: textblock
32438 #: ../src/guestfs-actions.pod:6181
32439 msgid "See also C<guestfs_pvs_full>."
32440 msgstr ""
32441
32442 #. type: =head2
32443 #: ../src/guestfs-actions.pod:6189
32444 msgid "guestfs_pvs_full"
32445 msgstr ""
32446
32447 #. type: verbatim
32448 #: ../src/guestfs-actions.pod:6191
32449 #, no-wrap
32450 msgid ""
32451 " struct guestfs_lvm_pv_list *\n"
32452 " guestfs_pvs_full (guestfs_h *g);\n"
32453 "\n"
32454 msgstr ""
32455
32456 #. type: textblock
32457 #: ../src/guestfs-actions.pod:6197
32458 msgid ""
32459 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32460 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32461 msgstr ""
32462
32463 #. type: =head2
32464 #: ../src/guestfs-actions.pod:6203
32465 msgid "guestfs_pvuuid"
32466 msgstr ""
32467
32468 #. type: verbatim
32469 #: ../src/guestfs-actions.pod:6205
32470 #, no-wrap
32471 msgid ""
32472 " char *\n"
32473 " guestfs_pvuuid (guestfs_h *g,\n"
32474 "                 const char *device);\n"
32475 "\n"
32476 msgstr ""
32477
32478 #. type: =head2
32479 #: ../src/guestfs-actions.pod:6216
32480 msgid "guestfs_pwrite"
32481 msgstr ""
32482
32483 #. type: verbatim
32484 #: ../src/guestfs-actions.pod:6218
32485 #, no-wrap
32486 msgid ""
32487 " int\n"
32488 " guestfs_pwrite (guestfs_h *g,\n"
32489 "                 const char *path,\n"
32490 "                 const char *content,\n"
32491 "                 size_t content_size,\n"
32492 "                 int64_t offset);\n"
32493 "\n"
32494 msgstr ""
32495
32496 #. type: textblock
32497 #: ../src/guestfs-actions.pod:6234
32498 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32499 msgstr ""
32500
32501 #. type: =head2
32502 #: ../src/guestfs-actions.pod:6243
32503 msgid "guestfs_pwrite_device"
32504 msgstr ""
32505
32506 #. type: verbatim
32507 #: ../src/guestfs-actions.pod:6245
32508 #, no-wrap
32509 msgid ""
32510 " int\n"
32511 " guestfs_pwrite_device (guestfs_h *g,\n"
32512 "                        const char *device,\n"
32513 "                        const char *content,\n"
32514 "                        size_t content_size,\n"
32515 "                        int64_t offset);\n"
32516 "\n"
32517 msgstr ""
32518
32519 #. type: textblock
32520 #: ../src/guestfs-actions.pod:6260
32521 msgid "See also C<guestfs_pwrite>."
32522 msgstr ""
32523
32524 #. type: textblock
32525 #: ../src/guestfs-actions.pod:6267
32526 msgid "(Added in 1.5.20)"
32527 msgstr "(Додано у 1.5.20)"
32528
32529 #. type: =head2
32530 #: ../src/guestfs-actions.pod:6269
32531 msgid "guestfs_read_file"
32532 msgstr ""
32533
32534 #. type: verbatim
32535 #: ../src/guestfs-actions.pod:6271
32536 #, no-wrap
32537 msgid ""
32538 " char *\n"
32539 " guestfs_read_file (guestfs_h *g,\n"
32540 "                    const char *path,\n"
32541 "                    size_t *size_r);\n"
32542 "\n"
32543 msgstr ""
32544
32545 #. type: textblock
32546 #: ../src/guestfs-actions.pod:6279
32547 msgid ""
32548 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
32549 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
32550 "function is limited in the total size of file that can be handled."
32551 msgstr ""
32552
32553 #. type: textblock
32554 #: ../src/guestfs-actions.pod:6291
32555 msgid "(Added in 1.0.63)"
32556 msgstr "(Додано у 1.0.63)"
32557
32558 #. type: =head2
32559 #: ../src/guestfs-actions.pod:6293
32560 msgid "guestfs_read_lines"
32561 msgstr ""
32562
32563 #. type: verbatim
32564 #: ../src/guestfs-actions.pod:6295
32565 #, no-wrap
32566 msgid ""
32567 " char **\n"
32568 " guestfs_read_lines (guestfs_h *g,\n"
32569 "                     const char *path);\n"
32570 "\n"
32571 msgstr ""
32572
32573 #. type: textblock
32574 #: ../src/guestfs-actions.pod:6304
32575 msgid ""
32576 "Note that this function cannot correctly handle binary files (specifically, "
32577 "files containing C<\\0> character which is treated as end of line).  For "
32578 "those you need to use the C<guestfs_read_file> function which has a more "
32579 "complex interface."
32580 msgstr ""
32581
32582 #. type: =head2
32583 #: ../src/guestfs-actions.pod:6315
32584 msgid "guestfs_readdir"
32585 msgstr ""
32586
32587 #. type: verbatim
32588 #: ../src/guestfs-actions.pod:6317
32589 #, no-wrap
32590 msgid ""
32591 " struct guestfs_dirent_list *\n"
32592 " guestfs_readdir (guestfs_h *g,\n"
32593 "                  const char *dir);\n"
32594 "\n"
32595 msgstr ""
32596
32597 #. type: textblock
32598 #: ../src/guestfs-actions.pod:6371
32599 msgid ""
32600 "This function is primarily intended for use by programs.  To get a simple "
32601 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
32602 "consumption, use C<guestfs_ll>."
32603 msgstr ""
32604
32605 #. type: textblock
32606 #: ../src/guestfs-actions.pod:6375
32607 msgid ""
32608 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32609 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
32610 msgstr ""
32611
32612 #. type: =head2
32613 #: ../src/guestfs-actions.pod:6381
32614 msgid "guestfs_readlink"
32615 msgstr ""
32616
32617 #. type: verbatim
32618 #: ../src/guestfs-actions.pod:6383
32619 #, no-wrap
32620 msgid ""
32621 " char *\n"
32622 " guestfs_readlink (guestfs_h *g,\n"
32623 "                   const char *path);\n"
32624 "\n"
32625 msgstr ""
32626
32627 #. type: =head2
32628 #: ../src/guestfs-actions.pod:6394
32629 msgid "guestfs_readlinklist"
32630 msgstr ""
32631
32632 #. type: verbatim
32633 #: ../src/guestfs-actions.pod:6396
32634 #, no-wrap
32635 msgid ""
32636 " char **\n"
32637 " guestfs_readlinklist (guestfs_h *g,\n"
32638 "                       const char *path,\n"
32639 "                       char *const *names);\n"
32640 "\n"
32641 msgstr ""
32642
32643 #. type: =head2
32644 #: ../src/guestfs-actions.pod:6429
32645 msgid "guestfs_realpath"
32646 msgstr ""
32647
32648 #. type: verbatim
32649 #: ../src/guestfs-actions.pod:6431
32650 #, no-wrap
32651 msgid ""
32652 " char *\n"
32653 " guestfs_realpath (guestfs_h *g,\n"
32654 "                   const char *path);\n"
32655 "\n"
32656 msgstr ""
32657
32658 #. type: =head2
32659 #: ../src/guestfs-actions.pod:6443
32660 msgid "guestfs_removexattr"
32661 msgstr ""
32662
32663 #. type: verbatim
32664 #: ../src/guestfs-actions.pod:6445
32665 #, no-wrap
32666 msgid ""
32667 " int\n"
32668 " guestfs_removexattr (guestfs_h *g,\n"
32669 "                      const char *xattr,\n"
32670 "                      const char *path);\n"
32671 "\n"
32672 msgstr ""
32673
32674 #. type: textblock
32675 #: ../src/guestfs-actions.pod:6453
32676 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32677 msgstr ""
32678
32679 #. type: =head2
32680 #: ../src/guestfs-actions.pod:6459
32681 msgid "guestfs_resize2fs"
32682 msgstr ""
32683
32684 #. type: verbatim
32685 #: ../src/guestfs-actions.pod:6461
32686 #, no-wrap
32687 msgid ""
32688 " int\n"
32689 " guestfs_resize2fs (guestfs_h *g,\n"
32690 "                    const char *device);\n"
32691 "\n"
32692 msgstr ""
32693
32694 #. type: textblock
32695 #: ../src/guestfs-actions.pod:6468
32696 msgid ""
32697 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32698 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
32699 "sometimes gives an error about this and sometimes not.  In any case, it is "
32700 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32701 msgstr ""
32702
32703 #. type: =head2
32704 #: ../src/guestfs-actions.pod:6478
32705 msgid "guestfs_resize2fs_M"
32706 msgstr ""
32707
32708 #. type: verbatim
32709 #: ../src/guestfs-actions.pod:6480
32710 #, no-wrap
32711 msgid ""
32712 " int\n"
32713 " guestfs_resize2fs_M (guestfs_h *g,\n"
32714 "                      const char *device);\n"
32715 "\n"
32716 msgstr ""
32717
32718 #. type: textblock
32719 #: ../src/guestfs-actions.pod:6484
32720 msgid ""
32721 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32722 "resized to its minimum size.  This works like the I<-M> option to the "
32723 "C<resize2fs> command."
32724 msgstr ""
32725
32726 #. type: textblock
32727 #: ../src/guestfs-actions.pod:6488
32728 msgid ""
32729 "To get the resulting size of the filesystem you should call "
32730 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
32731 "These two numbers, multiplied together, give the resulting size of the "
32732 "minimal filesystem in bytes."
32733 msgstr ""
32734
32735 #. type: =head2
32736 #: ../src/guestfs-actions.pod:6497
32737 msgid "guestfs_resize2fs_size"
32738 msgstr ""
32739
32740 #. type: verbatim
32741 #: ../src/guestfs-actions.pod:6499
32742 #, no-wrap
32743 msgid ""
32744 " int\n"
32745 " guestfs_resize2fs_size (guestfs_h *g,\n"
32746 "                         const char *device,\n"
32747 "                         int64_t size);\n"
32748 "\n"
32749 msgstr ""
32750
32751 #. type: textblock
32752 #: ../src/guestfs-actions.pod:6504
32753 msgid ""
32754 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32755 "to specify the new size (in bytes) explicitly."
32756 msgstr ""
32757
32758 #. type: =head2
32759 #: ../src/guestfs-actions.pod:6511
32760 msgid "guestfs_rm"
32761 msgstr ""
32762
32763 #. type: verbatim
32764 #: ../src/guestfs-actions.pod:6513
32765 #, no-wrap
32766 msgid ""
32767 " int\n"
32768 " guestfs_rm (guestfs_h *g,\n"
32769 "             const char *path);\n"
32770 "\n"
32771 msgstr ""
32772
32773 #. type: =head2
32774 #: ../src/guestfs-actions.pod:6523
32775 msgid "guestfs_rm_rf"
32776 msgstr ""
32777
32778 #. type: verbatim
32779 #: ../src/guestfs-actions.pod:6525
32780 #, no-wrap
32781 msgid ""
32782 " int\n"
32783 " guestfs_rm_rf (guestfs_h *g,\n"
32784 "                const char *path);\n"
32785 "\n"
32786 msgstr ""
32787
32788 #. type: =head2
32789 #: ../src/guestfs-actions.pod:6537
32790 msgid "guestfs_rmdir"
32791 msgstr ""
32792
32793 #. type: verbatim
32794 #: ../src/guestfs-actions.pod:6539
32795 #, no-wrap
32796 msgid ""
32797 " int\n"
32798 " guestfs_rmdir (guestfs_h *g,\n"
32799 "                const char *path);\n"
32800 "\n"
32801 msgstr ""
32802
32803 #. type: =head2
32804 #: ../src/guestfs-actions.pod:6549
32805 msgid "guestfs_rmmountpoint"
32806 msgstr ""
32807
32808 #. type: verbatim
32809 #: ../src/guestfs-actions.pod:6551
32810 #, no-wrap
32811 msgid ""
32812 " int\n"
32813 " guestfs_rmmountpoint (guestfs_h *g,\n"
32814 "                       const char *exemptpath);\n"
32815 "\n"
32816 msgstr ""
32817
32818 #. type: textblock
32819 #: ../src/guestfs-actions.pod:6555
32820 msgid ""
32821 "This calls removes a mountpoint that was previously created with "
32822 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
32823 msgstr ""
32824
32825 #. type: =head2
32826 #: ../src/guestfs-actions.pod:6563
32827 msgid "guestfs_scrub_device"
32828 msgstr ""
32829
32830 #. type: verbatim
32831 #: ../src/guestfs-actions.pod:6565
32832 #, no-wrap
32833 msgid ""
32834 " int\n"
32835 " guestfs_scrub_device (guestfs_h *g,\n"
32836 "                       const char *device);\n"
32837 "\n"
32838 msgstr ""
32839
32840 #. type: textblock
32841 #: ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6598
32842 #: ../src/guestfs-actions.pod:6617
32843 msgid "(Added in 1.0.52)"
32844 msgstr "(Додано у 1.0.52)"
32845
32846 #. type: =head2
32847 #: ../src/guestfs-actions.pod:6582
32848 msgid "guestfs_scrub_file"
32849 msgstr ""
32850
32851 #. type: verbatim
32852 #: ../src/guestfs-actions.pod:6584
32853 #, no-wrap
32854 msgid ""
32855 " int\n"
32856 " guestfs_scrub_file (guestfs_h *g,\n"
32857 "                     const char *file);\n"
32858 "\n"
32859 msgstr ""
32860
32861 #. type: =head2
32862 #: ../src/guestfs-actions.pod:6600
32863 msgid "guestfs_scrub_freespace"
32864 msgstr ""
32865
32866 #. type: verbatim
32867 #: ../src/guestfs-actions.pod:6602
32868 #, no-wrap
32869 msgid ""
32870 " int\n"
32871 " guestfs_scrub_freespace (guestfs_h *g,\n"
32872 "                          const char *dir);\n"
32873 "\n"
32874 msgstr ""
32875
32876 #. type: textblock
32877 #: ../src/guestfs-actions.pod:6606
32878 msgid ""
32879 "This command creates the directory C<dir> and then fills it with files until "
32880 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32881 "and deletes them.  The intention is to scrub any free space on the partition "
32882 "containing C<dir>."
32883 msgstr ""
32884
32885 #. type: =head2
32886 #: ../src/guestfs-actions.pod:6619
32887 msgid "guestfs_set_append"
32888 msgstr ""
32889
32890 #. type: verbatim
32891 #: ../src/guestfs-actions.pod:6621
32892 #, no-wrap
32893 msgid ""
32894 " int\n"
32895 " guestfs_set_append (guestfs_h *g,\n"
32896 "                     const char *append);\n"
32897 "\n"
32898 msgstr ""
32899
32900 #. type: =head2
32901 #: ../src/guestfs-actions.pod:6638
32902 msgid "guestfs_set_attach_method"
32903 msgstr ""
32904
32905 #. type: verbatim
32906 #: ../src/guestfs-actions.pod:6640
32907 #, no-wrap
32908 msgid ""
32909 " int\n"
32910 " guestfs_set_attach_method (guestfs_h *g,\n"
32911 "                            const char *attachmethod);\n"
32912 "\n"
32913 msgstr ""
32914
32915 #. type: =head2
32916 #: ../src/guestfs-actions.pod:6668
32917 msgid "guestfs_set_autosync"
32918 msgstr ""
32919
32920 #. type: verbatim
32921 #: ../src/guestfs-actions.pod:6670
32922 #, no-wrap
32923 msgid ""
32924 " int\n"
32925 " guestfs_set_autosync (guestfs_h *g,\n"
32926 "                       int autosync);\n"
32927 "\n"
32928 msgstr ""
32929
32930 #. type: =head2
32931 #: ../src/guestfs-actions.pod:6686
32932 msgid "guestfs_set_direct"
32933 msgstr ""
32934
32935 #. type: verbatim
32936 #: ../src/guestfs-actions.pod:6688
32937 #, no-wrap
32938 msgid ""
32939 " int\n"
32940 " guestfs_set_direct (guestfs_h *g,\n"
32941 "                     int direct);\n"
32942 "\n"
32943 msgstr ""
32944
32945 #. type: textblock
32946 #: ../src/guestfs-actions.pod:6696
32947 msgid ""
32948 "One consequence of this is that log messages aren't caught by the library "
32949 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32950 "stdout."
32951 msgstr ""
32952
32953 #. type: =head2
32954 #: ../src/guestfs-actions.pod:6709
32955 msgid "guestfs_set_e2label"
32956 msgstr ""
32957
32958 #. type: verbatim
32959 #: ../src/guestfs-actions.pod:6711
32960 #, no-wrap
32961 msgid ""
32962 " int\n"
32963 " guestfs_set_e2label (guestfs_h *g,\n"
32964 "                      const char *device,\n"
32965 "                      const char *label);\n"
32966 "\n"
32967 msgstr ""
32968
32969 #. type: textblock
32970 #: ../src/guestfs-actions.pod:6720
32971 msgid ""
32972 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32973 "the existing label on a filesystem."
32974 msgstr ""
32975
32976 #. type: =head2
32977 #: ../src/guestfs-actions.pod:6727
32978 msgid "guestfs_set_e2uuid"
32979 msgstr ""
32980
32981 #. type: verbatim
32982 #: ../src/guestfs-actions.pod:6729
32983 #, no-wrap
32984 msgid ""
32985 " int\n"
32986 " guestfs_set_e2uuid (guestfs_h *g,\n"
32987 "                     const char *device,\n"
32988 "                     const char *uuid);\n"
32989 "\n"
32990 msgstr ""
32991
32992 #. type: textblock
32993 #: ../src/guestfs-actions.pod:6739
32994 msgid ""
32995 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32996 "the existing UUID of a filesystem."
32997 msgstr ""
32998
32999 #. type: =head2
33000 #: ../src/guestfs-actions.pod:6746
33001 msgid "guestfs_set_memsize"
33002 msgstr ""
33003
33004 #. type: verbatim
33005 #: ../src/guestfs-actions.pod:6748
33006 #, no-wrap
33007 msgid ""
33008 " int\n"
33009 " guestfs_set_memsize (guestfs_h *g,\n"
33010 "                      int memsize);\n"
33011 "\n"
33012 msgstr ""
33013
33014 #. type: textblock
33015 #: ../src/guestfs-actions.pod:6752
33016 msgid ""
33017 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
33018 "This only has any effect if called before C<guestfs_launch>."
33019 msgstr ""
33020
33021 #. type: =head2
33022 #: ../src/guestfs-actions.pod:6767
33023 msgid "guestfs_set_network"
33024 msgstr ""
33025
33026 #. type: verbatim
33027 #: ../src/guestfs-actions.pod:6769
33028 #, no-wrap
33029 msgid ""
33030 " int\n"
33031 " guestfs_set_network (guestfs_h *g,\n"
33032 "                      int network);\n"
33033 "\n"
33034 msgstr ""
33035
33036 #. type: textblock
33037 #: ../src/guestfs-actions.pod:6779
33038 msgid ""
33039 "You must call this before calling C<guestfs_launch>, otherwise it has no "
33040 "effect."
33041 msgstr ""
33042
33043 #. type: =head2
33044 #: ../src/guestfs-actions.pod:6786
33045 msgid "guestfs_set_path"
33046 msgstr ""
33047
33048 #. type: verbatim
33049 #: ../src/guestfs-actions.pod:6788
33050 #, no-wrap
33051 msgid ""
33052 " int\n"
33053 " guestfs_set_path (guestfs_h *g,\n"
33054 "                   const char *searchpath);\n"
33055 "\n"
33056 msgstr ""
33057
33058 #. type: =head2
33059 #: ../src/guestfs-actions.pod:6803
33060 msgid "guestfs_set_pgroup"
33061 msgstr ""
33062
33063 #. type: verbatim
33064 #: ../src/guestfs-actions.pod:6805
33065 #, no-wrap
33066 msgid ""
33067 " int\n"
33068 " guestfs_set_pgroup (guestfs_h *g,\n"
33069 "                     int pgroup);\n"
33070 "\n"
33071 msgstr ""
33072
33073 #. type: =head2
33074 #: ../src/guestfs-actions.pod:6822
33075 msgid "guestfs_set_qemu"
33076 msgstr ""
33077
33078 #. type: verbatim
33079 #: ../src/guestfs-actions.pod:6824
33080 #, no-wrap
33081 msgid ""
33082 " int\n"
33083 " guestfs_set_qemu (guestfs_h *g,\n"
33084 "                   const char *qemu);\n"
33085 "\n"
33086 msgstr ""
33087
33088 #. type: =head2
33089 #: ../src/guestfs-actions.pod:6850
33090 msgid "guestfs_set_recovery_proc"
33091 msgstr ""
33092
33093 #. type: verbatim
33094 #: ../src/guestfs-actions.pod:6852
33095 #, no-wrap
33096 msgid ""
33097 " int\n"
33098 " guestfs_set_recovery_proc (guestfs_h *g,\n"
33099 "                            int recoveryproc);\n"
33100 "\n"
33101 msgstr ""
33102
33103 #. type: textblock
33104 #: ../src/guestfs-actions.pod:6856
33105 msgid ""
33106 "If this is called with the parameter C<false> then C<guestfs_launch> does "
33107 "not create a recovery process.  The purpose of the recovery process is to "
33108 "stop runaway qemu processes in the case where the main program aborts "
33109 "abruptly."
33110 msgstr ""
33111
33112 #. type: textblock
33113 #: ../src/guestfs-actions.pod:6861
33114 msgid ""
33115 "This only has any effect if called before C<guestfs_launch>, and the default "
33116 "is true."
33117 msgstr ""
33118
33119 #. type: =head2
33120 #: ../src/guestfs-actions.pod:6874
33121 msgid "guestfs_set_selinux"
33122 msgstr ""
33123
33124 #. type: verbatim
33125 #: ../src/guestfs-actions.pod:6876
33126 #, no-wrap
33127 msgid ""
33128 " int\n"
33129 " guestfs_set_selinux (guestfs_h *g,\n"
33130 "                      int selinux);\n"
33131 "\n"
33132 msgstr ""
33133
33134 #. type: =head2
33135 #: ../src/guestfs-actions.pod:6893
33136 msgid "guestfs_set_smp"
33137 msgstr ""
33138
33139 #. type: verbatim
33140 #: ../src/guestfs-actions.pod:6895
33141 #, no-wrap
33142 msgid ""
33143 " int\n"
33144 " guestfs_set_smp (guestfs_h *g,\n"
33145 "                  int smp);\n"
33146 "\n"
33147 msgstr ""
33148
33149 #. type: textblock
33150 #: ../src/guestfs-actions.pod:6903
33151 msgid "This function must be called before C<guestfs_launch>."
33152 msgstr ""
33153
33154 #. type: =head2
33155 #: ../src/guestfs-actions.pod:6909
33156 msgid "guestfs_set_trace"
33157 msgstr ""
33158
33159 #. type: verbatim
33160 #: ../src/guestfs-actions.pod:6911
33161 #, no-wrap
33162 msgid ""
33163 " int\n"
33164 " guestfs_set_trace (guestfs_h *g,\n"
33165 "                    int trace);\n"
33166 "\n"
33167 msgstr ""
33168
33169 #. type: textblock
33170 #: ../src/guestfs-actions.pod:6925
33171 msgid ""
33172 "Trace messages are normally sent to C<stderr>, unless you register a "
33173 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33174 msgstr ""
33175
33176 #. type: =head2
33177 #: ../src/guestfs-actions.pod:6933
33178 msgid "guestfs_set_verbose"
33179 msgstr ""
33180
33181 #. type: verbatim
33182 #: ../src/guestfs-actions.pod:6935
33183 #, no-wrap
33184 msgid ""
33185 " int\n"
33186 " guestfs_set_verbose (guestfs_h *g,\n"
33187 "                      int verbose);\n"
33188 "\n"
33189 msgstr ""
33190
33191 #. type: textblock
33192 #: ../src/guestfs-actions.pod:6944
33193 msgid ""
33194 "Verbose messages are normally sent to C<stderr>, unless you register a "
33195 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33196 msgstr ""
33197
33198 #. type: =head2
33199 #: ../src/guestfs-actions.pod:6952
33200 msgid "guestfs_setcon"
33201 msgstr ""
33202
33203 #. type: verbatim
33204 #: ../src/guestfs-actions.pod:6954
33205 #, no-wrap
33206 msgid ""
33207 " int\n"
33208 " guestfs_setcon (guestfs_h *g,\n"
33209 "                 const char *context);\n"
33210 "\n"
33211 msgstr ""
33212
33213 #. type: =head2
33214 #: ../src/guestfs-actions.pod:6967
33215 msgid "guestfs_setxattr"
33216 msgstr ""
33217
33218 #. type: verbatim
33219 #: ../src/guestfs-actions.pod:6969
33220 #, no-wrap
33221 msgid ""
33222 " int\n"
33223 " guestfs_setxattr (guestfs_h *g,\n"
33224 "                   const char *xattr,\n"
33225 "                   const char *val,\n"
33226 "                   int vallen,\n"
33227 "                   const char *path);\n"
33228 "\n"
33229 msgstr ""
33230
33231 #. type: textblock
33232 #: ../src/guestfs-actions.pod:6980
33233 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33234 msgstr ""
33235
33236 #. type: =head2
33237 #: ../src/guestfs-actions.pod:6986
33238 msgid "guestfs_sfdisk"
33239 msgstr ""
33240
33241 #. type: verbatim
33242 #: ../src/guestfs-actions.pod:6988
33243 #, no-wrap
33244 msgid ""
33245 " int\n"
33246 " guestfs_sfdisk (guestfs_h *g,\n"
33247 "                 const char *device,\n"
33248 "                 int cyls,\n"
33249 "                 int heads,\n"
33250 "                 int sectors,\n"
33251 "                 char *const *lines);\n"
33252 "\n"
33253 msgstr ""
33254
33255 #. type: textblock
33256 #: ../src/guestfs-actions.pod:6996 ../src/guestfs-actions.pod:7040
33257 #: ../src/guestfs-actions.pod:7074
33258 msgid ""
33259 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33260 "call instead."
33261 msgstr ""
33262
33263 #. type: textblock
33264 #: ../src/guestfs-actions.pod:7023
33265 msgid ""
33266 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33267 msgstr ""
33268
33269 #. type: =head2
33270 #: ../src/guestfs-actions.pod:7033
33271 msgid "guestfs_sfdiskM"
33272 msgstr ""
33273
33274 #. type: verbatim
33275 #: ../src/guestfs-actions.pod:7035
33276 #, no-wrap
33277 msgid ""
33278 " int\n"
33279 " guestfs_sfdiskM (guestfs_h *g,\n"
33280 "                  const char *device,\n"
33281 "                  char *const *lines);\n"
33282 "\n"
33283 msgstr ""
33284
33285 #. type: textblock
33286 #: ../src/guestfs-actions.pod:7047
33287 msgid ""
33288 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33289 "partition sizes are specified in megabytes only (rounded to the nearest "
33290 "cylinder) and you don't need to specify the cyls, heads and sectors "
33291 "parameters which were rarely if ever used anyway."
33292 msgstr ""
33293
33294 #. type: textblock
33295 #: ../src/guestfs-actions.pod:7053
33296 msgid ""
33297 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33298 "C<guestfs_part_disk>"
33299 msgstr ""
33300
33301 #. type: =head2
33302 #: ../src/guestfs-actions.pod:7063
33303 msgid "guestfs_sfdisk_N"
33304 msgstr ""
33305
33306 #. type: verbatim
33307 #: ../src/guestfs-actions.pod:7065
33308 #, no-wrap
33309 msgid ""
33310 " int\n"
33311 " guestfs_sfdisk_N (guestfs_h *g,\n"
33312 "                   const char *device,\n"
33313 "                   int partnum,\n"
33314 "                   int cyls,\n"
33315 "                   int heads,\n"
33316 "                   int sectors,\n"
33317 "                   const char *line);\n"
33318 "\n"
33319 msgstr ""
33320
33321 #. type: textblock
33322 #: ../src/guestfs-actions.pod:7084
33323 msgid ""
33324 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
33325 "for the cyls/heads/sectors parameters."
33326 msgstr ""
33327
33328 #. type: textblock
33329 #: ../src/guestfs-actions.pod:7087
33330 msgid "See also: C<guestfs_part_add>"
33331 msgstr ""
33332
33333 #. type: =head2
33334 #: ../src/guestfs-actions.pod:7096
33335 msgid "guestfs_sfdisk_disk_geometry"
33336 msgstr ""
33337
33338 #. type: verbatim
33339 #: ../src/guestfs-actions.pod:7098
33340 #, no-wrap
33341 msgid ""
33342 " char *\n"
33343 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33344 "                               const char *device);\n"
33345 "\n"
33346 msgstr ""
33347
33348 #. type: textblock
33349 #: ../src/guestfs-actions.pod:7102
33350 msgid ""
33351 "This displays the disk geometry of C<device> read from the partition table.  "
33352 "Especially in the case where the underlying block device has been resized, "
33353 "this can be different from the kernel's idea of the geometry (see "
33354 "C<guestfs_sfdisk_kernel_geometry>)."
33355 msgstr ""
33356
33357 #. type: =head2
33358 #: ../src/guestfs-actions.pod:7115
33359 msgid "guestfs_sfdisk_kernel_geometry"
33360 msgstr ""
33361
33362 #. type: verbatim
33363 #: ../src/guestfs-actions.pod:7117
33364 #, no-wrap
33365 msgid ""
33366 " char *\n"
33367 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33368 "                                 const char *device);\n"
33369 "\n"
33370 msgstr ""
33371
33372 #. type: =head2
33373 #: ../src/guestfs-actions.pod:7131
33374 msgid "guestfs_sfdisk_l"
33375 msgstr ""
33376
33377 #. type: verbatim
33378 #: ../src/guestfs-actions.pod:7133
33379 #, no-wrap
33380 msgid ""
33381 " char *\n"
33382 " guestfs_sfdisk_l (guestfs_h *g,\n"
33383 "                   const char *device);\n"
33384 "\n"
33385 msgstr ""
33386
33387 #. type: textblock
33388 #: ../src/guestfs-actions.pod:7137
33389 msgid ""
33390 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33391 "call instead."
33392 msgstr ""
33393
33394 #. type: textblock
33395 #: ../src/guestfs-actions.pod:7148
33396 msgid "See also: C<guestfs_part_list>"
33397 msgstr ""
33398
33399 #. type: =head2
33400 #: ../src/guestfs-actions.pod:7155
33401 msgid "guestfs_sh"
33402 msgstr ""
33403
33404 #. type: verbatim
33405 #: ../src/guestfs-actions.pod:7157
33406 #, no-wrap
33407 msgid ""
33408 " char *\n"
33409 " guestfs_sh (guestfs_h *g,\n"
33410 "             const char *command);\n"
33411 "\n"
33412 msgstr ""
33413
33414 #. type: textblock
33415 #: ../src/guestfs-actions.pod:7164
33416 msgid "This is like C<guestfs_command>, but passes the command to:"
33417 msgstr ""
33418
33419 #. type: textblock
33420 #: ../src/guestfs-actions.pod:7172
33421 msgid "All the provisos about C<guestfs_command> apply to this call."
33422 msgstr ""
33423
33424 #. type: =head2
33425 #: ../src/guestfs-actions.pod:7179
33426 msgid "guestfs_sh_lines"
33427 msgstr ""
33428
33429 #. type: verbatim
33430 #: ../src/guestfs-actions.pod:7181
33431 #, no-wrap
33432 msgid ""
33433 " char **\n"
33434 " guestfs_sh_lines (guestfs_h *g,\n"
33435 "                   const char *command);\n"
33436 "\n"
33437 msgstr ""
33438
33439 #. type: textblock
33440 #: ../src/guestfs-actions.pod:7185
33441 msgid ""
33442 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33443 "lines."
33444 msgstr ""
33445
33446 #. type: textblock
33447 #: ../src/guestfs-actions.pod:7188
33448 msgid "See also: C<guestfs_command_lines>"
33449 msgstr ""
33450
33451 #. type: =head2
33452 #: ../src/guestfs-actions.pod:7196
33453 msgid "guestfs_sleep"
33454 msgstr ""
33455
33456 #. type: verbatim
33457 #: ../src/guestfs-actions.pod:7198
33458 #, no-wrap
33459 msgid ""
33460 " int\n"
33461 " guestfs_sleep (guestfs_h *g,\n"
33462 "                int secs);\n"
33463 "\n"
33464 msgstr ""
33465
33466 #. type: textblock
33467 #: ../src/guestfs-actions.pod:7206
33468 msgid "(Added in 1.0.41)"
33469 msgstr "(Додано у 1.0.41)"
33470
33471 #. type: =head2
33472 #: ../src/guestfs-actions.pod:7208 ../src/guestfs-structs.pod:109
33473 msgid "guestfs_stat"
33474 msgstr ""
33475
33476 #. type: verbatim
33477 #: ../src/guestfs-actions.pod:7210
33478 #, no-wrap
33479 msgid ""
33480 " struct guestfs_stat *\n"
33481 " guestfs_stat (guestfs_h *g,\n"
33482 "               const char *path);\n"
33483 "\n"
33484 msgstr ""
33485
33486 #. type: =head2
33487 #: ../src/guestfs-actions.pod:7224 ../src/guestfs-structs.pod:135
33488 msgid "guestfs_statvfs"
33489 msgstr ""
33490
33491 #. type: verbatim
33492 #: ../src/guestfs-actions.pod:7226
33493 #, no-wrap
33494 msgid ""
33495 " struct guestfs_statvfs *\n"
33496 " guestfs_statvfs (guestfs_h *g,\n"
33497 "                  const char *path);\n"
33498 "\n"
33499 msgstr ""
33500
33501 #. type: textblock
33502 #: ../src/guestfs-actions.pod:7236
33503 msgid ""
33504 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33505 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
33506 msgstr ""
33507
33508 #. type: =head2
33509 #: ../src/guestfs-actions.pod:7242
33510 msgid "guestfs_strings"
33511 msgstr ""
33512
33513 #. type: verbatim
33514 #: ../src/guestfs-actions.pod:7244
33515 #, no-wrap
33516 msgid ""
33517 " char **\n"
33518 " guestfs_strings (guestfs_h *g,\n"
33519 "                  const char *path);\n"
33520 "\n"
33521 msgstr ""
33522
33523 #. type: =head2
33524 #: ../src/guestfs-actions.pod:7260
33525 msgid "guestfs_strings_e"
33526 msgstr ""
33527
33528 #. type: verbatim
33529 #: ../src/guestfs-actions.pod:7262
33530 #, no-wrap
33531 msgid ""
33532 " char **\n"
33533 " guestfs_strings_e (guestfs_h *g,\n"
33534 "                    const char *encoding,\n"
33535 "                    const char *path);\n"
33536 "\n"
33537 msgstr ""
33538
33539 #. type: textblock
33540 #: ../src/guestfs-actions.pod:7267
33541 msgid ""
33542 "This is like the C<guestfs_strings> command, but allows you to specify the "
33543 "encoding of strings that are looked for in the source file C<path>."
33544 msgstr ""
33545
33546 #. type: textblock
33547 #: ../src/guestfs-actions.pod:7277
33548 msgid ""
33549 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33550 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33551 msgstr ""
33552
33553 #. type: =head2
33554 #: ../src/guestfs-actions.pod:7315
33555 msgid "guestfs_swapoff_device"
33556 msgstr ""
33557
33558 #. type: verbatim
33559 #: ../src/guestfs-actions.pod:7317
33560 #, no-wrap
33561 msgid ""
33562 " int\n"
33563 " guestfs_swapoff_device (guestfs_h *g,\n"
33564 "                         const char *device);\n"
33565 "\n"
33566 msgstr ""
33567
33568 #. type: textblock
33569 #: ../src/guestfs-actions.pod:7321
33570 msgid ""
33571 "This command disables the libguestfs appliance swap device or partition "
33572 "named C<device>.  See C<guestfs_swapon_device>."
33573 msgstr ""
33574
33575 #. type: =head2
33576 #: ../src/guestfs-actions.pod:7329
33577 msgid "guestfs_swapoff_file"
33578 msgstr ""
33579
33580 #. type: verbatim
33581 #: ../src/guestfs-actions.pod:7331
33582 #, no-wrap
33583 msgid ""
33584 " int\n"
33585 " guestfs_swapoff_file (guestfs_h *g,\n"
33586 "                       const char *file);\n"
33587 "\n"
33588 msgstr ""
33589
33590 #. type: =head2
33591 #: ../src/guestfs-actions.pod:7341
33592 msgid "guestfs_swapoff_label"
33593 msgstr ""
33594
33595 #. type: verbatim
33596 #: ../src/guestfs-actions.pod:7343
33597 #, no-wrap
33598 msgid ""
33599 " int\n"
33600 " guestfs_swapoff_label (guestfs_h *g,\n"
33601 "                        const char *label);\n"
33602 "\n"
33603 msgstr ""
33604
33605 #. type: =head2
33606 #: ../src/guestfs-actions.pod:7354
33607 msgid "guestfs_swapoff_uuid"
33608 msgstr ""
33609
33610 #. type: verbatim
33611 #: ../src/guestfs-actions.pod:7356
33612 #, no-wrap
33613 msgid ""
33614 " int\n"
33615 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33616 "                       const char *uuid);\n"
33617 "\n"
33618 msgstr ""
33619
33620 #. type: =head2
33621 #: ../src/guestfs-actions.pod:7367
33622 msgid "guestfs_swapon_device"
33623 msgstr ""
33624
33625 #. type: verbatim
33626 #: ../src/guestfs-actions.pod:7369
33627 #, no-wrap
33628 msgid ""
33629 " int\n"
33630 " guestfs_swapon_device (guestfs_h *g,\n"
33631 "                        const char *device);\n"
33632 "\n"
33633 msgstr ""
33634
33635 #. type: textblock
33636 #: ../src/guestfs-actions.pod:7373
33637 msgid ""
33638 "This command enables the libguestfs appliance to use the swap device or "
33639 "partition named C<device>.  The increased memory is made available for all "
33640 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33641 msgstr ""
33642
33643 #. type: =head2
33644 #: ../src/guestfs-actions.pod:7389
33645 msgid "guestfs_swapon_file"
33646 msgstr ""
33647
33648 #. type: verbatim
33649 #: ../src/guestfs-actions.pod:7391
33650 #, no-wrap
33651 msgid ""
33652 " int\n"
33653 " guestfs_swapon_file (guestfs_h *g,\n"
33654 "                      const char *file);\n"
33655 "\n"
33656 msgstr ""
33657
33658 #. type: textblock
33659 #: ../src/guestfs-actions.pod:7395
33660 msgid ""
33661 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
33662 "notes."
33663 msgstr ""
33664
33665 #. type: =head2
33666 #: ../src/guestfs-actions.pod:7402
33667 msgid "guestfs_swapon_label"
33668 msgstr ""
33669
33670 #. type: verbatim
33671 #: ../src/guestfs-actions.pod:7404
33672 #, no-wrap
33673 msgid ""
33674 " int\n"
33675 " guestfs_swapon_label (guestfs_h *g,\n"
33676 "                       const char *label);\n"
33677 "\n"
33678 msgstr ""
33679
33680 #. type: textblock
33681 #: ../src/guestfs-actions.pod:7408
33682 msgid ""
33683 "This command enables swap to a labeled swap partition.  See "
33684 "C<guestfs_swapon_device> for other notes."
33685 msgstr ""
33686
33687 #. type: =head2
33688 #: ../src/guestfs-actions.pod:7415
33689 msgid "guestfs_swapon_uuid"
33690 msgstr ""
33691
33692 #. type: verbatim
33693 #: ../src/guestfs-actions.pod:7417
33694 #, no-wrap
33695 msgid ""
33696 " int\n"
33697 " guestfs_swapon_uuid (guestfs_h *g,\n"
33698 "                      const char *uuid);\n"
33699 "\n"
33700 msgstr ""
33701
33702 #. type: textblock
33703 #: ../src/guestfs-actions.pod:7421
33704 msgid ""
33705 "This command enables swap to a swap partition with the given UUID.  See "
33706 "C<guestfs_swapon_device> for other notes."
33707 msgstr ""
33708
33709 #. type: =head2
33710 #: ../src/guestfs-actions.pod:7428
33711 msgid "guestfs_sync"
33712 msgstr ""
33713
33714 #. type: verbatim
33715 #: ../src/guestfs-actions.pod:7430
33716 #, no-wrap
33717 msgid ""
33718 " int\n"
33719 " guestfs_sync (guestfs_h *g);\n"
33720 "\n"
33721 msgstr ""
33722
33723 #. type: =head2
33724 #: ../src/guestfs-actions.pod:7443
33725 msgid "guestfs_tail"
33726 msgstr ""
33727
33728 #. type: verbatim
33729 #: ../src/guestfs-actions.pod:7445
33730 #, no-wrap
33731 msgid ""
33732 " char **\n"
33733 " guestfs_tail (guestfs_h *g,\n"
33734 "               const char *path);\n"
33735 "\n"
33736 msgstr ""
33737
33738 #. type: =head2
33739 #: ../src/guestfs-actions.pod:7461
33740 msgid "guestfs_tail_n"
33741 msgstr ""
33742
33743 #. type: verbatim
33744 #: ../src/guestfs-actions.pod:7463
33745 #, no-wrap
33746 msgid ""
33747 " char **\n"
33748 " guestfs_tail_n (guestfs_h *g,\n"
33749 "                 int nrlines,\n"
33750 "                 const char *path);\n"
33751 "\n"
33752 msgstr ""
33753
33754 #. type: =head2
33755 #: ../src/guestfs-actions.pod:7485
33756 msgid "guestfs_tar_in"
33757 msgstr ""
33758
33759 #. type: verbatim
33760 #: ../src/guestfs-actions.pod:7487
33761 #, no-wrap
33762 msgid ""
33763 " int\n"
33764 " guestfs_tar_in (guestfs_h *g,\n"
33765 "                 const char *tarfile,\n"
33766 "                 const char *directory);\n"
33767 "\n"
33768 msgstr ""
33769
33770 #. type: textblock
33771 #: ../src/guestfs-actions.pod:7495
33772 msgid ""
33773 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33774 msgstr ""
33775
33776 #. type: textblock
33777 #: ../src/guestfs-actions.pod:7500 ../src/guestfs-actions.pod:7517
33778 #: ../src/guestfs-actions.pod:7533 ../src/guestfs-actions.pod:7549
33779 msgid "(Added in 1.0.3)"
33780 msgstr "(Додано у 1.0.3)"
33781
33782 #. type: =head2
33783 #: ../src/guestfs-actions.pod:7502
33784 msgid "guestfs_tar_out"
33785 msgstr ""
33786
33787 #. type: verbatim
33788 #: ../src/guestfs-actions.pod:7504
33789 #, no-wrap
33790 msgid ""
33791 " int\n"
33792 " guestfs_tar_out (guestfs_h *g,\n"
33793 "                  const char *directory,\n"
33794 "                  const char *tarfile);\n"
33795 "\n"
33796 msgstr ""
33797
33798 #. type: textblock
33799 #: ../src/guestfs-actions.pod:7512
33800 msgid ""
33801 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33802 "C<guestfs_txz_out>."
33803 msgstr ""
33804
33805 #. type: =head2
33806 #: ../src/guestfs-actions.pod:7519
33807 msgid "guestfs_tgz_in"
33808 msgstr ""
33809
33810 #. type: verbatim
33811 #: ../src/guestfs-actions.pod:7521
33812 #, no-wrap
33813 msgid ""
33814 " int\n"
33815 " guestfs_tgz_in (guestfs_h *g,\n"
33816 "                 const char *tarball,\n"
33817 "                 const char *directory);\n"
33818 "\n"
33819 msgstr ""
33820
33821 #. type: textblock
33822 #: ../src/guestfs-actions.pod:7529
33823 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33824 msgstr ""
33825
33826 #. type: =head2
33827 #: ../src/guestfs-actions.pod:7535
33828 msgid "guestfs_tgz_out"
33829 msgstr ""
33830
33831 #. type: verbatim
33832 #: ../src/guestfs-actions.pod:7537
33833 #, no-wrap
33834 msgid ""
33835 " int\n"
33836 " guestfs_tgz_out (guestfs_h *g,\n"
33837 "                  const char *directory,\n"
33838 "                  const char *tarball);\n"
33839 "\n"
33840 msgstr ""
33841
33842 #. type: textblock
33843 #: ../src/guestfs-actions.pod:7545
33844 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33845 msgstr ""
33846
33847 #. type: =head2
33848 #: ../src/guestfs-actions.pod:7551
33849 msgid "guestfs_touch"
33850 msgstr ""
33851
33852 #. type: verbatim
33853 #: ../src/guestfs-actions.pod:7553
33854 #, no-wrap
33855 msgid ""
33856 " int\n"
33857 " guestfs_touch (guestfs_h *g,\n"
33858 "                const char *path);\n"
33859 "\n"
33860 msgstr ""
33861
33862 #. type: =head2
33863 #: ../src/guestfs-actions.pod:7568
33864 msgid "guestfs_truncate"
33865 msgstr ""
33866
33867 #. type: verbatim
33868 #: ../src/guestfs-actions.pod:7570
33869 #, no-wrap
33870 msgid ""
33871 " int\n"
33872 " guestfs_truncate (guestfs_h *g,\n"
33873 "                   const char *path);\n"
33874 "\n"
33875 msgstr ""
33876
33877 #. type: =head2
33878 #: ../src/guestfs-actions.pod:7581
33879 msgid "guestfs_truncate_size"
33880 msgstr ""
33881
33882 #. type: verbatim
33883 #: ../src/guestfs-actions.pod:7583
33884 #, no-wrap
33885 msgid ""
33886 " int\n"
33887 " guestfs_truncate_size (guestfs_h *g,\n"
33888 "                        const char *path,\n"
33889 "                        int64_t size);\n"
33890 "\n"
33891 msgstr ""
33892
33893 #. type: textblock
33894 #: ../src/guestfs-actions.pod:7591
33895 msgid ""
33896 "If the current file size is less than C<size> then the file is extended to "
33897 "the required size with zero bytes.  This creates a sparse file (ie. disk "
33898 "blocks are not allocated for the file until you write to it).  To create a "
33899 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33900 msgstr ""
33901
33902 #. type: =head2
33903 #: ../src/guestfs-actions.pod:7601
33904 msgid "guestfs_tune2fs_l"
33905 msgstr ""
33906
33907 #. type: verbatim
33908 #: ../src/guestfs-actions.pod:7603
33909 #, no-wrap
33910 msgid ""
33911 " char **\n"
33912 " guestfs_tune2fs_l (guestfs_h *g,\n"
33913 "                    const char *device);\n"
33914 "\n"
33915 msgstr ""
33916
33917 #. type: =head2
33918 #: ../src/guestfs-actions.pod:7623
33919 msgid "guestfs_txz_in"
33920 msgstr ""
33921
33922 #. type: verbatim
33923 #: ../src/guestfs-actions.pod:7625
33924 #, no-wrap
33925 msgid ""
33926 " int\n"
33927 " guestfs_txz_in (guestfs_h *g,\n"
33928 "                 const char *tarball,\n"
33929 "                 const char *directory);\n"
33930 "\n"
33931 msgstr ""
33932
33933 #. type: =head2
33934 #: ../src/guestfs-actions.pod:7637
33935 msgid "guestfs_txz_out"
33936 msgstr ""
33937
33938 #. type: verbatim
33939 #: ../src/guestfs-actions.pod:7639
33940 #, no-wrap
33941 msgid ""
33942 " int\n"
33943 " guestfs_txz_out (guestfs_h *g,\n"
33944 "                  const char *directory,\n"
33945 "                  const char *tarball);\n"
33946 "\n"
33947 msgstr ""
33948
33949 #. type: =head2
33950 #: ../src/guestfs-actions.pod:7651
33951 msgid "guestfs_umask"
33952 msgstr ""
33953
33954 #. type: verbatim
33955 #: ../src/guestfs-actions.pod:7653
33956 #, no-wrap
33957 msgid ""
33958 " int\n"
33959 " guestfs_umask (guestfs_h *g,\n"
33960 "                int mask);\n"
33961 "\n"
33962 msgstr ""
33963
33964 #. type: textblock
33965 #: ../src/guestfs-actions.pod:7669
33966 msgid ""
33967 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33968 "C<guestfs_mkdir>."
33969 msgstr ""
33970
33971 #. type: =head2
33972 #: ../src/guestfs-actions.pod:7678
33973 msgid "guestfs_umount"
33974 msgstr ""
33975
33976 #. type: verbatim
33977 #: ../src/guestfs-actions.pod:7680
33978 #, no-wrap
33979 msgid ""
33980 " int\n"
33981 " guestfs_umount (guestfs_h *g,\n"
33982 "                 const char *pathordevice);\n"
33983 "\n"
33984 msgstr ""
33985
33986 #. type: =head2
33987 #: ../src/guestfs-actions.pod:7692
33988 msgid "guestfs_umount_all"
33989 msgstr ""
33990
33991 #. type: verbatim
33992 #: ../src/guestfs-actions.pod:7694
33993 #, no-wrap
33994 msgid ""
33995 " int\n"
33996 " guestfs_umount_all (guestfs_h *g);\n"
33997 "\n"
33998 msgstr ""
33999
34000 #. type: =head2
34001 #: ../src/guestfs-actions.pod:7705
34002 msgid "guestfs_upload"
34003 msgstr ""
34004
34005 #. type: verbatim
34006 #: ../src/guestfs-actions.pod:7707
34007 #, no-wrap
34008 msgid ""
34009 " int\n"
34010 " guestfs_upload (guestfs_h *g,\n"
34011 "                 const char *filename,\n"
34012 "                 const char *remotefilename);\n"
34013 "\n"
34014 msgstr ""
34015
34016 #. type: textblock
34017 #: ../src/guestfs-actions.pod:7717
34018 msgid "See also C<guestfs_download>."
34019 msgstr ""
34020
34021 #. type: =head2
34022 #: ../src/guestfs-actions.pod:7728
34023 msgid "guestfs_upload_offset"
34024 msgstr ""
34025
34026 #. type: verbatim
34027 #: ../src/guestfs-actions.pod:7730
34028 #, no-wrap
34029 msgid ""
34030 " int\n"
34031 " guestfs_upload_offset (guestfs_h *g,\n"
34032 "                        const char *filename,\n"
34033 "                        const char *remotefilename,\n"
34034 "                        int64_t offset);\n"
34035 "\n"
34036 msgstr ""
34037
34038 #. type: textblock
34039 #: ../src/guestfs-actions.pod:7746
34040 msgid ""
34041 "Note that there is no limit on the amount of data that can be uploaded with "
34042 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
34043 "full amount unless an error occurs."
34044 msgstr ""
34045
34046 #. type: textblock
34047 #: ../src/guestfs-actions.pod:7751
34048 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
34049 msgstr ""
34050
34051 #. type: =head2
34052 #: ../src/guestfs-actions.pod:7762
34053 msgid "guestfs_utimens"
34054 msgstr ""
34055
34056 #. type: verbatim
34057 #: ../src/guestfs-actions.pod:7764
34058 #, no-wrap
34059 msgid ""
34060 " int\n"
34061 " guestfs_utimens (guestfs_h *g,\n"
34062 "                  const char *path,\n"
34063 "                  int64_t atsecs,\n"
34064 "                  int64_t atnsecs,\n"
34065 "                  int64_t mtsecs,\n"
34066 "                  int64_t mtnsecs);\n"
34067 "\n"
34068 msgstr ""
34069
34070 #. type: =head2
34071 #: ../src/guestfs-actions.pod:7793 ../src/guestfs-structs.pod:175
34072 msgid "guestfs_version"
34073 msgstr ""
34074
34075 #. type: verbatim
34076 #: ../src/guestfs-actions.pod:7795
34077 #, no-wrap
34078 msgid ""
34079 " struct guestfs_version *\n"
34080 " guestfs_version (guestfs_h *g);\n"
34081 "\n"
34082 msgstr ""
34083
34084 #. type: textblock
34085 #: ../src/guestfs-actions.pod:7823
34086 msgid ""
34087 "I<Note:> Don't use this call to test for availability of features.  In "
34088 "enterprise distributions we backport features from later versions into "
34089 "earlier versions, making this an unreliable way to test for features.  Use "
34090 "C<guestfs_available> instead."
34091 msgstr ""
34092
34093 #. type: textblock
34094 #: ../src/guestfs-actions.pod:7829
34095 msgid ""
34096 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
34097 "error.  I<The caller must call C<guestfs_free_version> after use>."
34098 msgstr ""
34099
34100 #. type: textblock
34101 #: ../src/guestfs-actions.pod:7833
34102 msgid "(Added in 1.0.58)"
34103 msgstr "(Додано у 1.0.58)"
34104
34105 #. type: =head2
34106 #: ../src/guestfs-actions.pod:7835
34107 msgid "guestfs_vfs_label"
34108 msgstr ""
34109
34110 #. type: verbatim
34111 #: ../src/guestfs-actions.pod:7837
34112 #, no-wrap
34113 msgid ""
34114 " char *\n"
34115 " guestfs_vfs_label (guestfs_h *g,\n"
34116 "                    const char *device);\n"
34117 "\n"
34118 msgstr ""
34119
34120 #. type: textblock
34121 #: ../src/guestfs-actions.pod:7846
34122 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
34123 msgstr ""
34124
34125 #. type: textblock
34126 #: ../src/guestfs-actions.pod:7851 ../src/guestfs-actions.pod:7888
34127 msgid "(Added in 1.3.18)"
34128 msgstr "(Додано у 1.3.18)"
34129
34130 #. type: =head2
34131 #: ../src/guestfs-actions.pod:7853
34132 msgid "guestfs_vfs_type"
34133 msgstr ""
34134
34135 #. type: verbatim
34136 #: ../src/guestfs-actions.pod:7855
34137 #, no-wrap
34138 msgid ""
34139 " char *\n"
34140 " guestfs_vfs_type (guestfs_h *g,\n"
34141 "                   const char *device);\n"
34142 "\n"
34143 msgstr ""
34144
34145 #. type: =head2
34146 #: ../src/guestfs-actions.pod:7872
34147 msgid "guestfs_vfs_uuid"
34148 msgstr ""
34149
34150 #. type: verbatim
34151 #: ../src/guestfs-actions.pod:7874
34152 #, no-wrap
34153 msgid ""
34154 " char *\n"
34155 " guestfs_vfs_uuid (guestfs_h *g,\n"
34156 "                   const char *device);\n"
34157 "\n"
34158 msgstr ""
34159
34160 #. type: textblock
34161 #: ../src/guestfs-actions.pod:7883
34162 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
34163 msgstr ""
34164
34165 #. type: =head2
34166 #: ../src/guestfs-actions.pod:7890
34167 msgid "guestfs_vg_activate"
34168 msgstr ""
34169
34170 #. type: verbatim
34171 #: ../src/guestfs-actions.pod:7892
34172 #, no-wrap
34173 msgid ""
34174 " int\n"
34175 " guestfs_vg_activate (guestfs_h *g,\n"
34176 "                      int activate,\n"
34177 "                      char *const *volgroups);\n"
34178 "\n"
34179 msgstr ""
34180
34181 #. type: =head2
34182 #: ../src/guestfs-actions.pod:7909
34183 msgid "guestfs_vg_activate_all"
34184 msgstr ""
34185
34186 #. type: verbatim
34187 #: ../src/guestfs-actions.pod:7911
34188 #, no-wrap
34189 msgid ""
34190 " int\n"
34191 " guestfs_vg_activate_all (guestfs_h *g,\n"
34192 "                          int activate);\n"
34193 "\n"
34194 msgstr ""
34195
34196 #. type: =head2
34197 #: ../src/guestfs-actions.pod:7924
34198 msgid "guestfs_vgcreate"
34199 msgstr ""
34200
34201 #. type: verbatim
34202 #: ../src/guestfs-actions.pod:7926
34203 #, no-wrap
34204 msgid ""
34205 " int\n"
34206 " guestfs_vgcreate (guestfs_h *g,\n"
34207 "                   const char *volgroup,\n"
34208 "                   char *const *physvols);\n"
34209 "\n"
34210 msgstr ""
34211
34212 #. type: =head2
34213 #: ../src/guestfs-actions.pod:7938
34214 msgid "guestfs_vglvuuids"
34215 msgstr ""
34216
34217 #. type: verbatim
34218 #: ../src/guestfs-actions.pod:7940
34219 #, no-wrap
34220 msgid ""
34221 " char **\n"
34222 " guestfs_vglvuuids (guestfs_h *g,\n"
34223 "                    const char *vgname);\n"
34224 "\n"
34225 msgstr ""
34226
34227 #. type: textblock
34228 #: ../src/guestfs-actions.pod:7947
34229 msgid ""
34230 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34231 "associate logical volumes and volume groups."
34232 msgstr ""
34233
34234 #. type: textblock
34235 #: ../src/guestfs-actions.pod:7950
34236 msgid "See also C<guestfs_vgpvuuids>."
34237 msgstr ""
34238
34239 #. type: =head2
34240 #: ../src/guestfs-actions.pod:7958
34241 msgid "guestfs_vgpvuuids"
34242 msgstr ""
34243
34244 #. type: verbatim
34245 #: ../src/guestfs-actions.pod:7960
34246 #, no-wrap
34247 msgid ""
34248 " char **\n"
34249 " guestfs_vgpvuuids (guestfs_h *g,\n"
34250 "                    const char *vgname);\n"
34251 "\n"
34252 msgstr ""
34253
34254 #. type: textblock
34255 #: ../src/guestfs-actions.pod:7967
34256 msgid ""
34257 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34258 "associate physical volumes and volume groups."
34259 msgstr ""
34260
34261 #. type: textblock
34262 #: ../src/guestfs-actions.pod:7970
34263 msgid "See also C<guestfs_vglvuuids>."
34264 msgstr ""
34265
34266 #. type: =head2
34267 #: ../src/guestfs-actions.pod:7978
34268 msgid "guestfs_vgremove"
34269 msgstr ""
34270
34271 #. type: verbatim
34272 #: ../src/guestfs-actions.pod:7980
34273 #, no-wrap
34274 msgid ""
34275 " int\n"
34276 " guestfs_vgremove (guestfs_h *g,\n"
34277 "                   const char *vgname);\n"
34278 "\n"
34279 msgstr ""
34280
34281 #. type: =head2
34282 #: ../src/guestfs-actions.pod:7993
34283 msgid "guestfs_vgrename"
34284 msgstr ""
34285
34286 #. type: verbatim
34287 #: ../src/guestfs-actions.pod:7995
34288 #, no-wrap
34289 msgid ""
34290 " int\n"
34291 " guestfs_vgrename (guestfs_h *g,\n"
34292 "                   const char *volgroup,\n"
34293 "                   const char *newvolgroup);\n"
34294 "\n"
34295 msgstr ""
34296
34297 #. type: =head2
34298 #: ../src/guestfs-actions.pod:8006
34299 msgid "guestfs_vgs"
34300 msgstr ""
34301
34302 #. type: verbatim
34303 #: ../src/guestfs-actions.pod:8008
34304 #, no-wrap
34305 msgid ""
34306 " char **\n"
34307 " guestfs_vgs (guestfs_h *g);\n"
34308 "\n"
34309 msgstr ""
34310
34311 #. type: textblock
34312 #: ../src/guestfs-actions.pod:8017
34313 msgid "See also C<guestfs_vgs_full>."
34314 msgstr ""
34315
34316 #. type: =head2
34317 #: ../src/guestfs-actions.pod:8025
34318 msgid "guestfs_vgs_full"
34319 msgstr ""
34320
34321 #. type: verbatim
34322 #: ../src/guestfs-actions.pod:8027
34323 #, no-wrap
34324 msgid ""
34325 " struct guestfs_lvm_vg_list *\n"
34326 " guestfs_vgs_full (guestfs_h *g);\n"
34327 "\n"
34328 msgstr ""
34329
34330 #. type: textblock
34331 #: ../src/guestfs-actions.pod:8033
34332 msgid ""
34333 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34334 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
34335 msgstr ""
34336
34337 #. type: =head2
34338 #: ../src/guestfs-actions.pod:8039
34339 msgid "guestfs_vgscan"
34340 msgstr ""
34341
34342 #. type: verbatim
34343 #: ../src/guestfs-actions.pod:8041
34344 #, no-wrap
34345 msgid ""
34346 " int\n"
34347 " guestfs_vgscan (guestfs_h *g);\n"
34348 "\n"
34349 msgstr ""
34350
34351 #. type: =head2
34352 #: ../src/guestfs-actions.pod:8051
34353 msgid "guestfs_vguuid"
34354 msgstr ""
34355
34356 #. type: verbatim
34357 #: ../src/guestfs-actions.pod:8053
34358 #, no-wrap
34359 msgid ""
34360 " char *\n"
34361 " guestfs_vguuid (guestfs_h *g,\n"
34362 "                 const char *vgname);\n"
34363 "\n"
34364 msgstr ""
34365
34366 #. type: =head2
34367 #: ../src/guestfs-actions.pod:8064
34368 msgid "guestfs_wait_ready"
34369 msgstr ""
34370
34371 #. type: verbatim
34372 #: ../src/guestfs-actions.pod:8066
34373 #, no-wrap
34374 msgid ""
34375 " int\n"
34376 " guestfs_wait_ready (guestfs_h *g);\n"
34377 "\n"
34378 msgstr ""
34379
34380 #. type: textblock
34381 #: ../src/guestfs-actions.pod:8069
34382 msgid ""
34383 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34384 "instead."
34385 msgstr ""
34386
34387 #. type: textblock
34388 #: ../src/guestfs-actions.pod:8076
34389 msgid "This function is a no op."
34390 msgstr ""
34391
34392 #. type: textblock
34393 #: ../src/guestfs-actions.pod:8078
34394 msgid ""
34395 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
34396 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
34397 "is no longer necessary because C<guestfs_launch> now does the waiting."
34398 msgstr ""
34399
34400 #. type: textblock
34401 #: ../src/guestfs-actions.pod:8083
34402 msgid ""
34403 "If you see any calls to this function in code then you can just remove them, "
34404 "unless you want to retain compatibility with older versions of the API."
34405 msgstr ""
34406
34407 #. type: =head2
34408 #: ../src/guestfs-actions.pod:8091
34409 msgid "guestfs_wc_c"
34410 msgstr ""
34411
34412 #. type: verbatim
34413 #: ../src/guestfs-actions.pod:8093
34414 #, no-wrap
34415 msgid ""
34416 " int\n"
34417 " guestfs_wc_c (guestfs_h *g,\n"
34418 "               const char *path);\n"
34419 "\n"
34420 msgstr ""
34421
34422 #. type: =head2
34423 #: ../src/guestfs-actions.pod:8104
34424 msgid "guestfs_wc_l"
34425 msgstr ""
34426
34427 #. type: verbatim
34428 #: ../src/guestfs-actions.pod:8106
34429 #, no-wrap
34430 msgid ""
34431 " int\n"
34432 " guestfs_wc_l (guestfs_h *g,\n"
34433 "               const char *path);\n"
34434 "\n"
34435 msgstr ""
34436
34437 #. type: =head2
34438 #: ../src/guestfs-actions.pod:8117
34439 msgid "guestfs_wc_w"
34440 msgstr ""
34441
34442 #. type: verbatim
34443 #: ../src/guestfs-actions.pod:8119
34444 #, no-wrap
34445 msgid ""
34446 " int\n"
34447 " guestfs_wc_w (guestfs_h *g,\n"
34448 "               const char *path);\n"
34449 "\n"
34450 msgstr ""
34451
34452 #. type: =head2
34453 #: ../src/guestfs-actions.pod:8130
34454 msgid "guestfs_write"
34455 msgstr ""
34456
34457 #. type: verbatim
34458 #: ../src/guestfs-actions.pod:8132
34459 #, no-wrap
34460 msgid ""
34461 " int\n"
34462 " guestfs_write (guestfs_h *g,\n"
34463 "                const char *path,\n"
34464 "                const char *content,\n"
34465 "                size_t content_size);\n"
34466 "\n"
34467 msgstr ""
34468
34469 #. type: textblock
34470 #: ../src/guestfs-actions.pod:8141
34471 msgid "See also C<guestfs_write_append>."
34472 msgstr ""
34473
34474 #. type: =head2
34475 #: ../src/guestfs-actions.pod:8150
34476 msgid "guestfs_write_append"
34477 msgstr ""
34478
34479 #. type: verbatim
34480 #: ../src/guestfs-actions.pod:8152
34481 #, no-wrap
34482 msgid ""
34483 " int\n"
34484 " guestfs_write_append (guestfs_h *g,\n"
34485 "                       const char *path,\n"
34486 "                       const char *content,\n"
34487 "                       size_t content_size);\n"
34488 "\n"
34489 msgstr ""
34490
34491 #. type: textblock
34492 #: ../src/guestfs-actions.pod:8161
34493 msgid "See also C<guestfs_write>."
34494 msgstr ""
34495
34496 #. type: =head2
34497 #: ../src/guestfs-actions.pod:8170
34498 msgid "guestfs_write_file"
34499 msgstr "guestfs_write_file"
34500
34501 #. type: verbatim
34502 #: ../src/guestfs-actions.pod:8172
34503 #, no-wrap
34504 msgid ""
34505 " int\n"
34506 " guestfs_write_file (guestfs_h *g,\n"
34507 "                     const char *path,\n"
34508 "                     const char *content,\n"
34509 "                     int size);\n"
34510 "\n"
34511 msgstr ""
34512 " int\n"
34513 " guestfs_write_file (guestfs_h *g,\n"
34514 "                     const char *path,\n"
34515 "                     const char *content,\n"
34516 "                     int size);\n"
34517 "\n"
34518
34519 #. type: textblock
34520 #: ../src/guestfs-actions.pod:8178
34521 msgid ""
34522 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
34523 "instead."
34524 msgstr ""
34525
34526 #. type: =head2
34527 #: ../src/guestfs-actions.pod:8203
34528 msgid "guestfs_zegrep"
34529 msgstr "guestfs_zegrep"
34530
34531 #. type: verbatim
34532 #: ../src/guestfs-actions.pod:8205
34533 #, no-wrap
34534 msgid ""
34535 " char **\n"
34536 " guestfs_zegrep (guestfs_h *g,\n"
34537 "                 const char *regex,\n"
34538 "                 const char *path);\n"
34539 "\n"
34540 msgstr ""
34541 " char **\n"
34542 " guestfs_zegrep (guestfs_h *g,\n"
34543 "                 const char *regex,\n"
34544 "                 const char *path);\n"
34545 "\n"
34546
34547 #. type: =head2
34548 #: ../src/guestfs-actions.pod:8222
34549 msgid "guestfs_zegrepi"
34550 msgstr "guestfs_zegrepi"
34551
34552 #. type: verbatim
34553 #: ../src/guestfs-actions.pod:8224
34554 #, no-wrap
34555 msgid ""
34556 " char **\n"
34557 " guestfs_zegrepi (guestfs_h *g,\n"
34558 "                  const char *regex,\n"
34559 "                  const char *path);\n"
34560 "\n"
34561 msgstr ""
34562 " char **\n"
34563 " guestfs_zegrepi (guestfs_h *g,\n"
34564 "                  const char *regex,\n"
34565 "                  const char *path);\n"
34566 "\n"
34567
34568 #. type: =head2
34569 #: ../src/guestfs-actions.pod:8241
34570 msgid "guestfs_zero"
34571 msgstr "guestfs_zero"
34572
34573 #. type: verbatim
34574 #: ../src/guestfs-actions.pod:8243
34575 #, no-wrap
34576 msgid ""
34577 " int\n"
34578 " guestfs_zero (guestfs_h *g,\n"
34579 "               const char *device);\n"
34580 "\n"
34581 msgstr ""
34582 " int\n"
34583 " guestfs_zero (guestfs_h *g,\n"
34584 "               const char *device);\n"
34585 "\n"
34586
34587 #. type: textblock
34588 #: ../src/guestfs-actions.pod:8257
34589 msgid ""
34590 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34591 "C<guestfs_is_zero_device>"
34592 msgstr ""
34593
34594 #. type: =head2
34595 #: ../src/guestfs-actions.pod:8269
34596 msgid "guestfs_zero_device"
34597 msgstr "guestfs_zero_device"
34598
34599 #. type: verbatim
34600 #: ../src/guestfs-actions.pod:8271
34601 #, no-wrap
34602 msgid ""
34603 " int\n"
34604 " guestfs_zero_device (guestfs_h *g,\n"
34605 "                      const char *device);\n"
34606 "\n"
34607 msgstr ""
34608 " int\n"
34609 " guestfs_zero_device (guestfs_h *g,\n"
34610 "                      const char *device);\n"
34611 "\n"
34612
34613 #. type: textblock
34614 #: ../src/guestfs-actions.pod:8275
34615 msgid ""
34616 "This command writes zeroes over the entire C<device>.  Compare with "
34617 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34618 msgstr ""
34619
34620 #. type: textblock
34621 #: ../src/guestfs-actions.pod:8293
34622 msgid "(Added in 1.3.1)"
34623 msgstr "(Додано у 1.3.1)"
34624
34625 #. type: =head2
34626 #: ../src/guestfs-actions.pod:8295
34627 msgid "guestfs_zerofree"
34628 msgstr "guestfs_zerofree"
34629
34630 #. type: verbatim
34631 #: ../src/guestfs-actions.pod:8297
34632 #, no-wrap
34633 msgid ""
34634 " int\n"
34635 " guestfs_zerofree (guestfs_h *g,\n"
34636 "                   const char *device);\n"
34637 "\n"
34638 msgstr ""
34639 " int\n"
34640 " guestfs_zerofree (guestfs_h *g,\n"
34641 "                   const char *device);\n"
34642 "\n"
34643
34644 #. type: =head2
34645 #: ../src/guestfs-actions.pod:8316
34646 msgid "guestfs_zfgrep"
34647 msgstr "guestfs_zfgrep"
34648
34649 #. type: verbatim
34650 #: ../src/guestfs-actions.pod:8318
34651 #, no-wrap
34652 msgid ""
34653 " char **\n"
34654 " guestfs_zfgrep (guestfs_h *g,\n"
34655 "                 const char *pattern,\n"
34656 "                 const char *path);\n"
34657 "\n"
34658 msgstr ""
34659 " char **\n"
34660 " guestfs_zfgrep (guestfs_h *g,\n"
34661 "                 const char *pattern,\n"
34662 "                 const char *path);\n"
34663 "\n"
34664
34665 #. type: =head2
34666 #: ../src/guestfs-actions.pod:8335
34667 msgid "guestfs_zfgrepi"
34668 msgstr "guestfs_zfgrepi"
34669
34670 #. type: verbatim
34671 #: ../src/guestfs-actions.pod:8337
34672 #, no-wrap
34673 msgid ""
34674 " char **\n"
34675 " guestfs_zfgrepi (guestfs_h *g,\n"
34676 "                  const char *pattern,\n"
34677 "                  const char *path);\n"
34678 "\n"
34679 msgstr ""
34680 " char **\n"
34681 " guestfs_zfgrepi (guestfs_h *g,\n"
34682 "                  const char *pattern,\n"
34683 "                  const char *path);\n"
34684 "\n"
34685
34686 #. type: =head2
34687 #: ../src/guestfs-actions.pod:8354
34688 msgid "guestfs_zfile"
34689 msgstr "guestfs_zfile"
34690
34691 #. type: verbatim
34692 #: ../src/guestfs-actions.pod:8356
34693 #, no-wrap
34694 msgid ""
34695 " char *\n"
34696 " guestfs_zfile (guestfs_h *g,\n"
34697 "                const char *meth,\n"
34698 "                const char *path);\n"
34699 "\n"
34700 msgstr ""
34701 " char *\n"
34702 " guestfs_zfile (guestfs_h *g,\n"
34703 "                const char *meth,\n"
34704 "                const char *path);\n"
34705 "\n"
34706
34707 #. type: textblock
34708 #: ../src/guestfs-actions.pod:8361
34709 msgid ""
34710 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34711 "instead."
34712 msgstr ""
34713
34714 #. type: textblock
34715 #: ../src/guestfs-actions.pod:8373
34716 msgid ""
34717 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34718 "files."
34719 msgstr ""
34720
34721 #. type: =head2
34722 #: ../src/guestfs-actions.pod:8381
34723 msgid "guestfs_zgrep"
34724 msgstr "guestfs_zgrep"
34725
34726 #. type: verbatim
34727 #: ../src/guestfs-actions.pod:8383
34728 #, no-wrap
34729 msgid ""
34730 " char **\n"
34731 " guestfs_zgrep (guestfs_h *g,\n"
34732 "                const char *regex,\n"
34733 "                const char *path);\n"
34734 "\n"
34735 msgstr ""
34736 " char **\n"
34737 " guestfs_zgrep (guestfs_h *g,\n"
34738 "                const char *regex,\n"
34739 "                const char *path);\n"
34740 "\n"
34741
34742 #. type: =head2
34743 #: ../src/guestfs-actions.pod:8400
34744 msgid "guestfs_zgrepi"
34745 msgstr "guestfs_zgrepi"
34746
34747 #. type: verbatim
34748 #: ../src/guestfs-actions.pod:8402
34749 #, no-wrap
34750 msgid ""
34751 " char **\n"
34752 " guestfs_zgrepi (guestfs_h *g,\n"
34753 "                 const char *regex,\n"
34754 "                 const char *path);\n"
34755 "\n"
34756 msgstr ""
34757 " char **\n"
34758 " guestfs_zgrepi (guestfs_h *g,\n"
34759 "                 const char *regex,\n"
34760 "                 const char *path);\n"
34761 "\n"
34762
34763 #. type: =item
34764 #: ../src/guestfs-availability.pod:3
34765 msgid "B<augeas>"
34766 msgstr "B<augeas>"
34767
34768 #. type: textblock
34769 #: ../src/guestfs-availability.pod:5
34770 msgid ""
34771 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
34772 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
34773 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
34774 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
34775 "L</guestfs_aug_save> L</guestfs_aug_set>"
34776 msgstr ""
34777
34778 #. type: =item
34779 #: ../src/guestfs-availability.pod:21
34780 msgid "B<btrfs>"
34781 msgstr "B<btrfs>"
34782
34783 #. type: textblock
34784 #: ../src/guestfs-availability.pod:23
34785 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34786 msgstr ""
34787
34788 #. type: =item
34789 #: ../src/guestfs-availability.pod:26
34790 msgid "B<grub>"
34791 msgstr ""
34792
34793 #. type: textblock
34794 #: ../src/guestfs-availability.pod:28
34795 msgid "The following functions: L</guestfs_grub_install>"
34796 msgstr ""
34797
34798 #. type: =item
34799 #: ../src/guestfs-availability.pod:31
34800 msgid "B<inotify>"
34801 msgstr "B<inotify>"
34802
34803 #. type: textblock
34804 #: ../src/guestfs-availability.pod:33
34805 msgid ""
34806 "The following functions: L</guestfs_inotify_add_watch> L</"
34807 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
34808 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34809 msgstr ""
34810
34811 #. type: =item
34812 #: ../src/guestfs-availability.pod:41
34813 msgid "B<linuxfsuuid>"
34814 msgstr "B<linuxfsuuid>"
34815
34816 #. type: textblock
34817 #: ../src/guestfs-availability.pod:43
34818 msgid ""
34819 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
34820 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34821 msgstr ""
34822
34823 #. type: =item
34824 #: ../src/guestfs-availability.pod:50
34825 msgid "B<linuxmodules>"
34826 msgstr "B<linuxmodules>"
34827
34828 #. type: textblock
34829 #: ../src/guestfs-availability.pod:52
34830 msgid "The following functions: L</guestfs_modprobe>"
34831 msgstr ""
34832
34833 #. type: =item
34834 #: ../src/guestfs-availability.pod:55
34835 msgid "B<linuxxattrs>"
34836 msgstr "B<linuxxattrs>"
34837
34838 #. type: textblock
34839 #: ../src/guestfs-availability.pod:57
34840 msgid ""
34841 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
34842 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
34843 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
34844 "guestfs_setxattr>"
34845 msgstr ""
34846
34847 #. type: =item
34848 #: ../src/guestfs-availability.pod:68
34849 msgid "B<luks>"
34850 msgstr "B<luks>"
34851
34852 #. type: textblock
34853 #: ../src/guestfs-availability.pod:70
34854 msgid ""
34855 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
34856 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
34857 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34858 msgstr ""
34859
34860 #. type: =item
34861 #: ../src/guestfs-availability.pod:79
34862 msgid "B<lvm2>"
34863 msgstr "B<lvm2>"
34864
34865 #. type: textblock
34866 #: ../src/guestfs-availability.pod:81
34867 msgid ""
34868 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34869 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34870 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34871 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34872 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34873 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34874 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34875 msgstr ""
34876
34877 #. type: =item
34878 #: ../src/guestfs-availability.pod:104
34879 msgid "B<mknod>"
34880 msgstr "B<mknod>"
34881
34882 #. type: textblock
34883 #: ../src/guestfs-availability.pod:106
34884 msgid ""
34885 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34886 "guestfs_mknod_b> L</guestfs_mknod_c>"
34887 msgstr ""
34888
34889 #. type: =item
34890 #: ../src/guestfs-availability.pod:112
34891 msgid "B<ntfs3g>"
34892 msgstr "B<ntfs3g>"
34893
34894 #. type: textblock
34895 #: ../src/guestfs-availability.pod:114
34896 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34897 msgstr ""
34898
34899 #. type: =item
34900 #: ../src/guestfs-availability.pod:117
34901 msgid "B<ntfsprogs>"
34902 msgstr "B<ntfsprogs>"
34903
34904 #. type: textblock
34905 #: ../src/guestfs-availability.pod:119
34906 msgid ""
34907 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34908 "L</guestfs_ntfsresize_size>"
34909 msgstr ""
34910
34911 #. type: =item
34912 #: ../src/guestfs-availability.pod:124
34913 msgid "B<realpath>"
34914 msgstr "B<realpath>"
34915
34916 #. type: textblock
34917 #: ../src/guestfs-availability.pod:126
34918 msgid "The following functions: L</guestfs_realpath>"
34919 msgstr ""
34920
34921 #. type: =item
34922 #: ../src/guestfs-availability.pod:129
34923 msgid "B<scrub>"
34924 msgstr "B<scrub>"
34925
34926 #. type: textblock
34927 #: ../src/guestfs-availability.pod:131
34928 msgid ""
34929 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34930 "guestfs_scrub_freespace>"
34931 msgstr ""
34932
34933 #. type: =item
34934 #: ../src/guestfs-availability.pod:136
34935 msgid "B<selinux>"
34936 msgstr "B<selinux>"
34937
34938 #. type: textblock
34939 #: ../src/guestfs-availability.pod:138
34940 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34941 msgstr ""
34942
34943 #. type: =item
34944 #: ../src/guestfs-availability.pod:142
34945 msgid "B<xz>"
34946 msgstr "B<xz>"
34947
34948 #. type: textblock
34949 #: ../src/guestfs-availability.pod:144
34950 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34951 msgstr ""
34952
34953 #. type: =item
34954 #: ../src/guestfs-availability.pod:148
34955 msgid "B<zerofree>"
34956 msgstr "B<zerofree>"
34957
34958 #. type: textblock
34959 #: ../src/guestfs-availability.pod:150
34960 msgid "The following functions: L</guestfs_zerofree>"
34961 msgstr ""
34962
34963 #. type: =head2
34964 #: ../src/guestfs-structs.pod:1
34965 msgid "guestfs_int_bool"
34966 msgstr ""
34967
34968 #. type: verbatim
34969 #: ../src/guestfs-structs.pod:3
34970 #, no-wrap
34971 msgid ""
34972 " struct guestfs_int_bool {\n"
34973 "   int32_t i;\n"
34974 "   int32_t b;\n"
34975 " };\n"
34976 " \n"
34977 msgstr ""
34978
34979 #. type: verbatim
34980 #: ../src/guestfs-structs.pod:8
34981 #, no-wrap
34982 msgid ""
34983 " struct guestfs_int_bool_list {\n"
34984 "   uint32_t len; /* Number of elements in list. */\n"
34985 "   struct guestfs_int_bool *val; /* Elements. */\n"
34986 " };\n"
34987 " \n"
34988 msgstr ""
34989
34990 #. type: verbatim
34991 #: ../src/guestfs-structs.pod:13
34992 #, no-wrap
34993 msgid ""
34994 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34995 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34996 "\n"
34997 msgstr ""
34998
34999 #. type: =head2
35000 #: ../src/guestfs-structs.pod:16
35001 msgid "guestfs_lvm_pv"
35002 msgstr ""
35003
35004 #. type: verbatim
35005 #: ../src/guestfs-structs.pod:18
35006 #, no-wrap
35007 msgid ""
35008 " struct guestfs_lvm_pv {\n"
35009 "   char *pv_name;\n"
35010 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35011 "   char pv_uuid[32];\n"
35012 "   char *pv_fmt;\n"
35013 "   uint64_t pv_size;\n"
35014 "   uint64_t dev_size;\n"
35015 "   uint64_t pv_free;\n"
35016 "   uint64_t pv_used;\n"
35017 "   char *pv_attr;\n"
35018 "   int64_t pv_pe_count;\n"
35019 "   int64_t pv_pe_alloc_count;\n"
35020 "   char *pv_tags;\n"
35021 "   uint64_t pe_start;\n"
35022 "   int64_t pv_mda_count;\n"
35023 "   uint64_t pv_mda_free;\n"
35024 " };\n"
35025 " \n"
35026 msgstr ""
35027
35028 #. type: verbatim
35029 #: ../src/guestfs-structs.pod:36
35030 #, no-wrap
35031 msgid ""
35032 " struct guestfs_lvm_pv_list {\n"
35033 "   uint32_t len; /* Number of elements in list. */\n"
35034 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
35035 " };\n"
35036 " \n"
35037 msgstr ""
35038
35039 #. type: verbatim
35040 #: ../src/guestfs-structs.pod:41
35041 #, no-wrap
35042 msgid ""
35043 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
35044 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
35045 "\n"
35046 msgstr ""
35047
35048 #. type: =head2
35049 #: ../src/guestfs-structs.pod:44
35050 msgid "guestfs_lvm_vg"
35051 msgstr ""
35052
35053 #. type: verbatim
35054 #: ../src/guestfs-structs.pod:46
35055 #, no-wrap
35056 msgid ""
35057 " struct guestfs_lvm_vg {\n"
35058 "   char *vg_name;\n"
35059 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35060 "   char vg_uuid[32];\n"
35061 "   char *vg_fmt;\n"
35062 "   char *vg_attr;\n"
35063 "   uint64_t vg_size;\n"
35064 "   uint64_t vg_free;\n"
35065 "   char *vg_sysid;\n"
35066 "   uint64_t vg_extent_size;\n"
35067 "   int64_t vg_extent_count;\n"
35068 "   int64_t vg_free_count;\n"
35069 "   int64_t max_lv;\n"
35070 "   int64_t max_pv;\n"
35071 "   int64_t pv_count;\n"
35072 "   int64_t lv_count;\n"
35073 "   int64_t snap_count;\n"
35074 "   int64_t vg_seqno;\n"
35075 "   char *vg_tags;\n"
35076 "   int64_t vg_mda_count;\n"
35077 "   uint64_t vg_mda_free;\n"
35078 " };\n"
35079 " \n"
35080 msgstr ""
35081
35082 #. type: verbatim
35083 #: ../src/guestfs-structs.pod:69
35084 #, no-wrap
35085 msgid ""
35086 " struct guestfs_lvm_vg_list {\n"
35087 "   uint32_t len; /* Number of elements in list. */\n"
35088 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
35089 " };\n"
35090 " \n"
35091 msgstr ""
35092
35093 #. type: verbatim
35094 #: ../src/guestfs-structs.pod:74
35095 #, no-wrap
35096 msgid ""
35097 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
35098 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
35099 "\n"
35100 msgstr ""
35101
35102 #. type: =head2
35103 #: ../src/guestfs-structs.pod:77
35104 msgid "guestfs_lvm_lv"
35105 msgstr ""
35106
35107 #. type: verbatim
35108 #: ../src/guestfs-structs.pod:79
35109 #, no-wrap
35110 msgid ""
35111 " struct guestfs_lvm_lv {\n"
35112 "   char *lv_name;\n"
35113 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35114 "   char lv_uuid[32];\n"
35115 "   char *lv_attr;\n"
35116 "   int64_t lv_major;\n"
35117 "   int64_t lv_minor;\n"
35118 "   int64_t lv_kernel_major;\n"
35119 "   int64_t lv_kernel_minor;\n"
35120 "   uint64_t lv_size;\n"
35121 "   int64_t seg_count;\n"
35122 "   char *origin;\n"
35123 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35124 "   float snap_percent;\n"
35125 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35126 "   float copy_percent;\n"
35127 "   char *move_pv;\n"
35128 "   char *lv_tags;\n"
35129 "   char *mirror_log;\n"
35130 "   char *modules;\n"
35131 " };\n"
35132 " \n"
35133 msgstr ""
35134
35135 #. type: verbatim
35136 #: ../src/guestfs-structs.pod:101
35137 #, no-wrap
35138 msgid ""
35139 " struct guestfs_lvm_lv_list {\n"
35140 "   uint32_t len; /* Number of elements in list. */\n"
35141 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
35142 " };\n"
35143 " \n"
35144 msgstr ""
35145
35146 #. type: verbatim
35147 #: ../src/guestfs-structs.pod:106
35148 #, no-wrap
35149 msgid ""
35150 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
35151 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
35152 "\n"
35153 msgstr ""
35154
35155 #. type: verbatim
35156 #: ../src/guestfs-structs.pod:111
35157 #, no-wrap
35158 msgid ""
35159 " struct guestfs_stat {\n"
35160 "   int64_t dev;\n"
35161 "   int64_t ino;\n"
35162 "   int64_t mode;\n"
35163 "   int64_t nlink;\n"
35164 "   int64_t uid;\n"
35165 "   int64_t gid;\n"
35166 "   int64_t rdev;\n"
35167 "   int64_t size;\n"
35168 "   int64_t blksize;\n"
35169 "   int64_t blocks;\n"
35170 "   int64_t atime;\n"
35171 "   int64_t mtime;\n"
35172 "   int64_t ctime;\n"
35173 " };\n"
35174 " \n"
35175 msgstr ""
35176
35177 #. type: verbatim
35178 #: ../src/guestfs-structs.pod:127
35179 #, no-wrap
35180 msgid ""
35181 " struct guestfs_stat_list {\n"
35182 "   uint32_t len; /* Number of elements in list. */\n"
35183 "   struct guestfs_stat *val; /* Elements. */\n"
35184 " };\n"
35185 " \n"
35186 msgstr ""
35187
35188 #. type: verbatim
35189 #: ../src/guestfs-structs.pod:132
35190 #, no-wrap
35191 msgid ""
35192 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35193 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35194 "\n"
35195 msgstr ""
35196
35197 #. type: verbatim
35198 #: ../src/guestfs-structs.pod:137
35199 #, no-wrap
35200 msgid ""
35201 " struct guestfs_statvfs {\n"
35202 "   int64_t bsize;\n"
35203 "   int64_t frsize;\n"
35204 "   int64_t blocks;\n"
35205 "   int64_t bfree;\n"
35206 "   int64_t bavail;\n"
35207 "   int64_t files;\n"
35208 "   int64_t ffree;\n"
35209 "   int64_t favail;\n"
35210 "   int64_t fsid;\n"
35211 "   int64_t flag;\n"
35212 "   int64_t namemax;\n"
35213 " };\n"
35214 " \n"
35215 msgstr ""
35216
35217 #. type: verbatim
35218 #: ../src/guestfs-structs.pod:151
35219 #, no-wrap
35220 msgid ""
35221 " struct guestfs_statvfs_list {\n"
35222 "   uint32_t len; /* Number of elements in list. */\n"
35223 "   struct guestfs_statvfs *val; /* Elements. */\n"
35224 " };\n"
35225 " \n"
35226 msgstr ""
35227
35228 #. type: verbatim
35229 #: ../src/guestfs-structs.pod:156
35230 #, no-wrap
35231 msgid ""
35232 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35233 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35234 "\n"
35235 msgstr ""
35236
35237 #. type: =head2
35238 #: ../src/guestfs-structs.pod:159
35239 msgid "guestfs_dirent"
35240 msgstr ""
35241
35242 #. type: verbatim
35243 #: ../src/guestfs-structs.pod:161
35244 #, no-wrap
35245 msgid ""
35246 " struct guestfs_dirent {\n"
35247 "   int64_t ino;\n"
35248 "   char ftyp;\n"
35249 "   char *name;\n"
35250 " };\n"
35251 " \n"
35252 msgstr ""
35253
35254 #. type: verbatim
35255 #: ../src/guestfs-structs.pod:167
35256 #, no-wrap
35257 msgid ""
35258 " struct guestfs_dirent_list {\n"
35259 "   uint32_t len; /* Number of elements in list. */\n"
35260 "   struct guestfs_dirent *val; /* Elements. */\n"
35261 " };\n"
35262 " \n"
35263 msgstr ""
35264
35265 #. type: verbatim
35266 #: ../src/guestfs-structs.pod:172
35267 #, no-wrap
35268 msgid ""
35269 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35270 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35271 "\n"
35272 msgstr ""
35273
35274 #. type: verbatim
35275 #: ../src/guestfs-structs.pod:177
35276 #, no-wrap
35277 msgid ""
35278 " struct guestfs_version {\n"
35279 "   int64_t major;\n"
35280 "   int64_t minor;\n"
35281 "   int64_t release;\n"
35282 "   char *extra;\n"
35283 " };\n"
35284 " \n"
35285 msgstr ""
35286
35287 #. type: verbatim
35288 #: ../src/guestfs-structs.pod:184
35289 #, no-wrap
35290 msgid ""
35291 " struct guestfs_version_list {\n"
35292 "   uint32_t len; /* Number of elements in list. */\n"
35293 "   struct guestfs_version *val; /* Elements. */\n"
35294 " };\n"
35295 " \n"
35296 msgstr ""
35297
35298 #. type: verbatim
35299 #: ../src/guestfs-structs.pod:189
35300 #, no-wrap
35301 msgid ""
35302 " void guestfs_free_version (struct guestfs_free_version *);\n"
35303 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35304 "\n"
35305 msgstr ""
35306
35307 #. type: =head2
35308 #: ../src/guestfs-structs.pod:192
35309 msgid "guestfs_xattr"
35310 msgstr ""
35311
35312 #. type: verbatim
35313 #: ../src/guestfs-structs.pod:194
35314 #, no-wrap
35315 msgid ""
35316 " struct guestfs_xattr {\n"
35317 "   char *attrname;\n"
35318 "   /* The next two fields describe a byte array. */\n"
35319 "   uint32_t attrval_len;\n"
35320 "   char *attrval;\n"
35321 " };\n"
35322 " \n"
35323 msgstr ""
35324
35325 #. type: verbatim
35326 #: ../src/guestfs-structs.pod:201
35327 #, no-wrap
35328 msgid ""
35329 " struct guestfs_xattr_list {\n"
35330 "   uint32_t len; /* Number of elements in list. */\n"
35331 "   struct guestfs_xattr *val; /* Elements. */\n"
35332 " };\n"
35333 " \n"
35334 msgstr ""
35335
35336 #. type: verbatim
35337 #: ../src/guestfs-structs.pod:206
35338 #, no-wrap
35339 msgid ""
35340 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35341 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35342 "\n"
35343 msgstr ""
35344
35345 #. type: =head2
35346 #: ../src/guestfs-structs.pod:209
35347 msgid "guestfs_inotify_event"
35348 msgstr ""
35349
35350 #. type: verbatim
35351 #: ../src/guestfs-structs.pod:211
35352 #, no-wrap
35353 msgid ""
35354 " struct guestfs_inotify_event {\n"
35355 "   int64_t in_wd;\n"
35356 "   uint32_t in_mask;\n"
35357 "   uint32_t in_cookie;\n"
35358 "   char *in_name;\n"
35359 " };\n"
35360 " \n"
35361 msgstr ""
35362
35363 #. type: verbatim
35364 #: ../src/guestfs-structs.pod:218
35365 #, no-wrap
35366 msgid ""
35367 " struct guestfs_inotify_event_list {\n"
35368 "   uint32_t len; /* Number of elements in list. */\n"
35369 "   struct guestfs_inotify_event *val; /* Elements. */\n"
35370 " };\n"
35371 " \n"
35372 msgstr ""
35373
35374 #. type: verbatim
35375 #: ../src/guestfs-structs.pod:223
35376 #, no-wrap
35377 msgid ""
35378 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
35379 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
35380 "\n"
35381 msgstr ""
35382
35383 #. type: =head2
35384 #: ../src/guestfs-structs.pod:226
35385 msgid "guestfs_partition"
35386 msgstr ""
35387
35388 #. type: verbatim
35389 #: ../src/guestfs-structs.pod:228
35390 #, no-wrap
35391 msgid ""
35392 " struct guestfs_partition {\n"
35393 "   int32_t part_num;\n"
35394 "   uint64_t part_start;\n"
35395 "   uint64_t part_end;\n"
35396 "   uint64_t part_size;\n"
35397 " };\n"
35398 " \n"
35399 msgstr ""
35400
35401 #. type: verbatim
35402 #: ../src/guestfs-structs.pod:235
35403 #, no-wrap
35404 msgid ""
35405 " struct guestfs_partition_list {\n"
35406 "   uint32_t len; /* Number of elements in list. */\n"
35407 "   struct guestfs_partition *val; /* Elements. */\n"
35408 " };\n"
35409 " \n"
35410 msgstr ""
35411
35412 #. type: verbatim
35413 #: ../src/guestfs-structs.pod:240
35414 #, no-wrap
35415 msgid ""
35416 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
35417 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
35418 "\n"
35419 msgstr ""
35420
35421 #. type: =head2
35422 #: ../src/guestfs-structs.pod:243
35423 msgid "guestfs_application"
35424 msgstr ""
35425
35426 #. type: verbatim
35427 #: ../src/guestfs-structs.pod:245
35428 #, no-wrap
35429 msgid ""
35430 " struct guestfs_application {\n"
35431 "   char *app_name;\n"
35432 "   char *app_display_name;\n"
35433 "   int32_t app_epoch;\n"
35434 "   char *app_version;\n"
35435 "   char *app_release;\n"
35436 "   char *app_install_path;\n"
35437 "   char *app_trans_path;\n"
35438 "   char *app_publisher;\n"
35439 "   char *app_url;\n"
35440 "   char *app_source_package;\n"
35441 "   char *app_summary;\n"
35442 "   char *app_description;\n"
35443 " };\n"
35444 " \n"
35445 msgstr ""
35446
35447 #. type: verbatim
35448 #: ../src/guestfs-structs.pod:260
35449 #, no-wrap
35450 msgid ""
35451 " struct guestfs_application_list {\n"
35452 "   uint32_t len; /* Number of elements in list. */\n"
35453 "   struct guestfs_application *val; /* Elements. */\n"
35454 " };\n"
35455 " \n"
35456 msgstr ""
35457
35458 #. type: verbatim
35459 #: ../src/guestfs-structs.pod:265
35460 #, no-wrap
35461 msgid ""
35462 " void guestfs_free_application (struct guestfs_free_application *);\n"
35463 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
35464 "\n"
35465 msgstr ""
35466
35467 #. type: textblock
35468 #: ../src/guestfs.pod:5
35469 msgid "guestfs - Library for accessing and modifying virtual machine images"
35470 msgstr ""
35471 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
35472 "машин"
35473
35474 #. type: verbatim
35475 #: ../src/guestfs.pod:11
35476 #, no-wrap
35477 msgid ""
35478 " guestfs_h *g = guestfs_create ();\n"
35479 " guestfs_add_drive (g, \"guest.img\");\n"
35480 " guestfs_launch (g);\n"
35481 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35482 " guestfs_touch (g, \"/hello\");\n"
35483 " guestfs_umount (g, \"/\");\n"
35484 " guestfs_close (g);\n"
35485 "\n"
35486 msgstr ""
35487 " guestfs_h *g = guestfs_create ();\n"
35488 " guestfs_add_drive (g, \"guest.img\");\n"
35489 " guestfs_launch (g);\n"
35490 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35491 " guestfs_touch (g, \"/hello\");\n"
35492 " guestfs_umount (g, \"/\");\n"
35493 " guestfs_close (g);\n"
35494 "\n"
35495
35496 #. type: textblock
35497 #: ../src/guestfs.pod:25
35498 msgid ""
35499 "Libguestfs is a library for accessing and modifying guest disk images.  "
35500 "Amongst the things this is good for: making batch configuration changes to "
35501 "guests, getting disk used/free statistics (see also: virt-df), migrating "
35502 "between virtualization systems (see also: virt-p2v), performing partial "
35503 "backups, performing partial guest clones, cloning guests and changing "
35504 "registry/UUID/hostname info, and much else besides."
35505 msgstr ""
35506
35507 #. type: textblock
35508 #: ../src/guestfs.pod:33
35509 msgid ""
35510 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
35511 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
35512 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
35513 "qcow2, vmdk."
35514 msgstr ""
35515
35516 #. type: textblock
35517 #: ../src/guestfs.pod:38
35518 msgid ""
35519 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
35520 "what filesystem is in each LV, etc.).  It can also run commands in the "
35521 "context of the guest.  Also you can access filesystems over FUSE."
35522 msgstr ""
35523
35524 #. type: textblock
35525 #: ../src/guestfs.pod:43
35526 msgid ""
35527 "Libguestfs is a library that can be linked with C and C++ management "
35528 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
35529 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
35530 "command line."
35531 msgstr ""
35532
35533 #. type: textblock
35534 #: ../src/guestfs.pod:48
35535 msgid ""
35536 "You don't need to be root to use libguestfs, although obviously you do need "
35537 "enough permissions to access the disk images."
35538 msgstr ""
35539
35540 #. type: textblock
35541 #: ../src/guestfs.pod:51
35542 msgid ""
35543 "Libguestfs is a large API because it can do many things.  For a gentle "
35544 "introduction, please read the L</API OVERVIEW> section next."
35545 msgstr ""
35546
35547 #. type: textblock
35548 #: ../src/guestfs.pod:54
35549 msgid ""
35550 "There are also some example programs in the L<guestfs-examples(3)> manual "
35551 "page."
35552 msgstr ""
35553
35554 #. type: =head1
35555 #: ../src/guestfs.pod:57
35556 msgid "API OVERVIEW"
35557 msgstr "ОГЛЯД API"
35558
35559 #. type: textblock
35560 #: ../src/guestfs.pod:59
35561 msgid ""
35562 "This section provides a gentler overview of the libguestfs API.  We also try "
35563 "to group API calls together, where that may not be obvious from reading "
35564 "about the individual calls in the main section of this manual."
35565 msgstr ""
35566
35567 #. type: =head2
35568 #: ../src/guestfs.pod:64
35569 msgid "HANDLES"
35570 msgstr "ОБРОБНИКИ"
35571
35572 #. type: textblock
35573 #: ../src/guestfs.pod:66
35574 msgid ""
35575 "Before you can use libguestfs calls, you have to create a handle.  Then you "
35576 "must add at least one disk image to the handle, followed by launching the "
35577 "handle, then performing whatever operations you want, and finally closing "
35578 "the handle.  By convention we use the single letter C<g> for the name of the "
35579 "handle variable, although of course you can use any name you want."
35580 msgstr ""
35581
35582 #. type: textblock
35583 #: ../src/guestfs.pod:73
35584 msgid "The general structure of all libguestfs-using programs looks like this:"
35585 msgstr ""
35586
35587 #. type: verbatim
35588 #: ../src/guestfs.pod:76
35589 #, no-wrap
35590 msgid ""
35591 " guestfs_h *g = guestfs_create ();\n"
35592 " \n"
35593 msgstr ""
35594 " guestfs_h *g = guestfs_create ();\n"
35595 " \n"
35596
35597 #. type: verbatim
35598 #: ../src/guestfs.pod:78
35599 #, no-wrap
35600 msgid ""
35601 " /* Call guestfs_add_drive additional times if there are\n"
35602 "  * multiple disk images.\n"
35603 "  */\n"
35604 " guestfs_add_drive (g, \"guest.img\");\n"
35605 " \n"
35606 msgstr ""
35607
35608 #. type: verbatim
35609 #: ../src/guestfs.pod:83
35610 #, no-wrap
35611 msgid ""
35612 " /* Most manipulation calls won't work until you've launched\n"
35613 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
35614 "  * and _before_ other commands.\n"
35615 "  */\n"
35616 " guestfs_launch (g);\n"
35617 " \n"
35618 msgstr ""
35619
35620 #. type: verbatim
35621 #: ../src/guestfs.pod:89
35622 #, no-wrap
35623 msgid ""
35624 " /* Now you can examine what partitions, LVs etc are available.\n"
35625 "  */\n"
35626 " char **partitions = guestfs_list_partitions (g);\n"
35627 " char **logvols = guestfs_lvs (g);\n"
35628 " \n"
35629 msgstr ""
35630 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
35631 "  */\n"
35632 " char **partitions = guestfs_list_partitions (g);\n"
35633 " char **logvols = guestfs_lvs (g);\n"
35634 " \n"
35635
35636 #. type: verbatim
35637 #: ../src/guestfs.pod:94
35638 #, no-wrap
35639 msgid ""
35640 " /* To access a filesystem in the image, you must mount it.\n"
35641 "  */\n"
35642 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35643 " \n"
35644 msgstr ""
35645 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
35646 "  */\n"
35647 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35648 " \n"
35649
35650 #. type: verbatim
35651 #: ../src/guestfs.pod:98
35652 #, no-wrap
35653 msgid ""
35654 " /* Now you can perform filesystem actions on the guest\n"
35655 "  * disk image.\n"
35656 "  */\n"
35657 " guestfs_touch (g, \"/hello\");\n"
35658 " \n"
35659 msgstr ""
35660 " /* Тепер ви можете виконувати дії з файловою системою на\n"
35661 "  * образі диска операційної системи.\n"
35662 "  */\n"
35663 " guestfs_touch (g, \"/hello\");\n"
35664 " \n"
35665
35666 #. type: verbatim
35667 #: ../src/guestfs.pod:103
35668 #, no-wrap
35669 msgid ""
35670 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
35671 "  * it is done automatically when you close the handle.  See\n"
35672 "  * discussion of autosync in this page.\n"
35673 "  */\n"
35674 " guestfs_sync (g);\n"
35675 " \n"
35676 msgstr ""
35677
35678 #. type: verbatim
35679 #: ../src/guestfs.pod:109
35680 #, no-wrap
35681 msgid ""
35682 " /* Close the handle 'g'. */\n"
35683 " guestfs_close (g);\n"
35684 "\n"
35685 msgstr ""
35686 " /* Закрити дескриптор 'g'. */\n"
35687 " guestfs_close (g);\n"
35688 "\n"
35689
35690 #. type: textblock
35691 #: ../src/guestfs.pod:112
35692 msgid ""
35693 "The code above doesn't include any error checking.  In real code you should "
35694 "check return values carefully for errors.  In general all functions that "
35695 "return integers return C<-1> on error, and all functions that return "
35696 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
35697 "how to handle errors, and consult the documentation for each function call "
35698 "below to see precisely how they return error indications.  See L<guestfs-"
35699 "examples(3)> for fully worked examples."
35700 msgstr ""
35701
35702 #. type: =head2
35703 #: ../src/guestfs.pod:121
35704 msgid "DISK IMAGES"
35705 msgstr "ОБРАЗИ ДИСКІВ"
35706
35707 #. type: textblock
35708 #: ../src/guestfs.pod:123
35709 msgid ""
35710 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35711 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35712 "actual block device, or simply an empty file of zeroes that you have created "
35713 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
35714 "of these."
35715 msgstr ""
35716
35717 #. type: textblock
35718 #: ../src/guestfs.pod:129
35719 msgid ""
35720 "The call you should use in modern code for adding drives is L</"
35721 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
35722 "specifying that the format is raw, do:"
35723 msgstr ""
35724
35725 #. type: verbatim
35726 #: ../src/guestfs.pod:133
35727 #, no-wrap
35728 msgid ""
35729 " guestfs_add_drive_opts (g, filename,\n"
35730 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35731 "                         -1);\n"
35732 "\n"
35733 msgstr ""
35734 " guestfs_add_drive_opts (g, filename,\n"
35735 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35736 "                         -1);\n"
35737 "\n"
35738
35739 #. type: textblock
35740 #: ../src/guestfs.pod:137
35741 msgid "You can add a disk read-only using:"
35742 msgstr "Ви можете додати диск у режимі лише читання:"
35743
35744 #. type: verbatim
35745 #: ../src/guestfs.pod:139
35746 #, no-wrap
35747 msgid ""
35748 " guestfs_add_drive_opts (g, filename,\n"
35749 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35750 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35751 "                         -1);\n"
35752 "\n"
35753 msgstr ""
35754 " guestfs_add_drive_opts (g, filename,\n"
35755 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35756 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35757 "                         -1);\n"
35758 "\n"
35759
35760 #. type: textblock
35761 #: ../src/guestfs.pod:144
35762 msgid ""
35763 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
35764 "libguestfs won't modify the file."
35765 msgstr ""
35766
35767 #. type: textblock
35768 #: ../src/guestfs.pod:147
35769 msgid ""
35770 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35771 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
35772 "corruption, but adding it read-only is safe."
35773 msgstr ""
35774
35775 #. type: textblock
35776 #: ../src/guestfs.pod:151
35777 msgid ""
35778 "You must add at least one disk image, and you may add multiple disk images.  "
35779 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35780 "first one you added), C</dev/sdb> (for the second one you added), etc."
35781 msgstr ""
35782
35783 #. type: textblock
35784 #: ../src/guestfs.pod:156
35785 msgid ""
35786 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
35787 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35788 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
35789 msgstr ""
35790
35791 #. type: =head2
35792 #: ../src/guestfs.pod:161
35793 msgid "MOUNTING"
35794 msgstr "МОНТУВАННЯ"
35795
35796 #. type: textblock
35797 #: ../src/guestfs.pod:163
35798 msgid ""
35799 "Before you can read or write files, create directories and so on in a disk "
35800 "image that contains filesystems, you have to mount those filesystems using "
35801 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
35802 "a disk image contains (for example) one partition with a filesystem on that "
35803 "partition, then you can mount it directly:"
35804 msgstr ""
35805
35806 #. type: verbatim
35807 #: ../src/guestfs.pod:170
35808 #, no-wrap
35809 msgid ""
35810 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35811 "\n"
35812 msgstr ""
35813 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35814 "\n"
35815
35816 #. type: textblock
35817 #: ../src/guestfs.pod:172
35818 msgid ""
35819 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35820 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
35821 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
35822 "that these are libguestfs virtual devices, and are nothing to do with host "
35823 "devices."
35824 msgstr ""
35825
35826 #. type: textblock
35827 #: ../src/guestfs.pod:178
35828 msgid ""
35829 "If you are given a disk image and you don't know what it contains then you "
35830 "have to find out.  Libguestfs can do that too: use L</"
35831 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
35832 "LVs, and either try mounting each to see what is mountable, or else examine "
35833 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
35834 "filesystems, use L</guestfs_list_filesystems>."
35835 msgstr ""
35836
35837 #. type: textblock
35838 #: ../src/guestfs.pod:186
35839 msgid ""
35840 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35841 "L</INSPECTION> below).  But you might find it easier to look at higher level "
35842 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35843 msgstr ""
35844
35845 #. type: textblock
35846 #: ../src/guestfs.pod:191
35847 msgid ""
35848 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
35849 "several other variations of the C<guestfs_mount_*> call."
35850 msgstr ""
35851
35852 #. type: =head2
35853 #: ../src/guestfs.pod:194
35854 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35855 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
35856
35857 #. type: textblock
35858 #: ../src/guestfs.pod:196
35859 msgid ""
35860 "The majority of the libguestfs API consists of fairly low-level calls for "
35861 "accessing and modifying the files, directories, symlinks etc on mounted "
35862 "filesystems.  There are over a hundred such calls which you can find listed "
35863 "in detail below in this man page, and we don't even pretend to cover them "
35864 "all in this overview."
35865 msgstr ""
35866
35867 #. type: textblock
35868 #: ../src/guestfs.pod:202
35869 msgid ""
35870 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35871 "mount point."
35872 msgstr ""
35873 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
35874 "точкою монтування."
35875
35876 #. type: textblock
35877 #: ../src/guestfs.pod:205
35878 msgid ""
35879 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35880 "the file called C<\"etc/passwd\"> then you could do:"
35881 msgstr ""
35882 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
35883 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
35884 "таким кодом:"
35885
35886 #. type: verbatim
35887 #: ../src/guestfs.pod:208
35888 #, no-wrap
35889 msgid ""
35890 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35891 "\n"
35892 msgstr ""
35893 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35894 "\n"
35895
35896 #. type: textblock
35897 #: ../src/guestfs.pod:210
35898 msgid ""
35899 "This would return C<data> as a newly allocated buffer containing the full "
35900 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35901 "or C<NULL> if there was an error."
35902 msgstr ""
35903
35904 #. type: textblock
35905 #: ../src/guestfs.pod:214
35906 msgid ""
35907 "As another example, to create a top-level directory on that filesystem "
35908 "called C<\"var\"> you would do:"
35909 msgstr ""
35910
35911 #. type: verbatim
35912 #: ../src/guestfs.pod:217
35913 #, no-wrap
35914 msgid ""
35915 " guestfs_mkdir (g, \"/var\");\n"
35916 "\n"
35917 msgstr ""
35918 " guestfs_mkdir (g, \"/var\");\n"
35919 "\n"
35920
35921 #. type: textblock
35922 #: ../src/guestfs.pod:219
35923 msgid "To create a symlink you could do:"
35924 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
35925
35926 #. type: verbatim
35927 #: ../src/guestfs.pod:221
35928 #, no-wrap
35929 msgid ""
35930 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35931 "               \"/etc/rc3.d/S30portmap\");\n"
35932 "\n"
35933 msgstr ""
35934 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35935 "               \"/etc/rc3.d/S30portmap\");\n"
35936 "\n"
35937
35938 #. type: textblock
35939 #: ../src/guestfs.pod:224
35940 msgid ""
35941 "Libguestfs will reject attempts to use relative paths and there is no "
35942 "concept of a current working directory."
35943 msgstr ""
35944
35945 #. type: textblock
35946 #: ../src/guestfs.pod:227
35947 msgid ""
35948 "Libguestfs can return errors in many situations: for example if the "
35949 "filesystem isn't writable, or if a file or directory that you requested "
35950 "doesn't exist.  If you are using the C API (documented here)  you have to "
35951 "check for those error conditions after each call.  (Other language bindings "
35952 "turn these errors into exceptions)."
35953 msgstr ""
35954
35955 #. type: textblock
35956 #: ../src/guestfs.pod:233
35957 msgid ""
35958 "File writes are affected by the per-handle umask, set by calling L</"
35959 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
35960 msgstr ""
35961
35962 #. type: =head2
35963 #: ../src/guestfs.pod:236
35964 msgid "PARTITIONING"
35965 msgstr "ПОДІЛ НА РОЗДІЛИ"
35966
35967 #. type: textblock
35968 #: ../src/guestfs.pod:238
35969 msgid ""
35970 "Libguestfs contains API calls to read, create and modify partition tables on "
35971 "disk images."
35972 msgstr ""
35973
35974 #. type: textblock
35975 #: ../src/guestfs.pod:241
35976 msgid ""
35977 "In the common case where you want to create a single partition covering the "
35978 "whole disk, you should use the L</guestfs_part_disk> call:"
35979 msgstr ""
35980
35981 #. type: verbatim
35982 #: ../src/guestfs.pod:245
35983 #, no-wrap
35984 msgid ""
35985 " const char *parttype = \"mbr\";\n"
35986 " if (disk_is_larger_than_2TB)\n"
35987 "   parttype = \"gpt\";\n"
35988 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35989 "\n"
35990 msgstr ""
35991 " const char *parttype = \"mbr\";\n"
35992 " if (disk_is_larger_than_2TB)\n"
35993 "   parttype = \"gpt\";\n"
35994 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35995 "\n"
35996
35997 #. type: textblock
35998 #: ../src/guestfs.pod:250
35999 msgid ""
36000 "Obviously this effectively wipes anything that was on that disk image before."
36001 msgstr ""
36002
36003 #. type: =head2
36004 #: ../src/guestfs.pod:253
36005 msgid "LVM2"
36006 msgstr "LVM2"
36007
36008 #. type: textblock
36009 #: ../src/guestfs.pod:255
36010 msgid ""
36011 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
36012 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
36013 "you familiarize yourself with the concepts of physical volumes, volume "
36014 "groups and logical volumes."
36015 msgstr ""
36016
36017 #. type: textblock
36018 #: ../src/guestfs.pod:260
36019 msgid ""
36020 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
36021 "tldp.org/HOWTO/LVM-HOWTO/>."
36022 msgstr ""
36023
36024 #. type: =head2
36025 #: ../src/guestfs.pod:263
36026 msgid "DOWNLOADING"
36027 msgstr "ОТРИМАННЯ ДАНИХ"
36028
36029 #. type: textblock
36030 #: ../src/guestfs.pod:265
36031 msgid ""
36032 "Use L</guestfs_cat> to download small, text only files.  This call is "
36033 "limited to files which are less than 2 MB and which cannot contain any ASCII "
36034 "NUL (C<\\0>) characters.  However the API is very simple to use."
36035 msgstr ""
36036
36037 #. type: textblock
36038 #: ../src/guestfs.pod:269
36039 msgid ""
36040 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
36041 "bit data, since it returns a (pointer, size) pair.  However it is still "
36042 "limited to \"small\" files, less than 2 MB."
36043 msgstr ""
36044
36045 #. type: textblock
36046 #: ../src/guestfs.pod:273
36047 msgid ""
36048 "L</guestfs_download> can be used to download any file, with no limits on "
36049 "content or size (even files larger than 4 GB)."
36050 msgstr ""
36051
36052 #. type: textblock
36053 #: ../src/guestfs.pod:276
36054 msgid ""
36055 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
36056 msgstr ""
36057
36058 #. type: =head2
36059 #: ../src/guestfs.pod:279
36060 msgid "UPLOADING"
36061 msgstr "ВИВАНТАЖЕННЯ"
36062
36063 #. type: textblock
36064 #: ../src/guestfs.pod:281
36065 msgid ""
36066 "It's often the case that you want to write a file or files to the disk image."
36067 msgstr ""
36068
36069 #. type: textblock
36070 #: ../src/guestfs.pod:284
36071 msgid ""
36072 "To write a small file with fixed content, use L</guestfs_write>.  To create "
36073 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
36074 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
36075 "of other functions for creating test files, for example L</guestfs_fill> and "
36076 "L</guestfs_fill_pattern>."
36077 msgstr ""
36078
36079 #. type: textblock
36080 #: ../src/guestfs.pod:290
36081 msgid ""
36082 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
36083 "file content or size (even files larger than 4 GB)."
36084 msgstr ""
36085
36086 #. type: textblock
36087 #: ../src/guestfs.pod:293
36088 msgid ""
36089 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
36090 msgstr ""
36091
36092 #. type: textblock
36093 #: ../src/guestfs.pod:295
36094 msgid ""
36095 "However the fastest way to upload I<large numbers of arbitrary files> is to "
36096 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
36097 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
36098 "in a predictable way (eg. adding it last after all other drives) then you "
36099 "can get the device name from L</guestfs_list_devices> and mount it directly "
36100 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
36101 "portable between kernel versions, and they don't support labels or UUIDs.  "
36102 "If you want to pre-build an image or you need to mount it using a label or "
36103 "UUID, use an ISO image instead."
36104 msgstr ""
36105
36106 #. type: =head2
36107 #: ../src/guestfs.pod:306
36108 msgid "COPYING"
36109 msgstr "КОПІЮВАННЯ"
36110
36111 #. type: textblock
36112 #: ../src/guestfs.pod:308
36113 msgid ""
36114 "There are various different commands for copying between files and devices "
36115 "and in and out of the guest filesystem.  These are summarised in the table "
36116 "below."
36117 msgstr ""
36118
36119 #. type: =item
36120 #: ../src/guestfs.pod:314
36121 msgid "B<file> to B<file>"
36122 msgstr "B<файл> у B<файл>"
36123
36124 #. type: textblock
36125 #: ../src/guestfs.pod:316
36126 msgid ""
36127 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
36128 "directories recursively."
36129 msgstr ""
36130
36131 #. type: textblock
36132 #: ../src/guestfs.pod:319
36133 msgid ""
36134 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
36135 msgstr ""
36136
36137 #. type: =item
36138 #: ../src/guestfs.pod:322
36139 #, fuzzy
36140 #| msgid "B<file> to B<file>"
36141 msgid "B<file> to B<device>"
36142 msgstr "B<файл> у B<файл>"
36143
36144 #. type: =item
36145 #: ../src/guestfs.pod:324
36146 #, fuzzy
36147 #| msgid "B<file> to B<file>"
36148 msgid "B<device> to B<file>"
36149 msgstr "B<файл> у B<файл>"
36150
36151 #. type: =item
36152 #: ../src/guestfs.pod:326
36153 #, fuzzy
36154 #| msgid "B<file or device> to B<file or device>"
36155 msgid "B<device> to B<device>"
36156 msgstr "B<файл або пристрій> у B<файл або пристрій>"
36157
36158 #. type: textblock
36159 #: ../src/guestfs.pod:328
36160 msgid ""
36161 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
36162 "guestfs_copy_device_to_device>."
36163 msgstr ""
36164
36165 #. type: textblock
36166 #: ../src/guestfs.pod:331
36167 msgid "Example: duplicate the contents of an LV:"
36168 msgstr ""
36169
36170 #. type: verbatim
36171 #: ../src/guestfs.pod:333
36172 #, no-wrap
36173 msgid ""
36174 " guestfs_copy_device_to_device (g,\n"
36175 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36176 "         /* -1 marks the end of the list of optional parameters */\n"
36177 "         -1);\n"
36178 "\n"
36179 msgstr ""
36180
36181 #. type: textblock
36182 #: ../src/guestfs.pod:338
36183 msgid ""
36184 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36185 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
36186 "optional C<size> parameter:"
36187 msgstr ""
36188
36189 #. type: verbatim
36190 #: ../src/guestfs.pod:342
36191 #, no-wrap
36192 msgid ""
36193 " guestfs_copy_device_to_device (g,\n"
36194 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36195 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36196 "         -1);\n"
36197 "\n"
36198 msgstr ""
36199
36200 #. type: =item
36201 #: ../src/guestfs.pod:347
36202 msgid "B<file on the host> to B<file or device>"
36203 msgstr ""
36204
36205 #. type: textblock
36206 #: ../src/guestfs.pod:349
36207 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
36208 msgstr ""
36209
36210 #. type: =item
36211 #: ../src/guestfs.pod:351
36212 msgid "B<file or device> to B<file on the host>"
36213 msgstr ""
36214
36215 #. type: textblock
36216 #: ../src/guestfs.pod:353
36217 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
36218 msgstr ""
36219
36220 #. type: =head2
36221 #: ../src/guestfs.pod:357
36222 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36223 msgstr ""
36224
36225 #. type: textblock
36226 #: ../src/guestfs.pod:359
36227 msgid ""
36228 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36229 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36230 "appears you can only upload and download to files.  However many Un*x-like "
36231 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36232 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36233 "and arbitrary file descriptor N."
36234 msgstr ""
36235
36236 #. type: textblock
36237 #: ../src/guestfs.pod:367
36238 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36239 msgstr ""
36240
36241 #. type: verbatim
36242 #: ../src/guestfs.pod:370
36243 #, no-wrap
36244 msgid ""
36245 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36246 "\n"
36247 msgstr ""
36248 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36249 "\n"
36250
36251 #. type: textblock
36252 #: ../src/guestfs.pod:372
36253 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36254 msgstr ""
36255
36256 #. type: verbatim
36257 #: ../src/guestfs.pod:374
36258 #, no-wrap
36259 msgid ""
36260 " char devfd[64];\n"
36261 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36262 " guestfs_tar_out (g, \"/\", devfd);\n"
36263 "\n"
36264 msgstr ""
36265 " char devfd[64];\n"
36266 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36267 " guestfs_tar_out (g, \"/\", devfd);\n"
36268 "\n"
36269
36270 #. type: =head2
36271 #: ../src/guestfs.pod:378
36272 msgid "LISTING FILES"
36273 msgstr "СПИСКИ ФАЙЛІВ"
36274
36275 #. type: textblock
36276 #: ../src/guestfs.pod:380
36277 msgid ""
36278 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36279 "L<guestfish(1)>-equivalent command C<ll>)."
36280 msgstr ""
36281
36282 #. type: textblock
36283 #: ../src/guestfs.pod:383
36284 msgid ""
36285 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36286 "programs, as a flat list of strings."
36287 msgstr ""
36288
36289 #. type: textblock
36290 #: ../src/guestfs.pod:386
36291 msgid ""
36292 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36293 "directory, plus additional information about each one.  It is more "
36294 "equivalent to using the L<readdir(3)> call on a local filesystem."
36295 msgstr ""
36296
36297 #. type: textblock
36298 #: ../src/guestfs.pod:390
36299 msgid ""
36300 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36301 msgstr ""
36302
36303 #. type: =head2
36304 #: ../src/guestfs.pod:393
36305 msgid "RUNNING COMMANDS"
36306 msgstr "ВИКОНАННЯ КОМАНД"
36307
36308 #. type: textblock
36309 #: ../src/guestfs.pod:395
36310 msgid ""
36311 "Although libguestfs is primarily an API for manipulating files inside guest "
36312 "images, we also provide some limited facilities for running commands inside "
36313 "guests."
36314 msgstr ""
36315
36316 #. type: textblock
36317 #: ../src/guestfs.pod:399
36318 msgid "There are many limitations to this:"
36319 msgstr ""
36320
36321 #. type: textblock
36322 #: ../src/guestfs.pod:405
36323 msgid ""
36324 "The kernel version that the command runs under will be different from what "
36325 "it expects."
36326 msgstr ""
36327
36328 #. type: textblock
36329 #: ../src/guestfs.pod:410
36330 msgid ""
36331 "If the command needs to communicate with daemons, then most likely they "
36332 "won't be running."
36333 msgstr ""
36334
36335 #. type: textblock
36336 #: ../src/guestfs.pod:415
36337 msgid "The command will be running in limited memory."
36338 msgstr ""
36339
36340 #. type: textblock
36341 #: ../src/guestfs.pod:419
36342 msgid ""
36343 "The network may not be available unless you enable it (see L</"
36344 "guestfs_set_network>)."
36345 msgstr ""
36346
36347 #. type: textblock
36348 #: ../src/guestfs.pod:424
36349 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36350 msgstr ""
36351
36352 #. type: textblock
36353 #: ../src/guestfs.pod:428
36354 msgid ""
36355 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36356 msgstr ""
36357
36358 #. type: textblock
36359 #: ../src/guestfs.pod:433
36360 msgid ""
36361 "For SELinux guests, you may need to enable SELinux and load policy first.  "
36362 "See L</SELINUX> in this manpage."
36363 msgstr ""
36364
36365 #. type: textblock
36366 #: ../src/guestfs.pod:438
36367 msgid ""
36368 "I<Security:> It is not safe to run commands from untrusted, possibly "
36369 "malicious guests.  These commands may attempt to exploit your program by "
36370 "sending unexpected output.  They could also try to exploit the Linux kernel "
36371 "or qemu provided by the libguestfs appliance.  They could use the network "
36372 "provided by the libguestfs appliance to bypass ordinary network partitions "
36373 "and firewalls.  They could use the elevated privileges or different SELinux "
36374 "context of your program to their advantage."
36375 msgstr ""
36376
36377 #. type: textblock
36378 #: ../src/guestfs.pod:447
36379 msgid ""
36380 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36381 "(a script which runs when the guest next boots normally), and to have this "
36382 "script run the commands you want in the normal context of the running guest, "
36383 "network security and so on.  For information about other security issues, "
36384 "see L</SECURITY>."
36385 msgstr ""
36386
36387 #. type: textblock
36388 #: ../src/guestfs.pod:455
36389 msgid ""
36390 "The two main API calls to run commands are L</guestfs_command> and L</"
36391 "guestfs_sh> (there are also variations)."
36392 msgstr ""
36393
36394 #. type: textblock
36395 #: ../src/guestfs.pod:458
36396 msgid ""
36397 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
36398 "shell globs, redirections, etc will work."
36399 msgstr ""
36400
36401 #. type: =head2
36402 #: ../src/guestfs.pod:461
36403 msgid "CONFIGURATION FILES"
36404 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
36405
36406 #. type: textblock
36407 #: ../src/guestfs.pod:463
36408 msgid ""
36409 "To read and write configuration files in Linux guest filesystems, we "
36410 "strongly recommend using Augeas.  For example, Augeas understands how to "
36411 "read and write, say, a Linux shadow password file or X.org configuration "
36412 "file, and so avoids you having to write that code."
36413 msgstr ""
36414
36415 #. type: textblock
36416 #: ../src/guestfs.pod:468
36417 msgid ""
36418 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
36419 "document Augeas itself here because there is excellent documentation on the "
36420 "L<http://augeas.net/> website."
36421 msgstr ""
36422
36423 #. type: textblock
36424 #: ../src/guestfs.pod:472
36425 msgid ""
36426 "If you don't want to use Augeas (you fool!) then try calling L</"
36427 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
36428 "over."
36429 msgstr ""
36430
36431 #. type: =head2
36432 #: ../src/guestfs.pod:476
36433 msgid "SELINUX"
36434 msgstr "SELINUX"
36435
36436 #. type: textblock
36437 #: ../src/guestfs.pod:478
36438 msgid ""
36439 "We support SELinux guests.  To ensure that labeling happens correctly in "
36440 "SELinux guests, you need to enable SELinux and load the guest's policy:"
36441 msgstr ""
36442
36443 #. type: textblock
36444 #: ../src/guestfs.pod:486
36445 msgid "Before launching, do:"
36446 msgstr ""
36447
36448 #. type: verbatim
36449 #: ../src/guestfs.pod:488
36450 #, no-wrap
36451 msgid ""
36452 " guestfs_set_selinux (g, 1);\n"
36453 "\n"
36454 msgstr ""
36455 " guestfs_set_selinux (g, 1);\n"
36456 "\n"
36457
36458 #. type: textblock
36459 #: ../src/guestfs.pod:492
36460 msgid ""
36461 "After mounting the guest's filesystem(s), load the policy.  This is best "
36462 "done by running the L<load_policy(8)> command in the guest itself:"
36463 msgstr ""
36464
36465 #. type: verbatim
36466 #: ../src/guestfs.pod:496
36467 #, no-wrap
36468 msgid ""
36469 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36470 "\n"
36471 msgstr ""
36472 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36473 "\n"
36474
36475 #. type: textblock
36476 #: ../src/guestfs.pod:498
36477 msgid ""
36478 "(Older versions of C<load_policy> require you to specify the name of the "
36479 "policy file)."
36480 msgstr ""
36481
36482 #. type: textblock
36483 #: ../src/guestfs.pod:503
36484 msgid ""
36485 "Optionally, set the security context for the API.  The correct security "
36486 "context to use can only be known by inspecting the guest.  As an example:"
36487 msgstr ""
36488
36489 #. type: verbatim
36490 #: ../src/guestfs.pod:507
36491 #, no-wrap
36492 msgid ""
36493 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36494 "\n"
36495 msgstr ""
36496 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36497 "\n"
36498
36499 #. type: textblock
36500 #: ../src/guestfs.pod:511
36501 msgid "This will work for running commands and editing existing files."
36502 msgstr ""
36503
36504 #. type: textblock
36505 #: ../src/guestfs.pod:513
36506 msgid ""
36507 "When new files are created, you may need to label them explicitly, for "
36508 "example by running the external command C<restorecon pathname>."
36509 msgstr ""
36510
36511 #. type: =head2
36512 #: ../src/guestfs.pod:517
36513 msgid "UMASK"
36514 msgstr "UMASK"
36515
36516 #. type: textblock
36517 #: ../src/guestfs.pod:519
36518 msgid ""
36519 "Certain calls are affected by the current file mode creation mask (the "
36520 "\"umask\").  In particular ones which create files or directories, such as "
36521 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
36522 "either the default mode that the file is created with or modifies the mode "
36523 "that you supply."
36524 msgstr ""
36525
36526 #. type: textblock
36527 #: ../src/guestfs.pod:525
36528 msgid ""
36529 "The default umask is C<022>, so files are created with modes such as C<0644> "
36530 "and directories with C<0755>."
36531 msgstr ""
36532
36533 #. type: textblock
36534 #: ../src/guestfs.pod:528
36535 msgid ""
36536 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
36537 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
36538 "guestfs_chmod> after creating each file or directory."
36539 msgstr ""
36540
36541 #. type: textblock
36542 #: ../src/guestfs.pod:532
36543 msgid "For more information about umask, see L<umask(2)>."
36544 msgstr ""
36545
36546 #. type: textblock
36547 #: ../src/guestfs.pod:536
36548 msgid ""
36549 "Libguestfs allows you to access Linux guests which have been encrypted using "
36550 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
36551 "standard.  This includes nearly all whole disk encryption systems used by "
36552 "modern Linux guests."
36553 msgstr ""
36554
36555 #. type: textblock
36556 #: ../src/guestfs.pod:542
36557 msgid ""
36558 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
36559 "returns the string C<crypto_LUKS>)."
36560 msgstr ""
36561
36562 #. type: textblock
36563 #: ../src/guestfs.pod:545
36564 msgid ""
36565 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
36566 "will require the passphrase!"
36567 msgstr ""
36568
36569 #. type: textblock
36570 #: ../src/guestfs.pod:548
36571 msgid ""
36572 "Opening a LUKS device creates a new device mapper device called C</dev/"
36573 "mapper/mapname> (where C<mapname> is the string you supply to L</"
36574 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
36575 "from and encrypted to the underlying block device respectively."
36576 msgstr ""
36577
36578 #. type: textblock
36579 #: ../src/guestfs.pod:554
36580 msgid ""
36581 "LVM volume groups on the device can be made visible by calling L</"
36582 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
36583 "(s) can now be mounted in the usual way."
36584 msgstr ""
36585
36586 #. type: textblock
36587 #: ../src/guestfs.pod:558
36588 msgid ""
36589 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
36590 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36591 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
36592 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36593 "underlying encrypted block device)."
36594 msgstr ""
36595
36596 #. type: =head2
36597 #: ../src/guestfs.pod:565
36598 msgid "INSPECTION"
36599 msgstr "ПЕРЕВІРКА"
36600
36601 #. type: textblock
36602 #: ../src/guestfs.pod:567
36603 msgid ""
36604 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36605 "contains operating systems, an install CD or a live CD.  (These APIs used to "
36606 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
36607 "version 1.5.3 the most frequently used part of this library has been "
36608 "rewritten in C and moved into the core code)."
36609 msgstr ""
36610
36611 #. type: textblock
36612 #: ../src/guestfs.pod:574
36613 msgid ""
36614 "Add all disks belonging to the unknown virtual machine and call L</"
36615 "guestfs_launch> in the usual way."
36616 msgstr ""
36617
36618 #. type: textblock
36619 #: ../src/guestfs.pod:577
36620 msgid ""
36621 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
36622 "and certain heuristics, and returns a list of operating systems that were "
36623 "found.  An empty list means none were found.  A single element is the root "
36624 "filesystem of the operating system.  For dual- or multi-boot guests, "
36625 "multiple roots can be returned, each one corresponding to a separate "
36626 "operating system.  (Multi-boot virtual machines are extremely rare in the "
36627 "world of virtualization, but since this scenario can happen, we have built "
36628 "libguestfs to deal with it.)"
36629 msgstr ""
36630
36631 #. type: textblock
36632 #: ../src/guestfs.pod:586
36633 msgid ""
36634 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36635 "to get additional details about that operating system.  For example, call L</"
36636 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36637 "Windows and Linux-based operating systems respectively."
36638 msgstr ""
36639
36640 #. type: textblock
36641 #: ../src/guestfs.pod:592
36642 msgid ""
36643 "Un*x-like and Linux-based operating systems usually consist of several "
36644 "filesystems which are mounted at boot time (for example, a separate boot "
36645 "partition mounted on C</boot>).  The inspection rules are able to detect how "
36646 "filesystems correspond to mount points.  Call "
36647 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
36648 "hash table like this example:"
36649 msgstr ""
36650
36651 #. type: verbatim
36652 #: ../src/guestfs.pod:599
36653 #, no-wrap
36654 msgid ""
36655 " /boot => /dev/sda1\n"
36656 " /     => /dev/vg_guest/lv_root\n"
36657 " /usr  => /dev/vg_guest/lv_usr\n"
36658 "\n"
36659 msgstr ""
36660 " /boot => /dev/sda1\n"
36661 " /     => /dev/vg_guest/lv_root\n"
36662 " /usr  => /dev/vg_guest/lv_usr\n"
36663 "\n"
36664
36665 #. type: textblock
36666 #: ../src/guestfs.pod:603
36667 msgid ""
36668 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36669 "filesystems as suggested."
36670 msgstr ""
36671
36672 #. type: textblock
36673 #: ../src/guestfs.pod:606
36674 msgid ""
36675 "Be careful to mount filesystems in the right order (eg. C</> before C</"
36676 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../src/guestfs.pod:610
36681 msgid ""
36682 "Inspection currently only works for some common operating systems.  "
36683 "Contributors are welcome to send patches for other operating systems that we "
36684 "currently cannot detect."
36685 msgstr ""
36686
36687 #. type: textblock
36688 #: ../src/guestfs.pod:614
36689 msgid ""
36690 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
36691 "for more details.  The L</guestfs_inspect_os> function just ignores any "
36692 "encrypted devices."
36693 msgstr ""
36694
36695 #. type: textblock
36696 #: ../src/guestfs.pod:618
36697 msgid ""
36698 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36699 "inspection and caches the results in the guest handle.  Subsequent calls to "
36700 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36701 "read the disks.  If you change the content of the guest disks, you can redo "
36702 "inspection by calling L</guestfs_inspect_os> again.  (L</"
36703 "guestfs_inspect_list_applications> works a little differently from the other "
36704 "calls and does read the disks.  See documentation for that function for "
36705 "details)."
36706 msgstr ""
36707
36708 #. type: =head3
36709 #: ../src/guestfs.pod:627
36710 msgid "INSPECTING INSTALL DISKS"
36711 msgstr ""
36712
36713 #. type: textblock
36714 #: ../src/guestfs.pod:629
36715 msgid ""
36716 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36717 "CDs and more."
36718 msgstr ""
36719
36720 #. type: textblock
36721 #: ../src/guestfs.pod:632
36722 msgid ""
36723 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36724 "system, which currently can be C<installed> (a regular operating system) or "
36725 "C<installer> (some sort of install disk)."
36726 msgstr ""
36727
36728 #. type: textblock
36729 #: ../src/guestfs.pod:636
36730 msgid ""
36731 "Further information is available about the operating system that can be "
36732 "installed using the regular inspection APIs like L</"
36733 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
36734 msgstr ""
36735
36736 #. type: textblock
36737 #: ../src/guestfs.pod:641
36738 msgid ""
36739 "Some additional information specific to installer disks is also available "
36740 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
36741 "guestfs_inspect_is_multipart> calls."
36742 msgstr ""
36743
36744 #. type: =head2
36745 #: ../src/guestfs.pod:646
36746 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36747 msgstr ""
36748
36749 #. type: textblock
36750 #: ../src/guestfs.pod:648
36751 msgid ""
36752 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
36753 "ntfs-3g.org/> driver."
36754 msgstr ""
36755
36756 #. type: =head3
36757 #: ../src/guestfs.pod:651
36758 msgid "DRIVE LETTERS AND PATHS"
36759 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
36760
36761 #. type: textblock
36762 #: ../src/guestfs.pod:653
36763 msgid ""
36764 "DOS and Windows still use drive letters, and the filesystems are always "
36765 "treated as case insensitive by Windows itself, and therefore you might find "
36766 "a Windows configuration file referring to a path like C<c:\\windows"
36767 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
36768 "might be referred to as C</WINDOWS/System32>."
36769 msgstr ""
36770
36771 #. type: textblock
36772 #: ../src/guestfs.pod:659
36773 msgid ""
36774 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36775 "L</guestfs_inspect_get_drive_mappings>)"
36776 msgstr ""
36777
36778 #. type: textblock
36779 #: ../src/guestfs.pod:662
36780 msgid ""
36781 "Dealing with separator characters (backslash vs forward slash) is outside "
36782 "the scope of libguestfs, but usually a simple character replacement will "
36783 "work."
36784 msgstr ""
36785
36786 #. type: textblock
36787 #: ../src/guestfs.pod:666
36788 msgid ""
36789 "To resolve the case insensitivity of paths, call L</"
36790 "guestfs_case_sensitive_path>."
36791 msgstr ""
36792
36793 #. type: =head3
36794 #: ../src/guestfs.pod:669
36795 msgid "ACCESSING THE WINDOWS REGISTRY"
36796 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
36797
36798 #. type: textblock
36799 #: ../src/guestfs.pod:671
36800 msgid ""
36801 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36802 "files, through the library C<hivex> which is part of the libguestfs project "
36803 "although ships as a separate tarball.  You have to locate and download the "
36804 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
36805 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
36806 "reg(1)> for more help on this issue."
36807 msgstr ""
36808
36809 #. type: =head3
36810 #: ../src/guestfs.pod:679
36811 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36812 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
36813
36814 #. type: textblock
36815 #: ../src/guestfs.pod:681
36816 msgid ""
36817 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36818 "provide something which looks like a Linux symlink.  The way it tries to do "
36819 "the rewriting is described here:"
36820 msgstr ""
36821
36822 #. type: textblock
36823 #: ../src/guestfs.pod:685
36824 msgid ""
36825 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36826 "symbolic-links/>"
36827 msgstr ""
36828 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36829 "symbolic-links/>"
36830
36831 #. type: textblock
36832 #: ../src/guestfs.pod:687
36833 msgid ""
36834 "The essential problem is that ntfs-3g simply does not have enough "
36835 "information to do a correct job.  NTFS links can contain drive letters and "
36836 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
36837 "It is almost certainly the case that libguestfs callers should ignore what "
36838 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36839 msgstr ""
36840
36841 #. type: textblock
36842 #: ../src/guestfs.pod:694
36843 msgid ""
36844 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
36845 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36846 "attribute, and read the raw reparse data from that (you can find the format "
36847 "documented in various places around the web)."
36848 msgstr ""
36849
36850 #. type: =head3
36851 #: ../src/guestfs.pod:699
36852 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36853 msgstr ""
36854
36855 #. type: textblock
36856 #: ../src/guestfs.pod:701
36857 msgid ""
36858 "There are other useful extended attributes that can be read from ntfs-3g "
36859 "filesystems (using L</guestfs_getxattr>).  See:"
36860 msgstr ""
36861
36862 #. type: textblock
36863 #: ../src/guestfs.pod:704
36864 msgid ""
36865 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36866 msgstr ""
36867 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36868
36869 #. type: =head2
36870 #: ../src/guestfs.pod:706
36871 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36872 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
36873
36874 #. type: textblock
36875 #: ../src/guestfs.pod:708
36876 msgid ""
36877 "Although we don't want to discourage you from using the C API, we will "
36878 "mention here that the same API is also available in other languages."
36879 msgstr ""
36880
36881 #. type: textblock
36882 #: ../src/guestfs.pod:711
36883 msgid ""
36884 "The API is broadly identical in all supported languages.  This means that "
36885 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36886 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36887 "OCaml.  In other words, a straightforward, predictable isomorphism between "
36888 "each language."
36889 msgstr ""
36890
36891 #. type: textblock
36892 #: ../src/guestfs.pod:717
36893 msgid ""
36894 "Error messages are automatically transformed into exceptions if the language "
36895 "supports it."
36896 msgstr ""
36897
36898 #. type: textblock
36899 #: ../src/guestfs.pod:720
36900 msgid ""
36901 "We don't try to \"object orientify\" parts of the API in OO languages, "
36902 "although contributors are welcome to write higher level APIs above what we "
36903 "provide in their favourite languages if they wish."
36904 msgstr ""
36905
36906 #. type: =item
36907 #: ../src/guestfs.pod:726
36908 msgid "B<C++>"
36909 msgstr "B<C++>"
36910
36911 #. type: textblock
36912 #: ../src/guestfs.pod:728
36913 msgid ""
36914 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
36915 "identical to the C API.  C++ classes and exceptions are not used."
36916 msgstr ""
36917
36918 #. type: =item
36919 #: ../src/guestfs.pod:732
36920 msgid "B<C#>"
36921 msgstr "B<C#>"
36922
36923 #. type: textblock
36924 #: ../src/guestfs.pod:734
36925 msgid ""
36926 "The C# bindings are highly experimental.  Please read the warnings at the "
36927 "top of C<csharp/Libguestfs.cs>."
36928 msgstr ""
36929
36930 #. type: =item
36931 #: ../src/guestfs.pod:737
36932 msgid "B<Erlang>"
36933 msgstr ""
36934
36935 #. type: textblock
36936 #: ../src/guestfs.pod:739
36937 msgid "See L<guestfs-erlang(3)>."
36938 msgstr ""
36939
36940 #. type: =item
36941 #: ../src/guestfs.pod:741
36942 msgid "B<Haskell>"
36943 msgstr "B<Haskell>"
36944
36945 #. type: textblock
36946 #: ../src/guestfs.pod:743
36947 msgid ""
36948 "This is the only language binding that is working but incomplete.  Only "
36949 "calls which return simple integers have been bound in Haskell, and we are "
36950 "looking for help to complete this binding."
36951 msgstr ""
36952
36953 #. type: =item
36954 #: ../src/guestfs.pod:747
36955 msgid "B<Java>"
36956 msgstr "B<Java>"
36957
36958 #. type: textblock
36959 #: ../src/guestfs.pod:749
36960 msgid ""
36961 "Full documentation is contained in the Javadoc which is distributed with "
36962 "libguestfs.  For examples, see L<guestfs-java(3)>."
36963 msgstr ""
36964
36965 #. type: =item
36966 #: ../src/guestfs.pod:752
36967 msgid "B<OCaml>"
36968 msgstr "B<OCaml>"
36969
36970 #. type: textblock
36971 #: ../src/guestfs.pod:754
36972 msgid "See L<guestfs-ocaml(3)>."
36973 msgstr "Див. L<guestfs-ocaml(3)>."
36974
36975 #. type: =item
36976 #: ../src/guestfs.pod:756
36977 msgid "B<Perl>"
36978 msgstr "B<Perl>"
36979
36980 #. type: textblock
36981 #: ../src/guestfs.pod:758
36982 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36983 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
36984
36985 #. type: =item
36986 #: ../src/guestfs.pod:760
36987 msgid "B<PHP>"
36988 msgstr "B<PHP>"
36989
36990 #. type: textblock
36991 #: ../src/guestfs.pod:762
36992 msgid ""
36993 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36994 "the php-libguestfs package for your distribution."
36995 msgstr ""
36996
36997 #. type: textblock
36998 #: ../src/guestfs.pod:765
36999 msgid "The PHP binding only works correctly on 64 bit machines."
37000 msgstr ""
37001
37002 #. type: =item
37003 #: ../src/guestfs.pod:767
37004 msgid "B<Python>"
37005 msgstr "B<Python>"
37006
37007 #. type: textblock
37008 #: ../src/guestfs.pod:769
37009 msgid "See L<guestfs-python(3)>."
37010 msgstr "Див. L<guestfs-python(3)>."
37011
37012 #. type: =item
37013 #: ../src/guestfs.pod:771
37014 msgid "B<Ruby>"
37015 msgstr "B<Ruby>"
37016
37017 #. type: textblock
37018 #: ../src/guestfs.pod:773
37019 msgid "See L<guestfs-ruby(3)>."
37020 msgstr "Див. L<guestfs-ruby(3)>."
37021
37022 #. type: =item
37023 #: ../src/guestfs.pod:775
37024 msgid "B<shell scripts>"
37025 msgstr "B<скрипти оболонки>"
37026
37027 #. type: textblock
37028 #: ../src/guestfs.pod:777
37029 msgid "See L<guestfish(1)>."
37030 msgstr "Див. L<guestfish(1)>."
37031
37032 #. type: =head2
37033 #: ../src/guestfs.pod:781
37034 msgid "LIBGUESTFS GOTCHAS"
37035 msgstr ""
37036
37037 #. type: textblock
37038 #: ../src/guestfs.pod:783
37039 msgid ""
37040 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
37041 "system [...] that works in the way it is documented but is counterintuitive "
37042 "and almost invites mistakes.\""
37043 msgstr ""
37044
37045 #. type: textblock
37046 #: ../src/guestfs.pod:787
37047 msgid ""
37048 "Since we developed libguestfs and the associated tools, there are several "
37049 "things we would have designed differently, but are now stuck with for "
37050 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
37051 "release, you can expect these to change.  Beware of them."
37052 msgstr ""
37053
37054 #. type: =item
37055 #: ../src/guestfs.pod:795
37056 msgid "Autosync / forgetting to sync."
37057 msgstr ""
37058
37059 #. type: textblock
37060 #: ../src/guestfs.pod:797
37061 msgid ""
37062 "I<Update:> Autosync is enabled by default for all API users starting from "
37063 "libguestfs 1.5.24.  This section only applies to older versions."
37064 msgstr ""
37065
37066 #. type: textblock
37067 #: ../src/guestfs.pod:800
37068 msgid ""
37069 "When modifying a filesystem from C or another language, you B<must> unmount "
37070 "all filesystems and call L</guestfs_sync> explicitly before you close the "
37071 "libguestfs handle.  You can also call:"
37072 msgstr ""
37073
37074 #. type: verbatim
37075 #: ../src/guestfs.pod:804
37076 #, no-wrap
37077 msgid ""
37078 " guestfs_set_autosync (g, 1);\n"
37079 "\n"
37080 msgstr ""
37081 " guestfs_set_autosync (g, 1);\n"
37082 "\n"
37083
37084 #. type: textblock
37085 #: ../src/guestfs.pod:806
37086 msgid ""
37087 "to have the unmount/sync done automatically for you when the handle 'g' is "
37088 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
37089 msgstr ""
37090
37091 #. type: textblock
37092 #: ../src/guestfs.pod:810
37093 msgid ""
37094 "If you forget to do this, then it is entirely possible that your changes "
37095 "won't be written out, or will be partially written, or (very rarely) that "
37096 "you'll get disk corruption."
37097 msgstr ""
37098
37099 #. type: textblock
37100 #: ../src/guestfs.pod:814
37101 msgid ""
37102 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
37103 "guestfish scripts that forget to sync will work just fine, which can make "
37104 "this very puzzling if you are trying to debug a problem."
37105 msgstr ""
37106
37107 #. type: =item
37108 #: ../src/guestfs.pod:818
37109 msgid "Mount option C<-o sync> should not be the default."
37110 msgstr ""
37111
37112 #. type: textblock
37113 #: ../src/guestfs.pod:820
37114 msgid ""
37115 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
37116 "libguestfs 1.13.16.  This section only applies to older versions."
37117 msgstr ""
37118
37119 #. type: textblock
37120 #: ../src/guestfs.pod:823
37121 msgid ""
37122 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
37123 "However C<-o sync> does not add any reliability benefit, but does have a "
37124 "very large performance impact."
37125 msgstr ""
37126
37127 #. type: textblock
37128 #: ../src/guestfs.pod:827
37129 msgid ""
37130 "The work around is to use L</guestfs_mount_options> and set the mount "
37131 "options that you actually want to use."
37132 msgstr ""
37133
37134 #. type: =item
37135 #: ../src/guestfs.pod:830
37136 msgid "Read-only should be the default."
37137 msgstr ""
37138
37139 #. type: textblock
37140 #: ../src/guestfs.pod:832
37141 msgid ""
37142 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
37143 "specify I<--rw> if you want to make changes to the image."
37144 msgstr ""
37145
37146 #. type: textblock
37147 #: ../src/guestfs.pod:835
37148 msgid "This would reduce the potential to corrupt live VM images."
37149 msgstr ""
37150
37151 #. type: textblock
37152 #: ../src/guestfs.pod:837
37153 msgid ""
37154 "Note that many filesystems change the disk when you just mount and unmount, "
37155 "even if you didn't perform any writes.  You need to use L</"
37156 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
37157 msgstr ""
37158
37159 #. type: =item
37160 #: ../src/guestfs.pod:841
37161 msgid "guestfish command line is hard to use."
37162 msgstr ""
37163
37164 #. type: textblock
37165 #: ../src/guestfs.pod:843
37166 msgid ""
37167 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
37168 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
37169 "exist, so it fails.  In earlier versions of guestfish the error message was "
37170 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
37171 "we should have used C<guestfish -c command> to run commands."
37172 msgstr ""
37173
37174 #. type: =item
37175 #: ../src/guestfs.pod:850
37176 msgid "guestfish megabyte modifiers don't work right on all commands"
37177 msgstr ""
37178
37179 #. type: textblock
37180 #: ../src/guestfs.pod:852
37181 msgid ""
37182 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37183 "other modifiers).  What guestfish actually does is to multiply the number "
37184 "part by the modifier part and pass the result to the C API.  However this "
37185 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37186 "expecting some other unit (eg. megabytes)."
37187 msgstr ""
37188
37189 #. type: textblock
37190 #: ../src/guestfs.pod:859
37191 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
37192 msgstr ""
37193
37194 #. type: verbatim
37195 #: ../src/guestfs.pod:861
37196 #, no-wrap
37197 msgid ""
37198 " lvcreate LV VG 100M\n"
37199 "\n"
37200 msgstr ""
37201 " lvcreate LV VG 100M\n"
37202 "\n"
37203
37204 #. type: textblock
37205 #: ../src/guestfs.pod:863
37206 msgid ""
37207 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
37208 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37209 "megabytes * megabytes) logical volume.  The error message you get from this "
37210 "is also a little obscure."
37211 msgstr ""
37212
37213 #. type: textblock
37214 #: ../src/guestfs.pod:868
37215 msgid ""
37216 "This could be fixed in the generator by specially marking parameters and "
37217 "return values which take bytes or other units."
37218 msgstr ""
37219
37220 #. type: =item
37221 #: ../src/guestfs.pod:871
37222 msgid "Ambiguity between devices and paths"
37223 msgstr ""
37224
37225 #. type: textblock
37226 #: ../src/guestfs.pod:873
37227 msgid ""
37228 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37229 "sdb2>) and a similar pathname.  A file might just happen to be called "
37230 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37231 msgstr ""
37232
37233 #. type: textblock
37234 #: ../src/guestfs.pod:878
37235 msgid ""
37236 "In the current API we usually resolve this ambiguity by having two separate "
37237 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
37238 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37239 "detecting if the path supplied begins with C</dev/>."
37240 msgstr ""
37241
37242 #. type: textblock
37243 #: ../src/guestfs.pod:884
37244 msgid ""
37245 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37246 "make paths/devices into structured names.  One way to do this would be to "
37247 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37248 "aspect of grub.  Another way would be to use a structured type, equivalent "
37249 "to this OCaml type:"
37250 msgstr ""
37251
37252 #. type: verbatim
37253 #: ../src/guestfs.pod:890
37254 #, no-wrap
37255 msgid ""
37256 " type path = Path of string | Device of int | Partition of int * int\n"
37257 "\n"
37258 msgstr ""
37259
37260 #. type: textblock
37261 #: ../src/guestfs.pod:892
37262 msgid "which would allow you to pass arguments like:"
37263 msgstr ""
37264
37265 #. type: verbatim
37266 #: ../src/guestfs.pod:894
37267 #, no-wrap
37268 msgid ""
37269 " Path \"/foo/bar\"\n"
37270 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
37271 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37272 " Path \"/dev/sdb2\"    (* not a device *)\n"
37273 "\n"
37274 msgstr ""
37275
37276 #. type: textblock
37277 #: ../src/guestfs.pod:899
37278 msgid ""
37279 "As you can see there are still problems to resolve even with this "
37280 "representation.  Also consider how it might work in guestfish."
37281 msgstr ""
37282
37283 #. type: =head2
37284 #: ../src/guestfs.pod:904
37285 msgid "KEYS AND PASSPHRASES"
37286 msgstr "КЛЮЧІ І ПАРОЛІ"
37287
37288 #. type: textblock
37289 #: ../src/guestfs.pod:906
37290 msgid ""
37291 "Certain libguestfs calls take a parameter that contains sensitive key "
37292 "material, passed in as a C string."
37293 msgstr ""
37294
37295 #. type: textblock
37296 #: ../src/guestfs.pod:909
37297 msgid ""
37298 "In the future we would hope to change the libguestfs implementation so that "
37299 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37300 "swap.  However this is I<not> done at the moment, because of the complexity "
37301 "of such an implementation."
37302 msgstr ""
37303
37304 #. type: textblock
37305 #: ../src/guestfs.pod:914
37306 msgid ""
37307 "Therefore you should be aware that any key parameter you pass to libguestfs "
37308 "might end up being written out to the swap partition.  If this is a concern, "
37309 "scrub the swap partition or don't use libguestfs on encrypted devices."
37310 msgstr ""
37311
37312 #. type: =head2
37313 #: ../src/guestfs.pod:919
37314 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37315 msgstr ""
37316
37317 #. type: textblock
37318 #: ../src/guestfs.pod:921
37319 msgid ""
37320 "All high-level libguestfs actions are synchronous.  If you want to use "
37321 "libguestfs asynchronously then you must create a thread."
37322 msgstr ""
37323
37324 #. type: textblock
37325 #: ../src/guestfs.pod:924
37326 msgid ""
37327 "Only use the handle from a single thread.  Either use the handle exclusively "
37328 "from one thread, or provide your own mutex so that two threads cannot issue "
37329 "calls on the same handle at the same time."
37330 msgstr ""
37331
37332 #. type: textblock
37333 #: ../src/guestfs.pod:928
37334 msgid ""
37335 "See the graphical program guestfs-browser for one possible architecture for "
37336 "multithreaded programs using libvirt and libguestfs."
37337 msgstr ""
37338
37339 #. type: =head2
37340 #: ../src/guestfs.pod:931
37341 msgid "PATH"
37342 msgstr "ШЛЯХ"
37343
37344 #. type: textblock
37345 #: ../src/guestfs.pod:933
37346 msgid ""
37347 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37348 "internal path."
37349 msgstr ""
37350
37351 #. type: textblock
37352 #: ../src/guestfs.pod:936
37353 msgid ""
37354 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
37355 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37356 msgstr ""
37357
37358 #. type: textblock
37359 #: ../src/guestfs.pod:939
37360 msgid ""
37361 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
37362 "to change the directories that libguestfs will search in.  The value is a "
37363 "colon-separated list of paths.  The current directory is I<not> searched "
37364 "unless the path contains an empty element or C<.>.  For example "
37365 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37366 "then C</usr/lib/guestfs>."
37367 msgstr ""
37368
37369 #. type: =head2
37370 #: ../src/guestfs.pod:946
37371 msgid "QEMU WRAPPERS"
37372 msgstr ""
37373
37374 #. type: textblock
37375 #: ../src/guestfs.pod:948
37376 msgid ""
37377 "If you want to compile your own qemu, run qemu from a non-standard location, "
37378 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
37379 "around qemu."
37380 msgstr ""
37381
37382 #. type: textblock
37383 #: ../src/guestfs.pod:952
37384 msgid ""
37385 "There is one important rule to remember: you I<must C<exec qemu>> as the "
37386 "last command in the shell script (so that qemu replaces the shell and "
37387 "becomes the direct child of the libguestfs-using program).  If you don't do "
37388 "this, then the qemu process won't be cleaned up correctly."
37389 msgstr ""
37390
37391 #. type: textblock
37392 #: ../src/guestfs.pod:957
37393 msgid ""
37394 "Here is an example of a wrapper, where I have built my own copy of qemu from "
37395 "source:"
37396 msgstr ""
37397
37398 #. type: verbatim
37399 #: ../src/guestfs.pod:960
37400 #, no-wrap
37401 msgid ""
37402 " #!/bin/sh -\n"
37403 " qemudir=/home/rjones/d/qemu\n"
37404 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37405 "\n"
37406 msgstr ""
37407 " #!/bin/sh -\n"
37408 " qemudir=/home/rjones/d/qemu\n"
37409 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37410 "\n"
37411
37412 #. type: textblock
37413 #: ../src/guestfs.pod:964
37414 msgid ""
37415 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
37416 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
37417 "example:"
37418 msgstr ""
37419
37420 #. type: verbatim
37421 #: ../src/guestfs.pod:968
37422 #, no-wrap
37423 msgid ""
37424 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37425 "\n"
37426 msgstr ""
37427 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37428 "\n"
37429
37430 #. type: textblock
37431 #: ../src/guestfs.pod:970
37432 msgid ""
37433 "Note that libguestfs also calls qemu with the -help and -version options in "
37434 "order to determine features."
37435 msgstr ""
37436
37437 #. type: textblock
37438 #: ../src/guestfs.pod:973
37439 msgid ""
37440 "Wrappers can also be used to edit the options passed to qemu.  In the "
37441 "following example, the C<-machine ...> option (C<-machine> and the following "
37442 "argument) are removed from the command line and replaced with C<-machine pc,"
37443 "accel=tcg>.  The while loop iterates over the options until it finds the "
37444 "right one to remove, putting the remaining options into the C<args> array."
37445 msgstr ""
37446
37447 #. type: verbatim
37448 #: ../src/guestfs.pod:982
37449 #, no-wrap
37450 msgid ""
37451 " i=0\n"
37452 " while [ $# -gt 0 ]; do\n"
37453 "     case \"$1\" in\n"
37454 "     -machine)\n"
37455 "         shift 2;;\n"
37456 "     *)\n"
37457 "         args[i]=\"$1\"\n"
37458 "         (( i++ ))\n"
37459 "         shift ;;\n"
37460 "     esac\n"
37461 " done\n"
37462 " \n"
37463 msgstr ""
37464
37465 #. type: verbatim
37466 #: ../src/guestfs.pod:994
37467 #, no-wrap
37468 msgid ""
37469 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
37470 "\n"
37471 msgstr ""
37472
37473 #. type: =head2
37474 #: ../src/guestfs.pod:996
37475 msgid "ATTACHING TO RUNNING DAEMONS"
37476 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
37477
37478 #. type: textblock
37479 #: ../src/guestfs.pod:998
37480 msgid ""
37481 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
37482 "babies.  Use with caution."
37483 msgstr ""
37484
37485 #. type: textblock
37486 #: ../src/guestfs.pod:1001
37487 msgid ""
37488 "I<Note (2):> This section explains how to attach to a running daemon from a "
37489 "low level perspective.  For most users, simply using virt tools such as "
37490 "L<guestfish(1)> with the I<--live> option will \"just work\"."
37491 msgstr ""
37492
37493 #. type: =head3
37494 #: ../src/guestfs.pod:1005
37495 msgid "Using guestfs_set_attach_method"
37496 msgstr "За допомогою guestfs_set_attach_method"
37497
37498 #. type: textblock
37499 #: ../src/guestfs.pod:1007
37500 msgid ""
37501 "By calling L</guestfs_set_attach_method> you can change how the library "
37502 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
37503 "ARCHITECTURE> for some background)."
37504 msgstr ""
37505
37506 #. type: textblock
37507 #: ../src/guestfs.pod:1011
37508 msgid ""
37509 "The normal attach method is C<appliance>, where a small appliance is created "
37510 "containing the daemon, and then the library connects to this."
37511 msgstr ""
37512
37513 #. type: textblock
37514 #: ../src/guestfs.pod:1014
37515 msgid ""
37516 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
37517 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
37518 "daemon over the Unix domain socket."
37519 msgstr ""
37520
37521 #. type: textblock
37522 #: ../src/guestfs.pod:1018
37523 msgid ""
37524 "The normal use for this is to connect to a running virtual machine that "
37525 "contains a C<guestfsd> daemon, and send commands so you can read and write "
37526 "files inside the live virtual machine."
37527 msgstr ""
37528
37529 #. type: =head3
37530 #: ../src/guestfs.pod:1022
37531 msgid "Using guestfs_add_domain with live flag"
37532 msgstr "За допомогою guestfs_add_domain з прапорцем live"
37533
37534 #. type: textblock
37535 #: ../src/guestfs.pod:1024
37536 msgid ""
37537 "L</guestfs_add_domain> provides some help for getting the correct attach "
37538 "method.  If you pass the C<live> option to this function, then (if the "
37539 "virtual machine is running) it will examine the libvirt XML looking for a "
37540 "virtio-serial channel to connect to:"
37541 msgstr ""
37542
37543 #. type: verbatim
37544 #: ../src/guestfs.pod:1030
37545 #, no-wrap
37546 msgid ""
37547 " <domain>\n"
37548 "   ...\n"
37549 "   <devices>\n"
37550 "     ...\n"
37551 "     <channel type='unix'>\n"
37552 "       <source mode='bind' path='/path/to/socket'/>\n"
37553 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37554 "     </channel>\n"
37555 "     ...\n"
37556 "   </devices>\n"
37557 " </domain>\n"
37558 "\n"
37559 msgstr ""
37560 " <domain>\n"
37561 "   ...\n"
37562 "   <devices>\n"
37563 "     ...\n"
37564 "     <channel type='unix'>\n"
37565 "       <source mode='bind' path='/path/to/socket'/>\n"
37566 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37567 "     </channel>\n"
37568 "     ...\n"
37569 "   </devices>\n"
37570 " </domain>\n"
37571 "\n"
37572
37573 #. type: textblock
37574 #: ../src/guestfs.pod:1042
37575 msgid ""
37576 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
37577 "method to C<unix:/path/to/socket>."
37578 msgstr ""
37579
37580 #. type: textblock
37581 #: ../src/guestfs.pod:1045
37582 msgid ""
37583 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37584 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37585 "to attach to and modify live virtual machines."
37586 msgstr ""
37587
37588 #. type: textblock
37589 #: ../src/guestfs.pod:1049
37590 msgid ""
37591 "The virtual machine needs to have been set up beforehand so that it has the "
37592 "virtio-serial channel and so that guestfsd is running inside it."
37593 msgstr ""
37594
37595 #. type: =head2
37596 #: ../src/guestfs.pod:1053
37597 msgid "ABI GUARANTEE"
37598 msgstr "ГАРАНТІЯ ЩОДО ABI"
37599
37600 #. type: textblock
37601 #: ../src/guestfs.pod:1055
37602 msgid ""
37603 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37604 "actions as outlined in this section.  Although we will deprecate some "
37605 "actions, for example if they get replaced by newer calls, we will keep the "
37606 "old actions forever.  This allows you the developer to program in confidence "
37607 "against the libguestfs API."
37608 msgstr ""
37609
37610 #. type: =head2
37611 #: ../src/guestfs.pod:1061
37612 msgid "BLOCK DEVICE NAMING"
37613 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
37614
37615 #. type: textblock
37616 #: ../src/guestfs.pod:1063
37617 msgid ""
37618 "In the kernel there is now quite a profusion of schemata for naming block "
37619 "devices (in this context, by I<block device> I mean a physical or virtual "
37620 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
37621 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
37622 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
37623 "for the old IDE driver (particularly for SATA devices) those devices also "
37624 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
37625 "paravirtualized drivers.  This has created several different naming systems, "
37626 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
37627 msgstr ""
37628
37629 #. type: textblock
37630 #: ../src/guestfs.pod:1075
37631 msgid ""
37632 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37633 "Linux kernel to access block devices.  We can run a variety of appliances "
37634 "based on a variety of Linux kernels."
37635 msgstr ""
37636
37637 #. type: textblock
37638 #: ../src/guestfs.pod:1079
37639 msgid ""
37640 "This causes a problem for libguestfs because many API calls use device or "
37641 "partition names.  Working scripts and the recipe (example) scripts that we "
37642 "make available over the internet could fail if the naming scheme changes."
37643 msgstr ""
37644
37645 #. type: textblock
37646 #: ../src/guestfs.pod:1084
37647 msgid ""
37648 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
37649 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37650 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37651 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37652 msgstr ""
37653
37654 #. type: textblock
37655 #: ../src/guestfs.pod:1090
37656 msgid ""
37657 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
37658 "L</guestfs_list_partitions> and similar calls return the true names of the "
37659 "devices and partitions as known to the appliance."
37660 msgstr ""
37661
37662 #. type: =head3
37663 #: ../src/guestfs.pod:1095
37664 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37665 msgstr ""
37666
37667 #. type: textblock
37668 #: ../src/guestfs.pod:1097
37669 msgid ""
37670 "Usually this translation is transparent.  However in some (very rare)  cases "
37671 "you may need to know the exact algorithm.  Such cases include where you use "
37672 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37673 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37674 msgstr ""
37675
37676 #. type: textblock
37677 #: ../src/guestfs.pod:1103
37678 msgid ""
37679 "The algorithm is applied only to I<parameters> which are known to be either "
37680 "device or partition names.  Return values from functions such as L</"
37681 "guestfs_list_devices> are never changed."
37682 msgstr ""
37683
37684 #. type: textblock
37685 #: ../src/guestfs.pod:1111
37686 msgid "Is the string a parameter which is a device or partition name?"
37687 msgstr ""
37688
37689 #. type: textblock
37690 #: ../src/guestfs.pod:1115
37691 msgid "Does the string begin with C</dev/sd>?"
37692 msgstr "Чи починається рядок з C</dev/sd>?"
37693
37694 #. type: textblock
37695 #: ../src/guestfs.pod:1119
37696 msgid ""
37697 "Does the named device exist? If so, we use that device.  However if I<not> "
37698 "then we continue with this algorithm."
37699 msgstr ""
37700
37701 #. type: textblock
37702 #: ../src/guestfs.pod:1124
37703 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37704 msgstr ""
37705
37706 #. type: textblock
37707 #: ../src/guestfs.pod:1126
37708 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37709 msgstr ""
37710
37711 #. type: textblock
37712 #: ../src/guestfs.pod:1128
37713 msgid "If that named device exists, use it.  If not, continue."
37714 msgstr ""
37715
37716 #. type: textblock
37717 #: ../src/guestfs.pod:1132
37718 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37719 msgstr ""
37720
37721 #. type: textblock
37722 #: ../src/guestfs.pod:1134
37723 msgid "If that named device exists, use it.  If not, return an error."
37724 msgstr ""
37725
37726 #. type: =head3
37727 #: ../src/guestfs.pod:1138
37728 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37729 msgstr ""
37730
37731 #. type: textblock
37732 #: ../src/guestfs.pod:1140
37733 msgid ""
37734 "Although the standard naming scheme and automatic translation is useful for "
37735 "simple programs and guestfish scripts, for larger programs it is best not to "
37736 "rely on this mechanism."
37737 msgstr ""
37738
37739 #. type: textblock
37740 #: ../src/guestfs.pod:1144
37741 msgid ""
37742 "Where possible for maximum future portability programs using libguestfs "
37743 "should use these future-proof techniques:"
37744 msgstr ""
37745
37746 #. type: textblock
37747 #: ../src/guestfs.pod:1151
37748 msgid ""
37749 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37750 "device names, and then use those names directly."
37751 msgstr ""
37752
37753 #. type: textblock
37754 #: ../src/guestfs.pod:1154
37755 msgid ""
37756 "Since those device names exist by definition, they will never be translated."
37757 msgstr ""
37758
37759 #. type: textblock
37760 #: ../src/guestfs.pod:1159
37761 msgid ""
37762 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37763 "filesystem labels."
37764 msgstr ""
37765
37766 #. type: textblock
37767 #: ../src/guestfs.pod:1166
37768 msgid ""
37769 "This section discusses security implications of using libguestfs, "
37770 "particularly with untrusted or malicious guests or disk images."
37771 msgstr ""
37772
37773 #. type: =head2
37774 #: ../src/guestfs.pod:1169
37775 msgid "GENERAL SECURITY CONSIDERATIONS"
37776 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
37777
37778 #. type: textblock
37779 #: ../src/guestfs.pod:1171
37780 msgid ""
37781 "Be careful with any files or data that you download from a guest (by "
37782 "\"download\" we mean not just the L</guestfs_download> command but any "
37783 "command that reads files, filenames, directories or anything else from a "
37784 "disk image).  An attacker could manipulate the data to fool your program "
37785 "into doing the wrong thing.  Consider cases such as:"
37786 msgstr ""
37787
37788 #. type: textblock
37789 #: ../src/guestfs.pod:1181
37790 msgid "the data (file etc) not being present"
37791 msgstr ""
37792
37793 #. type: textblock
37794 #: ../src/guestfs.pod:1185
37795 msgid "being present but empty"
37796 msgstr ""
37797
37798 #. type: textblock
37799 #: ../src/guestfs.pod:1189
37800 msgid "being much larger than normal"
37801 msgstr ""
37802
37803 #. type: textblock
37804 #: ../src/guestfs.pod:1193
37805 msgid "containing arbitrary 8 bit data"
37806 msgstr ""
37807
37808 #. type: textblock
37809 #: ../src/guestfs.pod:1197
37810 msgid "being in an unexpected character encoding"
37811 msgstr ""
37812
37813 #. type: textblock
37814 #: ../src/guestfs.pod:1201
37815 msgid "containing homoglyphs."
37816 msgstr ""
37817
37818 #. type: =head2
37819 #: ../src/guestfs.pod:1205
37820 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37821 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
37822
37823 #. type: textblock
37824 #: ../src/guestfs.pod:1207
37825 msgid ""
37826 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37827 "(VFS) module can sometimes be escalated into exploits by deliberately "
37828 "creating a malicious, malformed filesystem.  These exploits are very severe "
37829 "for two reasons.  Firstly there are very many filesystem drivers in the "
37830 "kernel, and many of them are infrequently used and not much developer "
37831 "attention has been paid to the code.  Linux userspace helps potential "
37832 "crackers by detecting the filesystem type and automatically choosing the "
37833 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37834 "the administrator.  Secondly, a kernel-level exploit is like a local root "
37835 "exploit (worse in some ways), giving immediate and total access to the "
37836 "system right down to the hardware level."
37837 msgstr ""
37838
37839 #. type: textblock
37840 #: ../src/guestfs.pod:1220
37841 msgid ""
37842 "That explains why you should never mount a filesystem from an untrusted "
37843 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
37844 "inside a qemu virtual machine, usually running as a non-root user.  The "
37845 "attacker would need to write a filesystem which first exploited the kernel, "
37846 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37847 "the libguestfs protocol, and finally to be as serious as the host kernel "
37848 "exploit it would need to escalate its privileges to root.  This multi-step "
37849 "escalation, performed by a static piece of data, is thought to be extremely "
37850 "hard to do, although we never say 'never' about security issues."
37851 msgstr ""
37852
37853 #. type: textblock
37854 #: ../src/guestfs.pod:1231
37855 msgid ""
37856 "In any case callers can reduce the attack surface by forcing the filesystem "
37857 "type when mounting (use L</guestfs_mount_vfs>)."
37858 msgstr ""
37859
37860 #. type: =head2
37861 #: ../src/guestfs.pod:1234
37862 msgid "PROTOCOL SECURITY"
37863 msgstr "ЗАХИСТ ПРОТОКОЛУ"
37864
37865 #. type: textblock
37866 #: ../src/guestfs.pod:1236
37867 msgid ""
37868 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
37869 "defined upper message size.  However a program that uses libguestfs must "
37870 "also take care - for example you can write a program that downloads a binary "
37871 "from a disk image and executes it locally, and no amount of protocol "
37872 "security will save you from the consequences."
37873 msgstr ""
37874
37875 #. type: =head2
37876 #: ../src/guestfs.pod:1242
37877 msgid "INSPECTION SECURITY"
37878 msgstr ""
37879
37880 #. type: textblock
37881 #: ../src/guestfs.pod:1244
37882 msgid ""
37883 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37884 "directly from the guest, and these could contain any 8 bit data.  Callers "
37885 "should be careful to escape these before printing them to a structured file "
37886 "(for example, use HTML escaping if creating a web page)."
37887 msgstr ""
37888
37889 #. type: textblock
37890 #: ../src/guestfs.pod:1250
37891 msgid ""
37892 "Guest configuration may be altered in unusual ways by the administrator of "
37893 "the virtual machine, and may not reflect reality (particularly for untrusted "
37894 "or actively malicious guests).  For example we parse the hostname from "
37895 "configuration files like C</etc/sysconfig/network> that we find in the "
37896 "guest, but the guest administrator can easily manipulate these files to "
37897 "provide the wrong hostname."
37898 msgstr ""
37899
37900 #. type: textblock
37901 #: ../src/guestfs.pod:1258
37902 msgid ""
37903 "The inspection API parses guest configuration using two external libraries: "
37904 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
37905 "designed to be robust in the face of malicious data, although denial of "
37906 "service attacks are still possible, for example with oversized configuration "
37907 "files."
37908 msgstr ""
37909
37910 #. type: =head2
37911 #: ../src/guestfs.pod:1264
37912 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37913 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
37914
37915 #. type: textblock
37916 #: ../src/guestfs.pod:1266
37917 msgid ""
37918 "Be very cautious about running commands from the guest.  By running a "
37919 "command in the guest, you are giving CPU time to a binary that you do not "
37920 "control, under the same user account as the library, albeit wrapped in qemu "
37921 "virtualization.  More information and alternatives can be found in the "
37922 "section L</RUNNING COMMANDS>."
37923 msgstr ""
37924
37925 #. type: =head2
37926 #: ../src/guestfs.pod:1272
37927 msgid "CVE-2010-3851"
37928 msgstr "CVE-2010-3851"
37929
37930 #. type: textblock
37931 #: ../src/guestfs.pod:1274
37932 msgid "https://bugzilla.redhat.com/642934"
37933 msgstr "https://bugzilla.redhat.com/642934"
37934
37935 #. type: textblock
37936 #: ../src/guestfs.pod:1276
37937 msgid ""
37938 "This security bug concerns the automatic disk format detection that qemu "
37939 "does on disk images."
37940 msgstr ""
37941
37942 #. type: textblock
37943 #: ../src/guestfs.pod:1279
37944 msgid ""
37945 "A raw disk image is just the raw bytes, there is no header.  Other disk "
37946 "images like qcow2 contain a special header.  Qemu deals with this by looking "
37947 "for one of the known headers, and if none is found then assuming the disk "
37948 "image must be raw."
37949 msgstr ""
37950
37951 #. type: textblock
37952 #: ../src/guestfs.pod:1284
37953 msgid ""
37954 "This allows a guest which has been given a raw disk image to write some "
37955 "other header.  At next boot (or when the disk image is accessed by "
37956 "libguestfs) qemu would do autodetection and think the disk image format was, "
37957 "say, qcow2 based on the header written by the guest."
37958 msgstr ""
37959
37960 #. type: textblock
37961 #: ../src/guestfs.pod:1289
37962 msgid ""
37963 "This in itself would not be a problem, but qcow2 offers many features, one "
37964 "of which is to allow a disk image to refer to another image (called the "
37965 "\"backing disk\").  It does this by placing the path to the backing disk "
37966 "into the qcow2 header.  This path is not validated and could point to any "
37967 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
37968 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37969 "control of the attacker."
37970 msgstr ""
37971
37972 #. type: textblock
37973 #: ../src/guestfs.pod:1297
37974 msgid ""
37975 "In libguestfs this is rather hard to exploit except under two circumstances:"
37976 msgstr ""
37977
37978 #. type: textblock
37979 #: ../src/guestfs.pod:1304
37980 msgid "You have enabled the network or have opened the disk in write mode."
37981 msgstr ""
37982
37983 #. type: textblock
37984 #: ../src/guestfs.pod:1308
37985 msgid ""
37986 "You are also running untrusted code from the guest (see L</RUNNING "
37987 "COMMANDS>)."
37988 msgstr ""
37989
37990 #. type: textblock
37991 #: ../src/guestfs.pod:1313
37992 msgid ""
37993 "The way to avoid this is to specify the expected disk format when adding "
37994 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
37995 "should always do this if the disk is raw format, and it's a good idea for "
37996 "other cases too."
37997 msgstr ""
37998
37999 #. type: textblock
38000 #: ../src/guestfs.pod:1318
38001 msgid ""
38002 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
38003 "format is fetched from libvirt and passed through."
38004 msgstr ""
38005
38006 #. type: textblock
38007 #: ../src/guestfs.pod:1321
38008 msgid ""
38009 "For libguestfs tools, use the I<--format> command line parameter as "
38010 "appropriate."
38011 msgstr ""
38012
38013 #. type: =head1
38014 #: ../src/guestfs.pod:1324
38015 msgid "CONNECTION MANAGEMENT"
38016 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
38017
38018 #. type: =head2
38019 #: ../src/guestfs.pod:1326
38020 msgid "guestfs_h *"
38021 msgstr "guestfs_h *"
38022
38023 #. type: textblock
38024 #: ../src/guestfs.pod:1328
38025 msgid ""
38026 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
38027 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
38028 "handle and release all resources used."
38029 msgstr ""
38030
38031 #. type: textblock
38032 #: ../src/guestfs.pod:1332
38033 msgid ""
38034 "For information on using multiple handles and threads, see the section L</"
38035 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
38036 msgstr ""
38037
38038 #. type: =head2
38039 #: ../src/guestfs.pod:1335
38040 msgid "guestfs_create"
38041 msgstr "guestfs_create"
38042
38043 #. type: verbatim
38044 #: ../src/guestfs.pod:1337
38045 #, no-wrap
38046 msgid ""
38047 " guestfs_h *guestfs_create (void);\n"
38048 "\n"
38049 msgstr ""
38050 " guestfs_h *guestfs_create (void);\n"
38051 "\n"
38052
38053 #. type: textblock
38054 #: ../src/guestfs.pod:1339
38055 msgid "Create a connection handle."
38056 msgstr "Створити дескриптор з’єднання."
38057
38058 #. type: textblock
38059 #: ../src/guestfs.pod:1341
38060 msgid ""
38061 "On success this returns a non-NULL pointer to a handle.  On error it returns "
38062 "NULL."
38063 msgstr ""
38064
38065 #. type: textblock
38066 #: ../src/guestfs.pod:1344
38067 msgid ""
38068 "You have to \"configure\" the handle after creating it.  This includes "
38069 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
38070 "handle at least once."
38071 msgstr ""
38072
38073 #. type: textblock
38074 #: ../src/guestfs.pod:1348
38075 msgid "After configuring the handle, you have to call L</guestfs_launch>."
38076 msgstr ""
38077
38078 #. type: textblock
38079 #: ../src/guestfs.pod:1350
38080 msgid ""
38081 "You may also want to configure error handling for the handle.  See the L</"
38082 "ERROR HANDLING> section below."
38083 msgstr ""
38084
38085 #. type: =head2
38086 #: ../src/guestfs.pod:1353
38087 msgid "guestfs_close"
38088 msgstr "guestfs_close"
38089
38090 #. type: verbatim
38091 #: ../src/guestfs.pod:1355
38092 #, no-wrap
38093 msgid ""
38094 " void guestfs_close (guestfs_h *g);\n"
38095 "\n"
38096 msgstr ""
38097 " void guestfs_close (guestfs_h *g);\n"
38098 "\n"
38099
38100 #. type: textblock
38101 #: ../src/guestfs.pod:1357
38102 msgid "This closes the connection handle and frees up all resources used."
38103 msgstr ""
38104
38105 #. type: textblock
38106 #: ../src/guestfs.pod:1359
38107 msgid ""
38108 "If autosync was set on the handle and the handle was launched, then this "
38109 "implicitly calls various functions to unmount filesystems and sync the "
38110 "disk.  See L</guestfs_set_autosync> for more details."
38111 msgstr ""
38112
38113 #. type: textblock
38114 #: ../src/guestfs.pod:1363
38115 msgid "If a close callback was set on the handle, then it is called."
38116 msgstr ""
38117
38118 #. type: =head1
38119 #: ../src/guestfs.pod:1365
38120 msgid "ERROR HANDLING"
38121 msgstr "ОБРОБКА ПОМИЛОК"
38122
38123 #. type: textblock
38124 #: ../src/guestfs.pod:1367
38125 msgid ""
38126 "API functions can return errors.  For example, almost all functions that "
38127 "return C<int> will return C<-1> to indicate an error."
38128 msgstr ""
38129
38130 #. type: textblock
38131 #: ../src/guestfs.pod:1370
38132 msgid ""
38133 "Additional information is available for errors: an error message string and "
38134 "optionally an error number (errno) if the thing that failed was a system "
38135 "call."
38136 msgstr ""
38137
38138 #. type: textblock
38139 #: ../src/guestfs.pod:1374
38140 msgid ""
38141 "You can get at the additional information about the last error on the handle "
38142 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
38143 "up an error handler with L</guestfs_set_error_handler>."
38144 msgstr ""
38145
38146 #. type: textblock
38147 #: ../src/guestfs.pod:1379
38148 msgid ""
38149 "When the handle is created, a default error handler is installed which "
38150 "prints the error message string to C<stderr>.  For small short-running "
38151 "command line programs it is sufficient to do:"
38152 msgstr ""
38153
38154 #. type: verbatim
38155 #: ../src/guestfs.pod:1383
38156 #, no-wrap
38157 msgid ""
38158 " if (guestfs_launch (g) == -1)\n"
38159 "   exit (EXIT_FAILURE);\n"
38160 "\n"
38161 msgstr ""
38162 " if (guestfs_launch (g) == -1)\n"
38163 "   exit (EXIT_FAILURE);\n"
38164 "\n"
38165
38166 #. type: textblock
38167 #: ../src/guestfs.pod:1386
38168 msgid ""
38169 "since the default error handler will ensure that an error message has been "
38170 "printed to C<stderr> before the program exits."
38171 msgstr ""
38172
38173 #. type: textblock
38174 #: ../src/guestfs.pod:1389
38175 msgid ""
38176 "For other programs the caller will almost certainly want to install an "
38177 "alternate error handler or do error handling in-line like this:"
38178 msgstr ""
38179
38180 #. type: verbatim
38181 #: ../src/guestfs.pod:1392
38182 #, no-wrap
38183 msgid ""
38184 " /* This disables the default behaviour of printing errors\n"
38185 "    on stderr. */\n"
38186 " guestfs_set_error_handler (g, NULL, NULL);\n"
38187 " \n"
38188 msgstr ""
38189
38190 #. type: verbatim
38191 #: ../src/guestfs.pod:1396
38192 #, no-wrap
38193 msgid ""
38194 " if (guestfs_launch (g) == -1) {\n"
38195 "   /* Examine the error message and print it etc. */\n"
38196 "   char *msg = guestfs_last_error (g);\n"
38197 "   int errnum = guestfs_last_errno (g);\n"
38198 "   fprintf (stderr, \"%s\", msg);\n"
38199 "   if (errnum != 0)\n"
38200 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
38201 "   fprintf (stderr, \"\\n\");\n"
38202 "   /* ... */\n"
38203 " }\n"
38204 "\n"
38205 msgstr ""
38206
38207 #. type: textblock
38208 #: ../src/guestfs.pod:1407
38209 msgid ""
38210 "Out of memory errors are handled differently.  The default action is to call "
38211 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
38212 "guestfs_set_out_of_memory_handler>."
38213 msgstr ""
38214
38215 #. type: textblock
38216 #: ../src/guestfs.pod:1411
38217 msgid ""
38218 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38219 "because there is no handle if this happens there is no way to get additional "
38220 "error information.  However L</guestfs_create> is supposed to be a "
38221 "lightweight operation which can only fail because of insufficient memory (it "
38222 "returns NULL in this case)."
38223 msgstr ""
38224
38225 #. type: =head2
38226 #: ../src/guestfs.pod:1417
38227 msgid "guestfs_last_error"
38228 msgstr "guestfs_last_error"
38229
38230 #. type: verbatim
38231 #: ../src/guestfs.pod:1419
38232 #, no-wrap
38233 msgid ""
38234 " const char *guestfs_last_error (guestfs_h *g);\n"
38235 "\n"
38236 msgstr ""
38237 " const char *guestfs_last_error (guestfs_h *g);\n"
38238 "\n"
38239
38240 #. type: textblock
38241 #: ../src/guestfs.pod:1421
38242 msgid ""
38243 "This returns the last error message that happened on C<g>.  If there has not "
38244 "been an error since the handle was created, then this returns C<NULL>."
38245 msgstr ""
38246
38247 #. type: textblock
38248 #: ../src/guestfs.pod:1425
38249 msgid ""
38250 "The lifetime of the returned string is until the next error occurs, or L</"
38251 "guestfs_close> is called."
38252 msgstr ""
38253
38254 #. type: =head2
38255 #: ../src/guestfs.pod:1428
38256 msgid "guestfs_last_errno"
38257 msgstr "guestfs_last_errno"
38258
38259 #. type: verbatim
38260 #: ../src/guestfs.pod:1430
38261 #, no-wrap
38262 msgid ""
38263 " int guestfs_last_errno (guestfs_h *g);\n"
38264 "\n"
38265 msgstr ""
38266 " int guestfs_last_errno (guestfs_h *g);\n"
38267 "\n"
38268
38269 #. type: textblock
38270 #: ../src/guestfs.pod:1432
38271 msgid "This returns the last error number (errno) that happened on C<g>."
38272 msgstr ""
38273
38274 #. type: textblock
38275 #: ../src/guestfs.pod:1434
38276 msgid "If successful, an errno integer not equal to zero is returned."
38277 msgstr ""
38278
38279 #. type: textblock
38280 #: ../src/guestfs.pod:1436
38281 msgid ""
38282 "If no error, this returns 0.  This call can return 0 in three situations:"
38283 msgstr ""
38284
38285 #. type: textblock
38286 #: ../src/guestfs.pod:1443
38287 msgid "There has not been any error on the handle."
38288 msgstr ""
38289
38290 #. type: textblock
38291 #: ../src/guestfs.pod:1447
38292 msgid ""
38293 "There has been an error but the errno was meaningless.  This corresponds to "
38294 "the case where the error did not come from a failed system call, but for "
38295 "some other reason."
38296 msgstr ""
38297
38298 #. type: textblock
38299 #: ../src/guestfs.pod:1453
38300 msgid ""
38301 "There was an error from a failed system call, but for some reason the errno "
38302 "was not captured and returned.  This usually indicates a bug in libguestfs."
38303 msgstr ""
38304
38305 #. type: textblock
38306 #: ../src/guestfs.pod:1459
38307 msgid ""
38308 "Libguestfs tries to convert the errno from inside the applicance into a "
38309 "corresponding errno for the caller (not entirely trivial: the appliance "
38310 "might be running a completely different operating system from the library "
38311 "and error numbers are not standardized across Un*xen).  If this could not be "
38312 "done, then the error is translated to C<EINVAL>.  In practice this should "
38313 "only happen in very rare circumstances."
38314 msgstr ""
38315
38316 #. type: =head2
38317 #: ../src/guestfs.pod:1467
38318 msgid "guestfs_set_error_handler"
38319 msgstr "guestfs_set_error_handler"
38320
38321 #. type: verbatim
38322 #: ../src/guestfs.pod:1469
38323 #, no-wrap
38324 msgid ""
38325 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38326 "                                           void *opaque,\n"
38327 "                                           const char *msg);\n"
38328 " void guestfs_set_error_handler (guestfs_h *g,\n"
38329 "                                 guestfs_error_handler_cb cb,\n"
38330 "                                 void *opaque);\n"
38331 "\n"
38332 msgstr ""
38333 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38334 "                                           void *opaque,\n"
38335 "                                           const char *msg);\n"
38336 " void guestfs_set_error_handler (guestfs_h *g,\n"
38337 "                                 guestfs_error_handler_cb cb,\n"
38338 "                                 void *opaque);\n"
38339 "\n"
38340
38341 #. type: textblock
38342 #: ../src/guestfs.pod:1476
38343 msgid ""
38344 "The callback C<cb> will be called if there is an error.  The parameters "
38345 "passed to the callback are an opaque data pointer and the error message "
38346 "string."
38347 msgstr ""
38348
38349 #. type: textblock
38350 #: ../src/guestfs.pod:1480
38351 msgid ""
38352 "C<errno> is not passed to the callback.  To get that the callback must call "
38353 "L</guestfs_last_errno>."
38354 msgstr ""
38355
38356 #. type: textblock
38357 #: ../src/guestfs.pod:1483
38358 msgid ""
38359 "Note that the message string C<msg> is freed as soon as the callback "
38360 "function returns, so if you want to stash it somewhere you must make your "
38361 "own copy."
38362 msgstr ""
38363
38364 #. type: textblock
38365 #: ../src/guestfs.pod:1487
38366 msgid "The default handler prints messages on C<stderr>."
38367 msgstr ""
38368
38369 #. type: textblock
38370 #: ../src/guestfs.pod:1489
38371 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38372 msgstr ""
38373
38374 #. type: =head2
38375 #: ../src/guestfs.pod:1491
38376 msgid "guestfs_get_error_handler"
38377 msgstr "guestfs_get_error_handler"
38378
38379 #. type: verbatim
38380 #: ../src/guestfs.pod:1493
38381 #, no-wrap
38382 msgid ""
38383 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38384 "                                                     void **opaque_rtn);\n"
38385 "\n"
38386 msgstr ""
38387 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38388 "                                                     void **opaque_rtn);\n"
38389 "\n"
38390
38391 #. type: textblock
38392 #: ../src/guestfs.pod:1496
38393 msgid "Returns the current error handler callback."
38394 msgstr ""
38395
38396 #. type: =head2
38397 #: ../src/guestfs.pod:1498
38398 msgid "guestfs_set_out_of_memory_handler"
38399 msgstr "guestfs_set_out_of_memory_handler"
38400
38401 #. type: verbatim
38402 #: ../src/guestfs.pod:1500
38403 #, no-wrap
38404 msgid ""
38405 " typedef void (*guestfs_abort_cb) (void);\n"
38406 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38407 "                                         guestfs_abort_cb);\n"
38408 "\n"
38409 msgstr ""
38410
38411 #. type: textblock
38412 #: ../src/guestfs.pod:1504
38413 msgid ""
38414 "The callback C<cb> will be called if there is an out of memory situation.  "
38415 "I<Note this callback must not return>."
38416 msgstr ""
38417
38418 #. type: textblock
38419 #: ../src/guestfs.pod:1507
38420 msgid "The default is to call L<abort(3)>."
38421 msgstr ""
38422
38423 #. type: textblock
38424 #: ../src/guestfs.pod:1509
38425 msgid ""
38426 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
38427 msgstr ""
38428
38429 #. type: =head2
38430 #: ../src/guestfs.pod:1512
38431 msgid "guestfs_get_out_of_memory_handler"
38432 msgstr "guestfs_get_out_of_memory_handler"
38433
38434 #. type: verbatim
38435 #: ../src/guestfs.pod:1514
38436 #, no-wrap
38437 msgid ""
38438 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38439 "\n"
38440 msgstr ""
38441 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38442 "\n"
38443
38444 #. type: textblock
38445 #: ../src/guestfs.pod:1516
38446 msgid "This returns the current out of memory handler."
38447 msgstr ""
38448
38449 #. type: =head1
38450 #: ../src/guestfs.pod:1518
38451 msgid "API CALLS"
38452 msgstr "ВИКЛИКИ API"
38453
38454 #. type: =head1
38455 #: ../src/guestfs.pod:1522
38456 msgid "STRUCTURES"
38457 msgstr "СТРУКТУРИ"
38458
38459 #. type: textblock
38460 #: ../src/guestfs.pod:1524
38461 msgid "@STRUCTS@"
38462 msgstr "@STRUCTS@"
38463
38464 #. type: =head1
38465 #: ../src/guestfs.pod:1526
38466 msgid "AVAILABILITY"
38467 msgstr "ДОСТУПНІСТЬ"
38468
38469 #. type: =head2
38470 #: ../src/guestfs.pod:1528
38471 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
38472 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
38473
38474 #. type: textblock
38475 #: ../src/guestfs.pod:1530
38476 msgid ""
38477 "Using L</guestfs_available> you can test availability of the following "
38478 "groups of functions.  This test queries the appliance to see if the "
38479 "appliance you are currently using supports the functionality."
38480 msgstr ""
38481
38482 #. type: textblock
38483 #: ../src/guestfs.pod:1535
38484 msgid "@AVAILABILITY@"
38485 msgstr "@AVAILABILITY@"
38486
38487 #. type: =head2
38488 #: ../src/guestfs.pod:1537
38489 msgid "GUESTFISH supported COMMAND"
38490 msgstr ""
38491
38492 #. type: textblock
38493 #: ../src/guestfs.pod:1539
38494 msgid ""
38495 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
38496 "prints out the available groups and whether they are supported by this build "
38497 "of libguestfs.  Note however that you have to do C<run> first."
38498 msgstr ""
38499
38500 #. type: =head2
38501 #: ../src/guestfs.pod:1544
38502 msgid "SINGLE CALLS AT COMPILE TIME"
38503 msgstr ""
38504
38505 #. type: textblock
38506 #: ../src/guestfs.pod:1546
38507 msgid ""
38508 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
38509 "function, such as:"
38510 msgstr ""
38511
38512 #. type: verbatim
38513 #: ../src/guestfs.pod:1549
38514 #, no-wrap
38515 msgid ""
38516 " #define LIBGUESTFS_HAVE_DD 1\n"
38517 "\n"
38518 msgstr ""
38519 " #define LIBGUESTFS_HAVE_DD 1\n"
38520 "\n"
38521
38522 #. type: textblock
38523 #: ../src/guestfs.pod:1551
38524 msgid "if L</guestfs_dd> is available."
38525 msgstr ""
38526
38527 #. type: textblock
38528 #: ../src/guestfs.pod:1553
38529 msgid ""
38530 "Before version 1.5.8, if you needed to test whether a single libguestfs "
38531 "function is available at compile time, we recommended using build tools such "
38532 "as autoconf or cmake.  For example in autotools you could use:"
38533 msgstr ""
38534
38535 #. type: verbatim
38536 #: ../src/guestfs.pod:1558
38537 #, no-wrap
38538 msgid ""
38539 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38540 " AC_CHECK_FUNCS([guestfs_dd])\n"
38541 "\n"
38542 msgstr ""
38543 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38544 " AC_CHECK_FUNCS([guestfs_dd])\n"
38545 "\n"
38546
38547 #. type: textblock
38548 #: ../src/guestfs.pod:1561
38549 msgid ""
38550 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
38551 "in your program."
38552 msgstr ""
38553
38554 #. type: =head2
38555 #: ../src/guestfs.pod:1564
38556 msgid "SINGLE CALLS AT RUN TIME"
38557 msgstr ""
38558
38559 #. type: textblock
38560 #: ../src/guestfs.pod:1566
38561 msgid ""
38562 "Testing at compile time doesn't guarantee that a function really exists in "
38563 "the library.  The reason is that you might be dynamically linked against a "
38564 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
38565 "This situation unfortunately results in a segmentation fault, which is a "
38566 "shortcoming of the C dynamic linking system itself."
38567 msgstr ""
38568
38569 #. type: textblock
38570 #: ../src/guestfs.pod:1573
38571 msgid ""
38572 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38573 "in this example program (note that you still need the compile time check as "
38574 "well):"
38575 msgstr ""
38576
38577 #. type: verbatim
38578 #: ../src/guestfs.pod:1577
38579 #, no-wrap
38580 msgid ""
38581 " #include <stdio.h>\n"
38582 " #include <stdlib.h>\n"
38583 " #include <unistd.h>\n"
38584 " #include <dlfcn.h>\n"
38585 " #include <guestfs.h>\n"
38586 " \n"
38587 msgstr ""
38588 " #include <stdio.h>\n"
38589 " #include <stdlib.h>\n"
38590 " #include <unistd.h>\n"
38591 " #include <dlfcn.h>\n"
38592 " #include <guestfs.h>\n"
38593 " \n"
38594
38595 #. type: verbatim
38596 #: ../src/guestfs.pod:1583
38597 #, no-wrap
38598 msgid ""
38599 " main ()\n"
38600 " {\n"
38601 " #ifdef LIBGUESTFS_HAVE_DD\n"
38602 "   void *dl;\n"
38603 "   int has_function;\n"
38604 " \n"
38605 msgstr ""
38606 " main ()\n"
38607 " {\n"
38608 " #ifdef LIBGUESTFS_HAVE_DD\n"
38609 "   void *dl;\n"
38610 "   int has_function;\n"
38611 " \n"
38612
38613 #. type: verbatim
38614 #: ../src/guestfs.pod:1589
38615 #, no-wrap
38616 msgid ""
38617 "   /* Test if the function guestfs_dd is really available. */\n"
38618 "   dl = dlopen (NULL, RTLD_LAZY);\n"
38619 "   if (!dl) {\n"
38620 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38621 "     exit (EXIT_FAILURE);\n"
38622 "   }\n"
38623 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38624 "   dlclose (dl);\n"
38625 " \n"
38626 msgstr ""
38627
38628 #. type: verbatim
38629 #: ../src/guestfs.pod:1598
38630 #, no-wrap
38631 msgid ""
38632 "   if (!has_function)\n"
38633 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38634 "   else {\n"
38635 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38636 "     /* Now it's safe to call\n"
38637 "     guestfs_dd (g, \"foo\", \"bar\");\n"
38638 "     */\n"
38639 "   }\n"
38640 " #else\n"
38641 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38642 " #endif\n"
38643 "  }\n"
38644 "\n"
38645 msgstr ""
38646
38647 #. type: textblock
38648 #: ../src/guestfs.pod:1611
38649 msgid ""
38650 "You may think the above is an awful lot of hassle, and it is.  There are "
38651 "other ways outside of the C linking system to ensure that this kind of "
38652 "incompatibility never arises, such as using package versioning:"
38653 msgstr ""
38654
38655 #. type: verbatim
38656 #: ../src/guestfs.pod:1616
38657 #, no-wrap
38658 msgid ""
38659 " Requires: libguestfs >= 1.0.80\n"
38660 "\n"
38661 msgstr ""
38662
38663 #. type: =head1
38664 #: ../src/guestfs.pod:1618
38665 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38666 msgstr ""
38667
38668 #. type: textblock
38669 #: ../src/guestfs.pod:1620
38670 msgid ""
38671 "A recent feature of the API is the introduction of calls which take optional "
38672 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
38673 "takes variable arguments (ie. C<...>), as in this example:"
38674 msgstr ""
38675
38676 #. type: verbatim
38677 #: ../src/guestfs.pod:1625
38678 #, no-wrap
38679 msgid ""
38680 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38681 "\n"
38682 msgstr ""
38683 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38684 "\n"
38685
38686 #. type: textblock
38687 #: ../src/guestfs.pod:1627
38688 msgid ""
38689 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
38690 "call with no optional arguments specified:"
38691 msgstr ""
38692
38693 #. type: verbatim
38694 #: ../src/guestfs.pod:1630
38695 #, no-wrap
38696 msgid ""
38697 " guestfs_add_drive_opts (g, filename, -1);\n"
38698 "\n"
38699 msgstr ""
38700 " guestfs_add_drive_opts (g, filename, -1);\n"
38701 "\n"
38702
38703 #. type: textblock
38704 #: ../src/guestfs.pod:1632
38705 msgid "With a single optional argument:"
38706 msgstr ""
38707
38708 #. type: verbatim
38709 #: ../src/guestfs.pod:1634
38710 #, no-wrap
38711 msgid ""
38712 " guestfs_add_drive_opts (g, filename,\n"
38713 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38714 "                         -1);\n"
38715 "\n"
38716 msgstr ""
38717 " guestfs_add_drive_opts (g, filename,\n"
38718 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38719 "                         -1);\n"
38720 "\n"
38721
38722 #. type: textblock
38723 #: ../src/guestfs.pod:1638
38724 msgid "With two:"
38725 msgstr ""
38726
38727 #. type: verbatim
38728 #: ../src/guestfs.pod:1640
38729 #, no-wrap
38730 msgid ""
38731 " guestfs_add_drive_opts (g, filename,\n"
38732 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38733 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38734 "                         -1);\n"
38735 "\n"
38736 msgstr ""
38737 " guestfs_add_drive_opts (g, filename,\n"
38738 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38739 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38740 "                         -1);\n"
38741 "\n"
38742
38743 #. type: textblock
38744 #: ../src/guestfs.pod:1645
38745 msgid ""
38746 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
38747 "happen!"
38748 msgstr ""
38749
38750 #. type: =head2
38751 #: ../src/guestfs.pod:1648
38752 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38753 msgstr ""
38754
38755 #. type: textblock
38756 #: ../src/guestfs.pod:1650
38757 msgid ""
38758 "The second variant has the same name with the suffix C<_va>, which works the "
38759 "same way but takes a C<va_list>.  See the C manual for details.  For the "
38760 "example function, this is declared:"
38761 msgstr ""
38762
38763 #. type: verbatim
38764 #: ../src/guestfs.pod:1654
38765 #, no-wrap
38766 msgid ""
38767 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38768 "                                va_list args);\n"
38769 "\n"
38770 msgstr ""
38771 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38772 "                                va_list args);\n"
38773 "\n"
38774
38775 #. type: =head2
38776 #: ../src/guestfs.pod:1657
38777 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38778 msgstr ""
38779
38780 #. type: textblock
38781 #: ../src/guestfs.pod:1659
38782 msgid ""
38783 "The third variant is useful where you need to construct these calls.  You "
38784 "pass in a structure where you fill in the optional fields.  The structure "
38785 "has a bitmask as the first element which you must set to indicate which "
38786 "fields you have filled in.  For our example function the structure and call "
38787 "are declared:"
38788 msgstr ""
38789
38790 #. type: verbatim
38791 #: ../src/guestfs.pod:1665
38792 #, no-wrap
38793 msgid ""
38794 " struct guestfs_add_drive_opts_argv {\n"
38795 "   uint64_t bitmask;\n"
38796 "   int readonly;\n"
38797 "   const char *format;\n"
38798 "   /* ... */\n"
38799 " };\n"
38800 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38801 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38802 "\n"
38803 msgstr ""
38804 " struct guestfs_add_drive_opts_argv {\n"
38805 "   uint64_t bitmask;\n"
38806 "   int readonly;\n"
38807 "   const char *format;\n"
38808 "   /* ... */\n"
38809 " };\n"
38810 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38811 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38812 "\n"
38813
38814 #. type: textblock
38815 #: ../src/guestfs.pod:1674
38816 msgid "You could call it like this:"
38817 msgstr ""
38818
38819 #. type: verbatim
38820 #: ../src/guestfs.pod:1676
38821 #, no-wrap
38822 msgid ""
38823 " struct guestfs_add_drive_opts_argv optargs = {\n"
38824 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38825 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38826 "   .readonly = 1,\n"
38827 "   .format = \"qcow2\"\n"
38828 " };\n"
38829 " \n"
38830 msgstr ""
38831 " struct guestfs_add_drive_opts_argv optargs = {\n"
38832 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38833 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38834 "   .readonly = 1,\n"
38835 "   .format = \"qcow2\"\n"
38836 " };\n"
38837 " \n"
38838
38839 #. type: verbatim
38840 #: ../src/guestfs.pod:1683
38841 #, no-wrap
38842 msgid ""
38843 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38844 "\n"
38845 msgstr ""
38846 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38847 "\n"
38848
38849 #. type: textblock
38850 #: ../src/guestfs.pod:1691
38851 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38852 msgstr ""
38853
38854 #. type: textblock
38855 #: ../src/guestfs.pod:1696
38856 msgid "You do not need to fill in all fields of the structure."
38857 msgstr ""
38858
38859 #. type: textblock
38860 #: ../src/guestfs.pod:1700
38861 msgid ""
38862 "There must be a one-to-one correspondence between fields of the structure "
38863 "that are filled in, and bits set in the bitmask."
38864 msgstr ""
38865
38866 #. type: =head2
38867 #: ../src/guestfs.pod:1705
38868 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38869 msgstr ""
38870
38871 #. type: textblock
38872 #: ../src/guestfs.pod:1707
38873 msgid ""
38874 "In other languages, optional arguments are expressed in the way that is "
38875 "natural for that language.  We refer you to the language-specific "
38876 "documentation for more details on that."
38877 msgstr ""
38878
38879 #. type: textblock
38880 #: ../src/guestfs.pod:1711
38881 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38882 msgstr ""
38883
38884 #. type: =head2
38885 #: ../src/guestfs.pod:1713
38886 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38887 msgstr ""
38888
38889 #. type: textblock
38890 #: ../src/guestfs.pod:1715
38891 msgid ""
38892 "B<Note:> This section documents the generic event mechanism introduced in "
38893 "libguestfs 1.10, which you should use in new code if possible.  The old "
38894 "functions C<guestfs_set_log_message_callback>, "
38895 "C<guestfs_set_subprocess_quit_callback>, "
38896 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38897 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38898 "page.  Because of the ABI guarantee, the old functions continue to work."
38899 msgstr ""
38900
38901 #. type: textblock
38902 #: ../src/guestfs.pod:1724
38903 msgid ""
38904 "Handles generate events when certain things happen, such as log messages "
38905 "being generated, progress messages during long-running operations, or the "
38906 "handle being closed.  The API calls described below let you register a "
38907 "callback to be called when events happen.  You can register multiple "
38908 "callbacks (for the same, different or overlapping sets of events), and "
38909 "individually remove callbacks.  If callbacks are not removed, then they "
38910 "remain in force until the handle is closed."
38911 msgstr ""
38912
38913 #. type: textblock
38914 #: ../src/guestfs.pod:1732
38915 msgid ""
38916 "In the current implementation, events are only generated synchronously: that "
38917 "means that events (and hence callbacks) can only happen while you are in the "
38918 "middle of making another libguestfs call.  The callback is called in the "
38919 "same thread."
38920 msgstr ""
38921
38922 #. type: textblock
38923 #: ../src/guestfs.pod:1737
38924 msgid ""
38925 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38926 "unsigned integers, or a message buffer.  Payloads are discussed later on."
38927 msgstr ""
38928
38929 #. type: =head3
38930 #: ../src/guestfs.pod:1741
38931 msgid "CLASSES OF EVENTS"
38932 msgstr ""
38933
38934 #. type: =item
38935 #: ../src/guestfs.pod:1745
38936 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38937 msgstr ""
38938
38939 #. type: textblock
38940 #: ../src/guestfs.pod:1748
38941 msgid ""
38942 "The callback function will be called while the handle is being closed "
38943 "(synchronously from L</guestfs_close>)."
38944 msgstr ""
38945
38946 #. type: textblock
38947 #: ../src/guestfs.pod:1751
38948 msgid ""
38949 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38950 "handles that are open when the program exits.  This means that this callback "
38951 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38952 "problems in higher-level languages (eg. if your HLL interpreter has already "
38953 "been cleaned up by the time this is called, and if your callback then jumps "
38954 "into some HLL function)."
38955 msgstr ""
38956
38957 #. type: textblock
38958 #: ../src/guestfs.pod:1758
38959 msgid ""
38960 "If no callback is registered: the handle is closed without any callback "
38961 "being invoked."
38962 msgstr ""
38963
38964 #. type: =item
38965 #: ../src/guestfs.pod:1761
38966 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38967 msgstr ""
38968
38969 #. type: textblock
38970 #: ../src/guestfs.pod:1764
38971 msgid ""
38972 "The callback function will be called when the child process quits, either "
38973 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
38974 "corresponds to a transition from any state to the CONFIG state)."
38975 msgstr ""
38976
38977 #. type: textblock
38978 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
38979 msgid "If no callback is registered: the event is ignored."
38980 msgstr ""
38981
38982 #. type: =item
38983 #: ../src/guestfs.pod:1770
38984 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38985 msgstr ""
38986
38987 #. type: textblock
38988 #: ../src/guestfs.pod:1773
38989 msgid ""
38990 "The callback function will be called when the child process becomes ready "
38991 "first time after it has been launched.  (This corresponds to a transition "
38992 "from LAUNCHING to the READY state)."
38993 msgstr ""
38994
38995 #. type: =item
38996 #: ../src/guestfs.pod:1779
38997 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38998 msgstr ""
38999
39000 #. type: textblock
39001 #: ../src/guestfs.pod:1782
39002 msgid ""
39003 "Some long-running operations can generate progress messages.  If this "
39004 "callback is registered, then it will be called each time a progress message "
39005 "is generated (usually two seconds after the operation started, and three "
39006 "times per second thereafter until it completes, although the frequency may "
39007 "change in future versions)."
39008 msgstr ""
39009
39010 #. type: textblock
39011 #: ../src/guestfs.pod:1788
39012 msgid ""
39013 "The callback receives in the payload four unsigned 64 bit numbers which are "
39014 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
39015 msgstr ""
39016
39017 #. type: textblock
39018 #: ../src/guestfs.pod:1791
39019 msgid ""
39020 "The units of C<total> are not defined, although for some operations C<total> "
39021 "may relate in some way to the amount of data to be transferred (eg. in bytes "
39022 "or megabytes), and C<position> may be the portion which has been transferred."
39023 msgstr ""
39024
39025 #. type: textblock
39026 #: ../src/guestfs.pod:1796
39027 msgid "The only defined and stable parts of the API are:"
39028 msgstr ""
39029
39030 #. type: textblock
39031 #: ../src/guestfs.pod:1802
39032 msgid ""
39033 "The callback can display to the user some type of progress bar or indicator "
39034 "which shows the ratio of C<position>:C<total>."
39035 msgstr ""
39036
39037 #. type: textblock
39038 #: ../src/guestfs.pod:1807
39039 msgid "0 E<lt>= C<position> E<lt>= C<total>"
39040 msgstr ""
39041
39042 #. type: textblock
39043 #: ../src/guestfs.pod:1811
39044 msgid ""
39045 "If any progress notification is sent during a call, then a final progress "
39046 "notification is always sent when C<position> = C<total> (I<unless> the call "
39047 "fails with an error)."
39048 msgstr ""
39049
39050 #. type: textblock
39051 #: ../src/guestfs.pod:1815
39052 msgid ""
39053 "This is to simplify caller code, so callers can easily set the progress "
39054 "indicator to \"100%\" at the end of the operation, without requiring special "
39055 "code to detect this case."
39056 msgstr ""
39057
39058 #. type: textblock
39059 #: ../src/guestfs.pod:1821
39060 msgid ""
39061 "For some calls we are unable to estimate the progress of the call, but we "
39062 "can still generate progress messages to indicate activity.  This is known as "
39063 "\"pulse mode\", and is directly supported by certain progress bar "
39064 "implementations (eg. GtkProgressBar)."
39065 msgstr ""
39066
39067 #. type: textblock
39068 #: ../src/guestfs.pod:1826
39069 msgid ""
39070 "For these calls, zero or more progress messages are generated with "
39071 "C<position = 0> and C<total = 1>, followed by a final message with "
39072 "C<position = total = 1>."
39073 msgstr ""
39074
39075 #. type: textblock
39076 #: ../src/guestfs.pod:1830
39077 msgid ""
39078 "As noted above, if the call fails with an error then the final message may "
39079 "not be generated."
39080 msgstr ""
39081
39082 #. type: textblock
39083 #: ../src/guestfs.pod:1835
39084 msgid ""
39085 "The callback also receives the procedure number (C<proc_nr>) and serial "
39086 "number (C<serial>) of the call.  These are only useful for debugging "
39087 "protocol issues, and the callback can normally ignore them.  The callback "
39088 "may want to print these numbers in error messages or debugging messages."
39089 msgstr ""
39090
39091 #. type: textblock
39092 #: ../src/guestfs.pod:1841
39093 msgid "If no callback is registered: progress messages are discarded."
39094 msgstr ""
39095
39096 #. type: =item
39097 #: ../src/guestfs.pod:1843
39098 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
39099 msgstr ""
39100
39101 #. type: textblock
39102 #: ../src/guestfs.pod:1846
39103 msgid ""
39104 "The callback function is called whenever a log message is generated by qemu, "
39105 "the appliance kernel, guestfsd (daemon), or utility programs."
39106 msgstr ""
39107
39108 #. type: textblock
39109 #: ../src/guestfs.pod:1849
39110 msgid ""
39111 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
39112 "guestfs_launch>) then additional debug messages are generated."
39113 msgstr ""
39114
39115 #. type: textblock
39116 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
39117 msgid ""
39118 "If no callback is registered: the messages are discarded unless the verbose "
39119 "flag is set in which case they are sent to stderr.  You can override the "
39120 "printing of verbose messages to stderr by setting up a callback."
39121 msgstr ""
39122
39123 #. type: =item
39124 #: ../src/guestfs.pod:1857
39125 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
39126 msgstr ""
39127
39128 #. type: textblock
39129 #: ../src/guestfs.pod:1860
39130 msgid ""
39131 "The callback function is called whenever a log message is generated by the "
39132 "library part of libguestfs."
39133 msgstr ""
39134
39135 #. type: textblock
39136 #: ../src/guestfs.pod:1863
39137 msgid ""
39138 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
39139 "messages are generated."
39140 msgstr ""
39141
39142 #. type: =item
39143 #: ../src/guestfs.pod:1871
39144 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
39145 msgstr ""
39146
39147 #. type: textblock
39148 #: ../src/guestfs.pod:1874
39149 msgid ""
39150 "The callback function is called whenever a trace message is generated.  This "
39151 "only applies if the trace flag (L</guestfs_set_trace>) is set."
39152 msgstr ""
39153
39154 #. type: textblock
39155 #: ../src/guestfs.pod:1877
39156 msgid ""
39157 "If no callback is registered: the messages are sent to stderr.  You can "
39158 "override the printing of trace messages to stderr by setting up a callback."
39159 msgstr ""
39160
39161 #. type: =item
39162 #: ../src/guestfs.pod:1881
39163 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
39164 msgstr ""
39165
39166 #. type: textblock
39167 #: ../src/guestfs.pod:1884
39168 msgid ""
39169 "The callback function is called whenever a libguestfs function is entered."
39170 msgstr ""
39171
39172 #. type: textblock
39173 #: ../src/guestfs.pod:1887
39174 msgid ""
39175 "The payload is a string which contains the name of the function that we are "
39176 "entering (not including C<guestfs_> prefix)."
39177 msgstr ""
39178
39179 #. type: textblock
39180 #: ../src/guestfs.pod:1890
39181 msgid ""
39182 "Note that libguestfs functions can call themselves, so you may see many "
39183 "events from a single call.  A few libguestfs functions do not generate this "
39184 "event."
39185 msgstr ""
39186
39187 #. type: =head3
39188 #: ../src/guestfs.pod:1898
39189 msgid "guestfs_set_event_callback"
39190 msgstr ""
39191
39192 #. type: verbatim
39193 #: ../src/guestfs.pod:1900
39194 #, no-wrap
39195 msgid ""
39196 " int guestfs_set_event_callback (guestfs_h *g,\n"
39197 "                                 guestfs_event_callback cb,\n"
39198 "                                 uint64_t event_bitmask,\n"
39199 "                                 int flags,\n"
39200 "                                 void *opaque);\n"
39201 "\n"
39202 msgstr ""
39203
39204 #. type: textblock
39205 #: ../src/guestfs.pod:1906
39206 msgid ""
39207 "This function registers a callback (C<cb>) for all event classes in the "
39208 "C<event_bitmask>."
39209 msgstr ""
39210
39211 #. type: textblock
39212 #: ../src/guestfs.pod:1909
39213 msgid ""
39214 "For example, to register for all log message events, you could call this "
39215 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
39216 "To register a single callback for all possible classes of events, use "
39217 "C<GUESTFS_EVENT_ALL>."
39218 msgstr ""
39219
39220 #. type: textblock
39221 #: ../src/guestfs.pod:1915
39222 msgid "C<flags> should always be passed as 0."
39223 msgstr ""
39224
39225 #. type: textblock
39226 #: ../src/guestfs.pod:1917
39227 msgid ""
39228 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
39229 "it for any purpose."
39230 msgstr ""
39231
39232 #. type: textblock
39233 #: ../src/guestfs.pod:1920
39234 msgid ""
39235 "The return value is the event handle (an integer) which you can use to "
39236 "delete the callback (see below)."
39237 msgstr ""
39238
39239 #. type: textblock
39240 #: ../src/guestfs.pod:1923
39241 msgid ""
39242 "If there is an error, this function returns C<-1>, and sets the error in the "
39243 "handle in the usual way (see L</guestfs_last_error> etc.)"
39244 msgstr ""
39245
39246 #. type: textblock
39247 #: ../src/guestfs.pod:1926
39248 msgid ""
39249 "Callbacks remain in effect until they are deleted, or until the handle is "
39250 "closed."
39251 msgstr ""
39252
39253 #. type: textblock
39254 #: ../src/guestfs.pod:1929
39255 msgid ""
39256 "In the case where multiple callbacks are registered for a particular event "
39257 "class, all of the callbacks are called.  The order in which multiple "
39258 "callbacks are called is not defined."
39259 msgstr ""
39260
39261 #. type: =head3
39262 #: ../src/guestfs.pod:1933
39263 msgid "guestfs_delete_event_callback"
39264 msgstr ""
39265
39266 #. type: verbatim
39267 #: ../src/guestfs.pod:1935
39268 #, no-wrap
39269 msgid ""
39270 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39271 "\n"
39272 msgstr ""
39273
39274 #. type: textblock
39275 #: ../src/guestfs.pod:1937
39276 msgid ""
39277 "Delete a callback that was previously registered.  C<event_handle> should be "
39278 "the integer that was returned by a previous call to "
39279 "C<guestfs_set_event_callback> on the same handle."
39280 msgstr ""
39281
39282 #. type: =head3
39283 #: ../src/guestfs.pod:1941
39284 msgid "guestfs_event_callback"
39285 msgstr ""
39286
39287 #. type: verbatim
39288 #: ../src/guestfs.pod:1943
39289 #, no-wrap
39290 msgid ""
39291 " typedef void (*guestfs_event_callback) (\n"
39292 "                  guestfs_h *g,\n"
39293 "                  void *opaque,\n"
39294 "                  uint64_t event,\n"
39295 "                  int event_handle,\n"
39296 "                  int flags,\n"
39297 "                  const char *buf, size_t buf_len,\n"
39298 "                  const uint64_t *array, size_t array_len);\n"
39299 "\n"
39300 msgstr ""
39301
39302 #. type: textblock
39303 #: ../src/guestfs.pod:1952
39304 msgid ""
39305 "This is the type of the event callback function that you have to provide."
39306 msgstr ""
39307
39308 #. type: textblock
39309 #: ../src/guestfs.pod:1955
39310 msgid ""
39311 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39312 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39313 "handle, and C<flags> which in the current API you should ignore."
39314 msgstr ""
39315
39316 #. type: textblock
39317 #: ../src/guestfs.pod:1959
39318 msgid ""
39319 "The remaining parameters contain the event payload (if any).  Each event may "
39320 "contain a payload, which usually relates to the event class, but for future "
39321 "proofing your code should be written to handle any payload for any event "
39322 "class."
39323 msgstr ""
39324
39325 #. type: textblock
39326 #: ../src/guestfs.pod:1964
39327 msgid ""
39328 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39329 "there is no message buffer).  Note that this message buffer can contain "
39330 "arbitrary 8 bit data, including NUL bytes."
39331 msgstr ""
39332
39333 #. type: textblock
39334 #: ../src/guestfs.pod:1968
39335 msgid ""
39336 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
39337 "moment this is only used for progress messages."
39338 msgstr ""
39339
39340 #. type: =head3
39341 #: ../src/guestfs.pod:1971
39342 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39343 msgstr ""
39344
39345 #. type: textblock
39346 #: ../src/guestfs.pod:1973
39347 msgid ""
39348 "One motivation for the generic event API was to allow GUI programs to "
39349 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
39350 "unconditionally to C<stderr>."
39351 msgstr ""
39352
39353 #. type: textblock
39354 #: ../src/guestfs.pod:1977
39355 msgid ""
39356 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39357 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
39358 "messages are not events; you must capture error messages separately)."
39359 msgstr ""
39360
39361 #. type: textblock
39362 #: ../src/guestfs.pod:1982
39363 msgid ""
39364 "Programs have to set up a callback to capture the classes of events of "
39365 "interest:"
39366 msgstr ""
39367
39368 #. type: verbatim
39369 #: ../src/guestfs.pod:1985
39370 #, no-wrap
39371 msgid ""
39372 " int eh =\n"
39373 "   guestfs_set_event_callback\n"
39374 "     (g, message_callback,\n"
39375 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39376 "      GUESTFS_EVENT_TRACE,\n"
39377 "      0, NULL) == -1)\n"
39378 " if (eh == -1) {\n"
39379 "   // handle error in the usual way\n"
39380 " }\n"
39381 "\n"
39382 msgstr ""
39383
39384 #. type: textblock
39385 #: ../src/guestfs.pod:1995
39386 msgid ""
39387 "The callback can then direct messages to the appropriate place.  In this "
39388 "example, messages are directed to syslog:"
39389 msgstr ""
39390
39391 #. type: verbatim
39392 #: ../src/guestfs.pod:1998
39393 #, no-wrap
39394 msgid ""
39395 " static void\n"
39396 " message_callback (\n"
39397 "         guestfs_h *g,\n"
39398 "         void *opaque,\n"
39399 "         uint64_t event,\n"
39400 "         int event_handle,\n"
39401 "         int flags,\n"
39402 "         const char *buf, size_t buf_len,\n"
39403 "         const uint64_t *array, size_t array_len)\n"
39404 " {\n"
39405 "   const int priority = LOG_USER|LOG_INFO;\n"
39406 "   if (buf_len > 0)\n"
39407 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
39408 " }\n"
39409 "\n"
39410 msgstr ""
39411
39412 #. type: =head1
39413 #: ../src/guestfs.pod:2013
39414 msgid "CANCELLING LONG TRANSFERS"
39415 msgstr ""
39416
39417 #. type: textblock
39418 #: ../src/guestfs.pod:2015
39419 msgid ""
39420 "Some operations can be cancelled by the caller while they are in progress.  "
39421 "Currently only operations that involve uploading or downloading data can be "
39422 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
39423 "parameters in the generator)."
39424 msgstr ""
39425
39426 #. type: =head2
39427 #: ../src/guestfs.pod:2020
39428 msgid "guestfs_user_cancel"
39429 msgstr ""
39430
39431 #. type: verbatim
39432 #: ../src/guestfs.pod:2022
39433 #, no-wrap
39434 msgid ""
39435 " void guestfs_user_cancel (guestfs_h *g);\n"
39436 "\n"
39437 msgstr ""
39438
39439 #. type: textblock
39440 #: ../src/guestfs.pod:2024
39441 msgid ""
39442 "C<guestfs_user_cancel> cancels the current upload or download operation."
39443 msgstr ""
39444
39445 #. type: textblock
39446 #: ../src/guestfs.pod:2027
39447 msgid ""
39448 "Unlike most other libguestfs calls, this function is signal safe and thread "
39449 "safe.  You can call it from a signal handler or from another thread, without "
39450 "needing to do any locking."
39451 msgstr ""
39452
39453 #. type: textblock
39454 #: ../src/guestfs.pod:2031
39455 msgid ""
39456 "The transfer that was in progress (if there is one) will stop shortly "
39457 "afterwards, and will return an error.  The errno (see L</"
39458 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
39459 "out if the operation was cancelled or failed because of another error."
39460 msgstr ""
39461
39462 #. type: textblock
39463 #: ../src/guestfs.pod:2037
39464 msgid ""
39465 "No cleanup is performed: for example, if a file was being uploaded then "
39466 "after cancellation there may be a partially uploaded file.  It is the "
39467 "caller's responsibility to clean up if necessary."
39468 msgstr ""
39469
39470 #. type: textblock
39471 #: ../src/guestfs.pod:2041
39472 msgid "There are two common places that you might call C<guestfs_user_cancel>."
39473 msgstr ""
39474
39475 #. type: textblock
39476 #: ../src/guestfs.pod:2043
39477 msgid ""
39478 "In an interactive text-based program, you might call it from a C<SIGINT> "
39479 "signal handler so that pressing C<^C> cancels the current operation.  (You "
39480 "also need to call L</guestfs_set_pgroup> so that child processes don't "
39481 "receive the C<^C> signal)."
39482 msgstr ""
39483
39484 #. type: textblock
39485 #: ../src/guestfs.pod:2048
39486 msgid ""
39487 "In a graphical program, when the main thread is displaying a progress bar "
39488 "with a cancel button, wire up the cancel button to call this function."
39489 msgstr ""
39490
39491 #. type: =head1
39492 #: ../src/guestfs.pod:2052
39493 msgid "PRIVATE DATA AREA"
39494 msgstr ""
39495
39496 #. type: textblock
39497 #: ../src/guestfs.pod:2054
39498 msgid ""
39499 "You can attach named pieces of private data to the libguestfs handle, fetch "
39500 "them by name, and walk over them, for the lifetime of the handle.  This is "
39501 "called the private data area and is only available from the C API."
39502 msgstr ""
39503
39504 #. type: textblock
39505 #: ../src/guestfs.pod:2059
39506 msgid "To attach a named piece of data, use the following call:"
39507 msgstr ""
39508
39509 #. type: verbatim
39510 #: ../src/guestfs.pod:2061
39511 #, no-wrap
39512 msgid ""
39513 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39514 "\n"
39515 msgstr ""
39516 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39517 "\n"
39518
39519 #. type: textblock
39520 #: ../src/guestfs.pod:2063
39521 msgid ""
39522 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
39523 "pointer (which can be C<NULL>).  Any previous item with the same key is "
39524 "overwritten."
39525 msgstr ""
39526
39527 #. type: textblock
39528 #: ../src/guestfs.pod:2067
39529 msgid ""
39530 "You can use any C<key> you want, but your key should I<not> start with an "
39531 "underscore character.  Keys beginning with an underscore character are "
39532 "reserved for internal libguestfs purposes (eg. for implementing language "
39533 "bindings).  It is recommended that you prefix the key with some unique "
39534 "string to avoid collisions with other users."
39535 msgstr ""
39536
39537 #. type: textblock
39538 #: ../src/guestfs.pod:2073
39539 msgid "To retrieve the pointer, use:"
39540 msgstr ""
39541
39542 #. type: verbatim
39543 #: ../src/guestfs.pod:2075
39544 #, no-wrap
39545 msgid ""
39546 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39547 "\n"
39548 msgstr ""
39549 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39550 "\n"
39551
39552 #. type: textblock
39553 #: ../src/guestfs.pod:2077
39554 msgid ""
39555 "This function returns C<NULL> if either no data is found associated with "
39556 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39557 "C<NULL>."
39558 msgstr ""
39559
39560 #. type: textblock
39561 #: ../src/guestfs.pod:2081
39562 msgid ""
39563 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39564 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
39565 "all.  In particular, libguestfs does I<not> try to free the data when the "
39566 "handle is closed.  If the data must be freed, then the caller must either "
39567 "free it before calling L</guestfs_close> or must set up a close callback to "
39568 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39569 msgstr ""
39570
39571 #. type: textblock
39572 #: ../src/guestfs.pod:2088
39573 msgid "To walk over all entries, use these two functions:"
39574 msgstr ""
39575
39576 #. type: verbatim
39577 #: ../src/guestfs.pod:2090
39578 #, no-wrap
39579 msgid ""
39580 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39581 "\n"
39582 msgstr ""
39583
39584 #. type: verbatim
39585 #: ../src/guestfs.pod:2092
39586 #, no-wrap
39587 msgid ""
39588 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39589 "\n"
39590 msgstr ""
39591
39592 #. type: textblock
39593 #: ../src/guestfs.pod:2094
39594 msgid ""
39595 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
39596 "not have any particular meaning -- keys are not returned in any defined "
39597 "order).  A pointer to the key is returned in C<*key_rtn> and the "
39598 "corresponding data pointer is returned from the function.  C<NULL> is "
39599 "returned if there are no keys stored in the handle."
39600 msgstr ""
39601
39602 #. type: textblock
39603 #: ../src/guestfs.pod:2100
39604 msgid ""
39605 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
39606 "value of this function is also C<NULL> is there are no further entries to "
39607 "return."
39608 msgstr ""
39609
39610 #. type: textblock
39611 #: ../src/guestfs.pod:2104
39612 msgid "Notes about walking over entries:"
39613 msgstr ""
39614
39615 #. type: textblock
39616 #: ../src/guestfs.pod:2110
39617 msgid ""
39618 "You must not call C<guestfs_set_private> while walking over the entries."
39619 msgstr ""
39620
39621 #. type: textblock
39622 #: ../src/guestfs.pod:2115
39623 msgid ""
39624 "The handle maintains an internal iterator which is reset when you call "
39625 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
39626 "call C<guestfs_set_private>."
39627 msgstr ""
39628
39629 #. type: textblock
39630 #: ../src/guestfs.pod:2121
39631 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39632 msgstr ""
39633
39634 #. type: verbatim
39635 #: ../src/guestfs.pod:2123
39636 #, no-wrap
39637 msgid ""
39638 " guestfs_set_private (g, key, NULL);\n"
39639 "\n"
39640 msgstr ""
39641
39642 #. type: textblock
39643 #: ../src/guestfs.pod:2125
39644 msgid "then that C<key> is not returned when walking."
39645 msgstr ""
39646
39647 #. type: textblock
39648 #: ../src/guestfs.pod:2129
39649 msgid ""
39650 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39651 "C<guestfs_next_private> or C<guestfs_set_private>."
39652 msgstr ""
39653
39654 #. type: textblock
39655 #: ../src/guestfs.pod:2135
39656 msgid ""
39657 "The following example code shows how to print all keys and data pointers "
39658 "that are associated with the handle C<g>:"
39659 msgstr ""
39660
39661 #. type: verbatim
39662 #: ../src/guestfs.pod:2138
39663 #, no-wrap
39664 msgid ""
39665 " const char *key;\n"
39666 " void *data = guestfs_first_private (g, &key);\n"
39667 " while (data != NULL)\n"
39668 "   {\n"
39669 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
39670 "     data = guestfs_next_private (g, &key);\n"
39671 "   }\n"
39672 "\n"
39673 msgstr ""
39674
39675 #. type: textblock
39676 #: ../src/guestfs.pod:2146
39677 msgid ""
39678 "More commonly you are only interested in keys that begin with an application-"
39679 "specific prefix C<foo_>.  Modify the loop like so:"
39680 msgstr ""
39681
39682 #. type: verbatim
39683 #: ../src/guestfs.pod:2149
39684 #, no-wrap
39685 msgid ""
39686 " const char *key;\n"
39687 " void *data = guestfs_first_private (g, &key);\n"
39688 " while (data != NULL)\n"
39689 "   {\n"
39690 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39691 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
39692 "     data = guestfs_next_private (g, &key);\n"
39693 "   }\n"
39694 "\n"
39695 msgstr ""
39696
39697 #. type: textblock
39698 #: ../src/guestfs.pod:2158
39699 msgid ""
39700 "If you need to modify keys while walking, then you have to jump back to the "
39701 "beginning of the loop.  For example, to delete all keys prefixed with "
39702 "C<foo_>:"
39703 msgstr ""
39704
39705 #. type: verbatim
39706 #: ../src/guestfs.pod:2162
39707 #, no-wrap
39708 msgid ""
39709 "  const char *key;\n"
39710 "  void *data;\n"
39711 " again:\n"
39712 "  data = guestfs_first_private (g, &key);\n"
39713 "  while (data != NULL)\n"
39714 "    {\n"
39715 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39716 "        {\n"
39717 "          guestfs_set_private (g, key, NULL);\n"
39718 "          /* note that 'key' pointer is now invalid, and so is\n"
39719 "             the internal iterator */\n"
39720 "          goto again;\n"
39721 "        }\n"
39722 "      data = guestfs_next_private (g, &key);\n"
39723 "    }\n"
39724 "\n"
39725 msgstr ""
39726
39727 #. type: textblock
39728 #: ../src/guestfs.pod:2178
39729 msgid ""
39730 "Note that the above loop is guaranteed to terminate because the keys are "
39731 "being deleted, but other manipulations of keys within the loop might not "
39732 "terminate unless you also maintain an indication of which keys have been "
39733 "visited."
39734 msgstr ""
39735
39736 #. type: =head1
39737 #: ../src/guestfs.pod:2183
39738 msgid "SYSTEMTAP"
39739 msgstr ""
39740
39741 #. type: textblock
39742 #: ../src/guestfs.pod:2185
39743 msgid ""
39744 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
39745 "true of any library, not just libguestfs.  However libguestfs also contains "
39746 "static markers to help in probing internal operations."
39747 msgstr ""
39748
39749 #. type: textblock
39750 #: ../src/guestfs.pod:2189
39751 msgid "You can list all the static markers by doing:"
39752 msgstr ""
39753
39754 #. type: verbatim
39755 #: ../src/guestfs.pod:2191
39756 #, no-wrap
39757 msgid ""
39758 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39759 "              .provider(\"guestfs\").mark(\"*\")'\n"
39760 "\n"
39761 msgstr ""
39762
39763 #. type: textblock
39764 #: ../src/guestfs.pod:2194
39765 msgid ""
39766 "B<Note:> These static markers are I<not> part of the stable API and may "
39767 "change in future versions."
39768 msgstr ""
39769
39770 #. type: =head2
39771 #: ../src/guestfs.pod:2197
39772 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39773 msgstr ""
39774
39775 #. type: textblock
39776 #: ../src/guestfs.pod:2199
39777 msgid ""
39778 "This script contains examples of displaying both the static markers and some "
39779 "ordinary C entry points:"
39780 msgstr ""
39781
39782 #. type: verbatim
39783 #: ../src/guestfs.pod:2202
39784 #, no-wrap
39785 msgid ""
39786 " global last;\n"
39787 " \n"
39788 msgstr ""
39789
39790 #. type: verbatim
39791 #: ../src/guestfs.pod:2204
39792 #, no-wrap
39793 msgid ""
39794 " function display_time () {\n"
39795 "       now = gettimeofday_us ();\n"
39796 "       delta = 0;\n"
39797 "       if (last > 0)\n"
39798 "             delta = now - last;\n"
39799 "       last = now;\n"
39800 " \n"
39801 msgstr ""
39802
39803 #. type: verbatim
39804 #: ../src/guestfs.pod:2211
39805 #, no-wrap
39806 msgid ""
39807 "       printf (\"%d (+%d):\", now, delta);\n"
39808 " }\n"
39809 " \n"
39810 msgstr ""
39811
39812 #. type: verbatim
39813 #: ../src/guestfs.pod:2214
39814 #, no-wrap
39815 msgid ""
39816 " probe begin {\n"
39817 "       last = 0;\n"
39818 "       printf (\"ready\\n\");\n"
39819 " }\n"
39820 " \n"
39821 msgstr ""
39822
39823 #. type: verbatim
39824 #: ../src/guestfs.pod:2219
39825 #, no-wrap
39826 msgid ""
39827 " /* Display all calls to static markers. */\n"
39828 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39829 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
39830 "       display_time();\n"
39831 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39832 " }\n"
39833 " \n"
39834 msgstr ""
39835
39836 #. type: verbatim
39837 #: ../src/guestfs.pod:2226
39838 #, no-wrap
39839 msgid ""
39840 " /* Display all calls to guestfs_mkfs* functions. */\n"
39841 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39842 "           .function(\"guestfs_mkfs*\") ? {\n"
39843 "       display_time();\n"
39844 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39845 " }\n"
39846 "\n"
39847 msgstr ""
39848
39849 #. type: textblock
39850 #: ../src/guestfs.pod:2233
39851 msgid ""
39852 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39853 "program.  Note that you either have to be root, or you have to add yourself "
39854 "to several special stap groups.  Consult the systemtap documentation for "
39855 "more information."
39856 msgstr ""
39857
39858 #. type: verbatim
39859 #: ../src/guestfs.pod:2238
39860 #, no-wrap
39861 msgid ""
39862 " # stap /tmp/test.stap\n"
39863 " ready\n"
39864 "\n"
39865 msgstr ""
39866
39867 #. type: textblock
39868 #: ../src/guestfs.pod:2241
39869 msgid "In another terminal, run a guestfish command such as this:"
39870 msgstr ""
39871
39872 #. type: textblock
39873 #: ../src/guestfs.pod:2245
39874 msgid "In the first terminal, stap trace output similar to this is shown:"
39875 msgstr ""
39876
39877 #. type: verbatim
39878 #: ../src/guestfs.pod:2247
39879 #, no-wrap
39880 msgid ""
39881 " 1318248056692655 (+0):\tlaunch_start\n"
39882 " 1318248056692850 (+195):       launch_build_appliance_start\n"
39883 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
39884 " 1318248056838059 (+19774):     launch_run_qemu\n"
39885 " 1318248061071167 (+4233108):   launch_end\n"
39886 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
39887 "\n"
39888 msgstr ""
39889
39890 #. type: =end
39891 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
39892 msgid "html"
39893 msgstr "html"
39894
39895 #. type: textblock
39896 #: ../src/guestfs.pod:2256
39897 msgid ""
39898 "<!-- old anchor for the next section --> <a name="
39899 "\"state_machine_and_low_level_event_api\"/>"
39900 msgstr ""
39901 "<!-- old anchor for the next section --> <a name="
39902 "\"state_machine_and_low_level_event_api\"/>"
39903
39904 #. type: =head1
39905 #: ../src/guestfs.pod:2261
39906 msgid "ARCHITECTURE"
39907 msgstr "АРХІТЕКТУРА"
39908
39909 #. type: textblock
39910 #: ../src/guestfs.pod:2263
39911 msgid ""
39912 "Internally, libguestfs is implemented by running an appliance (a special "
39913 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
39914 "process of the main program."
39915 msgstr ""
39916
39917 #. type: verbatim
39918 #: ../src/guestfs.pod:2267
39919 #, no-wrap
39920 msgid ""
39921 "  ___________________\n"
39922 " /                   \\\n"
39923 " | main program      |\n"
39924 " |                   |\n"
39925 " |                   |           child process / appliance\n"
39926 " |                   |           __________________________\n"
39927 " |                   |          / qemu                     \\\n"
39928 " +-------------------+   RPC    |      +-----------------+ |\n"
39929 " | libguestfs     <--------------------> guestfsd        | |\n"
39930 " |                   |          |      +-----------------+ |\n"
39931 " \\___________________/          |      | Linux kernel    | |\n"
39932 "                                |      +--^--------------+ |\n"
39933 "                                \\_________|________________/\n"
39934 "                                          |\n"
39935 "                                   _______v______\n"
39936 "                                  /              \\\n"
39937 "                                  | Device or    |\n"
39938 "                                  | disk image   |\n"
39939 "                                  \\______________/\n"
39940 "\n"
39941 msgstr ""
39942
39943 #. type: textblock
39944 #: ../src/guestfs.pod:2287
39945 msgid ""
39946 "The library, linked to the main program, creates the child process and hence "
39947 "the appliance in the L</guestfs_launch> function."
39948 msgstr ""
39949
39950 #. type: textblock
39951 #: ../src/guestfs.pod:2290
39952 msgid ""
39953 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39954 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39955 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
39956 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
39957 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
39958 "attached to the qemu process which translates device access by the "
39959 "appliance's Linux kernel into accesses to the image."
39960 msgstr ""
39961
39962 #. type: textblock
39963 #: ../src/guestfs.pod:2299
39964 msgid ""
39965 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
39966 "Although the disk image you are attached to might also be used by some "
39967 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
39968 "care if both libguestfs's qemu process and your virtual machine are trying "
39969 "to update the disk image at the same time, since these usually results in "
39970 "massive disk corruption)."
39971 msgstr ""
39972
39973 #. type: =head1
39974 #: ../src/guestfs.pod:2306
39975 msgid "STATE MACHINE"
39976 msgstr "СКІНЧЕННИЙ АВТОМАТ"
39977
39978 #. type: textblock
39979 #: ../src/guestfs.pod:2308
39980 msgid "libguestfs uses a state machine to model the child process:"
39981 msgstr ""
39982
39983 #. type: verbatim
39984 #: ../src/guestfs.pod:2310
39985 #, no-wrap
39986 msgid ""
39987 "                         |\n"
39988 "                    guestfs_create\n"
39989 "                         |\n"
39990 "                         |\n"
39991 "                     ____V_____\n"
39992 "                    /          \\\n"
39993 "                    |  CONFIG  |\n"
39994 "                    \\__________/\n"
39995 "                     ^ ^   ^  \\\n"
39996 "                    /  |    \\  \\ guestfs_launch\n"
39997 "                   /   |    _\\__V______\n"
39998 "                  /    |   /           \\\n"
39999 "                 /     |   | LAUNCHING |\n"
40000 "                /      |   \\___________/\n"
40001 "               /       |       /\n"
40002 "              /        |  guestfs_launch\n"
40003 "             /         |     /\n"
40004 "    ______  /        __|____V\n"
40005 "   /      \\ ------> /        \\\n"
40006 "   | BUSY |         | READY  |\n"
40007 "   \\______/ <------ \\________/\n"
40008 "\n"
40009 msgstr ""
40010
40011 #. type: textblock
40012 #: ../src/guestfs.pod:2332
40013 msgid ""
40014 "The normal transitions are (1) CONFIG (when the handle is created, but there "
40015 "is no child process), (2) LAUNCHING (when the child process is booting up), "
40016 "(3) alternating between READY and BUSY as commands are issued to, and "
40017 "carried out by, the child process."
40018 msgstr ""
40019
40020 #. type: textblock
40021 #: ../src/guestfs.pod:2337
40022 msgid ""
40023 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
40024 "asynchronously at any time (eg. due to some internal error), and that causes "
40025 "the state to transition back to CONFIG."
40026 msgstr ""
40027
40028 #. type: textblock
40029 #: ../src/guestfs.pod:2341
40030 msgid ""
40031 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
40032 "issued when in the CONFIG state."
40033 msgstr ""
40034
40035 #. type: textblock
40036 #: ../src/guestfs.pod:2344
40037 msgid ""
40038 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
40039 "L</guestfs_launch> blocks until the child process is READY to accept "
40040 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
40041 "moves the state from CONFIG to LAUNCHING while it is running."
40042 msgstr ""
40043
40044 #. type: textblock
40045 #: ../src/guestfs.pod:2350
40046 msgid ""
40047 "API actions such as L</guestfs_mount> can only be issued when in the READY "
40048 "state.  These API calls block waiting for the command to be carried out (ie. "
40049 "the state to transition to BUSY and then back to READY).  There are no non-"
40050 "blocking versions, and no way to issue more than one command per handle at "
40051 "the same time."
40052 msgstr ""
40053
40054 #. type: textblock
40055 #: ../src/guestfs.pod:2356
40056 msgid ""
40057 "Finally, the child process sends asynchronous messages back to the main "
40058 "program, such as kernel log messages.  You can register a callback to "
40059 "receive these messages."
40060 msgstr ""
40061
40062 #. type: =head1
40063 #: ../src/guestfs.pod:2360
40064 msgid "INTERNALS"
40065 msgstr ""
40066
40067 #. type: =head2
40068 #: ../src/guestfs.pod:2362
40069 msgid "APPLIANCE BOOT PROCESS"
40070 msgstr ""
40071
40072 #. type: textblock
40073 #: ../src/guestfs.pod:2364
40074 msgid ""
40075 "This process has evolved and continues to evolve.  The description here "
40076 "corresponds only to the current version of libguestfs and is provided for "
40077 "information only."
40078 msgstr ""
40079
40080 #. type: textblock
40081 #: ../src/guestfs.pod:2368
40082 msgid ""
40083 "In order to follow the stages involved below, enable libguestfs debugging "
40084 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
40085 msgstr ""
40086
40087 #. type: =item
40088 #: ../src/guestfs.pod:2373
40089 msgid "Create the appliance"
40090 msgstr ""
40091
40092 #. type: textblock
40093 #: ../src/guestfs.pod:2375
40094 msgid ""
40095 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
40096 "initrd and the appliance."
40097 msgstr ""
40098
40099 #. type: textblock
40100 #: ../src/guestfs.pod:2378
40101 msgid ""
40102 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
40103 "directory if C<TMPDIR> is set)."
40104 msgstr ""
40105
40106 #. type: textblock
40107 #: ../src/guestfs.pod:2381
40108 msgid ""
40109 "For a complete description of how the appliance is created and cached, read "
40110 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
40111 msgstr ""
40112
40113 #. type: =item
40114 #: ../src/guestfs.pod:2385
40115 msgid "Start qemu and boot the kernel"
40116 msgstr ""
40117
40118 #. type: textblock
40119 #: ../src/guestfs.pod:2387
40120 msgid "qemu is invoked to boot the kernel."
40121 msgstr ""
40122
40123 #. type: =item
40124 #: ../src/guestfs.pod:2389
40125 msgid "Run the initrd"
40126 msgstr ""
40127
40128 #. type: textblock
40129 #: ../src/guestfs.pod:2391
40130 msgid ""
40131 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
40132 "appliance.  The purpose of the initrd is to load enough kernel modules in "
40133 "order that the appliance itself can be mounted and started."
40134 msgstr ""
40135
40136 #. type: textblock
40137 #: ../src/guestfs.pod:2395
40138 msgid ""
40139 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
40140 "initrd>."
40141 msgstr ""
40142
40143 #. type: textblock
40144 #: ../src/guestfs.pod:2398
40145 msgid ""
40146 "When the initrd has started you will see messages showing that kernel "
40147 "modules are being loaded, similar to this:"
40148 msgstr ""
40149
40150 #. type: verbatim
40151 #: ../src/guestfs.pod:2401
40152 #, no-wrap
40153 msgid ""
40154 " febootstrap: ext2 mini initrd starting up\n"
40155 " febootstrap: mounting /sys\n"
40156 " febootstrap: internal insmod libcrc32c.ko\n"
40157 " febootstrap: internal insmod crc32c-intel.ko\n"
40158 "\n"
40159 msgstr ""
40160
40161 #. type: =item
40162 #: ../src/guestfs.pod:2406
40163 msgid "Find and mount the appliance device"
40164 msgstr ""
40165
40166 #. type: textblock
40167 #: ../src/guestfs.pod:2408
40168 msgid ""
40169 "The appliance is a sparse file containing an ext2 filesystem which contains "
40170 "a familiar (although reduced in size) Linux operating system.  It would "
40171 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40172 msgstr ""
40173
40174 #. type: textblock
40175 #: ../src/guestfs.pod:2412
40176 msgid ""
40177 "The regular disks being inspected by libguestfs are the first devices "
40178 "exposed by qemu (eg. as C</dev/vda>)."
40179 msgstr ""
40180
40181 #. type: textblock
40182 #: ../src/guestfs.pod:2415
40183 msgid ""
40184 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40185 "there was only one regular disk)."
40186 msgstr ""
40187
40188 #. type: textblock
40189 #: ../src/guestfs.pod:2418
40190 msgid ""
40191 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40192 "and switch root into the appliance, and run C</init> from the appliance."
40193 msgstr ""
40194
40195 #. type: textblock
40196 #: ../src/guestfs.pod:2422
40197 msgid "If this works successfully you will see messages such as:"
40198 msgstr ""
40199
40200 #. type: verbatim
40201 #: ../src/guestfs.pod:2424
40202 #, no-wrap
40203 msgid ""
40204 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40205 " febootstrap: creating /dev/root as block special 252:16\n"
40206 " febootstrap: mounting new root on /root\n"
40207 " febootstrap: chroot\n"
40208 " Starting /init script ...\n"
40209 "\n"
40210 msgstr ""
40211
40212 #. type: textblock
40213 #: ../src/guestfs.pod:2430
40214 msgid ""
40215 "Note that C<Starting /init script ...> indicates that the appliance's init "
40216 "script is now running."
40217 msgstr ""
40218
40219 #. type: =item
40220 #: ../src/guestfs.pod:2433
40221 msgid "Initialize the appliance"
40222 msgstr ""
40223
40224 #. type: textblock
40225 #: ../src/guestfs.pod:2435
40226 msgid ""
40227 "The appliance itself now initializes itself.  This involves starting certain "
40228 "processes like C<udev>, possibly printing some debug information, and "
40229 "finally running the daemon (C<guestfsd>)."
40230 msgstr ""
40231
40232 #. type: =item
40233 #: ../src/guestfs.pod:2439
40234 msgid "The daemon"
40235 msgstr ""
40236
40237 #. type: textblock
40238 #: ../src/guestfs.pod:2441
40239 msgid ""
40240 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
40241 "should see:"
40242 msgstr ""
40243
40244 #. type: verbatim
40245 #: ../src/guestfs.pod:2444
40246 #, no-wrap
40247 msgid ""
40248 " verbose daemon enabled\n"
40249 "\n"
40250 msgstr ""
40251
40252 #. type: textblock
40253 #: ../src/guestfs.pod:2446
40254 msgid ""
40255 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40256 "connected on the other end to the library."
40257 msgstr ""
40258
40259 #. type: textblock
40260 #: ../src/guestfs.pod:2449
40261 msgid ""
40262 "The daemon connects to this port (and hence to the library) and sends a four "
40263 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40264 "protocol (see below)."
40265 msgstr ""
40266
40267 #. type: =head2
40268 #: ../src/guestfs.pod:2455
40269 msgid "COMMUNICATION PROTOCOL"
40270 msgstr ""
40271
40272 #. type: textblock
40273 #: ../src/guestfs.pod:2457
40274 msgid ""
40275 "Don't rely on using this protocol directly.  This section documents how it "
40276 "currently works, but it may change at any time."
40277 msgstr ""
40278
40279 #. type: textblock
40280 #: ../src/guestfs.pod:2460
40281 msgid ""
40282 "The protocol used to talk between the library and the daemon running inside "
40283 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40284 "1014, RFC 1832, RFC 4506)."
40285 msgstr ""
40286
40287 #. type: textblock
40288 #: ../src/guestfs.pod:2464
40289 msgid ""
40290 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40291 "this file is automatically generated)."
40292 msgstr ""
40293
40294 #. type: textblock
40295 #: ../src/guestfs.pod:2467
40296 msgid ""
40297 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40298 "and C<FileOut> parameters, which are handled with very simple request/reply "
40299 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
40300 "parameters, which use the same request and reply messages, but they may also "
40301 "be followed by files sent using a chunked encoding."
40302 msgstr ""
40303
40304 #. type: =head3
40305 #: ../src/guestfs.pod:2474
40306 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40307 msgstr ""
40308
40309 #. type: textblock
40310 #: ../src/guestfs.pod:2476
40311 msgid "For ordinary functions, the request message is:"
40312 msgstr ""
40313
40314 #. type: verbatim
40315 #: ../src/guestfs.pod:2478
40316 #, no-wrap
40317 msgid ""
40318 " total length (header + arguments,\n"
40319 "      but not including the length word itself)\n"
40320 " struct guestfs_message_header (encoded as XDR)\n"
40321 " struct guestfs_<foo>_args (encoded as XDR)\n"
40322 "\n"
40323 msgstr ""
40324
40325 #. type: textblock
40326 #: ../src/guestfs.pod:2483
40327 msgid ""
40328 "The total length field allows the daemon to allocate a fixed size buffer "
40329 "into which it slurps the rest of the message.  As a result, the total length "
40330 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
40331 "effective size of any request is limited to somewhere under this size."
40332 msgstr ""
40333
40334 #. type: textblock
40335 #: ../src/guestfs.pod:2489
40336 msgid ""
40337 "Note also that many functions don't take any arguments, in which case the "
40338 "C<guestfs_I<foo>_args> is completely omitted."
40339 msgstr ""
40340
40341 #. type: textblock
40342 #: ../src/guestfs.pod:2492
40343 msgid ""
40344 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40345 "receiver knows what type of args structure to expect, or none at all."
40346 msgstr ""
40347
40348 #. type: textblock
40349 #: ../src/guestfs.pod:2496
40350 msgid ""
40351 "For functions that take optional arguments, the optional arguments are "
40352 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40353 "arguments.  A bitmask in the header indicates which optional arguments are "
40354 "meaningful.  The bitmask is also checked to see if it contains bits set "
40355 "which the daemon does not know about (eg. if more optional arguments were "
40356 "added in a later version of the library), and this causes the call to be "
40357 "rejected."
40358 msgstr ""
40359
40360 #. type: textblock
40361 #: ../src/guestfs.pod:2504
40362 msgid "The reply message for ordinary functions is:"
40363 msgstr ""
40364
40365 #. type: verbatim
40366 #: ../src/guestfs.pod:2506
40367 #, no-wrap
40368 msgid ""
40369 " total length (header + ret,\n"
40370 "      but not including the length word itself)\n"
40371 " struct guestfs_message_header (encoded as XDR)\n"
40372 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40373 "\n"
40374 msgstr ""
40375
40376 #. type: textblock
40377 #: ../src/guestfs.pod:2511
40378 msgid ""
40379 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40380 "functions that return no formal return values."
40381 msgstr ""
40382
40383 #. type: textblock
40384 #: ../src/guestfs.pod:2514
40385 msgid ""
40386 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
40387 msgstr ""
40388
40389 #. type: textblock
40390 #: ../src/guestfs.pod:2517
40391 msgid ""
40392 "In the case of an error, a flag is set in the header, and the reply message "
40393 "is slightly changed:"
40394 msgstr ""
40395
40396 #. type: verbatim
40397 #: ../src/guestfs.pod:2520
40398 #, no-wrap
40399 msgid ""
40400 " total length (header + error,\n"
40401 "      but not including the length word itself)\n"
40402 " struct guestfs_message_header (encoded as XDR)\n"
40403 " struct guestfs_message_error (encoded as XDR)\n"
40404 "\n"
40405 msgstr ""
40406
40407 #. type: textblock
40408 #: ../src/guestfs.pod:2525
40409 msgid ""
40410 "The C<guestfs_message_error> structure contains the error message as a "
40411 "string."
40412 msgstr ""
40413
40414 #. type: =head3
40415 #: ../src/guestfs.pod:2528
40416 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
40417 msgstr ""
40418
40419 #. type: textblock
40420 #: ../src/guestfs.pod:2530
40421 msgid ""
40422 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
40423 "The normal request message is sent (see above).  However this is followed by "
40424 "a sequence of file chunks."
40425 msgstr ""
40426
40427 #. type: verbatim
40428 #: ../src/guestfs.pod:2534
40429 #, no-wrap
40430 msgid ""
40431 " total length (header + arguments,\n"
40432 "      but not including the length word itself,\n"
40433 "      and not including the chunks)\n"
40434 " struct guestfs_message_header (encoded as XDR)\n"
40435 " struct guestfs_<foo>_args (encoded as XDR)\n"
40436 " sequence of chunks for FileIn param #0\n"
40437 " sequence of chunks for FileIn param #1 etc.\n"
40438 "\n"
40439 msgstr ""
40440
40441 #. type: textblock
40442 #: ../src/guestfs.pod:2542
40443 msgid "The \"sequence of chunks\" is:"
40444 msgstr ""
40445
40446 #. type: verbatim
40447 #: ../src/guestfs.pod:2544
40448 #, no-wrap
40449 msgid ""
40450 " length of chunk (not including length word itself)\n"
40451 " struct guestfs_chunk (encoded as XDR)\n"
40452 " length of chunk\n"
40453 " struct guestfs_chunk (encoded as XDR)\n"
40454 "   ...\n"
40455 " length of chunk\n"
40456 " struct guestfs_chunk (with data.data_len == 0)\n"
40457 "\n"
40458 msgstr ""
40459
40460 #. type: textblock
40461 #: ../src/guestfs.pod:2552
40462 msgid ""
40463 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
40464 "is set in the final chunk to indicate either successful completion or early "
40465 "cancellation."
40466 msgstr ""
40467
40468 #. type: textblock
40469 #: ../src/guestfs.pod:2556
40470 msgid ""
40471 "At time of writing there are no functions that have more than one FileIn "
40472 "parameter.  However this is (theoretically) supported, by sending the "
40473 "sequence of chunks for each FileIn parameter one after another (from left to "
40474 "right)."
40475 msgstr ""
40476
40477 #. type: textblock
40478 #: ../src/guestfs.pod:2561
40479 msgid ""
40480 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
40481 "transfer.  The library does this by sending a chunk with a special flag set "
40482 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
40483 "RPC, does I<not> send any reply, and goes back to reading the next request."
40484 msgstr ""
40485
40486 #. type: textblock
40487 #: ../src/guestfs.pod:2567
40488 msgid ""
40489 "The daemon may also cancel.  It does this by writing a special word "
40490 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
40491 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
40492 "cancel chunk).  The special word is chosen so that even if cancellation "
40493 "happens right at the end of the transfer (after the library has finished "
40494 "writing and has started listening for the reply), the \"spurious\" cancel "
40495 "flag will not be confused with the reply message."
40496 msgstr ""
40497
40498 #. type: textblock
40499 #: ../src/guestfs.pod:2576
40500 msgid ""
40501 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
40502 "limit), and also files where the size is not known in advance (eg. from "
40503 "pipes or sockets).  However the chunks are rather small "
40504 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
40505 "to keep much in memory."
40506 msgstr ""
40507
40508 #. type: =head3
40509 #: ../src/guestfs.pod:2582
40510 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
40511 msgstr ""
40512
40513 #. type: textblock
40514 #: ../src/guestfs.pod:2584
40515 msgid ""
40516 "The protocol for FileOut parameters is exactly the same as for FileIn "
40517 "parameters, but with the roles of daemon and library reversed."
40518 msgstr ""
40519
40520 #. type: verbatim
40521 #: ../src/guestfs.pod:2587
40522 #, no-wrap
40523 msgid ""
40524 " total length (header + ret,\n"
40525 "      but not including the length word itself,\n"
40526 "      and not including the chunks)\n"
40527 " struct guestfs_message_header (encoded as XDR)\n"
40528 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40529 " sequence of chunks for FileOut param #0\n"
40530 " sequence of chunks for FileOut param #1 etc.\n"
40531 "\n"
40532 msgstr ""
40533
40534 #. type: =head3
40535 #: ../src/guestfs.pod:2595
40536 msgid "INITIAL MESSAGE"
40537 msgstr ""
40538
40539 #. type: textblock
40540 #: ../src/guestfs.pod:2597
40541 msgid ""
40542 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
40543 "which indicates that the guest and daemon is alive.  This is what L</"
40544 "guestfs_launch> waits for."
40545 msgstr ""
40546
40547 #. type: =head3
40548 #: ../src/guestfs.pod:2601
40549 msgid "PROGRESS NOTIFICATION MESSAGES"
40550 msgstr ""
40551
40552 #. type: textblock
40553 #: ../src/guestfs.pod:2603
40554 msgid ""
40555 "The daemon may send progress notification messages at any time.  These are "
40556 "distinguished by the normal length word being replaced by "
40557 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
40558 msgstr ""
40559
40560 #. type: textblock
40561 #: ../src/guestfs.pod:2607
40562 msgid ""
40563 "The library turns them into progress callbacks (see L</"
40564 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
40565 "if not."
40566 msgstr ""
40567
40568 #. type: textblock
40569 #: ../src/guestfs.pod:2611
40570 msgid ""
40571 "The daemon self-limits the frequency of progress messages it sends (see "
40572 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
40573 "messages."
40574 msgstr ""
40575
40576 #. type: =head1
40577 #: ../src/guestfs.pod:2615
40578 msgid "LIBGUESTFS VERSION NUMBERS"
40579 msgstr ""
40580
40581 #. type: textblock
40582 #: ../src/guestfs.pod:2617
40583 msgid ""
40584 "Since April 2010, libguestfs has started to make separate development and "
40585 "stable releases, along with corresponding branches in our git repository.  "
40586 "These separate releases can be identified by version number:"
40587 msgstr ""
40588
40589 #. type: verbatim
40590 #: ../src/guestfs.pod:2622
40591 #, no-wrap
40592 msgid ""
40593 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
40594 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
40595 "       |\n"
40596 "       v\n"
40597 " 1  .  3  .  5\n"
40598 " ^           ^\n"
40599 " |           |\n"
40600 " |           `-------- sub-version\n"
40601 " |\n"
40602 " `------ always '1' because we don't change the ABI\n"
40603 "\n"
40604 msgstr ""
40605
40606 #. type: textblock
40607 #: ../src/guestfs.pod:2633
40608 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
40609 msgstr ""
40610
40611 #. type: textblock
40612 #: ../src/guestfs.pod:2635
40613 msgid ""
40614 "As time passes we cherry pick fixes from the development branch and backport "
40615 "those into the stable branch, the effect being that the stable branch should "
40616 "get more stable and less buggy over time.  So the stable releases are ideal "
40617 "for people who don't need new features but would just like the software to "
40618 "work."
40619 msgstr ""
40620
40621 #. type: textblock
40622 #: ../src/guestfs.pod:2641
40623 msgid "Our criteria for backporting changes are:"
40624 msgstr ""
40625
40626 #. type: textblock
40627 #: ../src/guestfs.pod:2647
40628 msgid ""
40629 "Documentation changes which don't affect any code are backported unless the "
40630 "documentation refers to a future feature which is not in stable."
40631 msgstr ""
40632
40633 #. type: textblock
40634 #: ../src/guestfs.pod:2653
40635 msgid ""
40636 "Bug fixes which are not controversial, fix obvious problems, and have been "
40637 "well tested are backported."
40638 msgstr ""
40639
40640 #. type: textblock
40641 #: ../src/guestfs.pod:2658
40642 msgid ""
40643 "Simple rearrangements of code which shouldn't affect how it works get "
40644 "backported.  This is so that the code in the two branches doesn't get too "
40645 "far out of step, allowing us to backport future fixes more easily."
40646 msgstr ""
40647
40648 #. type: textblock
40649 #: ../src/guestfs.pod:2664
40650 msgid ""
40651 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40652 "exceptional case: the new feature is required in order to implement an "
40653 "important bug fix."
40654 msgstr ""
40655
40656 #. type: textblock
40657 #: ../src/guestfs.pod:2670
40658 msgid ""
40659 "A new stable branch starts when we think the new features in development are "
40660 "substantial and compelling enough over the current stable branch to warrant "
40661 "it.  When that happens we create new stable and development versions 1.N.0 "
40662 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
40663 "stable at this point, but by backporting fixes from development, that branch "
40664 "will stabilize over time."
40665 msgstr ""
40666
40667 #. type: =head1
40668 #: ../src/guestfs.pod:2678
40669 msgid "EXTENDING LIBGUESTFS"
40670 msgstr ""
40671
40672 #. type: =head2
40673 #: ../src/guestfs.pod:2680
40674 msgid "ADDING A NEW API ACTION"
40675 msgstr ""
40676
40677 #. type: textblock
40678 #: ../src/guestfs.pod:2682
40679 msgid ""
40680 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
40681 "documentation) are generated, and this makes it easy to extend the "
40682 "libguestfs API."
40683 msgstr ""
40684
40685 #. type: textblock
40686 #: ../src/guestfs.pod:2686
40687 msgid "To add a new API action there are two changes:"
40688 msgstr ""
40689
40690 #. type: textblock
40691 #: ../src/guestfs.pod:2692
40692 msgid ""
40693 "You need to add a description of the call (name, parameters, return type, "
40694 "tests, documentation) to C<generator/generator_actions.ml>."
40695 msgstr ""
40696
40697 #. type: textblock
40698 #: ../src/guestfs.pod:2695
40699 msgid ""
40700 "There are two sorts of API action, depending on whether the call goes "
40701 "through to the daemon in the appliance, or is serviced entirely by the "
40702 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
40703 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
40704 "an example of the latter, since a trace flag is maintained in the handle and "
40705 "all tracing is done on the library side."
40706 msgstr ""
40707
40708 #. type: textblock
40709 #: ../src/guestfs.pod:2703
40710 msgid ""
40711 "Most new actions are of the first type, and get added to the "
40712 "C<daemon_functions> list.  Each function has a unique procedure number used "
40713 "in the RPC protocol which is assigned to that action when we publish "
40714 "libguestfs and cannot be reused.  Take the latest procedure number and "
40715 "increment it."
40716 msgstr ""
40717
40718 #. type: textblock
40719 #: ../src/guestfs.pod:2709
40720 msgid ""
40721 "For library-only actions of the second type, add to the "
40722 "C<non_daemon_functions> list.  Since these functions are serviced by the "
40723 "library and do not travel over the RPC mechanism to the daemon, these "
40724 "functions do not need a procedure number, and so the procedure number is set "
40725 "to C<-1>."
40726 msgstr ""
40727
40728 #. type: textblock
40729 #: ../src/guestfs.pod:2717
40730 msgid "Implement the action (in C):"
40731 msgstr ""
40732
40733 #. type: textblock
40734 #: ../src/guestfs.pod:2719
40735 msgid ""
40736 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40737 "C<daemon/> directory."
40738 msgstr ""
40739
40740 #. type: textblock
40741 #: ../src/guestfs.pod:2722
40742 msgid ""
40743 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40744 "(note: double underscore) in the C<src/> directory."
40745 msgstr ""
40746
40747 #. type: textblock
40748 #: ../src/guestfs.pod:2725
40749 msgid "In either case, use another function as an example of what to do."
40750 msgstr ""
40751
40752 #. type: textblock
40753 #: ../src/guestfs.pod:2729
40754 msgid "After making these changes, use C<make> to compile."
40755 msgstr ""
40756
40757 #. type: textblock
40758 #: ../src/guestfs.pod:2731
40759 msgid ""
40760 "Note that you don't need to implement the RPC, language bindings, manual "
40761 "pages or anything else.  It's all automatically generated from the OCaml "
40762 "description."
40763 msgstr ""
40764
40765 #. type: =head2
40766 #: ../src/guestfs.pod:2735
40767 msgid "ADDING TESTS FOR AN API ACTION"
40768 msgstr ""
40769
40770 #. type: textblock
40771 #: ../src/guestfs.pod:2737
40772 msgid ""
40773 "You can supply zero or as many tests as you want per API call.  The tests "
40774 "can either be added as part of the API description (C<generator/"
40775 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
40776 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
40777 "slower, so if possible use the first method."
40778 msgstr ""
40779
40780 #. type: textblock
40781 #: ../src/guestfs.pod:2743
40782 msgid ""
40783 "The following describes the test environment used when you add an API test "
40784 "in C<generator_actions.ml>."
40785 msgstr ""
40786
40787 #. type: textblock
40788 #: ../src/guestfs.pod:2746
40789 msgid "The test environment has 4 block devices:"
40790 msgstr ""
40791
40792 #. type: =item
40793 #: ../src/guestfs.pod:2750
40794 msgid "C</dev/sda> 500MB"
40795 msgstr "C</dev/sda> 500 МБ"
40796
40797 #. type: textblock
40798 #: ../src/guestfs.pod:2752
40799 msgid "General block device for testing."
40800 msgstr ""
40801
40802 #. type: =item
40803 #: ../src/guestfs.pod:2754
40804 msgid "C</dev/sdb> 50MB"
40805 msgstr "C</dev/sdb> 50 МБ"
40806
40807 #. type: textblock
40808 #: ../src/guestfs.pod:2756
40809 msgid ""
40810 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40811 "operations."
40812 msgstr ""
40813
40814 #. type: =item
40815 #: ../src/guestfs.pod:2759
40816 msgid "C</dev/sdc> 10MB"
40817 msgstr "C</dev/sdc> 10 МБ"
40818
40819 #. type: textblock
40820 #: ../src/guestfs.pod:2761
40821 msgid "Used in a few tests where two block devices are needed."
40822 msgstr ""
40823
40824 #. type: =item
40825 #: ../src/guestfs.pod:2763
40826 msgid "C</dev/sdd>"
40827 msgstr "C</dev/sdd>"
40828
40829 #. type: textblock
40830 #: ../src/guestfs.pod:2765
40831 msgid "ISO with fixed content (see C<images/test.iso>)."
40832 msgstr ""
40833
40834 #. type: textblock
40835 #: ../src/guestfs.pod:2769
40836 msgid ""
40837 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40838 "appliance and block devices are reused between tests.  So don't try testing "
40839 "L</guestfs_kill_subprocess> :-x"
40840 msgstr ""
40841
40842 #. type: textblock
40843 #: ../src/guestfs.pod:2773
40844 msgid ""
40845 "Each test starts with an initial scenario, selected using one of the "
40846 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
40847 "initialize the disks mentioned above in a particular way as documented in "
40848 "C<generator_types.ml>.  You should not assume anything about the previous "
40849 "contents of other disks that are not initialized."
40850 msgstr ""
40851
40852 #. type: textblock
40853 #: ../src/guestfs.pod:2779
40854 msgid ""
40855 "You can add a prerequisite clause to any individual test.  This is a run-"
40856 "time check, which, if it fails, causes the test to be skipped.  Useful if "
40857 "testing a command which might not work on all variations of libguestfs "
40858 "builds.  A test that has prerequisite of C<Always> means to run "
40859 "unconditionally."
40860 msgstr ""
40861
40862 #. type: textblock
40863 #: ../src/guestfs.pod:2785
40864 msgid ""
40865 "In addition, packagers can skip individual tests by setting environment "
40866 "variables before running C<make check>."
40867 msgstr ""
40868
40869 #. type: verbatim
40870 #: ../src/guestfs.pod:2788
40871 #, no-wrap
40872 msgid ""
40873 " SKIP_TEST_<CMD>_<NUM>=1\n"
40874 "\n"
40875 msgstr ""
40876
40877 #. type: textblock
40878 #: ../src/guestfs.pod:2790
40879 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40880 msgstr ""
40881
40882 #. type: textblock
40883 #: ../src/guestfs.pod:2792
40884 msgid "or:"
40885 msgstr "або:"
40886
40887 #. type: verbatim
40888 #: ../src/guestfs.pod:2794
40889 #, no-wrap
40890 msgid ""
40891 " SKIP_TEST_<CMD>=1\n"
40892 "\n"
40893 msgstr ""
40894
40895 #. type: textblock
40896 #: ../src/guestfs.pod:2796
40897 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40898 msgstr ""
40899
40900 #. type: textblock
40901 #: ../src/guestfs.pod:2798
40902 msgid "Packagers can run only certain tests by setting for example:"
40903 msgstr ""
40904
40905 #. type: verbatim
40906 #: ../src/guestfs.pod:2800
40907 #, no-wrap
40908 msgid ""
40909 " TEST_ONLY=\"vfs_type zerofree\"\n"
40910 "\n"
40911 msgstr ""
40912
40913 #. type: textblock
40914 #: ../src/guestfs.pod:2802
40915 msgid ""
40916 "See C<capitests/tests.c> for more details of how these environment variables "
40917 "work."
40918 msgstr ""
40919
40920 #. type: =head2
40921 #: ../src/guestfs.pod:2805
40922 msgid "DEBUGGING NEW API ACTIONS"
40923 msgstr ""
40924
40925 #. type: textblock
40926 #: ../src/guestfs.pod:2807
40927 msgid "Test new actions work before submitting them."
40928 msgstr ""
40929
40930 #. type: textblock
40931 #: ../src/guestfs.pod:2809
40932 msgid "You can use guestfish to try out new commands."
40933 msgstr ""
40934
40935 #. type: textblock
40936 #: ../src/guestfs.pod:2811
40937 msgid ""
40938 "Debugging the daemon is a problem because it runs inside a minimal "
40939 "environment.  However you can fprintf messages in the daemon to stderr, and "
40940 "they will show up if you use C<guestfish -v>."
40941 msgstr ""
40942
40943 #. type: =head2
40944 #: ../src/guestfs.pod:2815
40945 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40946 msgstr ""
40947
40948 #. type: textblock
40949 #: ../src/guestfs.pod:2817
40950 msgid ""
40951 "Our C source code generally adheres to some basic code-formatting "
40952 "conventions.  The existing code base is not totally consistent on this "
40953 "front, but we do prefer that contributed code be formatted similarly.  In "
40954 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40955 "indentation level, and other than that, follow the K&R style."
40956 msgstr ""
40957
40958 #. type: textblock
40959 #: ../src/guestfs.pod:2823
40960 msgid ""
40961 "If you use Emacs, add the following to one of one of your start-up files (e."
40962 "g., ~/.emacs), to help ensure that you get indentation right:"
40963 msgstr ""
40964
40965 #. type: verbatim
40966 #: ../src/guestfs.pod:2826
40967 #, no-wrap
40968 msgid ""
40969 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40970 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40971 " (add-hook 'find-file-hook\n"
40972 "     '(lambda () (if (and buffer-file-name\n"
40973 "                          (string-match \"/libguestfs\\\\>\"\n"
40974 "                              (buffer-file-name))\n"
40975 "                          (not (string-equal mode-name \"Change Log\"))\n"
40976 "                          (not (string-equal mode-name \"Makefile\")))\n"
40977 "                     (setq indent-tabs-mode nil))))\n"
40978 " \n"
40979 msgstr ""
40980
40981 #. type: verbatim
40982 #: ../src/guestfs.pod:2836
40983 #, no-wrap
40984 msgid ""
40985 " ;;; When editing C sources in libguestfs, use this style.\n"
40986 " (defun libguestfs-c-mode ()\n"
40987 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
40988 "   (interactive)\n"
40989 "   (c-set-style \"K&R\")\n"
40990 "   (setq c-indent-level 2)\n"
40991 "   (setq c-basic-offset 2))\n"
40992 " (add-hook 'c-mode-hook\n"
40993 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40994 "                               (buffer-file-name))\n"
40995 "                           (libguestfs-c-mode))))\n"
40996 "\n"
40997 msgstr ""
40998
40999 #. type: textblock
41000 #: ../src/guestfs.pod:2848
41001 msgid "Enable warnings when compiling (and fix any problems this finds):"
41002 msgstr ""
41003
41004 #. type: verbatim
41005 #: ../src/guestfs.pod:2851
41006 #, no-wrap
41007 msgid ""
41008 " ./configure --enable-gcc-warnings\n"
41009 "\n"
41010 msgstr ""
41011 " ./configure --enable-gcc-warnings\n"
41012 "\n"
41013
41014 #. type: textblock
41015 #: ../src/guestfs.pod:2853
41016 msgid "Useful targets are:"
41017 msgstr ""
41018
41019 #. type: verbatim
41020 #: ../src/guestfs.pod:2855
41021 #, no-wrap
41022 msgid ""
41023 " make syntax-check  # checks the syntax of the C code\n"
41024 " make check         # runs the test suite\n"
41025 "\n"
41026 msgstr ""
41027
41028 #. type: =head2
41029 #: ../src/guestfs.pod:2858
41030 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
41031 msgstr ""
41032
41033 #. type: textblock
41034 #: ../src/guestfs.pod:2860
41035 msgid ""
41036 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
41037 "which are used to do shell quoting."
41038 msgstr ""
41039
41040 #. type: =item
41041 #: ../src/guestfs.pod:2865
41042 msgid "%Q"
41043 msgstr "%Q"
41044
41045 #. type: textblock
41046 #: ../src/guestfs.pod:2867
41047 msgid ""
41048 "Simple shell quoted string.  Any spaces or other shell characters are "
41049 "escaped for you."
41050 msgstr ""
41051
41052 #. type: =item
41053 #: ../src/guestfs.pod:2870
41054 msgid "%R"
41055 msgstr "%R"
41056
41057 #. type: textblock
41058 #: ../src/guestfs.pod:2872
41059 msgid ""
41060 "Same as C<%Q> except the string is treated as a path which is prefixed by "
41061 "the sysroot."
41062 msgstr ""
41063
41064 #. type: verbatim
41065 #: ../src/guestfs.pod:2879
41066 #, no-wrap
41067 msgid ""
41068 " asprintf (&cmd, \"cat %R\", path);\n"
41069 "\n"
41070 msgstr ""
41071 " asprintf (&cmd, \"cat %R\", path);\n"
41072 "\n"
41073
41074 #. type: textblock
41075 #: ../src/guestfs.pod:2881
41076 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
41077 msgstr ""
41078
41079 #. type: textblock
41080 #: ../src/guestfs.pod:2883
41081 msgid ""
41082 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
41083 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
41084 "they are not passed via the shell (instead, straight to exec).  You probably "
41085 "want to use the C<sysroot_path()> function however."
41086 msgstr ""
41087
41088 #. type: =head2
41089 #: ../src/guestfs.pod:2889
41090 msgid "SUBMITTING YOUR NEW API ACTIONS"
41091 msgstr ""
41092
41093 #. type: textblock
41094 #: ../src/guestfs.pod:2891
41095 msgid ""
41096 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
41097 "libguestfs> and CC to L<rjones@redhat.com>."
41098 msgstr ""
41099
41100 #. type: =head2
41101 #: ../src/guestfs.pod:2895
41102 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
41103 msgstr ""
41104
41105 #. type: textblock
41106 #: ../src/guestfs.pod:2897
41107 msgid "We support i18n (gettext anyhow) in the library."
41108 msgstr ""
41109
41110 #. type: textblock
41111 #: ../src/guestfs.pod:2899
41112 msgid ""
41113 "However many messages come from the daemon, and we don't translate those at "
41114 "the moment.  One reason is that the appliance generally has all locale files "
41115 "removed from it, because they take up a lot of space.  So we'd have to readd "
41116 "some of those, as well as copying our PO files into the appliance."
41117 msgstr ""
41118
41119 #. type: textblock
41120 #: ../src/guestfs.pod:2905
41121 msgid ""
41122 "Debugging messages are never translated, since they are intended for the "
41123 "programmers."
41124 msgstr ""
41125
41126 #. type: =head2
41127 #: ../src/guestfs.pod:2908
41128 msgid "SOURCE CODE SUBDIRECTORIES"
41129 msgstr ""
41130
41131 #. type: =item
41132 #: ../src/guestfs.pod:2912
41133 msgid "C<align>"
41134 msgstr ""
41135
41136 #. type: textblock
41137 #: ../src/guestfs.pod:2914
41138 msgid "L<virt-alignment-scan(1)> command and documentation."
41139 msgstr ""
41140
41141 #. type: textblock
41142 #: ../src/guestfs.pod:2918
41143 msgid "The libguestfs appliance, build scripts and so on."
41144 msgstr ""
41145
41146 #. type: =item
41147 #: ../src/guestfs.pod:2920
41148 msgid "C<capitests>"
41149 msgstr "C<capitests>"
41150
41151 #. type: textblock
41152 #: ../src/guestfs.pod:2922
41153 msgid "Automated tests of the C API."
41154 msgstr ""
41155
41156 #. type: =item
41157 #: ../src/guestfs.pod:2924
41158 msgid "C<cat>"
41159 msgstr "C<cat>"
41160
41161 #. type: textblock
41162 #: ../src/guestfs.pod:2926
41163 msgid ""
41164 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
41165 "documentation."
41166 msgstr ""
41167
41168 #. type: =item
41169 #: ../src/guestfs.pod:2929
41170 msgid "C<caution>"
41171 msgstr "C<caution>"
41172
41173 #. type: textblock
41174 #: ../src/guestfs.pod:2931
41175 msgid ""
41176 "Safety and liveness tests of components that libguestfs depends upon (not of "
41177 "libguestfs itself).  Mainly this is for qemu and the kernel."
41178 msgstr ""
41179
41180 #. type: =item
41181 #: ../src/guestfs.pod:2934
41182 msgid "C<clone>"
41183 msgstr ""
41184
41185 #. type: textblock
41186 #: ../src/guestfs.pod:2936
41187 msgid ""
41188 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
41189 "command and documentation."
41190 msgstr ""
41191
41192 #. type: =item
41193 #: ../src/guestfs.pod:2939
41194 msgid "C<contrib>"
41195 msgstr "C<contrib>"
41196
41197 #. type: textblock
41198 #: ../src/guestfs.pod:2941
41199 msgid "Outside contributions, experimental parts."
41200 msgstr ""
41201
41202 #. type: =item
41203 #: ../src/guestfs.pod:2943
41204 msgid "C<daemon>"
41205 msgstr "C<daemon>"
41206
41207 #. type: textblock
41208 #: ../src/guestfs.pod:2945
41209 msgid ""
41210 "The daemon that runs inside the libguestfs appliance and carries out actions."
41211 msgstr ""
41212
41213 #. type: =item
41214 #: ../src/guestfs.pod:2948
41215 msgid "C<df>"
41216 msgstr "C<df>"
41217
41218 #. type: textblock
41219 #: ../src/guestfs.pod:2950
41220 msgid "L<virt-df(1)> command and documentation."
41221 msgstr ""
41222
41223 #. type: =item
41224 #: ../src/guestfs.pod:2952
41225 msgid "C<edit>"
41226 msgstr "C<edit>"
41227
41228 #. type: textblock
41229 #: ../src/guestfs.pod:2954
41230 msgid "L<virt-edit(1)> command and documentation."
41231 msgstr ""
41232
41233 #. type: =item
41234 #: ../src/guestfs.pod:2956
41235 msgid "C<examples>"
41236 msgstr "C<examples>"
41237
41238 #. type: textblock
41239 #: ../src/guestfs.pod:2958
41240 msgid "C API example code."
41241 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
41242
41243 #. type: =item
41244 #: ../src/guestfs.pod:2960
41245 msgid "C<fish>"
41246 msgstr "C<fish>"
41247
41248 #. type: textblock
41249 #: ../src/guestfs.pod:2962
41250 msgid ""
41251 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41252 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41253 "L<virt-tar-out(1)>."
41254 msgstr ""
41255
41256 #. type: =item
41257 #: ../src/guestfs.pod:2966
41258 msgid "C<fuse>"
41259 msgstr "C<fuse>"
41260
41261 #. type: textblock
41262 #: ../src/guestfs.pod:2968
41263 msgid ""
41264 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41265 msgstr ""
41266
41267 #. type: =item
41268 #: ../src/guestfs.pod:2970
41269 msgid "C<generator>"
41270 msgstr "C<generator>"
41271
41272 #. type: textblock
41273 #: ../src/guestfs.pod:2972
41274 msgid ""
41275 "The crucially important generator, used to automatically generate large "
41276 "amounts of boilerplate C code for things like RPC and bindings."
41277 msgstr ""
41278
41279 #. type: =item
41280 #: ../src/guestfs.pod:2975
41281 msgid "C<images>"
41282 msgstr "C<images>"
41283
41284 #. type: textblock
41285 #: ../src/guestfs.pod:2977
41286 msgid "Files used by the test suite."
41287 msgstr ""
41288
41289 #. type: textblock
41290 #: ../src/guestfs.pod:2979
41291 msgid "Some \"phony\" guest images which we test against."
41292 msgstr ""
41293
41294 #. type: =item
41295 #: ../src/guestfs.pod:2981
41296 msgid "C<inspector>"
41297 msgstr "C<inspector>"
41298
41299 #. type: textblock
41300 #: ../src/guestfs.pod:2983
41301 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41302 msgstr ""
41303
41304 #. type: =item
41305 #: ../src/guestfs.pod:2985
41306 msgid "C<logo>"
41307 msgstr "C<logo>"
41308
41309 #. type: textblock
41310 #: ../src/guestfs.pod:2987
41311 msgid "Logo used on the website.  The fish is called Arthur by the way."
41312 msgstr ""
41313
41314 #. type: =item
41315 #: ../src/guestfs.pod:2989
41316 msgid "C<m4>"
41317 msgstr "C<m4>"
41318
41319 #. type: textblock
41320 #: ../src/guestfs.pod:2991
41321 msgid "M4 macros used by autoconf."
41322 msgstr ""
41323
41324 #. type: =item
41325 #: ../src/guestfs.pod:2993
41326 msgid "C<po>"
41327 msgstr "C<po>"
41328
41329 #. type: textblock
41330 #: ../src/guestfs.pod:2995
41331 msgid "Translations of simple gettext strings."
41332 msgstr "Переклади простих рядків gettext."
41333
41334 #. type: =item
41335 #: ../src/guestfs.pod:2997
41336 msgid "C<po-docs>"
41337 msgstr "C<po-docs>"
41338
41339 #. type: textblock
41340 #: ../src/guestfs.pod:2999
41341 msgid ""
41342 "The build infrastructure and PO files for translations of manpages and POD "
41343 "files.  Eventually this will be combined with the C<po> directory, but that "
41344 "is rather complicated."
41345 msgstr ""
41346
41347 #. type: =item
41348 #: ../src/guestfs.pod:3003
41349 msgid "C<regressions>"
41350 msgstr "C<regressions>"
41351
41352 #. type: textblock
41353 #: ../src/guestfs.pod:3005
41354 msgid "Regression tests."
41355 msgstr "Тести на регресії."
41356
41357 #. type: =item
41358 #: ../src/guestfs.pod:3007
41359 msgid "C<rescue>"
41360 msgstr "C<rescue>"
41361
41362 #. type: textblock
41363 #: ../src/guestfs.pod:3009
41364 msgid "L<virt-rescue(1)> command and documentation."
41365 msgstr ""
41366
41367 #. type: =item
41368 #: ../src/guestfs.pod:3011
41369 msgid "C<resize>"
41370 msgstr ""
41371
41372 #. type: textblock
41373 #: ../src/guestfs.pod:3013
41374 msgid "L<virt-resize(1)> command and documentation."
41375 msgstr ""
41376
41377 #. type: =item
41378 #: ../src/guestfs.pod:3015
41379 msgid "C<sparsify>"
41380 msgstr ""
41381
41382 #. type: textblock
41383 #: ../src/guestfs.pod:3017
41384 msgid "L<virt-sparsify(1)> command and documentation."
41385 msgstr ""
41386
41387 #. type: =item
41388 #: ../src/guestfs.pod:3019
41389 msgid "C<src>"
41390 msgstr "C<src>"
41391
41392 #. type: textblock
41393 #: ../src/guestfs.pod:3021
41394 msgid "Source code to the C library."
41395 msgstr ""
41396
41397 #. type: =item
41398 #: ../src/guestfs.pod:3023
41399 msgid "C<tools>"
41400 msgstr "C<tools>"
41401
41402 #. type: textblock
41403 #: ../src/guestfs.pod:3025
41404 msgid ""
41405 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
41406 msgstr ""
41407
41408 #. type: =item
41409 #: ../src/guestfs.pod:3027
41410 msgid "C<test-tool>"
41411 msgstr "C<test-tool>"
41412
41413 #. type: textblock
41414 #: ../src/guestfs.pod:3029
41415 msgid ""
41416 "Test tool for end users to test if their qemu/kernel combination will work "
41417 "with libguestfs."
41418 msgstr ""
41419
41420 #. type: =item
41421 #: ../src/guestfs.pod:3032
41422 msgid "C<csharp>"
41423 msgstr "C<csharp>"
41424
41425 #. type: =item
41426 #: ../src/guestfs.pod:3034
41427 msgid "C<erlang>"
41428 msgstr ""
41429
41430 #. type: =item
41431 #: ../src/guestfs.pod:3036
41432 msgid "C<haskell>"
41433 msgstr "C<haskell>"
41434
41435 #. type: =item
41436 #: ../src/guestfs.pod:3038
41437 msgid "C<java>"
41438 msgstr "C<java>"
41439
41440 #. type: =item
41441 #: ../src/guestfs.pod:3040
41442 msgid "C<ocaml>"
41443 msgstr "C<ocaml>"
41444
41445 #. type: =item
41446 #: ../src/guestfs.pod:3042
41447 msgid "C<php>"
41448 msgstr "C<php>"
41449
41450 #. type: =item
41451 #: ../src/guestfs.pod:3044
41452 msgid "C<perl>"
41453 msgstr "C<perl>"
41454
41455 #. type: =item
41456 #: ../src/guestfs.pod:3046
41457 msgid "C<python>"
41458 msgstr "C<python>"
41459
41460 #. type: =item
41461 #: ../src/guestfs.pod:3048
41462 msgid "C<ruby>"
41463 msgstr "C<ruby>"
41464
41465 #. type: textblock
41466 #: ../src/guestfs.pod:3050
41467 msgid "Language bindings."
41468 msgstr "Прив’язки до мов програмування."
41469
41470 #. type: =head2
41471 #: ../src/guestfs.pod:3054
41472 msgid "MAKING A STABLE RELEASE"
41473 msgstr ""
41474
41475 #. type: textblock
41476 #: ../src/guestfs.pod:3056
41477 msgid ""
41478 "When we make a stable release, there are several steps documented here.  See "
41479 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
41480 "branch policy."
41481 msgstr ""
41482
41483 #. type: textblock
41484 #: ../src/guestfs.pod:3064
41485 msgid ""
41486 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
41487 msgstr ""
41488
41489 #. type: textblock
41490 #: ../src/guestfs.pod:3069
41491 msgid "Finalize RELEASE-NOTES."
41492 msgstr ""
41493
41494 #. type: textblock
41495 #: ../src/guestfs.pod:3073
41496 msgid "Update ROADMAP."
41497 msgstr ""
41498
41499 #. type: textblock
41500 #: ../src/guestfs.pod:3077
41501 msgid "Run C<src/api-support/update-from-tarballs.sh>."
41502 msgstr ""
41503
41504 #. type: textblock
41505 #: ../src/guestfs.pod:3081
41506 msgid "Push and pull from Transifex."
41507 msgstr ""
41508
41509 #. type: textblock
41510 #: ../src/guestfs.pod:3083
41511 msgid "Run:"
41512 msgstr ""
41513
41514 #. type: verbatim
41515 #: ../src/guestfs.pod:3085
41516 #, no-wrap
41517 msgid ""
41518 " tx push -s\n"
41519 "\n"
41520 msgstr ""
41521
41522 #. type: textblock
41523 #: ../src/guestfs.pod:3087
41524 msgid "to push the latest POT files to Transifex.  Then run:"
41525 msgstr ""
41526
41527 #. type: verbatim
41528 #: ../src/guestfs.pod:3089
41529 #, no-wrap
41530 msgid ""
41531 " ./tx-pull.sh\n"
41532 "\n"
41533 msgstr ""
41534
41535 #. type: textblock
41536 #: ../src/guestfs.pod:3091
41537 msgid "which is a wrapper to pull the latest translated C<*.po> files."
41538 msgstr ""
41539
41540 #. type: textblock
41541 #: ../src/guestfs.pod:3095
41542 msgid ""
41543 "Create new stable and development directories under L<http://libguestfs.org/"
41544 "download>."
41545 msgstr ""
41546
41547 #. type: textblock
41548 #: ../src/guestfs.pod:3100
41549 msgid "Create the branch in git:"
41550 msgstr ""
41551
41552 #. type: verbatim
41553 #: ../src/guestfs.pod:3102
41554 #, no-wrap
41555 msgid ""
41556 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
41557 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
41558 " git branch stable-1.XX\n"
41559 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
41560 "\n"
41561 msgstr ""
41562
41563 #. type: =head1
41564 #: ../src/guestfs.pod:3109
41565 msgid "LIMITS"
41566 msgstr "ОБМЕЖЕННЯ"
41567
41568 #. type: =head2
41569 #: ../src/guestfs.pod:3111
41570 msgid "PROTOCOL LIMITS"
41571 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
41572
41573 #. type: textblock
41574 #: ../src/guestfs.pod:3113
41575 msgid ""
41576 "Internally libguestfs uses a message-based protocol to pass API calls and "
41577 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
41578 "plenty more detail about this).  The maximum message size used by the "
41579 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
41580 "aware of this limit.  The API calls which may be affected are individually "
41581 "documented, with a link back to this section of the documentation."
41582 msgstr ""
41583
41584 #. type: textblock
41585 #: ../src/guestfs.pod:3121
41586 msgid ""
41587 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
41588 "a simple string.  Because this string is at some point internally encoded as "
41589 "a message, the maximum size that it can return is slightly under 4 MB.  If "
41590 "the requested file is larger than this then you will get an error."
41591 msgstr ""
41592
41593 #. type: textblock
41594 #: ../src/guestfs.pod:3127
41595 msgid ""
41596 "In order to transfer large files into and out of the guest filesystem, you "
41597 "need to use particular calls that support this.  The sections L</UPLOADING> "
41598 "and L</DOWNLOADING> document how to do this."
41599 msgstr ""
41600
41601 #. type: textblock
41602 #: ../src/guestfs.pod:3131
41603 msgid ""
41604 "You might also consider mounting the disk image using our FUSE filesystem "
41605 "support (L<guestmount(1)>)."
41606 msgstr ""
41607
41608 #. type: =head2
41609 #: ../src/guestfs.pod:3134
41610 msgid "MAXIMUM NUMBER OF DISKS"
41611 msgstr ""
41612
41613 #. type: textblock
41614 #: ../src/guestfs.pod:3136
41615 msgid "When using virtio disks (the default) the current limit is B<25> disks."
41616 msgstr ""
41617
41618 #. type: textblock
41619 #: ../src/guestfs.pod:3139
41620 msgid ""
41621 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
41622 "slots.  However febootstrap only understands disks with names C</dev/vda> "
41623 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41624 "purposes."
41625 msgstr ""
41626
41627 #. type: textblock
41628 #: ../src/guestfs.pod:3144
41629 msgid ""
41630 "We are working to substantially raise this limit in future versions but it "
41631 "requires complex changes to qemu."
41632 msgstr ""
41633
41634 #. type: textblock
41635 #: ../src/guestfs.pod:3147
41636 msgid ""
41637 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41638 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
41639 "requires changes to qemu."
41640 msgstr ""
41641
41642 #. type: =head2
41643 #: ../src/guestfs.pod:3151
41644 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41645 msgstr ""
41646
41647 #. type: textblock
41648 #: ../src/guestfs.pod:3153
41649 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41650 msgstr ""
41651
41652 #. type: textblock
41653 #: ../src/guestfs.pod:3155
41654 msgid ""
41655 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
41656 "vda>, and C</dev/vda1> through C</dev/vda15>)."
41657 msgstr ""
41658
41659 #. type: textblock
41660 #: ../src/guestfs.pod:3158
41661 msgid ""
41662 "If you attach a disk with more than 15 partitions, the extra partitions are "
41663 "ignored by libguestfs."
41664 msgstr ""
41665
41666 #. type: =head2
41667 #: ../src/guestfs.pod:3161
41668 msgid "MAXIMUM SIZE OF A DISK"
41669 msgstr ""
41670
41671 #. type: textblock
41672 #: ../src/guestfs.pod:3163
41673 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41674 msgstr ""
41675
41676 #. type: textblock
41677 #: ../src/guestfs.pod:3165
41678 msgid ""
41679 "We have tested block devices up to 1 exabyte (2**60 or "
41680 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41681 "filesystem."
41682 msgstr ""
41683
41684 #. type: textblock
41685 #: ../src/guestfs.pod:3169
41686 msgid ""
41687 "Although libguestfs probably does not impose any limit, the underlying host "
41688 "storage will.  If you store disk images on a host ext4 filesystem, then the "
41689 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41690 "TB).  If you store disk images as host logical volumes then you are limited "
41691 "by the maximum size of an LV."
41692 msgstr ""
41693
41694 #. type: textblock
41695 #: ../src/guestfs.pod:3175
41696 msgid ""
41697 "For the hugest disk image files, we recommend using XFS on the host for "
41698 "storage."
41699 msgstr ""
41700
41701 #. type: =head2
41702 #: ../src/guestfs.pod:3178
41703 msgid "MAXIMUM SIZE OF A PARTITION"
41704 msgstr ""
41705
41706 #. type: textblock
41707 #: ../src/guestfs.pod:3180
41708 msgid ""
41709 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41710 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
41711 "address a partition located beyond 2 TB on the disk."
41712 msgstr ""
41713
41714 #. type: textblock
41715 #: ../src/guestfs.pod:3184
41716 msgid ""
41717 "It is recommended that you use GPT partitions on disks which are larger than "
41718 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
41719 "which are theoretically larger than the largest disk we could support."
41720 msgstr ""
41721
41722 #. type: =head2
41723 #: ../src/guestfs.pod:3189
41724 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41725 msgstr ""
41726
41727 #. type: textblock
41728 #: ../src/guestfs.pod:3191
41729 msgid ""
41730 "This depends on the filesystem type.  libguestfs itself does not impose any "
41731 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
41732 "what these limits are."
41733 msgstr ""
41734
41735 #. type: =head2
41736 #: ../src/guestfs.pod:3195
41737 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41738 msgstr ""
41739
41740 #. type: textblock
41741 #: ../src/guestfs.pod:3197
41742 msgid ""
41743 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41744 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41745 "uploads and downloads."
41746 msgstr ""
41747
41748 #. type: =head2
41749 #: ../src/guestfs.pod:3201
41750 msgid "INSPECTION LIMITS"
41751 msgstr ""
41752
41753 #. type: textblock
41754 #: ../src/guestfs.pod:3203
41755 msgid ""
41756 "The inspection code has several arbitrary limits on things like the size of "
41757 "Windows Registry hive it will read, and the length of product name.  These "
41758 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41759 "memory and disk space on the host, and should not be reached in practice.  "
41760 "See the source code for more information."
41761 msgstr ""
41762
41763 #. type: textblock
41764 #: ../src/guestfs.pod:3229
41765 msgid ""
41766 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
41767 "effect as calling C<guestfs_set_verbose (g, 1)>."
41768 msgstr ""
41769
41770 #. type: textblock
41771 #: ../src/guestfs.pod:3241
41772 msgid ""
41773 "Set the path that libguestfs uses to search for a supermin appliance.  See "
41774 "the discussion of paths in section L</PATH> above."
41775 msgstr ""
41776
41777 #. type: textblock
41778 #: ../src/guestfs.pod:3250
41779 msgid "See also L</QEMU WRAPPERS> above."
41780 msgstr ""
41781
41782 #. type: textblock
41783 #: ../src/guestfs.pod:3254
41784 msgid ""
41785 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
41786 "effect as calling C<guestfs_set_trace (g, 1)>."
41787 msgstr ""
41788
41789 #. type: textblock
41790 #: ../src/guestfs.pod:3272
41791 msgid ""
41792 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41793 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41794 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
41795 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
41796 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41797 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
41798 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
41799 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
41800 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
41801 ">, L<http://libguestfs.org/>."
41802 msgstr ""
41803
41804 #. type: textblock
41805 #: ../src/guestfs.pod:3308
41806 msgid ""
41807 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
41808 "(8)>, L<disktype(1)>."
41809 msgstr ""
41810
41811 #. type: =head1
41812 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
41813 #: ../tools/virt-win-reg.pl:772
41814 msgid "BUGS"
41815 msgstr "ВАДИ"
41816
41817 #. type: textblock
41818 #: ../src/guestfs.pod:3317
41819 msgid "To get a list of bugs against libguestfs use this link:"
41820 msgstr ""
41821 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
41822 "посиланням:"
41823
41824 #. type: textblock
41825 #: ../src/guestfs.pod:3319
41826 msgid ""
41827 "L<https://bugzilla.redhat.com/buglist.cgi?"
41828 "component=libguestfs&product=Virtualization+Tools>"
41829 msgstr ""
41830 "L<https://bugzilla.redhat.com/buglist.cgi?"
41831 "component=libguestfs&product=Virtualization+Tools>"
41832
41833 #. type: textblock
41834 #: ../src/guestfs.pod:3321
41835 msgid "To report a new bug against libguestfs use this link:"
41836 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
41837
41838 #. type: textblock
41839 #: ../src/guestfs.pod:3323
41840 msgid ""
41841 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41842 "component=libguestfs&product=Virtualization+Tools>"
41843 msgstr ""
41844 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41845 "component=libguestfs&product=Virtualization+Tools>"
41846
41847 #. type: textblock
41848 #: ../src/guestfs.pod:3325
41849 msgid "When reporting a bug, please check:"
41850 msgstr ""
41851
41852 #. type: textblock
41853 #: ../src/guestfs.pod:3331
41854 msgid "That the bug hasn't been reported already."
41855 msgstr ""
41856
41857 #. type: textblock
41858 #: ../src/guestfs.pod:3335
41859 msgid "That you are testing a recent version."
41860 msgstr ""
41861
41862 #. type: textblock
41863 #: ../src/guestfs.pod:3339
41864 msgid "Describe the bug accurately, and give a way to reproduce it."
41865 msgstr ""
41866
41867 #. type: textblock
41868 #: ../src/guestfs.pod:3343
41869 msgid ""
41870 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41871 "bug report."
41872 msgstr ""
41873
41874 #. type: textblock
41875 #: ../test-tool/libguestfs-test-tool.pod:5
41876 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41877 msgstr ""
41878
41879 #. type: verbatim
41880 #: ../test-tool/libguestfs-test-tool.pod:9
41881 #, no-wrap
41882 msgid ""
41883 " libguestfs-test-tool [--options]\n"
41884 "\n"
41885 msgstr ""
41886
41887 #. type: textblock
41888 #: ../test-tool/libguestfs-test-tool.pod:13
41889 msgid ""
41890 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41891 "to check basic libguestfs functionality is working.  This is needed because "
41892 "libguestfs occasionally breaks for reasons beyond our control: usually "
41893 "because of changes in the underlying qemu or kernel packages, or the host "
41894 "environment."
41895 msgstr ""
41896
41897 #. type: textblock
41898 #: ../test-tool/libguestfs-test-tool.pod:19
41899 msgid "If you suspect a problem in libguestfs, then just run:"
41900 msgstr ""
41901
41902 #. type: verbatim
41903 #: ../test-tool/libguestfs-test-tool.pod:21
41904 #, no-wrap
41905 msgid ""
41906 " libguestfs-test-tool\n"
41907 "\n"
41908 msgstr ""
41909
41910 #. type: textblock
41911 #: ../test-tool/libguestfs-test-tool.pod:23
41912 msgid "It will print lots of diagnostic messages."
41913 msgstr ""
41914
41915 #. type: textblock
41916 #: ../test-tool/libguestfs-test-tool.pod:25
41917 msgid "If it runs to completion successfully, you will see this near the end:"
41918 msgstr ""
41919
41920 #. type: verbatim
41921 #: ../test-tool/libguestfs-test-tool.pod:27
41922 #, no-wrap
41923 msgid ""
41924 " ===== TEST FINISHED OK =====\n"
41925 "\n"
41926 msgstr ""
41927
41928 #. type: textblock
41929 #: ../test-tool/libguestfs-test-tool.pod:29
41930 msgid "and the test tool will exit with code 0."
41931 msgstr ""
41932
41933 #. type: textblock
41934 #: ../test-tool/libguestfs-test-tool.pod:31
41935 msgid ""
41936 "If it fails (and/or exits with non-zero error code), please paste the "
41937 "I<complete, unedited> output of the test tool into a bug report.  More "
41938 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41939 "> website."
41940 msgstr ""
41941
41942 #. type: textblock
41943 #: ../test-tool/libguestfs-test-tool.pod:42
41944 msgid "Display short usage information and exit."
41945 msgstr ""
41946
41947 #. type: =item
41948 #: ../test-tool/libguestfs-test-tool.pod:44
41949 msgid "B<--qemu qemu_binary>"
41950 msgstr ""
41951
41952 #. type: textblock
41953 #: ../test-tool/libguestfs-test-tool.pod:46
41954 msgid ""
41955 "If you have downloaded another qemu binary, point this option at the full "
41956 "path of the binary to try it."
41957 msgstr ""
41958
41959 #. type: =item
41960 #: ../test-tool/libguestfs-test-tool.pod:49
41961 msgid "B<--qemudir qemu_source_dir>"
41962 msgstr ""
41963
41964 #. type: textblock
41965 #: ../test-tool/libguestfs-test-tool.pod:51
41966 msgid ""
41967 "If you have compiled qemu from source, point this option at the source "
41968 "directory to try it."
41969 msgstr ""
41970
41971 #. type: =item
41972 #: ../test-tool/libguestfs-test-tool.pod:54
41973 msgid "B<-t N>"
41974 msgstr ""
41975
41976 #. type: =item
41977 #: ../test-tool/libguestfs-test-tool.pod:56
41978 msgid "B<--timeout N>"
41979 msgstr ""
41980
41981 #. type: textblock
41982 #: ../test-tool/libguestfs-test-tool.pod:58
41983 msgid ""
41984 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
41985 "minutes) which does not usually need to be adjusted."
41986 msgstr ""
41987
41988 #. type: =head1
41989 #: ../test-tool/libguestfs-test-tool.pod:63
41990 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41991 msgstr ""
41992
41993 #. type: textblock
41994 #: ../test-tool/libguestfs-test-tool.pod:65
41995 msgid ""
41996 "If you have compiled another version of qemu from source and would like to "
41997 "try that, then you can use the I<--qemudir> option to point to the qemu "
41998 "source directory."
41999 msgstr ""
42000
42001 #. type: textblock
42002 #: ../test-tool/libguestfs-test-tool.pod:69
42003 msgid ""
42004 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
42005 "option to point to the binary."
42006 msgstr ""
42007
42008 #. type: textblock
42009 #: ../test-tool/libguestfs-test-tool.pod:72
42010 msgid ""
42011 "Note when using these options, you can ignore the business of qemu wrapper "
42012 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
42013 "wrapper script for you if one is needed."
42014 msgstr ""
42015
42016 #. type: =head1
42017 #: ../test-tool/libguestfs-test-tool.pod:76
42018 msgid "TRYING OUT A DIFFERENT KERNEL"
42019 msgstr ""
42020
42021 #. type: textblock
42022 #: ../test-tool/libguestfs-test-tool.pod:78
42023 msgid ""
42024 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
42025 "libguestfs tries.  You do this by setting the environment variables "
42026 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
42027 msgstr ""
42028
42029 #. type: textblock
42030 #: ../test-tool/libguestfs-test-tool.pod:82
42031 msgid ""
42032 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
42033 "information."
42034 msgstr ""
42035
42036 #. type: =head1
42037 #: ../test-tool/libguestfs-test-tool.pod:85
42038 msgid "SELF-DIAGNOSIS"
42039 msgstr ""
42040
42041 #. type: textblock
42042 #: ../test-tool/libguestfs-test-tool.pod:87
42043 msgid ""
42044 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
42045 "produced by libguestfs-test-tool and/or possible errors."
42046 msgstr ""
42047
42048 #. type: textblock
42049 #: ../test-tool/libguestfs-test-tool.pod:92
42050 msgid ""
42051 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
42052 "I<1> if there was an error."
42053 msgstr ""
42054
42055 #. type: textblock
42056 #: ../test-tool/libguestfs-test-tool.pod:97
42057 msgid ""
42058 "For the full list of environment variables which may affect libguestfs, "
42059 "please see the L<guestfs(3)> manual page."
42060 msgstr ""
42061
42062 #. type: textblock
42063 #: ../test-tool/libguestfs-test-tool.pod:102
42064 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
42065 msgstr ""
42066
42067 #. type: textblock
42068 #: ../tools/virt-list-filesystems.pl:32
42069 msgid ""
42070 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
42071 msgstr ""
42072
42073 #. type: verbatim
42074 #: ../tools/virt-list-filesystems.pl:36
42075 #, no-wrap
42076 msgid ""
42077 " virt-list-filesystems [--options] domname\n"
42078 "\n"
42079 msgstr ""
42080
42081 #. type: verbatim
42082 #: ../tools/virt-list-filesystems.pl:38
42083 #, no-wrap
42084 msgid ""
42085 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
42086 "\n"
42087 msgstr ""
42088
42089 #. type: textblock
42090 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
42091 msgid ""
42092 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
42093 "replacement."
42094 msgstr ""
42095
42096 #. type: textblock
42097 #: ../tools/virt-list-filesystems.pl:45
42098 msgid ""
42099 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
42100 "are contained in a virtual machine or disk image."
42101 msgstr ""
42102
42103 #. type: textblock
42104 #: ../tools/virt-list-filesystems.pl:49
42105 msgid ""
42106 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
42107 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42108 "> tool."
42109 msgstr ""
42110
42111 #. type: textblock
42112 #: ../tools/virt-list-filesystems.pl:112
42113 msgid ""
42114 "With this option, C<virt-list-filesystems> displays the type of each "
42115 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
42116 msgstr ""
42117
42118 #. type: =item
42119 #: ../tools/virt-list-filesystems.pl:119
42120 msgid "B<-a>"
42121 msgstr "B<-a>"
42122
42123 #. type: textblock
42124 #: ../tools/virt-list-filesystems.pl:123
42125 msgid ""
42126 "Normally we only show mountable filesystems.  If this option is given then "
42127 "swap devices are shown too."
42128 msgstr ""
42129
42130 #. type: textblock
42131 #: ../tools/virt-list-filesystems.pl:197
42132 msgid ""
42133 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42134 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42135 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42136 msgstr ""
42137 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42138 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42139 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42140
42141 #. type: textblock
42142 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
42143 msgid "Copyright (C) 2009 Red Hat Inc."
42144 msgstr "© Red Hat Inc., 2009"
42145
42146 #. type: textblock
42147 #: ../tools/virt-list-partitions.pl:32
42148 msgid ""
42149 "virt-list-partitions - List partitions in a virtual machine or disk image"
42150 msgstr ""
42151
42152 #. type: verbatim
42153 #: ../tools/virt-list-partitions.pl:36
42154 #, no-wrap
42155 msgid ""
42156 " virt-list-partitions [--options] domname\n"
42157 "\n"
42158 msgstr ""
42159 " virt-list-partitions [--параметри] назва_домену\n"
42160 "\n"
42161
42162 #. type: verbatim
42163 #: ../tools/virt-list-partitions.pl:38
42164 #, no-wrap
42165 msgid ""
42166 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
42167 "\n"
42168 msgstr ""
42169 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
42170 "\n"
42171
42172 #. type: textblock
42173 #: ../tools/virt-list-partitions.pl:45
42174 msgid ""
42175 "C<virt-list-partitions> is a command line tool to list the partitions that "
42176 "are contained in a virtual machine or disk image.  It is mainly useful as a "
42177 "first step to using L<virt-resize(1)>."
42178 msgstr ""
42179
42180 #. type: textblock
42181 #: ../tools/virt-list-partitions.pl:50
42182 msgid ""
42183 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42184 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42185 "> tool."
42186 msgstr ""
42187
42188 #. type: textblock
42189 #: ../tools/virt-list-partitions.pl:113
42190 msgid "Show sizes in human-readable form (eg. \"1G\")."
42191 msgstr ""
42192
42193 #. type: textblock
42194 #: ../tools/virt-list-partitions.pl:123
42195 msgid ""
42196 "With this option, C<virt-list-partitions> displays the type and size of each "
42197 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42198 msgstr ""
42199
42200 #. type: =item
42201 #: ../tools/virt-list-partitions.pl:130
42202 msgid "B<-t>"
42203 msgstr "B<-t>"
42204
42205 #. type: =item
42206 #: ../tools/virt-list-partitions.pl:132
42207 msgid "B<--total>"
42208 msgstr "B<--total>"
42209
42210 #. type: textblock
42211 #: ../tools/virt-list-partitions.pl:134
42212 msgid ""
42213 "Display the total size of each block device (as a separate row or rows)."
42214 msgstr ""
42215
42216 #. type: textblock
42217 #: ../tools/virt-list-partitions.pl:267
42218 msgid ""
42219 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42220 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42221 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42222 msgstr ""
42223 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42224 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42225 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42226
42227 #. type: textblock
42228 #: ../tools/virt-list-partitions.pl:283
42229 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42230 msgstr "© Red Hat Inc., 2009–2010"
42231
42232 #. type: textblock
42233 #: ../tools/virt-make-fs.pl:37
42234 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42235 msgstr ""
42236
42237 #. type: verbatim
42238 #: ../tools/virt-make-fs.pl:41
42239 #, no-wrap
42240 msgid ""
42241 " virt-make-fs [--options] input.tar output.img\n"
42242 "\n"
42243 msgstr ""
42244
42245 #. type: verbatim
42246 #: ../tools/virt-make-fs.pl:43
42247 #, no-wrap
42248 msgid ""
42249 " virt-make-fs [--options] input.tar.gz output.img\n"
42250 "\n"
42251 msgstr ""
42252
42253 #. type: verbatim
42254 #: ../tools/virt-make-fs.pl:45
42255 #, no-wrap
42256 msgid ""
42257 " virt-make-fs [--options] directory output.img\n"
42258 "\n"
42259 msgstr ""
42260
42261 #. type: textblock
42262 #: ../tools/virt-make-fs.pl:49
42263 msgid ""
42264 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42265 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
42266 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
42267 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42268 "you want to attach these filesystems to existing virtual machines (eg. to "
42269 "import large amounts of read-only data to a VM)."
42270 msgstr ""
42271
42272 #. type: textblock
42273 #: ../tools/virt-make-fs.pl:57
42274 msgid "Basic usage is:"
42275 msgstr ""
42276
42277 #. type: verbatim
42278 #: ../tools/virt-make-fs.pl:59
42279 #, fuzzy, no-wrap
42280 #| msgid ""
42281 #| " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42282 #| "\n"
42283 msgid ""
42284 " virt-make-fs input output.img\n"
42285 "\n"
42286 msgstr ""
42287 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42288 "\n"
42289
42290 #. type: textblock
42291 #: ../tools/virt-make-fs.pl:61
42292 msgid ""
42293 "where C<input> is either a directory containing files that you want to add, "
42294 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42295 "C<output.img> is a disk image.  The input type is detected automatically.  "
42296 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42297 "extra flags (see L</OPTIONS> below)."
42298 msgstr ""
42299
42300 #. type: =head2
42301 #: ../tools/virt-make-fs.pl:67
42302 msgid "FILESYSTEM TYPE"
42303 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
42304
42305 #. type: textblock
42306 #: ../tools/virt-make-fs.pl:69
42307 msgid ""
42308 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
42309 "libguestfs supports can be used (but I<not> read-only formats like "
42310 "ISO9660).  Here are some of the more common choices:"
42311 msgstr ""
42312
42313 #. type: =item
42314 #: ../tools/virt-make-fs.pl:75
42315 msgid "I<ext3>"
42316 msgstr "I<ext3>"
42317
42318 #. type: textblock
42319 #: ../tools/virt-make-fs.pl:77
42320 msgid ""
42321 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
42322 "you are not going to use the filesystem in a way that requires the journal, "
42323 "then this is just wasted overhead."
42324 msgstr ""
42325
42326 #. type: =item
42327 #: ../tools/virt-make-fs.pl:81
42328 msgid "I<ntfs> or I<vfat>"
42329 msgstr "I<ntfs> або I<vfat>"
42330
42331 #. type: textblock
42332 #: ../tools/virt-make-fs.pl:83
42333 msgid "Useful if exporting data to a Windows guest."
42334 msgstr ""
42335
42336 #. type: textblock
42337 #: ../tools/virt-make-fs.pl:85
42338 msgid ""
42339 "I<Note for vfat>: The tar archive or local directory must only contain files "
42340 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
42341 "program running within libguestfs is unable to change the ownership of non-"
42342 "root files, since vfat itself does not support this."
42343 msgstr ""
42344
42345 #. type: =item
42346 #: ../tools/virt-make-fs.pl:90
42347 msgid "I<minix>"
42348 msgstr "I<minix>"
42349
42350 #. type: textblock
42351 #: ../tools/virt-make-fs.pl:92
42352 msgid ""
42353 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42354 "total filesystem size."
42355 msgstr ""
42356
42357 #. type: =head3
42358 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
42359 #: ../tools/virt-make-fs.pl:149
42360 msgid "EXAMPLE"
42361 msgstr "ПРИКЛАД"
42362
42363 #. type: verbatim
42364 #: ../tools/virt-make-fs.pl:99
42365 #, no-wrap
42366 msgid ""
42367 " virt-make-fs --type=minix input minixfs.img\n"
42368 "\n"
42369 msgstr ""
42370
42371 #. type: =head2
42372 #: ../tools/virt-make-fs.pl:101
42373 msgid "TO PARTITION OR NOT TO PARTITION"
42374 msgstr ""
42375
42376 #. type: textblock
42377 #: ../tools/virt-make-fs.pl:103
42378 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42379 msgstr ""
42380
42381 #. type: textblock
42382 #: ../tools/virt-make-fs.pl:105
42383 msgid ""
42384 "Adding a partition can make the disk image more compatible with certain "
42385 "virtualized operating systems which don't expect to see a filesystem "
42386 "directly located on a block device (Linux doesn't care and will happily "
42387 "handle both types)."
42388 msgstr ""
42389
42390 #. type: textblock
42391 #: ../tools/virt-make-fs.pl:110
42392 msgid ""
42393 "On the other hand, if you have a partition table then the output image is no "
42394 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
42395 "directly on a partitioned disk image.  (However libguestfs tools such as "
42396 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
42397 msgstr ""
42398
42399 #. type: textblock
42400 #: ../tools/virt-make-fs.pl:118
42401 msgid "Add an MBR partition:"
42402 msgstr ""
42403
42404 #. type: verbatim
42405 #: ../tools/virt-make-fs.pl:120
42406 #, no-wrap
42407 msgid ""
42408 " virt-make-fs --partition -- input disk.img\n"
42409 "\n"
42410 msgstr ""
42411
42412 #. type: textblock
42413 #: ../tools/virt-make-fs.pl:122
42414 msgid ""
42415 "If the output disk image could be terabyte-sized or larger, it's better to "
42416 "use an EFI/GPT-compatible partition table:"
42417 msgstr ""
42418
42419 #. type: verbatim
42420 #: ../tools/virt-make-fs.pl:125
42421 #, no-wrap
42422 msgid ""
42423 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
42424 "\n"
42425 msgstr ""
42426
42427 #. type: =head2
42428 #: ../tools/virt-make-fs.pl:127
42429 msgid "EXTRA SPACE"
42430 msgstr ""
42431
42432 #. type: textblock
42433 #: ../tools/virt-make-fs.pl:129
42434 msgid ""
42435 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
42436 "the files that it contains, but might have extra space.  Depending on how "
42437 "you are going to use the output, you might think this extra space is wasted "
42438 "and want to minimize it, or you might want to leave space so that more files "
42439 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
42440 "but you can use the I<--size> flag to leave space in the filesystem if you "
42441 "want it."
42442 msgstr ""
42443
42444 #. type: textblock
42445 #: ../tools/virt-make-fs.pl:137
42446 msgid ""
42447 "An alternative way to leave extra space but not make the output image any "
42448 "bigger is to use an alternative disk image format (instead of the default "
42449 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
42450 "image format (check your hypervisor supports this before using it).  This "
42451 "allows you to choose a large I<--size> but the extra space won't actually be "
42452 "allocated in the image until you try to store something in it."
42453 msgstr ""
42454
42455 #. type: textblock
42456 #: ../tools/virt-make-fs.pl:145
42457 msgid ""
42458 "Don't forget that you can also use local commands including L<resize2fs(8)> "
42459 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
42460 "to build another image from scratch."
42461 msgstr ""
42462
42463 #. type: verbatim
42464 #: ../tools/virt-make-fs.pl:151
42465 #, no-wrap
42466 msgid ""
42467 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42468 "\n"
42469 msgstr ""
42470 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42471 "\n"
42472
42473 #. type: textblock
42474 #: ../tools/virt-make-fs.pl:179
42475 msgid "Enable debugging information."
42476 msgstr "Увімкнути виведення діагностичних даних."
42477
42478 #. type: =item
42479 #: ../tools/virt-make-fs.pl:185
42480 msgid "B<--size=E<lt>NE<gt>>"
42481 msgstr "B<--size=E<lt>NE<gt>>"
42482
42483 #. type: =item
42484 #: ../tools/virt-make-fs.pl:187
42485 msgid "B<--size=+E<lt>NE<gt>>"
42486 msgstr "B<--size=+E<lt>NE<gt>>"
42487
42488 #. type: =item
42489 #: ../tools/virt-make-fs.pl:189
42490 msgid "B<-s E<lt>NE<gt>>"
42491 msgstr "B<-s E<lt>NE<gt>>"
42492
42493 #. type: =item
42494 #: ../tools/virt-make-fs.pl:191
42495 msgid "B<-s +E<lt>NE<gt>>"
42496 msgstr "B<-s +E<lt>NE<gt>>"
42497
42498 #. type: textblock
42499 #: ../tools/virt-make-fs.pl:193
42500 msgid ""
42501 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
42502 msgstr ""
42503
42504 #. type: textblock
42505 #: ../tools/virt-make-fs.pl:196
42506 msgid ""
42507 "If this option is I<not> given, then the output image will be just large "
42508 "enough to contain all the files, with not much wasted space."
42509 msgstr ""
42510
42511 #. type: textblock
42512 #: ../tools/virt-make-fs.pl:199
42513 msgid ""
42514 "To choose a fixed size output disk, specify an absolute number followed by b/"
42515 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42516 "Petabytes or Exabytes.  This must be large enough to contain all the input "
42517 "files, else you will get an error."
42518 msgstr ""
42519
42520 #. type: textblock
42521 #: ../tools/virt-make-fs.pl:204
42522 msgid ""
42523 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
42524 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42525 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
42526 "the input files, and (approximately) an extra 200 MB free space."
42527 msgstr ""
42528
42529 #. type: textblock
42530 #: ../tools/virt-make-fs.pl:210
42531 msgid ""
42532 "Note that virt-make-fs estimates free space, and therefore will not produce "
42533 "filesystems containing precisely the free space requested.  (It is much more "
42534 "expensive and time-consuming to produce a filesystem which has precisely the "
42535 "desired free space)."
42536 msgstr ""
42537
42538 #. type: =item
42539 #: ../tools/virt-make-fs.pl:219
42540 msgid "B<--format=E<lt>fmtE<gt>>"
42541 msgstr ""
42542
42543 #. type: =item
42544 #: ../tools/virt-make-fs.pl:221
42545 msgid "B<-F E<lt>fmtE<gt>>"
42546 msgstr ""
42547
42548 #. type: textblock
42549 #: ../tools/virt-make-fs.pl:223
42550 msgid "Choose the output disk image format."
42551 msgstr ""
42552
42553 #. type: textblock
42554 #: ../tools/virt-make-fs.pl:225
42555 msgid "The default is C<raw> (raw sparse disk image)."
42556 msgstr ""
42557
42558 #. type: textblock
42559 #: ../tools/virt-make-fs.pl:227
42560 msgid ""
42561 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
42562 "that would really make sense here is C<qcow2>."
42563 msgstr ""
42564
42565 #. type: =item
42566 #: ../tools/virt-make-fs.pl:234
42567 msgid "B<--type=E<lt>fsE<gt>>"
42568 msgstr ""
42569
42570 #. type: =item
42571 #: ../tools/virt-make-fs.pl:236
42572 msgid "B<-t E<lt>fsE<gt>>"
42573 msgstr ""
42574
42575 #. type: textblock
42576 #: ../tools/virt-make-fs.pl:238
42577 msgid "Choose the output filesystem type."
42578 msgstr ""
42579
42580 #. type: textblock
42581 #: ../tools/virt-make-fs.pl:240
42582 msgid "The default is C<ext2>."
42583 msgstr "Типовим значенням є C<ext2>."
42584
42585 #. type: textblock
42586 #: ../tools/virt-make-fs.pl:242
42587 msgid ""
42588 "Any filesystem which is supported read-write by libguestfs can be used here."
42589 msgstr ""
42590
42591 #. type: =item
42592 #: ../tools/virt-make-fs.pl:249
42593 msgid "B<--partition>"
42594 msgstr "B<--partition>"
42595
42596 #. type: =item
42597 #: ../tools/virt-make-fs.pl:251
42598 msgid "B<--partition=E<lt>parttypeE<gt>>"
42599 msgstr ""
42600
42601 #. type: textblock
42602 #: ../tools/virt-make-fs.pl:253
42603 msgid ""
42604 "If specified, this flag adds an MBR partition table to the output disk image."
42605 msgstr ""
42606
42607 #. type: textblock
42608 #: ../tools/virt-make-fs.pl:256
42609 msgid ""
42610 "You can change the partition table type, eg. I<--partition=gpt> for large "
42611 "disks."
42612 msgstr ""
42613
42614 #. type: textblock
42615 #: ../tools/virt-make-fs.pl:259
42616 msgid ""
42617 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
42618 "might consider the next parameter to be the partition type.  For example:"
42619 msgstr ""
42620
42621 #. type: verbatim
42622 #: ../tools/virt-make-fs.pl:263
42623 #, fuzzy, no-wrap
42624 #| msgid ""
42625 #| " virt-make-fs --partition input.tar ...\n"
42626 #| "\n"
42627 msgid ""
42628 " virt-make-fs --partition input.tar output.img\n"
42629 "\n"
42630 msgstr ""
42631 " virt-make-fs --partition input.tar ...\n"
42632 "\n"
42633
42634 #. type: textblock
42635 #: ../tools/virt-make-fs.pl:265
42636 msgid ""
42637 "would cause virt-make-fs to think you wanted to use a partition type of "
42638 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
42639 "dash) between options and the input and output arguments:"
42640 msgstr ""
42641
42642 #. type: verbatim
42643 #: ../tools/virt-make-fs.pl:269
42644 #, fuzzy, no-wrap
42645 #| msgid ""
42646 #| " virt-make-fs --partition -- input.tar ...\n"
42647 #| "\n"
42648 msgid ""
42649 " virt-make-fs --partition -- input.tar output.img\n"
42650 "\n"
42651 msgstr ""
42652 " virt-make-fs --partition -- input.tar ...\n"
42653 "\n"
42654
42655 #. type: textblock
42656 #: ../tools/virt-make-fs.pl:271
42657 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
42658 msgstr ""
42659
42660 #. type: textblock
42661 #: ../tools/virt-make-fs.pl:559
42662 msgid ""
42663 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42664 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42665 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42666 msgstr ""
42667 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42668 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42669 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42670
42671 #. type: textblock
42672 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
42673 msgid ""
42674 "When reporting bugs, please enable debugging and capture the I<complete> "
42675 "output:"
42676 msgstr ""
42677
42678 #. type: verbatim
42679 #: ../tools/virt-make-fs.pl:576
42680 #, no-wrap
42681 msgid ""
42682 " export LIBGUESTFS_DEBUG=1\n"
42683 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42684 "\n"
42685 msgstr ""
42686 " export LIBGUESTFS_DEBUG=1\n"
42687 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42688 "\n"
42689
42690 #. type: textblock
42691 #: ../tools/virt-make-fs.pl:579
42692 msgid ""
42693 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
42694 "redhat.com/>"
42695 msgstr ""
42696
42697 #. type: textblock
42698 #: ../tools/virt-tar.pl:33
42699 msgid "virt-tar - Extract or upload files to a virtual machine"
42700 msgstr ""
42701
42702 #. type: verbatim
42703 #: ../tools/virt-tar.pl:37
42704 #, no-wrap
42705 msgid ""
42706 " virt-tar [--options] -x domname directory tarball\n"
42707 "\n"
42708 msgstr ""
42709
42710 #. type: verbatim
42711 #: ../tools/virt-tar.pl:39
42712 #, no-wrap
42713 msgid ""
42714 " virt-tar [--options] -u domname tarball directory\n"
42715 "\n"
42716 msgstr ""
42717
42718 #. type: verbatim
42719 #: ../tools/virt-tar.pl:41
42720 #, no-wrap
42721 msgid ""
42722 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42723 "\n"
42724 msgstr ""
42725
42726 #. type: verbatim
42727 #: ../tools/virt-tar.pl:43
42728 #, no-wrap
42729 msgid ""
42730 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42731 "\n"
42732 msgstr ""
42733
42734 #. type: =head2
42735 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42736 msgid "NOTE"
42737 msgstr "ПРИМІТКА"
42738
42739 #. type: textblock
42740 #: ../tools/virt-tar.pl:47
42741 msgid ""
42742 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42743 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42744 msgstr ""
42745
42746 #. type: textblock
42747 #: ../tools/virt-tar.pl:52
42748 msgid "Download C</home> from the VM into a local tarball:"
42749 msgstr ""
42750
42751 #. type: verbatim
42752 #: ../tools/virt-tar.pl:54
42753 #, no-wrap
42754 msgid ""
42755 " virt-tar -x domname /home home.tar\n"
42756 "\n"
42757 msgstr ""
42758
42759 #. type: verbatim
42760 #: ../tools/virt-tar.pl:56
42761 #, no-wrap
42762 msgid ""
42763 " virt-tar -zx domname /home home.tar.gz\n"
42764 "\n"
42765 msgstr ""
42766
42767 #. type: textblock
42768 #: ../tools/virt-tar.pl:58
42769 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42770 msgstr ""
42771
42772 #. type: verbatim
42773 #: ../tools/virt-tar.pl:60
42774 #, no-wrap
42775 msgid ""
42776 " virt-tar -u domname uploadstuff.tar /tmp\n"
42777 "\n"
42778 msgstr ""
42779
42780 #. type: verbatim
42781 #: ../tools/virt-tar.pl:62
42782 #, no-wrap
42783 msgid ""
42784 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42785 "\n"
42786 msgstr ""
42787
42788 #. type: textblock
42789 #: ../tools/virt-tar.pl:66
42790 msgid ""
42791 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42792 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
42793 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42794 msgstr ""
42795
42796 #. type: textblock
42797 #: ../tools/virt-tar.pl:71
42798 msgid ""
42799 "You can use I<-x> (extract) on live virtual machines, but you might get "
42800 "inconsistent results or errors if there is filesystem activity inside the "
42801 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
42802 "work, but the only way to guarantee consistent results is if the virtual "
42803 "machine is shut down."
42804 msgstr ""
42805
42806 #. type: textblock
42807 #: ../tools/virt-tar.pl:79
42808 msgid ""
42809 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42810 "parts of a guest filesystem.  There are many possibilities: making backups, "
42811 "uploading data files, snooping on guest activity, fixing or customizing "
42812 "guests, etc."
42813 msgstr ""
42814
42815 #. type: textblock
42816 #: ../tools/virt-tar.pl:84
42817 msgid ""
42818 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
42819 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
42820 "should look at the L<guestfish(1)> tool."
42821 msgstr ""
42822
42823 #. type: textblock
42824 #: ../tools/virt-tar.pl:88
42825 msgid ""
42826 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42827 "its contents (recursively) from the virtual machine into a local tarball.  "
42828 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42829 "virtual machine.  You cannot use these two options together."
42830 msgstr ""
42831
42832 #. type: textblock
42833 #: ../tools/virt-tar.pl:94
42834 msgid ""
42835 "In addition, you may need to use the I<-z> (gZip) option to enable "
42836 "compression.  When uploading, you have to specify I<-z> if the upload file "
42837 "is compressed because virt-tar won't detect this on its own."
42838 msgstr ""
42839
42840 #. type: textblock
42841 #: ../tools/virt-tar.pl:98
42842 msgid ""
42843 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
42844 "example it cannot do PKZip files or bzip2 compression.  If you want that "
42845 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
42846 "the L<libguestfs(3)> API)."
42847 msgstr ""
42848
42849 #. type: =item
42850 #: ../tools/virt-tar.pl:160
42851 msgid "B<--extract>"
42852 msgstr "B<--extract>"
42853
42854 #. type: =item
42855 #: ../tools/virt-tar.pl:162
42856 msgid "B<--download>"
42857 msgstr "B<--download>"
42858
42859 #. type: =item
42860 #: ../tools/virt-tar.pl:164
42861 msgid "B<-u>"
42862 msgstr "B<-u>"
42863
42864 #. type: =item
42865 #: ../tools/virt-tar.pl:166
42866 msgid "B<--upload>"
42867 msgstr "B<--upload>"
42868
42869 #. type: textblock
42870 #: ../tools/virt-tar.pl:168
42871 msgid ""
42872 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42873 "local tarball."
42874 msgstr ""
42875
42876 #. type: textblock
42877 #: ../tools/virt-tar.pl:171
42878 msgid ""
42879 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
42880 "Please read the L</WARNING> section above before using this option."
42881 msgstr ""
42882
42883 #. type: textblock
42884 #: ../tools/virt-tar.pl:175
42885 msgid "You must specify exactly one of these options."
42886 msgstr ""
42887
42888 #. type: =item
42889 #: ../tools/virt-tar.pl:181
42890 msgid "B<-z>"
42891 msgstr "B<-z>"
42892
42893 #. type: =item
42894 #: ../tools/virt-tar.pl:183
42895 msgid "B<--gzip>"
42896 msgstr "B<--gzip>"
42897
42898 #. type: textblock
42899 #: ../tools/virt-tar.pl:185
42900 msgid "Specify that the input or output tarball is gzip-compressed."
42901 msgstr ""
42902
42903 #. type: textblock
42904 #: ../tools/virt-tar.pl:298
42905 msgid ""
42906 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42907 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42908 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42909 "org/>."
42910 msgstr ""
42911 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42912 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42913 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42914 "org/>."
42915
42916 #. type: textblock
42917 #: ../tools/virt-win-reg.pl:37
42918 msgid ""
42919 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42920 msgstr ""
42921
42922 #. type: verbatim
42923 #: ../tools/virt-win-reg.pl:41
42924 #, no-wrap
42925 msgid ""
42926 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42927 "\n"
42928 msgstr ""
42929
42930 #. type: verbatim
42931 #: ../tools/virt-win-reg.pl:43
42932 #, no-wrap
42933 msgid ""
42934 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42935 "\n"
42936 msgstr ""
42937
42938 #. type: verbatim
42939 #: ../tools/virt-win-reg.pl:45
42940 #, no-wrap
42941 msgid ""
42942 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42943 "\n"
42944 msgstr ""
42945
42946 #. type: verbatim
42947 #: ../tools/virt-win-reg.pl:47
42948 #, no-wrap
42949 msgid ""
42950 " virt-win-reg --merge domname [input.reg ...]\n"
42951 "\n"
42952 msgstr ""
42953
42954 #. type: verbatim
42955 #: ../tools/virt-win-reg.pl:49
42956 #, no-wrap
42957 msgid ""
42958 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42959 "\n"
42960 msgstr ""
42961
42962 #. type: textblock
42963 #: ../tools/virt-win-reg.pl:53
42964 msgid ""
42965 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42966 "virtual machines.  If you do this, you I<will> get irreversible disk "
42967 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
42968 "but doesn't catch all cases."
42969 msgstr ""
42970
42971 #. type: textblock
42972 #: ../tools/virt-win-reg.pl:58
42973 msgid ""
42974 "Modifying the Windows Registry is an inherently risky operation.  The format "
42975 "is deliberately obscure and undocumented, and Registry changes can leave the "
42976 "system unbootable.  Therefore when using the I<--merge> option, make sure "
42977 "you have a reliable backup first."
42978 msgstr ""
42979
42980 #. type: textblock
42981 #: ../tools/virt-win-reg.pl:65
42982 msgid ""
42983 "This program can export and merge Windows Registry entries from a Windows "
42984 "guest."
42985 msgstr ""
42986
42987 #. type: textblock
42988 #: ../tools/virt-win-reg.pl:68
42989 msgid ""
42990 "The first parameter is the libvirt guest name or the raw disk image of a "
42991 "Windows guest."
42992 msgstr ""
42993
42994 #. type: textblock
42995 #: ../tools/virt-win-reg.pl:71
42996 msgid ""
42997 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42998 "exported (recursively).  For example:"
42999 msgstr ""
43000
43001 #. type: verbatim
43002 #: ../tools/virt-win-reg.pl:74
43003 #, no-wrap
43004 msgid ""
43005 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43006 "\n"
43007 msgstr ""
43008 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
43009 "\n"
43010
43011 #. type: textblock
43012 #: ../tools/virt-win-reg.pl:76
43013 msgid ""
43014 "You can also display single values from within registry keys, for example:"
43015 msgstr ""
43016
43017 #. type: verbatim
43018 #: ../tools/virt-win-reg.pl:79
43019 #, no-wrap
43020 msgid ""
43021 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43022 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43023 " Windows 7 Enterprise\n"
43024 "\n"
43025 msgstr ""
43026 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
43027 " $ virt-win-reg Windows7 $cvkey ProductName\n"
43028 " Windows 7 Enterprise\n"
43029 "\n"
43030
43031 #. type: textblock
43032 #: ../tools/virt-win-reg.pl:83
43033 msgid ""
43034 "With I<--merge>, you can merge a textual regedit file into the Windows "
43035 "Registry:"
43036 msgstr ""
43037
43038 #. type: verbatim
43039 #: ../tools/virt-win-reg.pl:86
43040 #, no-wrap
43041 msgid ""
43042 " $ virt-win-reg --merge Windows7 changes.reg\n"
43043 "\n"
43044 msgstr ""
43045 " $ virt-win-reg --merge Windows7 changes.reg\n"
43046 "\n"
43047
43048 #. type: textblock
43049 #: ../tools/virt-win-reg.pl:90
43050 msgid ""
43051 "This program is only meant for simple access to the registry.  If you want "
43052 "to do complicated things with the registry, we suggest you download the "
43053 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
43054 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
43055 "L<hivexregedit(1)>."
43056 msgstr ""
43057
43058 #. type: =item
43059 #: ../tools/virt-win-reg.pl:159
43060 msgid "B<--merge>"
43061 msgstr "B<--merge>"
43062
43063 #. type: textblock
43064 #: ../tools/virt-win-reg.pl:161
43065 msgid ""
43066 "In merge mode, this merges a textual regedit file into the Windows Registry "
43067 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
43068 "displays or exports Registry entries instead."
43069 msgstr ""
43070
43071 #. type: textblock
43072 #: ../tools/virt-win-reg.pl:165
43073 msgid ""
43074 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
43075 "result in disk corruption.  However exporting (without this flag)  is always "
43076 "safe."
43077 msgstr ""
43078
43079 #. type: =item
43080 #: ../tools/virt-win-reg.pl:173
43081 msgid "B<--encoding> UTF-16LE|ASCII"
43082 msgstr "B<--encoding> UTF-16LE|ASCII"
43083
43084 #. type: textblock
43085 #: ../tools/virt-win-reg.pl:175
43086 msgid ""
43087 "When merging (only), you may need to specify the encoding for strings to be "
43088 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
43089 "(3)/ENCODING STRINGS>."
43090 msgstr ""
43091
43092 #. type: textblock
43093 #: ../tools/virt-win-reg.pl:179
43094 msgid ""
43095 "The default is to use UTF-16LE, which should work with recent versions of "
43096 "Windows."
43097 msgstr ""
43098
43099 #. type: =item
43100 #: ../tools/virt-win-reg.pl:186
43101 msgid "B<--unsafe-printable-strings>"
43102 msgstr "B<--unsafe-printable-strings>"
43103
43104 #. type: textblock
43105 #: ../tools/virt-win-reg.pl:188
43106 msgid ""
43107 "When exporting (only), assume strings are UTF-16LE and print them as strings "
43108 "instead of hex sequences.  Remove the final zero codepoint from strings if "
43109 "present."
43110 msgstr ""
43111
43112 #. type: textblock
43113 #: ../tools/virt-win-reg.pl:192
43114 msgid ""
43115 "This is unsafe and does not preserve the fidelity of strings in the original "
43116 "Registry for various reasons:"
43117 msgstr ""
43118
43119 #. type: textblock
43120 #: ../tools/virt-win-reg.pl:199
43121 msgid ""
43122 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
43123 "other encodings will be corrupted by this transformation."
43124 msgstr ""
43125
43126 #. type: textblock
43127 #: ../tools/virt-win-reg.pl:204
43128 msgid ""
43129 "Assumes that everything which has type 1 or 2 is really a string and that "
43130 "everything else is not a string, but the type field in real Registries is "
43131 "not reliable."
43132 msgstr ""
43133
43134 #. type: textblock
43135 #: ../tools/virt-win-reg.pl:210
43136 msgid ""
43137 "Loses information about whether a zero codepoint followed the string in the "
43138 "Registry or not."
43139 msgstr ""
43140
43141 #. type: textblock
43142 #: ../tools/virt-win-reg.pl:215
43143 msgid ""
43144 "This all happens because the Registry itself contains no information about "
43145 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
43146 msgstr ""
43147
43148 #. type: textblock
43149 #: ../tools/virt-win-reg.pl:219
43150 msgid ""
43151 "You should only use this option for quick hacking and debugging of the "
43152 "Registry contents, and I<never> use it if the output is going to be passed "
43153 "into another program or stored in another Registry."
43154 msgstr ""
43155
43156 #. type: =head1
43157 #: ../tools/virt-win-reg.pl:556
43158 msgid "SUPPORTED SYSTEMS"
43159 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
43160
43161 #. type: textblock
43162 #: ../tools/virt-win-reg.pl:558
43163 msgid ""
43164 "The program currently supports Windows NT-derived guests starting with "
43165 "Windows XP through to at least Windows 7."
43166 msgstr ""
43167
43168 #. type: textblock
43169 #: ../tools/virt-win-reg.pl:561
43170 msgid "The following Registry keys are supported:"
43171 msgstr ""
43172
43173 #. type: =item
43174 #: ../tools/virt-win-reg.pl:565
43175 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43176 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43177
43178 #. type: =item
43179 #: ../tools/virt-win-reg.pl:567
43180 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43181 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43182
43183 #. type: =item
43184 #: ../tools/virt-win-reg.pl:569
43185 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43186 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43187
43188 #. type: =item
43189 #: ../tools/virt-win-reg.pl:571
43190 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43191 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43192
43193 #. type: =item
43194 #: ../tools/virt-win-reg.pl:573
43195 msgid "C<HKEY_USERS\\.DEFAULT>"
43196 msgstr "C<HKEY_USERS\\.DEFAULT>"
43197
43198 #. type: =item
43199 #: ../tools/virt-win-reg.pl:575
43200 msgid "C<HKEY_USERS\\I<SID>>"
43201 msgstr "C<HKEY_USERS\\I<SID>>"
43202
43203 #. type: textblock
43204 #: ../tools/virt-win-reg.pl:577
43205 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43206 msgstr ""
43207
43208 #. type: =item
43209 #: ../tools/virt-win-reg.pl:579
43210 msgid "C<HKEY_USERS\\I<username>>"
43211 msgstr "C<HKEY_USERS\\I<користувач>>"
43212
43213 #. type: textblock
43214 #: ../tools/virt-win-reg.pl:581
43215 msgid ""
43216 "where I<username> is a local user name (this is a libguestfs extension)."
43217 msgstr ""
43218
43219 #. type: textblock
43220 #: ../tools/virt-win-reg.pl:585
43221 msgid ""
43222 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43223 "C<HKEY_USERS>."
43224 msgstr ""
43225
43226 #. type: textblock
43227 #: ../tools/virt-win-reg.pl:588
43228 msgid ""
43229 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43230 "supported (there is no \"current user\")."
43231 msgstr ""
43232
43233 #. type: =head1
43234 #: ../tools/virt-win-reg.pl:591
43235 msgid "ENCODING"
43236 msgstr "КОДУВАННЯ"
43237
43238 #. type: textblock
43239 #: ../tools/virt-win-reg.pl:593
43240 msgid ""
43241 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43242 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
43243 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
43244 "Windows-style line endings, you may need to reencode the whole file before "
43245 "or after processing."
43246 msgstr ""
43247
43248 #. type: textblock
43249 #: ../tools/virt-win-reg.pl:599
43250 msgid ""
43251 "To reencode a file from Windows format to Linux (before processing it with "
43252 "the I<--merge> option), you would do something like this:"
43253 msgstr ""
43254
43255 #. type: verbatim
43256 #: ../tools/virt-win-reg.pl:602
43257 #, no-wrap
43258 msgid ""
43259 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43260 "\n"
43261 msgstr ""
43262 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43263 "\n"
43264
43265 #. type: textblock
43266 #: ../tools/virt-win-reg.pl:604
43267 msgid ""
43268 "To go in the opposite direction, after exporting and before sending the file "
43269 "to a Windows user, do something like this:"
43270 msgstr ""
43271
43272 #. type: verbatim
43273 #: ../tools/virt-win-reg.pl:607
43274 #, no-wrap
43275 msgid ""
43276 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43277 "\n"
43278 msgstr ""
43279 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43280 "\n"
43281
43282 #. type: textblock
43283 #: ../tools/virt-win-reg.pl:609
43284 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43285 msgstr ""
43286
43287 #. type: textblock
43288 #: ../tools/virt-win-reg.pl:611
43289 msgid ""
43290 "If you are unsure about the current encoding, use the L<file(1)> command.  "
43291 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43292 "style (CRLF) line endings, like this:"
43293 msgstr ""
43294
43295 #. type: verbatim
43296 #: ../tools/virt-win-reg.pl:615
43297 #, no-wrap
43298 msgid ""
43299 " $ file software.reg\n"
43300 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43301 " with CRLF line terminators\n"
43302 "\n"
43303 msgstr ""
43304
43305 #. type: textblock
43306 #: ../tools/virt-win-reg.pl:619
43307 msgid "This file would need conversion before you could I<--merge> it."
43308 msgstr ""
43309
43310 #. type: =head1
43311 #: ../tools/virt-win-reg.pl:621
43312 msgid "CurrentControlSet etc."
43313 msgstr ""
43314
43315 #. type: textblock
43316 #: ../tools/virt-win-reg.pl:623
43317 msgid ""
43318 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43319 "Registry at the level of the hive file, and therefore you cannot modify "
43320 "these."
43321 msgstr ""
43322
43323 #. type: textblock
43324 #: ../tools/virt-win-reg.pl:627
43325 msgid ""
43326 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
43327 "circumstances it might refer to another control set.  The way to find out is "
43328 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43329 msgstr ""
43330
43331 #. type: verbatim
43332 #: ../tools/virt-win-reg.pl:631
43333 #, no-wrap
43334 msgid ""
43335 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43336 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43337 " \"Current\"=dword:00000001\n"
43338 " \"Default\"=dword:00000001\n"
43339 " \"Failed\"=dword:00000000\n"
43340 " \"LastKnownGood\"=dword:00000002\n"
43341 "\n"
43342 msgstr ""
43343 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43344 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43345 " \"Current\"=dword:00000001\n"
43346 " \"Default\"=dword:00000001\n"
43347 " \"Failed\"=dword:00000000\n"
43348 " \"LastKnownGood\"=dword:00000002\n"
43349 "\n"
43350
43351 #. type: textblock
43352 #: ../tools/virt-win-reg.pl:638
43353 msgid "\"Current\" is the one which Windows will choose when it boots."
43354 msgstr ""
43355
43356 #. type: textblock
43357 #: ../tools/virt-win-reg.pl:640
43358 msgid ""
43359 "Similarly, other C<Current...> keys in the path may need to be replaced."
43360 msgstr ""
43361
43362 #. type: =head1
43363 #: ../tools/virt-win-reg.pl:643
43364 msgid "DELETING REGISTRY KEYS AND VALUES"
43365 msgstr ""
43366
43367 #. type: textblock
43368 #: ../tools/virt-win-reg.pl:645
43369 msgid "To delete a whole registry key, use the syntax:"
43370 msgstr ""
43371
43372 #. type: verbatim
43373 #: ../tools/virt-win-reg.pl:647
43374 #, fuzzy, no-wrap
43375 #| msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43376 msgid ""
43377 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
43378 "\n"
43379 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43380
43381 #. type: textblock
43382 #: ../tools/virt-win-reg.pl:649
43383 msgid "To delete a single value within a key, use the syntax:"
43384 msgstr ""
43385
43386 #. type: verbatim
43387 #: ../tools/virt-win-reg.pl:651
43388 #, fuzzy, no-wrap
43389 #| msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43390 msgid ""
43391 " [HKEY_LOCAL_MACHINE\\Foo]\n"
43392 " \"Value\"=-\n"
43393 "\n"
43394 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43395
43396 #. type: =head1
43397 #: ../tools/virt-win-reg.pl:654
43398 msgid "WINDOWS TIPS"
43399 msgstr ""
43400
43401 #. type: textblock
43402 #: ../tools/virt-win-reg.pl:656
43403 msgid ""
43404 "Note that some of these tips modify the guest disk image.  The guest I<must> "
43405 "be shut off, else you will get disk corruption."
43406 msgstr ""
43407
43408 #. type: =head2
43409 #: ../tools/virt-win-reg.pl:659
43410 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
43411 msgstr ""
43412
43413 #. type: textblock
43414 #: ../tools/virt-win-reg.pl:661
43415 msgid ""
43416 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
43417 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
43418 "is uploaded into C<C:\\>:"
43419 msgstr ""
43420
43421 #. type: verbatim
43422 #: ../tools/virt-win-reg.pl:665
43423 #, no-wrap
43424 msgid ""
43425 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43426 "\n"
43427 msgstr ""
43428 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43429 "\n"
43430
43431 #. type: textblock
43432 #: ../tools/virt-win-reg.pl:667
43433 msgid "Prepare a regedit file containing the registry change:"
43434 msgstr ""
43435
43436 #. type: verbatim
43437 #: ../tools/virt-win-reg.pl:669
43438 #, no-wrap
43439 msgid ""
43440 " cat > test.reg <<'EOF'\n"
43441 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43442 " \"Test\"=\"c:\\\\test.bat\"\n"
43443 " EOF\n"
43444 "\n"
43445 msgstr ""
43446 " cat > test.reg <<'EOF'\n"
43447 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43448 " \"Test\"=\"c:\\\\test.bat\"\n"
43449 " EOF\n"
43450 "\n"
43451
43452 #. type: textblock
43453 #: ../tools/virt-win-reg.pl:674
43454 msgid ""
43455 "In this example we use the key C<RunOnce> which means that the script will "
43456 "run precisely once when the first user logs in.  If you want it to run every "
43457 "time a user logs in, replace C<RunOnce> with C<Run>."
43458 msgstr ""
43459
43460 #. type: textblock
43461 #: ../tools/virt-win-reg.pl:678
43462 msgid "Now update the registry:"
43463 msgstr "Оновіть регістр:"
43464
43465 #. type: verbatim
43466 #: ../tools/virt-win-reg.pl:680
43467 #, no-wrap
43468 msgid ""
43469 " virt-win-reg --merge WindowsGuest test.reg\n"
43470 "\n"
43471 msgstr ""
43472
43473 #. type: =head2
43474 #: ../tools/virt-win-reg.pl:682
43475 msgid "INSTALLING A SERVICE"
43476 msgstr ""
43477
43478 #. type: textblock
43479 #: ../tools/virt-win-reg.pl:684
43480 msgid ""
43481 "This section assumes you are familiar with Windows services, and you either "
43482 "have a program which handles the Windows Service Control Protocol directly "
43483 "or you want to run any program using a service wrapper like SrvAny or the "
43484 "free RHSrvAny."
43485 msgstr ""
43486
43487 #. type: textblock
43488 #: ../tools/virt-win-reg.pl:689
43489 msgid ""
43490 "First upload the program and optionally the service wrapper.  In this case "
43491 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
43492 msgstr ""
43493
43494 #. type: verbatim
43495 #: ../tools/virt-win-reg.pl:693
43496 #, no-wrap
43497 msgid ""
43498 " guestfish -i -d WindowsGuest <<EOF\n"
43499 "   upload rhsrvany.exe /rhsrvany.exe\n"
43500 "   upload test.exe /test.exe\n"
43501 " EOF\n"
43502 "\n"
43503 msgstr ""
43504 " guestfish -i -d WindowsGuest <<EOF\n"
43505 "   upload rhsrvany.exe /rhsrvany.exe\n"
43506 "   upload test.exe /test.exe\n"
43507 " EOF\n"
43508 "\n"
43509
43510 #. type: textblock
43511 #: ../tools/virt-win-reg.pl:698
43512 msgid ""
43513 "Prepare a regedit file containing the registry changes.  In this example, "
43514 "the first registry change is needed for the service itself or the service "
43515 "wrapper (if used).  The second registry change is only needed because I am "
43516 "using the RHSrvAny service wrapper."
43517 msgstr ""
43518
43519 #. type: verbatim
43520 #: ../tools/virt-win-reg.pl:703
43521 #, no-wrap
43522 msgid ""
43523 " cat > service.reg <<'EOF'\n"
43524 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43525 " \"Type\"=dword:00000010\n"
43526 " \"Start\"=dword:00000002\n"
43527 " \"ErrorControl\"=dword:00000001\n"
43528 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43529 " \"DisplayName\"=\"RHSrvAny\"\n"
43530 " \"ObjectName\"=\"NetworkService\"\n"
43531 " \n"
43532 msgstr ""
43533 " cat > service.reg <<'EOF'\n"
43534 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43535 " \"Type\"=dword:00000010\n"
43536 " \"Start\"=dword:00000002\n"
43537 " \"ErrorControl\"=dword:00000001\n"
43538 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43539 " \"DisplayName\"=\"RHSrvAny\"\n"
43540 " \"ObjectName\"=\"NetworkService\"\n"
43541 " \n"
43542
43543 #. type: verbatim
43544 #: ../tools/virt-win-reg.pl:712
43545 #, no-wrap
43546 msgid ""
43547 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43548 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43549 " \"PWD\"=\"c:\\\\Temp\"\n"
43550 " EOF\n"
43551 "\n"
43552 msgstr ""
43553 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43554 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43555 " \"PWD\"=\"c:\\\\Temp\"\n"
43556 " EOF\n"
43557 "\n"
43558
43559 #. type: textblock
43560 #: ../tools/virt-win-reg.pl:723
43561 msgid ""
43562 "For use of C<ControlSet001> see the section above in this manual page.  You "
43563 "may need to adjust this according to the control set that is in use by the "
43564 "guest."
43565 msgstr ""
43566
43567 #. type: textblock
43568 #: ../tools/virt-win-reg.pl:729
43569 msgid ""
43570 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
43571 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
43572 "privileged account."
43573 msgstr ""
43574
43575 #. type: textblock
43576 #: ../tools/virt-win-reg.pl:735
43577 msgid ""
43578 "For the meaning of the magic numbers, see this Microsoft KB article: "
43579 "L<http://support.microsoft.com/kb/103000>."
43580 msgstr ""
43581
43582 #. type: textblock
43583 #: ../tools/virt-win-reg.pl:740
43584 msgid "Update the registry:"
43585 msgstr "Оновіть регістр:"
43586
43587 #. type: verbatim
43588 #: ../tools/virt-win-reg.pl:742
43589 #, no-wrap
43590 msgid ""
43591 " virt-win-reg --merge WindowsGuest service.reg\n"
43592 "\n"
43593 msgstr ""
43594
43595 #. type: textblock
43596 #: ../tools/virt-win-reg.pl:746
43597 msgid ""
43598 "Be careful when passing parameters containing C<\\> (backslash) in the "
43599 "shell.  Usually you will have to use 'single quotes' or double backslashes "
43600 "(but not both) to protect them from the shell."
43601 msgstr ""
43602
43603 #. type: textblock
43604 #: ../tools/virt-win-reg.pl:750
43605 msgid "Paths and value names are case-insensitive."
43606 msgstr ""
43607
43608 #. type: textblock
43609 #: ../tools/virt-win-reg.pl:759
43610 msgid ""
43611 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43612 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43613 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43614 msgstr ""
43615 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43616 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43617 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43618
43619 #. type: verbatim
43620 #: ../tools/virt-win-reg.pl:777
43621 #, no-wrap
43622 msgid ""
43623 " export LIBGUESTFS_DEBUG=1\n"
43624 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
43625 "\n"
43626 msgstr ""
43627
43628 #. type: textblock
43629 #: ../tools/virt-win-reg.pl:780
43630 msgid ""
43631 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
43632 "redhat.com/>"
43633 msgstr ""
43634
43635 #~ msgid ""
43636 #~ " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
43637 #~ "\n"
43638 #~ msgstr ""
43639 #~ " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
43640 #~ "\n"