Pushed and pulled latest translations from Transifex.
[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-19 17:23+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:241 ../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:245 ../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:2862
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:414
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:416
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:484
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:486
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:488
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 "Currently there is no virt tool for fixing alignment problems in guests.  "
805 "This is a difficult problem to fix because simply moving partitions around "
806 "breaks the bootloader, necessitating either manual reinstallation of the "
807 "bootloader using a rescue disk, or complex and error-prone hacks."
808 msgstr ""
809
810 #. type: textblock
811 #: ../align/virt-alignment-scan.pod:284
812 msgid ""
813 "L<virt-resize(1)> does not change the alignment of the first partition, but "
814 "it does align the second and subsequent partitions to a multiple of 64 or "
815 "128 sectors (depending on the version of virt-resize, 128 in virt-resize "
816 "E<ge> 1.13.19).  For operating systems that have a separate boot partition, "
817 "virt-resize could be used to align the main OS partition, so that the "
818 "majority of OS accesses except at boot will be aligned."
819 msgstr ""
820
821 #. type: textblock
822 #: ../align/virt-alignment-scan.pod:292
823 msgid ""
824 "The easiest way to correct partition alignment problems is to reinstall your "
825 "guest operating systems.  If you install operating systems from templates, "
826 "ensure these have correct partition alignment too."
827 msgstr ""
828
829 #. type: textblock
830 #: ../align/virt-alignment-scan.pod:297
831 msgid ""
832 "For older versions of Windows, the following NetApp document contains useful "
833 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
834 msgstr ""
835
836 #. type: textblock
837 #: ../align/virt-alignment-scan.pod:300
838 msgid ""
839 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
840 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
841 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
842 "contains an example."
843 msgstr ""
844
845 #. type: =head1
846 #: ../align/virt-alignment-scan.pod:305 ../cat/virt-cat.pod:191
847 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483
848 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
849 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352
850 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:601
851 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
852 #: ../tools/virt-make-fs.pl:532 ../tools/virt-tar.pl:289
853 #: ../tools/virt-win-reg.pl:733
854 msgid "SHELL QUOTING"
855 msgstr ""
856
857 #. type: textblock
858 #: ../align/virt-alignment-scan.pod:307 ../cat/virt-cat.pod:193
859 #: ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485
860 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
861 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354
862 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:603
863 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
864 #: ../tools/virt-make-fs.pl:534 ../tools/virt-tar.pl:291
865 #: ../tools/virt-win-reg.pl:741
866 msgid ""
867 "Libvirt guest names can contain arbitrary characters, some of which have "
868 "meaning to the shell such as C<#> and space.  You may need to quote or "
869 "escape these characters on the command line.  See the shell manual page L<sh"
870 "(1)> for details."
871 msgstr ""
872
873 #. type: =head1
874 #: ../align/virt-alignment-scan.pod:312 ../cat/virt-cat.pod:198
875 #: ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490
876 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
877 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
878 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375
879 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:227
880 #: ../test-tool/libguestfs-test-tool.pod:90
881 msgid "EXIT STATUS"
882 msgstr ""
883
884 #. type: textblock
885 #: ../align/virt-alignment-scan.pod:314
886 msgid "This program returns:"
887 msgstr ""
888
889 #. type: =item
890 #: ../align/virt-alignment-scan.pod:318 ../align/virt-alignment-scan.pod:324
891 #: ../align/virt-alignment-scan.pod:330 ../align/virt-alignment-scan.pod:337
892 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
893 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
894 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
895 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
896 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
897 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
898 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
899 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
900 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
901 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
902 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
903 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
904 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
905 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
906 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
907 #: ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:403
908 #: ../fish/guestfish-actions.pod:410 ../fish/guestfish-actions.pod:417
909 #: ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1148
910 #: ../fish/guestfish-actions.pod:1152 ../fish/guestfish-actions.pod:1156
911 #: ../fish/guestfish-actions.pod:1164 ../fish/guestfish-actions.pod:1168
912 #: ../fish/guestfish-actions.pod:1172 ../fish/guestfish-actions.pod:1182
913 #: ../fish/guestfish-actions.pod:1186 ../fish/guestfish-actions.pod:1190
914 #: ../fish/guestfish-actions.pod:1280 ../fish/guestfish-actions.pod:1284
915 #: ../fish/guestfish-actions.pod:1289 ../fish/guestfish-actions.pod:1294
916 #: ../fish/guestfish-actions.pod:1336 ../fish/guestfish-actions.pod:1340
917 #: ../fish/guestfish-actions.pod:1345 ../fish/guestfish-actions.pod:1601
918 #: ../fish/guestfish-actions.pod:1608 ../fish/guestfish-actions.pod:1615
919 #: ../fish/guestfish-actions.pod:2018 ../fish/guestfish-actions.pod:2024
920 #: ../fish/guestfish-actions.pod:2032 ../fish/guestfish-actions.pod:2039
921 #: ../fish/guestfish-actions.pod:2046 ../fish/guestfish.pod:445
922 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
923 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
924 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
925 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
926 #: ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32
927 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
928 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
929 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
930 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
931 #: ../src/guestfs-actions.pod:594 ../src/guestfs-actions.pod:602
932 #: ../src/guestfs-actions.pod:609 ../src/guestfs-actions.pod:616
933 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1788
934 #: ../src/guestfs-actions.pod:1792 ../src/guestfs-actions.pod:1796
935 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1808
936 #: ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1822
937 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1830
938 #: ../src/guestfs-actions.pod:1968 ../src/guestfs-actions.pod:1972
939 #: ../src/guestfs-actions.pod:1977 ../src/guestfs-actions.pod:1982
940 #: ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:2047
941 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2467
942 #: ../src/guestfs-actions.pod:2474 ../src/guestfs-actions.pod:2481
943 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3032
944 #: ../src/guestfs-actions.pod:3040 ../src/guestfs-actions.pod:3047
945 #: ../src/guestfs-actions.pod:3054 ../src/guestfs.pod:388
946 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
947 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
948 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
949 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
950 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
951 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
952 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
953 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
954 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
955 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
956 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2630 ../src/guestfs.pod:2636
957 #: ../src/guestfs.pod:2641 ../src/guestfs.pod:2647 ../src/guestfs.pod:3047
958 #: ../src/guestfs.pod:3052 ../src/guestfs.pod:3056 ../src/guestfs.pod:3060
959 #: ../src/guestfs.pod:3064 ../src/guestfs.pod:3078 ../src/guestfs.pod:3083
960 #: ../src/guestfs.pod:3314 ../src/guestfs.pod:3318 ../src/guestfs.pod:3322
961 #: ../src/guestfs.pod:3326 ../tools/virt-win-reg.pl:197
962 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
963 #: ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716
964 #: ../tools/virt-win-reg.pl:722
965 msgid "*"
966 msgstr "*"
967
968 #. type: textblock
969 #: ../align/virt-alignment-scan.pod:320
970 msgid "0"
971 msgstr ""
972
973 #. type: textblock
974 #: ../align/virt-alignment-scan.pod:322
975 msgid ""
976 "successful exit, all partitions are aligned E<ge> 64K for best performance"
977 msgstr ""
978
979 #. type: textblock
980 #: ../align/virt-alignment-scan.pod:326
981 msgid "1"
982 msgstr ""
983
984 #. type: textblock
985 #: ../align/virt-alignment-scan.pod:328
986 msgid "an error scanning the disk image or guest"
987 msgstr ""
988
989 #. type: textblock
990 #: ../align/virt-alignment-scan.pod:332
991 msgid "2"
992 msgstr ""
993
994 #. type: textblock
995 #: ../align/virt-alignment-scan.pod:334
996 msgid ""
997 "successful exit, some partitions have alignment E<lt> 64K which can result "
998 "in poor performance on high end network storage"
999 msgstr ""
1000
1001 #. type: textblock
1002 #: ../align/virt-alignment-scan.pod:339
1003 msgid "3"
1004 msgstr ""
1005
1006 #. type: textblock
1007 #: ../align/virt-alignment-scan.pod:341
1008 msgid ""
1009 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1010 "poor performance on most hypervisors"
1011 msgstr ""
1012
1013 #. type: =head1
1014 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:203
1015 #: ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495
1016 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1017 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1018 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1019 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1020 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1021 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1022 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1023 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1024 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1025 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
1026 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3255
1027 #: ../test-tool/libguestfs-test-tool.pod:100
1028 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1029 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
1030 #: ../tools/virt-win-reg.pl:746
1031 msgid "SEE ALSO"
1032 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1033
1034 #. type: textblock
1035 #: ../align/virt-alignment-scan.pod:348
1036 msgid ""
1037 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1038 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1039 msgstr ""
1040
1041 #. type: =head1
1042 #: ../align/virt-alignment-scan.pod:355 ../cat/virt-cat.pod:212
1043 #: ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507
1044 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1045 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1046 #: ../resize/virt-resize.pod:635 ../sparsify/virt-sparsify.pod:264
1047 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1048 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
1049 #: ../tools/virt-win-reg.pl:772
1050 msgid "AUTHOR"
1051 msgstr "АВТОР"
1052
1053 #. type: textblock
1054 #: ../align/virt-alignment-scan.pod:357 ../cat/virt-cat.pod:214
1055 #: ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509
1056 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1057 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1058 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:637
1059 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1060 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
1061 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
1062 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1063 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1064
1065 #. type: =head1
1066 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:216
1067 #: ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511
1068 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1069 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1070 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1071 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1072 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1073 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1074 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1075 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1076 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1077 #: ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52
1078 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3337
1079 #: ../test-tool/libguestfs-test-tool.pod:110
1080 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1081 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
1082 #: ../tools/virt-win-reg.pl:776
1083 msgid "COPYRIGHT"
1084 msgstr "АВТОРСЬКІ ПРАВА"
1085
1086 #. type: textblock
1087 #: ../align/virt-alignment-scan.pod:361 ../clone/virt-sysprep.pod:507
1088 #: ../sparsify/virt-sparsify.pod:270
1089 msgid "Copyright (C) 2011 Red Hat Inc."
1090 msgstr ""
1091
1092 #. type: textblock
1093 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:220
1094 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515
1095 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1096 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1097 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1098 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1099 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407
1100 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:643
1101 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1102 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1103 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
1104 #: ../tools/virt-win-reg.pl:780
1105 msgid ""
1106 "This program is free software; you can redistribute it and/or modify it "
1107 "under the terms of the GNU General Public License as published by the Free "
1108 "Software Foundation; either version 2 of the License, or (at your option) "
1109 "any later version."
1110 msgstr ""
1111
1112 #. type: textblock
1113 #: ../align/virt-alignment-scan.pod:368 ../cat/virt-cat.pod:225
1114 #: ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520
1115 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1116 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1117 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1118 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1119 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412
1120 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:648
1121 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1122 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1123 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
1124 #: ../tools/virt-win-reg.pl:785
1125 msgid ""
1126 "This program is distributed in the hope that it will be useful, but WITHOUT "
1127 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1128 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1129 "more details."
1130 msgstr ""
1131 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1132 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1133 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1134 "дізнатися з GNU General Public License."
1135
1136 #. type: textblock
1137 #: ../align/virt-alignment-scan.pod:373 ../cat/virt-cat.pod:230
1138 #: ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525
1139 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1140 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1141 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1142 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1143 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417
1144 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:653
1145 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1146 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1147 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
1148 #: ../tools/virt-win-reg.pl:790
1149 msgid ""
1150 "You should have received a copy of the GNU General Public License along with "
1151 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
1152 "Ave, Cambridge, MA 02139, USA."
1153 msgstr ""
1154 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1155 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1156 "Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
1157
1158 #. type: textblock
1159 #: ../cat/virt-cat.pod:5
1160 msgid "virt-cat - Display files in a virtual machine"
1161 msgstr "virt-cat — показ файлів у віртуальній машині"
1162
1163 #. type: verbatim
1164 #: ../cat/virt-cat.pod:9
1165 #, no-wrap
1166 msgid ""
1167 " virt-cat [--options] -d domname file [file ...]\n"
1168 "\n"
1169 msgstr ""
1170 " virt-cat [--параметри] -d назва_домену файл [файл...]\n"
1171 "\n"
1172
1173 #. type: verbatim
1174 #: ../cat/virt-cat.pod:11
1175 #, no-wrap
1176 msgid ""
1177 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1178 "\n"
1179 msgstr ""
1180 " virt-cat [--параметри] -a диск.img [-a диск.img ...] файл [файл...]\n"
1181 "\n"
1182
1183 #. type: textblock
1184 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1185 #: ../inspector/virt-inspector.pod:13
1186 msgid "Old-style:"
1187 msgstr "Застарілий стиль:"
1188
1189 #. type: verbatim
1190 #: ../cat/virt-cat.pod:15
1191 #, no-wrap
1192 msgid ""
1193 " virt-cat domname file\n"
1194 "\n"
1195 msgstr ""
1196 " virt-cat назва_домену файл\n"
1197 "\n"
1198
1199 #. type: verbatim
1200 #: ../cat/virt-cat.pod:17
1201 #, no-wrap
1202 msgid ""
1203 " virt-cat disk.img file\n"
1204 "\n"
1205 msgstr ""
1206 " virt-cat диск.img файл\n"
1207 "\n"
1208
1209 #. type: textblock
1210 #: ../cat/virt-cat.pod:21
1211 msgid ""
1212 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1213 "C<file> exists in the named virtual machine (or disk image)."
1214 msgstr ""
1215 "C<virt-cat> — інструмент командного рядка для показу вмісту C<файла>, який "
1216 "зберігається у вказаній віртуальній машині (або образі диска)."
1217
1218 #. type: textblock
1219 #: ../cat/virt-cat.pod:24
1220 msgid ""
1221 "Multiple filenames can be given, in which case they are concatenated "
1222 "together.  Each filename must be a full path, starting at the root directory "
1223 "(starting with '/')."
1224 msgstr ""
1225 "Ви можете вказати декілька назв файлів. Вміст таких файлів буде об’єднано. "
1226 "Назви файлів слід вказувати повністю (разом зі шляхом), починаючи з "
1227 "кореневого каталогу (тобто назва має починатися з «/»)."
1228
1229 #. type: textblock
1230 #: ../cat/virt-cat.pod:28
1231 msgid ""
1232 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1233 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1234 "(see L</USING GUESTFISH> below)."
1235 msgstr ""
1236 "C<virt-cat> можна скористатися для пришвидшення перегляду файла. Для "
1237 "редагування даних слід користуватися C<virt-edit>. Для виконання складніших "
1238 "дій можна скористатися програмою L<guestfish(1)> (див. L</USING GUESTFISH> "
1239 "нижче)."
1240
1241 #. type: =head1
1242 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1243 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1244 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1245 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1246 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1247 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1248 #: ../tools/virt-tar.pl:50
1249 msgid "EXAMPLES"
1250 msgstr "ПРИКЛАДИ"
1251
1252 #. type: textblock
1253 #: ../cat/virt-cat.pod:34
1254 msgid ""
1255 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1256 msgstr ""
1257 "Показ файла C</etc/fstab> з віртуальної машини libvirt з назвою C<mydomain>:"
1258
1259 #. type: verbatim
1260 #: ../cat/virt-cat.pod:37
1261 #, no-wrap
1262 msgid ""
1263 " virt-cat -d mydomain /etc/fstab\n"
1264 "\n"
1265 msgstr ""
1266 " virt-cat -d mydomain /etc/fstab\n"
1267 "\n"
1268
1269 #. type: textblock
1270 #: ../cat/virt-cat.pod:39
1271 msgid "List syslog messages from a VM disk image file:"
1272 msgstr ""
1273 "Показ списку повідомлень syslog з файла образу диска віртуальної машини:"
1274
1275 #. type: verbatim
1276 #: ../cat/virt-cat.pod:41
1277 #, no-wrap
1278 msgid ""
1279 " virt-cat -a disk.img /var/log/messages | tail\n"
1280 "\n"
1281 msgstr ""
1282 " virt-cat -a disk.img /var/log/messages | tail\n"
1283 "\n"
1284
1285 #. type: textblock
1286 #: ../cat/virt-cat.pod:43
1287 msgid "Find out what DHCP IP address a VM acquired:"
1288 msgstr "Визначення IP-адреси DHCP, використаної віртуальною машиною:"
1289
1290 #. type: verbatim
1291 #: ../cat/virt-cat.pod:45
1292 #, no-wrap
1293 msgid ""
1294 " virt-cat -d mydomain /var/log/messages | \\\n"
1295 "   grep 'dhclient: bound to' | tail\n"
1296 "\n"
1297 msgstr ""
1298 " virt-cat -d mydomain /var/log/messages | \\\n"
1299 "   grep 'dhclient: bound to' | tail\n"
1300 "\n"
1301
1302 #. type: textblock
1303 #: ../cat/virt-cat.pod:48
1304 msgid "Find out what packages were recently installed:"
1305 msgstr "Пошук нещодавно встановлених пакунків:"
1306
1307 #. type: verbatim
1308 #: ../cat/virt-cat.pod:50
1309 #, no-wrap
1310 msgid ""
1311 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1312 "\n"
1313 msgstr ""
1314 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1315 "\n"
1316
1317 #. type: textblock
1318 #: ../cat/virt-cat.pod:52
1319 msgid "Find out who is logged on inside a virtual machine:"
1320 msgstr "Визначення користувачів, які працюють у віртуальній машині:"
1321
1322 #. type: verbatim
1323 #: ../cat/virt-cat.pod:54
1324 #, no-wrap
1325 msgid ""
1326 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1327 " who /tmp/utmp\n"
1328 "\n"
1329 msgstr ""
1330 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1331 " who /tmp/utmp\n"
1332 "\n"
1333
1334 #. type: textblock
1335 #: ../cat/virt-cat.pod:57
1336 msgid "or who was logged on:"
1337 msgstr "або тих, які у ній працювали:"
1338
1339 #. type: verbatim
1340 #: ../cat/virt-cat.pod:59
1341 #, no-wrap
1342 msgid ""
1343 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1344 " last -f /tmp/wtmp\n"
1345 "\n"
1346 msgstr ""
1347 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1348 " last -f /tmp/wtmp\n"
1349 "\n"
1350
1351 #. type: textblock
1352 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1353 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1354 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1355 msgid ""
1356 "Add I<file> which should be a disk image from a virtual machine.  If the "
1357 "virtual machine has multiple block devices, you must supply all of them with "
1358 "separate I<-a> options."
1359 msgstr ""
1360
1361 #. type: =item
1362 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1363 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1364 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1365 msgid "B<--echo-keys>"
1366 msgstr "B<--echo-keys>"
1367
1368 #. type: textblock
1369 #: ../cat/virt-cat.pod:100
1370 msgid ""
1371 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1372 "so you cannot see what you are typing.  If you are not worried about Tempest "
1373 "attacks and there is no one else in the room you can specify this flag to "
1374 "see what you are typing."
1375 msgstr ""
1376
1377 #. type: verbatim
1378 #: ../cat/virt-cat.pod:116
1379 #, no-wrap
1380 msgid ""
1381 " virt-cat --format=raw -a disk.img file\n"
1382 "\n"
1383 msgstr ""
1384 " virt-cat --format=raw -a disk.img file\n"
1385 "\n"
1386
1387 #. type: verbatim
1388 #: ../cat/virt-cat.pod:120
1389 #, no-wrap
1390 msgid ""
1391 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1392 "\n"
1393 msgstr ""
1394 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1395 "\n"
1396
1397 #. type: =item
1398 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1399 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1400 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1401 msgid "B<--keys-from-stdin>"
1402 msgstr "B<--keys-from-stdin>"
1403
1404 #. type: textblock
1405 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1406 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1407 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1408 msgid ""
1409 "Read key or passphrase parameters from stdin.  The default is to try to read "
1410 "passphrases from the user by opening C</dev/tty>."
1411 msgstr ""
1412
1413 #. type: =head1
1414 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1415 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1416 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1417 msgstr ""
1418
1419 #. type: textblock
1420 #: ../cat/virt-cat.pod:154
1421 msgid "Previous versions of virt-cat allowed you to write either:"
1422 msgstr ""
1423
1424 #. type: verbatim
1425 #: ../cat/virt-cat.pod:156
1426 #, no-wrap
1427 msgid ""
1428 " virt-cat disk.img [disk.img ...] file\n"
1429 "\n"
1430 msgstr ""
1431
1432 #. type: textblock
1433 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1434 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1435 msgid "or"
1436 msgstr "або"
1437
1438 #. type: verbatim
1439 #: ../cat/virt-cat.pod:160
1440 #, no-wrap
1441 msgid ""
1442 " virt-cat guestname file\n"
1443 "\n"
1444 msgstr ""
1445
1446 #. type: textblock
1447 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1448 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1449 msgid ""
1450 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1451 "the confusing case where a disk image might have the same name as a guest."
1452 msgstr ""
1453
1454 #. type: textblock
1455 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1456 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1457 msgid "For compatibility the old style is still supported."
1458 msgstr ""
1459
1460 #. type: =head1
1461 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1462 msgid "USING GUESTFISH"
1463 msgstr "ВИКОРИСТАННЯ GUESTFISH"
1464
1465 #. type: textblock
1466 #: ../cat/virt-cat.pod:170
1467 msgid ""
1468 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1469 "C<virt-cat> doesn't work."
1470 msgstr ""
1471
1472 #. type: textblock
1473 #: ../cat/virt-cat.pod:173
1474 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1475 msgstr ""
1476
1477 #. type: verbatim
1478 #: ../cat/virt-cat.pod:175
1479 #, no-wrap
1480 msgid ""
1481 " guestfish --ro -i -d domname download file -\n"
1482 "\n"
1483 msgstr ""
1484
1485 #. type: textblock
1486 #: ../cat/virt-cat.pod:177
1487 msgid ""
1488 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1489 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1490 msgstr ""
1491
1492 #. type: textblock
1493 #: ../cat/virt-cat.pod:181
1494 msgid ""
1495 "The command above uses libguestfs's guest inspection feature and so does not "
1496 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1497 "disk images that don't contain guests.  To display a file from a disk image "
1498 "directly, use:"
1499 msgstr ""
1500
1501 #. type: verbatim
1502 #: ../cat/virt-cat.pod:186
1503 #, no-wrap
1504 msgid ""
1505 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1506 "\n"
1507 msgstr ""
1508
1509 #. type: textblock
1510 #: ../cat/virt-cat.pod:188
1511 msgid ""
1512 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1513 "the disk image, and C<file> is the full path to the file."
1514 msgstr ""
1515
1516 #. type: textblock
1517 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
1518 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1519 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
1520 #: ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
1521 msgid ""
1522 "This program returns 0 if successful, or non-zero if there was an error."
1523 msgstr ""
1524
1525 #. type: textblock
1526 #: ../cat/virt-cat.pod:205
1527 msgid ""
1528 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1529 "tar-out(1)>, L<http://libguestfs.org/>."
1530 msgstr ""
1531 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1532 "tar-out(1)>, L<http://libguestfs.org/>."
1533
1534 #. type: textblock
1535 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
1536 #: ../resize/virt-resize.pod:641
1537 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1538 msgstr "©Red Hat Inc., 2010–2011"
1539
1540 #. type: textblock
1541 #: ../cat/virt-filesystems.pod:5
1542 msgid ""
1543 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1544 "virtual machine or disk image"
1545 msgstr ""
1546
1547 #. type: verbatim
1548 #: ../cat/virt-filesystems.pod:9
1549 #, no-wrap
1550 msgid ""
1551 " virt-filesystems [--options] -d domname\n"
1552 "\n"
1553 msgstr ""
1554 " virt-filesystems [--параметри] -d назва_домену\n"
1555 "\n"
1556
1557 #. type: verbatim
1558 #: ../cat/virt-filesystems.pod:11
1559 #, no-wrap
1560 msgid ""
1561 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1562 "\n"
1563 msgstr ""
1564
1565 #. type: textblock
1566 #: ../cat/virt-filesystems.pod:15
1567 msgid ""
1568 "This tool allows you to discover filesystems, partitions, logical volumes, "
1569 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1570 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1571 msgstr ""
1572
1573 #. type: textblock
1574 #: ../cat/virt-filesystems.pod:20
1575 msgid ""
1576 "One use for this tool is from shell scripts to iterate over all filesystems "
1577 "from a disk image:"
1578 msgstr ""
1579
1580 #. type: verbatim
1581 #: ../cat/virt-filesystems.pod:23
1582 #, no-wrap
1583 msgid ""
1584 " for fs in $(virt-filesystems -a disk.img); do\n"
1585 "   # ...\n"
1586 " done\n"
1587 "\n"
1588 msgstr ""
1589 " for fs in $(virt-filesystems -a disk.img); do\n"
1590 "   # ...\n"
1591 " done\n"
1592 "\n"
1593
1594 #. type: textblock
1595 #: ../cat/virt-filesystems.pod:27
1596 msgid ""
1597 "Another use is to list partitions before using another tool to modify those "
1598 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1599 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1600 msgstr ""
1601
1602 #. type: textblock
1603 #: ../cat/virt-filesystems.pod:32
1604 msgid ""
1605 "Various command line options control what this program displays.  You need "
1606 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1607 "guest respectively.  If you just specify that then the program shows "
1608 "filesystems found, one per line, like this:"
1609 msgstr ""
1610
1611 #. type: verbatim
1612 #: ../cat/virt-filesystems.pod:37
1613 #, no-wrap
1614 msgid ""
1615 " $ virt-filesystems -a disk.img\n"
1616 " /dev/sda1\n"
1617 " /dev/vg_guest/lv_root\n"
1618 "\n"
1619 msgstr ""
1620 " $ virt-filesystems -a disk.img\n"
1621 " /dev/sda1\n"
1622 " /dev/vg_guest/lv_root\n"
1623 "\n"
1624
1625 #. type: textblock
1626 #: ../cat/virt-filesystems.pod:41
1627 msgid ""
1628 "If you add I<-l> or I<--long> then the output includes extra information:"
1629 msgstr ""
1630
1631 #. type: verbatim
1632 #: ../cat/virt-filesystems.pod:44
1633 #, no-wrap
1634 msgid ""
1635 " $ virt-filesystems -a disk.img -l\n"
1636 " Name                   Type         VFS   Label  Size\n"
1637 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1638 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1639 "\n"
1640 msgstr ""
1641
1642 #. type: textblock
1643 #: ../cat/virt-filesystems.pod:49
1644 msgid ""
1645 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1646 "shown as well:"
1647 msgstr ""
1648
1649 #. type: verbatim
1650 #: ../cat/virt-filesystems.pod:52
1651 #, no-wrap
1652 msgid ""
1653 " $ virt-filesystems -a disk.img --extra\n"
1654 " /dev/sda1\n"
1655 " /dev/vg_guest/lv_root\n"
1656 " /dev/vg_guest/lv_swap\n"
1657 " /dev/vg_guest/lv_data\n"
1658 "\n"
1659 msgstr ""
1660 " $ virt-filesystems -a disk.img --extra\n"
1661 " /dev/sda1\n"
1662 " /dev/vg_guest/lv_root\n"
1663 " /dev/vg_guest/lv_swap\n"
1664 " /dev/vg_guest/lv_data\n"
1665 "\n"
1666
1667 #. type: textblock
1668 #: ../cat/virt-filesystems.pod:58
1669 msgid ""
1670 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1671 msgstr ""
1672
1673 #. type: verbatim
1674 #: ../cat/virt-filesystems.pod:60
1675 #, no-wrap
1676 msgid ""
1677 " $ virt-filesystems -a disk.img --partitions\n"
1678 " /dev/sda1\n"
1679 " /dev/sda2\n"
1680 "\n"
1681 msgstr ""
1682 " $ virt-filesystems -a disk.img --partitions\n"
1683 " /dev/sda1\n"
1684 " /dev/sda2\n"
1685 "\n"
1686
1687 #. type: textblock
1688 #: ../cat/virt-filesystems.pod:64
1689 msgid ""
1690 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1691 "volumes>, I<--block-devices> to list those items."
1692 msgstr ""
1693
1694 #. type: textblock
1695 #: ../cat/virt-filesystems.pod:67
1696 msgid ""
1697 "You can use these options in combination as well (if you want a combination "
1698 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1699 "items fall into several categories (eg. C</dev/sda1> might be both a "
1700 "partition and a filesystem).  These items are listed several times.  To get "
1701 "a list which includes absolutely everything that virt-filesystems knows "
1702 "about, use the I<--all> option."
1703 msgstr ""
1704
1705 #. type: textblock
1706 #: ../cat/virt-filesystems.pod:74
1707 msgid ""
1708 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1709 "uuid> option to display device and filesystem UUIDs in the long output."
1710 msgstr ""
1711
1712 #. type: textblock
1713 #: ../cat/virt-filesystems.pod:78
1714 msgid ""
1715 "I<--all --long --uuid> is a useful combination to display all possible "
1716 "information about everything."
1717 msgstr ""
1718
1719 #. type: verbatim
1720 #: ../cat/virt-filesystems.pod:81
1721 #, no-wrap
1722 msgid ""
1723 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1724 " Name      Type       VFS  Label           Size Parent   UUID\n"
1725 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1726 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1727 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1728 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1729 " /dev/sda  device     -    -               20G  -        -\n"
1730 "\n"
1731 msgstr ""
1732
1733 #. type: textblock
1734 #: ../cat/virt-filesystems.pod:89
1735 msgid ""
1736 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1737 msgstr ""
1738
1739 #. type: =item
1740 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1741 msgid "B<--all>"
1742 msgstr "B<--all>"
1743
1744 #. type: textblock
1745 #: ../cat/virt-filesystems.pod:112
1746 msgid ""
1747 "Display everything.  This is currently the same as specifying these options: "
1748 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1749 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1750 "added to this list in future)."
1751 msgstr ""
1752
1753 #. type: textblock
1754 #: ../cat/virt-filesystems.pod:117
1755 msgid "See also I<--long>."
1756 msgstr "Див. також I<--long>."
1757
1758 #. type: =item
1759 #: ../cat/virt-filesystems.pod:119
1760 msgid "B<--blkdevs>"
1761 msgstr "B<--blkdevs>"
1762
1763 #. type: =item
1764 #: ../cat/virt-filesystems.pod:121
1765 msgid "B<--block-devices>"
1766 msgstr "B<--block-devices>"
1767
1768 #. type: textblock
1769 #: ../cat/virt-filesystems.pod:123
1770 msgid "Display block devices."
1771 msgstr "Показати список блокових пристроїв."
1772
1773 #. type: =item
1774 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1775 msgid "B<--csv>"
1776 msgstr "B<--csv>"
1777
1778 #. type: textblock
1779 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1780 msgid ""
1781 "Write out the results in CSV format (comma-separated values).  This format "
1782 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1783 "ABOUT CSV FORMAT> below."
1784 msgstr ""
1785
1786 #. type: textblock
1787 #: ../cat/virt-filesystems.pod:150
1788 msgid ""
1789 "When prompting for keys and passphrases, virt-filesystems normally turns "
1790 "echoing off so you cannot see what you are typing.  If you are not worried "
1791 "about Tempest attacks and there is no one else in the room you can specify "
1792 "this flag to see what you are typing."
1793 msgstr ""
1794
1795 #. type: =item
1796 #: ../cat/virt-filesystems.pod:155
1797 msgid "B<--extra>"
1798 msgstr "B<--extra>"
1799
1800 #. type: textblock
1801 #: ../cat/virt-filesystems.pod:157
1802 msgid ""
1803 "This causes filesystems that are not ordinary, mountable filesystems to be "
1804 "displayed.  This category includes swapspace, and filesystems that are empty "
1805 "or contain unknown data."
1806 msgstr ""
1807
1808 #. type: textblock
1809 #: ../cat/virt-filesystems.pod:161
1810 msgid "This option implies I<--filesystems>."
1811 msgstr ""
1812
1813 #. type: =item
1814 #: ../cat/virt-filesystems.pod:163
1815 msgid "B<--filesystems>"
1816 msgstr "B<--filesystems>"
1817
1818 #. type: textblock
1819 #: ../cat/virt-filesystems.pod:165
1820 msgid ""
1821 "Display mountable filesystems.  If no display option was selected then this "
1822 "option is implied."
1823 msgstr ""
1824
1825 #. type: textblock
1826 #: ../cat/virt-filesystems.pod:168
1827 msgid "With I<--extra>, non-mountable filesystems are shown too."
1828 msgstr ""
1829
1830 #. type: verbatim
1831 #: ../cat/virt-filesystems.pod:181
1832 #, no-wrap
1833 msgid ""
1834 " virt-filesystems --format=raw -a disk.img\n"
1835 "\n"
1836 msgstr ""
1837 " virt-filesystems --format=raw -a диск.img\n"
1838 "\n"
1839
1840 #. type: verbatim
1841 #: ../cat/virt-filesystems.pod:185
1842 #, no-wrap
1843 msgid ""
1844 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1845 "\n"
1846 msgstr ""
1847
1848 #. type: =item
1849 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1850 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1851 #: ../tools/virt-list-partitions.pl:109
1852 msgid "B<-h>"
1853 msgstr "B<-h>"
1854
1855 #. type: =item
1856 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1857 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1858 msgid "B<--human-readable>"
1859 msgstr "B<--human-readable>"
1860
1861 #. type: textblock
1862 #: ../cat/virt-filesystems.pod:198
1863 msgid "In I<--long> mode, display sizes in human-readable format."
1864 msgstr ""
1865
1866 #. type: =item
1867 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1868 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1869 msgid "B<-l>"
1870 msgstr "B<-l>"
1871
1872 #. type: =item
1873 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1874 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1875 msgid "B<--long>"
1876 msgstr "B<--long>"
1877
1878 #. type: textblock
1879 #: ../cat/virt-filesystems.pod:209
1880 msgid "Display extra columns of data (\"long format\")."
1881 msgstr ""
1882
1883 #. type: textblock
1884 #: ../cat/virt-filesystems.pod:211
1885 msgid "A title row is added unless you also specify I<--no-title>."
1886 msgstr ""
1887
1888 #. type: textblock
1889 #: ../cat/virt-filesystems.pod:213
1890 msgid ""
1891 "The extra columns displayed depend on what output you select, and the "
1892 "ordering of columns may change in future versions.  Use the title row, I<--"
1893 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1894 "programs."
1895 msgstr ""
1896
1897 #. type: textblock
1898 #: ../cat/virt-filesystems.pod:218
1899 msgid ""
1900 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1901 "default is to show raw numbers of I<bytes>."
1902 msgstr ""
1903
1904 #. type: textblock
1905 #: ../cat/virt-filesystems.pod:221
1906 msgid "Use I<--uuid> to display UUIDs too."
1907 msgstr ""
1908
1909 #. type: =item
1910 #: ../cat/virt-filesystems.pod:223
1911 msgid "B<--lvs>"
1912 msgstr "B<--lvs>"
1913
1914 #. type: =item
1915 #: ../cat/virt-filesystems.pod:225
1916 msgid "B<--logvols>"
1917 msgstr "B<--logvols>"
1918
1919 #. type: =item
1920 #: ../cat/virt-filesystems.pod:227
1921 msgid "B<--logical-volumes>"
1922 msgstr "B<--logical-volumes>"
1923
1924 #. type: textblock
1925 #: ../cat/virt-filesystems.pod:229
1926 msgid ""
1927 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1928 "of whether the LVs contain filesystems."
1929 msgstr ""
1930
1931 #. type: =item
1932 #: ../cat/virt-filesystems.pod:232
1933 msgid "B<--no-title>"
1934 msgstr "B<--no-title>"
1935
1936 #. type: textblock
1937 #: ../cat/virt-filesystems.pod:234
1938 msgid "In I<--long> mode, don't add a title row."
1939 msgstr ""
1940
1941 #. type: textblock
1942 #: ../cat/virt-filesystems.pod:236
1943 msgid ""
1944 "Note that the order of the columns is not fixed, and may change in future "
1945 "versions of virt-filesystems, so using this option may give you unexpected "
1946 "surprises."
1947 msgstr ""
1948
1949 #. type: =item
1950 #: ../cat/virt-filesystems.pod:240
1951 msgid "B<--parts>"
1952 msgstr "B<--parts>"
1953
1954 #. type: =item
1955 #: ../cat/virt-filesystems.pod:242
1956 msgid "B<--partitions>"
1957 msgstr "B<--partitions>"
1958
1959 #. type: textblock
1960 #: ../cat/virt-filesystems.pod:244
1961 msgid ""
1962 "Display partitions.  In this mode, these are displayed irrespective of "
1963 "whether the partitions contain filesystems."
1964 msgstr ""
1965
1966 #. type: =item
1967 #: ../cat/virt-filesystems.pod:247
1968 msgid "B<--pvs>"
1969 msgstr "B<--pvs>"
1970
1971 #. type: =item
1972 #: ../cat/virt-filesystems.pod:249
1973 msgid "B<--physvols>"
1974 msgstr "B<--physvols>"
1975
1976 #. type: =item
1977 #: ../cat/virt-filesystems.pod:251
1978 msgid "B<--physical-volumes>"
1979 msgstr "B<--physical-volumes>"
1980
1981 #. type: textblock
1982 #: ../cat/virt-filesystems.pod:253
1983 msgid "Display LVM physical volumes."
1984 msgstr ""
1985
1986 #. type: =item
1987 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1988 msgid "B<--uuid>"
1989 msgstr "B<--uuid>"
1990
1991 #. type: =item
1992 #: ../cat/virt-filesystems.pod:257
1993 msgid "B<--uuids>"
1994 msgstr "B<--uuids>"
1995
1996 #. type: textblock
1997 #: ../cat/virt-filesystems.pod:259
1998 msgid "In I<--long> mode, display UUIDs as well."
1999 msgstr ""
2000
2001 #. type: =item
2002 #: ../cat/virt-filesystems.pod:273
2003 msgid "B<--vgs>"
2004 msgstr "B<--vgs>"
2005
2006 #. type: =item
2007 #: ../cat/virt-filesystems.pod:275
2008 msgid "B<--volgroups>"
2009 msgstr "B<--volgroups>"
2010
2011 #. type: =item
2012 #: ../cat/virt-filesystems.pod:277
2013 msgid "B<--volume-groups>"
2014 msgstr "B<--volume-groups>"
2015
2016 #. type: textblock
2017 #: ../cat/virt-filesystems.pod:279
2018 msgid "Display LVM volume groups."
2019 msgstr ""
2020
2021 #. type: =head1
2022 #: ../cat/virt-filesystems.pod:287
2023 msgid "COLUMNS"
2024 msgstr "СТОВПЧИКИ"
2025
2026 #. type: textblock
2027 #: ../cat/virt-filesystems.pod:289
2028 msgid ""
2029 "Note that columns in the output are subject to reordering and change in "
2030 "future versions of this tool."
2031 msgstr ""
2032
2033 #. type: =item
2034 #: ../cat/virt-filesystems.pod:294
2035 msgid "B<Name>"
2036 msgstr ""
2037
2038 #. type: textblock
2039 #: ../cat/virt-filesystems.pod:296
2040 msgid "The filesystem, partition, block device or LVM name."
2041 msgstr ""
2042
2043 #. type: textblock
2044 #: ../cat/virt-filesystems.pod:298
2045 msgid ""
2046 "For device and partition names these are displayed as canonical libguestfs "
2047 "names, so that for example C</dev/sda2> is the second partition on the first "
2048 "device."
2049 msgstr ""
2050
2051 #. type: textblock
2052 #: ../cat/virt-filesystems.pod:302
2053 msgid ""
2054 "If the I<--long> option is B<not> specified, then only the name column is "
2055 "shown in the output."
2056 msgstr ""
2057
2058 #. type: =item
2059 #: ../cat/virt-filesystems.pod:305
2060 msgid "B<Type>"
2061 msgstr ""
2062
2063 #. type: textblock
2064 #: ../cat/virt-filesystems.pod:307
2065 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2066 msgstr ""
2067
2068 #. type: =item
2069 #: ../cat/virt-filesystems.pod:309
2070 msgid "B<VFS>"
2071 msgstr "B<VFS>"
2072
2073 #. type: textblock
2074 #: ../cat/virt-filesystems.pod:311
2075 msgid ""
2076 "If there is a filesystem, then this column displays the filesystem type if "
2077 "one could be detected, eg. C<ext4>."
2078 msgstr ""
2079
2080 #. type: =item
2081 #: ../cat/virt-filesystems.pod:314
2082 msgid "B<Label>"
2083 msgstr ""
2084
2085 #. type: textblock
2086 #: ../cat/virt-filesystems.pod:316
2087 msgid ""
2088 "If the object has a label (used for identifying and mounting filesystems) "
2089 "then this column contains the label."
2090 msgstr ""
2091
2092 #. type: =item
2093 #: ../cat/virt-filesystems.pod:319
2094 msgid "B<Size>"
2095 msgstr ""
2096
2097 #. type: textblock
2098 #: ../cat/virt-filesystems.pod:321
2099 msgid ""
2100 "The size of the object in bytes.  If the I<--human> option is used then the "
2101 "size is displayed in a human-readable form."
2102 msgstr ""
2103
2104 #. type: =item
2105 #: ../cat/virt-filesystems.pod:324
2106 msgid "B<Parent>"
2107 msgstr ""
2108
2109 #. type: textblock
2110 #: ../cat/virt-filesystems.pod:326
2111 msgid ""
2112 "The parent column records the parent relationship between objects.  For "
2113 "example, if the object is a partition, then this column contains the name of "
2114 "the containing device.  If the object is a logical volume, then this column "
2115 "is the name of the volume group."
2116 msgstr ""
2117
2118 #. type: =item
2119 #: ../cat/virt-filesystems.pod:331
2120 msgid "B<UUID>"
2121 msgstr "B<UUID>"
2122
2123 #. type: textblock
2124 #: ../cat/virt-filesystems.pod:333
2125 msgid ""
2126 "If the object has a UUID (used for identifying and mounting filesystems and "
2127 "block devices) then this column contains the UUID as a string."
2128 msgstr ""
2129
2130 #. type: textblock
2131 #: ../cat/virt-filesystems.pod:337
2132 msgid "The UUID is only displayed if the I<--uuid> option is given."
2133 msgstr ""
2134
2135 #. type: =head1
2136 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
2137 #: ../df/virt-df.pod:191
2138 msgid "NOTE ABOUT CSV FORMAT"
2139 msgstr ""
2140
2141 #. type: textblock
2142 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
2143 #: ../df/virt-df.pod:193
2144 msgid ""
2145 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2146 "should be easy to parse, but it is definitely not easy to parse."
2147 msgstr ""
2148
2149 #. type: textblock
2150 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
2151 #: ../df/virt-df.pod:196
2152 msgid ""
2153 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2154 "reliably.  This example has two columns:"
2155 msgstr ""
2156
2157 #. type: verbatim
2158 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
2159 #: ../df/virt-df.pod:199
2160 #, no-wrap
2161 msgid ""
2162 " \"foo,bar\",baz\n"
2163 "\n"
2164 msgstr ""
2165
2166 #. type: textblock
2167 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
2168 #: ../df/virt-df.pod:201
2169 msgid ""
2170 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2171 "reliably.  This example has one row:"
2172 msgstr ""
2173
2174 #. type: verbatim
2175 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
2176 #: ../df/virt-df.pod:204
2177 #, no-wrap
2178 msgid ""
2179 " \"foo\n"
2180 " bar\",baz\n"
2181 "\n"
2182 msgstr ""
2183
2184 #. type: textblock
2185 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
2186 #: ../df/virt-df.pod:207
2187 msgid ""
2188 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2189 "packaged in major Linux distributions)."
2190 msgstr ""
2191
2192 #. type: textblock
2193 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
2194 #: ../df/virt-df.pod:210
2195 msgid ""
2196 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2197 "or Python's built-in csv library)."
2198 msgstr ""
2199
2200 #. type: textblock
2201 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
2202 #: ../df/virt-df.pod:213
2203 msgid "Most spreadsheets and databases can import CSV directly."
2204 msgstr ""
2205
2206 #. type: textblock
2207 #: ../cat/virt-filesystems.pod:379
2208 msgid ""
2209 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2210 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2211 "libguestfs.org/>."
2212 msgstr ""
2213 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2214 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2215 "libguestfs.org/>."
2216
2217 #. type: textblock
2218 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
2219 #: ../tools/virt-win-reg.pl:778
2220 msgid "Copyright (C) 2010 Red Hat Inc."
2221 msgstr "©Red Hat Inc., 2010"
2222
2223 #. type: textblock
2224 #: ../cat/virt-ls.pod:5
2225 msgid "virt-ls - List files in a virtual machine"
2226 msgstr ""
2227
2228 #. type: verbatim
2229 #: ../cat/virt-ls.pod:9
2230 #, no-wrap
2231 msgid ""
2232 " virt-ls [--options] -d domname directory [directory ...]\n"
2233 "\n"
2234 msgstr ""
2235
2236 #. type: verbatim
2237 #: ../cat/virt-ls.pod:11
2238 #, no-wrap
2239 msgid ""
2240 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2241 "\n"
2242 msgstr ""
2243
2244 #. type: textblock
2245 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2246 msgid "Old style:"
2247 msgstr "Старий стиль:"
2248
2249 #. type: verbatim
2250 #: ../cat/virt-ls.pod:15
2251 #, no-wrap
2252 msgid ""
2253 " virt-ls [--options] domname directory\n"
2254 "\n"
2255 msgstr ""
2256
2257 #. type: verbatim
2258 #: ../cat/virt-ls.pod:17
2259 #, no-wrap
2260 msgid ""
2261 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2262 "\n"
2263 msgstr ""
2264
2265 #. type: textblock
2266 #: ../cat/virt-ls.pod:21
2267 msgid ""
2268 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2269 "more from a virtual machine or disk image."
2270 msgstr ""
2271
2272 #. type: textblock
2273 #: ../cat/virt-ls.pod:24
2274 msgid ""
2275 "Multiple directory names can be given, in which case the output from each is "
2276 "concatenated."
2277 msgstr ""
2278
2279 #. type: textblock
2280 #: ../cat/virt-ls.pod:27
2281 msgid ""
2282 "To list directories from a libvirt guest use the I<-d> option to specify the "
2283 "name of the guest.  For a disk image, use the I<-a> option."
2284 msgstr ""
2285
2286 #. type: textblock
2287 #: ../cat/virt-ls.pod:31
2288 msgid ""
2289 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2290 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2291 "(3)> API."
2292 msgstr ""
2293
2294 #. type: textblock
2295 #: ../cat/virt-ls.pod:37
2296 msgid "Get a list of all files and directories in a virtual machine:"
2297 msgstr ""
2298
2299 #. type: verbatim
2300 #: ../cat/virt-ls.pod:39
2301 #, no-wrap
2302 msgid ""
2303 " virt-ls -R -d guest /\n"
2304 "\n"
2305 msgstr ""
2306
2307 #. type: textblock
2308 #: ../cat/virt-ls.pod:41
2309 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2310 msgstr ""
2311
2312 #. type: verbatim
2313 #: ../cat/virt-ls.pod:43
2314 #, no-wrap
2315 msgid ""
2316 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2317 "\n"
2318 msgstr ""
2319
2320 #. type: textblock
2321 #: ../cat/virt-ls.pod:45
2322 msgid "List all public-writable directories in a Linux virtual machine:"
2323 msgstr ""
2324
2325 #. type: verbatim
2326 #: ../cat/virt-ls.pod:47
2327 #, no-wrap
2328 msgid ""
2329 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2330 "\n"
2331 msgstr ""
2332
2333 #. type: textblock
2334 #: ../cat/virt-ls.pod:49
2335 msgid "List all Unix domain sockets in a Linux virtual machine:"
2336 msgstr ""
2337
2338 #. type: verbatim
2339 #: ../cat/virt-ls.pod:51
2340 #, no-wrap
2341 msgid ""
2342 " virt-ls -lR -d guest / | grep '^s'\n"
2343 "\n"
2344 msgstr ""
2345
2346 #. type: textblock
2347 #: ../cat/virt-ls.pod:53
2348 msgid "List all regular files with filenames ending in '.png':"
2349 msgstr ""
2350
2351 #. type: verbatim
2352 #: ../cat/virt-ls.pod:55
2353 #, no-wrap
2354 msgid ""
2355 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2356 "\n"
2357 msgstr ""
2358
2359 #. type: textblock
2360 #: ../cat/virt-ls.pod:57
2361 msgid "To display files larger than 10MB in home directories:"
2362 msgstr ""
2363
2364 #. type: verbatim
2365 #: ../cat/virt-ls.pod:59
2366 #, no-wrap
2367 msgid ""
2368 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2369 "\n"
2370 msgstr ""
2371
2372 #. type: textblock
2373 #: ../cat/virt-ls.pod:61
2374 msgid "Find everything modified in the last 7 days:"
2375 msgstr ""
2376
2377 #. type: verbatim
2378 #: ../cat/virt-ls.pod:63
2379 #, no-wrap
2380 msgid ""
2381 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2382 "\n"
2383 msgstr ""
2384
2385 #. type: textblock
2386 #: ../cat/virt-ls.pod:65
2387 msgid "Find regular files modified in the last 24 hours:"
2388 msgstr ""
2389
2390 #. type: verbatim
2391 #: ../cat/virt-ls.pod:67
2392 #, no-wrap
2393 msgid ""
2394 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2395 "\n"
2396 msgstr ""
2397
2398 #. type: =head2
2399 #: ../cat/virt-ls.pod:69
2400 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2401 msgstr ""
2402
2403 #. type: textblock
2404 #: ../cat/virt-ls.pod:71
2405 msgid ""
2406 "Find the differences between files in a guest and an earlier snapshot of the "
2407 "same guest."
2408 msgstr ""
2409
2410 #. type: verbatim
2411 #: ../cat/virt-ls.pod:74
2412 #, no-wrap
2413 msgid ""
2414 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2415 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2416 " diff -u old new | less\n"
2417 "\n"
2418 msgstr ""
2419
2420 #. type: textblock
2421 #: ../cat/virt-ls.pod:78
2422 msgid ""
2423 "The commands above won't find files where the content has changed but the "
2424 "metadata (eg. file size and modification date) is the same.  To do that, you "
2425 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2426 "checksum> can be quite slow since it has to read and compute a checksum of "
2427 "every regular file in the virtual machine."
2428 msgstr ""
2429
2430 #. type: =head1
2431 #: ../cat/virt-ls.pod:84
2432 msgid "OUTPUT MODES"
2433 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2434
2435 #. type: textblock
2436 #: ../cat/virt-ls.pod:86
2437 msgid ""
2438 "C<virt-ls> has four output modes, controlled by different combinations of "
2439 "the I<-l> and I<-R> options."
2440 msgstr ""
2441
2442 #. type: =head2
2443 #: ../cat/virt-ls.pod:89
2444 msgid "SIMPLE LISTING"
2445 msgstr "ПРОСТИЙ СПИСОК"
2446
2447 #. type: textblock
2448 #: ../cat/virt-ls.pod:91
2449 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2450 msgstr ""
2451
2452 #. type: verbatim
2453 #: ../cat/virt-ls.pod:93
2454 #, no-wrap
2455 msgid ""
2456 " $ virt-ls -d guest /\n"
2457 " bin\n"
2458 " boot\n"
2459 " [etc.]\n"
2460 "\n"
2461 msgstr ""
2462 " $ virt-ls -d guest /\n"
2463 " bin\n"
2464 " boot\n"
2465 " [тощо]\n"
2466 "\n"
2467
2468 #. type: =head2
2469 #: ../cat/virt-ls.pod:98
2470 msgid "LONG LISTING"
2471 msgstr "ДОВГИЙ СПИСОК"
2472
2473 #. type: textblock
2474 #: ../cat/virt-ls.pod:100
2475 msgid ""
2476 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2477 "(more specifically, like the C<guestfs_ll> function)."
2478 msgstr ""
2479
2480 #. type: verbatim
2481 #: ../cat/virt-ls.pod:103
2482 #, no-wrap
2483 msgid ""
2484 " $ virt-ls -l -d guest /\n"
2485 " total 204\n"
2486 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2487 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2488 " [etc.]\n"
2489 "\n"
2490 msgstr ""
2491 " $ virt-ls -l -d guest /\n"
2492 " total 204\n"
2493 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2494 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2495 " [тощо]\n"
2496 "\n"
2497
2498 #. type: textblock
2499 #: ../cat/virt-ls.pod:109
2500 msgid ""
2501 "Note that while this is useful for displaying a directory, do not try "
2502 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2503 "instead."
2504 msgstr ""
2505
2506 #. type: =head2
2507 #: ../cat/virt-ls.pod:113
2508 msgid "RECURSIVE LISTING"
2509 msgstr "РЕКУРСИВНИЙ СПИСОК"
2510
2511 #. type: textblock
2512 #: ../cat/virt-ls.pod:115
2513 msgid ""
2514 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2515 "and directories recursively:"
2516 msgstr ""
2517
2518 #. type: verbatim
2519 #: ../cat/virt-ls.pod:118
2520 #, no-wrap
2521 msgid ""
2522 " $ virt-ls -R -d guest /tmp\n"
2523 " foo\n"
2524 " foo/bar\n"
2525 " [etc.]\n"
2526 "\n"
2527 msgstr ""
2528 " $ virt-ls -R -d guest /tmp\n"
2529 " foo\n"
2530 " foo/bar\n"
2531 " [тощо]\n"
2532 "\n"
2533
2534 #. type: textblock
2535 #: ../cat/virt-ls.pod:123
2536 msgid ""
2537 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2538 "converts C<\\0> characters to C<\\n>."
2539 msgstr ""
2540
2541 #. type: =head2
2542 #: ../cat/virt-ls.pod:126
2543 msgid "RECURSIVE LONG LISTING"
2544 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2545
2546 #. type: textblock
2547 #: ../cat/virt-ls.pod:128
2548 msgid ""
2549 "Using I<-lR> options together changes the output to display directories "
2550 "recursively, with file stats, and optionally other features such as "
2551 "checksums and extended attributes."
2552 msgstr ""
2553
2554 #. type: textblock
2555 #: ../cat/virt-ls.pod:132
2556 msgid ""
2557 "Most of the interesting features of C<virt-ls> are only available when using "
2558 "I<-lR> mode."
2559 msgstr ""
2560
2561 #. type: textblock
2562 #: ../cat/virt-ls.pod:135
2563 msgid ""
2564 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2565 "you cannot use the output in another program (because filenames can contain "
2566 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2567 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2568 "on you by creating filenames with embedded newline characters.  To B<safely> "
2569 "parse the output in another program, use the I<--csv> (Comma-Separated "
2570 "Values) option."
2571 msgstr ""
2572
2573 #. type: textblock
2574 #: ../cat/virt-ls.pod:143
2575 msgid ""
2576 "Note that this output format is completely unrelated to the C<ls -lR> "
2577 "command."
2578 msgstr ""
2579
2580 #. type: verbatim
2581 #: ../cat/virt-ls.pod:146
2582 #, no-wrap
2583 msgid ""
2584 " $ virt-ls -lR -d guest /bin\n"
2585 " d 0555       4096 /bin\n"
2586 " - 0755        123 /bin/alsaunmute\n"
2587 " - 0755      28328 /bin/arch\n"
2588 " l 0777          4 /bin/awk -> gawk\n"
2589 " - 0755      27216 /bin/basename\n"
2590 " - 0755     943360 /bin/bash\n"
2591 " [etc.]\n"
2592 "\n"
2593 msgstr ""
2594 " $ virt-ls -lR -d guest /bin\n"
2595 " d 0555       4096 /bin\n"
2596 " - 0755        123 /bin/alsaunmute\n"
2597 " - 0755      28328 /bin/arch\n"
2598 " l 0777          4 /bin/awk -> gawk\n"
2599 " - 0755      27216 /bin/basename\n"
2600 " - 0755     943360 /bin/bash\n"
2601 " [тощо]\n"
2602 "\n"
2603
2604 #. type: textblock
2605 #: ../cat/virt-ls.pod:155
2606 msgid "These basic fields are always shown:"
2607 msgstr ""
2608
2609 #. type: =item
2610 #: ../cat/virt-ls.pod:159
2611 msgid "type"
2612 msgstr "тип"
2613
2614 #. type: textblock
2615 #: ../cat/virt-ls.pod:161
2616 msgid ""
2617 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2618 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2619 "link), C<s> (socket) or C<u> (unknown)."
2620 msgstr ""
2621
2622 #. type: =item
2623 #: ../cat/virt-ls.pod:171
2624 msgid "permissions"
2625 msgstr "права доступу"
2626
2627 #. type: textblock
2628 #: ../cat/virt-ls.pod:173
2629 msgid "The Unix permissions, displayed as a 4 digit octal number."
2630 msgstr ""
2631
2632 #. type: =item
2633 #: ../cat/virt-ls.pod:175
2634 msgid "size"
2635 msgstr "розмір"
2636
2637 #. type: textblock
2638 #: ../cat/virt-ls.pod:177
2639 msgid ""
2640 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2641 "readable> option is given, in which case this is shown as a human-readable "
2642 "number."
2643 msgstr ""
2644
2645 #. type: =head2
2646 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4263
2647 msgid "path"
2648 msgstr "шлях"
2649
2650 #. type: textblock
2651 #: ../cat/virt-ls.pod:183
2652 msgid "The full path of the file or directory."
2653 msgstr ""
2654
2655 #. type: =item
2656 #: ../cat/virt-ls.pod:185
2657 msgid "link"
2658 msgstr "посилання"
2659
2660 #. type: textblock
2661 #: ../cat/virt-ls.pod:187
2662 msgid "For symbolic links only, the link target."
2663 msgstr ""
2664
2665 #. type: textblock
2666 #: ../cat/virt-ls.pod:191
2667 msgid ""
2668 "In I<-lR> mode, additional command line options enable the display of more "
2669 "fields."
2670 msgstr ""
2671
2672 #. type: textblock
2673 #: ../cat/virt-ls.pod:194
2674 msgid ""
2675 "With the I<--uids> flag, these additional fields are displayed before the "
2676 "path:"
2677 msgstr ""
2678
2679 #. type: =item
2680 #: ../cat/virt-ls.pod:199
2681 msgid "uid"
2682 msgstr "uid"
2683
2684 #. type: =item
2685 #: ../cat/virt-ls.pod:201
2686 msgid "gid"
2687 msgstr "gid"
2688
2689 #. type: textblock
2690 #: ../cat/virt-ls.pod:203
2691 msgid ""
2692 "The UID and GID of the owner of the file (displayed numerically).  Note "
2693 "these only make sense in the context of a Unix-like guest."
2694 msgstr ""
2695
2696 #. type: textblock
2697 #: ../cat/virt-ls.pod:208
2698 msgid "With the I<--times> flag, these additional fields are displayed:"
2699 msgstr ""
2700
2701 #. type: =item
2702 #: ../cat/virt-ls.pod:212
2703 msgid "atime"
2704 msgstr "atime"
2705
2706 #. type: textblock
2707 #: ../cat/virt-ls.pod:214
2708 msgid "The time of last access."
2709 msgstr "Час останнього доступу."
2710
2711 #. type: =item
2712 #: ../cat/virt-ls.pod:216
2713 msgid "mtime"
2714 msgstr "mtime"
2715
2716 #. type: textblock
2717 #: ../cat/virt-ls.pod:218
2718 msgid "The time of last modification."
2719 msgstr "Час останнього внесення змін."
2720
2721 #. type: =item
2722 #: ../cat/virt-ls.pod:220
2723 msgid "ctime"
2724 msgstr "ctime"
2725
2726 #. type: textblock
2727 #: ../cat/virt-ls.pod:222
2728 msgid "The time of last status change."
2729 msgstr "Час останньої зміни стану."
2730
2731 #. type: textblock
2732 #: ../cat/virt-ls.pod:226
2733 msgid ""
2734 "The time fields are displayed as string dates and times, unless one of the "
2735 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2736 msgstr ""
2737
2738 #. type: textblock
2739 #: ../cat/virt-ls.pod:229
2740 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2741 msgstr ""
2742
2743 #. type: =item
2744 #: ../cat/virt-ls.pod:233
2745 msgid "device"
2746 msgstr "пристрій"
2747
2748 #. type: textblock
2749 #: ../cat/virt-ls.pod:235
2750 msgid ""
2751 "The device containing the file (displayed as major:minor).  This may not "
2752 "match devices as known to the guest."
2753 msgstr ""
2754
2755 #. type: =item
2756 #: ../cat/virt-ls.pod:238
2757 msgid "inode"
2758 msgstr "inode"
2759
2760 #. type: textblock
2761 #: ../cat/virt-ls.pod:240
2762 msgid "The inode number."
2763 msgstr ""
2764
2765 #. type: =item
2766 #: ../cat/virt-ls.pod:242
2767 msgid "nlink"
2768 msgstr "nlink"
2769
2770 #. type: textblock
2771 #: ../cat/virt-ls.pod:244
2772 msgid "The number of hard links."
2773 msgstr "Кількість жорстких посилань."
2774
2775 #. type: =item
2776 #: ../cat/virt-ls.pod:246
2777 msgid "rdev"
2778 msgstr "rdev"
2779
2780 #. type: textblock
2781 #: ../cat/virt-ls.pod:248
2782 msgid ""
2783 "For block and char special files, the device (displayed as major:minor)."
2784 msgstr ""
2785
2786 #. type: =item
2787 #: ../cat/virt-ls.pod:251
2788 msgid "blocks"
2789 msgstr "блоки"
2790
2791 #. type: textblock
2792 #: ../cat/virt-ls.pod:253
2793 msgid "The number of 512 byte blocks allocated to the file."
2794 msgstr ""
2795
2796 #. type: textblock
2797 #: ../cat/virt-ls.pod:257
2798 msgid ""
2799 "With the I<--checksum> flag, the checksum of the file contents is shown "
2800 "(only for regular files).  Computing file checksums can take a considerable "
2801 "amount of time."
2802 msgstr ""
2803
2804 #. type: =item
2805 #: ../cat/virt-ls.pod:280
2806 msgid "B<--checksum>"
2807 msgstr "B<--checksum>"
2808
2809 #. type: =item
2810 #: ../cat/virt-ls.pod:282
2811 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2812 msgstr "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2813
2814 #. type: textblock
2815 #: ../cat/virt-ls.pod:284
2816 msgid ""
2817 "Display checksum over file contents for regular files.  With no argument, "
2818 "this defaults to using I<md5>.  Using an argument, you can select the "
2819 "checksum type to use."
2820 msgstr ""
2821
2822 #. type: textblock
2823 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2824 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2825 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2826 msgid ""
2827 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2828 "LISTING> above."
2829 msgstr ""
2830
2831 #. type: textblock
2832 #: ../cat/virt-ls.pod:316
2833 msgid ""
2834 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2835 "so you cannot see what you are typing.  If you are not worried about Tempest "
2836 "attacks and there is no one else in the room you can specify this flag to "
2837 "see what you are typing."
2838 msgstr ""
2839
2840 #. type: =item
2841 #: ../cat/virt-ls.pod:321
2842 msgid "B<--extra-stats>"
2843 msgstr "B<--extra-stats>"
2844
2845 #. type: textblock
2846 #: ../cat/virt-ls.pod:323
2847 msgid "Display extra stats."
2848 msgstr "Показати додаткові дані."
2849
2850 #. type: verbatim
2851 #: ../cat/virt-ls.pod:339
2852 #, no-wrap
2853 msgid ""
2854 " virt-ls --format=raw -a disk.img /dir\n"
2855 "\n"
2856 msgstr ""
2857
2858 #. type: verbatim
2859 #: ../cat/virt-ls.pod:343
2860 #, no-wrap
2861 msgid ""
2862 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2863 "\n"
2864 msgstr ""
2865
2866 #. type: textblock
2867 #: ../cat/virt-ls.pod:356
2868 msgid "Display file sizes in human-readable format."
2869 msgstr ""
2870
2871 #. type: =item
2872 #: ../cat/virt-ls.pod:370
2873 msgid "B<-R>"
2874 msgstr "B<-R>"
2875
2876 #. type: =item
2877 #: ../cat/virt-ls.pod:372
2878 msgid "B<--recursive>"
2879 msgstr "B<--recursive>"
2880
2881 #. type: textblock
2882 #: ../cat/virt-ls.pod:374
2883 msgid ""
2884 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2885 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2886 "LISTING>."
2887 msgstr ""
2888
2889 #. type: textblock
2890 #: ../cat/virt-ls.pod:378
2891 msgid ""
2892 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2893 "LONG LISTING>."
2894 msgstr ""
2895
2896 #. type: textblock
2897 #: ../cat/virt-ls.pod:381
2898 msgid ""
2899 "C<virt-ls -R> produces a recursive list of files starting at the named "
2900 "directory.  See L</RECURSIVE LISTING>."
2901 msgstr ""
2902
2903 #. type: textblock
2904 #: ../cat/virt-ls.pod:384
2905 msgid ""
2906 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2907 "parsed.  See L</RECURSIVE LONG LISTING>."
2908 msgstr ""
2909
2910 #. type: =item
2911 #: ../cat/virt-ls.pod:387
2912 msgid "B<--times>"
2913 msgstr "B<--times>"
2914
2915 #. type: textblock
2916 #: ../cat/virt-ls.pod:389
2917 msgid "Display time fields."
2918 msgstr ""
2919
2920 #. type: =item
2921 #: ../cat/virt-ls.pod:394
2922 msgid "B<--time-days>"
2923 msgstr "B<--time-days>"
2924
2925 #. type: textblock
2926 #: ../cat/virt-ls.pod:396
2927 msgid "Display time fields as days before now (negative if in the future)."
2928 msgstr ""
2929
2930 #. type: textblock
2931 #: ../cat/virt-ls.pod:398
2932 msgid ""
2933 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2934 "of the file is between 0 and 86399 seconds."
2935 msgstr ""
2936
2937 #. type: =item
2938 #: ../cat/virt-ls.pod:404
2939 msgid "B<--time-relative>"
2940 msgstr "B<--time-relative>"
2941
2942 #. type: textblock
2943 #: ../cat/virt-ls.pod:406
2944 msgid "Display time fields as seconds before now (negative if in the future)."
2945 msgstr ""
2946
2947 #. type: =item
2948 #: ../cat/virt-ls.pod:411
2949 msgid "B<--time-t>"
2950 msgstr "B<--time-t>"
2951
2952 #. type: textblock
2953 #: ../cat/virt-ls.pod:413
2954 msgid "Display time fields as seconds since the Unix epoch."
2955 msgstr ""
2956
2957 #. type: =item
2958 #: ../cat/virt-ls.pod:418
2959 msgid "B<--uids>"
2960 msgstr "B<--uids>"
2961
2962 #. type: textblock
2963 #: ../cat/virt-ls.pod:420
2964 msgid "Display UID and GID fields."
2965 msgstr ""
2966
2967 #. type: textblock
2968 #: ../cat/virt-ls.pod:445
2969 msgid "Previous versions of virt-ls allowed you to write either:"
2970 msgstr ""
2971
2972 #. type: verbatim
2973 #: ../cat/virt-ls.pod:447
2974 #, no-wrap
2975 msgid ""
2976 " virt-ls disk.img [disk.img ...] /dir\n"
2977 "\n"
2978 msgstr ""
2979
2980 #. type: verbatim
2981 #: ../cat/virt-ls.pod:451
2982 #, no-wrap
2983 msgid ""
2984 " virt-ls guestname /dir\n"
2985 "\n"
2986 msgstr ""
2987
2988 #. type: textblock
2989 #: ../cat/virt-ls.pod:497
2990 msgid ""
2991 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2992 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2993 "L<http://libguestfs.org/>."
2994 msgstr ""
2995 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2996 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2997 "L<http://libguestfs.org/>."
2998
2999 #. type: textblock
3000 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
3001 #: ../rescue/virt-rescue.pod:302
3002 msgid "Copyright (C) 2009-2011 Red Hat Inc."
3003 msgstr "©Red Hat Inc., 2009–2011"
3004
3005 #. type: textblock
3006 #: ../clone/virt-sysprep.pod:5
3007 msgid ""
3008 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3009 msgstr ""
3010
3011 #. type: verbatim
3012 #: ../clone/virt-sysprep.pod:9
3013 #, no-wrap
3014 msgid ""
3015 " virt-sysprep [--options] -d domname\n"
3016 "\n"
3017 msgstr ""
3018
3019 #. type: verbatim
3020 #: ../clone/virt-sysprep.pod:11
3021 #, no-wrap
3022 msgid ""
3023 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3024 "\n"
3025 msgstr ""
3026
3027 #. type: textblock
3028 #: ../clone/virt-sysprep.pod:15
3029 msgid ""
3030 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3031 "can be made from it.  Steps in this process include removing SSH host keys, "
3032 "removing persistent network MAC configuration, and removing user accounts.  "
3033 "Each step can be enabled or disabled as required."
3034 msgstr ""
3035
3036 #. type: textblock
3037 #: ../clone/virt-sysprep.pod:21
3038 msgid ""
3039 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3040 "customization by the system administrator."
3041 msgstr ""
3042
3043 #. type: textblock
3044 #: ../clone/virt-sysprep.pod:24
3045 msgid ""
3046 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3047 "be shut down.  If you want to preserve the existing contents of the guest, "
3048 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3049 msgstr ""
3050
3051 #. type: textblock
3052 #: ../clone/virt-sysprep.pod:29
3053 msgid ""
3054 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3055 "recommend that you don't.  The time you might want to run it as root is when "
3056 "you need root in order to access the disk image, but even in this case it "
3057 "would be better to change the permissions on the disk image to be writable "
3058 "as the non-root user running virt-sysprep."
3059 msgstr ""
3060
3061 #. type: textblock
3062 #: ../clone/virt-sysprep.pod:35
3063 msgid ""
3064 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3065 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3066 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3067 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3068 "Windows sysprepping in a future version, and we already have code to do it."
3069 msgstr ""
3070
3071 #. type: =item
3072 #: ../clone/virt-sysprep.pod:76
3073 msgid "B<--enable=...>"
3074 msgstr ""
3075
3076 #. type: textblock
3077 #: ../clone/virt-sysprep.pod:78
3078 msgid ""
3079 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3080 "operations, for example:"
3081 msgstr ""
3082
3083 #. type: verbatim
3084 #: ../clone/virt-sysprep.pod:81
3085 #, no-wrap
3086 msgid ""
3087 " --enable=ssh-hostkeys,udev-persistent-net\n"
3088 "\n"
3089 msgstr ""
3090
3091 #. type: textblock
3092 #: ../clone/virt-sysprep.pod:83
3093 msgid ""
3094 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3095 msgstr ""
3096
3097 #. type: textblock
3098 #: ../clone/virt-sysprep.pod:85
3099 msgid ""
3100 "If the I<--enable> option is not given, then we default to trying all "
3101 "possible sysprep operations.  But some sysprep operations are skipped for "
3102 "some guest types."
3103 msgstr ""
3104
3105 #. type: textblock
3106 #: ../clone/virt-sysprep.pod:89
3107 msgid ""
3108 "Use I<--list-operations> to list operations supported by a particular "
3109 "version of virt-sysprep."
3110 msgstr ""
3111
3112 #. type: textblock
3113 #: ../clone/virt-sysprep.pod:92
3114 msgid ""
3115 "See L</OPERATIONS> below for a list and an explanation of each operation."
3116 msgstr ""
3117
3118 #. type: verbatim
3119 #: ../clone/virt-sysprep.pod:106
3120 #, no-wrap
3121 msgid ""
3122 " virt-sysprep --format=raw -a disk.img\n"
3123 "\n"
3124 msgstr ""
3125
3126 #. type: verbatim
3127 #: ../clone/virt-sysprep.pod:110
3128 #, no-wrap
3129 msgid ""
3130 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3131 "\n"
3132 msgstr ""
3133
3134 #. type: =item
3135 #: ../clone/virt-sysprep.pod:119
3136 msgid "B<--hostname> newhostname"
3137 msgstr ""
3138
3139 #. type: textblock
3140 #: ../clone/virt-sysprep.pod:121
3141 msgid ""
3142 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3143 "defaults to C<localhost.localdomain>."
3144 msgstr ""
3145
3146 #. type: =item
3147 #: ../clone/virt-sysprep.pod:124
3148 msgid "B<--list-operations>"
3149 msgstr ""
3150
3151 #. type: textblock
3152 #: ../clone/virt-sysprep.pod:126
3153 msgid "List the operations supported by the virt-sysprep program."
3154 msgstr ""
3155
3156 #. type: =item
3157 #: ../clone/virt-sysprep.pod:128
3158 msgid "B<--selinux-relabel>"
3159 msgstr ""
3160
3161 #. type: =item
3162 #: ../clone/virt-sysprep.pod:130
3163 msgid "B<--no-selinux-relabel>"
3164 msgstr ""
3165
3166 #. type: textblock
3167 #: ../clone/virt-sysprep.pod:132
3168 msgid ""
3169 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3170 "I<--no-selinux-relabel> disables relabelling."
3171 msgstr ""
3172
3173 #. type: textblock
3174 #: ../clone/virt-sysprep.pod:135
3175 msgid ""
3176 "The default is to try to detect if SELinux relabelling is required.  See L</"
3177 "SELINUX RELABELLING> below for more details."
3178 msgstr ""
3179
3180 #. type: =head1
3181 #: ../clone/virt-sysprep.pod:156
3182 msgid "OPERATIONS"
3183 msgstr ""
3184
3185 #. type: textblock
3186 #: ../clone/virt-sysprep.pod:158
3187 msgid ""
3188 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3189 "enabled>, although some are skipped depending on the type of guest."
3190 msgstr ""
3191
3192 #. type: textblock
3193 #: ../clone/virt-sysprep.pod:162
3194 msgid ""
3195 "Operations can be individually enabled using the I<--enable> option.  Use a "
3196 "comma-separated list, for example:"
3197 msgstr ""
3198
3199 #. type: verbatim
3200 #: ../clone/virt-sysprep.pod:165
3201 #, no-wrap
3202 msgid ""
3203 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3204 "\n"
3205 msgstr ""
3206
3207 #. type: textblock
3208 #: ../clone/virt-sysprep.pod:167
3209 msgid ""
3210 "To list the operations supported by the current version of virt-sysprep, use "
3211 "I<--list-operations>."
3212 msgstr ""
3213
3214 #. type: textblock
3215 #: ../clone/virt-sysprep.pod:170
3216 msgid ""
3217 "Future versions of virt-sysprep may add more operations.  If you are using "
3218 "virt-sysprep and want predictable behaviour, specify only the operations "
3219 "that you want to have enabled."
3220 msgstr ""
3221
3222 #. type: =head2
3223 #: ../clone/virt-sysprep.pod:174
3224 msgid "cron-spool"
3225 msgstr ""
3226
3227 #. type: textblock
3228 #: ../clone/virt-sysprep.pod:176
3229 msgid "Remove user at-jobs and cron-jobs."
3230 msgstr ""
3231
3232 #. type: =head2
3233 #: ../clone/virt-sysprep.pod:178
3234 msgid "dhcp-client-state"
3235 msgstr ""
3236
3237 #. type: textblock
3238 #: ../clone/virt-sysprep.pod:180
3239 msgid "Remove DHCP client leases."
3240 msgstr ""
3241
3242 #. type: =head2
3243 #: ../clone/virt-sysprep.pod:182
3244 msgid "dhcp-server-state"
3245 msgstr ""
3246
3247 #. type: textblock
3248 #: ../clone/virt-sysprep.pod:184
3249 msgid "Remove DHCP server leases."
3250 msgstr ""
3251
3252 #. type: =head2
3253 #: ../clone/virt-sysprep.pod:186
3254 msgid "hostname"
3255 msgstr ""
3256
3257 #. type: textblock
3258 #: ../clone/virt-sysprep.pod:188
3259 msgid ""
3260 "Changes the hostname of the guest to the value given in the I<--hostname> "
3261 "parameter."
3262 msgstr ""
3263
3264 #. type: textblock
3265 #: ../clone/virt-sysprep.pod:191
3266 msgid ""
3267 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3268 "C<localhost.localdomain>."
3269 msgstr ""
3270
3271 #. type: =head2
3272 #: ../clone/virt-sysprep.pod:194
3273 msgid "logfiles"
3274 msgstr ""
3275
3276 #. type: textblock
3277 #: ../clone/virt-sysprep.pod:196
3278 msgid "Remove many log files."
3279 msgstr ""
3280
3281 #. type: =head2
3282 #: ../clone/virt-sysprep.pod:198
3283 msgid "mail-spool"
3284 msgstr ""
3285
3286 #. type: textblock
3287 #: ../clone/virt-sysprep.pod:200
3288 msgid "Remove email from the local mail spool directory."
3289 msgstr ""
3290
3291 #. type: =head2
3292 #: ../clone/virt-sysprep.pod:202
3293 msgid "net-hwaddr"
3294 msgstr ""
3295
3296 #. type: textblock
3297 #: ../clone/virt-sysprep.pod:204
3298 msgid ""
3299 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3300 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3301 msgstr ""
3302
3303 #. type: =head2
3304 #: ../clone/virt-sysprep.pod:207
3305 msgid "random-seed"
3306 msgstr ""
3307
3308 #. type: textblock
3309 #: ../clone/virt-sysprep.pod:209
3310 msgid ""
3311 "Write some random bytes from the host into the random seed file of the guest."
3312 msgstr ""
3313
3314 #. type: textblock
3315 #: ../clone/virt-sysprep.pod:212
3316 msgid "See L</RANDOM SEED> below."
3317 msgstr ""
3318
3319 #. type: =head2
3320 #: ../clone/virt-sysprep.pod:214
3321 msgid "rhn-systemid"
3322 msgstr ""
3323
3324 #. type: textblock
3325 #: ../clone/virt-sysprep.pod:216
3326 msgid "Remove the RHN system ID."
3327 msgstr ""
3328
3329 #. type: =head2
3330 #: ../clone/virt-sysprep.pod:218
3331 msgid "smolt-uuid"
3332 msgstr ""
3333
3334 #. type: textblock
3335 #: ../clone/virt-sysprep.pod:220
3336 msgid "Remove the Smolt hardware UUID."
3337 msgstr ""
3338
3339 #. type: =head2
3340 #: ../clone/virt-sysprep.pod:222
3341 msgid "ssh-hostkeys"
3342 msgstr ""
3343
3344 #. type: textblock
3345 #: ../clone/virt-sysprep.pod:224
3346 msgid "Remove the SSH host keys in the guest."
3347 msgstr ""
3348
3349 #. type: textblock
3350 #: ../clone/virt-sysprep.pod:226
3351 msgid ""
3352 "The SSH host keys are regenerated (differently) next time the guest is "
3353 "booted."
3354 msgstr ""
3355
3356 #. type: textblock
3357 #: ../clone/virt-sysprep.pod:229
3358 msgid ""
3359 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3360 "stark warning about the host key changing:"
3361 msgstr ""
3362
3363 #. type: verbatim
3364 #: ../clone/virt-sysprep.pod:232
3365 #, no-wrap
3366 msgid ""
3367 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3368 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3369 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3370 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3371 "\n"
3372 msgstr ""
3373
3374 #. type: =head2
3375 #: ../clone/virt-sysprep.pod:237
3376 msgid "udev-persistent-net"
3377 msgstr ""
3378
3379 #. type: textblock
3380 #: ../clone/virt-sysprep.pod:239
3381 msgid ""
3382 "Remove udev persistent net rules which map the guest's existing MAC address "
3383 "to a fixed ethernet device (eg. eth0)."
3384 msgstr ""
3385
3386 #. type: textblock
3387 #: ../clone/virt-sysprep.pod:242
3388 msgid ""
3389 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3390 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3391 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3392 "Erasing the udev persistent net rules avoids this."
3393 msgstr ""
3394
3395 #. type: =head2
3396 #: ../clone/virt-sysprep.pod:247
3397 msgid "utmp"
3398 msgstr ""
3399
3400 #. type: textblock
3401 #: ../clone/virt-sysprep.pod:249
3402 msgid "Remove the utmp file."
3403 msgstr ""
3404
3405 #. type: textblock
3406 #: ../clone/virt-sysprep.pod:251
3407 msgid ""
3408 "This records who is currently logged in on a machine.  In modern Linux "
3409 "distros it is stored in a ramdisk and hence not part of the virtual "
3410 "machine's disk, but it was stored on disk in older distros."
3411 msgstr ""
3412
3413 #. type: =head2
3414 #: ../clone/virt-sysprep.pod:255
3415 msgid "yum-uuid"
3416 msgstr ""
3417
3418 #. type: textblock
3419 #: ../clone/virt-sysprep.pod:257
3420 msgid "Remove the yum UUID."
3421 msgstr ""
3422
3423 #. type: textblock
3424 #: ../clone/virt-sysprep.pod:259
3425 msgid ""
3426 "Yum creates a fresh UUID the next time it runs when it notices that the "
3427 "original UUID has been erased."
3428 msgstr ""
3429
3430 #. type: =head1
3431 #: ../clone/virt-sysprep.pod:262
3432 msgid "COPYING AND CLONING"
3433 msgstr ""
3434
3435 #. type: textblock
3436 #: ../clone/virt-sysprep.pod:264
3437 msgid ""
3438 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3439 "prepare a template from which guests can be cloned.  There are many "
3440 "different ways to achieve this using the virt tools, and this section is "
3441 "just an introduction."
3442 msgstr ""
3443
3444 #. type: textblock
3445 #: ../clone/virt-sysprep.pod:269
3446 msgid "A virtual machine (when switched off) consists of two parts:"
3447 msgstr ""
3448
3449 #. type: =item
3450 #: ../clone/virt-sysprep.pod:273
3451 msgid "I<configuration>"
3452 msgstr ""
3453
3454 #. type: textblock
3455 #: ../clone/virt-sysprep.pod:275
3456 msgid ""
3457 "The configuration or description of the guest.  eg. The libvirt XML (see "
3458 "C<virsh dumpxml>), the running configuration of the guest, or another "
3459 "external format like OVF."
3460 msgstr ""
3461
3462 #. type: textblock
3463 #: ../clone/virt-sysprep.pod:279
3464 msgid "Some configuration items that might need to be changed:"
3465 msgstr ""
3466
3467 #. type: textblock
3468 #: ../clone/virt-sysprep.pod:285
3469 msgid "name"
3470 msgstr ""
3471
3472 #. type: textblock
3473 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3474 msgid "UUID"
3475 msgstr ""
3476
3477 #. type: textblock
3478 #: ../clone/virt-sysprep.pod:293
3479 msgid "path to block device(s)"
3480 msgstr ""
3481
3482 #. type: textblock
3483 #: ../clone/virt-sysprep.pod:297
3484 msgid "network card MAC address"
3485 msgstr ""
3486
3487 #. type: =item
3488 #: ../clone/virt-sysprep.pod:301
3489 msgid "I<block device(s)>"
3490 msgstr ""
3491
3492 #. type: textblock
3493 #: ../clone/virt-sysprep.pod:303
3494 msgid ""
3495 "One or more hard disk images, themselves containing files, directories, "
3496 "applications, kernels, configuration, etc."
3497 msgstr ""
3498
3499 #. type: textblock
3500 #: ../clone/virt-sysprep.pod:306
3501 msgid "Some things inside the block devices that might need to be changed:"
3502 msgstr ""
3503
3504 #. type: textblock
3505 #: ../clone/virt-sysprep.pod:312
3506 msgid "hostname and other net configuration"
3507 msgstr ""
3508
3509 #. type: textblock
3510 #: ../clone/virt-sysprep.pod:320
3511 msgid "SSH host keys"
3512 msgstr ""
3513
3514 #. type: textblock
3515 #: ../clone/virt-sysprep.pod:324
3516 msgid "Windows unique security ID (SID)"
3517 msgstr ""
3518
3519 #. type: textblock
3520 #: ../clone/virt-sysprep.pod:328
3521 msgid "Puppet registration"
3522 msgstr ""
3523
3524 #. type: =head2
3525 #: ../clone/virt-sysprep.pod:334
3526 msgid "COPYING THE BLOCK DEVICE"
3527 msgstr ""
3528
3529 #. type: textblock
3530 #: ../clone/virt-sysprep.pod:336
3531 msgid ""
3532 "Starting with an original guest, you probably wish to copy the guest block "
3533 "device and its configuration to make a template.  Then once you are happy "
3534 "with the template, you will want to make many clones from it."
3535 msgstr ""
3536
3537 #. type: verbatim
3538 #: ../clone/virt-sysprep.pod:341
3539 #, no-wrap
3540 msgid ""
3541 "                        virt-sysprep\n"
3542 "                             |\n"
3543 "                             v\n"
3544 " original guest --------> template ---------->\n"
3545 "                                      \\------> cloned\n"
3546 "                                       \\-----> guests\n"
3547 "                                        \\---->\n"
3548 "\n"
3549 msgstr ""
3550
3551 #. type: textblock
3552 #: ../clone/virt-sysprep.pod:349
3553 msgid ""
3554 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3555 "L<dd(1)>."
3556 msgstr ""
3557
3558 #. type: verbatim
3559 #: ../clone/virt-sysprep.pod:352
3560 #, no-wrap
3561 msgid ""
3562 "                   dd                 dd\n"
3563 " original guest --------> template ---------->\n"
3564 "                                      \\------> cloned\n"
3565 "                                       \\-----> guests\n"
3566 "                                        \\---->\n"
3567 "\n"
3568 msgstr ""
3569
3570 #. type: textblock
3571 #: ../clone/virt-sysprep.pod:358
3572 msgid "There are some smarter (and faster) ways too:"
3573 msgstr ""
3574
3575 #. type: verbatim
3576 #: ../clone/virt-sysprep.pod:364
3577 #, no-wrap
3578 msgid ""
3579 "                          snapshot\n"
3580 "                template ---------->\n"
3581 "                            \\------> cloned\n"
3582 "                             \\-----> guests\n"
3583 "                              \\---->\n"
3584 "\n"
3585 msgstr ""
3586
3587 #. type: textblock
3588 #: ../clone/virt-sysprep.pod:370
3589 msgid ""
3590 "Use the block device as a backing file and create a snapshot on top for each "
3591 "guest.  The advantage is that you don't need to copy the block device (very "
3592 "fast) and only changes are stored (less storage required)."
3593 msgstr ""
3594
3595 #. type: textblock
3596 #: ../clone/virt-sysprep.pod:375
3597 msgid ""
3598 "Note that writing to the backing file once you have created guests on top of "
3599 "it is not possible: you will corrupt the guests."
3600 msgstr ""
3601
3602 #. type: textblock
3603 #: ../clone/virt-sysprep.pod:378
3604 msgid ""
3605 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3606 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3607 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3608 "also create cheap snapshots from files or LUNs."
3609 msgstr ""
3610
3611 #. type: textblock
3612 #: ../clone/virt-sysprep.pod:386
3613 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3614 msgstr ""
3615
3616 #. type: textblock
3617 #: ../clone/virt-sysprep.pod:390
3618 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3619 msgstr ""
3620
3621 #. type: =head2
3622 #: ../clone/virt-sysprep.pod:394
3623 msgid "VIRT-CLONE"
3624 msgstr ""
3625
3626 #. type: textblock
3627 #: ../clone/virt-sysprep.pod:396
3628 msgid ""
3629 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3630 "and/or modify the external libvirt configuration of a guest.  It will reset "
3631 "the name, UUID and MAC address of the guest in the libvirt XML."
3632 msgstr ""
3633
3634 #. type: textblock
3635 #: ../clone/virt-sysprep.pod:401
3636 msgid ""
3637 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3638 "image.  This was the original motivation to write virt-sysprep."
3639 msgstr ""
3640
3641 #. type: =head2
3642 #: ../clone/virt-sysprep.pod:404
3643 msgid "SPARSIFY"
3644 msgstr ""
3645
3646 #. type: verbatim
3647 #: ../clone/virt-sysprep.pod:406
3648 #, no-wrap
3649 msgid ""
3650 "              virt-sparsify\n"
3651 " original guest --------> template\n"
3652 "\n"
3653 msgstr ""
3654
3655 #. type: textblock
3656 #: ../clone/virt-sysprep.pod:409
3657 msgid ""
3658 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3659 "it easier to compress and/or faster to copy."
3660 msgstr ""
3661
3662 #. type: textblock
3663 #: ../clone/virt-sysprep.pod:412
3664 msgid ""
3665 "Notice that since virt-sparsify also copies the image, you can use it to "
3666 "make the initial copy (instead of C<dd>)."
3667 msgstr ""
3668
3669 #. type: =head2
3670 #: ../clone/virt-sysprep.pod:415
3671 msgid "RESIZE"
3672 msgstr ""
3673
3674 #. type: verbatim
3675 #: ../clone/virt-sysprep.pod:417
3676 #, no-wrap
3677 msgid ""
3678 "                         virt-resize\n"
3679 "                template ---------->\n"
3680 "                            \\------> cloned\n"
3681 "                             \\-----> guests\n"
3682 "                              \\---->\n"
3683 "\n"
3684 msgstr ""
3685
3686 #. type: textblock
3687 #: ../clone/virt-sysprep.pod:423
3688 msgid ""
3689 "If you want to give people cloned guests, but let them pick the size of the "
3690 "guest themselves (eg. depending on how much they are prepared to pay for "
3691 "disk space), then instead of copying the template, you can run L<virt-resize"
3692 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3693 "guests from a template."
3694 msgstr ""
3695
3696 #. type: =head1
3697 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1149
3698 msgid "SECURITY"
3699 msgstr "БЕЗПЕКА"
3700
3701 #. type: textblock
3702 #: ../clone/virt-sysprep.pod:431
3703 msgid ""
3704 "Although virt-sysprep removes some sensitive information from the guest, it "
3705 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3706 "above, and the implementation of the operations in the shell script.  You "
3707 "should also examine the guest afterwards."
3708 msgstr ""
3709
3710 #. type: textblock
3711 #: ../clone/virt-sysprep.pod:436
3712 msgid ""
3713 "Sensitive files are simply removed.  The data they contained may still exist "
3714 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3715 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3716 "(1)> command to get rid of deleted content in directory entries and inodes."
3717 msgstr ""
3718
3719 #. type: =head2
3720 #: ../clone/virt-sysprep.pod:442
3721 msgid "RANDOM SEED"
3722 msgstr ""
3723
3724 #. type: textblock
3725 #: ../clone/virt-sysprep.pod:444
3726 msgid "I<(This section applies to Linux guests only)>"
3727 msgstr ""
3728
3729 #. type: textblock
3730 #: ../clone/virt-sysprep.pod:446
3731 msgid ""
3732 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3733 "from the host into the guest's random seed file."
3734 msgstr ""
3735
3736 #. type: textblock
3737 #: ../clone/virt-sysprep.pod:449
3738 msgid ""
3739 "If this is just done once and the guest is cloned from the same template, "
3740 "then each guest will start with the same entropy, and things like SSH host "
3741 "keys and TCP sequence numbers may be predictable."
3742 msgstr ""
3743
3744 #. type: textblock
3745 #: ../clone/virt-sysprep.pod:453
3746 msgid ""
3747 "Therefore you should arrange to add more randomness I<after> cloning from a "
3748 "template too, which can be done by just enabling the C<random-seed> "
3749 "operation:"
3750 msgstr ""
3751
3752 #. type: verbatim
3753 #: ../clone/virt-sysprep.pod:457
3754 #, no-wrap
3755 msgid ""
3756 " cp template.img newguest.img\n"
3757 " virt-sysprep --enable=random-seed -a newguest.img\n"
3758 "\n"
3759 msgstr ""
3760
3761 #. type: =head2
3762 #: ../clone/virt-sysprep.pod:460
3763 msgid "SELINUX RELABELLING"
3764 msgstr ""
3765
3766 #. type: textblock
3767 #: ../clone/virt-sysprep.pod:462
3768 msgid "I<(This section applies to Linux guests using SELinux only)>"
3769 msgstr ""
3770
3771 #. type: textblock
3772 #: ../clone/virt-sysprep.pod:464
3773 msgid ""
3774 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3775 "autorelabel> so that these will be correctly labelled by SELinux the next "
3776 "time the guest is booted.  This process interrupts boot and can take some "
3777 "time."
3778 msgstr ""
3779
3780 #. type: textblock
3781 #: ../clone/virt-sysprep.pod:469
3782 msgid ""
3783 "You can force relabelling for all guests by supplying the I<--selinux-"
3784 "relabel> option."
3785 msgstr ""
3786
3787 #. type: textblock
3788 #: ../clone/virt-sysprep.pod:472
3789 msgid ""
3790 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3791 "relabel> option."
3792 msgstr ""
3793
3794 #. type: textblock
3795 #: ../clone/virt-sysprep.pod:484
3796 msgid "This program returns 0 on success, or 1 if there was an error."
3797 msgstr ""
3798
3799 #. type: textblock
3800 #: ../clone/virt-sysprep.pod:488
3801 msgid ""
3802 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3803 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3804 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3805 msgstr ""
3806
3807 #. type: textblock
3808 #: ../df/virt-df.pod:5
3809 msgid "virt-df - Display free space on virtual filesystems"
3810 msgstr ""
3811
3812 #. type: verbatim
3813 #: ../df/virt-df.pod:9
3814 #, no-wrap
3815 msgid ""
3816 " virt-df [--options]\n"
3817 "\n"
3818 msgstr ""
3819 " virt-df [--параметри]\n"
3820 "\n"
3821
3822 #. type: verbatim
3823 #: ../df/virt-df.pod:11
3824 #, no-wrap
3825 msgid ""
3826 " virt-df [--options] -d domname\n"
3827 "\n"
3828 msgstr ""
3829
3830 #. type: verbatim
3831 #: ../df/virt-df.pod:13
3832 #, no-wrap
3833 msgid ""
3834 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3835 "\n"
3836 msgstr ""
3837
3838 #. type: verbatim
3839 #: ../df/virt-df.pod:17
3840 #, no-wrap
3841 msgid ""
3842 " virt-df [--options] domname\n"
3843 "\n"
3844 msgstr ""
3845
3846 #. type: verbatim
3847 #: ../df/virt-df.pod:19
3848 #, no-wrap
3849 msgid ""
3850 " virt-df [--options] disk.img [disk.img ...]\n"
3851 "\n"
3852 msgstr ""
3853
3854 #. type: textblock
3855 #: ../df/virt-df.pod:23
3856 msgid ""
3857 "C<virt-df> is a command line tool to display free space on virtual machine "
3858 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3859 "allocated to a virtual machine, but can look inside disk images to see how "
3860 "much space is really being used."
3861 msgstr ""
3862
3863 #. type: textblock
3864 #: ../df/virt-df.pod:28
3865 msgid ""
3866 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3867 "to get a list of all active and inactive guests, and performs a C<df>-type "
3868 "operation on each one in turn, printing out the results."
3869 msgstr ""
3870
3871 #. type: textblock
3872 #: ../df/virt-df.pod:32
3873 msgid ""
3874 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3875 "type operation on either the single named libvirt domain, or on the disk "
3876 "image(s) listed on the command line (which must all belong to a single VM).  "
3877 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3878 "guest>.  If you want to run on multiple guests, then you have to invoke "
3879 "C<virt-df> multiple times."
3880 msgstr ""
3881
3882 #. type: textblock
3883 #: ../df/virt-df.pod:39
3884 msgid ""
3885 "Use the I<--csv> option to get a format which can be easily parsed by other "
3886 "programs.  Other options are similar to the standard L<df(1)> command."
3887 msgstr ""
3888
3889 #. type: textblock
3890 #: ../df/virt-df.pod:45
3891 msgid ""
3892 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3893 "output human-readable:"
3894 msgstr ""
3895
3896 #. type: verbatim
3897 #: ../df/virt-df.pod:48
3898 #, no-wrap
3899 msgid ""
3900 " # virt-df -d F14x64 -h\n"
3901 " Filesystem                       Size     Used  Available  Use%\n"
3902 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3903 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3904 "\n"
3905 msgstr ""
3906
3907 #. type: textblock
3908 #: ../df/virt-df.pod:53
3909 msgid "Show disk usage for a disk image file called C<test.img>:"
3910 msgstr ""
3911
3912 #. type: verbatim
3913 #: ../df/virt-df.pod:55
3914 #, no-wrap
3915 msgid ""
3916 " $ virt-df -a test1.img\n"
3917 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3918 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3919 "\n"
3920 msgstr ""
3921
3922 #. type: verbatim
3923 #: ../df/virt-df.pod:112
3924 #, no-wrap
3925 msgid ""
3926 " virt-df --format=raw -a disk.img\n"
3927 "\n"
3928 msgstr ""
3929
3930 #. type: verbatim
3931 #: ../df/virt-df.pod:116
3932 #, no-wrap
3933 msgid ""
3934 " virt-df --format=raw -a disk.img --format -a another.img\n"
3935 "\n"
3936 msgstr ""
3937
3938 #. type: textblock
3939 #: ../df/virt-df.pod:129
3940 msgid "Print sizes in human-readable format."
3941 msgstr ""
3942
3943 #. type: textblock
3944 #: ../df/virt-df.pod:131
3945 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3946 msgstr ""
3947
3948 #. type: =item
3949 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3950 msgid "B<-i>"
3951 msgstr "B<-i>"
3952
3953 #. type: =item
3954 #: ../df/virt-df.pod:135
3955 msgid "B<--inodes>"
3956 msgstr "B<--inodes>"
3957
3958 #. type: textblock
3959 #: ../df/virt-df.pod:137
3960 msgid "Print inodes instead of blocks."
3961 msgstr ""
3962
3963 #. type: =item
3964 #: ../df/virt-df.pod:139
3965 msgid "B<--one-per-guest>"
3966 msgstr "B<--one-per-guest>"
3967
3968 #. type: textblock
3969 #: ../df/virt-df.pod:141
3970 msgid ""
3971 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3972 "disks from several guests to a single libguestfs appliance."
3973 msgstr ""
3974
3975 #. type: textblock
3976 #: ../df/virt-df.pod:144
3977 msgid "You might use this option in the following circumstances:"
3978 msgstr ""
3979
3980 #. type: textblock
3981 #: ../df/virt-df.pod:150
3982 msgid ""
3983 "If you think an untrusted guest might actively try to exploit the libguestfs "
3984 "appliance kernel, then this prevents one guest from interfering with the "
3985 "stats printed for another guest."
3986 msgstr ""
3987
3988 #. type: textblock
3989 #: ../df/virt-df.pod:156
3990 msgid ""
3991 "If the kernel has a bug which stops it from accessing a filesystem in one "
3992 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3993 "and report stats for further guests."
3994 msgstr ""
3995
3996 #. type: textblock
3997 #: ../df/virt-df.pod:165
3998 msgid ""
3999 "Print UUIDs instead of names.  This is useful for following a guest even "
4000 "when the guest is migrated or renamed, or when two guests happen to have the "
4001 "same name."
4002 msgstr ""
4003
4004 #. type: textblock
4005 #: ../df/virt-df.pod:169
4006 msgid ""
4007 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
4008 "images, we still print the disk image name even when this option is "
4009 "specified."
4010 msgstr ""
4011
4012 #. type: textblock
4013 #: ../df/virt-df.pod:229
4014 msgid ""
4015 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4016 "libguestfs.org/>."
4017 msgstr ""
4018
4019 #. type: textblock
4020 #: ../edit/virt-edit.pod:5
4021 msgid "virt-edit - Edit a file in a virtual machine"
4022 msgstr ""
4023
4024 #. type: verbatim
4025 #: ../edit/virt-edit.pod:9
4026 #, no-wrap
4027 msgid ""
4028 " virt-edit [--options] -d domname file [file ...]\n"
4029 "\n"
4030 msgstr ""
4031
4032 #. type: verbatim
4033 #: ../edit/virt-edit.pod:11
4034 #, no-wrap
4035 msgid ""
4036 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4037 "\n"
4038 msgstr ""
4039
4040 #. type: verbatim
4041 #: ../edit/virt-edit.pod:13
4042 #, no-wrap
4043 msgid ""
4044 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4045 "\n"
4046 msgstr ""
4047
4048 #. type: verbatim
4049 #: ../edit/virt-edit.pod:17
4050 #, no-wrap
4051 msgid ""
4052 " virt-edit domname file\n"
4053 "\n"
4054 msgstr ""
4055
4056 #. type: verbatim
4057 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4058 #, no-wrap
4059 msgid ""
4060 " virt-edit disk.img [disk.img ...] file\n"
4061 "\n"
4062 msgstr ""
4063
4064 #. type: =head1
4065 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4066 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4067 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4068 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4069 msgid "WARNING"
4070 msgstr "ПОПЕРЕДЖЕННЯ"
4071
4072 #. type: textblock
4073 #: ../edit/virt-edit.pod:23
4074 msgid ""
4075 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4076 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4077 "doing this, but doesn't catch all cases."
4078 msgstr ""
4079
4080 #. type: textblock
4081 #: ../edit/virt-edit.pod:29
4082 msgid ""
4083 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4084 "exists in the named virtual machine (or disk image)."
4085 msgstr ""
4086
4087 #. type: textblock
4088 #: ../edit/virt-edit.pod:32
4089 msgid ""
4090 "Multiple filenames can be given, in which case they are each edited in "
4091 "turn.  Each filename must be a full path, starting at the root directory "
4092 "(starting with '/')."
4093 msgstr ""
4094
4095 #. type: textblock
4096 #: ../edit/virt-edit.pod:36
4097 msgid "If you want to just view a file, use L<virt-cat(1)>."
4098 msgstr ""
4099
4100 #. type: textblock
4101 #: ../edit/virt-edit.pod:38
4102 msgid ""
4103 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4104 "USING GUESTFISH> below)."
4105 msgstr ""
4106
4107 #. type: textblock
4108 #: ../edit/virt-edit.pod:41
4109 msgid ""
4110 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4111 "that and much more."
4112 msgstr ""
4113
4114 #. type: textblock
4115 #: ../edit/virt-edit.pod:46
4116 msgid "Edit the named files interactively:"
4117 msgstr ""
4118
4119 #. type: verbatim
4120 #: ../edit/virt-edit.pod:48
4121 #, no-wrap
4122 msgid ""
4123 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4124 "\n"
4125 msgstr ""
4126
4127 #. type: verbatim
4128 #: ../edit/virt-edit.pod:50
4129 #, no-wrap
4130 msgid ""
4131 " virt-edit -d mydomain /etc/passwd\n"
4132 "\n"
4133 msgstr ""
4134
4135 #. type: textblock
4136 #: ../edit/virt-edit.pod:52
4137 msgid "For Windows guests, some Windows paths are understood:"
4138 msgstr ""
4139
4140 #. type: verbatim
4141 #: ../edit/virt-edit.pod:54
4142 #, no-wrap
4143 msgid ""
4144 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4145 "\n"
4146 msgstr ""
4147
4148 #. type: textblock
4149 #: ../edit/virt-edit.pod:56
4150 msgid ""
4151 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4152 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4153 msgstr ""
4154
4155 #. type: verbatim
4156 #: ../edit/virt-edit.pod:60
4157 #, no-wrap
4158 msgid ""
4159 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4160 "\n"
4161 msgstr ""
4162
4163 #. type: =item
4164 #: ../edit/virt-edit.pod:81
4165 msgid "B<-b> extension"
4166 msgstr ""
4167
4168 #. type: =item
4169 #: ../edit/virt-edit.pod:83
4170 msgid "B<--backup> extension"
4171 msgstr ""
4172
4173 #. type: textblock
4174 #: ../edit/virt-edit.pod:85
4175 msgid ""
4176 "Create a backup of the original file I<in the guest disk image>.  The backup "
4177 "has the original filename with C<extension> added."
4178 msgstr ""
4179
4180 #. type: textblock
4181 #: ../edit/virt-edit.pod:88
4182 msgid ""
4183 "Usually the first character of C<extension> would be a dot C<.> so you would "
4184 "write:"
4185 msgstr ""
4186
4187 #. type: verbatim
4188 #: ../edit/virt-edit.pod:91
4189 #, no-wrap
4190 msgid ""
4191 " virt-edit -b .orig [etc]\n"
4192 "\n"
4193 msgstr ""
4194
4195 #. type: textblock
4196 #: ../edit/virt-edit.pod:93
4197 msgid "By default, no backup file is made."
4198 msgstr ""
4199
4200 #. type: =item
4201 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4202 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4203 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4204 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4205 msgid "B<-c URI>"
4206 msgstr "B<-c адреса>"
4207
4208 #. type: =item
4209 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4210 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4211 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4212 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4213 msgid "B<--connect URI>"
4214 msgstr "B<--connect адреса>"
4215
4216 #. type: textblock
4217 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4218 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4219 #: ../tools/virt-win-reg.pl:135
4220 msgid ""
4221 "If you specify guest block devices directly, then libvirt is not used at all."
4222 msgstr ""
4223
4224 #. type: textblock
4225 #: ../edit/virt-edit.pod:114
4226 msgid ""
4227 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4228 "off so you cannot see what you are typing.  If you are not worried about "
4229 "Tempest attacks and there is no one else in the room you can specify this "
4230 "flag to see what you are typing."
4231 msgstr ""
4232
4233 #. type: =item
4234 #: ../edit/virt-edit.pod:119
4235 msgid "B<-e> EXPR"
4236 msgstr "B<-e> вираз"
4237
4238 #. type: =item
4239 #: ../edit/virt-edit.pod:121
4240 msgid "B<--expr> EXPR"
4241 msgstr "B<--expr> вираз"
4242
4243 #. type: textblock
4244 #: ../edit/virt-edit.pod:123
4245 msgid ""
4246 "Instead of launching the external editor, non-interactively apply the Perl "
4247 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4248 "EDITING> below."
4249 msgstr ""
4250
4251 #. type: textblock
4252 #: ../edit/virt-edit.pod:127
4253 msgid ""
4254 "Be careful to properly quote the expression to prevent it from being altered "
4255 "by the shell."
4256 msgstr ""
4257
4258 #. type: textblock
4259 #: ../edit/virt-edit.pod:130
4260 msgid "Note that this option is only available when Perl 5 is installed."
4261 msgstr ""
4262
4263 #. type: =item
4264 #: ../edit/virt-edit.pod:132
4265 msgid "B<--format> raw|qcow2|..."
4266 msgstr "B<--format> raw|qcow2|..."
4267
4268 #. type: verbatim
4269 #: ../edit/virt-edit.pod:143
4270 #, no-wrap
4271 msgid ""
4272 " virt-edit --format=raw -a disk.img file\n"
4273 "\n"
4274 msgstr ""
4275
4276 #. type: verbatim
4277 #: ../edit/virt-edit.pod:147
4278 #, no-wrap
4279 msgid ""
4280 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4281 "\n"
4282 msgstr ""
4283
4284 #. type: textblock
4285 #: ../edit/virt-edit.pod:181
4286 msgid "Previous versions of virt-edit allowed you to write either:"
4287 msgstr ""
4288
4289 #. type: verbatim
4290 #: ../edit/virt-edit.pod:187
4291 #, no-wrap
4292 msgid ""
4293 " virt-edit guestname file\n"
4294 "\n"
4295 msgstr ""
4296
4297 #. type: =head1
4298 #: ../edit/virt-edit.pod:195
4299 msgid "NON-INTERACTIVE EDITING"
4300 msgstr "НЕІНТЕРАКТИВНЕ РЕДАГУВАННЯ"
4301
4302 #. type: textblock
4303 #: ../edit/virt-edit.pod:197
4304 msgid ""
4305 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4306 "administrator can interactively edit the file."
4307 msgstr ""
4308
4309 #. type: textblock
4310 #: ../edit/virt-edit.pod:200
4311 msgid ""
4312 "There are two ways also to use C<virt-edit> from scripts in order to make "
4313 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4314 "like this, it's less error-prone to write scripts directly using the "
4315 "libguestfs API and Augeas for configuration file editing.)"
4316 msgstr ""
4317
4318 #. type: textblock
4319 #: ../edit/virt-edit.pod:206
4320 msgid ""
4321 "The first method is to temporarily set C<$EDITOR> to any script or program "
4322 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4323 "update C<tmpfile> in place however it likes."
4324 msgstr ""
4325
4326 #. type: textblock
4327 #: ../edit/virt-edit.pod:210
4328 msgid ""
4329 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4330 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4331 "instances of C<foo> with C<bar> in a file:"
4332 msgstr ""
4333
4334 #. type: verbatim
4335 #: ../edit/virt-edit.pod:214
4336 #, no-wrap
4337 msgid ""
4338 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4339 "\n"
4340 msgstr ""
4341
4342 #. type: textblock
4343 #: ../edit/virt-edit.pod:216
4344 msgid ""
4345 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4346 "For example to delete root's password you could do:"
4347 msgstr ""
4348
4349 #. type: verbatim
4350 #: ../edit/virt-edit.pod:219
4351 #, no-wrap
4352 msgid ""
4353 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4354 "\n"
4355 msgstr ""
4356 " virt-edit -d назва_домену /etc/passwd -e 's/^root:.*?:/root::/'\n"
4357 "\n"
4358
4359 #. type: textblock
4360 #: ../edit/virt-edit.pod:221
4361 msgid ""
4362 "What really happens is that the snippet is evaluated as a Perl expression "
4363 "for each line of the file.  The line, including the final C<\\n>, is passed "
4364 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4365 msgstr ""
4366
4367 #. type: textblock
4368 #: ../edit/virt-edit.pod:226
4369 msgid ""
4370 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4371 "C<apache> user account from the password file you can do:"
4372 msgstr ""
4373
4374 #. type: verbatim
4375 #: ../edit/virt-edit.pod:229
4376 #, no-wrap
4377 msgid ""
4378 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4379 "\n"
4380 msgstr ""
4381 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4382 "\n"
4383
4384 #. type: textblock
4385 #: ../edit/virt-edit.pod:231
4386 msgid ""
4387 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4388 "the end of the file is rather difficult this way since there is no concept "
4389 "of \"last line of the file\" - your expression just doesn't get called "
4390 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4391 "want to do this."
4392 msgstr ""
4393
4394 #. type: textblock
4395 #: ../edit/virt-edit.pod:237
4396 msgid ""
4397 "The variable C<$lineno> contains the current line number.  As is "
4398 "traditional, the first line in the file is number C<1>."
4399 msgstr ""
4400
4401 #. type: textblock
4402 #: ../edit/virt-edit.pod:240
4403 msgid ""
4404 "The return value from the expression is ignored, but the expression may call "
4405 "C<die> in order to abort the whole program, leaving the original file "
4406 "untouched."
4407 msgstr ""
4408
4409 #. type: textblock
4410 #: ../edit/virt-edit.pod:244
4411 msgid ""
4412 "Remember when matching the end of a line that C<$_> may contain the final C<"
4413 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4414 "newline then neither of these.  Thus to match or substitute some text at the "
4415 "end of a line, use this regular expression:"
4416 msgstr ""
4417
4418 #. type: verbatim
4419 #: ../edit/virt-edit.pod:249
4420 #, no-wrap
4421 msgid ""
4422 " /some text(\\r?\\n)?$/\n"
4423 "\n"
4424 msgstr ""
4425 " /якийсь текст(\\r?\\n)?$/\n"
4426 "\n"
4427
4428 #. type: textblock
4429 #: ../edit/virt-edit.pod:251
4430 msgid ""
4431 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4432 "$_> itself (since that would remove all newlines from the file):"
4433 msgstr ""
4434
4435 #. type: verbatim
4436 #: ../edit/virt-edit.pod:255
4437 #, no-wrap
4438 msgid ""
4439 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4440 "\n"
4441 msgstr ""
4442 " my $m = $_; chomp $m; $m =~ /якийсь текст$/\n"
4443 "\n"
4444
4445 #. type: =head1
4446 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
4447 msgid "WINDOWS PATHS"
4448 msgstr "ШЛЯХИ У WINDOWS"
4449
4450 #. type: textblock
4451 #: ../edit/virt-edit.pod:259
4452 msgid ""
4453 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4454 "paths (eg. C<E:\\foo\\bar.txt>)."
4455 msgstr ""
4456
4457 #. type: textblock
4458 #: ../edit/virt-edit.pod:262
4459 msgid "If and only if the guest is running Windows then:"
4460 msgstr ""
4461
4462 #. type: textblock
4463 #: ../edit/virt-edit.pod:268
4464 msgid ""
4465 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
4466 "to the correct filesystem."
4467 msgstr ""
4468
4469 #. type: textblock
4470 #: ../edit/virt-edit.pod:273
4471 msgid ""
4472 "Any backslash (C<\\>) characters in the path are replaced with forward "
4473 "slashes so that libguestfs can process it."
4474 msgstr ""
4475
4476 #. type: textblock
4477 #: ../edit/virt-edit.pod:278
4478 msgid ""
4479 "The path is resolved case insensitively to locate the file that should be "
4480 "edited."
4481 msgstr ""
4482
4483 #. type: textblock
4484 #: ../edit/virt-edit.pod:283
4485 msgid "There are some known shortcomings:"
4486 msgstr ""
4487
4488 #. type: textblock
4489 #: ../edit/virt-edit.pod:289
4490 msgid "Some NTFS symbolic links may not be followed correctly."
4491 msgstr ""
4492
4493 #. type: textblock
4494 #: ../edit/virt-edit.pod:293
4495 msgid "NTFS junction points that cross filesystems are not followed."
4496 msgstr ""
4497
4498 #. type: textblock
4499 #: ../edit/virt-edit.pod:299
4500 msgid ""
4501 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4502 "C<virt-edit> doesn't work."
4503 msgstr ""
4504
4505 #. type: textblock
4506 #: ../edit/virt-edit.pod:302
4507 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4508 msgstr ""
4509
4510 #. type: verbatim
4511 #: ../edit/virt-edit.pod:304
4512 #, no-wrap
4513 msgid ""
4514 " guestfish --rw -i -d domname edit /file\n"
4515 "\n"
4516 msgstr ""
4517
4518 #. type: textblock
4519 #: ../edit/virt-edit.pod:306
4520 msgid ""
4521 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4522 "path to the file."
4523 msgstr ""
4524
4525 #. type: textblock
4526 #: ../edit/virt-edit.pod:309
4527 msgid ""
4528 "The command above uses libguestfs's guest inspection feature and so does not "
4529 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4530 "disk images that don't contain guests.  To edit a file on a disk image "
4531 "directly, use:"
4532 msgstr ""
4533
4534 #. type: verbatim
4535 #: ../edit/virt-edit.pod:314
4536 #, no-wrap
4537 msgid ""
4538 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4539 "\n"
4540 msgstr ""
4541
4542 #. type: textblock
4543 #: ../edit/virt-edit.pod:316
4544 msgid ""
4545 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4546 "the disk image to edit, and C</file> is the full path to the file."
4547 msgstr ""
4548
4549 #. type: textblock
4550 #: ../edit/virt-edit.pod:320
4551 msgid ""
4552 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4553 "C<write> or C<upload> instead:"
4554 msgstr ""
4555
4556 #. type: verbatim
4557 #: ../edit/virt-edit.pod:323
4558 #, no-wrap
4559 msgid ""
4560 " guestfish --rw -i -d domname touch /newfile\n"
4561 "\n"
4562 msgstr ""
4563
4564 #. type: verbatim
4565 #: ../edit/virt-edit.pod:325
4566 #, no-wrap
4567 msgid ""
4568 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4569 "\n"
4570 msgstr ""
4571
4572 #. type: verbatim
4573 #: ../edit/virt-edit.pod:327
4574 #, no-wrap
4575 msgid ""
4576 " guestfish --rw -i -d domname upload localfile /newfile\n"
4577 "\n"
4578 msgstr ""
4579
4580 #. type: =head1
4581 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4582 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4583 #: ../src/guestfs.pod:3194 ../test-tool/libguestfs-test-tool.pod:95
4584 msgid "ENVIRONMENT VARIABLES"
4585 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4586
4587 #. type: =item
4588 #: ../edit/virt-edit.pod:333
4589 msgid "C<EDITOR>"
4590 msgstr "C<EDITOR>"
4591
4592 #. type: textblock
4593 #: ../edit/virt-edit.pod:335
4594 msgid ""
4595 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4596 "\"emacs -nw\">"
4597 msgstr ""
4598
4599 #. type: textblock
4600 #: ../edit/virt-edit.pod:338
4601 msgid "If not set, C<vi> is used."
4602 msgstr ""
4603
4604 #. type: textblock
4605 #: ../edit/virt-edit.pod:356
4606 msgid ""
4607 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4608 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4609 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4610 msgstr ""
4611 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4612 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4613 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4614
4615 #. type: textblock
4616 #: ../erlang/examples/guestfs-erlang.pod:5
4617 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4618 msgstr ""
4619
4620 #. type: verbatim
4621 #: ../erlang/examples/guestfs-erlang.pod:9
4622 #, no-wrap
4623 msgid ""
4624 " {ok, G} = guestfs:create(),\n"
4625 " ok = guestfs:add_drive_opts(G, Disk,\n"
4626 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4627 " ok = guestfs:launch(G),\n"
4628 " [Device] = guestfs:list_devices(G),\n"
4629 " ok = guestfs:close(G).\n"
4630 "\n"
4631 msgstr ""
4632
4633 #. type: textblock
4634 #: ../erlang/examples/guestfs-erlang.pod:18
4635 msgid ""
4636 "This manual page documents how to call libguestfs from the Erlang "
4637 "programming language.  This page just documents the differences from the C "
4638 "API and gives some examples.  If you are not familiar with using libguestfs, "
4639 "you also need to read L<guestfs(3)>."
4640 msgstr ""
4641
4642 #. type: =head2
4643 #: ../erlang/examples/guestfs-erlang.pod:23
4644 msgid "OPENING AND CLOSING THE HANDLE"
4645 msgstr ""
4646
4647 #. type: textblock
4648 #: ../erlang/examples/guestfs-erlang.pod:25
4649 msgid ""
4650 "The Erlang bindings are implemented using an external program called C<erl-"
4651 "guestfs>.  This program must be on the current PATH, or else you should "
4652 "specify the full path to the program:"
4653 msgstr ""
4654
4655 #. type: verbatim
4656 #: ../erlang/examples/guestfs-erlang.pod:29
4657 #, no-wrap
4658 msgid ""
4659 " {ok, G} = guestfs:create().\n"
4660 "\n"
4661 msgstr ""
4662
4663 #. type: verbatim
4664 #: ../erlang/examples/guestfs-erlang.pod:31
4665 #, no-wrap
4666 msgid ""
4667 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4668 "\n"
4669 msgstr ""
4670
4671 #. type: textblock
4672 #: ../erlang/examples/guestfs-erlang.pod:33
4673 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4674 msgstr ""
4675
4676 #. type: textblock
4677 #: ../erlang/examples/guestfs-erlang.pod:36
4678 msgid "To close the handle:"
4679 msgstr ""
4680
4681 #. type: verbatim
4682 #: ../erlang/examples/guestfs-erlang.pod:38
4683 #, no-wrap
4684 msgid ""
4685 " ok = guestfs:close(G).\n"
4686 "\n"
4687 msgstr ""
4688
4689 #. type: =head2
4690 #: ../erlang/examples/guestfs-erlang.pod:40
4691 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4692 msgstr ""
4693
4694 #. type: textblock
4695 #: ../erlang/examples/guestfs-erlang.pod:42
4696 msgid ""
4697 "For functions that take optional arguments, the first arguments are the non-"
4698 "optional ones.  The last argument is a list of tuples supplying the "
4699 "remaining optional arguments."
4700 msgstr ""
4701
4702 #. type: verbatim
4703 #: ../erlang/examples/guestfs-erlang.pod:46
4704 #, no-wrap
4705 msgid ""
4706 " ok = guestfs:add_drive_opts(G, Disk,\n"
4707 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4708 "\n"
4709 msgstr ""
4710
4711 #. type: textblock
4712 #: ../erlang/examples/guestfs-erlang.pod:49
4713 msgid "If the last argument would be an empty list, you can also omit it:"
4714 msgstr ""
4715
4716 #. type: verbatim
4717 #: ../erlang/examples/guestfs-erlang.pod:51
4718 #, no-wrap
4719 msgid ""
4720 " ok = guestfs:add_drive_opts(G, Disk).\n"
4721 "\n"
4722 msgstr ""
4723
4724 #. type: =head2
4725 #: ../erlang/examples/guestfs-erlang.pod:53
4726 msgid "RETURN VALUES AND ERRORS"
4727 msgstr ""
4728
4729 #. type: textblock
4730 #: ../erlang/examples/guestfs-erlang.pod:55
4731 msgid ""
4732 "On success, most functions return a C<Result> term (which could be a list, "
4733 "string, tuple etc.).  If there is nothing for the function to return, then "
4734 "the atom C<ok> is returned."
4735 msgstr ""
4736
4737 #. type: textblock
4738 #: ../erlang/examples/guestfs-erlang.pod:59
4739 msgid "On error, you would see one of the following tuples:"
4740 msgstr ""
4741
4742 #. type: =item
4743 #: ../erlang/examples/guestfs-erlang.pod:63
4744 msgid "C<{error, Msg, Errno}>"
4745 msgstr ""
4746
4747 #. type: textblock
4748 #: ../erlang/examples/guestfs-erlang.pod:65
4749 msgid "This indicates an ordinary error from the function."
4750 msgstr ""
4751
4752 #. type: textblock
4753 #: ../erlang/examples/guestfs-erlang.pod:67
4754 msgid ""
4755 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4756 "(integer)."
4757 msgstr ""
4758
4759 #. type: textblock
4760 #: ../erlang/examples/guestfs-erlang.pod:70
4761 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4762 msgstr ""
4763
4764 #. type: =item
4765 #: ../erlang/examples/guestfs-erlang.pod:72
4766 msgid "C<{unknown, Function}>"
4767 msgstr ""
4768
4769 #. type: textblock
4770 #: ../erlang/examples/guestfs-erlang.pod:74
4771 msgid ""
4772 "This indicates that the function you called is not known.  Generally this "
4773 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4774 "which you should not do."
4775 msgstr ""
4776
4777 #. type: textblock
4778 #: ../erlang/examples/guestfs-erlang.pod:78
4779 msgid "C<Function> is the name of the unknown function."
4780 msgstr ""
4781
4782 #. type: =item
4783 #: ../erlang/examples/guestfs-erlang.pod:80
4784 msgid "C<{unknownarg, Arg}>"
4785 msgstr ""
4786
4787 #. type: textblock
4788 #: ../erlang/examples/guestfs-erlang.pod:82
4789 msgid ""
4790 "This indicates that you called a function with optional arguments, with an "
4791 "unknown argument name."
4792 msgstr ""
4793
4794 #. type: textblock
4795 #: ../erlang/examples/guestfs-erlang.pod:85
4796 msgid "C<Arg> is the name of the unknown argument."
4797 msgstr ""
4798
4799 #. type: =head1
4800 #: ../erlang/examples/guestfs-erlang.pod:89
4801 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4802 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4803 #: ../python/examples/guestfs-python.pod:34
4804 #: ../ruby/examples/guestfs-ruby.pod:28
4805 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4806 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4807
4808 #. type: textblock
4809 #: ../erlang/examples/guestfs-erlang.pod:91
4810 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4811 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4812 #: ../python/examples/guestfs-python.pod:36
4813 #: ../ruby/examples/guestfs-ruby.pod:30
4814 msgid "@EXAMPLE1@"
4815 msgstr "@EXAMPLE1@"
4816
4817 #. type: =head1
4818 #: ../erlang/examples/guestfs-erlang.pod:93
4819 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4820 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4821 #: ../python/examples/guestfs-python.pod:38
4822 #: ../ruby/examples/guestfs-ruby.pod:32
4823 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4824 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4825
4826 #. type: textblock
4827 #: ../erlang/examples/guestfs-erlang.pod:95
4828 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4829 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4830 #: ../python/examples/guestfs-python.pod:40
4831 #: ../ruby/examples/guestfs-ruby.pod:34
4832 msgid "@EXAMPLE2@"
4833 msgstr "@EXAMPLE2@"
4834
4835 #. type: textblock
4836 #: ../erlang/examples/guestfs-erlang.pod:99
4837 msgid ""
4838 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4839 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4840 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4841 msgstr ""
4842
4843 #. type: =head1
4844 #: ../erlang/examples/guestfs-erlang.pod:110
4845 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4846 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4847 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4848 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4849 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4850 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4851 #: ../python/examples/guestfs-python.pod:54
4852 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3333
4853 #: ../test-tool/libguestfs-test-tool.pod:106
4854 msgid "AUTHORS"
4855 msgstr "АВТОРИ"
4856
4857 #. type: textblock
4858 #: ../erlang/examples/guestfs-erlang.pod:112
4859 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4860 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4861 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4862 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4863 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4864 #: ../perl/examples/guestfs-perl.pod:54
4865 #: ../python/examples/guestfs-python.pod:56
4866 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3335
4867 #: ../test-tool/libguestfs-test-tool.pod:108
4868 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4869 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4870
4871 #. type: textblock
4872 #: ../erlang/examples/guestfs-erlang.pod:116
4873 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4874 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4875 msgstr ""
4876
4877 #. type: textblock
4878 #: ../erlang/examples/guestfs-erlang.pod:118
4879 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4880 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4881 #: ../perl/examples/guestfs-perl.pod:60
4882 #: ../python/examples/guestfs-python.pod:62
4883 #: ../ruby/examples/guestfs-ruby.pod:56
4884 msgid ""
4885 "The examples in this manual page may be freely copied, modified and "
4886 "distributed without any restrictions."
4887 msgstr ""
4888
4889 #. type: textblock
4890 #: ../erlang/examples/guestfs-erlang.pod:121
4891 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4892 #: ../java/examples/guestfs-java.pod:69
4893 #: ../ocaml/examples/guestfs-ocaml.pod:102
4894 #: ../perl/examples/guestfs-perl.pod:63
4895 #: ../python/examples/guestfs-python.pod:65
4896 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3342
4897 msgid ""
4898 "This library is free software; you can redistribute it and/or modify it "
4899 "under the terms of the GNU Lesser General Public License as published by the "
4900 "Free Software Foundation; either version 2 of the License, or (at your "
4901 "option) any later version."
4902 msgstr ""
4903
4904 #. type: textblock
4905 #: ../erlang/examples/guestfs-erlang.pod:126
4906 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4907 #: ../java/examples/guestfs-java.pod:74
4908 #: ../ocaml/examples/guestfs-ocaml.pod:107
4909 #: ../perl/examples/guestfs-perl.pod:68
4910 #: ../python/examples/guestfs-python.pod:70
4911 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3347
4912 msgid ""
4913 "This library is distributed in the hope that it will be useful, but WITHOUT "
4914 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4915 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4916 "for more details."
4917 msgstr ""
4918
4919 #. type: textblock
4920 #: ../erlang/examples/guestfs-erlang.pod:131
4921 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4922 #: ../java/examples/guestfs-java.pod:79
4923 #: ../ocaml/examples/guestfs-ocaml.pod:112
4924 #: ../perl/examples/guestfs-perl.pod:73
4925 #: ../python/examples/guestfs-python.pod:75
4926 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3352
4927 msgid ""
4928 "You should have received a copy of the GNU Lesser General Public License "
4929 "along with this library; if not, write to the Free Software Foundation, "
4930 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4931 msgstr ""
4932
4933 #. type: textblock
4934 #: ../examples/guestfs-examples.pod:5
4935 msgid "guestfs-examples - Examples of using libguestfs from C"
4936 msgstr ""
4937
4938 #. type: verbatim
4939 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4940 #, no-wrap
4941 msgid ""
4942 " #include <guestfs.h>\n"
4943 " \n"
4944 msgstr ""
4945 " #include <guestfs.h>\n"
4946 " \n"
4947
4948 #. type: verbatim
4949 #: ../examples/guestfs-examples.pod:11
4950 #, no-wrap
4951 msgid ""
4952 " guestfs_h *g = guestfs_create ();\n"
4953 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4954 " guestfs_launch (g);\n"
4955 "\n"
4956 msgstr ""
4957 " guestfs_h *g = guestfs_create ();\n"
4958 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4959 " guestfs_launch (g);\n"
4960 "\n"
4961
4962 #. type: verbatim
4963 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4964 #, no-wrap
4965 msgid ""
4966 " cc prog.c -o prog -lguestfs\n"
4967 "or:\n"
4968 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4969 "\n"
4970 msgstr ""
4971 " cc prog.c -o prog -lguestfs\n"
4972 "або:\n"
4973 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4974 "\n"
4975
4976 #. type: textblock
4977 #: ../examples/guestfs-examples.pod:21
4978 msgid ""
4979 "This manual page contains examples of calling libguestfs from the C "
4980 "programming language.  If you are not familiar with using libguestfs, you "
4981 "also need to read L<guestfs(3)>."
4982 msgstr ""
4983
4984 #. type: textblock
4985 #: ../examples/guestfs-examples.pod:35
4986 msgid ""
4987 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4988 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4989 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4990 msgstr ""
4991
4992 #. type: textblock
4993 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4994 #: ../python/examples/guestfs-python.pod:60
4995 #: ../ruby/examples/guestfs-ruby.pod:54
4996 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4997 msgstr ""
4998
4999 #. type: =end
5000 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5001 msgid "comment"
5002 msgstr "коментар"
5003
5004 #. type: textblock
5005 #: ../examples/guestfs-recipes.pod:5
5006 msgid ""
5007 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5008 "here.  The only way which works for both sorts of output is to just write "
5009 "the URL directly.  Do NOT use L<...> for URLs."
5010 msgstr ""
5011
5012 #. type: textblock
5013 #: ../examples/guestfs-recipes.pod:9
5014 msgid ""
5015 "We break with tradition here and don't use ALL CAPS for the section "
5016 "headings, as this makes them much easier to read."
5017 msgstr ""
5018
5019 #. type: textblock
5020 #: ../examples/guestfs-recipes.pod:16
5021 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5022 msgstr ""
5023
5024 #. type: textblock
5025 #: ../examples/guestfs-recipes.pod:20
5026 msgid ""
5027 "This page contains recipes for and links to things you can do using "
5028 "libguestfs, L<guestfish(1)> and the virt tools."
5029 msgstr ""
5030
5031 #. type: =head1
5032 #: ../examples/guestfs-recipes.pod:23
5033 msgid "Audit a virtual machine for setuid files"
5034 msgstr ""
5035
5036 #. type: textblock
5037 #: ../examples/guestfs-recipes.pod:25
5038 msgid ""
5039 "The link below contains a small program which can be used to audit a Linux "
5040 "virtual machine to see what setuid and setgid files it contains."
5041 msgstr ""
5042
5043 #. type: textblock
5044 #: ../examples/guestfs-recipes.pod:28
5045 msgid ""
5046 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5047 "files/#content"
5048 msgstr ""
5049
5050 #. type: =head1
5051 #: ../examples/guestfs-recipes.pod:30
5052 msgid "Change the background image in a Windows XP VM"
5053 msgstr ""
5054
5055 #. type: textblock
5056 #: ../examples/guestfs-recipes.pod:32
5057 msgid ""
5058 "The links below explain how to use L<guestfish(1)> to change the background "
5059 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
5060 "be substantially different for each version of Windows."
5061 msgstr ""
5062
5063 #. type: textblock
5064 #: ../examples/guestfs-recipes.pod:37
5065 msgid ""
5066 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5067 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5068 msgstr ""
5069
5070 #. type: =head1
5071 #: ../examples/guestfs-recipes.pod:40
5072 msgid "Cloning a virtual machine (Linux)"
5073 msgstr ""
5074
5075 #. type: textblock
5076 #: ../examples/guestfs-recipes.pod:42
5077 msgid ""
5078 "The guestfish technique described in the link below works well for most "
5079 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5080 "slightly."
5081 msgstr ""
5082
5083 #. type: textblock
5084 #: ../examples/guestfs-recipes.pod:46
5085 msgid ""
5086 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5087 "vm/#content"
5088 msgstr ""
5089
5090 #. type: textblock
5091 #: ../examples/guestfs-recipes.pod:48
5092 msgid ""
5093 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5094 "discussion."
5095 msgstr ""
5096
5097 #. type: textblock
5098 #: ../examples/guestfs-recipes.pod:51
5099 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5100 msgstr ""
5101
5102 #. type: =head1
5103 #: ../examples/guestfs-recipes.pod:53
5104 msgid "Cloning a virtual machine (Windows)"
5105 msgstr ""
5106
5107 #. type: textblock
5108 #: ../examples/guestfs-recipes.pod:55
5109 msgid ""
5110 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5111 "straightforward.  Currently there is code in the Aeolus Oz project which "
5112 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5113 "we may add sysprepping ability."
5114 msgstr ""
5115
5116 #. type: textblock
5117 #: ../examples/guestfs-recipes.pod:60
5118 msgid ""
5119 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5120 "list/2011-May/msg00019.html"
5121 msgstr ""
5122
5123 #. type: =head1
5124 #: ../examples/guestfs-recipes.pod:63
5125 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5126 msgstr ""
5127
5128 #. type: textblock
5129 #: ../examples/guestfs-recipes.pod:65
5130 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5131 msgstr ""
5132
5133 #. type: verbatim
5134 #: ../examples/guestfs-recipes.pod:67
5135 #, no-wrap
5136 msgid ""
5137 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5138 "\n"
5139 msgstr ""
5140
5141 #. type: textblock
5142 #: ../examples/guestfs-recipes.pod:69
5143 msgid "To export just a subdirectory, eg. C</files>, do:"
5144 msgstr ""
5145
5146 #. type: verbatim
5147 #: ../examples/guestfs-recipes.pod:71
5148 #, no-wrap
5149 msgid ""
5150 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5151 "\n"
5152 msgstr ""
5153
5154 #. type: =head1
5155 #: ../examples/guestfs-recipes.pod:73
5156 msgid "Create empty disk images"
5157 msgstr ""
5158
5159 #. type: textblock
5160 #: ../examples/guestfs-recipes.pod:75
5161 msgid ""
5162 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5163 "The useful guide below explains the options available."
5164 msgstr ""
5165
5166 #. type: textblock
5167 #: ../examples/guestfs-recipes.pod:78
5168 msgid ""
5169 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5170 "#content"
5171 msgstr ""
5172
5173 #. type: =head1
5174 #: ../examples/guestfs-recipes.pod:80
5175 msgid "Dump raw filesystem content from inside a disk image or VM"
5176 msgstr ""
5177
5178 #. type: textblock
5179 #: ../examples/guestfs-recipes.pod:82
5180 msgid ""
5181 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5182 "filesystem content from any filesystem in a disk image or a VM (even one "
5183 "which is encrypted or buried inside an LV):"
5184 msgstr ""
5185
5186 #. type: verbatim
5187 #: ../examples/guestfs-recipes.pod:86
5188 #, no-wrap
5189 msgid ""
5190 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5191 "\n"
5192 msgstr ""
5193
5194 #. type: verbatim
5195 #: ../examples/guestfs-recipes.pod:88
5196 #, no-wrap
5197 msgid ""
5198 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5199 "\n"
5200 msgstr ""
5201
5202 #. type: textblock
5203 #: ../examples/guestfs-recipes.pod:90
5204 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5205 msgstr ""
5206
5207 #. type: =head1
5208 #: ../examples/guestfs-recipes.pod:92
5209 msgid "Edit grub configuration in a VM"
5210 msgstr ""
5211
5212 #. type: textblock
5213 #: ../examples/guestfs-recipes.pod:94
5214 msgid "You can use this to:"
5215 msgstr ""
5216
5217 #. type: textblock
5218 #: ../examples/guestfs-recipes.pod:100
5219 msgid "Fix a virtual machine that does not boot."
5220 msgstr ""
5221
5222 #. type: textblock
5223 #: ../examples/guestfs-recipes.pod:104
5224 msgid "Change which kernel is used to boot the VM."
5225 msgstr ""
5226
5227 #. type: textblock
5228 #: ../examples/guestfs-recipes.pod:108
5229 msgid "Change kernel command line options."
5230 msgstr ""
5231
5232 #. type: textblock
5233 #: ../examples/guestfs-recipes.pod:112
5234 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5235 msgstr ""
5236
5237 #. type: verbatim
5238 #: ../examples/guestfs-recipes.pod:114
5239 #, no-wrap
5240 msgid ""
5241 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5242 "\n"
5243 msgstr ""
5244
5245 #. type: textblock
5246 #: ../examples/guestfs-recipes.pod:116
5247 msgid ""
5248 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5249 "this:"
5250 msgstr ""
5251
5252 #. type: verbatim
5253 #: ../examples/guestfs-recipes.pod:119
5254 #, no-wrap
5255 msgid ""
5256 " virt-rescue -d BrokenGuest\n"
5257 "\n"
5258 msgstr ""
5259
5260 #. type: =head1
5261 #: ../examples/guestfs-recipes.pod:121
5262 msgid "Export any directory from a VM"
5263 msgstr ""
5264
5265 #. type: textblock
5266 #: ../examples/guestfs-recipes.pod:123
5267 msgid ""
5268 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5269 msgstr ""
5270
5271 #. type: verbatim
5272 #: ../examples/guestfs-recipes.pod:126
5273 #, no-wrap
5274 msgid ""
5275 " virt-copy-out -d Guest /home .\n"
5276 "\n"
5277 msgstr ""
5278
5279 #. type: textblock
5280 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5281 #: ../fish/guestfish-actions.pod:1332 ../fish/guestfish-actions.pod:1597
5282 #: ../fish/guestfish-actions.pod:2014 ../src/guestfs-actions.pod:18
5283 #: ../src/guestfs-actions.pod:2039 ../src/guestfs-actions.pod:2463
5284 #: ../src/guestfs-actions.pod:3022 ../src/guestfs.pod:1670
5285 #: ../tools/virt-win-reg.pl:706
5286 msgid "Notes:"
5287 msgstr "Нотатки:"
5288
5289 #. type: textblock
5290 #: ../examples/guestfs-recipes.pod:134
5291 msgid ""
5292 "The final dot of the command is not a printing error.  It means we want to "
5293 "copy out to the current directory."
5294 msgstr ""
5295
5296 #. type: textblock
5297 #: ../examples/guestfs-recipes.pod:139
5298 msgid "This creates a directory called C<home> under the current directory."
5299 msgstr ""
5300
5301 #. type: textblock
5302 #: ../examples/guestfs-recipes.pod:143
5303 msgid ""
5304 "If the guest is a Windows guest then you can use drive letters and "
5305 "backslashes, but you must prefix the path with C<win:> and quote it to "
5306 "protect it from the shell, like this:"
5307 msgstr ""
5308
5309 #. type: verbatim
5310 #: ../examples/guestfs-recipes.pod:147
5311 #, no-wrap
5312 msgid ""
5313 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5314 "\n"
5315 msgstr ""
5316
5317 #. type: textblock
5318 #: ../examples/guestfs-recipes.pod:149
5319 msgid "To get the output as a compressed tarball, do:"
5320 msgstr ""
5321
5322 #. type: verbatim
5323 #: ../examples/guestfs-recipes.pod:151
5324 #, no-wrap
5325 msgid ""
5326 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5327 "\n"
5328 msgstr ""
5329
5330 #. type: textblock
5331 #: ../examples/guestfs-recipes.pod:153
5332 msgid ""
5333 "Although it sounds tempting, this is usually not a reliable way to get a "
5334 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5335 "org/FAQ.html#backup"
5336 msgstr ""
5337
5338 #. type: =head1
5339 #: ../examples/guestfs-recipes.pod:157
5340 msgid "Find out which user is using the most space"
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../examples/guestfs-recipes.pod:159
5345 msgid ""
5346 "This simple script examines a Linux guest to find out which user is using "
5347 "the most space in their home directory:"
5348 msgstr ""
5349
5350 #. type: verbatim
5351 #: ../examples/guestfs-recipes.pod:162
5352 #, no-wrap
5353 msgid ""
5354 " #!/bin/sh -\n"
5355 " \n"
5356 msgstr ""
5357
5358 #. type: verbatim
5359 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5360 #, no-wrap
5361 msgid ""
5362 " set -e\n"
5363 " \n"
5364 msgstr ""
5365
5366 #. type: verbatim
5367 #: ../examples/guestfs-recipes.pod:166
5368 #, no-wrap
5369 msgid ""
5370 " vm=\"$1\"\n"
5371 " dir=/home\n"
5372 " \n"
5373 msgstr ""
5374
5375 #. type: verbatim
5376 #: ../examples/guestfs-recipes.pod:169
5377 #, no-wrap
5378 msgid ""
5379 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5380 " \n"
5381 msgstr ""
5382
5383 #. type: verbatim
5384 #: ../examples/guestfs-recipes.pod:171
5385 #, no-wrap
5386 msgid ""
5387 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5388 "     echo -n \"$dir/$d\"\n"
5389 "     echo -ne '\\t'\n"
5390 "     guestfish --remote du \"$dir/$d\";\n"
5391 " done | sort -nr -k 2\n"
5392 " \n"
5393 msgstr ""
5394
5395 #. type: verbatim
5396 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5397 #, no-wrap
5398 msgid ""
5399 " guestfish --remote exit\n"
5400 "\n"
5401 msgstr ""
5402
5403 #. type: =head1
5404 #: ../examples/guestfs-recipes.pod:179
5405 msgid "Get DHCP address from a VM"
5406 msgstr ""
5407
5408 #. type: textblock
5409 #: ../examples/guestfs-recipes.pod:181
5410 msgid ""
5411 "The link below explains the many different possible techniques for getting "
5412 "the last assigned DHCP address of a virtual machine."
5413 msgstr ""
5414
5415 #. type: textblock
5416 #: ../examples/guestfs-recipes.pod:184
5417 msgid ""
5418 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5419 "a-virtual-machine-disk-image/#content"
5420 msgstr ""
5421
5422 #. type: textblock
5423 #: ../examples/guestfs-recipes.pod:186
5424 msgid ""
5425 "In the libguestfs source examples directory you will find the latest version "
5426 "of the C<virt-dhcp-address.c> program."
5427 msgstr ""
5428
5429 #. type: =head1
5430 #: ../examples/guestfs-recipes.pod:189
5431 msgid "Get the operating system product name string"
5432 msgstr ""
5433
5434 #. type: textblock
5435 #: ../examples/guestfs-recipes.pod:191
5436 msgid "Save the following script into a file called C<product-name.sh>:"
5437 msgstr ""
5438
5439 #. type: verbatim
5440 #: ../examples/guestfs-recipes.pod:193
5441 #, no-wrap
5442 msgid ""
5443 " #!/bin/sh -\n"
5444 " set -e\n"
5445 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5446 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5447 " guestfish --remote inspect-get-product-name \"$root\"\n"
5448 " guestfish --remote exit\n"
5449 "\n"
5450 msgstr ""
5451
5452 #. type: textblock
5453 #: ../examples/guestfs-recipes.pod:200
5454 msgid "Make the script executable and run it on a named guest:"
5455 msgstr ""
5456
5457 #. type: verbatim
5458 #: ../examples/guestfs-recipes.pod:202
5459 #, no-wrap
5460 msgid ""
5461 " # product-name.sh RHEL60x64\n"
5462 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5463 "\n"
5464 msgstr ""
5465
5466 #. type: textblock
5467 #: ../examples/guestfs-recipes.pod:205
5468 msgid ""
5469 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5470 "C<xpath> command line tool or from your favourite programming language:"
5471 msgstr ""
5472
5473 #. type: verbatim
5474 #: ../examples/guestfs-recipes.pod:209
5475 #, no-wrap
5476 msgid ""
5477 " # virt-inspector RHEL60x64 > xml\n"
5478 " # xpath '//product_name' < xml\n"
5479 " Found 1 nodes:\n"
5480 " -- NODE --\n"
5481 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5482 "\n"
5483 msgstr ""
5484
5485 #. type: =head1
5486 #: ../examples/guestfs-recipes.pod:215
5487 msgid "Get the default boot kernel for a Linux VM"
5488 msgstr ""
5489
5490 #. type: textblock
5491 #: ../examples/guestfs-recipes.pod:217
5492 msgid ""
5493 "The link below contains a program to print the default boot kernel for a "
5494 "Linux VM."
5495 msgstr ""
5496
5497 #. type: textblock
5498 #: ../examples/guestfs-recipes.pod:220
5499 msgid ""
5500 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5501 "kernel-for-a-vm/#content"
5502 msgstr ""
5503
5504 #. type: textblock
5505 #: ../examples/guestfs-recipes.pod:222
5506 msgid ""
5507 "It uses Augeas, and the technique is generally applicable for many different "
5508 "tasks, such as:"
5509 msgstr ""
5510
5511 #. type: textblock
5512 #: ../examples/guestfs-recipes.pod:229
5513 msgid "listing the user accounts in the guest"
5514 msgstr ""
5515
5516 #. type: textblock
5517 #: ../examples/guestfs-recipes.pod:233
5518 msgid "what repositories is it configured to use"
5519 msgstr ""
5520
5521 #. type: textblock
5522 #: ../examples/guestfs-recipes.pod:237
5523 msgid "what NTP servers does it connect to"
5524 msgstr ""
5525
5526 #. type: textblock
5527 #: ../examples/guestfs-recipes.pod:241
5528 msgid "what were the boot messages last time it booted"
5529 msgstr ""
5530
5531 #. type: textblock
5532 #: ../examples/guestfs-recipes.pod:245
5533 msgid "listing who was logged in recently"
5534 msgstr ""
5535
5536 #. type: textblock
5537 #: ../examples/guestfs-recipes.pod:249
5538 msgid "http://augeas.net/"
5539 msgstr ""
5540
5541 #. type: =head1
5542 #: ../examples/guestfs-recipes.pod:251
5543 msgid "Install RPMs in a guest"
5544 msgstr ""
5545
5546 #. type: textblock
5547 #: ../examples/guestfs-recipes.pod:253
5548 msgid ""
5549 "The link below contains a method to install RPMs in a guest.  In fact the "
5550 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5551 "installs them next time the guest is booted.  You could use this technique "
5552 "to install vital security updates in an offline guest."
5553 msgstr ""
5554
5555 #. type: textblock
5556 #: ../examples/guestfs-recipes.pod:259
5557 msgid ""
5558 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5559 msgstr ""
5560
5561 #. type: =head1
5562 #: ../examples/guestfs-recipes.pod:261
5563 msgid "List applications installed in a VM"
5564 msgstr ""
5565
5566 #. type: textblock
5567 #: ../examples/guestfs-recipes.pod:263
5568 msgid "Save the following to a file C<list-apps.sh>:"
5569 msgstr ""
5570
5571 #. type: verbatim
5572 #: ../examples/guestfs-recipes.pod:265
5573 #, no-wrap
5574 msgid ""
5575 " #!/bin/sh -\n"
5576 " set -e\n"
5577 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5578 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5579 " guestfish --remote inspect-list-applications \"$root\"\n"
5580 " guestfish --remote exit\n"
5581 "\n"
5582 msgstr ""
5583
5584 #. type: textblock
5585 #: ../examples/guestfs-recipes.pod:272
5586 msgid ""
5587 "Make the file executable and then you can run it on any named virtual "
5588 "machine:"
5589 msgstr ""
5590
5591 #. type: verbatim
5592 #: ../examples/guestfs-recipes.pod:275
5593 #, no-wrap
5594 msgid ""
5595 " # list-apps.sh WinGuest\n"
5596 " [0] = {\n"
5597 "   app_name: Mozilla Firefox (3.6.12)\n"
5598 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5599 "   app_epoch: 0\n"
5600 "   app_version: 3.6.12 (en-GB)\n"
5601 "   app_release:\n"
5602 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5603 "   app_trans_path:\n"
5604 "   app_publisher: Mozilla\n"
5605 "   app_url: http://www.mozilla.com/en-GB/\n"
5606 "   app_source_package:\n"
5607 "   app_summary:\n"
5608 "   app_description: Mozilla Firefox\n"
5609 " }\n"
5610 " [1] = {\n"
5611 "   app_name: VLC media player\n"
5612 "   app_display_name: VLC media player 1.1.5\n"
5613 "   app_epoch: 0\n"
5614 "   app_version: 1.1.5\n"
5615 "   app_release:\n"
5616 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5617 "   app_trans_path:\n"
5618 "   app_publisher: VideoLAN\n"
5619 "   app_url: http://www.videolan.org/\n"
5620 "   app_source_package:\n"
5621 "   app_summary:\n"
5622 "   app_description:\n"
5623 " }\n"
5624 "\n"
5625 msgstr ""
5626
5627 #. type: textblock
5628 #: ../examples/guestfs-recipes.pod:305
5629 msgid ""
5630 "If you want to run the script on disk images (instead of libvirt virtual "
5631 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5632 ">."
5633 msgstr ""
5634
5635 #. type: =head1
5636 #: ../examples/guestfs-recipes.pod:309
5637 msgid "List files and directories in a VM"
5638 msgstr ""
5639
5640 #. type: textblock
5641 #: ../examples/guestfs-recipes.pod:311
5642 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5643 msgstr ""
5644
5645 #. type: verbatim
5646 #: ../examples/guestfs-recipes.pod:313
5647 #, no-wrap
5648 msgid ""
5649 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5650 "\n"
5651 msgstr ""
5652
5653 #. type: =head1
5654 #: ../examples/guestfs-recipes.pod:315
5655 msgid "List services in a Windows VM"
5656 msgstr ""
5657
5658 #. type: textblock
5659 #: ../examples/guestfs-recipes.pod:317
5660 msgid ""
5661 "The link below contains a script that can be used to list out the services "
5662 "from a Windows VM, and whether those services run at boot time or are loaded "
5663 "on demand."
5664 msgstr ""
5665
5666 #. type: textblock
5667 #: ../examples/guestfs-recipes.pod:321
5668 msgid ""
5669 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5670 "#content"
5671 msgstr ""
5672
5673 #. type: =head1
5674 #: ../examples/guestfs-recipes.pod:323
5675 msgid "Make a disk image sparse"
5676 msgstr ""
5677
5678 #. type: textblock
5679 #: ../examples/guestfs-recipes.pod:325
5680 msgid ""
5681 "The link below contains some guides for making a disk image sparse (or "
5682 "reintroducing sparseness)."
5683 msgstr ""
5684
5685 #. type: textblock
5686 #: ../examples/guestfs-recipes.pod:328
5687 msgid ""
5688 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5689 msgstr ""
5690
5691 #. type: =head1
5692 #: ../examples/guestfs-recipes.pod:330
5693 msgid "Monitor disk usage over time"
5694 msgstr ""
5695
5696 #. type: textblock
5697 #: ../examples/guestfs-recipes.pod:332
5698 msgid ""
5699 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5700 "The link below contains a guide."
5701 msgstr ""
5702
5703 #. type: textblock
5704 #: ../examples/guestfs-recipes.pod:335
5705 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5706 msgstr ""
5707
5708 #. type: =head1
5709 #: ../examples/guestfs-recipes.pod:337
5710 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5711 msgstr ""
5712
5713 #. type: textblock
5714 #: ../examples/guestfs-recipes.pod:339
5715 msgid ""
5716 "L<guestfish(1)> plus the tools described in the link below can be used to "
5717 "read out the Windows Event Log from any virtual machine running Windows "
5718 "Vista or a later version."
5719 msgstr ""
5720
5721 #. type: textblock
5722 #: ../examples/guestfs-recipes.pod:343
5723 msgid ""
5724 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5725 "guestfish/#content"
5726 msgstr ""
5727
5728 #. type: =head1
5729 #: ../examples/guestfs-recipes.pod:345
5730 msgid "Remove root password (Linux)"
5731 msgstr ""
5732
5733 #. type: textblock
5734 #: ../examples/guestfs-recipes.pod:347
5735 msgid ""
5736 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5737 "files.  One use is to remove the root password from a Linux guest:"
5738 msgstr ""
5739
5740 #. type: verbatim
5741 #: ../examples/guestfs-recipes.pod:350
5742 #, no-wrap
5743 msgid ""
5744 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5745 "\n"
5746 msgstr ""
5747
5748 #. type: =head1
5749 #: ../examples/guestfs-recipes.pod:352
5750 msgid "Remove Administrator password (Windows)"
5751 msgstr ""
5752
5753 #. type: textblock
5754 #: ../examples/guestfs-recipes.pod:354
5755 msgid ""
5756 "The link below contains one technique for removing the Administrator "
5757 "password from a Windows VM, or to be more precise, it gives you a command "
5758 "prompt the next time you log in which you can use to bypass any security:"
5759 msgstr ""
5760
5761 #. type: textblock
5762 #: ../examples/guestfs-recipes.pod:359
5763 msgid ""
5764 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5765 "administrator-password-with-guestfish/"
5766 msgstr ""
5767
5768 #. type: =head1
5769 #: ../examples/guestfs-recipes.pod:361
5770 msgid "Unpack a live CD"
5771 msgstr ""
5772
5773 #. type: textblock
5774 #: ../examples/guestfs-recipes.pod:363
5775 msgid ""
5776 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5777 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5778 "layers, as outlined in the guide below."
5779 msgstr ""
5780
5781 #. type: textblock
5782 #: ../examples/guestfs-recipes.pod:367
5783 msgid ""
5784 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5785 "cd/#content"
5786 msgstr ""
5787
5788 #. type: =head1
5789 #: ../examples/guestfs-recipes.pod:369
5790 msgid "Uploading and downloading files"
5791 msgstr ""
5792
5793 #. type: textblock
5794 #: ../examples/guestfs-recipes.pod:371
5795 msgid ""
5796 "The link below contains general tips on uploading (copying in)  and "
5797 "downloading (copying out) files from VMs."
5798 msgstr ""
5799
5800 #. type: textblock
5801 #: ../examples/guestfs-recipes.pod:374
5802 msgid ""
5803 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5804 msgstr ""
5805
5806 #. type: =head1
5807 #: ../examples/guestfs-recipes.pod:376
5808 msgid "Use libguestfs tools on VMware ESX guests"
5809 msgstr ""
5810
5811 #. type: textblock
5812 #: ../examples/guestfs-recipes.pod:378
5813 msgid ""
5814 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5815 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5816 msgstr ""
5817
5818 #. type: textblock
5819 #: ../examples/guestfs-recipes.pod:382
5820 msgid ""
5821 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5822 "guests/#content"
5823 msgstr ""
5824
5825 #. type: textblock
5826 #: ../examples/guestfs-recipes.pod:386
5827 msgid ""
5828 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5829 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5830 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5831 msgstr ""
5832
5833 #. type: textblock
5834 #: ../examples/guestfs-recipes.pod:403
5835 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5836 msgstr ""
5837
5838 #. type: =head2
5839 #: ../fish/guestfish-actions.pod:1
5840 msgid "add-cdrom"
5841 msgstr ""
5842
5843 #. type: verbatim
5844 #: ../fish/guestfish-actions.pod:3
5845 #, no-wrap
5846 msgid ""
5847 " add-cdrom filename\n"
5848 "\n"
5849 msgstr ""
5850
5851 #. type: textblock
5852 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5853 msgid "This function adds a virtual CD-ROM disk image to the guest."
5854 msgstr ""
5855
5856 #. type: textblock
5857 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5858 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5859 msgstr ""
5860
5861 #. type: textblock
5862 #: ../fish/guestfish-actions.pod:15
5863 msgid ""
5864 "This call checks for the existence of C<filename>.  This stops you from "
5865 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5866 "and C<http:> URLs.  To specify those, use the general L</config> call "
5867 "instead."
5868 msgstr ""
5869
5870 #. type: textblock
5871 #: ../fish/guestfish-actions.pod:22
5872 msgid ""
5873 "If you just want to add an ISO file (often you use this as an efficient way "
5874 "to transfer large files into the guest), then you should probably use L</add-"
5875 "drive-ro> instead."
5876 msgstr ""
5877
5878 #. type: textblock
5879 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:168
5880 #: ../fish/guestfish-actions.pod:182
5881 msgid ""
5882 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5883 "instead."
5884 msgstr ""
5885
5886 #. type: textblock
5887 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:171
5888 #: ../fish/guestfish-actions.pod:185 ../fish/guestfish-actions.pod:1031
5889 #: ../fish/guestfish-actions.pod:1391 ../fish/guestfish-actions.pod:1405
5890 #: ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3486
5891 #: ../fish/guestfish-actions.pod:3534 ../fish/guestfish-actions.pod:4447
5892 #: ../fish/guestfish-actions.pod:4470 ../fish/guestfish-actions.pod:4492
5893 #: ../fish/guestfish-actions.pod:4530 ../fish/guestfish-actions.pod:5179
5894 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:10
5895 #: ../src/guestfs-actions.pod:258 ../src/guestfs-actions.pod:279
5896 #: ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:2124
5897 #: ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:4790
5898 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5412
5899 #: ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6738
5900 #: ../src/guestfs-actions.pod:6772 ../src/guestfs-actions.pod:6835
5901 #: ../src/guestfs-actions.pod:7767 ../src/guestfs-actions.pod:7876
5902 #: ../src/guestfs-actions.pod:8059
5903 msgid ""
5904 "Deprecated functions will not be removed from the API, but the fact that "
5905 "they are deprecated indicates that there are problems with correct use of "
5906 "these functions."
5907 msgstr ""
5908
5909 #. type: =head2
5910 #: ../fish/guestfish-actions.pod:35
5911 msgid "add-domain"
5912 msgstr "add-domain"
5913
5914 #. type: =head2
5915 #: ../fish/guestfish-actions.pod:37
5916 msgid "domain"
5917 msgstr "домен"
5918
5919 #. type: verbatim
5920 #: ../fish/guestfish-actions.pod:39
5921 #, no-wrap
5922 msgid ""
5923 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
5924 "\n"
5925 msgstr ""
5926
5927 #. type: textblock
5928 #: ../fish/guestfish-actions.pod:41
5929 msgid ""
5930 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5931 "It works by connecting to libvirt, requesting the domain and domain XML from "
5932 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5933 msgstr ""
5934
5935 #. type: textblock
5936 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
5937 msgid ""
5938 "The number of disks added is returned.  This operation is atomic: if an "
5939 "error is returned, then no disks are added."
5940 msgstr ""
5941
5942 #. type: textblock
5943 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
5944 msgid ""
5945 "This function does some minimal checks to make sure the libvirt domain is "
5946 "not running (unless C<readonly> is true).  In a future version we will try "
5947 "to acquire the libvirt lock on each disk."
5948 msgstr ""
5949
5950 #. type: textblock
5951 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
5952 msgid ""
5953 "Disks must be accessible locally.  This often means that adding disks from a "
5954 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5955 "unless those disks are accessible via the same device path locally too."
5956 msgstr ""
5957
5958 #. type: textblock
5959 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
5960 msgid ""
5961 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5962 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5963 "libvirt URI (or one set through an environment variable, see the libvirt "
5964 "documentation for full details)."
5965 msgstr ""
5966
5967 #. type: textblock
5968 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
5969 msgid ""
5970 "The optional C<live> flag controls whether this call will try to connect to "
5971 "a running virtual machine C<guestfsd> process if it sees a suitable "
5972 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5973 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5974 "DAEMONS> for more information."
5975 msgstr ""
5976
5977 #. type: textblock
5978 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
5979 msgid ""
5980 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5981 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5982 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5983 "as usual."
5984 msgstr ""
5985
5986 #. type: textblock
5987 #: ../fish/guestfish-actions.pod:76
5988 msgid ""
5989 "The other optional parameters are passed directly through to L</add-drive-"
5990 "opts>."
5991 msgstr ""
5992
5993 #. type: textblock
5994 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:148
5995 #: ../fish/guestfish-actions.pod:578 ../fish/guestfish-actions.pod:789
5996 #: ../fish/guestfish-actions.pod:810 ../fish/guestfish-actions.pod:2053
5997 #: ../fish/guestfish-actions.pod:3224 ../fish/guestfish-actions.pod:3387
5998 #: ../fish/guestfish-actions.pod:3522
5999 msgid ""
6000 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6001 msgstr ""
6002
6003 #. type: =head2
6004 #: ../fish/guestfish-actions.pod:81
6005 msgid "add-drive"
6006 msgstr "add-drive"
6007
6008 #. type: verbatim
6009 #: ../fish/guestfish-actions.pod:83
6010 #, no-wrap
6011 msgid ""
6012 " add-drive filename\n"
6013 "\n"
6014 msgstr ""
6015 " add-drive назва_файла\n"
6016 "\n"
6017
6018 #. type: textblock
6019 #: ../fish/guestfish-actions.pod:85
6020 msgid ""
6021 "This function is the equivalent of calling L</add-drive-opts> with no "
6022 "optional parameters, so the disk is added writable, with the format being "
6023 "detected automatically."
6024 msgstr ""
6025
6026 #. type: textblock
6027 #: ../fish/guestfish-actions.pod:89
6028 msgid ""
6029 "Automatic detection of the format opens you up to a potential security hole "
6030 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6031 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6032 "you should think about replacing calls to this function with calls to L</add-"
6033 "drive-opts>, and specifying the format."
6034 msgstr ""
6035
6036 #. type: =head2
6037 #: ../fish/guestfish-actions.pod:96
6038 msgid "add-drive-opts"
6039 msgstr "add-drive-opts"
6040
6041 #. type: =head2
6042 #: ../fish/guestfish-actions.pod:98
6043 msgid "add"
6044 msgstr "add"
6045
6046 #. type: verbatim
6047 #: ../fish/guestfish-actions.pod:100
6048 #, no-wrap
6049 msgid ""
6050 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
6051 "\n"
6052 msgstr ""
6053
6054 #. type: textblock
6055 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:161
6056 msgid ""
6057 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6058 "The first time you call this function, the disk appears as C</dev/sda>, the "
6059 "second time as C</dev/sdb>, and so on."
6060 msgstr ""
6061
6062 #. type: textblock
6063 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:166
6064 msgid ""
6065 "You don't necessarily need to be root when using libguestfs.  However you "
6066 "obviously do need sufficient permissions to access the filename for whatever "
6067 "operations you want to perform (ie. read access if you just want to read the "
6068 "image or write access if you want to modify the image)."
6069 msgstr ""
6070
6071 #. type: textblock
6072 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:172
6073 msgid "This call checks that C<filename> exists."
6074 msgstr ""
6075
6076 #. type: textblock
6077 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3186
6078 #: ../src/guestfs-actions.pod:174 ../src/guestfs-actions.pod:4827
6079 msgid "The optional arguments are:"
6080 msgstr ""
6081
6082 #. type: =item
6083 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:178
6084 msgid "C<readonly>"
6085 msgstr "C<readonly>"
6086
6087 #. type: textblock
6088 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:180
6089 msgid ""
6090 "If true then the image is treated as read-only.  Writes are still allowed, "
6091 "but they are stored in a temporary snapshot overlay which is discarded at "
6092 "the end.  The disk that you add is not modified."
6093 msgstr ""
6094
6095 #. type: =item
6096 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:184
6097 msgid "C<format>"
6098 msgstr "C<format>"
6099
6100 #. type: textblock
6101 #: ../fish/guestfish-actions.pod:127
6102 msgid ""
6103 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6104 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6105 "include C<raw> and C<qcow2>."
6106 msgstr ""
6107
6108 #. type: textblock
6109 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:190
6110 msgid ""
6111 "Automatic detection of the format opens you up to a potential security hole "
6112 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6113 "RHBZ#642934.  Specifying the format closes this security hole."
6114 msgstr ""
6115
6116 #. type: =item
6117 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:195
6118 msgid "C<iface>"
6119 msgstr "C<iface>"
6120
6121 #. type: textblock
6122 #: ../fish/guestfish-actions.pod:138
6123 msgid ""
6124 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6125 "add-drive-with-if> call (q.v.)"
6126 msgstr ""
6127
6128 #. type: =item
6129 #: ../fish/guestfish-actions.pod:141 ../src/guestfs-actions.pod:200
6130 #, fuzzy
6131 #| msgid "C<app_name>"
6132 msgid "C<name>"
6133 msgstr "C<app_name>"
6134
6135 #. type: textblock
6136 #: ../fish/guestfish-actions.pod:143 ../src/guestfs-actions.pod:202
6137 msgid ""
6138 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6139 "a hint to the guest inspection process if it is available."
6140 msgstr ""
6141
6142 #. type: =head2
6143 #: ../fish/guestfish-actions.pod:150
6144 msgid "add-drive-ro"
6145 msgstr "add-drive-ro"
6146
6147 #. type: =head2
6148 #: ../fish/guestfish-actions.pod:152
6149 msgid "add-ro"
6150 msgstr "add-ro"
6151
6152 #. type: verbatim
6153 #: ../fish/guestfish-actions.pod:154
6154 #, no-wrap
6155 msgid ""
6156 " add-drive-ro filename\n"
6157 "\n"
6158 msgstr ""
6159
6160 #. type: textblock
6161 #: ../fish/guestfish-actions.pod:156
6162 msgid ""
6163 "This function is the equivalent of calling L</add-drive-opts> with the "
6164 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6165 "is added read-only, with the format being detected automatically."
6166 msgstr ""
6167
6168 #. type: =head2
6169 #: ../fish/guestfish-actions.pod:161
6170 msgid "add-drive-ro-with-if"
6171 msgstr ""
6172
6173 #. type: verbatim
6174 #: ../fish/guestfish-actions.pod:163
6175 #, no-wrap
6176 msgid ""
6177 " add-drive-ro-with-if filename iface\n"
6178 "\n"
6179 msgstr ""
6180
6181 #. type: textblock
6182 #: ../fish/guestfish-actions.pod:165
6183 msgid ""
6184 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6185 "interface emulation to use at run time."
6186 msgstr ""
6187
6188 #. type: =head2
6189 #: ../fish/guestfish-actions.pod:175
6190 msgid "add-drive-with-if"
6191 msgstr ""
6192
6193 #. type: verbatim
6194 #: ../fish/guestfish-actions.pod:177
6195 #, no-wrap
6196 msgid ""
6197 " add-drive-with-if filename iface\n"
6198 "\n"
6199 msgstr ""
6200
6201 #. type: textblock
6202 #: ../fish/guestfish-actions.pod:179
6203 msgid ""
6204 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6205 "interface emulation to use at run time."
6206 msgstr ""
6207
6208 #. type: =head2
6209 #: ../fish/guestfish-actions.pod:189
6210 msgid "aug-clear"
6211 msgstr ""
6212
6213 #. type: verbatim
6214 #: ../fish/guestfish-actions.pod:191
6215 #, no-wrap
6216 msgid ""
6217 " aug-clear augpath\n"
6218 "\n"
6219 msgstr ""
6220
6221 #. type: textblock
6222 #: ../fish/guestfish-actions.pod:193 ../src/guestfs-actions.pod:296
6223 msgid ""
6224 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6225 "L<augtool(1)> C<clear> command."
6226 msgstr ""
6227
6228 #. type: =head2
6229 #: ../fish/guestfish-actions.pod:196
6230 msgid "aug-close"
6231 msgstr ""
6232
6233 #. type: verbatim
6234 #: ../fish/guestfish-actions.pod:198
6235 #, no-wrap
6236 msgid ""
6237 " aug-close\n"
6238 "\n"
6239 msgstr ""
6240
6241 #. type: textblock
6242 #: ../fish/guestfish-actions.pod:200
6243 msgid ""
6244 "Close the current Augeas handle and free up any resources used by it.  After "
6245 "calling this, you have to call L</aug-init> again before you can use any "
6246 "other Augeas functions."
6247 msgstr ""
6248
6249 #. type: =head2
6250 #: ../fish/guestfish-actions.pod:205
6251 msgid "aug-defnode"
6252 msgstr ""
6253
6254 #. type: verbatim
6255 #: ../fish/guestfish-actions.pod:207
6256 #, no-wrap
6257 msgid ""
6258 " aug-defnode name expr val\n"
6259 "\n"
6260 msgstr ""
6261
6262 #. type: textblock
6263 #: ../fish/guestfish-actions.pod:209 ../src/guestfs-actions.pod:325
6264 msgid ""
6265 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6266 msgstr ""
6267
6268 #. type: textblock
6269 #: ../fish/guestfish-actions.pod:212
6270 msgid ""
6271 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6272 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6273 "containing that single node."
6274 msgstr ""
6275
6276 #. type: textblock
6277 #: ../fish/guestfish-actions.pod:216 ../src/guestfs-actions.pod:332
6278 msgid ""
6279 "On success this returns a pair containing the number of nodes in the "
6280 "nodeset, and a boolean flag if a node was created."
6281 msgstr ""
6282
6283 #. type: =head2
6284 #: ../fish/guestfish-actions.pod:220
6285 msgid "aug-defvar"
6286 msgstr ""
6287
6288 #. type: verbatim
6289 #: ../fish/guestfish-actions.pod:222
6290 #, no-wrap
6291 msgid ""
6292 " aug-defvar name expr\n"
6293 "\n"
6294 msgstr ""
6295
6296 #. type: textblock
6297 #: ../fish/guestfish-actions.pod:224 ../src/guestfs-actions.pod:349
6298 msgid ""
6299 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6300 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6301 msgstr ""
6302
6303 #. type: textblock
6304 #: ../fish/guestfish-actions.pod:228 ../src/guestfs-actions.pod:353
6305 msgid ""
6306 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6307 "evaluates to something which is not a nodeset."
6308 msgstr ""
6309
6310 #. type: =head2
6311 #: ../fish/guestfish-actions.pod:231
6312 msgid "aug-get"
6313 msgstr ""
6314
6315 #. type: verbatim
6316 #: ../fish/guestfish-actions.pod:233
6317 #, no-wrap
6318 msgid ""
6319 " aug-get augpath\n"
6320 "\n"
6321 msgstr ""
6322
6323 #. type: textblock
6324 #: ../fish/guestfish-actions.pod:235 ../src/guestfs-actions.pod:366
6325 msgid ""
6326 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6327 "node, the C<value> is returned."
6328 msgstr ""
6329
6330 #. type: =head2
6331 #: ../fish/guestfish-actions.pod:238
6332 msgid "aug-init"
6333 msgstr ""
6334
6335 #. type: verbatim
6336 #: ../fish/guestfish-actions.pod:240
6337 #, no-wrap
6338 msgid ""
6339 " aug-init root flags\n"
6340 "\n"
6341 msgstr ""
6342
6343 #. type: textblock
6344 #: ../fish/guestfish-actions.pod:242 ../src/guestfs-actions.pod:381
6345 msgid ""
6346 "Create a new Augeas handle for editing configuration files.  If there was "
6347 "any previous Augeas handle associated with this guestfs session, then it is "
6348 "closed."
6349 msgstr ""
6350
6351 #. type: textblock
6352 #: ../fish/guestfish-actions.pod:246
6353 msgid "You must call this before using any other L</aug-*> commands."
6354 msgstr ""
6355
6356 #. type: textblock
6357 #: ../fish/guestfish-actions.pod:249 ../src/guestfs-actions.pod:388
6358 msgid ""
6359 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6360 msgstr ""
6361
6362 #. type: textblock
6363 #: ../fish/guestfish-actions.pod:252 ../src/guestfs-actions.pod:391
6364 msgid ""
6365 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6366 "logical I<or> of the following integers:"
6367 msgstr ""
6368
6369 #. type: =item
6370 #: ../fish/guestfish-actions.pod:258 ../src/guestfs-actions.pod:397
6371 msgid "C<AUG_SAVE_BACKUP> = 1"
6372 msgstr "C<AUG_SAVE_BACKUP> = 1"
6373
6374 #. type: textblock
6375 #: ../fish/guestfish-actions.pod:260 ../src/guestfs-actions.pod:399
6376 msgid "Keep the original file with a C<.augsave> extension."
6377 msgstr ""
6378
6379 #. type: =item
6380 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:401
6381 msgid "C<AUG_SAVE_NEWFILE> = 2"
6382 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6383
6384 #. type: textblock
6385 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:403
6386 msgid ""
6387 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6388 "original.  Overrides C<AUG_SAVE_BACKUP>."
6389 msgstr ""
6390
6391 #. type: =item
6392 #: ../fish/guestfish-actions.pod:267 ../src/guestfs-actions.pod:406
6393 msgid "C<AUG_TYPE_CHECK> = 4"
6394 msgstr "C<AUG_TYPE_CHECK> = 4"
6395
6396 #. type: textblock
6397 #: ../fish/guestfish-actions.pod:269 ../src/guestfs-actions.pod:408
6398 msgid "Typecheck lenses."
6399 msgstr ""
6400
6401 #. type: textblock
6402 #: ../fish/guestfish-actions.pod:271
6403 msgid ""
6404 "This option is only useful when debugging Augeas lenses.  Use of this option "
6405 "may require additional memory for the libguestfs appliance.  You may need to "
6406 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6407 msgstr ""
6408
6409 #. type: =item
6410 #: ../fish/guestfish-actions.pod:276 ../src/guestfs-actions.pod:415
6411 msgid "C<AUG_NO_STDINC> = 8"
6412 msgstr "C<AUG_NO_STDINC> = 8"
6413
6414 #. type: textblock
6415 #: ../fish/guestfish-actions.pod:278 ../src/guestfs-actions.pod:417
6416 msgid "Do not use standard load path for modules."
6417 msgstr ""
6418
6419 #. type: =item
6420 #: ../fish/guestfish-actions.pod:280 ../src/guestfs-actions.pod:419
6421 msgid "C<AUG_SAVE_NOOP> = 16"
6422 msgstr "C<AUG_SAVE_NOOP> = 16"
6423
6424 #. type: textblock
6425 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:421
6426 msgid "Make save a no-op, just record what would have been changed."
6427 msgstr ""
6428
6429 #. type: =item
6430 #: ../fish/guestfish-actions.pod:284 ../src/guestfs-actions.pod:423
6431 msgid "C<AUG_NO_LOAD> = 32"
6432 msgstr "C<AUG_NO_LOAD> = 32"
6433
6434 #. type: textblock
6435 #: ../fish/guestfish-actions.pod:286
6436 msgid "Do not load the tree in L</aug-init>."
6437 msgstr ""
6438
6439 #. type: textblock
6440 #: ../fish/guestfish-actions.pod:290
6441 msgid "To close the handle, you can call L</aug-close>."
6442 msgstr ""
6443
6444 #. type: textblock
6445 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:431
6446 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6447 msgstr ""
6448
6449 #. type: =head2
6450 #: ../fish/guestfish-actions.pod:294
6451 msgid "aug-insert"
6452 msgstr ""
6453
6454 #. type: verbatim
6455 #: ../fish/guestfish-actions.pod:296
6456 #, no-wrap
6457 msgid ""
6458 " aug-insert augpath label true|false\n"
6459 "\n"
6460 msgstr ""
6461
6462 #. type: textblock
6463 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:445
6464 msgid ""
6465 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6466 "or after C<path> (depending on the boolean flag C<before>)."
6467 msgstr ""
6468
6469 #. type: textblock
6470 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:449
6471 msgid ""
6472 "C<path> must match exactly one existing node in the tree, and C<label> must "
6473 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6474 msgstr ""
6475
6476 #. type: =head2
6477 #: ../fish/guestfish-actions.pod:306
6478 msgid "aug-load"
6479 msgstr ""
6480
6481 #. type: verbatim
6482 #: ../fish/guestfish-actions.pod:308
6483 #, no-wrap
6484 msgid ""
6485 " aug-load\n"
6486 "\n"
6487 msgstr ""
6488
6489 #. type: textblock
6490 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:462
6491 msgid "Load files into the tree."
6492 msgstr "Завантажити файли до ієрархії."
6493
6494 #. type: textblock
6495 #: ../fish/guestfish-actions.pod:312 ../src/guestfs-actions.pod:464
6496 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6497 msgstr ""
6498
6499 #. type: =head2
6500 #: ../fish/guestfish-actions.pod:315
6501 msgid "aug-ls"
6502 msgstr ""
6503
6504 #. type: verbatim
6505 #: ../fish/guestfish-actions.pod:317
6506 #, no-wrap
6507 msgid ""
6508 " aug-ls augpath\n"
6509 "\n"
6510 msgstr ""
6511
6512 #. type: textblock
6513 #: ../fish/guestfish-actions.pod:319
6514 msgid ""
6515 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6516 "resulting nodes into alphabetical order."
6517 msgstr ""
6518
6519 #. type: =head2
6520 #: ../fish/guestfish-actions.pod:322
6521 msgid "aug-match"
6522 msgstr ""
6523
6524 #. type: verbatim
6525 #: ../fish/guestfish-actions.pod:324
6526 #, no-wrap
6527 msgid ""
6528 " aug-match augpath\n"
6529 "\n"
6530 msgstr ""
6531
6532 #. type: textblock
6533 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:492
6534 msgid ""
6535 "Returns a list of paths which match the path expression C<path>.  The "
6536 "returned paths are sufficiently qualified so that they match exactly one "
6537 "node in the current tree."
6538 msgstr ""
6539
6540 #. type: =head2
6541 #: ../fish/guestfish-actions.pod:330
6542 msgid "aug-mv"
6543 msgstr ""
6544
6545 #. type: verbatim
6546 #: ../fish/guestfish-actions.pod:332
6547 #, no-wrap
6548 msgid ""
6549 " aug-mv src dest\n"
6550 "\n"
6551 msgstr ""
6552
6553 #. type: textblock
6554 #: ../fish/guestfish-actions.pod:334 ../src/guestfs-actions.pod:509
6555 msgid ""
6556 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6557 "C<dest> is overwritten if it exists."
6558 msgstr ""
6559
6560 #. type: =head2
6561 #: ../fish/guestfish-actions.pod:337
6562 msgid "aug-rm"
6563 msgstr ""
6564
6565 #. type: verbatim
6566 #: ../fish/guestfish-actions.pod:339
6567 #, no-wrap
6568 msgid ""
6569 " aug-rm augpath\n"
6570 "\n"
6571 msgstr ""
6572
6573 #. type: textblock
6574 #: ../fish/guestfish-actions.pod:341 ../src/guestfs-actions.pod:522
6575 msgid "Remove C<path> and all of its children."
6576 msgstr ""
6577
6578 #. type: textblock
6579 #: ../fish/guestfish-actions.pod:343 ../src/guestfs-actions.pod:524
6580 msgid "On success this returns the number of entries which were removed."
6581 msgstr ""
6582
6583 #. type: =head2
6584 #: ../fish/guestfish-actions.pod:345
6585 msgid "aug-save"
6586 msgstr ""
6587
6588 #. type: verbatim
6589 #: ../fish/guestfish-actions.pod:347
6590 #, no-wrap
6591 msgid ""
6592 " aug-save\n"
6593 "\n"
6594 msgstr ""
6595
6596 #. type: textblock
6597 #: ../fish/guestfish-actions.pod:349 ../src/guestfs-actions.pod:535
6598 msgid "This writes all pending changes to disk."
6599 msgstr ""
6600
6601 #. type: textblock
6602 #: ../fish/guestfish-actions.pod:351
6603 msgid ""
6604 "The flags which were passed to L</aug-init> affect exactly how files are "
6605 "saved."
6606 msgstr ""
6607
6608 #. type: =head2
6609 #: ../fish/guestfish-actions.pod:354
6610 msgid "aug-set"
6611 msgstr ""
6612
6613 #. type: verbatim
6614 #: ../fish/guestfish-actions.pod:356
6615 #, no-wrap
6616 msgid ""
6617 " aug-set augpath val\n"
6618 "\n"
6619 msgstr ""
6620
6621 #. type: textblock
6622 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:551
6623 msgid "Set the value associated with C<path> to C<val>."
6624 msgstr ""
6625
6626 #. type: textblock
6627 #: ../fish/guestfish-actions.pod:360
6628 msgid ""
6629 "In the Augeas API, it is possible to clear a node by setting the value to "
6630 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6631 "this call.  Instead you must use the L</aug-clear> call."
6632 msgstr ""
6633
6634 #. type: =head2
6635 #: ../fish/guestfish-actions.pod:365
6636 msgid "available"
6637 msgstr ""
6638
6639 #. type: verbatim
6640 #: ../fish/guestfish-actions.pod:367
6641 #, no-wrap
6642 msgid ""
6643 " available 'groups ...'\n"
6644 "\n"
6645 msgstr ""
6646
6647 #. type: textblock
6648 #: ../fish/guestfish-actions.pod:369 ../src/guestfs-actions.pod:568
6649 msgid ""
6650 "This command is used to check the availability of some groups of "
6651 "functionality in the appliance, which not all builds of the libguestfs "
6652 "appliance will be able to provide."
6653 msgstr ""
6654
6655 #. type: textblock
6656 #: ../fish/guestfish-actions.pod:373
6657 msgid ""
6658 "The libguestfs groups, and the functions that those groups correspond to, "
6659 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6660 "runtime by calling L</available-all-groups>."
6661 msgstr ""
6662
6663 #. type: textblock
6664 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:577
6665 msgid ""
6666 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6667 "\"]> would check for the availability of the Linux inotify functions and "
6668 "Augeas (configuration file editing) functions."
6669 msgstr ""
6670
6671 #. type: textblock
6672 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:582
6673 msgid "The command returns no error if I<all> requested groups are available."
6674 msgstr ""
6675
6676 #. type: textblock
6677 #: ../fish/guestfish-actions.pod:385 ../src/guestfs-actions.pod:584
6678 msgid ""
6679 "It fails with an error if one or more of the requested groups is unavailable "
6680 "in the appliance."
6681 msgstr ""
6682
6683 #. type: textblock
6684 #: ../fish/guestfish-actions.pod:388 ../src/guestfs-actions.pod:587
6685 msgid ""
6686 "If an unknown group name is included in the list of groups then an error is "
6687 "always returned."
6688 msgstr ""
6689
6690 #. type: textblock
6691 #: ../fish/guestfish-actions.pod:391 ../src/guestfs-actions.pod:590
6692 msgid "I<Notes:>"
6693 msgstr "I<Нотатки:>"
6694
6695 #. type: textblock
6696 #: ../fish/guestfish-actions.pod:397
6697 msgid "You must call L</launch> before calling this function."
6698 msgstr ""
6699
6700 #. type: textblock
6701 #: ../fish/guestfish-actions.pod:399 ../src/guestfs-actions.pod:598
6702 msgid ""
6703 "The reason is because we don't know what groups are supported by the "
6704 "appliance/daemon until it is running and can be queried."
6705 msgstr ""
6706
6707 #. type: textblock
6708 #: ../fish/guestfish-actions.pod:405 ../src/guestfs-actions.pod:604
6709 msgid ""
6710 "If a group of functions is available, this does not necessarily mean that "
6711 "they will work.  You still have to check for errors when calling individual "
6712 "API functions even if they are available."
6713 msgstr ""
6714
6715 #. type: textblock
6716 #: ../fish/guestfish-actions.pod:412 ../src/guestfs-actions.pod:611
6717 msgid ""
6718 "It is usually the job of distro packagers to build complete functionality "
6719 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6720 "with all requirements satisfied, will support everything."
6721 msgstr ""
6722
6723 #. type: textblock
6724 #: ../fish/guestfish-actions.pod:419
6725 msgid ""
6726 "This call was added in version C<1.0.80>.  In previous versions of "
6727 "libguestfs all you could do would be to speculatively execute a command to "
6728 "find out if the daemon implemented it.  See also L</version>."
6729 msgstr ""
6730
6731 #. type: =head2
6732 #: ../fish/guestfish-actions.pod:426
6733 msgid "available-all-groups"
6734 msgstr ""
6735
6736 #. type: verbatim
6737 #: ../fish/guestfish-actions.pod:428
6738 #, no-wrap
6739 msgid ""
6740 " available-all-groups\n"
6741 "\n"
6742 msgstr ""
6743
6744 #. type: textblock
6745 #: ../fish/guestfish-actions.pod:430
6746 msgid ""
6747 "This command returns a list of all optional groups that this daemon knows "
6748 "about.  Note this returns both supported and unsupported groups.  To find "
6749 "out which ones the daemon can actually support you have to call L</"
6750 "available> on each member of the returned list."
6751 msgstr ""
6752
6753 #. type: textblock
6754 #: ../fish/guestfish-actions.pod:436
6755 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6756 msgstr ""
6757
6758 #. type: =head2
6759 #: ../fish/guestfish-actions.pod:438
6760 msgid "base64-in"
6761 msgstr ""
6762
6763 #. type: verbatim
6764 #: ../fish/guestfish-actions.pod:440
6765 #, no-wrap
6766 msgid ""
6767 " base64-in (base64file|-) filename\n"
6768 "\n"
6769 msgstr ""
6770
6771 #. type: textblock
6772 #: ../fish/guestfish-actions.pod:442 ../src/guestfs-actions.pod:655
6773 msgid ""
6774 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6775 msgstr ""
6776
6777 #. type: textblock
6778 #: ../fish/guestfish-actions.pod:445 ../fish/guestfish-actions.pod:454
6779 #: ../fish/guestfish-actions.pod:703 ../fish/guestfish-actions.pod:787
6780 #: ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:907
6781 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:1300
6782 #: ../fish/guestfish-actions.pod:4750 ../fish/guestfish-actions.pod:4762
6783 #: ../fish/guestfish-actions.pod:4773 ../fish/guestfish-actions.pod:4784
6784 #: ../fish/guestfish-actions.pod:4836 ../fish/guestfish-actions.pod:4845
6785 #: ../fish/guestfish-actions.pod:4899 ../fish/guestfish-actions.pod:4922
6786 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6787 msgstr ""
6788
6789 #. type: =head2
6790 #: ../fish/guestfish-actions.pod:447
6791 msgid "base64-out"
6792 msgstr ""
6793
6794 #. type: verbatim
6795 #: ../fish/guestfish-actions.pod:449
6796 #, no-wrap
6797 msgid ""
6798 " base64-out filename (base64file|-)\n"
6799 "\n"
6800 msgstr ""
6801
6802 #. type: textblock
6803 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:669
6804 msgid ""
6805 "This command downloads the contents of C<filename>, writing it out to local "
6806 "file C<base64file> encoded as base64."
6807 msgstr ""
6808
6809 #. type: =head2
6810 #: ../fish/guestfish-actions.pod:456
6811 msgid "blockdev-flushbufs"
6812 msgstr ""
6813
6814 #. type: verbatim
6815 #: ../fish/guestfish-actions.pod:458
6816 #, no-wrap
6817 msgid ""
6818 " blockdev-flushbufs device\n"
6819 "\n"
6820 msgstr ""
6821
6822 #. type: textblock
6823 #: ../fish/guestfish-actions.pod:460 ../src/guestfs-actions.pod:682
6824 msgid ""
6825 "This tells the kernel to flush internal buffers associated with C<device>."
6826 msgstr ""
6827
6828 #. type: textblock
6829 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:474
6830 #: ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:493
6831 #: ../fish/guestfish-actions.pod:505 ../fish/guestfish-actions.pod:518
6832 #: ../fish/guestfish-actions.pod:526 ../fish/guestfish-actions.pod:537
6833 #: ../fish/guestfish-actions.pod:545 ../fish/guestfish-actions.pod:553
6834 #: ../src/guestfs-actions.pod:685 ../src/guestfs-actions.pod:702
6835 #: ../src/guestfs-actions.pod:717 ../src/guestfs-actions.pod:733
6836 #: ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:770
6837 #: ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802
6838 #: ../src/guestfs-actions.pod:816 ../src/guestfs-actions.pod:830
6839 msgid "This uses the L<blockdev(8)> command."
6840 msgstr ""
6841
6842 #. type: =head2
6843 #: ../fish/guestfish-actions.pod:465
6844 msgid "blockdev-getbsz"
6845 msgstr ""
6846
6847 #. type: verbatim
6848 #: ../fish/guestfish-actions.pod:467
6849 #, no-wrap
6850 msgid ""
6851 " blockdev-getbsz device\n"
6852 "\n"
6853 msgstr ""
6854
6855 #. type: textblock
6856 #: ../fish/guestfish-actions.pod:469 ../src/guestfs-actions.pod:697
6857 msgid "This returns the block size of a device."
6858 msgstr ""
6859
6860 #. type: textblock
6861 #: ../fish/guestfish-actions.pod:471 ../fish/guestfish-actions.pod:534
6862 #: ../src/guestfs-actions.pod:699 ../src/guestfs-actions.pod:799
6863 msgid ""
6864 "(Note this is different from both I<size in blocks> and I<filesystem block "
6865 "size>)."
6866 msgstr ""
6867
6868 #. type: =head2
6869 #: ../fish/guestfish-actions.pod:476
6870 msgid "blockdev-getro"
6871 msgstr ""
6872
6873 #. type: verbatim
6874 #: ../fish/guestfish-actions.pod:478
6875 #, no-wrap
6876 msgid ""
6877 " blockdev-getro device\n"
6878 "\n"
6879 msgstr ""
6880
6881 #. type: textblock
6882 #: ../fish/guestfish-actions.pod:480 ../src/guestfs-actions.pod:714
6883 msgid ""
6884 "Returns a boolean indicating if the block device is read-only (true if read-"
6885 "only, false if not)."
6886 msgstr ""
6887
6888 #. type: =head2
6889 #: ../fish/guestfish-actions.pod:485
6890 msgid "blockdev-getsize64"
6891 msgstr ""
6892
6893 #. type: verbatim
6894 #: ../fish/guestfish-actions.pod:487
6895 #, no-wrap
6896 msgid ""
6897 " blockdev-getsize64 device\n"
6898 "\n"
6899 msgstr ""
6900
6901 #. type: textblock
6902 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:729
6903 msgid "This returns the size of the device in bytes."
6904 msgstr ""
6905
6906 #. type: textblock
6907 #: ../fish/guestfish-actions.pod:491
6908 msgid "See also L</blockdev-getsz>."
6909 msgstr "Див. також L</blockdev-getsz>."
6910
6911 #. type: =head2
6912 #: ../fish/guestfish-actions.pod:495
6913 msgid "blockdev-getss"
6914 msgstr ""
6915
6916 #. type: verbatim
6917 #: ../fish/guestfish-actions.pod:497
6918 #, no-wrap
6919 msgid ""
6920 " blockdev-getss device\n"
6921 "\n"
6922 msgstr ""
6923
6924 #. type: textblock
6925 #: ../fish/guestfish-actions.pod:499 ../src/guestfs-actions.pod:745
6926 msgid ""
6927 "This returns the size of sectors on a block device.  Usually 512, but can be "
6928 "larger for modern devices."
6929 msgstr ""
6930
6931 #. type: textblock
6932 #: ../fish/guestfish-actions.pod:502
6933 msgid ""
6934 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6935 msgstr ""
6936
6937 #. type: =head2
6938 #: ../fish/guestfish-actions.pod:507
6939 msgid "blockdev-getsz"
6940 msgstr ""
6941
6942 #. type: verbatim
6943 #: ../fish/guestfish-actions.pod:509
6944 #, no-wrap
6945 msgid ""
6946 " blockdev-getsz device\n"
6947 "\n"
6948 msgstr ""
6949
6950 #. type: textblock
6951 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:763
6952 msgid ""
6953 "This returns the size of the device in units of 512-byte sectors (even if "
6954 "the sectorsize isn't 512 bytes ... weird)."
6955 msgstr ""
6956
6957 #. type: textblock
6958 #: ../fish/guestfish-actions.pod:514
6959 msgid ""
6960 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6961 "blockdev-getsize64> for the more useful I<size in bytes>."
6962 msgstr ""
6963
6964 #. type: =head2
6965 #: ../fish/guestfish-actions.pod:520
6966 msgid "blockdev-rereadpt"
6967 msgstr ""
6968
6969 #. type: verbatim
6970 #: ../fish/guestfish-actions.pod:522
6971 #, no-wrap
6972 msgid ""
6973 " blockdev-rereadpt device\n"
6974 "\n"
6975 msgstr ""
6976
6977 #. type: textblock
6978 #: ../fish/guestfish-actions.pod:524 ../src/guestfs-actions.pod:782
6979 msgid "Reread the partition table on C<device>."
6980 msgstr ""
6981
6982 #. type: =head2
6983 #: ../fish/guestfish-actions.pod:528
6984 msgid "blockdev-setbsz"
6985 msgstr ""
6986
6987 #. type: verbatim
6988 #: ../fish/guestfish-actions.pod:530
6989 #, no-wrap
6990 msgid ""
6991 " blockdev-setbsz device blocksize\n"
6992 "\n"
6993 msgstr ""
6994
6995 #. type: textblock
6996 #: ../fish/guestfish-actions.pod:532 ../src/guestfs-actions.pod:797
6997 msgid "This sets the block size of a device."
6998 msgstr ""
6999
7000 #. type: =head2
7001 #: ../fish/guestfish-actions.pod:539
7002 msgid "blockdev-setro"
7003 msgstr ""
7004
7005 #. type: verbatim
7006 #: ../fish/guestfish-actions.pod:541
7007 #, no-wrap
7008 msgid ""
7009 " blockdev-setro device\n"
7010 "\n"
7011 msgstr ""
7012
7013 #. type: textblock
7014 #: ../fish/guestfish-actions.pod:543 ../src/guestfs-actions.pod:814
7015 msgid "Sets the block device named C<device> to read-only."
7016 msgstr ""
7017
7018 #. type: =head2
7019 #: ../fish/guestfish-actions.pod:547
7020 msgid "blockdev-setrw"
7021 msgstr ""
7022
7023 #. type: verbatim
7024 #: ../fish/guestfish-actions.pod:549
7025 #, no-wrap
7026 msgid ""
7027 " blockdev-setrw device\n"
7028 "\n"
7029 msgstr ""
7030
7031 #. type: textblock
7032 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:828
7033 msgid "Sets the block device named C<device> to read-write."
7034 msgstr ""
7035
7036 #. type: =head2
7037 #: ../fish/guestfish-actions.pod:555
7038 msgid "btrfs-filesystem-resize"
7039 msgstr ""
7040
7041 #. type: verbatim
7042 #: ../fish/guestfish-actions.pod:557
7043 #, no-wrap
7044 msgid ""
7045 " btrfs-filesystem-resize mountpoint [size:..]\n"
7046 "\n"
7047 msgstr ""
7048
7049 #. type: textblock
7050 #: ../fish/guestfish-actions.pod:559 ../src/guestfs-actions.pod:850
7051 msgid "This command resizes a btrfs filesystem."
7052 msgstr ""
7053
7054 #. type: textblock
7055 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:852
7056 msgid ""
7057 "Note that unlike other resize calls, the filesystem has to be mounted and "
7058 "the parameter is the mountpoint not the device (this is a requirement of "
7059 "btrfs itself)."
7060 msgstr ""
7061
7062 #. type: textblock
7063 #: ../fish/guestfish-actions.pod:565 ../fish/guestfish-actions.pod:3497
7064 #: ../src/guestfs-actions.pod:856 ../src/guestfs-actions.pod:5351
7065 msgid "The optional parameters are:"
7066 msgstr ""
7067
7068 #. type: =item
7069 #: ../fish/guestfish-actions.pod:569 ../fish/guestfish-actions.pod:3501
7070 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5355
7071 msgid "C<size>"
7072 msgstr "C<розмір>"
7073
7074 #. type: textblock
7075 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:862
7076 msgid ""
7077 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7078 "resized to the maximum size."
7079 msgstr ""
7080
7081 #. type: textblock
7082 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:867
7083 msgid "See also L<btrfs(8)>."
7084 msgstr "Див. також L<btrfs(8)>."
7085
7086 #. type: =head2
7087 #: ../fish/guestfish-actions.pod:580
7088 msgid "case-sensitive-path"
7089 msgstr ""
7090
7091 #. type: verbatim
7092 #: ../fish/guestfish-actions.pod:582
7093 #, no-wrap
7094 msgid ""
7095 " case-sensitive-path path\n"
7096 "\n"
7097 msgstr ""
7098
7099 #. type: textblock
7100 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:901
7101 msgid ""
7102 "This can be used to resolve case insensitive paths on a filesystem which is "
7103 "case sensitive.  The use case is to resolve paths which you have read from "
7104 "Windows configuration files or the Windows Registry, to the true path."
7105 msgstr ""
7106
7107 #. type: textblock
7108 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:906
7109 msgid ""
7110 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7111 "(and probably others), which is that although the underlying filesystem is "
7112 "case-insensitive, the driver exports the filesystem to Linux as case-"
7113 "sensitive."
7114 msgstr ""
7115
7116 #. type: textblock
7117 #: ../fish/guestfish-actions.pod:594 ../src/guestfs-actions.pod:911
7118 msgid ""
7119 "One consequence of this is that special directories such as C<c:\\windows> "
7120 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7121 "precise details of how they were created.  In Windows itself this would not "
7122 "be a problem."
7123 msgstr ""
7124
7125 #. type: textblock
7126 #: ../fish/guestfish-actions.pod:600 ../src/guestfs-actions.pod:917
7127 msgid ""
7128 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7129 "#posixfilenames1>"
7130 msgstr ""
7131
7132 #. type: textblock
7133 #: ../fish/guestfish-actions.pod:603 ../src/guestfs-actions.pod:920
7134 msgid ""
7135 "This function resolves the true case of each element in the path and returns "
7136 "the case-sensitive path."
7137 msgstr ""
7138
7139 #. type: textblock
7140 #: ../fish/guestfish-actions.pod:606
7141 msgid ""
7142 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7143 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7144 "the directories were originally created under Windows)."
7145 msgstr ""
7146
7147 #. type: textblock
7148 #: ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:928
7149 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7150 msgstr ""
7151
7152 #. type: textblock
7153 #: ../fish/guestfish-actions.pod:614
7154 msgid "See also L</realpath>."
7155 msgstr "Див. також L</realpath>."
7156
7157 #. type: =head2
7158 #: ../fish/guestfish-actions.pod:616
7159 msgid "cat"
7160 msgstr "cat"
7161
7162 #. type: verbatim
7163 #: ../fish/guestfish-actions.pod:618
7164 #, no-wrap
7165 msgid ""
7166 " cat path\n"
7167 "\n"
7168 msgstr ""
7169 " cat шлях\n"
7170 "\n"
7171
7172 #. type: textblock
7173 #: ../fish/guestfish-actions.pod:620 ../fish/guestfish-actions.pod:3917
7174 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:5994
7175 msgid "Return the contents of the file named C<path>."
7176 msgstr ""
7177
7178 #. type: textblock
7179 #: ../fish/guestfish-actions.pod:622
7180 msgid ""
7181 "Note that this function cannot correctly handle binary files (specifically, "
7182 "files containing C<\\0> character which is treated as end of string).  For "
7183 "those you need to use the L</read-file> or L</download> functions which have "
7184 "a more complex interface."
7185 msgstr ""
7186
7187 #. type: textblock
7188 #: ../fish/guestfish-actions.pod:627 ../fish/guestfish-actions.pod:762
7189 #: ../fish/guestfish-actions.pod:774 ../fish/guestfish-actions.pod:985
7190 #: ../fish/guestfish-actions.pod:995 ../fish/guestfish-actions.pod:1062
7191 #: ../fish/guestfish-actions.pod:1072 ../fish/guestfish-actions.pod:1264
7192 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:1587
7193 #: ../fish/guestfish-actions.pod:1637 ../fish/guestfish-actions.pod:1652
7194 #: ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1681
7195 #: ../fish/guestfish-actions.pod:3787 ../fish/guestfish-actions.pod:3802
7196 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:3895
7197 #: ../fish/guestfish-actions.pod:3910 ../fish/guestfish-actions.pod:4591
7198 #: ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4722
7199 #: ../fish/guestfish-actions.pod:4737 ../fish/guestfish-actions.pod:5143
7200 #: ../fish/guestfish-actions.pod:5155 ../fish/guestfish-actions.pod:5173
7201 #: ../fish/guestfish-actions.pod:5190 ../fish/guestfish-actions.pod:5200
7202 #: ../fish/guestfish-actions.pod:5257 ../fish/guestfish-actions.pod:5267
7203 #: ../fish/guestfish-actions.pod:5296 ../fish/guestfish-actions.pod:5306
7204 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1133
7205 #: ../src/guestfs-actions.pod:1153 ../src/guestfs-actions.pod:1560
7206 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1682
7207 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1947
7208 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2448
7209 #: ../src/guestfs-actions.pod:2513 ../src/guestfs-actions.pod:2537
7210 #: ../src/guestfs-actions.pod:2554 ../src/guestfs-actions.pod:2583
7211 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
7212 #: ../src/guestfs-actions.pod:5933 ../src/guestfs-actions.pod:5959
7213 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6950
7214 #: ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7151
7215 #: ../src/guestfs-actions.pod:7175 ../src/guestfs-actions.pod:7840
7216 #: ../src/guestfs-actions.pod:7860 ../src/guestfs-actions.pod:7893
7217 #: ../src/guestfs-actions.pod:7912 ../src/guestfs-actions.pod:7931
7218 #: ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8044
7219 #: ../src/guestfs-actions.pod:8090 ../src/guestfs-actions.pod:8109
7220 msgid ""
7221 "Because of the message protocol, there is a transfer limit of somewhere "
7222 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7223 msgstr ""
7224
7225 #. type: =head2
7226 #: ../fish/guestfish-actions.pod:630
7227 msgid "checksum"
7228 msgstr "checksum"
7229
7230 #. type: verbatim
7231 #: ../fish/guestfish-actions.pod:632
7232 #, no-wrap
7233 msgid ""
7234 " checksum csumtype path\n"
7235 "\n"
7236 msgstr ""
7237
7238 #. type: textblock
7239 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:966
7240 msgid ""
7241 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7242 msgstr ""
7243
7244 #. type: textblock
7245 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:969
7246 msgid ""
7247 "The type of checksum to compute is given by the C<csumtype> parameter which "
7248 "must have one of the following values:"
7249 msgstr ""
7250
7251 #. type: =item
7252 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:974
7253 msgid "C<crc>"
7254 msgstr "C<crc>"
7255
7256 #. type: textblock
7257 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:976
7258 msgid ""
7259 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7260 "C<cksum> command."
7261 msgstr ""
7262
7263 #. type: =item
7264 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:979
7265 msgid "C<md5>"
7266 msgstr "C<md5>"
7267
7268 #. type: textblock
7269 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:981
7270 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7271 msgstr ""
7272
7273 #. type: =item
7274 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:983
7275 msgid "C<sha1>"
7276 msgstr "C<sha1>"
7277
7278 #. type: textblock
7279 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:985
7280 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7281 msgstr ""
7282
7283 #. type: =item
7284 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:987
7285 msgid "C<sha224>"
7286 msgstr "C<sha224>"
7287
7288 #. type: textblock
7289 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:989
7290 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7291 msgstr ""
7292
7293 #. type: =item
7294 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:991
7295 msgid "C<sha256>"
7296 msgstr "C<sha256>"
7297
7298 #. type: textblock
7299 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:993
7300 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7301 msgstr ""
7302
7303 #. type: =item
7304 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:995
7305 msgid "C<sha384>"
7306 msgstr "C<sha384>"
7307
7308 #. type: textblock
7309 #: ../fish/guestfish-actions.pod:665 ../src/guestfs-actions.pod:997
7310 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7311 msgstr ""
7312
7313 #. type: =item
7314 #: ../fish/guestfish-actions.pod:667 ../src/guestfs-actions.pod:999
7315 msgid "C<sha512>"
7316 msgstr "C<sha512>"
7317
7318 #. type: textblock
7319 #: ../fish/guestfish-actions.pod:669 ../src/guestfs-actions.pod:1001
7320 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7321 msgstr ""
7322
7323 #. type: textblock
7324 #: ../fish/guestfish-actions.pod:673 ../src/guestfs-actions.pod:1005
7325 msgid "The checksum is returned as a printable string."
7326 msgstr ""
7327
7328 #. type: textblock
7329 #: ../fish/guestfish-actions.pod:675
7330 msgid "To get the checksum for a device, use L</checksum-device>."
7331 msgstr ""
7332
7333 #. type: textblock
7334 #: ../fish/guestfish-actions.pod:677
7335 msgid "To get the checksums for many files, use L</checksums-out>."
7336 msgstr ""
7337
7338 #. type: =head2
7339 #: ../fish/guestfish-actions.pod:679
7340 msgid "checksum-device"
7341 msgstr "checksum-device"
7342
7343 #. type: verbatim
7344 #: ../fish/guestfish-actions.pod:681
7345 #, no-wrap
7346 msgid ""
7347 " checksum-device csumtype device\n"
7348 "\n"
7349 msgstr ""
7350
7351 #. type: textblock
7352 #: ../fish/guestfish-actions.pod:683
7353 msgid ""
7354 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7355 "device named C<device>.  For the types of checksums supported see the L</"
7356 "checksum> command."
7357 msgstr ""
7358
7359 #. type: =head2
7360 #: ../fish/guestfish-actions.pod:687
7361 msgid "checksums-out"
7362 msgstr ""
7363
7364 #. type: verbatim
7365 #: ../fish/guestfish-actions.pod:689
7366 #, no-wrap
7367 msgid ""
7368 " checksums-out csumtype directory (sumsfile|-)\n"
7369 "\n"
7370 msgstr ""
7371
7372 #. type: textblock
7373 #: ../fish/guestfish-actions.pod:691 ../src/guestfs-actions.pod:1040
7374 msgid ""
7375 "This command computes the checksums of all regular files in C<directory> and "
7376 "then emits a list of those checksums to the local output file C<sumsfile>."
7377 msgstr ""
7378
7379 #. type: textblock
7380 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1044
7381 msgid ""
7382 "This can be used for verifying the integrity of a virtual machine.  However "
7383 "to be properly secure you should pay attention to the output of the checksum "
7384 "command (it uses the ones from GNU coreutils).  In particular when the "
7385 "filename is not printable, coreutils uses a special backslash syntax.  For "
7386 "more information, see the GNU coreutils info file."
7387 msgstr ""
7388
7389 #. type: =head2
7390 #: ../fish/guestfish-actions.pod:705
7391 msgid "chmod"
7392 msgstr "chmod"
7393
7394 #. type: verbatim
7395 #: ../fish/guestfish-actions.pod:707
7396 #, no-wrap
7397 msgid ""
7398 " chmod mode path\n"
7399 "\n"
7400 msgstr ""
7401
7402 #. type: textblock
7403 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1063
7404 msgid ""
7405 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7406 "supported."
7407 msgstr ""
7408
7409 #. type: textblock
7410 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1066
7411 msgid ""
7412 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7413 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7414 "C<700>."
7415 msgstr ""
7416
7417 #. type: textblock
7418 #: ../fish/guestfish-actions.pod:716 ../fish/guestfish-actions.pod:3150
7419 #: ../fish/guestfish-actions.pod:3289 ../fish/guestfish-actions.pod:3299
7420 #: ../fish/guestfish-actions.pod:3309 ../src/guestfs-actions.pod:1070
7421 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4967
7422 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5005
7423 msgid "The mode actually set is affected by the umask."
7424 msgstr ""
7425
7426 #. type: =head2
7427 #: ../fish/guestfish-actions.pod:718
7428 msgid "chown"
7429 msgstr "chown"
7430
7431 #. type: verbatim
7432 #: ../fish/guestfish-actions.pod:720
7433 #, no-wrap
7434 msgid ""
7435 " chown owner group path\n"
7436 "\n"
7437 msgstr ""
7438
7439 #. type: textblock
7440 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1084
7441 msgid "Change the file owner to C<owner> and group to C<group>."
7442 msgstr ""
7443
7444 #. type: textblock
7445 #: ../fish/guestfish-actions.pod:724 ../fish/guestfish-actions.pod:2585
7446 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:3829
7447 msgid ""
7448 "Only numeric uid and gid are supported.  If you want to use names, you will "
7449 "need to locate and parse the password file yourself (Augeas support makes "
7450 "this relatively easy)."
7451 msgstr ""
7452
7453 #. type: =head2
7454 #: ../fish/guestfish-actions.pod:728
7455 msgid "command"
7456 msgstr "command"
7457
7458 #. type: verbatim
7459 #: ../fish/guestfish-actions.pod:730
7460 #, no-wrap
7461 msgid ""
7462 " command 'arguments ...'\n"
7463 "\n"
7464 msgstr ""
7465 " command 'параметри...'\n"
7466 "\n"
7467
7468 #. type: textblock
7469 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1100
7470 msgid ""
7471 "This call runs a command from the guest filesystem.  The filesystem must be "
7472 "mounted, and must contain a compatible operating system (ie. something "
7473 "Linux, with the same or compatible processor architecture)."
7474 msgstr ""
7475
7476 #. type: textblock
7477 #: ../fish/guestfish-actions.pod:737
7478 msgid ""
7479 "The single parameter is an argv-style list of arguments.  The first element "
7480 "is the name of the program to run.  Subsequent elements are parameters.  The "
7481 "list must be non-empty (ie. must contain a program name).  Note that the "
7482 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7483 msgstr ""
7484
7485 #. type: textblock
7486 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1112
7487 msgid "The return value is anything printed to I<stdout> by the command."
7488 msgstr ""
7489
7490 #. type: textblock
7491 #: ../fish/guestfish-actions.pod:747 ../src/guestfs-actions.pod:1115
7492 msgid ""
7493 "If the command returns a non-zero exit status, then this function returns an "
7494 "error message.  The error message string is the content of I<stderr> from "
7495 "the command."
7496 msgstr ""
7497
7498 #. type: textblock
7499 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1119
7500 msgid ""
7501 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7502 "bin>.  If you require a program from another location, you should provide "
7503 "the full path in the first parameter."
7504 msgstr ""
7505
7506 #. type: textblock
7507 #: ../fish/guestfish-actions.pod:756 ../src/guestfs-actions.pod:1124
7508 msgid ""
7509 "Shared libraries and data files required by the program must be available on "
7510 "filesystems which are mounted in the correct places.  It is the caller's "
7511 "responsibility to ensure all filesystems that are needed are mounted at the "
7512 "right locations."
7513 msgstr ""
7514
7515 #. type: =head2
7516 #: ../fish/guestfish-actions.pod:765
7517 msgid "command-lines"
7518 msgstr ""
7519
7520 #. type: verbatim
7521 #: ../fish/guestfish-actions.pod:767
7522 #, no-wrap
7523 msgid ""
7524 " command-lines 'arguments ...'\n"
7525 "\n"
7526 msgstr ""
7527
7528 #. type: textblock
7529 #: ../fish/guestfish-actions.pod:769
7530 msgid ""
7531 "This is the same as L</command>, but splits the result into a list of lines."
7532 msgstr ""
7533
7534 #. type: textblock
7535 #: ../fish/guestfish-actions.pod:772
7536 msgid "See also: L</sh-lines>"
7537 msgstr "Див. також L</sh-lines>"
7538
7539 #. type: =head2
7540 #: ../fish/guestfish-actions.pod:777
7541 msgid "compress-device-out"
7542 msgstr ""
7543
7544 #. type: verbatim
7545 #: ../fish/guestfish-actions.pod:779
7546 #, no-wrap
7547 msgid ""
7548 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7549 "\n"
7550 msgstr ""
7551
7552 #. type: textblock
7553 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1174
7554 msgid ""
7555 "This command compresses C<device> and writes it out to the local file "
7556 "C<zdevice>."
7557 msgstr ""
7558
7559 #. type: textblock
7560 #: ../fish/guestfish-actions.pod:784
7561 msgid ""
7562 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7563 "compress-out>."
7564 msgstr ""
7565
7566 #. type: =head2
7567 #: ../fish/guestfish-actions.pod:791
7568 msgid "compress-out"
7569 msgstr ""
7570
7571 #. type: verbatim
7572 #: ../fish/guestfish-actions.pod:793
7573 #, no-wrap
7574 msgid ""
7575 " compress-out ctype file (zfile|-) [level:..]\n"
7576 "\n"
7577 msgstr ""
7578
7579 #. type: textblock
7580 #: ../fish/guestfish-actions.pod:795 ../src/guestfs-actions.pod:1226
7581 msgid ""
7582 "This command compresses C<file> and writes it out to the local file C<zfile>."
7583 msgstr ""
7584
7585 #. type: textblock
7586 #: ../fish/guestfish-actions.pod:798 ../src/guestfs-actions.pod:1229
7587 msgid ""
7588 "The compression program used is controlled by the C<ctype> parameter.  "
7589 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7590 "Some compression types may not be supported by particular builds of "
7591 "libguestfs, in which case you will get an error containing the substring "
7592 "\"not supported\"."
7593 msgstr ""
7594
7595 #. type: textblock
7596 #: ../fish/guestfish-actions.pod:804 ../src/guestfs-actions.pod:1235
7597 msgid ""
7598 "The optional C<level> parameter controls compression level.  The meaning and "
7599 "default for this parameter depends on the compression program being used."
7600 msgstr ""
7601
7602 #. type: =head2
7603 #: ../fish/guestfish-actions.pod:812
7604 msgid "config"
7605 msgstr ""
7606
7607 #. type: verbatim
7608 #: ../fish/guestfish-actions.pod:814
7609 #, no-wrap
7610 msgid ""
7611 " config qemuparam qemuvalue\n"
7612 "\n"
7613 msgstr ""
7614
7615 #. type: textblock
7616 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1276
7617 msgid ""
7618 "This can be used to add arbitrary qemu command line parameters of the form "
7619 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7620 "setting some parameters which would interfere with parameters that we use."
7621 msgstr ""
7622
7623 #. type: textblock
7624 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1281
7625 msgid "The first character of C<param> string must be a C<-> (dash)."
7626 msgstr ""
7627
7628 #. type: textblock
7629 #: ../fish/guestfish-actions.pod:823 ../src/guestfs-actions.pod:1283
7630 msgid "C<value> can be NULL."
7631 msgstr ""
7632
7633 #. type: =head2
7634 #: ../fish/guestfish-actions.pod:825
7635 msgid "copy-size"
7636 msgstr ""
7637
7638 #. type: verbatim
7639 #: ../fish/guestfish-actions.pod:827
7640 #, no-wrap
7641 msgid ""
7642 " copy-size src dest size\n"
7643 "\n"
7644 msgstr ""
7645
7646 #. type: textblock
7647 #: ../fish/guestfish-actions.pod:829 ../src/guestfs-actions.pod:1297
7648 msgid ""
7649 "This command copies exactly C<size> bytes from one source device or file "
7650 "C<src> to another destination device or file C<dest>."
7651 msgstr ""
7652
7653 #. type: textblock
7654 #: ../fish/guestfish-actions.pod:832 ../src/guestfs-actions.pod:1300
7655 msgid ""
7656 "Note this will fail if the source is too short or if the destination is not "
7657 "large enough."
7658 msgstr ""
7659
7660 #. type: =head2
7661 #: ../fish/guestfish-actions.pod:835
7662 msgid "cp"
7663 msgstr "cp"
7664
7665 #. type: verbatim
7666 #: ../fish/guestfish-actions.pod:837
7667 #, no-wrap
7668 msgid ""
7669 " cp src dest\n"
7670 "\n"
7671 msgstr ""
7672
7673 #. type: textblock
7674 #: ../fish/guestfish-actions.pod:839 ../src/guestfs-actions.pod:1319
7675 msgid ""
7676 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7677 "destination filename or destination directory."
7678 msgstr ""
7679
7680 #. type: =head2
7681 #: ../fish/guestfish-actions.pod:842
7682 msgid "cp-a"
7683 msgstr "cp-a"
7684
7685 #. type: verbatim
7686 #: ../fish/guestfish-actions.pod:844
7687 #, no-wrap
7688 msgid ""
7689 " cp-a src dest\n"
7690 "\n"
7691 msgstr ""
7692
7693 #. type: textblock
7694 #: ../fish/guestfish-actions.pod:846 ../src/guestfs-actions.pod:1333
7695 msgid ""
7696 "This copies a file or directory from C<src> to C<dest> recursively using the "
7697 "C<cp -a> command."
7698 msgstr ""
7699
7700 #. type: =head2
7701 #: ../fish/guestfish-actions.pod:849
7702 msgid "dd"
7703 msgstr "dd"
7704
7705 #. type: verbatim
7706 #: ../fish/guestfish-actions.pod:851
7707 #, no-wrap
7708 msgid ""
7709 " dd src dest\n"
7710 "\n"
7711 msgstr ""
7712
7713 #. type: textblock
7714 #: ../fish/guestfish-actions.pod:853 ../src/guestfs-actions.pod:1347
7715 msgid ""
7716 "This command copies from one source device or file C<src> to another "
7717 "destination device or file C<dest>.  Normally you would use this to copy to "
7718 "or from a device or partition, for example to duplicate a filesystem."
7719 msgstr ""
7720
7721 #. type: textblock
7722 #: ../fish/guestfish-actions.pod:858
7723 msgid ""
7724 "If the destination is a device, it must be as large or larger than the "
7725 "source file or device, otherwise the copy will fail.  This command cannot do "
7726 "partial copies (see L</copy-size>)."
7727 msgstr ""
7728
7729 #. type: =head2
7730 #: ../fish/guestfish-actions.pod:862
7731 msgid "df"
7732 msgstr "df"
7733
7734 #. type: verbatim
7735 #: ../fish/guestfish-actions.pod:864
7736 #, no-wrap
7737 msgid ""
7738 " df\n"
7739 "\n"
7740 msgstr ""
7741 " df\n"
7742 "\n"
7743
7744 #. type: textblock
7745 #: ../fish/guestfish-actions.pod:866 ../src/guestfs-actions.pod:1365
7746 msgid "This command runs the C<df> command to report disk space used."
7747 msgstr ""
7748
7749 #. type: textblock
7750 #: ../fish/guestfish-actions.pod:868 ../fish/guestfish-actions.pod:879
7751 msgid ""
7752 "This command is mostly useful for interactive sessions.  It is I<not> "
7753 "intended that you try to parse the output string.  Use L</statvfs> from "
7754 "programs."
7755 msgstr ""
7756
7757 #. type: =head2
7758 #: ../fish/guestfish-actions.pod:872
7759 msgid "df-h"
7760 msgstr "df-h"
7761
7762 #. type: verbatim
7763 #: ../fish/guestfish-actions.pod:874
7764 #, no-wrap
7765 msgid ""
7766 " df-h\n"
7767 "\n"
7768 msgstr ""
7769 " df-h\n"
7770 "\n"
7771
7772 #. type: textblock
7773 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1381
7774 msgid ""
7775 "This command runs the C<df -h> command to report disk space used in human-"
7776 "readable format."
7777 msgstr ""
7778
7779 #. type: =head2
7780 #: ../fish/guestfish-actions.pod:883
7781 msgid "dmesg"
7782 msgstr "dmesg"
7783
7784 #. type: verbatim
7785 #: ../fish/guestfish-actions.pod:885
7786 #, no-wrap
7787 msgid ""
7788 " dmesg\n"
7789 "\n"
7790 msgstr ""
7791 " dmesg\n"
7792 "\n"
7793
7794 #. type: textblock
7795 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1398
7796 msgid ""
7797 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7798 "This is sometimes useful for extended debugging of problems."
7799 msgstr ""
7800
7801 #. type: textblock
7802 #: ../fish/guestfish-actions.pod:891
7803 msgid ""
7804 "Another way to get the same information is to enable verbose messages with "
7805 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7806 "before running the program."
7807 msgstr ""
7808
7809 #. type: =head2
7810 #: ../fish/guestfish-actions.pod:896
7811 msgid "download"
7812 msgstr "download"
7813
7814 #. type: verbatim
7815 #: ../fish/guestfish-actions.pod:898
7816 #, no-wrap
7817 msgid ""
7818 " download remotefilename (filename|-)\n"
7819 "\n"
7820 msgstr ""
7821
7822 #. type: textblock
7823 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:913
7824 #: ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1444
7825 msgid ""
7826 "Download file C<remotefilename> and save it as C<filename> on the local "
7827 "machine."
7828 msgstr ""
7829
7830 #. type: textblock
7831 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:4895
7832 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:7410
7833 msgid "C<filename> can also be a named pipe."
7834 msgstr ""
7835
7836 #. type: textblock
7837 #: ../fish/guestfish-actions.pod:905
7838 msgid "See also L</upload>, L</cat>."
7839 msgstr ""
7840
7841 #. type: =head2
7842 #: ../fish/guestfish-actions.pod:909
7843 msgid "download-offset"
7844 msgstr "download-offset"
7845
7846 #. type: verbatim
7847 #: ../fish/guestfish-actions.pod:911
7848 #, no-wrap
7849 msgid ""
7850 " download-offset remotefilename (filename|-) offset size\n"
7851 "\n"
7852 msgstr ""
7853
7854 #. type: textblock
7855 #: ../fish/guestfish-actions.pod:916 ../src/guestfs-actions.pod:1447
7856 msgid ""
7857 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7858 "region must be within the file or device)."
7859 msgstr ""
7860
7861 #. type: textblock
7862 #: ../fish/guestfish-actions.pod:919
7863 msgid ""
7864 "Note that there is no limit on the amount of data that can be downloaded "
7865 "with this call, unlike with L</pread>, and this call always reads the full "
7866 "amount unless an error occurs."
7867 msgstr ""
7868
7869 #. type: textblock
7870 #: ../fish/guestfish-actions.pod:924
7871 msgid "See also L</download>, L</pread>."
7872 msgstr ""
7873
7874 #. type: =head2
7875 #: ../fish/guestfish-actions.pod:928
7876 msgid "drop-caches"
7877 msgstr ""
7878
7879 #. type: verbatim
7880 #: ../fish/guestfish-actions.pod:930
7881 #, no-wrap
7882 msgid ""
7883 " drop-caches whattodrop\n"
7884 "\n"
7885 msgstr ""
7886
7887 #. type: textblock
7888 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1472
7889 msgid ""
7890 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7891 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7892 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7893 msgstr ""
7894
7895 #. type: textblock
7896 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1477
7897 msgid "Setting C<whattodrop> to 3 should drop everything."
7898 msgstr ""
7899
7900 #. type: textblock
7901 #: ../fish/guestfish-actions.pod:939 ../src/guestfs-actions.pod:1479
7902 msgid ""
7903 "This automatically calls L<sync(2)> before the operation, so that the "
7904 "maximum guest memory is freed."
7905 msgstr ""
7906
7907 #. type: =head2
7908 #: ../fish/guestfish-actions.pod:942
7909 msgid "du"
7910 msgstr "du"
7911
7912 #. type: verbatim
7913 #: ../fish/guestfish-actions.pod:944
7914 #, no-wrap
7915 msgid ""
7916 " du path\n"
7917 "\n"
7918 msgstr ""
7919 " du шлях\n"
7920 "\n"
7921
7922 #. type: textblock
7923 #: ../fish/guestfish-actions.pod:946 ../src/guestfs-actions.pod:1492
7924 msgid ""
7925 "This command runs the C<du -s> command to estimate file space usage for "
7926 "C<path>."
7927 msgstr ""
7928
7929 #. type: textblock
7930 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1495
7931 msgid ""
7932 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7933 "estimate includes the contents of the directory and all subdirectories "
7934 "(recursively)."
7935 msgstr ""
7936
7937 #. type: textblock
7938 #: ../fish/guestfish-actions.pod:953 ../src/guestfs-actions.pod:1499
7939 msgid ""
7940 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7941 msgstr ""
7942
7943 #. type: =head2
7944 #: ../fish/guestfish-actions.pod:956
7945 msgid "e2fsck-f"
7946 msgstr "e2fsck-f"
7947
7948 #. type: verbatim
7949 #: ../fish/guestfish-actions.pod:958
7950 #, no-wrap
7951 msgid ""
7952 " e2fsck-f device\n"
7953 "\n"
7954 msgstr ""
7955
7956 #. type: textblock
7957 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1517
7958 msgid ""
7959 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7960 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7961 "clean (I<-f>)."
7962 msgstr ""
7963
7964 #. type: textblock
7965 #: ../fish/guestfish-actions.pod:964
7966 msgid ""
7967 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
7968 "should use L</fsck>."
7969 msgstr ""
7970
7971 #. type: =head2
7972 #: ../fish/guestfish-actions.pod:967
7973 msgid "echo-daemon"
7974 msgstr ""
7975
7976 #. type: verbatim
7977 #: ../fish/guestfish-actions.pod:969
7978 #, no-wrap
7979 msgid ""
7980 " echo-daemon 'words ...'\n"
7981 "\n"
7982 msgstr ""
7983
7984 #. type: textblock
7985 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1534
7986 msgid ""
7987 "This command concatenates the list of C<words> passed with single spaces "
7988 "between them and returns the resulting string."
7989 msgstr ""
7990
7991 #. type: textblock
7992 #: ../fish/guestfish-actions.pod:974 ../src/guestfs-actions.pod:1537
7993 msgid "You can use this command to test the connection through to the daemon."
7994 msgstr ""
7995
7996 #. type: textblock
7997 #: ../fish/guestfish-actions.pod:976
7998 msgid "See also L</ping-daemon>."
7999 msgstr "Див. також L</ping-daemon>."
8000
8001 #. type: =head2
8002 #: ../fish/guestfish-actions.pod:978
8003 msgid "egrep"
8004 msgstr "egrep"
8005
8006 #. type: verbatim
8007 #: ../fish/guestfish-actions.pod:980
8008 #, no-wrap
8009 msgid ""
8010 " egrep regex path\n"
8011 "\n"
8012 msgstr ""
8013
8014 #. type: textblock
8015 #: ../fish/guestfish-actions.pod:982 ../src/guestfs-actions.pod:1553
8016 msgid ""
8017 "This calls the external C<egrep> program and returns the matching lines."
8018 msgstr ""
8019
8020 #. type: =head2
8021 #: ../fish/guestfish-actions.pod:988
8022 msgid "egrepi"
8023 msgstr "egrepi"
8024
8025 #. type: verbatim
8026 #: ../fish/guestfish-actions.pod:990
8027 #, no-wrap
8028 msgid ""
8029 " egrepi regex path\n"
8030 "\n"
8031 msgstr ""
8032
8033 #. type: textblock
8034 #: ../fish/guestfish-actions.pod:992 ../src/guestfs-actions.pod:1572
8035 msgid ""
8036 "This calls the external C<egrep -i> program and returns the matching lines."
8037 msgstr ""
8038
8039 #. type: =head2
8040 #: ../fish/guestfish-actions.pod:998
8041 msgid "equal"
8042 msgstr "equal"
8043
8044 #. type: verbatim
8045 #: ../fish/guestfish-actions.pod:1000
8046 #, no-wrap
8047 msgid ""
8048 " equal file1 file2\n"
8049 "\n"
8050 msgstr ""
8051 " equal файл1 файл2\n"
8052 "\n"
8053
8054 #. type: textblock
8055 #: ../fish/guestfish-actions.pod:1002 ../src/guestfs-actions.pod:1591
8056 msgid ""
8057 "This compares the two files C<file1> and C<file2> and returns true if their "
8058 "content is exactly equal, or false otherwise."
8059 msgstr ""
8060
8061 #. type: textblock
8062 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1594
8063 msgid "The external L<cmp(1)> program is used for the comparison."
8064 msgstr ""
8065
8066 #. type: =head2
8067 #: ../fish/guestfish-actions.pod:1007
8068 msgid "exists"
8069 msgstr "exists"
8070
8071 #. type: verbatim
8072 #: ../fish/guestfish-actions.pod:1009
8073 #, no-wrap
8074 msgid ""
8075 " exists path\n"
8076 "\n"
8077 msgstr ""
8078 " exists шлях\n"
8079 "\n"
8080
8081 #. type: textblock
8082 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1606
8083 msgid ""
8084 "This returns C<true> if and only if there is a file, directory (or anything) "
8085 "with the given C<path> name."
8086 msgstr ""
8087
8088 #. type: textblock
8089 #: ../fish/guestfish-actions.pod:1014
8090 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8091 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8092
8093 #. type: =head2
8094 #: ../fish/guestfish-actions.pod:1016
8095 msgid "fallocate"
8096 msgstr "fallocate"
8097
8098 #. type: verbatim
8099 #: ../fish/guestfish-actions.pod:1018
8100 #, no-wrap
8101 msgid ""
8102 " fallocate path len\n"
8103 "\n"
8104 msgstr ""
8105 " fallocate шлях довжина\n"
8106 "\n"
8107
8108 #. type: textblock
8109 #: ../fish/guestfish-actions.pod:1020 ../fish/guestfish-actions.pod:1039
8110 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1648
8111 msgid ""
8112 "This command preallocates a file (containing zero bytes) named C<path> of "
8113 "size C<len> bytes.  If the file exists already, it is overwritten."
8114 msgstr ""
8115
8116 #. type: textblock
8117 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1633
8118 msgid ""
8119 "Do not confuse this with the guestfish-specific C<alloc> command which "
8120 "allocates a file in the host and attaches it as a device."
8121 msgstr ""
8122
8123 #. type: textblock
8124 #: ../fish/guestfish-actions.pod:1028
8125 msgid ""
8126 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8127 "instead."
8128 msgstr ""
8129
8130 #. type: =head2
8131 #: ../fish/guestfish-actions.pod:1035
8132 msgid "fallocate64"
8133 msgstr "fallocate64"
8134
8135 #. type: verbatim
8136 #: ../fish/guestfish-actions.pod:1037
8137 #, no-wrap
8138 msgid ""
8139 " fallocate64 path len\n"
8140 "\n"
8141 msgstr ""
8142 " fallocate64 шлях довжина\n"
8143 "\n"
8144
8145 #. type: textblock
8146 #: ../fish/guestfish-actions.pod:1043
8147 msgid ""
8148 "Note that this call allocates disk blocks for the file.  To create a sparse "
8149 "file use L</truncate-size> instead."
8150 msgstr ""
8151
8152 #. type: textblock
8153 #: ../fish/guestfish-actions.pod:1046
8154 msgid ""
8155 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8156 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8157 "maximum size of files created through that call to 1GB."
8158 msgstr ""
8159
8160 #. type: textblock
8161 #: ../fish/guestfish-actions.pod:1051 ../src/guestfs-actions.pod:1660
8162 msgid ""
8163 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8164 "commands which create a file in the host and attach it as a device."
8165 msgstr ""
8166
8167 #. type: =head2
8168 #: ../fish/guestfish-actions.pod:1055
8169 msgid "fgrep"
8170 msgstr "fgrep"
8171
8172 #. type: verbatim
8173 #: ../fish/guestfish-actions.pod:1057
8174 #, no-wrap
8175 msgid ""
8176 " fgrep pattern path\n"
8177 "\n"
8178 msgstr ""
8179 " fgrep шаблон шлях\n"
8180 "\n"
8181
8182 #. type: textblock
8183 #: ../fish/guestfish-actions.pod:1059 ../src/guestfs-actions.pod:1675
8184 msgid ""
8185 "This calls the external C<fgrep> program and returns the matching lines."
8186 msgstr ""
8187
8188 #. type: =head2
8189 #: ../fish/guestfish-actions.pod:1065
8190 msgid "fgrepi"
8191 msgstr "fgrepi"
8192
8193 #. type: verbatim
8194 #: ../fish/guestfish-actions.pod:1067
8195 #, no-wrap
8196 msgid ""
8197 " fgrepi pattern path\n"
8198 "\n"
8199 msgstr ""
8200 " fgrepi шаблон шлях\n"
8201 "\n"
8202
8203 #. type: textblock
8204 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1694
8205 msgid ""
8206 "This calls the external C<fgrep -i> program and returns the matching lines."
8207 msgstr ""
8208
8209 #. type: =head2
8210 #: ../fish/guestfish-actions.pod:1075
8211 msgid "file"
8212 msgstr "file"
8213
8214 #. type: verbatim
8215 #: ../fish/guestfish-actions.pod:1077
8216 #, no-wrap
8217 msgid ""
8218 " file path\n"
8219 "\n"
8220 msgstr ""
8221 " file шлях\n"
8222 "\n"
8223
8224 #. type: textblock
8225 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1712
8226 msgid ""
8227 "This call uses the standard L<file(1)> command to determine the type or "
8228 "contents of the file."
8229 msgstr ""
8230
8231 #. type: textblock
8232 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1715
8233 msgid ""
8234 "This call will also transparently look inside various types of compressed "
8235 "file."
8236 msgstr ""
8237
8238 #. type: textblock
8239 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1718
8240 msgid ""
8241 "The exact command which runs is C<file -zb path>.  Note in particular that "
8242 "the filename is not prepended to the output (the I<-b> option)."
8243 msgstr ""
8244
8245 #. type: textblock
8246 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1722
8247 msgid ""
8248 "The output depends on the output of the underlying L<file(1)> command and it "
8249 "can change in future in ways beyond our control.  In other words, the output "
8250 "is not guaranteed by the ABI."
8251 msgstr ""
8252
8253 #. type: textblock
8254 #: ../fish/guestfish-actions.pod:1093
8255 msgid ""
8256 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8257 "(etc), L</is-zero>."
8258 msgstr ""
8259
8260 #. type: =head2
8261 #: ../fish/guestfish-actions.pod:1096
8262 msgid "file-architecture"
8263 msgstr "file-architecture"
8264
8265 #. type: verbatim
8266 #: ../fish/guestfish-actions.pod:1098
8267 #, no-wrap
8268 msgid ""
8269 " file-architecture filename\n"
8270 "\n"
8271 msgstr ""
8272 " file-architecture назва_файла\n"
8273 "\n"
8274
8275 #. type: textblock
8276 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1740
8277 msgid ""
8278 "This detects the architecture of the binary C<filename>, and returns it if "
8279 "known."
8280 msgstr ""
8281
8282 #. type: textblock
8283 #: ../fish/guestfish-actions.pod:1103 ../src/guestfs-actions.pod:1743
8284 msgid "Currently defined architectures are:"
8285 msgstr ""
8286
8287 #. type: =item
8288 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1747
8289 msgid "\"i386\""
8290 msgstr "\"i386\""
8291
8292 #. type: textblock
8293 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1749
8294 msgid ""
8295 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8296 "irrespective of the precise processor requirements of the binary."
8297 msgstr ""
8298
8299 #. type: =item
8300 #: ../fish/guestfish-actions.pod:1112 ../src/guestfs-actions.pod:1752
8301 msgid "\"x86_64\""
8302 msgstr "\"x86_64\""
8303
8304 #. type: textblock
8305 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1754
8306 msgid "64 bit x86-64."
8307 msgstr ""
8308
8309 #. type: =item
8310 #: ../fish/guestfish-actions.pod:1116 ../src/guestfs-actions.pod:1756
8311 msgid "\"sparc\""
8312 msgstr ""
8313
8314 #. type: textblock
8315 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1758
8316 msgid "32 bit SPARC."
8317 msgstr ""
8318
8319 #. type: =item
8320 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1760
8321 msgid "\"sparc64\""
8322 msgstr ""
8323
8324 #. type: textblock
8325 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1762
8326 msgid "64 bit SPARC V9 and above."
8327 msgstr ""
8328
8329 #. type: =item
8330 #: ../fish/guestfish-actions.pod:1124 ../src/guestfs-actions.pod:1764
8331 msgid "\"ia64\""
8332 msgstr "\"ia64\""
8333
8334 #. type: textblock
8335 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1766
8336 msgid "Intel Itanium."
8337 msgstr "Intel Itanium."
8338
8339 #. type: =item
8340 #: ../fish/guestfish-actions.pod:1128 ../src/guestfs-actions.pod:1768
8341 msgid "\"ppc\""
8342 msgstr ""
8343
8344 #. type: textblock
8345 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1770
8346 msgid "32 bit Power PC."
8347 msgstr ""
8348
8349 #. type: =item
8350 #: ../fish/guestfish-actions.pod:1132 ../src/guestfs-actions.pod:1772
8351 msgid "\"ppc64\""
8352 msgstr ""
8353
8354 #. type: textblock
8355 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1774
8356 msgid "64 bit Power PC."
8357 msgstr ""
8358
8359 #. type: textblock
8360 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1778
8361 msgid "Libguestfs may return other architecture strings in future."
8362 msgstr ""
8363
8364 #. type: textblock
8365 #: ../fish/guestfish-actions.pod:1140 ../src/guestfs-actions.pod:1780
8366 msgid "The function works on at least the following types of files:"
8367 msgstr ""
8368
8369 #. type: textblock
8370 #: ../fish/guestfish-actions.pod:1146 ../src/guestfs-actions.pod:1786
8371 msgid "many types of Un*x and Linux binary"
8372 msgstr ""
8373
8374 #. type: textblock
8375 #: ../fish/guestfish-actions.pod:1150 ../src/guestfs-actions.pod:1790
8376 msgid "many types of Un*x and Linux shared library"
8377 msgstr ""
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1794
8381 msgid "Windows Win32 and Win64 binaries"
8382 msgstr ""
8383
8384 #. type: textblock
8385 #: ../fish/guestfish-actions.pod:1158 ../src/guestfs-actions.pod:1798
8386 msgid "Windows Win32 and Win64 DLLs"
8387 msgstr ""
8388
8389 #. type: textblock
8390 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1800
8391 msgid "Win32 binaries and DLLs return C<i386>."
8392 msgstr ""
8393
8394 #. type: textblock
8395 #: ../fish/guestfish-actions.pod:1162 ../src/guestfs-actions.pod:1802
8396 msgid "Win64 binaries and DLLs return C<x86_64>."
8397 msgstr ""
8398
8399 #. type: textblock
8400 #: ../fish/guestfish-actions.pod:1166 ../src/guestfs-actions.pod:1806
8401 msgid "Linux kernel modules"
8402 msgstr ""
8403
8404 #. type: textblock
8405 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1810
8406 msgid "Linux new-style initrd images"
8407 msgstr ""
8408
8409 #. type: textblock
8410 #: ../fish/guestfish-actions.pod:1174 ../src/guestfs-actions.pod:1814
8411 msgid "some non-x86 Linux vmlinuz kernels"
8412 msgstr ""
8413
8414 #. type: textblock
8415 #: ../fish/guestfish-actions.pod:1178 ../src/guestfs-actions.pod:1818
8416 msgid "What it can't do currently:"
8417 msgstr ""
8418
8419 #. type: textblock
8420 #: ../fish/guestfish-actions.pod:1184 ../src/guestfs-actions.pod:1824
8421 msgid "static libraries (libfoo.a)"
8422 msgstr ""
8423
8424 #. type: textblock
8425 #: ../fish/guestfish-actions.pod:1188 ../src/guestfs-actions.pod:1828
8426 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8427 msgstr ""
8428
8429 #. type: textblock
8430 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1832
8431 msgid "x86 Linux vmlinuz kernels"
8432 msgstr ""
8433
8434 #. type: textblock
8435 #: ../fish/guestfish-actions.pod:1194 ../src/guestfs-actions.pod:1834
8436 msgid ""
8437 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8438 "compressed code, and are horribly hard to unpack.  If you want to find the "
8439 "architecture of a kernel, use the architecture of the associated initrd or "
8440 "kernel module(s) instead."
8441 msgstr ""
8442
8443 #. type: =head2
8444 #: ../fish/guestfish-actions.pod:1201
8445 msgid "filesize"
8446 msgstr "filesize"
8447
8448 #. type: verbatim
8449 #: ../fish/guestfish-actions.pod:1203
8450 #, no-wrap
8451 msgid ""
8452 " filesize file\n"
8453 "\n"
8454 msgstr ""
8455 " filesize файл\n"
8456 "\n"
8457
8458 #. type: textblock
8459 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1852
8460 msgid "This command returns the size of C<file> in bytes."
8461 msgstr ""
8462
8463 #. type: textblock
8464 #: ../fish/guestfish-actions.pod:1207
8465 msgid ""
8466 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8467 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8468 msgstr ""
8469
8470 #. type: =head2
8471 #: ../fish/guestfish-actions.pod:1211
8472 msgid "fill"
8473 msgstr "fill"
8474
8475 #. type: verbatim
8476 #: ../fish/guestfish-actions.pod:1213
8477 #, no-wrap
8478 msgid ""
8479 " fill c len path\n"
8480 "\n"
8481 msgstr ""
8482
8483 #. type: textblock
8484 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1870
8485 msgid ""
8486 "This command creates a new file called C<path>.  The initial content of the "
8487 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8488 "[0..255]>."
8489 msgstr ""
8490
8491 #. type: textblock
8492 #: ../fish/guestfish-actions.pod:1219
8493 msgid ""
8494 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8495 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8496 "L</fill-pattern>."
8497 msgstr ""
8498
8499 #. type: =head2
8500 #: ../fish/guestfish-actions.pod:1224
8501 msgid "fill-pattern"
8502 msgstr "fill-pattern"
8503
8504 #. type: verbatim
8505 #: ../fish/guestfish-actions.pod:1226
8506 #, no-wrap
8507 msgid ""
8508 " fill-pattern pattern len path\n"
8509 "\n"
8510 msgstr ""
8511
8512 #. type: textblock
8513 #: ../fish/guestfish-actions.pod:1228
8514 msgid ""
8515 "This function is like L</fill> except that it creates a new file of length "
8516 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8517 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8518 "bytes."
8519 msgstr ""
8520
8521 #. type: =head2
8522 #: ../fish/guestfish-actions.pod:1233
8523 msgid "find"
8524 msgstr "find"
8525
8526 #. type: verbatim
8527 #: ../fish/guestfish-actions.pod:1235
8528 #, no-wrap
8529 msgid ""
8530 " find directory\n"
8531 "\n"
8532 msgstr ""
8533 " find каталог\n"
8534 "\n"
8535
8536 #. type: textblock
8537 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1916
8538 msgid ""
8539 "This command lists out all files and directories, recursively, starting at "
8540 "C<directory>.  It is essentially equivalent to running the shell command "
8541 "C<find directory -print> but some post-processing happens on the output, "
8542 "described below."
8543 msgstr ""
8544
8545 #. type: textblock
8546 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1921
8547 msgid ""
8548 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8549 "structure was:"
8550 msgstr ""
8551
8552 #. type: verbatim
8553 #: ../fish/guestfish-actions.pod:1245 ../src/guestfs-actions.pod:1924
8554 #, no-wrap
8555 msgid ""
8556 " /tmp/a\n"
8557 " /tmp/b\n"
8558 " /tmp/c/d\n"
8559 "\n"
8560 msgstr ""
8561
8562 #. type: textblock
8563 #: ../fish/guestfish-actions.pod:1249
8564 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8565 msgstr ""
8566
8567 #. type: verbatim
8568 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1931
8569 #, no-wrap
8570 msgid ""
8571 " a\n"
8572 " b\n"
8573 " c\n"
8574 " c/d\n"
8575 "\n"
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:1257 ../src/guestfs-actions.pod:1936
8580 msgid "If C<directory> is not a directory, then this command returns an error."
8581 msgstr ""
8582
8583 #. type: textblock
8584 #: ../fish/guestfish-actions.pod:1260 ../src/guestfs-actions.pod:1939
8585 msgid "The returned list is sorted."
8586 msgstr ""
8587
8588 #. type: textblock
8589 #: ../fish/guestfish-actions.pod:1262
8590 msgid "See also L</find0>."
8591 msgstr "Див. також L</find0>."
8592
8593 #. type: =head2
8594 #: ../fish/guestfish-actions.pod:1267
8595 msgid "find0"
8596 msgstr "find0"
8597
8598 #. type: verbatim
8599 #: ../fish/guestfish-actions.pod:1269
8600 #, no-wrap
8601 msgid ""
8602 " find0 directory (files|-)\n"
8603 "\n"
8604 msgstr ""
8605 " find0 каталог (файли|-)\n"
8606 "\n"
8607
8608 #. type: textblock
8609 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1959
8610 msgid ""
8611 "This command lists out all files and directories, recursively, starting at "
8612 "C<directory>, placing the resulting list in the external file called "
8613 "C<files>."
8614 msgstr ""
8615
8616 #. type: textblock
8617 #: ../fish/guestfish-actions.pod:1275
8618 msgid ""
8619 "This command works the same way as L</find> with the following exceptions:"
8620 msgstr ""
8621
8622 #. type: textblock
8623 #: ../fish/guestfish-actions.pod:1282 ../src/guestfs-actions.pod:1970
8624 msgid "The resulting list is written to an external file."
8625 msgstr ""
8626
8627 #. type: textblock
8628 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1974
8629 msgid ""
8630 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8631 "L<find(1)> option I<-print0>."
8632 msgstr ""
8633
8634 #. type: textblock
8635 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1979
8636 msgid "This command is not limited in the number of names that it can return."
8637 msgstr ""
8638
8639 #. type: textblock
8640 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:1984
8641 msgid "The result list is not sorted."
8642 msgstr ""
8643
8644 #. type: =head2
8645 #: ../fish/guestfish-actions.pod:1302
8646 msgid "findfs-label"
8647 msgstr "findfs-label"
8648
8649 #. type: verbatim
8650 #: ../fish/guestfish-actions.pod:1304
8651 #, no-wrap
8652 msgid ""
8653 " findfs-label label\n"
8654 "\n"
8655 msgstr ""
8656 " findfs-label мітка\n"
8657 "\n"
8658
8659 #. type: textblock
8660 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:1998
8661 msgid ""
8662 "This command searches the filesystems and returns the one which has the "
8663 "given label.  An error is returned if no such filesystem can be found."
8664 msgstr ""
8665
8666 #. type: textblock
8667 #: ../fish/guestfish-actions.pod:1310
8668 msgid "To find the label of a filesystem, use L</vfs-label>."
8669 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8670
8671 #. type: =head2
8672 #: ../fish/guestfish-actions.pod:1312
8673 msgid "findfs-uuid"
8674 msgstr "findfs-uuid"
8675
8676 #. type: verbatim
8677 #: ../fish/guestfish-actions.pod:1314
8678 #, no-wrap
8679 msgid ""
8680 " findfs-uuid uuid\n"
8681 "\n"
8682 msgstr ""
8683 " findfs-uuid uuid\n"
8684 "\n"
8685
8686 #. type: textblock
8687 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:2015
8688 msgid ""
8689 "This command searches the filesystems and returns the one which has the "
8690 "given UUID.  An error is returned if no such filesystem can be found."
8691 msgstr ""
8692
8693 #. type: textblock
8694 #: ../fish/guestfish-actions.pod:1320
8695 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8696 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8697
8698 #. type: =head2
8699 #: ../fish/guestfish-actions.pod:1322
8700 msgid "fsck"
8701 msgstr "fsck"
8702
8703 #. type: verbatim
8704 #: ../fish/guestfish-actions.pod:1324
8705 #, no-wrap
8706 msgid ""
8707 " fsck fstype device\n"
8708 "\n"
8709 msgstr ""
8710 " fsck тип_файлової_системи пристрій\n"
8711 "\n"
8712
8713 #. type: textblock
8714 #: ../fish/guestfish-actions.pod:1326 ../src/guestfs-actions.pod:2033
8715 msgid ""
8716 "This runs the filesystem checker (fsck) on C<device> which should have "
8717 "filesystem type C<fstype>."
8718 msgstr ""
8719
8720 #. type: textblock
8721 #: ../fish/guestfish-actions.pod:1329 ../src/guestfs-actions.pod:2036
8722 msgid ""
8723 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8724 "codes from C<fsck>."
8725 msgstr ""
8726
8727 #. type: textblock
8728 #: ../fish/guestfish-actions.pod:1338 ../src/guestfs-actions.pod:2045
8729 msgid "Multiple status codes can be summed together."
8730 msgstr ""
8731
8732 #. type: textblock
8733 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2049
8734 msgid ""
8735 "A non-zero return code can mean \"success\", for example if errors have been "
8736 "corrected on the filesystem."
8737 msgstr ""
8738
8739 #. type: textblock
8740 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2054
8741 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8742 msgstr ""
8743
8744 #. type: textblock
8745 #: ../fish/guestfish-actions.pod:1352 ../src/guestfs-actions.pod:2059
8746 msgid ""
8747 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8748 msgstr ""
8749
8750 #. type: =head2
8751 #: ../fish/guestfish-actions.pod:1354
8752 msgid "get-append"
8753 msgstr "get-append"
8754
8755 #. type: verbatim
8756 #: ../fish/guestfish-actions.pod:1356
8757 #, no-wrap
8758 msgid ""
8759 " get-append\n"
8760 "\n"
8761 msgstr ""
8762 " get-append\n"
8763 "\n"
8764
8765 #. type: textblock
8766 #: ../fish/guestfish-actions.pod:1358 ../src/guestfs-actions.pod:2070
8767 msgid ""
8768 "Return the additional kernel options which are added to the guest kernel "
8769 "command line."
8770 msgstr ""
8771
8772 #. type: textblock
8773 #: ../fish/guestfish-actions.pod:1361 ../src/guestfs-actions.pod:2073
8774 msgid "If C<NULL> then no options are added."
8775 msgstr ""
8776
8777 #. type: =head2
8778 #: ../fish/guestfish-actions.pod:1363
8779 msgid "get-attach-method"
8780 msgstr "get-attach-method"
8781
8782 #. type: verbatim
8783 #: ../fish/guestfish-actions.pod:1365
8784 #, no-wrap
8785 msgid ""
8786 " get-attach-method\n"
8787 "\n"
8788 msgstr ""
8789 " get-attach-method\n"
8790 "\n"
8791
8792 #. type: textblock
8793 #: ../fish/guestfish-actions.pod:1367
8794 msgid "Return the current attach method.  See L</set-attach-method>."
8795 msgstr ""
8796
8797 #. type: =head2
8798 #: ../fish/guestfish-actions.pod:1369
8799 msgid "get-autosync"
8800 msgstr "get-autosync"
8801
8802 #. type: verbatim
8803 #: ../fish/guestfish-actions.pod:1371
8804 #, no-wrap
8805 msgid ""
8806 " get-autosync\n"
8807 "\n"
8808 msgstr ""
8809 " get-autosync\n"
8810 "\n"
8811
8812 #. type: textblock
8813 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2098
8814 msgid "Get the autosync flag."
8815 msgstr ""
8816
8817 #. type: =head2
8818 #: ../fish/guestfish-actions.pod:1375
8819 msgid "get-direct"
8820 msgstr "get-direct"
8821
8822 #. type: verbatim
8823 #: ../fish/guestfish-actions.pod:1377
8824 #, no-wrap
8825 msgid ""
8826 " get-direct\n"
8827 "\n"
8828 msgstr ""
8829 " get-direct\n"
8830 "\n"
8831
8832 #. type: textblock
8833 #: ../fish/guestfish-actions.pod:1379 ../src/guestfs-actions.pod:2109
8834 msgid "Return the direct appliance mode flag."
8835 msgstr ""
8836
8837 #. type: =head2
8838 #: ../fish/guestfish-actions.pod:1381
8839 msgid "get-e2label"
8840 msgstr "get-e2label"
8841
8842 #. type: verbatim
8843 #: ../fish/guestfish-actions.pod:1383
8844 #, no-wrap
8845 msgid ""
8846 " get-e2label device\n"
8847 "\n"
8848 msgstr ""
8849 " get-e2label пристрій\n"
8850 "\n"
8851
8852 #. type: textblock
8853 #: ../fish/guestfish-actions.pod:1385 ../src/guestfs-actions.pod:2128
8854 msgid ""
8855 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8856 msgstr ""
8857
8858 #. type: textblock
8859 #: ../fish/guestfish-actions.pod:1388
8860 msgid ""
8861 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8862 "instead."
8863 msgstr ""
8864
8865 #. type: =head2
8866 #: ../fish/guestfish-actions.pod:1395
8867 msgid "get-e2uuid"
8868 msgstr "get-e2uuid"
8869
8870 #. type: verbatim
8871 #: ../fish/guestfish-actions.pod:1397
8872 #, no-wrap
8873 msgid ""
8874 " get-e2uuid device\n"
8875 "\n"
8876 msgstr ""
8877 " get-e2uuid пристрій\n"
8878 "\n"
8879
8880 #. type: textblock
8881 #: ../fish/guestfish-actions.pod:1399 ../src/guestfs-actions.pod:2149
8882 msgid ""
8883 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8884 msgstr ""
8885
8886 #. type: textblock
8887 #: ../fish/guestfish-actions.pod:1402
8888 msgid ""
8889 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8890 "instead."
8891 msgstr ""
8892
8893 #. type: =head2
8894 #: ../fish/guestfish-actions.pod:1409
8895 msgid "get-memsize"
8896 msgstr "get-memsize"
8897
8898 #. type: verbatim
8899 #: ../fish/guestfish-actions.pod:1411
8900 #, no-wrap
8901 msgid ""
8902 " get-memsize\n"
8903 "\n"
8904 msgstr ""
8905 " get-memsize\n"
8906 "\n"
8907
8908 #. type: textblock
8909 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2162
8910 msgid ""
8911 "This gets the memory size in megabytes allocated to the qemu subprocess."
8912 msgstr ""
8913
8914 #. type: textblock
8915 #: ../fish/guestfish-actions.pod:1416
8916 msgid ""
8917 "If L</set-memsize> was not called on this handle, and if "
8918 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8919 "value for memsize."
8920 msgstr ""
8921
8922 #. type: textblock
8923 #: ../fish/guestfish-actions.pod:1420 ../fish/guestfish-actions.pod:1477
8924 #: ../fish/guestfish-actions.pod:4243 ../fish/guestfish-actions.pod:4345
8925 #: ../src/guestfs-actions.pod:2169 ../src/guestfs-actions.pod:2261
8926 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6581
8927 msgid ""
8928 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8929 msgstr ""
8930
8931 #. type: =head2
8932 #: ../fish/guestfish-actions.pod:1423
8933 msgid "get-network"
8934 msgstr "get-network"
8935
8936 #. type: verbatim
8937 #: ../fish/guestfish-actions.pod:1425
8938 #, no-wrap
8939 msgid ""
8940 " get-network\n"
8941 "\n"
8942 msgstr ""
8943 " get-network\n"
8944 "\n"
8945
8946 #. type: textblock
8947 #: ../fish/guestfish-actions.pod:1427 ../src/guestfs-actions.pod:2181
8948 msgid "This returns the enable network flag."
8949 msgstr ""
8950
8951 #. type: =head2
8952 #: ../fish/guestfish-actions.pod:1429
8953 msgid "get-path"
8954 msgstr "get-path"
8955
8956 #. type: verbatim
8957 #: ../fish/guestfish-actions.pod:1431
8958 #, no-wrap
8959 msgid ""
8960 " get-path\n"
8961 "\n"
8962 msgstr ""
8963 " get-path\n"
8964 "\n"
8965
8966 #. type: textblock
8967 #: ../fish/guestfish-actions.pod:1433 ../src/guestfs-actions.pod:2192
8968 msgid "Return the current search path."
8969 msgstr ""
8970
8971 #. type: textblock
8972 #: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2194
8973 msgid ""
8974 "This is always non-NULL.  If it wasn't set already, then this will return "
8975 "the default path."
8976 msgstr ""
8977
8978 #. type: =head2
8979 #: ../fish/guestfish-actions.pod:1438
8980 msgid "get-pgroup"
8981 msgstr ""
8982
8983 #. type: verbatim
8984 #: ../fish/guestfish-actions.pod:1440
8985 #, no-wrap
8986 msgid ""
8987 " get-pgroup\n"
8988 "\n"
8989 msgstr ""
8990
8991 #. type: textblock
8992 #: ../fish/guestfish-actions.pod:1442 ../src/guestfs-actions.pod:2207
8993 msgid "This returns the process group flag."
8994 msgstr ""
8995
8996 #. type: =head2
8997 #: ../fish/guestfish-actions.pod:1444
8998 msgid "get-pid"
8999 msgstr "get-pid"
9000
9001 #. type: =head2
9002 #: ../fish/guestfish-actions.pod:1446
9003 msgid "pid"
9004 msgstr "PID"
9005
9006 #. type: verbatim
9007 #: ../fish/guestfish-actions.pod:1448
9008 #, no-wrap
9009 msgid ""
9010 " get-pid\n"
9011 "\n"
9012 msgstr ""
9013 " get-pid\n"
9014 "\n"
9015
9016 #. type: textblock
9017 #: ../fish/guestfish-actions.pod:1450 ../src/guestfs-actions.pod:2218
9018 msgid ""
9019 "Return the process ID of the qemu subprocess.  If there is no qemu "
9020 "subprocess, then this will return an error."
9021 msgstr ""
9022
9023 #. type: textblock
9024 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2221
9025 msgid "This is an internal call used for debugging and testing."
9026 msgstr ""
9027
9028 #. type: =head2
9029 #: ../fish/guestfish-actions.pod:1455
9030 msgid "get-qemu"
9031 msgstr "get-qemu"
9032
9033 #. type: verbatim
9034 #: ../fish/guestfish-actions.pod:1457
9035 #, no-wrap
9036 msgid ""
9037 " get-qemu\n"
9038 "\n"
9039 msgstr ""
9040 " get-qemu\n"
9041 "\n"
9042
9043 #. type: textblock
9044 #: ../fish/guestfish-actions.pod:1459 ../src/guestfs-actions.pod:2232
9045 msgid "Return the current qemu binary."
9046 msgstr ""
9047
9048 #. type: textblock
9049 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2234
9050 msgid ""
9051 "This is always non-NULL.  If it wasn't set already, then this will return "
9052 "the default qemu binary name."
9053 msgstr ""
9054
9055 #. type: =head2
9056 #: ../fish/guestfish-actions.pod:1464
9057 msgid "get-recovery-proc"
9058 msgstr "get-recovery-proc"
9059
9060 #. type: verbatim
9061 #: ../fish/guestfish-actions.pod:1466
9062 #, no-wrap
9063 msgid ""
9064 " get-recovery-proc\n"
9065 "\n"
9066 msgstr ""
9067 " get-recovery-proc\n"
9068 "\n"
9069
9070 #. type: textblock
9071 #: ../fish/guestfish-actions.pod:1468 ../src/guestfs-actions.pod:2247
9072 msgid "Return the recovery process enabled flag."
9073 msgstr ""
9074
9075 #. type: =head2
9076 #: ../fish/guestfish-actions.pod:1470
9077 msgid "get-selinux"
9078 msgstr "get-selinux"
9079
9080 #. type: verbatim
9081 #: ../fish/guestfish-actions.pod:1472
9082 #, no-wrap
9083 msgid ""
9084 " get-selinux\n"
9085 "\n"
9086 msgstr ""
9087 " get-selinux\n"
9088 "\n"
9089
9090 #. type: textblock
9091 #: ../fish/guestfish-actions.pod:1474
9092 msgid ""
9093 "This returns the current setting of the selinux flag which is passed to the "
9094 "appliance at boot time.  See L</set-selinux>."
9095 msgstr ""
9096
9097 #. type: =head2
9098 #: ../fish/guestfish-actions.pod:1480
9099 msgid "get-smp"
9100 msgstr ""
9101
9102 #. type: verbatim
9103 #: ../fish/guestfish-actions.pod:1482
9104 #, no-wrap
9105 msgid ""
9106 " get-smp\n"
9107 "\n"
9108 msgstr ""
9109
9110 #. type: textblock
9111 #: ../fish/guestfish-actions.pod:1484 ../src/guestfs-actions.pod:2273
9112 msgid "This returns the number of virtual CPUs assigned to the appliance."
9113 msgstr ""
9114
9115 #. type: =head2
9116 #: ../fish/guestfish-actions.pod:1486
9117 msgid "get-state"
9118 msgstr "get-state"
9119
9120 #. type: verbatim
9121 #: ../fish/guestfish-actions.pod:1488
9122 #, no-wrap
9123 msgid ""
9124 " get-state\n"
9125 "\n"
9126 msgstr ""
9127 " get-state\n"
9128 "\n"
9129
9130 #. type: textblock
9131 #: ../fish/guestfish-actions.pod:1490 ../src/guestfs-actions.pod:2284
9132 msgid ""
9133 "This returns the current state as an opaque integer.  This is only useful "
9134 "for printing debug and internal error messages."
9135 msgstr ""
9136
9137 #. type: textblock
9138 #: ../fish/guestfish-actions.pod:1493 ../fish/guestfish-actions.pod:2452
9139 #: ../fish/guestfish-actions.pod:2470 ../fish/guestfish-actions.pod:2508
9140 #: ../fish/guestfish-actions.pod:2524 ../src/guestfs-actions.pod:2287
9141 #: ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:3635
9142 #: ../src/guestfs-actions.pod:3696 ../src/guestfs-actions.pod:3723
9143 msgid "For more information on states, see L<guestfs(3)>."
9144 msgstr ""
9145
9146 #. type: =head2
9147 #: ../fish/guestfish-actions.pod:1495
9148 msgid "get-trace"
9149 msgstr "get-trace"
9150
9151 #. type: verbatim
9152 #: ../fish/guestfish-actions.pod:1497
9153 #, no-wrap
9154 msgid ""
9155 " get-trace\n"
9156 "\n"
9157 msgstr ""
9158 " get-trace\n"
9159 "\n"
9160
9161 #. type: textblock
9162 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2298
9163 msgid "Return the command trace flag."
9164 msgstr ""
9165
9166 #. type: =head2
9167 #: ../fish/guestfish-actions.pod:1501
9168 msgid "get-umask"
9169 msgstr "get-umask"
9170
9171 #. type: verbatim
9172 #: ../fish/guestfish-actions.pod:1503
9173 #, no-wrap
9174 msgid ""
9175 " get-umask\n"
9176 "\n"
9177 msgstr ""
9178 " get-umask\n"
9179 "\n"
9180
9181 #. type: textblock
9182 #: ../fish/guestfish-actions.pod:1505
9183 msgid ""
9184 "Return the current umask.  By default the umask is C<022> unless it has been "
9185 "set by calling L</umask>."
9186 msgstr ""
9187
9188 #. type: =head2
9189 #: ../fish/guestfish-actions.pod:1508
9190 msgid "get-verbose"
9191 msgstr "get-verbose"
9192
9193 #. type: verbatim
9194 #: ../fish/guestfish-actions.pod:1510
9195 #, no-wrap
9196 msgid ""
9197 " get-verbose\n"
9198 "\n"
9199 msgstr ""
9200 " get-verbose\n"
9201 "\n"
9202
9203 #. type: textblock
9204 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2321
9205 msgid "This returns the verbose messages flag."
9206 msgstr ""
9207
9208 #. type: =head2
9209 #: ../fish/guestfish-actions.pod:1514
9210 msgid "getcon"
9211 msgstr "getcon"
9212
9213 #. type: verbatim
9214 #: ../fish/guestfish-actions.pod:1516
9215 #, no-wrap
9216 msgid ""
9217 " getcon\n"
9218 "\n"
9219 msgstr ""
9220 " getcon\n"
9221 "\n"
9222
9223 #. type: textblock
9224 #: ../fish/guestfish-actions.pod:1518 ../src/guestfs-actions.pod:2332
9225 msgid "This gets the SELinux security context of the daemon."
9226 msgstr ""
9227
9228 #. type: textblock
9229 #: ../fish/guestfish-actions.pod:1520
9230 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9231 msgstr ""
9232
9233 #. type: =head2
9234 #: ../fish/guestfish-actions.pod:1523
9235 msgid "getxattr"
9236 msgstr "getxattr"
9237
9238 #. type: verbatim
9239 #: ../fish/guestfish-actions.pod:1525
9240 #, no-wrap
9241 msgid ""
9242 " getxattr path name\n"
9243 "\n"
9244 msgstr ""
9245 " getxattr шлях назва\n"
9246 "\n"
9247
9248 #. type: textblock
9249 #: ../fish/guestfish-actions.pod:1527
9250 msgid ""
9251 "Get a single extended attribute from file C<path> named C<name>.  This call "
9252 "follows symlinks.  If you want to lookup an extended attribute for the "
9253 "symlink itself, use L</lgetxattr>."
9254 msgstr ""
9255
9256 #. type: textblock
9257 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:2597
9258 msgid ""
9259 "Normally it is better to get all extended attributes from a file in one go "
9260 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9261 "buggy and do not provide a way to list out attributes.  For these "
9262 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9263 "attributes you want in advance and call this function."
9264 msgstr ""
9265
9266 #. type: textblock
9267 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:2604
9268 #: ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:3856
9269 msgid ""
9270 "Extended attribute values are blobs of binary data.  If there is no extended "
9271 "attribute named C<name>, this returns an error."
9272 msgstr ""
9273
9274 #. type: textblock
9275 #: ../fish/guestfish-actions.pod:1541
9276 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9277 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9278
9279 #. type: =head2
9280 #: ../fish/guestfish-actions.pod:1543
9281 msgid "getxattrs"
9282 msgstr "getxattrs"
9283
9284 #. type: verbatim
9285 #: ../fish/guestfish-actions.pod:1545
9286 #, no-wrap
9287 msgid ""
9288 " getxattrs path\n"
9289 "\n"
9290 msgstr ""
9291 " getxattrs шлях\n"
9292 "\n"
9293
9294 #. type: textblock
9295 #: ../fish/guestfish-actions.pod:1547 ../src/guestfs-actions.pod:2378
9296 msgid ""
9297 "This call lists the extended attributes of the file or directory C<path>."
9298 msgstr ""
9299
9300 #. type: textblock
9301 #: ../fish/guestfish-actions.pod:1550 ../src/guestfs-actions.pod:2381
9302 msgid ""
9303 "At the system call level, this is a combination of the L<listxattr(2)> and "
9304 "L<getxattr(2)> calls."
9305 msgstr ""
9306
9307 #. type: textblock
9308 #: ../fish/guestfish-actions.pod:1553
9309 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9310 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9311
9312 #. type: =head2
9313 #: ../fish/guestfish-actions.pod:1555
9314 msgid "glob-expand"
9315 msgstr "glob-expand"
9316
9317 #. type: verbatim
9318 #: ../fish/guestfish-actions.pod:1557
9319 #, no-wrap
9320 msgid ""
9321 " glob-expand pattern\n"
9322 "\n"
9323 msgstr ""
9324 " glob-expand шаблон\n"
9325 "\n"
9326
9327 #. type: textblock
9328 #: ../fish/guestfish-actions.pod:1559 ../src/guestfs-actions.pod:2398
9329 msgid ""
9330 "This command searches for all the pathnames matching C<pattern> according to "
9331 "the wildcard expansion rules used by the shell."
9332 msgstr ""
9333
9334 #. type: textblock
9335 #: ../fish/guestfish-actions.pod:1563 ../src/guestfs-actions.pod:2402
9336 msgid ""
9337 "If no paths match, then this returns an empty list (note: not an error)."
9338 msgstr ""
9339
9340 #. type: textblock
9341 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2405
9342 msgid ""
9343 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9344 "GLOB_BRACE>.  See that manual page for more details."
9345 msgstr ""
9346
9347 #. type: =head2
9348 #: ../fish/guestfish-actions.pod:1570
9349 msgid "grep"
9350 msgstr "grep"
9351
9352 #. type: verbatim
9353 #: ../fish/guestfish-actions.pod:1572
9354 #, no-wrap
9355 msgid ""
9356 " grep regex path\n"
9357 "\n"
9358 msgstr ""
9359 " grepi формальний_вираз шлях\n"
9360 "\n"
9361
9362 #. type: textblock
9363 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2422
9364 msgid "This calls the external C<grep> program and returns the matching lines."
9365 msgstr ""
9366
9367 #. type: =head2
9368 #: ../fish/guestfish-actions.pod:1580
9369 msgid "grepi"
9370 msgstr "grepi"
9371
9372 #. type: verbatim
9373 #: ../fish/guestfish-actions.pod:1582
9374 #, no-wrap
9375 msgid ""
9376 " grepi regex path\n"
9377 "\n"
9378 msgstr ""
9379 " grepi формальний_вираз шлях\n"
9380 "\n"
9381
9382 #. type: textblock
9383 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2441
9384 msgid ""
9385 "This calls the external C<grep -i> program and returns the matching lines."
9386 msgstr ""
9387
9388 #. type: =head2
9389 #: ../fish/guestfish-actions.pod:1590
9390 msgid "grub-install"
9391 msgstr "grub-install"
9392
9393 #. type: verbatim
9394 #: ../fish/guestfish-actions.pod:1592
9395 #, no-wrap
9396 msgid ""
9397 " grub-install root device\n"
9398 "\n"
9399 msgstr ""
9400 " grub-install кореневий пристрій\n"
9401 "\n"
9402
9403 #. type: textblock
9404 #: ../fish/guestfish-actions.pod:1594 ../src/guestfs-actions.pod:2460
9405 msgid ""
9406 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9407 "with the root directory being C<root>."
9408 msgstr ""
9409
9410 #. type: textblock
9411 #: ../fish/guestfish-actions.pod:1603 ../src/guestfs-actions.pod:2469
9412 msgid ""
9413 "There is currently no way in the API to install grub2, which is used by most "
9414 "modern Linux guests.  It is possible to run the grub2 command from the "
9415 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9416 msgstr ""
9417
9418 #. type: textblock
9419 #: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2476
9420 msgid ""
9421 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9422 "compatible with itself, so this only works in rather narrow circumstances.  "
9423 "Careful testing with each guest version is advisable."
9424 msgstr ""
9425
9426 #. type: textblock
9427 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2483
9428 msgid ""
9429 "If grub-install reports the error \"No suitable drive was found in the "
9430 "generated device map.\" it may be that you need to create a C</boot/grub/"
9431 "device.map> file first that contains the mapping between grub device names "
9432 "and Linux device names.  It is usually sufficient to create a file "
9433 "containing:"
9434 msgstr ""
9435
9436 #. type: verbatim
9437 #: ../fish/guestfish-actions.pod:1624 ../src/guestfs-actions.pod:2490
9438 #, no-wrap
9439 msgid ""
9440 " (hd0) /dev/vda\n"
9441 "\n"
9442 msgstr ""
9443
9444 #. type: textblock
9445 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2492
9446 msgid "replacing C</dev/vda> with the name of the installation device."
9447 msgstr ""
9448
9449 #. type: =head2
9450 #: ../fish/guestfish-actions.pod:1630
9451 msgid "head"
9452 msgstr "head"
9453
9454 #. type: verbatim
9455 #: ../fish/guestfish-actions.pod:1632
9456 #, no-wrap
9457 msgid ""
9458 " head path\n"
9459 "\n"
9460 msgstr ""
9461 " head шлях\n"
9462 "\n"
9463
9464 #. type: textblock
9465 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2506
9466 msgid ""
9467 "This command returns up to the first 10 lines of a file as a list of strings."
9468 msgstr ""
9469
9470 #. type: =head2
9471 #: ../fish/guestfish-actions.pod:1640
9472 msgid "head-n"
9473 msgstr "head-n"
9474
9475 #. type: verbatim
9476 #: ../fish/guestfish-actions.pod:1642
9477 #, no-wrap
9478 msgid ""
9479 " head-n nrlines path\n"
9480 "\n"
9481 msgstr ""
9482
9483 #. type: textblock
9484 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2525
9485 msgid ""
9486 "If the parameter C<nrlines> is a positive number, this returns the first "
9487 "C<nrlines> lines of the file C<path>."
9488 msgstr ""
9489
9490 #. type: textblock
9491 #: ../fish/guestfish-actions.pod:1647 ../src/guestfs-actions.pod:2528
9492 msgid ""
9493 "If the parameter C<nrlines> is a negative number, this returns lines from "
9494 "the file C<path>, excluding the last C<nrlines> lines."
9495 msgstr ""
9496
9497 #. type: textblock
9498 #: ../fish/guestfish-actions.pod:1650 ../fish/guestfish-actions.pod:4735
9499 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:7169
9500 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9501 msgstr ""
9502
9503 #. type: =head2
9504 #: ../fish/guestfish-actions.pod:1655
9505 msgid "hexdump"
9506 msgstr "hexdump"
9507
9508 #. type: verbatim
9509 #: ../fish/guestfish-actions.pod:1657
9510 #, no-wrap
9511 msgid ""
9512 " hexdump path\n"
9513 "\n"
9514 msgstr ""
9515 " hexdump шлях\n"
9516 "\n"
9517
9518 #. type: textblock
9519 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2548
9520 msgid ""
9521 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9522 "readable, canonical hex dump of the file."
9523 msgstr ""
9524
9525 #. type: =head2
9526 #: ../fish/guestfish-actions.pod:1665
9527 msgid "initrd-cat"
9528 msgstr "initrd-cat"
9529
9530 #. type: verbatim
9531 #: ../fish/guestfish-actions.pod:1667
9532 #, no-wrap
9533 msgid ""
9534 " initrd-cat initrdpath filename\n"
9535 "\n"
9536 msgstr ""
9537 " initrd-cat шлях_initrd назва_файла\n"
9538 "\n"
9539
9540 #. type: textblock
9541 #: ../fish/guestfish-actions.pod:1669 ../src/guestfs-actions.pod:2567
9542 msgid ""
9543 "This command unpacks the file C<filename> from the initrd file called "
9544 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9545 "character."
9546 msgstr ""
9547
9548 #. type: textblock
9549 #: ../fish/guestfish-actions.pod:1673 ../src/guestfs-actions.pod:2571
9550 msgid ""
9551 "For example, in guestfish you could use the following command to examine the "
9552 "boot script (usually called C</init>)  contained in a Linux initrd or "
9553 "initramfs image:"
9554 msgstr ""
9555
9556 #. type: verbatim
9557 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2575
9558 #, no-wrap
9559 msgid ""
9560 " initrd-cat /boot/initrd-<version>.img init\n"
9561 "\n"
9562 msgstr ""
9563
9564 #. type: textblock
9565 #: ../fish/guestfish-actions.pod:1679
9566 msgid "See also L</initrd-list>."
9567 msgstr "Див. також L</initrd-list>."
9568
9569 #. type: =head2
9570 #: ../fish/guestfish-actions.pod:1684
9571 msgid "initrd-list"
9572 msgstr "initrd-list"
9573
9574 #. type: verbatim
9575 #: ../fish/guestfish-actions.pod:1686
9576 #, no-wrap
9577 msgid ""
9578 " initrd-list path\n"
9579 "\n"
9580 msgstr ""
9581 " initrd-list шлях\n"
9582 "\n"
9583
9584 #. type: textblock
9585 #: ../fish/guestfish-actions.pod:1688 ../src/guestfs-actions.pod:2594
9586 msgid "This command lists out files contained in an initrd."
9587 msgstr ""
9588
9589 #. type: textblock
9590 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2596
9591 msgid ""
9592 "The files are listed without any initial C</> character.  The files are "
9593 "listed in the order they appear (not necessarily alphabetical).  Directory "
9594 "names are listed as separate items."
9595 msgstr ""
9596
9597 #. type: textblock
9598 #: ../fish/guestfish-actions.pod:1694 ../src/guestfs-actions.pod:2600
9599 msgid ""
9600 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9601 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9602 "files)."
9603 msgstr ""
9604
9605 #. type: =head2
9606 #: ../fish/guestfish-actions.pod:1698
9607 msgid "inotify-add-watch"
9608 msgstr "inotify-add-watch"
9609
9610 #. type: verbatim
9611 #: ../fish/guestfish-actions.pod:1700
9612 #, no-wrap
9613 msgid ""
9614 " inotify-add-watch path mask\n"
9615 "\n"
9616 msgstr ""
9617 " inotify-add-watch шлях маска\n"
9618 "\n"
9619
9620 #. type: textblock
9621 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2617
9622 msgid "Watch C<path> for the events listed in C<mask>."
9623 msgstr ""
9624
9625 #. type: textblock
9626 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2619
9627 msgid ""
9628 "Note that if C<path> is a directory then events within that directory are "
9629 "watched, but this does I<not> happen recursively (in subdirectories)."
9630 msgstr ""
9631
9632 #. type: textblock
9633 #: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2623
9634 msgid ""
9635 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9636 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9637 msgstr ""
9638
9639 #. type: =head2
9640 #: ../fish/guestfish-actions.pod:1712
9641 msgid "inotify-close"
9642 msgstr "inotify-close"
9643
9644 #. type: verbatim
9645 #: ../fish/guestfish-actions.pod:1714
9646 #, no-wrap
9647 msgid ""
9648 " inotify-close\n"
9649 "\n"
9650 msgstr ""
9651 " inotify-close\n"
9652 "\n"
9653
9654 #. type: textblock
9655 #: ../fish/guestfish-actions.pod:1716 ../src/guestfs-actions.pod:2636
9656 msgid ""
9657 "This closes the inotify handle which was previously opened by inotify_init.  "
9658 "It removes all watches, throws away any pending events, and deallocates all "
9659 "resources."
9660 msgstr ""
9661
9662 #. type: =head2
9663 #: ../fish/guestfish-actions.pod:1720
9664 msgid "inotify-files"
9665 msgstr "inotify-files"
9666
9667 #. type: verbatim
9668 #: ../fish/guestfish-actions.pod:1722
9669 #, no-wrap
9670 msgid ""
9671 " inotify-files\n"
9672 "\n"
9673 msgstr ""
9674 " inotify-files\n"
9675 "\n"
9676
9677 #. type: textblock
9678 #: ../fish/guestfish-actions.pod:1724
9679 msgid ""
9680 "This function is a helpful wrapper around L</inotify-read> which just "
9681 "returns a list of pathnames of objects that were touched.  The returned "
9682 "pathnames are sorted and deduplicated."
9683 msgstr ""
9684
9685 #. type: =head2
9686 #: ../fish/guestfish-actions.pod:1728
9687 msgid "inotify-init"
9688 msgstr "inotify-init"
9689
9690 #. type: verbatim
9691 #: ../fish/guestfish-actions.pod:1730
9692 #, no-wrap
9693 msgid ""
9694 " inotify-init maxevents\n"
9695 "\n"
9696 msgstr ""
9697
9698 #. type: textblock
9699 #: ../fish/guestfish-actions.pod:1732 ../src/guestfs-actions.pod:2665
9700 msgid ""
9701 "This command creates a new inotify handle.  The inotify subsystem can be "
9702 "used to notify events which happen to objects in the guest filesystem."
9703 msgstr ""
9704
9705 #. type: textblock
9706 #: ../fish/guestfish-actions.pod:1736
9707 msgid ""
9708 "C<maxevents> is the maximum number of events which will be queued up between "
9709 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9710 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9711 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9712 "but records the fact that it threw them away by setting a flag "
9713 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9714 msgstr ""
9715
9716 #. type: textblock
9717 #: ../fish/guestfish-actions.pod:1746
9718 msgid ""
9719 "Before any events are generated, you have to add some watches to the "
9720 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9721 "L</inotify-watch-all>."
9722 msgstr ""
9723
9724 #. type: textblock
9725 #: ../fish/guestfish-actions.pod:1752
9726 msgid ""
9727 "Queued up events should be read periodically by calling L</inotify-read> (or "
9728 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9729 "If you don't read the events out often enough then you risk the internal "
9730 "queue overflowing."
9731 msgstr ""
9732
9733 #. type: textblock
9734 #: ../fish/guestfish-actions.pod:1759
9735 msgid ""
9736 "The handle should be closed after use by calling L</inotify-close>.  This "
9737 "also removes any watches automatically."
9738 msgstr ""
9739
9740 #. type: textblock
9741 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2696
9742 msgid ""
9743 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9744 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9745 "that there is one global inotify handle per libguestfs instance."
9746 msgstr ""
9747
9748 #. type: =head2
9749 #: ../fish/guestfish-actions.pod:1768
9750 msgid "inotify-read"
9751 msgstr "inotify-read"
9752
9753 #. type: verbatim
9754 #: ../fish/guestfish-actions.pod:1770
9755 #, no-wrap
9756 msgid ""
9757 " inotify-read\n"
9758 "\n"
9759 msgstr ""
9760 " inotify-read\n"
9761 "\n"
9762
9763 #. type: textblock
9764 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2710
9765 msgid ""
9766 "Return the complete queue of events that have happened since the previous "
9767 "read call."
9768 msgstr ""
9769
9770 #. type: textblock
9771 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2713
9772 msgid "If no events have happened, this returns an empty list."
9773 msgstr ""
9774
9775 #. type: textblock
9776 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2715
9777 msgid ""
9778 "I<Note>: In order to make sure that all events have been read, you must call "
9779 "this function repeatedly until it returns an empty list.  The reason is that "
9780 "the call will read events up to the maximum appliance-to-host message size "
9781 "and leave remaining events in the queue."
9782 msgstr ""
9783
9784 #. type: =head2
9785 #: ../fish/guestfish-actions.pod:1783
9786 msgid "inotify-rm-watch"
9787 msgstr "inotify-rm-watch"
9788
9789 #. type: verbatim
9790 #: ../fish/guestfish-actions.pod:1785
9791 #, no-wrap
9792 msgid ""
9793 " inotify-rm-watch wd\n"
9794 "\n"
9795 msgstr ""
9796
9797 #. type: textblock
9798 #: ../fish/guestfish-actions.pod:1787
9799 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9800 msgstr ""
9801
9802 #. type: =head2
9803 #: ../fish/guestfish-actions.pod:1790
9804 msgid "inspect-get-arch"
9805 msgstr "inspect-get-arch"
9806
9807 #. type: verbatim
9808 #: ../fish/guestfish-actions.pod:1792
9809 #, no-wrap
9810 msgid ""
9811 " inspect-get-arch root\n"
9812 "\n"
9813 msgstr ""
9814 " inspect-get-arch корінь\n"
9815 "\n"
9816
9817 #. type: textblock
9818 #: ../fish/guestfish-actions.pod:1794
9819 msgid ""
9820 "This returns the architecture of the inspected operating system.  The "
9821 "possible return values are listed under L</file-architecture>."
9822 msgstr ""
9823
9824 #. type: textblock
9825 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2750
9826 msgid ""
9827 "If the architecture could not be determined, then the string C<unknown> is "
9828 "returned."
9829 msgstr ""
9830
9831 #. type: textblock
9832 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1896
9833 #: ../fish/guestfish-actions.pod:1975 ../fish/guestfish-actions.pod:1987
9834 #: ../fish/guestfish-actions.pod:2071 ../fish/guestfish-actions.pod:2133
9835 #: ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2168
9836 #: ../fish/guestfish-actions.pod:2208 ../fish/guestfish-actions.pod:2244
9837 #: ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2270
9838 #: ../fish/guestfish-actions.pod:2280 ../fish/guestfish-actions.pod:2290
9839 #: ../fish/guestfish-actions.pod:2302 ../fish/guestfish-actions.pod:2398
9840 #: ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:2753
9841 #: ../src/guestfs-actions.pod:2855 ../src/guestfs-actions.pod:2959
9842 #: ../src/guestfs-actions.pod:2978 ../src/guestfs-actions.pod:3109
9843 #: ../src/guestfs-actions.pod:3193 ../src/guestfs-actions.pod:3221
9844 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3295
9845 #: ../src/guestfs-actions.pod:3339 ../src/guestfs-actions.pod:3359
9846 #: ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3396
9847 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3430
9848 #: ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3573
9849 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9850 msgstr ""
9851
9852 #. type: =head2
9853 #: ../fish/guestfish-actions.pod:1803
9854 msgid "inspect-get-distro"
9855 msgstr "inspect-get-distro"
9856
9857 #. type: verbatim
9858 #: ../fish/guestfish-actions.pod:1805
9859 #, no-wrap
9860 msgid ""
9861 " inspect-get-distro root\n"
9862 "\n"
9863 msgstr ""
9864 " inspect-get-distro корінь\n"
9865 "\n"
9866
9867 #. type: textblock
9868 #: ../fish/guestfish-actions.pod:1807 ../src/guestfs-actions.pod:2766
9869 msgid ""
9870 "This returns the distro (distribution) of the inspected operating system."
9871 msgstr ""
9872
9873 #. type: textblock
9874 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2769
9875 msgid "Currently defined distros are:"
9876 msgstr ""
9877
9878 #. type: =item
9879 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2773
9880 msgid "\"archlinux\""
9881 msgstr "\"archlinux\""
9882
9883 #. type: textblock
9884 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2775
9885 msgid "Arch Linux."
9886 msgstr "Arch Linux."
9887
9888 #. type: =item
9889 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2777
9890 msgid "\"centos\""
9891 msgstr ""
9892
9893 #. type: textblock
9894 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2779
9895 msgid "CentOS."
9896 msgstr ""
9897
9898 #. type: =item
9899 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2781
9900 msgid "\"debian\""
9901 msgstr "\"debian\""
9902
9903 #. type: textblock
9904 #: ../fish/guestfish-actions.pod:1824 ../src/guestfs-actions.pod:2783
9905 msgid "Debian."
9906 msgstr "Debian."
9907
9908 #. type: =item
9909 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2785
9910 msgid "\"fedora\""
9911 msgstr "\"fedora\""
9912
9913 #. type: textblock
9914 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2787
9915 msgid "Fedora."
9916 msgstr "Fedora."
9917
9918 #. type: =item
9919 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2789
9920 msgid "\"gentoo\""
9921 msgstr "\"gentoo\""
9922
9923 #. type: textblock
9924 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2791
9925 msgid "Gentoo."
9926 msgstr "Gentoo."
9927
9928 #. type: =item
9929 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2793
9930 msgid "\"linuxmint\""
9931 msgstr "\"linuxmint\""
9932
9933 #. type: textblock
9934 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2795
9935 msgid "Linux Mint."
9936 msgstr "Linux Mint."
9937
9938 #. type: =item
9939 #: ../fish/guestfish-actions.pod:1838 ../src/guestfs-actions.pod:2797
9940 msgid "\"mageia\""
9941 msgstr ""
9942
9943 #. type: textblock
9944 #: ../fish/guestfish-actions.pod:1840 ../src/guestfs-actions.pod:2799
9945 msgid "Mageia."
9946 msgstr ""
9947
9948 #. type: =item
9949 #: ../fish/guestfish-actions.pod:1842 ../src/guestfs-actions.pod:2801
9950 msgid "\"mandriva\""
9951 msgstr "\"mandriva\""
9952
9953 #. type: textblock
9954 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2803
9955 msgid "Mandriva."
9956 msgstr "Mandriva."
9957
9958 #. type: =item
9959 #: ../fish/guestfish-actions.pod:1846 ../src/guestfs-actions.pod:2805
9960 msgid "\"meego\""
9961 msgstr "\"meego\""
9962
9963 #. type: textblock
9964 #: ../fish/guestfish-actions.pod:1848 ../src/guestfs-actions.pod:2807
9965 msgid "MeeGo."
9966 msgstr "MeeGo."
9967
9968 #. type: =item
9969 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2809
9970 msgid "\"opensuse\""
9971 msgstr ""
9972
9973 #. type: textblock
9974 #: ../fish/guestfish-actions.pod:1852 ../src/guestfs-actions.pod:2811
9975 msgid "OpenSUSE."
9976 msgstr ""
9977
9978 #. type: =item
9979 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2813
9980 msgid "\"pardus\""
9981 msgstr "\"pardus\""
9982
9983 #. type: textblock
9984 #: ../fish/guestfish-actions.pod:1856 ../src/guestfs-actions.pod:2815
9985 msgid "Pardus."
9986 msgstr "Pardus."
9987
9988 #. type: =item
9989 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2817
9990 msgid "\"redhat-based\""
9991 msgstr "\"redhat-based\""
9992
9993 #. type: textblock
9994 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2819
9995 msgid "Some Red Hat-derived distro."
9996 msgstr "Дистрибутив, що походить від Red Hat."
9997
9998 #. type: =item
9999 #: ../fish/guestfish-actions.pod:1862 ../src/guestfs-actions.pod:2821
10000 msgid "\"rhel\""
10001 msgstr "\"rhel\""
10002
10003 #. type: textblock
10004 #: ../fish/guestfish-actions.pod:1864 ../src/guestfs-actions.pod:2823
10005 msgid "Red Hat Enterprise Linux."
10006 msgstr "Red Hat Enterprise Linux."
10007
10008 #. type: =item
10009 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2825
10010 msgid "\"scientificlinux\""
10011 msgstr "\"scientificlinux\""
10012
10013 #. type: textblock
10014 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2827
10015 msgid "Scientific Linux."
10016 msgstr "Scientific Linux."
10017
10018 #. type: =item
10019 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2829
10020 msgid "\"slackware\""
10021 msgstr "\"slackware\""
10022
10023 #. type: textblock
10024 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2831
10025 msgid "Slackware."
10026 msgstr "Slackware."
10027
10028 #. type: =item
10029 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2833
10030 msgid "\"ttylinux\""
10031 msgstr ""
10032
10033 #. type: textblock
10034 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2835
10035 msgid "ttylinux."
10036 msgstr ""
10037
10038 #. type: =item
10039 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2837
10040 msgid "\"ubuntu\""
10041 msgstr "\"ubuntu\""
10042
10043 #. type: textblock
10044 #: ../fish/guestfish-actions.pod:1880 ../src/guestfs-actions.pod:2839
10045 msgid "Ubuntu."
10046 msgstr "Ubuntu."
10047
10048 #. type: =item
10049 #: ../fish/guestfish-actions.pod:1882 ../fish/guestfish-actions.pod:1966
10050 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:2841
10051 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3330
10052 msgid "\"unknown\""
10053 msgstr "\"unknown\""
10054
10055 #. type: textblock
10056 #: ../fish/guestfish-actions.pod:1884 ../src/guestfs-actions.pod:2843
10057 msgid "The distro could not be determined."
10058 msgstr "Дистрибутив, тип якого не вдалося визначити."
10059
10060 #. type: =item
10061 #: ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:2223
10062 #: ../src/guestfs-actions.pod:2845 ../src/guestfs-actions.pod:3318
10063 msgid "\"windows\""
10064 msgstr "\"windows\""
10065
10066 #. type: textblock
10067 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2847
10068 msgid ""
10069 "Windows does not have distributions.  This string is returned if the OS type "
10070 "is Windows."
10071 msgstr ""
10072
10073 #. type: textblock
10074 #: ../fish/guestfish-actions.pod:1893 ../fish/guestfish-actions.pod:1972
10075 #: ../fish/guestfish-actions.pod:2241 ../src/guestfs-actions.pod:2852
10076 #: ../src/guestfs-actions.pod:2956 ../src/guestfs-actions.pod:3336
10077 msgid ""
10078 "Future versions of libguestfs may return other strings here.  The caller "
10079 "should be prepared to handle any string."
10080 msgstr ""
10081
10082 #. type: =head2
10083 #: ../fish/guestfish-actions.pod:1898
10084 msgid "inspect-get-drive-mappings"
10085 msgstr ""
10086
10087 #. type: verbatim
10088 #: ../fish/guestfish-actions.pod:1900
10089 #, no-wrap
10090 msgid ""
10091 " inspect-get-drive-mappings root\n"
10092 "\n"
10093 msgstr ""
10094
10095 #. type: textblock
10096 #: ../fish/guestfish-actions.pod:1902 ../src/guestfs-actions.pod:2868
10097 msgid ""
10098 "This call is useful for Windows which uses a primitive system of assigning "
10099 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10100 "Windows Registry to find out how disks/partitions are mapped to drive "
10101 "letters, and returns a hash table as in the example below:"
10102 msgstr ""
10103
10104 #. type: verbatim
10105 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2874
10106 #, no-wrap
10107 msgid ""
10108 " C      =>     /dev/vda2\n"
10109 " E      =>     /dev/vdb1\n"
10110 " F      =>     /dev/vdc1\n"
10111 "\n"
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2878
10116 msgid ""
10117 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10118 "and just contains the drive letter, without the customary colon separator "
10119 "character."
10120 msgstr ""
10121
10122 #. type: textblock
10123 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:2882
10124 msgid ""
10125 "In future we may support other operating systems that also used drive "
10126 "letters, but the keys for those might not be case insensitive and might be "
10127 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10128 "C<h1> etc."
10129 msgstr ""
10130
10131 #. type: textblock
10132 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2887
10133 msgid ""
10134 "For Windows guests, currently only hard drive mappings are returned.  "
10135 "Removable disks (eg. DVD-ROMs) are ignored."
10136 msgstr ""
10137
10138 #. type: textblock
10139 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2890
10140 msgid ""
10141 "For guests that do not use drive mappings, or if the drive mappings could "
10142 "not be determined, this returns an empty hash table."
10143 msgstr ""
10144
10145 #. type: textblock
10146 #: ../fish/guestfish-actions.pod:1927
10147 msgid ""
10148 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10149 "get-mountpoints>, L</inspect-get-filesystems>."
10150 msgstr ""
10151
10152 #. type: =head2
10153 #: ../fish/guestfish-actions.pod:1931
10154 msgid "inspect-get-filesystems"
10155 msgstr "inspect-get-filesystems"
10156
10157 #. type: verbatim
10158 #: ../fish/guestfish-actions.pod:1933
10159 #, no-wrap
10160 msgid ""
10161 " inspect-get-filesystems root\n"
10162 "\n"
10163 msgstr ""
10164 " inspect-get-filesystems корінь\n"
10165 "\n"
10166
10167 #. type: textblock
10168 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2911
10169 msgid ""
10170 "This returns a list of all the filesystems that we think are associated with "
10171 "this operating system.  This includes the root filesystem, other ordinary "
10172 "filesystems, and non-mounted devices like swap partitions."
10173 msgstr ""
10174
10175 #. type: textblock
10176 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2916
10177 msgid ""
10178 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10179 "to be shared between operating systems."
10180 msgstr ""
10181
10182 #. type: textblock
10183 #: ../fish/guestfish-actions.pod:1943
10184 msgid ""
10185 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10186 "get-mountpoints>."
10187 msgstr ""
10188
10189 #. type: =head2
10190 #: ../fish/guestfish-actions.pod:1946
10191 msgid "inspect-get-format"
10192 msgstr "inspect-get-format"
10193
10194 #. type: verbatim
10195 #: ../fish/guestfish-actions.pod:1948
10196 #, no-wrap
10197 msgid ""
10198 " inspect-get-format root\n"
10199 "\n"
10200 msgstr ""
10201 " inspect-get-format корінь\n"
10202 "\n"
10203
10204 #. type: textblock
10205 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2934
10206 msgid ""
10207 "This returns the format of the inspected operating system.  You can use it "
10208 "to detect install images, live CDs and similar."
10209 msgstr ""
10210
10211 #. type: textblock
10212 #: ../fish/guestfish-actions.pod:1953 ../src/guestfs-actions.pod:2937
10213 msgid "Currently defined formats are:"
10214 msgstr ""
10215
10216 #. type: =item
10217 #: ../fish/guestfish-actions.pod:1957 ../src/guestfs-actions.pod:2941
10218 msgid "\"installed\""
10219 msgstr "\"installed\""
10220
10221 #. type: textblock
10222 #: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:2943
10223 msgid "This is an installed operating system."
10224 msgstr "Це встановлена операційна система."
10225
10226 #. type: =item
10227 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2945
10228 msgid "\"installer\""
10229 msgstr ""
10230
10231 #. type: textblock
10232 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2947
10233 msgid ""
10234 "The disk image being inspected is not an installed operating system, but a "
10235 "I<bootable> install disk, live CD, or similar."
10236 msgstr ""
10237
10238 #. type: textblock
10239 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
10240 msgid "The format of this disk image is not known."
10241 msgstr ""
10242
10243 #. type: =head2
10244 #: ../fish/guestfish-actions.pod:1977
10245 msgid "inspect-get-hostname"
10246 msgstr "inspect-get-hostname"
10247
10248 #. type: verbatim
10249 #: ../fish/guestfish-actions.pod:1979
10250 #, no-wrap
10251 msgid ""
10252 " inspect-get-hostname root\n"
10253 "\n"
10254 msgstr ""
10255 " inspect-get-hostname корінь\n"
10256 "\n"
10257
10258 #. type: textblock
10259 #: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:2972
10260 msgid ""
10261 "This function returns the hostname of the operating system as found by "
10262 "inspection of the guest's configuration files."
10263 msgstr ""
10264
10265 #. type: textblock
10266 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2975
10267 msgid ""
10268 "If the hostname could not be determined, then the string C<unknown> is "
10269 "returned."
10270 msgstr ""
10271
10272 #. type: =head2
10273 #: ../fish/guestfish-actions.pod:1989
10274 msgid "inspect-get-icon"
10275 msgstr ""
10276
10277 #. type: verbatim
10278 #: ../fish/guestfish-actions.pod:1991
10279 #, no-wrap
10280 msgid ""
10281 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10282 "\n"
10283 msgstr ""
10284
10285 #. type: textblock
10286 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3001
10287 msgid ""
10288 "This function returns an icon corresponding to the inspected operating "
10289 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10290 "to PNG if necessary)."
10291 msgstr ""
10292
10293 #. type: textblock
10294 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3005
10295 msgid ""
10296 "If it was not possible to get an icon this function returns a zero-length "
10297 "(non-NULL) buffer.  I<Callers must check for this case>."
10298 msgstr ""
10299
10300 #. type: textblock
10301 #: ../fish/guestfish-actions.pod:2000 ../src/guestfs-actions.pod:3008
10302 msgid ""
10303 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10304 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10305 "this file will be returned.  You can disable favicons by passing the "
10306 "optional C<favicon> boolean as false (default is true)."
10307 msgstr ""
10308
10309 #. type: textblock
10310 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3014
10311 msgid ""
10312 "If finding the favicon fails, then we look in other places in the guest for "
10313 "a suitable icon."
10314 msgstr ""
10315
10316 #. type: textblock
10317 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3017
10318 msgid ""
10319 "If the optional C<highquality> boolean is true then only high quality icons "
10320 "are returned, which means only icons of high resolution with an alpha "
10321 "channel.  The default (false) is to return any icon we can, even if it is of "
10322 "substandard quality."
10323 msgstr ""
10324
10325 #. type: textblock
10326 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3028
10327 msgid ""
10328 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10329 "before you call this, since it needs to read information from the guest "
10330 "filesystem during the call."
10331 msgstr ""
10332
10333 #. type: textblock
10334 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3034
10335 msgid ""
10336 "B<Security:> The icon data comes from the untrusted guest, and should be "
10337 "treated with caution.  PNG files have been known to contain exploits.  "
10338 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10339 "trying to process or display the icon."
10340 msgstr ""
10341
10342 #. type: textblock
10343 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3042
10344 msgid ""
10345 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10346 "tries to return the largest, highest quality icon available.  The "
10347 "application must scale the icon to the required size."
10348 msgstr ""
10349
10350 #. type: textblock
10351 #: ../fish/guestfish-actions.pod:2041 ../src/guestfs-actions.pod:3049
10352 msgid ""
10353 "Extracting icons from Windows guests requires the external C<wrestool> "
10354 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10355 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10356 "installed separately."
10357 msgstr ""
10358
10359 #. type: textblock
10360 #: ../fish/guestfish-actions.pod:2048 ../src/guestfs-actions.pod:3056
10361 msgid ""
10362 "Operating system icons are usually trademarks.  Seek legal advice before "
10363 "using trademarks in applications."
10364 msgstr ""
10365
10366 #. type: =head2
10367 #: ../fish/guestfish-actions.pod:2055
10368 msgid "inspect-get-major-version"
10369 msgstr "inspect-get-major-version"
10370
10371 #. type: verbatim
10372 #: ../fish/guestfish-actions.pod:2057
10373 #, no-wrap
10374 msgid ""
10375 " inspect-get-major-version root\n"
10376 "\n"
10377 msgstr ""
10378 " inspect-get-major-version корінь\n"
10379 "\n"
10380
10381 #. type: textblock
10382 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3097
10383 msgid ""
10384 "This returns the major version number of the inspected operating system."
10385 msgstr ""
10386
10387 #. type: textblock
10388 #: ../fish/guestfish-actions.pod:2062 ../src/guestfs-actions.pod:3100
10389 msgid ""
10390 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10391 "popular public names used by the operating system.  Notably the operating "
10392 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10393 "1).  You can find out the real versions corresponding to releases of Windows "
10394 "by consulting Wikipedia or MSDN."
10395 msgstr ""
10396
10397 #. type: textblock
10398 #: ../fish/guestfish-actions.pod:2069 ../fish/guestfish-actions.pod:2080
10399 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3124
10400 msgid "If the version could not be determined, then C<0> is returned."
10401 msgstr ""
10402
10403 #. type: =head2
10404 #: ../fish/guestfish-actions.pod:2073
10405 msgid "inspect-get-minor-version"
10406 msgstr "inspect-get-minor-version"
10407
10408 #. type: verbatim
10409 #: ../fish/guestfish-actions.pod:2075
10410 #, no-wrap
10411 msgid ""
10412 " inspect-get-minor-version root\n"
10413 "\n"
10414 msgstr ""
10415 " inspect-get-minor-version корінь\n"
10416 "\n"
10417
10418 #. type: textblock
10419 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3121
10420 msgid ""
10421 "This returns the minor version number of the inspected operating system."
10422 msgstr ""
10423
10424 #. type: textblock
10425 #: ../fish/guestfish-actions.pod:2082
10426 msgid ""
10427 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10428 "get-major-version>."
10429 msgstr ""
10430
10431 #. type: =head2
10432 #: ../fish/guestfish-actions.pod:2085
10433 msgid "inspect-get-mountpoints"
10434 msgstr "inspect-get-mountpoints"
10435
10436 #. type: verbatim
10437 #: ../fish/guestfish-actions.pod:2087
10438 #, no-wrap
10439 msgid ""
10440 " inspect-get-mountpoints root\n"
10441 "\n"
10442 msgstr ""
10443 " inspect-get-mountpoints корінь\n"
10444 "\n"
10445
10446 #. type: textblock
10447 #: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3139
10448 msgid ""
10449 "This returns a hash of where we think the filesystems associated with this "
10450 "operating system should be mounted.  Callers should note that this is at "
10451 "best an educated guess made by reading configuration files such as C</etc/"
10452 "fstab>.  I<In particular note> that this may return filesystems which are "
10453 "non-existent or not mountable and callers should be prepared to handle or "
10454 "ignore failures if they try to mount them."
10455 msgstr ""
10456
10457 #. type: textblock
10458 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3148
10459 msgid ""
10460 "Each element in the returned hashtable has a key which is the path of the "
10461 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10462 "mounted there (eg. C</dev/sda1>)."
10463 msgstr ""
10464
10465 #. type: textblock
10466 #: ../fish/guestfish-actions.pod:2103 ../src/guestfs-actions.pod:3153
10467 msgid ""
10468 "Non-mounted devices such as swap devices are I<not> returned in this list."
10469 msgstr ""
10470
10471 #. type: textblock
10472 #: ../fish/guestfish-actions.pod:2106
10473 msgid ""
10474 "For operating systems like Windows which still use drive letters, this call "
10475 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10476 "information about the mapping of drive letters to partitions, see L</inspect-"
10477 "get-drive-mappings>."
10478 msgstr ""
10479
10480 #. type: textblock
10481 #: ../fish/guestfish-actions.pod:2112
10482 msgid ""
10483 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10484 "get-filesystems>."
10485 msgstr ""
10486
10487 #. type: =head2
10488 #: ../fish/guestfish-actions.pod:2115
10489 msgid "inspect-get-package-format"
10490 msgstr "inspect-get-package-format"
10491
10492 #. type: verbatim
10493 #: ../fish/guestfish-actions.pod:2117
10494 #, no-wrap
10495 msgid ""
10496 " inspect-get-package-format root\n"
10497 "\n"
10498 msgstr ""
10499 " inspect-get-package-format корінь\n"
10500 "\n"
10501
10502 #. type: textblock
10503 #: ../fish/guestfish-actions.pod:2119
10504 msgid ""
10505 "This function and L</inspect-get-package-management> return the package "
10506 "format and package management tool used by the inspected operating system.  "
10507 "For example for Fedora these functions would return C<rpm> (package format) "
10508 "and C<yum> (package management)."
10509 msgstr ""
10510
10511 #. type: textblock
10512 #: ../fish/guestfish-actions.pod:2125 ../src/guestfs-actions.pod:3185
10513 msgid ""
10514 "This returns the string C<unknown> if we could not determine the package "
10515 "format I<or> if the operating system does not have a real packaging system "
10516 "(eg. Windows)."
10517 msgstr ""
10518
10519 #. type: textblock
10520 #: ../fish/guestfish-actions.pod:2129 ../src/guestfs-actions.pod:3189
10521 msgid ""
10522 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10523 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10524 msgstr ""
10525
10526 #. type: =head2
10527 #: ../fish/guestfish-actions.pod:2135
10528 msgid "inspect-get-package-management"
10529 msgstr "inspect-get-package-management"
10530
10531 #. type: verbatim
10532 #: ../fish/guestfish-actions.pod:2137
10533 #, no-wrap
10534 msgid ""
10535 " inspect-get-package-management root\n"
10536 "\n"
10537 msgstr ""
10538 " inspect-get-package-management корінь\n"
10539 "\n"
10540
10541 #. type: textblock
10542 #: ../fish/guestfish-actions.pod:2139
10543 msgid ""
10544 "L</inspect-get-package-format> and this function return the package format "
10545 "and package management tool used by the inspected operating system.  For "
10546 "example for Fedora these functions would return C<rpm> (package format) and "
10547 "C<yum> (package management)."
10548 msgstr ""
10549
10550 #. type: textblock
10551 #: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:3212
10552 msgid ""
10553 "This returns the string C<unknown> if we could not determine the package "
10554 "management tool I<or> if the operating system does not have a real packaging "
10555 "system (eg. Windows)."
10556 msgstr ""
10557
10558 #. type: textblock
10559 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3216
10560 msgid ""
10561 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10562 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10563 "versions of libguestfs may return other strings."
10564 msgstr ""
10565
10566 #. type: =head2
10567 #: ../fish/guestfish-actions.pod:2156
10568 msgid "inspect-get-product-name"
10569 msgstr "inspect-get-product-name"
10570
10571 #. type: verbatim
10572 #: ../fish/guestfish-actions.pod:2158
10573 #, no-wrap
10574 msgid ""
10575 " inspect-get-product-name root\n"
10576 "\n"
10577 msgstr ""
10578 " inspect-get-product-name корінь\n"
10579 "\n"
10580
10581 #. type: textblock
10582 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
10583 msgid ""
10584 "This returns the product name of the inspected operating system.  The "
10585 "product name is generally some freeform string which can be displayed to the "
10586 "user, but should not be parsed by programs."
10587 msgstr ""
10588
10589 #. type: textblock
10590 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3239
10591 msgid ""
10592 "If the product name could not be determined, then the string C<unknown> is "
10593 "returned."
10594 msgstr ""
10595
10596 #. type: =head2
10597 #: ../fish/guestfish-actions.pod:2170
10598 msgid "inspect-get-product-variant"
10599 msgstr ""
10600
10601 #. type: verbatim
10602 #: ../fish/guestfish-actions.pod:2172
10603 #, no-wrap
10604 msgid ""
10605 " inspect-get-product-variant root\n"
10606 "\n"
10607 msgstr ""
10608
10609 #. type: textblock
10610 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3255
10611 msgid "This returns the product variant of the inspected operating system."
10612 msgstr ""
10613
10614 #. type: textblock
10615 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3258
10616 msgid ""
10617 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10618 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10619 "is usually a string such as C<Client> or C<Server> (other values are "
10620 "possible).  This can be used to distinguish consumer and enterprise versions "
10621 "of Windows that have the same version number (for example, Windows 7 and "
10622 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10623 "the latter is C<Server>)."
10624 msgstr ""
10625
10626 #. type: textblock
10627 #: ../fish/guestfish-actions.pod:2186 ../src/guestfs-actions.pod:3267
10628 msgid ""
10629 "For enterprise Linux guests, in future we intend this to return the product "
10630 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10631 "implemented at present."
10632 msgstr ""
10633
10634 #. type: textblock
10635 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3271
10636 msgid ""
10637 "If the product variant could not be determined, then the string C<unknown> "
10638 "is returned."
10639 msgstr ""
10640
10641 #. type: textblock
10642 #: ../fish/guestfish-actions.pod:2193
10643 msgid ""
10644 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10645 "get-product-name>, L</inspect-get-major-version>."
10646 msgstr ""
10647
10648 #. type: =head2
10649 #: ../fish/guestfish-actions.pod:2197
10650 msgid "inspect-get-roots"
10651 msgstr "inspect-get-roots"
10652
10653 #. type: verbatim
10654 #: ../fish/guestfish-actions.pod:2199
10655 #, no-wrap
10656 msgid ""
10657 " inspect-get-roots\n"
10658 "\n"
10659 msgstr ""
10660 " inspect-get-roots\n"
10661 "\n"
10662
10663 #. type: textblock
10664 #: ../fish/guestfish-actions.pod:2201
10665 msgid ""
10666 "This function is a convenient way to get the list of root devices, as "
10667 "returned from a previous call to L</inspect-os>, but without redoing the "
10668 "whole inspection process."
10669 msgstr ""
10670
10671 #. type: textblock
10672 #: ../fish/guestfish-actions.pod:2205
10673 msgid ""
10674 "This returns an empty list if either no root devices were found or the "
10675 "caller has not called L</inspect-os>."
10676 msgstr ""
10677
10678 #. type: =head2
10679 #: ../fish/guestfish-actions.pod:2210
10680 msgid "inspect-get-type"
10681 msgstr "inspect-get-type"
10682
10683 #. type: verbatim
10684 #: ../fish/guestfish-actions.pod:2212
10685 #, no-wrap
10686 msgid ""
10687 " inspect-get-type root\n"
10688 "\n"
10689 msgstr ""
10690 " inspect-get-type корінь\n"
10691 "\n"
10692
10693 #. type: textblock
10694 #: ../fish/guestfish-actions.pod:2214 ../src/guestfs-actions.pod:3309
10695 msgid ""
10696 "This returns the type of the inspected operating system.  Currently defined "
10697 "types are:"
10698 msgstr ""
10699
10700 #. type: =item
10701 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3314
10702 msgid "\"linux\""
10703 msgstr "\"linux\""
10704
10705 #. type: textblock
10706 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3316
10707 msgid "Any Linux-based operating system."
10708 msgstr ""
10709
10710 #. type: textblock
10711 #: ../fish/guestfish-actions.pod:2225 ../src/guestfs-actions.pod:3320
10712 msgid "Any Microsoft Windows operating system."
10713 msgstr ""
10714
10715 #. type: =item
10716 #: ../fish/guestfish-actions.pod:2227 ../src/guestfs-actions.pod:3322
10717 msgid "\"freebsd\""
10718 msgstr "\"freebsd\""
10719
10720 #. type: textblock
10721 #: ../fish/guestfish-actions.pod:2229 ../src/guestfs-actions.pod:3324
10722 msgid "FreeBSD."
10723 msgstr "FreeBSD."
10724
10725 #. type: =item
10726 #: ../fish/guestfish-actions.pod:2231 ../src/guestfs-actions.pod:3326
10727 msgid "\"netbsd\""
10728 msgstr ""
10729
10730 #. type: textblock
10731 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3328
10732 msgid "NetBSD."
10733 msgstr ""
10734
10735 #. type: textblock
10736 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3332
10737 msgid "The operating system type could not be determined."
10738 msgstr ""
10739
10740 #. type: =head2
10741 #: ../fish/guestfish-actions.pod:2246
10742 msgid "inspect-get-windows-current-control-set"
10743 msgstr ""
10744
10745 #. type: verbatim
10746 #: ../fish/guestfish-actions.pod:2248
10747 #, no-wrap
10748 msgid ""
10749 " inspect-get-windows-current-control-set root\n"
10750 "\n"
10751 msgstr ""
10752
10753 #. type: textblock
10754 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3352
10755 msgid ""
10756 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10757 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10758 msgstr ""
10759
10760 #. type: textblock
10761 #: ../fish/guestfish-actions.pod:2253 ../src/guestfs-actions.pod:3355
10762 msgid ""
10763 "This call assumes that the guest is Windows and that the Registry could be "
10764 "examined by inspection.  If this is not the case then an error is returned."
10765 msgstr ""
10766
10767 #. type: =head2
10768 #: ../fish/guestfish-actions.pod:2259
10769 msgid "inspect-get-windows-systemroot"
10770 msgstr "inspect-get-windows-systemroot"
10771
10772 #. type: verbatim
10773 #: ../fish/guestfish-actions.pod:2261
10774 #, no-wrap
10775 msgid ""
10776 " inspect-get-windows-systemroot root\n"
10777 "\n"
10778 msgstr ""
10779 " inspect-get-windows-systemroot корінь\n"
10780 "\n"
10781
10782 #. type: textblock
10783 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3372
10784 msgid ""
10785 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10786 "is a directory path such as C</WINDOWS>."
10787 msgstr ""
10788
10789 #. type: textblock
10790 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3375
10791 msgid ""
10792 "This call assumes that the guest is Windows and that the systemroot could be "
10793 "determined by inspection.  If this is not the case then an error is returned."
10794 msgstr ""
10795
10796 #. type: =head2
10797 #: ../fish/guestfish-actions.pod:2272
10798 msgid "inspect-is-live"
10799 msgstr "inspect-is-live"
10800
10801 #. type: verbatim
10802 #: ../fish/guestfish-actions.pod:2274
10803 #, no-wrap
10804 msgid ""
10805 " inspect-is-live root\n"
10806 "\n"
10807 msgstr ""
10808 " inspect-is-live корінь\n"
10809 "\n"
10810
10811 #. type: textblock
10812 #: ../fish/guestfish-actions.pod:2276
10813 msgid ""
10814 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10815 "then this returns true if a live image was detected on the disk."
10816 msgstr ""
10817
10818 #. type: =head2
10819 #: ../fish/guestfish-actions.pod:2282
10820 msgid "inspect-is-multipart"
10821 msgstr "inspect-is-multipart"
10822
10823 #. type: verbatim
10824 #: ../fish/guestfish-actions.pod:2284
10825 #, no-wrap
10826 msgid ""
10827 " inspect-is-multipart root\n"
10828 "\n"
10829 msgstr ""
10830 " inspect-is-multipart корінь\n"
10831 "\n"
10832
10833 #. type: textblock
10834 #: ../fish/guestfish-actions.pod:2286
10835 msgid ""
10836 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10837 "then this returns true if the disk is part of a set."
10838 msgstr ""
10839
10840 #. type: =head2
10841 #: ../fish/guestfish-actions.pod:2292
10842 msgid "inspect-is-netinst"
10843 msgstr "inspect-is-netinst"
10844
10845 #. type: verbatim
10846 #: ../fish/guestfish-actions.pod:2294
10847 #, no-wrap
10848 msgid ""
10849 " inspect-is-netinst root\n"
10850 "\n"
10851 msgstr ""
10852 " inspect-is-netinst корінь\n"
10853 "\n"
10854
10855 #. type: textblock
10856 #: ../fish/guestfish-actions.pod:2296
10857 msgid ""
10858 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10859 "then this returns true if the disk is a network installer, ie. not a self-"
10860 "contained install CD but one which is likely to require network access to "
10861 "complete the install."
10862 msgstr ""
10863
10864 #. type: =head2
10865 #: ../fish/guestfish-actions.pod:2304
10866 msgid "inspect-list-applications"
10867 msgstr "inspect-list-applications"
10868
10869 #. type: verbatim
10870 #: ../fish/guestfish-actions.pod:2306
10871 #, no-wrap
10872 msgid ""
10873 " inspect-list-applications root\n"
10874 "\n"
10875 msgstr ""
10876 " inspect-list-applications кореневий_каталог\n"
10877 "\n"
10878
10879 #. type: textblock
10880 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3442
10881 msgid "Return the list of applications installed in the operating system."
10882 msgstr ""
10883
10884 #. type: textblock
10885 #: ../fish/guestfish-actions.pod:2310
10886 msgid ""
10887 "I<Note:> This call works differently from other parts of the inspection "
10888 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10889 "then mount up the disks, before calling this.  Listing applications is a "
10890 "significantly more difficult operation which requires access to the full "
10891 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10892 "are just returning data cached in the libguestfs handle, this call actually "
10893 "reads parts of the mounted filesystems during the call."
10894 msgstr ""
10895
10896 #. type: textblock
10897 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3454
10898 msgid ""
10899 "This returns an empty list if the inspection code was not able to determine "
10900 "the list of applications."
10901 msgstr ""
10902
10903 #. type: textblock
10904 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3457
10905 msgid "The application structure contains the following fields:"
10906 msgstr ""
10907
10908 #. type: =item
10909 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3461
10910 msgid "C<app_name>"
10911 msgstr "C<app_name>"
10912
10913 #. type: textblock
10914 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3463
10915 msgid ""
10916 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10917 "guests, this is the package name."
10918 msgstr ""
10919
10920 #. type: =item
10921 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3466
10922 msgid "C<app_display_name>"
10923 msgstr "C<app_display_name>"
10924
10925 #. type: textblock
10926 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3468
10927 msgid ""
10928 "The display name of the application, sometimes localized to the install "
10929 "language of the guest operating system."
10930 msgstr ""
10931
10932 #. type: textblock
10933 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3471
10934 msgid ""
10935 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10936 "to display something can use C<app_name> instead."
10937 msgstr ""
10938
10939 #. type: =item
10940 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3474
10941 msgid "C<app_epoch>"
10942 msgstr "C<app_epoch>"
10943
10944 #. type: textblock
10945 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:3476
10946 msgid ""
10947 "For package managers which use epochs, this contains the epoch of the "
10948 "package (an integer).  If unavailable, this is returned as C<0>."
10949 msgstr ""
10950
10951 #. type: =item
10952 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3479
10953 msgid "C<app_version>"
10954 msgstr "C<app_version>"
10955
10956 #. type: textblock
10957 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3481
10958 msgid ""
10959 "The version string of the application or package.  If unavailable this is "
10960 "returned as an empty string C<\"\">."
10961 msgstr ""
10962
10963 #. type: =item
10964 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3484
10965 msgid "C<app_release>"
10966 msgstr "C<app_release>"
10967
10968 #. type: textblock
10969 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3486
10970 msgid ""
10971 "The release string of the application or package, for package managers that "
10972 "use this.  If unavailable this is returned as an empty string C<\"\">."
10973 msgstr ""
10974
10975 #. type: =item
10976 #: ../fish/guestfish-actions.pod:2356 ../src/guestfs-actions.pod:3490
10977 msgid "C<app_install_path>"
10978 msgstr "C<app_install_path>"
10979
10980 #. type: textblock
10981 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3492
10982 msgid ""
10983 "The installation path of the application (on operating systems such as "
10984 "Windows which use installation paths).  This path is in the format used by "
10985 "the guest operating system, it is not a libguestfs path."
10986 msgstr ""
10987
10988 #. type: textblock
10989 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3497
10990 msgid "If unavailable this is returned as an empty string C<\"\">."
10991 msgstr ""
10992
10993 #. type: =item
10994 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3499
10995 msgid "C<app_trans_path>"
10996 msgstr "C<app_trans_path>"
10997
10998 #. type: textblock
10999 #: ../fish/guestfish-actions.pod:2367 ../src/guestfs-actions.pod:3501
11000 msgid ""
11001 "The install path translated into a libguestfs path.  If unavailable this is "
11002 "returned as an empty string C<\"\">."
11003 msgstr ""
11004
11005 #. type: =item
11006 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3504
11007 msgid "C<app_publisher>"
11008 msgstr "C<app_publisher>"
11009
11010 #. type: textblock
11011 #: ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3506
11012 msgid ""
11013 "The name of the publisher of the application, for package managers that use "
11014 "this.  If unavailable this is returned as an empty string C<\"\">."
11015 msgstr ""
11016
11017 #. type: =item
11018 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3510
11019 msgid "C<app_url>"
11020 msgstr "C<app_url>"
11021
11022 #. type: textblock
11023 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3512
11024 msgid ""
11025 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11026 "returned as an empty string C<\"\">."
11027 msgstr ""
11028
11029 #. type: =item
11030 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3515
11031 msgid "C<app_source_package>"
11032 msgstr "C<app_source_package>"
11033
11034 #. type: textblock
11035 #: ../fish/guestfish-actions.pod:2383 ../src/guestfs-actions.pod:3517
11036 msgid ""
11037 "For packaging systems which support this, the name of the source package.  "
11038 "If unavailable this is returned as an empty string C<\"\">."
11039 msgstr ""
11040
11041 #. type: =item
11042 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
11043 msgid "C<app_summary>"
11044 msgstr "C<app_summary>"
11045
11046 #. type: textblock
11047 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3522
11048 msgid ""
11049 "A short (usually one line) description of the application or package.  If "
11050 "unavailable this is returned as an empty string C<\"\">."
11051 msgstr ""
11052
11053 #. type: =item
11054 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3525
11055 msgid "C<app_description>"
11056 msgstr "C<app_description>"
11057
11058 #. type: textblock
11059 #: ../fish/guestfish-actions.pod:2393 ../src/guestfs-actions.pod:3527
11060 msgid ""
11061 "A longer description of the application or package.  If unavailable this is "
11062 "returned as an empty string C<\"\">."
11063 msgstr ""
11064
11065 #. type: =head2
11066 #: ../fish/guestfish-actions.pod:2400
11067 msgid "inspect-os"
11068 msgstr "inspect-os"
11069
11070 #. type: verbatim
11071 #: ../fish/guestfish-actions.pod:2402
11072 #, no-wrap
11073 msgid ""
11074 " inspect-os\n"
11075 "\n"
11076 msgstr ""
11077 " inspect-os\n"
11078 "\n"
11079
11080 #. type: textblock
11081 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3545
11082 msgid ""
11083 "This function uses other libguestfs functions and certain heuristics to "
11084 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11085 "for operating systems."
11086 msgstr ""
11087
11088 #. type: textblock
11089 #: ../fish/guestfish-actions.pod:2408 ../src/guestfs-actions.pod:3549
11090 msgid "The list returned is empty if no operating systems were found."
11091 msgstr ""
11092
11093 #. type: textblock
11094 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3551
11095 msgid ""
11096 "If one operating system was found, then this returns a list with a single "
11097 "element, which is the name of the root filesystem of this operating system.  "
11098 "It is also possible for this function to return a list containing more than "
11099 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11100 "element being the root filesystem of one of the operating systems."
11101 msgstr ""
11102
11103 #. type: textblock
11104 #: ../fish/guestfish-actions.pod:2417
11105 msgid ""
11106 "You can pass the root string(s) returned to other L</inspect-get-*> "
11107 "functions in order to query further information about each operating system, "
11108 "such as the name and version."
11109 msgstr ""
11110
11111 #. type: textblock
11112 #: ../fish/guestfish-actions.pod:2422
11113 msgid ""
11114 "This function uses other libguestfs features such as L</mount-ro> and L</"
11115 "umount-all> in order to mount and unmount filesystems and look at the "
11116 "contents.  This should be called with no disks currently mounted.  The "
11117 "function may also use Augeas, so any existing Augeas handle will be closed."
11118 msgstr ""
11119
11120 #. type: textblock
11121 #: ../fish/guestfish-actions.pod:2428 ../src/guestfs-actions.pod:3569
11122 msgid ""
11123 "This function cannot decrypt encrypted disks.  The caller must do that first "
11124 "(supplying the necessary keys) if the disk is encrypted."
11125 msgstr ""
11126
11127 #. type: textblock
11128 #: ../fish/guestfish-actions.pod:2434 ../fish/guestfish-actions.pod:2632
11129 #: ../fish/guestfish-actions.pod:2691
11130 msgid "See also L</list-filesystems>."
11131 msgstr "Див. також L</list-filesystems>."
11132
11133 #. type: =head2
11134 #: ../fish/guestfish-actions.pod:2436
11135 msgid "is-blockdev"
11136 msgstr "is-blockdev"
11137
11138 #. type: verbatim
11139 #: ../fish/guestfish-actions.pod:2438
11140 #, no-wrap
11141 msgid ""
11142 " is-blockdev path\n"
11143 "\n"
11144 msgstr ""
11145 " is-blockdev шлях\n"
11146 "\n"
11147
11148 #. type: textblock
11149 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3589
11150 msgid ""
11151 "This returns C<true> if and only if there is a block device with the given "
11152 "C<path> name."
11153 msgstr ""
11154
11155 #. type: textblock
11156 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2461
11157 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2489
11158 #: ../fish/guestfish-actions.pod:2499 ../fish/guestfish-actions.pod:2533
11159 #: ../fish/guestfish-actions.pod:2542
11160 msgid "See also L</stat>."
11161 msgstr "Див. також L</stat>."
11162
11163 #. type: =head2
11164 #: ../fish/guestfish-actions.pod:2445
11165 msgid "is-busy"
11166 msgstr "is-busy"
11167
11168 #. type: verbatim
11169 #: ../fish/guestfish-actions.pod:2447
11170 #, no-wrap
11171 msgid ""
11172 " is-busy\n"
11173 "\n"
11174 msgstr ""
11175 " is-busy\n"
11176 "\n"
11177
11178 #. type: textblock
11179 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3603
11180 msgid ""
11181 "This returns true iff this handle is busy processing a command (in the "
11182 "C<BUSY> state)."
11183 msgstr ""
11184
11185 #. type: =head2
11186 #: ../fish/guestfish-actions.pod:2454
11187 msgid "is-chardev"
11188 msgstr "is-chardev"
11189
11190 #. type: verbatim
11191 #: ../fish/guestfish-actions.pod:2456
11192 #, no-wrap
11193 msgid ""
11194 " is-chardev path\n"
11195 "\n"
11196 msgstr ""
11197 " is-chardev шлях\n"
11198 "\n"
11199
11200 #. type: textblock
11201 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3618
11202 msgid ""
11203 "This returns C<true> if and only if there is a character device with the "
11204 "given C<path> name."
11205 msgstr ""
11206
11207 #. type: =head2
11208 #: ../fish/guestfish-actions.pod:2463
11209 msgid "is-config"
11210 msgstr "is-config"
11211
11212 #. type: verbatim
11213 #: ../fish/guestfish-actions.pod:2465
11214 #, no-wrap
11215 msgid ""
11216 " is-config\n"
11217 "\n"
11218 msgstr ""
11219 " is-config\n"
11220 "\n"
11221
11222 #. type: textblock
11223 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3632
11224 msgid ""
11225 "This returns true iff this handle is being configured (in the C<CONFIG> "
11226 "state)."
11227 msgstr ""
11228
11229 #. type: =head2
11230 #: ../fish/guestfish-actions.pod:2472
11231 msgid "is-dir"
11232 msgstr "is-dir"
11233
11234 #. type: verbatim
11235 #: ../fish/guestfish-actions.pod:2474
11236 #, no-wrap
11237 msgid ""
11238 " is-dir path\n"
11239 "\n"
11240 msgstr ""
11241 " is-dir шлях\n"
11242 "\n"
11243
11244 #. type: textblock
11245 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3647
11246 msgid ""
11247 "This returns C<true> if and only if there is a directory with the given "
11248 "C<path> name.  Note that it returns false for other objects like files."
11249 msgstr ""
11250
11251 #. type: =head2
11252 #: ../fish/guestfish-actions.pod:2482
11253 msgid "is-fifo"
11254 msgstr "is-fifo"
11255
11256 #. type: verbatim
11257 #: ../fish/guestfish-actions.pod:2484
11258 #, no-wrap
11259 msgid ""
11260 " is-fifo path\n"
11261 "\n"
11262 msgstr ""
11263 " is-fifo шлях\n"
11264 "\n"
11265
11266 #. type: textblock
11267 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3663
11268 msgid ""
11269 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11270 "given C<path> name."
11271 msgstr ""
11272
11273 #. type: =head2
11274 #: ../fish/guestfish-actions.pod:2491
11275 msgid "is-file"
11276 msgstr "is-file"
11277
11278 #. type: verbatim
11279 #: ../fish/guestfish-actions.pod:2493
11280 #, no-wrap
11281 msgid ""
11282 " is-file path\n"
11283 "\n"
11284 msgstr ""
11285 " is-file шлях\n"
11286 "\n"
11287
11288 #. type: textblock
11289 #: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3678
11290 msgid ""
11291 "This returns C<true> if and only if there is a regular file with the given "
11292 "C<path> name.  Note that it returns false for other objects like directories."
11293 msgstr ""
11294
11295 #. type: =head2
11296 #: ../fish/guestfish-actions.pod:2501
11297 msgid "is-launching"
11298 msgstr "is-launching"
11299
11300 #. type: verbatim
11301 #: ../fish/guestfish-actions.pod:2503
11302 #, no-wrap
11303 msgid ""
11304 " is-launching\n"
11305 "\n"
11306 msgstr ""
11307 " is-launching\n"
11308 "\n"
11309
11310 #. type: textblock
11311 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3693
11312 msgid ""
11313 "This returns true iff this handle is launching the subprocess (in the "
11314 "C<LAUNCHING> state)."
11315 msgstr ""
11316
11317 #. type: =head2
11318 #: ../fish/guestfish-actions.pod:2510
11319 msgid "is-lv"
11320 msgstr "is-lv"
11321
11322 #. type: verbatim
11323 #: ../fish/guestfish-actions.pod:2512
11324 #, no-wrap
11325 msgid ""
11326 " is-lv device\n"
11327 "\n"
11328 msgstr ""
11329 " is-lv пристрій\n"
11330 "\n"
11331
11332 #. type: textblock
11333 #: ../fish/guestfish-actions.pod:2514 ../src/guestfs-actions.pod:3708
11334 msgid ""
11335 "This command tests whether C<device> is a logical volume, and returns true "
11336 "iff this is the case."
11337 msgstr ""
11338
11339 #. type: =head2
11340 #: ../fish/guestfish-actions.pod:2517
11341 msgid "is-ready"
11342 msgstr "is-ready"
11343
11344 #. type: verbatim
11345 #: ../fish/guestfish-actions.pod:2519
11346 #, no-wrap
11347 msgid ""
11348 " is-ready\n"
11349 "\n"
11350 msgstr ""
11351 " is-ready\n"
11352 "\n"
11353
11354 #. type: textblock
11355 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3720
11356 msgid ""
11357 "This returns true iff this handle is ready to accept commands (in the "
11358 "C<READY> state)."
11359 msgstr ""
11360
11361 #. type: =head2
11362 #: ../fish/guestfish-actions.pod:2526
11363 msgid "is-socket"
11364 msgstr "is-socket"
11365
11366 #. type: verbatim
11367 #: ../fish/guestfish-actions.pod:2528
11368 #, no-wrap
11369 msgid ""
11370 " is-socket path\n"
11371 "\n"
11372 msgstr ""
11373 " is-socket шлях\n"
11374 "\n"
11375
11376 #. type: textblock
11377 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3735
11378 msgid ""
11379 "This returns C<true> if and only if there is a Unix domain socket with the "
11380 "given C<path> name."
11381 msgstr ""
11382
11383 #. type: =head2
11384 #: ../fish/guestfish-actions.pod:2535
11385 msgid "is-symlink"
11386 msgstr "is-symlink"
11387
11388 #. type: verbatim
11389 #: ../fish/guestfish-actions.pod:2537
11390 #, no-wrap
11391 msgid ""
11392 " is-symlink path\n"
11393 "\n"
11394 msgstr ""
11395 " is-symlink шлях\n"
11396 "\n"
11397
11398 #. type: textblock
11399 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3750
11400 msgid ""
11401 "This returns C<true> if and only if there is a symbolic link with the given "
11402 "C<path> name."
11403 msgstr ""
11404
11405 #. type: =head2
11406 #: ../fish/guestfish-actions.pod:2544
11407 msgid "is-zero"
11408 msgstr ""
11409
11410 #. type: verbatim
11411 #: ../fish/guestfish-actions.pod:2546
11412 #, no-wrap
11413 msgid ""
11414 " is-zero path\n"
11415 "\n"
11416 msgstr ""
11417
11418 #. type: textblock
11419 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3765
11420 msgid ""
11421 "This returns true iff the file exists and the file is empty or it contains "
11422 "all zero bytes."
11423 msgstr ""
11424
11425 #. type: =head2
11426 #: ../fish/guestfish-actions.pod:2551
11427 msgid "is-zero-device"
11428 msgstr ""
11429
11430 #. type: verbatim
11431 #: ../fish/guestfish-actions.pod:2553
11432 #, no-wrap
11433 msgid ""
11434 " is-zero-device device\n"
11435 "\n"
11436 msgstr ""
11437
11438 #. type: textblock
11439 #: ../fish/guestfish-actions.pod:2555 ../src/guestfs-actions.pod:3778
11440 msgid "This returns true iff the device exists and contains all zero bytes."
11441 msgstr ""
11442
11443 #. type: textblock
11444 #: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3780
11445 msgid "Note that for large devices this can take a long time to run."
11446 msgstr ""
11447
11448 #. type: =head2
11449 #: ../fish/guestfish-actions.pod:2559
11450 msgid "kill-subprocess"
11451 msgstr "kill-subprocess"
11452
11453 #. type: verbatim
11454 #: ../fish/guestfish-actions.pod:2561
11455 #, no-wrap
11456 msgid ""
11457 " kill-subprocess\n"
11458 "\n"
11459 msgstr ""
11460 " kill-subprocess\n"
11461 "\n"
11462
11463 #. type: textblock
11464 #: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3791
11465 msgid "This kills the qemu subprocess.  You should never need to call this."
11466 msgstr ""
11467
11468 #. type: =head2
11469 #: ../fish/guestfish-actions.pod:2565
11470 msgid "launch"
11471 msgstr "launch"
11472
11473 #. type: =head2
11474 #: ../fish/guestfish-actions.pod:2567
11475 msgid "run"
11476 msgstr ""
11477
11478 #. type: verbatim
11479 #: ../fish/guestfish-actions.pod:2569
11480 #, no-wrap
11481 msgid ""
11482 " launch\n"
11483 "\n"
11484 msgstr ""
11485 " launch\n"
11486 "\n"
11487
11488 #. type: textblock
11489 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3802
11490 msgid ""
11491 "Internally libguestfs is implemented by running a virtual machine using "
11492 "L<qemu(1)>."
11493 msgstr ""
11494
11495 #. type: textblock
11496 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3805
11497 msgid ""
11498 "You should call this after configuring the handle (eg. adding drives) but "
11499 "before performing any actions."
11500 msgstr ""
11501
11502 #. type: =head2
11503 #: ../fish/guestfish-actions.pod:2577
11504 msgid "lchown"
11505 msgstr "lchown"
11506
11507 #. type: verbatim
11508 #: ../fish/guestfish-actions.pod:2579
11509 #, no-wrap
11510 msgid ""
11511 " lchown owner group path\n"
11512 "\n"
11513 msgstr ""
11514 " lchown власник група шлях\n"
11515 "\n"
11516
11517 #. type: textblock
11518 #: ../fish/guestfish-actions.pod:2581
11519 msgid ""
11520 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11521 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11522 "target."
11523 msgstr ""
11524
11525 #. type: =head2
11526 #: ../fish/guestfish-actions.pod:2589
11527 msgid "lgetxattr"
11528 msgstr "lgetxattr"
11529
11530 #. type: verbatim
11531 #: ../fish/guestfish-actions.pod:2591
11532 #, no-wrap
11533 msgid ""
11534 " lgetxattr path name\n"
11535 "\n"
11536 msgstr ""
11537 " lgetxattr шлях назва\n"
11538 "\n"
11539
11540 #. type: textblock
11541 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3845
11542 msgid ""
11543 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11544 "is a symlink, then this call returns an extended attribute from the symlink."
11545 msgstr ""
11546
11547 #. type: textblock
11548 #: ../fish/guestfish-actions.pod:2607
11549 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11550 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11551
11552 #. type: =head2
11553 #: ../fish/guestfish-actions.pod:2609
11554 msgid "lgetxattrs"
11555 msgstr "lgetxattrs"
11556
11557 #. type: verbatim
11558 #: ../fish/guestfish-actions.pod:2611
11559 #, no-wrap
11560 msgid ""
11561 " lgetxattrs path\n"
11562 "\n"
11563 msgstr ""
11564 " lgetxattrs шлях\n"
11565 "\n"
11566
11567 #. type: textblock
11568 #: ../fish/guestfish-actions.pod:2613
11569 msgid ""
11570 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11571 "it returns the extended attributes of the link itself."
11572 msgstr ""
11573
11574 #. type: =head2
11575 #: ../fish/guestfish-actions.pod:2617
11576 msgid "list-9p"
11577 msgstr ""
11578
11579 #. type: verbatim
11580 #: ../fish/guestfish-actions.pod:2619
11581 #, no-wrap
11582 msgid ""
11583 " list-9p\n"
11584 "\n"
11585 msgstr ""
11586
11587 #. type: textblock
11588 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3888
11589 msgid ""
11590 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11591 "returned."
11592 msgstr ""
11593
11594 #. type: =head2
11595 #: ../fish/guestfish-actions.pod:2624
11596 msgid "list-devices"
11597 msgstr "list-devices"
11598
11599 #. type: verbatim
11600 #: ../fish/guestfish-actions.pod:2626
11601 #, no-wrap
11602 msgid ""
11603 " list-devices\n"
11604 "\n"
11605 msgstr ""
11606 " list-devices\n"
11607 "\n"
11608
11609 #. type: textblock
11610 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3902
11611 msgid "List all the block devices."
11612 msgstr ""
11613
11614 #. type: textblock
11615 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3904
11616 msgid "The full block device names are returned, eg. C</dev/sda>."
11617 msgstr ""
11618
11619 #. type: =head2
11620 #: ../fish/guestfish-actions.pod:2634
11621 msgid "list-dm-devices"
11622 msgstr ""
11623
11624 #. type: verbatim
11625 #: ../fish/guestfish-actions.pod:2636
11626 #, no-wrap
11627 msgid ""
11628 " list-dm-devices\n"
11629 "\n"
11630 msgstr ""
11631
11632 #. type: textblock
11633 #: ../fish/guestfish-actions.pod:2638 ../src/guestfs-actions.pod:3919
11634 msgid "List all device mapper devices."
11635 msgstr ""
11636
11637 #. type: textblock
11638 #: ../fish/guestfish-actions.pod:2640
11639 msgid ""
11640 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11641 "previous call to L</luks-open>."
11642 msgstr ""
11643
11644 #. type: textblock
11645 #: ../fish/guestfish-actions.pod:2643
11646 msgid ""
11647 "Device mapper devices which correspond to logical volumes are I<not> "
11648 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11649 msgstr ""
11650
11651 #. type: =head2
11652 #: ../fish/guestfish-actions.pod:2647
11653 msgid "list-filesystems"
11654 msgstr "list-filesystems"
11655
11656 #. type: verbatim
11657 #: ../fish/guestfish-actions.pod:2649
11658 #, no-wrap
11659 msgid ""
11660 " list-filesystems\n"
11661 "\n"
11662 msgstr ""
11663 " list-filesystems\n"
11664 "\n"
11665
11666 #. type: textblock
11667 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3939
11668 msgid ""
11669 "This inspection command looks for filesystems on partitions, block devices "
11670 "and logical volumes, returning a list of devices containing filesystems and "
11671 "their type."
11672 msgstr ""
11673
11674 #. type: textblock
11675 #: ../fish/guestfish-actions.pod:2655 ../src/guestfs-actions.pod:3943
11676 msgid ""
11677 "The return value is a hash, where the keys are the devices containing "
11678 "filesystems, and the values are the filesystem types.  For example:"
11679 msgstr ""
11680
11681 #. type: verbatim
11682 #: ../fish/guestfish-actions.pod:2659 ../src/guestfs-actions.pod:3947
11683 #, no-wrap
11684 msgid ""
11685 " \"/dev/sda1\" => \"ntfs\"\n"
11686 " \"/dev/sda2\" => \"ext2\"\n"
11687 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11688 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11689 "\n"
11690 msgstr ""
11691
11692 #. type: textblock
11693 #: ../fish/guestfish-actions.pod:2664 ../src/guestfs-actions.pod:3952
11694 msgid ""
11695 "The value can have the special value \"unknown\", meaning the content of the "
11696 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11697 msgstr ""
11698
11699 #. type: textblock
11700 #: ../fish/guestfish-actions.pod:2668
11701 msgid ""
11702 "This command runs other libguestfs commands, which might include L</mount> "
11703 "and L</umount>, and therefore you should use this soon after launch and only "
11704 "when nothing is mounted."
11705 msgstr ""
11706
11707 #. type: textblock
11708 #: ../fish/guestfish-actions.pod:2672
11709 msgid ""
11710 "Not all of the filesystems returned will be mountable.  In particular, swap "
11711 "partitions are returned in the list.  Also this command does not check that "
11712 "each filesystem found is valid and mountable, and some filesystems might be "
11713 "mountable but require special options.  Filesystems may not all belong to a "
11714 "single logical operating system (use L</inspect-os> to look for OSes)."
11715 msgstr ""
11716
11717 #. type: =head2
11718 #: ../fish/guestfish-actions.pod:2680
11719 msgid "list-partitions"
11720 msgstr "list-partitions"
11721
11722 #. type: verbatim
11723 #: ../fish/guestfish-actions.pod:2682
11724 #, no-wrap
11725 msgid ""
11726 " list-partitions\n"
11727 "\n"
11728 msgstr ""
11729 " list-partitions\n"
11730 "\n"
11731
11732 #. type: textblock
11733 #: ../fish/guestfish-actions.pod:2684 ../src/guestfs-actions.pod:3981
11734 msgid "List all the partitions detected on all block devices."
11735 msgstr ""
11736
11737 #. type: textblock
11738 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3983
11739 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11740 msgstr ""
11741
11742 #. type: textblock
11743 #: ../fish/guestfish-actions.pod:2688
11744 msgid ""
11745 "This does not return logical volumes.  For that you will need to call L</"
11746 "lvs>."
11747 msgstr ""
11748
11749 #. type: =head2
11750 #: ../fish/guestfish-actions.pod:2693
11751 msgid "ll"
11752 msgstr "ll"
11753
11754 #. type: verbatim
11755 #: ../fish/guestfish-actions.pod:2695
11756 #, no-wrap
11757 msgid ""
11758 " ll directory\n"
11759 "\n"
11760 msgstr ""
11761 " ll каталог\n"
11762 "\n"
11763
11764 #. type: textblock
11765 #: ../fish/guestfish-actions.pod:2697 ../src/guestfs-actions.pod:4002
11766 msgid ""
11767 "List the files in C<directory> (relative to the root directory, there is no "
11768 "cwd) in the format of 'ls -la'."
11769 msgstr ""
11770
11771 #. type: textblock
11772 #: ../fish/guestfish-actions.pod:2700 ../src/guestfs-actions.pod:4005
11773 msgid ""
11774 "This command is mostly useful for interactive sessions.  It is I<not> "
11775 "intended that you try to parse the output string."
11776 msgstr ""
11777
11778 #. type: =head2
11779 #: ../fish/guestfish-actions.pod:2703
11780 msgid "ln"
11781 msgstr "ln"
11782
11783 #. type: verbatim
11784 #: ../fish/guestfish-actions.pod:2705
11785 #, no-wrap
11786 msgid ""
11787 " ln target linkname\n"
11788 "\n"
11789 msgstr ""
11790 " ln призначення назва_посилання\n"
11791 "\n"
11792
11793 #. type: textblock
11794 #: ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:4020
11795 msgid "This command creates a hard link using the C<ln> command."
11796 msgstr ""
11797
11798 #. type: =head2
11799 #: ../fish/guestfish-actions.pod:2709
11800 msgid "ln-f"
11801 msgstr "ln-f"
11802
11803 #. type: verbatim
11804 #: ../fish/guestfish-actions.pod:2711
11805 #, no-wrap
11806 msgid ""
11807 " ln-f target linkname\n"
11808 "\n"
11809 msgstr ""
11810 " ln-f призначення назва_посилання\n"
11811 "\n"
11812
11813 #. type: textblock
11814 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4033
11815 msgid ""
11816 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11817 "option removes the link (C<linkname>) if it exists already."
11818 msgstr ""
11819
11820 #. type: =head2
11821 #: ../fish/guestfish-actions.pod:2716
11822 msgid "ln-s"
11823 msgstr "ln-s"
11824
11825 #. type: verbatim
11826 #: ../fish/guestfish-actions.pod:2718
11827 #, no-wrap
11828 msgid ""
11829 " ln-s target linkname\n"
11830 "\n"
11831 msgstr ""
11832 " ln-s призначення назва_посилання\n"
11833 "\n"
11834
11835 #. type: textblock
11836 #: ../fish/guestfish-actions.pod:2720 ../src/guestfs-actions.pod:4047
11837 msgid "This command creates a symbolic link using the C<ln -s> command."
11838 msgstr ""
11839
11840 #. type: =head2
11841 #: ../fish/guestfish-actions.pod:2722
11842 msgid "ln-sf"
11843 msgstr "ln-sf"
11844
11845 #. type: verbatim
11846 #: ../fish/guestfish-actions.pod:2724
11847 #, no-wrap
11848 msgid ""
11849 " ln-sf target linkname\n"
11850 "\n"
11851 msgstr ""
11852 " ln-sf призначення назва_посилання\n"
11853 "\n"
11854
11855 #. type: textblock
11856 #: ../fish/guestfish-actions.pod:2726 ../src/guestfs-actions.pod:4060
11857 msgid ""
11858 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11859 "option removes the link (C<linkname>) if it exists already."
11860 msgstr ""
11861
11862 #. type: =head2
11863 #: ../fish/guestfish-actions.pod:2729
11864 msgid "lremovexattr"
11865 msgstr "lremovexattr"
11866
11867 #. type: verbatim
11868 #: ../fish/guestfish-actions.pod:2731
11869 #, no-wrap
11870 msgid ""
11871 " lremovexattr xattr path\n"
11872 "\n"
11873 msgstr ""
11874
11875 #. type: textblock
11876 #: ../fish/guestfish-actions.pod:2733
11877 msgid ""
11878 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11879 "it removes an extended attribute of the link itself."
11880 msgstr ""
11881
11882 #. type: =head2
11883 #: ../fish/guestfish-actions.pod:2737
11884 msgid "ls"
11885 msgstr "ls"
11886
11887 #. type: verbatim
11888 #: ../fish/guestfish-actions.pod:2739
11889 #, no-wrap
11890 msgid ""
11891 " ls directory\n"
11892 "\n"
11893 msgstr ""
11894 " ls каталог\n"
11895 "\n"
11896
11897 #. type: textblock
11898 #: ../fish/guestfish-actions.pod:2741 ../src/guestfs-actions.pod:4088
11899 msgid ""
11900 "List the files in C<directory> (relative to the root directory, there is no "
11901 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
11902 msgstr ""
11903
11904 #. type: textblock
11905 #: ../fish/guestfish-actions.pod:2745
11906 msgid ""
11907 "This command is mostly useful for interactive sessions.  Programs should "
11908 "probably use L</readdir> instead."
11909 msgstr ""
11910
11911 #. type: =head2
11912 #: ../fish/guestfish-actions.pod:2748
11913 msgid "lsetxattr"
11914 msgstr "lsetxattr"
11915
11916 #. type: verbatim
11917 #: ../fish/guestfish-actions.pod:2750
11918 #, no-wrap
11919 msgid ""
11920 " lsetxattr xattr val vallen path\n"
11921 "\n"
11922 msgstr ""
11923
11924 #. type: textblock
11925 #: ../fish/guestfish-actions.pod:2752
11926 msgid ""
11927 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11928 "sets an extended attribute of the link itself."
11929 msgstr ""
11930
11931 #. type: =head2
11932 #: ../fish/guestfish-actions.pod:2756
11933 msgid "lstat"
11934 msgstr "lstat"
11935
11936 #. type: verbatim
11937 #: ../fish/guestfish-actions.pod:2758
11938 #, no-wrap
11939 msgid ""
11940 " lstat path\n"
11941 "\n"
11942 msgstr ""
11943 " lstat шлях\n"
11944 "\n"
11945
11946 #. type: textblock
11947 #: ../fish/guestfish-actions.pod:2760 ../fish/guestfish-actions.pod:4570
11948 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:6909
11949 msgid "Returns file information for the given C<path>."
11950 msgstr ""
11951
11952 #. type: textblock
11953 #: ../fish/guestfish-actions.pod:2762
11954 msgid ""
11955 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11956 "the link is stat-ed, not the file it refers to."
11957 msgstr ""
11958
11959 #. type: textblock
11960 #: ../fish/guestfish-actions.pod:2766 ../src/guestfs-actions.pod:4130
11961 msgid "This is the same as the C<lstat(2)> system call."
11962 msgstr ""
11963
11964 #. type: =head2
11965 #: ../fish/guestfish-actions.pod:2768
11966 msgid "lstatlist"
11967 msgstr "lstatlist"
11968
11969 #. type: verbatim
11970 #: ../fish/guestfish-actions.pod:2770
11971 #, no-wrap
11972 msgid ""
11973 " lstatlist path 'names ...'\n"
11974 "\n"
11975 msgstr ""
11976
11977 #. type: textblock
11978 #: ../fish/guestfish-actions.pod:2772
11979 msgid ""
11980 "This call allows you to perform the L</lstat> operation on multiple files, "
11981 "where all files are in the directory C<path>.  C<names> is the list of files "
11982 "from this directory."
11983 msgstr ""
11984
11985 #. type: textblock
11986 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4149
11987 msgid ""
11988 "On return you get a list of stat structs, with a one-to-one correspondence "
11989 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11990 "then the C<ino> field of that structure is set to C<-1>."
11991 msgstr ""
11992
11993 #. type: textblock
11994 #: ../fish/guestfish-actions.pod:2781
11995 msgid ""
11996 "This call is intended for programs that want to efficiently list a directory "
11997 "contents without making many round-trips.  See also L</lxattrlist> for a "
11998 "similarly efficient call for getting extended attributes.  Very long "
11999 "directory listings might cause the protocol message size to be exceeded, "
12000 "causing this call to fail.  The caller must split up such requests into "
12001 "smaller groups of names."
12002 msgstr ""
12003
12004 #. type: =head2
12005 #: ../fish/guestfish-actions.pod:2789
12006 msgid "luks-add-key"
12007 msgstr "luks-add-key"
12008
12009 #. type: verbatim
12010 #: ../fish/guestfish-actions.pod:2791
12011 #, no-wrap
12012 msgid ""
12013 " luks-add-key device keyslot\n"
12014 "\n"
12015 msgstr ""
12016
12017 #. type: textblock
12018 #: ../fish/guestfish-actions.pod:2793 ../src/guestfs-actions.pod:4177
12019 msgid ""
12020 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12021 "existing key, and is used to access the device.  C<newkey> is the new key to "
12022 "add.  C<keyslot> is the key slot that will be replaced."
12023 msgstr ""
12024
12025 #. type: textblock
12026 #: ../fish/guestfish-actions.pod:2798
12027 msgid ""
12028 "Note that if C<keyslot> already contains a key, then this command will "
12029 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12030 msgstr ""
12031
12032 #. type: textblock
12033 #: ../fish/guestfish-actions.pod:2802 ../fish/guestfish-actions.pod:2824
12034 #: ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:2851
12035 #: ../fish/guestfish-actions.pod:2877 ../fish/guestfish-actions.pod:2887
12036 msgid ""
12037 "This command has one or more key or passphrase parameters.  Guestfish will "
12038 "prompt for these separately."
12039 msgstr ""
12040
12041 #. type: =head2
12042 #: ../fish/guestfish-actions.pod:2805
12043 msgid "luks-close"
12044 msgstr "luks-close"
12045
12046 #. type: verbatim
12047 #: ../fish/guestfish-actions.pod:2807
12048 #, no-wrap
12049 msgid ""
12050 " luks-close device\n"
12051 "\n"
12052 msgstr ""
12053 " luks-close пристрій\n"
12054 "\n"
12055
12056 #. type: textblock
12057 #: ../fish/guestfish-actions.pod:2809
12058 msgid ""
12059 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12060 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
12061 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12062 "block device."
12063 msgstr ""
12064
12065 #. type: =head2
12066 #: ../fish/guestfish-actions.pod:2815
12067 msgid "luks-format"
12068 msgstr "luks-format"
12069
12070 #. type: verbatim
12071 #: ../fish/guestfish-actions.pod:2817
12072 #, no-wrap
12073 msgid ""
12074 " luks-format device keyslot\n"
12075 "\n"
12076 msgstr ""
12077
12078 #. type: textblock
12079 #: ../fish/guestfish-actions.pod:2819 ../src/guestfs-actions.pod:4218
12080 msgid ""
12081 "This command erases existing data on C<device> and formats the device as a "
12082 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12083 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12084 msgstr ""
12085
12086 #. type: textblock
12087 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2840
12088 #: ../fish/guestfish-actions.pod:2927 ../fish/guestfish-actions.pod:3578
12089 #: ../fish/guestfish-actions.pod:4104 ../fish/guestfish-actions.pod:4441
12090 #: ../fish/guestfish-actions.pod:4464 ../fish/guestfish-actions.pod:4486
12091 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:4225
12092 #: ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4391
12093 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:6272
12094 #: ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6753
12095 #: ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:7985
12096 msgid ""
12097 "B<This command is dangerous.  Without careful use you can easily destroy all "
12098 "your data>."
12099 msgstr ""
12100
12101 #. type: =head2
12102 #: ../fish/guestfish-actions.pod:2830
12103 msgid "luks-format-cipher"
12104 msgstr "luks-format-cipher"
12105
12106 #. type: verbatim
12107 #: ../fish/guestfish-actions.pod:2832
12108 #, no-wrap
12109 msgid ""
12110 " luks-format-cipher device keyslot cipher\n"
12111 "\n"
12112 msgstr ""
12113
12114 #. type: textblock
12115 #: ../fish/guestfish-actions.pod:2834
12116 msgid ""
12117 "This command is the same as L</luks-format> but it also allows you to set "
12118 "the C<cipher> used."
12119 msgstr ""
12120
12121 #. type: =head2
12122 #: ../fish/guestfish-actions.pod:2843
12123 msgid "luks-kill-slot"
12124 msgstr "luks-kill-slot"
12125
12126 #. type: verbatim
12127 #: ../fish/guestfish-actions.pod:2845
12128 #, no-wrap
12129 msgid ""
12130 " luks-kill-slot device keyslot\n"
12131 "\n"
12132 msgstr ""
12133
12134 #. type: textblock
12135 #: ../fish/guestfish-actions.pod:2847 ../src/guestfs-actions.pod:4265
12136 msgid ""
12137 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12138 "device C<device>.  C<key> must be one of the I<other> keys."
12139 msgstr ""
12140
12141 #. type: =head2
12142 #: ../fish/guestfish-actions.pod:2854
12143 msgid "luks-open"
12144 msgstr "luks-open"
12145
12146 #. type: verbatim
12147 #: ../fish/guestfish-actions.pod:2856
12148 #, no-wrap
12149 msgid ""
12150 " luks-open device mapname\n"
12151 "\n"
12152 msgstr ""
12153
12154 #. type: textblock
12155 #: ../fish/guestfish-actions.pod:2858 ../src/guestfs-actions.pod:4285
12156 msgid ""
12157 "This command opens a block device which has been encrypted according to the "
12158 "Linux Unified Key Setup (LUKS) standard."
12159 msgstr ""
12160
12161 #. type: textblock
12162 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4288
12163 msgid "C<device> is the encrypted block device or partition."
12164 msgstr ""
12165
12166 #. type: textblock
12167 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4290
12168 msgid ""
12169 "The caller must supply one of the keys associated with the LUKS block "
12170 "device, in the C<key> parameter."
12171 msgstr ""
12172
12173 #. type: textblock
12174 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4293
12175 msgid ""
12176 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12177 "writes to this block device are decrypted from and encrypted to the "
12178 "underlying C<device> respectively."
12179 msgstr ""
12180
12181 #. type: textblock
12182 #: ../fish/guestfish-actions.pod:2870
12183 msgid ""
12184 "If this block device contains LVM volume groups, then calling L</vgscan> "
12185 "followed by L</vg-activate-all> will make them visible."
12186 msgstr ""
12187
12188 #. type: textblock
12189 #: ../fish/guestfish-actions.pod:2874
12190 msgid "Use L</list-dm-devices> to list all device mapper devices."
12191 msgstr ""
12192
12193 #. type: =head2
12194 #: ../fish/guestfish-actions.pod:2880
12195 msgid "luks-open-ro"
12196 msgstr "luks-open-ro"
12197
12198 #. type: verbatim
12199 #: ../fish/guestfish-actions.pod:2882
12200 #, no-wrap
12201 msgid ""
12202 " luks-open-ro device mapname\n"
12203 "\n"
12204 msgstr ""
12205
12206 #. type: textblock
12207 #: ../fish/guestfish-actions.pod:2884
12208 msgid ""
12209 "This is the same as L</luks-open> except that a read-only mapping is created."
12210 msgstr ""
12211
12212 #. type: =head2
12213 #: ../fish/guestfish-actions.pod:2890
12214 msgid "lvcreate"
12215 msgstr "lvcreate"
12216
12217 #. type: verbatim
12218 #: ../fish/guestfish-actions.pod:2892
12219 #, no-wrap
12220 msgid ""
12221 " lvcreate logvol volgroup mbytes\n"
12222 "\n"
12223 msgstr ""
12224
12225 #. type: textblock
12226 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4339
12227 msgid ""
12228 "This creates an LVM logical volume called C<logvol> on the volume group "
12229 "C<volgroup>, with C<size> megabytes."
12230 msgstr ""
12231
12232 #. type: =head2
12233 #: ../fish/guestfish-actions.pod:2897
12234 msgid "lvm-canonical-lv-name"
12235 msgstr "lvm-canonical-lv-name"
12236
12237 #. type: verbatim
12238 #: ../fish/guestfish-actions.pod:2899
12239 #, no-wrap
12240 msgid ""
12241 " lvm-canonical-lv-name lvname\n"
12242 "\n"
12243 msgstr ""
12244
12245 #. type: textblock
12246 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4352
12247 msgid ""
12248 "This converts alternative naming schemes for LVs that you might find to the "
12249 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12250 "LV>."
12251 msgstr ""
12252
12253 #. type: textblock
12254 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4356
12255 msgid ""
12256 "This command returns an error if the C<lvname> parameter does not refer to a "
12257 "logical volume."
12258 msgstr ""
12259
12260 #. type: textblock
12261 #: ../fish/guestfish-actions.pod:2908
12262 msgid "See also L</is-lv>."
12263 msgstr "Див. також L</is-lv>."
12264
12265 #. type: =head2
12266 #: ../fish/guestfish-actions.pod:2910
12267 msgid "lvm-clear-filter"
12268 msgstr "lvm-clear-filter"
12269
12270 #. type: verbatim
12271 #: ../fish/guestfish-actions.pod:2912
12272 #, no-wrap
12273 msgid ""
12274 " lvm-clear-filter\n"
12275 "\n"
12276 msgstr ""
12277 " lvm-clear-filter\n"
12278 "\n"
12279
12280 #. type: textblock
12281 #: ../fish/guestfish-actions.pod:2914
12282 msgid ""
12283 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12284 "block device."
12285 msgstr ""
12286
12287 #. type: textblock
12288 #: ../fish/guestfish-actions.pod:2917 ../fish/guestfish-actions.pod:2948
12289 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4416
12290 msgid ""
12291 "This command also clears the LVM cache and performs a volume group scan."
12292 msgstr ""
12293
12294 #. type: =head2
12295 #: ../fish/guestfish-actions.pod:2920
12296 msgid "lvm-remove-all"
12297 msgstr "lvm-remove-all"
12298
12299 #. type: verbatim
12300 #: ../fish/guestfish-actions.pod:2922
12301 #, no-wrap
12302 msgid ""
12303 " lvm-remove-all\n"
12304 "\n"
12305 msgstr ""
12306 " lvm-remove-all\n"
12307 "\n"
12308
12309 #. type: textblock
12310 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4386
12311 msgid ""
12312 "This command removes all LVM logical volumes, volume groups and physical "
12313 "volumes."
12314 msgstr ""
12315
12316 #. type: =head2
12317 #: ../fish/guestfish-actions.pod:2930
12318 msgid "lvm-set-filter"
12319 msgstr "lvm-set-filter"
12320
12321 #. type: verbatim
12322 #: ../fish/guestfish-actions.pod:2932
12323 #, no-wrap
12324 msgid ""
12325 " lvm-set-filter 'devices ...'\n"
12326 "\n"
12327 msgstr ""
12328 " lvm-set-filter 'пристрої...'\n"
12329 "\n"
12330
12331 #. type: textblock
12332 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4402
12333 msgid ""
12334 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12335 "block devices in the list C<devices>, and will ignore all other attached "
12336 "block devices."
12337 msgstr ""
12338
12339 #. type: textblock
12340 #: ../fish/guestfish-actions.pod:2938 ../src/guestfs-actions.pod:4406
12341 msgid ""
12342 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12343 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12344 "there are two types of duplication possible: either cloned PVs/VGs which "
12345 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12346 "same name.  In normal operation you cannot create this situation, but you "
12347 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12348 "inside the LVM metadata."
12349 msgstr ""
12350
12351 #. type: textblock
12352 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4419
12353 msgid "You can filter whole block devices or individual partitions."
12354 msgstr ""
12355
12356 #. type: textblock
12357 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4421
12358 msgid ""
12359 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12360 "filesystem), even if you are not filtering out that VG."
12361 msgstr ""
12362
12363 #. type: =head2
12364 #: ../fish/guestfish-actions.pod:2957
12365 msgid "lvremove"
12366 msgstr "lvremove"
12367
12368 #. type: verbatim
12369 #: ../fish/guestfish-actions.pod:2959
12370 #, no-wrap
12371 msgid ""
12372 " lvremove device\n"
12373 "\n"
12374 msgstr ""
12375 " lvremove пристрій\n"
12376 "\n"
12377
12378 #. type: textblock
12379 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4435
12380 msgid ""
12381 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12382 "LV, such as C</dev/VG/LV>."
12383 msgstr ""
12384
12385 #. type: textblock
12386 #: ../fish/guestfish-actions.pod:2964 ../src/guestfs-actions.pod:4438
12387 msgid ""
12388 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12389 "dev/VG>."
12390 msgstr ""
12391
12392 #. type: =head2
12393 #: ../fish/guestfish-actions.pod:2967
12394 msgid "lvrename"
12395 msgstr "lvrename"
12396
12397 #. type: verbatim
12398 #: ../fish/guestfish-actions.pod:2969
12399 #, no-wrap
12400 msgid ""
12401 " lvrename logvol newlogvol\n"
12402 "\n"
12403 msgstr ""
12404
12405 #. type: textblock
12406 #: ../fish/guestfish-actions.pod:2971 ../src/guestfs-actions.pod:4452
12407 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12408 msgstr ""
12409
12410 #. type: =head2
12411 #: ../fish/guestfish-actions.pod:2973
12412 msgid "lvresize"
12413 msgstr "lvresize"
12414
12415 #. type: verbatim
12416 #: ../fish/guestfish-actions.pod:2975
12417 #, no-wrap
12418 msgid ""
12419 " lvresize device mbytes\n"
12420 "\n"
12421 msgstr ""
12422
12423 #. type: textblock
12424 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4465
12425 msgid ""
12426 "This resizes (expands or shrinks) an existing LVM logical volume to "
12427 "C<mbytes>.  When reducing, data in the reduced part is lost."
12428 msgstr ""
12429
12430 #. type: =head2
12431 #: ../fish/guestfish-actions.pod:2981
12432 msgid "lvresize-free"
12433 msgstr "lvresize-free"
12434
12435 #. type: verbatim
12436 #: ../fish/guestfish-actions.pod:2983
12437 #, no-wrap
12438 msgid ""
12439 " lvresize-free lv percent\n"
12440 "\n"
12441 msgstr ""
12442
12443 #. type: textblock
12444 #: ../fish/guestfish-actions.pod:2985 ../src/guestfs-actions.pod:4480
12445 msgid ""
12446 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12447 "remaining free space in the volume group.  Commonly you would call this with "
12448 "pc = 100 which expands the logical volume as much as possible, using all "
12449 "remaining free space in the volume group."
12450 msgstr ""
12451
12452 #. type: =head2
12453 #: ../fish/guestfish-actions.pod:2991
12454 msgid "lvs"
12455 msgstr "lvs"
12456
12457 #. type: verbatim
12458 #: ../fish/guestfish-actions.pod:2993
12459 #, no-wrap
12460 msgid ""
12461 " lvs\n"
12462 "\n"
12463 msgstr ""
12464 " lvs\n"
12465 "\n"
12466
12467 #. type: textblock
12468 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4495
12469 msgid ""
12470 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12471 "(8)> command."
12472 msgstr ""
12473
12474 #. type: textblock
12475 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4498
12476 msgid ""
12477 "This returns a list of the logical volume device names (eg. C</dev/"
12478 "VolGroup00/LogVol00>)."
12479 msgstr ""
12480
12481 #. type: textblock
12482 #: ../fish/guestfish-actions.pod:3001
12483 msgid "See also L</lvs-full>, L</list-filesystems>."
12484 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12485
12486 #. type: =head2
12487 #: ../fish/guestfish-actions.pod:3003
12488 msgid "lvs-full"
12489 msgstr "lvs-full"
12490
12491 #. type: verbatim
12492 #: ../fish/guestfish-actions.pod:3005
12493 #, no-wrap
12494 msgid ""
12495 " lvs-full\n"
12496 "\n"
12497 msgstr ""
12498 " lvs-full\n"
12499 "\n"
12500
12501 #. type: textblock
12502 #: ../fish/guestfish-actions.pod:3007 ../src/guestfs-actions.pod:4514
12503 msgid ""
12504 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12505 "(8)> command.  The \"full\" version includes all fields."
12506 msgstr ""
12507
12508 #. type: =head2
12509 #: ../fish/guestfish-actions.pod:3010
12510 msgid "lvuuid"
12511 msgstr "lvuuid"
12512
12513 #. type: verbatim
12514 #: ../fish/guestfish-actions.pod:3012
12515 #, no-wrap
12516 msgid ""
12517 " lvuuid device\n"
12518 "\n"
12519 msgstr ""
12520 " lvuuid пристрій\n"
12521 "\n"
12522
12523 #. type: textblock
12524 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4529
12525 msgid "This command returns the UUID of the LVM LV C<device>."
12526 msgstr ""
12527
12528 #. type: =head2
12529 #: ../fish/guestfish-actions.pod:3016
12530 msgid "lxattrlist"
12531 msgstr "lxattrlist"
12532
12533 #. type: verbatim
12534 #: ../fish/guestfish-actions.pod:3018
12535 #, no-wrap
12536 msgid ""
12537 " lxattrlist path 'names ...'\n"
12538 "\n"
12539 msgstr ""
12540
12541 #. type: textblock
12542 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4543
12543 msgid ""
12544 "This call allows you to get the extended attributes of multiple files, where "
12545 "all files are in the directory C<path>.  C<names> is the list of files from "
12546 "this directory."
12547 msgstr ""
12548
12549 #. type: textblock
12550 #: ../fish/guestfish-actions.pod:3024 ../src/guestfs-actions.pod:4547
12551 msgid ""
12552 "On return you get a flat list of xattr structs which must be interpreted "
12553 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12554 "C<attrval> in this struct is zero-length to indicate there was an error "
12555 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12556 "number (the number of following attributes for this file, which could be C<"
12557 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12558 "for the first named file.  This repeats for the second and subsequent files."
12559 msgstr ""
12560
12561 #. type: textblock
12562 #: ../fish/guestfish-actions.pod:3034
12563 msgid ""
12564 "This call is intended for programs that want to efficiently list a directory "
12565 "contents without making many round-trips.  See also L</lstatlist> for a "
12566 "similarly efficient call for getting standard stats.  Very long directory "
12567 "listings might cause the protocol message size to be exceeded, causing this "
12568 "call to fail.  The caller must split up such requests into smaller groups of "
12569 "names."
12570 msgstr ""
12571
12572 #. type: =head2
12573 #: ../fish/guestfish-actions.pod:3042
12574 msgid "mkdir"
12575 msgstr "mkdir"
12576
12577 #. type: verbatim
12578 #: ../fish/guestfish-actions.pod:3044
12579 #, no-wrap
12580 msgid ""
12581 " mkdir path\n"
12582 "\n"
12583 msgstr ""
12584 " mkdir шлях\n"
12585 "\n"
12586
12587 #. type: textblock
12588 #: ../fish/guestfish-actions.pod:3046 ../src/guestfs-actions.pod:4577
12589 msgid "Create a directory named C<path>."
12590 msgstr ""
12591
12592 #. type: =head2
12593 #: ../fish/guestfish-actions.pod:3048
12594 msgid "mkdir-mode"
12595 msgstr "mkdir-mode"
12596
12597 #. type: verbatim
12598 #: ../fish/guestfish-actions.pod:3050
12599 #, no-wrap
12600 msgid ""
12601 " mkdir-mode path mode\n"
12602 "\n"
12603 msgstr ""
12604 " mkdir-mode шлях режим\n"
12605 "\n"
12606
12607 #. type: textblock
12608 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4590
12609 msgid ""
12610 "This command creates a directory, setting the initial permissions of the "
12611 "directory to C<mode>."
12612 msgstr ""
12613
12614 #. type: textblock
12615 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4593
12616 msgid ""
12617 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12618 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12619 "other ways."
12620 msgstr ""
12621
12622 #. type: textblock
12623 #: ../fish/guestfish-actions.pod:3059
12624 msgid "See also L</mkdir>, L</umask>"
12625 msgstr "Див. також L</mkdir>, L</umask>"
12626
12627 #. type: =head2
12628 #: ../fish/guestfish-actions.pod:3061
12629 msgid "mkdir-p"
12630 msgstr "mkdir-p"
12631
12632 #. type: verbatim
12633 #: ../fish/guestfish-actions.pod:3063
12634 #, no-wrap
12635 msgid ""
12636 " mkdir-p path\n"
12637 "\n"
12638 msgstr ""
12639 " mkdir-p шлях\n"
12640 "\n"
12641
12642 #. type: textblock
12643 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4609
12644 msgid ""
12645 "Create a directory named C<path>, creating any parent directories as "
12646 "necessary.  This is like the C<mkdir -p> shell command."
12647 msgstr ""
12648
12649 #. type: =head2
12650 #: ../fish/guestfish-actions.pod:3068
12651 msgid "mkdtemp"
12652 msgstr "mkdtemp"
12653
12654 #. type: verbatim
12655 #: ../fish/guestfish-actions.pod:3070
12656 #, no-wrap
12657 msgid ""
12658 " mkdtemp template\n"
12659 "\n"
12660 msgstr ""
12661 " mkdtemp шаблон\n"
12662 "\n"
12663
12664 #. type: textblock
12665 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4622
12666 msgid ""
12667 "This command creates a temporary directory.  The C<template> parameter "
12668 "should be a full pathname for the temporary directory name with the final "
12669 "six characters being \"XXXXXX\"."
12670 msgstr ""
12671
12672 #. type: textblock
12673 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4627
12674 msgid ""
12675 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12676 "being suitable for Windows filesystems."
12677 msgstr ""
12678
12679 #. type: textblock
12680 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4630
12681 msgid "The name of the temporary directory that was created is returned."
12682 msgstr ""
12683
12684 #. type: textblock
12685 #: ../fish/guestfish-actions.pod:3083 ../src/guestfs-actions.pod:4633
12686 msgid "The temporary directory is created with mode 0700 and is owned by root."
12687 msgstr ""
12688
12689 #. type: textblock
12690 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4636
12691 msgid ""
12692 "The caller is responsible for deleting the temporary directory and its "
12693 "contents after use."
12694 msgstr ""
12695
12696 #. type: textblock
12697 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4639
12698 msgid "See also: L<mkdtemp(3)>"
12699 msgstr "Див. також L<mkdtemp(3)>"
12700
12701 #. type: =head2
12702 #: ../fish/guestfish-actions.pod:3091
12703 msgid "mke2fs-J"
12704 msgstr "mke2fs-J"
12705
12706 #. type: verbatim
12707 #: ../fish/guestfish-actions.pod:3093
12708 #, no-wrap
12709 msgid ""
12710 " mke2fs-J fstype blocksize device journal\n"
12711 "\n"
12712 msgstr ""
12713
12714 #. type: textblock
12715 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4655
12716 msgid ""
12717 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12718 "C<journal>.  It is equivalent to the command:"
12719 msgstr ""
12720
12721 #. type: verbatim
12722 #: ../fish/guestfish-actions.pod:3099 ../src/guestfs-actions.pod:4659
12723 #, no-wrap
12724 msgid ""
12725 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12726 "\n"
12727 msgstr ""
12728 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
12729 "\n"
12730
12731 #. type: textblock
12732 #: ../fish/guestfish-actions.pod:3101
12733 msgid "See also L</mke2journal>."
12734 msgstr "Див. також L</mke2journal>."
12735
12736 #. type: =head2
12737 #: ../fish/guestfish-actions.pod:3103
12738 msgid "mke2fs-JL"
12739 msgstr "mke2fs-JL"
12740
12741 #. type: verbatim
12742 #: ../fish/guestfish-actions.pod:3105
12743 #, no-wrap
12744 msgid ""
12745 " mke2fs-JL fstype blocksize device label\n"
12746 "\n"
12747 msgstr ""
12748
12749 #. type: textblock
12750 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4676
12751 msgid ""
12752 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12753 "the journal labeled C<label>."
12754 msgstr ""
12755
12756 #. type: textblock
12757 #: ../fish/guestfish-actions.pod:3110
12758 msgid "See also L</mke2journal-L>."
12759 msgstr "Див. також L</mke2journal-L>."
12760
12761 #. type: =head2
12762 #: ../fish/guestfish-actions.pod:3112
12763 msgid "mke2fs-JU"
12764 msgstr "mke2fs-JU"
12765
12766 #. type: verbatim
12767 #: ../fish/guestfish-actions.pod:3114
12768 #, no-wrap
12769 msgid ""
12770 " mke2fs-JU fstype blocksize device uuid\n"
12771 "\n"
12772 msgstr ""
12773
12774 #. type: textblock
12775 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4694
12776 msgid ""
12777 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12778 "the journal with UUID C<uuid>."
12779 msgstr ""
12780
12781 #. type: textblock
12782 #: ../fish/guestfish-actions.pod:3119
12783 msgid "See also L</mke2journal-U>."
12784 msgstr "Див. також L</mke2journal-U>."
12785
12786 #. type: =head2
12787 #: ../fish/guestfish-actions.pod:3121
12788 msgid "mke2journal"
12789 msgstr "mke2journal"
12790
12791 #. type: verbatim
12792 #: ../fish/guestfish-actions.pod:3123
12793 #, no-wrap
12794 msgid ""
12795 " mke2journal blocksize device\n"
12796 "\n"
12797 msgstr ""
12798
12799 #. type: textblock
12800 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4710
12801 msgid ""
12802 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12803 "command:"
12804 msgstr ""
12805
12806 #. type: verbatim
12807 #: ../fish/guestfish-actions.pod:3128 ../src/guestfs-actions.pod:4713
12808 #, no-wrap
12809 msgid ""
12810 " mke2fs -O journal_dev -b blocksize device\n"
12811 "\n"
12812 msgstr ""
12813
12814 #. type: =head2
12815 #: ../fish/guestfish-actions.pod:3130
12816 msgid "mke2journal-L"
12817 msgstr "mke2journal-L"
12818
12819 #. type: verbatim
12820 #: ../fish/guestfish-actions.pod:3132
12821 #, no-wrap
12822 msgid ""
12823 " mke2journal-L blocksize label device\n"
12824 "\n"
12825 msgstr ""
12826
12827 #. type: textblock
12828 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4727
12829 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12830 msgstr ""
12831
12832 #. type: =head2
12833 #: ../fish/guestfish-actions.pod:3136
12834 msgid "mke2journal-U"
12835 msgstr "mke2journal-U"
12836
12837 #. type: verbatim
12838 #: ../fish/guestfish-actions.pod:3138
12839 #, no-wrap
12840 msgid ""
12841 " mke2journal-U blocksize uuid device\n"
12842 "\n"
12843 msgstr ""
12844
12845 #. type: textblock
12846 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4741
12847 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12848 msgstr ""
12849
12850 #. type: =head2
12851 #: ../fish/guestfish-actions.pod:3142
12852 msgid "mkfifo"
12853 msgstr "mkfifo"
12854
12855 #. type: verbatim
12856 #: ../fish/guestfish-actions.pod:3144
12857 #, no-wrap
12858 msgid ""
12859 " mkfifo mode path\n"
12860 "\n"
12861 msgstr ""
12862 " mkfifo режим шлях\n"
12863 "\n"
12864
12865 #. type: textblock
12866 #: ../fish/guestfish-actions.pod:3146
12867 msgid ""
12868 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12869 "is just a convenient wrapper around L</mknod>."
12870 msgstr ""
12871
12872 #. type: =head2
12873 #: ../fish/guestfish-actions.pod:3152
12874 msgid "mkfs"
12875 msgstr "mkfs"
12876
12877 #. type: verbatim
12878 #: ../fish/guestfish-actions.pod:3154
12879 #, no-wrap
12880 msgid ""
12881 " mkfs fstype device\n"
12882 "\n"
12883 msgstr ""
12884 " mkfs тип_файлової_системи пристрій\n"
12885 "\n"
12886
12887 #. type: textblock
12888 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4771
12889 msgid ""
12890 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12891 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12892 msgstr ""
12893
12894 #. type: =head2
12895 #: ../fish/guestfish-actions.pod:3160
12896 msgid "mkfs-b"
12897 msgstr "mkfs-b"
12898
12899 #. type: verbatim
12900 #: ../fish/guestfish-actions.pod:3162
12901 #, no-wrap
12902 msgid ""
12903 " mkfs-b fstype blocksize device\n"
12904 "\n"
12905 msgstr ""
12906
12907 #. type: textblock
12908 #: ../fish/guestfish-actions.pod:3164
12909 msgid ""
12910 "This call is similar to L</mkfs>, but it allows you to control the block "
12911 "size of the resulting filesystem.  Supported block sizes depend on the "
12912 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12913 msgstr ""
12914
12915 #. type: textblock
12916 #: ../fish/guestfish-actions.pod:3169 ../fish/guestfish-actions.pod:3196
12917 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4837
12918 msgid ""
12919 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12920 "cluster size."
12921 msgstr ""
12922
12923 #. type: textblock
12924 #: ../fish/guestfish-actions.pod:3172
12925 msgid ""
12926 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12927 "instead."
12928 msgstr ""
12929
12930 #. type: =head2
12931 #: ../fish/guestfish-actions.pod:3179
12932 msgid "mkfs-opts"
12933 msgstr "mkfs-opts"
12934
12935 #. type: verbatim
12936 #: ../fish/guestfish-actions.pod:3181
12937 #, no-wrap
12938 msgid ""
12939 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
12940 "\n"
12941 msgstr ""
12942
12943 #. type: textblock
12944 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4824
12945 msgid ""
12946 "This function creates a filesystem on C<device>.  The filesystem type is "
12947 "C<fstype>, for example C<ext3>."
12948 msgstr ""
12949
12950 #. type: =item
12951 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4831
12952 msgid "C<blocksize>"
12953 msgstr "C<blocksize>"
12954
12955 #. type: textblock
12956 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4833
12957 msgid ""
12958 "The filesystem block size.  Supported block sizes depend on the filesystem "
12959 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12960 "filesystems."
12961 msgstr ""
12962
12963 #. type: textblock
12964 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4840
12965 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12966 msgstr ""
12967
12968 #. type: =item
12969 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4842
12970 msgid "C<features>"
12971 msgstr "C<features>"
12972
12973 #. type: textblock
12974 #: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4844
12975 msgid "This passes the I<-O> parameter to the external mkfs program."
12976 msgstr ""
12977
12978 #. type: textblock
12979 #: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4846
12980 msgid ""
12981 "For certain filesystem types, this allows extra filesystem features to be "
12982 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12983 msgstr ""
12984
12985 #. type: textblock
12986 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4850
12987 msgid ""
12988 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12989 "type."
12990 msgstr ""
12991
12992 #. type: =item
12993 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4853
12994 msgid "C<inode>"
12995 msgstr "C<inode>"
12996
12997 #. type: textblock
12998 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4855
12999 msgid ""
13000 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
13001 "sets the inode size (only for ext2/3/4 filesystems at present)."
13002 msgstr ""
13003
13004 #. type: =item
13005 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4858
13006 msgid "C<sectorsize>"
13007 msgstr "C<sectorsize>"
13008
13009 #. type: textblock
13010 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4860
13011 msgid ""
13012 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13013 "sets sector size for ufs filesystem."
13014 msgstr ""
13015
13016 #. type: =head2
13017 #: ../fish/guestfish-actions.pod:3226
13018 msgid "mkmountpoint"
13019 msgstr "mkmountpoint"
13020
13021 #. type: verbatim
13022 #: ../fish/guestfish-actions.pod:3228
13023 #, no-wrap
13024 msgid ""
13025 " mkmountpoint exemptpath\n"
13026 "\n"
13027 msgstr ""
13028
13029 #. type: textblock
13030 #: ../fish/guestfish-actions.pod:3230
13031 msgid ""
13032 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13033 "to create extra mountpoints before mounting the first filesystem."
13034 msgstr ""
13035
13036 #. type: textblock
13037 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4903
13038 msgid ""
13039 "These calls are I<only> necessary in some very limited circumstances, mainly "
13040 "the case where you want to mount a mix of unrelated and/or read-only "
13041 "filesystems together."
13042 msgstr ""
13043
13044 #. type: textblock
13045 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4907
13046 msgid ""
13047 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13048 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13049 "inside that.  You can unpack this as follows in guestfish:"
13050 msgstr ""
13051
13052 #. type: verbatim
13053 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4912
13054 #, no-wrap
13055 msgid ""
13056 " add-ro Fedora-11-i686-Live.iso\n"
13057 " run\n"
13058 " mkmountpoint /cd\n"
13059 " mkmountpoint /sqsh\n"
13060 " mkmountpoint /ext3fs\n"
13061 " mount /dev/sda /cd\n"
13062 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13063 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13064 "\n"
13065 msgstr ""
13066 " add-ro Fedora-11-i686-Live.iso\n"
13067 " run\n"
13068 " mkmountpoint /cd\n"
13069 " mkmountpoint /sqsh\n"
13070 " mkmountpoint /ext3fs\n"
13071 " mount /dev/sda /cd\n"
13072 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13073 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13074 "\n"
13075
13076 #. type: textblock
13077 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4921
13078 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13079 msgstr ""
13080
13081 #. type: textblock
13082 #: ../fish/guestfish-actions.pod:3254
13083 msgid ""
13084 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13085 "unexpected errors if you try to mix these calls.  It is safest to manually "
13086 "unmount filesystems and remove mountpoints after use."
13087 msgstr ""
13088
13089 #. type: textblock
13090 #: ../fish/guestfish-actions.pod:3258
13091 msgid ""
13092 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13093 "for this to work for manual mountpoints, you must ensure that the innermost "
13094 "mountpoints have the longest pathnames, as in the example code above."
13095 msgstr ""
13096
13097 #. type: textblock
13098 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4932
13099 msgid ""
13100 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13101 msgstr ""
13102
13103 #. type: textblock
13104 #: ../fish/guestfish-actions.pod:3265
13105 msgid ""
13106 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13107 "L</umount-all> to be called when the handle is closed which can also trigger "
13108 "these issues."
13109 msgstr ""
13110
13111 #. type: =head2
13112 #: ../fish/guestfish-actions.pod:3269
13113 msgid "mknod"
13114 msgstr "mknod"
13115
13116 #. type: verbatim
13117 #: ../fish/guestfish-actions.pod:3271
13118 #, no-wrap
13119 msgid ""
13120 " mknod mode devmajor devminor path\n"
13121 "\n"
13122 msgstr ""
13123
13124 #. type: textblock
13125 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:4951
13126 msgid ""
13127 "This call creates block or character special devices, or named pipes (FIFOs)."
13128 msgstr ""
13129
13130 #. type: textblock
13131 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4954
13132 msgid ""
13133 "The C<mode> parameter should be the mode, using the standard constants.  "
13134 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13135 "used when creating block and character special devices."
13136 msgstr ""
13137
13138 #. type: textblock
13139 #: ../fish/guestfish-actions.pod:3281
13140 msgid ""
13141 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13142 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13143 "regular file).  These constants are available in the standard Linux header "
13144 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13145 "wrappers around this command which bitwise OR in the appropriate constant "
13146 "for you."
13147 msgstr ""
13148
13149 #. type: =head2
13150 #: ../fish/guestfish-actions.pod:3291
13151 msgid "mknod-b"
13152 msgstr "mknod-b"
13153
13154 #. type: verbatim
13155 #: ../fish/guestfish-actions.pod:3293
13156 #, no-wrap
13157 msgid ""
13158 " mknod-b mode devmajor devminor path\n"
13159 "\n"
13160 msgstr ""
13161
13162 #. type: textblock
13163 #: ../fish/guestfish-actions.pod:3295
13164 msgid ""
13165 "This call creates a block device node called C<path> with mode C<mode> and "
13166 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13167 "wrapper around L</mknod>."
13168 msgstr ""
13169
13170 #. type: =head2
13171 #: ../fish/guestfish-actions.pod:3301
13172 msgid "mknod-c"
13173 msgstr "mknod-c"
13174
13175 #. type: verbatim
13176 #: ../fish/guestfish-actions.pod:3303
13177 #, no-wrap
13178 msgid ""
13179 " mknod-c mode devmajor devminor path\n"
13180 "\n"
13181 msgstr ""
13182
13183 #. type: textblock
13184 #: ../fish/guestfish-actions.pod:3305
13185 msgid ""
13186 "This call creates a char device node called C<path> with mode C<mode> and "
13187 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13188 "wrapper around L</mknod>."
13189 msgstr ""
13190
13191 #. type: =head2
13192 #: ../fish/guestfish-actions.pod:3311
13193 msgid "mkswap"
13194 msgstr "mkswap"
13195
13196 #. type: verbatim
13197 #: ../fish/guestfish-actions.pod:3313
13198 #, no-wrap
13199 msgid ""
13200 " mkswap device\n"
13201 "\n"
13202 msgstr ""
13203 " mkswap пристрій\n"
13204 "\n"
13205
13206 #. type: textblock
13207 #: ../fish/guestfish-actions.pod:3315 ../src/guestfs-actions.pod:5017
13208 msgid "Create a swap partition on C<device>."
13209 msgstr ""
13210
13211 #. type: =head2
13212 #: ../fish/guestfish-actions.pod:3317
13213 msgid "mkswap-L"
13214 msgstr "mkswap-L"
13215
13216 #. type: verbatim
13217 #: ../fish/guestfish-actions.pod:3319
13218 #, no-wrap
13219 msgid ""
13220 " mkswap-L label device\n"
13221 "\n"
13222 msgstr ""
13223 " mkswap-L мітка пристрій\n"
13224 "\n"
13225
13226 #. type: textblock
13227 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5030
13228 msgid "Create a swap partition on C<device> with label C<label>."
13229 msgstr ""
13230
13231 #. type: textblock
13232 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5032
13233 msgid ""
13234 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13235 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13236 "or swap tools."
13237 msgstr ""
13238
13239 #. type: =head2
13240 #: ../fish/guestfish-actions.pod:3327
13241 msgid "mkswap-U"
13242 msgstr "mkswap-U"
13243
13244 #. type: verbatim
13245 #: ../fish/guestfish-actions.pod:3329
13246 #, no-wrap
13247 msgid ""
13248 " mkswap-U uuid device\n"
13249 "\n"
13250 msgstr ""
13251 " mkswap-U uuid пристрій\n"
13252 "\n"
13253
13254 #. type: textblock
13255 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5047
13256 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13257 msgstr ""
13258
13259 #. type: =head2
13260 #: ../fish/guestfish-actions.pod:3333
13261 msgid "mkswap-file"
13262 msgstr "mkswap-file"
13263
13264 #. type: verbatim
13265 #: ../fish/guestfish-actions.pod:3335
13266 #, no-wrap
13267 msgid ""
13268 " mkswap-file path\n"
13269 "\n"
13270 msgstr ""
13271 " mkswap-file шлях\n"
13272 "\n"
13273
13274 #. type: textblock
13275 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5059
13276 msgid "Create a swap file."
13277 msgstr "Створити файл резервної пам’яті."
13278
13279 #. type: textblock
13280 #: ../fish/guestfish-actions.pod:3339
13281 msgid ""
13282 "This command just writes a swap file signature to an existing file.  To "
13283 "create the file itself, use something like L</fallocate>."
13284 msgstr ""
13285
13286 #. type: =head2
13287 #: ../fish/guestfish-actions.pod:3342
13288 msgid "modprobe"
13289 msgstr "modprobe"
13290
13291 #. type: verbatim
13292 #: ../fish/guestfish-actions.pod:3344
13293 #, no-wrap
13294 msgid ""
13295 " modprobe modulename\n"
13296 "\n"
13297 msgstr ""
13298 " modprobe назва_модуля\n"
13299 "\n"
13300
13301 #. type: textblock
13302 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5074
13303 msgid "This loads a kernel module in the appliance."
13304 msgstr ""
13305
13306 #. type: textblock
13307 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5076
13308 msgid ""
13309 "The kernel module must have been whitelisted when libguestfs was built (see "
13310 "C<appliance/kmod.whitelist.in> in the source)."
13311 msgstr ""
13312
13313 #. type: =head2
13314 #: ../fish/guestfish-actions.pod:3351
13315 msgid "mount"
13316 msgstr "mount"
13317
13318 #. type: verbatim
13319 #: ../fish/guestfish-actions.pod:3353
13320 #, no-wrap
13321 msgid ""
13322 " mount device mountpoint\n"
13323 "\n"
13324 msgstr ""
13325 " mount пристрій точка_монтування\n"
13326 "\n"
13327
13328 #. type: textblock
13329 #: ../fish/guestfish-actions.pod:3355 ../src/guestfs-actions.pod:5090
13330 msgid ""
13331 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13332 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13333 "those block devices contain partitions, they will have the usual names (eg. "
13334 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13335 msgstr ""
13336
13337 #. type: textblock
13338 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
13339 msgid ""
13340 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13341 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13342 "mounted on directories which already exist."
13343 msgstr ""
13344
13345 #. type: textblock
13346 #: ../fish/guestfish-actions.pod:3366 ../src/guestfs-actions.pod:5101
13347 msgid ""
13348 "The mounted filesystem is writable, if we have sufficient permissions on the "
13349 "underlying device."
13350 msgstr ""
13351
13352 #. type: textblock
13353 #: ../fish/guestfish-actions.pod:3369
13354 msgid ""
13355 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13356 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13357 "problems for users.  If your program might need to work with older versions "
13358 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13359 "first parameter if you don't want any options)."
13360 msgstr ""
13361
13362 #. type: =head2
13363 #: ../fish/guestfish-actions.pod:3376
13364 msgid "mount-9p"
13365 msgstr ""
13366
13367 #. type: verbatim
13368 #: ../fish/guestfish-actions.pod:3378
13369 #, no-wrap
13370 msgid ""
13371 " mount-9p mounttag mountpoint [options:..]\n"
13372 "\n"
13373 msgstr ""
13374
13375 #. type: textblock
13376 #: ../fish/guestfish-actions.pod:3380 ../src/guestfs-actions.pod:5130
13377 msgid ""
13378 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13379 "C<mountpoint>."
13380 msgstr ""
13381
13382 #. type: textblock
13383 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5133
13384 msgid ""
13385 "If required, C<trans=virtio> will be automatically added to the options.  "
13386 "Any other options required can be passed in the optional C<options> "
13387 "parameter."
13388 msgstr ""
13389
13390 #. type: =head2
13391 #: ../fish/guestfish-actions.pod:3389
13392 msgid "mount-loop"
13393 msgstr "mount-loop"
13394
13395 #. type: verbatim
13396 #: ../fish/guestfish-actions.pod:3391
13397 #, no-wrap
13398 msgid ""
13399 " mount-loop file mountpoint\n"
13400 "\n"
13401 msgstr ""
13402
13403 #. type: textblock
13404 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5172
13405 msgid ""
13406 "This command lets you mount C<file> (a filesystem image in a file) on a "
13407 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13408 "mountpoint>."
13409 msgstr ""
13410
13411 #. type: =head2
13412 #: ../fish/guestfish-actions.pod:3397
13413 msgid "mount-options"
13414 msgstr "mount-options"
13415
13416 #. type: verbatim
13417 #: ../fish/guestfish-actions.pod:3399
13418 #, no-wrap
13419 msgid ""
13420 " mount-options options device mountpoint\n"
13421 "\n"
13422 msgstr ""
13423
13424 #. type: textblock
13425 #: ../fish/guestfish-actions.pod:3401
13426 msgid ""
13427 "This is the same as the L</mount> command, but it allows you to set the "
13428 "mount options as for the L<mount(8)> I<-o> flag."
13429 msgstr ""
13430
13431 #. type: textblock
13432 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5192
13433 msgid ""
13434 "If the C<options> parameter is an empty string, then no options are passed "
13435 "(all options default to whatever the filesystem uses)."
13436 msgstr ""
13437
13438 #. type: =head2
13439 #: ../fish/guestfish-actions.pod:3409
13440 msgid "mount-ro"
13441 msgstr "mount-ro"
13442
13443 #. type: verbatim
13444 #: ../fish/guestfish-actions.pod:3411
13445 #, no-wrap
13446 msgid ""
13447 " mount-ro device mountpoint\n"
13448 "\n"
13449 msgstr ""
13450 " mount-ro пристрій точка_монтування\n"
13451 "\n"
13452
13453 #. type: textblock
13454 #: ../fish/guestfish-actions.pod:3413
13455 msgid ""
13456 "This is the same as the L</mount> command, but it mounts the filesystem with "
13457 "the read-only (I<-o ro>) flag."
13458 msgstr ""
13459
13460 #. type: =head2
13461 #: ../fish/guestfish-actions.pod:3416
13462 msgid "mount-vfs"
13463 msgstr "mount-vfs"
13464
13465 #. type: verbatim
13466 #: ../fish/guestfish-actions.pod:3418
13467 #, no-wrap
13468 msgid ""
13469 " mount-vfs options vfstype device mountpoint\n"
13470 "\n"
13471 msgstr ""
13472
13473 #. type: textblock
13474 #: ../fish/guestfish-actions.pod:3420
13475 msgid ""
13476 "This is the same as the L</mount> command, but it allows you to set both the "
13477 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13478 msgstr ""
13479
13480 #. type: =head2
13481 #: ../fish/guestfish-actions.pod:3424
13482 msgid "mountpoints"
13483 msgstr "mountpoints"
13484
13485 #. type: verbatim
13486 #: ../fish/guestfish-actions.pod:3426
13487 #, no-wrap
13488 msgid ""
13489 " mountpoints\n"
13490 "\n"
13491 msgstr ""
13492 " mountpoints\n"
13493 "\n"
13494
13495 #. type: textblock
13496 #: ../fish/guestfish-actions.pod:3428
13497 msgid ""
13498 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13499 "This one returns a hash table (map) of device name to directory where the "
13500 "device is mounted."
13501 msgstr ""
13502
13503 #. type: =head2
13504 #: ../fish/guestfish-actions.pod:3432
13505 msgid "mounts"
13506 msgstr "mounts"
13507
13508 #. type: verbatim
13509 #: ../fish/guestfish-actions.pod:3434
13510 #, no-wrap
13511 msgid ""
13512 " mounts\n"
13513 "\n"
13514 msgstr ""
13515 " mounts\n"
13516 "\n"
13517
13518 #. type: textblock
13519 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5253
13520 msgid ""
13521 "This returns the list of currently mounted filesystems.  It returns the list "
13522 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13523 msgstr ""
13524
13525 #. type: textblock
13526 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5256
13527 msgid "Some internal mounts are not shown."
13528 msgstr ""
13529
13530 #. type: textblock
13531 #: ../fish/guestfish-actions.pod:3441
13532 msgid "See also: L</mountpoints>"
13533 msgstr "Див. також L</mountpoints>"
13534
13535 #. type: =head2
13536 #: ../fish/guestfish-actions.pod:3443
13537 msgid "mv"
13538 msgstr "mv"
13539
13540 #. type: verbatim
13541 #: ../fish/guestfish-actions.pod:3445
13542 #, no-wrap
13543 msgid ""
13544 " mv src dest\n"
13545 "\n"
13546 msgstr ""
13547 " mv джерело призначення\n"
13548 "\n"
13549
13550 #. type: textblock
13551 #: ../fish/guestfish-actions.pod:3447 ../src/guestfs-actions.pod:5273
13552 msgid ""
13553 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13554 "destination filename or destination directory."
13555 msgstr ""
13556
13557 #. type: =head2
13558 #: ../fish/guestfish-actions.pod:3450
13559 msgid "ntfs-3g-probe"
13560 msgstr "ntfs-3g-probe"
13561
13562 #. type: verbatim
13563 #: ../fish/guestfish-actions.pod:3452
13564 #, no-wrap
13565 msgid ""
13566 " ntfs-3g-probe true|false device\n"
13567 "\n"
13568 msgstr ""
13569
13570 #. type: textblock
13571 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5287
13572 msgid ""
13573 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13574 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
13575 "write, and some cannot be mounted at all)."
13576 msgstr ""
13577
13578 #. type: textblock
13579 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5291
13580 msgid ""
13581 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13582 "can be mounted read-write.  Set it to false if you want to test if the "
13583 "volume can be mounted read-only."
13584 msgstr ""
13585
13586 #. type: textblock
13587 #: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5295
13588 msgid ""
13589 "The return value is an integer which C<0> if the operation would succeed, or "
13590 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13591 msgstr ""
13592
13593 #. type: =head2
13594 #: ../fish/guestfish-actions.pod:3466
13595 msgid "ntfsresize"
13596 msgstr "ntfsresize"
13597
13598 #. type: verbatim
13599 #: ../fish/guestfish-actions.pod:3468
13600 #, no-wrap
13601 msgid ""
13602 " ntfsresize device\n"
13603 "\n"
13604 msgstr ""
13605 " ntfsresize пристрій\n"
13606 "\n"
13607
13608 #. type: textblock
13609 #: ../fish/guestfish-actions.pod:3470 ../fish/guestfish-actions.pod:3494
13610 #: ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5348
13611 msgid ""
13612 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13613 "size of the underlying device."
13614 msgstr ""
13615
13616 #. type: textblock
13617 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5319
13618 msgid ""
13619 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13620 "consistency check (for safety).  You have to boot into Windows to perform "
13621 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13622 "resize filesystems which have been marked in this way.  So in effect it is "
13623 "not possible to call ntfsresize multiple times on a single filesystem "
13624 "without booting into Windows between each resize."
13625 msgstr ""
13626
13627 #. type: textblock
13628 #: ../fish/guestfish-actions.pod:3481 ../fish/guestfish-actions.pod:3520
13629 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:5374
13630 msgid "See also L<ntfsresize(8)>."
13631 msgstr "Див. також L<ntfsresize(8)>."
13632
13633 #. type: textblock
13634 #: ../fish/guestfish-actions.pod:3483 ../fish/guestfish-actions.pod:3531
13635 msgid ""
13636 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13637 "call instead."
13638 msgstr ""
13639
13640 #. type: =head2
13641 #: ../fish/guestfish-actions.pod:3490
13642 msgid "ntfsresize-opts"
13643 msgstr ""
13644
13645 #. type: verbatim
13646 #: ../fish/guestfish-actions.pod:3492
13647 #, no-wrap
13648 msgid ""
13649 " ntfsresize-opts device [size:..] [force:..]\n"
13650 "\n"
13651 msgstr ""
13652
13653 #. type: textblock
13654 #: ../fish/guestfish-actions.pod:3503 ../src/guestfs-actions.pod:5357
13655 msgid ""
13656 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13657 "resized to fit the container (eg. partition)."
13658 msgstr ""
13659
13660 #. type: =item
13661 #: ../fish/guestfish-actions.pod:3506 ../src/guestfs-actions.pod:5360
13662 msgid "C<force>"
13663 msgstr "C<force>"
13664
13665 #. type: textblock
13666 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5362
13667 msgid ""
13668 "If this option is true, then force the resize of the filesystem even if the "
13669 "filesystem is marked as requiring a consistency check."
13670 msgstr ""
13671
13672 #. type: textblock
13673 #: ../fish/guestfish-actions.pod:3511
13674 msgid ""
13675 "After the resize operation, the filesystem is always marked as requiring a "
13676 "consistency check (for safety).  You have to boot into Windows to perform "
13677 "this check and clear this condition.  If you I<don't> set the C<force> "
13678 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13679 "a single filesystem without booting into Windows between each resize."
13680 msgstr ""
13681
13682 #. type: =head2
13683 #: ../fish/guestfish-actions.pod:3524
13684 msgid "ntfsresize-size"
13685 msgstr "ntfsresize-size"
13686
13687 #. type: verbatim
13688 #: ../fish/guestfish-actions.pod:3526
13689 #, no-wrap
13690 msgid ""
13691 " ntfsresize-size device size\n"
13692 "\n"
13693 msgstr ""
13694
13695 #. type: textblock
13696 #: ../fish/guestfish-actions.pod:3528
13697 msgid ""
13698 "This command is the same as L</ntfsresize> except that it allows you to "
13699 "specify the new size (in bytes) explicitly."
13700 msgstr ""
13701
13702 #. type: =head2
13703 #: ../fish/guestfish-actions.pod:3538
13704 msgid "part-add"
13705 msgstr "part-add"
13706
13707 #. type: verbatim
13708 #: ../fish/guestfish-actions.pod:3540
13709 #, no-wrap
13710 msgid ""
13711 " part-add device prlogex startsect endsect\n"
13712 "\n"
13713 msgstr ""
13714
13715 #. type: textblock
13716 #: ../fish/guestfish-actions.pod:3542
13717 msgid ""
13718 "This command adds a partition to C<device>.  If there is no partition table "
13719 "on the device, call L</part-init> first."
13720 msgstr ""
13721
13722 #. type: textblock
13723 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5435
13724 msgid ""
13725 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13726 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13727 "C<logical>) and C<e> (or C<extended>) partition types."
13728 msgstr ""
13729
13730 #. type: textblock
13731 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5440
13732 msgid ""
13733 "C<startsect> and C<endsect> are the start and end of the partition in "
13734 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13735 "from the end of the disk (C<-1> is the last sector)."
13736 msgstr ""
13737
13738 #. type: textblock
13739 #: ../fish/guestfish-actions.pod:3554
13740 msgid ""
13741 "Creating a partition which covers the whole disk is not so easy.  Use L</"
13742 "part-disk> to do that."
13743 msgstr ""
13744
13745 #. type: =head2
13746 #: ../fish/guestfish-actions.pod:3557
13747 msgid "part-del"
13748 msgstr "part-del"
13749
13750 #. type: verbatim
13751 #: ../fish/guestfish-actions.pod:3559
13752 #, no-wrap
13753 msgid ""
13754 " part-del device partnum\n"
13755 "\n"
13756 msgstr ""
13757
13758 #. type: textblock
13759 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5458
13760 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13761 msgstr ""
13762
13763 #. type: textblock
13764 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5460
13765 msgid ""
13766 "Note that in the case of MBR partitioning, deleting an extended partition "
13767 "also deletes any logical partitions it contains."
13768 msgstr ""
13769
13770 #. type: =head2
13771 #: ../fish/guestfish-actions.pod:3567
13772 msgid "part-disk"
13773 msgstr "part-disk"
13774
13775 #. type: verbatim
13776 #: ../fish/guestfish-actions.pod:3569
13777 #, no-wrap
13778 msgid ""
13779 " part-disk device parttype\n"
13780 "\n"
13781 msgstr ""
13782 " part-disk пристрій тип_розділу\n"
13783 "\n"
13784
13785 #. type: textblock
13786 #: ../fish/guestfish-actions.pod:3571
13787 msgid ""
13788 "This command is simply a combination of L</part-init> followed by L</part-"
13789 "add> to create a single primary partition covering the whole disk."
13790 msgstr ""
13791
13792 #. type: textblock
13793 #: ../fish/guestfish-actions.pod:3575
13794 msgid ""
13795 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13796 "possible values are described in L</part-init>."
13797 msgstr ""
13798
13799 #. type: =head2
13800 #: ../fish/guestfish-actions.pod:3581
13801 msgid "part-get-bootable"
13802 msgstr "part-get-bootable"
13803
13804 #. type: verbatim
13805 #: ../fish/guestfish-actions.pod:3583
13806 #, no-wrap
13807 msgid ""
13808 " part-get-bootable device partnum\n"
13809 "\n"
13810 msgstr ""
13811
13812 #. type: textblock
13813 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5496
13814 msgid ""
13815 "This command returns true if the partition C<partnum> on C<device> has the "
13816 "bootable flag set."
13817 msgstr ""
13818
13819 #. type: textblock
13820 #: ../fish/guestfish-actions.pod:3588
13821 msgid "See also L</part-set-bootable>."
13822 msgstr "Див. також L</part-set-bootable>."
13823
13824 #. type: =head2
13825 #: ../fish/guestfish-actions.pod:3590
13826 msgid "part-get-mbr-id"
13827 msgstr "part-get-mbr-id"
13828
13829 #. type: verbatim
13830 #: ../fish/guestfish-actions.pod:3592
13831 #, no-wrap
13832 msgid ""
13833 " part-get-mbr-id device partnum\n"
13834 "\n"
13835 msgstr ""
13836
13837 #. type: textblock
13838 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5512
13839 msgid ""
13840 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13841 "partition C<partnum>."
13842 msgstr ""
13843
13844 #. type: textblock
13845 #: ../fish/guestfish-actions.pod:3597 ../fish/guestfish-actions.pod:3741
13846 msgid ""
13847 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13848 "undefined results for other partition table types (see L</part-get-"
13849 "parttype>)."
13850 msgstr ""
13851
13852 #. type: =head2
13853 #: ../fish/guestfish-actions.pod:3601
13854 msgid "part-get-parttype"
13855 msgstr "part-get-parttype"
13856
13857 #. type: verbatim
13858 #: ../fish/guestfish-actions.pod:3603
13859 #, no-wrap
13860 msgid ""
13861 " part-get-parttype device\n"
13862 "\n"
13863 msgstr ""
13864 " part-get-parttype пристрій\n"
13865 "\n"
13866
13867 #. type: textblock
13868 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5529
13869 msgid ""
13870 "This command examines the partition table on C<device> and returns the "
13871 "partition table type (format) being used."
13872 msgstr ""
13873
13874 #. type: textblock
13875 #: ../fish/guestfish-actions.pod:3608
13876 msgid ""
13877 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13878 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13879 "possible, although unusual.  See L</part-init> for a full list."
13880 msgstr ""
13881
13882 #. type: =head2
13883 #: ../fish/guestfish-actions.pod:3613
13884 msgid "part-init"
13885 msgstr "part-init"
13886
13887 #. type: verbatim
13888 #: ../fish/guestfish-actions.pod:3615
13889 #, no-wrap
13890 msgid ""
13891 " part-init device parttype\n"
13892 "\n"
13893 msgstr ""
13894
13895 #. type: textblock
13896 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5549
13897 msgid ""
13898 "This creates an empty partition table on C<device> of one of the partition "
13899 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13900 "(for large disks)."
13901 msgstr ""
13902
13903 #. type: textblock
13904 #: ../fish/guestfish-actions.pod:3621
13905 msgid ""
13906 "Initially there are no partitions.  Following this, you should call L</part-"
13907 "add> for each partition required."
13908 msgstr ""
13909
13910 #. type: textblock
13911 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5556
13912 msgid "Possible values for C<parttype> are:"
13913 msgstr ""
13914
13915 #. type: =item
13916 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5560
13917 msgid "B<efi>"
13918 msgstr "B<efi>"
13919
13920 #. type: =item
13921 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5562
13922 msgid "B<gpt>"
13923 msgstr "B<gpt>"
13924
13925 #. type: textblock
13926 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5564
13927 msgid "Intel EFI / GPT partition table."
13928 msgstr ""
13929
13930 #. type: textblock
13931 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5566
13932 msgid ""
13933 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13934 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13935 "the C<mbr> format."
13936 msgstr ""
13937
13938 #. type: =item
13939 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5570
13940 msgid "B<mbr>"
13941 msgstr "B<mbr>"
13942
13943 #. type: =item
13944 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5572
13945 msgid "B<msdos>"
13946 msgstr "B<msdos>"
13947
13948 #. type: textblock
13949 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5574
13950 msgid ""
13951 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13952 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13953 "TB.  For large disks we recommend using C<gpt>."
13954 msgstr ""
13955
13956 #. type: textblock
13957 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5581
13958 msgid ""
13959 "Other partition table types that may work but are not supported include:"
13960 msgstr ""
13961
13962 #. type: =item
13963 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5586
13964 msgid "B<aix>"
13965 msgstr "B<aix>"
13966
13967 #. type: textblock
13968 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5588
13969 msgid "AIX disk labels."
13970 msgstr "Мітки дисків AIX."
13971
13972 #. type: =item
13973 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5590
13974 msgid "B<amiga>"
13975 msgstr "B<amiga>"
13976
13977 #. type: =item
13978 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5592
13979 msgid "B<rdb>"
13980 msgstr "B<rdb>"
13981
13982 #. type: textblock
13983 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5594
13984 msgid "Amiga \"Rigid Disk Block\" format."
13985 msgstr "Формат \"Rigid Disk Block\" Amiga."
13986
13987 #. type: =item
13988 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5596
13989 msgid "B<bsd>"
13990 msgstr "B<bsd>"
13991
13992 #. type: textblock
13993 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5598
13994 msgid "BSD disk labels."
13995 msgstr "Мітки дисків BSD."
13996
13997 #. type: =item
13998 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5600
13999 msgid "B<dasd>"
14000 msgstr "B<dasd>"
14001
14002 #. type: textblock
14003 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5602
14004 msgid "DASD, used on IBM mainframes."
14005 msgstr "DASD, використовувалися у мейнфреймах IBM."
14006
14007 #. type: =item
14008 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5604
14009 msgid "B<dvh>"
14010 msgstr "B<dvh>"
14011
14012 #. type: textblock
14013 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5606
14014 msgid "MIPS/SGI volumes."
14015 msgstr "Томи MIPS/SGI."
14016
14017 #. type: =item
14018 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5608
14019 msgid "B<mac>"
14020 msgstr "B<mac>"
14021
14022 #. type: textblock
14023 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5610
14024 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14025 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14026
14027 #. type: =item
14028 #: ../fish/guestfish-actions.pod:3680 ../src/guestfs-actions.pod:5612
14029 msgid "B<pc98>"
14030 msgstr "B<pc98>"
14031
14032 #. type: textblock
14033 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5614
14034 msgid "NEC PC-98 format, common in Japan apparently."
14035 msgstr "Формат NEC PC-98, поширений у Японії."
14036
14037 #. type: =item
14038 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5616
14039 msgid "B<sun>"
14040 msgstr "B<sun>"
14041
14042 #. type: textblock
14043 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5618
14044 msgid "Sun disk labels."
14045 msgstr "Мітки дисків Sun."
14046
14047 #. type: =head2
14048 #: ../fish/guestfish-actions.pod:3690
14049 msgid "part-list"
14050 msgstr "part-list"
14051
14052 #. type: verbatim
14053 #: ../fish/guestfish-actions.pod:3692
14054 #, no-wrap
14055 msgid ""
14056 " part-list device\n"
14057 "\n"
14058 msgstr ""
14059 " part-list device\n"
14060 "\n"
14061
14062 #. type: textblock
14063 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5632
14064 msgid ""
14065 "This command parses the partition table on C<device> and returns the list of "
14066 "partitions found."
14067 msgstr ""
14068
14069 #. type: textblock
14070 #: ../fish/guestfish-actions.pod:3697 ../src/guestfs-actions.pod:5635
14071 msgid "The fields in the returned structure are:"
14072 msgstr ""
14073
14074 #. type: =item
14075 #: ../fish/guestfish-actions.pod:3701 ../src/guestfs-actions.pod:5639
14076 msgid "B<part_num>"
14077 msgstr "B<part_num>"
14078
14079 #. type: textblock
14080 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5641
14081 msgid "Partition number, counting from 1."
14082 msgstr ""
14083
14084 #. type: =item
14085 #: ../fish/guestfish-actions.pod:3705 ../src/guestfs-actions.pod:5643
14086 msgid "B<part_start>"
14087 msgstr "B<part_start>"
14088
14089 #. type: textblock
14090 #: ../fish/guestfish-actions.pod:3707
14091 msgid ""
14092 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14093 "the device's sector size, see L</blockdev-getss>."
14094 msgstr ""
14095
14096 #. type: =item
14097 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5648
14098 msgid "B<part_end>"
14099 msgstr "B<part_end>"
14100
14101 #. type: textblock
14102 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5650
14103 msgid "End of the partition in bytes."
14104 msgstr ""
14105
14106 #. type: =item
14107 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5652
14108 msgid "B<part_size>"
14109 msgstr "B<part_size>"
14110
14111 #. type: textblock
14112 #: ../fish/guestfish-actions.pod:3716 ../src/guestfs-actions.pod:5654
14113 msgid "Size of the partition in bytes."
14114 msgstr ""
14115
14116 #. type: =head2
14117 #: ../fish/guestfish-actions.pod:3720
14118 msgid "part-set-bootable"
14119 msgstr "part-set-bootable"
14120
14121 #. type: verbatim
14122 #: ../fish/guestfish-actions.pod:3722
14123 #, no-wrap
14124 msgid ""
14125 " part-set-bootable device partnum true|false\n"
14126 "\n"
14127 msgstr ""
14128
14129 #. type: textblock
14130 #: ../fish/guestfish-actions.pod:3724 ../src/guestfs-actions.pod:5672
14131 msgid ""
14132 "This sets the bootable flag on partition numbered C<partnum> on device "
14133 "C<device>.  Note that partitions are numbered from 1."
14134 msgstr ""
14135
14136 #. type: textblock
14137 #: ../fish/guestfish-actions.pod:3727 ../src/guestfs-actions.pod:5675
14138 msgid ""
14139 "The bootable flag is used by some operating systems (notably Windows) to "
14140 "determine which partition to boot from.  It is by no means universally "
14141 "recognized."
14142 msgstr ""
14143
14144 #. type: =head2
14145 #: ../fish/guestfish-actions.pod:3731
14146 msgid "part-set-mbr-id"
14147 msgstr "part-set-mbr-id"
14148
14149 #. type: verbatim
14150 #: ../fish/guestfish-actions.pod:3733
14151 #, no-wrap
14152 msgid ""
14153 " part-set-mbr-id device partnum idbyte\n"
14154 "\n"
14155 msgstr ""
14156
14157 #. type: textblock
14158 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5691
14159 msgid ""
14160 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14161 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14162 "documentation are in fact hexadecimal numbers, but usually documented "
14163 "without any leading \"0x\" which might be confusing."
14164 msgstr ""
14165
14166 #. type: =head2
14167 #: ../fish/guestfish-actions.pod:3745
14168 msgid "part-set-name"
14169 msgstr "part-set-name"
14170
14171 #. type: verbatim
14172 #: ../fish/guestfish-actions.pod:3747
14173 #, no-wrap
14174 msgid ""
14175 " part-set-name device partnum name\n"
14176 "\n"
14177 msgstr ""
14178
14179 #. type: textblock
14180 #: ../fish/guestfish-actions.pod:3749 ../src/guestfs-actions.pod:5713
14181 msgid ""
14182 "This sets the partition name on partition numbered C<partnum> on device "
14183 "C<device>.  Note that partitions are numbered from 1."
14184 msgstr ""
14185
14186 #. type: textblock
14187 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5716
14188 msgid ""
14189 "The partition name can only be set on certain types of partition table.  "
14190 "This works on C<gpt> but not on C<mbr> partitions."
14191 msgstr ""
14192
14193 #. type: =head2
14194 #: ../fish/guestfish-actions.pod:3755
14195 msgid "part-to-dev"
14196 msgstr "part-to-dev"
14197
14198 #. type: verbatim
14199 #: ../fish/guestfish-actions.pod:3757
14200 #, no-wrap
14201 msgid ""
14202 " part-to-dev partition\n"
14203 "\n"
14204 msgstr ""
14205 " part-to-dev розділ\n"
14206 "\n"
14207
14208 #. type: textblock
14209 #: ../fish/guestfish-actions.pod:3759 ../src/guestfs-actions.pod:5729
14210 msgid ""
14211 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14212 "partition number, returning the device name (eg. \"/dev/sdb\")."
14213 msgstr ""
14214
14215 #. type: textblock
14216 #: ../fish/guestfish-actions.pod:3763
14217 msgid ""
14218 "The named partition must exist, for example as a string returned from L</"
14219 "list-partitions>."
14220 msgstr ""
14221
14222 #. type: =head2
14223 #: ../fish/guestfish-actions.pod:3766
14224 msgid "ping-daemon"
14225 msgstr "ping-daemon"
14226
14227 #. type: verbatim
14228 #: ../fish/guestfish-actions.pod:3768
14229 #, no-wrap
14230 msgid ""
14231 " ping-daemon\n"
14232 "\n"
14233 msgstr ""
14234 " ping-daemon\n"
14235 "\n"
14236
14237 #. type: textblock
14238 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5746
14239 msgid ""
14240 "This is a test probe into the guestfs daemon running inside the qemu "
14241 "subprocess.  Calling this function checks that the daemon responds to the "
14242 "ping message, without affecting the daemon or attached block device(s) in "
14243 "any other way."
14244 msgstr ""
14245
14246 #. type: =head2
14247 #: ../fish/guestfish-actions.pod:3775
14248 msgid "pread"
14249 msgstr "pread"
14250
14251 #. type: verbatim
14252 #: ../fish/guestfish-actions.pod:3777
14253 #, no-wrap
14254 msgid ""
14255 " pread path count offset\n"
14256 "\n"
14257 msgstr ""
14258
14259 #. type: textblock
14260 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5764
14261 msgid ""
14262 "This command lets you read part of a file.  It reads C<count> bytes of the "
14263 "file, starting at C<offset>, from file C<path>."
14264 msgstr ""
14265
14266 #. type: textblock
14267 #: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:3797
14268 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5793
14269 msgid ""
14270 "This may read fewer bytes than requested.  For further details see the "
14271 "L<pread(2)> system call."
14272 msgstr ""
14273
14274 #. type: textblock
14275 #: ../fish/guestfish-actions.pod:3785
14276 msgid "See also L</pwrite>, L</pread-device>."
14277 msgstr "Див. також L</pwrite>, L</pread-device>."
14278
14279 #. type: =head2
14280 #: ../fish/guestfish-actions.pod:3790
14281 msgid "pread-device"
14282 msgstr "pread-device"
14283
14284 #. type: verbatim
14285 #: ../fish/guestfish-actions.pod:3792
14286 #, no-wrap
14287 msgid ""
14288 " pread-device device count offset\n"
14289 "\n"
14290 msgstr ""
14291
14292 #. type: textblock
14293 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5790
14294 msgid ""
14295 "This command lets you read part of a file.  It reads C<count> bytes of "
14296 "C<device>, starting at C<offset>."
14297 msgstr ""
14298
14299 #. type: textblock
14300 #: ../fish/guestfish-actions.pod:3800
14301 msgid "See also L</pread>."
14302 msgstr "Див. також L</pread>."
14303
14304 #. type: =head2
14305 #: ../fish/guestfish-actions.pod:3805
14306 msgid "pvcreate"
14307 msgstr "pvcreate"
14308
14309 #. type: verbatim
14310 #: ../fish/guestfish-actions.pod:3807
14311 #, no-wrap
14312 msgid ""
14313 " pvcreate device\n"
14314 "\n"
14315 msgstr ""
14316 " pvcreate пристрій\n"
14317 "\n"
14318
14319 #. type: textblock
14320 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5813
14321 msgid ""
14322 "This creates an LVM physical volume on the named C<device>, where C<device> "
14323 "should usually be a partition name such as C</dev/sda1>."
14324 msgstr ""
14325
14326 #. type: =head2
14327 #: ../fish/guestfish-actions.pod:3813
14328 msgid "pvremove"
14329 msgstr "pvremove"
14330
14331 #. type: verbatim
14332 #: ../fish/guestfish-actions.pod:3815
14333 #, no-wrap
14334 msgid ""
14335 " pvremove device\n"
14336 "\n"
14337 msgstr ""
14338 " pvremove пристрій\n"
14339 "\n"
14340
14341 #. type: textblock
14342 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5827
14343 msgid ""
14344 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14345 "it."
14346 msgstr ""
14347
14348 #. type: textblock
14349 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5830
14350 msgid ""
14351 "The implementation uses the C<pvremove> command which refuses to wipe "
14352 "physical volumes that contain any volume groups, so you have to remove those "
14353 "first."
14354 msgstr ""
14355
14356 #. type: =head2
14357 #: ../fish/guestfish-actions.pod:3824
14358 msgid "pvresize"
14359 msgstr "pvresize"
14360
14361 #. type: verbatim
14362 #: ../fish/guestfish-actions.pod:3826
14363 #, no-wrap
14364 msgid ""
14365 " pvresize device\n"
14366 "\n"
14367 msgstr ""
14368 " pvresize пристрій\n"
14369 "\n"
14370
14371 #. type: textblock
14372 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5844
14373 msgid ""
14374 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14375 "the new size of the underlying device."
14376 msgstr ""
14377
14378 #. type: =head2
14379 #: ../fish/guestfish-actions.pod:3831
14380 msgid "pvresize-size"
14381 msgstr "pvresize-size"
14382
14383 #. type: verbatim
14384 #: ../fish/guestfish-actions.pod:3833
14385 #, no-wrap
14386 msgid ""
14387 " pvresize-size device size\n"
14388 "\n"
14389 msgstr ""
14390
14391 #. type: textblock
14392 #: ../fish/guestfish-actions.pod:3835
14393 msgid ""
14394 "This command is the same as L</pvresize> except that it allows you to "
14395 "specify the new size (in bytes) explicitly."
14396 msgstr ""
14397
14398 #. type: =head2
14399 #: ../fish/guestfish-actions.pod:3838
14400 msgid "pvs"
14401 msgstr "pvs"
14402
14403 #. type: verbatim
14404 #: ../fish/guestfish-actions.pod:3840
14405 #, no-wrap
14406 msgid ""
14407 " pvs\n"
14408 "\n"
14409 msgstr ""
14410 " pvs\n"
14411 "\n"
14412
14413 #. type: textblock
14414 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5870
14415 msgid ""
14416 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14417 "(8)> command."
14418 msgstr ""
14419
14420 #. type: textblock
14421 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5873
14422 msgid ""
14423 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14424 "sda2>)."
14425 msgstr ""
14426
14427 #. type: textblock
14428 #: ../fish/guestfish-actions.pod:3848
14429 msgid "See also L</pvs-full>."
14430 msgstr "Див. також L</pvs-full>."
14431
14432 #. type: =head2
14433 #: ../fish/guestfish-actions.pod:3850
14434 msgid "pvs-full"
14435 msgstr "pvs-full"
14436
14437 #. type: verbatim
14438 #: ../fish/guestfish-actions.pod:3852
14439 #, no-wrap
14440 msgid ""
14441 " pvs-full\n"
14442 "\n"
14443 msgstr ""
14444 " pvs-full\n"
14445 "\n"
14446
14447 #. type: textblock
14448 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:5889
14449 msgid ""
14450 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14451 "(8)> command.  The \"full\" version includes all fields."
14452 msgstr ""
14453
14454 #. type: =head2
14455 #: ../fish/guestfish-actions.pod:3857
14456 msgid "pvuuid"
14457 msgstr "pvuuid"
14458
14459 #. type: verbatim
14460 #: ../fish/guestfish-actions.pod:3859
14461 #, no-wrap
14462 msgid ""
14463 " pvuuid device\n"
14464 "\n"
14465 msgstr ""
14466 " pvuuid пристрій\n"
14467 "\n"
14468
14469 #. type: textblock
14470 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:5904
14471 msgid "This command returns the UUID of the LVM PV C<device>."
14472 msgstr ""
14473
14474 #. type: =head2
14475 #: ../fish/guestfish-actions.pod:3863
14476 msgid "pwrite"
14477 msgstr "pwrite"
14478
14479 #. type: verbatim
14480 #: ../fish/guestfish-actions.pod:3865
14481 #, no-wrap
14482 msgid ""
14483 " pwrite path content offset\n"
14484 "\n"
14485 msgstr ""
14486
14487 #. type: textblock
14488 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5920
14489 msgid ""
14490 "This command writes to part of a file.  It writes the data buffer C<content> "
14491 "to the file C<path> starting at offset C<offset>."
14492 msgstr ""
14493
14494 #. type: textblock
14495 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5923
14496 msgid ""
14497 "This command implements the L<pwrite(2)> system call, and like that system "
14498 "call it may not write the full data requested.  The return value is the "
14499 "number of bytes that were actually written to the file.  This could even be "
14500 "0, although short writes are unlikely for regular files in ordinary "
14501 "circumstances."
14502 msgstr ""
14503
14504 #. type: textblock
14505 #: ../fish/guestfish-actions.pod:3876
14506 msgid "See also L</pread>, L</pwrite-device>."
14507 msgstr "Див. також L</pread>, L</pwrite-device>."
14508
14509 #. type: =head2
14510 #: ../fish/guestfish-actions.pod:3881
14511 msgid "pwrite-device"
14512 msgstr "pwrite-device"
14513
14514 #. type: verbatim
14515 #: ../fish/guestfish-actions.pod:3883
14516 #, no-wrap
14517 msgid ""
14518 " pwrite-device device content offset\n"
14519 "\n"
14520 msgstr ""
14521
14522 #. type: textblock
14523 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5947
14524 msgid ""
14525 "This command writes to part of a device.  It writes the data buffer "
14526 "C<content> to C<device> starting at offset C<offset>."
14527 msgstr ""
14528
14529 #. type: textblock
14530 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5950
14531 msgid ""
14532 "This command implements the L<pwrite(2)> system call, and like that system "
14533 "call it may not write the full data requested (although short writes to disk "
14534 "devices and partitions are probably impossible with standard Linux kernels)."
14535 msgstr ""
14536
14537 #. type: textblock
14538 #: ../fish/guestfish-actions.pod:3893
14539 msgid "See also L</pwrite>."
14540 msgstr "Див. також L</pwrite>."
14541
14542 #. type: =head2
14543 #: ../fish/guestfish-actions.pod:3898
14544 msgid "read-file"
14545 msgstr "read-file"
14546
14547 #. type: verbatim
14548 #: ../fish/guestfish-actions.pod:3900
14549 #, no-wrap
14550 msgid ""
14551 " read-file path\n"
14552 "\n"
14553 msgstr ""
14554 " read-file шлях\n"
14555 "\n"
14556
14557 #. type: textblock
14558 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:5971
14559 msgid "This calls returns the contents of the file C<path> as a buffer."
14560 msgstr ""
14561
14562 #. type: textblock
14563 #: ../fish/guestfish-actions.pod:3905
14564 msgid ""
14565 "Unlike L</cat>, this function can correctly handle files that contain "
14566 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14567 "is limited in the total size of file that can be handled."
14568 msgstr ""
14569
14570 #. type: =head2
14571 #: ../fish/guestfish-actions.pod:3913
14572 msgid "read-lines"
14573 msgstr "read-lines"
14574
14575 #. type: verbatim
14576 #: ../fish/guestfish-actions.pod:3915
14577 #, no-wrap
14578 msgid ""
14579 " read-lines path\n"
14580 "\n"
14581 msgstr ""
14582 " read-lines шлях\n"
14583 "\n"
14584
14585 #. type: textblock
14586 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5996
14587 msgid ""
14588 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14589 "C<CRLF> character sequences are I<not> returned."
14590 msgstr ""
14591
14592 #. type: textblock
14593 #: ../fish/guestfish-actions.pod:3922
14594 msgid ""
14595 "Note that this function cannot correctly handle binary files (specifically, "
14596 "files containing C<\\0> character which is treated as end of line).  For "
14597 "those you need to use the L</read-file> function which has a more complex "
14598 "interface."
14599 msgstr ""
14600
14601 #. type: =head2
14602 #: ../fish/guestfish-actions.pod:3927
14603 msgid "readdir"
14604 msgstr "readdir"
14605
14606 #. type: verbatim
14607 #: ../fish/guestfish-actions.pod:3929
14608 #, no-wrap
14609 msgid ""
14610 " readdir dir\n"
14611 "\n"
14612 msgstr ""
14613 " readdir каталог\n"
14614 "\n"
14615
14616 #. type: textblock
14617 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6016
14618 msgid "This returns the list of directory entries in directory C<dir>."
14619 msgstr ""
14620
14621 #. type: textblock
14622 #: ../fish/guestfish-actions.pod:3933 ../src/guestfs-actions.pod:6018
14623 msgid ""
14624 "All entries in the directory are returned, including C<.> and C<..>.  The "
14625 "entries are I<not> sorted, but returned in the same order as the underlying "
14626 "filesystem."
14627 msgstr ""
14628
14629 #. type: textblock
14630 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6022
14631 msgid ""
14632 "Also this call returns basic file type information about each file.  The "
14633 "C<ftyp> field will contain one of the following characters:"
14634 msgstr ""
14635
14636 #. type: =item
14637 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6027
14638 msgid "'b'"
14639 msgstr "'b'"
14640
14641 #. type: textblock
14642 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6029
14643 msgid "Block special"
14644 msgstr "Блоковий особливий"
14645
14646 #. type: =item
14647 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6031
14648 msgid "'c'"
14649 msgstr "'c'"
14650
14651 #. type: textblock
14652 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6033
14653 msgid "Char special"
14654 msgstr "Символьний особливий"
14655
14656 #. type: =item
14657 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6035
14658 msgid "'d'"
14659 msgstr "'d'"
14660
14661 #. type: textblock
14662 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6037
14663 msgid "Directory"
14664 msgstr "Каталог"
14665
14666 #. type: =item
14667 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6039
14668 msgid "'f'"
14669 msgstr "'f'"
14670
14671 #. type: textblock
14672 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6041
14673 msgid "FIFO (named pipe)"
14674 msgstr "FIFO (іменований канал)"
14675
14676 #. type: =item
14677 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6043
14678 msgid "'l'"
14679 msgstr "'l'"
14680
14681 #. type: textblock
14682 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6045
14683 msgid "Symbolic link"
14684 msgstr "Символічне посилання"
14685
14686 #. type: =item
14687 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6047
14688 msgid "'r'"
14689 msgstr "'r'"
14690
14691 #. type: textblock
14692 #: ../fish/guestfish-actions.pod:3964 ../src/guestfs-actions.pod:6049
14693 msgid "Regular file"
14694 msgstr "Звичайний файл"
14695
14696 #. type: =item
14697 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6051
14698 msgid "'s'"
14699 msgstr "'s'"
14700
14701 #. type: textblock
14702 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:6053
14703 msgid "Socket"
14704 msgstr "Сокет"
14705
14706 #. type: =item
14707 #: ../fish/guestfish-actions.pod:3970 ../src/guestfs-actions.pod:6055
14708 msgid "'u'"
14709 msgstr "'u'"
14710
14711 #. type: textblock
14712 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6057
14713 msgid "Unknown file type"
14714 msgstr "Невідомий тип файла"
14715
14716 #. type: =item
14717 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6059
14718 msgid "'?'"
14719 msgstr ""
14720
14721 #. type: textblock
14722 #: ../fish/guestfish-actions.pod:3976 ../src/guestfs-actions.pod:6061
14723 msgid ""
14724 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14725 msgstr ""
14726
14727 #. type: textblock
14728 #: ../fish/guestfish-actions.pod:3981
14729 msgid ""
14730 "This function is primarily intended for use by programs.  To get a simple "
14731 "list of names, use L</ls>.  To get a printable directory for human "
14732 "consumption, use L</ll>."
14733 msgstr ""
14734
14735 #. type: =head2
14736 #: ../fish/guestfish-actions.pod:3985
14737 msgid "readlink"
14738 msgstr "readlink"
14739
14740 #. type: verbatim
14741 #: ../fish/guestfish-actions.pod:3987
14742 #, no-wrap
14743 msgid ""
14744 " readlink path\n"
14745 "\n"
14746 msgstr ""
14747 " readlink шлях\n"
14748 "\n"
14749
14750 #. type: textblock
14751 #: ../fish/guestfish-actions.pod:3989 ../src/guestfs-actions.pod:6082
14752 msgid "This command reads the target of a symbolic link."
14753 msgstr ""
14754
14755 #. type: =head2
14756 #: ../fish/guestfish-actions.pod:3991
14757 msgid "readlinklist"
14758 msgstr "readlinklist"
14759
14760 #. type: verbatim
14761 #: ../fish/guestfish-actions.pod:3993
14762 #, no-wrap
14763 msgid ""
14764 " readlinklist path 'names ...'\n"
14765 "\n"
14766 msgstr ""
14767
14768 #. type: textblock
14769 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6096
14770 msgid ""
14771 "This call allows you to do a C<readlink> operation on multiple files, where "
14772 "all files are in the directory C<path>.  C<names> is the list of files from "
14773 "this directory."
14774 msgstr ""
14775
14776 #. type: textblock
14777 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6100
14778 msgid ""
14779 "On return you get a list of strings, with a one-to-one correspondence to the "
14780 "C<names> list.  Each string is the value of the symbolic link."
14781 msgstr ""
14782
14783 #. type: textblock
14784 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6104
14785 msgid ""
14786 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14787 "result string is the empty string C<\"\">.  However the whole operation is "
14788 "completed even if there were C<readlink(2)> errors, and so you can call this "
14789 "function with names where you don't know if they are symbolic links already "
14790 "(albeit slightly less efficient)."
14791 msgstr ""
14792
14793 #. type: textblock
14794 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6111
14795 msgid ""
14796 "This call is intended for programs that want to efficiently list a directory "
14797 "contents without making many round-trips.  Very long directory listings "
14798 "might cause the protocol message size to be exceeded, causing this call to "
14799 "fail.  The caller must split up such requests into smaller groups of names."
14800 msgstr ""
14801
14802 #. type: =head2
14803 #: ../fish/guestfish-actions.pod:4017
14804 msgid "realpath"
14805 msgstr "realpath"
14806
14807 #. type: verbatim
14808 #: ../fish/guestfish-actions.pod:4019
14809 #, no-wrap
14810 msgid ""
14811 " realpath path\n"
14812 "\n"
14813 msgstr ""
14814 " realpath шлях\n"
14815 "\n"
14816
14817 #. type: textblock
14818 #: ../fish/guestfish-actions.pod:4021 ../src/guestfs-actions.pod:6130
14819 msgid ""
14820 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14821 "has no C<.>, C<..> or symbolic link path elements."
14822 msgstr ""
14823
14824 #. type: =head2
14825 #: ../fish/guestfish-actions.pod:4024
14826 msgid "removexattr"
14827 msgstr "removexattr"
14828
14829 #. type: verbatim
14830 #: ../fish/guestfish-actions.pod:4026
14831 #, no-wrap
14832 msgid ""
14833 " removexattr xattr path\n"
14834 "\n"
14835 msgstr ""
14836
14837 #. type: textblock
14838 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6145
14839 msgid ""
14840 "This call removes the extended attribute named C<xattr> of the file C<path>."
14841 msgstr ""
14842
14843 #. type: textblock
14844 #: ../fish/guestfish-actions.pod:4031
14845 msgid "See also: L</lremovexattr>, L<attr(5)>."
14846 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
14847
14848 #. type: =head2
14849 #: ../fish/guestfish-actions.pod:4033
14850 msgid "resize2fs"
14851 msgstr "resize2fs"
14852
14853 #. type: verbatim
14854 #: ../fish/guestfish-actions.pod:4035
14855 #, no-wrap
14856 msgid ""
14857 " resize2fs device\n"
14858 "\n"
14859 msgstr ""
14860 " resize2fs пристрій\n"
14861 "\n"
14862
14863 #. type: textblock
14864 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6160
14865 msgid ""
14866 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14867 "underlying device."
14868 msgstr ""
14869
14870 #. type: textblock
14871 #: ../fish/guestfish-actions.pod:4040
14872 msgid ""
14873 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14874 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14875 "gives an error about this and sometimes not.  In any case, it is always safe "
14876 "to call L</e2fsck-f> before calling this function."
14877 msgstr ""
14878
14879 #. type: =head2
14880 #: ../fish/guestfish-actions.pod:4046
14881 msgid "resize2fs-M"
14882 msgstr "resize2fs-M"
14883
14884 #. type: verbatim
14885 #: ../fish/guestfish-actions.pod:4048
14886 #, no-wrap
14887 msgid ""
14888 " resize2fs-M device\n"
14889 "\n"
14890 msgstr ""
14891 " resize2fs-M пристрій\n"
14892 "\n"
14893
14894 #. type: textblock
14895 #: ../fish/guestfish-actions.pod:4050
14896 msgid ""
14897 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14898 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14899 "command."
14900 msgstr ""
14901
14902 #. type: textblock
14903 #: ../fish/guestfish-actions.pod:4054
14904 msgid ""
14905 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14906 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14907 "multiplied together, give the resulting size of the minimal filesystem in "
14908 "bytes."
14909 msgstr ""
14910
14911 #. type: =head2
14912 #: ../fish/guestfish-actions.pod:4059
14913 msgid "resize2fs-size"
14914 msgstr "resize2fs-size"
14915
14916 #. type: verbatim
14917 #: ../fish/guestfish-actions.pod:4061
14918 #, no-wrap
14919 msgid ""
14920 " resize2fs-size device size\n"
14921 "\n"
14922 msgstr ""
14923
14924 #. type: textblock
14925 #: ../fish/guestfish-actions.pod:4063
14926 msgid ""
14927 "This command is the same as L</resize2fs> except that it allows you to "
14928 "specify the new size (in bytes) explicitly."
14929 msgstr ""
14930
14931 #. type: =head2
14932 #: ../fish/guestfish-actions.pod:4066
14933 msgid "rm"
14934 msgstr "rm"
14935
14936 #. type: verbatim
14937 #: ../fish/guestfish-actions.pod:4068
14938 #, no-wrap
14939 msgid ""
14940 " rm path\n"
14941 "\n"
14942 msgstr ""
14943 " rm шлях\n"
14944 "\n"
14945
14946 #. type: textblock
14947 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6212
14948 msgid "Remove the single file C<path>."
14949 msgstr ""
14950
14951 #. type: =head2
14952 #: ../fish/guestfish-actions.pod:4072
14953 msgid "rm-rf"
14954 msgstr "rm-rf"
14955
14956 #. type: verbatim
14957 #: ../fish/guestfish-actions.pod:4074
14958 #, no-wrap
14959 msgid ""
14960 " rm-rf path\n"
14961 "\n"
14962 msgstr ""
14963 " rm-rf шлях\n"
14964 "\n"
14965
14966 #. type: textblock
14967 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6224
14968 msgid ""
14969 "Remove the file or directory C<path>, recursively removing the contents if "
14970 "its a directory.  This is like the C<rm -rf> shell command."
14971 msgstr ""
14972
14973 #. type: =head2
14974 #: ../fish/guestfish-actions.pod:4080
14975 msgid "rmdir"
14976 msgstr "rmdir"
14977
14978 #. type: verbatim
14979 #: ../fish/guestfish-actions.pod:4082
14980 #, no-wrap
14981 msgid ""
14982 " rmdir path\n"
14983 "\n"
14984 msgstr ""
14985 " rmdir шлях\n"
14986 "\n"
14987
14988 #. type: textblock
14989 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6238
14990 msgid "Remove the single directory C<path>."
14991 msgstr ""
14992
14993 #. type: =head2
14994 #: ../fish/guestfish-actions.pod:4086
14995 msgid "rmmountpoint"
14996 msgstr "rmmountpoint"
14997
14998 #. type: verbatim
14999 #: ../fish/guestfish-actions.pod:4088
15000 #, no-wrap
15001 msgid ""
15002 " rmmountpoint exemptpath\n"
15003 "\n"
15004 msgstr ""
15005
15006 #. type: textblock
15007 #: ../fish/guestfish-actions.pod:4090
15008 msgid ""
15009 "This calls removes a mountpoint that was previously created with L</"
15010 "mkmountpoint>.  See L</mkmountpoint> for full details."
15011 msgstr ""
15012
15013 #. type: =head2
15014 #: ../fish/guestfish-actions.pod:4094
15015 msgid "scrub-device"
15016 msgstr "scrub-device"
15017
15018 #. type: verbatim
15019 #: ../fish/guestfish-actions.pod:4096
15020 #, no-wrap
15021 msgid ""
15022 " scrub-device device\n"
15023 "\n"
15024 msgstr ""
15025 " scrub-device пристрій\n"
15026 "\n"
15027
15028 #. type: textblock
15029 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6264
15030 msgid ""
15031 "This command writes patterns over C<device> to make data retrieval more "
15032 "difficult."
15033 msgstr ""
15034
15035 #. type: textblock
15036 #: ../fish/guestfish-actions.pod:4101 ../fish/guestfish-actions.pod:4116
15037 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6267
15038 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6307
15039 msgid ""
15040 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15041 "more details."
15042 msgstr ""
15043
15044 #. type: =head2
15045 #: ../fish/guestfish-actions.pod:4107
15046 msgid "scrub-file"
15047 msgstr "scrub-file"
15048
15049 #. type: verbatim
15050 #: ../fish/guestfish-actions.pod:4109
15051 #, no-wrap
15052 msgid ""
15053 " scrub-file file\n"
15054 "\n"
15055 msgstr ""
15056 " scrub-file файл\n"
15057 "\n"
15058
15059 #. type: textblock
15060 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6283
15061 msgid ""
15062 "This command writes patterns over a file to make data retrieval more "
15063 "difficult."
15064 msgstr ""
15065
15066 #. type: textblock
15067 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6286
15068 msgid "The file is I<removed> after scrubbing."
15069 msgstr ""
15070
15071 #. type: =head2
15072 #: ../fish/guestfish-actions.pod:4119
15073 msgid "scrub-freespace"
15074 msgstr "scrub-freespace"
15075
15076 #. type: verbatim
15077 #: ../fish/guestfish-actions.pod:4121
15078 #, no-wrap
15079 msgid ""
15080 " scrub-freespace dir\n"
15081 "\n"
15082 msgstr ""
15083 " scrub-freespace каталог\n"
15084 "\n"
15085
15086 #. type: textblock
15087 #: ../fish/guestfish-actions.pod:4123
15088 msgid ""
15089 "This command creates the directory C<dir> and then fills it with files until "
15090 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15091 "deletes them.  The intention is to scrub any free space on the partition "
15092 "containing C<dir>."
15093 msgstr ""
15094
15095 #. type: =head2
15096 #: ../fish/guestfish-actions.pod:4132
15097 msgid "set-append"
15098 msgstr "set-append"
15099
15100 #. type: =head2
15101 #: ../fish/guestfish-actions.pod:4134
15102 msgid "append"
15103 msgstr ""
15104
15105 #. type: verbatim
15106 #: ../fish/guestfish-actions.pod:4136
15107 #, no-wrap
15108 msgid ""
15109 " set-append append\n"
15110 "\n"
15111 msgstr ""
15112
15113 #. type: textblock
15114 #: ../fish/guestfish-actions.pod:4138 ../src/guestfs-actions.pod:6320
15115 msgid ""
15116 "This function is used to add additional options to the guest kernel command "
15117 "line."
15118 msgstr ""
15119
15120 #. type: textblock
15121 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6323
15122 msgid ""
15123 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15124 "environment variable."
15125 msgstr ""
15126
15127 #. type: textblock
15128 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6326
15129 msgid ""
15130 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15131 "(libguestfs always adds a few of its own)."
15132 msgstr ""
15133
15134 #. type: =head2
15135 #: ../fish/guestfish-actions.pod:4147
15136 msgid "set-attach-method"
15137 msgstr "set-attach-method"
15138
15139 #. type: =head2
15140 #: ../fish/guestfish-actions.pod:4149
15141 msgid "attach-method"
15142 msgstr ""
15143
15144 #. type: verbatim
15145 #: ../fish/guestfish-actions.pod:4151
15146 #, no-wrap
15147 msgid ""
15148 " set-attach-method attachmethod\n"
15149 "\n"
15150 msgstr ""
15151
15152 #. type: textblock
15153 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6339
15154 msgid ""
15155 "Set the method that libguestfs uses to connect to the back end guestfsd "
15156 "daemon.  Possible methods are:"
15157 msgstr ""
15158
15159 #. type: =item
15160 #: ../fish/guestfish-actions.pod:4158 ../src/guestfs-actions.pod:6344
15161 #: ../src/guestfs.pod:2901
15162 msgid "C<appliance>"
15163 msgstr "C<appliance>"
15164
15165 #. type: textblock
15166 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6346
15167 msgid ""
15168 "Launch an appliance and connect to it.  This is the ordinary method and the "
15169 "default."
15170 msgstr ""
15171
15172 #. type: =item
15173 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6349
15174 msgid "C<unix:I<path>>"
15175 msgstr "C<unix:I<шлях>>"
15176
15177 #. type: textblock
15178 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6351
15179 msgid "Connect to the Unix domain socket I<path>."
15180 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15181
15182 #. type: textblock
15183 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6353
15184 msgid ""
15185 "This method lets you connect to an existing daemon or (using virtio-serial) "
15186 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15187 "RUNNING DAEMONS>."
15188 msgstr ""
15189
15190 #. type: =head2
15191 #: ../fish/guestfish-actions.pod:4173
15192 msgid "set-autosync"
15193 msgstr "set-autosync"
15194
15195 #. type: =head2
15196 #: ../fish/guestfish-actions.pod:4175
15197 msgid "autosync"
15198 msgstr "autosync"
15199
15200 #. type: verbatim
15201 #: ../fish/guestfish-actions.pod:4177
15202 #, no-wrap
15203 msgid ""
15204 " set-autosync true|false\n"
15205 "\n"
15206 msgstr ""
15207 " set-autosync true|false\n"
15208 "\n"
15209
15210 #. type: textblock
15211 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6369
15212 msgid ""
15213 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15214 "effort attempt to make filesystems consistent and synchronized when the "
15215 "handle is closed (also if the program exits without closing handles)."
15216 msgstr ""
15217
15218 #. type: textblock
15219 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6374
15220 msgid ""
15221 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15222 "disabled by default)."
15223 msgstr ""
15224
15225 #. type: =head2
15226 #: ../fish/guestfish-actions.pod:4187
15227 msgid "set-direct"
15228 msgstr "set-direct"
15229
15230 #. type: =head2
15231 #: ../fish/guestfish-actions.pod:4189
15232 msgid "direct"
15233 msgstr "direct"
15234
15235 #. type: verbatim
15236 #: ../fish/guestfish-actions.pod:4191
15237 #, no-wrap
15238 msgid ""
15239 " set-direct true|false\n"
15240 "\n"
15241 msgstr ""
15242 " set-direct true|false\n"
15243 "\n"
15244
15245 #. type: textblock
15246 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6387
15247 msgid ""
15248 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15249 "passed directly through to the appliance once it is launched."
15250 msgstr ""
15251
15252 #. type: textblock
15253 #: ../fish/guestfish-actions.pod:4197
15254 msgid ""
15255 "One consequence of this is that log messages aren't caught by the library "
15256 "and handled by L</set-log-message-callback>, but go straight to stdout."
15257 msgstr ""
15258
15259 #. type: textblock
15260 #: ../fish/guestfish-actions.pod:4201 ../src/guestfs-actions.pod:6395
15261 msgid "You probably don't want to use this unless you know what you are doing."
15262 msgstr ""
15263
15264 #. type: textblock
15265 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6398
15266 msgid "The default is disabled."
15267 msgstr ""
15268
15269 #. type: =head2
15270 #: ../fish/guestfish-actions.pod:4206
15271 msgid "set-e2label"
15272 msgstr "set-e2label"
15273
15274 #. type: verbatim
15275 #: ../fish/guestfish-actions.pod:4208
15276 #, no-wrap
15277 msgid ""
15278 " set-e2label device label\n"
15279 "\n"
15280 msgstr ""
15281
15282 #. type: textblock
15283 #: ../fish/guestfish-actions.pod:4210 ../src/guestfs-actions.pod:6411
15284 msgid ""
15285 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15286 "C<label>.  Filesystem labels are limited to 16 characters."
15287 msgstr ""
15288
15289 #. type: textblock
15290 #: ../fish/guestfish-actions.pod:4214
15291 msgid ""
15292 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15293 "label on a filesystem."
15294 msgstr ""
15295
15296 #. type: =head2
15297 #: ../fish/guestfish-actions.pod:4217
15298 msgid "set-e2uuid"
15299 msgstr "set-e2uuid"
15300
15301 #. type: verbatim
15302 #: ../fish/guestfish-actions.pod:4219
15303 #, no-wrap
15304 msgid ""
15305 " set-e2uuid device uuid\n"
15306 "\n"
15307 msgstr ""
15308
15309 #. type: textblock
15310 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6429
15311 msgid ""
15312 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15313 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15314 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15315 msgstr ""
15316
15317 #. type: textblock
15318 #: ../fish/guestfish-actions.pod:4226
15319 msgid ""
15320 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15321 "UUID of a filesystem."
15322 msgstr ""
15323
15324 #. type: =head2
15325 #: ../fish/guestfish-actions.pod:4229
15326 msgid "set-memsize"
15327 msgstr "set-memsize"
15328
15329 #. type: =head2
15330 #: ../fish/guestfish-actions.pod:4231
15331 msgid "memsize"
15332 msgstr ""
15333
15334 #. type: verbatim
15335 #: ../fish/guestfish-actions.pod:4233
15336 #, no-wrap
15337 msgid ""
15338 " set-memsize memsize\n"
15339 "\n"
15340 msgstr ""
15341
15342 #. type: textblock
15343 #: ../fish/guestfish-actions.pod:4235
15344 msgid ""
15345 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15346 "This only has any effect if called before L</launch>."
15347 msgstr ""
15348
15349 #. type: textblock
15350 #: ../fish/guestfish-actions.pod:4239 ../src/guestfs-actions.pod:6451
15351 msgid ""
15352 "You can also change this by setting the environment variable "
15353 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15354 msgstr ""
15355
15356 #. type: =head2
15357 #: ../fish/guestfish-actions.pod:4246
15358 msgid "set-network"
15359 msgstr "set-network"
15360
15361 #. type: =head2
15362 #: ../fish/guestfish-actions.pod:4248
15363 msgid "network"
15364 msgstr "network"
15365
15366 #. type: verbatim
15367 #: ../fish/guestfish-actions.pod:4250
15368 #, no-wrap
15369 msgid ""
15370 " set-network true|false\n"
15371 "\n"
15372 msgstr ""
15373 " set-network true|false\n"
15374 "\n"
15375
15376 #. type: textblock
15377 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6468
15378 msgid ""
15379 "If C<network> is true, then the network is enabled in the libguestfs "
15380 "appliance.  The default is false."
15381 msgstr ""
15382
15383 #. type: textblock
15384 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6471
15385 msgid ""
15386 "This affects whether commands are able to access the network (see L<guestfs"
15387 "(3)/RUNNING COMMANDS>)."
15388 msgstr ""
15389
15390 #. type: textblock
15391 #: ../fish/guestfish-actions.pod:4258
15392 msgid ""
15393 "You must call this before calling L</launch>, otherwise it has no effect."
15394 msgstr ""
15395
15396 #. type: =head2
15397 #: ../fish/guestfish-actions.pod:4261
15398 msgid "set-path"
15399 msgstr "set-path"
15400
15401 #. type: verbatim
15402 #: ../fish/guestfish-actions.pod:4265
15403 #, no-wrap
15404 msgid ""
15405 " set-path searchpath\n"
15406 "\n"
15407 msgstr ""
15408
15409 #. type: textblock
15410 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6487
15411 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15412 msgstr ""
15413
15414 #. type: textblock
15415 #: ../fish/guestfish-actions.pod:4269 ../src/guestfs-actions.pod:6489
15416 msgid ""
15417 "The default is C<$libdir/guestfs> unless overridden by setting "
15418 "C<LIBGUESTFS_PATH> environment variable."
15419 msgstr ""
15420
15421 #. type: textblock
15422 #: ../fish/guestfish-actions.pod:4272 ../src/guestfs-actions.pod:6492
15423 msgid "Setting C<path> to C<NULL> restores the default path."
15424 msgstr ""
15425
15426 #. type: =head2
15427 #: ../fish/guestfish-actions.pod:4274
15428 msgid "set-pgroup"
15429 msgstr ""
15430
15431 #. type: =head2
15432 #: ../fish/guestfish-actions.pod:4276
15433 msgid "pgroup"
15434 msgstr ""
15435
15436 #. type: verbatim
15437 #: ../fish/guestfish-actions.pod:4278
15438 #, no-wrap
15439 msgid ""
15440 " set-pgroup true|false\n"
15441 "\n"
15442 msgstr ""
15443
15444 #. type: textblock
15445 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6504
15446 msgid ""
15447 "If C<pgroup> is true, child processes are placed into their own process "
15448 "group."
15449 msgstr ""
15450
15451 #. type: textblock
15452 #: ../fish/guestfish-actions.pod:4283 ../src/guestfs-actions.pod:6507
15453 msgid ""
15454 "The practical upshot of this is that signals like C<SIGINT> (from users "
15455 "pressing C<^C>) won't be received by the child process."
15456 msgstr ""
15457
15458 #. type: textblock
15459 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6510
15460 msgid ""
15461 "The default for this flag is false, because usually you want C<^C> to kill "
15462 "the subprocess."
15463 msgstr ""
15464
15465 #. type: =head2
15466 #: ../fish/guestfish-actions.pod:4289
15467 msgid "set-qemu"
15468 msgstr "set-qemu"
15469
15470 #. type: =head2
15471 #: ../fish/guestfish-actions.pod:4291
15472 msgid "qemu"
15473 msgstr "qemu"
15474
15475 #. type: verbatim
15476 #: ../fish/guestfish-actions.pod:4293
15477 #, no-wrap
15478 msgid ""
15479 " set-qemu qemu\n"
15480 "\n"
15481 msgstr ""
15482 " set-qemu qemu\n"
15483 "\n"
15484
15485 #. type: textblock
15486 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6523
15487 msgid "Set the qemu binary that we will use."
15488 msgstr ""
15489
15490 #. type: textblock
15491 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6525
15492 msgid ""
15493 "The default is chosen when the library was compiled by the configure script."
15494 msgstr ""
15495
15496 #. type: textblock
15497 #: ../fish/guestfish-actions.pod:4300 ../src/guestfs-actions.pod:6528
15498 msgid ""
15499 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15500 "variable."
15501 msgstr ""
15502
15503 #. type: textblock
15504 #: ../fish/guestfish-actions.pod:4303 ../src/guestfs-actions.pod:6531
15505 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15506 msgstr ""
15507
15508 #. type: textblock
15509 #: ../fish/guestfish-actions.pod:4305 ../src/guestfs-actions.pod:6533
15510 msgid ""
15511 "Note that you should call this function as early as possible after creating "
15512 "the handle.  This is because some pre-launch operations depend on testing "
15513 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15514 "don't retest features, and so you might see inconsistent results.  Using the "
15515 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15516 "the qemu binary at the same time as the handle is created."
15517 msgstr ""
15518
15519 #. type: =head2
15520 #: ../fish/guestfish-actions.pod:4313
15521 msgid "set-recovery-proc"
15522 msgstr "set-recovery-proc"
15523
15524 #. type: =head2
15525 #: ../fish/guestfish-actions.pod:4315
15526 msgid "recovery-proc"
15527 msgstr "recovery-proc"
15528
15529 #. type: verbatim
15530 #: ../fish/guestfish-actions.pod:4317
15531 #, no-wrap
15532 msgid ""
15533 " set-recovery-proc true|false\n"
15534 "\n"
15535 msgstr ""
15536 " set-recovery-proc true|false\n"
15537 "\n"
15538
15539 #. type: textblock
15540 #: ../fish/guestfish-actions.pod:4319
15541 msgid ""
15542 "If this is called with the parameter C<false> then L</launch> does not "
15543 "create a recovery process.  The purpose of the recovery process is to stop "
15544 "runaway qemu processes in the case where the main program aborts abruptly."
15545 msgstr ""
15546
15547 #. type: textblock
15548 #: ../fish/guestfish-actions.pod:4324
15549 msgid ""
15550 "This only has any effect if called before L</launch>, and the default is "
15551 "true."
15552 msgstr ""
15553
15554 #. type: textblock
15555 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6559
15556 msgid ""
15557 "About the only time when you would want to disable this is if the main "
15558 "process will fork itself into the background (\"daemonize\" itself).  In "
15559 "this case the recovery process thinks that the main program has disappeared "
15560 "and so kills qemu, which is not very helpful."
15561 msgstr ""
15562
15563 #. type: =head2
15564 #: ../fish/guestfish-actions.pod:4333
15565 msgid "set-selinux"
15566 msgstr "set-selinux"
15567
15568 #. type: =head2
15569 #: ../fish/guestfish-actions.pod:4335
15570 msgid "selinux"
15571 msgstr "selinux"
15572
15573 #. type: verbatim
15574 #: ../fish/guestfish-actions.pod:4337
15575 #, no-wrap
15576 msgid ""
15577 " set-selinux true|false\n"
15578 "\n"
15579 msgstr ""
15580 " set-selinux true|false\n"
15581 "\n"
15582
15583 #. type: textblock
15584 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6575
15585 msgid ""
15586 "This sets the selinux flag that is passed to the appliance at boot time.  "
15587 "The default is C<selinux=0> (disabled)."
15588 msgstr ""
15589
15590 #. type: textblock
15591 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6578
15592 msgid ""
15593 "Note that if SELinux is enabled, it is always in Permissive mode "
15594 "(C<enforcing=0>)."
15595 msgstr ""
15596
15597 #. type: =head2
15598 #: ../fish/guestfish-actions.pod:4348
15599 msgid "set-smp"
15600 msgstr ""
15601
15602 #. type: =head2
15603 #: ../fish/guestfish-actions.pod:4350
15604 msgid "smp"
15605 msgstr ""
15606
15607 #. type: verbatim
15608 #: ../fish/guestfish-actions.pod:4352
15609 #, no-wrap
15610 msgid ""
15611 " set-smp smp\n"
15612 "\n"
15613 msgstr ""
15614
15615 #. type: textblock
15616 #: ../fish/guestfish-actions.pod:4354 ../src/guestfs-actions.pod:6594
15617 msgid ""
15618 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15619 "C<1>.  Increasing this may improve performance, though often it has no "
15620 "effect."
15621 msgstr ""
15622
15623 #. type: textblock
15624 #: ../fish/guestfish-actions.pod:4358
15625 msgid "This function must be called before L</launch>."
15626 msgstr ""
15627
15628 #. type: =head2
15629 #: ../fish/guestfish-actions.pod:4360
15630 msgid "set-trace"
15631 msgstr "set-trace"
15632
15633 #. type: =head2
15634 #: ../fish/guestfish-actions.pod:4362
15635 msgid "trace"
15636 msgstr "trace"
15637
15638 #. type: verbatim
15639 #: ../fish/guestfish-actions.pod:4364
15640 #, no-wrap
15641 msgid ""
15642 " set-trace true|false\n"
15643 "\n"
15644 msgstr ""
15645 " set-trace true|false\n"
15646 "\n"
15647
15648 #. type: textblock
15649 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6610
15650 msgid ""
15651 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15652 "return values are traced."
15653 msgstr ""
15654
15655 #. type: textblock
15656 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6613
15657 msgid ""
15658 "If you want to trace C API calls into libguestfs (and other libraries) then "
15659 "possibly a better way is to use the external ltrace(1) command."
15660 msgstr ""
15661
15662 #. type: textblock
15663 #: ../fish/guestfish-actions.pod:4373 ../src/guestfs-actions.pod:6617
15664 msgid ""
15665 "Command traces are disabled unless the environment variable "
15666 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15667 msgstr ""
15668
15669 #. type: textblock
15670 #: ../fish/guestfish-actions.pod:4376
15671 msgid ""
15672 "Trace messages are normally sent to C<stderr>, unless you register a "
15673 "callback to send them somewhere else (see L</set-event-callback>)."
15674 msgstr ""
15675
15676 #. type: =head2
15677 #: ../fish/guestfish-actions.pod:4380
15678 msgid "set-verbose"
15679 msgstr "set-verbose"
15680
15681 #. type: =head2
15682 #: ../fish/guestfish-actions.pod:4382
15683 msgid "verbose"
15684 msgstr "verbose"
15685
15686 #. type: verbatim
15687 #: ../fish/guestfish-actions.pod:4384
15688 #, no-wrap
15689 msgid ""
15690 " set-verbose true|false\n"
15691 "\n"
15692 msgstr ""
15693 " set-verbose true|false\n"
15694 "\n"
15695
15696 #. type: textblock
15697 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6634
15698 msgid "If C<verbose> is true, this turns on verbose messages."
15699 msgstr ""
15700
15701 #. type: textblock
15702 #: ../fish/guestfish-actions.pod:4388 ../src/guestfs-actions.pod:6636
15703 msgid ""
15704 "Verbose messages are disabled unless the environment variable "
15705 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15706 msgstr ""
15707
15708 #. type: textblock
15709 #: ../fish/guestfish-actions.pod:4391
15710 msgid ""
15711 "Verbose messages are normally sent to C<stderr>, unless you register a "
15712 "callback to send them somewhere else (see L</set-event-callback>)."
15713 msgstr ""
15714
15715 #. type: =head2
15716 #: ../fish/guestfish-actions.pod:4395
15717 msgid "setcon"
15718 msgstr "setcon"
15719
15720 #. type: verbatim
15721 #: ../fish/guestfish-actions.pod:4397
15722 #, no-wrap
15723 msgid ""
15724 " setcon context\n"
15725 "\n"
15726 msgstr ""
15727 " setcon контекст\n"
15728 "\n"
15729
15730 #. type: textblock
15731 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6653
15732 msgid ""
15733 "This sets the SELinux security context of the daemon to the string "
15734 "C<context>."
15735 msgstr ""
15736
15737 #. type: textblock
15738 #: ../fish/guestfish-actions.pod:4402 ../src/guestfs-actions.pod:6656
15739 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15740 msgstr ""
15741
15742 #. type: =head2
15743 #: ../fish/guestfish-actions.pod:4404
15744 msgid "setxattr"
15745 msgstr "setxattr"
15746
15747 #. type: verbatim
15748 #: ../fish/guestfish-actions.pod:4406
15749 #, no-wrap
15750 msgid ""
15751 " setxattr xattr val vallen path\n"
15752 "\n"
15753 msgstr ""
15754
15755 #. type: textblock
15756 #: ../fish/guestfish-actions.pod:4408 ../src/guestfs-actions.pod:6671
15757 msgid ""
15758 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15759 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15760 msgstr ""
15761
15762 #. type: textblock
15763 #: ../fish/guestfish-actions.pod:4412
15764 msgid "See also: L</lsetxattr>, L<attr(5)>."
15765 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
15766
15767 #. type: =head2
15768 #: ../fish/guestfish-actions.pod:4414
15769 msgid "sfdisk"
15770 msgstr "sfdisk"
15771
15772 #. type: verbatim
15773 #: ../fish/guestfish-actions.pod:4416
15774 #, no-wrap
15775 msgid ""
15776 " sfdisk device cyls heads sectors 'lines ...'\n"
15777 "\n"
15778 msgstr ""
15779
15780 #. type: textblock
15781 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6698
15782 msgid ""
15783 "This is a direct interface to the L<sfdisk(8)> program for creating "
15784 "partitions on block devices."
15785 msgstr ""
15786
15787 #. type: textblock
15788 #: ../fish/guestfish-actions.pod:4421 ../src/guestfs-actions.pod:6701
15789 msgid "C<device> should be a block device, for example C</dev/sda>."
15790 msgstr ""
15791
15792 #. type: textblock
15793 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6703
15794 msgid ""
15795 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15796 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15797 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15798 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15799 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15800 "the kernel) cannot work out the right geometry and you will need to tell it."
15801 msgstr ""
15802
15803 #. type: textblock
15804 #: ../fish/guestfish-actions.pod:4431 ../src/guestfs-actions.pod:6711
15805 msgid ""
15806 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15807 "refer to the L<sfdisk(8)> manpage."
15808 msgstr ""
15809
15810 #. type: textblock
15811 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6714
15812 msgid ""
15813 "To create a single partition occupying the whole disk, you would pass "
15814 "C<lines> as a single element list, when the single element being the string "
15815 "C<,> (comma)."
15816 msgstr ""
15817
15818 #. type: textblock
15819 #: ../fish/guestfish-actions.pod:4438
15820 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15821 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15822
15823 #. type: textblock
15824 #: ../fish/guestfish-actions.pod:4444 ../fish/guestfish-actions.pod:4467
15825 #: ../fish/guestfish-actions.pod:4489
15826 msgid ""
15827 "I<This function is deprecated.> In new code, use the L</part_add> call "
15828 "instead."
15829 msgstr ""
15830
15831 #. type: =head2
15832 #: ../fish/guestfish-actions.pod:4451
15833 msgid "sfdiskM"
15834 msgstr "sfdiskM"
15835
15836 #. type: verbatim
15837 #: ../fish/guestfish-actions.pod:4453
15838 #, no-wrap
15839 msgid ""
15840 " sfdiskM device 'lines ...'\n"
15841 "\n"
15842 msgstr ""
15843
15844 #. type: textblock
15845 #: ../fish/guestfish-actions.pod:4455
15846 msgid ""
15847 "This is a simplified interface to the L</sfdisk> command, where partition "
15848 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15849 "you don't need to specify the cyls, heads and sectors parameters which were "
15850 "rarely if ever used anyway."
15851 msgstr ""
15852
15853 #. type: textblock
15854 #: ../fish/guestfish-actions.pod:4461
15855 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15856 msgstr ""
15857 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
15858
15859 #. type: =head2
15860 #: ../fish/guestfish-actions.pod:4474
15861 msgid "sfdisk-N"
15862 msgstr "sfdisk-N"
15863
15864 #. type: verbatim
15865 #: ../fish/guestfish-actions.pod:4476
15866 #, no-wrap
15867 msgid ""
15868 " sfdisk-N device partnum cyls heads sectors line\n"
15869 "\n"
15870 msgstr ""
15871
15872 #. type: textblock
15873 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6776
15874 msgid ""
15875 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15876 "(note: C<n> counts from 1)."
15877 msgstr ""
15878
15879 #. type: textblock
15880 #: ../fish/guestfish-actions.pod:4481
15881 msgid ""
15882 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15883 "cyls/heads/sectors parameters."
15884 msgstr ""
15885
15886 #. type: textblock
15887 #: ../fish/guestfish-actions.pod:4484
15888 msgid "See also: L</part-add>"
15889 msgstr "Див. також L</part-add>"
15890
15891 #. type: =head2
15892 #: ../fish/guestfish-actions.pod:4496
15893 msgid "sfdisk-disk-geometry"
15894 msgstr "sfdisk-disk-geometry"
15895
15896 #. type: verbatim
15897 #: ../fish/guestfish-actions.pod:4498
15898 #, no-wrap
15899 msgid ""
15900 " sfdisk-disk-geometry device\n"
15901 "\n"
15902 msgstr ""
15903 " sfdisk-disk-geometry пристрій\n"
15904 "\n"
15905
15906 #. type: textblock
15907 #: ../fish/guestfish-actions.pod:4500
15908 msgid ""
15909 "This displays the disk geometry of C<device> read from the partition table.  "
15910 "Especially in the case where the underlying block device has been resized, "
15911 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15912 "kernel-geometry>)."
15913 msgstr ""
15914
15915 #. type: textblock
15916 #: ../fish/guestfish-actions.pod:4505 ../fish/guestfish-actions.pod:4514
15917 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6818
15918 msgid "The result is in human-readable format, and not designed to be parsed."
15919 msgstr ""
15920
15921 #. type: =head2
15922 #: ../fish/guestfish-actions.pod:4508
15923 msgid "sfdisk-kernel-geometry"
15924 msgstr "sfdisk-kernel-geometry"
15925
15926 #. type: verbatim
15927 #: ../fish/guestfish-actions.pod:4510
15928 #, no-wrap
15929 msgid ""
15930 " sfdisk-kernel-geometry device\n"
15931 "\n"
15932 msgstr ""
15933 " sfdisk-kernel-geometry пристрій\n"
15934 "\n"
15935
15936 #. type: textblock
15937 #: ../fish/guestfish-actions.pod:4512 ../src/guestfs-actions.pod:6816
15938 msgid "This displays the kernel's idea of the geometry of C<device>."
15939 msgstr ""
15940
15941 #. type: =head2
15942 #: ../fish/guestfish-actions.pod:4517
15943 msgid "sfdisk-l"
15944 msgstr "sfdisk-l"
15945
15946 #. type: verbatim
15947 #: ../fish/guestfish-actions.pod:4519
15948 #, no-wrap
15949 msgid ""
15950 " sfdisk-l device\n"
15951 "\n"
15952 msgstr ""
15953 " sfdisk-l пристрій\n"
15954 "\n"
15955
15956 #. type: textblock
15957 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6839
15958 msgid ""
15959 "This displays the partition table on C<device>, in the human-readable output "
15960 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15961 msgstr ""
15962
15963 #. type: textblock
15964 #: ../fish/guestfish-actions.pod:4525
15965 msgid "See also: L</part-list>"
15966 msgstr "Див. також L</part-list>"
15967
15968 #. type: textblock
15969 #: ../fish/guestfish-actions.pod:4527
15970 msgid ""
15971 "I<This function is deprecated.> In new code, use the L</part_list> call "
15972 "instead."
15973 msgstr ""
15974
15975 #. type: =head2
15976 #: ../fish/guestfish-actions.pod:4534
15977 msgid "sh"
15978 msgstr "sh"
15979
15980 #. type: verbatim
15981 #: ../fish/guestfish-actions.pod:4536
15982 #, no-wrap
15983 msgid ""
15984 " sh command\n"
15985 "\n"
15986 msgstr ""
15987 " sh команда\n"
15988 "\n"
15989
15990 #. type: textblock
15991 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6856
15992 msgid ""
15993 "This call runs a command from the guest filesystem via the guest's C</bin/"
15994 "sh>."
15995 msgstr ""
15996
15997 #. type: textblock
15998 #: ../fish/guestfish-actions.pod:4541
15999 msgid "This is like L</command>, but passes the command to:"
16000 msgstr ""
16001
16002 #. type: verbatim
16003 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6861
16004 #, no-wrap
16005 msgid ""
16006 " /bin/sh -c \"command\"\n"
16007 "\n"
16008 msgstr ""
16009
16010 #. type: textblock
16011 #: ../fish/guestfish-actions.pod:4545 ../src/guestfs-actions.pod:6863
16012 msgid ""
16013 "Depending on the guest's shell, this usually results in wildcards being "
16014 "expanded, shell expressions being interpolated and so on."
16015 msgstr ""
16016
16017 #. type: textblock
16018 #: ../fish/guestfish-actions.pod:4549
16019 msgid "All the provisos about L</command> apply to this call."
16020 msgstr ""
16021
16022 #. type: =head2
16023 #: ../fish/guestfish-actions.pod:4551
16024 msgid "sh-lines"
16025 msgstr "sh-lines"
16026
16027 #. type: verbatim
16028 #: ../fish/guestfish-actions.pod:4553
16029 #, no-wrap
16030 msgid ""
16031 " sh-lines command\n"
16032 "\n"
16033 msgstr ""
16034 " sh-lines команда\n"
16035 "\n"
16036
16037 #. type: textblock
16038 #: ../fish/guestfish-actions.pod:4555
16039 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16040 msgstr ""
16041
16042 #. type: textblock
16043 #: ../fish/guestfish-actions.pod:4558
16044 msgid "See also: L</command-lines>"
16045 msgstr "Див. також L</command-lines>"
16046
16047 #. type: =head2
16048 #: ../fish/guestfish-actions.pod:4560
16049 msgid "sleep"
16050 msgstr "sleep"
16051
16052 #. type: verbatim
16053 #: ../fish/guestfish-actions.pod:4562
16054 #, no-wrap
16055 msgid ""
16056 " sleep secs\n"
16057 "\n"
16058 msgstr ""
16059 " sleep час_у_секундах\n"
16060 "\n"
16061
16062 #. type: textblock
16063 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6897
16064 msgid "Sleep for C<secs> seconds."
16065 msgstr ""
16066
16067 #. type: =head2
16068 #: ../fish/guestfish-actions.pod:4566
16069 msgid "stat"
16070 msgstr "stat"
16071
16072 #. type: verbatim
16073 #: ../fish/guestfish-actions.pod:4568
16074 #, no-wrap
16075 msgid ""
16076 " stat path\n"
16077 "\n"
16078 msgstr ""
16079 " stat шлях\n"
16080 "\n"
16081
16082 #. type: textblock
16083 #: ../fish/guestfish-actions.pod:4572 ../src/guestfs-actions.pod:6911
16084 msgid "This is the same as the C<stat(2)> system call."
16085 msgstr ""
16086
16087 #. type: =head2
16088 #: ../fish/guestfish-actions.pod:4574
16089 msgid "statvfs"
16090 msgstr "statvfs"
16091
16092 #. type: verbatim
16093 #: ../fish/guestfish-actions.pod:4576
16094 #, no-wrap
16095 msgid ""
16096 " statvfs path\n"
16097 "\n"
16098 msgstr ""
16099 " statvfs шлях\n"
16100 "\n"
16101
16102 #. type: textblock
16103 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6925
16104 msgid ""
16105 "Returns file system statistics for any mounted file system.  C<path> should "
16106 "be a file or directory in the mounted file system (typically it is the mount "
16107 "point itself, but it doesn't need to be)."
16108 msgstr ""
16109
16110 #. type: textblock
16111 #: ../fish/guestfish-actions.pod:4582 ../src/guestfs-actions.pod:6929
16112 msgid "This is the same as the C<statvfs(2)> system call."
16113 msgstr ""
16114
16115 #. type: =head2
16116 #: ../fish/guestfish-actions.pod:4584
16117 msgid "strings"
16118 msgstr "strings"
16119
16120 #. type: verbatim
16121 #: ../fish/guestfish-actions.pod:4586
16122 #, no-wrap
16123 msgid ""
16124 " strings path\n"
16125 "\n"
16126 msgstr ""
16127 " strings шлях\n"
16128 "\n"
16129
16130 #. type: textblock
16131 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6943
16132 msgid ""
16133 "This runs the L<strings(1)> command on a file and returns the list of "
16134 "printable strings found."
16135 msgstr ""
16136
16137 #. type: =head2
16138 #: ../fish/guestfish-actions.pod:4594
16139 msgid "strings-e"
16140 msgstr "strings-e"
16141
16142 #. type: verbatim
16143 #: ../fish/guestfish-actions.pod:4596
16144 #, no-wrap
16145 msgid ""
16146 " strings-e encoding path\n"
16147 "\n"
16148 msgstr ""
16149 " strings-e кодування шлях\n"
16150 "\n"
16151
16152 #. type: textblock
16153 #: ../fish/guestfish-actions.pod:4598
16154 msgid ""
16155 "This is like the L</strings> command, but allows you to specify the encoding "
16156 "of strings that are looked for in the source file C<path>."
16157 msgstr ""
16158
16159 #. type: textblock
16160 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6966
16161 msgid "Allowed encodings are:"
16162 msgstr "Можливими кодуваннями є:"
16163
16164 #. type: =item
16165 #: ../fish/guestfish-actions.pod:4606 ../src/guestfs-actions.pod:6970
16166 msgid "s"
16167 msgstr "s"
16168
16169 #. type: textblock
16170 #: ../fish/guestfish-actions.pod:4608
16171 msgid ""
16172 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16173 "ISO-8859-X (this is what L</strings> uses)."
16174 msgstr ""
16175
16176 #. type: =item
16177 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6975
16178 msgid "S"
16179 msgstr "S"
16180
16181 #. type: textblock
16182 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6977
16183 msgid "Single 8-bit-byte characters."
16184 msgstr "Окремі 8-бітові-байтові символи."
16185
16186 #. type: =item
16187 #: ../fish/guestfish-actions.pod:4615 ../src/guestfs-actions.pod:6979
16188 msgid "b"
16189 msgstr "b"
16190
16191 #. type: textblock
16192 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6981
16193 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16194 msgstr ""
16195
16196 #. type: =item
16197 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6984
16198 msgid "l (lower case letter L)"
16199 msgstr ""
16200
16201 #. type: textblock
16202 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6986
16203 msgid ""
16204 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16205 "examining binaries in Windows guests."
16206 msgstr ""
16207
16208 #. type: =item
16209 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6989
16210 msgid "B"
16211 msgstr "B"
16212
16213 #. type: textblock
16214 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6991
16215 msgid "32-bit big endian such as UCS-4BE."
16216 msgstr ""
16217
16218 #. type: =item
16219 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:6993
16220 msgid "L"
16221 msgstr "L"
16222
16223 #. type: textblock
16224 #: ../fish/guestfish-actions.pod:4631 ../src/guestfs-actions.pod:6995
16225 msgid "32-bit little endian such as UCS-4LE."
16226 msgstr ""
16227
16228 #. type: textblock
16229 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:6999
16230 msgid "The returned strings are transcoded to UTF-8."
16231 msgstr ""
16232
16233 #. type: =head2
16234 #: ../fish/guestfish-actions.pod:4640
16235 msgid "swapoff-device"
16236 msgstr "swapoff-device"
16237
16238 #. type: verbatim
16239 #: ../fish/guestfish-actions.pod:4642
16240 #, no-wrap
16241 msgid ""
16242 " swapoff-device device\n"
16243 "\n"
16244 msgstr ""
16245 " swapoff-device пристрій\n"
16246 "\n"
16247
16248 #. type: textblock
16249 #: ../fish/guestfish-actions.pod:4644
16250 msgid ""
16251 "This command disables the libguestfs appliance swap device or partition "
16252 "named C<device>.  See L</swapon-device>."
16253 msgstr ""
16254
16255 #. type: =head2
16256 #: ../fish/guestfish-actions.pod:4648
16257 msgid "swapoff-file"
16258 msgstr "swapoff-file"
16259
16260 #. type: verbatim
16261 #: ../fish/guestfish-actions.pod:4650
16262 #, no-wrap
16263 msgid ""
16264 " swapoff-file file\n"
16265 "\n"
16266 msgstr ""
16267 " swapoff-file файл\n"
16268 "\n"
16269
16270 #. type: textblock
16271 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7030
16272 msgid "This command disables the libguestfs appliance swap on file."
16273 msgstr ""
16274
16275 #. type: =head2
16276 #: ../fish/guestfish-actions.pod:4654
16277 msgid "swapoff-label"
16278 msgstr "swapoff-label"
16279
16280 #. type: verbatim
16281 #: ../fish/guestfish-actions.pod:4656
16282 #, no-wrap
16283 msgid ""
16284 " swapoff-label label\n"
16285 "\n"
16286 msgstr ""
16287 " swapoff-label мітка\n"
16288 "\n"
16289
16290 #. type: textblock
16291 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7042
16292 msgid ""
16293 "This command disables the libguestfs appliance swap on labeled swap "
16294 "partition."
16295 msgstr ""
16296
16297 #. type: =head2
16298 #: ../fish/guestfish-actions.pod:4661
16299 msgid "swapoff-uuid"
16300 msgstr "swapoff-uuid"
16301
16302 #. type: verbatim
16303 #: ../fish/guestfish-actions.pod:4663
16304 #, no-wrap
16305 msgid ""
16306 " swapoff-uuid uuid\n"
16307 "\n"
16308 msgstr ""
16309 " swapoff-uuid uuid\n"
16310 "\n"
16311
16312 #. type: textblock
16313 #: ../fish/guestfish-actions.pod:4665 ../src/guestfs-actions.pod:7055
16314 msgid ""
16315 "This command disables the libguestfs appliance swap partition with the given "
16316 "UUID."
16317 msgstr ""
16318
16319 #. type: =head2
16320 #: ../fish/guestfish-actions.pod:4668
16321 msgid "swapon-device"
16322 msgstr "swapon-device"
16323
16324 #. type: verbatim
16325 #: ../fish/guestfish-actions.pod:4670
16326 #, no-wrap
16327 msgid ""
16328 " swapon-device device\n"
16329 "\n"
16330 msgstr ""
16331 " swapon-device пристрій\n"
16332 "\n"
16333
16334 #. type: textblock
16335 #: ../fish/guestfish-actions.pod:4672
16336 msgid ""
16337 "This command enables the libguestfs appliance to use the swap device or "
16338 "partition named C<device>.  The increased memory is made available for all "
16339 "commands, for example those run using L</command> or L</sh>."
16340 msgstr ""
16341
16342 #. type: textblock
16343 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7073
16344 msgid ""
16345 "Note that you should not swap to existing guest swap partitions unless you "
16346 "know what you are doing.  They may contain hibernation information, or other "
16347 "information that the guest doesn't want you to trash.  You also risk leaking "
16348 "information about the host to the guest this way.  Instead, attach a new "
16349 "host device to the guest and swap on that."
16350 msgstr ""
16351
16352 #. type: =head2
16353 #: ../fish/guestfish-actions.pod:4684
16354 msgid "swapon-file"
16355 msgstr "swapon-file"
16356
16357 #. type: verbatim
16358 #: ../fish/guestfish-actions.pod:4686
16359 #, no-wrap
16360 msgid ""
16361 " swapon-file file\n"
16362 "\n"
16363 msgstr ""
16364 " swapon-file файл\n"
16365 "\n"
16366
16367 #. type: textblock
16368 #: ../fish/guestfish-actions.pod:4688
16369 msgid ""
16370 "This command enables swap to a file.  See L</swapon-device> for other notes."
16371 msgstr ""
16372
16373 #. type: =head2
16374 #: ../fish/guestfish-actions.pod:4691
16375 msgid "swapon-label"
16376 msgstr "swapon-label"
16377
16378 #. type: verbatim
16379 #: ../fish/guestfish-actions.pod:4693
16380 #, no-wrap
16381 msgid ""
16382 " swapon-label label\n"
16383 "\n"
16384 msgstr ""
16385 " swapon-label мітка\n"
16386 "\n"
16387
16388 #. type: textblock
16389 #: ../fish/guestfish-actions.pod:4695
16390 msgid ""
16391 "This command enables swap to a labeled swap partition.  See L</swapon-"
16392 "device> for other notes."
16393 msgstr ""
16394
16395 #. type: =head2
16396 #: ../fish/guestfish-actions.pod:4698
16397 msgid "swapon-uuid"
16398 msgstr "swapon-uuid"
16399
16400 #. type: verbatim
16401 #: ../fish/guestfish-actions.pod:4700
16402 #, no-wrap
16403 msgid ""
16404 " swapon-uuid uuid\n"
16405 "\n"
16406 msgstr ""
16407 " swapon-uuid uuid\n"
16408 "\n"
16409
16410 #. type: textblock
16411 #: ../fish/guestfish-actions.pod:4702
16412 msgid ""
16413 "This command enables swap to a swap partition with the given UUID.  See L</"
16414 "swapon-device> for other notes."
16415 msgstr ""
16416
16417 #. type: =head2
16418 #: ../fish/guestfish-actions.pod:4705
16419 msgid "sync"
16420 msgstr "sync"
16421
16422 #. type: verbatim
16423 #: ../fish/guestfish-actions.pod:4707
16424 #, no-wrap
16425 msgid ""
16426 " sync\n"
16427 "\n"
16428 msgstr ""
16429 " sync\n"
16430 "\n"
16431
16432 #. type: textblock
16433 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7128
16434 msgid ""
16435 "This syncs the disk, so that any writes are flushed through to the "
16436 "underlying disk image."
16437 msgstr ""
16438
16439 #. type: textblock
16440 #: ../fish/guestfish-actions.pod:4712 ../src/guestfs-actions.pod:7131
16441 msgid ""
16442 "You should always call this if you have modified a disk image, before "
16443 "closing the handle."
16444 msgstr ""
16445
16446 #. type: =head2
16447 #: ../fish/guestfish-actions.pod:4715
16448 msgid "tail"
16449 msgstr "tail"
16450
16451 #. type: verbatim
16452 #: ../fish/guestfish-actions.pod:4717
16453 #, no-wrap
16454 msgid ""
16455 " tail path\n"
16456 "\n"
16457 msgstr ""
16458 " tail шлях\n"
16459 "\n"
16460
16461 #. type: textblock
16462 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7144
16463 msgid ""
16464 "This command returns up to the last 10 lines of a file as a list of strings."
16465 msgstr ""
16466
16467 #. type: =head2
16468 #: ../fish/guestfish-actions.pod:4725
16469 msgid "tail-n"
16470 msgstr "tail-n"
16471
16472 #. type: verbatim
16473 #: ../fish/guestfish-actions.pod:4727
16474 #, no-wrap
16475 msgid ""
16476 " tail-n nrlines path\n"
16477 "\n"
16478 msgstr ""
16479
16480 #. type: textblock
16481 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7163
16482 msgid ""
16483 "If the parameter C<nrlines> is a positive number, this returns the last "
16484 "C<nrlines> lines of the file C<path>."
16485 msgstr ""
16486
16487 #. type: textblock
16488 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7166
16489 msgid ""
16490 "If the parameter C<nrlines> is a negative number, this returns lines from "
16491 "the file C<path>, starting with the C<-nrlines>th line."
16492 msgstr ""
16493
16494 #. type: =head2
16495 #: ../fish/guestfish-actions.pod:4740
16496 msgid "tar-in"
16497 msgstr "tar-in"
16498
16499 #. type: verbatim
16500 #: ../fish/guestfish-actions.pod:4742
16501 #, no-wrap
16502 msgid ""
16503 " tar-in (tarfile|-) directory\n"
16504 "\n"
16505 msgstr ""
16506 " tar-in (файл_tar|-) каталог\n"
16507 "\n"
16508
16509 #. type: textblock
16510 #: ../fish/guestfish-actions.pod:4744 ../src/guestfs-actions.pod:7187
16511 msgid ""
16512 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16513 "tar file) into C<directory>."
16514 msgstr ""
16515
16516 #. type: textblock
16517 #: ../fish/guestfish-actions.pod:4747
16518 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16519 msgstr ""
16520
16521 #. type: =head2
16522 #: ../fish/guestfish-actions.pod:4752
16523 msgid "tar-out"
16524 msgstr "tar-out"
16525
16526 #. type: verbatim
16527 #: ../fish/guestfish-actions.pod:4754
16528 #, no-wrap
16529 msgid ""
16530 " tar-out directory (tarfile|-)\n"
16531 "\n"
16532 msgstr ""
16533 " tar-out каталог (файл tar|-)\n"
16534 "\n"
16535
16536 #. type: textblock
16537 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7204
16538 msgid ""
16539 "This command packs the contents of C<directory> and downloads it to local "
16540 "file C<tarfile>."
16541 msgstr ""
16542
16543 #. type: textblock
16544 #: ../fish/guestfish-actions.pod:4759
16545 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16546 msgstr ""
16547
16548 #. type: =head2
16549 #: ../fish/guestfish-actions.pod:4764
16550 msgid "tgz-in"
16551 msgstr "tgz-in"
16552
16553 #. type: verbatim
16554 #: ../fish/guestfish-actions.pod:4766
16555 #, no-wrap
16556 msgid ""
16557 " tgz-in (tarball|-) directory\n"
16558 "\n"
16559 msgstr ""
16560 " tgz-in (архів tar|-) каталог\n"
16561 "\n"
16562
16563 #. type: textblock
16564 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7221
16565 msgid ""
16566 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16567 "tar file) into C<directory>."
16568 msgstr ""
16569
16570 #. type: textblock
16571 #: ../fish/guestfish-actions.pod:4771
16572 msgid "To upload an uncompressed tarball, use L</tar-in>."
16573 msgstr ""
16574
16575 #. type: =head2
16576 #: ../fish/guestfish-actions.pod:4775
16577 msgid "tgz-out"
16578 msgstr "tgz-out"
16579
16580 #. type: verbatim
16581 #: ../fish/guestfish-actions.pod:4777
16582 #, no-wrap
16583 msgid ""
16584 " tgz-out directory (tarball|-)\n"
16585 "\n"
16586 msgstr ""
16587 " tgz-out каталог (архів tar|-)\n"
16588 "\n"
16589
16590 #. type: textblock
16591 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7237
16592 msgid ""
16593 "This command packs the contents of C<directory> and downloads it to local "
16594 "file C<tarball>."
16595 msgstr ""
16596
16597 #. type: textblock
16598 #: ../fish/guestfish-actions.pod:4782
16599 msgid "To download an uncompressed tarball, use L</tar-out>."
16600 msgstr ""
16601
16602 #. type: =head2
16603 #: ../fish/guestfish-actions.pod:4786
16604 msgid "touch"
16605 msgstr "touch"
16606
16607 #. type: verbatim
16608 #: ../fish/guestfish-actions.pod:4788
16609 #, no-wrap
16610 msgid ""
16611 " touch path\n"
16612 "\n"
16613 msgstr ""
16614 " touch шлях\n"
16615 "\n"
16616
16617 #. type: textblock
16618 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7252
16619 msgid ""
16620 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16621 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16622 "length file."
16623 msgstr ""
16624
16625 #. type: textblock
16626 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7256
16627 msgid ""
16628 "This command only works on regular files, and will fail on other file types "
16629 "such as directories, symbolic links, block special etc."
16630 msgstr ""
16631
16632 #. type: =head2
16633 #: ../fish/guestfish-actions.pod:4797
16634 msgid "truncate"
16635 msgstr "truncate"
16636
16637 #. type: verbatim
16638 #: ../fish/guestfish-actions.pod:4799
16639 #, no-wrap
16640 msgid ""
16641 " truncate path\n"
16642 "\n"
16643 msgstr ""
16644 " truncate шлях\n"
16645 "\n"
16646
16647 #. type: textblock
16648 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7269
16649 msgid ""
16650 "This command truncates C<path> to a zero-length file.  The file must exist "
16651 "already."
16652 msgstr ""
16653
16654 #. type: =head2
16655 #: ../fish/guestfish-actions.pod:4804
16656 msgid "truncate-size"
16657 msgstr "truncate-size"
16658
16659 #. type: verbatim
16660 #: ../fish/guestfish-actions.pod:4806
16661 #, no-wrap
16662 msgid ""
16663 " truncate-size path size\n"
16664 "\n"
16665 msgstr ""
16666 " truncate-size шлях розмір\n"
16667 "\n"
16668
16669 #. type: textblock
16670 #: ../fish/guestfish-actions.pod:4808 ../src/guestfs-actions.pod:7283
16671 msgid ""
16672 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16673 "already."
16674 msgstr ""
16675
16676 #. type: textblock
16677 #: ../fish/guestfish-actions.pod:4811
16678 msgid ""
16679 "If the current file size is less than C<size> then the file is extended to "
16680 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16681 "blocks are not allocated for the file until you write to it).  To create a "
16682 "non-sparse file of zeroes, use L</fallocate64> instead."
16683 msgstr ""
16684
16685 #. type: =head2
16686 #: ../fish/guestfish-actions.pod:4817
16687 msgid "tune2fs-l"
16688 msgstr "tune2fs-l"
16689
16690 #. type: verbatim
16691 #: ../fish/guestfish-actions.pod:4819
16692 #, no-wrap
16693 msgid ""
16694 " tune2fs-l device\n"
16695 "\n"
16696 msgstr ""
16697 " tune2fs-l пристрій\n"
16698 "\n"
16699
16700 #. type: textblock
16701 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7302
16702 msgid ""
16703 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16704 "C<device>."
16705 msgstr ""
16706
16707 #. type: textblock
16708 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7305
16709 msgid ""
16710 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16711 "for more details.  The list of fields returned isn't clearly defined, and "
16712 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16713 "and the filesystem itself."
16714 msgstr ""
16715
16716 #. type: =head2
16717 #: ../fish/guestfish-actions.pod:4829
16718 msgid "txz-in"
16719 msgstr "txz-in"
16720
16721 #. type: verbatim
16722 #: ../fish/guestfish-actions.pod:4831
16723 #, no-wrap
16724 msgid ""
16725 " txz-in (tarball|-) directory\n"
16726 "\n"
16727 msgstr ""
16728 " txz-in (архів tar|-) каталог\n"
16729 "\n"
16730
16731 #. type: textblock
16732 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7325
16733 msgid ""
16734 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16735 "tar file) into C<directory>."
16736 msgstr ""
16737
16738 #. type: =head2
16739 #: ../fish/guestfish-actions.pod:4838
16740 msgid "txz-out"
16741 msgstr "txz-out"
16742
16743 #. type: verbatim
16744 #: ../fish/guestfish-actions.pod:4840
16745 #, no-wrap
16746 msgid ""
16747 " txz-out directory (tarball|-)\n"
16748 "\n"
16749 msgstr ""
16750 " txz-out каталог (архів tar|-)\n"
16751 "\n"
16752
16753 #. type: textblock
16754 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7339
16755 msgid ""
16756 "This command packs the contents of C<directory> and downloads it to local "
16757 "file C<tarball> (as an xz compressed tar archive)."
16758 msgstr ""
16759
16760 #. type: =head2
16761 #: ../fish/guestfish-actions.pod:4847
16762 msgid "umask"
16763 msgstr "umask"
16764
16765 #. type: verbatim
16766 #: ../fish/guestfish-actions.pod:4849
16767 #, no-wrap
16768 msgid ""
16769 " umask mask\n"
16770 "\n"
16771 msgstr ""
16772 " umask маска\n"
16773 "\n"
16774
16775 #. type: textblock
16776 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7352
16777 msgid ""
16778 "This function sets the mask used for creating new files and device nodes to "
16779 "C<mask & 0777>."
16780 msgstr ""
16781
16782 #. type: textblock
16783 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7355
16784 msgid ""
16785 "Typical umask values would be C<022> which creates new files with "
16786 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16787 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16788 msgstr ""
16789
16790 #. type: textblock
16791 #: ../fish/guestfish-actions.pod:4859 ../src/guestfs-actions.pod:7360
16792 msgid ""
16793 "The default umask is C<022>.  This is important because it means that "
16794 "directories and device nodes will be created with C<0644> or C<0755> mode "
16795 "even if you specify C<0777>."
16796 msgstr ""
16797
16798 #. type: textblock
16799 #: ../fish/guestfish-actions.pod:4863
16800 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16801 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16802
16803 #. type: textblock
16804 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7367
16805 msgid "This call returns the previous umask."
16806 msgstr ""
16807
16808 #. type: =head2
16809 #: ../fish/guestfish-actions.pod:4868
16810 msgid "umount"
16811 msgstr "umount"
16812
16813 #. type: =head2
16814 #: ../fish/guestfish-actions.pod:4870
16815 msgid "unmount"
16816 msgstr "unmount"
16817
16818 #. type: verbatim
16819 #: ../fish/guestfish-actions.pod:4872
16820 #, no-wrap
16821 msgid ""
16822 " umount pathordevice\n"
16823 "\n"
16824 msgstr ""
16825 " umount шлях_або_пристрій\n"
16826 "\n"
16827
16828 #. type: textblock
16829 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7379
16830 msgid ""
16831 "This unmounts the given filesystem.  The filesystem may be specified either "
16832 "by its mountpoint (path) or the device which contains the filesystem."
16833 msgstr ""
16834
16835 #. type: =head2
16836 #: ../fish/guestfish-actions.pod:4878
16837 msgid "umount-all"
16838 msgstr "umount-all"
16839
16840 #. type: =head2
16841 #: ../fish/guestfish-actions.pod:4880
16842 msgid "unmount-all"
16843 msgstr "unmount-all"
16844
16845 #. type: verbatim
16846 #: ../fish/guestfish-actions.pod:4882
16847 #, no-wrap
16848 msgid ""
16849 " umount-all\n"
16850 "\n"
16851 msgstr ""
16852 " umount-all\n"
16853 "\n"
16854
16855 #. type: textblock
16856 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7392
16857 msgid "This unmounts all mounted filesystems."
16858 msgstr ""
16859
16860 #. type: textblock
16861 #: ../fish/guestfish-actions.pod:4886 ../src/guestfs-actions.pod:7394
16862 msgid "Some internal mounts are not unmounted by this call."
16863 msgstr ""
16864
16865 #. type: =head2
16866 #: ../fish/guestfish-actions.pod:4888
16867 msgid "upload"
16868 msgstr "upload"
16869
16870 #. type: verbatim
16871 #: ../fish/guestfish-actions.pod:4890
16872 #, no-wrap
16873 msgid ""
16874 " upload (filename|-) remotefilename\n"
16875 "\n"
16876 msgstr ""
16877 " upload (назва_файла|-) назва_віддаленого_файла\n"
16878 "\n"
16879
16880 #. type: textblock
16881 #: ../fish/guestfish-actions.pod:4892 ../fish/guestfish-actions.pod:4905
16882 #: ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7431
16883 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16884 msgstr ""
16885
16886 #. type: textblock
16887 #: ../fish/guestfish-actions.pod:4897
16888 msgid "See also L</download>."
16889 msgstr "Див. також L</download>."
16890
16891 #. type: =head2
16892 #: ../fish/guestfish-actions.pod:4901
16893 msgid "upload-offset"
16894 msgstr "upload-offset"
16895
16896 #. type: verbatim
16897 #: ../fish/guestfish-actions.pod:4903
16898 #, no-wrap
16899 msgid ""
16900 " upload-offset (filename|-) remotefilename offset\n"
16901 "\n"
16902 msgstr ""
16903 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
16904 "\n"
16905
16906 #. type: textblock
16907 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7434
16908 msgid ""
16909 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16910 "The intention is to overwrite parts of existing files or devices, although "
16911 "if a non-existant file is specified then it is created with a \"hole\" "
16912 "before C<offset>.  The size of the data written is implicit in the size of "
16913 "the source C<filename>."
16914 msgstr ""
16915
16916 #. type: textblock
16917 #: ../fish/guestfish-actions.pod:4915
16918 msgid ""
16919 "Note that there is no limit on the amount of data that can be uploaded with "
16920 "this call, unlike with L</pwrite>, and this call always writes the full "
16921 "amount unless an error occurs."
16922 msgstr ""
16923
16924 #. type: textblock
16925 #: ../fish/guestfish-actions.pod:4920
16926 msgid "See also L</upload>, L</pwrite>."
16927 msgstr "Див. також L</upload>, L</pwrite>."
16928
16929 #. type: =head2
16930 #: ../fish/guestfish-actions.pod:4924
16931 msgid "utimens"
16932 msgstr "utimens"
16933
16934 #. type: verbatim
16935 #: ../fish/guestfish-actions.pod:4926
16936 #, no-wrap
16937 msgid ""
16938 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16939 "\n"
16940 msgstr ""
16941
16942 #. type: textblock
16943 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7467
16944 msgid "This command sets the timestamps of a file with nanosecond precision."
16945 msgstr ""
16946
16947 #. type: textblock
16948 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7470
16949 msgid ""
16950 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16951 "from the epoch."
16952 msgstr ""
16953
16954 #. type: textblock
16955 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7473
16956 msgid ""
16957 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16958 "nanoseconds from the epoch."
16959 msgstr ""
16960
16961 #. type: textblock
16962 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7476
16963 msgid ""
16964 "If the C<*nsecs> field contains the special value C<-1> then the "
16965 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16966 "ignored in this case)."
16967 msgstr ""
16968
16969 #. type: textblock
16970 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7480
16971 msgid ""
16972 "If the C<*nsecs> field contains the special value C<-2> then the "
16973 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16974 "in this case)."
16975 msgstr ""
16976
16977 #. type: =head2
16978 #: ../fish/guestfish-actions.pod:4945
16979 msgid "version"
16980 msgstr "version"
16981
16982 #. type: verbatim
16983 #: ../fish/guestfish-actions.pod:4947
16984 #, no-wrap
16985 msgid ""
16986 " version\n"
16987 "\n"
16988 msgstr ""
16989 " version\n"
16990 "\n"
16991
16992 #. type: textblock
16993 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7493
16994 msgid ""
16995 "Return the libguestfs version number that the program is linked against."
16996 msgstr ""
16997
16998 #. type: textblock
16999 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7496
17000 msgid ""
17001 "Note that because of dynamic linking this is not necessarily the version of "
17002 "libguestfs that you compiled against.  You can compile the program, and then "
17003 "at runtime dynamically link against a completely different C<libguestfs.so> "
17004 "library."
17005 msgstr ""
17006
17007 #. type: textblock
17008 #: ../fish/guestfish-actions.pod:4957 ../src/guestfs-actions.pod:7501
17009 msgid ""
17010 "This call was added in version C<1.0.58>.  In previous versions of "
17011 "libguestfs there was no way to get the version number.  From C code you can "
17012 "use dynamic linker functions to find out if this symbol exists (if it "
17013 "doesn't, then it's an earlier version)."
17014 msgstr ""
17015
17016 #. type: textblock
17017 #: ../fish/guestfish-actions.pod:4963 ../src/guestfs-actions.pod:7507
17018 msgid ""
17019 "The call returns a structure with four elements.  The first three (C<major>, "
17020 "C<minor> and C<release>) are numbers and correspond to the usual version "
17021 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17022 "but may be used for distro-specific information."
17023 msgstr ""
17024
17025 #. type: textblock
17026 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7513
17027 msgid ""
17028 "To construct the original version string: C<$major.$minor.$release$extra>"
17029 msgstr ""
17030
17031 #. type: textblock
17032 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7516
17033 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17034 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17035
17036 #. type: textblock
17037 #: ../fish/guestfish-actions.pod:4974
17038 msgid ""
17039 "I<Note:> Don't use this call to test for availability of features.  In "
17040 "enterprise distributions we backport features from later versions into "
17041 "earlier versions, making this an unreliable way to test for features.  Use "
17042 "L</available> instead."
17043 msgstr ""
17044
17045 #. type: =head2
17046 #: ../fish/guestfish-actions.pod:4980
17047 msgid "vfs-label"
17048 msgstr "vfs-label"
17049
17050 #. type: verbatim
17051 #: ../fish/guestfish-actions.pod:4982
17052 #, no-wrap
17053 msgid ""
17054 " vfs-label device\n"
17055 "\n"
17056 msgstr ""
17057 " vfs-label пристрій\n"
17058 "\n"
17059
17060 #. type: textblock
17061 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7536
17062 msgid "This returns the filesystem label of the filesystem on C<device>."
17063 msgstr ""
17064
17065 #. type: textblock
17066 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7539
17067 msgid "If the filesystem is unlabeled, this returns the empty string."
17068 msgstr ""
17069
17070 #. type: textblock
17071 #: ../fish/guestfish-actions.pod:4989
17072 msgid "To find a filesystem from the label, use L</findfs-label>."
17073 msgstr ""
17074
17075 #. type: =head2
17076 #: ../fish/guestfish-actions.pod:4991
17077 msgid "vfs-type"
17078 msgstr "vfs-type"
17079
17080 #. type: verbatim
17081 #: ../fish/guestfish-actions.pod:4993
17082 #, no-wrap
17083 msgid ""
17084 " vfs-type device\n"
17085 "\n"
17086 msgstr ""
17087 " vfs-type пристрій\n"
17088 "\n"
17089
17090 #. type: textblock
17091 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7554
17092 msgid ""
17093 "This command gets the filesystem type corresponding to the filesystem on "
17094 "C<device>."
17095 msgstr ""
17096
17097 #. type: textblock
17098 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7557
17099 msgid ""
17100 "For most filesystems, the result is the name of the Linux VFS module which "
17101 "would be used to mount this filesystem if you mounted it without specifying "
17102 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17103 msgstr ""
17104
17105 #. type: =head2
17106 #: ../fish/guestfish-actions.pod:5003
17107 msgid "vfs-uuid"
17108 msgstr "vfs-uuid"
17109
17110 #. type: verbatim
17111 #: ../fish/guestfish-actions.pod:5005
17112 #, no-wrap
17113 msgid ""
17114 " vfs-uuid device\n"
17115 "\n"
17116 msgstr ""
17117 " vfs-uuid пристрій\n"
17118 "\n"
17119
17120 #. type: textblock
17121 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7573
17122 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17123 msgstr ""
17124
17125 #. type: textblock
17126 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7576
17127 msgid "If the filesystem does not have a UUID, this returns the empty string."
17128 msgstr ""
17129
17130 #. type: textblock
17131 #: ../fish/guestfish-actions.pod:5012
17132 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17133 msgstr ""
17134
17135 #. type: =head2
17136 #: ../fish/guestfish-actions.pod:5014
17137 msgid "vg-activate"
17138 msgstr "vg-activate"
17139
17140 #. type: verbatim
17141 #: ../fish/guestfish-actions.pod:5016
17142 #, no-wrap
17143 msgid ""
17144 " vg-activate true|false 'volgroups ...'\n"
17145 "\n"
17146 msgstr ""
17147
17148 #. type: textblock
17149 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7592
17150 msgid ""
17151 "This command activates or (if C<activate> is false) deactivates all logical "
17152 "volumes in the listed volume groups C<volgroups>."
17153 msgstr ""
17154
17155 #. type: textblock
17156 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7595
17157 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17158 msgstr ""
17159
17160 #. type: textblock
17161 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7597
17162 msgid ""
17163 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17164 "activated or deactivated."
17165 msgstr ""
17166
17167 #. type: =head2
17168 #: ../fish/guestfish-actions.pod:5026
17169 msgid "vg-activate-all"
17170 msgstr "vg-activate-all"
17171
17172 #. type: verbatim
17173 #: ../fish/guestfish-actions.pod:5028
17174 #, no-wrap
17175 msgid ""
17176 " vg-activate-all true|false\n"
17177 "\n"
17178 msgstr ""
17179 " vg-activate-all true|false\n"
17180 "\n"
17181
17182 #. type: textblock
17183 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7610
17184 msgid ""
17185 "This command activates or (if C<activate> is false) deactivates all logical "
17186 "volumes in all volume groups."
17187 msgstr ""
17188
17189 #. type: textblock
17190 #: ../fish/guestfish-actions.pod:5033 ../src/guestfs-actions.pod:7613
17191 msgid "This command is the same as running C<vgchange -a y|n>"
17192 msgstr ""
17193
17194 #. type: =head2
17195 #: ../fish/guestfish-actions.pod:5035
17196 msgid "vgcreate"
17197 msgstr "vgcreate"
17198
17199 #. type: verbatim
17200 #: ../fish/guestfish-actions.pod:5037
17201 #, no-wrap
17202 msgid ""
17203 " vgcreate volgroup 'physvols ...'\n"
17204 "\n"
17205 msgstr ""
17206
17207 #. type: textblock
17208 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7626
17209 msgid ""
17210 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17211 "of physical volumes C<physvols>."
17212 msgstr ""
17213
17214 #. type: =head2
17215 #: ../fish/guestfish-actions.pod:5042
17216 msgid "vglvuuids"
17217 msgstr "vglvuuids"
17218
17219 #. type: verbatim
17220 #: ../fish/guestfish-actions.pod:5044
17221 #, no-wrap
17222 msgid ""
17223 " vglvuuids vgname\n"
17224 "\n"
17225 msgstr ""
17226
17227 #. type: textblock
17228 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7639
17229 msgid ""
17230 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17231 "volumes created in this volume group."
17232 msgstr ""
17233
17234 #. type: textblock
17235 #: ../fish/guestfish-actions.pod:5049
17236 msgid ""
17237 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17238 "logical volumes and volume groups."
17239 msgstr ""
17240
17241 #. type: textblock
17242 #: ../fish/guestfish-actions.pod:5052
17243 msgid "See also L</vgpvuuids>."
17244 msgstr "Див. також L</vgpvuuids>."
17245
17246 #. type: =head2
17247 #: ../fish/guestfish-actions.pod:5054
17248 msgid "vgpvuuids"
17249 msgstr "vgpvuuids"
17250
17251 #. type: verbatim
17252 #: ../fish/guestfish-actions.pod:5056
17253 #, no-wrap
17254 msgid ""
17255 " vgpvuuids vgname\n"
17256 "\n"
17257 msgstr ""
17258
17259 #. type: textblock
17260 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7659
17261 msgid ""
17262 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17263 "volumes that this volume group resides on."
17264 msgstr ""
17265
17266 #. type: textblock
17267 #: ../fish/guestfish-actions.pod:5061
17268 msgid ""
17269 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17270 "physical volumes and volume groups."
17271 msgstr ""
17272
17273 #. type: textblock
17274 #: ../fish/guestfish-actions.pod:5064
17275 msgid "See also L</vglvuuids>."
17276 msgstr "Див. також L</vglvuuids>."
17277
17278 #. type: =head2
17279 #: ../fish/guestfish-actions.pod:5066
17280 msgid "vgremove"
17281 msgstr "vgremove"
17282
17283 #. type: verbatim
17284 #: ../fish/guestfish-actions.pod:5068
17285 #, no-wrap
17286 msgid ""
17287 " vgremove vgname\n"
17288 "\n"
17289 msgstr ""
17290
17291 #. type: textblock
17292 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7679
17293 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17294 msgstr ""
17295
17296 #. type: textblock
17297 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7681
17298 msgid ""
17299 "This also forcibly removes all logical volumes in the volume group (if any)."
17300 msgstr ""
17301
17302 #. type: =head2
17303 #: ../fish/guestfish-actions.pod:5075
17304 msgid "vgrename"
17305 msgstr "vgrename"
17306
17307 #. type: verbatim
17308 #: ../fish/guestfish-actions.pod:5077
17309 #, no-wrap
17310 msgid ""
17311 " vgrename volgroup newvolgroup\n"
17312 "\n"
17313 msgstr ""
17314
17315 #. type: textblock
17316 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7695
17317 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17318 msgstr ""
17319
17320 #. type: =head2
17321 #: ../fish/guestfish-actions.pod:5081
17322 msgid "vgs"
17323 msgstr "vgs"
17324
17325 #. type: verbatim
17326 #: ../fish/guestfish-actions.pod:5083
17327 #, no-wrap
17328 msgid ""
17329 " vgs\n"
17330 "\n"
17331 msgstr ""
17332 " vgs\n"
17333 "\n"
17334
17335 #. type: textblock
17336 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7706
17337 msgid ""
17338 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17339 "> command."
17340 msgstr ""
17341
17342 #. type: textblock
17343 #: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:7709
17344 msgid ""
17345 "This returns a list of just the volume group names that were detected (eg. "
17346 "C<VolGroup00>)."
17347 msgstr ""
17348
17349 #. type: textblock
17350 #: ../fish/guestfish-actions.pod:5091
17351 msgid "See also L</vgs-full>."
17352 msgstr "Див. також L</vgs-full>."
17353
17354 #. type: =head2
17355 #: ../fish/guestfish-actions.pod:5093
17356 msgid "vgs-full"
17357 msgstr "vgs-full"
17358
17359 #. type: verbatim
17360 #: ../fish/guestfish-actions.pod:5095
17361 #, no-wrap
17362 msgid ""
17363 " vgs-full\n"
17364 "\n"
17365 msgstr ""
17366 " vgs-full\n"
17367 "\n"
17368
17369 #. type: textblock
17370 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7725
17371 msgid ""
17372 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17373 "> command.  The \"full\" version includes all fields."
17374 msgstr ""
17375
17376 #. type: =head2
17377 #: ../fish/guestfish-actions.pod:5100
17378 msgid "vgscan"
17379 msgstr "vgscan"
17380
17381 #. type: verbatim
17382 #: ../fish/guestfish-actions.pod:5102
17383 #, no-wrap
17384 msgid ""
17385 " vgscan\n"
17386 "\n"
17387 msgstr ""
17388 " vgscan\n"
17389 "\n"
17390
17391 #. type: textblock
17392 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7739
17393 msgid ""
17394 "This rescans all block devices and rebuilds the list of LVM physical "
17395 "volumes, volume groups and logical volumes."
17396 msgstr ""
17397
17398 #. type: =head2
17399 #: ../fish/guestfish-actions.pod:5107
17400 msgid "vguuid"
17401 msgstr "vguuid"
17402
17403 #. type: verbatim
17404 #: ../fish/guestfish-actions.pod:5109
17405 #, no-wrap
17406 msgid ""
17407 " vguuid vgname\n"
17408 "\n"
17409 msgstr ""
17410
17411 #. type: textblock
17412 #: ../fish/guestfish-actions.pod:5111 ../src/guestfs-actions.pod:7752
17413 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17414 msgstr ""
17415
17416 #. type: =head2
17417 #: ../fish/guestfish-actions.pod:5113
17418 msgid "wc-c"
17419 msgstr "wc-c"
17420
17421 #. type: verbatim
17422 #: ../fish/guestfish-actions.pod:5115
17423 #, no-wrap
17424 msgid ""
17425 " wc-c path\n"
17426 "\n"
17427 msgstr ""
17428 " wc-c шлях\n"
17429 "\n"
17430
17431 #. type: textblock
17432 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7792
17433 msgid ""
17434 "This command counts the characters in a file, using the C<wc -c> external "
17435 "command."
17436 msgstr ""
17437
17438 #. type: =head2
17439 #: ../fish/guestfish-actions.pod:5120
17440 msgid "wc-l"
17441 msgstr "wc-l"
17442
17443 #. type: verbatim
17444 #: ../fish/guestfish-actions.pod:5122
17445 #, no-wrap
17446 msgid ""
17447 " wc-l path\n"
17448 "\n"
17449 msgstr ""
17450 " wc-l шлях\n"
17451 "\n"
17452
17453 #. type: textblock
17454 #: ../fish/guestfish-actions.pod:5124 ../src/guestfs-actions.pod:7805
17455 msgid ""
17456 "This command counts the lines in a file, using the C<wc -l> external command."
17457 msgstr ""
17458
17459 #. type: =head2
17460 #: ../fish/guestfish-actions.pod:5127
17461 msgid "wc-w"
17462 msgstr "wc-w"
17463
17464 #. type: verbatim
17465 #: ../fish/guestfish-actions.pod:5129
17466 #, no-wrap
17467 msgid ""
17468 " wc-w path\n"
17469 "\n"
17470 msgstr ""
17471 " wc-w шлях\n"
17472 "\n"
17473
17474 #. type: textblock
17475 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7818
17476 msgid ""
17477 "This command counts the words in a file, using the C<wc -w> external command."
17478 msgstr ""
17479
17480 #. type: =head2
17481 #: ../fish/guestfish-actions.pod:5134
17482 msgid "write"
17483 msgstr "write"
17484
17485 #. type: verbatim
17486 #: ../fish/guestfish-actions.pod:5136
17487 #, no-wrap
17488 msgid ""
17489 " write path content\n"
17490 "\n"
17491 msgstr ""
17492 " write шлях дані\n"
17493 "\n"
17494
17495 #. type: textblock
17496 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7833
17497 msgid ""
17498 "This call creates a file called C<path>.  The content of the file is the "
17499 "string C<content> (which can contain any 8 bit data)."
17500 msgstr ""
17501
17502 #. type: textblock
17503 #: ../fish/guestfish-actions.pod:5141
17504 msgid "See also L</write-append>."
17505 msgstr "Див. також L</write-append>."
17506
17507 #. type: =head2
17508 #: ../fish/guestfish-actions.pod:5146
17509 msgid "write-append"
17510 msgstr ""
17511
17512 #. type: verbatim
17513 #: ../fish/guestfish-actions.pod:5148
17514 #, no-wrap
17515 msgid ""
17516 " write-append path content\n"
17517 "\n"
17518 msgstr ""
17519
17520 #. type: textblock
17521 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7853
17522 msgid ""
17523 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17524 "not exist, then a new file is created."
17525 msgstr ""
17526
17527 #. type: textblock
17528 #: ../fish/guestfish-actions.pod:5153
17529 msgid "See also L</write>."
17530 msgstr "Див. також L</write>."
17531
17532 #. type: =head2
17533 #: ../fish/guestfish-actions.pod:5158
17534 msgid "write-file"
17535 msgstr "write-file"
17536
17537 #. type: verbatim
17538 #: ../fish/guestfish-actions.pod:5160
17539 #, no-wrap
17540 msgid ""
17541 " write-file path content size\n"
17542 "\n"
17543 msgstr ""
17544
17545 #. type: textblock
17546 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7880
17547 msgid ""
17548 "This call creates a file called C<path>.  The contents of the file is the "
17549 "string C<content> (which can contain any 8 bit data), with length C<size>."
17550 msgstr ""
17551
17552 #. type: textblock
17553 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7884
17554 msgid ""
17555 "As a special case, if C<size> is C<0> then the length is calculated using "
17556 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17557 msgstr ""
17558
17559 #. type: textblock
17560 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7888
17561 msgid ""
17562 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17563 "I<not> work, even if the length is specified."
17564 msgstr ""
17565
17566 #. type: textblock
17567 #: ../fish/guestfish-actions.pod:5176
17568 msgid ""
17569 "I<This function is deprecated.> In new code, use the L</write> call instead."
17570 msgstr ""
17571
17572 #. type: =head2
17573 #: ../fish/guestfish-actions.pod:5183
17574 msgid "zegrep"
17575 msgstr "zegrep"
17576
17577 #. type: verbatim
17578 #: ../fish/guestfish-actions.pod:5185
17579 #, no-wrap
17580 msgid ""
17581 " zegrep regex path\n"
17582 "\n"
17583 msgstr ""
17584 " zegrep формальний_вираз шлях\n"
17585 "\n"
17586
17587 #. type: textblock
17588 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7905
17589 msgid ""
17590 "This calls the external C<zegrep> program and returns the matching lines."
17591 msgstr ""
17592
17593 #. type: =head2
17594 #: ../fish/guestfish-actions.pod:5193
17595 msgid "zegrepi"
17596 msgstr "zegrepi"
17597
17598 #. type: verbatim
17599 #: ../fish/guestfish-actions.pod:5195
17600 #, no-wrap
17601 msgid ""
17602 " zegrepi regex path\n"
17603 "\n"
17604 msgstr ""
17605
17606 #. type: textblock
17607 #: ../fish/guestfish-actions.pod:5197 ../src/guestfs-actions.pod:7924
17608 msgid ""
17609 "This calls the external C<zegrep -i> program and returns the matching lines."
17610 msgstr ""
17611
17612 #. type: =head2
17613 #: ../fish/guestfish-actions.pod:5203
17614 msgid "zero"
17615 msgstr "zero"
17616
17617 #. type: verbatim
17618 #: ../fish/guestfish-actions.pod:5205
17619 #, no-wrap
17620 msgid ""
17621 " zero device\n"
17622 "\n"
17623 msgstr ""
17624 " zero пристрій\n"
17625 "\n"
17626
17627 #. type: textblock
17628 #: ../fish/guestfish-actions.pod:5207 ../src/guestfs-actions.pod:7942
17629 msgid "This command writes zeroes over the first few blocks of C<device>."
17630 msgstr ""
17631
17632 #. type: textblock
17633 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7944
17634 msgid ""
17635 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17636 "securely wipe the device).  It should be sufficient to remove any partition "
17637 "tables, filesystem superblocks and so on."
17638 msgstr ""
17639
17640 #. type: textblock
17641 #: ../fish/guestfish-actions.pod:5213 ../fish/guestfish-actions.pod:5228
17642 #: ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7974
17643 msgid ""
17644 "If blocks are already zero, then this command avoids writing zeroes.  This "
17645 "prevents the underlying device from becoming non-sparse or growing "
17646 "unnecessarily."
17647 msgstr ""
17648
17649 #. type: textblock
17650 #: ../fish/guestfish-actions.pod:5217
17651 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17652 msgstr ""
17653
17654 #. type: =head2
17655 #: ../fish/guestfish-actions.pod:5220
17656 msgid "zero-device"
17657 msgstr "zero-device"
17658
17659 #. type: verbatim
17660 #: ../fish/guestfish-actions.pod:5222
17661 #, no-wrap
17662 msgid ""
17663 " zero-device device\n"
17664 "\n"
17665 msgstr ""
17666 " zero-device пристрій\n"
17667 "\n"
17668
17669 #. type: textblock
17670 #: ../fish/guestfish-actions.pod:5224
17671 msgid ""
17672 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17673 "which just zeroes the first few blocks of a device."
17674 msgstr ""
17675
17676 #. type: =head2
17677 #: ../fish/guestfish-actions.pod:5235
17678 msgid "zerofree"
17679 msgstr "zerofree"
17680
17681 #. type: verbatim
17682 #: ../fish/guestfish-actions.pod:5237
17683 #, no-wrap
17684 msgid ""
17685 " zerofree device\n"
17686 "\n"
17687 msgstr ""
17688 " zerofree пристрій\n"
17689 "\n"
17690
17691 #. type: textblock
17692 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7996
17693 msgid ""
17694 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17695 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17696 "possible to compress the filesystem more effectively."
17697 msgstr ""
17698
17699 #. type: textblock
17700 #: ../fish/guestfish-actions.pod:5244 ../src/guestfs-actions.pod:8001
17701 msgid "You should B<not> run this program if the filesystem is mounted."
17702 msgstr ""
17703
17704 #. type: textblock
17705 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8004
17706 msgid ""
17707 "It is possible that using this program can damage the filesystem or data on "
17708 "the filesystem."
17709 msgstr ""
17710
17711 #. type: =head2
17712 #: ../fish/guestfish-actions.pod:5250
17713 msgid "zfgrep"
17714 msgstr "zfgrep"
17715
17716 #. type: verbatim
17717 #: ../fish/guestfish-actions.pod:5252
17718 #, no-wrap
17719 msgid ""
17720 " zfgrep pattern path\n"
17721 "\n"
17722 msgstr ""
17723 " zfgrep шаблон шлях\n"
17724 "\n"
17725
17726 #. type: textblock
17727 #: ../fish/guestfish-actions.pod:5254 ../src/guestfs-actions.pod:8018
17728 msgid ""
17729 "This calls the external C<zfgrep> program and returns the matching lines."
17730 msgstr ""
17731
17732 #. type: =head2
17733 #: ../fish/guestfish-actions.pod:5260
17734 msgid "zfgrepi"
17735 msgstr "zfgrepi"
17736
17737 #. type: verbatim
17738 #: ../fish/guestfish-actions.pod:5262
17739 #, no-wrap
17740 msgid ""
17741 " zfgrepi pattern path\n"
17742 "\n"
17743 msgstr ""
17744 " zfgrepi шаблон шлях\n"
17745 "\n"
17746
17747 #. type: textblock
17748 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8037
17749 msgid ""
17750 "This calls the external C<zfgrep -i> program and returns the matching lines."
17751 msgstr ""
17752
17753 #. type: =head2
17754 #: ../fish/guestfish-actions.pod:5270
17755 msgid "zfile"
17756 msgstr "zfile"
17757
17758 #. type: verbatim
17759 #: ../fish/guestfish-actions.pod:5272
17760 #, no-wrap
17761 msgid ""
17762 " zfile meth path\n"
17763 "\n"
17764 msgstr ""
17765 " zfile метод шлях\n"
17766 "\n"
17767
17768 #. type: textblock
17769 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8063
17770 msgid ""
17771 "This command runs C<file> after first decompressing C<path> using C<method>."
17772 msgstr ""
17773
17774 #. type: textblock
17775 #: ../fish/guestfish-actions.pod:5277 ../src/guestfs-actions.pod:8066
17776 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17777 msgstr ""
17778
17779 #. type: textblock
17780 #: ../fish/guestfish-actions.pod:5279
17781 msgid ""
17782 "Since 1.0.63, use L</file> instead which can now process compressed files."
17783 msgstr ""
17784
17785 #. type: textblock
17786 #: ../fish/guestfish-actions.pod:5282
17787 msgid ""
17788 "I<This function is deprecated.> In new code, use the L</file> call instead."
17789 msgstr ""
17790
17791 #. type: =head2
17792 #: ../fish/guestfish-actions.pod:5289
17793 msgid "zgrep"
17794 msgstr "zgrep"
17795
17796 #. type: verbatim
17797 #: ../fish/guestfish-actions.pod:5291
17798 #, no-wrap
17799 msgid ""
17800 " zgrep regex path\n"
17801 "\n"
17802 msgstr ""
17803 " zgrep формальний_вираз шлях\n"
17804 "\n"
17805
17806 #. type: textblock
17807 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8083
17808 msgid ""
17809 "This calls the external C<zgrep> program and returns the matching lines."
17810 msgstr ""
17811
17812 #. type: =head2
17813 #: ../fish/guestfish-actions.pod:5299
17814 msgid "zgrepi"
17815 msgstr "zgrepi"
17816
17817 #. type: verbatim
17818 #: ../fish/guestfish-actions.pod:5301
17819 #, no-wrap
17820 msgid ""
17821 " zgrepi regex path\n"
17822 "\n"
17823 msgstr ""
17824 " zgrepi формальний_вираз шлях\n"
17825 "\n"
17826
17827 #. type: textblock
17828 #: ../fish/guestfish-actions.pod:5303 ../src/guestfs-actions.pod:8102
17829 msgid ""
17830 "This calls the external C<zgrep -i> program and returns the matching lines."
17831 msgstr ""
17832
17833 #. type: =head2
17834 #: ../fish/guestfish-commands.pod:1
17835 msgid "alloc"
17836 msgstr "alloc"
17837
17838 #. type: =head2
17839 #: ../fish/guestfish-commands.pod:3
17840 msgid "allocate"
17841 msgstr ""
17842
17843 #. type: verbatim
17844 #: ../fish/guestfish-commands.pod:5
17845 #, no-wrap
17846 msgid ""
17847 " alloc filename size\n"
17848 "\n"
17849 msgstr ""
17850
17851 #. type: textblock
17852 #: ../fish/guestfish-commands.pod:7
17853 msgid ""
17854 "This creates an empty (zeroed) file of the given size, and then adds so it "
17855 "can be further examined."
17856 msgstr ""
17857
17858 #. type: textblock
17859 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17860 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17861 msgstr ""
17862
17863 #. type: textblock
17864 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17865 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17866 msgstr ""
17867
17868 #. type: textblock
17869 #: ../fish/guestfish-commands.pod:14
17870 msgid ""
17871 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17872 "image, see L</PREPARED DISK IMAGES>."
17873 msgstr ""
17874
17875 #. type: =head2
17876 #: ../fish/guestfish-commands.pod:17
17877 msgid "copy-in"
17878 msgstr "copy-in"
17879
17880 #. type: verbatim
17881 #: ../fish/guestfish-commands.pod:19
17882 #, no-wrap
17883 msgid ""
17884 " copy-in local [local ...] /remotedir\n"
17885 "\n"
17886 msgstr ""
17887
17888 #. type: textblock
17889 #: ../fish/guestfish-commands.pod:21
17890 msgid ""
17891 "C<copy-in> copies local files or directories recursively into the disk "
17892 "image, placing them in the directory called C</remotedir> (which must "
17893 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17894 "other commands as necessary."
17895 msgstr ""
17896
17897 #. type: textblock
17898 #: ../fish/guestfish-commands.pod:26
17899 msgid ""
17900 "Multiple local files and directories can be specified, but the last "
17901 "parameter must always be a remote directory.  Wildcards cannot be used."
17902 msgstr ""
17903
17904 #. type: =head2
17905 #: ../fish/guestfish-commands.pod:30
17906 msgid "copy-out"
17907 msgstr "copy-out"
17908
17909 #. type: verbatim
17910 #: ../fish/guestfish-commands.pod:32
17911 #, no-wrap
17912 msgid ""
17913 " copy-out remote [remote ...] localdir\n"
17914 "\n"
17915 msgstr ""
17916
17917 #. type: textblock
17918 #: ../fish/guestfish-commands.pod:34
17919 msgid ""
17920 "C<copy-out> copies remote files or directories recursively out of the disk "
17921 "image, placing them on the host disk in a local directory called C<localdir> "
17922 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
17923 "download>, L</tar-out> and other commands as necessary."
17924 msgstr ""
17925
17926 #. type: textblock
17927 #: ../fish/guestfish-commands.pod:40
17928 msgid ""
17929 "Multiple remote files and directories can be specified, but the last "
17930 "parameter must always be a local directory.  To download to the current "
17931 "directory, use C<.> as in:"
17932 msgstr ""
17933
17934 #. type: verbatim
17935 #: ../fish/guestfish-commands.pod:44
17936 #, no-wrap
17937 msgid ""
17938 " copy-out /home .\n"
17939 "\n"
17940 msgstr ""
17941 " copy-out /home .\n"
17942 "\n"
17943
17944 #. type: textblock
17945 #: ../fish/guestfish-commands.pod:46
17946 msgid ""
17947 "Wildcards cannot be used in the ordinary command, but you can use them with "
17948 "the help of L</glob> like this:"
17949 msgstr ""
17950
17951 #. type: verbatim
17952 #: ../fish/guestfish-commands.pod:49
17953 #, no-wrap
17954 msgid ""
17955 " glob copy-out /home/* .\n"
17956 "\n"
17957 msgstr ""
17958 " glob copy-out /home/* .\n"
17959 "\n"
17960
17961 #. type: =head2
17962 #: ../fish/guestfish-commands.pod:51
17963 msgid "display"
17964 msgstr ""
17965
17966 #. type: verbatim
17967 #: ../fish/guestfish-commands.pod:53
17968 #, no-wrap
17969 msgid ""
17970 " display filename\n"
17971 "\n"
17972 msgstr ""
17973
17974 #. type: textblock
17975 #: ../fish/guestfish-commands.pod:55
17976 msgid ""
17977 "Use C<display> (a graphical display program) to display an image file.  It "
17978 "downloads the file, and runs C<display> on it."
17979 msgstr ""
17980
17981 #. type: textblock
17982 #: ../fish/guestfish-commands.pod:58
17983 msgid ""
17984 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17985 "environment variable.  For example to use the GNOME display program:"
17986 msgstr ""
17987
17988 #. type: verbatim
17989 #: ../fish/guestfish-commands.pod:61
17990 #, no-wrap
17991 msgid ""
17992 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17993 "\n"
17994 msgstr ""
17995
17996 #. type: textblock
17997 #: ../fish/guestfish-commands.pod:63
17998 msgid "See also L<display(1)>."
17999 msgstr "Див. також L<display(1)>."
18000
18001 #. type: =head2
18002 #: ../fish/guestfish-commands.pod:65
18003 msgid "echo"
18004 msgstr "echo"
18005
18006 #. type: verbatim
18007 #: ../fish/guestfish-commands.pod:67
18008 #, no-wrap
18009 msgid ""
18010 " echo [params ...]\n"
18011 "\n"
18012 msgstr ""
18013 " echo [параметри...]\n"
18014 "\n"
18015
18016 #. type: textblock
18017 #: ../fish/guestfish-commands.pod:69
18018 msgid "This echos the parameters to the terminal."
18019 msgstr ""
18020
18021 #. type: =head2
18022 #: ../fish/guestfish-commands.pod:71
18023 msgid "edit"
18024 msgstr "edit"
18025
18026 #. type: =head2
18027 #: ../fish/guestfish-commands.pod:73
18028 msgid "vi"
18029 msgstr "vi"
18030
18031 #. type: =head2
18032 #: ../fish/guestfish-commands.pod:75
18033 msgid "emacs"
18034 msgstr "emacs"
18035
18036 #. type: verbatim
18037 #: ../fish/guestfish-commands.pod:77
18038 #, no-wrap
18039 msgid ""
18040 " edit filename\n"
18041 "\n"
18042 msgstr ""
18043 " edit назва_файла\n"
18044 "\n"
18045
18046 #. type: textblock
18047 #: ../fish/guestfish-commands.pod:79
18048 msgid ""
18049 "This is used to edit a file.  It downloads the file, edits it locally using "
18050 "your editor, then uploads the result."
18051 msgstr ""
18052
18053 #. type: textblock
18054 #: ../fish/guestfish-commands.pod:82
18055 msgid ""
18056 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18057 "or C<emacs> you will get those corresponding editors."
18058 msgstr ""
18059
18060 #. type: =head2
18061 #: ../fish/guestfish-commands.pod:86
18062 msgid "glob"
18063 msgstr "glob"
18064
18065 #. type: verbatim
18066 #: ../fish/guestfish-commands.pod:88
18067 #, no-wrap
18068 msgid ""
18069 " glob command args...\n"
18070 "\n"
18071 msgstr ""
18072 " glob команда параметри...\n"
18073 "\n"
18074
18075 #. type: textblock
18076 #: ../fish/guestfish-commands.pod:90
18077 msgid ""
18078 "Expand wildcards in any paths in the args list, and run C<command> "
18079 "repeatedly on each matching path."
18080 msgstr ""
18081
18082 #. type: textblock
18083 #: ../fish/guestfish-commands.pod:93
18084 msgid "See L</WILDCARDS AND GLOBBING>."
18085 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18086
18087 #. type: =head2
18088 #: ../fish/guestfish-commands.pod:95
18089 msgid "hexedit"
18090 msgstr "hexedit"
18091
18092 #. type: verbatim
18093 #: ../fish/guestfish-commands.pod:97
18094 #, no-wrap
18095 msgid ""
18096 " hexedit <filename|device>\n"
18097 " hexedit <filename|device> <max>\n"
18098 " hexedit <filename|device> <start> <max>\n"
18099 "\n"
18100 msgstr ""
18101
18102 #. type: textblock
18103 #: ../fish/guestfish-commands.pod:101
18104 msgid ""
18105 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18106 "device."
18107 msgstr ""
18108
18109 #. type: textblock
18110 #: ../fish/guestfish-commands.pod:104
18111 msgid ""
18112 "This command works by downloading potentially the whole file or device, "
18113 "editing it locally, then uploading it.  If the file or device is large, you "
18114 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18115 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18116 "usual modifiers allowed such as C<1M> (1 megabyte)."
18117 msgstr ""
18118
18119 #. type: textblock
18120 #: ../fish/guestfish-commands.pod:111
18121 msgid "For example to edit the first few sectors of a disk you might do:"
18122 msgstr ""
18123
18124 #. type: verbatim
18125 #: ../fish/guestfish-commands.pod:114
18126 #, no-wrap
18127 msgid ""
18128 " hexedit /dev/sda 1M\n"
18129 "\n"
18130 msgstr ""
18131 " hexedit /dev/sda 1M\n"
18132 "\n"
18133
18134 #. type: textblock
18135 #: ../fish/guestfish-commands.pod:116
18136 msgid ""
18137 "which would allow you to edit anywhere within the first megabyte of the disk."
18138 msgstr ""
18139
18140 #. type: textblock
18141 #: ../fish/guestfish-commands.pod:119
18142 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18143 msgstr ""
18144
18145 #. type: verbatim
18146 #: ../fish/guestfish-commands.pod:121
18147 #, no-wrap
18148 msgid ""
18149 " hexedit /dev/sda1 0x400 0x400\n"
18150 "\n"
18151 msgstr ""
18152 " hexedit /dev/sda1 0x400 0x400\n"
18153 "\n"
18154
18155 #. type: textblock
18156 #: ../fish/guestfish-commands.pod:123
18157 msgid "(assuming the superblock is in the standard location)."
18158 msgstr ""
18159
18160 #. type: textblock
18161 #: ../fish/guestfish-commands.pod:125
18162 msgid ""
18163 "This command requires the external L<hexedit(1)> program.  You can specify "
18164 "another program to use by setting the C<HEXEDITOR> environment variable."
18165 msgstr ""
18166
18167 #. type: textblock
18168 #: ../fish/guestfish-commands.pod:129
18169 msgid "See also L</hexdump>."
18170 msgstr "Див. також L</hexdump>."
18171
18172 #. type: =head2
18173 #: ../fish/guestfish-commands.pod:131
18174 msgid "lcd"
18175 msgstr "lcd"
18176
18177 #. type: verbatim
18178 #: ../fish/guestfish-commands.pod:133
18179 #, no-wrap
18180 msgid ""
18181 " lcd directory\n"
18182 "\n"
18183 msgstr ""
18184
18185 #. type: textblock
18186 #: ../fish/guestfish-commands.pod:135
18187 msgid ""
18188 "Change the local directory, ie. the current directory of guestfish itself."
18189 msgstr ""
18190
18191 #. type: textblock
18192 #: ../fish/guestfish-commands.pod:138
18193 msgid "Note that C<!cd> won't do what you might expect."
18194 msgstr ""
18195
18196 #. type: =head2
18197 #: ../fish/guestfish-commands.pod:140
18198 msgid "man"
18199 msgstr "man"
18200
18201 #. type: =head2
18202 #: ../fish/guestfish-commands.pod:142
18203 msgid "manual"
18204 msgstr "підручник"
18205
18206 #. type: verbatim
18207 #: ../fish/guestfish-commands.pod:144
18208 #, no-wrap
18209 msgid ""
18210 "  man\n"
18211 "\n"
18212 msgstr ""
18213 "  man\n"
18214 "\n"
18215
18216 #. type: textblock
18217 #: ../fish/guestfish-commands.pod:146
18218 msgid "Opens the manual page for guestfish."
18219 msgstr ""
18220
18221 #. type: =head2
18222 #: ../fish/guestfish-commands.pod:148
18223 msgid "more"
18224 msgstr "more"
18225
18226 #. type: =head2
18227 #: ../fish/guestfish-commands.pod:150
18228 msgid "less"
18229 msgstr "less"
18230
18231 #. type: verbatim
18232 #: ../fish/guestfish-commands.pod:152
18233 #, no-wrap
18234 msgid ""
18235 " more filename\n"
18236 "\n"
18237 msgstr ""
18238
18239 #. type: verbatim
18240 #: ../fish/guestfish-commands.pod:154
18241 #, no-wrap
18242 msgid ""
18243 " less filename\n"
18244 "\n"
18245 msgstr ""
18246
18247 #. type: textblock
18248 #: ../fish/guestfish-commands.pod:156
18249 msgid "This is used to view a file."
18250 msgstr ""
18251
18252 #. type: textblock
18253 #: ../fish/guestfish-commands.pod:158
18254 msgid ""
18255 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18256 "C<less> you will get the C<less> command specifically."
18257 msgstr ""
18258
18259 #. type: =head2
18260 #: ../fish/guestfish-commands.pod:161
18261 msgid "reopen"
18262 msgstr "reopen"
18263
18264 #. type: verbatim
18265 #: ../fish/guestfish-commands.pod:163
18266 #, no-wrap
18267 msgid ""
18268 "  reopen\n"
18269 "\n"
18270 msgstr ""
18271
18272 #. type: textblock
18273 #: ../fish/guestfish-commands.pod:165
18274 msgid ""
18275 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18276 "normally, because the handle is closed properly when guestfish exits.  "
18277 "However this is occasionally useful for testing."
18278 msgstr ""
18279
18280 #. type: =head2
18281 #: ../fish/guestfish-commands.pod:169
18282 msgid "setenv"
18283 msgstr ""
18284
18285 #. type: verbatim
18286 #: ../fish/guestfish-commands.pod:171
18287 #, no-wrap
18288 msgid ""
18289 "  setenv VAR value\n"
18290 "\n"
18291 msgstr ""
18292
18293 #. type: textblock
18294 #: ../fish/guestfish-commands.pod:173
18295 msgid "Set the environment variable C<VAR> to the string C<value>."
18296 msgstr ""
18297
18298 #. type: textblock
18299 #: ../fish/guestfish-commands.pod:175
18300 msgid ""
18301 "To print the value of an environment variable use a shell command such as:"
18302 msgstr ""
18303
18304 #. type: verbatim
18305 #: ../fish/guestfish-commands.pod:178
18306 #, no-wrap
18307 msgid ""
18308 " !echo $VAR\n"
18309 "\n"
18310 msgstr ""
18311
18312 #. type: =head2
18313 #: ../fish/guestfish-commands.pod:180
18314 msgid "sparse"
18315 msgstr "sparse"
18316
18317 #. type: verbatim
18318 #: ../fish/guestfish-commands.pod:182
18319 #, no-wrap
18320 msgid ""
18321 " sparse filename size\n"
18322 "\n"
18323 msgstr ""
18324
18325 #. type: textblock
18326 #: ../fish/guestfish-commands.pod:184
18327 msgid ""
18328 "This creates an empty sparse file of the given size, and then adds so it can "
18329 "be further examined."
18330 msgstr ""
18331
18332 #. type: textblock
18333 #: ../fish/guestfish-commands.pod:187
18334 msgid ""
18335 "In all respects it works the same as the L</alloc> command, except that the "
18336 "image file is allocated sparsely, which means that disk blocks are not "
18337 "assigned to the file until they are needed.  Sparse disk files only use "
18338 "space when written to, but they are slower and there is a danger you could "
18339 "run out of real disk space during a write operation."
18340 msgstr ""
18341
18342 #. type: =head2
18343 #: ../fish/guestfish-commands.pod:197
18344 msgid "supported"
18345 msgstr "supported"
18346
18347 #. type: verbatim
18348 #: ../fish/guestfish-commands.pod:199
18349 #, no-wrap
18350 msgid ""
18351 " supported\n"
18352 "\n"
18353 msgstr ""
18354 " supported\n"
18355 "\n"
18356
18357 #. type: textblock
18358 #: ../fish/guestfish-commands.pod:201
18359 msgid ""
18360 "This command returns a list of the optional groups known to the daemon, and "
18361 "indicates which ones are supported by this build of the libguestfs appliance."
18362 msgstr ""
18363
18364 #. type: textblock
18365 #: ../fish/guestfish-commands.pod:205
18366 msgid "See also L<guestfs(3)/AVAILABILITY>."
18367 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
18368
18369 #. type: =head2
18370 #: ../fish/guestfish-commands.pod:207
18371 msgid "time"
18372 msgstr "time"
18373
18374 #. type: verbatim
18375 #: ../fish/guestfish-commands.pod:209
18376 #, no-wrap
18377 msgid ""
18378 " time command args...\n"
18379 "\n"
18380 msgstr ""
18381
18382 #. type: textblock
18383 #: ../fish/guestfish-commands.pod:211
18384 msgid ""
18385 "Run the command as usual, but print the elapsed time afterwards.  This can "
18386 "be useful for benchmarking operations."
18387 msgstr ""
18388
18389 #. type: =head2
18390 #: ../fish/guestfish-commands.pod:214
18391 msgid "unsetenv"
18392 msgstr ""
18393
18394 #. type: verbatim
18395 #: ../fish/guestfish-commands.pod:216
18396 #, no-wrap
18397 msgid ""
18398 "  unsetenv VAR\n"
18399 "\n"
18400 msgstr ""
18401
18402 #. type: textblock
18403 #: ../fish/guestfish-commands.pod:218
18404 msgid "Remove C<VAR> from the environment."
18405 msgstr ""
18406
18407 #. type: textblock
18408 #: ../fish/guestfish.pod:5
18409 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18410 msgstr ""
18411
18412 #. type: verbatim
18413 #: ../fish/guestfish.pod:9
18414 #, no-wrap
18415 msgid ""
18416 " guestfish [--options] [commands]\n"
18417 "\n"
18418 msgstr ""
18419
18420 #. type: verbatim
18421 #: ../fish/guestfish.pod:11
18422 #, no-wrap
18423 msgid ""
18424 " guestfish\n"
18425 "\n"
18426 msgstr ""
18427
18428 #. type: verbatim
18429 #: ../fish/guestfish.pod:13
18430 #, no-wrap
18431 msgid ""
18432 " guestfish [--ro|--rw] -a disk.img\n"
18433 "\n"
18434 msgstr ""
18435
18436 #. type: verbatim
18437 #: ../fish/guestfish.pod:15
18438 #, no-wrap
18439 msgid ""
18440 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18441 "\n"
18442 msgstr ""
18443
18444 #. type: verbatim
18445 #: ../fish/guestfish.pod:17
18446 #, no-wrap
18447 msgid ""
18448 " guestfish -d libvirt-domain\n"
18449 "\n"
18450 msgstr ""
18451
18452 #. type: verbatim
18453 #: ../fish/guestfish.pod:19
18454 #, no-wrap
18455 msgid ""
18456 " guestfish [--ro|--rw] -a disk.img -i\n"
18457 "\n"
18458 msgstr ""
18459
18460 #. type: verbatim
18461 #: ../fish/guestfish.pod:21
18462 #, no-wrap
18463 msgid ""
18464 " guestfish -d libvirt-domain -i\n"
18465 "\n"
18466 msgstr ""
18467
18468 #. type: textblock
18469 #: ../fish/guestfish.pod:25
18470 msgid ""
18471 "Using guestfish in read/write mode on live virtual machines can be "
18472 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18473 "option to use guestfish safely if the disk image or virtual machine might be "
18474 "live."
18475 msgstr ""
18476
18477 #. type: textblock
18478 #: ../fish/guestfish.pod:32
18479 msgid ""
18480 "Guestfish is a shell and command-line tool for examining and modifying "
18481 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18482 "functionality of the guestfs API, see L<guestfs(3)>."
18483 msgstr ""
18484
18485 #. type: textblock
18486 #: ../fish/guestfish.pod:36
18487 msgid ""
18488 "Guestfish gives you structured access to the libguestfs API, from shell "
18489 "scripts or the command line or interactively.  If you want to rescue a "
18490 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18491 "command."
18492 msgstr ""
18493
18494 #. type: =head2
18495 #: ../fish/guestfish.pod:43
18496 msgid "As an interactive shell"
18497 msgstr ""
18498
18499 #. type: verbatim
18500 #: ../fish/guestfish.pod:45
18501 #, no-wrap
18502 msgid ""
18503 " $ guestfish\n"
18504 " \n"
18505 msgstr ""
18506
18507 #. type: verbatim
18508 #: ../fish/guestfish.pod:47
18509 #, no-wrap
18510 msgid ""
18511 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18512 " editing virtual machine filesystems.\n"
18513 " \n"
18514 msgstr ""
18515
18516 #. type: verbatim
18517 #: ../fish/guestfish.pod:50
18518 #, no-wrap
18519 msgid ""
18520 " Type: 'help' for a list of commands\n"
18521 "       'man' to read the manual\n"
18522 "       'quit' to quit the shell\n"
18523 " \n"
18524 msgstr ""
18525
18526 #. type: verbatim
18527 #: ../fish/guestfish.pod:54
18528 #, no-wrap
18529 msgid ""
18530 " ><fs> add-ro disk.img\n"
18531 " ><fs> run\n"
18532 " ><fs> list-filesystems\n"
18533 " /dev/sda1: ext4\n"
18534 " /dev/vg_guest/lv_root: ext4\n"
18535 " /dev/vg_guest/lv_swap: swap\n"
18536 " ><fs> mount /dev/vg_guest/lv_root /\n"
18537 " ><fs> cat /etc/fstab\n"
18538 " # /etc/fstab\n"
18539 " # Created by anaconda\n"
18540 " [...]\n"
18541 " ><fs> exit\n"
18542 "\n"
18543 msgstr ""
18544
18545 #. type: =head2
18546 #: ../fish/guestfish.pod:67
18547 msgid "From shell scripts"
18548 msgstr ""
18549
18550 #. type: textblock
18551 #: ../fish/guestfish.pod:69
18552 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18553 msgstr ""
18554
18555 #. type: verbatim
18556 #: ../fish/guestfish.pod:71
18557 #, no-wrap
18558 msgid ""
18559 " guestfish <<_EOF_\n"
18560 " add disk.img\n"
18561 " run\n"
18562 " mount /dev/vg_guest/lv_root /\n"
18563 " write /etc/motd \"Welcome, new users\"\n"
18564 " _EOF_\n"
18565 "\n"
18566 msgstr ""
18567
18568 #. type: textblock
18569 #: ../fish/guestfish.pod:78
18570 msgid "List the LVM logical volumes in a disk image:"
18571 msgstr ""
18572
18573 #. type: verbatim
18574 #: ../fish/guestfish.pod:80
18575 #, no-wrap
18576 msgid ""
18577 " guestfish -a disk.img --ro <<_EOF_\n"
18578 " run\n"
18579 " lvs\n"
18580 " _EOF_\n"
18581 "\n"
18582 msgstr ""
18583
18584 #. type: textblock
18585 #: ../fish/guestfish.pod:85
18586 msgid "List all the filesystems in a disk image:"
18587 msgstr ""
18588
18589 #. type: verbatim
18590 #: ../fish/guestfish.pod:87
18591 #, no-wrap
18592 msgid ""
18593 " guestfish -a disk.img --ro <<_EOF_\n"
18594 " run\n"
18595 " list-filesystems\n"
18596 " _EOF_\n"
18597 "\n"
18598 msgstr ""
18599
18600 #. type: =head2
18601 #: ../fish/guestfish.pod:92
18602 msgid "On one command line"
18603 msgstr ""
18604
18605 #. type: textblock
18606 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18607 msgid "Update C</etc/resolv.conf> in a guest:"
18608 msgstr ""
18609
18610 #. type: verbatim
18611 #: ../fish/guestfish.pod:96
18612 #, no-wrap
18613 msgid ""
18614 " guestfish \\\n"
18615 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18616 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18617 "\n"
18618 msgstr ""
18619
18620 #. type: textblock
18621 #: ../fish/guestfish.pod:100
18622 msgid "Edit C</boot/grub/grub.conf> interactively:"
18623 msgstr ""
18624
18625 #. type: verbatim
18626 #: ../fish/guestfish.pod:102
18627 #, no-wrap
18628 msgid ""
18629 " guestfish --rw --add disk.img \\\n"
18630 "   --mount /dev/vg_guest/lv_root \\\n"
18631 "   --mount /dev/sda1:/boot \\\n"
18632 "   edit /boot/grub/grub.conf\n"
18633 "\n"
18634 msgstr ""
18635
18636 #. type: =head2
18637 #: ../fish/guestfish.pod:107
18638 msgid "Mount disks automatically"
18639 msgstr ""
18640
18641 #. type: textblock
18642 #: ../fish/guestfish.pod:109
18643 msgid ""
18644 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18645 msgstr ""
18646
18647 #. type: verbatim
18648 #: ../fish/guestfish.pod:112
18649 #, no-wrap
18650 msgid ""
18651 " guestfish --ro -a disk.img -i cat /etc/group\n"
18652 "\n"
18653 msgstr ""
18654
18655 #. type: verbatim
18656 #: ../fish/guestfish.pod:114
18657 #, no-wrap
18658 msgid ""
18659 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18660 "\n"
18661 msgstr ""
18662
18663 #. type: textblock
18664 #: ../fish/guestfish.pod:116
18665 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18666 msgstr ""
18667
18668 #. type: verbatim
18669 #: ../fish/guestfish.pod:118
18670 #, no-wrap
18671 msgid ""
18672 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18673 "\n"
18674 msgstr ""
18675
18676 #. type: =head2
18677 #: ../fish/guestfish.pod:120
18678 msgid "As a script interpreter"
18679 msgstr ""
18680
18681 #. type: textblock
18682 #: ../fish/guestfish.pod:122
18683 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18684 msgstr ""
18685
18686 #. type: verbatim
18687 #: ../fish/guestfish.pod:124
18688 #, no-wrap
18689 msgid ""
18690 " #!/usr/bin/guestfish -f\n"
18691 " sparse test1.img 100M\n"
18692 " run\n"
18693 " part-disk /dev/sda mbr\n"
18694 " mkfs ext2 /dev/sda1\n"
18695 "\n"
18696 msgstr ""
18697
18698 #. type: =head2
18699 #: ../fish/guestfish.pod:130
18700 msgid "Start with a prepared disk"
18701 msgstr ""
18702
18703 #. type: textblock
18704 #: ../fish/guestfish.pod:132
18705 msgid ""
18706 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18707 "single ext2-formatted partition:"
18708 msgstr ""
18709
18710 #. type: verbatim
18711 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
18712 #, no-wrap
18713 msgid ""
18714 " guestfish -N fs\n"
18715 "\n"
18716 msgstr ""
18717
18718 #. type: textblock
18719 #: ../fish/guestfish.pod:137
18720 msgid "To list what is available do:"
18721 msgstr ""
18722
18723 #. type: verbatim
18724 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18725 #, no-wrap
18726 msgid ""
18727 " guestfish -N help | less\n"
18728 "\n"
18729 msgstr ""
18730
18731 #. type: =head2
18732 #: ../fish/guestfish.pod:141
18733 msgid "Remote control"
18734 msgstr "Дистанційне керування"
18735
18736 #. type: verbatim
18737 #: ../fish/guestfish.pod:143
18738 #, no-wrap
18739 msgid ""
18740 " eval \"`guestfish --listen`\"\n"
18741 " guestfish --remote add-ro disk.img\n"
18742 " guestfish --remote run\n"
18743 " guestfish --remote lvs\n"
18744 "\n"
18745 msgstr ""
18746 " eval \"`guestfish --listen`\"\n"
18747 " guestfish --remote add-ro disk.img\n"
18748 " guestfish --remote run\n"
18749 " guestfish --remote lvs\n"
18750 "\n"
18751
18752 #. type: textblock
18753 #: ../fish/guestfish.pod:154
18754 msgid "Displays general help on options."
18755 msgstr ""
18756
18757 #. type: =item
18758 #: ../fish/guestfish.pod:158
18759 msgid "B<--cmd-help>"
18760 msgstr "B<--cmd-help>"
18761
18762 #. type: textblock
18763 #: ../fish/guestfish.pod:160
18764 msgid "Lists all available guestfish commands."
18765 msgstr ""
18766
18767 #. type: =item
18768 #: ../fish/guestfish.pod:162
18769 msgid "B<-h cmd>"
18770 msgstr "B<-h команда>"
18771
18772 #. type: =item
18773 #: ../fish/guestfish.pod:164
18774 msgid "B<--cmd-help cmd>"
18775 msgstr "B<--cmd-help команда>"
18776
18777 #. type: textblock
18778 #: ../fish/guestfish.pod:166
18779 msgid "Displays detailed help on a single command C<cmd>."
18780 msgstr ""
18781
18782 #. type: =item
18783 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18784 msgid "B<-a image>"
18785 msgstr "B<-a образ>"
18786
18787 #. type: =item
18788 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18789 msgid "B<--add image>"
18790 msgstr "B<--add образ>"
18791
18792 #. type: textblock
18793 #: ../fish/guestfish.pod:172
18794 msgid "Add a block device or virtual machine image to the shell."
18795 msgstr ""
18796
18797 #. type: textblock
18798 #: ../fish/guestfish.pod:177
18799 msgid ""
18800 "Using this flag is mostly equivalent to using the C<add> command, with "
18801 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18802 "the I<--format=...> flag was given."
18803 msgstr ""
18804
18805 #. type: textblock
18806 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18807 msgid ""
18808 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18809 "URI to use.  The default is to use the default libvirt connection."
18810 msgstr ""
18811
18812 #. type: =item
18813 #: ../fish/guestfish.pod:189
18814 msgid "B<--csh>"
18815 msgstr "B<--csh>"
18816
18817 #. type: textblock
18818 #: ../fish/guestfish.pod:191
18819 msgid ""
18820 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18821 "section L</REMOTE CONTROL AND CSH> below."
18822 msgstr ""
18823
18824 #. type: =item
18825 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18826 msgid "B<-d libvirt-domain>"
18827 msgstr "B<-d домен-libvirt>"
18828
18829 #. type: =item
18830 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18831 msgid "B<--domain libvirt-domain>"
18832 msgstr "B<--domain домен-libvirt>"
18833
18834 #. type: textblock
18835 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18836 msgid ""
18837 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18838 "used, then any libvirt domain can be used.  However in write mode, only "
18839 "libvirt domains which are shut down can be named here."
18840 msgstr ""
18841
18842 #. type: textblock
18843 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18844 msgid "Domain UUIDs can be used instead of names."
18845 msgstr ""
18846
18847 #. type: textblock
18848 #: ../fish/guestfish.pod:204
18849 msgid ""
18850 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18851 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18852 "if the I<--format:...> flag was given."
18853 msgstr ""
18854
18855 #. type: =item
18856 #: ../fish/guestfish.pod:208
18857 msgid "B<-D>"
18858 msgstr "B<-D>"
18859
18860 #. type: =item
18861 #: ../fish/guestfish.pod:210
18862 msgid "B<--no-dest-paths>"
18863 msgstr "B<--no-dest-paths>"
18864
18865 #. type: textblock
18866 #: ../fish/guestfish.pod:212
18867 msgid ""
18868 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18869 "to hit the tab key to complete paths on the guest filesystem, but this "
18870 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18871 "allow this feature to be disabled."
18872 msgstr ""
18873
18874 #. type: textblock
18875 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18876 msgid ""
18877 "When prompting for keys and passphrases, guestfish normally turns echoing "
18878 "off so you cannot see what you are typing.  If you are not worried about "
18879 "Tempest attacks and there is no one else in the room you can specify this "
18880 "flag to see what you are typing."
18881 msgstr ""
18882
18883 #. type: =item
18884 #: ../fish/guestfish.pod:224
18885 msgid "B<-f file>"
18886 msgstr "B<-f файл>"
18887
18888 #. type: =item
18889 #: ../fish/guestfish.pod:226
18890 msgid "B<--file file>"
18891 msgstr "B<--file файл>"
18892
18893 #. type: textblock
18894 #: ../fish/guestfish.pod:228
18895 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18896 msgstr ""
18897
18898 #. type: verbatim
18899 #: ../fish/guestfish.pod:231
18900 #, no-wrap
18901 msgid ""
18902 " #!/usr/bin/guestfish -f\n"
18903 "\n"
18904 msgstr ""
18905 " #!/usr/bin/guestfish -f\n"
18906 "\n"
18907
18908 #. type: verbatim
18909 #: ../fish/guestfish.pod:244
18910 #, no-wrap
18911 msgid ""
18912 " guestfish --format=raw -a disk.img\n"
18913 "\n"
18914 msgstr ""
18915 " guestfish --format=raw -a disk.img\n"
18916 "\n"
18917
18918 #. type: verbatim
18919 #: ../fish/guestfish.pod:248
18920 #, no-wrap
18921 msgid ""
18922 " guestfish --format=raw -a disk.img --format -a another.img\n"
18923 "\n"
18924 msgstr ""
18925 " guestfish --format=raw -a disk.img --format -a another.img\n"
18926 "\n"
18927
18928 #. type: textblock
18929 #: ../fish/guestfish.pod:253
18930 msgid ""
18931 "If you have untrusted raw-format guest disk images, you should use this "
18932 "option to specify the disk format.  This avoids a possible security problem "
18933 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18934 msgstr ""
18935
18936 #. type: =item
18937 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18938 msgid "B<--inspector>"
18939 msgstr "B<--inspector>"
18940
18941 #. type: textblock
18942 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18943 msgid ""
18944 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18945 "system and mount filesystems as they would be mounted on the real virtual "
18946 "machine."
18947 msgstr ""
18948
18949 #. type: textblock
18950 #: ../fish/guestfish.pod:266
18951 msgid "Typical usage is either:"
18952 msgstr ""
18953
18954 #. type: verbatim
18955 #: ../fish/guestfish.pod:268
18956 #, no-wrap
18957 msgid ""
18958 " guestfish -d myguest -i\n"
18959 "\n"
18960 msgstr ""
18961 " guestfish -d myguest -i\n"
18962 "\n"
18963
18964 #. type: textblock
18965 #: ../fish/guestfish.pod:270
18966 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18967 msgstr ""
18968
18969 #. type: verbatim
18970 #: ../fish/guestfish.pod:272
18971 #, no-wrap
18972 msgid ""
18973 " guestfish --ro -d myguest -i\n"
18974 "\n"
18975 msgstr ""
18976 " guestfish --ro -d myguest -i\n"
18977 "\n"
18978
18979 #. type: textblock
18980 #: ../fish/guestfish.pod:274
18981 msgid "(for active domains, readonly), or specify the block device directly:"
18982 msgstr ""
18983
18984 #. type: verbatim
18985 #: ../fish/guestfish.pod:276
18986 #, no-wrap
18987 msgid ""
18988 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18989 "\n"
18990 msgstr ""
18991 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18992 "\n"
18993
18994 #. type: textblock
18995 #: ../fish/guestfish.pod:278
18996 msgid ""
18997 "Note that the command line syntax changed slightly over older versions of "
18998 "guestfish.  You can still use the old syntax:"
18999 msgstr ""
19000
19001 #. type: verbatim
19002 #: ../fish/guestfish.pod:281
19003 #, no-wrap
19004 msgid ""
19005 " guestfish [--ro] -i disk.img\n"
19006 "\n"
19007 msgstr ""
19008 " guestfish [--ro] -i disk.img\n"
19009 "\n"
19010
19011 #. type: verbatim
19012 #: ../fish/guestfish.pod:283
19013 #, no-wrap
19014 msgid ""
19015 " guestfish [--ro] -i libvirt-domain\n"
19016 "\n"
19017 msgstr ""
19018
19019 #. type: textblock
19020 #: ../fish/guestfish.pod:285
19021 msgid ""
19022 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19023 "then using other commands to mount the filesystems that were found."
19024 msgstr ""
19025
19026 #. type: =item
19027 #: ../fish/guestfish.pod:294
19028 msgid "B<--listen>"
19029 msgstr "B<--listen>"
19030
19031 #. type: textblock
19032 #: ../fish/guestfish.pod:296
19033 msgid ""
19034 "Fork into the background and listen for remote commands.  See section L</"
19035 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19036 msgstr ""
19037
19038 #. type: =item
19039 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19040 msgid "B<--live>"
19041 msgstr "B<--live>"
19042
19043 #. type: textblock
19044 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19045 msgid ""
19046 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19047 "ATTACHING TO RUNNING DAEMONS>)."
19048 msgstr ""
19049
19050 #. type: =item
19051 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19052 msgid "B<-m dev[:mountpoint[:options]]>"
19053 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
19054
19055 #. type: =item
19056 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19057 msgid "B<--mount dev[:mountpoint[:options]]>"
19058 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
19059
19060 #. type: textblock
19061 #: ../fish/guestfish.pod:308
19062 msgid "Mount the named partition or logical volume on the given mountpoint."
19063 msgstr ""
19064
19065 #. type: textblock
19066 #: ../fish/guestfish.pod:310
19067 msgid "If the mountpoint is omitted, it defaults to C</>."
19068 msgstr ""
19069
19070 #. type: textblock
19071 #: ../fish/guestfish.pod:312
19072 msgid "You have to mount something on C</> before most commands will work."
19073 msgstr ""
19074
19075 #. type: textblock
19076 #: ../fish/guestfish.pod:314
19077 msgid ""
19078 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19079 "launched."
19080 msgstr ""
19081
19082 #. type: textblock
19083 #: ../fish/guestfish.pod:317
19084 msgid ""
19085 "If you don't know what filesystems a disk image contains, you can either run "
19086 "guestfish without this option, then list the partitions, filesystems and LVs "
19087 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19088 "commands), or you can use the L<virt-filesystems(1)> program."
19089 msgstr ""
19090
19091 #. type: textblock
19092 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19093 msgid ""
19094 "The third (and rarely used) part of the mount parameter is the list of mount "
19095 "options used to mount the underlying filesystem.  If this is not given, then "
19096 "the mount options are either the empty string or C<ro> (the latter if the "
19097 "I<--ro> flag is used).  By specifying the mount options, you override this "
19098 "default choice.  Probably the only time you would use this is to enable ACLs "
19099 "and/or extended attributes if the filesystem can support them:"
19100 msgstr ""
19101
19102 #. type: verbatim
19103 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19104 #, no-wrap
19105 msgid ""
19106 " -m /dev/sda1:/:acl,user_xattr\n"
19107 "\n"
19108 msgstr ""
19109
19110 #. type: textblock
19111 #: ../fish/guestfish.pod:333
19112 msgid "Using this flag is equivalent to using the C<mount-options> command."
19113 msgstr ""
19114
19115 #. type: =item
19116 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19117 #: ../resize/virt-resize.pod:358
19118 msgid "B<-n>"
19119 msgstr "B<-n>"
19120
19121 #. type: =item
19122 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19123 msgid "B<--no-sync>"
19124 msgstr "B<--no-sync>"
19125
19126 #. type: textblock
19127 #: ../fish/guestfish.pod:339
19128 msgid ""
19129 "Disable autosync.  This is enabled by default.  See the discussion of "
19130 "autosync in the L<guestfs(3)> manpage."
19131 msgstr ""
19132
19133 #. type: =item
19134 #: ../fish/guestfish.pod:342
19135 msgid "B<-N type>"
19136 msgstr "B<-N тип>"
19137
19138 #. type: =item
19139 #: ../fish/guestfish.pod:344
19140 msgid "B<--new type>"
19141 msgstr "B<--new тип>"
19142
19143 #. type: =item
19144 #: ../fish/guestfish.pod:346
19145 msgid "B<-N help>"
19146 msgstr "B<-N help>"
19147
19148 #. type: textblock
19149 #: ../fish/guestfish.pod:348
19150 msgid ""
19151 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19152 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19153 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19154 "IMAGES> below."
19155 msgstr ""
19156
19157 #. type: =item
19158 #: ../fish/guestfish.pod:353
19159 msgid "B<--progress-bars>"
19160 msgstr "B<--progress-bars>"
19161
19162 #. type: textblock
19163 #: ../fish/guestfish.pod:355
19164 msgid "Enable progress bars, even when guestfish is used non-interactively."
19165 msgstr ""
19166
19167 #. type: textblock
19168 #: ../fish/guestfish.pod:357
19169 msgid ""
19170 "Progress bars are enabled by default when guestfish is used as an "
19171 "interactive shell."
19172 msgstr ""
19173
19174 #. type: =item
19175 #: ../fish/guestfish.pod:360
19176 msgid "B<--no-progress-bars>"
19177 msgstr "B<--no-progress-bars>"
19178
19179 #. type: textblock
19180 #: ../fish/guestfish.pod:362
19181 msgid "Disable progress bars."
19182 msgstr ""
19183
19184 #. type: =item
19185 #: ../fish/guestfish.pod:364
19186 msgid "B<--remote[=pid]>"
19187 msgstr "B<--remote[=pid]>"
19188
19189 #. type: textblock
19190 #: ../fish/guestfish.pod:366
19191 msgid ""
19192 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19193 "CONTROL GUESTFISH OVER A SOCKET> below."
19194 msgstr ""
19195
19196 #. type: =item
19197 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19198 #: ../rescue/virt-rescue.pod:161
19199 msgid "B<-r>"
19200 msgstr "B<-r>"
19201
19202 #. type: =item
19203 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19204 #: ../rescue/virt-rescue.pod:163
19205 msgid "B<--ro>"
19206 msgstr "B<--ro>"
19207
19208 #. type: textblock
19209 #: ../fish/guestfish.pod:373
19210 msgid ""
19211 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19212 "mounts are done read-only."
19213 msgstr ""
19214
19215 #. type: textblock
19216 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19217 msgid ""
19218 "The option must always be used if the disk image or virtual machine might be "
19219 "running, and is generally recommended in cases where you don't need write "
19220 "access to the disk."
19221 msgstr ""
19222
19223 #. type: textblock
19224 #: ../fish/guestfish.pod:380
19225 msgid ""
19226 "Note that prepared disk images created with I<-N> are not affected by this "
19227 "option.  Also commands like C<add> are not affected - you have to specify "
19228 "the C<readonly:true> option explicitly if you need it."
19229 msgstr ""
19230
19231 #. type: textblock
19232 #: ../fish/guestfish.pod:384
19233 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19234 msgstr ""
19235
19236 #. type: =item
19237 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19238 #: ../rescue/virt-rescue.pod:173
19239 msgid "B<--selinux>"
19240 msgstr "B<--selinux>"
19241
19242 #. type: textblock
19243 #: ../fish/guestfish.pod:388
19244 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19245 msgstr ""
19246
19247 #. type: textblock
19248 #: ../fish/guestfish.pod:394
19249 msgid ""
19250 "Enable very verbose messages.  This is particularly useful if you find a bug."
19251 msgstr ""
19252
19253 #. type: textblock
19254 #: ../fish/guestfish.pod:401
19255 msgid "Display the guestfish / libguestfs version number and exit."
19256 msgstr ""
19257
19258 #. type: =item
19259 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19260 #: ../rescue/virt-rescue.pod:194
19261 msgid "B<-w>"
19262 msgstr "B<-w>"
19263
19264 #. type: =item
19265 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19266 #: ../rescue/virt-rescue.pod:196
19267 msgid "B<--rw>"
19268 msgstr "B<--rw>"
19269
19270 #. type: textblock
19271 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19272 msgid ""
19273 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19274 "mounts are done read-write."
19275 msgstr ""
19276
19277 #. type: textblock
19278 #: ../fish/guestfish.pod:410
19279 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19280 msgstr ""
19281
19282 #. type: textblock
19283 #: ../fish/guestfish.pod:414
19284 msgid "Echo each command before executing it."
19285 msgstr ""
19286
19287 #. type: =head1
19288 #: ../fish/guestfish.pod:418
19289 msgid "COMMANDS ON COMMAND LINE"
19290 msgstr ""
19291
19292 #. type: textblock
19293 #: ../fish/guestfish.pod:420
19294 msgid ""
19295 "Any additional (non-option) arguments are treated as commands to execute."
19296 msgstr ""
19297
19298 #. type: textblock
19299 #: ../fish/guestfish.pod:423
19300 msgid ""
19301 "Commands to execute should be separated by a colon (C<:>), where the colon "
19302 "is a separate parameter.  Thus:"
19303 msgstr ""
19304
19305 #. type: verbatim
19306 #: ../fish/guestfish.pod:426
19307 #, no-wrap
19308 msgid ""
19309 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19310 "\n"
19311 msgstr ""
19312
19313 #. type: textblock
19314 #: ../fish/guestfish.pod:428
19315 msgid ""
19316 "If there are no additional arguments, then we enter a shell, either an "
19317 "interactive shell with a prompt (if the input is a terminal) or a non-"
19318 "interactive shell."
19319 msgstr ""
19320
19321 #. type: textblock
19322 #: ../fish/guestfish.pod:432
19323 msgid ""
19324 "In either command line mode or non-interactive shell, the first command that "
19325 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19326 "prompt) if a command fails, you can continue to enter commands."
19327 msgstr ""
19328
19329 #. type: =head1
19330 #: ../fish/guestfish.pod:437
19331 msgid "USING launch (OR run)"
19332 msgstr ""
19333
19334 #. type: textblock
19335 #: ../fish/guestfish.pod:439
19336 msgid ""
19337 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19338 "then launch it, then mount any disks you need, and finally issue actions/"
19339 "commands.  So the general order of the day is:"
19340 msgstr ""
19341
19342 #. type: textblock
19343 #: ../fish/guestfish.pod:447
19344 msgid "add or -a/--add"
19345 msgstr ""
19346
19347 #. type: textblock
19348 #: ../fish/guestfish.pod:451
19349 msgid "launch (aka run)"
19350 msgstr ""
19351
19352 #. type: textblock
19353 #: ../fish/guestfish.pod:455
19354 msgid "mount or -m/--mount"
19355 msgstr ""
19356
19357 #. type: textblock
19358 #: ../fish/guestfish.pod:459
19359 msgid "any other commands"
19360 msgstr ""
19361
19362 #. type: textblock
19363 #: ../fish/guestfish.pod:463
19364 msgid ""
19365 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19366 "guest before mounting or performing any other commands."
19367 msgstr ""
19368
19369 #. type: textblock
19370 #: ../fish/guestfish.pod:466
19371 msgid ""
19372 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19373 "I<--new> options were given then C<run> is done automatically, simply "
19374 "because guestfish can't perform the action you asked for without doing this."
19375 msgstr ""
19376
19377 #. type: =head1
19378 #: ../fish/guestfish.pod:471
19379 msgid "OPENING DISKS FOR READ AND WRITE"
19380 msgstr ""
19381
19382 #. type: textblock
19383 #: ../fish/guestfish.pod:473
19384 msgid ""
19385 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19386 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19387 "I<-i> and I<-m> open disk images read-only or for writing."
19388 msgstr ""
19389
19390 #. type: textblock
19391 #: ../fish/guestfish.pod:478
19392 msgid ""
19393 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19394 "opening disk images supplied on the command line for write.  To open a disk "
19395 "image read-only you have to do I<-a image --ro>."
19396 msgstr ""
19397
19398 #. type: textblock
19399 #: ../fish/guestfish.pod:482
19400 msgid ""
19401 "This matters: If you accidentally open a live VM disk image writable then "
19402 "you will cause irreversible disk corruption."
19403 msgstr ""
19404
19405 #. type: textblock
19406 #: ../fish/guestfish.pod:485
19407 msgid ""
19408 "In a future libguestfs we intend to change the default the other way.  Disk "
19409 "images will be opened read-only.  You will have to either specify "
19410 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19411 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19412 "access for disk images specified by those other command line options."
19413 msgstr ""
19414
19415 #. type: textblock
19416 #: ../fish/guestfish.pod:492
19417 msgid ""
19418 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19419 "which does nothing (it is already the default).  However it is highly "
19420 "recommended that you use this option to indicate that you need write access, "
19421 "and prepare your scripts for the day when this option will be required for "
19422 "write access."
19423 msgstr ""
19424
19425 #. type: textblock
19426 #: ../fish/guestfish.pod:498
19427 msgid ""
19428 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19429 "other libguestfs program apart from guestfish and guestmount."
19430 msgstr ""
19431
19432 #. type: =head1
19433 #: ../fish/guestfish.pod:501
19434 msgid "QUOTING"
19435 msgstr ""
19436
19437 #. type: textblock
19438 #: ../fish/guestfish.pod:503
19439 msgid ""
19440 "You can quote ordinary parameters using either single or double quotes.  For "
19441 "example:"
19442 msgstr ""
19443
19444 #. type: verbatim
19445 #: ../fish/guestfish.pod:506
19446 #, no-wrap
19447 msgid ""
19448 " add \"file with a space.img\"\n"
19449 "\n"
19450 msgstr ""
19451
19452 #. type: verbatim
19453 #: ../fish/guestfish.pod:508
19454 #, no-wrap
19455 msgid ""
19456 " rm '/file name'\n"
19457 "\n"
19458 msgstr ""
19459
19460 #. type: verbatim
19461 #: ../fish/guestfish.pod:510
19462 #, no-wrap
19463 msgid ""
19464 " rm '/\"'\n"
19465 "\n"
19466 msgstr ""
19467
19468 #. type: textblock
19469 #: ../fish/guestfish.pod:512
19470 msgid ""
19471 "A few commands require a list of strings to be passed.  For these, use a "
19472 "whitespace-separated list, enclosed in quotes.  Strings containing "
19473 "whitespace to be passed through must be enclosed in single quotes.  A "
19474 "literal single quote must be escaped with a backslash."
19475 msgstr ""
19476
19477 #. type: verbatim
19478 #: ../fish/guestfish.pod:517
19479 #, no-wrap
19480 msgid ""
19481 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19482 " command \"/bin/echo 'foo      bar'\"\n"
19483 " command \"/bin/echo \\'foo\\'\"\n"
19484 "\n"
19485 msgstr ""
19486
19487 #. type: =head2
19488 #: ../fish/guestfish.pod:521
19489 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19490 msgstr ""
19491
19492 #. type: textblock
19493 #: ../fish/guestfish.pod:523
19494 msgid ""
19495 "In double-quoted arguments (only) use backslash to insert special characters:"
19496 msgstr ""
19497
19498 #. type: =item
19499 #: ../fish/guestfish.pod:528
19500 msgid "C<\\a>"
19501 msgstr "C<\\a>"
19502
19503 #. type: textblock
19504 #: ../fish/guestfish.pod:530
19505 msgid "Alert (bell) character."
19506 msgstr "Символ гудка (дзвінка)."
19507
19508 #. type: =item
19509 #: ../fish/guestfish.pod:532
19510 msgid "C<\\b>"
19511 msgstr "C<\\b>"
19512
19513 #. type: textblock
19514 #: ../fish/guestfish.pod:534
19515 msgid "Backspace character."
19516 msgstr ""
19517
19518 #. type: =item
19519 #: ../fish/guestfish.pod:536
19520 msgid "C<\\f>"
19521 msgstr "C<\\f>"
19522
19523 #. type: textblock
19524 #: ../fish/guestfish.pod:538
19525 msgid "Form feed character."
19526 msgstr ""
19527
19528 #. type: =item
19529 #: ../fish/guestfish.pod:540
19530 msgid "C<\\n>"
19531 msgstr "C<\\n>"
19532
19533 #. type: textblock
19534 #: ../fish/guestfish.pod:542
19535 msgid "Newline character."
19536 msgstr ""
19537
19538 #. type: =item
19539 #: ../fish/guestfish.pod:544
19540 msgid "C<\\r>"
19541 msgstr "C<\\r>"
19542
19543 #. type: textblock
19544 #: ../fish/guestfish.pod:546
19545 msgid "Carriage return character."
19546 msgstr "Символ повернення каретки."
19547
19548 #. type: =item
19549 #: ../fish/guestfish.pod:548
19550 msgid "C<\\t>"
19551 msgstr "C<\\t>"
19552
19553 #. type: textblock
19554 #: ../fish/guestfish.pod:550
19555 msgid "Horizontal tab character."
19556 msgstr "Символ горизонтальної табуляції"
19557
19558 #. type: =item
19559 #: ../fish/guestfish.pod:552
19560 msgid "C<\\v>"
19561 msgstr "C<\\v>"
19562
19563 #. type: textblock
19564 #: ../fish/guestfish.pod:554
19565 msgid "Vertical tab character."
19566 msgstr "Символ вертикальної табуляції."
19567
19568 #. type: =item
19569 #: ../fish/guestfish.pod:556
19570 msgid "C<\\\">"
19571 msgstr "C<\\\">"
19572
19573 #. type: textblock
19574 #: ../fish/guestfish.pod:558
19575 msgid "A literal double quote character."
19576 msgstr ""
19577
19578 #. type: =item
19579 #: ../fish/guestfish.pod:560
19580 msgid "C<\\ooo>"
19581 msgstr "C<\\ooo>"
19582
19583 #. type: textblock
19584 #: ../fish/guestfish.pod:562
19585 msgid ""
19586 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19587 "(unlike C)."
19588 msgstr ""
19589
19590 #. type: =item
19591 #: ../fish/guestfish.pod:565
19592 msgid "C<\\xhh>"
19593 msgstr "C<\\xhh>"
19594
19595 #. type: textblock
19596 #: ../fish/guestfish.pod:567
19597 msgid ""
19598 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19599 msgstr ""
19600
19601 #. type: textblock
19602 #: ../fish/guestfish.pod:570
19603 msgid ""
19604 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19605 "strings."
19606 msgstr ""
19607
19608 #. type: =item
19609 #: ../fish/guestfish.pod:573
19610 msgid "C<\\\\>"
19611 msgstr "C<\\\\>"
19612
19613 #. type: textblock
19614 #: ../fish/guestfish.pod:575
19615 msgid "A literal backslash character."
19616 msgstr ""
19617
19618 #. type: =head1
19619 #: ../fish/guestfish.pod:579
19620 msgid "OPTIONAL ARGUMENTS"
19621 msgstr ""
19622
19623 #. type: textblock
19624 #: ../fish/guestfish.pod:581
19625 msgid ""
19626 "Some commands take optional arguments.  These arguments appear in this "
19627 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19628 msgstr ""
19629
19630 #. type: verbatim
19631 #: ../fish/guestfish.pod:585
19632 #, no-wrap
19633 msgid ""
19634 " add-drive-opts filename\n"
19635 "\n"
19636 msgstr ""
19637
19638 #. type: verbatim
19639 #: ../fish/guestfish.pod:587
19640 #, no-wrap
19641 msgid ""
19642 " add-drive-opts filename readonly:true\n"
19643 "\n"
19644 msgstr ""
19645
19646 #. type: verbatim
19647 #: ../fish/guestfish.pod:589
19648 #, no-wrap
19649 msgid ""
19650 " add-drive-opts filename format:qcow2 readonly:false\n"
19651 "\n"
19652 msgstr ""
19653
19654 #. type: textblock
19655 #: ../fish/guestfish.pod:591
19656 msgid ""
19657 "Each optional argument can appear at most once.  All optional arguments must "
19658 "appear after the required ones."
19659 msgstr ""
19660
19661 #. type: =head1
19662 #: ../fish/guestfish.pod:594
19663 msgid "NUMBERS"
19664 msgstr "ЧИСЛА"
19665
19666 #. type: textblock
19667 #: ../fish/guestfish.pod:596
19668 msgid ""
19669 "This section applies to all commands which can take integers as parameters."
19670 msgstr ""
19671
19672 #. type: =head2
19673 #: ../fish/guestfish.pod:599
19674 msgid "SIZE SUFFIX"
19675 msgstr ""
19676
19677 #. type: textblock
19678 #: ../fish/guestfish.pod:601
19679 msgid ""
19680 "When the command takes a parameter measured in bytes, you can use one of the "
19681 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19682 msgstr ""
19683
19684 #. type: =item
19685 #: ../fish/guestfish.pod:607
19686 msgid "B<k> or B<K> or B<KiB>"
19687 msgstr "B<k>, B<K> або B<KiB>"
19688
19689 #. type: textblock
19690 #: ../fish/guestfish.pod:609
19691 msgid "The size in kilobytes (multiplied by 1024)."
19692 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
19693
19694 #. type: =item
19695 #: ../fish/guestfish.pod:611
19696 msgid "B<KB>"
19697 msgstr "B<KB>"
19698
19699 #. type: textblock
19700 #: ../fish/guestfish.pod:613
19701 msgid "The size in SI 1000 byte units."
19702 msgstr "Розмір у одиницях СІ: 1000 байтів."
19703
19704 #. type: =item
19705 #: ../fish/guestfish.pod:615
19706 msgid "B<M> or B<MiB>"
19707 msgstr "B<M> або B<MiB>"
19708
19709 #. type: textblock
19710 #: ../fish/guestfish.pod:617
19711 msgid "The size in megabytes (multiplied by 1048576)."
19712 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
19713
19714 #. type: =item
19715 #: ../fish/guestfish.pod:619
19716 msgid "B<MB>"
19717 msgstr "B<MB>"
19718
19719 #. type: textblock
19720 #: ../fish/guestfish.pod:621
19721 msgid "The size in SI 1000000 byte units."
19722 msgstr "Розмір у одиницях СІ: 1000000 байтів."
19723
19724 #. type: =item
19725 #: ../fish/guestfish.pod:623
19726 msgid "B<G> or B<GiB>"
19727 msgstr "B<G> або B<GiB>"
19728
19729 #. type: textblock
19730 #: ../fish/guestfish.pod:625
19731 msgid "The size in gigabytes (multiplied by 2**30)."
19732 msgstr "Розмір у гігабайтах (з множником 2**30)."
19733
19734 #. type: =item
19735 #: ../fish/guestfish.pod:627
19736 msgid "B<GB>"
19737 msgstr "B<GB>"
19738
19739 #. type: textblock
19740 #: ../fish/guestfish.pod:629
19741 msgid "The size in SI 10**9 byte units."
19742 msgstr "Розмір у одиницях СІ: 10**9 байтів."
19743
19744 #. type: =item
19745 #: ../fish/guestfish.pod:631
19746 msgid "B<T> or B<TiB>"
19747 msgstr "B<T> або B<TiB>"
19748
19749 #. type: textblock
19750 #: ../fish/guestfish.pod:633
19751 msgid "The size in terabytes (multiplied by 2**40)."
19752 msgstr "Розмір у терабайтах (з множником 2**40)."
19753
19754 #. type: =item
19755 #: ../fish/guestfish.pod:635
19756 msgid "B<TB>"
19757 msgstr "B<TB>"
19758
19759 #. type: textblock
19760 #: ../fish/guestfish.pod:637
19761 msgid "The size in SI 10**12 byte units."
19762 msgstr "Розмір у одиницях СІ: 10**12 байтів."
19763
19764 #. type: =item
19765 #: ../fish/guestfish.pod:639
19766 msgid "B<P> or B<PiB>"
19767 msgstr "B<P> або B<PiB>"
19768
19769 #. type: textblock
19770 #: ../fish/guestfish.pod:641
19771 msgid "The size in petabytes (multiplied by 2**50)."
19772 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
19773
19774 #. type: =item
19775 #: ../fish/guestfish.pod:643
19776 msgid "B<PB>"
19777 msgstr "B<PB>"
19778
19779 #. type: textblock
19780 #: ../fish/guestfish.pod:645
19781 msgid "The size in SI 10**15 byte units."
19782 msgstr "Розмір у одиницях СІ: 10**15 байтів."
19783
19784 #. type: =item
19785 #: ../fish/guestfish.pod:647
19786 msgid "B<E> or B<EiB>"
19787 msgstr "B<E> або B<EiB>"
19788
19789 #. type: textblock
19790 #: ../fish/guestfish.pod:649
19791 msgid "The size in exabytes (multiplied by 2**60)."
19792 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
19793
19794 #. type: =item
19795 #: ../fish/guestfish.pod:651
19796 msgid "B<EB>"
19797 msgstr "B<EB>"
19798
19799 #. type: textblock
19800 #: ../fish/guestfish.pod:653
19801 msgid "The size in SI 10**18 byte units."
19802 msgstr "Розмір у одиницях СІ: 10**18 байтів."
19803
19804 #. type: =item
19805 #: ../fish/guestfish.pod:655
19806 msgid "B<Z> or B<ZiB>"
19807 msgstr "B<Z> або B<ZiB>"
19808
19809 #. type: textblock
19810 #: ../fish/guestfish.pod:657
19811 msgid "The size in zettabytes (multiplied by 2**70)."
19812 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
19813
19814 #. type: =item
19815 #: ../fish/guestfish.pod:659
19816 msgid "B<ZB>"
19817 msgstr "B<ZB>"
19818
19819 #. type: textblock
19820 #: ../fish/guestfish.pod:661
19821 msgid "The size in SI 10**21 byte units."
19822 msgstr "Розмір у одиницях СІ: 10**21 байтів."
19823
19824 #. type: =item
19825 #: ../fish/guestfish.pod:663
19826 msgid "B<Y> or B<YiB>"
19827 msgstr "B<Y> або B<YiB>"
19828
19829 #. type: textblock
19830 #: ../fish/guestfish.pod:665
19831 msgid "The size in yottabytes (multiplied by 2**80)."
19832 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
19833
19834 #. type: =item
19835 #: ../fish/guestfish.pod:667
19836 msgid "B<YB>"
19837 msgstr "B<YB>"
19838
19839 #. type: textblock
19840 #: ../fish/guestfish.pod:669
19841 msgid "The size in SI 10**24 byte units."
19842 msgstr "Розмір у одиницях СІ: 10**24 байтів."
19843
19844 #. type: verbatim
19845 #: ../fish/guestfish.pod:675
19846 #, no-wrap
19847 msgid ""
19848 " truncate-size /file 1G\n"
19849 "\n"
19850 msgstr ""
19851
19852 #. type: textblock
19853 #: ../fish/guestfish.pod:677
19854 msgid "would truncate the file to 1 gigabyte."
19855 msgstr ""
19856
19857 #. type: textblock
19858 #: ../fish/guestfish.pod:679
19859 msgid ""
19860 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19861 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
19862 "suffix will probably not do what you expect."
19863 msgstr ""
19864
19865 #. type: =head2
19866 #: ../fish/guestfish.pod:683
19867 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19868 msgstr ""
19869
19870 #. type: textblock
19871 #: ../fish/guestfish.pod:685
19872 msgid ""
19873 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19874 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19875 msgstr ""
19876
19877 #. type: verbatim
19878 #: ../fish/guestfish.pod:688
19879 #, no-wrap
19880 msgid ""
19881 " 1234      decimal number 1234\n"
19882 " 02322     octal number, equivalent to decimal 1234\n"
19883 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19884 "\n"
19885 msgstr ""
19886
19887 #. type: textblock
19888 #: ../fish/guestfish.pod:692
19889 msgid ""
19890 "When using the C<chmod> command, you almost always want to specify an octal "
19891 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19892 "L<chmod(1)> program):"
19893 msgstr ""
19894
19895 #. type: verbatim
19896 #: ../fish/guestfish.pod:696
19897 #, no-wrap
19898 msgid ""
19899 " chmod 0777 /public  # OK\n"
19900 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19901 "\n"
19902 msgstr ""
19903
19904 #. type: textblock
19905 #: ../fish/guestfish.pod:699
19906 msgid ""
19907 "Commands that return numbers usually print them in decimal, but some "
19908 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19909 "octal, preceeded by C<0>)."
19910 msgstr ""
19911
19912 #. type: =head1
19913 #: ../fish/guestfish.pod:703
19914 msgid "WILDCARDS AND GLOBBING"
19915 msgstr ""
19916
19917 #. type: textblock
19918 #: ../fish/guestfish.pod:705
19919 msgid ""
19920 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19921 "(globbing) by default.  So for example the following will not do what you "
19922 "expect:"
19923 msgstr ""
19924
19925 #. type: verbatim
19926 #: ../fish/guestfish.pod:709
19927 #, no-wrap
19928 msgid ""
19929 " rm-rf /home/*\n"
19930 "\n"
19931 msgstr ""
19932
19933 #. type: textblock
19934 #: ../fish/guestfish.pod:711
19935 msgid ""
19936 "Assuming you don't have a directory called literally C</home/*> then the "
19937 "above command will return an error."
19938 msgstr ""
19939
19940 #. type: textblock
19941 #: ../fish/guestfish.pod:714
19942 msgid "To perform wildcard expansion, use the C<glob> command."
19943 msgstr ""
19944
19945 #. type: verbatim
19946 #: ../fish/guestfish.pod:716
19947 #, no-wrap
19948 msgid ""
19949 " glob rm-rf /home/*\n"
19950 "\n"
19951 msgstr ""
19952
19953 #. type: textblock
19954 #: ../fish/guestfish.pod:718
19955 msgid ""
19956 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19957 "many times), equivalent to:"
19958 msgstr ""
19959
19960 #. type: verbatim
19961 #: ../fish/guestfish.pod:721
19962 #, no-wrap
19963 msgid ""
19964 " rm-rf /home/jim\n"
19965 " rm-rf /home/joe\n"
19966 " rm-rf /home/mary\n"
19967 "\n"
19968 msgstr ""
19969
19970 #. type: textblock
19971 #: ../fish/guestfish.pod:725
19972 msgid "C<glob> only works on simple guest paths and not on device names."
19973 msgstr ""
19974
19975 #. type: textblock
19976 #: ../fish/guestfish.pod:727
19977 msgid ""
19978 "If you have several parameters, each containing a wildcard, then glob will "
19979 "perform a Cartesian product."
19980 msgstr ""
19981
19982 #. type: =head1
19983 #: ../fish/guestfish.pod:730
19984 msgid "COMMENTS"
19985 msgstr "КОМЕНТАРІ"
19986
19987 #. type: textblock
19988 #: ../fish/guestfish.pod:732
19989 msgid ""
19990 "Any line which starts with a I<#> character is treated as a comment and "
19991 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19992 "a command.  For example:"
19993 msgstr ""
19994
19995 #. type: verbatim
19996 #: ../fish/guestfish.pod:736
19997 #, no-wrap
19998 msgid ""
19999 " # this is a comment\n"
20000 "         # this is a comment\n"
20001 " foo # NOT a comment\n"
20002 "\n"
20003 msgstr ""
20004
20005 #. type: textblock
20006 #: ../fish/guestfish.pod:740
20007 msgid "Blank lines are also ignored."
20008 msgstr ""
20009
20010 #. type: =head1
20011 #: ../fish/guestfish.pod:742
20012 msgid "RUNNING COMMANDS LOCALLY"
20013 msgstr ""
20014
20015 #. type: textblock
20016 #: ../fish/guestfish.pod:744
20017 msgid ""
20018 "Any line which starts with a I<!> character is treated as a command sent to "
20019 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20020 msgstr ""
20021
20022 #. type: verbatim
20023 #: ../fish/guestfish.pod:748
20024 #, no-wrap
20025 msgid ""
20026 " !mkdir local\n"
20027 " tgz-out /remote local/remote-data.tar.gz\n"
20028 "\n"
20029 msgstr ""
20030
20031 #. type: textblock
20032 #: ../fish/guestfish.pod:751
20033 msgid ""
20034 "will create a directory C<local> on the host, and then export the contents "
20035 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20036 "(See C<tgz-out>)."
20037 msgstr ""
20038
20039 #. type: textblock
20040 #: ../fish/guestfish.pod:755
20041 msgid ""
20042 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20043 "effect, due to the way that subprocesses work in Unix."
20044 msgstr ""
20045
20046 #. type: =head2
20047 #: ../fish/guestfish.pod:758
20048 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20049 msgstr ""
20050
20051 #. type: textblock
20052 #: ../fish/guestfish.pod:760
20053 msgid ""
20054 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20055 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20056 "and executed as guestfish commands."
20057 msgstr ""
20058
20059 #. type: textblock
20060 #: ../fish/guestfish.pod:764
20061 msgid ""
20062 "Thus you can use shell script to construct arbitrary guestfish commands "
20063 "which are then parsed by guestfish."
20064 msgstr ""
20065
20066 #. type: textblock
20067 #: ../fish/guestfish.pod:767
20068 msgid ""
20069 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20070 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20071 "if we use a shell script to create the guestfish commands for us:"
20072 msgstr ""
20073
20074 #. type: verbatim
20075 #: ../fish/guestfish.pod:772
20076 #, no-wrap
20077 msgid ""
20078 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20079 "\n"
20080 msgstr ""
20081
20082 #. type: textblock
20083 #: ../fish/guestfish.pod:774
20084 msgid "or with names like C</foo.001>:"
20085 msgstr ""
20086
20087 #. type: verbatim
20088 #: ../fish/guestfish.pod:776
20089 #, no-wrap
20090 msgid ""
20091 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20092 "\n"
20093 msgstr ""
20094
20095 #. type: textblock
20096 #: ../fish/guestfish.pod:778
20097 msgid ""
20098 "When using guestfish interactively it can be helpful to just run the shell "
20099 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20100 "ordinary I<!> local command), see what guestfish commands it would run, and "
20101 "when you are happy with those prepend the C<E<lt>> character to run the "
20102 "guestfish commands for real."
20103 msgstr ""
20104
20105 #. type: =head1
20106 #: ../fish/guestfish.pod:784
20107 msgid "PIPES"
20108 msgstr "КАНАЛИ"
20109
20110 #. type: textblock
20111 #: ../fish/guestfish.pod:786
20112 msgid ""
20113 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20114 "command (a guestfish command) to the second command (any host command).  For "
20115 "example:"
20116 msgstr ""
20117
20118 #. type: verbatim
20119 #: ../fish/guestfish.pod:790
20120 #, no-wrap
20121 msgid ""
20122 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20123 "\n"
20124 msgstr ""
20125
20126 #. type: textblock
20127 #: ../fish/guestfish.pod:792
20128 msgid ""
20129 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20130 "program).  The above command would list all accounts in the guest filesystem "
20131 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20132 msgstr ""
20133
20134 #. type: verbatim
20135 #: ../fish/guestfish.pod:797
20136 #, no-wrap
20137 msgid ""
20138 " hexdump /bin/ls | head\n"
20139 " list-devices | tail -1\n"
20140 " tgz-out / - | tar ztf -\n"
20141 "\n"
20142 msgstr ""
20143
20144 #. type: textblock
20145 #: ../fish/guestfish.pod:801
20146 msgid ""
20147 "The space before the pipe symbol is required, any space after the pipe "
20148 "symbol is optional.  Everything after the pipe symbol is just passed "
20149 "straight to the host shell, so it can contain redirections, globs and "
20150 "anything else that makes sense on the host side."
20151 msgstr ""
20152
20153 #. type: textblock
20154 #: ../fish/guestfish.pod:806
20155 msgid ""
20156 "To use a literal argument which begins with a pipe symbol, you have to quote "
20157 "it, eg:"
20158 msgstr ""
20159
20160 #. type: verbatim
20161 #: ../fish/guestfish.pod:809
20162 #, no-wrap
20163 msgid ""
20164 " echo \"|\"\n"
20165 "\n"
20166 msgstr ""
20167
20168 #. type: =head1
20169 #: ../fish/guestfish.pod:811
20170 msgid "HOME DIRECTORIES"
20171 msgstr ""
20172
20173 #. type: textblock
20174 #: ../fish/guestfish.pod:813
20175 msgid ""
20176 "If a parameter starts with the character C<~> then the tilde may be expanded "
20177 "as a home directory path (either C<~> for the current user's home directory, "
20178 "or C<~user> for another user)."
20179 msgstr ""
20180
20181 #. type: textblock
20182 #: ../fish/guestfish.pod:817
20183 msgid ""
20184 "Note that home directory expansion happens for users known I<on the host>, "
20185 "not in the guest filesystem."
20186 msgstr ""
20187
20188 #. type: textblock
20189 #: ../fish/guestfish.pod:820
20190 msgid ""
20191 "To use a literal argument which begins with a tilde, you have to quote it, "
20192 "eg:"
20193 msgstr ""
20194
20195 #. type: verbatim
20196 #: ../fish/guestfish.pod:823
20197 #, no-wrap
20198 msgid ""
20199 " echo \"~\"\n"
20200 "\n"
20201 msgstr ""
20202
20203 #. type: =head2
20204 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
20205 msgid "ENCRYPTED DISKS"
20206 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20207
20208 #. type: textblock
20209 #: ../fish/guestfish.pod:827
20210 msgid ""
20211 "Libguestfs has some support for Linux guests encrypted according to the "
20212 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20213 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
20214 "LUKS is supported."
20215 msgstr ""
20216
20217 #. type: textblock
20218 #: ../fish/guestfish.pod:832
20219 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20220 msgstr ""
20221
20222 #. type: verbatim
20223 #: ../fish/guestfish.pod:834
20224 #, no-wrap
20225 msgid ""
20226 " ><fs> vfs-type /dev/sda2\n"
20227 " crypto_LUKS\n"
20228 "\n"
20229 msgstr ""
20230
20231 #. type: textblock
20232 #: ../fish/guestfish.pod:837
20233 msgid ""
20234 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20235 "device called C</dev/mapper/luksdev>."
20236 msgstr ""
20237
20238 #. type: verbatim
20239 #: ../fish/guestfish.pod:840
20240 #, no-wrap
20241 msgid ""
20242 " ><fs> luks-open /dev/sda2 luksdev\n"
20243 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20244 "\n"
20245 msgstr ""
20246
20247 #. type: textblock
20248 #: ../fish/guestfish.pod:843
20249 msgid ""
20250 "Finally you have to tell LVM to scan for volume groups on the newly created "
20251 "mapper device:"
20252 msgstr ""
20253
20254 #. type: verbatim
20255 #: ../fish/guestfish.pod:846
20256 #, no-wrap
20257 msgid ""
20258 " vgscan\n"
20259 " vg-activate-all true\n"
20260 "\n"
20261 msgstr ""
20262
20263 #. type: textblock
20264 #: ../fish/guestfish.pod:849
20265 msgid "The logical volume(s) can now be mounted in the usual way."
20266 msgstr ""
20267
20268 #. type: textblock
20269 #: ../fish/guestfish.pod:851
20270 msgid ""
20271 "Before closing a LUKS device you must unmount any logical volumes on it and "
20272 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20273 "one.  Then you can close the mapper device:"
20274 msgstr ""
20275
20276 #. type: verbatim
20277 #: ../fish/guestfish.pod:855
20278 #, no-wrap
20279 msgid ""
20280 " vg-activate false /dev/VG\n"
20281 " luks-close /dev/mapper/luksdev\n"
20282 "\n"
20283 msgstr ""
20284
20285 #. type: textblock
20286 #: ../fish/guestfish.pod:860
20287 msgid ""
20288 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20289 "letters and paths (with some limitations).  The following commands are "
20290 "equivalent:"
20291 msgstr ""
20292
20293 #. type: verbatim
20294 #: ../fish/guestfish.pod:864
20295 #, no-wrap
20296 msgid ""
20297 " file /WINDOWS/system32/config/system.LOG\n"
20298 "\n"
20299 msgstr ""
20300
20301 #. type: verbatim
20302 #: ../fish/guestfish.pod:866
20303 #, no-wrap
20304 msgid ""
20305 " file win:\\windows\\system32\\config\\system.log\n"
20306 "\n"
20307 msgstr ""
20308
20309 #. type: verbatim
20310 #: ../fish/guestfish.pod:868
20311 #, no-wrap
20312 msgid ""
20313 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20314 "\n"
20315 msgstr ""
20316
20317 #. type: textblock
20318 #: ../fish/guestfish.pod:870
20319 msgid ""
20320 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20321 "where the drive is mounted, prepending that to the path, changing all "
20322 "backslash characters to forward slash, then resolving the result using L</"
20323 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
20324 "the parameter might be rewritten like this:"
20325 msgstr ""
20326
20327 #. type: verbatim
20328 #: ../fish/guestfish.pod:876
20329 #, no-wrap
20330 msgid ""
20331 " win:e:\\foo\\bar => /e/FOO/bar\n"
20332 "\n"
20333 msgstr ""
20334
20335 #. type: textblock
20336 #: ../fish/guestfish.pod:878
20337 msgid "This only works in argument positions that expect a path."
20338 msgstr ""
20339
20340 #. type: =head1
20341 #: ../fish/guestfish.pod:880
20342 msgid "UPLOADING AND DOWNLOADING FILES"
20343 msgstr ""
20344
20345 #. type: textblock
20346 #: ../fish/guestfish.pod:882
20347 msgid ""
20348 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20349 "others which upload from or download to a local file, you can use the "
20350 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20351 msgstr ""
20352
20353 #. type: verbatim
20354 #: ../fish/guestfish.pod:886
20355 #, no-wrap
20356 msgid ""
20357 " upload - /foo\n"
20358 "\n"
20359 msgstr ""
20360
20361 #. type: textblock
20362 #: ../fish/guestfish.pod:888
20363 msgid ""
20364 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20365 msgstr ""
20366
20367 #. type: verbatim
20368 #: ../fish/guestfish.pod:891
20369 #, no-wrap
20370 msgid ""
20371 " tar-out /etc - | tar tf -\n"
20372 "\n"
20373 msgstr ""
20374
20375 #. type: textblock
20376 #: ../fish/guestfish.pod:893
20377 msgid ""
20378 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20379 "command (see L</PIPES>)."
20380 msgstr ""
20381
20382 #. type: textblock
20383 #: ../fish/guestfish.pod:896
20384 msgid ""
20385 "When using C<-> to read from stdin, the input is read up to the end of "
20386 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20387 "some arbitrary end marker:"
20388 msgstr ""
20389
20390 #. type: verbatim
20391 #: ../fish/guestfish.pod:900
20392 #, no-wrap
20393 msgid ""
20394 " upload -<<END /foo\n"
20395 " input line 1\n"
20396 " input line 2\n"
20397 " input line 3\n"
20398 " END\n"
20399 "\n"
20400 msgstr ""
20401
20402 #. type: textblock
20403 #: ../fish/guestfish.pod:906
20404 msgid ""
20405 "Any string of characters can be used instead of C<END>.  The end marker must "
20406 "appear on a line of its own, without any preceeding or following characters "
20407 "(not even spaces)."
20408 msgstr ""
20409
20410 #. type: textblock
20411 #: ../fish/guestfish.pod:910
20412 msgid ""
20413 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20414 "upload local files (so-called \"FileIn\" parameters in the generator)."
20415 msgstr ""
20416
20417 #. type: =head1
20418 #: ../fish/guestfish.pod:913
20419 msgid "EXIT ON ERROR BEHAVIOUR"
20420 msgstr ""
20421
20422 #. type: textblock
20423 #: ../fish/guestfish.pod:915
20424 msgid ""
20425 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20426 "taking commands from a human over a tty), and will exit on the first error "
20427 "in non-interactive mode (scripts, commands given on the command line)."
20428 msgstr ""
20429
20430 #. type: textblock
20431 #: ../fish/guestfish.pod:920
20432 msgid ""
20433 "If you prefix a command with a I<-> character, then that command will not "
20434 "cause guestfish to exit, even if that (one) command returns an error."
20435 msgstr ""
20436
20437 #. type: =head1
20438 #: ../fish/guestfish.pod:924
20439 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20440 msgstr ""
20441
20442 #. type: textblock
20443 #: ../fish/guestfish.pod:926
20444 msgid ""
20445 "Guestfish can be remote-controlled over a socket.  This is useful "
20446 "particularly in shell scripts where you want to make several different "
20447 "changes to a filesystem, but you don't want the overhead of starting up a "
20448 "guestfish process each time."
20449 msgstr ""
20450
20451 #. type: textblock
20452 #: ../fish/guestfish.pod:931
20453 msgid "Start a guestfish server process using:"
20454 msgstr ""
20455
20456 #. type: verbatim
20457 #: ../fish/guestfish.pod:933
20458 #, no-wrap
20459 msgid ""
20460 " eval \"`guestfish --listen`\"\n"
20461 "\n"
20462 msgstr ""
20463
20464 #. type: textblock
20465 #: ../fish/guestfish.pod:935
20466 msgid "and then send it commands by doing:"
20467 msgstr ""
20468
20469 #. type: verbatim
20470 #: ../fish/guestfish.pod:937
20471 #, no-wrap
20472 msgid ""
20473 " guestfish --remote cmd [...]\n"
20474 "\n"
20475 msgstr ""
20476
20477 #. type: textblock
20478 #: ../fish/guestfish.pod:939
20479 msgid "To cause the server to exit, send it the exit command:"
20480 msgstr ""
20481
20482 #. type: textblock
20483 #: ../fish/guestfish.pod:943
20484 msgid ""
20485 "Note that the server will normally exit if there is an error in a command.  "
20486 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20487 "BEHAVIOUR>."
20488 msgstr ""
20489
20490 #. type: =head2
20491 #: ../fish/guestfish.pod:947
20492 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20493 msgstr ""
20494
20495 #. type: textblock
20496 #: ../fish/guestfish.pod:949
20497 msgid ""
20498 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20499 "is how the I<--remote> option knows where to send the commands.  You can "
20500 "have several guestfish listener processes running using:"
20501 msgstr ""
20502
20503 #. type: verbatim
20504 #: ../fish/guestfish.pod:953
20505 #, no-wrap
20506 msgid ""
20507 " eval \"`guestfish --listen`\"\n"
20508 " pid1=$GUESTFISH_PID\n"
20509 " eval \"`guestfish --listen`\"\n"
20510 " pid2=$GUESTFISH_PID\n"
20511 " ...\n"
20512 " guestfish --remote=$pid1 cmd\n"
20513 " guestfish --remote=$pid2 cmd\n"
20514 "\n"
20515 msgstr ""
20516
20517 #. type: =head2
20518 #: ../fish/guestfish.pod:961
20519 msgid "REMOTE CONTROL AND CSH"
20520 msgstr ""
20521
20522 #. type: textblock
20523 #: ../fish/guestfish.pod:963
20524 msgid ""
20525 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20526 "option:"
20527 msgstr ""
20528
20529 #. type: verbatim
20530 #: ../fish/guestfish.pod:966
20531 #, no-wrap
20532 msgid ""
20533 " eval \"`guestfish --listen --csh`\"\n"
20534 "\n"
20535 msgstr ""
20536
20537 #. type: =head2
20538 #: ../fish/guestfish.pod:968
20539 msgid "REMOTE CONTROL DETAILS"
20540 msgstr ""
20541
20542 #. type: textblock
20543 #: ../fish/guestfish.pod:970
20544 msgid ""
20545 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20546 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20547 "and C<$PID> is the process ID of the server."
20548 msgstr ""
20549
20550 #. type: textblock
20551 #: ../fish/guestfish.pod:974
20552 msgid "Guestfish client and server versions must match exactly."
20553 msgstr ""
20554
20555 #. type: =head2
20556 #: ../fish/guestfish.pod:976
20557 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20558 msgstr ""
20559
20560 #. type: textblock
20561 #: ../fish/guestfish.pod:978
20562 msgid ""
20563 "From Bash, you can use the following code which creates a guestfish "
20564 "instance, correctly quotes the command line, handles failure to start, and "
20565 "cleans up guestfish when the script exits:"
20566 msgstr ""
20567
20568 #. type: verbatim
20569 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
20570 #, no-wrap
20571 msgid ""
20572 " #!/bin/bash -\n"
20573 " \n"
20574 msgstr ""
20575
20576 #. type: verbatim
20577 #: ../fish/guestfish.pod:986
20578 #, no-wrap
20579 msgid ""
20580 " guestfish[0]=\"guestfish\"\n"
20581 " guestfish[1]=\"--listen\"\n"
20582 " guestfish[2]=\"--ro\"\n"
20583 " guestfish[3]=\"-a\"\n"
20584 " guestfish[4]=\"disk.img\"\n"
20585 " \n"
20586 msgstr ""
20587
20588 #. type: verbatim
20589 #: ../fish/guestfish.pod:992
20590 #, no-wrap
20591 msgid ""
20592 " GUESTFISH_PID=\n"
20593 " eval $(\"${guestfish[@]}\")\n"
20594 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20595 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20596 "     exit 1\n"
20597 " fi\n"
20598 " \n"
20599 msgstr ""
20600
20601 #. type: verbatim
20602 #: ../fish/guestfish.pod:999
20603 #, no-wrap
20604 msgid ""
20605 " cleanup_guestfish ()\n"
20606 " {\n"
20607 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20608 " }\n"
20609 " trap cleanup_guestfish EXIT ERR\n"
20610 " \n"
20611 msgstr ""
20612
20613 #. type: verbatim
20614 #: ../fish/guestfish.pod:1005
20615 #, no-wrap
20616 msgid ""
20617 " guestfish --remote -- run\n"
20618 " \n"
20619 msgstr ""
20620
20621 #. type: verbatim
20622 #: ../fish/guestfish.pod:1007
20623 #, no-wrap
20624 msgid ""
20625 " # ...\n"
20626 "\n"
20627 msgstr ""
20628
20629 #. type: =head2
20630 #: ../fish/guestfish.pod:1009
20631 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20632 msgstr ""
20633
20634 #. type: textblock
20635 #: ../fish/guestfish.pod:1011
20636 msgid ""
20637 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20638 "context hangs, ie. don't do (note the backquotes):"
20639 msgstr ""
20640
20641 #. type: verbatim
20642 #: ../fish/guestfish.pod:1014
20643 #, no-wrap
20644 msgid ""
20645 " a=`guestfish --remote run`\n"
20646 "\n"
20647 msgstr ""
20648
20649 #. type: textblock
20650 #: ../fish/guestfish.pod:1016
20651 msgid ""
20652 "Since the C<run> command produces no output on stdout, this is not useful "
20653 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
20654 "cgi?id=592910>."
20655 msgstr ""
20656
20657 #. type: =head1
20658 #: ../fish/guestfish.pod:1020
20659 msgid "PREPARED DISK IMAGES"
20660 msgstr ""
20661
20662 #. type: textblock
20663 #: ../fish/guestfish.pod:1022
20664 msgid ""
20665 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20666 "preformatted disk images that guestfish can make for you to save typing.  "
20667 "This is particularly useful for testing purposes.  This option is used "
20668 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20669 "can be mixed with I<-a>)."
20670 msgstr ""
20671
20672 #. type: textblock
20673 #: ../fish/guestfish.pod:1028
20674 msgid ""
20675 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20676 "the second and so on.  Existing files in the current directory are "
20677 "I<overwritten>."
20678 msgstr ""
20679
20680 #. type: textblock
20681 #: ../fish/guestfish.pod:1032
20682 msgid ""
20683 "The type briefly describes how the disk should be sized, partitioned, how "
20684 "filesystem(s) should be created, and how content should be added.  "
20685 "Optionally the type can be followed by extra parameters, separated by C<:> "
20686 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
20687 "allocated disk, containing a single partition, with the partition formatted "
20688 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20689 "disk instead."
20690 msgstr ""
20691
20692 #. type: textblock
20693 #: ../fish/guestfish.pod:1040
20694 msgid "To list the available types and any extra parameters they take, run:"
20695 msgstr ""
20696
20697 #. type: textblock
20698 #: ../fish/guestfish.pod:1044
20699 msgid ""
20700 "Note that the prepared filesystem is not mounted.  You would usually have to "
20701 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20702 msgstr ""
20703
20704 #. type: textblock
20705 #: ../fish/guestfish.pod:1048
20706 msgid ""
20707 "If any I<-N> or I<--new> options are given, the guest is automatically "
20708 "launched."
20709 msgstr ""
20710
20711 #. type: textblock
20712 #: ../fish/guestfish.pod:1053
20713 msgid "Create a 100MB disk with an ext4-formatted partition:"
20714 msgstr ""
20715
20716 #. type: verbatim
20717 #: ../fish/guestfish.pod:1055
20718 #, no-wrap
20719 msgid ""
20720 " guestfish -N fs:ext4\n"
20721 "\n"
20722 msgstr ""
20723
20724 #. type: textblock
20725 #: ../fish/guestfish.pod:1057
20726 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20727 msgstr ""
20728
20729 #. type: verbatim
20730 #: ../fish/guestfish.pod:1059
20731 #, no-wrap
20732 msgid ""
20733 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20734 "\n"
20735 msgstr ""
20736
20737 #. type: textblock
20738 #: ../fish/guestfish.pod:1061
20739 msgid "Create a blank 200MB disk:"
20740 msgstr ""
20741
20742 #. type: verbatim
20743 #: ../fish/guestfish.pod:1063
20744 #, no-wrap
20745 msgid ""
20746 " guestfish -N disk:200M\n"
20747 "\n"
20748 msgstr ""
20749
20750 #. type: =head1
20751 #: ../fish/guestfish.pod:1065
20752 msgid "PROGRESS BARS"
20753 msgstr ""
20754
20755 #. type: textblock
20756 #: ../fish/guestfish.pod:1067
20757 msgid ""
20758 "Some (not all) long-running commands send progress notification messages as "
20759 "they are running.  Guestfish turns these messages into progress bars."
20760 msgstr ""
20761
20762 #. type: textblock
20763 #: ../fish/guestfish.pod:1071
20764 msgid ""
20765 "When a command that supports progress bars takes longer than two seconds to "
20766 "run, and if progress bars are enabled, then you will see one appearing below "
20767 "the command:"
20768 msgstr ""
20769
20770 #. type: verbatim
20771 #: ../fish/guestfish.pod:1075
20772 #, no-wrap
20773 msgid ""
20774 " ><fs> copy-size /large-file /another-file 2048M\n"
20775 " / 10% [#####-----------------------------------------] 00:30\n"
20776 "\n"
20777 msgstr ""
20778
20779 #. type: textblock
20780 #: ../fish/guestfish.pod:1078
20781 msgid ""
20782 "The spinner on the left hand side moves round once for every progress "
20783 "notification received from the backend.  This is a (reasonably) golden "
20784 "assurance that the command is \"doing something\" even if the progress bar "
20785 "is not moving, because the command is able to send the progress "
20786 "notifications.  When the bar reaches 100% and the command finishes, the "
20787 "spinner disappears."
20788 msgstr ""
20789
20790 #. type: textblock
20791 #: ../fish/guestfish.pod:1085
20792 msgid ""
20793 "Progress bars are enabled by default when guestfish is used interactively.  "
20794 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20795 "and you can disable them completely using I<--no-progress-bars>."
20796 msgstr ""
20797
20798 #. type: =head1
20799 #: ../fish/guestfish.pod:1090
20800 msgid "GUESTFISH COMMANDS"
20801 msgstr ""
20802
20803 #. type: textblock
20804 #: ../fish/guestfish.pod:1092
20805 msgid ""
20806 "The commands in this section are guestfish convenience commands, in other "
20807 "words, they are not part of the L<guestfs(3)> API."
20808 msgstr ""
20809
20810 #. type: =head2
20811 #: ../fish/guestfish.pod:1095
20812 msgid "help"
20813 msgstr "help"
20814
20815 #. type: verbatim
20816 #: ../fish/guestfish.pod:1097
20817 #, no-wrap
20818 msgid ""
20819 " help\n"
20820 " help cmd\n"
20821 "\n"
20822 msgstr ""
20823 " help\n"
20824 " help команда\n"
20825 "\n"
20826
20827 #. type: textblock
20828 #: ../fish/guestfish.pod:1100
20829 msgid "Without any parameter, this provides general help."
20830 msgstr "Без параметра показує загальну довідкову інформацію."
20831
20832 #. type: textblock
20833 #: ../fish/guestfish.pod:1102
20834 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20835 msgstr ""
20836
20837 #. type: =head2
20838 #: ../fish/guestfish.pod:1104
20839 msgid "quit | exit"
20840 msgstr ""
20841
20842 #. type: textblock
20843 #: ../fish/guestfish.pod:1106
20844 msgid "This exits guestfish.  You can also use C<^D> key."
20845 msgstr ""
20846
20847 #. type: textblock
20848 #: ../fish/guestfish.pod:1108
20849 msgid "@FISH_COMMANDS@"
20850 msgstr ""
20851
20852 #. type: =head1
20853 #: ../fish/guestfish.pod:1110
20854 msgid "COMMANDS"
20855 msgstr "КОМАНДИ"
20856
20857 #. type: textblock
20858 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1505
20859 msgid "@ACTIONS@"
20860 msgstr "@ACTIONS@"
20861
20862 #. type: textblock
20863 #: ../fish/guestfish.pod:1116
20864 msgid ""
20865 "guestfish returns 0 if the commands completed without error, or 1 if there "
20866 "was an error."
20867 msgstr ""
20868
20869 #. type: =item
20870 #: ../fish/guestfish.pod:1123
20871 msgid "EDITOR"
20872 msgstr "РЕДАКТОР"
20873
20874 #. type: textblock
20875 #: ../fish/guestfish.pod:1125
20876 msgid ""
20877 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20878 "C<vi>."
20879 msgstr ""
20880
20881 #. type: =item
20882 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3198
20883 msgid "FEBOOTSTRAP_KERNEL"
20884 msgstr ""
20885
20886 #. type: =item
20887 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3200
20888 msgid "FEBOOTSTRAP_MODULES"
20889 msgstr ""
20890
20891 #. type: textblock
20892 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3202
20893 msgid ""
20894 "These two environment variables allow the kernel that libguestfs uses in the "
20895 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20896 "most recent host kernel is chosen.  For more information about kernel "
20897 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20898 "available in febootstrap E<ge> 3.8."
20899 msgstr ""
20900
20901 #. type: =item
20902 #: ../fish/guestfish.pod:1138
20903 msgid "GUESTFISH_DISPLAY_IMAGE"
20904 msgstr ""
20905
20906 #. type: textblock
20907 #: ../fish/guestfish.pod:1140
20908 msgid ""
20909 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20910 "If not set, it uses L<display(1)>."
20911 msgstr ""
20912
20913 #. type: =item
20914 #: ../fish/guestfish.pod:1143
20915 msgid "GUESTFISH_PID"
20916 msgstr ""
20917
20918 #. type: textblock
20919 #: ../fish/guestfish.pod:1145
20920 msgid ""
20921 "Used with the I<--remote> option to specify the remote guestfish process to "
20922 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20923 msgstr ""
20924
20925 #. type: =item
20926 #: ../fish/guestfish.pod:1149
20927 msgid "HEXEDITOR"
20928 msgstr ""
20929
20930 #. type: textblock
20931 #: ../fish/guestfish.pod:1151
20932 msgid ""
20933 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20934 "not specified, the external L<hexedit(1)> program is used."
20935 msgstr ""
20936
20937 #. type: =item
20938 #: ../fish/guestfish.pod:1155
20939 msgid "HOME"
20940 msgstr "ДОМІВКА"
20941
20942 #. type: textblock
20943 #: ../fish/guestfish.pod:1157
20944 msgid ""
20945 "If compiled with GNU readline support, various files in the home directory "
20946 "can be used.  See L</FILES>."
20947 msgstr ""
20948
20949 #. type: =item
20950 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3208
20951 msgid "LIBGUESTFS_APPEND"
20952 msgstr ""
20953
20954 #. type: textblock
20955 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3210
20956 msgid "Pass additional options to the guest kernel."
20957 msgstr ""
20958
20959 #. type: =item
20960 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3212
20961 msgid "LIBGUESTFS_DEBUG"
20962 msgstr "LIBGUESTFS_DEBUG"
20963
20964 #. type: textblock
20965 #: ../fish/guestfish.pod:1166
20966 msgid ""
20967 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20968 "effect as using the B<-v> option."
20969 msgstr ""
20970
20971 #. type: =item
20972 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3217
20973 msgid "LIBGUESTFS_MEMSIZE"
20974 msgstr "LIBGUESTFS_MEMSIZE"
20975
20976 #. type: textblock
20977 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3219
20978 msgid ""
20979 "Set the memory allocated to the qemu process, in megabytes.  For example:"
20980 msgstr ""
20981
20982 #. type: verbatim
20983 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3222
20984 #, no-wrap
20985 msgid ""
20986 " LIBGUESTFS_MEMSIZE=700\n"
20987 "\n"
20988 msgstr ""
20989 " LIBGUESTFS_MEMSIZE=700\n"
20990 "\n"
20991
20992 #. type: =item
20993 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3224
20994 msgid "LIBGUESTFS_PATH"
20995 msgstr ""
20996
20997 #. type: textblock
20998 #: ../fish/guestfish.pod:1178
20999 msgid ""
21000 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
21001 "the discussion of paths in L<guestfs(3)>."
21002 msgstr ""
21003
21004 #. type: =item
21005 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3229
21006 msgid "LIBGUESTFS_QEMU"
21007 msgstr ""
21008
21009 #. type: textblock
21010 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3231
21011 msgid ""
21012 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21013 "which was found at compile time by the configure script is used."
21014 msgstr ""
21015
21016 #. type: =item
21017 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3237
21018 msgid "LIBGUESTFS_TRACE"
21019 msgstr ""
21020
21021 #. type: textblock
21022 #: ../fish/guestfish.pod:1189
21023 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21024 msgstr ""
21025
21026 #. type: =item
21027 #: ../fish/guestfish.pod:1191
21028 msgid "PAGER"
21029 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21030
21031 #. type: textblock
21032 #: ../fish/guestfish.pod:1193
21033 msgid ""
21034 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21035 "C<more>."
21036 msgstr ""
21037
21038 #. type: =item
21039 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21040 #: ../src/guestfs.pod:3242
21041 msgid "TMPDIR"
21042 msgstr ""
21043
21044 #. type: textblock
21045 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3244
21046 msgid ""
21047 "Location of temporary directory, defaults to C</tmp> except for the cached "
21048 "supermin appliance which defaults to C</var/tmp>."
21049 msgstr ""
21050
21051 #. type: textblock
21052 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3247
21053 msgid ""
21054 "If libguestfs was compiled to use the supermin appliance then the real "
21055 "appliance is cached in this directory, shared between all handles belonging "
21056 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21057 "use in case C</var/tmp> is not large enough."
21058 msgstr ""
21059
21060 #. type: =head1
21061 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21062 #: ../rescue/virt-rescue.pod:273
21063 msgid "FILES"
21064 msgstr "ФАЙЛИ"
21065
21066 #. type: =item
21067 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21068 #: ../rescue/virt-rescue.pod:277
21069 msgid "$HOME/.libguestfs-tools.rc"
21070 msgstr ""
21071
21072 #. type: =item
21073 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21074 #: ../rescue/virt-rescue.pod:279
21075 msgid "/etc/libguestfs-tools.conf"
21076 msgstr ""
21077
21078 #. type: textblock
21079 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21080 #: ../rescue/virt-rescue.pod:281
21081 msgid ""
21082 "This configuration file controls the default read-only or read-write mode "
21083 "(I<--ro> or I<--rw>)."
21084 msgstr ""
21085
21086 #. type: textblock
21087 #: ../fish/guestfish.pod:1220
21088 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21089 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
21090
21091 #. type: =item
21092 #: ../fish/guestfish.pod:1222
21093 msgid "$HOME/.guestfish"
21094 msgstr ""
21095
21096 #. type: textblock
21097 #: ../fish/guestfish.pod:1224
21098 msgid ""
21099 "If compiled with GNU readline support, then the command history is saved in "
21100 "this file."
21101 msgstr ""
21102
21103 #. type: =item
21104 #: ../fish/guestfish.pod:1227
21105 msgid "$HOME/.inputrc"
21106 msgstr ""
21107
21108 #. type: =item
21109 #: ../fish/guestfish.pod:1229
21110 msgid "/etc/inputrc"
21111 msgstr ""
21112
21113 #. type: textblock
21114 #: ../fish/guestfish.pod:1231
21115 msgid ""
21116 "If compiled with GNU readline support, then these files can be used to "
21117 "configure readline.  For further information, please see L<readline(3)/"
21118 "INITIALIZATION FILE>."
21119 msgstr ""
21120
21121 #. type: textblock
21122 #: ../fish/guestfish.pod:1235
21123 msgid "To write rules which only apply to guestfish, use:"
21124 msgstr ""
21125
21126 #. type: verbatim
21127 #: ../fish/guestfish.pod:1237
21128 #, no-wrap
21129 msgid ""
21130 " $if guestfish\n"
21131 " ...\n"
21132 " $endif\n"
21133 "\n"
21134 msgstr ""
21135
21136 #. type: textblock
21137 #: ../fish/guestfish.pod:1241
21138 msgid ""
21139 "Variables that you can set in inputrc that change the behaviour of guestfish "
21140 "in useful ways include:"
21141 msgstr ""
21142
21143 #. type: =item
21144 #: ../fish/guestfish.pod:1246
21145 msgid "completion-ignore-case (default: on)"
21146 msgstr ""
21147
21148 #. type: textblock
21149 #: ../fish/guestfish.pod:1248
21150 msgid ""
21151 "By default, guestfish will ignore case when tab-completing paths on the "
21152 "disk.  Use:"
21153 msgstr ""
21154
21155 #. type: verbatim
21156 #: ../fish/guestfish.pod:1251
21157 #, no-wrap
21158 msgid ""
21159 " set completion-ignore-case off\n"
21160 "\n"
21161 msgstr ""
21162
21163 #. type: textblock
21164 #: ../fish/guestfish.pod:1253
21165 msgid "to make guestfish case sensitive."
21166 msgstr ""
21167
21168 #. type: =item
21169 #: ../fish/guestfish.pod:1257
21170 msgid "test1.img"
21171 msgstr ""
21172
21173 #. type: =item
21174 #: ../fish/guestfish.pod:1259
21175 msgid "test2.img (etc)"
21176 msgstr ""
21177
21178 #. type: textblock
21179 #: ../fish/guestfish.pod:1261
21180 msgid ""
21181 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21182 "will be created in the file C<test1.img> in the current directory.  The "
21183 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21184 "the same name will be overwritten."
21185 msgstr ""
21186
21187 #. type: textblock
21188 #: ../fish/guestfish.pod:1270
21189 msgid ""
21190 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21191 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21192 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21193 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21194 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21195 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21196 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21197 msgstr ""
21198
21199 #. type: textblock
21200 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3339
21201 #: ../test-tool/libguestfs-test-tool.pod:112
21202 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21203 msgstr ""
21204
21205 #. type: textblock
21206 #: ../fish/virt-copy-in.pod:5
21207 msgid ""
21208 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21209 msgstr ""
21210
21211 #. type: verbatim
21212 #: ../fish/virt-copy-in.pod:9
21213 #, no-wrap
21214 msgid ""
21215 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21216 "\n"
21217 msgstr ""
21218
21219 #. type: verbatim
21220 #: ../fish/virt-copy-in.pod:11
21221 #, no-wrap
21222 msgid ""
21223 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21224 "\n"
21225 msgstr ""
21226
21227 #. type: textblock
21228 #: ../fish/virt-copy-in.pod:15
21229 msgid ""
21230 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21231 "causing disk corruption.  The virtual machine must be shut down before you "
21232 "use this command."
21233 msgstr ""
21234
21235 #. type: textblock
21236 #: ../fish/virt-copy-in.pod:21
21237 msgid ""
21238 "C<virt-copy-in> copies files and directories from the local disk into a "
21239 "virtual machine disk image or named libvirt domain."
21240 msgstr ""
21241
21242 #. type: textblock
21243 #: ../fish/virt-copy-in.pod:24
21244 msgid ""
21245 "You can give one of more filenames and directories on the command line.  "
21246 "Directories are copied in recursively.  The final parameter must be the "
21247 "destination directory in the disk image which must be an absolute path "
21248 "starting with a C</> character."
21249 msgstr ""
21250
21251 #. type: verbatim
21252 #: ../fish/virt-copy-in.pod:33
21253 #, no-wrap
21254 msgid ""
21255 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21256 "\n"
21257 msgstr ""
21258
21259 #. type: textblock
21260 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21261 msgid "Upload a home directory to a guest:"
21262 msgstr ""
21263
21264 #. type: verbatim
21265 #: ../fish/virt-copy-in.pod:37
21266 #, no-wrap
21267 msgid ""
21268 " virt-copy-in -d MyGuest skel /home\n"
21269 "\n"
21270 msgstr ""
21271
21272 #. type: =head1
21273 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21274 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21275 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21276 msgstr ""
21277
21278 #. type: textblock
21279 #: ../fish/virt-copy-in.pod:41
21280 msgid ""
21281 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21282 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
21283 "are probably better off using guestfish directly."
21284 msgstr ""
21285
21286 #. type: textblock
21287 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21288 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21289 msgid ""
21290 "Since the shell script just passes options straight to guestfish, read "
21291 "L<guestfish(1)> to see the full list of options."
21292 msgstr ""
21293
21294 #. type: textblock
21295 #: ../fish/virt-copy-in.pod:52
21296 msgid ""
21297 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21298 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21299 msgstr ""
21300
21301 #. type: textblock
21302 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21303 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21304 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21305 msgstr ""
21306
21307 #. type: textblock
21308 #: ../fish/virt-copy-out.pod:5
21309 msgid ""
21310 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21311 "image."
21312 msgstr ""
21313
21314 #. type: verbatim
21315 #: ../fish/virt-copy-out.pod:9
21316 #, no-wrap
21317 msgid ""
21318 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21319 "\n"
21320 msgstr ""
21321
21322 #. type: verbatim
21323 #: ../fish/virt-copy-out.pod:11
21324 #, no-wrap
21325 msgid ""
21326 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21327 "\n"
21328 msgstr ""
21329
21330 #. type: textblock
21331 #: ../fish/virt-copy-out.pod:15
21332 msgid ""
21333 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21334 "image or named libvirt domain."
21335 msgstr ""
21336
21337 #. type: textblock
21338 #: ../fish/virt-copy-out.pod:18
21339 msgid ""
21340 "You can give one of more filenames and directories on the command line.  "
21341 "Directories are copied out recursively."
21342 msgstr ""
21343
21344 #. type: textblock
21345 #: ../fish/virt-copy-out.pod:23
21346 msgid "Download the home directories from a virtual machine:"
21347 msgstr ""
21348
21349 #. type: verbatim
21350 #: ../fish/virt-copy-out.pod:25
21351 #, no-wrap
21352 msgid ""
21353 " mkdir homes\n"
21354 " virt-copy-out -d MyGuest /home homes\n"
21355 "\n"
21356 msgstr ""
21357
21358 #. type: textblock
21359 #: ../fish/virt-copy-out.pod:30
21360 msgid ""
21361 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21362 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
21363 "are probably better off using guestfish directly."
21364 msgstr ""
21365
21366 #. type: textblock
21367 #: ../fish/virt-copy-out.pod:41
21368 msgid ""
21369 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21370 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21371 msgstr ""
21372
21373 #. type: textblock
21374 #: ../fish/virt-tar-in.pod:5
21375 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21376 msgstr ""
21377
21378 #. type: verbatim
21379 #: ../fish/virt-tar-in.pod:9
21380 #, no-wrap
21381 msgid ""
21382 " virt-tar-in -a disk.img data.tar /destination\n"
21383 "\n"
21384 msgstr ""
21385
21386 #. type: verbatim
21387 #: ../fish/virt-tar-in.pod:11
21388 #, no-wrap
21389 msgid ""
21390 " virt-tar-in -d domain data.tar /destination\n"
21391 "\n"
21392 msgstr ""
21393
21394 #. type: verbatim
21395 #: ../fish/virt-tar-in.pod:13
21396 #, no-wrap
21397 msgid ""
21398 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21399 "\n"
21400 msgstr ""
21401
21402 #. type: textblock
21403 #: ../fish/virt-tar-in.pod:17
21404 msgid ""
21405 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21406 "causing disk corruption.  The virtual machine must be shut down before you "
21407 "use this command."
21408 msgstr ""
21409
21410 #. type: textblock
21411 #: ../fish/virt-tar-in.pod:23
21412 msgid ""
21413 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21414 "image or named libvirt domain."
21415 msgstr ""
21416
21417 #. type: textblock
21418 #: ../fish/virt-tar-in.pod:26
21419 msgid ""
21420 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21421 "standard input.  The second parameter is the absolute target directory to "
21422 "unpack into."
21423 msgstr ""
21424
21425 #. type: verbatim
21426 #: ../fish/virt-tar-in.pod:34
21427 #, no-wrap
21428 msgid ""
21429 " virt-tar-in -d MyGuest homes.tar /home\n"
21430 "\n"
21431 msgstr ""
21432
21433 #. type: textblock
21434 #: ../fish/virt-tar-in.pod:38
21435 msgid ""
21436 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21437 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
21438 "probably better off using guestfish directly."
21439 msgstr ""
21440
21441 #. type: textblock
21442 #: ../fish/virt-tar-in.pod:49
21443 msgid ""
21444 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21445 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21446 "org/>."
21447 msgstr ""
21448
21449 #. type: textblock
21450 #: ../fish/virt-tar-out.pod:5
21451 msgid ""
21452 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21453 msgstr ""
21454
21455 #. type: verbatim
21456 #: ../fish/virt-tar-out.pod:9
21457 #, no-wrap
21458 msgid ""
21459 " virt-tar-out -a disk.img /dir files.tar\n"
21460 "\n"
21461 msgstr ""
21462
21463 #. type: verbatim
21464 #: ../fish/virt-tar-out.pod:11
21465 #, no-wrap
21466 msgid ""
21467 " virt-tar-out -d domain /dir files.tar\n"
21468 "\n"
21469 msgstr ""
21470
21471 #. type: verbatim
21472 #: ../fish/virt-tar-out.pod:13
21473 #, no-wrap
21474 msgid ""
21475 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21476 "\n"
21477 msgstr ""
21478
21479 #. type: textblock
21480 #: ../fish/virt-tar-out.pod:17
21481 msgid ""
21482 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21483 msgstr ""
21484
21485 #. type: textblock
21486 #: ../fish/virt-tar-out.pod:20
21487 msgid ""
21488 "The first parameter is the absolute path of the virtual machine directory.  "
21489 "The second parameter is the tar file to write.  Use C<-> to write to "
21490 "standard output."
21491 msgstr ""
21492
21493 #. type: textblock
21494 #: ../fish/virt-tar-out.pod:26
21495 msgid "Download the home directories from a guest:"
21496 msgstr ""
21497
21498 #. type: verbatim
21499 #: ../fish/virt-tar-out.pod:28
21500 #, no-wrap
21501 msgid ""
21502 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21503 "\n"
21504 msgstr ""
21505
21506 #. type: textblock
21507 #: ../fish/virt-tar-out.pod:32
21508 msgid ""
21509 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21510 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
21511 "are probably better off using guestfish directly."
21512 msgstr ""
21513
21514 #. type: textblock
21515 #: ../fish/virt-tar-out.pod:43
21516 msgid ""
21517 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21518 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21519 msgstr ""
21520
21521 #. type: textblock
21522 #: ../fuse/guestmount.pod:5
21523 msgid ""
21524 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21525 msgstr ""
21526
21527 #. type: verbatim
21528 #: ../fuse/guestmount.pod:9
21529 #, no-wrap
21530 msgid ""
21531 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21532 "\n"
21533 msgstr ""
21534
21535 #. type: verbatim
21536 #: ../fuse/guestmount.pod:11
21537 #, no-wrap
21538 msgid ""
21539 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21540 "\n"
21541 msgstr ""
21542
21543 #. type: verbatim
21544 #: ../fuse/guestmount.pod:13
21545 #, no-wrap
21546 msgid ""
21547 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21548 "\n"
21549 msgstr ""
21550
21551 #. type: textblock
21552 #: ../fuse/guestmount.pod:17
21553 msgid ""
21554 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21555 "machines.  If you do this, you risk disk corruption in the VM."
21556 msgstr ""
21557
21558 #. type: textblock
21559 #: ../fuse/guestmount.pod:22
21560 msgid ""
21561 "The guestmount program can be used to mount virtual machine filesystems and "
21562 "other disk images on the host.  It uses libguestfs for access to the guest "
21563 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21564 "a mountable device."
21565 msgstr ""
21566
21567 #. type: textblock
21568 #: ../fuse/guestmount.pod:27
21569 msgid ""
21570 "Along with other options, you have to give at least one device (I<-a> "
21571 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21572 "option) or use the I<-i> inspection option.  How this works is better "
21573 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
21574 "below."
21575 msgstr ""
21576
21577 #. type: textblock
21578 #: ../fuse/guestmount.pod:33
21579 msgid ""
21580 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21581 "by you, and the filesystem will not be visible to any other users unless you "
21582 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21583 "the filesystem, use the C<fusermount -u> command."
21584 msgstr ""
21585
21586 #. type: textblock
21587 #: ../fuse/guestmount.pod:41
21588 msgid ""
21589 "For a typical Windows guest which has its main filesystem on the first "
21590 "partition:"
21591 msgstr ""
21592
21593 #. type: verbatim
21594 #: ../fuse/guestmount.pod:44
21595 #, no-wrap
21596 msgid ""
21597 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21598 "\n"
21599 msgstr ""
21600
21601 #. type: textblock
21602 #: ../fuse/guestmount.pod:46
21603 msgid ""
21604 "For a typical Linux guest which has a /boot filesystem on the first "
21605 "partition, and the root filesystem on a logical volume:"
21606 msgstr ""
21607
21608 #. type: verbatim
21609 #: ../fuse/guestmount.pod:49
21610 #, no-wrap
21611 msgid ""
21612 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21613 "\n"
21614 msgstr ""
21615
21616 #. type: textblock
21617 #: ../fuse/guestmount.pod:51
21618 msgid "To get libguestfs to detect guest mountpoints for you:"
21619 msgstr ""
21620
21621 #. type: verbatim
21622 #: ../fuse/guestmount.pod:53
21623 #, no-wrap
21624 msgid ""
21625 " guestmount -a guest.img -i --ro /mnt\n"
21626 "\n"
21627 msgstr ""
21628
21629 #. type: textblock
21630 #: ../fuse/guestmount.pod:55
21631 msgid "For a libvirt guest called \"Guest\" you could do:"
21632 msgstr ""
21633
21634 #. type: verbatim
21635 #: ../fuse/guestmount.pod:57
21636 #, no-wrap
21637 msgid ""
21638 " guestmount -d Guest -i --ro /mnt\n"
21639 "\n"
21640 msgstr ""
21641
21642 #. type: textblock
21643 #: ../fuse/guestmount.pod:59
21644 msgid ""
21645 "If you don't know what filesystems are contained in a guest or disk image, "
21646 "use L<virt-filesystems(1)> first:"
21647 msgstr ""
21648
21649 #. type: verbatim
21650 #: ../fuse/guestmount.pod:62
21651 #, no-wrap
21652 msgid ""
21653 " virt-filesystems MyGuest\n"
21654 "\n"
21655 msgstr ""
21656
21657 #. type: textblock
21658 #: ../fuse/guestmount.pod:64
21659 msgid ""
21660 "If you want to trace the libguestfs calls but without excessive debugging "
21661 "information, we recommend:"
21662 msgstr ""
21663
21664 #. type: verbatim
21665 #: ../fuse/guestmount.pod:67
21666 #, no-wrap
21667 msgid ""
21668 " guestmount [...] --trace /mnt\n"
21669 "\n"
21670 msgstr ""
21671
21672 #. type: textblock
21673 #: ../fuse/guestmount.pod:69
21674 msgid "If you want to debug the program, we recommend:"
21675 msgstr ""
21676
21677 #. type: verbatim
21678 #: ../fuse/guestmount.pod:71
21679 #, no-wrap
21680 msgid ""
21681 " guestmount [...] --trace --verbose /mnt\n"
21682 "\n"
21683 msgstr ""
21684
21685 #. type: =head1
21686 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21687 #: ../resize/virt-resize.pod:544
21688 msgid "NOTES"
21689 msgstr "ПРИМІТКИ"
21690
21691 #. type: =head2
21692 #: ../fuse/guestmount.pod:75
21693 msgid "Other users cannot see the filesystem by default"
21694 msgstr ""
21695
21696 #. type: textblock
21697 #: ../fuse/guestmount.pod:77
21698 msgid ""
21699 "If you mount a filesystem as one user (eg. root), then other users will not "
21700 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21701 "option when mounting:"
21702 msgstr ""
21703
21704 #. type: verbatim
21705 #: ../fuse/guestmount.pod:81
21706 #, no-wrap
21707 msgid ""
21708 " sudo guestmount [...] -o allow_other /mnt\n"
21709 "\n"
21710 msgstr ""
21711
21712 #. type: =head2
21713 #: ../fuse/guestmount.pod:83
21714 msgid "Enabling FUSE"
21715 msgstr ""
21716
21717 #. type: textblock
21718 #: ../fuse/guestmount.pod:85
21719 msgid ""
21720 "On some distros, you may need to add yourself to a special group (eg. "
21721 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21722 "Debian and derivatives."
21723 msgstr ""
21724
21725 #. type: textblock
21726 #: ../fuse/guestmount.pod:89
21727 msgid ""
21728 "On other distros, no special group is required.  It is not necessary on "
21729 "Fedora or Red Hat Enterprise Linux."
21730 msgstr ""
21731
21732 #. type: textblock
21733 #: ../fuse/guestmount.pod:100
21734 msgid "Add a block device or virtual machine image."
21735 msgstr ""
21736
21737 #. type: =item
21738 #: ../fuse/guestmount.pod:123
21739 msgid "B<--dir-cache-timeout N>"
21740 msgstr "B<--dir-cache-timeout N>"
21741
21742 #. type: textblock
21743 #: ../fuse/guestmount.pod:125
21744 msgid ""
21745 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21746 "seconds.  The readdir cache [actually, there are several semi-independent "
21747 "caches] is populated after a readdir(2) call with the stat and extended "
21748 "attributes of the files in the directory, in anticipation that they will be "
21749 "requested soon after."
21750 msgstr ""
21751
21752 #. type: textblock
21753 #: ../fuse/guestmount.pod:131
21754 msgid ""
21755 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21756 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21757 "requests, only cache existing ones."
21758 msgstr ""
21759
21760 #. type: textblock
21761 #: ../fuse/guestmount.pod:151
21762 msgid ""
21763 "If you have untrusted raw-format guest disk images, you should use this "
21764 "option to specify the disk format.  This avoids a possible security problem "
21765 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
21766 "guestfs_add_drive_opts>."
21767 msgstr ""
21768
21769 #. type: =item
21770 #: ../fuse/guestmount.pod:156
21771 msgid "B<--fuse-help>"
21772 msgstr "B<--fuse-help>"
21773
21774 #. type: textblock
21775 #: ../fuse/guestmount.pod:158
21776 msgid "Display help on special FUSE options (see I<-o> below)."
21777 msgstr ""
21778
21779 #. type: textblock
21780 #: ../fuse/guestmount.pod:162
21781 msgid "Display brief help and exit."
21782 msgstr ""
21783
21784 #. type: textblock
21785 #: ../fuse/guestmount.pod:186
21786 msgid ""
21787 "Mount the named partition or logical volume on the given mountpoint B<in the "
21788 "guest> (this has nothing to do with mountpoints in the host)."
21789 msgstr ""
21790
21791 #. type: textblock
21792 #: ../fuse/guestmount.pod:189
21793 msgid ""
21794 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21795 "something on C</>."
21796 msgstr ""
21797
21798 #. type: textblock
21799 #: ../fuse/guestmount.pod:206
21800 msgid ""
21801 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21802 "unmounted.  If you specify this option, then we don't attempt to sync the "
21803 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21804 msgstr ""
21805
21806 #. type: =item
21807 #: ../fuse/guestmount.pod:211
21808 msgid "B<-o option>"
21809 msgstr "B<-o параметр>"
21810
21811 #. type: =item
21812 #: ../fuse/guestmount.pod:213
21813 msgid "B<--option option>"
21814 msgstr "B<--option параметр>"
21815
21816 #. type: textblock
21817 #: ../fuse/guestmount.pod:215
21818 msgid "Pass extra options to FUSE."
21819 msgstr ""
21820
21821 #. type: textblock
21822 #: ../fuse/guestmount.pod:217
21823 msgid ""
21824 "To get a list of all the extra options supported by FUSE, use the command "
21825 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21826 "of them are a good idea."
21827 msgstr ""
21828
21829 #. type: verbatim
21830 #: ../fuse/guestmount.pod:221
21831 #, no-wrap
21832 msgid ""
21833 " guestmount --fuse-help\n"
21834 "\n"
21835 msgstr ""
21836
21837 #. type: textblock
21838 #: ../fuse/guestmount.pod:223
21839 msgid "Some potentially useful FUSE options:"
21840 msgstr ""
21841
21842 #. type: =item
21843 #: ../fuse/guestmount.pod:227
21844 msgid "B<-o allow_other>"
21845 msgstr ""
21846
21847 #. type: textblock
21848 #: ../fuse/guestmount.pod:229
21849 msgid "Allow other users to see the filesystem."
21850 msgstr ""
21851
21852 #. type: =item
21853 #: ../fuse/guestmount.pod:231
21854 msgid "B<-o attr_timeout=N>"
21855 msgstr "B<-o attr_timeout=N>"
21856
21857 #. type: textblock
21858 #: ../fuse/guestmount.pod:233
21859 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21860 msgstr ""
21861
21862 #. type: =item
21863 #: ../fuse/guestmount.pod:235
21864 msgid "B<-o kernel_cache>"
21865 msgstr ""
21866
21867 #. type: textblock
21868 #: ../fuse/guestmount.pod:237
21869 msgid ""
21870 "Allow the kernel to cache files (reduces the number of reads that have to go "
21871 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21872 "afford the extra memory usage."
21873 msgstr ""
21874
21875 #. type: =item
21876 #: ../fuse/guestmount.pod:241
21877 msgid "B<-o uid=N> B<-o gid=N>"
21878 msgstr "B<-o uid=N> B<-o gid=N>"
21879
21880 #. type: textblock
21881 #: ../fuse/guestmount.pod:243
21882 msgid ""
21883 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21884 "the chosen values."
21885 msgstr ""
21886
21887 #. type: textblock
21888 #: ../fuse/guestmount.pod:252
21889 msgid ""
21890 "Add devices and mount everything read-only.  Also disallow writes and make "
21891 "the disk appear read-only to FUSE."
21892 msgstr ""
21893
21894 #. type: textblock
21895 #: ../fuse/guestmount.pod:255
21896 msgid ""
21897 "This is highly recommended if you are not going to edit the guest disk.  If "
21898 "the guest is running and this option is I<not> supplied, then there is a "
21899 "strong risk of disk corruption in the guest.  We try to prevent this from "
21900 "happening, but it is not always possible."
21901 msgstr ""
21902
21903 #. type: textblock
21904 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
21905 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21906 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21907
21908 #. type: textblock
21909 #: ../fuse/guestmount.pod:264
21910 msgid "Enable SELinux support for the guest."
21911 msgstr ""
21912
21913 #. type: textblock
21914 #: ../fuse/guestmount.pod:270
21915 msgid "Enable verbose messages from underlying libguestfs."
21916 msgstr ""
21917
21918 #. type: textblock
21919 #: ../fuse/guestmount.pod:276
21920 msgid "Display the program version and exit."
21921 msgstr ""
21922
21923 #. type: textblock
21924 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
21925 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21926 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21927 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21928
21929 #. type: =item
21930 #: ../fuse/guestmount.pod:289
21931 msgid "B<--trace>"
21932 msgstr "B<--trace>"
21933
21934 #. type: textblock
21935 #: ../fuse/guestmount.pod:291
21936 msgid "Trace libguestfs calls and entry into each FUSE function."
21937 msgstr ""
21938
21939 #. type: textblock
21940 #: ../fuse/guestmount.pod:293
21941 msgid "This also stops the daemon from forking into the background."
21942 msgstr ""
21943
21944 #. type: textblock
21945 #: ../fuse/guestmount.pod:319
21946 msgid ""
21947 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21948 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21949 "net/>."
21950 msgstr ""
21951 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21952 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21953 "net/>."
21954
21955 #. type: textblock
21956 #: ../fuse/guestmount.pod:334
21957 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21958 msgstr ""
21959
21960 #. type: textblock
21961 #: ../inspector/virt-inspector.pod:5
21962 msgid ""
21963 "virt-inspector - Display operating system version and other information "
21964 "about a virtual machine"
21965 msgstr ""
21966
21967 #. type: verbatim
21968 #: ../inspector/virt-inspector.pod:9
21969 #, no-wrap
21970 msgid ""
21971 " virt-inspector [--options] -d domname\n"
21972 "\n"
21973 msgstr ""
21974
21975 #. type: verbatim
21976 #: ../inspector/virt-inspector.pod:11
21977 #, no-wrap
21978 msgid ""
21979 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21980 "\n"
21981 msgstr ""
21982
21983 #. type: verbatim
21984 #: ../inspector/virt-inspector.pod:15
21985 #, no-wrap
21986 msgid ""
21987 " virt-inspector domname\n"
21988 "\n"
21989 msgstr ""
21990
21991 #. type: verbatim
21992 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
21993 #, no-wrap
21994 msgid ""
21995 " virt-inspector disk.img [disk.img ...]\n"
21996 "\n"
21997 msgstr ""
21998
21999 #. type: textblock
22000 #: ../inspector/virt-inspector.pod:21
22001 msgid ""
22002 "B<virt-inspector> examines a virtual machine or disk image and tries to "
22003 "determine the version of the operating system and other information about "
22004 "the virtual machine."
22005 msgstr ""
22006
22007 #. type: textblock
22008 #: ../inspector/virt-inspector.pod:25
22009 msgid "Virt-inspector produces XML output for feeding into other programs."
22010 msgstr ""
22011
22012 #. type: textblock
22013 #: ../inspector/virt-inspector.pod:27
22014 msgid ""
22015 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22016 "the libvirt domain (see: C<virsh list --all>)."
22017 msgstr ""
22018
22019 #. type: textblock
22020 #: ../inspector/virt-inspector.pod:30
22021 msgid ""
22022 "You can also run virt-inspector directly on disk images from a single "
22023 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22024 "has several block devices, in which case you should list several I<-a> "
22025 "options one after another, with the first corresponding to the guest's C</"
22026 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22027 msgstr ""
22028
22029 #. type: textblock
22030 #: ../inspector/virt-inspector.pod:37
22031 msgid ""
22032 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22033 "keys and similar."
22034 msgstr ""
22035
22036 #. type: textblock
22037 #: ../inspector/virt-inspector.pod:40
22038 msgid ""
22039 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22040 "inspect several virtual machines, you have to run virt-inspector several "
22041 "times (for example, from a shell script for-loop)."
22042 msgstr ""
22043
22044 #. type: textblock
22045 #: ../inspector/virt-inspector.pod:45
22046 msgid ""
22047 "Because virt-inspector needs direct access to guest images, it won't "
22048 "normally work over remote libvirt connections."
22049 msgstr ""
22050
22051 #. type: textblock
22052 #: ../inspector/virt-inspector.pod:48
22053 msgid ""
22054 "All of the information available from virt-inspector is also available "
22055 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22056 "The same information can also be fetched using guestfish or via libguestfs "
22057 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22058 "WITH OTHER PROGRAMMING LANGUAGES>)."
22059 msgstr ""
22060
22061 #. type: textblock
22062 #: ../inspector/virt-inspector.pod:81
22063 msgid ""
22064 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22065 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22066 "at all."
22067 msgstr ""
22068
22069 #. type: textblock
22070 #: ../inspector/virt-inspector.pod:94
22071 msgid ""
22072 "When prompting for keys and passphrases, virt-inspector normally turns "
22073 "echoing off so you cannot see what you are typing.  If you are not worried "
22074 "about Tempest attacks and there is no one else in the room you can specify "
22075 "this flag to see what you are typing."
22076 msgstr ""
22077
22078 #. type: textblock
22079 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22080 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22081 #: ../tools/virt-win-reg.pl:144
22082 msgid ""
22083 "Specify the format of disk images given on the command line.  If this is "
22084 "omitted then the format is autodetected from the content of the disk image."
22085 msgstr ""
22086
22087 #. type: textblock
22088 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22089 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22090 #: ../tools/virt-win-reg.pl:148
22091 msgid ""
22092 "If disk images are requested from libvirt, then this program asks libvirt "
22093 "for this information.  In this case, the value of the format parameter is "
22094 "ignored."
22095 msgstr ""
22096
22097 #. type: textblock
22098 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
22099 #: ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132
22100 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22101 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22102 msgid ""
22103 "If working with untrusted raw-format guest disk images, you should ensure "
22104 "the format is always specified."
22105 msgstr ""
22106
22107 #. type: textblock
22108 #: ../inspector/virt-inspector.pod:139
22109 msgid "Previous versions of virt-inspector allowed you to write either:"
22110 msgstr ""
22111
22112 #. type: verbatim
22113 #: ../inspector/virt-inspector.pod:145
22114 #, no-wrap
22115 msgid ""
22116 " virt-inspector guestname\n"
22117 "\n"
22118 msgstr ""
22119
22120 #. type: =head1
22121 #: ../inspector/virt-inspector.pod:153
22122 msgid "XML FORMAT"
22123 msgstr ""
22124
22125 #. type: textblock
22126 #: ../inspector/virt-inspector.pod:155
22127 msgid ""
22128 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22129 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22130 "just an overview."
22131 msgstr ""
22132
22133 #. type: textblock
22134 #: ../inspector/virt-inspector.pod:159
22135 msgid ""
22136 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22137 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22138 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22139 "which is vanishingly rare in real world VMs."
22140 msgstr ""
22141
22142 #. type: =head2
22143 #: ../inspector/virt-inspector.pod:164
22144 msgid "E<lt>operatingsystemE<gt>"
22145 msgstr ""
22146
22147 #. type: textblock
22148 #: ../inspector/virt-inspector.pod:166
22149 msgid ""
22150 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22151 "describe the operating system, its architecture, the descriptive \"product "
22152 "name\" string, the type of OS and so on, as in this example:"
22153 msgstr ""
22154
22155 #. type: verbatim
22156 #: ../inspector/virt-inspector.pod:170
22157 #, no-wrap
22158 msgid ""
22159 " <operatingsystems>\n"
22160 "   <operatingsystem>\n"
22161 "     <root>/dev/sda2</root>\n"
22162 "     <name>windows</name>\n"
22163 "     <arch>i386</arch>\n"
22164 "     <distro>windows</distro>\n"
22165 "     <product_name>Windows 7 Enterprise</product_name>\n"
22166 "     <product_variant>Client</product_variant>\n"
22167 "     <major_version>6</major_version>\n"
22168 "     <minor_version>1</minor_version>\n"
22169 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22170 "     <format>installed</format>\n"
22171 "\n"
22172 msgstr ""
22173
22174 #. type: textblock
22175 #: ../inspector/virt-inspector.pod:183
22176 msgid ""
22177 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22178 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22179 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22180 "architecture.  The other fields are fairly self-explanatory, but because "
22181 "these fields are taken directly from the libguestfs inspection API you can "
22182 "find precise information from L<guestfs(3)/INSPECTION>."
22183 msgstr ""
22184
22185 #. type: textblock
22186 #: ../inspector/virt-inspector.pod:191
22187 msgid ""
22188 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22189 "of view of libguestfs (block devices may have completely different names "
22190 "inside the VM itself)."
22191 msgstr ""
22192
22193 #. type: =head2
22194 #: ../inspector/virt-inspector.pod:195
22195 msgid "E<lt>mountpointsE<gt>"
22196 msgstr ""
22197
22198 #. type: textblock
22199 #: ../inspector/virt-inspector.pod:197
22200 msgid ""
22201 "Un*x-like guests typically have multiple filesystems which are mounted at "
22202 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22203 "element which looks like this:"
22204 msgstr ""
22205
22206 #. type: verbatim
22207 #: ../inspector/virt-inspector.pod:201
22208 #, no-wrap
22209 msgid ""
22210 " <operatingsystems>\n"
22211 "   <operatingsystem>\n"
22212 "     ...\n"
22213 "     <mountpoints>\n"
22214 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22215 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22216 "     </mountpoints>\n"
22217 "\n"
22218 msgstr ""
22219
22220 #. type: textblock
22221 #: ../inspector/virt-inspector.pod:209
22222 msgid ""
22223 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22224 "and may have completely different names inside the guest.  Only mountable "
22225 "filesystems appear in this list, not things like swap devices."
22226 msgstr ""
22227
22228 #. type: =head2
22229 #: ../inspector/virt-inspector.pod:214
22230 msgid "E<lt>filesystemsE<gt>"
22231 msgstr ""
22232
22233 #. type: textblock
22234 #: ../inspector/virt-inspector.pod:216
22235 msgid ""
22236 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22237 "filesystems belonging to the guest, including swap and empty partitions.  "
22238 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22239 "this OS or shared with this OS and other OSes)."
22240 msgstr ""
22241
22242 #. type: textblock
22243 #: ../inspector/virt-inspector.pod:222
22244 msgid "You might see something like this:"
22245 msgstr ""
22246
22247 #. type: verbatim
22248 #: ../inspector/virt-inspector.pod:224
22249 #, no-wrap
22250 msgid ""
22251 " <operatingsystems>\n"
22252 "   <operatingsystem>\n"
22253 "     ...\n"
22254 "     <filesystems>\n"
22255 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22256 "         <type>ext4</type>\n"
22257 "         <label>Fedora-13-x86_64</label>\n"
22258 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22259 "       </filesystem>\n"
22260 "\n"
22261 msgstr ""
22262
22263 #. type: textblock
22264 #: ../inspector/virt-inspector.pod:234
22265 msgid ""
22266 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22267 "the label, and the UUID."
22268 msgstr ""
22269
22270 #. type: =head2
22271 #: ../inspector/virt-inspector.pod:237
22272 msgid "E<lt>applicationsE<gt>"
22273 msgstr ""
22274
22275 #. type: textblock
22276 #: ../inspector/virt-inspector.pod:239
22277 msgid ""
22278 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22279 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22280 "machine."
22281 msgstr ""
22282
22283 #. type: textblock
22284 #: ../inspector/virt-inspector.pod:243
22285 msgid ""
22286 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22287 "Typical values would be C<rpm> and C<deb>."
22288 msgstr ""
22289
22290 #. type: textblock
22291 #: ../inspector/virt-inspector.pod:246
22292 msgid ""
22293 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22294 "Typical values include C<yum>, C<up2date> and C<apt>"
22295 msgstr ""
22296
22297 #. type: textblock
22298 #: ../inspector/virt-inspector.pod:249
22299 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22300 msgstr ""
22301
22302 #. type: verbatim
22303 #: ../inspector/virt-inspector.pod:252
22304 #, no-wrap
22305 msgid ""
22306 " <operatingsystems>\n"
22307 "   <operatingsystem>\n"
22308 "     ...\n"
22309 "     <applications>\n"
22310 "       <application>\n"
22311 "         <name>coreutils</name>\n"
22312 "         <version>8.5</version>\n"
22313 "         <release>1</release>\n"
22314 "       </application>\n"
22315 "\n"
22316 msgstr ""
22317
22318 #. type: textblock
22319 #: ../inspector/virt-inspector.pod:262
22320 msgid ""
22321 "The version and release fields may not be available for some types guests.  "
22322 "Other fields are possible, see L<guestfs(3)/"
22323 "guestfs_inspect_list_applications>."
22324 msgstr ""
22325
22326 #. type: =head2
22327 #: ../inspector/virt-inspector.pod:266
22328 msgid "E<lt>drive_mappingsE<gt>"
22329 msgstr ""
22330
22331 #. type: textblock
22332 #: ../inspector/virt-inspector.pod:268
22333 msgid ""
22334 "For operating systems like Windows which use drive letters, virt-inspector "
22335 "is able to find out how drive letters map to filesystems."
22336 msgstr ""
22337
22338 #. type: verbatim
22339 #: ../inspector/virt-inspector.pod:272
22340 #, no-wrap
22341 msgid ""
22342 " <operatingsystems>\n"
22343 "   <operatingsystem>\n"
22344 "     ...\n"
22345 "     <drive_mappings>\n"
22346 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22347 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22348 "     </drive_mappings>\n"
22349 "\n"
22350 msgstr ""
22351
22352 #. type: textblock
22353 #: ../inspector/virt-inspector.pod:280
22354 msgid ""
22355 "In the example above, drive C maps to the filesystem on the second partition "
22356 "on the first disk, and drive E maps to the filesystem on the first partition "
22357 "on the second disk."
22358 msgstr ""
22359
22360 #. type: textblock
22361 #: ../inspector/virt-inspector.pod:284
22362 msgid ""
22363 "Note that this only covers permanent local filesystem mappings, not things "
22364 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22365 "here."
22366 msgstr ""
22367
22368 #. type: =head2
22369 #: ../inspector/virt-inspector.pod:288
22370 msgid "E<lt>iconE<gt>"
22371 msgstr ""
22372
22373 #. type: textblock
22374 #: ../inspector/virt-inspector.pod:290
22375 msgid ""
22376 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22377 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22378 "very large and high quality."
22379 msgstr ""
22380
22381 #. type: verbatim
22382 #: ../inspector/virt-inspector.pod:294
22383 #, no-wrap
22384 msgid ""
22385 " <operatingsystems>\n"
22386 "   <operatingsystem>\n"
22387 "     ...\n"
22388 "     <icon>\n"
22389 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22390 "       [... many lines of base64 data ...]\n"
22391 "     </icon>\n"
22392 "\n"
22393 msgstr ""
22394
22395 #. type: textblock
22396 #: ../inspector/virt-inspector.pod:302
22397 msgid ""
22398 "To display the icon, you have to extract it and convert the base64 data back "
22399 "to a binary file.  Use an XPath query or simply an editor to extract the "
22400 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22401 "to a PNG file:"
22402 msgstr ""
22403
22404 #. type: verbatim
22405 #: ../inspector/virt-inspector.pod:307
22406 #, no-wrap
22407 msgid ""
22408 " base64 -i -d < icon.data > icon.png\n"
22409 "\n"
22410 msgstr ""
22411
22412 #. type: =head2
22413 #: ../inspector/virt-inspector.pod:309
22414 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22415 msgstr ""
22416
22417 #. type: textblock
22418 #: ../inspector/virt-inspector.pod:311
22419 msgid ""
22420 "Virt-inspector can detect some operating system installers on install disks, "
22421 "live CDs, bootable USB keys and more."
22422 msgstr ""
22423
22424 #. type: textblock
22425 #: ../inspector/virt-inspector.pod:314
22426 msgid ""
22427 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22428 "fields may be present to indicate a live CD, network installer, or one part "
22429 "of a multipart CD.  For example:"
22430 msgstr ""
22431
22432 #. type: verbatim
22433 #: ../inspector/virt-inspector.pod:318
22434 #, no-wrap
22435 msgid ""
22436 " <operatingsystems>\n"
22437 "   <operatingsystem>\n"
22438 "     <root>/dev/sda</root>\n"
22439 "     <name>linux</name>\n"
22440 "     <arch>i386</arch>\n"
22441 "     <distro>ubuntu</distro>\n"
22442 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
22443 "     <major_version>10</major_version>\n"
22444 "     <minor_version>10</minor_version>\n"
22445 "     <format>installer</format>\n"
22446 "     <live/>\n"
22447 "\n"
22448 msgstr ""
22449
22450 #. type: =head1
22451 #: ../inspector/virt-inspector.pod:330
22452 msgid "USING XPATH"
22453 msgstr ""
22454
22455 #. type: textblock
22456 #: ../inspector/virt-inspector.pod:332
22457 msgid ""
22458 "You can use the XPath query language to select parts of the XML.  We "
22459 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
22460 msgstr ""
22461
22462 #. type: verbatim
22463 #: ../inspector/virt-inspector.pod:338
22464 #, no-wrap
22465 msgid ""
22466 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22467 " <filesystems>\n"
22468 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22469 "        <type>ext4</type>\n"
22470 " [...]\n"
22471 "\n"
22472 msgstr ""
22473
22474 #. type: verbatim
22475 #: ../inspector/virt-inspector.pod:344
22476 #, no-wrap
22477 msgid ""
22478 " $ virt-inspector -d Guest | \\\n"
22479 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22480 " ext4\n"
22481 "\n"
22482 msgstr ""
22483
22484 #. type: verbatim
22485 #: ../inspector/virt-inspector.pod:348
22486 #, no-wrap
22487 msgid ""
22488 " $ virt-inspector -d Guest | \\\n"
22489 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22490 " [displays the guest icon, if there is one]\n"
22491 "\n"
22492 msgstr ""
22493
22494 #. type: =head1
22495 #: ../inspector/virt-inspector.pod:359
22496 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22497 msgstr ""
22498
22499 #. type: textblock
22500 #: ../inspector/virt-inspector.pod:361
22501 msgid ""
22502 "Early versions of libguestfs shipped with a different virt-inspector program "
22503 "written in Perl (the current version is written in C).  The XML output of "
22504 "the Perl virt-inspector was different and it could also output in other "
22505 "formats like text."
22506 msgstr ""
22507
22508 #. type: textblock
22509 #: ../inspector/virt-inspector.pod:366
22510 msgid ""
22511 "The old virt-inspector is no longer supported or shipped with libguestfs."
22512 msgstr ""
22513
22514 #. type: textblock
22515 #: ../inspector/virt-inspector.pod:369
22516 msgid ""
22517 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22518 "versions of virt-inspector with different names:"
22519 msgstr ""
22520
22521 #. type: verbatim
22522 #: ../inspector/virt-inspector.pod:372
22523 #, no-wrap
22524 msgid ""
22525 " virt-inspector     Old Perl version.\n"
22526 " virt-inspector2    New C version.\n"
22527 "\n"
22528 msgstr ""
22529
22530 #. type: textblock
22531 #: ../inspector/virt-inspector.pod:382
22532 msgid ""
22533 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22534 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22535 msgstr ""
22536
22537 #. type: textblock
22538 #: ../inspector/virt-inspector.pod:399
22539 msgid "Matthew Booth L<mbooth@redhat.com>"
22540 msgstr ""
22541
22542 #. type: textblock
22543 #: ../java/examples/guestfs-java.pod:5
22544 msgid "guestfs-java - How to use libguestfs from Java"
22545 msgstr ""
22546
22547 #. type: verbatim
22548 #: ../java/examples/guestfs-java.pod:9
22549 #, no-wrap
22550 msgid ""
22551 " import com.redhat.et.libguestfs.*;\n"
22552 " \n"
22553 msgstr ""
22554
22555 #. type: verbatim
22556 #: ../java/examples/guestfs-java.pod:11
22557 #, no-wrap
22558 msgid ""
22559 " GuestFS g = new GuestFS ();\n"
22560 " g.add_drive_opts (\"disk.img\", null);\n"
22561 " g.launch ();\n"
22562 "\n"
22563 msgstr ""
22564
22565 #. type: textblock
22566 #: ../java/examples/guestfs-java.pod:17
22567 msgid ""
22568 "This manual page documents how to call libguestfs from the Java programming "
22569 "language.  This page just documents the differences from the C API and gives "
22570 "some examples.  If you are not familiar with using libguestfs, you also need "
22571 "to read L<guestfs(3)>."
22572 msgstr ""
22573
22574 #. type: =head2
22575 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22576 msgid "CLOSING THE HANDLE"
22577 msgstr ""
22578
22579 #. type: textblock
22580 #: ../java/examples/guestfs-java.pod:24
22581 msgid ""
22582 "The handle is closed when it is reaped by the garbage collector.  Because "
22583 "libguestfs handles include a lot of state, it is also possible to close (and "
22584 "hence free) them explicitly by calling the C<close> method."
22585 msgstr ""
22586
22587 #. type: =head2
22588 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22589 #: ../python/examples/guestfs-python.pod:21
22590 #: ../ruby/examples/guestfs-ruby.pod:22
22591 msgid "EXCEPTIONS"
22592 msgstr "ВИНЯТКИ"
22593
22594 #. type: textblock
22595 #: ../java/examples/guestfs-java.pod:31
22596 msgid ""
22597 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22598 "exception.  This has a single parameter which is the error message (a "
22599 "C<String>)."
22600 msgstr ""
22601
22602 #. type: textblock
22603 #: ../java/examples/guestfs-java.pod:35
22604 msgid "Calling any method on a closed handle raises the same exception."
22605 msgstr ""
22606
22607 #. type: textblock
22608 #: ../java/examples/guestfs-java.pod:47
22609 msgid ""
22610 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22611 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22612 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22613 msgstr ""
22614
22615 #. type: textblock
22616 #: ../ocaml/examples/guestfs-ocaml.pod:5
22617 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22618 msgstr ""
22619
22620 #. type: textblock
22621 #: ../ocaml/examples/guestfs-ocaml.pod:9
22622 msgid "Module style:"
22623 msgstr ""
22624
22625 #. type: verbatim
22626 #: ../ocaml/examples/guestfs-ocaml.pod:11
22627 #, no-wrap
22628 msgid ""
22629 " let g = Guestfs.create () in\n"
22630 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22631 " Guestfs.launch g;\n"
22632 "\n"
22633 msgstr ""
22634
22635 #. type: textblock
22636 #: ../ocaml/examples/guestfs-ocaml.pod:15
22637 msgid "Object-oriented style:"
22638 msgstr ""
22639
22640 #. type: verbatim
22641 #: ../ocaml/examples/guestfs-ocaml.pod:17
22642 #, no-wrap
22643 msgid ""
22644 " let g = new Guestfs.guestfs () in\n"
22645 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22646 " g#launch ();\n"
22647 "\n"
22648 msgstr ""
22649
22650 #. type: verbatim
22651 #: ../ocaml/examples/guestfs-ocaml.pod:21
22652 #, no-wrap
22653 msgid ""
22654 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22655 "or:\n"
22656 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22657 "\n"
22658 msgstr ""
22659
22660 #. type: textblock
22661 #: ../ocaml/examples/guestfs-ocaml.pod:27
22662 msgid ""
22663 "This manual page documents how to call libguestfs from the OCaml programming "
22664 "language.  This page just documents the differences from the C API and gives "
22665 "some examples.  If you are not familiar with using libguestfs, you also need "
22666 "to read L<guestfs(3)>."
22667 msgstr ""
22668
22669 #. type: =head2
22670 #: ../ocaml/examples/guestfs-ocaml.pod:32
22671 msgid "PROGRAMMING STYLES"
22672 msgstr ""
22673
22674 #. type: textblock
22675 #: ../ocaml/examples/guestfs-ocaml.pod:34
22676 msgid ""
22677 "There are two different programming styles supported by the OCaml bindings.  "
22678 "You can use a module style, with each C function mapped to an OCaml function:"
22679 msgstr ""
22680
22681 #. type: verbatim
22682 #: ../ocaml/examples/guestfs-ocaml.pod:38
22683 #, no-wrap
22684 msgid ""
22685 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22686 "\n"
22687 msgstr ""
22688
22689 #. type: textblock
22690 #: ../ocaml/examples/guestfs-ocaml.pod:40
22691 msgid "becomes:"
22692 msgstr ""
22693
22694 #. type: verbatim
22695 #: ../ocaml/examples/guestfs-ocaml.pod:42
22696 #, no-wrap
22697 msgid ""
22698 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22699 "\n"
22700 msgstr ""
22701
22702 #. type: textblock
22703 #: ../ocaml/examples/guestfs-ocaml.pod:44
22704 msgid ""
22705 "Alternately you can use an object-oriented style, calling methods on the "
22706 "class C<Guestfs.guestfs>:"
22707 msgstr ""
22708
22709 #. type: verbatim
22710 #: ../ocaml/examples/guestfs-ocaml.pod:47
22711 #, no-wrap
22712 msgid ""
22713 " method set_verbose : bool -> unit\n"
22714 "\n"
22715 msgstr ""
22716
22717 #. type: textblock
22718 #: ../ocaml/examples/guestfs-ocaml.pod:49
22719 msgid ""
22720 "The object-oriented style is usually briefer, and the minor performance "
22721 "penalty isn't noticable in the general overhead of performing libguestfs "
22722 "functions."
22723 msgstr ""
22724
22725 #. type: textblock
22726 #: ../ocaml/examples/guestfs-ocaml.pod:55
22727 msgid ""
22728 "The handle is closed when it is reaped by the garbage collector.  Because "
22729 "libguestfs handles include a lot of state, it is also possible to close (and "
22730 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22731 "method."
22732 msgstr ""
22733
22734 #. type: textblock
22735 #: ../ocaml/examples/guestfs-ocaml.pod:62
22736 msgid ""
22737 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22738 "exception.  This has a single parameter which is the error message (a "
22739 "string)."
22740 msgstr ""
22741
22742 #. type: textblock
22743 #: ../ocaml/examples/guestfs-ocaml.pod:66
22744 msgid ""
22745 "Calling any function/method on a closed handle raises C<Guestfs."
22746 "Handle_closed>.  The single parameter is the name of the function that you "
22747 "called."
22748 msgstr ""
22749
22750 #. type: textblock
22751 #: ../ocaml/examples/guestfs-ocaml.pod:80
22752 msgid ""
22753 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22754 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22755 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22756 msgstr ""
22757
22758 #. type: textblock
22759 #: ../perl/examples/guestfs-perl.pod:5
22760 msgid "guestfs-perl - How to use libguestfs from Perl"
22761 msgstr ""
22762
22763 #. type: verbatim
22764 #: ../perl/examples/guestfs-perl.pod:9
22765 #, no-wrap
22766 msgid ""
22767 " use Sys::Guestfs;\n"
22768 " \n"
22769 msgstr ""
22770
22771 #. type: verbatim
22772 #: ../perl/examples/guestfs-perl.pod:11
22773 #, no-wrap
22774 msgid ""
22775 " my $h = Sys::Guestfs->new ();\n"
22776 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22777 " $h->launch ();\n"
22778 " $h->mount_options ('', '/dev/sda1', '/');\n"
22779 " $h->touch ('/hello');\n"
22780 " $h->sync ();\n"
22781 "\n"
22782 msgstr ""
22783
22784 #. type: textblock
22785 #: ../perl/examples/guestfs-perl.pod:20
22786 msgid ""
22787 "This manual page documents how to call libguestfs from the Perl programming "
22788 "language.  This page just documents the differences from the C API and gives "
22789 "some examples.  If you are not familiar with using libguestfs, you also need "
22790 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22791 msgstr ""
22792
22793 #. type: =head2
22794 #: ../perl/examples/guestfs-perl.pod:26
22795 msgid "ERRORS"
22796 msgstr "ПОМИЛКИ"
22797
22798 #. type: textblock
22799 #: ../perl/examples/guestfs-perl.pod:28
22800 msgid ""
22801 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22802 ">)."
22803 msgstr ""
22804
22805 #. type: textblock
22806 #: ../perl/examples/guestfs-perl.pod:41
22807 msgid ""
22808 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22809 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22810 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22811 msgstr ""
22812
22813 #. type: textblock
22814 #: ../python/examples/guestfs-python.pod:5
22815 msgid "guestfs-python - How to use libguestfs from Python"
22816 msgstr ""
22817
22818 #. type: verbatim
22819 #: ../python/examples/guestfs-python.pod:9
22820 #, no-wrap
22821 msgid ""
22822 " import guestfs\n"
22823 " g = guestfs.GuestFS ()\n"
22824 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22825 " g.launch\n"
22826 "\n"
22827 msgstr ""
22828
22829 #. type: textblock
22830 #: ../python/examples/guestfs-python.pod:16
22831 msgid ""
22832 "This manual page documents how to call libguestfs from the Python "
22833 "programming language.  This page just documents the differences from the C "
22834 "API and gives some examples.  If you are not familiar with using libguestfs, "
22835 "you also need to read L<guestfs(3)>."
22836 msgstr ""
22837
22838 #. type: textblock
22839 #: ../python/examples/guestfs-python.pod:23
22840 msgid ""
22841 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22842 "single string argument which is the error message."
22843 msgstr ""
22844
22845 #. type: =head2
22846 #: ../python/examples/guestfs-python.pod:26
22847 msgid "MORE DOCUMENTATION"
22848 msgstr ""
22849
22850 #. type: textblock
22851 #: ../python/examples/guestfs-python.pod:28
22852 msgid "Type:"
22853 msgstr "Тип:"
22854
22855 #. type: verbatim
22856 #: ../python/examples/guestfs-python.pod:30
22857 #, no-wrap
22858 msgid ""
22859 " $ python\n"
22860 " >>> import guestfs\n"
22861 " >>> help (guestfs)\n"
22862 "\n"
22863 msgstr ""
22864
22865 #. type: textblock
22866 #: ../python/examples/guestfs-python.pod:44
22867 msgid ""
22868 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22869 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
22870 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22871 msgstr ""
22872
22873 #. type: textblock
22874 #: ../rescue/virt-rescue.pod:5
22875 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22876 msgstr ""
22877
22878 #. type: verbatim
22879 #: ../rescue/virt-rescue.pod:9
22880 #, no-wrap
22881 msgid ""
22882 " virt-rescue [--options] -d domname\n"
22883 "\n"
22884 msgstr ""
22885
22886 #. type: verbatim
22887 #: ../rescue/virt-rescue.pod:11
22888 #, no-wrap
22889 msgid ""
22890 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22891 "\n"
22892 msgstr ""
22893
22894 #. type: verbatim
22895 #: ../rescue/virt-rescue.pod:15
22896 #, no-wrap
22897 msgid ""
22898 " virt-rescue [--options] domname\n"
22899 "\n"
22900 msgstr ""
22901
22902 #. type: verbatim
22903 #: ../rescue/virt-rescue.pod:17
22904 #, no-wrap
22905 msgid ""
22906 " virt-rescue [--options] disk.img [disk.img ...]\n"
22907 "\n"
22908 msgstr ""
22909
22910 #. type: textblock
22911 #: ../rescue/virt-rescue.pod:21
22912 msgid ""
22913 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22914 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22915 "you from doing this, but doesn't catch all cases."
22916 msgstr ""
22917
22918 #. type: textblock
22919 #: ../rescue/virt-rescue.pod:25
22920 msgid ""
22921 "However if you use the I<--ro> (read only) option, then you can attach a "
22922 "shell to a live virtual machine.  The results might be strange or "
22923 "inconsistent at times but you won't get disk corruption."
22924 msgstr ""
22925
22926 #. type: textblock
22927 #: ../rescue/virt-rescue.pod:31
22928 msgid ""
22929 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22930 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22931 "recovery tools which you can use to examine or rescue a virtual machine or "
22932 "disk image."
22933 msgstr ""
22934
22935 #. type: textblock
22936 #: ../rescue/virt-rescue.pod:36
22937 msgid ""
22938 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22939 "on disk image(s):"
22940 msgstr ""
22941
22942 #. type: verbatim
22943 #: ../rescue/virt-rescue.pod:39
22944 #, no-wrap
22945 msgid ""
22946 " virt-rescue -d GuestName\n"
22947 "\n"
22948 msgstr ""
22949
22950 #. type: verbatim
22951 #: ../rescue/virt-rescue.pod:41
22952 #, no-wrap
22953 msgid ""
22954 " virt-rescue --ro -a /path/to/disk.img\n"
22955 "\n"
22956 msgstr ""
22957
22958 #. type: verbatim
22959 #: ../rescue/virt-rescue.pod:43
22960 #, no-wrap
22961 msgid ""
22962 " virt-rescue -a /dev/sdc\n"
22963 "\n"
22964 msgstr ""
22965
22966 #. type: textblock
22967 #: ../rescue/virt-rescue.pod:45
22968 msgid "For live VMs you I<must> use the --ro option."
22969 msgstr ""
22970
22971 #. type: textblock
22972 #: ../rescue/virt-rescue.pod:47
22973 msgid ""
22974 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22975 "in an interactive bash shell where you can use many ordinary Linux "
22976 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22977 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22978 "is an empty directory called C</sysroot> where you can mount filesystems."
22979 msgstr ""
22980
22981 #. type: textblock
22982 #: ../rescue/virt-rescue.pod:54
22983 msgid ""
22984 "In the example below, we list logical volumes, then choose one to mount "
22985 "under C</sysroot>:"
22986 msgstr ""
22987
22988 #. type: verbatim
22989 #: ../rescue/virt-rescue.pod:57
22990 #, no-wrap
22991 msgid ""
22992 " ><rescue> lvs\n"
22993 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22994 " lv_root vg_f11x64 -wi-a-   8.83G\n"
22995 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22996 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22997 " ><rescue> ls /sysroot\n"
22998 "\n"
22999 msgstr ""
23000
23001 #. type: textblock
23002 #: ../rescue/virt-rescue.pod:64
23003 msgid ""
23004 "If you don't know what filesystems are available on the virtual machine then "
23005 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
23006 msgstr ""
23007
23008 #. type: textblock
23009 #: ../rescue/virt-rescue.pod:70
23010 msgid ""
23011 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23012 "virtual machine.  For example you can use it on a blank file if you want to "
23013 "partition that file (although we would recommend using L<guestfish(1)> "
23014 "instead as it is more suitable for this purpose).  You can even use virt-"
23015 "rescue on things like SD cards."
23016 msgstr ""
23017
23018 #. type: textblock
23019 #: ../rescue/virt-rescue.pod:76
23020 msgid ""
23021 "Virt-rescue does not require root.  You only need to run it as root if you "
23022 "need root to open the disk image."
23023 msgstr ""
23024
23025 #. type: textblock
23026 #: ../rescue/virt-rescue.pod:79
23027 msgid ""
23028 "This tool is just designed for quick interactive hacking on a virtual "
23029 "machine.  For more structured access to a virtual machine disk image, you "
23030 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23031 "make scripted changes to guests, use L<guestfish(1)>."
23032 msgstr ""
23033
23034 #. type: =item
23035 #: ../rescue/virt-rescue.pod:103
23036 msgid "B<--append kernelopts>"
23037 msgstr "B<--append параметри_ядра>"
23038
23039 #. type: textblock
23040 #: ../rescue/virt-rescue.pod:105
23041 msgid "Pass additional options to the rescue kernel."
23042 msgstr ""
23043
23044 #. type: verbatim
23045 #: ../rescue/virt-rescue.pod:135
23046 #, no-wrap
23047 msgid ""
23048 " virt-rescue --format=raw -a disk.img\n"
23049 "\n"
23050 msgstr ""
23051
23052 #. type: verbatim
23053 #: ../rescue/virt-rescue.pod:139
23054 #, no-wrap
23055 msgid ""
23056 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23057 "\n"
23058 msgstr ""
23059
23060 #. type: =item
23061 #: ../rescue/virt-rescue.pod:148
23062 msgid "B<-m MB>"
23063 msgstr "B<-m МБ>"
23064
23065 #. type: =item
23066 #: ../rescue/virt-rescue.pod:150
23067 msgid "B<--memsize MB>"
23068 msgstr "B<--memsize МБ>"
23069
23070 #. type: textblock
23071 #: ../rescue/virt-rescue.pod:152
23072 msgid ""
23073 "Change the amount of memory allocated to the rescue system.  The default is "
23074 "set by libguestfs and is small but adequate for running system tools.  The "
23075 "occasional program might need more memory.  The parameter is specified in "
23076 "megabytes."
23077 msgstr ""
23078
23079 #. type: =item
23080 #: ../rescue/virt-rescue.pod:157
23081 msgid "B<--network>"
23082 msgstr "B<--network>"
23083
23084 #. type: textblock
23085 #: ../rescue/virt-rescue.pod:159
23086 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23087 msgstr ""
23088
23089 #. type: textblock
23090 #: ../rescue/virt-rescue.pod:165
23091 msgid "Open the image read-only."
23092 msgstr ""
23093
23094 #. type: textblock
23095 #: ../rescue/virt-rescue.pod:175
23096 msgid ""
23097 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
23098 "SELINUX> before using this option."
23099 msgstr ""
23100
23101 #. type: =item
23102 #: ../rescue/virt-rescue.pod:178
23103 msgid "B<--smp> N"
23104 msgstr ""
23105
23106 #. type: textblock
23107 #: ../rescue/virt-rescue.pod:180
23108 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23109 msgstr ""
23110
23111 #. type: textblock
23112 #: ../rescue/virt-rescue.pod:198
23113 msgid ""
23114 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23115 "are done read-write."
23116 msgstr ""
23117
23118 #. type: textblock
23119 #: ../rescue/virt-rescue.pod:211
23120 msgid "Previous versions of virt-rescue allowed you to write either:"
23121 msgstr ""
23122
23123 #. type: verbatim
23124 #: ../rescue/virt-rescue.pod:213
23125 #, no-wrap
23126 msgid ""
23127 " virt-rescue disk.img [disk.img ...]\n"
23128 "\n"
23129 msgstr ""
23130
23131 #. type: verbatim
23132 #: ../rescue/virt-rescue.pod:217
23133 #, no-wrap
23134 msgid ""
23135 " virt-rescue guestname\n"
23136 "\n"
23137 msgstr ""
23138
23139 #. type: =head1
23140 #: ../rescue/virt-rescue.pod:225
23141 msgid "NETWORK"
23142 msgstr "МЕРЕЖА"
23143
23144 #. type: textblock
23145 #: ../rescue/virt-rescue.pod:227
23146 msgid ""
23147 "Adding the I<--network> option enables QEMU user networking in the rescue "
23148 "appliance.  There are some differences between user networking and ordinary "
23149 "networking:"
23150 msgstr ""
23151
23152 #. type: =item
23153 #: ../rescue/virt-rescue.pod:233
23154 msgid "ping does not work"
23155 msgstr ""
23156
23157 #. type: textblock
23158 #: ../rescue/virt-rescue.pod:235
23159 msgid ""
23160 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23161 "send the ping packets, and because virt-rescue must be able to run as non-"
23162 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
23163 "The ping command will appear to resolve addresses but will not be able to "
23164 "send or receive any packets.  This does not mean that the network is not "
23165 "working."
23166 msgstr ""
23167
23168 #. type: =item
23169 #: ../rescue/virt-rescue.pod:242
23170 msgid "cannot receive connections"
23171 msgstr ""
23172
23173 #. type: textblock
23174 #: ../rescue/virt-rescue.pod:244
23175 msgid "QEMU user networking cannot receive incoming connections."
23176 msgstr ""
23177
23178 #. type: =item
23179 #: ../rescue/virt-rescue.pod:246
23180 msgid "making TCP connections"
23181 msgstr ""
23182
23183 #. type: textblock
23184 #: ../rescue/virt-rescue.pod:248
23185 msgid ""
23186 "The virt-rescue appliance needs to be small and so does not include many "
23187 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23188 "make TCP connections from the shell using the magical C</dev/tcp/"
23189 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23190 msgstr ""
23191
23192 #. type: verbatim
23193 #: ../rescue/virt-rescue.pod:253
23194 #, no-wrap
23195 msgid ""
23196 " exec 3<>/dev/tcp/redhat.com/80\n"
23197 " echo \"GET /\" >&3\n"
23198 " cat <&3\n"
23199 "\n"
23200 msgstr ""
23201
23202 #. type: textblock
23203 #: ../rescue/virt-rescue.pod:257
23204 msgid "See L<bash(1)> for more details."
23205 msgstr ""
23206
23207 #. type: textblock
23208 #: ../rescue/virt-rescue.pod:263
23209 msgid ""
23210 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
23211 "ENVIRONMENT VARIABLES> for the complete list."
23212 msgstr ""
23213
23214 #. type: textblock
23215 #: ../rescue/virt-rescue.pod:290
23216 msgid ""
23217 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
23218 "libguestfs.org/>."
23219 msgstr ""
23220
23221 #. type: textblock
23222 #: ../resize/virt-resize.pod:5
23223 msgid "virt-resize - Resize a virtual machine disk"
23224 msgstr ""
23225
23226 #. type: verbatim
23227 #: ../resize/virt-resize.pod:9
23228 #, no-wrap
23229 msgid ""
23230 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23231 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23232 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23233 "\n"
23234 msgstr ""
23235
23236 #. type: textblock
23237 #: ../resize/virt-resize.pod:15
23238 msgid ""
23239 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23240 "larger or smaller overall, and resizing or deleting any partitions contained "
23241 "within."
23242 msgstr ""
23243
23244 #. type: textblock
23245 #: ../resize/virt-resize.pod:19
23246 msgid ""
23247 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23248 "not> be used on live virtual machines - for consistent results, shut the "
23249 "virtual machine down before resizing it."
23250 msgstr ""
23251
23252 #. type: textblock
23253 #: ../resize/virt-resize.pod:23
23254 msgid ""
23255 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23256 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23257 msgstr ""
23258
23259 #. type: =item
23260 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
23261 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
23262 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2675
23263 msgid "1."
23264 msgstr "1."
23265
23266 #. type: textblock
23267 #: ../resize/virt-resize.pod:33
23268 msgid ""
23269 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23270 "fill the extra 5GB of space."
23271 msgstr ""
23272
23273 #. type: verbatim
23274 #: ../resize/virt-resize.pod:36
23275 #, no-wrap
23276 msgid ""
23277 " virt-filesystems --long -h --all -a olddisk\n"
23278 " \n"
23279 msgstr ""
23280
23281 #. type: verbatim
23282 #: ../resize/virt-resize.pod:38
23283 #, no-wrap
23284 msgid ""
23285 " truncate -r olddisk newdisk\n"
23286 " truncate -s +5G newdisk\n"
23287 " \n"
23288 msgstr ""
23289
23290 #. type: verbatim
23291 #: ../resize/virt-resize.pod:41
23292 #, no-wrap
23293 msgid ""
23294 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23295 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23296 "\n"
23297 msgstr ""
23298
23299 #. type: =item
23300 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
23301 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
23302 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2700
23303 msgid "2."
23304 msgstr "2."
23305
23306 #. type: textblock
23307 #: ../resize/virt-resize.pod:46
23308 msgid ""
23309 "As above, but make the /boot partition 200MB bigger, while giving the "
23310 "remaining space to /dev/sda2:"
23311 msgstr ""
23312
23313 #. type: verbatim
23314 #: ../resize/virt-resize.pod:49
23315 #, no-wrap
23316 msgid ""
23317 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23318 "   olddisk newdisk\n"
23319 "\n"
23320 msgstr ""
23321
23322 #. type: =item
23323 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
23324 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
23325 #: ../src/guestfs.pod:1436
23326 msgid "3."
23327 msgstr "3."
23328
23329 #. type: textblock
23330 #: ../resize/virt-resize.pod:54
23331 msgid ""
23332 "As in the first example, but expand a logical volume as the final step.  "
23333 "This is what you would typically use for Linux guests that use LVM:"
23334 msgstr ""
23335
23336 #. type: verbatim
23337 #: ../resize/virt-resize.pod:58
23338 #, no-wrap
23339 msgid ""
23340 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23341 "   olddisk newdisk\n"
23342 "\n"
23343 msgstr ""
23344
23345 #. type: =item
23346 #: ../resize/virt-resize.pod:61
23347 msgid "4."
23348 msgstr ""
23349
23350 #. type: textblock
23351 #: ../resize/virt-resize.pod:63
23352 msgid ""
23353 "As in the first example, but the output format will be qcow2 instead of a "
23354 "raw disk:"
23355 msgstr ""
23356
23357 #. type: verbatim
23358 #: ../resize/virt-resize.pod:66
23359 #, no-wrap
23360 msgid ""
23361 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23362 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23363 "\n"
23364 msgstr ""
23365
23366 #. type: =head1
23367 #: ../resize/virt-resize.pod:71
23368 msgid "DETAILED USAGE"
23369 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
23370
23371 #. type: =head2
23372 #: ../resize/virt-resize.pod:73
23373 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23374 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
23375
23376 #. type: =item
23377 #: ../resize/virt-resize.pod:77
23378 msgid "1. Shut down the virtual machine"
23379 msgstr ""
23380
23381 #. type: =item
23382 #: ../resize/virt-resize.pod:79
23383 msgid "2. Locate input disk image"
23384 msgstr ""
23385
23386 #. type: textblock
23387 #: ../resize/virt-resize.pod:81
23388 msgid ""
23389 "Locate the input disk image (ie. the file or device on the host containing "
23390 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23391 "dumpxml> like this to find the disk image name:"
23392 msgstr ""
23393
23394 #. type: verbatim
23395 #: ../resize/virt-resize.pod:85
23396 #, no-wrap
23397 msgid ""
23398 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23399 " Found 1 nodes:\n"
23400 " -- NODE --\n"
23401 " <source dev=\"/dev/vg/lv_guest\" />\n"
23402 "\n"
23403 msgstr ""
23404
23405 #. type: =item
23406 #: ../resize/virt-resize.pod:90
23407 msgid "3. Look at current sizing"
23408 msgstr ""
23409
23410 #. type: textblock
23411 #: ../resize/virt-resize.pod:92
23412 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23413 msgstr ""
23414
23415 #. type: verbatim
23416 #: ../resize/virt-resize.pod:95
23417 #, no-wrap
23418 msgid ""
23419 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23420 " Name       Type       Size  Parent\n"
23421 " /dev/sda1  partition  101M  /dev/sda\n"
23422 " /dev/sda2  partition  7.9G  /dev/sda\n"
23423 " /dev/sda   device     8.0G  -\n"
23424 "\n"
23425 msgstr ""
23426
23427 #. type: textblock
23428 #: ../resize/virt-resize.pod:101
23429 msgid ""
23430 "(This example is a virtual machine with an 8 GB disk which we would like to "
23431 "expand up to 10 GB)."
23432 msgstr ""
23433
23434 #. type: =item
23435 #: ../resize/virt-resize.pod:104
23436 msgid "4. Create output disk"
23437 msgstr ""
23438
23439 #. type: textblock
23440 #: ../resize/virt-resize.pod:106
23441 msgid ""
23442 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23443 "to store the resized output disk."
23444 msgstr ""
23445
23446 #. type: textblock
23447 #: ../resize/virt-resize.pod:109
23448 msgid ""
23449 "To store the resized disk image in a file, create a file of a suitable size:"
23450 msgstr ""
23451
23452 #. type: verbatim
23453 #: ../resize/virt-resize.pod:112
23454 #, no-wrap
23455 msgid ""
23456 " # rm -f outdisk\n"
23457 " # truncate -s 10G outdisk\n"
23458 "\n"
23459 msgstr ""
23460
23461 #. type: textblock
23462 #: ../resize/virt-resize.pod:115
23463 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23464 msgstr ""
23465
23466 #. type: verbatim
23467 #: ../resize/virt-resize.pod:117
23468 #, no-wrap
23469 msgid ""
23470 " # lvcreate -L 10G -n lv_name vg_name\n"
23471 "\n"
23472 msgstr ""
23473
23474 #. type: textblock
23475 #: ../resize/virt-resize.pod:119
23476 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23477 msgstr ""
23478
23479 #. type: verbatim
23480 #: ../resize/virt-resize.pod:121
23481 #, no-wrap
23482 msgid ""
23483 " # virsh pool-list\n"
23484 " # virsh vol-create-as poolname newvol 10G\n"
23485 "\n"
23486 msgstr ""
23487
23488 #. type: =item
23489 #: ../resize/virt-resize.pod:124
23490 msgid "5. Resize"
23491 msgstr "5. Зміна розміру"
23492
23493 #. type: textblock
23494 #: ../resize/virt-resize.pod:126
23495 msgid ""
23496 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23497 "file) and the output disk.  The output disk is the one created in the "
23498 "previous step."
23499 msgstr ""
23500
23501 #. type: verbatim
23502 #: ../resize/virt-resize.pod:130
23503 #, no-wrap
23504 msgid ""
23505 " # virt-resize indisk outdisk\n"
23506 "\n"
23507 msgstr ""
23508
23509 #. type: textblock
23510 #: ../resize/virt-resize.pod:132
23511 msgid ""
23512 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23513 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23514 "larger, then an extra, empty partition is created at the end of the disk "
23515 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23516 "error."
23517 msgstr ""
23518
23519 #. type: textblock
23520 #: ../resize/virt-resize.pod:138
23521 msgid ""
23522 "More realistically you'd want to expand existing partitions in the disk "
23523 "image by passing extra options (for the full list see the L</OPTIONS> "
23524 "section below)."
23525 msgstr ""
23526
23527 #. type: textblock
23528 #: ../resize/virt-resize.pod:142
23529 msgid ""
23530 "L</--expand> is the most useful option.  It expands the named partition "
23531 "within the disk to fill any extra space:"
23532 msgstr ""
23533
23534 #. type: verbatim
23535 #: ../resize/virt-resize.pod:145
23536 #, no-wrap
23537 msgid ""
23538 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23539 "\n"
23540 msgstr ""
23541
23542 #. type: textblock
23543 #: ../resize/virt-resize.pod:147
23544 msgid ""
23545 "(In this case, an extra partition is I<not> created at the end of the disk, "
23546 "because there will be no unused space)."
23547 msgstr ""
23548
23549 #. type: textblock
23550 #: ../resize/virt-resize.pod:150
23551 msgid ""
23552 "L</--resize> is the other commonly used option.  The following would "
23553 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23554 "rest of the available space:"
23555 msgstr ""
23556
23557 #. type: verbatim
23558 #: ../resize/virt-resize.pod:154
23559 #, no-wrap
23560 msgid ""
23561 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23562 "     indisk outdisk\n"
23563 "\n"
23564 msgstr ""
23565
23566 #. type: textblock
23567 #: ../resize/virt-resize.pod:157
23568 msgid ""
23569 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23570 "if virt-resize knows how, it will resize the contents, the equivalent of "
23571 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23572 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23573 "filesystems, so you would have to online resize them after booting the guest."
23574 msgstr ""
23575
23576 #. type: textblock
23577 #: ../resize/virt-resize.pod:164
23578 msgid "Other options are covered below."
23579 msgstr ""
23580
23581 #. type: =item
23582 #: ../resize/virt-resize.pod:166
23583 msgid "6. Test"
23584 msgstr "6. Перевірка"
23585
23586 #. type: textblock
23587 #: ../resize/virt-resize.pod:168
23588 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23589 msgstr ""
23590
23591 #. type: textblock
23592 #: ../resize/virt-resize.pod:170
23593 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23594 msgstr ""
23595
23596 #. type: verbatim
23597 #: ../resize/virt-resize.pod:172
23598 #, no-wrap
23599 msgid ""
23600 " # virsh edit guestname\n"
23601 "\n"
23602 msgstr ""
23603
23604 #. type: textblock
23605 #: ../resize/virt-resize.pod:174
23606 msgid ""
23607 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23608 "html#elementsDisks>"
23609 msgstr ""
23610
23611 #. type: textblock
23612 #: ../resize/virt-resize.pod:177
23613 msgid "Then start up the domain with the new, resized disk:"
23614 msgstr ""
23615
23616 #. type: verbatim
23617 #: ../resize/virt-resize.pod:179
23618 #, no-wrap
23619 msgid ""
23620 " # virsh start guestname\n"
23621 "\n"
23622 msgstr ""
23623
23624 #. type: textblock
23625 #: ../resize/virt-resize.pod:181
23626 msgid ""
23627 "and check that it still works.  See also the L</NOTES> section below for "
23628 "additional information."
23629 msgstr ""
23630
23631 #. type: =item
23632 #: ../resize/virt-resize.pod:184
23633 msgid "7. Resize LVs etc inside the guest"
23634 msgstr ""
23635
23636 #. type: textblock
23637 #: ../resize/virt-resize.pod:186
23638 msgid "(This can also be done offline using L<guestfish(1)>)"
23639 msgstr ""
23640
23641 #. type: textblock
23642 #: ../resize/virt-resize.pod:188
23643 msgid ""
23644 "Once the guest has booted you should see the new space available, at least "
23645 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23646 "may need to resize LVs inside PVs, and also resize filesystem types that "
23647 "virt-resize does not know how to expand."
23648 msgstr ""
23649
23650 #. type: =head2
23651 #: ../resize/virt-resize.pod:195
23652 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23653 msgstr ""
23654
23655 #. type: textblock
23656 #: ../resize/virt-resize.pod:197
23657 msgid ""
23658 "Shrinking is somewhat more complex than expanding, and only an overview is "
23659 "given here."
23660 msgstr ""
23661
23662 #. type: textblock
23663 #: ../resize/virt-resize.pod:200
23664 msgid ""
23665 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23666 "filesystems).  The user has to shrink content before passing the disk image "
23667 "to virt-resize, and virt-resize will check that the content has been shrunk "
23668 "properly."
23669 msgstr ""
23670
23671 #. type: textblock
23672 #: ../resize/virt-resize.pod:205
23673 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23674 msgstr ""
23675
23676 #. type: textblock
23677 #: ../resize/virt-resize.pod:207
23678 msgid ""
23679 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23680 "steps 3 and 4 above to allocate a new disk image."
23681 msgstr ""
23682
23683 #. type: textblock
23684 #: ../resize/virt-resize.pod:210
23685 msgid ""
23686 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23687 msgstr ""
23688
23689 #. type: =head2
23690 #: ../resize/virt-resize.pod:213
23691 msgid "IGNORING OR DELETING PARTITIONS"
23692 msgstr ""
23693
23694 #. type: textblock
23695 #: ../resize/virt-resize.pod:215
23696 msgid ""
23697 "virt-resize also gives a convenient way to ignore or delete partitions when "
23698 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23699 "up the copy where you don't care about the existing contents of a "
23700 "partition.  Deleting a partition removes it completely, but note that it "
23701 "also renumbers any partitions after the one which is deleted, which can "
23702 "leave some guests unbootable."
23703 msgstr ""
23704
23705 #. type: =head2
23706 #: ../resize/virt-resize.pod:222
23707 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23708 msgstr ""
23709
23710 #. type: textblock
23711 #: ../resize/virt-resize.pod:224
23712 msgid ""
23713 "If the input disk is in qcow2 format, then you may prefer that the output is "
23714 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23715 "the fly.  The output format is simply determined by the format of the empty "
23716 "output container that you provide.  Thus to create qcow2 output, use:"
23717 msgstr ""
23718
23719 #. type: verbatim
23720 #: ../resize/virt-resize.pod:230
23721 #, no-wrap
23722 msgid ""
23723 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23724 "\n"
23725 msgstr ""
23726
23727 #. type: textblock
23728 #: ../resize/virt-resize.pod:232
23729 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23730 msgstr ""
23731
23732 #. type: textblock
23733 #: ../resize/virt-resize.pod:234
23734 msgid "Similarly, to get non-sparse raw output use:"
23735 msgstr ""
23736
23737 #. type: verbatim
23738 #: ../resize/virt-resize.pod:236
23739 #, no-wrap
23740 msgid ""
23741 " fallocate -l size outdisk\n"
23742 "\n"
23743 msgstr ""
23744
23745 #. type: textblock
23746 #: ../resize/virt-resize.pod:238
23747 msgid ""
23748 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23749 "dev/zero of=outdisk bs=1M count=..>)"
23750 msgstr ""
23751
23752 #. type: textblock
23753 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
23754 msgid "Display help."
23755 msgstr ""
23756
23757 #. type: =item
23758 #: ../resize/virt-resize.pod:249
23759 msgid "B<-d>"
23760 msgstr "B<-d>"
23761
23762 #. type: =item
23763 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
23764 #: ../tools/virt-win-reg.pl:120
23765 msgid "B<--debug>"
23766 msgstr "B<--debug>"
23767
23768 #. type: textblock
23769 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
23770 msgid "Enable debugging messages."
23771 msgstr ""
23772
23773 #. type: =item
23774 #: ../resize/virt-resize.pod:255
23775 msgid "B<--delete part>"
23776 msgstr "B<--delete розділ>"
23777
23778 #. type: textblock
23779 #: ../resize/virt-resize.pod:257
23780 msgid ""
23781 "Delete the named partition.  It would be more accurate to describe this as "
23782 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23783 "the original disk image is left intact."
23784 msgstr ""
23785
23786 #. type: textblock
23787 #: ../resize/virt-resize.pod:261
23788 msgid ""
23789 "Note that when you delete a partition, then anything contained in the "
23790 "partition is also deleted.  Furthermore, this causes any partitions that "
23791 "come after to be I<renumbered>, which can easily make your guest unbootable."
23792 msgstr ""
23793
23794 #. type: textblock
23795 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
23796 #: ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
23797 msgid "You can give this option multiple times."
23798 msgstr ""
23799
23800 #. type: =item
23801 #: ../resize/virt-resize.pod:268
23802 msgid "B<--expand part>"
23803 msgstr "B<--expand розділ>"
23804
23805 #. type: textblock
23806 #: ../resize/virt-resize.pod:270
23807 msgid ""
23808 "Expand the named partition so it uses up all extra space (space left over "
23809 "after any other resize changes that you request have been done)."
23810 msgstr ""
23811
23812 #. type: textblock
23813 #: ../resize/virt-resize.pod:273
23814 msgid ""
23815 "If virt-resize knows how, it will expand the direct content of the "
23816 "partition.  For example, if the partition is an LVM PV, it will expand the "
23817 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
23818 "content it doesn't know about alone."
23819 msgstr ""
23820
23821 #. type: textblock
23822 #: ../resize/virt-resize.pod:278
23823 msgid "Currently virt-resize can resize:"
23824 msgstr ""
23825
23826 #. type: textblock
23827 #: ../resize/virt-resize.pod:284
23828 msgid "ext2, ext3 and ext4 filesystems."
23829 msgstr ""
23830
23831 #. type: textblock
23832 #: ../resize/virt-resize.pod:288
23833 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23834 msgstr ""
23835
23836 #. type: textblock
23837 #: ../resize/virt-resize.pod:290
23838 msgid ""
23839 "The filesystem must have been shut down consistently last time it was used.  "
23840 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23841 "consistency check, so at the first boot after resizing Windows will check "
23842 "the disk."
23843 msgstr ""
23844
23845 #. type: textblock
23846 #: ../resize/virt-resize.pod:297
23847 msgid ""
23848 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
23849 "inside the PV, but see the I<--LV-expand> option.  The user could also "
23850 "resize LVs as desired after boot."
23851 msgstr ""
23852
23853 #. type: textblock
23854 #: ../resize/virt-resize.pod:303
23855 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23856 msgstr ""
23857
23858 #. type: textblock
23859 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
23860 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23861 msgstr ""
23862
23863 #. type: =item
23864 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125
23865 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23866 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23867 msgid "B<--format> raw"
23868 msgstr "B<--format> raw"
23869
23870 #. type: textblock
23871 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
23872 msgid ""
23873 "Specify the format of the input disk image.  If this flag is not given then "
23874 "it is auto-detected from the image itself."
23875 msgstr ""
23876
23877 #. type: textblock
23878 #: ../resize/virt-resize.pod:317
23879 msgid ""
23880 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
23881 "AND NON-SPARSE RAW FORMATS>."
23882 msgstr ""
23883
23884 #. type: =item
23885 #: ../resize/virt-resize.pod:320
23886 msgid "B<--ignore part>"
23887 msgstr "B<--ignore розділ>"
23888
23889 #. type: textblock
23890 #: ../resize/virt-resize.pod:322
23891 msgid ""
23892 "Ignore the named partition.  Effectively this means the partition is "
23893 "allocated on the destination disk, but the content is not copied across from "
23894 "the source disk.  The content of the partition will be blank (all zero "
23895 "bytes)."
23896 msgstr ""
23897
23898 #. type: =item
23899 #: ../resize/virt-resize.pod:329
23900 msgid "B<--LV-expand logvol>"
23901 msgstr "B<--LV-expand логічний_том>"
23902
23903 #. type: textblock
23904 #: ../resize/virt-resize.pod:331
23905 msgid ""
23906 "This takes the logical volume and, as a final step, expands it to fill all "
23907 "the space available in its volume group.  A typical usage, assuming a Linux "
23908 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
23909 "lv_root> would be:"
23910 msgstr ""
23911
23912 #. type: verbatim
23913 #: ../resize/virt-resize.pod:336
23914 #, no-wrap
23915 msgid ""
23916 " virt-resize indisk outdisk \\\n"
23917 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
23918 "\n"
23919 msgstr ""
23920
23921 #. type: textblock
23922 #: ../resize/virt-resize.pod:339
23923 msgid ""
23924 "This would first expand the partition (and PV), and then expand the root "
23925 "device to fill the extra space in the PV."
23926 msgstr ""
23927
23928 #. type: textblock
23929 #: ../resize/virt-resize.pod:342
23930 msgid ""
23931 "The contents of the LV are also resized if virt-resize knows how to do "
23932 "that.  You can stop virt-resize from trying to expand the content by using "
23933 "the option I<--no-expand-content>."
23934 msgstr ""
23935
23936 #. type: textblock
23937 #: ../resize/virt-resize.pod:346
23938 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23939 msgstr ""
23940
23941 #. type: textblock
23942 #: ../resize/virt-resize.pod:348
23943 msgid ""
23944 "You can give this option multiple times, I<but> it doesn't make sense to do "
23945 "this unless the logical volumes you specify are all in different volume "
23946 "groups."
23947 msgstr ""
23948
23949 #. type: =item
23950 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
23951 msgid "B<--machine-readable>"
23952 msgstr ""
23953
23954 #. type: textblock
23955 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
23956 msgid ""
23957 "This option is used to make the output more machine friendly when being "
23958 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
23959 msgstr ""
23960
23961 #. type: =item
23962 #: ../resize/virt-resize.pod:360
23963 msgid "B<--dryrun>"
23964 msgstr "B<--dryrun>"
23965
23966 #. type: textblock
23967 #: ../resize/virt-resize.pod:362
23968 msgid "Print a summary of what would be done, but don't do anything."
23969 msgstr ""
23970
23971 #. type: =item
23972 #: ../resize/virt-resize.pod:364
23973 msgid "B<--no-copy-boot-loader>"
23974 msgstr "B<--no-copy-boot-loader>"
23975
23976 #. type: textblock
23977 #: ../resize/virt-resize.pod:366
23978 msgid ""
23979 "By default, virt-resize copies over some sectors at the start of the disk "
23980 "(up to the beginning of the first partition).  Commonly these sectors "
23981 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23982 "in order for the guest to boot correctly."
23983 msgstr ""
23984
23985 #. type: textblock
23986 #: ../resize/virt-resize.pod:371
23987 msgid ""
23988 "If you specify this flag, then this initial copy is not done.  You may need "
23989 "to reinstall the boot loader in this case."
23990 msgstr ""
23991
23992 #. type: =item
23993 #: ../resize/virt-resize.pod:374
23994 msgid "B<--no-extra-partition>"
23995 msgstr "B<--no-extra-partition>"
23996
23997 #. type: textblock
23998 #: ../resize/virt-resize.pod:376
23999 msgid ""
24000 "By default, virt-resize creates an extra partition if there is any extra, "
24001 "unused space after all resizing has happened.  Use this option to prevent "
24002 "the extra partition from being created.  If you do this then the extra space "
24003 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24004 "tool in the guest."
24005 msgstr ""
24006
24007 #. type: textblock
24008 #: ../resize/virt-resize.pod:382
24009 msgid ""
24010 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24011 "will be created."
24012 msgstr ""
24013
24014 #. type: =item
24015 #: ../resize/virt-resize.pod:385
24016 msgid "B<--no-expand-content>"
24017 msgstr "B<--no-expand-content>"
24018
24019 #. type: textblock
24020 #: ../resize/virt-resize.pod:387
24021 msgid ""
24022 "By default, virt-resize will try to expand the direct contents of "
24023 "partitions, if it knows how (see I<--expand> option above)."
24024 msgstr ""
24025
24026 #. type: textblock
24027 #: ../resize/virt-resize.pod:390
24028 msgid ""
24029 "If you give the I<--no-expand-content> option then virt-resize will not "
24030 "attempt this."
24031 msgstr ""
24032
24033 #. type: =item
24034 #: ../resize/virt-resize.pod:393
24035 msgid "B<--ntfsresize-force>"
24036 msgstr "B<--ntfsresize-force>"
24037
24038 #. type: textblock
24039 #: ../resize/virt-resize.pod:395
24040 msgid ""
24041 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24042 "the NTFS disk is marked as needing a consistency check.  You have to use "
24043 "this option if you want to resize a Windows guest multiple times without "
24044 "booting into Windows between each resize."
24045 msgstr ""
24046
24047 #. type: =item
24048 #: ../resize/virt-resize.pod:401
24049 msgid "B<--output-format> raw"
24050 msgstr "B<--output-format> raw"
24051
24052 #. type: textblock
24053 #: ../resize/virt-resize.pod:403
24054 msgid ""
24055 "Specify the format of the output disk image.  If this flag is not given then "
24056 "it is auto-detected from the image itself."
24057 msgstr ""
24058
24059 #. type: textblock
24060 #: ../resize/virt-resize.pod:409
24061 msgid ""
24062 "Note that this option I<does not create> the output format.  This option "
24063 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24064 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
24065 "SPARSE RAW FORMATS>."
24066 msgstr ""
24067
24068 #. type: textblock
24069 #: ../resize/virt-resize.pod:418
24070 msgid "Don't print the summary."
24071 msgstr ""
24072
24073 #. type: =item
24074 #: ../resize/virt-resize.pod:420
24075 msgid "B<--resize part=size>"
24076 msgstr "B<--resize розділ=розмір>"
24077
24078 #. type: textblock
24079 #: ../resize/virt-resize.pod:422
24080 msgid ""
24081 "Resize the named partition (expanding or shrinking it) so that it has the "
24082 "given size."
24083 msgstr ""
24084
24085 #. type: textblock
24086 #: ../resize/virt-resize.pod:425
24087 msgid ""
24088 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24089 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24090 "size; or as a relative number or percentage.  For example:"
24091 msgstr ""
24092
24093 #. type: verbatim
24094 #: ../resize/virt-resize.pod:431
24095 #, no-wrap
24096 msgid ""
24097 " --resize /dev/sda2=10G\n"
24098 "\n"
24099 msgstr ""
24100
24101 #. type: verbatim
24102 #: ../resize/virt-resize.pod:433
24103 #, no-wrap
24104 msgid ""
24105 " --resize /dev/sda4=90%\n"
24106 "\n"
24107 msgstr ""
24108
24109 #. type: verbatim
24110 #: ../resize/virt-resize.pod:435
24111 #, no-wrap
24112 msgid ""
24113 " --resize /dev/sda2=+1G\n"
24114 "\n"
24115 msgstr ""
24116
24117 #. type: verbatim
24118 #: ../resize/virt-resize.pod:437
24119 #, no-wrap
24120 msgid ""
24121 " --resize /dev/sda2=-200M\n"
24122 "\n"
24123 msgstr ""
24124
24125 #. type: verbatim
24126 #: ../resize/virt-resize.pod:439
24127 #, no-wrap
24128 msgid ""
24129 " --resize /dev/sda1=+128K\n"
24130 "\n"
24131 msgstr ""
24132
24133 #. type: verbatim
24134 #: ../resize/virt-resize.pod:441
24135 #, no-wrap
24136 msgid ""
24137 " --resize /dev/sda1=+10%\n"
24138 "\n"
24139 msgstr ""
24140
24141 #. type: verbatim
24142 #: ../resize/virt-resize.pod:443
24143 #, no-wrap
24144 msgid ""
24145 " --resize /dev/sda1=-10%\n"
24146 "\n"
24147 msgstr ""
24148
24149 #. type: textblock
24150 #: ../resize/virt-resize.pod:445
24151 msgid ""
24152 "You can increase the size of any partition.  Virt-resize will expand the "
24153 "direct content of the partition if it knows how (see I<--expand> below)."
24154 msgstr ""
24155
24156 #. type: textblock
24157 #: ../resize/virt-resize.pod:449
24158 msgid ""
24159 "You can only I<decrease> the size of partitions that contain filesystems or "
24160 "PVs which have already been shrunk.  Virt-resize will check this has been "
24161 "done before proceeding, or else will print an error (see also I<--resize-"
24162 "force>)."
24163 msgstr ""
24164
24165 #. type: =item
24166 #: ../resize/virt-resize.pod:456
24167 msgid "B<--resize-force part=size>"
24168 msgstr "B<--resize-force розділ=розмір>"
24169
24170 #. type: textblock
24171 #: ../resize/virt-resize.pod:458
24172 msgid ""
24173 "This is the same as I<--resize> except that it will let you decrease the "
24174 "size of any partition.  Generally this means you will lose any data which "
24175 "was at the end of the partition you shrink, but you may not care about that "
24176 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24177 "as a swap partition)."
24178 msgstr ""
24179
24180 #. type: textblock
24181 #: ../resize/virt-resize.pod:464
24182 msgid "See also the I<--ignore> option."
24183 msgstr ""
24184
24185 #. type: =item
24186 #: ../resize/virt-resize.pod:466
24187 msgid "B<--shrink part>"
24188 msgstr "B<--shrink розділ>"
24189
24190 #. type: textblock
24191 #: ../resize/virt-resize.pod:468
24192 msgid ""
24193 "Shrink the named partition until the overall disk image fits in the "
24194 "destination.  The named partition B<must> contain a filesystem or PV which "
24195 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24196 "online tools).  Virt-resize will check this and give an error if it has not "
24197 "been done."
24198 msgstr ""
24199
24200 #. type: textblock
24201 #: ../resize/virt-resize.pod:474
24202 msgid ""
24203 "The amount by which the overall disk must be shrunk (after carrying out all "
24204 "other operations requested by the user) is called the \"deficit\".  For "
24205 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24206 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24207 "would give an error unless the user specified a partition to shrink and that "
24208 "partition had more than a gigabyte of free space."
24209 msgstr ""
24210
24211 #. type: =head1
24212 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
24213 msgid "MACHINE READABLE OUTPUT"
24214 msgstr ""
24215
24216 #. type: textblock
24217 #: ../resize/virt-resize.pod:494
24218 msgid ""
24219 "The I<--machine-readable> option can be used to make the output more machine "
24220 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24221 "etc."
24222 msgstr ""
24223
24224 #. type: textblock
24225 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
24226 msgid "There are two ways to use this option."
24227 msgstr ""
24228
24229 #. type: textblock
24230 #: ../resize/virt-resize.pod:500
24231 msgid ""
24232 "Firstly use the option on its own to query the capabilities of the virt-"
24233 "resize binary.  Typical output looks like this:"
24234 msgstr ""
24235
24236 #. type: verbatim
24237 #: ../resize/virt-resize.pod:503
24238 #, no-wrap
24239 msgid ""
24240 " $ virt-resize --machine-readable\n"
24241 " virt-resize\n"
24242 " ntfsresize-force\n"
24243 " 32bitok\n"
24244 " ntfs\n"
24245 " btrfs\n"
24246 "\n"
24247 msgstr ""
24248
24249 #. type: textblock
24250 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
24251 msgid ""
24252 "A list of features is printed, one per line, and the program exits with "
24253 "status 0."
24254 msgstr ""
24255
24256 #. type: textblock
24257 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
24258 msgid ""
24259 "Secondly use the option in conjunction with other options to make the "
24260 "regular program output more machine friendly."
24261 msgstr ""
24262
24263 #. type: textblock
24264 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
24265 msgid "At the moment this means:"
24266 msgstr ""
24267
24268 #. type: textblock
24269 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
24270 msgid ""
24271 "Progress bar messages can be parsed from stdout by looking for this regular "
24272 "expression:"
24273 msgstr ""
24274
24275 #. type: verbatim
24276 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
24277 #, no-wrap
24278 msgid ""
24279 " ^[0-9]+/[0-9]+$\n"
24280 "\n"
24281 msgstr ""
24282
24283 #. type: textblock
24284 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
24285 msgid ""
24286 "The calling program should treat messages sent to stdout (except for "
24287 "progress bar messages) as status messages.  They can be logged and/or "
24288 "displayed to the user."
24289 msgstr ""
24290
24291 #. type: textblock
24292 #: ../resize/virt-resize.pod:535
24293 msgid ""
24294 "The calling program should treat messages sent to stderr as error messages.  "
24295 "In addition, virt-resize exits with a non-zero status code if there was a "
24296 "fatal error."
24297 msgstr ""
24298
24299 #. type: textblock
24300 #: ../resize/virt-resize.pod:541
24301 msgid ""
24302 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24303 "readable> option and will return an error."
24304 msgstr ""
24305
24306 #. type: =head2
24307 #: ../resize/virt-resize.pod:546
24308 msgid "\"Partition 1 does not end on cylinder boundary.\""
24309 msgstr ""
24310
24311 #. type: textblock
24312 #: ../resize/virt-resize.pod:548
24313 msgid ""
24314 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
24315 "means the partitions will not be aligned to the ancient CHS geometry.  "
24316 "However CHS geometry is meaningless for disks manufactured since the early "
24317 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
24318 "cylinders is not required by any modern operating system."
24319 msgstr ""
24320
24321 #. type: =head2
24322 #: ../resize/virt-resize.pod:555
24323 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24324 msgstr ""
24325
24326 #. type: textblock
24327 #: ../resize/virt-resize.pod:557
24328 msgid ""
24329 "In Windows Vista and later versions, Microsoft switched to using a separate "
24330 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24331 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
24332 "the boot partition.  Doing so seems to break the guest completely.  However "
24333 "expanding the second partition (ie. C: drive) should work."
24334 msgstr ""
24335
24336 #. type: textblock
24337 #: ../resize/virt-resize.pod:564
24338 msgid ""
24339 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24340 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24341 "it find errors) is nothing to worry about."
24342 msgstr ""
24343
24344 #. type: =head2
24345 #: ../resize/virt-resize.pod:568
24346 msgid "GUEST BOOT STUCK AT \"GRUB\""
24347 msgstr ""
24348
24349 #. type: textblock
24350 #: ../resize/virt-resize.pod:570
24351 msgid ""
24352 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24353 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
24354 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
24355 "although we think is to do with partition alignment."
24356 msgstr ""
24357
24358 #. type: verbatim
24359 #: ../resize/virt-resize.pod:575
24360 #, no-wrap
24361 msgid ""
24362 " guestfish -i -a newdisk\n"
24363 " ><fs> cat /boot/grub/device.map\n"
24364 " # check the contents of this file are sensible or\n"
24365 " # edit the file if necessary\n"
24366 " ><fs> grub-install / /dev/vda\n"
24367 " ><fs> exit\n"
24368 "\n"
24369 msgstr ""
24370
24371 #. type: textblock
24372 #: ../resize/virt-resize.pod:582
24373 msgid ""
24374 "For more flexible guest reconfiguration, including if you need to specify "
24375 "other parameters to grub-install, use L<virt-rescue(1)>."
24376 msgstr ""
24377
24378 #. type: =head1
24379 #: ../resize/virt-resize.pod:585
24380 msgid "ALTERNATIVE TOOLS"
24381 msgstr ""
24382
24383 #. type: textblock
24384 #: ../resize/virt-resize.pod:587
24385 msgid ""
24386 "There are several proprietary tools for resizing partitions.  We won't "
24387 "mention any here."
24388 msgstr ""
24389
24390 #. type: textblock
24391 #: ../resize/virt-resize.pod:590
24392 msgid ""
24393 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24394 "operations on disk images.  They can resize and move partitions, but I don't "
24395 "think they can do anything with the contents, and they certainly don't "
24396 "understand LVM."
24397 msgstr ""
24398
24399 #. type: textblock
24400 #: ../resize/virt-resize.pod:595
24401 msgid ""
24402 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24403 "but at a much lower level.  You will probably end up hand-calculating sector "
24404 "offsets, which is something that virt-resize was designed to avoid.  If you "
24405 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24406 "I<--debug> flag."
24407 msgstr ""
24408
24409 #. type: textblock
24410 #: ../resize/virt-resize.pod:615
24411 msgid ""
24412 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24413 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24414 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24415 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24416 "L<http://libguestfs.org/>."
24417 msgstr ""
24418
24419 #. type: textblock
24420 #: ../ruby/examples/guestfs-ruby.pod:5
24421 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24422 msgstr ""
24423
24424 #. type: verbatim
24425 #: ../ruby/examples/guestfs-ruby.pod:9
24426 #, no-wrap
24427 msgid ""
24428 " require 'guestfs'\n"
24429 " g = Guestfs::Guestfs.new()\n"
24430 " g.add_drive_opts(\"disk.img\",\n"
24431 "                  :readonly => 1, :format => \"raw\")\n"
24432 " g.launch()\n"
24433 "\n"
24434 msgstr ""
24435
24436 #. type: textblock
24437 #: ../ruby/examples/guestfs-ruby.pod:17
24438 msgid ""
24439 "This manual page documents how to call libguestfs from the Ruby programming "
24440 "language.  This page just documents the differences from the C API and gives "
24441 "some examples.  If you are not familiar with using libguestfs, you also need "
24442 "to read L<guestfs(3)>."
24443 msgstr ""
24444
24445 #. type: textblock
24446 #: ../ruby/examples/guestfs-ruby.pod:24
24447 msgid ""
24448 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24449 "This has a single parameter which is the error message (a string)."
24450 msgstr ""
24451
24452 #. type: textblock
24453 #: ../ruby/examples/guestfs-ruby.pod:38
24454 msgid ""
24455 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24456 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24457 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24458 msgstr ""
24459
24460 #. type: textblock
24461 #: ../sparsify/virt-sparsify.pod:5
24462 msgid "virt-sparsify - Make a virtual machine disk sparse"
24463 msgstr ""
24464
24465 #. type: verbatim
24466 #: ../sparsify/virt-sparsify.pod:9
24467 #, no-wrap
24468 msgid ""
24469 " virt-sparsify [--options] indisk outdisk\n"
24470 "\n"
24471 msgstr ""
24472
24473 #. type: textblock
24474 #: ../sparsify/virt-sparsify.pod:13
24475 msgid ""
24476 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24477 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24478 "the disk image can be converted back to free space on the host."
24479 msgstr ""
24480
24481 #. type: textblock
24482 #: ../sparsify/virt-sparsify.pod:18
24483 msgid ""
24484 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24485 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24486 msgstr ""
24487
24488 #. type: textblock
24489 #: ../sparsify/virt-sparsify.pod:21
24490 msgid ""
24491 "Virt-sparsify can also convert between some disk formats, for example "
24492 "converting a raw disk image to a thin-provisioned qcow2 image."
24493 msgstr ""
24494
24495 #. type: textblock
24496 #: ../sparsify/virt-sparsify.pod:24
24497 msgid ""
24498 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24499 "machines.  If a virtual machine has more than one attached disk, you must "
24500 "sparsify each one separately."
24501 msgstr ""
24502
24503 #. type: =head2
24504 #: ../sparsify/virt-sparsify.pod:28
24505 msgid "IMPORTANT LIMITATIONS"
24506 msgstr ""
24507
24508 #. type: textblock
24509 #: ../sparsify/virt-sparsify.pod:34
24510 msgid ""
24511 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24512 "image to a destination image, leaving the source unchanged.  I<Check that "
24513 "the sparsification was successful before deleting the source image>."
24514 msgstr ""
24515
24516 #. type: textblock
24517 #: ../sparsify/virt-sparsify.pod:41
24518 msgid "The virtual machine I<must be shut down> before using this tool."
24519 msgstr ""
24520
24521 #. type: textblock
24522 #: ../sparsify/virt-sparsify.pod:45
24523 msgid ""
24524 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24525 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24526 "usually much less space is required."
24527 msgstr ""
24528
24529 #. type: textblock
24530 #: ../sparsify/virt-sparsify.pod:51
24531 msgid ""
24532 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24533 msgstr ""
24534
24535 #. type: textblock
24536 #: ../sparsify/virt-sparsify.pod:56
24537 msgid "Virt-sparsify cannot handle encrypted disks."
24538 msgstr ""
24539
24540 #. type: textblock
24541 #: ../sparsify/virt-sparsify.pod:60
24542 msgid ""
24543 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24544 "this space is often used for critical items like bootloaders so it's not "
24545 "really unused."
24546 msgstr ""
24547
24548 #. type: textblock
24549 #: ../sparsify/virt-sparsify.pod:66
24550 msgid ""
24551 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24552 "to do this unless we can be sure there is no hibernation data, so at the "
24553 "moment swap partitions are ignored."
24554 msgstr ""
24555
24556 #. type: textblock
24557 #: ../sparsify/virt-sparsify.pod:72
24558 msgid ""
24559 "You may also want to read the manual pages for the associated tools L<virt-"
24560 "filesystems(1)> and L<virt-df(1)> before starting."
24561 msgstr ""
24562
24563 #. type: textblock
24564 #: ../sparsify/virt-sparsify.pod:77
24565 msgid "Typical usage is:"
24566 msgstr ""
24567
24568 #. type: verbatim
24569 #: ../sparsify/virt-sparsify.pod:79
24570 #, no-wrap
24571 msgid ""
24572 " virt-sparsify indisk outdisk\n"
24573 "\n"
24574 msgstr ""
24575
24576 #. type: textblock
24577 #: ../sparsify/virt-sparsify.pod:81
24578 msgid ""
24579 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24580 "is created, or overwritten if it already exists.  The format of the input "
24581 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24582 msgstr ""
24583
24584 #. type: textblock
24585 #: ../sparsify/virt-sparsify.pod:86
24586 msgid "To convert between formats, use the I<--convert> option:"
24587 msgstr ""
24588
24589 #. type: verbatim
24590 #: ../sparsify/virt-sparsify.pod:88
24591 #, no-wrap
24592 msgid ""
24593 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24594 "\n"
24595 msgstr ""
24596
24597 #. type: textblock
24598 #: ../sparsify/virt-sparsify.pod:90
24599 msgid ""
24600 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24601 "can find within the source disk image.  You can get it to ignore (don't zero "
24602 "free space on) certain filesystems by doing:"
24603 msgstr ""
24604
24605 #. type: verbatim
24606 #: ../sparsify/virt-sparsify.pod:94
24607 #, no-wrap
24608 msgid ""
24609 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24610 "\n"
24611 msgstr ""
24612
24613 #. type: textblock
24614 #: ../sparsify/virt-sparsify.pod:96
24615 msgid ""
24616 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24617 msgstr ""
24618
24619 #. type: =item
24620 #: ../sparsify/virt-sparsify.pod:107
24621 msgid "B<--convert> raw"
24622 msgstr ""
24623
24624 #. type: =item
24625 #: ../sparsify/virt-sparsify.pod:109
24626 msgid "B<--convert> qcow2"
24627 msgstr ""
24628
24629 #. type: =item
24630 #: ../sparsify/virt-sparsify.pod:111
24631 msgid "B<--convert> [other formats]"
24632 msgstr ""
24633
24634 #. type: textblock
24635 #: ../sparsify/virt-sparsify.pod:113
24636 msgid ""
24637 "Use C<output-format> as the format for the destination image.  If this is "
24638 "not specified, then the input format is used."
24639 msgstr ""
24640
24641 #. type: textblock
24642 #: ../sparsify/virt-sparsify.pod:116
24643 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24644 msgstr ""
24645
24646 #. type: textblock
24647 #: ../sparsify/virt-sparsify.pod:118
24648 msgid ""
24649 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24650 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24651 msgstr ""
24652
24653 #. type: textblock
24654 #: ../sparsify/virt-sparsify.pod:122
24655 msgid ""
24656 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24657 "sparsify doesn't need to try to guess the input format."
24658 msgstr ""
24659
24660 #. type: =item
24661 #: ../sparsify/virt-sparsify.pod:127
24662 msgid "B<--format> qcow2"
24663 msgstr ""
24664
24665 #. type: =item
24666 #: ../sparsify/virt-sparsify.pod:135
24667 msgid "B<--ignore> filesystem"
24668 msgstr ""
24669
24670 #. type: =item
24671 #: ../sparsify/virt-sparsify.pod:137
24672 msgid "B<--ignore> volgroup"
24673 msgstr ""
24674
24675 #. type: textblock
24676 #: ../sparsify/virt-sparsify.pod:139
24677 msgid ""
24678 "Ignore the named filesystem.  Free space on the filesystem will not be "
24679 "zeroed, but existing blocks of zeroes will still be sparsified."
24680 msgstr ""
24681
24682 #. type: textblock
24683 #: ../sparsify/virt-sparsify.pod:142
24684 msgid ""
24685 "In the second form, this ignores the named volume group.  Use the volume "
24686 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24687 msgstr ""
24688
24689 #. type: textblock
24690 #: ../sparsify/virt-sparsify.pod:157
24691 msgid "This disables progress bars and other unnecessary output."
24692 msgstr ""
24693
24694 #. type: textblock
24695 #: ../sparsify/virt-sparsify.pod:179
24696 msgid ""
24697 "The I<--machine-readable> option can be used to make the output more machine "
24698 "friendly, which is useful when calling virt-sparsify from other programs, "
24699 "GUIs etc."
24700 msgstr ""
24701
24702 #. type: textblock
24703 #: ../sparsify/virt-sparsify.pod:185
24704 msgid ""
24705 "Firstly use the option on its own to query the capabilities of the virt-"
24706 "sparsify binary.  Typical output looks like this:"
24707 msgstr ""
24708
24709 #. type: verbatim
24710 #: ../sparsify/virt-sparsify.pod:188
24711 #, no-wrap
24712 msgid ""
24713 " $ virt-sparsify --machine-readable\n"
24714 " virt-sparsify\n"
24715 " ntfs\n"
24716 " btrfs\n"
24717 "\n"
24718 msgstr ""
24719
24720 #. type: textblock
24721 #: ../sparsify/virt-sparsify.pod:218
24722 msgid ""
24723 "The calling program should treat messages sent to stderr as error messages.  "
24724 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24725 "fatal error."
24726 msgstr ""
24727
24728 #. type: textblock
24729 #: ../sparsify/virt-sparsify.pod:224
24730 msgid ""
24731 "All versions of virt-sparsify have supported the I<--machine-readable> "
24732 "option."
24733 msgstr ""
24734
24735 #. type: textblock
24736 #: ../sparsify/virt-sparsify.pod:238
24737 msgid ""
24738 "Location of the temporary directory used for the potentially large temporary "
24739 "overlay file."
24740 msgstr ""
24741
24742 #. type: textblock
24743 #: ../sparsify/virt-sparsify.pod:241
24744 msgid ""
24745 "You should ensure there is enough free space in the worst case for a full "
24746 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24747 "to another directory that has enough space."
24748 msgstr ""
24749
24750 #. type: textblock
24751 #: ../sparsify/virt-sparsify.pod:245
24752 msgid "This defaults to C</tmp>."
24753 msgstr ""
24754
24755 #. type: textblock
24756 #: ../sparsify/virt-sparsify.pod:249
24757 msgid ""
24758 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24759 msgstr ""
24760
24761 #. type: textblock
24762 #: ../sparsify/virt-sparsify.pod:253
24763 msgid ""
24764 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24765 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
24766 "(1)>, L<http://libguestfs.org/>."
24767 msgstr ""
24768
24769 #. type: =head2
24770 #: ../src/guestfs-actions.pod:1
24771 msgid "guestfs_add_cdrom"
24772 msgstr ""
24773
24774 #. type: verbatim
24775 #: ../src/guestfs-actions.pod:3
24776 #, no-wrap
24777 msgid ""
24778 " int\n"
24779 " guestfs_add_cdrom (guestfs_h *g,\n"
24780 "                    const char *filename);\n"
24781 "\n"
24782 msgstr ""
24783
24784 #. type: textblock
24785 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:255
24786 #: ../src/guestfs-actions.pod:276
24787 msgid ""
24788 "I<This function is deprecated.> In new code, use the L</"
24789 "guestfs_add_drive_opts> call instead."
24790 msgstr ""
24791
24792 #. type: textblock
24793 #: ../src/guestfs-actions.pod:24
24794 msgid ""
24795 "This call checks for the existence of C<filename>.  This stops you from "
24796 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24797 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
24798 "instead."
24799 msgstr ""
24800
24801 #. type: textblock
24802 #: ../src/guestfs-actions.pod:31
24803 msgid ""
24804 "If you just want to add an ISO file (often you use this as an efficient way "
24805 "to transfer large files into the guest), then you should probably use "
24806 "C<guestfs_add_drive_ro> instead."
24807 msgstr ""
24808
24809 #. type: textblock
24810 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
24811 #: ../src/guestfs-actions.pod:207 ../src/guestfs-actions.pod:244
24812 #: ../src/guestfs-actions.pod:265 ../src/guestfs-actions.pod:286
24813 #: ../src/guestfs-actions.pod:299 ../src/guestfs-actions.pod:313
24814 #: ../src/guestfs-actions.pod:433 ../src/guestfs-actions.pod:453
24815 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:512
24816 #: ../src/guestfs-actions.pod:540 ../src/guestfs-actions.pod:558
24817 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:658
24818 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:687
24819 #: ../src/guestfs-actions.pod:786 ../src/guestfs-actions.pod:804
24820 #: ../src/guestfs-actions.pod:818 ../src/guestfs-actions.pod:832
24821 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:1052
24822 #: ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1090
24823 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1239
24824 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1303
24825 #: ../src/guestfs-actions.pod:1322 ../src/guestfs-actions.pod:1336
24826 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1426
24827 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1482
24828 #: ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1637
24829 #: ../src/guestfs-actions.pod:1664 ../src/guestfs-actions.pod:1879
24830 #: ../src/guestfs-actions.pod:1901 ../src/guestfs-actions.pod:1988
24831 #: ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2640
24832 #: ../src/guestfs-actions.pod:2701 ../src/guestfs-actions.pod:2736
24833 #: ../src/guestfs-actions.pod:3793 ../src/guestfs-actions.pod:3808
24834 #: ../src/guestfs-actions.pod:3833 ../src/guestfs-actions.pod:4022
24835 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4049
24836 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4078
24837 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4186
24838 #: ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4223
24839 #: ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4269
24840 #: ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4323
24841 #: ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4377
24842 #: ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4425
24843 #: ../src/guestfs-actions.pod:4441 ../src/guestfs-actions.pod:4454
24844 #: ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:4486
24845 #: ../src/guestfs-actions.pod:4579 ../src/guestfs-actions.pod:4599
24846 #: ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4663
24847 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4699
24848 #: ../src/guestfs-actions.pod:4715 ../src/guestfs-actions.pod:4729
24849 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4760
24850 #: ../src/guestfs-actions.pod:4775 ../src/guestfs-actions.pod:4802
24851 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4938
24852 #: ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:4988
24853 #: ../src/guestfs-actions.pod:5007 ../src/guestfs-actions.pod:5019
24854 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5049
24855 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5079
24856 #: ../src/guestfs-actions.pod:5111 ../src/guestfs-actions.pod:5137
24857 #: ../src/guestfs-actions.pod:5176 ../src/guestfs-actions.pod:5196
24858 #: ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5227
24859 #: ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5329
24860 #: ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5419
24861 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5464
24862 #: ../src/guestfs-actions.pod:5482 ../src/guestfs-actions.pod:5622
24863 #: ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:5701
24864 #: ../src/guestfs-actions.pod:5719 ../src/guestfs-actions.pod:5751
24865 #: ../src/guestfs-actions.pod:5817 ../src/guestfs-actions.pod:5834
24866 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5861
24867 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169
24868 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6202
24869 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6228
24870 #: ../src/guestfs-actions.pod:6240 ../src/guestfs-actions.pod:6254
24871 #: ../src/guestfs-actions.pod:6270 ../src/guestfs-actions.pod:6291
24872 #: ../src/guestfs-actions.pod:6310 ../src/guestfs-actions.pod:6329
24873 #: ../src/guestfs-actions.pod:6359 ../src/guestfs-actions.pod:6377
24874 #: ../src/guestfs-actions.pod:6400 ../src/guestfs-actions.pod:6418
24875 #: ../src/guestfs-actions.pod:6437 ../src/guestfs-actions.pod:6458
24876 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6494
24877 #: ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6541
24878 #: ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6584
24879 #: ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6624
24880 #: ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6658
24881 #: ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6721
24882 #: ../src/guestfs-actions.pod:6751 ../src/guestfs-actions.pod:6784
24883 #: ../src/guestfs-actions.pod:6899 ../src/guestfs-actions.pod:7020
24884 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7045
24885 #: ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7080
24886 #: ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7106
24887 #: ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7134
24888 #: ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7210
24889 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7242
24890 #: ../src/guestfs-actions.pod:7259 ../src/guestfs-actions.pod:7272
24891 #: ../src/guestfs-actions.pod:7292 ../src/guestfs-actions.pod:7328
24892 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7383
24893 #: ../src/guestfs-actions.pod:7396 ../src/guestfs-actions.pod:7414
24894 #: ../src/guestfs-actions.pod:7448 ../src/guestfs-actions.pod:7484
24895 #: ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7615
24896 #: ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7684
24897 #: ../src/guestfs-actions.pod:7697 ../src/guestfs-actions.pod:7742
24898 #: ../src/guestfs-actions.pod:7782 ../src/guestfs-actions.pod:7838
24899 #: ../src/guestfs-actions.pod:7858 ../src/guestfs-actions.pod:7891
24900 #: ../src/guestfs-actions.pod:7955 ../src/guestfs-actions.pod:7978
24901 #: ../src/guestfs-actions.pod:8007
24902 msgid "This function returns 0 on success or -1 on error."
24903 msgstr ""
24904
24905 #. type: textblock
24906 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
24907 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:2102
24908 #: ../src/guestfs-actions.pod:2200 ../src/guestfs-actions.pod:2325
24909 #: ../src/guestfs-actions.pod:3795 ../src/guestfs-actions.pod:3815
24910 #: ../src/guestfs-actions.pod:5113 ../src/guestfs-actions.pod:6379
24911 #: ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:6645
24912 #: ../src/guestfs-actions.pod:7136 ../src/guestfs-actions.pod:7261
24913 #: ../src/guestfs-actions.pod:7784
24914 msgid "(Added in 0.3)"
24915 msgstr "(Додано у 0.3)"
24916
24917 #. type: =head2
24918 #: ../src/guestfs-actions.pod:41
24919 msgid "guestfs_add_domain"
24920 msgstr ""
24921
24922 #. type: verbatim
24923 #: ../src/guestfs-actions.pod:43
24924 #, no-wrap
24925 msgid ""
24926 " int\n"
24927 " guestfs_add_domain (guestfs_h *g,\n"
24928 "                     const char *dom,\n"
24929 "                     ...);\n"
24930 "\n"
24931 msgstr ""
24932
24933 #. type: textblock
24934 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
24935 #: ../src/guestfs-actions.pod:843 ../src/guestfs-actions.pod:1167
24936 #: ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:2993
24937 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:5123
24938 #: ../src/guestfs-actions.pod:5340
24939 msgid ""
24940 "You may supply a list of optional arguments to this call.  Use zero or more "
24941 "of the following pairs of parameters, and terminate the list with C<-1> on "
24942 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
24943 msgstr ""
24944
24945 #. type: verbatim
24946 #: ../src/guestfs-actions.pod:53
24947 #, no-wrap
24948 msgid ""
24949 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24950 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24951 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24952 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24953 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24954 "\n"
24955 msgstr ""
24956
24957 #. type: textblock
24958 #: ../src/guestfs-actions.pod:59
24959 msgid ""
24960 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24961 "It works by connecting to libvirt, requesting the domain and domain XML from "
24962 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24963 "one."
24964 msgstr ""
24965
24966 #. type: textblock
24967 #: ../src/guestfs-actions.pod:94
24968 msgid ""
24969 "The other optional parameters are passed directly through to "
24970 "C<guestfs_add_drive_opts>."
24971 msgstr ""
24972
24973 #. type: textblock
24974 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:356
24975 #: ../src/guestfs-actions.pod:526 ../src/guestfs-actions.pod:704
24976 #: ../src/guestfs-actions.pod:735 ../src/guestfs-actions.pod:753
24977 #: ../src/guestfs-actions.pod:772 ../src/guestfs-actions.pod:1502
24978 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:2061
24979 #: ../src/guestfs-actions.pod:2172 ../src/guestfs-actions.pod:2223
24980 #: ../src/guestfs-actions.pod:2275 ../src/guestfs-actions.pod:2289
24981 #: ../src/guestfs-actions.pod:2312 ../src/guestfs-actions.pod:2627
24982 #: ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3129
24983 #: ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5519
24984 #: ../src/guestfs-actions.pod:5931 ../src/guestfs-actions.pod:5957
24985 #: ../src/guestfs-actions.pod:7369 ../src/guestfs-actions.pod:7795
24986 #: ../src/guestfs-actions.pod:7808 ../src/guestfs-actions.pod:7821
24987 msgid "On error this function returns -1."
24988 msgstr ""
24989
24990 #. type: textblock
24991 #: ../src/guestfs-actions.pod:99
24992 msgid "(Added in 1.7.4)"
24993 msgstr "(Додано у 1.7.4)"
24994
24995 #. type: =head2
24996 #: ../src/guestfs-actions.pod:101
24997 msgid "guestfs_add_domain_va"
24998 msgstr ""
24999
25000 #. type: verbatim
25001 #: ../src/guestfs-actions.pod:103
25002 #, no-wrap
25003 msgid ""
25004 " int\n"
25005 " guestfs_add_domain_va (guestfs_h *g,\n"
25006 "                        const char *dom,\n"
25007 "                        va_list args);\n"
25008 "\n"
25009 msgstr ""
25010
25011 #. type: textblock
25012 #: ../src/guestfs-actions.pod:108
25013 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25014 msgstr ""
25015
25016 #. type: textblock
25017 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
25018 #: ../src/guestfs-actions.pod:220 ../src/guestfs-actions.pod:231
25019 #: ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:893
25020 #: ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1208
25021 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1267
25022 #: ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3089
25023 #: ../src/guestfs-actions.pod:4879 ../src/guestfs-actions.pod:4891
25024 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5163
25025 #: ../src/guestfs-actions.pod:5389 ../src/guestfs-actions.pod:5400
25026 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25027 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25028
25029 #. type: =head2
25030 #: ../src/guestfs-actions.pod:112
25031 msgid "guestfs_add_domain_argv"
25032 msgstr "guestfs_add_domain_argv"
25033
25034 #. type: verbatim
25035 #: ../src/guestfs-actions.pod:114
25036 #, no-wrap
25037 msgid ""
25038 " int\n"
25039 " guestfs_add_domain_argv (guestfs_h *g,\n"
25040 "                          const char *dom,\n"
25041 "                          const struct guestfs_add_domain_argv *optargs);\n"
25042 "\n"
25043 msgstr ""
25044
25045 #. type: textblock
25046 #: ../src/guestfs-actions.pod:119
25047 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25048 msgstr ""
25049
25050 #. type: =head2
25051 #: ../src/guestfs-actions.pod:123
25052 msgid "guestfs_add_drive"
25053 msgstr ""
25054
25055 #. type: verbatim
25056 #: ../src/guestfs-actions.pod:125
25057 #, no-wrap
25058 msgid ""
25059 " int\n"
25060 " guestfs_add_drive (guestfs_h *g,\n"
25061 "                    const char *filename);\n"
25062 "\n"
25063 msgstr ""
25064
25065 #. type: textblock
25066 #: ../src/guestfs-actions.pod:129
25067 msgid ""
25068 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25069 "optional parameters, so the disk is added writable, with the format being "
25070 "detected automatically."
25071 msgstr ""
25072
25073 #. type: textblock
25074 #: ../src/guestfs-actions.pod:133
25075 msgid ""
25076 "Automatic detection of the format opens you up to a potential security hole "
25077 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25078 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25079 "you should think about replacing calls to this function with calls to "
25080 "C<guestfs_add_drive_opts>, and specifying the format."
25081 msgstr ""
25082
25083 #. type: =head2
25084 #: ../src/guestfs-actions.pod:144
25085 msgid "guestfs_add_drive_opts"
25086 msgstr ""
25087
25088 #. type: verbatim
25089 #: ../src/guestfs-actions.pod:146
25090 #, no-wrap
25091 msgid ""
25092 " int\n"
25093 " guestfs_add_drive_opts (guestfs_h *g,\n"
25094 "                         const char *filename,\n"
25095 "                         ...);\n"
25096 "\n"
25097 msgstr ""
25098
25099 #. type: verbatim
25100 #: ../src/guestfs-actions.pod:156
25101 #, no-wrap
25102 msgid ""
25103 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25104 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25105 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25106 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25107 "\n"
25108 msgstr ""
25109
25110 #. type: textblock
25111 #: ../src/guestfs-actions.pod:186
25112 msgid ""
25113 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25114 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25115 "Possible formats include C<raw> and C<qcow2>."
25116 msgstr ""
25117
25118 #. type: textblock
25119 #: ../src/guestfs-actions.pod:197
25120 msgid ""
25121 "This rarely-used option lets you emulate the behaviour of the deprecated "
25122 "C<guestfs_add_drive_with_if> call (q.v.)"
25123 msgstr ""
25124
25125 #. type: textblock
25126 #: ../src/guestfs-actions.pod:209
25127 msgid "(Added in 1.5.23)"
25128 msgstr "(Додано у 1.5.23)"
25129
25130 #. type: =head2
25131 #: ../src/guestfs-actions.pod:211
25132 msgid "guestfs_add_drive_opts_va"
25133 msgstr ""
25134
25135 #. type: verbatim
25136 #: ../src/guestfs-actions.pod:213
25137 #, no-wrap
25138 msgid ""
25139 " int\n"
25140 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25141 "                            const char *filename,\n"
25142 "                            va_list args);\n"
25143 "\n"
25144 msgstr ""
25145
25146 #. type: textblock
25147 #: ../src/guestfs-actions.pod:218
25148 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25149 msgstr ""
25150
25151 #. type: =head2
25152 #: ../src/guestfs-actions.pod:222
25153 msgid "guestfs_add_drive_opts_argv"
25154 msgstr ""
25155
25156 #. type: verbatim
25157 #: ../src/guestfs-actions.pod:224
25158 #, no-wrap
25159 msgid ""
25160 " int\n"
25161 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25162 "                              const char *filename,\n"
25163 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
25164 "\n"
25165 msgstr ""
25166
25167 #. type: textblock
25168 #: ../src/guestfs-actions.pod:229
25169 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25170 msgstr ""
25171
25172 #. type: =head2
25173 #: ../src/guestfs-actions.pod:233
25174 msgid "guestfs_add_drive_ro"
25175 msgstr ""
25176
25177 #. type: verbatim
25178 #: ../src/guestfs-actions.pod:235
25179 #, no-wrap
25180 msgid ""
25181 " int\n"
25182 " guestfs_add_drive_ro (guestfs_h *g,\n"
25183 "                       const char *filename);\n"
25184 "\n"
25185 msgstr ""
25186
25187 #. type: textblock
25188 #: ../src/guestfs-actions.pod:239
25189 msgid ""
25190 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25191 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25192 "disk is added read-only, with the format being detected automatically."
25193 msgstr ""
25194
25195 #. type: textblock
25196 #: ../src/guestfs-actions.pod:246
25197 msgid "(Added in 1.0.38)"
25198 msgstr "(Додано у 1.0.38)"
25199
25200 #. type: =head2
25201 #: ../src/guestfs-actions.pod:248
25202 msgid "guestfs_add_drive_ro_with_if"
25203 msgstr ""
25204
25205 #. type: verbatim
25206 #: ../src/guestfs-actions.pod:250
25207 #, no-wrap
25208 msgid ""
25209 " int\n"
25210 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25211 "                               const char *filename,\n"
25212 "                               const char *iface);\n"
25213 "\n"
25214 msgstr ""
25215
25216 #. type: textblock
25217 #: ../src/guestfs-actions.pod:262
25218 msgid ""
25219 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25220 "QEMU interface emulation to use at run time."
25221 msgstr ""
25222
25223 #. type: textblock
25224 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:288
25225 #: ../src/guestfs-actions.pod:2586
25226 msgid "(Added in 1.0.84)"
25227 msgstr "(Додано у 1.0.84)"
25228
25229 #. type: =head2
25230 #: ../src/guestfs-actions.pod:269
25231 msgid "guestfs_add_drive_with_if"
25232 msgstr ""
25233
25234 #. type: verbatim
25235 #: ../src/guestfs-actions.pod:271
25236 #, no-wrap
25237 msgid ""
25238 " int\n"
25239 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25240 "                            const char *filename,\n"
25241 "                            const char *iface);\n"
25242 "\n"
25243 msgstr ""
25244
25245 #. type: textblock
25246 #: ../src/guestfs-actions.pod:283
25247 msgid ""
25248 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25249 "QEMU interface emulation to use at run time."
25250 msgstr ""
25251
25252 #. type: =head2
25253 #: ../src/guestfs-actions.pod:290
25254 msgid "guestfs_aug_clear"
25255 msgstr ""
25256
25257 #. type: verbatim
25258 #: ../src/guestfs-actions.pod:292
25259 #, no-wrap
25260 msgid ""
25261 " int\n"
25262 " guestfs_aug_clear (guestfs_h *g,\n"
25263 "                    const char *augpath);\n"
25264 "\n"
25265 msgstr ""
25266
25267 #. type: textblock
25268 #: ../src/guestfs-actions.pod:301 ../src/guestfs-actions.pod:2314
25269 msgid "(Added in 1.3.4)"
25270 msgstr "(Додано у 1.3.4)"
25271
25272 #. type: =head2
25273 #: ../src/guestfs-actions.pod:303
25274 msgid "guestfs_aug_close"
25275 msgstr ""
25276
25277 #. type: verbatim
25278 #: ../src/guestfs-actions.pod:305
25279 #, no-wrap
25280 msgid ""
25281 " int\n"
25282 " guestfs_aug_close (guestfs_h *g);\n"
25283 "\n"
25284 msgstr ""
25285
25286 #. type: textblock
25287 #: ../src/guestfs-actions.pod:308
25288 msgid ""
25289 "Close the current Augeas handle and free up any resources used by it.  After "
25290 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25291 "any other Augeas functions."
25292 msgstr ""
25293
25294 #. type: textblock
25295 #: ../src/guestfs-actions.pod:315 ../src/guestfs-actions.pod:340
25296 #: ../src/guestfs-actions.pod:358 ../src/guestfs-actions.pod:372
25297 #: ../src/guestfs-actions.pod:435 ../src/guestfs-actions.pod:455
25298 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:500
25299 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:528
25300 #: ../src/guestfs-actions.pod:542 ../src/guestfs-actions.pod:560
25301 #: ../src/guestfs-actions.pod:6008
25302 msgid "(Added in 0.7)"
25303 msgstr "(Додано у 0.7)"
25304
25305 #. type: =head2
25306 #: ../src/guestfs-actions.pod:317
25307 msgid "guestfs_aug_defnode"
25308 msgstr ""
25309
25310 #. type: verbatim
25311 #: ../src/guestfs-actions.pod:319
25312 #, no-wrap
25313 msgid ""
25314 " struct guestfs_int_bool *\n"
25315 " guestfs_aug_defnode (guestfs_h *g,\n"
25316 "                      const char *name,\n"
25317 "                      const char *expr,\n"
25318 "                      const char *val);\n"
25319 "\n"
25320 msgstr ""
25321
25322 #. type: textblock
25323 #: ../src/guestfs-actions.pod:328
25324 msgid ""
25325 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25326 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25327 "containing that single node."
25328 msgstr ""
25329
25330 #. type: textblock
25331 #: ../src/guestfs-actions.pod:336
25332 msgid ""
25333 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25334 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25335 msgstr ""
25336
25337 #. type: =head2
25338 #: ../src/guestfs-actions.pod:342
25339 msgid "guestfs_aug_defvar"
25340 msgstr ""
25341
25342 #. type: verbatim
25343 #: ../src/guestfs-actions.pod:344
25344 #, no-wrap
25345 msgid ""
25346 " int\n"
25347 " guestfs_aug_defvar (guestfs_h *g,\n"
25348 "                     const char *name,\n"
25349 "                     const char *expr);\n"
25350 "\n"
25351 msgstr ""
25352
25353 #. type: =head2
25354 #: ../src/guestfs-actions.pod:360
25355 msgid "guestfs_aug_get"
25356 msgstr "guestfs_aug_get"
25357
25358 #. type: verbatim
25359 #: ../src/guestfs-actions.pod:362
25360 #, no-wrap
25361 msgid ""
25362 " char *\n"
25363 " guestfs_aug_get (guestfs_h *g,\n"
25364 "                  const char *augpath);\n"
25365 "\n"
25366 msgstr ""
25367 " char *\n"
25368 " guestfs_aug_get (guestfs_h *g,\n"
25369 "                  const char *augpath);\n"
25370 "\n"
25371
25372 #. type: textblock
25373 #: ../src/guestfs-actions.pod:369 ../src/guestfs-actions.pod:933
25374 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1011
25375 #: ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1130
25376 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1388
25377 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1541
25378 #: ../src/guestfs-actions.pod:1729 ../src/guestfs-actions.pod:1841
25379 #: ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:2021
25380 #: ../src/guestfs-actions.pod:2088 ../src/guestfs-actions.pod:2131
25381 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:2337
25382 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2755
25383 #: ../src/guestfs-actions.pod:2857 ../src/guestfs-actions.pod:2961
25384 #: ../src/guestfs-actions.pod:2980 ../src/guestfs-actions.pod:3195
25385 #: ../src/guestfs-actions.pod:3223 ../src/guestfs-actions.pod:3244
25386 #: ../src/guestfs-actions.pod:3278 ../src/guestfs-actions.pod:3341
25387 #: ../src/guestfs-actions.pod:3361 ../src/guestfs-actions.pod:3381
25388 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4361
25389 #: ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4641
25390 #: ../src/guestfs-actions.pod:5537 ../src/guestfs-actions.pod:5736
25391 #: ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:6084
25392 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6805
25393 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6845
25394 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:7543
25395 #: ../src/guestfs-actions.pod:7562 ../src/guestfs-actions.pod:7580
25396 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:8071
25397 msgid ""
25398 "This function returns a string, or NULL on error.  I<The caller must free "
25399 "the returned string after use>."
25400 msgstr ""
25401
25402 #. type: =head2
25403 #: ../src/guestfs-actions.pod:374
25404 msgid "guestfs_aug_init"
25405 msgstr "guestfs_aug_init"
25406
25407 #. type: verbatim
25408 #: ../src/guestfs-actions.pod:376
25409 #, no-wrap
25410 msgid ""
25411 " int\n"
25412 " guestfs_aug_init (guestfs_h *g,\n"
25413 "                   const char *root,\n"
25414 "                   int flags);\n"
25415 "\n"
25416 msgstr ""
25417 " int\n"
25418 " guestfs_aug_init (guestfs_h *g,\n"
25419 "                   const char *root,\n"
25420 "                   int flags);\n"
25421 "\n"
25422
25423 #. type: textblock
25424 #: ../src/guestfs-actions.pod:385
25425 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25426 msgstr ""
25427
25428 #. type: textblock
25429 #: ../src/guestfs-actions.pod:410
25430 msgid ""
25431 "This option is only useful when debugging Augeas lenses.  Use of this option "
25432 "may require additional memory for the libguestfs appliance.  You may need to "
25433 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25434 "C<guestfs_set_memsize>."
25435 msgstr ""
25436
25437 #. type: textblock
25438 #: ../src/guestfs-actions.pod:425
25439 msgid "Do not load the tree in C<guestfs_aug_init>."
25440 msgstr ""
25441
25442 #. type: textblock
25443 #: ../src/guestfs-actions.pod:429
25444 msgid "To close the handle, you can call C<guestfs_aug_close>."
25445 msgstr ""
25446
25447 #. type: =head2
25448 #: ../src/guestfs-actions.pod:437
25449 msgid "guestfs_aug_insert"
25450 msgstr "guestfs_aug_insert"
25451
25452 #. type: verbatim
25453 #: ../src/guestfs-actions.pod:439
25454 #, no-wrap
25455 msgid ""
25456 " int\n"
25457 " guestfs_aug_insert (guestfs_h *g,\n"
25458 "                     const char *augpath,\n"
25459 "                     const char *label,\n"
25460 "                     int before);\n"
25461 "\n"
25462 msgstr ""
25463 " int\n"
25464 " guestfs_aug_insert (guestfs_h *g,\n"
25465 "                     const char *augpath,\n"
25466 "                     const char *label,\n"
25467 "                     int before);\n"
25468 "\n"
25469
25470 #. type: =head2
25471 #: ../src/guestfs-actions.pod:457
25472 msgid "guestfs_aug_load"
25473 msgstr "guestfs_aug_load"
25474
25475 #. type: verbatim
25476 #: ../src/guestfs-actions.pod:459
25477 #, no-wrap
25478 msgid ""
25479 " int\n"
25480 " guestfs_aug_load (guestfs_h *g);\n"
25481 "\n"
25482 msgstr ""
25483 " int\n"
25484 " guestfs_aug_load (guestfs_h *g);\n"
25485 "\n"
25486
25487 #. type: =head2
25488 #: ../src/guestfs-actions.pod:471
25489 msgid "guestfs_aug_ls"
25490 msgstr "guestfs_aug_ls"
25491
25492 #. type: verbatim
25493 #: ../src/guestfs-actions.pod:473
25494 #, no-wrap
25495 msgid ""
25496 " char **\n"
25497 " guestfs_aug_ls (guestfs_h *g,\n"
25498 "                 const char *augpath);\n"
25499 "\n"
25500 msgstr ""
25501 " char **\n"
25502 " guestfs_aug_ls (guestfs_h *g,\n"
25503 "                 const char *augpath);\n"
25504 "\n"
25505
25506 #. type: textblock
25507 #: ../src/guestfs-actions.pod:477
25508 msgid ""
25509 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25510 "sorting the resulting nodes into alphabetical order."
25511 msgstr ""
25512
25513 #. type: textblock
25514 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:496
25515 #: ../src/guestfs-actions.pod:642 ../src/guestfs-actions.pod:1149
25516 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
25517 #: ../src/guestfs-actions.pod:1678 ../src/guestfs-actions.pod:1697
25518 #: ../src/guestfs-actions.pod:1943 ../src/guestfs-actions.pod:2409
25519 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:2444
25520 #: ../src/guestfs-actions.pod:2509 ../src/guestfs-actions.pod:2533
25521 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2653
25522 #: ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:3297
25523 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3891
25524 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3928
25525 #: ../src/guestfs-actions.pod:3990 ../src/guestfs-actions.pod:4095
25526 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:5260
25527 #: ../src/guestfs-actions.pod:5878 ../src/guestfs-actions.pod:6004
25528 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6885
25529 #: ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:7001
25530 #: ../src/guestfs-actions.pod:7147 ../src/guestfs-actions.pod:7171
25531 #: ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7667
25532 #: ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7908
25533 #: ../src/guestfs-actions.pod:7927 ../src/guestfs-actions.pod:8021
25534 #: ../src/guestfs-actions.pod:8040 ../src/guestfs-actions.pod:8086
25535 #: ../src/guestfs-actions.pod:8105
25536 msgid ""
25537 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25538 ">), or NULL if there was an error.  I<The caller must free the strings and "
25539 "the array after use>."
25540 msgstr ""
25541
25542 #. type: textblock
25543 #: ../src/guestfs-actions.pod:484 ../src/guestfs-actions.pod:1074
25544 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1613
25545 #: ../src/guestfs-actions.pod:3655 ../src/guestfs-actions.pod:3686
25546 #: ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4394
25547 #: ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4614
25548 #: ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:5264
25549 #: ../src/guestfs-actions.pod:5819 ../src/guestfs-actions.pod:6216
25550 #: ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6242
25551 #: ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:7385
25552 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7631
25553 #: ../src/guestfs-actions.pod:7896
25554 msgid "(Added in 0.8)"
25555 msgstr "(Додано у 0.8)"
25556
25557 #. type: =head2
25558 #: ../src/guestfs-actions.pod:486
25559 msgid "guestfs_aug_match"
25560 msgstr "guestfs_aug_match"
25561
25562 #. type: verbatim
25563 #: ../src/guestfs-actions.pod:488
25564 #, no-wrap
25565 msgid ""
25566 " char **\n"
25567 " guestfs_aug_match (guestfs_h *g,\n"
25568 "                    const char *augpath);\n"
25569 "\n"
25570 msgstr ""
25571 " char **\n"
25572 " guestfs_aug_match (guestfs_h *g,\n"
25573 "                    const char *augpath);\n"
25574 "\n"
25575
25576 #. type: =head2
25577 #: ../src/guestfs-actions.pod:502
25578 msgid "guestfs_aug_mv"
25579 msgstr "guestfs_aug_mv"
25580
25581 #. type: verbatim
25582 #: ../src/guestfs-actions.pod:504
25583 #, no-wrap
25584 msgid ""
25585 " int\n"
25586 " guestfs_aug_mv (guestfs_h *g,\n"
25587 "                 const char *src,\n"
25588 "                 const char *dest);\n"
25589 "\n"
25590 msgstr ""
25591 " int\n"
25592 " guestfs_aug_mv (guestfs_h *g,\n"
25593 "                 const char *src,\n"
25594 "                 const char *dest);\n"
25595 "\n"
25596
25597 #. type: =head2
25598 #: ../src/guestfs-actions.pod:516
25599 msgid "guestfs_aug_rm"
25600 msgstr "guestfs_aug_rm"
25601
25602 #. type: verbatim
25603 #: ../src/guestfs-actions.pod:518
25604 #, no-wrap
25605 msgid ""
25606 " int\n"
25607 " guestfs_aug_rm (guestfs_h *g,\n"
25608 "                 const char *augpath);\n"
25609 "\n"
25610 msgstr ""
25611 " int\n"
25612 " guestfs_aug_rm (guestfs_h *g,\n"
25613 "                 const char *augpath);\n"
25614 "\n"
25615
25616 #. type: =head2
25617 #: ../src/guestfs-actions.pod:530
25618 msgid "guestfs_aug_save"
25619 msgstr "guestfs_aug_save"
25620
25621 #. type: verbatim
25622 #: ../src/guestfs-actions.pod:532
25623 #, no-wrap
25624 msgid ""
25625 " int\n"
25626 " guestfs_aug_save (guestfs_h *g);\n"
25627 "\n"
25628 msgstr ""
25629 " int\n"
25630 " guestfs_aug_save (guestfs_h *g);\n"
25631 "\n"
25632
25633 #. type: textblock
25634 #: ../src/guestfs-actions.pod:537
25635 msgid ""
25636 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25637 "are saved."
25638 msgstr ""
25639
25640 #. type: =head2
25641 #: ../src/guestfs-actions.pod:544
25642 msgid "guestfs_aug_set"
25643 msgstr "guestfs_aug_set"
25644
25645 #. type: verbatim
25646 #: ../src/guestfs-actions.pod:546
25647 #, no-wrap
25648 msgid ""
25649 " int\n"
25650 " guestfs_aug_set (guestfs_h *g,\n"
25651 "                  const char *augpath,\n"
25652 "                  const char *val);\n"
25653 "\n"
25654 msgstr ""
25655 " int\n"
25656 " guestfs_aug_set (guestfs_h *g,\n"
25657 "                  const char *augpath,\n"
25658 "                  const char *val);\n"
25659 "\n"
25660
25661 #. type: textblock
25662 #: ../src/guestfs-actions.pod:553
25663 msgid ""
25664 "In the Augeas API, it is possible to clear a node by setting the value to "
25665 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25666 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25667 msgstr ""
25668
25669 #. type: =head2
25670 #: ../src/guestfs-actions.pod:562
25671 msgid "guestfs_available"
25672 msgstr "guestfs_available"
25673
25674 #. type: verbatim
25675 #: ../src/guestfs-actions.pod:564
25676 #, no-wrap
25677 msgid ""
25678 " int\n"
25679 " guestfs_available (guestfs_h *g,\n"
25680 "                    char *const *groups);\n"
25681 "\n"
25682 msgstr ""
25683 " int\n"
25684 " guestfs_available (guestfs_h *g,\n"
25685 "                    char *const *groups);\n"
25686 "\n"
25687
25688 #. type: textblock
25689 #: ../src/guestfs-actions.pod:572
25690 msgid ""
25691 "The libguestfs groups, and the functions that those groups correspond to, "
25692 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25693 "runtime by calling C<guestfs_available_all_groups>."
25694 msgstr ""
25695
25696 #. type: textblock
25697 #: ../src/guestfs-actions.pod:596
25698 msgid "You must call C<guestfs_launch> before calling this function."
25699 msgstr ""
25700
25701 #. type: textblock
25702 #: ../src/guestfs-actions.pod:618
25703 msgid ""
25704 "This call was added in version C<1.0.80>.  In previous versions of "
25705 "libguestfs all you could do would be to speculatively execute a command to "
25706 "find out if the daemon implemented it.  See also C<guestfs_version>."
25707 msgstr ""
25708
25709 #. type: textblock
25710 #: ../src/guestfs-actions.pod:627 ../src/guestfs-actions.pod:1358
25711 msgid "(Added in 1.0.80)"
25712 msgstr "(Додано у 1.0.80)"
25713
25714 #. type: =head2
25715 #: ../src/guestfs-actions.pod:629
25716 msgid "guestfs_available_all_groups"
25717 msgstr "guestfs_available_all_groups"
25718
25719 #. type: verbatim
25720 #: ../src/guestfs-actions.pod:631
25721 #, no-wrap
25722 msgid ""
25723 " char **\n"
25724 " guestfs_available_all_groups (guestfs_h *g);\n"
25725 "\n"
25726 msgstr ""
25727 " char **\n"
25728 " guestfs_available_all_groups (guestfs_h *g);\n"
25729 "\n"
25730
25731 #. type: textblock
25732 #: ../src/guestfs-actions.pod:634
25733 msgid ""
25734 "This command returns a list of all optional groups that this daemon knows "
25735 "about.  Note this returns both supported and unsupported groups.  To find "
25736 "out which ones the daemon can actually support you have to call "
25737 "C<guestfs_available> on each member of the returned list."
25738 msgstr ""
25739
25740 #. type: textblock
25741 #: ../src/guestfs-actions.pod:640
25742 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25743 msgstr ""
25744
25745 #. type: textblock
25746 #: ../src/guestfs-actions.pod:646
25747 msgid "(Added in 1.3.15)"
25748 msgstr "(Додано у 1.3.15)"
25749
25750 #. type: =head2
25751 #: ../src/guestfs-actions.pod:648
25752 msgid "guestfs_base64_in"
25753 msgstr "guestfs_base64_in"
25754
25755 #. type: verbatim
25756 #: ../src/guestfs-actions.pod:650
25757 #, no-wrap
25758 msgid ""
25759 " int\n"
25760 " guestfs_base64_in (guestfs_h *g,\n"
25761 "                    const char *base64file,\n"
25762 "                    const char *filename);\n"
25763 "\n"
25764 msgstr ""
25765 " int\n"
25766 " guestfs_base64_in (guestfs_h *g,\n"
25767 "                    const char *base64file,\n"
25768 "                    const char *filename);\n"
25769 "\n"
25770
25771 #. type: textblock
25772 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:674
25773 msgid "(Added in 1.3.5)"
25774 msgstr "(Додано у 1.3.5)"
25775
25776 #. type: =head2
25777 #: ../src/guestfs-actions.pod:662
25778 msgid "guestfs_base64_out"
25779 msgstr "guestfs_base64_out"
25780
25781 #. type: verbatim
25782 #: ../src/guestfs-actions.pod:664
25783 #, no-wrap
25784 msgid ""
25785 " int\n"
25786 " guestfs_base64_out (guestfs_h *g,\n"
25787 "                     const char *filename,\n"
25788 "                     const char *base64file);\n"
25789 "\n"
25790 msgstr ""
25791 " int\n"
25792 " guestfs_base64_out (guestfs_h *g,\n"
25793 "                     const char *filename,\n"
25794 "                     const char *base64file);\n"
25795 "\n"
25796
25797 #. type: =head2
25798 #: ../src/guestfs-actions.pod:676
25799 msgid "guestfs_blockdev_flushbufs"
25800 msgstr "guestfs_blockdev_flushbufs"
25801
25802 #. type: verbatim
25803 #: ../src/guestfs-actions.pod:678
25804 #, no-wrap
25805 msgid ""
25806 " int\n"
25807 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25808 "                             const char *device);\n"
25809 "\n"
25810 msgstr ""
25811 " int\n"
25812 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25813 "                             const char *device);\n"
25814 "\n"
25815
25816 #. type: textblock
25817 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:706
25818 #: ../src/guestfs-actions.pod:721 ../src/guestfs-actions.pod:737
25819 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:774
25820 #: ../src/guestfs-actions.pod:788 ../src/guestfs-actions.pod:806
25821 #: ../src/guestfs-actions.pod:820 ../src/guestfs-actions.pod:834
25822 msgid "(Added in 0.9.3)"
25823 msgstr "(Додано у 0.9.3)"
25824
25825 #. type: =head2
25826 #: ../src/guestfs-actions.pod:691
25827 msgid "guestfs_blockdev_getbsz"
25828 msgstr "guestfs_blockdev_getbsz"
25829
25830 #. type: verbatim
25831 #: ../src/guestfs-actions.pod:693
25832 #, no-wrap
25833 msgid ""
25834 " int\n"
25835 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25836 "                          const char *device);\n"
25837 "\n"
25838 msgstr ""
25839 " int\n"
25840 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25841 "                          const char *device);\n"
25842 "\n"
25843
25844 #. type: =head2
25845 #: ../src/guestfs-actions.pod:708
25846 msgid "guestfs_blockdev_getro"
25847 msgstr "guestfs_blockdev_getro"
25848
25849 #. type: verbatim
25850 #: ../src/guestfs-actions.pod:710
25851 #, no-wrap
25852 msgid ""
25853 " int\n"
25854 " guestfs_blockdev_getro (guestfs_h *g,\n"
25855 "                         const char *device);\n"
25856 "\n"
25857 msgstr ""
25858 " int\n"
25859 " guestfs_blockdev_getro (guestfs_h *g,\n"
25860 "                         const char *device);\n"
25861 "\n"
25862
25863 #. type: textblock
25864 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:1596
25865 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:2100
25866 #: ../src/guestfs-actions.pod:2111 ../src/guestfs-actions.pod:2183
25867 #: ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2249
25868 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2300
25869 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:3398
25870 #: ../src/guestfs-actions.pod:3414 ../src/guestfs-actions.pod:3432
25871 #: ../src/guestfs-actions.pod:3594 ../src/guestfs-actions.pod:3608
25872 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637
25873 #: ../src/guestfs-actions.pod:3653 ../src/guestfs-actions.pod:3668
25874 #: ../src/guestfs-actions.pod:3684 ../src/guestfs-actions.pod:3698
25875 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3725
25876 #: ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:3755
25877 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3782
25878 #: ../src/guestfs-actions.pod:5501
25879 msgid "This function returns a C truth value on success or -1 on error."
25880 msgstr ""
25881
25882 #. type: =head2
25883 #: ../src/guestfs-actions.pod:723
25884 msgid "guestfs_blockdev_getsize64"
25885 msgstr "guestfs_blockdev_getsize64"
25886
25887 #. type: verbatim
25888 #: ../src/guestfs-actions.pod:725
25889 #, no-wrap
25890 msgid ""
25891 " int64_t\n"
25892 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25893 "                             const char *device);\n"
25894 "\n"
25895 msgstr ""
25896 " int64_t\n"
25897 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25898 "                             const char *device);\n"
25899 "\n"
25900
25901 #. type: textblock
25902 #: ../src/guestfs-actions.pod:731
25903 msgid "See also C<guestfs_blockdev_getsz>."
25904 msgstr ""
25905
25906 #. type: =head2
25907 #: ../src/guestfs-actions.pod:739
25908 msgid "guestfs_blockdev_getss"
25909 msgstr "guestfs_blockdev_getss"
25910
25911 #. type: verbatim
25912 #: ../src/guestfs-actions.pod:741
25913 #, no-wrap
25914 msgid ""
25915 " int\n"
25916 " guestfs_blockdev_getss (guestfs_h *g,\n"
25917 "                         const char *device);\n"
25918 "\n"
25919 msgstr ""
25920 " int\n"
25921 " guestfs_blockdev_getss (guestfs_h *g,\n"
25922 "                         const char *device);\n"
25923 "\n"
25924
25925 #. type: textblock
25926 #: ../src/guestfs-actions.pod:748
25927 msgid ""
25928 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25929 "that)."
25930 msgstr ""
25931
25932 #. type: =head2
25933 #: ../src/guestfs-actions.pod:757
25934 msgid "guestfs_blockdev_getsz"
25935 msgstr "guestfs_blockdev_getsz"
25936
25937 #. type: verbatim
25938 #: ../src/guestfs-actions.pod:759
25939 #, no-wrap
25940 msgid ""
25941 " int64_t\n"
25942 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25943 "                         const char *device);\n"
25944 "\n"
25945 msgstr ""
25946 " int64_t\n"
25947 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25948 "                         const char *device);\n"
25949 "\n"
25950
25951 #. type: textblock
25952 #: ../src/guestfs-actions.pod:766
25953 msgid ""
25954 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25955 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25956 msgstr ""
25957
25958 #. type: =head2
25959 #: ../src/guestfs-actions.pod:776
25960 msgid "guestfs_blockdev_rereadpt"
25961 msgstr "guestfs_blockdev_rereadpt"
25962
25963 #. type: verbatim
25964 #: ../src/guestfs-actions.pod:778
25965 #, no-wrap
25966 msgid ""
25967 " int\n"
25968 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25969 "                            const char *device);\n"
25970 "\n"
25971 msgstr ""
25972 " int\n"
25973 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25974 "                            const char *device);\n"
25975 "\n"
25976
25977 #. type: =head2
25978 #: ../src/guestfs-actions.pod:790
25979 msgid "guestfs_blockdev_setbsz"
25980 msgstr "guestfs_blockdev_setbsz"
25981
25982 #. type: verbatim
25983 #: ../src/guestfs-actions.pod:792
25984 #, no-wrap
25985 msgid ""
25986 " int\n"
25987 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25988 "                          const char *device,\n"
25989 "                          int blocksize);\n"
25990 "\n"
25991 msgstr ""
25992 " int\n"
25993 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25994 "                          const char *device,\n"
25995 "                          int blocksize);\n"
25996 "\n"
25997
25998 #. type: =head2
25999 #: ../src/guestfs-actions.pod:808
26000 msgid "guestfs_blockdev_setro"
26001 msgstr "guestfs_blockdev_setro"
26002
26003 #. type: verbatim
26004 #: ../src/guestfs-actions.pod:810
26005 #, no-wrap
26006 msgid ""
26007 " int\n"
26008 " guestfs_blockdev_setro (guestfs_h *g,\n"
26009 "                         const char *device);\n"
26010 "\n"
26011 msgstr ""
26012 " int\n"
26013 " guestfs_blockdev_setro (guestfs_h *g,\n"
26014 "                         const char *device);\n"
26015 "\n"
26016
26017 #. type: =head2
26018 #: ../src/guestfs-actions.pod:822
26019 msgid "guestfs_blockdev_setrw"
26020 msgstr "guestfs_blockdev_setrw"
26021
26022 #. type: verbatim
26023 #: ../src/guestfs-actions.pod:824
26024 #, no-wrap
26025 msgid ""
26026 " int\n"
26027 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26028 "                         const char *device);\n"
26029 "\n"
26030 msgstr ""
26031 " int\n"
26032 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26033 "                         const char *device);\n"
26034 "\n"
26035
26036 #. type: =head2
26037 #: ../src/guestfs-actions.pod:836
26038 msgid "guestfs_btrfs_filesystem_resize"
26039 msgstr "guestfs_btrfs_filesystem_resize"
26040
26041 #. type: verbatim
26042 #: ../src/guestfs-actions.pod:838
26043 #, no-wrap
26044 msgid ""
26045 " int\n"
26046 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26047 "                                  const char *mountpoint,\n"
26048 "                                  ...);\n"
26049 "\n"
26050 msgstr ""
26051 " int\n"
26052 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26053 "                                  const char *mountpoint,\n"
26054 "                                  ...);\n"
26055 "\n"
26056
26057 #. type: verbatim
26058 #: ../src/guestfs-actions.pod:848
26059 #, no-wrap
26060 msgid ""
26061 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26062 "\n"
26063 msgstr ""
26064 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26065 "\n"
26066
26067 #. type: textblock
26068 #: ../src/guestfs-actions.pod:871
26069 msgid "(Added in 1.11.17)"
26070 msgstr "(Додано у 1.11.17)"
26071
26072 #. type: =head2
26073 #: ../src/guestfs-actions.pod:873
26074 msgid "guestfs_btrfs_filesystem_resize_va"
26075 msgstr "guestfs_btrfs_filesystem_resize_va"
26076
26077 #. type: verbatim
26078 #: ../src/guestfs-actions.pod:875
26079 #, no-wrap
26080 msgid ""
26081 " int\n"
26082 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26083 "                                     const char *mountpoint,\n"
26084 "                                     va_list args);\n"
26085 "\n"
26086 msgstr ""
26087 " int\n"
26088 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26089 "                                     const char *mountpoint,\n"
26090 "                                     va_list args);\n"
26091 "\n"
26092
26093 #. type: textblock
26094 #: ../src/guestfs-actions.pod:880
26095 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26096 msgstr ""
26097
26098 #. type: =head2
26099 #: ../src/guestfs-actions.pod:884
26100 msgid "guestfs_btrfs_filesystem_resize_argv"
26101 msgstr "guestfs_btrfs_filesystem_resize_argv"
26102
26103 #. type: verbatim
26104 #: ../src/guestfs-actions.pod:886
26105 #, no-wrap
26106 msgid ""
26107 " int\n"
26108 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26109 "                                       const char *mountpoint,\n"
26110 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26111 "\n"
26112 msgstr ""
26113 " int\n"
26114 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26115 "                                       const char *mountpoint,\n"
26116 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26117 "\n"
26118
26119 #. type: textblock
26120 #: ../src/guestfs-actions.pod:891
26121 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26122 msgstr ""
26123
26124 #. type: =head2
26125 #: ../src/guestfs-actions.pod:895
26126 msgid "guestfs_case_sensitive_path"
26127 msgstr ""
26128
26129 #. type: verbatim
26130 #: ../src/guestfs-actions.pod:897
26131 #, no-wrap
26132 msgid ""
26133 " char *\n"
26134 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26135 "                              const char *path);\n"
26136 "\n"
26137 msgstr ""
26138
26139 #. type: textblock
26140 #: ../src/guestfs-actions.pod:923
26141 msgid ""
26142 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
26143 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26144 "how the directories were originally created under Windows)."
26145 msgstr ""
26146
26147 #. type: textblock
26148 #: ../src/guestfs-actions.pod:931
26149 msgid "See also C<guestfs_realpath>."
26150 msgstr ""
26151
26152 #. type: textblock
26153 #: ../src/guestfs-actions.pod:936 ../src/guestfs-actions.pod:7565
26154 msgid "(Added in 1.0.75)"
26155 msgstr "(Додано у 1.0.75)"
26156
26157 #. type: =head2
26158 #: ../src/guestfs-actions.pod:938
26159 msgid "guestfs_cat"
26160 msgstr ""
26161
26162 #. type: verbatim
26163 #: ../src/guestfs-actions.pod:940
26164 #, no-wrap
26165 msgid ""
26166 " char *\n"
26167 " guestfs_cat (guestfs_h *g,\n"
26168 "              const char *path);\n"
26169 "\n"
26170 msgstr ""
26171
26172 #. type: textblock
26173 #: ../src/guestfs-actions.pod:946
26174 msgid ""
26175 "Note that this function cannot correctly handle binary files (specifically, "
26176 "files containing C<\\0> character which is treated as end of string).  For "
26177 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26178 "functions which have a more complex interface."
26179 msgstr ""
26180
26181 #. type: textblock
26182 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:3912
26183 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4011
26184 #: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:4507
26185 #: ../src/guestfs-actions.pod:4521 ../src/guestfs-actions.pod:5882
26186 #: ../src/guestfs-actions.pod:5896 ../src/guestfs-actions.pod:7718
26187 #: ../src/guestfs-actions.pod:7732
26188 msgid "(Added in 0.4)"
26189 msgstr "(Додано у 0.4)"
26190
26191 #. type: =head2
26192 #: ../src/guestfs-actions.pod:959
26193 msgid "guestfs_checksum"
26194 msgstr ""
26195
26196 #. type: verbatim
26197 #: ../src/guestfs-actions.pod:961
26198 #, no-wrap
26199 msgid ""
26200 " char *\n"
26201 " guestfs_checksum (guestfs_h *g,\n"
26202 "                   const char *csumtype,\n"
26203 "                   const char *path);\n"
26204 "\n"
26205 msgstr ""
26206
26207 #. type: textblock
26208 #: ../src/guestfs-actions.pod:1007
26209 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26210 msgstr ""
26211
26212 #. type: textblock
26213 #: ../src/guestfs-actions.pod:1009
26214 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26215 msgstr ""
26216
26217 #. type: textblock
26218 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1433
26219 #: ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:3610
26220 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3700
26221 #: ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:7421
26222 msgid "(Added in 1.0.2)"
26223 msgstr "(Додано у 1.0.2)"
26224
26225 #. type: =head2
26226 #: ../src/guestfs-actions.pod:1016
26227 msgid "guestfs_checksum_device"
26228 msgstr ""
26229
26230 #. type: verbatim
26231 #: ../src/guestfs-actions.pod:1018
26232 #, no-wrap
26233 msgid ""
26234 " char *\n"
26235 " guestfs_checksum_device (guestfs_h *g,\n"
26236 "                          const char *csumtype,\n"
26237 "                          const char *device);\n"
26238 "\n"
26239 msgstr ""
26240
26241 #. type: textblock
26242 #: ../src/guestfs-actions.pod:1023
26243 msgid ""
26244 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26245 "device named C<device>.  For the types of checksums supported see the "
26246 "C<guestfs_checksum> command."
26247 msgstr ""
26248
26249 #. type: textblock
26250 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:5331
26251 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5503
26252 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5703
26253 #: ../src/guestfs-actions.pod:7330 ../src/guestfs-actions.pod:7344
26254 #: ../src/guestfs-actions.pod:7744
26255 msgid "(Added in 1.3.2)"
26256 msgstr "(Додано у 1.3.2)"
26257
26258 #. type: =head2
26259 #: ../src/guestfs-actions.pod:1032
26260 msgid "guestfs_checksums_out"
26261 msgstr ""
26262
26263 #. type: verbatim
26264 #: ../src/guestfs-actions.pod:1034
26265 #, no-wrap
26266 msgid ""
26267 " int\n"
26268 " guestfs_checksums_out (guestfs_h *g,\n"
26269 "                        const char *csumtype,\n"
26270 "                        const char *directory,\n"
26271 "                        const char *sumsfile);\n"
26272 "\n"
26273 msgstr ""
26274
26275 #. type: textblock
26276 #: ../src/guestfs-actions.pod:1054
26277 msgid "(Added in 1.3.7)"
26278 msgstr "(Додано у 1.3.7)"
26279
26280 #. type: =head2
26281 #: ../src/guestfs-actions.pod:1056
26282 msgid "guestfs_chmod"
26283 msgstr ""
26284
26285 #. type: verbatim
26286 #: ../src/guestfs-actions.pod:1058
26287 #, no-wrap
26288 msgid ""
26289 " int\n"
26290 " guestfs_chmod (guestfs_h *g,\n"
26291 "                int mode,\n"
26292 "                const char *path);\n"
26293 "\n"
26294 msgstr ""
26295
26296 #. type: =head2
26297 #: ../src/guestfs-actions.pod:1076
26298 msgid "guestfs_chown"
26299 msgstr ""
26300
26301 #. type: verbatim
26302 #: ../src/guestfs-actions.pod:1078
26303 #, no-wrap
26304 msgid ""
26305 " int\n"
26306 " guestfs_chown (guestfs_h *g,\n"
26307 "                int owner,\n"
26308 "                int group,\n"
26309 "                const char *path);\n"
26310 "\n"
26311 msgstr ""
26312
26313 #. type: =head2
26314 #: ../src/guestfs-actions.pod:1094
26315 msgid "guestfs_command"
26316 msgstr ""
26317
26318 #. type: verbatim
26319 #: ../src/guestfs-actions.pod:1096
26320 #, no-wrap
26321 msgid ""
26322 " char *\n"
26323 " guestfs_command (guestfs_h *g,\n"
26324 "                  char *const *arguments);\n"
26325 "\n"
26326 msgstr ""
26327
26328 #. type: textblock
26329 #: ../src/guestfs-actions.pod:1105
26330 msgid ""
26331 "The single parameter is an argv-style list of arguments.  The first element "
26332 "is the name of the program to run.  Subsequent elements are parameters.  The "
26333 "list must be non-empty (ie. must contain a program name).  Note that the "
26334 "command runs directly, and is I<not> invoked via the shell (see "
26335 "C<guestfs_sh>)."
26336 msgstr ""
26337
26338 #. type: textblock
26339 #: ../src/guestfs-actions.pod:1136 ../src/guestfs-actions.pod:1156
26340 #: ../src/guestfs-actions.pod:1732
26341 msgid "(Added in 0.9.1)"
26342 msgstr "(Додано у 0.9.1)"
26343
26344 #. type: =head2
26345 #: ../src/guestfs-actions.pod:1138
26346 msgid "guestfs_command_lines"
26347 msgstr ""
26348
26349 #. type: verbatim
26350 #: ../src/guestfs-actions.pod:1140
26351 #, no-wrap
26352 msgid ""
26353 " char **\n"
26354 " guestfs_command_lines (guestfs_h *g,\n"
26355 "                        char *const *arguments);\n"
26356 "\n"
26357 msgstr ""
26358
26359 #. type: textblock
26360 #: ../src/guestfs-actions.pod:1144
26361 msgid ""
26362 "This is the same as C<guestfs_command>, but splits the result into a list of "
26363 "lines."
26364 msgstr ""
26365
26366 #. type: textblock
26367 #: ../src/guestfs-actions.pod:1147
26368 msgid "See also: C<guestfs_sh_lines>"
26369 msgstr ""
26370
26371 #. type: =head2
26372 #: ../src/guestfs-actions.pod:1158
26373 msgid "guestfs_compress_device_out"
26374 msgstr ""
26375
26376 #. type: verbatim
26377 #: ../src/guestfs-actions.pod:1160
26378 #, no-wrap
26379 msgid ""
26380 " int\n"
26381 " guestfs_compress_device_out (guestfs_h *g,\n"
26382 "                              const char *ctype,\n"
26383 "                              const char *device,\n"
26384 "                              const char *zdevice,\n"
26385 "                              ...);\n"
26386 "\n"
26387 msgstr ""
26388
26389 #. type: verbatim
26390 #: ../src/guestfs-actions.pod:1172
26391 #, no-wrap
26392 msgid ""
26393 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26394 "\n"
26395 msgstr ""
26396
26397 #. type: textblock
26398 #: ../src/guestfs-actions.pod:1177
26399 msgid ""
26400 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26401 "C<guestfs_compress_out>."
26402 msgstr ""
26403
26404 #. type: textblock
26405 #: ../src/guestfs-actions.pod:1182 ../src/guestfs-actions.pod:1241
26406 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:6602
26407 msgid "(Added in 1.13.15)"
26408 msgstr ""
26409
26410 #. type: =head2
26411 #: ../src/guestfs-actions.pod:1184
26412 msgid "guestfs_compress_device_out_va"
26413 msgstr ""
26414
26415 #. type: verbatim
26416 #: ../src/guestfs-actions.pod:1186
26417 #, no-wrap
26418 msgid ""
26419 " int\n"
26420 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26421 "                                 const char *ctype,\n"
26422 "                                 const char *device,\n"
26423 "                                 const char *zdevice,\n"
26424 "                                 va_list args);\n"
26425 "\n"
26426 msgstr ""
26427
26428 #. type: textblock
26429 #: ../src/guestfs-actions.pod:1193
26430 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26431 msgstr ""
26432
26433 #. type: =head2
26434 #: ../src/guestfs-actions.pod:1197
26435 msgid "guestfs_compress_device_out_argv"
26436 msgstr ""
26437
26438 #. type: verbatim
26439 #: ../src/guestfs-actions.pod:1199
26440 #, no-wrap
26441 msgid ""
26442 " int\n"
26443 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26444 "                                   const char *ctype,\n"
26445 "                                   const char *device,\n"
26446 "                                   const char *zdevice,\n"
26447 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
26448 "\n"
26449 msgstr ""
26450
26451 #. type: textblock
26452 #: ../src/guestfs-actions.pod:1206
26453 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26454 msgstr ""
26455
26456 #. type: =head2
26457 #: ../src/guestfs-actions.pod:1210
26458 msgid "guestfs_compress_out"
26459 msgstr ""
26460
26461 #. type: verbatim
26462 #: ../src/guestfs-actions.pod:1212
26463 #, no-wrap
26464 msgid ""
26465 " int\n"
26466 " guestfs_compress_out (guestfs_h *g,\n"
26467 "                       const char *ctype,\n"
26468 "                       const char *file,\n"
26469 "                       const char *zfile,\n"
26470 "                       ...);\n"
26471 "\n"
26472 msgstr ""
26473
26474 #. type: verbatim
26475 #: ../src/guestfs-actions.pod:1224
26476 #, no-wrap
26477 msgid ""
26478 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26479 "\n"
26480 msgstr ""
26481
26482 #. type: =head2
26483 #: ../src/guestfs-actions.pod:1243
26484 msgid "guestfs_compress_out_va"
26485 msgstr ""
26486
26487 #. type: verbatim
26488 #: ../src/guestfs-actions.pod:1245
26489 #, no-wrap
26490 msgid ""
26491 " int\n"
26492 " guestfs_compress_out_va (guestfs_h *g,\n"
26493 "                          const char *ctype,\n"
26494 "                          const char *file,\n"
26495 "                          const char *zfile,\n"
26496 "                          va_list args);\n"
26497 "\n"
26498 msgstr ""
26499
26500 #. type: textblock
26501 #: ../src/guestfs-actions.pod:1252
26502 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26503 msgstr ""
26504
26505 #. type: =head2
26506 #: ../src/guestfs-actions.pod:1256
26507 msgid "guestfs_compress_out_argv"
26508 msgstr ""
26509
26510 #. type: verbatim
26511 #: ../src/guestfs-actions.pod:1258
26512 #, no-wrap
26513 msgid ""
26514 " int\n"
26515 " guestfs_compress_out_argv (guestfs_h *g,\n"
26516 "                            const char *ctype,\n"
26517 "                            const char *file,\n"
26518 "                            const char *zfile,\n"
26519 "                            const struct guestfs_compress_out_argv *optargs);\n"
26520 "\n"
26521 msgstr ""
26522
26523 #. type: textblock
26524 #: ../src/guestfs-actions.pod:1265
26525 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26526 msgstr ""
26527
26528 #. type: =head2
26529 #: ../src/guestfs-actions.pod:1269
26530 msgid "guestfs_config"
26531 msgstr ""
26532
26533 #. type: verbatim
26534 #: ../src/guestfs-actions.pod:1271
26535 #, no-wrap
26536 msgid ""
26537 " int\n"
26538 " guestfs_config (guestfs_h *g,\n"
26539 "                 const char *qemuparam,\n"
26540 "                 const char *qemuvalue);\n"
26541 "\n"
26542 msgstr ""
26543
26544 #. type: =head2
26545 #: ../src/guestfs-actions.pod:1289
26546 msgid "guestfs_copy_size"
26547 msgstr ""
26548
26549 #. type: verbatim
26550 #: ../src/guestfs-actions.pod:1291
26551 #, no-wrap
26552 msgid ""
26553 " int\n"
26554 " guestfs_copy_size (guestfs_h *g,\n"
26555 "                    const char *src,\n"
26556 "                    const char *dest,\n"
26557 "                    int64_t size);\n"
26558 "\n"
26559 msgstr ""
26560
26561 #. type: textblock
26562 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1428
26563 #: ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1504
26564 #: ../src/guestfs-actions.pod:1881 ../src/guestfs-actions.pod:1903
26565 #: ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:7416
26566 #: ../src/guestfs-actions.pod:7450 ../src/guestfs-actions.pod:7957
26567 #: ../src/guestfs-actions.pod:7980
26568 msgid ""
26569 "This long-running command can generate progress notification messages so "
26570 "that the caller can display a progress bar or indicator.  To receive these "
26571 "messages, the caller must register a progress event callback.  See L<guestfs"
26572 "(3)/GUESTFS_EVENT_PROGRESS>."
26573 msgstr ""
26574
26575 #. type: textblock
26576 #: ../src/guestfs-actions.pod:1310 ../src/guestfs-actions.pod:4534
26577 #: ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:7651
26578 #: ../src/guestfs-actions.pod:7671 ../src/guestfs-actions.pod:7757
26579 msgid "(Added in 1.0.87)"
26580 msgstr "(Додано у 1.0.87)"
26581
26582 #. type: =head2
26583 #: ../src/guestfs-actions.pod:1312
26584 msgid "guestfs_cp"
26585 msgstr ""
26586
26587 #. type: verbatim
26588 #: ../src/guestfs-actions.pod:1314
26589 #, no-wrap
26590 msgid ""
26591 " int\n"
26592 " guestfs_cp (guestfs_h *g,\n"
26593 "             const char *src,\n"
26594 "             const char *dest);\n"
26595 "\n"
26596 msgstr ""
26597
26598 #. type: textblock
26599 #: ../src/guestfs-actions.pod:1324 ../src/guestfs-actions.pod:1338
26600 #: ../src/guestfs-actions.pod:1410 ../src/guestfs-actions.pod:1484
26601 #: ../src/guestfs-actions.pod:1598 ../src/guestfs-actions.pod:5278
26602 #: ../src/guestfs-actions.pod:5753
26603 msgid "(Added in 1.0.18)"
26604 msgstr "(Додано у 1.0.18)"
26605
26606 #. type: =head2
26607 #: ../src/guestfs-actions.pod:1326
26608 msgid "guestfs_cp_a"
26609 msgstr ""
26610
26611 #. type: verbatim
26612 #: ../src/guestfs-actions.pod:1328
26613 #, no-wrap
26614 msgid ""
26615 " int\n"
26616 " guestfs_cp_a (guestfs_h *g,\n"
26617 "               const char *src,\n"
26618 "               const char *dest);\n"
26619 "\n"
26620 msgstr ""
26621
26622 #. type: =head2
26623 #: ../src/guestfs-actions.pod:1340
26624 msgid "guestfs_dd"
26625 msgstr ""
26626
26627 #. type: verbatim
26628 #: ../src/guestfs-actions.pod:1342
26629 #, no-wrap
26630 msgid ""
26631 " int\n"
26632 " guestfs_dd (guestfs_h *g,\n"
26633 "             const char *src,\n"
26634 "             const char *dest);\n"
26635 "\n"
26636 msgstr ""
26637
26638 #. type: textblock
26639 #: ../src/guestfs-actions.pod:1352
26640 msgid ""
26641 "If the destination is a device, it must be as large or larger than the "
26642 "source file or device, otherwise the copy will fail.  This command cannot do "
26643 "partial copies (see C<guestfs_copy_size>)."
26644 msgstr ""
26645
26646 #. type: =head2
26647 #: ../src/guestfs-actions.pod:1360
26648 msgid "guestfs_df"
26649 msgstr ""
26650
26651 #. type: verbatim
26652 #: ../src/guestfs-actions.pod:1362
26653 #, no-wrap
26654 msgid ""
26655 " char *\n"
26656 " guestfs_df (guestfs_h *g);\n"
26657 "\n"
26658 msgstr ""
26659
26660 #. type: textblock
26661 #: ../src/guestfs-actions.pod:1367 ../src/guestfs-actions.pod:1384
26662 msgid ""
26663 "This command is mostly useful for interactive sessions.  It is I<not> "
26664 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
26665 "from programs."
26666 msgstr ""
26667
26668 #. type: textblock
26669 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1391
26670 #: ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:2516
26671 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2608
26672 #: ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:5178
26673 #: ../src/guestfs-actions.pod:7154 ../src/guestfs-actions.pod:7178
26674 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7810
26675 #: ../src/guestfs-actions.pod:7823
26676 msgid "(Added in 1.0.54)"
26677 msgstr "(Додано у 1.0.54)"
26678
26679 #. type: =head2
26680 #: ../src/guestfs-actions.pod:1376
26681 msgid "guestfs_df_h"
26682 msgstr ""
26683
26684 #. type: verbatim
26685 #: ../src/guestfs-actions.pod:1378
26686 #, no-wrap
26687 msgid ""
26688 " char *\n"
26689 " guestfs_df_h (guestfs_h *g);\n"
26690 "\n"
26691 msgstr ""
26692
26693 #. type: =head2
26694 #: ../src/guestfs-actions.pod:1393
26695 msgid "guestfs_dmesg"
26696 msgstr ""
26697
26698 #. type: verbatim
26699 #: ../src/guestfs-actions.pod:1395
26700 #, no-wrap
26701 msgid ""
26702 " char *\n"
26703 " guestfs_dmesg (guestfs_h *g);\n"
26704 "\n"
26705 msgstr ""
26706
26707 #. type: textblock
26708 #: ../src/guestfs-actions.pod:1402
26709 msgid ""
26710 "Another way to get the same information is to enable verbose messages with "
26711 "C<guestfs_set_verbose> or by setting the environment variable "
26712 "C<LIBGUESTFS_DEBUG=1> before running the program."
26713 msgstr ""
26714
26715 #. type: =head2
26716 #: ../src/guestfs-actions.pod:1412
26717 msgid "guestfs_download"
26718 msgstr ""
26719
26720 #. type: verbatim
26721 #: ../src/guestfs-actions.pod:1414
26722 #, no-wrap
26723 msgid ""
26724 " int\n"
26725 " guestfs_download (guestfs_h *g,\n"
26726 "                   const char *remotefilename,\n"
26727 "                   const char *filename);\n"
26728 "\n"
26729 msgstr ""
26730
26731 #. type: textblock
26732 #: ../src/guestfs-actions.pod:1424
26733 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26734 msgstr ""
26735
26736 #. type: =head2
26737 #: ../src/guestfs-actions.pod:1435
26738 msgid "guestfs_download_offset"
26739 msgstr ""
26740
26741 #. type: verbatim
26742 #: ../src/guestfs-actions.pod:1437
26743 #, no-wrap
26744 msgid ""
26745 " int\n"
26746 " guestfs_download_offset (guestfs_h *g,\n"
26747 "                          const char *remotefilename,\n"
26748 "                          const char *filename,\n"
26749 "                          int64_t offset,\n"
26750 "                          int64_t size);\n"
26751 "\n"
26752 msgstr ""
26753
26754 #. type: textblock
26755 #: ../src/guestfs-actions.pod:1450
26756 msgid ""
26757 "Note that there is no limit on the amount of data that can be downloaded "
26758 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26759 "full amount unless an error occurs."
26760 msgstr ""
26761
26762 #. type: textblock
26763 #: ../src/guestfs-actions.pod:1455
26764 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26765 msgstr ""
26766
26767 #. type: textblock
26768 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:7455
26769 msgid "(Added in 1.5.17)"
26770 msgstr "(Додано у 1.5.17)"
26771
26772 #. type: =head2
26773 #: ../src/guestfs-actions.pod:1466
26774 msgid "guestfs_drop_caches"
26775 msgstr ""
26776
26777 #. type: verbatim
26778 #: ../src/guestfs-actions.pod:1468
26779 #, no-wrap
26780 msgid ""
26781 " int\n"
26782 " guestfs_drop_caches (guestfs_h *g,\n"
26783 "                      int whattodrop);\n"
26784 "\n"
26785 msgstr ""
26786
26787 #. type: =head2
26788 #: ../src/guestfs-actions.pod:1486
26789 msgid "guestfs_du"
26790 msgstr ""
26791
26792 #. type: verbatim
26793 #: ../src/guestfs-actions.pod:1488
26794 #, no-wrap
26795 msgid ""
26796 " int64_t\n"
26797 " guestfs_du (guestfs_h *g,\n"
26798 "             const char *path);\n"
26799 "\n"
26800 msgstr ""
26801
26802 #. type: =head2
26803 #: ../src/guestfs-actions.pod:1511
26804 msgid "guestfs_e2fsck_f"
26805 msgstr ""
26806
26807 #. type: verbatim
26808 #: ../src/guestfs-actions.pod:1513
26809 #, no-wrap
26810 msgid ""
26811 " int\n"
26812 " guestfs_e2fsck_f (guestfs_h *g,\n"
26813 "                   const char *device);\n"
26814 "\n"
26815 msgstr ""
26816
26817 #. type: textblock
26818 #: ../src/guestfs-actions.pod:1521
26819 msgid ""
26820 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
26821 "Normally you should use C<guestfs_fsck>."
26822 msgstr ""
26823
26824 #. type: textblock
26825 #: ../src/guestfs-actions.pod:1526
26826 msgid "(Added in 1.0.29)"
26827 msgstr "(Додано у 1.0.29)"
26828
26829 #. type: =head2
26830 #: ../src/guestfs-actions.pod:1528
26831 msgid "guestfs_echo_daemon"
26832 msgstr "guestfs_echo_daemon"
26833
26834 #. type: verbatim
26835 #: ../src/guestfs-actions.pod:1530
26836 #, no-wrap
26837 msgid ""
26838 " char *\n"
26839 " guestfs_echo_daemon (guestfs_h *g,\n"
26840 "                      char *const *words);\n"
26841 "\n"
26842 msgstr ""
26843 " char *\n"
26844 " guestfs_echo_daemon (guestfs_h *g,\n"
26845 "                      char *const *words);\n"
26846 "\n"
26847
26848 #. type: textblock
26849 #: ../src/guestfs-actions.pod:1539
26850 msgid "See also C<guestfs_ping_daemon>."
26851 msgstr ""
26852
26853 #. type: textblock
26854 #: ../src/guestfs-actions.pod:1544 ../src/guestfs-actions.pod:2302
26855 #: ../src/guestfs-actions.pod:6626
26856 msgid "(Added in 1.0.69)"
26857 msgstr "(Додано у 1.0.69)"
26858
26859 #. type: =head2
26860 #: ../src/guestfs-actions.pod:1546
26861 msgid "guestfs_egrep"
26862 msgstr "guestfs_egrep"
26863
26864 #. type: verbatim
26865 #: ../src/guestfs-actions.pod:1548
26866 #, no-wrap
26867 msgid ""
26868 " char **\n"
26869 " guestfs_egrep (guestfs_h *g,\n"
26870 "                const char *regex,\n"
26871 "                const char *path);\n"
26872 "\n"
26873 msgstr ""
26874 " char **\n"
26875 " guestfs_egrep (guestfs_h *g,\n"
26876 "                const char *regex,\n"
26877 "                const char *path);\n"
26878 "\n"
26879
26880 #. type: textblock
26881 #: ../src/guestfs-actions.pod:1563 ../src/guestfs-actions.pod:1582
26882 #: ../src/guestfs-actions.pod:1639 ../src/guestfs-actions.pod:1685
26883 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:2432
26884 #: ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2629
26885 #: ../src/guestfs-actions.pod:2642 ../src/guestfs-actions.pod:2657
26886 #: ../src/guestfs-actions.pod:2703 ../src/guestfs-actions.pod:2725
26887 #: ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:4024
26888 #: ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4051
26889 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:5066
26890 #: ../src/guestfs-actions.pod:6087 ../src/guestfs-actions.pod:6136
26891 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7034
26892 #: ../src/guestfs-actions.pod:7047 ../src/guestfs-actions.pod:7060
26893 #: ../src/guestfs-actions.pod:7082 ../src/guestfs-actions.pod:7095
26894 #: ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7121
26895 #: ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:7934
26896 #: ../src/guestfs-actions.pod:8028 ../src/guestfs-actions.pod:8047
26897 #: ../src/guestfs-actions.pod:8093 ../src/guestfs-actions.pod:8112
26898 msgid "(Added in 1.0.66)"
26899 msgstr "(Додано у 1.0.66)"
26900
26901 #. type: =head2
26902 #: ../src/guestfs-actions.pod:1565
26903 msgid "guestfs_egrepi"
26904 msgstr "guestfs_egrepi"
26905
26906 #. type: verbatim
26907 #: ../src/guestfs-actions.pod:1567
26908 #, no-wrap
26909 msgid ""
26910 " char **\n"
26911 " guestfs_egrepi (guestfs_h *g,\n"
26912 "                 const char *regex,\n"
26913 "                 const char *path);\n"
26914 "\n"
26915 msgstr ""
26916
26917 #. type: =head2
26918 #: ../src/guestfs-actions.pod:1584
26919 msgid "guestfs_equal"
26920 msgstr ""
26921
26922 #. type: verbatim
26923 #: ../src/guestfs-actions.pod:1586
26924 #, no-wrap
26925 msgid ""
26926 " int\n"
26927 " guestfs_equal (guestfs_h *g,\n"
26928 "                const char *file1,\n"
26929 "                const char *file2);\n"
26930 "\n"
26931 msgstr ""
26932
26933 #. type: =head2
26934 #: ../src/guestfs-actions.pod:1600
26935 msgid "guestfs_exists"
26936 msgstr ""
26937
26938 #. type: verbatim
26939 #: ../src/guestfs-actions.pod:1602
26940 #, no-wrap
26941 msgid ""
26942 " int\n"
26943 " guestfs_exists (guestfs_h *g,\n"
26944 "                 const char *path);\n"
26945 "\n"
26946 msgstr ""
26947
26948 #. type: textblock
26949 #: ../src/guestfs-actions.pod:1609
26950 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26951 msgstr ""
26952
26953 #. type: =head2
26954 #: ../src/guestfs-actions.pod:1615
26955 msgid "guestfs_fallocate"
26956 msgstr ""
26957
26958 #. type: verbatim
26959 #: ../src/guestfs-actions.pod:1617
26960 #, no-wrap
26961 msgid ""
26962 " int\n"
26963 " guestfs_fallocate (guestfs_h *g,\n"
26964 "                    const char *path,\n"
26965 "                    int len);\n"
26966 "\n"
26967 msgstr ""
26968
26969 #. type: textblock
26970 #: ../src/guestfs-actions.pod:1622
26971 msgid ""
26972 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
26973 "call instead."
26974 msgstr ""
26975
26976 #. type: =head2
26977 #: ../src/guestfs-actions.pod:1641
26978 msgid "guestfs_fallocate64"
26979 msgstr ""
26980
26981 #. type: verbatim
26982 #: ../src/guestfs-actions.pod:1643
26983 #, no-wrap
26984 msgid ""
26985 " int\n"
26986 " guestfs_fallocate64 (guestfs_h *g,\n"
26987 "                      const char *path,\n"
26988 "                      int64_t len);\n"
26989 "\n"
26990 msgstr ""
26991
26992 #. type: textblock
26993 #: ../src/guestfs-actions.pod:1652
26994 msgid ""
26995 "Note that this call allocates disk blocks for the file.  To create a sparse "
26996 "file use C<guestfs_truncate_size> instead."
26997 msgstr ""
26998
26999 #. type: textblock
27000 #: ../src/guestfs-actions.pod:1655
27001 msgid ""
27002 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27003 "oversight it only allowed 30 bit lengths to be specified, effectively "
27004 "limiting the maximum size of files created through that call to 1GB."
27005 msgstr ""
27006
27007 #. type: textblock
27008 #: ../src/guestfs-actions.pod:1666
27009 msgid "(Added in 1.3.17)"
27010 msgstr "(Додано у 1.3.17)"
27011
27012 #. type: =head2
27013 #: ../src/guestfs-actions.pod:1668
27014 msgid "guestfs_fgrep"
27015 msgstr ""
27016
27017 #. type: verbatim
27018 #: ../src/guestfs-actions.pod:1670
27019 #, no-wrap
27020 msgid ""
27021 " char **\n"
27022 " guestfs_fgrep (guestfs_h *g,\n"
27023 "                const char *pattern,\n"
27024 "                const char *path);\n"
27025 "\n"
27026 msgstr ""
27027
27028 #. type: =head2
27029 #: ../src/guestfs-actions.pod:1687
27030 msgid "guestfs_fgrepi"
27031 msgstr ""
27032
27033 #. type: verbatim
27034 #: ../src/guestfs-actions.pod:1689
27035 #, no-wrap
27036 msgid ""
27037 " char **\n"
27038 " guestfs_fgrepi (guestfs_h *g,\n"
27039 "                 const char *pattern,\n"
27040 "                 const char *path);\n"
27041 "\n"
27042 msgstr ""
27043
27044 #. type: =head2
27045 #: ../src/guestfs-actions.pod:1706
27046 msgid "guestfs_file"
27047 msgstr ""
27048
27049 #. type: verbatim
27050 #: ../src/guestfs-actions.pod:1708
27051 #, no-wrap
27052 msgid ""
27053 " char *\n"
27054 " guestfs_file (guestfs_h *g,\n"
27055 "               const char *path);\n"
27056 "\n"
27057 msgstr ""
27058
27059 #. type: textblock
27060 #: ../src/guestfs-actions.pod:1726
27061 msgid ""
27062 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27063 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27064 msgstr ""
27065
27066 #. type: =head2
27067 #: ../src/guestfs-actions.pod:1734
27068 msgid "guestfs_file_architecture"
27069 msgstr ""
27070
27071 #. type: verbatim
27072 #: ../src/guestfs-actions.pod:1736
27073 #, no-wrap
27074 msgid ""
27075 " char *\n"
27076 " guestfs_file_architecture (guestfs_h *g,\n"
27077 "                            const char *filename);\n"
27078 "\n"
27079 msgstr ""
27080
27081 #. type: textblock
27082 #: ../src/guestfs-actions.pod:1844 ../src/guestfs-actions.pod:2007
27083 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2758
27084 #: ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2926
27085 #: ../src/guestfs-actions.pod:3113 ../src/guestfs-actions.pod:3131
27086 #: ../src/guestfs-actions.pod:3171 ../src/guestfs-actions.pod:3247
27087 #: ../src/guestfs-actions.pod:3344 ../src/guestfs-actions.pod:3581
27088 #: ../src/guestfs-actions.pod:3713
27089 msgid "(Added in 1.5.3)"
27090 msgstr "(Додано у 1.5.3)"
27091
27092 #. type: =head2
27093 #: ../src/guestfs-actions.pod:1846
27094 msgid "guestfs_filesize"
27095 msgstr ""
27096
27097 #. type: verbatim
27098 #: ../src/guestfs-actions.pod:1848
27099 #, no-wrap
27100 msgid ""
27101 " int64_t\n"
27102 " guestfs_filesize (guestfs_h *g,\n"
27103 "                   const char *file);\n"
27104 "\n"
27105 msgstr ""
27106
27107 #. type: textblock
27108 #: ../src/guestfs-actions.pod:1854
27109 msgid ""
27110 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27111 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27112 "devices, use C<guestfs_blockdev_getsize64>."
27113 msgstr ""
27114
27115 #. type: textblock
27116 #: ../src/guestfs-actions.pod:1860
27117 msgid "(Added in 1.0.82)"
27118 msgstr "(Додано у 1.0.82)"
27119
27120 #. type: =head2
27121 #: ../src/guestfs-actions.pod:1862
27122 msgid "guestfs_fill"
27123 msgstr ""
27124
27125 #. type: verbatim
27126 #: ../src/guestfs-actions.pod:1864
27127 #, no-wrap
27128 msgid ""
27129 " int\n"
27130 " guestfs_fill (guestfs_h *g,\n"
27131 "               int c,\n"
27132 "               int len,\n"
27133 "               const char *path);\n"
27134 "\n"
27135 msgstr ""
27136
27137 #. type: textblock
27138 #: ../src/guestfs-actions.pod:1874
27139 msgid ""
27140 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27141 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27142 "bytes use C<guestfs_fill_pattern>."
27143 msgstr ""
27144
27145 #. type: textblock
27146 #: ../src/guestfs-actions.pod:1886
27147 msgid "(Added in 1.0.79)"
27148 msgstr "(Додано у 1.0.79)"
27149
27150 #. type: =head2
27151 #: ../src/guestfs-actions.pod:1888
27152 msgid "guestfs_fill_pattern"
27153 msgstr ""
27154
27155 #. type: verbatim
27156 #: ../src/guestfs-actions.pod:1890
27157 #, no-wrap
27158 msgid ""
27159 " int\n"
27160 " guestfs_fill_pattern (guestfs_h *g,\n"
27161 "                       const char *pattern,\n"
27162 "                       int len,\n"
27163 "                       const char *path);\n"
27164 "\n"
27165 msgstr ""
27166
27167 #. type: textblock
27168 #: ../src/guestfs-actions.pod:1896
27169 msgid ""
27170 "This function is like C<guestfs_fill> except that it creates a new file of "
27171 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27172 "pattern is truncated if necessary to ensure the length of the file is "
27173 "exactly C<len> bytes."
27174 msgstr ""
27175
27176 #. type: textblock
27177 #: ../src/guestfs-actions.pod:1908
27178 msgid "(Added in 1.3.12)"
27179 msgstr "(Додано у 1.3.12)"
27180
27181 #. type: =head2
27182 #: ../src/guestfs-actions.pod:1910
27183 msgid "guestfs_find"
27184 msgstr ""
27185
27186 #. type: verbatim
27187 #: ../src/guestfs-actions.pod:1912
27188 #, no-wrap
27189 msgid ""
27190 " char **\n"
27191 " guestfs_find (guestfs_h *g,\n"
27192 "               const char *directory);\n"
27193 "\n"
27194 msgstr ""
27195
27196 #. type: textblock
27197 #: ../src/guestfs-actions.pod:1928
27198 msgid ""
27199 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27200 msgstr ""
27201
27202 #. type: textblock
27203 #: ../src/guestfs-actions.pod:1941
27204 msgid "See also C<guestfs_find0>."
27205 msgstr ""
27206
27207 #. type: textblock
27208 #: ../src/guestfs-actions.pod:1950 ../src/guestfs-actions.pod:4471
27209 #: ../src/guestfs-actions.pod:6171
27210 msgid "(Added in 1.0.27)"
27211 msgstr "(Додано у 1.0.27)"
27212
27213 #. type: =head2
27214 #: ../src/guestfs-actions.pod:1952
27215 msgid "guestfs_find0"
27216 msgstr ""
27217
27218 #. type: verbatim
27219 #: ../src/guestfs-actions.pod:1954
27220 #, no-wrap
27221 msgid ""
27222 " int\n"
27223 " guestfs_find0 (guestfs_h *g,\n"
27224 "                const char *directory,\n"
27225 "                const char *files);\n"
27226 "\n"
27227 msgstr ""
27228
27229 #. type: textblock
27230 #: ../src/guestfs-actions.pod:1963
27231 msgid ""
27232 "This command works the same way as C<guestfs_find> with the following "
27233 "exceptions:"
27234 msgstr ""
27235
27236 #. type: textblock
27237 #: ../src/guestfs-actions.pod:1990
27238 msgid "(Added in 1.0.74)"
27239 msgstr "(Додано у 1.0.74)"
27240
27241 #. type: =head2
27242 #: ../src/guestfs-actions.pod:1992
27243 msgid "guestfs_findfs_label"
27244 msgstr ""
27245
27246 #. type: verbatim
27247 #: ../src/guestfs-actions.pod:1994
27248 #, no-wrap
27249 msgid ""
27250 " char *\n"
27251 " guestfs_findfs_label (guestfs_h *g,\n"
27252 "                       const char *label);\n"
27253 "\n"
27254 msgstr ""
27255
27256 #. type: textblock
27257 #: ../src/guestfs-actions.pod:2002
27258 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27259 msgstr ""
27260
27261 #. type: =head2
27262 #: ../src/guestfs-actions.pod:2009
27263 msgid "guestfs_findfs_uuid"
27264 msgstr ""
27265
27266 #. type: verbatim
27267 #: ../src/guestfs-actions.pod:2011
27268 #, no-wrap
27269 msgid ""
27270 " char *\n"
27271 " guestfs_findfs_uuid (guestfs_h *g,\n"
27272 "                      const char *uuid);\n"
27273 "\n"
27274 msgstr ""
27275
27276 #. type: textblock
27277 #: ../src/guestfs-actions.pod:2019
27278 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27279 msgstr ""
27280
27281 #. type: =head2
27282 #: ../src/guestfs-actions.pod:2026
27283 msgid "guestfs_fsck"
27284 msgstr ""
27285
27286 #. type: verbatim
27287 #: ../src/guestfs-actions.pod:2028
27288 #, no-wrap
27289 msgid ""
27290 " int\n"
27291 " guestfs_fsck (guestfs_h *g,\n"
27292 "               const char *fstype,\n"
27293 "               const char *device);\n"
27294 "\n"
27295 msgstr ""
27296
27297 #. type: textblock
27298 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:7962
27299 msgid "(Added in 1.0.16)"
27300 msgstr "(Додано у 1.0.16)"
27301
27302 #. type: =head2
27303 #: ../src/guestfs-actions.pod:2065
27304 msgid "guestfs_get_append"
27305 msgstr ""
27306
27307 #. type: verbatim
27308 #: ../src/guestfs-actions.pod:2067
27309 #, no-wrap
27310 msgid ""
27311 " const char *\n"
27312 " guestfs_get_append (guestfs_h *g);\n"
27313 "\n"
27314 msgstr ""
27315
27316 #. type: textblock
27317 #: ../src/guestfs-actions.pod:2075
27318 msgid ""
27319 "This function returns a string which may be NULL.  There is no way to return "
27320 "an error from this function.  The string is owned by the guest handle and "
27321 "must I<not> be freed."
27322 msgstr ""
27323
27324 #. type: textblock
27325 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:5849
27326 #: ../src/guestfs-actions.pod:6331 ../src/guestfs-actions.pod:6789
27327 #: ../src/guestfs-actions.pod:6808 ../src/guestfs-actions.pod:6824
27328 #: ../src/guestfs-actions.pod:6848 ../src/guestfs-actions.pod:7602
27329 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:8009
27330 msgid "(Added in 1.0.26)"
27331 msgstr "(Додано у 1.0.26)"
27332
27333 #. type: =head2
27334 #: ../src/guestfs-actions.pod:2081
27335 msgid "guestfs_get_attach_method"
27336 msgstr ""
27337
27338 #. type: verbatim
27339 #: ../src/guestfs-actions.pod:2083
27340 #, no-wrap
27341 msgid ""
27342 " char *\n"
27343 " guestfs_get_attach_method (guestfs_h *g);\n"
27344 "\n"
27345 msgstr ""
27346
27347 #. type: textblock
27348 #: ../src/guestfs-actions.pod:2086
27349 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27350 msgstr ""
27351
27352 #. type: textblock
27353 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:6361
27354 msgid "(Added in 1.9.8)"
27355 msgstr "(Додано у 1.9.8)"
27356
27357 #. type: =head2
27358 #: ../src/guestfs-actions.pod:2093
27359 msgid "guestfs_get_autosync"
27360 msgstr ""
27361
27362 #. type: verbatim
27363 #: ../src/guestfs-actions.pod:2095
27364 #, no-wrap
27365 msgid ""
27366 " int\n"
27367 " guestfs_get_autosync (guestfs_h *g);\n"
27368 "\n"
27369 msgstr ""
27370
27371 #. type: =head2
27372 #: ../src/guestfs-actions.pod:2104
27373 msgid "guestfs_get_direct"
27374 msgstr ""
27375
27376 #. type: verbatim
27377 #: ../src/guestfs-actions.pod:2106
27378 #, no-wrap
27379 msgid ""
27380 " int\n"
27381 " guestfs_get_direct (guestfs_h *g);\n"
27382 "\n"
27383 msgstr ""
27384
27385 #. type: textblock
27386 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:6402
27387 msgid "(Added in 1.0.72)"
27388 msgstr "(Додано у 1.0.72)"
27389
27390 #. type: =head2
27391 #: ../src/guestfs-actions.pod:2115
27392 msgid "guestfs_get_e2label"
27393 msgstr ""
27394
27395 #. type: verbatim
27396 #: ../src/guestfs-actions.pod:2117
27397 #, no-wrap
27398 msgid ""
27399 " char *\n"
27400 " guestfs_get_e2label (guestfs_h *g,\n"
27401 "                      const char *device);\n"
27402 "\n"
27403 msgstr ""
27404
27405 #. type: textblock
27406 #: ../src/guestfs-actions.pod:2121
27407 msgid ""
27408 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27409 "call instead."
27410 msgstr ""
27411
27412 #. type: textblock
27413 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:2155
27414 #: ../src/guestfs-actions.pod:6420 ../src/guestfs-actions.pod:6439
27415 msgid "(Added in 1.0.15)"
27416 msgstr "(Додано у 1.0.15)"
27417
27418 #. type: =head2
27419 #: ../src/guestfs-actions.pod:2136
27420 msgid "guestfs_get_e2uuid"
27421 msgstr ""
27422
27423 #. type: verbatim
27424 #: ../src/guestfs-actions.pod:2138
27425 #, no-wrap
27426 msgid ""
27427 " char *\n"
27428 " guestfs_get_e2uuid (guestfs_h *g,\n"
27429 "                     const char *device);\n"
27430 "\n"
27431 msgstr ""
27432
27433 #. type: textblock
27434 #: ../src/guestfs-actions.pod:2142
27435 msgid ""
27436 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27437 "call instead."
27438 msgstr ""
27439
27440 #. type: =head2
27441 #: ../src/guestfs-actions.pod:2157
27442 msgid "guestfs_get_memsize"
27443 msgstr ""
27444
27445 #. type: verbatim
27446 #: ../src/guestfs-actions.pod:2159
27447 #, no-wrap
27448 msgid ""
27449 " int\n"
27450 " guestfs_get_memsize (guestfs_h *g);\n"
27451 "\n"
27452 msgstr ""
27453
27454 #. type: textblock
27455 #: ../src/guestfs-actions.pod:2165
27456 msgid ""
27457 "If C<guestfs_set_memsize> was not called on this handle, and if "
27458 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27459 "value for memsize."
27460 msgstr ""
27461
27462 #. type: textblock
27463 #: ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:4762
27464 #: ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4990
27465 #: ../src/guestfs-actions.pod:5009 ../src/guestfs-actions.pod:5021
27466 #: ../src/guestfs-actions.pod:5038 ../src/guestfs-actions.pod:5051
27467 #: ../src/guestfs-actions.pod:6074 ../src/guestfs-actions.pod:6460
27468 #: ../src/guestfs-actions.pod:6756 ../src/guestfs-actions.pod:7371
27469 msgid "(Added in 1.0.55)"
27470 msgstr "(Додано у 1.0.55)"
27471
27472 #. type: =head2
27473 #: ../src/guestfs-actions.pod:2176
27474 msgid "guestfs_get_network"
27475 msgstr ""
27476
27477 #. type: verbatim
27478 #: ../src/guestfs-actions.pod:2178
27479 #, no-wrap
27480 msgid ""
27481 " int\n"
27482 " guestfs_get_network (guestfs_h *g);\n"
27483 "\n"
27484 msgstr ""
27485
27486 #. type: textblock
27487 #: ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:6479
27488 msgid "(Added in 1.5.4)"
27489 msgstr "(Додано у 1.5.4)"
27490
27491 #. type: =head2
27492 #: ../src/guestfs-actions.pod:2187
27493 msgid "guestfs_get_path"
27494 msgstr ""
27495
27496 #. type: verbatim
27497 #: ../src/guestfs-actions.pod:2189
27498 #, no-wrap
27499 msgid ""
27500 " const char *\n"
27501 " guestfs_get_path (guestfs_h *g);\n"
27502 "\n"
27503 msgstr ""
27504
27505 #. type: textblock
27506 #: ../src/guestfs-actions.pod:2197 ../src/guestfs-actions.pod:2237
27507 msgid ""
27508 "This function returns a string, or NULL on error.  The string is owned by "
27509 "the guest handle and must I<not> be freed."
27510 msgstr ""
27511
27512 #. type: =head2
27513 #: ../src/guestfs-actions.pod:2202
27514 msgid "guestfs_get_pgroup"
27515 msgstr ""
27516
27517 #. type: verbatim
27518 #: ../src/guestfs-actions.pod:2204
27519 #, no-wrap
27520 msgid ""
27521 " int\n"
27522 " guestfs_get_pgroup (guestfs_h *g);\n"
27523 "\n"
27524 msgstr ""
27525
27526 #. type: textblock
27527 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:6515
27528 #: ../src/guestfs-actions.pod:7863
27529 msgid "(Added in 1.11.18)"
27530 msgstr "(Додано у 1.11.18)"
27531
27532 #. type: =head2
27533 #: ../src/guestfs-actions.pod:2213
27534 msgid "guestfs_get_pid"
27535 msgstr ""
27536
27537 #. type: verbatim
27538 #: ../src/guestfs-actions.pod:2215
27539 #, no-wrap
27540 msgid ""
27541 " int\n"
27542 " guestfs_get_pid (guestfs_h *g);\n"
27543 "\n"
27544 msgstr ""
27545
27546 #. type: textblock
27547 #: ../src/guestfs-actions.pod:2225
27548 msgid "(Added in 1.0.56)"
27549 msgstr "(Додано у 1.0.56)"
27550
27551 #. type: =head2
27552 #: ../src/guestfs-actions.pod:2227
27553 msgid "guestfs_get_qemu"
27554 msgstr ""
27555
27556 #. type: verbatim
27557 #: ../src/guestfs-actions.pod:2229
27558 #, no-wrap
27559 msgid ""
27560 " const char *\n"
27561 " guestfs_get_qemu (guestfs_h *g);\n"
27562 "\n"
27563 msgstr ""
27564
27565 #. type: textblock
27566 #: ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:6543
27567 msgid "(Added in 1.0.6)"
27568 msgstr "(Додано у 1.0.6)"
27569
27570 #. type: =head2
27571 #: ../src/guestfs-actions.pod:2242
27572 msgid "guestfs_get_recovery_proc"
27573 msgstr ""
27574
27575 #. type: verbatim
27576 #: ../src/guestfs-actions.pod:2244
27577 #, no-wrap
27578 msgid ""
27579 " int\n"
27580 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27581 "\n"
27582 msgstr ""
27583
27584 #. type: textblock
27585 #: ../src/guestfs-actions.pod:2251 ../src/guestfs-actions.pod:3835
27586 #: ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4569
27587 #: ../src/guestfs-actions.pod:4601 ../src/guestfs-actions.pod:5779
27588 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6567
27589 #: ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7294
27590 #: ../src/guestfs-actions.pod:7486
27591 msgid "(Added in 1.0.77)"
27592 msgstr "(Додано у 1.0.77)"
27593
27594 #. type: =head2
27595 #: ../src/guestfs-actions.pod:2253
27596 msgid "guestfs_get_selinux"
27597 msgstr ""
27598
27599 #. type: verbatim
27600 #: ../src/guestfs-actions.pod:2255
27601 #, no-wrap
27602 msgid ""
27603 " int\n"
27604 " guestfs_get_selinux (guestfs_h *g);\n"
27605 "\n"
27606 msgstr ""
27607
27608 #. type: textblock
27609 #: ../src/guestfs-actions.pod:2258
27610 msgid ""
27611 "This returns the current setting of the selinux flag which is passed to the "
27612 "appliance at boot time.  See C<guestfs_set_selinux>."
27613 msgstr ""
27614
27615 #. type: textblock
27616 #: ../src/guestfs-actions.pod:2266 ../src/guestfs-actions.pod:2340
27617 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6660
27618 msgid "(Added in 1.0.67)"
27619 msgstr "(Додано у 1.0.67)"
27620
27621 #. type: =head2
27622 #: ../src/guestfs-actions.pod:2268
27623 msgid "guestfs_get_smp"
27624 msgstr ""
27625
27626 #. type: verbatim
27627 #: ../src/guestfs-actions.pod:2270
27628 #, no-wrap
27629 msgid ""
27630 " int\n"
27631 " guestfs_get_smp (guestfs_h *g);\n"
27632 "\n"
27633 msgstr ""
27634
27635 #. type: =head2
27636 #: ../src/guestfs-actions.pod:2279
27637 msgid "guestfs_get_state"
27638 msgstr ""
27639
27640 #. type: verbatim
27641 #: ../src/guestfs-actions.pod:2281
27642 #, no-wrap
27643 msgid ""
27644 " int\n"
27645 " guestfs_get_state (guestfs_h *g);\n"
27646 "\n"
27647 msgstr ""
27648
27649 #. type: =head2
27650 #: ../src/guestfs-actions.pod:2293
27651 msgid "guestfs_get_trace"
27652 msgstr ""
27653
27654 #. type: verbatim
27655 #: ../src/guestfs-actions.pod:2295
27656 #, no-wrap
27657 msgid ""
27658 " int\n"
27659 " guestfs_get_trace (guestfs_h *g);\n"
27660 "\n"
27661 msgstr ""
27662
27663 #. type: =head2
27664 #: ../src/guestfs-actions.pod:2304
27665 msgid "guestfs_get_umask"
27666 msgstr ""
27667
27668 #. type: verbatim
27669 #: ../src/guestfs-actions.pod:2306
27670 #, no-wrap
27671 msgid ""
27672 " int\n"
27673 " guestfs_get_umask (guestfs_h *g);\n"
27674 "\n"
27675 msgstr ""
27676
27677 #. type: textblock
27678 #: ../src/guestfs-actions.pod:2309
27679 msgid ""
27680 "Return the current umask.  By default the umask is C<022> unless it has been "
27681 "set by calling C<guestfs_umask>."
27682 msgstr ""
27683
27684 #. type: =head2
27685 #: ../src/guestfs-actions.pod:2316
27686 msgid "guestfs_get_verbose"
27687 msgstr ""
27688
27689 #. type: verbatim
27690 #: ../src/guestfs-actions.pod:2318
27691 #, no-wrap
27692 msgid ""
27693 " int\n"
27694 " guestfs_get_verbose (guestfs_h *g);\n"
27695 "\n"
27696 msgstr ""
27697
27698 #. type: =head2
27699 #: ../src/guestfs-actions.pod:2327
27700 msgid "guestfs_getcon"
27701 msgstr ""
27702
27703 #. type: verbatim
27704 #: ../src/guestfs-actions.pod:2329
27705 #, no-wrap
27706 msgid ""
27707 " char *\n"
27708 " guestfs_getcon (guestfs_h *g);\n"
27709 "\n"
27710 msgstr ""
27711
27712 #. type: textblock
27713 #: ../src/guestfs-actions.pod:2334
27714 msgid ""
27715 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27716 msgstr ""
27717
27718 #. type: =head2
27719 #: ../src/guestfs-actions.pod:2342
27720 msgid "guestfs_getxattr"
27721 msgstr ""
27722
27723 #. type: verbatim
27724 #: ../src/guestfs-actions.pod:2344
27725 #, no-wrap
27726 msgid ""
27727 " char *\n"
27728 " guestfs_getxattr (guestfs_h *g,\n"
27729 "                   const char *path,\n"
27730 "                   const char *name,\n"
27731 "                   size_t *size_r);\n"
27732 "\n"
27733 msgstr ""
27734
27735 #. type: textblock
27736 #: ../src/guestfs-actions.pod:2350
27737 msgid ""
27738 "Get a single extended attribute from file C<path> named C<name>.  This call "
27739 "follows symlinks.  If you want to lookup an extended attribute for the "
27740 "symlink itself, use C<guestfs_lgetxattr>."
27741 msgstr ""
27742
27743 #. type: textblock
27744 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:3849
27745 msgid ""
27746 "Normally it is better to get all extended attributes from a file in one go "
27747 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27748 "implementations are buggy and do not provide a way to list out attributes.  "
27749 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27750 "extended attributes you want in advance and call this function."
27751 msgstr ""
27752
27753 #. type: textblock
27754 #: ../src/guestfs-actions.pod:2364
27755 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27756 msgstr ""
27757
27758 #. type: textblock
27759 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:2579
27760 #: ../src/guestfs-actions.pod:3061 ../src/guestfs-actions.pod:3861
27761 #: ../src/guestfs-actions.pod:5772 ../src/guestfs-actions.pod:5798
27762 #: ../src/guestfs-actions.pod:5979
27763 msgid ""
27764 "This function returns a buffer, or NULL on error.  The size of the returned "
27765 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
27766 "after use>."
27767 msgstr ""
27768
27769 #. type: textblock
27770 #: ../src/guestfs-actions.pod:2370 ../src/guestfs-actions.pod:3865
27771 msgid "(Added in 1.7.24)"
27772 msgstr "(Додано у 1.7.24)"
27773
27774 #. type: =head2
27775 #: ../src/guestfs-actions.pod:2372
27776 msgid "guestfs_getxattrs"
27777 msgstr ""
27778
27779 #. type: verbatim
27780 #: ../src/guestfs-actions.pod:2374
27781 #, no-wrap
27782 msgid ""
27783 " struct guestfs_xattr_list *\n"
27784 " guestfs_getxattrs (guestfs_h *g,\n"
27785 "                    const char *path);\n"
27786 "\n"
27787 msgstr ""
27788
27789 #. type: textblock
27790 #: ../src/guestfs-actions.pod:2384
27791 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27792 msgstr ""
27793
27794 #. type: textblock
27795 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:3877
27796 #: ../src/guestfs-actions.pod:4565
27797 msgid ""
27798 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27799 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27800 msgstr ""
27801
27802 #. type: textblock
27803 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:3881
27804 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4116
27805 #: ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6679
27806 #: ../src/guestfs-actions.pod:8074
27807 msgid "(Added in 1.0.59)"
27808 msgstr "(Додано у 1.0.59)"
27809
27810 #. type: =head2
27811 #: ../src/guestfs-actions.pod:2392
27812 msgid "guestfs_glob_expand"
27813 msgstr ""
27814
27815 #. type: verbatim
27816 #: ../src/guestfs-actions.pod:2394
27817 #, no-wrap
27818 msgid ""
27819 " char **\n"
27820 " guestfs_glob_expand (guestfs_h *g,\n"
27821 "                      const char *pattern);\n"
27822 "\n"
27823 msgstr ""
27824
27825 #. type: textblock
27826 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6872
27827 #: ../src/guestfs-actions.pod:6889
27828 msgid "(Added in 1.0.50)"
27829 msgstr "(Додано у 1.0.50)"
27830
27831 #. type: =head2
27832 #: ../src/guestfs-actions.pod:2415
27833 msgid "guestfs_grep"
27834 msgstr ""
27835
27836 #. type: verbatim
27837 #: ../src/guestfs-actions.pod:2417
27838 #, no-wrap
27839 msgid ""
27840 " char **\n"
27841 " guestfs_grep (guestfs_h *g,\n"
27842 "               const char *regex,\n"
27843 "               const char *path);\n"
27844 "\n"
27845 msgstr ""
27846
27847 #. type: =head2
27848 #: ../src/guestfs-actions.pod:2434
27849 msgid "guestfs_grepi"
27850 msgstr ""
27851
27852 #. type: verbatim
27853 #: ../src/guestfs-actions.pod:2436
27854 #, no-wrap
27855 msgid ""
27856 " char **\n"
27857 " guestfs_grepi (guestfs_h *g,\n"
27858 "                const char *regex,\n"
27859 "                const char *path);\n"
27860 "\n"
27861 msgstr ""
27862
27863 #. type: =head2
27864 #: ../src/guestfs-actions.pod:2453
27865 msgid "guestfs_grub_install"
27866 msgstr ""
27867
27868 #. type: verbatim
27869 #: ../src/guestfs-actions.pod:2455
27870 #, no-wrap
27871 msgid ""
27872 " int\n"
27873 " guestfs_grub_install (guestfs_h *g,\n"
27874 "                       const char *root,\n"
27875 "                       const char *device);\n"
27876 "\n"
27877 msgstr ""
27878
27879 #. type: textblock
27880 #: ../src/guestfs-actions.pod:2498
27881 msgid "(Added in 1.0.17)"
27882 msgstr "(Додано у 1.0.17)"
27883
27884 #. type: =head2
27885 #: ../src/guestfs-actions.pod:2500
27886 msgid "guestfs_head"
27887 msgstr ""
27888
27889 #. type: verbatim
27890 #: ../src/guestfs-actions.pod:2502
27891 #, no-wrap
27892 msgid ""
27893 " char **\n"
27894 " guestfs_head (guestfs_h *g,\n"
27895 "               const char *path);\n"
27896 "\n"
27897 msgstr ""
27898
27899 #. type: =head2
27900 #: ../src/guestfs-actions.pod:2518
27901 msgid "guestfs_head_n"
27902 msgstr ""
27903
27904 #. type: verbatim
27905 #: ../src/guestfs-actions.pod:2520
27906 #, no-wrap
27907 msgid ""
27908 " char **\n"
27909 " guestfs_head_n (guestfs_h *g,\n"
27910 "                 int nrlines,\n"
27911 "                 const char *path);\n"
27912 "\n"
27913 msgstr ""
27914
27915 #. type: =head2
27916 #: ../src/guestfs-actions.pod:2542
27917 msgid "guestfs_hexdump"
27918 msgstr ""
27919
27920 #. type: verbatim
27921 #: ../src/guestfs-actions.pod:2544
27922 #, no-wrap
27923 msgid ""
27924 " char *\n"
27925 " guestfs_hexdump (guestfs_h *g,\n"
27926 "                  const char *path);\n"
27927 "\n"
27928 msgstr ""
27929
27930 #. type: textblock
27931 #: ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:6953
27932 #: ../src/guestfs-actions.pod:7008
27933 msgid "(Added in 1.0.22)"
27934 msgstr "(Додано у 1.0.22)"
27935
27936 #. type: =head2
27937 #: ../src/guestfs-actions.pod:2559
27938 msgid "guestfs_initrd_cat"
27939 msgstr ""
27940
27941 #. type: verbatim
27942 #: ../src/guestfs-actions.pod:2561
27943 #, no-wrap
27944 msgid ""
27945 " char *\n"
27946 " guestfs_initrd_cat (guestfs_h *g,\n"
27947 "                     const char *initrdpath,\n"
27948 "                     const char *filename,\n"
27949 "                     size_t *size_r);\n"
27950 "\n"
27951 msgstr ""
27952
27953 #. type: textblock
27954 #: ../src/guestfs-actions.pod:2577
27955 msgid "See also C<guestfs_initrd_list>."
27956 msgstr ""
27957
27958 #. type: =head2
27959 #: ../src/guestfs-actions.pod:2588
27960 msgid "guestfs_initrd_list"
27961 msgstr ""
27962
27963 #. type: verbatim
27964 #: ../src/guestfs-actions.pod:2590
27965 #, no-wrap
27966 msgid ""
27967 " char **\n"
27968 " guestfs_initrd_list (guestfs_h *g,\n"
27969 "                      const char *path);\n"
27970 "\n"
27971 msgstr ""
27972
27973 #. type: =head2
27974 #: ../src/guestfs-actions.pod:2610
27975 msgid "guestfs_inotify_add_watch"
27976 msgstr ""
27977
27978 #. type: verbatim
27979 #: ../src/guestfs-actions.pod:2612
27980 #, no-wrap
27981 msgid ""
27982 " int64_t\n"
27983 " guestfs_inotify_add_watch (guestfs_h *g,\n"
27984 "                            const char *path,\n"
27985 "                            int mask);\n"
27986 "\n"
27987 msgstr ""
27988
27989 #. type: =head2
27990 #: ../src/guestfs-actions.pod:2631
27991 msgid "guestfs_inotify_close"
27992 msgstr ""
27993
27994 #. type: verbatim
27995 #: ../src/guestfs-actions.pod:2633
27996 #, no-wrap
27997 msgid ""
27998 " int\n"
27999 " guestfs_inotify_close (guestfs_h *g);\n"
28000 "\n"
28001 msgstr ""
28002
28003 #. type: =head2
28004 #: ../src/guestfs-actions.pod:2644
28005 msgid "guestfs_inotify_files"
28006 msgstr ""
28007
28008 #. type: verbatim
28009 #: ../src/guestfs-actions.pod:2646
28010 #, no-wrap
28011 msgid ""
28012 " char **\n"
28013 " guestfs_inotify_files (guestfs_h *g);\n"
28014 "\n"
28015 msgstr ""
28016
28017 #. type: textblock
28018 #: ../src/guestfs-actions.pod:2649
28019 msgid ""
28020 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28021 "returns a list of pathnames of objects that were touched.  The returned "
28022 "pathnames are sorted and deduplicated."
28023 msgstr ""
28024
28025 #. type: =head2
28026 #: ../src/guestfs-actions.pod:2659
28027 msgid "guestfs_inotify_init"
28028 msgstr ""
28029
28030 #. type: verbatim
28031 #: ../src/guestfs-actions.pod:2661
28032 #, no-wrap
28033 msgid ""
28034 " int\n"
28035 " guestfs_inotify_init (guestfs_h *g,\n"
28036 "                       int maxevents);\n"
28037 "\n"
28038 msgstr ""
28039
28040 #. type: textblock
28041 #: ../src/guestfs-actions.pod:2669
28042 msgid ""
28043 "C<maxevents> is the maximum number of events which will be queued up between "
28044 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28045 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28046 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28047 "throws away events, but records the fact that it threw them away by setting "
28048 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28049 "C<guestfs_inotify_read>)."
28050 msgstr ""
28051
28052 #. type: textblock
28053 #: ../src/guestfs-actions.pod:2679
28054 msgid ""
28055 "Before any events are generated, you have to add some watches to the "
28056 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28057 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28058 msgstr ""
28059
28060 #. type: textblock
28061 #: ../src/guestfs-actions.pod:2685
28062 msgid ""
28063 "Queued up events should be read periodically by calling "
28064 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28065 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28066 "often enough then you risk the internal queue overflowing."
28067 msgstr ""
28068
28069 #. type: textblock
28070 #: ../src/guestfs-actions.pod:2692
28071 msgid ""
28072 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28073 "This also removes any watches automatically."
28074 msgstr ""
28075
28076 #. type: =head2
28077 #: ../src/guestfs-actions.pod:2705
28078 msgid "guestfs_inotify_read"
28079 msgstr ""
28080
28081 #. type: verbatim
28082 #: ../src/guestfs-actions.pod:2707
28083 #, no-wrap
28084 msgid ""
28085 " struct guestfs_inotify_event_list *\n"
28086 " guestfs_inotify_read (guestfs_h *g);\n"
28087 "\n"
28088 msgstr ""
28089
28090 #. type: textblock
28091 #: ../src/guestfs-actions.pod:2721
28092 msgid ""
28093 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28094 "there was an error.  I<The caller must call "
28095 "C<guestfs_free_inotify_event_list> after use>."
28096 msgstr ""
28097
28098 #. type: =head2
28099 #: ../src/guestfs-actions.pod:2727
28100 msgid "guestfs_inotify_rm_watch"
28101 msgstr ""
28102
28103 #. type: verbatim
28104 #: ../src/guestfs-actions.pod:2729
28105 #, no-wrap
28106 msgid ""
28107 " int\n"
28108 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28109 "                           int wd);\n"
28110 "\n"
28111 msgstr ""
28112
28113 #. type: textblock
28114 #: ../src/guestfs-actions.pod:2733
28115 msgid ""
28116 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
28117 msgstr ""
28118
28119 #. type: =head2
28120 #: ../src/guestfs-actions.pod:2740
28121 msgid "guestfs_inspect_get_arch"
28122 msgstr ""
28123
28124 #. type: verbatim
28125 #: ../src/guestfs-actions.pod:2742
28126 #, no-wrap
28127 msgid ""
28128 " char *\n"
28129 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28130 "                           const char *root);\n"
28131 "\n"
28132 msgstr ""
28133
28134 #. type: textblock
28135 #: ../src/guestfs-actions.pod:2746
28136 msgid ""
28137 "This returns the architecture of the inspected operating system.  The "
28138 "possible return values are listed under C<guestfs_file_architecture>."
28139 msgstr ""
28140
28141 #. type: =head2
28142 #: ../src/guestfs-actions.pod:2760
28143 msgid "guestfs_inspect_get_distro"
28144 msgstr ""
28145
28146 #. type: verbatim
28147 #: ../src/guestfs-actions.pod:2762
28148 #, no-wrap
28149 msgid ""
28150 " char *\n"
28151 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28152 "                             const char *root);\n"
28153 "\n"
28154 msgstr ""
28155
28156 #. type: =head2
28157 #: ../src/guestfs-actions.pod:2862
28158 msgid "guestfs_inspect_get_drive_mappings"
28159 msgstr ""
28160
28161 #. type: verbatim
28162 #: ../src/guestfs-actions.pod:2864
28163 #, no-wrap
28164 msgid ""
28165 " char **\n"
28166 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28167 "                                     const char *root);\n"
28168 "\n"
28169 msgstr ""
28170
28171 #. type: textblock
28172 #: ../src/guestfs-actions.pod:2893
28173 msgid ""
28174 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28175 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28176 msgstr ""
28177
28178 #. type: textblock
28179 #: ../src/guestfs-actions.pod:2897 ../src/guestfs-actions.pod:3165
28180 #: ../src/guestfs-actions.pod:3968 ../src/guestfs-actions.pod:5240
28181 #: ../src/guestfs-actions.pod:7310
28182 msgid ""
28183 "This function returns a NULL-terminated array of strings, or NULL if there "
28184 "was an error.  The array of strings will always have length C<2n+1>, where "
28185 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28186 "caller must free the strings and the array after use>."
28187 msgstr ""
28188
28189 #. type: textblock
28190 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3364
28191 msgid "(Added in 1.9.17)"
28192 msgstr "(Додано у 1.9.17)"
28193
28194 #. type: =head2
28195 #: ../src/guestfs-actions.pod:2905
28196 msgid "guestfs_inspect_get_filesystems"
28197 msgstr ""
28198
28199 #. type: verbatim
28200 #: ../src/guestfs-actions.pod:2907
28201 #, no-wrap
28202 msgid ""
28203 " char **\n"
28204 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28205 "                                  const char *root);\n"
28206 "\n"
28207 msgstr ""
28208
28209 #. type: textblock
28210 #: ../src/guestfs-actions.pod:2919
28211 msgid ""
28212 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28213 "C<guestfs_inspect_get_mountpoints>."
28214 msgstr ""
28215
28216 #. type: =head2
28217 #: ../src/guestfs-actions.pod:2928
28218 msgid "guestfs_inspect_get_format"
28219 msgstr ""
28220
28221 #. type: verbatim
28222 #: ../src/guestfs-actions.pod:2930
28223 #, no-wrap
28224 msgid ""
28225 " char *\n"
28226 " guestfs_inspect_get_format (guestfs_h *g,\n"
28227 "                             const char *root);\n"
28228 "\n"
28229 msgstr ""
28230
28231 #. type: textblock
28232 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3400
28233 #: ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3434
28234 #: ../src/guestfs-actions.pod:6190
28235 msgid "(Added in 1.9.4)"
28236 msgstr "(Додано у 1.9.4)"
28237
28238 #. type: =head2
28239 #: ../src/guestfs-actions.pod:2966
28240 msgid "guestfs_inspect_get_hostname"
28241 msgstr ""
28242
28243 #. type: verbatim
28244 #: ../src/guestfs-actions.pod:2968
28245 #, no-wrap
28246 msgid ""
28247 " char *\n"
28248 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28249 "                               const char *root);\n"
28250 "\n"
28251 msgstr ""
28252
28253 #. type: textblock
28254 #: ../src/guestfs-actions.pod:2983
28255 msgid "(Added in 1.7.9)"
28256 msgstr "(Додано у 1.7.9)"
28257
28258 #. type: =head2
28259 #: ../src/guestfs-actions.pod:2985
28260 msgid "guestfs_inspect_get_icon"
28261 msgstr ""
28262
28263 #. type: verbatim
28264 #: ../src/guestfs-actions.pod:2987
28265 #, no-wrap
28266 msgid ""
28267 " char *\n"
28268 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28269 "                           const char *root,\n"
28270 "                           size_t *size_r,\n"
28271 "                           ...);\n"
28272 "\n"
28273 msgstr ""
28274
28275 #. type: verbatim
28276 #: ../src/guestfs-actions.pod:2998
28277 #, no-wrap
28278 msgid ""
28279 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28280 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28281 "\n"
28282 msgstr ""
28283
28284 #. type: textblock
28285 #: ../src/guestfs-actions.pod:3065 ../src/guestfs-actions.pod:3895
28286 #: ../src/guestfs-actions.pod:5139
28287 msgid "(Added in 1.11.12)"
28288 msgstr "(Додано у 1.11.12)"
28289
28290 #. type: =head2
28291 #: ../src/guestfs-actions.pod:3067
28292 msgid "guestfs_inspect_get_icon_va"
28293 msgstr ""
28294
28295 #. type: verbatim
28296 #: ../src/guestfs-actions.pod:3069
28297 #, no-wrap
28298 msgid ""
28299 " char *\n"
28300 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28301 "                              const char *root,\n"
28302 "                              size_t *size_r,\n"
28303 "                              va_list args);\n"
28304 "\n"
28305 msgstr ""
28306
28307 #. type: textblock
28308 #: ../src/guestfs-actions.pod:3075
28309 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28310 msgstr ""
28311
28312 #. type: =head2
28313 #: ../src/guestfs-actions.pod:3079
28314 msgid "guestfs_inspect_get_icon_argv"
28315 msgstr ""
28316
28317 #. type: verbatim
28318 #: ../src/guestfs-actions.pod:3081
28319 #, no-wrap
28320 msgid ""
28321 " char *\n"
28322 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28323 "                                const char *root,\n"
28324 "                                size_t *size_r,\n"
28325 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
28326 "\n"
28327 msgstr ""
28328
28329 #. type: textblock
28330 #: ../src/guestfs-actions.pod:3087
28331 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28332 msgstr ""
28333
28334 #. type: =head2
28335 #: ../src/guestfs-actions.pod:3091
28336 msgid "guestfs_inspect_get_major_version"
28337 msgstr ""
28338
28339 #. type: verbatim
28340 #: ../src/guestfs-actions.pod:3093
28341 #, no-wrap
28342 msgid ""
28343 " int\n"
28344 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28345 "                                    const char *root);\n"
28346 "\n"
28347 msgstr ""
28348
28349 #. type: =head2
28350 #: ../src/guestfs-actions.pod:3115
28351 msgid "guestfs_inspect_get_minor_version"
28352 msgstr ""
28353
28354 #. type: verbatim
28355 #: ../src/guestfs-actions.pod:3117
28356 #, no-wrap
28357 msgid ""
28358 " int\n"
28359 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28360 "                                    const char *root);\n"
28361 "\n"
28362 msgstr ""
28363
28364 #. type: textblock
28365 #: ../src/guestfs-actions.pod:3126
28366 msgid ""
28367 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28368 "C<guestfs_inspect_get_major_version>."
28369 msgstr ""
28370
28371 #. type: =head2
28372 #: ../src/guestfs-actions.pod:3133
28373 msgid "guestfs_inspect_get_mountpoints"
28374 msgstr ""
28375
28376 #. type: verbatim
28377 #: ../src/guestfs-actions.pod:3135
28378 #, no-wrap
28379 msgid ""
28380 " char **\n"
28381 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28382 "                                  const char *root);\n"
28383 "\n"
28384 msgstr ""
28385
28386 #. type: textblock
28387 #: ../src/guestfs-actions.pod:3156
28388 msgid ""
28389 "For operating systems like Windows which still use drive letters, this call "
28390 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28391 "information about the mapping of drive letters to partitions, see "
28392 "C<guestfs_inspect_get_drive_mappings>."
28393 msgstr ""
28394
28395 #. type: textblock
28396 #: ../src/guestfs-actions.pod:3162
28397 msgid ""
28398 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28399 "C<guestfs_inspect_get_filesystems>."
28400 msgstr ""
28401
28402 #. type: =head2
28403 #: ../src/guestfs-actions.pod:3173
28404 msgid "guestfs_inspect_get_package_format"
28405 msgstr ""
28406
28407 #. type: verbatim
28408 #: ../src/guestfs-actions.pod:3175
28409 #, no-wrap
28410 msgid ""
28411 " char *\n"
28412 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28413 "                                     const char *root);\n"
28414 "\n"
28415 msgstr ""
28416
28417 #. type: textblock
28418 #: ../src/guestfs-actions.pod:3179
28419 msgid ""
28420 "This function and C<guestfs_inspect_get_package_management> return the "
28421 "package format and package management tool used by the inspected operating "
28422 "system.  For example for Fedora these functions would return C<rpm> (package "
28423 "format) and C<yum> (package management)."
28424 msgstr ""
28425
28426 #. type: textblock
28427 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3226
28428 msgid "(Added in 1.7.5)"
28429 msgstr "(Додано у 1.7.5)"
28430
28431 #. type: =head2
28432 #: ../src/guestfs-actions.pod:3200
28433 msgid "guestfs_inspect_get_package_management"
28434 msgstr ""
28435
28436 #. type: verbatim
28437 #: ../src/guestfs-actions.pod:3202
28438 #, no-wrap
28439 msgid ""
28440 " char *\n"
28441 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28442 "                                         const char *root);\n"
28443 "\n"
28444 msgstr ""
28445
28446 #. type: textblock
28447 #: ../src/guestfs-actions.pod:3206
28448 msgid ""
28449 "C<guestfs_inspect_get_package_format> and this function return the package "
28450 "format and package management tool used by the inspected operating system.  "
28451 "For example for Fedora these functions would return C<rpm> (package format) "
28452 "and C<yum> (package management)."
28453 msgstr ""
28454
28455 #. type: =head2
28456 #: ../src/guestfs-actions.pod:3228
28457 msgid "guestfs_inspect_get_product_name"
28458 msgstr ""
28459
28460 #. type: verbatim
28461 #: ../src/guestfs-actions.pod:3230
28462 #, no-wrap
28463 msgid ""
28464 " char *\n"
28465 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28466 "                                   const char *root);\n"
28467 "\n"
28468 msgstr ""
28469
28470 #. type: =head2
28471 #: ../src/guestfs-actions.pod:3249
28472 msgid "guestfs_inspect_get_product_variant"
28473 msgstr ""
28474
28475 #. type: verbatim
28476 #: ../src/guestfs-actions.pod:3251
28477 #, no-wrap
28478 msgid ""
28479 " char *\n"
28480 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28481 "                                      const char *root);\n"
28482 "\n"
28483 msgstr ""
28484
28485 #. type: textblock
28486 #: ../src/guestfs-actions.pod:3274
28487 msgid ""
28488 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28489 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28490 msgstr ""
28491
28492 #. type: textblock
28493 #: ../src/guestfs-actions.pod:3281
28494 msgid "(Added in 1.9.13)"
28495 msgstr "(Додано у 1.9.13)"
28496
28497 #. type: =head2
28498 #: ../src/guestfs-actions.pod:3283
28499 msgid "guestfs_inspect_get_roots"
28500 msgstr ""
28501
28502 #. type: verbatim
28503 #: ../src/guestfs-actions.pod:3285
28504 #, no-wrap
28505 msgid ""
28506 " char **\n"
28507 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28508 "\n"
28509 msgstr ""
28510
28511 #. type: textblock
28512 #: ../src/guestfs-actions.pod:3288
28513 msgid ""
28514 "This function is a convenient way to get the list of root devices, as "
28515 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28516 "the whole inspection process."
28517 msgstr ""
28518
28519 #. type: textblock
28520 #: ../src/guestfs-actions.pod:3292
28521 msgid ""
28522 "This returns an empty list if either no root devices were found or the "
28523 "caller has not called C<guestfs_inspect_os>."
28524 msgstr ""
28525
28526 #. type: textblock
28527 #: ../src/guestfs-actions.pod:3301
28528 msgid "(Added in 1.7.3)"
28529 msgstr "(Додано у 1.7.3)"
28530
28531 #. type: =head2
28532 #: ../src/guestfs-actions.pod:3303
28533 msgid "guestfs_inspect_get_type"
28534 msgstr ""
28535
28536 #. type: verbatim
28537 #: ../src/guestfs-actions.pod:3305
28538 #, no-wrap
28539 msgid ""
28540 " char *\n"
28541 " guestfs_inspect_get_type (guestfs_h *g,\n"
28542 "                           const char *root);\n"
28543 "\n"
28544 msgstr ""
28545
28546 #. type: =head2
28547 #: ../src/guestfs-actions.pod:3346
28548 msgid "guestfs_inspect_get_windows_current_control_set"
28549 msgstr ""
28550
28551 #. type: verbatim
28552 #: ../src/guestfs-actions.pod:3348
28553 #, no-wrap
28554 msgid ""
28555 " char *\n"
28556 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28557 "                                                  const char *root);\n"
28558 "\n"
28559 msgstr ""
28560
28561 #. type: =head2
28562 #: ../src/guestfs-actions.pod:3366
28563 msgid "guestfs_inspect_get_windows_systemroot"
28564 msgstr ""
28565
28566 #. type: verbatim
28567 #: ../src/guestfs-actions.pod:3368
28568 #, no-wrap
28569 msgid ""
28570 " char *\n"
28571 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28572 "                                         const char *root);\n"
28573 "\n"
28574 msgstr ""
28575
28576 #. type: textblock
28577 #: ../src/guestfs-actions.pod:3384
28578 msgid "(Added in 1.5.25)"
28579 msgstr "(Додано у 1.5.25)"
28580
28581 #. type: =head2
28582 #: ../src/guestfs-actions.pod:3386
28583 msgid "guestfs_inspect_is_live"
28584 msgstr ""
28585
28586 #. type: verbatim
28587 #: ../src/guestfs-actions.pod:3388
28588 #, no-wrap
28589 msgid ""
28590 " int\n"
28591 " guestfs_inspect_is_live (guestfs_h *g,\n"
28592 "                          const char *root);\n"
28593 "\n"
28594 msgstr ""
28595
28596 #. type: textblock
28597 #: ../src/guestfs-actions.pod:3392
28598 msgid ""
28599 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28600 "disk), then this returns true if a live image was detected on the disk."
28601 msgstr ""
28602
28603 #. type: =head2
28604 #: ../src/guestfs-actions.pod:3402
28605 msgid "guestfs_inspect_is_multipart"
28606 msgstr ""
28607
28608 #. type: verbatim
28609 #: ../src/guestfs-actions.pod:3404
28610 #, no-wrap
28611 msgid ""
28612 " int\n"
28613 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28614 "                               const char *root);\n"
28615 "\n"
28616 msgstr ""
28617
28618 #. type: textblock
28619 #: ../src/guestfs-actions.pod:3408
28620 msgid ""
28621 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28622 "disk), then this returns true if the disk is part of a set."
28623 msgstr ""
28624
28625 #. type: =head2
28626 #: ../src/guestfs-actions.pod:3418
28627 msgid "guestfs_inspect_is_netinst"
28628 msgstr ""
28629
28630 #. type: verbatim
28631 #: ../src/guestfs-actions.pod:3420
28632 #, no-wrap
28633 msgid ""
28634 " int\n"
28635 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28636 "                             const char *root);\n"
28637 "\n"
28638 msgstr ""
28639
28640 #. type: textblock
28641 #: ../src/guestfs-actions.pod:3424
28642 msgid ""
28643 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28644 "disk), then this returns true if the disk is a network installer, ie. not a "
28645 "self-contained install CD but one which is likely to require network access "
28646 "to complete the install."
28647 msgstr ""
28648
28649 #. type: =head2
28650 #: ../src/guestfs-actions.pod:3436
28651 msgid "guestfs_inspect_list_applications"
28652 msgstr ""
28653
28654 #. type: verbatim
28655 #: ../src/guestfs-actions.pod:3438
28656 #, no-wrap
28657 msgid ""
28658 " struct guestfs_application_list *\n"
28659 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28660 "                                    const char *root);\n"
28661 "\n"
28662 msgstr ""
28663
28664 #. type: textblock
28665 #: ../src/guestfs-actions.pod:3444
28666 msgid ""
28667 "I<Note:> This call works differently from other parts of the inspection "
28668 "API.  You have to call C<guestfs_inspect_os>, then "
28669 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28670 "this.  Listing applications is a significantly more difficult operation "
28671 "which requires access to the full filesystem.  Also note that unlike the "
28672 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28673 "the libguestfs handle, this call actually reads parts of the mounted "
28674 "filesystems during the call."
28675 msgstr ""
28676
28677 #. type: textblock
28678 #: ../src/guestfs-actions.pod:3534
28679 msgid ""
28680 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28681 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28682 "after use>."
28683 msgstr ""
28684
28685 #. type: textblock
28686 #: ../src/guestfs-actions.pod:3538
28687 msgid "(Added in 1.7.8)"
28688 msgstr "(Додано у 1.7.8)"
28689
28690 #. type: =head2
28691 #: ../src/guestfs-actions.pod:3540
28692 msgid "guestfs_inspect_os"
28693 msgstr ""
28694
28695 #. type: verbatim
28696 #: ../src/guestfs-actions.pod:3542
28697 #, no-wrap
28698 msgid ""
28699 " char **\n"
28700 " guestfs_inspect_os (guestfs_h *g);\n"
28701 "\n"
28702 msgstr ""
28703
28704 #. type: textblock
28705 #: ../src/guestfs-actions.pod:3558
28706 msgid ""
28707 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28708 "functions in order to query further information about each operating system, "
28709 "such as the name and version."
28710 msgstr ""
28711
28712 #. type: textblock
28713 #: ../src/guestfs-actions.pod:3563
28714 msgid ""
28715 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28716 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28717 "the contents.  This should be called with no disks currently mounted.  The "
28718 "function may also use Augeas, so any existing Augeas handle will be closed."
28719 msgstr ""
28720
28721 #. type: textblock
28722 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3906
28723 #: ../src/guestfs-actions.pod:3988
28724 msgid "See also C<guestfs_list_filesystems>."
28725 msgstr ""
28726
28727 #. type: =head2
28728 #: ../src/guestfs-actions.pod:3583
28729 msgid "guestfs_is_blockdev"
28730 msgstr ""
28731
28732 #. type: verbatim
28733 #: ../src/guestfs-actions.pod:3585
28734 #, no-wrap
28735 msgid ""
28736 " int\n"
28737 " guestfs_is_blockdev (guestfs_h *g,\n"
28738 "                      const char *path);\n"
28739 "\n"
28740 msgstr ""
28741
28742 #. type: textblock
28743 #: ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3621
28744 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3666
28745 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3738
28746 #: ../src/guestfs-actions.pod:3753
28747 msgid "See also C<guestfs_stat>."
28748 msgstr ""
28749
28750 #. type: textblock
28751 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3625
28752 #: ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:3742
28753 #: ../src/guestfs-actions.pod:3757
28754 msgid "(Added in 1.5.10)"
28755 msgstr "(Додано у 1.5.10)"
28756
28757 #. type: =head2
28758 #: ../src/guestfs-actions.pod:3598
28759 msgid "guestfs_is_busy"
28760 msgstr ""
28761
28762 #. type: verbatim
28763 #: ../src/guestfs-actions.pod:3600
28764 #, no-wrap
28765 msgid ""
28766 " int\n"
28767 " guestfs_is_busy (guestfs_h *g);\n"
28768 "\n"
28769 msgstr ""
28770
28771 #. type: =head2
28772 #: ../src/guestfs-actions.pod:3612
28773 msgid "guestfs_is_chardev"
28774 msgstr ""
28775
28776 #. type: verbatim
28777 #: ../src/guestfs-actions.pod:3614
28778 #, no-wrap
28779 msgid ""
28780 " int\n"
28781 " guestfs_is_chardev (guestfs_h *g,\n"
28782 "                     const char *path);\n"
28783 "\n"
28784 msgstr ""
28785
28786 #. type: =head2
28787 #: ../src/guestfs-actions.pod:3627
28788 msgid "guestfs_is_config"
28789 msgstr ""
28790
28791 #. type: verbatim
28792 #: ../src/guestfs-actions.pod:3629
28793 #, no-wrap
28794 msgid ""
28795 " int\n"
28796 " guestfs_is_config (guestfs_h *g);\n"
28797 "\n"
28798 msgstr ""
28799
28800 #. type: =head2
28801 #: ../src/guestfs-actions.pod:3641
28802 msgid "guestfs_is_dir"
28803 msgstr ""
28804
28805 #. type: verbatim
28806 #: ../src/guestfs-actions.pod:3643
28807 #, no-wrap
28808 msgid ""
28809 " int\n"
28810 " guestfs_is_dir (guestfs_h *g,\n"
28811 "                 const char *path);\n"
28812 "\n"
28813 msgstr ""
28814
28815 #. type: =head2
28816 #: ../src/guestfs-actions.pod:3657
28817 msgid "guestfs_is_fifo"
28818 msgstr ""
28819
28820 #. type: verbatim
28821 #: ../src/guestfs-actions.pod:3659
28822 #, no-wrap
28823 msgid ""
28824 " int\n"
28825 " guestfs_is_fifo (guestfs_h *g,\n"
28826 "                  const char *path);\n"
28827 "\n"
28828 msgstr ""
28829
28830 #. type: =head2
28831 #: ../src/guestfs-actions.pod:3672
28832 msgid "guestfs_is_file"
28833 msgstr ""
28834
28835 #. type: verbatim
28836 #: ../src/guestfs-actions.pod:3674
28837 #, no-wrap
28838 msgid ""
28839 " int\n"
28840 " guestfs_is_file (guestfs_h *g,\n"
28841 "                  const char *path);\n"
28842 "\n"
28843 msgstr ""
28844
28845 #. type: =head2
28846 #: ../src/guestfs-actions.pod:3688
28847 msgid "guestfs_is_launching"
28848 msgstr ""
28849
28850 #. type: verbatim
28851 #: ../src/guestfs-actions.pod:3690
28852 #, no-wrap
28853 msgid ""
28854 " int\n"
28855 " guestfs_is_launching (guestfs_h *g);\n"
28856 "\n"
28857 msgstr ""
28858
28859 #. type: =head2
28860 #: ../src/guestfs-actions.pod:3702
28861 msgid "guestfs_is_lv"
28862 msgstr ""
28863
28864 #. type: verbatim
28865 #: ../src/guestfs-actions.pod:3704
28866 #, no-wrap
28867 msgid ""
28868 " int\n"
28869 " guestfs_is_lv (guestfs_h *g,\n"
28870 "                const char *device);\n"
28871 "\n"
28872 msgstr ""
28873
28874 #. type: =head2
28875 #: ../src/guestfs-actions.pod:3715
28876 msgid "guestfs_is_ready"
28877 msgstr ""
28878
28879 #. type: verbatim
28880 #: ../src/guestfs-actions.pod:3717
28881 #, no-wrap
28882 msgid ""
28883 " int\n"
28884 " guestfs_is_ready (guestfs_h *g);\n"
28885 "\n"
28886 msgstr ""
28887
28888 #. type: =head2
28889 #: ../src/guestfs-actions.pod:3729
28890 msgid "guestfs_is_socket"
28891 msgstr ""
28892
28893 #. type: verbatim
28894 #: ../src/guestfs-actions.pod:3731
28895 #, no-wrap
28896 msgid ""
28897 " int\n"
28898 " guestfs_is_socket (guestfs_h *g,\n"
28899 "                    const char *path);\n"
28900 "\n"
28901 msgstr ""
28902
28903 #. type: =head2
28904 #: ../src/guestfs-actions.pod:3744
28905 msgid "guestfs_is_symlink"
28906 msgstr ""
28907
28908 #. type: verbatim
28909 #: ../src/guestfs-actions.pod:3746
28910 #, no-wrap
28911 msgid ""
28912 " int\n"
28913 " guestfs_is_symlink (guestfs_h *g,\n"
28914 "                     const char *path);\n"
28915 "\n"
28916 msgstr ""
28917
28918 #. type: =head2
28919 #: ../src/guestfs-actions.pod:3759
28920 msgid "guestfs_is_zero"
28921 msgstr ""
28922
28923 #. type: verbatim
28924 #: ../src/guestfs-actions.pod:3761
28925 #, no-wrap
28926 msgid ""
28927 " int\n"
28928 " guestfs_is_zero (guestfs_h *g,\n"
28929 "                  const char *path);\n"
28930 "\n"
28931 msgstr ""
28932
28933 #. type: textblock
28934 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3784
28935 msgid "(Added in 1.11.8)"
28936 msgstr "(Додано у 1.11.8)"
28937
28938 #. type: =head2
28939 #: ../src/guestfs-actions.pod:3772
28940 msgid "guestfs_is_zero_device"
28941 msgstr ""
28942
28943 #. type: verbatim
28944 #: ../src/guestfs-actions.pod:3774
28945 #, no-wrap
28946 msgid ""
28947 " int\n"
28948 " guestfs_is_zero_device (guestfs_h *g,\n"
28949 "                         const char *device);\n"
28950 "\n"
28951 msgstr ""
28952
28953 #. type: =head2
28954 #: ../src/guestfs-actions.pod:3786
28955 msgid "guestfs_kill_subprocess"
28956 msgstr ""
28957
28958 #. type: verbatim
28959 #: ../src/guestfs-actions.pod:3788
28960 #, no-wrap
28961 msgid ""
28962 " int\n"
28963 " guestfs_kill_subprocess (guestfs_h *g);\n"
28964 "\n"
28965 msgstr ""
28966
28967 #. type: =head2
28968 #: ../src/guestfs-actions.pod:3797
28969 msgid "guestfs_launch"
28970 msgstr ""
28971
28972 #. type: verbatim
28973 #: ../src/guestfs-actions.pod:3799
28974 #, no-wrap
28975 msgid ""
28976 " int\n"
28977 " guestfs_launch (guestfs_h *g);\n"
28978 "\n"
28979 msgstr ""
28980
28981 #. type: =head2
28982 #: ../src/guestfs-actions.pod:3817
28983 msgid "guestfs_lchown"
28984 msgstr ""
28985
28986 #. type: verbatim
28987 #: ../src/guestfs-actions.pod:3819
28988 #, no-wrap
28989 msgid ""
28990 " int\n"
28991 " guestfs_lchown (guestfs_h *g,\n"
28992 "                 int owner,\n"
28993 "                 int group,\n"
28994 "                 const char *path);\n"
28995 "\n"
28996 msgstr ""
28997
28998 #. type: textblock
28999 #: ../src/guestfs-actions.pod:3825
29000 msgid ""
29001 "Change the file owner to C<owner> and group to C<group>.  This is like "
29002 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29003 "changed, not the target."
29004 msgstr ""
29005
29006 #. type: =head2
29007 #: ../src/guestfs-actions.pod:3837
29008 msgid "guestfs_lgetxattr"
29009 msgstr ""
29010
29011 #. type: verbatim
29012 #: ../src/guestfs-actions.pod:3839
29013 #, no-wrap
29014 msgid ""
29015 " char *\n"
29016 " guestfs_lgetxattr (guestfs_h *g,\n"
29017 "                    const char *path,\n"
29018 "                    const char *name,\n"
29019 "                    size_t *size_r);\n"
29020 "\n"
29021 msgstr ""
29022
29023 #. type: textblock
29024 #: ../src/guestfs-actions.pod:3859
29025 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29026 msgstr ""
29027
29028 #. type: =head2
29029 #: ../src/guestfs-actions.pod:3867
29030 msgid "guestfs_lgetxattrs"
29031 msgstr ""
29032
29033 #. type: verbatim
29034 #: ../src/guestfs-actions.pod:3869
29035 #, no-wrap
29036 msgid ""
29037 " struct guestfs_xattr_list *\n"
29038 " guestfs_lgetxattrs (guestfs_h *g,\n"
29039 "                     const char *path);\n"
29040 "\n"
29041 msgstr ""
29042
29043 #. type: textblock
29044 #: ../src/guestfs-actions.pod:3873
29045 msgid ""
29046 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29047 "then it returns the extended attributes of the link itself."
29048 msgstr ""
29049
29050 #. type: =head2
29051 #: ../src/guestfs-actions.pod:3883
29052 msgid "guestfs_list_9p"
29053 msgstr ""
29054
29055 #. type: verbatim
29056 #: ../src/guestfs-actions.pod:3885
29057 #, no-wrap
29058 msgid ""
29059 " char **\n"
29060 " guestfs_list_9p (guestfs_h *g);\n"
29061 "\n"
29062 msgstr ""
29063
29064 #. type: =head2
29065 #: ../src/guestfs-actions.pod:3897
29066 msgid "guestfs_list_devices"
29067 msgstr ""
29068
29069 #. type: verbatim
29070 #: ../src/guestfs-actions.pod:3899
29071 #, no-wrap
29072 msgid ""
29073 " char **\n"
29074 " guestfs_list_devices (guestfs_h *g);\n"
29075 "\n"
29076 msgstr ""
29077
29078 #. type: =head2
29079 #: ../src/guestfs-actions.pod:3914
29080 msgid "guestfs_list_dm_devices"
29081 msgstr ""
29082
29083 #. type: verbatim
29084 #: ../src/guestfs-actions.pod:3916
29085 #, no-wrap
29086 msgid ""
29087 " char **\n"
29088 " guestfs_list_dm_devices (guestfs_h *g);\n"
29089 "\n"
29090 msgstr ""
29091
29092 #. type: textblock
29093 #: ../src/guestfs-actions.pod:3921
29094 msgid ""
29095 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29096 "previous call to C<guestfs_luks_open>."
29097 msgstr ""
29098
29099 #. type: textblock
29100 #: ../src/guestfs-actions.pod:3924
29101 msgid ""
29102 "Device mapper devices which correspond to logical volumes are I<not> "
29103 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29104 "volumes."
29105 msgstr ""
29106
29107 #. type: textblock
29108 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:5378
29109 msgid "(Added in 1.11.15)"
29110 msgstr "(Додано у 1.11.15)"
29111
29112 #. type: =head2
29113 #: ../src/guestfs-actions.pod:3934
29114 msgid "guestfs_list_filesystems"
29115 msgstr ""
29116
29117 #. type: verbatim
29118 #: ../src/guestfs-actions.pod:3936
29119 #, no-wrap
29120 msgid ""
29121 " char **\n"
29122 " guestfs_list_filesystems (guestfs_h *g);\n"
29123 "\n"
29124 msgstr ""
29125
29126 #. type: textblock
29127 #: ../src/guestfs-actions.pod:3956
29128 msgid ""
29129 "This command runs other libguestfs commands, which might include "
29130 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29131 "soon after launch and only when nothing is mounted."
29132 msgstr ""
29133
29134 #. type: textblock
29135 #: ../src/guestfs-actions.pod:3960
29136 msgid ""
29137 "Not all of the filesystems returned will be mountable.  In particular, swap "
29138 "partitions are returned in the list.  Also this command does not check that "
29139 "each filesystem found is valid and mountable, and some filesystems might be "
29140 "mountable but require special options.  Filesystems may not all belong to a "
29141 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29142 msgstr ""
29143
29144 #. type: textblock
29145 #: ../src/guestfs-actions.pod:3974 ../src/guestfs-actions.pod:5739
29146 msgid "(Added in 1.5.15)"
29147 msgstr "(Додано у 1.5.15)"
29148
29149 #. type: =head2
29150 #: ../src/guestfs-actions.pod:3976
29151 msgid "guestfs_list_partitions"
29152 msgstr "guestfs_list_partitions"
29153
29154 #. type: verbatim
29155 #: ../src/guestfs-actions.pod:3978
29156 #, no-wrap
29157 msgid ""
29158 " char **\n"
29159 " guestfs_list_partitions (guestfs_h *g);\n"
29160 "\n"
29161 msgstr ""
29162 " char **\n"
29163 " guestfs_list_partitions (guestfs_h *g);\n"
29164 "\n"
29165
29166 #. type: textblock
29167 #: ../src/guestfs-actions.pod:3985
29168 msgid ""
29169 "This does not return logical volumes.  For that you will need to call "
29170 "C<guestfs_lvs>."
29171 msgstr ""
29172
29173 #. type: =head2
29174 #: ../src/guestfs-actions.pod:3996
29175 msgid "guestfs_ll"
29176 msgstr "guestfs_ll"
29177
29178 #. type: verbatim
29179 #: ../src/guestfs-actions.pod:3998
29180 #, no-wrap
29181 msgid ""
29182 " char *\n"
29183 " guestfs_ll (guestfs_h *g,\n"
29184 "             const char *directory);\n"
29185 "\n"
29186 msgstr ""
29187 " char *\n"
29188 " guestfs_ll (guestfs_h *g,\n"
29189 "             const char *directory);\n"
29190 "\n"
29191
29192 #. type: =head2
29193 #: ../src/guestfs-actions.pod:4013
29194 msgid "guestfs_ln"
29195 msgstr "guestfs_ln"
29196
29197 #. type: verbatim
29198 #: ../src/guestfs-actions.pod:4015
29199 #, no-wrap
29200 msgid ""
29201 " int\n"
29202 " guestfs_ln (guestfs_h *g,\n"
29203 "             const char *target,\n"
29204 "             const char *linkname);\n"
29205 "\n"
29206 msgstr ""
29207 " int\n"
29208 " guestfs_ln (guestfs_h *g,\n"
29209 "             const char *target,\n"
29210 "             const char *linkname);\n"
29211 "\n"
29212
29213 #. type: =head2
29214 #: ../src/guestfs-actions.pod:4026
29215 msgid "guestfs_ln_f"
29216 msgstr "guestfs_ln_f"
29217
29218 #. type: verbatim
29219 #: ../src/guestfs-actions.pod:4028
29220 #, no-wrap
29221 msgid ""
29222 " int\n"
29223 " guestfs_ln_f (guestfs_h *g,\n"
29224 "               const char *target,\n"
29225 "               const char *linkname);\n"
29226 "\n"
29227 msgstr ""
29228 " int\n"
29229 " guestfs_ln_f (guestfs_h *g,\n"
29230 "               const char *target,\n"
29231 "               const char *linkname);\n"
29232 "\n"
29233
29234 #. type: =head2
29235 #: ../src/guestfs-actions.pod:4040
29236 msgid "guestfs_ln_s"
29237 msgstr "guestfs_ln_s"
29238
29239 #. type: verbatim
29240 #: ../src/guestfs-actions.pod:4042
29241 #, no-wrap
29242 msgid ""
29243 " int\n"
29244 " guestfs_ln_s (guestfs_h *g,\n"
29245 "               const char *target,\n"
29246 "               const char *linkname);\n"
29247 "\n"
29248 msgstr ""
29249 " int\n"
29250 " guestfs_ln_s (guestfs_h *g,\n"
29251 "               const char *target,\n"
29252 "               const char *linkname);\n"
29253 "\n"
29254
29255 #. type: =head2
29256 #: ../src/guestfs-actions.pod:4053
29257 msgid "guestfs_ln_sf"
29258 msgstr "guestfs_ln_sf"
29259
29260 #. type: verbatim
29261 #: ../src/guestfs-actions.pod:4055
29262 #, no-wrap
29263 msgid ""
29264 " int\n"
29265 " guestfs_ln_sf (guestfs_h *g,\n"
29266 "                const char *target,\n"
29267 "                const char *linkname);\n"
29268 "\n"
29269 msgstr ""
29270 " int\n"
29271 " guestfs_ln_sf (guestfs_h *g,\n"
29272 "                const char *target,\n"
29273 "                const char *linkname);\n"
29274 "\n"
29275
29276 #. type: =head2
29277 #: ../src/guestfs-actions.pod:4067
29278 msgid "guestfs_lremovexattr"
29279 msgstr "guestfs_lremovexattr"
29280
29281 #. type: verbatim
29282 #: ../src/guestfs-actions.pod:4069
29283 #, no-wrap
29284 msgid ""
29285 " int\n"
29286 " guestfs_lremovexattr (guestfs_h *g,\n"
29287 "                       const char *xattr,\n"
29288 "                       const char *path);\n"
29289 "\n"
29290 msgstr ""
29291 " int\n"
29292 " guestfs_lremovexattr (guestfs_h *g,\n"
29293 "                       const char *xattr,\n"
29294 "                       const char *path);\n"
29295 "\n"
29296
29297 #. type: textblock
29298 #: ../src/guestfs-actions.pod:4074
29299 msgid ""
29300 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29301 "link, then it removes an extended attribute of the link itself."
29302 msgstr ""
29303
29304 #. type: =head2
29305 #: ../src/guestfs-actions.pod:4082
29306 msgid "guestfs_ls"
29307 msgstr "guestfs_ls"
29308
29309 #. type: verbatim
29310 #: ../src/guestfs-actions.pod:4084
29311 #, no-wrap
29312 msgid ""
29313 " char **\n"
29314 " guestfs_ls (guestfs_h *g,\n"
29315 "             const char *directory);\n"
29316 "\n"
29317 msgstr ""
29318 " char **\n"
29319 " guestfs_ls (guestfs_h *g,\n"
29320 "             const char *directory);\n"
29321 "\n"
29322
29323 #. type: textblock
29324 #: ../src/guestfs-actions.pod:4092
29325 msgid ""
29326 "This command is mostly useful for interactive sessions.  Programs should "
29327 "probably use C<guestfs_readdir> instead."
29328 msgstr ""
29329
29330 #. type: =head2
29331 #: ../src/guestfs-actions.pod:4101
29332 msgid "guestfs_lsetxattr"
29333 msgstr "guestfs_lsetxattr"
29334
29335 #. type: verbatim
29336 #: ../src/guestfs-actions.pod:4103
29337 #, no-wrap
29338 msgid ""
29339 " int\n"
29340 " guestfs_lsetxattr (guestfs_h *g,\n"
29341 "                    const char *xattr,\n"
29342 "                    const char *val,\n"
29343 "                    int vallen,\n"
29344 "                    const char *path);\n"
29345 "\n"
29346 msgstr ""
29347 " int\n"
29348 " guestfs_lsetxattr (guestfs_h *g,\n"
29349 "                    const char *xattr,\n"
29350 "                    const char *val,\n"
29351 "                    int vallen,\n"
29352 "                    const char *path);\n"
29353 "\n"
29354
29355 #. type: textblock
29356 #: ../src/guestfs-actions.pod:4110
29357 msgid ""
29358 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29359 "then it sets an extended attribute of the link itself."
29360 msgstr ""
29361
29362 #. type: =head2
29363 #: ../src/guestfs-actions.pod:4118
29364 msgid "guestfs_lstat"
29365 msgstr "guestfs_lstat"
29366
29367 #. type: verbatim
29368 #: ../src/guestfs-actions.pod:4120
29369 #, no-wrap
29370 msgid ""
29371 " struct guestfs_stat *\n"
29372 " guestfs_lstat (guestfs_h *g,\n"
29373 "                const char *path);\n"
29374 "\n"
29375 msgstr ""
29376 " struct guestfs_stat *\n"
29377 " guestfs_lstat (guestfs_h *g,\n"
29378 "                const char *path);\n"
29379 "\n"
29380
29381 #. type: textblock
29382 #: ../src/guestfs-actions.pod:4126
29383 msgid ""
29384 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29385 "link, then the link is stat-ed, not the file it refers to."
29386 msgstr ""
29387
29388 #. type: textblock
29389 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:6913
29390 msgid ""
29391 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29392 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29393 msgstr ""
29394
29395 #. type: textblock
29396 #: ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:6917
29397 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:7316
29398 msgid "(Added in 0.9.2)"
29399 msgstr "(Додано у 0.9.2)"
29400
29401 #. type: =head2
29402 #: ../src/guestfs-actions.pod:4138
29403 msgid "guestfs_lstatlist"
29404 msgstr "guestfs_lstatlist"
29405
29406 #. type: verbatim
29407 #: ../src/guestfs-actions.pod:4140
29408 #, no-wrap
29409 msgid ""
29410 " struct guestfs_stat_list *\n"
29411 " guestfs_lstatlist (guestfs_h *g,\n"
29412 "                    const char *path,\n"
29413 "                    char *const *names);\n"
29414 "\n"
29415 msgstr ""
29416 " struct guestfs_stat_list *\n"
29417 " guestfs_lstatlist (guestfs_h *g,\n"
29418 "                    const char *path,\n"
29419 "                    char *const *names);\n"
29420 "\n"
29421
29422 #. type: textblock
29423 #: ../src/guestfs-actions.pod:4145
29424 msgid ""
29425 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29426 "files, where all files are in the directory C<path>.  C<names> is the list "
29427 "of files from this directory."
29428 msgstr ""
29429
29430 #. type: textblock
29431 #: ../src/guestfs-actions.pod:4154
29432 msgid ""
29433 "This call is intended for programs that want to efficiently list a directory "
29434 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29435 "for a similarly efficient call for getting extended attributes.  Very long "
29436 "directory listings might cause the protocol message size to be exceeded, "
29437 "causing this call to fail.  The caller must split up such requests into "
29438 "smaller groups of names."
29439 msgstr ""
29440
29441 #. type: textblock
29442 #: ../src/guestfs-actions.pod:4162
29443 msgid ""
29444 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29445 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29446 msgstr ""
29447
29448 #. type: =head2
29449 #: ../src/guestfs-actions.pod:4168
29450 msgid "guestfs_luks_add_key"
29451 msgstr "guestfs_luks_add_key"
29452
29453 #. type: verbatim
29454 #: ../src/guestfs-actions.pod:4170
29455 #, no-wrap
29456 msgid ""
29457 " int\n"
29458 " guestfs_luks_add_key (guestfs_h *g,\n"
29459 "                       const char *device,\n"
29460 "                       const char *key,\n"
29461 "                       const char *newkey,\n"
29462 "                       int keyslot);\n"
29463 "\n"
29464 msgstr ""
29465 " int\n"
29466 " guestfs_luks_add_key (guestfs_h *g,\n"
29467 "                       const char *device,\n"
29468 "                       const char *key,\n"
29469 "                       const char *newkey,\n"
29470 "                       int keyslot);\n"
29471 "\n"
29472
29473 #. type: textblock
29474 #: ../src/guestfs-actions.pod:4182
29475 msgid ""
29476 "Note that if C<keyslot> already contains a key, then this command will "
29477 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29478 msgstr ""
29479
29480 #. type: textblock
29481 #: ../src/guestfs-actions.pod:4188 ../src/guestfs-actions.pod:4228
29482 #: ../src/guestfs-actions.pod:4251 ../src/guestfs-actions.pod:4271
29483 #: ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4325
29484 msgid ""
29485 "This function takes a key or passphrase parameter which could contain "
29486 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29487 "information."
29488 msgstr ""
29489
29490 #. type: textblock
29491 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4232
29492 #: ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:4275
29493 msgid "(Added in 1.5.2)"
29494 msgstr "(Додано у 1.5.2)"
29495
29496 #. type: =head2
29497 #: ../src/guestfs-actions.pod:4194
29498 msgid "guestfs_luks_close"
29499 msgstr "guestfs_luks_close"
29500
29501 #. type: verbatim
29502 #: ../src/guestfs-actions.pod:4196
29503 #, no-wrap
29504 msgid ""
29505 " int\n"
29506 " guestfs_luks_close (guestfs_h *g,\n"
29507 "                     const char *device);\n"
29508 "\n"
29509 msgstr ""
29510 " int\n"
29511 " guestfs_luks_close (guestfs_h *g,\n"
29512 "                     const char *device);\n"
29513 "\n"
29514
29515 #. type: textblock
29516 #: ../src/guestfs-actions.pod:4200
29517 msgid ""
29518 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29519 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29520 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29521 "underlying block device."
29522 msgstr ""
29523
29524 #. type: textblock
29525 #: ../src/guestfs-actions.pod:4208 ../src/guestfs-actions.pod:4310
29526 #: ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:4379
29527 #: ../src/guestfs-actions.pod:4427
29528 msgid "(Added in 1.5.1)"
29529 msgstr "(Додано у 1.5.1)"
29530
29531 #. type: =head2
29532 #: ../src/guestfs-actions.pod:4210
29533 msgid "guestfs_luks_format"
29534 msgstr "guestfs_luks_format"
29535
29536 #. type: verbatim
29537 #: ../src/guestfs-actions.pod:4212
29538 #, no-wrap
29539 msgid ""
29540 " int\n"
29541 " guestfs_luks_format (guestfs_h *g,\n"
29542 "                      const char *device,\n"
29543 "                      const char *key,\n"
29544 "                      int keyslot);\n"
29545 "\n"
29546 msgstr ""
29547 " int\n"
29548 " guestfs_luks_format (guestfs_h *g,\n"
29549 "                      const char *device,\n"
29550 "                      const char *key,\n"
29551 "                      int keyslot);\n"
29552 "\n"
29553
29554 #. type: =head2
29555 #: ../src/guestfs-actions.pod:4234
29556 msgid "guestfs_luks_format_cipher"
29557 msgstr "guestfs_luks_format_cipher"
29558
29559 #. type: verbatim
29560 #: ../src/guestfs-actions.pod:4236
29561 #, no-wrap
29562 msgid ""
29563 " int\n"
29564 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29565 "                             const char *device,\n"
29566 "                             const char *key,\n"
29567 "                             int keyslot,\n"
29568 "                             const char *cipher);\n"
29569 "\n"
29570 msgstr ""
29571 " int\n"
29572 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29573 "                             const char *device,\n"
29574 "                             const char *key,\n"
29575 "                             int keyslot,\n"
29576 "                             const char *cipher);\n"
29577 "\n"
29578
29579 #. type: textblock
29580 #: ../src/guestfs-actions.pod:4243
29581 msgid ""
29582 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29583 "set the C<cipher> used."
29584 msgstr ""
29585
29586 #. type: =head2
29587 #: ../src/guestfs-actions.pod:4257
29588 msgid "guestfs_luks_kill_slot"
29589 msgstr "guestfs_luks_kill_slot"
29590
29591 #. type: verbatim
29592 #: ../src/guestfs-actions.pod:4259
29593 #, no-wrap
29594 msgid ""
29595 " int\n"
29596 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29597 "                         const char *device,\n"
29598 "                         const char *key,\n"
29599 "                         int keyslot);\n"
29600 "\n"
29601 msgstr ""
29602 " int\n"
29603 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29604 "                         const char *device,\n"
29605 "                         const char *key,\n"
29606 "                         int keyslot);\n"
29607 "\n"
29608
29609 #. type: =head2
29610 #: ../src/guestfs-actions.pod:4277
29611 msgid "guestfs_luks_open"
29612 msgstr "guestfs_luks_open"
29613
29614 #. type: verbatim
29615 #: ../src/guestfs-actions.pod:4279
29616 #, no-wrap
29617 msgid ""
29618 " int\n"
29619 " guestfs_luks_open (guestfs_h *g,\n"
29620 "                    const char *device,\n"
29621 "                    const char *key,\n"
29622 "                    const char *mapname);\n"
29623 "\n"
29624 msgstr ""
29625 " int\n"
29626 " guestfs_luks_open (guestfs_h *g,\n"
29627 "                    const char *device,\n"
29628 "                    const char *key,\n"
29629 "                    const char *mapname);\n"
29630 "\n"
29631
29632 #. type: textblock
29633 #: ../src/guestfs-actions.pod:4297
29634 msgid ""
29635 "If this block device contains LVM volume groups, then calling "
29636 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29637 "visible."
29638 msgstr ""
29639
29640 #. type: textblock
29641 #: ../src/guestfs-actions.pod:4301
29642 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29643 msgstr ""
29644
29645 #. type: =head2
29646 #: ../src/guestfs-actions.pod:4312
29647 msgid "guestfs_luks_open_ro"
29648 msgstr "guestfs_luks_open_ro"
29649
29650 #. type: verbatim
29651 #: ../src/guestfs-actions.pod:4314
29652 #, no-wrap
29653 msgid ""
29654 " int\n"
29655 " guestfs_luks_open_ro (guestfs_h *g,\n"
29656 "                       const char *device,\n"
29657 "                       const char *key,\n"
29658 "                       const char *mapname);\n"
29659 "\n"
29660 msgstr ""
29661 " int\n"
29662 " guestfs_luks_open_ro (guestfs_h *g,\n"
29663 "                       const char *device,\n"
29664 "                       const char *key,\n"
29665 "                       const char *mapname);\n"
29666 "\n"
29667
29668 #. type: textblock
29669 #: ../src/guestfs-actions.pod:4320
29670 msgid ""
29671 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29672 "created."
29673 msgstr ""
29674
29675 #. type: =head2
29676 #: ../src/guestfs-actions.pod:4331
29677 msgid "guestfs_lvcreate"
29678 msgstr "guestfs_lvcreate"
29679
29680 #. type: verbatim
29681 #: ../src/guestfs-actions.pod:4333
29682 #, no-wrap
29683 msgid ""
29684 " int\n"
29685 " guestfs_lvcreate (guestfs_h *g,\n"
29686 "                   const char *logvol,\n"
29687 "                   const char *volgroup,\n"
29688 "                   int mbytes);\n"
29689 "\n"
29690 msgstr ""
29691 " int\n"
29692 " guestfs_lvcreate (guestfs_h *g,\n"
29693 "                   const char *logvol,\n"
29694 "                   const char *volgroup,\n"
29695 "                   int mbytes);\n"
29696 "\n"
29697
29698 #. type: =head2
29699 #: ../src/guestfs-actions.pod:4346
29700 msgid "guestfs_lvm_canonical_lv_name"
29701 msgstr "guestfs_lvm_canonical_lv_name"
29702
29703 #. type: verbatim
29704 #: ../src/guestfs-actions.pod:4348
29705 #, no-wrap
29706 msgid ""
29707 " char *\n"
29708 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29709 "                                const char *lvname);\n"
29710 "\n"
29711 msgstr ""
29712 " char *\n"
29713 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29714 "                                const char *lvname);\n"
29715 "\n"
29716
29717 #. type: textblock
29718 #: ../src/guestfs-actions.pod:4359
29719 msgid "See also C<guestfs_is_lv>."
29720 msgstr ""
29721
29722 #. type: textblock
29723 #: ../src/guestfs-actions.pod:4364
29724 msgid "(Added in 1.5.24)"
29725 msgstr "(Додано у 1.5.24)"
29726
29727 #. type: =head2
29728 #: ../src/guestfs-actions.pod:4366
29729 msgid "guestfs_lvm_clear_filter"
29730 msgstr "guestfs_lvm_clear_filter"
29731
29732 #. type: verbatim
29733 #: ../src/guestfs-actions.pod:4368
29734 #, no-wrap
29735 msgid ""
29736 " int\n"
29737 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29738 "\n"
29739 msgstr ""
29740 " int\n"
29741 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29742 "\n"
29743
29744 #. type: textblock
29745 #: ../src/guestfs-actions.pod:4371
29746 msgid ""
29747 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29748 "see every block device."
29749 msgstr ""
29750
29751 #. type: =head2
29752 #: ../src/guestfs-actions.pod:4381
29753 msgid "guestfs_lvm_remove_all"
29754 msgstr "guestfs_lvm_remove_all"
29755
29756 #. type: verbatim
29757 #: ../src/guestfs-actions.pod:4383
29758 #, no-wrap
29759 msgid ""
29760 " int\n"
29761 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29762 "\n"
29763 msgstr ""
29764 " int\n"
29765 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29766 "\n"
29767
29768 #. type: =head2
29769 #: ../src/guestfs-actions.pod:4396
29770 msgid "guestfs_lvm_set_filter"
29771 msgstr "guestfs_lvm_set_filter"
29772
29773 #. type: verbatim
29774 #: ../src/guestfs-actions.pod:4398
29775 #, no-wrap
29776 msgid ""
29777 " int\n"
29778 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29779 "                         char *const *devices);\n"
29780 "\n"
29781 msgstr ""
29782 " int\n"
29783 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29784 "                         char *const *devices);\n"
29785 "\n"
29786
29787 #. type: =head2
29788 #: ../src/guestfs-actions.pod:4429
29789 msgid "guestfs_lvremove"
29790 msgstr "guestfs_lvremove"
29791
29792 #. type: verbatim
29793 #: ../src/guestfs-actions.pod:4431
29794 #, no-wrap
29795 msgid ""
29796 " int\n"
29797 " guestfs_lvremove (guestfs_h *g,\n"
29798 "                   const char *device);\n"
29799 "\n"
29800 msgstr ""
29801 " int\n"
29802 " guestfs_lvremove (guestfs_h *g,\n"
29803 "                   const char *device);\n"
29804 "\n"
29805
29806 #. type: textblock
29807 #: ../src/guestfs-actions.pod:4443 ../src/guestfs-actions.pod:5836
29808 #: ../src/guestfs-actions.pod:7686
29809 msgid "(Added in 1.0.13)"
29810 msgstr "(Додано у 1.0.13)"
29811
29812 #. type: =head2
29813 #: ../src/guestfs-actions.pod:4445
29814 msgid "guestfs_lvrename"
29815 msgstr "guestfs_lvrename"
29816
29817 #. type: verbatim
29818 #: ../src/guestfs-actions.pod:4447
29819 #, no-wrap
29820 msgid ""
29821 " int\n"
29822 " guestfs_lvrename (guestfs_h *g,\n"
29823 "                   const char *logvol,\n"
29824 "                   const char *newlogvol);\n"
29825 "\n"
29826 msgstr ""
29827 " int\n"
29828 " guestfs_lvrename (guestfs_h *g,\n"
29829 "                   const char *logvol,\n"
29830 "                   const char *newlogvol);\n"
29831 "\n"
29832
29833 #. type: textblock
29834 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:7699
29835 msgid "(Added in 1.0.83)"
29836 msgstr "(Додано у 1.0.83)"
29837
29838 #. type: =head2
29839 #: ../src/guestfs-actions.pod:4458
29840 msgid "guestfs_lvresize"
29841 msgstr "guestfs_lvresize"
29842
29843 #. type: verbatim
29844 #: ../src/guestfs-actions.pod:4460
29845 #, no-wrap
29846 msgid ""
29847 " int\n"
29848 " guestfs_lvresize (guestfs_h *g,\n"
29849 "                   const char *device,\n"
29850 "                   int mbytes);\n"
29851 "\n"
29852 msgstr ""
29853 " int\n"
29854 " guestfs_lvresize (guestfs_h *g,\n"
29855 "                   const char *device,\n"
29856 "                   int mbytes);\n"
29857 "\n"
29858
29859 #. type: =head2
29860 #: ../src/guestfs-actions.pod:4473
29861 msgid "guestfs_lvresize_free"
29862 msgstr "guestfs_lvresize_free"
29863
29864 #. type: verbatim
29865 #: ../src/guestfs-actions.pod:4475
29866 #, no-wrap
29867 msgid ""
29868 " int\n"
29869 " guestfs_lvresize_free (guestfs_h *g,\n"
29870 "                        const char *lv,\n"
29871 "                        int percent);\n"
29872 "\n"
29873 msgstr ""
29874 " int\n"
29875 " guestfs_lvresize_free (guestfs_h *g,\n"
29876 "                        const char *lv,\n"
29877 "                        int percent);\n"
29878 "\n"
29879
29880 #. type: textblock
29881 #: ../src/guestfs-actions.pod:4488
29882 msgid "(Added in 1.3.3)"
29883 msgstr "(Додано у 1.3.3)"
29884
29885 #. type: =head2
29886 #: ../src/guestfs-actions.pod:4490
29887 msgid "guestfs_lvs"
29888 msgstr "guestfs_lvs"
29889
29890 #. type: verbatim
29891 #: ../src/guestfs-actions.pod:4492
29892 #, no-wrap
29893 msgid ""
29894 " char **\n"
29895 " guestfs_lvs (guestfs_h *g);\n"
29896 "\n"
29897 msgstr ""
29898 " char **\n"
29899 " guestfs_lvs (guestfs_h *g);\n"
29900 "\n"
29901
29902 #. type: textblock
29903 #: ../src/guestfs-actions.pod:4501
29904 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29905 msgstr ""
29906
29907 #. type: =head2
29908 #: ../src/guestfs-actions.pod:4509
29909 msgid "guestfs_lvs_full"
29910 msgstr "guestfs_lvs_full"
29911
29912 #. type: verbatim
29913 #: ../src/guestfs-actions.pod:4511
29914 #, no-wrap
29915 msgid ""
29916 " struct guestfs_lvm_lv_list *\n"
29917 " guestfs_lvs_full (guestfs_h *g);\n"
29918 "\n"
29919 msgstr ""
29920 " struct guestfs_lvm_lv_list *\n"
29921 " guestfs_lvs_full (guestfs_h *g);\n"
29922 "\n"
29923
29924 #. type: textblock
29925 #: ../src/guestfs-actions.pod:4517
29926 msgid ""
29927 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29928 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
29929 msgstr ""
29930
29931 #. type: =head2
29932 #: ../src/guestfs-actions.pod:4523
29933 msgid "guestfs_lvuuid"
29934 msgstr "guestfs_lvuuid"
29935
29936 #. type: verbatim
29937 #: ../src/guestfs-actions.pod:4525
29938 #, no-wrap
29939 msgid ""
29940 " char *\n"
29941 " guestfs_lvuuid (guestfs_h *g,\n"
29942 "                 const char *device);\n"
29943 "\n"
29944 msgstr ""
29945 " char *\n"
29946 " guestfs_lvuuid (guestfs_h *g,\n"
29947 "                 const char *device);\n"
29948 "\n"
29949
29950 #. type: =head2
29951 #: ../src/guestfs-actions.pod:4536
29952 msgid "guestfs_lxattrlist"
29953 msgstr "guestfs_lxattrlist"
29954
29955 #. type: verbatim
29956 #: ../src/guestfs-actions.pod:4538
29957 #, no-wrap
29958 msgid ""
29959 " struct guestfs_xattr_list *\n"
29960 " guestfs_lxattrlist (guestfs_h *g,\n"
29961 "                     const char *path,\n"
29962 "                     char *const *names);\n"
29963 "\n"
29964 msgstr ""
29965 " struct guestfs_xattr_list *\n"
29966 " guestfs_lxattrlist (guestfs_h *g,\n"
29967 "                     const char *path,\n"
29968 "                     char *const *names);\n"
29969 "\n"
29970
29971 #. type: textblock
29972 #: ../src/guestfs-actions.pod:4557
29973 msgid ""
29974 "This call is intended for programs that want to efficiently list a directory "
29975 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
29976 "a similarly efficient call for getting standard stats.  Very long directory "
29977 "listings might cause the protocol message size to be exceeded, causing this "
29978 "call to fail.  The caller must split up such requests into smaller groups of "
29979 "names."
29980 msgstr ""
29981
29982 #. type: =head2
29983 #: ../src/guestfs-actions.pod:4571
29984 msgid "guestfs_mkdir"
29985 msgstr "guestfs_mkdir"
29986
29987 #. type: verbatim
29988 #: ../src/guestfs-actions.pod:4573
29989 #, no-wrap
29990 msgid ""
29991 " int\n"
29992 " guestfs_mkdir (guestfs_h *g,\n"
29993 "                const char *path);\n"
29994 "\n"
29995 msgstr ""
29996 " int\n"
29997 " guestfs_mkdir (guestfs_h *g,\n"
29998 "                const char *path);\n"
29999 "\n"
30000
30001 #. type: =head2
30002 #: ../src/guestfs-actions.pod:4583
30003 msgid "guestfs_mkdir_mode"
30004 msgstr "guestfs_mkdir_mode"
30005
30006 #. type: verbatim
30007 #: ../src/guestfs-actions.pod:4585
30008 #, no-wrap
30009 msgid ""
30010 " int\n"
30011 " guestfs_mkdir_mode (guestfs_h *g,\n"
30012 "                     const char *path,\n"
30013 "                     int mode);\n"
30014 "\n"
30015 msgstr ""
30016 " int\n"
30017 " guestfs_mkdir_mode (guestfs_h *g,\n"
30018 "                     const char *path,\n"
30019 "                     int mode);\n"
30020 "\n"
30021
30022 #. type: textblock
30023 #: ../src/guestfs-actions.pod:4597
30024 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30025 msgstr ""
30026
30027 #. type: =head2
30028 #: ../src/guestfs-actions.pod:4603
30029 msgid "guestfs_mkdir_p"
30030 msgstr "guestfs_mkdir_p"
30031
30032 #. type: verbatim
30033 #: ../src/guestfs-actions.pod:4605
30034 #, no-wrap
30035 msgid ""
30036 " int\n"
30037 " guestfs_mkdir_p (guestfs_h *g,\n"
30038 "                  const char *path);\n"
30039 "\n"
30040 msgstr ""
30041 " int\n"
30042 " guestfs_mkdir_p (guestfs_h *g,\n"
30043 "                  const char *path);\n"
30044 "\n"
30045
30046 #. type: =head2
30047 #: ../src/guestfs-actions.pod:4616
30048 msgid "guestfs_mkdtemp"
30049 msgstr "guestfs_mkdtemp"
30050
30051 #. type: verbatim
30052 #: ../src/guestfs-actions.pod:4618
30053 #, no-wrap
30054 msgid ""
30055 " char *\n"
30056 " guestfs_mkdtemp (guestfs_h *g,\n"
30057 "                  const char *template);\n"
30058 "\n"
30059 msgstr ""
30060 " char *\n"
30061 " guestfs_mkdtemp (guestfs_h *g,\n"
30062 "                  const char *template);\n"
30063 "\n"
30064
30065 #. type: =head2
30066 #: ../src/guestfs-actions.pod:4646
30067 msgid "guestfs_mke2fs_J"
30068 msgstr "guestfs_mke2fs_J"
30069
30070 #. type: verbatim
30071 #: ../src/guestfs-actions.pod:4648
30072 #, no-wrap
30073 msgid ""
30074 " int\n"
30075 " guestfs_mke2fs_J (guestfs_h *g,\n"
30076 "                   const char *fstype,\n"
30077 "                   int blocksize,\n"
30078 "                   const char *device,\n"
30079 "                   const char *journal);\n"
30080 "\n"
30081 msgstr ""
30082 " int\n"
30083 " guestfs_mke2fs_J (guestfs_h *g,\n"
30084 "                   const char *fstype,\n"
30085 "                   int blocksize,\n"
30086 "                   const char *device,\n"
30087 "                   const char *journal);\n"
30088 "\n"
30089
30090 #. type: textblock
30091 #: ../src/guestfs-actions.pod:4661
30092 msgid "See also C<guestfs_mke2journal>."
30093 msgstr ""
30094
30095 #. type: textblock
30096 #: ../src/guestfs-actions.pod:4665 ../src/guestfs-actions.pod:4683
30097 #: ../src/guestfs-actions.pod:4701 ../src/guestfs-actions.pod:4717
30098 #: ../src/guestfs-actions.pod:4731 ../src/guestfs-actions.pod:4745
30099 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:5081
30100 msgid "(Added in 1.0.68)"
30101 msgstr "(Додано у 1.0.68)"
30102
30103 #. type: =head2
30104 #: ../src/guestfs-actions.pod:4667
30105 msgid "guestfs_mke2fs_JL"
30106 msgstr "guestfs_mke2fs_JL"
30107
30108 #. type: verbatim
30109 #: ../src/guestfs-actions.pod:4669
30110 #, no-wrap
30111 msgid ""
30112 " int\n"
30113 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30114 "                    const char *fstype,\n"
30115 "                    int blocksize,\n"
30116 "                    const char *device,\n"
30117 "                    const char *label);\n"
30118 "\n"
30119 msgstr ""
30120 " int\n"
30121 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30122 "                    const char *fstype,\n"
30123 "                    int blocksize,\n"
30124 "                    const char *device,\n"
30125 "                    const char *label);\n"
30126 "\n"
30127
30128 #. type: textblock
30129 #: ../src/guestfs-actions.pod:4679
30130 msgid "See also C<guestfs_mke2journal_L>."
30131 msgstr ""
30132
30133 #. type: =head2
30134 #: ../src/guestfs-actions.pod:4685
30135 msgid "guestfs_mke2fs_JU"
30136 msgstr "guestfs_mke2fs_JU"
30137
30138 #. type: verbatim
30139 #: ../src/guestfs-actions.pod:4687
30140 #, no-wrap
30141 msgid ""
30142 " int\n"
30143 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30144 "                    const char *fstype,\n"
30145 "                    int blocksize,\n"
30146 "                    const char *device,\n"
30147 "                    const char *uuid);\n"
30148 "\n"
30149 msgstr ""
30150 " int\n"
30151 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30152 "                    const char *fstype,\n"
30153 "                    int blocksize,\n"
30154 "                    const char *device,\n"
30155 "                    const char *uuid);\n"
30156 "\n"
30157
30158 #. type: textblock
30159 #: ../src/guestfs-actions.pod:4697
30160 msgid "See also C<guestfs_mke2journal_U>."
30161 msgstr ""
30162
30163 #. type: =head2
30164 #: ../src/guestfs-actions.pod:4703
30165 msgid "guestfs_mke2journal"
30166 msgstr "guestfs_mke2journal"
30167
30168 #. type: verbatim
30169 #: ../src/guestfs-actions.pod:4705
30170 #, no-wrap
30171 msgid ""
30172 " int\n"
30173 " guestfs_mke2journal (guestfs_h *g,\n"
30174 "                      int blocksize,\n"
30175 "                      const char *device);\n"
30176 "\n"
30177 msgstr ""
30178 " int\n"
30179 " guestfs_mke2journal (guestfs_h *g,\n"
30180 "                      int blocksize,\n"
30181 "                      const char *device);\n"
30182 "\n"
30183
30184 #. type: =head2
30185 #: ../src/guestfs-actions.pod:4719
30186 msgid "guestfs_mke2journal_L"
30187 msgstr "guestfs_mke2journal_L"
30188
30189 #. type: verbatim
30190 #: ../src/guestfs-actions.pod:4721
30191 #, no-wrap
30192 msgid ""
30193 " int\n"
30194 " guestfs_mke2journal_L (guestfs_h *g,\n"
30195 "                        int blocksize,\n"
30196 "                        const char *label,\n"
30197 "                        const char *device);\n"
30198 "\n"
30199 msgstr ""
30200 " int\n"
30201 " guestfs_mke2journal_L (guestfs_h *g,\n"
30202 "                        int blocksize,\n"
30203 "                        const char *label,\n"
30204 "                        const char *device);\n"
30205 "\n"
30206
30207 #. type: =head2
30208 #: ../src/guestfs-actions.pod:4733
30209 msgid "guestfs_mke2journal_U"
30210 msgstr "guestfs_mke2journal_U"
30211
30212 #. type: verbatim
30213 #: ../src/guestfs-actions.pod:4735
30214 #, no-wrap
30215 msgid ""
30216 " int\n"
30217 " guestfs_mke2journal_U (guestfs_h *g,\n"
30218 "                        int blocksize,\n"
30219 "                        const char *uuid,\n"
30220 "                        const char *device);\n"
30221 "\n"
30222 msgstr ""
30223 " int\n"
30224 " guestfs_mke2journal_U (guestfs_h *g,\n"
30225 "                        int blocksize,\n"
30226 "                        const char *uuid,\n"
30227 "                        const char *device);\n"
30228 "\n"
30229
30230 #. type: =head2
30231 #: ../src/guestfs-actions.pod:4747
30232 msgid "guestfs_mkfifo"
30233 msgstr "guestfs_mkfifo"
30234
30235 #. type: verbatim
30236 #: ../src/guestfs-actions.pod:4749
30237 #, no-wrap
30238 msgid ""
30239 " int\n"
30240 " guestfs_mkfifo (guestfs_h *g,\n"
30241 "                 int mode,\n"
30242 "                 const char *path);\n"
30243 "\n"
30244 msgstr ""
30245 " int\n"
30246 " guestfs_mkfifo (guestfs_h *g,\n"
30247 "                 int mode,\n"
30248 "                 const char *path);\n"
30249 "\n"
30250
30251 #. type: textblock
30252 #: ../src/guestfs-actions.pod:4754
30253 msgid ""
30254 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30255 "is just a convenient wrapper around C<guestfs_mknod>."
30256 msgstr ""
30257
30258 #. type: =head2
30259 #: ../src/guestfs-actions.pod:4764
30260 msgid "guestfs_mkfs"
30261 msgstr "guestfs_mkfs"
30262
30263 #. type: verbatim
30264 #: ../src/guestfs-actions.pod:4766
30265 #, no-wrap
30266 msgid ""
30267 " int\n"
30268 " guestfs_mkfs (guestfs_h *g,\n"
30269 "               const char *fstype,\n"
30270 "               const char *device);\n"
30271 "\n"
30272 msgstr ""
30273 " int\n"
30274 " guestfs_mkfs (guestfs_h *g,\n"
30275 "               const char *fstype,\n"
30276 "               const char *device);\n"
30277 "\n"
30278
30279 #. type: =head2
30280 #: ../src/guestfs-actions.pod:4779
30281 msgid "guestfs_mkfs_b"
30282 msgstr "guestfs_mkfs_b"
30283
30284 #. type: verbatim
30285 #: ../src/guestfs-actions.pod:4781
30286 #, no-wrap
30287 msgid ""
30288 " int\n"
30289 " guestfs_mkfs_b (guestfs_h *g,\n"
30290 "                 const char *fstype,\n"
30291 "                 int blocksize,\n"
30292 "                 const char *device);\n"
30293 "\n"
30294 msgstr ""
30295 " int\n"
30296 " guestfs_mkfs_b (guestfs_h *g,\n"
30297 "                 const char *fstype,\n"
30298 "                 int blocksize,\n"
30299 "                 const char *device);\n"
30300 "\n"
30301
30302 #. type: textblock
30303 #: ../src/guestfs-actions.pod:4787
30304 msgid ""
30305 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30306 "call instead."
30307 msgstr ""
30308
30309 #. type: textblock
30310 #: ../src/guestfs-actions.pod:4794
30311 msgid ""
30312 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30313 "block size of the resulting filesystem.  Supported block sizes depend on the "
30314 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30315 msgstr ""
30316
30317 #. type: =head2
30318 #: ../src/guestfs-actions.pod:4806
30319 msgid "guestfs_mkfs_opts"
30320 msgstr "guestfs_mkfs_opts"
30321
30322 #. type: verbatim
30323 #: ../src/guestfs-actions.pod:4808
30324 #, no-wrap
30325 msgid ""
30326 " int\n"
30327 " guestfs_mkfs_opts (guestfs_h *g,\n"
30328 "                    const char *fstype,\n"
30329 "                    const char *device,\n"
30330 "                    ...);\n"
30331 "\n"
30332 msgstr ""
30333 " int\n"
30334 " guestfs_mkfs_opts (guestfs_h *g,\n"
30335 "                    const char *fstype,\n"
30336 "                    const char *device,\n"
30337 "                    ...);\n"
30338 "\n"
30339
30340 #. type: verbatim
30341 #: ../src/guestfs-actions.pod:4819
30342 #, no-wrap
30343 msgid ""
30344 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30345 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30346 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30347 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30348 "\n"
30349 msgstr ""
30350
30351 #. type: textblock
30352 #: ../src/guestfs-actions.pod:4867
30353 msgid "(Added in 1.7.19)"
30354 msgstr "(Додано у 1.7.19)"
30355
30356 #. type: =head2
30357 #: ../src/guestfs-actions.pod:4869
30358 msgid "guestfs_mkfs_opts_va"
30359 msgstr "guestfs_mkfs_opts_va"
30360
30361 #. type: verbatim
30362 #: ../src/guestfs-actions.pod:4871
30363 #, no-wrap
30364 msgid ""
30365 " int\n"
30366 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30367 "                       const char *fstype,\n"
30368 "                       const char *device,\n"
30369 "                       va_list args);\n"
30370 "\n"
30371 msgstr ""
30372 " int\n"
30373 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30374 "                       const char *fstype,\n"
30375 "                       const char *device,\n"
30376 "                       va_list args);\n"
30377 "\n"
30378
30379 #. type: textblock
30380 #: ../src/guestfs-actions.pod:4877
30381 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30382 msgstr ""
30383
30384 #. type: =head2
30385 #: ../src/guestfs-actions.pod:4881
30386 msgid "guestfs_mkfs_opts_argv"
30387 msgstr "guestfs_mkfs_opts_argv"
30388
30389 #. type: verbatim
30390 #: ../src/guestfs-actions.pod:4883
30391 #, no-wrap
30392 msgid ""
30393 " int\n"
30394 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30395 "                         const char *fstype,\n"
30396 "                         const char *device,\n"
30397 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30398 "\n"
30399 msgstr ""
30400 " int\n"
30401 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30402 "                         const char *fstype,\n"
30403 "                         const char *device,\n"
30404 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30405 "\n"
30406
30407 #. type: textblock
30408 #: ../src/guestfs-actions.pod:4889
30409 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30410 msgstr ""
30411
30412 #. type: =head2
30413 #: ../src/guestfs-actions.pod:4893
30414 msgid "guestfs_mkmountpoint"
30415 msgstr "guestfs_mkmountpoint"
30416
30417 #. type: verbatim
30418 #: ../src/guestfs-actions.pod:4895
30419 #, no-wrap
30420 msgid ""
30421 " int\n"
30422 " guestfs_mkmountpoint (guestfs_h *g,\n"
30423 "                       const char *exemptpath);\n"
30424 "\n"
30425 msgstr ""
30426 " int\n"
30427 " guestfs_mkmountpoint (guestfs_h *g,\n"
30428 "                       const char *exemptpath);\n"
30429 "\n"
30430
30431 #. type: textblock
30432 #: ../src/guestfs-actions.pod:4899
30433 msgid ""
30434 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30435 "that can be used to create extra mountpoints before mounting the first "
30436 "filesystem."
30437 msgstr ""
30438
30439 #. type: textblock
30440 #: ../src/guestfs-actions.pod:4923
30441 msgid ""
30442 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30443 "may get unexpected errors if you try to mix these calls.  It is safest to "
30444 "manually unmount filesystems and remove mountpoints after use."
30445 msgstr ""
30446
30447 #. type: textblock
30448 #: ../src/guestfs-actions.pod:4927
30449 msgid ""
30450 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30451 "first, so for this to work for manual mountpoints, you must ensure that the "
30452 "innermost mountpoints have the longest pathnames, as in the example code "
30453 "above."
30454 msgstr ""
30455
30456 #. type: textblock
30457 #: ../src/guestfs-actions.pod:4934
30458 msgid ""
30459 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30460 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30461 "can also trigger these issues."
30462 msgstr ""
30463
30464 #. type: textblock
30465 #: ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:5246
30466 #: ../src/guestfs-actions.pod:6256
30467 msgid "(Added in 1.0.62)"
30468 msgstr "(Додано у 1.0.62)"
30469
30470 #. type: =head2
30471 #: ../src/guestfs-actions.pod:4942
30472 msgid "guestfs_mknod"
30473 msgstr ""
30474
30475 #. type: verbatim
30476 #: ../src/guestfs-actions.pod:4944
30477 #, no-wrap
30478 msgid ""
30479 " int\n"
30480 " guestfs_mknod (guestfs_h *g,\n"
30481 "                int mode,\n"
30482 "                int devmajor,\n"
30483 "                int devminor,\n"
30484 "                const char *path);\n"
30485 "\n"
30486 msgstr ""
30487
30488 #. type: textblock
30489 #: ../src/guestfs-actions.pod:4959
30490 msgid ""
30491 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30492 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30493 "regular file).  These constants are available in the standard Linux header "
30494 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30495 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30496 "the appropriate constant for you."
30497 msgstr ""
30498
30499 #. type: =head2
30500 #: ../src/guestfs-actions.pod:4973
30501 msgid "guestfs_mknod_b"
30502 msgstr ""
30503
30504 #. type: verbatim
30505 #: ../src/guestfs-actions.pod:4975
30506 #, no-wrap
30507 msgid ""
30508 " int\n"
30509 " guestfs_mknod_b (guestfs_h *g,\n"
30510 "                  int mode,\n"
30511 "                  int devmajor,\n"
30512 "                  int devminor,\n"
30513 "                  const char *path);\n"
30514 "\n"
30515 msgstr ""
30516
30517 #. type: textblock
30518 #: ../src/guestfs-actions.pod:4982
30519 msgid ""
30520 "This call creates a block device node called C<path> with mode C<mode> and "
30521 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30522 "wrapper around C<guestfs_mknod>."
30523 msgstr ""
30524
30525 #. type: =head2
30526 #: ../src/guestfs-actions.pod:4992
30527 msgid "guestfs_mknod_c"
30528 msgstr ""
30529
30530 #. type: verbatim
30531 #: ../src/guestfs-actions.pod:4994
30532 #, no-wrap
30533 msgid ""
30534 " int\n"
30535 " guestfs_mknod_c (guestfs_h *g,\n"
30536 "                  int mode,\n"
30537 "                  int devmajor,\n"
30538 "                  int devminor,\n"
30539 "                  const char *path);\n"
30540 "\n"
30541 msgstr ""
30542
30543 #. type: textblock
30544 #: ../src/guestfs-actions.pod:5001
30545 msgid ""
30546 "This call creates a char device node called C<path> with mode C<mode> and "
30547 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30548 "wrapper around C<guestfs_mknod>."
30549 msgstr ""
30550
30551 #. type: =head2
30552 #: ../src/guestfs-actions.pod:5011
30553 msgid "guestfs_mkswap"
30554 msgstr ""
30555
30556 #. type: verbatim
30557 #: ../src/guestfs-actions.pod:5013
30558 #, no-wrap
30559 msgid ""
30560 " int\n"
30561 " guestfs_mkswap (guestfs_h *g,\n"
30562 "                 const char *device);\n"
30563 "\n"
30564 msgstr ""
30565
30566 #. type: =head2
30567 #: ../src/guestfs-actions.pod:5023
30568 msgid "guestfs_mkswap_L"
30569 msgstr ""
30570
30571 #. type: verbatim
30572 #: ../src/guestfs-actions.pod:5025
30573 #, no-wrap
30574 msgid ""
30575 " int\n"
30576 " guestfs_mkswap_L (guestfs_h *g,\n"
30577 "                   const char *label,\n"
30578 "                   const char *device);\n"
30579 "\n"
30580 msgstr ""
30581
30582 #. type: =head2
30583 #: ../src/guestfs-actions.pod:5040
30584 msgid "guestfs_mkswap_U"
30585 msgstr ""
30586
30587 #. type: verbatim
30588 #: ../src/guestfs-actions.pod:5042
30589 #, no-wrap
30590 msgid ""
30591 " int\n"
30592 " guestfs_mkswap_U (guestfs_h *g,\n"
30593 "                   const char *uuid,\n"
30594 "                   const char *device);\n"
30595 "\n"
30596 msgstr ""
30597
30598 #. type: =head2
30599 #: ../src/guestfs-actions.pod:5053
30600 msgid "guestfs_mkswap_file"
30601 msgstr ""
30602
30603 #. type: verbatim
30604 #: ../src/guestfs-actions.pod:5055
30605 #, no-wrap
30606 msgid ""
30607 " int\n"
30608 " guestfs_mkswap_file (guestfs_h *g,\n"
30609 "                      const char *path);\n"
30610 "\n"
30611 msgstr ""
30612
30613 #. type: textblock
30614 #: ../src/guestfs-actions.pod:5061
30615 msgid ""
30616 "This command just writes a swap file signature to an existing file.  To "
30617 "create the file itself, use something like C<guestfs_fallocate>."
30618 msgstr ""
30619
30620 #. type: =head2
30621 #: ../src/guestfs-actions.pod:5068
30622 msgid "guestfs_modprobe"
30623 msgstr ""
30624
30625 #. type: verbatim
30626 #: ../src/guestfs-actions.pod:5070
30627 #, no-wrap
30628 msgid ""
30629 " int\n"
30630 " guestfs_modprobe (guestfs_h *g,\n"
30631 "                   const char *modulename);\n"
30632 "\n"
30633 msgstr ""
30634
30635 #. type: =head2
30636 #: ../src/guestfs-actions.pod:5083
30637 msgid "guestfs_mount"
30638 msgstr ""
30639
30640 #. type: verbatim
30641 #: ../src/guestfs-actions.pod:5085
30642 #, no-wrap
30643 msgid ""
30644 " int\n"
30645 " guestfs_mount (guestfs_h *g,\n"
30646 "                const char *device,\n"
30647 "                const char *mountpoint);\n"
30648 "\n"
30649 msgstr ""
30650
30651 #. type: textblock
30652 #: ../src/guestfs-actions.pod:5104
30653 msgid ""
30654 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30655 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30656 "problems for users.  If your program might need to work with older versions "
30657 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30658 "for the first parameter if you don't want any options)."
30659 msgstr ""
30660
30661 #. type: =head2
30662 #: ../src/guestfs-actions.pod:5115
30663 msgid "guestfs_mount_9p"
30664 msgstr ""
30665
30666 #. type: verbatim
30667 #: ../src/guestfs-actions.pod:5117
30668 #, no-wrap
30669 msgid ""
30670 " int\n"
30671 " guestfs_mount_9p (guestfs_h *g,\n"
30672 "                   const char *mounttag,\n"
30673 "                   const char *mountpoint,\n"
30674 "                   ...);\n"
30675 "\n"
30676 msgstr ""
30677
30678 #. type: verbatim
30679 #: ../src/guestfs-actions.pod:5128
30680 #, no-wrap
30681 msgid ""
30682 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30683 "\n"
30684 msgstr ""
30685
30686 #. type: =head2
30687 #: ../src/guestfs-actions.pod:5141
30688 msgid "guestfs_mount_9p_va"
30689 msgstr ""
30690
30691 #. type: verbatim
30692 #: ../src/guestfs-actions.pod:5143
30693 #, no-wrap
30694 msgid ""
30695 " int\n"
30696 " guestfs_mount_9p_va (guestfs_h *g,\n"
30697 "                      const char *mounttag,\n"
30698 "                      const char *mountpoint,\n"
30699 "                      va_list args);\n"
30700 "\n"
30701 msgstr ""
30702
30703 #. type: textblock
30704 #: ../src/guestfs-actions.pod:5149
30705 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30706 msgstr ""
30707
30708 #. type: =head2
30709 #: ../src/guestfs-actions.pod:5153
30710 msgid "guestfs_mount_9p_argv"
30711 msgstr ""
30712
30713 #. type: verbatim
30714 #: ../src/guestfs-actions.pod:5155
30715 #, no-wrap
30716 msgid ""
30717 " int\n"
30718 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30719 "                        const char *mounttag,\n"
30720 "                        const char *mountpoint,\n"
30721 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30722 "\n"
30723 msgstr ""
30724
30725 #. type: textblock
30726 #: ../src/guestfs-actions.pod:5161
30727 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30728 msgstr ""
30729
30730 #. type: =head2
30731 #: ../src/guestfs-actions.pod:5165
30732 msgid "guestfs_mount_loop"
30733 msgstr ""
30734
30735 #. type: verbatim
30736 #: ../src/guestfs-actions.pod:5167
30737 #, no-wrap
30738 msgid ""
30739 " int\n"
30740 " guestfs_mount_loop (guestfs_h *g,\n"
30741 "                     const char *file,\n"
30742 "                     const char *mountpoint);\n"
30743 "\n"
30744 msgstr ""
30745
30746 #. type: =head2
30747 #: ../src/guestfs-actions.pod:5180
30748 msgid "guestfs_mount_options"
30749 msgstr ""
30750
30751 #. type: verbatim
30752 #: ../src/guestfs-actions.pod:5182
30753 #, no-wrap
30754 msgid ""
30755 " int\n"
30756 " guestfs_mount_options (guestfs_h *g,\n"
30757 "                        const char *options,\n"
30758 "                        const char *device,\n"
30759 "                        const char *mountpoint);\n"
30760 "\n"
30761 msgstr ""
30762
30763 #. type: textblock
30764 #: ../src/guestfs-actions.pod:5188
30765 msgid ""
30766 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30767 "the mount options as for the L<mount(8)> I<-o> flag."
30768 msgstr ""
30769
30770 #. type: textblock
30771 #: ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5212
30772 #: ../src/guestfs-actions.pod:5229
30773 msgid "(Added in 1.0.10)"
30774 msgstr "(Додано у 1.0.10)"
30775
30776 #. type: =head2
30777 #: ../src/guestfs-actions.pod:5200
30778 msgid "guestfs_mount_ro"
30779 msgstr ""
30780
30781 #. type: verbatim
30782 #: ../src/guestfs-actions.pod:5202
30783 #, no-wrap
30784 msgid ""
30785 " int\n"
30786 " guestfs_mount_ro (guestfs_h *g,\n"
30787 "                   const char *device,\n"
30788 "                   const char *mountpoint);\n"
30789 "\n"
30790 msgstr ""
30791
30792 #. type: textblock
30793 #: ../src/guestfs-actions.pod:5207
30794 msgid ""
30795 "This is the same as the C<guestfs_mount> command, but it mounts the "
30796 "filesystem with the read-only (I<-o ro>) flag."
30797 msgstr ""
30798
30799 #. type: =head2
30800 #: ../src/guestfs-actions.pod:5214
30801 msgid "guestfs_mount_vfs"
30802 msgstr ""
30803
30804 #. type: verbatim
30805 #: ../src/guestfs-actions.pod:5216
30806 #, no-wrap
30807 msgid ""
30808 " int\n"
30809 " guestfs_mount_vfs (guestfs_h *g,\n"
30810 "                    const char *options,\n"
30811 "                    const char *vfstype,\n"
30812 "                    const char *device,\n"
30813 "                    const char *mountpoint);\n"
30814 "\n"
30815 msgstr ""
30816
30817 #. type: textblock
30818 #: ../src/guestfs-actions.pod:5223
30819 msgid ""
30820 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30821 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
30822 "t> flags."
30823 msgstr ""
30824
30825 #. type: =head2
30826 #: ../src/guestfs-actions.pod:5231
30827 msgid "guestfs_mountpoints"
30828 msgstr ""
30829
30830 #. type: verbatim
30831 #: ../src/guestfs-actions.pod:5233
30832 #, no-wrap
30833 msgid ""
30834 " char **\n"
30835 " guestfs_mountpoints (guestfs_h *g);\n"
30836 "\n"
30837 msgstr ""
30838
30839 #. type: textblock
30840 #: ../src/guestfs-actions.pod:5236
30841 msgid ""
30842 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
30843 "devices.  This one returns a hash table (map) of device name to directory "
30844 "where the device is mounted."
30845 msgstr ""
30846
30847 #. type: =head2
30848 #: ../src/guestfs-actions.pod:5248
30849 msgid "guestfs_mounts"
30850 msgstr ""
30851
30852 #. type: verbatim
30853 #: ../src/guestfs-actions.pod:5250
30854 #, no-wrap
30855 msgid ""
30856 " char **\n"
30857 " guestfs_mounts (guestfs_h *g);\n"
30858 "\n"
30859 msgstr ""
30860
30861 #. type: textblock
30862 #: ../src/guestfs-actions.pod:5258
30863 msgid "See also: C<guestfs_mountpoints>"
30864 msgstr ""
30865
30866 #. type: =head2
30867 #: ../src/guestfs-actions.pod:5266
30868 msgid "guestfs_mv"
30869 msgstr ""
30870
30871 #. type: verbatim
30872 #: ../src/guestfs-actions.pod:5268
30873 #, no-wrap
30874 msgid ""
30875 " int\n"
30876 " guestfs_mv (guestfs_h *g,\n"
30877 "             const char *src,\n"
30878 "             const char *dest);\n"
30879 "\n"
30880 msgstr ""
30881
30882 #. type: =head2
30883 #: ../src/guestfs-actions.pod:5280
30884 msgid "guestfs_ntfs_3g_probe"
30885 msgstr ""
30886
30887 #. type: verbatim
30888 #: ../src/guestfs-actions.pod:5282
30889 #, no-wrap
30890 msgid ""
30891 " int\n"
30892 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
30893 "                        int rw,\n"
30894 "                        const char *device);\n"
30895 "\n"
30896 msgstr ""
30897
30898 #. type: textblock
30899 #: ../src/guestfs-actions.pod:5301
30900 msgid "(Added in 1.0.43)"
30901 msgstr "(Додано у 1.0.43)"
30902
30903 #. type: =head2
30904 #: ../src/guestfs-actions.pod:5303
30905 msgid "guestfs_ntfsresize"
30906 msgstr ""
30907
30908 #. type: verbatim
30909 #: ../src/guestfs-actions.pod:5305
30910 #, no-wrap
30911 msgid ""
30912 " int\n"
30913 " guestfs_ntfsresize (guestfs_h *g,\n"
30914 "                     const char *device);\n"
30915 "\n"
30916 msgstr ""
30917
30918 #. type: textblock
30919 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5409
30920 msgid ""
30921 "I<This function is deprecated.> In new code, use the L</"
30922 "guestfs_ntfsresize_opts> call instead."
30923 msgstr ""
30924
30925 #. type: =head2
30926 #: ../src/guestfs-actions.pod:5333
30927 msgid "guestfs_ntfsresize_opts"
30928 msgstr ""
30929
30930 #. type: verbatim
30931 #: ../src/guestfs-actions.pod:5335
30932 #, no-wrap
30933 msgid ""
30934 " int\n"
30935 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30936 "                          const char *device,\n"
30937 "                          ...);\n"
30938 "\n"
30939 msgstr ""
30940
30941 #. type: verbatim
30942 #: ../src/guestfs-actions.pod:5345
30943 #, no-wrap
30944 msgid ""
30945 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30946 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30947 "\n"
30948 msgstr ""
30949
30950 #. type: textblock
30951 #: ../src/guestfs-actions.pod:5365
30952 msgid ""
30953 "After the resize operation, the filesystem is always marked as requiring a "
30954 "consistency check (for safety).  You have to boot into Windows to perform "
30955 "this check and clear this condition.  If you I<don't> set the C<force> "
30956 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30957 "times on a single filesystem without booting into Windows between each "
30958 "resize."
30959 msgstr ""
30960
30961 #. type: =head2
30962 #: ../src/guestfs-actions.pod:5380
30963 msgid "guestfs_ntfsresize_opts_va"
30964 msgstr ""
30965
30966 #. type: verbatim
30967 #: ../src/guestfs-actions.pod:5382
30968 #, no-wrap
30969 msgid ""
30970 " int\n"
30971 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30972 "                             const char *device,\n"
30973 "                             va_list args);\n"
30974 "\n"
30975 msgstr ""
30976
30977 #. type: textblock
30978 #: ../src/guestfs-actions.pod:5387
30979 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30980 msgstr ""
30981
30982 #. type: =head2
30983 #: ../src/guestfs-actions.pod:5391
30984 msgid "guestfs_ntfsresize_opts_argv"
30985 msgstr ""
30986
30987 #. type: verbatim
30988 #: ../src/guestfs-actions.pod:5393
30989 #, no-wrap
30990 msgid ""
30991 " int\n"
30992 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30993 "                               const char *device,\n"
30994 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
30995 "\n"
30996 msgstr ""
30997
30998 #. type: textblock
30999 #: ../src/guestfs-actions.pod:5398
31000 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31001 msgstr ""
31002
31003 #. type: =head2
31004 #: ../src/guestfs-actions.pod:5402
31005 msgid "guestfs_ntfsresize_size"
31006 msgstr ""
31007
31008 #. type: verbatim
31009 #: ../src/guestfs-actions.pod:5404
31010 #, no-wrap
31011 msgid ""
31012 " int\n"
31013 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31014 "                          const char *device,\n"
31015 "                          int64_t size);\n"
31016 "\n"
31017 msgstr ""
31018
31019 #. type: textblock
31020 #: ../src/guestfs-actions.pod:5416
31021 msgid ""
31022 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31023 "to specify the new size (in bytes) explicitly."
31024 msgstr ""
31025
31026 #. type: textblock
31027 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5863
31028 #: ../src/guestfs-actions.pod:5936 ../src/guestfs-actions.pod:6204
31029 #: ../src/guestfs-actions.pod:7843
31030 msgid "(Added in 1.3.14)"
31031 msgstr "(Додано у 1.3.14)"
31032
31033 #. type: =head2
31034 #: ../src/guestfs-actions.pod:5423
31035 msgid "guestfs_part_add"
31036 msgstr ""
31037
31038 #. type: verbatim
31039 #: ../src/guestfs-actions.pod:5425
31040 #, no-wrap
31041 msgid ""
31042 " int\n"
31043 " guestfs_part_add (guestfs_h *g,\n"
31044 "                   const char *device,\n"
31045 "                   const char *prlogex,\n"
31046 "                   int64_t startsect,\n"
31047 "                   int64_t endsect);\n"
31048 "\n"
31049 msgstr ""
31050
31051 #. type: textblock
31052 #: ../src/guestfs-actions.pod:5432
31053 msgid ""
31054 "This command adds a partition to C<device>.  If there is no partition table "
31055 "on the device, call C<guestfs_part_init> first."
31056 msgstr ""
31057
31058 #. type: textblock
31059 #: ../src/guestfs-actions.pod:5444
31060 msgid ""
31061 "Creating a partition which covers the whole disk is not so easy.  Use "
31062 "C<guestfs_part_disk> to do that."
31063 msgstr ""
31064
31065 #. type: textblock
31066 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5487
31067 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5624
31068 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5681
31069 #: ../src/guestfs-actions.pod:5721
31070 msgid "(Added in 1.0.78)"
31071 msgstr "(Додано у 1.0.78)"
31072
31073 #. type: =head2
31074 #: ../src/guestfs-actions.pod:5451
31075 msgid "guestfs_part_del"
31076 msgstr ""
31077
31078 #. type: verbatim
31079 #: ../src/guestfs-actions.pod:5453
31080 #, no-wrap
31081 msgid ""
31082 " int\n"
31083 " guestfs_part_del (guestfs_h *g,\n"
31084 "                   const char *device,\n"
31085 "                   int partnum);\n"
31086 "\n"
31087 msgstr ""
31088
31089 #. type: =head2
31090 #: ../src/guestfs-actions.pod:5468
31091 msgid "guestfs_part_disk"
31092 msgstr ""
31093
31094 #. type: verbatim
31095 #: ../src/guestfs-actions.pod:5470
31096 #, no-wrap
31097 msgid ""
31098 " int\n"
31099 " guestfs_part_disk (guestfs_h *g,\n"
31100 "                    const char *device,\n"
31101 "                    const char *parttype);\n"
31102 "\n"
31103 msgstr ""
31104
31105 #. type: textblock
31106 #: ../src/guestfs-actions.pod:5475
31107 msgid ""
31108 "This command is simply a combination of C<guestfs_part_init> followed by "
31109 "C<guestfs_part_add> to create a single primary partition covering the whole "
31110 "disk."
31111 msgstr ""
31112
31113 #. type: textblock
31114 #: ../src/guestfs-actions.pod:5479
31115 msgid ""
31116 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31117 "possible values are described in C<guestfs_part_init>."
31118 msgstr ""
31119
31120 #. type: =head2
31121 #: ../src/guestfs-actions.pod:5489
31122 msgid "guestfs_part_get_bootable"
31123 msgstr ""
31124
31125 #. type: verbatim
31126 #: ../src/guestfs-actions.pod:5491
31127 #, no-wrap
31128 msgid ""
31129 " int\n"
31130 " guestfs_part_get_bootable (guestfs_h *g,\n"
31131 "                            const char *device,\n"
31132 "                            int partnum);\n"
31133 "\n"
31134 msgstr ""
31135
31136 #. type: textblock
31137 #: ../src/guestfs-actions.pod:5499
31138 msgid "See also C<guestfs_part_set_bootable>."
31139 msgstr ""
31140
31141 #. type: =head2
31142 #: ../src/guestfs-actions.pod:5505
31143 msgid "guestfs_part_get_mbr_id"
31144 msgstr ""
31145
31146 #. type: verbatim
31147 #: ../src/guestfs-actions.pod:5507
31148 #, no-wrap
31149 msgid ""
31150 " int\n"
31151 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31152 "                          const char *device,\n"
31153 "                          int partnum);\n"
31154 "\n"
31155 msgstr ""
31156
31157 #. type: textblock
31158 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5697
31159 msgid ""
31160 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
31161 "undefined results for other partition table types (see "
31162 "C<guestfs_part_get_parttype>)."
31163 msgstr ""
31164
31165 #. type: =head2
31166 #: ../src/guestfs-actions.pod:5523
31167 msgid "guestfs_part_get_parttype"
31168 msgstr ""
31169
31170 #. type: verbatim
31171 #: ../src/guestfs-actions.pod:5525
31172 #, no-wrap
31173 msgid ""
31174 " char *\n"
31175 " guestfs_part_get_parttype (guestfs_h *g,\n"
31176 "                            const char *device);\n"
31177 "\n"
31178 msgstr ""
31179
31180 #. type: textblock
31181 #: ../src/guestfs-actions.pod:5532
31182 msgid ""
31183 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31184 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
31185 "possible, although unusual.  See C<guestfs_part_init> for a full list."
31186 msgstr ""
31187
31188 #. type: =head2
31189 #: ../src/guestfs-actions.pod:5542
31190 msgid "guestfs_part_init"
31191 msgstr ""
31192
31193 #. type: verbatim
31194 #: ../src/guestfs-actions.pod:5544
31195 #, no-wrap
31196 msgid ""
31197 " int\n"
31198 " guestfs_part_init (guestfs_h *g,\n"
31199 "                    const char *device,\n"
31200 "                    const char *parttype);\n"
31201 "\n"
31202 msgstr ""
31203
31204 #. type: textblock
31205 #: ../src/guestfs-actions.pod:5553
31206 msgid ""
31207 "Initially there are no partitions.  Following this, you should call "
31208 "C<guestfs_part_add> for each partition required."
31209 msgstr ""
31210
31211 #. type: =head2
31212 #: ../src/guestfs-actions.pod:5626
31213 msgid "guestfs_part_list"
31214 msgstr "guestfs_part_list"
31215
31216 #. type: verbatim
31217 #: ../src/guestfs-actions.pod:5628
31218 #, no-wrap
31219 msgid ""
31220 " struct guestfs_partition_list *\n"
31221 " guestfs_part_list (guestfs_h *g,\n"
31222 "                    const char *device);\n"
31223 "\n"
31224 msgstr ""
31225 " struct guestfs_partition_list *\n"
31226 " guestfs_part_list (guestfs_h *g,\n"
31227 "                    const char *device);\n"
31228 "\n"
31229
31230 #. type: textblock
31231 #: ../src/guestfs-actions.pod:5645
31232 msgid ""
31233 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
31234 "the device's sector size, see C<guestfs_blockdev_getss>."
31235 msgstr ""
31236
31237 #. type: textblock
31238 #: ../src/guestfs-actions.pod:5658
31239 msgid ""
31240 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31241 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31242 "use>."
31243 msgstr ""
31244
31245 #. type: =head2
31246 #: ../src/guestfs-actions.pod:5664
31247 msgid "guestfs_part_set_bootable"
31248 msgstr ""
31249
31250 #. type: verbatim
31251 #: ../src/guestfs-actions.pod:5666
31252 #, no-wrap
31253 msgid ""
31254 " int\n"
31255 " guestfs_part_set_bootable (guestfs_h *g,\n"
31256 "                            const char *device,\n"
31257 "                            int partnum,\n"
31258 "                            int bootable);\n"
31259 "\n"
31260 msgstr ""
31261
31262 #. type: =head2
31263 #: ../src/guestfs-actions.pod:5683
31264 msgid "guestfs_part_set_mbr_id"
31265 msgstr ""
31266
31267 #. type: verbatim
31268 #: ../src/guestfs-actions.pod:5685
31269 #, no-wrap
31270 msgid ""
31271 " int\n"
31272 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31273 "                          const char *device,\n"
31274 "                          int partnum,\n"
31275 "                          int idbyte);\n"
31276 "\n"
31277 msgstr ""
31278
31279 #. type: =head2
31280 #: ../src/guestfs-actions.pod:5705
31281 msgid "guestfs_part_set_name"
31282 msgstr ""
31283
31284 #. type: verbatim
31285 #: ../src/guestfs-actions.pod:5707
31286 #, no-wrap
31287 msgid ""
31288 " int\n"
31289 " guestfs_part_set_name (guestfs_h *g,\n"
31290 "                        const char *device,\n"
31291 "                        int partnum,\n"
31292 "                        const char *name);\n"
31293 "\n"
31294 msgstr ""
31295
31296 #. type: =head2
31297 #: ../src/guestfs-actions.pod:5723
31298 msgid "guestfs_part_to_dev"
31299 msgstr ""
31300
31301 #. type: verbatim
31302 #: ../src/guestfs-actions.pod:5725
31303 #, no-wrap
31304 msgid ""
31305 " char *\n"
31306 " guestfs_part_to_dev (guestfs_h *g,\n"
31307 "                      const char *partition);\n"
31308 "\n"
31309 msgstr ""
31310
31311 #. type: textblock
31312 #: ../src/guestfs-actions.pod:5733
31313 msgid ""
31314 "The named partition must exist, for example as a string returned from "
31315 "C<guestfs_list_partitions>."
31316 msgstr ""
31317
31318 #. type: =head2
31319 #: ../src/guestfs-actions.pod:5741
31320 msgid "guestfs_ping_daemon"
31321 msgstr ""
31322
31323 #. type: verbatim
31324 #: ../src/guestfs-actions.pod:5743
31325 #, no-wrap
31326 msgid ""
31327 " int\n"
31328 " guestfs_ping_daemon (guestfs_h *g);\n"
31329 "\n"
31330 msgstr ""
31331
31332 #. type: =head2
31333 #: ../src/guestfs-actions.pod:5755
31334 msgid "guestfs_pread"
31335 msgstr ""
31336
31337 #. type: verbatim
31338 #: ../src/guestfs-actions.pod:5757
31339 #, no-wrap
31340 msgid ""
31341 " char *\n"
31342 " guestfs_pread (guestfs_h *g,\n"
31343 "                const char *path,\n"
31344 "                int count,\n"
31345 "                int64_t offset,\n"
31346 "                size_t *size_r);\n"
31347 "\n"
31348 msgstr ""
31349
31350 #. type: textblock
31351 #: ../src/guestfs-actions.pod:5770
31352 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31353 msgstr ""
31354
31355 #. type: =head2
31356 #: ../src/guestfs-actions.pod:5781
31357 msgid "guestfs_pread_device"
31358 msgstr ""
31359
31360 #. type: verbatim
31361 #: ../src/guestfs-actions.pod:5783
31362 #, no-wrap
31363 msgid ""
31364 " char *\n"
31365 " guestfs_pread_device (guestfs_h *g,\n"
31366 "                       const char *device,\n"
31367 "                       int count,\n"
31368 "                       int64_t offset,\n"
31369 "                       size_t *size_r);\n"
31370 "\n"
31371 msgstr ""
31372
31373 #. type: textblock
31374 #: ../src/guestfs-actions.pod:5796
31375 msgid "See also C<guestfs_pread>."
31376 msgstr ""
31377
31378 #. type: textblock
31379 #: ../src/guestfs-actions.pod:5805
31380 msgid "(Added in 1.5.21)"
31381 msgstr "(Додано у 1.5.21)"
31382
31383 #. type: =head2
31384 #: ../src/guestfs-actions.pod:5807
31385 msgid "guestfs_pvcreate"
31386 msgstr ""
31387
31388 #. type: verbatim
31389 #: ../src/guestfs-actions.pod:5809
31390 #, no-wrap
31391 msgid ""
31392 " int\n"
31393 " guestfs_pvcreate (guestfs_h *g,\n"
31394 "                   const char *device);\n"
31395 "\n"
31396 msgstr ""
31397
31398 #. type: =head2
31399 #: ../src/guestfs-actions.pod:5821
31400 msgid "guestfs_pvremove"
31401 msgstr ""
31402
31403 #. type: verbatim
31404 #: ../src/guestfs-actions.pod:5823
31405 #, no-wrap
31406 msgid ""
31407 " int\n"
31408 " guestfs_pvremove (guestfs_h *g,\n"
31409 "                   const char *device);\n"
31410 "\n"
31411 msgstr ""
31412
31413 #. type: =head2
31414 #: ../src/guestfs-actions.pod:5838
31415 msgid "guestfs_pvresize"
31416 msgstr ""
31417
31418 #. type: verbatim
31419 #: ../src/guestfs-actions.pod:5840
31420 #, no-wrap
31421 msgid ""
31422 " int\n"
31423 " guestfs_pvresize (guestfs_h *g,\n"
31424 "                   const char *device);\n"
31425 "\n"
31426 msgstr ""
31427
31428 #. type: =head2
31429 #: ../src/guestfs-actions.pod:5851
31430 msgid "guestfs_pvresize_size"
31431 msgstr ""
31432
31433 #. type: verbatim
31434 #: ../src/guestfs-actions.pod:5853
31435 #, no-wrap
31436 msgid ""
31437 " int\n"
31438 " guestfs_pvresize_size (guestfs_h *g,\n"
31439 "                        const char *device,\n"
31440 "                        int64_t size);\n"
31441 "\n"
31442 msgstr ""
31443
31444 #. type: textblock
31445 #: ../src/guestfs-actions.pod:5858
31446 msgid ""
31447 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31448 "specify the new size (in bytes) explicitly."
31449 msgstr ""
31450
31451 #. type: =head2
31452 #: ../src/guestfs-actions.pod:5865
31453 msgid "guestfs_pvs"
31454 msgstr ""
31455
31456 #. type: verbatim
31457 #: ../src/guestfs-actions.pod:5867
31458 #, no-wrap
31459 msgid ""
31460 " char **\n"
31461 " guestfs_pvs (guestfs_h *g);\n"
31462 "\n"
31463 msgstr ""
31464
31465 #. type: textblock
31466 #: ../src/guestfs-actions.pod:5876
31467 msgid "See also C<guestfs_pvs_full>."
31468 msgstr ""
31469
31470 #. type: =head2
31471 #: ../src/guestfs-actions.pod:5884
31472 msgid "guestfs_pvs_full"
31473 msgstr ""
31474
31475 #. type: verbatim
31476 #: ../src/guestfs-actions.pod:5886
31477 #, no-wrap
31478 msgid ""
31479 " struct guestfs_lvm_pv_list *\n"
31480 " guestfs_pvs_full (guestfs_h *g);\n"
31481 "\n"
31482 msgstr ""
31483
31484 #. type: textblock
31485 #: ../src/guestfs-actions.pod:5892
31486 msgid ""
31487 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31488 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
31489 msgstr ""
31490
31491 #. type: =head2
31492 #: ../src/guestfs-actions.pod:5898
31493 msgid "guestfs_pvuuid"
31494 msgstr ""
31495
31496 #. type: verbatim
31497 #: ../src/guestfs-actions.pod:5900
31498 #, no-wrap
31499 msgid ""
31500 " char *\n"
31501 " guestfs_pvuuid (guestfs_h *g,\n"
31502 "                 const char *device);\n"
31503 "\n"
31504 msgstr ""
31505
31506 #. type: =head2
31507 #: ../src/guestfs-actions.pod:5911
31508 msgid "guestfs_pwrite"
31509 msgstr ""
31510
31511 #. type: verbatim
31512 #: ../src/guestfs-actions.pod:5913
31513 #, no-wrap
31514 msgid ""
31515 " int\n"
31516 " guestfs_pwrite (guestfs_h *g,\n"
31517 "                 const char *path,\n"
31518 "                 const char *content,\n"
31519 "                 size_t content_size,\n"
31520 "                 int64_t offset);\n"
31521 "\n"
31522 msgstr ""
31523
31524 #. type: textblock
31525 #: ../src/guestfs-actions.pod:5929
31526 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31527 msgstr ""
31528
31529 #. type: =head2
31530 #: ../src/guestfs-actions.pod:5938
31531 msgid "guestfs_pwrite_device"
31532 msgstr ""
31533
31534 #. type: verbatim
31535 #: ../src/guestfs-actions.pod:5940
31536 #, no-wrap
31537 msgid ""
31538 " int\n"
31539 " guestfs_pwrite_device (guestfs_h *g,\n"
31540 "                        const char *device,\n"
31541 "                        const char *content,\n"
31542 "                        size_t content_size,\n"
31543 "                        int64_t offset);\n"
31544 "\n"
31545 msgstr ""
31546
31547 #. type: textblock
31548 #: ../src/guestfs-actions.pod:5955
31549 msgid "See also C<guestfs_pwrite>."
31550 msgstr ""
31551
31552 #. type: textblock
31553 #: ../src/guestfs-actions.pod:5962
31554 msgid "(Added in 1.5.20)"
31555 msgstr "(Додано у 1.5.20)"
31556
31557 #. type: =head2
31558 #: ../src/guestfs-actions.pod:5964
31559 msgid "guestfs_read_file"
31560 msgstr ""
31561
31562 #. type: verbatim
31563 #: ../src/guestfs-actions.pod:5966
31564 #, no-wrap
31565 msgid ""
31566 " char *\n"
31567 " guestfs_read_file (guestfs_h *g,\n"
31568 "                    const char *path,\n"
31569 "                    size_t *size_r);\n"
31570 "\n"
31571 msgstr ""
31572
31573 #. type: textblock
31574 #: ../src/guestfs-actions.pod:5974
31575 msgid ""
31576 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31577 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31578 "function is limited in the total size of file that can be handled."
31579 msgstr ""
31580
31581 #. type: textblock
31582 #: ../src/guestfs-actions.pod:5986
31583 msgid "(Added in 1.0.63)"
31584 msgstr "(Додано у 1.0.63)"
31585
31586 #. type: =head2
31587 #: ../src/guestfs-actions.pod:5988
31588 msgid "guestfs_read_lines"
31589 msgstr ""
31590
31591 #. type: verbatim
31592 #: ../src/guestfs-actions.pod:5990
31593 #, no-wrap
31594 msgid ""
31595 " char **\n"
31596 " guestfs_read_lines (guestfs_h *g,\n"
31597 "                     const char *path);\n"
31598 "\n"
31599 msgstr ""
31600
31601 #. type: textblock
31602 #: ../src/guestfs-actions.pod:5999
31603 msgid ""
31604 "Note that this function cannot correctly handle binary files (specifically, "
31605 "files containing C<\\0> character which is treated as end of line).  For "
31606 "those you need to use the C<guestfs_read_file> function which has a more "
31607 "complex interface."
31608 msgstr ""
31609
31610 #. type: =head2
31611 #: ../src/guestfs-actions.pod:6010
31612 msgid "guestfs_readdir"
31613 msgstr ""
31614
31615 #. type: verbatim
31616 #: ../src/guestfs-actions.pod:6012
31617 #, no-wrap
31618 msgid ""
31619 " struct guestfs_dirent_list *\n"
31620 " guestfs_readdir (guestfs_h *g,\n"
31621 "                  const char *dir);\n"
31622 "\n"
31623 msgstr ""
31624
31625 #. type: textblock
31626 #: ../src/guestfs-actions.pod:6066
31627 msgid ""
31628 "This function is primarily intended for use by programs.  To get a simple "
31629 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31630 "consumption, use C<guestfs_ll>."
31631 msgstr ""
31632
31633 #. type: textblock
31634 #: ../src/guestfs-actions.pod:6070
31635 msgid ""
31636 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31637 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
31638 msgstr ""
31639
31640 #. type: =head2
31641 #: ../src/guestfs-actions.pod:6076
31642 msgid "guestfs_readlink"
31643 msgstr ""
31644
31645 #. type: verbatim
31646 #: ../src/guestfs-actions.pod:6078
31647 #, no-wrap
31648 msgid ""
31649 " char *\n"
31650 " guestfs_readlink (guestfs_h *g,\n"
31651 "                   const char *path);\n"
31652 "\n"
31653 msgstr ""
31654
31655 #. type: =head2
31656 #: ../src/guestfs-actions.pod:6089
31657 msgid "guestfs_readlinklist"
31658 msgstr ""
31659
31660 #. type: verbatim
31661 #: ../src/guestfs-actions.pod:6091
31662 #, no-wrap
31663 msgid ""
31664 " char **\n"
31665 " guestfs_readlinklist (guestfs_h *g,\n"
31666 "                       const char *path,\n"
31667 "                       char *const *names);\n"
31668 "\n"
31669 msgstr ""
31670
31671 #. type: =head2
31672 #: ../src/guestfs-actions.pod:6124
31673 msgid "guestfs_realpath"
31674 msgstr ""
31675
31676 #. type: verbatim
31677 #: ../src/guestfs-actions.pod:6126
31678 #, no-wrap
31679 msgid ""
31680 " char *\n"
31681 " guestfs_realpath (guestfs_h *g,\n"
31682 "                   const char *path);\n"
31683 "\n"
31684 msgstr ""
31685
31686 #. type: =head2
31687 #: ../src/guestfs-actions.pod:6138
31688 msgid "guestfs_removexattr"
31689 msgstr ""
31690
31691 #. type: verbatim
31692 #: ../src/guestfs-actions.pod:6140
31693 #, no-wrap
31694 msgid ""
31695 " int\n"
31696 " guestfs_removexattr (guestfs_h *g,\n"
31697 "                      const char *xattr,\n"
31698 "                      const char *path);\n"
31699 "\n"
31700 msgstr ""
31701
31702 #. type: textblock
31703 #: ../src/guestfs-actions.pod:6148
31704 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31705 msgstr ""
31706
31707 #. type: =head2
31708 #: ../src/guestfs-actions.pod:6154
31709 msgid "guestfs_resize2fs"
31710 msgstr ""
31711
31712 #. type: verbatim
31713 #: ../src/guestfs-actions.pod:6156
31714 #, no-wrap
31715 msgid ""
31716 " int\n"
31717 " guestfs_resize2fs (guestfs_h *g,\n"
31718 "                    const char *device);\n"
31719 "\n"
31720 msgstr ""
31721
31722 #. type: textblock
31723 #: ../src/guestfs-actions.pod:6163
31724 msgid ""
31725 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31726 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31727 "sometimes gives an error about this and sometimes not.  In any case, it is "
31728 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31729 msgstr ""
31730
31731 #. type: =head2
31732 #: ../src/guestfs-actions.pod:6173
31733 msgid "guestfs_resize2fs_M"
31734 msgstr ""
31735
31736 #. type: verbatim
31737 #: ../src/guestfs-actions.pod:6175
31738 #, no-wrap
31739 msgid ""
31740 " int\n"
31741 " guestfs_resize2fs_M (guestfs_h *g,\n"
31742 "                      const char *device);\n"
31743 "\n"
31744 msgstr ""
31745
31746 #. type: textblock
31747 #: ../src/guestfs-actions.pod:6179
31748 msgid ""
31749 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31750 "resized to its minimum size.  This works like the I<-M> option to the "
31751 "C<resize2fs> command."
31752 msgstr ""
31753
31754 #. type: textblock
31755 #: ../src/guestfs-actions.pod:6183
31756 msgid ""
31757 "To get the resulting size of the filesystem you should call "
31758 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31759 "These two numbers, multiplied together, give the resulting size of the "
31760 "minimal filesystem in bytes."
31761 msgstr ""
31762
31763 #. type: =head2
31764 #: ../src/guestfs-actions.pod:6192
31765 msgid "guestfs_resize2fs_size"
31766 msgstr ""
31767
31768 #. type: verbatim
31769 #: ../src/guestfs-actions.pod:6194
31770 #, no-wrap
31771 msgid ""
31772 " int\n"
31773 " guestfs_resize2fs_size (guestfs_h *g,\n"
31774 "                         const char *device,\n"
31775 "                         int64_t size);\n"
31776 "\n"
31777 msgstr ""
31778
31779 #. type: textblock
31780 #: ../src/guestfs-actions.pod:6199
31781 msgid ""
31782 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31783 "to specify the new size (in bytes) explicitly."
31784 msgstr ""
31785
31786 #. type: =head2
31787 #: ../src/guestfs-actions.pod:6206
31788 msgid "guestfs_rm"
31789 msgstr ""
31790
31791 #. type: verbatim
31792 #: ../src/guestfs-actions.pod:6208
31793 #, no-wrap
31794 msgid ""
31795 " int\n"
31796 " guestfs_rm (guestfs_h *g,\n"
31797 "             const char *path);\n"
31798 "\n"
31799 msgstr ""
31800
31801 #. type: =head2
31802 #: ../src/guestfs-actions.pod:6218
31803 msgid "guestfs_rm_rf"
31804 msgstr ""
31805
31806 #. type: verbatim
31807 #: ../src/guestfs-actions.pod:6220
31808 #, no-wrap
31809 msgid ""
31810 " int\n"
31811 " guestfs_rm_rf (guestfs_h *g,\n"
31812 "                const char *path);\n"
31813 "\n"
31814 msgstr ""
31815
31816 #. type: =head2
31817 #: ../src/guestfs-actions.pod:6232
31818 msgid "guestfs_rmdir"
31819 msgstr ""
31820
31821 #. type: verbatim
31822 #: ../src/guestfs-actions.pod:6234
31823 #, no-wrap
31824 msgid ""
31825 " int\n"
31826 " guestfs_rmdir (guestfs_h *g,\n"
31827 "                const char *path);\n"
31828 "\n"
31829 msgstr ""
31830
31831 #. type: =head2
31832 #: ../src/guestfs-actions.pod:6244
31833 msgid "guestfs_rmmountpoint"
31834 msgstr ""
31835
31836 #. type: verbatim
31837 #: ../src/guestfs-actions.pod:6246
31838 #, no-wrap
31839 msgid ""
31840 " int\n"
31841 " guestfs_rmmountpoint (guestfs_h *g,\n"
31842 "                       const char *exemptpath);\n"
31843 "\n"
31844 msgstr ""
31845
31846 #. type: textblock
31847 #: ../src/guestfs-actions.pod:6250
31848 msgid ""
31849 "This calls removes a mountpoint that was previously created with "
31850 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
31851 msgstr ""
31852
31853 #. type: =head2
31854 #: ../src/guestfs-actions.pod:6258
31855 msgid "guestfs_scrub_device"
31856 msgstr ""
31857
31858 #. type: verbatim
31859 #: ../src/guestfs-actions.pod:6260
31860 #, no-wrap
31861 msgid ""
31862 " int\n"
31863 " guestfs_scrub_device (guestfs_h *g,\n"
31864 "                       const char *device);\n"
31865 "\n"
31866 msgstr ""
31867
31868 #. type: textblock
31869 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6293
31870 #: ../src/guestfs-actions.pod:6312
31871 msgid "(Added in 1.0.52)"
31872 msgstr "(Додано у 1.0.52)"
31873
31874 #. type: =head2
31875 #: ../src/guestfs-actions.pod:6277
31876 msgid "guestfs_scrub_file"
31877 msgstr ""
31878
31879 #. type: verbatim
31880 #: ../src/guestfs-actions.pod:6279
31881 #, no-wrap
31882 msgid ""
31883 " int\n"
31884 " guestfs_scrub_file (guestfs_h *g,\n"
31885 "                     const char *file);\n"
31886 "\n"
31887 msgstr ""
31888
31889 #. type: =head2
31890 #: ../src/guestfs-actions.pod:6295
31891 msgid "guestfs_scrub_freespace"
31892 msgstr ""
31893
31894 #. type: verbatim
31895 #: ../src/guestfs-actions.pod:6297
31896 #, no-wrap
31897 msgid ""
31898 " int\n"
31899 " guestfs_scrub_freespace (guestfs_h *g,\n"
31900 "                          const char *dir);\n"
31901 "\n"
31902 msgstr ""
31903
31904 #. type: textblock
31905 #: ../src/guestfs-actions.pod:6301
31906 msgid ""
31907 "This command creates the directory C<dir> and then fills it with files until "
31908 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31909 "and deletes them.  The intention is to scrub any free space on the partition "
31910 "containing C<dir>."
31911 msgstr ""
31912
31913 #. type: =head2
31914 #: ../src/guestfs-actions.pod:6314
31915 msgid "guestfs_set_append"
31916 msgstr ""
31917
31918 #. type: verbatim
31919 #: ../src/guestfs-actions.pod:6316
31920 #, no-wrap
31921 msgid ""
31922 " int\n"
31923 " guestfs_set_append (guestfs_h *g,\n"
31924 "                     const char *append);\n"
31925 "\n"
31926 msgstr ""
31927
31928 #. type: =head2
31929 #: ../src/guestfs-actions.pod:6333
31930 msgid "guestfs_set_attach_method"
31931 msgstr ""
31932
31933 #. type: verbatim
31934 #: ../src/guestfs-actions.pod:6335
31935 #, no-wrap
31936 msgid ""
31937 " int\n"
31938 " guestfs_set_attach_method (guestfs_h *g,\n"
31939 "                            const char *attachmethod);\n"
31940 "\n"
31941 msgstr ""
31942
31943 #. type: =head2
31944 #: ../src/guestfs-actions.pod:6363
31945 msgid "guestfs_set_autosync"
31946 msgstr ""
31947
31948 #. type: verbatim
31949 #: ../src/guestfs-actions.pod:6365
31950 #, no-wrap
31951 msgid ""
31952 " int\n"
31953 " guestfs_set_autosync (guestfs_h *g,\n"
31954 "                       int autosync);\n"
31955 "\n"
31956 msgstr ""
31957
31958 #. type: =head2
31959 #: ../src/guestfs-actions.pod:6381
31960 msgid "guestfs_set_direct"
31961 msgstr ""
31962
31963 #. type: verbatim
31964 #: ../src/guestfs-actions.pod:6383
31965 #, no-wrap
31966 msgid ""
31967 " int\n"
31968 " guestfs_set_direct (guestfs_h *g,\n"
31969 "                     int direct);\n"
31970 "\n"
31971 msgstr ""
31972
31973 #. type: textblock
31974 #: ../src/guestfs-actions.pod:6391
31975 msgid ""
31976 "One consequence of this is that log messages aren't caught by the library "
31977 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31978 "stdout."
31979 msgstr ""
31980
31981 #. type: =head2
31982 #: ../src/guestfs-actions.pod:6404
31983 msgid "guestfs_set_e2label"
31984 msgstr ""
31985
31986 #. type: verbatim
31987 #: ../src/guestfs-actions.pod:6406
31988 #, no-wrap
31989 msgid ""
31990 " int\n"
31991 " guestfs_set_e2label (guestfs_h *g,\n"
31992 "                      const char *device,\n"
31993 "                      const char *label);\n"
31994 "\n"
31995 msgstr ""
31996
31997 #. type: textblock
31998 #: ../src/guestfs-actions.pod:6415
31999 msgid ""
32000 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32001 "the existing label on a filesystem."
32002 msgstr ""
32003
32004 #. type: =head2
32005 #: ../src/guestfs-actions.pod:6422
32006 msgid "guestfs_set_e2uuid"
32007 msgstr ""
32008
32009 #. type: verbatim
32010 #: ../src/guestfs-actions.pod:6424
32011 #, no-wrap
32012 msgid ""
32013 " int\n"
32014 " guestfs_set_e2uuid (guestfs_h *g,\n"
32015 "                     const char *device,\n"
32016 "                     const char *uuid);\n"
32017 "\n"
32018 msgstr ""
32019
32020 #. type: textblock
32021 #: ../src/guestfs-actions.pod:6434
32022 msgid ""
32023 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32024 "the existing UUID of a filesystem."
32025 msgstr ""
32026
32027 #. type: =head2
32028 #: ../src/guestfs-actions.pod:6441
32029 msgid "guestfs_set_memsize"
32030 msgstr ""
32031
32032 #. type: verbatim
32033 #: ../src/guestfs-actions.pod:6443
32034 #, no-wrap
32035 msgid ""
32036 " int\n"
32037 " guestfs_set_memsize (guestfs_h *g,\n"
32038 "                      int memsize);\n"
32039 "\n"
32040 msgstr ""
32041
32042 #. type: textblock
32043 #: ../src/guestfs-actions.pod:6447
32044 msgid ""
32045 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
32046 "This only has any effect if called before C<guestfs_launch>."
32047 msgstr ""
32048
32049 #. type: =head2
32050 #: ../src/guestfs-actions.pod:6462
32051 msgid "guestfs_set_network"
32052 msgstr ""
32053
32054 #. type: verbatim
32055 #: ../src/guestfs-actions.pod:6464
32056 #, no-wrap
32057 msgid ""
32058 " int\n"
32059 " guestfs_set_network (guestfs_h *g,\n"
32060 "                      int network);\n"
32061 "\n"
32062 msgstr ""
32063
32064 #. type: textblock
32065 #: ../src/guestfs-actions.pod:6474
32066 msgid ""
32067 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32068 "effect."
32069 msgstr ""
32070
32071 #. type: =head2
32072 #: ../src/guestfs-actions.pod:6481
32073 msgid "guestfs_set_path"
32074 msgstr ""
32075
32076 #. type: verbatim
32077 #: ../src/guestfs-actions.pod:6483
32078 #, no-wrap
32079 msgid ""
32080 " int\n"
32081 " guestfs_set_path (guestfs_h *g,\n"
32082 "                   const char *searchpath);\n"
32083 "\n"
32084 msgstr ""
32085
32086 #. type: =head2
32087 #: ../src/guestfs-actions.pod:6498
32088 msgid "guestfs_set_pgroup"
32089 msgstr ""
32090
32091 #. type: verbatim
32092 #: ../src/guestfs-actions.pod:6500
32093 #, no-wrap
32094 msgid ""
32095 " int\n"
32096 " guestfs_set_pgroup (guestfs_h *g,\n"
32097 "                     int pgroup);\n"
32098 "\n"
32099 msgstr ""
32100
32101 #. type: =head2
32102 #: ../src/guestfs-actions.pod:6517
32103 msgid "guestfs_set_qemu"
32104 msgstr ""
32105
32106 #. type: verbatim
32107 #: ../src/guestfs-actions.pod:6519
32108 #, no-wrap
32109 msgid ""
32110 " int\n"
32111 " guestfs_set_qemu (guestfs_h *g,\n"
32112 "                   const char *qemu);\n"
32113 "\n"
32114 msgstr ""
32115
32116 #. type: =head2
32117 #: ../src/guestfs-actions.pod:6545
32118 msgid "guestfs_set_recovery_proc"
32119 msgstr ""
32120
32121 #. type: verbatim
32122 #: ../src/guestfs-actions.pod:6547
32123 #, no-wrap
32124 msgid ""
32125 " int\n"
32126 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32127 "                            int recoveryproc);\n"
32128 "\n"
32129 msgstr ""
32130
32131 #. type: textblock
32132 #: ../src/guestfs-actions.pod:6551
32133 msgid ""
32134 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32135 "not create a recovery process.  The purpose of the recovery process is to "
32136 "stop runaway qemu processes in the case where the main program aborts "
32137 "abruptly."
32138 msgstr ""
32139
32140 #. type: textblock
32141 #: ../src/guestfs-actions.pod:6556
32142 msgid ""
32143 "This only has any effect if called before C<guestfs_launch>, and the default "
32144 "is true."
32145 msgstr ""
32146
32147 #. type: =head2
32148 #: ../src/guestfs-actions.pod:6569
32149 msgid "guestfs_set_selinux"
32150 msgstr ""
32151
32152 #. type: verbatim
32153 #: ../src/guestfs-actions.pod:6571
32154 #, no-wrap
32155 msgid ""
32156 " int\n"
32157 " guestfs_set_selinux (guestfs_h *g,\n"
32158 "                      int selinux);\n"
32159 "\n"
32160 msgstr ""
32161
32162 #. type: =head2
32163 #: ../src/guestfs-actions.pod:6588
32164 msgid "guestfs_set_smp"
32165 msgstr ""
32166
32167 #. type: verbatim
32168 #: ../src/guestfs-actions.pod:6590
32169 #, no-wrap
32170 msgid ""
32171 " int\n"
32172 " guestfs_set_smp (guestfs_h *g,\n"
32173 "                  int smp);\n"
32174 "\n"
32175 msgstr ""
32176
32177 #. type: textblock
32178 #: ../src/guestfs-actions.pod:6598
32179 msgid "This function must be called before C<guestfs_launch>."
32180 msgstr ""
32181
32182 #. type: =head2
32183 #: ../src/guestfs-actions.pod:6604
32184 msgid "guestfs_set_trace"
32185 msgstr ""
32186
32187 #. type: verbatim
32188 #: ../src/guestfs-actions.pod:6606
32189 #, no-wrap
32190 msgid ""
32191 " int\n"
32192 " guestfs_set_trace (guestfs_h *g,\n"
32193 "                    int trace);\n"
32194 "\n"
32195 msgstr ""
32196
32197 #. type: textblock
32198 #: ../src/guestfs-actions.pod:6620
32199 msgid ""
32200 "Trace messages are normally sent to C<stderr>, unless you register a "
32201 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32202 msgstr ""
32203
32204 #. type: =head2
32205 #: ../src/guestfs-actions.pod:6628
32206 msgid "guestfs_set_verbose"
32207 msgstr ""
32208
32209 #. type: verbatim
32210 #: ../src/guestfs-actions.pod:6630
32211 #, no-wrap
32212 msgid ""
32213 " int\n"
32214 " guestfs_set_verbose (guestfs_h *g,\n"
32215 "                      int verbose);\n"
32216 "\n"
32217 msgstr ""
32218
32219 #. type: textblock
32220 #: ../src/guestfs-actions.pod:6639
32221 msgid ""
32222 "Verbose messages are normally sent to C<stderr>, unless you register a "
32223 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32224 msgstr ""
32225
32226 #. type: =head2
32227 #: ../src/guestfs-actions.pod:6647
32228 msgid "guestfs_setcon"
32229 msgstr ""
32230
32231 #. type: verbatim
32232 #: ../src/guestfs-actions.pod:6649
32233 #, no-wrap
32234 msgid ""
32235 " int\n"
32236 " guestfs_setcon (guestfs_h *g,\n"
32237 "                 const char *context);\n"
32238 "\n"
32239 msgstr ""
32240
32241 #. type: =head2
32242 #: ../src/guestfs-actions.pod:6662
32243 msgid "guestfs_setxattr"
32244 msgstr ""
32245
32246 #. type: verbatim
32247 #: ../src/guestfs-actions.pod:6664
32248 #, no-wrap
32249 msgid ""
32250 " int\n"
32251 " guestfs_setxattr (guestfs_h *g,\n"
32252 "                   const char *xattr,\n"
32253 "                   const char *val,\n"
32254 "                   int vallen,\n"
32255 "                   const char *path);\n"
32256 "\n"
32257 msgstr ""
32258
32259 #. type: textblock
32260 #: ../src/guestfs-actions.pod:6675
32261 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32262 msgstr ""
32263
32264 #. type: =head2
32265 #: ../src/guestfs-actions.pod:6681
32266 msgid "guestfs_sfdisk"
32267 msgstr ""
32268
32269 #. type: verbatim
32270 #: ../src/guestfs-actions.pod:6683
32271 #, no-wrap
32272 msgid ""
32273 " int\n"
32274 " guestfs_sfdisk (guestfs_h *g,\n"
32275 "                 const char *device,\n"
32276 "                 int cyls,\n"
32277 "                 int heads,\n"
32278 "                 int sectors,\n"
32279 "                 char *const *lines);\n"
32280 "\n"
32281 msgstr ""
32282
32283 #. type: textblock
32284 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:6735
32285 #: ../src/guestfs-actions.pod:6769
32286 msgid ""
32287 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32288 "call instead."
32289 msgstr ""
32290
32291 #. type: textblock
32292 #: ../src/guestfs-actions.pod:6718
32293 msgid ""
32294 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32295 msgstr ""
32296
32297 #. type: =head2
32298 #: ../src/guestfs-actions.pod:6728
32299 msgid "guestfs_sfdiskM"
32300 msgstr ""
32301
32302 #. type: verbatim
32303 #: ../src/guestfs-actions.pod:6730
32304 #, no-wrap
32305 msgid ""
32306 " int\n"
32307 " guestfs_sfdiskM (guestfs_h *g,\n"
32308 "                  const char *device,\n"
32309 "                  char *const *lines);\n"
32310 "\n"
32311 msgstr ""
32312
32313 #. type: textblock
32314 #: ../src/guestfs-actions.pod:6742
32315 msgid ""
32316 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32317 "partition sizes are specified in megabytes only (rounded to the nearest "
32318 "cylinder) and you don't need to specify the cyls, heads and sectors "
32319 "parameters which were rarely if ever used anyway."
32320 msgstr ""
32321
32322 #. type: textblock
32323 #: ../src/guestfs-actions.pod:6748
32324 msgid ""
32325 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32326 "C<guestfs_part_disk>"
32327 msgstr ""
32328
32329 #. type: =head2
32330 #: ../src/guestfs-actions.pod:6758
32331 msgid "guestfs_sfdisk_N"
32332 msgstr ""
32333
32334 #. type: verbatim
32335 #: ../src/guestfs-actions.pod:6760
32336 #, no-wrap
32337 msgid ""
32338 " int\n"
32339 " guestfs_sfdisk_N (guestfs_h *g,\n"
32340 "                   const char *device,\n"
32341 "                   int partnum,\n"
32342 "                   int cyls,\n"
32343 "                   int heads,\n"
32344 "                   int sectors,\n"
32345 "                   const char *line);\n"
32346 "\n"
32347 msgstr ""
32348
32349 #. type: textblock
32350 #: ../src/guestfs-actions.pod:6779
32351 msgid ""
32352 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32353 "for the cyls/heads/sectors parameters."
32354 msgstr ""
32355
32356 #. type: textblock
32357 #: ../src/guestfs-actions.pod:6782
32358 msgid "See also: C<guestfs_part_add>"
32359 msgstr ""
32360
32361 #. type: =head2
32362 #: ../src/guestfs-actions.pod:6791
32363 msgid "guestfs_sfdisk_disk_geometry"
32364 msgstr ""
32365
32366 #. type: verbatim
32367 #: ../src/guestfs-actions.pod:6793
32368 #, no-wrap
32369 msgid ""
32370 " char *\n"
32371 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32372 "                               const char *device);\n"
32373 "\n"
32374 msgstr ""
32375
32376 #. type: textblock
32377 #: ../src/guestfs-actions.pod:6797
32378 msgid ""
32379 "This displays the disk geometry of C<device> read from the partition table.  "
32380 "Especially in the case where the underlying block device has been resized, "
32381 "this can be different from the kernel's idea of the geometry (see "
32382 "C<guestfs_sfdisk_kernel_geometry>)."
32383 msgstr ""
32384
32385 #. type: =head2
32386 #: ../src/guestfs-actions.pod:6810
32387 msgid "guestfs_sfdisk_kernel_geometry"
32388 msgstr ""
32389
32390 #. type: verbatim
32391 #: ../src/guestfs-actions.pod:6812
32392 #, no-wrap
32393 msgid ""
32394 " char *\n"
32395 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32396 "                                 const char *device);\n"
32397 "\n"
32398 msgstr ""
32399
32400 #. type: =head2
32401 #: ../src/guestfs-actions.pod:6826
32402 msgid "guestfs_sfdisk_l"
32403 msgstr ""
32404
32405 #. type: verbatim
32406 #: ../src/guestfs-actions.pod:6828
32407 #, no-wrap
32408 msgid ""
32409 " char *\n"
32410 " guestfs_sfdisk_l (guestfs_h *g,\n"
32411 "                   const char *device);\n"
32412 "\n"
32413 msgstr ""
32414
32415 #. type: textblock
32416 #: ../src/guestfs-actions.pod:6832
32417 msgid ""
32418 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32419 "call instead."
32420 msgstr ""
32421
32422 #. type: textblock
32423 #: ../src/guestfs-actions.pod:6843
32424 msgid "See also: C<guestfs_part_list>"
32425 msgstr ""
32426
32427 #. type: =head2
32428 #: ../src/guestfs-actions.pod:6850
32429 msgid "guestfs_sh"
32430 msgstr ""
32431
32432 #. type: verbatim
32433 #: ../src/guestfs-actions.pod:6852
32434 #, no-wrap
32435 msgid ""
32436 " char *\n"
32437 " guestfs_sh (guestfs_h *g,\n"
32438 "             const char *command);\n"
32439 "\n"
32440 msgstr ""
32441
32442 #. type: textblock
32443 #: ../src/guestfs-actions.pod:6859
32444 msgid "This is like C<guestfs_command>, but passes the command to:"
32445 msgstr ""
32446
32447 #. type: textblock
32448 #: ../src/guestfs-actions.pod:6867
32449 msgid "All the provisos about C<guestfs_command> apply to this call."
32450 msgstr ""
32451
32452 #. type: =head2
32453 #: ../src/guestfs-actions.pod:6874
32454 msgid "guestfs_sh_lines"
32455 msgstr ""
32456
32457 #. type: verbatim
32458 #: ../src/guestfs-actions.pod:6876
32459 #, no-wrap
32460 msgid ""
32461 " char **\n"
32462 " guestfs_sh_lines (guestfs_h *g,\n"
32463 "                   const char *command);\n"
32464 "\n"
32465 msgstr ""
32466
32467 #. type: textblock
32468 #: ../src/guestfs-actions.pod:6880
32469 msgid ""
32470 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32471 "lines."
32472 msgstr ""
32473
32474 #. type: textblock
32475 #: ../src/guestfs-actions.pod:6883
32476 msgid "See also: C<guestfs_command_lines>"
32477 msgstr ""
32478
32479 #. type: =head2
32480 #: ../src/guestfs-actions.pod:6891
32481 msgid "guestfs_sleep"
32482 msgstr ""
32483
32484 #. type: verbatim
32485 #: ../src/guestfs-actions.pod:6893
32486 #, no-wrap
32487 msgid ""
32488 " int\n"
32489 " guestfs_sleep (guestfs_h *g,\n"
32490 "                int secs);\n"
32491 "\n"
32492 msgstr ""
32493
32494 #. type: textblock
32495 #: ../src/guestfs-actions.pod:6901
32496 msgid "(Added in 1.0.41)"
32497 msgstr "(Додано у 1.0.41)"
32498
32499 #. type: =head2
32500 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-structs.pod:109
32501 msgid "guestfs_stat"
32502 msgstr ""
32503
32504 #. type: verbatim
32505 #: ../src/guestfs-actions.pod:6905
32506 #, no-wrap
32507 msgid ""
32508 " struct guestfs_stat *\n"
32509 " guestfs_stat (guestfs_h *g,\n"
32510 "               const char *path);\n"
32511 "\n"
32512 msgstr ""
32513
32514 #. type: =head2
32515 #: ../src/guestfs-actions.pod:6919 ../src/guestfs-structs.pod:135
32516 msgid "guestfs_statvfs"
32517 msgstr ""
32518
32519 #. type: verbatim
32520 #: ../src/guestfs-actions.pod:6921
32521 #, no-wrap
32522 msgid ""
32523 " struct guestfs_statvfs *\n"
32524 " guestfs_statvfs (guestfs_h *g,\n"
32525 "                  const char *path);\n"
32526 "\n"
32527 msgstr ""
32528
32529 #. type: textblock
32530 #: ../src/guestfs-actions.pod:6931
32531 msgid ""
32532 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32533 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32534 msgstr ""
32535
32536 #. type: =head2
32537 #: ../src/guestfs-actions.pod:6937
32538 msgid "guestfs_strings"
32539 msgstr ""
32540
32541 #. type: verbatim
32542 #: ../src/guestfs-actions.pod:6939
32543 #, no-wrap
32544 msgid ""
32545 " char **\n"
32546 " guestfs_strings (guestfs_h *g,\n"
32547 "                  const char *path);\n"
32548 "\n"
32549 msgstr ""
32550
32551 #. type: =head2
32552 #: ../src/guestfs-actions.pod:6955
32553 msgid "guestfs_strings_e"
32554 msgstr ""
32555
32556 #. type: verbatim
32557 #: ../src/guestfs-actions.pod:6957
32558 #, no-wrap
32559 msgid ""
32560 " char **\n"
32561 " guestfs_strings_e (guestfs_h *g,\n"
32562 "                    const char *encoding,\n"
32563 "                    const char *path);\n"
32564 "\n"
32565 msgstr ""
32566
32567 #. type: textblock
32568 #: ../src/guestfs-actions.pod:6962
32569 msgid ""
32570 "This is like the C<guestfs_strings> command, but allows you to specify the "
32571 "encoding of strings that are looked for in the source file C<path>."
32572 msgstr ""
32573
32574 #. type: textblock
32575 #: ../src/guestfs-actions.pod:6972
32576 msgid ""
32577 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32578 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32579 msgstr ""
32580
32581 #. type: =head2
32582 #: ../src/guestfs-actions.pod:7010
32583 msgid "guestfs_swapoff_device"
32584 msgstr ""
32585
32586 #. type: verbatim
32587 #: ../src/guestfs-actions.pod:7012
32588 #, no-wrap
32589 msgid ""
32590 " int\n"
32591 " guestfs_swapoff_device (guestfs_h *g,\n"
32592 "                         const char *device);\n"
32593 "\n"
32594 msgstr ""
32595
32596 #. type: textblock
32597 #: ../src/guestfs-actions.pod:7016
32598 msgid ""
32599 "This command disables the libguestfs appliance swap device or partition "
32600 "named C<device>.  See C<guestfs_swapon_device>."
32601 msgstr ""
32602
32603 #. type: =head2
32604 #: ../src/guestfs-actions.pod:7024
32605 msgid "guestfs_swapoff_file"
32606 msgstr ""
32607
32608 #. type: verbatim
32609 #: ../src/guestfs-actions.pod:7026
32610 #, no-wrap
32611 msgid ""
32612 " int\n"
32613 " guestfs_swapoff_file (guestfs_h *g,\n"
32614 "                       const char *file);\n"
32615 "\n"
32616 msgstr ""
32617
32618 #. type: =head2
32619 #: ../src/guestfs-actions.pod:7036
32620 msgid "guestfs_swapoff_label"
32621 msgstr ""
32622
32623 #. type: verbatim
32624 #: ../src/guestfs-actions.pod:7038
32625 #, no-wrap
32626 msgid ""
32627 " int\n"
32628 " guestfs_swapoff_label (guestfs_h *g,\n"
32629 "                        const char *label);\n"
32630 "\n"
32631 msgstr ""
32632
32633 #. type: =head2
32634 #: ../src/guestfs-actions.pod:7049
32635 msgid "guestfs_swapoff_uuid"
32636 msgstr ""
32637
32638 #. type: verbatim
32639 #: ../src/guestfs-actions.pod:7051
32640 #, no-wrap
32641 msgid ""
32642 " int\n"
32643 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32644 "                       const char *uuid);\n"
32645 "\n"
32646 msgstr ""
32647
32648 #. type: =head2
32649 #: ../src/guestfs-actions.pod:7062
32650 msgid "guestfs_swapon_device"
32651 msgstr ""
32652
32653 #. type: verbatim
32654 #: ../src/guestfs-actions.pod:7064
32655 #, no-wrap
32656 msgid ""
32657 " int\n"
32658 " guestfs_swapon_device (guestfs_h *g,\n"
32659 "                        const char *device);\n"
32660 "\n"
32661 msgstr ""
32662
32663 #. type: textblock
32664 #: ../src/guestfs-actions.pod:7068
32665 msgid ""
32666 "This command enables the libguestfs appliance to use the swap device or "
32667 "partition named C<device>.  The increased memory is made available for all "
32668 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32669 msgstr ""
32670
32671 #. type: =head2
32672 #: ../src/guestfs-actions.pod:7084
32673 msgid "guestfs_swapon_file"
32674 msgstr ""
32675
32676 #. type: verbatim
32677 #: ../src/guestfs-actions.pod:7086
32678 #, no-wrap
32679 msgid ""
32680 " int\n"
32681 " guestfs_swapon_file (guestfs_h *g,\n"
32682 "                      const char *file);\n"
32683 "\n"
32684 msgstr ""
32685
32686 #. type: textblock
32687 #: ../src/guestfs-actions.pod:7090
32688 msgid ""
32689 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32690 "notes."
32691 msgstr ""
32692
32693 #. type: =head2
32694 #: ../src/guestfs-actions.pod:7097
32695 msgid "guestfs_swapon_label"
32696 msgstr ""
32697
32698 #. type: verbatim
32699 #: ../src/guestfs-actions.pod:7099
32700 #, no-wrap
32701 msgid ""
32702 " int\n"
32703 " guestfs_swapon_label (guestfs_h *g,\n"
32704 "                       const char *label);\n"
32705 "\n"
32706 msgstr ""
32707
32708 #. type: textblock
32709 #: ../src/guestfs-actions.pod:7103
32710 msgid ""
32711 "This command enables swap to a labeled swap partition.  See "
32712 "C<guestfs_swapon_device> for other notes."
32713 msgstr ""
32714
32715 #. type: =head2
32716 #: ../src/guestfs-actions.pod:7110
32717 msgid "guestfs_swapon_uuid"
32718 msgstr ""
32719
32720 #. type: verbatim
32721 #: ../src/guestfs-actions.pod:7112
32722 #, no-wrap
32723 msgid ""
32724 " int\n"
32725 " guestfs_swapon_uuid (guestfs_h *g,\n"
32726 "                      const char *uuid);\n"
32727 "\n"
32728 msgstr ""
32729
32730 #. type: textblock
32731 #: ../src/guestfs-actions.pod:7116
32732 msgid ""
32733 "This command enables swap to a swap partition with the given UUID.  See "
32734 "C<guestfs_swapon_device> for other notes."
32735 msgstr ""
32736
32737 #. type: =head2
32738 #: ../src/guestfs-actions.pod:7123
32739 msgid "guestfs_sync"
32740 msgstr ""
32741
32742 #. type: verbatim
32743 #: ../src/guestfs-actions.pod:7125
32744 #, no-wrap
32745 msgid ""
32746 " int\n"
32747 " guestfs_sync (guestfs_h *g);\n"
32748 "\n"
32749 msgstr ""
32750
32751 #. type: =head2
32752 #: ../src/guestfs-actions.pod:7138
32753 msgid "guestfs_tail"
32754 msgstr ""
32755
32756 #. type: verbatim
32757 #: ../src/guestfs-actions.pod:7140
32758 #, no-wrap
32759 msgid ""
32760 " char **\n"
32761 " guestfs_tail (guestfs_h *g,\n"
32762 "               const char *path);\n"
32763 "\n"
32764 msgstr ""
32765
32766 #. type: =head2
32767 #: ../src/guestfs-actions.pod:7156
32768 msgid "guestfs_tail_n"
32769 msgstr ""
32770
32771 #. type: verbatim
32772 #: ../src/guestfs-actions.pod:7158
32773 #, no-wrap
32774 msgid ""
32775 " char **\n"
32776 " guestfs_tail_n (guestfs_h *g,\n"
32777 "                 int nrlines,\n"
32778 "                 const char *path);\n"
32779 "\n"
32780 msgstr ""
32781
32782 #. type: =head2
32783 #: ../src/guestfs-actions.pod:7180
32784 msgid "guestfs_tar_in"
32785 msgstr ""
32786
32787 #. type: verbatim
32788 #: ../src/guestfs-actions.pod:7182
32789 #, no-wrap
32790 msgid ""
32791 " int\n"
32792 " guestfs_tar_in (guestfs_h *g,\n"
32793 "                 const char *tarfile,\n"
32794 "                 const char *directory);\n"
32795 "\n"
32796 msgstr ""
32797
32798 #. type: textblock
32799 #: ../src/guestfs-actions.pod:7190
32800 msgid ""
32801 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32802 msgstr ""
32803
32804 #. type: textblock
32805 #: ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7212
32806 #: ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:7244
32807 msgid "(Added in 1.0.3)"
32808 msgstr "(Додано у 1.0.3)"
32809
32810 #. type: =head2
32811 #: ../src/guestfs-actions.pod:7197
32812 msgid "guestfs_tar_out"
32813 msgstr ""
32814
32815 #. type: verbatim
32816 #: ../src/guestfs-actions.pod:7199
32817 #, no-wrap
32818 msgid ""
32819 " int\n"
32820 " guestfs_tar_out (guestfs_h *g,\n"
32821 "                  const char *directory,\n"
32822 "                  const char *tarfile);\n"
32823 "\n"
32824 msgstr ""
32825
32826 #. type: textblock
32827 #: ../src/guestfs-actions.pod:7207
32828 msgid ""
32829 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32830 "C<guestfs_txz_out>."
32831 msgstr ""
32832
32833 #. type: =head2
32834 #: ../src/guestfs-actions.pod:7214
32835 msgid "guestfs_tgz_in"
32836 msgstr ""
32837
32838 #. type: verbatim
32839 #: ../src/guestfs-actions.pod:7216
32840 #, no-wrap
32841 msgid ""
32842 " int\n"
32843 " guestfs_tgz_in (guestfs_h *g,\n"
32844 "                 const char *tarball,\n"
32845 "                 const char *directory);\n"
32846 "\n"
32847 msgstr ""
32848
32849 #. type: textblock
32850 #: ../src/guestfs-actions.pod:7224
32851 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32852 msgstr ""
32853
32854 #. type: =head2
32855 #: ../src/guestfs-actions.pod:7230
32856 msgid "guestfs_tgz_out"
32857 msgstr ""
32858
32859 #. type: verbatim
32860 #: ../src/guestfs-actions.pod:7232
32861 #, no-wrap
32862 msgid ""
32863 " int\n"
32864 " guestfs_tgz_out (guestfs_h *g,\n"
32865 "                  const char *directory,\n"
32866 "                  const char *tarball);\n"
32867 "\n"
32868 msgstr ""
32869
32870 #. type: textblock
32871 #: ../src/guestfs-actions.pod:7240
32872 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32873 msgstr ""
32874
32875 #. type: =head2
32876 #: ../src/guestfs-actions.pod:7246
32877 msgid "guestfs_touch"
32878 msgstr ""
32879
32880 #. type: verbatim
32881 #: ../src/guestfs-actions.pod:7248
32882 #, no-wrap
32883 msgid ""
32884 " int\n"
32885 " guestfs_touch (guestfs_h *g,\n"
32886 "                const char *path);\n"
32887 "\n"
32888 msgstr ""
32889
32890 #. type: =head2
32891 #: ../src/guestfs-actions.pod:7263
32892 msgid "guestfs_truncate"
32893 msgstr ""
32894
32895 #. type: verbatim
32896 #: ../src/guestfs-actions.pod:7265
32897 #, no-wrap
32898 msgid ""
32899 " int\n"
32900 " guestfs_truncate (guestfs_h *g,\n"
32901 "                   const char *path);\n"
32902 "\n"
32903 msgstr ""
32904
32905 #. type: =head2
32906 #: ../src/guestfs-actions.pod:7276
32907 msgid "guestfs_truncate_size"
32908 msgstr ""
32909
32910 #. type: verbatim
32911 #: ../src/guestfs-actions.pod:7278
32912 #, no-wrap
32913 msgid ""
32914 " int\n"
32915 " guestfs_truncate_size (guestfs_h *g,\n"
32916 "                        const char *path,\n"
32917 "                        int64_t size);\n"
32918 "\n"
32919 msgstr ""
32920
32921 #. type: textblock
32922 #: ../src/guestfs-actions.pod:7286
32923 msgid ""
32924 "If the current file size is less than C<size> then the file is extended to "
32925 "the required size with zero bytes.  This creates a sparse file (ie. disk "
32926 "blocks are not allocated for the file until you write to it).  To create a "
32927 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32928 msgstr ""
32929
32930 #. type: =head2
32931 #: ../src/guestfs-actions.pod:7296
32932 msgid "guestfs_tune2fs_l"
32933 msgstr ""
32934
32935 #. type: verbatim
32936 #: ../src/guestfs-actions.pod:7298
32937 #, no-wrap
32938 msgid ""
32939 " char **\n"
32940 " guestfs_tune2fs_l (guestfs_h *g,\n"
32941 "                    const char *device);\n"
32942 "\n"
32943 msgstr ""
32944
32945 #. type: =head2
32946 #: ../src/guestfs-actions.pod:7318
32947 msgid "guestfs_txz_in"
32948 msgstr ""
32949
32950 #. type: verbatim
32951 #: ../src/guestfs-actions.pod:7320
32952 #, no-wrap
32953 msgid ""
32954 " int\n"
32955 " guestfs_txz_in (guestfs_h *g,\n"
32956 "                 const char *tarball,\n"
32957 "                 const char *directory);\n"
32958 "\n"
32959 msgstr ""
32960
32961 #. type: =head2
32962 #: ../src/guestfs-actions.pod:7332
32963 msgid "guestfs_txz_out"
32964 msgstr ""
32965
32966 #. type: verbatim
32967 #: ../src/guestfs-actions.pod:7334
32968 #, no-wrap
32969 msgid ""
32970 " int\n"
32971 " guestfs_txz_out (guestfs_h *g,\n"
32972 "                  const char *directory,\n"
32973 "                  const char *tarball);\n"
32974 "\n"
32975 msgstr ""
32976
32977 #. type: =head2
32978 #: ../src/guestfs-actions.pod:7346
32979 msgid "guestfs_umask"
32980 msgstr ""
32981
32982 #. type: verbatim
32983 #: ../src/guestfs-actions.pod:7348
32984 #, no-wrap
32985 msgid ""
32986 " int\n"
32987 " guestfs_umask (guestfs_h *g,\n"
32988 "                int mask);\n"
32989 "\n"
32990 msgstr ""
32991
32992 #. type: textblock
32993 #: ../src/guestfs-actions.pod:7364
32994 msgid ""
32995 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32996 "C<guestfs_mkdir>."
32997 msgstr ""
32998
32999 #. type: =head2
33000 #: ../src/guestfs-actions.pod:7373
33001 msgid "guestfs_umount"
33002 msgstr ""
33003
33004 #. type: verbatim
33005 #: ../src/guestfs-actions.pod:7375
33006 #, no-wrap
33007 msgid ""
33008 " int\n"
33009 " guestfs_umount (guestfs_h *g,\n"
33010 "                 const char *pathordevice);\n"
33011 "\n"
33012 msgstr ""
33013
33014 #. type: =head2
33015 #: ../src/guestfs-actions.pod:7387
33016 msgid "guestfs_umount_all"
33017 msgstr ""
33018
33019 #. type: verbatim
33020 #: ../src/guestfs-actions.pod:7389
33021 #, no-wrap
33022 msgid ""
33023 " int\n"
33024 " guestfs_umount_all (guestfs_h *g);\n"
33025 "\n"
33026 msgstr ""
33027
33028 #. type: =head2
33029 #: ../src/guestfs-actions.pod:7400
33030 msgid "guestfs_upload"
33031 msgstr ""
33032
33033 #. type: verbatim
33034 #: ../src/guestfs-actions.pod:7402
33035 #, no-wrap
33036 msgid ""
33037 " int\n"
33038 " guestfs_upload (guestfs_h *g,\n"
33039 "                 const char *filename,\n"
33040 "                 const char *remotefilename);\n"
33041 "\n"
33042 msgstr ""
33043
33044 #. type: textblock
33045 #: ../src/guestfs-actions.pod:7412
33046 msgid "See also C<guestfs_download>."
33047 msgstr ""
33048
33049 #. type: =head2
33050 #: ../src/guestfs-actions.pod:7423
33051 msgid "guestfs_upload_offset"
33052 msgstr ""
33053
33054 #. type: verbatim
33055 #: ../src/guestfs-actions.pod:7425
33056 #, no-wrap
33057 msgid ""
33058 " int\n"
33059 " guestfs_upload_offset (guestfs_h *g,\n"
33060 "                        const char *filename,\n"
33061 "                        const char *remotefilename,\n"
33062 "                        int64_t offset);\n"
33063 "\n"
33064 msgstr ""
33065
33066 #. type: textblock
33067 #: ../src/guestfs-actions.pod:7441
33068 msgid ""
33069 "Note that there is no limit on the amount of data that can be uploaded with "
33070 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33071 "full amount unless an error occurs."
33072 msgstr ""
33073
33074 #. type: textblock
33075 #: ../src/guestfs-actions.pod:7446
33076 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33077 msgstr ""
33078
33079 #. type: =head2
33080 #: ../src/guestfs-actions.pod:7457
33081 msgid "guestfs_utimens"
33082 msgstr ""
33083
33084 #. type: verbatim
33085 #: ../src/guestfs-actions.pod:7459
33086 #, no-wrap
33087 msgid ""
33088 " int\n"
33089 " guestfs_utimens (guestfs_h *g,\n"
33090 "                  const char *path,\n"
33091 "                  int64_t atsecs,\n"
33092 "                  int64_t atnsecs,\n"
33093 "                  int64_t mtsecs,\n"
33094 "                  int64_t mtnsecs);\n"
33095 "\n"
33096 msgstr ""
33097
33098 #. type: =head2
33099 #: ../src/guestfs-actions.pod:7488 ../src/guestfs-structs.pod:175
33100 msgid "guestfs_version"
33101 msgstr ""
33102
33103 #. type: verbatim
33104 #: ../src/guestfs-actions.pod:7490
33105 #, no-wrap
33106 msgid ""
33107 " struct guestfs_version *\n"
33108 " guestfs_version (guestfs_h *g);\n"
33109 "\n"
33110 msgstr ""
33111
33112 #. type: textblock
33113 #: ../src/guestfs-actions.pod:7518
33114 msgid ""
33115 "I<Note:> Don't use this call to test for availability of features.  In "
33116 "enterprise distributions we backport features from later versions into "
33117 "earlier versions, making this an unreliable way to test for features.  Use "
33118 "C<guestfs_available> instead."
33119 msgstr ""
33120
33121 #. type: textblock
33122 #: ../src/guestfs-actions.pod:7524
33123 msgid ""
33124 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33125 "error.  I<The caller must call C<guestfs_free_version> after use>."
33126 msgstr ""
33127
33128 #. type: textblock
33129 #: ../src/guestfs-actions.pod:7528
33130 msgid "(Added in 1.0.58)"
33131 msgstr "(Додано у 1.0.58)"
33132
33133 #. type: =head2
33134 #: ../src/guestfs-actions.pod:7530
33135 msgid "guestfs_vfs_label"
33136 msgstr ""
33137
33138 #. type: verbatim
33139 #: ../src/guestfs-actions.pod:7532
33140 #, no-wrap
33141 msgid ""
33142 " char *\n"
33143 " guestfs_vfs_label (guestfs_h *g,\n"
33144 "                    const char *device);\n"
33145 "\n"
33146 msgstr ""
33147
33148 #. type: textblock
33149 #: ../src/guestfs-actions.pod:7541
33150 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33151 msgstr ""
33152
33153 #. type: textblock
33154 #: ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7583
33155 msgid "(Added in 1.3.18)"
33156 msgstr "(Додано у 1.3.18)"
33157
33158 #. type: =head2
33159 #: ../src/guestfs-actions.pod:7548
33160 msgid "guestfs_vfs_type"
33161 msgstr ""
33162
33163 #. type: verbatim
33164 #: ../src/guestfs-actions.pod:7550
33165 #, no-wrap
33166 msgid ""
33167 " char *\n"
33168 " guestfs_vfs_type (guestfs_h *g,\n"
33169 "                   const char *device);\n"
33170 "\n"
33171 msgstr ""
33172
33173 #. type: =head2
33174 #: ../src/guestfs-actions.pod:7567
33175 msgid "guestfs_vfs_uuid"
33176 msgstr ""
33177
33178 #. type: verbatim
33179 #: ../src/guestfs-actions.pod:7569
33180 #, no-wrap
33181 msgid ""
33182 " char *\n"
33183 " guestfs_vfs_uuid (guestfs_h *g,\n"
33184 "                   const char *device);\n"
33185 "\n"
33186 msgstr ""
33187
33188 #. type: textblock
33189 #: ../src/guestfs-actions.pod:7578
33190 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33191 msgstr ""
33192
33193 #. type: =head2
33194 #: ../src/guestfs-actions.pod:7585
33195 msgid "guestfs_vg_activate"
33196 msgstr ""
33197
33198 #. type: verbatim
33199 #: ../src/guestfs-actions.pod:7587
33200 #, no-wrap
33201 msgid ""
33202 " int\n"
33203 " guestfs_vg_activate (guestfs_h *g,\n"
33204 "                      int activate,\n"
33205 "                      char *const *volgroups);\n"
33206 "\n"
33207 msgstr ""
33208
33209 #. type: =head2
33210 #: ../src/guestfs-actions.pod:7604
33211 msgid "guestfs_vg_activate_all"
33212 msgstr ""
33213
33214 #. type: verbatim
33215 #: ../src/guestfs-actions.pod:7606
33216 #, no-wrap
33217 msgid ""
33218 " int\n"
33219 " guestfs_vg_activate_all (guestfs_h *g,\n"
33220 "                          int activate);\n"
33221 "\n"
33222 msgstr ""
33223
33224 #. type: =head2
33225 #: ../src/guestfs-actions.pod:7619
33226 msgid "guestfs_vgcreate"
33227 msgstr ""
33228
33229 #. type: verbatim
33230 #: ../src/guestfs-actions.pod:7621
33231 #, no-wrap
33232 msgid ""
33233 " int\n"
33234 " guestfs_vgcreate (guestfs_h *g,\n"
33235 "                   const char *volgroup,\n"
33236 "                   char *const *physvols);\n"
33237 "\n"
33238 msgstr ""
33239
33240 #. type: =head2
33241 #: ../src/guestfs-actions.pod:7633
33242 msgid "guestfs_vglvuuids"
33243 msgstr ""
33244
33245 #. type: verbatim
33246 #: ../src/guestfs-actions.pod:7635
33247 #, no-wrap
33248 msgid ""
33249 " char **\n"
33250 " guestfs_vglvuuids (guestfs_h *g,\n"
33251 "                    const char *vgname);\n"
33252 "\n"
33253 msgstr ""
33254
33255 #. type: textblock
33256 #: ../src/guestfs-actions.pod:7642
33257 msgid ""
33258 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33259 "associate logical volumes and volume groups."
33260 msgstr ""
33261
33262 #. type: textblock
33263 #: ../src/guestfs-actions.pod:7645
33264 msgid "See also C<guestfs_vgpvuuids>."
33265 msgstr ""
33266
33267 #. type: =head2
33268 #: ../src/guestfs-actions.pod:7653
33269 msgid "guestfs_vgpvuuids"
33270 msgstr ""
33271
33272 #. type: verbatim
33273 #: ../src/guestfs-actions.pod:7655
33274 #, no-wrap
33275 msgid ""
33276 " char **\n"
33277 " guestfs_vgpvuuids (guestfs_h *g,\n"
33278 "                    const char *vgname);\n"
33279 "\n"
33280 msgstr ""
33281
33282 #. type: textblock
33283 #: ../src/guestfs-actions.pod:7662
33284 msgid ""
33285 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33286 "associate physical volumes and volume groups."
33287 msgstr ""
33288
33289 #. type: textblock
33290 #: ../src/guestfs-actions.pod:7665
33291 msgid "See also C<guestfs_vglvuuids>."
33292 msgstr ""
33293
33294 #. type: =head2
33295 #: ../src/guestfs-actions.pod:7673
33296 msgid "guestfs_vgremove"
33297 msgstr ""
33298
33299 #. type: verbatim
33300 #: ../src/guestfs-actions.pod:7675
33301 #, no-wrap
33302 msgid ""
33303 " int\n"
33304 " guestfs_vgremove (guestfs_h *g,\n"
33305 "                   const char *vgname);\n"
33306 "\n"
33307 msgstr ""
33308
33309 #. type: =head2
33310 #: ../src/guestfs-actions.pod:7688
33311 msgid "guestfs_vgrename"
33312 msgstr ""
33313
33314 #. type: verbatim
33315 #: ../src/guestfs-actions.pod:7690
33316 #, no-wrap
33317 msgid ""
33318 " int\n"
33319 " guestfs_vgrename (guestfs_h *g,\n"
33320 "                   const char *volgroup,\n"
33321 "                   const char *newvolgroup);\n"
33322 "\n"
33323 msgstr ""
33324
33325 #. type: =head2
33326 #: ../src/guestfs-actions.pod:7701
33327 msgid "guestfs_vgs"
33328 msgstr ""
33329
33330 #. type: verbatim
33331 #: ../src/guestfs-actions.pod:7703
33332 #, no-wrap
33333 msgid ""
33334 " char **\n"
33335 " guestfs_vgs (guestfs_h *g);\n"
33336 "\n"
33337 msgstr ""
33338
33339 #. type: textblock
33340 #: ../src/guestfs-actions.pod:7712
33341 msgid "See also C<guestfs_vgs_full>."
33342 msgstr ""
33343
33344 #. type: =head2
33345 #: ../src/guestfs-actions.pod:7720
33346 msgid "guestfs_vgs_full"
33347 msgstr ""
33348
33349 #. type: verbatim
33350 #: ../src/guestfs-actions.pod:7722
33351 #, no-wrap
33352 msgid ""
33353 " struct guestfs_lvm_vg_list *\n"
33354 " guestfs_vgs_full (guestfs_h *g);\n"
33355 "\n"
33356 msgstr ""
33357
33358 #. type: textblock
33359 #: ../src/guestfs-actions.pod:7728
33360 msgid ""
33361 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33362 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
33363 msgstr ""
33364
33365 #. type: =head2
33366 #: ../src/guestfs-actions.pod:7734
33367 msgid "guestfs_vgscan"
33368 msgstr ""
33369
33370 #. type: verbatim
33371 #: ../src/guestfs-actions.pod:7736
33372 #, no-wrap
33373 msgid ""
33374 " int\n"
33375 " guestfs_vgscan (guestfs_h *g);\n"
33376 "\n"
33377 msgstr ""
33378
33379 #. type: =head2
33380 #: ../src/guestfs-actions.pod:7746
33381 msgid "guestfs_vguuid"
33382 msgstr ""
33383
33384 #. type: verbatim
33385 #: ../src/guestfs-actions.pod:7748
33386 #, no-wrap
33387 msgid ""
33388 " char *\n"
33389 " guestfs_vguuid (guestfs_h *g,\n"
33390 "                 const char *vgname);\n"
33391 "\n"
33392 msgstr ""
33393
33394 #. type: =head2
33395 #: ../src/guestfs-actions.pod:7759
33396 msgid "guestfs_wait_ready"
33397 msgstr ""
33398
33399 #. type: verbatim
33400 #: ../src/guestfs-actions.pod:7761
33401 #, no-wrap
33402 msgid ""
33403 " int\n"
33404 " guestfs_wait_ready (guestfs_h *g);\n"
33405 "\n"
33406 msgstr ""
33407
33408 #. type: textblock
33409 #: ../src/guestfs-actions.pod:7764
33410 msgid ""
33411 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33412 "instead."
33413 msgstr ""
33414
33415 #. type: textblock
33416 #: ../src/guestfs-actions.pod:7771
33417 msgid "This function is a no op."
33418 msgstr ""
33419
33420 #. type: textblock
33421 #: ../src/guestfs-actions.pod:7773
33422 msgid ""
33423 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33424 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
33425 "is no longer necessary because C<guestfs_launch> now does the waiting."
33426 msgstr ""
33427
33428 #. type: textblock
33429 #: ../src/guestfs-actions.pod:7778
33430 msgid ""
33431 "If you see any calls to this function in code then you can just remove them, "
33432 "unless you want to retain compatibility with older versions of the API."
33433 msgstr ""
33434
33435 #. type: =head2
33436 #: ../src/guestfs-actions.pod:7786
33437 msgid "guestfs_wc_c"
33438 msgstr ""
33439
33440 #. type: verbatim
33441 #: ../src/guestfs-actions.pod:7788
33442 #, no-wrap
33443 msgid ""
33444 " int\n"
33445 " guestfs_wc_c (guestfs_h *g,\n"
33446 "               const char *path);\n"
33447 "\n"
33448 msgstr ""
33449
33450 #. type: =head2
33451 #: ../src/guestfs-actions.pod:7799
33452 msgid "guestfs_wc_l"
33453 msgstr ""
33454
33455 #. type: verbatim
33456 #: ../src/guestfs-actions.pod:7801
33457 #, no-wrap
33458 msgid ""
33459 " int\n"
33460 " guestfs_wc_l (guestfs_h *g,\n"
33461 "               const char *path);\n"
33462 "\n"
33463 msgstr ""
33464
33465 #. type: =head2
33466 #: ../src/guestfs-actions.pod:7812
33467 msgid "guestfs_wc_w"
33468 msgstr ""
33469
33470 #. type: verbatim
33471 #: ../src/guestfs-actions.pod:7814
33472 #, no-wrap
33473 msgid ""
33474 " int\n"
33475 " guestfs_wc_w (guestfs_h *g,\n"
33476 "               const char *path);\n"
33477 "\n"
33478 msgstr ""
33479
33480 #. type: =head2
33481 #: ../src/guestfs-actions.pod:7825
33482 msgid "guestfs_write"
33483 msgstr ""
33484
33485 #. type: verbatim
33486 #: ../src/guestfs-actions.pod:7827
33487 #, no-wrap
33488 msgid ""
33489 " int\n"
33490 " guestfs_write (guestfs_h *g,\n"
33491 "                const char *path,\n"
33492 "                const char *content,\n"
33493 "                size_t content_size);\n"
33494 "\n"
33495 msgstr ""
33496
33497 #. type: textblock
33498 #: ../src/guestfs-actions.pod:7836
33499 msgid "See also C<guestfs_write_append>."
33500 msgstr ""
33501
33502 #. type: =head2
33503 #: ../src/guestfs-actions.pod:7845
33504 msgid "guestfs_write_append"
33505 msgstr ""
33506
33507 #. type: verbatim
33508 #: ../src/guestfs-actions.pod:7847
33509 #, no-wrap
33510 msgid ""
33511 " int\n"
33512 " guestfs_write_append (guestfs_h *g,\n"
33513 "                       const char *path,\n"
33514 "                       const char *content,\n"
33515 "                       size_t content_size);\n"
33516 "\n"
33517 msgstr ""
33518
33519 #. type: textblock
33520 #: ../src/guestfs-actions.pod:7856
33521 msgid "See also C<guestfs_write>."
33522 msgstr ""
33523
33524 #. type: =head2
33525 #: ../src/guestfs-actions.pod:7865
33526 msgid "guestfs_write_file"
33527 msgstr "guestfs_write_file"
33528
33529 #. type: verbatim
33530 #: ../src/guestfs-actions.pod:7867
33531 #, no-wrap
33532 msgid ""
33533 " int\n"
33534 " guestfs_write_file (guestfs_h *g,\n"
33535 "                     const char *path,\n"
33536 "                     const char *content,\n"
33537 "                     int size);\n"
33538 "\n"
33539 msgstr ""
33540 " int\n"
33541 " guestfs_write_file (guestfs_h *g,\n"
33542 "                     const char *path,\n"
33543 "                     const char *content,\n"
33544 "                     int size);\n"
33545 "\n"
33546
33547 #. type: textblock
33548 #: ../src/guestfs-actions.pod:7873
33549 msgid ""
33550 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33551 "instead."
33552 msgstr ""
33553
33554 #. type: =head2
33555 #: ../src/guestfs-actions.pod:7898
33556 msgid "guestfs_zegrep"
33557 msgstr "guestfs_zegrep"
33558
33559 #. type: verbatim
33560 #: ../src/guestfs-actions.pod:7900
33561 #, no-wrap
33562 msgid ""
33563 " char **\n"
33564 " guestfs_zegrep (guestfs_h *g,\n"
33565 "                 const char *regex,\n"
33566 "                 const char *path);\n"
33567 "\n"
33568 msgstr ""
33569 " char **\n"
33570 " guestfs_zegrep (guestfs_h *g,\n"
33571 "                 const char *regex,\n"
33572 "                 const char *path);\n"
33573 "\n"
33574
33575 #. type: =head2
33576 #: ../src/guestfs-actions.pod:7917
33577 msgid "guestfs_zegrepi"
33578 msgstr "guestfs_zegrepi"
33579
33580 #. type: verbatim
33581 #: ../src/guestfs-actions.pod:7919
33582 #, no-wrap
33583 msgid ""
33584 " char **\n"
33585 " guestfs_zegrepi (guestfs_h *g,\n"
33586 "                  const char *regex,\n"
33587 "                  const char *path);\n"
33588 "\n"
33589 msgstr ""
33590 " char **\n"
33591 " guestfs_zegrepi (guestfs_h *g,\n"
33592 "                  const char *regex,\n"
33593 "                  const char *path);\n"
33594 "\n"
33595
33596 #. type: =head2
33597 #: ../src/guestfs-actions.pod:7936
33598 msgid "guestfs_zero"
33599 msgstr "guestfs_zero"
33600
33601 #. type: verbatim
33602 #: ../src/guestfs-actions.pod:7938
33603 #, no-wrap
33604 msgid ""
33605 " int\n"
33606 " guestfs_zero (guestfs_h *g,\n"
33607 "               const char *device);\n"
33608 "\n"
33609 msgstr ""
33610 " int\n"
33611 " guestfs_zero (guestfs_h *g,\n"
33612 "               const char *device);\n"
33613 "\n"
33614
33615 #. type: textblock
33616 #: ../src/guestfs-actions.pod:7952
33617 msgid ""
33618 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33619 "C<guestfs_is_zero_device>"
33620 msgstr ""
33621
33622 #. type: =head2
33623 #: ../src/guestfs-actions.pod:7964
33624 msgid "guestfs_zero_device"
33625 msgstr "guestfs_zero_device"
33626
33627 #. type: verbatim
33628 #: ../src/guestfs-actions.pod:7966
33629 #, no-wrap
33630 msgid ""
33631 " int\n"
33632 " guestfs_zero_device (guestfs_h *g,\n"
33633 "                      const char *device);\n"
33634 "\n"
33635 msgstr ""
33636 " int\n"
33637 " guestfs_zero_device (guestfs_h *g,\n"
33638 "                      const char *device);\n"
33639 "\n"
33640
33641 #. type: textblock
33642 #: ../src/guestfs-actions.pod:7970
33643 msgid ""
33644 "This command writes zeroes over the entire C<device>.  Compare with "
33645 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33646 msgstr ""
33647
33648 #. type: textblock
33649 #: ../src/guestfs-actions.pod:7988
33650 msgid "(Added in 1.3.1)"
33651 msgstr "(Додано у 1.3.1)"
33652
33653 #. type: =head2
33654 #: ../src/guestfs-actions.pod:7990
33655 msgid "guestfs_zerofree"
33656 msgstr "guestfs_zerofree"
33657
33658 #. type: verbatim
33659 #: ../src/guestfs-actions.pod:7992
33660 #, no-wrap
33661 msgid ""
33662 " int\n"
33663 " guestfs_zerofree (guestfs_h *g,\n"
33664 "                   const char *device);\n"
33665 "\n"
33666 msgstr ""
33667 " int\n"
33668 " guestfs_zerofree (guestfs_h *g,\n"
33669 "                   const char *device);\n"
33670 "\n"
33671
33672 #. type: =head2
33673 #: ../src/guestfs-actions.pod:8011
33674 msgid "guestfs_zfgrep"
33675 msgstr "guestfs_zfgrep"
33676
33677 #. type: verbatim
33678 #: ../src/guestfs-actions.pod:8013
33679 #, no-wrap
33680 msgid ""
33681 " char **\n"
33682 " guestfs_zfgrep (guestfs_h *g,\n"
33683 "                 const char *pattern,\n"
33684 "                 const char *path);\n"
33685 "\n"
33686 msgstr ""
33687 " char **\n"
33688 " guestfs_zfgrep (guestfs_h *g,\n"
33689 "                 const char *pattern,\n"
33690 "                 const char *path);\n"
33691 "\n"
33692
33693 #. type: =head2
33694 #: ../src/guestfs-actions.pod:8030
33695 msgid "guestfs_zfgrepi"
33696 msgstr "guestfs_zfgrepi"
33697
33698 #. type: verbatim
33699 #: ../src/guestfs-actions.pod:8032
33700 #, no-wrap
33701 msgid ""
33702 " char **\n"
33703 " guestfs_zfgrepi (guestfs_h *g,\n"
33704 "                  const char *pattern,\n"
33705 "                  const char *path);\n"
33706 "\n"
33707 msgstr ""
33708 " char **\n"
33709 " guestfs_zfgrepi (guestfs_h *g,\n"
33710 "                  const char *pattern,\n"
33711 "                  const char *path);\n"
33712 "\n"
33713
33714 #. type: =head2
33715 #: ../src/guestfs-actions.pod:8049
33716 msgid "guestfs_zfile"
33717 msgstr "guestfs_zfile"
33718
33719 #. type: verbatim
33720 #: ../src/guestfs-actions.pod:8051
33721 #, no-wrap
33722 msgid ""
33723 " char *\n"
33724 " guestfs_zfile (guestfs_h *g,\n"
33725 "                const char *meth,\n"
33726 "                const char *path);\n"
33727 "\n"
33728 msgstr ""
33729 " char *\n"
33730 " guestfs_zfile (guestfs_h *g,\n"
33731 "                const char *meth,\n"
33732 "                const char *path);\n"
33733 "\n"
33734
33735 #. type: textblock
33736 #: ../src/guestfs-actions.pod:8056
33737 msgid ""
33738 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33739 "instead."
33740 msgstr ""
33741
33742 #. type: textblock
33743 #: ../src/guestfs-actions.pod:8068
33744 msgid ""
33745 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33746 "files."
33747 msgstr ""
33748
33749 #. type: =head2
33750 #: ../src/guestfs-actions.pod:8076
33751 msgid "guestfs_zgrep"
33752 msgstr "guestfs_zgrep"
33753
33754 #. type: verbatim
33755 #: ../src/guestfs-actions.pod:8078
33756 #, no-wrap
33757 msgid ""
33758 " char **\n"
33759 " guestfs_zgrep (guestfs_h *g,\n"
33760 "                const char *regex,\n"
33761 "                const char *path);\n"
33762 "\n"
33763 msgstr ""
33764 " char **\n"
33765 " guestfs_zgrep (guestfs_h *g,\n"
33766 "                const char *regex,\n"
33767 "                const char *path);\n"
33768 "\n"
33769
33770 #. type: =head2
33771 #: ../src/guestfs-actions.pod:8095
33772 msgid "guestfs_zgrepi"
33773 msgstr "guestfs_zgrepi"
33774
33775 #. type: verbatim
33776 #: ../src/guestfs-actions.pod:8097
33777 #, no-wrap
33778 msgid ""
33779 " char **\n"
33780 " guestfs_zgrepi (guestfs_h *g,\n"
33781 "                 const char *regex,\n"
33782 "                 const char *path);\n"
33783 "\n"
33784 msgstr ""
33785 " char **\n"
33786 " guestfs_zgrepi (guestfs_h *g,\n"
33787 "                 const char *regex,\n"
33788 "                 const char *path);\n"
33789 "\n"
33790
33791 #. type: =item
33792 #: ../src/guestfs-availability.pod:3
33793 msgid "B<augeas>"
33794 msgstr "B<augeas>"
33795
33796 #. type: textblock
33797 #: ../src/guestfs-availability.pod:5
33798 msgid ""
33799 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
33800 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
33801 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
33802 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
33803 "L</guestfs_aug_save> L</guestfs_aug_set>"
33804 msgstr ""
33805
33806 #. type: =item
33807 #: ../src/guestfs-availability.pod:21
33808 msgid "B<btrfs>"
33809 msgstr "B<btrfs>"
33810
33811 #. type: textblock
33812 #: ../src/guestfs-availability.pod:23
33813 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33814 msgstr ""
33815
33816 #. type: =item
33817 #: ../src/guestfs-availability.pod:26
33818 msgid "B<grub>"
33819 msgstr ""
33820
33821 #. type: textblock
33822 #: ../src/guestfs-availability.pod:28
33823 msgid "The following functions: L</guestfs_grub_install>"
33824 msgstr ""
33825
33826 #. type: =item
33827 #: ../src/guestfs-availability.pod:31
33828 msgid "B<inotify>"
33829 msgstr "B<inotify>"
33830
33831 #. type: textblock
33832 #: ../src/guestfs-availability.pod:33
33833 msgid ""
33834 "The following functions: L</guestfs_inotify_add_watch> L</"
33835 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
33836 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33837 msgstr ""
33838
33839 #. type: =item
33840 #: ../src/guestfs-availability.pod:41
33841 msgid "B<linuxfsuuid>"
33842 msgstr "B<linuxfsuuid>"
33843
33844 #. type: textblock
33845 #: ../src/guestfs-availability.pod:43
33846 msgid ""
33847 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
33848 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33849 msgstr ""
33850
33851 #. type: =item
33852 #: ../src/guestfs-availability.pod:50
33853 msgid "B<linuxmodules>"
33854 msgstr "B<linuxmodules>"
33855
33856 #. type: textblock
33857 #: ../src/guestfs-availability.pod:52
33858 msgid "The following functions: L</guestfs_modprobe>"
33859 msgstr ""
33860
33861 #. type: =item
33862 #: ../src/guestfs-availability.pod:55
33863 msgid "B<linuxxattrs>"
33864 msgstr "B<linuxxattrs>"
33865
33866 #. type: textblock
33867 #: ../src/guestfs-availability.pod:57
33868 msgid ""
33869 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
33870 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
33871 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
33872 "guestfs_setxattr>"
33873 msgstr ""
33874
33875 #. type: =item
33876 #: ../src/guestfs-availability.pod:68
33877 msgid "B<luks>"
33878 msgstr "B<luks>"
33879
33880 #. type: textblock
33881 #: ../src/guestfs-availability.pod:70
33882 msgid ""
33883 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
33884 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
33885 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33886 msgstr ""
33887
33888 #. type: =item
33889 #: ../src/guestfs-availability.pod:79
33890 msgid "B<lvm2>"
33891 msgstr "B<lvm2>"
33892
33893 #. type: textblock
33894 #: ../src/guestfs-availability.pod:81
33895 msgid ""
33896 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
33897 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
33898 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
33899 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
33900 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
33901 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
33902 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
33903 msgstr ""
33904
33905 #. type: =item
33906 #: ../src/guestfs-availability.pod:104
33907 msgid "B<mknod>"
33908 msgstr "B<mknod>"
33909
33910 #. type: textblock
33911 #: ../src/guestfs-availability.pod:106
33912 msgid ""
33913 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
33914 "guestfs_mknod_b> L</guestfs_mknod_c>"
33915 msgstr ""
33916
33917 #. type: =item
33918 #: ../src/guestfs-availability.pod:112
33919 msgid "B<ntfs3g>"
33920 msgstr "B<ntfs3g>"
33921
33922 #. type: textblock
33923 #: ../src/guestfs-availability.pod:114
33924 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
33925 msgstr ""
33926
33927 #. type: =item
33928 #: ../src/guestfs-availability.pod:117
33929 msgid "B<ntfsprogs>"
33930 msgstr "B<ntfsprogs>"
33931
33932 #. type: textblock
33933 #: ../src/guestfs-availability.pod:119
33934 msgid ""
33935 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33936 "L</guestfs_ntfsresize_size>"
33937 msgstr ""
33938
33939 #. type: =item
33940 #: ../src/guestfs-availability.pod:124
33941 msgid "B<realpath>"
33942 msgstr "B<realpath>"
33943
33944 #. type: textblock
33945 #: ../src/guestfs-availability.pod:126
33946 msgid "The following functions: L</guestfs_realpath>"
33947 msgstr ""
33948
33949 #. type: =item
33950 #: ../src/guestfs-availability.pod:129
33951 msgid "B<scrub>"
33952 msgstr "B<scrub>"
33953
33954 #. type: textblock
33955 #: ../src/guestfs-availability.pod:131
33956 msgid ""
33957 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
33958 "guestfs_scrub_freespace>"
33959 msgstr ""
33960
33961 #. type: =item
33962 #: ../src/guestfs-availability.pod:136
33963 msgid "B<selinux>"
33964 msgstr "B<selinux>"
33965
33966 #. type: textblock
33967 #: ../src/guestfs-availability.pod:138
33968 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33969 msgstr ""
33970
33971 #. type: =item
33972 #: ../src/guestfs-availability.pod:142
33973 msgid "B<xz>"
33974 msgstr "B<xz>"
33975
33976 #. type: textblock
33977 #: ../src/guestfs-availability.pod:144
33978 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33979 msgstr ""
33980
33981 #. type: =item
33982 #: ../src/guestfs-availability.pod:148
33983 msgid "B<zerofree>"
33984 msgstr "B<zerofree>"
33985
33986 #. type: textblock
33987 #: ../src/guestfs-availability.pod:150
33988 msgid "The following functions: L</guestfs_zerofree>"
33989 msgstr ""
33990
33991 #. type: =head2
33992 #: ../src/guestfs-structs.pod:1
33993 msgid "guestfs_int_bool"
33994 msgstr ""
33995
33996 #. type: verbatim
33997 #: ../src/guestfs-structs.pod:3
33998 #, no-wrap
33999 msgid ""
34000 " struct guestfs_int_bool {\n"
34001 "   int32_t i;\n"
34002 "   int32_t b;\n"
34003 " };\n"
34004 " \n"
34005 msgstr ""
34006
34007 #. type: verbatim
34008 #: ../src/guestfs-structs.pod:8
34009 #, no-wrap
34010 msgid ""
34011 " struct guestfs_int_bool_list {\n"
34012 "   uint32_t len; /* Number of elements in list. */\n"
34013 "   struct guestfs_int_bool *val; /* Elements. */\n"
34014 " };\n"
34015 " \n"
34016 msgstr ""
34017
34018 #. type: verbatim
34019 #: ../src/guestfs-structs.pod:13
34020 #, no-wrap
34021 msgid ""
34022 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34023 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34024 "\n"
34025 msgstr ""
34026
34027 #. type: =head2
34028 #: ../src/guestfs-structs.pod:16
34029 msgid "guestfs_lvm_pv"
34030 msgstr ""
34031
34032 #. type: verbatim
34033 #: ../src/guestfs-structs.pod:18
34034 #, no-wrap
34035 msgid ""
34036 " struct guestfs_lvm_pv {\n"
34037 "   char *pv_name;\n"
34038 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34039 "   char pv_uuid[32];\n"
34040 "   char *pv_fmt;\n"
34041 "   uint64_t pv_size;\n"
34042 "   uint64_t dev_size;\n"
34043 "   uint64_t pv_free;\n"
34044 "   uint64_t pv_used;\n"
34045 "   char *pv_attr;\n"
34046 "   int64_t pv_pe_count;\n"
34047 "   int64_t pv_pe_alloc_count;\n"
34048 "   char *pv_tags;\n"
34049 "   uint64_t pe_start;\n"
34050 "   int64_t pv_mda_count;\n"
34051 "   uint64_t pv_mda_free;\n"
34052 " };\n"
34053 " \n"
34054 msgstr ""
34055
34056 #. type: verbatim
34057 #: ../src/guestfs-structs.pod:36
34058 #, no-wrap
34059 msgid ""
34060 " struct guestfs_lvm_pv_list {\n"
34061 "   uint32_t len; /* Number of elements in list. */\n"
34062 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
34063 " };\n"
34064 " \n"
34065 msgstr ""
34066
34067 #. type: verbatim
34068 #: ../src/guestfs-structs.pod:41
34069 #, no-wrap
34070 msgid ""
34071 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34072 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34073 "\n"
34074 msgstr ""
34075
34076 #. type: =head2
34077 #: ../src/guestfs-structs.pod:44
34078 msgid "guestfs_lvm_vg"
34079 msgstr ""
34080
34081 #. type: verbatim
34082 #: ../src/guestfs-structs.pod:46
34083 #, no-wrap
34084 msgid ""
34085 " struct guestfs_lvm_vg {\n"
34086 "   char *vg_name;\n"
34087 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34088 "   char vg_uuid[32];\n"
34089 "   char *vg_fmt;\n"
34090 "   char *vg_attr;\n"
34091 "   uint64_t vg_size;\n"
34092 "   uint64_t vg_free;\n"
34093 "   char *vg_sysid;\n"
34094 "   uint64_t vg_extent_size;\n"
34095 "   int64_t vg_extent_count;\n"
34096 "   int64_t vg_free_count;\n"
34097 "   int64_t max_lv;\n"
34098 "   int64_t max_pv;\n"
34099 "   int64_t pv_count;\n"
34100 "   int64_t lv_count;\n"
34101 "   int64_t snap_count;\n"
34102 "   int64_t vg_seqno;\n"
34103 "   char *vg_tags;\n"
34104 "   int64_t vg_mda_count;\n"
34105 "   uint64_t vg_mda_free;\n"
34106 " };\n"
34107 " \n"
34108 msgstr ""
34109
34110 #. type: verbatim
34111 #: ../src/guestfs-structs.pod:69
34112 #, no-wrap
34113 msgid ""
34114 " struct guestfs_lvm_vg_list {\n"
34115 "   uint32_t len; /* Number of elements in list. */\n"
34116 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
34117 " };\n"
34118 " \n"
34119 msgstr ""
34120
34121 #. type: verbatim
34122 #: ../src/guestfs-structs.pod:74
34123 #, no-wrap
34124 msgid ""
34125 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34126 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34127 "\n"
34128 msgstr ""
34129
34130 #. type: =head2
34131 #: ../src/guestfs-structs.pod:77
34132 msgid "guestfs_lvm_lv"
34133 msgstr ""
34134
34135 #. type: verbatim
34136 #: ../src/guestfs-structs.pod:79
34137 #, no-wrap
34138 msgid ""
34139 " struct guestfs_lvm_lv {\n"
34140 "   char *lv_name;\n"
34141 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34142 "   char lv_uuid[32];\n"
34143 "   char *lv_attr;\n"
34144 "   int64_t lv_major;\n"
34145 "   int64_t lv_minor;\n"
34146 "   int64_t lv_kernel_major;\n"
34147 "   int64_t lv_kernel_minor;\n"
34148 "   uint64_t lv_size;\n"
34149 "   int64_t seg_count;\n"
34150 "   char *origin;\n"
34151 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34152 "   float snap_percent;\n"
34153 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34154 "   float copy_percent;\n"
34155 "   char *move_pv;\n"
34156 "   char *lv_tags;\n"
34157 "   char *mirror_log;\n"
34158 "   char *modules;\n"
34159 " };\n"
34160 " \n"
34161 msgstr ""
34162
34163 #. type: verbatim
34164 #: ../src/guestfs-structs.pod:101
34165 #, no-wrap
34166 msgid ""
34167 " struct guestfs_lvm_lv_list {\n"
34168 "   uint32_t len; /* Number of elements in list. */\n"
34169 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
34170 " };\n"
34171 " \n"
34172 msgstr ""
34173
34174 #. type: verbatim
34175 #: ../src/guestfs-structs.pod:106
34176 #, no-wrap
34177 msgid ""
34178 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34179 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34180 "\n"
34181 msgstr ""
34182
34183 #. type: verbatim
34184 #: ../src/guestfs-structs.pod:111
34185 #, no-wrap
34186 msgid ""
34187 " struct guestfs_stat {\n"
34188 "   int64_t dev;\n"
34189 "   int64_t ino;\n"
34190 "   int64_t mode;\n"
34191 "   int64_t nlink;\n"
34192 "   int64_t uid;\n"
34193 "   int64_t gid;\n"
34194 "   int64_t rdev;\n"
34195 "   int64_t size;\n"
34196 "   int64_t blksize;\n"
34197 "   int64_t blocks;\n"
34198 "   int64_t atime;\n"
34199 "   int64_t mtime;\n"
34200 "   int64_t ctime;\n"
34201 " };\n"
34202 " \n"
34203 msgstr ""
34204
34205 #. type: verbatim
34206 #: ../src/guestfs-structs.pod:127
34207 #, no-wrap
34208 msgid ""
34209 " struct guestfs_stat_list {\n"
34210 "   uint32_t len; /* Number of elements in list. */\n"
34211 "   struct guestfs_stat *val; /* Elements. */\n"
34212 " };\n"
34213 " \n"
34214 msgstr ""
34215
34216 #. type: verbatim
34217 #: ../src/guestfs-structs.pod:132
34218 #, no-wrap
34219 msgid ""
34220 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34221 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34222 "\n"
34223 msgstr ""
34224
34225 #. type: verbatim
34226 #: ../src/guestfs-structs.pod:137
34227 #, no-wrap
34228 msgid ""
34229 " struct guestfs_statvfs {\n"
34230 "   int64_t bsize;\n"
34231 "   int64_t frsize;\n"
34232 "   int64_t blocks;\n"
34233 "   int64_t bfree;\n"
34234 "   int64_t bavail;\n"
34235 "   int64_t files;\n"
34236 "   int64_t ffree;\n"
34237 "   int64_t favail;\n"
34238 "   int64_t fsid;\n"
34239 "   int64_t flag;\n"
34240 "   int64_t namemax;\n"
34241 " };\n"
34242 " \n"
34243 msgstr ""
34244
34245 #. type: verbatim
34246 #: ../src/guestfs-structs.pod:151
34247 #, no-wrap
34248 msgid ""
34249 " struct guestfs_statvfs_list {\n"
34250 "   uint32_t len; /* Number of elements in list. */\n"
34251 "   struct guestfs_statvfs *val; /* Elements. */\n"
34252 " };\n"
34253 " \n"
34254 msgstr ""
34255
34256 #. type: verbatim
34257 #: ../src/guestfs-structs.pod:156
34258 #, no-wrap
34259 msgid ""
34260 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34261 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34262 "\n"
34263 msgstr ""
34264
34265 #. type: =head2
34266 #: ../src/guestfs-structs.pod:159
34267 msgid "guestfs_dirent"
34268 msgstr ""
34269
34270 #. type: verbatim
34271 #: ../src/guestfs-structs.pod:161
34272 #, no-wrap
34273 msgid ""
34274 " struct guestfs_dirent {\n"
34275 "   int64_t ino;\n"
34276 "   char ftyp;\n"
34277 "   char *name;\n"
34278 " };\n"
34279 " \n"
34280 msgstr ""
34281
34282 #. type: verbatim
34283 #: ../src/guestfs-structs.pod:167
34284 #, no-wrap
34285 msgid ""
34286 " struct guestfs_dirent_list {\n"
34287 "   uint32_t len; /* Number of elements in list. */\n"
34288 "   struct guestfs_dirent *val; /* Elements. */\n"
34289 " };\n"
34290 " \n"
34291 msgstr ""
34292
34293 #. type: verbatim
34294 #: ../src/guestfs-structs.pod:172
34295 #, no-wrap
34296 msgid ""
34297 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34298 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34299 "\n"
34300 msgstr ""
34301
34302 #. type: verbatim
34303 #: ../src/guestfs-structs.pod:177
34304 #, no-wrap
34305 msgid ""
34306 " struct guestfs_version {\n"
34307 "   int64_t major;\n"
34308 "   int64_t minor;\n"
34309 "   int64_t release;\n"
34310 "   char *extra;\n"
34311 " };\n"
34312 " \n"
34313 msgstr ""
34314
34315 #. type: verbatim
34316 #: ../src/guestfs-structs.pod:184
34317 #, no-wrap
34318 msgid ""
34319 " struct guestfs_version_list {\n"
34320 "   uint32_t len; /* Number of elements in list. */\n"
34321 "   struct guestfs_version *val; /* Elements. */\n"
34322 " };\n"
34323 " \n"
34324 msgstr ""
34325
34326 #. type: verbatim
34327 #: ../src/guestfs-structs.pod:189
34328 #, no-wrap
34329 msgid ""
34330 " void guestfs_free_version (struct guestfs_free_version *);\n"
34331 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34332 "\n"
34333 msgstr ""
34334
34335 #. type: =head2
34336 #: ../src/guestfs-structs.pod:192
34337 msgid "guestfs_xattr"
34338 msgstr ""
34339
34340 #. type: verbatim
34341 #: ../src/guestfs-structs.pod:194
34342 #, no-wrap
34343 msgid ""
34344 " struct guestfs_xattr {\n"
34345 "   char *attrname;\n"
34346 "   /* The next two fields describe a byte array. */\n"
34347 "   uint32_t attrval_len;\n"
34348 "   char *attrval;\n"
34349 " };\n"
34350 " \n"
34351 msgstr ""
34352
34353 #. type: verbatim
34354 #: ../src/guestfs-structs.pod:201
34355 #, no-wrap
34356 msgid ""
34357 " struct guestfs_xattr_list {\n"
34358 "   uint32_t len; /* Number of elements in list. */\n"
34359 "   struct guestfs_xattr *val; /* Elements. */\n"
34360 " };\n"
34361 " \n"
34362 msgstr ""
34363
34364 #. type: verbatim
34365 #: ../src/guestfs-structs.pod:206
34366 #, no-wrap
34367 msgid ""
34368 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34369 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34370 "\n"
34371 msgstr ""
34372
34373 #. type: =head2
34374 #: ../src/guestfs-structs.pod:209
34375 msgid "guestfs_inotify_event"
34376 msgstr ""
34377
34378 #. type: verbatim
34379 #: ../src/guestfs-structs.pod:211
34380 #, no-wrap
34381 msgid ""
34382 " struct guestfs_inotify_event {\n"
34383 "   int64_t in_wd;\n"
34384 "   uint32_t in_mask;\n"
34385 "   uint32_t in_cookie;\n"
34386 "   char *in_name;\n"
34387 " };\n"
34388 " \n"
34389 msgstr ""
34390
34391 #. type: verbatim
34392 #: ../src/guestfs-structs.pod:218
34393 #, no-wrap
34394 msgid ""
34395 " struct guestfs_inotify_event_list {\n"
34396 "   uint32_t len; /* Number of elements in list. */\n"
34397 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34398 " };\n"
34399 " \n"
34400 msgstr ""
34401
34402 #. type: verbatim
34403 #: ../src/guestfs-structs.pod:223
34404 #, no-wrap
34405 msgid ""
34406 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34407 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
34408 "\n"
34409 msgstr ""
34410
34411 #. type: =head2
34412 #: ../src/guestfs-structs.pod:226
34413 msgid "guestfs_partition"
34414 msgstr ""
34415
34416 #. type: verbatim
34417 #: ../src/guestfs-structs.pod:228
34418 #, no-wrap
34419 msgid ""
34420 " struct guestfs_partition {\n"
34421 "   int32_t part_num;\n"
34422 "   uint64_t part_start;\n"
34423 "   uint64_t part_end;\n"
34424 "   uint64_t part_size;\n"
34425 " };\n"
34426 " \n"
34427 msgstr ""
34428
34429 #. type: verbatim
34430 #: ../src/guestfs-structs.pod:235
34431 #, no-wrap
34432 msgid ""
34433 " struct guestfs_partition_list {\n"
34434 "   uint32_t len; /* Number of elements in list. */\n"
34435 "   struct guestfs_partition *val; /* Elements. */\n"
34436 " };\n"
34437 " \n"
34438 msgstr ""
34439
34440 #. type: verbatim
34441 #: ../src/guestfs-structs.pod:240
34442 #, no-wrap
34443 msgid ""
34444 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34445 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34446 "\n"
34447 msgstr ""
34448
34449 #. type: =head2
34450 #: ../src/guestfs-structs.pod:243
34451 msgid "guestfs_application"
34452 msgstr ""
34453
34454 #. type: verbatim
34455 #: ../src/guestfs-structs.pod:245
34456 #, no-wrap
34457 msgid ""
34458 " struct guestfs_application {\n"
34459 "   char *app_name;\n"
34460 "   char *app_display_name;\n"
34461 "   int32_t app_epoch;\n"
34462 "   char *app_version;\n"
34463 "   char *app_release;\n"
34464 "   char *app_install_path;\n"
34465 "   char *app_trans_path;\n"
34466 "   char *app_publisher;\n"
34467 "   char *app_url;\n"
34468 "   char *app_source_package;\n"
34469 "   char *app_summary;\n"
34470 "   char *app_description;\n"
34471 " };\n"
34472 " \n"
34473 msgstr ""
34474
34475 #. type: verbatim
34476 #: ../src/guestfs-structs.pod:260
34477 #, no-wrap
34478 msgid ""
34479 " struct guestfs_application_list {\n"
34480 "   uint32_t len; /* Number of elements in list. */\n"
34481 "   struct guestfs_application *val; /* Elements. */\n"
34482 " };\n"
34483 " \n"
34484 msgstr ""
34485
34486 #. type: verbatim
34487 #: ../src/guestfs-structs.pod:265
34488 #, no-wrap
34489 msgid ""
34490 " void guestfs_free_application (struct guestfs_free_application *);\n"
34491 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
34492 "\n"
34493 msgstr ""
34494
34495 #. type: textblock
34496 #: ../src/guestfs.pod:5
34497 msgid "guestfs - Library for accessing and modifying virtual machine images"
34498 msgstr ""
34499 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
34500 "машин"
34501
34502 #. type: verbatim
34503 #: ../src/guestfs.pod:11
34504 #, no-wrap
34505 msgid ""
34506 " guestfs_h *g = guestfs_create ();\n"
34507 " guestfs_add_drive (g, \"guest.img\");\n"
34508 " guestfs_launch (g);\n"
34509 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34510 " guestfs_touch (g, \"/hello\");\n"
34511 " guestfs_umount (g, \"/\");\n"
34512 " guestfs_close (g);\n"
34513 "\n"
34514 msgstr ""
34515 " guestfs_h *g = guestfs_create ();\n"
34516 " guestfs_add_drive (g, \"guest.img\");\n"
34517 " guestfs_launch (g);\n"
34518 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34519 " guestfs_touch (g, \"/hello\");\n"
34520 " guestfs_umount (g, \"/\");\n"
34521 " guestfs_close (g);\n"
34522 "\n"
34523
34524 #. type: textblock
34525 #: ../src/guestfs.pod:25
34526 msgid ""
34527 "Libguestfs is a library for accessing and modifying guest disk images.  "
34528 "Amongst the things this is good for: making batch configuration changes to "
34529 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34530 "between virtualization systems (see also: virt-p2v), performing partial "
34531 "backups, performing partial guest clones, cloning guests and changing "
34532 "registry/UUID/hostname info, and much else besides."
34533 msgstr ""
34534
34535 #. type: textblock
34536 #: ../src/guestfs.pod:33
34537 msgid ""
34538 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34539 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34540 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34541 "qcow2, vmdk."
34542 msgstr ""
34543
34544 #. type: textblock
34545 #: ../src/guestfs.pod:38
34546 msgid ""
34547 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34548 "what filesystem is in each LV, etc.).  It can also run commands in the "
34549 "context of the guest.  Also you can access filesystems over FUSE."
34550 msgstr ""
34551
34552 #. type: textblock
34553 #: ../src/guestfs.pod:43
34554 msgid ""
34555 "Libguestfs is a library that can be linked with C and C++ management "
34556 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34557 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34558 "command line."
34559 msgstr ""
34560
34561 #. type: textblock
34562 #: ../src/guestfs.pod:48
34563 msgid ""
34564 "You don't need to be root to use libguestfs, although obviously you do need "
34565 "enough permissions to access the disk images."
34566 msgstr ""
34567
34568 #. type: textblock
34569 #: ../src/guestfs.pod:51
34570 msgid ""
34571 "Libguestfs is a large API because it can do many things.  For a gentle "
34572 "introduction, please read the L</API OVERVIEW> section next."
34573 msgstr ""
34574
34575 #. type: textblock
34576 #: ../src/guestfs.pod:54
34577 msgid ""
34578 "There are also some example programs in the L<guestfs-examples(3)> manual "
34579 "page."
34580 msgstr ""
34581
34582 #. type: =head1
34583 #: ../src/guestfs.pod:57
34584 msgid "API OVERVIEW"
34585 msgstr "ОГЛЯД API"
34586
34587 #. type: textblock
34588 #: ../src/guestfs.pod:59
34589 msgid ""
34590 "This section provides a gentler overview of the libguestfs API.  We also try "
34591 "to group API calls together, where that may not be obvious from reading "
34592 "about the individual calls in the main section of this manual."
34593 msgstr ""
34594
34595 #. type: =head2
34596 #: ../src/guestfs.pod:64
34597 msgid "HANDLES"
34598 msgstr "ОБРОБНИКИ"
34599
34600 #. type: textblock
34601 #: ../src/guestfs.pod:66
34602 msgid ""
34603 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34604 "must add at least one disk image to the handle, followed by launching the "
34605 "handle, then performing whatever operations you want, and finally closing "
34606 "the handle.  By convention we use the single letter C<g> for the name of the "
34607 "handle variable, although of course you can use any name you want."
34608 msgstr ""
34609
34610 #. type: textblock
34611 #: ../src/guestfs.pod:73
34612 msgid "The general structure of all libguestfs-using programs looks like this:"
34613 msgstr ""
34614
34615 #. type: verbatim
34616 #: ../src/guestfs.pod:76
34617 #, no-wrap
34618 msgid ""
34619 " guestfs_h *g = guestfs_create ();\n"
34620 " \n"
34621 msgstr ""
34622 " guestfs_h *g = guestfs_create ();\n"
34623 " \n"
34624
34625 #. type: verbatim
34626 #: ../src/guestfs.pod:78
34627 #, no-wrap
34628 msgid ""
34629 " /* Call guestfs_add_drive additional times if there are\n"
34630 "  * multiple disk images.\n"
34631 "  */\n"
34632 " guestfs_add_drive (g, \"guest.img\");\n"
34633 " \n"
34634 msgstr ""
34635
34636 #. type: verbatim
34637 #: ../src/guestfs.pod:83
34638 #, no-wrap
34639 msgid ""
34640 " /* Most manipulation calls won't work until you've launched\n"
34641 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34642 "  * and _before_ other commands.\n"
34643 "  */\n"
34644 " guestfs_launch (g);\n"
34645 " \n"
34646 msgstr ""
34647
34648 #. type: verbatim
34649 #: ../src/guestfs.pod:89
34650 #, no-wrap
34651 msgid ""
34652 " /* Now you can examine what partitions, LVs etc are available.\n"
34653 "  */\n"
34654 " char **partitions = guestfs_list_partitions (g);\n"
34655 " char **logvols = guestfs_lvs (g);\n"
34656 " \n"
34657 msgstr ""
34658 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
34659 "  */\n"
34660 " char **partitions = guestfs_list_partitions (g);\n"
34661 " char **logvols = guestfs_lvs (g);\n"
34662 " \n"
34663
34664 #. type: verbatim
34665 #: ../src/guestfs.pod:94
34666 #, no-wrap
34667 msgid ""
34668 " /* To access a filesystem in the image, you must mount it.\n"
34669 "  */\n"
34670 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34671 " \n"
34672 msgstr ""
34673 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
34674 "  */\n"
34675 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34676 " \n"
34677
34678 #. type: verbatim
34679 #: ../src/guestfs.pod:98
34680 #, no-wrap
34681 msgid ""
34682 " /* Now you can perform filesystem actions on the guest\n"
34683 "  * disk image.\n"
34684 "  */\n"
34685 " guestfs_touch (g, \"/hello\");\n"
34686 " \n"
34687 msgstr ""
34688 " /* Тепер ви можете виконувати дії з файловою системою на\n"
34689 "  * образі диска операційної системи.\n"
34690 "  */\n"
34691 " guestfs_touch (g, \"/hello\");\n"
34692 " \n"
34693
34694 #. type: verbatim
34695 #: ../src/guestfs.pod:103
34696 #, no-wrap
34697 msgid ""
34698 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34699 "  * it is done automatically when you close the handle.  See\n"
34700 "  * discussion of autosync in this page.\n"
34701 "  */\n"
34702 " guestfs_sync (g);\n"
34703 " \n"
34704 msgstr ""
34705
34706 #. type: verbatim
34707 #: ../src/guestfs.pod:109
34708 #, no-wrap
34709 msgid ""
34710 " /* Close the handle 'g'. */\n"
34711 " guestfs_close (g);\n"
34712 "\n"
34713 msgstr ""
34714 " /* Закрити дескриптор 'g'. */\n"
34715 " guestfs_close (g);\n"
34716 "\n"
34717
34718 #. type: textblock
34719 #: ../src/guestfs.pod:112
34720 msgid ""
34721 "The code above doesn't include any error checking.  In real code you should "
34722 "check return values carefully for errors.  In general all functions that "
34723 "return integers return C<-1> on error, and all functions that return "
34724 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34725 "how to handle errors, and consult the documentation for each function call "
34726 "below to see precisely how they return error indications.  See L<guestfs-"
34727 "examples(3)> for fully worked examples."
34728 msgstr ""
34729
34730 #. type: =head2
34731 #: ../src/guestfs.pod:121
34732 msgid "DISK IMAGES"
34733 msgstr "ОБРАЗИ ДИСКІВ"
34734
34735 #. type: textblock
34736 #: ../src/guestfs.pod:123
34737 msgid ""
34738 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34739 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34740 "actual block device, or simply an empty file of zeroes that you have created "
34741 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
34742 "of these."
34743 msgstr ""
34744
34745 #. type: textblock
34746 #: ../src/guestfs.pod:129
34747 msgid ""
34748 "The call you should use in modern code for adding drives is L</"
34749 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34750 "specifying that the format is raw, do:"
34751 msgstr ""
34752
34753 #. type: verbatim
34754 #: ../src/guestfs.pod:133
34755 #, no-wrap
34756 msgid ""
34757 " guestfs_add_drive_opts (g, filename,\n"
34758 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34759 "                         -1);\n"
34760 "\n"
34761 msgstr ""
34762 " guestfs_add_drive_opts (g, filename,\n"
34763 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34764 "                         -1);\n"
34765 "\n"
34766
34767 #. type: textblock
34768 #: ../src/guestfs.pod:137
34769 msgid "You can add a disk read-only using:"
34770 msgstr "Ви можете додати диск у режимі лише читання:"
34771
34772 #. type: verbatim
34773 #: ../src/guestfs.pod:139
34774 #, no-wrap
34775 msgid ""
34776 " guestfs_add_drive_opts (g, filename,\n"
34777 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34778 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34779 "                         -1);\n"
34780 "\n"
34781 msgstr ""
34782 " guestfs_add_drive_opts (g, filename,\n"
34783 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34784 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34785 "                         -1);\n"
34786 "\n"
34787
34788 #. type: textblock
34789 #: ../src/guestfs.pod:144
34790 msgid ""
34791 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34792 "libguestfs won't modify the file."
34793 msgstr ""
34794
34795 #. type: textblock
34796 #: ../src/guestfs.pod:147
34797 msgid ""
34798 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34799 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
34800 "corruption, but adding it read-only is safe."
34801 msgstr ""
34802
34803 #. type: textblock
34804 #: ../src/guestfs.pod:151
34805 msgid ""
34806 "You must add at least one disk image, and you may add multiple disk images.  "
34807 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34808 "first one you added), C</dev/sdb> (for the second one you added), etc."
34809 msgstr ""
34810
34811 #. type: textblock
34812 #: ../src/guestfs.pod:156
34813 msgid ""
34814 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
34815 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34816 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
34817 msgstr ""
34818
34819 #. type: =head2
34820 #: ../src/guestfs.pod:161
34821 msgid "MOUNTING"
34822 msgstr "МОНТУВАННЯ"
34823
34824 #. type: textblock
34825 #: ../src/guestfs.pod:163
34826 msgid ""
34827 "Before you can read or write files, create directories and so on in a disk "
34828 "image that contains filesystems, you have to mount those filesystems using "
34829 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
34830 "a disk image contains (for example) one partition with a filesystem on that "
34831 "partition, then you can mount it directly:"
34832 msgstr ""
34833
34834 #. type: verbatim
34835 #: ../src/guestfs.pod:170
34836 #, no-wrap
34837 msgid ""
34838 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34839 "\n"
34840 msgstr ""
34841 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34842 "\n"
34843
34844 #. type: textblock
34845 #: ../src/guestfs.pod:172
34846 msgid ""
34847 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34848 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
34849 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
34850 "that these are libguestfs virtual devices, and are nothing to do with host "
34851 "devices."
34852 msgstr ""
34853
34854 #. type: textblock
34855 #: ../src/guestfs.pod:178
34856 msgid ""
34857 "If you are given a disk image and you don't know what it contains then you "
34858 "have to find out.  Libguestfs can do that too: use L</"
34859 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
34860 "LVs, and either try mounting each to see what is mountable, or else examine "
34861 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
34862 "filesystems, use L</guestfs_list_filesystems>."
34863 msgstr ""
34864
34865 #. type: textblock
34866 #: ../src/guestfs.pod:186
34867 msgid ""
34868 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34869 "L</INSPECTION> below).  But you might find it easier to look at higher level "
34870 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34871 msgstr ""
34872
34873 #. type: textblock
34874 #: ../src/guestfs.pod:191
34875 msgid ""
34876 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
34877 "several other variations of the C<guestfs_mount_*> call."
34878 msgstr ""
34879
34880 #. type: =head2
34881 #: ../src/guestfs.pod:194
34882 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34883 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
34884
34885 #. type: textblock
34886 #: ../src/guestfs.pod:196
34887 msgid ""
34888 "The majority of the libguestfs API consists of fairly low-level calls for "
34889 "accessing and modifying the files, directories, symlinks etc on mounted "
34890 "filesystems.  There are over a hundred such calls which you can find listed "
34891 "in detail below in this man page, and we don't even pretend to cover them "
34892 "all in this overview."
34893 msgstr ""
34894
34895 #. type: textblock
34896 #: ../src/guestfs.pod:202
34897 msgid ""
34898 "Specify filenames as full paths, starting with C<\"/\"> and including the "
34899 "mount point."
34900 msgstr ""
34901 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
34902 "точкою монтування."
34903
34904 #. type: textblock
34905 #: ../src/guestfs.pod:205
34906 msgid ""
34907 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
34908 "the file called C<\"etc/passwd\"> then you could do:"
34909 msgstr ""
34910 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
34911 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
34912 "таким кодом:"
34913
34914 #. type: verbatim
34915 #: ../src/guestfs.pod:208
34916 #, no-wrap
34917 msgid ""
34918 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34919 "\n"
34920 msgstr ""
34921 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34922 "\n"
34923
34924 #. type: textblock
34925 #: ../src/guestfs.pod:210
34926 msgid ""
34927 "This would return C<data> as a newly allocated buffer containing the full "
34928 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
34929 "or C<NULL> if there was an error."
34930 msgstr ""
34931
34932 #. type: textblock
34933 #: ../src/guestfs.pod:214
34934 msgid ""
34935 "As another example, to create a top-level directory on that filesystem "
34936 "called C<\"var\"> you would do:"
34937 msgstr ""
34938
34939 #. type: verbatim
34940 #: ../src/guestfs.pod:217
34941 #, no-wrap
34942 msgid ""
34943 " guestfs_mkdir (g, \"/var\");\n"
34944 "\n"
34945 msgstr ""
34946 " guestfs_mkdir (g, \"/var\");\n"
34947 "\n"
34948
34949 #. type: textblock
34950 #: ../src/guestfs.pod:219
34951 msgid "To create a symlink you could do:"
34952 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
34953
34954 #. type: verbatim
34955 #: ../src/guestfs.pod:221
34956 #, no-wrap
34957 msgid ""
34958 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34959 "               \"/etc/rc3.d/S30portmap\");\n"
34960 "\n"
34961 msgstr ""
34962 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34963 "               \"/etc/rc3.d/S30portmap\");\n"
34964 "\n"
34965
34966 #. type: textblock
34967 #: ../src/guestfs.pod:224
34968 msgid ""
34969 "Libguestfs will reject attempts to use relative paths and there is no "
34970 "concept of a current working directory."
34971 msgstr ""
34972
34973 #. type: textblock
34974 #: ../src/guestfs.pod:227
34975 msgid ""
34976 "Libguestfs can return errors in many situations: for example if the "
34977 "filesystem isn't writable, or if a file or directory that you requested "
34978 "doesn't exist.  If you are using the C API (documented here)  you have to "
34979 "check for those error conditions after each call.  (Other language bindings "
34980 "turn these errors into exceptions)."
34981 msgstr ""
34982
34983 #. type: textblock
34984 #: ../src/guestfs.pod:233
34985 msgid ""
34986 "File writes are affected by the per-handle umask, set by calling L</"
34987 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
34988 msgstr ""
34989
34990 #. type: =head2
34991 #: ../src/guestfs.pod:236
34992 msgid "PARTITIONING"
34993 msgstr "ПОДІЛ НА РОЗДІЛИ"
34994
34995 #. type: textblock
34996 #: ../src/guestfs.pod:238
34997 msgid ""
34998 "Libguestfs contains API calls to read, create and modify partition tables on "
34999 "disk images."
35000 msgstr ""
35001
35002 #. type: textblock
35003 #: ../src/guestfs.pod:241
35004 msgid ""
35005 "In the common case where you want to create a single partition covering the "
35006 "whole disk, you should use the L</guestfs_part_disk> call:"
35007 msgstr ""
35008
35009 #. type: verbatim
35010 #: ../src/guestfs.pod:245
35011 #, no-wrap
35012 msgid ""
35013 " const char *parttype = \"mbr\";\n"
35014 " if (disk_is_larger_than_2TB)\n"
35015 "   parttype = \"gpt\";\n"
35016 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35017 "\n"
35018 msgstr ""
35019 " const char *parttype = \"mbr\";\n"
35020 " if (disk_is_larger_than_2TB)\n"
35021 "   parttype = \"gpt\";\n"
35022 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35023 "\n"
35024
35025 #. type: textblock
35026 #: ../src/guestfs.pod:250
35027 msgid ""
35028 "Obviously this effectively wipes anything that was on that disk image before."
35029 msgstr ""
35030
35031 #. type: =head2
35032 #: ../src/guestfs.pod:253
35033 msgid "LVM2"
35034 msgstr "LVM2"
35035
35036 #. type: textblock
35037 #: ../src/guestfs.pod:255
35038 msgid ""
35039 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35040 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
35041 "you familiarize yourself with the concepts of physical volumes, volume "
35042 "groups and logical volumes."
35043 msgstr ""
35044
35045 #. type: textblock
35046 #: ../src/guestfs.pod:260
35047 msgid ""
35048 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35049 "tldp.org/HOWTO/LVM-HOWTO/>."
35050 msgstr ""
35051
35052 #. type: =head2
35053 #: ../src/guestfs.pod:263
35054 msgid "DOWNLOADING"
35055 msgstr "ОТРИМАННЯ ДАНИХ"
35056
35057 #. type: textblock
35058 #: ../src/guestfs.pod:265
35059 msgid ""
35060 "Use L</guestfs_cat> to download small, text only files.  This call is "
35061 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35062 "NUL (C<\\0>) characters.  However the API is very simple to use."
35063 msgstr ""
35064
35065 #. type: textblock
35066 #: ../src/guestfs.pod:269
35067 msgid ""
35068 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35069 "bit data, since it returns a (pointer, size) pair.  However it is still "
35070 "limited to \"small\" files, less than 2 MB."
35071 msgstr ""
35072
35073 #. type: textblock
35074 #: ../src/guestfs.pod:273
35075 msgid ""
35076 "L</guestfs_download> can be used to download any file, with no limits on "
35077 "content or size (even files larger than 4 GB)."
35078 msgstr ""
35079
35080 #. type: textblock
35081 #: ../src/guestfs.pod:276
35082 msgid ""
35083 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35084 msgstr ""
35085
35086 #. type: =head2
35087 #: ../src/guestfs.pod:279
35088 msgid "UPLOADING"
35089 msgstr "ВИВАНТАЖЕННЯ"
35090
35091 #. type: textblock
35092 #: ../src/guestfs.pod:281
35093 msgid ""
35094 "It's often the case that you want to write a file or files to the disk image."
35095 msgstr ""
35096
35097 #. type: textblock
35098 #: ../src/guestfs.pod:284
35099 msgid ""
35100 "To write a small file with fixed content, use L</guestfs_write>.  To create "
35101 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35102 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
35103 "of other functions for creating test files, for example L</guestfs_fill> and "
35104 "L</guestfs_fill_pattern>."
35105 msgstr ""
35106
35107 #. type: textblock
35108 #: ../src/guestfs.pod:290
35109 msgid ""
35110 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
35111 "file content or size (even files larger than 4 GB)."
35112 msgstr ""
35113
35114 #. type: textblock
35115 #: ../src/guestfs.pod:293
35116 msgid ""
35117 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35118 msgstr ""
35119
35120 #. type: textblock
35121 #: ../src/guestfs.pod:295
35122 msgid ""
35123 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35124 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
35125 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
35126 "in a predictable way (eg. adding it last after all other drives) then you "
35127 "can get the device name from L</guestfs_list_devices> and mount it directly "
35128 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
35129 "portable between kernel versions, and they don't support labels or UUIDs.  "
35130 "If you want to pre-build an image or you need to mount it using a label or "
35131 "UUID, use an ISO image instead."
35132 msgstr ""
35133
35134 #. type: =head2
35135 #: ../src/guestfs.pod:306
35136 msgid "COPYING"
35137 msgstr "КОПІЮВАННЯ"
35138
35139 #. type: textblock
35140 #: ../src/guestfs.pod:308
35141 msgid ""
35142 "There are various different commands for copying between files and devices "
35143 "and in and out of the guest filesystem.  These are summarised in the table "
35144 "below."
35145 msgstr ""
35146
35147 #. type: =item
35148 #: ../src/guestfs.pod:314
35149 msgid "B<file> to B<file>"
35150 msgstr "B<файл> у B<файл>"
35151
35152 #. type: textblock
35153 #: ../src/guestfs.pod:316
35154 msgid ""
35155 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35156 "directories recursively."
35157 msgstr ""
35158
35159 #. type: =item
35160 #: ../src/guestfs.pod:319
35161 msgid "B<file or device> to B<file or device>"
35162 msgstr "B<файл або пристрій> у B<файл або пристрій>"
35163
35164 #. type: textblock
35165 #: ../src/guestfs.pod:321
35166 msgid ""
35167 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
35168 "devices in the guest."
35169 msgstr ""
35170
35171 #. type: textblock
35172 #: ../src/guestfs.pod:324
35173 msgid "Example: duplicate the contents of an LV:"
35174 msgstr ""
35175
35176 #. type: verbatim
35177 #: ../src/guestfs.pod:326
35178 #, no-wrap
35179 msgid ""
35180 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35181 "\n"
35182 msgstr ""
35183 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35184 "\n"
35185
35186 #. type: textblock
35187 #: ../src/guestfs.pod:328
35188 msgid ""
35189 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35190 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
35191 "guestfs_copy_size>."
35192 msgstr ""
35193
35194 #. type: =item
35195 #: ../src/guestfs.pod:332
35196 msgid "B<file on the host> to B<file or device>"
35197 msgstr ""
35198
35199 #. type: textblock
35200 #: ../src/guestfs.pod:334
35201 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
35202 msgstr ""
35203
35204 #. type: =item
35205 #: ../src/guestfs.pod:336
35206 msgid "B<file or device> to B<file on the host>"
35207 msgstr ""
35208
35209 #. type: textblock
35210 #: ../src/guestfs.pod:338
35211 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
35212 msgstr ""
35213
35214 #. type: =head2
35215 #: ../src/guestfs.pod:342
35216 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35217 msgstr ""
35218
35219 #. type: textblock
35220 #: ../src/guestfs.pod:344
35221 msgid ""
35222 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
35223 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35224 "appears you can only upload and download to files.  However many Un*x-like "
35225 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
35226 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
35227 "and arbitrary file descriptor N."
35228 msgstr ""
35229
35230 #. type: textblock
35231 #: ../src/guestfs.pod:352
35232 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35233 msgstr ""
35234
35235 #. type: verbatim
35236 #: ../src/guestfs.pod:355
35237 #, no-wrap
35238 msgid ""
35239 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35240 "\n"
35241 msgstr ""
35242 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35243 "\n"
35244
35245 #. type: textblock
35246 #: ../src/guestfs.pod:357
35247 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35248 msgstr ""
35249
35250 #. type: verbatim
35251 #: ../src/guestfs.pod:359
35252 #, no-wrap
35253 msgid ""
35254 " char devfd[64];\n"
35255 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35256 " guestfs_tar_out (g, \"/\", devfd);\n"
35257 "\n"
35258 msgstr ""
35259 " char devfd[64];\n"
35260 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35261 " guestfs_tar_out (g, \"/\", devfd);\n"
35262 "\n"
35263
35264 #. type: =head2
35265 #: ../src/guestfs.pod:363
35266 msgid "LISTING FILES"
35267 msgstr "СПИСКИ ФАЙЛІВ"
35268
35269 #. type: textblock
35270 #: ../src/guestfs.pod:365
35271 msgid ""
35272 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35273 "L<guestfish(1)>-equivalent command C<ll>)."
35274 msgstr ""
35275
35276 #. type: textblock
35277 #: ../src/guestfs.pod:368
35278 msgid ""
35279 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35280 "programs, as a flat list of strings."
35281 msgstr ""
35282
35283 #. type: textblock
35284 #: ../src/guestfs.pod:371
35285 msgid ""
35286 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35287 "directory, plus additional information about each one.  It is more "
35288 "equivalent to using the L<readdir(3)> call on a local filesystem."
35289 msgstr ""
35290
35291 #. type: textblock
35292 #: ../src/guestfs.pod:375
35293 msgid ""
35294 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
35295 msgstr ""
35296
35297 #. type: =head2
35298 #: ../src/guestfs.pod:378
35299 msgid "RUNNING COMMANDS"
35300 msgstr "ВИКОНАННЯ КОМАНД"
35301
35302 #. type: textblock
35303 #: ../src/guestfs.pod:380
35304 msgid ""
35305 "Although libguestfs is primarily an API for manipulating files inside guest "
35306 "images, we also provide some limited facilities for running commands inside "
35307 "guests."
35308 msgstr ""
35309
35310 #. type: textblock
35311 #: ../src/guestfs.pod:384
35312 msgid "There are many limitations to this:"
35313 msgstr ""
35314
35315 #. type: textblock
35316 #: ../src/guestfs.pod:390
35317 msgid ""
35318 "The kernel version that the command runs under will be different from what "
35319 "it expects."
35320 msgstr ""
35321
35322 #. type: textblock
35323 #: ../src/guestfs.pod:395
35324 msgid ""
35325 "If the command needs to communicate with daemons, then most likely they "
35326 "won't be running."
35327 msgstr ""
35328
35329 #. type: textblock
35330 #: ../src/guestfs.pod:400
35331 msgid "The command will be running in limited memory."
35332 msgstr ""
35333
35334 #. type: textblock
35335 #: ../src/guestfs.pod:404
35336 msgid ""
35337 "The network may not be available unless you enable it (see L</"
35338 "guestfs_set_network>)."
35339 msgstr ""
35340
35341 #. type: textblock
35342 #: ../src/guestfs.pod:409
35343 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35344 msgstr ""
35345
35346 #. type: textblock
35347 #: ../src/guestfs.pod:413
35348 msgid ""
35349 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35350 msgstr ""
35351
35352 #. type: textblock
35353 #: ../src/guestfs.pod:418
35354 msgid ""
35355 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35356 "See L</SELINUX> in this manpage."
35357 msgstr ""
35358
35359 #. type: textblock
35360 #: ../src/guestfs.pod:423
35361 msgid ""
35362 "I<Security:> It is not safe to run commands from untrusted, possibly "
35363 "malicious guests.  These commands may attempt to exploit your program by "
35364 "sending unexpected output.  They could also try to exploit the Linux kernel "
35365 "or qemu provided by the libguestfs appliance.  They could use the network "
35366 "provided by the libguestfs appliance to bypass ordinary network partitions "
35367 "and firewalls.  They could use the elevated privileges or different SELinux "
35368 "context of your program to their advantage."
35369 msgstr ""
35370
35371 #. type: textblock
35372 #: ../src/guestfs.pod:432
35373 msgid ""
35374 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35375 "(a script which runs when the guest next boots normally), and to have this "
35376 "script run the commands you want in the normal context of the running guest, "
35377 "network security and so on.  For information about other security issues, "
35378 "see L</SECURITY>."
35379 msgstr ""
35380
35381 #. type: textblock
35382 #: ../src/guestfs.pod:440
35383 msgid ""
35384 "The two main API calls to run commands are L</guestfs_command> and L</"
35385 "guestfs_sh> (there are also variations)."
35386 msgstr ""
35387
35388 #. type: textblock
35389 #: ../src/guestfs.pod:443
35390 msgid ""
35391 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35392 "shell globs, redirections, etc will work."
35393 msgstr ""
35394
35395 #. type: =head2
35396 #: ../src/guestfs.pod:446
35397 msgid "CONFIGURATION FILES"
35398 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
35399
35400 #. type: textblock
35401 #: ../src/guestfs.pod:448
35402 msgid ""
35403 "To read and write configuration files in Linux guest filesystems, we "
35404 "strongly recommend using Augeas.  For example, Augeas understands how to "
35405 "read and write, say, a Linux shadow password file or X.org configuration "
35406 "file, and so avoids you having to write that code."
35407 msgstr ""
35408
35409 #. type: textblock
35410 #: ../src/guestfs.pod:453
35411 msgid ""
35412 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35413 "document Augeas itself here because there is excellent documentation on the "
35414 "L<http://augeas.net/> website."
35415 msgstr ""
35416
35417 #. type: textblock
35418 #: ../src/guestfs.pod:457
35419 msgid ""
35420 "If you don't want to use Augeas (you fool!) then try calling L</"
35421 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
35422 "over."
35423 msgstr ""
35424
35425 #. type: =head2
35426 #: ../src/guestfs.pod:461
35427 msgid "SELINUX"
35428 msgstr "SELINUX"
35429
35430 #. type: textblock
35431 #: ../src/guestfs.pod:463
35432 msgid ""
35433 "We support SELinux guests.  To ensure that labeling happens correctly in "
35434 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35435 msgstr ""
35436
35437 #. type: textblock
35438 #: ../src/guestfs.pod:471
35439 msgid "Before launching, do:"
35440 msgstr ""
35441
35442 #. type: verbatim
35443 #: ../src/guestfs.pod:473
35444 #, no-wrap
35445 msgid ""
35446 " guestfs_set_selinux (g, 1);\n"
35447 "\n"
35448 msgstr ""
35449 " guestfs_set_selinux (g, 1);\n"
35450 "\n"
35451
35452 #. type: textblock
35453 #: ../src/guestfs.pod:477
35454 msgid ""
35455 "After mounting the guest's filesystem(s), load the policy.  This is best "
35456 "done by running the L<load_policy(8)> command in the guest itself:"
35457 msgstr ""
35458
35459 #. type: verbatim
35460 #: ../src/guestfs.pod:481
35461 #, no-wrap
35462 msgid ""
35463 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35464 "\n"
35465 msgstr ""
35466 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35467 "\n"
35468
35469 #. type: textblock
35470 #: ../src/guestfs.pod:483
35471 msgid ""
35472 "(Older versions of C<load_policy> require you to specify the name of the "
35473 "policy file)."
35474 msgstr ""
35475
35476 #. type: textblock
35477 #: ../src/guestfs.pod:488
35478 msgid ""
35479 "Optionally, set the security context for the API.  The correct security "
35480 "context to use can only be known by inspecting the guest.  As an example:"
35481 msgstr ""
35482
35483 #. type: verbatim
35484 #: ../src/guestfs.pod:492
35485 #, no-wrap
35486 msgid ""
35487 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35488 "\n"
35489 msgstr ""
35490 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35491 "\n"
35492
35493 #. type: textblock
35494 #: ../src/guestfs.pod:496
35495 msgid "This will work for running commands and editing existing files."
35496 msgstr ""
35497
35498 #. type: textblock
35499 #: ../src/guestfs.pod:498
35500 msgid ""
35501 "When new files are created, you may need to label them explicitly, for "
35502 "example by running the external command C<restorecon pathname>."
35503 msgstr ""
35504
35505 #. type: =head2
35506 #: ../src/guestfs.pod:502
35507 msgid "UMASK"
35508 msgstr "UMASK"
35509
35510 #. type: textblock
35511 #: ../src/guestfs.pod:504
35512 msgid ""
35513 "Certain calls are affected by the current file mode creation mask (the "
35514 "\"umask\").  In particular ones which create files or directories, such as "
35515 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35516 "either the default mode that the file is created with or modifies the mode "
35517 "that you supply."
35518 msgstr ""
35519
35520 #. type: textblock
35521 #: ../src/guestfs.pod:510
35522 msgid ""
35523 "The default umask is C<022>, so files are created with modes such as C<0644> "
35524 "and directories with C<0755>."
35525 msgstr ""
35526
35527 #. type: textblock
35528 #: ../src/guestfs.pod:513
35529 msgid ""
35530 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35531 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
35532 "guestfs_chmod> after creating each file or directory."
35533 msgstr ""
35534
35535 #. type: textblock
35536 #: ../src/guestfs.pod:517
35537 msgid "For more information about umask, see L<umask(2)>."
35538 msgstr ""
35539
35540 #. type: textblock
35541 #: ../src/guestfs.pod:521
35542 msgid ""
35543 "Libguestfs allows you to access Linux guests which have been encrypted using "
35544 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35545 "standard.  This includes nearly all whole disk encryption systems used by "
35546 "modern Linux guests."
35547 msgstr ""
35548
35549 #. type: textblock
35550 #: ../src/guestfs.pod:527
35551 msgid ""
35552 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35553 "returns the string C<crypto_LUKS>)."
35554 msgstr ""
35555
35556 #. type: textblock
35557 #: ../src/guestfs.pod:530
35558 msgid ""
35559 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35560 "will require the passphrase!"
35561 msgstr ""
35562
35563 #. type: textblock
35564 #: ../src/guestfs.pod:533
35565 msgid ""
35566 "Opening a LUKS device creates a new device mapper device called C</dev/"
35567 "mapper/mapname> (where C<mapname> is the string you supply to L</"
35568 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
35569 "from and encrypted to the underlying block device respectively."
35570 msgstr ""
35571
35572 #. type: textblock
35573 #: ../src/guestfs.pod:539
35574 msgid ""
35575 "LVM volume groups on the device can be made visible by calling L</"
35576 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
35577 "(s) can now be mounted in the usual way."
35578 msgstr ""
35579
35580 #. type: textblock
35581 #: ../src/guestfs.pod:543
35582 msgid ""
35583 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35584 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35585 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
35586 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35587 "underlying encrypted block device)."
35588 msgstr ""
35589
35590 #. type: =head2
35591 #: ../src/guestfs.pod:550
35592 msgid "INSPECTION"
35593 msgstr "ПЕРЕВІРКА"
35594
35595 #. type: textblock
35596 #: ../src/guestfs.pod:552
35597 msgid ""
35598 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35599 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35600 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35601 "version 1.5.3 the most frequently used part of this library has been "
35602 "rewritten in C and moved into the core code)."
35603 msgstr ""
35604
35605 #. type: textblock
35606 #: ../src/guestfs.pod:559
35607 msgid ""
35608 "Add all disks belonging to the unknown virtual machine and call L</"
35609 "guestfs_launch> in the usual way."
35610 msgstr ""
35611
35612 #. type: textblock
35613 #: ../src/guestfs.pod:562
35614 msgid ""
35615 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35616 "and certain heuristics, and returns a list of operating systems that were "
35617 "found.  An empty list means none were found.  A single element is the root "
35618 "filesystem of the operating system.  For dual- or multi-boot guests, "
35619 "multiple roots can be returned, each one corresponding to a separate "
35620 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35621 "world of virtualization, but since this scenario can happen, we have built "
35622 "libguestfs to deal with it.)"
35623 msgstr ""
35624
35625 #. type: textblock
35626 #: ../src/guestfs.pod:571
35627 msgid ""
35628 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35629 "to get additional details about that operating system.  For example, call L</"
35630 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35631 "Windows and Linux-based operating systems respectively."
35632 msgstr ""
35633
35634 #. type: textblock
35635 #: ../src/guestfs.pod:577
35636 msgid ""
35637 "Un*x-like and Linux-based operating systems usually consist of several "
35638 "filesystems which are mounted at boot time (for example, a separate boot "
35639 "partition mounted on C</boot>).  The inspection rules are able to detect how "
35640 "filesystems correspond to mount points.  Call "
35641 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35642 "hash table like this example:"
35643 msgstr ""
35644
35645 #. type: verbatim
35646 #: ../src/guestfs.pod:584
35647 #, no-wrap
35648 msgid ""
35649 " /boot => /dev/sda1\n"
35650 " /     => /dev/vg_guest/lv_root\n"
35651 " /usr  => /dev/vg_guest/lv_usr\n"
35652 "\n"
35653 msgstr ""
35654 " /boot => /dev/sda1\n"
35655 " /     => /dev/vg_guest/lv_root\n"
35656 " /usr  => /dev/vg_guest/lv_usr\n"
35657 "\n"
35658
35659 #. type: textblock
35660 #: ../src/guestfs.pod:588
35661 msgid ""
35662 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35663 "filesystems as suggested."
35664 msgstr ""
35665
35666 #. type: textblock
35667 #: ../src/guestfs.pod:591
35668 msgid ""
35669 "Be careful to mount filesystems in the right order (eg. C</> before C</"
35670 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
35671 msgstr ""
35672
35673 #. type: textblock
35674 #: ../src/guestfs.pod:595
35675 msgid ""
35676 "Inspection currently only works for some common operating systems.  "
35677 "Contributors are welcome to send patches for other operating systems that we "
35678 "currently cannot detect."
35679 msgstr ""
35680
35681 #. type: textblock
35682 #: ../src/guestfs.pod:599
35683 msgid ""
35684 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35685 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35686 "encrypted devices."
35687 msgstr ""
35688
35689 #. type: textblock
35690 #: ../src/guestfs.pod:603
35691 msgid ""
35692 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35693 "inspection and caches the results in the guest handle.  Subsequent calls to "
35694 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
35695 "read the disks.  If you change the content of the guest disks, you can redo "
35696 "inspection by calling L</guestfs_inspect_os> again.  (L</"
35697 "guestfs_inspect_list_applications> works a little differently from the other "
35698 "calls and does read the disks.  See documentation for that function for "
35699 "details)."
35700 msgstr ""
35701
35702 #. type: =head3
35703 #: ../src/guestfs.pod:612
35704 msgid "INSPECTING INSTALL DISKS"
35705 msgstr ""
35706
35707 #. type: textblock
35708 #: ../src/guestfs.pod:614
35709 msgid ""
35710 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35711 "CDs and more."
35712 msgstr ""
35713
35714 #. type: textblock
35715 #: ../src/guestfs.pod:617
35716 msgid ""
35717 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35718 "system, which currently can be C<installed> (a regular operating system) or "
35719 "C<installer> (some sort of install disk)."
35720 msgstr ""
35721
35722 #. type: textblock
35723 #: ../src/guestfs.pod:621
35724 msgid ""
35725 "Further information is available about the operating system that can be "
35726 "installed using the regular inspection APIs like L</"
35727 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
35728 msgstr ""
35729
35730 #. type: textblock
35731 #: ../src/guestfs.pod:626
35732 msgid ""
35733 "Some additional information specific to installer disks is also available "
35734 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
35735 "guestfs_inspect_is_multipart> calls."
35736 msgstr ""
35737
35738 #. type: =head2
35739 #: ../src/guestfs.pod:631
35740 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35741 msgstr ""
35742
35743 #. type: textblock
35744 #: ../src/guestfs.pod:633
35745 msgid ""
35746 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
35747 "ntfs-3g.org/> driver."
35748 msgstr ""
35749
35750 #. type: =head3
35751 #: ../src/guestfs.pod:636
35752 msgid "DRIVE LETTERS AND PATHS"
35753 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
35754
35755 #. type: textblock
35756 #: ../src/guestfs.pod:638
35757 msgid ""
35758 "DOS and Windows still use drive letters, and the filesystems are always "
35759 "treated as case insensitive by Windows itself, and therefore you might find "
35760 "a Windows configuration file referring to a path like C<c:\\windows"
35761 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
35762 "might be referred to as C</WINDOWS/System32>."
35763 msgstr ""
35764
35765 #. type: textblock
35766 #: ../src/guestfs.pod:644
35767 msgid ""
35768 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35769 "L</guestfs_inspect_get_drive_mappings>)"
35770 msgstr ""
35771
35772 #. type: textblock
35773 #: ../src/guestfs.pod:647
35774 msgid ""
35775 "Dealing with separator characters (backslash vs forward slash) is outside "
35776 "the scope of libguestfs, but usually a simple character replacement will "
35777 "work."
35778 msgstr ""
35779
35780 #. type: textblock
35781 #: ../src/guestfs.pod:651
35782 msgid ""
35783 "To resolve the case insensitivity of paths, call L</"
35784 "guestfs_case_sensitive_path>."
35785 msgstr ""
35786
35787 #. type: =head3
35788 #: ../src/guestfs.pod:654
35789 msgid "ACCESSING THE WINDOWS REGISTRY"
35790 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
35791
35792 #. type: textblock
35793 #: ../src/guestfs.pod:656
35794 msgid ""
35795 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35796 "files, through the library C<hivex> which is part of the libguestfs project "
35797 "although ships as a separate tarball.  You have to locate and download the "
35798 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35799 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
35800 "reg(1)> for more help on this issue."
35801 msgstr ""
35802
35803 #. type: =head3
35804 #: ../src/guestfs.pod:664
35805 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35806 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
35807
35808 #. type: textblock
35809 #: ../src/guestfs.pod:666
35810 msgid ""
35811 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35812 "provide something which looks like a Linux symlink.  The way it tries to do "
35813 "the rewriting is described here:"
35814 msgstr ""
35815
35816 #. type: textblock
35817 #: ../src/guestfs.pod:670
35818 msgid ""
35819 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35820 "symbolic-links/>"
35821 msgstr ""
35822 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35823 "symbolic-links/>"
35824
35825 #. type: textblock
35826 #: ../src/guestfs.pod:672
35827 msgid ""
35828 "The essential problem is that ntfs-3g simply does not have enough "
35829 "information to do a correct job.  NTFS links can contain drive letters and "
35830 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
35831 "It is almost certainly the case that libguestfs callers should ignore what "
35832 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35833 msgstr ""
35834
35835 #. type: textblock
35836 #: ../src/guestfs.pod:679
35837 msgid ""
35838 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
35839 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35840 "attribute, and read the raw reparse data from that (you can find the format "
35841 "documented in various places around the web)."
35842 msgstr ""
35843
35844 #. type: =head3
35845 #: ../src/guestfs.pod:684
35846 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35847 msgstr ""
35848
35849 #. type: textblock
35850 #: ../src/guestfs.pod:686
35851 msgid ""
35852 "There are other useful extended attributes that can be read from ntfs-3g "
35853 "filesystems (using L</guestfs_getxattr>).  See:"
35854 msgstr ""
35855
35856 #. type: textblock
35857 #: ../src/guestfs.pod:689
35858 msgid ""
35859 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35860 msgstr ""
35861 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35862
35863 #. type: =head2
35864 #: ../src/guestfs.pod:691
35865 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35866 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
35867
35868 #. type: textblock
35869 #: ../src/guestfs.pod:693
35870 msgid ""
35871 "Although we don't want to discourage you from using the C API, we will "
35872 "mention here that the same API is also available in other languages."
35873 msgstr ""
35874
35875 #. type: textblock
35876 #: ../src/guestfs.pod:696
35877 msgid ""
35878 "The API is broadly identical in all supported languages.  This means that "
35879 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35880 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35881 "OCaml.  In other words, a straightforward, predictable isomorphism between "
35882 "each language."
35883 msgstr ""
35884
35885 #. type: textblock
35886 #: ../src/guestfs.pod:702
35887 msgid ""
35888 "Error messages are automatically transformed into exceptions if the language "
35889 "supports it."
35890 msgstr ""
35891
35892 #. type: textblock
35893 #: ../src/guestfs.pod:705
35894 msgid ""
35895 "We don't try to \"object orientify\" parts of the API in OO languages, "
35896 "although contributors are welcome to write higher level APIs above what we "
35897 "provide in their favourite languages if they wish."
35898 msgstr ""
35899
35900 #. type: =item
35901 #: ../src/guestfs.pod:711
35902 msgid "B<C++>"
35903 msgstr "B<C++>"
35904
35905 #. type: textblock
35906 #: ../src/guestfs.pod:713
35907 msgid ""
35908 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
35909 "identical to the C API.  C++ classes and exceptions are not used."
35910 msgstr ""
35911
35912 #. type: =item
35913 #: ../src/guestfs.pod:717
35914 msgid "B<C#>"
35915 msgstr "B<C#>"
35916
35917 #. type: textblock
35918 #: ../src/guestfs.pod:719
35919 msgid ""
35920 "The C# bindings are highly experimental.  Please read the warnings at the "
35921 "top of C<csharp/Libguestfs.cs>."
35922 msgstr ""
35923
35924 #. type: =item
35925 #: ../src/guestfs.pod:722
35926 msgid "B<Erlang>"
35927 msgstr ""
35928
35929 #. type: textblock
35930 #: ../src/guestfs.pod:724
35931 msgid "See L<guestfs-erlang(3)>."
35932 msgstr ""
35933
35934 #. type: =item
35935 #: ../src/guestfs.pod:726
35936 msgid "B<Haskell>"
35937 msgstr "B<Haskell>"
35938
35939 #. type: textblock
35940 #: ../src/guestfs.pod:728
35941 msgid ""
35942 "This is the only language binding that is working but incomplete.  Only "
35943 "calls which return simple integers have been bound in Haskell, and we are "
35944 "looking for help to complete this binding."
35945 msgstr ""
35946
35947 #. type: =item
35948 #: ../src/guestfs.pod:732
35949 msgid "B<Java>"
35950 msgstr "B<Java>"
35951
35952 #. type: textblock
35953 #: ../src/guestfs.pod:734
35954 msgid ""
35955 "Full documentation is contained in the Javadoc which is distributed with "
35956 "libguestfs.  For examples, see L<guestfs-java(3)>."
35957 msgstr ""
35958
35959 #. type: =item
35960 #: ../src/guestfs.pod:737
35961 msgid "B<OCaml>"
35962 msgstr "B<OCaml>"
35963
35964 #. type: textblock
35965 #: ../src/guestfs.pod:739
35966 msgid "See L<guestfs-ocaml(3)>."
35967 msgstr "Див. L<guestfs-ocaml(3)>."
35968
35969 #. type: =item
35970 #: ../src/guestfs.pod:741
35971 msgid "B<Perl>"
35972 msgstr "B<Perl>"
35973
35974 #. type: textblock
35975 #: ../src/guestfs.pod:743
35976 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
35977 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
35978
35979 #. type: =item
35980 #: ../src/guestfs.pod:745
35981 msgid "B<PHP>"
35982 msgstr "B<PHP>"
35983
35984 #. type: textblock
35985 #: ../src/guestfs.pod:747
35986 msgid ""
35987 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
35988 "the php-libguestfs package for your distribution."
35989 msgstr ""
35990
35991 #. type: textblock
35992 #: ../src/guestfs.pod:750
35993 msgid "The PHP binding only works correctly on 64 bit machines."
35994 msgstr ""
35995
35996 #. type: =item
35997 #: ../src/guestfs.pod:752
35998 msgid "B<Python>"
35999 msgstr "B<Python>"
36000
36001 #. type: textblock
36002 #: ../src/guestfs.pod:754
36003 msgid "See L<guestfs-python(3)>."
36004 msgstr "Див. L<guestfs-python(3)>."
36005
36006 #. type: =item
36007 #: ../src/guestfs.pod:756
36008 msgid "B<Ruby>"
36009 msgstr "B<Ruby>"
36010
36011 #. type: textblock
36012 #: ../src/guestfs.pod:758
36013 msgid "See L<guestfs-ruby(3)>."
36014 msgstr "Див. L<guestfs-ruby(3)>."
36015
36016 #. type: =item
36017 #: ../src/guestfs.pod:760
36018 msgid "B<shell scripts>"
36019 msgstr "B<скрипти оболонки>"
36020
36021 #. type: textblock
36022 #: ../src/guestfs.pod:762
36023 msgid "See L<guestfish(1)>."
36024 msgstr "Див. L<guestfish(1)>."
36025
36026 #. type: =head2
36027 #: ../src/guestfs.pod:766
36028 msgid "LIBGUESTFS GOTCHAS"
36029 msgstr ""
36030
36031 #. type: textblock
36032 #: ../src/guestfs.pod:768
36033 msgid ""
36034 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36035 "system [...] that works in the way it is documented but is counterintuitive "
36036 "and almost invites mistakes.\""
36037 msgstr ""
36038
36039 #. type: textblock
36040 #: ../src/guestfs.pod:772
36041 msgid ""
36042 "Since we developed libguestfs and the associated tools, there are several "
36043 "things we would have designed differently, but are now stuck with for "
36044 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
36045 "release, you can expect these to change.  Beware of them."
36046 msgstr ""
36047
36048 #. type: =item
36049 #: ../src/guestfs.pod:780
36050 msgid "Autosync / forgetting to sync."
36051 msgstr ""
36052
36053 #. type: textblock
36054 #: ../src/guestfs.pod:782
36055 msgid ""
36056 "I<Update:> Autosync is enabled by default for all API users starting from "
36057 "libguestfs 1.5.24.  This section only applies to older versions."
36058 msgstr ""
36059
36060 #. type: textblock
36061 #: ../src/guestfs.pod:785
36062 msgid ""
36063 "When modifying a filesystem from C or another language, you B<must> unmount "
36064 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36065 "libguestfs handle.  You can also call:"
36066 msgstr ""
36067
36068 #. type: verbatim
36069 #: ../src/guestfs.pod:789
36070 #, no-wrap
36071 msgid ""
36072 " guestfs_set_autosync (g, 1);\n"
36073 "\n"
36074 msgstr ""
36075 " guestfs_set_autosync (g, 1);\n"
36076 "\n"
36077
36078 #. type: textblock
36079 #: ../src/guestfs.pod:791
36080 msgid ""
36081 "to have the unmount/sync done automatically for you when the handle 'g' is "
36082 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
36083 msgstr ""
36084
36085 #. type: textblock
36086 #: ../src/guestfs.pod:795
36087 msgid ""
36088 "If you forget to do this, then it is entirely possible that your changes "
36089 "won't be written out, or will be partially written, or (very rarely) that "
36090 "you'll get disk corruption."
36091 msgstr ""
36092
36093 #. type: textblock
36094 #: ../src/guestfs.pod:799
36095 msgid ""
36096 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
36097 "guestfish scripts that forget to sync will work just fine, which can make "
36098 "this very puzzling if you are trying to debug a problem."
36099 msgstr ""
36100
36101 #. type: =item
36102 #: ../src/guestfs.pod:803
36103 msgid "Mount option C<-o sync> should not be the default."
36104 msgstr ""
36105
36106 #. type: textblock
36107 #: ../src/guestfs.pod:805
36108 msgid ""
36109 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36110 "libguestfs 1.13.16.  This section only applies to older versions."
36111 msgstr ""
36112
36113 #. type: textblock
36114 #: ../src/guestfs.pod:808
36115 msgid ""
36116 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
36117 "However C<-o sync> does not add any reliability benefit, but does have a "
36118 "very large performance impact."
36119 msgstr ""
36120
36121 #. type: textblock
36122 #: ../src/guestfs.pod:812
36123 msgid ""
36124 "The work around is to use L</guestfs_mount_options> and set the mount "
36125 "options that you actually want to use."
36126 msgstr ""
36127
36128 #. type: =item
36129 #: ../src/guestfs.pod:815
36130 msgid "Read-only should be the default."
36131 msgstr ""
36132
36133 #. type: textblock
36134 #: ../src/guestfs.pod:817
36135 msgid ""
36136 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36137 "specify I<--rw> if you want to make changes to the image."
36138 msgstr ""
36139
36140 #. type: textblock
36141 #: ../src/guestfs.pod:820
36142 msgid "This would reduce the potential to corrupt live VM images."
36143 msgstr ""
36144
36145 #. type: textblock
36146 #: ../src/guestfs.pod:822
36147 msgid ""
36148 "Note that many filesystems change the disk when you just mount and unmount, "
36149 "even if you didn't perform any writes.  You need to use L</"
36150 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
36151 msgstr ""
36152
36153 #. type: =item
36154 #: ../src/guestfs.pod:826
36155 msgid "guestfish command line is hard to use."
36156 msgstr ""
36157
36158 #. type: textblock
36159 #: ../src/guestfs.pod:828
36160 msgid ""
36161 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36162 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
36163 "exist, so it fails.  In earlier versions of guestfish the error message was "
36164 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
36165 "we should have used C<guestfish -c command> to run commands."
36166 msgstr ""
36167
36168 #. type: =item
36169 #: ../src/guestfs.pod:835
36170 msgid "guestfish megabyte modifiers don't work right on all commands"
36171 msgstr ""
36172
36173 #. type: textblock
36174 #: ../src/guestfs.pod:837
36175 msgid ""
36176 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36177 "other modifiers).  What guestfish actually does is to multiply the number "
36178 "part by the modifier part and pass the result to the C API.  However this "
36179 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36180 "expecting some other unit (eg. megabytes)."
36181 msgstr ""
36182
36183 #. type: textblock
36184 #: ../src/guestfs.pod:844
36185 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
36186 msgstr ""
36187
36188 #. type: verbatim
36189 #: ../src/guestfs.pod:846
36190 #, no-wrap
36191 msgid ""
36192 " lvcreate LV VG 100M\n"
36193 "\n"
36194 msgstr ""
36195 " lvcreate LV VG 100M\n"
36196 "\n"
36197
36198 #. type: textblock
36199 #: ../src/guestfs.pod:848
36200 msgid ""
36201 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
36202 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36203 "megabytes * megabytes) logical volume.  The error message you get from this "
36204 "is also a little obscure."
36205 msgstr ""
36206
36207 #. type: textblock
36208 #: ../src/guestfs.pod:853
36209 msgid ""
36210 "This could be fixed in the generator by specially marking parameters and "
36211 "return values which take bytes or other units."
36212 msgstr ""
36213
36214 #. type: =item
36215 #: ../src/guestfs.pod:856
36216 msgid "Ambiguity between devices and paths"
36217 msgstr ""
36218
36219 #. type: textblock
36220 #: ../src/guestfs.pod:858
36221 msgid ""
36222 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
36223 "sdb2>) and a similar pathname.  A file might just happen to be called "
36224 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36225 msgstr ""
36226
36227 #. type: textblock
36228 #: ../src/guestfs.pod:863
36229 msgid ""
36230 "In the current API we usually resolve this ambiguity by having two separate "
36231 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
36232 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36233 "detecting if the path supplied begins with C</dev/>."
36234 msgstr ""
36235
36236 #. type: textblock
36237 #: ../src/guestfs.pod:869
36238 msgid ""
36239 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36240 "make paths/devices into structured names.  One way to do this would be to "
36241 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36242 "aspect of grub.  Another way would be to use a structured type, equivalent "
36243 "to this OCaml type:"
36244 msgstr ""
36245
36246 #. type: verbatim
36247 #: ../src/guestfs.pod:875
36248 #, no-wrap
36249 msgid ""
36250 " type path = Path of string | Device of int | Partition of int * int\n"
36251 "\n"
36252 msgstr ""
36253
36254 #. type: textblock
36255 #: ../src/guestfs.pod:877
36256 msgid "which would allow you to pass arguments like:"
36257 msgstr ""
36258
36259 #. type: verbatim
36260 #: ../src/guestfs.pod:879
36261 #, no-wrap
36262 msgid ""
36263 " Path \"/foo/bar\"\n"
36264 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
36265 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36266 " Path \"/dev/sdb2\"    (* not a device *)\n"
36267 "\n"
36268 msgstr ""
36269
36270 #. type: textblock
36271 #: ../src/guestfs.pod:884
36272 msgid ""
36273 "As you can see there are still problems to resolve even with this "
36274 "representation.  Also consider how it might work in guestfish."
36275 msgstr ""
36276
36277 #. type: =head2
36278 #: ../src/guestfs.pod:889
36279 msgid "KEYS AND PASSPHRASES"
36280 msgstr "КЛЮЧІ І ПАРОЛІ"
36281
36282 #. type: textblock
36283 #: ../src/guestfs.pod:891
36284 msgid ""
36285 "Certain libguestfs calls take a parameter that contains sensitive key "
36286 "material, passed in as a C string."
36287 msgstr ""
36288
36289 #. type: textblock
36290 #: ../src/guestfs.pod:894
36291 msgid ""
36292 "In the future we would hope to change the libguestfs implementation so that "
36293 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36294 "swap.  However this is I<not> done at the moment, because of the complexity "
36295 "of such an implementation."
36296 msgstr ""
36297
36298 #. type: textblock
36299 #: ../src/guestfs.pod:899
36300 msgid ""
36301 "Therefore you should be aware that any key parameter you pass to libguestfs "
36302 "might end up being written out to the swap partition.  If this is a concern, "
36303 "scrub the swap partition or don't use libguestfs on encrypted devices."
36304 msgstr ""
36305
36306 #. type: =head2
36307 #: ../src/guestfs.pod:904
36308 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36309 msgstr ""
36310
36311 #. type: textblock
36312 #: ../src/guestfs.pod:906
36313 msgid ""
36314 "All high-level libguestfs actions are synchronous.  If you want to use "
36315 "libguestfs asynchronously then you must create a thread."
36316 msgstr ""
36317
36318 #. type: textblock
36319 #: ../src/guestfs.pod:909
36320 msgid ""
36321 "Only use the handle from a single thread.  Either use the handle exclusively "
36322 "from one thread, or provide your own mutex so that two threads cannot issue "
36323 "calls on the same handle at the same time."
36324 msgstr ""
36325
36326 #. type: textblock
36327 #: ../src/guestfs.pod:913
36328 msgid ""
36329 "See the graphical program guestfs-browser for one possible architecture for "
36330 "multithreaded programs using libvirt and libguestfs."
36331 msgstr ""
36332
36333 #. type: =head2
36334 #: ../src/guestfs.pod:916
36335 msgid "PATH"
36336 msgstr "ШЛЯХ"
36337
36338 #. type: textblock
36339 #: ../src/guestfs.pod:918
36340 msgid ""
36341 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36342 "internal path."
36343 msgstr ""
36344
36345 #. type: textblock
36346 #: ../src/guestfs.pod:921
36347 msgid ""
36348 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
36349 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36350 msgstr ""
36351
36352 #. type: textblock
36353 #: ../src/guestfs.pod:924
36354 msgid ""
36355 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36356 "to change the directories that libguestfs will search in.  The value is a "
36357 "colon-separated list of paths.  The current directory is I<not> searched "
36358 "unless the path contains an empty element or C<.>.  For example "
36359 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36360 "then C</usr/lib/guestfs>."
36361 msgstr ""
36362
36363 #. type: =head2
36364 #: ../src/guestfs.pod:931
36365 msgid "QEMU WRAPPERS"
36366 msgstr ""
36367
36368 #. type: textblock
36369 #: ../src/guestfs.pod:933
36370 msgid ""
36371 "If you want to compile your own qemu, run qemu from a non-standard location, "
36372 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36373 "around qemu."
36374 msgstr ""
36375
36376 #. type: textblock
36377 #: ../src/guestfs.pod:937
36378 msgid ""
36379 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36380 "last command in the shell script (so that qemu replaces the shell and "
36381 "becomes the direct child of the libguestfs-using program).  If you don't do "
36382 "this, then the qemu process won't be cleaned up correctly."
36383 msgstr ""
36384
36385 #. type: textblock
36386 #: ../src/guestfs.pod:942
36387 msgid ""
36388 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36389 "source:"
36390 msgstr ""
36391
36392 #. type: verbatim
36393 #: ../src/guestfs.pod:945
36394 #, no-wrap
36395 msgid ""
36396 " #!/bin/sh -\n"
36397 " qemudir=/home/rjones/d/qemu\n"
36398 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36399 "\n"
36400 msgstr ""
36401 " #!/bin/sh -\n"
36402 " qemudir=/home/rjones/d/qemu\n"
36403 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36404 "\n"
36405
36406 #. type: textblock
36407 #: ../src/guestfs.pod:949
36408 msgid ""
36409 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36410 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36411 "example:"
36412 msgstr ""
36413
36414 #. type: verbatim
36415 #: ../src/guestfs.pod:953
36416 #, no-wrap
36417 msgid ""
36418 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36419 "\n"
36420 msgstr ""
36421 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36422 "\n"
36423
36424 #. type: textblock
36425 #: ../src/guestfs.pod:955
36426 msgid ""
36427 "Note that libguestfs also calls qemu with the -help and -version options in "
36428 "order to determine features."
36429 msgstr ""
36430
36431 #. type: textblock
36432 #: ../src/guestfs.pod:958
36433 msgid ""
36434 "Wrappers can also be used to edit the options passed to qemu.  In the "
36435 "following example, the C<-machine ...> option (C<-machine> and the following "
36436 "argument) are removed from the command line and replaced with C<-machine pc,"
36437 "accel=tcg>.  The while loop iterates over the options until it finds the "
36438 "right one to remove, putting the remaining options into the C<args> array."
36439 msgstr ""
36440
36441 #. type: verbatim
36442 #: ../src/guestfs.pod:967
36443 #, no-wrap
36444 msgid ""
36445 " i=0\n"
36446 " while [ $# -gt 0 ]; do\n"
36447 "     case \"$1\" in\n"
36448 "     -machine)\n"
36449 "         shift 2;;\n"
36450 "     *)\n"
36451 "         args[i]=\"$1\"\n"
36452 "         (( i++ ))\n"
36453 "         shift ;;\n"
36454 "     esac\n"
36455 " done\n"
36456 " \n"
36457 msgstr ""
36458
36459 #. type: verbatim
36460 #: ../src/guestfs.pod:979
36461 #, no-wrap
36462 msgid ""
36463 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36464 "\n"
36465 msgstr ""
36466
36467 #. type: =head2
36468 #: ../src/guestfs.pod:981
36469 msgid "ATTACHING TO RUNNING DAEMONS"
36470 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
36471
36472 #. type: textblock
36473 #: ../src/guestfs.pod:983
36474 msgid ""
36475 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36476 "babies.  Use with caution."
36477 msgstr ""
36478
36479 #. type: textblock
36480 #: ../src/guestfs.pod:986
36481 msgid ""
36482 "I<Note (2):> This section explains how to attach to a running daemon from a "
36483 "low level perspective.  For most users, simply using virt tools such as "
36484 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36485 msgstr ""
36486
36487 #. type: =head3
36488 #: ../src/guestfs.pod:990
36489 msgid "Using guestfs_set_attach_method"
36490 msgstr "За допомогою guestfs_set_attach_method"
36491
36492 #. type: textblock
36493 #: ../src/guestfs.pod:992
36494 msgid ""
36495 "By calling L</guestfs_set_attach_method> you can change how the library "
36496 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
36497 "ARCHITECTURE> for some background)."
36498 msgstr ""
36499
36500 #. type: textblock
36501 #: ../src/guestfs.pod:996
36502 msgid ""
36503 "The normal attach method is C<appliance>, where a small appliance is created "
36504 "containing the daemon, and then the library connects to this."
36505 msgstr ""
36506
36507 #. type: textblock
36508 #: ../src/guestfs.pod:999
36509 msgid ""
36510 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36511 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36512 "daemon over the Unix domain socket."
36513 msgstr ""
36514
36515 #. type: textblock
36516 #: ../src/guestfs.pod:1003
36517 msgid ""
36518 "The normal use for this is to connect to a running virtual machine that "
36519 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36520 "files inside the live virtual machine."
36521 msgstr ""
36522
36523 #. type: =head3
36524 #: ../src/guestfs.pod:1007
36525 msgid "Using guestfs_add_domain with live flag"
36526 msgstr "За допомогою guestfs_add_domain з прапорцем live"
36527
36528 #. type: textblock
36529 #: ../src/guestfs.pod:1009
36530 msgid ""
36531 "L</guestfs_add_domain> provides some help for getting the correct attach "
36532 "method.  If you pass the C<live> option to this function, then (if the "
36533 "virtual machine is running) it will examine the libvirt XML looking for a "
36534 "virtio-serial channel to connect to:"
36535 msgstr ""
36536
36537 #. type: verbatim
36538 #: ../src/guestfs.pod:1015
36539 #, no-wrap
36540 msgid ""
36541 " <domain>\n"
36542 "   ...\n"
36543 "   <devices>\n"
36544 "     ...\n"
36545 "     <channel type='unix'>\n"
36546 "       <source mode='bind' path='/path/to/socket'/>\n"
36547 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36548 "     </channel>\n"
36549 "     ...\n"
36550 "   </devices>\n"
36551 " </domain>\n"
36552 "\n"
36553 msgstr ""
36554 " <domain>\n"
36555 "   ...\n"
36556 "   <devices>\n"
36557 "     ...\n"
36558 "     <channel type='unix'>\n"
36559 "       <source mode='bind' path='/path/to/socket'/>\n"
36560 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36561 "     </channel>\n"
36562 "     ...\n"
36563 "   </devices>\n"
36564 " </domain>\n"
36565 "\n"
36566
36567 #. type: textblock
36568 #: ../src/guestfs.pod:1027
36569 msgid ""
36570 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36571 "method to C<unix:/path/to/socket>."
36572 msgstr ""
36573
36574 #. type: textblock
36575 #: ../src/guestfs.pod:1030
36576 msgid ""
36577 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36578 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36579 "to attach to and modify live virtual machines."
36580 msgstr ""
36581
36582 #. type: textblock
36583 #: ../src/guestfs.pod:1034
36584 msgid ""
36585 "The virtual machine needs to have been set up beforehand so that it has the "
36586 "virtio-serial channel and so that guestfsd is running inside it."
36587 msgstr ""
36588
36589 #. type: =head2
36590 #: ../src/guestfs.pod:1038
36591 msgid "ABI GUARANTEE"
36592 msgstr "ГАРАНТІЯ ЩОДО ABI"
36593
36594 #. type: textblock
36595 #: ../src/guestfs.pod:1040
36596 msgid ""
36597 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36598 "actions as outlined in this section.  Although we will deprecate some "
36599 "actions, for example if they get replaced by newer calls, we will keep the "
36600 "old actions forever.  This allows you the developer to program in confidence "
36601 "against the libguestfs API."
36602 msgstr ""
36603
36604 #. type: =head2
36605 #: ../src/guestfs.pod:1046
36606 msgid "BLOCK DEVICE NAMING"
36607 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
36608
36609 #. type: textblock
36610 #: ../src/guestfs.pod:1048
36611 msgid ""
36612 "In the kernel there is now quite a profusion of schemata for naming block "
36613 "devices (in this context, by I<block device> I mean a physical or virtual "
36614 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
36615 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
36616 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
36617 "for the old IDE driver (particularly for SATA devices) those devices also "
36618 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
36619 "paravirtualized drivers.  This has created several different naming systems, "
36620 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
36621 msgstr ""
36622
36623 #. type: textblock
36624 #: ../src/guestfs.pod:1060
36625 msgid ""
36626 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36627 "Linux kernel to access block devices.  We can run a variety of appliances "
36628 "based on a variety of Linux kernels."
36629 msgstr ""
36630
36631 #. type: textblock
36632 #: ../src/guestfs.pod:1064
36633 msgid ""
36634 "This causes a problem for libguestfs because many API calls use device or "
36635 "partition names.  Working scripts and the recipe (example) scripts that we "
36636 "make available over the internet could fail if the naming scheme changes."
36637 msgstr ""
36638
36639 #. type: textblock
36640 #: ../src/guestfs.pod:1069
36641 msgid ""
36642 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36643 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36644 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36645 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36646 msgstr ""
36647
36648 #. type: textblock
36649 #: ../src/guestfs.pod:1075
36650 msgid ""
36651 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36652 "L</guestfs_list_partitions> and similar calls return the true names of the "
36653 "devices and partitions as known to the appliance."
36654 msgstr ""
36655
36656 #. type: =head3
36657 #: ../src/guestfs.pod:1080
36658 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36659 msgstr ""
36660
36661 #. type: textblock
36662 #: ../src/guestfs.pod:1082
36663 msgid ""
36664 "Usually this translation is transparent.  However in some (very rare)  cases "
36665 "you may need to know the exact algorithm.  Such cases include where you use "
36666 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
36667 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
36668 msgstr ""
36669
36670 #. type: textblock
36671 #: ../src/guestfs.pod:1088
36672 msgid ""
36673 "The algorithm is applied only to I<parameters> which are known to be either "
36674 "device or partition names.  Return values from functions such as L</"
36675 "guestfs_list_devices> are never changed."
36676 msgstr ""
36677
36678 #. type: textblock
36679 #: ../src/guestfs.pod:1096
36680 msgid "Is the string a parameter which is a device or partition name?"
36681 msgstr ""
36682
36683 #. type: textblock
36684 #: ../src/guestfs.pod:1100
36685 msgid "Does the string begin with C</dev/sd>?"
36686 msgstr "Чи починається рядок з C</dev/sd>?"
36687
36688 #. type: textblock
36689 #: ../src/guestfs.pod:1104
36690 msgid ""
36691 "Does the named device exist? If so, we use that device.  However if I<not> "
36692 "then we continue with this algorithm."
36693 msgstr ""
36694
36695 #. type: textblock
36696 #: ../src/guestfs.pod:1109
36697 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36698 msgstr ""
36699
36700 #. type: textblock
36701 #: ../src/guestfs.pod:1111
36702 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36703 msgstr ""
36704
36705 #. type: textblock
36706 #: ../src/guestfs.pod:1113
36707 msgid "If that named device exists, use it.  If not, continue."
36708 msgstr ""
36709
36710 #. type: textblock
36711 #: ../src/guestfs.pod:1117
36712 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36713 msgstr ""
36714
36715 #. type: textblock
36716 #: ../src/guestfs.pod:1119
36717 msgid "If that named device exists, use it.  If not, return an error."
36718 msgstr ""
36719
36720 #. type: =head3
36721 #: ../src/guestfs.pod:1123
36722 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36723 msgstr ""
36724
36725 #. type: textblock
36726 #: ../src/guestfs.pod:1125
36727 msgid ""
36728 "Although the standard naming scheme and automatic translation is useful for "
36729 "simple programs and guestfish scripts, for larger programs it is best not to "
36730 "rely on this mechanism."
36731 msgstr ""
36732
36733 #. type: textblock
36734 #: ../src/guestfs.pod:1129
36735 msgid ""
36736 "Where possible for maximum future portability programs using libguestfs "
36737 "should use these future-proof techniques:"
36738 msgstr ""
36739
36740 #. type: textblock
36741 #: ../src/guestfs.pod:1136
36742 msgid ""
36743 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36744 "device names, and then use those names directly."
36745 msgstr ""
36746
36747 #. type: textblock
36748 #: ../src/guestfs.pod:1139
36749 msgid ""
36750 "Since those device names exist by definition, they will never be translated."
36751 msgstr ""
36752
36753 #. type: textblock
36754 #: ../src/guestfs.pod:1144
36755 msgid ""
36756 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36757 "filesystem labels."
36758 msgstr ""
36759
36760 #. type: textblock
36761 #: ../src/guestfs.pod:1151
36762 msgid ""
36763 "This section discusses security implications of using libguestfs, "
36764 "particularly with untrusted or malicious guests or disk images."
36765 msgstr ""
36766
36767 #. type: =head2
36768 #: ../src/guestfs.pod:1154
36769 msgid "GENERAL SECURITY CONSIDERATIONS"
36770 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
36771
36772 #. type: textblock
36773 #: ../src/guestfs.pod:1156
36774 msgid ""
36775 "Be careful with any files or data that you download from a guest (by "
36776 "\"download\" we mean not just the L</guestfs_download> command but any "
36777 "command that reads files, filenames, directories or anything else from a "
36778 "disk image).  An attacker could manipulate the data to fool your program "
36779 "into doing the wrong thing.  Consider cases such as:"
36780 msgstr ""
36781
36782 #. type: textblock
36783 #: ../src/guestfs.pod:1166
36784 msgid "the data (file etc) not being present"
36785 msgstr ""
36786
36787 #. type: textblock
36788 #: ../src/guestfs.pod:1170
36789 msgid "being present but empty"
36790 msgstr ""
36791
36792 #. type: textblock
36793 #: ../src/guestfs.pod:1174
36794 msgid "being much larger than normal"
36795 msgstr ""
36796
36797 #. type: textblock
36798 #: ../src/guestfs.pod:1178
36799 msgid "containing arbitrary 8 bit data"
36800 msgstr ""
36801
36802 #. type: textblock
36803 #: ../src/guestfs.pod:1182
36804 msgid "being in an unexpected character encoding"
36805 msgstr ""
36806
36807 #. type: textblock
36808 #: ../src/guestfs.pod:1186
36809 msgid "containing homoglyphs."
36810 msgstr ""
36811
36812 #. type: =head2
36813 #: ../src/guestfs.pod:1190
36814 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36815 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
36816
36817 #. type: textblock
36818 #: ../src/guestfs.pod:1192
36819 msgid ""
36820 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36821 "(VFS) module can sometimes be escalated into exploits by deliberately "
36822 "creating a malicious, malformed filesystem.  These exploits are very severe "
36823 "for two reasons.  Firstly there are very many filesystem drivers in the "
36824 "kernel, and many of them are infrequently used and not much developer "
36825 "attention has been paid to the code.  Linux userspace helps potential "
36826 "crackers by detecting the filesystem type and automatically choosing the "
36827 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36828 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36829 "exploit (worse in some ways), giving immediate and total access to the "
36830 "system right down to the hardware level."
36831 msgstr ""
36832
36833 #. type: textblock
36834 #: ../src/guestfs.pod:1205
36835 msgid ""
36836 "That explains why you should never mount a filesystem from an untrusted "
36837 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
36838 "inside a qemu virtual machine, usually running as a non-root user.  The "
36839 "attacker would need to write a filesystem which first exploited the kernel, "
36840 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36841 "the libguestfs protocol, and finally to be as serious as the host kernel "
36842 "exploit it would need to escalate its privileges to root.  This multi-step "
36843 "escalation, performed by a static piece of data, is thought to be extremely "
36844 "hard to do, although we never say 'never' about security issues."
36845 msgstr ""
36846
36847 #. type: textblock
36848 #: ../src/guestfs.pod:1216
36849 msgid ""
36850 "In any case callers can reduce the attack surface by forcing the filesystem "
36851 "type when mounting (use L</guestfs_mount_vfs>)."
36852 msgstr ""
36853
36854 #. type: =head2
36855 #: ../src/guestfs.pod:1219
36856 msgid "PROTOCOL SECURITY"
36857 msgstr "ЗАХИСТ ПРОТОКОЛУ"
36858
36859 #. type: textblock
36860 #: ../src/guestfs.pod:1221
36861 msgid ""
36862 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
36863 "defined upper message size.  However a program that uses libguestfs must "
36864 "also take care - for example you can write a program that downloads a binary "
36865 "from a disk image and executes it locally, and no amount of protocol "
36866 "security will save you from the consequences."
36867 msgstr ""
36868
36869 #. type: =head2
36870 #: ../src/guestfs.pod:1227
36871 msgid "INSPECTION SECURITY"
36872 msgstr ""
36873
36874 #. type: textblock
36875 #: ../src/guestfs.pod:1229
36876 msgid ""
36877 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36878 "directly from the guest, and these could contain any 8 bit data.  Callers "
36879 "should be careful to escape these before printing them to a structured file "
36880 "(for example, use HTML escaping if creating a web page)."
36881 msgstr ""
36882
36883 #. type: textblock
36884 #: ../src/guestfs.pod:1235
36885 msgid ""
36886 "Guest configuration may be altered in unusual ways by the administrator of "
36887 "the virtual machine, and may not reflect reality (particularly for untrusted "
36888 "or actively malicious guests).  For example we parse the hostname from "
36889 "configuration files like C</etc/sysconfig/network> that we find in the "
36890 "guest, but the guest administrator can easily manipulate these files to "
36891 "provide the wrong hostname."
36892 msgstr ""
36893
36894 #. type: textblock
36895 #: ../src/guestfs.pod:1243
36896 msgid ""
36897 "The inspection API parses guest configuration using two external libraries: "
36898 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
36899 "designed to be robust in the face of malicious data, although denial of "
36900 "service attacks are still possible, for example with oversized configuration "
36901 "files."
36902 msgstr ""
36903
36904 #. type: =head2
36905 #: ../src/guestfs.pod:1249
36906 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
36907 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
36908
36909 #. type: textblock
36910 #: ../src/guestfs.pod:1251
36911 msgid ""
36912 "Be very cautious about running commands from the guest.  By running a "
36913 "command in the guest, you are giving CPU time to a binary that you do not "
36914 "control, under the same user account as the library, albeit wrapped in qemu "
36915 "virtualization.  More information and alternatives can be found in the "
36916 "section L</RUNNING COMMANDS>."
36917 msgstr ""
36918
36919 #. type: =head2
36920 #: ../src/guestfs.pod:1257
36921 msgid "CVE-2010-3851"
36922 msgstr "CVE-2010-3851"
36923
36924 #. type: textblock
36925 #: ../src/guestfs.pod:1259
36926 msgid "https://bugzilla.redhat.com/642934"
36927 msgstr "https://bugzilla.redhat.com/642934"
36928
36929 #. type: textblock
36930 #: ../src/guestfs.pod:1261
36931 msgid ""
36932 "This security bug concerns the automatic disk format detection that qemu "
36933 "does on disk images."
36934 msgstr ""
36935
36936 #. type: textblock
36937 #: ../src/guestfs.pod:1264
36938 msgid ""
36939 "A raw disk image is just the raw bytes, there is no header.  Other disk "
36940 "images like qcow2 contain a special header.  Qemu deals with this by looking "
36941 "for one of the known headers, and if none is found then assuming the disk "
36942 "image must be raw."
36943 msgstr ""
36944
36945 #. type: textblock
36946 #: ../src/guestfs.pod:1269
36947 msgid ""
36948 "This allows a guest which has been given a raw disk image to write some "
36949 "other header.  At next boot (or when the disk image is accessed by "
36950 "libguestfs) qemu would do autodetection and think the disk image format was, "
36951 "say, qcow2 based on the header written by the guest."
36952 msgstr ""
36953
36954 #. type: textblock
36955 #: ../src/guestfs.pod:1274
36956 msgid ""
36957 "This in itself would not be a problem, but qcow2 offers many features, one "
36958 "of which is to allow a disk image to refer to another image (called the "
36959 "\"backing disk\").  It does this by placing the path to the backing disk "
36960 "into the qcow2 header.  This path is not validated and could point to any "
36961 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
36962 "\"holes\" in the qcow2 disk image, which of course is completely under the "
36963 "control of the attacker."
36964 msgstr ""
36965
36966 #. type: textblock
36967 #: ../src/guestfs.pod:1282
36968 msgid ""
36969 "In libguestfs this is rather hard to exploit except under two circumstances:"
36970 msgstr ""
36971
36972 #. type: textblock
36973 #: ../src/guestfs.pod:1289
36974 msgid "You have enabled the network or have opened the disk in write mode."
36975 msgstr ""
36976
36977 #. type: textblock
36978 #: ../src/guestfs.pod:1293
36979 msgid ""
36980 "You are also running untrusted code from the guest (see L</RUNNING "
36981 "COMMANDS>)."
36982 msgstr ""
36983
36984 #. type: textblock
36985 #: ../src/guestfs.pod:1298
36986 msgid ""
36987 "The way to avoid this is to specify the expected disk format when adding "
36988 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
36989 "should always do this if the disk is raw format, and it's a good idea for "
36990 "other cases too."
36991 msgstr ""
36992
36993 #. type: textblock
36994 #: ../src/guestfs.pod:1303
36995 msgid ""
36996 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
36997 "format is fetched from libvirt and passed through."
36998 msgstr ""
36999
37000 #. type: textblock
37001 #: ../src/guestfs.pod:1306
37002 msgid ""
37003 "For libguestfs tools, use the I<--format> command line parameter as "
37004 "appropriate."
37005 msgstr ""
37006
37007 #. type: =head1
37008 #: ../src/guestfs.pod:1309
37009 msgid "CONNECTION MANAGEMENT"
37010 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
37011
37012 #. type: =head2
37013 #: ../src/guestfs.pod:1311
37014 msgid "guestfs_h *"
37015 msgstr "guestfs_h *"
37016
37017 #. type: textblock
37018 #: ../src/guestfs.pod:1313
37019 msgid ""
37020 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
37021 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
37022 "handle and release all resources used."
37023 msgstr ""
37024
37025 #. type: textblock
37026 #: ../src/guestfs.pod:1317
37027 msgid ""
37028 "For information on using multiple handles and threads, see the section L</"
37029 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37030 msgstr ""
37031
37032 #. type: =head2
37033 #: ../src/guestfs.pod:1320
37034 msgid "guestfs_create"
37035 msgstr "guestfs_create"
37036
37037 #. type: verbatim
37038 #: ../src/guestfs.pod:1322
37039 #, no-wrap
37040 msgid ""
37041 " guestfs_h *guestfs_create (void);\n"
37042 "\n"
37043 msgstr ""
37044 " guestfs_h *guestfs_create (void);\n"
37045 "\n"
37046
37047 #. type: textblock
37048 #: ../src/guestfs.pod:1324
37049 msgid "Create a connection handle."
37050 msgstr "Створити дескриптор з’єднання."
37051
37052 #. type: textblock
37053 #: ../src/guestfs.pod:1326
37054 msgid ""
37055 "On success this returns a non-NULL pointer to a handle.  On error it returns "
37056 "NULL."
37057 msgstr ""
37058
37059 #. type: textblock
37060 #: ../src/guestfs.pod:1329
37061 msgid ""
37062 "You have to \"configure\" the handle after creating it.  This includes "
37063 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37064 "handle at least once."
37065 msgstr ""
37066
37067 #. type: textblock
37068 #: ../src/guestfs.pod:1333
37069 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37070 msgstr ""
37071
37072 #. type: textblock
37073 #: ../src/guestfs.pod:1335
37074 msgid ""
37075 "You may also want to configure error handling for the handle.  See the L</"
37076 "ERROR HANDLING> section below."
37077 msgstr ""
37078
37079 #. type: =head2
37080 #: ../src/guestfs.pod:1338
37081 msgid "guestfs_close"
37082 msgstr "guestfs_close"
37083
37084 #. type: verbatim
37085 #: ../src/guestfs.pod:1340
37086 #, no-wrap
37087 msgid ""
37088 " void guestfs_close (guestfs_h *g);\n"
37089 "\n"
37090 msgstr ""
37091 " void guestfs_close (guestfs_h *g);\n"
37092 "\n"
37093
37094 #. type: textblock
37095 #: ../src/guestfs.pod:1342
37096 msgid "This closes the connection handle and frees up all resources used."
37097 msgstr ""
37098
37099 #. type: textblock
37100 #: ../src/guestfs.pod:1344
37101 msgid ""
37102 "If autosync was set on the handle and the handle was launched, then this "
37103 "implicitly calls various functions to unmount filesystems and sync the "
37104 "disk.  See L</guestfs_set_autosync> for more details."
37105 msgstr ""
37106
37107 #. type: textblock
37108 #: ../src/guestfs.pod:1348
37109 msgid "If a close callback was set on the handle, then it is called."
37110 msgstr ""
37111
37112 #. type: =head1
37113 #: ../src/guestfs.pod:1350
37114 msgid "ERROR HANDLING"
37115 msgstr "ОБРОБКА ПОМИЛОК"
37116
37117 #. type: textblock
37118 #: ../src/guestfs.pod:1352
37119 msgid ""
37120 "API functions can return errors.  For example, almost all functions that "
37121 "return C<int> will return C<-1> to indicate an error."
37122 msgstr ""
37123
37124 #. type: textblock
37125 #: ../src/guestfs.pod:1355
37126 msgid ""
37127 "Additional information is available for errors: an error message string and "
37128 "optionally an error number (errno) if the thing that failed was a system "
37129 "call."
37130 msgstr ""
37131
37132 #. type: textblock
37133 #: ../src/guestfs.pod:1359
37134 msgid ""
37135 "You can get at the additional information about the last error on the handle "
37136 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37137 "up an error handler with L</guestfs_set_error_handler>."
37138 msgstr ""
37139
37140 #. type: textblock
37141 #: ../src/guestfs.pod:1364
37142 msgid ""
37143 "When the handle is created, a default error handler is installed which "
37144 "prints the error message string to C<stderr>.  For small short-running "
37145 "command line programs it is sufficient to do:"
37146 msgstr ""
37147
37148 #. type: verbatim
37149 #: ../src/guestfs.pod:1368
37150 #, no-wrap
37151 msgid ""
37152 " if (guestfs_launch (g) == -1)\n"
37153 "   exit (EXIT_FAILURE);\n"
37154 "\n"
37155 msgstr ""
37156 " if (guestfs_launch (g) == -1)\n"
37157 "   exit (EXIT_FAILURE);\n"
37158 "\n"
37159
37160 #. type: textblock
37161 #: ../src/guestfs.pod:1371
37162 msgid ""
37163 "since the default error handler will ensure that an error message has been "
37164 "printed to C<stderr> before the program exits."
37165 msgstr ""
37166
37167 #. type: textblock
37168 #: ../src/guestfs.pod:1374
37169 msgid ""
37170 "For other programs the caller will almost certainly want to install an "
37171 "alternate error handler or do error handling in-line like this:"
37172 msgstr ""
37173
37174 #. type: verbatim
37175 #: ../src/guestfs.pod:1377
37176 #, no-wrap
37177 msgid ""
37178 " /* This disables the default behaviour of printing errors\n"
37179 "    on stderr. */\n"
37180 " guestfs_set_error_handler (g, NULL, NULL);\n"
37181 " \n"
37182 msgstr ""
37183
37184 #. type: verbatim
37185 #: ../src/guestfs.pod:1381
37186 #, no-wrap
37187 msgid ""
37188 " if (guestfs_launch (g) == -1) {\n"
37189 "   /* Examine the error message and print it etc. */\n"
37190 "   char *msg = guestfs_last_error (g);\n"
37191 "   int errnum = guestfs_last_errno (g);\n"
37192 "   fprintf (stderr, \"%s\", msg);\n"
37193 "   if (errnum != 0)\n"
37194 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
37195 "   fprintf (stderr, \"\\n\");\n"
37196 "   /* ... */\n"
37197 " }\n"
37198 "\n"
37199 msgstr ""
37200
37201 #. type: textblock
37202 #: ../src/guestfs.pod:1392
37203 msgid ""
37204 "Out of memory errors are handled differently.  The default action is to call "
37205 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
37206 "guestfs_set_out_of_memory_handler>."
37207 msgstr ""
37208
37209 #. type: textblock
37210 #: ../src/guestfs.pod:1396
37211 msgid ""
37212 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37213 "because there is no handle if this happens there is no way to get additional "
37214 "error information.  However L</guestfs_create> is supposed to be a "
37215 "lightweight operation which can only fail because of insufficient memory (it "
37216 "returns NULL in this case)."
37217 msgstr ""
37218
37219 #. type: =head2
37220 #: ../src/guestfs.pod:1402
37221 msgid "guestfs_last_error"
37222 msgstr "guestfs_last_error"
37223
37224 #. type: verbatim
37225 #: ../src/guestfs.pod:1404
37226 #, no-wrap
37227 msgid ""
37228 " const char *guestfs_last_error (guestfs_h *g);\n"
37229 "\n"
37230 msgstr ""
37231 " const char *guestfs_last_error (guestfs_h *g);\n"
37232 "\n"
37233
37234 #. type: textblock
37235 #: ../src/guestfs.pod:1406
37236 msgid ""
37237 "This returns the last error message that happened on C<g>.  If there has not "
37238 "been an error since the handle was created, then this returns C<NULL>."
37239 msgstr ""
37240
37241 #. type: textblock
37242 #: ../src/guestfs.pod:1410
37243 msgid ""
37244 "The lifetime of the returned string is until the next error occurs, or L</"
37245 "guestfs_close> is called."
37246 msgstr ""
37247
37248 #. type: =head2
37249 #: ../src/guestfs.pod:1413
37250 msgid "guestfs_last_errno"
37251 msgstr "guestfs_last_errno"
37252
37253 #. type: verbatim
37254 #: ../src/guestfs.pod:1415
37255 #, no-wrap
37256 msgid ""
37257 " int guestfs_last_errno (guestfs_h *g);\n"
37258 "\n"
37259 msgstr ""
37260 " int guestfs_last_errno (guestfs_h *g);\n"
37261 "\n"
37262
37263 #. type: textblock
37264 #: ../src/guestfs.pod:1417
37265 msgid "This returns the last error number (errno) that happened on C<g>."
37266 msgstr ""
37267
37268 #. type: textblock
37269 #: ../src/guestfs.pod:1419
37270 msgid "If successful, an errno integer not equal to zero is returned."
37271 msgstr ""
37272
37273 #. type: textblock
37274 #: ../src/guestfs.pod:1421
37275 msgid ""
37276 "If no error, this returns 0.  This call can return 0 in three situations:"
37277 msgstr ""
37278
37279 #. type: textblock
37280 #: ../src/guestfs.pod:1428
37281 msgid "There has not been any error on the handle."
37282 msgstr ""
37283
37284 #. type: textblock
37285 #: ../src/guestfs.pod:1432
37286 msgid ""
37287 "There has been an error but the errno was meaningless.  This corresponds to "
37288 "the case where the error did not come from a failed system call, but for "
37289 "some other reason."
37290 msgstr ""
37291
37292 #. type: textblock
37293 #: ../src/guestfs.pod:1438
37294 msgid ""
37295 "There was an error from a failed system call, but for some reason the errno "
37296 "was not captured and returned.  This usually indicates a bug in libguestfs."
37297 msgstr ""
37298
37299 #. type: textblock
37300 #: ../src/guestfs.pod:1444
37301 msgid ""
37302 "Libguestfs tries to convert the errno from inside the applicance into a "
37303 "corresponding errno for the caller (not entirely trivial: the appliance "
37304 "might be running a completely different operating system from the library "
37305 "and error numbers are not standardized across Un*xen).  If this could not be "
37306 "done, then the error is translated to C<EINVAL>.  In practice this should "
37307 "only happen in very rare circumstances."
37308 msgstr ""
37309
37310 #. type: =head2
37311 #: ../src/guestfs.pod:1452
37312 msgid "guestfs_set_error_handler"
37313 msgstr "guestfs_set_error_handler"
37314
37315 #. type: verbatim
37316 #: ../src/guestfs.pod:1454
37317 #, no-wrap
37318 msgid ""
37319 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37320 "                                           void *opaque,\n"
37321 "                                           const char *msg);\n"
37322 " void guestfs_set_error_handler (guestfs_h *g,\n"
37323 "                                 guestfs_error_handler_cb cb,\n"
37324 "                                 void *opaque);\n"
37325 "\n"
37326 msgstr ""
37327 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37328 "                                           void *opaque,\n"
37329 "                                           const char *msg);\n"
37330 " void guestfs_set_error_handler (guestfs_h *g,\n"
37331 "                                 guestfs_error_handler_cb cb,\n"
37332 "                                 void *opaque);\n"
37333 "\n"
37334
37335 #. type: textblock
37336 #: ../src/guestfs.pod:1461
37337 msgid ""
37338 "The callback C<cb> will be called if there is an error.  The parameters "
37339 "passed to the callback are an opaque data pointer and the error message "
37340 "string."
37341 msgstr ""
37342
37343 #. type: textblock
37344 #: ../src/guestfs.pod:1465
37345 msgid ""
37346 "C<errno> is not passed to the callback.  To get that the callback must call "
37347 "L</guestfs_last_errno>."
37348 msgstr ""
37349
37350 #. type: textblock
37351 #: ../src/guestfs.pod:1468
37352 msgid ""
37353 "Note that the message string C<msg> is freed as soon as the callback "
37354 "function returns, so if you want to stash it somewhere you must make your "
37355 "own copy."
37356 msgstr ""
37357
37358 #. type: textblock
37359 #: ../src/guestfs.pod:1472
37360 msgid "The default handler prints messages on C<stderr>."
37361 msgstr ""
37362
37363 #. type: textblock
37364 #: ../src/guestfs.pod:1474
37365 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37366 msgstr ""
37367
37368 #. type: =head2
37369 #: ../src/guestfs.pod:1476
37370 msgid "guestfs_get_error_handler"
37371 msgstr "guestfs_get_error_handler"
37372
37373 #. type: verbatim
37374 #: ../src/guestfs.pod:1478
37375 #, no-wrap
37376 msgid ""
37377 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37378 "                                                     void **opaque_rtn);\n"
37379 "\n"
37380 msgstr ""
37381 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37382 "                                                     void **opaque_rtn);\n"
37383 "\n"
37384
37385 #. type: textblock
37386 #: ../src/guestfs.pod:1481
37387 msgid "Returns the current error handler callback."
37388 msgstr ""
37389
37390 #. type: =head2
37391 #: ../src/guestfs.pod:1483
37392 msgid "guestfs_set_out_of_memory_handler"
37393 msgstr "guestfs_set_out_of_memory_handler"
37394
37395 #. type: verbatim
37396 #: ../src/guestfs.pod:1485
37397 #, no-wrap
37398 msgid ""
37399 " typedef void (*guestfs_abort_cb) (void);\n"
37400 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37401 "                                         guestfs_abort_cb);\n"
37402 "\n"
37403 msgstr ""
37404
37405 #. type: textblock
37406 #: ../src/guestfs.pod:1489
37407 msgid ""
37408 "The callback C<cb> will be called if there is an out of memory situation.  "
37409 "I<Note this callback must not return>."
37410 msgstr ""
37411
37412 #. type: textblock
37413 #: ../src/guestfs.pod:1492
37414 msgid "The default is to call L<abort(3)>."
37415 msgstr ""
37416
37417 #. type: textblock
37418 #: ../src/guestfs.pod:1494
37419 msgid ""
37420 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37421 msgstr ""
37422
37423 #. type: =head2
37424 #: ../src/guestfs.pod:1497
37425 msgid "guestfs_get_out_of_memory_handler"
37426 msgstr "guestfs_get_out_of_memory_handler"
37427
37428 #. type: verbatim
37429 #: ../src/guestfs.pod:1499
37430 #, no-wrap
37431 msgid ""
37432 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37433 "\n"
37434 msgstr ""
37435 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37436 "\n"
37437
37438 #. type: textblock
37439 #: ../src/guestfs.pod:1501
37440 msgid "This returns the current out of memory handler."
37441 msgstr ""
37442
37443 #. type: =head1
37444 #: ../src/guestfs.pod:1503
37445 msgid "API CALLS"
37446 msgstr "ВИКЛИКИ API"
37447
37448 #. type: =head1
37449 #: ../src/guestfs.pod:1507
37450 msgid "STRUCTURES"
37451 msgstr "СТРУКТУРИ"
37452
37453 #. type: textblock
37454 #: ../src/guestfs.pod:1509
37455 msgid "@STRUCTS@"
37456 msgstr "@STRUCTS@"
37457
37458 #. type: =head1
37459 #: ../src/guestfs.pod:1511
37460 msgid "AVAILABILITY"
37461 msgstr "ДОСТУПНІСТЬ"
37462
37463 #. type: =head2
37464 #: ../src/guestfs.pod:1513
37465 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37466 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
37467
37468 #. type: textblock
37469 #: ../src/guestfs.pod:1515
37470 msgid ""
37471 "Using L</guestfs_available> you can test availability of the following "
37472 "groups of functions.  This test queries the appliance to see if the "
37473 "appliance you are currently using supports the functionality."
37474 msgstr ""
37475
37476 #. type: textblock
37477 #: ../src/guestfs.pod:1520
37478 msgid "@AVAILABILITY@"
37479 msgstr "@AVAILABILITY@"
37480
37481 #. type: =head2
37482 #: ../src/guestfs.pod:1522
37483 msgid "GUESTFISH supported COMMAND"
37484 msgstr ""
37485
37486 #. type: textblock
37487 #: ../src/guestfs.pod:1524
37488 msgid ""
37489 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37490 "prints out the available groups and whether they are supported by this build "
37491 "of libguestfs.  Note however that you have to do C<run> first."
37492 msgstr ""
37493
37494 #. type: =head2
37495 #: ../src/guestfs.pod:1529
37496 msgid "SINGLE CALLS AT COMPILE TIME"
37497 msgstr ""
37498
37499 #. type: textblock
37500 #: ../src/guestfs.pod:1531
37501 msgid ""
37502 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37503 "function, such as:"
37504 msgstr ""
37505
37506 #. type: verbatim
37507 #: ../src/guestfs.pod:1534
37508 #, no-wrap
37509 msgid ""
37510 " #define LIBGUESTFS_HAVE_DD 1\n"
37511 "\n"
37512 msgstr ""
37513 " #define LIBGUESTFS_HAVE_DD 1\n"
37514 "\n"
37515
37516 #. type: textblock
37517 #: ../src/guestfs.pod:1536
37518 msgid "if L</guestfs_dd> is available."
37519 msgstr ""
37520
37521 #. type: textblock
37522 #: ../src/guestfs.pod:1538
37523 msgid ""
37524 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37525 "function is available at compile time, we recommended using build tools such "
37526 "as autoconf or cmake.  For example in autotools you could use:"
37527 msgstr ""
37528
37529 #. type: verbatim
37530 #: ../src/guestfs.pod:1543
37531 #, no-wrap
37532 msgid ""
37533 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37534 " AC_CHECK_FUNCS([guestfs_dd])\n"
37535 "\n"
37536 msgstr ""
37537 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37538 " AC_CHECK_FUNCS([guestfs_dd])\n"
37539 "\n"
37540
37541 #. type: textblock
37542 #: ../src/guestfs.pod:1546
37543 msgid ""
37544 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37545 "in your program."
37546 msgstr ""
37547
37548 #. type: =head2
37549 #: ../src/guestfs.pod:1549
37550 msgid "SINGLE CALLS AT RUN TIME"
37551 msgstr ""
37552
37553 #. type: textblock
37554 #: ../src/guestfs.pod:1551
37555 msgid ""
37556 "Testing at compile time doesn't guarantee that a function really exists in "
37557 "the library.  The reason is that you might be dynamically linked against a "
37558 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37559 "This situation unfortunately results in a segmentation fault, which is a "
37560 "shortcoming of the C dynamic linking system itself."
37561 msgstr ""
37562
37563 #. type: textblock
37564 #: ../src/guestfs.pod:1558
37565 msgid ""
37566 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37567 "in this example program (note that you still need the compile time check as "
37568 "well):"
37569 msgstr ""
37570
37571 #. type: verbatim
37572 #: ../src/guestfs.pod:1562
37573 #, no-wrap
37574 msgid ""
37575 " #include <stdio.h>\n"
37576 " #include <stdlib.h>\n"
37577 " #include <unistd.h>\n"
37578 " #include <dlfcn.h>\n"
37579 " #include <guestfs.h>\n"
37580 " \n"
37581 msgstr ""
37582 " #include <stdio.h>\n"
37583 " #include <stdlib.h>\n"
37584 " #include <unistd.h>\n"
37585 " #include <dlfcn.h>\n"
37586 " #include <guestfs.h>\n"
37587 " \n"
37588
37589 #. type: verbatim
37590 #: ../src/guestfs.pod:1568
37591 #, no-wrap
37592 msgid ""
37593 " main ()\n"
37594 " {\n"
37595 " #ifdef LIBGUESTFS_HAVE_DD\n"
37596 "   void *dl;\n"
37597 "   int has_function;\n"
37598 " \n"
37599 msgstr ""
37600 " main ()\n"
37601 " {\n"
37602 " #ifdef LIBGUESTFS_HAVE_DD\n"
37603 "   void *dl;\n"
37604 "   int has_function;\n"
37605 " \n"
37606
37607 #. type: verbatim
37608 #: ../src/guestfs.pod:1574
37609 #, no-wrap
37610 msgid ""
37611 "   /* Test if the function guestfs_dd is really available. */\n"
37612 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37613 "   if (!dl) {\n"
37614 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37615 "     exit (EXIT_FAILURE);\n"
37616 "   }\n"
37617 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37618 "   dlclose (dl);\n"
37619 " \n"
37620 msgstr ""
37621
37622 #. type: verbatim
37623 #: ../src/guestfs.pod:1583
37624 #, no-wrap
37625 msgid ""
37626 "   if (!has_function)\n"
37627 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37628 "   else {\n"
37629 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37630 "     /* Now it's safe to call\n"
37631 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37632 "     */\n"
37633 "   }\n"
37634 " #else\n"
37635 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37636 " #endif\n"
37637 "  }\n"
37638 "\n"
37639 msgstr ""
37640
37641 #. type: textblock
37642 #: ../src/guestfs.pod:1596
37643 msgid ""
37644 "You may think the above is an awful lot of hassle, and it is.  There are "
37645 "other ways outside of the C linking system to ensure that this kind of "
37646 "incompatibility never arises, such as using package versioning:"
37647 msgstr ""
37648
37649 #. type: verbatim
37650 #: ../src/guestfs.pod:1601
37651 #, no-wrap
37652 msgid ""
37653 " Requires: libguestfs >= 1.0.80\n"
37654 "\n"
37655 msgstr ""
37656
37657 #. type: =head1
37658 #: ../src/guestfs.pod:1603
37659 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37660 msgstr ""
37661
37662 #. type: textblock
37663 #: ../src/guestfs.pod:1605
37664 msgid ""
37665 "A recent feature of the API is the introduction of calls which take optional "
37666 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37667 "takes variable arguments (ie. C<...>), as in this example:"
37668 msgstr ""
37669
37670 #. type: verbatim
37671 #: ../src/guestfs.pod:1610
37672 #, no-wrap
37673 msgid ""
37674 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37675 "\n"
37676 msgstr ""
37677 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37678 "\n"
37679
37680 #. type: textblock
37681 #: ../src/guestfs.pod:1612
37682 msgid ""
37683 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37684 "call with no optional arguments specified:"
37685 msgstr ""
37686
37687 #. type: verbatim
37688 #: ../src/guestfs.pod:1615
37689 #, no-wrap
37690 msgid ""
37691 " guestfs_add_drive_opts (g, filename, -1);\n"
37692 "\n"
37693 msgstr ""
37694 " guestfs_add_drive_opts (g, filename, -1);\n"
37695 "\n"
37696
37697 #. type: textblock
37698 #: ../src/guestfs.pod:1617
37699 msgid "With a single optional argument:"
37700 msgstr ""
37701
37702 #. type: verbatim
37703 #: ../src/guestfs.pod:1619
37704 #, no-wrap
37705 msgid ""
37706 " guestfs_add_drive_opts (g, filename,\n"
37707 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37708 "                         -1);\n"
37709 "\n"
37710 msgstr ""
37711 " guestfs_add_drive_opts (g, filename,\n"
37712 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37713 "                         -1);\n"
37714 "\n"
37715
37716 #. type: textblock
37717 #: ../src/guestfs.pod:1623
37718 msgid "With two:"
37719 msgstr ""
37720
37721 #. type: verbatim
37722 #: ../src/guestfs.pod:1625
37723 #, no-wrap
37724 msgid ""
37725 " guestfs_add_drive_opts (g, filename,\n"
37726 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37727 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37728 "                         -1);\n"
37729 "\n"
37730 msgstr ""
37731 " guestfs_add_drive_opts (g, filename,\n"
37732 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37733 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37734 "                         -1);\n"
37735 "\n"
37736
37737 #. type: textblock
37738 #: ../src/guestfs.pod:1630
37739 msgid ""
37740 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37741 "happen!"
37742 msgstr ""
37743
37744 #. type: =head2
37745 #: ../src/guestfs.pod:1633
37746 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37747 msgstr ""
37748
37749 #. type: textblock
37750 #: ../src/guestfs.pod:1635
37751 msgid ""
37752 "The second variant has the same name with the suffix C<_va>, which works the "
37753 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37754 "example function, this is declared:"
37755 msgstr ""
37756
37757 #. type: verbatim
37758 #: ../src/guestfs.pod:1639
37759 #, no-wrap
37760 msgid ""
37761 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37762 "                                va_list args);\n"
37763 "\n"
37764 msgstr ""
37765 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37766 "                                va_list args);\n"
37767 "\n"
37768
37769 #. type: =head2
37770 #: ../src/guestfs.pod:1642
37771 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37772 msgstr ""
37773
37774 #. type: textblock
37775 #: ../src/guestfs.pod:1644
37776 msgid ""
37777 "The third variant is useful where you need to construct these calls.  You "
37778 "pass in a structure where you fill in the optional fields.  The structure "
37779 "has a bitmask as the first element which you must set to indicate which "
37780 "fields you have filled in.  For our example function the structure and call "
37781 "are declared:"
37782 msgstr ""
37783
37784 #. type: verbatim
37785 #: ../src/guestfs.pod:1650
37786 #, no-wrap
37787 msgid ""
37788 " struct guestfs_add_drive_opts_argv {\n"
37789 "   uint64_t bitmask;\n"
37790 "   int readonly;\n"
37791 "   const char *format;\n"
37792 "   /* ... */\n"
37793 " };\n"
37794 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37795 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37796 "\n"
37797 msgstr ""
37798 " struct guestfs_add_drive_opts_argv {\n"
37799 "   uint64_t bitmask;\n"
37800 "   int readonly;\n"
37801 "   const char *format;\n"
37802 "   /* ... */\n"
37803 " };\n"
37804 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37805 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37806 "\n"
37807
37808 #. type: textblock
37809 #: ../src/guestfs.pod:1659
37810 msgid "You could call it like this:"
37811 msgstr ""
37812
37813 #. type: verbatim
37814 #: ../src/guestfs.pod:1661
37815 #, no-wrap
37816 msgid ""
37817 " struct guestfs_add_drive_opts_argv optargs = {\n"
37818 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37819 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37820 "   .readonly = 1,\n"
37821 "   .format = \"qcow2\"\n"
37822 " };\n"
37823 " \n"
37824 msgstr ""
37825 " struct guestfs_add_drive_opts_argv optargs = {\n"
37826 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37827 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37828 "   .readonly = 1,\n"
37829 "   .format = \"qcow2\"\n"
37830 " };\n"
37831 " \n"
37832
37833 #. type: verbatim
37834 #: ../src/guestfs.pod:1668
37835 #, no-wrap
37836 msgid ""
37837 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37838 "\n"
37839 msgstr ""
37840 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37841 "\n"
37842
37843 #. type: textblock
37844 #: ../src/guestfs.pod:1676
37845 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37846 msgstr ""
37847
37848 #. type: textblock
37849 #: ../src/guestfs.pod:1681
37850 msgid "You do not need to fill in all fields of the structure."
37851 msgstr ""
37852
37853 #. type: textblock
37854 #: ../src/guestfs.pod:1685
37855 msgid ""
37856 "There must be a one-to-one correspondence between fields of the structure "
37857 "that are filled in, and bits set in the bitmask."
37858 msgstr ""
37859
37860 #. type: =head2
37861 #: ../src/guestfs.pod:1690
37862 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37863 msgstr ""
37864
37865 #. type: textblock
37866 #: ../src/guestfs.pod:1692
37867 msgid ""
37868 "In other languages, optional arguments are expressed in the way that is "
37869 "natural for that language.  We refer you to the language-specific "
37870 "documentation for more details on that."
37871 msgstr ""
37872
37873 #. type: textblock
37874 #: ../src/guestfs.pod:1696
37875 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37876 msgstr ""
37877
37878 #. type: =head2
37879 #: ../src/guestfs.pod:1698
37880 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37881 msgstr ""
37882
37883 #. type: textblock
37884 #: ../src/guestfs.pod:1700
37885 msgid ""
37886 "B<Note:> This section documents the generic event mechanism introduced in "
37887 "libguestfs 1.10, which you should use in new code if possible.  The old "
37888 "functions C<guestfs_set_log_message_callback>, "
37889 "C<guestfs_set_subprocess_quit_callback>, "
37890 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37891 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37892 "page.  Because of the ABI guarantee, the old functions continue to work."
37893 msgstr ""
37894
37895 #. type: textblock
37896 #: ../src/guestfs.pod:1709
37897 msgid ""
37898 "Handles generate events when certain things happen, such as log messages "
37899 "being generated, progress messages during long-running operations, or the "
37900 "handle being closed.  The API calls described below let you register a "
37901 "callback to be called when events happen.  You can register multiple "
37902 "callbacks (for the same, different or overlapping sets of events), and "
37903 "individually remove callbacks.  If callbacks are not removed, then they "
37904 "remain in force until the handle is closed."
37905 msgstr ""
37906
37907 #. type: textblock
37908 #: ../src/guestfs.pod:1717
37909 msgid ""
37910 "In the current implementation, events are only generated synchronously: that "
37911 "means that events (and hence callbacks) can only happen while you are in the "
37912 "middle of making another libguestfs call.  The callback is called in the "
37913 "same thread."
37914 msgstr ""
37915
37916 #. type: textblock
37917 #: ../src/guestfs.pod:1722
37918 msgid ""
37919 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37920 "unsigned integers, or a message buffer.  Payloads are discussed later on."
37921 msgstr ""
37922
37923 #. type: =head3
37924 #: ../src/guestfs.pod:1726
37925 msgid "CLASSES OF EVENTS"
37926 msgstr ""
37927
37928 #. type: =item
37929 #: ../src/guestfs.pod:1730
37930 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
37931 msgstr ""
37932
37933 #. type: textblock
37934 #: ../src/guestfs.pod:1733
37935 msgid ""
37936 "The callback function will be called while the handle is being closed "
37937 "(synchronously from L</guestfs_close>)."
37938 msgstr ""
37939
37940 #. type: textblock
37941 #: ../src/guestfs.pod:1736
37942 msgid ""
37943 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
37944 "handles that are open when the program exits.  This means that this callback "
37945 "might be called indirectly from L<exit(3)>, which can cause unexpected "
37946 "problems in higher-level languages (eg. if your HLL interpreter has already "
37947 "been cleaned up by the time this is called, and if your callback then jumps "
37948 "into some HLL function)."
37949 msgstr ""
37950
37951 #. type: textblock
37952 #: ../src/guestfs.pod:1743
37953 msgid ""
37954 "If no callback is registered: the handle is closed without any callback "
37955 "being invoked."
37956 msgstr ""
37957
37958 #. type: =item
37959 #: ../src/guestfs.pod:1746
37960 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
37961 msgstr ""
37962
37963 #. type: textblock
37964 #: ../src/guestfs.pod:1749
37965 msgid ""
37966 "The callback function will be called when the child process quits, either "
37967 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
37968 "corresponds to a transition from any state to the CONFIG state)."
37969 msgstr ""
37970
37971 #. type: textblock
37972 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
37973 msgid "If no callback is registered: the event is ignored."
37974 msgstr ""
37975
37976 #. type: =item
37977 #: ../src/guestfs.pod:1755
37978 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
37979 msgstr ""
37980
37981 #. type: textblock
37982 #: ../src/guestfs.pod:1758
37983 msgid ""
37984 "The callback function will be called when the child process becomes ready "
37985 "first time after it has been launched.  (This corresponds to a transition "
37986 "from LAUNCHING to the READY state)."
37987 msgstr ""
37988
37989 #. type: =item
37990 #: ../src/guestfs.pod:1764
37991 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
37992 msgstr ""
37993
37994 #. type: textblock
37995 #: ../src/guestfs.pod:1767
37996 msgid ""
37997 "Some long-running operations can generate progress messages.  If this "
37998 "callback is registered, then it will be called each time a progress message "
37999 "is generated (usually two seconds after the operation started, and three "
38000 "times per second thereafter until it completes, although the frequency may "
38001 "change in future versions)."
38002 msgstr ""
38003
38004 #. type: textblock
38005 #: ../src/guestfs.pod:1773
38006 msgid ""
38007 "The callback receives in the payload four unsigned 64 bit numbers which are "
38008 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38009 msgstr ""
38010
38011 #. type: textblock
38012 #: ../src/guestfs.pod:1776
38013 msgid ""
38014 "The units of C<total> are not defined, although for some operations C<total> "
38015 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38016 "or megabytes), and C<position> may be the portion which has been transferred."
38017 msgstr ""
38018
38019 #. type: textblock
38020 #: ../src/guestfs.pod:1781
38021 msgid "The only defined and stable parts of the API are:"
38022 msgstr ""
38023
38024 #. type: textblock
38025 #: ../src/guestfs.pod:1787
38026 msgid ""
38027 "The callback can display to the user some type of progress bar or indicator "
38028 "which shows the ratio of C<position>:C<total>."
38029 msgstr ""
38030
38031 #. type: textblock
38032 #: ../src/guestfs.pod:1792
38033 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38034 msgstr ""
38035
38036 #. type: textblock
38037 #: ../src/guestfs.pod:1796
38038 msgid ""
38039 "If any progress notification is sent during a call, then a final progress "
38040 "notification is always sent when C<position> = C<total> (I<unless> the call "
38041 "fails with an error)."
38042 msgstr ""
38043
38044 #. type: textblock
38045 #: ../src/guestfs.pod:1800
38046 msgid ""
38047 "This is to simplify caller code, so callers can easily set the progress "
38048 "indicator to \"100%\" at the end of the operation, without requiring special "
38049 "code to detect this case."
38050 msgstr ""
38051
38052 #. type: textblock
38053 #: ../src/guestfs.pod:1806
38054 msgid ""
38055 "For some calls we are unable to estimate the progress of the call, but we "
38056 "can still generate progress messages to indicate activity.  This is known as "
38057 "\"pulse mode\", and is directly supported by certain progress bar "
38058 "implementations (eg. GtkProgressBar)."
38059 msgstr ""
38060
38061 #. type: textblock
38062 #: ../src/guestfs.pod:1811
38063 msgid ""
38064 "For these calls, zero or more progress messages are generated with "
38065 "C<position = 0> and C<total = 1>, followed by a final message with "
38066 "C<position = total = 1>."
38067 msgstr ""
38068
38069 #. type: textblock
38070 #: ../src/guestfs.pod:1815
38071 msgid ""
38072 "As noted above, if the call fails with an error then the final message may "
38073 "not be generated."
38074 msgstr ""
38075
38076 #. type: textblock
38077 #: ../src/guestfs.pod:1820
38078 msgid ""
38079 "The callback also receives the procedure number (C<proc_nr>) and serial "
38080 "number (C<serial>) of the call.  These are only useful for debugging "
38081 "protocol issues, and the callback can normally ignore them.  The callback "
38082 "may want to print these numbers in error messages or debugging messages."
38083 msgstr ""
38084
38085 #. type: textblock
38086 #: ../src/guestfs.pod:1826
38087 msgid "If no callback is registered: progress messages are discarded."
38088 msgstr ""
38089
38090 #. type: =item
38091 #: ../src/guestfs.pod:1828
38092 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38093 msgstr ""
38094
38095 #. type: textblock
38096 #: ../src/guestfs.pod:1831
38097 msgid ""
38098 "The callback function is called whenever a log message is generated by qemu, "
38099 "the appliance kernel, guestfsd (daemon), or utility programs."
38100 msgstr ""
38101
38102 #. type: textblock
38103 #: ../src/guestfs.pod:1834
38104 msgid ""
38105 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
38106 "guestfs_launch>) then additional debug messages are generated."
38107 msgstr ""
38108
38109 #. type: textblock
38110 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
38111 msgid ""
38112 "If no callback is registered: the messages are discarded unless the verbose "
38113 "flag is set in which case they are sent to stderr.  You can override the "
38114 "printing of verbose messages to stderr by setting up a callback."
38115 msgstr ""
38116
38117 #. type: =item
38118 #: ../src/guestfs.pod:1842
38119 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38120 msgstr ""
38121
38122 #. type: textblock
38123 #: ../src/guestfs.pod:1845
38124 msgid ""
38125 "The callback function is called whenever a log message is generated by the "
38126 "library part of libguestfs."
38127 msgstr ""
38128
38129 #. type: textblock
38130 #: ../src/guestfs.pod:1848
38131 msgid ""
38132 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38133 "messages are generated."
38134 msgstr ""
38135
38136 #. type: =item
38137 #: ../src/guestfs.pod:1856
38138 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38139 msgstr ""
38140
38141 #. type: textblock
38142 #: ../src/guestfs.pod:1859
38143 msgid ""
38144 "The callback function is called whenever a trace message is generated.  This "
38145 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38146 msgstr ""
38147
38148 #. type: textblock
38149 #: ../src/guestfs.pod:1862
38150 msgid ""
38151 "If no callback is registered: the messages are sent to stderr.  You can "
38152 "override the printing of trace messages to stderr by setting up a callback."
38153 msgstr ""
38154
38155 #. type: =item
38156 #: ../src/guestfs.pod:1866
38157 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38158 msgstr ""
38159
38160 #. type: textblock
38161 #: ../src/guestfs.pod:1869
38162 msgid ""
38163 "The callback function is called whenever a libguestfs function is entered."
38164 msgstr ""
38165
38166 #. type: textblock
38167 #: ../src/guestfs.pod:1872
38168 msgid ""
38169 "The payload is a string which contains the name of the function that we are "
38170 "entering (not including C<guestfs_> prefix)."
38171 msgstr ""
38172
38173 #. type: textblock
38174 #: ../src/guestfs.pod:1875
38175 msgid ""
38176 "Note that libguestfs functions can call themselves, so you may see many "
38177 "events from a single call.  A few libguestfs functions do not generate this "
38178 "event."
38179 msgstr ""
38180
38181 #. type: =head3
38182 #: ../src/guestfs.pod:1883
38183 msgid "guestfs_set_event_callback"
38184 msgstr ""
38185
38186 #. type: verbatim
38187 #: ../src/guestfs.pod:1885
38188 #, no-wrap
38189 msgid ""
38190 " int guestfs_set_event_callback (guestfs_h *g,\n"
38191 "                                 guestfs_event_callback cb,\n"
38192 "                                 uint64_t event_bitmask,\n"
38193 "                                 int flags,\n"
38194 "                                 void *opaque);\n"
38195 "\n"
38196 msgstr ""
38197
38198 #. type: textblock
38199 #: ../src/guestfs.pod:1891
38200 msgid ""
38201 "This function registers a callback (C<cb>) for all event classes in the "
38202 "C<event_bitmask>."
38203 msgstr ""
38204
38205 #. type: textblock
38206 #: ../src/guestfs.pod:1894
38207 msgid ""
38208 "For example, to register for all log message events, you could call this "
38209 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
38210 "To register a single callback for all possible classes of events, use "
38211 "C<GUESTFS_EVENT_ALL>."
38212 msgstr ""
38213
38214 #. type: textblock
38215 #: ../src/guestfs.pod:1900
38216 msgid "C<flags> should always be passed as 0."
38217 msgstr ""
38218
38219 #. type: textblock
38220 #: ../src/guestfs.pod:1902
38221 msgid ""
38222 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
38223 "it for any purpose."
38224 msgstr ""
38225
38226 #. type: textblock
38227 #: ../src/guestfs.pod:1905
38228 msgid ""
38229 "The return value is the event handle (an integer) which you can use to "
38230 "delete the callback (see below)."
38231 msgstr ""
38232
38233 #. type: textblock
38234 #: ../src/guestfs.pod:1908
38235 msgid ""
38236 "If there is an error, this function returns C<-1>, and sets the error in the "
38237 "handle in the usual way (see L</guestfs_last_error> etc.)"
38238 msgstr ""
38239
38240 #. type: textblock
38241 #: ../src/guestfs.pod:1911
38242 msgid ""
38243 "Callbacks remain in effect until they are deleted, or until the handle is "
38244 "closed."
38245 msgstr ""
38246
38247 #. type: textblock
38248 #: ../src/guestfs.pod:1914
38249 msgid ""
38250 "In the case where multiple callbacks are registered for a particular event "
38251 "class, all of the callbacks are called.  The order in which multiple "
38252 "callbacks are called is not defined."
38253 msgstr ""
38254
38255 #. type: =head3
38256 #: ../src/guestfs.pod:1918
38257 msgid "guestfs_delete_event_callback"
38258 msgstr ""
38259
38260 #. type: verbatim
38261 #: ../src/guestfs.pod:1920
38262 #, no-wrap
38263 msgid ""
38264 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
38265 "\n"
38266 msgstr ""
38267
38268 #. type: textblock
38269 #: ../src/guestfs.pod:1922
38270 msgid ""
38271 "Delete a callback that was previously registered.  C<event_handle> should be "
38272 "the integer that was returned by a previous call to "
38273 "C<guestfs_set_event_callback> on the same handle."
38274 msgstr ""
38275
38276 #. type: =head3
38277 #: ../src/guestfs.pod:1926
38278 msgid "guestfs_event_callback"
38279 msgstr ""
38280
38281 #. type: verbatim
38282 #: ../src/guestfs.pod:1928
38283 #, no-wrap
38284 msgid ""
38285 " typedef void (*guestfs_event_callback) (\n"
38286 "                  guestfs_h *g,\n"
38287 "                  void *opaque,\n"
38288 "                  uint64_t event,\n"
38289 "                  int event_handle,\n"
38290 "                  int flags,\n"
38291 "                  const char *buf, size_t buf_len,\n"
38292 "                  const uint64_t *array, size_t array_len);\n"
38293 "\n"
38294 msgstr ""
38295
38296 #. type: textblock
38297 #: ../src/guestfs.pod:1937
38298 msgid ""
38299 "This is the type of the event callback function that you have to provide."
38300 msgstr ""
38301
38302 #. type: textblock
38303 #: ../src/guestfs.pod:1940
38304 msgid ""
38305 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38306 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38307 "handle, and C<flags> which in the current API you should ignore."
38308 msgstr ""
38309
38310 #. type: textblock
38311 #: ../src/guestfs.pod:1944
38312 msgid ""
38313 "The remaining parameters contain the event payload (if any).  Each event may "
38314 "contain a payload, which usually relates to the event class, but for future "
38315 "proofing your code should be written to handle any payload for any event "
38316 "class."
38317 msgstr ""
38318
38319 #. type: textblock
38320 #: ../src/guestfs.pod:1949
38321 msgid ""
38322 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38323 "there is no message buffer).  Note that this message buffer can contain "
38324 "arbitrary 8 bit data, including NUL bytes."
38325 msgstr ""
38326
38327 #. type: textblock
38328 #: ../src/guestfs.pod:1953
38329 msgid ""
38330 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
38331 "moment this is only used for progress messages."
38332 msgstr ""
38333
38334 #. type: =head3
38335 #: ../src/guestfs.pod:1956
38336 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38337 msgstr ""
38338
38339 #. type: textblock
38340 #: ../src/guestfs.pod:1958
38341 msgid ""
38342 "One motivation for the generic event API was to allow GUI programs to "
38343 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
38344 "unconditionally to C<stderr>."
38345 msgstr ""
38346
38347 #. type: textblock
38348 #: ../src/guestfs.pod:1962
38349 msgid ""
38350 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38351 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
38352 "messages are not events; you must capture error messages separately)."
38353 msgstr ""
38354
38355 #. type: textblock
38356 #: ../src/guestfs.pod:1967
38357 msgid ""
38358 "Programs have to set up a callback to capture the classes of events of "
38359 "interest:"
38360 msgstr ""
38361
38362 #. type: verbatim
38363 #: ../src/guestfs.pod:1970
38364 #, no-wrap
38365 msgid ""
38366 " int eh =\n"
38367 "   guestfs_set_event_callback\n"
38368 "     (g, message_callback,\n"
38369 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38370 "      GUESTFS_EVENT_TRACE,\n"
38371 "      0, NULL) == -1)\n"
38372 " if (eh == -1) {\n"
38373 "   // handle error in the usual way\n"
38374 " }\n"
38375 "\n"
38376 msgstr ""
38377
38378 #. type: textblock
38379 #: ../src/guestfs.pod:1980
38380 msgid ""
38381 "The callback can then direct messages to the appropriate place.  In this "
38382 "example, messages are directed to syslog:"
38383 msgstr ""
38384
38385 #. type: verbatim
38386 #: ../src/guestfs.pod:1983
38387 #, no-wrap
38388 msgid ""
38389 " static void\n"
38390 " message_callback (\n"
38391 "         guestfs_h *g,\n"
38392 "         void *opaque,\n"
38393 "         uint64_t event,\n"
38394 "         int event_handle,\n"
38395 "         int flags,\n"
38396 "         const char *buf, size_t buf_len,\n"
38397 "         const uint64_t *array, size_t array_len)\n"
38398 " {\n"
38399 "   const int priority = LOG_USER|LOG_INFO;\n"
38400 "   if (buf_len > 0)\n"
38401 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38402 " }\n"
38403 "\n"
38404 msgstr ""
38405
38406 #. type: =head1
38407 #: ../src/guestfs.pod:1998
38408 msgid "CANCELLING LONG TRANSFERS"
38409 msgstr ""
38410
38411 #. type: textblock
38412 #: ../src/guestfs.pod:2000
38413 msgid ""
38414 "Some operations can be cancelled by the caller while they are in progress.  "
38415 "Currently only operations that involve uploading or downloading data can be "
38416 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38417 "parameters in the generator)."
38418 msgstr ""
38419
38420 #. type: =head2
38421 #: ../src/guestfs.pod:2005
38422 msgid "guestfs_user_cancel"
38423 msgstr ""
38424
38425 #. type: verbatim
38426 #: ../src/guestfs.pod:2007
38427 #, no-wrap
38428 msgid ""
38429 " void guestfs_user_cancel (guestfs_h *g);\n"
38430 "\n"
38431 msgstr ""
38432
38433 #. type: textblock
38434 #: ../src/guestfs.pod:2009
38435 msgid ""
38436 "C<guestfs_user_cancel> cancels the current upload or download operation."
38437 msgstr ""
38438
38439 #. type: textblock
38440 #: ../src/guestfs.pod:2012
38441 msgid ""
38442 "Unlike most other libguestfs calls, this function is signal safe and thread "
38443 "safe.  You can call it from a signal handler or from another thread, without "
38444 "needing to do any locking."
38445 msgstr ""
38446
38447 #. type: textblock
38448 #: ../src/guestfs.pod:2016
38449 msgid ""
38450 "The transfer that was in progress (if there is one) will stop shortly "
38451 "afterwards, and will return an error.  The errno (see L</"
38452 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38453 "out if the operation was cancelled or failed because of another error."
38454 msgstr ""
38455
38456 #. type: textblock
38457 #: ../src/guestfs.pod:2022
38458 msgid ""
38459 "No cleanup is performed: for example, if a file was being uploaded then "
38460 "after cancellation there may be a partially uploaded file.  It is the "
38461 "caller's responsibility to clean up if necessary."
38462 msgstr ""
38463
38464 #. type: textblock
38465 #: ../src/guestfs.pod:2026
38466 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38467 msgstr ""
38468
38469 #. type: textblock
38470 #: ../src/guestfs.pod:2028
38471 msgid ""
38472 "In an interactive text-based program, you might call it from a C<SIGINT> "
38473 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38474 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38475 "receive the C<^C> signal)."
38476 msgstr ""
38477
38478 #. type: textblock
38479 #: ../src/guestfs.pod:2033
38480 msgid ""
38481 "In a graphical program, when the main thread is displaying a progress bar "
38482 "with a cancel button, wire up the cancel button to call this function."
38483 msgstr ""
38484
38485 #. type: =head1
38486 #: ../src/guestfs.pod:2037
38487 msgid "PRIVATE DATA AREA"
38488 msgstr ""
38489
38490 #. type: textblock
38491 #: ../src/guestfs.pod:2039
38492 msgid ""
38493 "You can attach named pieces of private data to the libguestfs handle, fetch "
38494 "them by name, and walk over them, for the lifetime of the handle.  This is "
38495 "called the private data area and is only available from the C API."
38496 msgstr ""
38497
38498 #. type: textblock
38499 #: ../src/guestfs.pod:2044
38500 msgid "To attach a named piece of data, use the following call:"
38501 msgstr ""
38502
38503 #. type: verbatim
38504 #: ../src/guestfs.pod:2046
38505 #, no-wrap
38506 msgid ""
38507 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38508 "\n"
38509 msgstr ""
38510 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38511 "\n"
38512
38513 #. type: textblock
38514 #: ../src/guestfs.pod:2048
38515 msgid ""
38516 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38517 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38518 "overwritten."
38519 msgstr ""
38520
38521 #. type: textblock
38522 #: ../src/guestfs.pod:2052
38523 msgid ""
38524 "You can use any C<key> you want, but your key should I<not> start with an "
38525 "underscore character.  Keys beginning with an underscore character are "
38526 "reserved for internal libguestfs purposes (eg. for implementing language "
38527 "bindings).  It is recommended that you prefix the key with some unique "
38528 "string to avoid collisions with other users."
38529 msgstr ""
38530
38531 #. type: textblock
38532 #: ../src/guestfs.pod:2058
38533 msgid "To retrieve the pointer, use:"
38534 msgstr ""
38535
38536 #. type: verbatim
38537 #: ../src/guestfs.pod:2060
38538 #, no-wrap
38539 msgid ""
38540 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38541 "\n"
38542 msgstr ""
38543 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38544 "\n"
38545
38546 #. type: textblock
38547 #: ../src/guestfs.pod:2062
38548 msgid ""
38549 "This function returns C<NULL> if either no data is found associated with "
38550 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38551 "C<NULL>."
38552 msgstr ""
38553
38554 #. type: textblock
38555 #: ../src/guestfs.pod:2066
38556 msgid ""
38557 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38558 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38559 "all.  In particular, libguestfs does I<not> try to free the data when the "
38560 "handle is closed.  If the data must be freed, then the caller must either "
38561 "free it before calling L</guestfs_close> or must set up a close callback to "
38562 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38563 msgstr ""
38564
38565 #. type: textblock
38566 #: ../src/guestfs.pod:2073
38567 msgid "To walk over all entries, use these two functions:"
38568 msgstr ""
38569
38570 #. type: verbatim
38571 #: ../src/guestfs.pod:2075
38572 #, no-wrap
38573 msgid ""
38574 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38575 "\n"
38576 msgstr ""
38577
38578 #. type: verbatim
38579 #: ../src/guestfs.pod:2077
38580 #, no-wrap
38581 msgid ""
38582 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38583 "\n"
38584 msgstr ""
38585
38586 #. type: textblock
38587 #: ../src/guestfs.pod:2079
38588 msgid ""
38589 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38590 "not have any particular meaning -- keys are not returned in any defined "
38591 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38592 "corresponding data pointer is returned from the function.  C<NULL> is "
38593 "returned if there are no keys stored in the handle."
38594 msgstr ""
38595
38596 #. type: textblock
38597 #: ../src/guestfs.pod:2085
38598 msgid ""
38599 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38600 "value of this function is also C<NULL> is there are no further entries to "
38601 "return."
38602 msgstr ""
38603
38604 #. type: textblock
38605 #: ../src/guestfs.pod:2089
38606 msgid "Notes about walking over entries:"
38607 msgstr ""
38608
38609 #. type: textblock
38610 #: ../src/guestfs.pod:2095
38611 msgid ""
38612 "You must not call C<guestfs_set_private> while walking over the entries."
38613 msgstr ""
38614
38615 #. type: textblock
38616 #: ../src/guestfs.pod:2100
38617 msgid ""
38618 "The handle maintains an internal iterator which is reset when you call "
38619 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38620 "call C<guestfs_set_private>."
38621 msgstr ""
38622
38623 #. type: textblock
38624 #: ../src/guestfs.pod:2106
38625 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38626 msgstr ""
38627
38628 #. type: verbatim
38629 #: ../src/guestfs.pod:2108
38630 #, no-wrap
38631 msgid ""
38632 " guestfs_set_private (g, key, NULL);\n"
38633 "\n"
38634 msgstr ""
38635
38636 #. type: textblock
38637 #: ../src/guestfs.pod:2110
38638 msgid "then that C<key> is not returned when walking."
38639 msgstr ""
38640
38641 #. type: textblock
38642 #: ../src/guestfs.pod:2114
38643 msgid ""
38644 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38645 "C<guestfs_next_private> or C<guestfs_set_private>."
38646 msgstr ""
38647
38648 #. type: textblock
38649 #: ../src/guestfs.pod:2120
38650 msgid ""
38651 "The following example code shows how to print all keys and data pointers "
38652 "that are associated with the handle C<g>:"
38653 msgstr ""
38654
38655 #. type: verbatim
38656 #: ../src/guestfs.pod:2123
38657 #, no-wrap
38658 msgid ""
38659 " const char *key;\n"
38660 " void *data = guestfs_first_private (g, &key);\n"
38661 " while (data != NULL)\n"
38662 "   {\n"
38663 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38664 "     data = guestfs_next_private (g, &key);\n"
38665 "   }\n"
38666 "\n"
38667 msgstr ""
38668
38669 #. type: textblock
38670 #: ../src/guestfs.pod:2131
38671 msgid ""
38672 "More commonly you are only interested in keys that begin with an application-"
38673 "specific prefix C<foo_>.  Modify the loop like so:"
38674 msgstr ""
38675
38676 #. type: verbatim
38677 #: ../src/guestfs.pod:2134
38678 #, no-wrap
38679 msgid ""
38680 " const char *key;\n"
38681 " void *data = guestfs_first_private (g, &key);\n"
38682 " while (data != NULL)\n"
38683 "   {\n"
38684 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38685 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38686 "     data = guestfs_next_private (g, &key);\n"
38687 "   }\n"
38688 "\n"
38689 msgstr ""
38690
38691 #. type: textblock
38692 #: ../src/guestfs.pod:2143
38693 msgid ""
38694 "If you need to modify keys while walking, then you have to jump back to the "
38695 "beginning of the loop.  For example, to delete all keys prefixed with "
38696 "C<foo_>:"
38697 msgstr ""
38698
38699 #. type: verbatim
38700 #: ../src/guestfs.pod:2147
38701 #, no-wrap
38702 msgid ""
38703 "  const char *key;\n"
38704 "  void *data;\n"
38705 " again:\n"
38706 "  data = guestfs_first_private (g, &key);\n"
38707 "  while (data != NULL)\n"
38708 "    {\n"
38709 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38710 "        {\n"
38711 "          guestfs_set_private (g, key, NULL);\n"
38712 "          /* note that 'key' pointer is now invalid, and so is\n"
38713 "             the internal iterator */\n"
38714 "          goto again;\n"
38715 "        }\n"
38716 "      data = guestfs_next_private (g, &key);\n"
38717 "    }\n"
38718 "\n"
38719 msgstr ""
38720
38721 #. type: textblock
38722 #: ../src/guestfs.pod:2163
38723 msgid ""
38724 "Note that the above loop is guaranteed to terminate because the keys are "
38725 "being deleted, but other manipulations of keys within the loop might not "
38726 "terminate unless you also maintain an indication of which keys have been "
38727 "visited."
38728 msgstr ""
38729
38730 #. type: =head1
38731 #: ../src/guestfs.pod:2168
38732 msgid "SYSTEMTAP"
38733 msgstr ""
38734
38735 #. type: textblock
38736 #: ../src/guestfs.pod:2170
38737 msgid ""
38738 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
38739 "true of any library, not just libguestfs.  However libguestfs also contains "
38740 "static markers to help in probing internal operations."
38741 msgstr ""
38742
38743 #. type: textblock
38744 #: ../src/guestfs.pod:2174
38745 msgid "You can list all the static markers by doing:"
38746 msgstr ""
38747
38748 #. type: verbatim
38749 #: ../src/guestfs.pod:2176
38750 #, no-wrap
38751 msgid ""
38752 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38753 "              .provider(\"guestfs\").mark(\"*\")'\n"
38754 "\n"
38755 msgstr ""
38756
38757 #. type: textblock
38758 #: ../src/guestfs.pod:2179
38759 msgid ""
38760 "B<Note:> These static markers are I<not> part of the stable API and may "
38761 "change in future versions."
38762 msgstr ""
38763
38764 #. type: =head2
38765 #: ../src/guestfs.pod:2182
38766 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38767 msgstr ""
38768
38769 #. type: textblock
38770 #: ../src/guestfs.pod:2184
38771 msgid ""
38772 "This script contains examples of displaying both the static markers and some "
38773 "ordinary C entry points:"
38774 msgstr ""
38775
38776 #. type: verbatim
38777 #: ../src/guestfs.pod:2187
38778 #, no-wrap
38779 msgid ""
38780 " global last;\n"
38781 " \n"
38782 msgstr ""
38783
38784 #. type: verbatim
38785 #: ../src/guestfs.pod:2189
38786 #, no-wrap
38787 msgid ""
38788 " function display_time () {\n"
38789 "       now = gettimeofday_us ();\n"
38790 "       delta = 0;\n"
38791 "       if (last > 0)\n"
38792 "             delta = now - last;\n"
38793 "       last = now;\n"
38794 " \n"
38795 msgstr ""
38796
38797 #. type: verbatim
38798 #: ../src/guestfs.pod:2196
38799 #, no-wrap
38800 msgid ""
38801 "       printf (\"%d (+%d):\", now, delta);\n"
38802 " }\n"
38803 " \n"
38804 msgstr ""
38805
38806 #. type: verbatim
38807 #: ../src/guestfs.pod:2199
38808 #, no-wrap
38809 msgid ""
38810 " probe begin {\n"
38811 "       last = 0;\n"
38812 "       printf (\"ready\\n\");\n"
38813 " }\n"
38814 " \n"
38815 msgstr ""
38816
38817 #. type: verbatim
38818 #: ../src/guestfs.pod:2204
38819 #, no-wrap
38820 msgid ""
38821 " /* Display all calls to static markers. */\n"
38822 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38823 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38824 "       display_time();\n"
38825 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38826 " }\n"
38827 " \n"
38828 msgstr ""
38829
38830 #. type: verbatim
38831 #: ../src/guestfs.pod:2211
38832 #, no-wrap
38833 msgid ""
38834 " /* Display all calls to guestfs_mkfs* functions. */\n"
38835 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38836 "           .function(\"guestfs_mkfs*\") ? {\n"
38837 "       display_time();\n"
38838 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38839 " }\n"
38840 "\n"
38841 msgstr ""
38842
38843 #. type: textblock
38844 #: ../src/guestfs.pod:2218
38845 msgid ""
38846 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38847 "program.  Note that you either have to be root, or you have to add yourself "
38848 "to several special stap groups.  Consult the systemtap documentation for "
38849 "more information."
38850 msgstr ""
38851
38852 #. type: verbatim
38853 #: ../src/guestfs.pod:2223
38854 #, no-wrap
38855 msgid ""
38856 " # stap /tmp/test.stap\n"
38857 " ready\n"
38858 "\n"
38859 msgstr ""
38860
38861 #. type: textblock
38862 #: ../src/guestfs.pod:2226
38863 msgid "In another terminal, run a guestfish command such as this:"
38864 msgstr ""
38865
38866 #. type: textblock
38867 #: ../src/guestfs.pod:2230
38868 msgid "In the first terminal, stap trace output similar to this is shown:"
38869 msgstr ""
38870
38871 #. type: verbatim
38872 #: ../src/guestfs.pod:2232
38873 #, no-wrap
38874 msgid ""
38875 " 1318248056692655 (+0):\tlaunch_start\n"
38876 " 1318248056692850 (+195):       launch_build_appliance_start\n"
38877 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
38878 " 1318248056838059 (+19774):     launch_run_qemu\n"
38879 " 1318248061071167 (+4233108):   launch_end\n"
38880 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
38881 "\n"
38882 msgstr ""
38883
38884 #. type: =end
38885 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
38886 msgid "html"
38887 msgstr "html"
38888
38889 #. type: textblock
38890 #: ../src/guestfs.pod:2241
38891 msgid ""
38892 "<!-- old anchor for the next section --> <a name="
38893 "\"state_machine_and_low_level_event_api\"/>"
38894 msgstr ""
38895 "<!-- old anchor for the next section --> <a name="
38896 "\"state_machine_and_low_level_event_api\"/>"
38897
38898 #. type: =head1
38899 #: ../src/guestfs.pod:2246
38900 msgid "ARCHITECTURE"
38901 msgstr "АРХІТЕКТУРА"
38902
38903 #. type: textblock
38904 #: ../src/guestfs.pod:2248
38905 msgid ""
38906 "Internally, libguestfs is implemented by running an appliance (a special "
38907 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
38908 "process of the main program."
38909 msgstr ""
38910
38911 #. type: verbatim
38912 #: ../src/guestfs.pod:2252
38913 #, no-wrap
38914 msgid ""
38915 "  ___________________\n"
38916 " /                   \\\n"
38917 " | main program      |\n"
38918 " |                   |\n"
38919 " |                   |           child process / appliance\n"
38920 " |                   |           __________________________\n"
38921 " |                   |          / qemu                     \\\n"
38922 " +-------------------+   RPC    |      +-----------------+ |\n"
38923 " | libguestfs     <--------------------> guestfsd        | |\n"
38924 " |                   |          |      +-----------------+ |\n"
38925 " \\___________________/          |      | Linux kernel    | |\n"
38926 "                                |      +--^--------------+ |\n"
38927 "                                \\_________|________________/\n"
38928 "                                          |\n"
38929 "                                   _______v______\n"
38930 "                                  /              \\\n"
38931 "                                  | Device or    |\n"
38932 "                                  | disk image   |\n"
38933 "                                  \\______________/\n"
38934 "\n"
38935 msgstr ""
38936
38937 #. type: textblock
38938 #: ../src/guestfs.pod:2272
38939 msgid ""
38940 "The library, linked to the main program, creates the child process and hence "
38941 "the appliance in the L</guestfs_launch> function."
38942 msgstr ""
38943
38944 #. type: textblock
38945 #: ../src/guestfs.pod:2275
38946 msgid ""
38947 "Inside the appliance is a Linux kernel and a complete stack of userspace "
38948 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
38949 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
38950 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
38951 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
38952 "attached to the qemu process which translates device access by the "
38953 "appliance's Linux kernel into accesses to the image."
38954 msgstr ""
38955
38956 #. type: textblock
38957 #: ../src/guestfs.pod:2284
38958 msgid ""
38959 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
38960 "Although the disk image you are attached to might also be used by some "
38961 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
38962 "care if both libguestfs's qemu process and your virtual machine are trying "
38963 "to update the disk image at the same time, since these usually results in "
38964 "massive disk corruption)."
38965 msgstr ""
38966
38967 #. type: =head1
38968 #: ../src/guestfs.pod:2291
38969 msgid "STATE MACHINE"
38970 msgstr "СКІНЧЕННИЙ АВТОМАТ"
38971
38972 #. type: textblock
38973 #: ../src/guestfs.pod:2293
38974 msgid "libguestfs uses a state machine to model the child process:"
38975 msgstr ""
38976
38977 #. type: verbatim
38978 #: ../src/guestfs.pod:2295
38979 #, no-wrap
38980 msgid ""
38981 "                         |\n"
38982 "                    guestfs_create\n"
38983 "                         |\n"
38984 "                         |\n"
38985 "                     ____V_____\n"
38986 "                    /          \\\n"
38987 "                    |  CONFIG  |\n"
38988 "                    \\__________/\n"
38989 "                     ^ ^   ^  \\\n"
38990 "                    /  |    \\  \\ guestfs_launch\n"
38991 "                   /   |    _\\__V______\n"
38992 "                  /    |   /           \\\n"
38993 "                 /     |   | LAUNCHING |\n"
38994 "                /      |   \\___________/\n"
38995 "               /       |       /\n"
38996 "              /        |  guestfs_launch\n"
38997 "             /         |     /\n"
38998 "    ______  /        __|____V\n"
38999 "   /      \\ ------> /        \\\n"
39000 "   | BUSY |         | READY  |\n"
39001 "   \\______/ <------ \\________/\n"
39002 "\n"
39003 msgstr ""
39004
39005 #. type: textblock
39006 #: ../src/guestfs.pod:2317
39007 msgid ""
39008 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39009 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39010 "(3) alternating between READY and BUSY as commands are issued to, and "
39011 "carried out by, the child process."
39012 msgstr ""
39013
39014 #. type: textblock
39015 #: ../src/guestfs.pod:2322
39016 msgid ""
39017 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39018 "asynchronously at any time (eg. due to some internal error), and that causes "
39019 "the state to transition back to CONFIG."
39020 msgstr ""
39021
39022 #. type: textblock
39023 #: ../src/guestfs.pod:2326
39024 msgid ""
39025 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39026 "issued when in the CONFIG state."
39027 msgstr ""
39028
39029 #. type: textblock
39030 #: ../src/guestfs.pod:2329
39031 msgid ""
39032 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
39033 "L</guestfs_launch> blocks until the child process is READY to accept "
39034 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
39035 "moves the state from CONFIG to LAUNCHING while it is running."
39036 msgstr ""
39037
39038 #. type: textblock
39039 #: ../src/guestfs.pod:2335
39040 msgid ""
39041 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39042 "state.  These API calls block waiting for the command to be carried out (ie. "
39043 "the state to transition to BUSY and then back to READY).  There are no non-"
39044 "blocking versions, and no way to issue more than one command per handle at "
39045 "the same time."
39046 msgstr ""
39047
39048 #. type: textblock
39049 #: ../src/guestfs.pod:2341
39050 msgid ""
39051 "Finally, the child process sends asynchronous messages back to the main "
39052 "program, such as kernel log messages.  You can register a callback to "
39053 "receive these messages."
39054 msgstr ""
39055
39056 #. type: =head1
39057 #: ../src/guestfs.pod:2345
39058 msgid "INTERNALS"
39059 msgstr ""
39060
39061 #. type: =head2
39062 #: ../src/guestfs.pod:2347
39063 msgid "APPLIANCE BOOT PROCESS"
39064 msgstr ""
39065
39066 #. type: textblock
39067 #: ../src/guestfs.pod:2349
39068 msgid ""
39069 "This process has evolved and continues to evolve.  The description here "
39070 "corresponds only to the current version of libguestfs and is provided for "
39071 "information only."
39072 msgstr ""
39073
39074 #. type: textblock
39075 #: ../src/guestfs.pod:2353
39076 msgid ""
39077 "In order to follow the stages involved below, enable libguestfs debugging "
39078 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39079 msgstr ""
39080
39081 #. type: =item
39082 #: ../src/guestfs.pod:2358
39083 msgid "Create the appliance"
39084 msgstr ""
39085
39086 #. type: textblock
39087 #: ../src/guestfs.pod:2360
39088 msgid ""
39089 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39090 "initrd and the appliance."
39091 msgstr ""
39092
39093 #. type: textblock
39094 #: ../src/guestfs.pod:2363
39095 msgid ""
39096 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39097 "directory if C<TMPDIR> is set)."
39098 msgstr ""
39099
39100 #. type: textblock
39101 #: ../src/guestfs.pod:2366
39102 msgid ""
39103 "For a complete description of how the appliance is created and cached, read "
39104 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39105 msgstr ""
39106
39107 #. type: =item
39108 #: ../src/guestfs.pod:2370
39109 msgid "Start qemu and boot the kernel"
39110 msgstr ""
39111
39112 #. type: textblock
39113 #: ../src/guestfs.pod:2372
39114 msgid "qemu is invoked to boot the kernel."
39115 msgstr ""
39116
39117 #. type: =item
39118 #: ../src/guestfs.pod:2374
39119 msgid "Run the initrd"
39120 msgstr ""
39121
39122 #. type: textblock
39123 #: ../src/guestfs.pod:2376
39124 msgid ""
39125 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
39126 "appliance.  The purpose of the initrd is to load enough kernel modules in "
39127 "order that the appliance itself can be mounted and started."
39128 msgstr ""
39129
39130 #. type: textblock
39131 #: ../src/guestfs.pod:2380
39132 msgid ""
39133 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
39134 "initrd>."
39135 msgstr ""
39136
39137 #. type: textblock
39138 #: ../src/guestfs.pod:2383
39139 msgid ""
39140 "When the initrd has started you will see messages showing that kernel "
39141 "modules are being loaded, similar to this:"
39142 msgstr ""
39143
39144 #. type: verbatim
39145 #: ../src/guestfs.pod:2386
39146 #, no-wrap
39147 msgid ""
39148 " febootstrap: ext2 mini initrd starting up\n"
39149 " febootstrap: mounting /sys\n"
39150 " febootstrap: internal insmod libcrc32c.ko\n"
39151 " febootstrap: internal insmod crc32c-intel.ko\n"
39152 "\n"
39153 msgstr ""
39154
39155 #. type: =item
39156 #: ../src/guestfs.pod:2391
39157 msgid "Find and mount the appliance device"
39158 msgstr ""
39159
39160 #. type: textblock
39161 #: ../src/guestfs.pod:2393
39162 msgid ""
39163 "The appliance is a sparse file containing an ext2 filesystem which contains "
39164 "a familiar (although reduced in size) Linux operating system.  It would "
39165 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39166 msgstr ""
39167
39168 #. type: textblock
39169 #: ../src/guestfs.pod:2397
39170 msgid ""
39171 "The regular disks being inspected by libguestfs are the first devices "
39172 "exposed by qemu (eg. as C</dev/vda>)."
39173 msgstr ""
39174
39175 #. type: textblock
39176 #: ../src/guestfs.pod:2400
39177 msgid ""
39178 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39179 "there was only one regular disk)."
39180 msgstr ""
39181
39182 #. type: textblock
39183 #: ../src/guestfs.pod:2403
39184 msgid ""
39185 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39186 "and switch root into the appliance, and run C</init> from the appliance."
39187 msgstr ""
39188
39189 #. type: textblock
39190 #: ../src/guestfs.pod:2407
39191 msgid "If this works successfully you will see messages such as:"
39192 msgstr ""
39193
39194 #. type: verbatim
39195 #: ../src/guestfs.pod:2409
39196 #, no-wrap
39197 msgid ""
39198 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39199 " febootstrap: creating /dev/root as block special 252:16\n"
39200 " febootstrap: mounting new root on /root\n"
39201 " febootstrap: chroot\n"
39202 " Starting /init script ...\n"
39203 "\n"
39204 msgstr ""
39205
39206 #. type: textblock
39207 #: ../src/guestfs.pod:2415
39208 msgid ""
39209 "Note that C<Starting /init script ...> indicates that the appliance's init "
39210 "script is now running."
39211 msgstr ""
39212
39213 #. type: =item
39214 #: ../src/guestfs.pod:2418
39215 msgid "Initialize the appliance"
39216 msgstr ""
39217
39218 #. type: textblock
39219 #: ../src/guestfs.pod:2420
39220 msgid ""
39221 "The appliance itself now initializes itself.  This involves starting certain "
39222 "processes like C<udev>, possibly printing some debug information, and "
39223 "finally running the daemon (C<guestfsd>)."
39224 msgstr ""
39225
39226 #. type: =item
39227 #: ../src/guestfs.pod:2424
39228 msgid "The daemon"
39229 msgstr ""
39230
39231 #. type: textblock
39232 #: ../src/guestfs.pod:2426
39233 msgid ""
39234 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
39235 "should see:"
39236 msgstr ""
39237
39238 #. type: verbatim
39239 #: ../src/guestfs.pod:2429
39240 #, no-wrap
39241 msgid ""
39242 " verbose daemon enabled\n"
39243 "\n"
39244 msgstr ""
39245
39246 #. type: textblock
39247 #: ../src/guestfs.pod:2431
39248 msgid ""
39249 "The daemon expects to see a named virtio-serial port exposed by qemu and "
39250 "connected on the other end to the library."
39251 msgstr ""
39252
39253 #. type: textblock
39254 #: ../src/guestfs.pod:2434
39255 msgid ""
39256 "The daemon connects to this port (and hence to the library) and sends a four "
39257 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
39258 "protocol (see below)."
39259 msgstr ""
39260
39261 #. type: =head2
39262 #: ../src/guestfs.pod:2440
39263 msgid "COMMUNICATION PROTOCOL"
39264 msgstr ""
39265
39266 #. type: textblock
39267 #: ../src/guestfs.pod:2442
39268 msgid ""
39269 "Don't rely on using this protocol directly.  This section documents how it "
39270 "currently works, but it may change at any time."
39271 msgstr ""
39272
39273 #. type: textblock
39274 #: ../src/guestfs.pod:2445
39275 msgid ""
39276 "The protocol used to talk between the library and the daemon running inside "
39277 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
39278 "1014, RFC 1832, RFC 4506)."
39279 msgstr ""
39280
39281 #. type: textblock
39282 #: ../src/guestfs.pod:2449
39283 msgid ""
39284 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
39285 "this file is automatically generated)."
39286 msgstr ""
39287
39288 #. type: textblock
39289 #: ../src/guestfs.pod:2452
39290 msgid ""
39291 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
39292 "and C<FileOut> parameters, which are handled with very simple request/reply "
39293 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
39294 "parameters, which use the same request and reply messages, but they may also "
39295 "be followed by files sent using a chunked encoding."
39296 msgstr ""
39297
39298 #. type: =head3
39299 #: ../src/guestfs.pod:2459
39300 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39301 msgstr ""
39302
39303 #. type: textblock
39304 #: ../src/guestfs.pod:2461
39305 msgid "For ordinary functions, the request message is:"
39306 msgstr ""
39307
39308 #. type: verbatim
39309 #: ../src/guestfs.pod:2463
39310 #, no-wrap
39311 msgid ""
39312 " total length (header + arguments,\n"
39313 "      but not including the length word itself)\n"
39314 " struct guestfs_message_header (encoded as XDR)\n"
39315 " struct guestfs_<foo>_args (encoded as XDR)\n"
39316 "\n"
39317 msgstr ""
39318
39319 #. type: textblock
39320 #: ../src/guestfs.pod:2468
39321 msgid ""
39322 "The total length field allows the daemon to allocate a fixed size buffer "
39323 "into which it slurps the rest of the message.  As a result, the total length "
39324 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39325 "effective size of any request is limited to somewhere under this size."
39326 msgstr ""
39327
39328 #. type: textblock
39329 #: ../src/guestfs.pod:2474
39330 msgid ""
39331 "Note also that many functions don't take any arguments, in which case the "
39332 "C<guestfs_I<foo>_args> is completely omitted."
39333 msgstr ""
39334
39335 #. type: textblock
39336 #: ../src/guestfs.pod:2477
39337 msgid ""
39338 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39339 "receiver knows what type of args structure to expect, or none at all."
39340 msgstr ""
39341
39342 #. type: textblock
39343 #: ../src/guestfs.pod:2481
39344 msgid ""
39345 "For functions that take optional arguments, the optional arguments are "
39346 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39347 "arguments.  A bitmask in the header indicates which optional arguments are "
39348 "meaningful.  The bitmask is also checked to see if it contains bits set "
39349 "which the daemon does not know about (eg. if more optional arguments were "
39350 "added in a later version of the library), and this causes the call to be "
39351 "rejected."
39352 msgstr ""
39353
39354 #. type: textblock
39355 #: ../src/guestfs.pod:2489
39356 msgid "The reply message for ordinary functions is:"
39357 msgstr ""
39358
39359 #. type: verbatim
39360 #: ../src/guestfs.pod:2491
39361 #, no-wrap
39362 msgid ""
39363 " total length (header + ret,\n"
39364 "      but not including the length word itself)\n"
39365 " struct guestfs_message_header (encoded as XDR)\n"
39366 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39367 "\n"
39368 msgstr ""
39369
39370 #. type: textblock
39371 #: ../src/guestfs.pod:2496
39372 msgid ""
39373 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39374 "functions that return no formal return values."
39375 msgstr ""
39376
39377 #. type: textblock
39378 #: ../src/guestfs.pod:2499
39379 msgid ""
39380 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39381 msgstr ""
39382
39383 #. type: textblock
39384 #: ../src/guestfs.pod:2502
39385 msgid ""
39386 "In the case of an error, a flag is set in the header, and the reply message "
39387 "is slightly changed:"
39388 msgstr ""
39389
39390 #. type: verbatim
39391 #: ../src/guestfs.pod:2505
39392 #, no-wrap
39393 msgid ""
39394 " total length (header + error,\n"
39395 "      but not including the length word itself)\n"
39396 " struct guestfs_message_header (encoded as XDR)\n"
39397 " struct guestfs_message_error (encoded as XDR)\n"
39398 "\n"
39399 msgstr ""
39400
39401 #. type: textblock
39402 #: ../src/guestfs.pod:2510
39403 msgid ""
39404 "The C<guestfs_message_error> structure contains the error message as a "
39405 "string."
39406 msgstr ""
39407
39408 #. type: =head3
39409 #: ../src/guestfs.pod:2513
39410 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39411 msgstr ""
39412
39413 #. type: textblock
39414 #: ../src/guestfs.pod:2515
39415 msgid ""
39416 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
39417 "The normal request message is sent (see above).  However this is followed by "
39418 "a sequence of file chunks."
39419 msgstr ""
39420
39421 #. type: verbatim
39422 #: ../src/guestfs.pod:2519
39423 #, no-wrap
39424 msgid ""
39425 " total length (header + arguments,\n"
39426 "      but not including the length word itself,\n"
39427 "      and not including the chunks)\n"
39428 " struct guestfs_message_header (encoded as XDR)\n"
39429 " struct guestfs_<foo>_args (encoded as XDR)\n"
39430 " sequence of chunks for FileIn param #0\n"
39431 " sequence of chunks for FileIn param #1 etc.\n"
39432 "\n"
39433 msgstr ""
39434
39435 #. type: textblock
39436 #: ../src/guestfs.pod:2527
39437 msgid "The \"sequence of chunks\" is:"
39438 msgstr ""
39439
39440 #. type: verbatim
39441 #: ../src/guestfs.pod:2529
39442 #, no-wrap
39443 msgid ""
39444 " length of chunk (not including length word itself)\n"
39445 " struct guestfs_chunk (encoded as XDR)\n"
39446 " length of chunk\n"
39447 " struct guestfs_chunk (encoded as XDR)\n"
39448 "   ...\n"
39449 " length of chunk\n"
39450 " struct guestfs_chunk (with data.data_len == 0)\n"
39451 "\n"
39452 msgstr ""
39453
39454 #. type: textblock
39455 #: ../src/guestfs.pod:2537
39456 msgid ""
39457 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39458 "is set in the final chunk to indicate either successful completion or early "
39459 "cancellation."
39460 msgstr ""
39461
39462 #. type: textblock
39463 #: ../src/guestfs.pod:2541
39464 msgid ""
39465 "At time of writing there are no functions that have more than one FileIn "
39466 "parameter.  However this is (theoretically) supported, by sending the "
39467 "sequence of chunks for each FileIn parameter one after another (from left to "
39468 "right)."
39469 msgstr ""
39470
39471 #. type: textblock
39472 #: ../src/guestfs.pod:2546
39473 msgid ""
39474 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39475 "transfer.  The library does this by sending a chunk with a special flag set "
39476 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39477 "RPC, does I<not> send any reply, and goes back to reading the next request."
39478 msgstr ""
39479
39480 #. type: textblock
39481 #: ../src/guestfs.pod:2552
39482 msgid ""
39483 "The daemon may also cancel.  It does this by writing a special word "
39484 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39485 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39486 "cancel chunk).  The special word is chosen so that even if cancellation "
39487 "happens right at the end of the transfer (after the library has finished "
39488 "writing and has started listening for the reply), the \"spurious\" cancel "
39489 "flag will not be confused with the reply message."
39490 msgstr ""
39491
39492 #. type: textblock
39493 #: ../src/guestfs.pod:2561
39494 msgid ""
39495 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39496 "limit), and also files where the size is not known in advance (eg. from "
39497 "pipes or sockets).  However the chunks are rather small "
39498 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39499 "to keep much in memory."
39500 msgstr ""
39501
39502 #. type: =head3
39503 #: ../src/guestfs.pod:2567
39504 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39505 msgstr ""
39506
39507 #. type: textblock
39508 #: ../src/guestfs.pod:2569
39509 msgid ""
39510 "The protocol for FileOut parameters is exactly the same as for FileIn "
39511 "parameters, but with the roles of daemon and library reversed."
39512 msgstr ""
39513
39514 #. type: verbatim
39515 #: ../src/guestfs.pod:2572
39516 #, no-wrap
39517 msgid ""
39518 " total length (header + ret,\n"
39519 "      but not including the length word itself,\n"
39520 "      and not including the chunks)\n"
39521 " struct guestfs_message_header (encoded as XDR)\n"
39522 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39523 " sequence of chunks for FileOut param #0\n"
39524 " sequence of chunks for FileOut param #1 etc.\n"
39525 "\n"
39526 msgstr ""
39527
39528 #. type: =head3
39529 #: ../src/guestfs.pod:2580
39530 msgid "INITIAL MESSAGE"
39531 msgstr ""
39532
39533 #. type: textblock
39534 #: ../src/guestfs.pod:2582
39535 msgid ""
39536 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39537 "which indicates that the guest and daemon is alive.  This is what L</"
39538 "guestfs_launch> waits for."
39539 msgstr ""
39540
39541 #. type: =head3
39542 #: ../src/guestfs.pod:2586
39543 msgid "PROGRESS NOTIFICATION MESSAGES"
39544 msgstr ""
39545
39546 #. type: textblock
39547 #: ../src/guestfs.pod:2588
39548 msgid ""
39549 "The daemon may send progress notification messages at any time.  These are "
39550 "distinguished by the normal length word being replaced by "
39551 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39552 msgstr ""
39553
39554 #. type: textblock
39555 #: ../src/guestfs.pod:2592
39556 msgid ""
39557 "The library turns them into progress callbacks (see L</"
39558 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
39559 "if not."
39560 msgstr ""
39561
39562 #. type: textblock
39563 #: ../src/guestfs.pod:2596
39564 msgid ""
39565 "The daemon self-limits the frequency of progress messages it sends (see "
39566 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39567 "messages."
39568 msgstr ""
39569
39570 #. type: =head1
39571 #: ../src/guestfs.pod:2600
39572 msgid "LIBGUESTFS VERSION NUMBERS"
39573 msgstr ""
39574
39575 #. type: textblock
39576 #: ../src/guestfs.pod:2602
39577 msgid ""
39578 "Since April 2010, libguestfs has started to make separate development and "
39579 "stable releases, along with corresponding branches in our git repository.  "
39580 "These separate releases can be identified by version number:"
39581 msgstr ""
39582
39583 #. type: verbatim
39584 #: ../src/guestfs.pod:2607
39585 #, no-wrap
39586 msgid ""
39587 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39588 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39589 "       |\n"
39590 "       v\n"
39591 " 1  .  3  .  5\n"
39592 " ^           ^\n"
39593 " |           |\n"
39594 " |           `-------- sub-version\n"
39595 " |\n"
39596 " `------ always '1' because we don't change the ABI\n"
39597 "\n"
39598 msgstr ""
39599
39600 #. type: textblock
39601 #: ../src/guestfs.pod:2618
39602 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39603 msgstr ""
39604
39605 #. type: textblock
39606 #: ../src/guestfs.pod:2620
39607 msgid ""
39608 "As time passes we cherry pick fixes from the development branch and backport "
39609 "those into the stable branch, the effect being that the stable branch should "
39610 "get more stable and less buggy over time.  So the stable releases are ideal "
39611 "for people who don't need new features but would just like the software to "
39612 "work."
39613 msgstr ""
39614
39615 #. type: textblock
39616 #: ../src/guestfs.pod:2626
39617 msgid "Our criteria for backporting changes are:"
39618 msgstr ""
39619
39620 #. type: textblock
39621 #: ../src/guestfs.pod:2632
39622 msgid ""
39623 "Documentation changes which don't affect any code are backported unless the "
39624 "documentation refers to a future feature which is not in stable."
39625 msgstr ""
39626
39627 #. type: textblock
39628 #: ../src/guestfs.pod:2638
39629 msgid ""
39630 "Bug fixes which are not controversial, fix obvious problems, and have been "
39631 "well tested are backported."
39632 msgstr ""
39633
39634 #. type: textblock
39635 #: ../src/guestfs.pod:2643
39636 msgid ""
39637 "Simple rearrangements of code which shouldn't affect how it works get "
39638 "backported.  This is so that the code in the two branches doesn't get too "
39639 "far out of step, allowing us to backport future fixes more easily."
39640 msgstr ""
39641
39642 #. type: textblock
39643 #: ../src/guestfs.pod:2649
39644 msgid ""
39645 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39646 "exceptional case: the new feature is required in order to implement an "
39647 "important bug fix."
39648 msgstr ""
39649
39650 #. type: textblock
39651 #: ../src/guestfs.pod:2655
39652 msgid ""
39653 "A new stable branch starts when we think the new features in development are "
39654 "substantial and compelling enough over the current stable branch to warrant "
39655 "it.  When that happens we create new stable and development versions 1.N.0 "
39656 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39657 "stable at this point, but by backporting fixes from development, that branch "
39658 "will stabilize over time."
39659 msgstr ""
39660
39661 #. type: =head1
39662 #: ../src/guestfs.pod:2663
39663 msgid "EXTENDING LIBGUESTFS"
39664 msgstr ""
39665
39666 #. type: =head2
39667 #: ../src/guestfs.pod:2665
39668 msgid "ADDING A NEW API ACTION"
39669 msgstr ""
39670
39671 #. type: textblock
39672 #: ../src/guestfs.pod:2667
39673 msgid ""
39674 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39675 "documentation) are generated, and this makes it easy to extend the "
39676 "libguestfs API."
39677 msgstr ""
39678
39679 #. type: textblock
39680 #: ../src/guestfs.pod:2671
39681 msgid "To add a new API action there are two changes:"
39682 msgstr ""
39683
39684 #. type: textblock
39685 #: ../src/guestfs.pod:2677
39686 msgid ""
39687 "You need to add a description of the call (name, parameters, return type, "
39688 "tests, documentation) to C<generator/generator_actions.ml>."
39689 msgstr ""
39690
39691 #. type: textblock
39692 #: ../src/guestfs.pod:2680
39693 msgid ""
39694 "There are two sorts of API action, depending on whether the call goes "
39695 "through to the daemon in the appliance, or is serviced entirely by the "
39696 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39697 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39698 "an example of the latter, since a trace flag is maintained in the handle and "
39699 "all tracing is done on the library side."
39700 msgstr ""
39701
39702 #. type: textblock
39703 #: ../src/guestfs.pod:2688
39704 msgid ""
39705 "Most new actions are of the first type, and get added to the "
39706 "C<daemon_functions> list.  Each function has a unique procedure number used "
39707 "in the RPC protocol which is assigned to that action when we publish "
39708 "libguestfs and cannot be reused.  Take the latest procedure number and "
39709 "increment it."
39710 msgstr ""
39711
39712 #. type: textblock
39713 #: ../src/guestfs.pod:2694
39714 msgid ""
39715 "For library-only actions of the second type, add to the "
39716 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39717 "library and do not travel over the RPC mechanism to the daemon, these "
39718 "functions do not need a procedure number, and so the procedure number is set "
39719 "to C<-1>."
39720 msgstr ""
39721
39722 #. type: textblock
39723 #: ../src/guestfs.pod:2702
39724 msgid "Implement the action (in C):"
39725 msgstr ""
39726
39727 #. type: textblock
39728 #: ../src/guestfs.pod:2704
39729 msgid ""
39730 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39731 "C<daemon/> directory."
39732 msgstr ""
39733
39734 #. type: textblock
39735 #: ../src/guestfs.pod:2707
39736 msgid ""
39737 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39738 "(note: double underscore) in the C<src/> directory."
39739 msgstr ""
39740
39741 #. type: textblock
39742 #: ../src/guestfs.pod:2710
39743 msgid "In either case, use another function as an example of what to do."
39744 msgstr ""
39745
39746 #. type: textblock
39747 #: ../src/guestfs.pod:2714
39748 msgid "After making these changes, use C<make> to compile."
39749 msgstr ""
39750
39751 #. type: textblock
39752 #: ../src/guestfs.pod:2716
39753 msgid ""
39754 "Note that you don't need to implement the RPC, language bindings, manual "
39755 "pages or anything else.  It's all automatically generated from the OCaml "
39756 "description."
39757 msgstr ""
39758
39759 #. type: =head2
39760 #: ../src/guestfs.pod:2720
39761 msgid "ADDING TESTS FOR AN API ACTION"
39762 msgstr ""
39763
39764 #. type: textblock
39765 #: ../src/guestfs.pod:2722
39766 msgid ""
39767 "You can supply zero or as many tests as you want per API call.  The tests "
39768 "can either be added as part of the API description (C<generator/"
39769 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
39770 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
39771 "slower, so if possible use the first method."
39772 msgstr ""
39773
39774 #. type: textblock
39775 #: ../src/guestfs.pod:2728
39776 msgid ""
39777 "The following describes the test environment used when you add an API test "
39778 "in C<generator_actions.ml>."
39779 msgstr ""
39780
39781 #. type: textblock
39782 #: ../src/guestfs.pod:2731
39783 msgid "The test environment has 4 block devices:"
39784 msgstr ""
39785
39786 #. type: =item
39787 #: ../src/guestfs.pod:2735
39788 msgid "C</dev/sda> 500MB"
39789 msgstr "C</dev/sda> 500 МБ"
39790
39791 #. type: textblock
39792 #: ../src/guestfs.pod:2737
39793 msgid "General block device for testing."
39794 msgstr ""
39795
39796 #. type: =item
39797 #: ../src/guestfs.pod:2739
39798 msgid "C</dev/sdb> 50MB"
39799 msgstr "C</dev/sdb> 50 МБ"
39800
39801 #. type: textblock
39802 #: ../src/guestfs.pod:2741
39803 msgid ""
39804 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39805 "operations."
39806 msgstr ""
39807
39808 #. type: =item
39809 #: ../src/guestfs.pod:2744
39810 msgid "C</dev/sdc> 10MB"
39811 msgstr "C</dev/sdc> 10 МБ"
39812
39813 #. type: textblock
39814 #: ../src/guestfs.pod:2746
39815 msgid "Used in a few tests where two block devices are needed."
39816 msgstr ""
39817
39818 #. type: =item
39819 #: ../src/guestfs.pod:2748
39820 msgid "C</dev/sdd>"
39821 msgstr "C</dev/sdd>"
39822
39823 #. type: textblock
39824 #: ../src/guestfs.pod:2750
39825 msgid "ISO with fixed content (see C<images/test.iso>)."
39826 msgstr ""
39827
39828 #. type: textblock
39829 #: ../src/guestfs.pod:2754
39830 msgid ""
39831 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39832 "appliance and block devices are reused between tests.  So don't try testing "
39833 "L</guestfs_kill_subprocess> :-x"
39834 msgstr ""
39835
39836 #. type: textblock
39837 #: ../src/guestfs.pod:2758
39838 msgid ""
39839 "Each test starts with an initial scenario, selected using one of the "
39840 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39841 "initialize the disks mentioned above in a particular way as documented in "
39842 "C<generator_types.ml>.  You should not assume anything about the previous "
39843 "contents of other disks that are not initialized."
39844 msgstr ""
39845
39846 #. type: textblock
39847 #: ../src/guestfs.pod:2764
39848 msgid ""
39849 "You can add a prerequisite clause to any individual test.  This is a run-"
39850 "time check, which, if it fails, causes the test to be skipped.  Useful if "
39851 "testing a command which might not work on all variations of libguestfs "
39852 "builds.  A test that has prerequisite of C<Always> means to run "
39853 "unconditionally."
39854 msgstr ""
39855
39856 #. type: textblock
39857 #: ../src/guestfs.pod:2770
39858 msgid ""
39859 "In addition, packagers can skip individual tests by setting environment "
39860 "variables before running C<make check>."
39861 msgstr ""
39862
39863 #. type: verbatim
39864 #: ../src/guestfs.pod:2773
39865 #, no-wrap
39866 msgid ""
39867 " SKIP_TEST_<CMD>_<NUM>=1\n"
39868 "\n"
39869 msgstr ""
39870
39871 #. type: textblock
39872 #: ../src/guestfs.pod:2775
39873 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39874 msgstr ""
39875
39876 #. type: textblock
39877 #: ../src/guestfs.pod:2777
39878 msgid "or:"
39879 msgstr "або:"
39880
39881 #. type: verbatim
39882 #: ../src/guestfs.pod:2779
39883 #, no-wrap
39884 msgid ""
39885 " SKIP_TEST_<CMD>=1\n"
39886 "\n"
39887 msgstr ""
39888
39889 #. type: textblock
39890 #: ../src/guestfs.pod:2781
39891 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39892 msgstr ""
39893
39894 #. type: textblock
39895 #: ../src/guestfs.pod:2783
39896 msgid "Packagers can run only certain tests by setting for example:"
39897 msgstr ""
39898
39899 #. type: verbatim
39900 #: ../src/guestfs.pod:2785
39901 #, no-wrap
39902 msgid ""
39903 " TEST_ONLY=\"vfs_type zerofree\"\n"
39904 "\n"
39905 msgstr ""
39906
39907 #. type: textblock
39908 #: ../src/guestfs.pod:2787
39909 msgid ""
39910 "See C<capitests/tests.c> for more details of how these environment variables "
39911 "work."
39912 msgstr ""
39913
39914 #. type: =head2
39915 #: ../src/guestfs.pod:2790
39916 msgid "DEBUGGING NEW API ACTIONS"
39917 msgstr ""
39918
39919 #. type: textblock
39920 #: ../src/guestfs.pod:2792
39921 msgid "Test new actions work before submitting them."
39922 msgstr ""
39923
39924 #. type: textblock
39925 #: ../src/guestfs.pod:2794
39926 msgid "You can use guestfish to try out new commands."
39927 msgstr ""
39928
39929 #. type: textblock
39930 #: ../src/guestfs.pod:2796
39931 msgid ""
39932 "Debugging the daemon is a problem because it runs inside a minimal "
39933 "environment.  However you can fprintf messages in the daemon to stderr, and "
39934 "they will show up if you use C<guestfish -v>."
39935 msgstr ""
39936
39937 #. type: =head2
39938 #: ../src/guestfs.pod:2800
39939 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
39940 msgstr ""
39941
39942 #. type: textblock
39943 #: ../src/guestfs.pod:2802
39944 msgid ""
39945 "Our C source code generally adheres to some basic code-formatting "
39946 "conventions.  The existing code base is not totally consistent on this "
39947 "front, but we do prefer that contributed code be formatted similarly.  In "
39948 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
39949 "indentation level, and other than that, follow the K&R style."
39950 msgstr ""
39951
39952 #. type: textblock
39953 #: ../src/guestfs.pod:2808
39954 msgid ""
39955 "If you use Emacs, add the following to one of one of your start-up files (e."
39956 "g., ~/.emacs), to help ensure that you get indentation right:"
39957 msgstr ""
39958
39959 #. type: verbatim
39960 #: ../src/guestfs.pod:2811
39961 #, no-wrap
39962 msgid ""
39963 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
39964 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
39965 " (add-hook 'find-file-hook\n"
39966 "     '(lambda () (if (and buffer-file-name\n"
39967 "                          (string-match \"/libguestfs\\\\>\"\n"
39968 "                              (buffer-file-name))\n"
39969 "                          (not (string-equal mode-name \"Change Log\"))\n"
39970 "                          (not (string-equal mode-name \"Makefile\")))\n"
39971 "                     (setq indent-tabs-mode nil))))\n"
39972 " \n"
39973 msgstr ""
39974
39975 #. type: verbatim
39976 #: ../src/guestfs.pod:2821
39977 #, no-wrap
39978 msgid ""
39979 " ;;; When editing C sources in libguestfs, use this style.\n"
39980 " (defun libguestfs-c-mode ()\n"
39981 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
39982 "   (interactive)\n"
39983 "   (c-set-style \"K&R\")\n"
39984 "   (setq c-indent-level 2)\n"
39985 "   (setq c-basic-offset 2))\n"
39986 " (add-hook 'c-mode-hook\n"
39987 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
39988 "                               (buffer-file-name))\n"
39989 "                           (libguestfs-c-mode))))\n"
39990 "\n"
39991 msgstr ""
39992
39993 #. type: textblock
39994 #: ../src/guestfs.pod:2833
39995 msgid "Enable warnings when compiling (and fix any problems this finds):"
39996 msgstr ""
39997
39998 #. type: verbatim
39999 #: ../src/guestfs.pod:2836
40000 #, no-wrap
40001 msgid ""
40002 " ./configure --enable-gcc-warnings\n"
40003 "\n"
40004 msgstr ""
40005 " ./configure --enable-gcc-warnings\n"
40006 "\n"
40007
40008 #. type: textblock
40009 #: ../src/guestfs.pod:2838
40010 msgid "Useful targets are:"
40011 msgstr ""
40012
40013 #. type: verbatim
40014 #: ../src/guestfs.pod:2840
40015 #, no-wrap
40016 msgid ""
40017 " make syntax-check  # checks the syntax of the C code\n"
40018 " make check         # runs the test suite\n"
40019 "\n"
40020 msgstr ""
40021
40022 #. type: =head2
40023 #: ../src/guestfs.pod:2843
40024 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40025 msgstr ""
40026
40027 #. type: textblock
40028 #: ../src/guestfs.pod:2845
40029 msgid ""
40030 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40031 "which are used to do shell quoting."
40032 msgstr ""
40033
40034 #. type: =item
40035 #: ../src/guestfs.pod:2850
40036 msgid "%Q"
40037 msgstr "%Q"
40038
40039 #. type: textblock
40040 #: ../src/guestfs.pod:2852
40041 msgid ""
40042 "Simple shell quoted string.  Any spaces or other shell characters are "
40043 "escaped for you."
40044 msgstr ""
40045
40046 #. type: =item
40047 #: ../src/guestfs.pod:2855
40048 msgid "%R"
40049 msgstr "%R"
40050
40051 #. type: textblock
40052 #: ../src/guestfs.pod:2857
40053 msgid ""
40054 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40055 "the sysroot."
40056 msgstr ""
40057
40058 #. type: verbatim
40059 #: ../src/guestfs.pod:2864
40060 #, no-wrap
40061 msgid ""
40062 " asprintf (&cmd, \"cat %R\", path);\n"
40063 "\n"
40064 msgstr ""
40065 " asprintf (&cmd, \"cat %R\", path);\n"
40066 "\n"
40067
40068 #. type: textblock
40069 #: ../src/guestfs.pod:2866
40070 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40071 msgstr ""
40072
40073 #. type: textblock
40074 #: ../src/guestfs.pod:2868
40075 msgid ""
40076 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
40077 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
40078 "they are not passed via the shell (instead, straight to exec).  You probably "
40079 "want to use the C<sysroot_path()> function however."
40080 msgstr ""
40081
40082 #. type: =head2
40083 #: ../src/guestfs.pod:2874
40084 msgid "SUBMITTING YOUR NEW API ACTIONS"
40085 msgstr ""
40086
40087 #. type: textblock
40088 #: ../src/guestfs.pod:2876
40089 msgid ""
40090 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
40091 "libguestfs> and CC to L<rjones@redhat.com>."
40092 msgstr ""
40093
40094 #. type: =head2
40095 #: ../src/guestfs.pod:2880
40096 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40097 msgstr ""
40098
40099 #. type: textblock
40100 #: ../src/guestfs.pod:2882
40101 msgid "We support i18n (gettext anyhow) in the library."
40102 msgstr ""
40103
40104 #. type: textblock
40105 #: ../src/guestfs.pod:2884
40106 msgid ""
40107 "However many messages come from the daemon, and we don't translate those at "
40108 "the moment.  One reason is that the appliance generally has all locale files "
40109 "removed from it, because they take up a lot of space.  So we'd have to readd "
40110 "some of those, as well as copying our PO files into the appliance."
40111 msgstr ""
40112
40113 #. type: textblock
40114 #: ../src/guestfs.pod:2890
40115 msgid ""
40116 "Debugging messages are never translated, since they are intended for the "
40117 "programmers."
40118 msgstr ""
40119
40120 #. type: =head2
40121 #: ../src/guestfs.pod:2893
40122 msgid "SOURCE CODE SUBDIRECTORIES"
40123 msgstr ""
40124
40125 #. type: =item
40126 #: ../src/guestfs.pod:2897
40127 msgid "C<align>"
40128 msgstr ""
40129
40130 #. type: textblock
40131 #: ../src/guestfs.pod:2899
40132 msgid "L<virt-alignment-scan(1)> command and documentation."
40133 msgstr ""
40134
40135 #. type: textblock
40136 #: ../src/guestfs.pod:2903
40137 msgid "The libguestfs appliance, build scripts and so on."
40138 msgstr ""
40139
40140 #. type: =item
40141 #: ../src/guestfs.pod:2905
40142 msgid "C<capitests>"
40143 msgstr "C<capitests>"
40144
40145 #. type: textblock
40146 #: ../src/guestfs.pod:2907
40147 msgid "Automated tests of the C API."
40148 msgstr ""
40149
40150 #. type: =item
40151 #: ../src/guestfs.pod:2909
40152 msgid "C<cat>"
40153 msgstr "C<cat>"
40154
40155 #. type: textblock
40156 #: ../src/guestfs.pod:2911
40157 msgid ""
40158 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40159 "documentation."
40160 msgstr ""
40161
40162 #. type: =item
40163 #: ../src/guestfs.pod:2914
40164 msgid "C<caution>"
40165 msgstr "C<caution>"
40166
40167 #. type: textblock
40168 #: ../src/guestfs.pod:2916
40169 msgid ""
40170 "Safety and liveness tests of components that libguestfs depends upon (not of "
40171 "libguestfs itself).  Mainly this is for qemu and the kernel."
40172 msgstr ""
40173
40174 #. type: =item
40175 #: ../src/guestfs.pod:2919
40176 msgid "C<clone>"
40177 msgstr ""
40178
40179 #. type: textblock
40180 #: ../src/guestfs.pod:2921
40181 msgid ""
40182 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
40183 "command and documentation."
40184 msgstr ""
40185
40186 #. type: =item
40187 #: ../src/guestfs.pod:2924
40188 msgid "C<contrib>"
40189 msgstr "C<contrib>"
40190
40191 #. type: textblock
40192 #: ../src/guestfs.pod:2926
40193 msgid "Outside contributions, experimental parts."
40194 msgstr ""
40195
40196 #. type: =item
40197 #: ../src/guestfs.pod:2928
40198 msgid "C<daemon>"
40199 msgstr "C<daemon>"
40200
40201 #. type: textblock
40202 #: ../src/guestfs.pod:2930
40203 msgid ""
40204 "The daemon that runs inside the libguestfs appliance and carries out actions."
40205 msgstr ""
40206
40207 #. type: =item
40208 #: ../src/guestfs.pod:2933
40209 msgid "C<df>"
40210 msgstr "C<df>"
40211
40212 #. type: textblock
40213 #: ../src/guestfs.pod:2935
40214 msgid "L<virt-df(1)> command and documentation."
40215 msgstr ""
40216
40217 #. type: =item
40218 #: ../src/guestfs.pod:2937
40219 msgid "C<edit>"
40220 msgstr "C<edit>"
40221
40222 #. type: textblock
40223 #: ../src/guestfs.pod:2939
40224 msgid "L<virt-edit(1)> command and documentation."
40225 msgstr ""
40226
40227 #. type: =item
40228 #: ../src/guestfs.pod:2941
40229 msgid "C<examples>"
40230 msgstr "C<examples>"
40231
40232 #. type: textblock
40233 #: ../src/guestfs.pod:2943
40234 msgid "C API example code."
40235 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
40236
40237 #. type: =item
40238 #: ../src/guestfs.pod:2945
40239 msgid "C<fish>"
40240 msgstr "C<fish>"
40241
40242 #. type: textblock
40243 #: ../src/guestfs.pod:2947
40244 msgid ""
40245 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
40246 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40247 "L<virt-tar-out(1)>."
40248 msgstr ""
40249
40250 #. type: =item
40251 #: ../src/guestfs.pod:2951
40252 msgid "C<fuse>"
40253 msgstr "C<fuse>"
40254
40255 #. type: textblock
40256 #: ../src/guestfs.pod:2953
40257 msgid ""
40258 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
40259 msgstr ""
40260
40261 #. type: =item
40262 #: ../src/guestfs.pod:2955
40263 msgid "C<generator>"
40264 msgstr "C<generator>"
40265
40266 #. type: textblock
40267 #: ../src/guestfs.pod:2957
40268 msgid ""
40269 "The crucially important generator, used to automatically generate large "
40270 "amounts of boilerplate C code for things like RPC and bindings."
40271 msgstr ""
40272
40273 #. type: =item
40274 #: ../src/guestfs.pod:2960
40275 msgid "C<images>"
40276 msgstr "C<images>"
40277
40278 #. type: textblock
40279 #: ../src/guestfs.pod:2962
40280 msgid "Files used by the test suite."
40281 msgstr ""
40282
40283 #. type: textblock
40284 #: ../src/guestfs.pod:2964
40285 msgid "Some \"phony\" guest images which we test against."
40286 msgstr ""
40287
40288 #. type: =item
40289 #: ../src/guestfs.pod:2966
40290 msgid "C<inspector>"
40291 msgstr "C<inspector>"
40292
40293 #. type: textblock
40294 #: ../src/guestfs.pod:2968
40295 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
40296 msgstr ""
40297
40298 #. type: =item
40299 #: ../src/guestfs.pod:2970
40300 msgid "C<logo>"
40301 msgstr "C<logo>"
40302
40303 #. type: textblock
40304 #: ../src/guestfs.pod:2972
40305 msgid "Logo used on the website.  The fish is called Arthur by the way."
40306 msgstr ""
40307
40308 #. type: =item
40309 #: ../src/guestfs.pod:2974
40310 msgid "C<m4>"
40311 msgstr "C<m4>"
40312
40313 #. type: textblock
40314 #: ../src/guestfs.pod:2976
40315 msgid "M4 macros used by autoconf."
40316 msgstr ""
40317
40318 #. type: =item
40319 #: ../src/guestfs.pod:2978
40320 msgid "C<po>"
40321 msgstr "C<po>"
40322
40323 #. type: textblock
40324 #: ../src/guestfs.pod:2980
40325 msgid "Translations of simple gettext strings."
40326 msgstr "Переклади простих рядків gettext."
40327
40328 #. type: =item
40329 #: ../src/guestfs.pod:2982
40330 msgid "C<po-docs>"
40331 msgstr "C<po-docs>"
40332
40333 #. type: textblock
40334 #: ../src/guestfs.pod:2984
40335 msgid ""
40336 "The build infrastructure and PO files for translations of manpages and POD "
40337 "files.  Eventually this will be combined with the C<po> directory, but that "
40338 "is rather complicated."
40339 msgstr ""
40340
40341 #. type: =item
40342 #: ../src/guestfs.pod:2988
40343 msgid "C<regressions>"
40344 msgstr "C<regressions>"
40345
40346 #. type: textblock
40347 #: ../src/guestfs.pod:2990
40348 msgid "Regression tests."
40349 msgstr "Тести на регресії."
40350
40351 #. type: =item
40352 #: ../src/guestfs.pod:2992
40353 msgid "C<rescue>"
40354 msgstr "C<rescue>"
40355
40356 #. type: textblock
40357 #: ../src/guestfs.pod:2994
40358 msgid "L<virt-rescue(1)> command and documentation."
40359 msgstr ""
40360
40361 #. type: =item
40362 #: ../src/guestfs.pod:2996
40363 msgid "C<resize>"
40364 msgstr ""
40365
40366 #. type: textblock
40367 #: ../src/guestfs.pod:2998
40368 msgid "L<virt-resize(1)> command and documentation."
40369 msgstr ""
40370
40371 #. type: =item
40372 #: ../src/guestfs.pod:3000
40373 msgid "C<sparsify>"
40374 msgstr ""
40375
40376 #. type: textblock
40377 #: ../src/guestfs.pod:3002
40378 msgid "L<virt-sparsify(1)> command and documentation."
40379 msgstr ""
40380
40381 #. type: =item
40382 #: ../src/guestfs.pod:3004
40383 msgid "C<src>"
40384 msgstr "C<src>"
40385
40386 #. type: textblock
40387 #: ../src/guestfs.pod:3006
40388 msgid "Source code to the C library."
40389 msgstr ""
40390
40391 #. type: =item
40392 #: ../src/guestfs.pod:3008
40393 msgid "C<tools>"
40394 msgstr "C<tools>"
40395
40396 #. type: textblock
40397 #: ../src/guestfs.pod:3010
40398 msgid ""
40399 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40400 msgstr ""
40401
40402 #. type: =item
40403 #: ../src/guestfs.pod:3012
40404 msgid "C<test-tool>"
40405 msgstr "C<test-tool>"
40406
40407 #. type: textblock
40408 #: ../src/guestfs.pod:3014
40409 msgid ""
40410 "Test tool for end users to test if their qemu/kernel combination will work "
40411 "with libguestfs."
40412 msgstr ""
40413
40414 #. type: =item
40415 #: ../src/guestfs.pod:3017
40416 msgid "C<csharp>"
40417 msgstr "C<csharp>"
40418
40419 #. type: =item
40420 #: ../src/guestfs.pod:3019
40421 msgid "C<erlang>"
40422 msgstr ""
40423
40424 #. type: =item
40425 #: ../src/guestfs.pod:3021
40426 msgid "C<haskell>"
40427 msgstr "C<haskell>"
40428
40429 #. type: =item
40430 #: ../src/guestfs.pod:3023
40431 msgid "C<java>"
40432 msgstr "C<java>"
40433
40434 #. type: =item
40435 #: ../src/guestfs.pod:3025
40436 msgid "C<ocaml>"
40437 msgstr "C<ocaml>"
40438
40439 #. type: =item
40440 #: ../src/guestfs.pod:3027
40441 msgid "C<php>"
40442 msgstr "C<php>"
40443
40444 #. type: =item
40445 #: ../src/guestfs.pod:3029
40446 msgid "C<perl>"
40447 msgstr "C<perl>"
40448
40449 #. type: =item
40450 #: ../src/guestfs.pod:3031
40451 msgid "C<python>"
40452 msgstr "C<python>"
40453
40454 #. type: =item
40455 #: ../src/guestfs.pod:3033
40456 msgid "C<ruby>"
40457 msgstr "C<ruby>"
40458
40459 #. type: textblock
40460 #: ../src/guestfs.pod:3035
40461 msgid "Language bindings."
40462 msgstr "Прив’язки до мов програмування."
40463
40464 #. type: =head2
40465 #: ../src/guestfs.pod:3039
40466 msgid "MAKING A STABLE RELEASE"
40467 msgstr ""
40468
40469 #. type: textblock
40470 #: ../src/guestfs.pod:3041
40471 msgid ""
40472 "When we make a stable release, there are several steps documented here.  See "
40473 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40474 "branch policy."
40475 msgstr ""
40476
40477 #. type: textblock
40478 #: ../src/guestfs.pod:3049
40479 msgid ""
40480 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40481 msgstr ""
40482
40483 #. type: textblock
40484 #: ../src/guestfs.pod:3054
40485 msgid "Finalize RELEASE-NOTES."
40486 msgstr ""
40487
40488 #. type: textblock
40489 #: ../src/guestfs.pod:3058
40490 msgid "Update ROADMAP."
40491 msgstr ""
40492
40493 #. type: textblock
40494 #: ../src/guestfs.pod:3062
40495 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40496 msgstr ""
40497
40498 #. type: textblock
40499 #: ../src/guestfs.pod:3066
40500 msgid "Push and pull from Transifex."
40501 msgstr ""
40502
40503 #. type: textblock
40504 #: ../src/guestfs.pod:3068
40505 msgid "Run:"
40506 msgstr ""
40507
40508 #. type: verbatim
40509 #: ../src/guestfs.pod:3070
40510 #, no-wrap
40511 msgid ""
40512 " tx push -s\n"
40513 "\n"
40514 msgstr ""
40515
40516 #. type: textblock
40517 #: ../src/guestfs.pod:3072
40518 msgid "to push the latest POT files to Transifex.  Then run:"
40519 msgstr ""
40520
40521 #. type: verbatim
40522 #: ../src/guestfs.pod:3074
40523 #, no-wrap
40524 msgid ""
40525 " ./tx-pull.sh\n"
40526 "\n"
40527 msgstr ""
40528
40529 #. type: textblock
40530 #: ../src/guestfs.pod:3076
40531 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40532 msgstr ""
40533
40534 #. type: textblock
40535 #: ../src/guestfs.pod:3080
40536 msgid ""
40537 "Create new stable and development directories under L<http://libguestfs.org/"
40538 "download>."
40539 msgstr ""
40540
40541 #. type: textblock
40542 #: ../src/guestfs.pod:3085
40543 msgid "Create the branch in git:"
40544 msgstr ""
40545
40546 #. type: verbatim
40547 #: ../src/guestfs.pod:3087
40548 #, no-wrap
40549 msgid ""
40550 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40551 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40552 " git branch stable-1.XX\n"
40553 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40554 "\n"
40555 msgstr ""
40556
40557 #. type: =head1
40558 #: ../src/guestfs.pod:3094
40559 msgid "LIMITS"
40560 msgstr "ОБМЕЖЕННЯ"
40561
40562 #. type: =head2
40563 #: ../src/guestfs.pod:3096
40564 msgid "PROTOCOL LIMITS"
40565 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
40566
40567 #. type: textblock
40568 #: ../src/guestfs.pod:3098
40569 msgid ""
40570 "Internally libguestfs uses a message-based protocol to pass API calls and "
40571 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40572 "plenty more detail about this).  The maximum message size used by the "
40573 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40574 "aware of this limit.  The API calls which may be affected are individually "
40575 "documented, with a link back to this section of the documentation."
40576 msgstr ""
40577
40578 #. type: textblock
40579 #: ../src/guestfs.pod:3106
40580 msgid ""
40581 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40582 "a simple string.  Because this string is at some point internally encoded as "
40583 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40584 "the requested file is larger than this then you will get an error."
40585 msgstr ""
40586
40587 #. type: textblock
40588 #: ../src/guestfs.pod:3112
40589 msgid ""
40590 "In order to transfer large files into and out of the guest filesystem, you "
40591 "need to use particular calls that support this.  The sections L</UPLOADING> "
40592 "and L</DOWNLOADING> document how to do this."
40593 msgstr ""
40594
40595 #. type: textblock
40596 #: ../src/guestfs.pod:3116
40597 msgid ""
40598 "You might also consider mounting the disk image using our FUSE filesystem "
40599 "support (L<guestmount(1)>)."
40600 msgstr ""
40601
40602 #. type: =head2
40603 #: ../src/guestfs.pod:3119
40604 msgid "MAXIMUM NUMBER OF DISKS"
40605 msgstr ""
40606
40607 #. type: textblock
40608 #: ../src/guestfs.pod:3121
40609 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40610 msgstr ""
40611
40612 #. type: textblock
40613 #: ../src/guestfs.pod:3124
40614 msgid ""
40615 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40616 "slots.  However febootstrap only understands disks with names C</dev/vda> "
40617 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40618 "purposes."
40619 msgstr ""
40620
40621 #. type: textblock
40622 #: ../src/guestfs.pod:3129
40623 msgid ""
40624 "We are working to substantially raise this limit in future versions but it "
40625 "requires complex changes to qemu."
40626 msgstr ""
40627
40628 #. type: textblock
40629 #: ../src/guestfs.pod:3132
40630 msgid ""
40631 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40632 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40633 "requires changes to qemu."
40634 msgstr ""
40635
40636 #. type: =head2
40637 #: ../src/guestfs.pod:3136
40638 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40639 msgstr ""
40640
40641 #. type: textblock
40642 #: ../src/guestfs.pod:3138
40643 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40644 msgstr ""
40645
40646 #. type: textblock
40647 #: ../src/guestfs.pod:3140
40648 msgid ""
40649 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
40650 "vda>, and C</dev/vda1> through C</dev/vda15>)."
40651 msgstr ""
40652
40653 #. type: textblock
40654 #: ../src/guestfs.pod:3143
40655 msgid ""
40656 "If you attach a disk with more than 15 partitions, the extra partitions are "
40657 "ignored by libguestfs."
40658 msgstr ""
40659
40660 #. type: =head2
40661 #: ../src/guestfs.pod:3146
40662 msgid "MAXIMUM SIZE OF A DISK"
40663 msgstr ""
40664
40665 #. type: textblock
40666 #: ../src/guestfs.pod:3148
40667 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40668 msgstr ""
40669
40670 #. type: textblock
40671 #: ../src/guestfs.pod:3150
40672 msgid ""
40673 "We have tested block devices up to 1 exabyte (2**60 or "
40674 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40675 "filesystem."
40676 msgstr ""
40677
40678 #. type: textblock
40679 #: ../src/guestfs.pod:3154
40680 msgid ""
40681 "Although libguestfs probably does not impose any limit, the underlying host "
40682 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40683 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40684 "TB).  If you store disk images as host logical volumes then you are limited "
40685 "by the maximum size of an LV."
40686 msgstr ""
40687
40688 #. type: textblock
40689 #: ../src/guestfs.pod:3160
40690 msgid ""
40691 "For the hugest disk image files, we recommend using XFS on the host for "
40692 "storage."
40693 msgstr ""
40694
40695 #. type: =head2
40696 #: ../src/guestfs.pod:3163
40697 msgid "MAXIMUM SIZE OF A PARTITION"
40698 msgstr ""
40699
40700 #. type: textblock
40701 #: ../src/guestfs.pod:3165
40702 msgid ""
40703 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40704 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40705 "address a partition located beyond 2 TB on the disk."
40706 msgstr ""
40707
40708 #. type: textblock
40709 #: ../src/guestfs.pod:3169
40710 msgid ""
40711 "It is recommended that you use GPT partitions on disks which are larger than "
40712 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40713 "which are theoretically larger than the largest disk we could support."
40714 msgstr ""
40715
40716 #. type: =head2
40717 #: ../src/guestfs.pod:3174
40718 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40719 msgstr ""
40720
40721 #. type: textblock
40722 #: ../src/guestfs.pod:3176
40723 msgid ""
40724 "This depends on the filesystem type.  libguestfs itself does not impose any "
40725 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40726 "what these limits are."
40727 msgstr ""
40728
40729 #. type: =head2
40730 #: ../src/guestfs.pod:3180
40731 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40732 msgstr ""
40733
40734 #. type: textblock
40735 #: ../src/guestfs.pod:3182
40736 msgid ""
40737 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
40738 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40739 "uploads and downloads."
40740 msgstr ""
40741
40742 #. type: =head2
40743 #: ../src/guestfs.pod:3186
40744 msgid "INSPECTION LIMITS"
40745 msgstr ""
40746
40747 #. type: textblock
40748 #: ../src/guestfs.pod:3188
40749 msgid ""
40750 "The inspection code has several arbitrary limits on things like the size of "
40751 "Windows Registry hive it will read, and the length of product name.  These "
40752 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40753 "memory and disk space on the host, and should not be reached in practice.  "
40754 "See the source code for more information."
40755 msgstr ""
40756
40757 #. type: textblock
40758 #: ../src/guestfs.pod:3214
40759 msgid ""
40760 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40761 "effect as calling C<guestfs_set_verbose (g, 1)>."
40762 msgstr ""
40763
40764 #. type: textblock
40765 #: ../src/guestfs.pod:3226
40766 msgid ""
40767 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40768 "the discussion of paths in section L</PATH> above."
40769 msgstr ""
40770
40771 #. type: textblock
40772 #: ../src/guestfs.pod:3235
40773 msgid "See also L</QEMU WRAPPERS> above."
40774 msgstr ""
40775
40776 #. type: textblock
40777 #: ../src/guestfs.pod:3239
40778 msgid ""
40779 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40780 "effect as calling C<guestfs_set_trace (g, 1)>."
40781 msgstr ""
40782
40783 #. type: textblock
40784 #: ../src/guestfs.pod:3257
40785 msgid ""
40786 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
40787 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
40788 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
40789 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
40790 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40791 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
40792 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
40793 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
40794 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
40795 ">, L<http://libguestfs.org/>."
40796 msgstr ""
40797
40798 #. type: textblock
40799 #: ../src/guestfs.pod:3293
40800 msgid ""
40801 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
40802 "(8)>, L<disktype(1)>."
40803 msgstr ""
40804
40805 #. type: =head1
40806 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:553
40807 #: ../tools/virt-win-reg.pl:761
40808 msgid "BUGS"
40809 msgstr "ВАДИ"
40810
40811 #. type: textblock
40812 #: ../src/guestfs.pod:3302
40813 msgid "To get a list of bugs against libguestfs use this link:"
40814 msgstr ""
40815 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
40816 "посиланням:"
40817
40818 #. type: textblock
40819 #: ../src/guestfs.pod:3304
40820 msgid ""
40821 "L<https://bugzilla.redhat.com/buglist.cgi?"
40822 "component=libguestfs&product=Virtualization+Tools>"
40823 msgstr ""
40824 "L<https://bugzilla.redhat.com/buglist.cgi?"
40825 "component=libguestfs&product=Virtualization+Tools>"
40826
40827 #. type: textblock
40828 #: ../src/guestfs.pod:3306
40829 msgid "To report a new bug against libguestfs use this link:"
40830 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
40831
40832 #. type: textblock
40833 #: ../src/guestfs.pod:3308
40834 msgid ""
40835 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40836 "component=libguestfs&product=Virtualization+Tools>"
40837 msgstr ""
40838 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40839 "component=libguestfs&product=Virtualization+Tools>"
40840
40841 #. type: textblock
40842 #: ../src/guestfs.pod:3310
40843 msgid "When reporting a bug, please check:"
40844 msgstr ""
40845
40846 #. type: textblock
40847 #: ../src/guestfs.pod:3316
40848 msgid "That the bug hasn't been reported already."
40849 msgstr ""
40850
40851 #. type: textblock
40852 #: ../src/guestfs.pod:3320
40853 msgid "That you are testing a recent version."
40854 msgstr ""
40855
40856 #. type: textblock
40857 #: ../src/guestfs.pod:3324
40858 msgid "Describe the bug accurately, and give a way to reproduce it."
40859 msgstr ""
40860
40861 #. type: textblock
40862 #: ../src/guestfs.pod:3328
40863 msgid ""
40864 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40865 "bug report."
40866 msgstr ""
40867
40868 #. type: textblock
40869 #: ../test-tool/libguestfs-test-tool.pod:5
40870 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40871 msgstr ""
40872
40873 #. type: verbatim
40874 #: ../test-tool/libguestfs-test-tool.pod:9
40875 #, no-wrap
40876 msgid ""
40877 " libguestfs-test-tool [--options]\n"
40878 "\n"
40879 msgstr ""
40880
40881 #. type: textblock
40882 #: ../test-tool/libguestfs-test-tool.pod:13
40883 msgid ""
40884 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40885 "to check basic libguestfs functionality is working.  This is needed because "
40886 "libguestfs occasionally breaks for reasons beyond our control: usually "
40887 "because of changes in the underlying qemu or kernel packages, or the host "
40888 "environment."
40889 msgstr ""
40890
40891 #. type: textblock
40892 #: ../test-tool/libguestfs-test-tool.pod:19
40893 msgid "If you suspect a problem in libguestfs, then just run:"
40894 msgstr ""
40895
40896 #. type: verbatim
40897 #: ../test-tool/libguestfs-test-tool.pod:21
40898 #, no-wrap
40899 msgid ""
40900 " libguestfs-test-tool\n"
40901 "\n"
40902 msgstr ""
40903
40904 #. type: textblock
40905 #: ../test-tool/libguestfs-test-tool.pod:23
40906 msgid "It will print lots of diagnostic messages."
40907 msgstr ""
40908
40909 #. type: textblock
40910 #: ../test-tool/libguestfs-test-tool.pod:25
40911 msgid "If it runs to completion successfully, you will see this near the end:"
40912 msgstr ""
40913
40914 #. type: verbatim
40915 #: ../test-tool/libguestfs-test-tool.pod:27
40916 #, no-wrap
40917 msgid ""
40918 " ===== TEST FINISHED OK =====\n"
40919 "\n"
40920 msgstr ""
40921
40922 #. type: textblock
40923 #: ../test-tool/libguestfs-test-tool.pod:29
40924 msgid "and the test tool will exit with code 0."
40925 msgstr ""
40926
40927 #. type: textblock
40928 #: ../test-tool/libguestfs-test-tool.pod:31
40929 msgid ""
40930 "If it fails (and/or exits with non-zero error code), please paste the "
40931 "I<complete, unedited> output of the test tool into a bug report.  More "
40932 "information about reporting bugs can be found on the L<http://libguestfs.org/"
40933 "> website."
40934 msgstr ""
40935
40936 #. type: textblock
40937 #: ../test-tool/libguestfs-test-tool.pod:42
40938 msgid "Display short usage information and exit."
40939 msgstr ""
40940
40941 #. type: =item
40942 #: ../test-tool/libguestfs-test-tool.pod:44
40943 msgid "B<--qemu qemu_binary>"
40944 msgstr ""
40945
40946 #. type: textblock
40947 #: ../test-tool/libguestfs-test-tool.pod:46
40948 msgid ""
40949 "If you have downloaded another qemu binary, point this option at the full "
40950 "path of the binary to try it."
40951 msgstr ""
40952
40953 #. type: =item
40954 #: ../test-tool/libguestfs-test-tool.pod:49
40955 msgid "B<--qemudir qemu_source_dir>"
40956 msgstr ""
40957
40958 #. type: textblock
40959 #: ../test-tool/libguestfs-test-tool.pod:51
40960 msgid ""
40961 "If you have compiled qemu from source, point this option at the source "
40962 "directory to try it."
40963 msgstr ""
40964
40965 #. type: =item
40966 #: ../test-tool/libguestfs-test-tool.pod:54
40967 msgid "B<-t N>"
40968 msgstr ""
40969
40970 #. type: =item
40971 #: ../test-tool/libguestfs-test-tool.pod:56
40972 msgid "B<--timeout N>"
40973 msgstr ""
40974
40975 #. type: textblock
40976 #: ../test-tool/libguestfs-test-tool.pod:58
40977 msgid ""
40978 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
40979 "minutes) which does not usually need to be adjusted."
40980 msgstr ""
40981
40982 #. type: =head1
40983 #: ../test-tool/libguestfs-test-tool.pod:63
40984 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
40985 msgstr ""
40986
40987 #. type: textblock
40988 #: ../test-tool/libguestfs-test-tool.pod:65
40989 msgid ""
40990 "If you have compiled another version of qemu from source and would like to "
40991 "try that, then you can use the I<--qemudir> option to point to the qemu "
40992 "source directory."
40993 msgstr ""
40994
40995 #. type: textblock
40996 #: ../test-tool/libguestfs-test-tool.pod:69
40997 msgid ""
40998 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
40999 "option to point to the binary."
41000 msgstr ""
41001
41002 #. type: textblock
41003 #: ../test-tool/libguestfs-test-tool.pod:72
41004 msgid ""
41005 "Note when using these options, you can ignore the business of qemu wrapper "
41006 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41007 "wrapper script for you if one is needed."
41008 msgstr ""
41009
41010 #. type: =head1
41011 #: ../test-tool/libguestfs-test-tool.pod:76
41012 msgid "TRYING OUT A DIFFERENT KERNEL"
41013 msgstr ""
41014
41015 #. type: textblock
41016 #: ../test-tool/libguestfs-test-tool.pod:78
41017 msgid ""
41018 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41019 "libguestfs tries.  You do this by setting the environment variables "
41020 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41021 msgstr ""
41022
41023 #. type: textblock
41024 #: ../test-tool/libguestfs-test-tool.pod:82
41025 msgid ""
41026 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41027 "information."
41028 msgstr ""
41029
41030 #. type: =head1
41031 #: ../test-tool/libguestfs-test-tool.pod:85
41032 msgid "SELF-DIAGNOSIS"
41033 msgstr ""
41034
41035 #. type: textblock
41036 #: ../test-tool/libguestfs-test-tool.pod:87
41037 msgid ""
41038 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41039 "produced by libguestfs-test-tool and/or possible errors."
41040 msgstr ""
41041
41042 #. type: textblock
41043 #: ../test-tool/libguestfs-test-tool.pod:92
41044 msgid ""
41045 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41046 "I<1> if there was an error."
41047 msgstr ""
41048
41049 #. type: textblock
41050 #: ../test-tool/libguestfs-test-tool.pod:97
41051 msgid ""
41052 "For the full list of environment variables which may affect libguestfs, "
41053 "please see the L<guestfs(3)> manual page."
41054 msgstr ""
41055
41056 #. type: textblock
41057 #: ../test-tool/libguestfs-test-tool.pod:102
41058 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41059 msgstr ""
41060
41061 #. type: textblock
41062 #: ../tools/virt-list-filesystems.pl:32
41063 msgid ""
41064 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41065 msgstr ""
41066
41067 #. type: verbatim
41068 #: ../tools/virt-list-filesystems.pl:36
41069 #, no-wrap
41070 msgid ""
41071 " virt-list-filesystems [--options] domname\n"
41072 "\n"
41073 msgstr ""
41074
41075 #. type: verbatim
41076 #: ../tools/virt-list-filesystems.pl:38
41077 #, no-wrap
41078 msgid ""
41079 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41080 "\n"
41081 msgstr ""
41082
41083 #. type: textblock
41084 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41085 msgid ""
41086 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
41087 "replacement."
41088 msgstr ""
41089
41090 #. type: textblock
41091 #: ../tools/virt-list-filesystems.pl:45
41092 msgid ""
41093 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41094 "are contained in a virtual machine or disk image."
41095 msgstr ""
41096
41097 #. type: textblock
41098 #: ../tools/virt-list-filesystems.pl:49
41099 msgid ""
41100 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41101 "functionality.  For more complex cases you should look at the L<guestfish(1)"
41102 "> tool."
41103 msgstr ""
41104
41105 #. type: textblock
41106 #: ../tools/virt-list-filesystems.pl:112
41107 msgid ""
41108 "With this option, C<virt-list-filesystems> displays the type of each "
41109 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41110 msgstr ""
41111
41112 #. type: =item
41113 #: ../tools/virt-list-filesystems.pl:119
41114 msgid "B<-a>"
41115 msgstr "B<-a>"
41116
41117 #. type: textblock
41118 #: ../tools/virt-list-filesystems.pl:123
41119 msgid ""
41120 "Normally we only show mountable filesystems.  If this option is given then "
41121 "swap devices are shown too."
41122 msgstr ""
41123
41124 #. type: textblock
41125 #: ../tools/virt-list-filesystems.pl:197
41126 msgid ""
41127 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41128 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41129 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41130 msgstr ""
41131 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41132 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41133 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41134
41135 #. type: textblock
41136 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41137 msgid "Copyright (C) 2009 Red Hat Inc."
41138 msgstr "© Red Hat Inc., 2009"
41139
41140 #. type: textblock
41141 #: ../tools/virt-list-partitions.pl:32
41142 msgid ""
41143 "virt-list-partitions - List partitions in a virtual machine or disk image"
41144 msgstr ""
41145
41146 #. type: verbatim
41147 #: ../tools/virt-list-partitions.pl:36
41148 #, no-wrap
41149 msgid ""
41150 " virt-list-partitions [--options] domname\n"
41151 "\n"
41152 msgstr ""
41153 " virt-list-partitions [--параметри] назва_домену\n"
41154 "\n"
41155
41156 #. type: verbatim
41157 #: ../tools/virt-list-partitions.pl:38
41158 #, no-wrap
41159 msgid ""
41160 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41161 "\n"
41162 msgstr ""
41163 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
41164 "\n"
41165
41166 #. type: textblock
41167 #: ../tools/virt-list-partitions.pl:45
41168 msgid ""
41169 "C<virt-list-partitions> is a command line tool to list the partitions that "
41170 "are contained in a virtual machine or disk image.  It is mainly useful as a "
41171 "first step to using L<virt-resize(1)>."
41172 msgstr ""
41173
41174 #. type: textblock
41175 #: ../tools/virt-list-partitions.pl:50
41176 msgid ""
41177 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41178 "functionality.  For more complex cases you should look at the L<guestfish(1)"
41179 "> tool."
41180 msgstr ""
41181
41182 #. type: textblock
41183 #: ../tools/virt-list-partitions.pl:113
41184 msgid "Show sizes in human-readable form (eg. \"1G\")."
41185 msgstr ""
41186
41187 #. type: textblock
41188 #: ../tools/virt-list-partitions.pl:123
41189 msgid ""
41190 "With this option, C<virt-list-partitions> displays the type and size of each "
41191 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41192 msgstr ""
41193
41194 #. type: =item
41195 #: ../tools/virt-list-partitions.pl:130
41196 msgid "B<-t>"
41197 msgstr "B<-t>"
41198
41199 #. type: =item
41200 #: ../tools/virt-list-partitions.pl:132
41201 msgid "B<--total>"
41202 msgstr "B<--total>"
41203
41204 #. type: textblock
41205 #: ../tools/virt-list-partitions.pl:134
41206 msgid ""
41207 "Display the total size of each block device (as a separate row or rows)."
41208 msgstr ""
41209
41210 #. type: textblock
41211 #: ../tools/virt-list-partitions.pl:267
41212 msgid ""
41213 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41214 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41215 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41216 msgstr ""
41217 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41218 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41219 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41220
41221 #. type: textblock
41222 #: ../tools/virt-list-partitions.pl:283
41223 msgid "Copyright (C) 2009-2010 Red Hat Inc."
41224 msgstr "© Red Hat Inc., 2009–2010"
41225
41226 #. type: textblock
41227 #: ../tools/virt-make-fs.pl:37
41228 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
41229 msgstr ""
41230
41231 #. type: verbatim
41232 #: ../tools/virt-make-fs.pl:41
41233 #, no-wrap
41234 msgid ""
41235 " virt-make-fs [--options] input.tar output.img\n"
41236 "\n"
41237 msgstr ""
41238
41239 #. type: verbatim
41240 #: ../tools/virt-make-fs.pl:43
41241 #, no-wrap
41242 msgid ""
41243 " virt-make-fs [--options] input.tar.gz output.img\n"
41244 "\n"
41245 msgstr ""
41246
41247 #. type: verbatim
41248 #: ../tools/virt-make-fs.pl:45
41249 #, no-wrap
41250 msgid ""
41251 " virt-make-fs [--options] directory output.img\n"
41252 "\n"
41253 msgstr ""
41254
41255 #. type: textblock
41256 #: ../tools/virt-make-fs.pl:49
41257 msgid ""
41258 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
41259 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
41260 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
41261 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
41262 "you want to attach these filesystems to existing virtual machines (eg. to "
41263 "import large amounts of read-only data to a VM)."
41264 msgstr ""
41265
41266 #. type: textblock
41267 #: ../tools/virt-make-fs.pl:57
41268 msgid "Basic usage is:"
41269 msgstr ""
41270
41271 #. type: verbatim
41272 #: ../tools/virt-make-fs.pl:59
41273 #, no-wrap
41274 msgid ""
41275 " virt-make-fs input output\n"
41276 "\n"
41277 msgstr ""
41278
41279 #. type: textblock
41280 #: ../tools/virt-make-fs.pl:61
41281 msgid ""
41282 "where C<input> is either a directory containing files that you want to add, "
41283 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
41284 "C<output> is a disk image.  The input type is detected automatically.  The "
41285 "output disk image defaults to a raw ext2 image unless you specify extra "
41286 "flags (see L</OPTIONS> below)."
41287 msgstr ""
41288
41289 #. type: =head2
41290 #: ../tools/virt-make-fs.pl:67
41291 msgid "EXTRA SPACE"
41292 msgstr ""
41293
41294 #. type: textblock
41295 #: ../tools/virt-make-fs.pl:69
41296 msgid ""
41297 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41298 "the files that it contains, but might have extra space.  Depending on how "
41299 "you are going to use the output, you might think this extra space is wasted "
41300 "and want to minimize it, or you might want to leave space so that more files "
41301 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
41302 "but you can use the I<--size> flag to leave space in the filesystem if you "
41303 "want it."
41304 msgstr ""
41305
41306 #. type: textblock
41307 #: ../tools/virt-make-fs.pl:77
41308 msgid ""
41309 "An alternative way to leave extra space but not make the output image any "
41310 "bigger is to use an alternative disk image format (instead of the default "
41311 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41312 "image format (check your hypervisor supports this before using it).  This "
41313 "allows you to choose a large I<--size> but the extra space won't actually be "
41314 "allocated in the image until you try to store something in it."
41315 msgstr ""
41316
41317 #. type: textblock
41318 #: ../tools/virt-make-fs.pl:85
41319 msgid ""
41320 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41321 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41322 "to build another image from scratch."
41323 msgstr ""
41324
41325 #. type: =head3
41326 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
41327 #: ../tools/virt-make-fs.pl:142
41328 msgid "EXAMPLE"
41329 msgstr "ПРИКЛАД"
41330
41331 #. type: verbatim
41332 #: ../tools/virt-make-fs.pl:91
41333 #, no-wrap
41334 msgid ""
41335 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41336 "\n"
41337 msgstr ""
41338 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41339 "\n"
41340
41341 #. type: =head2
41342 #: ../tools/virt-make-fs.pl:93
41343 msgid "FILESYSTEM TYPE"
41344 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
41345
41346 #. type: textblock
41347 #: ../tools/virt-make-fs.pl:95
41348 msgid ""
41349 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
41350 "libguestfs supports can be used (but I<not> read-only formats like "
41351 "ISO9660).  Here are some of the more common choices:"
41352 msgstr ""
41353
41354 #. type: =item
41355 #: ../tools/virt-make-fs.pl:101
41356 msgid "I<ext3>"
41357 msgstr "I<ext3>"
41358
41359 #. type: textblock
41360 #: ../tools/virt-make-fs.pl:103
41361 msgid ""
41362 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
41363 "you are not going to use the filesystem in a way that requires the journal, "
41364 "then this is just wasted overhead."
41365 msgstr ""
41366
41367 #. type: =item
41368 #: ../tools/virt-make-fs.pl:107
41369 msgid "I<ntfs> or I<vfat>"
41370 msgstr "I<ntfs> або I<vfat>"
41371
41372 #. type: textblock
41373 #: ../tools/virt-make-fs.pl:109
41374 msgid "Useful if exporting data to a Windows guest."
41375 msgstr ""
41376
41377 #. type: textblock
41378 #: ../tools/virt-make-fs.pl:111
41379 msgid ""
41380 "I<Note for vfat>: The tar archive or local directory must only contain files "
41381 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
41382 "program running within libguestfs is unable to change the ownership of non-"
41383 "root files, since vfat itself does not support this."
41384 msgstr ""
41385
41386 #. type: =item
41387 #: ../tools/virt-make-fs.pl:116
41388 msgid "I<minix>"
41389 msgstr "I<minix>"
41390
41391 #. type: textblock
41392 #: ../tools/virt-make-fs.pl:118
41393 msgid ""
41394 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41395 "total filesystem size."
41396 msgstr ""
41397
41398 #. type: verbatim
41399 #: ../tools/virt-make-fs.pl:125
41400 #, no-wrap
41401 msgid ""
41402 " virt-make-fs --type=minix input minixfs.img\n"
41403 "\n"
41404 msgstr ""
41405
41406 #. type: =head2
41407 #: ../tools/virt-make-fs.pl:127
41408 msgid "TO PARTITION OR NOT TO PARTITION"
41409 msgstr ""
41410
41411 #. type: textblock
41412 #: ../tools/virt-make-fs.pl:129
41413 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41414 msgstr ""
41415
41416 #. type: textblock
41417 #: ../tools/virt-make-fs.pl:131
41418 msgid ""
41419 "Adding a partition can make the disk image more compatible with certain "
41420 "virtualized operating systems which don't expect to see a filesystem "
41421 "directly located on a block device (Linux doesn't care and will happily "
41422 "handle both types)."
41423 msgstr ""
41424
41425 #. type: textblock
41426 #: ../tools/virt-make-fs.pl:136
41427 msgid ""
41428 "On the other hand, if you have a partition table then the output image is no "
41429 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
41430 "directly on a partitioned disk image.  (However libguestfs tools such as "
41431 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41432 msgstr ""
41433
41434 #. type: textblock
41435 #: ../tools/virt-make-fs.pl:144
41436 msgid "Add an MBR partition:"
41437 msgstr ""
41438
41439 #. type: verbatim
41440 #: ../tools/virt-make-fs.pl:146
41441 #, no-wrap
41442 msgid ""
41443 " virt-make-fs --partition -- input disk.img\n"
41444 "\n"
41445 msgstr ""
41446
41447 #. type: textblock
41448 #: ../tools/virt-make-fs.pl:148
41449 msgid ""
41450 "If the output disk image could be terabyte-sized or larger, it's better to "
41451 "use an EFI/GPT-compatible partition table:"
41452 msgstr ""
41453
41454 #. type: verbatim
41455 #: ../tools/virt-make-fs.pl:151
41456 #, no-wrap
41457 msgid ""
41458 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41459 "\n"
41460 msgstr ""
41461
41462 #. type: textblock
41463 #: ../tools/virt-make-fs.pl:179
41464 msgid "Enable debugging information."
41465 msgstr "Увімкнути виведення діагностичних даних."
41466
41467 #. type: =item
41468 #: ../tools/virt-make-fs.pl:185
41469 msgid "B<--size=E<lt>NE<gt>>"
41470 msgstr "B<--size=E<lt>NE<gt>>"
41471
41472 #. type: =item
41473 #: ../tools/virt-make-fs.pl:187
41474 msgid "B<--size=+E<lt>NE<gt>>"
41475 msgstr "B<--size=+E<lt>NE<gt>>"
41476
41477 #. type: =item
41478 #: ../tools/virt-make-fs.pl:189
41479 msgid "B<-s E<lt>NE<gt>>"
41480 msgstr "B<-s E<lt>NE<gt>>"
41481
41482 #. type: =item
41483 #: ../tools/virt-make-fs.pl:191
41484 msgid "B<-s +E<lt>NE<gt>>"
41485 msgstr "B<-s +E<lt>NE<gt>>"
41486
41487 #. type: textblock
41488 #: ../tools/virt-make-fs.pl:193
41489 msgid ""
41490 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41491 msgstr ""
41492
41493 #. type: textblock
41494 #: ../tools/virt-make-fs.pl:196
41495 msgid ""
41496 "If this option is I<not> given, then the output image will be just large "
41497 "enough to contain all the files, with not much wasted space."
41498 msgstr ""
41499
41500 #. type: textblock
41501 #: ../tools/virt-make-fs.pl:199
41502 msgid ""
41503 "To choose a fixed size output disk, specify an absolute number followed by b/"
41504 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41505 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41506 "files, else you will get an error."
41507 msgstr ""
41508
41509 #. type: textblock
41510 #: ../tools/virt-make-fs.pl:204
41511 msgid ""
41512 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
41513 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41514 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41515 "the input files, and (approximately) an extra 200 MB free space."
41516 msgstr ""
41517
41518 #. type: textblock
41519 #: ../tools/virt-make-fs.pl:210
41520 msgid ""
41521 "Note that virt-make-fs estimates free space, and therefore will not produce "
41522 "filesystems containing precisely the free space requested.  (It is much more "
41523 "expensive and time-consuming to produce a filesystem which has precisely the "
41524 "desired free space)."
41525 msgstr ""
41526
41527 #. type: =item
41528 #: ../tools/virt-make-fs.pl:219
41529 msgid "B<--format=E<lt>fmtE<gt>>"
41530 msgstr ""
41531
41532 #. type: =item
41533 #: ../tools/virt-make-fs.pl:221
41534 msgid "B<-F E<lt>fmtE<gt>>"
41535 msgstr ""
41536
41537 #. type: textblock
41538 #: ../tools/virt-make-fs.pl:223
41539 msgid "Choose the output disk image format."
41540 msgstr ""
41541
41542 #. type: textblock
41543 #: ../tools/virt-make-fs.pl:225
41544 msgid "The default is C<raw> (raw disk image)."
41545 msgstr ""
41546
41547 #. type: textblock
41548 #: ../tools/virt-make-fs.pl:227
41549 msgid ""
41550 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41551 "that would really make sense here is C<qcow2>."
41552 msgstr ""
41553
41554 #. type: =item
41555 #: ../tools/virt-make-fs.pl:234
41556 msgid "B<--type=E<lt>fsE<gt>>"
41557 msgstr ""
41558
41559 #. type: =item
41560 #: ../tools/virt-make-fs.pl:236
41561 msgid "B<-t E<lt>fsE<gt>>"
41562 msgstr ""
41563
41564 #. type: textblock
41565 #: ../tools/virt-make-fs.pl:238
41566 msgid "Choose the output filesystem type."
41567 msgstr ""
41568
41569 #. type: textblock
41570 #: ../tools/virt-make-fs.pl:240
41571 msgid "The default is C<ext2>."
41572 msgstr "Типовим значенням є C<ext2>."
41573
41574 #. type: textblock
41575 #: ../tools/virt-make-fs.pl:242
41576 msgid ""
41577 "Any filesystem which is supported read-write by libguestfs can be used here."
41578 msgstr ""
41579
41580 #. type: =item
41581 #: ../tools/virt-make-fs.pl:249
41582 msgid "B<--partition>"
41583 msgstr "B<--partition>"
41584
41585 #. type: =item
41586 #: ../tools/virt-make-fs.pl:251
41587 msgid "B<--partition=E<lt>parttypeE<gt>>"
41588 msgstr ""
41589
41590 #. type: textblock
41591 #: ../tools/virt-make-fs.pl:253
41592 msgid ""
41593 "If specified, this flag adds an MBR partition table to the output disk image."
41594 msgstr ""
41595
41596 #. type: textblock
41597 #: ../tools/virt-make-fs.pl:256
41598 msgid ""
41599 "You can change the partition table type, eg. I<--partition=gpt> for large "
41600 "disks."
41601 msgstr ""
41602
41603 #. type: textblock
41604 #: ../tools/virt-make-fs.pl:259
41605 msgid ""
41606 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41607 "might consider the next parameter to be the partition type.  For example:"
41608 msgstr ""
41609
41610 #. type: verbatim
41611 #: ../tools/virt-make-fs.pl:263
41612 #, no-wrap
41613 msgid ""
41614 " virt-make-fs --partition input.tar ...\n"
41615 "\n"
41616 msgstr ""
41617 " virt-make-fs --partition input.tar ...\n"
41618 "\n"
41619
41620 #. type: textblock
41621 #: ../tools/virt-make-fs.pl:265
41622 msgid ""
41623 "would cause virt-make-fs to think you wanted to use a partition type of "
41624 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41625 "dash) between options and the input file argument:"
41626 msgstr ""
41627
41628 #. type: verbatim
41629 #: ../tools/virt-make-fs.pl:269
41630 #, no-wrap
41631 msgid ""
41632 " virt-make-fs --partition -- input.tar ...\n"
41633 "\n"
41634 msgstr ""
41635 " virt-make-fs --partition -- input.tar ...\n"
41636 "\n"
41637
41638 #. type: textblock
41639 #: ../tools/virt-make-fs.pl:541
41640 msgid ""
41641 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41642 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41643 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41644 msgstr ""
41645 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41646 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41647 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41648
41649 #. type: textblock
41650 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
41651 msgid ""
41652 "When reporting bugs, please enable debugging and capture the I<complete> "
41653 "output:"
41654 msgstr ""
41655
41656 #. type: verbatim
41657 #: ../tools/virt-make-fs.pl:558
41658 #, no-wrap
41659 msgid ""
41660 " export LIBGUESTFS_DEBUG=1\n"
41661 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41662 "\n"
41663 msgstr ""
41664 " export LIBGUESTFS_DEBUG=1\n"
41665 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41666 "\n"
41667
41668 #. type: textblock
41669 #: ../tools/virt-make-fs.pl:561
41670 msgid ""
41671 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
41672 "redhat.com/>"
41673 msgstr ""
41674
41675 #. type: textblock
41676 #: ../tools/virt-tar.pl:33
41677 msgid "virt-tar - Extract or upload files to a virtual machine"
41678 msgstr ""
41679
41680 #. type: verbatim
41681 #: ../tools/virt-tar.pl:37
41682 #, no-wrap
41683 msgid ""
41684 " virt-tar [--options] -x domname directory tarball\n"
41685 "\n"
41686 msgstr ""
41687
41688 #. type: verbatim
41689 #: ../tools/virt-tar.pl:39
41690 #, no-wrap
41691 msgid ""
41692 " virt-tar [--options] -u domname tarball directory\n"
41693 "\n"
41694 msgstr ""
41695
41696 #. type: verbatim
41697 #: ../tools/virt-tar.pl:41
41698 #, no-wrap
41699 msgid ""
41700 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41701 "\n"
41702 msgstr ""
41703
41704 #. type: verbatim
41705 #: ../tools/virt-tar.pl:43
41706 #, no-wrap
41707 msgid ""
41708 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41709 "\n"
41710 msgstr ""
41711
41712 #. type: =head2
41713 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41714 msgid "NOTE"
41715 msgstr "ПРИМІТКА"
41716
41717 #. type: textblock
41718 #: ../tools/virt-tar.pl:47
41719 msgid ""
41720 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
41721 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
41722 msgstr ""
41723
41724 #. type: textblock
41725 #: ../tools/virt-tar.pl:52
41726 msgid "Download C</home> from the VM into a local tarball:"
41727 msgstr ""
41728
41729 #. type: verbatim
41730 #: ../tools/virt-tar.pl:54
41731 #, no-wrap
41732 msgid ""
41733 " virt-tar -x domname /home home.tar\n"
41734 "\n"
41735 msgstr ""
41736
41737 #. type: verbatim
41738 #: ../tools/virt-tar.pl:56
41739 #, no-wrap
41740 msgid ""
41741 " virt-tar -zx domname /home home.tar.gz\n"
41742 "\n"
41743 msgstr ""
41744
41745 #. type: textblock
41746 #: ../tools/virt-tar.pl:58
41747 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41748 msgstr ""
41749
41750 #. type: verbatim
41751 #: ../tools/virt-tar.pl:60
41752 #, no-wrap
41753 msgid ""
41754 " virt-tar -u domname uploadstuff.tar /tmp\n"
41755 "\n"
41756 msgstr ""
41757
41758 #. type: verbatim
41759 #: ../tools/virt-tar.pl:62
41760 #, no-wrap
41761 msgid ""
41762 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41763 "\n"
41764 msgstr ""
41765
41766 #. type: textblock
41767 #: ../tools/virt-tar.pl:66
41768 msgid ""
41769 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41770 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41771 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41772 msgstr ""
41773
41774 #. type: textblock
41775 #: ../tools/virt-tar.pl:71
41776 msgid ""
41777 "You can use I<-x> (extract) on live virtual machines, but you might get "
41778 "inconsistent results or errors if there is filesystem activity inside the "
41779 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41780 "work, but the only way to guarantee consistent results is if the virtual "
41781 "machine is shut down."
41782 msgstr ""
41783
41784 #. type: textblock
41785 #: ../tools/virt-tar.pl:79
41786 msgid ""
41787 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41788 "parts of a guest filesystem.  There are many possibilities: making backups, "
41789 "uploading data files, snooping on guest activity, fixing or customizing "
41790 "guests, etc."
41791 msgstr ""
41792
41793 #. type: textblock
41794 #: ../tools/virt-tar.pl:84
41795 msgid ""
41796 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41797 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41798 "should look at the L<guestfish(1)> tool."
41799 msgstr ""
41800
41801 #. type: textblock
41802 #: ../tools/virt-tar.pl:88
41803 msgid ""
41804 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41805 "its contents (recursively) from the virtual machine into a local tarball.  "
41806 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41807 "virtual machine.  You cannot use these two options together."
41808 msgstr ""
41809
41810 #. type: textblock
41811 #: ../tools/virt-tar.pl:94
41812 msgid ""
41813 "In addition, you may need to use the I<-z> (gZip) option to enable "
41814 "compression.  When uploading, you have to specify I<-z> if the upload file "
41815 "is compressed because virt-tar won't detect this on its own."
41816 msgstr ""
41817
41818 #. type: textblock
41819 #: ../tools/virt-tar.pl:98
41820 msgid ""
41821 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41822 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41823 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41824 "the L<libguestfs(3)> API)."
41825 msgstr ""
41826
41827 #. type: =item
41828 #: ../tools/virt-tar.pl:160
41829 msgid "B<--extract>"
41830 msgstr "B<--extract>"
41831
41832 #. type: =item
41833 #: ../tools/virt-tar.pl:162
41834 msgid "B<--download>"
41835 msgstr "B<--download>"
41836
41837 #. type: =item
41838 #: ../tools/virt-tar.pl:164
41839 msgid "B<-u>"
41840 msgstr "B<-u>"
41841
41842 #. type: =item
41843 #: ../tools/virt-tar.pl:166
41844 msgid "B<--upload>"
41845 msgstr "B<--upload>"
41846
41847 #. type: textblock
41848 #: ../tools/virt-tar.pl:168
41849 msgid ""
41850 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41851 "local tarball."
41852 msgstr ""
41853
41854 #. type: textblock
41855 #: ../tools/virt-tar.pl:171
41856 msgid ""
41857 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41858 "Please read the L</WARNING> section above before using this option."
41859 msgstr ""
41860
41861 #. type: textblock
41862 #: ../tools/virt-tar.pl:175
41863 msgid "You must specify exactly one of these options."
41864 msgstr ""
41865
41866 #. type: =item
41867 #: ../tools/virt-tar.pl:181
41868 msgid "B<-z>"
41869 msgstr "B<-z>"
41870
41871 #. type: =item
41872 #: ../tools/virt-tar.pl:183
41873 msgid "B<--gzip>"
41874 msgstr "B<--gzip>"
41875
41876 #. type: textblock
41877 #: ../tools/virt-tar.pl:185
41878 msgid "Specify that the input or output tarball is gzip-compressed."
41879 msgstr ""
41880
41881 #. type: textblock
41882 #: ../tools/virt-tar.pl:298
41883 msgid ""
41884 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41885 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
41886 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
41887 "org/>."
41888 msgstr ""
41889 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41890 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
41891 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
41892 "org/>."
41893
41894 #. type: textblock
41895 #: ../tools/virt-win-reg.pl:37
41896 msgid ""
41897 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
41898 msgstr ""
41899
41900 #. type: verbatim
41901 #: ../tools/virt-win-reg.pl:41
41902 #, no-wrap
41903 msgid ""
41904 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41905 "\n"
41906 msgstr ""
41907
41908 #. type: verbatim
41909 #: ../tools/virt-win-reg.pl:43
41910 #, no-wrap
41911 msgid ""
41912 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41913 "\n"
41914 msgstr ""
41915
41916 #. type: verbatim
41917 #: ../tools/virt-win-reg.pl:45
41918 #, no-wrap
41919 msgid ""
41920 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41921 "\n"
41922 msgstr ""
41923
41924 #. type: verbatim
41925 #: ../tools/virt-win-reg.pl:47
41926 #, no-wrap
41927 msgid ""
41928 " virt-win-reg --merge domname [input.reg ...]\n"
41929 "\n"
41930 msgstr ""
41931
41932 #. type: verbatim
41933 #: ../tools/virt-win-reg.pl:49
41934 #, no-wrap
41935 msgid ""
41936 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41937 "\n"
41938 msgstr ""
41939
41940 #. type: textblock
41941 #: ../tools/virt-win-reg.pl:53
41942 msgid ""
41943 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41944 "virtual machines.  If you do this, you I<will> get irreversible disk "
41945 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
41946 "but doesn't catch all cases."
41947 msgstr ""
41948
41949 #. type: textblock
41950 #: ../tools/virt-win-reg.pl:58
41951 msgid ""
41952 "Modifying the Windows Registry is an inherently risky operation.  The format "
41953 "is deliberately obscure and undocumented, and Registry changes can leave the "
41954 "system unbootable.  Therefore when using the I<--merge> option, make sure "
41955 "you have a reliable backup first."
41956 msgstr ""
41957
41958 #. type: textblock
41959 #: ../tools/virt-win-reg.pl:65
41960 msgid ""
41961 "This program can export and merge Windows Registry entries from a Windows "
41962 "guest."
41963 msgstr ""
41964
41965 #. type: textblock
41966 #: ../tools/virt-win-reg.pl:68
41967 msgid ""
41968 "The first parameter is the libvirt guest name or the raw disk image of a "
41969 "Windows guest."
41970 msgstr ""
41971
41972 #. type: textblock
41973 #: ../tools/virt-win-reg.pl:71
41974 msgid ""
41975 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
41976 "exported (recursively).  For example:"
41977 msgstr ""
41978
41979 #. type: verbatim
41980 #: ../tools/virt-win-reg.pl:74
41981 #, no-wrap
41982 msgid ""
41983 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
41984 "\n"
41985 msgstr ""
41986 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
41987 "\n"
41988
41989 #. type: textblock
41990 #: ../tools/virt-win-reg.pl:76
41991 msgid ""
41992 "You can also display single values from within registry keys, for example:"
41993 msgstr ""
41994
41995 #. type: verbatim
41996 #: ../tools/virt-win-reg.pl:79
41997 #, no-wrap
41998 msgid ""
41999 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42000 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42001 " Windows 7 Enterprise\n"
42002 "\n"
42003 msgstr ""
42004 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42005 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42006 " Windows 7 Enterprise\n"
42007 "\n"
42008
42009 #. type: textblock
42010 #: ../tools/virt-win-reg.pl:83
42011 msgid ""
42012 "With I<--merge>, you can merge a textual regedit file into the Windows "
42013 "Registry:"
42014 msgstr ""
42015
42016 #. type: verbatim
42017 #: ../tools/virt-win-reg.pl:86
42018 #, no-wrap
42019 msgid ""
42020 " $ virt-win-reg --merge Windows7 changes.reg\n"
42021 "\n"
42022 msgstr ""
42023 " $ virt-win-reg --merge Windows7 changes.reg\n"
42024 "\n"
42025
42026 #. type: textblock
42027 #: ../tools/virt-win-reg.pl:90
42028 msgid ""
42029 "This program is only meant for simple access to the registry.  If you want "
42030 "to do complicated things with the registry, we suggest you download the "
42031 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42032 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42033 "L<hivexregedit(1)>."
42034 msgstr ""
42035
42036 #. type: =item
42037 #: ../tools/virt-win-reg.pl:159
42038 msgid "B<--merge>"
42039 msgstr "B<--merge>"
42040
42041 #. type: textblock
42042 #: ../tools/virt-win-reg.pl:161
42043 msgid ""
42044 "In merge mode, this merges a textual regedit file into the Windows Registry "
42045 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
42046 "displays or exports Registry entries instead."
42047 msgstr ""
42048
42049 #. type: textblock
42050 #: ../tools/virt-win-reg.pl:165
42051 msgid ""
42052 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42053 "result in disk corruption.  However exporting (without this flag)  is always "
42054 "safe."
42055 msgstr ""
42056
42057 #. type: =item
42058 #: ../tools/virt-win-reg.pl:173
42059 msgid "B<--encoding> UTF-16LE|ASCII"
42060 msgstr "B<--encoding> UTF-16LE|ASCII"
42061
42062 #. type: textblock
42063 #: ../tools/virt-win-reg.pl:175
42064 msgid ""
42065 "When merging (only), you may need to specify the encoding for strings to be "
42066 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
42067 "(3)/ENCODING STRINGS>."
42068 msgstr ""
42069
42070 #. type: textblock
42071 #: ../tools/virt-win-reg.pl:179
42072 msgid ""
42073 "The default is to use UTF-16LE, which should work with recent versions of "
42074 "Windows."
42075 msgstr ""
42076
42077 #. type: =item
42078 #: ../tools/virt-win-reg.pl:186
42079 msgid "B<--unsafe-printable-strings>"
42080 msgstr "B<--unsafe-printable-strings>"
42081
42082 #. type: textblock
42083 #: ../tools/virt-win-reg.pl:188
42084 msgid ""
42085 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42086 "instead of hex sequences.  Remove the final zero codepoint from strings if "
42087 "present."
42088 msgstr ""
42089
42090 #. type: textblock
42091 #: ../tools/virt-win-reg.pl:192
42092 msgid ""
42093 "This is unsafe and does not preserve the fidelity of strings in the original "
42094 "Registry for various reasons:"
42095 msgstr ""
42096
42097 #. type: textblock
42098 #: ../tools/virt-win-reg.pl:199
42099 msgid ""
42100 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
42101 "other encodings will be corrupted by this transformation."
42102 msgstr ""
42103
42104 #. type: textblock
42105 #: ../tools/virt-win-reg.pl:204
42106 msgid ""
42107 "Assumes that everything which has type 1 or 2 is really a string and that "
42108 "everything else is not a string, but the type field in real Registries is "
42109 "not reliable."
42110 msgstr ""
42111
42112 #. type: textblock
42113 #: ../tools/virt-win-reg.pl:210
42114 msgid ""
42115 "Loses information about whether a zero codepoint followed the string in the "
42116 "Registry or not."
42117 msgstr ""
42118
42119 #. type: textblock
42120 #: ../tools/virt-win-reg.pl:215
42121 msgid ""
42122 "This all happens because the Registry itself contains no information about "
42123 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42124 msgstr ""
42125
42126 #. type: textblock
42127 #: ../tools/virt-win-reg.pl:219
42128 msgid ""
42129 "You should only use this option for quick hacking and debugging of the "
42130 "Registry contents, and I<never> use it if the output is going to be passed "
42131 "into another program or stored in another Registry."
42132 msgstr ""
42133
42134 #. type: =head1
42135 #: ../tools/virt-win-reg.pl:556
42136 msgid "SUPPORTED SYSTEMS"
42137 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
42138
42139 #. type: textblock
42140 #: ../tools/virt-win-reg.pl:558
42141 msgid ""
42142 "The program currently supports Windows NT-derived guests starting with "
42143 "Windows XP through to at least Windows 7."
42144 msgstr ""
42145
42146 #. type: textblock
42147 #: ../tools/virt-win-reg.pl:561
42148 msgid "The following Registry keys are supported:"
42149 msgstr ""
42150
42151 #. type: =item
42152 #: ../tools/virt-win-reg.pl:565
42153 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42154 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
42155
42156 #. type: =item
42157 #: ../tools/virt-win-reg.pl:567
42158 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42159 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42160
42161 #. type: =item
42162 #: ../tools/virt-win-reg.pl:569
42163 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42164 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42165
42166 #. type: =item
42167 #: ../tools/virt-win-reg.pl:571
42168 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42169 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42170
42171 #. type: =item
42172 #: ../tools/virt-win-reg.pl:573
42173 msgid "C<HKEY_USERS\\.DEFAULT>"
42174 msgstr "C<HKEY_USERS\\.DEFAULT>"
42175
42176 #. type: =item
42177 #: ../tools/virt-win-reg.pl:575
42178 msgid "C<HKEY_USERS\\I<SID>>"
42179 msgstr "C<HKEY_USERS\\I<SID>>"
42180
42181 #. type: textblock
42182 #: ../tools/virt-win-reg.pl:577
42183 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42184 msgstr ""
42185
42186 #. type: =item
42187 #: ../tools/virt-win-reg.pl:579
42188 msgid "C<HKEY_USERS\\I<username>>"
42189 msgstr "C<HKEY_USERS\\I<користувач>>"
42190
42191 #. type: textblock
42192 #: ../tools/virt-win-reg.pl:581
42193 msgid ""
42194 "where I<username> is a local user name (this is a libguestfs extension)."
42195 msgstr ""
42196
42197 #. type: textblock
42198 #: ../tools/virt-win-reg.pl:585
42199 msgid ""
42200 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
42201 "C<HKEY_USERS>."
42202 msgstr ""
42203
42204 #. type: textblock
42205 #: ../tools/virt-win-reg.pl:588
42206 msgid ""
42207 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
42208 "supported (there is no \"current user\")."
42209 msgstr ""
42210
42211 #. type: =head1
42212 #: ../tools/virt-win-reg.pl:591
42213 msgid "ENCODING"
42214 msgstr "КОДУВАННЯ"
42215
42216 #. type: textblock
42217 #: ../tools/virt-win-reg.pl:593
42218 msgid ""
42219 "C<virt-win-reg> expects that regedit files have already been reencoded in "
42220 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
42221 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
42222 "Windows-style line endings, you may need to reencode the whole file before "
42223 "or after processing."
42224 msgstr ""
42225
42226 #. type: textblock
42227 #: ../tools/virt-win-reg.pl:599
42228 msgid ""
42229 "To reencode a file from Windows format to Linux (before processing it with "
42230 "the I<--merge> option), you would do something like this:"
42231 msgstr ""
42232
42233 #. type: verbatim
42234 #: ../tools/virt-win-reg.pl:602
42235 #, no-wrap
42236 msgid ""
42237 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42238 "\n"
42239 msgstr ""
42240 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42241 "\n"
42242
42243 #. type: textblock
42244 #: ../tools/virt-win-reg.pl:604
42245 msgid ""
42246 "To go in the opposite direction, after exporting and before sending the file "
42247 "to a Windows user, do something like this:"
42248 msgstr ""
42249
42250 #. type: verbatim
42251 #: ../tools/virt-win-reg.pl:607
42252 #, no-wrap
42253 msgid ""
42254 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42255 "\n"
42256 msgstr ""
42257 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42258 "\n"
42259
42260 #. type: textblock
42261 #: ../tools/virt-win-reg.pl:609
42262 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
42263 msgstr ""
42264
42265 #. type: textblock
42266 #: ../tools/virt-win-reg.pl:611
42267 msgid ""
42268 "If you are unsure about the current encoding, use the L<file(1)> command.  "
42269 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
42270 "style (CRLF) line endings, like this:"
42271 msgstr ""
42272
42273 #. type: verbatim
42274 #: ../tools/virt-win-reg.pl:615
42275 #, no-wrap
42276 msgid ""
42277 " $ file software.reg\n"
42278 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
42279 " with CRLF line terminators\n"
42280 "\n"
42281 msgstr ""
42282
42283 #. type: textblock
42284 #: ../tools/virt-win-reg.pl:619
42285 msgid "This file would need conversion before you could I<--merge> it."
42286 msgstr ""
42287
42288 #. type: =head1
42289 #: ../tools/virt-win-reg.pl:621
42290 msgid "CurrentControlSet etc."
42291 msgstr ""
42292
42293 #. type: textblock
42294 #: ../tools/virt-win-reg.pl:623
42295 msgid ""
42296 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
42297 "Registry at the level of the hive file, and therefore you cannot modify "
42298 "these."
42299 msgstr ""
42300
42301 #. type: textblock
42302 #: ../tools/virt-win-reg.pl:627
42303 msgid ""
42304 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
42305 "circumstances it might refer to another control set.  The way to find out is "
42306 "to look at the C<HKLM\\SYSTEM\\Select> key:"
42307 msgstr ""
42308
42309 #. type: verbatim
42310 #: ../tools/virt-win-reg.pl:631
42311 #, no-wrap
42312 msgid ""
42313 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42314 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42315 " \"Current\"=dword:00000001\n"
42316 " \"Default\"=dword:00000001\n"
42317 " \"Failed\"=dword:00000000\n"
42318 " \"LastKnownGood\"=dword:00000002\n"
42319 "\n"
42320 msgstr ""
42321 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42322 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42323 " \"Current\"=dword:00000001\n"
42324 " \"Default\"=dword:00000001\n"
42325 " \"Failed\"=dword:00000000\n"
42326 " \"LastKnownGood\"=dword:00000002\n"
42327 "\n"
42328
42329 #. type: textblock
42330 #: ../tools/virt-win-reg.pl:638
42331 msgid "\"Current\" is the one which Windows will choose when it boots."
42332 msgstr ""
42333
42334 #. type: textblock
42335 #: ../tools/virt-win-reg.pl:640
42336 msgid ""
42337 "Similarly, other C<Current...> keys in the path may need to be replaced."
42338 msgstr ""
42339
42340 #. type: =head1
42341 #: ../tools/virt-win-reg.pl:643
42342 msgid "WINDOWS TIPS"
42343 msgstr ""
42344
42345 #. type: textblock
42346 #: ../tools/virt-win-reg.pl:645
42347 msgid ""
42348 "Note that some of these tips modify the guest disk image.  The guest I<must> "
42349 "be shut off, else you will get disk corruption."
42350 msgstr ""
42351
42352 #. type: =head2
42353 #: ../tools/virt-win-reg.pl:648
42354 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42355 msgstr ""
42356
42357 #. type: textblock
42358 #: ../tools/virt-win-reg.pl:650
42359 msgid ""
42360 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
42361 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
42362 "is uploaded into C<C:\\>:"
42363 msgstr ""
42364
42365 #. type: verbatim
42366 #: ../tools/virt-win-reg.pl:654
42367 #, no-wrap
42368 msgid ""
42369 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42370 "\n"
42371 msgstr ""
42372 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42373 "\n"
42374
42375 #. type: textblock
42376 #: ../tools/virt-win-reg.pl:656
42377 msgid "Prepare a regedit file containing the registry change:"
42378 msgstr ""
42379
42380 #. type: verbatim
42381 #: ../tools/virt-win-reg.pl:658
42382 #, no-wrap
42383 msgid ""
42384 " cat > test.reg <<'EOF'\n"
42385 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42386 " \"Test\"=\"c:\\\\test.bat\"\n"
42387 " EOF\n"
42388 "\n"
42389 msgstr ""
42390 " cat > test.reg <<'EOF'\n"
42391 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42392 " \"Test\"=\"c:\\\\test.bat\"\n"
42393 " EOF\n"
42394 "\n"
42395
42396 #. type: textblock
42397 #: ../tools/virt-win-reg.pl:663
42398 msgid ""
42399 "In this example we use the key C<RunOnce> which means that the script will "
42400 "run precisely once when the first user logs in.  If you want it to run every "
42401 "time a user logs in, replace C<RunOnce> with C<Run>."
42402 msgstr ""
42403
42404 #. type: textblock
42405 #: ../tools/virt-win-reg.pl:667
42406 msgid "Now update the registry:"
42407 msgstr "Оновіть регістр:"
42408
42409 #. type: verbatim
42410 #: ../tools/virt-win-reg.pl:669
42411 #, no-wrap
42412 msgid ""
42413 " virt-win-reg --merge WindowsGuest test.reg\n"
42414 "\n"
42415 msgstr ""
42416
42417 #. type: =head2
42418 #: ../tools/virt-win-reg.pl:671
42419 msgid "INSTALLING A SERVICE"
42420 msgstr ""
42421
42422 #. type: textblock
42423 #: ../tools/virt-win-reg.pl:673
42424 msgid ""
42425 "This section assumes you are familiar with Windows services, and you either "
42426 "have a program which handles the Windows Service Control Protocol directly "
42427 "or you want to run any program using a service wrapper like SrvAny or the "
42428 "free RHSrvAny."
42429 msgstr ""
42430
42431 #. type: textblock
42432 #: ../tools/virt-win-reg.pl:678
42433 msgid ""
42434 "First upload the program and optionally the service wrapper.  In this case "
42435 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
42436 msgstr ""
42437
42438 #. type: verbatim
42439 #: ../tools/virt-win-reg.pl:682
42440 #, no-wrap
42441 msgid ""
42442 " guestfish -i -d WindowsGuest <<EOF\n"
42443 "   upload rhsrvany.exe /rhsrvany.exe\n"
42444 "   upload test.exe /test.exe\n"
42445 " EOF\n"
42446 "\n"
42447 msgstr ""
42448 " guestfish -i -d WindowsGuest <<EOF\n"
42449 "   upload rhsrvany.exe /rhsrvany.exe\n"
42450 "   upload test.exe /test.exe\n"
42451 " EOF\n"
42452 "\n"
42453
42454 #. type: textblock
42455 #: ../tools/virt-win-reg.pl:687
42456 msgid ""
42457 "Prepare a regedit file containing the registry changes.  In this example, "
42458 "the first registry change is needed for the service itself or the service "
42459 "wrapper (if used).  The second registry change is only needed because I am "
42460 "using the RHSrvAny service wrapper."
42461 msgstr ""
42462
42463 #. type: verbatim
42464 #: ../tools/virt-win-reg.pl:692
42465 #, no-wrap
42466 msgid ""
42467 " cat > service.reg <<'EOF'\n"
42468 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42469 " \"Type\"=dword:00000010\n"
42470 " \"Start\"=dword:00000002\n"
42471 " \"ErrorControl\"=dword:00000001\n"
42472 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42473 " \"DisplayName\"=\"RHSrvAny\"\n"
42474 " \"ObjectName\"=\"NetworkService\"\n"
42475 " \n"
42476 msgstr ""
42477 " cat > service.reg <<'EOF'\n"
42478 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42479 " \"Type\"=dword:00000010\n"
42480 " \"Start\"=dword:00000002\n"
42481 " \"ErrorControl\"=dword:00000001\n"
42482 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42483 " \"DisplayName\"=\"RHSrvAny\"\n"
42484 " \"ObjectName\"=\"NetworkService\"\n"
42485 " \n"
42486
42487 #. type: verbatim
42488 #: ../tools/virt-win-reg.pl:701
42489 #, no-wrap
42490 msgid ""
42491 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42492 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42493 " \"PWD\"=\"c:\\\\Temp\"\n"
42494 " EOF\n"
42495 "\n"
42496 msgstr ""
42497 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42498 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42499 " \"PWD\"=\"c:\\\\Temp\"\n"
42500 " EOF\n"
42501 "\n"
42502
42503 #. type: textblock
42504 #: ../tools/virt-win-reg.pl:712
42505 msgid ""
42506 "For use of C<ControlSet001> see the section above in this manual page.  You "
42507 "may need to adjust this according to the control set that is in use by the "
42508 "guest."
42509 msgstr ""
42510
42511 #. type: textblock
42512 #: ../tools/virt-win-reg.pl:718
42513 msgid ""
42514 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42515 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42516 "privileged account."
42517 msgstr ""
42518
42519 #. type: textblock
42520 #: ../tools/virt-win-reg.pl:724
42521 msgid ""
42522 "For the meaning of the magic numbers, see this Microsoft KB article: "
42523 "L<http://support.microsoft.com/kb/103000>."
42524 msgstr ""
42525
42526 #. type: textblock
42527 #: ../tools/virt-win-reg.pl:729
42528 msgid "Update the registry:"
42529 msgstr "Оновіть регістр:"
42530
42531 #. type: verbatim
42532 #: ../tools/virt-win-reg.pl:731
42533 #, no-wrap
42534 msgid ""
42535 " virt-win-reg --merge WindowsGuest service.reg\n"
42536 "\n"
42537 msgstr ""
42538
42539 #. type: textblock
42540 #: ../tools/virt-win-reg.pl:735
42541 msgid ""
42542 "Be careful when passing parameters containing C<\\> (backslash) in the "
42543 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42544 "(but not both) to protect them from the shell."
42545 msgstr ""
42546
42547 #. type: textblock
42548 #: ../tools/virt-win-reg.pl:739
42549 msgid "Paths and value names are case-insensitive."
42550 msgstr ""
42551
42552 #. type: textblock
42553 #: ../tools/virt-win-reg.pl:748
42554 msgid ""
42555 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42556 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42557 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42558 msgstr ""
42559 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42560 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42561 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42562
42563 #. type: verbatim
42564 #: ../tools/virt-win-reg.pl:766
42565 #, no-wrap
42566 msgid ""
42567 " export LIBGUESTFS_DEBUG=1\n"
42568 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42569 "\n"
42570 msgstr ""
42571
42572 #. type: textblock
42573 #: ../tools/virt-win-reg.pl:769
42574 msgid ""
42575 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
42576 "redhat.com/>"
42577 msgstr ""