Version 1.13.25.
[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 14:08+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:395 ../fish/guestfish-actions.pod:403
900 #: ../fish/guestfish-actions.pod:410 ../fish/guestfish-actions.pod:417
901 #: ../fish/guestfish-actions.pod:1216 ../fish/guestfish-actions.pod:1220
902 #: ../fish/guestfish-actions.pod:1224 ../fish/guestfish-actions.pod:1228
903 #: ../fish/guestfish-actions.pod:1236 ../fish/guestfish-actions.pod:1240
904 #: ../fish/guestfish-actions.pod:1244 ../fish/guestfish-actions.pod:1254
905 #: ../fish/guestfish-actions.pod:1258 ../fish/guestfish-actions.pod:1262
906 #: ../fish/guestfish-actions.pod:1352 ../fish/guestfish-actions.pod:1356
907 #: ../fish/guestfish-actions.pod:1361 ../fish/guestfish-actions.pod:1366
908 #: ../fish/guestfish-actions.pod:1408 ../fish/guestfish-actions.pod:1412
909 #: ../fish/guestfish-actions.pod:1417 ../fish/guestfish-actions.pod:1673
910 #: ../fish/guestfish-actions.pod:1680 ../fish/guestfish-actions.pod:1687
911 #: ../fish/guestfish-actions.pod:2090 ../fish/guestfish-actions.pod:2096
912 #: ../fish/guestfish-actions.pod:2104 ../fish/guestfish-actions.pod:2111
913 #: ../fish/guestfish-actions.pod:2118 ../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:594 ../src/guestfs-actions.pod:602
924 #: ../src/guestfs-actions.pod:609 ../src/guestfs-actions.pod:616
925 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2028
926 #: ../src/guestfs-actions.pod:2032 ../src/guestfs-actions.pod:2036
927 #: ../src/guestfs-actions.pod:2044 ../src/guestfs-actions.pod:2048
928 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2062
929 #: ../src/guestfs-actions.pod:2066 ../src/guestfs-actions.pod:2070
930 #: ../src/guestfs-actions.pod:2208 ../src/guestfs-actions.pod:2212
931 #: ../src/guestfs-actions.pod:2217 ../src/guestfs-actions.pod:2222
932 #: ../src/guestfs-actions.pod:2283 ../src/guestfs-actions.pod:2287
933 #: ../src/guestfs-actions.pod:2292 ../src/guestfs-actions.pod:2707
934 #: ../src/guestfs-actions.pod:2714 ../src/guestfs-actions.pod:2721
935 #: ../src/guestfs-actions.pod:3266 ../src/guestfs-actions.pod:3272
936 #: ../src/guestfs-actions.pod:3280 ../src/guestfs-actions.pod:3287
937 #: ../src/guestfs-actions.pod:3294 ../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:4349
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:1404 ../fish/guestfish-actions.pod:1669
5307 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:18
5308 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:2703
5309 #: ../src/guestfs-actions.pod:3262 ../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:168
5905 #: ../fish/guestfish-actions.pod:182
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:171
5913 #: ../fish/guestfish-actions.pod:185 ../fish/guestfish-actions.pod:895
5914 #: ../fish/guestfish-actions.pod:930 ../fish/guestfish-actions.pod:1103
5915 #: ../fish/guestfish-actions.pod:1463 ../fish/guestfish-actions.pod:1477
5916 #: ../fish/guestfish-actions.pod:3247 ../fish/guestfish-actions.pod:3558
5917 #: ../fish/guestfish-actions.pod:3606 ../fish/guestfish-actions.pod:4533
5918 #: ../fish/guestfish-actions.pod:4556 ../fish/guestfish-actions.pod:4578
5919 #: ../fish/guestfish-actions.pod:4616 ../fish/guestfish-actions.pod:5265
5920 #: ../fish/guestfish-actions.pod:5371 ../src/guestfs-actions.pod:10
5921 #: ../src/guestfs-actions.pod:258 ../src/guestfs-actions.pod:279
5922 #: ../src/guestfs-actions.pod:1525 ../src/guestfs-actions.pod:1582
5923 #: ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:2364
5924 #: ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:5030
5925 #: ../src/guestfs-actions.pod:5552 ../src/guestfs-actions.pod:5652
5926 #: ../src/guestfs-actions.pod:6952 ../src/guestfs-actions.pod:6996
5927 #: ../src/guestfs-actions.pod:7030 ../src/guestfs-actions.pod:7093
5928 #: ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8134
5929 #: ../src/guestfs-actions.pod:8317
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:..]\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:64
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:67
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:71
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:76
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:82
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:89
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
6015 msgid ""
6016 "The other optional parameters are passed directly through to L</add-drive-"
6017 "opts>."
6018 msgstr ""
6019
6020 #. type: textblock
6021 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:148
6022 #: ../fish/guestfish-actions.pod:578 ../fish/guestfish-actions.pod:789
6023 #: ../fish/guestfish-actions.pod:810 ../fish/guestfish-actions.pod:848
6024 #: ../fish/guestfish-actions.pod:857 ../fish/guestfish-actions.pod:866
6025 #: ../fish/guestfish-actions.pod:880 ../fish/guestfish-actions.pod:2125
6026 #: ../fish/guestfish-actions.pod:3296 ../fish/guestfish-actions.pod:3459
6027 #: ../fish/guestfish-actions.pod:3594
6028 msgid ""
6029 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6030 msgstr ""
6031
6032 #. type: =head2
6033 #: ../fish/guestfish-actions.pod:81
6034 msgid "add-drive"
6035 msgstr "add-drive"
6036
6037 #. type: verbatim
6038 #: ../fish/guestfish-actions.pod:83
6039 #, no-wrap
6040 msgid ""
6041 " add-drive filename\n"
6042 "\n"
6043 msgstr ""
6044 " add-drive назва_файла\n"
6045 "\n"
6046
6047 #. type: textblock
6048 #: ../fish/guestfish-actions.pod:85
6049 msgid ""
6050 "This function is the equivalent of calling L</add-drive-opts> with no "
6051 "optional parameters, so the disk is added writable, with the format being "
6052 "detected automatically."
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../fish/guestfish-actions.pod:89
6057 msgid ""
6058 "Automatic detection of the format opens you up to a potential security hole "
6059 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6060 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6061 "you should think about replacing calls to this function with calls to L</add-"
6062 "drive-opts>, and specifying the format."
6063 msgstr ""
6064
6065 #. type: =head2
6066 #: ../fish/guestfish-actions.pod:96
6067 msgid "add-drive-opts"
6068 msgstr "add-drive-opts"
6069
6070 #. type: =head2
6071 #: ../fish/guestfish-actions.pod:98
6072 msgid "add"
6073 msgstr "add"
6074
6075 #. type: verbatim
6076 #: ../fish/guestfish-actions.pod:100
6077 #, no-wrap
6078 msgid ""
6079 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
6080 "\n"
6081 msgstr ""
6082
6083 #. type: textblock
6084 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:161
6085 msgid ""
6086 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6087 "The first time you call this function, the disk appears as C</dev/sda>, the "
6088 "second time as C</dev/sdb>, and so on."
6089 msgstr ""
6090
6091 #. type: textblock
6092 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:166
6093 msgid ""
6094 "You don't necessarily need to be root when using libguestfs.  However you "
6095 "obviously do need sufficient permissions to access the filename for whatever "
6096 "operations you want to perform (ie. read access if you just want to read the "
6097 "image or write access if you want to modify the image)."
6098 msgstr ""
6099
6100 #. type: textblock
6101 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:172
6102 msgid "This call checks that C<filename> exists."
6103 msgstr ""
6104
6105 #. type: textblock
6106 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3258
6107 #: ../src/guestfs-actions.pod:174 ../src/guestfs-actions.pod:5067
6108 msgid "The optional arguments are:"
6109 msgstr ""
6110
6111 #. type: =item
6112 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:178
6113 msgid "C<readonly>"
6114 msgstr "C<readonly>"
6115
6116 #. type: textblock
6117 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:180
6118 msgid ""
6119 "If true then the image is treated as read-only.  Writes are still allowed, "
6120 "but they are stored in a temporary snapshot overlay which is discarded at "
6121 "the end.  The disk that you add is not modified."
6122 msgstr ""
6123
6124 #. type: =item
6125 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:184
6126 msgid "C<format>"
6127 msgstr "C<format>"
6128
6129 #. type: textblock
6130 #: ../fish/guestfish-actions.pod:127
6131 msgid ""
6132 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6133 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6134 "include C<raw> and C<qcow2>."
6135 msgstr ""
6136
6137 #. type: textblock
6138 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:190
6139 msgid ""
6140 "Automatic detection of the format opens you up to a potential security hole "
6141 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6142 "RHBZ#642934.  Specifying the format closes this security hole."
6143 msgstr ""
6144
6145 #. type: =item
6146 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:195
6147 msgid "C<iface>"
6148 msgstr "C<iface>"
6149
6150 #. type: textblock
6151 #: ../fish/guestfish-actions.pod:138
6152 msgid ""
6153 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6154 "add-drive-with-if> call (q.v.)"
6155 msgstr ""
6156
6157 #. type: =item
6158 #: ../fish/guestfish-actions.pod:141 ../src/guestfs-actions.pod:200
6159 #, fuzzy
6160 #| msgid "C<app_name>"
6161 msgid "C<name>"
6162 msgstr "C<app_name>"
6163
6164 #. type: textblock
6165 #: ../fish/guestfish-actions.pod:143 ../src/guestfs-actions.pod:202
6166 msgid ""
6167 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6168 "a hint to the guest inspection process if it is available."
6169 msgstr ""
6170
6171 #. type: =head2
6172 #: ../fish/guestfish-actions.pod:150
6173 msgid "add-drive-ro"
6174 msgstr "add-drive-ro"
6175
6176 #. type: =head2
6177 #: ../fish/guestfish-actions.pod:152
6178 msgid "add-ro"
6179 msgstr "add-ro"
6180
6181 #. type: verbatim
6182 #: ../fish/guestfish-actions.pod:154
6183 #, no-wrap
6184 msgid ""
6185 " add-drive-ro filename\n"
6186 "\n"
6187 msgstr ""
6188
6189 #. type: textblock
6190 #: ../fish/guestfish-actions.pod:156
6191 msgid ""
6192 "This function is the equivalent of calling L</add-drive-opts> with the "
6193 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6194 "is added read-only, with the format being detected automatically."
6195 msgstr ""
6196
6197 #. type: =head2
6198 #: ../fish/guestfish-actions.pod:161
6199 msgid "add-drive-ro-with-if"
6200 msgstr ""
6201
6202 #. type: verbatim
6203 #: ../fish/guestfish-actions.pod:163
6204 #, no-wrap
6205 msgid ""
6206 " add-drive-ro-with-if filename iface\n"
6207 "\n"
6208 msgstr ""
6209
6210 #. type: textblock
6211 #: ../fish/guestfish-actions.pod:165
6212 msgid ""
6213 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6214 "interface emulation to use at run time."
6215 msgstr ""
6216
6217 #. type: =head2
6218 #: ../fish/guestfish-actions.pod:175
6219 msgid "add-drive-with-if"
6220 msgstr ""
6221
6222 #. type: verbatim
6223 #: ../fish/guestfish-actions.pod:177
6224 #, no-wrap
6225 msgid ""
6226 " add-drive-with-if filename iface\n"
6227 "\n"
6228 msgstr ""
6229
6230 #. type: textblock
6231 #: ../fish/guestfish-actions.pod:179
6232 msgid ""
6233 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6234 "interface emulation to use at run time."
6235 msgstr ""
6236
6237 #. type: =head2
6238 #: ../fish/guestfish-actions.pod:189
6239 msgid "aug-clear"
6240 msgstr ""
6241
6242 #. type: verbatim
6243 #: ../fish/guestfish-actions.pod:191
6244 #, no-wrap
6245 msgid ""
6246 " aug-clear augpath\n"
6247 "\n"
6248 msgstr ""
6249
6250 #. type: textblock
6251 #: ../fish/guestfish-actions.pod:193 ../src/guestfs-actions.pod:296
6252 msgid ""
6253 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6254 "L<augtool(1)> C<clear> command."
6255 msgstr ""
6256
6257 #. type: =head2
6258 #: ../fish/guestfish-actions.pod:196
6259 msgid "aug-close"
6260 msgstr ""
6261
6262 #. type: verbatim
6263 #: ../fish/guestfish-actions.pod:198
6264 #, no-wrap
6265 msgid ""
6266 " aug-close\n"
6267 "\n"
6268 msgstr ""
6269
6270 #. type: textblock
6271 #: ../fish/guestfish-actions.pod:200
6272 msgid ""
6273 "Close the current Augeas handle and free up any resources used by it.  After "
6274 "calling this, you have to call L</aug-init> again before you can use any "
6275 "other Augeas functions."
6276 msgstr ""
6277
6278 #. type: =head2
6279 #: ../fish/guestfish-actions.pod:205
6280 msgid "aug-defnode"
6281 msgstr ""
6282
6283 #. type: verbatim
6284 #: ../fish/guestfish-actions.pod:207
6285 #, no-wrap
6286 msgid ""
6287 " aug-defnode name expr val\n"
6288 "\n"
6289 msgstr ""
6290
6291 #. type: textblock
6292 #: ../fish/guestfish-actions.pod:209 ../src/guestfs-actions.pod:325
6293 msgid ""
6294 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6295 msgstr ""
6296
6297 #. type: textblock
6298 #: ../fish/guestfish-actions.pod:212
6299 msgid ""
6300 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6301 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6302 "containing that single node."
6303 msgstr ""
6304
6305 #. type: textblock
6306 #: ../fish/guestfish-actions.pod:216 ../src/guestfs-actions.pod:332
6307 msgid ""
6308 "On success this returns a pair containing the number of nodes in the "
6309 "nodeset, and a boolean flag if a node was created."
6310 msgstr ""
6311
6312 #. type: =head2
6313 #: ../fish/guestfish-actions.pod:220
6314 msgid "aug-defvar"
6315 msgstr ""
6316
6317 #. type: verbatim
6318 #: ../fish/guestfish-actions.pod:222
6319 #, no-wrap
6320 msgid ""
6321 " aug-defvar name expr\n"
6322 "\n"
6323 msgstr ""
6324
6325 #. type: textblock
6326 #: ../fish/guestfish-actions.pod:224 ../src/guestfs-actions.pod:349
6327 msgid ""
6328 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6329 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6330 msgstr ""
6331
6332 #. type: textblock
6333 #: ../fish/guestfish-actions.pod:228 ../src/guestfs-actions.pod:353
6334 msgid ""
6335 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6336 "evaluates to something which is not a nodeset."
6337 msgstr ""
6338
6339 #. type: =head2
6340 #: ../fish/guestfish-actions.pod:231
6341 msgid "aug-get"
6342 msgstr ""
6343
6344 #. type: verbatim
6345 #: ../fish/guestfish-actions.pod:233
6346 #, no-wrap
6347 msgid ""
6348 " aug-get augpath\n"
6349 "\n"
6350 msgstr ""
6351
6352 #. type: textblock
6353 #: ../fish/guestfish-actions.pod:235 ../src/guestfs-actions.pod:366
6354 msgid ""
6355 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6356 "node, the C<value> is returned."
6357 msgstr ""
6358
6359 #. type: =head2
6360 #: ../fish/guestfish-actions.pod:238
6361 msgid "aug-init"
6362 msgstr ""
6363
6364 #. type: verbatim
6365 #: ../fish/guestfish-actions.pod:240
6366 #, no-wrap
6367 msgid ""
6368 " aug-init root flags\n"
6369 "\n"
6370 msgstr ""
6371
6372 #. type: textblock
6373 #: ../fish/guestfish-actions.pod:242 ../src/guestfs-actions.pod:381
6374 msgid ""
6375 "Create a new Augeas handle for editing configuration files.  If there was "
6376 "any previous Augeas handle associated with this guestfs session, then it is "
6377 "closed."
6378 msgstr ""
6379
6380 #. type: textblock
6381 #: ../fish/guestfish-actions.pod:246
6382 msgid "You must call this before using any other L</aug-*> commands."
6383 msgstr ""
6384
6385 #. type: textblock
6386 #: ../fish/guestfish-actions.pod:249 ../src/guestfs-actions.pod:388
6387 msgid ""
6388 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6389 msgstr ""
6390
6391 #. type: textblock
6392 #: ../fish/guestfish-actions.pod:252 ../src/guestfs-actions.pod:391
6393 msgid ""
6394 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6395 "logical I<or> of the following integers:"
6396 msgstr ""
6397
6398 #. type: =item
6399 #: ../fish/guestfish-actions.pod:258 ../src/guestfs-actions.pod:397
6400 msgid "C<AUG_SAVE_BACKUP> = 1"
6401 msgstr "C<AUG_SAVE_BACKUP> = 1"
6402
6403 #. type: textblock
6404 #: ../fish/guestfish-actions.pod:260 ../src/guestfs-actions.pod:399
6405 msgid "Keep the original file with a C<.augsave> extension."
6406 msgstr ""
6407
6408 #. type: =item
6409 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:401
6410 msgid "C<AUG_SAVE_NEWFILE> = 2"
6411 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6412
6413 #. type: textblock
6414 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:403
6415 msgid ""
6416 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6417 "original.  Overrides C<AUG_SAVE_BACKUP>."
6418 msgstr ""
6419
6420 #. type: =item
6421 #: ../fish/guestfish-actions.pod:267 ../src/guestfs-actions.pod:406
6422 msgid "C<AUG_TYPE_CHECK> = 4"
6423 msgstr "C<AUG_TYPE_CHECK> = 4"
6424
6425 #. type: textblock
6426 #: ../fish/guestfish-actions.pod:269 ../src/guestfs-actions.pod:408
6427 msgid "Typecheck lenses."
6428 msgstr ""
6429
6430 #. type: textblock
6431 #: ../fish/guestfish-actions.pod:271
6432 msgid ""
6433 "This option is only useful when debugging Augeas lenses.  Use of this option "
6434 "may require additional memory for the libguestfs appliance.  You may need to "
6435 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6436 msgstr ""
6437
6438 #. type: =item
6439 #: ../fish/guestfish-actions.pod:276 ../src/guestfs-actions.pod:415
6440 msgid "C<AUG_NO_STDINC> = 8"
6441 msgstr "C<AUG_NO_STDINC> = 8"
6442
6443 #. type: textblock
6444 #: ../fish/guestfish-actions.pod:278 ../src/guestfs-actions.pod:417
6445 msgid "Do not use standard load path for modules."
6446 msgstr ""
6447
6448 #. type: =item
6449 #: ../fish/guestfish-actions.pod:280 ../src/guestfs-actions.pod:419
6450 msgid "C<AUG_SAVE_NOOP> = 16"
6451 msgstr "C<AUG_SAVE_NOOP> = 16"
6452
6453 #. type: textblock
6454 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:421
6455 msgid "Make save a no-op, just record what would have been changed."
6456 msgstr ""
6457
6458 #. type: =item
6459 #: ../fish/guestfish-actions.pod:284 ../src/guestfs-actions.pod:423
6460 msgid "C<AUG_NO_LOAD> = 32"
6461 msgstr "C<AUG_NO_LOAD> = 32"
6462
6463 #. type: textblock
6464 #: ../fish/guestfish-actions.pod:286
6465 msgid "Do not load the tree in L</aug-init>."
6466 msgstr ""
6467
6468 #. type: textblock
6469 #: ../fish/guestfish-actions.pod:290
6470 msgid "To close the handle, you can call L</aug-close>."
6471 msgstr ""
6472
6473 #. type: textblock
6474 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:431
6475 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6476 msgstr ""
6477
6478 #. type: =head2
6479 #: ../fish/guestfish-actions.pod:294
6480 msgid "aug-insert"
6481 msgstr ""
6482
6483 #. type: verbatim
6484 #: ../fish/guestfish-actions.pod:296
6485 #, no-wrap
6486 msgid ""
6487 " aug-insert augpath label true|false\n"
6488 "\n"
6489 msgstr ""
6490
6491 #. type: textblock
6492 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:445
6493 msgid ""
6494 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6495 "or after C<path> (depending on the boolean flag C<before>)."
6496 msgstr ""
6497
6498 #. type: textblock
6499 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:449
6500 msgid ""
6501 "C<path> must match exactly one existing node in the tree, and C<label> must "
6502 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6503 msgstr ""
6504
6505 #. type: =head2
6506 #: ../fish/guestfish-actions.pod:306
6507 msgid "aug-load"
6508 msgstr ""
6509
6510 #. type: verbatim
6511 #: ../fish/guestfish-actions.pod:308
6512 #, no-wrap
6513 msgid ""
6514 " aug-load\n"
6515 "\n"
6516 msgstr ""
6517
6518 #. type: textblock
6519 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:462
6520 msgid "Load files into the tree."
6521 msgstr "Завантажити файли до ієрархії."
6522
6523 #. type: textblock
6524 #: ../fish/guestfish-actions.pod:312 ../src/guestfs-actions.pod:464
6525 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6526 msgstr ""
6527
6528 #. type: =head2
6529 #: ../fish/guestfish-actions.pod:315
6530 msgid "aug-ls"
6531 msgstr ""
6532
6533 #. type: verbatim
6534 #: ../fish/guestfish-actions.pod:317
6535 #, no-wrap
6536 msgid ""
6537 " aug-ls augpath\n"
6538 "\n"
6539 msgstr ""
6540
6541 #. type: textblock
6542 #: ../fish/guestfish-actions.pod:319
6543 msgid ""
6544 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6545 "resulting nodes into alphabetical order."
6546 msgstr ""
6547
6548 #. type: =head2
6549 #: ../fish/guestfish-actions.pod:322
6550 msgid "aug-match"
6551 msgstr ""
6552
6553 #. type: verbatim
6554 #: ../fish/guestfish-actions.pod:324
6555 #, no-wrap
6556 msgid ""
6557 " aug-match augpath\n"
6558 "\n"
6559 msgstr ""
6560
6561 #. type: textblock
6562 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:492
6563 msgid ""
6564 "Returns a list of paths which match the path expression C<path>.  The "
6565 "returned paths are sufficiently qualified so that they match exactly one "
6566 "node in the current tree."
6567 msgstr ""
6568
6569 #. type: =head2
6570 #: ../fish/guestfish-actions.pod:330
6571 msgid "aug-mv"
6572 msgstr ""
6573
6574 #. type: verbatim
6575 #: ../fish/guestfish-actions.pod:332
6576 #, no-wrap
6577 msgid ""
6578 " aug-mv src dest\n"
6579 "\n"
6580 msgstr ""
6581
6582 #. type: textblock
6583 #: ../fish/guestfish-actions.pod:334 ../src/guestfs-actions.pod:509
6584 msgid ""
6585 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6586 "C<dest> is overwritten if it exists."
6587 msgstr ""
6588
6589 #. type: =head2
6590 #: ../fish/guestfish-actions.pod:337
6591 msgid "aug-rm"
6592 msgstr ""
6593
6594 #. type: verbatim
6595 #: ../fish/guestfish-actions.pod:339
6596 #, no-wrap
6597 msgid ""
6598 " aug-rm augpath\n"
6599 "\n"
6600 msgstr ""
6601
6602 #. type: textblock
6603 #: ../fish/guestfish-actions.pod:341 ../src/guestfs-actions.pod:522
6604 msgid "Remove C<path> and all of its children."
6605 msgstr ""
6606
6607 #. type: textblock
6608 #: ../fish/guestfish-actions.pod:343 ../src/guestfs-actions.pod:524
6609 msgid "On success this returns the number of entries which were removed."
6610 msgstr ""
6611
6612 #. type: =head2
6613 #: ../fish/guestfish-actions.pod:345
6614 msgid "aug-save"
6615 msgstr ""
6616
6617 #. type: verbatim
6618 #: ../fish/guestfish-actions.pod:347
6619 #, no-wrap
6620 msgid ""
6621 " aug-save\n"
6622 "\n"
6623 msgstr ""
6624
6625 #. type: textblock
6626 #: ../fish/guestfish-actions.pod:349 ../src/guestfs-actions.pod:535
6627 msgid "This writes all pending changes to disk."
6628 msgstr ""
6629
6630 #. type: textblock
6631 #: ../fish/guestfish-actions.pod:351
6632 msgid ""
6633 "The flags which were passed to L</aug-init> affect exactly how files are "
6634 "saved."
6635 msgstr ""
6636
6637 #. type: =head2
6638 #: ../fish/guestfish-actions.pod:354
6639 msgid "aug-set"
6640 msgstr ""
6641
6642 #. type: verbatim
6643 #: ../fish/guestfish-actions.pod:356
6644 #, no-wrap
6645 msgid ""
6646 " aug-set augpath val\n"
6647 "\n"
6648 msgstr ""
6649
6650 #. type: textblock
6651 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:551
6652 msgid "Set the value associated with C<path> to C<val>."
6653 msgstr ""
6654
6655 #. type: textblock
6656 #: ../fish/guestfish-actions.pod:360
6657 msgid ""
6658 "In the Augeas API, it is possible to clear a node by setting the value to "
6659 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6660 "this call.  Instead you must use the L</aug-clear> call."
6661 msgstr ""
6662
6663 #. type: =head2
6664 #: ../fish/guestfish-actions.pod:365
6665 msgid "available"
6666 msgstr ""
6667
6668 #. type: verbatim
6669 #: ../fish/guestfish-actions.pod:367
6670 #, no-wrap
6671 msgid ""
6672 " available 'groups ...'\n"
6673 "\n"
6674 msgstr ""
6675
6676 #. type: textblock
6677 #: ../fish/guestfish-actions.pod:369 ../src/guestfs-actions.pod:568
6678 msgid ""
6679 "This command is used to check the availability of some groups of "
6680 "functionality in the appliance, which not all builds of the libguestfs "
6681 "appliance will be able to provide."
6682 msgstr ""
6683
6684 #. type: textblock
6685 #: ../fish/guestfish-actions.pod:373
6686 msgid ""
6687 "The libguestfs groups, and the functions that those groups correspond to, "
6688 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6689 "runtime by calling L</available-all-groups>."
6690 msgstr ""
6691
6692 #. type: textblock
6693 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:577
6694 msgid ""
6695 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6696 "\"]> would check for the availability of the Linux inotify functions and "
6697 "Augeas (configuration file editing) functions."
6698 msgstr ""
6699
6700 #. type: textblock
6701 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:582
6702 msgid "The command returns no error if I<all> requested groups are available."
6703 msgstr ""
6704
6705 #. type: textblock
6706 #: ../fish/guestfish-actions.pod:385 ../src/guestfs-actions.pod:584
6707 msgid ""
6708 "It fails with an error if one or more of the requested groups is unavailable "
6709 "in the appliance."
6710 msgstr ""
6711
6712 #. type: textblock
6713 #: ../fish/guestfish-actions.pod:388 ../src/guestfs-actions.pod:587
6714 msgid ""
6715 "If an unknown group name is included in the list of groups then an error is "
6716 "always returned."
6717 msgstr ""
6718
6719 #. type: textblock
6720 #: ../fish/guestfish-actions.pod:391 ../src/guestfs-actions.pod:590
6721 msgid "I<Notes:>"
6722 msgstr "I<Нотатки:>"
6723
6724 #. type: textblock
6725 #: ../fish/guestfish-actions.pod:397
6726 msgid "You must call L</launch> before calling this function."
6727 msgstr ""
6728
6729 #. type: textblock
6730 #: ../fish/guestfish-actions.pod:399 ../src/guestfs-actions.pod:598
6731 msgid ""
6732 "The reason is because we don't know what groups are supported by the "
6733 "appliance/daemon until it is running and can be queried."
6734 msgstr ""
6735
6736 #. type: textblock
6737 #: ../fish/guestfish-actions.pod:405 ../src/guestfs-actions.pod:604
6738 msgid ""
6739 "If a group of functions is available, this does not necessarily mean that "
6740 "they will work.  You still have to check for errors when calling individual "
6741 "API functions even if they are available."
6742 msgstr ""
6743
6744 #. type: textblock
6745 #: ../fish/guestfish-actions.pod:412 ../src/guestfs-actions.pod:611
6746 msgid ""
6747 "It is usually the job of distro packagers to build complete functionality "
6748 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6749 "with all requirements satisfied, will support everything."
6750 msgstr ""
6751
6752 #. type: textblock
6753 #: ../fish/guestfish-actions.pod:419
6754 msgid ""
6755 "This call was added in version C<1.0.80>.  In previous versions of "
6756 "libguestfs all you could do would be to speculatively execute a command to "
6757 "find out if the daemon implemented it.  See also L</version>."
6758 msgstr ""
6759
6760 #. type: =head2
6761 #: ../fish/guestfish-actions.pod:426
6762 msgid "available-all-groups"
6763 msgstr ""
6764
6765 #. type: verbatim
6766 #: ../fish/guestfish-actions.pod:428
6767 #, no-wrap
6768 msgid ""
6769 " available-all-groups\n"
6770 "\n"
6771 msgstr ""
6772
6773 #. type: textblock
6774 #: ../fish/guestfish-actions.pod:430
6775 msgid ""
6776 "This command returns a list of all optional groups that this daemon knows "
6777 "about.  Note this returns both supported and unsupported groups.  To find "
6778 "out which ones the daemon can actually support you have to call L</"
6779 "available> on each member of the returned list."
6780 msgstr ""
6781
6782 #. type: textblock
6783 #: ../fish/guestfish-actions.pod:436
6784 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6785 msgstr ""
6786
6787 #. type: =head2
6788 #: ../fish/guestfish-actions.pod:438
6789 msgid "base64-in"
6790 msgstr ""
6791
6792 #. type: verbatim
6793 #: ../fish/guestfish-actions.pod:440
6794 #, no-wrap
6795 msgid ""
6796 " base64-in (base64file|-) filename\n"
6797 "\n"
6798 msgstr ""
6799
6800 #. type: textblock
6801 #: ../fish/guestfish-actions.pod:442 ../src/guestfs-actions.pod:655
6802 msgid ""
6803 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6804 msgstr ""
6805
6806 #. type: textblock
6807 #: ../fish/guestfish-actions.pod:445 ../fish/guestfish-actions.pod:454
6808 #: ../fish/guestfish-actions.pod:703 ../fish/guestfish-actions.pod:787
6809 #: ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:979
6810 #: ../fish/guestfish-actions.pod:998 ../fish/guestfish-actions.pod:1372
6811 #: ../fish/guestfish-actions.pod:4836 ../fish/guestfish-actions.pod:4848
6812 #: ../fish/guestfish-actions.pod:4859 ../fish/guestfish-actions.pod:4870
6813 #: ../fish/guestfish-actions.pod:4922 ../fish/guestfish-actions.pod:4931
6814 #: ../fish/guestfish-actions.pod:4985 ../fish/guestfish-actions.pod:5008
6815 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6816 msgstr ""
6817
6818 #. type: =head2
6819 #: ../fish/guestfish-actions.pod:447
6820 msgid "base64-out"
6821 msgstr ""
6822
6823 #. type: verbatim
6824 #: ../fish/guestfish-actions.pod:449
6825 #, no-wrap
6826 msgid ""
6827 " base64-out filename (base64file|-)\n"
6828 "\n"
6829 msgstr ""
6830
6831 #. type: textblock
6832 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:669
6833 msgid ""
6834 "This command downloads the contents of C<filename>, writing it out to local "
6835 "file C<base64file> encoded as base64."
6836 msgstr ""
6837
6838 #. type: =head2
6839 #: ../fish/guestfish-actions.pod:456
6840 msgid "blockdev-flushbufs"
6841 msgstr ""
6842
6843 #. type: verbatim
6844 #: ../fish/guestfish-actions.pod:458
6845 #, no-wrap
6846 msgid ""
6847 " blockdev-flushbufs device\n"
6848 "\n"
6849 msgstr ""
6850
6851 #. type: textblock
6852 #: ../fish/guestfish-actions.pod:460 ../src/guestfs-actions.pod:682
6853 msgid ""
6854 "This tells the kernel to flush internal buffers associated with C<device>."
6855 msgstr ""
6856
6857 #. type: textblock
6858 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:474
6859 #: ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:493
6860 #: ../fish/guestfish-actions.pod:505 ../fish/guestfish-actions.pod:518
6861 #: ../fish/guestfish-actions.pod:526 ../fish/guestfish-actions.pod:537
6862 #: ../fish/guestfish-actions.pod:545 ../fish/guestfish-actions.pod:553
6863 #: ../src/guestfs-actions.pod:685 ../src/guestfs-actions.pod:702
6864 #: ../src/guestfs-actions.pod:717 ../src/guestfs-actions.pod:733
6865 #: ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:770
6866 #: ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802
6867 #: ../src/guestfs-actions.pod:816 ../src/guestfs-actions.pod:830
6868 msgid "This uses the L<blockdev(8)> command."
6869 msgstr ""
6870
6871 #. type: =head2
6872 #: ../fish/guestfish-actions.pod:465
6873 msgid "blockdev-getbsz"
6874 msgstr ""
6875
6876 #. type: verbatim
6877 #: ../fish/guestfish-actions.pod:467
6878 #, no-wrap
6879 msgid ""
6880 " blockdev-getbsz device\n"
6881 "\n"
6882 msgstr ""
6883
6884 #. type: textblock
6885 #: ../fish/guestfish-actions.pod:469 ../src/guestfs-actions.pod:697
6886 msgid "This returns the block size of a device."
6887 msgstr ""
6888
6889 #. type: textblock
6890 #: ../fish/guestfish-actions.pod:471 ../fish/guestfish-actions.pod:534
6891 #: ../src/guestfs-actions.pod:699 ../src/guestfs-actions.pod:799
6892 msgid ""
6893 "(Note this is different from both I<size in blocks> and I<filesystem block "
6894 "size>)."
6895 msgstr ""
6896
6897 #. type: =head2
6898 #: ../fish/guestfish-actions.pod:476
6899 msgid "blockdev-getro"
6900 msgstr ""
6901
6902 #. type: verbatim
6903 #: ../fish/guestfish-actions.pod:478
6904 #, no-wrap
6905 msgid ""
6906 " blockdev-getro device\n"
6907 "\n"
6908 msgstr ""
6909
6910 #. type: textblock
6911 #: ../fish/guestfish-actions.pod:480 ../src/guestfs-actions.pod:714
6912 msgid ""
6913 "Returns a boolean indicating if the block device is read-only (true if read-"
6914 "only, false if not)."
6915 msgstr ""
6916
6917 #. type: =head2
6918 #: ../fish/guestfish-actions.pod:485
6919 msgid "blockdev-getsize64"
6920 msgstr ""
6921
6922 #. type: verbatim
6923 #: ../fish/guestfish-actions.pod:487
6924 #, no-wrap
6925 msgid ""
6926 " blockdev-getsize64 device\n"
6927 "\n"
6928 msgstr ""
6929
6930 #. type: textblock
6931 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:729
6932 msgid "This returns the size of the device in bytes."
6933 msgstr ""
6934
6935 #. type: textblock
6936 #: ../fish/guestfish-actions.pod:491
6937 msgid "See also L</blockdev-getsz>."
6938 msgstr "Див. також L</blockdev-getsz>."
6939
6940 #. type: =head2
6941 #: ../fish/guestfish-actions.pod:495
6942 msgid "blockdev-getss"
6943 msgstr ""
6944
6945 #. type: verbatim
6946 #: ../fish/guestfish-actions.pod:497
6947 #, no-wrap
6948 msgid ""
6949 " blockdev-getss device\n"
6950 "\n"
6951 msgstr ""
6952
6953 #. type: textblock
6954 #: ../fish/guestfish-actions.pod:499 ../src/guestfs-actions.pod:745
6955 msgid ""
6956 "This returns the size of sectors on a block device.  Usually 512, but can be "
6957 "larger for modern devices."
6958 msgstr ""
6959
6960 #. type: textblock
6961 #: ../fish/guestfish-actions.pod:502
6962 msgid ""
6963 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6964 msgstr ""
6965
6966 #. type: =head2
6967 #: ../fish/guestfish-actions.pod:507
6968 msgid "blockdev-getsz"
6969 msgstr ""
6970
6971 #. type: verbatim
6972 #: ../fish/guestfish-actions.pod:509
6973 #, no-wrap
6974 msgid ""
6975 " blockdev-getsz device\n"
6976 "\n"
6977 msgstr ""
6978
6979 #. type: textblock
6980 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:763
6981 msgid ""
6982 "This returns the size of the device in units of 512-byte sectors (even if "
6983 "the sectorsize isn't 512 bytes ... weird)."
6984 msgstr ""
6985
6986 #. type: textblock
6987 #: ../fish/guestfish-actions.pod:514
6988 msgid ""
6989 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6990 "blockdev-getsize64> for the more useful I<size in bytes>."
6991 msgstr ""
6992
6993 #. type: =head2
6994 #: ../fish/guestfish-actions.pod:520
6995 msgid "blockdev-rereadpt"
6996 msgstr ""
6997
6998 #. type: verbatim
6999 #: ../fish/guestfish-actions.pod:522
7000 #, no-wrap
7001 msgid ""
7002 " blockdev-rereadpt device\n"
7003 "\n"
7004 msgstr ""
7005
7006 #. type: textblock
7007 #: ../fish/guestfish-actions.pod:524 ../src/guestfs-actions.pod:782
7008 msgid "Reread the partition table on C<device>."
7009 msgstr ""
7010
7011 #. type: =head2
7012 #: ../fish/guestfish-actions.pod:528
7013 msgid "blockdev-setbsz"
7014 msgstr ""
7015
7016 #. type: verbatim
7017 #: ../fish/guestfish-actions.pod:530
7018 #, no-wrap
7019 msgid ""
7020 " blockdev-setbsz device blocksize\n"
7021 "\n"
7022 msgstr ""
7023
7024 #. type: textblock
7025 #: ../fish/guestfish-actions.pod:532 ../src/guestfs-actions.pod:797
7026 msgid "This sets the block size of a device."
7027 msgstr ""
7028
7029 #. type: =head2
7030 #: ../fish/guestfish-actions.pod:539
7031 msgid "blockdev-setro"
7032 msgstr ""
7033
7034 #. type: verbatim
7035 #: ../fish/guestfish-actions.pod:541
7036 #, no-wrap
7037 msgid ""
7038 " blockdev-setro device\n"
7039 "\n"
7040 msgstr ""
7041
7042 #. type: textblock
7043 #: ../fish/guestfish-actions.pod:543 ../src/guestfs-actions.pod:814
7044 msgid "Sets the block device named C<device> to read-only."
7045 msgstr ""
7046
7047 #. type: =head2
7048 #: ../fish/guestfish-actions.pod:547
7049 msgid "blockdev-setrw"
7050 msgstr ""
7051
7052 #. type: verbatim
7053 #: ../fish/guestfish-actions.pod:549
7054 #, no-wrap
7055 msgid ""
7056 " blockdev-setrw device\n"
7057 "\n"
7058 msgstr ""
7059
7060 #. type: textblock
7061 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:828
7062 msgid "Sets the block device named C<device> to read-write."
7063 msgstr ""
7064
7065 #. type: =head2
7066 #: ../fish/guestfish-actions.pod:555
7067 msgid "btrfs-filesystem-resize"
7068 msgstr ""
7069
7070 #. type: verbatim
7071 #: ../fish/guestfish-actions.pod:557
7072 #, no-wrap
7073 msgid ""
7074 " btrfs-filesystem-resize mountpoint [size:..]\n"
7075 "\n"
7076 msgstr ""
7077
7078 #. type: textblock
7079 #: ../fish/guestfish-actions.pod:559 ../src/guestfs-actions.pod:850
7080 msgid "This command resizes a btrfs filesystem."
7081 msgstr ""
7082
7083 #. type: textblock
7084 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:852
7085 msgid ""
7086 "Note that unlike other resize calls, the filesystem has to be mounted and "
7087 "the parameter is the mountpoint not the device (this is a requirement of "
7088 "btrfs itself)."
7089 msgstr ""
7090
7091 #. type: textblock
7092 #: ../fish/guestfish-actions.pod:565 ../fish/guestfish-actions.pod:3569
7093 #: ../src/guestfs-actions.pod:856 ../src/guestfs-actions.pod:5591
7094 msgid "The optional parameters are:"
7095 msgstr ""
7096
7097 #. type: =item
7098 #: ../fish/guestfish-actions.pod:569 ../fish/guestfish-actions.pod:3573
7099 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5595
7100 msgid "C<size>"
7101 msgstr "C<розмір>"
7102
7103 #. type: textblock
7104 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:862
7105 msgid ""
7106 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7107 "resized to the maximum size."
7108 msgstr ""
7109
7110 #. type: textblock
7111 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:867
7112 msgid "See also L<btrfs(8)>."
7113 msgstr "Див. також L<btrfs(8)>."
7114
7115 #. type: =head2
7116 #: ../fish/guestfish-actions.pod:580
7117 msgid "case-sensitive-path"
7118 msgstr ""
7119
7120 #. type: verbatim
7121 #: ../fish/guestfish-actions.pod:582
7122 #, no-wrap
7123 msgid ""
7124 " case-sensitive-path path\n"
7125 "\n"
7126 msgstr ""
7127
7128 #. type: textblock
7129 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:901
7130 msgid ""
7131 "This can be used to resolve case insensitive paths on a filesystem which is "
7132 "case sensitive.  The use case is to resolve paths which you have read from "
7133 "Windows configuration files or the Windows Registry, to the true path."
7134 msgstr ""
7135
7136 #. type: textblock
7137 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:906
7138 msgid ""
7139 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7140 "(and probably others), which is that although the underlying filesystem is "
7141 "case-insensitive, the driver exports the filesystem to Linux as case-"
7142 "sensitive."
7143 msgstr ""
7144
7145 #. type: textblock
7146 #: ../fish/guestfish-actions.pod:594 ../src/guestfs-actions.pod:911
7147 msgid ""
7148 "One consequence of this is that special directories such as C<c:\\windows> "
7149 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7150 "precise details of how they were created.  In Windows itself this would not "
7151 "be a problem."
7152 msgstr ""
7153
7154 #. type: textblock
7155 #: ../fish/guestfish-actions.pod:600 ../src/guestfs-actions.pod:917
7156 msgid ""
7157 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7158 "#posixfilenames1>"
7159 msgstr ""
7160
7161 #. type: textblock
7162 #: ../fish/guestfish-actions.pod:603 ../src/guestfs-actions.pod:920
7163 msgid ""
7164 "This function resolves the true case of each element in the path and returns "
7165 "the case-sensitive path."
7166 msgstr ""
7167
7168 #. type: textblock
7169 #: ../fish/guestfish-actions.pod:606
7170 msgid ""
7171 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7172 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7173 "the directories were originally created under Windows)."
7174 msgstr ""
7175
7176 #. type: textblock
7177 #: ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:928
7178 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7179 msgstr ""
7180
7181 #. type: textblock
7182 #: ../fish/guestfish-actions.pod:614
7183 msgid "See also L</realpath>."
7184 msgstr "Див. також L</realpath>."
7185
7186 #. type: =head2
7187 #: ../fish/guestfish-actions.pod:616
7188 msgid "cat"
7189 msgstr "cat"
7190
7191 #. type: verbatim
7192 #: ../fish/guestfish-actions.pod:618
7193 #, no-wrap
7194 msgid ""
7195 " cat path\n"
7196 "\n"
7197 msgstr ""
7198 " cat шлях\n"
7199 "\n"
7200
7201 #. type: textblock
7202 #: ../fish/guestfish-actions.pod:620 ../fish/guestfish-actions.pod:4003
7203 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:6252
7204 msgid "Return the contents of the file named C<path>."
7205 msgstr ""
7206
7207 #. type: textblock
7208 #: ../fish/guestfish-actions.pod:622
7209 msgid ""
7210 "Note that this function cannot correctly handle binary files (specifically, "
7211 "files containing C<\\0> character which is treated as end of string).  For "
7212 "those you need to use the L</read-file> or L</download> functions which have "
7213 "a more complex interface."
7214 msgstr ""
7215
7216 #. type: textblock
7217 #: ../fish/guestfish-actions.pod:627 ../fish/guestfish-actions.pod:762
7218 #: ../fish/guestfish-actions.pod:774 ../fish/guestfish-actions.pod:1057
7219 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1134
7220 #: ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1336
7221 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:1659
7222 #: ../fish/guestfish-actions.pod:1709 ../fish/guestfish-actions.pod:1724
7223 #: ../fish/guestfish-actions.pod:1734 ../fish/guestfish-actions.pod:1753
7224 #: ../fish/guestfish-actions.pod:3873 ../fish/guestfish-actions.pod:3888
7225 #: ../fish/guestfish-actions.pod:3964 ../fish/guestfish-actions.pod:3981
7226 #: ../fish/guestfish-actions.pod:3996 ../fish/guestfish-actions.pod:4677
7227 #: ../fish/guestfish-actions.pod:4723 ../fish/guestfish-actions.pod:4808
7228 #: ../fish/guestfish-actions.pod:4823 ../fish/guestfish-actions.pod:5229
7229 #: ../fish/guestfish-actions.pod:5241 ../fish/guestfish-actions.pod:5259
7230 #: ../fish/guestfish-actions.pod:5276 ../fish/guestfish-actions.pod:5286
7231 #: ../fish/guestfish-actions.pod:5343 ../fish/guestfish-actions.pod:5353
7232 #: ../fish/guestfish-actions.pod:5382 ../fish/guestfish-actions.pod:5392
7233 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1133
7234 #: ../src/guestfs-actions.pod:1153 ../src/guestfs-actions.pod:1800
7235 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1922
7236 #: ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:2187
7237 #: ../src/guestfs-actions.pod:2669 ../src/guestfs-actions.pod:2688
7238 #: ../src/guestfs-actions.pod:2753 ../src/guestfs-actions.pod:2777
7239 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:2823
7240 #: ../src/guestfs-actions.pod:6034 ../src/guestfs-actions.pod:6060
7241 #: ../src/guestfs-actions.pod:6191 ../src/guestfs-actions.pod:6217
7242 #: ../src/guestfs-actions.pod:6241 ../src/guestfs-actions.pod:7208
7243 #: ../src/guestfs-actions.pod:7263 ../src/guestfs-actions.pod:7409
7244 #: ../src/guestfs-actions.pod:7433 ../src/guestfs-actions.pod:8098
7245 #: ../src/guestfs-actions.pod:8118 ../src/guestfs-actions.pod:8151
7246 #: ../src/guestfs-actions.pod:8170 ../src/guestfs-actions.pod:8189
7247 #: ../src/guestfs-actions.pod:8283 ../src/guestfs-actions.pod:8302
7248 #: ../src/guestfs-actions.pod:8348 ../src/guestfs-actions.pod:8367
7249 msgid ""
7250 "Because of the message protocol, there is a transfer limit of somewhere "
7251 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7252 msgstr ""
7253
7254 #. type: =head2
7255 #: ../fish/guestfish-actions.pod:630
7256 msgid "checksum"
7257 msgstr "checksum"
7258
7259 #. type: verbatim
7260 #: ../fish/guestfish-actions.pod:632
7261 #, no-wrap
7262 msgid ""
7263 " checksum csumtype path\n"
7264 "\n"
7265 msgstr ""
7266
7267 #. type: textblock
7268 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:966
7269 msgid ""
7270 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7271 msgstr ""
7272
7273 #. type: textblock
7274 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:969
7275 msgid ""
7276 "The type of checksum to compute is given by the C<csumtype> parameter which "
7277 "must have one of the following values:"
7278 msgstr ""
7279
7280 #. type: =item
7281 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:974
7282 msgid "C<crc>"
7283 msgstr "C<crc>"
7284
7285 #. type: textblock
7286 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:976
7287 msgid ""
7288 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7289 "C<cksum> command."
7290 msgstr ""
7291
7292 #. type: =item
7293 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:979
7294 msgid "C<md5>"
7295 msgstr "C<md5>"
7296
7297 #. type: textblock
7298 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:981
7299 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7300 msgstr ""
7301
7302 #. type: =item
7303 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:983
7304 msgid "C<sha1>"
7305 msgstr "C<sha1>"
7306
7307 #. type: textblock
7308 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:985
7309 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7310 msgstr ""
7311
7312 #. type: =item
7313 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:987
7314 msgid "C<sha224>"
7315 msgstr "C<sha224>"
7316
7317 #. type: textblock
7318 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:989
7319 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7320 msgstr ""
7321
7322 #. type: =item
7323 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:991
7324 msgid "C<sha256>"
7325 msgstr "C<sha256>"
7326
7327 #. type: textblock
7328 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:993
7329 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7330 msgstr ""
7331
7332 #. type: =item
7333 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:995
7334 msgid "C<sha384>"
7335 msgstr "C<sha384>"
7336
7337 #. type: textblock
7338 #: ../fish/guestfish-actions.pod:665 ../src/guestfs-actions.pod:997
7339 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7340 msgstr ""
7341
7342 #. type: =item
7343 #: ../fish/guestfish-actions.pod:667 ../src/guestfs-actions.pod:999
7344 msgid "C<sha512>"
7345 msgstr "C<sha512>"
7346
7347 #. type: textblock
7348 #: ../fish/guestfish-actions.pod:669 ../src/guestfs-actions.pod:1001
7349 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7350 msgstr ""
7351
7352 #. type: textblock
7353 #: ../fish/guestfish-actions.pod:673 ../src/guestfs-actions.pod:1005
7354 msgid "The checksum is returned as a printable string."
7355 msgstr ""
7356
7357 #. type: textblock
7358 #: ../fish/guestfish-actions.pod:675
7359 msgid "To get the checksum for a device, use L</checksum-device>."
7360 msgstr ""
7361
7362 #. type: textblock
7363 #: ../fish/guestfish-actions.pod:677
7364 msgid "To get the checksums for many files, use L</checksums-out>."
7365 msgstr ""
7366
7367 #. type: =head2
7368 #: ../fish/guestfish-actions.pod:679
7369 msgid "checksum-device"
7370 msgstr "checksum-device"
7371
7372 #. type: verbatim
7373 #: ../fish/guestfish-actions.pod:681
7374 #, no-wrap
7375 msgid ""
7376 " checksum-device csumtype device\n"
7377 "\n"
7378 msgstr ""
7379
7380 #. type: textblock
7381 #: ../fish/guestfish-actions.pod:683
7382 msgid ""
7383 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7384 "device named C<device>.  For the types of checksums supported see the L</"
7385 "checksum> command."
7386 msgstr ""
7387
7388 #. type: =head2
7389 #: ../fish/guestfish-actions.pod:687
7390 msgid "checksums-out"
7391 msgstr ""
7392
7393 #. type: verbatim
7394 #: ../fish/guestfish-actions.pod:689
7395 #, no-wrap
7396 msgid ""
7397 " checksums-out csumtype directory (sumsfile|-)\n"
7398 "\n"
7399 msgstr ""
7400
7401 #. type: textblock
7402 #: ../fish/guestfish-actions.pod:691 ../src/guestfs-actions.pod:1040
7403 msgid ""
7404 "This command computes the checksums of all regular files in C<directory> and "
7405 "then emits a list of those checksums to the local output file C<sumsfile>."
7406 msgstr ""
7407
7408 #. type: textblock
7409 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1044
7410 msgid ""
7411 "This can be used for verifying the integrity of a virtual machine.  However "
7412 "to be properly secure you should pay attention to the output of the checksum "
7413 "command (it uses the ones from GNU coreutils).  In particular when the "
7414 "filename is not printable, coreutils uses a special backslash syntax.  For "
7415 "more information, see the GNU coreutils info file."
7416 msgstr ""
7417
7418 #. type: =head2
7419 #: ../fish/guestfish-actions.pod:705
7420 msgid "chmod"
7421 msgstr "chmod"
7422
7423 #. type: verbatim
7424 #: ../fish/guestfish-actions.pod:707
7425 #, no-wrap
7426 msgid ""
7427 " chmod mode path\n"
7428 "\n"
7429 msgstr ""
7430
7431 #. type: textblock
7432 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1063
7433 msgid ""
7434 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7435 "supported."
7436 msgstr ""
7437
7438 #. type: textblock
7439 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1066
7440 msgid ""
7441 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7442 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7443 "C<700>."
7444 msgstr ""
7445
7446 #. type: textblock
7447 #: ../fish/guestfish-actions.pod:716 ../fish/guestfish-actions.pod:3222
7448 #: ../fish/guestfish-actions.pod:3361 ../fish/guestfish-actions.pod:3371
7449 #: ../fish/guestfish-actions.pod:3381 ../src/guestfs-actions.pod:1070
7450 #: ../src/guestfs-actions.pod:4998 ../src/guestfs-actions.pod:5207
7451 #: ../src/guestfs-actions.pod:5226 ../src/guestfs-actions.pod:5245
7452 msgid "The mode actually set is affected by the umask."
7453 msgstr ""
7454
7455 #. type: =head2
7456 #: ../fish/guestfish-actions.pod:718
7457 msgid "chown"
7458 msgstr "chown"
7459
7460 #. type: verbatim
7461 #: ../fish/guestfish-actions.pod:720
7462 #, no-wrap
7463 msgid ""
7464 " chown owner group path\n"
7465 "\n"
7466 msgstr ""
7467
7468 #. type: textblock
7469 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1084
7470 msgid "Change the file owner to C<owner> and group to C<group>."
7471 msgstr ""
7472
7473 #. type: textblock
7474 #: ../fish/guestfish-actions.pod:724 ../fish/guestfish-actions.pod:2657
7475 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:4069
7476 msgid ""
7477 "Only numeric uid and gid are supported.  If you want to use names, you will "
7478 "need to locate and parse the password file yourself (Augeas support makes "
7479 "this relatively easy)."
7480 msgstr ""
7481
7482 #. type: =head2
7483 #: ../fish/guestfish-actions.pod:728
7484 msgid "command"
7485 msgstr "command"
7486
7487 #. type: verbatim
7488 #: ../fish/guestfish-actions.pod:730
7489 #, no-wrap
7490 msgid ""
7491 " command 'arguments ...'\n"
7492 "\n"
7493 msgstr ""
7494 " command 'параметри...'\n"
7495 "\n"
7496
7497 #. type: textblock
7498 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1100
7499 msgid ""
7500 "This call runs a command from the guest filesystem.  The filesystem must be "
7501 "mounted, and must contain a compatible operating system (ie. something "
7502 "Linux, with the same or compatible processor architecture)."
7503 msgstr ""
7504
7505 #. type: textblock
7506 #: ../fish/guestfish-actions.pod:737
7507 msgid ""
7508 "The single parameter is an argv-style list of arguments.  The first element "
7509 "is the name of the program to run.  Subsequent elements are parameters.  The "
7510 "list must be non-empty (ie. must contain a program name).  Note that the "
7511 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7512 msgstr ""
7513
7514 #. type: textblock
7515 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1112
7516 msgid "The return value is anything printed to I<stdout> by the command."
7517 msgstr ""
7518
7519 #. type: textblock
7520 #: ../fish/guestfish-actions.pod:747 ../src/guestfs-actions.pod:1115
7521 msgid ""
7522 "If the command returns a non-zero exit status, then this function returns an "
7523 "error message.  The error message string is the content of I<stderr> from "
7524 "the command."
7525 msgstr ""
7526
7527 #. type: textblock
7528 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1119
7529 msgid ""
7530 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7531 "bin>.  If you require a program from another location, you should provide "
7532 "the full path in the first parameter."
7533 msgstr ""
7534
7535 #. type: textblock
7536 #: ../fish/guestfish-actions.pod:756 ../src/guestfs-actions.pod:1124
7537 msgid ""
7538 "Shared libraries and data files required by the program must be available on "
7539 "filesystems which are mounted in the correct places.  It is the caller's "
7540 "responsibility to ensure all filesystems that are needed are mounted at the "
7541 "right locations."
7542 msgstr ""
7543
7544 #. type: =head2
7545 #: ../fish/guestfish-actions.pod:765
7546 msgid "command-lines"
7547 msgstr ""
7548
7549 #. type: verbatim
7550 #: ../fish/guestfish-actions.pod:767
7551 #, no-wrap
7552 msgid ""
7553 " command-lines 'arguments ...'\n"
7554 "\n"
7555 msgstr ""
7556
7557 #. type: textblock
7558 #: ../fish/guestfish-actions.pod:769
7559 msgid ""
7560 "This is the same as L</command>, but splits the result into a list of lines."
7561 msgstr ""
7562
7563 #. type: textblock
7564 #: ../fish/guestfish-actions.pod:772
7565 msgid "See also: L</sh-lines>"
7566 msgstr "Див. також L</sh-lines>"
7567
7568 #. type: =head2
7569 #: ../fish/guestfish-actions.pod:777
7570 msgid "compress-device-out"
7571 msgstr ""
7572
7573 #. type: verbatim
7574 #: ../fish/guestfish-actions.pod:779
7575 #, no-wrap
7576 msgid ""
7577 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7578 "\n"
7579 msgstr ""
7580
7581 #. type: textblock
7582 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1174
7583 msgid ""
7584 "This command compresses C<device> and writes it out to the local file "
7585 "C<zdevice>."
7586 msgstr ""
7587
7588 #. type: textblock
7589 #: ../fish/guestfish-actions.pod:784
7590 msgid ""
7591 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7592 "compress-out>."
7593 msgstr ""
7594
7595 #. type: =head2
7596 #: ../fish/guestfish-actions.pod:791
7597 msgid "compress-out"
7598 msgstr ""
7599
7600 #. type: verbatim
7601 #: ../fish/guestfish-actions.pod:793
7602 #, no-wrap
7603 msgid ""
7604 " compress-out ctype file (zfile|-) [level:..]\n"
7605 "\n"
7606 msgstr ""
7607
7608 #. type: textblock
7609 #: ../fish/guestfish-actions.pod:795 ../src/guestfs-actions.pod:1226
7610 msgid ""
7611 "This command compresses C<file> and writes it out to the local file C<zfile>."
7612 msgstr ""
7613
7614 #. type: textblock
7615 #: ../fish/guestfish-actions.pod:798 ../src/guestfs-actions.pod:1229
7616 msgid ""
7617 "The compression program used is controlled by the C<ctype> parameter.  "
7618 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7619 "Some compression types may not be supported by particular builds of "
7620 "libguestfs, in which case you will get an error containing the substring "
7621 "\"not supported\"."
7622 msgstr ""
7623
7624 #. type: textblock
7625 #: ../fish/guestfish-actions.pod:804 ../src/guestfs-actions.pod:1235
7626 msgid ""
7627 "The optional C<level> parameter controls compression level.  The meaning and "
7628 "default for this parameter depends on the compression program being used."
7629 msgstr ""
7630
7631 #. type: =head2
7632 #: ../fish/guestfish-actions.pod:812
7633 msgid "config"
7634 msgstr ""
7635
7636 #. type: verbatim
7637 #: ../fish/guestfish-actions.pod:814
7638 #, no-wrap
7639 msgid ""
7640 " config qemuparam qemuvalue\n"
7641 "\n"
7642 msgstr ""
7643
7644 #. type: textblock
7645 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1276
7646 msgid ""
7647 "This can be used to add arbitrary qemu command line parameters of the form "
7648 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7649 "setting some parameters which would interfere with parameters that we use."
7650 msgstr ""
7651
7652 #. type: textblock
7653 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1281
7654 msgid "The first character of C<param> string must be a C<-> (dash)."
7655 msgstr ""
7656
7657 #. type: textblock
7658 #: ../fish/guestfish-actions.pod:823 ../src/guestfs-actions.pod:1283
7659 msgid "C<value> can be NULL."
7660 msgstr ""
7661
7662 #. type: =head2
7663 #: ../fish/guestfish-actions.pod:825
7664 #, fuzzy
7665 #| msgid ""
7666 #| " zero-device device\n"
7667 #| "\n"
7668 msgid "copy-device-to-device"
7669 msgstr ""
7670 " zero-device пристрій\n"
7671 "\n"
7672
7673 #. type: verbatim
7674 #: ../fish/guestfish-actions.pod:827
7675 #, no-wrap
7676 msgid ""
7677 " copy-device-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7678 "\n"
7679 msgstr ""
7680
7681 #. type: textblock
7682 #: ../fish/guestfish-actions.pod:829
7683 msgid ""
7684 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
7685 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
7686 "(device|file) to a destination (device|file)."
7687 msgstr ""
7688
7689 #. type: textblock
7690 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1313
7691 msgid ""
7692 "Partial copies can be made since you can specify optionally the source "
7693 "offset, destination offset and size to copy.  These values are all specified "
7694 "in bytes.  If not given, the offsets both default to zero, and the size "
7695 "defaults to copying as much as possible until we hit the end of the source."
7696 msgstr ""
7697
7698 #. type: textblock
7699 #: ../fish/guestfish-actions.pod:842 ../src/guestfs-actions.pod:1319
7700 msgid ""
7701 "The source and destination may be the same object.  However overlapping "
7702 "regions may not be copied correctly."
7703 msgstr ""
7704
7705 #. type: textblock
7706 #: ../fish/guestfish-actions.pod:845 ../src/guestfs-actions.pod:1322
7707 msgid ""
7708 "If the destination is a file, it is created if required.  If the destination "
7709 "file is not large enough, it is extended."
7710 msgstr ""
7711
7712 #. type: =head2
7713 #: ../fish/guestfish-actions.pod:850
7714 msgid "copy-device-to-file"
7715 msgstr ""
7716
7717 #. type: verbatim
7718 #: ../fish/guestfish-actions.pod:852
7719 #, no-wrap
7720 msgid ""
7721 " copy-device-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7722 "\n"
7723 msgstr ""
7724
7725 #. type: textblock
7726 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:863
7727 #: ../fish/guestfish-actions.pod:872
7728 msgid "See L</copy-device-to-device> for a general overview of this call."
7729 msgstr ""
7730
7731 #. type: =head2
7732 #: ../fish/guestfish-actions.pod:859
7733 #, fuzzy
7734 #| msgid "pwrite-device"
7735 msgid "copy-file-to-device"
7736 msgstr "pwrite-device"
7737
7738 #. type: verbatim
7739 #: ../fish/guestfish-actions.pod:861
7740 #, no-wrap
7741 msgid ""
7742 " copy-file-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7743 "\n"
7744 msgstr ""
7745
7746 #. type: =head2
7747 #: ../fish/guestfish-actions.pod:868
7748 msgid "copy-file-to-file"
7749 msgstr ""
7750
7751 #. type: verbatim
7752 #: ../fish/guestfish-actions.pod:870
7753 #, no-wrap
7754 msgid ""
7755 " copy-file-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7756 "\n"
7757 msgstr ""
7758
7759 #. type: textblock
7760 #: ../fish/guestfish-actions.pod:875
7761 msgid ""
7762 "This is B<not> the function you want for copying files.  This is for copying "
7763 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7764 "file copying and moving functions."
7765 msgstr ""
7766
7767 #. type: =head2
7768 #: ../fish/guestfish-actions.pod:882
7769 msgid "copy-size"
7770 msgstr ""
7771
7772 #. type: verbatim
7773 #: ../fish/guestfish-actions.pod:884
7774 #, no-wrap
7775 msgid ""
7776 " copy-size src dest size\n"
7777 "\n"
7778 msgstr ""
7779
7780 #. type: textblock
7781 #: ../fish/guestfish-actions.pod:886 ../src/guestfs-actions.pod:1529
7782 msgid ""
7783 "This command copies exactly C<size> bytes from one source device or file "
7784 "C<src> to another destination device or file C<dest>."
7785 msgstr ""
7786
7787 #. type: textblock
7788 #: ../fish/guestfish-actions.pod:889 ../src/guestfs-actions.pod:1532
7789 msgid ""
7790 "Note this will fail if the source is too short or if the destination is not "
7791 "large enough."
7792 msgstr ""
7793
7794 #. type: textblock
7795 #: ../fish/guestfish-actions.pod:892 ../fish/guestfish-actions.pod:927
7796 msgid ""
7797 "I<This function is deprecated.> In new code, use the L</"
7798 "copy_device_to_device> call instead."
7799 msgstr ""
7800
7801 #. type: =head2
7802 #: ../fish/guestfish-actions.pod:899
7803 msgid "cp"
7804 msgstr "cp"
7805
7806 #. type: verbatim
7807 #: ../fish/guestfish-actions.pod:901
7808 #, no-wrap
7809 msgid ""
7810 " cp src dest\n"
7811 "\n"
7812 msgstr ""
7813
7814 #. type: textblock
7815 #: ../fish/guestfish-actions.pod:903 ../src/guestfs-actions.pod:1551
7816 msgid ""
7817 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7818 "destination filename or destination directory."
7819 msgstr ""
7820
7821 #. type: =head2
7822 #: ../fish/guestfish-actions.pod:906
7823 msgid "cp-a"
7824 msgstr "cp-a"
7825
7826 #. type: verbatim
7827 #: ../fish/guestfish-actions.pod:908
7828 #, no-wrap
7829 msgid ""
7830 " cp-a src dest\n"
7831 "\n"
7832 msgstr ""
7833
7834 #. type: textblock
7835 #: ../fish/guestfish-actions.pod:910 ../src/guestfs-actions.pod:1565
7836 msgid ""
7837 "This copies a file or directory from C<src> to C<dest> recursively using the "
7838 "C<cp -a> command."
7839 msgstr ""
7840
7841 #. type: =head2
7842 #: ../fish/guestfish-actions.pod:913
7843 msgid "dd"
7844 msgstr "dd"
7845
7846 #. type: verbatim
7847 #: ../fish/guestfish-actions.pod:915
7848 #, no-wrap
7849 msgid ""
7850 " dd src dest\n"
7851 "\n"
7852 msgstr ""
7853
7854 #. type: textblock
7855 #: ../fish/guestfish-actions.pod:917 ../src/guestfs-actions.pod:1586
7856 msgid ""
7857 "This command copies from one source device or file C<src> to another "
7858 "destination device or file C<dest>.  Normally you would use this to copy to "
7859 "or from a device or partition, for example to duplicate a filesystem."
7860 msgstr ""
7861
7862 #. type: textblock
7863 #: ../fish/guestfish-actions.pod:922
7864 msgid ""
7865 "If the destination is a device, it must be as large or larger than the "
7866 "source file or device, otherwise the copy will fail.  This command cannot do "
7867 "partial copies (see L</copy-device-to-device>)."
7868 msgstr ""
7869
7870 #. type: =head2
7871 #: ../fish/guestfish-actions.pod:934
7872 msgid "df"
7873 msgstr "df"
7874
7875 #. type: verbatim
7876 #: ../fish/guestfish-actions.pod:936
7877 #, no-wrap
7878 msgid ""
7879 " df\n"
7880 "\n"
7881 msgstr ""
7882 " df\n"
7883 "\n"
7884
7885 #. type: textblock
7886 #: ../fish/guestfish-actions.pod:938 ../src/guestfs-actions.pod:1605
7887 msgid "This command runs the C<df> command to report disk space used."
7888 msgstr ""
7889
7890 #. type: textblock
7891 #: ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:951
7892 msgid ""
7893 "This command is mostly useful for interactive sessions.  It is I<not> "
7894 "intended that you try to parse the output string.  Use L</statvfs> from "
7895 "programs."
7896 msgstr ""
7897
7898 #. type: =head2
7899 #: ../fish/guestfish-actions.pod:944
7900 msgid "df-h"
7901 msgstr "df-h"
7902
7903 #. type: verbatim
7904 #: ../fish/guestfish-actions.pod:946
7905 #, no-wrap
7906 msgid ""
7907 " df-h\n"
7908 "\n"
7909 msgstr ""
7910 " df-h\n"
7911 "\n"
7912
7913 #. type: textblock
7914 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1621
7915 msgid ""
7916 "This command runs the C<df -h> command to report disk space used in human-"
7917 "readable format."
7918 msgstr ""
7919
7920 #. type: =head2
7921 #: ../fish/guestfish-actions.pod:955
7922 msgid "dmesg"
7923 msgstr "dmesg"
7924
7925 #. type: verbatim
7926 #: ../fish/guestfish-actions.pod:957
7927 #, no-wrap
7928 msgid ""
7929 " dmesg\n"
7930 "\n"
7931 msgstr ""
7932 " dmesg\n"
7933 "\n"
7934
7935 #. type: textblock
7936 #: ../fish/guestfish-actions.pod:959 ../src/guestfs-actions.pod:1638
7937 msgid ""
7938 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7939 "This is sometimes useful for extended debugging of problems."
7940 msgstr ""
7941
7942 #. type: textblock
7943 #: ../fish/guestfish-actions.pod:963
7944 msgid ""
7945 "Another way to get the same information is to enable verbose messages with "
7946 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7947 "before running the program."
7948 msgstr ""
7949
7950 #. type: =head2
7951 #: ../fish/guestfish-actions.pod:968
7952 msgid "download"
7953 msgstr "download"
7954
7955 #. type: verbatim
7956 #: ../fish/guestfish-actions.pod:970
7957 #, no-wrap
7958 msgid ""
7959 " download remotefilename (filename|-)\n"
7960 "\n"
7961 msgstr ""
7962
7963 #. type: textblock
7964 #: ../fish/guestfish-actions.pod:972 ../fish/guestfish-actions.pod:985
7965 #: ../src/guestfs-actions.pod:1659 ../src/guestfs-actions.pod:1684
7966 msgid ""
7967 "Download file C<remotefilename> and save it as C<filename> on the local "
7968 "machine."
7969 msgstr ""
7970
7971 #. type: textblock
7972 #: ../fish/guestfish-actions.pod:975 ../fish/guestfish-actions.pod:4981
7973 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:7668
7974 msgid "C<filename> can also be a named pipe."
7975 msgstr ""
7976
7977 #. type: textblock
7978 #: ../fish/guestfish-actions.pod:977
7979 msgid "See also L</upload>, L</cat>."
7980 msgstr ""
7981
7982 #. type: =head2
7983 #: ../fish/guestfish-actions.pod:981
7984 msgid "download-offset"
7985 msgstr "download-offset"
7986
7987 #. type: verbatim
7988 #: ../fish/guestfish-actions.pod:983
7989 #, no-wrap
7990 msgid ""
7991 " download-offset remotefilename (filename|-) offset size\n"
7992 "\n"
7993 msgstr ""
7994
7995 #. type: textblock
7996 #: ../fish/guestfish-actions.pod:988 ../src/guestfs-actions.pod:1687
7997 msgid ""
7998 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7999 "region must be within the file or device)."
8000 msgstr ""
8001
8002 #. type: textblock
8003 #: ../fish/guestfish-actions.pod:991
8004 msgid ""
8005 "Note that there is no limit on the amount of data that can be downloaded "
8006 "with this call, unlike with L</pread>, and this call always reads the full "
8007 "amount unless an error occurs."
8008 msgstr ""
8009
8010 #. type: textblock
8011 #: ../fish/guestfish-actions.pod:996
8012 msgid "See also L</download>, L</pread>."
8013 msgstr ""
8014
8015 #. type: =head2
8016 #: ../fish/guestfish-actions.pod:1000
8017 msgid "drop-caches"
8018 msgstr ""
8019
8020 #. type: verbatim
8021 #: ../fish/guestfish-actions.pod:1002
8022 #, no-wrap
8023 msgid ""
8024 " drop-caches whattodrop\n"
8025 "\n"
8026 msgstr ""
8027
8028 #. type: textblock
8029 #: ../fish/guestfish-actions.pod:1004 ../src/guestfs-actions.pod:1712
8030 msgid ""
8031 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8032 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8033 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8034 msgstr ""
8035
8036 #. type: textblock
8037 #: ../fish/guestfish-actions.pod:1009 ../src/guestfs-actions.pod:1717
8038 msgid "Setting C<whattodrop> to 3 should drop everything."
8039 msgstr ""
8040
8041 #. type: textblock
8042 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1719
8043 msgid ""
8044 "This automatically calls L<sync(2)> before the operation, so that the "
8045 "maximum guest memory is freed."
8046 msgstr ""
8047
8048 #. type: =head2
8049 #: ../fish/guestfish-actions.pod:1014
8050 msgid "du"
8051 msgstr "du"
8052
8053 #. type: verbatim
8054 #: ../fish/guestfish-actions.pod:1016
8055 #, no-wrap
8056 msgid ""
8057 " du path\n"
8058 "\n"
8059 msgstr ""
8060 " du шлях\n"
8061 "\n"
8062
8063 #. type: textblock
8064 #: ../fish/guestfish-actions.pod:1018 ../src/guestfs-actions.pod:1732
8065 msgid ""
8066 "This command runs the C<du -s> command to estimate file space usage for "
8067 "C<path>."
8068 msgstr ""
8069
8070 #. type: textblock
8071 #: ../fish/guestfish-actions.pod:1021 ../src/guestfs-actions.pod:1735
8072 msgid ""
8073 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8074 "estimate includes the contents of the directory and all subdirectories "
8075 "(recursively)."
8076 msgstr ""
8077
8078 #. type: textblock
8079 #: ../fish/guestfish-actions.pod:1025 ../src/guestfs-actions.pod:1739
8080 msgid ""
8081 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8082 msgstr ""
8083
8084 #. type: =head2
8085 #: ../fish/guestfish-actions.pod:1028
8086 msgid "e2fsck-f"
8087 msgstr "e2fsck-f"
8088
8089 #. type: verbatim
8090 #: ../fish/guestfish-actions.pod:1030
8091 #, no-wrap
8092 msgid ""
8093 " e2fsck-f device\n"
8094 "\n"
8095 msgstr ""
8096
8097 #. type: textblock
8098 #: ../fish/guestfish-actions.pod:1032 ../src/guestfs-actions.pod:1757
8099 msgid ""
8100 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8101 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
8102 "clean (I<-f>)."
8103 msgstr ""
8104
8105 #. type: textblock
8106 #: ../fish/guestfish-actions.pod:1036
8107 msgid ""
8108 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
8109 "should use L</fsck>."
8110 msgstr ""
8111
8112 #. type: =head2
8113 #: ../fish/guestfish-actions.pod:1039
8114 msgid "echo-daemon"
8115 msgstr ""
8116
8117 #. type: verbatim
8118 #: ../fish/guestfish-actions.pod:1041
8119 #, no-wrap
8120 msgid ""
8121 " echo-daemon 'words ...'\n"
8122 "\n"
8123 msgstr ""
8124
8125 #. type: textblock
8126 #: ../fish/guestfish-actions.pod:1043 ../src/guestfs-actions.pod:1774
8127 msgid ""
8128 "This command concatenates the list of C<words> passed with single spaces "
8129 "between them and returns the resulting string."
8130 msgstr ""
8131
8132 #. type: textblock
8133 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1777
8134 msgid "You can use this command to test the connection through to the daemon."
8135 msgstr ""
8136
8137 #. type: textblock
8138 #: ../fish/guestfish-actions.pod:1048
8139 msgid "See also L</ping-daemon>."
8140 msgstr "Див. також L</ping-daemon>."
8141
8142 #. type: =head2
8143 #: ../fish/guestfish-actions.pod:1050
8144 msgid "egrep"
8145 msgstr "egrep"
8146
8147 #. type: verbatim
8148 #: ../fish/guestfish-actions.pod:1052
8149 #, no-wrap
8150 msgid ""
8151 " egrep regex path\n"
8152 "\n"
8153 msgstr ""
8154
8155 #. type: textblock
8156 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1793
8157 msgid ""
8158 "This calls the external C<egrep> program and returns the matching lines."
8159 msgstr ""
8160
8161 #. type: =head2
8162 #: ../fish/guestfish-actions.pod:1060
8163 msgid "egrepi"
8164 msgstr "egrepi"
8165
8166 #. type: verbatim
8167 #: ../fish/guestfish-actions.pod:1062
8168 #, no-wrap
8169 msgid ""
8170 " egrepi regex path\n"
8171 "\n"
8172 msgstr ""
8173
8174 #. type: textblock
8175 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1812
8176 msgid ""
8177 "This calls the external C<egrep -i> program and returns the matching lines."
8178 msgstr ""
8179
8180 #. type: =head2
8181 #: ../fish/guestfish-actions.pod:1070
8182 msgid "equal"
8183 msgstr "equal"
8184
8185 #. type: verbatim
8186 #: ../fish/guestfish-actions.pod:1072
8187 #, no-wrap
8188 msgid ""
8189 " equal file1 file2\n"
8190 "\n"
8191 msgstr ""
8192 " equal файл1 файл2\n"
8193 "\n"
8194
8195 #. type: textblock
8196 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1831
8197 msgid ""
8198 "This compares the two files C<file1> and C<file2> and returns true if their "
8199 "content is exactly equal, or false otherwise."
8200 msgstr ""
8201
8202 #. type: textblock
8203 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1834
8204 msgid "The external L<cmp(1)> program is used for the comparison."
8205 msgstr ""
8206
8207 #. type: =head2
8208 #: ../fish/guestfish-actions.pod:1079
8209 msgid "exists"
8210 msgstr "exists"
8211
8212 #. type: verbatim
8213 #: ../fish/guestfish-actions.pod:1081
8214 #, no-wrap
8215 msgid ""
8216 " exists path\n"
8217 "\n"
8218 msgstr ""
8219 " exists шлях\n"
8220 "\n"
8221
8222 #. type: textblock
8223 #: ../fish/guestfish-actions.pod:1083 ../src/guestfs-actions.pod:1846
8224 msgid ""
8225 "This returns C<true> if and only if there is a file, directory (or anything) "
8226 "with the given C<path> name."
8227 msgstr ""
8228
8229 #. type: textblock
8230 #: ../fish/guestfish-actions.pod:1086
8231 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8232 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8233
8234 #. type: =head2
8235 #: ../fish/guestfish-actions.pod:1088
8236 msgid "fallocate"
8237 msgstr "fallocate"
8238
8239 #. type: verbatim
8240 #: ../fish/guestfish-actions.pod:1090
8241 #, no-wrap
8242 msgid ""
8243 " fallocate path len\n"
8244 "\n"
8245 msgstr ""
8246 " fallocate шлях довжина\n"
8247 "\n"
8248
8249 #. type: textblock
8250 #: ../fish/guestfish-actions.pod:1092 ../fish/guestfish-actions.pod:1111
8251 #: ../src/guestfs-actions.pod:1869 ../src/guestfs-actions.pod:1888
8252 msgid ""
8253 "This command preallocates a file (containing zero bytes) named C<path> of "
8254 "size C<len> bytes.  If the file exists already, it is overwritten."
8255 msgstr ""
8256
8257 #. type: textblock
8258 #: ../fish/guestfish-actions.pod:1096 ../src/guestfs-actions.pod:1873
8259 msgid ""
8260 "Do not confuse this with the guestfish-specific C<alloc> command which "
8261 "allocates a file in the host and attaches it as a device."
8262 msgstr ""
8263
8264 #. type: textblock
8265 #: ../fish/guestfish-actions.pod:1100
8266 msgid ""
8267 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8268 "instead."
8269 msgstr ""
8270
8271 #. type: =head2
8272 #: ../fish/guestfish-actions.pod:1107
8273 msgid "fallocate64"
8274 msgstr "fallocate64"
8275
8276 #. type: verbatim
8277 #: ../fish/guestfish-actions.pod:1109
8278 #, no-wrap
8279 msgid ""
8280 " fallocate64 path len\n"
8281 "\n"
8282 msgstr ""
8283 " fallocate64 шлях довжина\n"
8284 "\n"
8285
8286 #. type: textblock
8287 #: ../fish/guestfish-actions.pod:1115
8288 msgid ""
8289 "Note that this call allocates disk blocks for the file.  To create a sparse "
8290 "file use L</truncate-size> instead."
8291 msgstr ""
8292
8293 #. type: textblock
8294 #: ../fish/guestfish-actions.pod:1118
8295 msgid ""
8296 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8297 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8298 "maximum size of files created through that call to 1GB."
8299 msgstr ""
8300
8301 #. type: textblock
8302 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1900
8303 msgid ""
8304 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8305 "commands which create a file in the host and attach it as a device."
8306 msgstr ""
8307
8308 #. type: =head2
8309 #: ../fish/guestfish-actions.pod:1127
8310 msgid "fgrep"
8311 msgstr "fgrep"
8312
8313 #. type: verbatim
8314 #: ../fish/guestfish-actions.pod:1129
8315 #, no-wrap
8316 msgid ""
8317 " fgrep pattern path\n"
8318 "\n"
8319 msgstr ""
8320 " fgrep шаблон шлях\n"
8321 "\n"
8322
8323 #. type: textblock
8324 #: ../fish/guestfish-actions.pod:1131 ../src/guestfs-actions.pod:1915
8325 msgid ""
8326 "This calls the external C<fgrep> program and returns the matching lines."
8327 msgstr ""
8328
8329 #. type: =head2
8330 #: ../fish/guestfish-actions.pod:1137
8331 msgid "fgrepi"
8332 msgstr "fgrepi"
8333
8334 #. type: verbatim
8335 #: ../fish/guestfish-actions.pod:1139
8336 #, no-wrap
8337 msgid ""
8338 " fgrepi pattern path\n"
8339 "\n"
8340 msgstr ""
8341 " fgrepi шаблон шлях\n"
8342 "\n"
8343
8344 #. type: textblock
8345 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1934
8346 msgid ""
8347 "This calls the external C<fgrep -i> program and returns the matching lines."
8348 msgstr ""
8349
8350 #. type: =head2
8351 #: ../fish/guestfish-actions.pod:1147
8352 msgid "file"
8353 msgstr "file"
8354
8355 #. type: verbatim
8356 #: ../fish/guestfish-actions.pod:1149
8357 #, no-wrap
8358 msgid ""
8359 " file path\n"
8360 "\n"
8361 msgstr ""
8362 " file шлях\n"
8363 "\n"
8364
8365 #. type: textblock
8366 #: ../fish/guestfish-actions.pod:1151 ../src/guestfs-actions.pod:1952
8367 msgid ""
8368 "This call uses the standard L<file(1)> command to determine the type or "
8369 "contents of the file."
8370 msgstr ""
8371
8372 #. type: textblock
8373 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1955
8374 msgid ""
8375 "This call will also transparently look inside various types of compressed "
8376 "file."
8377 msgstr ""
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1958
8381 msgid ""
8382 "The exact command which runs is C<file -zb path>.  Note in particular that "
8383 "the filename is not prepended to the output (the I<-b> option)."
8384 msgstr ""
8385
8386 #. type: textblock
8387 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1962
8388 msgid ""
8389 "The output depends on the output of the underlying L<file(1)> command and it "
8390 "can change in future in ways beyond our control.  In other words, the output "
8391 "is not guaranteed by the ABI."
8392 msgstr ""
8393
8394 #. type: textblock
8395 #: ../fish/guestfish-actions.pod:1165
8396 msgid ""
8397 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8398 "(etc), L</is-zero>."
8399 msgstr ""
8400
8401 #. type: =head2
8402 #: ../fish/guestfish-actions.pod:1168
8403 msgid "file-architecture"
8404 msgstr "file-architecture"
8405
8406 #. type: verbatim
8407 #: ../fish/guestfish-actions.pod:1170
8408 #, no-wrap
8409 msgid ""
8410 " file-architecture filename\n"
8411 "\n"
8412 msgstr ""
8413 " file-architecture назва_файла\n"
8414 "\n"
8415
8416 #. type: textblock
8417 #: ../fish/guestfish-actions.pod:1172 ../src/guestfs-actions.pod:1980
8418 msgid ""
8419 "This detects the architecture of the binary C<filename>, and returns it if "
8420 "known."
8421 msgstr ""
8422
8423 #. type: textblock
8424 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1983
8425 msgid "Currently defined architectures are:"
8426 msgstr ""
8427
8428 #. type: =item
8429 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1987
8430 msgid "\"i386\""
8431 msgstr "\"i386\""
8432
8433 #. type: textblock
8434 #: ../fish/guestfish-actions.pod:1181 ../src/guestfs-actions.pod:1989
8435 msgid ""
8436 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8437 "irrespective of the precise processor requirements of the binary."
8438 msgstr ""
8439
8440 #. type: =item
8441 #: ../fish/guestfish-actions.pod:1184 ../src/guestfs-actions.pod:1992
8442 msgid "\"x86_64\""
8443 msgstr "\"x86_64\""
8444
8445 #. type: textblock
8446 #: ../fish/guestfish-actions.pod:1186 ../src/guestfs-actions.pod:1994
8447 msgid "64 bit x86-64."
8448 msgstr ""
8449
8450 #. type: =item
8451 #: ../fish/guestfish-actions.pod:1188 ../src/guestfs-actions.pod:1996
8452 msgid "\"sparc\""
8453 msgstr ""
8454
8455 #. type: textblock
8456 #: ../fish/guestfish-actions.pod:1190 ../src/guestfs-actions.pod:1998
8457 msgid "32 bit SPARC."
8458 msgstr ""
8459
8460 #. type: =item
8461 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:2000
8462 msgid "\"sparc64\""
8463 msgstr ""
8464
8465 #. type: textblock
8466 #: ../fish/guestfish-actions.pod:1194 ../src/guestfs-actions.pod:2002
8467 msgid "64 bit SPARC V9 and above."
8468 msgstr ""
8469
8470 #. type: =item
8471 #: ../fish/guestfish-actions.pod:1196 ../src/guestfs-actions.pod:2004
8472 msgid "\"ia64\""
8473 msgstr "\"ia64\""
8474
8475 #. type: textblock
8476 #: ../fish/guestfish-actions.pod:1198 ../src/guestfs-actions.pod:2006
8477 msgid "Intel Itanium."
8478 msgstr "Intel Itanium."
8479
8480 #. type: =item
8481 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2008
8482 msgid "\"ppc\""
8483 msgstr ""
8484
8485 #. type: textblock
8486 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:2010
8487 msgid "32 bit Power PC."
8488 msgstr ""
8489
8490 #. type: =item
8491 #: ../fish/guestfish-actions.pod:1204 ../src/guestfs-actions.pod:2012
8492 msgid "\"ppc64\""
8493 msgstr ""
8494
8495 #. type: textblock
8496 #: ../fish/guestfish-actions.pod:1206 ../src/guestfs-actions.pod:2014
8497 msgid "64 bit Power PC."
8498 msgstr ""
8499
8500 #. type: textblock
8501 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:2018
8502 msgid "Libguestfs may return other architecture strings in future."
8503 msgstr ""
8504
8505 #. type: textblock
8506 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:2020
8507 msgid "The function works on at least the following types of files:"
8508 msgstr ""
8509
8510 #. type: textblock
8511 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2026
8512 msgid "many types of Un*x and Linux binary"
8513 msgstr ""
8514
8515 #. type: textblock
8516 #: ../fish/guestfish-actions.pod:1222 ../src/guestfs-actions.pod:2030
8517 msgid "many types of Un*x and Linux shared library"
8518 msgstr ""
8519
8520 #. type: textblock
8521 #: ../fish/guestfish-actions.pod:1226 ../src/guestfs-actions.pod:2034
8522 msgid "Windows Win32 and Win64 binaries"
8523 msgstr ""
8524
8525 #. type: textblock
8526 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2038
8527 msgid "Windows Win32 and Win64 DLLs"
8528 msgstr ""
8529
8530 #. type: textblock
8531 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2040
8532 msgid "Win32 binaries and DLLs return C<i386>."
8533 msgstr ""
8534
8535 #. type: textblock
8536 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2042
8537 msgid "Win64 binaries and DLLs return C<x86_64>."
8538 msgstr ""
8539
8540 #. type: textblock
8541 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2046
8542 msgid "Linux kernel modules"
8543 msgstr ""
8544
8545 #. type: textblock
8546 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2050
8547 msgid "Linux new-style initrd images"
8548 msgstr ""
8549
8550 #. type: textblock
8551 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2054
8552 msgid "some non-x86 Linux vmlinuz kernels"
8553 msgstr ""
8554
8555 #. type: textblock
8556 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2058
8557 msgid "What it can't do currently:"
8558 msgstr ""
8559
8560 #. type: textblock
8561 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2064
8562 msgid "static libraries (libfoo.a)"
8563 msgstr ""
8564
8565 #. type: textblock
8566 #: ../fish/guestfish-actions.pod:1260 ../src/guestfs-actions.pod:2068
8567 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8568 msgstr ""
8569
8570 #. type: textblock
8571 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2072
8572 msgid "x86 Linux vmlinuz kernels"
8573 msgstr ""
8574
8575 #. type: textblock
8576 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:2074
8577 msgid ""
8578 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8579 "compressed code, and are horribly hard to unpack.  If you want to find the "
8580 "architecture of a kernel, use the architecture of the associated initrd or "
8581 "kernel module(s) instead."
8582 msgstr ""
8583
8584 #. type: =head2
8585 #: ../fish/guestfish-actions.pod:1273
8586 msgid "filesize"
8587 msgstr "filesize"
8588
8589 #. type: verbatim
8590 #: ../fish/guestfish-actions.pod:1275
8591 #, no-wrap
8592 msgid ""
8593 " filesize file\n"
8594 "\n"
8595 msgstr ""
8596 " filesize файл\n"
8597 "\n"
8598
8599 #. type: textblock
8600 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:2092
8601 msgid "This command returns the size of C<file> in bytes."
8602 msgstr ""
8603
8604 #. type: textblock
8605 #: ../fish/guestfish-actions.pod:1279
8606 msgid ""
8607 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8608 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8609 msgstr ""
8610
8611 #. type: =head2
8612 #: ../fish/guestfish-actions.pod:1283
8613 msgid "fill"
8614 msgstr "fill"
8615
8616 #. type: verbatim
8617 #: ../fish/guestfish-actions.pod:1285
8618 #, no-wrap
8619 msgid ""
8620 " fill c len path\n"
8621 "\n"
8622 msgstr ""
8623
8624 #. type: textblock
8625 #: ../fish/guestfish-actions.pod:1287 ../src/guestfs-actions.pod:2110
8626 msgid ""
8627 "This command creates a new file called C<path>.  The initial content of the "
8628 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8629 "[0..255]>."
8630 msgstr ""
8631
8632 #. type: textblock
8633 #: ../fish/guestfish-actions.pod:1291
8634 msgid ""
8635 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8636 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8637 "L</fill-pattern>."
8638 msgstr ""
8639
8640 #. type: =head2
8641 #: ../fish/guestfish-actions.pod:1296
8642 msgid "fill-pattern"
8643 msgstr "fill-pattern"
8644
8645 #. type: verbatim
8646 #: ../fish/guestfish-actions.pod:1298
8647 #, no-wrap
8648 msgid ""
8649 " fill-pattern pattern len path\n"
8650 "\n"
8651 msgstr ""
8652
8653 #. type: textblock
8654 #: ../fish/guestfish-actions.pod:1300
8655 msgid ""
8656 "This function is like L</fill> except that it creates a new file of length "
8657 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8658 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8659 "bytes."
8660 msgstr ""
8661
8662 #. type: =head2
8663 #: ../fish/guestfish-actions.pod:1305
8664 msgid "find"
8665 msgstr "find"
8666
8667 #. type: verbatim
8668 #: ../fish/guestfish-actions.pod:1307
8669 #, no-wrap
8670 msgid ""
8671 " find directory\n"
8672 "\n"
8673 msgstr ""
8674 " find каталог\n"
8675 "\n"
8676
8677 #. type: textblock
8678 #: ../fish/guestfish-actions.pod:1309 ../src/guestfs-actions.pod:2156
8679 msgid ""
8680 "This command lists out all files and directories, recursively, starting at "
8681 "C<directory>.  It is essentially equivalent to running the shell command "
8682 "C<find directory -print> but some post-processing happens on the output, "
8683 "described below."
8684 msgstr ""
8685
8686 #. type: textblock
8687 #: ../fish/guestfish-actions.pod:1314 ../src/guestfs-actions.pod:2161
8688 msgid ""
8689 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8690 "structure was:"
8691 msgstr ""
8692
8693 #. type: verbatim
8694 #: ../fish/guestfish-actions.pod:1317 ../src/guestfs-actions.pod:2164
8695 #, no-wrap
8696 msgid ""
8697 " /tmp/a\n"
8698 " /tmp/b\n"
8699 " /tmp/c/d\n"
8700 "\n"
8701 msgstr ""
8702
8703 #. type: textblock
8704 #: ../fish/guestfish-actions.pod:1321
8705 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8706 msgstr ""
8707
8708 #. type: verbatim
8709 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2171
8710 #, no-wrap
8711 msgid ""
8712 " a\n"
8713 " b\n"
8714 " c\n"
8715 " c/d\n"
8716 "\n"
8717 msgstr ""
8718
8719 #. type: textblock
8720 #: ../fish/guestfish-actions.pod:1329 ../src/guestfs-actions.pod:2176
8721 msgid "If C<directory> is not a directory, then this command returns an error."
8722 msgstr ""
8723
8724 #. type: textblock
8725 #: ../fish/guestfish-actions.pod:1332 ../src/guestfs-actions.pod:2179
8726 msgid "The returned list is sorted."
8727 msgstr ""
8728
8729 #. type: textblock
8730 #: ../fish/guestfish-actions.pod:1334
8731 msgid "See also L</find0>."
8732 msgstr "Див. також L</find0>."
8733
8734 #. type: =head2
8735 #: ../fish/guestfish-actions.pod:1339
8736 msgid "find0"
8737 msgstr "find0"
8738
8739 #. type: verbatim
8740 #: ../fish/guestfish-actions.pod:1341
8741 #, no-wrap
8742 msgid ""
8743 " find0 directory (files|-)\n"
8744 "\n"
8745 msgstr ""
8746 " find0 каталог (файли|-)\n"
8747 "\n"
8748
8749 #. type: textblock
8750 #: ../fish/guestfish-actions.pod:1343 ../src/guestfs-actions.pod:2199
8751 msgid ""
8752 "This command lists out all files and directories, recursively, starting at "
8753 "C<directory>, placing the resulting list in the external file called "
8754 "C<files>."
8755 msgstr ""
8756
8757 #. type: textblock
8758 #: ../fish/guestfish-actions.pod:1347
8759 msgid ""
8760 "This command works the same way as L</find> with the following exceptions:"
8761 msgstr ""
8762
8763 #. type: textblock
8764 #: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod:2210
8765 msgid "The resulting list is written to an external file."
8766 msgstr ""
8767
8768 #. type: textblock
8769 #: ../fish/guestfish-actions.pod:1358 ../src/guestfs-actions.pod:2214
8770 msgid ""
8771 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8772 "L<find(1)> option I<-print0>."
8773 msgstr ""
8774
8775 #. type: textblock
8776 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
8777 msgid "This command is not limited in the number of names that it can return."
8778 msgstr ""
8779
8780 #. type: textblock
8781 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2224
8782 msgid "The result list is not sorted."
8783 msgstr ""
8784
8785 #. type: =head2
8786 #: ../fish/guestfish-actions.pod:1374
8787 msgid "findfs-label"
8788 msgstr "findfs-label"
8789
8790 #. type: verbatim
8791 #: ../fish/guestfish-actions.pod:1376
8792 #, no-wrap
8793 msgid ""
8794 " findfs-label label\n"
8795 "\n"
8796 msgstr ""
8797 " findfs-label мітка\n"
8798 "\n"
8799
8800 #. type: textblock
8801 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2238
8802 msgid ""
8803 "This command searches the filesystems and returns the one which has the "
8804 "given label.  An error is returned if no such filesystem can be found."
8805 msgstr ""
8806
8807 #. type: textblock
8808 #: ../fish/guestfish-actions.pod:1382
8809 msgid "To find the label of a filesystem, use L</vfs-label>."
8810 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8811
8812 #. type: =head2
8813 #: ../fish/guestfish-actions.pod:1384
8814 msgid "findfs-uuid"
8815 msgstr "findfs-uuid"
8816
8817 #. type: verbatim
8818 #: ../fish/guestfish-actions.pod:1386
8819 #, no-wrap
8820 msgid ""
8821 " findfs-uuid uuid\n"
8822 "\n"
8823 msgstr ""
8824 " findfs-uuid uuid\n"
8825 "\n"
8826
8827 #. type: textblock
8828 #: ../fish/guestfish-actions.pod:1388 ../src/guestfs-actions.pod:2255
8829 msgid ""
8830 "This command searches the filesystems and returns the one which has the "
8831 "given UUID.  An error is returned if no such filesystem can be found."
8832 msgstr ""
8833
8834 #. type: textblock
8835 #: ../fish/guestfish-actions.pod:1392
8836 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8837 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8838
8839 #. type: =head2
8840 #: ../fish/guestfish-actions.pod:1394
8841 msgid "fsck"
8842 msgstr "fsck"
8843
8844 #. type: verbatim
8845 #: ../fish/guestfish-actions.pod:1396
8846 #, no-wrap
8847 msgid ""
8848 " fsck fstype device\n"
8849 "\n"
8850 msgstr ""
8851 " fsck тип_файлової_системи пристрій\n"
8852 "\n"
8853
8854 #. type: textblock
8855 #: ../fish/guestfish-actions.pod:1398 ../src/guestfs-actions.pod:2273
8856 msgid ""
8857 "This runs the filesystem checker (fsck) on C<device> which should have "
8858 "filesystem type C<fstype>."
8859 msgstr ""
8860
8861 #. type: textblock
8862 #: ../fish/guestfish-actions.pod:1401 ../src/guestfs-actions.pod:2276
8863 msgid ""
8864 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8865 "codes from C<fsck>."
8866 msgstr ""
8867
8868 #. type: textblock
8869 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2285
8870 msgid "Multiple status codes can be summed together."
8871 msgstr ""
8872
8873 #. type: textblock
8874 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2289
8875 msgid ""
8876 "A non-zero return code can mean \"success\", for example if errors have been "
8877 "corrected on the filesystem."
8878 msgstr ""
8879
8880 #. type: textblock
8881 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2294
8882 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8883 msgstr ""
8884
8885 #. type: textblock
8886 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2299
8887 msgid ""
8888 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8889 msgstr ""
8890
8891 #. type: =head2
8892 #: ../fish/guestfish-actions.pod:1426
8893 msgid "get-append"
8894 msgstr "get-append"
8895
8896 #. type: verbatim
8897 #: ../fish/guestfish-actions.pod:1428
8898 #, no-wrap
8899 msgid ""
8900 " get-append\n"
8901 "\n"
8902 msgstr ""
8903 " get-append\n"
8904 "\n"
8905
8906 #. type: textblock
8907 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2310
8908 msgid ""
8909 "Return the additional kernel options which are added to the guest kernel "
8910 "command line."
8911 msgstr ""
8912
8913 #. type: textblock
8914 #: ../fish/guestfish-actions.pod:1433 ../src/guestfs-actions.pod:2313
8915 msgid "If C<NULL> then no options are added."
8916 msgstr ""
8917
8918 #. type: =head2
8919 #: ../fish/guestfish-actions.pod:1435
8920 msgid "get-attach-method"
8921 msgstr "get-attach-method"
8922
8923 #. type: verbatim
8924 #: ../fish/guestfish-actions.pod:1437
8925 #, no-wrap
8926 msgid ""
8927 " get-attach-method\n"
8928 "\n"
8929 msgstr ""
8930 " get-attach-method\n"
8931 "\n"
8932
8933 #. type: textblock
8934 #: ../fish/guestfish-actions.pod:1439
8935 msgid "Return the current attach method.  See L</set-attach-method>."
8936 msgstr ""
8937
8938 #. type: =head2
8939 #: ../fish/guestfish-actions.pod:1441
8940 msgid "get-autosync"
8941 msgstr "get-autosync"
8942
8943 #. type: verbatim
8944 #: ../fish/guestfish-actions.pod:1443
8945 #, no-wrap
8946 msgid ""
8947 " get-autosync\n"
8948 "\n"
8949 msgstr ""
8950 " get-autosync\n"
8951 "\n"
8952
8953 #. type: textblock
8954 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2338
8955 msgid "Get the autosync flag."
8956 msgstr ""
8957
8958 #. type: =head2
8959 #: ../fish/guestfish-actions.pod:1447
8960 msgid "get-direct"
8961 msgstr "get-direct"
8962
8963 #. type: verbatim
8964 #: ../fish/guestfish-actions.pod:1449
8965 #, no-wrap
8966 msgid ""
8967 " get-direct\n"
8968 "\n"
8969 msgstr ""
8970 " get-direct\n"
8971 "\n"
8972
8973 #. type: textblock
8974 #: ../fish/guestfish-actions.pod:1451 ../src/guestfs-actions.pod:2349
8975 msgid "Return the direct appliance mode flag."
8976 msgstr ""
8977
8978 #. type: =head2
8979 #: ../fish/guestfish-actions.pod:1453
8980 msgid "get-e2label"
8981 msgstr "get-e2label"
8982
8983 #. type: verbatim
8984 #: ../fish/guestfish-actions.pod:1455
8985 #, no-wrap
8986 msgid ""
8987 " get-e2label device\n"
8988 "\n"
8989 msgstr ""
8990 " get-e2label пристрій\n"
8991 "\n"
8992
8993 #. type: textblock
8994 #: ../fish/guestfish-actions.pod:1457 ../src/guestfs-actions.pod:2368
8995 msgid ""
8996 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8997 msgstr ""
8998
8999 #. type: textblock
9000 #: ../fish/guestfish-actions.pod:1460
9001 msgid ""
9002 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9003 "instead."
9004 msgstr ""
9005
9006 #. type: =head2
9007 #: ../fish/guestfish-actions.pod:1467
9008 msgid "get-e2uuid"
9009 msgstr "get-e2uuid"
9010
9011 #. type: verbatim
9012 #: ../fish/guestfish-actions.pod:1469
9013 #, no-wrap
9014 msgid ""
9015 " get-e2uuid device\n"
9016 "\n"
9017 msgstr ""
9018 " get-e2uuid пристрій\n"
9019 "\n"
9020
9021 #. type: textblock
9022 #: ../fish/guestfish-actions.pod:1471 ../src/guestfs-actions.pod:2389
9023 msgid ""
9024 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9025 msgstr ""
9026
9027 #. type: textblock
9028 #: ../fish/guestfish-actions.pod:1474
9029 msgid ""
9030 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9031 "instead."
9032 msgstr ""
9033
9034 #. type: =head2
9035 #: ../fish/guestfish-actions.pod:1481
9036 msgid "get-memsize"
9037 msgstr "get-memsize"
9038
9039 #. type: verbatim
9040 #: ../fish/guestfish-actions.pod:1483
9041 #, no-wrap
9042 msgid ""
9043 " get-memsize\n"
9044 "\n"
9045 msgstr ""
9046 " get-memsize\n"
9047 "\n"
9048
9049 #. type: textblock
9050 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2402
9051 msgid ""
9052 "This gets the memory size in megabytes allocated to the qemu subprocess."
9053 msgstr ""
9054
9055 #. type: textblock
9056 #: ../fish/guestfish-actions.pod:1488
9057 msgid ""
9058 "If L</set-memsize> was not called on this handle, and if "
9059 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9060 "value for memsize."
9061 msgstr ""
9062
9063 #. type: textblock
9064 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:1549
9065 #: ../fish/guestfish-actions.pod:4329 ../fish/guestfish-actions.pod:4431
9066 #: ../src/guestfs-actions.pod:2409 ../src/guestfs-actions.pod:2501
9067 #: ../src/guestfs-actions.pod:6713 ../src/guestfs-actions.pod:6839
9068 msgid ""
9069 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9070 msgstr ""
9071
9072 #. type: =head2
9073 #: ../fish/guestfish-actions.pod:1495
9074 msgid "get-network"
9075 msgstr "get-network"
9076
9077 #. type: verbatim
9078 #: ../fish/guestfish-actions.pod:1497
9079 #, no-wrap
9080 msgid ""
9081 " get-network\n"
9082 "\n"
9083 msgstr ""
9084 " get-network\n"
9085 "\n"
9086
9087 #. type: textblock
9088 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2421
9089 msgid "This returns the enable network flag."
9090 msgstr ""
9091
9092 #. type: =head2
9093 #: ../fish/guestfish-actions.pod:1501
9094 msgid "get-path"
9095 msgstr "get-path"
9096
9097 #. type: verbatim
9098 #: ../fish/guestfish-actions.pod:1503
9099 #, no-wrap
9100 msgid ""
9101 " get-path\n"
9102 "\n"
9103 msgstr ""
9104 " get-path\n"
9105 "\n"
9106
9107 #. type: textblock
9108 #: ../fish/guestfish-actions.pod:1505 ../src/guestfs-actions.pod:2432
9109 msgid "Return the current search path."
9110 msgstr ""
9111
9112 #. type: textblock
9113 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2434
9114 msgid ""
9115 "This is always non-NULL.  If it wasn't set already, then this will return "
9116 "the default path."
9117 msgstr ""
9118
9119 #. type: =head2
9120 #: ../fish/guestfish-actions.pod:1510
9121 msgid "get-pgroup"
9122 msgstr ""
9123
9124 #. type: verbatim
9125 #: ../fish/guestfish-actions.pod:1512
9126 #, no-wrap
9127 msgid ""
9128 " get-pgroup\n"
9129 "\n"
9130 msgstr ""
9131
9132 #. type: textblock
9133 #: ../fish/guestfish-actions.pod:1514 ../src/guestfs-actions.pod:2447
9134 msgid "This returns the process group flag."
9135 msgstr ""
9136
9137 #. type: =head2
9138 #: ../fish/guestfish-actions.pod:1516
9139 msgid "get-pid"
9140 msgstr "get-pid"
9141
9142 #. type: =head2
9143 #: ../fish/guestfish-actions.pod:1518
9144 msgid "pid"
9145 msgstr "PID"
9146
9147 #. type: verbatim
9148 #: ../fish/guestfish-actions.pod:1520
9149 #, no-wrap
9150 msgid ""
9151 " get-pid\n"
9152 "\n"
9153 msgstr ""
9154 " get-pid\n"
9155 "\n"
9156
9157 #. type: textblock
9158 #: ../fish/guestfish-actions.pod:1522 ../src/guestfs-actions.pod:2458
9159 msgid ""
9160 "Return the process ID of the qemu subprocess.  If there is no qemu "
9161 "subprocess, then this will return an error."
9162 msgstr ""
9163
9164 #. type: textblock
9165 #: ../fish/guestfish-actions.pod:1525 ../src/guestfs-actions.pod:2461
9166 msgid "This is an internal call used for debugging and testing."
9167 msgstr ""
9168
9169 #. type: =head2
9170 #: ../fish/guestfish-actions.pod:1527
9171 msgid "get-qemu"
9172 msgstr "get-qemu"
9173
9174 #. type: verbatim
9175 #: ../fish/guestfish-actions.pod:1529
9176 #, no-wrap
9177 msgid ""
9178 " get-qemu\n"
9179 "\n"
9180 msgstr ""
9181 " get-qemu\n"
9182 "\n"
9183
9184 #. type: textblock
9185 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2472
9186 msgid "Return the current qemu binary."
9187 msgstr ""
9188
9189 #. type: textblock
9190 #: ../fish/guestfish-actions.pod:1533 ../src/guestfs-actions.pod:2474
9191 msgid ""
9192 "This is always non-NULL.  If it wasn't set already, then this will return "
9193 "the default qemu binary name."
9194 msgstr ""
9195
9196 #. type: =head2
9197 #: ../fish/guestfish-actions.pod:1536
9198 msgid "get-recovery-proc"
9199 msgstr "get-recovery-proc"
9200
9201 #. type: verbatim
9202 #: ../fish/guestfish-actions.pod:1538
9203 #, no-wrap
9204 msgid ""
9205 " get-recovery-proc\n"
9206 "\n"
9207 msgstr ""
9208 " get-recovery-proc\n"
9209 "\n"
9210
9211 #. type: textblock
9212 #: ../fish/guestfish-actions.pod:1540 ../src/guestfs-actions.pod:2487
9213 msgid "Return the recovery process enabled flag."
9214 msgstr ""
9215
9216 #. type: =head2
9217 #: ../fish/guestfish-actions.pod:1542
9218 msgid "get-selinux"
9219 msgstr "get-selinux"
9220
9221 #. type: verbatim
9222 #: ../fish/guestfish-actions.pod:1544
9223 #, no-wrap
9224 msgid ""
9225 " get-selinux\n"
9226 "\n"
9227 msgstr ""
9228 " get-selinux\n"
9229 "\n"
9230
9231 #. type: textblock
9232 #: ../fish/guestfish-actions.pod:1546
9233 msgid ""
9234 "This returns the current setting of the selinux flag which is passed to the "
9235 "appliance at boot time.  See L</set-selinux>."
9236 msgstr ""
9237
9238 #. type: =head2
9239 #: ../fish/guestfish-actions.pod:1552
9240 msgid "get-smp"
9241 msgstr ""
9242
9243 #. type: verbatim
9244 #: ../fish/guestfish-actions.pod:1554
9245 #, no-wrap
9246 msgid ""
9247 " get-smp\n"
9248 "\n"
9249 msgstr ""
9250
9251 #. type: textblock
9252 #: ../fish/guestfish-actions.pod:1556 ../src/guestfs-actions.pod:2513
9253 msgid "This returns the number of virtual CPUs assigned to the appliance."
9254 msgstr ""
9255
9256 #. type: =head2
9257 #: ../fish/guestfish-actions.pod:1558
9258 msgid "get-state"
9259 msgstr "get-state"
9260
9261 #. type: verbatim
9262 #: ../fish/guestfish-actions.pod:1560
9263 #, no-wrap
9264 msgid ""
9265 " get-state\n"
9266 "\n"
9267 msgstr ""
9268 " get-state\n"
9269 "\n"
9270
9271 #. type: textblock
9272 #: ../fish/guestfish-actions.pod:1562 ../src/guestfs-actions.pod:2524
9273 msgid ""
9274 "This returns the current state as an opaque integer.  This is only useful "
9275 "for printing debug and internal error messages."
9276 msgstr ""
9277
9278 #. type: textblock
9279 #: ../fish/guestfish-actions.pod:1565 ../fish/guestfish-actions.pod:2524
9280 #: ../fish/guestfish-actions.pod:2542 ../fish/guestfish-actions.pod:2580
9281 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:2527
9282 #: ../src/guestfs-actions.pod:3846 ../src/guestfs-actions.pod:3875
9283 #: ../src/guestfs-actions.pod:3936 ../src/guestfs-actions.pod:3963
9284 msgid "For more information on states, see L<guestfs(3)>."
9285 msgstr ""
9286
9287 #. type: =head2
9288 #: ../fish/guestfish-actions.pod:1567
9289 msgid "get-trace"
9290 msgstr "get-trace"
9291
9292 #. type: verbatim
9293 #: ../fish/guestfish-actions.pod:1569
9294 #, no-wrap
9295 msgid ""
9296 " get-trace\n"
9297 "\n"
9298 msgstr ""
9299 " get-trace\n"
9300 "\n"
9301
9302 #. type: textblock
9303 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2538
9304 msgid "Return the command trace flag."
9305 msgstr ""
9306
9307 #. type: =head2
9308 #: ../fish/guestfish-actions.pod:1573
9309 msgid "get-umask"
9310 msgstr "get-umask"
9311
9312 #. type: verbatim
9313 #: ../fish/guestfish-actions.pod:1575
9314 #, no-wrap
9315 msgid ""
9316 " get-umask\n"
9317 "\n"
9318 msgstr ""
9319 " get-umask\n"
9320 "\n"
9321
9322 #. type: textblock
9323 #: ../fish/guestfish-actions.pod:1577
9324 msgid ""
9325 "Return the current umask.  By default the umask is C<022> unless it has been "
9326 "set by calling L</umask>."
9327 msgstr ""
9328
9329 #. type: =head2
9330 #: ../fish/guestfish-actions.pod:1580
9331 msgid "get-verbose"
9332 msgstr "get-verbose"
9333
9334 #. type: verbatim
9335 #: ../fish/guestfish-actions.pod:1582
9336 #, no-wrap
9337 msgid ""
9338 " get-verbose\n"
9339 "\n"
9340 msgstr ""
9341 " get-verbose\n"
9342 "\n"
9343
9344 #. type: textblock
9345 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2561
9346 msgid "This returns the verbose messages flag."
9347 msgstr ""
9348
9349 #. type: =head2
9350 #: ../fish/guestfish-actions.pod:1586
9351 msgid "getcon"
9352 msgstr "getcon"
9353
9354 #. type: verbatim
9355 #: ../fish/guestfish-actions.pod:1588
9356 #, no-wrap
9357 msgid ""
9358 " getcon\n"
9359 "\n"
9360 msgstr ""
9361 " getcon\n"
9362 "\n"
9363
9364 #. type: textblock
9365 #: ../fish/guestfish-actions.pod:1590 ../src/guestfs-actions.pod:2572
9366 msgid "This gets the SELinux security context of the daemon."
9367 msgstr ""
9368
9369 #. type: textblock
9370 #: ../fish/guestfish-actions.pod:1592
9371 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9372 msgstr ""
9373
9374 #. type: =head2
9375 #: ../fish/guestfish-actions.pod:1595
9376 msgid "getxattr"
9377 msgstr "getxattr"
9378
9379 #. type: verbatim
9380 #: ../fish/guestfish-actions.pod:1597
9381 #, no-wrap
9382 msgid ""
9383 " getxattr path name\n"
9384 "\n"
9385 msgstr ""
9386 " getxattr шлях назва\n"
9387 "\n"
9388
9389 #. type: textblock
9390 #: ../fish/guestfish-actions.pod:1599
9391 msgid ""
9392 "Get a single extended attribute from file C<path> named C<name>.  This call "
9393 "follows symlinks.  If you want to lookup an extended attribute for the "
9394 "symlink itself, use L</lgetxattr>."
9395 msgstr ""
9396
9397 #. type: textblock
9398 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:2669
9399 msgid ""
9400 "Normally it is better to get all extended attributes from a file in one go "
9401 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9402 "buggy and do not provide a way to list out attributes.  For these "
9403 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9404 "attributes you want in advance and call this function."
9405 msgstr ""
9406
9407 #. type: textblock
9408 #: ../fish/guestfish-actions.pod:1610 ../fish/guestfish-actions.pod:2676
9409 #: ../src/guestfs-actions.pod:2601 ../src/guestfs-actions.pod:4096
9410 msgid ""
9411 "Extended attribute values are blobs of binary data.  If there is no extended "
9412 "attribute named C<name>, this returns an error."
9413 msgstr ""
9414
9415 #. type: textblock
9416 #: ../fish/guestfish-actions.pod:1613
9417 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9418 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9419
9420 #. type: =head2
9421 #: ../fish/guestfish-actions.pod:1615
9422 msgid "getxattrs"
9423 msgstr "getxattrs"
9424
9425 #. type: verbatim
9426 #: ../fish/guestfish-actions.pod:1617
9427 #, no-wrap
9428 msgid ""
9429 " getxattrs path\n"
9430 "\n"
9431 msgstr ""
9432 " getxattrs шлях\n"
9433 "\n"
9434
9435 #. type: textblock
9436 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2618
9437 msgid ""
9438 "This call lists the extended attributes of the file or directory C<path>."
9439 msgstr ""
9440
9441 #. type: textblock
9442 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2621
9443 msgid ""
9444 "At the system call level, this is a combination of the L<listxattr(2)> and "
9445 "L<getxattr(2)> calls."
9446 msgstr ""
9447
9448 #. type: textblock
9449 #: ../fish/guestfish-actions.pod:1625
9450 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9451 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9452
9453 #. type: =head2
9454 #: ../fish/guestfish-actions.pod:1627
9455 msgid "glob-expand"
9456 msgstr "glob-expand"
9457
9458 #. type: verbatim
9459 #: ../fish/guestfish-actions.pod:1629
9460 #, no-wrap
9461 msgid ""
9462 " glob-expand pattern\n"
9463 "\n"
9464 msgstr ""
9465 " glob-expand шаблон\n"
9466 "\n"
9467
9468 #. type: textblock
9469 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2638
9470 msgid ""
9471 "This command searches for all the pathnames matching C<pattern> according to "
9472 "the wildcard expansion rules used by the shell."
9473 msgstr ""
9474
9475 #. type: textblock
9476 #: ../fish/guestfish-actions.pod:1635 ../src/guestfs-actions.pod:2642
9477 msgid ""
9478 "If no paths match, then this returns an empty list (note: not an error)."
9479 msgstr ""
9480
9481 #. type: textblock
9482 #: ../fish/guestfish-actions.pod:1638 ../src/guestfs-actions.pod:2645
9483 msgid ""
9484 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9485 "GLOB_BRACE>.  See that manual page for more details."
9486 msgstr ""
9487
9488 #. type: =head2
9489 #: ../fish/guestfish-actions.pod:1642
9490 msgid "grep"
9491 msgstr "grep"
9492
9493 #. type: verbatim
9494 #: ../fish/guestfish-actions.pod:1644
9495 #, no-wrap
9496 msgid ""
9497 " grep regex path\n"
9498 "\n"
9499 msgstr ""
9500 " grepi формальний_вираз шлях\n"
9501 "\n"
9502
9503 #. type: textblock
9504 #: ../fish/guestfish-actions.pod:1646 ../src/guestfs-actions.pod:2662
9505 msgid "This calls the external C<grep> program and returns the matching lines."
9506 msgstr ""
9507
9508 #. type: =head2
9509 #: ../fish/guestfish-actions.pod:1652
9510 msgid "grepi"
9511 msgstr "grepi"
9512
9513 #. type: verbatim
9514 #: ../fish/guestfish-actions.pod:1654
9515 #, no-wrap
9516 msgid ""
9517 " grepi regex path\n"
9518 "\n"
9519 msgstr ""
9520 " grepi формальний_вираз шлях\n"
9521 "\n"
9522
9523 #. type: textblock
9524 #: ../fish/guestfish-actions.pod:1656 ../src/guestfs-actions.pod:2681
9525 msgid ""
9526 "This calls the external C<grep -i> program and returns the matching lines."
9527 msgstr ""
9528
9529 #. type: =head2
9530 #: ../fish/guestfish-actions.pod:1662
9531 msgid "grub-install"
9532 msgstr "grub-install"
9533
9534 #. type: verbatim
9535 #: ../fish/guestfish-actions.pod:1664
9536 #, no-wrap
9537 msgid ""
9538 " grub-install root device\n"
9539 "\n"
9540 msgstr ""
9541 " grub-install кореневий пристрій\n"
9542 "\n"
9543
9544 #. type: textblock
9545 #: ../fish/guestfish-actions.pod:1666 ../src/guestfs-actions.pod:2700
9546 msgid ""
9547 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9548 "with the root directory being C<root>."
9549 msgstr ""
9550
9551 #. type: textblock
9552 #: ../fish/guestfish-actions.pod:1675 ../src/guestfs-actions.pod:2709
9553 msgid ""
9554 "There is currently no way in the API to install grub2, which is used by most "
9555 "modern Linux guests.  It is possible to run the grub2 command from the "
9556 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9557 msgstr ""
9558
9559 #. type: textblock
9560 #: ../fish/guestfish-actions.pod:1682 ../src/guestfs-actions.pod:2716
9561 msgid ""
9562 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9563 "compatible with itself, so this only works in rather narrow circumstances.  "
9564 "Careful testing with each guest version is advisable."
9565 msgstr ""
9566
9567 #. type: textblock
9568 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2723
9569 msgid ""
9570 "If grub-install reports the error \"No suitable drive was found in the "
9571 "generated device map.\" it may be that you need to create a C</boot/grub/"
9572 "device.map> file first that contains the mapping between grub device names "
9573 "and Linux device names.  It is usually sufficient to create a file "
9574 "containing:"
9575 msgstr ""
9576
9577 #. type: verbatim
9578 #: ../fish/guestfish-actions.pod:1696 ../src/guestfs-actions.pod:2730
9579 #, no-wrap
9580 msgid ""
9581 " (hd0) /dev/vda\n"
9582 "\n"
9583 msgstr ""
9584
9585 #. type: textblock
9586 #: ../fish/guestfish-actions.pod:1698 ../src/guestfs-actions.pod:2732
9587 msgid "replacing C</dev/vda> with the name of the installation device."
9588 msgstr ""
9589
9590 #. type: =head2
9591 #: ../fish/guestfish-actions.pod:1702
9592 msgid "head"
9593 msgstr "head"
9594
9595 #. type: verbatim
9596 #: ../fish/guestfish-actions.pod:1704
9597 #, no-wrap
9598 msgid ""
9599 " head path\n"
9600 "\n"
9601 msgstr ""
9602 " head шлях\n"
9603 "\n"
9604
9605 #. type: textblock
9606 #: ../fish/guestfish-actions.pod:1706 ../src/guestfs-actions.pod:2746
9607 msgid ""
9608 "This command returns up to the first 10 lines of a file as a list of strings."
9609 msgstr ""
9610
9611 #. type: =head2
9612 #: ../fish/guestfish-actions.pod:1712
9613 msgid "head-n"
9614 msgstr "head-n"
9615
9616 #. type: verbatim
9617 #: ../fish/guestfish-actions.pod:1714
9618 #, no-wrap
9619 msgid ""
9620 " head-n nrlines path\n"
9621 "\n"
9622 msgstr ""
9623
9624 #. type: textblock
9625 #: ../fish/guestfish-actions.pod:1716 ../src/guestfs-actions.pod:2765
9626 msgid ""
9627 "If the parameter C<nrlines> is a positive number, this returns the first "
9628 "C<nrlines> lines of the file C<path>."
9629 msgstr ""
9630
9631 #. type: textblock
9632 #: ../fish/guestfish-actions.pod:1719 ../src/guestfs-actions.pod:2768
9633 msgid ""
9634 "If the parameter C<nrlines> is a negative number, this returns lines from "
9635 "the file C<path>, excluding the last C<nrlines> lines."
9636 msgstr ""
9637
9638 #. type: textblock
9639 #: ../fish/guestfish-actions.pod:1722 ../fish/guestfish-actions.pod:4821
9640 #: ../src/guestfs-actions.pod:2771 ../src/guestfs-actions.pod:7427
9641 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9642 msgstr ""
9643
9644 #. type: =head2
9645 #: ../fish/guestfish-actions.pod:1727
9646 msgid "hexdump"
9647 msgstr "hexdump"
9648
9649 #. type: verbatim
9650 #: ../fish/guestfish-actions.pod:1729
9651 #, no-wrap
9652 msgid ""
9653 " hexdump path\n"
9654 "\n"
9655 msgstr ""
9656 " hexdump шлях\n"
9657 "\n"
9658
9659 #. type: textblock
9660 #: ../fish/guestfish-actions.pod:1731 ../src/guestfs-actions.pod:2788
9661 msgid ""
9662 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9663 "readable, canonical hex dump of the file."
9664 msgstr ""
9665
9666 #. type: =head2
9667 #: ../fish/guestfish-actions.pod:1737
9668 msgid "initrd-cat"
9669 msgstr "initrd-cat"
9670
9671 #. type: verbatim
9672 #: ../fish/guestfish-actions.pod:1739
9673 #, no-wrap
9674 msgid ""
9675 " initrd-cat initrdpath filename\n"
9676 "\n"
9677 msgstr ""
9678 " initrd-cat шлях_initrd назва_файла\n"
9679 "\n"
9680
9681 #. type: textblock
9682 #: ../fish/guestfish-actions.pod:1741 ../src/guestfs-actions.pod:2807
9683 msgid ""
9684 "This command unpacks the file C<filename> from the initrd file called "
9685 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9686 "character."
9687 msgstr ""
9688
9689 #. type: textblock
9690 #: ../fish/guestfish-actions.pod:1745 ../src/guestfs-actions.pod:2811
9691 msgid ""
9692 "For example, in guestfish you could use the following command to examine the "
9693 "boot script (usually called C</init>)  contained in a Linux initrd or "
9694 "initramfs image:"
9695 msgstr ""
9696
9697 #. type: verbatim
9698 #: ../fish/guestfish-actions.pod:1749 ../src/guestfs-actions.pod:2815
9699 #, no-wrap
9700 msgid ""
9701 " initrd-cat /boot/initrd-<version>.img init\n"
9702 "\n"
9703 msgstr ""
9704
9705 #. type: textblock
9706 #: ../fish/guestfish-actions.pod:1751
9707 msgid "See also L</initrd-list>."
9708 msgstr "Див. також L</initrd-list>."
9709
9710 #. type: =head2
9711 #: ../fish/guestfish-actions.pod:1756
9712 msgid "initrd-list"
9713 msgstr "initrd-list"
9714
9715 #. type: verbatim
9716 #: ../fish/guestfish-actions.pod:1758
9717 #, no-wrap
9718 msgid ""
9719 " initrd-list path\n"
9720 "\n"
9721 msgstr ""
9722 " initrd-list шлях\n"
9723 "\n"
9724
9725 #. type: textblock
9726 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2834
9727 msgid "This command lists out files contained in an initrd."
9728 msgstr ""
9729
9730 #. type: textblock
9731 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2836
9732 msgid ""
9733 "The files are listed without any initial C</> character.  The files are "
9734 "listed in the order they appear (not necessarily alphabetical).  Directory "
9735 "names are listed as separate items."
9736 msgstr ""
9737
9738 #. type: textblock
9739 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2840
9740 msgid ""
9741 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9742 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9743 "files)."
9744 msgstr ""
9745
9746 #. type: =head2
9747 #: ../fish/guestfish-actions.pod:1770
9748 msgid "inotify-add-watch"
9749 msgstr "inotify-add-watch"
9750
9751 #. type: verbatim
9752 #: ../fish/guestfish-actions.pod:1772
9753 #, no-wrap
9754 msgid ""
9755 " inotify-add-watch path mask\n"
9756 "\n"
9757 msgstr ""
9758 " inotify-add-watch шлях маска\n"
9759 "\n"
9760
9761 #. type: textblock
9762 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2857
9763 msgid "Watch C<path> for the events listed in C<mask>."
9764 msgstr ""
9765
9766 #. type: textblock
9767 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2859
9768 msgid ""
9769 "Note that if C<path> is a directory then events within that directory are "
9770 "watched, but this does I<not> happen recursively (in subdirectories)."
9771 msgstr ""
9772
9773 #. type: textblock
9774 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2863
9775 msgid ""
9776 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9777 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9778 msgstr ""
9779
9780 #. type: =head2
9781 #: ../fish/guestfish-actions.pod:1784
9782 msgid "inotify-close"
9783 msgstr "inotify-close"
9784
9785 #. type: verbatim
9786 #: ../fish/guestfish-actions.pod:1786
9787 #, no-wrap
9788 msgid ""
9789 " inotify-close\n"
9790 "\n"
9791 msgstr ""
9792 " inotify-close\n"
9793 "\n"
9794
9795 #. type: textblock
9796 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2876
9797 msgid ""
9798 "This closes the inotify handle which was previously opened by inotify_init.  "
9799 "It removes all watches, throws away any pending events, and deallocates all "
9800 "resources."
9801 msgstr ""
9802
9803 #. type: =head2
9804 #: ../fish/guestfish-actions.pod:1792
9805 msgid "inotify-files"
9806 msgstr "inotify-files"
9807
9808 #. type: verbatim
9809 #: ../fish/guestfish-actions.pod:1794
9810 #, no-wrap
9811 msgid ""
9812 " inotify-files\n"
9813 "\n"
9814 msgstr ""
9815 " inotify-files\n"
9816 "\n"
9817
9818 #. type: textblock
9819 #: ../fish/guestfish-actions.pod:1796
9820 msgid ""
9821 "This function is a helpful wrapper around L</inotify-read> which just "
9822 "returns a list of pathnames of objects that were touched.  The returned "
9823 "pathnames are sorted and deduplicated."
9824 msgstr ""
9825
9826 #. type: =head2
9827 #: ../fish/guestfish-actions.pod:1800
9828 msgid "inotify-init"
9829 msgstr "inotify-init"
9830
9831 #. type: verbatim
9832 #: ../fish/guestfish-actions.pod:1802
9833 #, no-wrap
9834 msgid ""
9835 " inotify-init maxevents\n"
9836 "\n"
9837 msgstr ""
9838
9839 #. type: textblock
9840 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2905
9841 msgid ""
9842 "This command creates a new inotify handle.  The inotify subsystem can be "
9843 "used to notify events which happen to objects in the guest filesystem."
9844 msgstr ""
9845
9846 #. type: textblock
9847 #: ../fish/guestfish-actions.pod:1808
9848 msgid ""
9849 "C<maxevents> is the maximum number of events which will be queued up between "
9850 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9851 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9852 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9853 "but records the fact that it threw them away by setting a flag "
9854 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9855 msgstr ""
9856
9857 #. type: textblock
9858 #: ../fish/guestfish-actions.pod:1818
9859 msgid ""
9860 "Before any events are generated, you have to add some watches to the "
9861 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9862 "L</inotify-watch-all>."
9863 msgstr ""
9864
9865 #. type: textblock
9866 #: ../fish/guestfish-actions.pod:1824
9867 msgid ""
9868 "Queued up events should be read periodically by calling L</inotify-read> (or "
9869 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9870 "If you don't read the events out often enough then you risk the internal "
9871 "queue overflowing."
9872 msgstr ""
9873
9874 #. type: textblock
9875 #: ../fish/guestfish-actions.pod:1831
9876 msgid ""
9877 "The handle should be closed after use by calling L</inotify-close>.  This "
9878 "also removes any watches automatically."
9879 msgstr ""
9880
9881 #. type: textblock
9882 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2936
9883 msgid ""
9884 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9885 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9886 "that there is one global inotify handle per libguestfs instance."
9887 msgstr ""
9888
9889 #. type: =head2
9890 #: ../fish/guestfish-actions.pod:1840
9891 msgid "inotify-read"
9892 msgstr "inotify-read"
9893
9894 #. type: verbatim
9895 #: ../fish/guestfish-actions.pod:1842
9896 #, no-wrap
9897 msgid ""
9898 " inotify-read\n"
9899 "\n"
9900 msgstr ""
9901 " inotify-read\n"
9902 "\n"
9903
9904 #. type: textblock
9905 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2950
9906 msgid ""
9907 "Return the complete queue of events that have happened since the previous "
9908 "read call."
9909 msgstr ""
9910
9911 #. type: textblock
9912 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2953
9913 msgid "If no events have happened, this returns an empty list."
9914 msgstr ""
9915
9916 #. type: textblock
9917 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2955
9918 msgid ""
9919 "I<Note>: In order to make sure that all events have been read, you must call "
9920 "this function repeatedly until it returns an empty list.  The reason is that "
9921 "the call will read events up to the maximum appliance-to-host message size "
9922 "and leave remaining events in the queue."
9923 msgstr ""
9924
9925 #. type: =head2
9926 #: ../fish/guestfish-actions.pod:1855
9927 msgid "inotify-rm-watch"
9928 msgstr "inotify-rm-watch"
9929
9930 #. type: verbatim
9931 #: ../fish/guestfish-actions.pod:1857
9932 #, no-wrap
9933 msgid ""
9934 " inotify-rm-watch wd\n"
9935 "\n"
9936 msgstr ""
9937
9938 #. type: textblock
9939 #: ../fish/guestfish-actions.pod:1859
9940 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9941 msgstr ""
9942
9943 #. type: =head2
9944 #: ../fish/guestfish-actions.pod:1862
9945 msgid "inspect-get-arch"
9946 msgstr "inspect-get-arch"
9947
9948 #. type: verbatim
9949 #: ../fish/guestfish-actions.pod:1864
9950 #, no-wrap
9951 msgid ""
9952 " inspect-get-arch root\n"
9953 "\n"
9954 msgstr ""
9955 " inspect-get-arch корінь\n"
9956 "\n"
9957
9958 #. type: textblock
9959 #: ../fish/guestfish-actions.pod:1866
9960 msgid ""
9961 "This returns the architecture of the inspected operating system.  The "
9962 "possible return values are listed under L</file-architecture>."
9963 msgstr ""
9964
9965 #. type: textblock
9966 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2990
9967 msgid ""
9968 "If the architecture could not be determined, then the string C<unknown> is "
9969 "returned."
9970 msgstr ""
9971
9972 #. type: textblock
9973 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:1968
9974 #: ../fish/guestfish-actions.pod:2047 ../fish/guestfish-actions.pod:2059
9975 #: ../fish/guestfish-actions.pod:2143 ../fish/guestfish-actions.pod:2205
9976 #: ../fish/guestfish-actions.pod:2226 ../fish/guestfish-actions.pod:2240
9977 #: ../fish/guestfish-actions.pod:2280 ../fish/guestfish-actions.pod:2316
9978 #: ../fish/guestfish-actions.pod:2329 ../fish/guestfish-actions.pod:2342
9979 #: ../fish/guestfish-actions.pod:2352 ../fish/guestfish-actions.pod:2362
9980 #: ../fish/guestfish-actions.pod:2374 ../fish/guestfish-actions.pod:2470
9981 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:2993
9982 #: ../src/guestfs-actions.pod:3095 ../src/guestfs-actions.pod:3199
9983 #: ../src/guestfs-actions.pod:3218 ../src/guestfs-actions.pod:3349
9984 #: ../src/guestfs-actions.pod:3433 ../src/guestfs-actions.pod:3461
9985 #: ../src/guestfs-actions.pod:3482 ../src/guestfs-actions.pod:3535
9986 #: ../src/guestfs-actions.pod:3579 ../src/guestfs-actions.pod:3599
9987 #: ../src/guestfs-actions.pod:3619 ../src/guestfs-actions.pod:3636
9988 #: ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:3670
9989 #: ../src/guestfs-actions.pod:3772 ../src/guestfs-actions.pod:3813
9990 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9991 msgstr ""
9992
9993 #. type: =head2
9994 #: ../fish/guestfish-actions.pod:1875
9995 msgid "inspect-get-distro"
9996 msgstr "inspect-get-distro"
9997
9998 #. type: verbatim
9999 #: ../fish/guestfish-actions.pod:1877
10000 #, no-wrap
10001 msgid ""
10002 " inspect-get-distro root\n"
10003 "\n"
10004 msgstr ""
10005 " inspect-get-distro корінь\n"
10006 "\n"
10007
10008 #. type: textblock
10009 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:3006
10010 msgid ""
10011 "This returns the distro (distribution) of the inspected operating system."
10012 msgstr ""
10013
10014 #. type: textblock
10015 #: ../fish/guestfish-actions.pod:1882 ../src/guestfs-actions.pod:3009
10016 msgid "Currently defined distros are:"
10017 msgstr ""
10018
10019 #. type: =item
10020 #: ../fish/guestfish-actions.pod:1886 ../src/guestfs-actions.pod:3013
10021 msgid "\"archlinux\""
10022 msgstr "\"archlinux\""
10023
10024 #. type: textblock
10025 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:3015
10026 msgid "Arch Linux."
10027 msgstr "Arch Linux."
10028
10029 #. type: =item
10030 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3017
10031 msgid "\"centos\""
10032 msgstr ""
10033
10034 #. type: textblock
10035 #: ../fish/guestfish-actions.pod:1892 ../src/guestfs-actions.pod:3019
10036 msgid "CentOS."
10037 msgstr ""
10038
10039 #. type: =item
10040 #: ../fish/guestfish-actions.pod:1894 ../src/guestfs-actions.pod:3021
10041 msgid "\"debian\""
10042 msgstr "\"debian\""
10043
10044 #. type: textblock
10045 #: ../fish/guestfish-actions.pod:1896 ../src/guestfs-actions.pod:3023
10046 msgid "Debian."
10047 msgstr "Debian."
10048
10049 #. type: =item
10050 #: ../fish/guestfish-actions.pod:1898 ../src/guestfs-actions.pod:3025
10051 msgid "\"fedora\""
10052 msgstr "\"fedora\""
10053
10054 #. type: textblock
10055 #: ../fish/guestfish-actions.pod:1900 ../src/guestfs-actions.pod:3027
10056 msgid "Fedora."
10057 msgstr "Fedora."
10058
10059 #. type: =item
10060 #: ../fish/guestfish-actions.pod:1902 ../src/guestfs-actions.pod:3029
10061 msgid "\"gentoo\""
10062 msgstr "\"gentoo\""
10063
10064 #. type: textblock
10065 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:3031
10066 msgid "Gentoo."
10067 msgstr "Gentoo."
10068
10069 #. type: =item
10070 #: ../fish/guestfish-actions.pod:1906 ../src/guestfs-actions.pod:3033
10071 msgid "\"linuxmint\""
10072 msgstr "\"linuxmint\""
10073
10074 #. type: textblock
10075 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:3035
10076 msgid "Linux Mint."
10077 msgstr "Linux Mint."
10078
10079 #. type: =item
10080 #: ../fish/guestfish-actions.pod:1910 ../src/guestfs-actions.pod:3037
10081 msgid "\"mageia\""
10082 msgstr ""
10083
10084 #. type: textblock
10085 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:3039
10086 msgid "Mageia."
10087 msgstr ""
10088
10089 #. type: =item
10090 #: ../fish/guestfish-actions.pod:1914 ../src/guestfs-actions.pod:3041
10091 msgid "\"mandriva\""
10092 msgstr "\"mandriva\""
10093
10094 #. type: textblock
10095 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3043
10096 msgid "Mandriva."
10097 msgstr "Mandriva."
10098
10099 #. type: =item
10100 #: ../fish/guestfish-actions.pod:1918 ../src/guestfs-actions.pod:3045
10101 msgid "\"meego\""
10102 msgstr "\"meego\""
10103
10104 #. type: textblock
10105 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:3047
10106 msgid "MeeGo."
10107 msgstr "MeeGo."
10108
10109 #. type: =item
10110 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:3049
10111 msgid "\"opensuse\""
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:3051
10116 msgid "OpenSUSE."
10117 msgstr ""
10118
10119 #. type: =item
10120 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:3053
10121 msgid "\"pardus\""
10122 msgstr "\"pardus\""
10123
10124 #. type: textblock
10125 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3055
10126 msgid "Pardus."
10127 msgstr "Pardus."
10128
10129 #. type: =item
10130 #: ../fish/guestfish-actions.pod:1930 ../src/guestfs-actions.pod:3057
10131 msgid "\"redhat-based\""
10132 msgstr "\"redhat-based\""
10133
10134 #. type: textblock
10135 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3059
10136 msgid "Some Red Hat-derived distro."
10137 msgstr "Дистрибутив, що походить від Red Hat."
10138
10139 #. type: =item
10140 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3061
10141 msgid "\"rhel\""
10142 msgstr "\"rhel\""
10143
10144 #. type: textblock
10145 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3063
10146 msgid "Red Hat Enterprise Linux."
10147 msgstr "Red Hat Enterprise Linux."
10148
10149 #. type: =item
10150 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3065
10151 msgid "\"scientificlinux\""
10152 msgstr "\"scientificlinux\""
10153
10154 #. type: textblock
10155 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3067
10156 msgid "Scientific Linux."
10157 msgstr "Scientific Linux."
10158
10159 #. type: =item
10160 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3069
10161 msgid "\"slackware\""
10162 msgstr "\"slackware\""
10163
10164 #. type: textblock
10165 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3071
10166 msgid "Slackware."
10167 msgstr "Slackware."
10168
10169 #. type: =item
10170 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3073
10171 msgid "\"ttylinux\""
10172 msgstr ""
10173
10174 #. type: textblock
10175 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3075
10176 msgid "ttylinux."
10177 msgstr ""
10178
10179 #. type: =item
10180 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3077
10181 msgid "\"ubuntu\""
10182 msgstr "\"ubuntu\""
10183
10184 #. type: textblock
10185 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3079
10186 msgid "Ubuntu."
10187 msgstr "Ubuntu."
10188
10189 #. type: =item
10190 #: ../fish/guestfish-actions.pod:1954 ../fish/guestfish-actions.pod:2038
10191 #: ../fish/guestfish-actions.pod:2307 ../src/guestfs-actions.pod:3081
10192 #: ../src/guestfs-actions.pod:3190 ../src/guestfs-actions.pod:3570
10193 msgid "\"unknown\""
10194 msgstr "\"unknown\""
10195
10196 #. type: textblock
10197 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3083
10198 msgid "The distro could not be determined."
10199 msgstr "Дистрибутив, тип якого не вдалося визначити."
10200
10201 #. type: =item
10202 #: ../fish/guestfish-actions.pod:1958 ../fish/guestfish-actions.pod:2295
10203 #: ../src/guestfs-actions.pod:3085 ../src/guestfs-actions.pod:3558
10204 msgid "\"windows\""
10205 msgstr "\"windows\""
10206
10207 #. type: textblock
10208 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3087
10209 msgid ""
10210 "Windows does not have distributions.  This string is returned if the OS type "
10211 "is Windows."
10212 msgstr ""
10213
10214 #. type: textblock
10215 #: ../fish/guestfish-actions.pod:1965 ../fish/guestfish-actions.pod:2044
10216 #: ../fish/guestfish-actions.pod:2313 ../src/guestfs-actions.pod:3092
10217 #: ../src/guestfs-actions.pod:3196 ../src/guestfs-actions.pod:3576
10218 msgid ""
10219 "Future versions of libguestfs may return other strings here.  The caller "
10220 "should be prepared to handle any string."
10221 msgstr ""
10222
10223 #. type: =head2
10224 #: ../fish/guestfish-actions.pod:1970
10225 msgid "inspect-get-drive-mappings"
10226 msgstr ""
10227
10228 #. type: verbatim
10229 #: ../fish/guestfish-actions.pod:1972
10230 #, no-wrap
10231 msgid ""
10232 " inspect-get-drive-mappings root\n"
10233 "\n"
10234 msgstr ""
10235
10236 #. type: textblock
10237 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3108
10238 msgid ""
10239 "This call is useful for Windows which uses a primitive system of assigning "
10240 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10241 "Windows Registry to find out how disks/partitions are mapped to drive "
10242 "letters, and returns a hash table as in the example below:"
10243 msgstr ""
10244
10245 #. type: verbatim
10246 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3114
10247 #, no-wrap
10248 msgid ""
10249 " C      =>     /dev/vda2\n"
10250 " E      =>     /dev/vdb1\n"
10251 " F      =>     /dev/vdc1\n"
10252 "\n"
10253 msgstr ""
10254
10255 #. type: textblock
10256 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3118
10257 msgid ""
10258 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10259 "and just contains the drive letter, without the customary colon separator "
10260 "character."
10261 msgstr ""
10262
10263 #. type: textblock
10264 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3122
10265 msgid ""
10266 "In future we may support other operating systems that also used drive "
10267 "letters, but the keys for those might not be case insensitive and might be "
10268 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10269 "C<h1> etc."
10270 msgstr ""
10271
10272 #. type: textblock
10273 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3127
10274 msgid ""
10275 "For Windows guests, currently only hard drive mappings are returned.  "
10276 "Removable disks (eg. DVD-ROMs) are ignored."
10277 msgstr ""
10278
10279 #. type: textblock
10280 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3130
10281 msgid ""
10282 "For guests that do not use drive mappings, or if the drive mappings could "
10283 "not be determined, this returns an empty hash table."
10284 msgstr ""
10285
10286 #. type: textblock
10287 #: ../fish/guestfish-actions.pod:1999
10288 msgid ""
10289 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10290 "get-mountpoints>, L</inspect-get-filesystems>."
10291 msgstr ""
10292
10293 #. type: =head2
10294 #: ../fish/guestfish-actions.pod:2003
10295 msgid "inspect-get-filesystems"
10296 msgstr "inspect-get-filesystems"
10297
10298 #. type: verbatim
10299 #: ../fish/guestfish-actions.pod:2005
10300 #, no-wrap
10301 msgid ""
10302 " inspect-get-filesystems root\n"
10303 "\n"
10304 msgstr ""
10305 " inspect-get-filesystems корінь\n"
10306 "\n"
10307
10308 #. type: textblock
10309 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3151
10310 msgid ""
10311 "This returns a list of all the filesystems that we think are associated with "
10312 "this operating system.  This includes the root filesystem, other ordinary "
10313 "filesystems, and non-mounted devices like swap partitions."
10314 msgstr ""
10315
10316 #. type: textblock
10317 #: ../fish/guestfish-actions.pod:2012 ../src/guestfs-actions.pod:3156
10318 msgid ""
10319 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10320 "to be shared between operating systems."
10321 msgstr ""
10322
10323 #. type: textblock
10324 #: ../fish/guestfish-actions.pod:2015
10325 msgid ""
10326 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10327 "get-mountpoints>."
10328 msgstr ""
10329
10330 #. type: =head2
10331 #: ../fish/guestfish-actions.pod:2018
10332 msgid "inspect-get-format"
10333 msgstr "inspect-get-format"
10334
10335 #. type: verbatim
10336 #: ../fish/guestfish-actions.pod:2020
10337 #, no-wrap
10338 msgid ""
10339 " inspect-get-format root\n"
10340 "\n"
10341 msgstr ""
10342 " inspect-get-format корінь\n"
10343 "\n"
10344
10345 #. type: textblock
10346 #: ../fish/guestfish-actions.pod:2022 ../src/guestfs-actions.pod:3174
10347 msgid ""
10348 "This returns the format of the inspected operating system.  You can use it "
10349 "to detect install images, live CDs and similar."
10350 msgstr ""
10351
10352 #. type: textblock
10353 #: ../fish/guestfish-actions.pod:2025 ../src/guestfs-actions.pod:3177
10354 msgid "Currently defined formats are:"
10355 msgstr ""
10356
10357 #. type: =item
10358 #: ../fish/guestfish-actions.pod:2029 ../src/guestfs-actions.pod:3181
10359 msgid "\"installed\""
10360 msgstr "\"installed\""
10361
10362 #. type: textblock
10363 #: ../fish/guestfish-actions.pod:2031 ../src/guestfs-actions.pod:3183
10364 msgid "This is an installed operating system."
10365 msgstr "Це встановлена операційна система."
10366
10367 #. type: =item
10368 #: ../fish/guestfish-actions.pod:2033 ../src/guestfs-actions.pod:3185
10369 msgid "\"installer\""
10370 msgstr ""
10371
10372 #. type: textblock
10373 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3187
10374 msgid ""
10375 "The disk image being inspected is not an installed operating system, but a "
10376 "I<bootable> install disk, live CD, or similar."
10377 msgstr ""
10378
10379 #. type: textblock
10380 #: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3192
10381 msgid "The format of this disk image is not known."
10382 msgstr ""
10383
10384 #. type: =head2
10385 #: ../fish/guestfish-actions.pod:2049
10386 msgid "inspect-get-hostname"
10387 msgstr "inspect-get-hostname"
10388
10389 #. type: verbatim
10390 #: ../fish/guestfish-actions.pod:2051
10391 #, no-wrap
10392 msgid ""
10393 " inspect-get-hostname root\n"
10394 "\n"
10395 msgstr ""
10396 " inspect-get-hostname корінь\n"
10397 "\n"
10398
10399 #. type: textblock
10400 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3212
10401 msgid ""
10402 "This function returns the hostname of the operating system as found by "
10403 "inspection of the guest's configuration files."
10404 msgstr ""
10405
10406 #. type: textblock
10407 #: ../fish/guestfish-actions.pod:2056 ../src/guestfs-actions.pod:3215
10408 msgid ""
10409 "If the hostname could not be determined, then the string C<unknown> is "
10410 "returned."
10411 msgstr ""
10412
10413 #. type: =head2
10414 #: ../fish/guestfish-actions.pod:2061
10415 msgid "inspect-get-icon"
10416 msgstr ""
10417
10418 #. type: verbatim
10419 #: ../fish/guestfish-actions.pod:2063
10420 #, no-wrap
10421 msgid ""
10422 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10423 "\n"
10424 msgstr ""
10425
10426 #. type: textblock
10427 #: ../fish/guestfish-actions.pod:2065 ../src/guestfs-actions.pod:3241
10428 msgid ""
10429 "This function returns an icon corresponding to the inspected operating "
10430 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10431 "to PNG if necessary)."
10432 msgstr ""
10433
10434 #. type: textblock
10435 #: ../fish/guestfish-actions.pod:2069 ../src/guestfs-actions.pod:3245
10436 msgid ""
10437 "If it was not possible to get an icon this function returns a zero-length "
10438 "(non-NULL) buffer.  I<Callers must check for this case>."
10439 msgstr ""
10440
10441 #. type: textblock
10442 #: ../fish/guestfish-actions.pod:2072 ../src/guestfs-actions.pod:3248
10443 msgid ""
10444 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10445 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10446 "this file will be returned.  You can disable favicons by passing the "
10447 "optional C<favicon> boolean as false (default is true)."
10448 msgstr ""
10449
10450 #. type: textblock
10451 #: ../fish/guestfish-actions.pod:2078 ../src/guestfs-actions.pod:3254
10452 msgid ""
10453 "If finding the favicon fails, then we look in other places in the guest for "
10454 "a suitable icon."
10455 msgstr ""
10456
10457 #. type: textblock
10458 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3257
10459 msgid ""
10460 "If the optional C<highquality> boolean is true then only high quality icons "
10461 "are returned, which means only icons of high resolution with an alpha "
10462 "channel.  The default (false) is to return any icon we can, even if it is of "
10463 "substandard quality."
10464 msgstr ""
10465
10466 #. type: textblock
10467 #: ../fish/guestfish-actions.pod:2092 ../src/guestfs-actions.pod:3268
10468 msgid ""
10469 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10470 "before you call this, since it needs to read information from the guest "
10471 "filesystem during the call."
10472 msgstr ""
10473
10474 #. type: textblock
10475 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3274
10476 msgid ""
10477 "B<Security:> The icon data comes from the untrusted guest, and should be "
10478 "treated with caution.  PNG files have been known to contain exploits.  "
10479 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10480 "trying to process or display the icon."
10481 msgstr ""
10482
10483 #. type: textblock
10484 #: ../fish/guestfish-actions.pod:2106 ../src/guestfs-actions.pod:3282
10485 msgid ""
10486 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10487 "tries to return the largest, highest quality icon available.  The "
10488 "application must scale the icon to the required size."
10489 msgstr ""
10490
10491 #. type: textblock
10492 #: ../fish/guestfish-actions.pod:2113 ../src/guestfs-actions.pod:3289
10493 msgid ""
10494 "Extracting icons from Windows guests requires the external C<wrestool> "
10495 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10496 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10497 "installed separately."
10498 msgstr ""
10499
10500 #. type: textblock
10501 #: ../fish/guestfish-actions.pod:2120 ../src/guestfs-actions.pod:3296
10502 msgid ""
10503 "Operating system icons are usually trademarks.  Seek legal advice before "
10504 "using trademarks in applications."
10505 msgstr ""
10506
10507 #. type: =head2
10508 #: ../fish/guestfish-actions.pod:2127
10509 msgid "inspect-get-major-version"
10510 msgstr "inspect-get-major-version"
10511
10512 #. type: verbatim
10513 #: ../fish/guestfish-actions.pod:2129
10514 #, no-wrap
10515 msgid ""
10516 " inspect-get-major-version root\n"
10517 "\n"
10518 msgstr ""
10519 " inspect-get-major-version корінь\n"
10520 "\n"
10521
10522 #. type: textblock
10523 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3337
10524 msgid ""
10525 "This returns the major version number of the inspected operating system."
10526 msgstr ""
10527
10528 #. type: textblock
10529 #: ../fish/guestfish-actions.pod:2134 ../src/guestfs-actions.pod:3340
10530 msgid ""
10531 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10532 "popular public names used by the operating system.  Notably the operating "
10533 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10534 "1).  You can find out the real versions corresponding to releases of Windows "
10535 "by consulting Wikipedia or MSDN."
10536 msgstr ""
10537
10538 #. type: textblock
10539 #: ../fish/guestfish-actions.pod:2141 ../fish/guestfish-actions.pod:2152
10540 #: ../src/guestfs-actions.pod:3347 ../src/guestfs-actions.pod:3364
10541 msgid "If the version could not be determined, then C<0> is returned."
10542 msgstr ""
10543
10544 #. type: =head2
10545 #: ../fish/guestfish-actions.pod:2145
10546 msgid "inspect-get-minor-version"
10547 msgstr "inspect-get-minor-version"
10548
10549 #. type: verbatim
10550 #: ../fish/guestfish-actions.pod:2147
10551 #, no-wrap
10552 msgid ""
10553 " inspect-get-minor-version root\n"
10554 "\n"
10555 msgstr ""
10556 " inspect-get-minor-version корінь\n"
10557 "\n"
10558
10559 #. type: textblock
10560 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3361
10561 msgid ""
10562 "This returns the minor version number of the inspected operating system."
10563 msgstr ""
10564
10565 #. type: textblock
10566 #: ../fish/guestfish-actions.pod:2154
10567 msgid ""
10568 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10569 "get-major-version>."
10570 msgstr ""
10571
10572 #. type: =head2
10573 #: ../fish/guestfish-actions.pod:2157
10574 msgid "inspect-get-mountpoints"
10575 msgstr "inspect-get-mountpoints"
10576
10577 #. type: verbatim
10578 #: ../fish/guestfish-actions.pod:2159
10579 #, no-wrap
10580 msgid ""
10581 " inspect-get-mountpoints root\n"
10582 "\n"
10583 msgstr ""
10584 " inspect-get-mountpoints корінь\n"
10585 "\n"
10586
10587 #. type: textblock
10588 #: ../fish/guestfish-actions.pod:2161 ../src/guestfs-actions.pod:3379
10589 msgid ""
10590 "This returns a hash of where we think the filesystems associated with this "
10591 "operating system should be mounted.  Callers should note that this is at "
10592 "best an educated guess made by reading configuration files such as C</etc/"
10593 "fstab>.  I<In particular note> that this may return filesystems which are "
10594 "non-existent or not mountable and callers should be prepared to handle or "
10595 "ignore failures if they try to mount them."
10596 msgstr ""
10597
10598 #. type: textblock
10599 #: ../fish/guestfish-actions.pod:2170 ../src/guestfs-actions.pod:3388
10600 msgid ""
10601 "Each element in the returned hashtable has a key which is the path of the "
10602 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10603 "mounted there (eg. C</dev/sda1>)."
10604 msgstr ""
10605
10606 #. type: textblock
10607 #: ../fish/guestfish-actions.pod:2175 ../src/guestfs-actions.pod:3393
10608 msgid ""
10609 "Non-mounted devices such as swap devices are I<not> returned in this list."
10610 msgstr ""
10611
10612 #. type: textblock
10613 #: ../fish/guestfish-actions.pod:2178
10614 msgid ""
10615 "For operating systems like Windows which still use drive letters, this call "
10616 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10617 "information about the mapping of drive letters to partitions, see L</inspect-"
10618 "get-drive-mappings>."
10619 msgstr ""
10620
10621 #. type: textblock
10622 #: ../fish/guestfish-actions.pod:2184
10623 msgid ""
10624 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10625 "get-filesystems>."
10626 msgstr ""
10627
10628 #. type: =head2
10629 #: ../fish/guestfish-actions.pod:2187
10630 msgid "inspect-get-package-format"
10631 msgstr "inspect-get-package-format"
10632
10633 #. type: verbatim
10634 #: ../fish/guestfish-actions.pod:2189
10635 #, no-wrap
10636 msgid ""
10637 " inspect-get-package-format root\n"
10638 "\n"
10639 msgstr ""
10640 " inspect-get-package-format корінь\n"
10641 "\n"
10642
10643 #. type: textblock
10644 #: ../fish/guestfish-actions.pod:2191
10645 msgid ""
10646 "This function and L</inspect-get-package-management> return the package "
10647 "format and package management tool used by the inspected operating system.  "
10648 "For example for Fedora these functions would return C<rpm> (package format) "
10649 "and C<yum> (package management)."
10650 msgstr ""
10651
10652 #. type: textblock
10653 #: ../fish/guestfish-actions.pod:2197 ../src/guestfs-actions.pod:3425
10654 msgid ""
10655 "This returns the string C<unknown> if we could not determine the package "
10656 "format I<or> if the operating system does not have a real packaging system "
10657 "(eg. Windows)."
10658 msgstr ""
10659
10660 #. type: textblock
10661 #: ../fish/guestfish-actions.pod:2201 ../src/guestfs-actions.pod:3429
10662 msgid ""
10663 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10664 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10665 msgstr ""
10666
10667 #. type: =head2
10668 #: ../fish/guestfish-actions.pod:2207
10669 msgid "inspect-get-package-management"
10670 msgstr "inspect-get-package-management"
10671
10672 #. type: verbatim
10673 #: ../fish/guestfish-actions.pod:2209
10674 #, no-wrap
10675 msgid ""
10676 " inspect-get-package-management root\n"
10677 "\n"
10678 msgstr ""
10679 " inspect-get-package-management корінь\n"
10680 "\n"
10681
10682 #. type: textblock
10683 #: ../fish/guestfish-actions.pod:2211
10684 msgid ""
10685 "L</inspect-get-package-format> and this function return the package format "
10686 "and package management tool used by the inspected operating system.  For "
10687 "example for Fedora these functions would return C<rpm> (package format) and "
10688 "C<yum> (package management)."
10689 msgstr ""
10690
10691 #. type: textblock
10692 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:3452
10693 msgid ""
10694 "This returns the string C<unknown> if we could not determine the package "
10695 "management tool I<or> if the operating system does not have a real packaging "
10696 "system (eg. Windows)."
10697 msgstr ""
10698
10699 #. type: textblock
10700 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3456
10701 msgid ""
10702 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10703 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10704 "versions of libguestfs may return other strings."
10705 msgstr ""
10706
10707 #. type: =head2
10708 #: ../fish/guestfish-actions.pod:2228
10709 msgid "inspect-get-product-name"
10710 msgstr "inspect-get-product-name"
10711
10712 #. type: verbatim
10713 #: ../fish/guestfish-actions.pod:2230
10714 #, no-wrap
10715 msgid ""
10716 " inspect-get-product-name root\n"
10717 "\n"
10718 msgstr ""
10719 " inspect-get-product-name корінь\n"
10720 "\n"
10721
10722 #. type: textblock
10723 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3474
10724 msgid ""
10725 "This returns the product name of the inspected operating system.  The "
10726 "product name is generally some freeform string which can be displayed to the "
10727 "user, but should not be parsed by programs."
10728 msgstr ""
10729
10730 #. type: textblock
10731 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3479
10732 msgid ""
10733 "If the product name could not be determined, then the string C<unknown> is "
10734 "returned."
10735 msgstr ""
10736
10737 #. type: =head2
10738 #: ../fish/guestfish-actions.pod:2242
10739 msgid "inspect-get-product-variant"
10740 msgstr ""
10741
10742 #. type: verbatim
10743 #: ../fish/guestfish-actions.pod:2244
10744 #, no-wrap
10745 msgid ""
10746 " inspect-get-product-variant root\n"
10747 "\n"
10748 msgstr ""
10749
10750 #. type: textblock
10751 #: ../fish/guestfish-actions.pod:2246 ../src/guestfs-actions.pod:3495
10752 msgid "This returns the product variant of the inspected operating system."
10753 msgstr ""
10754
10755 #. type: textblock
10756 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3498
10757 msgid ""
10758 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10759 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10760 "is usually a string such as C<Client> or C<Server> (other values are "
10761 "possible).  This can be used to distinguish consumer and enterprise versions "
10762 "of Windows that have the same version number (for example, Windows 7 and "
10763 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10764 "the latter is C<Server>)."
10765 msgstr ""
10766
10767 #. type: textblock
10768 #: ../fish/guestfish-actions.pod:2258 ../src/guestfs-actions.pod:3507
10769 msgid ""
10770 "For enterprise Linux guests, in future we intend this to return the product "
10771 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10772 "implemented at present."
10773 msgstr ""
10774
10775 #. type: textblock
10776 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3511
10777 msgid ""
10778 "If the product variant could not be determined, then the string C<unknown> "
10779 "is returned."
10780 msgstr ""
10781
10782 #. type: textblock
10783 #: ../fish/guestfish-actions.pod:2265
10784 msgid ""
10785 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10786 "get-product-name>, L</inspect-get-major-version>."
10787 msgstr ""
10788
10789 #. type: =head2
10790 #: ../fish/guestfish-actions.pod:2269
10791 msgid "inspect-get-roots"
10792 msgstr "inspect-get-roots"
10793
10794 #. type: verbatim
10795 #: ../fish/guestfish-actions.pod:2271
10796 #, no-wrap
10797 msgid ""
10798 " inspect-get-roots\n"
10799 "\n"
10800 msgstr ""
10801 " inspect-get-roots\n"
10802 "\n"
10803
10804 #. type: textblock
10805 #: ../fish/guestfish-actions.pod:2273
10806 msgid ""
10807 "This function is a convenient way to get the list of root devices, as "
10808 "returned from a previous call to L</inspect-os>, but without redoing the "
10809 "whole inspection process."
10810 msgstr ""
10811
10812 #. type: textblock
10813 #: ../fish/guestfish-actions.pod:2277
10814 msgid ""
10815 "This returns an empty list if either no root devices were found or the "
10816 "caller has not called L</inspect-os>."
10817 msgstr ""
10818
10819 #. type: =head2
10820 #: ../fish/guestfish-actions.pod:2282
10821 msgid "inspect-get-type"
10822 msgstr "inspect-get-type"
10823
10824 #. type: verbatim
10825 #: ../fish/guestfish-actions.pod:2284
10826 #, no-wrap
10827 msgid ""
10828 " inspect-get-type root\n"
10829 "\n"
10830 msgstr ""
10831 " inspect-get-type корінь\n"
10832 "\n"
10833
10834 #. type: textblock
10835 #: ../fish/guestfish-actions.pod:2286 ../src/guestfs-actions.pod:3549
10836 msgid ""
10837 "This returns the type of the inspected operating system.  Currently defined "
10838 "types are:"
10839 msgstr ""
10840
10841 #. type: =item
10842 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3554
10843 msgid "\"linux\""
10844 msgstr "\"linux\""
10845
10846 #. type: textblock
10847 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3556
10848 msgid "Any Linux-based operating system."
10849 msgstr ""
10850
10851 #. type: textblock
10852 #: ../fish/guestfish-actions.pod:2297 ../src/guestfs-actions.pod:3560
10853 msgid "Any Microsoft Windows operating system."
10854 msgstr ""
10855
10856 #. type: =item
10857 #: ../fish/guestfish-actions.pod:2299 ../src/guestfs-actions.pod:3562
10858 msgid "\"freebsd\""
10859 msgstr "\"freebsd\""
10860
10861 #. type: textblock
10862 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3564
10863 msgid "FreeBSD."
10864 msgstr "FreeBSD."
10865
10866 #. type: =item
10867 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3566
10868 msgid "\"netbsd\""
10869 msgstr ""
10870
10871 #. type: textblock
10872 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3568
10873 msgid "NetBSD."
10874 msgstr ""
10875
10876 #. type: textblock
10877 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3572
10878 msgid "The operating system type could not be determined."
10879 msgstr ""
10880
10881 #. type: =head2
10882 #: ../fish/guestfish-actions.pod:2318
10883 msgid "inspect-get-windows-current-control-set"
10884 msgstr ""
10885
10886 #. type: verbatim
10887 #: ../fish/guestfish-actions.pod:2320
10888 #, no-wrap
10889 msgid ""
10890 " inspect-get-windows-current-control-set root\n"
10891 "\n"
10892 msgstr ""
10893
10894 #. type: textblock
10895 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3592
10896 msgid ""
10897 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10898 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10899 msgstr ""
10900
10901 #. type: textblock
10902 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3595
10903 msgid ""
10904 "This call assumes that the guest is Windows and that the Registry could be "
10905 "examined by inspection.  If this is not the case then an error is returned."
10906 msgstr ""
10907
10908 #. type: =head2
10909 #: ../fish/guestfish-actions.pod:2331
10910 msgid "inspect-get-windows-systemroot"
10911 msgstr "inspect-get-windows-systemroot"
10912
10913 #. type: verbatim
10914 #: ../fish/guestfish-actions.pod:2333
10915 #, no-wrap
10916 msgid ""
10917 " inspect-get-windows-systemroot root\n"
10918 "\n"
10919 msgstr ""
10920 " inspect-get-windows-systemroot корінь\n"
10921 "\n"
10922
10923 #. type: textblock
10924 #: ../fish/guestfish-actions.pod:2335 ../src/guestfs-actions.pod:3612
10925 msgid ""
10926 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10927 "is a directory path such as C</WINDOWS>."
10928 msgstr ""
10929
10930 #. type: textblock
10931 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3615
10932 msgid ""
10933 "This call assumes that the guest is Windows and that the systemroot could be "
10934 "determined by inspection.  If this is not the case then an error is returned."
10935 msgstr ""
10936
10937 #. type: =head2
10938 #: ../fish/guestfish-actions.pod:2344
10939 msgid "inspect-is-live"
10940 msgstr "inspect-is-live"
10941
10942 #. type: verbatim
10943 #: ../fish/guestfish-actions.pod:2346
10944 #, no-wrap
10945 msgid ""
10946 " inspect-is-live root\n"
10947 "\n"
10948 msgstr ""
10949 " inspect-is-live корінь\n"
10950 "\n"
10951
10952 #. type: textblock
10953 #: ../fish/guestfish-actions.pod:2348
10954 msgid ""
10955 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10956 "then this returns true if a live image was detected on the disk."
10957 msgstr ""
10958
10959 #. type: =head2
10960 #: ../fish/guestfish-actions.pod:2354
10961 msgid "inspect-is-multipart"
10962 msgstr "inspect-is-multipart"
10963
10964 #. type: verbatim
10965 #: ../fish/guestfish-actions.pod:2356
10966 #, no-wrap
10967 msgid ""
10968 " inspect-is-multipart root\n"
10969 "\n"
10970 msgstr ""
10971 " inspect-is-multipart корінь\n"
10972 "\n"
10973
10974 #. type: textblock
10975 #: ../fish/guestfish-actions.pod:2358
10976 msgid ""
10977 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10978 "then this returns true if the disk is part of a set."
10979 msgstr ""
10980
10981 #. type: =head2
10982 #: ../fish/guestfish-actions.pod:2364
10983 msgid "inspect-is-netinst"
10984 msgstr "inspect-is-netinst"
10985
10986 #. type: verbatim
10987 #: ../fish/guestfish-actions.pod:2366
10988 #, no-wrap
10989 msgid ""
10990 " inspect-is-netinst root\n"
10991 "\n"
10992 msgstr ""
10993 " inspect-is-netinst корінь\n"
10994 "\n"
10995
10996 #. type: textblock
10997 #: ../fish/guestfish-actions.pod:2368
10998 msgid ""
10999 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11000 "then this returns true if the disk is a network installer, ie. not a self-"
11001 "contained install CD but one which is likely to require network access to "
11002 "complete the install."
11003 msgstr ""
11004
11005 #. type: =head2
11006 #: ../fish/guestfish-actions.pod:2376
11007 msgid "inspect-list-applications"
11008 msgstr "inspect-list-applications"
11009
11010 #. type: verbatim
11011 #: ../fish/guestfish-actions.pod:2378
11012 #, no-wrap
11013 msgid ""
11014 " inspect-list-applications root\n"
11015 "\n"
11016 msgstr ""
11017 " inspect-list-applications кореневий_каталог\n"
11018 "\n"
11019
11020 #. type: textblock
11021 #: ../fish/guestfish-actions.pod:2380 ../src/guestfs-actions.pod:3682
11022 msgid "Return the list of applications installed in the operating system."
11023 msgstr ""
11024
11025 #. type: textblock
11026 #: ../fish/guestfish-actions.pod:2382
11027 msgid ""
11028 "I<Note:> This call works differently from other parts of the inspection "
11029 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11030 "then mount up the disks, before calling this.  Listing applications is a "
11031 "significantly more difficult operation which requires access to the full "
11032 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
11033 "are just returning data cached in the libguestfs handle, this call actually "
11034 "reads parts of the mounted filesystems during the call."
11035 msgstr ""
11036
11037 #. type: textblock
11038 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3694
11039 msgid ""
11040 "This returns an empty list if the inspection code was not able to determine "
11041 "the list of applications."
11042 msgstr ""
11043
11044 #. type: textblock
11045 #: ../fish/guestfish-actions.pod:2395 ../src/guestfs-actions.pod:3697
11046 msgid "The application structure contains the following fields:"
11047 msgstr ""
11048
11049 #. type: =item
11050 #: ../fish/guestfish-actions.pod:2399 ../src/guestfs-actions.pod:3701
11051 msgid "C<app_name>"
11052 msgstr "C<app_name>"
11053
11054 #. type: textblock
11055 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3703
11056 msgid ""
11057 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11058 "guests, this is the package name."
11059 msgstr ""
11060
11061 #. type: =item
11062 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3706
11063 msgid "C<app_display_name>"
11064 msgstr "C<app_display_name>"
11065
11066 #. type: textblock
11067 #: ../fish/guestfish-actions.pod:2406 ../src/guestfs-actions.pod:3708
11068 msgid ""
11069 "The display name of the application, sometimes localized to the install "
11070 "language of the guest operating system."
11071 msgstr ""
11072
11073 #. type: textblock
11074 #: ../fish/guestfish-actions.pod:2409 ../src/guestfs-actions.pod:3711
11075 msgid ""
11076 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11077 "to display something can use C<app_name> instead."
11078 msgstr ""
11079
11080 #. type: =item
11081 #: ../fish/guestfish-actions.pod:2412 ../src/guestfs-actions.pod:3714
11082 msgid "C<app_epoch>"
11083 msgstr "C<app_epoch>"
11084
11085 #. type: textblock
11086 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:3716
11087 msgid ""
11088 "For package managers which use epochs, this contains the epoch of the "
11089 "package (an integer).  If unavailable, this is returned as C<0>."
11090 msgstr ""
11091
11092 #. type: =item
11093 #: ../fish/guestfish-actions.pod:2417 ../src/guestfs-actions.pod:3719
11094 msgid "C<app_version>"
11095 msgstr "C<app_version>"
11096
11097 #. type: textblock
11098 #: ../fish/guestfish-actions.pod:2419 ../src/guestfs-actions.pod:3721
11099 msgid ""
11100 "The version string of the application or package.  If unavailable this is "
11101 "returned as an empty string C<\"\">."
11102 msgstr ""
11103
11104 #. type: =item
11105 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3724
11106 msgid "C<app_release>"
11107 msgstr "C<app_release>"
11108
11109 #. type: textblock
11110 #: ../fish/guestfish-actions.pod:2424 ../src/guestfs-actions.pod:3726
11111 msgid ""
11112 "The release string of the application or package, for package managers that "
11113 "use this.  If unavailable this is returned as an empty string C<\"\">."
11114 msgstr ""
11115
11116 #. type: =item
11117 #: ../fish/guestfish-actions.pod:2428 ../src/guestfs-actions.pod:3730
11118 msgid "C<app_install_path>"
11119 msgstr "C<app_install_path>"
11120
11121 #. type: textblock
11122 #: ../fish/guestfish-actions.pod:2430 ../src/guestfs-actions.pod:3732
11123 msgid ""
11124 "The installation path of the application (on operating systems such as "
11125 "Windows which use installation paths).  This path is in the format used by "
11126 "the guest operating system, it is not a libguestfs path."
11127 msgstr ""
11128
11129 #. type: textblock
11130 #: ../fish/guestfish-actions.pod:2435 ../src/guestfs-actions.pod:3737
11131 msgid "If unavailable this is returned as an empty string C<\"\">."
11132 msgstr ""
11133
11134 #. type: =item
11135 #: ../fish/guestfish-actions.pod:2437 ../src/guestfs-actions.pod:3739
11136 msgid "C<app_trans_path>"
11137 msgstr "C<app_trans_path>"
11138
11139 #. type: textblock
11140 #: ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:3741
11141 msgid ""
11142 "The install path translated into a libguestfs path.  If unavailable this is "
11143 "returned as an empty string C<\"\">."
11144 msgstr ""
11145
11146 #. type: =item
11147 #: ../fish/guestfish-actions.pod:2442 ../src/guestfs-actions.pod:3744
11148 msgid "C<app_publisher>"
11149 msgstr "C<app_publisher>"
11150
11151 #. type: textblock
11152 #: ../fish/guestfish-actions.pod:2444 ../src/guestfs-actions.pod:3746
11153 msgid ""
11154 "The name of the publisher of the application, for package managers that use "
11155 "this.  If unavailable this is returned as an empty string C<\"\">."
11156 msgstr ""
11157
11158 #. type: =item
11159 #: ../fish/guestfish-actions.pod:2448 ../src/guestfs-actions.pod:3750
11160 msgid "C<app_url>"
11161 msgstr "C<app_url>"
11162
11163 #. type: textblock
11164 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3752
11165 msgid ""
11166 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11167 "returned as an empty string C<\"\">."
11168 msgstr ""
11169
11170 #. type: =item
11171 #: ../fish/guestfish-actions.pod:2453 ../src/guestfs-actions.pod:3755
11172 msgid "C<app_source_package>"
11173 msgstr "C<app_source_package>"
11174
11175 #. type: textblock
11176 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3757
11177 msgid ""
11178 "For packaging systems which support this, the name of the source package.  "
11179 "If unavailable this is returned as an empty string C<\"\">."
11180 msgstr ""
11181
11182 #. type: =item
11183 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3760
11184 msgid "C<app_summary>"
11185 msgstr "C<app_summary>"
11186
11187 #. type: textblock
11188 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3762
11189 msgid ""
11190 "A short (usually one line) description of the application or package.  If "
11191 "unavailable this is returned as an empty string C<\"\">."
11192 msgstr ""
11193
11194 #. type: =item
11195 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3765
11196 msgid "C<app_description>"
11197 msgstr "C<app_description>"
11198
11199 #. type: textblock
11200 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3767
11201 msgid ""
11202 "A longer description of the application or package.  If unavailable this is "
11203 "returned as an empty string C<\"\">."
11204 msgstr ""
11205
11206 #. type: =head2
11207 #: ../fish/guestfish-actions.pod:2472
11208 msgid "inspect-os"
11209 msgstr "inspect-os"
11210
11211 #. type: verbatim
11212 #: ../fish/guestfish-actions.pod:2474
11213 #, no-wrap
11214 msgid ""
11215 " inspect-os\n"
11216 "\n"
11217 msgstr ""
11218 " inspect-os\n"
11219 "\n"
11220
11221 #. type: textblock
11222 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3785
11223 msgid ""
11224 "This function uses other libguestfs functions and certain heuristics to "
11225 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11226 "for operating systems."
11227 msgstr ""
11228
11229 #. type: textblock
11230 #: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3789
11231 msgid "The list returned is empty if no operating systems were found."
11232 msgstr ""
11233
11234 #. type: textblock
11235 #: ../fish/guestfish-actions.pod:2482 ../src/guestfs-actions.pod:3791
11236 msgid ""
11237 "If one operating system was found, then this returns a list with a single "
11238 "element, which is the name of the root filesystem of this operating system.  "
11239 "It is also possible for this function to return a list containing more than "
11240 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11241 "element being the root filesystem of one of the operating systems."
11242 msgstr ""
11243
11244 #. type: textblock
11245 #: ../fish/guestfish-actions.pod:2489
11246 msgid ""
11247 "You can pass the root string(s) returned to other L</inspect-get-*> "
11248 "functions in order to query further information about each operating system, "
11249 "such as the name and version."
11250 msgstr ""
11251
11252 #. type: textblock
11253 #: ../fish/guestfish-actions.pod:2494
11254 msgid ""
11255 "This function uses other libguestfs features such as L</mount-ro> and L</"
11256 "umount-all> in order to mount and unmount filesystems and look at the "
11257 "contents.  This should be called with no disks currently mounted.  The "
11258 "function may also use Augeas, so any existing Augeas handle will be closed."
11259 msgstr ""
11260
11261 #. type: textblock
11262 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3809
11263 msgid ""
11264 "This function cannot decrypt encrypted disks.  The caller must do that first "
11265 "(supplying the necessary keys) if the disk is encrypted."
11266 msgstr ""
11267
11268 #. type: textblock
11269 #: ../fish/guestfish-actions.pod:2506 ../fish/guestfish-actions.pod:2704
11270 #: ../fish/guestfish-actions.pod:2763
11271 msgid "See also L</list-filesystems>."
11272 msgstr "Див. також L</list-filesystems>."
11273
11274 #. type: =head2
11275 #: ../fish/guestfish-actions.pod:2508
11276 msgid "is-blockdev"
11277 msgstr "is-blockdev"
11278
11279 #. type: verbatim
11280 #: ../fish/guestfish-actions.pod:2510
11281 #, no-wrap
11282 msgid ""
11283 " is-blockdev path\n"
11284 "\n"
11285 msgstr ""
11286 " is-blockdev шлях\n"
11287 "\n"
11288
11289 #. type: textblock
11290 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3829
11291 msgid ""
11292 "This returns C<true> if and only if there is a block device with the given "
11293 "C<path> name."
11294 msgstr ""
11295
11296 #. type: textblock
11297 #: ../fish/guestfish-actions.pod:2515 ../fish/guestfish-actions.pod:2533
11298 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2561
11299 #: ../fish/guestfish-actions.pod:2571 ../fish/guestfish-actions.pod:2605
11300 #: ../fish/guestfish-actions.pod:2614
11301 msgid "See also L</stat>."
11302 msgstr "Див. також L</stat>."
11303
11304 #. type: =head2
11305 #: ../fish/guestfish-actions.pod:2517
11306 msgid "is-busy"
11307 msgstr "is-busy"
11308
11309 #. type: verbatim
11310 #: ../fish/guestfish-actions.pod:2519
11311 #, no-wrap
11312 msgid ""
11313 " is-busy\n"
11314 "\n"
11315 msgstr ""
11316 " is-busy\n"
11317 "\n"
11318
11319 #. type: textblock
11320 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3843
11321 msgid ""
11322 "This returns true iff this handle is busy processing a command (in the "
11323 "C<BUSY> state)."
11324 msgstr ""
11325
11326 #. type: =head2
11327 #: ../fish/guestfish-actions.pod:2526
11328 msgid "is-chardev"
11329 msgstr "is-chardev"
11330
11331 #. type: verbatim
11332 #: ../fish/guestfish-actions.pod:2528
11333 #, no-wrap
11334 msgid ""
11335 " is-chardev path\n"
11336 "\n"
11337 msgstr ""
11338 " is-chardev шлях\n"
11339 "\n"
11340
11341 #. type: textblock
11342 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3858
11343 msgid ""
11344 "This returns C<true> if and only if there is a character device with the "
11345 "given C<path> name."
11346 msgstr ""
11347
11348 #. type: =head2
11349 #: ../fish/guestfish-actions.pod:2535
11350 msgid "is-config"
11351 msgstr "is-config"
11352
11353 #. type: verbatim
11354 #: ../fish/guestfish-actions.pod:2537
11355 #, no-wrap
11356 msgid ""
11357 " is-config\n"
11358 "\n"
11359 msgstr ""
11360 " is-config\n"
11361 "\n"
11362
11363 #. type: textblock
11364 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3872
11365 msgid ""
11366 "This returns true iff this handle is being configured (in the C<CONFIG> "
11367 "state)."
11368 msgstr ""
11369
11370 #. type: =head2
11371 #: ../fish/guestfish-actions.pod:2544
11372 msgid "is-dir"
11373 msgstr "is-dir"
11374
11375 #. type: verbatim
11376 #: ../fish/guestfish-actions.pod:2546
11377 #, no-wrap
11378 msgid ""
11379 " is-dir path\n"
11380 "\n"
11381 msgstr ""
11382 " is-dir шлях\n"
11383 "\n"
11384
11385 #. type: textblock
11386 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3887
11387 msgid ""
11388 "This returns C<true> if and only if there is a directory with the given "
11389 "C<path> name.  Note that it returns false for other objects like files."
11390 msgstr ""
11391
11392 #. type: =head2
11393 #: ../fish/guestfish-actions.pod:2554
11394 msgid "is-fifo"
11395 msgstr "is-fifo"
11396
11397 #. type: verbatim
11398 #: ../fish/guestfish-actions.pod:2556
11399 #, no-wrap
11400 msgid ""
11401 " is-fifo path\n"
11402 "\n"
11403 msgstr ""
11404 " is-fifo шлях\n"
11405 "\n"
11406
11407 #. type: textblock
11408 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3903
11409 msgid ""
11410 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11411 "given C<path> name."
11412 msgstr ""
11413
11414 #. type: =head2
11415 #: ../fish/guestfish-actions.pod:2563
11416 msgid "is-file"
11417 msgstr "is-file"
11418
11419 #. type: verbatim
11420 #: ../fish/guestfish-actions.pod:2565
11421 #, no-wrap
11422 msgid ""
11423 " is-file path\n"
11424 "\n"
11425 msgstr ""
11426 " is-file шлях\n"
11427 "\n"
11428
11429 #. type: textblock
11430 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3918
11431 msgid ""
11432 "This returns C<true> if and only if there is a regular file with the given "
11433 "C<path> name.  Note that it returns false for other objects like directories."
11434 msgstr ""
11435
11436 #. type: =head2
11437 #: ../fish/guestfish-actions.pod:2573
11438 msgid "is-launching"
11439 msgstr "is-launching"
11440
11441 #. type: verbatim
11442 #: ../fish/guestfish-actions.pod:2575
11443 #, no-wrap
11444 msgid ""
11445 " is-launching\n"
11446 "\n"
11447 msgstr ""
11448 " is-launching\n"
11449 "\n"
11450
11451 #. type: textblock
11452 #: ../fish/guestfish-actions.pod:2577 ../src/guestfs-actions.pod:3933
11453 msgid ""
11454 "This returns true iff this handle is launching the subprocess (in the "
11455 "C<LAUNCHING> state)."
11456 msgstr ""
11457
11458 #. type: =head2
11459 #: ../fish/guestfish-actions.pod:2582
11460 msgid "is-lv"
11461 msgstr "is-lv"
11462
11463 #. type: verbatim
11464 #: ../fish/guestfish-actions.pod:2584
11465 #, no-wrap
11466 msgid ""
11467 " is-lv device\n"
11468 "\n"
11469 msgstr ""
11470 " is-lv пристрій\n"
11471 "\n"
11472
11473 #. type: textblock
11474 #: ../fish/guestfish-actions.pod:2586 ../src/guestfs-actions.pod:3948
11475 msgid ""
11476 "This command tests whether C<device> is a logical volume, and returns true "
11477 "iff this is the case."
11478 msgstr ""
11479
11480 #. type: =head2
11481 #: ../fish/guestfish-actions.pod:2589
11482 msgid "is-ready"
11483 msgstr "is-ready"
11484
11485 #. type: verbatim
11486 #: ../fish/guestfish-actions.pod:2591
11487 #, no-wrap
11488 msgid ""
11489 " is-ready\n"
11490 "\n"
11491 msgstr ""
11492 " is-ready\n"
11493 "\n"
11494
11495 #. type: textblock
11496 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3960
11497 msgid ""
11498 "This returns true iff this handle is ready to accept commands (in the "
11499 "C<READY> state)."
11500 msgstr ""
11501
11502 #. type: =head2
11503 #: ../fish/guestfish-actions.pod:2598
11504 msgid "is-socket"
11505 msgstr "is-socket"
11506
11507 #. type: verbatim
11508 #: ../fish/guestfish-actions.pod:2600
11509 #, no-wrap
11510 msgid ""
11511 " is-socket path\n"
11512 "\n"
11513 msgstr ""
11514 " is-socket шлях\n"
11515 "\n"
11516
11517 #. type: textblock
11518 #: ../fish/guestfish-actions.pod:2602 ../src/guestfs-actions.pod:3975
11519 msgid ""
11520 "This returns C<true> if and only if there is a Unix domain socket with the "
11521 "given C<path> name."
11522 msgstr ""
11523
11524 #. type: =head2
11525 #: ../fish/guestfish-actions.pod:2607
11526 msgid "is-symlink"
11527 msgstr "is-symlink"
11528
11529 #. type: verbatim
11530 #: ../fish/guestfish-actions.pod:2609
11531 #, no-wrap
11532 msgid ""
11533 " is-symlink path\n"
11534 "\n"
11535 msgstr ""
11536 " is-symlink шлях\n"
11537 "\n"
11538
11539 #. type: textblock
11540 #: ../fish/guestfish-actions.pod:2611 ../src/guestfs-actions.pod:3990
11541 msgid ""
11542 "This returns C<true> if and only if there is a symbolic link with the given "
11543 "C<path> name."
11544 msgstr ""
11545
11546 #. type: =head2
11547 #: ../fish/guestfish-actions.pod:2616
11548 msgid "is-zero"
11549 msgstr ""
11550
11551 #. type: verbatim
11552 #: ../fish/guestfish-actions.pod:2618
11553 #, no-wrap
11554 msgid ""
11555 " is-zero path\n"
11556 "\n"
11557 msgstr ""
11558
11559 #. type: textblock
11560 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:4005
11561 msgid ""
11562 "This returns true iff the file exists and the file is empty or it contains "
11563 "all zero bytes."
11564 msgstr ""
11565
11566 #. type: =head2
11567 #: ../fish/guestfish-actions.pod:2623
11568 msgid "is-zero-device"
11569 msgstr ""
11570
11571 #. type: verbatim
11572 #: ../fish/guestfish-actions.pod:2625
11573 #, no-wrap
11574 msgid ""
11575 " is-zero-device device\n"
11576 "\n"
11577 msgstr ""
11578
11579 #. type: textblock
11580 #: ../fish/guestfish-actions.pod:2627 ../src/guestfs-actions.pod:4018
11581 msgid "This returns true iff the device exists and contains all zero bytes."
11582 msgstr ""
11583
11584 #. type: textblock
11585 #: ../fish/guestfish-actions.pod:2629 ../src/guestfs-actions.pod:4020
11586 msgid "Note that for large devices this can take a long time to run."
11587 msgstr ""
11588
11589 #. type: =head2
11590 #: ../fish/guestfish-actions.pod:2631
11591 msgid "kill-subprocess"
11592 msgstr "kill-subprocess"
11593
11594 #. type: verbatim
11595 #: ../fish/guestfish-actions.pod:2633
11596 #, no-wrap
11597 msgid ""
11598 " kill-subprocess\n"
11599 "\n"
11600 msgstr ""
11601 " kill-subprocess\n"
11602 "\n"
11603
11604 #. type: textblock
11605 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:4031
11606 msgid "This kills the qemu subprocess.  You should never need to call this."
11607 msgstr ""
11608
11609 #. type: =head2
11610 #: ../fish/guestfish-actions.pod:2637
11611 msgid "launch"
11612 msgstr "launch"
11613
11614 #. type: =head2
11615 #: ../fish/guestfish-actions.pod:2639
11616 msgid "run"
11617 msgstr ""
11618
11619 #. type: verbatim
11620 #: ../fish/guestfish-actions.pod:2641
11621 #, no-wrap
11622 msgid ""
11623 " launch\n"
11624 "\n"
11625 msgstr ""
11626 " launch\n"
11627 "\n"
11628
11629 #. type: textblock
11630 #: ../fish/guestfish-actions.pod:2643 ../src/guestfs-actions.pod:4042
11631 msgid ""
11632 "Internally libguestfs is implemented by running a virtual machine using "
11633 "L<qemu(1)>."
11634 msgstr ""
11635
11636 #. type: textblock
11637 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:4045
11638 msgid ""
11639 "You should call this after configuring the handle (eg. adding drives) but "
11640 "before performing any actions."
11641 msgstr ""
11642
11643 #. type: =head2
11644 #: ../fish/guestfish-actions.pod:2649
11645 msgid "lchown"
11646 msgstr "lchown"
11647
11648 #. type: verbatim
11649 #: ../fish/guestfish-actions.pod:2651
11650 #, no-wrap
11651 msgid ""
11652 " lchown owner group path\n"
11653 "\n"
11654 msgstr ""
11655 " lchown власник група шлях\n"
11656 "\n"
11657
11658 #. type: textblock
11659 #: ../fish/guestfish-actions.pod:2653
11660 msgid ""
11661 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11662 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11663 "target."
11664 msgstr ""
11665
11666 #. type: =head2
11667 #: ../fish/guestfish-actions.pod:2661
11668 msgid "lgetxattr"
11669 msgstr "lgetxattr"
11670
11671 #. type: verbatim
11672 #: ../fish/guestfish-actions.pod:2663
11673 #, no-wrap
11674 msgid ""
11675 " lgetxattr path name\n"
11676 "\n"
11677 msgstr ""
11678 " lgetxattr шлях назва\n"
11679 "\n"
11680
11681 #. type: textblock
11682 #: ../fish/guestfish-actions.pod:2665 ../src/guestfs-actions.pod:4085
11683 msgid ""
11684 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11685 "is a symlink, then this call returns an extended attribute from the symlink."
11686 msgstr ""
11687
11688 #. type: textblock
11689 #: ../fish/guestfish-actions.pod:2679
11690 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11691 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11692
11693 #. type: =head2
11694 #: ../fish/guestfish-actions.pod:2681
11695 msgid "lgetxattrs"
11696 msgstr "lgetxattrs"
11697
11698 #. type: verbatim
11699 #: ../fish/guestfish-actions.pod:2683
11700 #, no-wrap
11701 msgid ""
11702 " lgetxattrs path\n"
11703 "\n"
11704 msgstr ""
11705 " lgetxattrs шлях\n"
11706 "\n"
11707
11708 #. type: textblock
11709 #: ../fish/guestfish-actions.pod:2685
11710 msgid ""
11711 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11712 "it returns the extended attributes of the link itself."
11713 msgstr ""
11714
11715 #. type: =head2
11716 #: ../fish/guestfish-actions.pod:2689
11717 msgid "list-9p"
11718 msgstr ""
11719
11720 #. type: verbatim
11721 #: ../fish/guestfish-actions.pod:2691
11722 #, no-wrap
11723 msgid ""
11724 " list-9p\n"
11725 "\n"
11726 msgstr ""
11727
11728 #. type: textblock
11729 #: ../fish/guestfish-actions.pod:2693 ../src/guestfs-actions.pod:4128
11730 msgid ""
11731 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11732 "returned."
11733 msgstr ""
11734
11735 #. type: =head2
11736 #: ../fish/guestfish-actions.pod:2696
11737 msgid "list-devices"
11738 msgstr "list-devices"
11739
11740 #. type: verbatim
11741 #: ../fish/guestfish-actions.pod:2698
11742 #, no-wrap
11743 msgid ""
11744 " list-devices\n"
11745 "\n"
11746 msgstr ""
11747 " list-devices\n"
11748 "\n"
11749
11750 #. type: textblock
11751 #: ../fish/guestfish-actions.pod:2700 ../src/guestfs-actions.pod:4142
11752 msgid "List all the block devices."
11753 msgstr ""
11754
11755 #. type: textblock
11756 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4144
11757 msgid "The full block device names are returned, eg. C</dev/sda>."
11758 msgstr ""
11759
11760 #. type: =head2
11761 #: ../fish/guestfish-actions.pod:2706
11762 msgid "list-dm-devices"
11763 msgstr ""
11764
11765 #. type: verbatim
11766 #: ../fish/guestfish-actions.pod:2708
11767 #, no-wrap
11768 msgid ""
11769 " list-dm-devices\n"
11770 "\n"
11771 msgstr ""
11772
11773 #. type: textblock
11774 #: ../fish/guestfish-actions.pod:2710 ../src/guestfs-actions.pod:4159
11775 msgid "List all device mapper devices."
11776 msgstr ""
11777
11778 #. type: textblock
11779 #: ../fish/guestfish-actions.pod:2712
11780 msgid ""
11781 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11782 "previous call to L</luks-open>."
11783 msgstr ""
11784
11785 #. type: textblock
11786 #: ../fish/guestfish-actions.pod:2715
11787 msgid ""
11788 "Device mapper devices which correspond to logical volumes are I<not> "
11789 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11790 msgstr ""
11791
11792 #. type: =head2
11793 #: ../fish/guestfish-actions.pod:2719
11794 msgid "list-filesystems"
11795 msgstr "list-filesystems"
11796
11797 #. type: verbatim
11798 #: ../fish/guestfish-actions.pod:2721
11799 #, no-wrap
11800 msgid ""
11801 " list-filesystems\n"
11802 "\n"
11803 msgstr ""
11804 " list-filesystems\n"
11805 "\n"
11806
11807 #. type: textblock
11808 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4179
11809 msgid ""
11810 "This inspection command looks for filesystems on partitions, block devices "
11811 "and logical volumes, returning a list of devices containing filesystems and "
11812 "their type."
11813 msgstr ""
11814
11815 #. type: textblock
11816 #: ../fish/guestfish-actions.pod:2727 ../src/guestfs-actions.pod:4183
11817 msgid ""
11818 "The return value is a hash, where the keys are the devices containing "
11819 "filesystems, and the values are the filesystem types.  For example:"
11820 msgstr ""
11821
11822 #. type: verbatim
11823 #: ../fish/guestfish-actions.pod:2731 ../src/guestfs-actions.pod:4187
11824 #, no-wrap
11825 msgid ""
11826 " \"/dev/sda1\" => \"ntfs\"\n"
11827 " \"/dev/sda2\" => \"ext2\"\n"
11828 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11829 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11830 "\n"
11831 msgstr ""
11832
11833 #. type: textblock
11834 #: ../fish/guestfish-actions.pod:2736 ../src/guestfs-actions.pod:4192
11835 msgid ""
11836 "The value can have the special value \"unknown\", meaning the content of the "
11837 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11838 msgstr ""
11839
11840 #. type: textblock
11841 #: ../fish/guestfish-actions.pod:2740
11842 msgid ""
11843 "This command runs other libguestfs commands, which might include L</mount> "
11844 "and L</umount>, and therefore you should use this soon after launch and only "
11845 "when nothing is mounted."
11846 msgstr ""
11847
11848 #. type: textblock
11849 #: ../fish/guestfish-actions.pod:2744
11850 msgid ""
11851 "Not all of the filesystems returned will be mountable.  In particular, swap "
11852 "partitions are returned in the list.  Also this command does not check that "
11853 "each filesystem found is valid and mountable, and some filesystems might be "
11854 "mountable but require special options.  Filesystems may not all belong to a "
11855 "single logical operating system (use L</inspect-os> to look for OSes)."
11856 msgstr ""
11857
11858 #. type: =head2
11859 #: ../fish/guestfish-actions.pod:2752
11860 msgid "list-partitions"
11861 msgstr "list-partitions"
11862
11863 #. type: verbatim
11864 #: ../fish/guestfish-actions.pod:2754
11865 #, no-wrap
11866 msgid ""
11867 " list-partitions\n"
11868 "\n"
11869 msgstr ""
11870 " list-partitions\n"
11871 "\n"
11872
11873 #. type: textblock
11874 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4221
11875 msgid "List all the partitions detected on all block devices."
11876 msgstr ""
11877
11878 #. type: textblock
11879 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4223
11880 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11881 msgstr ""
11882
11883 #. type: textblock
11884 #: ../fish/guestfish-actions.pod:2760
11885 msgid ""
11886 "This does not return logical volumes.  For that you will need to call L</"
11887 "lvs>."
11888 msgstr ""
11889
11890 #. type: =head2
11891 #: ../fish/guestfish-actions.pod:2765
11892 msgid "ll"
11893 msgstr "ll"
11894
11895 #. type: verbatim
11896 #: ../fish/guestfish-actions.pod:2767
11897 #, no-wrap
11898 msgid ""
11899 " ll directory\n"
11900 "\n"
11901 msgstr ""
11902 " ll каталог\n"
11903 "\n"
11904
11905 #. type: textblock
11906 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4242
11907 msgid ""
11908 "List the files in C<directory> (relative to the root directory, there is no "
11909 "cwd) in the format of 'ls -la'."
11910 msgstr ""
11911
11912 #. type: textblock
11913 #: ../fish/guestfish-actions.pod:2772 ../src/guestfs-actions.pod:4245
11914 msgid ""
11915 "This command is mostly useful for interactive sessions.  It is I<not> "
11916 "intended that you try to parse the output string."
11917 msgstr ""
11918
11919 #. type: =head2
11920 #: ../fish/guestfish-actions.pod:2775
11921 msgid "ln"
11922 msgstr "ln"
11923
11924 #. type: verbatim
11925 #: ../fish/guestfish-actions.pod:2777
11926 #, no-wrap
11927 msgid ""
11928 " ln target linkname\n"
11929 "\n"
11930 msgstr ""
11931 " ln призначення назва_посилання\n"
11932 "\n"
11933
11934 #. type: textblock
11935 #: ../fish/guestfish-actions.pod:2779 ../src/guestfs-actions.pod:4260
11936 msgid "This command creates a hard link using the C<ln> command."
11937 msgstr ""
11938
11939 #. type: =head2
11940 #: ../fish/guestfish-actions.pod:2781
11941 msgid "ln-f"
11942 msgstr "ln-f"
11943
11944 #. type: verbatim
11945 #: ../fish/guestfish-actions.pod:2783
11946 #, no-wrap
11947 msgid ""
11948 " ln-f target linkname\n"
11949 "\n"
11950 msgstr ""
11951 " ln-f призначення назва_посилання\n"
11952 "\n"
11953
11954 #. type: textblock
11955 #: ../fish/guestfish-actions.pod:2785 ../src/guestfs-actions.pod:4273
11956 msgid ""
11957 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11958 "option removes the link (C<linkname>) if it exists already."
11959 msgstr ""
11960
11961 #. type: =head2
11962 #: ../fish/guestfish-actions.pod:2788
11963 msgid "ln-s"
11964 msgstr "ln-s"
11965
11966 #. type: verbatim
11967 #: ../fish/guestfish-actions.pod:2790
11968 #, no-wrap
11969 msgid ""
11970 " ln-s target linkname\n"
11971 "\n"
11972 msgstr ""
11973 " ln-s призначення назва_посилання\n"
11974 "\n"
11975
11976 #. type: textblock
11977 #: ../fish/guestfish-actions.pod:2792 ../src/guestfs-actions.pod:4287
11978 msgid "This command creates a symbolic link using the C<ln -s> command."
11979 msgstr ""
11980
11981 #. type: =head2
11982 #: ../fish/guestfish-actions.pod:2794
11983 msgid "ln-sf"
11984 msgstr "ln-sf"
11985
11986 #. type: verbatim
11987 #: ../fish/guestfish-actions.pod:2796
11988 #, no-wrap
11989 msgid ""
11990 " ln-sf target linkname\n"
11991 "\n"
11992 msgstr ""
11993 " ln-sf призначення назва_посилання\n"
11994 "\n"
11995
11996 #. type: textblock
11997 #: ../fish/guestfish-actions.pod:2798 ../src/guestfs-actions.pod:4300
11998 msgid ""
11999 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12000 "option removes the link (C<linkname>) if it exists already."
12001 msgstr ""
12002
12003 #. type: =head2
12004 #: ../fish/guestfish-actions.pod:2801
12005 msgid "lremovexattr"
12006 msgstr "lremovexattr"
12007
12008 #. type: verbatim
12009 #: ../fish/guestfish-actions.pod:2803
12010 #, no-wrap
12011 msgid ""
12012 " lremovexattr xattr path\n"
12013 "\n"
12014 msgstr ""
12015
12016 #. type: textblock
12017 #: ../fish/guestfish-actions.pod:2805
12018 msgid ""
12019 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12020 "it removes an extended attribute of the link itself."
12021 msgstr ""
12022
12023 #. type: =head2
12024 #: ../fish/guestfish-actions.pod:2809
12025 msgid "ls"
12026 msgstr "ls"
12027
12028 #. type: verbatim
12029 #: ../fish/guestfish-actions.pod:2811
12030 #, no-wrap
12031 msgid ""
12032 " ls directory\n"
12033 "\n"
12034 msgstr ""
12035 " ls каталог\n"
12036 "\n"
12037
12038 #. type: textblock
12039 #: ../fish/guestfish-actions.pod:2813 ../src/guestfs-actions.pod:4328
12040 msgid ""
12041 "List the files in C<directory> (relative to the root directory, there is no "
12042 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12043 msgstr ""
12044
12045 #. type: textblock
12046 #: ../fish/guestfish-actions.pod:2817
12047 msgid ""
12048 "This command is mostly useful for interactive sessions.  Programs should "
12049 "probably use L</readdir> instead."
12050 msgstr ""
12051
12052 #. type: =head2
12053 #: ../fish/guestfish-actions.pod:2820
12054 msgid "lsetxattr"
12055 msgstr "lsetxattr"
12056
12057 #. type: verbatim
12058 #: ../fish/guestfish-actions.pod:2822
12059 #, no-wrap
12060 msgid ""
12061 " lsetxattr xattr val vallen path\n"
12062 "\n"
12063 msgstr ""
12064
12065 #. type: textblock
12066 #: ../fish/guestfish-actions.pod:2824
12067 msgid ""
12068 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
12069 "sets an extended attribute of the link itself."
12070 msgstr ""
12071
12072 #. type: =head2
12073 #: ../fish/guestfish-actions.pod:2828
12074 msgid "lstat"
12075 msgstr "lstat"
12076
12077 #. type: verbatim
12078 #: ../fish/guestfish-actions.pod:2830
12079 #, no-wrap
12080 msgid ""
12081 " lstat path\n"
12082 "\n"
12083 msgstr ""
12084 " lstat шлях\n"
12085 "\n"
12086
12087 #. type: textblock
12088 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:4656
12089 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:7167
12090 msgid "Returns file information for the given C<path>."
12091 msgstr ""
12092
12093 #. type: textblock
12094 #: ../fish/guestfish-actions.pod:2834
12095 msgid ""
12096 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
12097 "the link is stat-ed, not the file it refers to."
12098 msgstr ""
12099
12100 #. type: textblock
12101 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4370
12102 msgid "This is the same as the C<lstat(2)> system call."
12103 msgstr ""
12104
12105 #. type: =head2
12106 #: ../fish/guestfish-actions.pod:2840
12107 msgid "lstatlist"
12108 msgstr "lstatlist"
12109
12110 #. type: verbatim
12111 #: ../fish/guestfish-actions.pod:2842
12112 #, no-wrap
12113 msgid ""
12114 " lstatlist path 'names ...'\n"
12115 "\n"
12116 msgstr ""
12117
12118 #. type: textblock
12119 #: ../fish/guestfish-actions.pod:2844
12120 msgid ""
12121 "This call allows you to perform the L</lstat> operation on multiple files, "
12122 "where all files are in the directory C<path>.  C<names> is the list of files "
12123 "from this directory."
12124 msgstr ""
12125
12126 #. type: textblock
12127 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4389
12128 msgid ""
12129 "On return you get a list of stat structs, with a one-to-one correspondence "
12130 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12131 "then the C<ino> field of that structure is set to C<-1>."
12132 msgstr ""
12133
12134 #. type: textblock
12135 #: ../fish/guestfish-actions.pod:2853
12136 msgid ""
12137 "This call is intended for programs that want to efficiently list a directory "
12138 "contents without making many round-trips.  See also L</lxattrlist> for a "
12139 "similarly efficient call for getting extended attributes.  Very long "
12140 "directory listings might cause the protocol message size to be exceeded, "
12141 "causing this call to fail.  The caller must split up such requests into "
12142 "smaller groups of names."
12143 msgstr ""
12144
12145 #. type: =head2
12146 #: ../fish/guestfish-actions.pod:2861
12147 msgid "luks-add-key"
12148 msgstr "luks-add-key"
12149
12150 #. type: verbatim
12151 #: ../fish/guestfish-actions.pod:2863
12152 #, no-wrap
12153 msgid ""
12154 " luks-add-key device keyslot\n"
12155 "\n"
12156 msgstr ""
12157
12158 #. type: textblock
12159 #: ../fish/guestfish-actions.pod:2865 ../src/guestfs-actions.pod:4417
12160 msgid ""
12161 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12162 "existing key, and is used to access the device.  C<newkey> is the new key to "
12163 "add.  C<keyslot> is the key slot that will be replaced."
12164 msgstr ""
12165
12166 #. type: textblock
12167 #: ../fish/guestfish-actions.pod:2870
12168 msgid ""
12169 "Note that if C<keyslot> already contains a key, then this command will "
12170 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12171 msgstr ""
12172
12173 #. type: textblock
12174 #: ../fish/guestfish-actions.pod:2874 ../fish/guestfish-actions.pod:2896
12175 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:2923
12176 #: ../fish/guestfish-actions.pod:2949 ../fish/guestfish-actions.pod:2959
12177 msgid ""
12178 "This command has one or more key or passphrase parameters.  Guestfish will "
12179 "prompt for these separately."
12180 msgstr ""
12181
12182 #. type: =head2
12183 #: ../fish/guestfish-actions.pod:2877
12184 msgid "luks-close"
12185 msgstr "luks-close"
12186
12187 #. type: verbatim
12188 #: ../fish/guestfish-actions.pod:2879
12189 #, no-wrap
12190 msgid ""
12191 " luks-close device\n"
12192 "\n"
12193 msgstr ""
12194 " luks-close пристрій\n"
12195 "\n"
12196
12197 #. type: textblock
12198 #: ../fish/guestfish-actions.pod:2881
12199 msgid ""
12200 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12201 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
12202 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12203 "block device."
12204 msgstr ""
12205
12206 #. type: =head2
12207 #: ../fish/guestfish-actions.pod:2887
12208 msgid "luks-format"
12209 msgstr "luks-format"
12210
12211 #. type: verbatim
12212 #: ../fish/guestfish-actions.pod:2889
12213 #, no-wrap
12214 msgid ""
12215 " luks-format device keyslot\n"
12216 "\n"
12217 msgstr ""
12218
12219 #. type: textblock
12220 #: ../fish/guestfish-actions.pod:2891 ../src/guestfs-actions.pod:4458
12221 msgid ""
12222 "This command erases existing data on C<device> and formats the device as a "
12223 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12224 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12225 msgstr ""
12226
12227 #. type: textblock
12228 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2912
12229 #: ../fish/guestfish-actions.pod:2999 ../fish/guestfish-actions.pod:3650
12230 #: ../fish/guestfish-actions.pod:4190 ../fish/guestfish-actions.pod:4527
12231 #: ../fish/guestfish-actions.pod:4550 ../fish/guestfish-actions.pod:4572
12232 #: ../fish/guestfish-actions.pod:5318 ../src/guestfs-actions.pod:4465
12233 #: ../src/guestfs-actions.pod:4488 ../src/guestfs-actions.pod:4631
12234 #: ../src/guestfs-actions.pod:5724 ../src/guestfs-actions.pod:6530
12235 #: ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7011
12236 #: ../src/guestfs-actions.pod:7044 ../src/guestfs-actions.pod:8243
12237 msgid ""
12238 "B<This command is dangerous.  Without careful use you can easily destroy all "
12239 "your data>."
12240 msgstr ""
12241
12242 #. type: =head2
12243 #: ../fish/guestfish-actions.pod:2902
12244 msgid "luks-format-cipher"
12245 msgstr "luks-format-cipher"
12246
12247 #. type: verbatim
12248 #: ../fish/guestfish-actions.pod:2904
12249 #, no-wrap
12250 msgid ""
12251 " luks-format-cipher device keyslot cipher\n"
12252 "\n"
12253 msgstr ""
12254
12255 #. type: textblock
12256 #: ../fish/guestfish-actions.pod:2906
12257 msgid ""
12258 "This command is the same as L</luks-format> but it also allows you to set "
12259 "the C<cipher> used."
12260 msgstr ""
12261
12262 #. type: =head2
12263 #: ../fish/guestfish-actions.pod:2915
12264 msgid "luks-kill-slot"
12265 msgstr "luks-kill-slot"
12266
12267 #. type: verbatim
12268 #: ../fish/guestfish-actions.pod:2917
12269 #, no-wrap
12270 msgid ""
12271 " luks-kill-slot device keyslot\n"
12272 "\n"
12273 msgstr ""
12274
12275 #. type: textblock
12276 #: ../fish/guestfish-actions.pod:2919 ../src/guestfs-actions.pod:4505
12277 msgid ""
12278 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12279 "device C<device>.  C<key> must be one of the I<other> keys."
12280 msgstr ""
12281
12282 #. type: =head2
12283 #: ../fish/guestfish-actions.pod:2926
12284 msgid "luks-open"
12285 msgstr "luks-open"
12286
12287 #. type: verbatim
12288 #: ../fish/guestfish-actions.pod:2928
12289 #, no-wrap
12290 msgid ""
12291 " luks-open device mapname\n"
12292 "\n"
12293 msgstr ""
12294
12295 #. type: textblock
12296 #: ../fish/guestfish-actions.pod:2930 ../src/guestfs-actions.pod:4525
12297 msgid ""
12298 "This command opens a block device which has been encrypted according to the "
12299 "Linux Unified Key Setup (LUKS) standard."
12300 msgstr ""
12301
12302 #. type: textblock
12303 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4528
12304 msgid "C<device> is the encrypted block device or partition."
12305 msgstr ""
12306
12307 #. type: textblock
12308 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4530
12309 msgid ""
12310 "The caller must supply one of the keys associated with the LUKS block "
12311 "device, in the C<key> parameter."
12312 msgstr ""
12313
12314 #. type: textblock
12315 #: ../fish/guestfish-actions.pod:2938 ../src/guestfs-actions.pod:4533
12316 msgid ""
12317 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12318 "writes to this block device are decrypted from and encrypted to the "
12319 "underlying C<device> respectively."
12320 msgstr ""
12321
12322 #. type: textblock
12323 #: ../fish/guestfish-actions.pod:2942
12324 msgid ""
12325 "If this block device contains LVM volume groups, then calling L</vgscan> "
12326 "followed by L</vg-activate-all> will make them visible."
12327 msgstr ""
12328
12329 #. type: textblock
12330 #: ../fish/guestfish-actions.pod:2946
12331 msgid "Use L</list-dm-devices> to list all device mapper devices."
12332 msgstr ""
12333
12334 #. type: =head2
12335 #: ../fish/guestfish-actions.pod:2952
12336 msgid "luks-open-ro"
12337 msgstr "luks-open-ro"
12338
12339 #. type: verbatim
12340 #: ../fish/guestfish-actions.pod:2954
12341 #, no-wrap
12342 msgid ""
12343 " luks-open-ro device mapname\n"
12344 "\n"
12345 msgstr ""
12346
12347 #. type: textblock
12348 #: ../fish/guestfish-actions.pod:2956
12349 msgid ""
12350 "This is the same as L</luks-open> except that a read-only mapping is created."
12351 msgstr ""
12352
12353 #. type: =head2
12354 #: ../fish/guestfish-actions.pod:2962
12355 msgid "lvcreate"
12356 msgstr "lvcreate"
12357
12358 #. type: verbatim
12359 #: ../fish/guestfish-actions.pod:2964
12360 #, no-wrap
12361 msgid ""
12362 " lvcreate logvol volgroup mbytes\n"
12363 "\n"
12364 msgstr ""
12365
12366 #. type: textblock
12367 #: ../fish/guestfish-actions.pod:2966 ../src/guestfs-actions.pod:4579
12368 msgid ""
12369 "This creates an LVM logical volume called C<logvol> on the volume group "
12370 "C<volgroup>, with C<size> megabytes."
12371 msgstr ""
12372
12373 #. type: =head2
12374 #: ../fish/guestfish-actions.pod:2969
12375 msgid "lvm-canonical-lv-name"
12376 msgstr "lvm-canonical-lv-name"
12377
12378 #. type: verbatim
12379 #: ../fish/guestfish-actions.pod:2971
12380 #, no-wrap
12381 msgid ""
12382 " lvm-canonical-lv-name lvname\n"
12383 "\n"
12384 msgstr ""
12385
12386 #. type: textblock
12387 #: ../fish/guestfish-actions.pod:2973 ../src/guestfs-actions.pod:4592
12388 msgid ""
12389 "This converts alternative naming schemes for LVs that you might find to the "
12390 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12391 "LV>."
12392 msgstr ""
12393
12394 #. type: textblock
12395 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4596
12396 msgid ""
12397 "This command returns an error if the C<lvname> parameter does not refer to a "
12398 "logical volume."
12399 msgstr ""
12400
12401 #. type: textblock
12402 #: ../fish/guestfish-actions.pod:2980
12403 msgid "See also L</is-lv>."
12404 msgstr "Див. також L</is-lv>."
12405
12406 #. type: =head2
12407 #: ../fish/guestfish-actions.pod:2982
12408 msgid "lvm-clear-filter"
12409 msgstr "lvm-clear-filter"
12410
12411 #. type: verbatim
12412 #: ../fish/guestfish-actions.pod:2984
12413 #, no-wrap
12414 msgid ""
12415 " lvm-clear-filter\n"
12416 "\n"
12417 msgstr ""
12418 " lvm-clear-filter\n"
12419 "\n"
12420
12421 #. type: textblock
12422 #: ../fish/guestfish-actions.pod:2986
12423 msgid ""
12424 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12425 "block device."
12426 msgstr ""
12427
12428 #. type: textblock
12429 #: ../fish/guestfish-actions.pod:2989 ../fish/guestfish-actions.pod:3020
12430 #: ../src/guestfs-actions.pod:4614 ../src/guestfs-actions.pod:4656
12431 msgid ""
12432 "This command also clears the LVM cache and performs a volume group scan."
12433 msgstr ""
12434
12435 #. type: =head2
12436 #: ../fish/guestfish-actions.pod:2992
12437 msgid "lvm-remove-all"
12438 msgstr "lvm-remove-all"
12439
12440 #. type: verbatim
12441 #: ../fish/guestfish-actions.pod:2994
12442 #, no-wrap
12443 msgid ""
12444 " lvm-remove-all\n"
12445 "\n"
12446 msgstr ""
12447 " lvm-remove-all\n"
12448 "\n"
12449
12450 #. type: textblock
12451 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4626
12452 msgid ""
12453 "This command removes all LVM logical volumes, volume groups and physical "
12454 "volumes."
12455 msgstr ""
12456
12457 #. type: =head2
12458 #: ../fish/guestfish-actions.pod:3002
12459 msgid "lvm-set-filter"
12460 msgstr "lvm-set-filter"
12461
12462 #. type: verbatim
12463 #: ../fish/guestfish-actions.pod:3004
12464 #, no-wrap
12465 msgid ""
12466 " lvm-set-filter 'devices ...'\n"
12467 "\n"
12468 msgstr ""
12469 " lvm-set-filter 'пристрої...'\n"
12470 "\n"
12471
12472 #. type: textblock
12473 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4642
12474 msgid ""
12475 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12476 "block devices in the list C<devices>, and will ignore all other attached "
12477 "block devices."
12478 msgstr ""
12479
12480 #. type: textblock
12481 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4646
12482 msgid ""
12483 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12484 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12485 "there are two types of duplication possible: either cloned PVs/VGs which "
12486 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12487 "same name.  In normal operation you cannot create this situation, but you "
12488 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12489 "inside the LVM metadata."
12490 msgstr ""
12491
12492 #. type: textblock
12493 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4659
12494 msgid "You can filter whole block devices or individual partitions."
12495 msgstr ""
12496
12497 #. type: textblock
12498 #: ../fish/guestfish-actions.pod:3025 ../src/guestfs-actions.pod:4661
12499 msgid ""
12500 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12501 "filesystem), even if you are not filtering out that VG."
12502 msgstr ""
12503
12504 #. type: =head2
12505 #: ../fish/guestfish-actions.pod:3029
12506 msgid "lvremove"
12507 msgstr "lvremove"
12508
12509 #. type: verbatim
12510 #: ../fish/guestfish-actions.pod:3031
12511 #, no-wrap
12512 msgid ""
12513 " lvremove device\n"
12514 "\n"
12515 msgstr ""
12516 " lvremove пристрій\n"
12517 "\n"
12518
12519 #. type: textblock
12520 #: ../fish/guestfish-actions.pod:3033 ../src/guestfs-actions.pod:4675
12521 msgid ""
12522 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12523 "LV, such as C</dev/VG/LV>."
12524 msgstr ""
12525
12526 #. type: textblock
12527 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4678
12528 msgid ""
12529 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12530 "dev/VG>."
12531 msgstr ""
12532
12533 #. type: =head2
12534 #: ../fish/guestfish-actions.pod:3039
12535 msgid "lvrename"
12536 msgstr "lvrename"
12537
12538 #. type: verbatim
12539 #: ../fish/guestfish-actions.pod:3041
12540 #, no-wrap
12541 msgid ""
12542 " lvrename logvol newlogvol\n"
12543 "\n"
12544 msgstr ""
12545
12546 #. type: textblock
12547 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4692
12548 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12549 msgstr ""
12550
12551 #. type: =head2
12552 #: ../fish/guestfish-actions.pod:3045
12553 msgid "lvresize"
12554 msgstr "lvresize"
12555
12556 #. type: verbatim
12557 #: ../fish/guestfish-actions.pod:3047
12558 #, no-wrap
12559 msgid ""
12560 " lvresize device mbytes\n"
12561 "\n"
12562 msgstr ""
12563
12564 #. type: textblock
12565 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4705
12566 msgid ""
12567 "This resizes (expands or shrinks) an existing LVM logical volume to "
12568 "C<mbytes>.  When reducing, data in the reduced part is lost."
12569 msgstr ""
12570
12571 #. type: =head2
12572 #: ../fish/guestfish-actions.pod:3053
12573 msgid "lvresize-free"
12574 msgstr "lvresize-free"
12575
12576 #. type: verbatim
12577 #: ../fish/guestfish-actions.pod:3055
12578 #, no-wrap
12579 msgid ""
12580 " lvresize-free lv percent\n"
12581 "\n"
12582 msgstr ""
12583
12584 #. type: textblock
12585 #: ../fish/guestfish-actions.pod:3057 ../src/guestfs-actions.pod:4720
12586 msgid ""
12587 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12588 "remaining free space in the volume group.  Commonly you would call this with "
12589 "pc = 100 which expands the logical volume as much as possible, using all "
12590 "remaining free space in the volume group."
12591 msgstr ""
12592
12593 #. type: =head2
12594 #: ../fish/guestfish-actions.pod:3063
12595 msgid "lvs"
12596 msgstr "lvs"
12597
12598 #. type: verbatim
12599 #: ../fish/guestfish-actions.pod:3065
12600 #, no-wrap
12601 msgid ""
12602 " lvs\n"
12603 "\n"
12604 msgstr ""
12605 " lvs\n"
12606 "\n"
12607
12608 #. type: textblock
12609 #: ../fish/guestfish-actions.pod:3067 ../src/guestfs-actions.pod:4735
12610 msgid ""
12611 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12612 "(8)> command."
12613 msgstr ""
12614
12615 #. type: textblock
12616 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4738
12617 msgid ""
12618 "This returns a list of the logical volume device names (eg. C</dev/"
12619 "VolGroup00/LogVol00>)."
12620 msgstr ""
12621
12622 #. type: textblock
12623 #: ../fish/guestfish-actions.pod:3073
12624 msgid "See also L</lvs-full>, L</list-filesystems>."
12625 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12626
12627 #. type: =head2
12628 #: ../fish/guestfish-actions.pod:3075
12629 msgid "lvs-full"
12630 msgstr "lvs-full"
12631
12632 #. type: verbatim
12633 #: ../fish/guestfish-actions.pod:3077
12634 #, no-wrap
12635 msgid ""
12636 " lvs-full\n"
12637 "\n"
12638 msgstr ""
12639 " lvs-full\n"
12640 "\n"
12641
12642 #. type: textblock
12643 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4754
12644 msgid ""
12645 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12646 "(8)> command.  The \"full\" version includes all fields."
12647 msgstr ""
12648
12649 #. type: =head2
12650 #: ../fish/guestfish-actions.pod:3082
12651 msgid "lvuuid"
12652 msgstr "lvuuid"
12653
12654 #. type: verbatim
12655 #: ../fish/guestfish-actions.pod:3084
12656 #, no-wrap
12657 msgid ""
12658 " lvuuid device\n"
12659 "\n"
12660 msgstr ""
12661 " lvuuid пристрій\n"
12662 "\n"
12663
12664 #. type: textblock
12665 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4769
12666 msgid "This command returns the UUID of the LVM LV C<device>."
12667 msgstr ""
12668
12669 #. type: =head2
12670 #: ../fish/guestfish-actions.pod:3088
12671 msgid "lxattrlist"
12672 msgstr "lxattrlist"
12673
12674 #. type: verbatim
12675 #: ../fish/guestfish-actions.pod:3090
12676 #, no-wrap
12677 msgid ""
12678 " lxattrlist path 'names ...'\n"
12679 "\n"
12680 msgstr ""
12681
12682 #. type: textblock
12683 #: ../fish/guestfish-actions.pod:3092 ../src/guestfs-actions.pod:4783
12684 msgid ""
12685 "This call allows you to get the extended attributes of multiple files, where "
12686 "all files are in the directory C<path>.  C<names> is the list of files from "
12687 "this directory."
12688 msgstr ""
12689
12690 #. type: textblock
12691 #: ../fish/guestfish-actions.pod:3096 ../src/guestfs-actions.pod:4787
12692 msgid ""
12693 "On return you get a flat list of xattr structs which must be interpreted "
12694 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12695 "C<attrval> in this struct is zero-length to indicate there was an error "
12696 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12697 "number (the number of following attributes for this file, which could be C<"
12698 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12699 "for the first named file.  This repeats for the second and subsequent files."
12700 msgstr ""
12701
12702 #. type: textblock
12703 #: ../fish/guestfish-actions.pod:3106
12704 msgid ""
12705 "This call is intended for programs that want to efficiently list a directory "
12706 "contents without making many round-trips.  See also L</lstatlist> for a "
12707 "similarly efficient call for getting standard stats.  Very long directory "
12708 "listings might cause the protocol message size to be exceeded, causing this "
12709 "call to fail.  The caller must split up such requests into smaller groups of "
12710 "names."
12711 msgstr ""
12712
12713 #. type: =head2
12714 #: ../fish/guestfish-actions.pod:3114
12715 msgid "mkdir"
12716 msgstr "mkdir"
12717
12718 #. type: verbatim
12719 #: ../fish/guestfish-actions.pod:3116
12720 #, no-wrap
12721 msgid ""
12722 " mkdir path\n"
12723 "\n"
12724 msgstr ""
12725 " mkdir шлях\n"
12726 "\n"
12727
12728 #. type: textblock
12729 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4817
12730 msgid "Create a directory named C<path>."
12731 msgstr ""
12732
12733 #. type: =head2
12734 #: ../fish/guestfish-actions.pod:3120
12735 msgid "mkdir-mode"
12736 msgstr "mkdir-mode"
12737
12738 #. type: verbatim
12739 #: ../fish/guestfish-actions.pod:3122
12740 #, no-wrap
12741 msgid ""
12742 " mkdir-mode path mode\n"
12743 "\n"
12744 msgstr ""
12745 " mkdir-mode шлях режим\n"
12746 "\n"
12747
12748 #. type: textblock
12749 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4830
12750 msgid ""
12751 "This command creates a directory, setting the initial permissions of the "
12752 "directory to C<mode>."
12753 msgstr ""
12754
12755 #. type: textblock
12756 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4833
12757 msgid ""
12758 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12759 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12760 "other ways."
12761 msgstr ""
12762
12763 #. type: textblock
12764 #: ../fish/guestfish-actions.pod:3131
12765 msgid "See also L</mkdir>, L</umask>"
12766 msgstr "Див. також L</mkdir>, L</umask>"
12767
12768 #. type: =head2
12769 #: ../fish/guestfish-actions.pod:3133
12770 msgid "mkdir-p"
12771 msgstr "mkdir-p"
12772
12773 #. type: verbatim
12774 #: ../fish/guestfish-actions.pod:3135
12775 #, no-wrap
12776 msgid ""
12777 " mkdir-p path\n"
12778 "\n"
12779 msgstr ""
12780 " mkdir-p шлях\n"
12781 "\n"
12782
12783 #. type: textblock
12784 #: ../fish/guestfish-actions.pod:3137 ../src/guestfs-actions.pod:4849
12785 msgid ""
12786 "Create a directory named C<path>, creating any parent directories as "
12787 "necessary.  This is like the C<mkdir -p> shell command."
12788 msgstr ""
12789
12790 #. type: =head2
12791 #: ../fish/guestfish-actions.pod:3140
12792 msgid "mkdtemp"
12793 msgstr "mkdtemp"
12794
12795 #. type: verbatim
12796 #: ../fish/guestfish-actions.pod:3142
12797 #, no-wrap
12798 msgid ""
12799 " mkdtemp template\n"
12800 "\n"
12801 msgstr ""
12802 " mkdtemp шаблон\n"
12803 "\n"
12804
12805 #. type: textblock
12806 #: ../fish/guestfish-actions.pod:3144 ../src/guestfs-actions.pod:4862
12807 msgid ""
12808 "This command creates a temporary directory.  The C<template> parameter "
12809 "should be a full pathname for the temporary directory name with the final "
12810 "six characters being \"XXXXXX\"."
12811 msgstr ""
12812
12813 #. type: textblock
12814 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4867
12815 msgid ""
12816 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12817 "being suitable for Windows filesystems."
12818 msgstr ""
12819
12820 #. type: textblock
12821 #: ../fish/guestfish-actions.pod:3152 ../src/guestfs-actions.pod:4870
12822 msgid "The name of the temporary directory that was created is returned."
12823 msgstr ""
12824
12825 #. type: textblock
12826 #: ../fish/guestfish-actions.pod:3155 ../src/guestfs-actions.pod:4873
12827 msgid "The temporary directory is created with mode 0700 and is owned by root."
12828 msgstr ""
12829
12830 #. type: textblock
12831 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4876
12832 msgid ""
12833 "The caller is responsible for deleting the temporary directory and its "
12834 "contents after use."
12835 msgstr ""
12836
12837 #. type: textblock
12838 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4879
12839 msgid "See also: L<mkdtemp(3)>"
12840 msgstr "Див. також L<mkdtemp(3)>"
12841
12842 #. type: =head2
12843 #: ../fish/guestfish-actions.pod:3163
12844 msgid "mke2fs-J"
12845 msgstr "mke2fs-J"
12846
12847 #. type: verbatim
12848 #: ../fish/guestfish-actions.pod:3165
12849 #, no-wrap
12850 msgid ""
12851 " mke2fs-J fstype blocksize device journal\n"
12852 "\n"
12853 msgstr ""
12854
12855 #. type: textblock
12856 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4895
12857 msgid ""
12858 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12859 "C<journal>.  It is equivalent to the command:"
12860 msgstr ""
12861
12862 #. type: verbatim
12863 #: ../fish/guestfish-actions.pod:3171 ../src/guestfs-actions.pod:4899
12864 #, no-wrap
12865 msgid ""
12866 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12867 "\n"
12868 msgstr ""
12869 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
12870 "\n"
12871
12872 #. type: textblock
12873 #: ../fish/guestfish-actions.pod:3173
12874 msgid "See also L</mke2journal>."
12875 msgstr "Див. також L</mke2journal>."
12876
12877 #. type: =head2
12878 #: ../fish/guestfish-actions.pod:3175
12879 msgid "mke2fs-JL"
12880 msgstr "mke2fs-JL"
12881
12882 #. type: verbatim
12883 #: ../fish/guestfish-actions.pod:3177
12884 #, no-wrap
12885 msgid ""
12886 " mke2fs-JL fstype blocksize device label\n"
12887 "\n"
12888 msgstr ""
12889
12890 #. type: textblock
12891 #: ../fish/guestfish-actions.pod:3179 ../src/guestfs-actions.pod:4916
12892 msgid ""
12893 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12894 "the journal labeled C<label>."
12895 msgstr ""
12896
12897 #. type: textblock
12898 #: ../fish/guestfish-actions.pod:3182
12899 msgid "See also L</mke2journal-L>."
12900 msgstr "Див. також L</mke2journal-L>."
12901
12902 #. type: =head2
12903 #: ../fish/guestfish-actions.pod:3184
12904 msgid "mke2fs-JU"
12905 msgstr "mke2fs-JU"
12906
12907 #. type: verbatim
12908 #: ../fish/guestfish-actions.pod:3186
12909 #, no-wrap
12910 msgid ""
12911 " mke2fs-JU fstype blocksize device uuid\n"
12912 "\n"
12913 msgstr ""
12914
12915 #. type: textblock
12916 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4934
12917 msgid ""
12918 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12919 "the journal with UUID C<uuid>."
12920 msgstr ""
12921
12922 #. type: textblock
12923 #: ../fish/guestfish-actions.pod:3191
12924 msgid "See also L</mke2journal-U>."
12925 msgstr "Див. також L</mke2journal-U>."
12926
12927 #. type: =head2
12928 #: ../fish/guestfish-actions.pod:3193
12929 msgid "mke2journal"
12930 msgstr "mke2journal"
12931
12932 #. type: verbatim
12933 #: ../fish/guestfish-actions.pod:3195
12934 #, no-wrap
12935 msgid ""
12936 " mke2journal blocksize device\n"
12937 "\n"
12938 msgstr ""
12939
12940 #. type: textblock
12941 #: ../fish/guestfish-actions.pod:3197 ../src/guestfs-actions.pod:4950
12942 msgid ""
12943 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12944 "command:"
12945 msgstr ""
12946
12947 #. type: verbatim
12948 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4953
12949 #, no-wrap
12950 msgid ""
12951 " mke2fs -O journal_dev -b blocksize device\n"
12952 "\n"
12953 msgstr ""
12954
12955 #. type: =head2
12956 #: ../fish/guestfish-actions.pod:3202
12957 msgid "mke2journal-L"
12958 msgstr "mke2journal-L"
12959
12960 #. type: verbatim
12961 #: ../fish/guestfish-actions.pod:3204
12962 #, no-wrap
12963 msgid ""
12964 " mke2journal-L blocksize label device\n"
12965 "\n"
12966 msgstr ""
12967
12968 #. type: textblock
12969 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4967
12970 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12971 msgstr ""
12972
12973 #. type: =head2
12974 #: ../fish/guestfish-actions.pod:3208
12975 msgid "mke2journal-U"
12976 msgstr "mke2journal-U"
12977
12978 #. type: verbatim
12979 #: ../fish/guestfish-actions.pod:3210
12980 #, no-wrap
12981 msgid ""
12982 " mke2journal-U blocksize uuid device\n"
12983 "\n"
12984 msgstr ""
12985
12986 #. type: textblock
12987 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4981
12988 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12989 msgstr ""
12990
12991 #. type: =head2
12992 #: ../fish/guestfish-actions.pod:3214
12993 msgid "mkfifo"
12994 msgstr "mkfifo"
12995
12996 #. type: verbatim
12997 #: ../fish/guestfish-actions.pod:3216
12998 #, no-wrap
12999 msgid ""
13000 " mkfifo mode path\n"
13001 "\n"
13002 msgstr ""
13003 " mkfifo режим шлях\n"
13004 "\n"
13005
13006 #. type: textblock
13007 #: ../fish/guestfish-actions.pod:3218
13008 msgid ""
13009 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
13010 "is just a convenient wrapper around L</mknod>."
13011 msgstr ""
13012
13013 #. type: =head2
13014 #: ../fish/guestfish-actions.pod:3224
13015 msgid "mkfs"
13016 msgstr "mkfs"
13017
13018 #. type: verbatim
13019 #: ../fish/guestfish-actions.pod:3226
13020 #, no-wrap
13021 msgid ""
13022 " mkfs fstype device\n"
13023 "\n"
13024 msgstr ""
13025 " mkfs тип_файлової_системи пристрій\n"
13026 "\n"
13027
13028 #. type: textblock
13029 #: ../fish/guestfish-actions.pod:3228 ../src/guestfs-actions.pod:5011
13030 msgid ""
13031 "This creates a filesystem on C<device> (usually a partition or LVM logical "
13032 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
13033 msgstr ""
13034
13035 #. type: =head2
13036 #: ../fish/guestfish-actions.pod:3232
13037 msgid "mkfs-b"
13038 msgstr "mkfs-b"
13039
13040 #. type: verbatim
13041 #: ../fish/guestfish-actions.pod:3234
13042 #, no-wrap
13043 msgid ""
13044 " mkfs-b fstype blocksize device\n"
13045 "\n"
13046 msgstr ""
13047
13048 #. type: textblock
13049 #: ../fish/guestfish-actions.pod:3236
13050 msgid ""
13051 "This call is similar to L</mkfs>, but it allows you to control the block "
13052 "size of the resulting filesystem.  Supported block sizes depend on the "
13053 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
13054 msgstr ""
13055
13056 #. type: textblock
13057 #: ../fish/guestfish-actions.pod:3241 ../fish/guestfish-actions.pod:3268
13058 #: ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5077
13059 msgid ""
13060 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
13061 "cluster size."
13062 msgstr ""
13063
13064 #. type: textblock
13065 #: ../fish/guestfish-actions.pod:3244
13066 msgid ""
13067 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
13068 "instead."
13069 msgstr ""
13070
13071 #. type: =head2
13072 #: ../fish/guestfish-actions.pod:3251
13073 msgid "mkfs-opts"
13074 msgstr "mkfs-opts"
13075
13076 #. type: verbatim
13077 #: ../fish/guestfish-actions.pod:3253
13078 #, no-wrap
13079 msgid ""
13080 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
13081 "\n"
13082 msgstr ""
13083
13084 #. type: textblock
13085 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:5064
13086 msgid ""
13087 "This function creates a filesystem on C<device>.  The filesystem type is "
13088 "C<fstype>, for example C<ext3>."
13089 msgstr ""
13090
13091 #. type: =item
13092 #: ../fish/guestfish-actions.pod:3262 ../src/guestfs-actions.pod:5071
13093 msgid "C<blocksize>"
13094 msgstr "C<blocksize>"
13095
13096 #. type: textblock
13097 #: ../fish/guestfish-actions.pod:3264 ../src/guestfs-actions.pod:5073
13098 msgid ""
13099 "The filesystem block size.  Supported block sizes depend on the filesystem "
13100 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
13101 "filesystems."
13102 msgstr ""
13103
13104 #. type: textblock
13105 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:5080
13106 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
13107 msgstr ""
13108
13109 #. type: =item
13110 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:5082
13111 msgid "C<features>"
13112 msgstr "C<features>"
13113
13114 #. type: textblock
13115 #: ../fish/guestfish-actions.pod:3275 ../src/guestfs-actions.pod:5084
13116 msgid "This passes the I<-O> parameter to the external mkfs program."
13117 msgstr ""
13118
13119 #. type: textblock
13120 #: ../fish/guestfish-actions.pod:3277 ../src/guestfs-actions.pod:5086
13121 msgid ""
13122 "For certain filesystem types, this allows extra filesystem features to be "
13123 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
13124 msgstr ""
13125
13126 #. type: textblock
13127 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:5090
13128 msgid ""
13129 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
13130 "type."
13131 msgstr ""
13132
13133 #. type: =item
13134 #: ../fish/guestfish-actions.pod:3284 ../src/guestfs-actions.pod:5093
13135 msgid "C<inode>"
13136 msgstr "C<inode>"
13137
13138 #. type: textblock
13139 #: ../fish/guestfish-actions.pod:3286 ../src/guestfs-actions.pod:5095
13140 msgid ""
13141 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13142 "sets the inode size (only for ext2/3/4 filesystems at present)."
13143 msgstr ""
13144
13145 #. type: =item
13146 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:5098
13147 msgid "C<sectorsize>"
13148 msgstr "C<sectorsize>"
13149
13150 #. type: textblock
13151 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:5100
13152 msgid ""
13153 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13154 "sets sector size for ufs filesystem."
13155 msgstr ""
13156
13157 #. type: =head2
13158 #: ../fish/guestfish-actions.pod:3298
13159 msgid "mkmountpoint"
13160 msgstr "mkmountpoint"
13161
13162 #. type: verbatim
13163 #: ../fish/guestfish-actions.pod:3300
13164 #, no-wrap
13165 msgid ""
13166 " mkmountpoint exemptpath\n"
13167 "\n"
13168 msgstr ""
13169
13170 #. type: textblock
13171 #: ../fish/guestfish-actions.pod:3302
13172 msgid ""
13173 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13174 "to create extra mountpoints before mounting the first filesystem."
13175 msgstr ""
13176
13177 #. type: textblock
13178 #: ../fish/guestfish-actions.pod:3306 ../src/guestfs-actions.pod:5143
13179 msgid ""
13180 "These calls are I<only> necessary in some very limited circumstances, mainly "
13181 "the case where you want to mount a mix of unrelated and/or read-only "
13182 "filesystems together."
13183 msgstr ""
13184
13185 #. type: textblock
13186 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5147
13187 msgid ""
13188 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13189 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13190 "inside that.  You can unpack this as follows in guestfish:"
13191 msgstr ""
13192
13193 #. type: verbatim
13194 #: ../fish/guestfish-actions.pod:3315 ../src/guestfs-actions.pod:5152
13195 #, no-wrap
13196 msgid ""
13197 " add-ro Fedora-11-i686-Live.iso\n"
13198 " run\n"
13199 " mkmountpoint /cd\n"
13200 " mkmountpoint /sqsh\n"
13201 " mkmountpoint /ext3fs\n"
13202 " mount /dev/sda /cd\n"
13203 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13204 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13205 "\n"
13206 msgstr ""
13207 " add-ro Fedora-11-i686-Live.iso\n"
13208 " run\n"
13209 " mkmountpoint /cd\n"
13210 " mkmountpoint /sqsh\n"
13211 " mkmountpoint /ext3fs\n"
13212 " mount /dev/sda /cd\n"
13213 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13214 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13215 "\n"
13216
13217 #. type: textblock
13218 #: ../fish/guestfish-actions.pod:3324 ../src/guestfs-actions.pod:5161
13219 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13220 msgstr ""
13221
13222 #. type: textblock
13223 #: ../fish/guestfish-actions.pod:3326
13224 msgid ""
13225 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13226 "unexpected errors if you try to mix these calls.  It is safest to manually "
13227 "unmount filesystems and remove mountpoints after use."
13228 msgstr ""
13229
13230 #. type: textblock
13231 #: ../fish/guestfish-actions.pod:3330
13232 msgid ""
13233 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13234 "for this to work for manual mountpoints, you must ensure that the innermost "
13235 "mountpoints have the longest pathnames, as in the example code above."
13236 msgstr ""
13237
13238 #. type: textblock
13239 #: ../fish/guestfish-actions.pod:3335 ../src/guestfs-actions.pod:5172
13240 msgid ""
13241 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13242 msgstr ""
13243
13244 #. type: textblock
13245 #: ../fish/guestfish-actions.pod:3337
13246 msgid ""
13247 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13248 "L</umount-all> to be called when the handle is closed which can also trigger "
13249 "these issues."
13250 msgstr ""
13251
13252 #. type: =head2
13253 #: ../fish/guestfish-actions.pod:3341
13254 msgid "mknod"
13255 msgstr "mknod"
13256
13257 #. type: verbatim
13258 #: ../fish/guestfish-actions.pod:3343
13259 #, no-wrap
13260 msgid ""
13261 " mknod mode devmajor devminor path\n"
13262 "\n"
13263 msgstr ""
13264
13265 #. type: textblock
13266 #: ../fish/guestfish-actions.pod:3345 ../src/guestfs-actions.pod:5191
13267 msgid ""
13268 "This call creates block or character special devices, or named pipes (FIFOs)."
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5194
13273 msgid ""
13274 "The C<mode> parameter should be the mode, using the standard constants.  "
13275 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13276 "used when creating block and character special devices."
13277 msgstr ""
13278
13279 #. type: textblock
13280 #: ../fish/guestfish-actions.pod:3353
13281 msgid ""
13282 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13283 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13284 "regular file).  These constants are available in the standard Linux header "
13285 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13286 "wrappers around this command which bitwise OR in the appropriate constant "
13287 "for you."
13288 msgstr ""
13289
13290 #. type: =head2
13291 #: ../fish/guestfish-actions.pod:3363
13292 msgid "mknod-b"
13293 msgstr "mknod-b"
13294
13295 #. type: verbatim
13296 #: ../fish/guestfish-actions.pod:3365
13297 #, no-wrap
13298 msgid ""
13299 " mknod-b mode devmajor devminor path\n"
13300 "\n"
13301 msgstr ""
13302
13303 #. type: textblock
13304 #: ../fish/guestfish-actions.pod:3367
13305 msgid ""
13306 "This call creates a block device node called C<path> with mode C<mode> and "
13307 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13308 "wrapper around L</mknod>."
13309 msgstr ""
13310
13311 #. type: =head2
13312 #: ../fish/guestfish-actions.pod:3373
13313 msgid "mknod-c"
13314 msgstr "mknod-c"
13315
13316 #. type: verbatim
13317 #: ../fish/guestfish-actions.pod:3375
13318 #, no-wrap
13319 msgid ""
13320 " mknod-c mode devmajor devminor path\n"
13321 "\n"
13322 msgstr ""
13323
13324 #. type: textblock
13325 #: ../fish/guestfish-actions.pod:3377
13326 msgid ""
13327 "This call creates a char device node called C<path> with mode C<mode> and "
13328 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13329 "wrapper around L</mknod>."
13330 msgstr ""
13331
13332 #. type: =head2
13333 #: ../fish/guestfish-actions.pod:3383
13334 msgid "mkswap"
13335 msgstr "mkswap"
13336
13337 #. type: verbatim
13338 #: ../fish/guestfish-actions.pod:3385
13339 #, no-wrap
13340 msgid ""
13341 " mkswap device\n"
13342 "\n"
13343 msgstr ""
13344 " mkswap пристрій\n"
13345 "\n"
13346
13347 #. type: textblock
13348 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5257
13349 msgid "Create a swap partition on C<device>."
13350 msgstr ""
13351
13352 #. type: =head2
13353 #: ../fish/guestfish-actions.pod:3389
13354 msgid "mkswap-L"
13355 msgstr "mkswap-L"
13356
13357 #. type: verbatim
13358 #: ../fish/guestfish-actions.pod:3391
13359 #, no-wrap
13360 msgid ""
13361 " mkswap-L label device\n"
13362 "\n"
13363 msgstr ""
13364 " mkswap-L мітка пристрій\n"
13365 "\n"
13366
13367 #. type: textblock
13368 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5270
13369 msgid "Create a swap partition on C<device> with label C<label>."
13370 msgstr ""
13371
13372 #. type: textblock
13373 #: ../fish/guestfish-actions.pod:3395 ../src/guestfs-actions.pod:5272
13374 msgid ""
13375 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13376 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13377 "or swap tools."
13378 msgstr ""
13379
13380 #. type: =head2
13381 #: ../fish/guestfish-actions.pod:3399
13382 msgid "mkswap-U"
13383 msgstr "mkswap-U"
13384
13385 #. type: verbatim
13386 #: ../fish/guestfish-actions.pod:3401
13387 #, no-wrap
13388 msgid ""
13389 " mkswap-U uuid device\n"
13390 "\n"
13391 msgstr ""
13392 " mkswap-U uuid пристрій\n"
13393 "\n"
13394
13395 #. type: textblock
13396 #: ../fish/guestfish-actions.pod:3403 ../src/guestfs-actions.pod:5287
13397 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13398 msgstr ""
13399
13400 #. type: =head2
13401 #: ../fish/guestfish-actions.pod:3405
13402 msgid "mkswap-file"
13403 msgstr "mkswap-file"
13404
13405 #. type: verbatim
13406 #: ../fish/guestfish-actions.pod:3407
13407 #, no-wrap
13408 msgid ""
13409 " mkswap-file path\n"
13410 "\n"
13411 msgstr ""
13412 " mkswap-file шлях\n"
13413 "\n"
13414
13415 #. type: textblock
13416 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5299
13417 msgid "Create a swap file."
13418 msgstr "Створити файл резервної пам’яті."
13419
13420 #. type: textblock
13421 #: ../fish/guestfish-actions.pod:3411
13422 msgid ""
13423 "This command just writes a swap file signature to an existing file.  To "
13424 "create the file itself, use something like L</fallocate>."
13425 msgstr ""
13426
13427 #. type: =head2
13428 #: ../fish/guestfish-actions.pod:3414
13429 msgid "modprobe"
13430 msgstr "modprobe"
13431
13432 #. type: verbatim
13433 #: ../fish/guestfish-actions.pod:3416
13434 #, no-wrap
13435 msgid ""
13436 " modprobe modulename\n"
13437 "\n"
13438 msgstr ""
13439 " modprobe назва_модуля\n"
13440 "\n"
13441
13442 #. type: textblock
13443 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5314
13444 msgid "This loads a kernel module in the appliance."
13445 msgstr ""
13446
13447 #. type: textblock
13448 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5316
13449 msgid ""
13450 "The kernel module must have been whitelisted when libguestfs was built (see "
13451 "C<appliance/kmod.whitelist.in> in the source)."
13452 msgstr ""
13453
13454 #. type: =head2
13455 #: ../fish/guestfish-actions.pod:3423
13456 msgid "mount"
13457 msgstr "mount"
13458
13459 #. type: verbatim
13460 #: ../fish/guestfish-actions.pod:3425
13461 #, no-wrap
13462 msgid ""
13463 " mount device mountpoint\n"
13464 "\n"
13465 msgstr ""
13466 " mount пристрій точка_монтування\n"
13467 "\n"
13468
13469 #. type: textblock
13470 #: ../fish/guestfish-actions.pod:3427 ../src/guestfs-actions.pod:5330
13471 msgid ""
13472 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13473 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13474 "those block devices contain partitions, they will have the usual names (eg. "
13475 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13476 msgstr ""
13477
13478 #. type: textblock
13479 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5336
13480 msgid ""
13481 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13482 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13483 "mounted on directories which already exist."
13484 msgstr ""
13485
13486 #. type: textblock
13487 #: ../fish/guestfish-actions.pod:3438 ../src/guestfs-actions.pod:5341
13488 msgid ""
13489 "The mounted filesystem is writable, if we have sufficient permissions on the "
13490 "underlying device."
13491 msgstr ""
13492
13493 #. type: textblock
13494 #: ../fish/guestfish-actions.pod:3441
13495 msgid ""
13496 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13497 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13498 "problems for users.  If your program might need to work with older versions "
13499 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13500 "first parameter if you don't want any options)."
13501 msgstr ""
13502
13503 #. type: =head2
13504 #: ../fish/guestfish-actions.pod:3448
13505 msgid "mount-9p"
13506 msgstr ""
13507
13508 #. type: verbatim
13509 #: ../fish/guestfish-actions.pod:3450
13510 #, no-wrap
13511 msgid ""
13512 " mount-9p mounttag mountpoint [options:..]\n"
13513 "\n"
13514 msgstr ""
13515
13516 #. type: textblock
13517 #: ../fish/guestfish-actions.pod:3452 ../src/guestfs-actions.pod:5370
13518 msgid ""
13519 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13520 "C<mountpoint>."
13521 msgstr ""
13522
13523 #. type: textblock
13524 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5373
13525 msgid ""
13526 "If required, C<trans=virtio> will be automatically added to the options.  "
13527 "Any other options required can be passed in the optional C<options> "
13528 "parameter."
13529 msgstr ""
13530
13531 #. type: =head2
13532 #: ../fish/guestfish-actions.pod:3461
13533 msgid "mount-loop"
13534 msgstr "mount-loop"
13535
13536 #. type: verbatim
13537 #: ../fish/guestfish-actions.pod:3463
13538 #, no-wrap
13539 msgid ""
13540 " mount-loop file mountpoint\n"
13541 "\n"
13542 msgstr ""
13543
13544 #. type: textblock
13545 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5412
13546 msgid ""
13547 "This command lets you mount C<file> (a filesystem image in a file) on a "
13548 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13549 "mountpoint>."
13550 msgstr ""
13551
13552 #. type: =head2
13553 #: ../fish/guestfish-actions.pod:3469
13554 msgid "mount-options"
13555 msgstr "mount-options"
13556
13557 #. type: verbatim
13558 #: ../fish/guestfish-actions.pod:3471
13559 #, no-wrap
13560 msgid ""
13561 " mount-options options device mountpoint\n"
13562 "\n"
13563 msgstr ""
13564
13565 #. type: textblock
13566 #: ../fish/guestfish-actions.pod:3473
13567 msgid ""
13568 "This is the same as the L</mount> command, but it allows you to set the "
13569 "mount options as for the L<mount(8)> I<-o> flag."
13570 msgstr ""
13571
13572 #. type: textblock
13573 #: ../fish/guestfish-actions.pod:3477 ../src/guestfs-actions.pod:5432
13574 msgid ""
13575 "If the C<options> parameter is an empty string, then no options are passed "
13576 "(all options default to whatever the filesystem uses)."
13577 msgstr ""
13578
13579 #. type: =head2
13580 #: ../fish/guestfish-actions.pod:3481
13581 msgid "mount-ro"
13582 msgstr "mount-ro"
13583
13584 #. type: verbatim
13585 #: ../fish/guestfish-actions.pod:3483
13586 #, no-wrap
13587 msgid ""
13588 " mount-ro device mountpoint\n"
13589 "\n"
13590 msgstr ""
13591 " mount-ro пристрій точка_монтування\n"
13592 "\n"
13593
13594 #. type: textblock
13595 #: ../fish/guestfish-actions.pod:3485
13596 msgid ""
13597 "This is the same as the L</mount> command, but it mounts the filesystem with "
13598 "the read-only (I<-o ro>) flag."
13599 msgstr ""
13600
13601 #. type: =head2
13602 #: ../fish/guestfish-actions.pod:3488
13603 msgid "mount-vfs"
13604 msgstr "mount-vfs"
13605
13606 #. type: verbatim
13607 #: ../fish/guestfish-actions.pod:3490
13608 #, no-wrap
13609 msgid ""
13610 " mount-vfs options vfstype device mountpoint\n"
13611 "\n"
13612 msgstr ""
13613
13614 #. type: textblock
13615 #: ../fish/guestfish-actions.pod:3492
13616 msgid ""
13617 "This is the same as the L</mount> command, but it allows you to set both the "
13618 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13619 msgstr ""
13620
13621 #. type: =head2
13622 #: ../fish/guestfish-actions.pod:3496
13623 msgid "mountpoints"
13624 msgstr "mountpoints"
13625
13626 #. type: verbatim
13627 #: ../fish/guestfish-actions.pod:3498
13628 #, no-wrap
13629 msgid ""
13630 " mountpoints\n"
13631 "\n"
13632 msgstr ""
13633 " mountpoints\n"
13634 "\n"
13635
13636 #. type: textblock
13637 #: ../fish/guestfish-actions.pod:3500
13638 msgid ""
13639 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13640 "This one returns a hash table (map) of device name to directory where the "
13641 "device is mounted."
13642 msgstr ""
13643
13644 #. type: =head2
13645 #: ../fish/guestfish-actions.pod:3504
13646 msgid "mounts"
13647 msgstr "mounts"
13648
13649 #. type: verbatim
13650 #: ../fish/guestfish-actions.pod:3506
13651 #, no-wrap
13652 msgid ""
13653 " mounts\n"
13654 "\n"
13655 msgstr ""
13656 " mounts\n"
13657 "\n"
13658
13659 #. type: textblock
13660 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5493
13661 msgid ""
13662 "This returns the list of currently mounted filesystems.  It returns the list "
13663 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13664 msgstr ""
13665
13666 #. type: textblock
13667 #: ../fish/guestfish-actions.pod:3511 ../src/guestfs-actions.pod:5496
13668 msgid "Some internal mounts are not shown."
13669 msgstr ""
13670
13671 #. type: textblock
13672 #: ../fish/guestfish-actions.pod:3513
13673 msgid "See also: L</mountpoints>"
13674 msgstr "Див. також L</mountpoints>"
13675
13676 #. type: =head2
13677 #: ../fish/guestfish-actions.pod:3515
13678 msgid "mv"
13679 msgstr "mv"
13680
13681 #. type: verbatim
13682 #: ../fish/guestfish-actions.pod:3517
13683 #, no-wrap
13684 msgid ""
13685 " mv src dest\n"
13686 "\n"
13687 msgstr ""
13688 " mv джерело призначення\n"
13689 "\n"
13690
13691 #. type: textblock
13692 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5513
13693 msgid ""
13694 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13695 "destination filename or destination directory."
13696 msgstr ""
13697
13698 #. type: =head2
13699 #: ../fish/guestfish-actions.pod:3522
13700 msgid "ntfs-3g-probe"
13701 msgstr "ntfs-3g-probe"
13702
13703 #. type: verbatim
13704 #: ../fish/guestfish-actions.pod:3524
13705 #, no-wrap
13706 msgid ""
13707 " ntfs-3g-probe true|false device\n"
13708 "\n"
13709 msgstr ""
13710
13711 #. type: textblock
13712 #: ../fish/guestfish-actions.pod:3526 ../src/guestfs-actions.pod:5527
13713 msgid ""
13714 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13715 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
13716 "write, and some cannot be mounted at all)."
13717 msgstr ""
13718
13719 #. type: textblock
13720 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5531
13721 msgid ""
13722 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13723 "can be mounted read-write.  Set it to false if you want to test if the "
13724 "volume can be mounted read-only."
13725 msgstr ""
13726
13727 #. type: textblock
13728 #: ../fish/guestfish-actions.pod:3534 ../src/guestfs-actions.pod:5535
13729 msgid ""
13730 "The return value is an integer which C<0> if the operation would succeed, or "
13731 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13732 msgstr ""
13733
13734 #. type: =head2
13735 #: ../fish/guestfish-actions.pod:3538
13736 msgid "ntfsresize"
13737 msgstr "ntfsresize"
13738
13739 #. type: verbatim
13740 #: ../fish/guestfish-actions.pod:3540
13741 #, no-wrap
13742 msgid ""
13743 " ntfsresize device\n"
13744 "\n"
13745 msgstr ""
13746 " ntfsresize пристрій\n"
13747 "\n"
13748
13749 #. type: textblock
13750 #: ../fish/guestfish-actions.pod:3542 ../fish/guestfish-actions.pod:3566
13751 #: ../src/guestfs-actions.pod:5556 ../src/guestfs-actions.pod:5588
13752 msgid ""
13753 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13754 "size of the underlying device."
13755 msgstr ""
13756
13757 #. type: textblock
13758 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5559
13759 msgid ""
13760 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13761 "consistency check (for safety).  You have to boot into Windows to perform "
13762 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13763 "resize filesystems which have been marked in this way.  So in effect it is "
13764 "not possible to call ntfsresize multiple times on a single filesystem "
13765 "without booting into Windows between each resize."
13766 msgstr ""
13767
13768 #. type: textblock
13769 #: ../fish/guestfish-actions.pod:3553 ../fish/guestfish-actions.pod:3592
13770 #: ../src/guestfs-actions.pod:5567 ../src/guestfs-actions.pod:5614
13771 msgid "See also L<ntfsresize(8)>."
13772 msgstr "Див. також L<ntfsresize(8)>."
13773
13774 #. type: textblock
13775 #: ../fish/guestfish-actions.pod:3555 ../fish/guestfish-actions.pod:3603
13776 msgid ""
13777 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13778 "call instead."
13779 msgstr ""
13780
13781 #. type: =head2
13782 #: ../fish/guestfish-actions.pod:3562
13783 msgid "ntfsresize-opts"
13784 msgstr ""
13785
13786 #. type: verbatim
13787 #: ../fish/guestfish-actions.pod:3564
13788 #, no-wrap
13789 msgid ""
13790 " ntfsresize-opts device [size:..] [force:..]\n"
13791 "\n"
13792 msgstr ""
13793
13794 #. type: textblock
13795 #: ../fish/guestfish-actions.pod:3575 ../src/guestfs-actions.pod:5597
13796 msgid ""
13797 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13798 "resized to fit the container (eg. partition)."
13799 msgstr ""
13800
13801 #. type: =item
13802 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5600
13803 msgid "C<force>"
13804 msgstr "C<force>"
13805
13806 #. type: textblock
13807 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5602
13808 msgid ""
13809 "If this option is true, then force the resize of the filesystem even if the "
13810 "filesystem is marked as requiring a consistency check."
13811 msgstr ""
13812
13813 #. type: textblock
13814 #: ../fish/guestfish-actions.pod:3583
13815 msgid ""
13816 "After the resize operation, the filesystem is always marked as requiring a "
13817 "consistency check (for safety).  You have to boot into Windows to perform "
13818 "this check and clear this condition.  If you I<don't> set the C<force> "
13819 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13820 "a single filesystem without booting into Windows between each resize."
13821 msgstr ""
13822
13823 #. type: =head2
13824 #: ../fish/guestfish-actions.pod:3596
13825 msgid "ntfsresize-size"
13826 msgstr "ntfsresize-size"
13827
13828 #. type: verbatim
13829 #: ../fish/guestfish-actions.pod:3598
13830 #, no-wrap
13831 msgid ""
13832 " ntfsresize-size device size\n"
13833 "\n"
13834 msgstr ""
13835
13836 #. type: textblock
13837 #: ../fish/guestfish-actions.pod:3600
13838 msgid ""
13839 "This command is the same as L</ntfsresize> except that it allows you to "
13840 "specify the new size (in bytes) explicitly."
13841 msgstr ""
13842
13843 #. type: =head2
13844 #: ../fish/guestfish-actions.pod:3610
13845 msgid "part-add"
13846 msgstr "part-add"
13847
13848 #. type: verbatim
13849 #: ../fish/guestfish-actions.pod:3612
13850 #, no-wrap
13851 msgid ""
13852 " part-add device prlogex startsect endsect\n"
13853 "\n"
13854 msgstr ""
13855
13856 #. type: textblock
13857 #: ../fish/guestfish-actions.pod:3614
13858 msgid ""
13859 "This command adds a partition to C<device>.  If there is no partition table "
13860 "on the device, call L</part-init> first."
13861 msgstr ""
13862
13863 #. type: textblock
13864 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5675
13865 msgid ""
13866 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13867 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13868 "C<logical>) and C<e> (or C<extended>) partition types."
13869 msgstr ""
13870
13871 #. type: textblock
13872 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5680
13873 msgid ""
13874 "C<startsect> and C<endsect> are the start and end of the partition in "
13875 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13876 "from the end of the disk (C<-1> is the last sector)."
13877 msgstr ""
13878
13879 #. type: textblock
13880 #: ../fish/guestfish-actions.pod:3626
13881 msgid ""
13882 "Creating a partition which covers the whole disk is not so easy.  Use L</"
13883 "part-disk> to do that."
13884 msgstr ""
13885
13886 #. type: =head2
13887 #: ../fish/guestfish-actions.pod:3629
13888 msgid "part-del"
13889 msgstr "part-del"
13890
13891 #. type: verbatim
13892 #: ../fish/guestfish-actions.pod:3631
13893 #, no-wrap
13894 msgid ""
13895 " part-del device partnum\n"
13896 "\n"
13897 msgstr ""
13898
13899 #. type: textblock
13900 #: ../fish/guestfish-actions.pod:3633 ../src/guestfs-actions.pod:5698
13901 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13902 msgstr ""
13903
13904 #. type: textblock
13905 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5700
13906 msgid ""
13907 "Note that in the case of MBR partitioning, deleting an extended partition "
13908 "also deletes any logical partitions it contains."
13909 msgstr ""
13910
13911 #. type: =head2
13912 #: ../fish/guestfish-actions.pod:3639
13913 msgid "part-disk"
13914 msgstr "part-disk"
13915
13916 #. type: verbatim
13917 #: ../fish/guestfish-actions.pod:3641
13918 #, no-wrap
13919 msgid ""
13920 " part-disk device parttype\n"
13921 "\n"
13922 msgstr ""
13923 " part-disk пристрій тип_розділу\n"
13924 "\n"
13925
13926 #. type: textblock
13927 #: ../fish/guestfish-actions.pod:3643
13928 msgid ""
13929 "This command is simply a combination of L</part-init> followed by L</part-"
13930 "add> to create a single primary partition covering the whole disk."
13931 msgstr ""
13932
13933 #. type: textblock
13934 #: ../fish/guestfish-actions.pod:3647
13935 msgid ""
13936 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13937 "possible values are described in L</part-init>."
13938 msgstr ""
13939
13940 #. type: =head2
13941 #: ../fish/guestfish-actions.pod:3653
13942 msgid "part-get-bootable"
13943 msgstr "part-get-bootable"
13944
13945 #. type: verbatim
13946 #: ../fish/guestfish-actions.pod:3655
13947 #, no-wrap
13948 msgid ""
13949 " part-get-bootable device partnum\n"
13950 "\n"
13951 msgstr ""
13952
13953 #. type: textblock
13954 #: ../fish/guestfish-actions.pod:3657 ../src/guestfs-actions.pod:5736
13955 msgid ""
13956 "This command returns true if the partition C<partnum> on C<device> has the "
13957 "bootable flag set."
13958 msgstr ""
13959
13960 #. type: textblock
13961 #: ../fish/guestfish-actions.pod:3660
13962 msgid "See also L</part-set-bootable>."
13963 msgstr "Див. також L</part-set-bootable>."
13964
13965 #. type: =head2
13966 #: ../fish/guestfish-actions.pod:3662
13967 msgid "part-get-mbr-id"
13968 msgstr "part-get-mbr-id"
13969
13970 #. type: verbatim
13971 #: ../fish/guestfish-actions.pod:3664
13972 #, no-wrap
13973 msgid ""
13974 " part-get-mbr-id device partnum\n"
13975 "\n"
13976 msgstr ""
13977
13978 #. type: textblock
13979 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5752
13980 msgid ""
13981 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13982 "partition C<partnum>."
13983 msgstr ""
13984
13985 #. type: textblock
13986 #: ../fish/guestfish-actions.pod:3669 ../fish/guestfish-actions.pod:3813
13987 msgid ""
13988 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13989 "undefined results for other partition table types (see L</part-get-"
13990 "parttype>)."
13991 msgstr ""
13992
13993 #. type: =head2
13994 #: ../fish/guestfish-actions.pod:3673
13995 msgid "part-get-parttype"
13996 msgstr "part-get-parttype"
13997
13998 #. type: verbatim
13999 #: ../fish/guestfish-actions.pod:3675
14000 #, no-wrap
14001 msgid ""
14002 " part-get-parttype device\n"
14003 "\n"
14004 msgstr ""
14005 " part-get-parttype пристрій\n"
14006 "\n"
14007
14008 #. type: textblock
14009 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5769
14010 msgid ""
14011 "This command examines the partition table on C<device> and returns the "
14012 "partition table type (format) being used."
14013 msgstr ""
14014
14015 #. type: textblock
14016 #: ../fish/guestfish-actions.pod:3680
14017 msgid ""
14018 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
14019 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
14020 "possible, although unusual.  See L</part-init> for a full list."
14021 msgstr ""
14022
14023 #. type: =head2
14024 #: ../fish/guestfish-actions.pod:3685
14025 msgid "part-init"
14026 msgstr "part-init"
14027
14028 #. type: verbatim
14029 #: ../fish/guestfish-actions.pod:3687
14030 #, no-wrap
14031 msgid ""
14032 " part-init device parttype\n"
14033 "\n"
14034 msgstr ""
14035
14036 #. type: textblock
14037 #: ../fish/guestfish-actions.pod:3689 ../src/guestfs-actions.pod:5789
14038 msgid ""
14039 "This creates an empty partition table on C<device> of one of the partition "
14040 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
14041 "(for large disks)."
14042 msgstr ""
14043
14044 #. type: textblock
14045 #: ../fish/guestfish-actions.pod:3693
14046 msgid ""
14047 "Initially there are no partitions.  Following this, you should call L</part-"
14048 "add> for each partition required."
14049 msgstr ""
14050
14051 #. type: textblock
14052 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5796
14053 msgid "Possible values for C<parttype> are:"
14054 msgstr ""
14055
14056 #. type: =item
14057 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5800
14058 msgid "B<efi>"
14059 msgstr "B<efi>"
14060
14061 #. type: =item
14062 #: ../fish/guestfish-actions.pod:3702 ../src/guestfs-actions.pod:5802
14063 msgid "B<gpt>"
14064 msgstr "B<gpt>"
14065
14066 #. type: textblock
14067 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5804
14068 msgid "Intel EFI / GPT partition table."
14069 msgstr ""
14070
14071 #. type: textblock
14072 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5806
14073 msgid ""
14074 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
14075 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
14076 "the C<mbr> format."
14077 msgstr ""
14078
14079 #. type: =item
14080 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5810
14081 msgid "B<mbr>"
14082 msgstr "B<mbr>"
14083
14084 #. type: =item
14085 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5812
14086 msgid "B<msdos>"
14087 msgstr "B<msdos>"
14088
14089 #. type: textblock
14090 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5814
14091 msgid ""
14092 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
14093 "Windows.  This partition type will B<only> work for device sizes up to 2 "
14094 "TB.  For large disks we recommend using C<gpt>."
14095 msgstr ""
14096
14097 #. type: textblock
14098 #: ../fish/guestfish-actions.pod:3721 ../src/guestfs-actions.pod:5821
14099 msgid ""
14100 "Other partition table types that may work but are not supported include:"
14101 msgstr ""
14102
14103 #. type: =item
14104 #: ../fish/guestfish-actions.pod:3726 ../src/guestfs-actions.pod:5826
14105 msgid "B<aix>"
14106 msgstr "B<aix>"
14107
14108 #. type: textblock
14109 #: ../fish/guestfish-actions.pod:3728 ../src/guestfs-actions.pod:5828
14110 msgid "AIX disk labels."
14111 msgstr "Мітки дисків AIX."
14112
14113 #. type: =item
14114 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5830
14115 msgid "B<amiga>"
14116 msgstr "B<amiga>"
14117
14118 #. type: =item
14119 #: ../fish/guestfish-actions.pod:3732 ../src/guestfs-actions.pod:5832
14120 msgid "B<rdb>"
14121 msgstr "B<rdb>"
14122
14123 #. type: textblock
14124 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5834
14125 msgid "Amiga \"Rigid Disk Block\" format."
14126 msgstr "Формат \"Rigid Disk Block\" Amiga."
14127
14128 #. type: =item
14129 #: ../fish/guestfish-actions.pod:3736 ../src/guestfs-actions.pod:5836
14130 msgid "B<bsd>"
14131 msgstr "B<bsd>"
14132
14133 #. type: textblock
14134 #: ../fish/guestfish-actions.pod:3738 ../src/guestfs-actions.pod:5838
14135 msgid "BSD disk labels."
14136 msgstr "Мітки дисків BSD."
14137
14138 #. type: =item
14139 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5840
14140 msgid "B<dasd>"
14141 msgstr "B<dasd>"
14142
14143 #. type: textblock
14144 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5842
14145 msgid "DASD, used on IBM mainframes."
14146 msgstr "DASD, використовувалися у мейнфреймах IBM."
14147
14148 #. type: =item
14149 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5844
14150 msgid "B<dvh>"
14151 msgstr "B<dvh>"
14152
14153 #. type: textblock
14154 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5846
14155 msgid "MIPS/SGI volumes."
14156 msgstr "Томи MIPS/SGI."
14157
14158 #. type: =item
14159 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5848
14160 msgid "B<mac>"
14161 msgstr "B<mac>"
14162
14163 #. type: textblock
14164 #: ../fish/guestfish-actions.pod:3750 ../src/guestfs-actions.pod:5850
14165 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14166 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14167
14168 #. type: =item
14169 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5852
14170 msgid "B<pc98>"
14171 msgstr "B<pc98>"
14172
14173 #. type: textblock
14174 #: ../fish/guestfish-actions.pod:3754 ../src/guestfs-actions.pod:5854
14175 msgid "NEC PC-98 format, common in Japan apparently."
14176 msgstr "Формат NEC PC-98, поширений у Японії."
14177
14178 #. type: =item
14179 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5856
14180 msgid "B<sun>"
14181 msgstr "B<sun>"
14182
14183 #. type: textblock
14184 #: ../fish/guestfish-actions.pod:3758 ../src/guestfs-actions.pod:5858
14185 msgid "Sun disk labels."
14186 msgstr "Мітки дисків Sun."
14187
14188 #. type: =head2
14189 #: ../fish/guestfish-actions.pod:3762
14190 msgid "part-list"
14191 msgstr "part-list"
14192
14193 #. type: verbatim
14194 #: ../fish/guestfish-actions.pod:3764
14195 #, no-wrap
14196 msgid ""
14197 " part-list device\n"
14198 "\n"
14199 msgstr ""
14200 " part-list device\n"
14201 "\n"
14202
14203 #. type: textblock
14204 #: ../fish/guestfish-actions.pod:3766 ../src/guestfs-actions.pod:5872
14205 msgid ""
14206 "This command parses the partition table on C<device> and returns the list of "
14207 "partitions found."
14208 msgstr ""
14209
14210 #. type: textblock
14211 #: ../fish/guestfish-actions.pod:3769 ../src/guestfs-actions.pod:5875
14212 msgid "The fields in the returned structure are:"
14213 msgstr ""
14214
14215 #. type: =item
14216 #: ../fish/guestfish-actions.pod:3773 ../src/guestfs-actions.pod:5879
14217 msgid "B<part_num>"
14218 msgstr "B<part_num>"
14219
14220 #. type: textblock
14221 #: ../fish/guestfish-actions.pod:3775 ../src/guestfs-actions.pod:5881
14222 msgid "Partition number, counting from 1."
14223 msgstr ""
14224
14225 #. type: =item
14226 #: ../fish/guestfish-actions.pod:3777 ../src/guestfs-actions.pod:5883
14227 msgid "B<part_start>"
14228 msgstr "B<part_start>"
14229
14230 #. type: textblock
14231 #: ../fish/guestfish-actions.pod:3779
14232 msgid ""
14233 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14234 "the device's sector size, see L</blockdev-getss>."
14235 msgstr ""
14236
14237 #. type: =item
14238 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5888
14239 msgid "B<part_end>"
14240 msgstr "B<part_end>"
14241
14242 #. type: textblock
14243 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5890
14244 msgid "End of the partition in bytes."
14245 msgstr ""
14246
14247 #. type: =item
14248 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5892
14249 msgid "B<part_size>"
14250 msgstr "B<part_size>"
14251
14252 #. type: textblock
14253 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5894
14254 msgid "Size of the partition in bytes."
14255 msgstr ""
14256
14257 #. type: =head2
14258 #: ../fish/guestfish-actions.pod:3792
14259 msgid "part-set-bootable"
14260 msgstr "part-set-bootable"
14261
14262 #. type: verbatim
14263 #: ../fish/guestfish-actions.pod:3794
14264 #, no-wrap
14265 msgid ""
14266 " part-set-bootable device partnum true|false\n"
14267 "\n"
14268 msgstr ""
14269
14270 #. type: textblock
14271 #: ../fish/guestfish-actions.pod:3796 ../src/guestfs-actions.pod:5912
14272 msgid ""
14273 "This sets the bootable flag on partition numbered C<partnum> on device "
14274 "C<device>.  Note that partitions are numbered from 1."
14275 msgstr ""
14276
14277 #. type: textblock
14278 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5915
14279 msgid ""
14280 "The bootable flag is used by some operating systems (notably Windows) to "
14281 "determine which partition to boot from.  It is by no means universally "
14282 "recognized."
14283 msgstr ""
14284
14285 #. type: =head2
14286 #: ../fish/guestfish-actions.pod:3803
14287 msgid "part-set-mbr-id"
14288 msgstr "part-set-mbr-id"
14289
14290 #. type: verbatim
14291 #: ../fish/guestfish-actions.pod:3805
14292 #, no-wrap
14293 msgid ""
14294 " part-set-mbr-id device partnum idbyte\n"
14295 "\n"
14296 msgstr ""
14297
14298 #. type: textblock
14299 #: ../fish/guestfish-actions.pod:3807 ../src/guestfs-actions.pod:5931
14300 msgid ""
14301 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14302 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14303 "documentation are in fact hexadecimal numbers, but usually documented "
14304 "without any leading \"0x\" which might be confusing."
14305 msgstr ""
14306
14307 #. type: =head2
14308 #: ../fish/guestfish-actions.pod:3817
14309 msgid "part-set-name"
14310 msgstr "part-set-name"
14311
14312 #. type: verbatim
14313 #: ../fish/guestfish-actions.pod:3819
14314 #, no-wrap
14315 msgid ""
14316 " part-set-name device partnum name\n"
14317 "\n"
14318 msgstr ""
14319
14320 #. type: textblock
14321 #: ../fish/guestfish-actions.pod:3821 ../src/guestfs-actions.pod:5953
14322 msgid ""
14323 "This sets the partition name on partition numbered C<partnum> on device "
14324 "C<device>.  Note that partitions are numbered from 1."
14325 msgstr ""
14326
14327 #. type: textblock
14328 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5956
14329 msgid ""
14330 "The partition name can only be set on certain types of partition table.  "
14331 "This works on C<gpt> but not on C<mbr> partitions."
14332 msgstr ""
14333
14334 #. type: =head2
14335 #: ../fish/guestfish-actions.pod:3827
14336 msgid "part-to-dev"
14337 msgstr "part-to-dev"
14338
14339 #. type: verbatim
14340 #: ../fish/guestfish-actions.pod:3829
14341 #, no-wrap
14342 msgid ""
14343 " part-to-dev partition\n"
14344 "\n"
14345 msgstr ""
14346 " part-to-dev розділ\n"
14347 "\n"
14348
14349 #. type: textblock
14350 #: ../fish/guestfish-actions.pod:3831 ../src/guestfs-actions.pod:5969
14351 msgid ""
14352 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14353 "partition number, returning the device name (eg. \"/dev/sdb\")."
14354 msgstr ""
14355
14356 #. type: textblock
14357 #: ../fish/guestfish-actions.pod:3835 ../fish/guestfish-actions.pod:3847
14358 msgid ""
14359 "The named partition must exist, for example as a string returned from L</"
14360 "list-partitions>."
14361 msgstr ""
14362
14363 #. type: textblock
14364 #: ../fish/guestfish-actions.pod:3838
14365 #, fuzzy
14366 #| msgid "See also: L</part-add>"
14367 msgid "See also L</part-to-partnum>."
14368 msgstr "Див. також L</part-add>"
14369
14370 #. type: =head2
14371 #: ../fish/guestfish-actions.pod:3840
14372 #, fuzzy
14373 #| msgid "part-get-parttype"
14374 msgid "part-to-partnum"
14375 msgstr "part-get-parttype"
14376
14377 #. type: verbatim
14378 #: ../fish/guestfish-actions.pod:3842
14379 #, fuzzy, no-wrap
14380 #| msgid ""
14381 #| " part-to-dev partition\n"
14382 #| "\n"
14383 msgid ""
14384 " part-to-partnum partition\n"
14385 "\n"
14386 msgstr ""
14387 " part-to-dev розділ\n"
14388 "\n"
14389
14390 #. type: textblock
14391 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5989
14392 msgid ""
14393 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
14394 "partition number (eg. C<1>)."
14395 msgstr ""
14396
14397 #. type: textblock
14398 #: ../fish/guestfish-actions.pod:3850
14399 #, fuzzy
14400 #| msgid "See also: L</part-add>"
14401 msgid "See also L</part-to-dev>."
14402 msgstr "Див. також L</part-add>"
14403
14404 #. type: =head2
14405 #: ../fish/guestfish-actions.pod:3852
14406 msgid "ping-daemon"
14407 msgstr "ping-daemon"
14408
14409 #. type: verbatim
14410 #: ../fish/guestfish-actions.pod:3854
14411 #, no-wrap
14412 msgid ""
14413 " ping-daemon\n"
14414 "\n"
14415 msgstr ""
14416 " ping-daemon\n"
14417 "\n"
14418
14419 #. type: textblock
14420 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:6004
14421 msgid ""
14422 "This is a test probe into the guestfs daemon running inside the qemu "
14423 "subprocess.  Calling this function checks that the daemon responds to the "
14424 "ping message, without affecting the daemon or attached block device(s) in "
14425 "any other way."
14426 msgstr ""
14427
14428 #. type: =head2
14429 #: ../fish/guestfish-actions.pod:3861
14430 msgid "pread"
14431 msgstr "pread"
14432
14433 #. type: verbatim
14434 #: ../fish/guestfish-actions.pod:3863
14435 #, no-wrap
14436 msgid ""
14437 " pread path count offset\n"
14438 "\n"
14439 msgstr ""
14440
14441 #. type: textblock
14442 #: ../fish/guestfish-actions.pod:3865 ../src/guestfs-actions.pod:6022
14443 msgid ""
14444 "This command lets you read part of a file.  It reads C<count> bytes of the "
14445 "file, starting at C<offset>, from file C<path>."
14446 msgstr ""
14447
14448 #. type: textblock
14449 #: ../fish/guestfish-actions.pod:3868 ../fish/guestfish-actions.pod:3883
14450 #: ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6051
14451 msgid ""
14452 "This may read fewer bytes than requested.  For further details see the "
14453 "L<pread(2)> system call."
14454 msgstr ""
14455
14456 #. type: textblock
14457 #: ../fish/guestfish-actions.pod:3871
14458 msgid "See also L</pwrite>, L</pread-device>."
14459 msgstr "Див. також L</pwrite>, L</pread-device>."
14460
14461 #. type: =head2
14462 #: ../fish/guestfish-actions.pod:3876
14463 msgid "pread-device"
14464 msgstr "pread-device"
14465
14466 #. type: verbatim
14467 #: ../fish/guestfish-actions.pod:3878
14468 #, no-wrap
14469 msgid ""
14470 " pread-device device count offset\n"
14471 "\n"
14472 msgstr ""
14473
14474 #. type: textblock
14475 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:6048
14476 msgid ""
14477 "This command lets you read part of a file.  It reads C<count> bytes of "
14478 "C<device>, starting at C<offset>."
14479 msgstr ""
14480
14481 #. type: textblock
14482 #: ../fish/guestfish-actions.pod:3886
14483 msgid "See also L</pread>."
14484 msgstr "Див. також L</pread>."
14485
14486 #. type: =head2
14487 #: ../fish/guestfish-actions.pod:3891
14488 msgid "pvcreate"
14489 msgstr "pvcreate"
14490
14491 #. type: verbatim
14492 #: ../fish/guestfish-actions.pod:3893
14493 #, no-wrap
14494 msgid ""
14495 " pvcreate device\n"
14496 "\n"
14497 msgstr ""
14498 " pvcreate пристрій\n"
14499 "\n"
14500
14501 #. type: textblock
14502 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:6071
14503 msgid ""
14504 "This creates an LVM physical volume on the named C<device>, where C<device> "
14505 "should usually be a partition name such as C</dev/sda1>."
14506 msgstr ""
14507
14508 #. type: =head2
14509 #: ../fish/guestfish-actions.pod:3899
14510 msgid "pvremove"
14511 msgstr "pvremove"
14512
14513 #. type: verbatim
14514 #: ../fish/guestfish-actions.pod:3901
14515 #, no-wrap
14516 msgid ""
14517 " pvremove device\n"
14518 "\n"
14519 msgstr ""
14520 " pvremove пристрій\n"
14521 "\n"
14522
14523 #. type: textblock
14524 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:6085
14525 msgid ""
14526 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14527 "it."
14528 msgstr ""
14529
14530 #. type: textblock
14531 #: ../fish/guestfish-actions.pod:3906 ../src/guestfs-actions.pod:6088
14532 msgid ""
14533 "The implementation uses the C<pvremove> command which refuses to wipe "
14534 "physical volumes that contain any volume groups, so you have to remove those "
14535 "first."
14536 msgstr ""
14537
14538 #. type: =head2
14539 #: ../fish/guestfish-actions.pod:3910
14540 msgid "pvresize"
14541 msgstr "pvresize"
14542
14543 #. type: verbatim
14544 #: ../fish/guestfish-actions.pod:3912
14545 #, no-wrap
14546 msgid ""
14547 " pvresize device\n"
14548 "\n"
14549 msgstr ""
14550 " pvresize пристрій\n"
14551 "\n"
14552
14553 #. type: textblock
14554 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:6102
14555 msgid ""
14556 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14557 "the new size of the underlying device."
14558 msgstr ""
14559
14560 #. type: =head2
14561 #: ../fish/guestfish-actions.pod:3917
14562 msgid "pvresize-size"
14563 msgstr "pvresize-size"
14564
14565 #. type: verbatim
14566 #: ../fish/guestfish-actions.pod:3919
14567 #, no-wrap
14568 msgid ""
14569 " pvresize-size device size\n"
14570 "\n"
14571 msgstr ""
14572
14573 #. type: textblock
14574 #: ../fish/guestfish-actions.pod:3921
14575 msgid ""
14576 "This command is the same as L</pvresize> except that it allows you to "
14577 "specify the new size (in bytes) explicitly."
14578 msgstr ""
14579
14580 #. type: =head2
14581 #: ../fish/guestfish-actions.pod:3924
14582 msgid "pvs"
14583 msgstr "pvs"
14584
14585 #. type: verbatim
14586 #: ../fish/guestfish-actions.pod:3926
14587 #, no-wrap
14588 msgid ""
14589 " pvs\n"
14590 "\n"
14591 msgstr ""
14592 " pvs\n"
14593 "\n"
14594
14595 #. type: textblock
14596 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6128
14597 msgid ""
14598 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14599 "(8)> command."
14600 msgstr ""
14601
14602 #. type: textblock
14603 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6131
14604 msgid ""
14605 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14606 "sda2>)."
14607 msgstr ""
14608
14609 #. type: textblock
14610 #: ../fish/guestfish-actions.pod:3934
14611 msgid "See also L</pvs-full>."
14612 msgstr "Див. також L</pvs-full>."
14613
14614 #. type: =head2
14615 #: ../fish/guestfish-actions.pod:3936
14616 msgid "pvs-full"
14617 msgstr "pvs-full"
14618
14619 #. type: verbatim
14620 #: ../fish/guestfish-actions.pod:3938
14621 #, no-wrap
14622 msgid ""
14623 " pvs-full\n"
14624 "\n"
14625 msgstr ""
14626 " pvs-full\n"
14627 "\n"
14628
14629 #. type: textblock
14630 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6147
14631 msgid ""
14632 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14633 "(8)> command.  The \"full\" version includes all fields."
14634 msgstr ""
14635
14636 #. type: =head2
14637 #: ../fish/guestfish-actions.pod:3943
14638 msgid "pvuuid"
14639 msgstr "pvuuid"
14640
14641 #. type: verbatim
14642 #: ../fish/guestfish-actions.pod:3945
14643 #, no-wrap
14644 msgid ""
14645 " pvuuid device\n"
14646 "\n"
14647 msgstr ""
14648 " pvuuid пристрій\n"
14649 "\n"
14650
14651 #. type: textblock
14652 #: ../fish/guestfish-actions.pod:3947 ../src/guestfs-actions.pod:6162
14653 msgid "This command returns the UUID of the LVM PV C<device>."
14654 msgstr ""
14655
14656 #. type: =head2
14657 #: ../fish/guestfish-actions.pod:3949
14658 msgid "pwrite"
14659 msgstr "pwrite"
14660
14661 #. type: verbatim
14662 #: ../fish/guestfish-actions.pod:3951
14663 #, no-wrap
14664 msgid ""
14665 " pwrite path content offset\n"
14666 "\n"
14667 msgstr ""
14668
14669 #. type: textblock
14670 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:6178
14671 msgid ""
14672 "This command writes to part of a file.  It writes the data buffer C<content> "
14673 "to the file C<path> starting at offset C<offset>."
14674 msgstr ""
14675
14676 #. type: textblock
14677 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6181
14678 msgid ""
14679 "This command implements the L<pwrite(2)> system call, and like that system "
14680 "call it may not write the full data requested.  The return value is the "
14681 "number of bytes that were actually written to the file.  This could even be "
14682 "0, although short writes are unlikely for regular files in ordinary "
14683 "circumstances."
14684 msgstr ""
14685
14686 #. type: textblock
14687 #: ../fish/guestfish-actions.pod:3962
14688 msgid "See also L</pread>, L</pwrite-device>."
14689 msgstr "Див. також L</pread>, L</pwrite-device>."
14690
14691 #. type: =head2
14692 #: ../fish/guestfish-actions.pod:3967
14693 msgid "pwrite-device"
14694 msgstr "pwrite-device"
14695
14696 #. type: verbatim
14697 #: ../fish/guestfish-actions.pod:3969
14698 #, no-wrap
14699 msgid ""
14700 " pwrite-device device content offset\n"
14701 "\n"
14702 msgstr ""
14703
14704 #. type: textblock
14705 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6205
14706 msgid ""
14707 "This command writes to part of a device.  It writes the data buffer "
14708 "C<content> to C<device> starting at offset C<offset>."
14709 msgstr ""
14710
14711 #. type: textblock
14712 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6208
14713 msgid ""
14714 "This command implements the L<pwrite(2)> system call, and like that system "
14715 "call it may not write the full data requested (although short writes to disk "
14716 "devices and partitions are probably impossible with standard Linux kernels)."
14717 msgstr ""
14718
14719 #. type: textblock
14720 #: ../fish/guestfish-actions.pod:3979
14721 msgid "See also L</pwrite>."
14722 msgstr "Див. також L</pwrite>."
14723
14724 #. type: =head2
14725 #: ../fish/guestfish-actions.pod:3984
14726 msgid "read-file"
14727 msgstr "read-file"
14728
14729 #. type: verbatim
14730 #: ../fish/guestfish-actions.pod:3986
14731 #, no-wrap
14732 msgid ""
14733 " read-file path\n"
14734 "\n"
14735 msgstr ""
14736 " read-file шлях\n"
14737 "\n"
14738
14739 #. type: textblock
14740 #: ../fish/guestfish-actions.pod:3988 ../src/guestfs-actions.pod:6229
14741 msgid "This calls returns the contents of the file C<path> as a buffer."
14742 msgstr ""
14743
14744 #. type: textblock
14745 #: ../fish/guestfish-actions.pod:3991
14746 msgid ""
14747 "Unlike L</cat>, this function can correctly handle files that contain "
14748 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14749 "is limited in the total size of file that can be handled."
14750 msgstr ""
14751
14752 #. type: =head2
14753 #: ../fish/guestfish-actions.pod:3999
14754 msgid "read-lines"
14755 msgstr "read-lines"
14756
14757 #. type: verbatim
14758 #: ../fish/guestfish-actions.pod:4001
14759 #, no-wrap
14760 msgid ""
14761 " read-lines path\n"
14762 "\n"
14763 msgstr ""
14764 " read-lines шлях\n"
14765 "\n"
14766
14767 #. type: textblock
14768 #: ../fish/guestfish-actions.pod:4005 ../src/guestfs-actions.pod:6254
14769 msgid ""
14770 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14771 "C<CRLF> character sequences are I<not> returned."
14772 msgstr ""
14773
14774 #. type: textblock
14775 #: ../fish/guestfish-actions.pod:4008
14776 msgid ""
14777 "Note that this function cannot correctly handle binary files (specifically, "
14778 "files containing C<\\0> character which is treated as end of line).  For "
14779 "those you need to use the L</read-file> function which has a more complex "
14780 "interface."
14781 msgstr ""
14782
14783 #. type: =head2
14784 #: ../fish/guestfish-actions.pod:4013
14785 msgid "readdir"
14786 msgstr "readdir"
14787
14788 #. type: verbatim
14789 #: ../fish/guestfish-actions.pod:4015
14790 #, no-wrap
14791 msgid ""
14792 " readdir dir\n"
14793 "\n"
14794 msgstr ""
14795 " readdir каталог\n"
14796 "\n"
14797
14798 #. type: textblock
14799 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6274
14800 msgid "This returns the list of directory entries in directory C<dir>."
14801 msgstr ""
14802
14803 #. type: textblock
14804 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6276
14805 msgid ""
14806 "All entries in the directory are returned, including C<.> and C<..>.  The "
14807 "entries are I<not> sorted, but returned in the same order as the underlying "
14808 "filesystem."
14809 msgstr ""
14810
14811 #. type: textblock
14812 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6280
14813 msgid ""
14814 "Also this call returns basic file type information about each file.  The "
14815 "C<ftyp> field will contain one of the following characters:"
14816 msgstr ""
14817
14818 #. type: =item
14819 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6285
14820 msgid "'b'"
14821 msgstr "'b'"
14822
14823 #. type: textblock
14824 #: ../fish/guestfish-actions.pod:4030 ../src/guestfs-actions.pod:6287
14825 msgid "Block special"
14826 msgstr "Блоковий особливий"
14827
14828 #. type: =item
14829 #: ../fish/guestfish-actions.pod:4032 ../src/guestfs-actions.pod:6289
14830 msgid "'c'"
14831 msgstr "'c'"
14832
14833 #. type: textblock
14834 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6291
14835 msgid "Char special"
14836 msgstr "Символьний особливий"
14837
14838 #. type: =item
14839 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6293
14840 msgid "'d'"
14841 msgstr "'d'"
14842
14843 #. type: textblock
14844 #: ../fish/guestfish-actions.pod:4038 ../src/guestfs-actions.pod:6295
14845 msgid "Directory"
14846 msgstr "Каталог"
14847
14848 #. type: =item
14849 #: ../fish/guestfish-actions.pod:4040 ../src/guestfs-actions.pod:6297
14850 msgid "'f'"
14851 msgstr "'f'"
14852
14853 #. type: textblock
14854 #: ../fish/guestfish-actions.pod:4042 ../src/guestfs-actions.pod:6299
14855 msgid "FIFO (named pipe)"
14856 msgstr "FIFO (іменований канал)"
14857
14858 #. type: =item
14859 #: ../fish/guestfish-actions.pod:4044 ../src/guestfs-actions.pod:6301
14860 msgid "'l'"
14861 msgstr "'l'"
14862
14863 #. type: textblock
14864 #: ../fish/guestfish-actions.pod:4046 ../src/guestfs-actions.pod:6303
14865 msgid "Symbolic link"
14866 msgstr "Символічне посилання"
14867
14868 #. type: =item
14869 #: ../fish/guestfish-actions.pod:4048 ../src/guestfs-actions.pod:6305
14870 msgid "'r'"
14871 msgstr "'r'"
14872
14873 #. type: textblock
14874 #: ../fish/guestfish-actions.pod:4050 ../src/guestfs-actions.pod:6307
14875 msgid "Regular file"
14876 msgstr "Звичайний файл"
14877
14878 #. type: =item
14879 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6309
14880 msgid "'s'"
14881 msgstr "'s'"
14882
14883 #. type: textblock
14884 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6311
14885 msgid "Socket"
14886 msgstr "Сокет"
14887
14888 #. type: =item
14889 #: ../fish/guestfish-actions.pod:4056 ../src/guestfs-actions.pod:6313
14890 msgid "'u'"
14891 msgstr "'u'"
14892
14893 #. type: textblock
14894 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6315
14895 msgid "Unknown file type"
14896 msgstr "Невідомий тип файла"
14897
14898 #. type: =item
14899 #: ../fish/guestfish-actions.pod:4060 ../src/guestfs-actions.pod:6317
14900 msgid "'?'"
14901 msgstr ""
14902
14903 #. type: textblock
14904 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6319
14905 msgid ""
14906 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14907 msgstr ""
14908
14909 #. type: textblock
14910 #: ../fish/guestfish-actions.pod:4067
14911 msgid ""
14912 "This function is primarily intended for use by programs.  To get a simple "
14913 "list of names, use L</ls>.  To get a printable directory for human "
14914 "consumption, use L</ll>."
14915 msgstr ""
14916
14917 #. type: =head2
14918 #: ../fish/guestfish-actions.pod:4071
14919 msgid "readlink"
14920 msgstr "readlink"
14921
14922 #. type: verbatim
14923 #: ../fish/guestfish-actions.pod:4073
14924 #, no-wrap
14925 msgid ""
14926 " readlink path\n"
14927 "\n"
14928 msgstr ""
14929 " readlink шлях\n"
14930 "\n"
14931
14932 #. type: textblock
14933 #: ../fish/guestfish-actions.pod:4075 ../src/guestfs-actions.pod:6340
14934 msgid "This command reads the target of a symbolic link."
14935 msgstr ""
14936
14937 #. type: =head2
14938 #: ../fish/guestfish-actions.pod:4077
14939 msgid "readlinklist"
14940 msgstr "readlinklist"
14941
14942 #. type: verbatim
14943 #: ../fish/guestfish-actions.pod:4079
14944 #, no-wrap
14945 msgid ""
14946 " readlinklist path 'names ...'\n"
14947 "\n"
14948 msgstr ""
14949
14950 #. type: textblock
14951 #: ../fish/guestfish-actions.pod:4081 ../src/guestfs-actions.pod:6354
14952 msgid ""
14953 "This call allows you to do a C<readlink> operation on multiple files, where "
14954 "all files are in the directory C<path>.  C<names> is the list of files from "
14955 "this directory."
14956 msgstr ""
14957
14958 #. type: textblock
14959 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6358
14960 msgid ""
14961 "On return you get a list of strings, with a one-to-one correspondence to the "
14962 "C<names> list.  Each string is the value of the symbolic link."
14963 msgstr ""
14964
14965 #. type: textblock
14966 #: ../fish/guestfish-actions.pod:4089 ../src/guestfs-actions.pod:6362
14967 msgid ""
14968 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14969 "result string is the empty string C<\"\">.  However the whole operation is "
14970 "completed even if there were C<readlink(2)> errors, and so you can call this "
14971 "function with names where you don't know if they are symbolic links already "
14972 "(albeit slightly less efficient)."
14973 msgstr ""
14974
14975 #. type: textblock
14976 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6369
14977 msgid ""
14978 "This call is intended for programs that want to efficiently list a directory "
14979 "contents without making many round-trips.  Very long directory listings "
14980 "might cause the protocol message size to be exceeded, causing this call to "
14981 "fail.  The caller must split up such requests into smaller groups of names."
14982 msgstr ""
14983
14984 #. type: =head2
14985 #: ../fish/guestfish-actions.pod:4103
14986 msgid "realpath"
14987 msgstr "realpath"
14988
14989 #. type: verbatim
14990 #: ../fish/guestfish-actions.pod:4105
14991 #, no-wrap
14992 msgid ""
14993 " realpath path\n"
14994 "\n"
14995 msgstr ""
14996 " realpath шлях\n"
14997 "\n"
14998
14999 #. type: textblock
15000 #: ../fish/guestfish-actions.pod:4107 ../src/guestfs-actions.pod:6388
15001 msgid ""
15002 "Return the canonicalized absolute pathname of C<path>.  The returned path "
15003 "has no C<.>, C<..> or symbolic link path elements."
15004 msgstr ""
15005
15006 #. type: =head2
15007 #: ../fish/guestfish-actions.pod:4110
15008 msgid "removexattr"
15009 msgstr "removexattr"
15010
15011 #. type: verbatim
15012 #: ../fish/guestfish-actions.pod:4112
15013 #, no-wrap
15014 msgid ""
15015 " removexattr xattr path\n"
15016 "\n"
15017 msgstr ""
15018
15019 #. type: textblock
15020 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6403
15021 msgid ""
15022 "This call removes the extended attribute named C<xattr> of the file C<path>."
15023 msgstr ""
15024
15025 #. type: textblock
15026 #: ../fish/guestfish-actions.pod:4117
15027 msgid "See also: L</lremovexattr>, L<attr(5)>."
15028 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
15029
15030 #. type: =head2
15031 #: ../fish/guestfish-actions.pod:4119
15032 msgid "resize2fs"
15033 msgstr "resize2fs"
15034
15035 #. type: verbatim
15036 #: ../fish/guestfish-actions.pod:4121
15037 #, no-wrap
15038 msgid ""
15039 " resize2fs device\n"
15040 "\n"
15041 msgstr ""
15042 " resize2fs пристрій\n"
15043 "\n"
15044
15045 #. type: textblock
15046 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6418
15047 msgid ""
15048 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
15049 "underlying device."
15050 msgstr ""
15051
15052 #. type: textblock
15053 #: ../fish/guestfish-actions.pod:4126
15054 msgid ""
15055 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
15056 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
15057 "gives an error about this and sometimes not.  In any case, it is always safe "
15058 "to call L</e2fsck-f> before calling this function."
15059 msgstr ""
15060
15061 #. type: =head2
15062 #: ../fish/guestfish-actions.pod:4132
15063 msgid "resize2fs-M"
15064 msgstr "resize2fs-M"
15065
15066 #. type: verbatim
15067 #: ../fish/guestfish-actions.pod:4134
15068 #, no-wrap
15069 msgid ""
15070 " resize2fs-M device\n"
15071 "\n"
15072 msgstr ""
15073 " resize2fs-M пристрій\n"
15074 "\n"
15075
15076 #. type: textblock
15077 #: ../fish/guestfish-actions.pod:4136
15078 msgid ""
15079 "This command is the same as L</resize2fs>, but the filesystem is resized to "
15080 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
15081 "command."
15082 msgstr ""
15083
15084 #. type: textblock
15085 #: ../fish/guestfish-actions.pod:4140
15086 msgid ""
15087 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
15088 "and read the C<Block size> and C<Block count> values.  These two numbers, "
15089 "multiplied together, give the resulting size of the minimal filesystem in "
15090 "bytes."
15091 msgstr ""
15092
15093 #. type: =head2
15094 #: ../fish/guestfish-actions.pod:4145
15095 msgid "resize2fs-size"
15096 msgstr "resize2fs-size"
15097
15098 #. type: verbatim
15099 #: ../fish/guestfish-actions.pod:4147
15100 #, no-wrap
15101 msgid ""
15102 " resize2fs-size device size\n"
15103 "\n"
15104 msgstr ""
15105
15106 #. type: textblock
15107 #: ../fish/guestfish-actions.pod:4149
15108 msgid ""
15109 "This command is the same as L</resize2fs> except that it allows you to "
15110 "specify the new size (in bytes) explicitly."
15111 msgstr ""
15112
15113 #. type: =head2
15114 #: ../fish/guestfish-actions.pod:4152
15115 msgid "rm"
15116 msgstr "rm"
15117
15118 #. type: verbatim
15119 #: ../fish/guestfish-actions.pod:4154
15120 #, no-wrap
15121 msgid ""
15122 " rm path\n"
15123 "\n"
15124 msgstr ""
15125 " rm шлях\n"
15126 "\n"
15127
15128 #. type: textblock
15129 #: ../fish/guestfish-actions.pod:4156 ../src/guestfs-actions.pod:6470
15130 msgid "Remove the single file C<path>."
15131 msgstr ""
15132
15133 #. type: =head2
15134 #: ../fish/guestfish-actions.pod:4158
15135 msgid "rm-rf"
15136 msgstr "rm-rf"
15137
15138 #. type: verbatim
15139 #: ../fish/guestfish-actions.pod:4160
15140 #, no-wrap
15141 msgid ""
15142 " rm-rf path\n"
15143 "\n"
15144 msgstr ""
15145 " rm-rf шлях\n"
15146 "\n"
15147
15148 #. type: textblock
15149 #: ../fish/guestfish-actions.pod:4162 ../src/guestfs-actions.pod:6482
15150 msgid ""
15151 "Remove the file or directory C<path>, recursively removing the contents if "
15152 "its a directory.  This is like the C<rm -rf> shell command."
15153 msgstr ""
15154
15155 #. type: =head2
15156 #: ../fish/guestfish-actions.pod:4166
15157 msgid "rmdir"
15158 msgstr "rmdir"
15159
15160 #. type: verbatim
15161 #: ../fish/guestfish-actions.pod:4168
15162 #, no-wrap
15163 msgid ""
15164 " rmdir path\n"
15165 "\n"
15166 msgstr ""
15167 " rmdir шлях\n"
15168 "\n"
15169
15170 #. type: textblock
15171 #: ../fish/guestfish-actions.pod:4170 ../src/guestfs-actions.pod:6496
15172 msgid "Remove the single directory C<path>."
15173 msgstr ""
15174
15175 #. type: =head2
15176 #: ../fish/guestfish-actions.pod:4172
15177 msgid "rmmountpoint"
15178 msgstr "rmmountpoint"
15179
15180 #. type: verbatim
15181 #: ../fish/guestfish-actions.pod:4174
15182 #, no-wrap
15183 msgid ""
15184 " rmmountpoint exemptpath\n"
15185 "\n"
15186 msgstr ""
15187
15188 #. type: textblock
15189 #: ../fish/guestfish-actions.pod:4176
15190 msgid ""
15191 "This calls removes a mountpoint that was previously created with L</"
15192 "mkmountpoint>.  See L</mkmountpoint> for full details."
15193 msgstr ""
15194
15195 #. type: =head2
15196 #: ../fish/guestfish-actions.pod:4180
15197 msgid "scrub-device"
15198 msgstr "scrub-device"
15199
15200 #. type: verbatim
15201 #: ../fish/guestfish-actions.pod:4182
15202 #, no-wrap
15203 msgid ""
15204 " scrub-device device\n"
15205 "\n"
15206 msgstr ""
15207 " scrub-device пристрій\n"
15208 "\n"
15209
15210 #. type: textblock
15211 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6522
15212 msgid ""
15213 "This command writes patterns over C<device> to make data retrieval more "
15214 "difficult."
15215 msgstr ""
15216
15217 #. type: textblock
15218 #: ../fish/guestfish-actions.pod:4187 ../fish/guestfish-actions.pod:4202
15219 #: ../fish/guestfish-actions.pod:4215 ../src/guestfs-actions.pod:6525
15220 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6565
15221 msgid ""
15222 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15223 "more details."
15224 msgstr ""
15225
15226 #. type: =head2
15227 #: ../fish/guestfish-actions.pod:4193
15228 msgid "scrub-file"
15229 msgstr "scrub-file"
15230
15231 #. type: verbatim
15232 #: ../fish/guestfish-actions.pod:4195
15233 #, no-wrap
15234 msgid ""
15235 " scrub-file file\n"
15236 "\n"
15237 msgstr ""
15238 " scrub-file файл\n"
15239 "\n"
15240
15241 #. type: textblock
15242 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6541
15243 msgid ""
15244 "This command writes patterns over a file to make data retrieval more "
15245 "difficult."
15246 msgstr ""
15247
15248 #. type: textblock
15249 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6544
15250 msgid "The file is I<removed> after scrubbing."
15251 msgstr ""
15252
15253 #. type: =head2
15254 #: ../fish/guestfish-actions.pod:4205
15255 msgid "scrub-freespace"
15256 msgstr "scrub-freespace"
15257
15258 #. type: verbatim
15259 #: ../fish/guestfish-actions.pod:4207
15260 #, no-wrap
15261 msgid ""
15262 " scrub-freespace dir\n"
15263 "\n"
15264 msgstr ""
15265 " scrub-freespace каталог\n"
15266 "\n"
15267
15268 #. type: textblock
15269 #: ../fish/guestfish-actions.pod:4209
15270 msgid ""
15271 "This command creates the directory C<dir> and then fills it with files until "
15272 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15273 "deletes them.  The intention is to scrub any free space on the partition "
15274 "containing C<dir>."
15275 msgstr ""
15276
15277 #. type: =head2
15278 #: ../fish/guestfish-actions.pod:4218
15279 msgid "set-append"
15280 msgstr "set-append"
15281
15282 #. type: =head2
15283 #: ../fish/guestfish-actions.pod:4220
15284 msgid "append"
15285 msgstr ""
15286
15287 #. type: verbatim
15288 #: ../fish/guestfish-actions.pod:4222
15289 #, no-wrap
15290 msgid ""
15291 " set-append append\n"
15292 "\n"
15293 msgstr ""
15294
15295 #. type: textblock
15296 #: ../fish/guestfish-actions.pod:4224 ../src/guestfs-actions.pod:6578
15297 msgid ""
15298 "This function is used to add additional options to the guest kernel command "
15299 "line."
15300 msgstr ""
15301
15302 #. type: textblock
15303 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6581
15304 msgid ""
15305 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15306 "environment variable."
15307 msgstr ""
15308
15309 #. type: textblock
15310 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6584
15311 msgid ""
15312 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15313 "(libguestfs always adds a few of its own)."
15314 msgstr ""
15315
15316 #. type: =head2
15317 #: ../fish/guestfish-actions.pod:4233
15318 msgid "set-attach-method"
15319 msgstr "set-attach-method"
15320
15321 #. type: =head2
15322 #: ../fish/guestfish-actions.pod:4235
15323 msgid "attach-method"
15324 msgstr ""
15325
15326 #. type: verbatim
15327 #: ../fish/guestfish-actions.pod:4237
15328 #, no-wrap
15329 msgid ""
15330 " set-attach-method attachmethod\n"
15331 "\n"
15332 msgstr ""
15333
15334 #. type: textblock
15335 #: ../fish/guestfish-actions.pod:4239 ../src/guestfs-actions.pod:6597
15336 msgid ""
15337 "Set the method that libguestfs uses to connect to the back end guestfsd "
15338 "daemon.  Possible methods are:"
15339 msgstr ""
15340
15341 #. type: =item
15342 #: ../fish/guestfish-actions.pod:4244 ../src/guestfs-actions.pod:6602
15343 #: ../src/guestfs.pod:2916
15344 msgid "C<appliance>"
15345 msgstr "C<appliance>"
15346
15347 #. type: textblock
15348 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6604
15349 msgid ""
15350 "Launch an appliance and connect to it.  This is the ordinary method and the "
15351 "default."
15352 msgstr ""
15353
15354 #. type: =item
15355 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6607
15356 msgid "C<unix:I<path>>"
15357 msgstr "C<unix:I<шлях>>"
15358
15359 #. type: textblock
15360 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6609
15361 msgid "Connect to the Unix domain socket I<path>."
15362 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15363
15364 #. type: textblock
15365 #: ../fish/guestfish-actions.pod:4253 ../src/guestfs-actions.pod:6611
15366 msgid ""
15367 "This method lets you connect to an existing daemon or (using virtio-serial) "
15368 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15369 "RUNNING DAEMONS>."
15370 msgstr ""
15371
15372 #. type: =head2
15373 #: ../fish/guestfish-actions.pod:4259
15374 msgid "set-autosync"
15375 msgstr "set-autosync"
15376
15377 #. type: =head2
15378 #: ../fish/guestfish-actions.pod:4261
15379 msgid "autosync"
15380 msgstr "autosync"
15381
15382 #. type: verbatim
15383 #: ../fish/guestfish-actions.pod:4263
15384 #, no-wrap
15385 msgid ""
15386 " set-autosync true|false\n"
15387 "\n"
15388 msgstr ""
15389 " set-autosync true|false\n"
15390 "\n"
15391
15392 #. type: textblock
15393 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6627
15394 msgid ""
15395 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15396 "effort attempt to make filesystems consistent and synchronized when the "
15397 "handle is closed (also if the program exits without closing handles)."
15398 msgstr ""
15399
15400 #. type: textblock
15401 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6632
15402 msgid ""
15403 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15404 "disabled by default)."
15405 msgstr ""
15406
15407 #. type: =head2
15408 #: ../fish/guestfish-actions.pod:4273
15409 msgid "set-direct"
15410 msgstr "set-direct"
15411
15412 #. type: =head2
15413 #: ../fish/guestfish-actions.pod:4275
15414 msgid "direct"
15415 msgstr "direct"
15416
15417 #. type: verbatim
15418 #: ../fish/guestfish-actions.pod:4277
15419 #, no-wrap
15420 msgid ""
15421 " set-direct true|false\n"
15422 "\n"
15423 msgstr ""
15424 " set-direct true|false\n"
15425 "\n"
15426
15427 #. type: textblock
15428 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6645
15429 msgid ""
15430 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15431 "passed directly through to the appliance once it is launched."
15432 msgstr ""
15433
15434 #. type: textblock
15435 #: ../fish/guestfish-actions.pod:4283
15436 msgid ""
15437 "One consequence of this is that log messages aren't caught by the library "
15438 "and handled by L</set-log-message-callback>, but go straight to stdout."
15439 msgstr ""
15440
15441 #. type: textblock
15442 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6653
15443 msgid "You probably don't want to use this unless you know what you are doing."
15444 msgstr ""
15445
15446 #. type: textblock
15447 #: ../fish/guestfish-actions.pod:4290 ../src/guestfs-actions.pod:6656
15448 msgid "The default is disabled."
15449 msgstr ""
15450
15451 #. type: =head2
15452 #: ../fish/guestfish-actions.pod:4292
15453 msgid "set-e2label"
15454 msgstr "set-e2label"
15455
15456 #. type: verbatim
15457 #: ../fish/guestfish-actions.pod:4294
15458 #, no-wrap
15459 msgid ""
15460 " set-e2label device label\n"
15461 "\n"
15462 msgstr ""
15463
15464 #. type: textblock
15465 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6669
15466 msgid ""
15467 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15468 "C<label>.  Filesystem labels are limited to 16 characters."
15469 msgstr ""
15470
15471 #. type: textblock
15472 #: ../fish/guestfish-actions.pod:4300
15473 msgid ""
15474 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15475 "label on a filesystem."
15476 msgstr ""
15477
15478 #. type: =head2
15479 #: ../fish/guestfish-actions.pod:4303
15480 msgid "set-e2uuid"
15481 msgstr "set-e2uuid"
15482
15483 #. type: verbatim
15484 #: ../fish/guestfish-actions.pod:4305
15485 #, no-wrap
15486 msgid ""
15487 " set-e2uuid device uuid\n"
15488 "\n"
15489 msgstr ""
15490
15491 #. type: textblock
15492 #: ../fish/guestfish-actions.pod:4307 ../src/guestfs-actions.pod:6687
15493 msgid ""
15494 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15495 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15496 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15497 msgstr ""
15498
15499 #. type: textblock
15500 #: ../fish/guestfish-actions.pod:4312
15501 msgid ""
15502 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15503 "UUID of a filesystem."
15504 msgstr ""
15505
15506 #. type: =head2
15507 #: ../fish/guestfish-actions.pod:4315
15508 msgid "set-memsize"
15509 msgstr "set-memsize"
15510
15511 #. type: =head2
15512 #: ../fish/guestfish-actions.pod:4317
15513 msgid "memsize"
15514 msgstr ""
15515
15516 #. type: verbatim
15517 #: ../fish/guestfish-actions.pod:4319
15518 #, no-wrap
15519 msgid ""
15520 " set-memsize memsize\n"
15521 "\n"
15522 msgstr ""
15523
15524 #. type: textblock
15525 #: ../fish/guestfish-actions.pod:4321
15526 msgid ""
15527 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15528 "This only has any effect if called before L</launch>."
15529 msgstr ""
15530
15531 #. type: textblock
15532 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6709
15533 msgid ""
15534 "You can also change this by setting the environment variable "
15535 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15536 msgstr ""
15537
15538 #. type: =head2
15539 #: ../fish/guestfish-actions.pod:4332
15540 msgid "set-network"
15541 msgstr "set-network"
15542
15543 #. type: =head2
15544 #: ../fish/guestfish-actions.pod:4334
15545 msgid "network"
15546 msgstr "network"
15547
15548 #. type: verbatim
15549 #: ../fish/guestfish-actions.pod:4336
15550 #, no-wrap
15551 msgid ""
15552 " set-network true|false\n"
15553 "\n"
15554 msgstr ""
15555 " set-network true|false\n"
15556 "\n"
15557
15558 #. type: textblock
15559 #: ../fish/guestfish-actions.pod:4338 ../src/guestfs-actions.pod:6726
15560 msgid ""
15561 "If C<network> is true, then the network is enabled in the libguestfs "
15562 "appliance.  The default is false."
15563 msgstr ""
15564
15565 #. type: textblock
15566 #: ../fish/guestfish-actions.pod:4341 ../src/guestfs-actions.pod:6729
15567 msgid ""
15568 "This affects whether commands are able to access the network (see L<guestfs"
15569 "(3)/RUNNING COMMANDS>)."
15570 msgstr ""
15571
15572 #. type: textblock
15573 #: ../fish/guestfish-actions.pod:4344
15574 msgid ""
15575 "You must call this before calling L</launch>, otherwise it has no effect."
15576 msgstr ""
15577
15578 #. type: =head2
15579 #: ../fish/guestfish-actions.pod:4347
15580 msgid "set-path"
15581 msgstr "set-path"
15582
15583 #. type: verbatim
15584 #: ../fish/guestfish-actions.pod:4351
15585 #, no-wrap
15586 msgid ""
15587 " set-path searchpath\n"
15588 "\n"
15589 msgstr ""
15590
15591 #. type: textblock
15592 #: ../fish/guestfish-actions.pod:4353 ../src/guestfs-actions.pod:6745
15593 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15594 msgstr ""
15595
15596 #. type: textblock
15597 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6747
15598 msgid ""
15599 "The default is C<$libdir/guestfs> unless overridden by setting "
15600 "C<LIBGUESTFS_PATH> environment variable."
15601 msgstr ""
15602
15603 #. type: textblock
15604 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6750
15605 msgid "Setting C<path> to C<NULL> restores the default path."
15606 msgstr ""
15607
15608 #. type: =head2
15609 #: ../fish/guestfish-actions.pod:4360
15610 msgid "set-pgroup"
15611 msgstr ""
15612
15613 #. type: =head2
15614 #: ../fish/guestfish-actions.pod:4362
15615 msgid "pgroup"
15616 msgstr ""
15617
15618 #. type: verbatim
15619 #: ../fish/guestfish-actions.pod:4364
15620 #, no-wrap
15621 msgid ""
15622 " set-pgroup true|false\n"
15623 "\n"
15624 msgstr ""
15625
15626 #. type: textblock
15627 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6762
15628 msgid ""
15629 "If C<pgroup> is true, child processes are placed into their own process "
15630 "group."
15631 msgstr ""
15632
15633 #. type: textblock
15634 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6765
15635 msgid ""
15636 "The practical upshot of this is that signals like C<SIGINT> (from users "
15637 "pressing C<^C>) won't be received by the child process."
15638 msgstr ""
15639
15640 #. type: textblock
15641 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6768
15642 msgid ""
15643 "The default for this flag is false, because usually you want C<^C> to kill "
15644 "the subprocess."
15645 msgstr ""
15646
15647 #. type: =head2
15648 #: ../fish/guestfish-actions.pod:4375
15649 msgid "set-qemu"
15650 msgstr "set-qemu"
15651
15652 #. type: =head2
15653 #: ../fish/guestfish-actions.pod:4377
15654 msgid "qemu"
15655 msgstr "qemu"
15656
15657 #. type: verbatim
15658 #: ../fish/guestfish-actions.pod:4379
15659 #, no-wrap
15660 msgid ""
15661 " set-qemu qemu\n"
15662 "\n"
15663 msgstr ""
15664 " set-qemu qemu\n"
15665 "\n"
15666
15667 #. type: textblock
15668 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6781
15669 msgid "Set the qemu binary that we will use."
15670 msgstr ""
15671
15672 #. type: textblock
15673 #: ../fish/guestfish-actions.pod:4383 ../src/guestfs-actions.pod:6783
15674 msgid ""
15675 "The default is chosen when the library was compiled by the configure script."
15676 msgstr ""
15677
15678 #. type: textblock
15679 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6786
15680 msgid ""
15681 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15682 "variable."
15683 msgstr ""
15684
15685 #. type: textblock
15686 #: ../fish/guestfish-actions.pod:4389 ../src/guestfs-actions.pod:6789
15687 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15688 msgstr ""
15689
15690 #. type: textblock
15691 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6791
15692 msgid ""
15693 "Note that you should call this function as early as possible after creating "
15694 "the handle.  This is because some pre-launch operations depend on testing "
15695 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15696 "don't retest features, and so you might see inconsistent results.  Using the "
15697 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15698 "the qemu binary at the same time as the handle is created."
15699 msgstr ""
15700
15701 #. type: =head2
15702 #: ../fish/guestfish-actions.pod:4399
15703 msgid "set-recovery-proc"
15704 msgstr "set-recovery-proc"
15705
15706 #. type: =head2
15707 #: ../fish/guestfish-actions.pod:4401
15708 msgid "recovery-proc"
15709 msgstr "recovery-proc"
15710
15711 #. type: verbatim
15712 #: ../fish/guestfish-actions.pod:4403
15713 #, no-wrap
15714 msgid ""
15715 " set-recovery-proc true|false\n"
15716 "\n"
15717 msgstr ""
15718 " set-recovery-proc true|false\n"
15719 "\n"
15720
15721 #. type: textblock
15722 #: ../fish/guestfish-actions.pod:4405
15723 msgid ""
15724 "If this is called with the parameter C<false> then L</launch> does not "
15725 "create a recovery process.  The purpose of the recovery process is to stop "
15726 "runaway qemu processes in the case where the main program aborts abruptly."
15727 msgstr ""
15728
15729 #. type: textblock
15730 #: ../fish/guestfish-actions.pod:4410
15731 msgid ""
15732 "This only has any effect if called before L</launch>, and the default is "
15733 "true."
15734 msgstr ""
15735
15736 #. type: textblock
15737 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6817
15738 msgid ""
15739 "About the only time when you would want to disable this is if the main "
15740 "process will fork itself into the background (\"daemonize\" itself).  In "
15741 "this case the recovery process thinks that the main program has disappeared "
15742 "and so kills qemu, which is not very helpful."
15743 msgstr ""
15744
15745 #. type: =head2
15746 #: ../fish/guestfish-actions.pod:4419
15747 msgid "set-selinux"
15748 msgstr "set-selinux"
15749
15750 #. type: =head2
15751 #: ../fish/guestfish-actions.pod:4421
15752 msgid "selinux"
15753 msgstr "selinux"
15754
15755 #. type: verbatim
15756 #: ../fish/guestfish-actions.pod:4423
15757 #, no-wrap
15758 msgid ""
15759 " set-selinux true|false\n"
15760 "\n"
15761 msgstr ""
15762 " set-selinux true|false\n"
15763 "\n"
15764
15765 #. type: textblock
15766 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6833
15767 msgid ""
15768 "This sets the selinux flag that is passed to the appliance at boot time.  "
15769 "The default is C<selinux=0> (disabled)."
15770 msgstr ""
15771
15772 #. type: textblock
15773 #: ../fish/guestfish-actions.pod:4428 ../src/guestfs-actions.pod:6836
15774 msgid ""
15775 "Note that if SELinux is enabled, it is always in Permissive mode "
15776 "(C<enforcing=0>)."
15777 msgstr ""
15778
15779 #. type: =head2
15780 #: ../fish/guestfish-actions.pod:4434
15781 msgid "set-smp"
15782 msgstr ""
15783
15784 #. type: =head2
15785 #: ../fish/guestfish-actions.pod:4436
15786 msgid "smp"
15787 msgstr ""
15788
15789 #. type: verbatim
15790 #: ../fish/guestfish-actions.pod:4438
15791 #, no-wrap
15792 msgid ""
15793 " set-smp smp\n"
15794 "\n"
15795 msgstr ""
15796
15797 #. type: textblock
15798 #: ../fish/guestfish-actions.pod:4440 ../src/guestfs-actions.pod:6852
15799 msgid ""
15800 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15801 "C<1>.  Increasing this may improve performance, though often it has no "
15802 "effect."
15803 msgstr ""
15804
15805 #. type: textblock
15806 #: ../fish/guestfish-actions.pod:4444
15807 msgid "This function must be called before L</launch>."
15808 msgstr ""
15809
15810 #. type: =head2
15811 #: ../fish/guestfish-actions.pod:4446
15812 msgid "set-trace"
15813 msgstr "set-trace"
15814
15815 #. type: =head2
15816 #: ../fish/guestfish-actions.pod:4448
15817 msgid "trace"
15818 msgstr "trace"
15819
15820 #. type: verbatim
15821 #: ../fish/guestfish-actions.pod:4450
15822 #, no-wrap
15823 msgid ""
15824 " set-trace true|false\n"
15825 "\n"
15826 msgstr ""
15827 " set-trace true|false\n"
15828 "\n"
15829
15830 #. type: textblock
15831 #: ../fish/guestfish-actions.pod:4452 ../src/guestfs-actions.pod:6868
15832 msgid ""
15833 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15834 "return values are traced."
15835 msgstr ""
15836
15837 #. type: textblock
15838 #: ../fish/guestfish-actions.pod:4455 ../src/guestfs-actions.pod:6871
15839 msgid ""
15840 "If you want to trace C API calls into libguestfs (and other libraries) then "
15841 "possibly a better way is to use the external ltrace(1) command."
15842 msgstr ""
15843
15844 #. type: textblock
15845 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6875
15846 msgid ""
15847 "Command traces are disabled unless the environment variable "
15848 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15849 msgstr ""
15850
15851 #. type: textblock
15852 #: ../fish/guestfish-actions.pod:4462
15853 msgid ""
15854 "Trace messages are normally sent to C<stderr>, unless you register a "
15855 "callback to send them somewhere else (see L</set-event-callback>)."
15856 msgstr ""
15857
15858 #. type: =head2
15859 #: ../fish/guestfish-actions.pod:4466
15860 msgid "set-verbose"
15861 msgstr "set-verbose"
15862
15863 #. type: =head2
15864 #: ../fish/guestfish-actions.pod:4468
15865 msgid "verbose"
15866 msgstr "verbose"
15867
15868 #. type: verbatim
15869 #: ../fish/guestfish-actions.pod:4470
15870 #, no-wrap
15871 msgid ""
15872 " set-verbose true|false\n"
15873 "\n"
15874 msgstr ""
15875 " set-verbose true|false\n"
15876 "\n"
15877
15878 #. type: textblock
15879 #: ../fish/guestfish-actions.pod:4472 ../src/guestfs-actions.pod:6892
15880 msgid "If C<verbose> is true, this turns on verbose messages."
15881 msgstr ""
15882
15883 #. type: textblock
15884 #: ../fish/guestfish-actions.pod:4474 ../src/guestfs-actions.pod:6894
15885 msgid ""
15886 "Verbose messages are disabled unless the environment variable "
15887 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15888 msgstr ""
15889
15890 #. type: textblock
15891 #: ../fish/guestfish-actions.pod:4477
15892 msgid ""
15893 "Verbose messages are normally sent to C<stderr>, unless you register a "
15894 "callback to send them somewhere else (see L</set-event-callback>)."
15895 msgstr ""
15896
15897 #. type: =head2
15898 #: ../fish/guestfish-actions.pod:4481
15899 msgid "setcon"
15900 msgstr "setcon"
15901
15902 #. type: verbatim
15903 #: ../fish/guestfish-actions.pod:4483
15904 #, no-wrap
15905 msgid ""
15906 " setcon context\n"
15907 "\n"
15908 msgstr ""
15909 " setcon контекст\n"
15910 "\n"
15911
15912 #. type: textblock
15913 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6911
15914 msgid ""
15915 "This sets the SELinux security context of the daemon to the string "
15916 "C<context>."
15917 msgstr ""
15918
15919 #. type: textblock
15920 #: ../fish/guestfish-actions.pod:4488 ../src/guestfs-actions.pod:6914
15921 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15922 msgstr ""
15923
15924 #. type: =head2
15925 #: ../fish/guestfish-actions.pod:4490
15926 msgid "setxattr"
15927 msgstr "setxattr"
15928
15929 #. type: verbatim
15930 #: ../fish/guestfish-actions.pod:4492
15931 #, no-wrap
15932 msgid ""
15933 " setxattr xattr val vallen path\n"
15934 "\n"
15935 msgstr ""
15936
15937 #. type: textblock
15938 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6929
15939 msgid ""
15940 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15941 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15942 msgstr ""
15943
15944 #. type: textblock
15945 #: ../fish/guestfish-actions.pod:4498
15946 msgid "See also: L</lsetxattr>, L<attr(5)>."
15947 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
15948
15949 #. type: =head2
15950 #: ../fish/guestfish-actions.pod:4500
15951 msgid "sfdisk"
15952 msgstr "sfdisk"
15953
15954 #. type: verbatim
15955 #: ../fish/guestfish-actions.pod:4502
15956 #, no-wrap
15957 msgid ""
15958 " sfdisk device cyls heads sectors 'lines ...'\n"
15959 "\n"
15960 msgstr ""
15961
15962 #. type: textblock
15963 #: ../fish/guestfish-actions.pod:4504 ../src/guestfs-actions.pod:6956
15964 msgid ""
15965 "This is a direct interface to the L<sfdisk(8)> program for creating "
15966 "partitions on block devices."
15967 msgstr ""
15968
15969 #. type: textblock
15970 #: ../fish/guestfish-actions.pod:4507 ../src/guestfs-actions.pod:6959
15971 msgid "C<device> should be a block device, for example C</dev/sda>."
15972 msgstr ""
15973
15974 #. type: textblock
15975 #: ../fish/guestfish-actions.pod:4509 ../src/guestfs-actions.pod:6961
15976 msgid ""
15977 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15978 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15979 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15980 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15981 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15982 "the kernel) cannot work out the right geometry and you will need to tell it."
15983 msgstr ""
15984
15985 #. type: textblock
15986 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6969
15987 msgid ""
15988 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15989 "refer to the L<sfdisk(8)> manpage."
15990 msgstr ""
15991
15992 #. type: textblock
15993 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6972
15994 msgid ""
15995 "To create a single partition occupying the whole disk, you would pass "
15996 "C<lines> as a single element list, when the single element being the string "
15997 "C<,> (comma)."
15998 msgstr ""
15999
16000 #. type: textblock
16001 #: ../fish/guestfish-actions.pod:4524
16002 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16003 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
16004
16005 #. type: textblock
16006 #: ../fish/guestfish-actions.pod:4530 ../fish/guestfish-actions.pod:4553
16007 #: ../fish/guestfish-actions.pod:4575
16008 msgid ""
16009 "I<This function is deprecated.> In new code, use the L</part_add> call "
16010 "instead."
16011 msgstr ""
16012
16013 #. type: =head2
16014 #: ../fish/guestfish-actions.pod:4537
16015 msgid "sfdiskM"
16016 msgstr "sfdiskM"
16017
16018 #. type: verbatim
16019 #: ../fish/guestfish-actions.pod:4539
16020 #, no-wrap
16021 msgid ""
16022 " sfdiskM device 'lines ...'\n"
16023 "\n"
16024 msgstr ""
16025
16026 #. type: textblock
16027 #: ../fish/guestfish-actions.pod:4541
16028 msgid ""
16029 "This is a simplified interface to the L</sfdisk> command, where partition "
16030 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
16031 "you don't need to specify the cyls, heads and sectors parameters which were "
16032 "rarely if ever used anyway."
16033 msgstr ""
16034
16035 #. type: textblock
16036 #: ../fish/guestfish-actions.pod:4547
16037 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
16038 msgstr ""
16039 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
16040
16041 #. type: =head2
16042 #: ../fish/guestfish-actions.pod:4560
16043 msgid "sfdisk-N"
16044 msgstr "sfdisk-N"
16045
16046 #. type: verbatim
16047 #: ../fish/guestfish-actions.pod:4562
16048 #, no-wrap
16049 msgid ""
16050 " sfdisk-N device partnum cyls heads sectors line\n"
16051 "\n"
16052 msgstr ""
16053
16054 #. type: textblock
16055 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:7034
16056 msgid ""
16057 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
16058 "(note: C<n> counts from 1)."
16059 msgstr ""
16060
16061 #. type: textblock
16062 #: ../fish/guestfish-actions.pod:4567
16063 msgid ""
16064 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
16065 "cyls/heads/sectors parameters."
16066 msgstr ""
16067
16068 #. type: textblock
16069 #: ../fish/guestfish-actions.pod:4570
16070 msgid "See also: L</part-add>"
16071 msgstr "Див. також L</part-add>"
16072
16073 #. type: =head2
16074 #: ../fish/guestfish-actions.pod:4582
16075 msgid "sfdisk-disk-geometry"
16076 msgstr "sfdisk-disk-geometry"
16077
16078 #. type: verbatim
16079 #: ../fish/guestfish-actions.pod:4584
16080 #, no-wrap
16081 msgid ""
16082 " sfdisk-disk-geometry device\n"
16083 "\n"
16084 msgstr ""
16085 " sfdisk-disk-geometry пристрій\n"
16086 "\n"
16087
16088 #. type: textblock
16089 #: ../fish/guestfish-actions.pod:4586
16090 msgid ""
16091 "This displays the disk geometry of C<device> read from the partition table.  "
16092 "Especially in the case where the underlying block device has been resized, "
16093 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
16094 "kernel-geometry>)."
16095 msgstr ""
16096
16097 #. type: textblock
16098 #: ../fish/guestfish-actions.pod:4591 ../fish/guestfish-actions.pod:4600
16099 #: ../src/guestfs-actions.pod:7060 ../src/guestfs-actions.pod:7076
16100 msgid "The result is in human-readable format, and not designed to be parsed."
16101 msgstr ""
16102
16103 #. type: =head2
16104 #: ../fish/guestfish-actions.pod:4594
16105 msgid "sfdisk-kernel-geometry"
16106 msgstr "sfdisk-kernel-geometry"
16107
16108 #. type: verbatim
16109 #: ../fish/guestfish-actions.pod:4596
16110 #, no-wrap
16111 msgid ""
16112 " sfdisk-kernel-geometry device\n"
16113 "\n"
16114 msgstr ""
16115 " sfdisk-kernel-geometry пристрій\n"
16116 "\n"
16117
16118 #. type: textblock
16119 #: ../fish/guestfish-actions.pod:4598 ../src/guestfs-actions.pod:7074
16120 msgid "This displays the kernel's idea of the geometry of C<device>."
16121 msgstr ""
16122
16123 #. type: =head2
16124 #: ../fish/guestfish-actions.pod:4603
16125 msgid "sfdisk-l"
16126 msgstr "sfdisk-l"
16127
16128 #. type: verbatim
16129 #: ../fish/guestfish-actions.pod:4605
16130 #, no-wrap
16131 msgid ""
16132 " sfdisk-l device\n"
16133 "\n"
16134 msgstr ""
16135 " sfdisk-l пристрій\n"
16136 "\n"
16137
16138 #. type: textblock
16139 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:7097
16140 msgid ""
16141 "This displays the partition table on C<device>, in the human-readable output "
16142 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
16143 msgstr ""
16144
16145 #. type: textblock
16146 #: ../fish/guestfish-actions.pod:4611
16147 msgid "See also: L</part-list>"
16148 msgstr "Див. також L</part-list>"
16149
16150 #. type: textblock
16151 #: ../fish/guestfish-actions.pod:4613
16152 msgid ""
16153 "I<This function is deprecated.> In new code, use the L</part_list> call "
16154 "instead."
16155 msgstr ""
16156
16157 #. type: =head2
16158 #: ../fish/guestfish-actions.pod:4620
16159 msgid "sh"
16160 msgstr "sh"
16161
16162 #. type: verbatim
16163 #: ../fish/guestfish-actions.pod:4622
16164 #, no-wrap
16165 msgid ""
16166 " sh command\n"
16167 "\n"
16168 msgstr ""
16169 " sh команда\n"
16170 "\n"
16171
16172 #. type: textblock
16173 #: ../fish/guestfish-actions.pod:4624 ../src/guestfs-actions.pod:7114
16174 msgid ""
16175 "This call runs a command from the guest filesystem via the guest's C</bin/"
16176 "sh>."
16177 msgstr ""
16178
16179 #. type: textblock
16180 #: ../fish/guestfish-actions.pod:4627
16181 msgid "This is like L</command>, but passes the command to:"
16182 msgstr ""
16183
16184 #. type: verbatim
16185 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:7119
16186 #, no-wrap
16187 msgid ""
16188 " /bin/sh -c \"command\"\n"
16189 "\n"
16190 msgstr ""
16191
16192 #. type: textblock
16193 #: ../fish/guestfish-actions.pod:4631 ../src/guestfs-actions.pod:7121
16194 msgid ""
16195 "Depending on the guest's shell, this usually results in wildcards being "
16196 "expanded, shell expressions being interpolated and so on."
16197 msgstr ""
16198
16199 #. type: textblock
16200 #: ../fish/guestfish-actions.pod:4635
16201 msgid "All the provisos about L</command> apply to this call."
16202 msgstr ""
16203
16204 #. type: =head2
16205 #: ../fish/guestfish-actions.pod:4637
16206 msgid "sh-lines"
16207 msgstr "sh-lines"
16208
16209 #. type: verbatim
16210 #: ../fish/guestfish-actions.pod:4639
16211 #, no-wrap
16212 msgid ""
16213 " sh-lines command\n"
16214 "\n"
16215 msgstr ""
16216 " sh-lines команда\n"
16217 "\n"
16218
16219 #. type: textblock
16220 #: ../fish/guestfish-actions.pod:4641
16221 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16222 msgstr ""
16223
16224 #. type: textblock
16225 #: ../fish/guestfish-actions.pod:4644
16226 msgid "See also: L</command-lines>"
16227 msgstr "Див. також L</command-lines>"
16228
16229 #. type: =head2
16230 #: ../fish/guestfish-actions.pod:4646
16231 msgid "sleep"
16232 msgstr "sleep"
16233
16234 #. type: verbatim
16235 #: ../fish/guestfish-actions.pod:4648
16236 #, no-wrap
16237 msgid ""
16238 " sleep secs\n"
16239 "\n"
16240 msgstr ""
16241 " sleep час_у_секундах\n"
16242 "\n"
16243
16244 #. type: textblock
16245 #: ../fish/guestfish-actions.pod:4650 ../src/guestfs-actions.pod:7155
16246 msgid "Sleep for C<secs> seconds."
16247 msgstr ""
16248
16249 #. type: =head2
16250 #: ../fish/guestfish-actions.pod:4652
16251 msgid "stat"
16252 msgstr "stat"
16253
16254 #. type: verbatim
16255 #: ../fish/guestfish-actions.pod:4654
16256 #, no-wrap
16257 msgid ""
16258 " stat path\n"
16259 "\n"
16260 msgstr ""
16261 " stat шлях\n"
16262 "\n"
16263
16264 #. type: textblock
16265 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7169
16266 msgid "This is the same as the C<stat(2)> system call."
16267 msgstr ""
16268
16269 #. type: =head2
16270 #: ../fish/guestfish-actions.pod:4660
16271 msgid "statvfs"
16272 msgstr "statvfs"
16273
16274 #. type: verbatim
16275 #: ../fish/guestfish-actions.pod:4662
16276 #, no-wrap
16277 msgid ""
16278 " statvfs path\n"
16279 "\n"
16280 msgstr ""
16281 " statvfs шлях\n"
16282 "\n"
16283
16284 #. type: textblock
16285 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7183
16286 msgid ""
16287 "Returns file system statistics for any mounted file system.  C<path> should "
16288 "be a file or directory in the mounted file system (typically it is the mount "
16289 "point itself, but it doesn't need to be)."
16290 msgstr ""
16291
16292 #. type: textblock
16293 #: ../fish/guestfish-actions.pod:4668 ../src/guestfs-actions.pod:7187
16294 msgid "This is the same as the C<statvfs(2)> system call."
16295 msgstr ""
16296
16297 #. type: =head2
16298 #: ../fish/guestfish-actions.pod:4670
16299 msgid "strings"
16300 msgstr "strings"
16301
16302 #. type: verbatim
16303 #: ../fish/guestfish-actions.pod:4672
16304 #, no-wrap
16305 msgid ""
16306 " strings path\n"
16307 "\n"
16308 msgstr ""
16309 " strings шлях\n"
16310 "\n"
16311
16312 #. type: textblock
16313 #: ../fish/guestfish-actions.pod:4674 ../src/guestfs-actions.pod:7201
16314 msgid ""
16315 "This runs the L<strings(1)> command on a file and returns the list of "
16316 "printable strings found."
16317 msgstr ""
16318
16319 #. type: =head2
16320 #: ../fish/guestfish-actions.pod:4680
16321 msgid "strings-e"
16322 msgstr "strings-e"
16323
16324 #. type: verbatim
16325 #: ../fish/guestfish-actions.pod:4682
16326 #, no-wrap
16327 msgid ""
16328 " strings-e encoding path\n"
16329 "\n"
16330 msgstr ""
16331 " strings-e кодування шлях\n"
16332 "\n"
16333
16334 #. type: textblock
16335 #: ../fish/guestfish-actions.pod:4684
16336 msgid ""
16337 "This is like the L</strings> command, but allows you to specify the encoding "
16338 "of strings that are looked for in the source file C<path>."
16339 msgstr ""
16340
16341 #. type: textblock
16342 #: ../fish/guestfish-actions.pod:4688 ../src/guestfs-actions.pod:7224
16343 msgid "Allowed encodings are:"
16344 msgstr "Можливими кодуваннями є:"
16345
16346 #. type: =item
16347 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7228
16348 msgid "s"
16349 msgstr "s"
16350
16351 #. type: textblock
16352 #: ../fish/guestfish-actions.pod:4694
16353 msgid ""
16354 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16355 "ISO-8859-X (this is what L</strings> uses)."
16356 msgstr ""
16357
16358 #. type: =item
16359 #: ../fish/guestfish-actions.pod:4697 ../src/guestfs-actions.pod:7233
16360 msgid "S"
16361 msgstr "S"
16362
16363 #. type: textblock
16364 #: ../fish/guestfish-actions.pod:4699 ../src/guestfs-actions.pod:7235
16365 msgid "Single 8-bit-byte characters."
16366 msgstr "Окремі 8-бітові-байтові символи."
16367
16368 #. type: =item
16369 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7237
16370 msgid "b"
16371 msgstr "b"
16372
16373 #. type: textblock
16374 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7239
16375 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16376 msgstr ""
16377
16378 #. type: =item
16379 #: ../fish/guestfish-actions.pod:4706 ../src/guestfs-actions.pod:7242
16380 msgid "l (lower case letter L)"
16381 msgstr ""
16382
16383 #. type: textblock
16384 #: ../fish/guestfish-actions.pod:4708 ../src/guestfs-actions.pod:7244
16385 msgid ""
16386 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16387 "examining binaries in Windows guests."
16388 msgstr ""
16389
16390 #. type: =item
16391 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7247
16392 msgid "B"
16393 msgstr "B"
16394
16395 #. type: textblock
16396 #: ../fish/guestfish-actions.pod:4713 ../src/guestfs-actions.pod:7249
16397 msgid "32-bit big endian such as UCS-4BE."
16398 msgstr ""
16399
16400 #. type: =item
16401 #: ../fish/guestfish-actions.pod:4715 ../src/guestfs-actions.pod:7251
16402 msgid "L"
16403 msgstr "L"
16404
16405 #. type: textblock
16406 #: ../fish/guestfish-actions.pod:4717 ../src/guestfs-actions.pod:7253
16407 msgid "32-bit little endian such as UCS-4LE."
16408 msgstr ""
16409
16410 #. type: textblock
16411 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7257
16412 msgid "The returned strings are transcoded to UTF-8."
16413 msgstr ""
16414
16415 #. type: =head2
16416 #: ../fish/guestfish-actions.pod:4726
16417 msgid "swapoff-device"
16418 msgstr "swapoff-device"
16419
16420 #. type: verbatim
16421 #: ../fish/guestfish-actions.pod:4728
16422 #, no-wrap
16423 msgid ""
16424 " swapoff-device device\n"
16425 "\n"
16426 msgstr ""
16427 " swapoff-device пристрій\n"
16428 "\n"
16429
16430 #. type: textblock
16431 #: ../fish/guestfish-actions.pod:4730
16432 msgid ""
16433 "This command disables the libguestfs appliance swap device or partition "
16434 "named C<device>.  See L</swapon-device>."
16435 msgstr ""
16436
16437 #. type: =head2
16438 #: ../fish/guestfish-actions.pod:4734
16439 msgid "swapoff-file"
16440 msgstr "swapoff-file"
16441
16442 #. type: verbatim
16443 #: ../fish/guestfish-actions.pod:4736
16444 #, no-wrap
16445 msgid ""
16446 " swapoff-file file\n"
16447 "\n"
16448 msgstr ""
16449 " swapoff-file файл\n"
16450 "\n"
16451
16452 #. type: textblock
16453 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7288
16454 msgid "This command disables the libguestfs appliance swap on file."
16455 msgstr ""
16456
16457 #. type: =head2
16458 #: ../fish/guestfish-actions.pod:4740
16459 msgid "swapoff-label"
16460 msgstr "swapoff-label"
16461
16462 #. type: verbatim
16463 #: ../fish/guestfish-actions.pod:4742
16464 #, no-wrap
16465 msgid ""
16466 " swapoff-label label\n"
16467 "\n"
16468 msgstr ""
16469 " swapoff-label мітка\n"
16470 "\n"
16471
16472 #. type: textblock
16473 #: ../fish/guestfish-actions.pod:4744 ../src/guestfs-actions.pod:7300
16474 msgid ""
16475 "This command disables the libguestfs appliance swap on labeled swap "
16476 "partition."
16477 msgstr ""
16478
16479 #. type: =head2
16480 #: ../fish/guestfish-actions.pod:4747
16481 msgid "swapoff-uuid"
16482 msgstr "swapoff-uuid"
16483
16484 #. type: verbatim
16485 #: ../fish/guestfish-actions.pod:4749
16486 #, no-wrap
16487 msgid ""
16488 " swapoff-uuid uuid\n"
16489 "\n"
16490 msgstr ""
16491 " swapoff-uuid uuid\n"
16492 "\n"
16493
16494 #. type: textblock
16495 #: ../fish/guestfish-actions.pod:4751 ../src/guestfs-actions.pod:7313
16496 msgid ""
16497 "This command disables the libguestfs appliance swap partition with the given "
16498 "UUID."
16499 msgstr ""
16500
16501 #. type: =head2
16502 #: ../fish/guestfish-actions.pod:4754
16503 msgid "swapon-device"
16504 msgstr "swapon-device"
16505
16506 #. type: verbatim
16507 #: ../fish/guestfish-actions.pod:4756
16508 #, no-wrap
16509 msgid ""
16510 " swapon-device device\n"
16511 "\n"
16512 msgstr ""
16513 " swapon-device пристрій\n"
16514 "\n"
16515
16516 #. type: textblock
16517 #: ../fish/guestfish-actions.pod:4758
16518 msgid ""
16519 "This command enables the libguestfs appliance to use the swap device or "
16520 "partition named C<device>.  The increased memory is made available for all "
16521 "commands, for example those run using L</command> or L</sh>."
16522 msgstr ""
16523
16524 #. type: textblock
16525 #: ../fish/guestfish-actions.pod:4763 ../src/guestfs-actions.pod:7331
16526 msgid ""
16527 "Note that you should not swap to existing guest swap partitions unless you "
16528 "know what you are doing.  They may contain hibernation information, or other "
16529 "information that the guest doesn't want you to trash.  You also risk leaking "
16530 "information about the host to the guest this way.  Instead, attach a new "
16531 "host device to the guest and swap on that."
16532 msgstr ""
16533
16534 #. type: =head2
16535 #: ../fish/guestfish-actions.pod:4770
16536 msgid "swapon-file"
16537 msgstr "swapon-file"
16538
16539 #. type: verbatim
16540 #: ../fish/guestfish-actions.pod:4772
16541 #, no-wrap
16542 msgid ""
16543 " swapon-file file\n"
16544 "\n"
16545 msgstr ""
16546 " swapon-file файл\n"
16547 "\n"
16548
16549 #. type: textblock
16550 #: ../fish/guestfish-actions.pod:4774
16551 msgid ""
16552 "This command enables swap to a file.  See L</swapon-device> for other notes."
16553 msgstr ""
16554
16555 #. type: =head2
16556 #: ../fish/guestfish-actions.pod:4777
16557 msgid "swapon-label"
16558 msgstr "swapon-label"
16559
16560 #. type: verbatim
16561 #: ../fish/guestfish-actions.pod:4779
16562 #, no-wrap
16563 msgid ""
16564 " swapon-label label\n"
16565 "\n"
16566 msgstr ""
16567 " swapon-label мітка\n"
16568 "\n"
16569
16570 #. type: textblock
16571 #: ../fish/guestfish-actions.pod:4781
16572 msgid ""
16573 "This command enables swap to a labeled swap partition.  See L</swapon-"
16574 "device> for other notes."
16575 msgstr ""
16576
16577 #. type: =head2
16578 #: ../fish/guestfish-actions.pod:4784
16579 msgid "swapon-uuid"
16580 msgstr "swapon-uuid"
16581
16582 #. type: verbatim
16583 #: ../fish/guestfish-actions.pod:4786
16584 #, no-wrap
16585 msgid ""
16586 " swapon-uuid uuid\n"
16587 "\n"
16588 msgstr ""
16589 " swapon-uuid uuid\n"
16590 "\n"
16591
16592 #. type: textblock
16593 #: ../fish/guestfish-actions.pod:4788
16594 msgid ""
16595 "This command enables swap to a swap partition with the given UUID.  See L</"
16596 "swapon-device> for other notes."
16597 msgstr ""
16598
16599 #. type: =head2
16600 #: ../fish/guestfish-actions.pod:4791
16601 msgid "sync"
16602 msgstr "sync"
16603
16604 #. type: verbatim
16605 #: ../fish/guestfish-actions.pod:4793
16606 #, no-wrap
16607 msgid ""
16608 " sync\n"
16609 "\n"
16610 msgstr ""
16611 " sync\n"
16612 "\n"
16613
16614 #. type: textblock
16615 #: ../fish/guestfish-actions.pod:4795 ../src/guestfs-actions.pod:7386
16616 msgid ""
16617 "This syncs the disk, so that any writes are flushed through to the "
16618 "underlying disk image."
16619 msgstr ""
16620
16621 #. type: textblock
16622 #: ../fish/guestfish-actions.pod:4798 ../src/guestfs-actions.pod:7389
16623 msgid ""
16624 "You should always call this if you have modified a disk image, before "
16625 "closing the handle."
16626 msgstr ""
16627
16628 #. type: =head2
16629 #: ../fish/guestfish-actions.pod:4801
16630 msgid "tail"
16631 msgstr "tail"
16632
16633 #. type: verbatim
16634 #: ../fish/guestfish-actions.pod:4803
16635 #, no-wrap
16636 msgid ""
16637 " tail path\n"
16638 "\n"
16639 msgstr ""
16640 " tail шлях\n"
16641 "\n"
16642
16643 #. type: textblock
16644 #: ../fish/guestfish-actions.pod:4805 ../src/guestfs-actions.pod:7402
16645 msgid ""
16646 "This command returns up to the last 10 lines of a file as a list of strings."
16647 msgstr ""
16648
16649 #. type: =head2
16650 #: ../fish/guestfish-actions.pod:4811
16651 msgid "tail-n"
16652 msgstr "tail-n"
16653
16654 #. type: verbatim
16655 #: ../fish/guestfish-actions.pod:4813
16656 #, no-wrap
16657 msgid ""
16658 " tail-n nrlines path\n"
16659 "\n"
16660 msgstr ""
16661
16662 #. type: textblock
16663 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7421
16664 msgid ""
16665 "If the parameter C<nrlines> is a positive number, this returns the last "
16666 "C<nrlines> lines of the file C<path>."
16667 msgstr ""
16668
16669 #. type: textblock
16670 #: ../fish/guestfish-actions.pod:4818 ../src/guestfs-actions.pod:7424
16671 msgid ""
16672 "If the parameter C<nrlines> is a negative number, this returns lines from "
16673 "the file C<path>, starting with the C<-nrlines>th line."
16674 msgstr ""
16675
16676 #. type: =head2
16677 #: ../fish/guestfish-actions.pod:4826
16678 msgid "tar-in"
16679 msgstr "tar-in"
16680
16681 #. type: verbatim
16682 #: ../fish/guestfish-actions.pod:4828
16683 #, no-wrap
16684 msgid ""
16685 " tar-in (tarfile|-) directory\n"
16686 "\n"
16687 msgstr ""
16688 " tar-in (файл_tar|-) каталог\n"
16689 "\n"
16690
16691 #. type: textblock
16692 #: ../fish/guestfish-actions.pod:4830 ../src/guestfs-actions.pod:7445
16693 msgid ""
16694 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16695 "tar file) into C<directory>."
16696 msgstr ""
16697
16698 #. type: textblock
16699 #: ../fish/guestfish-actions.pod:4833
16700 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16701 msgstr ""
16702
16703 #. type: =head2
16704 #: ../fish/guestfish-actions.pod:4838
16705 msgid "tar-out"
16706 msgstr "tar-out"
16707
16708 #. type: verbatim
16709 #: ../fish/guestfish-actions.pod:4840
16710 #, no-wrap
16711 msgid ""
16712 " tar-out directory (tarfile|-)\n"
16713 "\n"
16714 msgstr ""
16715 " tar-out каталог (файл tar|-)\n"
16716 "\n"
16717
16718 #. type: textblock
16719 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7462
16720 msgid ""
16721 "This command packs the contents of C<directory> and downloads it to local "
16722 "file C<tarfile>."
16723 msgstr ""
16724
16725 #. type: textblock
16726 #: ../fish/guestfish-actions.pod:4845
16727 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16728 msgstr ""
16729
16730 #. type: =head2
16731 #: ../fish/guestfish-actions.pod:4850
16732 msgid "tgz-in"
16733 msgstr "tgz-in"
16734
16735 #. type: verbatim
16736 #: ../fish/guestfish-actions.pod:4852
16737 #, no-wrap
16738 msgid ""
16739 " tgz-in (tarball|-) directory\n"
16740 "\n"
16741 msgstr ""
16742 " tgz-in (архів tar|-) каталог\n"
16743 "\n"
16744
16745 #. type: textblock
16746 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7479
16747 msgid ""
16748 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16749 "tar file) into C<directory>."
16750 msgstr ""
16751
16752 #. type: textblock
16753 #: ../fish/guestfish-actions.pod:4857
16754 msgid "To upload an uncompressed tarball, use L</tar-in>."
16755 msgstr ""
16756
16757 #. type: =head2
16758 #: ../fish/guestfish-actions.pod:4861
16759 msgid "tgz-out"
16760 msgstr "tgz-out"
16761
16762 #. type: verbatim
16763 #: ../fish/guestfish-actions.pod:4863
16764 #, no-wrap
16765 msgid ""
16766 " tgz-out directory (tarball|-)\n"
16767 "\n"
16768 msgstr ""
16769 " tgz-out каталог (архів tar|-)\n"
16770 "\n"
16771
16772 #. type: textblock
16773 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7495
16774 msgid ""
16775 "This command packs the contents of C<directory> and downloads it to local "
16776 "file C<tarball>."
16777 msgstr ""
16778
16779 #. type: textblock
16780 #: ../fish/guestfish-actions.pod:4868
16781 msgid "To download an uncompressed tarball, use L</tar-out>."
16782 msgstr ""
16783
16784 #. type: =head2
16785 #: ../fish/guestfish-actions.pod:4872
16786 msgid "touch"
16787 msgstr "touch"
16788
16789 #. type: verbatim
16790 #: ../fish/guestfish-actions.pod:4874
16791 #, no-wrap
16792 msgid ""
16793 " touch path\n"
16794 "\n"
16795 msgstr ""
16796 " touch шлях\n"
16797 "\n"
16798
16799 #. type: textblock
16800 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7510
16801 msgid ""
16802 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16803 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16804 "length file."
16805 msgstr ""
16806
16807 #. type: textblock
16808 #: ../fish/guestfish-actions.pod:4880 ../src/guestfs-actions.pod:7514
16809 msgid ""
16810 "This command only works on regular files, and will fail on other file types "
16811 "such as directories, symbolic links, block special etc."
16812 msgstr ""
16813
16814 #. type: =head2
16815 #: ../fish/guestfish-actions.pod:4883
16816 msgid "truncate"
16817 msgstr "truncate"
16818
16819 #. type: verbatim
16820 #: ../fish/guestfish-actions.pod:4885
16821 #, no-wrap
16822 msgid ""
16823 " truncate path\n"
16824 "\n"
16825 msgstr ""
16826 " truncate шлях\n"
16827 "\n"
16828
16829 #. type: textblock
16830 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7527
16831 msgid ""
16832 "This command truncates C<path> to a zero-length file.  The file must exist "
16833 "already."
16834 msgstr ""
16835
16836 #. type: =head2
16837 #: ../fish/guestfish-actions.pod:4890
16838 msgid "truncate-size"
16839 msgstr "truncate-size"
16840
16841 #. type: verbatim
16842 #: ../fish/guestfish-actions.pod:4892
16843 #, no-wrap
16844 msgid ""
16845 " truncate-size path size\n"
16846 "\n"
16847 msgstr ""
16848 " truncate-size шлях розмір\n"
16849 "\n"
16850
16851 #. type: textblock
16852 #: ../fish/guestfish-actions.pod:4894 ../src/guestfs-actions.pod:7541
16853 msgid ""
16854 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16855 "already."
16856 msgstr ""
16857
16858 #. type: textblock
16859 #: ../fish/guestfish-actions.pod:4897
16860 msgid ""
16861 "If the current file size is less than C<size> then the file is extended to "
16862 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16863 "blocks are not allocated for the file until you write to it).  To create a "
16864 "non-sparse file of zeroes, use L</fallocate64> instead."
16865 msgstr ""
16866
16867 #. type: =head2
16868 #: ../fish/guestfish-actions.pod:4903
16869 msgid "tune2fs-l"
16870 msgstr "tune2fs-l"
16871
16872 #. type: verbatim
16873 #: ../fish/guestfish-actions.pod:4905
16874 #, no-wrap
16875 msgid ""
16876 " tune2fs-l device\n"
16877 "\n"
16878 msgstr ""
16879 " tune2fs-l пристрій\n"
16880 "\n"
16881
16882 #. type: textblock
16883 #: ../fish/guestfish-actions.pod:4907 ../src/guestfs-actions.pod:7560
16884 msgid ""
16885 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16886 "C<device>."
16887 msgstr ""
16888
16889 #. type: textblock
16890 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7563
16891 msgid ""
16892 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16893 "for more details.  The list of fields returned isn't clearly defined, and "
16894 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16895 "and the filesystem itself."
16896 msgstr ""
16897
16898 #. type: =head2
16899 #: ../fish/guestfish-actions.pod:4915
16900 msgid "txz-in"
16901 msgstr "txz-in"
16902
16903 #. type: verbatim
16904 #: ../fish/guestfish-actions.pod:4917
16905 #, no-wrap
16906 msgid ""
16907 " txz-in (tarball|-) directory\n"
16908 "\n"
16909 msgstr ""
16910 " txz-in (архів tar|-) каталог\n"
16911 "\n"
16912
16913 #. type: textblock
16914 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7583
16915 msgid ""
16916 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16917 "tar file) into C<directory>."
16918 msgstr ""
16919
16920 #. type: =head2
16921 #: ../fish/guestfish-actions.pod:4924
16922 msgid "txz-out"
16923 msgstr "txz-out"
16924
16925 #. type: verbatim
16926 #: ../fish/guestfish-actions.pod:4926
16927 #, no-wrap
16928 msgid ""
16929 " txz-out directory (tarball|-)\n"
16930 "\n"
16931 msgstr ""
16932 " txz-out каталог (архів tar|-)\n"
16933 "\n"
16934
16935 #. type: textblock
16936 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7597
16937 msgid ""
16938 "This command packs the contents of C<directory> and downloads it to local "
16939 "file C<tarball> (as an xz compressed tar archive)."
16940 msgstr ""
16941
16942 #. type: =head2
16943 #: ../fish/guestfish-actions.pod:4933
16944 msgid "umask"
16945 msgstr "umask"
16946
16947 #. type: verbatim
16948 #: ../fish/guestfish-actions.pod:4935
16949 #, no-wrap
16950 msgid ""
16951 " umask mask\n"
16952 "\n"
16953 msgstr ""
16954 " umask маска\n"
16955 "\n"
16956
16957 #. type: textblock
16958 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7610
16959 msgid ""
16960 "This function sets the mask used for creating new files and device nodes to "
16961 "C<mask & 0777>."
16962 msgstr ""
16963
16964 #. type: textblock
16965 #: ../fish/guestfish-actions.pod:4940 ../src/guestfs-actions.pod:7613
16966 msgid ""
16967 "Typical umask values would be C<022> which creates new files with "
16968 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16969 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16970 msgstr ""
16971
16972 #. type: textblock
16973 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7618
16974 msgid ""
16975 "The default umask is C<022>.  This is important because it means that "
16976 "directories and device nodes will be created with C<0644> or C<0755> mode "
16977 "even if you specify C<0777>."
16978 msgstr ""
16979
16980 #. type: textblock
16981 #: ../fish/guestfish-actions.pod:4949
16982 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16983 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16984
16985 #. type: textblock
16986 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7625
16987 msgid "This call returns the previous umask."
16988 msgstr ""
16989
16990 #. type: =head2
16991 #: ../fish/guestfish-actions.pod:4954
16992 msgid "umount"
16993 msgstr "umount"
16994
16995 #. type: =head2
16996 #: ../fish/guestfish-actions.pod:4956
16997 msgid "unmount"
16998 msgstr "unmount"
16999
17000 #. type: verbatim
17001 #: ../fish/guestfish-actions.pod:4958
17002 #, no-wrap
17003 msgid ""
17004 " umount pathordevice\n"
17005 "\n"
17006 msgstr ""
17007 " umount шлях_або_пристрій\n"
17008 "\n"
17009
17010 #. type: textblock
17011 #: ../fish/guestfish-actions.pod:4960 ../src/guestfs-actions.pod:7637
17012 msgid ""
17013 "This unmounts the given filesystem.  The filesystem may be specified either "
17014 "by its mountpoint (path) or the device which contains the filesystem."
17015 msgstr ""
17016
17017 #. type: =head2
17018 #: ../fish/guestfish-actions.pod:4964
17019 msgid "umount-all"
17020 msgstr "umount-all"
17021
17022 #. type: =head2
17023 #: ../fish/guestfish-actions.pod:4966
17024 msgid "unmount-all"
17025 msgstr "unmount-all"
17026
17027 #. type: verbatim
17028 #: ../fish/guestfish-actions.pod:4968
17029 #, no-wrap
17030 msgid ""
17031 " umount-all\n"
17032 "\n"
17033 msgstr ""
17034 " umount-all\n"
17035 "\n"
17036
17037 #. type: textblock
17038 #: ../fish/guestfish-actions.pod:4970 ../src/guestfs-actions.pod:7650
17039 msgid "This unmounts all mounted filesystems."
17040 msgstr ""
17041
17042 #. type: textblock
17043 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7652
17044 msgid "Some internal mounts are not unmounted by this call."
17045 msgstr ""
17046
17047 #. type: =head2
17048 #: ../fish/guestfish-actions.pod:4974
17049 msgid "upload"
17050 msgstr "upload"
17051
17052 #. type: verbatim
17053 #: ../fish/guestfish-actions.pod:4976
17054 #, no-wrap
17055 msgid ""
17056 " upload (filename|-) remotefilename\n"
17057 "\n"
17058 msgstr ""
17059 " upload (назва_файла|-) назва_віддаленого_файла\n"
17060 "\n"
17061
17062 #. type: textblock
17063 #: ../fish/guestfish-actions.pod:4978 ../fish/guestfish-actions.pod:4991
17064 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7689
17065 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
17066 msgstr ""
17067
17068 #. type: textblock
17069 #: ../fish/guestfish-actions.pod:4983
17070 msgid "See also L</download>."
17071 msgstr "Див. також L</download>."
17072
17073 #. type: =head2
17074 #: ../fish/guestfish-actions.pod:4987
17075 msgid "upload-offset"
17076 msgstr "upload-offset"
17077
17078 #. type: verbatim
17079 #: ../fish/guestfish-actions.pod:4989
17080 #, no-wrap
17081 msgid ""
17082 " upload-offset (filename|-) remotefilename offset\n"
17083 "\n"
17084 msgstr ""
17085 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
17086 "\n"
17087
17088 #. type: textblock
17089 #: ../fish/guestfish-actions.pod:4994 ../src/guestfs-actions.pod:7692
17090 msgid ""
17091 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
17092 "The intention is to overwrite parts of existing files or devices, although "
17093 "if a non-existant file is specified then it is created with a \"hole\" "
17094 "before C<offset>.  The size of the data written is implicit in the size of "
17095 "the source C<filename>."
17096 msgstr ""
17097
17098 #. type: textblock
17099 #: ../fish/guestfish-actions.pod:5001
17100 msgid ""
17101 "Note that there is no limit on the amount of data that can be uploaded with "
17102 "this call, unlike with L</pwrite>, and this call always writes the full "
17103 "amount unless an error occurs."
17104 msgstr ""
17105
17106 #. type: textblock
17107 #: ../fish/guestfish-actions.pod:5006
17108 msgid "See also L</upload>, L</pwrite>."
17109 msgstr "Див. також L</upload>, L</pwrite>."
17110
17111 #. type: =head2
17112 #: ../fish/guestfish-actions.pod:5010
17113 msgid "utimens"
17114 msgstr "utimens"
17115
17116 #. type: verbatim
17117 #: ../fish/guestfish-actions.pod:5012
17118 #, no-wrap
17119 msgid ""
17120 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
17121 "\n"
17122 msgstr ""
17123
17124 #. type: textblock
17125 #: ../fish/guestfish-actions.pod:5014 ../src/guestfs-actions.pod:7725
17126 msgid "This command sets the timestamps of a file with nanosecond precision."
17127 msgstr ""
17128
17129 #. type: textblock
17130 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7728
17131 msgid ""
17132 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
17133 "from the epoch."
17134 msgstr ""
17135
17136 #. type: textblock
17137 #: ../fish/guestfish-actions.pod:5020 ../src/guestfs-actions.pod:7731
17138 msgid ""
17139 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
17140 "nanoseconds from the epoch."
17141 msgstr ""
17142
17143 #. type: textblock
17144 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7734
17145 msgid ""
17146 "If the C<*nsecs> field contains the special value C<-1> then the "
17147 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
17148 "ignored in this case)."
17149 msgstr ""
17150
17151 #. type: textblock
17152 #: ../fish/guestfish-actions.pod:5027 ../src/guestfs-actions.pod:7738
17153 msgid ""
17154 "If the C<*nsecs> field contains the special value C<-2> then the "
17155 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
17156 "in this case)."
17157 msgstr ""
17158
17159 #. type: =head2
17160 #: ../fish/guestfish-actions.pod:5031
17161 msgid "version"
17162 msgstr "version"
17163
17164 #. type: verbatim
17165 #: ../fish/guestfish-actions.pod:5033
17166 #, no-wrap
17167 msgid ""
17168 " version\n"
17169 "\n"
17170 msgstr ""
17171 " version\n"
17172 "\n"
17173
17174 #. type: textblock
17175 #: ../fish/guestfish-actions.pod:5035 ../src/guestfs-actions.pod:7751
17176 msgid ""
17177 "Return the libguestfs version number that the program is linked against."
17178 msgstr ""
17179
17180 #. type: textblock
17181 #: ../fish/guestfish-actions.pod:5038 ../src/guestfs-actions.pod:7754
17182 msgid ""
17183 "Note that because of dynamic linking this is not necessarily the version of "
17184 "libguestfs that you compiled against.  You can compile the program, and then "
17185 "at runtime dynamically link against a completely different C<libguestfs.so> "
17186 "library."
17187 msgstr ""
17188
17189 #. type: textblock
17190 #: ../fish/guestfish-actions.pod:5043 ../src/guestfs-actions.pod:7759
17191 msgid ""
17192 "This call was added in version C<1.0.58>.  In previous versions of "
17193 "libguestfs there was no way to get the version number.  From C code you can "
17194 "use dynamic linker functions to find out if this symbol exists (if it "
17195 "doesn't, then it's an earlier version)."
17196 msgstr ""
17197
17198 #. type: textblock
17199 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7765
17200 msgid ""
17201 "The call returns a structure with four elements.  The first three (C<major>, "
17202 "C<minor> and C<release>) are numbers and correspond to the usual version "
17203 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17204 "but may be used for distro-specific information."
17205 msgstr ""
17206
17207 #. type: textblock
17208 #: ../fish/guestfish-actions.pod:5055 ../src/guestfs-actions.pod:7771
17209 msgid ""
17210 "To construct the original version string: C<$major.$minor.$release$extra>"
17211 msgstr ""
17212
17213 #. type: textblock
17214 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7774
17215 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17216 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17217
17218 #. type: textblock
17219 #: ../fish/guestfish-actions.pod:5060
17220 msgid ""
17221 "I<Note:> Don't use this call to test for availability of features.  In "
17222 "enterprise distributions we backport features from later versions into "
17223 "earlier versions, making this an unreliable way to test for features.  Use "
17224 "L</available> instead."
17225 msgstr ""
17226
17227 #. type: =head2
17228 #: ../fish/guestfish-actions.pod:5066
17229 msgid "vfs-label"
17230 msgstr "vfs-label"
17231
17232 #. type: verbatim
17233 #: ../fish/guestfish-actions.pod:5068
17234 #, no-wrap
17235 msgid ""
17236 " vfs-label device\n"
17237 "\n"
17238 msgstr ""
17239 " vfs-label пристрій\n"
17240 "\n"
17241
17242 #. type: textblock
17243 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7794
17244 msgid "This returns the filesystem label of the filesystem on C<device>."
17245 msgstr ""
17246
17247 #. type: textblock
17248 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7797
17249 msgid "If the filesystem is unlabeled, this returns the empty string."
17250 msgstr ""
17251
17252 #. type: textblock
17253 #: ../fish/guestfish-actions.pod:5075
17254 msgid "To find a filesystem from the label, use L</findfs-label>."
17255 msgstr ""
17256
17257 #. type: =head2
17258 #: ../fish/guestfish-actions.pod:5077
17259 msgid "vfs-type"
17260 msgstr "vfs-type"
17261
17262 #. type: verbatim
17263 #: ../fish/guestfish-actions.pod:5079
17264 #, no-wrap
17265 msgid ""
17266 " vfs-type device\n"
17267 "\n"
17268 msgstr ""
17269 " vfs-type пристрій\n"
17270 "\n"
17271
17272 #. type: textblock
17273 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7812
17274 msgid ""
17275 "This command gets the filesystem type corresponding to the filesystem on "
17276 "C<device>."
17277 msgstr ""
17278
17279 #. type: textblock
17280 #: ../fish/guestfish-actions.pod:5084 ../src/guestfs-actions.pod:7815
17281 msgid ""
17282 "For most filesystems, the result is the name of the Linux VFS module which "
17283 "would be used to mount this filesystem if you mounted it without specifying "
17284 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17285 msgstr ""
17286
17287 #. type: =head2
17288 #: ../fish/guestfish-actions.pod:5089
17289 msgid "vfs-uuid"
17290 msgstr "vfs-uuid"
17291
17292 #. type: verbatim
17293 #: ../fish/guestfish-actions.pod:5091
17294 #, no-wrap
17295 msgid ""
17296 " vfs-uuid device\n"
17297 "\n"
17298 msgstr ""
17299 " vfs-uuid пристрій\n"
17300 "\n"
17301
17302 #. type: textblock
17303 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7831
17304 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17305 msgstr ""
17306
17307 #. type: textblock
17308 #: ../fish/guestfish-actions.pod:5096 ../src/guestfs-actions.pod:7834
17309 msgid "If the filesystem does not have a UUID, this returns the empty string."
17310 msgstr ""
17311
17312 #. type: textblock
17313 #: ../fish/guestfish-actions.pod:5098
17314 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17315 msgstr ""
17316
17317 #. type: =head2
17318 #: ../fish/guestfish-actions.pod:5100
17319 msgid "vg-activate"
17320 msgstr "vg-activate"
17321
17322 #. type: verbatim
17323 #: ../fish/guestfish-actions.pod:5102
17324 #, no-wrap
17325 msgid ""
17326 " vg-activate true|false 'volgroups ...'\n"
17327 "\n"
17328 msgstr ""
17329
17330 #. type: textblock
17331 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7850
17332 msgid ""
17333 "This command activates or (if C<activate> is false) deactivates all logical "
17334 "volumes in the listed volume groups C<volgroups>."
17335 msgstr ""
17336
17337 #. type: textblock
17338 #: ../fish/guestfish-actions.pod:5107 ../src/guestfs-actions.pod:7853
17339 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17340 msgstr ""
17341
17342 #. type: textblock
17343 #: ../fish/guestfish-actions.pod:5109 ../src/guestfs-actions.pod:7855
17344 msgid ""
17345 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17346 "activated or deactivated."
17347 msgstr ""
17348
17349 #. type: =head2
17350 #: ../fish/guestfish-actions.pod:5112
17351 msgid "vg-activate-all"
17352 msgstr "vg-activate-all"
17353
17354 #. type: verbatim
17355 #: ../fish/guestfish-actions.pod:5114
17356 #, no-wrap
17357 msgid ""
17358 " vg-activate-all true|false\n"
17359 "\n"
17360 msgstr ""
17361 " vg-activate-all true|false\n"
17362 "\n"
17363
17364 #. type: textblock
17365 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7868
17366 msgid ""
17367 "This command activates or (if C<activate> is false) deactivates all logical "
17368 "volumes in all volume groups."
17369 msgstr ""
17370
17371 #. type: textblock
17372 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7871
17373 msgid "This command is the same as running C<vgchange -a y|n>"
17374 msgstr ""
17375
17376 #. type: =head2
17377 #: ../fish/guestfish-actions.pod:5121
17378 msgid "vgcreate"
17379 msgstr "vgcreate"
17380
17381 #. type: verbatim
17382 #: ../fish/guestfish-actions.pod:5123
17383 #, no-wrap
17384 msgid ""
17385 " vgcreate volgroup 'physvols ...'\n"
17386 "\n"
17387 msgstr ""
17388
17389 #. type: textblock
17390 #: ../fish/guestfish-actions.pod:5125 ../src/guestfs-actions.pod:7884
17391 msgid ""
17392 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17393 "of physical volumes C<physvols>."
17394 msgstr ""
17395
17396 #. type: =head2
17397 #: ../fish/guestfish-actions.pod:5128
17398 msgid "vglvuuids"
17399 msgstr "vglvuuids"
17400
17401 #. type: verbatim
17402 #: ../fish/guestfish-actions.pod:5130
17403 #, no-wrap
17404 msgid ""
17405 " vglvuuids vgname\n"
17406 "\n"
17407 msgstr ""
17408
17409 #. type: textblock
17410 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7897
17411 msgid ""
17412 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17413 "volumes created in this volume group."
17414 msgstr ""
17415
17416 #. type: textblock
17417 #: ../fish/guestfish-actions.pod:5135
17418 msgid ""
17419 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17420 "logical volumes and volume groups."
17421 msgstr ""
17422
17423 #. type: textblock
17424 #: ../fish/guestfish-actions.pod:5138
17425 msgid "See also L</vgpvuuids>."
17426 msgstr "Див. також L</vgpvuuids>."
17427
17428 #. type: =head2
17429 #: ../fish/guestfish-actions.pod:5140
17430 msgid "vgpvuuids"
17431 msgstr "vgpvuuids"
17432
17433 #. type: verbatim
17434 #: ../fish/guestfish-actions.pod:5142
17435 #, no-wrap
17436 msgid ""
17437 " vgpvuuids vgname\n"
17438 "\n"
17439 msgstr ""
17440
17441 #. type: textblock
17442 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7917
17443 msgid ""
17444 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17445 "volumes that this volume group resides on."
17446 msgstr ""
17447
17448 #. type: textblock
17449 #: ../fish/guestfish-actions.pod:5147
17450 msgid ""
17451 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17452 "physical volumes and volume groups."
17453 msgstr ""
17454
17455 #. type: textblock
17456 #: ../fish/guestfish-actions.pod:5150
17457 msgid "See also L</vglvuuids>."
17458 msgstr "Див. також L</vglvuuids>."
17459
17460 #. type: =head2
17461 #: ../fish/guestfish-actions.pod:5152
17462 msgid "vgremove"
17463 msgstr "vgremove"
17464
17465 #. type: verbatim
17466 #: ../fish/guestfish-actions.pod:5154
17467 #, no-wrap
17468 msgid ""
17469 " vgremove vgname\n"
17470 "\n"
17471 msgstr ""
17472
17473 #. type: textblock
17474 #: ../fish/guestfish-actions.pod:5156 ../src/guestfs-actions.pod:7937
17475 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17476 msgstr ""
17477
17478 #. type: textblock
17479 #: ../fish/guestfish-actions.pod:5158 ../src/guestfs-actions.pod:7939
17480 msgid ""
17481 "This also forcibly removes all logical volumes in the volume group (if any)."
17482 msgstr ""
17483
17484 #. type: =head2
17485 #: ../fish/guestfish-actions.pod:5161
17486 msgid "vgrename"
17487 msgstr "vgrename"
17488
17489 #. type: verbatim
17490 #: ../fish/guestfish-actions.pod:5163
17491 #, no-wrap
17492 msgid ""
17493 " vgrename volgroup newvolgroup\n"
17494 "\n"
17495 msgstr ""
17496
17497 #. type: textblock
17498 #: ../fish/guestfish-actions.pod:5165 ../src/guestfs-actions.pod:7953
17499 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17500 msgstr ""
17501
17502 #. type: =head2
17503 #: ../fish/guestfish-actions.pod:5167
17504 msgid "vgs"
17505 msgstr "vgs"
17506
17507 #. type: verbatim
17508 #: ../fish/guestfish-actions.pod:5169
17509 #, no-wrap
17510 msgid ""
17511 " vgs\n"
17512 "\n"
17513 msgstr ""
17514 " vgs\n"
17515 "\n"
17516
17517 #. type: textblock
17518 #: ../fish/guestfish-actions.pod:5171 ../src/guestfs-actions.pod:7964
17519 msgid ""
17520 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17521 "> command."
17522 msgstr ""
17523
17524 #. type: textblock
17525 #: ../fish/guestfish-actions.pod:5174 ../src/guestfs-actions.pod:7967
17526 msgid ""
17527 "This returns a list of just the volume group names that were detected (eg. "
17528 "C<VolGroup00>)."
17529 msgstr ""
17530
17531 #. type: textblock
17532 #: ../fish/guestfish-actions.pod:5177
17533 msgid "See also L</vgs-full>."
17534 msgstr "Див. також L</vgs-full>."
17535
17536 #. type: =head2
17537 #: ../fish/guestfish-actions.pod:5179
17538 msgid "vgs-full"
17539 msgstr "vgs-full"
17540
17541 #. type: verbatim
17542 #: ../fish/guestfish-actions.pod:5181
17543 #, no-wrap
17544 msgid ""
17545 " vgs-full\n"
17546 "\n"
17547 msgstr ""
17548 " vgs-full\n"
17549 "\n"
17550
17551 #. type: textblock
17552 #: ../fish/guestfish-actions.pod:5183 ../src/guestfs-actions.pod:7983
17553 msgid ""
17554 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17555 "> command.  The \"full\" version includes all fields."
17556 msgstr ""
17557
17558 #. type: =head2
17559 #: ../fish/guestfish-actions.pod:5186
17560 msgid "vgscan"
17561 msgstr "vgscan"
17562
17563 #. type: verbatim
17564 #: ../fish/guestfish-actions.pod:5188
17565 #, no-wrap
17566 msgid ""
17567 " vgscan\n"
17568 "\n"
17569 msgstr ""
17570 " vgscan\n"
17571 "\n"
17572
17573 #. type: textblock
17574 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7997
17575 msgid ""
17576 "This rescans all block devices and rebuilds the list of LVM physical "
17577 "volumes, volume groups and logical volumes."
17578 msgstr ""
17579
17580 #. type: =head2
17581 #: ../fish/guestfish-actions.pod:5193
17582 msgid "vguuid"
17583 msgstr "vguuid"
17584
17585 #. type: verbatim
17586 #: ../fish/guestfish-actions.pod:5195
17587 #, no-wrap
17588 msgid ""
17589 " vguuid vgname\n"
17590 "\n"
17591 msgstr ""
17592
17593 #. type: textblock
17594 #: ../fish/guestfish-actions.pod:5197 ../src/guestfs-actions.pod:8010
17595 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17596 msgstr ""
17597
17598 #. type: =head2
17599 #: ../fish/guestfish-actions.pod:5199
17600 msgid "wc-c"
17601 msgstr "wc-c"
17602
17603 #. type: verbatim
17604 #: ../fish/guestfish-actions.pod:5201
17605 #, no-wrap
17606 msgid ""
17607 " wc-c path\n"
17608 "\n"
17609 msgstr ""
17610 " wc-c шлях\n"
17611 "\n"
17612
17613 #. type: textblock
17614 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:8050
17615 msgid ""
17616 "This command counts the characters in a file, using the C<wc -c> external "
17617 "command."
17618 msgstr ""
17619
17620 #. type: =head2
17621 #: ../fish/guestfish-actions.pod:5206
17622 msgid "wc-l"
17623 msgstr "wc-l"
17624
17625 #. type: verbatim
17626 #: ../fish/guestfish-actions.pod:5208
17627 #, no-wrap
17628 msgid ""
17629 " wc-l path\n"
17630 "\n"
17631 msgstr ""
17632 " wc-l шлях\n"
17633 "\n"
17634
17635 #. type: textblock
17636 #: ../fish/guestfish-actions.pod:5210 ../src/guestfs-actions.pod:8063
17637 msgid ""
17638 "This command counts the lines in a file, using the C<wc -l> external command."
17639 msgstr ""
17640
17641 #. type: =head2
17642 #: ../fish/guestfish-actions.pod:5213
17643 msgid "wc-w"
17644 msgstr "wc-w"
17645
17646 #. type: verbatim
17647 #: ../fish/guestfish-actions.pod:5215
17648 #, no-wrap
17649 msgid ""
17650 " wc-w path\n"
17651 "\n"
17652 msgstr ""
17653 " wc-w шлях\n"
17654 "\n"
17655
17656 #. type: textblock
17657 #: ../fish/guestfish-actions.pod:5217 ../src/guestfs-actions.pod:8076
17658 msgid ""
17659 "This command counts the words in a file, using the C<wc -w> external command."
17660 msgstr ""
17661
17662 #. type: =head2
17663 #: ../fish/guestfish-actions.pod:5220
17664 msgid "write"
17665 msgstr "write"
17666
17667 #. type: verbatim
17668 #: ../fish/guestfish-actions.pod:5222
17669 #, no-wrap
17670 msgid ""
17671 " write path content\n"
17672 "\n"
17673 msgstr ""
17674 " write шлях дані\n"
17675 "\n"
17676
17677 #. type: textblock
17678 #: ../fish/guestfish-actions.pod:5224 ../src/guestfs-actions.pod:8091
17679 msgid ""
17680 "This call creates a file called C<path>.  The content of the file is the "
17681 "string C<content> (which can contain any 8 bit data)."
17682 msgstr ""
17683
17684 #. type: textblock
17685 #: ../fish/guestfish-actions.pod:5227
17686 msgid "See also L</write-append>."
17687 msgstr "Див. також L</write-append>."
17688
17689 #. type: =head2
17690 #: ../fish/guestfish-actions.pod:5232
17691 msgid "write-append"
17692 msgstr ""
17693
17694 #. type: verbatim
17695 #: ../fish/guestfish-actions.pod:5234
17696 #, no-wrap
17697 msgid ""
17698 " write-append path content\n"
17699 "\n"
17700 msgstr ""
17701
17702 #. type: textblock
17703 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8111
17704 msgid ""
17705 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17706 "not exist, then a new file is created."
17707 msgstr ""
17708
17709 #. type: textblock
17710 #: ../fish/guestfish-actions.pod:5239
17711 msgid "See also L</write>."
17712 msgstr "Див. також L</write>."
17713
17714 #. type: =head2
17715 #: ../fish/guestfish-actions.pod:5244
17716 msgid "write-file"
17717 msgstr "write-file"
17718
17719 #. type: verbatim
17720 #: ../fish/guestfish-actions.pod:5246
17721 #, no-wrap
17722 msgid ""
17723 " write-file path content size\n"
17724 "\n"
17725 msgstr ""
17726
17727 #. type: textblock
17728 #: ../fish/guestfish-actions.pod:5248 ../src/guestfs-actions.pod:8138
17729 msgid ""
17730 "This call creates a file called C<path>.  The contents of the file is the "
17731 "string C<content> (which can contain any 8 bit data), with length C<size>."
17732 msgstr ""
17733
17734 #. type: textblock
17735 #: ../fish/guestfish-actions.pod:5252 ../src/guestfs-actions.pod:8142
17736 msgid ""
17737 "As a special case, if C<size> is C<0> then the length is calculated using "
17738 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17739 msgstr ""
17740
17741 #. type: textblock
17742 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8146
17743 msgid ""
17744 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17745 "I<not> work, even if the length is specified."
17746 msgstr ""
17747
17748 #. type: textblock
17749 #: ../fish/guestfish-actions.pod:5262
17750 msgid ""
17751 "I<This function is deprecated.> In new code, use the L</write> call instead."
17752 msgstr ""
17753
17754 #. type: =head2
17755 #: ../fish/guestfish-actions.pod:5269
17756 msgid "zegrep"
17757 msgstr "zegrep"
17758
17759 #. type: verbatim
17760 #: ../fish/guestfish-actions.pod:5271
17761 #, no-wrap
17762 msgid ""
17763 " zegrep regex path\n"
17764 "\n"
17765 msgstr ""
17766 " zegrep формальний_вираз шлях\n"
17767 "\n"
17768
17769 #. type: textblock
17770 #: ../fish/guestfish-actions.pod:5273 ../src/guestfs-actions.pod:8163
17771 msgid ""
17772 "This calls the external C<zegrep> program and returns the matching lines."
17773 msgstr ""
17774
17775 #. type: =head2
17776 #: ../fish/guestfish-actions.pod:5279
17777 msgid "zegrepi"
17778 msgstr "zegrepi"
17779
17780 #. type: verbatim
17781 #: ../fish/guestfish-actions.pod:5281
17782 #, no-wrap
17783 msgid ""
17784 " zegrepi regex path\n"
17785 "\n"
17786 msgstr ""
17787
17788 #. type: textblock
17789 #: ../fish/guestfish-actions.pod:5283 ../src/guestfs-actions.pod:8182
17790 msgid ""
17791 "This calls the external C<zegrep -i> program and returns the matching lines."
17792 msgstr ""
17793
17794 #. type: =head2
17795 #: ../fish/guestfish-actions.pod:5289
17796 msgid "zero"
17797 msgstr "zero"
17798
17799 #. type: verbatim
17800 #: ../fish/guestfish-actions.pod:5291
17801 #, no-wrap
17802 msgid ""
17803 " zero device\n"
17804 "\n"
17805 msgstr ""
17806 " zero пристрій\n"
17807 "\n"
17808
17809 #. type: textblock
17810 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8200
17811 msgid "This command writes zeroes over the first few blocks of C<device>."
17812 msgstr ""
17813
17814 #. type: textblock
17815 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8202
17816 msgid ""
17817 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17818 "securely wipe the device).  It should be sufficient to remove any partition "
17819 "tables, filesystem superblocks and so on."
17820 msgstr ""
17821
17822 #. type: textblock
17823 #: ../fish/guestfish-actions.pod:5299 ../fish/guestfish-actions.pod:5314
17824 #: ../src/guestfs-actions.pod:8206 ../src/guestfs-actions.pod:8232
17825 msgid ""
17826 "If blocks are already zero, then this command avoids writing zeroes.  This "
17827 "prevents the underlying device from becoming non-sparse or growing "
17828 "unnecessarily."
17829 msgstr ""
17830
17831 #. type: textblock
17832 #: ../fish/guestfish-actions.pod:5303
17833 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17834 msgstr ""
17835
17836 #. type: =head2
17837 #: ../fish/guestfish-actions.pod:5306
17838 msgid "zero-device"
17839 msgstr "zero-device"
17840
17841 #. type: verbatim
17842 #: ../fish/guestfish-actions.pod:5308
17843 #, no-wrap
17844 msgid ""
17845 " zero-device device\n"
17846 "\n"
17847 msgstr ""
17848 " zero-device пристрій\n"
17849 "\n"
17850
17851 #. type: textblock
17852 #: ../fish/guestfish-actions.pod:5310
17853 msgid ""
17854 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17855 "which just zeroes the first few blocks of a device."
17856 msgstr ""
17857
17858 #. type: =head2
17859 #: ../fish/guestfish-actions.pod:5321
17860 msgid "zerofree"
17861 msgstr "zerofree"
17862
17863 #. type: verbatim
17864 #: ../fish/guestfish-actions.pod:5323
17865 #, no-wrap
17866 msgid ""
17867 " zerofree device\n"
17868 "\n"
17869 msgstr ""
17870 " zerofree пристрій\n"
17871 "\n"
17872
17873 #. type: textblock
17874 #: ../fish/guestfish-actions.pod:5325 ../src/guestfs-actions.pod:8254
17875 msgid ""
17876 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17877 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17878 "possible to compress the filesystem more effectively."
17879 msgstr ""
17880
17881 #. type: textblock
17882 #: ../fish/guestfish-actions.pod:5330 ../src/guestfs-actions.pod:8259
17883 msgid "You should B<not> run this program if the filesystem is mounted."
17884 msgstr ""
17885
17886 #. type: textblock
17887 #: ../fish/guestfish-actions.pod:5333 ../src/guestfs-actions.pod:8262
17888 msgid ""
17889 "It is possible that using this program can damage the filesystem or data on "
17890 "the filesystem."
17891 msgstr ""
17892
17893 #. type: =head2
17894 #: ../fish/guestfish-actions.pod:5336
17895 msgid "zfgrep"
17896 msgstr "zfgrep"
17897
17898 #. type: verbatim
17899 #: ../fish/guestfish-actions.pod:5338
17900 #, no-wrap
17901 msgid ""
17902 " zfgrep pattern path\n"
17903 "\n"
17904 msgstr ""
17905 " zfgrep шаблон шлях\n"
17906 "\n"
17907
17908 #. type: textblock
17909 #: ../fish/guestfish-actions.pod:5340 ../src/guestfs-actions.pod:8276
17910 msgid ""
17911 "This calls the external C<zfgrep> program and returns the matching lines."
17912 msgstr ""
17913
17914 #. type: =head2
17915 #: ../fish/guestfish-actions.pod:5346
17916 msgid "zfgrepi"
17917 msgstr "zfgrepi"
17918
17919 #. type: verbatim
17920 #: ../fish/guestfish-actions.pod:5348
17921 #, no-wrap
17922 msgid ""
17923 " zfgrepi pattern path\n"
17924 "\n"
17925 msgstr ""
17926 " zfgrepi шаблон шлях\n"
17927 "\n"
17928
17929 #. type: textblock
17930 #: ../fish/guestfish-actions.pod:5350 ../src/guestfs-actions.pod:8295
17931 msgid ""
17932 "This calls the external C<zfgrep -i> program and returns the matching lines."
17933 msgstr ""
17934
17935 #. type: =head2
17936 #: ../fish/guestfish-actions.pod:5356
17937 msgid "zfile"
17938 msgstr "zfile"
17939
17940 #. type: verbatim
17941 #: ../fish/guestfish-actions.pod:5358
17942 #, no-wrap
17943 msgid ""
17944 " zfile meth path\n"
17945 "\n"
17946 msgstr ""
17947 " zfile метод шлях\n"
17948 "\n"
17949
17950 #. type: textblock
17951 #: ../fish/guestfish-actions.pod:5360 ../src/guestfs-actions.pod:8321
17952 msgid ""
17953 "This command runs C<file> after first decompressing C<path> using C<method>."
17954 msgstr ""
17955
17956 #. type: textblock
17957 #: ../fish/guestfish-actions.pod:5363 ../src/guestfs-actions.pod:8324
17958 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17959 msgstr ""
17960
17961 #. type: textblock
17962 #: ../fish/guestfish-actions.pod:5365
17963 msgid ""
17964 "Since 1.0.63, use L</file> instead which can now process compressed files."
17965 msgstr ""
17966
17967 #. type: textblock
17968 #: ../fish/guestfish-actions.pod:5368
17969 msgid ""
17970 "I<This function is deprecated.> In new code, use the L</file> call instead."
17971 msgstr ""
17972
17973 #. type: =head2
17974 #: ../fish/guestfish-actions.pod:5375
17975 msgid "zgrep"
17976 msgstr "zgrep"
17977
17978 #. type: verbatim
17979 #: ../fish/guestfish-actions.pod:5377
17980 #, no-wrap
17981 msgid ""
17982 " zgrep regex path\n"
17983 "\n"
17984 msgstr ""
17985 " zgrep формальний_вираз шлях\n"
17986 "\n"
17987
17988 #. type: textblock
17989 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8341
17990 msgid ""
17991 "This calls the external C<zgrep> program and returns the matching lines."
17992 msgstr ""
17993
17994 #. type: =head2
17995 #: ../fish/guestfish-actions.pod:5385
17996 msgid "zgrepi"
17997 msgstr "zgrepi"
17998
17999 #. type: verbatim
18000 #: ../fish/guestfish-actions.pod:5387
18001 #, no-wrap
18002 msgid ""
18003 " zgrepi regex path\n"
18004 "\n"
18005 msgstr ""
18006 " zgrepi формальний_вираз шлях\n"
18007 "\n"
18008
18009 #. type: textblock
18010 #: ../fish/guestfish-actions.pod:5389 ../src/guestfs-actions.pod:8360
18011 msgid ""
18012 "This calls the external C<zgrep -i> program and returns the matching lines."
18013 msgstr ""
18014
18015 #. type: =head2
18016 #: ../fish/guestfish-commands.pod:1
18017 msgid "alloc"
18018 msgstr "alloc"
18019
18020 #. type: =head2
18021 #: ../fish/guestfish-commands.pod:3
18022 msgid "allocate"
18023 msgstr ""
18024
18025 #. type: verbatim
18026 #: ../fish/guestfish-commands.pod:5
18027 #, no-wrap
18028 msgid ""
18029 " alloc filename size\n"
18030 "\n"
18031 msgstr ""
18032
18033 #. type: textblock
18034 #: ../fish/guestfish-commands.pod:7
18035 msgid ""
18036 "This creates an empty (zeroed) file of the given size, and then adds so it "
18037 "can be further examined."
18038 msgstr ""
18039
18040 #. type: textblock
18041 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
18042 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
18043 msgstr ""
18044
18045 #. type: textblock
18046 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
18047 msgid "Size can be specified using standard suffixes, eg. C<1M>."
18048 msgstr ""
18049
18050 #. type: textblock
18051 #: ../fish/guestfish-commands.pod:14
18052 msgid ""
18053 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
18054 "image, see L</PREPARED DISK IMAGES>."
18055 msgstr ""
18056
18057 #. type: =head2
18058 #: ../fish/guestfish-commands.pod:17
18059 msgid "copy-in"
18060 msgstr "copy-in"
18061
18062 #. type: verbatim
18063 #: ../fish/guestfish-commands.pod:19
18064 #, no-wrap
18065 msgid ""
18066 " copy-in local [local ...] /remotedir\n"
18067 "\n"
18068 msgstr ""
18069
18070 #. type: textblock
18071 #: ../fish/guestfish-commands.pod:21
18072 msgid ""
18073 "C<copy-in> copies local files or directories recursively into the disk "
18074 "image, placing them in the directory called C</remotedir> (which must "
18075 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
18076 "other commands as necessary."
18077 msgstr ""
18078
18079 #. type: textblock
18080 #: ../fish/guestfish-commands.pod:26
18081 msgid ""
18082 "Multiple local files and directories can be specified, but the last "
18083 "parameter must always be a remote directory.  Wildcards cannot be used."
18084 msgstr ""
18085
18086 #. type: =head2
18087 #: ../fish/guestfish-commands.pod:30
18088 msgid "copy-out"
18089 msgstr "copy-out"
18090
18091 #. type: verbatim
18092 #: ../fish/guestfish-commands.pod:32
18093 #, no-wrap
18094 msgid ""
18095 " copy-out remote [remote ...] localdir\n"
18096 "\n"
18097 msgstr ""
18098
18099 #. type: textblock
18100 #: ../fish/guestfish-commands.pod:34
18101 msgid ""
18102 "C<copy-out> copies remote files or directories recursively out of the disk "
18103 "image, placing them on the host disk in a local directory called C<localdir> "
18104 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
18105 "download>, L</tar-out> and other commands as necessary."
18106 msgstr ""
18107
18108 #. type: textblock
18109 #: ../fish/guestfish-commands.pod:40
18110 msgid ""
18111 "Multiple remote files and directories can be specified, but the last "
18112 "parameter must always be a local directory.  To download to the current "
18113 "directory, use C<.> as in:"
18114 msgstr ""
18115
18116 #. type: verbatim
18117 #: ../fish/guestfish-commands.pod:44
18118 #, no-wrap
18119 msgid ""
18120 " copy-out /home .\n"
18121 "\n"
18122 msgstr ""
18123 " copy-out /home .\n"
18124 "\n"
18125
18126 #. type: textblock
18127 #: ../fish/guestfish-commands.pod:46
18128 msgid ""
18129 "Wildcards cannot be used in the ordinary command, but you can use them with "
18130 "the help of L</glob> like this:"
18131 msgstr ""
18132
18133 #. type: verbatim
18134 #: ../fish/guestfish-commands.pod:49
18135 #, no-wrap
18136 msgid ""
18137 " glob copy-out /home/* .\n"
18138 "\n"
18139 msgstr ""
18140 " glob copy-out /home/* .\n"
18141 "\n"
18142
18143 #. type: =head2
18144 #: ../fish/guestfish-commands.pod:51
18145 msgid "display"
18146 msgstr ""
18147
18148 #. type: verbatim
18149 #: ../fish/guestfish-commands.pod:53
18150 #, no-wrap
18151 msgid ""
18152 " display filename\n"
18153 "\n"
18154 msgstr ""
18155
18156 #. type: textblock
18157 #: ../fish/guestfish-commands.pod:55
18158 msgid ""
18159 "Use C<display> (a graphical display program) to display an image file.  It "
18160 "downloads the file, and runs C<display> on it."
18161 msgstr ""
18162
18163 #. type: textblock
18164 #: ../fish/guestfish-commands.pod:58
18165 msgid ""
18166 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
18167 "environment variable.  For example to use the GNOME display program:"
18168 msgstr ""
18169
18170 #. type: verbatim
18171 #: ../fish/guestfish-commands.pod:61
18172 #, no-wrap
18173 msgid ""
18174 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
18175 "\n"
18176 msgstr ""
18177
18178 #. type: textblock
18179 #: ../fish/guestfish-commands.pod:63
18180 msgid "See also L<display(1)>."
18181 msgstr "Див. також L<display(1)>."
18182
18183 #. type: =head2
18184 #: ../fish/guestfish-commands.pod:65
18185 msgid "echo"
18186 msgstr "echo"
18187
18188 #. type: verbatim
18189 #: ../fish/guestfish-commands.pod:67
18190 #, no-wrap
18191 msgid ""
18192 " echo [params ...]\n"
18193 "\n"
18194 msgstr ""
18195 " echo [параметри...]\n"
18196 "\n"
18197
18198 #. type: textblock
18199 #: ../fish/guestfish-commands.pod:69
18200 msgid "This echos the parameters to the terminal."
18201 msgstr ""
18202
18203 #. type: =head2
18204 #: ../fish/guestfish-commands.pod:71
18205 msgid "edit"
18206 msgstr "edit"
18207
18208 #. type: =head2
18209 #: ../fish/guestfish-commands.pod:73
18210 msgid "vi"
18211 msgstr "vi"
18212
18213 #. type: =head2
18214 #: ../fish/guestfish-commands.pod:75
18215 msgid "emacs"
18216 msgstr "emacs"
18217
18218 #. type: verbatim
18219 #: ../fish/guestfish-commands.pod:77
18220 #, no-wrap
18221 msgid ""
18222 " edit filename\n"
18223 "\n"
18224 msgstr ""
18225 " edit назва_файла\n"
18226 "\n"
18227
18228 #. type: textblock
18229 #: ../fish/guestfish-commands.pod:79
18230 msgid ""
18231 "This is used to edit a file.  It downloads the file, edits it locally using "
18232 "your editor, then uploads the result."
18233 msgstr ""
18234
18235 #. type: textblock
18236 #: ../fish/guestfish-commands.pod:82
18237 msgid ""
18238 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18239 "or C<emacs> you will get those corresponding editors."
18240 msgstr ""
18241
18242 #. type: =head2
18243 #: ../fish/guestfish-commands.pod:86
18244 msgid "glob"
18245 msgstr "glob"
18246
18247 #. type: verbatim
18248 #: ../fish/guestfish-commands.pod:88
18249 #, no-wrap
18250 msgid ""
18251 " glob command args...\n"
18252 "\n"
18253 msgstr ""
18254 " glob команда параметри...\n"
18255 "\n"
18256
18257 #. type: textblock
18258 #: ../fish/guestfish-commands.pod:90
18259 msgid ""
18260 "Expand wildcards in any paths in the args list, and run C<command> "
18261 "repeatedly on each matching path."
18262 msgstr ""
18263
18264 #. type: textblock
18265 #: ../fish/guestfish-commands.pod:93
18266 msgid "See L</WILDCARDS AND GLOBBING>."
18267 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18268
18269 #. type: =head2
18270 #: ../fish/guestfish-commands.pod:95
18271 msgid "hexedit"
18272 msgstr "hexedit"
18273
18274 #. type: verbatim
18275 #: ../fish/guestfish-commands.pod:97
18276 #, no-wrap
18277 msgid ""
18278 " hexedit <filename|device>\n"
18279 " hexedit <filename|device> <max>\n"
18280 " hexedit <filename|device> <start> <max>\n"
18281 "\n"
18282 msgstr ""
18283
18284 #. type: textblock
18285 #: ../fish/guestfish-commands.pod:101
18286 msgid ""
18287 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18288 "device."
18289 msgstr ""
18290
18291 #. type: textblock
18292 #: ../fish/guestfish-commands.pod:104
18293 msgid ""
18294 "This command works by downloading potentially the whole file or device, "
18295 "editing it locally, then uploading it.  If the file or device is large, you "
18296 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18297 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18298 "usual modifiers allowed such as C<1M> (1 megabyte)."
18299 msgstr ""
18300
18301 #. type: textblock
18302 #: ../fish/guestfish-commands.pod:111
18303 msgid "For example to edit the first few sectors of a disk you might do:"
18304 msgstr ""
18305
18306 #. type: verbatim
18307 #: ../fish/guestfish-commands.pod:114
18308 #, no-wrap
18309 msgid ""
18310 " hexedit /dev/sda 1M\n"
18311 "\n"
18312 msgstr ""
18313 " hexedit /dev/sda 1M\n"
18314 "\n"
18315
18316 #. type: textblock
18317 #: ../fish/guestfish-commands.pod:116
18318 msgid ""
18319 "which would allow you to edit anywhere within the first megabyte of the disk."
18320 msgstr ""
18321
18322 #. type: textblock
18323 #: ../fish/guestfish-commands.pod:119
18324 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18325 msgstr ""
18326
18327 #. type: verbatim
18328 #: ../fish/guestfish-commands.pod:121
18329 #, no-wrap
18330 msgid ""
18331 " hexedit /dev/sda1 0x400 0x400\n"
18332 "\n"
18333 msgstr ""
18334 " hexedit /dev/sda1 0x400 0x400\n"
18335 "\n"
18336
18337 #. type: textblock
18338 #: ../fish/guestfish-commands.pod:123
18339 msgid "(assuming the superblock is in the standard location)."
18340 msgstr ""
18341
18342 #. type: textblock
18343 #: ../fish/guestfish-commands.pod:125
18344 msgid ""
18345 "This command requires the external L<hexedit(1)> program.  You can specify "
18346 "another program to use by setting the C<HEXEDITOR> environment variable."
18347 msgstr ""
18348
18349 #. type: textblock
18350 #: ../fish/guestfish-commands.pod:129
18351 msgid "See also L</hexdump>."
18352 msgstr "Див. також L</hexdump>."
18353
18354 #. type: =head2
18355 #: ../fish/guestfish-commands.pod:131
18356 msgid "lcd"
18357 msgstr "lcd"
18358
18359 #. type: verbatim
18360 #: ../fish/guestfish-commands.pod:133
18361 #, no-wrap
18362 msgid ""
18363 " lcd directory\n"
18364 "\n"
18365 msgstr ""
18366
18367 #. type: textblock
18368 #: ../fish/guestfish-commands.pod:135
18369 msgid ""
18370 "Change the local directory, ie. the current directory of guestfish itself."
18371 msgstr ""
18372
18373 #. type: textblock
18374 #: ../fish/guestfish-commands.pod:138
18375 msgid "Note that C<!cd> won't do what you might expect."
18376 msgstr ""
18377
18378 #. type: =head2
18379 #: ../fish/guestfish-commands.pod:140
18380 msgid "man"
18381 msgstr "man"
18382
18383 #. type: =head2
18384 #: ../fish/guestfish-commands.pod:142
18385 msgid "manual"
18386 msgstr "підручник"
18387
18388 #. type: verbatim
18389 #: ../fish/guestfish-commands.pod:144
18390 #, no-wrap
18391 msgid ""
18392 "  man\n"
18393 "\n"
18394 msgstr ""
18395 "  man\n"
18396 "\n"
18397
18398 #. type: textblock
18399 #: ../fish/guestfish-commands.pod:146
18400 msgid "Opens the manual page for guestfish."
18401 msgstr ""
18402
18403 #. type: =head2
18404 #: ../fish/guestfish-commands.pod:148
18405 msgid "more"
18406 msgstr "more"
18407
18408 #. type: =head2
18409 #: ../fish/guestfish-commands.pod:150
18410 msgid "less"
18411 msgstr "less"
18412
18413 #. type: verbatim
18414 #: ../fish/guestfish-commands.pod:152
18415 #, no-wrap
18416 msgid ""
18417 " more filename\n"
18418 "\n"
18419 msgstr ""
18420
18421 #. type: verbatim
18422 #: ../fish/guestfish-commands.pod:154
18423 #, no-wrap
18424 msgid ""
18425 " less filename\n"
18426 "\n"
18427 msgstr ""
18428
18429 #. type: textblock
18430 #: ../fish/guestfish-commands.pod:156
18431 msgid "This is used to view a file."
18432 msgstr ""
18433
18434 #. type: textblock
18435 #: ../fish/guestfish-commands.pod:158
18436 msgid ""
18437 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18438 "C<less> you will get the C<less> command specifically."
18439 msgstr ""
18440
18441 #. type: =head2
18442 #: ../fish/guestfish-commands.pod:161
18443 msgid "reopen"
18444 msgstr "reopen"
18445
18446 #. type: verbatim
18447 #: ../fish/guestfish-commands.pod:163
18448 #, no-wrap
18449 msgid ""
18450 "  reopen\n"
18451 "\n"
18452 msgstr ""
18453
18454 #. type: textblock
18455 #: ../fish/guestfish-commands.pod:165
18456 msgid ""
18457 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18458 "normally, because the handle is closed properly when guestfish exits.  "
18459 "However this is occasionally useful for testing."
18460 msgstr ""
18461
18462 #. type: =head2
18463 #: ../fish/guestfish-commands.pod:169
18464 msgid "setenv"
18465 msgstr ""
18466
18467 #. type: verbatim
18468 #: ../fish/guestfish-commands.pod:171
18469 #, no-wrap
18470 msgid ""
18471 "  setenv VAR value\n"
18472 "\n"
18473 msgstr ""
18474
18475 #. type: textblock
18476 #: ../fish/guestfish-commands.pod:173
18477 msgid "Set the environment variable C<VAR> to the string C<value>."
18478 msgstr ""
18479
18480 #. type: textblock
18481 #: ../fish/guestfish-commands.pod:175
18482 msgid ""
18483 "To print the value of an environment variable use a shell command such as:"
18484 msgstr ""
18485
18486 #. type: verbatim
18487 #: ../fish/guestfish-commands.pod:178
18488 #, no-wrap
18489 msgid ""
18490 " !echo $VAR\n"
18491 "\n"
18492 msgstr ""
18493
18494 #. type: =head2
18495 #: ../fish/guestfish-commands.pod:180
18496 msgid "sparse"
18497 msgstr "sparse"
18498
18499 #. type: verbatim
18500 #: ../fish/guestfish-commands.pod:182
18501 #, no-wrap
18502 msgid ""
18503 " sparse filename size\n"
18504 "\n"
18505 msgstr ""
18506
18507 #. type: textblock
18508 #: ../fish/guestfish-commands.pod:184
18509 msgid ""
18510 "This creates an empty sparse file of the given size, and then adds so it can "
18511 "be further examined."
18512 msgstr ""
18513
18514 #. type: textblock
18515 #: ../fish/guestfish-commands.pod:187
18516 msgid ""
18517 "In all respects it works the same as the L</alloc> command, except that the "
18518 "image file is allocated sparsely, which means that disk blocks are not "
18519 "assigned to the file until they are needed.  Sparse disk files only use "
18520 "space when written to, but they are slower and there is a danger you could "
18521 "run out of real disk space during a write operation."
18522 msgstr ""
18523
18524 #. type: =head2
18525 #: ../fish/guestfish-commands.pod:197
18526 msgid "supported"
18527 msgstr "supported"
18528
18529 #. type: verbatim
18530 #: ../fish/guestfish-commands.pod:199
18531 #, no-wrap
18532 msgid ""
18533 " supported\n"
18534 "\n"
18535 msgstr ""
18536 " supported\n"
18537 "\n"
18538
18539 #. type: textblock
18540 #: ../fish/guestfish-commands.pod:201
18541 msgid ""
18542 "This command returns a list of the optional groups known to the daemon, and "
18543 "indicates which ones are supported by this build of the libguestfs appliance."
18544 msgstr ""
18545
18546 #. type: textblock
18547 #: ../fish/guestfish-commands.pod:205
18548 msgid "See also L<guestfs(3)/AVAILABILITY>."
18549 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
18550
18551 #. type: =head2
18552 #: ../fish/guestfish-commands.pod:207
18553 msgid "time"
18554 msgstr "time"
18555
18556 #. type: verbatim
18557 #: ../fish/guestfish-commands.pod:209
18558 #, no-wrap
18559 msgid ""
18560 " time command args...\n"
18561 "\n"
18562 msgstr ""
18563
18564 #. type: textblock
18565 #: ../fish/guestfish-commands.pod:211
18566 msgid ""
18567 "Run the command as usual, but print the elapsed time afterwards.  This can "
18568 "be useful for benchmarking operations."
18569 msgstr ""
18570
18571 #. type: =head2
18572 #: ../fish/guestfish-commands.pod:214
18573 msgid "unsetenv"
18574 msgstr ""
18575
18576 #. type: verbatim
18577 #: ../fish/guestfish-commands.pod:216
18578 #, no-wrap
18579 msgid ""
18580 "  unsetenv VAR\n"
18581 "\n"
18582 msgstr ""
18583
18584 #. type: textblock
18585 #: ../fish/guestfish-commands.pod:218
18586 msgid "Remove C<VAR> from the environment."
18587 msgstr ""
18588
18589 #. type: textblock
18590 #: ../fish/guestfish.pod:5
18591 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18592 msgstr ""
18593
18594 #. type: verbatim
18595 #: ../fish/guestfish.pod:9
18596 #, no-wrap
18597 msgid ""
18598 " guestfish [--options] [commands]\n"
18599 "\n"
18600 msgstr ""
18601
18602 #. type: verbatim
18603 #: ../fish/guestfish.pod:11
18604 #, no-wrap
18605 msgid ""
18606 " guestfish\n"
18607 "\n"
18608 msgstr ""
18609
18610 #. type: verbatim
18611 #: ../fish/guestfish.pod:13
18612 #, no-wrap
18613 msgid ""
18614 " guestfish [--ro|--rw] -a disk.img\n"
18615 "\n"
18616 msgstr ""
18617
18618 #. type: verbatim
18619 #: ../fish/guestfish.pod:15
18620 #, no-wrap
18621 msgid ""
18622 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18623 "\n"
18624 msgstr ""
18625
18626 #. type: verbatim
18627 #: ../fish/guestfish.pod:17
18628 #, no-wrap
18629 msgid ""
18630 " guestfish -d libvirt-domain\n"
18631 "\n"
18632 msgstr ""
18633
18634 #. type: verbatim
18635 #: ../fish/guestfish.pod:19
18636 #, no-wrap
18637 msgid ""
18638 " guestfish [--ro|--rw] -a disk.img -i\n"
18639 "\n"
18640 msgstr ""
18641
18642 #. type: verbatim
18643 #: ../fish/guestfish.pod:21
18644 #, no-wrap
18645 msgid ""
18646 " guestfish -d libvirt-domain -i\n"
18647 "\n"
18648 msgstr ""
18649
18650 #. type: textblock
18651 #: ../fish/guestfish.pod:25
18652 msgid ""
18653 "Using guestfish in read/write mode on live virtual machines can be "
18654 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18655 "option to use guestfish safely if the disk image or virtual machine might be "
18656 "live."
18657 msgstr ""
18658
18659 #. type: textblock
18660 #: ../fish/guestfish.pod:32
18661 msgid ""
18662 "Guestfish is a shell and command-line tool for examining and modifying "
18663 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18664 "functionality of the guestfs API, see L<guestfs(3)>."
18665 msgstr ""
18666
18667 #. type: textblock
18668 #: ../fish/guestfish.pod:36
18669 msgid ""
18670 "Guestfish gives you structured access to the libguestfs API, from shell "
18671 "scripts or the command line or interactively.  If you want to rescue a "
18672 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18673 "command."
18674 msgstr ""
18675
18676 #. type: =head2
18677 #: ../fish/guestfish.pod:43
18678 msgid "As an interactive shell"
18679 msgstr ""
18680
18681 #. type: verbatim
18682 #: ../fish/guestfish.pod:45
18683 #, no-wrap
18684 msgid ""
18685 " $ guestfish\n"
18686 " \n"
18687 msgstr ""
18688
18689 #. type: verbatim
18690 #: ../fish/guestfish.pod:47
18691 #, no-wrap
18692 msgid ""
18693 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18694 " editing virtual machine filesystems.\n"
18695 " \n"
18696 msgstr ""
18697
18698 #. type: verbatim
18699 #: ../fish/guestfish.pod:50
18700 #, no-wrap
18701 msgid ""
18702 " Type: 'help' for a list of commands\n"
18703 "       'man' to read the manual\n"
18704 "       'quit' to quit the shell\n"
18705 " \n"
18706 msgstr ""
18707
18708 #. type: verbatim
18709 #: ../fish/guestfish.pod:54
18710 #, no-wrap
18711 msgid ""
18712 " ><fs> add-ro disk.img\n"
18713 " ><fs> run\n"
18714 " ><fs> list-filesystems\n"
18715 " /dev/sda1: ext4\n"
18716 " /dev/vg_guest/lv_root: ext4\n"
18717 " /dev/vg_guest/lv_swap: swap\n"
18718 " ><fs> mount /dev/vg_guest/lv_root /\n"
18719 " ><fs> cat /etc/fstab\n"
18720 " # /etc/fstab\n"
18721 " # Created by anaconda\n"
18722 " [...]\n"
18723 " ><fs> exit\n"
18724 "\n"
18725 msgstr ""
18726
18727 #. type: =head2
18728 #: ../fish/guestfish.pod:67
18729 msgid "From shell scripts"
18730 msgstr ""
18731
18732 #. type: textblock
18733 #: ../fish/guestfish.pod:69
18734 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18735 msgstr ""
18736
18737 #. type: verbatim
18738 #: ../fish/guestfish.pod:71
18739 #, no-wrap
18740 msgid ""
18741 " guestfish <<_EOF_\n"
18742 " add disk.img\n"
18743 " run\n"
18744 " mount /dev/vg_guest/lv_root /\n"
18745 " write /etc/motd \"Welcome, new users\"\n"
18746 " _EOF_\n"
18747 "\n"
18748 msgstr ""
18749
18750 #. type: textblock
18751 #: ../fish/guestfish.pod:78
18752 msgid "List the LVM logical volumes in a disk image:"
18753 msgstr ""
18754
18755 #. type: verbatim
18756 #: ../fish/guestfish.pod:80
18757 #, no-wrap
18758 msgid ""
18759 " guestfish -a disk.img --ro <<_EOF_\n"
18760 " run\n"
18761 " lvs\n"
18762 " _EOF_\n"
18763 "\n"
18764 msgstr ""
18765
18766 #. type: textblock
18767 #: ../fish/guestfish.pod:85
18768 msgid "List all the filesystems in a disk image:"
18769 msgstr ""
18770
18771 #. type: verbatim
18772 #: ../fish/guestfish.pod:87
18773 #, no-wrap
18774 msgid ""
18775 " guestfish -a disk.img --ro <<_EOF_\n"
18776 " run\n"
18777 " list-filesystems\n"
18778 " _EOF_\n"
18779 "\n"
18780 msgstr ""
18781
18782 #. type: =head2
18783 #: ../fish/guestfish.pod:92
18784 msgid "On one command line"
18785 msgstr ""
18786
18787 #. type: textblock
18788 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18789 msgid "Update C</etc/resolv.conf> in a guest:"
18790 msgstr ""
18791
18792 #. type: verbatim
18793 #: ../fish/guestfish.pod:96
18794 #, no-wrap
18795 msgid ""
18796 " guestfish \\\n"
18797 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18798 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18799 "\n"
18800 msgstr ""
18801
18802 #. type: textblock
18803 #: ../fish/guestfish.pod:100
18804 msgid "Edit C</boot/grub/grub.conf> interactively:"
18805 msgstr ""
18806
18807 #. type: verbatim
18808 #: ../fish/guestfish.pod:102
18809 #, no-wrap
18810 msgid ""
18811 " guestfish --rw --add disk.img \\\n"
18812 "   --mount /dev/vg_guest/lv_root \\\n"
18813 "   --mount /dev/sda1:/boot \\\n"
18814 "   edit /boot/grub/grub.conf\n"
18815 "\n"
18816 msgstr ""
18817
18818 #. type: =head2
18819 #: ../fish/guestfish.pod:107
18820 msgid "Mount disks automatically"
18821 msgstr ""
18822
18823 #. type: textblock
18824 #: ../fish/guestfish.pod:109
18825 msgid ""
18826 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18827 msgstr ""
18828
18829 #. type: verbatim
18830 #: ../fish/guestfish.pod:112
18831 #, no-wrap
18832 msgid ""
18833 " guestfish --ro -a disk.img -i cat /etc/group\n"
18834 "\n"
18835 msgstr ""
18836
18837 #. type: verbatim
18838 #: ../fish/guestfish.pod:114
18839 #, no-wrap
18840 msgid ""
18841 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18842 "\n"
18843 msgstr ""
18844
18845 #. type: textblock
18846 #: ../fish/guestfish.pod:116
18847 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18848 msgstr ""
18849
18850 #. type: verbatim
18851 #: ../fish/guestfish.pod:118
18852 #, no-wrap
18853 msgid ""
18854 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18855 "\n"
18856 msgstr ""
18857
18858 #. type: =head2
18859 #: ../fish/guestfish.pod:120
18860 msgid "As a script interpreter"
18861 msgstr ""
18862
18863 #. type: textblock
18864 #: ../fish/guestfish.pod:122
18865 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18866 msgstr ""
18867
18868 #. type: verbatim
18869 #: ../fish/guestfish.pod:124
18870 #, no-wrap
18871 msgid ""
18872 " #!/usr/bin/guestfish -f\n"
18873 " sparse test1.img 100M\n"
18874 " run\n"
18875 " part-disk /dev/sda mbr\n"
18876 " mkfs ext2 /dev/sda1\n"
18877 "\n"
18878 msgstr ""
18879
18880 #. type: =head2
18881 #: ../fish/guestfish.pod:130
18882 msgid "Start with a prepared disk"
18883 msgstr ""
18884
18885 #. type: textblock
18886 #: ../fish/guestfish.pod:132
18887 msgid ""
18888 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18889 "single ext2-formatted partition:"
18890 msgstr ""
18891
18892 #. type: verbatim
18893 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
18894 #, no-wrap
18895 msgid ""
18896 " guestfish -N fs\n"
18897 "\n"
18898 msgstr ""
18899
18900 #. type: textblock
18901 #: ../fish/guestfish.pod:137
18902 msgid "To list what is available do:"
18903 msgstr ""
18904
18905 #. type: verbatim
18906 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18907 #, no-wrap
18908 msgid ""
18909 " guestfish -N help | less\n"
18910 "\n"
18911 msgstr ""
18912
18913 #. type: =head2
18914 #: ../fish/guestfish.pod:141
18915 msgid "Remote control"
18916 msgstr "Дистанційне керування"
18917
18918 #. type: verbatim
18919 #: ../fish/guestfish.pod:143
18920 #, no-wrap
18921 msgid ""
18922 " eval \"`guestfish --listen`\"\n"
18923 " guestfish --remote add-ro disk.img\n"
18924 " guestfish --remote run\n"
18925 " guestfish --remote lvs\n"
18926 "\n"
18927 msgstr ""
18928 " eval \"`guestfish --listen`\"\n"
18929 " guestfish --remote add-ro disk.img\n"
18930 " guestfish --remote run\n"
18931 " guestfish --remote lvs\n"
18932 "\n"
18933
18934 #. type: textblock
18935 #: ../fish/guestfish.pod:154
18936 msgid "Displays general help on options."
18937 msgstr ""
18938
18939 #. type: =item
18940 #: ../fish/guestfish.pod:158
18941 msgid "B<--cmd-help>"
18942 msgstr "B<--cmd-help>"
18943
18944 #. type: textblock
18945 #: ../fish/guestfish.pod:160
18946 msgid "Lists all available guestfish commands."
18947 msgstr ""
18948
18949 #. type: =item
18950 #: ../fish/guestfish.pod:162
18951 msgid "B<-h cmd>"
18952 msgstr "B<-h команда>"
18953
18954 #. type: =item
18955 #: ../fish/guestfish.pod:164
18956 msgid "B<--cmd-help cmd>"
18957 msgstr "B<--cmd-help команда>"
18958
18959 #. type: textblock
18960 #: ../fish/guestfish.pod:166
18961 msgid "Displays detailed help on a single command C<cmd>."
18962 msgstr ""
18963
18964 #. type: =item
18965 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18966 msgid "B<-a image>"
18967 msgstr "B<-a образ>"
18968
18969 #. type: =item
18970 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18971 msgid "B<--add image>"
18972 msgstr "B<--add образ>"
18973
18974 #. type: textblock
18975 #: ../fish/guestfish.pod:172
18976 msgid "Add a block device or virtual machine image to the shell."
18977 msgstr ""
18978
18979 #. type: textblock
18980 #: ../fish/guestfish.pod:177
18981 msgid ""
18982 "Using this flag is mostly equivalent to using the C<add> command, with "
18983 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18984 "the I<--format=...> flag was given."
18985 msgstr ""
18986
18987 #. type: textblock
18988 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18989 msgid ""
18990 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18991 "URI to use.  The default is to use the default libvirt connection."
18992 msgstr ""
18993
18994 #. type: =item
18995 #: ../fish/guestfish.pod:189
18996 msgid "B<--csh>"
18997 msgstr "B<--csh>"
18998
18999 #. type: textblock
19000 #: ../fish/guestfish.pod:191
19001 msgid ""
19002 "If using the I<--listen> option and a csh-like shell, use this option.  See "
19003 "section L</REMOTE CONTROL AND CSH> below."
19004 msgstr ""
19005
19006 #. type: =item
19007 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
19008 msgid "B<-d libvirt-domain>"
19009 msgstr "B<-d домен-libvirt>"
19010
19011 #. type: =item
19012 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
19013 msgid "B<--domain libvirt-domain>"
19014 msgstr "B<--domain домен-libvirt>"
19015
19016 #. type: textblock
19017 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
19018 msgid ""
19019 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
19020 "used, then any libvirt domain can be used.  However in write mode, only "
19021 "libvirt domains which are shut down can be named here."
19022 msgstr ""
19023
19024 #. type: textblock
19025 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
19026 msgid "Domain UUIDs can be used instead of names."
19027 msgstr ""
19028
19029 #. type: textblock
19030 #: ../fish/guestfish.pod:204
19031 msgid ""
19032 "Using this flag is mostly equivalent to using the C<add-domain> command, "
19033 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
19034 "if the I<--format:...> flag was given."
19035 msgstr ""
19036
19037 #. type: =item
19038 #: ../fish/guestfish.pod:208
19039 msgid "B<-D>"
19040 msgstr "B<-D>"
19041
19042 #. type: =item
19043 #: ../fish/guestfish.pod:210
19044 msgid "B<--no-dest-paths>"
19045 msgstr "B<--no-dest-paths>"
19046
19047 #. type: textblock
19048 #: ../fish/guestfish.pod:212
19049 msgid ""
19050 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
19051 "to hit the tab key to complete paths on the guest filesystem, but this "
19052 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
19053 "allow this feature to be disabled."
19054 msgstr ""
19055
19056 #. type: textblock
19057 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
19058 msgid ""
19059 "When prompting for keys and passphrases, guestfish normally turns echoing "
19060 "off so you cannot see what you are typing.  If you are not worried about "
19061 "Tempest attacks and there is no one else in the room you can specify this "
19062 "flag to see what you are typing."
19063 msgstr ""
19064
19065 #. type: =item
19066 #: ../fish/guestfish.pod:224
19067 msgid "B<-f file>"
19068 msgstr "B<-f файл>"
19069
19070 #. type: =item
19071 #: ../fish/guestfish.pod:226
19072 msgid "B<--file file>"
19073 msgstr "B<--file файл>"
19074
19075 #. type: textblock
19076 #: ../fish/guestfish.pod:228
19077 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
19078 msgstr ""
19079
19080 #. type: verbatim
19081 #: ../fish/guestfish.pod:231
19082 #, no-wrap
19083 msgid ""
19084 " #!/usr/bin/guestfish -f\n"
19085 "\n"
19086 msgstr ""
19087 " #!/usr/bin/guestfish -f\n"
19088 "\n"
19089
19090 #. type: verbatim
19091 #: ../fish/guestfish.pod:244
19092 #, no-wrap
19093 msgid ""
19094 " guestfish --format=raw -a disk.img\n"
19095 "\n"
19096 msgstr ""
19097 " guestfish --format=raw -a disk.img\n"
19098 "\n"
19099
19100 #. type: verbatim
19101 #: ../fish/guestfish.pod:248
19102 #, no-wrap
19103 msgid ""
19104 " guestfish --format=raw -a disk.img --format -a another.img\n"
19105 "\n"
19106 msgstr ""
19107 " guestfish --format=raw -a disk.img --format -a another.img\n"
19108 "\n"
19109
19110 #. type: textblock
19111 #: ../fish/guestfish.pod:253
19112 msgid ""
19113 "If you have untrusted raw-format guest disk images, you should use this "
19114 "option to specify the disk format.  This avoids a possible security problem "
19115 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
19116 msgstr ""
19117
19118 #. type: =item
19119 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
19120 msgid "B<--inspector>"
19121 msgstr "B<--inspector>"
19122
19123 #. type: textblock
19124 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
19125 msgid ""
19126 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
19127 "system and mount filesystems as they would be mounted on the real virtual "
19128 "machine."
19129 msgstr ""
19130
19131 #. type: textblock
19132 #: ../fish/guestfish.pod:266
19133 msgid "Typical usage is either:"
19134 msgstr ""
19135
19136 #. type: verbatim
19137 #: ../fish/guestfish.pod:268
19138 #, no-wrap
19139 msgid ""
19140 " guestfish -d myguest -i\n"
19141 "\n"
19142 msgstr ""
19143 " guestfish -d myguest -i\n"
19144 "\n"
19145
19146 #. type: textblock
19147 #: ../fish/guestfish.pod:270
19148 msgid "(for an inactive libvirt domain called I<myguest>), or:"
19149 msgstr ""
19150
19151 #. type: verbatim
19152 #: ../fish/guestfish.pod:272
19153 #, no-wrap
19154 msgid ""
19155 " guestfish --ro -d myguest -i\n"
19156 "\n"
19157 msgstr ""
19158 " guestfish --ro -d myguest -i\n"
19159 "\n"
19160
19161 #. type: textblock
19162 #: ../fish/guestfish.pod:274
19163 msgid "(for active domains, readonly), or specify the block device directly:"
19164 msgstr ""
19165
19166 #. type: verbatim
19167 #: ../fish/guestfish.pod:276
19168 #, no-wrap
19169 msgid ""
19170 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19171 "\n"
19172 msgstr ""
19173 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
19174 "\n"
19175
19176 #. type: textblock
19177 #: ../fish/guestfish.pod:278
19178 msgid ""
19179 "Note that the command line syntax changed slightly over older versions of "
19180 "guestfish.  You can still use the old syntax:"
19181 msgstr ""
19182
19183 #. type: verbatim
19184 #: ../fish/guestfish.pod:281
19185 #, no-wrap
19186 msgid ""
19187 " guestfish [--ro] -i disk.img\n"
19188 "\n"
19189 msgstr ""
19190 " guestfish [--ro] -i disk.img\n"
19191 "\n"
19192
19193 #. type: verbatim
19194 #: ../fish/guestfish.pod:283
19195 #, no-wrap
19196 msgid ""
19197 " guestfish [--ro] -i libvirt-domain\n"
19198 "\n"
19199 msgstr ""
19200
19201 #. type: textblock
19202 #: ../fish/guestfish.pod:285
19203 msgid ""
19204 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19205 "then using other commands to mount the filesystems that were found."
19206 msgstr ""
19207
19208 #. type: =item
19209 #: ../fish/guestfish.pod:294
19210 msgid "B<--listen>"
19211 msgstr "B<--listen>"
19212
19213 #. type: textblock
19214 #: ../fish/guestfish.pod:296
19215 msgid ""
19216 "Fork into the background and listen for remote commands.  See section L</"
19217 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19218 msgstr ""
19219
19220 #. type: =item
19221 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19222 msgid "B<--live>"
19223 msgstr "B<--live>"
19224
19225 #. type: textblock
19226 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19227 msgid ""
19228 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19229 "ATTACHING TO RUNNING DAEMONS>)."
19230 msgstr ""
19231
19232 #. type: =item
19233 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19234 msgid "B<-m dev[:mountpoint[:options]]>"
19235 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
19236
19237 #. type: =item
19238 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19239 msgid "B<--mount dev[:mountpoint[:options]]>"
19240 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
19241
19242 #. type: textblock
19243 #: ../fish/guestfish.pod:308
19244 msgid "Mount the named partition or logical volume on the given mountpoint."
19245 msgstr ""
19246
19247 #. type: textblock
19248 #: ../fish/guestfish.pod:310
19249 msgid "If the mountpoint is omitted, it defaults to C</>."
19250 msgstr ""
19251
19252 #. type: textblock
19253 #: ../fish/guestfish.pod:312
19254 msgid "You have to mount something on C</> before most commands will work."
19255 msgstr ""
19256
19257 #. type: textblock
19258 #: ../fish/guestfish.pod:314
19259 msgid ""
19260 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19261 "launched."
19262 msgstr ""
19263
19264 #. type: textblock
19265 #: ../fish/guestfish.pod:317
19266 msgid ""
19267 "If you don't know what filesystems a disk image contains, you can either run "
19268 "guestfish without this option, then list the partitions, filesystems and LVs "
19269 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19270 "commands), or you can use the L<virt-filesystems(1)> program."
19271 msgstr ""
19272
19273 #. type: textblock
19274 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19275 msgid ""
19276 "The third (and rarely used) part of the mount parameter is the list of mount "
19277 "options used to mount the underlying filesystem.  If this is not given, then "
19278 "the mount options are either the empty string or C<ro> (the latter if the "
19279 "I<--ro> flag is used).  By specifying the mount options, you override this "
19280 "default choice.  Probably the only time you would use this is to enable ACLs "
19281 "and/or extended attributes if the filesystem can support them:"
19282 msgstr ""
19283
19284 #. type: verbatim
19285 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19286 #, no-wrap
19287 msgid ""
19288 " -m /dev/sda1:/:acl,user_xattr\n"
19289 "\n"
19290 msgstr ""
19291
19292 #. type: textblock
19293 #: ../fish/guestfish.pod:333
19294 msgid "Using this flag is equivalent to using the C<mount-options> command."
19295 msgstr ""
19296
19297 #. type: =item
19298 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19299 #: ../resize/virt-resize.pod:435
19300 msgid "B<-n>"
19301 msgstr "B<-n>"
19302
19303 #. type: =item
19304 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19305 msgid "B<--no-sync>"
19306 msgstr "B<--no-sync>"
19307
19308 #. type: textblock
19309 #: ../fish/guestfish.pod:339
19310 msgid ""
19311 "Disable autosync.  This is enabled by default.  See the discussion of "
19312 "autosync in the L<guestfs(3)> manpage."
19313 msgstr ""
19314
19315 #. type: =item
19316 #: ../fish/guestfish.pod:342
19317 msgid "B<-N type>"
19318 msgstr "B<-N тип>"
19319
19320 #. type: =item
19321 #: ../fish/guestfish.pod:344
19322 msgid "B<--new type>"
19323 msgstr "B<--new тип>"
19324
19325 #. type: =item
19326 #: ../fish/guestfish.pod:346
19327 msgid "B<-N help>"
19328 msgstr "B<-N help>"
19329
19330 #. type: textblock
19331 #: ../fish/guestfish.pod:348
19332 msgid ""
19333 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19334 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19335 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19336 "IMAGES> below."
19337 msgstr ""
19338
19339 #. type: =item
19340 #: ../fish/guestfish.pod:353
19341 msgid "B<--progress-bars>"
19342 msgstr "B<--progress-bars>"
19343
19344 #. type: textblock
19345 #: ../fish/guestfish.pod:355
19346 msgid "Enable progress bars, even when guestfish is used non-interactively."
19347 msgstr ""
19348
19349 #. type: textblock
19350 #: ../fish/guestfish.pod:357
19351 msgid ""
19352 "Progress bars are enabled by default when guestfish is used as an "
19353 "interactive shell."
19354 msgstr ""
19355
19356 #. type: =item
19357 #: ../fish/guestfish.pod:360
19358 msgid "B<--no-progress-bars>"
19359 msgstr "B<--no-progress-bars>"
19360
19361 #. type: textblock
19362 #: ../fish/guestfish.pod:362
19363 msgid "Disable progress bars."
19364 msgstr ""
19365
19366 #. type: =item
19367 #: ../fish/guestfish.pod:364
19368 msgid "B<--remote[=pid]>"
19369 msgstr "B<--remote[=pid]>"
19370
19371 #. type: textblock
19372 #: ../fish/guestfish.pod:366
19373 msgid ""
19374 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19375 "CONTROL GUESTFISH OVER A SOCKET> below."
19376 msgstr ""
19377
19378 #. type: =item
19379 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19380 #: ../rescue/virt-rescue.pod:161
19381 msgid "B<-r>"
19382 msgstr "B<-r>"
19383
19384 #. type: =item
19385 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19386 #: ../rescue/virt-rescue.pod:163
19387 msgid "B<--ro>"
19388 msgstr "B<--ro>"
19389
19390 #. type: textblock
19391 #: ../fish/guestfish.pod:373
19392 msgid ""
19393 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19394 "mounts are done read-only."
19395 msgstr ""
19396
19397 #. type: textblock
19398 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19399 msgid ""
19400 "The option must always be used if the disk image or virtual machine might be "
19401 "running, and is generally recommended in cases where you don't need write "
19402 "access to the disk."
19403 msgstr ""
19404
19405 #. type: textblock
19406 #: ../fish/guestfish.pod:380
19407 msgid ""
19408 "Note that prepared disk images created with I<-N> are not affected by this "
19409 "option.  Also commands like C<add> are not affected - you have to specify "
19410 "the C<readonly:true> option explicitly if you need it."
19411 msgstr ""
19412
19413 #. type: textblock
19414 #: ../fish/guestfish.pod:384
19415 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19416 msgstr ""
19417
19418 #. type: =item
19419 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19420 #: ../rescue/virt-rescue.pod:173
19421 msgid "B<--selinux>"
19422 msgstr "B<--selinux>"
19423
19424 #. type: textblock
19425 #: ../fish/guestfish.pod:388
19426 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19427 msgstr ""
19428
19429 #. type: textblock
19430 #: ../fish/guestfish.pod:394
19431 msgid ""
19432 "Enable very verbose messages.  This is particularly useful if you find a bug."
19433 msgstr ""
19434
19435 #. type: textblock
19436 #: ../fish/guestfish.pod:401
19437 msgid "Display the guestfish / libguestfs version number and exit."
19438 msgstr ""
19439
19440 #. type: =item
19441 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19442 #: ../rescue/virt-rescue.pod:194
19443 msgid "B<-w>"
19444 msgstr "B<-w>"
19445
19446 #. type: =item
19447 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19448 #: ../rescue/virt-rescue.pod:196
19449 msgid "B<--rw>"
19450 msgstr "B<--rw>"
19451
19452 #. type: textblock
19453 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19454 msgid ""
19455 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19456 "mounts are done read-write."
19457 msgstr ""
19458
19459 #. type: textblock
19460 #: ../fish/guestfish.pod:410
19461 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19462 msgstr ""
19463
19464 #. type: textblock
19465 #: ../fish/guestfish.pod:414
19466 msgid "Echo each command before executing it."
19467 msgstr ""
19468
19469 #. type: =head1
19470 #: ../fish/guestfish.pod:418
19471 msgid "COMMANDS ON COMMAND LINE"
19472 msgstr ""
19473
19474 #. type: textblock
19475 #: ../fish/guestfish.pod:420
19476 msgid ""
19477 "Any additional (non-option) arguments are treated as commands to execute."
19478 msgstr ""
19479
19480 #. type: textblock
19481 #: ../fish/guestfish.pod:423
19482 msgid ""
19483 "Commands to execute should be separated by a colon (C<:>), where the colon "
19484 "is a separate parameter.  Thus:"
19485 msgstr ""
19486
19487 #. type: verbatim
19488 #: ../fish/guestfish.pod:426
19489 #, no-wrap
19490 msgid ""
19491 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19492 "\n"
19493 msgstr ""
19494
19495 #. type: textblock
19496 #: ../fish/guestfish.pod:428
19497 msgid ""
19498 "If there are no additional arguments, then we enter a shell, either an "
19499 "interactive shell with a prompt (if the input is a terminal) or a non-"
19500 "interactive shell."
19501 msgstr ""
19502
19503 #. type: textblock
19504 #: ../fish/guestfish.pod:432
19505 msgid ""
19506 "In either command line mode or non-interactive shell, the first command that "
19507 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19508 "prompt) if a command fails, you can continue to enter commands."
19509 msgstr ""
19510
19511 #. type: =head1
19512 #: ../fish/guestfish.pod:437
19513 msgid "USING launch (OR run)"
19514 msgstr ""
19515
19516 #. type: textblock
19517 #: ../fish/guestfish.pod:439
19518 msgid ""
19519 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19520 "then launch it, then mount any disks you need, and finally issue actions/"
19521 "commands.  So the general order of the day is:"
19522 msgstr ""
19523
19524 #. type: textblock
19525 #: ../fish/guestfish.pod:447
19526 msgid "add or -a/--add"
19527 msgstr ""
19528
19529 #. type: textblock
19530 #: ../fish/guestfish.pod:451
19531 msgid "launch (aka run)"
19532 msgstr ""
19533
19534 #. type: textblock
19535 #: ../fish/guestfish.pod:455
19536 msgid "mount or -m/--mount"
19537 msgstr ""
19538
19539 #. type: textblock
19540 #: ../fish/guestfish.pod:459
19541 msgid "any other commands"
19542 msgstr ""
19543
19544 #. type: textblock
19545 #: ../fish/guestfish.pod:463
19546 msgid ""
19547 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19548 "guest before mounting or performing any other commands."
19549 msgstr ""
19550
19551 #. type: textblock
19552 #: ../fish/guestfish.pod:466
19553 msgid ""
19554 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19555 "I<--new> options were given then C<run> is done automatically, simply "
19556 "because guestfish can't perform the action you asked for without doing this."
19557 msgstr ""
19558
19559 #. type: =head1
19560 #: ../fish/guestfish.pod:471
19561 msgid "OPENING DISKS FOR READ AND WRITE"
19562 msgstr ""
19563
19564 #. type: textblock
19565 #: ../fish/guestfish.pod:473
19566 msgid ""
19567 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19568 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19569 "I<-i> and I<-m> open disk images read-only or for writing."
19570 msgstr ""
19571
19572 #. type: textblock
19573 #: ../fish/guestfish.pod:478
19574 msgid ""
19575 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19576 "opening disk images supplied on the command line for write.  To open a disk "
19577 "image read-only you have to do I<-a image --ro>."
19578 msgstr ""
19579
19580 #. type: textblock
19581 #: ../fish/guestfish.pod:482
19582 msgid ""
19583 "This matters: If you accidentally open a live VM disk image writable then "
19584 "you will cause irreversible disk corruption."
19585 msgstr ""
19586
19587 #. type: textblock
19588 #: ../fish/guestfish.pod:485
19589 msgid ""
19590 "In a future libguestfs we intend to change the default the other way.  Disk "
19591 "images will be opened read-only.  You will have to either specify "
19592 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19593 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19594 "access for disk images specified by those other command line options."
19595 msgstr ""
19596
19597 #. type: textblock
19598 #: ../fish/guestfish.pod:492
19599 msgid ""
19600 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19601 "which does nothing (it is already the default).  However it is highly "
19602 "recommended that you use this option to indicate that you need write access, "
19603 "and prepare your scripts for the day when this option will be required for "
19604 "write access."
19605 msgstr ""
19606
19607 #. type: textblock
19608 #: ../fish/guestfish.pod:498
19609 msgid ""
19610 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19611 "other libguestfs program apart from guestfish and guestmount."
19612 msgstr ""
19613
19614 #. type: =head1
19615 #: ../fish/guestfish.pod:501
19616 msgid "QUOTING"
19617 msgstr ""
19618
19619 #. type: textblock
19620 #: ../fish/guestfish.pod:503
19621 msgid ""
19622 "You can quote ordinary parameters using either single or double quotes.  For "
19623 "example:"
19624 msgstr ""
19625
19626 #. type: verbatim
19627 #: ../fish/guestfish.pod:506
19628 #, no-wrap
19629 msgid ""
19630 " add \"file with a space.img\"\n"
19631 "\n"
19632 msgstr ""
19633
19634 #. type: verbatim
19635 #: ../fish/guestfish.pod:508
19636 #, no-wrap
19637 msgid ""
19638 " rm '/file name'\n"
19639 "\n"
19640 msgstr ""
19641
19642 #. type: verbatim
19643 #: ../fish/guestfish.pod:510
19644 #, no-wrap
19645 msgid ""
19646 " rm '/\"'\n"
19647 "\n"
19648 msgstr ""
19649
19650 #. type: textblock
19651 #: ../fish/guestfish.pod:512
19652 msgid ""
19653 "A few commands require a list of strings to be passed.  For these, use a "
19654 "whitespace-separated list, enclosed in quotes.  Strings containing "
19655 "whitespace to be passed through must be enclosed in single quotes.  A "
19656 "literal single quote must be escaped with a backslash."
19657 msgstr ""
19658
19659 #. type: verbatim
19660 #: ../fish/guestfish.pod:517
19661 #, no-wrap
19662 msgid ""
19663 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19664 " command \"/bin/echo 'foo      bar'\"\n"
19665 " command \"/bin/echo \\'foo\\'\"\n"
19666 "\n"
19667 msgstr ""
19668
19669 #. type: =head2
19670 #: ../fish/guestfish.pod:521
19671 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19672 msgstr ""
19673
19674 #. type: textblock
19675 #: ../fish/guestfish.pod:523
19676 msgid ""
19677 "In double-quoted arguments (only) use backslash to insert special characters:"
19678 msgstr ""
19679
19680 #. type: =item
19681 #: ../fish/guestfish.pod:528
19682 msgid "C<\\a>"
19683 msgstr "C<\\a>"
19684
19685 #. type: textblock
19686 #: ../fish/guestfish.pod:530
19687 msgid "Alert (bell) character."
19688 msgstr "Символ гудка (дзвінка)."
19689
19690 #. type: =item
19691 #: ../fish/guestfish.pod:532
19692 msgid "C<\\b>"
19693 msgstr "C<\\b>"
19694
19695 #. type: textblock
19696 #: ../fish/guestfish.pod:534
19697 msgid "Backspace character."
19698 msgstr ""
19699
19700 #. type: =item
19701 #: ../fish/guestfish.pod:536
19702 msgid "C<\\f>"
19703 msgstr "C<\\f>"
19704
19705 #. type: textblock
19706 #: ../fish/guestfish.pod:538
19707 msgid "Form feed character."
19708 msgstr ""
19709
19710 #. type: =item
19711 #: ../fish/guestfish.pod:540
19712 msgid "C<\\n>"
19713 msgstr "C<\\n>"
19714
19715 #. type: textblock
19716 #: ../fish/guestfish.pod:542
19717 msgid "Newline character."
19718 msgstr ""
19719
19720 #. type: =item
19721 #: ../fish/guestfish.pod:544
19722 msgid "C<\\r>"
19723 msgstr "C<\\r>"
19724
19725 #. type: textblock
19726 #: ../fish/guestfish.pod:546
19727 msgid "Carriage return character."
19728 msgstr "Символ повернення каретки."
19729
19730 #. type: =item
19731 #: ../fish/guestfish.pod:548
19732 msgid "C<\\t>"
19733 msgstr "C<\\t>"
19734
19735 #. type: textblock
19736 #: ../fish/guestfish.pod:550
19737 msgid "Horizontal tab character."
19738 msgstr "Символ горизонтальної табуляції"
19739
19740 #. type: =item
19741 #: ../fish/guestfish.pod:552
19742 msgid "C<\\v>"
19743 msgstr "C<\\v>"
19744
19745 #. type: textblock
19746 #: ../fish/guestfish.pod:554
19747 msgid "Vertical tab character."
19748 msgstr "Символ вертикальної табуляції."
19749
19750 #. type: =item
19751 #: ../fish/guestfish.pod:556
19752 msgid "C<\\\">"
19753 msgstr "C<\\\">"
19754
19755 #. type: textblock
19756 #: ../fish/guestfish.pod:558
19757 msgid "A literal double quote character."
19758 msgstr ""
19759
19760 #. type: =item
19761 #: ../fish/guestfish.pod:560
19762 msgid "C<\\ooo>"
19763 msgstr "C<\\ooo>"
19764
19765 #. type: textblock
19766 #: ../fish/guestfish.pod:562
19767 msgid ""
19768 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19769 "(unlike C)."
19770 msgstr ""
19771
19772 #. type: =item
19773 #: ../fish/guestfish.pod:565
19774 msgid "C<\\xhh>"
19775 msgstr "C<\\xhh>"
19776
19777 #. type: textblock
19778 #: ../fish/guestfish.pod:567
19779 msgid ""
19780 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19781 msgstr ""
19782
19783 #. type: textblock
19784 #: ../fish/guestfish.pod:570
19785 msgid ""
19786 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19787 "strings."
19788 msgstr ""
19789
19790 #. type: =item
19791 #: ../fish/guestfish.pod:573
19792 msgid "C<\\\\>"
19793 msgstr "C<\\\\>"
19794
19795 #. type: textblock
19796 #: ../fish/guestfish.pod:575
19797 msgid "A literal backslash character."
19798 msgstr ""
19799
19800 #. type: =head1
19801 #: ../fish/guestfish.pod:579
19802 msgid "OPTIONAL ARGUMENTS"
19803 msgstr ""
19804
19805 #. type: textblock
19806 #: ../fish/guestfish.pod:581
19807 msgid ""
19808 "Some commands take optional arguments.  These arguments appear in this "
19809 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19810 msgstr ""
19811
19812 #. type: verbatim
19813 #: ../fish/guestfish.pod:585
19814 #, no-wrap
19815 msgid ""
19816 " add-drive-opts filename\n"
19817 "\n"
19818 msgstr ""
19819
19820 #. type: verbatim
19821 #: ../fish/guestfish.pod:587
19822 #, no-wrap
19823 msgid ""
19824 " add-drive-opts filename readonly:true\n"
19825 "\n"
19826 msgstr ""
19827
19828 #. type: verbatim
19829 #: ../fish/guestfish.pod:589
19830 #, no-wrap
19831 msgid ""
19832 " add-drive-opts filename format:qcow2 readonly:false\n"
19833 "\n"
19834 msgstr ""
19835
19836 #. type: textblock
19837 #: ../fish/guestfish.pod:591
19838 msgid ""
19839 "Each optional argument can appear at most once.  All optional arguments must "
19840 "appear after the required ones."
19841 msgstr ""
19842
19843 #. type: =head1
19844 #: ../fish/guestfish.pod:594
19845 msgid "NUMBERS"
19846 msgstr "ЧИСЛА"
19847
19848 #. type: textblock
19849 #: ../fish/guestfish.pod:596
19850 msgid ""
19851 "This section applies to all commands which can take integers as parameters."
19852 msgstr ""
19853
19854 #. type: =head2
19855 #: ../fish/guestfish.pod:599
19856 msgid "SIZE SUFFIX"
19857 msgstr ""
19858
19859 #. type: textblock
19860 #: ../fish/guestfish.pod:601
19861 msgid ""
19862 "When the command takes a parameter measured in bytes, you can use one of the "
19863 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19864 msgstr ""
19865
19866 #. type: =item
19867 #: ../fish/guestfish.pod:607
19868 msgid "B<k> or B<K> or B<KiB>"
19869 msgstr "B<k>, B<K> або B<KiB>"
19870
19871 #. type: textblock
19872 #: ../fish/guestfish.pod:609
19873 msgid "The size in kilobytes (multiplied by 1024)."
19874 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
19875
19876 #. type: =item
19877 #: ../fish/guestfish.pod:611
19878 msgid "B<KB>"
19879 msgstr "B<KB>"
19880
19881 #. type: textblock
19882 #: ../fish/guestfish.pod:613
19883 msgid "The size in SI 1000 byte units."
19884 msgstr "Розмір у одиницях СІ: 1000 байтів."
19885
19886 #. type: =item
19887 #: ../fish/guestfish.pod:615
19888 msgid "B<M> or B<MiB>"
19889 msgstr "B<M> або B<MiB>"
19890
19891 #. type: textblock
19892 #: ../fish/guestfish.pod:617
19893 msgid "The size in megabytes (multiplied by 1048576)."
19894 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
19895
19896 #. type: =item
19897 #: ../fish/guestfish.pod:619
19898 msgid "B<MB>"
19899 msgstr "B<MB>"
19900
19901 #. type: textblock
19902 #: ../fish/guestfish.pod:621
19903 msgid "The size in SI 1000000 byte units."
19904 msgstr "Розмір у одиницях СІ: 1000000 байтів."
19905
19906 #. type: =item
19907 #: ../fish/guestfish.pod:623
19908 msgid "B<G> or B<GiB>"
19909 msgstr "B<G> або B<GiB>"
19910
19911 #. type: textblock
19912 #: ../fish/guestfish.pod:625
19913 msgid "The size in gigabytes (multiplied by 2**30)."
19914 msgstr "Розмір у гігабайтах (з множником 2**30)."
19915
19916 #. type: =item
19917 #: ../fish/guestfish.pod:627
19918 msgid "B<GB>"
19919 msgstr "B<GB>"
19920
19921 #. type: textblock
19922 #: ../fish/guestfish.pod:629
19923 msgid "The size in SI 10**9 byte units."
19924 msgstr "Розмір у одиницях СІ: 10**9 байтів."
19925
19926 #. type: =item
19927 #: ../fish/guestfish.pod:631
19928 msgid "B<T> or B<TiB>"
19929 msgstr "B<T> або B<TiB>"
19930
19931 #. type: textblock
19932 #: ../fish/guestfish.pod:633
19933 msgid "The size in terabytes (multiplied by 2**40)."
19934 msgstr "Розмір у терабайтах (з множником 2**40)."
19935
19936 #. type: =item
19937 #: ../fish/guestfish.pod:635
19938 msgid "B<TB>"
19939 msgstr "B<TB>"
19940
19941 #. type: textblock
19942 #: ../fish/guestfish.pod:637
19943 msgid "The size in SI 10**12 byte units."
19944 msgstr "Розмір у одиницях СІ: 10**12 байтів."
19945
19946 #. type: =item
19947 #: ../fish/guestfish.pod:639
19948 msgid "B<P> or B<PiB>"
19949 msgstr "B<P> або B<PiB>"
19950
19951 #. type: textblock
19952 #: ../fish/guestfish.pod:641
19953 msgid "The size in petabytes (multiplied by 2**50)."
19954 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
19955
19956 #. type: =item
19957 #: ../fish/guestfish.pod:643
19958 msgid "B<PB>"
19959 msgstr "B<PB>"
19960
19961 #. type: textblock
19962 #: ../fish/guestfish.pod:645
19963 msgid "The size in SI 10**15 byte units."
19964 msgstr "Розмір у одиницях СІ: 10**15 байтів."
19965
19966 #. type: =item
19967 #: ../fish/guestfish.pod:647
19968 msgid "B<E> or B<EiB>"
19969 msgstr "B<E> або B<EiB>"
19970
19971 #. type: textblock
19972 #: ../fish/guestfish.pod:649
19973 msgid "The size in exabytes (multiplied by 2**60)."
19974 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
19975
19976 #. type: =item
19977 #: ../fish/guestfish.pod:651
19978 msgid "B<EB>"
19979 msgstr "B<EB>"
19980
19981 #. type: textblock
19982 #: ../fish/guestfish.pod:653
19983 msgid "The size in SI 10**18 byte units."
19984 msgstr "Розмір у одиницях СІ: 10**18 байтів."
19985
19986 #. type: =item
19987 #: ../fish/guestfish.pod:655
19988 msgid "B<Z> or B<ZiB>"
19989 msgstr "B<Z> або B<ZiB>"
19990
19991 #. type: textblock
19992 #: ../fish/guestfish.pod:657
19993 msgid "The size in zettabytes (multiplied by 2**70)."
19994 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
19995
19996 #. type: =item
19997 #: ../fish/guestfish.pod:659
19998 msgid "B<ZB>"
19999 msgstr "B<ZB>"
20000
20001 #. type: textblock
20002 #: ../fish/guestfish.pod:661
20003 msgid "The size in SI 10**21 byte units."
20004 msgstr "Розмір у одиницях СІ: 10**21 байтів."
20005
20006 #. type: =item
20007 #: ../fish/guestfish.pod:663
20008 msgid "B<Y> or B<YiB>"
20009 msgstr "B<Y> або B<YiB>"
20010
20011 #. type: textblock
20012 #: ../fish/guestfish.pod:665
20013 msgid "The size in yottabytes (multiplied by 2**80)."
20014 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
20015
20016 #. type: =item
20017 #: ../fish/guestfish.pod:667
20018 msgid "B<YB>"
20019 msgstr "B<YB>"
20020
20021 #. type: textblock
20022 #: ../fish/guestfish.pod:669
20023 msgid "The size in SI 10**24 byte units."
20024 msgstr "Розмір у одиницях СІ: 10**24 байтів."
20025
20026 #. type: verbatim
20027 #: ../fish/guestfish.pod:675
20028 #, no-wrap
20029 msgid ""
20030 " truncate-size /file 1G\n"
20031 "\n"
20032 msgstr ""
20033
20034 #. type: textblock
20035 #: ../fish/guestfish.pod:677
20036 msgid "would truncate the file to 1 gigabyte."
20037 msgstr ""
20038
20039 #. type: textblock
20040 #: ../fish/guestfish.pod:679
20041 msgid ""
20042 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
20043 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
20044 "suffix will probably not do what you expect."
20045 msgstr ""
20046
20047 #. type: =head2
20048 #: ../fish/guestfish.pod:683
20049 msgid "OCTAL AND HEXADECIMAL NUMBERS"
20050 msgstr ""
20051
20052 #. type: textblock
20053 #: ../fish/guestfish.pod:685
20054 msgid ""
20055 "For specifying the radix (base) use the C convention: C<0> to prefix an "
20056 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
20057 msgstr ""
20058
20059 #. type: verbatim
20060 #: ../fish/guestfish.pod:688
20061 #, no-wrap
20062 msgid ""
20063 " 1234      decimal number 1234\n"
20064 " 02322     octal number, equivalent to decimal 1234\n"
20065 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
20066 "\n"
20067 msgstr ""
20068
20069 #. type: textblock
20070 #: ../fish/guestfish.pod:692
20071 msgid ""
20072 "When using the C<chmod> command, you almost always want to specify an octal "
20073 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
20074 "L<chmod(1)> program):"
20075 msgstr ""
20076
20077 #. type: verbatim
20078 #: ../fish/guestfish.pod:696
20079 #, no-wrap
20080 msgid ""
20081 " chmod 0777 /public  # OK\n"
20082 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
20083 "\n"
20084 msgstr ""
20085
20086 #. type: textblock
20087 #: ../fish/guestfish.pod:699
20088 msgid ""
20089 "Commands that return numbers usually print them in decimal, but some "
20090 "commands print numbers in other radices (eg. C<umask> prints the mode in "
20091 "octal, preceeded by C<0>)."
20092 msgstr ""
20093
20094 #. type: =head1
20095 #: ../fish/guestfish.pod:703
20096 msgid "WILDCARDS AND GLOBBING"
20097 msgstr ""
20098
20099 #. type: textblock
20100 #: ../fish/guestfish.pod:705
20101 msgid ""
20102 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
20103 "(globbing) by default.  So for example the following will not do what you "
20104 "expect:"
20105 msgstr ""
20106
20107 #. type: verbatim
20108 #: ../fish/guestfish.pod:709
20109 #, no-wrap
20110 msgid ""
20111 " rm-rf /home/*\n"
20112 "\n"
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../fish/guestfish.pod:711
20117 msgid ""
20118 "Assuming you don't have a directory called literally C</home/*> then the "
20119 "above command will return an error."
20120 msgstr ""
20121
20122 #. type: textblock
20123 #: ../fish/guestfish.pod:714
20124 msgid "To perform wildcard expansion, use the C<glob> command."
20125 msgstr ""
20126
20127 #. type: verbatim
20128 #: ../fish/guestfish.pod:716
20129 #, no-wrap
20130 msgid ""
20131 " glob rm-rf /home/*\n"
20132 "\n"
20133 msgstr ""
20134
20135 #. type: textblock
20136 #: ../fish/guestfish.pod:718
20137 msgid ""
20138 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
20139 "many times), equivalent to:"
20140 msgstr ""
20141
20142 #. type: verbatim
20143 #: ../fish/guestfish.pod:721
20144 #, no-wrap
20145 msgid ""
20146 " rm-rf /home/jim\n"
20147 " rm-rf /home/joe\n"
20148 " rm-rf /home/mary\n"
20149 "\n"
20150 msgstr ""
20151
20152 #. type: textblock
20153 #: ../fish/guestfish.pod:725
20154 msgid "C<glob> only works on simple guest paths and not on device names."
20155 msgstr ""
20156
20157 #. type: textblock
20158 #: ../fish/guestfish.pod:727
20159 msgid ""
20160 "If you have several parameters, each containing a wildcard, then glob will "
20161 "perform a Cartesian product."
20162 msgstr ""
20163
20164 #. type: =head1
20165 #: ../fish/guestfish.pod:730
20166 msgid "COMMENTS"
20167 msgstr "КОМЕНТАРІ"
20168
20169 #. type: textblock
20170 #: ../fish/guestfish.pod:732
20171 msgid ""
20172 "Any line which starts with a I<#> character is treated as a comment and "
20173 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
20174 "a command.  For example:"
20175 msgstr ""
20176
20177 #. type: verbatim
20178 #: ../fish/guestfish.pod:736
20179 #, no-wrap
20180 msgid ""
20181 " # this is a comment\n"
20182 "         # this is a comment\n"
20183 " foo # NOT a comment\n"
20184 "\n"
20185 msgstr ""
20186
20187 #. type: textblock
20188 #: ../fish/guestfish.pod:740
20189 msgid "Blank lines are also ignored."
20190 msgstr ""
20191
20192 #. type: =head1
20193 #: ../fish/guestfish.pod:742
20194 msgid "RUNNING COMMANDS LOCALLY"
20195 msgstr ""
20196
20197 #. type: textblock
20198 #: ../fish/guestfish.pod:744
20199 msgid ""
20200 "Any line which starts with a I<!> character is treated as a command sent to "
20201 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20202 msgstr ""
20203
20204 #. type: verbatim
20205 #: ../fish/guestfish.pod:748
20206 #, no-wrap
20207 msgid ""
20208 " !mkdir local\n"
20209 " tgz-out /remote local/remote-data.tar.gz\n"
20210 "\n"
20211 msgstr ""
20212
20213 #. type: textblock
20214 #: ../fish/guestfish.pod:751
20215 msgid ""
20216 "will create a directory C<local> on the host, and then export the contents "
20217 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20218 "(See C<tgz-out>)."
20219 msgstr ""
20220
20221 #. type: textblock
20222 #: ../fish/guestfish.pod:755
20223 msgid ""
20224 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20225 "effect, due to the way that subprocesses work in Unix."
20226 msgstr ""
20227
20228 #. type: =head2
20229 #: ../fish/guestfish.pod:758
20230 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20231 msgstr ""
20232
20233 #. type: textblock
20234 #: ../fish/guestfish.pod:760
20235 msgid ""
20236 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20237 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20238 "and executed as guestfish commands."
20239 msgstr ""
20240
20241 #. type: textblock
20242 #: ../fish/guestfish.pod:764
20243 msgid ""
20244 "Thus you can use shell script to construct arbitrary guestfish commands "
20245 "which are then parsed by guestfish."
20246 msgstr ""
20247
20248 #. type: textblock
20249 #: ../fish/guestfish.pod:767
20250 msgid ""
20251 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20252 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20253 "if we use a shell script to create the guestfish commands for us:"
20254 msgstr ""
20255
20256 #. type: verbatim
20257 #: ../fish/guestfish.pod:772
20258 #, no-wrap
20259 msgid ""
20260 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20261 "\n"
20262 msgstr ""
20263
20264 #. type: textblock
20265 #: ../fish/guestfish.pod:774
20266 msgid "or with names like C</foo.001>:"
20267 msgstr ""
20268
20269 #. type: verbatim
20270 #: ../fish/guestfish.pod:776
20271 #, no-wrap
20272 msgid ""
20273 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20274 "\n"
20275 msgstr ""
20276
20277 #. type: textblock
20278 #: ../fish/guestfish.pod:778
20279 msgid ""
20280 "When using guestfish interactively it can be helpful to just run the shell "
20281 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20282 "ordinary I<!> local command), see what guestfish commands it would run, and "
20283 "when you are happy with those prepend the C<E<lt>> character to run the "
20284 "guestfish commands for real."
20285 msgstr ""
20286
20287 #. type: =head1
20288 #: ../fish/guestfish.pod:784
20289 msgid "PIPES"
20290 msgstr "КАНАЛИ"
20291
20292 #. type: textblock
20293 #: ../fish/guestfish.pod:786
20294 msgid ""
20295 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20296 "command (a guestfish command) to the second command (any host command).  For "
20297 "example:"
20298 msgstr ""
20299
20300 #. type: verbatim
20301 #: ../fish/guestfish.pod:790
20302 #, no-wrap
20303 msgid ""
20304 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20305 "\n"
20306 msgstr ""
20307
20308 #. type: textblock
20309 #: ../fish/guestfish.pod:792
20310 msgid ""
20311 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20312 "program).  The above command would list all accounts in the guest filesystem "
20313 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20314 msgstr ""
20315
20316 #. type: verbatim
20317 #: ../fish/guestfish.pod:797
20318 #, no-wrap
20319 msgid ""
20320 " hexdump /bin/ls | head\n"
20321 " list-devices | tail -1\n"
20322 " tgz-out / - | tar ztf -\n"
20323 "\n"
20324 msgstr ""
20325
20326 #. type: textblock
20327 #: ../fish/guestfish.pod:801
20328 msgid ""
20329 "The space before the pipe symbol is required, any space after the pipe "
20330 "symbol is optional.  Everything after the pipe symbol is just passed "
20331 "straight to the host shell, so it can contain redirections, globs and "
20332 "anything else that makes sense on the host side."
20333 msgstr ""
20334
20335 #. type: textblock
20336 #: ../fish/guestfish.pod:806
20337 msgid ""
20338 "To use a literal argument which begins with a pipe symbol, you have to quote "
20339 "it, eg:"
20340 msgstr ""
20341
20342 #. type: verbatim
20343 #: ../fish/guestfish.pod:809
20344 #, no-wrap
20345 msgid ""
20346 " echo \"|\"\n"
20347 "\n"
20348 msgstr ""
20349
20350 #. type: =head1
20351 #: ../fish/guestfish.pod:811
20352 msgid "HOME DIRECTORIES"
20353 msgstr ""
20354
20355 #. type: textblock
20356 #: ../fish/guestfish.pod:813
20357 msgid ""
20358 "If a parameter starts with the character C<~> then the tilde may be expanded "
20359 "as a home directory path (either C<~> for the current user's home directory, "
20360 "or C<~user> for another user)."
20361 msgstr ""
20362
20363 #. type: textblock
20364 #: ../fish/guestfish.pod:817
20365 msgid ""
20366 "Note that home directory expansion happens for users known I<on the host>, "
20367 "not in the guest filesystem."
20368 msgstr ""
20369
20370 #. type: textblock
20371 #: ../fish/guestfish.pod:820
20372 msgid ""
20373 "To use a literal argument which begins with a tilde, you have to quote it, "
20374 "eg:"
20375 msgstr ""
20376
20377 #. type: verbatim
20378 #: ../fish/guestfish.pod:823
20379 #, no-wrap
20380 msgid ""
20381 " echo \"~\"\n"
20382 "\n"
20383 msgstr ""
20384
20385 #. type: =head2
20386 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
20387 msgid "ENCRYPTED DISKS"
20388 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20389
20390 #. type: textblock
20391 #: ../fish/guestfish.pod:827
20392 msgid ""
20393 "Libguestfs has some support for Linux guests encrypted according to the "
20394 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20395 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
20396 "LUKS is supported."
20397 msgstr ""
20398
20399 #. type: textblock
20400 #: ../fish/guestfish.pod:832
20401 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20402 msgstr ""
20403
20404 #. type: verbatim
20405 #: ../fish/guestfish.pod:834
20406 #, no-wrap
20407 msgid ""
20408 " ><fs> vfs-type /dev/sda2\n"
20409 " crypto_LUKS\n"
20410 "\n"
20411 msgstr ""
20412
20413 #. type: textblock
20414 #: ../fish/guestfish.pod:837
20415 msgid ""
20416 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20417 "device called C</dev/mapper/luksdev>."
20418 msgstr ""
20419
20420 #. type: verbatim
20421 #: ../fish/guestfish.pod:840
20422 #, no-wrap
20423 msgid ""
20424 " ><fs> luks-open /dev/sda2 luksdev\n"
20425 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20426 "\n"
20427 msgstr ""
20428
20429 #. type: textblock
20430 #: ../fish/guestfish.pod:843
20431 msgid ""
20432 "Finally you have to tell LVM to scan for volume groups on the newly created "
20433 "mapper device:"
20434 msgstr ""
20435
20436 #. type: verbatim
20437 #: ../fish/guestfish.pod:846
20438 #, no-wrap
20439 msgid ""
20440 " vgscan\n"
20441 " vg-activate-all true\n"
20442 "\n"
20443 msgstr ""
20444
20445 #. type: textblock
20446 #: ../fish/guestfish.pod:849
20447 msgid "The logical volume(s) can now be mounted in the usual way."
20448 msgstr ""
20449
20450 #. type: textblock
20451 #: ../fish/guestfish.pod:851
20452 msgid ""
20453 "Before closing a LUKS device you must unmount any logical volumes on it and "
20454 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20455 "one.  Then you can close the mapper device:"
20456 msgstr ""
20457
20458 #. type: verbatim
20459 #: ../fish/guestfish.pod:855
20460 #, no-wrap
20461 msgid ""
20462 " vg-activate false /dev/VG\n"
20463 " luks-close /dev/mapper/luksdev\n"
20464 "\n"
20465 msgstr ""
20466
20467 #. type: textblock
20468 #: ../fish/guestfish.pod:860
20469 msgid ""
20470 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20471 "letters and paths (with some limitations).  The following commands are "
20472 "equivalent:"
20473 msgstr ""
20474
20475 #. type: verbatim
20476 #: ../fish/guestfish.pod:864
20477 #, no-wrap
20478 msgid ""
20479 " file /WINDOWS/system32/config/system.LOG\n"
20480 "\n"
20481 msgstr ""
20482
20483 #. type: verbatim
20484 #: ../fish/guestfish.pod:866
20485 #, no-wrap
20486 msgid ""
20487 " file win:\\windows\\system32\\config\\system.log\n"
20488 "\n"
20489 msgstr ""
20490
20491 #. type: verbatim
20492 #: ../fish/guestfish.pod:868
20493 #, no-wrap
20494 msgid ""
20495 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20496 "\n"
20497 msgstr ""
20498
20499 #. type: textblock
20500 #: ../fish/guestfish.pod:870
20501 msgid ""
20502 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20503 "where the drive is mounted, prepending that to the path, changing all "
20504 "backslash characters to forward slash, then resolving the result using L</"
20505 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
20506 "the parameter might be rewritten like this:"
20507 msgstr ""
20508
20509 #. type: verbatim
20510 #: ../fish/guestfish.pod:876
20511 #, no-wrap
20512 msgid ""
20513 " win:e:\\foo\\bar => /e/FOO/bar\n"
20514 "\n"
20515 msgstr ""
20516
20517 #. type: textblock
20518 #: ../fish/guestfish.pod:878
20519 msgid "This only works in argument positions that expect a path."
20520 msgstr ""
20521
20522 #. type: =head1
20523 #: ../fish/guestfish.pod:880
20524 msgid "UPLOADING AND DOWNLOADING FILES"
20525 msgstr ""
20526
20527 #. type: textblock
20528 #: ../fish/guestfish.pod:882
20529 msgid ""
20530 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20531 "others which upload from or download to a local file, you can use the "
20532 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20533 msgstr ""
20534
20535 #. type: verbatim
20536 #: ../fish/guestfish.pod:886
20537 #, no-wrap
20538 msgid ""
20539 " upload - /foo\n"
20540 "\n"
20541 msgstr ""
20542
20543 #. type: textblock
20544 #: ../fish/guestfish.pod:888
20545 msgid ""
20546 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20547 msgstr ""
20548
20549 #. type: verbatim
20550 #: ../fish/guestfish.pod:891
20551 #, no-wrap
20552 msgid ""
20553 " tar-out /etc - | tar tf -\n"
20554 "\n"
20555 msgstr ""
20556
20557 #. type: textblock
20558 #: ../fish/guestfish.pod:893
20559 msgid ""
20560 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20561 "command (see L</PIPES>)."
20562 msgstr ""
20563
20564 #. type: textblock
20565 #: ../fish/guestfish.pod:896
20566 msgid ""
20567 "When using C<-> to read from stdin, the input is read up to the end of "
20568 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20569 "some arbitrary end marker:"
20570 msgstr ""
20571
20572 #. type: verbatim
20573 #: ../fish/guestfish.pod:900
20574 #, no-wrap
20575 msgid ""
20576 " upload -<<END /foo\n"
20577 " input line 1\n"
20578 " input line 2\n"
20579 " input line 3\n"
20580 " END\n"
20581 "\n"
20582 msgstr ""
20583
20584 #. type: textblock
20585 #: ../fish/guestfish.pod:906
20586 msgid ""
20587 "Any string of characters can be used instead of C<END>.  The end marker must "
20588 "appear on a line of its own, without any preceeding or following characters "
20589 "(not even spaces)."
20590 msgstr ""
20591
20592 #. type: textblock
20593 #: ../fish/guestfish.pod:910
20594 msgid ""
20595 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20596 "upload local files (so-called \"FileIn\" parameters in the generator)."
20597 msgstr ""
20598
20599 #. type: =head1
20600 #: ../fish/guestfish.pod:913
20601 msgid "EXIT ON ERROR BEHAVIOUR"
20602 msgstr ""
20603
20604 #. type: textblock
20605 #: ../fish/guestfish.pod:915
20606 msgid ""
20607 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20608 "taking commands from a human over a tty), and will exit on the first error "
20609 "in non-interactive mode (scripts, commands given on the command line)."
20610 msgstr ""
20611
20612 #. type: textblock
20613 #: ../fish/guestfish.pod:920
20614 msgid ""
20615 "If you prefix a command with a I<-> character, then that command will not "
20616 "cause guestfish to exit, even if that (one) command returns an error."
20617 msgstr ""
20618
20619 #. type: =head1
20620 #: ../fish/guestfish.pod:924
20621 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20622 msgstr ""
20623
20624 #. type: textblock
20625 #: ../fish/guestfish.pod:926
20626 msgid ""
20627 "Guestfish can be remote-controlled over a socket.  This is useful "
20628 "particularly in shell scripts where you want to make several different "
20629 "changes to a filesystem, but you don't want the overhead of starting up a "
20630 "guestfish process each time."
20631 msgstr ""
20632
20633 #. type: textblock
20634 #: ../fish/guestfish.pod:931
20635 msgid "Start a guestfish server process using:"
20636 msgstr ""
20637
20638 #. type: verbatim
20639 #: ../fish/guestfish.pod:933
20640 #, no-wrap
20641 msgid ""
20642 " eval \"`guestfish --listen`\"\n"
20643 "\n"
20644 msgstr ""
20645
20646 #. type: textblock
20647 #: ../fish/guestfish.pod:935
20648 msgid "and then send it commands by doing:"
20649 msgstr ""
20650
20651 #. type: verbatim
20652 #: ../fish/guestfish.pod:937
20653 #, no-wrap
20654 msgid ""
20655 " guestfish --remote cmd [...]\n"
20656 "\n"
20657 msgstr ""
20658
20659 #. type: textblock
20660 #: ../fish/guestfish.pod:939
20661 msgid "To cause the server to exit, send it the exit command:"
20662 msgstr ""
20663
20664 #. type: textblock
20665 #: ../fish/guestfish.pod:943
20666 msgid ""
20667 "Note that the server will normally exit if there is an error in a command.  "
20668 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20669 "BEHAVIOUR>."
20670 msgstr ""
20671
20672 #. type: =head2
20673 #: ../fish/guestfish.pod:947
20674 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20675 msgstr ""
20676
20677 #. type: textblock
20678 #: ../fish/guestfish.pod:949
20679 msgid ""
20680 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20681 "is how the I<--remote> option knows where to send the commands.  You can "
20682 "have several guestfish listener processes running using:"
20683 msgstr ""
20684
20685 #. type: verbatim
20686 #: ../fish/guestfish.pod:953
20687 #, no-wrap
20688 msgid ""
20689 " eval \"`guestfish --listen`\"\n"
20690 " pid1=$GUESTFISH_PID\n"
20691 " eval \"`guestfish --listen`\"\n"
20692 " pid2=$GUESTFISH_PID\n"
20693 " ...\n"
20694 " guestfish --remote=$pid1 cmd\n"
20695 " guestfish --remote=$pid2 cmd\n"
20696 "\n"
20697 msgstr ""
20698
20699 #. type: =head2
20700 #: ../fish/guestfish.pod:961
20701 msgid "REMOTE CONTROL AND CSH"
20702 msgstr ""
20703
20704 #. type: textblock
20705 #: ../fish/guestfish.pod:963
20706 msgid ""
20707 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20708 "option:"
20709 msgstr ""
20710
20711 #. type: verbatim
20712 #: ../fish/guestfish.pod:966
20713 #, no-wrap
20714 msgid ""
20715 " eval \"`guestfish --listen --csh`\"\n"
20716 "\n"
20717 msgstr ""
20718
20719 #. type: =head2
20720 #: ../fish/guestfish.pod:968
20721 msgid "REMOTE CONTROL DETAILS"
20722 msgstr ""
20723
20724 #. type: textblock
20725 #: ../fish/guestfish.pod:970
20726 msgid ""
20727 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20728 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20729 "and C<$PID> is the process ID of the server."
20730 msgstr ""
20731
20732 #. type: textblock
20733 #: ../fish/guestfish.pod:974
20734 msgid "Guestfish client and server versions must match exactly."
20735 msgstr ""
20736
20737 #. type: =head2
20738 #: ../fish/guestfish.pod:976
20739 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20740 msgstr ""
20741
20742 #. type: textblock
20743 #: ../fish/guestfish.pod:978
20744 msgid ""
20745 "From Bash, you can use the following code which creates a guestfish "
20746 "instance, correctly quotes the command line, handles failure to start, and "
20747 "cleans up guestfish when the script exits:"
20748 msgstr ""
20749
20750 #. type: verbatim
20751 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
20752 #, no-wrap
20753 msgid ""
20754 " #!/bin/bash -\n"
20755 " \n"
20756 msgstr ""
20757
20758 #. type: verbatim
20759 #: ../fish/guestfish.pod:986
20760 #, no-wrap
20761 msgid ""
20762 " guestfish[0]=\"guestfish\"\n"
20763 " guestfish[1]=\"--listen\"\n"
20764 " guestfish[2]=\"--ro\"\n"
20765 " guestfish[3]=\"-a\"\n"
20766 " guestfish[4]=\"disk.img\"\n"
20767 " \n"
20768 msgstr ""
20769
20770 #. type: verbatim
20771 #: ../fish/guestfish.pod:992
20772 #, no-wrap
20773 msgid ""
20774 " GUESTFISH_PID=\n"
20775 " eval $(\"${guestfish[@]}\")\n"
20776 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20777 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20778 "     exit 1\n"
20779 " fi\n"
20780 " \n"
20781 msgstr ""
20782
20783 #. type: verbatim
20784 #: ../fish/guestfish.pod:999
20785 #, no-wrap
20786 msgid ""
20787 " cleanup_guestfish ()\n"
20788 " {\n"
20789 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20790 " }\n"
20791 " trap cleanup_guestfish EXIT ERR\n"
20792 " \n"
20793 msgstr ""
20794
20795 #. type: verbatim
20796 #: ../fish/guestfish.pod:1005
20797 #, no-wrap
20798 msgid ""
20799 " guestfish --remote -- run\n"
20800 " \n"
20801 msgstr ""
20802
20803 #. type: verbatim
20804 #: ../fish/guestfish.pod:1007
20805 #, no-wrap
20806 msgid ""
20807 " # ...\n"
20808 "\n"
20809 msgstr ""
20810
20811 #. type: =head2
20812 #: ../fish/guestfish.pod:1009
20813 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20814 msgstr ""
20815
20816 #. type: textblock
20817 #: ../fish/guestfish.pod:1011
20818 msgid ""
20819 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20820 "context hangs, ie. don't do (note the backquotes):"
20821 msgstr ""
20822
20823 #. type: verbatim
20824 #: ../fish/guestfish.pod:1014
20825 #, no-wrap
20826 msgid ""
20827 " a=`guestfish --remote run`\n"
20828 "\n"
20829 msgstr ""
20830
20831 #. type: textblock
20832 #: ../fish/guestfish.pod:1016
20833 msgid ""
20834 "Since the C<run> command produces no output on stdout, this is not useful "
20835 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
20836 "cgi?id=592910>."
20837 msgstr ""
20838
20839 #. type: =head1
20840 #: ../fish/guestfish.pod:1020
20841 msgid "PREPARED DISK IMAGES"
20842 msgstr ""
20843
20844 #. type: textblock
20845 #: ../fish/guestfish.pod:1022
20846 msgid ""
20847 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20848 "preformatted disk images that guestfish can make for you to save typing.  "
20849 "This is particularly useful for testing purposes.  This option is used "
20850 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20851 "can be mixed with I<-a>)."
20852 msgstr ""
20853
20854 #. type: textblock
20855 #: ../fish/guestfish.pod:1028
20856 msgid ""
20857 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20858 "the second and so on.  Existing files in the current directory are "
20859 "I<overwritten>."
20860 msgstr ""
20861
20862 #. type: textblock
20863 #: ../fish/guestfish.pod:1032
20864 msgid ""
20865 "The type briefly describes how the disk should be sized, partitioned, how "
20866 "filesystem(s) should be created, and how content should be added.  "
20867 "Optionally the type can be followed by extra parameters, separated by C<:> "
20868 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
20869 "allocated disk, containing a single partition, with the partition formatted "
20870 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20871 "disk instead."
20872 msgstr ""
20873
20874 #. type: textblock
20875 #: ../fish/guestfish.pod:1040
20876 msgid "To list the available types and any extra parameters they take, run:"
20877 msgstr ""
20878
20879 #. type: textblock
20880 #: ../fish/guestfish.pod:1044
20881 msgid ""
20882 "Note that the prepared filesystem is not mounted.  You would usually have to "
20883 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20884 msgstr ""
20885
20886 #. type: textblock
20887 #: ../fish/guestfish.pod:1048
20888 msgid ""
20889 "If any I<-N> or I<--new> options are given, the guest is automatically "
20890 "launched."
20891 msgstr ""
20892
20893 #. type: textblock
20894 #: ../fish/guestfish.pod:1053
20895 msgid "Create a 100MB disk with an ext4-formatted partition:"
20896 msgstr ""
20897
20898 #. type: verbatim
20899 #: ../fish/guestfish.pod:1055
20900 #, no-wrap
20901 msgid ""
20902 " guestfish -N fs:ext4\n"
20903 "\n"
20904 msgstr ""
20905
20906 #. type: textblock
20907 #: ../fish/guestfish.pod:1057
20908 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20909 msgstr ""
20910
20911 #. type: verbatim
20912 #: ../fish/guestfish.pod:1059
20913 #, no-wrap
20914 msgid ""
20915 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20916 "\n"
20917 msgstr ""
20918
20919 #. type: textblock
20920 #: ../fish/guestfish.pod:1061
20921 msgid "Create a blank 200MB disk:"
20922 msgstr ""
20923
20924 #. type: verbatim
20925 #: ../fish/guestfish.pod:1063
20926 #, no-wrap
20927 msgid ""
20928 " guestfish -N disk:200M\n"
20929 "\n"
20930 msgstr ""
20931
20932 #. type: =head1
20933 #: ../fish/guestfish.pod:1065
20934 msgid "PROGRESS BARS"
20935 msgstr ""
20936
20937 #. type: textblock
20938 #: ../fish/guestfish.pod:1067
20939 msgid ""
20940 "Some (not all) long-running commands send progress notification messages as "
20941 "they are running.  Guestfish turns these messages into progress bars."
20942 msgstr ""
20943
20944 #. type: textblock
20945 #: ../fish/guestfish.pod:1071
20946 msgid ""
20947 "When a command that supports progress bars takes longer than two seconds to "
20948 "run, and if progress bars are enabled, then you will see one appearing below "
20949 "the command:"
20950 msgstr ""
20951
20952 #. type: verbatim
20953 #: ../fish/guestfish.pod:1075
20954 #, no-wrap
20955 msgid ""
20956 " ><fs> copy-size /large-file /another-file 2048M\n"
20957 " / 10% [#####-----------------------------------------] 00:30\n"
20958 "\n"
20959 msgstr ""
20960
20961 #. type: textblock
20962 #: ../fish/guestfish.pod:1078
20963 msgid ""
20964 "The spinner on the left hand side moves round once for every progress "
20965 "notification received from the backend.  This is a (reasonably) golden "
20966 "assurance that the command is \"doing something\" even if the progress bar "
20967 "is not moving, because the command is able to send the progress "
20968 "notifications.  When the bar reaches 100% and the command finishes, the "
20969 "spinner disappears."
20970 msgstr ""
20971
20972 #. type: textblock
20973 #: ../fish/guestfish.pod:1085
20974 msgid ""
20975 "Progress bars are enabled by default when guestfish is used interactively.  "
20976 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20977 "and you can disable them completely using I<--no-progress-bars>."
20978 msgstr ""
20979
20980 #. type: =head1
20981 #: ../fish/guestfish.pod:1090
20982 msgid "GUESTFISH COMMANDS"
20983 msgstr ""
20984
20985 #. type: textblock
20986 #: ../fish/guestfish.pod:1092
20987 msgid ""
20988 "The commands in this section are guestfish convenience commands, in other "
20989 "words, they are not part of the L<guestfs(3)> API."
20990 msgstr ""
20991
20992 #. type: =head2
20993 #: ../fish/guestfish.pod:1095
20994 msgid "help"
20995 msgstr "help"
20996
20997 #. type: verbatim
20998 #: ../fish/guestfish.pod:1097
20999 #, no-wrap
21000 msgid ""
21001 " help\n"
21002 " help cmd\n"
21003 "\n"
21004 msgstr ""
21005 " help\n"
21006 " help команда\n"
21007 "\n"
21008
21009 #. type: textblock
21010 #: ../fish/guestfish.pod:1100
21011 msgid "Without any parameter, this provides general help."
21012 msgstr "Без параметра показує загальну довідкову інформацію."
21013
21014 #. type: textblock
21015 #: ../fish/guestfish.pod:1102
21016 msgid "With a C<cmd> parameter, this displays detailed help for that command."
21017 msgstr ""
21018
21019 #. type: =head2
21020 #: ../fish/guestfish.pod:1104
21021 msgid "quit | exit"
21022 msgstr ""
21023
21024 #. type: textblock
21025 #: ../fish/guestfish.pod:1106
21026 msgid "This exits guestfish.  You can also use C<^D> key."
21027 msgstr ""
21028
21029 #. type: textblock
21030 #: ../fish/guestfish.pod:1108
21031 msgid "@FISH_COMMANDS@"
21032 msgstr ""
21033
21034 #. type: =head1
21035 #: ../fish/guestfish.pod:1110
21036 msgid "COMMANDS"
21037 msgstr "КОМАНДИ"
21038
21039 #. type: textblock
21040 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
21041 msgid "@ACTIONS@"
21042 msgstr "@ACTIONS@"
21043
21044 #. type: textblock
21045 #: ../fish/guestfish.pod:1116
21046 msgid ""
21047 "guestfish returns 0 if the commands completed without error, or 1 if there "
21048 "was an error."
21049 msgstr ""
21050
21051 #. type: =item
21052 #: ../fish/guestfish.pod:1123
21053 msgid "EDITOR"
21054 msgstr "РЕДАКТОР"
21055
21056 #. type: textblock
21057 #: ../fish/guestfish.pod:1125
21058 msgid ""
21059 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
21060 "C<vi>."
21061 msgstr ""
21062
21063 #. type: =item
21064 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
21065 msgid "FEBOOTSTRAP_KERNEL"
21066 msgstr ""
21067
21068 #. type: =item
21069 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
21070 msgid "FEBOOTSTRAP_MODULES"
21071 msgstr ""
21072
21073 #. type: textblock
21074 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
21075 msgid ""
21076 "These two environment variables allow the kernel that libguestfs uses in the "
21077 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
21078 "most recent host kernel is chosen.  For more information about kernel "
21079 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
21080 "available in febootstrap E<ge> 3.8."
21081 msgstr ""
21082
21083 #. type: =item
21084 #: ../fish/guestfish.pod:1138
21085 msgid "GUESTFISH_DISPLAY_IMAGE"
21086 msgstr ""
21087
21088 #. type: textblock
21089 #: ../fish/guestfish.pod:1140
21090 msgid ""
21091 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
21092 "If not set, it uses L<display(1)>."
21093 msgstr ""
21094
21095 #. type: =item
21096 #: ../fish/guestfish.pod:1143
21097 msgid "GUESTFISH_PID"
21098 msgstr ""
21099
21100 #. type: textblock
21101 #: ../fish/guestfish.pod:1145
21102 msgid ""
21103 "Used with the I<--remote> option to specify the remote guestfish process to "
21104 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
21105 msgstr ""
21106
21107 #. type: =item
21108 #: ../fish/guestfish.pod:1149
21109 msgid "HEXEDITOR"
21110 msgstr ""
21111
21112 #. type: textblock
21113 #: ../fish/guestfish.pod:1151
21114 msgid ""
21115 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
21116 "not specified, the external L<hexedit(1)> program is used."
21117 msgstr ""
21118
21119 #. type: =item
21120 #: ../fish/guestfish.pod:1155
21121 msgid "HOME"
21122 msgstr "ДОМІВКА"
21123
21124 #. type: textblock
21125 #: ../fish/guestfish.pod:1157
21126 msgid ""
21127 "If compiled with GNU readline support, various files in the home directory "
21128 "can be used.  See L</FILES>."
21129 msgstr ""
21130
21131 #. type: =item
21132 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
21133 msgid "LIBGUESTFS_APPEND"
21134 msgstr ""
21135
21136 #. type: textblock
21137 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
21138 msgid "Pass additional options to the guest kernel."
21139 msgstr ""
21140
21141 #. type: =item
21142 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
21143 msgid "LIBGUESTFS_DEBUG"
21144 msgstr "LIBGUESTFS_DEBUG"
21145
21146 #. type: textblock
21147 #: ../fish/guestfish.pod:1166
21148 msgid ""
21149 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
21150 "effect as using the B<-v> option."
21151 msgstr ""
21152
21153 #. type: =item
21154 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
21155 msgid "LIBGUESTFS_MEMSIZE"
21156 msgstr "LIBGUESTFS_MEMSIZE"
21157
21158 #. type: textblock
21159 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
21160 msgid ""
21161 "Set the memory allocated to the qemu process, in megabytes.  For example:"
21162 msgstr ""
21163
21164 #. type: verbatim
21165 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
21166 #, no-wrap
21167 msgid ""
21168 " LIBGUESTFS_MEMSIZE=700\n"
21169 "\n"
21170 msgstr ""
21171 " LIBGUESTFS_MEMSIZE=700\n"
21172 "\n"
21173
21174 #. type: =item
21175 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
21176 msgid "LIBGUESTFS_PATH"
21177 msgstr ""
21178
21179 #. type: textblock
21180 #: ../fish/guestfish.pod:1178
21181 msgid ""
21182 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21183 "the discussion of paths in L<guestfs(3)>."
21184 msgstr ""
21185
21186 #. type: =item
21187 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
21188 msgid "LIBGUESTFS_QEMU"
21189 msgstr ""
21190
21191 #. type: textblock
21192 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
21193 msgid ""
21194 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21195 "which was found at compile time by the configure script is used."
21196 msgstr ""
21197
21198 #. type: =item
21199 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
21200 msgid "LIBGUESTFS_TRACE"
21201 msgstr ""
21202
21203 #. type: textblock
21204 #: ../fish/guestfish.pod:1189
21205 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21206 msgstr ""
21207
21208 #. type: =item
21209 #: ../fish/guestfish.pod:1191
21210 msgid "PAGER"
21211 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21212
21213 #. type: textblock
21214 #: ../fish/guestfish.pod:1193
21215 msgid ""
21216 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21217 "C<more>."
21218 msgstr ""
21219
21220 #. type: =item
21221 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21222 #: ../src/guestfs.pod:3257
21223 msgid "TMPDIR"
21224 msgstr ""
21225
21226 #. type: textblock
21227 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
21228 msgid ""
21229 "Location of temporary directory, defaults to C</tmp> except for the cached "
21230 "supermin appliance which defaults to C</var/tmp>."
21231 msgstr ""
21232
21233 #. type: textblock
21234 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
21235 msgid ""
21236 "If libguestfs was compiled to use the supermin appliance then the real "
21237 "appliance is cached in this directory, shared between all handles belonging "
21238 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21239 "use in case C</var/tmp> is not large enough."
21240 msgstr ""
21241
21242 #. type: =head1
21243 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21244 #: ../rescue/virt-rescue.pod:273
21245 msgid "FILES"
21246 msgstr "ФАЙЛИ"
21247
21248 #. type: =item
21249 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21250 #: ../rescue/virt-rescue.pod:277
21251 msgid "$HOME/.libguestfs-tools.rc"
21252 msgstr ""
21253
21254 #. type: =item
21255 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21256 #: ../rescue/virt-rescue.pod:279
21257 msgid "/etc/libguestfs-tools.conf"
21258 msgstr ""
21259
21260 #. type: textblock
21261 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21262 #: ../rescue/virt-rescue.pod:281
21263 msgid ""
21264 "This configuration file controls the default read-only or read-write mode "
21265 "(I<--ro> or I<--rw>)."
21266 msgstr ""
21267
21268 #. type: textblock
21269 #: ../fish/guestfish.pod:1220
21270 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21271 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
21272
21273 #. type: =item
21274 #: ../fish/guestfish.pod:1222
21275 msgid "$HOME/.guestfish"
21276 msgstr ""
21277
21278 #. type: textblock
21279 #: ../fish/guestfish.pod:1224
21280 msgid ""
21281 "If compiled with GNU readline support, then the command history is saved in "
21282 "this file."
21283 msgstr ""
21284
21285 #. type: =item
21286 #: ../fish/guestfish.pod:1227
21287 msgid "$HOME/.inputrc"
21288 msgstr ""
21289
21290 #. type: =item
21291 #: ../fish/guestfish.pod:1229
21292 msgid "/etc/inputrc"
21293 msgstr ""
21294
21295 #. type: textblock
21296 #: ../fish/guestfish.pod:1231
21297 msgid ""
21298 "If compiled with GNU readline support, then these files can be used to "
21299 "configure readline.  For further information, please see L<readline(3)/"
21300 "INITIALIZATION FILE>."
21301 msgstr ""
21302
21303 #. type: textblock
21304 #: ../fish/guestfish.pod:1235
21305 msgid "To write rules which only apply to guestfish, use:"
21306 msgstr ""
21307
21308 #. type: verbatim
21309 #: ../fish/guestfish.pod:1237
21310 #, no-wrap
21311 msgid ""
21312 " $if guestfish\n"
21313 " ...\n"
21314 " $endif\n"
21315 "\n"
21316 msgstr ""
21317
21318 #. type: textblock
21319 #: ../fish/guestfish.pod:1241
21320 msgid ""
21321 "Variables that you can set in inputrc that change the behaviour of guestfish "
21322 "in useful ways include:"
21323 msgstr ""
21324
21325 #. type: =item
21326 #: ../fish/guestfish.pod:1246
21327 msgid "completion-ignore-case (default: on)"
21328 msgstr ""
21329
21330 #. type: textblock
21331 #: ../fish/guestfish.pod:1248
21332 msgid ""
21333 "By default, guestfish will ignore case when tab-completing paths on the "
21334 "disk.  Use:"
21335 msgstr ""
21336
21337 #. type: verbatim
21338 #: ../fish/guestfish.pod:1251
21339 #, no-wrap
21340 msgid ""
21341 " set completion-ignore-case off\n"
21342 "\n"
21343 msgstr ""
21344
21345 #. type: textblock
21346 #: ../fish/guestfish.pod:1253
21347 msgid "to make guestfish case sensitive."
21348 msgstr ""
21349
21350 #. type: =item
21351 #: ../fish/guestfish.pod:1257
21352 msgid "test1.img"
21353 msgstr ""
21354
21355 #. type: =item
21356 #: ../fish/guestfish.pod:1259
21357 msgid "test2.img (etc)"
21358 msgstr ""
21359
21360 #. type: textblock
21361 #: ../fish/guestfish.pod:1261
21362 msgid ""
21363 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21364 "will be created in the file C<test1.img> in the current directory.  The "
21365 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21366 "the same name will be overwritten."
21367 msgstr ""
21368
21369 #. type: textblock
21370 #: ../fish/guestfish.pod:1270
21371 msgid ""
21372 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21373 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21374 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21375 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21376 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21377 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21378 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21379 msgstr ""
21380
21381 #. type: textblock
21382 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354
21383 #: ../test-tool/libguestfs-test-tool.pod:112
21384 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21385 msgstr ""
21386
21387 #. type: textblock
21388 #: ../fish/virt-copy-in.pod:5
21389 msgid ""
21390 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21391 msgstr ""
21392
21393 #. type: verbatim
21394 #: ../fish/virt-copy-in.pod:9
21395 #, no-wrap
21396 msgid ""
21397 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21398 "\n"
21399 msgstr ""
21400
21401 #. type: verbatim
21402 #: ../fish/virt-copy-in.pod:11
21403 #, no-wrap
21404 msgid ""
21405 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21406 "\n"
21407 msgstr ""
21408
21409 #. type: textblock
21410 #: ../fish/virt-copy-in.pod:15
21411 msgid ""
21412 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21413 "causing disk corruption.  The virtual machine must be shut down before you "
21414 "use this command."
21415 msgstr ""
21416
21417 #. type: textblock
21418 #: ../fish/virt-copy-in.pod:21
21419 msgid ""
21420 "C<virt-copy-in> copies files and directories from the local disk into a "
21421 "virtual machine disk image or named libvirt domain."
21422 msgstr ""
21423
21424 #. type: textblock
21425 #: ../fish/virt-copy-in.pod:24
21426 msgid ""
21427 "You can give one of more filenames and directories on the command line.  "
21428 "Directories are copied in recursively.  The final parameter must be the "
21429 "destination directory in the disk image which must be an absolute path "
21430 "starting with a C</> character."
21431 msgstr ""
21432
21433 #. type: verbatim
21434 #: ../fish/virt-copy-in.pod:33
21435 #, no-wrap
21436 msgid ""
21437 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21438 "\n"
21439 msgstr ""
21440
21441 #. type: textblock
21442 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21443 msgid "Upload a home directory to a guest:"
21444 msgstr ""
21445
21446 #. type: verbatim
21447 #: ../fish/virt-copy-in.pod:37
21448 #, no-wrap
21449 msgid ""
21450 " virt-copy-in -d MyGuest skel /home\n"
21451 "\n"
21452 msgstr ""
21453
21454 #. type: =head1
21455 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21456 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21457 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21458 msgstr ""
21459
21460 #. type: textblock
21461 #: ../fish/virt-copy-in.pod:41
21462 msgid ""
21463 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21464 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
21465 "are probably better off using guestfish directly."
21466 msgstr ""
21467
21468 #. type: textblock
21469 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21470 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21471 msgid ""
21472 "Since the shell script just passes options straight to guestfish, read "
21473 "L<guestfish(1)> to see the full list of options."
21474 msgstr ""
21475
21476 #. type: textblock
21477 #: ../fish/virt-copy-in.pod:52
21478 msgid ""
21479 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21480 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21481 msgstr ""
21482
21483 #. type: textblock
21484 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21485 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21486 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21487 msgstr ""
21488
21489 #. type: textblock
21490 #: ../fish/virt-copy-out.pod:5
21491 msgid ""
21492 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21493 "image."
21494 msgstr ""
21495
21496 #. type: verbatim
21497 #: ../fish/virt-copy-out.pod:9
21498 #, no-wrap
21499 msgid ""
21500 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21501 "\n"
21502 msgstr ""
21503
21504 #. type: verbatim
21505 #: ../fish/virt-copy-out.pod:11
21506 #, no-wrap
21507 msgid ""
21508 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21509 "\n"
21510 msgstr ""
21511
21512 #. type: textblock
21513 #: ../fish/virt-copy-out.pod:15
21514 msgid ""
21515 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21516 "image or named libvirt domain."
21517 msgstr ""
21518
21519 #. type: textblock
21520 #: ../fish/virt-copy-out.pod:18
21521 msgid ""
21522 "You can give one of more filenames and directories on the command line.  "
21523 "Directories are copied out recursively."
21524 msgstr ""
21525
21526 #. type: textblock
21527 #: ../fish/virt-copy-out.pod:23
21528 msgid "Download the home directories from a virtual machine:"
21529 msgstr ""
21530
21531 #. type: verbatim
21532 #: ../fish/virt-copy-out.pod:25
21533 #, no-wrap
21534 msgid ""
21535 " mkdir homes\n"
21536 " virt-copy-out -d MyGuest /home homes\n"
21537 "\n"
21538 msgstr ""
21539
21540 #. type: textblock
21541 #: ../fish/virt-copy-out.pod:30
21542 msgid ""
21543 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21544 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
21545 "are probably better off using guestfish directly."
21546 msgstr ""
21547
21548 #. type: textblock
21549 #: ../fish/virt-copy-out.pod:41
21550 msgid ""
21551 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21552 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21553 msgstr ""
21554
21555 #. type: textblock
21556 #: ../fish/virt-tar-in.pod:5
21557 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21558 msgstr ""
21559
21560 #. type: verbatim
21561 #: ../fish/virt-tar-in.pod:9
21562 #, no-wrap
21563 msgid ""
21564 " virt-tar-in -a disk.img data.tar /destination\n"
21565 "\n"
21566 msgstr ""
21567
21568 #. type: verbatim
21569 #: ../fish/virt-tar-in.pod:11
21570 #, no-wrap
21571 msgid ""
21572 " virt-tar-in -d domain data.tar /destination\n"
21573 "\n"
21574 msgstr ""
21575
21576 #. type: verbatim
21577 #: ../fish/virt-tar-in.pod:13
21578 #, no-wrap
21579 msgid ""
21580 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21581 "\n"
21582 msgstr ""
21583
21584 #. type: textblock
21585 #: ../fish/virt-tar-in.pod:17
21586 msgid ""
21587 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21588 "causing disk corruption.  The virtual machine must be shut down before you "
21589 "use this command."
21590 msgstr ""
21591
21592 #. type: textblock
21593 #: ../fish/virt-tar-in.pod:23
21594 msgid ""
21595 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21596 "image or named libvirt domain."
21597 msgstr ""
21598
21599 #. type: textblock
21600 #: ../fish/virt-tar-in.pod:26
21601 msgid ""
21602 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21603 "standard input.  The second parameter is the absolute target directory to "
21604 "unpack into."
21605 msgstr ""
21606
21607 #. type: verbatim
21608 #: ../fish/virt-tar-in.pod:34
21609 #, no-wrap
21610 msgid ""
21611 " virt-tar-in -d MyGuest homes.tar /home\n"
21612 "\n"
21613 msgstr ""
21614
21615 #. type: textblock
21616 #: ../fish/virt-tar-in.pod:38
21617 msgid ""
21618 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21619 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
21620 "probably better off using guestfish directly."
21621 msgstr ""
21622
21623 #. type: textblock
21624 #: ../fish/virt-tar-in.pod:49
21625 msgid ""
21626 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21627 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21628 "org/>."
21629 msgstr ""
21630
21631 #. type: textblock
21632 #: ../fish/virt-tar-out.pod:5
21633 msgid ""
21634 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21635 msgstr ""
21636
21637 #. type: verbatim
21638 #: ../fish/virt-tar-out.pod:9
21639 #, no-wrap
21640 msgid ""
21641 " virt-tar-out -a disk.img /dir files.tar\n"
21642 "\n"
21643 msgstr ""
21644
21645 #. type: verbatim
21646 #: ../fish/virt-tar-out.pod:11
21647 #, no-wrap
21648 msgid ""
21649 " virt-tar-out -d domain /dir files.tar\n"
21650 "\n"
21651 msgstr ""
21652
21653 #. type: verbatim
21654 #: ../fish/virt-tar-out.pod:13
21655 #, no-wrap
21656 msgid ""
21657 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21658 "\n"
21659 msgstr ""
21660
21661 #. type: textblock
21662 #: ../fish/virt-tar-out.pod:17
21663 msgid ""
21664 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21665 msgstr ""
21666
21667 #. type: textblock
21668 #: ../fish/virt-tar-out.pod:20
21669 msgid ""
21670 "The first parameter is the absolute path of the virtual machine directory.  "
21671 "The second parameter is the tar file to write.  Use C<-> to write to "
21672 "standard output."
21673 msgstr ""
21674
21675 #. type: textblock
21676 #: ../fish/virt-tar-out.pod:26
21677 msgid "Download the home directories from a guest:"
21678 msgstr ""
21679
21680 #. type: verbatim
21681 #: ../fish/virt-tar-out.pod:28
21682 #, no-wrap
21683 msgid ""
21684 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21685 "\n"
21686 msgstr ""
21687
21688 #. type: textblock
21689 #: ../fish/virt-tar-out.pod:32
21690 msgid ""
21691 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21692 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
21693 "are probably better off using guestfish directly."
21694 msgstr ""
21695
21696 #. type: textblock
21697 #: ../fish/virt-tar-out.pod:43
21698 msgid ""
21699 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21700 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21701 msgstr ""
21702
21703 #. type: textblock
21704 #: ../fuse/guestmount.pod:5
21705 msgid ""
21706 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21707 msgstr ""
21708
21709 #. type: verbatim
21710 #: ../fuse/guestmount.pod:9
21711 #, no-wrap
21712 msgid ""
21713 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21714 "\n"
21715 msgstr ""
21716
21717 #. type: verbatim
21718 #: ../fuse/guestmount.pod:11
21719 #, no-wrap
21720 msgid ""
21721 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21722 "\n"
21723 msgstr ""
21724
21725 #. type: verbatim
21726 #: ../fuse/guestmount.pod:13
21727 #, no-wrap
21728 msgid ""
21729 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21730 "\n"
21731 msgstr ""
21732
21733 #. type: textblock
21734 #: ../fuse/guestmount.pod:17
21735 msgid ""
21736 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21737 "machines.  If you do this, you risk disk corruption in the VM."
21738 msgstr ""
21739
21740 #. type: textblock
21741 #: ../fuse/guestmount.pod:22
21742 msgid ""
21743 "The guestmount program can be used to mount virtual machine filesystems and "
21744 "other disk images on the host.  It uses libguestfs for access to the guest "
21745 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21746 "a mountable device."
21747 msgstr ""
21748
21749 #. type: textblock
21750 #: ../fuse/guestmount.pod:27
21751 msgid ""
21752 "Along with other options, you have to give at least one device (I<-a> "
21753 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21754 "option) or use the I<-i> inspection option.  How this works is better "
21755 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
21756 "below."
21757 msgstr ""
21758
21759 #. type: textblock
21760 #: ../fuse/guestmount.pod:33
21761 msgid ""
21762 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21763 "by you, and the filesystem will not be visible to any other users unless you "
21764 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21765 "the filesystem, use the C<fusermount -u> command."
21766 msgstr ""
21767
21768 #. type: textblock
21769 #: ../fuse/guestmount.pod:41
21770 msgid ""
21771 "For a typical Windows guest which has its main filesystem on the first "
21772 "partition:"
21773 msgstr ""
21774
21775 #. type: verbatim
21776 #: ../fuse/guestmount.pod:44
21777 #, no-wrap
21778 msgid ""
21779 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21780 "\n"
21781 msgstr ""
21782
21783 #. type: textblock
21784 #: ../fuse/guestmount.pod:46
21785 msgid ""
21786 "For a typical Linux guest which has a /boot filesystem on the first "
21787 "partition, and the root filesystem on a logical volume:"
21788 msgstr ""
21789
21790 #. type: verbatim
21791 #: ../fuse/guestmount.pod:49
21792 #, no-wrap
21793 msgid ""
21794 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21795 "\n"
21796 msgstr ""
21797
21798 #. type: textblock
21799 #: ../fuse/guestmount.pod:51
21800 msgid "To get libguestfs to detect guest mountpoints for you:"
21801 msgstr ""
21802
21803 #. type: verbatim
21804 #: ../fuse/guestmount.pod:53
21805 #, no-wrap
21806 msgid ""
21807 " guestmount -a guest.img -i --ro /mnt\n"
21808 "\n"
21809 msgstr ""
21810
21811 #. type: textblock
21812 #: ../fuse/guestmount.pod:55
21813 msgid "For a libvirt guest called \"Guest\" you could do:"
21814 msgstr ""
21815
21816 #. type: verbatim
21817 #: ../fuse/guestmount.pod:57
21818 #, no-wrap
21819 msgid ""
21820 " guestmount -d Guest -i --ro /mnt\n"
21821 "\n"
21822 msgstr ""
21823
21824 #. type: textblock
21825 #: ../fuse/guestmount.pod:59
21826 msgid ""
21827 "If you don't know what filesystems are contained in a guest or disk image, "
21828 "use L<virt-filesystems(1)> first:"
21829 msgstr ""
21830
21831 #. type: verbatim
21832 #: ../fuse/guestmount.pod:62
21833 #, no-wrap
21834 msgid ""
21835 " virt-filesystems MyGuest\n"
21836 "\n"
21837 msgstr ""
21838
21839 #. type: textblock
21840 #: ../fuse/guestmount.pod:64
21841 msgid ""
21842 "If you want to trace the libguestfs calls but without excessive debugging "
21843 "information, we recommend:"
21844 msgstr ""
21845
21846 #. type: verbatim
21847 #: ../fuse/guestmount.pod:67
21848 #, no-wrap
21849 msgid ""
21850 " guestmount [...] --trace /mnt\n"
21851 "\n"
21852 msgstr ""
21853
21854 #. type: textblock
21855 #: ../fuse/guestmount.pod:69
21856 msgid "If you want to debug the program, we recommend:"
21857 msgstr ""
21858
21859 #. type: verbatim
21860 #: ../fuse/guestmount.pod:71
21861 #, no-wrap
21862 msgid ""
21863 " guestmount [...] --trace --verbose /mnt\n"
21864 "\n"
21865 msgstr ""
21866
21867 #. type: =head1
21868 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21869 #: ../resize/virt-resize.pod:621
21870 msgid "NOTES"
21871 msgstr "ПРИМІТКИ"
21872
21873 #. type: =head2
21874 #: ../fuse/guestmount.pod:75
21875 msgid "Other users cannot see the filesystem by default"
21876 msgstr ""
21877
21878 #. type: textblock
21879 #: ../fuse/guestmount.pod:77
21880 msgid ""
21881 "If you mount a filesystem as one user (eg. root), then other users will not "
21882 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21883 "option when mounting:"
21884 msgstr ""
21885
21886 #. type: verbatim
21887 #: ../fuse/guestmount.pod:81
21888 #, no-wrap
21889 msgid ""
21890 " sudo guestmount [...] -o allow_other /mnt\n"
21891 "\n"
21892 msgstr ""
21893
21894 #. type: =head2
21895 #: ../fuse/guestmount.pod:83
21896 msgid "Enabling FUSE"
21897 msgstr ""
21898
21899 #. type: textblock
21900 #: ../fuse/guestmount.pod:85
21901 msgid ""
21902 "On some distros, you may need to add yourself to a special group (eg. "
21903 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21904 "Debian and derivatives."
21905 msgstr ""
21906
21907 #. type: textblock
21908 #: ../fuse/guestmount.pod:89
21909 msgid ""
21910 "On other distros, no special group is required.  It is not necessary on "
21911 "Fedora or Red Hat Enterprise Linux."
21912 msgstr ""
21913
21914 #. type: textblock
21915 #: ../fuse/guestmount.pod:100
21916 msgid "Add a block device or virtual machine image."
21917 msgstr ""
21918
21919 #. type: =item
21920 #: ../fuse/guestmount.pod:123
21921 msgid "B<--dir-cache-timeout N>"
21922 msgstr "B<--dir-cache-timeout N>"
21923
21924 #. type: textblock
21925 #: ../fuse/guestmount.pod:125
21926 msgid ""
21927 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21928 "seconds.  The readdir cache [actually, there are several semi-independent "
21929 "caches] is populated after a readdir(2) call with the stat and extended "
21930 "attributes of the files in the directory, in anticipation that they will be "
21931 "requested soon after."
21932 msgstr ""
21933
21934 #. type: textblock
21935 #: ../fuse/guestmount.pod:131
21936 msgid ""
21937 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21938 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21939 "requests, only cache existing ones."
21940 msgstr ""
21941
21942 #. type: textblock
21943 #: ../fuse/guestmount.pod:151
21944 msgid ""
21945 "If you have untrusted raw-format guest disk images, you should use this "
21946 "option to specify the disk format.  This avoids a possible security problem "
21947 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
21948 "guestfs_add_drive_opts>."
21949 msgstr ""
21950
21951 #. type: =item
21952 #: ../fuse/guestmount.pod:156
21953 msgid "B<--fuse-help>"
21954 msgstr "B<--fuse-help>"
21955
21956 #. type: textblock
21957 #: ../fuse/guestmount.pod:158
21958 msgid "Display help on special FUSE options (see I<-o> below)."
21959 msgstr ""
21960
21961 #. type: textblock
21962 #: ../fuse/guestmount.pod:162
21963 msgid "Display brief help and exit."
21964 msgstr ""
21965
21966 #. type: textblock
21967 #: ../fuse/guestmount.pod:186
21968 msgid ""
21969 "Mount the named partition or logical volume on the given mountpoint B<in the "
21970 "guest> (this has nothing to do with mountpoints in the host)."
21971 msgstr ""
21972
21973 #. type: textblock
21974 #: ../fuse/guestmount.pod:189
21975 msgid ""
21976 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21977 "something on C</>."
21978 msgstr ""
21979
21980 #. type: textblock
21981 #: ../fuse/guestmount.pod:206
21982 msgid ""
21983 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21984 "unmounted.  If you specify this option, then we don't attempt to sync the "
21985 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21986 msgstr ""
21987
21988 #. type: =item
21989 #: ../fuse/guestmount.pod:211
21990 msgid "B<-o option>"
21991 msgstr "B<-o параметр>"
21992
21993 #. type: =item
21994 #: ../fuse/guestmount.pod:213
21995 msgid "B<--option option>"
21996 msgstr "B<--option параметр>"
21997
21998 #. type: textblock
21999 #: ../fuse/guestmount.pod:215
22000 msgid "Pass extra options to FUSE."
22001 msgstr ""
22002
22003 #. type: textblock
22004 #: ../fuse/guestmount.pod:217
22005 msgid ""
22006 "To get a list of all the extra options supported by FUSE, use the command "
22007 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
22008 "of them are a good idea."
22009 msgstr ""
22010
22011 #. type: verbatim
22012 #: ../fuse/guestmount.pod:221
22013 #, no-wrap
22014 msgid ""
22015 " guestmount --fuse-help\n"
22016 "\n"
22017 msgstr ""
22018
22019 #. type: textblock
22020 #: ../fuse/guestmount.pod:223
22021 msgid "Some potentially useful FUSE options:"
22022 msgstr ""
22023
22024 #. type: =item
22025 #: ../fuse/guestmount.pod:227
22026 msgid "B<-o allow_other>"
22027 msgstr ""
22028
22029 #. type: textblock
22030 #: ../fuse/guestmount.pod:229
22031 msgid "Allow other users to see the filesystem."
22032 msgstr ""
22033
22034 #. type: =item
22035 #: ../fuse/guestmount.pod:231
22036 msgid "B<-o attr_timeout=N>"
22037 msgstr "B<-o attr_timeout=N>"
22038
22039 #. type: textblock
22040 #: ../fuse/guestmount.pod:233
22041 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
22042 msgstr ""
22043
22044 #. type: =item
22045 #: ../fuse/guestmount.pod:235
22046 msgid "B<-o kernel_cache>"
22047 msgstr ""
22048
22049 #. type: textblock
22050 #: ../fuse/guestmount.pod:237
22051 msgid ""
22052 "Allow the kernel to cache files (reduces the number of reads that have to go "
22053 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
22054 "afford the extra memory usage."
22055 msgstr ""
22056
22057 #. type: =item
22058 #: ../fuse/guestmount.pod:241
22059 msgid "B<-o uid=N> B<-o gid=N>"
22060 msgstr "B<-o uid=N> B<-o gid=N>"
22061
22062 #. type: textblock
22063 #: ../fuse/guestmount.pod:243
22064 msgid ""
22065 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
22066 "the chosen values."
22067 msgstr ""
22068
22069 #. type: textblock
22070 #: ../fuse/guestmount.pod:252
22071 msgid ""
22072 "Add devices and mount everything read-only.  Also disallow writes and make "
22073 "the disk appear read-only to FUSE."
22074 msgstr ""
22075
22076 #. type: textblock
22077 #: ../fuse/guestmount.pod:255
22078 msgid ""
22079 "This is highly recommended if you are not going to edit the guest disk.  If "
22080 "the guest is running and this option is I<not> supplied, then there is a "
22081 "strong risk of disk corruption in the guest.  We try to prevent this from "
22082 "happening, but it is not always possible."
22083 msgstr ""
22084
22085 #. type: textblock
22086 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
22087 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22088 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22089
22090 #. type: textblock
22091 #: ../fuse/guestmount.pod:264
22092 msgid "Enable SELinux support for the guest."
22093 msgstr ""
22094
22095 #. type: textblock
22096 #: ../fuse/guestmount.pod:270
22097 msgid "Enable verbose messages from underlying libguestfs."
22098 msgstr ""
22099
22100 #. type: textblock
22101 #: ../fuse/guestmount.pod:276
22102 msgid "Display the program version and exit."
22103 msgstr ""
22104
22105 #. type: textblock
22106 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
22107 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
22108 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22109 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
22110
22111 #. type: =item
22112 #: ../fuse/guestmount.pod:289
22113 msgid "B<--trace>"
22114 msgstr "B<--trace>"
22115
22116 #. type: textblock
22117 #: ../fuse/guestmount.pod:291
22118 msgid "Trace libguestfs calls and entry into each FUSE function."
22119 msgstr ""
22120
22121 #. type: textblock
22122 #: ../fuse/guestmount.pod:293
22123 msgid "This also stops the daemon from forking into the background."
22124 msgstr ""
22125
22126 #. type: textblock
22127 #: ../fuse/guestmount.pod:319
22128 msgid ""
22129 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22130 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22131 "net/>."
22132 msgstr ""
22133 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22134 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
22135 "net/>."
22136
22137 #. type: textblock
22138 #: ../fuse/guestmount.pod:334
22139 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
22140 msgstr ""
22141
22142 #. type: textblock
22143 #: ../inspector/virt-inspector.pod:5
22144 msgid ""
22145 "virt-inspector - Display operating system version and other information "
22146 "about a virtual machine"
22147 msgstr ""
22148
22149 #. type: verbatim
22150 #: ../inspector/virt-inspector.pod:9
22151 #, no-wrap
22152 msgid ""
22153 " virt-inspector [--options] -d domname\n"
22154 "\n"
22155 msgstr ""
22156
22157 #. type: verbatim
22158 #: ../inspector/virt-inspector.pod:11
22159 #, no-wrap
22160 msgid ""
22161 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
22162 "\n"
22163 msgstr ""
22164
22165 #. type: verbatim
22166 #: ../inspector/virt-inspector.pod:15
22167 #, no-wrap
22168 msgid ""
22169 " virt-inspector domname\n"
22170 "\n"
22171 msgstr ""
22172
22173 #. type: verbatim
22174 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
22175 #, no-wrap
22176 msgid ""
22177 " virt-inspector disk.img [disk.img ...]\n"
22178 "\n"
22179 msgstr ""
22180
22181 #. type: textblock
22182 #: ../inspector/virt-inspector.pod:21
22183 msgid ""
22184 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22185 "determine the version of the operating system and other information about "
22186 "the virtual machine."
22187 msgstr ""
22188
22189 #. type: textblock
22190 #: ../inspector/virt-inspector.pod:25
22191 msgid "Virt-inspector produces XML output for feeding into other programs."
22192 msgstr ""
22193
22194 #. type: textblock
22195 #: ../inspector/virt-inspector.pod:27
22196 msgid ""
22197 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22198 "the libvirt domain (see: C<virsh list --all>)."
22199 msgstr ""
22200
22201 #. type: textblock
22202 #: ../inspector/virt-inspector.pod:30
22203 msgid ""
22204 "You can also run virt-inspector directly on disk images from a single "
22205 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22206 "has several block devices, in which case you should list several I<-a> "
22207 "options one after another, with the first corresponding to the guest's C</"
22208 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22209 msgstr ""
22210
22211 #. type: textblock
22212 #: ../inspector/virt-inspector.pod:37
22213 msgid ""
22214 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22215 "keys and similar."
22216 msgstr ""
22217
22218 #. type: textblock
22219 #: ../inspector/virt-inspector.pod:40
22220 msgid ""
22221 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22222 "inspect several virtual machines, you have to run virt-inspector several "
22223 "times (for example, from a shell script for-loop)."
22224 msgstr ""
22225
22226 #. type: textblock
22227 #: ../inspector/virt-inspector.pod:45
22228 msgid ""
22229 "Because virt-inspector needs direct access to guest images, it won't "
22230 "normally work over remote libvirt connections."
22231 msgstr ""
22232
22233 #. type: textblock
22234 #: ../inspector/virt-inspector.pod:48
22235 msgid ""
22236 "All of the information available from virt-inspector is also available "
22237 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22238 "The same information can also be fetched using guestfish or via libguestfs "
22239 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22240 "WITH OTHER PROGRAMMING LANGUAGES>)."
22241 msgstr ""
22242
22243 #. type: textblock
22244 #: ../inspector/virt-inspector.pod:81
22245 msgid ""
22246 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22247 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22248 "at all."
22249 msgstr ""
22250
22251 #. type: textblock
22252 #: ../inspector/virt-inspector.pod:94
22253 msgid ""
22254 "When prompting for keys and passphrases, virt-inspector normally turns "
22255 "echoing off so you cannot see what you are typing.  If you are not worried "
22256 "about Tempest attacks and there is no one else in the room you can specify "
22257 "this flag to see what you are typing."
22258 msgstr ""
22259
22260 #. type: textblock
22261 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22262 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22263 #: ../tools/virt-win-reg.pl:144
22264 msgid ""
22265 "Specify the format of disk images given on the command line.  If this is "
22266 "omitted then the format is autodetected from the content of the disk image."
22267 msgstr ""
22268
22269 #. type: textblock
22270 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22271 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22272 #: ../tools/virt-win-reg.pl:148
22273 msgid ""
22274 "If disk images are requested from libvirt, then this program asks libvirt "
22275 "for this information.  In this case, the value of the format parameter is "
22276 "ignored."
22277 msgstr ""
22278
22279 #. type: textblock
22280 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
22281 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:132
22282 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22283 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22284 msgid ""
22285 "If working with untrusted raw-format guest disk images, you should ensure "
22286 "the format is always specified."
22287 msgstr ""
22288
22289 #. type: textblock
22290 #: ../inspector/virt-inspector.pod:139
22291 msgid "Previous versions of virt-inspector allowed you to write either:"
22292 msgstr ""
22293
22294 #. type: verbatim
22295 #: ../inspector/virt-inspector.pod:145
22296 #, no-wrap
22297 msgid ""
22298 " virt-inspector guestname\n"
22299 "\n"
22300 msgstr ""
22301
22302 #. type: =head1
22303 #: ../inspector/virt-inspector.pod:153
22304 msgid "XML FORMAT"
22305 msgstr ""
22306
22307 #. type: textblock
22308 #: ../inspector/virt-inspector.pod:155
22309 msgid ""
22310 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22311 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22312 "just an overview."
22313 msgstr ""
22314
22315 #. type: textblock
22316 #: ../inspector/virt-inspector.pod:159
22317 msgid ""
22318 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22319 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22320 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22321 "which is vanishingly rare in real world VMs."
22322 msgstr ""
22323
22324 #. type: =head2
22325 #: ../inspector/virt-inspector.pod:164
22326 msgid "E<lt>operatingsystemE<gt>"
22327 msgstr ""
22328
22329 #. type: textblock
22330 #: ../inspector/virt-inspector.pod:166
22331 msgid ""
22332 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22333 "describe the operating system, its architecture, the descriptive \"product "
22334 "name\" string, the type of OS and so on, as in this example:"
22335 msgstr ""
22336
22337 #. type: verbatim
22338 #: ../inspector/virt-inspector.pod:170
22339 #, no-wrap
22340 msgid ""
22341 " <operatingsystems>\n"
22342 "   <operatingsystem>\n"
22343 "     <root>/dev/sda2</root>\n"
22344 "     <name>windows</name>\n"
22345 "     <arch>i386</arch>\n"
22346 "     <distro>windows</distro>\n"
22347 "     <product_name>Windows 7 Enterprise</product_name>\n"
22348 "     <product_variant>Client</product_variant>\n"
22349 "     <major_version>6</major_version>\n"
22350 "     <minor_version>1</minor_version>\n"
22351 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22352 "     <format>installed</format>\n"
22353 "\n"
22354 msgstr ""
22355
22356 #. type: textblock
22357 #: ../inspector/virt-inspector.pod:183
22358 msgid ""
22359 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22360 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22361 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22362 "architecture.  The other fields are fairly self-explanatory, but because "
22363 "these fields are taken directly from the libguestfs inspection API you can "
22364 "find precise information from L<guestfs(3)/INSPECTION>."
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../inspector/virt-inspector.pod:191
22369 msgid ""
22370 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22371 "of view of libguestfs (block devices may have completely different names "
22372 "inside the VM itself)."
22373 msgstr ""
22374
22375 #. type: =head2
22376 #: ../inspector/virt-inspector.pod:195
22377 msgid "E<lt>mountpointsE<gt>"
22378 msgstr ""
22379
22380 #. type: textblock
22381 #: ../inspector/virt-inspector.pod:197
22382 msgid ""
22383 "Un*x-like guests typically have multiple filesystems which are mounted at "
22384 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22385 "element which looks like this:"
22386 msgstr ""
22387
22388 #. type: verbatim
22389 #: ../inspector/virt-inspector.pod:201
22390 #, no-wrap
22391 msgid ""
22392 " <operatingsystems>\n"
22393 "   <operatingsystem>\n"
22394 "     ...\n"
22395 "     <mountpoints>\n"
22396 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22397 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22398 "     </mountpoints>\n"
22399 "\n"
22400 msgstr ""
22401
22402 #. type: textblock
22403 #: ../inspector/virt-inspector.pod:209
22404 msgid ""
22405 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22406 "and may have completely different names inside the guest.  Only mountable "
22407 "filesystems appear in this list, not things like swap devices."
22408 msgstr ""
22409
22410 #. type: =head2
22411 #: ../inspector/virt-inspector.pod:214
22412 msgid "E<lt>filesystemsE<gt>"
22413 msgstr ""
22414
22415 #. type: textblock
22416 #: ../inspector/virt-inspector.pod:216
22417 msgid ""
22418 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22419 "filesystems belonging to the guest, including swap and empty partitions.  "
22420 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22421 "this OS or shared with this OS and other OSes)."
22422 msgstr ""
22423
22424 #. type: textblock
22425 #: ../inspector/virt-inspector.pod:222
22426 msgid "You might see something like this:"
22427 msgstr ""
22428
22429 #. type: verbatim
22430 #: ../inspector/virt-inspector.pod:224
22431 #, no-wrap
22432 msgid ""
22433 " <operatingsystems>\n"
22434 "   <operatingsystem>\n"
22435 "     ...\n"
22436 "     <filesystems>\n"
22437 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22438 "         <type>ext4</type>\n"
22439 "         <label>Fedora-13-x86_64</label>\n"
22440 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22441 "       </filesystem>\n"
22442 "\n"
22443 msgstr ""
22444
22445 #. type: textblock
22446 #: ../inspector/virt-inspector.pod:234
22447 msgid ""
22448 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22449 "the label, and the UUID."
22450 msgstr ""
22451
22452 #. type: =head2
22453 #: ../inspector/virt-inspector.pod:237
22454 msgid "E<lt>applicationsE<gt>"
22455 msgstr ""
22456
22457 #. type: textblock
22458 #: ../inspector/virt-inspector.pod:239
22459 msgid ""
22460 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22461 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22462 "machine."
22463 msgstr ""
22464
22465 #. type: textblock
22466 #: ../inspector/virt-inspector.pod:243
22467 msgid ""
22468 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22469 "Typical values would be C<rpm> and C<deb>."
22470 msgstr ""
22471
22472 #. type: textblock
22473 #: ../inspector/virt-inspector.pod:246
22474 msgid ""
22475 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22476 "Typical values include C<yum>, C<up2date> and C<apt>"
22477 msgstr ""
22478
22479 #. type: textblock
22480 #: ../inspector/virt-inspector.pod:249
22481 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22482 msgstr ""
22483
22484 #. type: verbatim
22485 #: ../inspector/virt-inspector.pod:252
22486 #, no-wrap
22487 msgid ""
22488 " <operatingsystems>\n"
22489 "   <operatingsystem>\n"
22490 "     ...\n"
22491 "     <applications>\n"
22492 "       <application>\n"
22493 "         <name>coreutils</name>\n"
22494 "         <version>8.5</version>\n"
22495 "         <release>1</release>\n"
22496 "       </application>\n"
22497 "\n"
22498 msgstr ""
22499
22500 #. type: textblock
22501 #: ../inspector/virt-inspector.pod:262
22502 msgid ""
22503 "The version and release fields may not be available for some types guests.  "
22504 "Other fields are possible, see L<guestfs(3)/"
22505 "guestfs_inspect_list_applications>."
22506 msgstr ""
22507
22508 #. type: =head2
22509 #: ../inspector/virt-inspector.pod:266
22510 msgid "E<lt>drive_mappingsE<gt>"
22511 msgstr ""
22512
22513 #. type: textblock
22514 #: ../inspector/virt-inspector.pod:268
22515 msgid ""
22516 "For operating systems like Windows which use drive letters, virt-inspector "
22517 "is able to find out how drive letters map to filesystems."
22518 msgstr ""
22519
22520 #. type: verbatim
22521 #: ../inspector/virt-inspector.pod:272
22522 #, no-wrap
22523 msgid ""
22524 " <operatingsystems>\n"
22525 "   <operatingsystem>\n"
22526 "     ...\n"
22527 "     <drive_mappings>\n"
22528 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22529 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22530 "     </drive_mappings>\n"
22531 "\n"
22532 msgstr ""
22533
22534 #. type: textblock
22535 #: ../inspector/virt-inspector.pod:280
22536 msgid ""
22537 "In the example above, drive C maps to the filesystem on the second partition "
22538 "on the first disk, and drive E maps to the filesystem on the first partition "
22539 "on the second disk."
22540 msgstr ""
22541
22542 #. type: textblock
22543 #: ../inspector/virt-inspector.pod:284
22544 msgid ""
22545 "Note that this only covers permanent local filesystem mappings, not things "
22546 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22547 "here."
22548 msgstr ""
22549
22550 #. type: =head2
22551 #: ../inspector/virt-inspector.pod:288
22552 msgid "E<lt>iconE<gt>"
22553 msgstr ""
22554
22555 #. type: textblock
22556 #: ../inspector/virt-inspector.pod:290
22557 msgid ""
22558 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22559 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22560 "very large and high quality."
22561 msgstr ""
22562
22563 #. type: verbatim
22564 #: ../inspector/virt-inspector.pod:294
22565 #, no-wrap
22566 msgid ""
22567 " <operatingsystems>\n"
22568 "   <operatingsystem>\n"
22569 "     ...\n"
22570 "     <icon>\n"
22571 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22572 "       [... many lines of base64 data ...]\n"
22573 "     </icon>\n"
22574 "\n"
22575 msgstr ""
22576
22577 #. type: textblock
22578 #: ../inspector/virt-inspector.pod:302
22579 msgid ""
22580 "To display the icon, you have to extract it and convert the base64 data back "
22581 "to a binary file.  Use an XPath query or simply an editor to extract the "
22582 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22583 "to a PNG file:"
22584 msgstr ""
22585
22586 #. type: verbatim
22587 #: ../inspector/virt-inspector.pod:307
22588 #, no-wrap
22589 msgid ""
22590 " base64 -i -d < icon.data > icon.png\n"
22591 "\n"
22592 msgstr ""
22593
22594 #. type: =head2
22595 #: ../inspector/virt-inspector.pod:309
22596 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22597 msgstr ""
22598
22599 #. type: textblock
22600 #: ../inspector/virt-inspector.pod:311
22601 msgid ""
22602 "Virt-inspector can detect some operating system installers on install disks, "
22603 "live CDs, bootable USB keys and more."
22604 msgstr ""
22605
22606 #. type: textblock
22607 #: ../inspector/virt-inspector.pod:314
22608 msgid ""
22609 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22610 "fields may be present to indicate a live CD, network installer, or one part "
22611 "of a multipart CD.  For example:"
22612 msgstr ""
22613
22614 #. type: verbatim
22615 #: ../inspector/virt-inspector.pod:318
22616 #, no-wrap
22617 msgid ""
22618 " <operatingsystems>\n"
22619 "   <operatingsystem>\n"
22620 "     <root>/dev/sda</root>\n"
22621 "     <name>linux</name>\n"
22622 "     <arch>i386</arch>\n"
22623 "     <distro>ubuntu</distro>\n"
22624 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
22625 "     <major_version>10</major_version>\n"
22626 "     <minor_version>10</minor_version>\n"
22627 "     <format>installer</format>\n"
22628 "     <live/>\n"
22629 "\n"
22630 msgstr ""
22631
22632 #. type: =head1
22633 #: ../inspector/virt-inspector.pod:330
22634 msgid "USING XPATH"
22635 msgstr ""
22636
22637 #. type: textblock
22638 #: ../inspector/virt-inspector.pod:332
22639 msgid ""
22640 "You can use the XPath query language to select parts of the XML.  We "
22641 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
22642 msgstr ""
22643
22644 #. type: verbatim
22645 #: ../inspector/virt-inspector.pod:338
22646 #, no-wrap
22647 msgid ""
22648 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22649 " <filesystems>\n"
22650 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22651 "        <type>ext4</type>\n"
22652 " [...]\n"
22653 "\n"
22654 msgstr ""
22655
22656 #. type: verbatim
22657 #: ../inspector/virt-inspector.pod:344
22658 #, no-wrap
22659 msgid ""
22660 " $ virt-inspector -d Guest | \\\n"
22661 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22662 " ext4\n"
22663 "\n"
22664 msgstr ""
22665
22666 #. type: verbatim
22667 #: ../inspector/virt-inspector.pod:348
22668 #, no-wrap
22669 msgid ""
22670 " $ virt-inspector -d Guest | \\\n"
22671 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22672 " [displays the guest icon, if there is one]\n"
22673 "\n"
22674 msgstr ""
22675
22676 #. type: =head1
22677 #: ../inspector/virt-inspector.pod:359
22678 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22679 msgstr ""
22680
22681 #. type: textblock
22682 #: ../inspector/virt-inspector.pod:361
22683 msgid ""
22684 "Early versions of libguestfs shipped with a different virt-inspector program "
22685 "written in Perl (the current version is written in C).  The XML output of "
22686 "the Perl virt-inspector was different and it could also output in other "
22687 "formats like text."
22688 msgstr ""
22689
22690 #. type: textblock
22691 #: ../inspector/virt-inspector.pod:366
22692 msgid ""
22693 "The old virt-inspector is no longer supported or shipped with libguestfs."
22694 msgstr ""
22695
22696 #. type: textblock
22697 #: ../inspector/virt-inspector.pod:369
22698 msgid ""
22699 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22700 "versions of virt-inspector with different names:"
22701 msgstr ""
22702
22703 #. type: verbatim
22704 #: ../inspector/virt-inspector.pod:372
22705 #, no-wrap
22706 msgid ""
22707 " virt-inspector     Old Perl version.\n"
22708 " virt-inspector2    New C version.\n"
22709 "\n"
22710 msgstr ""
22711
22712 #. type: textblock
22713 #: ../inspector/virt-inspector.pod:382
22714 msgid ""
22715 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22716 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22717 msgstr ""
22718
22719 #. type: textblock
22720 #: ../inspector/virt-inspector.pod:399
22721 msgid "Matthew Booth L<mbooth@redhat.com>"
22722 msgstr ""
22723
22724 #. type: textblock
22725 #: ../java/examples/guestfs-java.pod:5
22726 msgid "guestfs-java - How to use libguestfs from Java"
22727 msgstr ""
22728
22729 #. type: verbatim
22730 #: ../java/examples/guestfs-java.pod:9
22731 #, no-wrap
22732 msgid ""
22733 " import com.redhat.et.libguestfs.*;\n"
22734 " \n"
22735 msgstr ""
22736
22737 #. type: verbatim
22738 #: ../java/examples/guestfs-java.pod:11
22739 #, no-wrap
22740 msgid ""
22741 " GuestFS g = new GuestFS ();\n"
22742 " g.add_drive_opts (\"disk.img\", null);\n"
22743 " g.launch ();\n"
22744 "\n"
22745 msgstr ""
22746
22747 #. type: textblock
22748 #: ../java/examples/guestfs-java.pod:17
22749 msgid ""
22750 "This manual page documents how to call libguestfs from the Java programming "
22751 "language.  This page just documents the differences from the C API and gives "
22752 "some examples.  If you are not familiar with using libguestfs, you also need "
22753 "to read L<guestfs(3)>."
22754 msgstr ""
22755
22756 #. type: =head2
22757 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22758 msgid "CLOSING THE HANDLE"
22759 msgstr ""
22760
22761 #. type: textblock
22762 #: ../java/examples/guestfs-java.pod:24
22763 msgid ""
22764 "The handle is closed when it is reaped by the garbage collector.  Because "
22765 "libguestfs handles include a lot of state, it is also possible to close (and "
22766 "hence free) them explicitly by calling the C<close> method."
22767 msgstr ""
22768
22769 #. type: =head2
22770 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22771 #: ../python/examples/guestfs-python.pod:21
22772 #: ../ruby/examples/guestfs-ruby.pod:22
22773 msgid "EXCEPTIONS"
22774 msgstr "ВИНЯТКИ"
22775
22776 #. type: textblock
22777 #: ../java/examples/guestfs-java.pod:31
22778 msgid ""
22779 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22780 "exception.  This has a single parameter which is the error message (a "
22781 "C<String>)."
22782 msgstr ""
22783
22784 #. type: textblock
22785 #: ../java/examples/guestfs-java.pod:35
22786 msgid "Calling any method on a closed handle raises the same exception."
22787 msgstr ""
22788
22789 #. type: textblock
22790 #: ../java/examples/guestfs-java.pod:47
22791 msgid ""
22792 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22793 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22794 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22795 msgstr ""
22796
22797 #. type: textblock
22798 #: ../ocaml/examples/guestfs-ocaml.pod:5
22799 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22800 msgstr ""
22801
22802 #. type: textblock
22803 #: ../ocaml/examples/guestfs-ocaml.pod:9
22804 msgid "Module style:"
22805 msgstr ""
22806
22807 #. type: verbatim
22808 #: ../ocaml/examples/guestfs-ocaml.pod:11
22809 #, no-wrap
22810 msgid ""
22811 " let g = Guestfs.create () in\n"
22812 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22813 " Guestfs.launch g;\n"
22814 "\n"
22815 msgstr ""
22816
22817 #. type: textblock
22818 #: ../ocaml/examples/guestfs-ocaml.pod:15
22819 msgid "Object-oriented style:"
22820 msgstr ""
22821
22822 #. type: verbatim
22823 #: ../ocaml/examples/guestfs-ocaml.pod:17
22824 #, no-wrap
22825 msgid ""
22826 " let g = new Guestfs.guestfs () in\n"
22827 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22828 " g#launch ();\n"
22829 "\n"
22830 msgstr ""
22831
22832 #. type: verbatim
22833 #: ../ocaml/examples/guestfs-ocaml.pod:21
22834 #, no-wrap
22835 msgid ""
22836 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22837 "or:\n"
22838 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22839 "\n"
22840 msgstr ""
22841
22842 #. type: textblock
22843 #: ../ocaml/examples/guestfs-ocaml.pod:27
22844 msgid ""
22845 "This manual page documents how to call libguestfs from the OCaml programming "
22846 "language.  This page just documents the differences from the C API and gives "
22847 "some examples.  If you are not familiar with using libguestfs, you also need "
22848 "to read L<guestfs(3)>."
22849 msgstr ""
22850
22851 #. type: =head2
22852 #: ../ocaml/examples/guestfs-ocaml.pod:32
22853 msgid "PROGRAMMING STYLES"
22854 msgstr ""
22855
22856 #. type: textblock
22857 #: ../ocaml/examples/guestfs-ocaml.pod:34
22858 msgid ""
22859 "There are two different programming styles supported by the OCaml bindings.  "
22860 "You can use a module style, with each C function mapped to an OCaml function:"
22861 msgstr ""
22862
22863 #. type: verbatim
22864 #: ../ocaml/examples/guestfs-ocaml.pod:38
22865 #, no-wrap
22866 msgid ""
22867 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22868 "\n"
22869 msgstr ""
22870
22871 #. type: textblock
22872 #: ../ocaml/examples/guestfs-ocaml.pod:40
22873 msgid "becomes:"
22874 msgstr ""
22875
22876 #. type: verbatim
22877 #: ../ocaml/examples/guestfs-ocaml.pod:42
22878 #, no-wrap
22879 msgid ""
22880 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22881 "\n"
22882 msgstr ""
22883
22884 #. type: textblock
22885 #: ../ocaml/examples/guestfs-ocaml.pod:44
22886 msgid ""
22887 "Alternately you can use an object-oriented style, calling methods on the "
22888 "class C<Guestfs.guestfs>:"
22889 msgstr ""
22890
22891 #. type: verbatim
22892 #: ../ocaml/examples/guestfs-ocaml.pod:47
22893 #, no-wrap
22894 msgid ""
22895 " method set_verbose : bool -> unit\n"
22896 "\n"
22897 msgstr ""
22898
22899 #. type: textblock
22900 #: ../ocaml/examples/guestfs-ocaml.pod:49
22901 msgid ""
22902 "The object-oriented style is usually briefer, and the minor performance "
22903 "penalty isn't noticable in the general overhead of performing libguestfs "
22904 "functions."
22905 msgstr ""
22906
22907 #. type: textblock
22908 #: ../ocaml/examples/guestfs-ocaml.pod:55
22909 msgid ""
22910 "The handle is closed when it is reaped by the garbage collector.  Because "
22911 "libguestfs handles include a lot of state, it is also possible to close (and "
22912 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22913 "method."
22914 msgstr ""
22915
22916 #. type: textblock
22917 #: ../ocaml/examples/guestfs-ocaml.pod:62
22918 msgid ""
22919 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22920 "exception.  This has a single parameter which is the error message (a "
22921 "string)."
22922 msgstr ""
22923
22924 #. type: textblock
22925 #: ../ocaml/examples/guestfs-ocaml.pod:66
22926 msgid ""
22927 "Calling any function/method on a closed handle raises C<Guestfs."
22928 "Handle_closed>.  The single parameter is the name of the function that you "
22929 "called."
22930 msgstr ""
22931
22932 #. type: textblock
22933 #: ../ocaml/examples/guestfs-ocaml.pod:80
22934 msgid ""
22935 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22936 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22937 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22938 msgstr ""
22939
22940 #. type: textblock
22941 #: ../perl/examples/guestfs-perl.pod:5
22942 msgid "guestfs-perl - How to use libguestfs from Perl"
22943 msgstr ""
22944
22945 #. type: verbatim
22946 #: ../perl/examples/guestfs-perl.pod:9
22947 #, no-wrap
22948 msgid ""
22949 " use Sys::Guestfs;\n"
22950 " \n"
22951 msgstr ""
22952
22953 #. type: verbatim
22954 #: ../perl/examples/guestfs-perl.pod:11
22955 #, no-wrap
22956 msgid ""
22957 " my $h = Sys::Guestfs->new ();\n"
22958 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22959 " $h->launch ();\n"
22960 " $h->mount_options ('', '/dev/sda1', '/');\n"
22961 " $h->touch ('/hello');\n"
22962 " $h->sync ();\n"
22963 "\n"
22964 msgstr ""
22965
22966 #. type: textblock
22967 #: ../perl/examples/guestfs-perl.pod:20
22968 msgid ""
22969 "This manual page documents how to call libguestfs from the Perl programming "
22970 "language.  This page just documents the differences from the C API and gives "
22971 "some examples.  If you are not familiar with using libguestfs, you also need "
22972 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22973 msgstr ""
22974
22975 #. type: =head2
22976 #: ../perl/examples/guestfs-perl.pod:26
22977 msgid "ERRORS"
22978 msgstr "ПОМИЛКИ"
22979
22980 #. type: textblock
22981 #: ../perl/examples/guestfs-perl.pod:28
22982 msgid ""
22983 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22984 ">)."
22985 msgstr ""
22986
22987 #. type: textblock
22988 #: ../perl/examples/guestfs-perl.pod:41
22989 msgid ""
22990 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22991 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22992 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22993 msgstr ""
22994
22995 #. type: textblock
22996 #: ../python/examples/guestfs-python.pod:5
22997 msgid "guestfs-python - How to use libguestfs from Python"
22998 msgstr ""
22999
23000 #. type: verbatim
23001 #: ../python/examples/guestfs-python.pod:9
23002 #, no-wrap
23003 msgid ""
23004 " import guestfs\n"
23005 " g = guestfs.GuestFS ()\n"
23006 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
23007 " g.launch\n"
23008 "\n"
23009 msgstr ""
23010
23011 #. type: textblock
23012 #: ../python/examples/guestfs-python.pod:16
23013 msgid ""
23014 "This manual page documents how to call libguestfs from the Python "
23015 "programming language.  This page just documents the differences from the C "
23016 "API and gives some examples.  If you are not familiar with using libguestfs, "
23017 "you also need to read L<guestfs(3)>."
23018 msgstr ""
23019
23020 #. type: textblock
23021 #: ../python/examples/guestfs-python.pod:23
23022 msgid ""
23023 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
23024 "single string argument which is the error message."
23025 msgstr ""
23026
23027 #. type: =head2
23028 #: ../python/examples/guestfs-python.pod:26
23029 msgid "MORE DOCUMENTATION"
23030 msgstr ""
23031
23032 #. type: textblock
23033 #: ../python/examples/guestfs-python.pod:28
23034 msgid "Type:"
23035 msgstr "Тип:"
23036
23037 #. type: verbatim
23038 #: ../python/examples/guestfs-python.pod:30
23039 #, no-wrap
23040 msgid ""
23041 " $ python\n"
23042 " >>> import guestfs\n"
23043 " >>> help (guestfs)\n"
23044 "\n"
23045 msgstr ""
23046
23047 #. type: textblock
23048 #: ../python/examples/guestfs-python.pod:44
23049 msgid ""
23050 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23051 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
23052 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
23053 msgstr ""
23054
23055 #. type: textblock
23056 #: ../rescue/virt-rescue.pod:5
23057 msgid "virt-rescue - Run a rescue shell on a virtual machine"
23058 msgstr ""
23059
23060 #. type: verbatim
23061 #: ../rescue/virt-rescue.pod:9
23062 #, no-wrap
23063 msgid ""
23064 " virt-rescue [--options] -d domname\n"
23065 "\n"
23066 msgstr ""
23067
23068 #. type: verbatim
23069 #: ../rescue/virt-rescue.pod:11
23070 #, no-wrap
23071 msgid ""
23072 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
23073 "\n"
23074 msgstr ""
23075
23076 #. type: verbatim
23077 #: ../rescue/virt-rescue.pod:15
23078 #, no-wrap
23079 msgid ""
23080 " virt-rescue [--options] domname\n"
23081 "\n"
23082 msgstr ""
23083
23084 #. type: verbatim
23085 #: ../rescue/virt-rescue.pod:17
23086 #, no-wrap
23087 msgid ""
23088 " virt-rescue [--options] disk.img [disk.img ...]\n"
23089 "\n"
23090 msgstr ""
23091
23092 #. type: textblock
23093 #: ../rescue/virt-rescue.pod:21
23094 msgid ""
23095 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
23096 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
23097 "you from doing this, but doesn't catch all cases."
23098 msgstr ""
23099
23100 #. type: textblock
23101 #: ../rescue/virt-rescue.pod:25
23102 msgid ""
23103 "However if you use the I<--ro> (read only) option, then you can attach a "
23104 "shell to a live virtual machine.  The results might be strange or "
23105 "inconsistent at times but you won't get disk corruption."
23106 msgstr ""
23107
23108 #. type: textblock
23109 #: ../rescue/virt-rescue.pod:31
23110 msgid ""
23111 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
23112 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
23113 "recovery tools which you can use to examine or rescue a virtual machine or "
23114 "disk image."
23115 msgstr ""
23116
23117 #. type: textblock
23118 #: ../rescue/virt-rescue.pod:36
23119 msgid ""
23120 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
23121 "on disk image(s):"
23122 msgstr ""
23123
23124 #. type: verbatim
23125 #: ../rescue/virt-rescue.pod:39
23126 #, no-wrap
23127 msgid ""
23128 " virt-rescue -d GuestName\n"
23129 "\n"
23130 msgstr ""
23131
23132 #. type: verbatim
23133 #: ../rescue/virt-rescue.pod:41
23134 #, no-wrap
23135 msgid ""
23136 " virt-rescue --ro -a /path/to/disk.img\n"
23137 "\n"
23138 msgstr ""
23139
23140 #. type: verbatim
23141 #: ../rescue/virt-rescue.pod:43
23142 #, no-wrap
23143 msgid ""
23144 " virt-rescue -a /dev/sdc\n"
23145 "\n"
23146 msgstr ""
23147
23148 #. type: textblock
23149 #: ../rescue/virt-rescue.pod:45
23150 msgid "For live VMs you I<must> use the --ro option."
23151 msgstr ""
23152
23153 #. type: textblock
23154 #: ../rescue/virt-rescue.pod:47
23155 msgid ""
23156 "When you run virt-rescue on a virtual machine or disk image, you are placed "
23157 "in an interactive bash shell where you can use many ordinary Linux "
23158 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
23159 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
23160 "is an empty directory called C</sysroot> where you can mount filesystems."
23161 msgstr ""
23162
23163 #. type: textblock
23164 #: ../rescue/virt-rescue.pod:54
23165 msgid ""
23166 "In the example below, we list logical volumes, then choose one to mount "
23167 "under C</sysroot>:"
23168 msgstr ""
23169
23170 #. type: verbatim
23171 #: ../rescue/virt-rescue.pod:57
23172 #, no-wrap
23173 msgid ""
23174 " ><rescue> lvs\n"
23175 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
23176 " lv_root vg_f11x64 -wi-a-   8.83G\n"
23177 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
23178 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
23179 " ><rescue> ls /sysroot\n"
23180 "\n"
23181 msgstr ""
23182
23183 #. type: textblock
23184 #: ../rescue/virt-rescue.pod:64
23185 msgid ""
23186 "If you don't know what filesystems are available on the virtual machine then "
23187 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
23188 msgstr ""
23189
23190 #. type: textblock
23191 #: ../rescue/virt-rescue.pod:70
23192 msgid ""
23193 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23194 "virtual machine.  For example you can use it on a blank file if you want to "
23195 "partition that file (although we would recommend using L<guestfish(1)> "
23196 "instead as it is more suitable for this purpose).  You can even use virt-"
23197 "rescue on things like SD cards."
23198 msgstr ""
23199
23200 #. type: textblock
23201 #: ../rescue/virt-rescue.pod:76
23202 msgid ""
23203 "Virt-rescue does not require root.  You only need to run it as root if you "
23204 "need root to open the disk image."
23205 msgstr ""
23206
23207 #. type: textblock
23208 #: ../rescue/virt-rescue.pod:79
23209 msgid ""
23210 "This tool is just designed for quick interactive hacking on a virtual "
23211 "machine.  For more structured access to a virtual machine disk image, you "
23212 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23213 "make scripted changes to guests, use L<guestfish(1)>."
23214 msgstr ""
23215
23216 #. type: =item
23217 #: ../rescue/virt-rescue.pod:103
23218 msgid "B<--append kernelopts>"
23219 msgstr "B<--append параметри_ядра>"
23220
23221 #. type: textblock
23222 #: ../rescue/virt-rescue.pod:105
23223 msgid "Pass additional options to the rescue kernel."
23224 msgstr ""
23225
23226 #. type: verbatim
23227 #: ../rescue/virt-rescue.pod:135
23228 #, no-wrap
23229 msgid ""
23230 " virt-rescue --format=raw -a disk.img\n"
23231 "\n"
23232 msgstr ""
23233
23234 #. type: verbatim
23235 #: ../rescue/virt-rescue.pod:139
23236 #, no-wrap
23237 msgid ""
23238 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23239 "\n"
23240 msgstr ""
23241
23242 #. type: =item
23243 #: ../rescue/virt-rescue.pod:148
23244 msgid "B<-m MB>"
23245 msgstr "B<-m МБ>"
23246
23247 #. type: =item
23248 #: ../rescue/virt-rescue.pod:150
23249 msgid "B<--memsize MB>"
23250 msgstr "B<--memsize МБ>"
23251
23252 #. type: textblock
23253 #: ../rescue/virt-rescue.pod:152
23254 msgid ""
23255 "Change the amount of memory allocated to the rescue system.  The default is "
23256 "set by libguestfs and is small but adequate for running system tools.  The "
23257 "occasional program might need more memory.  The parameter is specified in "
23258 "megabytes."
23259 msgstr ""
23260
23261 #. type: =item
23262 #: ../rescue/virt-rescue.pod:157
23263 msgid "B<--network>"
23264 msgstr "B<--network>"
23265
23266 #. type: textblock
23267 #: ../rescue/virt-rescue.pod:159
23268 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23269 msgstr ""
23270
23271 #. type: textblock
23272 #: ../rescue/virt-rescue.pod:165
23273 msgid "Open the image read-only."
23274 msgstr ""
23275
23276 #. type: textblock
23277 #: ../rescue/virt-rescue.pod:175
23278 msgid ""
23279 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
23280 "SELINUX> before using this option."
23281 msgstr ""
23282
23283 #. type: =item
23284 #: ../rescue/virt-rescue.pod:178
23285 msgid "B<--smp> N"
23286 msgstr ""
23287
23288 #. type: textblock
23289 #: ../rescue/virt-rescue.pod:180
23290 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23291 msgstr ""
23292
23293 #. type: textblock
23294 #: ../rescue/virt-rescue.pod:198
23295 msgid ""
23296 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23297 "are done read-write."
23298 msgstr ""
23299
23300 #. type: textblock
23301 #: ../rescue/virt-rescue.pod:211
23302 msgid "Previous versions of virt-rescue allowed you to write either:"
23303 msgstr ""
23304
23305 #. type: verbatim
23306 #: ../rescue/virt-rescue.pod:213
23307 #, no-wrap
23308 msgid ""
23309 " virt-rescue disk.img [disk.img ...]\n"
23310 "\n"
23311 msgstr ""
23312
23313 #. type: verbatim
23314 #: ../rescue/virt-rescue.pod:217
23315 #, no-wrap
23316 msgid ""
23317 " virt-rescue guestname\n"
23318 "\n"
23319 msgstr ""
23320
23321 #. type: =head1
23322 #: ../rescue/virt-rescue.pod:225
23323 msgid "NETWORK"
23324 msgstr "МЕРЕЖА"
23325
23326 #. type: textblock
23327 #: ../rescue/virt-rescue.pod:227
23328 msgid ""
23329 "Adding the I<--network> option enables QEMU user networking in the rescue "
23330 "appliance.  There are some differences between user networking and ordinary "
23331 "networking:"
23332 msgstr ""
23333
23334 #. type: =item
23335 #: ../rescue/virt-rescue.pod:233
23336 msgid "ping does not work"
23337 msgstr ""
23338
23339 #. type: textblock
23340 #: ../rescue/virt-rescue.pod:235
23341 msgid ""
23342 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23343 "send the ping packets, and because virt-rescue must be able to run as non-"
23344 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
23345 "The ping command will appear to resolve addresses but will not be able to "
23346 "send or receive any packets.  This does not mean that the network is not "
23347 "working."
23348 msgstr ""
23349
23350 #. type: =item
23351 #: ../rescue/virt-rescue.pod:242
23352 msgid "cannot receive connections"
23353 msgstr ""
23354
23355 #. type: textblock
23356 #: ../rescue/virt-rescue.pod:244
23357 msgid "QEMU user networking cannot receive incoming connections."
23358 msgstr ""
23359
23360 #. type: =item
23361 #: ../rescue/virt-rescue.pod:246
23362 msgid "making TCP connections"
23363 msgstr ""
23364
23365 #. type: textblock
23366 #: ../rescue/virt-rescue.pod:248
23367 msgid ""
23368 "The virt-rescue appliance needs to be small and so does not include many "
23369 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23370 "make TCP connections from the shell using the magical C</dev/tcp/"
23371 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23372 msgstr ""
23373
23374 #. type: verbatim
23375 #: ../rescue/virt-rescue.pod:253
23376 #, no-wrap
23377 msgid ""
23378 " exec 3<>/dev/tcp/redhat.com/80\n"
23379 " echo \"GET /\" >&3\n"
23380 " cat <&3\n"
23381 "\n"
23382 msgstr ""
23383
23384 #. type: textblock
23385 #: ../rescue/virt-rescue.pod:257
23386 msgid "See L<bash(1)> for more details."
23387 msgstr ""
23388
23389 #. type: textblock
23390 #: ../rescue/virt-rescue.pod:263
23391 msgid ""
23392 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
23393 "ENVIRONMENT VARIABLES> for the complete list."
23394 msgstr ""
23395
23396 #. type: textblock
23397 #: ../rescue/virt-rescue.pod:290
23398 msgid ""
23399 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
23400 "libguestfs.org/>."
23401 msgstr ""
23402
23403 #. type: textblock
23404 #: ../resize/virt-resize.pod:5
23405 msgid "virt-resize - Resize a virtual machine disk"
23406 msgstr ""
23407
23408 #. type: verbatim
23409 #: ../resize/virt-resize.pod:9
23410 #, no-wrap
23411 msgid ""
23412 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23413 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23414 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23415 "\n"
23416 msgstr ""
23417
23418 #. type: textblock
23419 #: ../resize/virt-resize.pod:15
23420 msgid ""
23421 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23422 "larger or smaller overall, and resizing or deleting any partitions contained "
23423 "within."
23424 msgstr ""
23425
23426 #. type: textblock
23427 #: ../resize/virt-resize.pod:19
23428 msgid ""
23429 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23430 "not> be used on live virtual machines - for consistent results, shut the "
23431 "virtual machine down before resizing it."
23432 msgstr ""
23433
23434 #. type: textblock
23435 #: ../resize/virt-resize.pod:23
23436 msgid ""
23437 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23438 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23439 msgstr ""
23440
23441 #. type: =item
23442 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
23443 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:484
23444 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
23445 msgid "1."
23446 msgstr "1."
23447
23448 #. type: textblock
23449 #: ../resize/virt-resize.pod:33
23450 msgid ""
23451 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23452 "fill the extra 5GB of space."
23453 msgstr ""
23454
23455 #. type: verbatim
23456 #: ../resize/virt-resize.pod:36
23457 #, no-wrap
23458 msgid ""
23459 " virt-filesystems --long -h --all -a olddisk\n"
23460 " \n"
23461 msgstr ""
23462
23463 #. type: verbatim
23464 #: ../resize/virt-resize.pod:38
23465 #, no-wrap
23466 msgid ""
23467 " truncate -r olddisk newdisk\n"
23468 " truncate -s +5G newdisk\n"
23469 " \n"
23470 msgstr ""
23471
23472 #. type: verbatim
23473 #: ../resize/virt-resize.pod:41
23474 #, no-wrap
23475 msgid ""
23476 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23477 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23478 "\n"
23479 msgstr ""
23480
23481 #. type: =item
23482 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
23483 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:490
23484 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
23485 msgid "2."
23486 msgstr "2."
23487
23488 #. type: textblock
23489 #: ../resize/virt-resize.pod:46
23490 msgid ""
23491 "As above, but make the /boot partition 200MB bigger, while giving the "
23492 "remaining space to /dev/sda2:"
23493 msgstr ""
23494
23495 #. type: verbatim
23496 #: ../resize/virt-resize.pod:49
23497 #, no-wrap
23498 msgid ""
23499 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23500 "   olddisk newdisk\n"
23501 "\n"
23502 msgstr ""
23503
23504 #. type: =item
23505 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
23506 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501
23507 #: ../src/guestfs.pod:1451
23508 msgid "3."
23509 msgstr "3."
23510
23511 #. type: textblock
23512 #: ../resize/virt-resize.pod:54
23513 msgid ""
23514 "As in the first example, but expand a logical volume as the final step.  "
23515 "This is what you would typically use for Linux guests that use LVM:"
23516 msgstr ""
23517
23518 #. type: verbatim
23519 #: ../resize/virt-resize.pod:58
23520 #, no-wrap
23521 msgid ""
23522 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23523 "   olddisk newdisk\n"
23524 "\n"
23525 msgstr ""
23526
23527 #. type: =item
23528 #: ../resize/virt-resize.pod:61
23529 msgid "4."
23530 msgstr ""
23531
23532 #. type: textblock
23533 #: ../resize/virt-resize.pod:63
23534 msgid ""
23535 "As in the first example, but the output format will be qcow2 instead of a "
23536 "raw disk:"
23537 msgstr ""
23538
23539 #. type: verbatim
23540 #: ../resize/virt-resize.pod:66
23541 #, no-wrap
23542 msgid ""
23543 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23544 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23545 "\n"
23546 msgstr ""
23547
23548 #. type: =head1
23549 #: ../resize/virt-resize.pod:71
23550 msgid "DETAILED USAGE"
23551 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
23552
23553 #. type: =head2
23554 #: ../resize/virt-resize.pod:73
23555 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23556 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
23557
23558 #. type: =item
23559 #: ../resize/virt-resize.pod:77
23560 msgid "1. Shut down the virtual machine"
23561 msgstr ""
23562
23563 #. type: =item
23564 #: ../resize/virt-resize.pod:79
23565 msgid "2. Locate input disk image"
23566 msgstr ""
23567
23568 #. type: textblock
23569 #: ../resize/virt-resize.pod:81
23570 msgid ""
23571 "Locate the input disk image (ie. the file or device on the host containing "
23572 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23573 "dumpxml> like this to find the disk image name:"
23574 msgstr ""
23575
23576 #. type: verbatim
23577 #: ../resize/virt-resize.pod:85
23578 #, no-wrap
23579 msgid ""
23580 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23581 " Found 1 nodes:\n"
23582 " -- NODE --\n"
23583 " <source dev=\"/dev/vg/lv_guest\" />\n"
23584 "\n"
23585 msgstr ""
23586
23587 #. type: =item
23588 #: ../resize/virt-resize.pod:90
23589 msgid "3. Look at current sizing"
23590 msgstr ""
23591
23592 #. type: textblock
23593 #: ../resize/virt-resize.pod:92
23594 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23595 msgstr ""
23596
23597 #. type: verbatim
23598 #: ../resize/virt-resize.pod:95
23599 #, no-wrap
23600 msgid ""
23601 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23602 " Name       Type       Size  Parent\n"
23603 " /dev/sda1  partition  101M  /dev/sda\n"
23604 " /dev/sda2  partition  7.9G  /dev/sda\n"
23605 " /dev/sda   device     8.0G  -\n"
23606 "\n"
23607 msgstr ""
23608
23609 #. type: textblock
23610 #: ../resize/virt-resize.pod:101
23611 msgid ""
23612 "(This example is a virtual machine with an 8 GB disk which we would like to "
23613 "expand up to 10 GB)."
23614 msgstr ""
23615
23616 #. type: =item
23617 #: ../resize/virt-resize.pod:104
23618 msgid "4. Create output disk"
23619 msgstr ""
23620
23621 #. type: textblock
23622 #: ../resize/virt-resize.pod:106
23623 msgid ""
23624 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23625 "to store the resized output disk."
23626 msgstr ""
23627
23628 #. type: textblock
23629 #: ../resize/virt-resize.pod:109
23630 msgid ""
23631 "To store the resized disk image in a file, create a file of a suitable size:"
23632 msgstr ""
23633
23634 #. type: verbatim
23635 #: ../resize/virt-resize.pod:112
23636 #, no-wrap
23637 msgid ""
23638 " # rm -f outdisk\n"
23639 " # truncate -s 10G outdisk\n"
23640 "\n"
23641 msgstr ""
23642
23643 #. type: textblock
23644 #: ../resize/virt-resize.pod:115
23645 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23646 msgstr ""
23647
23648 #. type: verbatim
23649 #: ../resize/virt-resize.pod:117
23650 #, no-wrap
23651 msgid ""
23652 " # lvcreate -L 10G -n lv_name vg_name\n"
23653 "\n"
23654 msgstr ""
23655
23656 #. type: textblock
23657 #: ../resize/virt-resize.pod:119
23658 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23659 msgstr ""
23660
23661 #. type: verbatim
23662 #: ../resize/virt-resize.pod:121
23663 #, no-wrap
23664 msgid ""
23665 " # virsh pool-list\n"
23666 " # virsh vol-create-as poolname newvol 10G\n"
23667 "\n"
23668 msgstr ""
23669
23670 #. type: =item
23671 #: ../resize/virt-resize.pod:124
23672 msgid "5. Resize"
23673 msgstr "5. Зміна розміру"
23674
23675 #. type: textblock
23676 #: ../resize/virt-resize.pod:126
23677 msgid ""
23678 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23679 "file) and the output disk.  The output disk is the one created in the "
23680 "previous step."
23681 msgstr ""
23682
23683 #. type: verbatim
23684 #: ../resize/virt-resize.pod:130
23685 #, no-wrap
23686 msgid ""
23687 " # virt-resize indisk outdisk\n"
23688 "\n"
23689 msgstr ""
23690
23691 #. type: textblock
23692 #: ../resize/virt-resize.pod:132
23693 msgid ""
23694 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23695 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23696 "larger, then an extra, empty partition is created at the end of the disk "
23697 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23698 "error."
23699 msgstr ""
23700
23701 #. type: textblock
23702 #: ../resize/virt-resize.pod:138
23703 msgid ""
23704 "More realistically you'd want to expand existing partitions in the disk "
23705 "image by passing extra options (for the full list see the L</OPTIONS> "
23706 "section below)."
23707 msgstr ""
23708
23709 #. type: textblock
23710 #: ../resize/virt-resize.pod:142
23711 msgid ""
23712 "L</--expand> is the most useful option.  It expands the named partition "
23713 "within the disk to fill any extra space:"
23714 msgstr ""
23715
23716 #. type: verbatim
23717 #: ../resize/virt-resize.pod:145
23718 #, no-wrap
23719 msgid ""
23720 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23721 "\n"
23722 msgstr ""
23723
23724 #. type: textblock
23725 #: ../resize/virt-resize.pod:147
23726 msgid ""
23727 "(In this case, an extra partition is I<not> created at the end of the disk, "
23728 "because there will be no unused space)."
23729 msgstr ""
23730
23731 #. type: textblock
23732 #: ../resize/virt-resize.pod:150
23733 msgid ""
23734 "L</--resize> is the other commonly used option.  The following would "
23735 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23736 "rest of the available space:"
23737 msgstr ""
23738
23739 #. type: verbatim
23740 #: ../resize/virt-resize.pod:154
23741 #, no-wrap
23742 msgid ""
23743 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23744 "     indisk outdisk\n"
23745 "\n"
23746 msgstr ""
23747
23748 #. type: textblock
23749 #: ../resize/virt-resize.pod:157
23750 msgid ""
23751 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23752 "if virt-resize knows how, it will resize the contents, the equivalent of "
23753 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23754 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23755 "filesystems, so you would have to online resize them after booting the guest."
23756 msgstr ""
23757
23758 #. type: textblock
23759 #: ../resize/virt-resize.pod:164
23760 msgid "Other options are covered below."
23761 msgstr ""
23762
23763 #. type: =item
23764 #: ../resize/virt-resize.pod:166
23765 msgid "6. Test"
23766 msgstr "6. Перевірка"
23767
23768 #. type: textblock
23769 #: ../resize/virt-resize.pod:168
23770 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23771 msgstr ""
23772
23773 #. type: textblock
23774 #: ../resize/virt-resize.pod:170
23775 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23776 msgstr ""
23777
23778 #. type: verbatim
23779 #: ../resize/virt-resize.pod:172
23780 #, no-wrap
23781 msgid ""
23782 " # virsh edit guestname\n"
23783 "\n"
23784 msgstr ""
23785
23786 #. type: textblock
23787 #: ../resize/virt-resize.pod:174
23788 msgid ""
23789 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23790 "html#elementsDisks>"
23791 msgstr ""
23792
23793 #. type: textblock
23794 #: ../resize/virt-resize.pod:177
23795 msgid "Then start up the domain with the new, resized disk:"
23796 msgstr ""
23797
23798 #. type: verbatim
23799 #: ../resize/virt-resize.pod:179
23800 #, no-wrap
23801 msgid ""
23802 " # virsh start guestname\n"
23803 "\n"
23804 msgstr ""
23805
23806 #. type: textblock
23807 #: ../resize/virt-resize.pod:181
23808 msgid ""
23809 "and check that it still works.  See also the L</NOTES> section below for "
23810 "additional information."
23811 msgstr ""
23812
23813 #. type: =item
23814 #: ../resize/virt-resize.pod:184
23815 msgid "7. Resize LVs etc inside the guest"
23816 msgstr ""
23817
23818 #. type: textblock
23819 #: ../resize/virt-resize.pod:186
23820 msgid "(This can also be done offline using L<guestfish(1)>)"
23821 msgstr ""
23822
23823 #. type: textblock
23824 #: ../resize/virt-resize.pod:188
23825 msgid ""
23826 "Once the guest has booted you should see the new space available, at least "
23827 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23828 "may need to resize LVs inside PVs, and also resize filesystem types that "
23829 "virt-resize does not know how to expand."
23830 msgstr ""
23831
23832 #. type: =head2
23833 #: ../resize/virt-resize.pod:195
23834 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23835 msgstr ""
23836
23837 #. type: textblock
23838 #: ../resize/virt-resize.pod:197
23839 msgid ""
23840 "Shrinking is somewhat more complex than expanding, and only an overview is "
23841 "given here."
23842 msgstr ""
23843
23844 #. type: textblock
23845 #: ../resize/virt-resize.pod:200
23846 msgid ""
23847 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23848 "filesystems).  The user has to shrink content before passing the disk image "
23849 "to virt-resize, and virt-resize will check that the content has been shrunk "
23850 "properly."
23851 msgstr ""
23852
23853 #. type: textblock
23854 #: ../resize/virt-resize.pod:205
23855 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23856 msgstr ""
23857
23858 #. type: textblock
23859 #: ../resize/virt-resize.pod:207
23860 msgid ""
23861 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23862 "steps 3 and 4 above to allocate a new disk image."
23863 msgstr ""
23864
23865 #. type: textblock
23866 #: ../resize/virt-resize.pod:210
23867 msgid ""
23868 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23869 msgstr ""
23870
23871 #. type: =head2
23872 #: ../resize/virt-resize.pod:213
23873 msgid "IGNORING OR DELETING PARTITIONS"
23874 msgstr ""
23875
23876 #. type: textblock
23877 #: ../resize/virt-resize.pod:215
23878 msgid ""
23879 "virt-resize also gives a convenient way to ignore or delete partitions when "
23880 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23881 "up the copy where you don't care about the existing contents of a "
23882 "partition.  Deleting a partition removes it completely, but note that it "
23883 "also renumbers any partitions after the one which is deleted, which can "
23884 "leave some guests unbootable."
23885 msgstr ""
23886
23887 #. type: =head2
23888 #: ../resize/virt-resize.pod:222
23889 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23890 msgstr ""
23891
23892 #. type: textblock
23893 #: ../resize/virt-resize.pod:224
23894 msgid ""
23895 "If the input disk is in qcow2 format, then you may prefer that the output is "
23896 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23897 "the fly.  The output format is simply determined by the format of the empty "
23898 "output container that you provide.  Thus to create qcow2 output, use:"
23899 msgstr ""
23900
23901 #. type: verbatim
23902 #: ../resize/virt-resize.pod:230
23903 #, no-wrap
23904 msgid ""
23905 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23906 "\n"
23907 msgstr ""
23908
23909 #. type: textblock
23910 #: ../resize/virt-resize.pod:232
23911 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23912 msgstr ""
23913
23914 #. type: textblock
23915 #: ../resize/virt-resize.pod:234
23916 msgid "Similarly, to get non-sparse raw output use:"
23917 msgstr ""
23918
23919 #. type: verbatim
23920 #: ../resize/virt-resize.pod:236
23921 #, no-wrap
23922 msgid ""
23923 " fallocate -l size outdisk\n"
23924 "\n"
23925 msgstr ""
23926
23927 #. type: textblock
23928 #: ../resize/virt-resize.pod:238
23929 msgid ""
23930 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23931 "dev/zero of=outdisk bs=1M count=..>)"
23932 msgstr ""
23933
23934 #. type: =head2
23935 #: ../resize/virt-resize.pod:241
23936 #, fuzzy
23937 #| msgid "PARTITIONING"
23938 msgid "LOGICAL PARTITIONS"
23939 msgstr "ПОДІЛ НА РОЗДІЛИ"
23940
23941 #. type: textblock
23942 #: ../resize/virt-resize.pod:243
23943 msgid ""
23944 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
23945 "tables) cannot be resized."
23946 msgstr ""
23947
23948 #. type: textblock
23949 #: ../resize/virt-resize.pod:246
23950 msgid ""
23951 "To understand what is going on, firstly one of the four partitions C</dev/"
23952 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
23953 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
23954 "type."
23955 msgstr ""
23956
23957 #. type: textblock
23958 #: ../resize/virt-resize.pod:251
23959 msgid "Logical partitions live inside the extended partition."
23960 msgstr ""
23961
23962 #. type: textblock
23963 #: ../resize/virt-resize.pod:253
23964 msgid ""
23965 "The extended partition can be expanded, but not shrunk (unless you force it, "
23966 "which is not advisable).  When the extended partition is copied across, all "
23967 "the logical partitions contained inside are copied over implicitly.  Virt-"
23968 "resize does not look inside the extended partition, so it copies the logical "
23969 "partitions blindly."
23970 msgstr ""
23971
23972 #. type: textblock
23973 #: ../resize/virt-resize.pod:259
23974 msgid ""
23975 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
23976 "line.  Doing so will give an error."
23977 msgstr ""
23978
23979 #. type: textblock
23980 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
23981 msgid "Display help."
23982 msgstr ""
23983
23984 #. type: =item
23985 #: ../resize/virt-resize.pod:270
23986 #, fuzzy
23987 #| msgid "B<--ignore part>"
23988 msgid "B<--align-first auto>"
23989 msgstr "B<--ignore розділ>"
23990
23991 #. type: =item
23992 #: ../resize/virt-resize.pod:272
23993 #, fuzzy
23994 #| msgid "B<--listen>"
23995 msgid "B<--align-first never>"
23996 msgstr "B<--listen>"
23997
23998 #. type: =item
23999 #: ../resize/virt-resize.pod:274
24000 msgid "B<--align-first always>"
24001 msgstr ""
24002
24003 #. type: textblock
24004 #: ../resize/virt-resize.pod:276
24005 msgid ""
24006 "Align the first partition for improved performance (see also the I<--"
24007 "alignment> option)."
24008 msgstr ""
24009
24010 #. type: textblock
24011 #: ../resize/virt-resize.pod:279
24012 msgid ""
24013 "The default is I<--align-first auto> which only aligns the first partition "
24014 "if it is safe to do so.  That is, only when we know how to fix the "
24015 "bootloader automatically, and at the moment that can only be done for "
24016 "Windows guests."
24017 msgstr ""
24018
24019 #. type: textblock
24020 #: ../resize/virt-resize.pod:284
24021 msgid ""
24022 "I<--align-first never> means we never move the first partition.  This is the "
24023 "safest option.  Try this if the guest does not boot after resizing."
24024 msgstr ""
24025
24026 #. type: textblock
24027 #: ../resize/virt-resize.pod:288
24028 msgid ""
24029 "I<--align-first always> means we always align the first partition (if it "
24030 "needs to be aligned).  For some guests this will break the bootloader, "
24031 "making the guest unbootable."
24032 msgstr ""
24033
24034 #. type: =item
24035 #: ../resize/virt-resize.pod:292
24036 #, fuzzy
24037 #| msgid "B<--time-t>"
24038 msgid "B<--alignment N>"
24039 msgstr "B<--time-t>"
24040
24041 #. type: textblock
24042 #: ../resize/virt-resize.pod:294
24043 msgid ""
24044 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
24045 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
24046 msgstr ""
24047
24048 #. type: textblock
24049 #: ../resize/virt-resize.pod:298
24050 msgid ""
24051 "Assuming 512 byte sector size inside the guest, here are some suitable "
24052 "values for this:"
24053 msgstr ""
24054
24055 #. type: =item
24056 #: ../resize/virt-resize.pod:303
24057 msgid "I<--alignment 1> (512 bytes)"
24058 msgstr ""
24059
24060 #. type: textblock
24061 #: ../resize/virt-resize.pod:305
24062 msgid ""
24063 "The partitions would be packed together as closely as possible, but would be "
24064 "completely unaligned.  In some cases this can cause very poor performance.  "
24065 "See L<virt-alignment-scan(1)> for further details."
24066 msgstr ""
24067
24068 #. type: =item
24069 #: ../resize/virt-resize.pod:309
24070 msgid "I<--alignment 8> (4K)"
24071 msgstr ""
24072
24073 #. type: textblock
24074 #: ../resize/virt-resize.pod:311
24075 msgid ""
24076 "This would be the minimum acceptable alignment for reasonable performance on "
24077 "modern hosts."
24078 msgstr ""
24079
24080 #. type: =item
24081 #: ../resize/virt-resize.pod:314
24082 msgid "I<--alignment 128> (64K)"
24083 msgstr ""
24084
24085 #. type: textblock
24086 #: ../resize/virt-resize.pod:316
24087 msgid ""
24088 "This alignment provides good performance when the host is using high end "
24089 "network storage."
24090 msgstr ""
24091
24092 #. type: =item
24093 #: ../resize/virt-resize.pod:319
24094 msgid "I<--alignment 2048> (1M)"
24095 msgstr ""
24096
24097 #. type: textblock
24098 #: ../resize/virt-resize.pod:321
24099 msgid ""
24100 "This is the standard alignment used by all newly installed guests since "
24101 "around 2008."
24102 msgstr ""
24103
24104 #. type: =item
24105 #: ../resize/virt-resize.pod:326
24106 msgid "B<-d>"
24107 msgstr "B<-d>"
24108
24109 #. type: =item
24110 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
24111 #: ../tools/virt-win-reg.pl:120
24112 msgid "B<--debug>"
24113 msgstr "B<--debug>"
24114
24115 #. type: textblock
24116 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
24117 msgid "Enable debugging messages."
24118 msgstr ""
24119
24120 #. type: =item
24121 #: ../resize/virt-resize.pod:332
24122 msgid "B<--delete part>"
24123 msgstr "B<--delete розділ>"
24124
24125 #. type: textblock
24126 #: ../resize/virt-resize.pod:334
24127 msgid ""
24128 "Delete the named partition.  It would be more accurate to describe this as "
24129 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
24130 "the original disk image is left intact."
24131 msgstr ""
24132
24133 #. type: textblock
24134 #: ../resize/virt-resize.pod:338
24135 msgid ""
24136 "Note that when you delete a partition, then anything contained in the "
24137 "partition is also deleted.  Furthermore, this causes any partitions that "
24138 "come after to be I<renumbered>, which can easily make your guest unbootable."
24139 msgstr ""
24140
24141 #. type: textblock
24142 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
24143 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
24144 msgid "You can give this option multiple times."
24145 msgstr ""
24146
24147 #. type: =item
24148 #: ../resize/virt-resize.pod:345
24149 msgid "B<--expand part>"
24150 msgstr "B<--expand розділ>"
24151
24152 #. type: textblock
24153 #: ../resize/virt-resize.pod:347
24154 msgid ""
24155 "Expand the named partition so it uses up all extra space (space left over "
24156 "after any other resize changes that you request have been done)."
24157 msgstr ""
24158
24159 #. type: textblock
24160 #: ../resize/virt-resize.pod:350
24161 msgid ""
24162 "If virt-resize knows how, it will expand the direct content of the "
24163 "partition.  For example, if the partition is an LVM PV, it will expand the "
24164 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
24165 "content it doesn't know about alone."
24166 msgstr ""
24167
24168 #. type: textblock
24169 #: ../resize/virt-resize.pod:355
24170 msgid "Currently virt-resize can resize:"
24171 msgstr ""
24172
24173 #. type: textblock
24174 #: ../resize/virt-resize.pod:361
24175 msgid "ext2, ext3 and ext4 filesystems."
24176 msgstr ""
24177
24178 #. type: textblock
24179 #: ../resize/virt-resize.pod:365
24180 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
24181 msgstr ""
24182
24183 #. type: textblock
24184 #: ../resize/virt-resize.pod:367
24185 msgid ""
24186 "The filesystem must have been shut down consistently last time it was used.  "
24187 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
24188 "consistency check, so at the first boot after resizing Windows will check "
24189 "the disk."
24190 msgstr ""
24191
24192 #. type: textblock
24193 #: ../resize/virt-resize.pod:374
24194 msgid ""
24195 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
24196 "inside the PV, but see the I<--LV-expand> option.  The user could also "
24197 "resize LVs as desired after boot."
24198 msgstr ""
24199
24200 #. type: textblock
24201 #: ../resize/virt-resize.pod:380
24202 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
24203 msgstr ""
24204
24205 #. type: textblock
24206 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
24207 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
24208 msgstr ""
24209
24210 #. type: =item
24211 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:125
24212 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
24213 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
24214 msgid "B<--format> raw"
24215 msgstr "B<--format> raw"
24216
24217 #. type: textblock
24218 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
24219 msgid ""
24220 "Specify the format of the input disk image.  If this flag is not given then "
24221 "it is auto-detected from the image itself."
24222 msgstr ""
24223
24224 #. type: textblock
24225 #: ../resize/virt-resize.pod:394
24226 msgid ""
24227 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
24228 "AND NON-SPARSE RAW FORMATS>."
24229 msgstr ""
24230
24231 #. type: =item
24232 #: ../resize/virt-resize.pod:397
24233 msgid "B<--ignore part>"
24234 msgstr "B<--ignore розділ>"
24235
24236 #. type: textblock
24237 #: ../resize/virt-resize.pod:399
24238 msgid ""
24239 "Ignore the named partition.  Effectively this means the partition is "
24240 "allocated on the destination disk, but the content is not copied across from "
24241 "the source disk.  The content of the partition will be blank (all zero "
24242 "bytes)."
24243 msgstr ""
24244
24245 #. type: =item
24246 #: ../resize/virt-resize.pod:406
24247 msgid "B<--LV-expand logvol>"
24248 msgstr "B<--LV-expand логічний_том>"
24249
24250 #. type: textblock
24251 #: ../resize/virt-resize.pod:408
24252 msgid ""
24253 "This takes the logical volume and, as a final step, expands it to fill all "
24254 "the space available in its volume group.  A typical usage, assuming a Linux "
24255 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24256 "lv_root> would be:"
24257 msgstr ""
24258
24259 #. type: verbatim
24260 #: ../resize/virt-resize.pod:413
24261 #, no-wrap
24262 msgid ""
24263 " virt-resize indisk outdisk \\\n"
24264 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24265 "\n"
24266 msgstr ""
24267
24268 #. type: textblock
24269 #: ../resize/virt-resize.pod:416
24270 msgid ""
24271 "This would first expand the partition (and PV), and then expand the root "
24272 "device to fill the extra space in the PV."
24273 msgstr ""
24274
24275 #. type: textblock
24276 #: ../resize/virt-resize.pod:419
24277 msgid ""
24278 "The contents of the LV are also resized if virt-resize knows how to do "
24279 "that.  You can stop virt-resize from trying to expand the content by using "
24280 "the option I<--no-expand-content>."
24281 msgstr ""
24282
24283 #. type: textblock
24284 #: ../resize/virt-resize.pod:423
24285 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24286 msgstr ""
24287
24288 #. type: textblock
24289 #: ../resize/virt-resize.pod:425
24290 msgid ""
24291 "You can give this option multiple times, I<but> it doesn't make sense to do "
24292 "this unless the logical volumes you specify are all in different volume "
24293 "groups."
24294 msgstr ""
24295
24296 #. type: =item
24297 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
24298 msgid "B<--machine-readable>"
24299 msgstr ""
24300
24301 #. type: textblock
24302 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
24303 msgid ""
24304 "This option is used to make the output more machine friendly when being "
24305 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24306 msgstr ""
24307
24308 #. type: =item
24309 #: ../resize/virt-resize.pod:437
24310 msgid "B<--dryrun>"
24311 msgstr "B<--dryrun>"
24312
24313 #. type: textblock
24314 #: ../resize/virt-resize.pod:439
24315 msgid "Print a summary of what would be done, but don't do anything."
24316 msgstr ""
24317
24318 #. type: =item
24319 #: ../resize/virt-resize.pod:441
24320 msgid "B<--no-copy-boot-loader>"
24321 msgstr "B<--no-copy-boot-loader>"
24322
24323 #. type: textblock
24324 #: ../resize/virt-resize.pod:443
24325 msgid ""
24326 "By default, virt-resize copies over some sectors at the start of the disk "
24327 "(up to the beginning of the first partition).  Commonly these sectors "
24328 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24329 "in order for the guest to boot correctly."
24330 msgstr ""
24331
24332 #. type: textblock
24333 #: ../resize/virt-resize.pod:448
24334 msgid ""
24335 "If you specify this flag, then this initial copy is not done.  You may need "
24336 "to reinstall the boot loader in this case."
24337 msgstr ""
24338
24339 #. type: =item
24340 #: ../resize/virt-resize.pod:451
24341 msgid "B<--no-extra-partition>"
24342 msgstr "B<--no-extra-partition>"
24343
24344 #. type: textblock
24345 #: ../resize/virt-resize.pod:453
24346 msgid ""
24347 "By default, virt-resize creates an extra partition if there is any extra, "
24348 "unused space after all resizing has happened.  Use this option to prevent "
24349 "the extra partition from being created.  If you do this then the extra space "
24350 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24351 "tool in the guest."
24352 msgstr ""
24353
24354 #. type: textblock
24355 #: ../resize/virt-resize.pod:459
24356 msgid ""
24357 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24358 "will be created."
24359 msgstr ""
24360
24361 #. type: =item
24362 #: ../resize/virt-resize.pod:462
24363 msgid "B<--no-expand-content>"
24364 msgstr "B<--no-expand-content>"
24365
24366 #. type: textblock
24367 #: ../resize/virt-resize.pod:464
24368 msgid ""
24369 "By default, virt-resize will try to expand the direct contents of "
24370 "partitions, if it knows how (see I<--expand> option above)."
24371 msgstr ""
24372
24373 #. type: textblock
24374 #: ../resize/virt-resize.pod:467
24375 msgid ""
24376 "If you give the I<--no-expand-content> option then virt-resize will not "
24377 "attempt this."
24378 msgstr ""
24379
24380 #. type: =item
24381 #: ../resize/virt-resize.pod:470
24382 msgid "B<--ntfsresize-force>"
24383 msgstr "B<--ntfsresize-force>"
24384
24385 #. type: textblock
24386 #: ../resize/virt-resize.pod:472
24387 msgid ""
24388 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24389 "the NTFS disk is marked as needing a consistency check.  You have to use "
24390 "this option if you want to resize a Windows guest multiple times without "
24391 "booting into Windows between each resize."
24392 msgstr ""
24393
24394 #. type: =item
24395 #: ../resize/virt-resize.pod:478
24396 msgid "B<--output-format> raw"
24397 msgstr "B<--output-format> raw"
24398
24399 #. type: textblock
24400 #: ../resize/virt-resize.pod:480
24401 msgid ""
24402 "Specify the format of the output disk image.  If this flag is not given then "
24403 "it is auto-detected from the image itself."
24404 msgstr ""
24405
24406 #. type: textblock
24407 #: ../resize/virt-resize.pod:486
24408 msgid ""
24409 "Note that this option I<does not create> the output format.  This option "
24410 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24411 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
24412 "SPARSE RAW FORMATS>."
24413 msgstr ""
24414
24415 #. type: textblock
24416 #: ../resize/virt-resize.pod:495
24417 msgid "Don't print the summary."
24418 msgstr ""
24419
24420 #. type: =item
24421 #: ../resize/virt-resize.pod:497
24422 msgid "B<--resize part=size>"
24423 msgstr "B<--resize розділ=розмір>"
24424
24425 #. type: textblock
24426 #: ../resize/virt-resize.pod:499
24427 msgid ""
24428 "Resize the named partition (expanding or shrinking it) so that it has the "
24429 "given size."
24430 msgstr ""
24431
24432 #. type: textblock
24433 #: ../resize/virt-resize.pod:502
24434 msgid ""
24435 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24436 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24437 "size; or as a relative number or percentage.  For example:"
24438 msgstr ""
24439
24440 #. type: verbatim
24441 #: ../resize/virt-resize.pod:508
24442 #, no-wrap
24443 msgid ""
24444 " --resize /dev/sda2=10G\n"
24445 "\n"
24446 msgstr ""
24447
24448 #. type: verbatim
24449 #: ../resize/virt-resize.pod:510
24450 #, no-wrap
24451 msgid ""
24452 " --resize /dev/sda4=90%\n"
24453 "\n"
24454 msgstr ""
24455
24456 #. type: verbatim
24457 #: ../resize/virt-resize.pod:512
24458 #, no-wrap
24459 msgid ""
24460 " --resize /dev/sda2=+1G\n"
24461 "\n"
24462 msgstr ""
24463
24464 #. type: verbatim
24465 #: ../resize/virt-resize.pod:514
24466 #, no-wrap
24467 msgid ""
24468 " --resize /dev/sda2=-200M\n"
24469 "\n"
24470 msgstr ""
24471
24472 #. type: verbatim
24473 #: ../resize/virt-resize.pod:516
24474 #, no-wrap
24475 msgid ""
24476 " --resize /dev/sda1=+128K\n"
24477 "\n"
24478 msgstr ""
24479
24480 #. type: verbatim
24481 #: ../resize/virt-resize.pod:518
24482 #, no-wrap
24483 msgid ""
24484 " --resize /dev/sda1=+10%\n"
24485 "\n"
24486 msgstr ""
24487
24488 #. type: verbatim
24489 #: ../resize/virt-resize.pod:520
24490 #, no-wrap
24491 msgid ""
24492 " --resize /dev/sda1=-10%\n"
24493 "\n"
24494 msgstr ""
24495
24496 #. type: textblock
24497 #: ../resize/virt-resize.pod:522
24498 msgid ""
24499 "You can increase the size of any partition.  Virt-resize will expand the "
24500 "direct content of the partition if it knows how (see I<--expand> below)."
24501 msgstr ""
24502
24503 #. type: textblock
24504 #: ../resize/virt-resize.pod:526
24505 msgid ""
24506 "You can only I<decrease> the size of partitions that contain filesystems or "
24507 "PVs which have already been shrunk.  Virt-resize will check this has been "
24508 "done before proceeding, or else will print an error (see also I<--resize-"
24509 "force>)."
24510 msgstr ""
24511
24512 #. type: =item
24513 #: ../resize/virt-resize.pod:533
24514 msgid "B<--resize-force part=size>"
24515 msgstr "B<--resize-force розділ=розмір>"
24516
24517 #. type: textblock
24518 #: ../resize/virt-resize.pod:535
24519 msgid ""
24520 "This is the same as I<--resize> except that it will let you decrease the "
24521 "size of any partition.  Generally this means you will lose any data which "
24522 "was at the end of the partition you shrink, but you may not care about that "
24523 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24524 "as a swap partition)."
24525 msgstr ""
24526
24527 #. type: textblock
24528 #: ../resize/virt-resize.pod:541
24529 msgid "See also the I<--ignore> option."
24530 msgstr ""
24531
24532 #. type: =item
24533 #: ../resize/virt-resize.pod:543
24534 msgid "B<--shrink part>"
24535 msgstr "B<--shrink розділ>"
24536
24537 #. type: textblock
24538 #: ../resize/virt-resize.pod:545
24539 msgid ""
24540 "Shrink the named partition until the overall disk image fits in the "
24541 "destination.  The named partition B<must> contain a filesystem or PV which "
24542 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24543 "online tools).  Virt-resize will check this and give an error if it has not "
24544 "been done."
24545 msgstr ""
24546
24547 #. type: textblock
24548 #: ../resize/virt-resize.pod:551
24549 msgid ""
24550 "The amount by which the overall disk must be shrunk (after carrying out all "
24551 "other operations requested by the user) is called the \"deficit\".  For "
24552 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24553 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24554 "would give an error unless the user specified a partition to shrink and that "
24555 "partition had more than a gigabyte of free space."
24556 msgstr ""
24557
24558 #. type: =head1
24559 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
24560 msgid "MACHINE READABLE OUTPUT"
24561 msgstr ""
24562
24563 #. type: textblock
24564 #: ../resize/virt-resize.pod:571
24565 msgid ""
24566 "The I<--machine-readable> option can be used to make the output more machine "
24567 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24568 "etc."
24569 msgstr ""
24570
24571 #. type: textblock
24572 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
24573 msgid "There are two ways to use this option."
24574 msgstr ""
24575
24576 #. type: textblock
24577 #: ../resize/virt-resize.pod:577
24578 msgid ""
24579 "Firstly use the option on its own to query the capabilities of the virt-"
24580 "resize binary.  Typical output looks like this:"
24581 msgstr ""
24582
24583 #. type: verbatim
24584 #: ../resize/virt-resize.pod:580
24585 #, no-wrap
24586 msgid ""
24587 " $ virt-resize --machine-readable\n"
24588 " virt-resize\n"
24589 " ntfsresize-force\n"
24590 " 32bitok\n"
24591 " ntfs\n"
24592 " btrfs\n"
24593 "\n"
24594 msgstr ""
24595
24596 #. type: textblock
24597 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
24598 msgid ""
24599 "A list of features is printed, one per line, and the program exits with "
24600 "status 0."
24601 msgstr ""
24602
24603 #. type: textblock
24604 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
24605 msgid ""
24606 "Secondly use the option in conjunction with other options to make the "
24607 "regular program output more machine friendly."
24608 msgstr ""
24609
24610 #. type: textblock
24611 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
24612 msgid "At the moment this means:"
24613 msgstr ""
24614
24615 #. type: textblock
24616 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
24617 msgid ""
24618 "Progress bar messages can be parsed from stdout by looking for this regular "
24619 "expression:"
24620 msgstr ""
24621
24622 #. type: verbatim
24623 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
24624 #, no-wrap
24625 msgid ""
24626 " ^[0-9]+/[0-9]+$\n"
24627 "\n"
24628 msgstr ""
24629
24630 #. type: textblock
24631 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
24632 msgid ""
24633 "The calling program should treat messages sent to stdout (except for "
24634 "progress bar messages) as status messages.  They can be logged and/or "
24635 "displayed to the user."
24636 msgstr ""
24637
24638 #. type: textblock
24639 #: ../resize/virt-resize.pod:612
24640 msgid ""
24641 "The calling program should treat messages sent to stderr as error messages.  "
24642 "In addition, virt-resize exits with a non-zero status code if there was a "
24643 "fatal error."
24644 msgstr ""
24645
24646 #. type: textblock
24647 #: ../resize/virt-resize.pod:618
24648 msgid ""
24649 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24650 "readable> option and will return an error."
24651 msgstr ""
24652
24653 #. type: =head2
24654 #: ../resize/virt-resize.pod:623
24655 msgid "\"Partition 1 does not end on cylinder boundary.\""
24656 msgstr ""
24657
24658 #. type: textblock
24659 #: ../resize/virt-resize.pod:625
24660 msgid ""
24661 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24662 "alignment> parameter).  Usually this means the partitions will not be "
24663 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24664 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24665 "drives.  Alignment of partitions to cylinders is not required by any modern "
24666 "operating system."
24667 msgstr ""
24668
24669 #. type: =head2
24670 #: ../resize/virt-resize.pod:632
24671 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24672 msgstr ""
24673
24674 #. type: textblock
24675 #: ../resize/virt-resize.pod:634
24676 msgid ""
24677 "In Windows Vista and later versions, Microsoft switched to using a separate "
24678 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24679 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24680 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24681 "the second partition (ie. C: drive)  should work."
24682 msgstr ""
24683
24684 #. type: textblock
24685 #: ../resize/virt-resize.pod:641
24686 msgid ""
24687 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24688 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24689 "it find errors) is nothing to worry about."
24690 msgstr ""
24691
24692 #. type: =head2
24693 #: ../resize/virt-resize.pod:645
24694 msgid "GUEST BOOT STUCK AT \"GRUB\""
24695 msgstr ""
24696
24697 #. type: textblock
24698 #: ../resize/virt-resize.pod:647
24699 msgid ""
24700 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24701 "printing C<GRUB> on the console, try reinstalling grub."
24702 msgstr ""
24703
24704 #. type: verbatim
24705 #: ../resize/virt-resize.pod:650
24706 #, no-wrap
24707 msgid ""
24708 " guestfish -i -a newdisk\n"
24709 " ><fs> cat /boot/grub/device.map\n"
24710 " # check the contents of this file are sensible or\n"
24711 " # edit the file if necessary\n"
24712 " ><fs> grub-install / /dev/vda\n"
24713 " ><fs> exit\n"
24714 "\n"
24715 msgstr ""
24716
24717 #. type: textblock
24718 #: ../resize/virt-resize.pod:657
24719 msgid ""
24720 "For more flexible guest reconfiguration, including if you need to specify "
24721 "other parameters to grub-install, use L<virt-rescue(1)>."
24722 msgstr ""
24723
24724 #. type: =head1
24725 #: ../resize/virt-resize.pod:660
24726 msgid "ALTERNATIVE TOOLS"
24727 msgstr ""
24728
24729 #. type: textblock
24730 #: ../resize/virt-resize.pod:662
24731 msgid ""
24732 "There are several proprietary tools for resizing partitions.  We won't "
24733 "mention any here."
24734 msgstr ""
24735
24736 #. type: textblock
24737 #: ../resize/virt-resize.pod:665
24738 msgid ""
24739 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24740 "operations on disk images.  They can resize and move partitions, but I don't "
24741 "think they can do anything with the contents, and they certainly don't "
24742 "understand LVM."
24743 msgstr ""
24744
24745 #. type: textblock
24746 #: ../resize/virt-resize.pod:670
24747 msgid ""
24748 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24749 "but at a much lower level.  You will probably end up hand-calculating sector "
24750 "offsets, which is something that virt-resize was designed to avoid.  If you "
24751 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24752 "I<--debug> flag."
24753 msgstr ""
24754
24755 #. type: textblock
24756 #: ../resize/virt-resize.pod:690
24757 msgid ""
24758 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24759 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24760 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24761 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24762 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24763 msgstr ""
24764
24765 #. type: textblock
24766 #: ../ruby/examples/guestfs-ruby.pod:5
24767 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24768 msgstr ""
24769
24770 #. type: verbatim
24771 #: ../ruby/examples/guestfs-ruby.pod:9
24772 #, no-wrap
24773 msgid ""
24774 " require 'guestfs'\n"
24775 " g = Guestfs::Guestfs.new()\n"
24776 " g.add_drive_opts(\"disk.img\",\n"
24777 "                  :readonly => 1, :format => \"raw\")\n"
24778 " g.launch()\n"
24779 "\n"
24780 msgstr ""
24781
24782 #. type: textblock
24783 #: ../ruby/examples/guestfs-ruby.pod:17
24784 msgid ""
24785 "This manual page documents how to call libguestfs from the Ruby programming "
24786 "language.  This page just documents the differences from the C API and gives "
24787 "some examples.  If you are not familiar with using libguestfs, you also need "
24788 "to read L<guestfs(3)>."
24789 msgstr ""
24790
24791 #. type: textblock
24792 #: ../ruby/examples/guestfs-ruby.pod:24
24793 msgid ""
24794 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24795 "This has a single parameter which is the error message (a string)."
24796 msgstr ""
24797
24798 #. type: textblock
24799 #: ../ruby/examples/guestfs-ruby.pod:38
24800 msgid ""
24801 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24802 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24803 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24804 msgstr ""
24805
24806 #. type: textblock
24807 #: ../sparsify/virt-sparsify.pod:5
24808 msgid "virt-sparsify - Make a virtual machine disk sparse"
24809 msgstr ""
24810
24811 #. type: verbatim
24812 #: ../sparsify/virt-sparsify.pod:9
24813 #, no-wrap
24814 msgid ""
24815 " virt-sparsify [--options] indisk outdisk\n"
24816 "\n"
24817 msgstr ""
24818
24819 #. type: textblock
24820 #: ../sparsify/virt-sparsify.pod:13
24821 msgid ""
24822 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24823 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24824 "the disk image can be converted back to free space on the host."
24825 msgstr ""
24826
24827 #. type: textblock
24828 #: ../sparsify/virt-sparsify.pod:18
24829 msgid ""
24830 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24831 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24832 msgstr ""
24833
24834 #. type: textblock
24835 #: ../sparsify/virt-sparsify.pod:21
24836 msgid ""
24837 "Virt-sparsify can also convert between some disk formats, for example "
24838 "converting a raw disk image to a thin-provisioned qcow2 image."
24839 msgstr ""
24840
24841 #. type: textblock
24842 #: ../sparsify/virt-sparsify.pod:24
24843 msgid ""
24844 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24845 "machines.  If a virtual machine has more than one attached disk, you must "
24846 "sparsify each one separately."
24847 msgstr ""
24848
24849 #. type: =head2
24850 #: ../sparsify/virt-sparsify.pod:28
24851 msgid "IMPORTANT LIMITATIONS"
24852 msgstr ""
24853
24854 #. type: textblock
24855 #: ../sparsify/virt-sparsify.pod:34
24856 msgid ""
24857 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24858 "image to a destination image, leaving the source unchanged.  I<Check that "
24859 "the sparsification was successful before deleting the source image>."
24860 msgstr ""
24861
24862 #. type: textblock
24863 #: ../sparsify/virt-sparsify.pod:41
24864 msgid "The virtual machine I<must be shut down> before using this tool."
24865 msgstr ""
24866
24867 #. type: textblock
24868 #: ../sparsify/virt-sparsify.pod:45
24869 msgid ""
24870 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24871 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24872 "usually much less space is required."
24873 msgstr ""
24874
24875 #. type: textblock
24876 #: ../sparsify/virt-sparsify.pod:51
24877 msgid ""
24878 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24879 msgstr ""
24880
24881 #. type: textblock
24882 #: ../sparsify/virt-sparsify.pod:56
24883 msgid "Virt-sparsify cannot handle encrypted disks."
24884 msgstr ""
24885
24886 #. type: textblock
24887 #: ../sparsify/virt-sparsify.pod:60
24888 msgid ""
24889 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24890 "this space is often used for critical items like bootloaders so it's not "
24891 "really unused."
24892 msgstr ""
24893
24894 #. type: textblock
24895 #: ../sparsify/virt-sparsify.pod:66
24896 msgid ""
24897 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24898 "to do this unless we can be sure there is no hibernation data, so at the "
24899 "moment swap partitions are ignored."
24900 msgstr ""
24901
24902 #. type: textblock
24903 #: ../sparsify/virt-sparsify.pod:72
24904 msgid ""
24905 "You may also want to read the manual pages for the associated tools L<virt-"
24906 "filesystems(1)> and L<virt-df(1)> before starting."
24907 msgstr ""
24908
24909 #. type: textblock
24910 #: ../sparsify/virt-sparsify.pod:77
24911 msgid "Typical usage is:"
24912 msgstr ""
24913
24914 #. type: verbatim
24915 #: ../sparsify/virt-sparsify.pod:79
24916 #, no-wrap
24917 msgid ""
24918 " virt-sparsify indisk outdisk\n"
24919 "\n"
24920 msgstr ""
24921
24922 #. type: textblock
24923 #: ../sparsify/virt-sparsify.pod:81
24924 msgid ""
24925 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24926 "is created, or overwritten if it already exists.  The format of the input "
24927 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24928 msgstr ""
24929
24930 #. type: textblock
24931 #: ../sparsify/virt-sparsify.pod:86
24932 msgid "To convert between formats, use the I<--convert> option:"
24933 msgstr ""
24934
24935 #. type: verbatim
24936 #: ../sparsify/virt-sparsify.pod:88
24937 #, no-wrap
24938 msgid ""
24939 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24940 "\n"
24941 msgstr ""
24942
24943 #. type: textblock
24944 #: ../sparsify/virt-sparsify.pod:90
24945 msgid ""
24946 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24947 "can find within the source disk image.  You can get it to ignore (don't zero "
24948 "free space on) certain filesystems by doing:"
24949 msgstr ""
24950
24951 #. type: verbatim
24952 #: ../sparsify/virt-sparsify.pod:94
24953 #, no-wrap
24954 msgid ""
24955 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24956 "\n"
24957 msgstr ""
24958
24959 #. type: textblock
24960 #: ../sparsify/virt-sparsify.pod:96
24961 msgid ""
24962 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24963 msgstr ""
24964
24965 #. type: =item
24966 #: ../sparsify/virt-sparsify.pod:107
24967 msgid "B<--convert> raw"
24968 msgstr ""
24969
24970 #. type: =item
24971 #: ../sparsify/virt-sparsify.pod:109
24972 msgid "B<--convert> qcow2"
24973 msgstr ""
24974
24975 #. type: =item
24976 #: ../sparsify/virt-sparsify.pod:111
24977 msgid "B<--convert> [other formats]"
24978 msgstr ""
24979
24980 #. type: textblock
24981 #: ../sparsify/virt-sparsify.pod:113
24982 msgid ""
24983 "Use C<output-format> as the format for the destination image.  If this is "
24984 "not specified, then the input format is used."
24985 msgstr ""
24986
24987 #. type: textblock
24988 #: ../sparsify/virt-sparsify.pod:116
24989 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24990 msgstr ""
24991
24992 #. type: textblock
24993 #: ../sparsify/virt-sparsify.pod:118
24994 msgid ""
24995 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24996 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24997 msgstr ""
24998
24999 #. type: textblock
25000 #: ../sparsify/virt-sparsify.pod:122
25001 msgid ""
25002 "Specifying the I<--convert> option is usually a good idea, because then virt-"
25003 "sparsify doesn't need to try to guess the input format."
25004 msgstr ""
25005
25006 #. type: =item
25007 #: ../sparsify/virt-sparsify.pod:127
25008 msgid "B<--format> qcow2"
25009 msgstr ""
25010
25011 #. type: =item
25012 #: ../sparsify/virt-sparsify.pod:135
25013 msgid "B<--ignore> filesystem"
25014 msgstr ""
25015
25016 #. type: =item
25017 #: ../sparsify/virt-sparsify.pod:137
25018 msgid "B<--ignore> volgroup"
25019 msgstr ""
25020
25021 #. type: textblock
25022 #: ../sparsify/virt-sparsify.pod:139
25023 msgid ""
25024 "Ignore the named filesystem.  Free space on the filesystem will not be "
25025 "zeroed, but existing blocks of zeroes will still be sparsified."
25026 msgstr ""
25027
25028 #. type: textblock
25029 #: ../sparsify/virt-sparsify.pod:142
25030 msgid ""
25031 "In the second form, this ignores the named volume group.  Use the volume "
25032 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
25033 msgstr ""
25034
25035 #. type: textblock
25036 #: ../sparsify/virt-sparsify.pod:157
25037 msgid "This disables progress bars and other unnecessary output."
25038 msgstr ""
25039
25040 #. type: textblock
25041 #: ../sparsify/virt-sparsify.pod:179
25042 msgid ""
25043 "The I<--machine-readable> option can be used to make the output more machine "
25044 "friendly, which is useful when calling virt-sparsify from other programs, "
25045 "GUIs etc."
25046 msgstr ""
25047
25048 #. type: textblock
25049 #: ../sparsify/virt-sparsify.pod:185
25050 msgid ""
25051 "Firstly use the option on its own to query the capabilities of the virt-"
25052 "sparsify binary.  Typical output looks like this:"
25053 msgstr ""
25054
25055 #. type: verbatim
25056 #: ../sparsify/virt-sparsify.pod:188
25057 #, no-wrap
25058 msgid ""
25059 " $ virt-sparsify --machine-readable\n"
25060 " virt-sparsify\n"
25061 " ntfs\n"
25062 " btrfs\n"
25063 "\n"
25064 msgstr ""
25065
25066 #. type: textblock
25067 #: ../sparsify/virt-sparsify.pod:218
25068 msgid ""
25069 "The calling program should treat messages sent to stderr as error messages.  "
25070 "In addition, virt-sparsify exits with a non-zero status code if there was a "
25071 "fatal error."
25072 msgstr ""
25073
25074 #. type: textblock
25075 #: ../sparsify/virt-sparsify.pod:224
25076 msgid ""
25077 "All versions of virt-sparsify have supported the I<--machine-readable> "
25078 "option."
25079 msgstr ""
25080
25081 #. type: textblock
25082 #: ../sparsify/virt-sparsify.pod:238
25083 msgid ""
25084 "Location of the temporary directory used for the potentially large temporary "
25085 "overlay file."
25086 msgstr ""
25087
25088 #. type: textblock
25089 #: ../sparsify/virt-sparsify.pod:241
25090 msgid ""
25091 "You should ensure there is enough free space in the worst case for a full "
25092 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
25093 "to another directory that has enough space."
25094 msgstr ""
25095
25096 #. type: textblock
25097 #: ../sparsify/virt-sparsify.pod:245
25098 msgid "This defaults to C</tmp>."
25099 msgstr ""
25100
25101 #. type: textblock
25102 #: ../sparsify/virt-sparsify.pod:249
25103 msgid ""
25104 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
25105 msgstr ""
25106
25107 #. type: textblock
25108 #: ../sparsify/virt-sparsify.pod:253
25109 msgid ""
25110 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
25111 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
25112 "(1)>, L<http://libguestfs.org/>."
25113 msgstr ""
25114
25115 #. type: =head2
25116 #: ../src/guestfs-actions.pod:1
25117 msgid "guestfs_add_cdrom"
25118 msgstr ""
25119
25120 #. type: verbatim
25121 #: ../src/guestfs-actions.pod:3
25122 #, no-wrap
25123 msgid ""
25124 " int\n"
25125 " guestfs_add_cdrom (guestfs_h *g,\n"
25126 "                    const char *filename);\n"
25127 "\n"
25128 msgstr ""
25129
25130 #. type: textblock
25131 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:255
25132 #: ../src/guestfs-actions.pod:276
25133 msgid ""
25134 "I<This function is deprecated.> In new code, use the L</"
25135 "guestfs_add_drive_opts> call instead."
25136 msgstr ""
25137
25138 #. type: textblock
25139 #: ../src/guestfs-actions.pod:24
25140 msgid ""
25141 "This call checks for the existence of C<filename>.  This stops you from "
25142 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25143 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
25144 "instead."
25145 msgstr ""
25146
25147 #. type: textblock
25148 #: ../src/guestfs-actions.pod:31
25149 msgid ""
25150 "If you just want to add an ISO file (often you use this as an efficient way "
25151 "to transfer large files into the guest), then you should probably use "
25152 "C<guestfs_add_drive_ro> instead."
25153 msgstr ""
25154
25155 #. type: textblock
25156 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
25157 #: ../src/guestfs-actions.pod:207 ../src/guestfs-actions.pod:244
25158 #: ../src/guestfs-actions.pod:265 ../src/guestfs-actions.pod:286
25159 #: ../src/guestfs-actions.pod:299 ../src/guestfs-actions.pod:313
25160 #: ../src/guestfs-actions.pod:433 ../src/guestfs-actions.pod:453
25161 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:512
25162 #: ../src/guestfs-actions.pod:540 ../src/guestfs-actions.pod:558
25163 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:658
25164 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:687
25165 #: ../src/guestfs-actions.pod:786 ../src/guestfs-actions.pod:804
25166 #: ../src/guestfs-actions.pod:818 ../src/guestfs-actions.pod:832
25167 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:1052
25168 #: ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1090
25169 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1239
25170 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1325
25171 #: ../src/guestfs-actions.pod:1376 ../src/guestfs-actions.pod:1427
25172 #: ../src/guestfs-actions.pod:1483 ../src/guestfs-actions.pod:1535
25173 #: ../src/guestfs-actions.pod:1554 ../src/guestfs-actions.pod:1568
25174 #: ../src/guestfs-actions.pod:1596 ../src/guestfs-actions.pod:1666
25175 #: ../src/guestfs-actions.pod:1697 ../src/guestfs-actions.pod:1722
25176 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1877
25177 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:2119
25178 #: ../src/guestfs-actions.pod:2141 ../src/guestfs-actions.pod:2228
25179 #: ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:2880
25180 #: ../src/guestfs-actions.pod:2941 ../src/guestfs-actions.pod:2976
25181 #: ../src/guestfs-actions.pod:4033 ../src/guestfs-actions.pod:4048
25182 #: ../src/guestfs-actions.pod:4073 ../src/guestfs-actions.pod:4262
25183 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:4289
25184 #: ../src/guestfs-actions.pod:4303 ../src/guestfs-actions.pod:4318
25185 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:4426
25186 #: ../src/guestfs-actions.pod:4446 ../src/guestfs-actions.pod:4463
25187 #: ../src/guestfs-actions.pod:4486 ../src/guestfs-actions.pod:4509
25188 #: ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4563
25189 #: ../src/guestfs-actions.pod:4582 ../src/guestfs-actions.pod:4617
25190 #: ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4665
25191 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4694
25192 #: ../src/guestfs-actions.pod:4709 ../src/guestfs-actions.pod:4726
25193 #: ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4839
25194 #: ../src/guestfs-actions.pod:4852 ../src/guestfs-actions.pod:4903
25195 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:4939
25196 #: ../src/guestfs-actions.pod:4955 ../src/guestfs-actions.pod:4969
25197 #: ../src/guestfs-actions.pod:4983 ../src/guestfs-actions.pod:5000
25198 #: ../src/guestfs-actions.pod:5015 ../src/guestfs-actions.pod:5042
25199 #: ../src/guestfs-actions.pod:5105 ../src/guestfs-actions.pod:5178
25200 #: ../src/guestfs-actions.pod:5209 ../src/guestfs-actions.pod:5228
25201 #: ../src/guestfs-actions.pod:5247 ../src/guestfs-actions.pod:5259
25202 #: ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5289
25203 #: ../src/guestfs-actions.pod:5304 ../src/guestfs-actions.pod:5319
25204 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5377
25205 #: ../src/guestfs-actions.pod:5416 ../src/guestfs-actions.pod:5436
25206 #: ../src/guestfs-actions.pod:5450 ../src/guestfs-actions.pod:5467
25207 #: ../src/guestfs-actions.pod:5516 ../src/guestfs-actions.pod:5569
25208 #: ../src/guestfs-actions.pod:5616 ../src/guestfs-actions.pod:5659
25209 #: ../src/guestfs-actions.pod:5687 ../src/guestfs-actions.pod:5704
25210 #: ../src/guestfs-actions.pod:5722 ../src/guestfs-actions.pod:5862
25211 #: ../src/guestfs-actions.pod:5919 ../src/guestfs-actions.pod:5941
25212 #: ../src/guestfs-actions.pod:5959 ../src/guestfs-actions.pod:6009
25213 #: ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6092
25214 #: ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6119
25215 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427
25216 #: ../src/guestfs-actions.pod:6446 ../src/guestfs-actions.pod:6460
25217 #: ../src/guestfs-actions.pod:6472 ../src/guestfs-actions.pod:6486
25218 #: ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6512
25219 #: ../src/guestfs-actions.pod:6528 ../src/guestfs-actions.pod:6549
25220 #: ../src/guestfs-actions.pod:6568 ../src/guestfs-actions.pod:6587
25221 #: ../src/guestfs-actions.pod:6617 ../src/guestfs-actions.pod:6635
25222 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6676
25223 #: ../src/guestfs-actions.pod:6695 ../src/guestfs-actions.pod:6716
25224 #: ../src/guestfs-actions.pod:6735 ../src/guestfs-actions.pod:6752
25225 #: ../src/guestfs-actions.pod:6771 ../src/guestfs-actions.pod:6799
25226 #: ../src/guestfs-actions.pod:6823 ../src/guestfs-actions.pod:6842
25227 #: ../src/guestfs-actions.pod:6858 ../src/guestfs-actions.pod:6882
25228 #: ../src/guestfs-actions.pod:6901 ../src/guestfs-actions.pod:6916
25229 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6979
25230 #: ../src/guestfs-actions.pod:7009 ../src/guestfs-actions.pod:7042
25231 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7278
25232 #: ../src/guestfs-actions.pod:7290 ../src/guestfs-actions.pod:7303
25233 #: ../src/guestfs-actions.pod:7316 ../src/guestfs-actions.pod:7338
25234 #: ../src/guestfs-actions.pod:7351 ../src/guestfs-actions.pod:7364
25235 #: ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7392
25236 #: ../src/guestfs-actions.pod:7451 ../src/guestfs-actions.pod:7468
25237 #: ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7500
25238 #: ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7530
25239 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7586
25240 #: ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7641
25241 #: ../src/guestfs-actions.pod:7654 ../src/guestfs-actions.pod:7672
25242 #: ../src/guestfs-actions.pod:7706 ../src/guestfs-actions.pod:7742
25243 #: ../src/guestfs-actions.pod:7858 ../src/guestfs-actions.pod:7873
25244 #: ../src/guestfs-actions.pod:7887 ../src/guestfs-actions.pod:7942
25245 #: ../src/guestfs-actions.pod:7955 ../src/guestfs-actions.pod:8000
25246 #: ../src/guestfs-actions.pod:8040 ../src/guestfs-actions.pod:8096
25247 #: ../src/guestfs-actions.pod:8116 ../src/guestfs-actions.pod:8149
25248 #: ../src/guestfs-actions.pod:8213 ../src/guestfs-actions.pod:8236
25249 #: ../src/guestfs-actions.pod:8265
25250 msgid "This function returns 0 on success or -1 on error."
25251 msgstr ""
25252
25253 #. type: textblock
25254 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
25255 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:2342
25256 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:2565
25257 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4055
25258 #: ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:6637
25259 #: ../src/guestfs-actions.pod:6754 ../src/guestfs-actions.pod:6903
25260 #: ../src/guestfs-actions.pod:7394 ../src/guestfs-actions.pod:7519
25261 #: ../src/guestfs-actions.pod:8042
25262 msgid "(Added in 0.3)"
25263 msgstr "(Додано у 0.3)"
25264
25265 #. type: =head2
25266 #: ../src/guestfs-actions.pod:41
25267 msgid "guestfs_add_domain"
25268 msgstr ""
25269
25270 #. type: verbatim
25271 #: ../src/guestfs-actions.pod:43
25272 #, no-wrap
25273 msgid ""
25274 " int\n"
25275 " guestfs_add_domain (guestfs_h *g,\n"
25276 "                     const char *dom,\n"
25277 "                     ...);\n"
25278 "\n"
25279 msgstr ""
25280
25281 #. type: textblock
25282 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
25283 #: ../src/guestfs-actions.pod:843 ../src/guestfs-actions.pod:1167
25284 #: ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:1297
25285 #: ../src/guestfs-actions.pod:1364 ../src/guestfs-actions.pod:1415
25286 #: ../src/guestfs-actions.pod:1466 ../src/guestfs-actions.pod:3233
25287 #: ../src/guestfs-actions.pod:5054 ../src/guestfs-actions.pod:5363
25288 #: ../src/guestfs-actions.pod:5580
25289 msgid ""
25290 "You may supply a list of optional arguments to this call.  Use zero or more "
25291 "of the following pairs of parameters, and terminate the list with C<-1> on "
25292 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25293 msgstr ""
25294
25295 #. type: verbatim
25296 #: ../src/guestfs-actions.pod:53
25297 #, no-wrap
25298 msgid ""
25299 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25300 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25301 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25302 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25303 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25304 "\n"
25305 msgstr ""
25306
25307 #. type: textblock
25308 #: ../src/guestfs-actions.pod:59
25309 msgid ""
25310 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25311 "It works by connecting to libvirt, requesting the domain and domain XML from "
25312 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25313 "one."
25314 msgstr ""
25315
25316 #. type: textblock
25317 #: ../src/guestfs-actions.pod:94
25318 msgid ""
25319 "The other optional parameters are passed directly through to "
25320 "C<guestfs_add_drive_opts>."
25321 msgstr ""
25322
25323 #. type: textblock
25324 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:356
25325 #: ../src/guestfs-actions.pod:526 ../src/guestfs-actions.pod:704
25326 #: ../src/guestfs-actions.pod:735 ../src/guestfs-actions.pod:753
25327 #: ../src/guestfs-actions.pod:772 ../src/guestfs-actions.pod:1742
25328 #: ../src/guestfs-actions.pod:2098 ../src/guestfs-actions.pod:2301
25329 #: ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2463
25330 #: ../src/guestfs-actions.pod:2515 ../src/guestfs-actions.pod:2529
25331 #: ../src/guestfs-actions.pod:2552 ../src/guestfs-actions.pod:2867
25332 #: ../src/guestfs-actions.pod:3351 ../src/guestfs-actions.pod:3369
25333 #: ../src/guestfs-actions.pod:5539 ../src/guestfs-actions.pod:5759
25334 #: ../src/guestfs-actions.pod:5997 ../src/guestfs-actions.pod:6189
25335 #: ../src/guestfs-actions.pod:6215 ../src/guestfs-actions.pod:7627
25336 #: ../src/guestfs-actions.pod:8053 ../src/guestfs-actions.pod:8066
25337 #: ../src/guestfs-actions.pod:8079
25338 msgid "On error this function returns -1."
25339 msgstr ""
25340
25341 #. type: textblock
25342 #: ../src/guestfs-actions.pod:99
25343 msgid "(Added in 1.7.4)"
25344 msgstr "(Додано у 1.7.4)"
25345
25346 #. type: =head2
25347 #: ../src/guestfs-actions.pod:101
25348 msgid "guestfs_add_domain_va"
25349 msgstr ""
25350
25351 #. type: verbatim
25352 #: ../src/guestfs-actions.pod:103
25353 #, no-wrap
25354 msgid ""
25355 " int\n"
25356 " guestfs_add_domain_va (guestfs_h *g,\n"
25357 "                        const char *dom,\n"
25358 "                        va_list args);\n"
25359 "\n"
25360 msgstr ""
25361
25362 #. type: textblock
25363 #: ../src/guestfs-actions.pod:108
25364 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25365 msgstr ""
25366
25367 #. type: textblock
25368 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
25369 #: ../src/guestfs-actions.pod:220 ../src/guestfs-actions.pod:231
25370 #: ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:893
25371 #: ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1208
25372 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1267
25373 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1354
25374 #: ../src/guestfs-actions.pod:1393 ../src/guestfs-actions.pod:1405
25375 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
25376 #: ../src/guestfs-actions.pod:1500 ../src/guestfs-actions.pod:1512
25377 #: ../src/guestfs-actions.pod:3317 ../src/guestfs-actions.pod:3329
25378 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5131
25379 #: ../src/guestfs-actions.pod:5391 ../src/guestfs-actions.pod:5403
25380 #: ../src/guestfs-actions.pod:5629 ../src/guestfs-actions.pod:5640
25381 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25382 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25383
25384 #. type: =head2
25385 #: ../src/guestfs-actions.pod:112
25386 msgid "guestfs_add_domain_argv"
25387 msgstr "guestfs_add_domain_argv"
25388
25389 #. type: verbatim
25390 #: ../src/guestfs-actions.pod:114
25391 #, no-wrap
25392 msgid ""
25393 " int\n"
25394 " guestfs_add_domain_argv (guestfs_h *g,\n"
25395 "                          const char *dom,\n"
25396 "                          const struct guestfs_add_domain_argv *optargs);\n"
25397 "\n"
25398 msgstr ""
25399
25400 #. type: textblock
25401 #: ../src/guestfs-actions.pod:119
25402 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25403 msgstr ""
25404
25405 #. type: =head2
25406 #: ../src/guestfs-actions.pod:123
25407 msgid "guestfs_add_drive"
25408 msgstr ""
25409
25410 #. type: verbatim
25411 #: ../src/guestfs-actions.pod:125
25412 #, no-wrap
25413 msgid ""
25414 " int\n"
25415 " guestfs_add_drive (guestfs_h *g,\n"
25416 "                    const char *filename);\n"
25417 "\n"
25418 msgstr ""
25419
25420 #. type: textblock
25421 #: ../src/guestfs-actions.pod:129
25422 msgid ""
25423 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25424 "optional parameters, so the disk is added writable, with the format being "
25425 "detected automatically."
25426 msgstr ""
25427
25428 #. type: textblock
25429 #: ../src/guestfs-actions.pod:133
25430 msgid ""
25431 "Automatic detection of the format opens you up to a potential security hole "
25432 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25433 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25434 "you should think about replacing calls to this function with calls to "
25435 "C<guestfs_add_drive_opts>, and specifying the format."
25436 msgstr ""
25437
25438 #. type: =head2
25439 #: ../src/guestfs-actions.pod:144
25440 msgid "guestfs_add_drive_opts"
25441 msgstr ""
25442
25443 #. type: verbatim
25444 #: ../src/guestfs-actions.pod:146
25445 #, no-wrap
25446 msgid ""
25447 " int\n"
25448 " guestfs_add_drive_opts (guestfs_h *g,\n"
25449 "                         const char *filename,\n"
25450 "                         ...);\n"
25451 "\n"
25452 msgstr ""
25453
25454 #. type: verbatim
25455 #: ../src/guestfs-actions.pod:156
25456 #, no-wrap
25457 msgid ""
25458 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25459 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25460 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25461 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25462 "\n"
25463 msgstr ""
25464
25465 #. type: textblock
25466 #: ../src/guestfs-actions.pod:186
25467 msgid ""
25468 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25469 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25470 "Possible formats include C<raw> and C<qcow2>."
25471 msgstr ""
25472
25473 #. type: textblock
25474 #: ../src/guestfs-actions.pod:197
25475 msgid ""
25476 "This rarely-used option lets you emulate the behaviour of the deprecated "
25477 "C<guestfs_add_drive_with_if> call (q.v.)"
25478 msgstr ""
25479
25480 #. type: textblock
25481 #: ../src/guestfs-actions.pod:209
25482 msgid "(Added in 1.5.23)"
25483 msgstr "(Додано у 1.5.23)"
25484
25485 #. type: =head2
25486 #: ../src/guestfs-actions.pod:211
25487 msgid "guestfs_add_drive_opts_va"
25488 msgstr ""
25489
25490 #. type: verbatim
25491 #: ../src/guestfs-actions.pod:213
25492 #, no-wrap
25493 msgid ""
25494 " int\n"
25495 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25496 "                            const char *filename,\n"
25497 "                            va_list args);\n"
25498 "\n"
25499 msgstr ""
25500
25501 #. type: textblock
25502 #: ../src/guestfs-actions.pod:218
25503 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25504 msgstr ""
25505
25506 #. type: =head2
25507 #: ../src/guestfs-actions.pod:222
25508 msgid "guestfs_add_drive_opts_argv"
25509 msgstr ""
25510
25511 #. type: verbatim
25512 #: ../src/guestfs-actions.pod:224
25513 #, no-wrap
25514 msgid ""
25515 " int\n"
25516 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25517 "                              const char *filename,\n"
25518 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
25519 "\n"
25520 msgstr ""
25521
25522 #. type: textblock
25523 #: ../src/guestfs-actions.pod:229
25524 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25525 msgstr ""
25526
25527 #. type: =head2
25528 #: ../src/guestfs-actions.pod:233
25529 msgid "guestfs_add_drive_ro"
25530 msgstr ""
25531
25532 #. type: verbatim
25533 #: ../src/guestfs-actions.pod:235
25534 #, no-wrap
25535 msgid ""
25536 " int\n"
25537 " guestfs_add_drive_ro (guestfs_h *g,\n"
25538 "                       const char *filename);\n"
25539 "\n"
25540 msgstr ""
25541
25542 #. type: textblock
25543 #: ../src/guestfs-actions.pod:239
25544 msgid ""
25545 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25546 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25547 "disk is added read-only, with the format being detected automatically."
25548 msgstr ""
25549
25550 #. type: textblock
25551 #: ../src/guestfs-actions.pod:246
25552 msgid "(Added in 1.0.38)"
25553 msgstr "(Додано у 1.0.38)"
25554
25555 #. type: =head2
25556 #: ../src/guestfs-actions.pod:248
25557 msgid "guestfs_add_drive_ro_with_if"
25558 msgstr ""
25559
25560 #. type: verbatim
25561 #: ../src/guestfs-actions.pod:250
25562 #, no-wrap
25563 msgid ""
25564 " int\n"
25565 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25566 "                               const char *filename,\n"
25567 "                               const char *iface);\n"
25568 "\n"
25569 msgstr ""
25570
25571 #. type: textblock
25572 #: ../src/guestfs-actions.pod:262
25573 msgid ""
25574 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25575 "QEMU interface emulation to use at run time."
25576 msgstr ""
25577
25578 #. type: textblock
25579 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:288
25580 #: ../src/guestfs-actions.pod:2826
25581 msgid "(Added in 1.0.84)"
25582 msgstr "(Додано у 1.0.84)"
25583
25584 #. type: =head2
25585 #: ../src/guestfs-actions.pod:269
25586 msgid "guestfs_add_drive_with_if"
25587 msgstr ""
25588
25589 #. type: verbatim
25590 #: ../src/guestfs-actions.pod:271
25591 #, no-wrap
25592 msgid ""
25593 " int\n"
25594 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25595 "                            const char *filename,\n"
25596 "                            const char *iface);\n"
25597 "\n"
25598 msgstr ""
25599
25600 #. type: textblock
25601 #: ../src/guestfs-actions.pod:283
25602 msgid ""
25603 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25604 "QEMU interface emulation to use at run time."
25605 msgstr ""
25606
25607 #. type: =head2
25608 #: ../src/guestfs-actions.pod:290
25609 msgid "guestfs_aug_clear"
25610 msgstr ""
25611
25612 #. type: verbatim
25613 #: ../src/guestfs-actions.pod:292
25614 #, no-wrap
25615 msgid ""
25616 " int\n"
25617 " guestfs_aug_clear (guestfs_h *g,\n"
25618 "                    const char *augpath);\n"
25619 "\n"
25620 msgstr ""
25621
25622 #. type: textblock
25623 #: ../src/guestfs-actions.pod:301 ../src/guestfs-actions.pod:2554
25624 msgid "(Added in 1.3.4)"
25625 msgstr "(Додано у 1.3.4)"
25626
25627 #. type: =head2
25628 #: ../src/guestfs-actions.pod:303
25629 msgid "guestfs_aug_close"
25630 msgstr ""
25631
25632 #. type: verbatim
25633 #: ../src/guestfs-actions.pod:305
25634 #, no-wrap
25635 msgid ""
25636 " int\n"
25637 " guestfs_aug_close (guestfs_h *g);\n"
25638 "\n"
25639 msgstr ""
25640
25641 #. type: textblock
25642 #: ../src/guestfs-actions.pod:308
25643 msgid ""
25644 "Close the current Augeas handle and free up any resources used by it.  After "
25645 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25646 "any other Augeas functions."
25647 msgstr ""
25648
25649 #. type: textblock
25650 #: ../src/guestfs-actions.pod:315 ../src/guestfs-actions.pod:340
25651 #: ../src/guestfs-actions.pod:358 ../src/guestfs-actions.pod:372
25652 #: ../src/guestfs-actions.pod:435 ../src/guestfs-actions.pod:455
25653 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:500
25654 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:528
25655 #: ../src/guestfs-actions.pod:542 ../src/guestfs-actions.pod:560
25656 #: ../src/guestfs-actions.pod:6266
25657 msgid "(Added in 0.7)"
25658 msgstr "(Додано у 0.7)"
25659
25660 #. type: =head2
25661 #: ../src/guestfs-actions.pod:317
25662 msgid "guestfs_aug_defnode"
25663 msgstr ""
25664
25665 #. type: verbatim
25666 #: ../src/guestfs-actions.pod:319
25667 #, no-wrap
25668 msgid ""
25669 " struct guestfs_int_bool *\n"
25670 " guestfs_aug_defnode (guestfs_h *g,\n"
25671 "                      const char *name,\n"
25672 "                      const char *expr,\n"
25673 "                      const char *val);\n"
25674 "\n"
25675 msgstr ""
25676
25677 #. type: textblock
25678 #: ../src/guestfs-actions.pod:328
25679 msgid ""
25680 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25681 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25682 "containing that single node."
25683 msgstr ""
25684
25685 #. type: textblock
25686 #: ../src/guestfs-actions.pod:336
25687 msgid ""
25688 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25689 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25690 msgstr ""
25691
25692 #. type: =head2
25693 #: ../src/guestfs-actions.pod:342
25694 msgid "guestfs_aug_defvar"
25695 msgstr ""
25696
25697 #. type: verbatim
25698 #: ../src/guestfs-actions.pod:344
25699 #, no-wrap
25700 msgid ""
25701 " int\n"
25702 " guestfs_aug_defvar (guestfs_h *g,\n"
25703 "                     const char *name,\n"
25704 "                     const char *expr);\n"
25705 "\n"
25706 msgstr ""
25707
25708 #. type: =head2
25709 #: ../src/guestfs-actions.pod:360
25710 msgid "guestfs_aug_get"
25711 msgstr "guestfs_aug_get"
25712
25713 #. type: verbatim
25714 #: ../src/guestfs-actions.pod:362
25715 #, no-wrap
25716 msgid ""
25717 " char *\n"
25718 " guestfs_aug_get (guestfs_h *g,\n"
25719 "                  const char *augpath);\n"
25720 "\n"
25721 msgstr ""
25722 " char *\n"
25723 " guestfs_aug_get (guestfs_h *g,\n"
25724 "                  const char *augpath);\n"
25725 "\n"
25726
25727 #. type: textblock
25728 #: ../src/guestfs-actions.pod:369 ../src/guestfs-actions.pod:933
25729 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1011
25730 #: ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1130
25731 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1628
25732 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1781
25733 #: ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:2081
25734 #: ../src/guestfs-actions.pod:2244 ../src/guestfs-actions.pod:2261
25735 #: ../src/guestfs-actions.pod:2328 ../src/guestfs-actions.pod:2371
25736 #: ../src/guestfs-actions.pod:2392 ../src/guestfs-actions.pod:2577
25737 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2995
25738 #: ../src/guestfs-actions.pod:3097 ../src/guestfs-actions.pod:3201
25739 #: ../src/guestfs-actions.pod:3220 ../src/guestfs-actions.pod:3435
25740 #: ../src/guestfs-actions.pod:3463 ../src/guestfs-actions.pod:3484
25741 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3581
25742 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3621
25743 #: ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4601
25744 #: ../src/guestfs-actions.pod:4771 ../src/guestfs-actions.pod:4881
25745 #: ../src/guestfs-actions.pod:5777 ../src/guestfs-actions.pod:5978
25746 #: ../src/guestfs-actions.pod:6164 ../src/guestfs-actions.pod:6342
25747 #: ../src/guestfs-actions.pod:6391 ../src/guestfs-actions.pod:7063
25748 #: ../src/guestfs-actions.pod:7079 ../src/guestfs-actions.pod:7103
25749 #: ../src/guestfs-actions.pod:7127 ../src/guestfs-actions.pod:7801
25750 #: ../src/guestfs-actions.pod:7820 ../src/guestfs-actions.pod:7838
25751 #: ../src/guestfs-actions.pod:8012 ../src/guestfs-actions.pod:8329
25752 msgid ""
25753 "This function returns a string, or NULL on error.  I<The caller must free "
25754 "the returned string after use>."
25755 msgstr ""
25756
25757 #. type: =head2
25758 #: ../src/guestfs-actions.pod:374
25759 msgid "guestfs_aug_init"
25760 msgstr "guestfs_aug_init"
25761
25762 #. type: verbatim
25763 #: ../src/guestfs-actions.pod:376
25764 #, no-wrap
25765 msgid ""
25766 " int\n"
25767 " guestfs_aug_init (guestfs_h *g,\n"
25768 "                   const char *root,\n"
25769 "                   int flags);\n"
25770 "\n"
25771 msgstr ""
25772 " int\n"
25773 " guestfs_aug_init (guestfs_h *g,\n"
25774 "                   const char *root,\n"
25775 "                   int flags);\n"
25776 "\n"
25777
25778 #. type: textblock
25779 #: ../src/guestfs-actions.pod:385
25780 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25781 msgstr ""
25782
25783 #. type: textblock
25784 #: ../src/guestfs-actions.pod:410
25785 msgid ""
25786 "This option is only useful when debugging Augeas lenses.  Use of this option "
25787 "may require additional memory for the libguestfs appliance.  You may need to "
25788 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25789 "C<guestfs_set_memsize>."
25790 msgstr ""
25791
25792 #. type: textblock
25793 #: ../src/guestfs-actions.pod:425
25794 msgid "Do not load the tree in C<guestfs_aug_init>."
25795 msgstr ""
25796
25797 #. type: textblock
25798 #: ../src/guestfs-actions.pod:429
25799 msgid "To close the handle, you can call C<guestfs_aug_close>."
25800 msgstr ""
25801
25802 #. type: =head2
25803 #: ../src/guestfs-actions.pod:437
25804 msgid "guestfs_aug_insert"
25805 msgstr "guestfs_aug_insert"
25806
25807 #. type: verbatim
25808 #: ../src/guestfs-actions.pod:439
25809 #, no-wrap
25810 msgid ""
25811 " int\n"
25812 " guestfs_aug_insert (guestfs_h *g,\n"
25813 "                     const char *augpath,\n"
25814 "                     const char *label,\n"
25815 "                     int before);\n"
25816 "\n"
25817 msgstr ""
25818 " int\n"
25819 " guestfs_aug_insert (guestfs_h *g,\n"
25820 "                     const char *augpath,\n"
25821 "                     const char *label,\n"
25822 "                     int before);\n"
25823 "\n"
25824
25825 #. type: =head2
25826 #: ../src/guestfs-actions.pod:457
25827 msgid "guestfs_aug_load"
25828 msgstr "guestfs_aug_load"
25829
25830 #. type: verbatim
25831 #: ../src/guestfs-actions.pod:459
25832 #, no-wrap
25833 msgid ""
25834 " int\n"
25835 " guestfs_aug_load (guestfs_h *g);\n"
25836 "\n"
25837 msgstr ""
25838 " int\n"
25839 " guestfs_aug_load (guestfs_h *g);\n"
25840 "\n"
25841
25842 #. type: =head2
25843 #: ../src/guestfs-actions.pod:471
25844 msgid "guestfs_aug_ls"
25845 msgstr "guestfs_aug_ls"
25846
25847 #. type: verbatim
25848 #: ../src/guestfs-actions.pod:473
25849 #, no-wrap
25850 msgid ""
25851 " char **\n"
25852 " guestfs_aug_ls (guestfs_h *g,\n"
25853 "                 const char *augpath);\n"
25854 "\n"
25855 msgstr ""
25856 " char **\n"
25857 " guestfs_aug_ls (guestfs_h *g,\n"
25858 "                 const char *augpath);\n"
25859 "\n"
25860
25861 #. type: textblock
25862 #: ../src/guestfs-actions.pod:477
25863 msgid ""
25864 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25865 "sorting the resulting nodes into alphabetical order."
25866 msgstr ""
25867
25868 #. type: textblock
25869 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:496
25870 #: ../src/guestfs-actions.pod:642 ../src/guestfs-actions.pod:1149
25871 #: ../src/guestfs-actions.pod:1796 ../src/guestfs-actions.pod:1815
25872 #: ../src/guestfs-actions.pod:1918 ../src/guestfs-actions.pod:1937
25873 #: ../src/guestfs-actions.pod:2183 ../src/guestfs-actions.pod:2649
25874 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:2684
25875 #: ../src/guestfs-actions.pod:2749 ../src/guestfs-actions.pod:2773
25876 #: ../src/guestfs-actions.pod:2844 ../src/guestfs-actions.pod:2893
25877 #: ../src/guestfs-actions.pod:3162 ../src/guestfs-actions.pod:3537
25878 #: ../src/guestfs-actions.pod:3817 ../src/guestfs-actions.pod:4131
25879 #: ../src/guestfs-actions.pod:4148 ../src/guestfs-actions.pod:4168
25880 #: ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4335
25881 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:5500
25882 #: ../src/guestfs-actions.pod:6136 ../src/guestfs-actions.pod:6262
25883 #: ../src/guestfs-actions.pod:6376 ../src/guestfs-actions.pod:7143
25884 #: ../src/guestfs-actions.pod:7204 ../src/guestfs-actions.pod:7259
25885 #: ../src/guestfs-actions.pod:7405 ../src/guestfs-actions.pod:7429
25886 #: ../src/guestfs-actions.pod:7905 ../src/guestfs-actions.pod:7925
25887 #: ../src/guestfs-actions.pod:7972 ../src/guestfs-actions.pod:8166
25888 #: ../src/guestfs-actions.pod:8185 ../src/guestfs-actions.pod:8279
25889 #: ../src/guestfs-actions.pod:8298 ../src/guestfs-actions.pod:8344
25890 #: ../src/guestfs-actions.pod:8363
25891 msgid ""
25892 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25893 ">), or NULL if there was an error.  I<The caller must free the strings and "
25894 "the array after use>."
25895 msgstr ""
25896
25897 #. type: textblock
25898 #: ../src/guestfs-actions.pod:484 ../src/guestfs-actions.pod:1074
25899 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1853
25900 #: ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:3926
25901 #: ../src/guestfs-actions.pod:4584 ../src/guestfs-actions.pod:4634
25902 #: ../src/guestfs-actions.pod:4821 ../src/guestfs-actions.pod:4854
25903 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5504
25904 #: ../src/guestfs-actions.pod:6077 ../src/guestfs-actions.pod:6474
25905 #: ../src/guestfs-actions.pod:6488 ../src/guestfs-actions.pod:6500
25906 #: ../src/guestfs-actions.pod:6984 ../src/guestfs-actions.pod:7643
25907 #: ../src/guestfs-actions.pod:7656 ../src/guestfs-actions.pod:7889
25908 #: ../src/guestfs-actions.pod:8154
25909 msgid "(Added in 0.8)"
25910 msgstr "(Додано у 0.8)"
25911
25912 #. type: =head2
25913 #: ../src/guestfs-actions.pod:486
25914 msgid "guestfs_aug_match"
25915 msgstr "guestfs_aug_match"
25916
25917 #. type: verbatim
25918 #: ../src/guestfs-actions.pod:488
25919 #, no-wrap
25920 msgid ""
25921 " char **\n"
25922 " guestfs_aug_match (guestfs_h *g,\n"
25923 "                    const char *augpath);\n"
25924 "\n"
25925 msgstr ""
25926 " char **\n"
25927 " guestfs_aug_match (guestfs_h *g,\n"
25928 "                    const char *augpath);\n"
25929 "\n"
25930
25931 #. type: =head2
25932 #: ../src/guestfs-actions.pod:502
25933 msgid "guestfs_aug_mv"
25934 msgstr "guestfs_aug_mv"
25935
25936 #. type: verbatim
25937 #: ../src/guestfs-actions.pod:504
25938 #, no-wrap
25939 msgid ""
25940 " int\n"
25941 " guestfs_aug_mv (guestfs_h *g,\n"
25942 "                 const char *src,\n"
25943 "                 const char *dest);\n"
25944 "\n"
25945 msgstr ""
25946 " int\n"
25947 " guestfs_aug_mv (guestfs_h *g,\n"
25948 "                 const char *src,\n"
25949 "                 const char *dest);\n"
25950 "\n"
25951
25952 #. type: =head2
25953 #: ../src/guestfs-actions.pod:516
25954 msgid "guestfs_aug_rm"
25955 msgstr "guestfs_aug_rm"
25956
25957 #. type: verbatim
25958 #: ../src/guestfs-actions.pod:518
25959 #, no-wrap
25960 msgid ""
25961 " int\n"
25962 " guestfs_aug_rm (guestfs_h *g,\n"
25963 "                 const char *augpath);\n"
25964 "\n"
25965 msgstr ""
25966 " int\n"
25967 " guestfs_aug_rm (guestfs_h *g,\n"
25968 "                 const char *augpath);\n"
25969 "\n"
25970
25971 #. type: =head2
25972 #: ../src/guestfs-actions.pod:530
25973 msgid "guestfs_aug_save"
25974 msgstr "guestfs_aug_save"
25975
25976 #. type: verbatim
25977 #: ../src/guestfs-actions.pod:532
25978 #, no-wrap
25979 msgid ""
25980 " int\n"
25981 " guestfs_aug_save (guestfs_h *g);\n"
25982 "\n"
25983 msgstr ""
25984 " int\n"
25985 " guestfs_aug_save (guestfs_h *g);\n"
25986 "\n"
25987
25988 #. type: textblock
25989 #: ../src/guestfs-actions.pod:537
25990 msgid ""
25991 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25992 "are saved."
25993 msgstr ""
25994
25995 #. type: =head2
25996 #: ../src/guestfs-actions.pod:544
25997 msgid "guestfs_aug_set"
25998 msgstr "guestfs_aug_set"
25999
26000 #. type: verbatim
26001 #: ../src/guestfs-actions.pod:546
26002 #, no-wrap
26003 msgid ""
26004 " int\n"
26005 " guestfs_aug_set (guestfs_h *g,\n"
26006 "                  const char *augpath,\n"
26007 "                  const char *val);\n"
26008 "\n"
26009 msgstr ""
26010 " int\n"
26011 " guestfs_aug_set (guestfs_h *g,\n"
26012 "                  const char *augpath,\n"
26013 "                  const char *val);\n"
26014 "\n"
26015
26016 #. type: textblock
26017 #: ../src/guestfs-actions.pod:553
26018 msgid ""
26019 "In the Augeas API, it is possible to clear a node by setting the value to "
26020 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
26021 "this call.  Instead you must use the C<guestfs_aug_clear> call."
26022 msgstr ""
26023
26024 #. type: =head2
26025 #: ../src/guestfs-actions.pod:562
26026 msgid "guestfs_available"
26027 msgstr "guestfs_available"
26028
26029 #. type: verbatim
26030 #: ../src/guestfs-actions.pod:564
26031 #, no-wrap
26032 msgid ""
26033 " int\n"
26034 " guestfs_available (guestfs_h *g,\n"
26035 "                    char *const *groups);\n"
26036 "\n"
26037 msgstr ""
26038 " int\n"
26039 " guestfs_available (guestfs_h *g,\n"
26040 "                    char *const *groups);\n"
26041 "\n"
26042
26043 #. type: textblock
26044 #: ../src/guestfs-actions.pod:572
26045 msgid ""
26046 "The libguestfs groups, and the functions that those groups correspond to, "
26047 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
26048 "runtime by calling C<guestfs_available_all_groups>."
26049 msgstr ""
26050
26051 #. type: textblock
26052 #: ../src/guestfs-actions.pod:596
26053 msgid "You must call C<guestfs_launch> before calling this function."
26054 msgstr ""
26055
26056 #. type: textblock
26057 #: ../src/guestfs-actions.pod:618
26058 msgid ""
26059 "This call was added in version C<1.0.80>.  In previous versions of "
26060 "libguestfs all you could do would be to speculatively execute a command to "
26061 "find out if the daemon implemented it.  See also C<guestfs_version>."
26062 msgstr ""
26063
26064 #. type: textblock
26065 #: ../src/guestfs-actions.pod:627 ../src/guestfs-actions.pod:1598
26066 msgid "(Added in 1.0.80)"
26067 msgstr "(Додано у 1.0.80)"
26068
26069 #. type: =head2
26070 #: ../src/guestfs-actions.pod:629
26071 msgid "guestfs_available_all_groups"
26072 msgstr "guestfs_available_all_groups"
26073
26074 #. type: verbatim
26075 #: ../src/guestfs-actions.pod:631
26076 #, no-wrap
26077 msgid ""
26078 " char **\n"
26079 " guestfs_available_all_groups (guestfs_h *g);\n"
26080 "\n"
26081 msgstr ""
26082 " char **\n"
26083 " guestfs_available_all_groups (guestfs_h *g);\n"
26084 "\n"
26085
26086 #. type: textblock
26087 #: ../src/guestfs-actions.pod:634
26088 msgid ""
26089 "This command returns a list of all optional groups that this daemon knows "
26090 "about.  Note this returns both supported and unsupported groups.  To find "
26091 "out which ones the daemon can actually support you have to call "
26092 "C<guestfs_available> on each member of the returned list."
26093 msgstr ""
26094
26095 #. type: textblock
26096 #: ../src/guestfs-actions.pod:640
26097 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
26098 msgstr ""
26099
26100 #. type: textblock
26101 #: ../src/guestfs-actions.pod:646
26102 msgid "(Added in 1.3.15)"
26103 msgstr "(Додано у 1.3.15)"
26104
26105 #. type: =head2
26106 #: ../src/guestfs-actions.pod:648
26107 msgid "guestfs_base64_in"
26108 msgstr "guestfs_base64_in"
26109
26110 #. type: verbatim
26111 #: ../src/guestfs-actions.pod:650
26112 #, no-wrap
26113 msgid ""
26114 " int\n"
26115 " guestfs_base64_in (guestfs_h *g,\n"
26116 "                    const char *base64file,\n"
26117 "                    const char *filename);\n"
26118 "\n"
26119 msgstr ""
26120 " int\n"
26121 " guestfs_base64_in (guestfs_h *g,\n"
26122 "                    const char *base64file,\n"
26123 "                    const char *filename);\n"
26124 "\n"
26125
26126 #. type: textblock
26127 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:674
26128 msgid "(Added in 1.3.5)"
26129 msgstr "(Додано у 1.3.5)"
26130
26131 #. type: =head2
26132 #: ../src/guestfs-actions.pod:662
26133 msgid "guestfs_base64_out"
26134 msgstr "guestfs_base64_out"
26135
26136 #. type: verbatim
26137 #: ../src/guestfs-actions.pod:664
26138 #, no-wrap
26139 msgid ""
26140 " int\n"
26141 " guestfs_base64_out (guestfs_h *g,\n"
26142 "                     const char *filename,\n"
26143 "                     const char *base64file);\n"
26144 "\n"
26145 msgstr ""
26146 " int\n"
26147 " guestfs_base64_out (guestfs_h *g,\n"
26148 "                     const char *filename,\n"
26149 "                     const char *base64file);\n"
26150 "\n"
26151
26152 #. type: =head2
26153 #: ../src/guestfs-actions.pod:676
26154 msgid "guestfs_blockdev_flushbufs"
26155 msgstr "guestfs_blockdev_flushbufs"
26156
26157 #. type: verbatim
26158 #: ../src/guestfs-actions.pod:678
26159 #, no-wrap
26160 msgid ""
26161 " int\n"
26162 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26163 "                             const char *device);\n"
26164 "\n"
26165 msgstr ""
26166 " int\n"
26167 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
26168 "                             const char *device);\n"
26169 "\n"
26170
26171 #. type: textblock
26172 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:706
26173 #: ../src/guestfs-actions.pod:721 ../src/guestfs-actions.pod:737
26174 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:774
26175 #: ../src/guestfs-actions.pod:788 ../src/guestfs-actions.pod:806
26176 #: ../src/guestfs-actions.pod:820 ../src/guestfs-actions.pod:834
26177 msgid "(Added in 0.9.3)"
26178 msgstr "(Додано у 0.9.3)"
26179
26180 #. type: =head2
26181 #: ../src/guestfs-actions.pod:691
26182 msgid "guestfs_blockdev_getbsz"
26183 msgstr "guestfs_blockdev_getbsz"
26184
26185 #. type: verbatim
26186 #: ../src/guestfs-actions.pod:693
26187 #, no-wrap
26188 msgid ""
26189 " int\n"
26190 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26191 "                          const char *device);\n"
26192 "\n"
26193 msgstr ""
26194 " int\n"
26195 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
26196 "                          const char *device);\n"
26197 "\n"
26198
26199 #. type: =head2
26200 #: ../src/guestfs-actions.pod:708
26201 msgid "guestfs_blockdev_getro"
26202 msgstr "guestfs_blockdev_getro"
26203
26204 #. type: verbatim
26205 #: ../src/guestfs-actions.pod:710
26206 #, no-wrap
26207 msgid ""
26208 " int\n"
26209 " guestfs_blockdev_getro (guestfs_h *g,\n"
26210 "                         const char *device);\n"
26211 "\n"
26212 msgstr ""
26213 " int\n"
26214 " guestfs_blockdev_getro (guestfs_h *g,\n"
26215 "                         const char *device);\n"
26216 "\n"
26217
26218 #. type: textblock
26219 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:1836
26220 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:2340
26221 #: ../src/guestfs-actions.pod:2351 ../src/guestfs-actions.pod:2423
26222 #: ../src/guestfs-actions.pod:2449 ../src/guestfs-actions.pod:2489
26223 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2540
26224 #: ../src/guestfs-actions.pod:2563 ../src/guestfs-actions.pod:3638
26225 #: ../src/guestfs-actions.pod:3654 ../src/guestfs-actions.pod:3672
26226 #: ../src/guestfs-actions.pod:3834 ../src/guestfs-actions.pod:3848
26227 #: ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:3877
26228 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3908
26229 #: ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:3938
26230 #: ../src/guestfs-actions.pod:3951 ../src/guestfs-actions.pod:3965
26231 #: ../src/guestfs-actions.pod:3980 ../src/guestfs-actions.pod:3995
26232 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4022
26233 #: ../src/guestfs-actions.pod:5741
26234 msgid "This function returns a C truth value on success or -1 on error."
26235 msgstr ""
26236
26237 #. type: =head2
26238 #: ../src/guestfs-actions.pod:723
26239 msgid "guestfs_blockdev_getsize64"
26240 msgstr "guestfs_blockdev_getsize64"
26241
26242 #. type: verbatim
26243 #: ../src/guestfs-actions.pod:725
26244 #, no-wrap
26245 msgid ""
26246 " int64_t\n"
26247 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26248 "                             const char *device);\n"
26249 "\n"
26250 msgstr ""
26251 " int64_t\n"
26252 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26253 "                             const char *device);\n"
26254 "\n"
26255
26256 #. type: textblock
26257 #: ../src/guestfs-actions.pod:731
26258 msgid "See also C<guestfs_blockdev_getsz>."
26259 msgstr ""
26260
26261 #. type: =head2
26262 #: ../src/guestfs-actions.pod:739
26263 msgid "guestfs_blockdev_getss"
26264 msgstr "guestfs_blockdev_getss"
26265
26266 #. type: verbatim
26267 #: ../src/guestfs-actions.pod:741
26268 #, no-wrap
26269 msgid ""
26270 " int\n"
26271 " guestfs_blockdev_getss (guestfs_h *g,\n"
26272 "                         const char *device);\n"
26273 "\n"
26274 msgstr ""
26275 " int\n"
26276 " guestfs_blockdev_getss (guestfs_h *g,\n"
26277 "                         const char *device);\n"
26278 "\n"
26279
26280 #. type: textblock
26281 #: ../src/guestfs-actions.pod:748
26282 msgid ""
26283 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26284 "that)."
26285 msgstr ""
26286
26287 #. type: =head2
26288 #: ../src/guestfs-actions.pod:757
26289 msgid "guestfs_blockdev_getsz"
26290 msgstr "guestfs_blockdev_getsz"
26291
26292 #. type: verbatim
26293 #: ../src/guestfs-actions.pod:759
26294 #, no-wrap
26295 msgid ""
26296 " int64_t\n"
26297 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26298 "                         const char *device);\n"
26299 "\n"
26300 msgstr ""
26301 " int64_t\n"
26302 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26303 "                         const char *device);\n"
26304 "\n"
26305
26306 #. type: textblock
26307 #: ../src/guestfs-actions.pod:766
26308 msgid ""
26309 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26310 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26311 msgstr ""
26312
26313 #. type: =head2
26314 #: ../src/guestfs-actions.pod:776
26315 msgid "guestfs_blockdev_rereadpt"
26316 msgstr "guestfs_blockdev_rereadpt"
26317
26318 #. type: verbatim
26319 #: ../src/guestfs-actions.pod:778
26320 #, no-wrap
26321 msgid ""
26322 " int\n"
26323 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26324 "                            const char *device);\n"
26325 "\n"
26326 msgstr ""
26327 " int\n"
26328 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26329 "                            const char *device);\n"
26330 "\n"
26331
26332 #. type: =head2
26333 #: ../src/guestfs-actions.pod:790
26334 msgid "guestfs_blockdev_setbsz"
26335 msgstr "guestfs_blockdev_setbsz"
26336
26337 #. type: verbatim
26338 #: ../src/guestfs-actions.pod:792
26339 #, no-wrap
26340 msgid ""
26341 " int\n"
26342 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26343 "                          const char *device,\n"
26344 "                          int blocksize);\n"
26345 "\n"
26346 msgstr ""
26347 " int\n"
26348 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26349 "                          const char *device,\n"
26350 "                          int blocksize);\n"
26351 "\n"
26352
26353 #. type: =head2
26354 #: ../src/guestfs-actions.pod:808
26355 msgid "guestfs_blockdev_setro"
26356 msgstr "guestfs_blockdev_setro"
26357
26358 #. type: verbatim
26359 #: ../src/guestfs-actions.pod:810
26360 #, no-wrap
26361 msgid ""
26362 " int\n"
26363 " guestfs_blockdev_setro (guestfs_h *g,\n"
26364 "                         const char *device);\n"
26365 "\n"
26366 msgstr ""
26367 " int\n"
26368 " guestfs_blockdev_setro (guestfs_h *g,\n"
26369 "                         const char *device);\n"
26370 "\n"
26371
26372 #. type: =head2
26373 #: ../src/guestfs-actions.pod:822
26374 msgid "guestfs_blockdev_setrw"
26375 msgstr "guestfs_blockdev_setrw"
26376
26377 #. type: verbatim
26378 #: ../src/guestfs-actions.pod:824
26379 #, no-wrap
26380 msgid ""
26381 " int\n"
26382 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26383 "                         const char *device);\n"
26384 "\n"
26385 msgstr ""
26386 " int\n"
26387 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26388 "                         const char *device);\n"
26389 "\n"
26390
26391 #. type: =head2
26392 #: ../src/guestfs-actions.pod:836
26393 msgid "guestfs_btrfs_filesystem_resize"
26394 msgstr "guestfs_btrfs_filesystem_resize"
26395
26396 #. type: verbatim
26397 #: ../src/guestfs-actions.pod:838
26398 #, no-wrap
26399 msgid ""
26400 " int\n"
26401 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26402 "                                  const char *mountpoint,\n"
26403 "                                  ...);\n"
26404 "\n"
26405 msgstr ""
26406 " int\n"
26407 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26408 "                                  const char *mountpoint,\n"
26409 "                                  ...);\n"
26410 "\n"
26411
26412 #. type: verbatim
26413 #: ../src/guestfs-actions.pod:848
26414 #, no-wrap
26415 msgid ""
26416 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26417 "\n"
26418 msgstr ""
26419 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26420 "\n"
26421
26422 #. type: textblock
26423 #: ../src/guestfs-actions.pod:871
26424 msgid "(Added in 1.11.17)"
26425 msgstr "(Додано у 1.11.17)"
26426
26427 #. type: =head2
26428 #: ../src/guestfs-actions.pod:873
26429 msgid "guestfs_btrfs_filesystem_resize_va"
26430 msgstr "guestfs_btrfs_filesystem_resize_va"
26431
26432 #. type: verbatim
26433 #: ../src/guestfs-actions.pod:875
26434 #, no-wrap
26435 msgid ""
26436 " int\n"
26437 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26438 "                                     const char *mountpoint,\n"
26439 "                                     va_list args);\n"
26440 "\n"
26441 msgstr ""
26442 " int\n"
26443 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26444 "                                     const char *mountpoint,\n"
26445 "                                     va_list args);\n"
26446 "\n"
26447
26448 #. type: textblock
26449 #: ../src/guestfs-actions.pod:880
26450 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26451 msgstr ""
26452
26453 #. type: =head2
26454 #: ../src/guestfs-actions.pod:884
26455 msgid "guestfs_btrfs_filesystem_resize_argv"
26456 msgstr "guestfs_btrfs_filesystem_resize_argv"
26457
26458 #. type: verbatim
26459 #: ../src/guestfs-actions.pod:886
26460 #, no-wrap
26461 msgid ""
26462 " int\n"
26463 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26464 "                                       const char *mountpoint,\n"
26465 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26466 "\n"
26467 msgstr ""
26468 " int\n"
26469 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26470 "                                       const char *mountpoint,\n"
26471 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26472 "\n"
26473
26474 #. type: textblock
26475 #: ../src/guestfs-actions.pod:891
26476 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26477 msgstr ""
26478
26479 #. type: =head2
26480 #: ../src/guestfs-actions.pod:895
26481 msgid "guestfs_case_sensitive_path"
26482 msgstr ""
26483
26484 #. type: verbatim
26485 #: ../src/guestfs-actions.pod:897
26486 #, no-wrap
26487 msgid ""
26488 " char *\n"
26489 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26490 "                              const char *path);\n"
26491 "\n"
26492 msgstr ""
26493
26494 #. type: textblock
26495 #: ../src/guestfs-actions.pod:923
26496 msgid ""
26497 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
26498 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26499 "how the directories were originally created under Windows)."
26500 msgstr ""
26501
26502 #. type: textblock
26503 #: ../src/guestfs-actions.pod:931
26504 msgid "See also C<guestfs_realpath>."
26505 msgstr ""
26506
26507 #. type: textblock
26508 #: ../src/guestfs-actions.pod:936 ../src/guestfs-actions.pod:7823
26509 msgid "(Added in 1.0.75)"
26510 msgstr "(Додано у 1.0.75)"
26511
26512 #. type: =head2
26513 #: ../src/guestfs-actions.pod:938
26514 msgid "guestfs_cat"
26515 msgstr ""
26516
26517 #. type: verbatim
26518 #: ../src/guestfs-actions.pod:940
26519 #, no-wrap
26520 msgid ""
26521 " char *\n"
26522 " guestfs_cat (guestfs_h *g,\n"
26523 "              const char *path);\n"
26524 "\n"
26525 msgstr ""
26526
26527 #. type: textblock
26528 #: ../src/guestfs-actions.pod:946
26529 msgid ""
26530 "Note that this function cannot correctly handle binary files (specifically, "
26531 "files containing C<\\0> character which is treated as end of string).  For "
26532 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26533 "functions which have a more complex interface."
26534 msgstr ""
26535
26536 #. type: textblock
26537 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:4152
26538 #: ../src/guestfs-actions.pod:4234 ../src/guestfs-actions.pod:4251
26539 #: ../src/guestfs-actions.pod:4339 ../src/guestfs-actions.pod:4747
26540 #: ../src/guestfs-actions.pod:4761 ../src/guestfs-actions.pod:6140
26541 #: ../src/guestfs-actions.pod:6154 ../src/guestfs-actions.pod:7976
26542 #: ../src/guestfs-actions.pod:7990
26543 msgid "(Added in 0.4)"
26544 msgstr "(Додано у 0.4)"
26545
26546 #. type: =head2
26547 #: ../src/guestfs-actions.pod:959
26548 msgid "guestfs_checksum"
26549 msgstr ""
26550
26551 #. type: verbatim
26552 #: ../src/guestfs-actions.pod:961
26553 #, no-wrap
26554 msgid ""
26555 " char *\n"
26556 " guestfs_checksum (guestfs_h *g,\n"
26557 "                   const char *csumtype,\n"
26558 "                   const char *path);\n"
26559 "\n"
26560 msgstr ""
26561
26562 #. type: textblock
26563 #: ../src/guestfs-actions.pod:1007
26564 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26565 msgstr ""
26566
26567 #. type: textblock
26568 #: ../src/guestfs-actions.pod:1009
26569 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26570 msgstr ""
26571
26572 #. type: textblock
26573 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1673
26574 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:3850
26575 #: ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3940
26576 #: ../src/guestfs-actions.pod:3967 ../src/guestfs-actions.pod:7679
26577 msgid "(Added in 1.0.2)"
26578 msgstr "(Додано у 1.0.2)"
26579
26580 #. type: =head2
26581 #: ../src/guestfs-actions.pod:1016
26582 msgid "guestfs_checksum_device"
26583 msgstr ""
26584
26585 #. type: verbatim
26586 #: ../src/guestfs-actions.pod:1018
26587 #, no-wrap
26588 msgid ""
26589 " char *\n"
26590 " guestfs_checksum_device (guestfs_h *g,\n"
26591 "                          const char *csumtype,\n"
26592 "                          const char *device);\n"
26593 "\n"
26594 msgstr ""
26595
26596 #. type: textblock
26597 #: ../src/guestfs-actions.pod:1023
26598 msgid ""
26599 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26600 "device named C<device>.  For the types of checksums supported see the "
26601 "C<guestfs_checksum> command."
26602 msgstr ""
26603
26604 #. type: textblock
26605 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:5571
26606 #: ../src/guestfs-actions.pod:5706 ../src/guestfs-actions.pod:5743
26607 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5943
26608 #: ../src/guestfs-actions.pod:7588 ../src/guestfs-actions.pod:7602
26609 #: ../src/guestfs-actions.pod:8002
26610 msgid "(Added in 1.3.2)"
26611 msgstr "(Додано у 1.3.2)"
26612
26613 #. type: =head2
26614 #: ../src/guestfs-actions.pod:1032
26615 msgid "guestfs_checksums_out"
26616 msgstr ""
26617
26618 #. type: verbatim
26619 #: ../src/guestfs-actions.pod:1034
26620 #, no-wrap
26621 msgid ""
26622 " int\n"
26623 " guestfs_checksums_out (guestfs_h *g,\n"
26624 "                        const char *csumtype,\n"
26625 "                        const char *directory,\n"
26626 "                        const char *sumsfile);\n"
26627 "\n"
26628 msgstr ""
26629
26630 #. type: textblock
26631 #: ../src/guestfs-actions.pod:1054
26632 msgid "(Added in 1.3.7)"
26633 msgstr "(Додано у 1.3.7)"
26634
26635 #. type: =head2
26636 #: ../src/guestfs-actions.pod:1056
26637 msgid "guestfs_chmod"
26638 msgstr ""
26639
26640 #. type: verbatim
26641 #: ../src/guestfs-actions.pod:1058
26642 #, no-wrap
26643 msgid ""
26644 " int\n"
26645 " guestfs_chmod (guestfs_h *g,\n"
26646 "                int mode,\n"
26647 "                const char *path);\n"
26648 "\n"
26649 msgstr ""
26650
26651 #. type: =head2
26652 #: ../src/guestfs-actions.pod:1076
26653 msgid "guestfs_chown"
26654 msgstr ""
26655
26656 #. type: verbatim
26657 #: ../src/guestfs-actions.pod:1078
26658 #, no-wrap
26659 msgid ""
26660 " int\n"
26661 " guestfs_chown (guestfs_h *g,\n"
26662 "                int owner,\n"
26663 "                int group,\n"
26664 "                const char *path);\n"
26665 "\n"
26666 msgstr ""
26667
26668 #. type: =head2
26669 #: ../src/guestfs-actions.pod:1094
26670 msgid "guestfs_command"
26671 msgstr ""
26672
26673 #. type: verbatim
26674 #: ../src/guestfs-actions.pod:1096
26675 #, no-wrap
26676 msgid ""
26677 " char *\n"
26678 " guestfs_command (guestfs_h *g,\n"
26679 "                  char *const *arguments);\n"
26680 "\n"
26681 msgstr ""
26682
26683 #. type: textblock
26684 #: ../src/guestfs-actions.pod:1105
26685 msgid ""
26686 "The single parameter is an argv-style list of arguments.  The first element "
26687 "is the name of the program to run.  Subsequent elements are parameters.  The "
26688 "list must be non-empty (ie. must contain a program name).  Note that the "
26689 "command runs directly, and is I<not> invoked via the shell (see "
26690 "C<guestfs_sh>)."
26691 msgstr ""
26692
26693 #. type: textblock
26694 #: ../src/guestfs-actions.pod:1136 ../src/guestfs-actions.pod:1156
26695 #: ../src/guestfs-actions.pod:1972
26696 msgid "(Added in 0.9.1)"
26697 msgstr "(Додано у 0.9.1)"
26698
26699 #. type: =head2
26700 #: ../src/guestfs-actions.pod:1138
26701 msgid "guestfs_command_lines"
26702 msgstr ""
26703
26704 #. type: verbatim
26705 #: ../src/guestfs-actions.pod:1140
26706 #, no-wrap
26707 msgid ""
26708 " char **\n"
26709 " guestfs_command_lines (guestfs_h *g,\n"
26710 "                        char *const *arguments);\n"
26711 "\n"
26712 msgstr ""
26713
26714 #. type: textblock
26715 #: ../src/guestfs-actions.pod:1144
26716 msgid ""
26717 "This is the same as C<guestfs_command>, but splits the result into a list of "
26718 "lines."
26719 msgstr ""
26720
26721 #. type: textblock
26722 #: ../src/guestfs-actions.pod:1147
26723 msgid "See also: C<guestfs_sh_lines>"
26724 msgstr ""
26725
26726 #. type: =head2
26727 #: ../src/guestfs-actions.pod:1158
26728 msgid "guestfs_compress_device_out"
26729 msgstr ""
26730
26731 #. type: verbatim
26732 #: ../src/guestfs-actions.pod:1160
26733 #, no-wrap
26734 msgid ""
26735 " int\n"
26736 " guestfs_compress_device_out (guestfs_h *g,\n"
26737 "                              const char *ctype,\n"
26738 "                              const char *device,\n"
26739 "                              const char *zdevice,\n"
26740 "                              ...);\n"
26741 "\n"
26742 msgstr ""
26743
26744 #. type: verbatim
26745 #: ../src/guestfs-actions.pod:1172
26746 #, no-wrap
26747 msgid ""
26748 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26749 "\n"
26750 msgstr ""
26751
26752 #. type: textblock
26753 #: ../src/guestfs-actions.pod:1177
26754 msgid ""
26755 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26756 "C<guestfs_compress_out>."
26757 msgstr ""
26758
26759 #. type: textblock
26760 #: ../src/guestfs-actions.pod:1182 ../src/guestfs-actions.pod:1241
26761 #: ../src/guestfs-actions.pod:2517 ../src/guestfs-actions.pod:6860
26762 msgid "(Added in 1.13.15)"
26763 msgstr ""
26764
26765 #. type: =head2
26766 #: ../src/guestfs-actions.pod:1184
26767 msgid "guestfs_compress_device_out_va"
26768 msgstr ""
26769
26770 #. type: verbatim
26771 #: ../src/guestfs-actions.pod:1186
26772 #, no-wrap
26773 msgid ""
26774 " int\n"
26775 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26776 "                                 const char *ctype,\n"
26777 "                                 const char *device,\n"
26778 "                                 const char *zdevice,\n"
26779 "                                 va_list args);\n"
26780 "\n"
26781 msgstr ""
26782
26783 #. type: textblock
26784 #: ../src/guestfs-actions.pod:1193
26785 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26786 msgstr ""
26787
26788 #. type: =head2
26789 #: ../src/guestfs-actions.pod:1197
26790 msgid "guestfs_compress_device_out_argv"
26791 msgstr ""
26792
26793 #. type: verbatim
26794 #: ../src/guestfs-actions.pod:1199
26795 #, no-wrap
26796 msgid ""
26797 " int\n"
26798 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26799 "                                   const char *ctype,\n"
26800 "                                   const char *device,\n"
26801 "                                   const char *zdevice,\n"
26802 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
26803 "\n"
26804 msgstr ""
26805
26806 #. type: textblock
26807 #: ../src/guestfs-actions.pod:1206
26808 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26809 msgstr ""
26810
26811 #. type: =head2
26812 #: ../src/guestfs-actions.pod:1210
26813 msgid "guestfs_compress_out"
26814 msgstr ""
26815
26816 #. type: verbatim
26817 #: ../src/guestfs-actions.pod:1212
26818 #, no-wrap
26819 msgid ""
26820 " int\n"
26821 " guestfs_compress_out (guestfs_h *g,\n"
26822 "                       const char *ctype,\n"
26823 "                       const char *file,\n"
26824 "                       const char *zfile,\n"
26825 "                       ...);\n"
26826 "\n"
26827 msgstr ""
26828
26829 #. type: verbatim
26830 #: ../src/guestfs-actions.pod:1224
26831 #, no-wrap
26832 msgid ""
26833 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26834 "\n"
26835 msgstr ""
26836
26837 #. type: =head2
26838 #: ../src/guestfs-actions.pod:1243
26839 msgid "guestfs_compress_out_va"
26840 msgstr ""
26841
26842 #. type: verbatim
26843 #: ../src/guestfs-actions.pod:1245
26844 #, no-wrap
26845 msgid ""
26846 " int\n"
26847 " guestfs_compress_out_va (guestfs_h *g,\n"
26848 "                          const char *ctype,\n"
26849 "                          const char *file,\n"
26850 "                          const char *zfile,\n"
26851 "                          va_list args);\n"
26852 "\n"
26853 msgstr ""
26854
26855 #. type: textblock
26856 #: ../src/guestfs-actions.pod:1252
26857 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26858 msgstr ""
26859
26860 #. type: =head2
26861 #: ../src/guestfs-actions.pod:1256
26862 msgid "guestfs_compress_out_argv"
26863 msgstr ""
26864
26865 #. type: verbatim
26866 #: ../src/guestfs-actions.pod:1258
26867 #, no-wrap
26868 msgid ""
26869 " int\n"
26870 " guestfs_compress_out_argv (guestfs_h *g,\n"
26871 "                            const char *ctype,\n"
26872 "                            const char *file,\n"
26873 "                            const char *zfile,\n"
26874 "                            const struct guestfs_compress_out_argv *optargs);\n"
26875 "\n"
26876 msgstr ""
26877
26878 #. type: textblock
26879 #: ../src/guestfs-actions.pod:1265
26880 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26881 msgstr ""
26882
26883 #. type: =head2
26884 #: ../src/guestfs-actions.pod:1269
26885 msgid "guestfs_config"
26886 msgstr ""
26887
26888 #. type: verbatim
26889 #: ../src/guestfs-actions.pod:1271
26890 #, no-wrap
26891 msgid ""
26892 " int\n"
26893 " guestfs_config (guestfs_h *g,\n"
26894 "                 const char *qemuparam,\n"
26895 "                 const char *qemuvalue);\n"
26896 "\n"
26897 msgstr ""
26898
26899 #. type: =head2
26900 #: ../src/guestfs-actions.pod:1289
26901 #, fuzzy
26902 #| msgid "guestfs_zero_device"
26903 msgid "guestfs_copy_device_to_device"
26904 msgstr "guestfs_zero_device"
26905
26906 #. type: verbatim
26907 #: ../src/guestfs-actions.pod:1291
26908 #, fuzzy, no-wrap
26909 #| msgid ""
26910 #| " int\n"
26911 #| " guestfs_luks_kill_slot (guestfs_h *g,\n"
26912 #| "                         const char *device,\n"
26913 #| "                         const char *key,\n"
26914 #| "                         int keyslot);\n"
26915 #| "\n"
26916 msgid ""
26917 " int\n"
26918 " guestfs_copy_device_to_device (guestfs_h *g,\n"
26919 "                                const char *src,\n"
26920 "                                const char *dest,\n"
26921 "                                ...);\n"
26922 "\n"
26923 msgstr ""
26924 " int\n"
26925 " guestfs_luks_kill_slot (guestfs_h *g,\n"
26926 "                         const char *device,\n"
26927 "                         const char *key,\n"
26928 "                         int keyslot);\n"
26929 "\n"
26930
26931 #. type: verbatim
26932 #: ../src/guestfs-actions.pod:1302
26933 #, no-wrap
26934 msgid ""
26935 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
26936 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
26937 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
26938 "\n"
26939 msgstr ""
26940
26941 #. type: textblock
26942 #: ../src/guestfs-actions.pod:1306
26943 msgid ""
26944 "The four calls C<guestfs_copy_device_to_device>, "
26945 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
26946 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
26947 "destination (device|file)."
26948 msgstr ""
26949
26950 #. type: textblock
26951 #: ../src/guestfs-actions.pod:1327 ../src/guestfs-actions.pod:1378
26952 #: ../src/guestfs-actions.pod:1429 ../src/guestfs-actions.pod:1485
26953 #: ../src/guestfs-actions.pod:1537 ../src/guestfs-actions.pod:1668
26954 #: ../src/guestfs-actions.pod:1699 ../src/guestfs-actions.pod:1744
26955 #: ../src/guestfs-actions.pod:2121 ../src/guestfs-actions.pod:2143
26956 #: ../src/guestfs-actions.pod:4050 ../src/guestfs-actions.pod:7674
26957 #: ../src/guestfs-actions.pod:7708 ../src/guestfs-actions.pod:8215
26958 #: ../src/guestfs-actions.pod:8238
26959 msgid ""
26960 "This long-running command can generate progress notification messages so "
26961 "that the caller can display a progress bar or indicator.  To receive these "
26962 "messages, the caller must register a progress event callback.  See L<guestfs"
26963 "(3)/GUESTFS_EVENT_PROGRESS>."
26964 msgstr ""
26965
26966 #. type: =head2
26967 #: ../src/guestfs-actions.pod:1332
26968 #, fuzzy
26969 #| msgid "guestfs_zero_device"
26970 msgid "guestfs_copy_device_to_device_va"
26971 msgstr "guestfs_zero_device"
26972
26973 #. type: verbatim
26974 #: ../src/guestfs-actions.pod:1334
26975 #, fuzzy, no-wrap
26976 #| msgid ""
26977 #| " int\n"
26978 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
26979 #| "                       const char *fstype,\n"
26980 #| "                       const char *device,\n"
26981 #| "                       va_list args);\n"
26982 #| "\n"
26983 msgid ""
26984 " int\n"
26985 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
26986 "                                   const char *src,\n"
26987 "                                   const char *dest,\n"
26988 "                                   va_list args);\n"
26989 "\n"
26990 msgstr ""
26991 " int\n"
26992 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
26993 "                       const char *fstype,\n"
26994 "                       const char *device,\n"
26995 "                       va_list args);\n"
26996 "\n"
26997
26998 #. type: textblock
26999 #: ../src/guestfs-actions.pod:1340
27000 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
27001 msgstr ""
27002
27003 #. type: =head2
27004 #: ../src/guestfs-actions.pod:1344
27005 #, fuzzy
27006 #| msgid "guestfs_zero_device"
27007 msgid "guestfs_copy_device_to_device_argv"
27008 msgstr "guestfs_zero_device"
27009
27010 #. type: verbatim
27011 #: ../src/guestfs-actions.pod:1346
27012 #, fuzzy, no-wrap
27013 #| msgid ""
27014 #| " int\n"
27015 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27016 #| "                         const char *fstype,\n"
27017 #| "                         const char *device,\n"
27018 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27019 #| "\n"
27020 msgid ""
27021 " int\n"
27022 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
27023 "                                     const char *src,\n"
27024 "                                     const char *dest,\n"
27025 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
27026 "\n"
27027 msgstr ""
27028 " int\n"
27029 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27030 "                         const char *fstype,\n"
27031 "                         const char *device,\n"
27032 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27033 "\n"
27034
27035 #. type: textblock
27036 #: ../src/guestfs-actions.pod:1352
27037 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
27038 msgstr ""
27039
27040 #. type: =head2
27041 #: ../src/guestfs-actions.pod:1356
27042 #, fuzzy
27043 #| msgid "guestfs_zero_device"
27044 msgid "guestfs_copy_device_to_file"
27045 msgstr "guestfs_zero_device"
27046
27047 #. type: verbatim
27048 #: ../src/guestfs-actions.pod:1358
27049 #, fuzzy, no-wrap
27050 #| msgid ""
27051 #| " int\n"
27052 #| " guestfs_luks_kill_slot (guestfs_h *g,\n"
27053 #| "                         const char *device,\n"
27054 #| "                         const char *key,\n"
27055 #| "                         int keyslot);\n"
27056 #| "\n"
27057 msgid ""
27058 " int\n"
27059 " guestfs_copy_device_to_file (guestfs_h *g,\n"
27060 "                              const char *src,\n"
27061 "                              const char *dest,\n"
27062 "                              ...);\n"
27063 "\n"
27064 msgstr ""
27065 " int\n"
27066 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27067 "                         const char *device,\n"
27068 "                         const char *key,\n"
27069 "                         int keyslot);\n"
27070 "\n"
27071
27072 #. type: verbatim
27073 #: ../src/guestfs-actions.pod:1369
27074 #, no-wrap
27075 msgid ""
27076 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27077 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27078 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
27079 "\n"
27080 msgstr ""
27081
27082 #. type: textblock
27083 #: ../src/guestfs-actions.pod:1373 ../src/guestfs-actions.pod:1424
27084 #: ../src/guestfs-actions.pod:1475
27085 msgid ""
27086 "See C<guestfs_copy_device_to_device> for a general overview of this call."
27087 msgstr ""
27088
27089 #. type: =head2
27090 #: ../src/guestfs-actions.pod:1383
27091 #, fuzzy
27092 #| msgid "guestfs_zero_device"
27093 msgid "guestfs_copy_device_to_file_va"
27094 msgstr "guestfs_zero_device"
27095
27096 #. type: verbatim
27097 #: ../src/guestfs-actions.pod:1385
27098 #, fuzzy, no-wrap
27099 #| msgid ""
27100 #| " int\n"
27101 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27102 #| "                       const char *fstype,\n"
27103 #| "                       const char *device,\n"
27104 #| "                       va_list args);\n"
27105 #| "\n"
27106 msgid ""
27107 " int\n"
27108 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
27109 "                                 const char *src,\n"
27110 "                                 const char *dest,\n"
27111 "                                 va_list args);\n"
27112 "\n"
27113 msgstr ""
27114 " int\n"
27115 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27116 "                       const char *fstype,\n"
27117 "                       const char *device,\n"
27118 "                       va_list args);\n"
27119 "\n"
27120
27121 #. type: textblock
27122 #: ../src/guestfs-actions.pod:1391
27123 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
27124 msgstr ""
27125
27126 #. type: =head2
27127 #: ../src/guestfs-actions.pod:1395
27128 #, fuzzy
27129 #| msgid "guestfs_lvm_set_filter"
27130 msgid "guestfs_copy_device_to_file_argv"
27131 msgstr "guestfs_lvm_set_filter"
27132
27133 #. type: verbatim
27134 #: ../src/guestfs-actions.pod:1397
27135 #, fuzzy, no-wrap
27136 #| msgid ""
27137 #| " int\n"
27138 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27139 #| "                         const char *fstype,\n"
27140 #| "                         const char *device,\n"
27141 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27142 #| "\n"
27143 msgid ""
27144 " int\n"
27145 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
27146 "                                   const char *src,\n"
27147 "                                   const char *dest,\n"
27148 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
27149 "\n"
27150 msgstr ""
27151 " int\n"
27152 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27153 "                         const char *fstype,\n"
27154 "                         const char *device,\n"
27155 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27156 "\n"
27157
27158 #. type: textblock
27159 #: ../src/guestfs-actions.pod:1403
27160 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
27161 msgstr ""
27162
27163 #. type: =head2
27164 #: ../src/guestfs-actions.pod:1407
27165 #, fuzzy
27166 #| msgid "guestfs_zero_device"
27167 msgid "guestfs_copy_file_to_device"
27168 msgstr "guestfs_zero_device"
27169
27170 #. type: verbatim
27171 #: ../src/guestfs-actions.pod:1409
27172 #, fuzzy, no-wrap
27173 #| msgid ""
27174 #| " int\n"
27175 #| " guestfs_luks_kill_slot (guestfs_h *g,\n"
27176 #| "                         const char *device,\n"
27177 #| "                         const char *key,\n"
27178 #| "                         int keyslot);\n"
27179 #| "\n"
27180 msgid ""
27181 " int\n"
27182 " guestfs_copy_file_to_device (guestfs_h *g,\n"
27183 "                              const char *src,\n"
27184 "                              const char *dest,\n"
27185 "                              ...);\n"
27186 "\n"
27187 msgstr ""
27188 " int\n"
27189 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27190 "                         const char *device,\n"
27191 "                         const char *key,\n"
27192 "                         int keyslot);\n"
27193 "\n"
27194
27195 #. type: verbatim
27196 #: ../src/guestfs-actions.pod:1420
27197 #, no-wrap
27198 msgid ""
27199 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
27200 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
27201 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
27202 "\n"
27203 msgstr ""
27204
27205 #. type: =head2
27206 #: ../src/guestfs-actions.pod:1434
27207 #, fuzzy
27208 #| msgid "guestfs_zero_device"
27209 msgid "guestfs_copy_file_to_device_va"
27210 msgstr "guestfs_zero_device"
27211
27212 #. type: verbatim
27213 #: ../src/guestfs-actions.pod:1436
27214 #, fuzzy, no-wrap
27215 #| msgid ""
27216 #| " int\n"
27217 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27218 #| "                       const char *fstype,\n"
27219 #| "                       const char *device,\n"
27220 #| "                       va_list args);\n"
27221 #| "\n"
27222 msgid ""
27223 " int\n"
27224 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
27225 "                                 const char *src,\n"
27226 "                                 const char *dest,\n"
27227 "                                 va_list args);\n"
27228 "\n"
27229 msgstr ""
27230 " int\n"
27231 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27232 "                       const char *fstype,\n"
27233 "                       const char *device,\n"
27234 "                       va_list args);\n"
27235 "\n"
27236
27237 #. type: textblock
27238 #: ../src/guestfs-actions.pod:1442
27239 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
27240 msgstr ""
27241
27242 #. type: =head2
27243 #: ../src/guestfs-actions.pod:1446
27244 #, fuzzy
27245 #| msgid "guestfs_btrfs_filesystem_resize_argv"
27246 msgid "guestfs_copy_file_to_device_argv"
27247 msgstr "guestfs_btrfs_filesystem_resize_argv"
27248
27249 #. type: verbatim
27250 #: ../src/guestfs-actions.pod:1448
27251 #, fuzzy, no-wrap
27252 #| msgid ""
27253 #| " int\n"
27254 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27255 #| "                         const char *fstype,\n"
27256 #| "                         const char *device,\n"
27257 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27258 #| "\n"
27259 msgid ""
27260 " int\n"
27261 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
27262 "                                   const char *src,\n"
27263 "                                   const char *dest,\n"
27264 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
27265 "\n"
27266 msgstr ""
27267 " int\n"
27268 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27269 "                         const char *fstype,\n"
27270 "                         const char *device,\n"
27271 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27272 "\n"
27273
27274 #. type: textblock
27275 #: ../src/guestfs-actions.pod:1454
27276 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
27277 msgstr ""
27278
27279 #. type: =head2
27280 #: ../src/guestfs-actions.pod:1458
27281 #, fuzzy
27282 #| msgid "guestfs_write_file"
27283 msgid "guestfs_copy_file_to_file"
27284 msgstr "guestfs_write_file"
27285
27286 #. type: verbatim
27287 #: ../src/guestfs-actions.pod:1460
27288 #, fuzzy, no-wrap
27289 #| msgid ""
27290 #| " int\n"
27291 #| " guestfs_luks_kill_slot (guestfs_h *g,\n"
27292 #| "                         const char *device,\n"
27293 #| "                         const char *key,\n"
27294 #| "                         int keyslot);\n"
27295 #| "\n"
27296 msgid ""
27297 " int\n"
27298 " guestfs_copy_file_to_file (guestfs_h *g,\n"
27299 "                            const char *src,\n"
27300 "                            const char *dest,\n"
27301 "                            ...);\n"
27302 "\n"
27303 msgstr ""
27304 " int\n"
27305 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27306 "                         const char *device,\n"
27307 "                         const char *key,\n"
27308 "                         int keyslot);\n"
27309 "\n"
27310
27311 #. type: verbatim
27312 #: ../src/guestfs-actions.pod:1471
27313 #, no-wrap
27314 msgid ""
27315 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
27316 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
27317 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
27318 "\n"
27319 msgstr ""
27320
27321 #. type: textblock
27322 #: ../src/guestfs-actions.pod:1478
27323 msgid ""
27324 "This is B<not> the function you want for copying files.  This is for copying "
27325 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
27326 "C<guestfs_mv> for general file copying and moving functions."
27327 msgstr ""
27328
27329 #. type: =head2
27330 #: ../src/guestfs-actions.pod:1490
27331 #, fuzzy
27332 #| msgid "guestfs_write_file"
27333 msgid "guestfs_copy_file_to_file_va"
27334 msgstr "guestfs_write_file"
27335
27336 #. type: verbatim
27337 #: ../src/guestfs-actions.pod:1492
27338 #, fuzzy, no-wrap
27339 #| msgid ""
27340 #| " int\n"
27341 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27342 #| "                       const char *fstype,\n"
27343 #| "                       const char *device,\n"
27344 #| "                       va_list args);\n"
27345 #| "\n"
27346 msgid ""
27347 " int\n"
27348 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
27349 "                               const char *src,\n"
27350 "                               const char *dest,\n"
27351 "                               va_list args);\n"
27352 "\n"
27353 msgstr ""
27354 " int\n"
27355 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
27356 "                       const char *fstype,\n"
27357 "                       const char *device,\n"
27358 "                       va_list args);\n"
27359 "\n"
27360
27361 #. type: textblock
27362 #: ../src/guestfs-actions.pod:1498
27363 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
27364 msgstr ""
27365
27366 #. type: =head2
27367 #: ../src/guestfs-actions.pod:1502
27368 #, fuzzy
27369 #| msgid "guestfs_btrfs_filesystem_resize_argv"
27370 msgid "guestfs_copy_file_to_file_argv"
27371 msgstr "guestfs_btrfs_filesystem_resize_argv"
27372
27373 #. type: verbatim
27374 #: ../src/guestfs-actions.pod:1504
27375 #, fuzzy, no-wrap
27376 #| msgid ""
27377 #| " int\n"
27378 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27379 #| "                         const char *fstype,\n"
27380 #| "                         const char *device,\n"
27381 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27382 #| "\n"
27383 msgid ""
27384 " int\n"
27385 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
27386 "                                 const char *src,\n"
27387 "                                 const char *dest,\n"
27388 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
27389 "\n"
27390 msgstr ""
27391 " int\n"
27392 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
27393 "                         const char *fstype,\n"
27394 "                         const char *device,\n"
27395 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
27396 "\n"
27397
27398 #. type: textblock
27399 #: ../src/guestfs-actions.pod:1510
27400 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
27401 msgstr ""
27402
27403 #. type: =head2
27404 #: ../src/guestfs-actions.pod:1514
27405 msgid "guestfs_copy_size"
27406 msgstr ""
27407
27408 #. type: verbatim
27409 #: ../src/guestfs-actions.pod:1516
27410 #, no-wrap
27411 msgid ""
27412 " int\n"
27413 " guestfs_copy_size (guestfs_h *g,\n"
27414 "                    const char *src,\n"
27415 "                    const char *dest,\n"
27416 "                    int64_t size);\n"
27417 "\n"
27418 msgstr ""
27419
27420 #. type: textblock
27421 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1579
27422 msgid ""
27423 "I<This function is deprecated.> In new code, use the L</"
27424 "guestfs_copy_device_to_device> call instead."
27425 msgstr ""
27426
27427 #. type: textblock
27428 #: ../src/guestfs-actions.pod:1542 ../src/guestfs-actions.pod:4774
27429 #: ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:7909
27430 #: ../src/guestfs-actions.pod:7929 ../src/guestfs-actions.pod:8015
27431 msgid "(Added in 1.0.87)"
27432 msgstr "(Додано у 1.0.87)"
27433
27434 #. type: =head2
27435 #: ../src/guestfs-actions.pod:1544
27436 msgid "guestfs_cp"
27437 msgstr ""
27438
27439 #. type: verbatim
27440 #: ../src/guestfs-actions.pod:1546
27441 #, no-wrap
27442 msgid ""
27443 " int\n"
27444 " guestfs_cp (guestfs_h *g,\n"
27445 "             const char *src,\n"
27446 "             const char *dest);\n"
27447 "\n"
27448 msgstr ""
27449
27450 #. type: textblock
27451 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1570
27452 #: ../src/guestfs-actions.pod:1650 ../src/guestfs-actions.pod:1724
27453 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:5518
27454 #: ../src/guestfs-actions.pod:6011
27455 msgid "(Added in 1.0.18)"
27456 msgstr "(Додано у 1.0.18)"
27457
27458 #. type: =head2
27459 #: ../src/guestfs-actions.pod:1558
27460 msgid "guestfs_cp_a"
27461 msgstr ""
27462
27463 #. type: verbatim
27464 #: ../src/guestfs-actions.pod:1560
27465 #, no-wrap
27466 msgid ""
27467 " int\n"
27468 " guestfs_cp_a (guestfs_h *g,\n"
27469 "               const char *src,\n"
27470 "               const char *dest);\n"
27471 "\n"
27472 msgstr ""
27473
27474 #. type: =head2
27475 #: ../src/guestfs-actions.pod:1572
27476 msgid "guestfs_dd"
27477 msgstr ""
27478
27479 #. type: verbatim
27480 #: ../src/guestfs-actions.pod:1574
27481 #, no-wrap
27482 msgid ""
27483 " int\n"
27484 " guestfs_dd (guestfs_h *g,\n"
27485 "             const char *src,\n"
27486 "             const char *dest);\n"
27487 "\n"
27488 msgstr ""
27489
27490 #. type: textblock
27491 #: ../src/guestfs-actions.pod:1591
27492 msgid ""
27493 "If the destination is a device, it must be as large or larger than the "
27494 "source file or device, otherwise the copy will fail.  This command cannot do "
27495 "partial copies (see C<guestfs_copy_device_to_device>)."
27496 msgstr ""
27497
27498 #. type: =head2
27499 #: ../src/guestfs-actions.pod:1600
27500 msgid "guestfs_df"
27501 msgstr ""
27502
27503 #. type: verbatim
27504 #: ../src/guestfs-actions.pod:1602
27505 #, no-wrap
27506 msgid ""
27507 " char *\n"
27508 " guestfs_df (guestfs_h *g);\n"
27509 "\n"
27510 msgstr ""
27511
27512 #. type: textblock
27513 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1624
27514 msgid ""
27515 "This command is mostly useful for interactive sessions.  It is I<not> "
27516 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
27517 "from programs."
27518 msgstr ""
27519
27520 #. type: textblock
27521 #: ../src/guestfs-actions.pod:1614 ../src/guestfs-actions.pod:1631
27522 #: ../src/guestfs-actions.pod:1749 ../src/guestfs-actions.pod:2756
27523 #: ../src/guestfs-actions.pod:2780 ../src/guestfs-actions.pod:2848
27524 #: ../src/guestfs-actions.pod:4884 ../src/guestfs-actions.pod:5418
27525 #: ../src/guestfs-actions.pod:7412 ../src/guestfs-actions.pod:7436
27526 #: ../src/guestfs-actions.pod:8055 ../src/guestfs-actions.pod:8068
27527 #: ../src/guestfs-actions.pod:8081
27528 msgid "(Added in 1.0.54)"
27529 msgstr "(Додано у 1.0.54)"
27530
27531 #. type: =head2
27532 #: ../src/guestfs-actions.pod:1616
27533 msgid "guestfs_df_h"
27534 msgstr ""
27535
27536 #. type: verbatim
27537 #: ../src/guestfs-actions.pod:1618
27538 #, no-wrap
27539 msgid ""
27540 " char *\n"
27541 " guestfs_df_h (guestfs_h *g);\n"
27542 "\n"
27543 msgstr ""
27544
27545 #. type: =head2
27546 #: ../src/guestfs-actions.pod:1633
27547 msgid "guestfs_dmesg"
27548 msgstr ""
27549
27550 #. type: verbatim
27551 #: ../src/guestfs-actions.pod:1635
27552 #, no-wrap
27553 msgid ""
27554 " char *\n"
27555 " guestfs_dmesg (guestfs_h *g);\n"
27556 "\n"
27557 msgstr ""
27558
27559 #. type: textblock
27560 #: ../src/guestfs-actions.pod:1642
27561 msgid ""
27562 "Another way to get the same information is to enable verbose messages with "
27563 "C<guestfs_set_verbose> or by setting the environment variable "
27564 "C<LIBGUESTFS_DEBUG=1> before running the program."
27565 msgstr ""
27566
27567 #. type: =head2
27568 #: ../src/guestfs-actions.pod:1652
27569 msgid "guestfs_download"
27570 msgstr ""
27571
27572 #. type: verbatim
27573 #: ../src/guestfs-actions.pod:1654
27574 #, no-wrap
27575 msgid ""
27576 " int\n"
27577 " guestfs_download (guestfs_h *g,\n"
27578 "                   const char *remotefilename,\n"
27579 "                   const char *filename);\n"
27580 "\n"
27581 msgstr ""
27582
27583 #. type: textblock
27584 #: ../src/guestfs-actions.pod:1664
27585 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
27586 msgstr ""
27587
27588 #. type: =head2
27589 #: ../src/guestfs-actions.pod:1675
27590 msgid "guestfs_download_offset"
27591 msgstr ""
27592
27593 #. type: verbatim
27594 #: ../src/guestfs-actions.pod:1677
27595 #, no-wrap
27596 msgid ""
27597 " int\n"
27598 " guestfs_download_offset (guestfs_h *g,\n"
27599 "                          const char *remotefilename,\n"
27600 "                          const char *filename,\n"
27601 "                          int64_t offset,\n"
27602 "                          int64_t size);\n"
27603 "\n"
27604 msgstr ""
27605
27606 #. type: textblock
27607 #: ../src/guestfs-actions.pod:1690
27608 msgid ""
27609 "Note that there is no limit on the amount of data that can be downloaded "
27610 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
27611 "full amount unless an error occurs."
27612 msgstr ""
27613
27614 #. type: textblock
27615 #: ../src/guestfs-actions.pod:1695
27616 msgid "See also C<guestfs_download>, C<guestfs_pread>."
27617 msgstr ""
27618
27619 #. type: textblock
27620 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:7713
27621 msgid "(Added in 1.5.17)"
27622 msgstr "(Додано у 1.5.17)"
27623
27624 #. type: =head2
27625 #: ../src/guestfs-actions.pod:1706
27626 msgid "guestfs_drop_caches"
27627 msgstr ""
27628
27629 #. type: verbatim
27630 #: ../src/guestfs-actions.pod:1708
27631 #, no-wrap
27632 msgid ""
27633 " int\n"
27634 " guestfs_drop_caches (guestfs_h *g,\n"
27635 "                      int whattodrop);\n"
27636 "\n"
27637 msgstr ""
27638
27639 #. type: =head2
27640 #: ../src/guestfs-actions.pod:1726
27641 msgid "guestfs_du"
27642 msgstr ""
27643
27644 #. type: verbatim
27645 #: ../src/guestfs-actions.pod:1728
27646 #, no-wrap
27647 msgid ""
27648 " int64_t\n"
27649 " guestfs_du (guestfs_h *g,\n"
27650 "             const char *path);\n"
27651 "\n"
27652 msgstr ""
27653
27654 #. type: =head2
27655 #: ../src/guestfs-actions.pod:1751
27656 msgid "guestfs_e2fsck_f"
27657 msgstr ""
27658
27659 #. type: verbatim
27660 #: ../src/guestfs-actions.pod:1753
27661 #, no-wrap
27662 msgid ""
27663 " int\n"
27664 " guestfs_e2fsck_f (guestfs_h *g,\n"
27665 "                   const char *device);\n"
27666 "\n"
27667 msgstr ""
27668
27669 #. type: textblock
27670 #: ../src/guestfs-actions.pod:1761
27671 msgid ""
27672 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
27673 "Normally you should use C<guestfs_fsck>."
27674 msgstr ""
27675
27676 #. type: textblock
27677 #: ../src/guestfs-actions.pod:1766
27678 msgid "(Added in 1.0.29)"
27679 msgstr "(Додано у 1.0.29)"
27680
27681 #. type: =head2
27682 #: ../src/guestfs-actions.pod:1768
27683 msgid "guestfs_echo_daemon"
27684 msgstr "guestfs_echo_daemon"
27685
27686 #. type: verbatim
27687 #: ../src/guestfs-actions.pod:1770
27688 #, no-wrap
27689 msgid ""
27690 " char *\n"
27691 " guestfs_echo_daemon (guestfs_h *g,\n"
27692 "                      char *const *words);\n"
27693 "\n"
27694 msgstr ""
27695 " char *\n"
27696 " guestfs_echo_daemon (guestfs_h *g,\n"
27697 "                      char *const *words);\n"
27698 "\n"
27699
27700 #. type: textblock
27701 #: ../src/guestfs-actions.pod:1779
27702 msgid "See also C<guestfs_ping_daemon>."
27703 msgstr ""
27704
27705 #. type: textblock
27706 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:2542
27707 #: ../src/guestfs-actions.pod:6884
27708 msgid "(Added in 1.0.69)"
27709 msgstr "(Додано у 1.0.69)"
27710
27711 #. type: =head2
27712 #: ../src/guestfs-actions.pod:1786
27713 msgid "guestfs_egrep"
27714 msgstr "guestfs_egrep"
27715
27716 #. type: verbatim
27717 #: ../src/guestfs-actions.pod:1788
27718 #, no-wrap
27719 msgid ""
27720 " char **\n"
27721 " guestfs_egrep (guestfs_h *g,\n"
27722 "                const char *regex,\n"
27723 "                const char *path);\n"
27724 "\n"
27725 msgstr ""
27726 " char **\n"
27727 " guestfs_egrep (guestfs_h *g,\n"
27728 "                const char *regex,\n"
27729 "                const char *path);\n"
27730 "\n"
27731
27732 #. type: textblock
27733 #: ../src/guestfs-actions.pod:1803 ../src/guestfs-actions.pod:1822
27734 #: ../src/guestfs-actions.pod:1879 ../src/guestfs-actions.pod:1925
27735 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:2672
27736 #: ../src/guestfs-actions.pod:2691 ../src/guestfs-actions.pod:2869
27737 #: ../src/guestfs-actions.pod:2882 ../src/guestfs-actions.pod:2897
27738 #: ../src/guestfs-actions.pod:2943 ../src/guestfs-actions.pod:2965
27739 #: ../src/guestfs-actions.pod:2978 ../src/guestfs-actions.pod:4264
27740 #: ../src/guestfs-actions.pod:4278 ../src/guestfs-actions.pod:4291
27741 #: ../src/guestfs-actions.pod:4305 ../src/guestfs-actions.pod:5306
27742 #: ../src/guestfs-actions.pod:6345 ../src/guestfs-actions.pod:6394
27743 #: ../src/guestfs-actions.pod:7280 ../src/guestfs-actions.pod:7292
27744 #: ../src/guestfs-actions.pod:7305 ../src/guestfs-actions.pod:7318
27745 #: ../src/guestfs-actions.pod:7340 ../src/guestfs-actions.pod:7353
27746 #: ../src/guestfs-actions.pod:7366 ../src/guestfs-actions.pod:7379
27747 #: ../src/guestfs-actions.pod:8173 ../src/guestfs-actions.pod:8192
27748 #: ../src/guestfs-actions.pod:8286 ../src/guestfs-actions.pod:8305
27749 #: ../src/guestfs-actions.pod:8351 ../src/guestfs-actions.pod:8370
27750 msgid "(Added in 1.0.66)"
27751 msgstr "(Додано у 1.0.66)"
27752
27753 #. type: =head2
27754 #: ../src/guestfs-actions.pod:1805
27755 msgid "guestfs_egrepi"
27756 msgstr "guestfs_egrepi"
27757
27758 #. type: verbatim
27759 #: ../src/guestfs-actions.pod:1807
27760 #, no-wrap
27761 msgid ""
27762 " char **\n"
27763 " guestfs_egrepi (guestfs_h *g,\n"
27764 "                 const char *regex,\n"
27765 "                 const char *path);\n"
27766 "\n"
27767 msgstr ""
27768
27769 #. type: =head2
27770 #: ../src/guestfs-actions.pod:1824
27771 msgid "guestfs_equal"
27772 msgstr ""
27773
27774 #. type: verbatim
27775 #: ../src/guestfs-actions.pod:1826
27776 #, no-wrap
27777 msgid ""
27778 " int\n"
27779 " guestfs_equal (guestfs_h *g,\n"
27780 "                const char *file1,\n"
27781 "                const char *file2);\n"
27782 "\n"
27783 msgstr ""
27784
27785 #. type: =head2
27786 #: ../src/guestfs-actions.pod:1840
27787 msgid "guestfs_exists"
27788 msgstr ""
27789
27790 #. type: verbatim
27791 #: ../src/guestfs-actions.pod:1842
27792 #, no-wrap
27793 msgid ""
27794 " int\n"
27795 " guestfs_exists (guestfs_h *g,\n"
27796 "                 const char *path);\n"
27797 "\n"
27798 msgstr ""
27799
27800 #. type: textblock
27801 #: ../src/guestfs-actions.pod:1849
27802 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27803 msgstr ""
27804
27805 #. type: =head2
27806 #: ../src/guestfs-actions.pod:1855
27807 msgid "guestfs_fallocate"
27808 msgstr ""
27809
27810 #. type: verbatim
27811 #: ../src/guestfs-actions.pod:1857
27812 #, no-wrap
27813 msgid ""
27814 " int\n"
27815 " guestfs_fallocate (guestfs_h *g,\n"
27816 "                    const char *path,\n"
27817 "                    int len);\n"
27818 "\n"
27819 msgstr ""
27820
27821 #. type: textblock
27822 #: ../src/guestfs-actions.pod:1862
27823 msgid ""
27824 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27825 "call instead."
27826 msgstr ""
27827
27828 #. type: =head2
27829 #: ../src/guestfs-actions.pod:1881
27830 msgid "guestfs_fallocate64"
27831 msgstr ""
27832
27833 #. type: verbatim
27834 #: ../src/guestfs-actions.pod:1883
27835 #, no-wrap
27836 msgid ""
27837 " int\n"
27838 " guestfs_fallocate64 (guestfs_h *g,\n"
27839 "                      const char *path,\n"
27840 "                      int64_t len);\n"
27841 "\n"
27842 msgstr ""
27843
27844 #. type: textblock
27845 #: ../src/guestfs-actions.pod:1892
27846 msgid ""
27847 "Note that this call allocates disk blocks for the file.  To create a sparse "
27848 "file use C<guestfs_truncate_size> instead."
27849 msgstr ""
27850
27851 #. type: textblock
27852 #: ../src/guestfs-actions.pod:1895
27853 msgid ""
27854 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27855 "oversight it only allowed 30 bit lengths to be specified, effectively "
27856 "limiting the maximum size of files created through that call to 1GB."
27857 msgstr ""
27858
27859 #. type: textblock
27860 #: ../src/guestfs-actions.pod:1906
27861 msgid "(Added in 1.3.17)"
27862 msgstr "(Додано у 1.3.17)"
27863
27864 #. type: =head2
27865 #: ../src/guestfs-actions.pod:1908
27866 msgid "guestfs_fgrep"
27867 msgstr ""
27868
27869 #. type: verbatim
27870 #: ../src/guestfs-actions.pod:1910
27871 #, no-wrap
27872 msgid ""
27873 " char **\n"
27874 " guestfs_fgrep (guestfs_h *g,\n"
27875 "                const char *pattern,\n"
27876 "                const char *path);\n"
27877 "\n"
27878 msgstr ""
27879
27880 #. type: =head2
27881 #: ../src/guestfs-actions.pod:1927
27882 msgid "guestfs_fgrepi"
27883 msgstr ""
27884
27885 #. type: verbatim
27886 #: ../src/guestfs-actions.pod:1929
27887 #, no-wrap
27888 msgid ""
27889 " char **\n"
27890 " guestfs_fgrepi (guestfs_h *g,\n"
27891 "                 const char *pattern,\n"
27892 "                 const char *path);\n"
27893 "\n"
27894 msgstr ""
27895
27896 #. type: =head2
27897 #: ../src/guestfs-actions.pod:1946
27898 msgid "guestfs_file"
27899 msgstr ""
27900
27901 #. type: verbatim
27902 #: ../src/guestfs-actions.pod:1948
27903 #, no-wrap
27904 msgid ""
27905 " char *\n"
27906 " guestfs_file (guestfs_h *g,\n"
27907 "               const char *path);\n"
27908 "\n"
27909 msgstr ""
27910
27911 #. type: textblock
27912 #: ../src/guestfs-actions.pod:1966
27913 msgid ""
27914 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27915 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27916 msgstr ""
27917
27918 #. type: =head2
27919 #: ../src/guestfs-actions.pod:1974
27920 msgid "guestfs_file_architecture"
27921 msgstr ""
27922
27923 #. type: verbatim
27924 #: ../src/guestfs-actions.pod:1976
27925 #, no-wrap
27926 msgid ""
27927 " char *\n"
27928 " guestfs_file_architecture (guestfs_h *g,\n"
27929 "                            const char *filename);\n"
27930 "\n"
27931 msgstr ""
27932
27933 #. type: textblock
27934 #: ../src/guestfs-actions.pod:2084 ../src/guestfs-actions.pod:2247
27935 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2998
27936 #: ../src/guestfs-actions.pod:3100 ../src/guestfs-actions.pod:3166
27937 #: ../src/guestfs-actions.pod:3353 ../src/guestfs-actions.pod:3371
27938 #: ../src/guestfs-actions.pod:3411 ../src/guestfs-actions.pod:3487
27939 #: ../src/guestfs-actions.pod:3584 ../src/guestfs-actions.pod:3821
27940 #: ../src/guestfs-actions.pod:3953
27941 msgid "(Added in 1.5.3)"
27942 msgstr "(Додано у 1.5.3)"
27943
27944 #. type: =head2
27945 #: ../src/guestfs-actions.pod:2086
27946 msgid "guestfs_filesize"
27947 msgstr ""
27948
27949 #. type: verbatim
27950 #: ../src/guestfs-actions.pod:2088
27951 #, no-wrap
27952 msgid ""
27953 " int64_t\n"
27954 " guestfs_filesize (guestfs_h *g,\n"
27955 "                   const char *file);\n"
27956 "\n"
27957 msgstr ""
27958
27959 #. type: textblock
27960 #: ../src/guestfs-actions.pod:2094
27961 msgid ""
27962 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27963 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27964 "devices, use C<guestfs_blockdev_getsize64>."
27965 msgstr ""
27966
27967 #. type: textblock
27968 #: ../src/guestfs-actions.pod:2100
27969 msgid "(Added in 1.0.82)"
27970 msgstr "(Додано у 1.0.82)"
27971
27972 #. type: =head2
27973 #: ../src/guestfs-actions.pod:2102
27974 msgid "guestfs_fill"
27975 msgstr ""
27976
27977 #. type: verbatim
27978 #: ../src/guestfs-actions.pod:2104
27979 #, no-wrap
27980 msgid ""
27981 " int\n"
27982 " guestfs_fill (guestfs_h *g,\n"
27983 "               int c,\n"
27984 "               int len,\n"
27985 "               const char *path);\n"
27986 "\n"
27987 msgstr ""
27988
27989 #. type: textblock
27990 #: ../src/guestfs-actions.pod:2114
27991 msgid ""
27992 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27993 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27994 "bytes use C<guestfs_fill_pattern>."
27995 msgstr ""
27996
27997 #. type: textblock
27998 #: ../src/guestfs-actions.pod:2126
27999 msgid "(Added in 1.0.79)"
28000 msgstr "(Додано у 1.0.79)"
28001
28002 #. type: =head2
28003 #: ../src/guestfs-actions.pod:2128
28004 msgid "guestfs_fill_pattern"
28005 msgstr ""
28006
28007 #. type: verbatim
28008 #: ../src/guestfs-actions.pod:2130
28009 #, no-wrap
28010 msgid ""
28011 " int\n"
28012 " guestfs_fill_pattern (guestfs_h *g,\n"
28013 "                       const char *pattern,\n"
28014 "                       int len,\n"
28015 "                       const char *path);\n"
28016 "\n"
28017 msgstr ""
28018
28019 #. type: textblock
28020 #: ../src/guestfs-actions.pod:2136
28021 msgid ""
28022 "This function is like C<guestfs_fill> except that it creates a new file of "
28023 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
28024 "pattern is truncated if necessary to ensure the length of the file is "
28025 "exactly C<len> bytes."
28026 msgstr ""
28027
28028 #. type: textblock
28029 #: ../src/guestfs-actions.pod:2148
28030 msgid "(Added in 1.3.12)"
28031 msgstr "(Додано у 1.3.12)"
28032
28033 #. type: =head2
28034 #: ../src/guestfs-actions.pod:2150
28035 msgid "guestfs_find"
28036 msgstr ""
28037
28038 #. type: verbatim
28039 #: ../src/guestfs-actions.pod:2152
28040 #, no-wrap
28041 msgid ""
28042 " char **\n"
28043 " guestfs_find (guestfs_h *g,\n"
28044 "               const char *directory);\n"
28045 "\n"
28046 msgstr ""
28047
28048 #. type: textblock
28049 #: ../src/guestfs-actions.pod:2168
28050 msgid ""
28051 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
28052 msgstr ""
28053
28054 #. type: textblock
28055 #: ../src/guestfs-actions.pod:2181
28056 msgid "See also C<guestfs_find0>."
28057 msgstr ""
28058
28059 #. type: textblock
28060 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:4711
28061 #: ../src/guestfs-actions.pod:6429
28062 msgid "(Added in 1.0.27)"
28063 msgstr "(Додано у 1.0.27)"
28064
28065 #. type: =head2
28066 #: ../src/guestfs-actions.pod:2192
28067 msgid "guestfs_find0"
28068 msgstr ""
28069
28070 #. type: verbatim
28071 #: ../src/guestfs-actions.pod:2194
28072 #, no-wrap
28073 msgid ""
28074 " int\n"
28075 " guestfs_find0 (guestfs_h *g,\n"
28076 "                const char *directory,\n"
28077 "                const char *files);\n"
28078 "\n"
28079 msgstr ""
28080
28081 #. type: textblock
28082 #: ../src/guestfs-actions.pod:2203
28083 msgid ""
28084 "This command works the same way as C<guestfs_find> with the following "
28085 "exceptions:"
28086 msgstr ""
28087
28088 #. type: textblock
28089 #: ../src/guestfs-actions.pod:2230
28090 msgid "(Added in 1.0.74)"
28091 msgstr "(Додано у 1.0.74)"
28092
28093 #. type: =head2
28094 #: ../src/guestfs-actions.pod:2232
28095 msgid "guestfs_findfs_label"
28096 msgstr ""
28097
28098 #. type: verbatim
28099 #: ../src/guestfs-actions.pod:2234
28100 #, no-wrap
28101 msgid ""
28102 " char *\n"
28103 " guestfs_findfs_label (guestfs_h *g,\n"
28104 "                       const char *label);\n"
28105 "\n"
28106 msgstr ""
28107
28108 #. type: textblock
28109 #: ../src/guestfs-actions.pod:2242
28110 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
28111 msgstr ""
28112
28113 #. type: =head2
28114 #: ../src/guestfs-actions.pod:2249
28115 msgid "guestfs_findfs_uuid"
28116 msgstr ""
28117
28118 #. type: verbatim
28119 #: ../src/guestfs-actions.pod:2251
28120 #, no-wrap
28121 msgid ""
28122 " char *\n"
28123 " guestfs_findfs_uuid (guestfs_h *g,\n"
28124 "                      const char *uuid);\n"
28125 "\n"
28126 msgstr ""
28127
28128 #. type: textblock
28129 #: ../src/guestfs-actions.pod:2259
28130 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
28131 msgstr ""
28132
28133 #. type: =head2
28134 #: ../src/guestfs-actions.pod:2266
28135 msgid "guestfs_fsck"
28136 msgstr ""
28137
28138 #. type: verbatim
28139 #: ../src/guestfs-actions.pod:2268
28140 #, no-wrap
28141 msgid ""
28142 " int\n"
28143 " guestfs_fsck (guestfs_h *g,\n"
28144 "               const char *fstype,\n"
28145 "               const char *device);\n"
28146 "\n"
28147 msgstr ""
28148
28149 #. type: textblock
28150 #: ../src/guestfs-actions.pod:2303 ../src/guestfs-actions.pod:8220
28151 msgid "(Added in 1.0.16)"
28152 msgstr "(Додано у 1.0.16)"
28153
28154 #. type: =head2
28155 #: ../src/guestfs-actions.pod:2305
28156 msgid "guestfs_get_append"
28157 msgstr ""
28158
28159 #. type: verbatim
28160 #: ../src/guestfs-actions.pod:2307
28161 #, no-wrap
28162 msgid ""
28163 " const char *\n"
28164 " guestfs_get_append (guestfs_h *g);\n"
28165 "\n"
28166 msgstr ""
28167
28168 #. type: textblock
28169 #: ../src/guestfs-actions.pod:2315
28170 msgid ""
28171 "This function returns a string which may be NULL.  There is no way to return "
28172 "an error from this function.  The string is owned by the guest handle and "
28173 "must I<not> be freed."
28174 msgstr ""
28175
28176 #. type: textblock
28177 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:6107
28178 #: ../src/guestfs-actions.pod:6589 ../src/guestfs-actions.pod:7047
28179 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7082
28180 #: ../src/guestfs-actions.pod:7106 ../src/guestfs-actions.pod:7860
28181 #: ../src/guestfs-actions.pod:7875 ../src/guestfs-actions.pod:8267
28182 msgid "(Added in 1.0.26)"
28183 msgstr "(Додано у 1.0.26)"
28184
28185 #. type: =head2
28186 #: ../src/guestfs-actions.pod:2321
28187 msgid "guestfs_get_attach_method"
28188 msgstr ""
28189
28190 #. type: verbatim
28191 #: ../src/guestfs-actions.pod:2323
28192 #, no-wrap
28193 msgid ""
28194 " char *\n"
28195 " guestfs_get_attach_method (guestfs_h *g);\n"
28196 "\n"
28197 msgstr ""
28198
28199 #. type: textblock
28200 #: ../src/guestfs-actions.pod:2326
28201 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
28202 msgstr ""
28203
28204 #. type: textblock
28205 #: ../src/guestfs-actions.pod:2331 ../src/guestfs-actions.pod:6619
28206 msgid "(Added in 1.9.8)"
28207 msgstr "(Додано у 1.9.8)"
28208
28209 #. type: =head2
28210 #: ../src/guestfs-actions.pod:2333
28211 msgid "guestfs_get_autosync"
28212 msgstr ""
28213
28214 #. type: verbatim
28215 #: ../src/guestfs-actions.pod:2335
28216 #, no-wrap
28217 msgid ""
28218 " int\n"
28219 " guestfs_get_autosync (guestfs_h *g);\n"
28220 "\n"
28221 msgstr ""
28222
28223 #. type: =head2
28224 #: ../src/guestfs-actions.pod:2344
28225 msgid "guestfs_get_direct"
28226 msgstr ""
28227
28228 #. type: verbatim
28229 #: ../src/guestfs-actions.pod:2346
28230 #, no-wrap
28231 msgid ""
28232 " int\n"
28233 " guestfs_get_direct (guestfs_h *g);\n"
28234 "\n"
28235 msgstr ""
28236
28237 #. type: textblock
28238 #: ../src/guestfs-actions.pod:2353 ../src/guestfs-actions.pod:6660
28239 msgid "(Added in 1.0.72)"
28240 msgstr "(Додано у 1.0.72)"
28241
28242 #. type: =head2
28243 #: ../src/guestfs-actions.pod:2355
28244 msgid "guestfs_get_e2label"
28245 msgstr ""
28246
28247 #. type: verbatim
28248 #: ../src/guestfs-actions.pod:2357
28249 #, no-wrap
28250 msgid ""
28251 " char *\n"
28252 " guestfs_get_e2label (guestfs_h *g,\n"
28253 "                      const char *device);\n"
28254 "\n"
28255 msgstr ""
28256
28257 #. type: textblock
28258 #: ../src/guestfs-actions.pod:2361
28259 msgid ""
28260 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
28261 "call instead."
28262 msgstr ""
28263
28264 #. type: textblock
28265 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2395
28266 #: ../src/guestfs-actions.pod:6678 ../src/guestfs-actions.pod:6697
28267 msgid "(Added in 1.0.15)"
28268 msgstr "(Додано у 1.0.15)"
28269
28270 #. type: =head2
28271 #: ../src/guestfs-actions.pod:2376
28272 msgid "guestfs_get_e2uuid"
28273 msgstr ""
28274
28275 #. type: verbatim
28276 #: ../src/guestfs-actions.pod:2378
28277 #, no-wrap
28278 msgid ""
28279 " char *\n"
28280 " guestfs_get_e2uuid (guestfs_h *g,\n"
28281 "                     const char *device);\n"
28282 "\n"
28283 msgstr ""
28284
28285 #. type: textblock
28286 #: ../src/guestfs-actions.pod:2382
28287 msgid ""
28288 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
28289 "call instead."
28290 msgstr ""
28291
28292 #. type: =head2
28293 #: ../src/guestfs-actions.pod:2397
28294 msgid "guestfs_get_memsize"
28295 msgstr ""
28296
28297 #. type: verbatim
28298 #: ../src/guestfs-actions.pod:2399
28299 #, no-wrap
28300 msgid ""
28301 " int\n"
28302 " guestfs_get_memsize (guestfs_h *g);\n"
28303 "\n"
28304 msgstr ""
28305
28306 #. type: textblock
28307 #: ../src/guestfs-actions.pod:2405
28308 msgid ""
28309 "If C<guestfs_set_memsize> was not called on this handle, and if "
28310 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
28311 "value for memsize."
28312 msgstr ""
28313
28314 #. type: textblock
28315 #: ../src/guestfs-actions.pod:2414 ../src/guestfs-actions.pod:5002
28316 #: ../src/guestfs-actions.pod:5211 ../src/guestfs-actions.pod:5230
28317 #: ../src/guestfs-actions.pod:5249 ../src/guestfs-actions.pod:5261
28318 #: ../src/guestfs-actions.pod:5278 ../src/guestfs-actions.pod:5291
28319 #: ../src/guestfs-actions.pod:6332 ../src/guestfs-actions.pod:6718
28320 #: ../src/guestfs-actions.pod:7014 ../src/guestfs-actions.pod:7629
28321 msgid "(Added in 1.0.55)"
28322 msgstr "(Додано у 1.0.55)"
28323
28324 #. type: =head2
28325 #: ../src/guestfs-actions.pod:2416
28326 msgid "guestfs_get_network"
28327 msgstr ""
28328
28329 #. type: verbatim
28330 #: ../src/guestfs-actions.pod:2418
28331 #, no-wrap
28332 msgid ""
28333 " int\n"
28334 " guestfs_get_network (guestfs_h *g);\n"
28335 "\n"
28336 msgstr ""
28337
28338 #. type: textblock
28339 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:6737
28340 msgid "(Added in 1.5.4)"
28341 msgstr "(Додано у 1.5.4)"
28342
28343 #. type: =head2
28344 #: ../src/guestfs-actions.pod:2427
28345 msgid "guestfs_get_path"
28346 msgstr ""
28347
28348 #. type: verbatim
28349 #: ../src/guestfs-actions.pod:2429
28350 #, no-wrap
28351 msgid ""
28352 " const char *\n"
28353 " guestfs_get_path (guestfs_h *g);\n"
28354 "\n"
28355 msgstr ""
28356
28357 #. type: textblock
28358 #: ../src/guestfs-actions.pod:2437 ../src/guestfs-actions.pod:2477
28359 msgid ""
28360 "This function returns a string, or NULL on error.  The string is owned by "
28361 "the guest handle and must I<not> be freed."
28362 msgstr ""
28363
28364 #. type: =head2
28365 #: ../src/guestfs-actions.pod:2442
28366 msgid "guestfs_get_pgroup"
28367 msgstr ""
28368
28369 #. type: verbatim
28370 #: ../src/guestfs-actions.pod:2444
28371 #, no-wrap
28372 msgid ""
28373 " int\n"
28374 " guestfs_get_pgroup (guestfs_h *g);\n"
28375 "\n"
28376 msgstr ""
28377
28378 #. type: textblock
28379 #: ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:6773
28380 #: ../src/guestfs-actions.pod:8121
28381 msgid "(Added in 1.11.18)"
28382 msgstr "(Додано у 1.11.18)"
28383
28384 #. type: =head2
28385 #: ../src/guestfs-actions.pod:2453
28386 msgid "guestfs_get_pid"
28387 msgstr ""
28388
28389 #. type: verbatim
28390 #: ../src/guestfs-actions.pod:2455
28391 #, no-wrap
28392 msgid ""
28393 " int\n"
28394 " guestfs_get_pid (guestfs_h *g);\n"
28395 "\n"
28396 msgstr ""
28397
28398 #. type: textblock
28399 #: ../src/guestfs-actions.pod:2465
28400 msgid "(Added in 1.0.56)"
28401 msgstr "(Додано у 1.0.56)"
28402
28403 #. type: =head2
28404 #: ../src/guestfs-actions.pod:2467
28405 msgid "guestfs_get_qemu"
28406 msgstr ""
28407
28408 #. type: verbatim
28409 #: ../src/guestfs-actions.pod:2469
28410 #, no-wrap
28411 msgid ""
28412 " const char *\n"
28413 " guestfs_get_qemu (guestfs_h *g);\n"
28414 "\n"
28415 msgstr ""
28416
28417 #. type: textblock
28418 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6801
28419 msgid "(Added in 1.0.6)"
28420 msgstr "(Додано у 1.0.6)"
28421
28422 #. type: =head2
28423 #: ../src/guestfs-actions.pod:2482
28424 msgid "guestfs_get_recovery_proc"
28425 msgstr ""
28426
28427 #. type: verbatim
28428 #: ../src/guestfs-actions.pod:2484
28429 #, no-wrap
28430 msgid ""
28431 " int\n"
28432 " guestfs_get_recovery_proc (guestfs_h *g);\n"
28433 "\n"
28434 msgstr ""
28435
28436 #. type: textblock
28437 #: ../src/guestfs-actions.pod:2491 ../src/guestfs-actions.pod:4075
28438 #: ../src/guestfs-actions.pod:4406 ../src/guestfs-actions.pod:4809
28439 #: ../src/guestfs-actions.pod:4841 ../src/guestfs-actions.pod:6037
28440 #: ../src/guestfs-actions.pod:6380 ../src/guestfs-actions.pod:6825
28441 #: ../src/guestfs-actions.pod:7532 ../src/guestfs-actions.pod:7552
28442 #: ../src/guestfs-actions.pod:7744
28443 msgid "(Added in 1.0.77)"
28444 msgstr "(Додано у 1.0.77)"
28445
28446 #. type: =head2
28447 #: ../src/guestfs-actions.pod:2493
28448 msgid "guestfs_get_selinux"
28449 msgstr ""
28450
28451 #. type: verbatim
28452 #: ../src/guestfs-actions.pod:2495
28453 #, no-wrap
28454 msgid ""
28455 " int\n"
28456 " guestfs_get_selinux (guestfs_h *g);\n"
28457 "\n"
28458 msgstr ""
28459
28460 #. type: textblock
28461 #: ../src/guestfs-actions.pod:2498
28462 msgid ""
28463 "This returns the current setting of the selinux flag which is passed to the "
28464 "appliance at boot time.  See C<guestfs_set_selinux>."
28465 msgstr ""
28466
28467 #. type: textblock
28468 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:2580
28469 #: ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6918
28470 msgid "(Added in 1.0.67)"
28471 msgstr "(Додано у 1.0.67)"
28472
28473 #. type: =head2
28474 #: ../src/guestfs-actions.pod:2508
28475 msgid "guestfs_get_smp"
28476 msgstr ""
28477
28478 #. type: verbatim
28479 #: ../src/guestfs-actions.pod:2510
28480 #, no-wrap
28481 msgid ""
28482 " int\n"
28483 " guestfs_get_smp (guestfs_h *g);\n"
28484 "\n"
28485 msgstr ""
28486
28487 #. type: =head2
28488 #: ../src/guestfs-actions.pod:2519
28489 msgid "guestfs_get_state"
28490 msgstr ""
28491
28492 #. type: verbatim
28493 #: ../src/guestfs-actions.pod:2521
28494 #, no-wrap
28495 msgid ""
28496 " int\n"
28497 " guestfs_get_state (guestfs_h *g);\n"
28498 "\n"
28499 msgstr ""
28500
28501 #. type: =head2
28502 #: ../src/guestfs-actions.pod:2533
28503 msgid "guestfs_get_trace"
28504 msgstr ""
28505
28506 #. type: verbatim
28507 #: ../src/guestfs-actions.pod:2535
28508 #, no-wrap
28509 msgid ""
28510 " int\n"
28511 " guestfs_get_trace (guestfs_h *g);\n"
28512 "\n"
28513 msgstr ""
28514
28515 #. type: =head2
28516 #: ../src/guestfs-actions.pod:2544
28517 msgid "guestfs_get_umask"
28518 msgstr ""
28519
28520 #. type: verbatim
28521 #: ../src/guestfs-actions.pod:2546
28522 #, no-wrap
28523 msgid ""
28524 " int\n"
28525 " guestfs_get_umask (guestfs_h *g);\n"
28526 "\n"
28527 msgstr ""
28528
28529 #. type: textblock
28530 #: ../src/guestfs-actions.pod:2549
28531 msgid ""
28532 "Return the current umask.  By default the umask is C<022> unless it has been "
28533 "set by calling C<guestfs_umask>."
28534 msgstr ""
28535
28536 #. type: =head2
28537 #: ../src/guestfs-actions.pod:2556
28538 msgid "guestfs_get_verbose"
28539 msgstr ""
28540
28541 #. type: verbatim
28542 #: ../src/guestfs-actions.pod:2558
28543 #, no-wrap
28544 msgid ""
28545 " int\n"
28546 " guestfs_get_verbose (guestfs_h *g);\n"
28547 "\n"
28548 msgstr ""
28549
28550 #. type: =head2
28551 #: ../src/guestfs-actions.pod:2567
28552 msgid "guestfs_getcon"
28553 msgstr ""
28554
28555 #. type: verbatim
28556 #: ../src/guestfs-actions.pod:2569
28557 #, no-wrap
28558 msgid ""
28559 " char *\n"
28560 " guestfs_getcon (guestfs_h *g);\n"
28561 "\n"
28562 msgstr ""
28563
28564 #. type: textblock
28565 #: ../src/guestfs-actions.pod:2574
28566 msgid ""
28567 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
28568 msgstr ""
28569
28570 #. type: =head2
28571 #: ../src/guestfs-actions.pod:2582
28572 msgid "guestfs_getxattr"
28573 msgstr ""
28574
28575 #. type: verbatim
28576 #: ../src/guestfs-actions.pod:2584
28577 #, no-wrap
28578 msgid ""
28579 " char *\n"
28580 " guestfs_getxattr (guestfs_h *g,\n"
28581 "                   const char *path,\n"
28582 "                   const char *name,\n"
28583 "                   size_t *size_r);\n"
28584 "\n"
28585 msgstr ""
28586
28587 #. type: textblock
28588 #: ../src/guestfs-actions.pod:2590
28589 msgid ""
28590 "Get a single extended attribute from file C<path> named C<name>.  This call "
28591 "follows symlinks.  If you want to lookup an extended attribute for the "
28592 "symlink itself, use C<guestfs_lgetxattr>."
28593 msgstr ""
28594
28595 #. type: textblock
28596 #: ../src/guestfs-actions.pod:2594 ../src/guestfs-actions.pod:4089
28597 msgid ""
28598 "Normally it is better to get all extended attributes from a file in one go "
28599 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
28600 "implementations are buggy and do not provide a way to list out attributes.  "
28601 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
28602 "extended attributes you want in advance and call this function."
28603 msgstr ""
28604
28605 #. type: textblock
28606 #: ../src/guestfs-actions.pod:2604
28607 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
28608 msgstr ""
28609
28610 #. type: textblock
28611 #: ../src/guestfs-actions.pod:2606 ../src/guestfs-actions.pod:2819
28612 #: ../src/guestfs-actions.pod:3301 ../src/guestfs-actions.pod:4101
28613 #: ../src/guestfs-actions.pod:6030 ../src/guestfs-actions.pod:6056
28614 #: ../src/guestfs-actions.pod:6237
28615 msgid ""
28616 "This function returns a buffer, or NULL on error.  The size of the returned "
28617 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
28618 "after use>."
28619 msgstr ""
28620
28621 #. type: textblock
28622 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:4105
28623 msgid "(Added in 1.7.24)"
28624 msgstr "(Додано у 1.7.24)"
28625
28626 #. type: =head2
28627 #: ../src/guestfs-actions.pod:2612
28628 msgid "guestfs_getxattrs"
28629 msgstr ""
28630
28631 #. type: verbatim
28632 #: ../src/guestfs-actions.pod:2614
28633 #, no-wrap
28634 msgid ""
28635 " struct guestfs_xattr_list *\n"
28636 " guestfs_getxattrs (guestfs_h *g,\n"
28637 "                    const char *path);\n"
28638 "\n"
28639 msgstr ""
28640
28641 #. type: textblock
28642 #: ../src/guestfs-actions.pod:2624
28643 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
28644 msgstr ""
28645
28646 #. type: textblock
28647 #: ../src/guestfs-actions.pod:2626 ../src/guestfs-actions.pod:4117
28648 #: ../src/guestfs-actions.pod:4805
28649 msgid ""
28650 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
28651 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
28652 msgstr ""
28653
28654 #. type: textblock
28655 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:4121
28656 #: ../src/guestfs-actions.pod:4320 ../src/guestfs-actions.pod:4356
28657 #: ../src/guestfs-actions.pod:6410 ../src/guestfs-actions.pod:6937
28658 #: ../src/guestfs-actions.pod:8332
28659 msgid "(Added in 1.0.59)"
28660 msgstr "(Додано у 1.0.59)"
28661
28662 #. type: =head2
28663 #: ../src/guestfs-actions.pod:2632
28664 msgid "guestfs_glob_expand"
28665 msgstr ""
28666
28667 #. type: verbatim
28668 #: ../src/guestfs-actions.pod:2634
28669 #, no-wrap
28670 msgid ""
28671 " char **\n"
28672 " guestfs_glob_expand (guestfs_h *g,\n"
28673 "                      const char *pattern);\n"
28674 "\n"
28675 msgstr ""
28676
28677 #. type: textblock
28678 #: ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:7130
28679 #: ../src/guestfs-actions.pod:7147
28680 msgid "(Added in 1.0.50)"
28681 msgstr "(Додано у 1.0.50)"
28682
28683 #. type: =head2
28684 #: ../src/guestfs-actions.pod:2655
28685 msgid "guestfs_grep"
28686 msgstr ""
28687
28688 #. type: verbatim
28689 #: ../src/guestfs-actions.pod:2657
28690 #, no-wrap
28691 msgid ""
28692 " char **\n"
28693 " guestfs_grep (guestfs_h *g,\n"
28694 "               const char *regex,\n"
28695 "               const char *path);\n"
28696 "\n"
28697 msgstr ""
28698
28699 #. type: =head2
28700 #: ../src/guestfs-actions.pod:2674
28701 msgid "guestfs_grepi"
28702 msgstr ""
28703
28704 #. type: verbatim
28705 #: ../src/guestfs-actions.pod:2676
28706 #, no-wrap
28707 msgid ""
28708 " char **\n"
28709 " guestfs_grepi (guestfs_h *g,\n"
28710 "                const char *regex,\n"
28711 "                const char *path);\n"
28712 "\n"
28713 msgstr ""
28714
28715 #. type: =head2
28716 #: ../src/guestfs-actions.pod:2693
28717 msgid "guestfs_grub_install"
28718 msgstr ""
28719
28720 #. type: verbatim
28721 #: ../src/guestfs-actions.pod:2695
28722 #, no-wrap
28723 msgid ""
28724 " int\n"
28725 " guestfs_grub_install (guestfs_h *g,\n"
28726 "                       const char *root,\n"
28727 "                       const char *device);\n"
28728 "\n"
28729 msgstr ""
28730
28731 #. type: textblock
28732 #: ../src/guestfs-actions.pod:2738
28733 msgid "(Added in 1.0.17)"
28734 msgstr "(Додано у 1.0.17)"
28735
28736 #. type: =head2
28737 #: ../src/guestfs-actions.pod:2740
28738 msgid "guestfs_head"
28739 msgstr ""
28740
28741 #. type: verbatim
28742 #: ../src/guestfs-actions.pod:2742
28743 #, no-wrap
28744 msgid ""
28745 " char **\n"
28746 " guestfs_head (guestfs_h *g,\n"
28747 "               const char *path);\n"
28748 "\n"
28749 msgstr ""
28750
28751 #. type: =head2
28752 #: ../src/guestfs-actions.pod:2758
28753 msgid "guestfs_head_n"
28754 msgstr ""
28755
28756 #. type: verbatim
28757 #: ../src/guestfs-actions.pod:2760
28758 #, no-wrap
28759 msgid ""
28760 " char **\n"
28761 " guestfs_head_n (guestfs_h *g,\n"
28762 "                 int nrlines,\n"
28763 "                 const char *path);\n"
28764 "\n"
28765 msgstr ""
28766
28767 #. type: =head2
28768 #: ../src/guestfs-actions.pod:2782
28769 msgid "guestfs_hexdump"
28770 msgstr ""
28771
28772 #. type: verbatim
28773 #: ../src/guestfs-actions.pod:2784
28774 #, no-wrap
28775 msgid ""
28776 " char *\n"
28777 " guestfs_hexdump (guestfs_h *g,\n"
28778 "                  const char *path);\n"
28779 "\n"
28780 msgstr ""
28781
28782 #. type: textblock
28783 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:7211
28784 #: ../src/guestfs-actions.pod:7266
28785 msgid "(Added in 1.0.22)"
28786 msgstr "(Додано у 1.0.22)"
28787
28788 #. type: =head2
28789 #: ../src/guestfs-actions.pod:2799
28790 msgid "guestfs_initrd_cat"
28791 msgstr ""
28792
28793 #. type: verbatim
28794 #: ../src/guestfs-actions.pod:2801
28795 #, no-wrap
28796 msgid ""
28797 " char *\n"
28798 " guestfs_initrd_cat (guestfs_h *g,\n"
28799 "                     const char *initrdpath,\n"
28800 "                     const char *filename,\n"
28801 "                     size_t *size_r);\n"
28802 "\n"
28803 msgstr ""
28804
28805 #. type: textblock
28806 #: ../src/guestfs-actions.pod:2817
28807 msgid "See also C<guestfs_initrd_list>."
28808 msgstr ""
28809
28810 #. type: =head2
28811 #: ../src/guestfs-actions.pod:2828
28812 msgid "guestfs_initrd_list"
28813 msgstr ""
28814
28815 #. type: verbatim
28816 #: ../src/guestfs-actions.pod:2830
28817 #, no-wrap
28818 msgid ""
28819 " char **\n"
28820 " guestfs_initrd_list (guestfs_h *g,\n"
28821 "                      const char *path);\n"
28822 "\n"
28823 msgstr ""
28824
28825 #. type: =head2
28826 #: ../src/guestfs-actions.pod:2850
28827 msgid "guestfs_inotify_add_watch"
28828 msgstr ""
28829
28830 #. type: verbatim
28831 #: ../src/guestfs-actions.pod:2852
28832 #, no-wrap
28833 msgid ""
28834 " int64_t\n"
28835 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28836 "                            const char *path,\n"
28837 "                            int mask);\n"
28838 "\n"
28839 msgstr ""
28840
28841 #. type: =head2
28842 #: ../src/guestfs-actions.pod:2871
28843 msgid "guestfs_inotify_close"
28844 msgstr ""
28845
28846 #. type: verbatim
28847 #: ../src/guestfs-actions.pod:2873
28848 #, no-wrap
28849 msgid ""
28850 " int\n"
28851 " guestfs_inotify_close (guestfs_h *g);\n"
28852 "\n"
28853 msgstr ""
28854
28855 #. type: =head2
28856 #: ../src/guestfs-actions.pod:2884
28857 msgid "guestfs_inotify_files"
28858 msgstr ""
28859
28860 #. type: verbatim
28861 #: ../src/guestfs-actions.pod:2886
28862 #, no-wrap
28863 msgid ""
28864 " char **\n"
28865 " guestfs_inotify_files (guestfs_h *g);\n"
28866 "\n"
28867 msgstr ""
28868
28869 #. type: textblock
28870 #: ../src/guestfs-actions.pod:2889
28871 msgid ""
28872 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28873 "returns a list of pathnames of objects that were touched.  The returned "
28874 "pathnames are sorted and deduplicated."
28875 msgstr ""
28876
28877 #. type: =head2
28878 #: ../src/guestfs-actions.pod:2899
28879 msgid "guestfs_inotify_init"
28880 msgstr ""
28881
28882 #. type: verbatim
28883 #: ../src/guestfs-actions.pod:2901
28884 #, no-wrap
28885 msgid ""
28886 " int\n"
28887 " guestfs_inotify_init (guestfs_h *g,\n"
28888 "                       int maxevents);\n"
28889 "\n"
28890 msgstr ""
28891
28892 #. type: textblock
28893 #: ../src/guestfs-actions.pod:2909
28894 msgid ""
28895 "C<maxevents> is the maximum number of events which will be queued up between "
28896 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28897 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28898 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28899 "throws away events, but records the fact that it threw them away by setting "
28900 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28901 "C<guestfs_inotify_read>)."
28902 msgstr ""
28903
28904 #. type: textblock
28905 #: ../src/guestfs-actions.pod:2919
28906 msgid ""
28907 "Before any events are generated, you have to add some watches to the "
28908 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28909 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28910 msgstr ""
28911
28912 #. type: textblock
28913 #: ../src/guestfs-actions.pod:2925
28914 msgid ""
28915 "Queued up events should be read periodically by calling "
28916 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28917 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28918 "often enough then you risk the internal queue overflowing."
28919 msgstr ""
28920
28921 #. type: textblock
28922 #: ../src/guestfs-actions.pod:2932
28923 msgid ""
28924 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28925 "This also removes any watches automatically."
28926 msgstr ""
28927
28928 #. type: =head2
28929 #: ../src/guestfs-actions.pod:2945
28930 msgid "guestfs_inotify_read"
28931 msgstr ""
28932
28933 #. type: verbatim
28934 #: ../src/guestfs-actions.pod:2947
28935 #, no-wrap
28936 msgid ""
28937 " struct guestfs_inotify_event_list *\n"
28938 " guestfs_inotify_read (guestfs_h *g);\n"
28939 "\n"
28940 msgstr ""
28941
28942 #. type: textblock
28943 #: ../src/guestfs-actions.pod:2961
28944 msgid ""
28945 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28946 "there was an error.  I<The caller must call "
28947 "C<guestfs_free_inotify_event_list> after use>."
28948 msgstr ""
28949
28950 #. type: =head2
28951 #: ../src/guestfs-actions.pod:2967
28952 msgid "guestfs_inotify_rm_watch"
28953 msgstr ""
28954
28955 #. type: verbatim
28956 #: ../src/guestfs-actions.pod:2969
28957 #, no-wrap
28958 msgid ""
28959 " int\n"
28960 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28961 "                           int wd);\n"
28962 "\n"
28963 msgstr ""
28964
28965 #. type: textblock
28966 #: ../src/guestfs-actions.pod:2973
28967 msgid ""
28968 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
28969 msgstr ""
28970
28971 #. type: =head2
28972 #: ../src/guestfs-actions.pod:2980
28973 msgid "guestfs_inspect_get_arch"
28974 msgstr ""
28975
28976 #. type: verbatim
28977 #: ../src/guestfs-actions.pod:2982
28978 #, no-wrap
28979 msgid ""
28980 " char *\n"
28981 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28982 "                           const char *root);\n"
28983 "\n"
28984 msgstr ""
28985
28986 #. type: textblock
28987 #: ../src/guestfs-actions.pod:2986
28988 msgid ""
28989 "This returns the architecture of the inspected operating system.  The "
28990 "possible return values are listed under C<guestfs_file_architecture>."
28991 msgstr ""
28992
28993 #. type: =head2
28994 #: ../src/guestfs-actions.pod:3000
28995 msgid "guestfs_inspect_get_distro"
28996 msgstr ""
28997
28998 #. type: verbatim
28999 #: ../src/guestfs-actions.pod:3002
29000 #, no-wrap
29001 msgid ""
29002 " char *\n"
29003 " guestfs_inspect_get_distro (guestfs_h *g,\n"
29004 "                             const char *root);\n"
29005 "\n"
29006 msgstr ""
29007
29008 #. type: =head2
29009 #: ../src/guestfs-actions.pod:3102
29010 msgid "guestfs_inspect_get_drive_mappings"
29011 msgstr ""
29012
29013 #. type: verbatim
29014 #: ../src/guestfs-actions.pod:3104
29015 #, no-wrap
29016 msgid ""
29017 " char **\n"
29018 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
29019 "                                     const char *root);\n"
29020 "\n"
29021 msgstr ""
29022
29023 #. type: textblock
29024 #: ../src/guestfs-actions.pod:3133
29025 msgid ""
29026 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29027 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
29028 msgstr ""
29029
29030 #. type: textblock
29031 #: ../src/guestfs-actions.pod:3137 ../src/guestfs-actions.pod:3405
29032 #: ../src/guestfs-actions.pod:4208 ../src/guestfs-actions.pod:5480
29033 #: ../src/guestfs-actions.pod:7568
29034 msgid ""
29035 "This function returns a NULL-terminated array of strings, or NULL if there "
29036 "was an error.  The array of strings will always have length C<2n+1>, where "
29037 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
29038 "caller must free the strings and the array after use>."
29039 msgstr ""
29040
29041 #. type: textblock
29042 #: ../src/guestfs-actions.pod:3143 ../src/guestfs-actions.pod:3604
29043 msgid "(Added in 1.9.17)"
29044 msgstr "(Додано у 1.9.17)"
29045
29046 #. type: =head2
29047 #: ../src/guestfs-actions.pod:3145
29048 msgid "guestfs_inspect_get_filesystems"
29049 msgstr ""
29050
29051 #. type: verbatim
29052 #: ../src/guestfs-actions.pod:3147
29053 #, no-wrap
29054 msgid ""
29055 " char **\n"
29056 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
29057 "                                  const char *root);\n"
29058 "\n"
29059 msgstr ""
29060
29061 #. type: textblock
29062 #: ../src/guestfs-actions.pod:3159
29063 msgid ""
29064 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29065 "C<guestfs_inspect_get_mountpoints>."
29066 msgstr ""
29067
29068 #. type: =head2
29069 #: ../src/guestfs-actions.pod:3168
29070 msgid "guestfs_inspect_get_format"
29071 msgstr ""
29072
29073 #. type: verbatim
29074 #: ../src/guestfs-actions.pod:3170
29075 #, no-wrap
29076 msgid ""
29077 " char *\n"
29078 " guestfs_inspect_get_format (guestfs_h *g,\n"
29079 "                             const char *root);\n"
29080 "\n"
29081 msgstr ""
29082
29083 #. type: textblock
29084 #: ../src/guestfs-actions.pod:3204 ../src/guestfs-actions.pod:3640
29085 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3674
29086 #: ../src/guestfs-actions.pod:6448
29087 msgid "(Added in 1.9.4)"
29088 msgstr "(Додано у 1.9.4)"
29089
29090 #. type: =head2
29091 #: ../src/guestfs-actions.pod:3206
29092 msgid "guestfs_inspect_get_hostname"
29093 msgstr ""
29094
29095 #. type: verbatim
29096 #: ../src/guestfs-actions.pod:3208
29097 #, no-wrap
29098 msgid ""
29099 " char *\n"
29100 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
29101 "                               const char *root);\n"
29102 "\n"
29103 msgstr ""
29104
29105 #. type: textblock
29106 #: ../src/guestfs-actions.pod:3223
29107 msgid "(Added in 1.7.9)"
29108 msgstr "(Додано у 1.7.9)"
29109
29110 #. type: =head2
29111 #: ../src/guestfs-actions.pod:3225
29112 msgid "guestfs_inspect_get_icon"
29113 msgstr ""
29114
29115 #. type: verbatim
29116 #: ../src/guestfs-actions.pod:3227
29117 #, no-wrap
29118 msgid ""
29119 " char *\n"
29120 " guestfs_inspect_get_icon (guestfs_h *g,\n"
29121 "                           const char *root,\n"
29122 "                           size_t *size_r,\n"
29123 "                           ...);\n"
29124 "\n"
29125 msgstr ""
29126
29127 #. type: verbatim
29128 #: ../src/guestfs-actions.pod:3238
29129 #, no-wrap
29130 msgid ""
29131 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
29132 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
29133 "\n"
29134 msgstr ""
29135
29136 #. type: textblock
29137 #: ../src/guestfs-actions.pod:3305 ../src/guestfs-actions.pod:4135
29138 #: ../src/guestfs-actions.pod:5379
29139 msgid "(Added in 1.11.12)"
29140 msgstr "(Додано у 1.11.12)"
29141
29142 #. type: =head2
29143 #: ../src/guestfs-actions.pod:3307
29144 msgid "guestfs_inspect_get_icon_va"
29145 msgstr ""
29146
29147 #. type: verbatim
29148 #: ../src/guestfs-actions.pod:3309
29149 #, no-wrap
29150 msgid ""
29151 " char *\n"
29152 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
29153 "                              const char *root,\n"
29154 "                              size_t *size_r,\n"
29155 "                              va_list args);\n"
29156 "\n"
29157 msgstr ""
29158
29159 #. type: textblock
29160 #: ../src/guestfs-actions.pod:3315
29161 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
29162 msgstr ""
29163
29164 #. type: =head2
29165 #: ../src/guestfs-actions.pod:3319
29166 msgid "guestfs_inspect_get_icon_argv"
29167 msgstr ""
29168
29169 #. type: verbatim
29170 #: ../src/guestfs-actions.pod:3321
29171 #, no-wrap
29172 msgid ""
29173 " char *\n"
29174 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
29175 "                                const char *root,\n"
29176 "                                size_t *size_r,\n"
29177 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
29178 "\n"
29179 msgstr ""
29180
29181 #. type: textblock
29182 #: ../src/guestfs-actions.pod:3327
29183 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
29184 msgstr ""
29185
29186 #. type: =head2
29187 #: ../src/guestfs-actions.pod:3331
29188 msgid "guestfs_inspect_get_major_version"
29189 msgstr ""
29190
29191 #. type: verbatim
29192 #: ../src/guestfs-actions.pod:3333
29193 #, no-wrap
29194 msgid ""
29195 " int\n"
29196 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
29197 "                                    const char *root);\n"
29198 "\n"
29199 msgstr ""
29200
29201 #. type: =head2
29202 #: ../src/guestfs-actions.pod:3355
29203 msgid "guestfs_inspect_get_minor_version"
29204 msgstr ""
29205
29206 #. type: verbatim
29207 #: ../src/guestfs-actions.pod:3357
29208 #, no-wrap
29209 msgid ""
29210 " int\n"
29211 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
29212 "                                    const char *root);\n"
29213 "\n"
29214 msgstr ""
29215
29216 #. type: textblock
29217 #: ../src/guestfs-actions.pod:3366
29218 msgid ""
29219 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29220 "C<guestfs_inspect_get_major_version>."
29221 msgstr ""
29222
29223 #. type: =head2
29224 #: ../src/guestfs-actions.pod:3373
29225 msgid "guestfs_inspect_get_mountpoints"
29226 msgstr ""
29227
29228 #. type: verbatim
29229 #: ../src/guestfs-actions.pod:3375
29230 #, no-wrap
29231 msgid ""
29232 " char **\n"
29233 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
29234 "                                  const char *root);\n"
29235 "\n"
29236 msgstr ""
29237
29238 #. type: textblock
29239 #: ../src/guestfs-actions.pod:3396
29240 msgid ""
29241 "For operating systems like Windows which still use drive letters, this call "
29242 "will only return an entry for the first drive \"mounted on\" C</>.  For "
29243 "information about the mapping of drive letters to partitions, see "
29244 "C<guestfs_inspect_get_drive_mappings>."
29245 msgstr ""
29246
29247 #. type: textblock
29248 #: ../src/guestfs-actions.pod:3402
29249 msgid ""
29250 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29251 "C<guestfs_inspect_get_filesystems>."
29252 msgstr ""
29253
29254 #. type: =head2
29255 #: ../src/guestfs-actions.pod:3413
29256 msgid "guestfs_inspect_get_package_format"
29257 msgstr ""
29258
29259 #. type: verbatim
29260 #: ../src/guestfs-actions.pod:3415
29261 #, no-wrap
29262 msgid ""
29263 " char *\n"
29264 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
29265 "                                     const char *root);\n"
29266 "\n"
29267 msgstr ""
29268
29269 #. type: textblock
29270 #: ../src/guestfs-actions.pod:3419
29271 msgid ""
29272 "This function and C<guestfs_inspect_get_package_management> return the "
29273 "package format and package management tool used by the inspected operating "
29274 "system.  For example for Fedora these functions would return C<rpm> (package "
29275 "format) and C<yum> (package management)."
29276 msgstr ""
29277
29278 #. type: textblock
29279 #: ../src/guestfs-actions.pod:3438 ../src/guestfs-actions.pod:3466
29280 msgid "(Added in 1.7.5)"
29281 msgstr "(Додано у 1.7.5)"
29282
29283 #. type: =head2
29284 #: ../src/guestfs-actions.pod:3440
29285 msgid "guestfs_inspect_get_package_management"
29286 msgstr ""
29287
29288 #. type: verbatim
29289 #: ../src/guestfs-actions.pod:3442
29290 #, no-wrap
29291 msgid ""
29292 " char *\n"
29293 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
29294 "                                         const char *root);\n"
29295 "\n"
29296 msgstr ""
29297
29298 #. type: textblock
29299 #: ../src/guestfs-actions.pod:3446
29300 msgid ""
29301 "C<guestfs_inspect_get_package_format> and this function return the package "
29302 "format and package management tool used by the inspected operating system.  "
29303 "For example for Fedora these functions would return C<rpm> (package format) "
29304 "and C<yum> (package management)."
29305 msgstr ""
29306
29307 #. type: =head2
29308 #: ../src/guestfs-actions.pod:3468
29309 msgid "guestfs_inspect_get_product_name"
29310 msgstr ""
29311
29312 #. type: verbatim
29313 #: ../src/guestfs-actions.pod:3470
29314 #, no-wrap
29315 msgid ""
29316 " char *\n"
29317 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
29318 "                                   const char *root);\n"
29319 "\n"
29320 msgstr ""
29321
29322 #. type: =head2
29323 #: ../src/guestfs-actions.pod:3489
29324 msgid "guestfs_inspect_get_product_variant"
29325 msgstr ""
29326
29327 #. type: verbatim
29328 #: ../src/guestfs-actions.pod:3491
29329 #, no-wrap
29330 msgid ""
29331 " char *\n"
29332 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
29333 "                                      const char *root);\n"
29334 "\n"
29335 msgstr ""
29336
29337 #. type: textblock
29338 #: ../src/guestfs-actions.pod:3514
29339 msgid ""
29340 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
29341 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
29342 msgstr ""
29343
29344 #. type: textblock
29345 #: ../src/guestfs-actions.pod:3521
29346 msgid "(Added in 1.9.13)"
29347 msgstr "(Додано у 1.9.13)"
29348
29349 #. type: =head2
29350 #: ../src/guestfs-actions.pod:3523
29351 msgid "guestfs_inspect_get_roots"
29352 msgstr ""
29353
29354 #. type: verbatim
29355 #: ../src/guestfs-actions.pod:3525
29356 #, no-wrap
29357 msgid ""
29358 " char **\n"
29359 " guestfs_inspect_get_roots (guestfs_h *g);\n"
29360 "\n"
29361 msgstr ""
29362
29363 #. type: textblock
29364 #: ../src/guestfs-actions.pod:3528
29365 msgid ""
29366 "This function is a convenient way to get the list of root devices, as "
29367 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
29368 "the whole inspection process."
29369 msgstr ""
29370
29371 #. type: textblock
29372 #: ../src/guestfs-actions.pod:3532
29373 msgid ""
29374 "This returns an empty list if either no root devices were found or the "
29375 "caller has not called C<guestfs_inspect_os>."
29376 msgstr ""
29377
29378 #. type: textblock
29379 #: ../src/guestfs-actions.pod:3541
29380 msgid "(Added in 1.7.3)"
29381 msgstr "(Додано у 1.7.3)"
29382
29383 #. type: =head2
29384 #: ../src/guestfs-actions.pod:3543
29385 msgid "guestfs_inspect_get_type"
29386 msgstr ""
29387
29388 #. type: verbatim
29389 #: ../src/guestfs-actions.pod:3545
29390 #, no-wrap
29391 msgid ""
29392 " char *\n"
29393 " guestfs_inspect_get_type (guestfs_h *g,\n"
29394 "                           const char *root);\n"
29395 "\n"
29396 msgstr ""
29397
29398 #. type: =head2
29399 #: ../src/guestfs-actions.pod:3586
29400 msgid "guestfs_inspect_get_windows_current_control_set"
29401 msgstr ""
29402
29403 #. type: verbatim
29404 #: ../src/guestfs-actions.pod:3588
29405 #, no-wrap
29406 msgid ""
29407 " char *\n"
29408 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
29409 "                                                  const char *root);\n"
29410 "\n"
29411 msgstr ""
29412
29413 #. type: =head2
29414 #: ../src/guestfs-actions.pod:3606
29415 msgid "guestfs_inspect_get_windows_systemroot"
29416 msgstr ""
29417
29418 #. type: verbatim
29419 #: ../src/guestfs-actions.pod:3608
29420 #, no-wrap
29421 msgid ""
29422 " char *\n"
29423 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
29424 "                                         const char *root);\n"
29425 "\n"
29426 msgstr ""
29427
29428 #. type: textblock
29429 #: ../src/guestfs-actions.pod:3624
29430 msgid "(Added in 1.5.25)"
29431 msgstr "(Додано у 1.5.25)"
29432
29433 #. type: =head2
29434 #: ../src/guestfs-actions.pod:3626
29435 msgid "guestfs_inspect_is_live"
29436 msgstr ""
29437
29438 #. type: verbatim
29439 #: ../src/guestfs-actions.pod:3628
29440 #, no-wrap
29441 msgid ""
29442 " int\n"
29443 " guestfs_inspect_is_live (guestfs_h *g,\n"
29444 "                          const char *root);\n"
29445 "\n"
29446 msgstr ""
29447
29448 #. type: textblock
29449 #: ../src/guestfs-actions.pod:3632
29450 msgid ""
29451 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29452 "disk), then this returns true if a live image was detected on the disk."
29453 msgstr ""
29454
29455 #. type: =head2
29456 #: ../src/guestfs-actions.pod:3642
29457 msgid "guestfs_inspect_is_multipart"
29458 msgstr ""
29459
29460 #. type: verbatim
29461 #: ../src/guestfs-actions.pod:3644
29462 #, no-wrap
29463 msgid ""
29464 " int\n"
29465 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
29466 "                               const char *root);\n"
29467 "\n"
29468 msgstr ""
29469
29470 #. type: textblock
29471 #: ../src/guestfs-actions.pod:3648
29472 msgid ""
29473 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29474 "disk), then this returns true if the disk is part of a set."
29475 msgstr ""
29476
29477 #. type: =head2
29478 #: ../src/guestfs-actions.pod:3658
29479 msgid "guestfs_inspect_is_netinst"
29480 msgstr ""
29481
29482 #. type: verbatim
29483 #: ../src/guestfs-actions.pod:3660
29484 #, no-wrap
29485 msgid ""
29486 " int\n"
29487 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
29488 "                             const char *root);\n"
29489 "\n"
29490 msgstr ""
29491
29492 #. type: textblock
29493 #: ../src/guestfs-actions.pod:3664
29494 msgid ""
29495 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
29496 "disk), then this returns true if the disk is a network installer, ie. not a "
29497 "self-contained install CD but one which is likely to require network access "
29498 "to complete the install."
29499 msgstr ""
29500
29501 #. type: =head2
29502 #: ../src/guestfs-actions.pod:3676
29503 msgid "guestfs_inspect_list_applications"
29504 msgstr ""
29505
29506 #. type: verbatim
29507 #: ../src/guestfs-actions.pod:3678
29508 #, no-wrap
29509 msgid ""
29510 " struct guestfs_application_list *\n"
29511 " guestfs_inspect_list_applications (guestfs_h *g,\n"
29512 "                                    const char *root);\n"
29513 "\n"
29514 msgstr ""
29515
29516 #. type: textblock
29517 #: ../src/guestfs-actions.pod:3684
29518 msgid ""
29519 "I<Note:> This call works differently from other parts of the inspection "
29520 "API.  You have to call C<guestfs_inspect_os>, then "
29521 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
29522 "this.  Listing applications is a significantly more difficult operation "
29523 "which requires access to the full filesystem.  Also note that unlike the "
29524 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
29525 "the libguestfs handle, this call actually reads parts of the mounted "
29526 "filesystems during the call."
29527 msgstr ""
29528
29529 #. type: textblock
29530 #: ../src/guestfs-actions.pod:3774
29531 msgid ""
29532 "This function returns a C<struct guestfs_application_list *>, or NULL if "
29533 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
29534 "after use>."
29535 msgstr ""
29536
29537 #. type: textblock
29538 #: ../src/guestfs-actions.pod:3778
29539 msgid "(Added in 1.7.8)"
29540 msgstr "(Додано у 1.7.8)"
29541
29542 #. type: =head2
29543 #: ../src/guestfs-actions.pod:3780
29544 msgid "guestfs_inspect_os"
29545 msgstr ""
29546
29547 #. type: verbatim
29548 #: ../src/guestfs-actions.pod:3782
29549 #, no-wrap
29550 msgid ""
29551 " char **\n"
29552 " guestfs_inspect_os (guestfs_h *g);\n"
29553 "\n"
29554 msgstr ""
29555
29556 #. type: textblock
29557 #: ../src/guestfs-actions.pod:3798
29558 msgid ""
29559 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
29560 "functions in order to query further information about each operating system, "
29561 "such as the name and version."
29562 msgstr ""
29563
29564 #. type: textblock
29565 #: ../src/guestfs-actions.pod:3803
29566 msgid ""
29567 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
29568 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
29569 "the contents.  This should be called with no disks currently mounted.  The "
29570 "function may also use Augeas, so any existing Augeas handle will be closed."
29571 msgstr ""
29572
29573 #. type: textblock
29574 #: ../src/guestfs-actions.pod:3815 ../src/guestfs-actions.pod:4146
29575 #: ../src/guestfs-actions.pod:4228
29576 msgid "See also C<guestfs_list_filesystems>."
29577 msgstr ""
29578
29579 #. type: =head2
29580 #: ../src/guestfs-actions.pod:3823
29581 msgid "guestfs_is_blockdev"
29582 msgstr ""
29583
29584 #. type: verbatim
29585 #: ../src/guestfs-actions.pod:3825
29586 #, no-wrap
29587 msgid ""
29588 " int\n"
29589 " guestfs_is_blockdev (guestfs_h *g,\n"
29590 "                      const char *path);\n"
29591 "\n"
29592 msgstr ""
29593
29594 #. type: textblock
29595 #: ../src/guestfs-actions.pod:3832 ../src/guestfs-actions.pod:3861
29596 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3906
29597 #: ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:3978
29598 #: ../src/guestfs-actions.pod:3993
29599 msgid "See also C<guestfs_stat>."
29600 msgstr ""
29601
29602 #. type: textblock
29603 #: ../src/guestfs-actions.pod:3836 ../src/guestfs-actions.pod:3865
29604 #: ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3982
29605 #: ../src/guestfs-actions.pod:3997
29606 msgid "(Added in 1.5.10)"
29607 msgstr "(Додано у 1.5.10)"
29608
29609 #. type: =head2
29610 #: ../src/guestfs-actions.pod:3838
29611 msgid "guestfs_is_busy"
29612 msgstr ""
29613
29614 #. type: verbatim
29615 #: ../src/guestfs-actions.pod:3840
29616 #, no-wrap
29617 msgid ""
29618 " int\n"
29619 " guestfs_is_busy (guestfs_h *g);\n"
29620 "\n"
29621 msgstr ""
29622
29623 #. type: =head2
29624 #: ../src/guestfs-actions.pod:3852
29625 msgid "guestfs_is_chardev"
29626 msgstr ""
29627
29628 #. type: verbatim
29629 #: ../src/guestfs-actions.pod:3854
29630 #, no-wrap
29631 msgid ""
29632 " int\n"
29633 " guestfs_is_chardev (guestfs_h *g,\n"
29634 "                     const char *path);\n"
29635 "\n"
29636 msgstr ""
29637
29638 #. type: =head2
29639 #: ../src/guestfs-actions.pod:3867
29640 msgid "guestfs_is_config"
29641 msgstr ""
29642
29643 #. type: verbatim
29644 #: ../src/guestfs-actions.pod:3869
29645 #, no-wrap
29646 msgid ""
29647 " int\n"
29648 " guestfs_is_config (guestfs_h *g);\n"
29649 "\n"
29650 msgstr ""
29651
29652 #. type: =head2
29653 #: ../src/guestfs-actions.pod:3881
29654 msgid "guestfs_is_dir"
29655 msgstr ""
29656
29657 #. type: verbatim
29658 #: ../src/guestfs-actions.pod:3883
29659 #, no-wrap
29660 msgid ""
29661 " int\n"
29662 " guestfs_is_dir (guestfs_h *g,\n"
29663 "                 const char *path);\n"
29664 "\n"
29665 msgstr ""
29666
29667 #. type: =head2
29668 #: ../src/guestfs-actions.pod:3897
29669 msgid "guestfs_is_fifo"
29670 msgstr ""
29671
29672 #. type: verbatim
29673 #: ../src/guestfs-actions.pod:3899
29674 #, no-wrap
29675 msgid ""
29676 " int\n"
29677 " guestfs_is_fifo (guestfs_h *g,\n"
29678 "                  const char *path);\n"
29679 "\n"
29680 msgstr ""
29681
29682 #. type: =head2
29683 #: ../src/guestfs-actions.pod:3912
29684 msgid "guestfs_is_file"
29685 msgstr ""
29686
29687 #. type: verbatim
29688 #: ../src/guestfs-actions.pod:3914
29689 #, no-wrap
29690 msgid ""
29691 " int\n"
29692 " guestfs_is_file (guestfs_h *g,\n"
29693 "                  const char *path);\n"
29694 "\n"
29695 msgstr ""
29696
29697 #. type: =head2
29698 #: ../src/guestfs-actions.pod:3928
29699 msgid "guestfs_is_launching"
29700 msgstr ""
29701
29702 #. type: verbatim
29703 #: ../src/guestfs-actions.pod:3930
29704 #, no-wrap
29705 msgid ""
29706 " int\n"
29707 " guestfs_is_launching (guestfs_h *g);\n"
29708 "\n"
29709 msgstr ""
29710
29711 #. type: =head2
29712 #: ../src/guestfs-actions.pod:3942
29713 msgid "guestfs_is_lv"
29714 msgstr ""
29715
29716 #. type: verbatim
29717 #: ../src/guestfs-actions.pod:3944
29718 #, no-wrap
29719 msgid ""
29720 " int\n"
29721 " guestfs_is_lv (guestfs_h *g,\n"
29722 "                const char *device);\n"
29723 "\n"
29724 msgstr ""
29725
29726 #. type: =head2
29727 #: ../src/guestfs-actions.pod:3955
29728 msgid "guestfs_is_ready"
29729 msgstr ""
29730
29731 #. type: verbatim
29732 #: ../src/guestfs-actions.pod:3957
29733 #, no-wrap
29734 msgid ""
29735 " int\n"
29736 " guestfs_is_ready (guestfs_h *g);\n"
29737 "\n"
29738 msgstr ""
29739
29740 #. type: =head2
29741 #: ../src/guestfs-actions.pod:3969
29742 msgid "guestfs_is_socket"
29743 msgstr ""
29744
29745 #. type: verbatim
29746 #: ../src/guestfs-actions.pod:3971
29747 #, no-wrap
29748 msgid ""
29749 " int\n"
29750 " guestfs_is_socket (guestfs_h *g,\n"
29751 "                    const char *path);\n"
29752 "\n"
29753 msgstr ""
29754
29755 #. type: =head2
29756 #: ../src/guestfs-actions.pod:3984
29757 msgid "guestfs_is_symlink"
29758 msgstr ""
29759
29760 #. type: verbatim
29761 #: ../src/guestfs-actions.pod:3986
29762 #, no-wrap
29763 msgid ""
29764 " int\n"
29765 " guestfs_is_symlink (guestfs_h *g,\n"
29766 "                     const char *path);\n"
29767 "\n"
29768 msgstr ""
29769
29770 #. type: =head2
29771 #: ../src/guestfs-actions.pod:3999
29772 msgid "guestfs_is_zero"
29773 msgstr ""
29774
29775 #. type: verbatim
29776 #: ../src/guestfs-actions.pod:4001
29777 #, no-wrap
29778 msgid ""
29779 " int\n"
29780 " guestfs_is_zero (guestfs_h *g,\n"
29781 "                  const char *path);\n"
29782 "\n"
29783 msgstr ""
29784
29785 #. type: textblock
29786 #: ../src/guestfs-actions.pod:4010 ../src/guestfs-actions.pod:4024
29787 msgid "(Added in 1.11.8)"
29788 msgstr "(Додано у 1.11.8)"
29789
29790 #. type: =head2
29791 #: ../src/guestfs-actions.pod:4012
29792 msgid "guestfs_is_zero_device"
29793 msgstr ""
29794
29795 #. type: verbatim
29796 #: ../src/guestfs-actions.pod:4014
29797 #, no-wrap
29798 msgid ""
29799 " int\n"
29800 " guestfs_is_zero_device (guestfs_h *g,\n"
29801 "                         const char *device);\n"
29802 "\n"
29803 msgstr ""
29804
29805 #. type: =head2
29806 #: ../src/guestfs-actions.pod:4026
29807 msgid "guestfs_kill_subprocess"
29808 msgstr ""
29809
29810 #. type: verbatim
29811 #: ../src/guestfs-actions.pod:4028
29812 #, no-wrap
29813 msgid ""
29814 " int\n"
29815 " guestfs_kill_subprocess (guestfs_h *g);\n"
29816 "\n"
29817 msgstr ""
29818
29819 #. type: =head2
29820 #: ../src/guestfs-actions.pod:4037
29821 msgid "guestfs_launch"
29822 msgstr ""
29823
29824 #. type: verbatim
29825 #: ../src/guestfs-actions.pod:4039
29826 #, no-wrap
29827 msgid ""
29828 " int\n"
29829 " guestfs_launch (guestfs_h *g);\n"
29830 "\n"
29831 msgstr ""
29832
29833 #. type: =head2
29834 #: ../src/guestfs-actions.pod:4057
29835 msgid "guestfs_lchown"
29836 msgstr ""
29837
29838 #. type: verbatim
29839 #: ../src/guestfs-actions.pod:4059
29840 #, no-wrap
29841 msgid ""
29842 " int\n"
29843 " guestfs_lchown (guestfs_h *g,\n"
29844 "                 int owner,\n"
29845 "                 int group,\n"
29846 "                 const char *path);\n"
29847 "\n"
29848 msgstr ""
29849
29850 #. type: textblock
29851 #: ../src/guestfs-actions.pod:4065
29852 msgid ""
29853 "Change the file owner to C<owner> and group to C<group>.  This is like "
29854 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29855 "changed, not the target."
29856 msgstr ""
29857
29858 #. type: =head2
29859 #: ../src/guestfs-actions.pod:4077
29860 msgid "guestfs_lgetxattr"
29861 msgstr ""
29862
29863 #. type: verbatim
29864 #: ../src/guestfs-actions.pod:4079
29865 #, no-wrap
29866 msgid ""
29867 " char *\n"
29868 " guestfs_lgetxattr (guestfs_h *g,\n"
29869 "                    const char *path,\n"
29870 "                    const char *name,\n"
29871 "                    size_t *size_r);\n"
29872 "\n"
29873 msgstr ""
29874
29875 #. type: textblock
29876 #: ../src/guestfs-actions.pod:4099
29877 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29878 msgstr ""
29879
29880 #. type: =head2
29881 #: ../src/guestfs-actions.pod:4107
29882 msgid "guestfs_lgetxattrs"
29883 msgstr ""
29884
29885 #. type: verbatim
29886 #: ../src/guestfs-actions.pod:4109
29887 #, no-wrap
29888 msgid ""
29889 " struct guestfs_xattr_list *\n"
29890 " guestfs_lgetxattrs (guestfs_h *g,\n"
29891 "                     const char *path);\n"
29892 "\n"
29893 msgstr ""
29894
29895 #. type: textblock
29896 #: ../src/guestfs-actions.pod:4113
29897 msgid ""
29898 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29899 "then it returns the extended attributes of the link itself."
29900 msgstr ""
29901
29902 #. type: =head2
29903 #: ../src/guestfs-actions.pod:4123
29904 msgid "guestfs_list_9p"
29905 msgstr ""
29906
29907 #. type: verbatim
29908 #: ../src/guestfs-actions.pod:4125
29909 #, no-wrap
29910 msgid ""
29911 " char **\n"
29912 " guestfs_list_9p (guestfs_h *g);\n"
29913 "\n"
29914 msgstr ""
29915
29916 #. type: =head2
29917 #: ../src/guestfs-actions.pod:4137
29918 msgid "guestfs_list_devices"
29919 msgstr ""
29920
29921 #. type: verbatim
29922 #: ../src/guestfs-actions.pod:4139
29923 #, no-wrap
29924 msgid ""
29925 " char **\n"
29926 " guestfs_list_devices (guestfs_h *g);\n"
29927 "\n"
29928 msgstr ""
29929
29930 #. type: =head2
29931 #: ../src/guestfs-actions.pod:4154
29932 msgid "guestfs_list_dm_devices"
29933 msgstr ""
29934
29935 #. type: verbatim
29936 #: ../src/guestfs-actions.pod:4156
29937 #, no-wrap
29938 msgid ""
29939 " char **\n"
29940 " guestfs_list_dm_devices (guestfs_h *g);\n"
29941 "\n"
29942 msgstr ""
29943
29944 #. type: textblock
29945 #: ../src/guestfs-actions.pod:4161
29946 msgid ""
29947 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29948 "previous call to C<guestfs_luks_open>."
29949 msgstr ""
29950
29951 #. type: textblock
29952 #: ../src/guestfs-actions.pod:4164
29953 msgid ""
29954 "Device mapper devices which correspond to logical volumes are I<not> "
29955 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29956 "volumes."
29957 msgstr ""
29958
29959 #. type: textblock
29960 #: ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:5618
29961 msgid "(Added in 1.11.15)"
29962 msgstr "(Додано у 1.11.15)"
29963
29964 #. type: =head2
29965 #: ../src/guestfs-actions.pod:4174
29966 msgid "guestfs_list_filesystems"
29967 msgstr ""
29968
29969 #. type: verbatim
29970 #: ../src/guestfs-actions.pod:4176
29971 #, no-wrap
29972 msgid ""
29973 " char **\n"
29974 " guestfs_list_filesystems (guestfs_h *g);\n"
29975 "\n"
29976 msgstr ""
29977
29978 #. type: textblock
29979 #: ../src/guestfs-actions.pod:4196
29980 msgid ""
29981 "This command runs other libguestfs commands, which might include "
29982 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29983 "soon after launch and only when nothing is mounted."
29984 msgstr ""
29985
29986 #. type: textblock
29987 #: ../src/guestfs-actions.pod:4200
29988 msgid ""
29989 "Not all of the filesystems returned will be mountable.  In particular, swap "
29990 "partitions are returned in the list.  Also this command does not check that "
29991 "each filesystem found is valid and mountable, and some filesystems might be "
29992 "mountable but require special options.  Filesystems may not all belong to a "
29993 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29994 msgstr ""
29995
29996 #. type: textblock
29997 #: ../src/guestfs-actions.pod:4214 ../src/guestfs-actions.pod:5981
29998 msgid "(Added in 1.5.15)"
29999 msgstr "(Додано у 1.5.15)"
30000
30001 #. type: =head2
30002 #: ../src/guestfs-actions.pod:4216
30003 msgid "guestfs_list_partitions"
30004 msgstr "guestfs_list_partitions"
30005
30006 #. type: verbatim
30007 #: ../src/guestfs-actions.pod:4218
30008 #, no-wrap
30009 msgid ""
30010 " char **\n"
30011 " guestfs_list_partitions (guestfs_h *g);\n"
30012 "\n"
30013 msgstr ""
30014 " char **\n"
30015 " guestfs_list_partitions (guestfs_h *g);\n"
30016 "\n"
30017
30018 #. type: textblock
30019 #: ../src/guestfs-actions.pod:4225
30020 msgid ""
30021 "This does not return logical volumes.  For that you will need to call "
30022 "C<guestfs_lvs>."
30023 msgstr ""
30024
30025 #. type: =head2
30026 #: ../src/guestfs-actions.pod:4236
30027 msgid "guestfs_ll"
30028 msgstr "guestfs_ll"
30029
30030 #. type: verbatim
30031 #: ../src/guestfs-actions.pod:4238
30032 #, no-wrap
30033 msgid ""
30034 " char *\n"
30035 " guestfs_ll (guestfs_h *g,\n"
30036 "             const char *directory);\n"
30037 "\n"
30038 msgstr ""
30039 " char *\n"
30040 " guestfs_ll (guestfs_h *g,\n"
30041 "             const char *directory);\n"
30042 "\n"
30043
30044 #. type: =head2
30045 #: ../src/guestfs-actions.pod:4253
30046 msgid "guestfs_ln"
30047 msgstr "guestfs_ln"
30048
30049 #. type: verbatim
30050 #: ../src/guestfs-actions.pod:4255
30051 #, no-wrap
30052 msgid ""
30053 " int\n"
30054 " guestfs_ln (guestfs_h *g,\n"
30055 "             const char *target,\n"
30056 "             const char *linkname);\n"
30057 "\n"
30058 msgstr ""
30059 " int\n"
30060 " guestfs_ln (guestfs_h *g,\n"
30061 "             const char *target,\n"
30062 "             const char *linkname);\n"
30063 "\n"
30064
30065 #. type: =head2
30066 #: ../src/guestfs-actions.pod:4266
30067 msgid "guestfs_ln_f"
30068 msgstr "guestfs_ln_f"
30069
30070 #. type: verbatim
30071 #: ../src/guestfs-actions.pod:4268
30072 #, no-wrap
30073 msgid ""
30074 " int\n"
30075 " guestfs_ln_f (guestfs_h *g,\n"
30076 "               const char *target,\n"
30077 "               const char *linkname);\n"
30078 "\n"
30079 msgstr ""
30080 " int\n"
30081 " guestfs_ln_f (guestfs_h *g,\n"
30082 "               const char *target,\n"
30083 "               const char *linkname);\n"
30084 "\n"
30085
30086 #. type: =head2
30087 #: ../src/guestfs-actions.pod:4280
30088 msgid "guestfs_ln_s"
30089 msgstr "guestfs_ln_s"
30090
30091 #. type: verbatim
30092 #: ../src/guestfs-actions.pod:4282
30093 #, no-wrap
30094 msgid ""
30095 " int\n"
30096 " guestfs_ln_s (guestfs_h *g,\n"
30097 "               const char *target,\n"
30098 "               const char *linkname);\n"
30099 "\n"
30100 msgstr ""
30101 " int\n"
30102 " guestfs_ln_s (guestfs_h *g,\n"
30103 "               const char *target,\n"
30104 "               const char *linkname);\n"
30105 "\n"
30106
30107 #. type: =head2
30108 #: ../src/guestfs-actions.pod:4293
30109 msgid "guestfs_ln_sf"
30110 msgstr "guestfs_ln_sf"
30111
30112 #. type: verbatim
30113 #: ../src/guestfs-actions.pod:4295
30114 #, no-wrap
30115 msgid ""
30116 " int\n"
30117 " guestfs_ln_sf (guestfs_h *g,\n"
30118 "                const char *target,\n"
30119 "                const char *linkname);\n"
30120 "\n"
30121 msgstr ""
30122 " int\n"
30123 " guestfs_ln_sf (guestfs_h *g,\n"
30124 "                const char *target,\n"
30125 "                const char *linkname);\n"
30126 "\n"
30127
30128 #. type: =head2
30129 #: ../src/guestfs-actions.pod:4307
30130 msgid "guestfs_lremovexattr"
30131 msgstr "guestfs_lremovexattr"
30132
30133 #. type: verbatim
30134 #: ../src/guestfs-actions.pod:4309
30135 #, no-wrap
30136 msgid ""
30137 " int\n"
30138 " guestfs_lremovexattr (guestfs_h *g,\n"
30139 "                       const char *xattr,\n"
30140 "                       const char *path);\n"
30141 "\n"
30142 msgstr ""
30143 " int\n"
30144 " guestfs_lremovexattr (guestfs_h *g,\n"
30145 "                       const char *xattr,\n"
30146 "                       const char *path);\n"
30147 "\n"
30148
30149 #. type: textblock
30150 #: ../src/guestfs-actions.pod:4314
30151 msgid ""
30152 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
30153 "link, then it removes an extended attribute of the link itself."
30154 msgstr ""
30155
30156 #. type: =head2
30157 #: ../src/guestfs-actions.pod:4322
30158 msgid "guestfs_ls"
30159 msgstr "guestfs_ls"
30160
30161 #. type: verbatim
30162 #: ../src/guestfs-actions.pod:4324
30163 #, no-wrap
30164 msgid ""
30165 " char **\n"
30166 " guestfs_ls (guestfs_h *g,\n"
30167 "             const char *directory);\n"
30168 "\n"
30169 msgstr ""
30170 " char **\n"
30171 " guestfs_ls (guestfs_h *g,\n"
30172 "             const char *directory);\n"
30173 "\n"
30174
30175 #. type: textblock
30176 #: ../src/guestfs-actions.pod:4332
30177 msgid ""
30178 "This command is mostly useful for interactive sessions.  Programs should "
30179 "probably use C<guestfs_readdir> instead."
30180 msgstr ""
30181
30182 #. type: =head2
30183 #: ../src/guestfs-actions.pod:4341
30184 msgid "guestfs_lsetxattr"
30185 msgstr "guestfs_lsetxattr"
30186
30187 #. type: verbatim
30188 #: ../src/guestfs-actions.pod:4343
30189 #, no-wrap
30190 msgid ""
30191 " int\n"
30192 " guestfs_lsetxattr (guestfs_h *g,\n"
30193 "                    const char *xattr,\n"
30194 "                    const char *val,\n"
30195 "                    int vallen,\n"
30196 "                    const char *path);\n"
30197 "\n"
30198 msgstr ""
30199 " int\n"
30200 " guestfs_lsetxattr (guestfs_h *g,\n"
30201 "                    const char *xattr,\n"
30202 "                    const char *val,\n"
30203 "                    int vallen,\n"
30204 "                    const char *path);\n"
30205 "\n"
30206
30207 #. type: textblock
30208 #: ../src/guestfs-actions.pod:4350
30209 msgid ""
30210 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
30211 "then it sets an extended attribute of the link itself."
30212 msgstr ""
30213
30214 #. type: =head2
30215 #: ../src/guestfs-actions.pod:4358
30216 msgid "guestfs_lstat"
30217 msgstr "guestfs_lstat"
30218
30219 #. type: verbatim
30220 #: ../src/guestfs-actions.pod:4360
30221 #, no-wrap
30222 msgid ""
30223 " struct guestfs_stat *\n"
30224 " guestfs_lstat (guestfs_h *g,\n"
30225 "                const char *path);\n"
30226 "\n"
30227 msgstr ""
30228 " struct guestfs_stat *\n"
30229 " guestfs_lstat (guestfs_h *g,\n"
30230 "                const char *path);\n"
30231 "\n"
30232
30233 #. type: textblock
30234 #: ../src/guestfs-actions.pod:4366
30235 msgid ""
30236 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
30237 "link, then the link is stat-ed, not the file it refers to."
30238 msgstr ""
30239
30240 #. type: textblock
30241 #: ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:7171
30242 msgid ""
30243 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
30244 "error.  I<The caller must call C<guestfs_free_stat> after use>."
30245 msgstr ""
30246
30247 #. type: textblock
30248 #: ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:7175
30249 #: ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7574
30250 msgid "(Added in 0.9.2)"
30251 msgstr "(Додано у 0.9.2)"
30252
30253 #. type: =head2
30254 #: ../src/guestfs-actions.pod:4378
30255 msgid "guestfs_lstatlist"
30256 msgstr "guestfs_lstatlist"
30257
30258 #. type: verbatim
30259 #: ../src/guestfs-actions.pod:4380
30260 #, no-wrap
30261 msgid ""
30262 " struct guestfs_stat_list *\n"
30263 " guestfs_lstatlist (guestfs_h *g,\n"
30264 "                    const char *path,\n"
30265 "                    char *const *names);\n"
30266 "\n"
30267 msgstr ""
30268 " struct guestfs_stat_list *\n"
30269 " guestfs_lstatlist (guestfs_h *g,\n"
30270 "                    const char *path,\n"
30271 "                    char *const *names);\n"
30272 "\n"
30273
30274 #. type: textblock
30275 #: ../src/guestfs-actions.pod:4385
30276 msgid ""
30277 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
30278 "files, where all files are in the directory C<path>.  C<names> is the list "
30279 "of files from this directory."
30280 msgstr ""
30281
30282 #. type: textblock
30283 #: ../src/guestfs-actions.pod:4394
30284 msgid ""
30285 "This call is intended for programs that want to efficiently list a directory "
30286 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
30287 "for a similarly efficient call for getting extended attributes.  Very long "
30288 "directory listings might cause the protocol message size to be exceeded, "
30289 "causing this call to fail.  The caller must split up such requests into "
30290 "smaller groups of names."
30291 msgstr ""
30292
30293 #. type: textblock
30294 #: ../src/guestfs-actions.pod:4402
30295 msgid ""
30296 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
30297 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
30298 msgstr ""
30299
30300 #. type: =head2
30301 #: ../src/guestfs-actions.pod:4408
30302 msgid "guestfs_luks_add_key"
30303 msgstr "guestfs_luks_add_key"
30304
30305 #. type: verbatim
30306 #: ../src/guestfs-actions.pod:4410
30307 #, no-wrap
30308 msgid ""
30309 " int\n"
30310 " guestfs_luks_add_key (guestfs_h *g,\n"
30311 "                       const char *device,\n"
30312 "                       const char *key,\n"
30313 "                       const char *newkey,\n"
30314 "                       int keyslot);\n"
30315 "\n"
30316 msgstr ""
30317 " int\n"
30318 " guestfs_luks_add_key (guestfs_h *g,\n"
30319 "                       const char *device,\n"
30320 "                       const char *key,\n"
30321 "                       const char *newkey,\n"
30322 "                       int keyslot);\n"
30323 "\n"
30324
30325 #. type: textblock
30326 #: ../src/guestfs-actions.pod:4422
30327 msgid ""
30328 "Note that if C<keyslot> already contains a key, then this command will "
30329 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
30330 msgstr ""
30331
30332 #. type: textblock
30333 #: ../src/guestfs-actions.pod:4428 ../src/guestfs-actions.pod:4468
30334 #: ../src/guestfs-actions.pod:4491 ../src/guestfs-actions.pod:4511
30335 #: ../src/guestfs-actions.pod:4546 ../src/guestfs-actions.pod:4565
30336 msgid ""
30337 "This function takes a key or passphrase parameter which could contain "
30338 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
30339 "information."
30340 msgstr ""
30341
30342 #. type: textblock
30343 #: ../src/guestfs-actions.pod:4432 ../src/guestfs-actions.pod:4472
30344 #: ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4515
30345 msgid "(Added in 1.5.2)"
30346 msgstr "(Додано у 1.5.2)"
30347
30348 #. type: =head2
30349 #: ../src/guestfs-actions.pod:4434
30350 msgid "guestfs_luks_close"
30351 msgstr "guestfs_luks_close"
30352
30353 #. type: verbatim
30354 #: ../src/guestfs-actions.pod:4436
30355 #, no-wrap
30356 msgid ""
30357 " int\n"
30358 " guestfs_luks_close (guestfs_h *g,\n"
30359 "                     const char *device);\n"
30360 "\n"
30361 msgstr ""
30362 " int\n"
30363 " guestfs_luks_close (guestfs_h *g,\n"
30364 "                     const char *device);\n"
30365 "\n"
30366
30367 #. type: textblock
30368 #: ../src/guestfs-actions.pod:4440
30369 msgid ""
30370 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
30371 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
30372 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
30373 "underlying block device."
30374 msgstr ""
30375
30376 #. type: textblock
30377 #: ../src/guestfs-actions.pod:4448 ../src/guestfs-actions.pod:4550
30378 #: ../src/guestfs-actions.pod:4569 ../src/guestfs-actions.pod:4619
30379 #: ../src/guestfs-actions.pod:4667
30380 msgid "(Added in 1.5.1)"
30381 msgstr "(Додано у 1.5.1)"
30382
30383 #. type: =head2
30384 #: ../src/guestfs-actions.pod:4450
30385 msgid "guestfs_luks_format"
30386 msgstr "guestfs_luks_format"
30387
30388 #. type: verbatim
30389 #: ../src/guestfs-actions.pod:4452
30390 #, no-wrap
30391 msgid ""
30392 " int\n"
30393 " guestfs_luks_format (guestfs_h *g,\n"
30394 "                      const char *device,\n"
30395 "                      const char *key,\n"
30396 "                      int keyslot);\n"
30397 "\n"
30398 msgstr ""
30399 " int\n"
30400 " guestfs_luks_format (guestfs_h *g,\n"
30401 "                      const char *device,\n"
30402 "                      const char *key,\n"
30403 "                      int keyslot);\n"
30404 "\n"
30405
30406 #. type: =head2
30407 #: ../src/guestfs-actions.pod:4474
30408 msgid "guestfs_luks_format_cipher"
30409 msgstr "guestfs_luks_format_cipher"
30410
30411 #. type: verbatim
30412 #: ../src/guestfs-actions.pod:4476
30413 #, no-wrap
30414 msgid ""
30415 " int\n"
30416 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30417 "                             const char *device,\n"
30418 "                             const char *key,\n"
30419 "                             int keyslot,\n"
30420 "                             const char *cipher);\n"
30421 "\n"
30422 msgstr ""
30423 " int\n"
30424 " guestfs_luks_format_cipher (guestfs_h *g,\n"
30425 "                             const char *device,\n"
30426 "                             const char *key,\n"
30427 "                             int keyslot,\n"
30428 "                             const char *cipher);\n"
30429 "\n"
30430
30431 #. type: textblock
30432 #: ../src/guestfs-actions.pod:4483
30433 msgid ""
30434 "This command is the same as C<guestfs_luks_format> but it also allows you to "
30435 "set the C<cipher> used."
30436 msgstr ""
30437
30438 #. type: =head2
30439 #: ../src/guestfs-actions.pod:4497
30440 msgid "guestfs_luks_kill_slot"
30441 msgstr "guestfs_luks_kill_slot"
30442
30443 #. type: verbatim
30444 #: ../src/guestfs-actions.pod:4499
30445 #, no-wrap
30446 msgid ""
30447 " int\n"
30448 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30449 "                         const char *device,\n"
30450 "                         const char *key,\n"
30451 "                         int keyslot);\n"
30452 "\n"
30453 msgstr ""
30454 " int\n"
30455 " guestfs_luks_kill_slot (guestfs_h *g,\n"
30456 "                         const char *device,\n"
30457 "                         const char *key,\n"
30458 "                         int keyslot);\n"
30459 "\n"
30460
30461 #. type: =head2
30462 #: ../src/guestfs-actions.pod:4517
30463 msgid "guestfs_luks_open"
30464 msgstr "guestfs_luks_open"
30465
30466 #. type: verbatim
30467 #: ../src/guestfs-actions.pod:4519
30468 #, no-wrap
30469 msgid ""
30470 " int\n"
30471 " guestfs_luks_open (guestfs_h *g,\n"
30472 "                    const char *device,\n"
30473 "                    const char *key,\n"
30474 "                    const char *mapname);\n"
30475 "\n"
30476 msgstr ""
30477 " int\n"
30478 " guestfs_luks_open (guestfs_h *g,\n"
30479 "                    const char *device,\n"
30480 "                    const char *key,\n"
30481 "                    const char *mapname);\n"
30482 "\n"
30483
30484 #. type: textblock
30485 #: ../src/guestfs-actions.pod:4537
30486 msgid ""
30487 "If this block device contains LVM volume groups, then calling "
30488 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
30489 "visible."
30490 msgstr ""
30491
30492 #. type: textblock
30493 #: ../src/guestfs-actions.pod:4541
30494 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
30495 msgstr ""
30496
30497 #. type: =head2
30498 #: ../src/guestfs-actions.pod:4552
30499 msgid "guestfs_luks_open_ro"
30500 msgstr "guestfs_luks_open_ro"
30501
30502 #. type: verbatim
30503 #: ../src/guestfs-actions.pod:4554
30504 #, no-wrap
30505 msgid ""
30506 " int\n"
30507 " guestfs_luks_open_ro (guestfs_h *g,\n"
30508 "                       const char *device,\n"
30509 "                       const char *key,\n"
30510 "                       const char *mapname);\n"
30511 "\n"
30512 msgstr ""
30513 " int\n"
30514 " guestfs_luks_open_ro (guestfs_h *g,\n"
30515 "                       const char *device,\n"
30516 "                       const char *key,\n"
30517 "                       const char *mapname);\n"
30518 "\n"
30519
30520 #. type: textblock
30521 #: ../src/guestfs-actions.pod:4560
30522 msgid ""
30523 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
30524 "created."
30525 msgstr ""
30526
30527 #. type: =head2
30528 #: ../src/guestfs-actions.pod:4571
30529 msgid "guestfs_lvcreate"
30530 msgstr "guestfs_lvcreate"
30531
30532 #. type: verbatim
30533 #: ../src/guestfs-actions.pod:4573
30534 #, no-wrap
30535 msgid ""
30536 " int\n"
30537 " guestfs_lvcreate (guestfs_h *g,\n"
30538 "                   const char *logvol,\n"
30539 "                   const char *volgroup,\n"
30540 "                   int mbytes);\n"
30541 "\n"
30542 msgstr ""
30543 " int\n"
30544 " guestfs_lvcreate (guestfs_h *g,\n"
30545 "                   const char *logvol,\n"
30546 "                   const char *volgroup,\n"
30547 "                   int mbytes);\n"
30548 "\n"
30549
30550 #. type: =head2
30551 #: ../src/guestfs-actions.pod:4586
30552 msgid "guestfs_lvm_canonical_lv_name"
30553 msgstr "guestfs_lvm_canonical_lv_name"
30554
30555 #. type: verbatim
30556 #: ../src/guestfs-actions.pod:4588
30557 #, no-wrap
30558 msgid ""
30559 " char *\n"
30560 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30561 "                                const char *lvname);\n"
30562 "\n"
30563 msgstr ""
30564 " char *\n"
30565 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
30566 "                                const char *lvname);\n"
30567 "\n"
30568
30569 #. type: textblock
30570 #: ../src/guestfs-actions.pod:4599
30571 msgid "See also C<guestfs_is_lv>."
30572 msgstr ""
30573
30574 #. type: textblock
30575 #: ../src/guestfs-actions.pod:4604
30576 msgid "(Added in 1.5.24)"
30577 msgstr "(Додано у 1.5.24)"
30578
30579 #. type: =head2
30580 #: ../src/guestfs-actions.pod:4606
30581 msgid "guestfs_lvm_clear_filter"
30582 msgstr "guestfs_lvm_clear_filter"
30583
30584 #. type: verbatim
30585 #: ../src/guestfs-actions.pod:4608
30586 #, no-wrap
30587 msgid ""
30588 " int\n"
30589 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30590 "\n"
30591 msgstr ""
30592 " int\n"
30593 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
30594 "\n"
30595
30596 #. type: textblock
30597 #: ../src/guestfs-actions.pod:4611
30598 msgid ""
30599 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
30600 "see every block device."
30601 msgstr ""
30602
30603 #. type: =head2
30604 #: ../src/guestfs-actions.pod:4621
30605 msgid "guestfs_lvm_remove_all"
30606 msgstr "guestfs_lvm_remove_all"
30607
30608 #. type: verbatim
30609 #: ../src/guestfs-actions.pod:4623
30610 #, no-wrap
30611 msgid ""
30612 " int\n"
30613 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30614 "\n"
30615 msgstr ""
30616 " int\n"
30617 " guestfs_lvm_remove_all (guestfs_h *g);\n"
30618 "\n"
30619
30620 #. type: =head2
30621 #: ../src/guestfs-actions.pod:4636
30622 msgid "guestfs_lvm_set_filter"
30623 msgstr "guestfs_lvm_set_filter"
30624
30625 #. type: verbatim
30626 #: ../src/guestfs-actions.pod:4638
30627 #, no-wrap
30628 msgid ""
30629 " int\n"
30630 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30631 "                         char *const *devices);\n"
30632 "\n"
30633 msgstr ""
30634 " int\n"
30635 " guestfs_lvm_set_filter (guestfs_h *g,\n"
30636 "                         char *const *devices);\n"
30637 "\n"
30638
30639 #. type: =head2
30640 #: ../src/guestfs-actions.pod:4669
30641 msgid "guestfs_lvremove"
30642 msgstr "guestfs_lvremove"
30643
30644 #. type: verbatim
30645 #: ../src/guestfs-actions.pod:4671
30646 #, no-wrap
30647 msgid ""
30648 " int\n"
30649 " guestfs_lvremove (guestfs_h *g,\n"
30650 "                   const char *device);\n"
30651 "\n"
30652 msgstr ""
30653 " int\n"
30654 " guestfs_lvremove (guestfs_h *g,\n"
30655 "                   const char *device);\n"
30656 "\n"
30657
30658 #. type: textblock
30659 #: ../src/guestfs-actions.pod:4683 ../src/guestfs-actions.pod:6094
30660 #: ../src/guestfs-actions.pod:7944
30661 msgid "(Added in 1.0.13)"
30662 msgstr "(Додано у 1.0.13)"
30663
30664 #. type: =head2
30665 #: ../src/guestfs-actions.pod:4685
30666 msgid "guestfs_lvrename"
30667 msgstr "guestfs_lvrename"
30668
30669 #. type: verbatim
30670 #: ../src/guestfs-actions.pod:4687
30671 #, no-wrap
30672 msgid ""
30673 " int\n"
30674 " guestfs_lvrename (guestfs_h *g,\n"
30675 "                   const char *logvol,\n"
30676 "                   const char *newlogvol);\n"
30677 "\n"
30678 msgstr ""
30679 " int\n"
30680 " guestfs_lvrename (guestfs_h *g,\n"
30681 "                   const char *logvol,\n"
30682 "                   const char *newlogvol);\n"
30683 "\n"
30684
30685 #. type: textblock
30686 #: ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:7957
30687 msgid "(Added in 1.0.83)"
30688 msgstr "(Додано у 1.0.83)"
30689
30690 #. type: =head2
30691 #: ../src/guestfs-actions.pod:4698
30692 msgid "guestfs_lvresize"
30693 msgstr "guestfs_lvresize"
30694
30695 #. type: verbatim
30696 #: ../src/guestfs-actions.pod:4700
30697 #, no-wrap
30698 msgid ""
30699 " int\n"
30700 " guestfs_lvresize (guestfs_h *g,\n"
30701 "                   const char *device,\n"
30702 "                   int mbytes);\n"
30703 "\n"
30704 msgstr ""
30705 " int\n"
30706 " guestfs_lvresize (guestfs_h *g,\n"
30707 "                   const char *device,\n"
30708 "                   int mbytes);\n"
30709 "\n"
30710
30711 #. type: =head2
30712 #: ../src/guestfs-actions.pod:4713
30713 msgid "guestfs_lvresize_free"
30714 msgstr "guestfs_lvresize_free"
30715
30716 #. type: verbatim
30717 #: ../src/guestfs-actions.pod:4715
30718 #, no-wrap
30719 msgid ""
30720 " int\n"
30721 " guestfs_lvresize_free (guestfs_h *g,\n"
30722 "                        const char *lv,\n"
30723 "                        int percent);\n"
30724 "\n"
30725 msgstr ""
30726 " int\n"
30727 " guestfs_lvresize_free (guestfs_h *g,\n"
30728 "                        const char *lv,\n"
30729 "                        int percent);\n"
30730 "\n"
30731
30732 #. type: textblock
30733 #: ../src/guestfs-actions.pod:4728
30734 msgid "(Added in 1.3.3)"
30735 msgstr "(Додано у 1.3.3)"
30736
30737 #. type: =head2
30738 #: ../src/guestfs-actions.pod:4730
30739 msgid "guestfs_lvs"
30740 msgstr "guestfs_lvs"
30741
30742 #. type: verbatim
30743 #: ../src/guestfs-actions.pod:4732
30744 #, no-wrap
30745 msgid ""
30746 " char **\n"
30747 " guestfs_lvs (guestfs_h *g);\n"
30748 "\n"
30749 msgstr ""
30750 " char **\n"
30751 " guestfs_lvs (guestfs_h *g);\n"
30752 "\n"
30753
30754 #. type: textblock
30755 #: ../src/guestfs-actions.pod:4741
30756 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30757 msgstr ""
30758
30759 #. type: =head2
30760 #: ../src/guestfs-actions.pod:4749
30761 msgid "guestfs_lvs_full"
30762 msgstr "guestfs_lvs_full"
30763
30764 #. type: verbatim
30765 #: ../src/guestfs-actions.pod:4751
30766 #, no-wrap
30767 msgid ""
30768 " struct guestfs_lvm_lv_list *\n"
30769 " guestfs_lvs_full (guestfs_h *g);\n"
30770 "\n"
30771 msgstr ""
30772 " struct guestfs_lvm_lv_list *\n"
30773 " guestfs_lvs_full (guestfs_h *g);\n"
30774 "\n"
30775
30776 #. type: textblock
30777 #: ../src/guestfs-actions.pod:4757
30778 msgid ""
30779 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30780 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30781 msgstr ""
30782
30783 #. type: =head2
30784 #: ../src/guestfs-actions.pod:4763
30785 msgid "guestfs_lvuuid"
30786 msgstr "guestfs_lvuuid"
30787
30788 #. type: verbatim
30789 #: ../src/guestfs-actions.pod:4765
30790 #, no-wrap
30791 msgid ""
30792 " char *\n"
30793 " guestfs_lvuuid (guestfs_h *g,\n"
30794 "                 const char *device);\n"
30795 "\n"
30796 msgstr ""
30797 " char *\n"
30798 " guestfs_lvuuid (guestfs_h *g,\n"
30799 "                 const char *device);\n"
30800 "\n"
30801
30802 #. type: =head2
30803 #: ../src/guestfs-actions.pod:4776
30804 msgid "guestfs_lxattrlist"
30805 msgstr "guestfs_lxattrlist"
30806
30807 #. type: verbatim
30808 #: ../src/guestfs-actions.pod:4778
30809 #, no-wrap
30810 msgid ""
30811 " struct guestfs_xattr_list *\n"
30812 " guestfs_lxattrlist (guestfs_h *g,\n"
30813 "                     const char *path,\n"
30814 "                     char *const *names);\n"
30815 "\n"
30816 msgstr ""
30817 " struct guestfs_xattr_list *\n"
30818 " guestfs_lxattrlist (guestfs_h *g,\n"
30819 "                     const char *path,\n"
30820 "                     char *const *names);\n"
30821 "\n"
30822
30823 #. type: textblock
30824 #: ../src/guestfs-actions.pod:4797
30825 msgid ""
30826 "This call is intended for programs that want to efficiently list a directory "
30827 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
30828 "a similarly efficient call for getting standard stats.  Very long directory "
30829 "listings might cause the protocol message size to be exceeded, causing this "
30830 "call to fail.  The caller must split up such requests into smaller groups of "
30831 "names."
30832 msgstr ""
30833
30834 #. type: =head2
30835 #: ../src/guestfs-actions.pod:4811
30836 msgid "guestfs_mkdir"
30837 msgstr "guestfs_mkdir"
30838
30839 #. type: verbatim
30840 #: ../src/guestfs-actions.pod:4813
30841 #, no-wrap
30842 msgid ""
30843 " int\n"
30844 " guestfs_mkdir (guestfs_h *g,\n"
30845 "                const char *path);\n"
30846 "\n"
30847 msgstr ""
30848 " int\n"
30849 " guestfs_mkdir (guestfs_h *g,\n"
30850 "                const char *path);\n"
30851 "\n"
30852
30853 #. type: =head2
30854 #: ../src/guestfs-actions.pod:4823
30855 msgid "guestfs_mkdir_mode"
30856 msgstr "guestfs_mkdir_mode"
30857
30858 #. type: verbatim
30859 #: ../src/guestfs-actions.pod:4825
30860 #, no-wrap
30861 msgid ""
30862 " int\n"
30863 " guestfs_mkdir_mode (guestfs_h *g,\n"
30864 "                     const char *path,\n"
30865 "                     int mode);\n"
30866 "\n"
30867 msgstr ""
30868 " int\n"
30869 " guestfs_mkdir_mode (guestfs_h *g,\n"
30870 "                     const char *path,\n"
30871 "                     int mode);\n"
30872 "\n"
30873
30874 #. type: textblock
30875 #: ../src/guestfs-actions.pod:4837
30876 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30877 msgstr ""
30878
30879 #. type: =head2
30880 #: ../src/guestfs-actions.pod:4843
30881 msgid "guestfs_mkdir_p"
30882 msgstr "guestfs_mkdir_p"
30883
30884 #. type: verbatim
30885 #: ../src/guestfs-actions.pod:4845
30886 #, no-wrap
30887 msgid ""
30888 " int\n"
30889 " guestfs_mkdir_p (guestfs_h *g,\n"
30890 "                  const char *path);\n"
30891 "\n"
30892 msgstr ""
30893 " int\n"
30894 " guestfs_mkdir_p (guestfs_h *g,\n"
30895 "                  const char *path);\n"
30896 "\n"
30897
30898 #. type: =head2
30899 #: ../src/guestfs-actions.pod:4856
30900 msgid "guestfs_mkdtemp"
30901 msgstr "guestfs_mkdtemp"
30902
30903 #. type: verbatim
30904 #: ../src/guestfs-actions.pod:4858
30905 #, no-wrap
30906 msgid ""
30907 " char *\n"
30908 " guestfs_mkdtemp (guestfs_h *g,\n"
30909 "                  const char *template);\n"
30910 "\n"
30911 msgstr ""
30912 " char *\n"
30913 " guestfs_mkdtemp (guestfs_h *g,\n"
30914 "                  const char *template);\n"
30915 "\n"
30916
30917 #. type: =head2
30918 #: ../src/guestfs-actions.pod:4886
30919 msgid "guestfs_mke2fs_J"
30920 msgstr "guestfs_mke2fs_J"
30921
30922 #. type: verbatim
30923 #: ../src/guestfs-actions.pod:4888
30924 #, no-wrap
30925 msgid ""
30926 " int\n"
30927 " guestfs_mke2fs_J (guestfs_h *g,\n"
30928 "                   const char *fstype,\n"
30929 "                   int blocksize,\n"
30930 "                   const char *device,\n"
30931 "                   const char *journal);\n"
30932 "\n"
30933 msgstr ""
30934 " int\n"
30935 " guestfs_mke2fs_J (guestfs_h *g,\n"
30936 "                   const char *fstype,\n"
30937 "                   int blocksize,\n"
30938 "                   const char *device,\n"
30939 "                   const char *journal);\n"
30940 "\n"
30941
30942 #. type: textblock
30943 #: ../src/guestfs-actions.pod:4901
30944 msgid "See also C<guestfs_mke2journal>."
30945 msgstr ""
30946
30947 #. type: textblock
30948 #: ../src/guestfs-actions.pod:4905 ../src/guestfs-actions.pod:4923
30949 #: ../src/guestfs-actions.pod:4941 ../src/guestfs-actions.pod:4957
30950 #: ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4985
30951 #: ../src/guestfs-actions.pod:5044 ../src/guestfs-actions.pod:5321
30952 msgid "(Added in 1.0.68)"
30953 msgstr "(Додано у 1.0.68)"
30954
30955 #. type: =head2
30956 #: ../src/guestfs-actions.pod:4907
30957 msgid "guestfs_mke2fs_JL"
30958 msgstr "guestfs_mke2fs_JL"
30959
30960 #. type: verbatim
30961 #: ../src/guestfs-actions.pod:4909
30962 #, no-wrap
30963 msgid ""
30964 " int\n"
30965 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30966 "                    const char *fstype,\n"
30967 "                    int blocksize,\n"
30968 "                    const char *device,\n"
30969 "                    const char *label);\n"
30970 "\n"
30971 msgstr ""
30972 " int\n"
30973 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30974 "                    const char *fstype,\n"
30975 "                    int blocksize,\n"
30976 "                    const char *device,\n"
30977 "                    const char *label);\n"
30978 "\n"
30979
30980 #. type: textblock
30981 #: ../src/guestfs-actions.pod:4919
30982 msgid "See also C<guestfs_mke2journal_L>."
30983 msgstr ""
30984
30985 #. type: =head2
30986 #: ../src/guestfs-actions.pod:4925
30987 msgid "guestfs_mke2fs_JU"
30988 msgstr "guestfs_mke2fs_JU"
30989
30990 #. type: verbatim
30991 #: ../src/guestfs-actions.pod:4927
30992 #, no-wrap
30993 msgid ""
30994 " int\n"
30995 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30996 "                    const char *fstype,\n"
30997 "                    int blocksize,\n"
30998 "                    const char *device,\n"
30999 "                    const char *uuid);\n"
31000 "\n"
31001 msgstr ""
31002 " int\n"
31003 " guestfs_mke2fs_JU (guestfs_h *g,\n"
31004 "                    const char *fstype,\n"
31005 "                    int blocksize,\n"
31006 "                    const char *device,\n"
31007 "                    const char *uuid);\n"
31008 "\n"
31009
31010 #. type: textblock
31011 #: ../src/guestfs-actions.pod:4937
31012 msgid "See also C<guestfs_mke2journal_U>."
31013 msgstr ""
31014
31015 #. type: =head2
31016 #: ../src/guestfs-actions.pod:4943
31017 msgid "guestfs_mke2journal"
31018 msgstr "guestfs_mke2journal"
31019
31020 #. type: verbatim
31021 #: ../src/guestfs-actions.pod:4945
31022 #, no-wrap
31023 msgid ""
31024 " int\n"
31025 " guestfs_mke2journal (guestfs_h *g,\n"
31026 "                      int blocksize,\n"
31027 "                      const char *device);\n"
31028 "\n"
31029 msgstr ""
31030 " int\n"
31031 " guestfs_mke2journal (guestfs_h *g,\n"
31032 "                      int blocksize,\n"
31033 "                      const char *device);\n"
31034 "\n"
31035
31036 #. type: =head2
31037 #: ../src/guestfs-actions.pod:4959
31038 msgid "guestfs_mke2journal_L"
31039 msgstr "guestfs_mke2journal_L"
31040
31041 #. type: verbatim
31042 #: ../src/guestfs-actions.pod:4961
31043 #, no-wrap
31044 msgid ""
31045 " int\n"
31046 " guestfs_mke2journal_L (guestfs_h *g,\n"
31047 "                        int blocksize,\n"
31048 "                        const char *label,\n"
31049 "                        const char *device);\n"
31050 "\n"
31051 msgstr ""
31052 " int\n"
31053 " guestfs_mke2journal_L (guestfs_h *g,\n"
31054 "                        int blocksize,\n"
31055 "                        const char *label,\n"
31056 "                        const char *device);\n"
31057 "\n"
31058
31059 #. type: =head2
31060 #: ../src/guestfs-actions.pod:4973
31061 msgid "guestfs_mke2journal_U"
31062 msgstr "guestfs_mke2journal_U"
31063
31064 #. type: verbatim
31065 #: ../src/guestfs-actions.pod:4975
31066 #, no-wrap
31067 msgid ""
31068 " int\n"
31069 " guestfs_mke2journal_U (guestfs_h *g,\n"
31070 "                        int blocksize,\n"
31071 "                        const char *uuid,\n"
31072 "                        const char *device);\n"
31073 "\n"
31074 msgstr ""
31075 " int\n"
31076 " guestfs_mke2journal_U (guestfs_h *g,\n"
31077 "                        int blocksize,\n"
31078 "                        const char *uuid,\n"
31079 "                        const char *device);\n"
31080 "\n"
31081
31082 #. type: =head2
31083 #: ../src/guestfs-actions.pod:4987
31084 msgid "guestfs_mkfifo"
31085 msgstr "guestfs_mkfifo"
31086
31087 #. type: verbatim
31088 #: ../src/guestfs-actions.pod:4989
31089 #, no-wrap
31090 msgid ""
31091 " int\n"
31092 " guestfs_mkfifo (guestfs_h *g,\n"
31093 "                 int mode,\n"
31094 "                 const char *path);\n"
31095 "\n"
31096 msgstr ""
31097 " int\n"
31098 " guestfs_mkfifo (guestfs_h *g,\n"
31099 "                 int mode,\n"
31100 "                 const char *path);\n"
31101 "\n"
31102
31103 #. type: textblock
31104 #: ../src/guestfs-actions.pod:4994
31105 msgid ""
31106 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
31107 "is just a convenient wrapper around C<guestfs_mknod>."
31108 msgstr ""
31109
31110 #. type: =head2
31111 #: ../src/guestfs-actions.pod:5004
31112 msgid "guestfs_mkfs"
31113 msgstr "guestfs_mkfs"
31114
31115 #. type: verbatim
31116 #: ../src/guestfs-actions.pod:5006
31117 #, no-wrap
31118 msgid ""
31119 " int\n"
31120 " guestfs_mkfs (guestfs_h *g,\n"
31121 "               const char *fstype,\n"
31122 "               const char *device);\n"
31123 "\n"
31124 msgstr ""
31125 " int\n"
31126 " guestfs_mkfs (guestfs_h *g,\n"
31127 "               const char *fstype,\n"
31128 "               const char *device);\n"
31129 "\n"
31130
31131 #. type: =head2
31132 #: ../src/guestfs-actions.pod:5019
31133 msgid "guestfs_mkfs_b"
31134 msgstr "guestfs_mkfs_b"
31135
31136 #. type: verbatim
31137 #: ../src/guestfs-actions.pod:5021
31138 #, no-wrap
31139 msgid ""
31140 " int\n"
31141 " guestfs_mkfs_b (guestfs_h *g,\n"
31142 "                 const char *fstype,\n"
31143 "                 int blocksize,\n"
31144 "                 const char *device);\n"
31145 "\n"
31146 msgstr ""
31147 " int\n"
31148 " guestfs_mkfs_b (guestfs_h *g,\n"
31149 "                 const char *fstype,\n"
31150 "                 int blocksize,\n"
31151 "                 const char *device);\n"
31152 "\n"
31153
31154 #. type: textblock
31155 #: ../src/guestfs-actions.pod:5027
31156 msgid ""
31157 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
31158 "call instead."
31159 msgstr ""
31160
31161 #. type: textblock
31162 #: ../src/guestfs-actions.pod:5034
31163 msgid ""
31164 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
31165 "block size of the resulting filesystem.  Supported block sizes depend on the "
31166 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
31167 msgstr ""
31168
31169 #. type: =head2
31170 #: ../src/guestfs-actions.pod:5046
31171 msgid "guestfs_mkfs_opts"
31172 msgstr "guestfs_mkfs_opts"
31173
31174 #. type: verbatim
31175 #: ../src/guestfs-actions.pod:5048
31176 #, no-wrap
31177 msgid ""
31178 " int\n"
31179 " guestfs_mkfs_opts (guestfs_h *g,\n"
31180 "                    const char *fstype,\n"
31181 "                    const char *device,\n"
31182 "                    ...);\n"
31183 "\n"
31184 msgstr ""
31185 " int\n"
31186 " guestfs_mkfs_opts (guestfs_h *g,\n"
31187 "                    const char *fstype,\n"
31188 "                    const char *device,\n"
31189 "                    ...);\n"
31190 "\n"
31191
31192 #. type: verbatim
31193 #: ../src/guestfs-actions.pod:5059
31194 #, no-wrap
31195 msgid ""
31196 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
31197 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
31198 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
31199 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
31200 "\n"
31201 msgstr ""
31202
31203 #. type: textblock
31204 #: ../src/guestfs-actions.pod:5107
31205 msgid "(Added in 1.7.19)"
31206 msgstr "(Додано у 1.7.19)"
31207
31208 #. type: =head2
31209 #: ../src/guestfs-actions.pod:5109
31210 msgid "guestfs_mkfs_opts_va"
31211 msgstr "guestfs_mkfs_opts_va"
31212
31213 #. type: verbatim
31214 #: ../src/guestfs-actions.pod:5111
31215 #, no-wrap
31216 msgid ""
31217 " int\n"
31218 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31219 "                       const char *fstype,\n"
31220 "                       const char *device,\n"
31221 "                       va_list args);\n"
31222 "\n"
31223 msgstr ""
31224 " int\n"
31225 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
31226 "                       const char *fstype,\n"
31227 "                       const char *device,\n"
31228 "                       va_list args);\n"
31229 "\n"
31230
31231 #. type: textblock
31232 #: ../src/guestfs-actions.pod:5117
31233 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
31234 msgstr ""
31235
31236 #. type: =head2
31237 #: ../src/guestfs-actions.pod:5121
31238 msgid "guestfs_mkfs_opts_argv"
31239 msgstr "guestfs_mkfs_opts_argv"
31240
31241 #. type: verbatim
31242 #: ../src/guestfs-actions.pod:5123
31243 #, no-wrap
31244 msgid ""
31245 " int\n"
31246 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31247 "                         const char *fstype,\n"
31248 "                         const char *device,\n"
31249 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31250 "\n"
31251 msgstr ""
31252 " int\n"
31253 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
31254 "                         const char *fstype,\n"
31255 "                         const char *device,\n"
31256 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
31257 "\n"
31258
31259 #. type: textblock
31260 #: ../src/guestfs-actions.pod:5129
31261 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
31262 msgstr ""
31263
31264 #. type: =head2
31265 #: ../src/guestfs-actions.pod:5133
31266 msgid "guestfs_mkmountpoint"
31267 msgstr "guestfs_mkmountpoint"
31268
31269 #. type: verbatim
31270 #: ../src/guestfs-actions.pod:5135
31271 #, no-wrap
31272 msgid ""
31273 " int\n"
31274 " guestfs_mkmountpoint (guestfs_h *g,\n"
31275 "                       const char *exemptpath);\n"
31276 "\n"
31277 msgstr ""
31278 " int\n"
31279 " guestfs_mkmountpoint (guestfs_h *g,\n"
31280 "                       const char *exemptpath);\n"
31281 "\n"
31282
31283 #. type: textblock
31284 #: ../src/guestfs-actions.pod:5139
31285 msgid ""
31286 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
31287 "that can be used to create extra mountpoints before mounting the first "
31288 "filesystem."
31289 msgstr ""
31290
31291 #. type: textblock
31292 #: ../src/guestfs-actions.pod:5163
31293 msgid ""
31294 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
31295 "may get unexpected errors if you try to mix these calls.  It is safest to "
31296 "manually unmount filesystems and remove mountpoints after use."
31297 msgstr ""
31298
31299 #. type: textblock
31300 #: ../src/guestfs-actions.pod:5167
31301 msgid ""
31302 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
31303 "first, so for this to work for manual mountpoints, you must ensure that the "
31304 "innermost mountpoints have the longest pathnames, as in the example code "
31305 "above."
31306 msgstr ""
31307
31308 #. type: textblock
31309 #: ../src/guestfs-actions.pod:5174
31310 msgid ""
31311 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
31312 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
31313 "can also trigger these issues."
31314 msgstr ""
31315
31316 #. type: textblock
31317 #: ../src/guestfs-actions.pod:5180 ../src/guestfs-actions.pod:5486
31318 #: ../src/guestfs-actions.pod:6514
31319 msgid "(Added in 1.0.62)"
31320 msgstr "(Додано у 1.0.62)"
31321
31322 #. type: =head2
31323 #: ../src/guestfs-actions.pod:5182
31324 msgid "guestfs_mknod"
31325 msgstr ""
31326
31327 #. type: verbatim
31328 #: ../src/guestfs-actions.pod:5184
31329 #, no-wrap
31330 msgid ""
31331 " int\n"
31332 " guestfs_mknod (guestfs_h *g,\n"
31333 "                int mode,\n"
31334 "                int devmajor,\n"
31335 "                int devminor,\n"
31336 "                const char *path);\n"
31337 "\n"
31338 msgstr ""
31339
31340 #. type: textblock
31341 #: ../src/guestfs-actions.pod:5199
31342 msgid ""
31343 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
31344 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
31345 "regular file).  These constants are available in the standard Linux header "
31346 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
31347 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
31348 "the appropriate constant for you."
31349 msgstr ""
31350
31351 #. type: =head2
31352 #: ../src/guestfs-actions.pod:5213
31353 msgid "guestfs_mknod_b"
31354 msgstr ""
31355
31356 #. type: verbatim
31357 #: ../src/guestfs-actions.pod:5215
31358 #, no-wrap
31359 msgid ""
31360 " int\n"
31361 " guestfs_mknod_b (guestfs_h *g,\n"
31362 "                  int mode,\n"
31363 "                  int devmajor,\n"
31364 "                  int devminor,\n"
31365 "                  const char *path);\n"
31366 "\n"
31367 msgstr ""
31368
31369 #. type: textblock
31370 #: ../src/guestfs-actions.pod:5222
31371 msgid ""
31372 "This call creates a block device node called C<path> with mode C<mode> and "
31373 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31374 "wrapper around C<guestfs_mknod>."
31375 msgstr ""
31376
31377 #. type: =head2
31378 #: ../src/guestfs-actions.pod:5232
31379 msgid "guestfs_mknod_c"
31380 msgstr ""
31381
31382 #. type: verbatim
31383 #: ../src/guestfs-actions.pod:5234
31384 #, no-wrap
31385 msgid ""
31386 " int\n"
31387 " guestfs_mknod_c (guestfs_h *g,\n"
31388 "                  int mode,\n"
31389 "                  int devmajor,\n"
31390 "                  int devminor,\n"
31391 "                  const char *path);\n"
31392 "\n"
31393 msgstr ""
31394
31395 #. type: textblock
31396 #: ../src/guestfs-actions.pod:5241
31397 msgid ""
31398 "This call creates a char device node called C<path> with mode C<mode> and "
31399 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
31400 "wrapper around C<guestfs_mknod>."
31401 msgstr ""
31402
31403 #. type: =head2
31404 #: ../src/guestfs-actions.pod:5251
31405 msgid "guestfs_mkswap"
31406 msgstr ""
31407
31408 #. type: verbatim
31409 #: ../src/guestfs-actions.pod:5253
31410 #, no-wrap
31411 msgid ""
31412 " int\n"
31413 " guestfs_mkswap (guestfs_h *g,\n"
31414 "                 const char *device);\n"
31415 "\n"
31416 msgstr ""
31417
31418 #. type: =head2
31419 #: ../src/guestfs-actions.pod:5263
31420 msgid "guestfs_mkswap_L"
31421 msgstr ""
31422
31423 #. type: verbatim
31424 #: ../src/guestfs-actions.pod:5265
31425 #, no-wrap
31426 msgid ""
31427 " int\n"
31428 " guestfs_mkswap_L (guestfs_h *g,\n"
31429 "                   const char *label,\n"
31430 "                   const char *device);\n"
31431 "\n"
31432 msgstr ""
31433
31434 #. type: =head2
31435 #: ../src/guestfs-actions.pod:5280
31436 msgid "guestfs_mkswap_U"
31437 msgstr ""
31438
31439 #. type: verbatim
31440 #: ../src/guestfs-actions.pod:5282
31441 #, no-wrap
31442 msgid ""
31443 " int\n"
31444 " guestfs_mkswap_U (guestfs_h *g,\n"
31445 "                   const char *uuid,\n"
31446 "                   const char *device);\n"
31447 "\n"
31448 msgstr ""
31449
31450 #. type: =head2
31451 #: ../src/guestfs-actions.pod:5293
31452 msgid "guestfs_mkswap_file"
31453 msgstr ""
31454
31455 #. type: verbatim
31456 #: ../src/guestfs-actions.pod:5295
31457 #, no-wrap
31458 msgid ""
31459 " int\n"
31460 " guestfs_mkswap_file (guestfs_h *g,\n"
31461 "                      const char *path);\n"
31462 "\n"
31463 msgstr ""
31464
31465 #. type: textblock
31466 #: ../src/guestfs-actions.pod:5301
31467 msgid ""
31468 "This command just writes a swap file signature to an existing file.  To "
31469 "create the file itself, use something like C<guestfs_fallocate>."
31470 msgstr ""
31471
31472 #. type: =head2
31473 #: ../src/guestfs-actions.pod:5308
31474 msgid "guestfs_modprobe"
31475 msgstr ""
31476
31477 #. type: verbatim
31478 #: ../src/guestfs-actions.pod:5310
31479 #, no-wrap
31480 msgid ""
31481 " int\n"
31482 " guestfs_modprobe (guestfs_h *g,\n"
31483 "                   const char *modulename);\n"
31484 "\n"
31485 msgstr ""
31486
31487 #. type: =head2
31488 #: ../src/guestfs-actions.pod:5323
31489 msgid "guestfs_mount"
31490 msgstr ""
31491
31492 #. type: verbatim
31493 #: ../src/guestfs-actions.pod:5325
31494 #, no-wrap
31495 msgid ""
31496 " int\n"
31497 " guestfs_mount (guestfs_h *g,\n"
31498 "                const char *device,\n"
31499 "                const char *mountpoint);\n"
31500 "\n"
31501 msgstr ""
31502
31503 #. type: textblock
31504 #: ../src/guestfs-actions.pod:5344
31505 msgid ""
31506 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
31507 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
31508 "problems for users.  If your program might need to work with older versions "
31509 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
31510 "for the first parameter if you don't want any options)."
31511 msgstr ""
31512
31513 #. type: =head2
31514 #: ../src/guestfs-actions.pod:5355
31515 msgid "guestfs_mount_9p"
31516 msgstr ""
31517
31518 #. type: verbatim
31519 #: ../src/guestfs-actions.pod:5357
31520 #, no-wrap
31521 msgid ""
31522 " int\n"
31523 " guestfs_mount_9p (guestfs_h *g,\n"
31524 "                   const char *mounttag,\n"
31525 "                   const char *mountpoint,\n"
31526 "                   ...);\n"
31527 "\n"
31528 msgstr ""
31529
31530 #. type: verbatim
31531 #: ../src/guestfs-actions.pod:5368
31532 #, no-wrap
31533 msgid ""
31534 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
31535 "\n"
31536 msgstr ""
31537
31538 #. type: =head2
31539 #: ../src/guestfs-actions.pod:5381
31540 msgid "guestfs_mount_9p_va"
31541 msgstr ""
31542
31543 #. type: verbatim
31544 #: ../src/guestfs-actions.pod:5383
31545 #, no-wrap
31546 msgid ""
31547 " int\n"
31548 " guestfs_mount_9p_va (guestfs_h *g,\n"
31549 "                      const char *mounttag,\n"
31550 "                      const char *mountpoint,\n"
31551 "                      va_list args);\n"
31552 "\n"
31553 msgstr ""
31554
31555 #. type: textblock
31556 #: ../src/guestfs-actions.pod:5389
31557 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
31558 msgstr ""
31559
31560 #. type: =head2
31561 #: ../src/guestfs-actions.pod:5393
31562 msgid "guestfs_mount_9p_argv"
31563 msgstr ""
31564
31565 #. type: verbatim
31566 #: ../src/guestfs-actions.pod:5395
31567 #, no-wrap
31568 msgid ""
31569 " int\n"
31570 " guestfs_mount_9p_argv (guestfs_h *g,\n"
31571 "                        const char *mounttag,\n"
31572 "                        const char *mountpoint,\n"
31573 "                        const struct guestfs_mount_9p_argv *optargs);\n"
31574 "\n"
31575 msgstr ""
31576
31577 #. type: textblock
31578 #: ../src/guestfs-actions.pod:5401
31579 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
31580 msgstr ""
31581
31582 #. type: =head2
31583 #: ../src/guestfs-actions.pod:5405
31584 msgid "guestfs_mount_loop"
31585 msgstr ""
31586
31587 #. type: verbatim
31588 #: ../src/guestfs-actions.pod:5407
31589 #, no-wrap
31590 msgid ""
31591 " int\n"
31592 " guestfs_mount_loop (guestfs_h *g,\n"
31593 "                     const char *file,\n"
31594 "                     const char *mountpoint);\n"
31595 "\n"
31596 msgstr ""
31597
31598 #. type: =head2
31599 #: ../src/guestfs-actions.pod:5420
31600 msgid "guestfs_mount_options"
31601 msgstr ""
31602
31603 #. type: verbatim
31604 #: ../src/guestfs-actions.pod:5422
31605 #, no-wrap
31606 msgid ""
31607 " int\n"
31608 " guestfs_mount_options (guestfs_h *g,\n"
31609 "                        const char *options,\n"
31610 "                        const char *device,\n"
31611 "                        const char *mountpoint);\n"
31612 "\n"
31613 msgstr ""
31614
31615 #. type: textblock
31616 #: ../src/guestfs-actions.pod:5428
31617 msgid ""
31618 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31619 "the mount options as for the L<mount(8)> I<-o> flag."
31620 msgstr ""
31621
31622 #. type: textblock
31623 #: ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:5452
31624 #: ../src/guestfs-actions.pod:5469
31625 msgid "(Added in 1.0.10)"
31626 msgstr "(Додано у 1.0.10)"
31627
31628 #. type: =head2
31629 #: ../src/guestfs-actions.pod:5440
31630 msgid "guestfs_mount_ro"
31631 msgstr ""
31632
31633 #. type: verbatim
31634 #: ../src/guestfs-actions.pod:5442
31635 #, no-wrap
31636 msgid ""
31637 " int\n"
31638 " guestfs_mount_ro (guestfs_h *g,\n"
31639 "                   const char *device,\n"
31640 "                   const char *mountpoint);\n"
31641 "\n"
31642 msgstr ""
31643
31644 #. type: textblock
31645 #: ../src/guestfs-actions.pod:5447
31646 msgid ""
31647 "This is the same as the C<guestfs_mount> command, but it mounts the "
31648 "filesystem with the read-only (I<-o ro>) flag."
31649 msgstr ""
31650
31651 #. type: =head2
31652 #: ../src/guestfs-actions.pod:5454
31653 msgid "guestfs_mount_vfs"
31654 msgstr ""
31655
31656 #. type: verbatim
31657 #: ../src/guestfs-actions.pod:5456
31658 #, no-wrap
31659 msgid ""
31660 " int\n"
31661 " guestfs_mount_vfs (guestfs_h *g,\n"
31662 "                    const char *options,\n"
31663 "                    const char *vfstype,\n"
31664 "                    const char *device,\n"
31665 "                    const char *mountpoint);\n"
31666 "\n"
31667 msgstr ""
31668
31669 #. type: textblock
31670 #: ../src/guestfs-actions.pod:5463
31671 msgid ""
31672 "This is the same as the C<guestfs_mount> command, but it allows you to set "
31673 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
31674 "t> flags."
31675 msgstr ""
31676
31677 #. type: =head2
31678 #: ../src/guestfs-actions.pod:5471
31679 msgid "guestfs_mountpoints"
31680 msgstr ""
31681
31682 #. type: verbatim
31683 #: ../src/guestfs-actions.pod:5473
31684 #, no-wrap
31685 msgid ""
31686 " char **\n"
31687 " guestfs_mountpoints (guestfs_h *g);\n"
31688 "\n"
31689 msgstr ""
31690
31691 #. type: textblock
31692 #: ../src/guestfs-actions.pod:5476
31693 msgid ""
31694 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
31695 "devices.  This one returns a hash table (map) of device name to directory "
31696 "where the device is mounted."
31697 msgstr ""
31698
31699 #. type: =head2
31700 #: ../src/guestfs-actions.pod:5488
31701 msgid "guestfs_mounts"
31702 msgstr ""
31703
31704 #. type: verbatim
31705 #: ../src/guestfs-actions.pod:5490
31706 #, no-wrap
31707 msgid ""
31708 " char **\n"
31709 " guestfs_mounts (guestfs_h *g);\n"
31710 "\n"
31711 msgstr ""
31712
31713 #. type: textblock
31714 #: ../src/guestfs-actions.pod:5498
31715 msgid "See also: C<guestfs_mountpoints>"
31716 msgstr ""
31717
31718 #. type: =head2
31719 #: ../src/guestfs-actions.pod:5506
31720 msgid "guestfs_mv"
31721 msgstr ""
31722
31723 #. type: verbatim
31724 #: ../src/guestfs-actions.pod:5508
31725 #, no-wrap
31726 msgid ""
31727 " int\n"
31728 " guestfs_mv (guestfs_h *g,\n"
31729 "             const char *src,\n"
31730 "             const char *dest);\n"
31731 "\n"
31732 msgstr ""
31733
31734 #. type: =head2
31735 #: ../src/guestfs-actions.pod:5520
31736 msgid "guestfs_ntfs_3g_probe"
31737 msgstr ""
31738
31739 #. type: verbatim
31740 #: ../src/guestfs-actions.pod:5522
31741 #, no-wrap
31742 msgid ""
31743 " int\n"
31744 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31745 "                        int rw,\n"
31746 "                        const char *device);\n"
31747 "\n"
31748 msgstr ""
31749
31750 #. type: textblock
31751 #: ../src/guestfs-actions.pod:5541
31752 msgid "(Added in 1.0.43)"
31753 msgstr "(Додано у 1.0.43)"
31754
31755 #. type: =head2
31756 #: ../src/guestfs-actions.pod:5543
31757 msgid "guestfs_ntfsresize"
31758 msgstr ""
31759
31760 #. type: verbatim
31761 #: ../src/guestfs-actions.pod:5545
31762 #, no-wrap
31763 msgid ""
31764 " int\n"
31765 " guestfs_ntfsresize (guestfs_h *g,\n"
31766 "                     const char *device);\n"
31767 "\n"
31768 msgstr ""
31769
31770 #. type: textblock
31771 #: ../src/guestfs-actions.pod:5549 ../src/guestfs-actions.pod:5649
31772 msgid ""
31773 "I<This function is deprecated.> In new code, use the L</"
31774 "guestfs_ntfsresize_opts> call instead."
31775 msgstr ""
31776
31777 #. type: =head2
31778 #: ../src/guestfs-actions.pod:5573
31779 msgid "guestfs_ntfsresize_opts"
31780 msgstr ""
31781
31782 #. type: verbatim
31783 #: ../src/guestfs-actions.pod:5575
31784 #, no-wrap
31785 msgid ""
31786 " int\n"
31787 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31788 "                          const char *device,\n"
31789 "                          ...);\n"
31790 "\n"
31791 msgstr ""
31792
31793 #. type: verbatim
31794 #: ../src/guestfs-actions.pod:5585
31795 #, no-wrap
31796 msgid ""
31797 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31798 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31799 "\n"
31800 msgstr ""
31801
31802 #. type: textblock
31803 #: ../src/guestfs-actions.pod:5605
31804 msgid ""
31805 "After the resize operation, the filesystem is always marked as requiring a "
31806 "consistency check (for safety).  You have to boot into Windows to perform "
31807 "this check and clear this condition.  If you I<don't> set the C<force> "
31808 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31809 "times on a single filesystem without booting into Windows between each "
31810 "resize."
31811 msgstr ""
31812
31813 #. type: =head2
31814 #: ../src/guestfs-actions.pod:5620
31815 msgid "guestfs_ntfsresize_opts_va"
31816 msgstr ""
31817
31818 #. type: verbatim
31819 #: ../src/guestfs-actions.pod:5622
31820 #, no-wrap
31821 msgid ""
31822 " int\n"
31823 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31824 "                             const char *device,\n"
31825 "                             va_list args);\n"
31826 "\n"
31827 msgstr ""
31828
31829 #. type: textblock
31830 #: ../src/guestfs-actions.pod:5627
31831 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31832 msgstr ""
31833
31834 #. type: =head2
31835 #: ../src/guestfs-actions.pod:5631
31836 msgid "guestfs_ntfsresize_opts_argv"
31837 msgstr ""
31838
31839 #. type: verbatim
31840 #: ../src/guestfs-actions.pod:5633
31841 #, no-wrap
31842 msgid ""
31843 " int\n"
31844 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31845 "                               const char *device,\n"
31846 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31847 "\n"
31848 msgstr ""
31849
31850 #. type: textblock
31851 #: ../src/guestfs-actions.pod:5638
31852 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31853 msgstr ""
31854
31855 #. type: =head2
31856 #: ../src/guestfs-actions.pod:5642
31857 msgid "guestfs_ntfsresize_size"
31858 msgstr ""
31859
31860 #. type: verbatim
31861 #: ../src/guestfs-actions.pod:5644
31862 #, no-wrap
31863 msgid ""
31864 " int\n"
31865 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31866 "                          const char *device,\n"
31867 "                          int64_t size);\n"
31868 "\n"
31869 msgstr ""
31870
31871 #. type: textblock
31872 #: ../src/guestfs-actions.pod:5656
31873 msgid ""
31874 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31875 "to specify the new size (in bytes) explicitly."
31876 msgstr ""
31877
31878 #. type: textblock
31879 #: ../src/guestfs-actions.pod:5661 ../src/guestfs-actions.pod:6121
31880 #: ../src/guestfs-actions.pod:6194 ../src/guestfs-actions.pod:6462
31881 #: ../src/guestfs-actions.pod:8101
31882 msgid "(Added in 1.3.14)"
31883 msgstr "(Додано у 1.3.14)"
31884
31885 #. type: =head2
31886 #: ../src/guestfs-actions.pod:5663
31887 msgid "guestfs_part_add"
31888 msgstr ""
31889
31890 #. type: verbatim
31891 #: ../src/guestfs-actions.pod:5665
31892 #, no-wrap
31893 msgid ""
31894 " int\n"
31895 " guestfs_part_add (guestfs_h *g,\n"
31896 "                   const char *device,\n"
31897 "                   const char *prlogex,\n"
31898 "                   int64_t startsect,\n"
31899 "                   int64_t endsect);\n"
31900 "\n"
31901 msgstr ""
31902
31903 #. type: textblock
31904 #: ../src/guestfs-actions.pod:5672
31905 msgid ""
31906 "This command adds a partition to C<device>.  If there is no partition table "
31907 "on the device, call C<guestfs_part_init> first."
31908 msgstr ""
31909
31910 #. type: textblock
31911 #: ../src/guestfs-actions.pod:5684
31912 msgid ""
31913 "Creating a partition which covers the whole disk is not so easy.  Use "
31914 "C<guestfs_part_disk> to do that."
31915 msgstr ""
31916
31917 #. type: textblock
31918 #: ../src/guestfs-actions.pod:5689 ../src/guestfs-actions.pod:5727
31919 #: ../src/guestfs-actions.pod:5780 ../src/guestfs-actions.pod:5864
31920 #: ../src/guestfs-actions.pod:5902 ../src/guestfs-actions.pod:5921
31921 #: ../src/guestfs-actions.pod:5961
31922 msgid "(Added in 1.0.78)"
31923 msgstr "(Додано у 1.0.78)"
31924
31925 #. type: =head2
31926 #: ../src/guestfs-actions.pod:5691
31927 msgid "guestfs_part_del"
31928 msgstr ""
31929
31930 #. type: verbatim
31931 #: ../src/guestfs-actions.pod:5693
31932 #, no-wrap
31933 msgid ""
31934 " int\n"
31935 " guestfs_part_del (guestfs_h *g,\n"
31936 "                   const char *device,\n"
31937 "                   int partnum);\n"
31938 "\n"
31939 msgstr ""
31940
31941 #. type: =head2
31942 #: ../src/guestfs-actions.pod:5708
31943 msgid "guestfs_part_disk"
31944 msgstr ""
31945
31946 #. type: verbatim
31947 #: ../src/guestfs-actions.pod:5710
31948 #, no-wrap
31949 msgid ""
31950 " int\n"
31951 " guestfs_part_disk (guestfs_h *g,\n"
31952 "                    const char *device,\n"
31953 "                    const char *parttype);\n"
31954 "\n"
31955 msgstr ""
31956
31957 #. type: textblock
31958 #: ../src/guestfs-actions.pod:5715
31959 msgid ""
31960 "This command is simply a combination of C<guestfs_part_init> followed by "
31961 "C<guestfs_part_add> to create a single primary partition covering the whole "
31962 "disk."
31963 msgstr ""
31964
31965 #. type: textblock
31966 #: ../src/guestfs-actions.pod:5719
31967 msgid ""
31968 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31969 "possible values are described in C<guestfs_part_init>."
31970 msgstr ""
31971
31972 #. type: =head2
31973 #: ../src/guestfs-actions.pod:5729
31974 msgid "guestfs_part_get_bootable"
31975 msgstr ""
31976
31977 #. type: verbatim
31978 #: ../src/guestfs-actions.pod:5731
31979 #, no-wrap
31980 msgid ""
31981 " int\n"
31982 " guestfs_part_get_bootable (guestfs_h *g,\n"
31983 "                            const char *device,\n"
31984 "                            int partnum);\n"
31985 "\n"
31986 msgstr ""
31987
31988 #. type: textblock
31989 #: ../src/guestfs-actions.pod:5739
31990 msgid "See also C<guestfs_part_set_bootable>."
31991 msgstr ""
31992
31993 #. type: =head2
31994 #: ../src/guestfs-actions.pod:5745
31995 msgid "guestfs_part_get_mbr_id"
31996 msgstr ""
31997
31998 #. type: verbatim
31999 #: ../src/guestfs-actions.pod:5747
32000 #, no-wrap
32001 msgid ""
32002 " int\n"
32003 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
32004 "                          const char *device,\n"
32005 "                          int partnum);\n"
32006 "\n"
32007 msgstr ""
32008
32009 #. type: textblock
32010 #: ../src/guestfs-actions.pod:5755 ../src/guestfs-actions.pod:5937
32011 msgid ""
32012 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
32013 "undefined results for other partition table types (see "
32014 "C<guestfs_part_get_parttype>)."
32015 msgstr ""
32016
32017 #. type: =head2
32018 #: ../src/guestfs-actions.pod:5763
32019 msgid "guestfs_part_get_parttype"
32020 msgstr ""
32021
32022 #. type: verbatim
32023 #: ../src/guestfs-actions.pod:5765
32024 #, no-wrap
32025 msgid ""
32026 " char *\n"
32027 " guestfs_part_get_parttype (guestfs_h *g,\n"
32028 "                            const char *device);\n"
32029 "\n"
32030 msgstr ""
32031
32032 #. type: textblock
32033 #: ../src/guestfs-actions.pod:5772
32034 msgid ""
32035 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
32036 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
32037 "possible, although unusual.  See C<guestfs_part_init> for a full list."
32038 msgstr ""
32039
32040 #. type: =head2
32041 #: ../src/guestfs-actions.pod:5782
32042 msgid "guestfs_part_init"
32043 msgstr ""
32044
32045 #. type: verbatim
32046 #: ../src/guestfs-actions.pod:5784
32047 #, no-wrap
32048 msgid ""
32049 " int\n"
32050 " guestfs_part_init (guestfs_h *g,\n"
32051 "                    const char *device,\n"
32052 "                    const char *parttype);\n"
32053 "\n"
32054 msgstr ""
32055
32056 #. type: textblock
32057 #: ../src/guestfs-actions.pod:5793
32058 msgid ""
32059 "Initially there are no partitions.  Following this, you should call "
32060 "C<guestfs_part_add> for each partition required."
32061 msgstr ""
32062
32063 #. type: =head2
32064 #: ../src/guestfs-actions.pod:5866
32065 msgid "guestfs_part_list"
32066 msgstr "guestfs_part_list"
32067
32068 #. type: verbatim
32069 #: ../src/guestfs-actions.pod:5868
32070 #, no-wrap
32071 msgid ""
32072 " struct guestfs_partition_list *\n"
32073 " guestfs_part_list (guestfs_h *g,\n"
32074 "                    const char *device);\n"
32075 "\n"
32076 msgstr ""
32077 " struct guestfs_partition_list *\n"
32078 " guestfs_part_list (guestfs_h *g,\n"
32079 "                    const char *device);\n"
32080 "\n"
32081
32082 #. type: textblock
32083 #: ../src/guestfs-actions.pod:5885
32084 msgid ""
32085 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
32086 "the device's sector size, see C<guestfs_blockdev_getss>."
32087 msgstr ""
32088
32089 #. type: textblock
32090 #: ../src/guestfs-actions.pod:5898
32091 msgid ""
32092 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
32093 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
32094 "use>."
32095 msgstr ""
32096
32097 #. type: =head2
32098 #: ../src/guestfs-actions.pod:5904
32099 msgid "guestfs_part_set_bootable"
32100 msgstr ""
32101
32102 #. type: verbatim
32103 #: ../src/guestfs-actions.pod:5906
32104 #, no-wrap
32105 msgid ""
32106 " int\n"
32107 " guestfs_part_set_bootable (guestfs_h *g,\n"
32108 "                            const char *device,\n"
32109 "                            int partnum,\n"
32110 "                            int bootable);\n"
32111 "\n"
32112 msgstr ""
32113
32114 #. type: =head2
32115 #: ../src/guestfs-actions.pod:5923
32116 msgid "guestfs_part_set_mbr_id"
32117 msgstr ""
32118
32119 #. type: verbatim
32120 #: ../src/guestfs-actions.pod:5925
32121 #, no-wrap
32122 msgid ""
32123 " int\n"
32124 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
32125 "                          const char *device,\n"
32126 "                          int partnum,\n"
32127 "                          int idbyte);\n"
32128 "\n"
32129 msgstr ""
32130
32131 #. type: =head2
32132 #: ../src/guestfs-actions.pod:5945
32133 msgid "guestfs_part_set_name"
32134 msgstr ""
32135
32136 #. type: verbatim
32137 #: ../src/guestfs-actions.pod:5947
32138 #, no-wrap
32139 msgid ""
32140 " int\n"
32141 " guestfs_part_set_name (guestfs_h *g,\n"
32142 "                        const char *device,\n"
32143 "                        int partnum,\n"
32144 "                        const char *name);\n"
32145 "\n"
32146 msgstr ""
32147
32148 #. type: =head2
32149 #: ../src/guestfs-actions.pod:5963
32150 msgid "guestfs_part_to_dev"
32151 msgstr ""
32152
32153 #. type: verbatim
32154 #: ../src/guestfs-actions.pod:5965
32155 #, no-wrap
32156 msgid ""
32157 " char *\n"
32158 " guestfs_part_to_dev (guestfs_h *g,\n"
32159 "                      const char *partition);\n"
32160 "\n"
32161 msgstr ""
32162
32163 #. type: textblock
32164 #: ../src/guestfs-actions.pod:5973 ../src/guestfs-actions.pod:5992
32165 msgid ""
32166 "The named partition must exist, for example as a string returned from "
32167 "C<guestfs_list_partitions>."
32168 msgstr ""
32169
32170 #. type: textblock
32171 #: ../src/guestfs-actions.pod:5976
32172 msgid "See also C<guestfs_part_to_partnum>."
32173 msgstr ""
32174
32175 #. type: =head2
32176 #: ../src/guestfs-actions.pod:5983
32177 #, fuzzy
32178 #| msgid "guestfs_part_list"
32179 msgid "guestfs_part_to_partnum"
32180 msgstr "guestfs_part_list"
32181
32182 #. type: verbatim
32183 #: ../src/guestfs-actions.pod:5985
32184 #, fuzzy, no-wrap
32185 #| msgid ""
32186 #| " int\n"
32187 #| " guestfs_mkdir_p (guestfs_h *g,\n"
32188 #| "                  const char *path);\n"
32189 #| "\n"
32190 msgid ""
32191 " int\n"
32192 " guestfs_part_to_partnum (guestfs_h *g,\n"
32193 "                          const char *partition);\n"
32194 "\n"
32195 msgstr ""
32196 " int\n"
32197 " guestfs_mkdir_p (guestfs_h *g,\n"
32198 "                  const char *path);\n"
32199 "\n"
32200
32201 #. type: textblock
32202 #: ../src/guestfs-actions.pod:5995
32203 #, fuzzy
32204 #| msgid "See also L</stat>."
32205 msgid "See also C<guestfs_part_to_dev>."
32206 msgstr "Див. також L</stat>."
32207
32208 #. type: =head2
32209 #: ../src/guestfs-actions.pod:5999
32210 msgid "guestfs_ping_daemon"
32211 msgstr ""
32212
32213 #. type: verbatim
32214 #: ../src/guestfs-actions.pod:6001
32215 #, no-wrap
32216 msgid ""
32217 " int\n"
32218 " guestfs_ping_daemon (guestfs_h *g);\n"
32219 "\n"
32220 msgstr ""
32221
32222 #. type: =head2
32223 #: ../src/guestfs-actions.pod:6013
32224 msgid "guestfs_pread"
32225 msgstr ""
32226
32227 #. type: verbatim
32228 #: ../src/guestfs-actions.pod:6015
32229 #, no-wrap
32230 msgid ""
32231 " char *\n"
32232 " guestfs_pread (guestfs_h *g,\n"
32233 "                const char *path,\n"
32234 "                int count,\n"
32235 "                int64_t offset,\n"
32236 "                size_t *size_r);\n"
32237 "\n"
32238 msgstr ""
32239
32240 #. type: textblock
32241 #: ../src/guestfs-actions.pod:6028
32242 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
32243 msgstr ""
32244
32245 #. type: =head2
32246 #: ../src/guestfs-actions.pod:6039
32247 msgid "guestfs_pread_device"
32248 msgstr ""
32249
32250 #. type: verbatim
32251 #: ../src/guestfs-actions.pod:6041
32252 #, no-wrap
32253 msgid ""
32254 " char *\n"
32255 " guestfs_pread_device (guestfs_h *g,\n"
32256 "                       const char *device,\n"
32257 "                       int count,\n"
32258 "                       int64_t offset,\n"
32259 "                       size_t *size_r);\n"
32260 "\n"
32261 msgstr ""
32262
32263 #. type: textblock
32264 #: ../src/guestfs-actions.pod:6054
32265 msgid "See also C<guestfs_pread>."
32266 msgstr ""
32267
32268 #. type: textblock
32269 #: ../src/guestfs-actions.pod:6063
32270 msgid "(Added in 1.5.21)"
32271 msgstr "(Додано у 1.5.21)"
32272
32273 #. type: =head2
32274 #: ../src/guestfs-actions.pod:6065
32275 msgid "guestfs_pvcreate"
32276 msgstr ""
32277
32278 #. type: verbatim
32279 #: ../src/guestfs-actions.pod:6067
32280 #, no-wrap
32281 msgid ""
32282 " int\n"
32283 " guestfs_pvcreate (guestfs_h *g,\n"
32284 "                   const char *device);\n"
32285 "\n"
32286 msgstr ""
32287
32288 #. type: =head2
32289 #: ../src/guestfs-actions.pod:6079
32290 msgid "guestfs_pvremove"
32291 msgstr ""
32292
32293 #. type: verbatim
32294 #: ../src/guestfs-actions.pod:6081
32295 #, no-wrap
32296 msgid ""
32297 " int\n"
32298 " guestfs_pvremove (guestfs_h *g,\n"
32299 "                   const char *device);\n"
32300 "\n"
32301 msgstr ""
32302
32303 #. type: =head2
32304 #: ../src/guestfs-actions.pod:6096
32305 msgid "guestfs_pvresize"
32306 msgstr ""
32307
32308 #. type: verbatim
32309 #: ../src/guestfs-actions.pod:6098
32310 #, no-wrap
32311 msgid ""
32312 " int\n"
32313 " guestfs_pvresize (guestfs_h *g,\n"
32314 "                   const char *device);\n"
32315 "\n"
32316 msgstr ""
32317
32318 #. type: =head2
32319 #: ../src/guestfs-actions.pod:6109
32320 msgid "guestfs_pvresize_size"
32321 msgstr ""
32322
32323 #. type: verbatim
32324 #: ../src/guestfs-actions.pod:6111
32325 #, no-wrap
32326 msgid ""
32327 " int\n"
32328 " guestfs_pvresize_size (guestfs_h *g,\n"
32329 "                        const char *device,\n"
32330 "                        int64_t size);\n"
32331 "\n"
32332 msgstr ""
32333
32334 #. type: textblock
32335 #: ../src/guestfs-actions.pod:6116
32336 msgid ""
32337 "This command is the same as C<guestfs_pvresize> except that it allows you to "
32338 "specify the new size (in bytes) explicitly."
32339 msgstr ""
32340
32341 #. type: =head2
32342 #: ../src/guestfs-actions.pod:6123
32343 msgid "guestfs_pvs"
32344 msgstr ""
32345
32346 #. type: verbatim
32347 #: ../src/guestfs-actions.pod:6125
32348 #, no-wrap
32349 msgid ""
32350 " char **\n"
32351 " guestfs_pvs (guestfs_h *g);\n"
32352 "\n"
32353 msgstr ""
32354
32355 #. type: textblock
32356 #: ../src/guestfs-actions.pod:6134
32357 msgid "See also C<guestfs_pvs_full>."
32358 msgstr ""
32359
32360 #. type: =head2
32361 #: ../src/guestfs-actions.pod:6142
32362 msgid "guestfs_pvs_full"
32363 msgstr ""
32364
32365 #. type: verbatim
32366 #: ../src/guestfs-actions.pod:6144
32367 #, no-wrap
32368 msgid ""
32369 " struct guestfs_lvm_pv_list *\n"
32370 " guestfs_pvs_full (guestfs_h *g);\n"
32371 "\n"
32372 msgstr ""
32373
32374 #. type: textblock
32375 #: ../src/guestfs-actions.pod:6150
32376 msgid ""
32377 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
32378 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
32379 msgstr ""
32380
32381 #. type: =head2
32382 #: ../src/guestfs-actions.pod:6156
32383 msgid "guestfs_pvuuid"
32384 msgstr ""
32385
32386 #. type: verbatim
32387 #: ../src/guestfs-actions.pod:6158
32388 #, no-wrap
32389 msgid ""
32390 " char *\n"
32391 " guestfs_pvuuid (guestfs_h *g,\n"
32392 "                 const char *device);\n"
32393 "\n"
32394 msgstr ""
32395
32396 #. type: =head2
32397 #: ../src/guestfs-actions.pod:6169
32398 msgid "guestfs_pwrite"
32399 msgstr ""
32400
32401 #. type: verbatim
32402 #: ../src/guestfs-actions.pod:6171
32403 #, no-wrap
32404 msgid ""
32405 " int\n"
32406 " guestfs_pwrite (guestfs_h *g,\n"
32407 "                 const char *path,\n"
32408 "                 const char *content,\n"
32409 "                 size_t content_size,\n"
32410 "                 int64_t offset);\n"
32411 "\n"
32412 msgstr ""
32413
32414 #. type: textblock
32415 #: ../src/guestfs-actions.pod:6187
32416 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
32417 msgstr ""
32418
32419 #. type: =head2
32420 #: ../src/guestfs-actions.pod:6196
32421 msgid "guestfs_pwrite_device"
32422 msgstr ""
32423
32424 #. type: verbatim
32425 #: ../src/guestfs-actions.pod:6198
32426 #, no-wrap
32427 msgid ""
32428 " int\n"
32429 " guestfs_pwrite_device (guestfs_h *g,\n"
32430 "                        const char *device,\n"
32431 "                        const char *content,\n"
32432 "                        size_t content_size,\n"
32433 "                        int64_t offset);\n"
32434 "\n"
32435 msgstr ""
32436
32437 #. type: textblock
32438 #: ../src/guestfs-actions.pod:6213
32439 msgid "See also C<guestfs_pwrite>."
32440 msgstr ""
32441
32442 #. type: textblock
32443 #: ../src/guestfs-actions.pod:6220
32444 msgid "(Added in 1.5.20)"
32445 msgstr "(Додано у 1.5.20)"
32446
32447 #. type: =head2
32448 #: ../src/guestfs-actions.pod:6222
32449 msgid "guestfs_read_file"
32450 msgstr ""
32451
32452 #. type: verbatim
32453 #: ../src/guestfs-actions.pod:6224
32454 #, no-wrap
32455 msgid ""
32456 " char *\n"
32457 " guestfs_read_file (guestfs_h *g,\n"
32458 "                    const char *path,\n"
32459 "                    size_t *size_r);\n"
32460 "\n"
32461 msgstr ""
32462
32463 #. type: textblock
32464 #: ../src/guestfs-actions.pod:6232
32465 msgid ""
32466 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
32467 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
32468 "function is limited in the total size of file that can be handled."
32469 msgstr ""
32470
32471 #. type: textblock
32472 #: ../src/guestfs-actions.pod:6244
32473 msgid "(Added in 1.0.63)"
32474 msgstr "(Додано у 1.0.63)"
32475
32476 #. type: =head2
32477 #: ../src/guestfs-actions.pod:6246
32478 msgid "guestfs_read_lines"
32479 msgstr ""
32480
32481 #. type: verbatim
32482 #: ../src/guestfs-actions.pod:6248
32483 #, no-wrap
32484 msgid ""
32485 " char **\n"
32486 " guestfs_read_lines (guestfs_h *g,\n"
32487 "                     const char *path);\n"
32488 "\n"
32489 msgstr ""
32490
32491 #. type: textblock
32492 #: ../src/guestfs-actions.pod:6257
32493 msgid ""
32494 "Note that this function cannot correctly handle binary files (specifically, "
32495 "files containing C<\\0> character which is treated as end of line).  For "
32496 "those you need to use the C<guestfs_read_file> function which has a more "
32497 "complex interface."
32498 msgstr ""
32499
32500 #. type: =head2
32501 #: ../src/guestfs-actions.pod:6268
32502 msgid "guestfs_readdir"
32503 msgstr ""
32504
32505 #. type: verbatim
32506 #: ../src/guestfs-actions.pod:6270
32507 #, no-wrap
32508 msgid ""
32509 " struct guestfs_dirent_list *\n"
32510 " guestfs_readdir (guestfs_h *g,\n"
32511 "                  const char *dir);\n"
32512 "\n"
32513 msgstr ""
32514
32515 #. type: textblock
32516 #: ../src/guestfs-actions.pod:6324
32517 msgid ""
32518 "This function is primarily intended for use by programs.  To get a simple "
32519 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
32520 "consumption, use C<guestfs_ll>."
32521 msgstr ""
32522
32523 #. type: textblock
32524 #: ../src/guestfs-actions.pod:6328
32525 msgid ""
32526 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
32527 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
32528 msgstr ""
32529
32530 #. type: =head2
32531 #: ../src/guestfs-actions.pod:6334
32532 msgid "guestfs_readlink"
32533 msgstr ""
32534
32535 #. type: verbatim
32536 #: ../src/guestfs-actions.pod:6336
32537 #, no-wrap
32538 msgid ""
32539 " char *\n"
32540 " guestfs_readlink (guestfs_h *g,\n"
32541 "                   const char *path);\n"
32542 "\n"
32543 msgstr ""
32544
32545 #. type: =head2
32546 #: ../src/guestfs-actions.pod:6347
32547 msgid "guestfs_readlinklist"
32548 msgstr ""
32549
32550 #. type: verbatim
32551 #: ../src/guestfs-actions.pod:6349
32552 #, no-wrap
32553 msgid ""
32554 " char **\n"
32555 " guestfs_readlinklist (guestfs_h *g,\n"
32556 "                       const char *path,\n"
32557 "                       char *const *names);\n"
32558 "\n"
32559 msgstr ""
32560
32561 #. type: =head2
32562 #: ../src/guestfs-actions.pod:6382
32563 msgid "guestfs_realpath"
32564 msgstr ""
32565
32566 #. type: verbatim
32567 #: ../src/guestfs-actions.pod:6384
32568 #, no-wrap
32569 msgid ""
32570 " char *\n"
32571 " guestfs_realpath (guestfs_h *g,\n"
32572 "                   const char *path);\n"
32573 "\n"
32574 msgstr ""
32575
32576 #. type: =head2
32577 #: ../src/guestfs-actions.pod:6396
32578 msgid "guestfs_removexattr"
32579 msgstr ""
32580
32581 #. type: verbatim
32582 #: ../src/guestfs-actions.pod:6398
32583 #, no-wrap
32584 msgid ""
32585 " int\n"
32586 " guestfs_removexattr (guestfs_h *g,\n"
32587 "                      const char *xattr,\n"
32588 "                      const char *path);\n"
32589 "\n"
32590 msgstr ""
32591
32592 #. type: textblock
32593 #: ../src/guestfs-actions.pod:6406
32594 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
32595 msgstr ""
32596
32597 #. type: =head2
32598 #: ../src/guestfs-actions.pod:6412
32599 msgid "guestfs_resize2fs"
32600 msgstr ""
32601
32602 #. type: verbatim
32603 #: ../src/guestfs-actions.pod:6414
32604 #, no-wrap
32605 msgid ""
32606 " int\n"
32607 " guestfs_resize2fs (guestfs_h *g,\n"
32608 "                    const char *device);\n"
32609 "\n"
32610 msgstr ""
32611
32612 #. type: textblock
32613 #: ../src/guestfs-actions.pod:6421
32614 msgid ""
32615 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
32616 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
32617 "sometimes gives an error about this and sometimes not.  In any case, it is "
32618 "always safe to call C<guestfs_e2fsck_f> before calling this function."
32619 msgstr ""
32620
32621 #. type: =head2
32622 #: ../src/guestfs-actions.pod:6431
32623 msgid "guestfs_resize2fs_M"
32624 msgstr ""
32625
32626 #. type: verbatim
32627 #: ../src/guestfs-actions.pod:6433
32628 #, no-wrap
32629 msgid ""
32630 " int\n"
32631 " guestfs_resize2fs_M (guestfs_h *g,\n"
32632 "                      const char *device);\n"
32633 "\n"
32634 msgstr ""
32635
32636 #. type: textblock
32637 #: ../src/guestfs-actions.pod:6437
32638 msgid ""
32639 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
32640 "resized to its minimum size.  This works like the I<-M> option to the "
32641 "C<resize2fs> command."
32642 msgstr ""
32643
32644 #. type: textblock
32645 #: ../src/guestfs-actions.pod:6441
32646 msgid ""
32647 "To get the resulting size of the filesystem you should call "
32648 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
32649 "These two numbers, multiplied together, give the resulting size of the "
32650 "minimal filesystem in bytes."
32651 msgstr ""
32652
32653 #. type: =head2
32654 #: ../src/guestfs-actions.pod:6450
32655 msgid "guestfs_resize2fs_size"
32656 msgstr ""
32657
32658 #. type: verbatim
32659 #: ../src/guestfs-actions.pod:6452
32660 #, no-wrap
32661 msgid ""
32662 " int\n"
32663 " guestfs_resize2fs_size (guestfs_h *g,\n"
32664 "                         const char *device,\n"
32665 "                         int64_t size);\n"
32666 "\n"
32667 msgstr ""
32668
32669 #. type: textblock
32670 #: ../src/guestfs-actions.pod:6457
32671 msgid ""
32672 "This command is the same as C<guestfs_resize2fs> except that it allows you "
32673 "to specify the new size (in bytes) explicitly."
32674 msgstr ""
32675
32676 #. type: =head2
32677 #: ../src/guestfs-actions.pod:6464
32678 msgid "guestfs_rm"
32679 msgstr ""
32680
32681 #. type: verbatim
32682 #: ../src/guestfs-actions.pod:6466
32683 #, no-wrap
32684 msgid ""
32685 " int\n"
32686 " guestfs_rm (guestfs_h *g,\n"
32687 "             const char *path);\n"
32688 "\n"
32689 msgstr ""
32690
32691 #. type: =head2
32692 #: ../src/guestfs-actions.pod:6476
32693 msgid "guestfs_rm_rf"
32694 msgstr ""
32695
32696 #. type: verbatim
32697 #: ../src/guestfs-actions.pod:6478
32698 #, no-wrap
32699 msgid ""
32700 " int\n"
32701 " guestfs_rm_rf (guestfs_h *g,\n"
32702 "                const char *path);\n"
32703 "\n"
32704 msgstr ""
32705
32706 #. type: =head2
32707 #: ../src/guestfs-actions.pod:6490
32708 msgid "guestfs_rmdir"
32709 msgstr ""
32710
32711 #. type: verbatim
32712 #: ../src/guestfs-actions.pod:6492
32713 #, no-wrap
32714 msgid ""
32715 " int\n"
32716 " guestfs_rmdir (guestfs_h *g,\n"
32717 "                const char *path);\n"
32718 "\n"
32719 msgstr ""
32720
32721 #. type: =head2
32722 #: ../src/guestfs-actions.pod:6502
32723 msgid "guestfs_rmmountpoint"
32724 msgstr ""
32725
32726 #. type: verbatim
32727 #: ../src/guestfs-actions.pod:6504
32728 #, no-wrap
32729 msgid ""
32730 " int\n"
32731 " guestfs_rmmountpoint (guestfs_h *g,\n"
32732 "                       const char *exemptpath);\n"
32733 "\n"
32734 msgstr ""
32735
32736 #. type: textblock
32737 #: ../src/guestfs-actions.pod:6508
32738 msgid ""
32739 "This calls removes a mountpoint that was previously created with "
32740 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
32741 msgstr ""
32742
32743 #. type: =head2
32744 #: ../src/guestfs-actions.pod:6516
32745 msgid "guestfs_scrub_device"
32746 msgstr ""
32747
32748 #. type: verbatim
32749 #: ../src/guestfs-actions.pod:6518
32750 #, no-wrap
32751 msgid ""
32752 " int\n"
32753 " guestfs_scrub_device (guestfs_h *g,\n"
32754 "                       const char *device);\n"
32755 "\n"
32756 msgstr ""
32757
32758 #. type: textblock
32759 #: ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6551
32760 #: ../src/guestfs-actions.pod:6570
32761 msgid "(Added in 1.0.52)"
32762 msgstr "(Додано у 1.0.52)"
32763
32764 #. type: =head2
32765 #: ../src/guestfs-actions.pod:6535
32766 msgid "guestfs_scrub_file"
32767 msgstr ""
32768
32769 #. type: verbatim
32770 #: ../src/guestfs-actions.pod:6537
32771 #, no-wrap
32772 msgid ""
32773 " int\n"
32774 " guestfs_scrub_file (guestfs_h *g,\n"
32775 "                     const char *file);\n"
32776 "\n"
32777 msgstr ""
32778
32779 #. type: =head2
32780 #: ../src/guestfs-actions.pod:6553
32781 msgid "guestfs_scrub_freespace"
32782 msgstr ""
32783
32784 #. type: verbatim
32785 #: ../src/guestfs-actions.pod:6555
32786 #, no-wrap
32787 msgid ""
32788 " int\n"
32789 " guestfs_scrub_freespace (guestfs_h *g,\n"
32790 "                          const char *dir);\n"
32791 "\n"
32792 msgstr ""
32793
32794 #. type: textblock
32795 #: ../src/guestfs-actions.pod:6559
32796 msgid ""
32797 "This command creates the directory C<dir> and then fills it with files until "
32798 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32799 "and deletes them.  The intention is to scrub any free space on the partition "
32800 "containing C<dir>."
32801 msgstr ""
32802
32803 #. type: =head2
32804 #: ../src/guestfs-actions.pod:6572
32805 msgid "guestfs_set_append"
32806 msgstr ""
32807
32808 #. type: verbatim
32809 #: ../src/guestfs-actions.pod:6574
32810 #, no-wrap
32811 msgid ""
32812 " int\n"
32813 " guestfs_set_append (guestfs_h *g,\n"
32814 "                     const char *append);\n"
32815 "\n"
32816 msgstr ""
32817
32818 #. type: =head2
32819 #: ../src/guestfs-actions.pod:6591
32820 msgid "guestfs_set_attach_method"
32821 msgstr ""
32822
32823 #. type: verbatim
32824 #: ../src/guestfs-actions.pod:6593
32825 #, no-wrap
32826 msgid ""
32827 " int\n"
32828 " guestfs_set_attach_method (guestfs_h *g,\n"
32829 "                            const char *attachmethod);\n"
32830 "\n"
32831 msgstr ""
32832
32833 #. type: =head2
32834 #: ../src/guestfs-actions.pod:6621
32835 msgid "guestfs_set_autosync"
32836 msgstr ""
32837
32838 #. type: verbatim
32839 #: ../src/guestfs-actions.pod:6623
32840 #, no-wrap
32841 msgid ""
32842 " int\n"
32843 " guestfs_set_autosync (guestfs_h *g,\n"
32844 "                       int autosync);\n"
32845 "\n"
32846 msgstr ""
32847
32848 #. type: =head2
32849 #: ../src/guestfs-actions.pod:6639
32850 msgid "guestfs_set_direct"
32851 msgstr ""
32852
32853 #. type: verbatim
32854 #: ../src/guestfs-actions.pod:6641
32855 #, no-wrap
32856 msgid ""
32857 " int\n"
32858 " guestfs_set_direct (guestfs_h *g,\n"
32859 "                     int direct);\n"
32860 "\n"
32861 msgstr ""
32862
32863 #. type: textblock
32864 #: ../src/guestfs-actions.pod:6649
32865 msgid ""
32866 "One consequence of this is that log messages aren't caught by the library "
32867 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32868 "stdout."
32869 msgstr ""
32870
32871 #. type: =head2
32872 #: ../src/guestfs-actions.pod:6662
32873 msgid "guestfs_set_e2label"
32874 msgstr ""
32875
32876 #. type: verbatim
32877 #: ../src/guestfs-actions.pod:6664
32878 #, no-wrap
32879 msgid ""
32880 " int\n"
32881 " guestfs_set_e2label (guestfs_h *g,\n"
32882 "                      const char *device,\n"
32883 "                      const char *label);\n"
32884 "\n"
32885 msgstr ""
32886
32887 #. type: textblock
32888 #: ../src/guestfs-actions.pod:6673
32889 msgid ""
32890 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32891 "the existing label on a filesystem."
32892 msgstr ""
32893
32894 #. type: =head2
32895 #: ../src/guestfs-actions.pod:6680
32896 msgid "guestfs_set_e2uuid"
32897 msgstr ""
32898
32899 #. type: verbatim
32900 #: ../src/guestfs-actions.pod:6682
32901 #, no-wrap
32902 msgid ""
32903 " int\n"
32904 " guestfs_set_e2uuid (guestfs_h *g,\n"
32905 "                     const char *device,\n"
32906 "                     const char *uuid);\n"
32907 "\n"
32908 msgstr ""
32909
32910 #. type: textblock
32911 #: ../src/guestfs-actions.pod:6692
32912 msgid ""
32913 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32914 "the existing UUID of a filesystem."
32915 msgstr ""
32916
32917 #. type: =head2
32918 #: ../src/guestfs-actions.pod:6699
32919 msgid "guestfs_set_memsize"
32920 msgstr ""
32921
32922 #. type: verbatim
32923 #: ../src/guestfs-actions.pod:6701
32924 #, no-wrap
32925 msgid ""
32926 " int\n"
32927 " guestfs_set_memsize (guestfs_h *g,\n"
32928 "                      int memsize);\n"
32929 "\n"
32930 msgstr ""
32931
32932 #. type: textblock
32933 #: ../src/guestfs-actions.pod:6705
32934 msgid ""
32935 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
32936 "This only has any effect if called before C<guestfs_launch>."
32937 msgstr ""
32938
32939 #. type: =head2
32940 #: ../src/guestfs-actions.pod:6720
32941 msgid "guestfs_set_network"
32942 msgstr ""
32943
32944 #. type: verbatim
32945 #: ../src/guestfs-actions.pod:6722
32946 #, no-wrap
32947 msgid ""
32948 " int\n"
32949 " guestfs_set_network (guestfs_h *g,\n"
32950 "                      int network);\n"
32951 "\n"
32952 msgstr ""
32953
32954 #. type: textblock
32955 #: ../src/guestfs-actions.pod:6732
32956 msgid ""
32957 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32958 "effect."
32959 msgstr ""
32960
32961 #. type: =head2
32962 #: ../src/guestfs-actions.pod:6739
32963 msgid "guestfs_set_path"
32964 msgstr ""
32965
32966 #. type: verbatim
32967 #: ../src/guestfs-actions.pod:6741
32968 #, no-wrap
32969 msgid ""
32970 " int\n"
32971 " guestfs_set_path (guestfs_h *g,\n"
32972 "                   const char *searchpath);\n"
32973 "\n"
32974 msgstr ""
32975
32976 #. type: =head2
32977 #: ../src/guestfs-actions.pod:6756
32978 msgid "guestfs_set_pgroup"
32979 msgstr ""
32980
32981 #. type: verbatim
32982 #: ../src/guestfs-actions.pod:6758
32983 #, no-wrap
32984 msgid ""
32985 " int\n"
32986 " guestfs_set_pgroup (guestfs_h *g,\n"
32987 "                     int pgroup);\n"
32988 "\n"
32989 msgstr ""
32990
32991 #. type: =head2
32992 #: ../src/guestfs-actions.pod:6775
32993 msgid "guestfs_set_qemu"
32994 msgstr ""
32995
32996 #. type: verbatim
32997 #: ../src/guestfs-actions.pod:6777
32998 #, no-wrap
32999 msgid ""
33000 " int\n"
33001 " guestfs_set_qemu (guestfs_h *g,\n"
33002 "                   const char *qemu);\n"
33003 "\n"
33004 msgstr ""
33005
33006 #. type: =head2
33007 #: ../src/guestfs-actions.pod:6803
33008 msgid "guestfs_set_recovery_proc"
33009 msgstr ""
33010
33011 #. type: verbatim
33012 #: ../src/guestfs-actions.pod:6805
33013 #, no-wrap
33014 msgid ""
33015 " int\n"
33016 " guestfs_set_recovery_proc (guestfs_h *g,\n"
33017 "                            int recoveryproc);\n"
33018 "\n"
33019 msgstr ""
33020
33021 #. type: textblock
33022 #: ../src/guestfs-actions.pod:6809
33023 msgid ""
33024 "If this is called with the parameter C<false> then C<guestfs_launch> does "
33025 "not create a recovery process.  The purpose of the recovery process is to "
33026 "stop runaway qemu processes in the case where the main program aborts "
33027 "abruptly."
33028 msgstr ""
33029
33030 #. type: textblock
33031 #: ../src/guestfs-actions.pod:6814
33032 msgid ""
33033 "This only has any effect if called before C<guestfs_launch>, and the default "
33034 "is true."
33035 msgstr ""
33036
33037 #. type: =head2
33038 #: ../src/guestfs-actions.pod:6827
33039 msgid "guestfs_set_selinux"
33040 msgstr ""
33041
33042 #. type: verbatim
33043 #: ../src/guestfs-actions.pod:6829
33044 #, no-wrap
33045 msgid ""
33046 " int\n"
33047 " guestfs_set_selinux (guestfs_h *g,\n"
33048 "                      int selinux);\n"
33049 "\n"
33050 msgstr ""
33051
33052 #. type: =head2
33053 #: ../src/guestfs-actions.pod:6846
33054 msgid "guestfs_set_smp"
33055 msgstr ""
33056
33057 #. type: verbatim
33058 #: ../src/guestfs-actions.pod:6848
33059 #, no-wrap
33060 msgid ""
33061 " int\n"
33062 " guestfs_set_smp (guestfs_h *g,\n"
33063 "                  int smp);\n"
33064 "\n"
33065 msgstr ""
33066
33067 #. type: textblock
33068 #: ../src/guestfs-actions.pod:6856
33069 msgid "This function must be called before C<guestfs_launch>."
33070 msgstr ""
33071
33072 #. type: =head2
33073 #: ../src/guestfs-actions.pod:6862
33074 msgid "guestfs_set_trace"
33075 msgstr ""
33076
33077 #. type: verbatim
33078 #: ../src/guestfs-actions.pod:6864
33079 #, no-wrap
33080 msgid ""
33081 " int\n"
33082 " guestfs_set_trace (guestfs_h *g,\n"
33083 "                    int trace);\n"
33084 "\n"
33085 msgstr ""
33086
33087 #. type: textblock
33088 #: ../src/guestfs-actions.pod:6878
33089 msgid ""
33090 "Trace messages are normally sent to C<stderr>, unless you register a "
33091 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33092 msgstr ""
33093
33094 #. type: =head2
33095 #: ../src/guestfs-actions.pod:6886
33096 msgid "guestfs_set_verbose"
33097 msgstr ""
33098
33099 #. type: verbatim
33100 #: ../src/guestfs-actions.pod:6888
33101 #, no-wrap
33102 msgid ""
33103 " int\n"
33104 " guestfs_set_verbose (guestfs_h *g,\n"
33105 "                      int verbose);\n"
33106 "\n"
33107 msgstr ""
33108
33109 #. type: textblock
33110 #: ../src/guestfs-actions.pod:6897
33111 msgid ""
33112 "Verbose messages are normally sent to C<stderr>, unless you register a "
33113 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
33114 msgstr ""
33115
33116 #. type: =head2
33117 #: ../src/guestfs-actions.pod:6905
33118 msgid "guestfs_setcon"
33119 msgstr ""
33120
33121 #. type: verbatim
33122 #: ../src/guestfs-actions.pod:6907
33123 #, no-wrap
33124 msgid ""
33125 " int\n"
33126 " guestfs_setcon (guestfs_h *g,\n"
33127 "                 const char *context);\n"
33128 "\n"
33129 msgstr ""
33130
33131 #. type: =head2
33132 #: ../src/guestfs-actions.pod:6920
33133 msgid "guestfs_setxattr"
33134 msgstr ""
33135
33136 #. type: verbatim
33137 #: ../src/guestfs-actions.pod:6922
33138 #, no-wrap
33139 msgid ""
33140 " int\n"
33141 " guestfs_setxattr (guestfs_h *g,\n"
33142 "                   const char *xattr,\n"
33143 "                   const char *val,\n"
33144 "                   int vallen,\n"
33145 "                   const char *path);\n"
33146 "\n"
33147 msgstr ""
33148
33149 #. type: textblock
33150 #: ../src/guestfs-actions.pod:6933
33151 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
33152 msgstr ""
33153
33154 #. type: =head2
33155 #: ../src/guestfs-actions.pod:6939
33156 msgid "guestfs_sfdisk"
33157 msgstr ""
33158
33159 #. type: verbatim
33160 #: ../src/guestfs-actions.pod:6941
33161 #, no-wrap
33162 msgid ""
33163 " int\n"
33164 " guestfs_sfdisk (guestfs_h *g,\n"
33165 "                 const char *device,\n"
33166 "                 int cyls,\n"
33167 "                 int heads,\n"
33168 "                 int sectors,\n"
33169 "                 char *const *lines);\n"
33170 "\n"
33171 msgstr ""
33172
33173 #. type: textblock
33174 #: ../src/guestfs-actions.pod:6949 ../src/guestfs-actions.pod:6993
33175 #: ../src/guestfs-actions.pod:7027
33176 msgid ""
33177 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
33178 "call instead."
33179 msgstr ""
33180
33181 #. type: textblock
33182 #: ../src/guestfs-actions.pod:6976
33183 msgid ""
33184 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
33185 msgstr ""
33186
33187 #. type: =head2
33188 #: ../src/guestfs-actions.pod:6986
33189 msgid "guestfs_sfdiskM"
33190 msgstr ""
33191
33192 #. type: verbatim
33193 #: ../src/guestfs-actions.pod:6988
33194 #, no-wrap
33195 msgid ""
33196 " int\n"
33197 " guestfs_sfdiskM (guestfs_h *g,\n"
33198 "                  const char *device,\n"
33199 "                  char *const *lines);\n"
33200 "\n"
33201 msgstr ""
33202
33203 #. type: textblock
33204 #: ../src/guestfs-actions.pod:7000
33205 msgid ""
33206 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
33207 "partition sizes are specified in megabytes only (rounded to the nearest "
33208 "cylinder) and you don't need to specify the cyls, heads and sectors "
33209 "parameters which were rarely if ever used anyway."
33210 msgstr ""
33211
33212 #. type: textblock
33213 #: ../src/guestfs-actions.pod:7006
33214 msgid ""
33215 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
33216 "C<guestfs_part_disk>"
33217 msgstr ""
33218
33219 #. type: =head2
33220 #: ../src/guestfs-actions.pod:7016
33221 msgid "guestfs_sfdisk_N"
33222 msgstr ""
33223
33224 #. type: verbatim
33225 #: ../src/guestfs-actions.pod:7018
33226 #, no-wrap
33227 msgid ""
33228 " int\n"
33229 " guestfs_sfdisk_N (guestfs_h *g,\n"
33230 "                   const char *device,\n"
33231 "                   int partnum,\n"
33232 "                   int cyls,\n"
33233 "                   int heads,\n"
33234 "                   int sectors,\n"
33235 "                   const char *line);\n"
33236 "\n"
33237 msgstr ""
33238
33239 #. type: textblock
33240 #: ../src/guestfs-actions.pod:7037
33241 msgid ""
33242 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
33243 "for the cyls/heads/sectors parameters."
33244 msgstr ""
33245
33246 #. type: textblock
33247 #: ../src/guestfs-actions.pod:7040
33248 msgid "See also: C<guestfs_part_add>"
33249 msgstr ""
33250
33251 #. type: =head2
33252 #: ../src/guestfs-actions.pod:7049
33253 msgid "guestfs_sfdisk_disk_geometry"
33254 msgstr ""
33255
33256 #. type: verbatim
33257 #: ../src/guestfs-actions.pod:7051
33258 #, no-wrap
33259 msgid ""
33260 " char *\n"
33261 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
33262 "                               const char *device);\n"
33263 "\n"
33264 msgstr ""
33265
33266 #. type: textblock
33267 #: ../src/guestfs-actions.pod:7055
33268 msgid ""
33269 "This displays the disk geometry of C<device> read from the partition table.  "
33270 "Especially in the case where the underlying block device has been resized, "
33271 "this can be different from the kernel's idea of the geometry (see "
33272 "C<guestfs_sfdisk_kernel_geometry>)."
33273 msgstr ""
33274
33275 #. type: =head2
33276 #: ../src/guestfs-actions.pod:7068
33277 msgid "guestfs_sfdisk_kernel_geometry"
33278 msgstr ""
33279
33280 #. type: verbatim
33281 #: ../src/guestfs-actions.pod:7070
33282 #, no-wrap
33283 msgid ""
33284 " char *\n"
33285 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
33286 "                                 const char *device);\n"
33287 "\n"
33288 msgstr ""
33289
33290 #. type: =head2
33291 #: ../src/guestfs-actions.pod:7084
33292 msgid "guestfs_sfdisk_l"
33293 msgstr ""
33294
33295 #. type: verbatim
33296 #: ../src/guestfs-actions.pod:7086
33297 #, no-wrap
33298 msgid ""
33299 " char *\n"
33300 " guestfs_sfdisk_l (guestfs_h *g,\n"
33301 "                   const char *device);\n"
33302 "\n"
33303 msgstr ""
33304
33305 #. type: textblock
33306 #: ../src/guestfs-actions.pod:7090
33307 msgid ""
33308 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
33309 "call instead."
33310 msgstr ""
33311
33312 #. type: textblock
33313 #: ../src/guestfs-actions.pod:7101
33314 msgid "See also: C<guestfs_part_list>"
33315 msgstr ""
33316
33317 #. type: =head2
33318 #: ../src/guestfs-actions.pod:7108
33319 msgid "guestfs_sh"
33320 msgstr ""
33321
33322 #. type: verbatim
33323 #: ../src/guestfs-actions.pod:7110
33324 #, no-wrap
33325 msgid ""
33326 " char *\n"
33327 " guestfs_sh (guestfs_h *g,\n"
33328 "             const char *command);\n"
33329 "\n"
33330 msgstr ""
33331
33332 #. type: textblock
33333 #: ../src/guestfs-actions.pod:7117
33334 msgid "This is like C<guestfs_command>, but passes the command to:"
33335 msgstr ""
33336
33337 #. type: textblock
33338 #: ../src/guestfs-actions.pod:7125
33339 msgid "All the provisos about C<guestfs_command> apply to this call."
33340 msgstr ""
33341
33342 #. type: =head2
33343 #: ../src/guestfs-actions.pod:7132
33344 msgid "guestfs_sh_lines"
33345 msgstr ""
33346
33347 #. type: verbatim
33348 #: ../src/guestfs-actions.pod:7134
33349 #, no-wrap
33350 msgid ""
33351 " char **\n"
33352 " guestfs_sh_lines (guestfs_h *g,\n"
33353 "                   const char *command);\n"
33354 "\n"
33355 msgstr ""
33356
33357 #. type: textblock
33358 #: ../src/guestfs-actions.pod:7138
33359 msgid ""
33360 "This is the same as C<guestfs_sh>, but splits the result into a list of "
33361 "lines."
33362 msgstr ""
33363
33364 #. type: textblock
33365 #: ../src/guestfs-actions.pod:7141
33366 msgid "See also: C<guestfs_command_lines>"
33367 msgstr ""
33368
33369 #. type: =head2
33370 #: ../src/guestfs-actions.pod:7149
33371 msgid "guestfs_sleep"
33372 msgstr ""
33373
33374 #. type: verbatim
33375 #: ../src/guestfs-actions.pod:7151
33376 #, no-wrap
33377 msgid ""
33378 " int\n"
33379 " guestfs_sleep (guestfs_h *g,\n"
33380 "                int secs);\n"
33381 "\n"
33382 msgstr ""
33383
33384 #. type: textblock
33385 #: ../src/guestfs-actions.pod:7159
33386 msgid "(Added in 1.0.41)"
33387 msgstr "(Додано у 1.0.41)"
33388
33389 #. type: =head2
33390 #: ../src/guestfs-actions.pod:7161 ../src/guestfs-structs.pod:109
33391 msgid "guestfs_stat"
33392 msgstr ""
33393
33394 #. type: verbatim
33395 #: ../src/guestfs-actions.pod:7163
33396 #, no-wrap
33397 msgid ""
33398 " struct guestfs_stat *\n"
33399 " guestfs_stat (guestfs_h *g,\n"
33400 "               const char *path);\n"
33401 "\n"
33402 msgstr ""
33403
33404 #. type: =head2
33405 #: ../src/guestfs-actions.pod:7177 ../src/guestfs-structs.pod:135
33406 msgid "guestfs_statvfs"
33407 msgstr ""
33408
33409 #. type: verbatim
33410 #: ../src/guestfs-actions.pod:7179
33411 #, no-wrap
33412 msgid ""
33413 " struct guestfs_statvfs *\n"
33414 " guestfs_statvfs (guestfs_h *g,\n"
33415 "                  const char *path);\n"
33416 "\n"
33417 msgstr ""
33418
33419 #. type: textblock
33420 #: ../src/guestfs-actions.pod:7189
33421 msgid ""
33422 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
33423 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
33424 msgstr ""
33425
33426 #. type: =head2
33427 #: ../src/guestfs-actions.pod:7195
33428 msgid "guestfs_strings"
33429 msgstr ""
33430
33431 #. type: verbatim
33432 #: ../src/guestfs-actions.pod:7197
33433 #, no-wrap
33434 msgid ""
33435 " char **\n"
33436 " guestfs_strings (guestfs_h *g,\n"
33437 "                  const char *path);\n"
33438 "\n"
33439 msgstr ""
33440
33441 #. type: =head2
33442 #: ../src/guestfs-actions.pod:7213
33443 msgid "guestfs_strings_e"
33444 msgstr ""
33445
33446 #. type: verbatim
33447 #: ../src/guestfs-actions.pod:7215
33448 #, no-wrap
33449 msgid ""
33450 " char **\n"
33451 " guestfs_strings_e (guestfs_h *g,\n"
33452 "                    const char *encoding,\n"
33453 "                    const char *path);\n"
33454 "\n"
33455 msgstr ""
33456
33457 #. type: textblock
33458 #: ../src/guestfs-actions.pod:7220
33459 msgid ""
33460 "This is like the C<guestfs_strings> command, but allows you to specify the "
33461 "encoding of strings that are looked for in the source file C<path>."
33462 msgstr ""
33463
33464 #. type: textblock
33465 #: ../src/guestfs-actions.pod:7230
33466 msgid ""
33467 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
33468 "ISO-8859-X (this is what C<guestfs_strings> uses)."
33469 msgstr ""
33470
33471 #. type: =head2
33472 #: ../src/guestfs-actions.pod:7268
33473 msgid "guestfs_swapoff_device"
33474 msgstr ""
33475
33476 #. type: verbatim
33477 #: ../src/guestfs-actions.pod:7270
33478 #, no-wrap
33479 msgid ""
33480 " int\n"
33481 " guestfs_swapoff_device (guestfs_h *g,\n"
33482 "                         const char *device);\n"
33483 "\n"
33484 msgstr ""
33485
33486 #. type: textblock
33487 #: ../src/guestfs-actions.pod:7274
33488 msgid ""
33489 "This command disables the libguestfs appliance swap device or partition "
33490 "named C<device>.  See C<guestfs_swapon_device>."
33491 msgstr ""
33492
33493 #. type: =head2
33494 #: ../src/guestfs-actions.pod:7282
33495 msgid "guestfs_swapoff_file"
33496 msgstr ""
33497
33498 #. type: verbatim
33499 #: ../src/guestfs-actions.pod:7284
33500 #, no-wrap
33501 msgid ""
33502 " int\n"
33503 " guestfs_swapoff_file (guestfs_h *g,\n"
33504 "                       const char *file);\n"
33505 "\n"
33506 msgstr ""
33507
33508 #. type: =head2
33509 #: ../src/guestfs-actions.pod:7294
33510 msgid "guestfs_swapoff_label"
33511 msgstr ""
33512
33513 #. type: verbatim
33514 #: ../src/guestfs-actions.pod:7296
33515 #, no-wrap
33516 msgid ""
33517 " int\n"
33518 " guestfs_swapoff_label (guestfs_h *g,\n"
33519 "                        const char *label);\n"
33520 "\n"
33521 msgstr ""
33522
33523 #. type: =head2
33524 #: ../src/guestfs-actions.pod:7307
33525 msgid "guestfs_swapoff_uuid"
33526 msgstr ""
33527
33528 #. type: verbatim
33529 #: ../src/guestfs-actions.pod:7309
33530 #, no-wrap
33531 msgid ""
33532 " int\n"
33533 " guestfs_swapoff_uuid (guestfs_h *g,\n"
33534 "                       const char *uuid);\n"
33535 "\n"
33536 msgstr ""
33537
33538 #. type: =head2
33539 #: ../src/guestfs-actions.pod:7320
33540 msgid "guestfs_swapon_device"
33541 msgstr ""
33542
33543 #. type: verbatim
33544 #: ../src/guestfs-actions.pod:7322
33545 #, no-wrap
33546 msgid ""
33547 " int\n"
33548 " guestfs_swapon_device (guestfs_h *g,\n"
33549 "                        const char *device);\n"
33550 "\n"
33551 msgstr ""
33552
33553 #. type: textblock
33554 #: ../src/guestfs-actions.pod:7326
33555 msgid ""
33556 "This command enables the libguestfs appliance to use the swap device or "
33557 "partition named C<device>.  The increased memory is made available for all "
33558 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
33559 msgstr ""
33560
33561 #. type: =head2
33562 #: ../src/guestfs-actions.pod:7342
33563 msgid "guestfs_swapon_file"
33564 msgstr ""
33565
33566 #. type: verbatim
33567 #: ../src/guestfs-actions.pod:7344
33568 #, no-wrap
33569 msgid ""
33570 " int\n"
33571 " guestfs_swapon_file (guestfs_h *g,\n"
33572 "                      const char *file);\n"
33573 "\n"
33574 msgstr ""
33575
33576 #. type: textblock
33577 #: ../src/guestfs-actions.pod:7348
33578 msgid ""
33579 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
33580 "notes."
33581 msgstr ""
33582
33583 #. type: =head2
33584 #: ../src/guestfs-actions.pod:7355
33585 msgid "guestfs_swapon_label"
33586 msgstr ""
33587
33588 #. type: verbatim
33589 #: ../src/guestfs-actions.pod:7357
33590 #, no-wrap
33591 msgid ""
33592 " int\n"
33593 " guestfs_swapon_label (guestfs_h *g,\n"
33594 "                       const char *label);\n"
33595 "\n"
33596 msgstr ""
33597
33598 #. type: textblock
33599 #: ../src/guestfs-actions.pod:7361
33600 msgid ""
33601 "This command enables swap to a labeled swap partition.  See "
33602 "C<guestfs_swapon_device> for other notes."
33603 msgstr ""
33604
33605 #. type: =head2
33606 #: ../src/guestfs-actions.pod:7368
33607 msgid "guestfs_swapon_uuid"
33608 msgstr ""
33609
33610 #. type: verbatim
33611 #: ../src/guestfs-actions.pod:7370
33612 #, no-wrap
33613 msgid ""
33614 " int\n"
33615 " guestfs_swapon_uuid (guestfs_h *g,\n"
33616 "                      const char *uuid);\n"
33617 "\n"
33618 msgstr ""
33619
33620 #. type: textblock
33621 #: ../src/guestfs-actions.pod:7374
33622 msgid ""
33623 "This command enables swap to a swap partition with the given UUID.  See "
33624 "C<guestfs_swapon_device> for other notes."
33625 msgstr ""
33626
33627 #. type: =head2
33628 #: ../src/guestfs-actions.pod:7381
33629 msgid "guestfs_sync"
33630 msgstr ""
33631
33632 #. type: verbatim
33633 #: ../src/guestfs-actions.pod:7383
33634 #, no-wrap
33635 msgid ""
33636 " int\n"
33637 " guestfs_sync (guestfs_h *g);\n"
33638 "\n"
33639 msgstr ""
33640
33641 #. type: =head2
33642 #: ../src/guestfs-actions.pod:7396
33643 msgid "guestfs_tail"
33644 msgstr ""
33645
33646 #. type: verbatim
33647 #: ../src/guestfs-actions.pod:7398
33648 #, no-wrap
33649 msgid ""
33650 " char **\n"
33651 " guestfs_tail (guestfs_h *g,\n"
33652 "               const char *path);\n"
33653 "\n"
33654 msgstr ""
33655
33656 #. type: =head2
33657 #: ../src/guestfs-actions.pod:7414
33658 msgid "guestfs_tail_n"
33659 msgstr ""
33660
33661 #. type: verbatim
33662 #: ../src/guestfs-actions.pod:7416
33663 #, no-wrap
33664 msgid ""
33665 " char **\n"
33666 " guestfs_tail_n (guestfs_h *g,\n"
33667 "                 int nrlines,\n"
33668 "                 const char *path);\n"
33669 "\n"
33670 msgstr ""
33671
33672 #. type: =head2
33673 #: ../src/guestfs-actions.pod:7438
33674 msgid "guestfs_tar_in"
33675 msgstr ""
33676
33677 #. type: verbatim
33678 #: ../src/guestfs-actions.pod:7440
33679 #, no-wrap
33680 msgid ""
33681 " int\n"
33682 " guestfs_tar_in (guestfs_h *g,\n"
33683 "                 const char *tarfile,\n"
33684 "                 const char *directory);\n"
33685 "\n"
33686 msgstr ""
33687
33688 #. type: textblock
33689 #: ../src/guestfs-actions.pod:7448
33690 msgid ""
33691 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
33692 msgstr ""
33693
33694 #. type: textblock
33695 #: ../src/guestfs-actions.pod:7453 ../src/guestfs-actions.pod:7470
33696 #: ../src/guestfs-actions.pod:7486 ../src/guestfs-actions.pod:7502
33697 msgid "(Added in 1.0.3)"
33698 msgstr "(Додано у 1.0.3)"
33699
33700 #. type: =head2
33701 #: ../src/guestfs-actions.pod:7455
33702 msgid "guestfs_tar_out"
33703 msgstr ""
33704
33705 #. type: verbatim
33706 #: ../src/guestfs-actions.pod:7457
33707 #, no-wrap
33708 msgid ""
33709 " int\n"
33710 " guestfs_tar_out (guestfs_h *g,\n"
33711 "                  const char *directory,\n"
33712 "                  const char *tarfile);\n"
33713 "\n"
33714 msgstr ""
33715
33716 #. type: textblock
33717 #: ../src/guestfs-actions.pod:7465
33718 msgid ""
33719 "To download a compressed tarball, use C<guestfs_tgz_out> or "
33720 "C<guestfs_txz_out>."
33721 msgstr ""
33722
33723 #. type: =head2
33724 #: ../src/guestfs-actions.pod:7472
33725 msgid "guestfs_tgz_in"
33726 msgstr ""
33727
33728 #. type: verbatim
33729 #: ../src/guestfs-actions.pod:7474
33730 #, no-wrap
33731 msgid ""
33732 " int\n"
33733 " guestfs_tgz_in (guestfs_h *g,\n"
33734 "                 const char *tarball,\n"
33735 "                 const char *directory);\n"
33736 "\n"
33737 msgstr ""
33738
33739 #. type: textblock
33740 #: ../src/guestfs-actions.pod:7482
33741 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
33742 msgstr ""
33743
33744 #. type: =head2
33745 #: ../src/guestfs-actions.pod:7488
33746 msgid "guestfs_tgz_out"
33747 msgstr ""
33748
33749 #. type: verbatim
33750 #: ../src/guestfs-actions.pod:7490
33751 #, no-wrap
33752 msgid ""
33753 " int\n"
33754 " guestfs_tgz_out (guestfs_h *g,\n"
33755 "                  const char *directory,\n"
33756 "                  const char *tarball);\n"
33757 "\n"
33758 msgstr ""
33759
33760 #. type: textblock
33761 #: ../src/guestfs-actions.pod:7498
33762 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
33763 msgstr ""
33764
33765 #. type: =head2
33766 #: ../src/guestfs-actions.pod:7504
33767 msgid "guestfs_touch"
33768 msgstr ""
33769
33770 #. type: verbatim
33771 #: ../src/guestfs-actions.pod:7506
33772 #, no-wrap
33773 msgid ""
33774 " int\n"
33775 " guestfs_touch (guestfs_h *g,\n"
33776 "                const char *path);\n"
33777 "\n"
33778 msgstr ""
33779
33780 #. type: =head2
33781 #: ../src/guestfs-actions.pod:7521
33782 msgid "guestfs_truncate"
33783 msgstr ""
33784
33785 #. type: verbatim
33786 #: ../src/guestfs-actions.pod:7523
33787 #, no-wrap
33788 msgid ""
33789 " int\n"
33790 " guestfs_truncate (guestfs_h *g,\n"
33791 "                   const char *path);\n"
33792 "\n"
33793 msgstr ""
33794
33795 #. type: =head2
33796 #: ../src/guestfs-actions.pod:7534
33797 msgid "guestfs_truncate_size"
33798 msgstr ""
33799
33800 #. type: verbatim
33801 #: ../src/guestfs-actions.pod:7536
33802 #, no-wrap
33803 msgid ""
33804 " int\n"
33805 " guestfs_truncate_size (guestfs_h *g,\n"
33806 "                        const char *path,\n"
33807 "                        int64_t size);\n"
33808 "\n"
33809 msgstr ""
33810
33811 #. type: textblock
33812 #: ../src/guestfs-actions.pod:7544
33813 msgid ""
33814 "If the current file size is less than C<size> then the file is extended to "
33815 "the required size with zero bytes.  This creates a sparse file (ie. disk "
33816 "blocks are not allocated for the file until you write to it).  To create a "
33817 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33818 msgstr ""
33819
33820 #. type: =head2
33821 #: ../src/guestfs-actions.pod:7554
33822 msgid "guestfs_tune2fs_l"
33823 msgstr ""
33824
33825 #. type: verbatim
33826 #: ../src/guestfs-actions.pod:7556
33827 #, no-wrap
33828 msgid ""
33829 " char **\n"
33830 " guestfs_tune2fs_l (guestfs_h *g,\n"
33831 "                    const char *device);\n"
33832 "\n"
33833 msgstr ""
33834
33835 #. type: =head2
33836 #: ../src/guestfs-actions.pod:7576
33837 msgid "guestfs_txz_in"
33838 msgstr ""
33839
33840 #. type: verbatim
33841 #: ../src/guestfs-actions.pod:7578
33842 #, no-wrap
33843 msgid ""
33844 " int\n"
33845 " guestfs_txz_in (guestfs_h *g,\n"
33846 "                 const char *tarball,\n"
33847 "                 const char *directory);\n"
33848 "\n"
33849 msgstr ""
33850
33851 #. type: =head2
33852 #: ../src/guestfs-actions.pod:7590
33853 msgid "guestfs_txz_out"
33854 msgstr ""
33855
33856 #. type: verbatim
33857 #: ../src/guestfs-actions.pod:7592
33858 #, no-wrap
33859 msgid ""
33860 " int\n"
33861 " guestfs_txz_out (guestfs_h *g,\n"
33862 "                  const char *directory,\n"
33863 "                  const char *tarball);\n"
33864 "\n"
33865 msgstr ""
33866
33867 #. type: =head2
33868 #: ../src/guestfs-actions.pod:7604
33869 msgid "guestfs_umask"
33870 msgstr ""
33871
33872 #. type: verbatim
33873 #: ../src/guestfs-actions.pod:7606
33874 #, no-wrap
33875 msgid ""
33876 " int\n"
33877 " guestfs_umask (guestfs_h *g,\n"
33878 "                int mask);\n"
33879 "\n"
33880 msgstr ""
33881
33882 #. type: textblock
33883 #: ../src/guestfs-actions.pod:7622
33884 msgid ""
33885 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33886 "C<guestfs_mkdir>."
33887 msgstr ""
33888
33889 #. type: =head2
33890 #: ../src/guestfs-actions.pod:7631
33891 msgid "guestfs_umount"
33892 msgstr ""
33893
33894 #. type: verbatim
33895 #: ../src/guestfs-actions.pod:7633
33896 #, no-wrap
33897 msgid ""
33898 " int\n"
33899 " guestfs_umount (guestfs_h *g,\n"
33900 "                 const char *pathordevice);\n"
33901 "\n"
33902 msgstr ""
33903
33904 #. type: =head2
33905 #: ../src/guestfs-actions.pod:7645
33906 msgid "guestfs_umount_all"
33907 msgstr ""
33908
33909 #. type: verbatim
33910 #: ../src/guestfs-actions.pod:7647
33911 #, no-wrap
33912 msgid ""
33913 " int\n"
33914 " guestfs_umount_all (guestfs_h *g);\n"
33915 "\n"
33916 msgstr ""
33917
33918 #. type: =head2
33919 #: ../src/guestfs-actions.pod:7658
33920 msgid "guestfs_upload"
33921 msgstr ""
33922
33923 #. type: verbatim
33924 #: ../src/guestfs-actions.pod:7660
33925 #, no-wrap
33926 msgid ""
33927 " int\n"
33928 " guestfs_upload (guestfs_h *g,\n"
33929 "                 const char *filename,\n"
33930 "                 const char *remotefilename);\n"
33931 "\n"
33932 msgstr ""
33933
33934 #. type: textblock
33935 #: ../src/guestfs-actions.pod:7670
33936 msgid "See also C<guestfs_download>."
33937 msgstr ""
33938
33939 #. type: =head2
33940 #: ../src/guestfs-actions.pod:7681
33941 msgid "guestfs_upload_offset"
33942 msgstr ""
33943
33944 #. type: verbatim
33945 #: ../src/guestfs-actions.pod:7683
33946 #, no-wrap
33947 msgid ""
33948 " int\n"
33949 " guestfs_upload_offset (guestfs_h *g,\n"
33950 "                        const char *filename,\n"
33951 "                        const char *remotefilename,\n"
33952 "                        int64_t offset);\n"
33953 "\n"
33954 msgstr ""
33955
33956 #. type: textblock
33957 #: ../src/guestfs-actions.pod:7699
33958 msgid ""
33959 "Note that there is no limit on the amount of data that can be uploaded with "
33960 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33961 "full amount unless an error occurs."
33962 msgstr ""
33963
33964 #. type: textblock
33965 #: ../src/guestfs-actions.pod:7704
33966 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33967 msgstr ""
33968
33969 #. type: =head2
33970 #: ../src/guestfs-actions.pod:7715
33971 msgid "guestfs_utimens"
33972 msgstr ""
33973
33974 #. type: verbatim
33975 #: ../src/guestfs-actions.pod:7717
33976 #, no-wrap
33977 msgid ""
33978 " int\n"
33979 " guestfs_utimens (guestfs_h *g,\n"
33980 "                  const char *path,\n"
33981 "                  int64_t atsecs,\n"
33982 "                  int64_t atnsecs,\n"
33983 "                  int64_t mtsecs,\n"
33984 "                  int64_t mtnsecs);\n"
33985 "\n"
33986 msgstr ""
33987
33988 #. type: =head2
33989 #: ../src/guestfs-actions.pod:7746 ../src/guestfs-structs.pod:175
33990 msgid "guestfs_version"
33991 msgstr ""
33992
33993 #. type: verbatim
33994 #: ../src/guestfs-actions.pod:7748
33995 #, no-wrap
33996 msgid ""
33997 " struct guestfs_version *\n"
33998 " guestfs_version (guestfs_h *g);\n"
33999 "\n"
34000 msgstr ""
34001
34002 #. type: textblock
34003 #: ../src/guestfs-actions.pod:7776
34004 msgid ""
34005 "I<Note:> Don't use this call to test for availability of features.  In "
34006 "enterprise distributions we backport features from later versions into "
34007 "earlier versions, making this an unreliable way to test for features.  Use "
34008 "C<guestfs_available> instead."
34009 msgstr ""
34010
34011 #. type: textblock
34012 #: ../src/guestfs-actions.pod:7782
34013 msgid ""
34014 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
34015 "error.  I<The caller must call C<guestfs_free_version> after use>."
34016 msgstr ""
34017
34018 #. type: textblock
34019 #: ../src/guestfs-actions.pod:7786
34020 msgid "(Added in 1.0.58)"
34021 msgstr "(Додано у 1.0.58)"
34022
34023 #. type: =head2
34024 #: ../src/guestfs-actions.pod:7788
34025 msgid "guestfs_vfs_label"
34026 msgstr ""
34027
34028 #. type: verbatim
34029 #: ../src/guestfs-actions.pod:7790
34030 #, no-wrap
34031 msgid ""
34032 " char *\n"
34033 " guestfs_vfs_label (guestfs_h *g,\n"
34034 "                    const char *device);\n"
34035 "\n"
34036 msgstr ""
34037
34038 #. type: textblock
34039 #: ../src/guestfs-actions.pod:7799
34040 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
34041 msgstr ""
34042
34043 #. type: textblock
34044 #: ../src/guestfs-actions.pod:7804 ../src/guestfs-actions.pod:7841
34045 msgid "(Added in 1.3.18)"
34046 msgstr "(Додано у 1.3.18)"
34047
34048 #. type: =head2
34049 #: ../src/guestfs-actions.pod:7806
34050 msgid "guestfs_vfs_type"
34051 msgstr ""
34052
34053 #. type: verbatim
34054 #: ../src/guestfs-actions.pod:7808
34055 #, no-wrap
34056 msgid ""
34057 " char *\n"
34058 " guestfs_vfs_type (guestfs_h *g,\n"
34059 "                   const char *device);\n"
34060 "\n"
34061 msgstr ""
34062
34063 #. type: =head2
34064 #: ../src/guestfs-actions.pod:7825
34065 msgid "guestfs_vfs_uuid"
34066 msgstr ""
34067
34068 #. type: verbatim
34069 #: ../src/guestfs-actions.pod:7827
34070 #, no-wrap
34071 msgid ""
34072 " char *\n"
34073 " guestfs_vfs_uuid (guestfs_h *g,\n"
34074 "                   const char *device);\n"
34075 "\n"
34076 msgstr ""
34077
34078 #. type: textblock
34079 #: ../src/guestfs-actions.pod:7836
34080 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
34081 msgstr ""
34082
34083 #. type: =head2
34084 #: ../src/guestfs-actions.pod:7843
34085 msgid "guestfs_vg_activate"
34086 msgstr ""
34087
34088 #. type: verbatim
34089 #: ../src/guestfs-actions.pod:7845
34090 #, no-wrap
34091 msgid ""
34092 " int\n"
34093 " guestfs_vg_activate (guestfs_h *g,\n"
34094 "                      int activate,\n"
34095 "                      char *const *volgroups);\n"
34096 "\n"
34097 msgstr ""
34098
34099 #. type: =head2
34100 #: ../src/guestfs-actions.pod:7862
34101 msgid "guestfs_vg_activate_all"
34102 msgstr ""
34103
34104 #. type: verbatim
34105 #: ../src/guestfs-actions.pod:7864
34106 #, no-wrap
34107 msgid ""
34108 " int\n"
34109 " guestfs_vg_activate_all (guestfs_h *g,\n"
34110 "                          int activate);\n"
34111 "\n"
34112 msgstr ""
34113
34114 #. type: =head2
34115 #: ../src/guestfs-actions.pod:7877
34116 msgid "guestfs_vgcreate"
34117 msgstr ""
34118
34119 #. type: verbatim
34120 #: ../src/guestfs-actions.pod:7879
34121 #, no-wrap
34122 msgid ""
34123 " int\n"
34124 " guestfs_vgcreate (guestfs_h *g,\n"
34125 "                   const char *volgroup,\n"
34126 "                   char *const *physvols);\n"
34127 "\n"
34128 msgstr ""
34129
34130 #. type: =head2
34131 #: ../src/guestfs-actions.pod:7891
34132 msgid "guestfs_vglvuuids"
34133 msgstr ""
34134
34135 #. type: verbatim
34136 #: ../src/guestfs-actions.pod:7893
34137 #, no-wrap
34138 msgid ""
34139 " char **\n"
34140 " guestfs_vglvuuids (guestfs_h *g,\n"
34141 "                    const char *vgname);\n"
34142 "\n"
34143 msgstr ""
34144
34145 #. type: textblock
34146 #: ../src/guestfs-actions.pod:7900
34147 msgid ""
34148 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
34149 "associate logical volumes and volume groups."
34150 msgstr ""
34151
34152 #. type: textblock
34153 #: ../src/guestfs-actions.pod:7903
34154 msgid "See also C<guestfs_vgpvuuids>."
34155 msgstr ""
34156
34157 #. type: =head2
34158 #: ../src/guestfs-actions.pod:7911
34159 msgid "guestfs_vgpvuuids"
34160 msgstr ""
34161
34162 #. type: verbatim
34163 #: ../src/guestfs-actions.pod:7913
34164 #, no-wrap
34165 msgid ""
34166 " char **\n"
34167 " guestfs_vgpvuuids (guestfs_h *g,\n"
34168 "                    const char *vgname);\n"
34169 "\n"
34170 msgstr ""
34171
34172 #. type: textblock
34173 #: ../src/guestfs-actions.pod:7920
34174 msgid ""
34175 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
34176 "associate physical volumes and volume groups."
34177 msgstr ""
34178
34179 #. type: textblock
34180 #: ../src/guestfs-actions.pod:7923
34181 msgid "See also C<guestfs_vglvuuids>."
34182 msgstr ""
34183
34184 #. type: =head2
34185 #: ../src/guestfs-actions.pod:7931
34186 msgid "guestfs_vgremove"
34187 msgstr ""
34188
34189 #. type: verbatim
34190 #: ../src/guestfs-actions.pod:7933
34191 #, no-wrap
34192 msgid ""
34193 " int\n"
34194 " guestfs_vgremove (guestfs_h *g,\n"
34195 "                   const char *vgname);\n"
34196 "\n"
34197 msgstr ""
34198
34199 #. type: =head2
34200 #: ../src/guestfs-actions.pod:7946
34201 msgid "guestfs_vgrename"
34202 msgstr ""
34203
34204 #. type: verbatim
34205 #: ../src/guestfs-actions.pod:7948
34206 #, no-wrap
34207 msgid ""
34208 " int\n"
34209 " guestfs_vgrename (guestfs_h *g,\n"
34210 "                   const char *volgroup,\n"
34211 "                   const char *newvolgroup);\n"
34212 "\n"
34213 msgstr ""
34214
34215 #. type: =head2
34216 #: ../src/guestfs-actions.pod:7959
34217 msgid "guestfs_vgs"
34218 msgstr ""
34219
34220 #. type: verbatim
34221 #: ../src/guestfs-actions.pod:7961
34222 #, no-wrap
34223 msgid ""
34224 " char **\n"
34225 " guestfs_vgs (guestfs_h *g);\n"
34226 "\n"
34227 msgstr ""
34228
34229 #. type: textblock
34230 #: ../src/guestfs-actions.pod:7970
34231 msgid "See also C<guestfs_vgs_full>."
34232 msgstr ""
34233
34234 #. type: =head2
34235 #: ../src/guestfs-actions.pod:7978
34236 msgid "guestfs_vgs_full"
34237 msgstr ""
34238
34239 #. type: verbatim
34240 #: ../src/guestfs-actions.pod:7980
34241 #, no-wrap
34242 msgid ""
34243 " struct guestfs_lvm_vg_list *\n"
34244 " guestfs_vgs_full (guestfs_h *g);\n"
34245 "\n"
34246 msgstr ""
34247
34248 #. type: textblock
34249 #: ../src/guestfs-actions.pod:7986
34250 msgid ""
34251 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
34252 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
34253 msgstr ""
34254
34255 #. type: =head2
34256 #: ../src/guestfs-actions.pod:7992
34257 msgid "guestfs_vgscan"
34258 msgstr ""
34259
34260 #. type: verbatim
34261 #: ../src/guestfs-actions.pod:7994
34262 #, no-wrap
34263 msgid ""
34264 " int\n"
34265 " guestfs_vgscan (guestfs_h *g);\n"
34266 "\n"
34267 msgstr ""
34268
34269 #. type: =head2
34270 #: ../src/guestfs-actions.pod:8004
34271 msgid "guestfs_vguuid"
34272 msgstr ""
34273
34274 #. type: verbatim
34275 #: ../src/guestfs-actions.pod:8006
34276 #, no-wrap
34277 msgid ""
34278 " char *\n"
34279 " guestfs_vguuid (guestfs_h *g,\n"
34280 "                 const char *vgname);\n"
34281 "\n"
34282 msgstr ""
34283
34284 #. type: =head2
34285 #: ../src/guestfs-actions.pod:8017
34286 msgid "guestfs_wait_ready"
34287 msgstr ""
34288
34289 #. type: verbatim
34290 #: ../src/guestfs-actions.pod:8019
34291 #, no-wrap
34292 msgid ""
34293 " int\n"
34294 " guestfs_wait_ready (guestfs_h *g);\n"
34295 "\n"
34296 msgstr ""
34297
34298 #. type: textblock
34299 #: ../src/guestfs-actions.pod:8022
34300 msgid ""
34301 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
34302 "instead."
34303 msgstr ""
34304
34305 #. type: textblock
34306 #: ../src/guestfs-actions.pod:8029
34307 msgid "This function is a no op."
34308 msgstr ""
34309
34310 #. type: textblock
34311 #: ../src/guestfs-actions.pod:8031
34312 msgid ""
34313 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
34314 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
34315 "is no longer necessary because C<guestfs_launch> now does the waiting."
34316 msgstr ""
34317
34318 #. type: textblock
34319 #: ../src/guestfs-actions.pod:8036
34320 msgid ""
34321 "If you see any calls to this function in code then you can just remove them, "
34322 "unless you want to retain compatibility with older versions of the API."
34323 msgstr ""
34324
34325 #. type: =head2
34326 #: ../src/guestfs-actions.pod:8044
34327 msgid "guestfs_wc_c"
34328 msgstr ""
34329
34330 #. type: verbatim
34331 #: ../src/guestfs-actions.pod:8046
34332 #, no-wrap
34333 msgid ""
34334 " int\n"
34335 " guestfs_wc_c (guestfs_h *g,\n"
34336 "               const char *path);\n"
34337 "\n"
34338 msgstr ""
34339
34340 #. type: =head2
34341 #: ../src/guestfs-actions.pod:8057
34342 msgid "guestfs_wc_l"
34343 msgstr ""
34344
34345 #. type: verbatim
34346 #: ../src/guestfs-actions.pod:8059
34347 #, no-wrap
34348 msgid ""
34349 " int\n"
34350 " guestfs_wc_l (guestfs_h *g,\n"
34351 "               const char *path);\n"
34352 "\n"
34353 msgstr ""
34354
34355 #. type: =head2
34356 #: ../src/guestfs-actions.pod:8070
34357 msgid "guestfs_wc_w"
34358 msgstr ""
34359
34360 #. type: verbatim
34361 #: ../src/guestfs-actions.pod:8072
34362 #, no-wrap
34363 msgid ""
34364 " int\n"
34365 " guestfs_wc_w (guestfs_h *g,\n"
34366 "               const char *path);\n"
34367 "\n"
34368 msgstr ""
34369
34370 #. type: =head2
34371 #: ../src/guestfs-actions.pod:8083
34372 msgid "guestfs_write"
34373 msgstr ""
34374
34375 #. type: verbatim
34376 #: ../src/guestfs-actions.pod:8085
34377 #, no-wrap
34378 msgid ""
34379 " int\n"
34380 " guestfs_write (guestfs_h *g,\n"
34381 "                const char *path,\n"
34382 "                const char *content,\n"
34383 "                size_t content_size);\n"
34384 "\n"
34385 msgstr ""
34386
34387 #. type: textblock
34388 #: ../src/guestfs-actions.pod:8094
34389 msgid "See also C<guestfs_write_append>."
34390 msgstr ""
34391
34392 #. type: =head2
34393 #: ../src/guestfs-actions.pod:8103
34394 msgid "guestfs_write_append"
34395 msgstr ""
34396
34397 #. type: verbatim
34398 #: ../src/guestfs-actions.pod:8105
34399 #, no-wrap
34400 msgid ""
34401 " int\n"
34402 " guestfs_write_append (guestfs_h *g,\n"
34403 "                       const char *path,\n"
34404 "                       const char *content,\n"
34405 "                       size_t content_size);\n"
34406 "\n"
34407 msgstr ""
34408
34409 #. type: textblock
34410 #: ../src/guestfs-actions.pod:8114
34411 msgid "See also C<guestfs_write>."
34412 msgstr ""
34413
34414 #. type: =head2
34415 #: ../src/guestfs-actions.pod:8123
34416 msgid "guestfs_write_file"
34417 msgstr "guestfs_write_file"
34418
34419 #. type: verbatim
34420 #: ../src/guestfs-actions.pod:8125
34421 #, no-wrap
34422 msgid ""
34423 " int\n"
34424 " guestfs_write_file (guestfs_h *g,\n"
34425 "                     const char *path,\n"
34426 "                     const char *content,\n"
34427 "                     int size);\n"
34428 "\n"
34429 msgstr ""
34430 " int\n"
34431 " guestfs_write_file (guestfs_h *g,\n"
34432 "                     const char *path,\n"
34433 "                     const char *content,\n"
34434 "                     int size);\n"
34435 "\n"
34436
34437 #. type: textblock
34438 #: ../src/guestfs-actions.pod:8131
34439 msgid ""
34440 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
34441 "instead."
34442 msgstr ""
34443
34444 #. type: =head2
34445 #: ../src/guestfs-actions.pod:8156
34446 msgid "guestfs_zegrep"
34447 msgstr "guestfs_zegrep"
34448
34449 #. type: verbatim
34450 #: ../src/guestfs-actions.pod:8158
34451 #, no-wrap
34452 msgid ""
34453 " char **\n"
34454 " guestfs_zegrep (guestfs_h *g,\n"
34455 "                 const char *regex,\n"
34456 "                 const char *path);\n"
34457 "\n"
34458 msgstr ""
34459 " char **\n"
34460 " guestfs_zegrep (guestfs_h *g,\n"
34461 "                 const char *regex,\n"
34462 "                 const char *path);\n"
34463 "\n"
34464
34465 #. type: =head2
34466 #: ../src/guestfs-actions.pod:8175
34467 msgid "guestfs_zegrepi"
34468 msgstr "guestfs_zegrepi"
34469
34470 #. type: verbatim
34471 #: ../src/guestfs-actions.pod:8177
34472 #, no-wrap
34473 msgid ""
34474 " char **\n"
34475 " guestfs_zegrepi (guestfs_h *g,\n"
34476 "                  const char *regex,\n"
34477 "                  const char *path);\n"
34478 "\n"
34479 msgstr ""
34480 " char **\n"
34481 " guestfs_zegrepi (guestfs_h *g,\n"
34482 "                  const char *regex,\n"
34483 "                  const char *path);\n"
34484 "\n"
34485
34486 #. type: =head2
34487 #: ../src/guestfs-actions.pod:8194
34488 msgid "guestfs_zero"
34489 msgstr "guestfs_zero"
34490
34491 #. type: verbatim
34492 #: ../src/guestfs-actions.pod:8196
34493 #, no-wrap
34494 msgid ""
34495 " int\n"
34496 " guestfs_zero (guestfs_h *g,\n"
34497 "               const char *device);\n"
34498 "\n"
34499 msgstr ""
34500 " int\n"
34501 " guestfs_zero (guestfs_h *g,\n"
34502 "               const char *device);\n"
34503 "\n"
34504
34505 #. type: textblock
34506 #: ../src/guestfs-actions.pod:8210
34507 msgid ""
34508 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
34509 "C<guestfs_is_zero_device>"
34510 msgstr ""
34511
34512 #. type: =head2
34513 #: ../src/guestfs-actions.pod:8222
34514 msgid "guestfs_zero_device"
34515 msgstr "guestfs_zero_device"
34516
34517 #. type: verbatim
34518 #: ../src/guestfs-actions.pod:8224
34519 #, no-wrap
34520 msgid ""
34521 " int\n"
34522 " guestfs_zero_device (guestfs_h *g,\n"
34523 "                      const char *device);\n"
34524 "\n"
34525 msgstr ""
34526 " int\n"
34527 " guestfs_zero_device (guestfs_h *g,\n"
34528 "                      const char *device);\n"
34529 "\n"
34530
34531 #. type: textblock
34532 #: ../src/guestfs-actions.pod:8228
34533 msgid ""
34534 "This command writes zeroes over the entire C<device>.  Compare with "
34535 "C<guestfs_zero> which just zeroes the first few blocks of a device."
34536 msgstr ""
34537
34538 #. type: textblock
34539 #: ../src/guestfs-actions.pod:8246
34540 msgid "(Added in 1.3.1)"
34541 msgstr "(Додано у 1.3.1)"
34542
34543 #. type: =head2
34544 #: ../src/guestfs-actions.pod:8248
34545 msgid "guestfs_zerofree"
34546 msgstr "guestfs_zerofree"
34547
34548 #. type: verbatim
34549 #: ../src/guestfs-actions.pod:8250
34550 #, no-wrap
34551 msgid ""
34552 " int\n"
34553 " guestfs_zerofree (guestfs_h *g,\n"
34554 "                   const char *device);\n"
34555 "\n"
34556 msgstr ""
34557 " int\n"
34558 " guestfs_zerofree (guestfs_h *g,\n"
34559 "                   const char *device);\n"
34560 "\n"
34561
34562 #. type: =head2
34563 #: ../src/guestfs-actions.pod:8269
34564 msgid "guestfs_zfgrep"
34565 msgstr "guestfs_zfgrep"
34566
34567 #. type: verbatim
34568 #: ../src/guestfs-actions.pod:8271
34569 #, no-wrap
34570 msgid ""
34571 " char **\n"
34572 " guestfs_zfgrep (guestfs_h *g,\n"
34573 "                 const char *pattern,\n"
34574 "                 const char *path);\n"
34575 "\n"
34576 msgstr ""
34577 " char **\n"
34578 " guestfs_zfgrep (guestfs_h *g,\n"
34579 "                 const char *pattern,\n"
34580 "                 const char *path);\n"
34581 "\n"
34582
34583 #. type: =head2
34584 #: ../src/guestfs-actions.pod:8288
34585 msgid "guestfs_zfgrepi"
34586 msgstr "guestfs_zfgrepi"
34587
34588 #. type: verbatim
34589 #: ../src/guestfs-actions.pod:8290
34590 #, no-wrap
34591 msgid ""
34592 " char **\n"
34593 " guestfs_zfgrepi (guestfs_h *g,\n"
34594 "                  const char *pattern,\n"
34595 "                  const char *path);\n"
34596 "\n"
34597 msgstr ""
34598 " char **\n"
34599 " guestfs_zfgrepi (guestfs_h *g,\n"
34600 "                  const char *pattern,\n"
34601 "                  const char *path);\n"
34602 "\n"
34603
34604 #. type: =head2
34605 #: ../src/guestfs-actions.pod:8307
34606 msgid "guestfs_zfile"
34607 msgstr "guestfs_zfile"
34608
34609 #. type: verbatim
34610 #: ../src/guestfs-actions.pod:8309
34611 #, no-wrap
34612 msgid ""
34613 " char *\n"
34614 " guestfs_zfile (guestfs_h *g,\n"
34615 "                const char *meth,\n"
34616 "                const char *path);\n"
34617 "\n"
34618 msgstr ""
34619 " char *\n"
34620 " guestfs_zfile (guestfs_h *g,\n"
34621 "                const char *meth,\n"
34622 "                const char *path);\n"
34623 "\n"
34624
34625 #. type: textblock
34626 #: ../src/guestfs-actions.pod:8314
34627 msgid ""
34628 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
34629 "instead."
34630 msgstr ""
34631
34632 #. type: textblock
34633 #: ../src/guestfs-actions.pod:8326
34634 msgid ""
34635 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
34636 "files."
34637 msgstr ""
34638
34639 #. type: =head2
34640 #: ../src/guestfs-actions.pod:8334
34641 msgid "guestfs_zgrep"
34642 msgstr "guestfs_zgrep"
34643
34644 #. type: verbatim
34645 #: ../src/guestfs-actions.pod:8336
34646 #, no-wrap
34647 msgid ""
34648 " char **\n"
34649 " guestfs_zgrep (guestfs_h *g,\n"
34650 "                const char *regex,\n"
34651 "                const char *path);\n"
34652 "\n"
34653 msgstr ""
34654 " char **\n"
34655 " guestfs_zgrep (guestfs_h *g,\n"
34656 "                const char *regex,\n"
34657 "                const char *path);\n"
34658 "\n"
34659
34660 #. type: =head2
34661 #: ../src/guestfs-actions.pod:8353
34662 msgid "guestfs_zgrepi"
34663 msgstr "guestfs_zgrepi"
34664
34665 #. type: verbatim
34666 #: ../src/guestfs-actions.pod:8355
34667 #, no-wrap
34668 msgid ""
34669 " char **\n"
34670 " guestfs_zgrepi (guestfs_h *g,\n"
34671 "                 const char *regex,\n"
34672 "                 const char *path);\n"
34673 "\n"
34674 msgstr ""
34675 " char **\n"
34676 " guestfs_zgrepi (guestfs_h *g,\n"
34677 "                 const char *regex,\n"
34678 "                 const char *path);\n"
34679 "\n"
34680
34681 #. type: =item
34682 #: ../src/guestfs-availability.pod:3
34683 msgid "B<augeas>"
34684 msgstr "B<augeas>"
34685
34686 #. type: textblock
34687 #: ../src/guestfs-availability.pod:5
34688 msgid ""
34689 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
34690 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
34691 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
34692 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
34693 "L</guestfs_aug_save> L</guestfs_aug_set>"
34694 msgstr ""
34695
34696 #. type: =item
34697 #: ../src/guestfs-availability.pod:21
34698 msgid "B<btrfs>"
34699 msgstr "B<btrfs>"
34700
34701 #. type: textblock
34702 #: ../src/guestfs-availability.pod:23
34703 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
34704 msgstr ""
34705
34706 #. type: =item
34707 #: ../src/guestfs-availability.pod:26
34708 msgid "B<grub>"
34709 msgstr ""
34710
34711 #. type: textblock
34712 #: ../src/guestfs-availability.pod:28
34713 msgid "The following functions: L</guestfs_grub_install>"
34714 msgstr ""
34715
34716 #. type: =item
34717 #: ../src/guestfs-availability.pod:31
34718 msgid "B<inotify>"
34719 msgstr "B<inotify>"
34720
34721 #. type: textblock
34722 #: ../src/guestfs-availability.pod:33
34723 msgid ""
34724 "The following functions: L</guestfs_inotify_add_watch> L</"
34725 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
34726 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
34727 msgstr ""
34728
34729 #. type: =item
34730 #: ../src/guestfs-availability.pod:41
34731 msgid "B<linuxfsuuid>"
34732 msgstr "B<linuxfsuuid>"
34733
34734 #. type: textblock
34735 #: ../src/guestfs-availability.pod:43
34736 msgid ""
34737 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
34738 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
34739 msgstr ""
34740
34741 #. type: =item
34742 #: ../src/guestfs-availability.pod:50
34743 msgid "B<linuxmodules>"
34744 msgstr "B<linuxmodules>"
34745
34746 #. type: textblock
34747 #: ../src/guestfs-availability.pod:52
34748 msgid "The following functions: L</guestfs_modprobe>"
34749 msgstr ""
34750
34751 #. type: =item
34752 #: ../src/guestfs-availability.pod:55
34753 msgid "B<linuxxattrs>"
34754 msgstr "B<linuxxattrs>"
34755
34756 #. type: textblock
34757 #: ../src/guestfs-availability.pod:57
34758 msgid ""
34759 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
34760 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
34761 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
34762 "guestfs_setxattr>"
34763 msgstr ""
34764
34765 #. type: =item
34766 #: ../src/guestfs-availability.pod:68
34767 msgid "B<luks>"
34768 msgstr "B<luks>"
34769
34770 #. type: textblock
34771 #: ../src/guestfs-availability.pod:70
34772 msgid ""
34773 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
34774 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
34775 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
34776 msgstr ""
34777
34778 #. type: =item
34779 #: ../src/guestfs-availability.pod:79
34780 msgid "B<lvm2>"
34781 msgstr "B<lvm2>"
34782
34783 #. type: textblock
34784 #: ../src/guestfs-availability.pod:81
34785 msgid ""
34786 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34787 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34788 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34789 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34790 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34791 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34792 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34793 msgstr ""
34794
34795 #. type: =item
34796 #: ../src/guestfs-availability.pod:104
34797 msgid "B<mknod>"
34798 msgstr "B<mknod>"
34799
34800 #. type: textblock
34801 #: ../src/guestfs-availability.pod:106
34802 msgid ""
34803 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34804 "guestfs_mknod_b> L</guestfs_mknod_c>"
34805 msgstr ""
34806
34807 #. type: =item
34808 #: ../src/guestfs-availability.pod:112
34809 msgid "B<ntfs3g>"
34810 msgstr "B<ntfs3g>"
34811
34812 #. type: textblock
34813 #: ../src/guestfs-availability.pod:114
34814 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34815 msgstr ""
34816
34817 #. type: =item
34818 #: ../src/guestfs-availability.pod:117
34819 msgid "B<ntfsprogs>"
34820 msgstr "B<ntfsprogs>"
34821
34822 #. type: textblock
34823 #: ../src/guestfs-availability.pod:119
34824 msgid ""
34825 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34826 "L</guestfs_ntfsresize_size>"
34827 msgstr ""
34828
34829 #. type: =item
34830 #: ../src/guestfs-availability.pod:124
34831 msgid "B<realpath>"
34832 msgstr "B<realpath>"
34833
34834 #. type: textblock
34835 #: ../src/guestfs-availability.pod:126
34836 msgid "The following functions: L</guestfs_realpath>"
34837 msgstr ""
34838
34839 #. type: =item
34840 #: ../src/guestfs-availability.pod:129
34841 msgid "B<scrub>"
34842 msgstr "B<scrub>"
34843
34844 #. type: textblock
34845 #: ../src/guestfs-availability.pod:131
34846 msgid ""
34847 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34848 "guestfs_scrub_freespace>"
34849 msgstr ""
34850
34851 #. type: =item
34852 #: ../src/guestfs-availability.pod:136
34853 msgid "B<selinux>"
34854 msgstr "B<selinux>"
34855
34856 #. type: textblock
34857 #: ../src/guestfs-availability.pod:138
34858 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34859 msgstr ""
34860
34861 #. type: =item
34862 #: ../src/guestfs-availability.pod:142
34863 msgid "B<xz>"
34864 msgstr "B<xz>"
34865
34866 #. type: textblock
34867 #: ../src/guestfs-availability.pod:144
34868 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34869 msgstr ""
34870
34871 #. type: =item
34872 #: ../src/guestfs-availability.pod:148
34873 msgid "B<zerofree>"
34874 msgstr "B<zerofree>"
34875
34876 #. type: textblock
34877 #: ../src/guestfs-availability.pod:150
34878 msgid "The following functions: L</guestfs_zerofree>"
34879 msgstr ""
34880
34881 #. type: =head2
34882 #: ../src/guestfs-structs.pod:1
34883 msgid "guestfs_int_bool"
34884 msgstr ""
34885
34886 #. type: verbatim
34887 #: ../src/guestfs-structs.pod:3
34888 #, no-wrap
34889 msgid ""
34890 " struct guestfs_int_bool {\n"
34891 "   int32_t i;\n"
34892 "   int32_t b;\n"
34893 " };\n"
34894 " \n"
34895 msgstr ""
34896
34897 #. type: verbatim
34898 #: ../src/guestfs-structs.pod:8
34899 #, no-wrap
34900 msgid ""
34901 " struct guestfs_int_bool_list {\n"
34902 "   uint32_t len; /* Number of elements in list. */\n"
34903 "   struct guestfs_int_bool *val; /* Elements. */\n"
34904 " };\n"
34905 " \n"
34906 msgstr ""
34907
34908 #. type: verbatim
34909 #: ../src/guestfs-structs.pod:13
34910 #, no-wrap
34911 msgid ""
34912 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34913 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34914 "\n"
34915 msgstr ""
34916
34917 #. type: =head2
34918 #: ../src/guestfs-structs.pod:16
34919 msgid "guestfs_lvm_pv"
34920 msgstr ""
34921
34922 #. type: verbatim
34923 #: ../src/guestfs-structs.pod:18
34924 #, no-wrap
34925 msgid ""
34926 " struct guestfs_lvm_pv {\n"
34927 "   char *pv_name;\n"
34928 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34929 "   char pv_uuid[32];\n"
34930 "   char *pv_fmt;\n"
34931 "   uint64_t pv_size;\n"
34932 "   uint64_t dev_size;\n"
34933 "   uint64_t pv_free;\n"
34934 "   uint64_t pv_used;\n"
34935 "   char *pv_attr;\n"
34936 "   int64_t pv_pe_count;\n"
34937 "   int64_t pv_pe_alloc_count;\n"
34938 "   char *pv_tags;\n"
34939 "   uint64_t pe_start;\n"
34940 "   int64_t pv_mda_count;\n"
34941 "   uint64_t pv_mda_free;\n"
34942 " };\n"
34943 " \n"
34944 msgstr ""
34945
34946 #. type: verbatim
34947 #: ../src/guestfs-structs.pod:36
34948 #, no-wrap
34949 msgid ""
34950 " struct guestfs_lvm_pv_list {\n"
34951 "   uint32_t len; /* Number of elements in list. */\n"
34952 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
34953 " };\n"
34954 " \n"
34955 msgstr ""
34956
34957 #. type: verbatim
34958 #: ../src/guestfs-structs.pod:41
34959 #, no-wrap
34960 msgid ""
34961 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34962 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34963 "\n"
34964 msgstr ""
34965
34966 #. type: =head2
34967 #: ../src/guestfs-structs.pod:44
34968 msgid "guestfs_lvm_vg"
34969 msgstr ""
34970
34971 #. type: verbatim
34972 #: ../src/guestfs-structs.pod:46
34973 #, no-wrap
34974 msgid ""
34975 " struct guestfs_lvm_vg {\n"
34976 "   char *vg_name;\n"
34977 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34978 "   char vg_uuid[32];\n"
34979 "   char *vg_fmt;\n"
34980 "   char *vg_attr;\n"
34981 "   uint64_t vg_size;\n"
34982 "   uint64_t vg_free;\n"
34983 "   char *vg_sysid;\n"
34984 "   uint64_t vg_extent_size;\n"
34985 "   int64_t vg_extent_count;\n"
34986 "   int64_t vg_free_count;\n"
34987 "   int64_t max_lv;\n"
34988 "   int64_t max_pv;\n"
34989 "   int64_t pv_count;\n"
34990 "   int64_t lv_count;\n"
34991 "   int64_t snap_count;\n"
34992 "   int64_t vg_seqno;\n"
34993 "   char *vg_tags;\n"
34994 "   int64_t vg_mda_count;\n"
34995 "   uint64_t vg_mda_free;\n"
34996 " };\n"
34997 " \n"
34998 msgstr ""
34999
35000 #. type: verbatim
35001 #: ../src/guestfs-structs.pod:69
35002 #, no-wrap
35003 msgid ""
35004 " struct guestfs_lvm_vg_list {\n"
35005 "   uint32_t len; /* Number of elements in list. */\n"
35006 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
35007 " };\n"
35008 " \n"
35009 msgstr ""
35010
35011 #. type: verbatim
35012 #: ../src/guestfs-structs.pod:74
35013 #, no-wrap
35014 msgid ""
35015 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
35016 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
35017 "\n"
35018 msgstr ""
35019
35020 #. type: =head2
35021 #: ../src/guestfs-structs.pod:77
35022 msgid "guestfs_lvm_lv"
35023 msgstr ""
35024
35025 #. type: verbatim
35026 #: ../src/guestfs-structs.pod:79
35027 #, no-wrap
35028 msgid ""
35029 " struct guestfs_lvm_lv {\n"
35030 "   char *lv_name;\n"
35031 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
35032 "   char lv_uuid[32];\n"
35033 "   char *lv_attr;\n"
35034 "   int64_t lv_major;\n"
35035 "   int64_t lv_minor;\n"
35036 "   int64_t lv_kernel_major;\n"
35037 "   int64_t lv_kernel_minor;\n"
35038 "   uint64_t lv_size;\n"
35039 "   int64_t seg_count;\n"
35040 "   char *origin;\n"
35041 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35042 "   float snap_percent;\n"
35043 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
35044 "   float copy_percent;\n"
35045 "   char *move_pv;\n"
35046 "   char *lv_tags;\n"
35047 "   char *mirror_log;\n"
35048 "   char *modules;\n"
35049 " };\n"
35050 " \n"
35051 msgstr ""
35052
35053 #. type: verbatim
35054 #: ../src/guestfs-structs.pod:101
35055 #, no-wrap
35056 msgid ""
35057 " struct guestfs_lvm_lv_list {\n"
35058 "   uint32_t len; /* Number of elements in list. */\n"
35059 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
35060 " };\n"
35061 " \n"
35062 msgstr ""
35063
35064 #. type: verbatim
35065 #: ../src/guestfs-structs.pod:106
35066 #, no-wrap
35067 msgid ""
35068 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
35069 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
35070 "\n"
35071 msgstr ""
35072
35073 #. type: verbatim
35074 #: ../src/guestfs-structs.pod:111
35075 #, no-wrap
35076 msgid ""
35077 " struct guestfs_stat {\n"
35078 "   int64_t dev;\n"
35079 "   int64_t ino;\n"
35080 "   int64_t mode;\n"
35081 "   int64_t nlink;\n"
35082 "   int64_t uid;\n"
35083 "   int64_t gid;\n"
35084 "   int64_t rdev;\n"
35085 "   int64_t size;\n"
35086 "   int64_t blksize;\n"
35087 "   int64_t blocks;\n"
35088 "   int64_t atime;\n"
35089 "   int64_t mtime;\n"
35090 "   int64_t ctime;\n"
35091 " };\n"
35092 " \n"
35093 msgstr ""
35094
35095 #. type: verbatim
35096 #: ../src/guestfs-structs.pod:127
35097 #, no-wrap
35098 msgid ""
35099 " struct guestfs_stat_list {\n"
35100 "   uint32_t len; /* Number of elements in list. */\n"
35101 "   struct guestfs_stat *val; /* Elements. */\n"
35102 " };\n"
35103 " \n"
35104 msgstr ""
35105
35106 #. type: verbatim
35107 #: ../src/guestfs-structs.pod:132
35108 #, no-wrap
35109 msgid ""
35110 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
35111 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
35112 "\n"
35113 msgstr ""
35114
35115 #. type: verbatim
35116 #: ../src/guestfs-structs.pod:137
35117 #, no-wrap
35118 msgid ""
35119 " struct guestfs_statvfs {\n"
35120 "   int64_t bsize;\n"
35121 "   int64_t frsize;\n"
35122 "   int64_t blocks;\n"
35123 "   int64_t bfree;\n"
35124 "   int64_t bavail;\n"
35125 "   int64_t files;\n"
35126 "   int64_t ffree;\n"
35127 "   int64_t favail;\n"
35128 "   int64_t fsid;\n"
35129 "   int64_t flag;\n"
35130 "   int64_t namemax;\n"
35131 " };\n"
35132 " \n"
35133 msgstr ""
35134
35135 #. type: verbatim
35136 #: ../src/guestfs-structs.pod:151
35137 #, no-wrap
35138 msgid ""
35139 " struct guestfs_statvfs_list {\n"
35140 "   uint32_t len; /* Number of elements in list. */\n"
35141 "   struct guestfs_statvfs *val; /* Elements. */\n"
35142 " };\n"
35143 " \n"
35144 msgstr ""
35145
35146 #. type: verbatim
35147 #: ../src/guestfs-structs.pod:156
35148 #, no-wrap
35149 msgid ""
35150 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
35151 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
35152 "\n"
35153 msgstr ""
35154
35155 #. type: =head2
35156 #: ../src/guestfs-structs.pod:159
35157 msgid "guestfs_dirent"
35158 msgstr ""
35159
35160 #. type: verbatim
35161 #: ../src/guestfs-structs.pod:161
35162 #, no-wrap
35163 msgid ""
35164 " struct guestfs_dirent {\n"
35165 "   int64_t ino;\n"
35166 "   char ftyp;\n"
35167 "   char *name;\n"
35168 " };\n"
35169 " \n"
35170 msgstr ""
35171
35172 #. type: verbatim
35173 #: ../src/guestfs-structs.pod:167
35174 #, no-wrap
35175 msgid ""
35176 " struct guestfs_dirent_list {\n"
35177 "   uint32_t len; /* Number of elements in list. */\n"
35178 "   struct guestfs_dirent *val; /* Elements. */\n"
35179 " };\n"
35180 " \n"
35181 msgstr ""
35182
35183 #. type: verbatim
35184 #: ../src/guestfs-structs.pod:172
35185 #, no-wrap
35186 msgid ""
35187 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
35188 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
35189 "\n"
35190 msgstr ""
35191
35192 #. type: verbatim
35193 #: ../src/guestfs-structs.pod:177
35194 #, no-wrap
35195 msgid ""
35196 " struct guestfs_version {\n"
35197 "   int64_t major;\n"
35198 "   int64_t minor;\n"
35199 "   int64_t release;\n"
35200 "   char *extra;\n"
35201 " };\n"
35202 " \n"
35203 msgstr ""
35204
35205 #. type: verbatim
35206 #: ../src/guestfs-structs.pod:184
35207 #, no-wrap
35208 msgid ""
35209 " struct guestfs_version_list {\n"
35210 "   uint32_t len; /* Number of elements in list. */\n"
35211 "   struct guestfs_version *val; /* Elements. */\n"
35212 " };\n"
35213 " \n"
35214 msgstr ""
35215
35216 #. type: verbatim
35217 #: ../src/guestfs-structs.pod:189
35218 #, no-wrap
35219 msgid ""
35220 " void guestfs_free_version (struct guestfs_free_version *);\n"
35221 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
35222 "\n"
35223 msgstr ""
35224
35225 #. type: =head2
35226 #: ../src/guestfs-structs.pod:192
35227 msgid "guestfs_xattr"
35228 msgstr ""
35229
35230 #. type: verbatim
35231 #: ../src/guestfs-structs.pod:194
35232 #, no-wrap
35233 msgid ""
35234 " struct guestfs_xattr {\n"
35235 "   char *attrname;\n"
35236 "   /* The next two fields describe a byte array. */\n"
35237 "   uint32_t attrval_len;\n"
35238 "   char *attrval;\n"
35239 " };\n"
35240 " \n"
35241 msgstr ""
35242
35243 #. type: verbatim
35244 #: ../src/guestfs-structs.pod:201
35245 #, no-wrap
35246 msgid ""
35247 " struct guestfs_xattr_list {\n"
35248 "   uint32_t len; /* Number of elements in list. */\n"
35249 "   struct guestfs_xattr *val; /* Elements. */\n"
35250 " };\n"
35251 " \n"
35252 msgstr ""
35253
35254 #. type: verbatim
35255 #: ../src/guestfs-structs.pod:206
35256 #, no-wrap
35257 msgid ""
35258 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
35259 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
35260 "\n"
35261 msgstr ""
35262
35263 #. type: =head2
35264 #: ../src/guestfs-structs.pod:209
35265 msgid "guestfs_inotify_event"
35266 msgstr ""
35267
35268 #. type: verbatim
35269 #: ../src/guestfs-structs.pod:211
35270 #, no-wrap
35271 msgid ""
35272 " struct guestfs_inotify_event {\n"
35273 "   int64_t in_wd;\n"
35274 "   uint32_t in_mask;\n"
35275 "   uint32_t in_cookie;\n"
35276 "   char *in_name;\n"
35277 " };\n"
35278 " \n"
35279 msgstr ""
35280
35281 #. type: verbatim
35282 #: ../src/guestfs-structs.pod:218
35283 #, no-wrap
35284 msgid ""
35285 " struct guestfs_inotify_event_list {\n"
35286 "   uint32_t len; /* Number of elements in list. */\n"
35287 "   struct guestfs_inotify_event *val; /* Elements. */\n"
35288 " };\n"
35289 " \n"
35290 msgstr ""
35291
35292 #. type: verbatim
35293 #: ../src/guestfs-structs.pod:223
35294 #, no-wrap
35295 msgid ""
35296 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
35297 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
35298 "\n"
35299 msgstr ""
35300
35301 #. type: =head2
35302 #: ../src/guestfs-structs.pod:226
35303 msgid "guestfs_partition"
35304 msgstr ""
35305
35306 #. type: verbatim
35307 #: ../src/guestfs-structs.pod:228
35308 #, no-wrap
35309 msgid ""
35310 " struct guestfs_partition {\n"
35311 "   int32_t part_num;\n"
35312 "   uint64_t part_start;\n"
35313 "   uint64_t part_end;\n"
35314 "   uint64_t part_size;\n"
35315 " };\n"
35316 " \n"
35317 msgstr ""
35318
35319 #. type: verbatim
35320 #: ../src/guestfs-structs.pod:235
35321 #, no-wrap
35322 msgid ""
35323 " struct guestfs_partition_list {\n"
35324 "   uint32_t len; /* Number of elements in list. */\n"
35325 "   struct guestfs_partition *val; /* Elements. */\n"
35326 " };\n"
35327 " \n"
35328 msgstr ""
35329
35330 #. type: verbatim
35331 #: ../src/guestfs-structs.pod:240
35332 #, no-wrap
35333 msgid ""
35334 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
35335 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
35336 "\n"
35337 msgstr ""
35338
35339 #. type: =head2
35340 #: ../src/guestfs-structs.pod:243
35341 msgid "guestfs_application"
35342 msgstr ""
35343
35344 #. type: verbatim
35345 #: ../src/guestfs-structs.pod:245
35346 #, no-wrap
35347 msgid ""
35348 " struct guestfs_application {\n"
35349 "   char *app_name;\n"
35350 "   char *app_display_name;\n"
35351 "   int32_t app_epoch;\n"
35352 "   char *app_version;\n"
35353 "   char *app_release;\n"
35354 "   char *app_install_path;\n"
35355 "   char *app_trans_path;\n"
35356 "   char *app_publisher;\n"
35357 "   char *app_url;\n"
35358 "   char *app_source_package;\n"
35359 "   char *app_summary;\n"
35360 "   char *app_description;\n"
35361 " };\n"
35362 " \n"
35363 msgstr ""
35364
35365 #. type: verbatim
35366 #: ../src/guestfs-structs.pod:260
35367 #, no-wrap
35368 msgid ""
35369 " struct guestfs_application_list {\n"
35370 "   uint32_t len; /* Number of elements in list. */\n"
35371 "   struct guestfs_application *val; /* Elements. */\n"
35372 " };\n"
35373 " \n"
35374 msgstr ""
35375
35376 #. type: verbatim
35377 #: ../src/guestfs-structs.pod:265
35378 #, no-wrap
35379 msgid ""
35380 " void guestfs_free_application (struct guestfs_free_application *);\n"
35381 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
35382 "\n"
35383 msgstr ""
35384
35385 #. type: textblock
35386 #: ../src/guestfs.pod:5
35387 msgid "guestfs - Library for accessing and modifying virtual machine images"
35388 msgstr ""
35389 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
35390 "машин"
35391
35392 #. type: verbatim
35393 #: ../src/guestfs.pod:11
35394 #, no-wrap
35395 msgid ""
35396 " guestfs_h *g = guestfs_create ();\n"
35397 " guestfs_add_drive (g, \"guest.img\");\n"
35398 " guestfs_launch (g);\n"
35399 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35400 " guestfs_touch (g, \"/hello\");\n"
35401 " guestfs_umount (g, \"/\");\n"
35402 " guestfs_close (g);\n"
35403 "\n"
35404 msgstr ""
35405 " guestfs_h *g = guestfs_create ();\n"
35406 " guestfs_add_drive (g, \"guest.img\");\n"
35407 " guestfs_launch (g);\n"
35408 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35409 " guestfs_touch (g, \"/hello\");\n"
35410 " guestfs_umount (g, \"/\");\n"
35411 " guestfs_close (g);\n"
35412 "\n"
35413
35414 #. type: textblock
35415 #: ../src/guestfs.pod:25
35416 msgid ""
35417 "Libguestfs is a library for accessing and modifying guest disk images.  "
35418 "Amongst the things this is good for: making batch configuration changes to "
35419 "guests, getting disk used/free statistics (see also: virt-df), migrating "
35420 "between virtualization systems (see also: virt-p2v), performing partial "
35421 "backups, performing partial guest clones, cloning guests and changing "
35422 "registry/UUID/hostname info, and much else besides."
35423 msgstr ""
35424
35425 #. type: textblock
35426 #: ../src/guestfs.pod:33
35427 msgid ""
35428 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
35429 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
35430 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
35431 "qcow2, vmdk."
35432 msgstr ""
35433
35434 #. type: textblock
35435 #: ../src/guestfs.pod:38
35436 msgid ""
35437 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
35438 "what filesystem is in each LV, etc.).  It can also run commands in the "
35439 "context of the guest.  Also you can access filesystems over FUSE."
35440 msgstr ""
35441
35442 #. type: textblock
35443 #: ../src/guestfs.pod:43
35444 msgid ""
35445 "Libguestfs is a library that can be linked with C and C++ management "
35446 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
35447 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
35448 "command line."
35449 msgstr ""
35450
35451 #. type: textblock
35452 #: ../src/guestfs.pod:48
35453 msgid ""
35454 "You don't need to be root to use libguestfs, although obviously you do need "
35455 "enough permissions to access the disk images."
35456 msgstr ""
35457
35458 #. type: textblock
35459 #: ../src/guestfs.pod:51
35460 msgid ""
35461 "Libguestfs is a large API because it can do many things.  For a gentle "
35462 "introduction, please read the L</API OVERVIEW> section next."
35463 msgstr ""
35464
35465 #. type: textblock
35466 #: ../src/guestfs.pod:54
35467 msgid ""
35468 "There are also some example programs in the L<guestfs-examples(3)> manual "
35469 "page."
35470 msgstr ""
35471
35472 #. type: =head1
35473 #: ../src/guestfs.pod:57
35474 msgid "API OVERVIEW"
35475 msgstr "ОГЛЯД API"
35476
35477 #. type: textblock
35478 #: ../src/guestfs.pod:59
35479 msgid ""
35480 "This section provides a gentler overview of the libguestfs API.  We also try "
35481 "to group API calls together, where that may not be obvious from reading "
35482 "about the individual calls in the main section of this manual."
35483 msgstr ""
35484
35485 #. type: =head2
35486 #: ../src/guestfs.pod:64
35487 msgid "HANDLES"
35488 msgstr "ОБРОБНИКИ"
35489
35490 #. type: textblock
35491 #: ../src/guestfs.pod:66
35492 msgid ""
35493 "Before you can use libguestfs calls, you have to create a handle.  Then you "
35494 "must add at least one disk image to the handle, followed by launching the "
35495 "handle, then performing whatever operations you want, and finally closing "
35496 "the handle.  By convention we use the single letter C<g> for the name of the "
35497 "handle variable, although of course you can use any name you want."
35498 msgstr ""
35499
35500 #. type: textblock
35501 #: ../src/guestfs.pod:73
35502 msgid "The general structure of all libguestfs-using programs looks like this:"
35503 msgstr ""
35504
35505 #. type: verbatim
35506 #: ../src/guestfs.pod:76
35507 #, no-wrap
35508 msgid ""
35509 " guestfs_h *g = guestfs_create ();\n"
35510 " \n"
35511 msgstr ""
35512 " guestfs_h *g = guestfs_create ();\n"
35513 " \n"
35514
35515 #. type: verbatim
35516 #: ../src/guestfs.pod:78
35517 #, no-wrap
35518 msgid ""
35519 " /* Call guestfs_add_drive additional times if there are\n"
35520 "  * multiple disk images.\n"
35521 "  */\n"
35522 " guestfs_add_drive (g, \"guest.img\");\n"
35523 " \n"
35524 msgstr ""
35525
35526 #. type: verbatim
35527 #: ../src/guestfs.pod:83
35528 #, no-wrap
35529 msgid ""
35530 " /* Most manipulation calls won't work until you've launched\n"
35531 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
35532 "  * and _before_ other commands.\n"
35533 "  */\n"
35534 " guestfs_launch (g);\n"
35535 " \n"
35536 msgstr ""
35537
35538 #. type: verbatim
35539 #: ../src/guestfs.pod:89
35540 #, no-wrap
35541 msgid ""
35542 " /* Now you can examine what partitions, LVs etc are available.\n"
35543 "  */\n"
35544 " char **partitions = guestfs_list_partitions (g);\n"
35545 " char **logvols = guestfs_lvs (g);\n"
35546 " \n"
35547 msgstr ""
35548 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
35549 "  */\n"
35550 " char **partitions = guestfs_list_partitions (g);\n"
35551 " char **logvols = guestfs_lvs (g);\n"
35552 " \n"
35553
35554 #. type: verbatim
35555 #: ../src/guestfs.pod:94
35556 #, no-wrap
35557 msgid ""
35558 " /* To access a filesystem in the image, you must mount it.\n"
35559 "  */\n"
35560 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35561 " \n"
35562 msgstr ""
35563 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
35564 "  */\n"
35565 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
35566 " \n"
35567
35568 #. type: verbatim
35569 #: ../src/guestfs.pod:98
35570 #, no-wrap
35571 msgid ""
35572 " /* Now you can perform filesystem actions on the guest\n"
35573 "  * disk image.\n"
35574 "  */\n"
35575 " guestfs_touch (g, \"/hello\");\n"
35576 " \n"
35577 msgstr ""
35578 " /* Тепер ви можете виконувати дії з файловою системою на\n"
35579 "  * образі диска операційної системи.\n"
35580 "  */\n"
35581 " guestfs_touch (g, \"/hello\");\n"
35582 " \n"
35583
35584 #. type: verbatim
35585 #: ../src/guestfs.pod:103
35586 #, no-wrap
35587 msgid ""
35588 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
35589 "  * it is done automatically when you close the handle.  See\n"
35590 "  * discussion of autosync in this page.\n"
35591 "  */\n"
35592 " guestfs_sync (g);\n"
35593 " \n"
35594 msgstr ""
35595
35596 #. type: verbatim
35597 #: ../src/guestfs.pod:109
35598 #, no-wrap
35599 msgid ""
35600 " /* Close the handle 'g'. */\n"
35601 " guestfs_close (g);\n"
35602 "\n"
35603 msgstr ""
35604 " /* Закрити дескриптор 'g'. */\n"
35605 " guestfs_close (g);\n"
35606 "\n"
35607
35608 #. type: textblock
35609 #: ../src/guestfs.pod:112
35610 msgid ""
35611 "The code above doesn't include any error checking.  In real code you should "
35612 "check return values carefully for errors.  In general all functions that "
35613 "return integers return C<-1> on error, and all functions that return "
35614 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
35615 "how to handle errors, and consult the documentation for each function call "
35616 "below to see precisely how they return error indications.  See L<guestfs-"
35617 "examples(3)> for fully worked examples."
35618 msgstr ""
35619
35620 #. type: =head2
35621 #: ../src/guestfs.pod:121
35622 msgid "DISK IMAGES"
35623 msgstr "ОБРАЗИ ДИСКІВ"
35624
35625 #. type: textblock
35626 #: ../src/guestfs.pod:123
35627 msgid ""
35628 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
35629 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
35630 "actual block device, or simply an empty file of zeroes that you have created "
35631 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
35632 "of these."
35633 msgstr ""
35634
35635 #. type: textblock
35636 #: ../src/guestfs.pod:129
35637 msgid ""
35638 "The call you should use in modern code for adding drives is L</"
35639 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
35640 "specifying that the format is raw, do:"
35641 msgstr ""
35642
35643 #. type: verbatim
35644 #: ../src/guestfs.pod:133
35645 #, no-wrap
35646 msgid ""
35647 " guestfs_add_drive_opts (g, filename,\n"
35648 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35649 "                         -1);\n"
35650 "\n"
35651 msgstr ""
35652 " guestfs_add_drive_opts (g, filename,\n"
35653 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35654 "                         -1);\n"
35655 "\n"
35656
35657 #. type: textblock
35658 #: ../src/guestfs.pod:137
35659 msgid "You can add a disk read-only using:"
35660 msgstr "Ви можете додати диск у режимі лише читання:"
35661
35662 #. type: verbatim
35663 #: ../src/guestfs.pod:139
35664 #, no-wrap
35665 msgid ""
35666 " guestfs_add_drive_opts (g, filename,\n"
35667 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35668 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35669 "                         -1);\n"
35670 "\n"
35671 msgstr ""
35672 " guestfs_add_drive_opts (g, filename,\n"
35673 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
35674 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35675 "                         -1);\n"
35676 "\n"
35677
35678 #. type: textblock
35679 #: ../src/guestfs.pod:144
35680 msgid ""
35681 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
35682 "libguestfs won't modify the file."
35683 msgstr ""
35684
35685 #. type: textblock
35686 #: ../src/guestfs.pod:147
35687 msgid ""
35688 "Be extremely cautious if the disk image is in use, eg. if it is being used "
35689 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
35690 "corruption, but adding it read-only is safe."
35691 msgstr ""
35692
35693 #. type: textblock
35694 #: ../src/guestfs.pod:151
35695 msgid ""
35696 "You must add at least one disk image, and you may add multiple disk images.  "
35697 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
35698 "first one you added), C</dev/sdb> (for the second one you added), etc."
35699 msgstr ""
35700
35701 #. type: textblock
35702 #: ../src/guestfs.pod:156
35703 msgid ""
35704 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
35705 "can call L</guestfs_list_devices> to get a list of the device names, in the "
35706 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
35707 msgstr ""
35708
35709 #. type: =head2
35710 #: ../src/guestfs.pod:161
35711 msgid "MOUNTING"
35712 msgstr "МОНТУВАННЯ"
35713
35714 #. type: textblock
35715 #: ../src/guestfs.pod:163
35716 msgid ""
35717 "Before you can read or write files, create directories and so on in a disk "
35718 "image that contains filesystems, you have to mount those filesystems using "
35719 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
35720 "a disk image contains (for example) one partition with a filesystem on that "
35721 "partition, then you can mount it directly:"
35722 msgstr ""
35723
35724 #. type: verbatim
35725 #: ../src/guestfs.pod:170
35726 #, no-wrap
35727 msgid ""
35728 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35729 "\n"
35730 msgstr ""
35731 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
35732 "\n"
35733
35734 #. type: textblock
35735 #: ../src/guestfs.pod:172
35736 msgid ""
35737 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
35738 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
35739 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
35740 "that these are libguestfs virtual devices, and are nothing to do with host "
35741 "devices."
35742 msgstr ""
35743
35744 #. type: textblock
35745 #: ../src/guestfs.pod:178
35746 msgid ""
35747 "If you are given a disk image and you don't know what it contains then you "
35748 "have to find out.  Libguestfs can do that too: use L</"
35749 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
35750 "LVs, and either try mounting each to see what is mountable, or else examine "
35751 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
35752 "filesystems, use L</guestfs_list_filesystems>."
35753 msgstr ""
35754
35755 #. type: textblock
35756 #: ../src/guestfs.pod:186
35757 msgid ""
35758 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
35759 "L</INSPECTION> below).  But you might find it easier to look at higher level "
35760 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
35761 msgstr ""
35762
35763 #. type: textblock
35764 #: ../src/guestfs.pod:191
35765 msgid ""
35766 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
35767 "several other variations of the C<guestfs_mount_*> call."
35768 msgstr ""
35769
35770 #. type: =head2
35771 #: ../src/guestfs.pod:194
35772 msgid "FILESYSTEM ACCESS AND MODIFICATION"
35773 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
35774
35775 #. type: textblock
35776 #: ../src/guestfs.pod:196
35777 msgid ""
35778 "The majority of the libguestfs API consists of fairly low-level calls for "
35779 "accessing and modifying the files, directories, symlinks etc on mounted "
35780 "filesystems.  There are over a hundred such calls which you can find listed "
35781 "in detail below in this man page, and we don't even pretend to cover them "
35782 "all in this overview."
35783 msgstr ""
35784
35785 #. type: textblock
35786 #: ../src/guestfs.pod:202
35787 msgid ""
35788 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35789 "mount point."
35790 msgstr ""
35791 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
35792 "точкою монтування."
35793
35794 #. type: textblock
35795 #: ../src/guestfs.pod:205
35796 msgid ""
35797 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35798 "the file called C<\"etc/passwd\"> then you could do:"
35799 msgstr ""
35800 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
35801 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
35802 "таким кодом:"
35803
35804 #. type: verbatim
35805 #: ../src/guestfs.pod:208
35806 #, no-wrap
35807 msgid ""
35808 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35809 "\n"
35810 msgstr ""
35811 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35812 "\n"
35813
35814 #. type: textblock
35815 #: ../src/guestfs.pod:210
35816 msgid ""
35817 "This would return C<data> as a newly allocated buffer containing the full "
35818 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35819 "or C<NULL> if there was an error."
35820 msgstr ""
35821
35822 #. type: textblock
35823 #: ../src/guestfs.pod:214
35824 msgid ""
35825 "As another example, to create a top-level directory on that filesystem "
35826 "called C<\"var\"> you would do:"
35827 msgstr ""
35828
35829 #. type: verbatim
35830 #: ../src/guestfs.pod:217
35831 #, no-wrap
35832 msgid ""
35833 " guestfs_mkdir (g, \"/var\");\n"
35834 "\n"
35835 msgstr ""
35836 " guestfs_mkdir (g, \"/var\");\n"
35837 "\n"
35838
35839 #. type: textblock
35840 #: ../src/guestfs.pod:219
35841 msgid "To create a symlink you could do:"
35842 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
35843
35844 #. type: verbatim
35845 #: ../src/guestfs.pod:221
35846 #, no-wrap
35847 msgid ""
35848 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35849 "               \"/etc/rc3.d/S30portmap\");\n"
35850 "\n"
35851 msgstr ""
35852 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35853 "               \"/etc/rc3.d/S30portmap\");\n"
35854 "\n"
35855
35856 #. type: textblock
35857 #: ../src/guestfs.pod:224
35858 msgid ""
35859 "Libguestfs will reject attempts to use relative paths and there is no "
35860 "concept of a current working directory."
35861 msgstr ""
35862
35863 #. type: textblock
35864 #: ../src/guestfs.pod:227
35865 msgid ""
35866 "Libguestfs can return errors in many situations: for example if the "
35867 "filesystem isn't writable, or if a file or directory that you requested "
35868 "doesn't exist.  If you are using the C API (documented here)  you have to "
35869 "check for those error conditions after each call.  (Other language bindings "
35870 "turn these errors into exceptions)."
35871 msgstr ""
35872
35873 #. type: textblock
35874 #: ../src/guestfs.pod:233
35875 msgid ""
35876 "File writes are affected by the per-handle umask, set by calling L</"
35877 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
35878 msgstr ""
35879
35880 #. type: =head2
35881 #: ../src/guestfs.pod:236
35882 msgid "PARTITIONING"
35883 msgstr "ПОДІЛ НА РОЗДІЛИ"
35884
35885 #. type: textblock
35886 #: ../src/guestfs.pod:238
35887 msgid ""
35888 "Libguestfs contains API calls to read, create and modify partition tables on "
35889 "disk images."
35890 msgstr ""
35891
35892 #. type: textblock
35893 #: ../src/guestfs.pod:241
35894 msgid ""
35895 "In the common case where you want to create a single partition covering the "
35896 "whole disk, you should use the L</guestfs_part_disk> call:"
35897 msgstr ""
35898
35899 #. type: verbatim
35900 #: ../src/guestfs.pod:245
35901 #, no-wrap
35902 msgid ""
35903 " const char *parttype = \"mbr\";\n"
35904 " if (disk_is_larger_than_2TB)\n"
35905 "   parttype = \"gpt\";\n"
35906 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35907 "\n"
35908 msgstr ""
35909 " const char *parttype = \"mbr\";\n"
35910 " if (disk_is_larger_than_2TB)\n"
35911 "   parttype = \"gpt\";\n"
35912 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35913 "\n"
35914
35915 #. type: textblock
35916 #: ../src/guestfs.pod:250
35917 msgid ""
35918 "Obviously this effectively wipes anything that was on that disk image before."
35919 msgstr ""
35920
35921 #. type: =head2
35922 #: ../src/guestfs.pod:253
35923 msgid "LVM2"
35924 msgstr "LVM2"
35925
35926 #. type: textblock
35927 #: ../src/guestfs.pod:255
35928 msgid ""
35929 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35930 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
35931 "you familiarize yourself with the concepts of physical volumes, volume "
35932 "groups and logical volumes."
35933 msgstr ""
35934
35935 #. type: textblock
35936 #: ../src/guestfs.pod:260
35937 msgid ""
35938 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35939 "tldp.org/HOWTO/LVM-HOWTO/>."
35940 msgstr ""
35941
35942 #. type: =head2
35943 #: ../src/guestfs.pod:263
35944 msgid "DOWNLOADING"
35945 msgstr "ОТРИМАННЯ ДАНИХ"
35946
35947 #. type: textblock
35948 #: ../src/guestfs.pod:265
35949 msgid ""
35950 "Use L</guestfs_cat> to download small, text only files.  This call is "
35951 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35952 "NUL (C<\\0>) characters.  However the API is very simple to use."
35953 msgstr ""
35954
35955 #. type: textblock
35956 #: ../src/guestfs.pod:269
35957 msgid ""
35958 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35959 "bit data, since it returns a (pointer, size) pair.  However it is still "
35960 "limited to \"small\" files, less than 2 MB."
35961 msgstr ""
35962
35963 #. type: textblock
35964 #: ../src/guestfs.pod:273
35965 msgid ""
35966 "L</guestfs_download> can be used to download any file, with no limits on "
35967 "content or size (even files larger than 4 GB)."
35968 msgstr ""
35969
35970 #. type: textblock
35971 #: ../src/guestfs.pod:276
35972 msgid ""
35973 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35974 msgstr ""
35975
35976 #. type: =head2
35977 #: ../src/guestfs.pod:279
35978 msgid "UPLOADING"
35979 msgstr "ВИВАНТАЖЕННЯ"
35980
35981 #. type: textblock
35982 #: ../src/guestfs.pod:281
35983 msgid ""
35984 "It's often the case that you want to write a file or files to the disk image."
35985 msgstr ""
35986
35987 #. type: textblock
35988 #: ../src/guestfs.pod:284
35989 msgid ""
35990 "To write a small file with fixed content, use L</guestfs_write>.  To create "
35991 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35992 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
35993 "of other functions for creating test files, for example L</guestfs_fill> and "
35994 "L</guestfs_fill_pattern>."
35995 msgstr ""
35996
35997 #. type: textblock
35998 #: ../src/guestfs.pod:290
35999 msgid ""
36000 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
36001 "file content or size (even files larger than 4 GB)."
36002 msgstr ""
36003
36004 #. type: textblock
36005 #: ../src/guestfs.pod:293
36006 msgid ""
36007 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
36008 msgstr ""
36009
36010 #. type: textblock
36011 #: ../src/guestfs.pod:295
36012 msgid ""
36013 "However the fastest way to upload I<large numbers of arbitrary files> is to "
36014 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
36015 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
36016 "in a predictable way (eg. adding it last after all other drives) then you "
36017 "can get the device name from L</guestfs_list_devices> and mount it directly "
36018 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
36019 "portable between kernel versions, and they don't support labels or UUIDs.  "
36020 "If you want to pre-build an image or you need to mount it using a label or "
36021 "UUID, use an ISO image instead."
36022 msgstr ""
36023
36024 #. type: =head2
36025 #: ../src/guestfs.pod:306
36026 msgid "COPYING"
36027 msgstr "КОПІЮВАННЯ"
36028
36029 #. type: textblock
36030 #: ../src/guestfs.pod:308
36031 msgid ""
36032 "There are various different commands for copying between files and devices "
36033 "and in and out of the guest filesystem.  These are summarised in the table "
36034 "below."
36035 msgstr ""
36036
36037 #. type: =item
36038 #: ../src/guestfs.pod:314
36039 msgid "B<file> to B<file>"
36040 msgstr "B<файл> у B<файл>"
36041
36042 #. type: textblock
36043 #: ../src/guestfs.pod:316
36044 msgid ""
36045 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
36046 "directories recursively."
36047 msgstr ""
36048
36049 #. type: textblock
36050 #: ../src/guestfs.pod:319
36051 msgid ""
36052 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
36053 msgstr ""
36054
36055 #. type: =item
36056 #: ../src/guestfs.pod:322
36057 #, fuzzy
36058 #| msgid "B<file> to B<file>"
36059 msgid "B<file> to B<device>"
36060 msgstr "B<файл> у B<файл>"
36061
36062 #. type: =item
36063 #: ../src/guestfs.pod:324
36064 #, fuzzy
36065 #| msgid "B<file> to B<file>"
36066 msgid "B<device> to B<file>"
36067 msgstr "B<файл> у B<файл>"
36068
36069 #. type: =item
36070 #: ../src/guestfs.pod:326
36071 #, fuzzy
36072 #| msgid "B<file or device> to B<file or device>"
36073 msgid "B<device> to B<device>"
36074 msgstr "B<файл або пристрій> у B<файл або пристрій>"
36075
36076 #. type: textblock
36077 #: ../src/guestfs.pod:328
36078 msgid ""
36079 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
36080 "guestfs_copy_device_to_device>."
36081 msgstr ""
36082
36083 #. type: textblock
36084 #: ../src/guestfs.pod:331
36085 msgid "Example: duplicate the contents of an LV:"
36086 msgstr ""
36087
36088 #. type: verbatim
36089 #: ../src/guestfs.pod:333
36090 #, no-wrap
36091 msgid ""
36092 " guestfs_copy_device_to_device (g,\n"
36093 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36094 "         /* -1 marks the end of the list of optional parameters */\n"
36095 "         -1);\n"
36096 "\n"
36097 msgstr ""
36098
36099 #. type: textblock
36100 #: ../src/guestfs.pod:338
36101 msgid ""
36102 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
36103 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
36104 "optional C<size> parameter:"
36105 msgstr ""
36106
36107 #. type: verbatim
36108 #: ../src/guestfs.pod:342
36109 #, no-wrap
36110 msgid ""
36111 " guestfs_copy_device_to_device (g,\n"
36112 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
36113 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
36114 "         -1);\n"
36115 "\n"
36116 msgstr ""
36117
36118 #. type: =item
36119 #: ../src/guestfs.pod:347
36120 msgid "B<file on the host> to B<file or device>"
36121 msgstr ""
36122
36123 #. type: textblock
36124 #: ../src/guestfs.pod:349
36125 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
36126 msgstr ""
36127
36128 #. type: =item
36129 #: ../src/guestfs.pod:351
36130 msgid "B<file or device> to B<file on the host>"
36131 msgstr ""
36132
36133 #. type: textblock
36134 #: ../src/guestfs.pod:353
36135 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
36136 msgstr ""
36137
36138 #. type: =head2
36139 #: ../src/guestfs.pod:357
36140 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
36141 msgstr ""
36142
36143 #. type: textblock
36144 #: ../src/guestfs.pod:359
36145 msgid ""
36146 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
36147 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
36148 "appears you can only upload and download to files.  However many Un*x-like "
36149 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
36150 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
36151 "and arbitrary file descriptor N."
36152 msgstr ""
36153
36154 #. type: textblock
36155 #: ../src/guestfs.pod:367
36156 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
36157 msgstr ""
36158
36159 #. type: verbatim
36160 #: ../src/guestfs.pod:370
36161 #, no-wrap
36162 msgid ""
36163 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36164 "\n"
36165 msgstr ""
36166 " guestfs_download (g, filename, \"/dev/stdout\");\n"
36167 "\n"
36168
36169 #. type: textblock
36170 #: ../src/guestfs.pod:372
36171 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
36172 msgstr ""
36173
36174 #. type: verbatim
36175 #: ../src/guestfs.pod:374
36176 #, no-wrap
36177 msgid ""
36178 " char devfd[64];\n"
36179 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36180 " guestfs_tar_out (g, \"/\", devfd);\n"
36181 "\n"
36182 msgstr ""
36183 " char devfd[64];\n"
36184 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
36185 " guestfs_tar_out (g, \"/\", devfd);\n"
36186 "\n"
36187
36188 #. type: =head2
36189 #: ../src/guestfs.pod:378
36190 msgid "LISTING FILES"
36191 msgstr "СПИСКИ ФАЙЛІВ"
36192
36193 #. type: textblock
36194 #: ../src/guestfs.pod:380
36195 msgid ""
36196 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
36197 "L<guestfish(1)>-equivalent command C<ll>)."
36198 msgstr ""
36199
36200 #. type: textblock
36201 #: ../src/guestfs.pod:383
36202 msgid ""
36203 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
36204 "programs, as a flat list of strings."
36205 msgstr ""
36206
36207 #. type: textblock
36208 #: ../src/guestfs.pod:386
36209 msgid ""
36210 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
36211 "directory, plus additional information about each one.  It is more "
36212 "equivalent to using the L<readdir(3)> call on a local filesystem."
36213 msgstr ""
36214
36215 #. type: textblock
36216 #: ../src/guestfs.pod:390
36217 msgid ""
36218 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
36219 msgstr ""
36220
36221 #. type: =head2
36222 #: ../src/guestfs.pod:393
36223 msgid "RUNNING COMMANDS"
36224 msgstr "ВИКОНАННЯ КОМАНД"
36225
36226 #. type: textblock
36227 #: ../src/guestfs.pod:395
36228 msgid ""
36229 "Although libguestfs is primarily an API for manipulating files inside guest "
36230 "images, we also provide some limited facilities for running commands inside "
36231 "guests."
36232 msgstr ""
36233
36234 #. type: textblock
36235 #: ../src/guestfs.pod:399
36236 msgid "There are many limitations to this:"
36237 msgstr ""
36238
36239 #. type: textblock
36240 #: ../src/guestfs.pod:405
36241 msgid ""
36242 "The kernel version that the command runs under will be different from what "
36243 "it expects."
36244 msgstr ""
36245
36246 #. type: textblock
36247 #: ../src/guestfs.pod:410
36248 msgid ""
36249 "If the command needs to communicate with daemons, then most likely they "
36250 "won't be running."
36251 msgstr ""
36252
36253 #. type: textblock
36254 #: ../src/guestfs.pod:415
36255 msgid "The command will be running in limited memory."
36256 msgstr ""
36257
36258 #. type: textblock
36259 #: ../src/guestfs.pod:419
36260 msgid ""
36261 "The network may not be available unless you enable it (see L</"
36262 "guestfs_set_network>)."
36263 msgstr ""
36264
36265 #. type: textblock
36266 #: ../src/guestfs.pod:424
36267 msgid "Only supports Linux guests (not Windows, BSD, etc)."
36268 msgstr ""
36269
36270 #. type: textblock
36271 #: ../src/guestfs.pod:428
36272 msgid ""
36273 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
36274 msgstr ""
36275
36276 #. type: textblock
36277 #: ../src/guestfs.pod:433
36278 msgid ""
36279 "For SELinux guests, you may need to enable SELinux and load policy first.  "
36280 "See L</SELINUX> in this manpage."
36281 msgstr ""
36282
36283 #. type: textblock
36284 #: ../src/guestfs.pod:438
36285 msgid ""
36286 "I<Security:> It is not safe to run commands from untrusted, possibly "
36287 "malicious guests.  These commands may attempt to exploit your program by "
36288 "sending unexpected output.  They could also try to exploit the Linux kernel "
36289 "or qemu provided by the libguestfs appliance.  They could use the network "
36290 "provided by the libguestfs appliance to bypass ordinary network partitions "
36291 "and firewalls.  They could use the elevated privileges or different SELinux "
36292 "context of your program to their advantage."
36293 msgstr ""
36294
36295 #. type: textblock
36296 #: ../src/guestfs.pod:447
36297 msgid ""
36298 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
36299 "(a script which runs when the guest next boots normally), and to have this "
36300 "script run the commands you want in the normal context of the running guest, "
36301 "network security and so on.  For information about other security issues, "
36302 "see L</SECURITY>."
36303 msgstr ""
36304
36305 #. type: textblock
36306 #: ../src/guestfs.pod:455
36307 msgid ""
36308 "The two main API calls to run commands are L</guestfs_command> and L</"
36309 "guestfs_sh> (there are also variations)."
36310 msgstr ""
36311
36312 #. type: textblock
36313 #: ../src/guestfs.pod:458
36314 msgid ""
36315 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
36316 "shell globs, redirections, etc will work."
36317 msgstr ""
36318
36319 #. type: =head2
36320 #: ../src/guestfs.pod:461
36321 msgid "CONFIGURATION FILES"
36322 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
36323
36324 #. type: textblock
36325 #: ../src/guestfs.pod:463
36326 msgid ""
36327 "To read and write configuration files in Linux guest filesystems, we "
36328 "strongly recommend using Augeas.  For example, Augeas understands how to "
36329 "read and write, say, a Linux shadow password file or X.org configuration "
36330 "file, and so avoids you having to write that code."
36331 msgstr ""
36332
36333 #. type: textblock
36334 #: ../src/guestfs.pod:468
36335 msgid ""
36336 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
36337 "document Augeas itself here because there is excellent documentation on the "
36338 "L<http://augeas.net/> website."
36339 msgstr ""
36340
36341 #. type: textblock
36342 #: ../src/guestfs.pod:472
36343 msgid ""
36344 "If you don't want to use Augeas (you fool!) then try calling L</"
36345 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
36346 "over."
36347 msgstr ""
36348
36349 #. type: =head2
36350 #: ../src/guestfs.pod:476
36351 msgid "SELINUX"
36352 msgstr "SELINUX"
36353
36354 #. type: textblock
36355 #: ../src/guestfs.pod:478
36356 msgid ""
36357 "We support SELinux guests.  To ensure that labeling happens correctly in "
36358 "SELinux guests, you need to enable SELinux and load the guest's policy:"
36359 msgstr ""
36360
36361 #. type: textblock
36362 #: ../src/guestfs.pod:486
36363 msgid "Before launching, do:"
36364 msgstr ""
36365
36366 #. type: verbatim
36367 #: ../src/guestfs.pod:488
36368 #, no-wrap
36369 msgid ""
36370 " guestfs_set_selinux (g, 1);\n"
36371 "\n"
36372 msgstr ""
36373 " guestfs_set_selinux (g, 1);\n"
36374 "\n"
36375
36376 #. type: textblock
36377 #: ../src/guestfs.pod:492
36378 msgid ""
36379 "After mounting the guest's filesystem(s), load the policy.  This is best "
36380 "done by running the L<load_policy(8)> command in the guest itself:"
36381 msgstr ""
36382
36383 #. type: verbatim
36384 #: ../src/guestfs.pod:496
36385 #, no-wrap
36386 msgid ""
36387 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36388 "\n"
36389 msgstr ""
36390 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
36391 "\n"
36392
36393 #. type: textblock
36394 #: ../src/guestfs.pod:498
36395 msgid ""
36396 "(Older versions of C<load_policy> require you to specify the name of the "
36397 "policy file)."
36398 msgstr ""
36399
36400 #. type: textblock
36401 #: ../src/guestfs.pod:503
36402 msgid ""
36403 "Optionally, set the security context for the API.  The correct security "
36404 "context to use can only be known by inspecting the guest.  As an example:"
36405 msgstr ""
36406
36407 #. type: verbatim
36408 #: ../src/guestfs.pod:507
36409 #, no-wrap
36410 msgid ""
36411 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36412 "\n"
36413 msgstr ""
36414 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
36415 "\n"
36416
36417 #. type: textblock
36418 #: ../src/guestfs.pod:511
36419 msgid "This will work for running commands and editing existing files."
36420 msgstr ""
36421
36422 #. type: textblock
36423 #: ../src/guestfs.pod:513
36424 msgid ""
36425 "When new files are created, you may need to label them explicitly, for "
36426 "example by running the external command C<restorecon pathname>."
36427 msgstr ""
36428
36429 #. type: =head2
36430 #: ../src/guestfs.pod:517
36431 msgid "UMASK"
36432 msgstr "UMASK"
36433
36434 #. type: textblock
36435 #: ../src/guestfs.pod:519
36436 msgid ""
36437 "Certain calls are affected by the current file mode creation mask (the "
36438 "\"umask\").  In particular ones which create files or directories, such as "
36439 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
36440 "either the default mode that the file is created with or modifies the mode "
36441 "that you supply."
36442 msgstr ""
36443
36444 #. type: textblock
36445 #: ../src/guestfs.pod:525
36446 msgid ""
36447 "The default umask is C<022>, so files are created with modes such as C<0644> "
36448 "and directories with C<0755>."
36449 msgstr ""
36450
36451 #. type: textblock
36452 #: ../src/guestfs.pod:528
36453 msgid ""
36454 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
36455 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
36456 "guestfs_chmod> after creating each file or directory."
36457 msgstr ""
36458
36459 #. type: textblock
36460 #: ../src/guestfs.pod:532
36461 msgid "For more information about umask, see L<umask(2)>."
36462 msgstr ""
36463
36464 #. type: textblock
36465 #: ../src/guestfs.pod:536
36466 msgid ""
36467 "Libguestfs allows you to access Linux guests which have been encrypted using "
36468 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
36469 "standard.  This includes nearly all whole disk encryption systems used by "
36470 "modern Linux guests."
36471 msgstr ""
36472
36473 #. type: textblock
36474 #: ../src/guestfs.pod:542
36475 msgid ""
36476 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
36477 "returns the string C<crypto_LUKS>)."
36478 msgstr ""
36479
36480 #. type: textblock
36481 #: ../src/guestfs.pod:545
36482 msgid ""
36483 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
36484 "will require the passphrase!"
36485 msgstr ""
36486
36487 #. type: textblock
36488 #: ../src/guestfs.pod:548
36489 msgid ""
36490 "Opening a LUKS device creates a new device mapper device called C</dev/"
36491 "mapper/mapname> (where C<mapname> is the string you supply to L</"
36492 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
36493 "from and encrypted to the underlying block device respectively."
36494 msgstr ""
36495
36496 #. type: textblock
36497 #: ../src/guestfs.pod:554
36498 msgid ""
36499 "LVM volume groups on the device can be made visible by calling L</"
36500 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
36501 "(s) can now be mounted in the usual way."
36502 msgstr ""
36503
36504 #. type: textblock
36505 #: ../src/guestfs.pod:558
36506 msgid ""
36507 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
36508 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
36509 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
36510 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
36511 "underlying encrypted block device)."
36512 msgstr ""
36513
36514 #. type: =head2
36515 #: ../src/guestfs.pod:565
36516 msgid "INSPECTION"
36517 msgstr "ПЕРЕВІРКА"
36518
36519 #. type: textblock
36520 #: ../src/guestfs.pod:567
36521 msgid ""
36522 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
36523 "contains operating systems, an install CD or a live CD.  (These APIs used to "
36524 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
36525 "version 1.5.3 the most frequently used part of this library has been "
36526 "rewritten in C and moved into the core code)."
36527 msgstr ""
36528
36529 #. type: textblock
36530 #: ../src/guestfs.pod:574
36531 msgid ""
36532 "Add all disks belonging to the unknown virtual machine and call L</"
36533 "guestfs_launch> in the usual way."
36534 msgstr ""
36535
36536 #. type: textblock
36537 #: ../src/guestfs.pod:577
36538 msgid ""
36539 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
36540 "and certain heuristics, and returns a list of operating systems that were "
36541 "found.  An empty list means none were found.  A single element is the root "
36542 "filesystem of the operating system.  For dual- or multi-boot guests, "
36543 "multiple roots can be returned, each one corresponding to a separate "
36544 "operating system.  (Multi-boot virtual machines are extremely rare in the "
36545 "world of virtualization, but since this scenario can happen, we have built "
36546 "libguestfs to deal with it.)"
36547 msgstr ""
36548
36549 #. type: textblock
36550 #: ../src/guestfs.pod:586
36551 msgid ""
36552 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
36553 "to get additional details about that operating system.  For example, call L</"
36554 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
36555 "Windows and Linux-based operating systems respectively."
36556 msgstr ""
36557
36558 #. type: textblock
36559 #: ../src/guestfs.pod:592
36560 msgid ""
36561 "Un*x-like and Linux-based operating systems usually consist of several "
36562 "filesystems which are mounted at boot time (for example, a separate boot "
36563 "partition mounted on C</boot>).  The inspection rules are able to detect how "
36564 "filesystems correspond to mount points.  Call "
36565 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
36566 "hash table like this example:"
36567 msgstr ""
36568
36569 #. type: verbatim
36570 #: ../src/guestfs.pod:599
36571 #, no-wrap
36572 msgid ""
36573 " /boot => /dev/sda1\n"
36574 " /     => /dev/vg_guest/lv_root\n"
36575 " /usr  => /dev/vg_guest/lv_usr\n"
36576 "\n"
36577 msgstr ""
36578 " /boot => /dev/sda1\n"
36579 " /     => /dev/vg_guest/lv_root\n"
36580 " /usr  => /dev/vg_guest/lv_usr\n"
36581 "\n"
36582
36583 #. type: textblock
36584 #: ../src/guestfs.pod:603
36585 msgid ""
36586 "The caller can then make calls to L</guestfs_mount_options> to mount the "
36587 "filesystems as suggested."
36588 msgstr ""
36589
36590 #. type: textblock
36591 #: ../src/guestfs.pod:606
36592 msgid ""
36593 "Be careful to mount filesystems in the right order (eg. C</> before C</"
36594 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
36595 msgstr ""
36596
36597 #. type: textblock
36598 #: ../src/guestfs.pod:610
36599 msgid ""
36600 "Inspection currently only works for some common operating systems.  "
36601 "Contributors are welcome to send patches for other operating systems that we "
36602 "currently cannot detect."
36603 msgstr ""
36604
36605 #. type: textblock
36606 #: ../src/guestfs.pod:614
36607 msgid ""
36608 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
36609 "for more details.  The L</guestfs_inspect_os> function just ignores any "
36610 "encrypted devices."
36611 msgstr ""
36612
36613 #. type: textblock
36614 #: ../src/guestfs.pod:618
36615 msgid ""
36616 "A note on the implementation: The call L</guestfs_inspect_os> performs "
36617 "inspection and caches the results in the guest handle.  Subsequent calls to "
36618 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
36619 "read the disks.  If you change the content of the guest disks, you can redo "
36620 "inspection by calling L</guestfs_inspect_os> again.  (L</"
36621 "guestfs_inspect_list_applications> works a little differently from the other "
36622 "calls and does read the disks.  See documentation for that function for "
36623 "details)."
36624 msgstr ""
36625
36626 #. type: =head3
36627 #: ../src/guestfs.pod:627
36628 msgid "INSPECTING INSTALL DISKS"
36629 msgstr ""
36630
36631 #. type: textblock
36632 #: ../src/guestfs.pod:629
36633 msgid ""
36634 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
36635 "CDs and more."
36636 msgstr ""
36637
36638 #. type: textblock
36639 #: ../src/guestfs.pod:632
36640 msgid ""
36641 "Call L</guestfs_inspect_get_format> to return the format of the operating "
36642 "system, which currently can be C<installed> (a regular operating system) or "
36643 "C<installer> (some sort of install disk)."
36644 msgstr ""
36645
36646 #. type: textblock
36647 #: ../src/guestfs.pod:636
36648 msgid ""
36649 "Further information is available about the operating system that can be "
36650 "installed using the regular inspection APIs like L</"
36651 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
36652 msgstr ""
36653
36654 #. type: textblock
36655 #: ../src/guestfs.pod:641
36656 msgid ""
36657 "Some additional information specific to installer disks is also available "
36658 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
36659 "guestfs_inspect_is_multipart> calls."
36660 msgstr ""
36661
36662 #. type: =head2
36663 #: ../src/guestfs.pod:646
36664 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
36665 msgstr ""
36666
36667 #. type: textblock
36668 #: ../src/guestfs.pod:648
36669 msgid ""
36670 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
36671 "ntfs-3g.org/> driver."
36672 msgstr ""
36673
36674 #. type: =head3
36675 #: ../src/guestfs.pod:651
36676 msgid "DRIVE LETTERS AND PATHS"
36677 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
36678
36679 #. type: textblock
36680 #: ../src/guestfs.pod:653
36681 msgid ""
36682 "DOS and Windows still use drive letters, and the filesystems are always "
36683 "treated as case insensitive by Windows itself, and therefore you might find "
36684 "a Windows configuration file referring to a path like C<c:\\windows"
36685 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
36686 "might be referred to as C</WINDOWS/System32>."
36687 msgstr ""
36688
36689 #. type: textblock
36690 #: ../src/guestfs.pod:659
36691 msgid ""
36692 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
36693 "L</guestfs_inspect_get_drive_mappings>)"
36694 msgstr ""
36695
36696 #. type: textblock
36697 #: ../src/guestfs.pod:662
36698 msgid ""
36699 "Dealing with separator characters (backslash vs forward slash) is outside "
36700 "the scope of libguestfs, but usually a simple character replacement will "
36701 "work."
36702 msgstr ""
36703
36704 #. type: textblock
36705 #: ../src/guestfs.pod:666
36706 msgid ""
36707 "To resolve the case insensitivity of paths, call L</"
36708 "guestfs_case_sensitive_path>."
36709 msgstr ""
36710
36711 #. type: =head3
36712 #: ../src/guestfs.pod:669
36713 msgid "ACCESSING THE WINDOWS REGISTRY"
36714 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
36715
36716 #. type: textblock
36717 #: ../src/guestfs.pod:671
36718 msgid ""
36719 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
36720 "files, through the library C<hivex> which is part of the libguestfs project "
36721 "although ships as a separate tarball.  You have to locate and download the "
36722 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
36723 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
36724 "reg(1)> for more help on this issue."
36725 msgstr ""
36726
36727 #. type: =head3
36728 #: ../src/guestfs.pod:679
36729 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
36730 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
36731
36732 #. type: textblock
36733 #: ../src/guestfs.pod:681
36734 msgid ""
36735 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
36736 "provide something which looks like a Linux symlink.  The way it tries to do "
36737 "the rewriting is described here:"
36738 msgstr ""
36739
36740 #. type: textblock
36741 #: ../src/guestfs.pod:685
36742 msgid ""
36743 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36744 "symbolic-links/>"
36745 msgstr ""
36746 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
36747 "symbolic-links/>"
36748
36749 #. type: textblock
36750 #: ../src/guestfs.pod:687
36751 msgid ""
36752 "The essential problem is that ntfs-3g simply does not have enough "
36753 "information to do a correct job.  NTFS links can contain drive letters and "
36754 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
36755 "It is almost certainly the case that libguestfs callers should ignore what "
36756 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
36757 msgstr ""
36758
36759 #. type: textblock
36760 #: ../src/guestfs.pod:694
36761 msgid ""
36762 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
36763 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
36764 "attribute, and read the raw reparse data from that (you can find the format "
36765 "documented in various places around the web)."
36766 msgstr ""
36767
36768 #. type: =head3
36769 #: ../src/guestfs.pod:699
36770 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
36771 msgstr ""
36772
36773 #. type: textblock
36774 #: ../src/guestfs.pod:701
36775 msgid ""
36776 "There are other useful extended attributes that can be read from ntfs-3g "
36777 "filesystems (using L</guestfs_getxattr>).  See:"
36778 msgstr ""
36779
36780 #. type: textblock
36781 #: ../src/guestfs.pod:704
36782 msgid ""
36783 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36784 msgstr ""
36785 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
36786
36787 #. type: =head2
36788 #: ../src/guestfs.pod:706
36789 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
36790 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
36791
36792 #. type: textblock
36793 #: ../src/guestfs.pod:708
36794 msgid ""
36795 "Although we don't want to discourage you from using the C API, we will "
36796 "mention here that the same API is also available in other languages."
36797 msgstr ""
36798
36799 #. type: textblock
36800 #: ../src/guestfs.pod:711
36801 msgid ""
36802 "The API is broadly identical in all supported languages.  This means that "
36803 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
36804 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
36805 "OCaml.  In other words, a straightforward, predictable isomorphism between "
36806 "each language."
36807 msgstr ""
36808
36809 #. type: textblock
36810 #: ../src/guestfs.pod:717
36811 msgid ""
36812 "Error messages are automatically transformed into exceptions if the language "
36813 "supports it."
36814 msgstr ""
36815
36816 #. type: textblock
36817 #: ../src/guestfs.pod:720
36818 msgid ""
36819 "We don't try to \"object orientify\" parts of the API in OO languages, "
36820 "although contributors are welcome to write higher level APIs above what we "
36821 "provide in their favourite languages if they wish."
36822 msgstr ""
36823
36824 #. type: =item
36825 #: ../src/guestfs.pod:726
36826 msgid "B<C++>"
36827 msgstr "B<C++>"
36828
36829 #. type: textblock
36830 #: ../src/guestfs.pod:728
36831 msgid ""
36832 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
36833 "identical to the C API.  C++ classes and exceptions are not used."
36834 msgstr ""
36835
36836 #. type: =item
36837 #: ../src/guestfs.pod:732
36838 msgid "B<C#>"
36839 msgstr "B<C#>"
36840
36841 #. type: textblock
36842 #: ../src/guestfs.pod:734
36843 msgid ""
36844 "The C# bindings are highly experimental.  Please read the warnings at the "
36845 "top of C<csharp/Libguestfs.cs>."
36846 msgstr ""
36847
36848 #. type: =item
36849 #: ../src/guestfs.pod:737
36850 msgid "B<Erlang>"
36851 msgstr ""
36852
36853 #. type: textblock
36854 #: ../src/guestfs.pod:739
36855 msgid "See L<guestfs-erlang(3)>."
36856 msgstr ""
36857
36858 #. type: =item
36859 #: ../src/guestfs.pod:741
36860 msgid "B<Haskell>"
36861 msgstr "B<Haskell>"
36862
36863 #. type: textblock
36864 #: ../src/guestfs.pod:743
36865 msgid ""
36866 "This is the only language binding that is working but incomplete.  Only "
36867 "calls which return simple integers have been bound in Haskell, and we are "
36868 "looking for help to complete this binding."
36869 msgstr ""
36870
36871 #. type: =item
36872 #: ../src/guestfs.pod:747
36873 msgid "B<Java>"
36874 msgstr "B<Java>"
36875
36876 #. type: textblock
36877 #: ../src/guestfs.pod:749
36878 msgid ""
36879 "Full documentation is contained in the Javadoc which is distributed with "
36880 "libguestfs.  For examples, see L<guestfs-java(3)>."
36881 msgstr ""
36882
36883 #. type: =item
36884 #: ../src/guestfs.pod:752
36885 msgid "B<OCaml>"
36886 msgstr "B<OCaml>"
36887
36888 #. type: textblock
36889 #: ../src/guestfs.pod:754
36890 msgid "See L<guestfs-ocaml(3)>."
36891 msgstr "Див. L<guestfs-ocaml(3)>."
36892
36893 #. type: =item
36894 #: ../src/guestfs.pod:756
36895 msgid "B<Perl>"
36896 msgstr "B<Perl>"
36897
36898 #. type: textblock
36899 #: ../src/guestfs.pod:758
36900 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36901 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
36902
36903 #. type: =item
36904 #: ../src/guestfs.pod:760
36905 msgid "B<PHP>"
36906 msgstr "B<PHP>"
36907
36908 #. type: textblock
36909 #: ../src/guestfs.pod:762
36910 msgid ""
36911 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36912 "the php-libguestfs package for your distribution."
36913 msgstr ""
36914
36915 #. type: textblock
36916 #: ../src/guestfs.pod:765
36917 msgid "The PHP binding only works correctly on 64 bit machines."
36918 msgstr ""
36919
36920 #. type: =item
36921 #: ../src/guestfs.pod:767
36922 msgid "B<Python>"
36923 msgstr "B<Python>"
36924
36925 #. type: textblock
36926 #: ../src/guestfs.pod:769
36927 msgid "See L<guestfs-python(3)>."
36928 msgstr "Див. L<guestfs-python(3)>."
36929
36930 #. type: =item
36931 #: ../src/guestfs.pod:771
36932 msgid "B<Ruby>"
36933 msgstr "B<Ruby>"
36934
36935 #. type: textblock
36936 #: ../src/guestfs.pod:773
36937 msgid "See L<guestfs-ruby(3)>."
36938 msgstr "Див. L<guestfs-ruby(3)>."
36939
36940 #. type: =item
36941 #: ../src/guestfs.pod:775
36942 msgid "B<shell scripts>"
36943 msgstr "B<скрипти оболонки>"
36944
36945 #. type: textblock
36946 #: ../src/guestfs.pod:777
36947 msgid "See L<guestfish(1)>."
36948 msgstr "Див. L<guestfish(1)>."
36949
36950 #. type: =head2
36951 #: ../src/guestfs.pod:781
36952 msgid "LIBGUESTFS GOTCHAS"
36953 msgstr ""
36954
36955 #. type: textblock
36956 #: ../src/guestfs.pod:783
36957 msgid ""
36958 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36959 "system [...] that works in the way it is documented but is counterintuitive "
36960 "and almost invites mistakes.\""
36961 msgstr ""
36962
36963 #. type: textblock
36964 #: ../src/guestfs.pod:787
36965 msgid ""
36966 "Since we developed libguestfs and the associated tools, there are several "
36967 "things we would have designed differently, but are now stuck with for "
36968 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
36969 "release, you can expect these to change.  Beware of them."
36970 msgstr ""
36971
36972 #. type: =item
36973 #: ../src/guestfs.pod:795
36974 msgid "Autosync / forgetting to sync."
36975 msgstr ""
36976
36977 #. type: textblock
36978 #: ../src/guestfs.pod:797
36979 msgid ""
36980 "I<Update:> Autosync is enabled by default for all API users starting from "
36981 "libguestfs 1.5.24.  This section only applies to older versions."
36982 msgstr ""
36983
36984 #. type: textblock
36985 #: ../src/guestfs.pod:800
36986 msgid ""
36987 "When modifying a filesystem from C or another language, you B<must> unmount "
36988 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36989 "libguestfs handle.  You can also call:"
36990 msgstr ""
36991
36992 #. type: verbatim
36993 #: ../src/guestfs.pod:804
36994 #, no-wrap
36995 msgid ""
36996 " guestfs_set_autosync (g, 1);\n"
36997 "\n"
36998 msgstr ""
36999 " guestfs_set_autosync (g, 1);\n"
37000 "\n"
37001
37002 #. type: textblock
37003 #: ../src/guestfs.pod:806
37004 msgid ""
37005 "to have the unmount/sync done automatically for you when the handle 'g' is "
37006 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
37007 msgstr ""
37008
37009 #. type: textblock
37010 #: ../src/guestfs.pod:810
37011 msgid ""
37012 "If you forget to do this, then it is entirely possible that your changes "
37013 "won't be written out, or will be partially written, or (very rarely) that "
37014 "you'll get disk corruption."
37015 msgstr ""
37016
37017 #. type: textblock
37018 #: ../src/guestfs.pod:814
37019 msgid ""
37020 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
37021 "guestfish scripts that forget to sync will work just fine, which can make "
37022 "this very puzzling if you are trying to debug a problem."
37023 msgstr ""
37024
37025 #. type: =item
37026 #: ../src/guestfs.pod:818
37027 msgid "Mount option C<-o sync> should not be the default."
37028 msgstr ""
37029
37030 #. type: textblock
37031 #: ../src/guestfs.pod:820
37032 msgid ""
37033 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
37034 "libguestfs 1.13.16.  This section only applies to older versions."
37035 msgstr ""
37036
37037 #. type: textblock
37038 #: ../src/guestfs.pod:823
37039 msgid ""
37040 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
37041 "However C<-o sync> does not add any reliability benefit, but does have a "
37042 "very large performance impact."
37043 msgstr ""
37044
37045 #. type: textblock
37046 #: ../src/guestfs.pod:827
37047 msgid ""
37048 "The work around is to use L</guestfs_mount_options> and set the mount "
37049 "options that you actually want to use."
37050 msgstr ""
37051
37052 #. type: =item
37053 #: ../src/guestfs.pod:830
37054 msgid "Read-only should be the default."
37055 msgstr ""
37056
37057 #. type: textblock
37058 #: ../src/guestfs.pod:832
37059 msgid ""
37060 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
37061 "specify I<--rw> if you want to make changes to the image."
37062 msgstr ""
37063
37064 #. type: textblock
37065 #: ../src/guestfs.pod:835
37066 msgid "This would reduce the potential to corrupt live VM images."
37067 msgstr ""
37068
37069 #. type: textblock
37070 #: ../src/guestfs.pod:837
37071 msgid ""
37072 "Note that many filesystems change the disk when you just mount and unmount, "
37073 "even if you didn't perform any writes.  You need to use L</"
37074 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
37075 msgstr ""
37076
37077 #. type: =item
37078 #: ../src/guestfs.pod:841
37079 msgid "guestfish command line is hard to use."
37080 msgstr ""
37081
37082 #. type: textblock
37083 #: ../src/guestfs.pod:843
37084 msgid ""
37085 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
37086 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
37087 "exist, so it fails.  In earlier versions of guestfish the error message was "
37088 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
37089 "we should have used C<guestfish -c command> to run commands."
37090 msgstr ""
37091
37092 #. type: =item
37093 #: ../src/guestfs.pod:850
37094 msgid "guestfish megabyte modifiers don't work right on all commands"
37095 msgstr ""
37096
37097 #. type: textblock
37098 #: ../src/guestfs.pod:852
37099 msgid ""
37100 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
37101 "other modifiers).  What guestfish actually does is to multiply the number "
37102 "part by the modifier part and pass the result to the C API.  However this "
37103 "doesn't work for a few APIs which aren't expecting bytes, but are already "
37104 "expecting some other unit (eg. megabytes)."
37105 msgstr ""
37106
37107 #. type: textblock
37108 #: ../src/guestfs.pod:859
37109 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
37110 msgstr ""
37111
37112 #. type: verbatim
37113 #: ../src/guestfs.pod:861
37114 #, no-wrap
37115 msgid ""
37116 " lvcreate LV VG 100M\n"
37117 "\n"
37118 msgstr ""
37119 " lvcreate LV VG 100M\n"
37120 "\n"
37121
37122 #. type: textblock
37123 #: ../src/guestfs.pod:863
37124 msgid ""
37125 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
37126 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
37127 "megabytes * megabytes) logical volume.  The error message you get from this "
37128 "is also a little obscure."
37129 msgstr ""
37130
37131 #. type: textblock
37132 #: ../src/guestfs.pod:868
37133 msgid ""
37134 "This could be fixed in the generator by specially marking parameters and "
37135 "return values which take bytes or other units."
37136 msgstr ""
37137
37138 #. type: =item
37139 #: ../src/guestfs.pod:871
37140 msgid "Ambiguity between devices and paths"
37141 msgstr ""
37142
37143 #. type: textblock
37144 #: ../src/guestfs.pod:873
37145 msgid ""
37146 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
37147 "sdb2>) and a similar pathname.  A file might just happen to be called "
37148 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
37149 msgstr ""
37150
37151 #. type: textblock
37152 #: ../src/guestfs.pod:878
37153 msgid ""
37154 "In the current API we usually resolve this ambiguity by having two separate "
37155 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
37156 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
37157 "detecting if the path supplied begins with C</dev/>."
37158 msgstr ""
37159
37160 #. type: textblock
37161 #: ../src/guestfs.pod:884
37162 msgid ""
37163 "To avoid both the ambiguity and the need to duplicate some calls, we could "
37164 "make paths/devices into structured names.  One way to do this would be to "
37165 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
37166 "aspect of grub.  Another way would be to use a structured type, equivalent "
37167 "to this OCaml type:"
37168 msgstr ""
37169
37170 #. type: verbatim
37171 #: ../src/guestfs.pod:890
37172 #, no-wrap
37173 msgid ""
37174 " type path = Path of string | Device of int | Partition of int * int\n"
37175 "\n"
37176 msgstr ""
37177
37178 #. type: textblock
37179 #: ../src/guestfs.pod:892
37180 msgid "which would allow you to pass arguments like:"
37181 msgstr ""
37182
37183 #. type: verbatim
37184 #: ../src/guestfs.pod:894
37185 #, no-wrap
37186 msgid ""
37187 " Path \"/foo/bar\"\n"
37188 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
37189 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
37190 " Path \"/dev/sdb2\"    (* not a device *)\n"
37191 "\n"
37192 msgstr ""
37193
37194 #. type: textblock
37195 #: ../src/guestfs.pod:899
37196 msgid ""
37197 "As you can see there are still problems to resolve even with this "
37198 "representation.  Also consider how it might work in guestfish."
37199 msgstr ""
37200
37201 #. type: =head2
37202 #: ../src/guestfs.pod:904
37203 msgid "KEYS AND PASSPHRASES"
37204 msgstr "КЛЮЧІ І ПАРОЛІ"
37205
37206 #. type: textblock
37207 #: ../src/guestfs.pod:906
37208 msgid ""
37209 "Certain libguestfs calls take a parameter that contains sensitive key "
37210 "material, passed in as a C string."
37211 msgstr ""
37212
37213 #. type: textblock
37214 #: ../src/guestfs.pod:909
37215 msgid ""
37216 "In the future we would hope to change the libguestfs implementation so that "
37217 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
37218 "swap.  However this is I<not> done at the moment, because of the complexity "
37219 "of such an implementation."
37220 msgstr ""
37221
37222 #. type: textblock
37223 #: ../src/guestfs.pod:914
37224 msgid ""
37225 "Therefore you should be aware that any key parameter you pass to libguestfs "
37226 "might end up being written out to the swap partition.  If this is a concern, "
37227 "scrub the swap partition or don't use libguestfs on encrypted devices."
37228 msgstr ""
37229
37230 #. type: =head2
37231 #: ../src/guestfs.pod:919
37232 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
37233 msgstr ""
37234
37235 #. type: textblock
37236 #: ../src/guestfs.pod:921
37237 msgid ""
37238 "All high-level libguestfs actions are synchronous.  If you want to use "
37239 "libguestfs asynchronously then you must create a thread."
37240 msgstr ""
37241
37242 #. type: textblock
37243 #: ../src/guestfs.pod:924
37244 msgid ""
37245 "Only use the handle from a single thread.  Either use the handle exclusively "
37246 "from one thread, or provide your own mutex so that two threads cannot issue "
37247 "calls on the same handle at the same time."
37248 msgstr ""
37249
37250 #. type: textblock
37251 #: ../src/guestfs.pod:928
37252 msgid ""
37253 "See the graphical program guestfs-browser for one possible architecture for "
37254 "multithreaded programs using libvirt and libguestfs."
37255 msgstr ""
37256
37257 #. type: =head2
37258 #: ../src/guestfs.pod:931
37259 msgid "PATH"
37260 msgstr "ШЛЯХ"
37261
37262 #. type: textblock
37263 #: ../src/guestfs.pod:933
37264 msgid ""
37265 "Libguestfs needs a supermin appliance, which it finds by looking along an "
37266 "internal path."
37267 msgstr ""
37268
37269 #. type: textblock
37270 #: ../src/guestfs.pod:936
37271 msgid ""
37272 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
37273 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
37274 msgstr ""
37275
37276 #. type: textblock
37277 #: ../src/guestfs.pod:939
37278 msgid ""
37279 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
37280 "to change the directories that libguestfs will search in.  The value is a "
37281 "colon-separated list of paths.  The current directory is I<not> searched "
37282 "unless the path contains an empty element or C<.>.  For example "
37283 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
37284 "then C</usr/lib/guestfs>."
37285 msgstr ""
37286
37287 #. type: =head2
37288 #: ../src/guestfs.pod:946
37289 msgid "QEMU WRAPPERS"
37290 msgstr ""
37291
37292 #. type: textblock
37293 #: ../src/guestfs.pod:948
37294 msgid ""
37295 "If you want to compile your own qemu, run qemu from a non-standard location, "
37296 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
37297 "around qemu."
37298 msgstr ""
37299
37300 #. type: textblock
37301 #: ../src/guestfs.pod:952
37302 msgid ""
37303 "There is one important rule to remember: you I<must C<exec qemu>> as the "
37304 "last command in the shell script (so that qemu replaces the shell and "
37305 "becomes the direct child of the libguestfs-using program).  If you don't do "
37306 "this, then the qemu process won't be cleaned up correctly."
37307 msgstr ""
37308
37309 #. type: textblock
37310 #: ../src/guestfs.pod:957
37311 msgid ""
37312 "Here is an example of a wrapper, where I have built my own copy of qemu from "
37313 "source:"
37314 msgstr ""
37315
37316 #. type: verbatim
37317 #: ../src/guestfs.pod:960
37318 #, no-wrap
37319 msgid ""
37320 " #!/bin/sh -\n"
37321 " qemudir=/home/rjones/d/qemu\n"
37322 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37323 "\n"
37324 msgstr ""
37325 " #!/bin/sh -\n"
37326 " qemudir=/home/rjones/d/qemu\n"
37327 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
37328 "\n"
37329
37330 #. type: textblock
37331 #: ../src/guestfs.pod:964
37332 msgid ""
37333 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
37334 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
37335 "example:"
37336 msgstr ""
37337
37338 #. type: verbatim
37339 #: ../src/guestfs.pod:968
37340 #, no-wrap
37341 msgid ""
37342 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37343 "\n"
37344 msgstr ""
37345 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
37346 "\n"
37347
37348 #. type: textblock
37349 #: ../src/guestfs.pod:970
37350 msgid ""
37351 "Note that libguestfs also calls qemu with the -help and -version options in "
37352 "order to determine features."
37353 msgstr ""
37354
37355 #. type: textblock
37356 #: ../src/guestfs.pod:973
37357 msgid ""
37358 "Wrappers can also be used to edit the options passed to qemu.  In the "
37359 "following example, the C<-machine ...> option (C<-machine> and the following "
37360 "argument) are removed from the command line and replaced with C<-machine pc,"
37361 "accel=tcg>.  The while loop iterates over the options until it finds the "
37362 "right one to remove, putting the remaining options into the C<args> array."
37363 msgstr ""
37364
37365 #. type: verbatim
37366 #: ../src/guestfs.pod:982
37367 #, no-wrap
37368 msgid ""
37369 " i=0\n"
37370 " while [ $# -gt 0 ]; do\n"
37371 "     case \"$1\" in\n"
37372 "     -machine)\n"
37373 "         shift 2;;\n"
37374 "     *)\n"
37375 "         args[i]=\"$1\"\n"
37376 "         (( i++ ))\n"
37377 "         shift ;;\n"
37378 "     esac\n"
37379 " done\n"
37380 " \n"
37381 msgstr ""
37382
37383 #. type: verbatim
37384 #: ../src/guestfs.pod:994
37385 #, no-wrap
37386 msgid ""
37387 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
37388 "\n"
37389 msgstr ""
37390
37391 #. type: =head2
37392 #: ../src/guestfs.pod:996
37393 msgid "ATTACHING TO RUNNING DAEMONS"
37394 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
37395
37396 #. type: textblock
37397 #: ../src/guestfs.pod:998
37398 msgid ""
37399 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
37400 "babies.  Use with caution."
37401 msgstr ""
37402
37403 #. type: textblock
37404 #: ../src/guestfs.pod:1001
37405 msgid ""
37406 "I<Note (2):> This section explains how to attach to a running daemon from a "
37407 "low level perspective.  For most users, simply using virt tools such as "
37408 "L<guestfish(1)> with the I<--live> option will \"just work\"."
37409 msgstr ""
37410
37411 #. type: =head3
37412 #: ../src/guestfs.pod:1005
37413 msgid "Using guestfs_set_attach_method"
37414 msgstr "За допомогою guestfs_set_attach_method"
37415
37416 #. type: textblock
37417 #: ../src/guestfs.pod:1007
37418 msgid ""
37419 "By calling L</guestfs_set_attach_method> you can change how the library "
37420 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
37421 "ARCHITECTURE> for some background)."
37422 msgstr ""
37423
37424 #. type: textblock
37425 #: ../src/guestfs.pod:1011
37426 msgid ""
37427 "The normal attach method is C<appliance>, where a small appliance is created "
37428 "containing the daemon, and then the library connects to this."
37429 msgstr ""
37430
37431 #. type: textblock
37432 #: ../src/guestfs.pod:1014
37433 msgid ""
37434 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
37435 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
37436 "daemon over the Unix domain socket."
37437 msgstr ""
37438
37439 #. type: textblock
37440 #: ../src/guestfs.pod:1018
37441 msgid ""
37442 "The normal use for this is to connect to a running virtual machine that "
37443 "contains a C<guestfsd> daemon, and send commands so you can read and write "
37444 "files inside the live virtual machine."
37445 msgstr ""
37446
37447 #. type: =head3
37448 #: ../src/guestfs.pod:1022
37449 msgid "Using guestfs_add_domain with live flag"
37450 msgstr "За допомогою guestfs_add_domain з прапорцем live"
37451
37452 #. type: textblock
37453 #: ../src/guestfs.pod:1024
37454 msgid ""
37455 "L</guestfs_add_domain> provides some help for getting the correct attach "
37456 "method.  If you pass the C<live> option to this function, then (if the "
37457 "virtual machine is running) it will examine the libvirt XML looking for a "
37458 "virtio-serial channel to connect to:"
37459 msgstr ""
37460
37461 #. type: verbatim
37462 #: ../src/guestfs.pod:1030
37463 #, no-wrap
37464 msgid ""
37465 " <domain>\n"
37466 "   ...\n"
37467 "   <devices>\n"
37468 "     ...\n"
37469 "     <channel type='unix'>\n"
37470 "       <source mode='bind' path='/path/to/socket'/>\n"
37471 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37472 "     </channel>\n"
37473 "     ...\n"
37474 "   </devices>\n"
37475 " </domain>\n"
37476 "\n"
37477 msgstr ""
37478 " <domain>\n"
37479 "   ...\n"
37480 "   <devices>\n"
37481 "     ...\n"
37482 "     <channel type='unix'>\n"
37483 "       <source mode='bind' path='/path/to/socket'/>\n"
37484 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
37485 "     </channel>\n"
37486 "     ...\n"
37487 "   </devices>\n"
37488 " </domain>\n"
37489 "\n"
37490
37491 #. type: textblock
37492 #: ../src/guestfs.pod:1042
37493 msgid ""
37494 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
37495 "method to C<unix:/path/to/socket>."
37496 msgstr ""
37497
37498 #. type: textblock
37499 #: ../src/guestfs.pod:1045
37500 msgid ""
37501 "Some of the libguestfs tools (including guestfish) support a I<--live> "
37502 "option which is passed through to L</guestfs_add_domain> thus allowing you "
37503 "to attach to and modify live virtual machines."
37504 msgstr ""
37505
37506 #. type: textblock
37507 #: ../src/guestfs.pod:1049
37508 msgid ""
37509 "The virtual machine needs to have been set up beforehand so that it has the "
37510 "virtio-serial channel and so that guestfsd is running inside it."
37511 msgstr ""
37512
37513 #. type: =head2
37514 #: ../src/guestfs.pod:1053
37515 msgid "ABI GUARANTEE"
37516 msgstr "ГАРАНТІЯ ЩОДО ABI"
37517
37518 #. type: textblock
37519 #: ../src/guestfs.pod:1055
37520 msgid ""
37521 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
37522 "actions as outlined in this section.  Although we will deprecate some "
37523 "actions, for example if they get replaced by newer calls, we will keep the "
37524 "old actions forever.  This allows you the developer to program in confidence "
37525 "against the libguestfs API."
37526 msgstr ""
37527
37528 #. type: =head2
37529 #: ../src/guestfs.pod:1061
37530 msgid "BLOCK DEVICE NAMING"
37531 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
37532
37533 #. type: textblock
37534 #: ../src/guestfs.pod:1063
37535 msgid ""
37536 "In the kernel there is now quite a profusion of schemata for naming block "
37537 "devices (in this context, by I<block device> I mean a physical or virtual "
37538 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
37539 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
37540 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
37541 "for the old IDE driver (particularly for SATA devices) those devices also "
37542 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
37543 "paravirtualized drivers.  This has created several different naming systems, "
37544 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
37545 msgstr ""
37546
37547 #. type: textblock
37548 #: ../src/guestfs.pod:1075
37549 msgid ""
37550 "As discussed above, libguestfs uses a qemu appliance running an embedded "
37551 "Linux kernel to access block devices.  We can run a variety of appliances "
37552 "based on a variety of Linux kernels."
37553 msgstr ""
37554
37555 #. type: textblock
37556 #: ../src/guestfs.pod:1079
37557 msgid ""
37558 "This causes a problem for libguestfs because many API calls use device or "
37559 "partition names.  Working scripts and the recipe (example) scripts that we "
37560 "make available over the internet could fail if the naming scheme changes."
37561 msgstr ""
37562
37563 #. type: textblock
37564 #: ../src/guestfs.pod:1084
37565 msgid ""
37566 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
37567 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
37568 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
37569 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
37570 msgstr ""
37571
37572 #. type: textblock
37573 #: ../src/guestfs.pod:1090
37574 msgid ""
37575 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
37576 "L</guestfs_list_partitions> and similar calls return the true names of the "
37577 "devices and partitions as known to the appliance."
37578 msgstr ""
37579
37580 #. type: =head3
37581 #: ../src/guestfs.pod:1095
37582 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
37583 msgstr ""
37584
37585 #. type: textblock
37586 #: ../src/guestfs.pod:1097
37587 msgid ""
37588 "Usually this translation is transparent.  However in some (very rare)  cases "
37589 "you may need to know the exact algorithm.  Such cases include where you use "
37590 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
37591 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
37592 msgstr ""
37593
37594 #. type: textblock
37595 #: ../src/guestfs.pod:1103
37596 msgid ""
37597 "The algorithm is applied only to I<parameters> which are known to be either "
37598 "device or partition names.  Return values from functions such as L</"
37599 "guestfs_list_devices> are never changed."
37600 msgstr ""
37601
37602 #. type: textblock
37603 #: ../src/guestfs.pod:1111
37604 msgid "Is the string a parameter which is a device or partition name?"
37605 msgstr ""
37606
37607 #. type: textblock
37608 #: ../src/guestfs.pod:1115
37609 msgid "Does the string begin with C</dev/sd>?"
37610 msgstr "Чи починається рядок з C</dev/sd>?"
37611
37612 #. type: textblock
37613 #: ../src/guestfs.pod:1119
37614 msgid ""
37615 "Does the named device exist? If so, we use that device.  However if I<not> "
37616 "then we continue with this algorithm."
37617 msgstr ""
37618
37619 #. type: textblock
37620 #: ../src/guestfs.pod:1124
37621 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
37622 msgstr ""
37623
37624 #. type: textblock
37625 #: ../src/guestfs.pod:1126
37626 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
37627 msgstr ""
37628
37629 #. type: textblock
37630 #: ../src/guestfs.pod:1128
37631 msgid "If that named device exists, use it.  If not, continue."
37632 msgstr ""
37633
37634 #. type: textblock
37635 #: ../src/guestfs.pod:1132
37636 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
37637 msgstr ""
37638
37639 #. type: textblock
37640 #: ../src/guestfs.pod:1134
37641 msgid "If that named device exists, use it.  If not, return an error."
37642 msgstr ""
37643
37644 #. type: =head3
37645 #: ../src/guestfs.pod:1138
37646 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
37647 msgstr ""
37648
37649 #. type: textblock
37650 #: ../src/guestfs.pod:1140
37651 msgid ""
37652 "Although the standard naming scheme and automatic translation is useful for "
37653 "simple programs and guestfish scripts, for larger programs it is best not to "
37654 "rely on this mechanism."
37655 msgstr ""
37656
37657 #. type: textblock
37658 #: ../src/guestfs.pod:1144
37659 msgid ""
37660 "Where possible for maximum future portability programs using libguestfs "
37661 "should use these future-proof techniques:"
37662 msgstr ""
37663
37664 #. type: textblock
37665 #: ../src/guestfs.pod:1151
37666 msgid ""
37667 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
37668 "device names, and then use those names directly."
37669 msgstr ""
37670
37671 #. type: textblock
37672 #: ../src/guestfs.pod:1154
37673 msgid ""
37674 "Since those device names exist by definition, they will never be translated."
37675 msgstr ""
37676
37677 #. type: textblock
37678 #: ../src/guestfs.pod:1159
37679 msgid ""
37680 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
37681 "filesystem labels."
37682 msgstr ""
37683
37684 #. type: textblock
37685 #: ../src/guestfs.pod:1166
37686 msgid ""
37687 "This section discusses security implications of using libguestfs, "
37688 "particularly with untrusted or malicious guests or disk images."
37689 msgstr ""
37690
37691 #. type: =head2
37692 #: ../src/guestfs.pod:1169
37693 msgid "GENERAL SECURITY CONSIDERATIONS"
37694 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
37695
37696 #. type: textblock
37697 #: ../src/guestfs.pod:1171
37698 msgid ""
37699 "Be careful with any files or data that you download from a guest (by "
37700 "\"download\" we mean not just the L</guestfs_download> command but any "
37701 "command that reads files, filenames, directories or anything else from a "
37702 "disk image).  An attacker could manipulate the data to fool your program "
37703 "into doing the wrong thing.  Consider cases such as:"
37704 msgstr ""
37705
37706 #. type: textblock
37707 #: ../src/guestfs.pod:1181
37708 msgid "the data (file etc) not being present"
37709 msgstr ""
37710
37711 #. type: textblock
37712 #: ../src/guestfs.pod:1185
37713 msgid "being present but empty"
37714 msgstr ""
37715
37716 #. type: textblock
37717 #: ../src/guestfs.pod:1189
37718 msgid "being much larger than normal"
37719 msgstr ""
37720
37721 #. type: textblock
37722 #: ../src/guestfs.pod:1193
37723 msgid "containing arbitrary 8 bit data"
37724 msgstr ""
37725
37726 #. type: textblock
37727 #: ../src/guestfs.pod:1197
37728 msgid "being in an unexpected character encoding"
37729 msgstr ""
37730
37731 #. type: textblock
37732 #: ../src/guestfs.pod:1201
37733 msgid "containing homoglyphs."
37734 msgstr ""
37735
37736 #. type: =head2
37737 #: ../src/guestfs.pod:1205
37738 msgid "SECURITY OF MOUNTING FILESYSTEMS"
37739 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
37740
37741 #. type: textblock
37742 #: ../src/guestfs.pod:1207
37743 msgid ""
37744 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
37745 "(VFS) module can sometimes be escalated into exploits by deliberately "
37746 "creating a malicious, malformed filesystem.  These exploits are very severe "
37747 "for two reasons.  Firstly there are very many filesystem drivers in the "
37748 "kernel, and many of them are infrequently used and not much developer "
37749 "attention has been paid to the code.  Linux userspace helps potential "
37750 "crackers by detecting the filesystem type and automatically choosing the "
37751 "right VFS driver, even if that filesystem type is obscure or unexpected for "
37752 "the administrator.  Secondly, a kernel-level exploit is like a local root "
37753 "exploit (worse in some ways), giving immediate and total access to the "
37754 "system right down to the hardware level."
37755 msgstr ""
37756
37757 #. type: textblock
37758 #: ../src/guestfs.pod:1220
37759 msgid ""
37760 "That explains why you should never mount a filesystem from an untrusted "
37761 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
37762 "inside a qemu virtual machine, usually running as a non-root user.  The "
37763 "attacker would need to write a filesystem which first exploited the kernel, "
37764 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
37765 "the libguestfs protocol, and finally to be as serious as the host kernel "
37766 "exploit it would need to escalate its privileges to root.  This multi-step "
37767 "escalation, performed by a static piece of data, is thought to be extremely "
37768 "hard to do, although we never say 'never' about security issues."
37769 msgstr ""
37770
37771 #. type: textblock
37772 #: ../src/guestfs.pod:1231
37773 msgid ""
37774 "In any case callers can reduce the attack surface by forcing the filesystem "
37775 "type when mounting (use L</guestfs_mount_vfs>)."
37776 msgstr ""
37777
37778 #. type: =head2
37779 #: ../src/guestfs.pod:1234
37780 msgid "PROTOCOL SECURITY"
37781 msgstr "ЗАХИСТ ПРОТОКОЛУ"
37782
37783 #. type: textblock
37784 #: ../src/guestfs.pod:1236
37785 msgid ""
37786 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
37787 "defined upper message size.  However a program that uses libguestfs must "
37788 "also take care - for example you can write a program that downloads a binary "
37789 "from a disk image and executes it locally, and no amount of protocol "
37790 "security will save you from the consequences."
37791 msgstr ""
37792
37793 #. type: =head2
37794 #: ../src/guestfs.pod:1242
37795 msgid "INSPECTION SECURITY"
37796 msgstr ""
37797
37798 #. type: textblock
37799 #: ../src/guestfs.pod:1244
37800 msgid ""
37801 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
37802 "directly from the guest, and these could contain any 8 bit data.  Callers "
37803 "should be careful to escape these before printing them to a structured file "
37804 "(for example, use HTML escaping if creating a web page)."
37805 msgstr ""
37806
37807 #. type: textblock
37808 #: ../src/guestfs.pod:1250
37809 msgid ""
37810 "Guest configuration may be altered in unusual ways by the administrator of "
37811 "the virtual machine, and may not reflect reality (particularly for untrusted "
37812 "or actively malicious guests).  For example we parse the hostname from "
37813 "configuration files like C</etc/sysconfig/network> that we find in the "
37814 "guest, but the guest administrator can easily manipulate these files to "
37815 "provide the wrong hostname."
37816 msgstr ""
37817
37818 #. type: textblock
37819 #: ../src/guestfs.pod:1258
37820 msgid ""
37821 "The inspection API parses guest configuration using two external libraries: "
37822 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
37823 "designed to be robust in the face of malicious data, although denial of "
37824 "service attacks are still possible, for example with oversized configuration "
37825 "files."
37826 msgstr ""
37827
37828 #. type: =head2
37829 #: ../src/guestfs.pod:1264
37830 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37831 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
37832
37833 #. type: textblock
37834 #: ../src/guestfs.pod:1266
37835 msgid ""
37836 "Be very cautious about running commands from the guest.  By running a "
37837 "command in the guest, you are giving CPU time to a binary that you do not "
37838 "control, under the same user account as the library, albeit wrapped in qemu "
37839 "virtualization.  More information and alternatives can be found in the "
37840 "section L</RUNNING COMMANDS>."
37841 msgstr ""
37842
37843 #. type: =head2
37844 #: ../src/guestfs.pod:1272
37845 msgid "CVE-2010-3851"
37846 msgstr "CVE-2010-3851"
37847
37848 #. type: textblock
37849 #: ../src/guestfs.pod:1274
37850 msgid "https://bugzilla.redhat.com/642934"
37851 msgstr "https://bugzilla.redhat.com/642934"
37852
37853 #. type: textblock
37854 #: ../src/guestfs.pod:1276
37855 msgid ""
37856 "This security bug concerns the automatic disk format detection that qemu "
37857 "does on disk images."
37858 msgstr ""
37859
37860 #. type: textblock
37861 #: ../src/guestfs.pod:1279
37862 msgid ""
37863 "A raw disk image is just the raw bytes, there is no header.  Other disk "
37864 "images like qcow2 contain a special header.  Qemu deals with this by looking "
37865 "for one of the known headers, and if none is found then assuming the disk "
37866 "image must be raw."
37867 msgstr ""
37868
37869 #. type: textblock
37870 #: ../src/guestfs.pod:1284
37871 msgid ""
37872 "This allows a guest which has been given a raw disk image to write some "
37873 "other header.  At next boot (or when the disk image is accessed by "
37874 "libguestfs) qemu would do autodetection and think the disk image format was, "
37875 "say, qcow2 based on the header written by the guest."
37876 msgstr ""
37877
37878 #. type: textblock
37879 #: ../src/guestfs.pod:1289
37880 msgid ""
37881 "This in itself would not be a problem, but qcow2 offers many features, one "
37882 "of which is to allow a disk image to refer to another image (called the "
37883 "\"backing disk\").  It does this by placing the path to the backing disk "
37884 "into the qcow2 header.  This path is not validated and could point to any "
37885 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
37886 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37887 "control of the attacker."
37888 msgstr ""
37889
37890 #. type: textblock
37891 #: ../src/guestfs.pod:1297
37892 msgid ""
37893 "In libguestfs this is rather hard to exploit except under two circumstances:"
37894 msgstr ""
37895
37896 #. type: textblock
37897 #: ../src/guestfs.pod:1304
37898 msgid "You have enabled the network or have opened the disk in write mode."
37899 msgstr ""
37900
37901 #. type: textblock
37902 #: ../src/guestfs.pod:1308
37903 msgid ""
37904 "You are also running untrusted code from the guest (see L</RUNNING "
37905 "COMMANDS>)."
37906 msgstr ""
37907
37908 #. type: textblock
37909 #: ../src/guestfs.pod:1313
37910 msgid ""
37911 "The way to avoid this is to specify the expected disk format when adding "
37912 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
37913 "should always do this if the disk is raw format, and it's a good idea for "
37914 "other cases too."
37915 msgstr ""
37916
37917 #. type: textblock
37918 #: ../src/guestfs.pod:1318
37919 msgid ""
37920 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37921 "format is fetched from libvirt and passed through."
37922 msgstr ""
37923
37924 #. type: textblock
37925 #: ../src/guestfs.pod:1321
37926 msgid ""
37927 "For libguestfs tools, use the I<--format> command line parameter as "
37928 "appropriate."
37929 msgstr ""
37930
37931 #. type: =head1
37932 #: ../src/guestfs.pod:1324
37933 msgid "CONNECTION MANAGEMENT"
37934 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
37935
37936 #. type: =head2
37937 #: ../src/guestfs.pod:1326
37938 msgid "guestfs_h *"
37939 msgstr "guestfs_h *"
37940
37941 #. type: textblock
37942 #: ../src/guestfs.pod:1328
37943 msgid ""
37944 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
37945 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
37946 "handle and release all resources used."
37947 msgstr ""
37948
37949 #. type: textblock
37950 #: ../src/guestfs.pod:1332
37951 msgid ""
37952 "For information on using multiple handles and threads, see the section L</"
37953 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37954 msgstr ""
37955
37956 #. type: =head2
37957 #: ../src/guestfs.pod:1335
37958 msgid "guestfs_create"
37959 msgstr "guestfs_create"
37960
37961 #. type: verbatim
37962 #: ../src/guestfs.pod:1337
37963 #, no-wrap
37964 msgid ""
37965 " guestfs_h *guestfs_create (void);\n"
37966 "\n"
37967 msgstr ""
37968 " guestfs_h *guestfs_create (void);\n"
37969 "\n"
37970
37971 #. type: textblock
37972 #: ../src/guestfs.pod:1339
37973 msgid "Create a connection handle."
37974 msgstr "Створити дескриптор з’єднання."
37975
37976 #. type: textblock
37977 #: ../src/guestfs.pod:1341
37978 msgid ""
37979 "On success this returns a non-NULL pointer to a handle.  On error it returns "
37980 "NULL."
37981 msgstr ""
37982
37983 #. type: textblock
37984 #: ../src/guestfs.pod:1344
37985 msgid ""
37986 "You have to \"configure\" the handle after creating it.  This includes "
37987 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37988 "handle at least once."
37989 msgstr ""
37990
37991 #. type: textblock
37992 #: ../src/guestfs.pod:1348
37993 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37994 msgstr ""
37995
37996 #. type: textblock
37997 #: ../src/guestfs.pod:1350
37998 msgid ""
37999 "You may also want to configure error handling for the handle.  See the L</"
38000 "ERROR HANDLING> section below."
38001 msgstr ""
38002
38003 #. type: =head2
38004 #: ../src/guestfs.pod:1353
38005 msgid "guestfs_close"
38006 msgstr "guestfs_close"
38007
38008 #. type: verbatim
38009 #: ../src/guestfs.pod:1355
38010 #, no-wrap
38011 msgid ""
38012 " void guestfs_close (guestfs_h *g);\n"
38013 "\n"
38014 msgstr ""
38015 " void guestfs_close (guestfs_h *g);\n"
38016 "\n"
38017
38018 #. type: textblock
38019 #: ../src/guestfs.pod:1357
38020 msgid "This closes the connection handle and frees up all resources used."
38021 msgstr ""
38022
38023 #. type: textblock
38024 #: ../src/guestfs.pod:1359
38025 msgid ""
38026 "If autosync was set on the handle and the handle was launched, then this "
38027 "implicitly calls various functions to unmount filesystems and sync the "
38028 "disk.  See L</guestfs_set_autosync> for more details."
38029 msgstr ""
38030
38031 #. type: textblock
38032 #: ../src/guestfs.pod:1363
38033 msgid "If a close callback was set on the handle, then it is called."
38034 msgstr ""
38035
38036 #. type: =head1
38037 #: ../src/guestfs.pod:1365
38038 msgid "ERROR HANDLING"
38039 msgstr "ОБРОБКА ПОМИЛОК"
38040
38041 #. type: textblock
38042 #: ../src/guestfs.pod:1367
38043 msgid ""
38044 "API functions can return errors.  For example, almost all functions that "
38045 "return C<int> will return C<-1> to indicate an error."
38046 msgstr ""
38047
38048 #. type: textblock
38049 #: ../src/guestfs.pod:1370
38050 msgid ""
38051 "Additional information is available for errors: an error message string and "
38052 "optionally an error number (errno) if the thing that failed was a system "
38053 "call."
38054 msgstr ""
38055
38056 #. type: textblock
38057 #: ../src/guestfs.pod:1374
38058 msgid ""
38059 "You can get at the additional information about the last error on the handle "
38060 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
38061 "up an error handler with L</guestfs_set_error_handler>."
38062 msgstr ""
38063
38064 #. type: textblock
38065 #: ../src/guestfs.pod:1379
38066 msgid ""
38067 "When the handle is created, a default error handler is installed which "
38068 "prints the error message string to C<stderr>.  For small short-running "
38069 "command line programs it is sufficient to do:"
38070 msgstr ""
38071
38072 #. type: verbatim
38073 #: ../src/guestfs.pod:1383
38074 #, no-wrap
38075 msgid ""
38076 " if (guestfs_launch (g) == -1)\n"
38077 "   exit (EXIT_FAILURE);\n"
38078 "\n"
38079 msgstr ""
38080 " if (guestfs_launch (g) == -1)\n"
38081 "   exit (EXIT_FAILURE);\n"
38082 "\n"
38083
38084 #. type: textblock
38085 #: ../src/guestfs.pod:1386
38086 msgid ""
38087 "since the default error handler will ensure that an error message has been "
38088 "printed to C<stderr> before the program exits."
38089 msgstr ""
38090
38091 #. type: textblock
38092 #: ../src/guestfs.pod:1389
38093 msgid ""
38094 "For other programs the caller will almost certainly want to install an "
38095 "alternate error handler or do error handling in-line like this:"
38096 msgstr ""
38097
38098 #. type: verbatim
38099 #: ../src/guestfs.pod:1392
38100 #, no-wrap
38101 msgid ""
38102 " /* This disables the default behaviour of printing errors\n"
38103 "    on stderr. */\n"
38104 " guestfs_set_error_handler (g, NULL, NULL);\n"
38105 " \n"
38106 msgstr ""
38107
38108 #. type: verbatim
38109 #: ../src/guestfs.pod:1396
38110 #, no-wrap
38111 msgid ""
38112 " if (guestfs_launch (g) == -1) {\n"
38113 "   /* Examine the error message and print it etc. */\n"
38114 "   char *msg = guestfs_last_error (g);\n"
38115 "   int errnum = guestfs_last_errno (g);\n"
38116 "   fprintf (stderr, \"%s\", msg);\n"
38117 "   if (errnum != 0)\n"
38118 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
38119 "   fprintf (stderr, \"\\n\");\n"
38120 "   /* ... */\n"
38121 " }\n"
38122 "\n"
38123 msgstr ""
38124
38125 #. type: textblock
38126 #: ../src/guestfs.pod:1407
38127 msgid ""
38128 "Out of memory errors are handled differently.  The default action is to call "
38129 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
38130 "guestfs_set_out_of_memory_handler>."
38131 msgstr ""
38132
38133 #. type: textblock
38134 #: ../src/guestfs.pod:1411
38135 msgid ""
38136 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
38137 "because there is no handle if this happens there is no way to get additional "
38138 "error information.  However L</guestfs_create> is supposed to be a "
38139 "lightweight operation which can only fail because of insufficient memory (it "
38140 "returns NULL in this case)."
38141 msgstr ""
38142
38143 #. type: =head2
38144 #: ../src/guestfs.pod:1417
38145 msgid "guestfs_last_error"
38146 msgstr "guestfs_last_error"
38147
38148 #. type: verbatim
38149 #: ../src/guestfs.pod:1419
38150 #, no-wrap
38151 msgid ""
38152 " const char *guestfs_last_error (guestfs_h *g);\n"
38153 "\n"
38154 msgstr ""
38155 " const char *guestfs_last_error (guestfs_h *g);\n"
38156 "\n"
38157
38158 #. type: textblock
38159 #: ../src/guestfs.pod:1421
38160 msgid ""
38161 "This returns the last error message that happened on C<g>.  If there has not "
38162 "been an error since the handle was created, then this returns C<NULL>."
38163 msgstr ""
38164
38165 #. type: textblock
38166 #: ../src/guestfs.pod:1425
38167 msgid ""
38168 "The lifetime of the returned string is until the next error occurs, or L</"
38169 "guestfs_close> is called."
38170 msgstr ""
38171
38172 #. type: =head2
38173 #: ../src/guestfs.pod:1428
38174 msgid "guestfs_last_errno"
38175 msgstr "guestfs_last_errno"
38176
38177 #. type: verbatim
38178 #: ../src/guestfs.pod:1430
38179 #, no-wrap
38180 msgid ""
38181 " int guestfs_last_errno (guestfs_h *g);\n"
38182 "\n"
38183 msgstr ""
38184 " int guestfs_last_errno (guestfs_h *g);\n"
38185 "\n"
38186
38187 #. type: textblock
38188 #: ../src/guestfs.pod:1432
38189 msgid "This returns the last error number (errno) that happened on C<g>."
38190 msgstr ""
38191
38192 #. type: textblock
38193 #: ../src/guestfs.pod:1434
38194 msgid "If successful, an errno integer not equal to zero is returned."
38195 msgstr ""
38196
38197 #. type: textblock
38198 #: ../src/guestfs.pod:1436
38199 msgid ""
38200 "If no error, this returns 0.  This call can return 0 in three situations:"
38201 msgstr ""
38202
38203 #. type: textblock
38204 #: ../src/guestfs.pod:1443
38205 msgid "There has not been any error on the handle."
38206 msgstr ""
38207
38208 #. type: textblock
38209 #: ../src/guestfs.pod:1447
38210 msgid ""
38211 "There has been an error but the errno was meaningless.  This corresponds to "
38212 "the case where the error did not come from a failed system call, but for "
38213 "some other reason."
38214 msgstr ""
38215
38216 #. type: textblock
38217 #: ../src/guestfs.pod:1453
38218 msgid ""
38219 "There was an error from a failed system call, but for some reason the errno "
38220 "was not captured and returned.  This usually indicates a bug in libguestfs."
38221 msgstr ""
38222
38223 #. type: textblock
38224 #: ../src/guestfs.pod:1459
38225 msgid ""
38226 "Libguestfs tries to convert the errno from inside the applicance into a "
38227 "corresponding errno for the caller (not entirely trivial: the appliance "
38228 "might be running a completely different operating system from the library "
38229 "and error numbers are not standardized across Un*xen).  If this could not be "
38230 "done, then the error is translated to C<EINVAL>.  In practice this should "
38231 "only happen in very rare circumstances."
38232 msgstr ""
38233
38234 #. type: =head2
38235 #: ../src/guestfs.pod:1467
38236 msgid "guestfs_set_error_handler"
38237 msgstr "guestfs_set_error_handler"
38238
38239 #. type: verbatim
38240 #: ../src/guestfs.pod:1469
38241 #, no-wrap
38242 msgid ""
38243 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38244 "                                           void *opaque,\n"
38245 "                                           const char *msg);\n"
38246 " void guestfs_set_error_handler (guestfs_h *g,\n"
38247 "                                 guestfs_error_handler_cb cb,\n"
38248 "                                 void *opaque);\n"
38249 "\n"
38250 msgstr ""
38251 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
38252 "                                           void *opaque,\n"
38253 "                                           const char *msg);\n"
38254 " void guestfs_set_error_handler (guestfs_h *g,\n"
38255 "                                 guestfs_error_handler_cb cb,\n"
38256 "                                 void *opaque);\n"
38257 "\n"
38258
38259 #. type: textblock
38260 #: ../src/guestfs.pod:1476
38261 msgid ""
38262 "The callback C<cb> will be called if there is an error.  The parameters "
38263 "passed to the callback are an opaque data pointer and the error message "
38264 "string."
38265 msgstr ""
38266
38267 #. type: textblock
38268 #: ../src/guestfs.pod:1480
38269 msgid ""
38270 "C<errno> is not passed to the callback.  To get that the callback must call "
38271 "L</guestfs_last_errno>."
38272 msgstr ""
38273
38274 #. type: textblock
38275 #: ../src/guestfs.pod:1483
38276 msgid ""
38277 "Note that the message string C<msg> is freed as soon as the callback "
38278 "function returns, so if you want to stash it somewhere you must make your "
38279 "own copy."
38280 msgstr ""
38281
38282 #. type: textblock
38283 #: ../src/guestfs.pod:1487
38284 msgid "The default handler prints messages on C<stderr>."
38285 msgstr ""
38286
38287 #. type: textblock
38288 #: ../src/guestfs.pod:1489
38289 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
38290 msgstr ""
38291
38292 #. type: =head2
38293 #: ../src/guestfs.pod:1491
38294 msgid "guestfs_get_error_handler"
38295 msgstr "guestfs_get_error_handler"
38296
38297 #. type: verbatim
38298 #: ../src/guestfs.pod:1493
38299 #, no-wrap
38300 msgid ""
38301 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38302 "                                                     void **opaque_rtn);\n"
38303 "\n"
38304 msgstr ""
38305 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
38306 "                                                     void **opaque_rtn);\n"
38307 "\n"
38308
38309 #. type: textblock
38310 #: ../src/guestfs.pod:1496
38311 msgid "Returns the current error handler callback."
38312 msgstr ""
38313
38314 #. type: =head2
38315 #: ../src/guestfs.pod:1498
38316 msgid "guestfs_set_out_of_memory_handler"
38317 msgstr "guestfs_set_out_of_memory_handler"
38318
38319 #. type: verbatim
38320 #: ../src/guestfs.pod:1500
38321 #, no-wrap
38322 msgid ""
38323 " typedef void (*guestfs_abort_cb) (void);\n"
38324 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
38325 "                                         guestfs_abort_cb);\n"
38326 "\n"
38327 msgstr ""
38328
38329 #. type: textblock
38330 #: ../src/guestfs.pod:1504
38331 msgid ""
38332 "The callback C<cb> will be called if there is an out of memory situation.  "
38333 "I<Note this callback must not return>."
38334 msgstr ""
38335
38336 #. type: textblock
38337 #: ../src/guestfs.pod:1507
38338 msgid "The default is to call L<abort(3)>."
38339 msgstr ""
38340
38341 #. type: textblock
38342 #: ../src/guestfs.pod:1509
38343 msgid ""
38344 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
38345 msgstr ""
38346
38347 #. type: =head2
38348 #: ../src/guestfs.pod:1512
38349 msgid "guestfs_get_out_of_memory_handler"
38350 msgstr "guestfs_get_out_of_memory_handler"
38351
38352 #. type: verbatim
38353 #: ../src/guestfs.pod:1514
38354 #, no-wrap
38355 msgid ""
38356 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38357 "\n"
38358 msgstr ""
38359 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
38360 "\n"
38361
38362 #. type: textblock
38363 #: ../src/guestfs.pod:1516
38364 msgid "This returns the current out of memory handler."
38365 msgstr ""
38366
38367 #. type: =head1
38368 #: ../src/guestfs.pod:1518
38369 msgid "API CALLS"
38370 msgstr "ВИКЛИКИ API"
38371
38372 #. type: =head1
38373 #: ../src/guestfs.pod:1522
38374 msgid "STRUCTURES"
38375 msgstr "СТРУКТУРИ"
38376
38377 #. type: textblock
38378 #: ../src/guestfs.pod:1524
38379 msgid "@STRUCTS@"
38380 msgstr "@STRUCTS@"
38381
38382 #. type: =head1
38383 #: ../src/guestfs.pod:1526
38384 msgid "AVAILABILITY"
38385 msgstr "ДОСТУПНІСТЬ"
38386
38387 #. type: =head2
38388 #: ../src/guestfs.pod:1528
38389 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
38390 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
38391
38392 #. type: textblock
38393 #: ../src/guestfs.pod:1530
38394 msgid ""
38395 "Using L</guestfs_available> you can test availability of the following "
38396 "groups of functions.  This test queries the appliance to see if the "
38397 "appliance you are currently using supports the functionality."
38398 msgstr ""
38399
38400 #. type: textblock
38401 #: ../src/guestfs.pod:1535
38402 msgid "@AVAILABILITY@"
38403 msgstr "@AVAILABILITY@"
38404
38405 #. type: =head2
38406 #: ../src/guestfs.pod:1537
38407 msgid "GUESTFISH supported COMMAND"
38408 msgstr ""
38409
38410 #. type: textblock
38411 #: ../src/guestfs.pod:1539
38412 msgid ""
38413 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
38414 "prints out the available groups and whether they are supported by this build "
38415 "of libguestfs.  Note however that you have to do C<run> first."
38416 msgstr ""
38417
38418 #. type: =head2
38419 #: ../src/guestfs.pod:1544
38420 msgid "SINGLE CALLS AT COMPILE TIME"
38421 msgstr ""
38422
38423 #. type: textblock
38424 #: ../src/guestfs.pod:1546
38425 msgid ""
38426 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
38427 "function, such as:"
38428 msgstr ""
38429
38430 #. type: verbatim
38431 #: ../src/guestfs.pod:1549
38432 #, no-wrap
38433 msgid ""
38434 " #define LIBGUESTFS_HAVE_DD 1\n"
38435 "\n"
38436 msgstr ""
38437 " #define LIBGUESTFS_HAVE_DD 1\n"
38438 "\n"
38439
38440 #. type: textblock
38441 #: ../src/guestfs.pod:1551
38442 msgid "if L</guestfs_dd> is available."
38443 msgstr ""
38444
38445 #. type: textblock
38446 #: ../src/guestfs.pod:1553
38447 msgid ""
38448 "Before version 1.5.8, if you needed to test whether a single libguestfs "
38449 "function is available at compile time, we recommended using build tools such "
38450 "as autoconf or cmake.  For example in autotools you could use:"
38451 msgstr ""
38452
38453 #. type: verbatim
38454 #: ../src/guestfs.pod:1558
38455 #, no-wrap
38456 msgid ""
38457 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38458 " AC_CHECK_FUNCS([guestfs_dd])\n"
38459 "\n"
38460 msgstr ""
38461 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
38462 " AC_CHECK_FUNCS([guestfs_dd])\n"
38463 "\n"
38464
38465 #. type: textblock
38466 #: ../src/guestfs.pod:1561
38467 msgid ""
38468 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
38469 "in your program."
38470 msgstr ""
38471
38472 #. type: =head2
38473 #: ../src/guestfs.pod:1564
38474 msgid "SINGLE CALLS AT RUN TIME"
38475 msgstr ""
38476
38477 #. type: textblock
38478 #: ../src/guestfs.pod:1566
38479 msgid ""
38480 "Testing at compile time doesn't guarantee that a function really exists in "
38481 "the library.  The reason is that you might be dynamically linked against a "
38482 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
38483 "This situation unfortunately results in a segmentation fault, which is a "
38484 "shortcoming of the C dynamic linking system itself."
38485 msgstr ""
38486
38487 #. type: textblock
38488 #: ../src/guestfs.pod:1573
38489 msgid ""
38490 "You can use L<dlopen(3)> to test if a function is available at run time, as "
38491 "in this example program (note that you still need the compile time check as "
38492 "well):"
38493 msgstr ""
38494
38495 #. type: verbatim
38496 #: ../src/guestfs.pod:1577
38497 #, no-wrap
38498 msgid ""
38499 " #include <stdio.h>\n"
38500 " #include <stdlib.h>\n"
38501 " #include <unistd.h>\n"
38502 " #include <dlfcn.h>\n"
38503 " #include <guestfs.h>\n"
38504 " \n"
38505 msgstr ""
38506 " #include <stdio.h>\n"
38507 " #include <stdlib.h>\n"
38508 " #include <unistd.h>\n"
38509 " #include <dlfcn.h>\n"
38510 " #include <guestfs.h>\n"
38511 " \n"
38512
38513 #. type: verbatim
38514 #: ../src/guestfs.pod:1583
38515 #, no-wrap
38516 msgid ""
38517 " main ()\n"
38518 " {\n"
38519 " #ifdef LIBGUESTFS_HAVE_DD\n"
38520 "   void *dl;\n"
38521 "   int has_function;\n"
38522 " \n"
38523 msgstr ""
38524 " main ()\n"
38525 " {\n"
38526 " #ifdef LIBGUESTFS_HAVE_DD\n"
38527 "   void *dl;\n"
38528 "   int has_function;\n"
38529 " \n"
38530
38531 #. type: verbatim
38532 #: ../src/guestfs.pod:1589
38533 #, no-wrap
38534 msgid ""
38535 "   /* Test if the function guestfs_dd is really available. */\n"
38536 "   dl = dlopen (NULL, RTLD_LAZY);\n"
38537 "   if (!dl) {\n"
38538 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
38539 "     exit (EXIT_FAILURE);\n"
38540 "   }\n"
38541 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
38542 "   dlclose (dl);\n"
38543 " \n"
38544 msgstr ""
38545
38546 #. type: verbatim
38547 #: ../src/guestfs.pod:1598
38548 #, no-wrap
38549 msgid ""
38550 "   if (!has_function)\n"
38551 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
38552 "   else {\n"
38553 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
38554 "     /* Now it's safe to call\n"
38555 "     guestfs_dd (g, \"foo\", \"bar\");\n"
38556 "     */\n"
38557 "   }\n"
38558 " #else\n"
38559 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
38560 " #endif\n"
38561 "  }\n"
38562 "\n"
38563 msgstr ""
38564
38565 #. type: textblock
38566 #: ../src/guestfs.pod:1611
38567 msgid ""
38568 "You may think the above is an awful lot of hassle, and it is.  There are "
38569 "other ways outside of the C linking system to ensure that this kind of "
38570 "incompatibility never arises, such as using package versioning:"
38571 msgstr ""
38572
38573 #. type: verbatim
38574 #: ../src/guestfs.pod:1616
38575 #, no-wrap
38576 msgid ""
38577 " Requires: libguestfs >= 1.0.80\n"
38578 "\n"
38579 msgstr ""
38580
38581 #. type: =head1
38582 #: ../src/guestfs.pod:1618
38583 msgid "CALLS WITH OPTIONAL ARGUMENTS"
38584 msgstr ""
38585
38586 #. type: textblock
38587 #: ../src/guestfs.pod:1620
38588 msgid ""
38589 "A recent feature of the API is the introduction of calls which take optional "
38590 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
38591 "takes variable arguments (ie. C<...>), as in this example:"
38592 msgstr ""
38593
38594 #. type: verbatim
38595 #: ../src/guestfs.pod:1625
38596 #, no-wrap
38597 msgid ""
38598 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38599 "\n"
38600 msgstr ""
38601 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
38602 "\n"
38603
38604 #. type: textblock
38605 #: ../src/guestfs.pod:1627
38606 msgid ""
38607 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
38608 "call with no optional arguments specified:"
38609 msgstr ""
38610
38611 #. type: verbatim
38612 #: ../src/guestfs.pod:1630
38613 #, no-wrap
38614 msgid ""
38615 " guestfs_add_drive_opts (g, filename, -1);\n"
38616 "\n"
38617 msgstr ""
38618 " guestfs_add_drive_opts (g, filename, -1);\n"
38619 "\n"
38620
38621 #. type: textblock
38622 #: ../src/guestfs.pod:1632
38623 msgid "With a single optional argument:"
38624 msgstr ""
38625
38626 #. type: verbatim
38627 #: ../src/guestfs.pod:1634
38628 #, no-wrap
38629 msgid ""
38630 " guestfs_add_drive_opts (g, filename,\n"
38631 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38632 "                         -1);\n"
38633 "\n"
38634 msgstr ""
38635 " guestfs_add_drive_opts (g, filename,\n"
38636 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38637 "                         -1);\n"
38638 "\n"
38639
38640 #. type: textblock
38641 #: ../src/guestfs.pod:1638
38642 msgid "With two:"
38643 msgstr ""
38644
38645 #. type: verbatim
38646 #: ../src/guestfs.pod:1640
38647 #, no-wrap
38648 msgid ""
38649 " guestfs_add_drive_opts (g, filename,\n"
38650 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38651 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38652 "                         -1);\n"
38653 "\n"
38654 msgstr ""
38655 " guestfs_add_drive_opts (g, filename,\n"
38656 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
38657 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
38658 "                         -1);\n"
38659 "\n"
38660
38661 #. type: textblock
38662 #: ../src/guestfs.pod:1645
38663 msgid ""
38664 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
38665 "happen!"
38666 msgstr ""
38667
38668 #. type: =head2
38669 #: ../src/guestfs.pod:1648
38670 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
38671 msgstr ""
38672
38673 #. type: textblock
38674 #: ../src/guestfs.pod:1650
38675 msgid ""
38676 "The second variant has the same name with the suffix C<_va>, which works the "
38677 "same way but takes a C<va_list>.  See the C manual for details.  For the "
38678 "example function, this is declared:"
38679 msgstr ""
38680
38681 #. type: verbatim
38682 #: ../src/guestfs.pod:1654
38683 #, no-wrap
38684 msgid ""
38685 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38686 "                                va_list args);\n"
38687 "\n"
38688 msgstr ""
38689 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
38690 "                                va_list args);\n"
38691 "\n"
38692
38693 #. type: =head2
38694 #: ../src/guestfs.pod:1657
38695 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
38696 msgstr ""
38697
38698 #. type: textblock
38699 #: ../src/guestfs.pod:1659
38700 msgid ""
38701 "The third variant is useful where you need to construct these calls.  You "
38702 "pass in a structure where you fill in the optional fields.  The structure "
38703 "has a bitmask as the first element which you must set to indicate which "
38704 "fields you have filled in.  For our example function the structure and call "
38705 "are declared:"
38706 msgstr ""
38707
38708 #. type: verbatim
38709 #: ../src/guestfs.pod:1665
38710 #, no-wrap
38711 msgid ""
38712 " struct guestfs_add_drive_opts_argv {\n"
38713 "   uint64_t bitmask;\n"
38714 "   int readonly;\n"
38715 "   const char *format;\n"
38716 "   /* ... */\n"
38717 " };\n"
38718 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38719 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38720 "\n"
38721 msgstr ""
38722 " struct guestfs_add_drive_opts_argv {\n"
38723 "   uint64_t bitmask;\n"
38724 "   int readonly;\n"
38725 "   const char *format;\n"
38726 "   /* ... */\n"
38727 " };\n"
38728 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
38729 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
38730 "\n"
38731
38732 #. type: textblock
38733 #: ../src/guestfs.pod:1674
38734 msgid "You could call it like this:"
38735 msgstr ""
38736
38737 #. type: verbatim
38738 #: ../src/guestfs.pod:1676
38739 #, no-wrap
38740 msgid ""
38741 " struct guestfs_add_drive_opts_argv optargs = {\n"
38742 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38743 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38744 "   .readonly = 1,\n"
38745 "   .format = \"qcow2\"\n"
38746 " };\n"
38747 " \n"
38748 msgstr ""
38749 " struct guestfs_add_drive_opts_argv optargs = {\n"
38750 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
38751 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
38752 "   .readonly = 1,\n"
38753 "   .format = \"qcow2\"\n"
38754 " };\n"
38755 " \n"
38756
38757 #. type: verbatim
38758 #: ../src/guestfs.pod:1683
38759 #, no-wrap
38760 msgid ""
38761 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38762 "\n"
38763 msgstr ""
38764 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
38765 "\n"
38766
38767 #. type: textblock
38768 #: ../src/guestfs.pod:1691
38769 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
38770 msgstr ""
38771
38772 #. type: textblock
38773 #: ../src/guestfs.pod:1696
38774 msgid "You do not need to fill in all fields of the structure."
38775 msgstr ""
38776
38777 #. type: textblock
38778 #: ../src/guestfs.pod:1700
38779 msgid ""
38780 "There must be a one-to-one correspondence between fields of the structure "
38781 "that are filled in, and bits set in the bitmask."
38782 msgstr ""
38783
38784 #. type: =head2
38785 #: ../src/guestfs.pod:1705
38786 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
38787 msgstr ""
38788
38789 #. type: textblock
38790 #: ../src/guestfs.pod:1707
38791 msgid ""
38792 "In other languages, optional arguments are expressed in the way that is "
38793 "natural for that language.  We refer you to the language-specific "
38794 "documentation for more details on that."
38795 msgstr ""
38796
38797 #. type: textblock
38798 #: ../src/guestfs.pod:1711
38799 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
38800 msgstr ""
38801
38802 #. type: =head2
38803 #: ../src/guestfs.pod:1713
38804 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
38805 msgstr ""
38806
38807 #. type: textblock
38808 #: ../src/guestfs.pod:1715
38809 msgid ""
38810 "B<Note:> This section documents the generic event mechanism introduced in "
38811 "libguestfs 1.10, which you should use in new code if possible.  The old "
38812 "functions C<guestfs_set_log_message_callback>, "
38813 "C<guestfs_set_subprocess_quit_callback>, "
38814 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38815 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38816 "page.  Because of the ABI guarantee, the old functions continue to work."
38817 msgstr ""
38818
38819 #. type: textblock
38820 #: ../src/guestfs.pod:1724
38821 msgid ""
38822 "Handles generate events when certain things happen, such as log messages "
38823 "being generated, progress messages during long-running operations, or the "
38824 "handle being closed.  The API calls described below let you register a "
38825 "callback to be called when events happen.  You can register multiple "
38826 "callbacks (for the same, different or overlapping sets of events), and "
38827 "individually remove callbacks.  If callbacks are not removed, then they "
38828 "remain in force until the handle is closed."
38829 msgstr ""
38830
38831 #. type: textblock
38832 #: ../src/guestfs.pod:1732
38833 msgid ""
38834 "In the current implementation, events are only generated synchronously: that "
38835 "means that events (and hence callbacks) can only happen while you are in the "
38836 "middle of making another libguestfs call.  The callback is called in the "
38837 "same thread."
38838 msgstr ""
38839
38840 #. type: textblock
38841 #: ../src/guestfs.pod:1737
38842 msgid ""
38843 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38844 "unsigned integers, or a message buffer.  Payloads are discussed later on."
38845 msgstr ""
38846
38847 #. type: =head3
38848 #: ../src/guestfs.pod:1741
38849 msgid "CLASSES OF EVENTS"
38850 msgstr ""
38851
38852 #. type: =item
38853 #: ../src/guestfs.pod:1745
38854 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38855 msgstr ""
38856
38857 #. type: textblock
38858 #: ../src/guestfs.pod:1748
38859 msgid ""
38860 "The callback function will be called while the handle is being closed "
38861 "(synchronously from L</guestfs_close>)."
38862 msgstr ""
38863
38864 #. type: textblock
38865 #: ../src/guestfs.pod:1751
38866 msgid ""
38867 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38868 "handles that are open when the program exits.  This means that this callback "
38869 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38870 "problems in higher-level languages (eg. if your HLL interpreter has already "
38871 "been cleaned up by the time this is called, and if your callback then jumps "
38872 "into some HLL function)."
38873 msgstr ""
38874
38875 #. type: textblock
38876 #: ../src/guestfs.pod:1758
38877 msgid ""
38878 "If no callback is registered: the handle is closed without any callback "
38879 "being invoked."
38880 msgstr ""
38881
38882 #. type: =item
38883 #: ../src/guestfs.pod:1761
38884 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38885 msgstr ""
38886
38887 #. type: textblock
38888 #: ../src/guestfs.pod:1764
38889 msgid ""
38890 "The callback function will be called when the child process quits, either "
38891 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
38892 "corresponds to a transition from any state to the CONFIG state)."
38893 msgstr ""
38894
38895 #. type: textblock
38896 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
38897 msgid "If no callback is registered: the event is ignored."
38898 msgstr ""
38899
38900 #. type: =item
38901 #: ../src/guestfs.pod:1770
38902 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38903 msgstr ""
38904
38905 #. type: textblock
38906 #: ../src/guestfs.pod:1773
38907 msgid ""
38908 "The callback function will be called when the child process becomes ready "
38909 "first time after it has been launched.  (This corresponds to a transition "
38910 "from LAUNCHING to the READY state)."
38911 msgstr ""
38912
38913 #. type: =item
38914 #: ../src/guestfs.pod:1779
38915 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38916 msgstr ""
38917
38918 #. type: textblock
38919 #: ../src/guestfs.pod:1782
38920 msgid ""
38921 "Some long-running operations can generate progress messages.  If this "
38922 "callback is registered, then it will be called each time a progress message "
38923 "is generated (usually two seconds after the operation started, and three "
38924 "times per second thereafter until it completes, although the frequency may "
38925 "change in future versions)."
38926 msgstr ""
38927
38928 #. type: textblock
38929 #: ../src/guestfs.pod:1788
38930 msgid ""
38931 "The callback receives in the payload four unsigned 64 bit numbers which are "
38932 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38933 msgstr ""
38934
38935 #. type: textblock
38936 #: ../src/guestfs.pod:1791
38937 msgid ""
38938 "The units of C<total> are not defined, although for some operations C<total> "
38939 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38940 "or megabytes), and C<position> may be the portion which has been transferred."
38941 msgstr ""
38942
38943 #. type: textblock
38944 #: ../src/guestfs.pod:1796
38945 msgid "The only defined and stable parts of the API are:"
38946 msgstr ""
38947
38948 #. type: textblock
38949 #: ../src/guestfs.pod:1802
38950 msgid ""
38951 "The callback can display to the user some type of progress bar or indicator "
38952 "which shows the ratio of C<position>:C<total>."
38953 msgstr ""
38954
38955 #. type: textblock
38956 #: ../src/guestfs.pod:1807
38957 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38958 msgstr ""
38959
38960 #. type: textblock
38961 #: ../src/guestfs.pod:1811
38962 msgid ""
38963 "If any progress notification is sent during a call, then a final progress "
38964 "notification is always sent when C<position> = C<total> (I<unless> the call "
38965 "fails with an error)."
38966 msgstr ""
38967
38968 #. type: textblock
38969 #: ../src/guestfs.pod:1815
38970 msgid ""
38971 "This is to simplify caller code, so callers can easily set the progress "
38972 "indicator to \"100%\" at the end of the operation, without requiring special "
38973 "code to detect this case."
38974 msgstr ""
38975
38976 #. type: textblock
38977 #: ../src/guestfs.pod:1821
38978 msgid ""
38979 "For some calls we are unable to estimate the progress of the call, but we "
38980 "can still generate progress messages to indicate activity.  This is known as "
38981 "\"pulse mode\", and is directly supported by certain progress bar "
38982 "implementations (eg. GtkProgressBar)."
38983 msgstr ""
38984
38985 #. type: textblock
38986 #: ../src/guestfs.pod:1826
38987 msgid ""
38988 "For these calls, zero or more progress messages are generated with "
38989 "C<position = 0> and C<total = 1>, followed by a final message with "
38990 "C<position = total = 1>."
38991 msgstr ""
38992
38993 #. type: textblock
38994 #: ../src/guestfs.pod:1830
38995 msgid ""
38996 "As noted above, if the call fails with an error then the final message may "
38997 "not be generated."
38998 msgstr ""
38999
39000 #. type: textblock
39001 #: ../src/guestfs.pod:1835
39002 msgid ""
39003 "The callback also receives the procedure number (C<proc_nr>) and serial "
39004 "number (C<serial>) of the call.  These are only useful for debugging "
39005 "protocol issues, and the callback can normally ignore them.  The callback "
39006 "may want to print these numbers in error messages or debugging messages."
39007 msgstr ""
39008
39009 #. type: textblock
39010 #: ../src/guestfs.pod:1841
39011 msgid "If no callback is registered: progress messages are discarded."
39012 msgstr ""
39013
39014 #. type: =item
39015 #: ../src/guestfs.pod:1843
39016 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
39017 msgstr ""
39018
39019 #. type: textblock
39020 #: ../src/guestfs.pod:1846
39021 msgid ""
39022 "The callback function is called whenever a log message is generated by qemu, "
39023 "the appliance kernel, guestfsd (daemon), or utility programs."
39024 msgstr ""
39025
39026 #. type: textblock
39027 #: ../src/guestfs.pod:1849
39028 msgid ""
39029 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
39030 "guestfs_launch>) then additional debug messages are generated."
39031 msgstr ""
39032
39033 #. type: textblock
39034 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
39035 msgid ""
39036 "If no callback is registered: the messages are discarded unless the verbose "
39037 "flag is set in which case they are sent to stderr.  You can override the "
39038 "printing of verbose messages to stderr by setting up a callback."
39039 msgstr ""
39040
39041 #. type: =item
39042 #: ../src/guestfs.pod:1857
39043 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
39044 msgstr ""
39045
39046 #. type: textblock
39047 #: ../src/guestfs.pod:1860
39048 msgid ""
39049 "The callback function is called whenever a log message is generated by the "
39050 "library part of libguestfs."
39051 msgstr ""
39052
39053 #. type: textblock
39054 #: ../src/guestfs.pod:1863
39055 msgid ""
39056 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
39057 "messages are generated."
39058 msgstr ""
39059
39060 #. type: =item
39061 #: ../src/guestfs.pod:1871
39062 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
39063 msgstr ""
39064
39065 #. type: textblock
39066 #: ../src/guestfs.pod:1874
39067 msgid ""
39068 "The callback function is called whenever a trace message is generated.  This "
39069 "only applies if the trace flag (L</guestfs_set_trace>) is set."
39070 msgstr ""
39071
39072 #. type: textblock
39073 #: ../src/guestfs.pod:1877
39074 msgid ""
39075 "If no callback is registered: the messages are sent to stderr.  You can "
39076 "override the printing of trace messages to stderr by setting up a callback."
39077 msgstr ""
39078
39079 #. type: =item
39080 #: ../src/guestfs.pod:1881
39081 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
39082 msgstr ""
39083
39084 #. type: textblock
39085 #: ../src/guestfs.pod:1884
39086 msgid ""
39087 "The callback function is called whenever a libguestfs function is entered."
39088 msgstr ""
39089
39090 #. type: textblock
39091 #: ../src/guestfs.pod:1887
39092 msgid ""
39093 "The payload is a string which contains the name of the function that we are "
39094 "entering (not including C<guestfs_> prefix)."
39095 msgstr ""
39096
39097 #. type: textblock
39098 #: ../src/guestfs.pod:1890
39099 msgid ""
39100 "Note that libguestfs functions can call themselves, so you may see many "
39101 "events from a single call.  A few libguestfs functions do not generate this "
39102 "event."
39103 msgstr ""
39104
39105 #. type: =head3
39106 #: ../src/guestfs.pod:1898
39107 msgid "guestfs_set_event_callback"
39108 msgstr ""
39109
39110 #. type: verbatim
39111 #: ../src/guestfs.pod:1900
39112 #, no-wrap
39113 msgid ""
39114 " int guestfs_set_event_callback (guestfs_h *g,\n"
39115 "                                 guestfs_event_callback cb,\n"
39116 "                                 uint64_t event_bitmask,\n"
39117 "                                 int flags,\n"
39118 "                                 void *opaque);\n"
39119 "\n"
39120 msgstr ""
39121
39122 #. type: textblock
39123 #: ../src/guestfs.pod:1906
39124 msgid ""
39125 "This function registers a callback (C<cb>) for all event classes in the "
39126 "C<event_bitmask>."
39127 msgstr ""
39128
39129 #. type: textblock
39130 #: ../src/guestfs.pod:1909
39131 msgid ""
39132 "For example, to register for all log message events, you could call this "
39133 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
39134 "To register a single callback for all possible classes of events, use "
39135 "C<GUESTFS_EVENT_ALL>."
39136 msgstr ""
39137
39138 #. type: textblock
39139 #: ../src/guestfs.pod:1915
39140 msgid "C<flags> should always be passed as 0."
39141 msgstr ""
39142
39143 #. type: textblock
39144 #: ../src/guestfs.pod:1917
39145 msgid ""
39146 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
39147 "it for any purpose."
39148 msgstr ""
39149
39150 #. type: textblock
39151 #: ../src/guestfs.pod:1920
39152 msgid ""
39153 "The return value is the event handle (an integer) which you can use to "
39154 "delete the callback (see below)."
39155 msgstr ""
39156
39157 #. type: textblock
39158 #: ../src/guestfs.pod:1923
39159 msgid ""
39160 "If there is an error, this function returns C<-1>, and sets the error in the "
39161 "handle in the usual way (see L</guestfs_last_error> etc.)"
39162 msgstr ""
39163
39164 #. type: textblock
39165 #: ../src/guestfs.pod:1926
39166 msgid ""
39167 "Callbacks remain in effect until they are deleted, or until the handle is "
39168 "closed."
39169 msgstr ""
39170
39171 #. type: textblock
39172 #: ../src/guestfs.pod:1929
39173 msgid ""
39174 "In the case where multiple callbacks are registered for a particular event "
39175 "class, all of the callbacks are called.  The order in which multiple "
39176 "callbacks are called is not defined."
39177 msgstr ""
39178
39179 #. type: =head3
39180 #: ../src/guestfs.pod:1933
39181 msgid "guestfs_delete_event_callback"
39182 msgstr ""
39183
39184 #. type: verbatim
39185 #: ../src/guestfs.pod:1935
39186 #, no-wrap
39187 msgid ""
39188 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
39189 "\n"
39190 msgstr ""
39191
39192 #. type: textblock
39193 #: ../src/guestfs.pod:1937
39194 msgid ""
39195 "Delete a callback that was previously registered.  C<event_handle> should be "
39196 "the integer that was returned by a previous call to "
39197 "C<guestfs_set_event_callback> on the same handle."
39198 msgstr ""
39199
39200 #. type: =head3
39201 #: ../src/guestfs.pod:1941
39202 msgid "guestfs_event_callback"
39203 msgstr ""
39204
39205 #. type: verbatim
39206 #: ../src/guestfs.pod:1943
39207 #, no-wrap
39208 msgid ""
39209 " typedef void (*guestfs_event_callback) (\n"
39210 "                  guestfs_h *g,\n"
39211 "                  void *opaque,\n"
39212 "                  uint64_t event,\n"
39213 "                  int event_handle,\n"
39214 "                  int flags,\n"
39215 "                  const char *buf, size_t buf_len,\n"
39216 "                  const uint64_t *array, size_t array_len);\n"
39217 "\n"
39218 msgstr ""
39219
39220 #. type: textblock
39221 #: ../src/guestfs.pod:1952
39222 msgid ""
39223 "This is the type of the event callback function that you have to provide."
39224 msgstr ""
39225
39226 #. type: textblock
39227 #: ../src/guestfs.pod:1955
39228 msgid ""
39229 "The basic parameters are: the handle (C<g>), the opaque user pointer "
39230 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
39231 "handle, and C<flags> which in the current API you should ignore."
39232 msgstr ""
39233
39234 #. type: textblock
39235 #: ../src/guestfs.pod:1959
39236 msgid ""
39237 "The remaining parameters contain the event payload (if any).  Each event may "
39238 "contain a payload, which usually relates to the event class, but for future "
39239 "proofing your code should be written to handle any payload for any event "
39240 "class."
39241 msgstr ""
39242
39243 #. type: textblock
39244 #: ../src/guestfs.pod:1964
39245 msgid ""
39246 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
39247 "there is no message buffer).  Note that this message buffer can contain "
39248 "arbitrary 8 bit data, including NUL bytes."
39249 msgstr ""
39250
39251 #. type: textblock
39252 #: ../src/guestfs.pod:1968
39253 msgid ""
39254 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
39255 "moment this is only used for progress messages."
39256 msgstr ""
39257
39258 #. type: =head3
39259 #: ../src/guestfs.pod:1971
39260 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
39261 msgstr ""
39262
39263 #. type: textblock
39264 #: ../src/guestfs.pod:1973
39265 msgid ""
39266 "One motivation for the generic event API was to allow GUI programs to "
39267 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
39268 "unconditionally to C<stderr>."
39269 msgstr ""
39270
39271 #. type: textblock
39272 #: ../src/guestfs.pod:1977
39273 msgid ""
39274 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
39275 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
39276 "messages are not events; you must capture error messages separately)."
39277 msgstr ""
39278
39279 #. type: textblock
39280 #: ../src/guestfs.pod:1982
39281 msgid ""
39282 "Programs have to set up a callback to capture the classes of events of "
39283 "interest:"
39284 msgstr ""
39285
39286 #. type: verbatim
39287 #: ../src/guestfs.pod:1985
39288 #, no-wrap
39289 msgid ""
39290 " int eh =\n"
39291 "   guestfs_set_event_callback\n"
39292 "     (g, message_callback,\n"
39293 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
39294 "      GUESTFS_EVENT_TRACE,\n"
39295 "      0, NULL) == -1)\n"
39296 " if (eh == -1) {\n"
39297 "   // handle error in the usual way\n"
39298 " }\n"
39299 "\n"
39300 msgstr ""
39301
39302 #. type: textblock
39303 #: ../src/guestfs.pod:1995
39304 msgid ""
39305 "The callback can then direct messages to the appropriate place.  In this "
39306 "example, messages are directed to syslog:"
39307 msgstr ""
39308
39309 #. type: verbatim
39310 #: ../src/guestfs.pod:1998
39311 #, no-wrap
39312 msgid ""
39313 " static void\n"
39314 " message_callback (\n"
39315 "         guestfs_h *g,\n"
39316 "         void *opaque,\n"
39317 "         uint64_t event,\n"
39318 "         int event_handle,\n"
39319 "         int flags,\n"
39320 "         const char *buf, size_t buf_len,\n"
39321 "         const uint64_t *array, size_t array_len)\n"
39322 " {\n"
39323 "   const int priority = LOG_USER|LOG_INFO;\n"
39324 "   if (buf_len > 0)\n"
39325 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
39326 " }\n"
39327 "\n"
39328 msgstr ""
39329
39330 #. type: =head1
39331 #: ../src/guestfs.pod:2013
39332 msgid "CANCELLING LONG TRANSFERS"
39333 msgstr ""
39334
39335 #. type: textblock
39336 #: ../src/guestfs.pod:2015
39337 msgid ""
39338 "Some operations can be cancelled by the caller while they are in progress.  "
39339 "Currently only operations that involve uploading or downloading data can be "
39340 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
39341 "parameters in the generator)."
39342 msgstr ""
39343
39344 #. type: =head2
39345 #: ../src/guestfs.pod:2020
39346 msgid "guestfs_user_cancel"
39347 msgstr ""
39348
39349 #. type: verbatim
39350 #: ../src/guestfs.pod:2022
39351 #, no-wrap
39352 msgid ""
39353 " void guestfs_user_cancel (guestfs_h *g);\n"
39354 "\n"
39355 msgstr ""
39356
39357 #. type: textblock
39358 #: ../src/guestfs.pod:2024
39359 msgid ""
39360 "C<guestfs_user_cancel> cancels the current upload or download operation."
39361 msgstr ""
39362
39363 #. type: textblock
39364 #: ../src/guestfs.pod:2027
39365 msgid ""
39366 "Unlike most other libguestfs calls, this function is signal safe and thread "
39367 "safe.  You can call it from a signal handler or from another thread, without "
39368 "needing to do any locking."
39369 msgstr ""
39370
39371 #. type: textblock
39372 #: ../src/guestfs.pod:2031
39373 msgid ""
39374 "The transfer that was in progress (if there is one) will stop shortly "
39375 "afterwards, and will return an error.  The errno (see L</"
39376 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
39377 "out if the operation was cancelled or failed because of another error."
39378 msgstr ""
39379
39380 #. type: textblock
39381 #: ../src/guestfs.pod:2037
39382 msgid ""
39383 "No cleanup is performed: for example, if a file was being uploaded then "
39384 "after cancellation there may be a partially uploaded file.  It is the "
39385 "caller's responsibility to clean up if necessary."
39386 msgstr ""
39387
39388 #. type: textblock
39389 #: ../src/guestfs.pod:2041
39390 msgid "There are two common places that you might call C<guestfs_user_cancel>."
39391 msgstr ""
39392
39393 #. type: textblock
39394 #: ../src/guestfs.pod:2043
39395 msgid ""
39396 "In an interactive text-based program, you might call it from a C<SIGINT> "
39397 "signal handler so that pressing C<^C> cancels the current operation.  (You "
39398 "also need to call L</guestfs_set_pgroup> so that child processes don't "
39399 "receive the C<^C> signal)."
39400 msgstr ""
39401
39402 #. type: textblock
39403 #: ../src/guestfs.pod:2048
39404 msgid ""
39405 "In a graphical program, when the main thread is displaying a progress bar "
39406 "with a cancel button, wire up the cancel button to call this function."
39407 msgstr ""
39408
39409 #. type: =head1
39410 #: ../src/guestfs.pod:2052
39411 msgid "PRIVATE DATA AREA"
39412 msgstr ""
39413
39414 #. type: textblock
39415 #: ../src/guestfs.pod:2054
39416 msgid ""
39417 "You can attach named pieces of private data to the libguestfs handle, fetch "
39418 "them by name, and walk over them, for the lifetime of the handle.  This is "
39419 "called the private data area and is only available from the C API."
39420 msgstr ""
39421
39422 #. type: textblock
39423 #: ../src/guestfs.pod:2059
39424 msgid "To attach a named piece of data, use the following call:"
39425 msgstr ""
39426
39427 #. type: verbatim
39428 #: ../src/guestfs.pod:2061
39429 #, no-wrap
39430 msgid ""
39431 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39432 "\n"
39433 msgstr ""
39434 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
39435 "\n"
39436
39437 #. type: textblock
39438 #: ../src/guestfs.pod:2063
39439 msgid ""
39440 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
39441 "pointer (which can be C<NULL>).  Any previous item with the same key is "
39442 "overwritten."
39443 msgstr ""
39444
39445 #. type: textblock
39446 #: ../src/guestfs.pod:2067
39447 msgid ""
39448 "You can use any C<key> you want, but your key should I<not> start with an "
39449 "underscore character.  Keys beginning with an underscore character are "
39450 "reserved for internal libguestfs purposes (eg. for implementing language "
39451 "bindings).  It is recommended that you prefix the key with some unique "
39452 "string to avoid collisions with other users."
39453 msgstr ""
39454
39455 #. type: textblock
39456 #: ../src/guestfs.pod:2073
39457 msgid "To retrieve the pointer, use:"
39458 msgstr ""
39459
39460 #. type: verbatim
39461 #: ../src/guestfs.pod:2075
39462 #, no-wrap
39463 msgid ""
39464 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39465 "\n"
39466 msgstr ""
39467 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
39468 "\n"
39469
39470 #. type: textblock
39471 #: ../src/guestfs.pod:2077
39472 msgid ""
39473 "This function returns C<NULL> if either no data is found associated with "
39474 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
39475 "C<NULL>."
39476 msgstr ""
39477
39478 #. type: textblock
39479 #: ../src/guestfs.pod:2081
39480 msgid ""
39481 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
39482 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
39483 "all.  In particular, libguestfs does I<not> try to free the data when the "
39484 "handle is closed.  If the data must be freed, then the caller must either "
39485 "free it before calling L</guestfs_close> or must set up a close callback to "
39486 "do it (see L</GUESTFS_EVENT_CLOSE>)."
39487 msgstr ""
39488
39489 #. type: textblock
39490 #: ../src/guestfs.pod:2088
39491 msgid "To walk over all entries, use these two functions:"
39492 msgstr ""
39493
39494 #. type: verbatim
39495 #: ../src/guestfs.pod:2090
39496 #, no-wrap
39497 msgid ""
39498 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
39499 "\n"
39500 msgstr ""
39501
39502 #. type: verbatim
39503 #: ../src/guestfs.pod:2092
39504 #, no-wrap
39505 msgid ""
39506 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
39507 "\n"
39508 msgstr ""
39509
39510 #. type: textblock
39511 #: ../src/guestfs.pod:2094
39512 msgid ""
39513 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
39514 "not have any particular meaning -- keys are not returned in any defined "
39515 "order).  A pointer to the key is returned in C<*key_rtn> and the "
39516 "corresponding data pointer is returned from the function.  C<NULL> is "
39517 "returned if there are no keys stored in the handle."
39518 msgstr ""
39519
39520 #. type: textblock
39521 #: ../src/guestfs.pod:2100
39522 msgid ""
39523 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
39524 "value of this function is also C<NULL> is there are no further entries to "
39525 "return."
39526 msgstr ""
39527
39528 #. type: textblock
39529 #: ../src/guestfs.pod:2104
39530 msgid "Notes about walking over entries:"
39531 msgstr ""
39532
39533 #. type: textblock
39534 #: ../src/guestfs.pod:2110
39535 msgid ""
39536 "You must not call C<guestfs_set_private> while walking over the entries."
39537 msgstr ""
39538
39539 #. type: textblock
39540 #: ../src/guestfs.pod:2115
39541 msgid ""
39542 "The handle maintains an internal iterator which is reset when you call "
39543 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
39544 "call C<guestfs_set_private>."
39545 msgstr ""
39546
39547 #. type: textblock
39548 #: ../src/guestfs.pod:2121
39549 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
39550 msgstr ""
39551
39552 #. type: verbatim
39553 #: ../src/guestfs.pod:2123
39554 #, no-wrap
39555 msgid ""
39556 " guestfs_set_private (g, key, NULL);\n"
39557 "\n"
39558 msgstr ""
39559
39560 #. type: textblock
39561 #: ../src/guestfs.pod:2125
39562 msgid "then that C<key> is not returned when walking."
39563 msgstr ""
39564
39565 #. type: textblock
39566 #: ../src/guestfs.pod:2129
39567 msgid ""
39568 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
39569 "C<guestfs_next_private> or C<guestfs_set_private>."
39570 msgstr ""
39571
39572 #. type: textblock
39573 #: ../src/guestfs.pod:2135
39574 msgid ""
39575 "The following example code shows how to print all keys and data pointers "
39576 "that are associated with the handle C<g>:"
39577 msgstr ""
39578
39579 #. type: verbatim
39580 #: ../src/guestfs.pod:2138
39581 #, no-wrap
39582 msgid ""
39583 " const char *key;\n"
39584 " void *data = guestfs_first_private (g, &key);\n"
39585 " while (data != NULL)\n"
39586 "   {\n"
39587 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
39588 "     data = guestfs_next_private (g, &key);\n"
39589 "   }\n"
39590 "\n"
39591 msgstr ""
39592
39593 #. type: textblock
39594 #: ../src/guestfs.pod:2146
39595 msgid ""
39596 "More commonly you are only interested in keys that begin with an application-"
39597 "specific prefix C<foo_>.  Modify the loop like so:"
39598 msgstr ""
39599
39600 #. type: verbatim
39601 #: ../src/guestfs.pod:2149
39602 #, no-wrap
39603 msgid ""
39604 " const char *key;\n"
39605 " void *data = guestfs_first_private (g, &key);\n"
39606 " while (data != NULL)\n"
39607 "   {\n"
39608 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39609 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
39610 "     data = guestfs_next_private (g, &key);\n"
39611 "   }\n"
39612 "\n"
39613 msgstr ""
39614
39615 #. type: textblock
39616 #: ../src/guestfs.pod:2158
39617 msgid ""
39618 "If you need to modify keys while walking, then you have to jump back to the "
39619 "beginning of the loop.  For example, to delete all keys prefixed with "
39620 "C<foo_>:"
39621 msgstr ""
39622
39623 #. type: verbatim
39624 #: ../src/guestfs.pod:2162
39625 #, no-wrap
39626 msgid ""
39627 "  const char *key;\n"
39628 "  void *data;\n"
39629 " again:\n"
39630 "  data = guestfs_first_private (g, &key);\n"
39631 "  while (data != NULL)\n"
39632 "    {\n"
39633 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
39634 "        {\n"
39635 "          guestfs_set_private (g, key, NULL);\n"
39636 "          /* note that 'key' pointer is now invalid, and so is\n"
39637 "             the internal iterator */\n"
39638 "          goto again;\n"
39639 "        }\n"
39640 "      data = guestfs_next_private (g, &key);\n"
39641 "    }\n"
39642 "\n"
39643 msgstr ""
39644
39645 #. type: textblock
39646 #: ../src/guestfs.pod:2178
39647 msgid ""
39648 "Note that the above loop is guaranteed to terminate because the keys are "
39649 "being deleted, but other manipulations of keys within the loop might not "
39650 "terminate unless you also maintain an indication of which keys have been "
39651 "visited."
39652 msgstr ""
39653
39654 #. type: =head1
39655 #: ../src/guestfs.pod:2183
39656 msgid "SYSTEMTAP"
39657 msgstr ""
39658
39659 #. type: textblock
39660 #: ../src/guestfs.pod:2185
39661 msgid ""
39662 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
39663 "true of any library, not just libguestfs.  However libguestfs also contains "
39664 "static markers to help in probing internal operations."
39665 msgstr ""
39666
39667 #. type: textblock
39668 #: ../src/guestfs.pod:2189
39669 msgid "You can list all the static markers by doing:"
39670 msgstr ""
39671
39672 #. type: verbatim
39673 #: ../src/guestfs.pod:2191
39674 #, no-wrap
39675 msgid ""
39676 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
39677 "              .provider(\"guestfs\").mark(\"*\")'\n"
39678 "\n"
39679 msgstr ""
39680
39681 #. type: textblock
39682 #: ../src/guestfs.pod:2194
39683 msgid ""
39684 "B<Note:> These static markers are I<not> part of the stable API and may "
39685 "change in future versions."
39686 msgstr ""
39687
39688 #. type: =head2
39689 #: ../src/guestfs.pod:2197
39690 msgid "SYSTEMTAP SCRIPT EXAMPLE"
39691 msgstr ""
39692
39693 #. type: textblock
39694 #: ../src/guestfs.pod:2199
39695 msgid ""
39696 "This script contains examples of displaying both the static markers and some "
39697 "ordinary C entry points:"
39698 msgstr ""
39699
39700 #. type: verbatim
39701 #: ../src/guestfs.pod:2202
39702 #, no-wrap
39703 msgid ""
39704 " global last;\n"
39705 " \n"
39706 msgstr ""
39707
39708 #. type: verbatim
39709 #: ../src/guestfs.pod:2204
39710 #, no-wrap
39711 msgid ""
39712 " function display_time () {\n"
39713 "       now = gettimeofday_us ();\n"
39714 "       delta = 0;\n"
39715 "       if (last > 0)\n"
39716 "             delta = now - last;\n"
39717 "       last = now;\n"
39718 " \n"
39719 msgstr ""
39720
39721 #. type: verbatim
39722 #: ../src/guestfs.pod:2211
39723 #, no-wrap
39724 msgid ""
39725 "       printf (\"%d (+%d):\", now, delta);\n"
39726 " }\n"
39727 " \n"
39728 msgstr ""
39729
39730 #. type: verbatim
39731 #: ../src/guestfs.pod:2214
39732 #, no-wrap
39733 msgid ""
39734 " probe begin {\n"
39735 "       last = 0;\n"
39736 "       printf (\"ready\\n\");\n"
39737 " }\n"
39738 " \n"
39739 msgstr ""
39740
39741 #. type: verbatim
39742 #: ../src/guestfs.pod:2219
39743 #, no-wrap
39744 msgid ""
39745 " /* Display all calls to static markers. */\n"
39746 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39747 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
39748 "       display_time();\n"
39749 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
39750 " }\n"
39751 " \n"
39752 msgstr ""
39753
39754 #. type: verbatim
39755 #: ../src/guestfs.pod:2226
39756 #, no-wrap
39757 msgid ""
39758 " /* Display all calls to guestfs_mkfs* functions. */\n"
39759 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
39760 "           .function(\"guestfs_mkfs*\") ? {\n"
39761 "       display_time();\n"
39762 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
39763 " }\n"
39764 "\n"
39765 msgstr ""
39766
39767 #. type: textblock
39768 #: ../src/guestfs.pod:2233
39769 msgid ""
39770 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
39771 "program.  Note that you either have to be root, or you have to add yourself "
39772 "to several special stap groups.  Consult the systemtap documentation for "
39773 "more information."
39774 msgstr ""
39775
39776 #. type: verbatim
39777 #: ../src/guestfs.pod:2238
39778 #, no-wrap
39779 msgid ""
39780 " # stap /tmp/test.stap\n"
39781 " ready\n"
39782 "\n"
39783 msgstr ""
39784
39785 #. type: textblock
39786 #: ../src/guestfs.pod:2241
39787 msgid "In another terminal, run a guestfish command such as this:"
39788 msgstr ""
39789
39790 #. type: textblock
39791 #: ../src/guestfs.pod:2245
39792 msgid "In the first terminal, stap trace output similar to this is shown:"
39793 msgstr ""
39794
39795 #. type: verbatim
39796 #: ../src/guestfs.pod:2247
39797 #, no-wrap
39798 msgid ""
39799 " 1318248056692655 (+0):\tlaunch_start\n"
39800 " 1318248056692850 (+195):       launch_build_appliance_start\n"
39801 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
39802 " 1318248056838059 (+19774):     launch_run_qemu\n"
39803 " 1318248061071167 (+4233108):   launch_end\n"
39804 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
39805 "\n"
39806 msgstr ""
39807
39808 #. type: =end
39809 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
39810 msgid "html"
39811 msgstr "html"
39812
39813 #. type: textblock
39814 #: ../src/guestfs.pod:2256
39815 msgid ""
39816 "<!-- old anchor for the next section --> <a name="
39817 "\"state_machine_and_low_level_event_api\"/>"
39818 msgstr ""
39819 "<!-- old anchor for the next section --> <a name="
39820 "\"state_machine_and_low_level_event_api\"/>"
39821
39822 #. type: =head1
39823 #: ../src/guestfs.pod:2261
39824 msgid "ARCHITECTURE"
39825 msgstr "АРХІТЕКТУРА"
39826
39827 #. type: textblock
39828 #: ../src/guestfs.pod:2263
39829 msgid ""
39830 "Internally, libguestfs is implemented by running an appliance (a special "
39831 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
39832 "process of the main program."
39833 msgstr ""
39834
39835 #. type: verbatim
39836 #: ../src/guestfs.pod:2267
39837 #, no-wrap
39838 msgid ""
39839 "  ___________________\n"
39840 " /                   \\\n"
39841 " | main program      |\n"
39842 " |                   |\n"
39843 " |                   |           child process / appliance\n"
39844 " |                   |           __________________________\n"
39845 " |                   |          / qemu                     \\\n"
39846 " +-------------------+   RPC    |      +-----------------+ |\n"
39847 " | libguestfs     <--------------------> guestfsd        | |\n"
39848 " |                   |          |      +-----------------+ |\n"
39849 " \\___________________/          |      | Linux kernel    | |\n"
39850 "                                |      +--^--------------+ |\n"
39851 "                                \\_________|________________/\n"
39852 "                                          |\n"
39853 "                                   _______v______\n"
39854 "                                  /              \\\n"
39855 "                                  | Device or    |\n"
39856 "                                  | disk image   |\n"
39857 "                                  \\______________/\n"
39858 "\n"
39859 msgstr ""
39860
39861 #. type: textblock
39862 #: ../src/guestfs.pod:2287
39863 msgid ""
39864 "The library, linked to the main program, creates the child process and hence "
39865 "the appliance in the L</guestfs_launch> function."
39866 msgstr ""
39867
39868 #. type: textblock
39869 #: ../src/guestfs.pod:2290
39870 msgid ""
39871 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39872 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39873 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
39874 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
39875 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
39876 "attached to the qemu process which translates device access by the "
39877 "appliance's Linux kernel into accesses to the image."
39878 msgstr ""
39879
39880 #. type: textblock
39881 #: ../src/guestfs.pod:2299
39882 msgid ""
39883 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
39884 "Although the disk image you are attached to might also be used by some "
39885 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
39886 "care if both libguestfs's qemu process and your virtual machine are trying "
39887 "to update the disk image at the same time, since these usually results in "
39888 "massive disk corruption)."
39889 msgstr ""
39890
39891 #. type: =head1
39892 #: ../src/guestfs.pod:2306
39893 msgid "STATE MACHINE"
39894 msgstr "СКІНЧЕННИЙ АВТОМАТ"
39895
39896 #. type: textblock
39897 #: ../src/guestfs.pod:2308
39898 msgid "libguestfs uses a state machine to model the child process:"
39899 msgstr ""
39900
39901 #. type: verbatim
39902 #: ../src/guestfs.pod:2310
39903 #, no-wrap
39904 msgid ""
39905 "                         |\n"
39906 "                    guestfs_create\n"
39907 "                         |\n"
39908 "                         |\n"
39909 "                     ____V_____\n"
39910 "                    /          \\\n"
39911 "                    |  CONFIG  |\n"
39912 "                    \\__________/\n"
39913 "                     ^ ^   ^  \\\n"
39914 "                    /  |    \\  \\ guestfs_launch\n"
39915 "                   /   |    _\\__V______\n"
39916 "                  /    |   /           \\\n"
39917 "                 /     |   | LAUNCHING |\n"
39918 "                /      |   \\___________/\n"
39919 "               /       |       /\n"
39920 "              /        |  guestfs_launch\n"
39921 "             /         |     /\n"
39922 "    ______  /        __|____V\n"
39923 "   /      \\ ------> /        \\\n"
39924 "   | BUSY |         | READY  |\n"
39925 "   \\______/ <------ \\________/\n"
39926 "\n"
39927 msgstr ""
39928
39929 #. type: textblock
39930 #: ../src/guestfs.pod:2332
39931 msgid ""
39932 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39933 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39934 "(3) alternating between READY and BUSY as commands are issued to, and "
39935 "carried out by, the child process."
39936 msgstr ""
39937
39938 #. type: textblock
39939 #: ../src/guestfs.pod:2337
39940 msgid ""
39941 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39942 "asynchronously at any time (eg. due to some internal error), and that causes "
39943 "the state to transition back to CONFIG."
39944 msgstr ""
39945
39946 #. type: textblock
39947 #: ../src/guestfs.pod:2341
39948 msgid ""
39949 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39950 "issued when in the CONFIG state."
39951 msgstr ""
39952
39953 #. type: textblock
39954 #: ../src/guestfs.pod:2344
39955 msgid ""
39956 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
39957 "L</guestfs_launch> blocks until the child process is READY to accept "
39958 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
39959 "moves the state from CONFIG to LAUNCHING while it is running."
39960 msgstr ""
39961
39962 #. type: textblock
39963 #: ../src/guestfs.pod:2350
39964 msgid ""
39965 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39966 "state.  These API calls block waiting for the command to be carried out (ie. "
39967 "the state to transition to BUSY and then back to READY).  There are no non-"
39968 "blocking versions, and no way to issue more than one command per handle at "
39969 "the same time."
39970 msgstr ""
39971
39972 #. type: textblock
39973 #: ../src/guestfs.pod:2356
39974 msgid ""
39975 "Finally, the child process sends asynchronous messages back to the main "
39976 "program, such as kernel log messages.  You can register a callback to "
39977 "receive these messages."
39978 msgstr ""
39979
39980 #. type: =head1
39981 #: ../src/guestfs.pod:2360
39982 msgid "INTERNALS"
39983 msgstr ""
39984
39985 #. type: =head2
39986 #: ../src/guestfs.pod:2362
39987 msgid "APPLIANCE BOOT PROCESS"
39988 msgstr ""
39989
39990 #. type: textblock
39991 #: ../src/guestfs.pod:2364
39992 msgid ""
39993 "This process has evolved and continues to evolve.  The description here "
39994 "corresponds only to the current version of libguestfs and is provided for "
39995 "information only."
39996 msgstr ""
39997
39998 #. type: textblock
39999 #: ../src/guestfs.pod:2368
40000 msgid ""
40001 "In order to follow the stages involved below, enable libguestfs debugging "
40002 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
40003 msgstr ""
40004
40005 #. type: =item
40006 #: ../src/guestfs.pod:2373
40007 msgid "Create the appliance"
40008 msgstr ""
40009
40010 #. type: textblock
40011 #: ../src/guestfs.pod:2375
40012 msgid ""
40013 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
40014 "initrd and the appliance."
40015 msgstr ""
40016
40017 #. type: textblock
40018 #: ../src/guestfs.pod:2378
40019 msgid ""
40020 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
40021 "directory if C<TMPDIR> is set)."
40022 msgstr ""
40023
40024 #. type: textblock
40025 #: ../src/guestfs.pod:2381
40026 msgid ""
40027 "For a complete description of how the appliance is created and cached, read "
40028 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
40029 msgstr ""
40030
40031 #. type: =item
40032 #: ../src/guestfs.pod:2385
40033 msgid "Start qemu and boot the kernel"
40034 msgstr ""
40035
40036 #. type: textblock
40037 #: ../src/guestfs.pod:2387
40038 msgid "qemu is invoked to boot the kernel."
40039 msgstr ""
40040
40041 #. type: =item
40042 #: ../src/guestfs.pod:2389
40043 msgid "Run the initrd"
40044 msgstr ""
40045
40046 #. type: textblock
40047 #: ../src/guestfs.pod:2391
40048 msgid ""
40049 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
40050 "appliance.  The purpose of the initrd is to load enough kernel modules in "
40051 "order that the appliance itself can be mounted and started."
40052 msgstr ""
40053
40054 #. type: textblock
40055 #: ../src/guestfs.pod:2395
40056 msgid ""
40057 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
40058 "initrd>."
40059 msgstr ""
40060
40061 #. type: textblock
40062 #: ../src/guestfs.pod:2398
40063 msgid ""
40064 "When the initrd has started you will see messages showing that kernel "
40065 "modules are being loaded, similar to this:"
40066 msgstr ""
40067
40068 #. type: verbatim
40069 #: ../src/guestfs.pod:2401
40070 #, no-wrap
40071 msgid ""
40072 " febootstrap: ext2 mini initrd starting up\n"
40073 " febootstrap: mounting /sys\n"
40074 " febootstrap: internal insmod libcrc32c.ko\n"
40075 " febootstrap: internal insmod crc32c-intel.ko\n"
40076 "\n"
40077 msgstr ""
40078
40079 #. type: =item
40080 #: ../src/guestfs.pod:2406
40081 msgid "Find and mount the appliance device"
40082 msgstr ""
40083
40084 #. type: textblock
40085 #: ../src/guestfs.pod:2408
40086 msgid ""
40087 "The appliance is a sparse file containing an ext2 filesystem which contains "
40088 "a familiar (although reduced in size) Linux operating system.  It would "
40089 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
40090 msgstr ""
40091
40092 #. type: textblock
40093 #: ../src/guestfs.pod:2412
40094 msgid ""
40095 "The regular disks being inspected by libguestfs are the first devices "
40096 "exposed by qemu (eg. as C</dev/vda>)."
40097 msgstr ""
40098
40099 #. type: textblock
40100 #: ../src/guestfs.pod:2415
40101 msgid ""
40102 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
40103 "there was only one regular disk)."
40104 msgstr ""
40105
40106 #. type: textblock
40107 #: ../src/guestfs.pod:2418
40108 msgid ""
40109 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
40110 "and switch root into the appliance, and run C</init> from the appliance."
40111 msgstr ""
40112
40113 #. type: textblock
40114 #: ../src/guestfs.pod:2422
40115 msgid "If this works successfully you will see messages such as:"
40116 msgstr ""
40117
40118 #. type: verbatim
40119 #: ../src/guestfs.pod:2424
40120 #, no-wrap
40121 msgid ""
40122 " febootstrap: picked /sys/block/vdb/dev as root device\n"
40123 " febootstrap: creating /dev/root as block special 252:16\n"
40124 " febootstrap: mounting new root on /root\n"
40125 " febootstrap: chroot\n"
40126 " Starting /init script ...\n"
40127 "\n"
40128 msgstr ""
40129
40130 #. type: textblock
40131 #: ../src/guestfs.pod:2430
40132 msgid ""
40133 "Note that C<Starting /init script ...> indicates that the appliance's init "
40134 "script is now running."
40135 msgstr ""
40136
40137 #. type: =item
40138 #: ../src/guestfs.pod:2433
40139 msgid "Initialize the appliance"
40140 msgstr ""
40141
40142 #. type: textblock
40143 #: ../src/guestfs.pod:2435
40144 msgid ""
40145 "The appliance itself now initializes itself.  This involves starting certain "
40146 "processes like C<udev>, possibly printing some debug information, and "
40147 "finally running the daemon (C<guestfsd>)."
40148 msgstr ""
40149
40150 #. type: =item
40151 #: ../src/guestfs.pod:2439
40152 msgid "The daemon"
40153 msgstr ""
40154
40155 #. type: textblock
40156 #: ../src/guestfs.pod:2441
40157 msgid ""
40158 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
40159 "should see:"
40160 msgstr ""
40161
40162 #. type: verbatim
40163 #: ../src/guestfs.pod:2444
40164 #, no-wrap
40165 msgid ""
40166 " verbose daemon enabled\n"
40167 "\n"
40168 msgstr ""
40169
40170 #. type: textblock
40171 #: ../src/guestfs.pod:2446
40172 msgid ""
40173 "The daemon expects to see a named virtio-serial port exposed by qemu and "
40174 "connected on the other end to the library."
40175 msgstr ""
40176
40177 #. type: textblock
40178 #: ../src/guestfs.pod:2449
40179 msgid ""
40180 "The daemon connects to this port (and hence to the library) and sends a four "
40181 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
40182 "protocol (see below)."
40183 msgstr ""
40184
40185 #. type: =head2
40186 #: ../src/guestfs.pod:2455
40187 msgid "COMMUNICATION PROTOCOL"
40188 msgstr ""
40189
40190 #. type: textblock
40191 #: ../src/guestfs.pod:2457
40192 msgid ""
40193 "Don't rely on using this protocol directly.  This section documents how it "
40194 "currently works, but it may change at any time."
40195 msgstr ""
40196
40197 #. type: textblock
40198 #: ../src/guestfs.pod:2460
40199 msgid ""
40200 "The protocol used to talk between the library and the daemon running inside "
40201 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
40202 "1014, RFC 1832, RFC 4506)."
40203 msgstr ""
40204
40205 #. type: textblock
40206 #: ../src/guestfs.pod:2464
40207 msgid ""
40208 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
40209 "this file is automatically generated)."
40210 msgstr ""
40211
40212 #. type: textblock
40213 #: ../src/guestfs.pod:2467
40214 msgid ""
40215 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
40216 "and C<FileOut> parameters, which are handled with very simple request/reply "
40217 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
40218 "parameters, which use the same request and reply messages, but they may also "
40219 "be followed by files sent using a chunked encoding."
40220 msgstr ""
40221
40222 #. type: =head3
40223 #: ../src/guestfs.pod:2474
40224 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
40225 msgstr ""
40226
40227 #. type: textblock
40228 #: ../src/guestfs.pod:2476
40229 msgid "For ordinary functions, the request message is:"
40230 msgstr ""
40231
40232 #. type: verbatim
40233 #: ../src/guestfs.pod:2478
40234 #, no-wrap
40235 msgid ""
40236 " total length (header + arguments,\n"
40237 "      but not including the length word itself)\n"
40238 " struct guestfs_message_header (encoded as XDR)\n"
40239 " struct guestfs_<foo>_args (encoded as XDR)\n"
40240 "\n"
40241 msgstr ""
40242
40243 #. type: textblock
40244 #: ../src/guestfs.pod:2483
40245 msgid ""
40246 "The total length field allows the daemon to allocate a fixed size buffer "
40247 "into which it slurps the rest of the message.  As a result, the total length "
40248 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
40249 "effective size of any request is limited to somewhere under this size."
40250 msgstr ""
40251
40252 #. type: textblock
40253 #: ../src/guestfs.pod:2489
40254 msgid ""
40255 "Note also that many functions don't take any arguments, in which case the "
40256 "C<guestfs_I<foo>_args> is completely omitted."
40257 msgstr ""
40258
40259 #. type: textblock
40260 #: ../src/guestfs.pod:2492
40261 msgid ""
40262 "The header contains the procedure number (C<guestfs_proc>) which is how the "
40263 "receiver knows what type of args structure to expect, or none at all."
40264 msgstr ""
40265
40266 #. type: textblock
40267 #: ../src/guestfs.pod:2496
40268 msgid ""
40269 "For functions that take optional arguments, the optional arguments are "
40270 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
40271 "arguments.  A bitmask in the header indicates which optional arguments are "
40272 "meaningful.  The bitmask is also checked to see if it contains bits set "
40273 "which the daemon does not know about (eg. if more optional arguments were "
40274 "added in a later version of the library), and this causes the call to be "
40275 "rejected."
40276 msgstr ""
40277
40278 #. type: textblock
40279 #: ../src/guestfs.pod:2504
40280 msgid "The reply message for ordinary functions is:"
40281 msgstr ""
40282
40283 #. type: verbatim
40284 #: ../src/guestfs.pod:2506
40285 #, no-wrap
40286 msgid ""
40287 " total length (header + ret,\n"
40288 "      but not including the length word itself)\n"
40289 " struct guestfs_message_header (encoded as XDR)\n"
40290 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40291 "\n"
40292 msgstr ""
40293
40294 #. type: textblock
40295 #: ../src/guestfs.pod:2511
40296 msgid ""
40297 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
40298 "functions that return no formal return values."
40299 msgstr ""
40300
40301 #. type: textblock
40302 #: ../src/guestfs.pod:2514
40303 msgid ""
40304 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
40305 msgstr ""
40306
40307 #. type: textblock
40308 #: ../src/guestfs.pod:2517
40309 msgid ""
40310 "In the case of an error, a flag is set in the header, and the reply message "
40311 "is slightly changed:"
40312 msgstr ""
40313
40314 #. type: verbatim
40315 #: ../src/guestfs.pod:2520
40316 #, no-wrap
40317 msgid ""
40318 " total length (header + error,\n"
40319 "      but not including the length word itself)\n"
40320 " struct guestfs_message_header (encoded as XDR)\n"
40321 " struct guestfs_message_error (encoded as XDR)\n"
40322 "\n"
40323 msgstr ""
40324
40325 #. type: textblock
40326 #: ../src/guestfs.pod:2525
40327 msgid ""
40328 "The C<guestfs_message_error> structure contains the error message as a "
40329 "string."
40330 msgstr ""
40331
40332 #. type: =head3
40333 #: ../src/guestfs.pod:2528
40334 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
40335 msgstr ""
40336
40337 #. type: textblock
40338 #: ../src/guestfs.pod:2530
40339 msgid ""
40340 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
40341 "The normal request message is sent (see above).  However this is followed by "
40342 "a sequence of file chunks."
40343 msgstr ""
40344
40345 #. type: verbatim
40346 #: ../src/guestfs.pod:2534
40347 #, no-wrap
40348 msgid ""
40349 " total length (header + arguments,\n"
40350 "      but not including the length word itself,\n"
40351 "      and not including the chunks)\n"
40352 " struct guestfs_message_header (encoded as XDR)\n"
40353 " struct guestfs_<foo>_args (encoded as XDR)\n"
40354 " sequence of chunks for FileIn param #0\n"
40355 " sequence of chunks for FileIn param #1 etc.\n"
40356 "\n"
40357 msgstr ""
40358
40359 #. type: textblock
40360 #: ../src/guestfs.pod:2542
40361 msgid "The \"sequence of chunks\" is:"
40362 msgstr ""
40363
40364 #. type: verbatim
40365 #: ../src/guestfs.pod:2544
40366 #, no-wrap
40367 msgid ""
40368 " length of chunk (not including length word itself)\n"
40369 " struct guestfs_chunk (encoded as XDR)\n"
40370 " length of chunk\n"
40371 " struct guestfs_chunk (encoded as XDR)\n"
40372 "   ...\n"
40373 " length of chunk\n"
40374 " struct guestfs_chunk (with data.data_len == 0)\n"
40375 "\n"
40376 msgstr ""
40377
40378 #. type: textblock
40379 #: ../src/guestfs.pod:2552
40380 msgid ""
40381 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
40382 "is set in the final chunk to indicate either successful completion or early "
40383 "cancellation."
40384 msgstr ""
40385
40386 #. type: textblock
40387 #: ../src/guestfs.pod:2556
40388 msgid ""
40389 "At time of writing there are no functions that have more than one FileIn "
40390 "parameter.  However this is (theoretically) supported, by sending the "
40391 "sequence of chunks for each FileIn parameter one after another (from left to "
40392 "right)."
40393 msgstr ""
40394
40395 #. type: textblock
40396 #: ../src/guestfs.pod:2561
40397 msgid ""
40398 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
40399 "transfer.  The library does this by sending a chunk with a special flag set "
40400 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
40401 "RPC, does I<not> send any reply, and goes back to reading the next request."
40402 msgstr ""
40403
40404 #. type: textblock
40405 #: ../src/guestfs.pod:2567
40406 msgid ""
40407 "The daemon may also cancel.  It does this by writing a special word "
40408 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
40409 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
40410 "cancel chunk).  The special word is chosen so that even if cancellation "
40411 "happens right at the end of the transfer (after the library has finished "
40412 "writing and has started listening for the reply), the \"spurious\" cancel "
40413 "flag will not be confused with the reply message."
40414 msgstr ""
40415
40416 #. type: textblock
40417 #: ../src/guestfs.pod:2576
40418 msgid ""
40419 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
40420 "limit), and also files where the size is not known in advance (eg. from "
40421 "pipes or sockets).  However the chunks are rather small "
40422 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
40423 "to keep much in memory."
40424 msgstr ""
40425
40426 #. type: =head3
40427 #: ../src/guestfs.pod:2582
40428 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
40429 msgstr ""
40430
40431 #. type: textblock
40432 #: ../src/guestfs.pod:2584
40433 msgid ""
40434 "The protocol for FileOut parameters is exactly the same as for FileIn "
40435 "parameters, but with the roles of daemon and library reversed."
40436 msgstr ""
40437
40438 #. type: verbatim
40439 #: ../src/guestfs.pod:2587
40440 #, no-wrap
40441 msgid ""
40442 " total length (header + ret,\n"
40443 "      but not including the length word itself,\n"
40444 "      and not including the chunks)\n"
40445 " struct guestfs_message_header (encoded as XDR)\n"
40446 " struct guestfs_<foo>_ret (encoded as XDR)\n"
40447 " sequence of chunks for FileOut param #0\n"
40448 " sequence of chunks for FileOut param #1 etc.\n"
40449 "\n"
40450 msgstr ""
40451
40452 #. type: =head3
40453 #: ../src/guestfs.pod:2595
40454 msgid "INITIAL MESSAGE"
40455 msgstr ""
40456
40457 #. type: textblock
40458 #: ../src/guestfs.pod:2597
40459 msgid ""
40460 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
40461 "which indicates that the guest and daemon is alive.  This is what L</"
40462 "guestfs_launch> waits for."
40463 msgstr ""
40464
40465 #. type: =head3
40466 #: ../src/guestfs.pod:2601
40467 msgid "PROGRESS NOTIFICATION MESSAGES"
40468 msgstr ""
40469
40470 #. type: textblock
40471 #: ../src/guestfs.pod:2603
40472 msgid ""
40473 "The daemon may send progress notification messages at any time.  These are "
40474 "distinguished by the normal length word being replaced by "
40475 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
40476 msgstr ""
40477
40478 #. type: textblock
40479 #: ../src/guestfs.pod:2607
40480 msgid ""
40481 "The library turns them into progress callbacks (see L</"
40482 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
40483 "if not."
40484 msgstr ""
40485
40486 #. type: textblock
40487 #: ../src/guestfs.pod:2611
40488 msgid ""
40489 "The daemon self-limits the frequency of progress messages it sends (see "
40490 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
40491 "messages."
40492 msgstr ""
40493
40494 #. type: =head1
40495 #: ../src/guestfs.pod:2615
40496 msgid "LIBGUESTFS VERSION NUMBERS"
40497 msgstr ""
40498
40499 #. type: textblock
40500 #: ../src/guestfs.pod:2617
40501 msgid ""
40502 "Since April 2010, libguestfs has started to make separate development and "
40503 "stable releases, along with corresponding branches in our git repository.  "
40504 "These separate releases can be identified by version number:"
40505 msgstr ""
40506
40507 #. type: verbatim
40508 #: ../src/guestfs.pod:2622
40509 #, no-wrap
40510 msgid ""
40511 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
40512 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
40513 "       |\n"
40514 "       v\n"
40515 " 1  .  3  .  5\n"
40516 " ^           ^\n"
40517 " |           |\n"
40518 " |           `-------- sub-version\n"
40519 " |\n"
40520 " `------ always '1' because we don't change the ABI\n"
40521 "\n"
40522 msgstr ""
40523
40524 #. type: textblock
40525 #: ../src/guestfs.pod:2633
40526 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
40527 msgstr ""
40528
40529 #. type: textblock
40530 #: ../src/guestfs.pod:2635
40531 msgid ""
40532 "As time passes we cherry pick fixes from the development branch and backport "
40533 "those into the stable branch, the effect being that the stable branch should "
40534 "get more stable and less buggy over time.  So the stable releases are ideal "
40535 "for people who don't need new features but would just like the software to "
40536 "work."
40537 msgstr ""
40538
40539 #. type: textblock
40540 #: ../src/guestfs.pod:2641
40541 msgid "Our criteria for backporting changes are:"
40542 msgstr ""
40543
40544 #. type: textblock
40545 #: ../src/guestfs.pod:2647
40546 msgid ""
40547 "Documentation changes which don't affect any code are backported unless the "
40548 "documentation refers to a future feature which is not in stable."
40549 msgstr ""
40550
40551 #. type: textblock
40552 #: ../src/guestfs.pod:2653
40553 msgid ""
40554 "Bug fixes which are not controversial, fix obvious problems, and have been "
40555 "well tested are backported."
40556 msgstr ""
40557
40558 #. type: textblock
40559 #: ../src/guestfs.pod:2658
40560 msgid ""
40561 "Simple rearrangements of code which shouldn't affect how it works get "
40562 "backported.  This is so that the code in the two branches doesn't get too "
40563 "far out of step, allowing us to backport future fixes more easily."
40564 msgstr ""
40565
40566 #. type: textblock
40567 #: ../src/guestfs.pod:2664
40568 msgid ""
40569 "We I<don't> backport new features, new APIs, new tools etc, except in one "
40570 "exceptional case: the new feature is required in order to implement an "
40571 "important bug fix."
40572 msgstr ""
40573
40574 #. type: textblock
40575 #: ../src/guestfs.pod:2670
40576 msgid ""
40577 "A new stable branch starts when we think the new features in development are "
40578 "substantial and compelling enough over the current stable branch to warrant "
40579 "it.  When that happens we create new stable and development versions 1.N.0 "
40580 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
40581 "stable at this point, but by backporting fixes from development, that branch "
40582 "will stabilize over time."
40583 msgstr ""
40584
40585 #. type: =head1
40586 #: ../src/guestfs.pod:2678
40587 msgid "EXTENDING LIBGUESTFS"
40588 msgstr ""
40589
40590 #. type: =head2
40591 #: ../src/guestfs.pod:2680
40592 msgid "ADDING A NEW API ACTION"
40593 msgstr ""
40594
40595 #. type: textblock
40596 #: ../src/guestfs.pod:2682
40597 msgid ""
40598 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
40599 "documentation) are generated, and this makes it easy to extend the "
40600 "libguestfs API."
40601 msgstr ""
40602
40603 #. type: textblock
40604 #: ../src/guestfs.pod:2686
40605 msgid "To add a new API action there are two changes:"
40606 msgstr ""
40607
40608 #. type: textblock
40609 #: ../src/guestfs.pod:2692
40610 msgid ""
40611 "You need to add a description of the call (name, parameters, return type, "
40612 "tests, documentation) to C<generator/generator_actions.ml>."
40613 msgstr ""
40614
40615 #. type: textblock
40616 #: ../src/guestfs.pod:2695
40617 msgid ""
40618 "There are two sorts of API action, depending on whether the call goes "
40619 "through to the daemon in the appliance, or is serviced entirely by the "
40620 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
40621 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
40622 "an example of the latter, since a trace flag is maintained in the handle and "
40623 "all tracing is done on the library side."
40624 msgstr ""
40625
40626 #. type: textblock
40627 #: ../src/guestfs.pod:2703
40628 msgid ""
40629 "Most new actions are of the first type, and get added to the "
40630 "C<daemon_functions> list.  Each function has a unique procedure number used "
40631 "in the RPC protocol which is assigned to that action when we publish "
40632 "libguestfs and cannot be reused.  Take the latest procedure number and "
40633 "increment it."
40634 msgstr ""
40635
40636 #. type: textblock
40637 #: ../src/guestfs.pod:2709
40638 msgid ""
40639 "For library-only actions of the second type, add to the "
40640 "C<non_daemon_functions> list.  Since these functions are serviced by the "
40641 "library and do not travel over the RPC mechanism to the daemon, these "
40642 "functions do not need a procedure number, and so the procedure number is set "
40643 "to C<-1>."
40644 msgstr ""
40645
40646 #. type: textblock
40647 #: ../src/guestfs.pod:2717
40648 msgid "Implement the action (in C):"
40649 msgstr ""
40650
40651 #. type: textblock
40652 #: ../src/guestfs.pod:2719
40653 msgid ""
40654 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
40655 "C<daemon/> directory."
40656 msgstr ""
40657
40658 #. type: textblock
40659 #: ../src/guestfs.pod:2722
40660 msgid ""
40661 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
40662 "(note: double underscore) in the C<src/> directory."
40663 msgstr ""
40664
40665 #. type: textblock
40666 #: ../src/guestfs.pod:2725
40667 msgid "In either case, use another function as an example of what to do."
40668 msgstr ""
40669
40670 #. type: textblock
40671 #: ../src/guestfs.pod:2729
40672 msgid "After making these changes, use C<make> to compile."
40673 msgstr ""
40674
40675 #. type: textblock
40676 #: ../src/guestfs.pod:2731
40677 msgid ""
40678 "Note that you don't need to implement the RPC, language bindings, manual "
40679 "pages or anything else.  It's all automatically generated from the OCaml "
40680 "description."
40681 msgstr ""
40682
40683 #. type: =head2
40684 #: ../src/guestfs.pod:2735
40685 msgid "ADDING TESTS FOR AN API ACTION"
40686 msgstr ""
40687
40688 #. type: textblock
40689 #: ../src/guestfs.pod:2737
40690 msgid ""
40691 "You can supply zero or as many tests as you want per API call.  The tests "
40692 "can either be added as part of the API description (C<generator/"
40693 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
40694 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
40695 "slower, so if possible use the first method."
40696 msgstr ""
40697
40698 #. type: textblock
40699 #: ../src/guestfs.pod:2743
40700 msgid ""
40701 "The following describes the test environment used when you add an API test "
40702 "in C<generator_actions.ml>."
40703 msgstr ""
40704
40705 #. type: textblock
40706 #: ../src/guestfs.pod:2746
40707 msgid "The test environment has 4 block devices:"
40708 msgstr ""
40709
40710 #. type: =item
40711 #: ../src/guestfs.pod:2750
40712 msgid "C</dev/sda> 500MB"
40713 msgstr "C</dev/sda> 500 МБ"
40714
40715 #. type: textblock
40716 #: ../src/guestfs.pod:2752
40717 msgid "General block device for testing."
40718 msgstr ""
40719
40720 #. type: =item
40721 #: ../src/guestfs.pod:2754
40722 msgid "C</dev/sdb> 50MB"
40723 msgstr "C</dev/sdb> 50 МБ"
40724
40725 #. type: textblock
40726 #: ../src/guestfs.pod:2756
40727 msgid ""
40728 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
40729 "operations."
40730 msgstr ""
40731
40732 #. type: =item
40733 #: ../src/guestfs.pod:2759
40734 msgid "C</dev/sdc> 10MB"
40735 msgstr "C</dev/sdc> 10 МБ"
40736
40737 #. type: textblock
40738 #: ../src/guestfs.pod:2761
40739 msgid "Used in a few tests where two block devices are needed."
40740 msgstr ""
40741
40742 #. type: =item
40743 #: ../src/guestfs.pod:2763
40744 msgid "C</dev/sdd>"
40745 msgstr "C</dev/sdd>"
40746
40747 #. type: textblock
40748 #: ../src/guestfs.pod:2765
40749 msgid "ISO with fixed content (see C<images/test.iso>)."
40750 msgstr ""
40751
40752 #. type: textblock
40753 #: ../src/guestfs.pod:2769
40754 msgid ""
40755 "To be able to run the tests in a reasonable amount of time, the libguestfs "
40756 "appliance and block devices are reused between tests.  So don't try testing "
40757 "L</guestfs_kill_subprocess> :-x"
40758 msgstr ""
40759
40760 #. type: textblock
40761 #: ../src/guestfs.pod:2773
40762 msgid ""
40763 "Each test starts with an initial scenario, selected using one of the "
40764 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
40765 "initialize the disks mentioned above in a particular way as documented in "
40766 "C<generator_types.ml>.  You should not assume anything about the previous "
40767 "contents of other disks that are not initialized."
40768 msgstr ""
40769
40770 #. type: textblock
40771 #: ../src/guestfs.pod:2779
40772 msgid ""
40773 "You can add a prerequisite clause to any individual test.  This is a run-"
40774 "time check, which, if it fails, causes the test to be skipped.  Useful if "
40775 "testing a command which might not work on all variations of libguestfs "
40776 "builds.  A test that has prerequisite of C<Always> means to run "
40777 "unconditionally."
40778 msgstr ""
40779
40780 #. type: textblock
40781 #: ../src/guestfs.pod:2785
40782 msgid ""
40783 "In addition, packagers can skip individual tests by setting environment "
40784 "variables before running C<make check>."
40785 msgstr ""
40786
40787 #. type: verbatim
40788 #: ../src/guestfs.pod:2788
40789 #, no-wrap
40790 msgid ""
40791 " SKIP_TEST_<CMD>_<NUM>=1\n"
40792 "\n"
40793 msgstr ""
40794
40795 #. type: textblock
40796 #: ../src/guestfs.pod:2790
40797 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
40798 msgstr ""
40799
40800 #. type: textblock
40801 #: ../src/guestfs.pod:2792
40802 msgid "or:"
40803 msgstr "або:"
40804
40805 #. type: verbatim
40806 #: ../src/guestfs.pod:2794
40807 #, no-wrap
40808 msgid ""
40809 " SKIP_TEST_<CMD>=1\n"
40810 "\n"
40811 msgstr ""
40812
40813 #. type: textblock
40814 #: ../src/guestfs.pod:2796
40815 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40816 msgstr ""
40817
40818 #. type: textblock
40819 #: ../src/guestfs.pod:2798
40820 msgid "Packagers can run only certain tests by setting for example:"
40821 msgstr ""
40822
40823 #. type: verbatim
40824 #: ../src/guestfs.pod:2800
40825 #, no-wrap
40826 msgid ""
40827 " TEST_ONLY=\"vfs_type zerofree\"\n"
40828 "\n"
40829 msgstr ""
40830
40831 #. type: textblock
40832 #: ../src/guestfs.pod:2802
40833 msgid ""
40834 "See C<capitests/tests.c> for more details of how these environment variables "
40835 "work."
40836 msgstr ""
40837
40838 #. type: =head2
40839 #: ../src/guestfs.pod:2805
40840 msgid "DEBUGGING NEW API ACTIONS"
40841 msgstr ""
40842
40843 #. type: textblock
40844 #: ../src/guestfs.pod:2807
40845 msgid "Test new actions work before submitting them."
40846 msgstr ""
40847
40848 #. type: textblock
40849 #: ../src/guestfs.pod:2809
40850 msgid "You can use guestfish to try out new commands."
40851 msgstr ""
40852
40853 #. type: textblock
40854 #: ../src/guestfs.pod:2811
40855 msgid ""
40856 "Debugging the daemon is a problem because it runs inside a minimal "
40857 "environment.  However you can fprintf messages in the daemon to stderr, and "
40858 "they will show up if you use C<guestfish -v>."
40859 msgstr ""
40860
40861 #. type: =head2
40862 #: ../src/guestfs.pod:2815
40863 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40864 msgstr ""
40865
40866 #. type: textblock
40867 #: ../src/guestfs.pod:2817
40868 msgid ""
40869 "Our C source code generally adheres to some basic code-formatting "
40870 "conventions.  The existing code base is not totally consistent on this "
40871 "front, but we do prefer that contributed code be formatted similarly.  In "
40872 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40873 "indentation level, and other than that, follow the K&R style."
40874 msgstr ""
40875
40876 #. type: textblock
40877 #: ../src/guestfs.pod:2823
40878 msgid ""
40879 "If you use Emacs, add the following to one of one of your start-up files (e."
40880 "g., ~/.emacs), to help ensure that you get indentation right:"
40881 msgstr ""
40882
40883 #. type: verbatim
40884 #: ../src/guestfs.pod:2826
40885 #, no-wrap
40886 msgid ""
40887 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40888 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40889 " (add-hook 'find-file-hook\n"
40890 "     '(lambda () (if (and buffer-file-name\n"
40891 "                          (string-match \"/libguestfs\\\\>\"\n"
40892 "                              (buffer-file-name))\n"
40893 "                          (not (string-equal mode-name \"Change Log\"))\n"
40894 "                          (not (string-equal mode-name \"Makefile\")))\n"
40895 "                     (setq indent-tabs-mode nil))))\n"
40896 " \n"
40897 msgstr ""
40898
40899 #. type: verbatim
40900 #: ../src/guestfs.pod:2836
40901 #, no-wrap
40902 msgid ""
40903 " ;;; When editing C sources in libguestfs, use this style.\n"
40904 " (defun libguestfs-c-mode ()\n"
40905 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
40906 "   (interactive)\n"
40907 "   (c-set-style \"K&R\")\n"
40908 "   (setq c-indent-level 2)\n"
40909 "   (setq c-basic-offset 2))\n"
40910 " (add-hook 'c-mode-hook\n"
40911 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40912 "                               (buffer-file-name))\n"
40913 "                           (libguestfs-c-mode))))\n"
40914 "\n"
40915 msgstr ""
40916
40917 #. type: textblock
40918 #: ../src/guestfs.pod:2848
40919 msgid "Enable warnings when compiling (and fix any problems this finds):"
40920 msgstr ""
40921
40922 #. type: verbatim
40923 #: ../src/guestfs.pod:2851
40924 #, no-wrap
40925 msgid ""
40926 " ./configure --enable-gcc-warnings\n"
40927 "\n"
40928 msgstr ""
40929 " ./configure --enable-gcc-warnings\n"
40930 "\n"
40931
40932 #. type: textblock
40933 #: ../src/guestfs.pod:2853
40934 msgid "Useful targets are:"
40935 msgstr ""
40936
40937 #. type: verbatim
40938 #: ../src/guestfs.pod:2855
40939 #, no-wrap
40940 msgid ""
40941 " make syntax-check  # checks the syntax of the C code\n"
40942 " make check         # runs the test suite\n"
40943 "\n"
40944 msgstr ""
40945
40946 #. type: =head2
40947 #: ../src/guestfs.pod:2858
40948 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40949 msgstr ""
40950
40951 #. type: textblock
40952 #: ../src/guestfs.pod:2860
40953 msgid ""
40954 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40955 "which are used to do shell quoting."
40956 msgstr ""
40957
40958 #. type: =item
40959 #: ../src/guestfs.pod:2865
40960 msgid "%Q"
40961 msgstr "%Q"
40962
40963 #. type: textblock
40964 #: ../src/guestfs.pod:2867
40965 msgid ""
40966 "Simple shell quoted string.  Any spaces or other shell characters are "
40967 "escaped for you."
40968 msgstr ""
40969
40970 #. type: =item
40971 #: ../src/guestfs.pod:2870
40972 msgid "%R"
40973 msgstr "%R"
40974
40975 #. type: textblock
40976 #: ../src/guestfs.pod:2872
40977 msgid ""
40978 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40979 "the sysroot."
40980 msgstr ""
40981
40982 #. type: verbatim
40983 #: ../src/guestfs.pod:2879
40984 #, no-wrap
40985 msgid ""
40986 " asprintf (&cmd, \"cat %R\", path);\n"
40987 "\n"
40988 msgstr ""
40989 " asprintf (&cmd, \"cat %R\", path);\n"
40990 "\n"
40991
40992 #. type: textblock
40993 #: ../src/guestfs.pod:2881
40994 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40995 msgstr ""
40996
40997 #. type: textblock
40998 #: ../src/guestfs.pod:2883
40999 msgid ""
41000 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
41001 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
41002 "they are not passed via the shell (instead, straight to exec).  You probably "
41003 "want to use the C<sysroot_path()> function however."
41004 msgstr ""
41005
41006 #. type: =head2
41007 #: ../src/guestfs.pod:2889
41008 msgid "SUBMITTING YOUR NEW API ACTIONS"
41009 msgstr ""
41010
41011 #. type: textblock
41012 #: ../src/guestfs.pod:2891
41013 msgid ""
41014 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
41015 "libguestfs> and CC to L<rjones@redhat.com>."
41016 msgstr ""
41017
41018 #. type: =head2
41019 #: ../src/guestfs.pod:2895
41020 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
41021 msgstr ""
41022
41023 #. type: textblock
41024 #: ../src/guestfs.pod:2897
41025 msgid "We support i18n (gettext anyhow) in the library."
41026 msgstr ""
41027
41028 #. type: textblock
41029 #: ../src/guestfs.pod:2899
41030 msgid ""
41031 "However many messages come from the daemon, and we don't translate those at "
41032 "the moment.  One reason is that the appliance generally has all locale files "
41033 "removed from it, because they take up a lot of space.  So we'd have to readd "
41034 "some of those, as well as copying our PO files into the appliance."
41035 msgstr ""
41036
41037 #. type: textblock
41038 #: ../src/guestfs.pod:2905
41039 msgid ""
41040 "Debugging messages are never translated, since they are intended for the "
41041 "programmers."
41042 msgstr ""
41043
41044 #. type: =head2
41045 #: ../src/guestfs.pod:2908
41046 msgid "SOURCE CODE SUBDIRECTORIES"
41047 msgstr ""
41048
41049 #. type: =item
41050 #: ../src/guestfs.pod:2912
41051 msgid "C<align>"
41052 msgstr ""
41053
41054 #. type: textblock
41055 #: ../src/guestfs.pod:2914
41056 msgid "L<virt-alignment-scan(1)> command and documentation."
41057 msgstr ""
41058
41059 #. type: textblock
41060 #: ../src/guestfs.pod:2918
41061 msgid "The libguestfs appliance, build scripts and so on."
41062 msgstr ""
41063
41064 #. type: =item
41065 #: ../src/guestfs.pod:2920
41066 msgid "C<capitests>"
41067 msgstr "C<capitests>"
41068
41069 #. type: textblock
41070 #: ../src/guestfs.pod:2922
41071 msgid "Automated tests of the C API."
41072 msgstr ""
41073
41074 #. type: =item
41075 #: ../src/guestfs.pod:2924
41076 msgid "C<cat>"
41077 msgstr "C<cat>"
41078
41079 #. type: textblock
41080 #: ../src/guestfs.pod:2926
41081 msgid ""
41082 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
41083 "documentation."
41084 msgstr ""
41085
41086 #. type: =item
41087 #: ../src/guestfs.pod:2929
41088 msgid "C<caution>"
41089 msgstr "C<caution>"
41090
41091 #. type: textblock
41092 #: ../src/guestfs.pod:2931
41093 msgid ""
41094 "Safety and liveness tests of components that libguestfs depends upon (not of "
41095 "libguestfs itself).  Mainly this is for qemu and the kernel."
41096 msgstr ""
41097
41098 #. type: =item
41099 #: ../src/guestfs.pod:2934
41100 msgid "C<clone>"
41101 msgstr ""
41102
41103 #. type: textblock
41104 #: ../src/guestfs.pod:2936
41105 msgid ""
41106 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
41107 "command and documentation."
41108 msgstr ""
41109
41110 #. type: =item
41111 #: ../src/guestfs.pod:2939
41112 msgid "C<contrib>"
41113 msgstr "C<contrib>"
41114
41115 #. type: textblock
41116 #: ../src/guestfs.pod:2941
41117 msgid "Outside contributions, experimental parts."
41118 msgstr ""
41119
41120 #. type: =item
41121 #: ../src/guestfs.pod:2943
41122 msgid "C<daemon>"
41123 msgstr "C<daemon>"
41124
41125 #. type: textblock
41126 #: ../src/guestfs.pod:2945
41127 msgid ""
41128 "The daemon that runs inside the libguestfs appliance and carries out actions."
41129 msgstr ""
41130
41131 #. type: =item
41132 #: ../src/guestfs.pod:2948
41133 msgid "C<df>"
41134 msgstr "C<df>"
41135
41136 #. type: textblock
41137 #: ../src/guestfs.pod:2950
41138 msgid "L<virt-df(1)> command and documentation."
41139 msgstr ""
41140
41141 #. type: =item
41142 #: ../src/guestfs.pod:2952
41143 msgid "C<edit>"
41144 msgstr "C<edit>"
41145
41146 #. type: textblock
41147 #: ../src/guestfs.pod:2954
41148 msgid "L<virt-edit(1)> command and documentation."
41149 msgstr ""
41150
41151 #. type: =item
41152 #: ../src/guestfs.pod:2956
41153 msgid "C<examples>"
41154 msgstr "C<examples>"
41155
41156 #. type: textblock
41157 #: ../src/guestfs.pod:2958
41158 msgid "C API example code."
41159 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
41160
41161 #. type: =item
41162 #: ../src/guestfs.pod:2960
41163 msgid "C<fish>"
41164 msgstr "C<fish>"
41165
41166 #. type: textblock
41167 #: ../src/guestfs.pod:2962
41168 msgid ""
41169 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
41170 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
41171 "L<virt-tar-out(1)>."
41172 msgstr ""
41173
41174 #. type: =item
41175 #: ../src/guestfs.pod:2966
41176 msgid "C<fuse>"
41177 msgstr "C<fuse>"
41178
41179 #. type: textblock
41180 #: ../src/guestfs.pod:2968
41181 msgid ""
41182 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
41183 msgstr ""
41184
41185 #. type: =item
41186 #: ../src/guestfs.pod:2970
41187 msgid "C<generator>"
41188 msgstr "C<generator>"
41189
41190 #. type: textblock
41191 #: ../src/guestfs.pod:2972
41192 msgid ""
41193 "The crucially important generator, used to automatically generate large "
41194 "amounts of boilerplate C code for things like RPC and bindings."
41195 msgstr ""
41196
41197 #. type: =item
41198 #: ../src/guestfs.pod:2975
41199 msgid "C<images>"
41200 msgstr "C<images>"
41201
41202 #. type: textblock
41203 #: ../src/guestfs.pod:2977
41204 msgid "Files used by the test suite."
41205 msgstr ""
41206
41207 #. type: textblock
41208 #: ../src/guestfs.pod:2979
41209 msgid "Some \"phony\" guest images which we test against."
41210 msgstr ""
41211
41212 #. type: =item
41213 #: ../src/guestfs.pod:2981
41214 msgid "C<inspector>"
41215 msgstr "C<inspector>"
41216
41217 #. type: textblock
41218 #: ../src/guestfs.pod:2983
41219 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
41220 msgstr ""
41221
41222 #. type: =item
41223 #: ../src/guestfs.pod:2985
41224 msgid "C<logo>"
41225 msgstr "C<logo>"
41226
41227 #. type: textblock
41228 #: ../src/guestfs.pod:2987
41229 msgid "Logo used on the website.  The fish is called Arthur by the way."
41230 msgstr ""
41231
41232 #. type: =item
41233 #: ../src/guestfs.pod:2989
41234 msgid "C<m4>"
41235 msgstr "C<m4>"
41236
41237 #. type: textblock
41238 #: ../src/guestfs.pod:2991
41239 msgid "M4 macros used by autoconf."
41240 msgstr ""
41241
41242 #. type: =item
41243 #: ../src/guestfs.pod:2993
41244 msgid "C<po>"
41245 msgstr "C<po>"
41246
41247 #. type: textblock
41248 #: ../src/guestfs.pod:2995
41249 msgid "Translations of simple gettext strings."
41250 msgstr "Переклади простих рядків gettext."
41251
41252 #. type: =item
41253 #: ../src/guestfs.pod:2997
41254 msgid "C<po-docs>"
41255 msgstr "C<po-docs>"
41256
41257 #. type: textblock
41258 #: ../src/guestfs.pod:2999
41259 msgid ""
41260 "The build infrastructure and PO files for translations of manpages and POD "
41261 "files.  Eventually this will be combined with the C<po> directory, but that "
41262 "is rather complicated."
41263 msgstr ""
41264
41265 #. type: =item
41266 #: ../src/guestfs.pod:3003
41267 msgid "C<regressions>"
41268 msgstr "C<regressions>"
41269
41270 #. type: textblock
41271 #: ../src/guestfs.pod:3005
41272 msgid "Regression tests."
41273 msgstr "Тести на регресії."
41274
41275 #. type: =item
41276 #: ../src/guestfs.pod:3007
41277 msgid "C<rescue>"
41278 msgstr "C<rescue>"
41279
41280 #. type: textblock
41281 #: ../src/guestfs.pod:3009
41282 msgid "L<virt-rescue(1)> command and documentation."
41283 msgstr ""
41284
41285 #. type: =item
41286 #: ../src/guestfs.pod:3011
41287 msgid "C<resize>"
41288 msgstr ""
41289
41290 #. type: textblock
41291 #: ../src/guestfs.pod:3013
41292 msgid "L<virt-resize(1)> command and documentation."
41293 msgstr ""
41294
41295 #. type: =item
41296 #: ../src/guestfs.pod:3015
41297 msgid "C<sparsify>"
41298 msgstr ""
41299
41300 #. type: textblock
41301 #: ../src/guestfs.pod:3017
41302 msgid "L<virt-sparsify(1)> command and documentation."
41303 msgstr ""
41304
41305 #. type: =item
41306 #: ../src/guestfs.pod:3019
41307 msgid "C<src>"
41308 msgstr "C<src>"
41309
41310 #. type: textblock
41311 #: ../src/guestfs.pod:3021
41312 msgid "Source code to the C library."
41313 msgstr ""
41314
41315 #. type: =item
41316 #: ../src/guestfs.pod:3023
41317 msgid "C<tools>"
41318 msgstr "C<tools>"
41319
41320 #. type: textblock
41321 #: ../src/guestfs.pod:3025
41322 msgid ""
41323 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
41324 msgstr ""
41325
41326 #. type: =item
41327 #: ../src/guestfs.pod:3027
41328 msgid "C<test-tool>"
41329 msgstr "C<test-tool>"
41330
41331 #. type: textblock
41332 #: ../src/guestfs.pod:3029
41333 msgid ""
41334 "Test tool for end users to test if their qemu/kernel combination will work "
41335 "with libguestfs."
41336 msgstr ""
41337
41338 #. type: =item
41339 #: ../src/guestfs.pod:3032
41340 msgid "C<csharp>"
41341 msgstr "C<csharp>"
41342
41343 #. type: =item
41344 #: ../src/guestfs.pod:3034
41345 msgid "C<erlang>"
41346 msgstr ""
41347
41348 #. type: =item
41349 #: ../src/guestfs.pod:3036
41350 msgid "C<haskell>"
41351 msgstr "C<haskell>"
41352
41353 #. type: =item
41354 #: ../src/guestfs.pod:3038
41355 msgid "C<java>"
41356 msgstr "C<java>"
41357
41358 #. type: =item
41359 #: ../src/guestfs.pod:3040
41360 msgid "C<ocaml>"
41361 msgstr "C<ocaml>"
41362
41363 #. type: =item
41364 #: ../src/guestfs.pod:3042
41365 msgid "C<php>"
41366 msgstr "C<php>"
41367
41368 #. type: =item
41369 #: ../src/guestfs.pod:3044
41370 msgid "C<perl>"
41371 msgstr "C<perl>"
41372
41373 #. type: =item
41374 #: ../src/guestfs.pod:3046
41375 msgid "C<python>"
41376 msgstr "C<python>"
41377
41378 #. type: =item
41379 #: ../src/guestfs.pod:3048
41380 msgid "C<ruby>"
41381 msgstr "C<ruby>"
41382
41383 #. type: textblock
41384 #: ../src/guestfs.pod:3050
41385 msgid "Language bindings."
41386 msgstr "Прив’язки до мов програмування."
41387
41388 #. type: =head2
41389 #: ../src/guestfs.pod:3054
41390 msgid "MAKING A STABLE RELEASE"
41391 msgstr ""
41392
41393 #. type: textblock
41394 #: ../src/guestfs.pod:3056
41395 msgid ""
41396 "When we make a stable release, there are several steps documented here.  See "
41397 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
41398 "branch policy."
41399 msgstr ""
41400
41401 #. type: textblock
41402 #: ../src/guestfs.pod:3064
41403 msgid ""
41404 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
41405 msgstr ""
41406
41407 #. type: textblock
41408 #: ../src/guestfs.pod:3069
41409 msgid "Finalize RELEASE-NOTES."
41410 msgstr ""
41411
41412 #. type: textblock
41413 #: ../src/guestfs.pod:3073
41414 msgid "Update ROADMAP."
41415 msgstr ""
41416
41417 #. type: textblock
41418 #: ../src/guestfs.pod:3077
41419 msgid "Run C<src/api-support/update-from-tarballs.sh>."
41420 msgstr ""
41421
41422 #. type: textblock
41423 #: ../src/guestfs.pod:3081
41424 msgid "Push and pull from Transifex."
41425 msgstr ""
41426
41427 #. type: textblock
41428 #: ../src/guestfs.pod:3083
41429 msgid "Run:"
41430 msgstr ""
41431
41432 #. type: verbatim
41433 #: ../src/guestfs.pod:3085
41434 #, no-wrap
41435 msgid ""
41436 " tx push -s\n"
41437 "\n"
41438 msgstr ""
41439
41440 #. type: textblock
41441 #: ../src/guestfs.pod:3087
41442 msgid "to push the latest POT files to Transifex.  Then run:"
41443 msgstr ""
41444
41445 #. type: verbatim
41446 #: ../src/guestfs.pod:3089
41447 #, no-wrap
41448 msgid ""
41449 " ./tx-pull.sh\n"
41450 "\n"
41451 msgstr ""
41452
41453 #. type: textblock
41454 #: ../src/guestfs.pod:3091
41455 msgid "which is a wrapper to pull the latest translated C<*.po> files."
41456 msgstr ""
41457
41458 #. type: textblock
41459 #: ../src/guestfs.pod:3095
41460 msgid ""
41461 "Create new stable and development directories under L<http://libguestfs.org/"
41462 "download>."
41463 msgstr ""
41464
41465 #. type: textblock
41466 #: ../src/guestfs.pod:3100
41467 msgid "Create the branch in git:"
41468 msgstr ""
41469
41470 #. type: verbatim
41471 #: ../src/guestfs.pod:3102
41472 #, no-wrap
41473 msgid ""
41474 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
41475 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
41476 " git branch stable-1.XX\n"
41477 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
41478 "\n"
41479 msgstr ""
41480
41481 #. type: =head1
41482 #: ../src/guestfs.pod:3109
41483 msgid "LIMITS"
41484 msgstr "ОБМЕЖЕННЯ"
41485
41486 #. type: =head2
41487 #: ../src/guestfs.pod:3111
41488 msgid "PROTOCOL LIMITS"
41489 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
41490
41491 #. type: textblock
41492 #: ../src/guestfs.pod:3113
41493 msgid ""
41494 "Internally libguestfs uses a message-based protocol to pass API calls and "
41495 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
41496 "plenty more detail about this).  The maximum message size used by the "
41497 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
41498 "aware of this limit.  The API calls which may be affected are individually "
41499 "documented, with a link back to this section of the documentation."
41500 msgstr ""
41501
41502 #. type: textblock
41503 #: ../src/guestfs.pod:3121
41504 msgid ""
41505 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
41506 "a simple string.  Because this string is at some point internally encoded as "
41507 "a message, the maximum size that it can return is slightly under 4 MB.  If "
41508 "the requested file is larger than this then you will get an error."
41509 msgstr ""
41510
41511 #. type: textblock
41512 #: ../src/guestfs.pod:3127
41513 msgid ""
41514 "In order to transfer large files into and out of the guest filesystem, you "
41515 "need to use particular calls that support this.  The sections L</UPLOADING> "
41516 "and L</DOWNLOADING> document how to do this."
41517 msgstr ""
41518
41519 #. type: textblock
41520 #: ../src/guestfs.pod:3131
41521 msgid ""
41522 "You might also consider mounting the disk image using our FUSE filesystem "
41523 "support (L<guestmount(1)>)."
41524 msgstr ""
41525
41526 #. type: =head2
41527 #: ../src/guestfs.pod:3134
41528 msgid "MAXIMUM NUMBER OF DISKS"
41529 msgstr ""
41530
41531 #. type: textblock
41532 #: ../src/guestfs.pod:3136
41533 msgid "When using virtio disks (the default) the current limit is B<25> disks."
41534 msgstr ""
41535
41536 #. type: textblock
41537 #: ../src/guestfs.pod:3139
41538 msgid ""
41539 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
41540 "slots.  However febootstrap only understands disks with names C</dev/vda> "
41541 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
41542 "purposes."
41543 msgstr ""
41544
41545 #. type: textblock
41546 #: ../src/guestfs.pod:3144
41547 msgid ""
41548 "We are working to substantially raise this limit in future versions but it "
41549 "requires complex changes to qemu."
41550 msgstr ""
41551
41552 #. type: textblock
41553 #: ../src/guestfs.pod:3147
41554 msgid ""
41555 "In future versions of libguestfs it should also be possible to \"hot plug\" "
41556 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
41557 "requires changes to qemu."
41558 msgstr ""
41559
41560 #. type: =head2
41561 #: ../src/guestfs.pod:3151
41562 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
41563 msgstr ""
41564
41565 #. type: textblock
41566 #: ../src/guestfs.pod:3153
41567 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
41568 msgstr ""
41569
41570 #. type: textblock
41571 #: ../src/guestfs.pod:3155
41572 msgid ""
41573 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
41574 "vda>, and C</dev/vda1> through C</dev/vda15>)."
41575 msgstr ""
41576
41577 #. type: textblock
41578 #: ../src/guestfs.pod:3158
41579 msgid ""
41580 "If you attach a disk with more than 15 partitions, the extra partitions are "
41581 "ignored by libguestfs."
41582 msgstr ""
41583
41584 #. type: =head2
41585 #: ../src/guestfs.pod:3161
41586 msgid "MAXIMUM SIZE OF A DISK"
41587 msgstr ""
41588
41589 #. type: textblock
41590 #: ../src/guestfs.pod:3163
41591 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
41592 msgstr ""
41593
41594 #. type: textblock
41595 #: ../src/guestfs.pod:3165
41596 msgid ""
41597 "We have tested block devices up to 1 exabyte (2**60 or "
41598 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
41599 "filesystem."
41600 msgstr ""
41601
41602 #. type: textblock
41603 #: ../src/guestfs.pod:3169
41604 msgid ""
41605 "Although libguestfs probably does not impose any limit, the underlying host "
41606 "storage will.  If you store disk images on a host ext4 filesystem, then the "
41607 "maximum size will be limited by the maximum ext4 file size (currently 16 "
41608 "TB).  If you store disk images as host logical volumes then you are limited "
41609 "by the maximum size of an LV."
41610 msgstr ""
41611
41612 #. type: textblock
41613 #: ../src/guestfs.pod:3175
41614 msgid ""
41615 "For the hugest disk image files, we recommend using XFS on the host for "
41616 "storage."
41617 msgstr ""
41618
41619 #. type: =head2
41620 #: ../src/guestfs.pod:3178
41621 msgid "MAXIMUM SIZE OF A PARTITION"
41622 msgstr ""
41623
41624 #. type: textblock
41625 #: ../src/guestfs.pod:3180
41626 msgid ""
41627 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
41628 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
41629 "address a partition located beyond 2 TB on the disk."
41630 msgstr ""
41631
41632 #. type: textblock
41633 #: ../src/guestfs.pod:3184
41634 msgid ""
41635 "It is recommended that you use GPT partitions on disks which are larger than "
41636 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
41637 "which are theoretically larger than the largest disk we could support."
41638 msgstr ""
41639
41640 #. type: =head2
41641 #: ../src/guestfs.pod:3189
41642 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
41643 msgstr ""
41644
41645 #. type: textblock
41646 #: ../src/guestfs.pod:3191
41647 msgid ""
41648 "This depends on the filesystem type.  libguestfs itself does not impose any "
41649 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
41650 "what these limits are."
41651 msgstr ""
41652
41653 #. type: =head2
41654 #: ../src/guestfs.pod:3195
41655 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
41656 msgstr ""
41657
41658 #. type: textblock
41659 #: ../src/guestfs.pod:3197
41660 msgid ""
41661 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
41662 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
41663 "uploads and downloads."
41664 msgstr ""
41665
41666 #. type: =head2
41667 #: ../src/guestfs.pod:3201
41668 msgid "INSPECTION LIMITS"
41669 msgstr ""
41670
41671 #. type: textblock
41672 #: ../src/guestfs.pod:3203
41673 msgid ""
41674 "The inspection code has several arbitrary limits on things like the size of "
41675 "Windows Registry hive it will read, and the length of product name.  These "
41676 "are intended to stop a malicious guest from consuming arbitrary amounts of "
41677 "memory and disk space on the host, and should not be reached in practice.  "
41678 "See the source code for more information."
41679 msgstr ""
41680
41681 #. type: textblock
41682 #: ../src/guestfs.pod:3229
41683 msgid ""
41684 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
41685 "effect as calling C<guestfs_set_verbose (g, 1)>."
41686 msgstr ""
41687
41688 #. type: textblock
41689 #: ../src/guestfs.pod:3241
41690 msgid ""
41691 "Set the path that libguestfs uses to search for a supermin appliance.  See "
41692 "the discussion of paths in section L</PATH> above."
41693 msgstr ""
41694
41695 #. type: textblock
41696 #: ../src/guestfs.pod:3250
41697 msgid "See also L</QEMU WRAPPERS> above."
41698 msgstr ""
41699
41700 #. type: textblock
41701 #: ../src/guestfs.pod:3254
41702 msgid ""
41703 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
41704 "effect as calling C<guestfs_set_trace (g, 1)>."
41705 msgstr ""
41706
41707 #. type: textblock
41708 #: ../src/guestfs.pod:3272
41709 msgid ""
41710 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
41711 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
41712 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
41713 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
41714 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
41715 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
41716 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
41717 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
41718 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
41719 ">, L<http://libguestfs.org/>."
41720 msgstr ""
41721
41722 #. type: textblock
41723 #: ../src/guestfs.pod:3308
41724 msgid ""
41725 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
41726 "(8)>, L<disktype(1)>."
41727 msgstr ""
41728
41729 #. type: =head1
41730 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571
41731 #: ../tools/virt-win-reg.pl:772
41732 msgid "BUGS"
41733 msgstr "ВАДИ"
41734
41735 #. type: textblock
41736 #: ../src/guestfs.pod:3317
41737 msgid "To get a list of bugs against libguestfs use this link:"
41738 msgstr ""
41739 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
41740 "посиланням:"
41741
41742 #. type: textblock
41743 #: ../src/guestfs.pod:3319
41744 msgid ""
41745 "L<https://bugzilla.redhat.com/buglist.cgi?"
41746 "component=libguestfs&product=Virtualization+Tools>"
41747 msgstr ""
41748 "L<https://bugzilla.redhat.com/buglist.cgi?"
41749 "component=libguestfs&product=Virtualization+Tools>"
41750
41751 #. type: textblock
41752 #: ../src/guestfs.pod:3321
41753 msgid "To report a new bug against libguestfs use this link:"
41754 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
41755
41756 #. type: textblock
41757 #: ../src/guestfs.pod:3323
41758 msgid ""
41759 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41760 "component=libguestfs&product=Virtualization+Tools>"
41761 msgstr ""
41762 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
41763 "component=libguestfs&product=Virtualization+Tools>"
41764
41765 #. type: textblock
41766 #: ../src/guestfs.pod:3325
41767 msgid "When reporting a bug, please check:"
41768 msgstr ""
41769
41770 #. type: textblock
41771 #: ../src/guestfs.pod:3331
41772 msgid "That the bug hasn't been reported already."
41773 msgstr ""
41774
41775 #. type: textblock
41776 #: ../src/guestfs.pod:3335
41777 msgid "That you are testing a recent version."
41778 msgstr ""
41779
41780 #. type: textblock
41781 #: ../src/guestfs.pod:3339
41782 msgid "Describe the bug accurately, and give a way to reproduce it."
41783 msgstr ""
41784
41785 #. type: textblock
41786 #: ../src/guestfs.pod:3343
41787 msgid ""
41788 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
41789 "bug report."
41790 msgstr ""
41791
41792 #. type: textblock
41793 #: ../test-tool/libguestfs-test-tool.pod:5
41794 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
41795 msgstr ""
41796
41797 #. type: verbatim
41798 #: ../test-tool/libguestfs-test-tool.pod:9
41799 #, no-wrap
41800 msgid ""
41801 " libguestfs-test-tool [--options]\n"
41802 "\n"
41803 msgstr ""
41804
41805 #. type: textblock
41806 #: ../test-tool/libguestfs-test-tool.pod:13
41807 msgid ""
41808 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
41809 "to check basic libguestfs functionality is working.  This is needed because "
41810 "libguestfs occasionally breaks for reasons beyond our control: usually "
41811 "because of changes in the underlying qemu or kernel packages, or the host "
41812 "environment."
41813 msgstr ""
41814
41815 #. type: textblock
41816 #: ../test-tool/libguestfs-test-tool.pod:19
41817 msgid "If you suspect a problem in libguestfs, then just run:"
41818 msgstr ""
41819
41820 #. type: verbatim
41821 #: ../test-tool/libguestfs-test-tool.pod:21
41822 #, no-wrap
41823 msgid ""
41824 " libguestfs-test-tool\n"
41825 "\n"
41826 msgstr ""
41827
41828 #. type: textblock
41829 #: ../test-tool/libguestfs-test-tool.pod:23
41830 msgid "It will print lots of diagnostic messages."
41831 msgstr ""
41832
41833 #. type: textblock
41834 #: ../test-tool/libguestfs-test-tool.pod:25
41835 msgid "If it runs to completion successfully, you will see this near the end:"
41836 msgstr ""
41837
41838 #. type: verbatim
41839 #: ../test-tool/libguestfs-test-tool.pod:27
41840 #, no-wrap
41841 msgid ""
41842 " ===== TEST FINISHED OK =====\n"
41843 "\n"
41844 msgstr ""
41845
41846 #. type: textblock
41847 #: ../test-tool/libguestfs-test-tool.pod:29
41848 msgid "and the test tool will exit with code 0."
41849 msgstr ""
41850
41851 #. type: textblock
41852 #: ../test-tool/libguestfs-test-tool.pod:31
41853 msgid ""
41854 "If it fails (and/or exits with non-zero error code), please paste the "
41855 "I<complete, unedited> output of the test tool into a bug report.  More "
41856 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41857 "> website."
41858 msgstr ""
41859
41860 #. type: textblock
41861 #: ../test-tool/libguestfs-test-tool.pod:42
41862 msgid "Display short usage information and exit."
41863 msgstr ""
41864
41865 #. type: =item
41866 #: ../test-tool/libguestfs-test-tool.pod:44
41867 msgid "B<--qemu qemu_binary>"
41868 msgstr ""
41869
41870 #. type: textblock
41871 #: ../test-tool/libguestfs-test-tool.pod:46
41872 msgid ""
41873 "If you have downloaded another qemu binary, point this option at the full "
41874 "path of the binary to try it."
41875 msgstr ""
41876
41877 #. type: =item
41878 #: ../test-tool/libguestfs-test-tool.pod:49
41879 msgid "B<--qemudir qemu_source_dir>"
41880 msgstr ""
41881
41882 #. type: textblock
41883 #: ../test-tool/libguestfs-test-tool.pod:51
41884 msgid ""
41885 "If you have compiled qemu from source, point this option at the source "
41886 "directory to try it."
41887 msgstr ""
41888
41889 #. type: =item
41890 #: ../test-tool/libguestfs-test-tool.pod:54
41891 msgid "B<-t N>"
41892 msgstr ""
41893
41894 #. type: =item
41895 #: ../test-tool/libguestfs-test-tool.pod:56
41896 msgid "B<--timeout N>"
41897 msgstr ""
41898
41899 #. type: textblock
41900 #: ../test-tool/libguestfs-test-tool.pod:58
41901 msgid ""
41902 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
41903 "minutes) which does not usually need to be adjusted."
41904 msgstr ""
41905
41906 #. type: =head1
41907 #: ../test-tool/libguestfs-test-tool.pod:63
41908 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41909 msgstr ""
41910
41911 #. type: textblock
41912 #: ../test-tool/libguestfs-test-tool.pod:65
41913 msgid ""
41914 "If you have compiled another version of qemu from source and would like to "
41915 "try that, then you can use the I<--qemudir> option to point to the qemu "
41916 "source directory."
41917 msgstr ""
41918
41919 #. type: textblock
41920 #: ../test-tool/libguestfs-test-tool.pod:69
41921 msgid ""
41922 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41923 "option to point to the binary."
41924 msgstr ""
41925
41926 #. type: textblock
41927 #: ../test-tool/libguestfs-test-tool.pod:72
41928 msgid ""
41929 "Note when using these options, you can ignore the business of qemu wrapper "
41930 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41931 "wrapper script for you if one is needed."
41932 msgstr ""
41933
41934 #. type: =head1
41935 #: ../test-tool/libguestfs-test-tool.pod:76
41936 msgid "TRYING OUT A DIFFERENT KERNEL"
41937 msgstr ""
41938
41939 #. type: textblock
41940 #: ../test-tool/libguestfs-test-tool.pod:78
41941 msgid ""
41942 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41943 "libguestfs tries.  You do this by setting the environment variables "
41944 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41945 msgstr ""
41946
41947 #. type: textblock
41948 #: ../test-tool/libguestfs-test-tool.pod:82
41949 msgid ""
41950 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41951 "information."
41952 msgstr ""
41953
41954 #. type: =head1
41955 #: ../test-tool/libguestfs-test-tool.pod:85
41956 msgid "SELF-DIAGNOSIS"
41957 msgstr ""
41958
41959 #. type: textblock
41960 #: ../test-tool/libguestfs-test-tool.pod:87
41961 msgid ""
41962 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41963 "produced by libguestfs-test-tool and/or possible errors."
41964 msgstr ""
41965
41966 #. type: textblock
41967 #: ../test-tool/libguestfs-test-tool.pod:92
41968 msgid ""
41969 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41970 "I<1> if there was an error."
41971 msgstr ""
41972
41973 #. type: textblock
41974 #: ../test-tool/libguestfs-test-tool.pod:97
41975 msgid ""
41976 "For the full list of environment variables which may affect libguestfs, "
41977 "please see the L<guestfs(3)> manual page."
41978 msgstr ""
41979
41980 #. type: textblock
41981 #: ../test-tool/libguestfs-test-tool.pod:102
41982 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41983 msgstr ""
41984
41985 #. type: textblock
41986 #: ../tools/virt-list-filesystems.pl:32
41987 msgid ""
41988 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41989 msgstr ""
41990
41991 #. type: verbatim
41992 #: ../tools/virt-list-filesystems.pl:36
41993 #, no-wrap
41994 msgid ""
41995 " virt-list-filesystems [--options] domname\n"
41996 "\n"
41997 msgstr ""
41998
41999 #. type: verbatim
42000 #: ../tools/virt-list-filesystems.pl:38
42001 #, no-wrap
42002 msgid ""
42003 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
42004 "\n"
42005 msgstr ""
42006
42007 #. type: textblock
42008 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
42009 msgid ""
42010 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
42011 "replacement."
42012 msgstr ""
42013
42014 #. type: textblock
42015 #: ../tools/virt-list-filesystems.pl:45
42016 msgid ""
42017 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
42018 "are contained in a virtual machine or disk image."
42019 msgstr ""
42020
42021 #. type: textblock
42022 #: ../tools/virt-list-filesystems.pl:49
42023 msgid ""
42024 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
42025 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42026 "> tool."
42027 msgstr ""
42028
42029 #. type: textblock
42030 #: ../tools/virt-list-filesystems.pl:112
42031 msgid ""
42032 "With this option, C<virt-list-filesystems> displays the type of each "
42033 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
42034 msgstr ""
42035
42036 #. type: =item
42037 #: ../tools/virt-list-filesystems.pl:119
42038 msgid "B<-a>"
42039 msgstr "B<-a>"
42040
42041 #. type: textblock
42042 #: ../tools/virt-list-filesystems.pl:123
42043 msgid ""
42044 "Normally we only show mountable filesystems.  If this option is given then "
42045 "swap devices are shown too."
42046 msgstr ""
42047
42048 #. type: textblock
42049 #: ../tools/virt-list-filesystems.pl:197
42050 msgid ""
42051 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42052 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42053 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42054 msgstr ""
42055 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
42056 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
42057 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42058
42059 #. type: textblock
42060 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
42061 msgid "Copyright (C) 2009 Red Hat Inc."
42062 msgstr "© Red Hat Inc., 2009"
42063
42064 #. type: textblock
42065 #: ../tools/virt-list-partitions.pl:32
42066 msgid ""
42067 "virt-list-partitions - List partitions in a virtual machine or disk image"
42068 msgstr ""
42069
42070 #. type: verbatim
42071 #: ../tools/virt-list-partitions.pl:36
42072 #, no-wrap
42073 msgid ""
42074 " virt-list-partitions [--options] domname\n"
42075 "\n"
42076 msgstr ""
42077 " virt-list-partitions [--параметри] назва_домену\n"
42078 "\n"
42079
42080 #. type: verbatim
42081 #: ../tools/virt-list-partitions.pl:38
42082 #, no-wrap
42083 msgid ""
42084 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
42085 "\n"
42086 msgstr ""
42087 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
42088 "\n"
42089
42090 #. type: textblock
42091 #: ../tools/virt-list-partitions.pl:45
42092 msgid ""
42093 "C<virt-list-partitions> is a command line tool to list the partitions that "
42094 "are contained in a virtual machine or disk image.  It is mainly useful as a "
42095 "first step to using L<virt-resize(1)>."
42096 msgstr ""
42097
42098 #. type: textblock
42099 #: ../tools/virt-list-partitions.pl:50
42100 msgid ""
42101 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
42102 "functionality.  For more complex cases you should look at the L<guestfish(1)"
42103 "> tool."
42104 msgstr ""
42105
42106 #. type: textblock
42107 #: ../tools/virt-list-partitions.pl:113
42108 msgid "Show sizes in human-readable form (eg. \"1G\")."
42109 msgstr ""
42110
42111 #. type: textblock
42112 #: ../tools/virt-list-partitions.pl:123
42113 msgid ""
42114 "With this option, C<virt-list-partitions> displays the type and size of each "
42115 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
42116 msgstr ""
42117
42118 #. type: =item
42119 #: ../tools/virt-list-partitions.pl:130
42120 msgid "B<-t>"
42121 msgstr "B<-t>"
42122
42123 #. type: =item
42124 #: ../tools/virt-list-partitions.pl:132
42125 msgid "B<--total>"
42126 msgstr "B<--total>"
42127
42128 #. type: textblock
42129 #: ../tools/virt-list-partitions.pl:134
42130 msgid ""
42131 "Display the total size of each block device (as a separate row or rows)."
42132 msgstr ""
42133
42134 #. type: textblock
42135 #: ../tools/virt-list-partitions.pl:267
42136 msgid ""
42137 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42138 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42139 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42140 msgstr ""
42141 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
42142 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
42143 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42144
42145 #. type: textblock
42146 #: ../tools/virt-list-partitions.pl:283
42147 msgid "Copyright (C) 2009-2010 Red Hat Inc."
42148 msgstr "© Red Hat Inc., 2009–2010"
42149
42150 #. type: textblock
42151 #: ../tools/virt-make-fs.pl:37
42152 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
42153 msgstr ""
42154
42155 #. type: verbatim
42156 #: ../tools/virt-make-fs.pl:41
42157 #, no-wrap
42158 msgid ""
42159 " virt-make-fs [--options] input.tar output.img\n"
42160 "\n"
42161 msgstr ""
42162
42163 #. type: verbatim
42164 #: ../tools/virt-make-fs.pl:43
42165 #, no-wrap
42166 msgid ""
42167 " virt-make-fs [--options] input.tar.gz output.img\n"
42168 "\n"
42169 msgstr ""
42170
42171 #. type: verbatim
42172 #: ../tools/virt-make-fs.pl:45
42173 #, no-wrap
42174 msgid ""
42175 " virt-make-fs [--options] directory output.img\n"
42176 "\n"
42177 msgstr ""
42178
42179 #. type: textblock
42180 #: ../tools/virt-make-fs.pl:49
42181 msgid ""
42182 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
42183 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
42184 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
42185 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
42186 "you want to attach these filesystems to existing virtual machines (eg. to "
42187 "import large amounts of read-only data to a VM)."
42188 msgstr ""
42189
42190 #. type: textblock
42191 #: ../tools/virt-make-fs.pl:57
42192 msgid "Basic usage is:"
42193 msgstr ""
42194
42195 #. type: verbatim
42196 #: ../tools/virt-make-fs.pl:59
42197 #, fuzzy, no-wrap
42198 #| msgid ""
42199 #| " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42200 #| "\n"
42201 msgid ""
42202 " virt-make-fs input output.img\n"
42203 "\n"
42204 msgstr ""
42205 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42206 "\n"
42207
42208 #. type: textblock
42209 #: ../tools/virt-make-fs.pl:61
42210 msgid ""
42211 "where C<input> is either a directory containing files that you want to add, "
42212 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
42213 "C<output.img> is a disk image.  The input type is detected automatically.  "
42214 "The output disk image defaults to a raw ext2 sparse image unless you specify "
42215 "extra flags (see L</OPTIONS> below)."
42216 msgstr ""
42217
42218 #. type: =head2
42219 #: ../tools/virt-make-fs.pl:67
42220 msgid "FILESYSTEM TYPE"
42221 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
42222
42223 #. type: textblock
42224 #: ../tools/virt-make-fs.pl:69
42225 msgid ""
42226 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
42227 "libguestfs supports can be used (but I<not> read-only formats like "
42228 "ISO9660).  Here are some of the more common choices:"
42229 msgstr ""
42230
42231 #. type: =item
42232 #: ../tools/virt-make-fs.pl:75
42233 msgid "I<ext3>"
42234 msgstr "I<ext3>"
42235
42236 #. type: textblock
42237 #: ../tools/virt-make-fs.pl:77
42238 msgid ""
42239 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
42240 "you are not going to use the filesystem in a way that requires the journal, "
42241 "then this is just wasted overhead."
42242 msgstr ""
42243
42244 #. type: =item
42245 #: ../tools/virt-make-fs.pl:81
42246 msgid "I<ntfs> or I<vfat>"
42247 msgstr "I<ntfs> або I<vfat>"
42248
42249 #. type: textblock
42250 #: ../tools/virt-make-fs.pl:83
42251 msgid "Useful if exporting data to a Windows guest."
42252 msgstr ""
42253
42254 #. type: textblock
42255 #: ../tools/virt-make-fs.pl:85
42256 msgid ""
42257 "I<Note for vfat>: The tar archive or local directory must only contain files "
42258 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
42259 "program running within libguestfs is unable to change the ownership of non-"
42260 "root files, since vfat itself does not support this."
42261 msgstr ""
42262
42263 #. type: =item
42264 #: ../tools/virt-make-fs.pl:90
42265 msgid "I<minix>"
42266 msgstr "I<minix>"
42267
42268 #. type: textblock
42269 #: ../tools/virt-make-fs.pl:92
42270 msgid ""
42271 "Lower overhead than C<ext2>, but certain limitations on filename length and "
42272 "total filesystem size."
42273 msgstr ""
42274
42275 #. type: =head3
42276 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
42277 #: ../tools/virt-make-fs.pl:149
42278 msgid "EXAMPLE"
42279 msgstr "ПРИКЛАД"
42280
42281 #. type: verbatim
42282 #: ../tools/virt-make-fs.pl:99
42283 #, no-wrap
42284 msgid ""
42285 " virt-make-fs --type=minix input minixfs.img\n"
42286 "\n"
42287 msgstr ""
42288
42289 #. type: =head2
42290 #: ../tools/virt-make-fs.pl:101
42291 msgid "TO PARTITION OR NOT TO PARTITION"
42292 msgstr ""
42293
42294 #. type: textblock
42295 #: ../tools/virt-make-fs.pl:103
42296 msgid "Optionally virt-make-fs can add a partition table to the output disk."
42297 msgstr ""
42298
42299 #. type: textblock
42300 #: ../tools/virt-make-fs.pl:105
42301 msgid ""
42302 "Adding a partition can make the disk image more compatible with certain "
42303 "virtualized operating systems which don't expect to see a filesystem "
42304 "directly located on a block device (Linux doesn't care and will happily "
42305 "handle both types)."
42306 msgstr ""
42307
42308 #. type: textblock
42309 #: ../tools/virt-make-fs.pl:110
42310 msgid ""
42311 "On the other hand, if you have a partition table then the output image is no "
42312 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
42313 "directly on a partitioned disk image.  (However libguestfs tools such as "
42314 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
42315 msgstr ""
42316
42317 #. type: textblock
42318 #: ../tools/virt-make-fs.pl:118
42319 msgid "Add an MBR partition:"
42320 msgstr ""
42321
42322 #. type: verbatim
42323 #: ../tools/virt-make-fs.pl:120
42324 #, no-wrap
42325 msgid ""
42326 " virt-make-fs --partition -- input disk.img\n"
42327 "\n"
42328 msgstr ""
42329
42330 #. type: textblock
42331 #: ../tools/virt-make-fs.pl:122
42332 msgid ""
42333 "If the output disk image could be terabyte-sized or larger, it's better to "
42334 "use an EFI/GPT-compatible partition table:"
42335 msgstr ""
42336
42337 #. type: verbatim
42338 #: ../tools/virt-make-fs.pl:125
42339 #, no-wrap
42340 msgid ""
42341 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
42342 "\n"
42343 msgstr ""
42344
42345 #. type: =head2
42346 #: ../tools/virt-make-fs.pl:127
42347 msgid "EXTRA SPACE"
42348 msgstr ""
42349
42350 #. type: textblock
42351 #: ../tools/virt-make-fs.pl:129
42352 msgid ""
42353 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
42354 "the files that it contains, but might have extra space.  Depending on how "
42355 "you are going to use the output, you might think this extra space is wasted "
42356 "and want to minimize it, or you might want to leave space so that more files "
42357 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
42358 "but you can use the I<--size> flag to leave space in the filesystem if you "
42359 "want it."
42360 msgstr ""
42361
42362 #. type: textblock
42363 #: ../tools/virt-make-fs.pl:137
42364 msgid ""
42365 "An alternative way to leave extra space but not make the output image any "
42366 "bigger is to use an alternative disk image format (instead of the default "
42367 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
42368 "image format (check your hypervisor supports this before using it).  This "
42369 "allows you to choose a large I<--size> but the extra space won't actually be "
42370 "allocated in the image until you try to store something in it."
42371 msgstr ""
42372
42373 #. type: textblock
42374 #: ../tools/virt-make-fs.pl:145
42375 msgid ""
42376 "Don't forget that you can also use local commands including L<resize2fs(8)> "
42377 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
42378 "to build another image from scratch."
42379 msgstr ""
42380
42381 #. type: verbatim
42382 #: ../tools/virt-make-fs.pl:151
42383 #, no-wrap
42384 msgid ""
42385 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42386 "\n"
42387 msgstr ""
42388 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
42389 "\n"
42390
42391 #. type: textblock
42392 #: ../tools/virt-make-fs.pl:179
42393 msgid "Enable debugging information."
42394 msgstr "Увімкнути виведення діагностичних даних."
42395
42396 #. type: =item
42397 #: ../tools/virt-make-fs.pl:185
42398 msgid "B<--size=E<lt>NE<gt>>"
42399 msgstr "B<--size=E<lt>NE<gt>>"
42400
42401 #. type: =item
42402 #: ../tools/virt-make-fs.pl:187
42403 msgid "B<--size=+E<lt>NE<gt>>"
42404 msgstr "B<--size=+E<lt>NE<gt>>"
42405
42406 #. type: =item
42407 #: ../tools/virt-make-fs.pl:189
42408 msgid "B<-s E<lt>NE<gt>>"
42409 msgstr "B<-s E<lt>NE<gt>>"
42410
42411 #. type: =item
42412 #: ../tools/virt-make-fs.pl:191
42413 msgid "B<-s +E<lt>NE<gt>>"
42414 msgstr "B<-s +E<lt>NE<gt>>"
42415
42416 #. type: textblock
42417 #: ../tools/virt-make-fs.pl:193
42418 msgid ""
42419 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
42420 msgstr ""
42421
42422 #. type: textblock
42423 #: ../tools/virt-make-fs.pl:196
42424 msgid ""
42425 "If this option is I<not> given, then the output image will be just large "
42426 "enough to contain all the files, with not much wasted space."
42427 msgstr ""
42428
42429 #. type: textblock
42430 #: ../tools/virt-make-fs.pl:199
42431 msgid ""
42432 "To choose a fixed size output disk, specify an absolute number followed by b/"
42433 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42434 "Petabytes or Exabytes.  This must be large enough to contain all the input "
42435 "files, else you will get an error."
42436 msgstr ""
42437
42438 #. type: textblock
42439 #: ../tools/virt-make-fs.pl:204
42440 msgid ""
42441 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
42442 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
42443 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
42444 "the input files, and (approximately) an extra 200 MB free space."
42445 msgstr ""
42446
42447 #. type: textblock
42448 #: ../tools/virt-make-fs.pl:210
42449 msgid ""
42450 "Note that virt-make-fs estimates free space, and therefore will not produce "
42451 "filesystems containing precisely the free space requested.  (It is much more "
42452 "expensive and time-consuming to produce a filesystem which has precisely the "
42453 "desired free space)."
42454 msgstr ""
42455
42456 #. type: =item
42457 #: ../tools/virt-make-fs.pl:219
42458 msgid "B<--format=E<lt>fmtE<gt>>"
42459 msgstr ""
42460
42461 #. type: =item
42462 #: ../tools/virt-make-fs.pl:221
42463 msgid "B<-F E<lt>fmtE<gt>>"
42464 msgstr ""
42465
42466 #. type: textblock
42467 #: ../tools/virt-make-fs.pl:223
42468 msgid "Choose the output disk image format."
42469 msgstr ""
42470
42471 #. type: textblock
42472 #: ../tools/virt-make-fs.pl:225
42473 msgid "The default is C<raw> (raw sparse disk image)."
42474 msgstr ""
42475
42476 #. type: textblock
42477 #: ../tools/virt-make-fs.pl:227
42478 msgid ""
42479 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
42480 "that would really make sense here is C<qcow2>."
42481 msgstr ""
42482
42483 #. type: =item
42484 #: ../tools/virt-make-fs.pl:234
42485 msgid "B<--type=E<lt>fsE<gt>>"
42486 msgstr ""
42487
42488 #. type: =item
42489 #: ../tools/virt-make-fs.pl:236
42490 msgid "B<-t E<lt>fsE<gt>>"
42491 msgstr ""
42492
42493 #. type: textblock
42494 #: ../tools/virt-make-fs.pl:238
42495 msgid "Choose the output filesystem type."
42496 msgstr ""
42497
42498 #. type: textblock
42499 #: ../tools/virt-make-fs.pl:240
42500 msgid "The default is C<ext2>."
42501 msgstr "Типовим значенням є C<ext2>."
42502
42503 #. type: textblock
42504 #: ../tools/virt-make-fs.pl:242
42505 msgid ""
42506 "Any filesystem which is supported read-write by libguestfs can be used here."
42507 msgstr ""
42508
42509 #. type: =item
42510 #: ../tools/virt-make-fs.pl:249
42511 msgid "B<--partition>"
42512 msgstr "B<--partition>"
42513
42514 #. type: =item
42515 #: ../tools/virt-make-fs.pl:251
42516 msgid "B<--partition=E<lt>parttypeE<gt>>"
42517 msgstr ""
42518
42519 #. type: textblock
42520 #: ../tools/virt-make-fs.pl:253
42521 msgid ""
42522 "If specified, this flag adds an MBR partition table to the output disk image."
42523 msgstr ""
42524
42525 #. type: textblock
42526 #: ../tools/virt-make-fs.pl:256
42527 msgid ""
42528 "You can change the partition table type, eg. I<--partition=gpt> for large "
42529 "disks."
42530 msgstr ""
42531
42532 #. type: textblock
42533 #: ../tools/virt-make-fs.pl:259
42534 msgid ""
42535 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
42536 "might consider the next parameter to be the partition type.  For example:"
42537 msgstr ""
42538
42539 #. type: verbatim
42540 #: ../tools/virt-make-fs.pl:263
42541 #, fuzzy, no-wrap
42542 #| msgid ""
42543 #| " virt-make-fs --partition input.tar ...\n"
42544 #| "\n"
42545 msgid ""
42546 " virt-make-fs --partition input.tar output.img\n"
42547 "\n"
42548 msgstr ""
42549 " virt-make-fs --partition input.tar ...\n"
42550 "\n"
42551
42552 #. type: textblock
42553 #: ../tools/virt-make-fs.pl:265
42554 msgid ""
42555 "would cause virt-make-fs to think you wanted to use a partition type of "
42556 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
42557 "dash) between options and the input and output arguments:"
42558 msgstr ""
42559
42560 #. type: verbatim
42561 #: ../tools/virt-make-fs.pl:269
42562 #, fuzzy, no-wrap
42563 #| msgid ""
42564 #| " virt-make-fs --partition -- input.tar ...\n"
42565 #| "\n"
42566 msgid ""
42567 " virt-make-fs --partition -- input.tar output.img\n"
42568 "\n"
42569 msgstr ""
42570 " virt-make-fs --partition -- input.tar ...\n"
42571 "\n"
42572
42573 #. type: textblock
42574 #: ../tools/virt-make-fs.pl:271
42575 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
42576 msgstr ""
42577
42578 #. type: textblock
42579 #: ../tools/virt-make-fs.pl:559
42580 msgid ""
42581 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42582 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42583 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42584 msgstr ""
42585 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
42586 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
42587 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
42588
42589 #. type: textblock
42590 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
42591 msgid ""
42592 "When reporting bugs, please enable debugging and capture the I<complete> "
42593 "output:"
42594 msgstr ""
42595
42596 #. type: verbatim
42597 #: ../tools/virt-make-fs.pl:576
42598 #, no-wrap
42599 msgid ""
42600 " export LIBGUESTFS_DEBUG=1\n"
42601 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42602 "\n"
42603 msgstr ""
42604 " export LIBGUESTFS_DEBUG=1\n"
42605 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
42606 "\n"
42607
42608 #. type: textblock
42609 #: ../tools/virt-make-fs.pl:579
42610 msgid ""
42611 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
42612 "redhat.com/>"
42613 msgstr ""
42614
42615 #. type: textblock
42616 #: ../tools/virt-tar.pl:33
42617 msgid "virt-tar - Extract or upload files to a virtual machine"
42618 msgstr ""
42619
42620 #. type: verbatim
42621 #: ../tools/virt-tar.pl:37
42622 #, no-wrap
42623 msgid ""
42624 " virt-tar [--options] -x domname directory tarball\n"
42625 "\n"
42626 msgstr ""
42627
42628 #. type: verbatim
42629 #: ../tools/virt-tar.pl:39
42630 #, no-wrap
42631 msgid ""
42632 " virt-tar [--options] -u domname tarball directory\n"
42633 "\n"
42634 msgstr ""
42635
42636 #. type: verbatim
42637 #: ../tools/virt-tar.pl:41
42638 #, no-wrap
42639 msgid ""
42640 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
42641 "\n"
42642 msgstr ""
42643
42644 #. type: verbatim
42645 #: ../tools/virt-tar.pl:43
42646 #, no-wrap
42647 msgid ""
42648 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
42649 "\n"
42650 msgstr ""
42651
42652 #. type: =head2
42653 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
42654 msgid "NOTE"
42655 msgstr "ПРИМІТКА"
42656
42657 #. type: textblock
42658 #: ../tools/virt-tar.pl:47
42659 msgid ""
42660 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
42661 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
42662 msgstr ""
42663
42664 #. type: textblock
42665 #: ../tools/virt-tar.pl:52
42666 msgid "Download C</home> from the VM into a local tarball:"
42667 msgstr ""
42668
42669 #. type: verbatim
42670 #: ../tools/virt-tar.pl:54
42671 #, no-wrap
42672 msgid ""
42673 " virt-tar -x domname /home home.tar\n"
42674 "\n"
42675 msgstr ""
42676
42677 #. type: verbatim
42678 #: ../tools/virt-tar.pl:56
42679 #, no-wrap
42680 msgid ""
42681 " virt-tar -zx domname /home home.tar.gz\n"
42682 "\n"
42683 msgstr ""
42684
42685 #. type: textblock
42686 #: ../tools/virt-tar.pl:58
42687 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
42688 msgstr ""
42689
42690 #. type: verbatim
42691 #: ../tools/virt-tar.pl:60
42692 #, no-wrap
42693 msgid ""
42694 " virt-tar -u domname uploadstuff.tar /tmp\n"
42695 "\n"
42696 msgstr ""
42697
42698 #. type: verbatim
42699 #: ../tools/virt-tar.pl:62
42700 #, no-wrap
42701 msgid ""
42702 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
42703 "\n"
42704 msgstr ""
42705
42706 #. type: textblock
42707 #: ../tools/virt-tar.pl:66
42708 msgid ""
42709 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
42710 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
42711 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
42712 msgstr ""
42713
42714 #. type: textblock
42715 #: ../tools/virt-tar.pl:71
42716 msgid ""
42717 "You can use I<-x> (extract) on live virtual machines, but you might get "
42718 "inconsistent results or errors if there is filesystem activity inside the "
42719 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
42720 "work, but the only way to guarantee consistent results is if the virtual "
42721 "machine is shut down."
42722 msgstr ""
42723
42724 #. type: textblock
42725 #: ../tools/virt-tar.pl:79
42726 msgid ""
42727 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
42728 "parts of a guest filesystem.  There are many possibilities: making backups, "
42729 "uploading data files, snooping on guest activity, fixing or customizing "
42730 "guests, etc."
42731 msgstr ""
42732
42733 #. type: textblock
42734 #: ../tools/virt-tar.pl:84
42735 msgid ""
42736 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
42737 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
42738 "should look at the L<guestfish(1)> tool."
42739 msgstr ""
42740
42741 #. type: textblock
42742 #: ../tools/virt-tar.pl:88
42743 msgid ""
42744 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
42745 "its contents (recursively) from the virtual machine into a local tarball.  "
42746 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
42747 "virtual machine.  You cannot use these two options together."
42748 msgstr ""
42749
42750 #. type: textblock
42751 #: ../tools/virt-tar.pl:94
42752 msgid ""
42753 "In addition, you may need to use the I<-z> (gZip) option to enable "
42754 "compression.  When uploading, you have to specify I<-z> if the upload file "
42755 "is compressed because virt-tar won't detect this on its own."
42756 msgstr ""
42757
42758 #. type: textblock
42759 #: ../tools/virt-tar.pl:98
42760 msgid ""
42761 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
42762 "example it cannot do PKZip files or bzip2 compression.  If you want that "
42763 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
42764 "the L<libguestfs(3)> API)."
42765 msgstr ""
42766
42767 #. type: =item
42768 #: ../tools/virt-tar.pl:160
42769 msgid "B<--extract>"
42770 msgstr "B<--extract>"
42771
42772 #. type: =item
42773 #: ../tools/virt-tar.pl:162
42774 msgid "B<--download>"
42775 msgstr "B<--download>"
42776
42777 #. type: =item
42778 #: ../tools/virt-tar.pl:164
42779 msgid "B<-u>"
42780 msgstr "B<-u>"
42781
42782 #. type: =item
42783 #: ../tools/virt-tar.pl:166
42784 msgid "B<--upload>"
42785 msgstr "B<--upload>"
42786
42787 #. type: textblock
42788 #: ../tools/virt-tar.pl:168
42789 msgid ""
42790 "Use I<-x> to extract (download) a directory from a virtual machine to a "
42791 "local tarball."
42792 msgstr ""
42793
42794 #. type: textblock
42795 #: ../tools/virt-tar.pl:171
42796 msgid ""
42797 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
42798 "Please read the L</WARNING> section above before using this option."
42799 msgstr ""
42800
42801 #. type: textblock
42802 #: ../tools/virt-tar.pl:175
42803 msgid "You must specify exactly one of these options."
42804 msgstr ""
42805
42806 #. type: =item
42807 #: ../tools/virt-tar.pl:181
42808 msgid "B<-z>"
42809 msgstr "B<-z>"
42810
42811 #. type: =item
42812 #: ../tools/virt-tar.pl:183
42813 msgid "B<--gzip>"
42814 msgstr "B<--gzip>"
42815
42816 #. type: textblock
42817 #: ../tools/virt-tar.pl:185
42818 msgid "Specify that the input or output tarball is gzip-compressed."
42819 msgstr ""
42820
42821 #. type: textblock
42822 #: ../tools/virt-tar.pl:298
42823 msgid ""
42824 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42825 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42826 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42827 "org/>."
42828 msgstr ""
42829 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42830 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42831 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42832 "org/>."
42833
42834 #. type: textblock
42835 #: ../tools/virt-win-reg.pl:37
42836 msgid ""
42837 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42838 msgstr ""
42839
42840 #. type: verbatim
42841 #: ../tools/virt-win-reg.pl:41
42842 #, no-wrap
42843 msgid ""
42844 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42845 "\n"
42846 msgstr ""
42847
42848 #. type: verbatim
42849 #: ../tools/virt-win-reg.pl:43
42850 #, no-wrap
42851 msgid ""
42852 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42853 "\n"
42854 msgstr ""
42855
42856 #. type: verbatim
42857 #: ../tools/virt-win-reg.pl:45
42858 #, no-wrap
42859 msgid ""
42860 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42861 "\n"
42862 msgstr ""
42863
42864 #. type: verbatim
42865 #: ../tools/virt-win-reg.pl:47
42866 #, no-wrap
42867 msgid ""
42868 " virt-win-reg --merge domname [input.reg ...]\n"
42869 "\n"
42870 msgstr ""
42871
42872 #. type: verbatim
42873 #: ../tools/virt-win-reg.pl:49
42874 #, no-wrap
42875 msgid ""
42876 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42877 "\n"
42878 msgstr ""
42879
42880 #. type: textblock
42881 #: ../tools/virt-win-reg.pl:53
42882 msgid ""
42883 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42884 "virtual machines.  If you do this, you I<will> get irreversible disk "
42885 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
42886 "but doesn't catch all cases."
42887 msgstr ""
42888
42889 #. type: textblock
42890 #: ../tools/virt-win-reg.pl:58
42891 msgid ""
42892 "Modifying the Windows Registry is an inherently risky operation.  The format "
42893 "is deliberately obscure and undocumented, and Registry changes can leave the "
42894 "system unbootable.  Therefore when using the I<--merge> option, make sure "
42895 "you have a reliable backup first."
42896 msgstr ""
42897
42898 #. type: textblock
42899 #: ../tools/virt-win-reg.pl:65
42900 msgid ""
42901 "This program can export and merge Windows Registry entries from a Windows "
42902 "guest."
42903 msgstr ""
42904
42905 #. type: textblock
42906 #: ../tools/virt-win-reg.pl:68
42907 msgid ""
42908 "The first parameter is the libvirt guest name or the raw disk image of a "
42909 "Windows guest."
42910 msgstr ""
42911
42912 #. type: textblock
42913 #: ../tools/virt-win-reg.pl:71
42914 msgid ""
42915 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42916 "exported (recursively).  For example:"
42917 msgstr ""
42918
42919 #. type: verbatim
42920 #: ../tools/virt-win-reg.pl:74
42921 #, no-wrap
42922 msgid ""
42923 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42924 "\n"
42925 msgstr ""
42926 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42927 "\n"
42928
42929 #. type: textblock
42930 #: ../tools/virt-win-reg.pl:76
42931 msgid ""
42932 "You can also display single values from within registry keys, for example:"
42933 msgstr ""
42934
42935 #. type: verbatim
42936 #: ../tools/virt-win-reg.pl:79
42937 #, no-wrap
42938 msgid ""
42939 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42940 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42941 " Windows 7 Enterprise\n"
42942 "\n"
42943 msgstr ""
42944 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42945 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42946 " Windows 7 Enterprise\n"
42947 "\n"
42948
42949 #. type: textblock
42950 #: ../tools/virt-win-reg.pl:83
42951 msgid ""
42952 "With I<--merge>, you can merge a textual regedit file into the Windows "
42953 "Registry:"
42954 msgstr ""
42955
42956 #. type: verbatim
42957 #: ../tools/virt-win-reg.pl:86
42958 #, no-wrap
42959 msgid ""
42960 " $ virt-win-reg --merge Windows7 changes.reg\n"
42961 "\n"
42962 msgstr ""
42963 " $ virt-win-reg --merge Windows7 changes.reg\n"
42964 "\n"
42965
42966 #. type: textblock
42967 #: ../tools/virt-win-reg.pl:90
42968 msgid ""
42969 "This program is only meant for simple access to the registry.  If you want "
42970 "to do complicated things with the registry, we suggest you download the "
42971 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42972 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42973 "L<hivexregedit(1)>."
42974 msgstr ""
42975
42976 #. type: =item
42977 #: ../tools/virt-win-reg.pl:159
42978 msgid "B<--merge>"
42979 msgstr "B<--merge>"
42980
42981 #. type: textblock
42982 #: ../tools/virt-win-reg.pl:161
42983 msgid ""
42984 "In merge mode, this merges a textual regedit file into the Windows Registry "
42985 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
42986 "displays or exports Registry entries instead."
42987 msgstr ""
42988
42989 #. type: textblock
42990 #: ../tools/virt-win-reg.pl:165
42991 msgid ""
42992 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42993 "result in disk corruption.  However exporting (without this flag)  is always "
42994 "safe."
42995 msgstr ""
42996
42997 #. type: =item
42998 #: ../tools/virt-win-reg.pl:173
42999 msgid "B<--encoding> UTF-16LE|ASCII"
43000 msgstr "B<--encoding> UTF-16LE|ASCII"
43001
43002 #. type: textblock
43003 #: ../tools/virt-win-reg.pl:175
43004 msgid ""
43005 "When merging (only), you may need to specify the encoding for strings to be "
43006 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
43007 "(3)/ENCODING STRINGS>."
43008 msgstr ""
43009
43010 #. type: textblock
43011 #: ../tools/virt-win-reg.pl:179
43012 msgid ""
43013 "The default is to use UTF-16LE, which should work with recent versions of "
43014 "Windows."
43015 msgstr ""
43016
43017 #. type: =item
43018 #: ../tools/virt-win-reg.pl:186
43019 msgid "B<--unsafe-printable-strings>"
43020 msgstr "B<--unsafe-printable-strings>"
43021
43022 #. type: textblock
43023 #: ../tools/virt-win-reg.pl:188
43024 msgid ""
43025 "When exporting (only), assume strings are UTF-16LE and print them as strings "
43026 "instead of hex sequences.  Remove the final zero codepoint from strings if "
43027 "present."
43028 msgstr ""
43029
43030 #. type: textblock
43031 #: ../tools/virt-win-reg.pl:192
43032 msgid ""
43033 "This is unsafe and does not preserve the fidelity of strings in the original "
43034 "Registry for various reasons:"
43035 msgstr ""
43036
43037 #. type: textblock
43038 #: ../tools/virt-win-reg.pl:199
43039 msgid ""
43040 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
43041 "other encodings will be corrupted by this transformation."
43042 msgstr ""
43043
43044 #. type: textblock
43045 #: ../tools/virt-win-reg.pl:204
43046 msgid ""
43047 "Assumes that everything which has type 1 or 2 is really a string and that "
43048 "everything else is not a string, but the type field in real Registries is "
43049 "not reliable."
43050 msgstr ""
43051
43052 #. type: textblock
43053 #: ../tools/virt-win-reg.pl:210
43054 msgid ""
43055 "Loses information about whether a zero codepoint followed the string in the "
43056 "Registry or not."
43057 msgstr ""
43058
43059 #. type: textblock
43060 #: ../tools/virt-win-reg.pl:215
43061 msgid ""
43062 "This all happens because the Registry itself contains no information about "
43063 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
43064 msgstr ""
43065
43066 #. type: textblock
43067 #: ../tools/virt-win-reg.pl:219
43068 msgid ""
43069 "You should only use this option for quick hacking and debugging of the "
43070 "Registry contents, and I<never> use it if the output is going to be passed "
43071 "into another program or stored in another Registry."
43072 msgstr ""
43073
43074 #. type: =head1
43075 #: ../tools/virt-win-reg.pl:556
43076 msgid "SUPPORTED SYSTEMS"
43077 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
43078
43079 #. type: textblock
43080 #: ../tools/virt-win-reg.pl:558
43081 msgid ""
43082 "The program currently supports Windows NT-derived guests starting with "
43083 "Windows XP through to at least Windows 7."
43084 msgstr ""
43085
43086 #. type: textblock
43087 #: ../tools/virt-win-reg.pl:561
43088 msgid "The following Registry keys are supported:"
43089 msgstr ""
43090
43091 #. type: =item
43092 #: ../tools/virt-win-reg.pl:565
43093 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43094 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43095
43096 #. type: =item
43097 #: ../tools/virt-win-reg.pl:567
43098 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43099 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
43100
43101 #. type: =item
43102 #: ../tools/virt-win-reg.pl:569
43103 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43104 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
43105
43106 #. type: =item
43107 #: ../tools/virt-win-reg.pl:571
43108 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43109 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
43110
43111 #. type: =item
43112 #: ../tools/virt-win-reg.pl:573
43113 msgid "C<HKEY_USERS\\.DEFAULT>"
43114 msgstr "C<HKEY_USERS\\.DEFAULT>"
43115
43116 #. type: =item
43117 #: ../tools/virt-win-reg.pl:575
43118 msgid "C<HKEY_USERS\\I<SID>>"
43119 msgstr "C<HKEY_USERS\\I<SID>>"
43120
43121 #. type: textblock
43122 #: ../tools/virt-win-reg.pl:577
43123 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
43124 msgstr ""
43125
43126 #. type: =item
43127 #: ../tools/virt-win-reg.pl:579
43128 msgid "C<HKEY_USERS\\I<username>>"
43129 msgstr "C<HKEY_USERS\\I<користувач>>"
43130
43131 #. type: textblock
43132 #: ../tools/virt-win-reg.pl:581
43133 msgid ""
43134 "where I<username> is a local user name (this is a libguestfs extension)."
43135 msgstr ""
43136
43137 #. type: textblock
43138 #: ../tools/virt-win-reg.pl:585
43139 msgid ""
43140 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
43141 "C<HKEY_USERS>."
43142 msgstr ""
43143
43144 #. type: textblock
43145 #: ../tools/virt-win-reg.pl:588
43146 msgid ""
43147 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
43148 "supported (there is no \"current user\")."
43149 msgstr ""
43150
43151 #. type: =head1
43152 #: ../tools/virt-win-reg.pl:591
43153 msgid "ENCODING"
43154 msgstr "КОДУВАННЯ"
43155
43156 #. type: textblock
43157 #: ../tools/virt-win-reg.pl:593
43158 msgid ""
43159 "C<virt-win-reg> expects that regedit files have already been reencoded in "
43160 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
43161 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
43162 "Windows-style line endings, you may need to reencode the whole file before "
43163 "or after processing."
43164 msgstr ""
43165
43166 #. type: textblock
43167 #: ../tools/virt-win-reg.pl:599
43168 msgid ""
43169 "To reencode a file from Windows format to Linux (before processing it with "
43170 "the I<--merge> option), you would do something like this:"
43171 msgstr ""
43172
43173 #. type: verbatim
43174 #: ../tools/virt-win-reg.pl:602
43175 #, no-wrap
43176 msgid ""
43177 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43178 "\n"
43179 msgstr ""
43180 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
43181 "\n"
43182
43183 #. type: textblock
43184 #: ../tools/virt-win-reg.pl:604
43185 msgid ""
43186 "To go in the opposite direction, after exporting and before sending the file "
43187 "to a Windows user, do something like this:"
43188 msgstr ""
43189
43190 #. type: verbatim
43191 #: ../tools/virt-win-reg.pl:607
43192 #, no-wrap
43193 msgid ""
43194 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43195 "\n"
43196 msgstr ""
43197 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
43198 "\n"
43199
43200 #. type: textblock
43201 #: ../tools/virt-win-reg.pl:609
43202 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
43203 msgstr ""
43204
43205 #. type: textblock
43206 #: ../tools/virt-win-reg.pl:611
43207 msgid ""
43208 "If you are unsure about the current encoding, use the L<file(1)> command.  "
43209 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
43210 "style (CRLF) line endings, like this:"
43211 msgstr ""
43212
43213 #. type: verbatim
43214 #: ../tools/virt-win-reg.pl:615
43215 #, no-wrap
43216 msgid ""
43217 " $ file software.reg\n"
43218 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
43219 " with CRLF line terminators\n"
43220 "\n"
43221 msgstr ""
43222
43223 #. type: textblock
43224 #: ../tools/virt-win-reg.pl:619
43225 msgid "This file would need conversion before you could I<--merge> it."
43226 msgstr ""
43227
43228 #. type: =head1
43229 #: ../tools/virt-win-reg.pl:621
43230 msgid "CurrentControlSet etc."
43231 msgstr ""
43232
43233 #. type: textblock
43234 #: ../tools/virt-win-reg.pl:623
43235 msgid ""
43236 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
43237 "Registry at the level of the hive file, and therefore you cannot modify "
43238 "these."
43239 msgstr ""
43240
43241 #. type: textblock
43242 #: ../tools/virt-win-reg.pl:627
43243 msgid ""
43244 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
43245 "circumstances it might refer to another control set.  The way to find out is "
43246 "to look at the C<HKLM\\SYSTEM\\Select> key:"
43247 msgstr ""
43248
43249 #. type: verbatim
43250 #: ../tools/virt-win-reg.pl:631
43251 #, no-wrap
43252 msgid ""
43253 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43254 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43255 " \"Current\"=dword:00000001\n"
43256 " \"Default\"=dword:00000001\n"
43257 " \"Failed\"=dword:00000000\n"
43258 " \"LastKnownGood\"=dword:00000002\n"
43259 "\n"
43260 msgstr ""
43261 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
43262 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
43263 " \"Current\"=dword:00000001\n"
43264 " \"Default\"=dword:00000001\n"
43265 " \"Failed\"=dword:00000000\n"
43266 " \"LastKnownGood\"=dword:00000002\n"
43267 "\n"
43268
43269 #. type: textblock
43270 #: ../tools/virt-win-reg.pl:638
43271 msgid "\"Current\" is the one which Windows will choose when it boots."
43272 msgstr ""
43273
43274 #. type: textblock
43275 #: ../tools/virt-win-reg.pl:640
43276 msgid ""
43277 "Similarly, other C<Current...> keys in the path may need to be replaced."
43278 msgstr ""
43279
43280 #. type: =head1
43281 #: ../tools/virt-win-reg.pl:643
43282 msgid "DELETING REGISTRY KEYS AND VALUES"
43283 msgstr ""
43284
43285 #. type: textblock
43286 #: ../tools/virt-win-reg.pl:645
43287 msgid "To delete a whole registry key, use the syntax:"
43288 msgstr ""
43289
43290 #. type: verbatim
43291 #: ../tools/virt-win-reg.pl:647
43292 #, fuzzy, no-wrap
43293 #| msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43294 msgid ""
43295 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
43296 "\n"
43297 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43298
43299 #. type: textblock
43300 #: ../tools/virt-win-reg.pl:649
43301 msgid "To delete a single value within a key, use the syntax:"
43302 msgstr ""
43303
43304 #. type: verbatim
43305 #: ../tools/virt-win-reg.pl:651
43306 #, fuzzy, no-wrap
43307 #| msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
43308 msgid ""
43309 " [HKEY_LOCAL_MACHINE\\Foo]\n"
43310 " \"Value\"=-\n"
43311 "\n"
43312 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
43313
43314 #. type: =head1
43315 #: ../tools/virt-win-reg.pl:654
43316 msgid "WINDOWS TIPS"
43317 msgstr ""
43318
43319 #. type: textblock
43320 #: ../tools/virt-win-reg.pl:656
43321 msgid ""
43322 "Note that some of these tips modify the guest disk image.  The guest I<must> "
43323 "be shut off, else you will get disk corruption."
43324 msgstr ""
43325
43326 #. type: =head2
43327 #: ../tools/virt-win-reg.pl:659
43328 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
43329 msgstr ""
43330
43331 #. type: textblock
43332 #: ../tools/virt-win-reg.pl:661
43333 msgid ""
43334 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
43335 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
43336 "is uploaded into C<C:\\>:"
43337 msgstr ""
43338
43339 #. type: verbatim
43340 #: ../tools/virt-win-reg.pl:665
43341 #, no-wrap
43342 msgid ""
43343 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43344 "\n"
43345 msgstr ""
43346 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
43347 "\n"
43348
43349 #. type: textblock
43350 #: ../tools/virt-win-reg.pl:667
43351 msgid "Prepare a regedit file containing the registry change:"
43352 msgstr ""
43353
43354 #. type: verbatim
43355 #: ../tools/virt-win-reg.pl:669
43356 #, no-wrap
43357 msgid ""
43358 " cat > test.reg <<'EOF'\n"
43359 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43360 " \"Test\"=\"c:\\\\test.bat\"\n"
43361 " EOF\n"
43362 "\n"
43363 msgstr ""
43364 " cat > test.reg <<'EOF'\n"
43365 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
43366 " \"Test\"=\"c:\\\\test.bat\"\n"
43367 " EOF\n"
43368 "\n"
43369
43370 #. type: textblock
43371 #: ../tools/virt-win-reg.pl:674
43372 msgid ""
43373 "In this example we use the key C<RunOnce> which means that the script will "
43374 "run precisely once when the first user logs in.  If you want it to run every "
43375 "time a user logs in, replace C<RunOnce> with C<Run>."
43376 msgstr ""
43377
43378 #. type: textblock
43379 #: ../tools/virt-win-reg.pl:678
43380 msgid "Now update the registry:"
43381 msgstr "Оновіть регістр:"
43382
43383 #. type: verbatim
43384 #: ../tools/virt-win-reg.pl:680
43385 #, no-wrap
43386 msgid ""
43387 " virt-win-reg --merge WindowsGuest test.reg\n"
43388 "\n"
43389 msgstr ""
43390
43391 #. type: =head2
43392 #: ../tools/virt-win-reg.pl:682
43393 msgid "INSTALLING A SERVICE"
43394 msgstr ""
43395
43396 #. type: textblock
43397 #: ../tools/virt-win-reg.pl:684
43398 msgid ""
43399 "This section assumes you are familiar with Windows services, and you either "
43400 "have a program which handles the Windows Service Control Protocol directly "
43401 "or you want to run any program using a service wrapper like SrvAny or the "
43402 "free RHSrvAny."
43403 msgstr ""
43404
43405 #. type: textblock
43406 #: ../tools/virt-win-reg.pl:689
43407 msgid ""
43408 "First upload the program and optionally the service wrapper.  In this case "
43409 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
43410 msgstr ""
43411
43412 #. type: verbatim
43413 #: ../tools/virt-win-reg.pl:693
43414 #, no-wrap
43415 msgid ""
43416 " guestfish -i -d WindowsGuest <<EOF\n"
43417 "   upload rhsrvany.exe /rhsrvany.exe\n"
43418 "   upload test.exe /test.exe\n"
43419 " EOF\n"
43420 "\n"
43421 msgstr ""
43422 " guestfish -i -d WindowsGuest <<EOF\n"
43423 "   upload rhsrvany.exe /rhsrvany.exe\n"
43424 "   upload test.exe /test.exe\n"
43425 " EOF\n"
43426 "\n"
43427
43428 #. type: textblock
43429 #: ../tools/virt-win-reg.pl:698
43430 msgid ""
43431 "Prepare a regedit file containing the registry changes.  In this example, "
43432 "the first registry change is needed for the service itself or the service "
43433 "wrapper (if used).  The second registry change is only needed because I am "
43434 "using the RHSrvAny service wrapper."
43435 msgstr ""
43436
43437 #. type: verbatim
43438 #: ../tools/virt-win-reg.pl:703
43439 #, no-wrap
43440 msgid ""
43441 " cat > service.reg <<'EOF'\n"
43442 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43443 " \"Type\"=dword:00000010\n"
43444 " \"Start\"=dword:00000002\n"
43445 " \"ErrorControl\"=dword:00000001\n"
43446 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43447 " \"DisplayName\"=\"RHSrvAny\"\n"
43448 " \"ObjectName\"=\"NetworkService\"\n"
43449 " \n"
43450 msgstr ""
43451 " cat > service.reg <<'EOF'\n"
43452 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
43453 " \"Type\"=dword:00000010\n"
43454 " \"Start\"=dword:00000002\n"
43455 " \"ErrorControl\"=dword:00000001\n"
43456 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
43457 " \"DisplayName\"=\"RHSrvAny\"\n"
43458 " \"ObjectName\"=\"NetworkService\"\n"
43459 " \n"
43460
43461 #. type: verbatim
43462 #: ../tools/virt-win-reg.pl:712
43463 #, no-wrap
43464 msgid ""
43465 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43466 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43467 " \"PWD\"=\"c:\\\\Temp\"\n"
43468 " EOF\n"
43469 "\n"
43470 msgstr ""
43471 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
43472 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
43473 " \"PWD\"=\"c:\\\\Temp\"\n"
43474 " EOF\n"
43475 "\n"
43476
43477 #. type: textblock
43478 #: ../tools/virt-win-reg.pl:723
43479 msgid ""
43480 "For use of C<ControlSet001> see the section above in this manual page.  You "
43481 "may need to adjust this according to the control set that is in use by the "
43482 "guest."
43483 msgstr ""
43484
43485 #. type: textblock
43486 #: ../tools/virt-win-reg.pl:729
43487 msgid ""
43488 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
43489 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
43490 "privileged account."
43491 msgstr ""
43492
43493 #. type: textblock
43494 #: ../tools/virt-win-reg.pl:735
43495 msgid ""
43496 "For the meaning of the magic numbers, see this Microsoft KB article: "
43497 "L<http://support.microsoft.com/kb/103000>."
43498 msgstr ""
43499
43500 #. type: textblock
43501 #: ../tools/virt-win-reg.pl:740
43502 msgid "Update the registry:"
43503 msgstr "Оновіть регістр:"
43504
43505 #. type: verbatim
43506 #: ../tools/virt-win-reg.pl:742
43507 #, no-wrap
43508 msgid ""
43509 " virt-win-reg --merge WindowsGuest service.reg\n"
43510 "\n"
43511 msgstr ""
43512
43513 #. type: textblock
43514 #: ../tools/virt-win-reg.pl:746
43515 msgid ""
43516 "Be careful when passing parameters containing C<\\> (backslash) in the "
43517 "shell.  Usually you will have to use 'single quotes' or double backslashes "
43518 "(but not both) to protect them from the shell."
43519 msgstr ""
43520
43521 #. type: textblock
43522 #: ../tools/virt-win-reg.pl:750
43523 msgid "Paths and value names are case-insensitive."
43524 msgstr ""
43525
43526 #. type: textblock
43527 #: ../tools/virt-win-reg.pl:759
43528 msgid ""
43529 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43530 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43531 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43532 msgstr ""
43533 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
43534 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
43535 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43536
43537 #. type: verbatim
43538 #: ../tools/virt-win-reg.pl:777
43539 #, no-wrap
43540 msgid ""
43541 " export LIBGUESTFS_DEBUG=1\n"
43542 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
43543 "\n"
43544 msgstr ""
43545
43546 #. type: textblock
43547 #: ../tools/virt-win-reg.pl:780
43548 msgid ""
43549 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
43550 "redhat.com/>"
43551 msgstr ""
43552
43553 #~ msgid ""
43554 #~ " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
43555 #~ "\n"
43556 #~ msgstr ""
43557 #~ " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
43558 #~ "\n"