Version 1.13.24.
[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-24 17:16+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:470
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:472
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:540
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:542
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:544
566 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
567 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
568 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
569 msgid "Display version number and exit."
570 msgstr "Показати дані щодо версії і завершити роботу."
571
572 #. type: =item
573 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
574 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
575 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
576 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
577 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
578 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
579 #: ../tools/virt-tar.pl:158
580 msgid "B<-x>"
581 msgstr "B<-x>"
582
583 #. type: textblock
584 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
585 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
586 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
587 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
588 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
589 msgid "Enable tracing of libguestfs API calls."
590 msgstr ""
591
592 #. type: =head1
593 #: ../align/virt-alignment-scan.pod:172
594 msgid "RECOMMENDED ALIGNMENT"
595 msgstr ""
596
597 #. type: textblock
598 #: ../align/virt-alignment-scan.pod:174
599 msgid ""
600 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
601 "first sector of the first partition at sector 63, with a 512 byte sector "
602 "size.  This happens because of a historical accident.  Drives have to report "
603 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
604 "completely meaningless on modern drives, but it happens that the geometry "
605 "reported always has 63 sectors per track.  The operating system therefore "
606 "places the first partition at the start of the second \"track\", at sector "
607 "63."
608 msgstr ""
609
610 #. type: textblock
611 #: ../align/virt-alignment-scan.pod:183
612 msgid ""
613 "When the guest OS is virtualized, the host operating system and hypervisor "
614 "may prefer accesses aligned to one of:"
615 msgstr ""
616
617 #. type: =item
618 #: ../align/virt-alignment-scan.pod:188
619 msgid "* 512 bytes"
620 msgstr ""
621
622 #. type: textblock
623 #: ../align/virt-alignment-scan.pod:190
624 msgid ""
625 "if the host OS uses local storage directly on hard drive partitions, and the "
626 "hard drive has 512 byte physical sectors."
627 msgstr ""
628
629 #. type: =item
630 #: ../align/virt-alignment-scan.pod:193
631 msgid "* 4 Kbytes"
632 msgstr ""
633
634 #. type: textblock
635 #: ../align/virt-alignment-scan.pod:195
636 msgid ""
637 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
638 "backed storage on filesystems with 4Kbyte block size; or for some types of "
639 "network-attached storage."
640 msgstr ""
641
642 #. type: =item
643 #: ../align/virt-alignment-scan.pod:199
644 msgid "* 64 Kbytes"
645 msgstr ""
646
647 #. type: textblock
648 #: ../align/virt-alignment-scan.pod:201
649 msgid ""
650 "for high-end network-attached storage.  This is the optimal block size for "
651 "some NetApp hardware."
652 msgstr ""
653
654 #. type: =item
655 #: ../align/virt-alignment-scan.pod:204
656 msgid "* 1 Mbyte"
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:206
661 msgid "see L</1 MB PARTITION ALIGNMENT> below."
662 msgstr ""
663
664 #. type: textblock
665 #: ../align/virt-alignment-scan.pod:210
666 msgid ""
667 "Partitions which are not aligned correctly to the underlying storage cause "
668 "extra I/O.  For example:"
669 msgstr ""
670
671 #. type: verbatim
672 #: ../align/virt-alignment-scan.pod:213
673 #, no-wrap
674 msgid ""
675 "                       sect#63\n"
676 "                       +--------------------------+------\n"
677 "                       |         guest            |\n"
678 "                       |    filesystem block      |\n"
679 " ---+------------------+------+-------------------+-----+---\n"
680 "    |  host block             |  host block             |\n"
681 "    |                         |                         |\n"
682 " ---+-------------------------+-------------------------+---\n"
683 "\n"
684 msgstr ""
685
686 #. type: textblock
687 #: ../align/virt-alignment-scan.pod:222
688 msgid ""
689 "In this example, each time a 4K guest block is read, two blocks on the host "
690 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
691 "written, two host blocks must first be read, the old and new data combined, "
692 "and the two blocks written back (4x I/O)."
693 msgstr ""
694
695 #. type: =head2
696 #: ../align/virt-alignment-scan.pod:227
697 msgid "LINUX HOST BLOCK AND I/O SIZE"
698 msgstr ""
699
700 #. type: textblock
701 #: ../align/virt-alignment-scan.pod:229
702 msgid ""
703 "New versions of the Linux kernel expose the physical and logical block size, "
704 "and minimum and recommended I/O size."
705 msgstr ""
706
707 #. type: textblock
708 #: ../align/virt-alignment-scan.pod:232
709 msgid "For a typical hard drive with 512 byte sectors:"
710 msgstr ""
711
712 #. type: verbatim
713 #: ../align/virt-alignment-scan.pod:234
714 #, no-wrap
715 msgid ""
716 " $ cat /sys/block/sda/queue/physical_block_size\n"
717 " 512\n"
718 " $ cat /sys/block/sda/queue/logical_block_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/minimum_io_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/optimal_io_size\n"
723 " 0\n"
724 "\n"
725 msgstr ""
726
727 #. type: textblock
728 #: ../align/virt-alignment-scan.pod:243
729 msgid "For a NetApp LUN:"
730 msgstr ""
731
732 #. type: verbatim
733 #: ../align/virt-alignment-scan.pod:245
734 #, no-wrap
735 msgid ""
736 " $ cat /sys/block/sdc/queue/logical_block_size\n"
737 " 512\n"
738 " $ cat /sys/block/sdc/queue/physical_block_size\n"
739 " 512\n"
740 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
743 " 65536\n"
744 "\n"
745 msgstr ""
746
747 #. type: textblock
748 #: ../align/virt-alignment-scan.pod:254
749 msgid ""
750 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
751 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
752 msgstr ""
753
754 #. type: textblock
755 #: ../align/virt-alignment-scan.pod:258
756 msgid ""
757 "For detailed information about what these numbers mean, see L<http://docs."
758 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
759 "Storage_Administration_Guide/newstorage-iolimits.html>"
760 msgstr ""
761
762 #. type: textblock
763 #: ../align/virt-alignment-scan.pod:261
764 msgid ""
765 "[Thanks to Mike Snitzer for providing NetApp data and additional "
766 "information.]"
767 msgstr ""
768
769 #. type: =head2
770 #: ../align/virt-alignment-scan.pod:264
771 msgid "1 MB PARTITION ALIGNMENT"
772 msgstr ""
773
774 #. type: textblock
775 #: ../align/virt-alignment-scan.pod:266
776 msgid ""
777 "Microsoft picked 1 MB as the default alignment for all partitions starting "
778 "with Windows 2008 Server, and Linux has followed this."
779 msgstr ""
780
781 #. type: textblock
782 #: ../align/virt-alignment-scan.pod:269
783 msgid ""
784 "Assuming 512 byte sectors in the guest, you will now see the first partition "
785 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
786 "multiple of 2048 sectors."
787 msgstr ""
788
789 #. type: textblock
790 #: ../align/virt-alignment-scan.pod:273
791 msgid ""
792 "1 MB alignment is compatible with all current alignment requirements (4K, "
793 "64K) and provides room for future growth in physical block sizes."
794 msgstr ""
795
796 #. type: =head2
797 #: ../align/virt-alignment-scan.pod:276
798 msgid "SETTING ALIGNMENT"
799 msgstr ""
800
801 #. type: textblock
802 #: ../align/virt-alignment-scan.pod:278
803 msgid ""
804 "L<virt-resize(1)> can change the alignment of the partitions of some "
805 "guests.  Currently it can fully align all the partitions of all Windows "
806 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
807 "it can align the second and subsequent partitions, so the majority of OS "
808 "accesses except at boot will be aligned."
809 msgstr ""
810
811 #. type: textblock
812 #: ../align/virt-alignment-scan.pod:284
813 msgid ""
814 "Another way to correct partition alignment problems is to reinstall your "
815 "guest operating systems.  If you install operating systems from templates, "
816 "ensure these have correct partition alignment too."
817 msgstr ""
818
819 #. type: textblock
820 #: ../align/virt-alignment-scan.pod:288
821 msgid ""
822 "For older versions of Windows, the following NetApp document contains useful "
823 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
824 msgstr ""
825
826 #. type: textblock
827 #: ../align/virt-alignment-scan.pod:291
828 msgid ""
829 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
830 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
831 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
832 "contains an example."
833 msgstr ""
834
835 #. type: =head1
836 #: ../align/virt-alignment-scan.pod:296 ../cat/virt-cat.pod:191
837 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483
838 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
839 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352
840 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:655
841 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
842 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
843 #: ../tools/virt-win-reg.pl:744
844 msgid "SHELL QUOTING"
845 msgstr ""
846
847 #. type: textblock
848 #: ../align/virt-alignment-scan.pod:298 ../cat/virt-cat.pod:193
849 #: ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485
850 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
851 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354
852 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:657
853 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
854 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
855 #: ../tools/virt-win-reg.pl:752
856 msgid ""
857 "Libvirt guest names can contain arbitrary characters, some of which have "
858 "meaning to the shell such as C<#> and space.  You may need to quote or "
859 "escape these characters on the command line.  See the shell manual page L<sh"
860 "(1)> for details."
861 msgstr ""
862
863 #. type: =head1
864 #: ../align/virt-alignment-scan.pod:303 ../cat/virt-cat.pod:198
865 #: ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490
866 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
867 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
868 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375
869 #: ../resize/virt-resize.pod:662 ../sparsify/virt-sparsify.pod:227
870 #: ../test-tool/libguestfs-test-tool.pod:90
871 msgid "EXIT STATUS"
872 msgstr ""
873
874 #. type: textblock
875 #: ../align/virt-alignment-scan.pod:305
876 msgid "This program returns:"
877 msgstr ""
878
879 #. type: =item
880 #: ../align/virt-alignment-scan.pod:309 ../align/virt-alignment-scan.pod:315
881 #: ../align/virt-alignment-scan.pod:321 ../align/virt-alignment-scan.pod:328
882 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
883 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
884 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
885 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
886 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
887 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
888 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
889 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
890 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
891 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
892 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
893 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
894 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
895 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
896 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
897 #: ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:403
898 #: ../fish/guestfish-actions.pod:410 ../fish/guestfish-actions.pod:417
899 #: ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1148
900 #: ../fish/guestfish-actions.pod:1152 ../fish/guestfish-actions.pod:1156
901 #: ../fish/guestfish-actions.pod:1164 ../fish/guestfish-actions.pod:1168
902 #: ../fish/guestfish-actions.pod:1172 ../fish/guestfish-actions.pod:1182
903 #: ../fish/guestfish-actions.pod:1186 ../fish/guestfish-actions.pod:1190
904 #: ../fish/guestfish-actions.pod:1280 ../fish/guestfish-actions.pod:1284
905 #: ../fish/guestfish-actions.pod:1289 ../fish/guestfish-actions.pod:1294
906 #: ../fish/guestfish-actions.pod:1336 ../fish/guestfish-actions.pod:1340
907 #: ../fish/guestfish-actions.pod:1345 ../fish/guestfish-actions.pod:1601
908 #: ../fish/guestfish-actions.pod:1608 ../fish/guestfish-actions.pod:1615
909 #: ../fish/guestfish-actions.pod:2018 ../fish/guestfish-actions.pod:2024
910 #: ../fish/guestfish-actions.pod:2032 ../fish/guestfish-actions.pod:2039
911 #: ../fish/guestfish-actions.pod:2046 ../fish/guestfish.pod:445
912 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
913 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
914 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:338
915 #: ../resize/virt-resize.pod:342 ../resize/virt-resize.pod:351
916 #: ../resize/virt-resize.pod:357 ../sparsify/virt-sparsify.pod:32
917 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
918 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
919 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
920 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
921 #: ../src/guestfs-actions.pod:594 ../src/guestfs-actions.pod:602
922 #: ../src/guestfs-actions.pod:609 ../src/guestfs-actions.pod:616
923 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1788
924 #: ../src/guestfs-actions.pod:1792 ../src/guestfs-actions.pod:1796
925 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1808
926 #: ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1822
927 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1830
928 #: ../src/guestfs-actions.pod:1968 ../src/guestfs-actions.pod:1972
929 #: ../src/guestfs-actions.pod:1977 ../src/guestfs-actions.pod:1982
930 #: ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:2047
931 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2467
932 #: ../src/guestfs-actions.pod:2474 ../src/guestfs-actions.pod:2481
933 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3032
934 #: ../src/guestfs-actions.pod:3040 ../src/guestfs-actions.pod:3047
935 #: ../src/guestfs-actions.pod:3054 ../src/guestfs.pod:388
936 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
937 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
938 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
939 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
940 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
941 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
942 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
943 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
944 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
945 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
946 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2630 ../src/guestfs.pod:2636
947 #: ../src/guestfs.pod:2641 ../src/guestfs.pod:2647 ../src/guestfs.pod:3047
948 #: ../src/guestfs.pod:3052 ../src/guestfs.pod:3056 ../src/guestfs.pod:3060
949 #: ../src/guestfs.pod:3064 ../src/guestfs.pod:3078 ../src/guestfs.pod:3083
950 #: ../src/guestfs.pod:3314 ../src/guestfs.pod:3318 ../src/guestfs.pod:3322
951 #: ../src/guestfs.pod:3326 ../tools/virt-win-reg.pl:197
952 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
953 #: ../tools/virt-win-reg.pl:721 ../tools/virt-win-reg.pl:727
954 #: ../tools/virt-win-reg.pl:733
955 msgid "*"
956 msgstr "*"
957
958 #. type: textblock
959 #: ../align/virt-alignment-scan.pod:311
960 msgid "0"
961 msgstr ""
962
963 #. type: textblock
964 #: ../align/virt-alignment-scan.pod:313
965 msgid ""
966 "successful exit, all partitions are aligned E<ge> 64K for best performance"
967 msgstr ""
968
969 #. type: textblock
970 #: ../align/virt-alignment-scan.pod:317
971 msgid "1"
972 msgstr ""
973
974 #. type: textblock
975 #: ../align/virt-alignment-scan.pod:319
976 msgid "an error scanning the disk image or guest"
977 msgstr ""
978
979 #. type: textblock
980 #: ../align/virt-alignment-scan.pod:323
981 msgid "2"
982 msgstr ""
983
984 #. type: textblock
985 #: ../align/virt-alignment-scan.pod:325
986 msgid ""
987 "successful exit, some partitions have alignment E<lt> 64K which can result "
988 "in poor performance on high end network storage"
989 msgstr ""
990
991 #. type: textblock
992 #: ../align/virt-alignment-scan.pod:330
993 msgid "3"
994 msgstr ""
995
996 #. type: textblock
997 #: ../align/virt-alignment-scan.pod:332
998 msgid ""
999 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1000 "poor performance on most hypervisors"
1001 msgstr ""
1002
1003 #. type: =head1
1004 #: ../align/virt-alignment-scan.pod:337 ../cat/virt-cat.pod:203
1005 #: ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495
1006 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1007 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1008 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1009 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1010 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1011 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1012 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1013 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1014 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1015 #: ../resize/virt-resize.pod:667 ../ruby/examples/guestfs-ruby.pod:36
1016 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3255
1017 #: ../test-tool/libguestfs-test-tool.pod:100
1018 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1019 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1020 #: ../tools/virt-win-reg.pl:757
1021 msgid "SEE ALSO"
1022 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1023
1024 #. type: textblock
1025 #: ../align/virt-alignment-scan.pod:339
1026 msgid ""
1027 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1028 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1029 msgstr ""
1030
1031 #. type: =head1
1032 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:212
1033 #: ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507
1034 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1035 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1036 #: ../resize/virt-resize.pod:690 ../sparsify/virt-sparsify.pod:264
1037 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1038 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1039 #: ../tools/virt-win-reg.pl:783
1040 msgid "AUTHOR"
1041 msgstr "АВТОР"
1042
1043 #. type: textblock
1044 #: ../align/virt-alignment-scan.pod:348 ../cat/virt-cat.pod:214
1045 #: ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509
1046 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1047 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1048 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:692
1049 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1050 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1051 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1052 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1053 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1054
1055 #. type: =head1
1056 #: ../align/virt-alignment-scan.pod:350 ../cat/virt-cat.pod:216
1057 #: ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511
1058 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1059 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1060 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1061 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1062 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1063 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1064 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1065 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1066 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1067 #: ../resize/virt-resize.pod:694 ../ruby/examples/guestfs-ruby.pod:52
1068 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3337
1069 #: ../test-tool/libguestfs-test-tool.pod:110
1070 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1071 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1072 #: ../tools/virt-win-reg.pl:787
1073 msgid "COPYRIGHT"
1074 msgstr "АВТОРСЬКІ ПРАВА"
1075
1076 #. type: textblock
1077 #: ../align/virt-alignment-scan.pod:352 ../clone/virt-sysprep.pod:507
1078 #: ../sparsify/virt-sparsify.pod:270
1079 msgid "Copyright (C) 2011 Red Hat Inc."
1080 msgstr ""
1081
1082 #. type: textblock
1083 #: ../align/virt-alignment-scan.pod:354 ../cat/virt-cat.pod:220
1084 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515
1085 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1086 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1087 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1088 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1089 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407
1090 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:698
1091 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1092 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1093 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1094 #: ../tools/virt-win-reg.pl:791
1095 msgid ""
1096 "This program is free software; you can redistribute it and/or modify it "
1097 "under the terms of the GNU General Public License as published by the Free "
1098 "Software Foundation; either version 2 of the License, or (at your option) "
1099 "any later version."
1100 msgstr ""
1101
1102 #. type: textblock
1103 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:225
1104 #: ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520
1105 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1106 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1107 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1108 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1109 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412
1110 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:703
1111 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1112 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1113 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1114 #: ../tools/virt-win-reg.pl:796
1115 msgid ""
1116 "This program is distributed in the hope that it will be useful, but WITHOUT "
1117 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1118 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1119 "more details."
1120 msgstr ""
1121 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1122 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1123 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1124 "дізнатися з GNU General Public License."
1125
1126 #. type: textblock
1127 #: ../align/virt-alignment-scan.pod:364 ../cat/virt-cat.pod:230
1128 #: ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525
1129 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1130 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1131 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1132 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1133 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417
1134 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:708
1135 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1136 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1137 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1138 #: ../tools/virt-win-reg.pl:801
1139 msgid ""
1140 "You should have received a copy of the GNU General Public License along with "
1141 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
1142 "Ave, Cambridge, MA 02139, USA."
1143 msgstr ""
1144 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1145 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1146 "Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
1147
1148 #. type: textblock
1149 #: ../cat/virt-cat.pod:5
1150 msgid "virt-cat - Display files in a virtual machine"
1151 msgstr "virt-cat — показ файлів у віртуальній машині"
1152
1153 #. type: verbatim
1154 #: ../cat/virt-cat.pod:9
1155 #, no-wrap
1156 msgid ""
1157 " virt-cat [--options] -d domname file [file ...]\n"
1158 "\n"
1159 msgstr ""
1160 " virt-cat [--параметри] -d назва_домену файл [файл...]\n"
1161 "\n"
1162
1163 #. type: verbatim
1164 #: ../cat/virt-cat.pod:11
1165 #, no-wrap
1166 msgid ""
1167 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1168 "\n"
1169 msgstr ""
1170 " virt-cat [--параметри] -a диск.img [-a диск.img ...] файл [файл...]\n"
1171 "\n"
1172
1173 #. type: textblock
1174 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1175 #: ../inspector/virt-inspector.pod:13
1176 msgid "Old-style:"
1177 msgstr "Застарілий стиль:"
1178
1179 #. type: verbatim
1180 #: ../cat/virt-cat.pod:15
1181 #, no-wrap
1182 msgid ""
1183 " virt-cat domname file\n"
1184 "\n"
1185 msgstr ""
1186 " virt-cat назва_домену файл\n"
1187 "\n"
1188
1189 #. type: verbatim
1190 #: ../cat/virt-cat.pod:17
1191 #, no-wrap
1192 msgid ""
1193 " virt-cat disk.img file\n"
1194 "\n"
1195 msgstr ""
1196 " virt-cat диск.img файл\n"
1197 "\n"
1198
1199 #. type: textblock
1200 #: ../cat/virt-cat.pod:21
1201 msgid ""
1202 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1203 "C<file> exists in the named virtual machine (or disk image)."
1204 msgstr ""
1205 "C<virt-cat> — інструмент командного рядка для показу вмісту C<файла>, який "
1206 "зберігається у вказаній віртуальній машині (або образі диска)."
1207
1208 #. type: textblock
1209 #: ../cat/virt-cat.pod:24
1210 msgid ""
1211 "Multiple filenames can be given, in which case they are concatenated "
1212 "together.  Each filename must be a full path, starting at the root directory "
1213 "(starting with '/')."
1214 msgstr ""
1215 "Ви можете вказати декілька назв файлів. Вміст таких файлів буде об’єднано. "
1216 "Назви файлів слід вказувати повністю (разом зі шляхом), починаючи з "
1217 "кореневого каталогу (тобто назва має починатися з «/»)."
1218
1219 #. type: textblock
1220 #: ../cat/virt-cat.pod:28
1221 msgid ""
1222 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1223 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1224 "(see L</USING GUESTFISH> below)."
1225 msgstr ""
1226 "C<virt-cat> можна скористатися для пришвидшення перегляду файла. Для "
1227 "редагування даних слід користуватися C<virt-edit>. Для виконання складніших "
1228 "дій можна скористатися програмою L<guestfish(1)> (див. L</USING GUESTFISH> "
1229 "нижче)."
1230
1231 #. type: =head1
1232 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1233 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1234 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1235 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1236 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1237 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1238 #: ../tools/virt-tar.pl:50
1239 msgid "EXAMPLES"
1240 msgstr "ПРИКЛАДИ"
1241
1242 #. type: textblock
1243 #: ../cat/virt-cat.pod:34
1244 msgid ""
1245 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1246 msgstr ""
1247 "Показ файла C</etc/fstab> з віртуальної машини libvirt з назвою C<mydomain>:"
1248
1249 #. type: verbatim
1250 #: ../cat/virt-cat.pod:37
1251 #, no-wrap
1252 msgid ""
1253 " virt-cat -d mydomain /etc/fstab\n"
1254 "\n"
1255 msgstr ""
1256 " virt-cat -d mydomain /etc/fstab\n"
1257 "\n"
1258
1259 #. type: textblock
1260 #: ../cat/virt-cat.pod:39
1261 msgid "List syslog messages from a VM disk image file:"
1262 msgstr ""
1263 "Показ списку повідомлень syslog з файла образу диска віртуальної машини:"
1264
1265 #. type: verbatim
1266 #: ../cat/virt-cat.pod:41
1267 #, no-wrap
1268 msgid ""
1269 " virt-cat -a disk.img /var/log/messages | tail\n"
1270 "\n"
1271 msgstr ""
1272 " virt-cat -a disk.img /var/log/messages | tail\n"
1273 "\n"
1274
1275 #. type: textblock
1276 #: ../cat/virt-cat.pod:43
1277 msgid "Find out what DHCP IP address a VM acquired:"
1278 msgstr "Визначення IP-адреси DHCP, використаної віртуальною машиною:"
1279
1280 #. type: verbatim
1281 #: ../cat/virt-cat.pod:45
1282 #, no-wrap
1283 msgid ""
1284 " virt-cat -d mydomain /var/log/messages | \\\n"
1285 "   grep 'dhclient: bound to' | tail\n"
1286 "\n"
1287 msgstr ""
1288 " virt-cat -d mydomain /var/log/messages | \\\n"
1289 "   grep 'dhclient: bound to' | tail\n"
1290 "\n"
1291
1292 #. type: textblock
1293 #: ../cat/virt-cat.pod:48
1294 msgid "Find out what packages were recently installed:"
1295 msgstr "Пошук нещодавно встановлених пакунків:"
1296
1297 #. type: verbatim
1298 #: ../cat/virt-cat.pod:50
1299 #, no-wrap
1300 msgid ""
1301 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1302 "\n"
1303 msgstr ""
1304 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1305 "\n"
1306
1307 #. type: textblock
1308 #: ../cat/virt-cat.pod:52
1309 msgid "Find out who is logged on inside a virtual machine:"
1310 msgstr "Визначення користувачів, які працюють у віртуальній машині:"
1311
1312 #. type: verbatim
1313 #: ../cat/virt-cat.pod:54
1314 #, no-wrap
1315 msgid ""
1316 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1317 " who /tmp/utmp\n"
1318 "\n"
1319 msgstr ""
1320 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1321 " who /tmp/utmp\n"
1322 "\n"
1323
1324 #. type: textblock
1325 #: ../cat/virt-cat.pod:57
1326 msgid "or who was logged on:"
1327 msgstr "або тих, які у ній працювали:"
1328
1329 #. type: verbatim
1330 #: ../cat/virt-cat.pod:59
1331 #, no-wrap
1332 msgid ""
1333 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1334 " last -f /tmp/wtmp\n"
1335 "\n"
1336 msgstr ""
1337 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1338 " last -f /tmp/wtmp\n"
1339 "\n"
1340
1341 #. type: textblock
1342 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1343 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1344 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1345 msgid ""
1346 "Add I<file> which should be a disk image from a virtual machine.  If the "
1347 "virtual machine has multiple block devices, you must supply all of them with "
1348 "separate I<-a> options."
1349 msgstr ""
1350
1351 #. type: =item
1352 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1353 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1354 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1355 msgid "B<--echo-keys>"
1356 msgstr "B<--echo-keys>"
1357
1358 #. type: textblock
1359 #: ../cat/virt-cat.pod:100
1360 msgid ""
1361 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1362 "so you cannot see what you are typing.  If you are not worried about Tempest "
1363 "attacks and there is no one else in the room you can specify this flag to "
1364 "see what you are typing."
1365 msgstr ""
1366
1367 #. type: verbatim
1368 #: ../cat/virt-cat.pod:116
1369 #, no-wrap
1370 msgid ""
1371 " virt-cat --format=raw -a disk.img file\n"
1372 "\n"
1373 msgstr ""
1374 " virt-cat --format=raw -a disk.img file\n"
1375 "\n"
1376
1377 #. type: verbatim
1378 #: ../cat/virt-cat.pod:120
1379 #, no-wrap
1380 msgid ""
1381 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1382 "\n"
1383 msgstr ""
1384 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1385 "\n"
1386
1387 #. type: =item
1388 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1389 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1390 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1391 msgid "B<--keys-from-stdin>"
1392 msgstr "B<--keys-from-stdin>"
1393
1394 #. type: textblock
1395 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1396 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1397 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1398 msgid ""
1399 "Read key or passphrase parameters from stdin.  The default is to try to read "
1400 "passphrases from the user by opening C</dev/tty>."
1401 msgstr ""
1402
1403 #. type: =head1
1404 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1405 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1406 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1407 msgstr ""
1408
1409 #. type: textblock
1410 #: ../cat/virt-cat.pod:154
1411 msgid "Previous versions of virt-cat allowed you to write either:"
1412 msgstr ""
1413
1414 #. type: verbatim
1415 #: ../cat/virt-cat.pod:156
1416 #, no-wrap
1417 msgid ""
1418 " virt-cat disk.img [disk.img ...] file\n"
1419 "\n"
1420 msgstr ""
1421
1422 #. type: textblock
1423 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1424 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1425 msgid "or"
1426 msgstr "або"
1427
1428 #. type: verbatim
1429 #: ../cat/virt-cat.pod:160
1430 #, no-wrap
1431 msgid ""
1432 " virt-cat guestname file\n"
1433 "\n"
1434 msgstr ""
1435
1436 #. type: textblock
1437 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1438 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1439 msgid ""
1440 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1441 "the confusing case where a disk image might have the same name as a guest."
1442 msgstr ""
1443
1444 #. type: textblock
1445 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1446 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1447 msgid "For compatibility the old style is still supported."
1448 msgstr ""
1449
1450 #. type: =head1
1451 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1452 msgid "USING GUESTFISH"
1453 msgstr "ВИКОРИСТАННЯ GUESTFISH"
1454
1455 #. type: textblock
1456 #: ../cat/virt-cat.pod:170
1457 msgid ""
1458 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1459 "C<virt-cat> doesn't work."
1460 msgstr ""
1461
1462 #. type: textblock
1463 #: ../cat/virt-cat.pod:173
1464 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1465 msgstr ""
1466
1467 #. type: verbatim
1468 #: ../cat/virt-cat.pod:175
1469 #, no-wrap
1470 msgid ""
1471 " guestfish --ro -i -d domname download file -\n"
1472 "\n"
1473 msgstr ""
1474
1475 #. type: textblock
1476 #: ../cat/virt-cat.pod:177
1477 msgid ""
1478 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1479 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1480 msgstr ""
1481
1482 #. type: textblock
1483 #: ../cat/virt-cat.pod:181
1484 msgid ""
1485 "The command above uses libguestfs's guest inspection feature and so does not "
1486 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1487 "disk images that don't contain guests.  To display a file from a disk image "
1488 "directly, use:"
1489 msgstr ""
1490
1491 #. type: verbatim
1492 #: ../cat/virt-cat.pod:186
1493 #, no-wrap
1494 msgid ""
1495 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1496 "\n"
1497 msgstr ""
1498
1499 #. type: textblock
1500 #: ../cat/virt-cat.pod:188
1501 msgid ""
1502 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1503 "the disk image, and C<file> is the full path to the file."
1504 msgstr ""
1505
1506 #. type: textblock
1507 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
1508 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1509 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
1510 #: ../resize/virt-resize.pod:664 ../sparsify/virt-sparsify.pod:229
1511 msgid ""
1512 "This program returns 0 if successful, or non-zero if there was an error."
1513 msgstr ""
1514
1515 #. type: textblock
1516 #: ../cat/virt-cat.pod:205
1517 msgid ""
1518 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1519 "tar-out(1)>, L<http://libguestfs.org/>."
1520 msgstr ""
1521 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1522 "tar-out(1)>, L<http://libguestfs.org/>."
1523
1524 #. type: textblock
1525 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
1526 #: ../resize/virt-resize.pod:696 ../tools/virt-make-fs.pl:588
1527 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1528 msgstr "©Red Hat Inc., 2010–2011"
1529
1530 #. type: textblock
1531 #: ../cat/virt-filesystems.pod:5
1532 msgid ""
1533 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1534 "virtual machine or disk image"
1535 msgstr ""
1536
1537 #. type: verbatim
1538 #: ../cat/virt-filesystems.pod:9
1539 #, no-wrap
1540 msgid ""
1541 " virt-filesystems [--options] -d domname\n"
1542 "\n"
1543 msgstr ""
1544 " virt-filesystems [--параметри] -d назва_домену\n"
1545 "\n"
1546
1547 #. type: verbatim
1548 #: ../cat/virt-filesystems.pod:11
1549 #, no-wrap
1550 msgid ""
1551 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1552 "\n"
1553 msgstr ""
1554
1555 #. type: textblock
1556 #: ../cat/virt-filesystems.pod:15
1557 msgid ""
1558 "This tool allows you to discover filesystems, partitions, logical volumes, "
1559 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1560 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1561 msgstr ""
1562
1563 #. type: textblock
1564 #: ../cat/virt-filesystems.pod:20
1565 msgid ""
1566 "One use for this tool is from shell scripts to iterate over all filesystems "
1567 "from a disk image:"
1568 msgstr ""
1569
1570 #. type: verbatim
1571 #: ../cat/virt-filesystems.pod:23
1572 #, no-wrap
1573 msgid ""
1574 " for fs in $(virt-filesystems -a disk.img); do\n"
1575 "   # ...\n"
1576 " done\n"
1577 "\n"
1578 msgstr ""
1579 " for fs in $(virt-filesystems -a disk.img); do\n"
1580 "   # ...\n"
1581 " done\n"
1582 "\n"
1583
1584 #. type: textblock
1585 #: ../cat/virt-filesystems.pod:27
1586 msgid ""
1587 "Another use is to list partitions before using another tool to modify those "
1588 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1589 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1590 msgstr ""
1591
1592 #. type: textblock
1593 #: ../cat/virt-filesystems.pod:32
1594 msgid ""
1595 "Various command line options control what this program displays.  You need "
1596 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1597 "guest respectively.  If you just specify that then the program shows "
1598 "filesystems found, one per line, like this:"
1599 msgstr ""
1600
1601 #. type: verbatim
1602 #: ../cat/virt-filesystems.pod:37
1603 #, no-wrap
1604 msgid ""
1605 " $ virt-filesystems -a disk.img\n"
1606 " /dev/sda1\n"
1607 " /dev/vg_guest/lv_root\n"
1608 "\n"
1609 msgstr ""
1610 " $ virt-filesystems -a disk.img\n"
1611 " /dev/sda1\n"
1612 " /dev/vg_guest/lv_root\n"
1613 "\n"
1614
1615 #. type: textblock
1616 #: ../cat/virt-filesystems.pod:41
1617 msgid ""
1618 "If you add I<-l> or I<--long> then the output includes extra information:"
1619 msgstr ""
1620
1621 #. type: verbatim
1622 #: ../cat/virt-filesystems.pod:44
1623 #, no-wrap
1624 msgid ""
1625 " $ virt-filesystems -a disk.img -l\n"
1626 " Name                   Type         VFS   Label  Size\n"
1627 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1628 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1629 "\n"
1630 msgstr ""
1631
1632 #. type: textblock
1633 #: ../cat/virt-filesystems.pod:49
1634 msgid ""
1635 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1636 "shown as well:"
1637 msgstr ""
1638
1639 #. type: verbatim
1640 #: ../cat/virt-filesystems.pod:52
1641 #, no-wrap
1642 msgid ""
1643 " $ virt-filesystems -a disk.img --extra\n"
1644 " /dev/sda1\n"
1645 " /dev/vg_guest/lv_root\n"
1646 " /dev/vg_guest/lv_swap\n"
1647 " /dev/vg_guest/lv_data\n"
1648 "\n"
1649 msgstr ""
1650 " $ virt-filesystems -a disk.img --extra\n"
1651 " /dev/sda1\n"
1652 " /dev/vg_guest/lv_root\n"
1653 " /dev/vg_guest/lv_swap\n"
1654 " /dev/vg_guest/lv_data\n"
1655 "\n"
1656
1657 #. type: textblock
1658 #: ../cat/virt-filesystems.pod:58
1659 msgid ""
1660 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1661 msgstr ""
1662
1663 #. type: verbatim
1664 #: ../cat/virt-filesystems.pod:60
1665 #, no-wrap
1666 msgid ""
1667 " $ virt-filesystems -a disk.img --partitions\n"
1668 " /dev/sda1\n"
1669 " /dev/sda2\n"
1670 "\n"
1671 msgstr ""
1672 " $ virt-filesystems -a disk.img --partitions\n"
1673 " /dev/sda1\n"
1674 " /dev/sda2\n"
1675 "\n"
1676
1677 #. type: textblock
1678 #: ../cat/virt-filesystems.pod:64
1679 msgid ""
1680 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1681 "volumes>, I<--block-devices> to list those items."
1682 msgstr ""
1683
1684 #. type: textblock
1685 #: ../cat/virt-filesystems.pod:67
1686 msgid ""
1687 "You can use these options in combination as well (if you want a combination "
1688 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1689 "items fall into several categories (eg. C</dev/sda1> might be both a "
1690 "partition and a filesystem).  These items are listed several times.  To get "
1691 "a list which includes absolutely everything that virt-filesystems knows "
1692 "about, use the I<--all> option."
1693 msgstr ""
1694
1695 #. type: textblock
1696 #: ../cat/virt-filesystems.pod:74
1697 msgid ""
1698 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1699 "uuid> option to display device and filesystem UUIDs in the long output."
1700 msgstr ""
1701
1702 #. type: textblock
1703 #: ../cat/virt-filesystems.pod:78
1704 msgid ""
1705 "I<--all --long --uuid> is a useful combination to display all possible "
1706 "information about everything."
1707 msgstr ""
1708
1709 #. type: verbatim
1710 #: ../cat/virt-filesystems.pod:81
1711 #, no-wrap
1712 msgid ""
1713 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1714 " Name      Type       VFS  Label           Size Parent   UUID\n"
1715 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1716 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1717 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1718 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1719 " /dev/sda  device     -    -               20G  -        -\n"
1720 "\n"
1721 msgstr ""
1722
1723 #. type: textblock
1724 #: ../cat/virt-filesystems.pod:89
1725 msgid ""
1726 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1727 msgstr ""
1728
1729 #. type: =item
1730 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1731 msgid "B<--all>"
1732 msgstr "B<--all>"
1733
1734 #. type: textblock
1735 #: ../cat/virt-filesystems.pod:112
1736 msgid ""
1737 "Display everything.  This is currently the same as specifying these options: "
1738 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1739 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1740 "added to this list in future)."
1741 msgstr ""
1742
1743 #. type: textblock
1744 #: ../cat/virt-filesystems.pod:117
1745 msgid "See also I<--long>."
1746 msgstr "Див. також I<--long>."
1747
1748 #. type: =item
1749 #: ../cat/virt-filesystems.pod:119
1750 msgid "B<--blkdevs>"
1751 msgstr "B<--blkdevs>"
1752
1753 #. type: =item
1754 #: ../cat/virt-filesystems.pod:121
1755 msgid "B<--block-devices>"
1756 msgstr "B<--block-devices>"
1757
1758 #. type: textblock
1759 #: ../cat/virt-filesystems.pod:123
1760 msgid "Display block devices."
1761 msgstr "Показати список блокових пристроїв."
1762
1763 #. type: =item
1764 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1765 msgid "B<--csv>"
1766 msgstr "B<--csv>"
1767
1768 #. type: textblock
1769 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1770 msgid ""
1771 "Write out the results in CSV format (comma-separated values).  This format "
1772 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1773 "ABOUT CSV FORMAT> below."
1774 msgstr ""
1775
1776 #. type: textblock
1777 #: ../cat/virt-filesystems.pod:150
1778 msgid ""
1779 "When prompting for keys and passphrases, virt-filesystems normally turns "
1780 "echoing off so you cannot see what you are typing.  If you are not worried "
1781 "about Tempest attacks and there is no one else in the room you can specify "
1782 "this flag to see what you are typing."
1783 msgstr ""
1784
1785 #. type: =item
1786 #: ../cat/virt-filesystems.pod:155
1787 msgid "B<--extra>"
1788 msgstr "B<--extra>"
1789
1790 #. type: textblock
1791 #: ../cat/virt-filesystems.pod:157
1792 msgid ""
1793 "This causes filesystems that are not ordinary, mountable filesystems to be "
1794 "displayed.  This category includes swapspace, and filesystems that are empty "
1795 "or contain unknown data."
1796 msgstr ""
1797
1798 #. type: textblock
1799 #: ../cat/virt-filesystems.pod:161
1800 msgid "This option implies I<--filesystems>."
1801 msgstr ""
1802
1803 #. type: =item
1804 #: ../cat/virt-filesystems.pod:163
1805 msgid "B<--filesystems>"
1806 msgstr "B<--filesystems>"
1807
1808 #. type: textblock
1809 #: ../cat/virt-filesystems.pod:165
1810 msgid ""
1811 "Display mountable filesystems.  If no display option was selected then this "
1812 "option is implied."
1813 msgstr ""
1814
1815 #. type: textblock
1816 #: ../cat/virt-filesystems.pod:168
1817 msgid "With I<--extra>, non-mountable filesystems are shown too."
1818 msgstr ""
1819
1820 #. type: verbatim
1821 #: ../cat/virt-filesystems.pod:181
1822 #, no-wrap
1823 msgid ""
1824 " virt-filesystems --format=raw -a disk.img\n"
1825 "\n"
1826 msgstr ""
1827 " virt-filesystems --format=raw -a диск.img\n"
1828 "\n"
1829
1830 #. type: verbatim
1831 #: ../cat/virt-filesystems.pod:185
1832 #, no-wrap
1833 msgid ""
1834 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1835 "\n"
1836 msgstr ""
1837
1838 #. type: =item
1839 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1840 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1841 #: ../tools/virt-list-partitions.pl:109
1842 msgid "B<-h>"
1843 msgstr "B<-h>"
1844
1845 #. type: =item
1846 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1847 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1848 msgid "B<--human-readable>"
1849 msgstr "B<--human-readable>"
1850
1851 #. type: textblock
1852 #: ../cat/virt-filesystems.pod:198
1853 msgid "In I<--long> mode, display sizes in human-readable format."
1854 msgstr ""
1855
1856 #. type: =item
1857 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1858 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1859 msgid "B<-l>"
1860 msgstr "B<-l>"
1861
1862 #. type: =item
1863 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1864 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1865 msgid "B<--long>"
1866 msgstr "B<--long>"
1867
1868 #. type: textblock
1869 #: ../cat/virt-filesystems.pod:209
1870 msgid "Display extra columns of data (\"long format\")."
1871 msgstr ""
1872
1873 #. type: textblock
1874 #: ../cat/virt-filesystems.pod:211
1875 msgid "A title row is added unless you also specify I<--no-title>."
1876 msgstr ""
1877
1878 #. type: textblock
1879 #: ../cat/virt-filesystems.pod:213
1880 msgid ""
1881 "The extra columns displayed depend on what output you select, and the "
1882 "ordering of columns may change in future versions.  Use the title row, I<--"
1883 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1884 "programs."
1885 msgstr ""
1886
1887 #. type: textblock
1888 #: ../cat/virt-filesystems.pod:218
1889 msgid ""
1890 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1891 "default is to show raw numbers of I<bytes>."
1892 msgstr ""
1893
1894 #. type: textblock
1895 #: ../cat/virt-filesystems.pod:221
1896 msgid "Use I<--uuid> to display UUIDs too."
1897 msgstr ""
1898
1899 #. type: =item
1900 #: ../cat/virt-filesystems.pod:223
1901 msgid "B<--lvs>"
1902 msgstr "B<--lvs>"
1903
1904 #. type: =item
1905 #: ../cat/virt-filesystems.pod:225
1906 msgid "B<--logvols>"
1907 msgstr "B<--logvols>"
1908
1909 #. type: =item
1910 #: ../cat/virt-filesystems.pod:227
1911 msgid "B<--logical-volumes>"
1912 msgstr "B<--logical-volumes>"
1913
1914 #. type: textblock
1915 #: ../cat/virt-filesystems.pod:229
1916 msgid ""
1917 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1918 "of whether the LVs contain filesystems."
1919 msgstr ""
1920
1921 #. type: =item
1922 #: ../cat/virt-filesystems.pod:232
1923 msgid "B<--no-title>"
1924 msgstr "B<--no-title>"
1925
1926 #. type: textblock
1927 #: ../cat/virt-filesystems.pod:234
1928 msgid "In I<--long> mode, don't add a title row."
1929 msgstr ""
1930
1931 #. type: textblock
1932 #: ../cat/virt-filesystems.pod:236
1933 msgid ""
1934 "Note that the order of the columns is not fixed, and may change in future "
1935 "versions of virt-filesystems, so using this option may give you unexpected "
1936 "surprises."
1937 msgstr ""
1938
1939 #. type: =item
1940 #: ../cat/virt-filesystems.pod:240
1941 msgid "B<--parts>"
1942 msgstr "B<--parts>"
1943
1944 #. type: =item
1945 #: ../cat/virt-filesystems.pod:242
1946 msgid "B<--partitions>"
1947 msgstr "B<--partitions>"
1948
1949 #. type: textblock
1950 #: ../cat/virt-filesystems.pod:244
1951 msgid ""
1952 "Display partitions.  In this mode, these are displayed irrespective of "
1953 "whether the partitions contain filesystems."
1954 msgstr ""
1955
1956 #. type: =item
1957 #: ../cat/virt-filesystems.pod:247
1958 msgid "B<--pvs>"
1959 msgstr "B<--pvs>"
1960
1961 #. type: =item
1962 #: ../cat/virt-filesystems.pod:249
1963 msgid "B<--physvols>"
1964 msgstr "B<--physvols>"
1965
1966 #. type: =item
1967 #: ../cat/virt-filesystems.pod:251
1968 msgid "B<--physical-volumes>"
1969 msgstr "B<--physical-volumes>"
1970
1971 #. type: textblock
1972 #: ../cat/virt-filesystems.pod:253
1973 msgid "Display LVM physical volumes."
1974 msgstr ""
1975
1976 #. type: =item
1977 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1978 msgid "B<--uuid>"
1979 msgstr "B<--uuid>"
1980
1981 #. type: =item
1982 #: ../cat/virt-filesystems.pod:257
1983 msgid "B<--uuids>"
1984 msgstr "B<--uuids>"
1985
1986 #. type: textblock
1987 #: ../cat/virt-filesystems.pod:259
1988 msgid "In I<--long> mode, display UUIDs as well."
1989 msgstr ""
1990
1991 #. type: =item
1992 #: ../cat/virt-filesystems.pod:273
1993 msgid "B<--vgs>"
1994 msgstr "B<--vgs>"
1995
1996 #. type: =item
1997 #: ../cat/virt-filesystems.pod:275
1998 msgid "B<--volgroups>"
1999 msgstr "B<--volgroups>"
2000
2001 #. type: =item
2002 #: ../cat/virt-filesystems.pod:277
2003 msgid "B<--volume-groups>"
2004 msgstr "B<--volume-groups>"
2005
2006 #. type: textblock
2007 #: ../cat/virt-filesystems.pod:279
2008 msgid "Display LVM volume groups."
2009 msgstr ""
2010
2011 #. type: =head1
2012 #: ../cat/virt-filesystems.pod:287
2013 msgid "COLUMNS"
2014 msgstr "СТОВПЧИКИ"
2015
2016 #. type: textblock
2017 #: ../cat/virt-filesystems.pod:289
2018 msgid ""
2019 "Note that columns in the output are subject to reordering and change in "
2020 "future versions of this tool."
2021 msgstr ""
2022
2023 #. type: =item
2024 #: ../cat/virt-filesystems.pod:294
2025 msgid "B<Name>"
2026 msgstr ""
2027
2028 #. type: textblock
2029 #: ../cat/virt-filesystems.pod:296
2030 msgid "The filesystem, partition, block device or LVM name."
2031 msgstr ""
2032
2033 #. type: textblock
2034 #: ../cat/virt-filesystems.pod:298
2035 msgid ""
2036 "For device and partition names these are displayed as canonical libguestfs "
2037 "names, so that for example C</dev/sda2> is the second partition on the first "
2038 "device."
2039 msgstr ""
2040
2041 #. type: textblock
2042 #: ../cat/virt-filesystems.pod:302
2043 msgid ""
2044 "If the I<--long> option is B<not> specified, then only the name column is "
2045 "shown in the output."
2046 msgstr ""
2047
2048 #. type: =item
2049 #: ../cat/virt-filesystems.pod:305
2050 msgid "B<Type>"
2051 msgstr ""
2052
2053 #. type: textblock
2054 #: ../cat/virt-filesystems.pod:307
2055 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2056 msgstr ""
2057
2058 #. type: =item
2059 #: ../cat/virt-filesystems.pod:309
2060 msgid "B<VFS>"
2061 msgstr "B<VFS>"
2062
2063 #. type: textblock
2064 #: ../cat/virt-filesystems.pod:311
2065 msgid ""
2066 "If there is a filesystem, then this column displays the filesystem type if "
2067 "one could be detected, eg. C<ext4>."
2068 msgstr ""
2069
2070 #. type: =item
2071 #: ../cat/virt-filesystems.pod:314
2072 msgid "B<Label>"
2073 msgstr ""
2074
2075 #. type: textblock
2076 #: ../cat/virt-filesystems.pod:316
2077 msgid ""
2078 "If the object has a label (used for identifying and mounting filesystems) "
2079 "then this column contains the label."
2080 msgstr ""
2081
2082 #. type: =item
2083 #: ../cat/virt-filesystems.pod:319
2084 msgid "B<Size>"
2085 msgstr ""
2086
2087 #. type: textblock
2088 #: ../cat/virt-filesystems.pod:321
2089 msgid ""
2090 "The size of the object in bytes.  If the I<--human> option is used then the "
2091 "size is displayed in a human-readable form."
2092 msgstr ""
2093
2094 #. type: =item
2095 #: ../cat/virt-filesystems.pod:324
2096 msgid "B<Parent>"
2097 msgstr ""
2098
2099 #. type: textblock
2100 #: ../cat/virt-filesystems.pod:326
2101 msgid ""
2102 "The parent column records the parent relationship between objects.  For "
2103 "example, if the object is a partition, then this column contains the name of "
2104 "the containing device.  If the object is a logical volume, then this column "
2105 "is the name of the volume group."
2106 msgstr ""
2107
2108 #. type: =item
2109 #: ../cat/virt-filesystems.pod:331
2110 msgid "B<UUID>"
2111 msgstr "B<UUID>"
2112
2113 #. type: textblock
2114 #: ../cat/virt-filesystems.pod:333
2115 msgid ""
2116 "If the object has a UUID (used for identifying and mounting filesystems and "
2117 "block devices) then this column contains the UUID as a string."
2118 msgstr ""
2119
2120 #. type: textblock
2121 #: ../cat/virt-filesystems.pod:337
2122 msgid "The UUID is only displayed if the I<--uuid> option is given."
2123 msgstr ""
2124
2125 #. type: =head1
2126 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
2127 #: ../df/virt-df.pod:191
2128 msgid "NOTE ABOUT CSV FORMAT"
2129 msgstr ""
2130
2131 #. type: textblock
2132 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
2133 #: ../df/virt-df.pod:193
2134 msgid ""
2135 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2136 "should be easy to parse, but it is definitely not easy to parse."
2137 msgstr ""
2138
2139 #. type: textblock
2140 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
2141 #: ../df/virt-df.pod:196
2142 msgid ""
2143 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2144 "reliably.  This example has two columns:"
2145 msgstr ""
2146
2147 #. type: verbatim
2148 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
2149 #: ../df/virt-df.pod:199
2150 #, no-wrap
2151 msgid ""
2152 " \"foo,bar\",baz\n"
2153 "\n"
2154 msgstr ""
2155
2156 #. type: textblock
2157 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
2158 #: ../df/virt-df.pod:201
2159 msgid ""
2160 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2161 "reliably.  This example has one row:"
2162 msgstr ""
2163
2164 #. type: verbatim
2165 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
2166 #: ../df/virt-df.pod:204
2167 #, no-wrap
2168 msgid ""
2169 " \"foo\n"
2170 " bar\",baz\n"
2171 "\n"
2172 msgstr ""
2173
2174 #. type: textblock
2175 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
2176 #: ../df/virt-df.pod:207
2177 msgid ""
2178 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2179 "packaged in major Linux distributions)."
2180 msgstr ""
2181
2182 #. type: textblock
2183 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
2184 #: ../df/virt-df.pod:210
2185 msgid ""
2186 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2187 "or Python's built-in csv library)."
2188 msgstr ""
2189
2190 #. type: textblock
2191 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
2192 #: ../df/virt-df.pod:213
2193 msgid "Most spreadsheets and databases can import CSV directly."
2194 msgstr ""
2195
2196 #. type: textblock
2197 #: ../cat/virt-filesystems.pod:379
2198 msgid ""
2199 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2200 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2201 "libguestfs.org/>."
2202 msgstr ""
2203 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2204 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2205 "libguestfs.org/>."
2206
2207 #. type: textblock
2208 #: ../cat/virt-filesystems.pod:394 ../tools/virt-win-reg.pl:789
2209 msgid "Copyright (C) 2010 Red Hat Inc."
2210 msgstr "©Red Hat Inc., 2010"
2211
2212 #. type: textblock
2213 #: ../cat/virt-ls.pod:5
2214 msgid "virt-ls - List files in a virtual machine"
2215 msgstr ""
2216
2217 #. type: verbatim
2218 #: ../cat/virt-ls.pod:9
2219 #, no-wrap
2220 msgid ""
2221 " virt-ls [--options] -d domname directory [directory ...]\n"
2222 "\n"
2223 msgstr ""
2224
2225 #. type: verbatim
2226 #: ../cat/virt-ls.pod:11
2227 #, no-wrap
2228 msgid ""
2229 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2230 "\n"
2231 msgstr ""
2232
2233 #. type: textblock
2234 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2235 msgid "Old style:"
2236 msgstr "Старий стиль:"
2237
2238 #. type: verbatim
2239 #: ../cat/virt-ls.pod:15
2240 #, no-wrap
2241 msgid ""
2242 " virt-ls [--options] domname directory\n"
2243 "\n"
2244 msgstr ""
2245
2246 #. type: verbatim
2247 #: ../cat/virt-ls.pod:17
2248 #, no-wrap
2249 msgid ""
2250 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2251 "\n"
2252 msgstr ""
2253
2254 #. type: textblock
2255 #: ../cat/virt-ls.pod:21
2256 msgid ""
2257 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2258 "more from a virtual machine or disk image."
2259 msgstr ""
2260
2261 #. type: textblock
2262 #: ../cat/virt-ls.pod:24
2263 msgid ""
2264 "Multiple directory names can be given, in which case the output from each is "
2265 "concatenated."
2266 msgstr ""
2267
2268 #. type: textblock
2269 #: ../cat/virt-ls.pod:27
2270 msgid ""
2271 "To list directories from a libvirt guest use the I<-d> option to specify the "
2272 "name of the guest.  For a disk image, use the I<-a> option."
2273 msgstr ""
2274
2275 #. type: textblock
2276 #: ../cat/virt-ls.pod:31
2277 msgid ""
2278 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2279 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2280 "(3)> API."
2281 msgstr ""
2282
2283 #. type: textblock
2284 #: ../cat/virt-ls.pod:37
2285 msgid "Get a list of all files and directories in a virtual machine:"
2286 msgstr ""
2287
2288 #. type: verbatim
2289 #: ../cat/virt-ls.pod:39
2290 #, no-wrap
2291 msgid ""
2292 " virt-ls -R -d guest /\n"
2293 "\n"
2294 msgstr ""
2295
2296 #. type: textblock
2297 #: ../cat/virt-ls.pod:41
2298 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2299 msgstr ""
2300
2301 #. type: verbatim
2302 #: ../cat/virt-ls.pod:43
2303 #, no-wrap
2304 msgid ""
2305 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2306 "\n"
2307 msgstr ""
2308
2309 #. type: textblock
2310 #: ../cat/virt-ls.pod:45
2311 msgid "List all public-writable directories in a Linux virtual machine:"
2312 msgstr ""
2313
2314 #. type: verbatim
2315 #: ../cat/virt-ls.pod:47
2316 #, no-wrap
2317 msgid ""
2318 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2319 "\n"
2320 msgstr ""
2321
2322 #. type: textblock
2323 #: ../cat/virt-ls.pod:49
2324 msgid "List all Unix domain sockets in a Linux virtual machine:"
2325 msgstr ""
2326
2327 #. type: verbatim
2328 #: ../cat/virt-ls.pod:51
2329 #, no-wrap
2330 msgid ""
2331 " virt-ls -lR -d guest / | grep '^s'\n"
2332 "\n"
2333 msgstr ""
2334
2335 #. type: textblock
2336 #: ../cat/virt-ls.pod:53
2337 msgid "List all regular files with filenames ending in '.png':"
2338 msgstr ""
2339
2340 #. type: verbatim
2341 #: ../cat/virt-ls.pod:55
2342 #, no-wrap
2343 msgid ""
2344 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2345 "\n"
2346 msgstr ""
2347
2348 #. type: textblock
2349 #: ../cat/virt-ls.pod:57
2350 msgid "To display files larger than 10MB in home directories:"
2351 msgstr ""
2352
2353 #. type: verbatim
2354 #: ../cat/virt-ls.pod:59
2355 #, no-wrap
2356 msgid ""
2357 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2358 "\n"
2359 msgstr ""
2360
2361 #. type: textblock
2362 #: ../cat/virt-ls.pod:61
2363 msgid "Find everything modified in the last 7 days:"
2364 msgstr ""
2365
2366 #. type: verbatim
2367 #: ../cat/virt-ls.pod:63
2368 #, no-wrap
2369 msgid ""
2370 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2371 "\n"
2372 msgstr ""
2373
2374 #. type: textblock
2375 #: ../cat/virt-ls.pod:65
2376 msgid "Find regular files modified in the last 24 hours:"
2377 msgstr ""
2378
2379 #. type: verbatim
2380 #: ../cat/virt-ls.pod:67
2381 #, no-wrap
2382 msgid ""
2383 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2384 "\n"
2385 msgstr ""
2386
2387 #. type: =head2
2388 #: ../cat/virt-ls.pod:69
2389 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2390 msgstr ""
2391
2392 #. type: textblock
2393 #: ../cat/virt-ls.pod:71
2394 msgid ""
2395 "Find the differences between files in a guest and an earlier snapshot of the "
2396 "same guest."
2397 msgstr ""
2398
2399 #. type: verbatim
2400 #: ../cat/virt-ls.pod:74
2401 #, no-wrap
2402 msgid ""
2403 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2404 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2405 " diff -u old new | less\n"
2406 "\n"
2407 msgstr ""
2408
2409 #. type: textblock
2410 #: ../cat/virt-ls.pod:78
2411 msgid ""
2412 "The commands above won't find files where the content has changed but the "
2413 "metadata (eg. file size and modification date) is the same.  To do that, you "
2414 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2415 "checksum> can be quite slow since it has to read and compute a checksum of "
2416 "every regular file in the virtual machine."
2417 msgstr ""
2418
2419 #. type: =head1
2420 #: ../cat/virt-ls.pod:84
2421 msgid "OUTPUT MODES"
2422 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2423
2424 #. type: textblock
2425 #: ../cat/virt-ls.pod:86
2426 msgid ""
2427 "C<virt-ls> has four output modes, controlled by different combinations of "
2428 "the I<-l> and I<-R> options."
2429 msgstr ""
2430
2431 #. type: =head2
2432 #: ../cat/virt-ls.pod:89
2433 msgid "SIMPLE LISTING"
2434 msgstr "ПРОСТИЙ СПИСОК"
2435
2436 #. type: textblock
2437 #: ../cat/virt-ls.pod:91
2438 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2439 msgstr ""
2440
2441 #. type: verbatim
2442 #: ../cat/virt-ls.pod:93
2443 #, no-wrap
2444 msgid ""
2445 " $ virt-ls -d guest /\n"
2446 " bin\n"
2447 " boot\n"
2448 " [etc.]\n"
2449 "\n"
2450 msgstr ""
2451 " $ virt-ls -d guest /\n"
2452 " bin\n"
2453 " boot\n"
2454 " [тощо]\n"
2455 "\n"
2456
2457 #. type: =head2
2458 #: ../cat/virt-ls.pod:98
2459 msgid "LONG LISTING"
2460 msgstr "ДОВГИЙ СПИСОК"
2461
2462 #. type: textblock
2463 #: ../cat/virt-ls.pod:100
2464 msgid ""
2465 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2466 "(more specifically, like the C<guestfs_ll> function)."
2467 msgstr ""
2468
2469 #. type: verbatim
2470 #: ../cat/virt-ls.pod:103
2471 #, no-wrap
2472 msgid ""
2473 " $ virt-ls -l -d guest /\n"
2474 " total 204\n"
2475 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2476 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2477 " [etc.]\n"
2478 "\n"
2479 msgstr ""
2480 " $ virt-ls -l -d guest /\n"
2481 " total 204\n"
2482 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2483 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2484 " [тощо]\n"
2485 "\n"
2486
2487 #. type: textblock
2488 #: ../cat/virt-ls.pod:109
2489 msgid ""
2490 "Note that while this is useful for displaying a directory, do not try "
2491 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2492 "instead."
2493 msgstr ""
2494
2495 #. type: =head2
2496 #: ../cat/virt-ls.pod:113
2497 msgid "RECURSIVE LISTING"
2498 msgstr "РЕКУРСИВНИЙ СПИСОК"
2499
2500 #. type: textblock
2501 #: ../cat/virt-ls.pod:115
2502 msgid ""
2503 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2504 "and directories recursively:"
2505 msgstr ""
2506
2507 #. type: verbatim
2508 #: ../cat/virt-ls.pod:118
2509 #, no-wrap
2510 msgid ""
2511 " $ virt-ls -R -d guest /tmp\n"
2512 " foo\n"
2513 " foo/bar\n"
2514 " [etc.]\n"
2515 "\n"
2516 msgstr ""
2517 " $ virt-ls -R -d guest /tmp\n"
2518 " foo\n"
2519 " foo/bar\n"
2520 " [тощо]\n"
2521 "\n"
2522
2523 #. type: textblock
2524 #: ../cat/virt-ls.pod:123
2525 msgid ""
2526 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2527 "converts C<\\0> characters to C<\\n>."
2528 msgstr ""
2529
2530 #. type: =head2
2531 #: ../cat/virt-ls.pod:126
2532 msgid "RECURSIVE LONG LISTING"
2533 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2534
2535 #. type: textblock
2536 #: ../cat/virt-ls.pod:128
2537 msgid ""
2538 "Using I<-lR> options together changes the output to display directories "
2539 "recursively, with file stats, and optionally other features such as "
2540 "checksums and extended attributes."
2541 msgstr ""
2542
2543 #. type: textblock
2544 #: ../cat/virt-ls.pod:132
2545 msgid ""
2546 "Most of the interesting features of C<virt-ls> are only available when using "
2547 "I<-lR> mode."
2548 msgstr ""
2549
2550 #. type: textblock
2551 #: ../cat/virt-ls.pod:135
2552 msgid ""
2553 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2554 "you cannot use the output in another program (because filenames can contain "
2555 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2556 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2557 "on you by creating filenames with embedded newline characters.  To B<safely> "
2558 "parse the output in another program, use the I<--csv> (Comma-Separated "
2559 "Values) option."
2560 msgstr ""
2561
2562 #. type: textblock
2563 #: ../cat/virt-ls.pod:143
2564 msgid ""
2565 "Note that this output format is completely unrelated to the C<ls -lR> "
2566 "command."
2567 msgstr ""
2568
2569 #. type: verbatim
2570 #: ../cat/virt-ls.pod:146
2571 #, no-wrap
2572 msgid ""
2573 " $ virt-ls -lR -d guest /bin\n"
2574 " d 0555       4096 /bin\n"
2575 " - 0755        123 /bin/alsaunmute\n"
2576 " - 0755      28328 /bin/arch\n"
2577 " l 0777          4 /bin/awk -> gawk\n"
2578 " - 0755      27216 /bin/basename\n"
2579 " - 0755     943360 /bin/bash\n"
2580 " [etc.]\n"
2581 "\n"
2582 msgstr ""
2583 " $ virt-ls -lR -d guest /bin\n"
2584 " d 0555       4096 /bin\n"
2585 " - 0755        123 /bin/alsaunmute\n"
2586 " - 0755      28328 /bin/arch\n"
2587 " l 0777          4 /bin/awk -> gawk\n"
2588 " - 0755      27216 /bin/basename\n"
2589 " - 0755     943360 /bin/bash\n"
2590 " [тощо]\n"
2591 "\n"
2592
2593 #. type: textblock
2594 #: ../cat/virt-ls.pod:155
2595 msgid "These basic fields are always shown:"
2596 msgstr ""
2597
2598 #. type: =item
2599 #: ../cat/virt-ls.pod:159
2600 msgid "type"
2601 msgstr "тип"
2602
2603 #. type: textblock
2604 #: ../cat/virt-ls.pod:161
2605 msgid ""
2606 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2607 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2608 "link), C<s> (socket) or C<u> (unknown)."
2609 msgstr ""
2610
2611 #. type: =item
2612 #: ../cat/virt-ls.pod:171
2613 msgid "permissions"
2614 msgstr "права доступу"
2615
2616 #. type: textblock
2617 #: ../cat/virt-ls.pod:173
2618 msgid "The Unix permissions, displayed as a 4 digit octal number."
2619 msgstr ""
2620
2621 #. type: =item
2622 #: ../cat/virt-ls.pod:175
2623 msgid "size"
2624 msgstr "розмір"
2625
2626 #. type: textblock
2627 #: ../cat/virt-ls.pod:177
2628 msgid ""
2629 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2630 "readable> option is given, in which case this is shown as a human-readable "
2631 "number."
2632 msgstr ""
2633
2634 #. type: =head2
2635 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4263
2636 msgid "path"
2637 msgstr "шлях"
2638
2639 #. type: textblock
2640 #: ../cat/virt-ls.pod:183
2641 msgid "The full path of the file or directory."
2642 msgstr ""
2643
2644 #. type: =item
2645 #: ../cat/virt-ls.pod:185
2646 msgid "link"
2647 msgstr "посилання"
2648
2649 #. type: textblock
2650 #: ../cat/virt-ls.pod:187
2651 msgid "For symbolic links only, the link target."
2652 msgstr ""
2653
2654 #. type: textblock
2655 #: ../cat/virt-ls.pod:191
2656 msgid ""
2657 "In I<-lR> mode, additional command line options enable the display of more "
2658 "fields."
2659 msgstr ""
2660
2661 #. type: textblock
2662 #: ../cat/virt-ls.pod:194
2663 msgid ""
2664 "With the I<--uids> flag, these additional fields are displayed before the "
2665 "path:"
2666 msgstr ""
2667
2668 #. type: =item
2669 #: ../cat/virt-ls.pod:199
2670 msgid "uid"
2671 msgstr "uid"
2672
2673 #. type: =item
2674 #: ../cat/virt-ls.pod:201
2675 msgid "gid"
2676 msgstr "gid"
2677
2678 #. type: textblock
2679 #: ../cat/virt-ls.pod:203
2680 msgid ""
2681 "The UID and GID of the owner of the file (displayed numerically).  Note "
2682 "these only make sense in the context of a Unix-like guest."
2683 msgstr ""
2684
2685 #. type: textblock
2686 #: ../cat/virt-ls.pod:208
2687 msgid "With the I<--times> flag, these additional fields are displayed:"
2688 msgstr ""
2689
2690 #. type: =item
2691 #: ../cat/virt-ls.pod:212
2692 msgid "atime"
2693 msgstr "atime"
2694
2695 #. type: textblock
2696 #: ../cat/virt-ls.pod:214
2697 msgid "The time of last access."
2698 msgstr "Час останнього доступу."
2699
2700 #. type: =item
2701 #: ../cat/virt-ls.pod:216
2702 msgid "mtime"
2703 msgstr "mtime"
2704
2705 #. type: textblock
2706 #: ../cat/virt-ls.pod:218
2707 msgid "The time of last modification."
2708 msgstr "Час останнього внесення змін."
2709
2710 #. type: =item
2711 #: ../cat/virt-ls.pod:220
2712 msgid "ctime"
2713 msgstr "ctime"
2714
2715 #. type: textblock
2716 #: ../cat/virt-ls.pod:222
2717 msgid "The time of last status change."
2718 msgstr "Час останньої зміни стану."
2719
2720 #. type: textblock
2721 #: ../cat/virt-ls.pod:226
2722 msgid ""
2723 "The time fields are displayed as string dates and times, unless one of the "
2724 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2725 msgstr ""
2726
2727 #. type: textblock
2728 #: ../cat/virt-ls.pod:229
2729 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2730 msgstr ""
2731
2732 #. type: =item
2733 #: ../cat/virt-ls.pod:233
2734 msgid "device"
2735 msgstr "пристрій"
2736
2737 #. type: textblock
2738 #: ../cat/virt-ls.pod:235
2739 msgid ""
2740 "The device containing the file (displayed as major:minor).  This may not "
2741 "match devices as known to the guest."
2742 msgstr ""
2743
2744 #. type: =item
2745 #: ../cat/virt-ls.pod:238
2746 msgid "inode"
2747 msgstr "inode"
2748
2749 #. type: textblock
2750 #: ../cat/virt-ls.pod:240
2751 msgid "The inode number."
2752 msgstr ""
2753
2754 #. type: =item
2755 #: ../cat/virt-ls.pod:242
2756 msgid "nlink"
2757 msgstr "nlink"
2758
2759 #. type: textblock
2760 #: ../cat/virt-ls.pod:244
2761 msgid "The number of hard links."
2762 msgstr "Кількість жорстких посилань."
2763
2764 #. type: =item
2765 #: ../cat/virt-ls.pod:246
2766 msgid "rdev"
2767 msgstr "rdev"
2768
2769 #. type: textblock
2770 #: ../cat/virt-ls.pod:248
2771 msgid ""
2772 "For block and char special files, the device (displayed as major:minor)."
2773 msgstr ""
2774
2775 #. type: =item
2776 #: ../cat/virt-ls.pod:251
2777 msgid "blocks"
2778 msgstr "блоки"
2779
2780 #. type: textblock
2781 #: ../cat/virt-ls.pod:253
2782 msgid "The number of 512 byte blocks allocated to the file."
2783 msgstr ""
2784
2785 #. type: textblock
2786 #: ../cat/virt-ls.pod:257
2787 msgid ""
2788 "With the I<--checksum> flag, the checksum of the file contents is shown "
2789 "(only for regular files).  Computing file checksums can take a considerable "
2790 "amount of time."
2791 msgstr ""
2792
2793 #. type: =item
2794 #: ../cat/virt-ls.pod:280
2795 msgid "B<--checksum>"
2796 msgstr "B<--checksum>"
2797
2798 #. type: =item
2799 #: ../cat/virt-ls.pod:282
2800 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2801 msgstr "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2802
2803 #. type: textblock
2804 #: ../cat/virt-ls.pod:284
2805 msgid ""
2806 "Display checksum over file contents for regular files.  With no argument, "
2807 "this defaults to using I<md5>.  Using an argument, you can select the "
2808 "checksum type to use."
2809 msgstr ""
2810
2811 #. type: textblock
2812 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2813 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2814 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2815 msgid ""
2816 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2817 "LISTING> above."
2818 msgstr ""
2819
2820 #. type: textblock
2821 #: ../cat/virt-ls.pod:316
2822 msgid ""
2823 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2824 "so you cannot see what you are typing.  If you are not worried about Tempest "
2825 "attacks and there is no one else in the room you can specify this flag to "
2826 "see what you are typing."
2827 msgstr ""
2828
2829 #. type: =item
2830 #: ../cat/virt-ls.pod:321
2831 msgid "B<--extra-stats>"
2832 msgstr "B<--extra-stats>"
2833
2834 #. type: textblock
2835 #: ../cat/virt-ls.pod:323
2836 msgid "Display extra stats."
2837 msgstr "Показати додаткові дані."
2838
2839 #. type: verbatim
2840 #: ../cat/virt-ls.pod:339
2841 #, no-wrap
2842 msgid ""
2843 " virt-ls --format=raw -a disk.img /dir\n"
2844 "\n"
2845 msgstr ""
2846
2847 #. type: verbatim
2848 #: ../cat/virt-ls.pod:343
2849 #, no-wrap
2850 msgid ""
2851 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2852 "\n"
2853 msgstr ""
2854
2855 #. type: textblock
2856 #: ../cat/virt-ls.pod:356
2857 msgid "Display file sizes in human-readable format."
2858 msgstr ""
2859
2860 #. type: =item
2861 #: ../cat/virt-ls.pod:370
2862 msgid "B<-R>"
2863 msgstr "B<-R>"
2864
2865 #. type: =item
2866 #: ../cat/virt-ls.pod:372
2867 msgid "B<--recursive>"
2868 msgstr "B<--recursive>"
2869
2870 #. type: textblock
2871 #: ../cat/virt-ls.pod:374
2872 msgid ""
2873 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2874 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2875 "LISTING>."
2876 msgstr ""
2877
2878 #. type: textblock
2879 #: ../cat/virt-ls.pod:378
2880 msgid ""
2881 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2882 "LONG LISTING>."
2883 msgstr ""
2884
2885 #. type: textblock
2886 #: ../cat/virt-ls.pod:381
2887 msgid ""
2888 "C<virt-ls -R> produces a recursive list of files starting at the named "
2889 "directory.  See L</RECURSIVE LISTING>."
2890 msgstr ""
2891
2892 #. type: textblock
2893 #: ../cat/virt-ls.pod:384
2894 msgid ""
2895 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2896 "parsed.  See L</RECURSIVE LONG LISTING>."
2897 msgstr ""
2898
2899 #. type: =item
2900 #: ../cat/virt-ls.pod:387
2901 msgid "B<--times>"
2902 msgstr "B<--times>"
2903
2904 #. type: textblock
2905 #: ../cat/virt-ls.pod:389
2906 msgid "Display time fields."
2907 msgstr ""
2908
2909 #. type: =item
2910 #: ../cat/virt-ls.pod:394
2911 msgid "B<--time-days>"
2912 msgstr "B<--time-days>"
2913
2914 #. type: textblock
2915 #: ../cat/virt-ls.pod:396
2916 msgid "Display time fields as days before now (negative if in the future)."
2917 msgstr ""
2918
2919 #. type: textblock
2920 #: ../cat/virt-ls.pod:398
2921 msgid ""
2922 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2923 "of the file is between 0 and 86399 seconds."
2924 msgstr ""
2925
2926 #. type: =item
2927 #: ../cat/virt-ls.pod:404
2928 msgid "B<--time-relative>"
2929 msgstr "B<--time-relative>"
2930
2931 #. type: textblock
2932 #: ../cat/virt-ls.pod:406
2933 msgid "Display time fields as seconds before now (negative if in the future)."
2934 msgstr ""
2935
2936 #. type: =item
2937 #: ../cat/virt-ls.pod:411
2938 msgid "B<--time-t>"
2939 msgstr "B<--time-t>"
2940
2941 #. type: textblock
2942 #: ../cat/virt-ls.pod:413
2943 msgid "Display time fields as seconds since the Unix epoch."
2944 msgstr ""
2945
2946 #. type: =item
2947 #: ../cat/virt-ls.pod:418
2948 msgid "B<--uids>"
2949 msgstr "B<--uids>"
2950
2951 #. type: textblock
2952 #: ../cat/virt-ls.pod:420
2953 msgid "Display UID and GID fields."
2954 msgstr ""
2955
2956 #. type: textblock
2957 #: ../cat/virt-ls.pod:445
2958 msgid "Previous versions of virt-ls allowed you to write either:"
2959 msgstr ""
2960
2961 #. type: verbatim
2962 #: ../cat/virt-ls.pod:447
2963 #, no-wrap
2964 msgid ""
2965 " virt-ls disk.img [disk.img ...] /dir\n"
2966 "\n"
2967 msgstr ""
2968
2969 #. type: verbatim
2970 #: ../cat/virt-ls.pod:451
2971 #, no-wrap
2972 msgid ""
2973 " virt-ls guestname /dir\n"
2974 "\n"
2975 msgstr ""
2976
2977 #. type: textblock
2978 #: ../cat/virt-ls.pod:497
2979 msgid ""
2980 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2981 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2982 "L<http://libguestfs.org/>."
2983 msgstr ""
2984 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2985 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2986 "L<http://libguestfs.org/>."
2987
2988 #. type: textblock
2989 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2990 #: ../rescue/virt-rescue.pod:302
2991 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2992 msgstr "©Red Hat Inc., 2009–2011"
2993
2994 #. type: textblock
2995 #: ../clone/virt-sysprep.pod:5
2996 msgid ""
2997 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2998 msgstr ""
2999
3000 #. type: verbatim
3001 #: ../clone/virt-sysprep.pod:9
3002 #, no-wrap
3003 msgid ""
3004 " virt-sysprep [--options] -d domname\n"
3005 "\n"
3006 msgstr ""
3007
3008 #. type: verbatim
3009 #: ../clone/virt-sysprep.pod:11
3010 #, no-wrap
3011 msgid ""
3012 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3013 "\n"
3014 msgstr ""
3015
3016 #. type: textblock
3017 #: ../clone/virt-sysprep.pod:15
3018 msgid ""
3019 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3020 "can be made from it.  Steps in this process include removing SSH host keys, "
3021 "removing persistent network MAC configuration, and removing user accounts.  "
3022 "Each step can be enabled or disabled as required."
3023 msgstr ""
3024
3025 #. type: textblock
3026 #: ../clone/virt-sysprep.pod:21
3027 msgid ""
3028 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3029 "customization by the system administrator."
3030 msgstr ""
3031
3032 #. type: textblock
3033 #: ../clone/virt-sysprep.pod:24
3034 msgid ""
3035 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3036 "be shut down.  If you want to preserve the existing contents of the guest, "
3037 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3038 msgstr ""
3039
3040 #. type: textblock
3041 #: ../clone/virt-sysprep.pod:29
3042 msgid ""
3043 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3044 "recommend that you don't.  The time you might want to run it as root is when "
3045 "you need root in order to access the disk image, but even in this case it "
3046 "would be better to change the permissions on the disk image to be writable "
3047 "as the non-root user running virt-sysprep."
3048 msgstr ""
3049
3050 #. type: textblock
3051 #: ../clone/virt-sysprep.pod:35
3052 msgid ""
3053 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3054 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3055 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3056 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3057 "Windows sysprepping in a future version, and we already have code to do it."
3058 msgstr ""
3059
3060 #. type: =item
3061 #: ../clone/virt-sysprep.pod:76
3062 msgid "B<--enable=...>"
3063 msgstr ""
3064
3065 #. type: textblock
3066 #: ../clone/virt-sysprep.pod:78
3067 msgid ""
3068 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3069 "operations, for example:"
3070 msgstr ""
3071
3072 #. type: verbatim
3073 #: ../clone/virt-sysprep.pod:81
3074 #, no-wrap
3075 msgid ""
3076 " --enable=ssh-hostkeys,udev-persistent-net\n"
3077 "\n"
3078 msgstr ""
3079
3080 #. type: textblock
3081 #: ../clone/virt-sysprep.pod:83
3082 msgid ""
3083 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3084 msgstr ""
3085
3086 #. type: textblock
3087 #: ../clone/virt-sysprep.pod:85
3088 msgid ""
3089 "If the I<--enable> option is not given, then we default to trying all "
3090 "possible sysprep operations.  But some sysprep operations are skipped for "
3091 "some guest types."
3092 msgstr ""
3093
3094 #. type: textblock
3095 #: ../clone/virt-sysprep.pod:89
3096 msgid ""
3097 "Use I<--list-operations> to list operations supported by a particular "
3098 "version of virt-sysprep."
3099 msgstr ""
3100
3101 #. type: textblock
3102 #: ../clone/virt-sysprep.pod:92
3103 msgid ""
3104 "See L</OPERATIONS> below for a list and an explanation of each operation."
3105 msgstr ""
3106
3107 #. type: verbatim
3108 #: ../clone/virt-sysprep.pod:106
3109 #, no-wrap
3110 msgid ""
3111 " virt-sysprep --format=raw -a disk.img\n"
3112 "\n"
3113 msgstr ""
3114
3115 #. type: verbatim
3116 #: ../clone/virt-sysprep.pod:110
3117 #, no-wrap
3118 msgid ""
3119 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3120 "\n"
3121 msgstr ""
3122
3123 #. type: =item
3124 #: ../clone/virt-sysprep.pod:119
3125 msgid "B<--hostname> newhostname"
3126 msgstr ""
3127
3128 #. type: textblock
3129 #: ../clone/virt-sysprep.pod:121
3130 msgid ""
3131 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3132 "defaults to C<localhost.localdomain>."
3133 msgstr ""
3134
3135 #. type: =item
3136 #: ../clone/virt-sysprep.pod:124
3137 msgid "B<--list-operations>"
3138 msgstr ""
3139
3140 #. type: textblock
3141 #: ../clone/virt-sysprep.pod:126
3142 msgid "List the operations supported by the virt-sysprep program."
3143 msgstr ""
3144
3145 #. type: =item
3146 #: ../clone/virt-sysprep.pod:128
3147 msgid "B<--selinux-relabel>"
3148 msgstr ""
3149
3150 #. type: =item
3151 #: ../clone/virt-sysprep.pod:130
3152 msgid "B<--no-selinux-relabel>"
3153 msgstr ""
3154
3155 #. type: textblock
3156 #: ../clone/virt-sysprep.pod:132
3157 msgid ""
3158 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3159 "I<--no-selinux-relabel> disables relabelling."
3160 msgstr ""
3161
3162 #. type: textblock
3163 #: ../clone/virt-sysprep.pod:135
3164 msgid ""
3165 "The default is to try to detect if SELinux relabelling is required.  See L</"
3166 "SELINUX RELABELLING> below for more details."
3167 msgstr ""
3168
3169 #. type: =head1
3170 #: ../clone/virt-sysprep.pod:156
3171 msgid "OPERATIONS"
3172 msgstr ""
3173
3174 #. type: textblock
3175 #: ../clone/virt-sysprep.pod:158
3176 msgid ""
3177 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3178 "enabled>, although some are skipped depending on the type of guest."
3179 msgstr ""
3180
3181 #. type: textblock
3182 #: ../clone/virt-sysprep.pod:162
3183 msgid ""
3184 "Operations can be individually enabled using the I<--enable> option.  Use a "
3185 "comma-separated list, for example:"
3186 msgstr ""
3187
3188 #. type: verbatim
3189 #: ../clone/virt-sysprep.pod:165
3190 #, no-wrap
3191 msgid ""
3192 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3193 "\n"
3194 msgstr ""
3195
3196 #. type: textblock
3197 #: ../clone/virt-sysprep.pod:167
3198 msgid ""
3199 "To list the operations supported by the current version of virt-sysprep, use "
3200 "I<--list-operations>."
3201 msgstr ""
3202
3203 #. type: textblock
3204 #: ../clone/virt-sysprep.pod:170
3205 msgid ""
3206 "Future versions of virt-sysprep may add more operations.  If you are using "
3207 "virt-sysprep and want predictable behaviour, specify only the operations "
3208 "that you want to have enabled."
3209 msgstr ""
3210
3211 #. type: =head2
3212 #: ../clone/virt-sysprep.pod:174
3213 msgid "cron-spool"
3214 msgstr ""
3215
3216 #. type: textblock
3217 #: ../clone/virt-sysprep.pod:176
3218 msgid "Remove user at-jobs and cron-jobs."
3219 msgstr ""
3220
3221 #. type: =head2
3222 #: ../clone/virt-sysprep.pod:178
3223 msgid "dhcp-client-state"
3224 msgstr ""
3225
3226 #. type: textblock
3227 #: ../clone/virt-sysprep.pod:180
3228 msgid "Remove DHCP client leases."
3229 msgstr ""
3230
3231 #. type: =head2
3232 #: ../clone/virt-sysprep.pod:182
3233 msgid "dhcp-server-state"
3234 msgstr ""
3235
3236 #. type: textblock
3237 #: ../clone/virt-sysprep.pod:184
3238 msgid "Remove DHCP server leases."
3239 msgstr ""
3240
3241 #. type: =head2
3242 #: ../clone/virt-sysprep.pod:186
3243 msgid "hostname"
3244 msgstr ""
3245
3246 #. type: textblock
3247 #: ../clone/virt-sysprep.pod:188
3248 msgid ""
3249 "Changes the hostname of the guest to the value given in the I<--hostname> "
3250 "parameter."
3251 msgstr ""
3252
3253 #. type: textblock
3254 #: ../clone/virt-sysprep.pod:191
3255 msgid ""
3256 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3257 "C<localhost.localdomain>."
3258 msgstr ""
3259
3260 #. type: =head2
3261 #: ../clone/virt-sysprep.pod:194
3262 msgid "logfiles"
3263 msgstr ""
3264
3265 #. type: textblock
3266 #: ../clone/virt-sysprep.pod:196
3267 msgid "Remove many log files."
3268 msgstr ""
3269
3270 #. type: =head2
3271 #: ../clone/virt-sysprep.pod:198
3272 msgid "mail-spool"
3273 msgstr ""
3274
3275 #. type: textblock
3276 #: ../clone/virt-sysprep.pod:200
3277 msgid "Remove email from the local mail spool directory."
3278 msgstr ""
3279
3280 #. type: =head2
3281 #: ../clone/virt-sysprep.pod:202
3282 msgid "net-hwaddr"
3283 msgstr ""
3284
3285 #. type: textblock
3286 #: ../clone/virt-sysprep.pod:204
3287 msgid ""
3288 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3289 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3290 msgstr ""
3291
3292 #. type: =head2
3293 #: ../clone/virt-sysprep.pod:207
3294 msgid "random-seed"
3295 msgstr ""
3296
3297 #. type: textblock
3298 #: ../clone/virt-sysprep.pod:209
3299 msgid ""
3300 "Write some random bytes from the host into the random seed file of the guest."
3301 msgstr ""
3302
3303 #. type: textblock
3304 #: ../clone/virt-sysprep.pod:212
3305 msgid "See L</RANDOM SEED> below."
3306 msgstr ""
3307
3308 #. type: =head2
3309 #: ../clone/virt-sysprep.pod:214
3310 msgid "rhn-systemid"
3311 msgstr ""
3312
3313 #. type: textblock
3314 #: ../clone/virt-sysprep.pod:216
3315 msgid "Remove the RHN system ID."
3316 msgstr ""
3317
3318 #. type: =head2
3319 #: ../clone/virt-sysprep.pod:218
3320 msgid "smolt-uuid"
3321 msgstr ""
3322
3323 #. type: textblock
3324 #: ../clone/virt-sysprep.pod:220
3325 msgid "Remove the Smolt hardware UUID."
3326 msgstr ""
3327
3328 #. type: =head2
3329 #: ../clone/virt-sysprep.pod:222
3330 msgid "ssh-hostkeys"
3331 msgstr ""
3332
3333 #. type: textblock
3334 #: ../clone/virt-sysprep.pod:224
3335 msgid "Remove the SSH host keys in the guest."
3336 msgstr ""
3337
3338 #. type: textblock
3339 #: ../clone/virt-sysprep.pod:226
3340 msgid ""
3341 "The SSH host keys are regenerated (differently) next time the guest is "
3342 "booted."
3343 msgstr ""
3344
3345 #. type: textblock
3346 #: ../clone/virt-sysprep.pod:229
3347 msgid ""
3348 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3349 "stark warning about the host key changing:"
3350 msgstr ""
3351
3352 #. type: verbatim
3353 #: ../clone/virt-sysprep.pod:232
3354 #, no-wrap
3355 msgid ""
3356 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3357 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3358 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3359 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3360 "\n"
3361 msgstr ""
3362
3363 #. type: =head2
3364 #: ../clone/virt-sysprep.pod:237
3365 msgid "udev-persistent-net"
3366 msgstr ""
3367
3368 #. type: textblock
3369 #: ../clone/virt-sysprep.pod:239
3370 msgid ""
3371 "Remove udev persistent net rules which map the guest's existing MAC address "
3372 "to a fixed ethernet device (eg. eth0)."
3373 msgstr ""
3374
3375 #. type: textblock
3376 #: ../clone/virt-sysprep.pod:242
3377 msgid ""
3378 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3379 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3380 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3381 "Erasing the udev persistent net rules avoids this."
3382 msgstr ""
3383
3384 #. type: =head2
3385 #: ../clone/virt-sysprep.pod:247
3386 msgid "utmp"
3387 msgstr ""
3388
3389 #. type: textblock
3390 #: ../clone/virt-sysprep.pod:249
3391 msgid "Remove the utmp file."
3392 msgstr ""
3393
3394 #. type: textblock
3395 #: ../clone/virt-sysprep.pod:251
3396 msgid ""
3397 "This records who is currently logged in on a machine.  In modern Linux "
3398 "distros it is stored in a ramdisk and hence not part of the virtual "
3399 "machine's disk, but it was stored on disk in older distros."
3400 msgstr ""
3401
3402 #. type: =head2
3403 #: ../clone/virt-sysprep.pod:255
3404 msgid "yum-uuid"
3405 msgstr ""
3406
3407 #. type: textblock
3408 #: ../clone/virt-sysprep.pod:257
3409 msgid "Remove the yum UUID."
3410 msgstr ""
3411
3412 #. type: textblock
3413 #: ../clone/virt-sysprep.pod:259
3414 msgid ""
3415 "Yum creates a fresh UUID the next time it runs when it notices that the "
3416 "original UUID has been erased."
3417 msgstr ""
3418
3419 #. type: =head1
3420 #: ../clone/virt-sysprep.pod:262
3421 msgid "COPYING AND CLONING"
3422 msgstr ""
3423
3424 #. type: textblock
3425 #: ../clone/virt-sysprep.pod:264
3426 msgid ""
3427 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3428 "prepare a template from which guests can be cloned.  There are many "
3429 "different ways to achieve this using the virt tools, and this section is "
3430 "just an introduction."
3431 msgstr ""
3432
3433 #. type: textblock
3434 #: ../clone/virt-sysprep.pod:269
3435 msgid "A virtual machine (when switched off) consists of two parts:"
3436 msgstr ""
3437
3438 #. type: =item
3439 #: ../clone/virt-sysprep.pod:273
3440 msgid "I<configuration>"
3441 msgstr ""
3442
3443 #. type: textblock
3444 #: ../clone/virt-sysprep.pod:275
3445 msgid ""
3446 "The configuration or description of the guest.  eg. The libvirt XML (see "
3447 "C<virsh dumpxml>), the running configuration of the guest, or another "
3448 "external format like OVF."
3449 msgstr ""
3450
3451 #. type: textblock
3452 #: ../clone/virt-sysprep.pod:279
3453 msgid "Some configuration items that might need to be changed:"
3454 msgstr ""
3455
3456 #. type: textblock
3457 #: ../clone/virt-sysprep.pod:285
3458 msgid "name"
3459 msgstr ""
3460
3461 #. type: textblock
3462 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3463 msgid "UUID"
3464 msgstr ""
3465
3466 #. type: textblock
3467 #: ../clone/virt-sysprep.pod:293
3468 msgid "path to block device(s)"
3469 msgstr ""
3470
3471 #. type: textblock
3472 #: ../clone/virt-sysprep.pod:297
3473 msgid "network card MAC address"
3474 msgstr ""
3475
3476 #. type: =item
3477 #: ../clone/virt-sysprep.pod:301
3478 msgid "I<block device(s)>"
3479 msgstr ""
3480
3481 #. type: textblock
3482 #: ../clone/virt-sysprep.pod:303
3483 msgid ""
3484 "One or more hard disk images, themselves containing files, directories, "
3485 "applications, kernels, configuration, etc."
3486 msgstr ""
3487
3488 #. type: textblock
3489 #: ../clone/virt-sysprep.pod:306
3490 msgid "Some things inside the block devices that might need to be changed:"
3491 msgstr ""
3492
3493 #. type: textblock
3494 #: ../clone/virt-sysprep.pod:312
3495 msgid "hostname and other net configuration"
3496 msgstr ""
3497
3498 #. type: textblock
3499 #: ../clone/virt-sysprep.pod:320
3500 msgid "SSH host keys"
3501 msgstr ""
3502
3503 #. type: textblock
3504 #: ../clone/virt-sysprep.pod:324
3505 msgid "Windows unique security ID (SID)"
3506 msgstr ""
3507
3508 #. type: textblock
3509 #: ../clone/virt-sysprep.pod:328
3510 msgid "Puppet registration"
3511 msgstr ""
3512
3513 #. type: =head2
3514 #: ../clone/virt-sysprep.pod:334
3515 msgid "COPYING THE BLOCK DEVICE"
3516 msgstr ""
3517
3518 #. type: textblock
3519 #: ../clone/virt-sysprep.pod:336
3520 msgid ""
3521 "Starting with an original guest, you probably wish to copy the guest block "
3522 "device and its configuration to make a template.  Then once you are happy "
3523 "with the template, you will want to make many clones from it."
3524 msgstr ""
3525
3526 #. type: verbatim
3527 #: ../clone/virt-sysprep.pod:341
3528 #, no-wrap
3529 msgid ""
3530 "                        virt-sysprep\n"
3531 "                             |\n"
3532 "                             v\n"
3533 " original guest --------> template ---------->\n"
3534 "                                      \\------> cloned\n"
3535 "                                       \\-----> guests\n"
3536 "                                        \\---->\n"
3537 "\n"
3538 msgstr ""
3539
3540 #. type: textblock
3541 #: ../clone/virt-sysprep.pod:349
3542 msgid ""
3543 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3544 "L<dd(1)>."
3545 msgstr ""
3546
3547 #. type: verbatim
3548 #: ../clone/virt-sysprep.pod:352
3549 #, no-wrap
3550 msgid ""
3551 "                   dd                 dd\n"
3552 " original guest --------> template ---------->\n"
3553 "                                      \\------> cloned\n"
3554 "                                       \\-----> guests\n"
3555 "                                        \\---->\n"
3556 "\n"
3557 msgstr ""
3558
3559 #. type: textblock
3560 #: ../clone/virt-sysprep.pod:358
3561 msgid "There are some smarter (and faster) ways too:"
3562 msgstr ""
3563
3564 #. type: verbatim
3565 #: ../clone/virt-sysprep.pod:364
3566 #, no-wrap
3567 msgid ""
3568 "                          snapshot\n"
3569 "                template ---------->\n"
3570 "                            \\------> cloned\n"
3571 "                             \\-----> guests\n"
3572 "                              \\---->\n"
3573 "\n"
3574 msgstr ""
3575
3576 #. type: textblock
3577 #: ../clone/virt-sysprep.pod:370
3578 msgid ""
3579 "Use the block device as a backing file and create a snapshot on top for each "
3580 "guest.  The advantage is that you don't need to copy the block device (very "
3581 "fast) and only changes are stored (less storage required)."
3582 msgstr ""
3583
3584 #. type: textblock
3585 #: ../clone/virt-sysprep.pod:375
3586 msgid ""
3587 "Note that writing to the backing file once you have created guests on top of "
3588 "it is not possible: you will corrupt the guests."
3589 msgstr ""
3590
3591 #. type: textblock
3592 #: ../clone/virt-sysprep.pod:378
3593 msgid ""
3594 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3595 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3596 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3597 "also create cheap snapshots from files or LUNs."
3598 msgstr ""
3599
3600 #. type: textblock
3601 #: ../clone/virt-sysprep.pod:386
3602 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3603 msgstr ""
3604
3605 #. type: textblock
3606 #: ../clone/virt-sysprep.pod:390
3607 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3608 msgstr ""
3609
3610 #. type: =head2
3611 #: ../clone/virt-sysprep.pod:394
3612 msgid "VIRT-CLONE"
3613 msgstr ""
3614
3615 #. type: textblock
3616 #: ../clone/virt-sysprep.pod:396
3617 msgid ""
3618 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3619 "and/or modify the external libvirt configuration of a guest.  It will reset "
3620 "the name, UUID and MAC address of the guest in the libvirt XML."
3621 msgstr ""
3622
3623 #. type: textblock
3624 #: ../clone/virt-sysprep.pod:401
3625 msgid ""
3626 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3627 "image.  This was the original motivation to write virt-sysprep."
3628 msgstr ""
3629
3630 #. type: =head2
3631 #: ../clone/virt-sysprep.pod:404
3632 msgid "SPARSIFY"
3633 msgstr ""
3634
3635 #. type: verbatim
3636 #: ../clone/virt-sysprep.pod:406
3637 #, no-wrap
3638 msgid ""
3639 "              virt-sparsify\n"
3640 " original guest --------> template\n"
3641 "\n"
3642 msgstr ""
3643
3644 #. type: textblock
3645 #: ../clone/virt-sysprep.pod:409
3646 msgid ""
3647 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3648 "it easier to compress and/or faster to copy."
3649 msgstr ""
3650
3651 #. type: textblock
3652 #: ../clone/virt-sysprep.pod:412
3653 msgid ""
3654 "Notice that since virt-sparsify also copies the image, you can use it to "
3655 "make the initial copy (instead of C<dd>)."
3656 msgstr ""
3657
3658 #. type: =head2
3659 #: ../clone/virt-sysprep.pod:415
3660 msgid "RESIZE"
3661 msgstr ""
3662
3663 #. type: verbatim
3664 #: ../clone/virt-sysprep.pod:417
3665 #, no-wrap
3666 msgid ""
3667 "                         virt-resize\n"
3668 "                template ---------->\n"
3669 "                            \\------> cloned\n"
3670 "                             \\-----> guests\n"
3671 "                              \\---->\n"
3672 "\n"
3673 msgstr ""
3674
3675 #. type: textblock
3676 #: ../clone/virt-sysprep.pod:423
3677 msgid ""
3678 "If you want to give people cloned guests, but let them pick the size of the "
3679 "guest themselves (eg. depending on how much they are prepared to pay for "
3680 "disk space), then instead of copying the template, you can run L<virt-resize"
3681 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3682 "guests from a template."
3683 msgstr ""
3684
3685 #. type: =head1
3686 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1149
3687 msgid "SECURITY"
3688 msgstr "БЕЗПЕКА"
3689
3690 #. type: textblock
3691 #: ../clone/virt-sysprep.pod:431
3692 msgid ""
3693 "Although virt-sysprep removes some sensitive information from the guest, it "
3694 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3695 "above, and the implementation of the operations in the shell script.  You "
3696 "should also examine the guest afterwards."
3697 msgstr ""
3698
3699 #. type: textblock
3700 #: ../clone/virt-sysprep.pod:436
3701 msgid ""
3702 "Sensitive files are simply removed.  The data they contained may still exist "
3703 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3704 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3705 "(1)> command to get rid of deleted content in directory entries and inodes."
3706 msgstr ""
3707
3708 #. type: =head2
3709 #: ../clone/virt-sysprep.pod:442
3710 msgid "RANDOM SEED"
3711 msgstr ""
3712
3713 #. type: textblock
3714 #: ../clone/virt-sysprep.pod:444
3715 msgid "I<(This section applies to Linux guests only)>"
3716 msgstr ""
3717
3718 #. type: textblock
3719 #: ../clone/virt-sysprep.pod:446
3720 msgid ""
3721 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3722 "from the host into the guest's random seed file."
3723 msgstr ""
3724
3725 #. type: textblock
3726 #: ../clone/virt-sysprep.pod:449
3727 msgid ""
3728 "If this is just done once and the guest is cloned from the same template, "
3729 "then each guest will start with the same entropy, and things like SSH host "
3730 "keys and TCP sequence numbers may be predictable."
3731 msgstr ""
3732
3733 #. type: textblock
3734 #: ../clone/virt-sysprep.pod:453
3735 msgid ""
3736 "Therefore you should arrange to add more randomness I<after> cloning from a "
3737 "template too, which can be done by just enabling the C<random-seed> "
3738 "operation:"
3739 msgstr ""
3740
3741 #. type: verbatim
3742 #: ../clone/virt-sysprep.pod:457
3743 #, no-wrap
3744 msgid ""
3745 " cp template.img newguest.img\n"
3746 " virt-sysprep --enable=random-seed -a newguest.img\n"
3747 "\n"
3748 msgstr ""
3749
3750 #. type: =head2
3751 #: ../clone/virt-sysprep.pod:460
3752 msgid "SELINUX RELABELLING"
3753 msgstr ""
3754
3755 #. type: textblock
3756 #: ../clone/virt-sysprep.pod:462
3757 msgid "I<(This section applies to Linux guests using SELinux only)>"
3758 msgstr ""
3759
3760 #. type: textblock
3761 #: ../clone/virt-sysprep.pod:464
3762 msgid ""
3763 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3764 "autorelabel> so that these will be correctly labelled by SELinux the next "
3765 "time the guest is booted.  This process interrupts boot and can take some "
3766 "time."
3767 msgstr ""
3768
3769 #. type: textblock
3770 #: ../clone/virt-sysprep.pod:469
3771 msgid ""
3772 "You can force relabelling for all guests by supplying the I<--selinux-"
3773 "relabel> option."
3774 msgstr ""
3775
3776 #. type: textblock
3777 #: ../clone/virt-sysprep.pod:472
3778 msgid ""
3779 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3780 "relabel> option."
3781 msgstr ""
3782
3783 #. type: textblock
3784 #: ../clone/virt-sysprep.pod:484
3785 msgid "This program returns 0 on success, or 1 if there was an error."
3786 msgstr ""
3787
3788 #. type: textblock
3789 #: ../clone/virt-sysprep.pod:488
3790 msgid ""
3791 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3792 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3793 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3794 msgstr ""
3795
3796 #. type: textblock
3797 #: ../df/virt-df.pod:5
3798 msgid "virt-df - Display free space on virtual filesystems"
3799 msgstr ""
3800
3801 #. type: verbatim
3802 #: ../df/virt-df.pod:9
3803 #, no-wrap
3804 msgid ""
3805 " virt-df [--options]\n"
3806 "\n"
3807 msgstr ""
3808 " virt-df [--параметри]\n"
3809 "\n"
3810
3811 #. type: verbatim
3812 #: ../df/virt-df.pod:11
3813 #, no-wrap
3814 msgid ""
3815 " virt-df [--options] -d domname\n"
3816 "\n"
3817 msgstr ""
3818
3819 #. type: verbatim
3820 #: ../df/virt-df.pod:13
3821 #, no-wrap
3822 msgid ""
3823 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3824 "\n"
3825 msgstr ""
3826
3827 #. type: verbatim
3828 #: ../df/virt-df.pod:17
3829 #, no-wrap
3830 msgid ""
3831 " virt-df [--options] domname\n"
3832 "\n"
3833 msgstr ""
3834
3835 #. type: verbatim
3836 #: ../df/virt-df.pod:19
3837 #, no-wrap
3838 msgid ""
3839 " virt-df [--options] disk.img [disk.img ...]\n"
3840 "\n"
3841 msgstr ""
3842
3843 #. type: textblock
3844 #: ../df/virt-df.pod:23
3845 msgid ""
3846 "C<virt-df> is a command line tool to display free space on virtual machine "
3847 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3848 "allocated to a virtual machine, but can look inside disk images to see how "
3849 "much space is really being used."
3850 msgstr ""
3851
3852 #. type: textblock
3853 #: ../df/virt-df.pod:28
3854 msgid ""
3855 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3856 "to get a list of all active and inactive guests, and performs a C<df>-type "
3857 "operation on each one in turn, printing out the results."
3858 msgstr ""
3859
3860 #. type: textblock
3861 #: ../df/virt-df.pod:32
3862 msgid ""
3863 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3864 "type operation on either the single named libvirt domain, or on the disk "
3865 "image(s) listed on the command line (which must all belong to a single VM).  "
3866 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3867 "guest>.  If you want to run on multiple guests, then you have to invoke "
3868 "C<virt-df> multiple times."
3869 msgstr ""
3870
3871 #. type: textblock
3872 #: ../df/virt-df.pod:39
3873 msgid ""
3874 "Use the I<--csv> option to get a format which can be easily parsed by other "
3875 "programs.  Other options are similar to the standard L<df(1)> command."
3876 msgstr ""
3877
3878 #. type: textblock
3879 #: ../df/virt-df.pod:45
3880 msgid ""
3881 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3882 "output human-readable:"
3883 msgstr ""
3884
3885 #. type: verbatim
3886 #: ../df/virt-df.pod:48
3887 #, no-wrap
3888 msgid ""
3889 " # virt-df -d F14x64 -h\n"
3890 " Filesystem                       Size     Used  Available  Use%\n"
3891 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3892 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3893 "\n"
3894 msgstr ""
3895
3896 #. type: textblock
3897 #: ../df/virt-df.pod:53
3898 msgid "Show disk usage for a disk image file called C<test.img>:"
3899 msgstr ""
3900
3901 #. type: verbatim
3902 #: ../df/virt-df.pod:55
3903 #, no-wrap
3904 msgid ""
3905 " $ virt-df -a test1.img\n"
3906 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3907 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3908 "\n"
3909 msgstr ""
3910
3911 #. type: verbatim
3912 #: ../df/virt-df.pod:112
3913 #, no-wrap
3914 msgid ""
3915 " virt-df --format=raw -a disk.img\n"
3916 "\n"
3917 msgstr ""
3918
3919 #. type: verbatim
3920 #: ../df/virt-df.pod:116
3921 #, no-wrap
3922 msgid ""
3923 " virt-df --format=raw -a disk.img --format -a another.img\n"
3924 "\n"
3925 msgstr ""
3926
3927 #. type: textblock
3928 #: ../df/virt-df.pod:129
3929 msgid "Print sizes in human-readable format."
3930 msgstr ""
3931
3932 #. type: textblock
3933 #: ../df/virt-df.pod:131
3934 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3935 msgstr ""
3936
3937 #. type: =item
3938 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3939 msgid "B<-i>"
3940 msgstr "B<-i>"
3941
3942 #. type: =item
3943 #: ../df/virt-df.pod:135
3944 msgid "B<--inodes>"
3945 msgstr "B<--inodes>"
3946
3947 #. type: textblock
3948 #: ../df/virt-df.pod:137
3949 msgid "Print inodes instead of blocks."
3950 msgstr ""
3951
3952 #. type: =item
3953 #: ../df/virt-df.pod:139
3954 msgid "B<--one-per-guest>"
3955 msgstr "B<--one-per-guest>"
3956
3957 #. type: textblock
3958 #: ../df/virt-df.pod:141
3959 msgid ""
3960 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3961 "disks from several guests to a single libguestfs appliance."
3962 msgstr ""
3963
3964 #. type: textblock
3965 #: ../df/virt-df.pod:144
3966 msgid "You might use this option in the following circumstances:"
3967 msgstr ""
3968
3969 #. type: textblock
3970 #: ../df/virt-df.pod:150
3971 msgid ""
3972 "If you think an untrusted guest might actively try to exploit the libguestfs "
3973 "appliance kernel, then this prevents one guest from interfering with the "
3974 "stats printed for another guest."
3975 msgstr ""
3976
3977 #. type: textblock
3978 #: ../df/virt-df.pod:156
3979 msgid ""
3980 "If the kernel has a bug which stops it from accessing a filesystem in one "
3981 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3982 "and report stats for further guests."
3983 msgstr ""
3984
3985 #. type: textblock
3986 #: ../df/virt-df.pod:165
3987 msgid ""
3988 "Print UUIDs instead of names.  This is useful for following a guest even "
3989 "when the guest is migrated or renamed, or when two guests happen to have the "
3990 "same name."
3991 msgstr ""
3992
3993 #. type: textblock
3994 #: ../df/virt-df.pod:169
3995 msgid ""
3996 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3997 "images, we still print the disk image name even when this option is "
3998 "specified."
3999 msgstr ""
4000
4001 #. type: textblock
4002 #: ../df/virt-df.pod:229
4003 msgid ""
4004 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4005 "libguestfs.org/>."
4006 msgstr ""
4007
4008 #. type: textblock
4009 #: ../edit/virt-edit.pod:5
4010 msgid "virt-edit - Edit a file in a virtual machine"
4011 msgstr ""
4012
4013 #. type: verbatim
4014 #: ../edit/virt-edit.pod:9
4015 #, no-wrap
4016 msgid ""
4017 " virt-edit [--options] -d domname file [file ...]\n"
4018 "\n"
4019 msgstr ""
4020
4021 #. type: verbatim
4022 #: ../edit/virt-edit.pod:11
4023 #, no-wrap
4024 msgid ""
4025 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4026 "\n"
4027 msgstr ""
4028
4029 #. type: verbatim
4030 #: ../edit/virt-edit.pod:13
4031 #, no-wrap
4032 msgid ""
4033 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4034 "\n"
4035 msgstr ""
4036
4037 #. type: verbatim
4038 #: ../edit/virt-edit.pod:17
4039 #, no-wrap
4040 msgid ""
4041 " virt-edit domname file\n"
4042 "\n"
4043 msgstr ""
4044
4045 #. type: verbatim
4046 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4047 #, no-wrap
4048 msgid ""
4049 " virt-edit disk.img [disk.img ...] file\n"
4050 "\n"
4051 msgstr ""
4052
4053 #. type: =head1
4054 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4055 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4056 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4057 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4058 msgid "WARNING"
4059 msgstr "ПОПЕРЕДЖЕННЯ"
4060
4061 #. type: textblock
4062 #: ../edit/virt-edit.pod:23
4063 msgid ""
4064 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4065 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4066 "doing this, but doesn't catch all cases."
4067 msgstr ""
4068
4069 #. type: textblock
4070 #: ../edit/virt-edit.pod:29
4071 msgid ""
4072 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4073 "exists in the named virtual machine (or disk image)."
4074 msgstr ""
4075
4076 #. type: textblock
4077 #: ../edit/virt-edit.pod:32
4078 msgid ""
4079 "Multiple filenames can be given, in which case they are each edited in "
4080 "turn.  Each filename must be a full path, starting at the root directory "
4081 "(starting with '/')."
4082 msgstr ""
4083
4084 #. type: textblock
4085 #: ../edit/virt-edit.pod:36
4086 msgid "If you want to just view a file, use L<virt-cat(1)>."
4087 msgstr ""
4088
4089 #. type: textblock
4090 #: ../edit/virt-edit.pod:38
4091 msgid ""
4092 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4093 "USING GUESTFISH> below)."
4094 msgstr ""
4095
4096 #. type: textblock
4097 #: ../edit/virt-edit.pod:41
4098 msgid ""
4099 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4100 "that and much more."
4101 msgstr ""
4102
4103 #. type: textblock
4104 #: ../edit/virt-edit.pod:46
4105 msgid "Edit the named files interactively:"
4106 msgstr ""
4107
4108 #. type: verbatim
4109 #: ../edit/virt-edit.pod:48
4110 #, no-wrap
4111 msgid ""
4112 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4113 "\n"
4114 msgstr ""
4115
4116 #. type: verbatim
4117 #: ../edit/virt-edit.pod:50
4118 #, no-wrap
4119 msgid ""
4120 " virt-edit -d mydomain /etc/passwd\n"
4121 "\n"
4122 msgstr ""
4123
4124 #. type: textblock
4125 #: ../edit/virt-edit.pod:52
4126 msgid "For Windows guests, some Windows paths are understood:"
4127 msgstr ""
4128
4129 #. type: verbatim
4130 #: ../edit/virt-edit.pod:54
4131 #, no-wrap
4132 msgid ""
4133 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4134 "\n"
4135 msgstr ""
4136
4137 #. type: textblock
4138 #: ../edit/virt-edit.pod:56
4139 msgid ""
4140 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4141 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4142 msgstr ""
4143
4144 #. type: verbatim
4145 #: ../edit/virt-edit.pod:60
4146 #, no-wrap
4147 msgid ""
4148 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4149 "\n"
4150 msgstr ""
4151
4152 #. type: =item
4153 #: ../edit/virt-edit.pod:81
4154 msgid "B<-b> extension"
4155 msgstr ""
4156
4157 #. type: =item
4158 #: ../edit/virt-edit.pod:83
4159 msgid "B<--backup> extension"
4160 msgstr ""
4161
4162 #. type: textblock
4163 #: ../edit/virt-edit.pod:85
4164 msgid ""
4165 "Create a backup of the original file I<in the guest disk image>.  The backup "
4166 "has the original filename with C<extension> added."
4167 msgstr ""
4168
4169 #. type: textblock
4170 #: ../edit/virt-edit.pod:88
4171 msgid ""
4172 "Usually the first character of C<extension> would be a dot C<.> so you would "
4173 "write:"
4174 msgstr ""
4175
4176 #. type: verbatim
4177 #: ../edit/virt-edit.pod:91
4178 #, no-wrap
4179 msgid ""
4180 " virt-edit -b .orig [etc]\n"
4181 "\n"
4182 msgstr ""
4183
4184 #. type: textblock
4185 #: ../edit/virt-edit.pod:93
4186 msgid "By default, no backup file is made."
4187 msgstr ""
4188
4189 #. type: =item
4190 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4191 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4192 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4193 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4194 msgid "B<-c URI>"
4195 msgstr "B<-c адреса>"
4196
4197 #. type: =item
4198 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4199 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4200 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4201 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4202 msgid "B<--connect URI>"
4203 msgstr "B<--connect адреса>"
4204
4205 #. type: textblock
4206 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4207 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4208 #: ../tools/virt-win-reg.pl:135
4209 msgid ""
4210 "If you specify guest block devices directly, then libvirt is not used at all."
4211 msgstr ""
4212
4213 #. type: textblock
4214 #: ../edit/virt-edit.pod:114
4215 msgid ""
4216 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4217 "off so you cannot see what you are typing.  If you are not worried about "
4218 "Tempest attacks and there is no one else in the room you can specify this "
4219 "flag to see what you are typing."
4220 msgstr ""
4221
4222 #. type: =item
4223 #: ../edit/virt-edit.pod:119
4224 msgid "B<-e> EXPR"
4225 msgstr "B<-e> вираз"
4226
4227 #. type: =item
4228 #: ../edit/virt-edit.pod:121
4229 msgid "B<--expr> EXPR"
4230 msgstr "B<--expr> вираз"
4231
4232 #. type: textblock
4233 #: ../edit/virt-edit.pod:123
4234 msgid ""
4235 "Instead of launching the external editor, non-interactively apply the Perl "
4236 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4237 "EDITING> below."
4238 msgstr ""
4239
4240 #. type: textblock
4241 #: ../edit/virt-edit.pod:127
4242 msgid ""
4243 "Be careful to properly quote the expression to prevent it from being altered "
4244 "by the shell."
4245 msgstr ""
4246
4247 #. type: textblock
4248 #: ../edit/virt-edit.pod:130
4249 msgid "Note that this option is only available when Perl 5 is installed."
4250 msgstr ""
4251
4252 #. type: =item
4253 #: ../edit/virt-edit.pod:132
4254 msgid "B<--format> raw|qcow2|..."
4255 msgstr "B<--format> raw|qcow2|..."
4256
4257 #. type: verbatim
4258 #: ../edit/virt-edit.pod:143
4259 #, no-wrap
4260 msgid ""
4261 " virt-edit --format=raw -a disk.img file\n"
4262 "\n"
4263 msgstr ""
4264
4265 #. type: verbatim
4266 #: ../edit/virt-edit.pod:147
4267 #, no-wrap
4268 msgid ""
4269 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4270 "\n"
4271 msgstr ""
4272
4273 #. type: textblock
4274 #: ../edit/virt-edit.pod:181
4275 msgid "Previous versions of virt-edit allowed you to write either:"
4276 msgstr ""
4277
4278 #. type: verbatim
4279 #: ../edit/virt-edit.pod:187
4280 #, no-wrap
4281 msgid ""
4282 " virt-edit guestname file\n"
4283 "\n"
4284 msgstr ""
4285
4286 #. type: =head1
4287 #: ../edit/virt-edit.pod:195
4288 msgid "NON-INTERACTIVE EDITING"
4289 msgstr "НЕІНТЕРАКТИВНЕ РЕДАГУВАННЯ"
4290
4291 #. type: textblock
4292 #: ../edit/virt-edit.pod:197
4293 msgid ""
4294 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4295 "administrator can interactively edit the file."
4296 msgstr ""
4297
4298 #. type: textblock
4299 #: ../edit/virt-edit.pod:200
4300 msgid ""
4301 "There are two ways also to use C<virt-edit> from scripts in order to make "
4302 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4303 "like this, it's less error-prone to write scripts directly using the "
4304 "libguestfs API and Augeas for configuration file editing.)"
4305 msgstr ""
4306
4307 #. type: textblock
4308 #: ../edit/virt-edit.pod:206
4309 msgid ""
4310 "The first method is to temporarily set C<$EDITOR> to any script or program "
4311 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4312 "update C<tmpfile> in place however it likes."
4313 msgstr ""
4314
4315 #. type: textblock
4316 #: ../edit/virt-edit.pod:210
4317 msgid ""
4318 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4319 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4320 "instances of C<foo> with C<bar> in a file:"
4321 msgstr ""
4322
4323 #. type: verbatim
4324 #: ../edit/virt-edit.pod:214
4325 #, no-wrap
4326 msgid ""
4327 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4328 "\n"
4329 msgstr ""
4330
4331 #. type: textblock
4332 #: ../edit/virt-edit.pod:216
4333 msgid ""
4334 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4335 "For example to delete root's password you could do:"
4336 msgstr ""
4337
4338 #. type: verbatim
4339 #: ../edit/virt-edit.pod:219
4340 #, no-wrap
4341 msgid ""
4342 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4343 "\n"
4344 msgstr ""
4345 " virt-edit -d назва_домену /etc/passwd -e 's/^root:.*?:/root::/'\n"
4346 "\n"
4347
4348 #. type: textblock
4349 #: ../edit/virt-edit.pod:221
4350 msgid ""
4351 "What really happens is that the snippet is evaluated as a Perl expression "
4352 "for each line of the file.  The line, including the final C<\\n>, is passed "
4353 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4354 msgstr ""
4355
4356 #. type: textblock
4357 #: ../edit/virt-edit.pod:226
4358 msgid ""
4359 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4360 "C<apache> user account from the password file you can do:"
4361 msgstr ""
4362
4363 #. type: verbatim
4364 #: ../edit/virt-edit.pod:229
4365 #, no-wrap
4366 msgid ""
4367 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4368 "\n"
4369 msgstr ""
4370 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4371 "\n"
4372
4373 #. type: textblock
4374 #: ../edit/virt-edit.pod:231
4375 msgid ""
4376 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4377 "the end of the file is rather difficult this way since there is no concept "
4378 "of \"last line of the file\" - your expression just doesn't get called "
4379 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4380 "want to do this."
4381 msgstr ""
4382
4383 #. type: textblock
4384 #: ../edit/virt-edit.pod:237
4385 msgid ""
4386 "The variable C<$lineno> contains the current line number.  As is "
4387 "traditional, the first line in the file is number C<1>."
4388 msgstr ""
4389
4390 #. type: textblock
4391 #: ../edit/virt-edit.pod:240
4392 msgid ""
4393 "The return value from the expression is ignored, but the expression may call "
4394 "C<die> in order to abort the whole program, leaving the original file "
4395 "untouched."
4396 msgstr ""
4397
4398 #. type: textblock
4399 #: ../edit/virt-edit.pod:244
4400 msgid ""
4401 "Remember when matching the end of a line that C<$_> may contain the final C<"
4402 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4403 "newline then neither of these.  Thus to match or substitute some text at the "
4404 "end of a line, use this regular expression:"
4405 msgstr ""
4406
4407 #. type: verbatim
4408 #: ../edit/virt-edit.pod:249
4409 #, no-wrap
4410 msgid ""
4411 " /some text(\\r?\\n)?$/\n"
4412 "\n"
4413 msgstr ""
4414 " /якийсь текст(\\r?\\n)?$/\n"
4415 "\n"
4416
4417 #. type: textblock
4418 #: ../edit/virt-edit.pod:251
4419 msgid ""
4420 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4421 "$_> itself (since that would remove all newlines from the file):"
4422 msgstr ""
4423
4424 #. type: verbatim
4425 #: ../edit/virt-edit.pod:255
4426 #, no-wrap
4427 msgid ""
4428 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4429 "\n"
4430 msgstr ""
4431 " my $m = $_; chomp $m; $m =~ /якийсь текст$/\n"
4432 "\n"
4433
4434 #. type: =head1
4435 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
4436 msgid "WINDOWS PATHS"
4437 msgstr "ШЛЯХИ У WINDOWS"
4438
4439 #. type: textblock
4440 #: ../edit/virt-edit.pod:259
4441 msgid ""
4442 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4443 "paths (eg. C<E:\\foo\\bar.txt>)."
4444 msgstr ""
4445
4446 #. type: textblock
4447 #: ../edit/virt-edit.pod:262
4448 msgid "If and only if the guest is running Windows then:"
4449 msgstr ""
4450
4451 #. type: textblock
4452 #: ../edit/virt-edit.pod:268
4453 msgid ""
4454 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
4455 "to the correct filesystem."
4456 msgstr ""
4457
4458 #. type: textblock
4459 #: ../edit/virt-edit.pod:273
4460 msgid ""
4461 "Any backslash (C<\\>) characters in the path are replaced with forward "
4462 "slashes so that libguestfs can process it."
4463 msgstr ""
4464
4465 #. type: textblock
4466 #: ../edit/virt-edit.pod:278
4467 msgid ""
4468 "The path is resolved case insensitively to locate the file that should be "
4469 "edited."
4470 msgstr ""
4471
4472 #. type: textblock
4473 #: ../edit/virt-edit.pod:283
4474 msgid "There are some known shortcomings:"
4475 msgstr ""
4476
4477 #. type: textblock
4478 #: ../edit/virt-edit.pod:289
4479 msgid "Some NTFS symbolic links may not be followed correctly."
4480 msgstr ""
4481
4482 #. type: textblock
4483 #: ../edit/virt-edit.pod:293
4484 msgid "NTFS junction points that cross filesystems are not followed."
4485 msgstr ""
4486
4487 #. type: textblock
4488 #: ../edit/virt-edit.pod:299
4489 msgid ""
4490 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4491 "C<virt-edit> doesn't work."
4492 msgstr ""
4493
4494 #. type: textblock
4495 #: ../edit/virt-edit.pod:302
4496 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4497 msgstr ""
4498
4499 #. type: verbatim
4500 #: ../edit/virt-edit.pod:304
4501 #, no-wrap
4502 msgid ""
4503 " guestfish --rw -i -d domname edit /file\n"
4504 "\n"
4505 msgstr ""
4506
4507 #. type: textblock
4508 #: ../edit/virt-edit.pod:306
4509 msgid ""
4510 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4511 "path to the file."
4512 msgstr ""
4513
4514 #. type: textblock
4515 #: ../edit/virt-edit.pod:309
4516 msgid ""
4517 "The command above uses libguestfs's guest inspection feature and so does not "
4518 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4519 "disk images that don't contain guests.  To edit a file on a disk image "
4520 "directly, use:"
4521 msgstr ""
4522
4523 #. type: verbatim
4524 #: ../edit/virt-edit.pod:314
4525 #, no-wrap
4526 msgid ""
4527 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4528 "\n"
4529 msgstr ""
4530
4531 #. type: textblock
4532 #: ../edit/virt-edit.pod:316
4533 msgid ""
4534 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4535 "the disk image to edit, and C</file> is the full path to the file."
4536 msgstr ""
4537
4538 #. type: textblock
4539 #: ../edit/virt-edit.pod:320
4540 msgid ""
4541 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4542 "C<write> or C<upload> instead:"
4543 msgstr ""
4544
4545 #. type: verbatim
4546 #: ../edit/virt-edit.pod:323
4547 #, no-wrap
4548 msgid ""
4549 " guestfish --rw -i -d domname touch /newfile\n"
4550 "\n"
4551 msgstr ""
4552
4553 #. type: verbatim
4554 #: ../edit/virt-edit.pod:325
4555 #, no-wrap
4556 msgid ""
4557 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4558 "\n"
4559 msgstr ""
4560
4561 #. type: verbatim
4562 #: ../edit/virt-edit.pod:327
4563 #, no-wrap
4564 msgid ""
4565 " guestfish --rw -i -d domname upload localfile /newfile\n"
4566 "\n"
4567 msgstr ""
4568
4569 #. type: =head1
4570 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4571 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4572 #: ../src/guestfs.pod:3194 ../test-tool/libguestfs-test-tool.pod:95
4573 msgid "ENVIRONMENT VARIABLES"
4574 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4575
4576 #. type: =item
4577 #: ../edit/virt-edit.pod:333
4578 msgid "C<EDITOR>"
4579 msgstr "C<EDITOR>"
4580
4581 #. type: textblock
4582 #: ../edit/virt-edit.pod:335
4583 msgid ""
4584 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4585 "\"emacs -nw\">"
4586 msgstr ""
4587
4588 #. type: textblock
4589 #: ../edit/virt-edit.pod:338
4590 msgid "If not set, C<vi> is used."
4591 msgstr ""
4592
4593 #. type: textblock
4594 #: ../edit/virt-edit.pod:356
4595 msgid ""
4596 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4597 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4598 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4599 msgstr ""
4600 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4601 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4602 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4603
4604 #. type: textblock
4605 #: ../erlang/examples/guestfs-erlang.pod:5
4606 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4607 msgstr ""
4608
4609 #. type: verbatim
4610 #: ../erlang/examples/guestfs-erlang.pod:9
4611 #, no-wrap
4612 msgid ""
4613 " {ok, G} = guestfs:create(),\n"
4614 " ok = guestfs:add_drive_opts(G, Disk,\n"
4615 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4616 " ok = guestfs:launch(G),\n"
4617 " [Device] = guestfs:list_devices(G),\n"
4618 " ok = guestfs:close(G).\n"
4619 "\n"
4620 msgstr ""
4621
4622 #. type: textblock
4623 #: ../erlang/examples/guestfs-erlang.pod:18
4624 msgid ""
4625 "This manual page documents how to call libguestfs from the Erlang "
4626 "programming language.  This page just documents the differences from the C "
4627 "API and gives some examples.  If you are not familiar with using libguestfs, "
4628 "you also need to read L<guestfs(3)>."
4629 msgstr ""
4630
4631 #. type: =head2
4632 #: ../erlang/examples/guestfs-erlang.pod:23
4633 msgid "OPENING AND CLOSING THE HANDLE"
4634 msgstr ""
4635
4636 #. type: textblock
4637 #: ../erlang/examples/guestfs-erlang.pod:25
4638 msgid ""
4639 "The Erlang bindings are implemented using an external program called C<erl-"
4640 "guestfs>.  This program must be on the current PATH, or else you should "
4641 "specify the full path to the program:"
4642 msgstr ""
4643
4644 #. type: verbatim
4645 #: ../erlang/examples/guestfs-erlang.pod:29
4646 #, no-wrap
4647 msgid ""
4648 " {ok, G} = guestfs:create().\n"
4649 "\n"
4650 msgstr ""
4651
4652 #. type: verbatim
4653 #: ../erlang/examples/guestfs-erlang.pod:31
4654 #, no-wrap
4655 msgid ""
4656 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4657 "\n"
4658 msgstr ""
4659
4660 #. type: textblock
4661 #: ../erlang/examples/guestfs-erlang.pod:33
4662 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4663 msgstr ""
4664
4665 #. type: textblock
4666 #: ../erlang/examples/guestfs-erlang.pod:36
4667 msgid "To close the handle:"
4668 msgstr ""
4669
4670 #. type: verbatim
4671 #: ../erlang/examples/guestfs-erlang.pod:38
4672 #, no-wrap
4673 msgid ""
4674 " ok = guestfs:close(G).\n"
4675 "\n"
4676 msgstr ""
4677
4678 #. type: =head2
4679 #: ../erlang/examples/guestfs-erlang.pod:40
4680 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4681 msgstr ""
4682
4683 #. type: textblock
4684 #: ../erlang/examples/guestfs-erlang.pod:42
4685 msgid ""
4686 "For functions that take optional arguments, the first arguments are the non-"
4687 "optional ones.  The last argument is a list of tuples supplying the "
4688 "remaining optional arguments."
4689 msgstr ""
4690
4691 #. type: verbatim
4692 #: ../erlang/examples/guestfs-erlang.pod:46
4693 #, no-wrap
4694 msgid ""
4695 " ok = guestfs:add_drive_opts(G, Disk,\n"
4696 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4697 "\n"
4698 msgstr ""
4699
4700 #. type: textblock
4701 #: ../erlang/examples/guestfs-erlang.pod:49
4702 msgid "If the last argument would be an empty list, you can also omit it:"
4703 msgstr ""
4704
4705 #. type: verbatim
4706 #: ../erlang/examples/guestfs-erlang.pod:51
4707 #, no-wrap
4708 msgid ""
4709 " ok = guestfs:add_drive_opts(G, Disk).\n"
4710 "\n"
4711 msgstr ""
4712
4713 #. type: =head2
4714 #: ../erlang/examples/guestfs-erlang.pod:53
4715 msgid "RETURN VALUES AND ERRORS"
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../erlang/examples/guestfs-erlang.pod:55
4720 msgid ""
4721 "On success, most functions return a C<Result> term (which could be a list, "
4722 "string, tuple etc.).  If there is nothing for the function to return, then "
4723 "the atom C<ok> is returned."
4724 msgstr ""
4725
4726 #. type: textblock
4727 #: ../erlang/examples/guestfs-erlang.pod:59
4728 msgid "On error, you would see one of the following tuples:"
4729 msgstr ""
4730
4731 #. type: =item
4732 #: ../erlang/examples/guestfs-erlang.pod:63
4733 msgid "C<{error, Msg, Errno}>"
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../erlang/examples/guestfs-erlang.pod:65
4738 msgid "This indicates an ordinary error from the function."
4739 msgstr ""
4740
4741 #. type: textblock
4742 #: ../erlang/examples/guestfs-erlang.pod:67
4743 msgid ""
4744 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4745 "(integer)."
4746 msgstr ""
4747
4748 #. type: textblock
4749 #: ../erlang/examples/guestfs-erlang.pod:70
4750 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4751 msgstr ""
4752
4753 #. type: =item
4754 #: ../erlang/examples/guestfs-erlang.pod:72
4755 msgid "C<{unknown, Function}>"
4756 msgstr ""
4757
4758 #. type: textblock
4759 #: ../erlang/examples/guestfs-erlang.pod:74
4760 msgid ""
4761 "This indicates that the function you called is not known.  Generally this "
4762 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4763 "which you should not do."
4764 msgstr ""
4765
4766 #. type: textblock
4767 #: ../erlang/examples/guestfs-erlang.pod:78
4768 msgid "C<Function> is the name of the unknown function."
4769 msgstr ""
4770
4771 #. type: =item
4772 #: ../erlang/examples/guestfs-erlang.pod:80
4773 msgid "C<{unknownarg, Arg}>"
4774 msgstr ""
4775
4776 #. type: textblock
4777 #: ../erlang/examples/guestfs-erlang.pod:82
4778 msgid ""
4779 "This indicates that you called a function with optional arguments, with an "
4780 "unknown argument name."
4781 msgstr ""
4782
4783 #. type: textblock
4784 #: ../erlang/examples/guestfs-erlang.pod:85
4785 msgid "C<Arg> is the name of the unknown argument."
4786 msgstr ""
4787
4788 #. type: =head1
4789 #: ../erlang/examples/guestfs-erlang.pod:89
4790 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4791 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4792 #: ../python/examples/guestfs-python.pod:34
4793 #: ../ruby/examples/guestfs-ruby.pod:28
4794 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4795 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4796
4797 #. type: textblock
4798 #: ../erlang/examples/guestfs-erlang.pod:91
4799 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4800 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4801 #: ../python/examples/guestfs-python.pod:36
4802 #: ../ruby/examples/guestfs-ruby.pod:30
4803 msgid "@EXAMPLE1@"
4804 msgstr "@EXAMPLE1@"
4805
4806 #. type: =head1
4807 #: ../erlang/examples/guestfs-erlang.pod:93
4808 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4809 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4810 #: ../python/examples/guestfs-python.pod:38
4811 #: ../ruby/examples/guestfs-ruby.pod:32
4812 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4813 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4814
4815 #. type: textblock
4816 #: ../erlang/examples/guestfs-erlang.pod:95
4817 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4818 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4819 #: ../python/examples/guestfs-python.pod:40
4820 #: ../ruby/examples/guestfs-ruby.pod:34
4821 msgid "@EXAMPLE2@"
4822 msgstr "@EXAMPLE2@"
4823
4824 #. type: textblock
4825 #: ../erlang/examples/guestfs-erlang.pod:99
4826 msgid ""
4827 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4828 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4829 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4830 msgstr ""
4831
4832 #. type: =head1
4833 #: ../erlang/examples/guestfs-erlang.pod:110
4834 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4835 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4836 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4837 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4838 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4839 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4840 #: ../python/examples/guestfs-python.pod:54
4841 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3333
4842 #: ../test-tool/libguestfs-test-tool.pod:106
4843 msgid "AUTHORS"
4844 msgstr "АВТОРИ"
4845
4846 #. type: textblock
4847 #: ../erlang/examples/guestfs-erlang.pod:112
4848 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4849 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4850 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4851 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4852 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4853 #: ../perl/examples/guestfs-perl.pod:54
4854 #: ../python/examples/guestfs-python.pod:56
4855 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3335
4856 #: ../test-tool/libguestfs-test-tool.pod:108
4857 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4858 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4859
4860 #. type: textblock
4861 #: ../erlang/examples/guestfs-erlang.pod:116
4862 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4863 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4864 msgstr ""
4865
4866 #. type: textblock
4867 #: ../erlang/examples/guestfs-erlang.pod:118
4868 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4869 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4870 #: ../perl/examples/guestfs-perl.pod:60
4871 #: ../python/examples/guestfs-python.pod:62
4872 #: ../ruby/examples/guestfs-ruby.pod:56
4873 msgid ""
4874 "The examples in this manual page may be freely copied, modified and "
4875 "distributed without any restrictions."
4876 msgstr ""
4877
4878 #. type: textblock
4879 #: ../erlang/examples/guestfs-erlang.pod:121
4880 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4881 #: ../java/examples/guestfs-java.pod:69
4882 #: ../ocaml/examples/guestfs-ocaml.pod:102
4883 #: ../perl/examples/guestfs-perl.pod:63
4884 #: ../python/examples/guestfs-python.pod:65
4885 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3342
4886 msgid ""
4887 "This library is free software; you can redistribute it and/or modify it "
4888 "under the terms of the GNU Lesser General Public License as published by the "
4889 "Free Software Foundation; either version 2 of the License, or (at your "
4890 "option) any later version."
4891 msgstr ""
4892
4893 #. type: textblock
4894 #: ../erlang/examples/guestfs-erlang.pod:126
4895 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4896 #: ../java/examples/guestfs-java.pod:74
4897 #: ../ocaml/examples/guestfs-ocaml.pod:107
4898 #: ../perl/examples/guestfs-perl.pod:68
4899 #: ../python/examples/guestfs-python.pod:70
4900 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3347
4901 msgid ""
4902 "This library is distributed in the hope that it will be useful, but WITHOUT "
4903 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4904 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4905 "for more details."
4906 msgstr ""
4907
4908 #. type: textblock
4909 #: ../erlang/examples/guestfs-erlang.pod:131
4910 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4911 #: ../java/examples/guestfs-java.pod:79
4912 #: ../ocaml/examples/guestfs-ocaml.pod:112
4913 #: ../perl/examples/guestfs-perl.pod:73
4914 #: ../python/examples/guestfs-python.pod:75
4915 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3352
4916 msgid ""
4917 "You should have received a copy of the GNU Lesser General Public License "
4918 "along with this library; if not, write to the Free Software Foundation, "
4919 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4920 msgstr ""
4921
4922 #. type: textblock
4923 #: ../examples/guestfs-examples.pod:5
4924 msgid "guestfs-examples - Examples of using libguestfs from C"
4925 msgstr ""
4926
4927 #. type: verbatim
4928 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4929 #, no-wrap
4930 msgid ""
4931 " #include <guestfs.h>\n"
4932 " \n"
4933 msgstr ""
4934 " #include <guestfs.h>\n"
4935 " \n"
4936
4937 #. type: verbatim
4938 #: ../examples/guestfs-examples.pod:11
4939 #, no-wrap
4940 msgid ""
4941 " guestfs_h *g = guestfs_create ();\n"
4942 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4943 " guestfs_launch (g);\n"
4944 "\n"
4945 msgstr ""
4946 " guestfs_h *g = guestfs_create ();\n"
4947 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4948 " guestfs_launch (g);\n"
4949 "\n"
4950
4951 #. type: verbatim
4952 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4953 #, no-wrap
4954 msgid ""
4955 " cc prog.c -o prog -lguestfs\n"
4956 "or:\n"
4957 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4958 "\n"
4959 msgstr ""
4960 " cc prog.c -o prog -lguestfs\n"
4961 "або:\n"
4962 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4963 "\n"
4964
4965 #. type: textblock
4966 #: ../examples/guestfs-examples.pod:21
4967 msgid ""
4968 "This manual page contains examples of calling libguestfs from the C "
4969 "programming language.  If you are not familiar with using libguestfs, you "
4970 "also need to read L<guestfs(3)>."
4971 msgstr ""
4972
4973 #. type: textblock
4974 #: ../examples/guestfs-examples.pod:35
4975 msgid ""
4976 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4977 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4978 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4979 msgstr ""
4980
4981 #. type: textblock
4982 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4983 #: ../python/examples/guestfs-python.pod:60
4984 #: ../ruby/examples/guestfs-ruby.pod:54
4985 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4986 msgstr ""
4987
4988 #. type: =end
4989 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4990 msgid "comment"
4991 msgstr "коментар"
4992
4993 #. type: textblock
4994 #: ../examples/guestfs-recipes.pod:5
4995 msgid ""
4996 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4997 "here.  The only way which works for both sorts of output is to just write "
4998 "the URL directly.  Do NOT use L<...> for URLs."
4999 msgstr ""
5000
5001 #. type: textblock
5002 #: ../examples/guestfs-recipes.pod:9
5003 msgid ""
5004 "We break with tradition here and don't use ALL CAPS for the section "
5005 "headings, as this makes them much easier to read."
5006 msgstr ""
5007
5008 #. type: textblock
5009 #: ../examples/guestfs-recipes.pod:16
5010 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5011 msgstr ""
5012
5013 #. type: textblock
5014 #: ../examples/guestfs-recipes.pod:20
5015 msgid ""
5016 "This page contains recipes for and links to things you can do using "
5017 "libguestfs, L<guestfish(1)> and the virt tools."
5018 msgstr ""
5019
5020 #. type: =head1
5021 #: ../examples/guestfs-recipes.pod:23
5022 msgid "Audit a virtual machine for setuid files"
5023 msgstr ""
5024
5025 #. type: textblock
5026 #: ../examples/guestfs-recipes.pod:25
5027 msgid ""
5028 "The link below contains a small program which can be used to audit a Linux "
5029 "virtual machine to see what setuid and setgid files it contains."
5030 msgstr ""
5031
5032 #. type: textblock
5033 #: ../examples/guestfs-recipes.pod:28
5034 msgid ""
5035 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5036 "files/#content"
5037 msgstr ""
5038
5039 #. type: =head1
5040 #: ../examples/guestfs-recipes.pod:30
5041 msgid "Change the background image in a Windows XP VM"
5042 msgstr ""
5043
5044 #. type: textblock
5045 #: ../examples/guestfs-recipes.pod:32
5046 msgid ""
5047 "The links below explain how to use L<guestfish(1)> to change the background "
5048 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
5049 "be substantially different for each version of Windows."
5050 msgstr ""
5051
5052 #. type: textblock
5053 #: ../examples/guestfs-recipes.pod:37
5054 msgid ""
5055 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5056 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5057 msgstr ""
5058
5059 #. type: =head1
5060 #: ../examples/guestfs-recipes.pod:40
5061 msgid "Cloning a virtual machine (Linux)"
5062 msgstr ""
5063
5064 #. type: textblock
5065 #: ../examples/guestfs-recipes.pod:42
5066 msgid ""
5067 "The guestfish technique described in the link below works well for most "
5068 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5069 "slightly."
5070 msgstr ""
5071
5072 #. type: textblock
5073 #: ../examples/guestfs-recipes.pod:46
5074 msgid ""
5075 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5076 "vm/#content"
5077 msgstr ""
5078
5079 #. type: textblock
5080 #: ../examples/guestfs-recipes.pod:48
5081 msgid ""
5082 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5083 "discussion."
5084 msgstr ""
5085
5086 #. type: textblock
5087 #: ../examples/guestfs-recipes.pod:51
5088 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5089 msgstr ""
5090
5091 #. type: =head1
5092 #: ../examples/guestfs-recipes.pod:53
5093 msgid "Cloning a virtual machine (Windows)"
5094 msgstr ""
5095
5096 #. type: textblock
5097 #: ../examples/guestfs-recipes.pod:55
5098 msgid ""
5099 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5100 "straightforward.  Currently there is code in the Aeolus Oz project which "
5101 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5102 "we may add sysprepping ability."
5103 msgstr ""
5104
5105 #. type: textblock
5106 #: ../examples/guestfs-recipes.pod:60
5107 msgid ""
5108 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5109 "list/2011-May/msg00019.html"
5110 msgstr ""
5111
5112 #. type: =head1
5113 #: ../examples/guestfs-recipes.pod:63
5114 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5115 msgstr ""
5116
5117 #. type: textblock
5118 #: ../examples/guestfs-recipes.pod:65
5119 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5120 msgstr ""
5121
5122 #. type: verbatim
5123 #: ../examples/guestfs-recipes.pod:67
5124 #, no-wrap
5125 msgid ""
5126 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5127 "\n"
5128 msgstr ""
5129
5130 #. type: textblock
5131 #: ../examples/guestfs-recipes.pod:69
5132 msgid "To export just a subdirectory, eg. C</files>, do:"
5133 msgstr ""
5134
5135 #. type: verbatim
5136 #: ../examples/guestfs-recipes.pod:71
5137 #, no-wrap
5138 msgid ""
5139 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5140 "\n"
5141 msgstr ""
5142
5143 #. type: =head1
5144 #: ../examples/guestfs-recipes.pod:73
5145 msgid "Create empty disk images"
5146 msgstr ""
5147
5148 #. type: textblock
5149 #: ../examples/guestfs-recipes.pod:75
5150 msgid ""
5151 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5152 "The useful guide below explains the options available."
5153 msgstr ""
5154
5155 #. type: textblock
5156 #: ../examples/guestfs-recipes.pod:78
5157 msgid ""
5158 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5159 "#content"
5160 msgstr ""
5161
5162 #. type: =head1
5163 #: ../examples/guestfs-recipes.pod:80
5164 msgid "Dump raw filesystem content from inside a disk image or VM"
5165 msgstr ""
5166
5167 #. type: textblock
5168 #: ../examples/guestfs-recipes.pod:82
5169 msgid ""
5170 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5171 "filesystem content from any filesystem in a disk image or a VM (even one "
5172 "which is encrypted or buried inside an LV):"
5173 msgstr ""
5174
5175 #. type: verbatim
5176 #: ../examples/guestfs-recipes.pod:86
5177 #, no-wrap
5178 msgid ""
5179 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5180 "\n"
5181 msgstr ""
5182
5183 #. type: verbatim
5184 #: ../examples/guestfs-recipes.pod:88
5185 #, no-wrap
5186 msgid ""
5187 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5188 "\n"
5189 msgstr ""
5190
5191 #. type: textblock
5192 #: ../examples/guestfs-recipes.pod:90
5193 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5194 msgstr ""
5195
5196 #. type: =head1
5197 #: ../examples/guestfs-recipes.pod:92
5198 msgid "Edit grub configuration in a VM"
5199 msgstr ""
5200
5201 #. type: textblock
5202 #: ../examples/guestfs-recipes.pod:94
5203 msgid "You can use this to:"
5204 msgstr ""
5205
5206 #. type: textblock
5207 #: ../examples/guestfs-recipes.pod:100
5208 msgid "Fix a virtual machine that does not boot."
5209 msgstr ""
5210
5211 #. type: textblock
5212 #: ../examples/guestfs-recipes.pod:104
5213 msgid "Change which kernel is used to boot the VM."
5214 msgstr ""
5215
5216 #. type: textblock
5217 #: ../examples/guestfs-recipes.pod:108
5218 msgid "Change kernel command line options."
5219 msgstr ""
5220
5221 #. type: textblock
5222 #: ../examples/guestfs-recipes.pod:112
5223 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5224 msgstr ""
5225
5226 #. type: verbatim
5227 #: ../examples/guestfs-recipes.pod:114
5228 #, no-wrap
5229 msgid ""
5230 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5231 "\n"
5232 msgstr ""
5233
5234 #. type: textblock
5235 #: ../examples/guestfs-recipes.pod:116
5236 msgid ""
5237 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5238 "this:"
5239 msgstr ""
5240
5241 #. type: verbatim
5242 #: ../examples/guestfs-recipes.pod:119
5243 #, no-wrap
5244 msgid ""
5245 " virt-rescue -d BrokenGuest\n"
5246 "\n"
5247 msgstr ""
5248
5249 #. type: =head1
5250 #: ../examples/guestfs-recipes.pod:121
5251 msgid "Export any directory from a VM"
5252 msgstr ""
5253
5254 #. type: textblock
5255 #: ../examples/guestfs-recipes.pod:123
5256 msgid ""
5257 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5258 msgstr ""
5259
5260 #. type: verbatim
5261 #: ../examples/guestfs-recipes.pod:126
5262 #, no-wrap
5263 msgid ""
5264 " virt-copy-out -d Guest /home .\n"
5265 "\n"
5266 msgstr ""
5267
5268 #. type: textblock
5269 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5270 #: ../fish/guestfish-actions.pod:1332 ../fish/guestfish-actions.pod:1597
5271 #: ../fish/guestfish-actions.pod:2014 ../src/guestfs-actions.pod:18
5272 #: ../src/guestfs-actions.pod:2039 ../src/guestfs-actions.pod:2463
5273 #: ../src/guestfs-actions.pod:3022 ../src/guestfs.pod:1670
5274 #: ../tools/virt-win-reg.pl:717
5275 msgid "Notes:"
5276 msgstr "Нотатки:"
5277
5278 #. type: textblock
5279 #: ../examples/guestfs-recipes.pod:134
5280 msgid ""
5281 "The final dot of the command is not a printing error.  It means we want to "
5282 "copy out to the current directory."
5283 msgstr ""
5284
5285 #. type: textblock
5286 #: ../examples/guestfs-recipes.pod:139
5287 msgid "This creates a directory called C<home> under the current directory."
5288 msgstr ""
5289
5290 #. type: textblock
5291 #: ../examples/guestfs-recipes.pod:143
5292 msgid ""
5293 "If the guest is a Windows guest then you can use drive letters and "
5294 "backslashes, but you must prefix the path with C<win:> and quote it to "
5295 "protect it from the shell, like this:"
5296 msgstr ""
5297
5298 #. type: verbatim
5299 #: ../examples/guestfs-recipes.pod:147
5300 #, no-wrap
5301 msgid ""
5302 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5303 "\n"
5304 msgstr ""
5305
5306 #. type: textblock
5307 #: ../examples/guestfs-recipes.pod:149
5308 msgid "To get the output as a compressed tarball, do:"
5309 msgstr ""
5310
5311 #. type: verbatim
5312 #: ../examples/guestfs-recipes.pod:151
5313 #, no-wrap
5314 msgid ""
5315 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5316 "\n"
5317 msgstr ""
5318
5319 #. type: textblock
5320 #: ../examples/guestfs-recipes.pod:153
5321 msgid ""
5322 "Although it sounds tempting, this is usually not a reliable way to get a "
5323 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5324 "org/FAQ.html#backup"
5325 msgstr ""
5326
5327 #. type: =head1
5328 #: ../examples/guestfs-recipes.pod:157
5329 msgid "Find out which user is using the most space"
5330 msgstr ""
5331
5332 #. type: textblock
5333 #: ../examples/guestfs-recipes.pod:159
5334 msgid ""
5335 "This simple script examines a Linux guest to find out which user is using "
5336 "the most space in their home directory:"
5337 msgstr ""
5338
5339 #. type: verbatim
5340 #: ../examples/guestfs-recipes.pod:162
5341 #, no-wrap
5342 msgid ""
5343 " #!/bin/sh -\n"
5344 " \n"
5345 msgstr ""
5346
5347 #. type: verbatim
5348 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5349 #, no-wrap
5350 msgid ""
5351 " set -e\n"
5352 " \n"
5353 msgstr ""
5354
5355 #. type: verbatim
5356 #: ../examples/guestfs-recipes.pod:166
5357 #, no-wrap
5358 msgid ""
5359 " vm=\"$1\"\n"
5360 " dir=/home\n"
5361 " \n"
5362 msgstr ""
5363
5364 #. type: verbatim
5365 #: ../examples/guestfs-recipes.pod:169
5366 #, no-wrap
5367 msgid ""
5368 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5369 " \n"
5370 msgstr ""
5371
5372 #. type: verbatim
5373 #: ../examples/guestfs-recipes.pod:171
5374 #, no-wrap
5375 msgid ""
5376 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5377 "     echo -n \"$dir/$d\"\n"
5378 "     echo -ne '\\t'\n"
5379 "     guestfish --remote du \"$dir/$d\";\n"
5380 " done | sort -nr -k 2\n"
5381 " \n"
5382 msgstr ""
5383
5384 #. type: verbatim
5385 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5386 #, no-wrap
5387 msgid ""
5388 " guestfish --remote exit\n"
5389 "\n"
5390 msgstr ""
5391
5392 #. type: =head1
5393 #: ../examples/guestfs-recipes.pod:179
5394 msgid "Get DHCP address from a VM"
5395 msgstr ""
5396
5397 #. type: textblock
5398 #: ../examples/guestfs-recipes.pod:181
5399 msgid ""
5400 "The link below explains the many different possible techniques for getting "
5401 "the last assigned DHCP address of a virtual machine."
5402 msgstr ""
5403
5404 #. type: textblock
5405 #: ../examples/guestfs-recipes.pod:184
5406 msgid ""
5407 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5408 "a-virtual-machine-disk-image/#content"
5409 msgstr ""
5410
5411 #. type: textblock
5412 #: ../examples/guestfs-recipes.pod:186
5413 msgid ""
5414 "In the libguestfs source examples directory you will find the latest version "
5415 "of the C<virt-dhcp-address.c> program."
5416 msgstr ""
5417
5418 #. type: =head1
5419 #: ../examples/guestfs-recipes.pod:189
5420 msgid "Get the operating system product name string"
5421 msgstr ""
5422
5423 #. type: textblock
5424 #: ../examples/guestfs-recipes.pod:191
5425 msgid "Save the following script into a file called C<product-name.sh>:"
5426 msgstr ""
5427
5428 #. type: verbatim
5429 #: ../examples/guestfs-recipes.pod:193
5430 #, no-wrap
5431 msgid ""
5432 " #!/bin/sh -\n"
5433 " set -e\n"
5434 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5435 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5436 " guestfish --remote inspect-get-product-name \"$root\"\n"
5437 " guestfish --remote exit\n"
5438 "\n"
5439 msgstr ""
5440
5441 #. type: textblock
5442 #: ../examples/guestfs-recipes.pod:200
5443 msgid "Make the script executable and run it on a named guest:"
5444 msgstr ""
5445
5446 #. type: verbatim
5447 #: ../examples/guestfs-recipes.pod:202
5448 #, no-wrap
5449 msgid ""
5450 " # product-name.sh RHEL60x64\n"
5451 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5452 "\n"
5453 msgstr ""
5454
5455 #. type: textblock
5456 #: ../examples/guestfs-recipes.pod:205
5457 msgid ""
5458 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5459 "C<xpath> command line tool or from your favourite programming language:"
5460 msgstr ""
5461
5462 #. type: verbatim
5463 #: ../examples/guestfs-recipes.pod:209
5464 #, no-wrap
5465 msgid ""
5466 " # virt-inspector RHEL60x64 > xml\n"
5467 " # xpath '//product_name' < xml\n"
5468 " Found 1 nodes:\n"
5469 " -- NODE --\n"
5470 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5471 "\n"
5472 msgstr ""
5473
5474 #. type: =head1
5475 #: ../examples/guestfs-recipes.pod:215
5476 msgid "Get the default boot kernel for a Linux VM"
5477 msgstr ""
5478
5479 #. type: textblock
5480 #: ../examples/guestfs-recipes.pod:217
5481 msgid ""
5482 "The link below contains a program to print the default boot kernel for a "
5483 "Linux VM."
5484 msgstr ""
5485
5486 #. type: textblock
5487 #: ../examples/guestfs-recipes.pod:220
5488 msgid ""
5489 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5490 "kernel-for-a-vm/#content"
5491 msgstr ""
5492
5493 #. type: textblock
5494 #: ../examples/guestfs-recipes.pod:222
5495 msgid ""
5496 "It uses Augeas, and the technique is generally applicable for many different "
5497 "tasks, such as:"
5498 msgstr ""
5499
5500 #. type: textblock
5501 #: ../examples/guestfs-recipes.pod:229
5502 msgid "listing the user accounts in the guest"
5503 msgstr ""
5504
5505 #. type: textblock
5506 #: ../examples/guestfs-recipes.pod:233
5507 msgid "what repositories is it configured to use"
5508 msgstr ""
5509
5510 #. type: textblock
5511 #: ../examples/guestfs-recipes.pod:237
5512 msgid "what NTP servers does it connect to"
5513 msgstr ""
5514
5515 #. type: textblock
5516 #: ../examples/guestfs-recipes.pod:241
5517 msgid "what were the boot messages last time it booted"
5518 msgstr ""
5519
5520 #. type: textblock
5521 #: ../examples/guestfs-recipes.pod:245
5522 msgid "listing who was logged in recently"
5523 msgstr ""
5524
5525 #. type: textblock
5526 #: ../examples/guestfs-recipes.pod:249
5527 msgid "http://augeas.net/"
5528 msgstr ""
5529
5530 #. type: =head1
5531 #: ../examples/guestfs-recipes.pod:251
5532 msgid "Install RPMs in a guest"
5533 msgstr ""
5534
5535 #. type: textblock
5536 #: ../examples/guestfs-recipes.pod:253
5537 msgid ""
5538 "The link below contains a method to install RPMs in a guest.  In fact the "
5539 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5540 "installs them next time the guest is booted.  You could use this technique "
5541 "to install vital security updates in an offline guest."
5542 msgstr ""
5543
5544 #. type: textblock
5545 #: ../examples/guestfs-recipes.pod:259
5546 msgid ""
5547 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5548 msgstr ""
5549
5550 #. type: =head1
5551 #: ../examples/guestfs-recipes.pod:261
5552 msgid "List applications installed in a VM"
5553 msgstr ""
5554
5555 #. type: textblock
5556 #: ../examples/guestfs-recipes.pod:263
5557 msgid "Save the following to a file C<list-apps.sh>:"
5558 msgstr ""
5559
5560 #. type: verbatim
5561 #: ../examples/guestfs-recipes.pod:265
5562 #, no-wrap
5563 msgid ""
5564 " #!/bin/sh -\n"
5565 " set -e\n"
5566 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5567 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5568 " guestfish --remote inspect-list-applications \"$root\"\n"
5569 " guestfish --remote exit\n"
5570 "\n"
5571 msgstr ""
5572
5573 #. type: textblock
5574 #: ../examples/guestfs-recipes.pod:272
5575 msgid ""
5576 "Make the file executable and then you can run it on any named virtual "
5577 "machine:"
5578 msgstr ""
5579
5580 #. type: verbatim
5581 #: ../examples/guestfs-recipes.pod:275
5582 #, no-wrap
5583 msgid ""
5584 " # list-apps.sh WinGuest\n"
5585 " [0] = {\n"
5586 "   app_name: Mozilla Firefox (3.6.12)\n"
5587 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5588 "   app_epoch: 0\n"
5589 "   app_version: 3.6.12 (en-GB)\n"
5590 "   app_release:\n"
5591 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5592 "   app_trans_path:\n"
5593 "   app_publisher: Mozilla\n"
5594 "   app_url: http://www.mozilla.com/en-GB/\n"
5595 "   app_source_package:\n"
5596 "   app_summary:\n"
5597 "   app_description: Mozilla Firefox\n"
5598 " }\n"
5599 " [1] = {\n"
5600 "   app_name: VLC media player\n"
5601 "   app_display_name: VLC media player 1.1.5\n"
5602 "   app_epoch: 0\n"
5603 "   app_version: 1.1.5\n"
5604 "   app_release:\n"
5605 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5606 "   app_trans_path:\n"
5607 "   app_publisher: VideoLAN\n"
5608 "   app_url: http://www.videolan.org/\n"
5609 "   app_source_package:\n"
5610 "   app_summary:\n"
5611 "   app_description:\n"
5612 " }\n"
5613 "\n"
5614 msgstr ""
5615
5616 #. type: textblock
5617 #: ../examples/guestfs-recipes.pod:305
5618 msgid ""
5619 "If you want to run the script on disk images (instead of libvirt virtual "
5620 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5621 ">."
5622 msgstr ""
5623
5624 #. type: =head1
5625 #: ../examples/guestfs-recipes.pod:309
5626 msgid "List files and directories in a VM"
5627 msgstr ""
5628
5629 #. type: textblock
5630 #: ../examples/guestfs-recipes.pod:311
5631 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5632 msgstr ""
5633
5634 #. type: verbatim
5635 #: ../examples/guestfs-recipes.pod:313
5636 #, no-wrap
5637 msgid ""
5638 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5639 "\n"
5640 msgstr ""
5641
5642 #. type: =head1
5643 #: ../examples/guestfs-recipes.pod:315
5644 msgid "List services in a Windows VM"
5645 msgstr ""
5646
5647 #. type: textblock
5648 #: ../examples/guestfs-recipes.pod:317
5649 msgid ""
5650 "The link below contains a script that can be used to list out the services "
5651 "from a Windows VM, and whether those services run at boot time or are loaded "
5652 "on demand."
5653 msgstr ""
5654
5655 #. type: textblock
5656 #: ../examples/guestfs-recipes.pod:321
5657 msgid ""
5658 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5659 "#content"
5660 msgstr ""
5661
5662 #. type: =head1
5663 #: ../examples/guestfs-recipes.pod:323
5664 msgid "Make a disk image sparse"
5665 msgstr ""
5666
5667 #. type: textblock
5668 #: ../examples/guestfs-recipes.pod:325
5669 msgid ""
5670 "The link below contains some guides for making a disk image sparse (or "
5671 "reintroducing sparseness)."
5672 msgstr ""
5673
5674 #. type: textblock
5675 #: ../examples/guestfs-recipes.pod:328
5676 msgid ""
5677 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5678 msgstr ""
5679
5680 #. type: =head1
5681 #: ../examples/guestfs-recipes.pod:330
5682 msgid "Monitor disk usage over time"
5683 msgstr ""
5684
5685 #. type: textblock
5686 #: ../examples/guestfs-recipes.pod:332
5687 msgid ""
5688 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5689 "The link below contains a guide."
5690 msgstr ""
5691
5692 #. type: textblock
5693 #: ../examples/guestfs-recipes.pod:335
5694 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5695 msgstr ""
5696
5697 #. type: =head1
5698 #: ../examples/guestfs-recipes.pod:337
5699 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5700 msgstr ""
5701
5702 #. type: textblock
5703 #: ../examples/guestfs-recipes.pod:339
5704 msgid ""
5705 "L<guestfish(1)> plus the tools described in the link below can be used to "
5706 "read out the Windows Event Log from any virtual machine running Windows "
5707 "Vista or a later version."
5708 msgstr ""
5709
5710 #. type: textblock
5711 #: ../examples/guestfs-recipes.pod:343
5712 msgid ""
5713 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5714 "guestfish/#content"
5715 msgstr ""
5716
5717 #. type: =head1
5718 #: ../examples/guestfs-recipes.pod:345
5719 msgid "Remove root password (Linux)"
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../examples/guestfs-recipes.pod:347
5724 msgid ""
5725 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5726 "files.  One use is to remove the root password from a Linux guest:"
5727 msgstr ""
5728
5729 #. type: verbatim
5730 #: ../examples/guestfs-recipes.pod:350
5731 #, no-wrap
5732 msgid ""
5733 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5734 "\n"
5735 msgstr ""
5736
5737 #. type: =head1
5738 #: ../examples/guestfs-recipes.pod:352
5739 msgid "Remove Administrator password (Windows)"
5740 msgstr ""
5741
5742 #. type: textblock
5743 #: ../examples/guestfs-recipes.pod:354
5744 msgid ""
5745 "The link below contains one technique for removing the Administrator "
5746 "password from a Windows VM, or to be more precise, it gives you a command "
5747 "prompt the next time you log in which you can use to bypass any security:"
5748 msgstr ""
5749
5750 #. type: textblock
5751 #: ../examples/guestfs-recipes.pod:359
5752 msgid ""
5753 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5754 "administrator-password-with-guestfish/"
5755 msgstr ""
5756
5757 #. type: =head1
5758 #: ../examples/guestfs-recipes.pod:361
5759 msgid "Unpack a live CD"
5760 msgstr ""
5761
5762 #. type: textblock
5763 #: ../examples/guestfs-recipes.pod:363
5764 msgid ""
5765 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5766 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5767 "layers, as outlined in the guide below."
5768 msgstr ""
5769
5770 #. type: textblock
5771 #: ../examples/guestfs-recipes.pod:367
5772 msgid ""
5773 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5774 "cd/#content"
5775 msgstr ""
5776
5777 #. type: =head1
5778 #: ../examples/guestfs-recipes.pod:369
5779 msgid "Uploading and downloading files"
5780 msgstr ""
5781
5782 #. type: textblock
5783 #: ../examples/guestfs-recipes.pod:371
5784 msgid ""
5785 "The link below contains general tips on uploading (copying in)  and "
5786 "downloading (copying out) files from VMs."
5787 msgstr ""
5788
5789 #. type: textblock
5790 #: ../examples/guestfs-recipes.pod:374
5791 msgid ""
5792 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5793 msgstr ""
5794
5795 #. type: =head1
5796 #: ../examples/guestfs-recipes.pod:376
5797 msgid "Use libguestfs tools on VMware ESX guests"
5798 msgstr ""
5799
5800 #. type: textblock
5801 #: ../examples/guestfs-recipes.pod:378
5802 msgid ""
5803 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5804 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5805 msgstr ""
5806
5807 #. type: textblock
5808 #: ../examples/guestfs-recipes.pod:382
5809 msgid ""
5810 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5811 "guests/#content"
5812 msgstr ""
5813
5814 #. type: textblock
5815 #: ../examples/guestfs-recipes.pod:386
5816 msgid ""
5817 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5818 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5819 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5820 msgstr ""
5821
5822 #. type: textblock
5823 #: ../examples/guestfs-recipes.pod:403
5824 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5825 msgstr ""
5826
5827 #. type: =head2
5828 #: ../fish/guestfish-actions.pod:1
5829 msgid "add-cdrom"
5830 msgstr ""
5831
5832 #. type: verbatim
5833 #: ../fish/guestfish-actions.pod:3
5834 #, no-wrap
5835 msgid ""
5836 " add-cdrom filename\n"
5837 "\n"
5838 msgstr ""
5839
5840 #. type: textblock
5841 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5842 msgid "This function adds a virtual CD-ROM disk image to the guest."
5843 msgstr ""
5844
5845 #. type: textblock
5846 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5847 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5848 msgstr ""
5849
5850 #. type: textblock
5851 #: ../fish/guestfish-actions.pod:15
5852 msgid ""
5853 "This call checks for the existence of C<filename>.  This stops you from "
5854 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5855 "and C<http:> URLs.  To specify those, use the general L</config> call "
5856 "instead."
5857 msgstr ""
5858
5859 #. type: textblock
5860 #: ../fish/guestfish-actions.pod:22
5861 msgid ""
5862 "If you just want to add an ISO file (often you use this as an efficient way "
5863 "to transfer large files into the guest), then you should probably use L</add-"
5864 "drive-ro> instead."
5865 msgstr ""
5866
5867 #. type: textblock
5868 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:168
5869 #: ../fish/guestfish-actions.pod:182
5870 msgid ""
5871 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5872 "instead."
5873 msgstr ""
5874
5875 #. type: textblock
5876 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:171
5877 #: ../fish/guestfish-actions.pod:185 ../fish/guestfish-actions.pod:1031
5878 #: ../fish/guestfish-actions.pod:1391 ../fish/guestfish-actions.pod:1405
5879 #: ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3486
5880 #: ../fish/guestfish-actions.pod:3534 ../fish/guestfish-actions.pod:4447
5881 #: ../fish/guestfish-actions.pod:4470 ../fish/guestfish-actions.pod:4492
5882 #: ../fish/guestfish-actions.pod:4530 ../fish/guestfish-actions.pod:5179
5883 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:10
5884 #: ../src/guestfs-actions.pod:258 ../src/guestfs-actions.pod:279
5885 #: ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:2124
5886 #: ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:4790
5887 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5412
5888 #: ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6738
5889 #: ../src/guestfs-actions.pod:6772 ../src/guestfs-actions.pod:6835
5890 #: ../src/guestfs-actions.pod:7767 ../src/guestfs-actions.pod:7876
5891 #: ../src/guestfs-actions.pod:8059
5892 msgid ""
5893 "Deprecated functions will not be removed from the API, but the fact that "
5894 "they are deprecated indicates that there are problems with correct use of "
5895 "these functions."
5896 msgstr ""
5897
5898 #. type: =head2
5899 #: ../fish/guestfish-actions.pod:35
5900 msgid "add-domain"
5901 msgstr "add-domain"
5902
5903 #. type: =head2
5904 #: ../fish/guestfish-actions.pod:37
5905 msgid "domain"
5906 msgstr "домен"
5907
5908 #. type: verbatim
5909 #: ../fish/guestfish-actions.pod:39
5910 #, no-wrap
5911 msgid ""
5912 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
5913 "\n"
5914 msgstr ""
5915
5916 #. type: textblock
5917 #: ../fish/guestfish-actions.pod:41
5918 msgid ""
5919 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5920 "It works by connecting to libvirt, requesting the domain and domain XML from "
5921 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5922 msgstr ""
5923
5924 #. type: textblock
5925 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
5926 msgid ""
5927 "The number of disks added is returned.  This operation is atomic: if an "
5928 "error is returned, then no disks are added."
5929 msgstr ""
5930
5931 #. type: textblock
5932 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
5933 msgid ""
5934 "This function does some minimal checks to make sure the libvirt domain is "
5935 "not running (unless C<readonly> is true).  In a future version we will try "
5936 "to acquire the libvirt lock on each disk."
5937 msgstr ""
5938
5939 #. type: textblock
5940 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
5941 msgid ""
5942 "Disks must be accessible locally.  This often means that adding disks from a "
5943 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5944 "unless those disks are accessible via the same device path locally too."
5945 msgstr ""
5946
5947 #. type: textblock
5948 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
5949 msgid ""
5950 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5951 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5952 "libvirt URI (or one set through an environment variable, see the libvirt "
5953 "documentation for full details)."
5954 msgstr ""
5955
5956 #. type: textblock
5957 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
5958 msgid ""
5959 "The optional C<live> flag controls whether this call will try to connect to "
5960 "a running virtual machine C<guestfsd> process if it sees a suitable "
5961 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5962 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5963 "DAEMONS> for more information."
5964 msgstr ""
5965
5966 #. type: textblock
5967 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
5968 msgid ""
5969 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5970 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5971 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5972 "as usual."
5973 msgstr ""
5974
5975 #. type: textblock
5976 #: ../fish/guestfish-actions.pod:76
5977 msgid ""
5978 "The other optional parameters are passed directly through to L</add-drive-"
5979 "opts>."
5980 msgstr ""
5981
5982 #. type: textblock
5983 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:148
5984 #: ../fish/guestfish-actions.pod:578 ../fish/guestfish-actions.pod:789
5985 #: ../fish/guestfish-actions.pod:810 ../fish/guestfish-actions.pod:2053
5986 #: ../fish/guestfish-actions.pod:3224 ../fish/guestfish-actions.pod:3387
5987 #: ../fish/guestfish-actions.pod:3522
5988 msgid ""
5989 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
5990 msgstr ""
5991
5992 #. type: =head2
5993 #: ../fish/guestfish-actions.pod:81
5994 msgid "add-drive"
5995 msgstr "add-drive"
5996
5997 #. type: verbatim
5998 #: ../fish/guestfish-actions.pod:83
5999 #, no-wrap
6000 msgid ""
6001 " add-drive filename\n"
6002 "\n"
6003 msgstr ""
6004 " add-drive назва_файла\n"
6005 "\n"
6006
6007 #. type: textblock
6008 #: ../fish/guestfish-actions.pod:85
6009 msgid ""
6010 "This function is the equivalent of calling L</add-drive-opts> with no "
6011 "optional parameters, so the disk is added writable, with the format being "
6012 "detected automatically."
6013 msgstr ""
6014
6015 #. type: textblock
6016 #: ../fish/guestfish-actions.pod:89
6017 msgid ""
6018 "Automatic detection of the format opens you up to a potential security hole "
6019 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6020 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6021 "you should think about replacing calls to this function with calls to L</add-"
6022 "drive-opts>, and specifying the format."
6023 msgstr ""
6024
6025 #. type: =head2
6026 #: ../fish/guestfish-actions.pod:96
6027 msgid "add-drive-opts"
6028 msgstr "add-drive-opts"
6029
6030 #. type: =head2
6031 #: ../fish/guestfish-actions.pod:98
6032 msgid "add"
6033 msgstr "add"
6034
6035 #. type: verbatim
6036 #: ../fish/guestfish-actions.pod:100
6037 #, no-wrap
6038 msgid ""
6039 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
6040 "\n"
6041 msgstr ""
6042
6043 #. type: textblock
6044 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:161
6045 msgid ""
6046 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6047 "The first time you call this function, the disk appears as C</dev/sda>, the "
6048 "second time as C</dev/sdb>, and so on."
6049 msgstr ""
6050
6051 #. type: textblock
6052 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:166
6053 msgid ""
6054 "You don't necessarily need to be root when using libguestfs.  However you "
6055 "obviously do need sufficient permissions to access the filename for whatever "
6056 "operations you want to perform (ie. read access if you just want to read the "
6057 "image or write access if you want to modify the image)."
6058 msgstr ""
6059
6060 #. type: textblock
6061 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:172
6062 msgid "This call checks that C<filename> exists."
6063 msgstr ""
6064
6065 #. type: textblock
6066 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3186
6067 #: ../src/guestfs-actions.pod:174 ../src/guestfs-actions.pod:4827
6068 msgid "The optional arguments are:"
6069 msgstr ""
6070
6071 #. type: =item
6072 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:178
6073 msgid "C<readonly>"
6074 msgstr "C<readonly>"
6075
6076 #. type: textblock
6077 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:180
6078 msgid ""
6079 "If true then the image is treated as read-only.  Writes are still allowed, "
6080 "but they are stored in a temporary snapshot overlay which is discarded at "
6081 "the end.  The disk that you add is not modified."
6082 msgstr ""
6083
6084 #. type: =item
6085 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:184
6086 msgid "C<format>"
6087 msgstr "C<format>"
6088
6089 #. type: textblock
6090 #: ../fish/guestfish-actions.pod:127
6091 msgid ""
6092 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6093 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6094 "include C<raw> and C<qcow2>."
6095 msgstr ""
6096
6097 #. type: textblock
6098 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:190
6099 msgid ""
6100 "Automatic detection of the format opens you up to a potential security hole "
6101 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6102 "RHBZ#642934.  Specifying the format closes this security hole."
6103 msgstr ""
6104
6105 #. type: =item
6106 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:195
6107 msgid "C<iface>"
6108 msgstr "C<iface>"
6109
6110 #. type: textblock
6111 #: ../fish/guestfish-actions.pod:138
6112 msgid ""
6113 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6114 "add-drive-with-if> call (q.v.)"
6115 msgstr ""
6116
6117 #. type: =item
6118 #: ../fish/guestfish-actions.pod:141 ../src/guestfs-actions.pod:200
6119 #, fuzzy
6120 #| msgid "C<app_name>"
6121 msgid "C<name>"
6122 msgstr "C<app_name>"
6123
6124 #. type: textblock
6125 #: ../fish/guestfish-actions.pod:143 ../src/guestfs-actions.pod:202
6126 msgid ""
6127 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6128 "a hint to the guest inspection process if it is available."
6129 msgstr ""
6130
6131 #. type: =head2
6132 #: ../fish/guestfish-actions.pod:150
6133 msgid "add-drive-ro"
6134 msgstr "add-drive-ro"
6135
6136 #. type: =head2
6137 #: ../fish/guestfish-actions.pod:152
6138 msgid "add-ro"
6139 msgstr "add-ro"
6140
6141 #. type: verbatim
6142 #: ../fish/guestfish-actions.pod:154
6143 #, no-wrap
6144 msgid ""
6145 " add-drive-ro filename\n"
6146 "\n"
6147 msgstr ""
6148
6149 #. type: textblock
6150 #: ../fish/guestfish-actions.pod:156
6151 msgid ""
6152 "This function is the equivalent of calling L</add-drive-opts> with the "
6153 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6154 "is added read-only, with the format being detected automatically."
6155 msgstr ""
6156
6157 #. type: =head2
6158 #: ../fish/guestfish-actions.pod:161
6159 msgid "add-drive-ro-with-if"
6160 msgstr ""
6161
6162 #. type: verbatim
6163 #: ../fish/guestfish-actions.pod:163
6164 #, no-wrap
6165 msgid ""
6166 " add-drive-ro-with-if filename iface\n"
6167 "\n"
6168 msgstr ""
6169
6170 #. type: textblock
6171 #: ../fish/guestfish-actions.pod:165
6172 msgid ""
6173 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6174 "interface emulation to use at run time."
6175 msgstr ""
6176
6177 #. type: =head2
6178 #: ../fish/guestfish-actions.pod:175
6179 msgid "add-drive-with-if"
6180 msgstr ""
6181
6182 #. type: verbatim
6183 #: ../fish/guestfish-actions.pod:177
6184 #, no-wrap
6185 msgid ""
6186 " add-drive-with-if filename iface\n"
6187 "\n"
6188 msgstr ""
6189
6190 #. type: textblock
6191 #: ../fish/guestfish-actions.pod:179
6192 msgid ""
6193 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6194 "interface emulation to use at run time."
6195 msgstr ""
6196
6197 #. type: =head2
6198 #: ../fish/guestfish-actions.pod:189
6199 msgid "aug-clear"
6200 msgstr ""
6201
6202 #. type: verbatim
6203 #: ../fish/guestfish-actions.pod:191
6204 #, no-wrap
6205 msgid ""
6206 " aug-clear augpath\n"
6207 "\n"
6208 msgstr ""
6209
6210 #. type: textblock
6211 #: ../fish/guestfish-actions.pod:193 ../src/guestfs-actions.pod:296
6212 msgid ""
6213 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6214 "L<augtool(1)> C<clear> command."
6215 msgstr ""
6216
6217 #. type: =head2
6218 #: ../fish/guestfish-actions.pod:196
6219 msgid "aug-close"
6220 msgstr ""
6221
6222 #. type: verbatim
6223 #: ../fish/guestfish-actions.pod:198
6224 #, no-wrap
6225 msgid ""
6226 " aug-close\n"
6227 "\n"
6228 msgstr ""
6229
6230 #. type: textblock
6231 #: ../fish/guestfish-actions.pod:200
6232 msgid ""
6233 "Close the current Augeas handle and free up any resources used by it.  After "
6234 "calling this, you have to call L</aug-init> again before you can use any "
6235 "other Augeas functions."
6236 msgstr ""
6237
6238 #. type: =head2
6239 #: ../fish/guestfish-actions.pod:205
6240 msgid "aug-defnode"
6241 msgstr ""
6242
6243 #. type: verbatim
6244 #: ../fish/guestfish-actions.pod:207
6245 #, no-wrap
6246 msgid ""
6247 " aug-defnode name expr val\n"
6248 "\n"
6249 msgstr ""
6250
6251 #. type: textblock
6252 #: ../fish/guestfish-actions.pod:209 ../src/guestfs-actions.pod:325
6253 msgid ""
6254 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6255 msgstr ""
6256
6257 #. type: textblock
6258 #: ../fish/guestfish-actions.pod:212
6259 msgid ""
6260 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6261 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6262 "containing that single node."
6263 msgstr ""
6264
6265 #. type: textblock
6266 #: ../fish/guestfish-actions.pod:216 ../src/guestfs-actions.pod:332
6267 msgid ""
6268 "On success this returns a pair containing the number of nodes in the "
6269 "nodeset, and a boolean flag if a node was created."
6270 msgstr ""
6271
6272 #. type: =head2
6273 #: ../fish/guestfish-actions.pod:220
6274 msgid "aug-defvar"
6275 msgstr ""
6276
6277 #. type: verbatim
6278 #: ../fish/guestfish-actions.pod:222
6279 #, no-wrap
6280 msgid ""
6281 " aug-defvar name expr\n"
6282 "\n"
6283 msgstr ""
6284
6285 #. type: textblock
6286 #: ../fish/guestfish-actions.pod:224 ../src/guestfs-actions.pod:349
6287 msgid ""
6288 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6289 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6290 msgstr ""
6291
6292 #. type: textblock
6293 #: ../fish/guestfish-actions.pod:228 ../src/guestfs-actions.pod:353
6294 msgid ""
6295 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6296 "evaluates to something which is not a nodeset."
6297 msgstr ""
6298
6299 #. type: =head2
6300 #: ../fish/guestfish-actions.pod:231
6301 msgid "aug-get"
6302 msgstr ""
6303
6304 #. type: verbatim
6305 #: ../fish/guestfish-actions.pod:233
6306 #, no-wrap
6307 msgid ""
6308 " aug-get augpath\n"
6309 "\n"
6310 msgstr ""
6311
6312 #. type: textblock
6313 #: ../fish/guestfish-actions.pod:235 ../src/guestfs-actions.pod:366
6314 msgid ""
6315 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6316 "node, the C<value> is returned."
6317 msgstr ""
6318
6319 #. type: =head2
6320 #: ../fish/guestfish-actions.pod:238
6321 msgid "aug-init"
6322 msgstr ""
6323
6324 #. type: verbatim
6325 #: ../fish/guestfish-actions.pod:240
6326 #, no-wrap
6327 msgid ""
6328 " aug-init root flags\n"
6329 "\n"
6330 msgstr ""
6331
6332 #. type: textblock
6333 #: ../fish/guestfish-actions.pod:242 ../src/guestfs-actions.pod:381
6334 msgid ""
6335 "Create a new Augeas handle for editing configuration files.  If there was "
6336 "any previous Augeas handle associated with this guestfs session, then it is "
6337 "closed."
6338 msgstr ""
6339
6340 #. type: textblock
6341 #: ../fish/guestfish-actions.pod:246
6342 msgid "You must call this before using any other L</aug-*> commands."
6343 msgstr ""
6344
6345 #. type: textblock
6346 #: ../fish/guestfish-actions.pod:249 ../src/guestfs-actions.pod:388
6347 msgid ""
6348 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6349 msgstr ""
6350
6351 #. type: textblock
6352 #: ../fish/guestfish-actions.pod:252 ../src/guestfs-actions.pod:391
6353 msgid ""
6354 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6355 "logical I<or> of the following integers:"
6356 msgstr ""
6357
6358 #. type: =item
6359 #: ../fish/guestfish-actions.pod:258 ../src/guestfs-actions.pod:397
6360 msgid "C<AUG_SAVE_BACKUP> = 1"
6361 msgstr "C<AUG_SAVE_BACKUP> = 1"
6362
6363 #. type: textblock
6364 #: ../fish/guestfish-actions.pod:260 ../src/guestfs-actions.pod:399
6365 msgid "Keep the original file with a C<.augsave> extension."
6366 msgstr ""
6367
6368 #. type: =item
6369 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:401
6370 msgid "C<AUG_SAVE_NEWFILE> = 2"
6371 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6372
6373 #. type: textblock
6374 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:403
6375 msgid ""
6376 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6377 "original.  Overrides C<AUG_SAVE_BACKUP>."
6378 msgstr ""
6379
6380 #. type: =item
6381 #: ../fish/guestfish-actions.pod:267 ../src/guestfs-actions.pod:406
6382 msgid "C<AUG_TYPE_CHECK> = 4"
6383 msgstr "C<AUG_TYPE_CHECK> = 4"
6384
6385 #. type: textblock
6386 #: ../fish/guestfish-actions.pod:269 ../src/guestfs-actions.pod:408
6387 msgid "Typecheck lenses."
6388 msgstr ""
6389
6390 #. type: textblock
6391 #: ../fish/guestfish-actions.pod:271
6392 msgid ""
6393 "This option is only useful when debugging Augeas lenses.  Use of this option "
6394 "may require additional memory for the libguestfs appliance.  You may need to "
6395 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6396 msgstr ""
6397
6398 #. type: =item
6399 #: ../fish/guestfish-actions.pod:276 ../src/guestfs-actions.pod:415
6400 msgid "C<AUG_NO_STDINC> = 8"
6401 msgstr "C<AUG_NO_STDINC> = 8"
6402
6403 #. type: textblock
6404 #: ../fish/guestfish-actions.pod:278 ../src/guestfs-actions.pod:417
6405 msgid "Do not use standard load path for modules."
6406 msgstr ""
6407
6408 #. type: =item
6409 #: ../fish/guestfish-actions.pod:280 ../src/guestfs-actions.pod:419
6410 msgid "C<AUG_SAVE_NOOP> = 16"
6411 msgstr "C<AUG_SAVE_NOOP> = 16"
6412
6413 #. type: textblock
6414 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:421
6415 msgid "Make save a no-op, just record what would have been changed."
6416 msgstr ""
6417
6418 #. type: =item
6419 #: ../fish/guestfish-actions.pod:284 ../src/guestfs-actions.pod:423
6420 msgid "C<AUG_NO_LOAD> = 32"
6421 msgstr "C<AUG_NO_LOAD> = 32"
6422
6423 #. type: textblock
6424 #: ../fish/guestfish-actions.pod:286
6425 msgid "Do not load the tree in L</aug-init>."
6426 msgstr ""
6427
6428 #. type: textblock
6429 #: ../fish/guestfish-actions.pod:290
6430 msgid "To close the handle, you can call L</aug-close>."
6431 msgstr ""
6432
6433 #. type: textblock
6434 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:431
6435 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6436 msgstr ""
6437
6438 #. type: =head2
6439 #: ../fish/guestfish-actions.pod:294
6440 msgid "aug-insert"
6441 msgstr ""
6442
6443 #. type: verbatim
6444 #: ../fish/guestfish-actions.pod:296
6445 #, no-wrap
6446 msgid ""
6447 " aug-insert augpath label true|false\n"
6448 "\n"
6449 msgstr ""
6450
6451 #. type: textblock
6452 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:445
6453 msgid ""
6454 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6455 "or after C<path> (depending on the boolean flag C<before>)."
6456 msgstr ""
6457
6458 #. type: textblock
6459 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:449
6460 msgid ""
6461 "C<path> must match exactly one existing node in the tree, and C<label> must "
6462 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6463 msgstr ""
6464
6465 #. type: =head2
6466 #: ../fish/guestfish-actions.pod:306
6467 msgid "aug-load"
6468 msgstr ""
6469
6470 #. type: verbatim
6471 #: ../fish/guestfish-actions.pod:308
6472 #, no-wrap
6473 msgid ""
6474 " aug-load\n"
6475 "\n"
6476 msgstr ""
6477
6478 #. type: textblock
6479 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:462
6480 msgid "Load files into the tree."
6481 msgstr "Завантажити файли до ієрархії."
6482
6483 #. type: textblock
6484 #: ../fish/guestfish-actions.pod:312 ../src/guestfs-actions.pod:464
6485 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6486 msgstr ""
6487
6488 #. type: =head2
6489 #: ../fish/guestfish-actions.pod:315
6490 msgid "aug-ls"
6491 msgstr ""
6492
6493 #. type: verbatim
6494 #: ../fish/guestfish-actions.pod:317
6495 #, no-wrap
6496 msgid ""
6497 " aug-ls augpath\n"
6498 "\n"
6499 msgstr ""
6500
6501 #. type: textblock
6502 #: ../fish/guestfish-actions.pod:319
6503 msgid ""
6504 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6505 "resulting nodes into alphabetical order."
6506 msgstr ""
6507
6508 #. type: =head2
6509 #: ../fish/guestfish-actions.pod:322
6510 msgid "aug-match"
6511 msgstr ""
6512
6513 #. type: verbatim
6514 #: ../fish/guestfish-actions.pod:324
6515 #, no-wrap
6516 msgid ""
6517 " aug-match augpath\n"
6518 "\n"
6519 msgstr ""
6520
6521 #. type: textblock
6522 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:492
6523 msgid ""
6524 "Returns a list of paths which match the path expression C<path>.  The "
6525 "returned paths are sufficiently qualified so that they match exactly one "
6526 "node in the current tree."
6527 msgstr ""
6528
6529 #. type: =head2
6530 #: ../fish/guestfish-actions.pod:330
6531 msgid "aug-mv"
6532 msgstr ""
6533
6534 #. type: verbatim
6535 #: ../fish/guestfish-actions.pod:332
6536 #, no-wrap
6537 msgid ""
6538 " aug-mv src dest\n"
6539 "\n"
6540 msgstr ""
6541
6542 #. type: textblock
6543 #: ../fish/guestfish-actions.pod:334 ../src/guestfs-actions.pod:509
6544 msgid ""
6545 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6546 "C<dest> is overwritten if it exists."
6547 msgstr ""
6548
6549 #. type: =head2
6550 #: ../fish/guestfish-actions.pod:337
6551 msgid "aug-rm"
6552 msgstr ""
6553
6554 #. type: verbatim
6555 #: ../fish/guestfish-actions.pod:339
6556 #, no-wrap
6557 msgid ""
6558 " aug-rm augpath\n"
6559 "\n"
6560 msgstr ""
6561
6562 #. type: textblock
6563 #: ../fish/guestfish-actions.pod:341 ../src/guestfs-actions.pod:522
6564 msgid "Remove C<path> and all of its children."
6565 msgstr ""
6566
6567 #. type: textblock
6568 #: ../fish/guestfish-actions.pod:343 ../src/guestfs-actions.pod:524
6569 msgid "On success this returns the number of entries which were removed."
6570 msgstr ""
6571
6572 #. type: =head2
6573 #: ../fish/guestfish-actions.pod:345
6574 msgid "aug-save"
6575 msgstr ""
6576
6577 #. type: verbatim
6578 #: ../fish/guestfish-actions.pod:347
6579 #, no-wrap
6580 msgid ""
6581 " aug-save\n"
6582 "\n"
6583 msgstr ""
6584
6585 #. type: textblock
6586 #: ../fish/guestfish-actions.pod:349 ../src/guestfs-actions.pod:535
6587 msgid "This writes all pending changes to disk."
6588 msgstr ""
6589
6590 #. type: textblock
6591 #: ../fish/guestfish-actions.pod:351
6592 msgid ""
6593 "The flags which were passed to L</aug-init> affect exactly how files are "
6594 "saved."
6595 msgstr ""
6596
6597 #. type: =head2
6598 #: ../fish/guestfish-actions.pod:354
6599 msgid "aug-set"
6600 msgstr ""
6601
6602 #. type: verbatim
6603 #: ../fish/guestfish-actions.pod:356
6604 #, no-wrap
6605 msgid ""
6606 " aug-set augpath val\n"
6607 "\n"
6608 msgstr ""
6609
6610 #. type: textblock
6611 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:551
6612 msgid "Set the value associated with C<path> to C<val>."
6613 msgstr ""
6614
6615 #. type: textblock
6616 #: ../fish/guestfish-actions.pod:360
6617 msgid ""
6618 "In the Augeas API, it is possible to clear a node by setting the value to "
6619 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6620 "this call.  Instead you must use the L</aug-clear> call."
6621 msgstr ""
6622
6623 #. type: =head2
6624 #: ../fish/guestfish-actions.pod:365
6625 msgid "available"
6626 msgstr ""
6627
6628 #. type: verbatim
6629 #: ../fish/guestfish-actions.pod:367
6630 #, no-wrap
6631 msgid ""
6632 " available 'groups ...'\n"
6633 "\n"
6634 msgstr ""
6635
6636 #. type: textblock
6637 #: ../fish/guestfish-actions.pod:369 ../src/guestfs-actions.pod:568
6638 msgid ""
6639 "This command is used to check the availability of some groups of "
6640 "functionality in the appliance, which not all builds of the libguestfs "
6641 "appliance will be able to provide."
6642 msgstr ""
6643
6644 #. type: textblock
6645 #: ../fish/guestfish-actions.pod:373
6646 msgid ""
6647 "The libguestfs groups, and the functions that those groups correspond to, "
6648 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6649 "runtime by calling L</available-all-groups>."
6650 msgstr ""
6651
6652 #. type: textblock
6653 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:577
6654 msgid ""
6655 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6656 "\"]> would check for the availability of the Linux inotify functions and "
6657 "Augeas (configuration file editing) functions."
6658 msgstr ""
6659
6660 #. type: textblock
6661 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:582
6662 msgid "The command returns no error if I<all> requested groups are available."
6663 msgstr ""
6664
6665 #. type: textblock
6666 #: ../fish/guestfish-actions.pod:385 ../src/guestfs-actions.pod:584
6667 msgid ""
6668 "It fails with an error if one or more of the requested groups is unavailable "
6669 "in the appliance."
6670 msgstr ""
6671
6672 #. type: textblock
6673 #: ../fish/guestfish-actions.pod:388 ../src/guestfs-actions.pod:587
6674 msgid ""
6675 "If an unknown group name is included in the list of groups then an error is "
6676 "always returned."
6677 msgstr ""
6678
6679 #. type: textblock
6680 #: ../fish/guestfish-actions.pod:391 ../src/guestfs-actions.pod:590
6681 msgid "I<Notes:>"
6682 msgstr "I<Нотатки:>"
6683
6684 #. type: textblock
6685 #: ../fish/guestfish-actions.pod:397
6686 msgid "You must call L</launch> before calling this function."
6687 msgstr ""
6688
6689 #. type: textblock
6690 #: ../fish/guestfish-actions.pod:399 ../src/guestfs-actions.pod:598
6691 msgid ""
6692 "The reason is because we don't know what groups are supported by the "
6693 "appliance/daemon until it is running and can be queried."
6694 msgstr ""
6695
6696 #. type: textblock
6697 #: ../fish/guestfish-actions.pod:405 ../src/guestfs-actions.pod:604
6698 msgid ""
6699 "If a group of functions is available, this does not necessarily mean that "
6700 "they will work.  You still have to check for errors when calling individual "
6701 "API functions even if they are available."
6702 msgstr ""
6703
6704 #. type: textblock
6705 #: ../fish/guestfish-actions.pod:412 ../src/guestfs-actions.pod:611
6706 msgid ""
6707 "It is usually the job of distro packagers to build complete functionality "
6708 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6709 "with all requirements satisfied, will support everything."
6710 msgstr ""
6711
6712 #. type: textblock
6713 #: ../fish/guestfish-actions.pod:419
6714 msgid ""
6715 "This call was added in version C<1.0.80>.  In previous versions of "
6716 "libguestfs all you could do would be to speculatively execute a command to "
6717 "find out if the daemon implemented it.  See also L</version>."
6718 msgstr ""
6719
6720 #. type: =head2
6721 #: ../fish/guestfish-actions.pod:426
6722 msgid "available-all-groups"
6723 msgstr ""
6724
6725 #. type: verbatim
6726 #: ../fish/guestfish-actions.pod:428
6727 #, no-wrap
6728 msgid ""
6729 " available-all-groups\n"
6730 "\n"
6731 msgstr ""
6732
6733 #. type: textblock
6734 #: ../fish/guestfish-actions.pod:430
6735 msgid ""
6736 "This command returns a list of all optional groups that this daemon knows "
6737 "about.  Note this returns both supported and unsupported groups.  To find "
6738 "out which ones the daemon can actually support you have to call L</"
6739 "available> on each member of the returned list."
6740 msgstr ""
6741
6742 #. type: textblock
6743 #: ../fish/guestfish-actions.pod:436
6744 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6745 msgstr ""
6746
6747 #. type: =head2
6748 #: ../fish/guestfish-actions.pod:438
6749 msgid "base64-in"
6750 msgstr ""
6751
6752 #. type: verbatim
6753 #: ../fish/guestfish-actions.pod:440
6754 #, no-wrap
6755 msgid ""
6756 " base64-in (base64file|-) filename\n"
6757 "\n"
6758 msgstr ""
6759
6760 #. type: textblock
6761 #: ../fish/guestfish-actions.pod:442 ../src/guestfs-actions.pod:655
6762 msgid ""
6763 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6764 msgstr ""
6765
6766 #. type: textblock
6767 #: ../fish/guestfish-actions.pod:445 ../fish/guestfish-actions.pod:454
6768 #: ../fish/guestfish-actions.pod:703 ../fish/guestfish-actions.pod:787
6769 #: ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:907
6770 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:1300
6771 #: ../fish/guestfish-actions.pod:4750 ../fish/guestfish-actions.pod:4762
6772 #: ../fish/guestfish-actions.pod:4773 ../fish/guestfish-actions.pod:4784
6773 #: ../fish/guestfish-actions.pod:4836 ../fish/guestfish-actions.pod:4845
6774 #: ../fish/guestfish-actions.pod:4899 ../fish/guestfish-actions.pod:4922
6775 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6776 msgstr ""
6777
6778 #. type: =head2
6779 #: ../fish/guestfish-actions.pod:447
6780 msgid "base64-out"
6781 msgstr ""
6782
6783 #. type: verbatim
6784 #: ../fish/guestfish-actions.pod:449
6785 #, no-wrap
6786 msgid ""
6787 " base64-out filename (base64file|-)\n"
6788 "\n"
6789 msgstr ""
6790
6791 #. type: textblock
6792 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:669
6793 msgid ""
6794 "This command downloads the contents of C<filename>, writing it out to local "
6795 "file C<base64file> encoded as base64."
6796 msgstr ""
6797
6798 #. type: =head2
6799 #: ../fish/guestfish-actions.pod:456
6800 msgid "blockdev-flushbufs"
6801 msgstr ""
6802
6803 #. type: verbatim
6804 #: ../fish/guestfish-actions.pod:458
6805 #, no-wrap
6806 msgid ""
6807 " blockdev-flushbufs device\n"
6808 "\n"
6809 msgstr ""
6810
6811 #. type: textblock
6812 #: ../fish/guestfish-actions.pod:460 ../src/guestfs-actions.pod:682
6813 msgid ""
6814 "This tells the kernel to flush internal buffers associated with C<device>."
6815 msgstr ""
6816
6817 #. type: textblock
6818 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:474
6819 #: ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:493
6820 #: ../fish/guestfish-actions.pod:505 ../fish/guestfish-actions.pod:518
6821 #: ../fish/guestfish-actions.pod:526 ../fish/guestfish-actions.pod:537
6822 #: ../fish/guestfish-actions.pod:545 ../fish/guestfish-actions.pod:553
6823 #: ../src/guestfs-actions.pod:685 ../src/guestfs-actions.pod:702
6824 #: ../src/guestfs-actions.pod:717 ../src/guestfs-actions.pod:733
6825 #: ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:770
6826 #: ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802
6827 #: ../src/guestfs-actions.pod:816 ../src/guestfs-actions.pod:830
6828 msgid "This uses the L<blockdev(8)> command."
6829 msgstr ""
6830
6831 #. type: =head2
6832 #: ../fish/guestfish-actions.pod:465
6833 msgid "blockdev-getbsz"
6834 msgstr ""
6835
6836 #. type: verbatim
6837 #: ../fish/guestfish-actions.pod:467
6838 #, no-wrap
6839 msgid ""
6840 " blockdev-getbsz device\n"
6841 "\n"
6842 msgstr ""
6843
6844 #. type: textblock
6845 #: ../fish/guestfish-actions.pod:469 ../src/guestfs-actions.pod:697
6846 msgid "This returns the block size of a device."
6847 msgstr ""
6848
6849 #. type: textblock
6850 #: ../fish/guestfish-actions.pod:471 ../fish/guestfish-actions.pod:534
6851 #: ../src/guestfs-actions.pod:699 ../src/guestfs-actions.pod:799
6852 msgid ""
6853 "(Note this is different from both I<size in blocks> and I<filesystem block "
6854 "size>)."
6855 msgstr ""
6856
6857 #. type: =head2
6858 #: ../fish/guestfish-actions.pod:476
6859 msgid "blockdev-getro"
6860 msgstr ""
6861
6862 #. type: verbatim
6863 #: ../fish/guestfish-actions.pod:478
6864 #, no-wrap
6865 msgid ""
6866 " blockdev-getro device\n"
6867 "\n"
6868 msgstr ""
6869
6870 #. type: textblock
6871 #: ../fish/guestfish-actions.pod:480 ../src/guestfs-actions.pod:714
6872 msgid ""
6873 "Returns a boolean indicating if the block device is read-only (true if read-"
6874 "only, false if not)."
6875 msgstr ""
6876
6877 #. type: =head2
6878 #: ../fish/guestfish-actions.pod:485
6879 msgid "blockdev-getsize64"
6880 msgstr ""
6881
6882 #. type: verbatim
6883 #: ../fish/guestfish-actions.pod:487
6884 #, no-wrap
6885 msgid ""
6886 " blockdev-getsize64 device\n"
6887 "\n"
6888 msgstr ""
6889
6890 #. type: textblock
6891 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:729
6892 msgid "This returns the size of the device in bytes."
6893 msgstr ""
6894
6895 #. type: textblock
6896 #: ../fish/guestfish-actions.pod:491
6897 msgid "See also L</blockdev-getsz>."
6898 msgstr "Див. також L</blockdev-getsz>."
6899
6900 #. type: =head2
6901 #: ../fish/guestfish-actions.pod:495
6902 msgid "blockdev-getss"
6903 msgstr ""
6904
6905 #. type: verbatim
6906 #: ../fish/guestfish-actions.pod:497
6907 #, no-wrap
6908 msgid ""
6909 " blockdev-getss device\n"
6910 "\n"
6911 msgstr ""
6912
6913 #. type: textblock
6914 #: ../fish/guestfish-actions.pod:499 ../src/guestfs-actions.pod:745
6915 msgid ""
6916 "This returns the size of sectors on a block device.  Usually 512, but can be "
6917 "larger for modern devices."
6918 msgstr ""
6919
6920 #. type: textblock
6921 #: ../fish/guestfish-actions.pod:502
6922 msgid ""
6923 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6924 msgstr ""
6925
6926 #. type: =head2
6927 #: ../fish/guestfish-actions.pod:507
6928 msgid "blockdev-getsz"
6929 msgstr ""
6930
6931 #. type: verbatim
6932 #: ../fish/guestfish-actions.pod:509
6933 #, no-wrap
6934 msgid ""
6935 " blockdev-getsz device\n"
6936 "\n"
6937 msgstr ""
6938
6939 #. type: textblock
6940 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:763
6941 msgid ""
6942 "This returns the size of the device in units of 512-byte sectors (even if "
6943 "the sectorsize isn't 512 bytes ... weird)."
6944 msgstr ""
6945
6946 #. type: textblock
6947 #: ../fish/guestfish-actions.pod:514
6948 msgid ""
6949 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6950 "blockdev-getsize64> for the more useful I<size in bytes>."
6951 msgstr ""
6952
6953 #. type: =head2
6954 #: ../fish/guestfish-actions.pod:520
6955 msgid "blockdev-rereadpt"
6956 msgstr ""
6957
6958 #. type: verbatim
6959 #: ../fish/guestfish-actions.pod:522
6960 #, no-wrap
6961 msgid ""
6962 " blockdev-rereadpt device\n"
6963 "\n"
6964 msgstr ""
6965
6966 #. type: textblock
6967 #: ../fish/guestfish-actions.pod:524 ../src/guestfs-actions.pod:782
6968 msgid "Reread the partition table on C<device>."
6969 msgstr ""
6970
6971 #. type: =head2
6972 #: ../fish/guestfish-actions.pod:528
6973 msgid "blockdev-setbsz"
6974 msgstr ""
6975
6976 #. type: verbatim
6977 #: ../fish/guestfish-actions.pod:530
6978 #, no-wrap
6979 msgid ""
6980 " blockdev-setbsz device blocksize\n"
6981 "\n"
6982 msgstr ""
6983
6984 #. type: textblock
6985 #: ../fish/guestfish-actions.pod:532 ../src/guestfs-actions.pod:797
6986 msgid "This sets the block size of a device."
6987 msgstr ""
6988
6989 #. type: =head2
6990 #: ../fish/guestfish-actions.pod:539
6991 msgid "blockdev-setro"
6992 msgstr ""
6993
6994 #. type: verbatim
6995 #: ../fish/guestfish-actions.pod:541
6996 #, no-wrap
6997 msgid ""
6998 " blockdev-setro device\n"
6999 "\n"
7000 msgstr ""
7001
7002 #. type: textblock
7003 #: ../fish/guestfish-actions.pod:543 ../src/guestfs-actions.pod:814
7004 msgid "Sets the block device named C<device> to read-only."
7005 msgstr ""
7006
7007 #. type: =head2
7008 #: ../fish/guestfish-actions.pod:547
7009 msgid "blockdev-setrw"
7010 msgstr ""
7011
7012 #. type: verbatim
7013 #: ../fish/guestfish-actions.pod:549
7014 #, no-wrap
7015 msgid ""
7016 " blockdev-setrw device\n"
7017 "\n"
7018 msgstr ""
7019
7020 #. type: textblock
7021 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:828
7022 msgid "Sets the block device named C<device> to read-write."
7023 msgstr ""
7024
7025 #. type: =head2
7026 #: ../fish/guestfish-actions.pod:555
7027 msgid "btrfs-filesystem-resize"
7028 msgstr ""
7029
7030 #. type: verbatim
7031 #: ../fish/guestfish-actions.pod:557
7032 #, no-wrap
7033 msgid ""
7034 " btrfs-filesystem-resize mountpoint [size:..]\n"
7035 "\n"
7036 msgstr ""
7037
7038 #. type: textblock
7039 #: ../fish/guestfish-actions.pod:559 ../src/guestfs-actions.pod:850
7040 msgid "This command resizes a btrfs filesystem."
7041 msgstr ""
7042
7043 #. type: textblock
7044 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:852
7045 msgid ""
7046 "Note that unlike other resize calls, the filesystem has to be mounted and "
7047 "the parameter is the mountpoint not the device (this is a requirement of "
7048 "btrfs itself)."
7049 msgstr ""
7050
7051 #. type: textblock
7052 #: ../fish/guestfish-actions.pod:565 ../fish/guestfish-actions.pod:3497
7053 #: ../src/guestfs-actions.pod:856 ../src/guestfs-actions.pod:5351
7054 msgid "The optional parameters are:"
7055 msgstr ""
7056
7057 #. type: =item
7058 #: ../fish/guestfish-actions.pod:569 ../fish/guestfish-actions.pod:3501
7059 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5355
7060 msgid "C<size>"
7061 msgstr "C<розмір>"
7062
7063 #. type: textblock
7064 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:862
7065 msgid ""
7066 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7067 "resized to the maximum size."
7068 msgstr ""
7069
7070 #. type: textblock
7071 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:867
7072 msgid "See also L<btrfs(8)>."
7073 msgstr "Див. також L<btrfs(8)>."
7074
7075 #. type: =head2
7076 #: ../fish/guestfish-actions.pod:580
7077 msgid "case-sensitive-path"
7078 msgstr ""
7079
7080 #. type: verbatim
7081 #: ../fish/guestfish-actions.pod:582
7082 #, no-wrap
7083 msgid ""
7084 " case-sensitive-path path\n"
7085 "\n"
7086 msgstr ""
7087
7088 #. type: textblock
7089 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:901
7090 msgid ""
7091 "This can be used to resolve case insensitive paths on a filesystem which is "
7092 "case sensitive.  The use case is to resolve paths which you have read from "
7093 "Windows configuration files or the Windows Registry, to the true path."
7094 msgstr ""
7095
7096 #. type: textblock
7097 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:906
7098 msgid ""
7099 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7100 "(and probably others), which is that although the underlying filesystem is "
7101 "case-insensitive, the driver exports the filesystem to Linux as case-"
7102 "sensitive."
7103 msgstr ""
7104
7105 #. type: textblock
7106 #: ../fish/guestfish-actions.pod:594 ../src/guestfs-actions.pod:911
7107 msgid ""
7108 "One consequence of this is that special directories such as C<c:\\windows> "
7109 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7110 "precise details of how they were created.  In Windows itself this would not "
7111 "be a problem."
7112 msgstr ""
7113
7114 #. type: textblock
7115 #: ../fish/guestfish-actions.pod:600 ../src/guestfs-actions.pod:917
7116 msgid ""
7117 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7118 "#posixfilenames1>"
7119 msgstr ""
7120
7121 #. type: textblock
7122 #: ../fish/guestfish-actions.pod:603 ../src/guestfs-actions.pod:920
7123 msgid ""
7124 "This function resolves the true case of each element in the path and returns "
7125 "the case-sensitive path."
7126 msgstr ""
7127
7128 #. type: textblock
7129 #: ../fish/guestfish-actions.pod:606
7130 msgid ""
7131 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7132 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7133 "the directories were originally created under Windows)."
7134 msgstr ""
7135
7136 #. type: textblock
7137 #: ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:928
7138 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7139 msgstr ""
7140
7141 #. type: textblock
7142 #: ../fish/guestfish-actions.pod:614
7143 msgid "See also L</realpath>."
7144 msgstr "Див. також L</realpath>."
7145
7146 #. type: =head2
7147 #: ../fish/guestfish-actions.pod:616
7148 msgid "cat"
7149 msgstr "cat"
7150
7151 #. type: verbatim
7152 #: ../fish/guestfish-actions.pod:618
7153 #, no-wrap
7154 msgid ""
7155 " cat path\n"
7156 "\n"
7157 msgstr ""
7158 " cat шлях\n"
7159 "\n"
7160
7161 #. type: textblock
7162 #: ../fish/guestfish-actions.pod:620 ../fish/guestfish-actions.pod:3917
7163 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:5994
7164 msgid "Return the contents of the file named C<path>."
7165 msgstr ""
7166
7167 #. type: textblock
7168 #: ../fish/guestfish-actions.pod:622
7169 msgid ""
7170 "Note that this function cannot correctly handle binary files (specifically, "
7171 "files containing C<\\0> character which is treated as end of string).  For "
7172 "those you need to use the L</read-file> or L</download> functions which have "
7173 "a more complex interface."
7174 msgstr ""
7175
7176 #. type: textblock
7177 #: ../fish/guestfish-actions.pod:627 ../fish/guestfish-actions.pod:762
7178 #: ../fish/guestfish-actions.pod:774 ../fish/guestfish-actions.pod:985
7179 #: ../fish/guestfish-actions.pod:995 ../fish/guestfish-actions.pod:1062
7180 #: ../fish/guestfish-actions.pod:1072 ../fish/guestfish-actions.pod:1264
7181 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:1587
7182 #: ../fish/guestfish-actions.pod:1637 ../fish/guestfish-actions.pod:1652
7183 #: ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1681
7184 #: ../fish/guestfish-actions.pod:3787 ../fish/guestfish-actions.pod:3802
7185 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:3895
7186 #: ../fish/guestfish-actions.pod:3910 ../fish/guestfish-actions.pod:4591
7187 #: ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4722
7188 #: ../fish/guestfish-actions.pod:4737 ../fish/guestfish-actions.pod:5143
7189 #: ../fish/guestfish-actions.pod:5155 ../fish/guestfish-actions.pod:5173
7190 #: ../fish/guestfish-actions.pod:5190 ../fish/guestfish-actions.pod:5200
7191 #: ../fish/guestfish-actions.pod:5257 ../fish/guestfish-actions.pod:5267
7192 #: ../fish/guestfish-actions.pod:5296 ../fish/guestfish-actions.pod:5306
7193 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1133
7194 #: ../src/guestfs-actions.pod:1153 ../src/guestfs-actions.pod:1560
7195 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1682
7196 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1947
7197 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2448
7198 #: ../src/guestfs-actions.pod:2513 ../src/guestfs-actions.pod:2537
7199 #: ../src/guestfs-actions.pod:2554 ../src/guestfs-actions.pod:2583
7200 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
7201 #: ../src/guestfs-actions.pod:5933 ../src/guestfs-actions.pod:5959
7202 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6950
7203 #: ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7151
7204 #: ../src/guestfs-actions.pod:7175 ../src/guestfs-actions.pod:7840
7205 #: ../src/guestfs-actions.pod:7860 ../src/guestfs-actions.pod:7893
7206 #: ../src/guestfs-actions.pod:7912 ../src/guestfs-actions.pod:7931
7207 #: ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8044
7208 #: ../src/guestfs-actions.pod:8090 ../src/guestfs-actions.pod:8109
7209 msgid ""
7210 "Because of the message protocol, there is a transfer limit of somewhere "
7211 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7212 msgstr ""
7213
7214 #. type: =head2
7215 #: ../fish/guestfish-actions.pod:630
7216 msgid "checksum"
7217 msgstr "checksum"
7218
7219 #. type: verbatim
7220 #: ../fish/guestfish-actions.pod:632
7221 #, no-wrap
7222 msgid ""
7223 " checksum csumtype path\n"
7224 "\n"
7225 msgstr ""
7226
7227 #. type: textblock
7228 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:966
7229 msgid ""
7230 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7231 msgstr ""
7232
7233 #. type: textblock
7234 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:969
7235 msgid ""
7236 "The type of checksum to compute is given by the C<csumtype> parameter which "
7237 "must have one of the following values:"
7238 msgstr ""
7239
7240 #. type: =item
7241 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:974
7242 msgid "C<crc>"
7243 msgstr "C<crc>"
7244
7245 #. type: textblock
7246 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:976
7247 msgid ""
7248 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7249 "C<cksum> command."
7250 msgstr ""
7251
7252 #. type: =item
7253 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:979
7254 msgid "C<md5>"
7255 msgstr "C<md5>"
7256
7257 #. type: textblock
7258 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:981
7259 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7260 msgstr ""
7261
7262 #. type: =item
7263 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:983
7264 msgid "C<sha1>"
7265 msgstr "C<sha1>"
7266
7267 #. type: textblock
7268 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:985
7269 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7270 msgstr ""
7271
7272 #. type: =item
7273 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:987
7274 msgid "C<sha224>"
7275 msgstr "C<sha224>"
7276
7277 #. type: textblock
7278 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:989
7279 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7280 msgstr ""
7281
7282 #. type: =item
7283 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:991
7284 msgid "C<sha256>"
7285 msgstr "C<sha256>"
7286
7287 #. type: textblock
7288 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:993
7289 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7290 msgstr ""
7291
7292 #. type: =item
7293 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:995
7294 msgid "C<sha384>"
7295 msgstr "C<sha384>"
7296
7297 #. type: textblock
7298 #: ../fish/guestfish-actions.pod:665 ../src/guestfs-actions.pod:997
7299 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7300 msgstr ""
7301
7302 #. type: =item
7303 #: ../fish/guestfish-actions.pod:667 ../src/guestfs-actions.pod:999
7304 msgid "C<sha512>"
7305 msgstr "C<sha512>"
7306
7307 #. type: textblock
7308 #: ../fish/guestfish-actions.pod:669 ../src/guestfs-actions.pod:1001
7309 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7310 msgstr ""
7311
7312 #. type: textblock
7313 #: ../fish/guestfish-actions.pod:673 ../src/guestfs-actions.pod:1005
7314 msgid "The checksum is returned as a printable string."
7315 msgstr ""
7316
7317 #. type: textblock
7318 #: ../fish/guestfish-actions.pod:675
7319 msgid "To get the checksum for a device, use L</checksum-device>."
7320 msgstr ""
7321
7322 #. type: textblock
7323 #: ../fish/guestfish-actions.pod:677
7324 msgid "To get the checksums for many files, use L</checksums-out>."
7325 msgstr ""
7326
7327 #. type: =head2
7328 #: ../fish/guestfish-actions.pod:679
7329 msgid "checksum-device"
7330 msgstr "checksum-device"
7331
7332 #. type: verbatim
7333 #: ../fish/guestfish-actions.pod:681
7334 #, no-wrap
7335 msgid ""
7336 " checksum-device csumtype device\n"
7337 "\n"
7338 msgstr ""
7339
7340 #. type: textblock
7341 #: ../fish/guestfish-actions.pod:683
7342 msgid ""
7343 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7344 "device named C<device>.  For the types of checksums supported see the L</"
7345 "checksum> command."
7346 msgstr ""
7347
7348 #. type: =head2
7349 #: ../fish/guestfish-actions.pod:687
7350 msgid "checksums-out"
7351 msgstr ""
7352
7353 #. type: verbatim
7354 #: ../fish/guestfish-actions.pod:689
7355 #, no-wrap
7356 msgid ""
7357 " checksums-out csumtype directory (sumsfile|-)\n"
7358 "\n"
7359 msgstr ""
7360
7361 #. type: textblock
7362 #: ../fish/guestfish-actions.pod:691 ../src/guestfs-actions.pod:1040
7363 msgid ""
7364 "This command computes the checksums of all regular files in C<directory> and "
7365 "then emits a list of those checksums to the local output file C<sumsfile>."
7366 msgstr ""
7367
7368 #. type: textblock
7369 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1044
7370 msgid ""
7371 "This can be used for verifying the integrity of a virtual machine.  However "
7372 "to be properly secure you should pay attention to the output of the checksum "
7373 "command (it uses the ones from GNU coreutils).  In particular when the "
7374 "filename is not printable, coreutils uses a special backslash syntax.  For "
7375 "more information, see the GNU coreutils info file."
7376 msgstr ""
7377
7378 #. type: =head2
7379 #: ../fish/guestfish-actions.pod:705
7380 msgid "chmod"
7381 msgstr "chmod"
7382
7383 #. type: verbatim
7384 #: ../fish/guestfish-actions.pod:707
7385 #, no-wrap
7386 msgid ""
7387 " chmod mode path\n"
7388 "\n"
7389 msgstr ""
7390
7391 #. type: textblock
7392 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1063
7393 msgid ""
7394 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7395 "supported."
7396 msgstr ""
7397
7398 #. type: textblock
7399 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1066
7400 msgid ""
7401 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7402 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7403 "C<700>."
7404 msgstr ""
7405
7406 #. type: textblock
7407 #: ../fish/guestfish-actions.pod:716 ../fish/guestfish-actions.pod:3150
7408 #: ../fish/guestfish-actions.pod:3289 ../fish/guestfish-actions.pod:3299
7409 #: ../fish/guestfish-actions.pod:3309 ../src/guestfs-actions.pod:1070
7410 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4967
7411 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5005
7412 msgid "The mode actually set is affected by the umask."
7413 msgstr ""
7414
7415 #. type: =head2
7416 #: ../fish/guestfish-actions.pod:718
7417 msgid "chown"
7418 msgstr "chown"
7419
7420 #. type: verbatim
7421 #: ../fish/guestfish-actions.pod:720
7422 #, no-wrap
7423 msgid ""
7424 " chown owner group path\n"
7425 "\n"
7426 msgstr ""
7427
7428 #. type: textblock
7429 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1084
7430 msgid "Change the file owner to C<owner> and group to C<group>."
7431 msgstr ""
7432
7433 #. type: textblock
7434 #: ../fish/guestfish-actions.pod:724 ../fish/guestfish-actions.pod:2585
7435 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:3829
7436 msgid ""
7437 "Only numeric uid and gid are supported.  If you want to use names, you will "
7438 "need to locate and parse the password file yourself (Augeas support makes "
7439 "this relatively easy)."
7440 msgstr ""
7441
7442 #. type: =head2
7443 #: ../fish/guestfish-actions.pod:728
7444 msgid "command"
7445 msgstr "command"
7446
7447 #. type: verbatim
7448 #: ../fish/guestfish-actions.pod:730
7449 #, no-wrap
7450 msgid ""
7451 " command 'arguments ...'\n"
7452 "\n"
7453 msgstr ""
7454 " command 'параметри...'\n"
7455 "\n"
7456
7457 #. type: textblock
7458 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1100
7459 msgid ""
7460 "This call runs a command from the guest filesystem.  The filesystem must be "
7461 "mounted, and must contain a compatible operating system (ie. something "
7462 "Linux, with the same or compatible processor architecture)."
7463 msgstr ""
7464
7465 #. type: textblock
7466 #: ../fish/guestfish-actions.pod:737
7467 msgid ""
7468 "The single parameter is an argv-style list of arguments.  The first element "
7469 "is the name of the program to run.  Subsequent elements are parameters.  The "
7470 "list must be non-empty (ie. must contain a program name).  Note that the "
7471 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7472 msgstr ""
7473
7474 #. type: textblock
7475 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1112
7476 msgid "The return value is anything printed to I<stdout> by the command."
7477 msgstr ""
7478
7479 #. type: textblock
7480 #: ../fish/guestfish-actions.pod:747 ../src/guestfs-actions.pod:1115
7481 msgid ""
7482 "If the command returns a non-zero exit status, then this function returns an "
7483 "error message.  The error message string is the content of I<stderr> from "
7484 "the command."
7485 msgstr ""
7486
7487 #. type: textblock
7488 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1119
7489 msgid ""
7490 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7491 "bin>.  If you require a program from another location, you should provide "
7492 "the full path in the first parameter."
7493 msgstr ""
7494
7495 #. type: textblock
7496 #: ../fish/guestfish-actions.pod:756 ../src/guestfs-actions.pod:1124
7497 msgid ""
7498 "Shared libraries and data files required by the program must be available on "
7499 "filesystems which are mounted in the correct places.  It is the caller's "
7500 "responsibility to ensure all filesystems that are needed are mounted at the "
7501 "right locations."
7502 msgstr ""
7503
7504 #. type: =head2
7505 #: ../fish/guestfish-actions.pod:765
7506 msgid "command-lines"
7507 msgstr ""
7508
7509 #. type: verbatim
7510 #: ../fish/guestfish-actions.pod:767
7511 #, no-wrap
7512 msgid ""
7513 " command-lines 'arguments ...'\n"
7514 "\n"
7515 msgstr ""
7516
7517 #. type: textblock
7518 #: ../fish/guestfish-actions.pod:769
7519 msgid ""
7520 "This is the same as L</command>, but splits the result into a list of lines."
7521 msgstr ""
7522
7523 #. type: textblock
7524 #: ../fish/guestfish-actions.pod:772
7525 msgid "See also: L</sh-lines>"
7526 msgstr "Див. також L</sh-lines>"
7527
7528 #. type: =head2
7529 #: ../fish/guestfish-actions.pod:777
7530 msgid "compress-device-out"
7531 msgstr ""
7532
7533 #. type: verbatim
7534 #: ../fish/guestfish-actions.pod:779
7535 #, no-wrap
7536 msgid ""
7537 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7538 "\n"
7539 msgstr ""
7540
7541 #. type: textblock
7542 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1174
7543 msgid ""
7544 "This command compresses C<device> and writes it out to the local file "
7545 "C<zdevice>."
7546 msgstr ""
7547
7548 #. type: textblock
7549 #: ../fish/guestfish-actions.pod:784
7550 msgid ""
7551 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7552 "compress-out>."
7553 msgstr ""
7554
7555 #. type: =head2
7556 #: ../fish/guestfish-actions.pod:791
7557 msgid "compress-out"
7558 msgstr ""
7559
7560 #. type: verbatim
7561 #: ../fish/guestfish-actions.pod:793
7562 #, no-wrap
7563 msgid ""
7564 " compress-out ctype file (zfile|-) [level:..]\n"
7565 "\n"
7566 msgstr ""
7567
7568 #. type: textblock
7569 #: ../fish/guestfish-actions.pod:795 ../src/guestfs-actions.pod:1226
7570 msgid ""
7571 "This command compresses C<file> and writes it out to the local file C<zfile>."
7572 msgstr ""
7573
7574 #. type: textblock
7575 #: ../fish/guestfish-actions.pod:798 ../src/guestfs-actions.pod:1229
7576 msgid ""
7577 "The compression program used is controlled by the C<ctype> parameter.  "
7578 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7579 "Some compression types may not be supported by particular builds of "
7580 "libguestfs, in which case you will get an error containing the substring "
7581 "\"not supported\"."
7582 msgstr ""
7583
7584 #. type: textblock
7585 #: ../fish/guestfish-actions.pod:804 ../src/guestfs-actions.pod:1235
7586 msgid ""
7587 "The optional C<level> parameter controls compression level.  The meaning and "
7588 "default for this parameter depends on the compression program being used."
7589 msgstr ""
7590
7591 #. type: =head2
7592 #: ../fish/guestfish-actions.pod:812
7593 msgid "config"
7594 msgstr ""
7595
7596 #. type: verbatim
7597 #: ../fish/guestfish-actions.pod:814
7598 #, no-wrap
7599 msgid ""
7600 " config qemuparam qemuvalue\n"
7601 "\n"
7602 msgstr ""
7603
7604 #. type: textblock
7605 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1276
7606 msgid ""
7607 "This can be used to add arbitrary qemu command line parameters of the form "
7608 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7609 "setting some parameters which would interfere with parameters that we use."
7610 msgstr ""
7611
7612 #. type: textblock
7613 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1281
7614 msgid "The first character of C<param> string must be a C<-> (dash)."
7615 msgstr ""
7616
7617 #. type: textblock
7618 #: ../fish/guestfish-actions.pod:823 ../src/guestfs-actions.pod:1283
7619 msgid "C<value> can be NULL."
7620 msgstr ""
7621
7622 #. type: =head2
7623 #: ../fish/guestfish-actions.pod:825
7624 msgid "copy-size"
7625 msgstr ""
7626
7627 #. type: verbatim
7628 #: ../fish/guestfish-actions.pod:827
7629 #, no-wrap
7630 msgid ""
7631 " copy-size src dest size\n"
7632 "\n"
7633 msgstr ""
7634
7635 #. type: textblock
7636 #: ../fish/guestfish-actions.pod:829 ../src/guestfs-actions.pod:1297
7637 msgid ""
7638 "This command copies exactly C<size> bytes from one source device or file "
7639 "C<src> to another destination device or file C<dest>."
7640 msgstr ""
7641
7642 #. type: textblock
7643 #: ../fish/guestfish-actions.pod:832 ../src/guestfs-actions.pod:1300
7644 msgid ""
7645 "Note this will fail if the source is too short or if the destination is not "
7646 "large enough."
7647 msgstr ""
7648
7649 #. type: =head2
7650 #: ../fish/guestfish-actions.pod:835
7651 msgid "cp"
7652 msgstr "cp"
7653
7654 #. type: verbatim
7655 #: ../fish/guestfish-actions.pod:837
7656 #, no-wrap
7657 msgid ""
7658 " cp src dest\n"
7659 "\n"
7660 msgstr ""
7661
7662 #. type: textblock
7663 #: ../fish/guestfish-actions.pod:839 ../src/guestfs-actions.pod:1319
7664 msgid ""
7665 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7666 "destination filename or destination directory."
7667 msgstr ""
7668
7669 #. type: =head2
7670 #: ../fish/guestfish-actions.pod:842
7671 msgid "cp-a"
7672 msgstr "cp-a"
7673
7674 #. type: verbatim
7675 #: ../fish/guestfish-actions.pod:844
7676 #, no-wrap
7677 msgid ""
7678 " cp-a src dest\n"
7679 "\n"
7680 msgstr ""
7681
7682 #. type: textblock
7683 #: ../fish/guestfish-actions.pod:846 ../src/guestfs-actions.pod:1333
7684 msgid ""
7685 "This copies a file or directory from C<src> to C<dest> recursively using the "
7686 "C<cp -a> command."
7687 msgstr ""
7688
7689 #. type: =head2
7690 #: ../fish/guestfish-actions.pod:849
7691 msgid "dd"
7692 msgstr "dd"
7693
7694 #. type: verbatim
7695 #: ../fish/guestfish-actions.pod:851
7696 #, no-wrap
7697 msgid ""
7698 " dd src dest\n"
7699 "\n"
7700 msgstr ""
7701
7702 #. type: textblock
7703 #: ../fish/guestfish-actions.pod:853 ../src/guestfs-actions.pod:1347
7704 msgid ""
7705 "This command copies from one source device or file C<src> to another "
7706 "destination device or file C<dest>.  Normally you would use this to copy to "
7707 "or from a device or partition, for example to duplicate a filesystem."
7708 msgstr ""
7709
7710 #. type: textblock
7711 #: ../fish/guestfish-actions.pod:858
7712 msgid ""
7713 "If the destination is a device, it must be as large or larger than the "
7714 "source file or device, otherwise the copy will fail.  This command cannot do "
7715 "partial copies (see L</copy-size>)."
7716 msgstr ""
7717
7718 #. type: =head2
7719 #: ../fish/guestfish-actions.pod:862
7720 msgid "df"
7721 msgstr "df"
7722
7723 #. type: verbatim
7724 #: ../fish/guestfish-actions.pod:864
7725 #, no-wrap
7726 msgid ""
7727 " df\n"
7728 "\n"
7729 msgstr ""
7730 " df\n"
7731 "\n"
7732
7733 #. type: textblock
7734 #: ../fish/guestfish-actions.pod:866 ../src/guestfs-actions.pod:1365
7735 msgid "This command runs the C<df> command to report disk space used."
7736 msgstr ""
7737
7738 #. type: textblock
7739 #: ../fish/guestfish-actions.pod:868 ../fish/guestfish-actions.pod:879
7740 msgid ""
7741 "This command is mostly useful for interactive sessions.  It is I<not> "
7742 "intended that you try to parse the output string.  Use L</statvfs> from "
7743 "programs."
7744 msgstr ""
7745
7746 #. type: =head2
7747 #: ../fish/guestfish-actions.pod:872
7748 msgid "df-h"
7749 msgstr "df-h"
7750
7751 #. type: verbatim
7752 #: ../fish/guestfish-actions.pod:874
7753 #, no-wrap
7754 msgid ""
7755 " df-h\n"
7756 "\n"
7757 msgstr ""
7758 " df-h\n"
7759 "\n"
7760
7761 #. type: textblock
7762 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1381
7763 msgid ""
7764 "This command runs the C<df -h> command to report disk space used in human-"
7765 "readable format."
7766 msgstr ""
7767
7768 #. type: =head2
7769 #: ../fish/guestfish-actions.pod:883
7770 msgid "dmesg"
7771 msgstr "dmesg"
7772
7773 #. type: verbatim
7774 #: ../fish/guestfish-actions.pod:885
7775 #, no-wrap
7776 msgid ""
7777 " dmesg\n"
7778 "\n"
7779 msgstr ""
7780 " dmesg\n"
7781 "\n"
7782
7783 #. type: textblock
7784 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1398
7785 msgid ""
7786 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7787 "This is sometimes useful for extended debugging of problems."
7788 msgstr ""
7789
7790 #. type: textblock
7791 #: ../fish/guestfish-actions.pod:891
7792 msgid ""
7793 "Another way to get the same information is to enable verbose messages with "
7794 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7795 "before running the program."
7796 msgstr ""
7797
7798 #. type: =head2
7799 #: ../fish/guestfish-actions.pod:896
7800 msgid "download"
7801 msgstr "download"
7802
7803 #. type: verbatim
7804 #: ../fish/guestfish-actions.pod:898
7805 #, no-wrap
7806 msgid ""
7807 " download remotefilename (filename|-)\n"
7808 "\n"
7809 msgstr ""
7810
7811 #. type: textblock
7812 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:913
7813 #: ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1444
7814 msgid ""
7815 "Download file C<remotefilename> and save it as C<filename> on the local "
7816 "machine."
7817 msgstr ""
7818
7819 #. type: textblock
7820 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:4895
7821 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:7410
7822 msgid "C<filename> can also be a named pipe."
7823 msgstr ""
7824
7825 #. type: textblock
7826 #: ../fish/guestfish-actions.pod:905
7827 msgid "See also L</upload>, L</cat>."
7828 msgstr ""
7829
7830 #. type: =head2
7831 #: ../fish/guestfish-actions.pod:909
7832 msgid "download-offset"
7833 msgstr "download-offset"
7834
7835 #. type: verbatim
7836 #: ../fish/guestfish-actions.pod:911
7837 #, no-wrap
7838 msgid ""
7839 " download-offset remotefilename (filename|-) offset size\n"
7840 "\n"
7841 msgstr ""
7842
7843 #. type: textblock
7844 #: ../fish/guestfish-actions.pod:916 ../src/guestfs-actions.pod:1447
7845 msgid ""
7846 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7847 "region must be within the file or device)."
7848 msgstr ""
7849
7850 #. type: textblock
7851 #: ../fish/guestfish-actions.pod:919
7852 msgid ""
7853 "Note that there is no limit on the amount of data that can be downloaded "
7854 "with this call, unlike with L</pread>, and this call always reads the full "
7855 "amount unless an error occurs."
7856 msgstr ""
7857
7858 #. type: textblock
7859 #: ../fish/guestfish-actions.pod:924
7860 msgid "See also L</download>, L</pread>."
7861 msgstr ""
7862
7863 #. type: =head2
7864 #: ../fish/guestfish-actions.pod:928
7865 msgid "drop-caches"
7866 msgstr ""
7867
7868 #. type: verbatim
7869 #: ../fish/guestfish-actions.pod:930
7870 #, no-wrap
7871 msgid ""
7872 " drop-caches whattodrop\n"
7873 "\n"
7874 msgstr ""
7875
7876 #. type: textblock
7877 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1472
7878 msgid ""
7879 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7880 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7881 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7882 msgstr ""
7883
7884 #. type: textblock
7885 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1477
7886 msgid "Setting C<whattodrop> to 3 should drop everything."
7887 msgstr ""
7888
7889 #. type: textblock
7890 #: ../fish/guestfish-actions.pod:939 ../src/guestfs-actions.pod:1479
7891 msgid ""
7892 "This automatically calls L<sync(2)> before the operation, so that the "
7893 "maximum guest memory is freed."
7894 msgstr ""
7895
7896 #. type: =head2
7897 #: ../fish/guestfish-actions.pod:942
7898 msgid "du"
7899 msgstr "du"
7900
7901 #. type: verbatim
7902 #: ../fish/guestfish-actions.pod:944
7903 #, no-wrap
7904 msgid ""
7905 " du path\n"
7906 "\n"
7907 msgstr ""
7908 " du шлях\n"
7909 "\n"
7910
7911 #. type: textblock
7912 #: ../fish/guestfish-actions.pod:946 ../src/guestfs-actions.pod:1492
7913 msgid ""
7914 "This command runs the C<du -s> command to estimate file space usage for "
7915 "C<path>."
7916 msgstr ""
7917
7918 #. type: textblock
7919 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1495
7920 msgid ""
7921 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7922 "estimate includes the contents of the directory and all subdirectories "
7923 "(recursively)."
7924 msgstr ""
7925
7926 #. type: textblock
7927 #: ../fish/guestfish-actions.pod:953 ../src/guestfs-actions.pod:1499
7928 msgid ""
7929 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7930 msgstr ""
7931
7932 #. type: =head2
7933 #: ../fish/guestfish-actions.pod:956
7934 msgid "e2fsck-f"
7935 msgstr "e2fsck-f"
7936
7937 #. type: verbatim
7938 #: ../fish/guestfish-actions.pod:958
7939 #, no-wrap
7940 msgid ""
7941 " e2fsck-f device\n"
7942 "\n"
7943 msgstr ""
7944
7945 #. type: textblock
7946 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1517
7947 msgid ""
7948 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7949 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7950 "clean (I<-f>)."
7951 msgstr ""
7952
7953 #. type: textblock
7954 #: ../fish/guestfish-actions.pod:964
7955 msgid ""
7956 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
7957 "should use L</fsck>."
7958 msgstr ""
7959
7960 #. type: =head2
7961 #: ../fish/guestfish-actions.pod:967
7962 msgid "echo-daemon"
7963 msgstr ""
7964
7965 #. type: verbatim
7966 #: ../fish/guestfish-actions.pod:969
7967 #, no-wrap
7968 msgid ""
7969 " echo-daemon 'words ...'\n"
7970 "\n"
7971 msgstr ""
7972
7973 #. type: textblock
7974 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1534
7975 msgid ""
7976 "This command concatenates the list of C<words> passed with single spaces "
7977 "between them and returns the resulting string."
7978 msgstr ""
7979
7980 #. type: textblock
7981 #: ../fish/guestfish-actions.pod:974 ../src/guestfs-actions.pod:1537
7982 msgid "You can use this command to test the connection through to the daemon."
7983 msgstr ""
7984
7985 #. type: textblock
7986 #: ../fish/guestfish-actions.pod:976
7987 msgid "See also L</ping-daemon>."
7988 msgstr "Див. також L</ping-daemon>."
7989
7990 #. type: =head2
7991 #: ../fish/guestfish-actions.pod:978
7992 msgid "egrep"
7993 msgstr "egrep"
7994
7995 #. type: verbatim
7996 #: ../fish/guestfish-actions.pod:980
7997 #, no-wrap
7998 msgid ""
7999 " egrep regex path\n"
8000 "\n"
8001 msgstr ""
8002
8003 #. type: textblock
8004 #: ../fish/guestfish-actions.pod:982 ../src/guestfs-actions.pod:1553
8005 msgid ""
8006 "This calls the external C<egrep> program and returns the matching lines."
8007 msgstr ""
8008
8009 #. type: =head2
8010 #: ../fish/guestfish-actions.pod:988
8011 msgid "egrepi"
8012 msgstr "egrepi"
8013
8014 #. type: verbatim
8015 #: ../fish/guestfish-actions.pod:990
8016 #, no-wrap
8017 msgid ""
8018 " egrepi regex path\n"
8019 "\n"
8020 msgstr ""
8021
8022 #. type: textblock
8023 #: ../fish/guestfish-actions.pod:992 ../src/guestfs-actions.pod:1572
8024 msgid ""
8025 "This calls the external C<egrep -i> program and returns the matching lines."
8026 msgstr ""
8027
8028 #. type: =head2
8029 #: ../fish/guestfish-actions.pod:998
8030 msgid "equal"
8031 msgstr "equal"
8032
8033 #. type: verbatim
8034 #: ../fish/guestfish-actions.pod:1000
8035 #, no-wrap
8036 msgid ""
8037 " equal file1 file2\n"
8038 "\n"
8039 msgstr ""
8040 " equal файл1 файл2\n"
8041 "\n"
8042
8043 #. type: textblock
8044 #: ../fish/guestfish-actions.pod:1002 ../src/guestfs-actions.pod:1591
8045 msgid ""
8046 "This compares the two files C<file1> and C<file2> and returns true if their "
8047 "content is exactly equal, or false otherwise."
8048 msgstr ""
8049
8050 #. type: textblock
8051 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1594
8052 msgid "The external L<cmp(1)> program is used for the comparison."
8053 msgstr ""
8054
8055 #. type: =head2
8056 #: ../fish/guestfish-actions.pod:1007
8057 msgid "exists"
8058 msgstr "exists"
8059
8060 #. type: verbatim
8061 #: ../fish/guestfish-actions.pod:1009
8062 #, no-wrap
8063 msgid ""
8064 " exists path\n"
8065 "\n"
8066 msgstr ""
8067 " exists шлях\n"
8068 "\n"
8069
8070 #. type: textblock
8071 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1606
8072 msgid ""
8073 "This returns C<true> if and only if there is a file, directory (or anything) "
8074 "with the given C<path> name."
8075 msgstr ""
8076
8077 #. type: textblock
8078 #: ../fish/guestfish-actions.pod:1014
8079 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8080 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8081
8082 #. type: =head2
8083 #: ../fish/guestfish-actions.pod:1016
8084 msgid "fallocate"
8085 msgstr "fallocate"
8086
8087 #. type: verbatim
8088 #: ../fish/guestfish-actions.pod:1018
8089 #, no-wrap
8090 msgid ""
8091 " fallocate path len\n"
8092 "\n"
8093 msgstr ""
8094 " fallocate шлях довжина\n"
8095 "\n"
8096
8097 #. type: textblock
8098 #: ../fish/guestfish-actions.pod:1020 ../fish/guestfish-actions.pod:1039
8099 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1648
8100 msgid ""
8101 "This command preallocates a file (containing zero bytes) named C<path> of "
8102 "size C<len> bytes.  If the file exists already, it is overwritten."
8103 msgstr ""
8104
8105 #. type: textblock
8106 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1633
8107 msgid ""
8108 "Do not confuse this with the guestfish-specific C<alloc> command which "
8109 "allocates a file in the host and attaches it as a device."
8110 msgstr ""
8111
8112 #. type: textblock
8113 #: ../fish/guestfish-actions.pod:1028
8114 msgid ""
8115 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8116 "instead."
8117 msgstr ""
8118
8119 #. type: =head2
8120 #: ../fish/guestfish-actions.pod:1035
8121 msgid "fallocate64"
8122 msgstr "fallocate64"
8123
8124 #. type: verbatim
8125 #: ../fish/guestfish-actions.pod:1037
8126 #, no-wrap
8127 msgid ""
8128 " fallocate64 path len\n"
8129 "\n"
8130 msgstr ""
8131 " fallocate64 шлях довжина\n"
8132 "\n"
8133
8134 #. type: textblock
8135 #: ../fish/guestfish-actions.pod:1043
8136 msgid ""
8137 "Note that this call allocates disk blocks for the file.  To create a sparse "
8138 "file use L</truncate-size> instead."
8139 msgstr ""
8140
8141 #. type: textblock
8142 #: ../fish/guestfish-actions.pod:1046
8143 msgid ""
8144 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8145 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8146 "maximum size of files created through that call to 1GB."
8147 msgstr ""
8148
8149 #. type: textblock
8150 #: ../fish/guestfish-actions.pod:1051 ../src/guestfs-actions.pod:1660
8151 msgid ""
8152 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8153 "commands which create a file in the host and attach it as a device."
8154 msgstr ""
8155
8156 #. type: =head2
8157 #: ../fish/guestfish-actions.pod:1055
8158 msgid "fgrep"
8159 msgstr "fgrep"
8160
8161 #. type: verbatim
8162 #: ../fish/guestfish-actions.pod:1057
8163 #, no-wrap
8164 msgid ""
8165 " fgrep pattern path\n"
8166 "\n"
8167 msgstr ""
8168 " fgrep шаблон шлях\n"
8169 "\n"
8170
8171 #. type: textblock
8172 #: ../fish/guestfish-actions.pod:1059 ../src/guestfs-actions.pod:1675
8173 msgid ""
8174 "This calls the external C<fgrep> program and returns the matching lines."
8175 msgstr ""
8176
8177 #. type: =head2
8178 #: ../fish/guestfish-actions.pod:1065
8179 msgid "fgrepi"
8180 msgstr "fgrepi"
8181
8182 #. type: verbatim
8183 #: ../fish/guestfish-actions.pod:1067
8184 #, no-wrap
8185 msgid ""
8186 " fgrepi pattern path\n"
8187 "\n"
8188 msgstr ""
8189 " fgrepi шаблон шлях\n"
8190 "\n"
8191
8192 #. type: textblock
8193 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1694
8194 msgid ""
8195 "This calls the external C<fgrep -i> program and returns the matching lines."
8196 msgstr ""
8197
8198 #. type: =head2
8199 #: ../fish/guestfish-actions.pod:1075
8200 msgid "file"
8201 msgstr "file"
8202
8203 #. type: verbatim
8204 #: ../fish/guestfish-actions.pod:1077
8205 #, no-wrap
8206 msgid ""
8207 " file path\n"
8208 "\n"
8209 msgstr ""
8210 " file шлях\n"
8211 "\n"
8212
8213 #. type: textblock
8214 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1712
8215 msgid ""
8216 "This call uses the standard L<file(1)> command to determine the type or "
8217 "contents of the file."
8218 msgstr ""
8219
8220 #. type: textblock
8221 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1715
8222 msgid ""
8223 "This call will also transparently look inside various types of compressed "
8224 "file."
8225 msgstr ""
8226
8227 #. type: textblock
8228 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1718
8229 msgid ""
8230 "The exact command which runs is C<file -zb path>.  Note in particular that "
8231 "the filename is not prepended to the output (the I<-b> option)."
8232 msgstr ""
8233
8234 #. type: textblock
8235 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1722
8236 msgid ""
8237 "The output depends on the output of the underlying L<file(1)> command and it "
8238 "can change in future in ways beyond our control.  In other words, the output "
8239 "is not guaranteed by the ABI."
8240 msgstr ""
8241
8242 #. type: textblock
8243 #: ../fish/guestfish-actions.pod:1093
8244 msgid ""
8245 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8246 "(etc), L</is-zero>."
8247 msgstr ""
8248
8249 #. type: =head2
8250 #: ../fish/guestfish-actions.pod:1096
8251 msgid "file-architecture"
8252 msgstr "file-architecture"
8253
8254 #. type: verbatim
8255 #: ../fish/guestfish-actions.pod:1098
8256 #, no-wrap
8257 msgid ""
8258 " file-architecture filename\n"
8259 "\n"
8260 msgstr ""
8261 " file-architecture назва_файла\n"
8262 "\n"
8263
8264 #. type: textblock
8265 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1740
8266 msgid ""
8267 "This detects the architecture of the binary C<filename>, and returns it if "
8268 "known."
8269 msgstr ""
8270
8271 #. type: textblock
8272 #: ../fish/guestfish-actions.pod:1103 ../src/guestfs-actions.pod:1743
8273 msgid "Currently defined architectures are:"
8274 msgstr ""
8275
8276 #. type: =item
8277 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1747
8278 msgid "\"i386\""
8279 msgstr "\"i386\""
8280
8281 #. type: textblock
8282 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1749
8283 msgid ""
8284 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8285 "irrespective of the precise processor requirements of the binary."
8286 msgstr ""
8287
8288 #. type: =item
8289 #: ../fish/guestfish-actions.pod:1112 ../src/guestfs-actions.pod:1752
8290 msgid "\"x86_64\""
8291 msgstr "\"x86_64\""
8292
8293 #. type: textblock
8294 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1754
8295 msgid "64 bit x86-64."
8296 msgstr ""
8297
8298 #. type: =item
8299 #: ../fish/guestfish-actions.pod:1116 ../src/guestfs-actions.pod:1756
8300 msgid "\"sparc\""
8301 msgstr ""
8302
8303 #. type: textblock
8304 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1758
8305 msgid "32 bit SPARC."
8306 msgstr ""
8307
8308 #. type: =item
8309 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1760
8310 msgid "\"sparc64\""
8311 msgstr ""
8312
8313 #. type: textblock
8314 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1762
8315 msgid "64 bit SPARC V9 and above."
8316 msgstr ""
8317
8318 #. type: =item
8319 #: ../fish/guestfish-actions.pod:1124 ../src/guestfs-actions.pod:1764
8320 msgid "\"ia64\""
8321 msgstr "\"ia64\""
8322
8323 #. type: textblock
8324 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1766
8325 msgid "Intel Itanium."
8326 msgstr "Intel Itanium."
8327
8328 #. type: =item
8329 #: ../fish/guestfish-actions.pod:1128 ../src/guestfs-actions.pod:1768
8330 msgid "\"ppc\""
8331 msgstr ""
8332
8333 #. type: textblock
8334 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1770
8335 msgid "32 bit Power PC."
8336 msgstr ""
8337
8338 #. type: =item
8339 #: ../fish/guestfish-actions.pod:1132 ../src/guestfs-actions.pod:1772
8340 msgid "\"ppc64\""
8341 msgstr ""
8342
8343 #. type: textblock
8344 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1774
8345 msgid "64 bit Power PC."
8346 msgstr ""
8347
8348 #. type: textblock
8349 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1778
8350 msgid "Libguestfs may return other architecture strings in future."
8351 msgstr ""
8352
8353 #. type: textblock
8354 #: ../fish/guestfish-actions.pod:1140 ../src/guestfs-actions.pod:1780
8355 msgid "The function works on at least the following types of files:"
8356 msgstr ""
8357
8358 #. type: textblock
8359 #: ../fish/guestfish-actions.pod:1146 ../src/guestfs-actions.pod:1786
8360 msgid "many types of Un*x and Linux binary"
8361 msgstr ""
8362
8363 #. type: textblock
8364 #: ../fish/guestfish-actions.pod:1150 ../src/guestfs-actions.pod:1790
8365 msgid "many types of Un*x and Linux shared library"
8366 msgstr ""
8367
8368 #. type: textblock
8369 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1794
8370 msgid "Windows Win32 and Win64 binaries"
8371 msgstr ""
8372
8373 #. type: textblock
8374 #: ../fish/guestfish-actions.pod:1158 ../src/guestfs-actions.pod:1798
8375 msgid "Windows Win32 and Win64 DLLs"
8376 msgstr ""
8377
8378 #. type: textblock
8379 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1800
8380 msgid "Win32 binaries and DLLs return C<i386>."
8381 msgstr ""
8382
8383 #. type: textblock
8384 #: ../fish/guestfish-actions.pod:1162 ../src/guestfs-actions.pod:1802
8385 msgid "Win64 binaries and DLLs return C<x86_64>."
8386 msgstr ""
8387
8388 #. type: textblock
8389 #: ../fish/guestfish-actions.pod:1166 ../src/guestfs-actions.pod:1806
8390 msgid "Linux kernel modules"
8391 msgstr ""
8392
8393 #. type: textblock
8394 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1810
8395 msgid "Linux new-style initrd images"
8396 msgstr ""
8397
8398 #. type: textblock
8399 #: ../fish/guestfish-actions.pod:1174 ../src/guestfs-actions.pod:1814
8400 msgid "some non-x86 Linux vmlinuz kernels"
8401 msgstr ""
8402
8403 #. type: textblock
8404 #: ../fish/guestfish-actions.pod:1178 ../src/guestfs-actions.pod:1818
8405 msgid "What it can't do currently:"
8406 msgstr ""
8407
8408 #. type: textblock
8409 #: ../fish/guestfish-actions.pod:1184 ../src/guestfs-actions.pod:1824
8410 msgid "static libraries (libfoo.a)"
8411 msgstr ""
8412
8413 #. type: textblock
8414 #: ../fish/guestfish-actions.pod:1188 ../src/guestfs-actions.pod:1828
8415 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8416 msgstr ""
8417
8418 #. type: textblock
8419 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1832
8420 msgid "x86 Linux vmlinuz kernels"
8421 msgstr ""
8422
8423 #. type: textblock
8424 #: ../fish/guestfish-actions.pod:1194 ../src/guestfs-actions.pod:1834
8425 msgid ""
8426 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8427 "compressed code, and are horribly hard to unpack.  If you want to find the "
8428 "architecture of a kernel, use the architecture of the associated initrd or "
8429 "kernel module(s) instead."
8430 msgstr ""
8431
8432 #. type: =head2
8433 #: ../fish/guestfish-actions.pod:1201
8434 msgid "filesize"
8435 msgstr "filesize"
8436
8437 #. type: verbatim
8438 #: ../fish/guestfish-actions.pod:1203
8439 #, no-wrap
8440 msgid ""
8441 " filesize file\n"
8442 "\n"
8443 msgstr ""
8444 " filesize файл\n"
8445 "\n"
8446
8447 #. type: textblock
8448 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1852
8449 msgid "This command returns the size of C<file> in bytes."
8450 msgstr ""
8451
8452 #. type: textblock
8453 #: ../fish/guestfish-actions.pod:1207
8454 msgid ""
8455 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8456 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8457 msgstr ""
8458
8459 #. type: =head2
8460 #: ../fish/guestfish-actions.pod:1211
8461 msgid "fill"
8462 msgstr "fill"
8463
8464 #. type: verbatim
8465 #: ../fish/guestfish-actions.pod:1213
8466 #, no-wrap
8467 msgid ""
8468 " fill c len path\n"
8469 "\n"
8470 msgstr ""
8471
8472 #. type: textblock
8473 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1870
8474 msgid ""
8475 "This command creates a new file called C<path>.  The initial content of the "
8476 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8477 "[0..255]>."
8478 msgstr ""
8479
8480 #. type: textblock
8481 #: ../fish/guestfish-actions.pod:1219
8482 msgid ""
8483 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8484 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8485 "L</fill-pattern>."
8486 msgstr ""
8487
8488 #. type: =head2
8489 #: ../fish/guestfish-actions.pod:1224
8490 msgid "fill-pattern"
8491 msgstr "fill-pattern"
8492
8493 #. type: verbatim
8494 #: ../fish/guestfish-actions.pod:1226
8495 #, no-wrap
8496 msgid ""
8497 " fill-pattern pattern len path\n"
8498 "\n"
8499 msgstr ""
8500
8501 #. type: textblock
8502 #: ../fish/guestfish-actions.pod:1228
8503 msgid ""
8504 "This function is like L</fill> except that it creates a new file of length "
8505 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8506 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8507 "bytes."
8508 msgstr ""
8509
8510 #. type: =head2
8511 #: ../fish/guestfish-actions.pod:1233
8512 msgid "find"
8513 msgstr "find"
8514
8515 #. type: verbatim
8516 #: ../fish/guestfish-actions.pod:1235
8517 #, no-wrap
8518 msgid ""
8519 " find directory\n"
8520 "\n"
8521 msgstr ""
8522 " find каталог\n"
8523 "\n"
8524
8525 #. type: textblock
8526 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1916
8527 msgid ""
8528 "This command lists out all files and directories, recursively, starting at "
8529 "C<directory>.  It is essentially equivalent to running the shell command "
8530 "C<find directory -print> but some post-processing happens on the output, "
8531 "described below."
8532 msgstr ""
8533
8534 #. type: textblock
8535 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1921
8536 msgid ""
8537 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8538 "structure was:"
8539 msgstr ""
8540
8541 #. type: verbatim
8542 #: ../fish/guestfish-actions.pod:1245 ../src/guestfs-actions.pod:1924
8543 #, no-wrap
8544 msgid ""
8545 " /tmp/a\n"
8546 " /tmp/b\n"
8547 " /tmp/c/d\n"
8548 "\n"
8549 msgstr ""
8550
8551 #. type: textblock
8552 #: ../fish/guestfish-actions.pod:1249
8553 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8554 msgstr ""
8555
8556 #. type: verbatim
8557 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1931
8558 #, no-wrap
8559 msgid ""
8560 " a\n"
8561 " b\n"
8562 " c\n"
8563 " c/d\n"
8564 "\n"
8565 msgstr ""
8566
8567 #. type: textblock
8568 #: ../fish/guestfish-actions.pod:1257 ../src/guestfs-actions.pod:1936
8569 msgid "If C<directory> is not a directory, then this command returns an error."
8570 msgstr ""
8571
8572 #. type: textblock
8573 #: ../fish/guestfish-actions.pod:1260 ../src/guestfs-actions.pod:1939
8574 msgid "The returned list is sorted."
8575 msgstr ""
8576
8577 #. type: textblock
8578 #: ../fish/guestfish-actions.pod:1262
8579 msgid "See also L</find0>."
8580 msgstr "Див. також L</find0>."
8581
8582 #. type: =head2
8583 #: ../fish/guestfish-actions.pod:1267
8584 msgid "find0"
8585 msgstr "find0"
8586
8587 #. type: verbatim
8588 #: ../fish/guestfish-actions.pod:1269
8589 #, no-wrap
8590 msgid ""
8591 " find0 directory (files|-)\n"
8592 "\n"
8593 msgstr ""
8594 " find0 каталог (файли|-)\n"
8595 "\n"
8596
8597 #. type: textblock
8598 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1959
8599 msgid ""
8600 "This command lists out all files and directories, recursively, starting at "
8601 "C<directory>, placing the resulting list in the external file called "
8602 "C<files>."
8603 msgstr ""
8604
8605 #. type: textblock
8606 #: ../fish/guestfish-actions.pod:1275
8607 msgid ""
8608 "This command works the same way as L</find> with the following exceptions:"
8609 msgstr ""
8610
8611 #. type: textblock
8612 #: ../fish/guestfish-actions.pod:1282 ../src/guestfs-actions.pod:1970
8613 msgid "The resulting list is written to an external file."
8614 msgstr ""
8615
8616 #. type: textblock
8617 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1974
8618 msgid ""
8619 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8620 "L<find(1)> option I<-print0>."
8621 msgstr ""
8622
8623 #. type: textblock
8624 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1979
8625 msgid "This command is not limited in the number of names that it can return."
8626 msgstr ""
8627
8628 #. type: textblock
8629 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:1984
8630 msgid "The result list is not sorted."
8631 msgstr ""
8632
8633 #. type: =head2
8634 #: ../fish/guestfish-actions.pod:1302
8635 msgid "findfs-label"
8636 msgstr "findfs-label"
8637
8638 #. type: verbatim
8639 #: ../fish/guestfish-actions.pod:1304
8640 #, no-wrap
8641 msgid ""
8642 " findfs-label label\n"
8643 "\n"
8644 msgstr ""
8645 " findfs-label мітка\n"
8646 "\n"
8647
8648 #. type: textblock
8649 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:1998
8650 msgid ""
8651 "This command searches the filesystems and returns the one which has the "
8652 "given label.  An error is returned if no such filesystem can be found."
8653 msgstr ""
8654
8655 #. type: textblock
8656 #: ../fish/guestfish-actions.pod:1310
8657 msgid "To find the label of a filesystem, use L</vfs-label>."
8658 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8659
8660 #. type: =head2
8661 #: ../fish/guestfish-actions.pod:1312
8662 msgid "findfs-uuid"
8663 msgstr "findfs-uuid"
8664
8665 #. type: verbatim
8666 #: ../fish/guestfish-actions.pod:1314
8667 #, no-wrap
8668 msgid ""
8669 " findfs-uuid uuid\n"
8670 "\n"
8671 msgstr ""
8672 " findfs-uuid uuid\n"
8673 "\n"
8674
8675 #. type: textblock
8676 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:2015
8677 msgid ""
8678 "This command searches the filesystems and returns the one which has the "
8679 "given UUID.  An error is returned if no such filesystem can be found."
8680 msgstr ""
8681
8682 #. type: textblock
8683 #: ../fish/guestfish-actions.pod:1320
8684 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8685 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8686
8687 #. type: =head2
8688 #: ../fish/guestfish-actions.pod:1322
8689 msgid "fsck"
8690 msgstr "fsck"
8691
8692 #. type: verbatim
8693 #: ../fish/guestfish-actions.pod:1324
8694 #, no-wrap
8695 msgid ""
8696 " fsck fstype device\n"
8697 "\n"
8698 msgstr ""
8699 " fsck тип_файлової_системи пристрій\n"
8700 "\n"
8701
8702 #. type: textblock
8703 #: ../fish/guestfish-actions.pod:1326 ../src/guestfs-actions.pod:2033
8704 msgid ""
8705 "This runs the filesystem checker (fsck) on C<device> which should have "
8706 "filesystem type C<fstype>."
8707 msgstr ""
8708
8709 #. type: textblock
8710 #: ../fish/guestfish-actions.pod:1329 ../src/guestfs-actions.pod:2036
8711 msgid ""
8712 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8713 "codes from C<fsck>."
8714 msgstr ""
8715
8716 #. type: textblock
8717 #: ../fish/guestfish-actions.pod:1338 ../src/guestfs-actions.pod:2045
8718 msgid "Multiple status codes can be summed together."
8719 msgstr ""
8720
8721 #. type: textblock
8722 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2049
8723 msgid ""
8724 "A non-zero return code can mean \"success\", for example if errors have been "
8725 "corrected on the filesystem."
8726 msgstr ""
8727
8728 #. type: textblock
8729 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2054
8730 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8731 msgstr ""
8732
8733 #. type: textblock
8734 #: ../fish/guestfish-actions.pod:1352 ../src/guestfs-actions.pod:2059
8735 msgid ""
8736 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8737 msgstr ""
8738
8739 #. type: =head2
8740 #: ../fish/guestfish-actions.pod:1354
8741 msgid "get-append"
8742 msgstr "get-append"
8743
8744 #. type: verbatim
8745 #: ../fish/guestfish-actions.pod:1356
8746 #, no-wrap
8747 msgid ""
8748 " get-append\n"
8749 "\n"
8750 msgstr ""
8751 " get-append\n"
8752 "\n"
8753
8754 #. type: textblock
8755 #: ../fish/guestfish-actions.pod:1358 ../src/guestfs-actions.pod:2070
8756 msgid ""
8757 "Return the additional kernel options which are added to the guest kernel "
8758 "command line."
8759 msgstr ""
8760
8761 #. type: textblock
8762 #: ../fish/guestfish-actions.pod:1361 ../src/guestfs-actions.pod:2073
8763 msgid "If C<NULL> then no options are added."
8764 msgstr ""
8765
8766 #. type: =head2
8767 #: ../fish/guestfish-actions.pod:1363
8768 msgid "get-attach-method"
8769 msgstr "get-attach-method"
8770
8771 #. type: verbatim
8772 #: ../fish/guestfish-actions.pod:1365
8773 #, no-wrap
8774 msgid ""
8775 " get-attach-method\n"
8776 "\n"
8777 msgstr ""
8778 " get-attach-method\n"
8779 "\n"
8780
8781 #. type: textblock
8782 #: ../fish/guestfish-actions.pod:1367
8783 msgid "Return the current attach method.  See L</set-attach-method>."
8784 msgstr ""
8785
8786 #. type: =head2
8787 #: ../fish/guestfish-actions.pod:1369
8788 msgid "get-autosync"
8789 msgstr "get-autosync"
8790
8791 #. type: verbatim
8792 #: ../fish/guestfish-actions.pod:1371
8793 #, no-wrap
8794 msgid ""
8795 " get-autosync\n"
8796 "\n"
8797 msgstr ""
8798 " get-autosync\n"
8799 "\n"
8800
8801 #. type: textblock
8802 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2098
8803 msgid "Get the autosync flag."
8804 msgstr ""
8805
8806 #. type: =head2
8807 #: ../fish/guestfish-actions.pod:1375
8808 msgid "get-direct"
8809 msgstr "get-direct"
8810
8811 #. type: verbatim
8812 #: ../fish/guestfish-actions.pod:1377
8813 #, no-wrap
8814 msgid ""
8815 " get-direct\n"
8816 "\n"
8817 msgstr ""
8818 " get-direct\n"
8819 "\n"
8820
8821 #. type: textblock
8822 #: ../fish/guestfish-actions.pod:1379 ../src/guestfs-actions.pod:2109
8823 msgid "Return the direct appliance mode flag."
8824 msgstr ""
8825
8826 #. type: =head2
8827 #: ../fish/guestfish-actions.pod:1381
8828 msgid "get-e2label"
8829 msgstr "get-e2label"
8830
8831 #. type: verbatim
8832 #: ../fish/guestfish-actions.pod:1383
8833 #, no-wrap
8834 msgid ""
8835 " get-e2label device\n"
8836 "\n"
8837 msgstr ""
8838 " get-e2label пристрій\n"
8839 "\n"
8840
8841 #. type: textblock
8842 #: ../fish/guestfish-actions.pod:1385 ../src/guestfs-actions.pod:2128
8843 msgid ""
8844 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8845 msgstr ""
8846
8847 #. type: textblock
8848 #: ../fish/guestfish-actions.pod:1388
8849 msgid ""
8850 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8851 "instead."
8852 msgstr ""
8853
8854 #. type: =head2
8855 #: ../fish/guestfish-actions.pod:1395
8856 msgid "get-e2uuid"
8857 msgstr "get-e2uuid"
8858
8859 #. type: verbatim
8860 #: ../fish/guestfish-actions.pod:1397
8861 #, no-wrap
8862 msgid ""
8863 " get-e2uuid device\n"
8864 "\n"
8865 msgstr ""
8866 " get-e2uuid пристрій\n"
8867 "\n"
8868
8869 #. type: textblock
8870 #: ../fish/guestfish-actions.pod:1399 ../src/guestfs-actions.pod:2149
8871 msgid ""
8872 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8873 msgstr ""
8874
8875 #. type: textblock
8876 #: ../fish/guestfish-actions.pod:1402
8877 msgid ""
8878 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8879 "instead."
8880 msgstr ""
8881
8882 #. type: =head2
8883 #: ../fish/guestfish-actions.pod:1409
8884 msgid "get-memsize"
8885 msgstr "get-memsize"
8886
8887 #. type: verbatim
8888 #: ../fish/guestfish-actions.pod:1411
8889 #, no-wrap
8890 msgid ""
8891 " get-memsize\n"
8892 "\n"
8893 msgstr ""
8894 " get-memsize\n"
8895 "\n"
8896
8897 #. type: textblock
8898 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2162
8899 msgid ""
8900 "This gets the memory size in megabytes allocated to the qemu subprocess."
8901 msgstr ""
8902
8903 #. type: textblock
8904 #: ../fish/guestfish-actions.pod:1416
8905 msgid ""
8906 "If L</set-memsize> was not called on this handle, and if "
8907 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8908 "value for memsize."
8909 msgstr ""
8910
8911 #. type: textblock
8912 #: ../fish/guestfish-actions.pod:1420 ../fish/guestfish-actions.pod:1477
8913 #: ../fish/guestfish-actions.pod:4243 ../fish/guestfish-actions.pod:4345
8914 #: ../src/guestfs-actions.pod:2169 ../src/guestfs-actions.pod:2261
8915 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6581
8916 msgid ""
8917 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8918 msgstr ""
8919
8920 #. type: =head2
8921 #: ../fish/guestfish-actions.pod:1423
8922 msgid "get-network"
8923 msgstr "get-network"
8924
8925 #. type: verbatim
8926 #: ../fish/guestfish-actions.pod:1425
8927 #, no-wrap
8928 msgid ""
8929 " get-network\n"
8930 "\n"
8931 msgstr ""
8932 " get-network\n"
8933 "\n"
8934
8935 #. type: textblock
8936 #: ../fish/guestfish-actions.pod:1427 ../src/guestfs-actions.pod:2181
8937 msgid "This returns the enable network flag."
8938 msgstr ""
8939
8940 #. type: =head2
8941 #: ../fish/guestfish-actions.pod:1429
8942 msgid "get-path"
8943 msgstr "get-path"
8944
8945 #. type: verbatim
8946 #: ../fish/guestfish-actions.pod:1431
8947 #, no-wrap
8948 msgid ""
8949 " get-path\n"
8950 "\n"
8951 msgstr ""
8952 " get-path\n"
8953 "\n"
8954
8955 #. type: textblock
8956 #: ../fish/guestfish-actions.pod:1433 ../src/guestfs-actions.pod:2192
8957 msgid "Return the current search path."
8958 msgstr ""
8959
8960 #. type: textblock
8961 #: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2194
8962 msgid ""
8963 "This is always non-NULL.  If it wasn't set already, then this will return "
8964 "the default path."
8965 msgstr ""
8966
8967 #. type: =head2
8968 #: ../fish/guestfish-actions.pod:1438
8969 msgid "get-pgroup"
8970 msgstr ""
8971
8972 #. type: verbatim
8973 #: ../fish/guestfish-actions.pod:1440
8974 #, no-wrap
8975 msgid ""
8976 " get-pgroup\n"
8977 "\n"
8978 msgstr ""
8979
8980 #. type: textblock
8981 #: ../fish/guestfish-actions.pod:1442 ../src/guestfs-actions.pod:2207
8982 msgid "This returns the process group flag."
8983 msgstr ""
8984
8985 #. type: =head2
8986 #: ../fish/guestfish-actions.pod:1444
8987 msgid "get-pid"
8988 msgstr "get-pid"
8989
8990 #. type: =head2
8991 #: ../fish/guestfish-actions.pod:1446
8992 msgid "pid"
8993 msgstr "PID"
8994
8995 #. type: verbatim
8996 #: ../fish/guestfish-actions.pod:1448
8997 #, no-wrap
8998 msgid ""
8999 " get-pid\n"
9000 "\n"
9001 msgstr ""
9002 " get-pid\n"
9003 "\n"
9004
9005 #. type: textblock
9006 #: ../fish/guestfish-actions.pod:1450 ../src/guestfs-actions.pod:2218
9007 msgid ""
9008 "Return the process ID of the qemu subprocess.  If there is no qemu "
9009 "subprocess, then this will return an error."
9010 msgstr ""
9011
9012 #. type: textblock
9013 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2221
9014 msgid "This is an internal call used for debugging and testing."
9015 msgstr ""
9016
9017 #. type: =head2
9018 #: ../fish/guestfish-actions.pod:1455
9019 msgid "get-qemu"
9020 msgstr "get-qemu"
9021
9022 #. type: verbatim
9023 #: ../fish/guestfish-actions.pod:1457
9024 #, no-wrap
9025 msgid ""
9026 " get-qemu\n"
9027 "\n"
9028 msgstr ""
9029 " get-qemu\n"
9030 "\n"
9031
9032 #. type: textblock
9033 #: ../fish/guestfish-actions.pod:1459 ../src/guestfs-actions.pod:2232
9034 msgid "Return the current qemu binary."
9035 msgstr ""
9036
9037 #. type: textblock
9038 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2234
9039 msgid ""
9040 "This is always non-NULL.  If it wasn't set already, then this will return "
9041 "the default qemu binary name."
9042 msgstr ""
9043
9044 #. type: =head2
9045 #: ../fish/guestfish-actions.pod:1464
9046 msgid "get-recovery-proc"
9047 msgstr "get-recovery-proc"
9048
9049 #. type: verbatim
9050 #: ../fish/guestfish-actions.pod:1466
9051 #, no-wrap
9052 msgid ""
9053 " get-recovery-proc\n"
9054 "\n"
9055 msgstr ""
9056 " get-recovery-proc\n"
9057 "\n"
9058
9059 #. type: textblock
9060 #: ../fish/guestfish-actions.pod:1468 ../src/guestfs-actions.pod:2247
9061 msgid "Return the recovery process enabled flag."
9062 msgstr ""
9063
9064 #. type: =head2
9065 #: ../fish/guestfish-actions.pod:1470
9066 msgid "get-selinux"
9067 msgstr "get-selinux"
9068
9069 #. type: verbatim
9070 #: ../fish/guestfish-actions.pod:1472
9071 #, no-wrap
9072 msgid ""
9073 " get-selinux\n"
9074 "\n"
9075 msgstr ""
9076 " get-selinux\n"
9077 "\n"
9078
9079 #. type: textblock
9080 #: ../fish/guestfish-actions.pod:1474
9081 msgid ""
9082 "This returns the current setting of the selinux flag which is passed to the "
9083 "appliance at boot time.  See L</set-selinux>."
9084 msgstr ""
9085
9086 #. type: =head2
9087 #: ../fish/guestfish-actions.pod:1480
9088 msgid "get-smp"
9089 msgstr ""
9090
9091 #. type: verbatim
9092 #: ../fish/guestfish-actions.pod:1482
9093 #, no-wrap
9094 msgid ""
9095 " get-smp\n"
9096 "\n"
9097 msgstr ""
9098
9099 #. type: textblock
9100 #: ../fish/guestfish-actions.pod:1484 ../src/guestfs-actions.pod:2273
9101 msgid "This returns the number of virtual CPUs assigned to the appliance."
9102 msgstr ""
9103
9104 #. type: =head2
9105 #: ../fish/guestfish-actions.pod:1486
9106 msgid "get-state"
9107 msgstr "get-state"
9108
9109 #. type: verbatim
9110 #: ../fish/guestfish-actions.pod:1488
9111 #, no-wrap
9112 msgid ""
9113 " get-state\n"
9114 "\n"
9115 msgstr ""
9116 " get-state\n"
9117 "\n"
9118
9119 #. type: textblock
9120 #: ../fish/guestfish-actions.pod:1490 ../src/guestfs-actions.pod:2284
9121 msgid ""
9122 "This returns the current state as an opaque integer.  This is only useful "
9123 "for printing debug and internal error messages."
9124 msgstr ""
9125
9126 #. type: textblock
9127 #: ../fish/guestfish-actions.pod:1493 ../fish/guestfish-actions.pod:2452
9128 #: ../fish/guestfish-actions.pod:2470 ../fish/guestfish-actions.pod:2508
9129 #: ../fish/guestfish-actions.pod:2524 ../src/guestfs-actions.pod:2287
9130 #: ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:3635
9131 #: ../src/guestfs-actions.pod:3696 ../src/guestfs-actions.pod:3723
9132 msgid "For more information on states, see L<guestfs(3)>."
9133 msgstr ""
9134
9135 #. type: =head2
9136 #: ../fish/guestfish-actions.pod:1495
9137 msgid "get-trace"
9138 msgstr "get-trace"
9139
9140 #. type: verbatim
9141 #: ../fish/guestfish-actions.pod:1497
9142 #, no-wrap
9143 msgid ""
9144 " get-trace\n"
9145 "\n"
9146 msgstr ""
9147 " get-trace\n"
9148 "\n"
9149
9150 #. type: textblock
9151 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2298
9152 msgid "Return the command trace flag."
9153 msgstr ""
9154
9155 #. type: =head2
9156 #: ../fish/guestfish-actions.pod:1501
9157 msgid "get-umask"
9158 msgstr "get-umask"
9159
9160 #. type: verbatim
9161 #: ../fish/guestfish-actions.pod:1503
9162 #, no-wrap
9163 msgid ""
9164 " get-umask\n"
9165 "\n"
9166 msgstr ""
9167 " get-umask\n"
9168 "\n"
9169
9170 #. type: textblock
9171 #: ../fish/guestfish-actions.pod:1505
9172 msgid ""
9173 "Return the current umask.  By default the umask is C<022> unless it has been "
9174 "set by calling L</umask>."
9175 msgstr ""
9176
9177 #. type: =head2
9178 #: ../fish/guestfish-actions.pod:1508
9179 msgid "get-verbose"
9180 msgstr "get-verbose"
9181
9182 #. type: verbatim
9183 #: ../fish/guestfish-actions.pod:1510
9184 #, no-wrap
9185 msgid ""
9186 " get-verbose\n"
9187 "\n"
9188 msgstr ""
9189 " get-verbose\n"
9190 "\n"
9191
9192 #. type: textblock
9193 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2321
9194 msgid "This returns the verbose messages flag."
9195 msgstr ""
9196
9197 #. type: =head2
9198 #: ../fish/guestfish-actions.pod:1514
9199 msgid "getcon"
9200 msgstr "getcon"
9201
9202 #. type: verbatim
9203 #: ../fish/guestfish-actions.pod:1516
9204 #, no-wrap
9205 msgid ""
9206 " getcon\n"
9207 "\n"
9208 msgstr ""
9209 " getcon\n"
9210 "\n"
9211
9212 #. type: textblock
9213 #: ../fish/guestfish-actions.pod:1518 ../src/guestfs-actions.pod:2332
9214 msgid "This gets the SELinux security context of the daemon."
9215 msgstr ""
9216
9217 #. type: textblock
9218 #: ../fish/guestfish-actions.pod:1520
9219 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9220 msgstr ""
9221
9222 #. type: =head2
9223 #: ../fish/guestfish-actions.pod:1523
9224 msgid "getxattr"
9225 msgstr "getxattr"
9226
9227 #. type: verbatim
9228 #: ../fish/guestfish-actions.pod:1525
9229 #, no-wrap
9230 msgid ""
9231 " getxattr path name\n"
9232 "\n"
9233 msgstr ""
9234 " getxattr шлях назва\n"
9235 "\n"
9236
9237 #. type: textblock
9238 #: ../fish/guestfish-actions.pod:1527
9239 msgid ""
9240 "Get a single extended attribute from file C<path> named C<name>.  This call "
9241 "follows symlinks.  If you want to lookup an extended attribute for the "
9242 "symlink itself, use L</lgetxattr>."
9243 msgstr ""
9244
9245 #. type: textblock
9246 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:2597
9247 msgid ""
9248 "Normally it is better to get all extended attributes from a file in one go "
9249 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9250 "buggy and do not provide a way to list out attributes.  For these "
9251 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9252 "attributes you want in advance and call this function."
9253 msgstr ""
9254
9255 #. type: textblock
9256 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:2604
9257 #: ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:3856
9258 msgid ""
9259 "Extended attribute values are blobs of binary data.  If there is no extended "
9260 "attribute named C<name>, this returns an error."
9261 msgstr ""
9262
9263 #. type: textblock
9264 #: ../fish/guestfish-actions.pod:1541
9265 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9266 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9267
9268 #. type: =head2
9269 #: ../fish/guestfish-actions.pod:1543
9270 msgid "getxattrs"
9271 msgstr "getxattrs"
9272
9273 #. type: verbatim
9274 #: ../fish/guestfish-actions.pod:1545
9275 #, no-wrap
9276 msgid ""
9277 " getxattrs path\n"
9278 "\n"
9279 msgstr ""
9280 " getxattrs шлях\n"
9281 "\n"
9282
9283 #. type: textblock
9284 #: ../fish/guestfish-actions.pod:1547 ../src/guestfs-actions.pod:2378
9285 msgid ""
9286 "This call lists the extended attributes of the file or directory C<path>."
9287 msgstr ""
9288
9289 #. type: textblock
9290 #: ../fish/guestfish-actions.pod:1550 ../src/guestfs-actions.pod:2381
9291 msgid ""
9292 "At the system call level, this is a combination of the L<listxattr(2)> and "
9293 "L<getxattr(2)> calls."
9294 msgstr ""
9295
9296 #. type: textblock
9297 #: ../fish/guestfish-actions.pod:1553
9298 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9299 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9300
9301 #. type: =head2
9302 #: ../fish/guestfish-actions.pod:1555
9303 msgid "glob-expand"
9304 msgstr "glob-expand"
9305
9306 #. type: verbatim
9307 #: ../fish/guestfish-actions.pod:1557
9308 #, no-wrap
9309 msgid ""
9310 " glob-expand pattern\n"
9311 "\n"
9312 msgstr ""
9313 " glob-expand шаблон\n"
9314 "\n"
9315
9316 #. type: textblock
9317 #: ../fish/guestfish-actions.pod:1559 ../src/guestfs-actions.pod:2398
9318 msgid ""
9319 "This command searches for all the pathnames matching C<pattern> according to "
9320 "the wildcard expansion rules used by the shell."
9321 msgstr ""
9322
9323 #. type: textblock
9324 #: ../fish/guestfish-actions.pod:1563 ../src/guestfs-actions.pod:2402
9325 msgid ""
9326 "If no paths match, then this returns an empty list (note: not an error)."
9327 msgstr ""
9328
9329 #. type: textblock
9330 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2405
9331 msgid ""
9332 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9333 "GLOB_BRACE>.  See that manual page for more details."
9334 msgstr ""
9335
9336 #. type: =head2
9337 #: ../fish/guestfish-actions.pod:1570
9338 msgid "grep"
9339 msgstr "grep"
9340
9341 #. type: verbatim
9342 #: ../fish/guestfish-actions.pod:1572
9343 #, no-wrap
9344 msgid ""
9345 " grep regex path\n"
9346 "\n"
9347 msgstr ""
9348 " grepi формальний_вираз шлях\n"
9349 "\n"
9350
9351 #. type: textblock
9352 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2422
9353 msgid "This calls the external C<grep> program and returns the matching lines."
9354 msgstr ""
9355
9356 #. type: =head2
9357 #: ../fish/guestfish-actions.pod:1580
9358 msgid "grepi"
9359 msgstr "grepi"
9360
9361 #. type: verbatim
9362 #: ../fish/guestfish-actions.pod:1582
9363 #, no-wrap
9364 msgid ""
9365 " grepi regex path\n"
9366 "\n"
9367 msgstr ""
9368 " grepi формальний_вираз шлях\n"
9369 "\n"
9370
9371 #. type: textblock
9372 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2441
9373 msgid ""
9374 "This calls the external C<grep -i> program and returns the matching lines."
9375 msgstr ""
9376
9377 #. type: =head2
9378 #: ../fish/guestfish-actions.pod:1590
9379 msgid "grub-install"
9380 msgstr "grub-install"
9381
9382 #. type: verbatim
9383 #: ../fish/guestfish-actions.pod:1592
9384 #, no-wrap
9385 msgid ""
9386 " grub-install root device\n"
9387 "\n"
9388 msgstr ""
9389 " grub-install кореневий пристрій\n"
9390 "\n"
9391
9392 #. type: textblock
9393 #: ../fish/guestfish-actions.pod:1594 ../src/guestfs-actions.pod:2460
9394 msgid ""
9395 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9396 "with the root directory being C<root>."
9397 msgstr ""
9398
9399 #. type: textblock
9400 #: ../fish/guestfish-actions.pod:1603 ../src/guestfs-actions.pod:2469
9401 msgid ""
9402 "There is currently no way in the API to install grub2, which is used by most "
9403 "modern Linux guests.  It is possible to run the grub2 command from the "
9404 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9405 msgstr ""
9406
9407 #. type: textblock
9408 #: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2476
9409 msgid ""
9410 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9411 "compatible with itself, so this only works in rather narrow circumstances.  "
9412 "Careful testing with each guest version is advisable."
9413 msgstr ""
9414
9415 #. type: textblock
9416 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2483
9417 msgid ""
9418 "If grub-install reports the error \"No suitable drive was found in the "
9419 "generated device map.\" it may be that you need to create a C</boot/grub/"
9420 "device.map> file first that contains the mapping between grub device names "
9421 "and Linux device names.  It is usually sufficient to create a file "
9422 "containing:"
9423 msgstr ""
9424
9425 #. type: verbatim
9426 #: ../fish/guestfish-actions.pod:1624 ../src/guestfs-actions.pod:2490
9427 #, no-wrap
9428 msgid ""
9429 " (hd0) /dev/vda\n"
9430 "\n"
9431 msgstr ""
9432
9433 #. type: textblock
9434 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2492
9435 msgid "replacing C</dev/vda> with the name of the installation device."
9436 msgstr ""
9437
9438 #. type: =head2
9439 #: ../fish/guestfish-actions.pod:1630
9440 msgid "head"
9441 msgstr "head"
9442
9443 #. type: verbatim
9444 #: ../fish/guestfish-actions.pod:1632
9445 #, no-wrap
9446 msgid ""
9447 " head path\n"
9448 "\n"
9449 msgstr ""
9450 " head шлях\n"
9451 "\n"
9452
9453 #. type: textblock
9454 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2506
9455 msgid ""
9456 "This command returns up to the first 10 lines of a file as a list of strings."
9457 msgstr ""
9458
9459 #. type: =head2
9460 #: ../fish/guestfish-actions.pod:1640
9461 msgid "head-n"
9462 msgstr "head-n"
9463
9464 #. type: verbatim
9465 #: ../fish/guestfish-actions.pod:1642
9466 #, no-wrap
9467 msgid ""
9468 " head-n nrlines path\n"
9469 "\n"
9470 msgstr ""
9471
9472 #. type: textblock
9473 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2525
9474 msgid ""
9475 "If the parameter C<nrlines> is a positive number, this returns the first "
9476 "C<nrlines> lines of the file C<path>."
9477 msgstr ""
9478
9479 #. type: textblock
9480 #: ../fish/guestfish-actions.pod:1647 ../src/guestfs-actions.pod:2528
9481 msgid ""
9482 "If the parameter C<nrlines> is a negative number, this returns lines from "
9483 "the file C<path>, excluding the last C<nrlines> lines."
9484 msgstr ""
9485
9486 #. type: textblock
9487 #: ../fish/guestfish-actions.pod:1650 ../fish/guestfish-actions.pod:4735
9488 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:7169
9489 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9490 msgstr ""
9491
9492 #. type: =head2
9493 #: ../fish/guestfish-actions.pod:1655
9494 msgid "hexdump"
9495 msgstr "hexdump"
9496
9497 #. type: verbatim
9498 #: ../fish/guestfish-actions.pod:1657
9499 #, no-wrap
9500 msgid ""
9501 " hexdump path\n"
9502 "\n"
9503 msgstr ""
9504 " hexdump шлях\n"
9505 "\n"
9506
9507 #. type: textblock
9508 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2548
9509 msgid ""
9510 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9511 "readable, canonical hex dump of the file."
9512 msgstr ""
9513
9514 #. type: =head2
9515 #: ../fish/guestfish-actions.pod:1665
9516 msgid "initrd-cat"
9517 msgstr "initrd-cat"
9518
9519 #. type: verbatim
9520 #: ../fish/guestfish-actions.pod:1667
9521 #, no-wrap
9522 msgid ""
9523 " initrd-cat initrdpath filename\n"
9524 "\n"
9525 msgstr ""
9526 " initrd-cat шлях_initrd назва_файла\n"
9527 "\n"
9528
9529 #. type: textblock
9530 #: ../fish/guestfish-actions.pod:1669 ../src/guestfs-actions.pod:2567
9531 msgid ""
9532 "This command unpacks the file C<filename> from the initrd file called "
9533 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9534 "character."
9535 msgstr ""
9536
9537 #. type: textblock
9538 #: ../fish/guestfish-actions.pod:1673 ../src/guestfs-actions.pod:2571
9539 msgid ""
9540 "For example, in guestfish you could use the following command to examine the "
9541 "boot script (usually called C</init>)  contained in a Linux initrd or "
9542 "initramfs image:"
9543 msgstr ""
9544
9545 #. type: verbatim
9546 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2575
9547 #, no-wrap
9548 msgid ""
9549 " initrd-cat /boot/initrd-<version>.img init\n"
9550 "\n"
9551 msgstr ""
9552
9553 #. type: textblock
9554 #: ../fish/guestfish-actions.pod:1679
9555 msgid "See also L</initrd-list>."
9556 msgstr "Див. також L</initrd-list>."
9557
9558 #. type: =head2
9559 #: ../fish/guestfish-actions.pod:1684
9560 msgid "initrd-list"
9561 msgstr "initrd-list"
9562
9563 #. type: verbatim
9564 #: ../fish/guestfish-actions.pod:1686
9565 #, no-wrap
9566 msgid ""
9567 " initrd-list path\n"
9568 "\n"
9569 msgstr ""
9570 " initrd-list шлях\n"
9571 "\n"
9572
9573 #. type: textblock
9574 #: ../fish/guestfish-actions.pod:1688 ../src/guestfs-actions.pod:2594
9575 msgid "This command lists out files contained in an initrd."
9576 msgstr ""
9577
9578 #. type: textblock
9579 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2596
9580 msgid ""
9581 "The files are listed without any initial C</> character.  The files are "
9582 "listed in the order they appear (not necessarily alphabetical).  Directory "
9583 "names are listed as separate items."
9584 msgstr ""
9585
9586 #. type: textblock
9587 #: ../fish/guestfish-actions.pod:1694 ../src/guestfs-actions.pod:2600
9588 msgid ""
9589 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9590 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9591 "files)."
9592 msgstr ""
9593
9594 #. type: =head2
9595 #: ../fish/guestfish-actions.pod:1698
9596 msgid "inotify-add-watch"
9597 msgstr "inotify-add-watch"
9598
9599 #. type: verbatim
9600 #: ../fish/guestfish-actions.pod:1700
9601 #, no-wrap
9602 msgid ""
9603 " inotify-add-watch path mask\n"
9604 "\n"
9605 msgstr ""
9606 " inotify-add-watch шлях маска\n"
9607 "\n"
9608
9609 #. type: textblock
9610 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2617
9611 msgid "Watch C<path> for the events listed in C<mask>."
9612 msgstr ""
9613
9614 #. type: textblock
9615 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2619
9616 msgid ""
9617 "Note that if C<path> is a directory then events within that directory are "
9618 "watched, but this does I<not> happen recursively (in subdirectories)."
9619 msgstr ""
9620
9621 #. type: textblock
9622 #: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2623
9623 msgid ""
9624 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9625 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9626 msgstr ""
9627
9628 #. type: =head2
9629 #: ../fish/guestfish-actions.pod:1712
9630 msgid "inotify-close"
9631 msgstr "inotify-close"
9632
9633 #. type: verbatim
9634 #: ../fish/guestfish-actions.pod:1714
9635 #, no-wrap
9636 msgid ""
9637 " inotify-close\n"
9638 "\n"
9639 msgstr ""
9640 " inotify-close\n"
9641 "\n"
9642
9643 #. type: textblock
9644 #: ../fish/guestfish-actions.pod:1716 ../src/guestfs-actions.pod:2636
9645 msgid ""
9646 "This closes the inotify handle which was previously opened by inotify_init.  "
9647 "It removes all watches, throws away any pending events, and deallocates all "
9648 "resources."
9649 msgstr ""
9650
9651 #. type: =head2
9652 #: ../fish/guestfish-actions.pod:1720
9653 msgid "inotify-files"
9654 msgstr "inotify-files"
9655
9656 #. type: verbatim
9657 #: ../fish/guestfish-actions.pod:1722
9658 #, no-wrap
9659 msgid ""
9660 " inotify-files\n"
9661 "\n"
9662 msgstr ""
9663 " inotify-files\n"
9664 "\n"
9665
9666 #. type: textblock
9667 #: ../fish/guestfish-actions.pod:1724
9668 msgid ""
9669 "This function is a helpful wrapper around L</inotify-read> which just "
9670 "returns a list of pathnames of objects that were touched.  The returned "
9671 "pathnames are sorted and deduplicated."
9672 msgstr ""
9673
9674 #. type: =head2
9675 #: ../fish/guestfish-actions.pod:1728
9676 msgid "inotify-init"
9677 msgstr "inotify-init"
9678
9679 #. type: verbatim
9680 #: ../fish/guestfish-actions.pod:1730
9681 #, no-wrap
9682 msgid ""
9683 " inotify-init maxevents\n"
9684 "\n"
9685 msgstr ""
9686
9687 #. type: textblock
9688 #: ../fish/guestfish-actions.pod:1732 ../src/guestfs-actions.pod:2665
9689 msgid ""
9690 "This command creates a new inotify handle.  The inotify subsystem can be "
9691 "used to notify events which happen to objects in the guest filesystem."
9692 msgstr ""
9693
9694 #. type: textblock
9695 #: ../fish/guestfish-actions.pod:1736
9696 msgid ""
9697 "C<maxevents> is the maximum number of events which will be queued up between "
9698 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9699 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9700 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9701 "but records the fact that it threw them away by setting a flag "
9702 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9703 msgstr ""
9704
9705 #. type: textblock
9706 #: ../fish/guestfish-actions.pod:1746
9707 msgid ""
9708 "Before any events are generated, you have to add some watches to the "
9709 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9710 "L</inotify-watch-all>."
9711 msgstr ""
9712
9713 #. type: textblock
9714 #: ../fish/guestfish-actions.pod:1752
9715 msgid ""
9716 "Queued up events should be read periodically by calling L</inotify-read> (or "
9717 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9718 "If you don't read the events out often enough then you risk the internal "
9719 "queue overflowing."
9720 msgstr ""
9721
9722 #. type: textblock
9723 #: ../fish/guestfish-actions.pod:1759
9724 msgid ""
9725 "The handle should be closed after use by calling L</inotify-close>.  This "
9726 "also removes any watches automatically."
9727 msgstr ""
9728
9729 #. type: textblock
9730 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2696
9731 msgid ""
9732 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9733 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9734 "that there is one global inotify handle per libguestfs instance."
9735 msgstr ""
9736
9737 #. type: =head2
9738 #: ../fish/guestfish-actions.pod:1768
9739 msgid "inotify-read"
9740 msgstr "inotify-read"
9741
9742 #. type: verbatim
9743 #: ../fish/guestfish-actions.pod:1770
9744 #, no-wrap
9745 msgid ""
9746 " inotify-read\n"
9747 "\n"
9748 msgstr ""
9749 " inotify-read\n"
9750 "\n"
9751
9752 #. type: textblock
9753 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2710
9754 msgid ""
9755 "Return the complete queue of events that have happened since the previous "
9756 "read call."
9757 msgstr ""
9758
9759 #. type: textblock
9760 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2713
9761 msgid "If no events have happened, this returns an empty list."
9762 msgstr ""
9763
9764 #. type: textblock
9765 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2715
9766 msgid ""
9767 "I<Note>: In order to make sure that all events have been read, you must call "
9768 "this function repeatedly until it returns an empty list.  The reason is that "
9769 "the call will read events up to the maximum appliance-to-host message size "
9770 "and leave remaining events in the queue."
9771 msgstr ""
9772
9773 #. type: =head2
9774 #: ../fish/guestfish-actions.pod:1783
9775 msgid "inotify-rm-watch"
9776 msgstr "inotify-rm-watch"
9777
9778 #. type: verbatim
9779 #: ../fish/guestfish-actions.pod:1785
9780 #, no-wrap
9781 msgid ""
9782 " inotify-rm-watch wd\n"
9783 "\n"
9784 msgstr ""
9785
9786 #. type: textblock
9787 #: ../fish/guestfish-actions.pod:1787
9788 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9789 msgstr ""
9790
9791 #. type: =head2
9792 #: ../fish/guestfish-actions.pod:1790
9793 msgid "inspect-get-arch"
9794 msgstr "inspect-get-arch"
9795
9796 #. type: verbatim
9797 #: ../fish/guestfish-actions.pod:1792
9798 #, no-wrap
9799 msgid ""
9800 " inspect-get-arch root\n"
9801 "\n"
9802 msgstr ""
9803 " inspect-get-arch корінь\n"
9804 "\n"
9805
9806 #. type: textblock
9807 #: ../fish/guestfish-actions.pod:1794
9808 msgid ""
9809 "This returns the architecture of the inspected operating system.  The "
9810 "possible return values are listed under L</file-architecture>."
9811 msgstr ""
9812
9813 #. type: textblock
9814 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2750
9815 msgid ""
9816 "If the architecture could not be determined, then the string C<unknown> is "
9817 "returned."
9818 msgstr ""
9819
9820 #. type: textblock
9821 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1896
9822 #: ../fish/guestfish-actions.pod:1975 ../fish/guestfish-actions.pod:1987
9823 #: ../fish/guestfish-actions.pod:2071 ../fish/guestfish-actions.pod:2133
9824 #: ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2168
9825 #: ../fish/guestfish-actions.pod:2208 ../fish/guestfish-actions.pod:2244
9826 #: ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2270
9827 #: ../fish/guestfish-actions.pod:2280 ../fish/guestfish-actions.pod:2290
9828 #: ../fish/guestfish-actions.pod:2302 ../fish/guestfish-actions.pod:2398
9829 #: ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:2753
9830 #: ../src/guestfs-actions.pod:2855 ../src/guestfs-actions.pod:2959
9831 #: ../src/guestfs-actions.pod:2978 ../src/guestfs-actions.pod:3109
9832 #: ../src/guestfs-actions.pod:3193 ../src/guestfs-actions.pod:3221
9833 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3295
9834 #: ../src/guestfs-actions.pod:3339 ../src/guestfs-actions.pod:3359
9835 #: ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3396
9836 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3430
9837 #: ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3573
9838 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9839 msgstr ""
9840
9841 #. type: =head2
9842 #: ../fish/guestfish-actions.pod:1803
9843 msgid "inspect-get-distro"
9844 msgstr "inspect-get-distro"
9845
9846 #. type: verbatim
9847 #: ../fish/guestfish-actions.pod:1805
9848 #, no-wrap
9849 msgid ""
9850 " inspect-get-distro root\n"
9851 "\n"
9852 msgstr ""
9853 " inspect-get-distro корінь\n"
9854 "\n"
9855
9856 #. type: textblock
9857 #: ../fish/guestfish-actions.pod:1807 ../src/guestfs-actions.pod:2766
9858 msgid ""
9859 "This returns the distro (distribution) of the inspected operating system."
9860 msgstr ""
9861
9862 #. type: textblock
9863 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2769
9864 msgid "Currently defined distros are:"
9865 msgstr ""
9866
9867 #. type: =item
9868 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2773
9869 msgid "\"archlinux\""
9870 msgstr "\"archlinux\""
9871
9872 #. type: textblock
9873 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2775
9874 msgid "Arch Linux."
9875 msgstr "Arch Linux."
9876
9877 #. type: =item
9878 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2777
9879 msgid "\"centos\""
9880 msgstr ""
9881
9882 #. type: textblock
9883 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2779
9884 msgid "CentOS."
9885 msgstr ""
9886
9887 #. type: =item
9888 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2781
9889 msgid "\"debian\""
9890 msgstr "\"debian\""
9891
9892 #. type: textblock
9893 #: ../fish/guestfish-actions.pod:1824 ../src/guestfs-actions.pod:2783
9894 msgid "Debian."
9895 msgstr "Debian."
9896
9897 #. type: =item
9898 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2785
9899 msgid "\"fedora\""
9900 msgstr "\"fedora\""
9901
9902 #. type: textblock
9903 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2787
9904 msgid "Fedora."
9905 msgstr "Fedora."
9906
9907 #. type: =item
9908 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2789
9909 msgid "\"gentoo\""
9910 msgstr "\"gentoo\""
9911
9912 #. type: textblock
9913 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2791
9914 msgid "Gentoo."
9915 msgstr "Gentoo."
9916
9917 #. type: =item
9918 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2793
9919 msgid "\"linuxmint\""
9920 msgstr "\"linuxmint\""
9921
9922 #. type: textblock
9923 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2795
9924 msgid "Linux Mint."
9925 msgstr "Linux Mint."
9926
9927 #. type: =item
9928 #: ../fish/guestfish-actions.pod:1838 ../src/guestfs-actions.pod:2797
9929 msgid "\"mageia\""
9930 msgstr ""
9931
9932 #. type: textblock
9933 #: ../fish/guestfish-actions.pod:1840 ../src/guestfs-actions.pod:2799
9934 msgid "Mageia."
9935 msgstr ""
9936
9937 #. type: =item
9938 #: ../fish/guestfish-actions.pod:1842 ../src/guestfs-actions.pod:2801
9939 msgid "\"mandriva\""
9940 msgstr "\"mandriva\""
9941
9942 #. type: textblock
9943 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2803
9944 msgid "Mandriva."
9945 msgstr "Mandriva."
9946
9947 #. type: =item
9948 #: ../fish/guestfish-actions.pod:1846 ../src/guestfs-actions.pod:2805
9949 msgid "\"meego\""
9950 msgstr "\"meego\""
9951
9952 #. type: textblock
9953 #: ../fish/guestfish-actions.pod:1848 ../src/guestfs-actions.pod:2807
9954 msgid "MeeGo."
9955 msgstr "MeeGo."
9956
9957 #. type: =item
9958 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2809
9959 msgid "\"opensuse\""
9960 msgstr ""
9961
9962 #. type: textblock
9963 #: ../fish/guestfish-actions.pod:1852 ../src/guestfs-actions.pod:2811
9964 msgid "OpenSUSE."
9965 msgstr ""
9966
9967 #. type: =item
9968 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2813
9969 msgid "\"pardus\""
9970 msgstr "\"pardus\""
9971
9972 #. type: textblock
9973 #: ../fish/guestfish-actions.pod:1856 ../src/guestfs-actions.pod:2815
9974 msgid "Pardus."
9975 msgstr "Pardus."
9976
9977 #. type: =item
9978 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2817
9979 msgid "\"redhat-based\""
9980 msgstr "\"redhat-based\""
9981
9982 #. type: textblock
9983 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2819
9984 msgid "Some Red Hat-derived distro."
9985 msgstr "Дистрибутив, що походить від Red Hat."
9986
9987 #. type: =item
9988 #: ../fish/guestfish-actions.pod:1862 ../src/guestfs-actions.pod:2821
9989 msgid "\"rhel\""
9990 msgstr "\"rhel\""
9991
9992 #. type: textblock
9993 #: ../fish/guestfish-actions.pod:1864 ../src/guestfs-actions.pod:2823
9994 msgid "Red Hat Enterprise Linux."
9995 msgstr "Red Hat Enterprise Linux."
9996
9997 #. type: =item
9998 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2825
9999 msgid "\"scientificlinux\""
10000 msgstr "\"scientificlinux\""
10001
10002 #. type: textblock
10003 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2827
10004 msgid "Scientific Linux."
10005 msgstr "Scientific Linux."
10006
10007 #. type: =item
10008 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2829
10009 msgid "\"slackware\""
10010 msgstr "\"slackware\""
10011
10012 #. type: textblock
10013 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2831
10014 msgid "Slackware."
10015 msgstr "Slackware."
10016
10017 #. type: =item
10018 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2833
10019 msgid "\"ttylinux\""
10020 msgstr ""
10021
10022 #. type: textblock
10023 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2835
10024 msgid "ttylinux."
10025 msgstr ""
10026
10027 #. type: =item
10028 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2837
10029 msgid "\"ubuntu\""
10030 msgstr "\"ubuntu\""
10031
10032 #. type: textblock
10033 #: ../fish/guestfish-actions.pod:1880 ../src/guestfs-actions.pod:2839
10034 msgid "Ubuntu."
10035 msgstr "Ubuntu."
10036
10037 #. type: =item
10038 #: ../fish/guestfish-actions.pod:1882 ../fish/guestfish-actions.pod:1966
10039 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:2841
10040 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3330
10041 msgid "\"unknown\""
10042 msgstr "\"unknown\""
10043
10044 #. type: textblock
10045 #: ../fish/guestfish-actions.pod:1884 ../src/guestfs-actions.pod:2843
10046 msgid "The distro could not be determined."
10047 msgstr "Дистрибутив, тип якого не вдалося визначити."
10048
10049 #. type: =item
10050 #: ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:2223
10051 #: ../src/guestfs-actions.pod:2845 ../src/guestfs-actions.pod:3318
10052 msgid "\"windows\""
10053 msgstr "\"windows\""
10054
10055 #. type: textblock
10056 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2847
10057 msgid ""
10058 "Windows does not have distributions.  This string is returned if the OS type "
10059 "is Windows."
10060 msgstr ""
10061
10062 #. type: textblock
10063 #: ../fish/guestfish-actions.pod:1893 ../fish/guestfish-actions.pod:1972
10064 #: ../fish/guestfish-actions.pod:2241 ../src/guestfs-actions.pod:2852
10065 #: ../src/guestfs-actions.pod:2956 ../src/guestfs-actions.pod:3336
10066 msgid ""
10067 "Future versions of libguestfs may return other strings here.  The caller "
10068 "should be prepared to handle any string."
10069 msgstr ""
10070
10071 #. type: =head2
10072 #: ../fish/guestfish-actions.pod:1898
10073 msgid "inspect-get-drive-mappings"
10074 msgstr ""
10075
10076 #. type: verbatim
10077 #: ../fish/guestfish-actions.pod:1900
10078 #, no-wrap
10079 msgid ""
10080 " inspect-get-drive-mappings root\n"
10081 "\n"
10082 msgstr ""
10083
10084 #. type: textblock
10085 #: ../fish/guestfish-actions.pod:1902 ../src/guestfs-actions.pod:2868
10086 msgid ""
10087 "This call is useful for Windows which uses a primitive system of assigning "
10088 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10089 "Windows Registry to find out how disks/partitions are mapped to drive "
10090 "letters, and returns a hash table as in the example below:"
10091 msgstr ""
10092
10093 #. type: verbatim
10094 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2874
10095 #, no-wrap
10096 msgid ""
10097 " C      =>     /dev/vda2\n"
10098 " E      =>     /dev/vdb1\n"
10099 " F      =>     /dev/vdc1\n"
10100 "\n"
10101 msgstr ""
10102
10103 #. type: textblock
10104 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2878
10105 msgid ""
10106 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10107 "and just contains the drive letter, without the customary colon separator "
10108 "character."
10109 msgstr ""
10110
10111 #. type: textblock
10112 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:2882
10113 msgid ""
10114 "In future we may support other operating systems that also used drive "
10115 "letters, but the keys for those might not be case insensitive and might be "
10116 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10117 "C<h1> etc."
10118 msgstr ""
10119
10120 #. type: textblock
10121 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2887
10122 msgid ""
10123 "For Windows guests, currently only hard drive mappings are returned.  "
10124 "Removable disks (eg. DVD-ROMs) are ignored."
10125 msgstr ""
10126
10127 #. type: textblock
10128 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2890
10129 msgid ""
10130 "For guests that do not use drive mappings, or if the drive mappings could "
10131 "not be determined, this returns an empty hash table."
10132 msgstr ""
10133
10134 #. type: textblock
10135 #: ../fish/guestfish-actions.pod:1927
10136 msgid ""
10137 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10138 "get-mountpoints>, L</inspect-get-filesystems>."
10139 msgstr ""
10140
10141 #. type: =head2
10142 #: ../fish/guestfish-actions.pod:1931
10143 msgid "inspect-get-filesystems"
10144 msgstr "inspect-get-filesystems"
10145
10146 #. type: verbatim
10147 #: ../fish/guestfish-actions.pod:1933
10148 #, no-wrap
10149 msgid ""
10150 " inspect-get-filesystems root\n"
10151 "\n"
10152 msgstr ""
10153 " inspect-get-filesystems корінь\n"
10154 "\n"
10155
10156 #. type: textblock
10157 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2911
10158 msgid ""
10159 "This returns a list of all the filesystems that we think are associated with "
10160 "this operating system.  This includes the root filesystem, other ordinary "
10161 "filesystems, and non-mounted devices like swap partitions."
10162 msgstr ""
10163
10164 #. type: textblock
10165 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2916
10166 msgid ""
10167 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10168 "to be shared between operating systems."
10169 msgstr ""
10170
10171 #. type: textblock
10172 #: ../fish/guestfish-actions.pod:1943
10173 msgid ""
10174 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10175 "get-mountpoints>."
10176 msgstr ""
10177
10178 #. type: =head2
10179 #: ../fish/guestfish-actions.pod:1946
10180 msgid "inspect-get-format"
10181 msgstr "inspect-get-format"
10182
10183 #. type: verbatim
10184 #: ../fish/guestfish-actions.pod:1948
10185 #, no-wrap
10186 msgid ""
10187 " inspect-get-format root\n"
10188 "\n"
10189 msgstr ""
10190 " inspect-get-format корінь\n"
10191 "\n"
10192
10193 #. type: textblock
10194 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2934
10195 msgid ""
10196 "This returns the format of the inspected operating system.  You can use it "
10197 "to detect install images, live CDs and similar."
10198 msgstr ""
10199
10200 #. type: textblock
10201 #: ../fish/guestfish-actions.pod:1953 ../src/guestfs-actions.pod:2937
10202 msgid "Currently defined formats are:"
10203 msgstr ""
10204
10205 #. type: =item
10206 #: ../fish/guestfish-actions.pod:1957 ../src/guestfs-actions.pod:2941
10207 msgid "\"installed\""
10208 msgstr "\"installed\""
10209
10210 #. type: textblock
10211 #: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:2943
10212 msgid "This is an installed operating system."
10213 msgstr "Це встановлена операційна система."
10214
10215 #. type: =item
10216 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2945
10217 msgid "\"installer\""
10218 msgstr ""
10219
10220 #. type: textblock
10221 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2947
10222 msgid ""
10223 "The disk image being inspected is not an installed operating system, but a "
10224 "I<bootable> install disk, live CD, or similar."
10225 msgstr ""
10226
10227 #. type: textblock
10228 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
10229 msgid "The format of this disk image is not known."
10230 msgstr ""
10231
10232 #. type: =head2
10233 #: ../fish/guestfish-actions.pod:1977
10234 msgid "inspect-get-hostname"
10235 msgstr "inspect-get-hostname"
10236
10237 #. type: verbatim
10238 #: ../fish/guestfish-actions.pod:1979
10239 #, no-wrap
10240 msgid ""
10241 " inspect-get-hostname root\n"
10242 "\n"
10243 msgstr ""
10244 " inspect-get-hostname корінь\n"
10245 "\n"
10246
10247 #. type: textblock
10248 #: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:2972
10249 msgid ""
10250 "This function returns the hostname of the operating system as found by "
10251 "inspection of the guest's configuration files."
10252 msgstr ""
10253
10254 #. type: textblock
10255 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2975
10256 msgid ""
10257 "If the hostname could not be determined, then the string C<unknown> is "
10258 "returned."
10259 msgstr ""
10260
10261 #. type: =head2
10262 #: ../fish/guestfish-actions.pod:1989
10263 msgid "inspect-get-icon"
10264 msgstr ""
10265
10266 #. type: verbatim
10267 #: ../fish/guestfish-actions.pod:1991
10268 #, no-wrap
10269 msgid ""
10270 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10271 "\n"
10272 msgstr ""
10273
10274 #. type: textblock
10275 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3001
10276 msgid ""
10277 "This function returns an icon corresponding to the inspected operating "
10278 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10279 "to PNG if necessary)."
10280 msgstr ""
10281
10282 #. type: textblock
10283 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3005
10284 msgid ""
10285 "If it was not possible to get an icon this function returns a zero-length "
10286 "(non-NULL) buffer.  I<Callers must check for this case>."
10287 msgstr ""
10288
10289 #. type: textblock
10290 #: ../fish/guestfish-actions.pod:2000 ../src/guestfs-actions.pod:3008
10291 msgid ""
10292 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10293 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10294 "this file will be returned.  You can disable favicons by passing the "
10295 "optional C<favicon> boolean as false (default is true)."
10296 msgstr ""
10297
10298 #. type: textblock
10299 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3014
10300 msgid ""
10301 "If finding the favicon fails, then we look in other places in the guest for "
10302 "a suitable icon."
10303 msgstr ""
10304
10305 #. type: textblock
10306 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3017
10307 msgid ""
10308 "If the optional C<highquality> boolean is true then only high quality icons "
10309 "are returned, which means only icons of high resolution with an alpha "
10310 "channel.  The default (false) is to return any icon we can, even if it is of "
10311 "substandard quality."
10312 msgstr ""
10313
10314 #. type: textblock
10315 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3028
10316 msgid ""
10317 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10318 "before you call this, since it needs to read information from the guest "
10319 "filesystem during the call."
10320 msgstr ""
10321
10322 #. type: textblock
10323 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3034
10324 msgid ""
10325 "B<Security:> The icon data comes from the untrusted guest, and should be "
10326 "treated with caution.  PNG files have been known to contain exploits.  "
10327 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10328 "trying to process or display the icon."
10329 msgstr ""
10330
10331 #. type: textblock
10332 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3042
10333 msgid ""
10334 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10335 "tries to return the largest, highest quality icon available.  The "
10336 "application must scale the icon to the required size."
10337 msgstr ""
10338
10339 #. type: textblock
10340 #: ../fish/guestfish-actions.pod:2041 ../src/guestfs-actions.pod:3049
10341 msgid ""
10342 "Extracting icons from Windows guests requires the external C<wrestool> "
10343 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10344 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10345 "installed separately."
10346 msgstr ""
10347
10348 #. type: textblock
10349 #: ../fish/guestfish-actions.pod:2048 ../src/guestfs-actions.pod:3056
10350 msgid ""
10351 "Operating system icons are usually trademarks.  Seek legal advice before "
10352 "using trademarks in applications."
10353 msgstr ""
10354
10355 #. type: =head2
10356 #: ../fish/guestfish-actions.pod:2055
10357 msgid "inspect-get-major-version"
10358 msgstr "inspect-get-major-version"
10359
10360 #. type: verbatim
10361 #: ../fish/guestfish-actions.pod:2057
10362 #, no-wrap
10363 msgid ""
10364 " inspect-get-major-version root\n"
10365 "\n"
10366 msgstr ""
10367 " inspect-get-major-version корінь\n"
10368 "\n"
10369
10370 #. type: textblock
10371 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3097
10372 msgid ""
10373 "This returns the major version number of the inspected operating system."
10374 msgstr ""
10375
10376 #. type: textblock
10377 #: ../fish/guestfish-actions.pod:2062 ../src/guestfs-actions.pod:3100
10378 msgid ""
10379 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10380 "popular public names used by the operating system.  Notably the operating "
10381 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10382 "1).  You can find out the real versions corresponding to releases of Windows "
10383 "by consulting Wikipedia or MSDN."
10384 msgstr ""
10385
10386 #. type: textblock
10387 #: ../fish/guestfish-actions.pod:2069 ../fish/guestfish-actions.pod:2080
10388 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3124
10389 msgid "If the version could not be determined, then C<0> is returned."
10390 msgstr ""
10391
10392 #. type: =head2
10393 #: ../fish/guestfish-actions.pod:2073
10394 msgid "inspect-get-minor-version"
10395 msgstr "inspect-get-minor-version"
10396
10397 #. type: verbatim
10398 #: ../fish/guestfish-actions.pod:2075
10399 #, no-wrap
10400 msgid ""
10401 " inspect-get-minor-version root\n"
10402 "\n"
10403 msgstr ""
10404 " inspect-get-minor-version корінь\n"
10405 "\n"
10406
10407 #. type: textblock
10408 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3121
10409 msgid ""
10410 "This returns the minor version number of the inspected operating system."
10411 msgstr ""
10412
10413 #. type: textblock
10414 #: ../fish/guestfish-actions.pod:2082
10415 msgid ""
10416 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10417 "get-major-version>."
10418 msgstr ""
10419
10420 #. type: =head2
10421 #: ../fish/guestfish-actions.pod:2085
10422 msgid "inspect-get-mountpoints"
10423 msgstr "inspect-get-mountpoints"
10424
10425 #. type: verbatim
10426 #: ../fish/guestfish-actions.pod:2087
10427 #, no-wrap
10428 msgid ""
10429 " inspect-get-mountpoints root\n"
10430 "\n"
10431 msgstr ""
10432 " inspect-get-mountpoints корінь\n"
10433 "\n"
10434
10435 #. type: textblock
10436 #: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3139
10437 msgid ""
10438 "This returns a hash of where we think the filesystems associated with this "
10439 "operating system should be mounted.  Callers should note that this is at "
10440 "best an educated guess made by reading configuration files such as C</etc/"
10441 "fstab>.  I<In particular note> that this may return filesystems which are "
10442 "non-existent or not mountable and callers should be prepared to handle or "
10443 "ignore failures if they try to mount them."
10444 msgstr ""
10445
10446 #. type: textblock
10447 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3148
10448 msgid ""
10449 "Each element in the returned hashtable has a key which is the path of the "
10450 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10451 "mounted there (eg. C</dev/sda1>)."
10452 msgstr ""
10453
10454 #. type: textblock
10455 #: ../fish/guestfish-actions.pod:2103 ../src/guestfs-actions.pod:3153
10456 msgid ""
10457 "Non-mounted devices such as swap devices are I<not> returned in this list."
10458 msgstr ""
10459
10460 #. type: textblock
10461 #: ../fish/guestfish-actions.pod:2106
10462 msgid ""
10463 "For operating systems like Windows which still use drive letters, this call "
10464 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10465 "information about the mapping of drive letters to partitions, see L</inspect-"
10466 "get-drive-mappings>."
10467 msgstr ""
10468
10469 #. type: textblock
10470 #: ../fish/guestfish-actions.pod:2112
10471 msgid ""
10472 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10473 "get-filesystems>."
10474 msgstr ""
10475
10476 #. type: =head2
10477 #: ../fish/guestfish-actions.pod:2115
10478 msgid "inspect-get-package-format"
10479 msgstr "inspect-get-package-format"
10480
10481 #. type: verbatim
10482 #: ../fish/guestfish-actions.pod:2117
10483 #, no-wrap
10484 msgid ""
10485 " inspect-get-package-format root\n"
10486 "\n"
10487 msgstr ""
10488 " inspect-get-package-format корінь\n"
10489 "\n"
10490
10491 #. type: textblock
10492 #: ../fish/guestfish-actions.pod:2119
10493 msgid ""
10494 "This function and L</inspect-get-package-management> return the package "
10495 "format and package management tool used by the inspected operating system.  "
10496 "For example for Fedora these functions would return C<rpm> (package format) "
10497 "and C<yum> (package management)."
10498 msgstr ""
10499
10500 #. type: textblock
10501 #: ../fish/guestfish-actions.pod:2125 ../src/guestfs-actions.pod:3185
10502 msgid ""
10503 "This returns the string C<unknown> if we could not determine the package "
10504 "format I<or> if the operating system does not have a real packaging system "
10505 "(eg. Windows)."
10506 msgstr ""
10507
10508 #. type: textblock
10509 #: ../fish/guestfish-actions.pod:2129 ../src/guestfs-actions.pod:3189
10510 msgid ""
10511 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10512 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10513 msgstr ""
10514
10515 #. type: =head2
10516 #: ../fish/guestfish-actions.pod:2135
10517 msgid "inspect-get-package-management"
10518 msgstr "inspect-get-package-management"
10519
10520 #. type: verbatim
10521 #: ../fish/guestfish-actions.pod:2137
10522 #, no-wrap
10523 msgid ""
10524 " inspect-get-package-management root\n"
10525 "\n"
10526 msgstr ""
10527 " inspect-get-package-management корінь\n"
10528 "\n"
10529
10530 #. type: textblock
10531 #: ../fish/guestfish-actions.pod:2139
10532 msgid ""
10533 "L</inspect-get-package-format> and this function return the package format "
10534 "and package management tool used by the inspected operating system.  For "
10535 "example for Fedora these functions would return C<rpm> (package format) and "
10536 "C<yum> (package management)."
10537 msgstr ""
10538
10539 #. type: textblock
10540 #: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:3212
10541 msgid ""
10542 "This returns the string C<unknown> if we could not determine the package "
10543 "management tool I<or> if the operating system does not have a real packaging "
10544 "system (eg. Windows)."
10545 msgstr ""
10546
10547 #. type: textblock
10548 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3216
10549 msgid ""
10550 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10551 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10552 "versions of libguestfs may return other strings."
10553 msgstr ""
10554
10555 #. type: =head2
10556 #: ../fish/guestfish-actions.pod:2156
10557 msgid "inspect-get-product-name"
10558 msgstr "inspect-get-product-name"
10559
10560 #. type: verbatim
10561 #: ../fish/guestfish-actions.pod:2158
10562 #, no-wrap
10563 msgid ""
10564 " inspect-get-product-name root\n"
10565 "\n"
10566 msgstr ""
10567 " inspect-get-product-name корінь\n"
10568 "\n"
10569
10570 #. type: textblock
10571 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
10572 msgid ""
10573 "This returns the product name of the inspected operating system.  The "
10574 "product name is generally some freeform string which can be displayed to the "
10575 "user, but should not be parsed by programs."
10576 msgstr ""
10577
10578 #. type: textblock
10579 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3239
10580 msgid ""
10581 "If the product name could not be determined, then the string C<unknown> is "
10582 "returned."
10583 msgstr ""
10584
10585 #. type: =head2
10586 #: ../fish/guestfish-actions.pod:2170
10587 msgid "inspect-get-product-variant"
10588 msgstr ""
10589
10590 #. type: verbatim
10591 #: ../fish/guestfish-actions.pod:2172
10592 #, no-wrap
10593 msgid ""
10594 " inspect-get-product-variant root\n"
10595 "\n"
10596 msgstr ""
10597
10598 #. type: textblock
10599 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3255
10600 msgid "This returns the product variant of the inspected operating system."
10601 msgstr ""
10602
10603 #. type: textblock
10604 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3258
10605 msgid ""
10606 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10607 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10608 "is usually a string such as C<Client> or C<Server> (other values are "
10609 "possible).  This can be used to distinguish consumer and enterprise versions "
10610 "of Windows that have the same version number (for example, Windows 7 and "
10611 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10612 "the latter is C<Server>)."
10613 msgstr ""
10614
10615 #. type: textblock
10616 #: ../fish/guestfish-actions.pod:2186 ../src/guestfs-actions.pod:3267
10617 msgid ""
10618 "For enterprise Linux guests, in future we intend this to return the product "
10619 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10620 "implemented at present."
10621 msgstr ""
10622
10623 #. type: textblock
10624 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3271
10625 msgid ""
10626 "If the product variant could not be determined, then the string C<unknown> "
10627 "is returned."
10628 msgstr ""
10629
10630 #. type: textblock
10631 #: ../fish/guestfish-actions.pod:2193
10632 msgid ""
10633 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10634 "get-product-name>, L</inspect-get-major-version>."
10635 msgstr ""
10636
10637 #. type: =head2
10638 #: ../fish/guestfish-actions.pod:2197
10639 msgid "inspect-get-roots"
10640 msgstr "inspect-get-roots"
10641
10642 #. type: verbatim
10643 #: ../fish/guestfish-actions.pod:2199
10644 #, no-wrap
10645 msgid ""
10646 " inspect-get-roots\n"
10647 "\n"
10648 msgstr ""
10649 " inspect-get-roots\n"
10650 "\n"
10651
10652 #. type: textblock
10653 #: ../fish/guestfish-actions.pod:2201
10654 msgid ""
10655 "This function is a convenient way to get the list of root devices, as "
10656 "returned from a previous call to L</inspect-os>, but without redoing the "
10657 "whole inspection process."
10658 msgstr ""
10659
10660 #. type: textblock
10661 #: ../fish/guestfish-actions.pod:2205
10662 msgid ""
10663 "This returns an empty list if either no root devices were found or the "
10664 "caller has not called L</inspect-os>."
10665 msgstr ""
10666
10667 #. type: =head2
10668 #: ../fish/guestfish-actions.pod:2210
10669 msgid "inspect-get-type"
10670 msgstr "inspect-get-type"
10671
10672 #. type: verbatim
10673 #: ../fish/guestfish-actions.pod:2212
10674 #, no-wrap
10675 msgid ""
10676 " inspect-get-type root\n"
10677 "\n"
10678 msgstr ""
10679 " inspect-get-type корінь\n"
10680 "\n"
10681
10682 #. type: textblock
10683 #: ../fish/guestfish-actions.pod:2214 ../src/guestfs-actions.pod:3309
10684 msgid ""
10685 "This returns the type of the inspected operating system.  Currently defined "
10686 "types are:"
10687 msgstr ""
10688
10689 #. type: =item
10690 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3314
10691 msgid "\"linux\""
10692 msgstr "\"linux\""
10693
10694 #. type: textblock
10695 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3316
10696 msgid "Any Linux-based operating system."
10697 msgstr ""
10698
10699 #. type: textblock
10700 #: ../fish/guestfish-actions.pod:2225 ../src/guestfs-actions.pod:3320
10701 msgid "Any Microsoft Windows operating system."
10702 msgstr ""
10703
10704 #. type: =item
10705 #: ../fish/guestfish-actions.pod:2227 ../src/guestfs-actions.pod:3322
10706 msgid "\"freebsd\""
10707 msgstr "\"freebsd\""
10708
10709 #. type: textblock
10710 #: ../fish/guestfish-actions.pod:2229 ../src/guestfs-actions.pod:3324
10711 msgid "FreeBSD."
10712 msgstr "FreeBSD."
10713
10714 #. type: =item
10715 #: ../fish/guestfish-actions.pod:2231 ../src/guestfs-actions.pod:3326
10716 msgid "\"netbsd\""
10717 msgstr ""
10718
10719 #. type: textblock
10720 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3328
10721 msgid "NetBSD."
10722 msgstr ""
10723
10724 #. type: textblock
10725 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3332
10726 msgid "The operating system type could not be determined."
10727 msgstr ""
10728
10729 #. type: =head2
10730 #: ../fish/guestfish-actions.pod:2246
10731 msgid "inspect-get-windows-current-control-set"
10732 msgstr ""
10733
10734 #. type: verbatim
10735 #: ../fish/guestfish-actions.pod:2248
10736 #, no-wrap
10737 msgid ""
10738 " inspect-get-windows-current-control-set root\n"
10739 "\n"
10740 msgstr ""
10741
10742 #. type: textblock
10743 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3352
10744 msgid ""
10745 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10746 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10747 msgstr ""
10748
10749 #. type: textblock
10750 #: ../fish/guestfish-actions.pod:2253 ../src/guestfs-actions.pod:3355
10751 msgid ""
10752 "This call assumes that the guest is Windows and that the Registry could be "
10753 "examined by inspection.  If this is not the case then an error is returned."
10754 msgstr ""
10755
10756 #. type: =head2
10757 #: ../fish/guestfish-actions.pod:2259
10758 msgid "inspect-get-windows-systemroot"
10759 msgstr "inspect-get-windows-systemroot"
10760
10761 #. type: verbatim
10762 #: ../fish/guestfish-actions.pod:2261
10763 #, no-wrap
10764 msgid ""
10765 " inspect-get-windows-systemroot root\n"
10766 "\n"
10767 msgstr ""
10768 " inspect-get-windows-systemroot корінь\n"
10769 "\n"
10770
10771 #. type: textblock
10772 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3372
10773 msgid ""
10774 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10775 "is a directory path such as C</WINDOWS>."
10776 msgstr ""
10777
10778 #. type: textblock
10779 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3375
10780 msgid ""
10781 "This call assumes that the guest is Windows and that the systemroot could be "
10782 "determined by inspection.  If this is not the case then an error is returned."
10783 msgstr ""
10784
10785 #. type: =head2
10786 #: ../fish/guestfish-actions.pod:2272
10787 msgid "inspect-is-live"
10788 msgstr "inspect-is-live"
10789
10790 #. type: verbatim
10791 #: ../fish/guestfish-actions.pod:2274
10792 #, no-wrap
10793 msgid ""
10794 " inspect-is-live root\n"
10795 "\n"
10796 msgstr ""
10797 " inspect-is-live корінь\n"
10798 "\n"
10799
10800 #. type: textblock
10801 #: ../fish/guestfish-actions.pod:2276
10802 msgid ""
10803 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10804 "then this returns true if a live image was detected on the disk."
10805 msgstr ""
10806
10807 #. type: =head2
10808 #: ../fish/guestfish-actions.pod:2282
10809 msgid "inspect-is-multipart"
10810 msgstr "inspect-is-multipart"
10811
10812 #. type: verbatim
10813 #: ../fish/guestfish-actions.pod:2284
10814 #, no-wrap
10815 msgid ""
10816 " inspect-is-multipart root\n"
10817 "\n"
10818 msgstr ""
10819 " inspect-is-multipart корінь\n"
10820 "\n"
10821
10822 #. type: textblock
10823 #: ../fish/guestfish-actions.pod:2286
10824 msgid ""
10825 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10826 "then this returns true if the disk is part of a set."
10827 msgstr ""
10828
10829 #. type: =head2
10830 #: ../fish/guestfish-actions.pod:2292
10831 msgid "inspect-is-netinst"
10832 msgstr "inspect-is-netinst"
10833
10834 #. type: verbatim
10835 #: ../fish/guestfish-actions.pod:2294
10836 #, no-wrap
10837 msgid ""
10838 " inspect-is-netinst root\n"
10839 "\n"
10840 msgstr ""
10841 " inspect-is-netinst корінь\n"
10842 "\n"
10843
10844 #. type: textblock
10845 #: ../fish/guestfish-actions.pod:2296
10846 msgid ""
10847 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10848 "then this returns true if the disk is a network installer, ie. not a self-"
10849 "contained install CD but one which is likely to require network access to "
10850 "complete the install."
10851 msgstr ""
10852
10853 #. type: =head2
10854 #: ../fish/guestfish-actions.pod:2304
10855 msgid "inspect-list-applications"
10856 msgstr "inspect-list-applications"
10857
10858 #. type: verbatim
10859 #: ../fish/guestfish-actions.pod:2306
10860 #, no-wrap
10861 msgid ""
10862 " inspect-list-applications root\n"
10863 "\n"
10864 msgstr ""
10865 " inspect-list-applications кореневий_каталог\n"
10866 "\n"
10867
10868 #. type: textblock
10869 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3442
10870 msgid "Return the list of applications installed in the operating system."
10871 msgstr ""
10872
10873 #. type: textblock
10874 #: ../fish/guestfish-actions.pod:2310
10875 msgid ""
10876 "I<Note:> This call works differently from other parts of the inspection "
10877 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10878 "then mount up the disks, before calling this.  Listing applications is a "
10879 "significantly more difficult operation which requires access to the full "
10880 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10881 "are just returning data cached in the libguestfs handle, this call actually "
10882 "reads parts of the mounted filesystems during the call."
10883 msgstr ""
10884
10885 #. type: textblock
10886 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3454
10887 msgid ""
10888 "This returns an empty list if the inspection code was not able to determine "
10889 "the list of applications."
10890 msgstr ""
10891
10892 #. type: textblock
10893 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3457
10894 msgid "The application structure contains the following fields:"
10895 msgstr ""
10896
10897 #. type: =item
10898 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3461
10899 msgid "C<app_name>"
10900 msgstr "C<app_name>"
10901
10902 #. type: textblock
10903 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3463
10904 msgid ""
10905 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10906 "guests, this is the package name."
10907 msgstr ""
10908
10909 #. type: =item
10910 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3466
10911 msgid "C<app_display_name>"
10912 msgstr "C<app_display_name>"
10913
10914 #. type: textblock
10915 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3468
10916 msgid ""
10917 "The display name of the application, sometimes localized to the install "
10918 "language of the guest operating system."
10919 msgstr ""
10920
10921 #. type: textblock
10922 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3471
10923 msgid ""
10924 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10925 "to display something can use C<app_name> instead."
10926 msgstr ""
10927
10928 #. type: =item
10929 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3474
10930 msgid "C<app_epoch>"
10931 msgstr "C<app_epoch>"
10932
10933 #. type: textblock
10934 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:3476
10935 msgid ""
10936 "For package managers which use epochs, this contains the epoch of the "
10937 "package (an integer).  If unavailable, this is returned as C<0>."
10938 msgstr ""
10939
10940 #. type: =item
10941 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3479
10942 msgid "C<app_version>"
10943 msgstr "C<app_version>"
10944
10945 #. type: textblock
10946 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3481
10947 msgid ""
10948 "The version string of the application or package.  If unavailable this is "
10949 "returned as an empty string C<\"\">."
10950 msgstr ""
10951
10952 #. type: =item
10953 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3484
10954 msgid "C<app_release>"
10955 msgstr "C<app_release>"
10956
10957 #. type: textblock
10958 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3486
10959 msgid ""
10960 "The release string of the application or package, for package managers that "
10961 "use this.  If unavailable this is returned as an empty string C<\"\">."
10962 msgstr ""
10963
10964 #. type: =item
10965 #: ../fish/guestfish-actions.pod:2356 ../src/guestfs-actions.pod:3490
10966 msgid "C<app_install_path>"
10967 msgstr "C<app_install_path>"
10968
10969 #. type: textblock
10970 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3492
10971 msgid ""
10972 "The installation path of the application (on operating systems such as "
10973 "Windows which use installation paths).  This path is in the format used by "
10974 "the guest operating system, it is not a libguestfs path."
10975 msgstr ""
10976
10977 #. type: textblock
10978 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3497
10979 msgid "If unavailable this is returned as an empty string C<\"\">."
10980 msgstr ""
10981
10982 #. type: =item
10983 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3499
10984 msgid "C<app_trans_path>"
10985 msgstr "C<app_trans_path>"
10986
10987 #. type: textblock
10988 #: ../fish/guestfish-actions.pod:2367 ../src/guestfs-actions.pod:3501
10989 msgid ""
10990 "The install path translated into a libguestfs path.  If unavailable this is "
10991 "returned as an empty string C<\"\">."
10992 msgstr ""
10993
10994 #. type: =item
10995 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3504
10996 msgid "C<app_publisher>"
10997 msgstr "C<app_publisher>"
10998
10999 #. type: textblock
11000 #: ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3506
11001 msgid ""
11002 "The name of the publisher of the application, for package managers that use "
11003 "this.  If unavailable this is returned as an empty string C<\"\">."
11004 msgstr ""
11005
11006 #. type: =item
11007 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3510
11008 msgid "C<app_url>"
11009 msgstr "C<app_url>"
11010
11011 #. type: textblock
11012 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3512
11013 msgid ""
11014 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11015 "returned as an empty string C<\"\">."
11016 msgstr ""
11017
11018 #. type: =item
11019 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3515
11020 msgid "C<app_source_package>"
11021 msgstr "C<app_source_package>"
11022
11023 #. type: textblock
11024 #: ../fish/guestfish-actions.pod:2383 ../src/guestfs-actions.pod:3517
11025 msgid ""
11026 "For packaging systems which support this, the name of the source package.  "
11027 "If unavailable this is returned as an empty string C<\"\">."
11028 msgstr ""
11029
11030 #. type: =item
11031 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
11032 msgid "C<app_summary>"
11033 msgstr "C<app_summary>"
11034
11035 #. type: textblock
11036 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3522
11037 msgid ""
11038 "A short (usually one line) description of the application or package.  If "
11039 "unavailable this is returned as an empty string C<\"\">."
11040 msgstr ""
11041
11042 #. type: =item
11043 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3525
11044 msgid "C<app_description>"
11045 msgstr "C<app_description>"
11046
11047 #. type: textblock
11048 #: ../fish/guestfish-actions.pod:2393 ../src/guestfs-actions.pod:3527
11049 msgid ""
11050 "A longer description of the application or package.  If unavailable this is "
11051 "returned as an empty string C<\"\">."
11052 msgstr ""
11053
11054 #. type: =head2
11055 #: ../fish/guestfish-actions.pod:2400
11056 msgid "inspect-os"
11057 msgstr "inspect-os"
11058
11059 #. type: verbatim
11060 #: ../fish/guestfish-actions.pod:2402
11061 #, no-wrap
11062 msgid ""
11063 " inspect-os\n"
11064 "\n"
11065 msgstr ""
11066 " inspect-os\n"
11067 "\n"
11068
11069 #. type: textblock
11070 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3545
11071 msgid ""
11072 "This function uses other libguestfs functions and certain heuristics to "
11073 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11074 "for operating systems."
11075 msgstr ""
11076
11077 #. type: textblock
11078 #: ../fish/guestfish-actions.pod:2408 ../src/guestfs-actions.pod:3549
11079 msgid "The list returned is empty if no operating systems were found."
11080 msgstr ""
11081
11082 #. type: textblock
11083 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3551
11084 msgid ""
11085 "If one operating system was found, then this returns a list with a single "
11086 "element, which is the name of the root filesystem of this operating system.  "
11087 "It is also possible for this function to return a list containing more than "
11088 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11089 "element being the root filesystem of one of the operating systems."
11090 msgstr ""
11091
11092 #. type: textblock
11093 #: ../fish/guestfish-actions.pod:2417
11094 msgid ""
11095 "You can pass the root string(s) returned to other L</inspect-get-*> "
11096 "functions in order to query further information about each operating system, "
11097 "such as the name and version."
11098 msgstr ""
11099
11100 #. type: textblock
11101 #: ../fish/guestfish-actions.pod:2422
11102 msgid ""
11103 "This function uses other libguestfs features such as L</mount-ro> and L</"
11104 "umount-all> in order to mount and unmount filesystems and look at the "
11105 "contents.  This should be called with no disks currently mounted.  The "
11106 "function may also use Augeas, so any existing Augeas handle will be closed."
11107 msgstr ""
11108
11109 #. type: textblock
11110 #: ../fish/guestfish-actions.pod:2428 ../src/guestfs-actions.pod:3569
11111 msgid ""
11112 "This function cannot decrypt encrypted disks.  The caller must do that first "
11113 "(supplying the necessary keys) if the disk is encrypted."
11114 msgstr ""
11115
11116 #. type: textblock
11117 #: ../fish/guestfish-actions.pod:2434 ../fish/guestfish-actions.pod:2632
11118 #: ../fish/guestfish-actions.pod:2691
11119 msgid "See also L</list-filesystems>."
11120 msgstr "Див. також L</list-filesystems>."
11121
11122 #. type: =head2
11123 #: ../fish/guestfish-actions.pod:2436
11124 msgid "is-blockdev"
11125 msgstr "is-blockdev"
11126
11127 #. type: verbatim
11128 #: ../fish/guestfish-actions.pod:2438
11129 #, no-wrap
11130 msgid ""
11131 " is-blockdev path\n"
11132 "\n"
11133 msgstr ""
11134 " is-blockdev шлях\n"
11135 "\n"
11136
11137 #. type: textblock
11138 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3589
11139 msgid ""
11140 "This returns C<true> if and only if there is a block device with the given "
11141 "C<path> name."
11142 msgstr ""
11143
11144 #. type: textblock
11145 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2461
11146 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2489
11147 #: ../fish/guestfish-actions.pod:2499 ../fish/guestfish-actions.pod:2533
11148 #: ../fish/guestfish-actions.pod:2542
11149 msgid "See also L</stat>."
11150 msgstr "Див. також L</stat>."
11151
11152 #. type: =head2
11153 #: ../fish/guestfish-actions.pod:2445
11154 msgid "is-busy"
11155 msgstr "is-busy"
11156
11157 #. type: verbatim
11158 #: ../fish/guestfish-actions.pod:2447
11159 #, no-wrap
11160 msgid ""
11161 " is-busy\n"
11162 "\n"
11163 msgstr ""
11164 " is-busy\n"
11165 "\n"
11166
11167 #. type: textblock
11168 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3603
11169 msgid ""
11170 "This returns true iff this handle is busy processing a command (in the "
11171 "C<BUSY> state)."
11172 msgstr ""
11173
11174 #. type: =head2
11175 #: ../fish/guestfish-actions.pod:2454
11176 msgid "is-chardev"
11177 msgstr "is-chardev"
11178
11179 #. type: verbatim
11180 #: ../fish/guestfish-actions.pod:2456
11181 #, no-wrap
11182 msgid ""
11183 " is-chardev path\n"
11184 "\n"
11185 msgstr ""
11186 " is-chardev шлях\n"
11187 "\n"
11188
11189 #. type: textblock
11190 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3618
11191 msgid ""
11192 "This returns C<true> if and only if there is a character device with the "
11193 "given C<path> name."
11194 msgstr ""
11195
11196 #. type: =head2
11197 #: ../fish/guestfish-actions.pod:2463
11198 msgid "is-config"
11199 msgstr "is-config"
11200
11201 #. type: verbatim
11202 #: ../fish/guestfish-actions.pod:2465
11203 #, no-wrap
11204 msgid ""
11205 " is-config\n"
11206 "\n"
11207 msgstr ""
11208 " is-config\n"
11209 "\n"
11210
11211 #. type: textblock
11212 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3632
11213 msgid ""
11214 "This returns true iff this handle is being configured (in the C<CONFIG> "
11215 "state)."
11216 msgstr ""
11217
11218 #. type: =head2
11219 #: ../fish/guestfish-actions.pod:2472
11220 msgid "is-dir"
11221 msgstr "is-dir"
11222
11223 #. type: verbatim
11224 #: ../fish/guestfish-actions.pod:2474
11225 #, no-wrap
11226 msgid ""
11227 " is-dir path\n"
11228 "\n"
11229 msgstr ""
11230 " is-dir шлях\n"
11231 "\n"
11232
11233 #. type: textblock
11234 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3647
11235 msgid ""
11236 "This returns C<true> if and only if there is a directory with the given "
11237 "C<path> name.  Note that it returns false for other objects like files."
11238 msgstr ""
11239
11240 #. type: =head2
11241 #: ../fish/guestfish-actions.pod:2482
11242 msgid "is-fifo"
11243 msgstr "is-fifo"
11244
11245 #. type: verbatim
11246 #: ../fish/guestfish-actions.pod:2484
11247 #, no-wrap
11248 msgid ""
11249 " is-fifo path\n"
11250 "\n"
11251 msgstr ""
11252 " is-fifo шлях\n"
11253 "\n"
11254
11255 #. type: textblock
11256 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3663
11257 msgid ""
11258 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11259 "given C<path> name."
11260 msgstr ""
11261
11262 #. type: =head2
11263 #: ../fish/guestfish-actions.pod:2491
11264 msgid "is-file"
11265 msgstr "is-file"
11266
11267 #. type: verbatim
11268 #: ../fish/guestfish-actions.pod:2493
11269 #, no-wrap
11270 msgid ""
11271 " is-file path\n"
11272 "\n"
11273 msgstr ""
11274 " is-file шлях\n"
11275 "\n"
11276
11277 #. type: textblock
11278 #: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3678
11279 msgid ""
11280 "This returns C<true> if and only if there is a regular file with the given "
11281 "C<path> name.  Note that it returns false for other objects like directories."
11282 msgstr ""
11283
11284 #. type: =head2
11285 #: ../fish/guestfish-actions.pod:2501
11286 msgid "is-launching"
11287 msgstr "is-launching"
11288
11289 #. type: verbatim
11290 #: ../fish/guestfish-actions.pod:2503
11291 #, no-wrap
11292 msgid ""
11293 " is-launching\n"
11294 "\n"
11295 msgstr ""
11296 " is-launching\n"
11297 "\n"
11298
11299 #. type: textblock
11300 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3693
11301 msgid ""
11302 "This returns true iff this handle is launching the subprocess (in the "
11303 "C<LAUNCHING> state)."
11304 msgstr ""
11305
11306 #. type: =head2
11307 #: ../fish/guestfish-actions.pod:2510
11308 msgid "is-lv"
11309 msgstr "is-lv"
11310
11311 #. type: verbatim
11312 #: ../fish/guestfish-actions.pod:2512
11313 #, no-wrap
11314 msgid ""
11315 " is-lv device\n"
11316 "\n"
11317 msgstr ""
11318 " is-lv пристрій\n"
11319 "\n"
11320
11321 #. type: textblock
11322 #: ../fish/guestfish-actions.pod:2514 ../src/guestfs-actions.pod:3708
11323 msgid ""
11324 "This command tests whether C<device> is a logical volume, and returns true "
11325 "iff this is the case."
11326 msgstr ""
11327
11328 #. type: =head2
11329 #: ../fish/guestfish-actions.pod:2517
11330 msgid "is-ready"
11331 msgstr "is-ready"
11332
11333 #. type: verbatim
11334 #: ../fish/guestfish-actions.pod:2519
11335 #, no-wrap
11336 msgid ""
11337 " is-ready\n"
11338 "\n"
11339 msgstr ""
11340 " is-ready\n"
11341 "\n"
11342
11343 #. type: textblock
11344 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3720
11345 msgid ""
11346 "This returns true iff this handle is ready to accept commands (in the "
11347 "C<READY> state)."
11348 msgstr ""
11349
11350 #. type: =head2
11351 #: ../fish/guestfish-actions.pod:2526
11352 msgid "is-socket"
11353 msgstr "is-socket"
11354
11355 #. type: verbatim
11356 #: ../fish/guestfish-actions.pod:2528
11357 #, no-wrap
11358 msgid ""
11359 " is-socket path\n"
11360 "\n"
11361 msgstr ""
11362 " is-socket шлях\n"
11363 "\n"
11364
11365 #. type: textblock
11366 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3735
11367 msgid ""
11368 "This returns C<true> if and only if there is a Unix domain socket with the "
11369 "given C<path> name."
11370 msgstr ""
11371
11372 #. type: =head2
11373 #: ../fish/guestfish-actions.pod:2535
11374 msgid "is-symlink"
11375 msgstr "is-symlink"
11376
11377 #. type: verbatim
11378 #: ../fish/guestfish-actions.pod:2537
11379 #, no-wrap
11380 msgid ""
11381 " is-symlink path\n"
11382 "\n"
11383 msgstr ""
11384 " is-symlink шлях\n"
11385 "\n"
11386
11387 #. type: textblock
11388 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3750
11389 msgid ""
11390 "This returns C<true> if and only if there is a symbolic link with the given "
11391 "C<path> name."
11392 msgstr ""
11393
11394 #. type: =head2
11395 #: ../fish/guestfish-actions.pod:2544
11396 msgid "is-zero"
11397 msgstr ""
11398
11399 #. type: verbatim
11400 #: ../fish/guestfish-actions.pod:2546
11401 #, no-wrap
11402 msgid ""
11403 " is-zero path\n"
11404 "\n"
11405 msgstr ""
11406
11407 #. type: textblock
11408 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3765
11409 msgid ""
11410 "This returns true iff the file exists and the file is empty or it contains "
11411 "all zero bytes."
11412 msgstr ""
11413
11414 #. type: =head2
11415 #: ../fish/guestfish-actions.pod:2551
11416 msgid "is-zero-device"
11417 msgstr ""
11418
11419 #. type: verbatim
11420 #: ../fish/guestfish-actions.pod:2553
11421 #, no-wrap
11422 msgid ""
11423 " is-zero-device device\n"
11424 "\n"
11425 msgstr ""
11426
11427 #. type: textblock
11428 #: ../fish/guestfish-actions.pod:2555 ../src/guestfs-actions.pod:3778
11429 msgid "This returns true iff the device exists and contains all zero bytes."
11430 msgstr ""
11431
11432 #. type: textblock
11433 #: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3780
11434 msgid "Note that for large devices this can take a long time to run."
11435 msgstr ""
11436
11437 #. type: =head2
11438 #: ../fish/guestfish-actions.pod:2559
11439 msgid "kill-subprocess"
11440 msgstr "kill-subprocess"
11441
11442 #. type: verbatim
11443 #: ../fish/guestfish-actions.pod:2561
11444 #, no-wrap
11445 msgid ""
11446 " kill-subprocess\n"
11447 "\n"
11448 msgstr ""
11449 " kill-subprocess\n"
11450 "\n"
11451
11452 #. type: textblock
11453 #: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3791
11454 msgid "This kills the qemu subprocess.  You should never need to call this."
11455 msgstr ""
11456
11457 #. type: =head2
11458 #: ../fish/guestfish-actions.pod:2565
11459 msgid "launch"
11460 msgstr "launch"
11461
11462 #. type: =head2
11463 #: ../fish/guestfish-actions.pod:2567
11464 msgid "run"
11465 msgstr ""
11466
11467 #. type: verbatim
11468 #: ../fish/guestfish-actions.pod:2569
11469 #, no-wrap
11470 msgid ""
11471 " launch\n"
11472 "\n"
11473 msgstr ""
11474 " launch\n"
11475 "\n"
11476
11477 #. type: textblock
11478 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3802
11479 msgid ""
11480 "Internally libguestfs is implemented by running a virtual machine using "
11481 "L<qemu(1)>."
11482 msgstr ""
11483
11484 #. type: textblock
11485 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3805
11486 msgid ""
11487 "You should call this after configuring the handle (eg. adding drives) but "
11488 "before performing any actions."
11489 msgstr ""
11490
11491 #. type: =head2
11492 #: ../fish/guestfish-actions.pod:2577
11493 msgid "lchown"
11494 msgstr "lchown"
11495
11496 #. type: verbatim
11497 #: ../fish/guestfish-actions.pod:2579
11498 #, no-wrap
11499 msgid ""
11500 " lchown owner group path\n"
11501 "\n"
11502 msgstr ""
11503 " lchown власник група шлях\n"
11504 "\n"
11505
11506 #. type: textblock
11507 #: ../fish/guestfish-actions.pod:2581
11508 msgid ""
11509 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11510 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11511 "target."
11512 msgstr ""
11513
11514 #. type: =head2
11515 #: ../fish/guestfish-actions.pod:2589
11516 msgid "lgetxattr"
11517 msgstr "lgetxattr"
11518
11519 #. type: verbatim
11520 #: ../fish/guestfish-actions.pod:2591
11521 #, no-wrap
11522 msgid ""
11523 " lgetxattr path name\n"
11524 "\n"
11525 msgstr ""
11526 " lgetxattr шлях назва\n"
11527 "\n"
11528
11529 #. type: textblock
11530 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3845
11531 msgid ""
11532 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11533 "is a symlink, then this call returns an extended attribute from the symlink."
11534 msgstr ""
11535
11536 #. type: textblock
11537 #: ../fish/guestfish-actions.pod:2607
11538 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11539 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11540
11541 #. type: =head2
11542 #: ../fish/guestfish-actions.pod:2609
11543 msgid "lgetxattrs"
11544 msgstr "lgetxattrs"
11545
11546 #. type: verbatim
11547 #: ../fish/guestfish-actions.pod:2611
11548 #, no-wrap
11549 msgid ""
11550 " lgetxattrs path\n"
11551 "\n"
11552 msgstr ""
11553 " lgetxattrs шлях\n"
11554 "\n"
11555
11556 #. type: textblock
11557 #: ../fish/guestfish-actions.pod:2613
11558 msgid ""
11559 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11560 "it returns the extended attributes of the link itself."
11561 msgstr ""
11562
11563 #. type: =head2
11564 #: ../fish/guestfish-actions.pod:2617
11565 msgid "list-9p"
11566 msgstr ""
11567
11568 #. type: verbatim
11569 #: ../fish/guestfish-actions.pod:2619
11570 #, no-wrap
11571 msgid ""
11572 " list-9p\n"
11573 "\n"
11574 msgstr ""
11575
11576 #. type: textblock
11577 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3888
11578 msgid ""
11579 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11580 "returned."
11581 msgstr ""
11582
11583 #. type: =head2
11584 #: ../fish/guestfish-actions.pod:2624
11585 msgid "list-devices"
11586 msgstr "list-devices"
11587
11588 #. type: verbatim
11589 #: ../fish/guestfish-actions.pod:2626
11590 #, no-wrap
11591 msgid ""
11592 " list-devices\n"
11593 "\n"
11594 msgstr ""
11595 " list-devices\n"
11596 "\n"
11597
11598 #. type: textblock
11599 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3902
11600 msgid "List all the block devices."
11601 msgstr ""
11602
11603 #. type: textblock
11604 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3904
11605 msgid "The full block device names are returned, eg. C</dev/sda>."
11606 msgstr ""
11607
11608 #. type: =head2
11609 #: ../fish/guestfish-actions.pod:2634
11610 msgid "list-dm-devices"
11611 msgstr ""
11612
11613 #. type: verbatim
11614 #: ../fish/guestfish-actions.pod:2636
11615 #, no-wrap
11616 msgid ""
11617 " list-dm-devices\n"
11618 "\n"
11619 msgstr ""
11620
11621 #. type: textblock
11622 #: ../fish/guestfish-actions.pod:2638 ../src/guestfs-actions.pod:3919
11623 msgid "List all device mapper devices."
11624 msgstr ""
11625
11626 #. type: textblock
11627 #: ../fish/guestfish-actions.pod:2640
11628 msgid ""
11629 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11630 "previous call to L</luks-open>."
11631 msgstr ""
11632
11633 #. type: textblock
11634 #: ../fish/guestfish-actions.pod:2643
11635 msgid ""
11636 "Device mapper devices which correspond to logical volumes are I<not> "
11637 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11638 msgstr ""
11639
11640 #. type: =head2
11641 #: ../fish/guestfish-actions.pod:2647
11642 msgid "list-filesystems"
11643 msgstr "list-filesystems"
11644
11645 #. type: verbatim
11646 #: ../fish/guestfish-actions.pod:2649
11647 #, no-wrap
11648 msgid ""
11649 " list-filesystems\n"
11650 "\n"
11651 msgstr ""
11652 " list-filesystems\n"
11653 "\n"
11654
11655 #. type: textblock
11656 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3939
11657 msgid ""
11658 "This inspection command looks for filesystems on partitions, block devices "
11659 "and logical volumes, returning a list of devices containing filesystems and "
11660 "their type."
11661 msgstr ""
11662
11663 #. type: textblock
11664 #: ../fish/guestfish-actions.pod:2655 ../src/guestfs-actions.pod:3943
11665 msgid ""
11666 "The return value is a hash, where the keys are the devices containing "
11667 "filesystems, and the values are the filesystem types.  For example:"
11668 msgstr ""
11669
11670 #. type: verbatim
11671 #: ../fish/guestfish-actions.pod:2659 ../src/guestfs-actions.pod:3947
11672 #, no-wrap
11673 msgid ""
11674 " \"/dev/sda1\" => \"ntfs\"\n"
11675 " \"/dev/sda2\" => \"ext2\"\n"
11676 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11677 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11678 "\n"
11679 msgstr ""
11680
11681 #. type: textblock
11682 #: ../fish/guestfish-actions.pod:2664 ../src/guestfs-actions.pod:3952
11683 msgid ""
11684 "The value can have the special value \"unknown\", meaning the content of the "
11685 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11686 msgstr ""
11687
11688 #. type: textblock
11689 #: ../fish/guestfish-actions.pod:2668
11690 msgid ""
11691 "This command runs other libguestfs commands, which might include L</mount> "
11692 "and L</umount>, and therefore you should use this soon after launch and only "
11693 "when nothing is mounted."
11694 msgstr ""
11695
11696 #. type: textblock
11697 #: ../fish/guestfish-actions.pod:2672
11698 msgid ""
11699 "Not all of the filesystems returned will be mountable.  In particular, swap "
11700 "partitions are returned in the list.  Also this command does not check that "
11701 "each filesystem found is valid and mountable, and some filesystems might be "
11702 "mountable but require special options.  Filesystems may not all belong to a "
11703 "single logical operating system (use L</inspect-os> to look for OSes)."
11704 msgstr ""
11705
11706 #. type: =head2
11707 #: ../fish/guestfish-actions.pod:2680
11708 msgid "list-partitions"
11709 msgstr "list-partitions"
11710
11711 #. type: verbatim
11712 #: ../fish/guestfish-actions.pod:2682
11713 #, no-wrap
11714 msgid ""
11715 " list-partitions\n"
11716 "\n"
11717 msgstr ""
11718 " list-partitions\n"
11719 "\n"
11720
11721 #. type: textblock
11722 #: ../fish/guestfish-actions.pod:2684 ../src/guestfs-actions.pod:3981
11723 msgid "List all the partitions detected on all block devices."
11724 msgstr ""
11725
11726 #. type: textblock
11727 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3983
11728 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11729 msgstr ""
11730
11731 #. type: textblock
11732 #: ../fish/guestfish-actions.pod:2688
11733 msgid ""
11734 "This does not return logical volumes.  For that you will need to call L</"
11735 "lvs>."
11736 msgstr ""
11737
11738 #. type: =head2
11739 #: ../fish/guestfish-actions.pod:2693
11740 msgid "ll"
11741 msgstr "ll"
11742
11743 #. type: verbatim
11744 #: ../fish/guestfish-actions.pod:2695
11745 #, no-wrap
11746 msgid ""
11747 " ll directory\n"
11748 "\n"
11749 msgstr ""
11750 " ll каталог\n"
11751 "\n"
11752
11753 #. type: textblock
11754 #: ../fish/guestfish-actions.pod:2697 ../src/guestfs-actions.pod:4002
11755 msgid ""
11756 "List the files in C<directory> (relative to the root directory, there is no "
11757 "cwd) in the format of 'ls -la'."
11758 msgstr ""
11759
11760 #. type: textblock
11761 #: ../fish/guestfish-actions.pod:2700 ../src/guestfs-actions.pod:4005
11762 msgid ""
11763 "This command is mostly useful for interactive sessions.  It is I<not> "
11764 "intended that you try to parse the output string."
11765 msgstr ""
11766
11767 #. type: =head2
11768 #: ../fish/guestfish-actions.pod:2703
11769 msgid "ln"
11770 msgstr "ln"
11771
11772 #. type: verbatim
11773 #: ../fish/guestfish-actions.pod:2705
11774 #, no-wrap
11775 msgid ""
11776 " ln target linkname\n"
11777 "\n"
11778 msgstr ""
11779 " ln призначення назва_посилання\n"
11780 "\n"
11781
11782 #. type: textblock
11783 #: ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:4020
11784 msgid "This command creates a hard link using the C<ln> command."
11785 msgstr ""
11786
11787 #. type: =head2
11788 #: ../fish/guestfish-actions.pod:2709
11789 msgid "ln-f"
11790 msgstr "ln-f"
11791
11792 #. type: verbatim
11793 #: ../fish/guestfish-actions.pod:2711
11794 #, no-wrap
11795 msgid ""
11796 " ln-f target linkname\n"
11797 "\n"
11798 msgstr ""
11799 " ln-f призначення назва_посилання\n"
11800 "\n"
11801
11802 #. type: textblock
11803 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4033
11804 msgid ""
11805 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11806 "option removes the link (C<linkname>) if it exists already."
11807 msgstr ""
11808
11809 #. type: =head2
11810 #: ../fish/guestfish-actions.pod:2716
11811 msgid "ln-s"
11812 msgstr "ln-s"
11813
11814 #. type: verbatim
11815 #: ../fish/guestfish-actions.pod:2718
11816 #, no-wrap
11817 msgid ""
11818 " ln-s target linkname\n"
11819 "\n"
11820 msgstr ""
11821 " ln-s призначення назва_посилання\n"
11822 "\n"
11823
11824 #. type: textblock
11825 #: ../fish/guestfish-actions.pod:2720 ../src/guestfs-actions.pod:4047
11826 msgid "This command creates a symbolic link using the C<ln -s> command."
11827 msgstr ""
11828
11829 #. type: =head2
11830 #: ../fish/guestfish-actions.pod:2722
11831 msgid "ln-sf"
11832 msgstr "ln-sf"
11833
11834 #. type: verbatim
11835 #: ../fish/guestfish-actions.pod:2724
11836 #, no-wrap
11837 msgid ""
11838 " ln-sf target linkname\n"
11839 "\n"
11840 msgstr ""
11841 " ln-sf призначення назва_посилання\n"
11842 "\n"
11843
11844 #. type: textblock
11845 #: ../fish/guestfish-actions.pod:2726 ../src/guestfs-actions.pod:4060
11846 msgid ""
11847 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11848 "option removes the link (C<linkname>) if it exists already."
11849 msgstr ""
11850
11851 #. type: =head2
11852 #: ../fish/guestfish-actions.pod:2729
11853 msgid "lremovexattr"
11854 msgstr "lremovexattr"
11855
11856 #. type: verbatim
11857 #: ../fish/guestfish-actions.pod:2731
11858 #, no-wrap
11859 msgid ""
11860 " lremovexattr xattr path\n"
11861 "\n"
11862 msgstr ""
11863
11864 #. type: textblock
11865 #: ../fish/guestfish-actions.pod:2733
11866 msgid ""
11867 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11868 "it removes an extended attribute of the link itself."
11869 msgstr ""
11870
11871 #. type: =head2
11872 #: ../fish/guestfish-actions.pod:2737
11873 msgid "ls"
11874 msgstr "ls"
11875
11876 #. type: verbatim
11877 #: ../fish/guestfish-actions.pod:2739
11878 #, no-wrap
11879 msgid ""
11880 " ls directory\n"
11881 "\n"
11882 msgstr ""
11883 " ls каталог\n"
11884 "\n"
11885
11886 #. type: textblock
11887 #: ../fish/guestfish-actions.pod:2741 ../src/guestfs-actions.pod:4088
11888 msgid ""
11889 "List the files in C<directory> (relative to the root directory, there is no "
11890 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
11891 msgstr ""
11892
11893 #. type: textblock
11894 #: ../fish/guestfish-actions.pod:2745
11895 msgid ""
11896 "This command is mostly useful for interactive sessions.  Programs should "
11897 "probably use L</readdir> instead."
11898 msgstr ""
11899
11900 #. type: =head2
11901 #: ../fish/guestfish-actions.pod:2748
11902 msgid "lsetxattr"
11903 msgstr "lsetxattr"
11904
11905 #. type: verbatim
11906 #: ../fish/guestfish-actions.pod:2750
11907 #, no-wrap
11908 msgid ""
11909 " lsetxattr xattr val vallen path\n"
11910 "\n"
11911 msgstr ""
11912
11913 #. type: textblock
11914 #: ../fish/guestfish-actions.pod:2752
11915 msgid ""
11916 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11917 "sets an extended attribute of the link itself."
11918 msgstr ""
11919
11920 #. type: =head2
11921 #: ../fish/guestfish-actions.pod:2756
11922 msgid "lstat"
11923 msgstr "lstat"
11924
11925 #. type: verbatim
11926 #: ../fish/guestfish-actions.pod:2758
11927 #, no-wrap
11928 msgid ""
11929 " lstat path\n"
11930 "\n"
11931 msgstr ""
11932 " lstat шлях\n"
11933 "\n"
11934
11935 #. type: textblock
11936 #: ../fish/guestfish-actions.pod:2760 ../fish/guestfish-actions.pod:4570
11937 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:6909
11938 msgid "Returns file information for the given C<path>."
11939 msgstr ""
11940
11941 #. type: textblock
11942 #: ../fish/guestfish-actions.pod:2762
11943 msgid ""
11944 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11945 "the link is stat-ed, not the file it refers to."
11946 msgstr ""
11947
11948 #. type: textblock
11949 #: ../fish/guestfish-actions.pod:2766 ../src/guestfs-actions.pod:4130
11950 msgid "This is the same as the C<lstat(2)> system call."
11951 msgstr ""
11952
11953 #. type: =head2
11954 #: ../fish/guestfish-actions.pod:2768
11955 msgid "lstatlist"
11956 msgstr "lstatlist"
11957
11958 #. type: verbatim
11959 #: ../fish/guestfish-actions.pod:2770
11960 #, no-wrap
11961 msgid ""
11962 " lstatlist path 'names ...'\n"
11963 "\n"
11964 msgstr ""
11965
11966 #. type: textblock
11967 #: ../fish/guestfish-actions.pod:2772
11968 msgid ""
11969 "This call allows you to perform the L</lstat> operation on multiple files, "
11970 "where all files are in the directory C<path>.  C<names> is the list of files "
11971 "from this directory."
11972 msgstr ""
11973
11974 #. type: textblock
11975 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4149
11976 msgid ""
11977 "On return you get a list of stat structs, with a one-to-one correspondence "
11978 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11979 "then the C<ino> field of that structure is set to C<-1>."
11980 msgstr ""
11981
11982 #. type: textblock
11983 #: ../fish/guestfish-actions.pod:2781
11984 msgid ""
11985 "This call is intended for programs that want to efficiently list a directory "
11986 "contents without making many round-trips.  See also L</lxattrlist> for a "
11987 "similarly efficient call for getting extended attributes.  Very long "
11988 "directory listings might cause the protocol message size to be exceeded, "
11989 "causing this call to fail.  The caller must split up such requests into "
11990 "smaller groups of names."
11991 msgstr ""
11992
11993 #. type: =head2
11994 #: ../fish/guestfish-actions.pod:2789
11995 msgid "luks-add-key"
11996 msgstr "luks-add-key"
11997
11998 #. type: verbatim
11999 #: ../fish/guestfish-actions.pod:2791
12000 #, no-wrap
12001 msgid ""
12002 " luks-add-key device keyslot\n"
12003 "\n"
12004 msgstr ""
12005
12006 #. type: textblock
12007 #: ../fish/guestfish-actions.pod:2793 ../src/guestfs-actions.pod:4177
12008 msgid ""
12009 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12010 "existing key, and is used to access the device.  C<newkey> is the new key to "
12011 "add.  C<keyslot> is the key slot that will be replaced."
12012 msgstr ""
12013
12014 #. type: textblock
12015 #: ../fish/guestfish-actions.pod:2798
12016 msgid ""
12017 "Note that if C<keyslot> already contains a key, then this command will "
12018 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12019 msgstr ""
12020
12021 #. type: textblock
12022 #: ../fish/guestfish-actions.pod:2802 ../fish/guestfish-actions.pod:2824
12023 #: ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:2851
12024 #: ../fish/guestfish-actions.pod:2877 ../fish/guestfish-actions.pod:2887
12025 msgid ""
12026 "This command has one or more key or passphrase parameters.  Guestfish will "
12027 "prompt for these separately."
12028 msgstr ""
12029
12030 #. type: =head2
12031 #: ../fish/guestfish-actions.pod:2805
12032 msgid "luks-close"
12033 msgstr "luks-close"
12034
12035 #. type: verbatim
12036 #: ../fish/guestfish-actions.pod:2807
12037 #, no-wrap
12038 msgid ""
12039 " luks-close device\n"
12040 "\n"
12041 msgstr ""
12042 " luks-close пристрій\n"
12043 "\n"
12044
12045 #. type: textblock
12046 #: ../fish/guestfish-actions.pod:2809
12047 msgid ""
12048 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12049 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
12050 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12051 "block device."
12052 msgstr ""
12053
12054 #. type: =head2
12055 #: ../fish/guestfish-actions.pod:2815
12056 msgid "luks-format"
12057 msgstr "luks-format"
12058
12059 #. type: verbatim
12060 #: ../fish/guestfish-actions.pod:2817
12061 #, no-wrap
12062 msgid ""
12063 " luks-format device keyslot\n"
12064 "\n"
12065 msgstr ""
12066
12067 #. type: textblock
12068 #: ../fish/guestfish-actions.pod:2819 ../src/guestfs-actions.pod:4218
12069 msgid ""
12070 "This command erases existing data on C<device> and formats the device as a "
12071 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12072 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12073 msgstr ""
12074
12075 #. type: textblock
12076 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2840
12077 #: ../fish/guestfish-actions.pod:2927 ../fish/guestfish-actions.pod:3578
12078 #: ../fish/guestfish-actions.pod:4104 ../fish/guestfish-actions.pod:4441
12079 #: ../fish/guestfish-actions.pod:4464 ../fish/guestfish-actions.pod:4486
12080 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:4225
12081 #: ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4391
12082 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:6272
12083 #: ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6753
12084 #: ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:7985
12085 msgid ""
12086 "B<This command is dangerous.  Without careful use you can easily destroy all "
12087 "your data>."
12088 msgstr ""
12089
12090 #. type: =head2
12091 #: ../fish/guestfish-actions.pod:2830
12092 msgid "luks-format-cipher"
12093 msgstr "luks-format-cipher"
12094
12095 #. type: verbatim
12096 #: ../fish/guestfish-actions.pod:2832
12097 #, no-wrap
12098 msgid ""
12099 " luks-format-cipher device keyslot cipher\n"
12100 "\n"
12101 msgstr ""
12102
12103 #. type: textblock
12104 #: ../fish/guestfish-actions.pod:2834
12105 msgid ""
12106 "This command is the same as L</luks-format> but it also allows you to set "
12107 "the C<cipher> used."
12108 msgstr ""
12109
12110 #. type: =head2
12111 #: ../fish/guestfish-actions.pod:2843
12112 msgid "luks-kill-slot"
12113 msgstr "luks-kill-slot"
12114
12115 #. type: verbatim
12116 #: ../fish/guestfish-actions.pod:2845
12117 #, no-wrap
12118 msgid ""
12119 " luks-kill-slot device keyslot\n"
12120 "\n"
12121 msgstr ""
12122
12123 #. type: textblock
12124 #: ../fish/guestfish-actions.pod:2847 ../src/guestfs-actions.pod:4265
12125 msgid ""
12126 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12127 "device C<device>.  C<key> must be one of the I<other> keys."
12128 msgstr ""
12129
12130 #. type: =head2
12131 #: ../fish/guestfish-actions.pod:2854
12132 msgid "luks-open"
12133 msgstr "luks-open"
12134
12135 #. type: verbatim
12136 #: ../fish/guestfish-actions.pod:2856
12137 #, no-wrap
12138 msgid ""
12139 " luks-open device mapname\n"
12140 "\n"
12141 msgstr ""
12142
12143 #. type: textblock
12144 #: ../fish/guestfish-actions.pod:2858 ../src/guestfs-actions.pod:4285
12145 msgid ""
12146 "This command opens a block device which has been encrypted according to the "
12147 "Linux Unified Key Setup (LUKS) standard."
12148 msgstr ""
12149
12150 #. type: textblock
12151 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4288
12152 msgid "C<device> is the encrypted block device or partition."
12153 msgstr ""
12154
12155 #. type: textblock
12156 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4290
12157 msgid ""
12158 "The caller must supply one of the keys associated with the LUKS block "
12159 "device, in the C<key> parameter."
12160 msgstr ""
12161
12162 #. type: textblock
12163 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4293
12164 msgid ""
12165 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12166 "writes to this block device are decrypted from and encrypted to the "
12167 "underlying C<device> respectively."
12168 msgstr ""
12169
12170 #. type: textblock
12171 #: ../fish/guestfish-actions.pod:2870
12172 msgid ""
12173 "If this block device contains LVM volume groups, then calling L</vgscan> "
12174 "followed by L</vg-activate-all> will make them visible."
12175 msgstr ""
12176
12177 #. type: textblock
12178 #: ../fish/guestfish-actions.pod:2874
12179 msgid "Use L</list-dm-devices> to list all device mapper devices."
12180 msgstr ""
12181
12182 #. type: =head2
12183 #: ../fish/guestfish-actions.pod:2880
12184 msgid "luks-open-ro"
12185 msgstr "luks-open-ro"
12186
12187 #. type: verbatim
12188 #: ../fish/guestfish-actions.pod:2882
12189 #, no-wrap
12190 msgid ""
12191 " luks-open-ro device mapname\n"
12192 "\n"
12193 msgstr ""
12194
12195 #. type: textblock
12196 #: ../fish/guestfish-actions.pod:2884
12197 msgid ""
12198 "This is the same as L</luks-open> except that a read-only mapping is created."
12199 msgstr ""
12200
12201 #. type: =head2
12202 #: ../fish/guestfish-actions.pod:2890
12203 msgid "lvcreate"
12204 msgstr "lvcreate"
12205
12206 #. type: verbatim
12207 #: ../fish/guestfish-actions.pod:2892
12208 #, no-wrap
12209 msgid ""
12210 " lvcreate logvol volgroup mbytes\n"
12211 "\n"
12212 msgstr ""
12213
12214 #. type: textblock
12215 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4339
12216 msgid ""
12217 "This creates an LVM logical volume called C<logvol> on the volume group "
12218 "C<volgroup>, with C<size> megabytes."
12219 msgstr ""
12220
12221 #. type: =head2
12222 #: ../fish/guestfish-actions.pod:2897
12223 msgid "lvm-canonical-lv-name"
12224 msgstr "lvm-canonical-lv-name"
12225
12226 #. type: verbatim
12227 #: ../fish/guestfish-actions.pod:2899
12228 #, no-wrap
12229 msgid ""
12230 " lvm-canonical-lv-name lvname\n"
12231 "\n"
12232 msgstr ""
12233
12234 #. type: textblock
12235 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4352
12236 msgid ""
12237 "This converts alternative naming schemes for LVs that you might find to the "
12238 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12239 "LV>."
12240 msgstr ""
12241
12242 #. type: textblock
12243 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4356
12244 msgid ""
12245 "This command returns an error if the C<lvname> parameter does not refer to a "
12246 "logical volume."
12247 msgstr ""
12248
12249 #. type: textblock
12250 #: ../fish/guestfish-actions.pod:2908
12251 msgid "See also L</is-lv>."
12252 msgstr "Див. також L</is-lv>."
12253
12254 #. type: =head2
12255 #: ../fish/guestfish-actions.pod:2910
12256 msgid "lvm-clear-filter"
12257 msgstr "lvm-clear-filter"
12258
12259 #. type: verbatim
12260 #: ../fish/guestfish-actions.pod:2912
12261 #, no-wrap
12262 msgid ""
12263 " lvm-clear-filter\n"
12264 "\n"
12265 msgstr ""
12266 " lvm-clear-filter\n"
12267 "\n"
12268
12269 #. type: textblock
12270 #: ../fish/guestfish-actions.pod:2914
12271 msgid ""
12272 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12273 "block device."
12274 msgstr ""
12275
12276 #. type: textblock
12277 #: ../fish/guestfish-actions.pod:2917 ../fish/guestfish-actions.pod:2948
12278 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4416
12279 msgid ""
12280 "This command also clears the LVM cache and performs a volume group scan."
12281 msgstr ""
12282
12283 #. type: =head2
12284 #: ../fish/guestfish-actions.pod:2920
12285 msgid "lvm-remove-all"
12286 msgstr "lvm-remove-all"
12287
12288 #. type: verbatim
12289 #: ../fish/guestfish-actions.pod:2922
12290 #, no-wrap
12291 msgid ""
12292 " lvm-remove-all\n"
12293 "\n"
12294 msgstr ""
12295 " lvm-remove-all\n"
12296 "\n"
12297
12298 #. type: textblock
12299 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4386
12300 msgid ""
12301 "This command removes all LVM logical volumes, volume groups and physical "
12302 "volumes."
12303 msgstr ""
12304
12305 #. type: =head2
12306 #: ../fish/guestfish-actions.pod:2930
12307 msgid "lvm-set-filter"
12308 msgstr "lvm-set-filter"
12309
12310 #. type: verbatim
12311 #: ../fish/guestfish-actions.pod:2932
12312 #, no-wrap
12313 msgid ""
12314 " lvm-set-filter 'devices ...'\n"
12315 "\n"
12316 msgstr ""
12317 " lvm-set-filter 'пристрої...'\n"
12318 "\n"
12319
12320 #. type: textblock
12321 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4402
12322 msgid ""
12323 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12324 "block devices in the list C<devices>, and will ignore all other attached "
12325 "block devices."
12326 msgstr ""
12327
12328 #. type: textblock
12329 #: ../fish/guestfish-actions.pod:2938 ../src/guestfs-actions.pod:4406
12330 msgid ""
12331 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12332 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12333 "there are two types of duplication possible: either cloned PVs/VGs which "
12334 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12335 "same name.  In normal operation you cannot create this situation, but you "
12336 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12337 "inside the LVM metadata."
12338 msgstr ""
12339
12340 #. type: textblock
12341 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4419
12342 msgid "You can filter whole block devices or individual partitions."
12343 msgstr ""
12344
12345 #. type: textblock
12346 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4421
12347 msgid ""
12348 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12349 "filesystem), even if you are not filtering out that VG."
12350 msgstr ""
12351
12352 #. type: =head2
12353 #: ../fish/guestfish-actions.pod:2957
12354 msgid "lvremove"
12355 msgstr "lvremove"
12356
12357 #. type: verbatim
12358 #: ../fish/guestfish-actions.pod:2959
12359 #, no-wrap
12360 msgid ""
12361 " lvremove device\n"
12362 "\n"
12363 msgstr ""
12364 " lvremove пристрій\n"
12365 "\n"
12366
12367 #. type: textblock
12368 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4435
12369 msgid ""
12370 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12371 "LV, such as C</dev/VG/LV>."
12372 msgstr ""
12373
12374 #. type: textblock
12375 #: ../fish/guestfish-actions.pod:2964 ../src/guestfs-actions.pod:4438
12376 msgid ""
12377 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12378 "dev/VG>."
12379 msgstr ""
12380
12381 #. type: =head2
12382 #: ../fish/guestfish-actions.pod:2967
12383 msgid "lvrename"
12384 msgstr "lvrename"
12385
12386 #. type: verbatim
12387 #: ../fish/guestfish-actions.pod:2969
12388 #, no-wrap
12389 msgid ""
12390 " lvrename logvol newlogvol\n"
12391 "\n"
12392 msgstr ""
12393
12394 #. type: textblock
12395 #: ../fish/guestfish-actions.pod:2971 ../src/guestfs-actions.pod:4452
12396 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12397 msgstr ""
12398
12399 #. type: =head2
12400 #: ../fish/guestfish-actions.pod:2973
12401 msgid "lvresize"
12402 msgstr "lvresize"
12403
12404 #. type: verbatim
12405 #: ../fish/guestfish-actions.pod:2975
12406 #, no-wrap
12407 msgid ""
12408 " lvresize device mbytes\n"
12409 "\n"
12410 msgstr ""
12411
12412 #. type: textblock
12413 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4465
12414 msgid ""
12415 "This resizes (expands or shrinks) an existing LVM logical volume to "
12416 "C<mbytes>.  When reducing, data in the reduced part is lost."
12417 msgstr ""
12418
12419 #. type: =head2
12420 #: ../fish/guestfish-actions.pod:2981
12421 msgid "lvresize-free"
12422 msgstr "lvresize-free"
12423
12424 #. type: verbatim
12425 #: ../fish/guestfish-actions.pod:2983
12426 #, no-wrap
12427 msgid ""
12428 " lvresize-free lv percent\n"
12429 "\n"
12430 msgstr ""
12431
12432 #. type: textblock
12433 #: ../fish/guestfish-actions.pod:2985 ../src/guestfs-actions.pod:4480
12434 msgid ""
12435 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12436 "remaining free space in the volume group.  Commonly you would call this with "
12437 "pc = 100 which expands the logical volume as much as possible, using all "
12438 "remaining free space in the volume group."
12439 msgstr ""
12440
12441 #. type: =head2
12442 #: ../fish/guestfish-actions.pod:2991
12443 msgid "lvs"
12444 msgstr "lvs"
12445
12446 #. type: verbatim
12447 #: ../fish/guestfish-actions.pod:2993
12448 #, no-wrap
12449 msgid ""
12450 " lvs\n"
12451 "\n"
12452 msgstr ""
12453 " lvs\n"
12454 "\n"
12455
12456 #. type: textblock
12457 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4495
12458 msgid ""
12459 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12460 "(8)> command."
12461 msgstr ""
12462
12463 #. type: textblock
12464 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4498
12465 msgid ""
12466 "This returns a list of the logical volume device names (eg. C</dev/"
12467 "VolGroup00/LogVol00>)."
12468 msgstr ""
12469
12470 #. type: textblock
12471 #: ../fish/guestfish-actions.pod:3001
12472 msgid "See also L</lvs-full>, L</list-filesystems>."
12473 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12474
12475 #. type: =head2
12476 #: ../fish/guestfish-actions.pod:3003
12477 msgid "lvs-full"
12478 msgstr "lvs-full"
12479
12480 #. type: verbatim
12481 #: ../fish/guestfish-actions.pod:3005
12482 #, no-wrap
12483 msgid ""
12484 " lvs-full\n"
12485 "\n"
12486 msgstr ""
12487 " lvs-full\n"
12488 "\n"
12489
12490 #. type: textblock
12491 #: ../fish/guestfish-actions.pod:3007 ../src/guestfs-actions.pod:4514
12492 msgid ""
12493 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12494 "(8)> command.  The \"full\" version includes all fields."
12495 msgstr ""
12496
12497 #. type: =head2
12498 #: ../fish/guestfish-actions.pod:3010
12499 msgid "lvuuid"
12500 msgstr "lvuuid"
12501
12502 #. type: verbatim
12503 #: ../fish/guestfish-actions.pod:3012
12504 #, no-wrap
12505 msgid ""
12506 " lvuuid device\n"
12507 "\n"
12508 msgstr ""
12509 " lvuuid пристрій\n"
12510 "\n"
12511
12512 #. type: textblock
12513 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4529
12514 msgid "This command returns the UUID of the LVM LV C<device>."
12515 msgstr ""
12516
12517 #. type: =head2
12518 #: ../fish/guestfish-actions.pod:3016
12519 msgid "lxattrlist"
12520 msgstr "lxattrlist"
12521
12522 #. type: verbatim
12523 #: ../fish/guestfish-actions.pod:3018
12524 #, no-wrap
12525 msgid ""
12526 " lxattrlist path 'names ...'\n"
12527 "\n"
12528 msgstr ""
12529
12530 #. type: textblock
12531 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4543
12532 msgid ""
12533 "This call allows you to get the extended attributes of multiple files, where "
12534 "all files are in the directory C<path>.  C<names> is the list of files from "
12535 "this directory."
12536 msgstr ""
12537
12538 #. type: textblock
12539 #: ../fish/guestfish-actions.pod:3024 ../src/guestfs-actions.pod:4547
12540 msgid ""
12541 "On return you get a flat list of xattr structs which must be interpreted "
12542 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12543 "C<attrval> in this struct is zero-length to indicate there was an error "
12544 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12545 "number (the number of following attributes for this file, which could be C<"
12546 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12547 "for the first named file.  This repeats for the second and subsequent files."
12548 msgstr ""
12549
12550 #. type: textblock
12551 #: ../fish/guestfish-actions.pod:3034
12552 msgid ""
12553 "This call is intended for programs that want to efficiently list a directory "
12554 "contents without making many round-trips.  See also L</lstatlist> for a "
12555 "similarly efficient call for getting standard stats.  Very long directory "
12556 "listings might cause the protocol message size to be exceeded, causing this "
12557 "call to fail.  The caller must split up such requests into smaller groups of "
12558 "names."
12559 msgstr ""
12560
12561 #. type: =head2
12562 #: ../fish/guestfish-actions.pod:3042
12563 msgid "mkdir"
12564 msgstr "mkdir"
12565
12566 #. type: verbatim
12567 #: ../fish/guestfish-actions.pod:3044
12568 #, no-wrap
12569 msgid ""
12570 " mkdir path\n"
12571 "\n"
12572 msgstr ""
12573 " mkdir шлях\n"
12574 "\n"
12575
12576 #. type: textblock
12577 #: ../fish/guestfish-actions.pod:3046 ../src/guestfs-actions.pod:4577
12578 msgid "Create a directory named C<path>."
12579 msgstr ""
12580
12581 #. type: =head2
12582 #: ../fish/guestfish-actions.pod:3048
12583 msgid "mkdir-mode"
12584 msgstr "mkdir-mode"
12585
12586 #. type: verbatim
12587 #: ../fish/guestfish-actions.pod:3050
12588 #, no-wrap
12589 msgid ""
12590 " mkdir-mode path mode\n"
12591 "\n"
12592 msgstr ""
12593 " mkdir-mode шлях режим\n"
12594 "\n"
12595
12596 #. type: textblock
12597 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4590
12598 msgid ""
12599 "This command creates a directory, setting the initial permissions of the "
12600 "directory to C<mode>."
12601 msgstr ""
12602
12603 #. type: textblock
12604 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4593
12605 msgid ""
12606 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12607 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12608 "other ways."
12609 msgstr ""
12610
12611 #. type: textblock
12612 #: ../fish/guestfish-actions.pod:3059
12613 msgid "See also L</mkdir>, L</umask>"
12614 msgstr "Див. також L</mkdir>, L</umask>"
12615
12616 #. type: =head2
12617 #: ../fish/guestfish-actions.pod:3061
12618 msgid "mkdir-p"
12619 msgstr "mkdir-p"
12620
12621 #. type: verbatim
12622 #: ../fish/guestfish-actions.pod:3063
12623 #, no-wrap
12624 msgid ""
12625 " mkdir-p path\n"
12626 "\n"
12627 msgstr ""
12628 " mkdir-p шлях\n"
12629 "\n"
12630
12631 #. type: textblock
12632 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4609
12633 msgid ""
12634 "Create a directory named C<path>, creating any parent directories as "
12635 "necessary.  This is like the C<mkdir -p> shell command."
12636 msgstr ""
12637
12638 #. type: =head2
12639 #: ../fish/guestfish-actions.pod:3068
12640 msgid "mkdtemp"
12641 msgstr "mkdtemp"
12642
12643 #. type: verbatim
12644 #: ../fish/guestfish-actions.pod:3070
12645 #, no-wrap
12646 msgid ""
12647 " mkdtemp template\n"
12648 "\n"
12649 msgstr ""
12650 " mkdtemp шаблон\n"
12651 "\n"
12652
12653 #. type: textblock
12654 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4622
12655 msgid ""
12656 "This command creates a temporary directory.  The C<template> parameter "
12657 "should be a full pathname for the temporary directory name with the final "
12658 "six characters being \"XXXXXX\"."
12659 msgstr ""
12660
12661 #. type: textblock
12662 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4627
12663 msgid ""
12664 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12665 "being suitable for Windows filesystems."
12666 msgstr ""
12667
12668 #. type: textblock
12669 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4630
12670 msgid "The name of the temporary directory that was created is returned."
12671 msgstr ""
12672
12673 #. type: textblock
12674 #: ../fish/guestfish-actions.pod:3083 ../src/guestfs-actions.pod:4633
12675 msgid "The temporary directory is created with mode 0700 and is owned by root."
12676 msgstr ""
12677
12678 #. type: textblock
12679 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4636
12680 msgid ""
12681 "The caller is responsible for deleting the temporary directory and its "
12682 "contents after use."
12683 msgstr ""
12684
12685 #. type: textblock
12686 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4639
12687 msgid "See also: L<mkdtemp(3)>"
12688 msgstr "Див. також L<mkdtemp(3)>"
12689
12690 #. type: =head2
12691 #: ../fish/guestfish-actions.pod:3091
12692 msgid "mke2fs-J"
12693 msgstr "mke2fs-J"
12694
12695 #. type: verbatim
12696 #: ../fish/guestfish-actions.pod:3093
12697 #, no-wrap
12698 msgid ""
12699 " mke2fs-J fstype blocksize device journal\n"
12700 "\n"
12701 msgstr ""
12702
12703 #. type: textblock
12704 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4655
12705 msgid ""
12706 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12707 "C<journal>.  It is equivalent to the command:"
12708 msgstr ""
12709
12710 #. type: verbatim
12711 #: ../fish/guestfish-actions.pod:3099 ../src/guestfs-actions.pod:4659
12712 #, no-wrap
12713 msgid ""
12714 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12715 "\n"
12716 msgstr ""
12717 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
12718 "\n"
12719
12720 #. type: textblock
12721 #: ../fish/guestfish-actions.pod:3101
12722 msgid "See also L</mke2journal>."
12723 msgstr "Див. також L</mke2journal>."
12724
12725 #. type: =head2
12726 #: ../fish/guestfish-actions.pod:3103
12727 msgid "mke2fs-JL"
12728 msgstr "mke2fs-JL"
12729
12730 #. type: verbatim
12731 #: ../fish/guestfish-actions.pod:3105
12732 #, no-wrap
12733 msgid ""
12734 " mke2fs-JL fstype blocksize device label\n"
12735 "\n"
12736 msgstr ""
12737
12738 #. type: textblock
12739 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4676
12740 msgid ""
12741 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12742 "the journal labeled C<label>."
12743 msgstr ""
12744
12745 #. type: textblock
12746 #: ../fish/guestfish-actions.pod:3110
12747 msgid "See also L</mke2journal-L>."
12748 msgstr "Див. також L</mke2journal-L>."
12749
12750 #. type: =head2
12751 #: ../fish/guestfish-actions.pod:3112
12752 msgid "mke2fs-JU"
12753 msgstr "mke2fs-JU"
12754
12755 #. type: verbatim
12756 #: ../fish/guestfish-actions.pod:3114
12757 #, no-wrap
12758 msgid ""
12759 " mke2fs-JU fstype blocksize device uuid\n"
12760 "\n"
12761 msgstr ""
12762
12763 #. type: textblock
12764 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4694
12765 msgid ""
12766 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12767 "the journal with UUID C<uuid>."
12768 msgstr ""
12769
12770 #. type: textblock
12771 #: ../fish/guestfish-actions.pod:3119
12772 msgid "See also L</mke2journal-U>."
12773 msgstr "Див. також L</mke2journal-U>."
12774
12775 #. type: =head2
12776 #: ../fish/guestfish-actions.pod:3121
12777 msgid "mke2journal"
12778 msgstr "mke2journal"
12779
12780 #. type: verbatim
12781 #: ../fish/guestfish-actions.pod:3123
12782 #, no-wrap
12783 msgid ""
12784 " mke2journal blocksize device\n"
12785 "\n"
12786 msgstr ""
12787
12788 #. type: textblock
12789 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4710
12790 msgid ""
12791 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12792 "command:"
12793 msgstr ""
12794
12795 #. type: verbatim
12796 #: ../fish/guestfish-actions.pod:3128 ../src/guestfs-actions.pod:4713
12797 #, no-wrap
12798 msgid ""
12799 " mke2fs -O journal_dev -b blocksize device\n"
12800 "\n"
12801 msgstr ""
12802
12803 #. type: =head2
12804 #: ../fish/guestfish-actions.pod:3130
12805 msgid "mke2journal-L"
12806 msgstr "mke2journal-L"
12807
12808 #. type: verbatim
12809 #: ../fish/guestfish-actions.pod:3132
12810 #, no-wrap
12811 msgid ""
12812 " mke2journal-L blocksize label device\n"
12813 "\n"
12814 msgstr ""
12815
12816 #. type: textblock
12817 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4727
12818 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12819 msgstr ""
12820
12821 #. type: =head2
12822 #: ../fish/guestfish-actions.pod:3136
12823 msgid "mke2journal-U"
12824 msgstr "mke2journal-U"
12825
12826 #. type: verbatim
12827 #: ../fish/guestfish-actions.pod:3138
12828 #, no-wrap
12829 msgid ""
12830 " mke2journal-U blocksize uuid device\n"
12831 "\n"
12832 msgstr ""
12833
12834 #. type: textblock
12835 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4741
12836 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12837 msgstr ""
12838
12839 #. type: =head2
12840 #: ../fish/guestfish-actions.pod:3142
12841 msgid "mkfifo"
12842 msgstr "mkfifo"
12843
12844 #. type: verbatim
12845 #: ../fish/guestfish-actions.pod:3144
12846 #, no-wrap
12847 msgid ""
12848 " mkfifo mode path\n"
12849 "\n"
12850 msgstr ""
12851 " mkfifo режим шлях\n"
12852 "\n"
12853
12854 #. type: textblock
12855 #: ../fish/guestfish-actions.pod:3146
12856 msgid ""
12857 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12858 "is just a convenient wrapper around L</mknod>."
12859 msgstr ""
12860
12861 #. type: =head2
12862 #: ../fish/guestfish-actions.pod:3152
12863 msgid "mkfs"
12864 msgstr "mkfs"
12865
12866 #. type: verbatim
12867 #: ../fish/guestfish-actions.pod:3154
12868 #, no-wrap
12869 msgid ""
12870 " mkfs fstype device\n"
12871 "\n"
12872 msgstr ""
12873 " mkfs тип_файлової_системи пристрій\n"
12874 "\n"
12875
12876 #. type: textblock
12877 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4771
12878 msgid ""
12879 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12880 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12881 msgstr ""
12882
12883 #. type: =head2
12884 #: ../fish/guestfish-actions.pod:3160
12885 msgid "mkfs-b"
12886 msgstr "mkfs-b"
12887
12888 #. type: verbatim
12889 #: ../fish/guestfish-actions.pod:3162
12890 #, no-wrap
12891 msgid ""
12892 " mkfs-b fstype blocksize device\n"
12893 "\n"
12894 msgstr ""
12895
12896 #. type: textblock
12897 #: ../fish/guestfish-actions.pod:3164
12898 msgid ""
12899 "This call is similar to L</mkfs>, but it allows you to control the block "
12900 "size of the resulting filesystem.  Supported block sizes depend on the "
12901 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12902 msgstr ""
12903
12904 #. type: textblock
12905 #: ../fish/guestfish-actions.pod:3169 ../fish/guestfish-actions.pod:3196
12906 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4837
12907 msgid ""
12908 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12909 "cluster size."
12910 msgstr ""
12911
12912 #. type: textblock
12913 #: ../fish/guestfish-actions.pod:3172
12914 msgid ""
12915 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12916 "instead."
12917 msgstr ""
12918
12919 #. type: =head2
12920 #: ../fish/guestfish-actions.pod:3179
12921 msgid "mkfs-opts"
12922 msgstr "mkfs-opts"
12923
12924 #. type: verbatim
12925 #: ../fish/guestfish-actions.pod:3181
12926 #, no-wrap
12927 msgid ""
12928 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
12929 "\n"
12930 msgstr ""
12931
12932 #. type: textblock
12933 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4824
12934 msgid ""
12935 "This function creates a filesystem on C<device>.  The filesystem type is "
12936 "C<fstype>, for example C<ext3>."
12937 msgstr ""
12938
12939 #. type: =item
12940 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4831
12941 msgid "C<blocksize>"
12942 msgstr "C<blocksize>"
12943
12944 #. type: textblock
12945 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4833
12946 msgid ""
12947 "The filesystem block size.  Supported block sizes depend on the filesystem "
12948 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12949 "filesystems."
12950 msgstr ""
12951
12952 #. type: textblock
12953 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4840
12954 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12955 msgstr ""
12956
12957 #. type: =item
12958 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4842
12959 msgid "C<features>"
12960 msgstr "C<features>"
12961
12962 #. type: textblock
12963 #: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4844
12964 msgid "This passes the I<-O> parameter to the external mkfs program."
12965 msgstr ""
12966
12967 #. type: textblock
12968 #: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4846
12969 msgid ""
12970 "For certain filesystem types, this allows extra filesystem features to be "
12971 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12972 msgstr ""
12973
12974 #. type: textblock
12975 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4850
12976 msgid ""
12977 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12978 "type."
12979 msgstr ""
12980
12981 #. type: =item
12982 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4853
12983 msgid "C<inode>"
12984 msgstr "C<inode>"
12985
12986 #. type: textblock
12987 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4855
12988 msgid ""
12989 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12990 "sets the inode size (only for ext2/3/4 filesystems at present)."
12991 msgstr ""
12992
12993 #. type: =item
12994 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4858
12995 msgid "C<sectorsize>"
12996 msgstr "C<sectorsize>"
12997
12998 #. type: textblock
12999 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4860
13000 msgid ""
13001 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13002 "sets sector size for ufs filesystem."
13003 msgstr ""
13004
13005 #. type: =head2
13006 #: ../fish/guestfish-actions.pod:3226
13007 msgid "mkmountpoint"
13008 msgstr "mkmountpoint"
13009
13010 #. type: verbatim
13011 #: ../fish/guestfish-actions.pod:3228
13012 #, no-wrap
13013 msgid ""
13014 " mkmountpoint exemptpath\n"
13015 "\n"
13016 msgstr ""
13017
13018 #. type: textblock
13019 #: ../fish/guestfish-actions.pod:3230
13020 msgid ""
13021 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13022 "to create extra mountpoints before mounting the first filesystem."
13023 msgstr ""
13024
13025 #. type: textblock
13026 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4903
13027 msgid ""
13028 "These calls are I<only> necessary in some very limited circumstances, mainly "
13029 "the case where you want to mount a mix of unrelated and/or read-only "
13030 "filesystems together."
13031 msgstr ""
13032
13033 #. type: textblock
13034 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4907
13035 msgid ""
13036 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13037 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13038 "inside that.  You can unpack this as follows in guestfish:"
13039 msgstr ""
13040
13041 #. type: verbatim
13042 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4912
13043 #, no-wrap
13044 msgid ""
13045 " add-ro Fedora-11-i686-Live.iso\n"
13046 " run\n"
13047 " mkmountpoint /cd\n"
13048 " mkmountpoint /sqsh\n"
13049 " mkmountpoint /ext3fs\n"
13050 " mount /dev/sda /cd\n"
13051 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13052 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13053 "\n"
13054 msgstr ""
13055 " add-ro Fedora-11-i686-Live.iso\n"
13056 " run\n"
13057 " mkmountpoint /cd\n"
13058 " mkmountpoint /sqsh\n"
13059 " mkmountpoint /ext3fs\n"
13060 " mount /dev/sda /cd\n"
13061 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13062 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13063 "\n"
13064
13065 #. type: textblock
13066 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4921
13067 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13068 msgstr ""
13069
13070 #. type: textblock
13071 #: ../fish/guestfish-actions.pod:3254
13072 msgid ""
13073 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13074 "unexpected errors if you try to mix these calls.  It is safest to manually "
13075 "unmount filesystems and remove mountpoints after use."
13076 msgstr ""
13077
13078 #. type: textblock
13079 #: ../fish/guestfish-actions.pod:3258
13080 msgid ""
13081 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13082 "for this to work for manual mountpoints, you must ensure that the innermost "
13083 "mountpoints have the longest pathnames, as in the example code above."
13084 msgstr ""
13085
13086 #. type: textblock
13087 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4932
13088 msgid ""
13089 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13090 msgstr ""
13091
13092 #. type: textblock
13093 #: ../fish/guestfish-actions.pod:3265
13094 msgid ""
13095 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13096 "L</umount-all> to be called when the handle is closed which can also trigger "
13097 "these issues."
13098 msgstr ""
13099
13100 #. type: =head2
13101 #: ../fish/guestfish-actions.pod:3269
13102 msgid "mknod"
13103 msgstr "mknod"
13104
13105 #. type: verbatim
13106 #: ../fish/guestfish-actions.pod:3271
13107 #, no-wrap
13108 msgid ""
13109 " mknod mode devmajor devminor path\n"
13110 "\n"
13111 msgstr ""
13112
13113 #. type: textblock
13114 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:4951
13115 msgid ""
13116 "This call creates block or character special devices, or named pipes (FIFOs)."
13117 msgstr ""
13118
13119 #. type: textblock
13120 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4954
13121 msgid ""
13122 "The C<mode> parameter should be the mode, using the standard constants.  "
13123 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13124 "used when creating block and character special devices."
13125 msgstr ""
13126
13127 #. type: textblock
13128 #: ../fish/guestfish-actions.pod:3281
13129 msgid ""
13130 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13131 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13132 "regular file).  These constants are available in the standard Linux header "
13133 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13134 "wrappers around this command which bitwise OR in the appropriate constant "
13135 "for you."
13136 msgstr ""
13137
13138 #. type: =head2
13139 #: ../fish/guestfish-actions.pod:3291
13140 msgid "mknod-b"
13141 msgstr "mknod-b"
13142
13143 #. type: verbatim
13144 #: ../fish/guestfish-actions.pod:3293
13145 #, no-wrap
13146 msgid ""
13147 " mknod-b mode devmajor devminor path\n"
13148 "\n"
13149 msgstr ""
13150
13151 #. type: textblock
13152 #: ../fish/guestfish-actions.pod:3295
13153 msgid ""
13154 "This call creates a block device node called C<path> with mode C<mode> and "
13155 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13156 "wrapper around L</mknod>."
13157 msgstr ""
13158
13159 #. type: =head2
13160 #: ../fish/guestfish-actions.pod:3301
13161 msgid "mknod-c"
13162 msgstr "mknod-c"
13163
13164 #. type: verbatim
13165 #: ../fish/guestfish-actions.pod:3303
13166 #, no-wrap
13167 msgid ""
13168 " mknod-c mode devmajor devminor path\n"
13169 "\n"
13170 msgstr ""
13171
13172 #. type: textblock
13173 #: ../fish/guestfish-actions.pod:3305
13174 msgid ""
13175 "This call creates a char device node called C<path> with mode C<mode> and "
13176 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13177 "wrapper around L</mknod>."
13178 msgstr ""
13179
13180 #. type: =head2
13181 #: ../fish/guestfish-actions.pod:3311
13182 msgid "mkswap"
13183 msgstr "mkswap"
13184
13185 #. type: verbatim
13186 #: ../fish/guestfish-actions.pod:3313
13187 #, no-wrap
13188 msgid ""
13189 " mkswap device\n"
13190 "\n"
13191 msgstr ""
13192 " mkswap пристрій\n"
13193 "\n"
13194
13195 #. type: textblock
13196 #: ../fish/guestfish-actions.pod:3315 ../src/guestfs-actions.pod:5017
13197 msgid "Create a swap partition on C<device>."
13198 msgstr ""
13199
13200 #. type: =head2
13201 #: ../fish/guestfish-actions.pod:3317
13202 msgid "mkswap-L"
13203 msgstr "mkswap-L"
13204
13205 #. type: verbatim
13206 #: ../fish/guestfish-actions.pod:3319
13207 #, no-wrap
13208 msgid ""
13209 " mkswap-L label device\n"
13210 "\n"
13211 msgstr ""
13212 " mkswap-L мітка пристрій\n"
13213 "\n"
13214
13215 #. type: textblock
13216 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5030
13217 msgid "Create a swap partition on C<device> with label C<label>."
13218 msgstr ""
13219
13220 #. type: textblock
13221 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5032
13222 msgid ""
13223 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13224 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13225 "or swap tools."
13226 msgstr ""
13227
13228 #. type: =head2
13229 #: ../fish/guestfish-actions.pod:3327
13230 msgid "mkswap-U"
13231 msgstr "mkswap-U"
13232
13233 #. type: verbatim
13234 #: ../fish/guestfish-actions.pod:3329
13235 #, no-wrap
13236 msgid ""
13237 " mkswap-U uuid device\n"
13238 "\n"
13239 msgstr ""
13240 " mkswap-U uuid пристрій\n"
13241 "\n"
13242
13243 #. type: textblock
13244 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5047
13245 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13246 msgstr ""
13247
13248 #. type: =head2
13249 #: ../fish/guestfish-actions.pod:3333
13250 msgid "mkswap-file"
13251 msgstr "mkswap-file"
13252
13253 #. type: verbatim
13254 #: ../fish/guestfish-actions.pod:3335
13255 #, no-wrap
13256 msgid ""
13257 " mkswap-file path\n"
13258 "\n"
13259 msgstr ""
13260 " mkswap-file шлях\n"
13261 "\n"
13262
13263 #. type: textblock
13264 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5059
13265 msgid "Create a swap file."
13266 msgstr "Створити файл резервної пам’яті."
13267
13268 #. type: textblock
13269 #: ../fish/guestfish-actions.pod:3339
13270 msgid ""
13271 "This command just writes a swap file signature to an existing file.  To "
13272 "create the file itself, use something like L</fallocate>."
13273 msgstr ""
13274
13275 #. type: =head2
13276 #: ../fish/guestfish-actions.pod:3342
13277 msgid "modprobe"
13278 msgstr "modprobe"
13279
13280 #. type: verbatim
13281 #: ../fish/guestfish-actions.pod:3344
13282 #, no-wrap
13283 msgid ""
13284 " modprobe modulename\n"
13285 "\n"
13286 msgstr ""
13287 " modprobe назва_модуля\n"
13288 "\n"
13289
13290 #. type: textblock
13291 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5074
13292 msgid "This loads a kernel module in the appliance."
13293 msgstr ""
13294
13295 #. type: textblock
13296 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5076
13297 msgid ""
13298 "The kernel module must have been whitelisted when libguestfs was built (see "
13299 "C<appliance/kmod.whitelist.in> in the source)."
13300 msgstr ""
13301
13302 #. type: =head2
13303 #: ../fish/guestfish-actions.pod:3351
13304 msgid "mount"
13305 msgstr "mount"
13306
13307 #. type: verbatim
13308 #: ../fish/guestfish-actions.pod:3353
13309 #, no-wrap
13310 msgid ""
13311 " mount device mountpoint\n"
13312 "\n"
13313 msgstr ""
13314 " mount пристрій точка_монтування\n"
13315 "\n"
13316
13317 #. type: textblock
13318 #: ../fish/guestfish-actions.pod:3355 ../src/guestfs-actions.pod:5090
13319 msgid ""
13320 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13321 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13322 "those block devices contain partitions, they will have the usual names (eg. "
13323 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13324 msgstr ""
13325
13326 #. type: textblock
13327 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
13328 msgid ""
13329 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13330 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13331 "mounted on directories which already exist."
13332 msgstr ""
13333
13334 #. type: textblock
13335 #: ../fish/guestfish-actions.pod:3366 ../src/guestfs-actions.pod:5101
13336 msgid ""
13337 "The mounted filesystem is writable, if we have sufficient permissions on the "
13338 "underlying device."
13339 msgstr ""
13340
13341 #. type: textblock
13342 #: ../fish/guestfish-actions.pod:3369
13343 msgid ""
13344 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13345 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13346 "problems for users.  If your program might need to work with older versions "
13347 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13348 "first parameter if you don't want any options)."
13349 msgstr ""
13350
13351 #. type: =head2
13352 #: ../fish/guestfish-actions.pod:3376
13353 msgid "mount-9p"
13354 msgstr ""
13355
13356 #. type: verbatim
13357 #: ../fish/guestfish-actions.pod:3378
13358 #, no-wrap
13359 msgid ""
13360 " mount-9p mounttag mountpoint [options:..]\n"
13361 "\n"
13362 msgstr ""
13363
13364 #. type: textblock
13365 #: ../fish/guestfish-actions.pod:3380 ../src/guestfs-actions.pod:5130
13366 msgid ""
13367 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13368 "C<mountpoint>."
13369 msgstr ""
13370
13371 #. type: textblock
13372 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5133
13373 msgid ""
13374 "If required, C<trans=virtio> will be automatically added to the options.  "
13375 "Any other options required can be passed in the optional C<options> "
13376 "parameter."
13377 msgstr ""
13378
13379 #. type: =head2
13380 #: ../fish/guestfish-actions.pod:3389
13381 msgid "mount-loop"
13382 msgstr "mount-loop"
13383
13384 #. type: verbatim
13385 #: ../fish/guestfish-actions.pod:3391
13386 #, no-wrap
13387 msgid ""
13388 " mount-loop file mountpoint\n"
13389 "\n"
13390 msgstr ""
13391
13392 #. type: textblock
13393 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5172
13394 msgid ""
13395 "This command lets you mount C<file> (a filesystem image in a file) on a "
13396 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13397 "mountpoint>."
13398 msgstr ""
13399
13400 #. type: =head2
13401 #: ../fish/guestfish-actions.pod:3397
13402 msgid "mount-options"
13403 msgstr "mount-options"
13404
13405 #. type: verbatim
13406 #: ../fish/guestfish-actions.pod:3399
13407 #, no-wrap
13408 msgid ""
13409 " mount-options options device mountpoint\n"
13410 "\n"
13411 msgstr ""
13412
13413 #. type: textblock
13414 #: ../fish/guestfish-actions.pod:3401
13415 msgid ""
13416 "This is the same as the L</mount> command, but it allows you to set the "
13417 "mount options as for the L<mount(8)> I<-o> flag."
13418 msgstr ""
13419
13420 #. type: textblock
13421 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5192
13422 msgid ""
13423 "If the C<options> parameter is an empty string, then no options are passed "
13424 "(all options default to whatever the filesystem uses)."
13425 msgstr ""
13426
13427 #. type: =head2
13428 #: ../fish/guestfish-actions.pod:3409
13429 msgid "mount-ro"
13430 msgstr "mount-ro"
13431
13432 #. type: verbatim
13433 #: ../fish/guestfish-actions.pod:3411
13434 #, no-wrap
13435 msgid ""
13436 " mount-ro device mountpoint\n"
13437 "\n"
13438 msgstr ""
13439 " mount-ro пристрій точка_монтування\n"
13440 "\n"
13441
13442 #. type: textblock
13443 #: ../fish/guestfish-actions.pod:3413
13444 msgid ""
13445 "This is the same as the L</mount> command, but it mounts the filesystem with "
13446 "the read-only (I<-o ro>) flag."
13447 msgstr ""
13448
13449 #. type: =head2
13450 #: ../fish/guestfish-actions.pod:3416
13451 msgid "mount-vfs"
13452 msgstr "mount-vfs"
13453
13454 #. type: verbatim
13455 #: ../fish/guestfish-actions.pod:3418
13456 #, no-wrap
13457 msgid ""
13458 " mount-vfs options vfstype device mountpoint\n"
13459 "\n"
13460 msgstr ""
13461
13462 #. type: textblock
13463 #: ../fish/guestfish-actions.pod:3420
13464 msgid ""
13465 "This is the same as the L</mount> command, but it allows you to set both the "
13466 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13467 msgstr ""
13468
13469 #. type: =head2
13470 #: ../fish/guestfish-actions.pod:3424
13471 msgid "mountpoints"
13472 msgstr "mountpoints"
13473
13474 #. type: verbatim
13475 #: ../fish/guestfish-actions.pod:3426
13476 #, no-wrap
13477 msgid ""
13478 " mountpoints\n"
13479 "\n"
13480 msgstr ""
13481 " mountpoints\n"
13482 "\n"
13483
13484 #. type: textblock
13485 #: ../fish/guestfish-actions.pod:3428
13486 msgid ""
13487 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13488 "This one returns a hash table (map) of device name to directory where the "
13489 "device is mounted."
13490 msgstr ""
13491
13492 #. type: =head2
13493 #: ../fish/guestfish-actions.pod:3432
13494 msgid "mounts"
13495 msgstr "mounts"
13496
13497 #. type: verbatim
13498 #: ../fish/guestfish-actions.pod:3434
13499 #, no-wrap
13500 msgid ""
13501 " mounts\n"
13502 "\n"
13503 msgstr ""
13504 " mounts\n"
13505 "\n"
13506
13507 #. type: textblock
13508 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5253
13509 msgid ""
13510 "This returns the list of currently mounted filesystems.  It returns the list "
13511 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13512 msgstr ""
13513
13514 #. type: textblock
13515 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5256
13516 msgid "Some internal mounts are not shown."
13517 msgstr ""
13518
13519 #. type: textblock
13520 #: ../fish/guestfish-actions.pod:3441
13521 msgid "See also: L</mountpoints>"
13522 msgstr "Див. також L</mountpoints>"
13523
13524 #. type: =head2
13525 #: ../fish/guestfish-actions.pod:3443
13526 msgid "mv"
13527 msgstr "mv"
13528
13529 #. type: verbatim
13530 #: ../fish/guestfish-actions.pod:3445
13531 #, no-wrap
13532 msgid ""
13533 " mv src dest\n"
13534 "\n"
13535 msgstr ""
13536 " mv джерело призначення\n"
13537 "\n"
13538
13539 #. type: textblock
13540 #: ../fish/guestfish-actions.pod:3447 ../src/guestfs-actions.pod:5273
13541 msgid ""
13542 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13543 "destination filename or destination directory."
13544 msgstr ""
13545
13546 #. type: =head2
13547 #: ../fish/guestfish-actions.pod:3450
13548 msgid "ntfs-3g-probe"
13549 msgstr "ntfs-3g-probe"
13550
13551 #. type: verbatim
13552 #: ../fish/guestfish-actions.pod:3452
13553 #, no-wrap
13554 msgid ""
13555 " ntfs-3g-probe true|false device\n"
13556 "\n"
13557 msgstr ""
13558
13559 #. type: textblock
13560 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5287
13561 msgid ""
13562 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13563 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
13564 "write, and some cannot be mounted at all)."
13565 msgstr ""
13566
13567 #. type: textblock
13568 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5291
13569 msgid ""
13570 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13571 "can be mounted read-write.  Set it to false if you want to test if the "
13572 "volume can be mounted read-only."
13573 msgstr ""
13574
13575 #. type: textblock
13576 #: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5295
13577 msgid ""
13578 "The return value is an integer which C<0> if the operation would succeed, or "
13579 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13580 msgstr ""
13581
13582 #. type: =head2
13583 #: ../fish/guestfish-actions.pod:3466
13584 msgid "ntfsresize"
13585 msgstr "ntfsresize"
13586
13587 #. type: verbatim
13588 #: ../fish/guestfish-actions.pod:3468
13589 #, no-wrap
13590 msgid ""
13591 " ntfsresize device\n"
13592 "\n"
13593 msgstr ""
13594 " ntfsresize пристрій\n"
13595 "\n"
13596
13597 #. type: textblock
13598 #: ../fish/guestfish-actions.pod:3470 ../fish/guestfish-actions.pod:3494
13599 #: ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5348
13600 msgid ""
13601 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13602 "size of the underlying device."
13603 msgstr ""
13604
13605 #. type: textblock
13606 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5319
13607 msgid ""
13608 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13609 "consistency check (for safety).  You have to boot into Windows to perform "
13610 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13611 "resize filesystems which have been marked in this way.  So in effect it is "
13612 "not possible to call ntfsresize multiple times on a single filesystem "
13613 "without booting into Windows between each resize."
13614 msgstr ""
13615
13616 #. type: textblock
13617 #: ../fish/guestfish-actions.pod:3481 ../fish/guestfish-actions.pod:3520
13618 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:5374
13619 msgid "See also L<ntfsresize(8)>."
13620 msgstr "Див. також L<ntfsresize(8)>."
13621
13622 #. type: textblock
13623 #: ../fish/guestfish-actions.pod:3483 ../fish/guestfish-actions.pod:3531
13624 msgid ""
13625 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13626 "call instead."
13627 msgstr ""
13628
13629 #. type: =head2
13630 #: ../fish/guestfish-actions.pod:3490
13631 msgid "ntfsresize-opts"
13632 msgstr ""
13633
13634 #. type: verbatim
13635 #: ../fish/guestfish-actions.pod:3492
13636 #, no-wrap
13637 msgid ""
13638 " ntfsresize-opts device [size:..] [force:..]\n"
13639 "\n"
13640 msgstr ""
13641
13642 #. type: textblock
13643 #: ../fish/guestfish-actions.pod:3503 ../src/guestfs-actions.pod:5357
13644 msgid ""
13645 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13646 "resized to fit the container (eg. partition)."
13647 msgstr ""
13648
13649 #. type: =item
13650 #: ../fish/guestfish-actions.pod:3506 ../src/guestfs-actions.pod:5360
13651 msgid "C<force>"
13652 msgstr "C<force>"
13653
13654 #. type: textblock
13655 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5362
13656 msgid ""
13657 "If this option is true, then force the resize of the filesystem even if the "
13658 "filesystem is marked as requiring a consistency check."
13659 msgstr ""
13660
13661 #. type: textblock
13662 #: ../fish/guestfish-actions.pod:3511
13663 msgid ""
13664 "After the resize operation, the filesystem is always marked as requiring a "
13665 "consistency check (for safety).  You have to boot into Windows to perform "
13666 "this check and clear this condition.  If you I<don't> set the C<force> "
13667 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13668 "a single filesystem without booting into Windows between each resize."
13669 msgstr ""
13670
13671 #. type: =head2
13672 #: ../fish/guestfish-actions.pod:3524
13673 msgid "ntfsresize-size"
13674 msgstr "ntfsresize-size"
13675
13676 #. type: verbatim
13677 #: ../fish/guestfish-actions.pod:3526
13678 #, no-wrap
13679 msgid ""
13680 " ntfsresize-size device size\n"
13681 "\n"
13682 msgstr ""
13683
13684 #. type: textblock
13685 #: ../fish/guestfish-actions.pod:3528
13686 msgid ""
13687 "This command is the same as L</ntfsresize> except that it allows you to "
13688 "specify the new size (in bytes) explicitly."
13689 msgstr ""
13690
13691 #. type: =head2
13692 #: ../fish/guestfish-actions.pod:3538
13693 msgid "part-add"
13694 msgstr "part-add"
13695
13696 #. type: verbatim
13697 #: ../fish/guestfish-actions.pod:3540
13698 #, no-wrap
13699 msgid ""
13700 " part-add device prlogex startsect endsect\n"
13701 "\n"
13702 msgstr ""
13703
13704 #. type: textblock
13705 #: ../fish/guestfish-actions.pod:3542
13706 msgid ""
13707 "This command adds a partition to C<device>.  If there is no partition table "
13708 "on the device, call L</part-init> first."
13709 msgstr ""
13710
13711 #. type: textblock
13712 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5435
13713 msgid ""
13714 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13715 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13716 "C<logical>) and C<e> (or C<extended>) partition types."
13717 msgstr ""
13718
13719 #. type: textblock
13720 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5440
13721 msgid ""
13722 "C<startsect> and C<endsect> are the start and end of the partition in "
13723 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13724 "from the end of the disk (C<-1> is the last sector)."
13725 msgstr ""
13726
13727 #. type: textblock
13728 #: ../fish/guestfish-actions.pod:3554
13729 msgid ""
13730 "Creating a partition which covers the whole disk is not so easy.  Use L</"
13731 "part-disk> to do that."
13732 msgstr ""
13733
13734 #. type: =head2
13735 #: ../fish/guestfish-actions.pod:3557
13736 msgid "part-del"
13737 msgstr "part-del"
13738
13739 #. type: verbatim
13740 #: ../fish/guestfish-actions.pod:3559
13741 #, no-wrap
13742 msgid ""
13743 " part-del device partnum\n"
13744 "\n"
13745 msgstr ""
13746
13747 #. type: textblock
13748 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5458
13749 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13750 msgstr ""
13751
13752 #. type: textblock
13753 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5460
13754 msgid ""
13755 "Note that in the case of MBR partitioning, deleting an extended partition "
13756 "also deletes any logical partitions it contains."
13757 msgstr ""
13758
13759 #. type: =head2
13760 #: ../fish/guestfish-actions.pod:3567
13761 msgid "part-disk"
13762 msgstr "part-disk"
13763
13764 #. type: verbatim
13765 #: ../fish/guestfish-actions.pod:3569
13766 #, no-wrap
13767 msgid ""
13768 " part-disk device parttype\n"
13769 "\n"
13770 msgstr ""
13771 " part-disk пристрій тип_розділу\n"
13772 "\n"
13773
13774 #. type: textblock
13775 #: ../fish/guestfish-actions.pod:3571
13776 msgid ""
13777 "This command is simply a combination of L</part-init> followed by L</part-"
13778 "add> to create a single primary partition covering the whole disk."
13779 msgstr ""
13780
13781 #. type: textblock
13782 #: ../fish/guestfish-actions.pod:3575
13783 msgid ""
13784 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13785 "possible values are described in L</part-init>."
13786 msgstr ""
13787
13788 #. type: =head2
13789 #: ../fish/guestfish-actions.pod:3581
13790 msgid "part-get-bootable"
13791 msgstr "part-get-bootable"
13792
13793 #. type: verbatim
13794 #: ../fish/guestfish-actions.pod:3583
13795 #, no-wrap
13796 msgid ""
13797 " part-get-bootable device partnum\n"
13798 "\n"
13799 msgstr ""
13800
13801 #. type: textblock
13802 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5496
13803 msgid ""
13804 "This command returns true if the partition C<partnum> on C<device> has the "
13805 "bootable flag set."
13806 msgstr ""
13807
13808 #. type: textblock
13809 #: ../fish/guestfish-actions.pod:3588
13810 msgid "See also L</part-set-bootable>."
13811 msgstr "Див. також L</part-set-bootable>."
13812
13813 #. type: =head2
13814 #: ../fish/guestfish-actions.pod:3590
13815 msgid "part-get-mbr-id"
13816 msgstr "part-get-mbr-id"
13817
13818 #. type: verbatim
13819 #: ../fish/guestfish-actions.pod:3592
13820 #, no-wrap
13821 msgid ""
13822 " part-get-mbr-id device partnum\n"
13823 "\n"
13824 msgstr ""
13825
13826 #. type: textblock
13827 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5512
13828 msgid ""
13829 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13830 "partition C<partnum>."
13831 msgstr ""
13832
13833 #. type: textblock
13834 #: ../fish/guestfish-actions.pod:3597 ../fish/guestfish-actions.pod:3741
13835 msgid ""
13836 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13837 "undefined results for other partition table types (see L</part-get-"
13838 "parttype>)."
13839 msgstr ""
13840
13841 #. type: =head2
13842 #: ../fish/guestfish-actions.pod:3601
13843 msgid "part-get-parttype"
13844 msgstr "part-get-parttype"
13845
13846 #. type: verbatim
13847 #: ../fish/guestfish-actions.pod:3603
13848 #, no-wrap
13849 msgid ""
13850 " part-get-parttype device\n"
13851 "\n"
13852 msgstr ""
13853 " part-get-parttype пристрій\n"
13854 "\n"
13855
13856 #. type: textblock
13857 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5529
13858 msgid ""
13859 "This command examines the partition table on C<device> and returns the "
13860 "partition table type (format) being used."
13861 msgstr ""
13862
13863 #. type: textblock
13864 #: ../fish/guestfish-actions.pod:3608
13865 msgid ""
13866 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13867 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13868 "possible, although unusual.  See L</part-init> for a full list."
13869 msgstr ""
13870
13871 #. type: =head2
13872 #: ../fish/guestfish-actions.pod:3613
13873 msgid "part-init"
13874 msgstr "part-init"
13875
13876 #. type: verbatim
13877 #: ../fish/guestfish-actions.pod:3615
13878 #, no-wrap
13879 msgid ""
13880 " part-init device parttype\n"
13881 "\n"
13882 msgstr ""
13883
13884 #. type: textblock
13885 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5549
13886 msgid ""
13887 "This creates an empty partition table on C<device> of one of the partition "
13888 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13889 "(for large disks)."
13890 msgstr ""
13891
13892 #. type: textblock
13893 #: ../fish/guestfish-actions.pod:3621
13894 msgid ""
13895 "Initially there are no partitions.  Following this, you should call L</part-"
13896 "add> for each partition required."
13897 msgstr ""
13898
13899 #. type: textblock
13900 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5556
13901 msgid "Possible values for C<parttype> are:"
13902 msgstr ""
13903
13904 #. type: =item
13905 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5560
13906 msgid "B<efi>"
13907 msgstr "B<efi>"
13908
13909 #. type: =item
13910 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5562
13911 msgid "B<gpt>"
13912 msgstr "B<gpt>"
13913
13914 #. type: textblock
13915 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5564
13916 msgid "Intel EFI / GPT partition table."
13917 msgstr ""
13918
13919 #. type: textblock
13920 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5566
13921 msgid ""
13922 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13923 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13924 "the C<mbr> format."
13925 msgstr ""
13926
13927 #. type: =item
13928 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5570
13929 msgid "B<mbr>"
13930 msgstr "B<mbr>"
13931
13932 #. type: =item
13933 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5572
13934 msgid "B<msdos>"
13935 msgstr "B<msdos>"
13936
13937 #. type: textblock
13938 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5574
13939 msgid ""
13940 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13941 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13942 "TB.  For large disks we recommend using C<gpt>."
13943 msgstr ""
13944
13945 #. type: textblock
13946 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5581
13947 msgid ""
13948 "Other partition table types that may work but are not supported include:"
13949 msgstr ""
13950
13951 #. type: =item
13952 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5586
13953 msgid "B<aix>"
13954 msgstr "B<aix>"
13955
13956 #. type: textblock
13957 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5588
13958 msgid "AIX disk labels."
13959 msgstr "Мітки дисків AIX."
13960
13961 #. type: =item
13962 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5590
13963 msgid "B<amiga>"
13964 msgstr "B<amiga>"
13965
13966 #. type: =item
13967 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5592
13968 msgid "B<rdb>"
13969 msgstr "B<rdb>"
13970
13971 #. type: textblock
13972 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5594
13973 msgid "Amiga \"Rigid Disk Block\" format."
13974 msgstr "Формат \"Rigid Disk Block\" Amiga."
13975
13976 #. type: =item
13977 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5596
13978 msgid "B<bsd>"
13979 msgstr "B<bsd>"
13980
13981 #. type: textblock
13982 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5598
13983 msgid "BSD disk labels."
13984 msgstr "Мітки дисків BSD."
13985
13986 #. type: =item
13987 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5600
13988 msgid "B<dasd>"
13989 msgstr "B<dasd>"
13990
13991 #. type: textblock
13992 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5602
13993 msgid "DASD, used on IBM mainframes."
13994 msgstr "DASD, використовувалися у мейнфреймах IBM."
13995
13996 #. type: =item
13997 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5604
13998 msgid "B<dvh>"
13999 msgstr "B<dvh>"
14000
14001 #. type: textblock
14002 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5606
14003 msgid "MIPS/SGI volumes."
14004 msgstr "Томи MIPS/SGI."
14005
14006 #. type: =item
14007 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5608
14008 msgid "B<mac>"
14009 msgstr "B<mac>"
14010
14011 #. type: textblock
14012 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5610
14013 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14014 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14015
14016 #. type: =item
14017 #: ../fish/guestfish-actions.pod:3680 ../src/guestfs-actions.pod:5612
14018 msgid "B<pc98>"
14019 msgstr "B<pc98>"
14020
14021 #. type: textblock
14022 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5614
14023 msgid "NEC PC-98 format, common in Japan apparently."
14024 msgstr "Формат NEC PC-98, поширений у Японії."
14025
14026 #. type: =item
14027 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5616
14028 msgid "B<sun>"
14029 msgstr "B<sun>"
14030
14031 #. type: textblock
14032 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5618
14033 msgid "Sun disk labels."
14034 msgstr "Мітки дисків Sun."
14035
14036 #. type: =head2
14037 #: ../fish/guestfish-actions.pod:3690
14038 msgid "part-list"
14039 msgstr "part-list"
14040
14041 #. type: verbatim
14042 #: ../fish/guestfish-actions.pod:3692
14043 #, no-wrap
14044 msgid ""
14045 " part-list device\n"
14046 "\n"
14047 msgstr ""
14048 " part-list device\n"
14049 "\n"
14050
14051 #. type: textblock
14052 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5632
14053 msgid ""
14054 "This command parses the partition table on C<device> and returns the list of "
14055 "partitions found."
14056 msgstr ""
14057
14058 #. type: textblock
14059 #: ../fish/guestfish-actions.pod:3697 ../src/guestfs-actions.pod:5635
14060 msgid "The fields in the returned structure are:"
14061 msgstr ""
14062
14063 #. type: =item
14064 #: ../fish/guestfish-actions.pod:3701 ../src/guestfs-actions.pod:5639
14065 msgid "B<part_num>"
14066 msgstr "B<part_num>"
14067
14068 #. type: textblock
14069 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5641
14070 msgid "Partition number, counting from 1."
14071 msgstr ""
14072
14073 #. type: =item
14074 #: ../fish/guestfish-actions.pod:3705 ../src/guestfs-actions.pod:5643
14075 msgid "B<part_start>"
14076 msgstr "B<part_start>"
14077
14078 #. type: textblock
14079 #: ../fish/guestfish-actions.pod:3707
14080 msgid ""
14081 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14082 "the device's sector size, see L</blockdev-getss>."
14083 msgstr ""
14084
14085 #. type: =item
14086 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5648
14087 msgid "B<part_end>"
14088 msgstr "B<part_end>"
14089
14090 #. type: textblock
14091 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5650
14092 msgid "End of the partition in bytes."
14093 msgstr ""
14094
14095 #. type: =item
14096 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5652
14097 msgid "B<part_size>"
14098 msgstr "B<part_size>"
14099
14100 #. type: textblock
14101 #: ../fish/guestfish-actions.pod:3716 ../src/guestfs-actions.pod:5654
14102 msgid "Size of the partition in bytes."
14103 msgstr ""
14104
14105 #. type: =head2
14106 #: ../fish/guestfish-actions.pod:3720
14107 msgid "part-set-bootable"
14108 msgstr "part-set-bootable"
14109
14110 #. type: verbatim
14111 #: ../fish/guestfish-actions.pod:3722
14112 #, no-wrap
14113 msgid ""
14114 " part-set-bootable device partnum true|false\n"
14115 "\n"
14116 msgstr ""
14117
14118 #. type: textblock
14119 #: ../fish/guestfish-actions.pod:3724 ../src/guestfs-actions.pod:5672
14120 msgid ""
14121 "This sets the bootable flag on partition numbered C<partnum> on device "
14122 "C<device>.  Note that partitions are numbered from 1."
14123 msgstr ""
14124
14125 #. type: textblock
14126 #: ../fish/guestfish-actions.pod:3727 ../src/guestfs-actions.pod:5675
14127 msgid ""
14128 "The bootable flag is used by some operating systems (notably Windows) to "
14129 "determine which partition to boot from.  It is by no means universally "
14130 "recognized."
14131 msgstr ""
14132
14133 #. type: =head2
14134 #: ../fish/guestfish-actions.pod:3731
14135 msgid "part-set-mbr-id"
14136 msgstr "part-set-mbr-id"
14137
14138 #. type: verbatim
14139 #: ../fish/guestfish-actions.pod:3733
14140 #, no-wrap
14141 msgid ""
14142 " part-set-mbr-id device partnum idbyte\n"
14143 "\n"
14144 msgstr ""
14145
14146 #. type: textblock
14147 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5691
14148 msgid ""
14149 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14150 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14151 "documentation are in fact hexadecimal numbers, but usually documented "
14152 "without any leading \"0x\" which might be confusing."
14153 msgstr ""
14154
14155 #. type: =head2
14156 #: ../fish/guestfish-actions.pod:3745
14157 msgid "part-set-name"
14158 msgstr "part-set-name"
14159
14160 #. type: verbatim
14161 #: ../fish/guestfish-actions.pod:3747
14162 #, no-wrap
14163 msgid ""
14164 " part-set-name device partnum name\n"
14165 "\n"
14166 msgstr ""
14167
14168 #. type: textblock
14169 #: ../fish/guestfish-actions.pod:3749 ../src/guestfs-actions.pod:5713
14170 msgid ""
14171 "This sets the partition name on partition numbered C<partnum> on device "
14172 "C<device>.  Note that partitions are numbered from 1."
14173 msgstr ""
14174
14175 #. type: textblock
14176 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5716
14177 msgid ""
14178 "The partition name can only be set on certain types of partition table.  "
14179 "This works on C<gpt> but not on C<mbr> partitions."
14180 msgstr ""
14181
14182 #. type: =head2
14183 #: ../fish/guestfish-actions.pod:3755
14184 msgid "part-to-dev"
14185 msgstr "part-to-dev"
14186
14187 #. type: verbatim
14188 #: ../fish/guestfish-actions.pod:3757
14189 #, no-wrap
14190 msgid ""
14191 " part-to-dev partition\n"
14192 "\n"
14193 msgstr ""
14194 " part-to-dev розділ\n"
14195 "\n"
14196
14197 #. type: textblock
14198 #: ../fish/guestfish-actions.pod:3759 ../src/guestfs-actions.pod:5729
14199 msgid ""
14200 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14201 "partition number, returning the device name (eg. \"/dev/sdb\")."
14202 msgstr ""
14203
14204 #. type: textblock
14205 #: ../fish/guestfish-actions.pod:3763
14206 msgid ""
14207 "The named partition must exist, for example as a string returned from L</"
14208 "list-partitions>."
14209 msgstr ""
14210
14211 #. type: =head2
14212 #: ../fish/guestfish-actions.pod:3766
14213 msgid "ping-daemon"
14214 msgstr "ping-daemon"
14215
14216 #. type: verbatim
14217 #: ../fish/guestfish-actions.pod:3768
14218 #, no-wrap
14219 msgid ""
14220 " ping-daemon\n"
14221 "\n"
14222 msgstr ""
14223 " ping-daemon\n"
14224 "\n"
14225
14226 #. type: textblock
14227 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5746
14228 msgid ""
14229 "This is a test probe into the guestfs daemon running inside the qemu "
14230 "subprocess.  Calling this function checks that the daemon responds to the "
14231 "ping message, without affecting the daemon or attached block device(s) in "
14232 "any other way."
14233 msgstr ""
14234
14235 #. type: =head2
14236 #: ../fish/guestfish-actions.pod:3775
14237 msgid "pread"
14238 msgstr "pread"
14239
14240 #. type: verbatim
14241 #: ../fish/guestfish-actions.pod:3777
14242 #, no-wrap
14243 msgid ""
14244 " pread path count offset\n"
14245 "\n"
14246 msgstr ""
14247
14248 #. type: textblock
14249 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5764
14250 msgid ""
14251 "This command lets you read part of a file.  It reads C<count> bytes of the "
14252 "file, starting at C<offset>, from file C<path>."
14253 msgstr ""
14254
14255 #. type: textblock
14256 #: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:3797
14257 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5793
14258 msgid ""
14259 "This may read fewer bytes than requested.  For further details see the "
14260 "L<pread(2)> system call."
14261 msgstr ""
14262
14263 #. type: textblock
14264 #: ../fish/guestfish-actions.pod:3785
14265 msgid "See also L</pwrite>, L</pread-device>."
14266 msgstr "Див. також L</pwrite>, L</pread-device>."
14267
14268 #. type: =head2
14269 #: ../fish/guestfish-actions.pod:3790
14270 msgid "pread-device"
14271 msgstr "pread-device"
14272
14273 #. type: verbatim
14274 #: ../fish/guestfish-actions.pod:3792
14275 #, no-wrap
14276 msgid ""
14277 " pread-device device count offset\n"
14278 "\n"
14279 msgstr ""
14280
14281 #. type: textblock
14282 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5790
14283 msgid ""
14284 "This command lets you read part of a file.  It reads C<count> bytes of "
14285 "C<device>, starting at C<offset>."
14286 msgstr ""
14287
14288 #. type: textblock
14289 #: ../fish/guestfish-actions.pod:3800
14290 msgid "See also L</pread>."
14291 msgstr "Див. також L</pread>."
14292
14293 #. type: =head2
14294 #: ../fish/guestfish-actions.pod:3805
14295 msgid "pvcreate"
14296 msgstr "pvcreate"
14297
14298 #. type: verbatim
14299 #: ../fish/guestfish-actions.pod:3807
14300 #, no-wrap
14301 msgid ""
14302 " pvcreate device\n"
14303 "\n"
14304 msgstr ""
14305 " pvcreate пристрій\n"
14306 "\n"
14307
14308 #. type: textblock
14309 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5813
14310 msgid ""
14311 "This creates an LVM physical volume on the named C<device>, where C<device> "
14312 "should usually be a partition name such as C</dev/sda1>."
14313 msgstr ""
14314
14315 #. type: =head2
14316 #: ../fish/guestfish-actions.pod:3813
14317 msgid "pvremove"
14318 msgstr "pvremove"
14319
14320 #. type: verbatim
14321 #: ../fish/guestfish-actions.pod:3815
14322 #, no-wrap
14323 msgid ""
14324 " pvremove device\n"
14325 "\n"
14326 msgstr ""
14327 " pvremove пристрій\n"
14328 "\n"
14329
14330 #. type: textblock
14331 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5827
14332 msgid ""
14333 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14334 "it."
14335 msgstr ""
14336
14337 #. type: textblock
14338 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5830
14339 msgid ""
14340 "The implementation uses the C<pvremove> command which refuses to wipe "
14341 "physical volumes that contain any volume groups, so you have to remove those "
14342 "first."
14343 msgstr ""
14344
14345 #. type: =head2
14346 #: ../fish/guestfish-actions.pod:3824
14347 msgid "pvresize"
14348 msgstr "pvresize"
14349
14350 #. type: verbatim
14351 #: ../fish/guestfish-actions.pod:3826
14352 #, no-wrap
14353 msgid ""
14354 " pvresize device\n"
14355 "\n"
14356 msgstr ""
14357 " pvresize пристрій\n"
14358 "\n"
14359
14360 #. type: textblock
14361 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5844
14362 msgid ""
14363 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14364 "the new size of the underlying device."
14365 msgstr ""
14366
14367 #. type: =head2
14368 #: ../fish/guestfish-actions.pod:3831
14369 msgid "pvresize-size"
14370 msgstr "pvresize-size"
14371
14372 #. type: verbatim
14373 #: ../fish/guestfish-actions.pod:3833
14374 #, no-wrap
14375 msgid ""
14376 " pvresize-size device size\n"
14377 "\n"
14378 msgstr ""
14379
14380 #. type: textblock
14381 #: ../fish/guestfish-actions.pod:3835
14382 msgid ""
14383 "This command is the same as L</pvresize> except that it allows you to "
14384 "specify the new size (in bytes) explicitly."
14385 msgstr ""
14386
14387 #. type: =head2
14388 #: ../fish/guestfish-actions.pod:3838
14389 msgid "pvs"
14390 msgstr "pvs"
14391
14392 #. type: verbatim
14393 #: ../fish/guestfish-actions.pod:3840
14394 #, no-wrap
14395 msgid ""
14396 " pvs\n"
14397 "\n"
14398 msgstr ""
14399 " pvs\n"
14400 "\n"
14401
14402 #. type: textblock
14403 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5870
14404 msgid ""
14405 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14406 "(8)> command."
14407 msgstr ""
14408
14409 #. type: textblock
14410 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5873
14411 msgid ""
14412 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14413 "sda2>)."
14414 msgstr ""
14415
14416 #. type: textblock
14417 #: ../fish/guestfish-actions.pod:3848
14418 msgid "See also L</pvs-full>."
14419 msgstr "Див. також L</pvs-full>."
14420
14421 #. type: =head2
14422 #: ../fish/guestfish-actions.pod:3850
14423 msgid "pvs-full"
14424 msgstr "pvs-full"
14425
14426 #. type: verbatim
14427 #: ../fish/guestfish-actions.pod:3852
14428 #, no-wrap
14429 msgid ""
14430 " pvs-full\n"
14431 "\n"
14432 msgstr ""
14433 " pvs-full\n"
14434 "\n"
14435
14436 #. type: textblock
14437 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:5889
14438 msgid ""
14439 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14440 "(8)> command.  The \"full\" version includes all fields."
14441 msgstr ""
14442
14443 #. type: =head2
14444 #: ../fish/guestfish-actions.pod:3857
14445 msgid "pvuuid"
14446 msgstr "pvuuid"
14447
14448 #. type: verbatim
14449 #: ../fish/guestfish-actions.pod:3859
14450 #, no-wrap
14451 msgid ""
14452 " pvuuid device\n"
14453 "\n"
14454 msgstr ""
14455 " pvuuid пристрій\n"
14456 "\n"
14457
14458 #. type: textblock
14459 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:5904
14460 msgid "This command returns the UUID of the LVM PV C<device>."
14461 msgstr ""
14462
14463 #. type: =head2
14464 #: ../fish/guestfish-actions.pod:3863
14465 msgid "pwrite"
14466 msgstr "pwrite"
14467
14468 #. type: verbatim
14469 #: ../fish/guestfish-actions.pod:3865
14470 #, no-wrap
14471 msgid ""
14472 " pwrite path content offset\n"
14473 "\n"
14474 msgstr ""
14475
14476 #. type: textblock
14477 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5920
14478 msgid ""
14479 "This command writes to part of a file.  It writes the data buffer C<content> "
14480 "to the file C<path> starting at offset C<offset>."
14481 msgstr ""
14482
14483 #. type: textblock
14484 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5923
14485 msgid ""
14486 "This command implements the L<pwrite(2)> system call, and like that system "
14487 "call it may not write the full data requested.  The return value is the "
14488 "number of bytes that were actually written to the file.  This could even be "
14489 "0, although short writes are unlikely for regular files in ordinary "
14490 "circumstances."
14491 msgstr ""
14492
14493 #. type: textblock
14494 #: ../fish/guestfish-actions.pod:3876
14495 msgid "See also L</pread>, L</pwrite-device>."
14496 msgstr "Див. також L</pread>, L</pwrite-device>."
14497
14498 #. type: =head2
14499 #: ../fish/guestfish-actions.pod:3881
14500 msgid "pwrite-device"
14501 msgstr "pwrite-device"
14502
14503 #. type: verbatim
14504 #: ../fish/guestfish-actions.pod:3883
14505 #, no-wrap
14506 msgid ""
14507 " pwrite-device device content offset\n"
14508 "\n"
14509 msgstr ""
14510
14511 #. type: textblock
14512 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5947
14513 msgid ""
14514 "This command writes to part of a device.  It writes the data buffer "
14515 "C<content> to C<device> starting at offset C<offset>."
14516 msgstr ""
14517
14518 #. type: textblock
14519 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5950
14520 msgid ""
14521 "This command implements the L<pwrite(2)> system call, and like that system "
14522 "call it may not write the full data requested (although short writes to disk "
14523 "devices and partitions are probably impossible with standard Linux kernels)."
14524 msgstr ""
14525
14526 #. type: textblock
14527 #: ../fish/guestfish-actions.pod:3893
14528 msgid "See also L</pwrite>."
14529 msgstr "Див. також L</pwrite>."
14530
14531 #. type: =head2
14532 #: ../fish/guestfish-actions.pod:3898
14533 msgid "read-file"
14534 msgstr "read-file"
14535
14536 #. type: verbatim
14537 #: ../fish/guestfish-actions.pod:3900
14538 #, no-wrap
14539 msgid ""
14540 " read-file path\n"
14541 "\n"
14542 msgstr ""
14543 " read-file шлях\n"
14544 "\n"
14545
14546 #. type: textblock
14547 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:5971
14548 msgid "This calls returns the contents of the file C<path> as a buffer."
14549 msgstr ""
14550
14551 #. type: textblock
14552 #: ../fish/guestfish-actions.pod:3905
14553 msgid ""
14554 "Unlike L</cat>, this function can correctly handle files that contain "
14555 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14556 "is limited in the total size of file that can be handled."
14557 msgstr ""
14558
14559 #. type: =head2
14560 #: ../fish/guestfish-actions.pod:3913
14561 msgid "read-lines"
14562 msgstr "read-lines"
14563
14564 #. type: verbatim
14565 #: ../fish/guestfish-actions.pod:3915
14566 #, no-wrap
14567 msgid ""
14568 " read-lines path\n"
14569 "\n"
14570 msgstr ""
14571 " read-lines шлях\n"
14572 "\n"
14573
14574 #. type: textblock
14575 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5996
14576 msgid ""
14577 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14578 "C<CRLF> character sequences are I<not> returned."
14579 msgstr ""
14580
14581 #. type: textblock
14582 #: ../fish/guestfish-actions.pod:3922
14583 msgid ""
14584 "Note that this function cannot correctly handle binary files (specifically, "
14585 "files containing C<\\0> character which is treated as end of line).  For "
14586 "those you need to use the L</read-file> function which has a more complex "
14587 "interface."
14588 msgstr ""
14589
14590 #. type: =head2
14591 #: ../fish/guestfish-actions.pod:3927
14592 msgid "readdir"
14593 msgstr "readdir"
14594
14595 #. type: verbatim
14596 #: ../fish/guestfish-actions.pod:3929
14597 #, no-wrap
14598 msgid ""
14599 " readdir dir\n"
14600 "\n"
14601 msgstr ""
14602 " readdir каталог\n"
14603 "\n"
14604
14605 #. type: textblock
14606 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6016
14607 msgid "This returns the list of directory entries in directory C<dir>."
14608 msgstr ""
14609
14610 #. type: textblock
14611 #: ../fish/guestfish-actions.pod:3933 ../src/guestfs-actions.pod:6018
14612 msgid ""
14613 "All entries in the directory are returned, including C<.> and C<..>.  The "
14614 "entries are I<not> sorted, but returned in the same order as the underlying "
14615 "filesystem."
14616 msgstr ""
14617
14618 #. type: textblock
14619 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6022
14620 msgid ""
14621 "Also this call returns basic file type information about each file.  The "
14622 "C<ftyp> field will contain one of the following characters:"
14623 msgstr ""
14624
14625 #. type: =item
14626 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6027
14627 msgid "'b'"
14628 msgstr "'b'"
14629
14630 #. type: textblock
14631 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6029
14632 msgid "Block special"
14633 msgstr "Блоковий особливий"
14634
14635 #. type: =item
14636 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6031
14637 msgid "'c'"
14638 msgstr "'c'"
14639
14640 #. type: textblock
14641 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6033
14642 msgid "Char special"
14643 msgstr "Символьний особливий"
14644
14645 #. type: =item
14646 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6035
14647 msgid "'d'"
14648 msgstr "'d'"
14649
14650 #. type: textblock
14651 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6037
14652 msgid "Directory"
14653 msgstr "Каталог"
14654
14655 #. type: =item
14656 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6039
14657 msgid "'f'"
14658 msgstr "'f'"
14659
14660 #. type: textblock
14661 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6041
14662 msgid "FIFO (named pipe)"
14663 msgstr "FIFO (іменований канал)"
14664
14665 #. type: =item
14666 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6043
14667 msgid "'l'"
14668 msgstr "'l'"
14669
14670 #. type: textblock
14671 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6045
14672 msgid "Symbolic link"
14673 msgstr "Символічне посилання"
14674
14675 #. type: =item
14676 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6047
14677 msgid "'r'"
14678 msgstr "'r'"
14679
14680 #. type: textblock
14681 #: ../fish/guestfish-actions.pod:3964 ../src/guestfs-actions.pod:6049
14682 msgid "Regular file"
14683 msgstr "Звичайний файл"
14684
14685 #. type: =item
14686 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6051
14687 msgid "'s'"
14688 msgstr "'s'"
14689
14690 #. type: textblock
14691 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:6053
14692 msgid "Socket"
14693 msgstr "Сокет"
14694
14695 #. type: =item
14696 #: ../fish/guestfish-actions.pod:3970 ../src/guestfs-actions.pod:6055
14697 msgid "'u'"
14698 msgstr "'u'"
14699
14700 #. type: textblock
14701 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6057
14702 msgid "Unknown file type"
14703 msgstr "Невідомий тип файла"
14704
14705 #. type: =item
14706 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6059
14707 msgid "'?'"
14708 msgstr ""
14709
14710 #. type: textblock
14711 #: ../fish/guestfish-actions.pod:3976 ../src/guestfs-actions.pod:6061
14712 msgid ""
14713 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14714 msgstr ""
14715
14716 #. type: textblock
14717 #: ../fish/guestfish-actions.pod:3981
14718 msgid ""
14719 "This function is primarily intended for use by programs.  To get a simple "
14720 "list of names, use L</ls>.  To get a printable directory for human "
14721 "consumption, use L</ll>."
14722 msgstr ""
14723
14724 #. type: =head2
14725 #: ../fish/guestfish-actions.pod:3985
14726 msgid "readlink"
14727 msgstr "readlink"
14728
14729 #. type: verbatim
14730 #: ../fish/guestfish-actions.pod:3987
14731 #, no-wrap
14732 msgid ""
14733 " readlink path\n"
14734 "\n"
14735 msgstr ""
14736 " readlink шлях\n"
14737 "\n"
14738
14739 #. type: textblock
14740 #: ../fish/guestfish-actions.pod:3989 ../src/guestfs-actions.pod:6082
14741 msgid "This command reads the target of a symbolic link."
14742 msgstr ""
14743
14744 #. type: =head2
14745 #: ../fish/guestfish-actions.pod:3991
14746 msgid "readlinklist"
14747 msgstr "readlinklist"
14748
14749 #. type: verbatim
14750 #: ../fish/guestfish-actions.pod:3993
14751 #, no-wrap
14752 msgid ""
14753 " readlinklist path 'names ...'\n"
14754 "\n"
14755 msgstr ""
14756
14757 #. type: textblock
14758 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6096
14759 msgid ""
14760 "This call allows you to do a C<readlink> operation on multiple files, where "
14761 "all files are in the directory C<path>.  C<names> is the list of files from "
14762 "this directory."
14763 msgstr ""
14764
14765 #. type: textblock
14766 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6100
14767 msgid ""
14768 "On return you get a list of strings, with a one-to-one correspondence to the "
14769 "C<names> list.  Each string is the value of the symbolic link."
14770 msgstr ""
14771
14772 #. type: textblock
14773 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6104
14774 msgid ""
14775 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14776 "result string is the empty string C<\"\">.  However the whole operation is "
14777 "completed even if there were C<readlink(2)> errors, and so you can call this "
14778 "function with names where you don't know if they are symbolic links already "
14779 "(albeit slightly less efficient)."
14780 msgstr ""
14781
14782 #. type: textblock
14783 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6111
14784 msgid ""
14785 "This call is intended for programs that want to efficiently list a directory "
14786 "contents without making many round-trips.  Very long directory listings "
14787 "might cause the protocol message size to be exceeded, causing this call to "
14788 "fail.  The caller must split up such requests into smaller groups of names."
14789 msgstr ""
14790
14791 #. type: =head2
14792 #: ../fish/guestfish-actions.pod:4017
14793 msgid "realpath"
14794 msgstr "realpath"
14795
14796 #. type: verbatim
14797 #: ../fish/guestfish-actions.pod:4019
14798 #, no-wrap
14799 msgid ""
14800 " realpath path\n"
14801 "\n"
14802 msgstr ""
14803 " realpath шлях\n"
14804 "\n"
14805
14806 #. type: textblock
14807 #: ../fish/guestfish-actions.pod:4021 ../src/guestfs-actions.pod:6130
14808 msgid ""
14809 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14810 "has no C<.>, C<..> or symbolic link path elements."
14811 msgstr ""
14812
14813 #. type: =head2
14814 #: ../fish/guestfish-actions.pod:4024
14815 msgid "removexattr"
14816 msgstr "removexattr"
14817
14818 #. type: verbatim
14819 #: ../fish/guestfish-actions.pod:4026
14820 #, no-wrap
14821 msgid ""
14822 " removexattr xattr path\n"
14823 "\n"
14824 msgstr ""
14825
14826 #. type: textblock
14827 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6145
14828 msgid ""
14829 "This call removes the extended attribute named C<xattr> of the file C<path>."
14830 msgstr ""
14831
14832 #. type: textblock
14833 #: ../fish/guestfish-actions.pod:4031
14834 msgid "See also: L</lremovexattr>, L<attr(5)>."
14835 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
14836
14837 #. type: =head2
14838 #: ../fish/guestfish-actions.pod:4033
14839 msgid "resize2fs"
14840 msgstr "resize2fs"
14841
14842 #. type: verbatim
14843 #: ../fish/guestfish-actions.pod:4035
14844 #, no-wrap
14845 msgid ""
14846 " resize2fs device\n"
14847 "\n"
14848 msgstr ""
14849 " resize2fs пристрій\n"
14850 "\n"
14851
14852 #. type: textblock
14853 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6160
14854 msgid ""
14855 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14856 "underlying device."
14857 msgstr ""
14858
14859 #. type: textblock
14860 #: ../fish/guestfish-actions.pod:4040
14861 msgid ""
14862 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14863 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14864 "gives an error about this and sometimes not.  In any case, it is always safe "
14865 "to call L</e2fsck-f> before calling this function."
14866 msgstr ""
14867
14868 #. type: =head2
14869 #: ../fish/guestfish-actions.pod:4046
14870 msgid "resize2fs-M"
14871 msgstr "resize2fs-M"
14872
14873 #. type: verbatim
14874 #: ../fish/guestfish-actions.pod:4048
14875 #, no-wrap
14876 msgid ""
14877 " resize2fs-M device\n"
14878 "\n"
14879 msgstr ""
14880 " resize2fs-M пристрій\n"
14881 "\n"
14882
14883 #. type: textblock
14884 #: ../fish/guestfish-actions.pod:4050
14885 msgid ""
14886 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14887 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14888 "command."
14889 msgstr ""
14890
14891 #. type: textblock
14892 #: ../fish/guestfish-actions.pod:4054
14893 msgid ""
14894 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14895 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14896 "multiplied together, give the resulting size of the minimal filesystem in "
14897 "bytes."
14898 msgstr ""
14899
14900 #. type: =head2
14901 #: ../fish/guestfish-actions.pod:4059
14902 msgid "resize2fs-size"
14903 msgstr "resize2fs-size"
14904
14905 #. type: verbatim
14906 #: ../fish/guestfish-actions.pod:4061
14907 #, no-wrap
14908 msgid ""
14909 " resize2fs-size device size\n"
14910 "\n"
14911 msgstr ""
14912
14913 #. type: textblock
14914 #: ../fish/guestfish-actions.pod:4063
14915 msgid ""
14916 "This command is the same as L</resize2fs> except that it allows you to "
14917 "specify the new size (in bytes) explicitly."
14918 msgstr ""
14919
14920 #. type: =head2
14921 #: ../fish/guestfish-actions.pod:4066
14922 msgid "rm"
14923 msgstr "rm"
14924
14925 #. type: verbatim
14926 #: ../fish/guestfish-actions.pod:4068
14927 #, no-wrap
14928 msgid ""
14929 " rm path\n"
14930 "\n"
14931 msgstr ""
14932 " rm шлях\n"
14933 "\n"
14934
14935 #. type: textblock
14936 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6212
14937 msgid "Remove the single file C<path>."
14938 msgstr ""
14939
14940 #. type: =head2
14941 #: ../fish/guestfish-actions.pod:4072
14942 msgid "rm-rf"
14943 msgstr "rm-rf"
14944
14945 #. type: verbatim
14946 #: ../fish/guestfish-actions.pod:4074
14947 #, no-wrap
14948 msgid ""
14949 " rm-rf path\n"
14950 "\n"
14951 msgstr ""
14952 " rm-rf шлях\n"
14953 "\n"
14954
14955 #. type: textblock
14956 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6224
14957 msgid ""
14958 "Remove the file or directory C<path>, recursively removing the contents if "
14959 "its a directory.  This is like the C<rm -rf> shell command."
14960 msgstr ""
14961
14962 #. type: =head2
14963 #: ../fish/guestfish-actions.pod:4080
14964 msgid "rmdir"
14965 msgstr "rmdir"
14966
14967 #. type: verbatim
14968 #: ../fish/guestfish-actions.pod:4082
14969 #, no-wrap
14970 msgid ""
14971 " rmdir path\n"
14972 "\n"
14973 msgstr ""
14974 " rmdir шлях\n"
14975 "\n"
14976
14977 #. type: textblock
14978 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6238
14979 msgid "Remove the single directory C<path>."
14980 msgstr ""
14981
14982 #. type: =head2
14983 #: ../fish/guestfish-actions.pod:4086
14984 msgid "rmmountpoint"
14985 msgstr "rmmountpoint"
14986
14987 #. type: verbatim
14988 #: ../fish/guestfish-actions.pod:4088
14989 #, no-wrap
14990 msgid ""
14991 " rmmountpoint exemptpath\n"
14992 "\n"
14993 msgstr ""
14994
14995 #. type: textblock
14996 #: ../fish/guestfish-actions.pod:4090
14997 msgid ""
14998 "This calls removes a mountpoint that was previously created with L</"
14999 "mkmountpoint>.  See L</mkmountpoint> for full details."
15000 msgstr ""
15001
15002 #. type: =head2
15003 #: ../fish/guestfish-actions.pod:4094
15004 msgid "scrub-device"
15005 msgstr "scrub-device"
15006
15007 #. type: verbatim
15008 #: ../fish/guestfish-actions.pod:4096
15009 #, no-wrap
15010 msgid ""
15011 " scrub-device device\n"
15012 "\n"
15013 msgstr ""
15014 " scrub-device пристрій\n"
15015 "\n"
15016
15017 #. type: textblock
15018 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6264
15019 msgid ""
15020 "This command writes patterns over C<device> to make data retrieval more "
15021 "difficult."
15022 msgstr ""
15023
15024 #. type: textblock
15025 #: ../fish/guestfish-actions.pod:4101 ../fish/guestfish-actions.pod:4116
15026 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6267
15027 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6307
15028 msgid ""
15029 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15030 "more details."
15031 msgstr ""
15032
15033 #. type: =head2
15034 #: ../fish/guestfish-actions.pod:4107
15035 msgid "scrub-file"
15036 msgstr "scrub-file"
15037
15038 #. type: verbatim
15039 #: ../fish/guestfish-actions.pod:4109
15040 #, no-wrap
15041 msgid ""
15042 " scrub-file file\n"
15043 "\n"
15044 msgstr ""
15045 " scrub-file файл\n"
15046 "\n"
15047
15048 #. type: textblock
15049 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6283
15050 msgid ""
15051 "This command writes patterns over a file to make data retrieval more "
15052 "difficult."
15053 msgstr ""
15054
15055 #. type: textblock
15056 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6286
15057 msgid "The file is I<removed> after scrubbing."
15058 msgstr ""
15059
15060 #. type: =head2
15061 #: ../fish/guestfish-actions.pod:4119
15062 msgid "scrub-freespace"
15063 msgstr "scrub-freespace"
15064
15065 #. type: verbatim
15066 #: ../fish/guestfish-actions.pod:4121
15067 #, no-wrap
15068 msgid ""
15069 " scrub-freespace dir\n"
15070 "\n"
15071 msgstr ""
15072 " scrub-freespace каталог\n"
15073 "\n"
15074
15075 #. type: textblock
15076 #: ../fish/guestfish-actions.pod:4123
15077 msgid ""
15078 "This command creates the directory C<dir> and then fills it with files until "
15079 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15080 "deletes them.  The intention is to scrub any free space on the partition "
15081 "containing C<dir>."
15082 msgstr ""
15083
15084 #. type: =head2
15085 #: ../fish/guestfish-actions.pod:4132
15086 msgid "set-append"
15087 msgstr "set-append"
15088
15089 #. type: =head2
15090 #: ../fish/guestfish-actions.pod:4134
15091 msgid "append"
15092 msgstr ""
15093
15094 #. type: verbatim
15095 #: ../fish/guestfish-actions.pod:4136
15096 #, no-wrap
15097 msgid ""
15098 " set-append append\n"
15099 "\n"
15100 msgstr ""
15101
15102 #. type: textblock
15103 #: ../fish/guestfish-actions.pod:4138 ../src/guestfs-actions.pod:6320
15104 msgid ""
15105 "This function is used to add additional options to the guest kernel command "
15106 "line."
15107 msgstr ""
15108
15109 #. type: textblock
15110 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6323
15111 msgid ""
15112 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15113 "environment variable."
15114 msgstr ""
15115
15116 #. type: textblock
15117 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6326
15118 msgid ""
15119 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15120 "(libguestfs always adds a few of its own)."
15121 msgstr ""
15122
15123 #. type: =head2
15124 #: ../fish/guestfish-actions.pod:4147
15125 msgid "set-attach-method"
15126 msgstr "set-attach-method"
15127
15128 #. type: =head2
15129 #: ../fish/guestfish-actions.pod:4149
15130 msgid "attach-method"
15131 msgstr ""
15132
15133 #. type: verbatim
15134 #: ../fish/guestfish-actions.pod:4151
15135 #, no-wrap
15136 msgid ""
15137 " set-attach-method attachmethod\n"
15138 "\n"
15139 msgstr ""
15140
15141 #. type: textblock
15142 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6339
15143 msgid ""
15144 "Set the method that libguestfs uses to connect to the back end guestfsd "
15145 "daemon.  Possible methods are:"
15146 msgstr ""
15147
15148 #. type: =item
15149 #: ../fish/guestfish-actions.pod:4158 ../src/guestfs-actions.pod:6344
15150 #: ../src/guestfs.pod:2901
15151 msgid "C<appliance>"
15152 msgstr "C<appliance>"
15153
15154 #. type: textblock
15155 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6346
15156 msgid ""
15157 "Launch an appliance and connect to it.  This is the ordinary method and the "
15158 "default."
15159 msgstr ""
15160
15161 #. type: =item
15162 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6349
15163 msgid "C<unix:I<path>>"
15164 msgstr "C<unix:I<шлях>>"
15165
15166 #. type: textblock
15167 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6351
15168 msgid "Connect to the Unix domain socket I<path>."
15169 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15170
15171 #. type: textblock
15172 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6353
15173 msgid ""
15174 "This method lets you connect to an existing daemon or (using virtio-serial) "
15175 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15176 "RUNNING DAEMONS>."
15177 msgstr ""
15178
15179 #. type: =head2
15180 #: ../fish/guestfish-actions.pod:4173
15181 msgid "set-autosync"
15182 msgstr "set-autosync"
15183
15184 #. type: =head2
15185 #: ../fish/guestfish-actions.pod:4175
15186 msgid "autosync"
15187 msgstr "autosync"
15188
15189 #. type: verbatim
15190 #: ../fish/guestfish-actions.pod:4177
15191 #, no-wrap
15192 msgid ""
15193 " set-autosync true|false\n"
15194 "\n"
15195 msgstr ""
15196 " set-autosync true|false\n"
15197 "\n"
15198
15199 #. type: textblock
15200 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6369
15201 msgid ""
15202 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15203 "effort attempt to make filesystems consistent and synchronized when the "
15204 "handle is closed (also if the program exits without closing handles)."
15205 msgstr ""
15206
15207 #. type: textblock
15208 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6374
15209 msgid ""
15210 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15211 "disabled by default)."
15212 msgstr ""
15213
15214 #. type: =head2
15215 #: ../fish/guestfish-actions.pod:4187
15216 msgid "set-direct"
15217 msgstr "set-direct"
15218
15219 #. type: =head2
15220 #: ../fish/guestfish-actions.pod:4189
15221 msgid "direct"
15222 msgstr "direct"
15223
15224 #. type: verbatim
15225 #: ../fish/guestfish-actions.pod:4191
15226 #, no-wrap
15227 msgid ""
15228 " set-direct true|false\n"
15229 "\n"
15230 msgstr ""
15231 " set-direct true|false\n"
15232 "\n"
15233
15234 #. type: textblock
15235 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6387
15236 msgid ""
15237 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15238 "passed directly through to the appliance once it is launched."
15239 msgstr ""
15240
15241 #. type: textblock
15242 #: ../fish/guestfish-actions.pod:4197
15243 msgid ""
15244 "One consequence of this is that log messages aren't caught by the library "
15245 "and handled by L</set-log-message-callback>, but go straight to stdout."
15246 msgstr ""
15247
15248 #. type: textblock
15249 #: ../fish/guestfish-actions.pod:4201 ../src/guestfs-actions.pod:6395
15250 msgid "You probably don't want to use this unless you know what you are doing."
15251 msgstr ""
15252
15253 #. type: textblock
15254 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6398
15255 msgid "The default is disabled."
15256 msgstr ""
15257
15258 #. type: =head2
15259 #: ../fish/guestfish-actions.pod:4206
15260 msgid "set-e2label"
15261 msgstr "set-e2label"
15262
15263 #. type: verbatim
15264 #: ../fish/guestfish-actions.pod:4208
15265 #, no-wrap
15266 msgid ""
15267 " set-e2label device label\n"
15268 "\n"
15269 msgstr ""
15270
15271 #. type: textblock
15272 #: ../fish/guestfish-actions.pod:4210 ../src/guestfs-actions.pod:6411
15273 msgid ""
15274 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15275 "C<label>.  Filesystem labels are limited to 16 characters."
15276 msgstr ""
15277
15278 #. type: textblock
15279 #: ../fish/guestfish-actions.pod:4214
15280 msgid ""
15281 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15282 "label on a filesystem."
15283 msgstr ""
15284
15285 #. type: =head2
15286 #: ../fish/guestfish-actions.pod:4217
15287 msgid "set-e2uuid"
15288 msgstr "set-e2uuid"
15289
15290 #. type: verbatim
15291 #: ../fish/guestfish-actions.pod:4219
15292 #, no-wrap
15293 msgid ""
15294 " set-e2uuid device uuid\n"
15295 "\n"
15296 msgstr ""
15297
15298 #. type: textblock
15299 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6429
15300 msgid ""
15301 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15302 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15303 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15304 msgstr ""
15305
15306 #. type: textblock
15307 #: ../fish/guestfish-actions.pod:4226
15308 msgid ""
15309 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15310 "UUID of a filesystem."
15311 msgstr ""
15312
15313 #. type: =head2
15314 #: ../fish/guestfish-actions.pod:4229
15315 msgid "set-memsize"
15316 msgstr "set-memsize"
15317
15318 #. type: =head2
15319 #: ../fish/guestfish-actions.pod:4231
15320 msgid "memsize"
15321 msgstr ""
15322
15323 #. type: verbatim
15324 #: ../fish/guestfish-actions.pod:4233
15325 #, no-wrap
15326 msgid ""
15327 " set-memsize memsize\n"
15328 "\n"
15329 msgstr ""
15330
15331 #. type: textblock
15332 #: ../fish/guestfish-actions.pod:4235
15333 msgid ""
15334 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15335 "This only has any effect if called before L</launch>."
15336 msgstr ""
15337
15338 #. type: textblock
15339 #: ../fish/guestfish-actions.pod:4239 ../src/guestfs-actions.pod:6451
15340 msgid ""
15341 "You can also change this by setting the environment variable "
15342 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15343 msgstr ""
15344
15345 #. type: =head2
15346 #: ../fish/guestfish-actions.pod:4246
15347 msgid "set-network"
15348 msgstr "set-network"
15349
15350 #. type: =head2
15351 #: ../fish/guestfish-actions.pod:4248
15352 msgid "network"
15353 msgstr "network"
15354
15355 #. type: verbatim
15356 #: ../fish/guestfish-actions.pod:4250
15357 #, no-wrap
15358 msgid ""
15359 " set-network true|false\n"
15360 "\n"
15361 msgstr ""
15362 " set-network true|false\n"
15363 "\n"
15364
15365 #. type: textblock
15366 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6468
15367 msgid ""
15368 "If C<network> is true, then the network is enabled in the libguestfs "
15369 "appliance.  The default is false."
15370 msgstr ""
15371
15372 #. type: textblock
15373 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6471
15374 msgid ""
15375 "This affects whether commands are able to access the network (see L<guestfs"
15376 "(3)/RUNNING COMMANDS>)."
15377 msgstr ""
15378
15379 #. type: textblock
15380 #: ../fish/guestfish-actions.pod:4258
15381 msgid ""
15382 "You must call this before calling L</launch>, otherwise it has no effect."
15383 msgstr ""
15384
15385 #. type: =head2
15386 #: ../fish/guestfish-actions.pod:4261
15387 msgid "set-path"
15388 msgstr "set-path"
15389
15390 #. type: verbatim
15391 #: ../fish/guestfish-actions.pod:4265
15392 #, no-wrap
15393 msgid ""
15394 " set-path searchpath\n"
15395 "\n"
15396 msgstr ""
15397
15398 #. type: textblock
15399 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6487
15400 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15401 msgstr ""
15402
15403 #. type: textblock
15404 #: ../fish/guestfish-actions.pod:4269 ../src/guestfs-actions.pod:6489
15405 msgid ""
15406 "The default is C<$libdir/guestfs> unless overridden by setting "
15407 "C<LIBGUESTFS_PATH> environment variable."
15408 msgstr ""
15409
15410 #. type: textblock
15411 #: ../fish/guestfish-actions.pod:4272 ../src/guestfs-actions.pod:6492
15412 msgid "Setting C<path> to C<NULL> restores the default path."
15413 msgstr ""
15414
15415 #. type: =head2
15416 #: ../fish/guestfish-actions.pod:4274
15417 msgid "set-pgroup"
15418 msgstr ""
15419
15420 #. type: =head2
15421 #: ../fish/guestfish-actions.pod:4276
15422 msgid "pgroup"
15423 msgstr ""
15424
15425 #. type: verbatim
15426 #: ../fish/guestfish-actions.pod:4278
15427 #, no-wrap
15428 msgid ""
15429 " set-pgroup true|false\n"
15430 "\n"
15431 msgstr ""
15432
15433 #. type: textblock
15434 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6504
15435 msgid ""
15436 "If C<pgroup> is true, child processes are placed into their own process "
15437 "group."
15438 msgstr ""
15439
15440 #. type: textblock
15441 #: ../fish/guestfish-actions.pod:4283 ../src/guestfs-actions.pod:6507
15442 msgid ""
15443 "The practical upshot of this is that signals like C<SIGINT> (from users "
15444 "pressing C<^C>) won't be received by the child process."
15445 msgstr ""
15446
15447 #. type: textblock
15448 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6510
15449 msgid ""
15450 "The default for this flag is false, because usually you want C<^C> to kill "
15451 "the subprocess."
15452 msgstr ""
15453
15454 #. type: =head2
15455 #: ../fish/guestfish-actions.pod:4289
15456 msgid "set-qemu"
15457 msgstr "set-qemu"
15458
15459 #. type: =head2
15460 #: ../fish/guestfish-actions.pod:4291
15461 msgid "qemu"
15462 msgstr "qemu"
15463
15464 #. type: verbatim
15465 #: ../fish/guestfish-actions.pod:4293
15466 #, no-wrap
15467 msgid ""
15468 " set-qemu qemu\n"
15469 "\n"
15470 msgstr ""
15471 " set-qemu qemu\n"
15472 "\n"
15473
15474 #. type: textblock
15475 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6523
15476 msgid "Set the qemu binary that we will use."
15477 msgstr ""
15478
15479 #. type: textblock
15480 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6525
15481 msgid ""
15482 "The default is chosen when the library was compiled by the configure script."
15483 msgstr ""
15484
15485 #. type: textblock
15486 #: ../fish/guestfish-actions.pod:4300 ../src/guestfs-actions.pod:6528
15487 msgid ""
15488 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15489 "variable."
15490 msgstr ""
15491
15492 #. type: textblock
15493 #: ../fish/guestfish-actions.pod:4303 ../src/guestfs-actions.pod:6531
15494 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15495 msgstr ""
15496
15497 #. type: textblock
15498 #: ../fish/guestfish-actions.pod:4305 ../src/guestfs-actions.pod:6533
15499 msgid ""
15500 "Note that you should call this function as early as possible after creating "
15501 "the handle.  This is because some pre-launch operations depend on testing "
15502 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15503 "don't retest features, and so you might see inconsistent results.  Using the "
15504 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15505 "the qemu binary at the same time as the handle is created."
15506 msgstr ""
15507
15508 #. type: =head2
15509 #: ../fish/guestfish-actions.pod:4313
15510 msgid "set-recovery-proc"
15511 msgstr "set-recovery-proc"
15512
15513 #. type: =head2
15514 #: ../fish/guestfish-actions.pod:4315
15515 msgid "recovery-proc"
15516 msgstr "recovery-proc"
15517
15518 #. type: verbatim
15519 #: ../fish/guestfish-actions.pod:4317
15520 #, no-wrap
15521 msgid ""
15522 " set-recovery-proc true|false\n"
15523 "\n"
15524 msgstr ""
15525 " set-recovery-proc true|false\n"
15526 "\n"
15527
15528 #. type: textblock
15529 #: ../fish/guestfish-actions.pod:4319
15530 msgid ""
15531 "If this is called with the parameter C<false> then L</launch> does not "
15532 "create a recovery process.  The purpose of the recovery process is to stop "
15533 "runaway qemu processes in the case where the main program aborts abruptly."
15534 msgstr ""
15535
15536 #. type: textblock
15537 #: ../fish/guestfish-actions.pod:4324
15538 msgid ""
15539 "This only has any effect if called before L</launch>, and the default is "
15540 "true."
15541 msgstr ""
15542
15543 #. type: textblock
15544 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6559
15545 msgid ""
15546 "About the only time when you would want to disable this is if the main "
15547 "process will fork itself into the background (\"daemonize\" itself).  In "
15548 "this case the recovery process thinks that the main program has disappeared "
15549 "and so kills qemu, which is not very helpful."
15550 msgstr ""
15551
15552 #. type: =head2
15553 #: ../fish/guestfish-actions.pod:4333
15554 msgid "set-selinux"
15555 msgstr "set-selinux"
15556
15557 #. type: =head2
15558 #: ../fish/guestfish-actions.pod:4335
15559 msgid "selinux"
15560 msgstr "selinux"
15561
15562 #. type: verbatim
15563 #: ../fish/guestfish-actions.pod:4337
15564 #, no-wrap
15565 msgid ""
15566 " set-selinux true|false\n"
15567 "\n"
15568 msgstr ""
15569 " set-selinux true|false\n"
15570 "\n"
15571
15572 #. type: textblock
15573 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6575
15574 msgid ""
15575 "This sets the selinux flag that is passed to the appliance at boot time.  "
15576 "The default is C<selinux=0> (disabled)."
15577 msgstr ""
15578
15579 #. type: textblock
15580 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6578
15581 msgid ""
15582 "Note that if SELinux is enabled, it is always in Permissive mode "
15583 "(C<enforcing=0>)."
15584 msgstr ""
15585
15586 #. type: =head2
15587 #: ../fish/guestfish-actions.pod:4348
15588 msgid "set-smp"
15589 msgstr ""
15590
15591 #. type: =head2
15592 #: ../fish/guestfish-actions.pod:4350
15593 msgid "smp"
15594 msgstr ""
15595
15596 #. type: verbatim
15597 #: ../fish/guestfish-actions.pod:4352
15598 #, no-wrap
15599 msgid ""
15600 " set-smp smp\n"
15601 "\n"
15602 msgstr ""
15603
15604 #. type: textblock
15605 #: ../fish/guestfish-actions.pod:4354 ../src/guestfs-actions.pod:6594
15606 msgid ""
15607 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15608 "C<1>.  Increasing this may improve performance, though often it has no "
15609 "effect."
15610 msgstr ""
15611
15612 #. type: textblock
15613 #: ../fish/guestfish-actions.pod:4358
15614 msgid "This function must be called before L</launch>."
15615 msgstr ""
15616
15617 #. type: =head2
15618 #: ../fish/guestfish-actions.pod:4360
15619 msgid "set-trace"
15620 msgstr "set-trace"
15621
15622 #. type: =head2
15623 #: ../fish/guestfish-actions.pod:4362
15624 msgid "trace"
15625 msgstr "trace"
15626
15627 #. type: verbatim
15628 #: ../fish/guestfish-actions.pod:4364
15629 #, no-wrap
15630 msgid ""
15631 " set-trace true|false\n"
15632 "\n"
15633 msgstr ""
15634 " set-trace true|false\n"
15635 "\n"
15636
15637 #. type: textblock
15638 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6610
15639 msgid ""
15640 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15641 "return values are traced."
15642 msgstr ""
15643
15644 #. type: textblock
15645 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6613
15646 msgid ""
15647 "If you want to trace C API calls into libguestfs (and other libraries) then "
15648 "possibly a better way is to use the external ltrace(1) command."
15649 msgstr ""
15650
15651 #. type: textblock
15652 #: ../fish/guestfish-actions.pod:4373 ../src/guestfs-actions.pod:6617
15653 msgid ""
15654 "Command traces are disabled unless the environment variable "
15655 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15656 msgstr ""
15657
15658 #. type: textblock
15659 #: ../fish/guestfish-actions.pod:4376
15660 msgid ""
15661 "Trace messages are normally sent to C<stderr>, unless you register a "
15662 "callback to send them somewhere else (see L</set-event-callback>)."
15663 msgstr ""
15664
15665 #. type: =head2
15666 #: ../fish/guestfish-actions.pod:4380
15667 msgid "set-verbose"
15668 msgstr "set-verbose"
15669
15670 #. type: =head2
15671 #: ../fish/guestfish-actions.pod:4382
15672 msgid "verbose"
15673 msgstr "verbose"
15674
15675 #. type: verbatim
15676 #: ../fish/guestfish-actions.pod:4384
15677 #, no-wrap
15678 msgid ""
15679 " set-verbose true|false\n"
15680 "\n"
15681 msgstr ""
15682 " set-verbose true|false\n"
15683 "\n"
15684
15685 #. type: textblock
15686 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6634
15687 msgid "If C<verbose> is true, this turns on verbose messages."
15688 msgstr ""
15689
15690 #. type: textblock
15691 #: ../fish/guestfish-actions.pod:4388 ../src/guestfs-actions.pod:6636
15692 msgid ""
15693 "Verbose messages are disabled unless the environment variable "
15694 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15695 msgstr ""
15696
15697 #. type: textblock
15698 #: ../fish/guestfish-actions.pod:4391
15699 msgid ""
15700 "Verbose messages are normally sent to C<stderr>, unless you register a "
15701 "callback to send them somewhere else (see L</set-event-callback>)."
15702 msgstr ""
15703
15704 #. type: =head2
15705 #: ../fish/guestfish-actions.pod:4395
15706 msgid "setcon"
15707 msgstr "setcon"
15708
15709 #. type: verbatim
15710 #: ../fish/guestfish-actions.pod:4397
15711 #, no-wrap
15712 msgid ""
15713 " setcon context\n"
15714 "\n"
15715 msgstr ""
15716 " setcon контекст\n"
15717 "\n"
15718
15719 #. type: textblock
15720 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6653
15721 msgid ""
15722 "This sets the SELinux security context of the daemon to the string "
15723 "C<context>."
15724 msgstr ""
15725
15726 #. type: textblock
15727 #: ../fish/guestfish-actions.pod:4402 ../src/guestfs-actions.pod:6656
15728 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15729 msgstr ""
15730
15731 #. type: =head2
15732 #: ../fish/guestfish-actions.pod:4404
15733 msgid "setxattr"
15734 msgstr "setxattr"
15735
15736 #. type: verbatim
15737 #: ../fish/guestfish-actions.pod:4406
15738 #, no-wrap
15739 msgid ""
15740 " setxattr xattr val vallen path\n"
15741 "\n"
15742 msgstr ""
15743
15744 #. type: textblock
15745 #: ../fish/guestfish-actions.pod:4408 ../src/guestfs-actions.pod:6671
15746 msgid ""
15747 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15748 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15749 msgstr ""
15750
15751 #. type: textblock
15752 #: ../fish/guestfish-actions.pod:4412
15753 msgid "See also: L</lsetxattr>, L<attr(5)>."
15754 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
15755
15756 #. type: =head2
15757 #: ../fish/guestfish-actions.pod:4414
15758 msgid "sfdisk"
15759 msgstr "sfdisk"
15760
15761 #. type: verbatim
15762 #: ../fish/guestfish-actions.pod:4416
15763 #, no-wrap
15764 msgid ""
15765 " sfdisk device cyls heads sectors 'lines ...'\n"
15766 "\n"
15767 msgstr ""
15768
15769 #. type: textblock
15770 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6698
15771 msgid ""
15772 "This is a direct interface to the L<sfdisk(8)> program for creating "
15773 "partitions on block devices."
15774 msgstr ""
15775
15776 #. type: textblock
15777 #: ../fish/guestfish-actions.pod:4421 ../src/guestfs-actions.pod:6701
15778 msgid "C<device> should be a block device, for example C</dev/sda>."
15779 msgstr ""
15780
15781 #. type: textblock
15782 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6703
15783 msgid ""
15784 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15785 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15786 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15787 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15788 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15789 "the kernel) cannot work out the right geometry and you will need to tell it."
15790 msgstr ""
15791
15792 #. type: textblock
15793 #: ../fish/guestfish-actions.pod:4431 ../src/guestfs-actions.pod:6711
15794 msgid ""
15795 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15796 "refer to the L<sfdisk(8)> manpage."
15797 msgstr ""
15798
15799 #. type: textblock
15800 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6714
15801 msgid ""
15802 "To create a single partition occupying the whole disk, you would pass "
15803 "C<lines> as a single element list, when the single element being the string "
15804 "C<,> (comma)."
15805 msgstr ""
15806
15807 #. type: textblock
15808 #: ../fish/guestfish-actions.pod:4438
15809 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15810 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15811
15812 #. type: textblock
15813 #: ../fish/guestfish-actions.pod:4444 ../fish/guestfish-actions.pod:4467
15814 #: ../fish/guestfish-actions.pod:4489
15815 msgid ""
15816 "I<This function is deprecated.> In new code, use the L</part_add> call "
15817 "instead."
15818 msgstr ""
15819
15820 #. type: =head2
15821 #: ../fish/guestfish-actions.pod:4451
15822 msgid "sfdiskM"
15823 msgstr "sfdiskM"
15824
15825 #. type: verbatim
15826 #: ../fish/guestfish-actions.pod:4453
15827 #, no-wrap
15828 msgid ""
15829 " sfdiskM device 'lines ...'\n"
15830 "\n"
15831 msgstr ""
15832
15833 #. type: textblock
15834 #: ../fish/guestfish-actions.pod:4455
15835 msgid ""
15836 "This is a simplified interface to the L</sfdisk> command, where partition "
15837 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15838 "you don't need to specify the cyls, heads and sectors parameters which were "
15839 "rarely if ever used anyway."
15840 msgstr ""
15841
15842 #. type: textblock
15843 #: ../fish/guestfish-actions.pod:4461
15844 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15845 msgstr ""
15846 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
15847
15848 #. type: =head2
15849 #: ../fish/guestfish-actions.pod:4474
15850 msgid "sfdisk-N"
15851 msgstr "sfdisk-N"
15852
15853 #. type: verbatim
15854 #: ../fish/guestfish-actions.pod:4476
15855 #, no-wrap
15856 msgid ""
15857 " sfdisk-N device partnum cyls heads sectors line\n"
15858 "\n"
15859 msgstr ""
15860
15861 #. type: textblock
15862 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6776
15863 msgid ""
15864 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15865 "(note: C<n> counts from 1)."
15866 msgstr ""
15867
15868 #. type: textblock
15869 #: ../fish/guestfish-actions.pod:4481
15870 msgid ""
15871 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15872 "cyls/heads/sectors parameters."
15873 msgstr ""
15874
15875 #. type: textblock
15876 #: ../fish/guestfish-actions.pod:4484
15877 msgid "See also: L</part-add>"
15878 msgstr "Див. також L</part-add>"
15879
15880 #. type: =head2
15881 #: ../fish/guestfish-actions.pod:4496
15882 msgid "sfdisk-disk-geometry"
15883 msgstr "sfdisk-disk-geometry"
15884
15885 #. type: verbatim
15886 #: ../fish/guestfish-actions.pod:4498
15887 #, no-wrap
15888 msgid ""
15889 " sfdisk-disk-geometry device\n"
15890 "\n"
15891 msgstr ""
15892 " sfdisk-disk-geometry пристрій\n"
15893 "\n"
15894
15895 #. type: textblock
15896 #: ../fish/guestfish-actions.pod:4500
15897 msgid ""
15898 "This displays the disk geometry of C<device> read from the partition table.  "
15899 "Especially in the case where the underlying block device has been resized, "
15900 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15901 "kernel-geometry>)."
15902 msgstr ""
15903
15904 #. type: textblock
15905 #: ../fish/guestfish-actions.pod:4505 ../fish/guestfish-actions.pod:4514
15906 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6818
15907 msgid "The result is in human-readable format, and not designed to be parsed."
15908 msgstr ""
15909
15910 #. type: =head2
15911 #: ../fish/guestfish-actions.pod:4508
15912 msgid "sfdisk-kernel-geometry"
15913 msgstr "sfdisk-kernel-geometry"
15914
15915 #. type: verbatim
15916 #: ../fish/guestfish-actions.pod:4510
15917 #, no-wrap
15918 msgid ""
15919 " sfdisk-kernel-geometry device\n"
15920 "\n"
15921 msgstr ""
15922 " sfdisk-kernel-geometry пристрій\n"
15923 "\n"
15924
15925 #. type: textblock
15926 #: ../fish/guestfish-actions.pod:4512 ../src/guestfs-actions.pod:6816
15927 msgid "This displays the kernel's idea of the geometry of C<device>."
15928 msgstr ""
15929
15930 #. type: =head2
15931 #: ../fish/guestfish-actions.pod:4517
15932 msgid "sfdisk-l"
15933 msgstr "sfdisk-l"
15934
15935 #. type: verbatim
15936 #: ../fish/guestfish-actions.pod:4519
15937 #, no-wrap
15938 msgid ""
15939 " sfdisk-l device\n"
15940 "\n"
15941 msgstr ""
15942 " sfdisk-l пристрій\n"
15943 "\n"
15944
15945 #. type: textblock
15946 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6839
15947 msgid ""
15948 "This displays the partition table on C<device>, in the human-readable output "
15949 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15950 msgstr ""
15951
15952 #. type: textblock
15953 #: ../fish/guestfish-actions.pod:4525
15954 msgid "See also: L</part-list>"
15955 msgstr "Див. також L</part-list>"
15956
15957 #. type: textblock
15958 #: ../fish/guestfish-actions.pod:4527
15959 msgid ""
15960 "I<This function is deprecated.> In new code, use the L</part_list> call "
15961 "instead."
15962 msgstr ""
15963
15964 #. type: =head2
15965 #: ../fish/guestfish-actions.pod:4534
15966 msgid "sh"
15967 msgstr "sh"
15968
15969 #. type: verbatim
15970 #: ../fish/guestfish-actions.pod:4536
15971 #, no-wrap
15972 msgid ""
15973 " sh command\n"
15974 "\n"
15975 msgstr ""
15976 " sh команда\n"
15977 "\n"
15978
15979 #. type: textblock
15980 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6856
15981 msgid ""
15982 "This call runs a command from the guest filesystem via the guest's C</bin/"
15983 "sh>."
15984 msgstr ""
15985
15986 #. type: textblock
15987 #: ../fish/guestfish-actions.pod:4541
15988 msgid "This is like L</command>, but passes the command to:"
15989 msgstr ""
15990
15991 #. type: verbatim
15992 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6861
15993 #, no-wrap
15994 msgid ""
15995 " /bin/sh -c \"command\"\n"
15996 "\n"
15997 msgstr ""
15998
15999 #. type: textblock
16000 #: ../fish/guestfish-actions.pod:4545 ../src/guestfs-actions.pod:6863
16001 msgid ""
16002 "Depending on the guest's shell, this usually results in wildcards being "
16003 "expanded, shell expressions being interpolated and so on."
16004 msgstr ""
16005
16006 #. type: textblock
16007 #: ../fish/guestfish-actions.pod:4549
16008 msgid "All the provisos about L</command> apply to this call."
16009 msgstr ""
16010
16011 #. type: =head2
16012 #: ../fish/guestfish-actions.pod:4551
16013 msgid "sh-lines"
16014 msgstr "sh-lines"
16015
16016 #. type: verbatim
16017 #: ../fish/guestfish-actions.pod:4553
16018 #, no-wrap
16019 msgid ""
16020 " sh-lines command\n"
16021 "\n"
16022 msgstr ""
16023 " sh-lines команда\n"
16024 "\n"
16025
16026 #. type: textblock
16027 #: ../fish/guestfish-actions.pod:4555
16028 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16029 msgstr ""
16030
16031 #. type: textblock
16032 #: ../fish/guestfish-actions.pod:4558
16033 msgid "See also: L</command-lines>"
16034 msgstr "Див. також L</command-lines>"
16035
16036 #. type: =head2
16037 #: ../fish/guestfish-actions.pod:4560
16038 msgid "sleep"
16039 msgstr "sleep"
16040
16041 #. type: verbatim
16042 #: ../fish/guestfish-actions.pod:4562
16043 #, no-wrap
16044 msgid ""
16045 " sleep secs\n"
16046 "\n"
16047 msgstr ""
16048 " sleep час_у_секундах\n"
16049 "\n"
16050
16051 #. type: textblock
16052 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6897
16053 msgid "Sleep for C<secs> seconds."
16054 msgstr ""
16055
16056 #. type: =head2
16057 #: ../fish/guestfish-actions.pod:4566
16058 msgid "stat"
16059 msgstr "stat"
16060
16061 #. type: verbatim
16062 #: ../fish/guestfish-actions.pod:4568
16063 #, no-wrap
16064 msgid ""
16065 " stat path\n"
16066 "\n"
16067 msgstr ""
16068 " stat шлях\n"
16069 "\n"
16070
16071 #. type: textblock
16072 #: ../fish/guestfish-actions.pod:4572 ../src/guestfs-actions.pod:6911
16073 msgid "This is the same as the C<stat(2)> system call."
16074 msgstr ""
16075
16076 #. type: =head2
16077 #: ../fish/guestfish-actions.pod:4574
16078 msgid "statvfs"
16079 msgstr "statvfs"
16080
16081 #. type: verbatim
16082 #: ../fish/guestfish-actions.pod:4576
16083 #, no-wrap
16084 msgid ""
16085 " statvfs path\n"
16086 "\n"
16087 msgstr ""
16088 " statvfs шлях\n"
16089 "\n"
16090
16091 #. type: textblock
16092 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6925
16093 msgid ""
16094 "Returns file system statistics for any mounted file system.  C<path> should "
16095 "be a file or directory in the mounted file system (typically it is the mount "
16096 "point itself, but it doesn't need to be)."
16097 msgstr ""
16098
16099 #. type: textblock
16100 #: ../fish/guestfish-actions.pod:4582 ../src/guestfs-actions.pod:6929
16101 msgid "This is the same as the C<statvfs(2)> system call."
16102 msgstr ""
16103
16104 #. type: =head2
16105 #: ../fish/guestfish-actions.pod:4584
16106 msgid "strings"
16107 msgstr "strings"
16108
16109 #. type: verbatim
16110 #: ../fish/guestfish-actions.pod:4586
16111 #, no-wrap
16112 msgid ""
16113 " strings path\n"
16114 "\n"
16115 msgstr ""
16116 " strings шлях\n"
16117 "\n"
16118
16119 #. type: textblock
16120 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6943
16121 msgid ""
16122 "This runs the L<strings(1)> command on a file and returns the list of "
16123 "printable strings found."
16124 msgstr ""
16125
16126 #. type: =head2
16127 #: ../fish/guestfish-actions.pod:4594
16128 msgid "strings-e"
16129 msgstr "strings-e"
16130
16131 #. type: verbatim
16132 #: ../fish/guestfish-actions.pod:4596
16133 #, no-wrap
16134 msgid ""
16135 " strings-e encoding path\n"
16136 "\n"
16137 msgstr ""
16138 " strings-e кодування шлях\n"
16139 "\n"
16140
16141 #. type: textblock
16142 #: ../fish/guestfish-actions.pod:4598
16143 msgid ""
16144 "This is like the L</strings> command, but allows you to specify the encoding "
16145 "of strings that are looked for in the source file C<path>."
16146 msgstr ""
16147
16148 #. type: textblock
16149 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6966
16150 msgid "Allowed encodings are:"
16151 msgstr "Можливими кодуваннями є:"
16152
16153 #. type: =item
16154 #: ../fish/guestfish-actions.pod:4606 ../src/guestfs-actions.pod:6970
16155 msgid "s"
16156 msgstr "s"
16157
16158 #. type: textblock
16159 #: ../fish/guestfish-actions.pod:4608
16160 msgid ""
16161 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16162 "ISO-8859-X (this is what L</strings> uses)."
16163 msgstr ""
16164
16165 #. type: =item
16166 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6975
16167 msgid "S"
16168 msgstr "S"
16169
16170 #. type: textblock
16171 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6977
16172 msgid "Single 8-bit-byte characters."
16173 msgstr "Окремі 8-бітові-байтові символи."
16174
16175 #. type: =item
16176 #: ../fish/guestfish-actions.pod:4615 ../src/guestfs-actions.pod:6979
16177 msgid "b"
16178 msgstr "b"
16179
16180 #. type: textblock
16181 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6981
16182 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16183 msgstr ""
16184
16185 #. type: =item
16186 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6984
16187 msgid "l (lower case letter L)"
16188 msgstr ""
16189
16190 #. type: textblock
16191 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6986
16192 msgid ""
16193 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16194 "examining binaries in Windows guests."
16195 msgstr ""
16196
16197 #. type: =item
16198 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6989
16199 msgid "B"
16200 msgstr "B"
16201
16202 #. type: textblock
16203 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6991
16204 msgid "32-bit big endian such as UCS-4BE."
16205 msgstr ""
16206
16207 #. type: =item
16208 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:6993
16209 msgid "L"
16210 msgstr "L"
16211
16212 #. type: textblock
16213 #: ../fish/guestfish-actions.pod:4631 ../src/guestfs-actions.pod:6995
16214 msgid "32-bit little endian such as UCS-4LE."
16215 msgstr ""
16216
16217 #. type: textblock
16218 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:6999
16219 msgid "The returned strings are transcoded to UTF-8."
16220 msgstr ""
16221
16222 #. type: =head2
16223 #: ../fish/guestfish-actions.pod:4640
16224 msgid "swapoff-device"
16225 msgstr "swapoff-device"
16226
16227 #. type: verbatim
16228 #: ../fish/guestfish-actions.pod:4642
16229 #, no-wrap
16230 msgid ""
16231 " swapoff-device device\n"
16232 "\n"
16233 msgstr ""
16234 " swapoff-device пристрій\n"
16235 "\n"
16236
16237 #. type: textblock
16238 #: ../fish/guestfish-actions.pod:4644
16239 msgid ""
16240 "This command disables the libguestfs appliance swap device or partition "
16241 "named C<device>.  See L</swapon-device>."
16242 msgstr ""
16243
16244 #. type: =head2
16245 #: ../fish/guestfish-actions.pod:4648
16246 msgid "swapoff-file"
16247 msgstr "swapoff-file"
16248
16249 #. type: verbatim
16250 #: ../fish/guestfish-actions.pod:4650
16251 #, no-wrap
16252 msgid ""
16253 " swapoff-file file\n"
16254 "\n"
16255 msgstr ""
16256 " swapoff-file файл\n"
16257 "\n"
16258
16259 #. type: textblock
16260 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7030
16261 msgid "This command disables the libguestfs appliance swap on file."
16262 msgstr ""
16263
16264 #. type: =head2
16265 #: ../fish/guestfish-actions.pod:4654
16266 msgid "swapoff-label"
16267 msgstr "swapoff-label"
16268
16269 #. type: verbatim
16270 #: ../fish/guestfish-actions.pod:4656
16271 #, no-wrap
16272 msgid ""
16273 " swapoff-label label\n"
16274 "\n"
16275 msgstr ""
16276 " swapoff-label мітка\n"
16277 "\n"
16278
16279 #. type: textblock
16280 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7042
16281 msgid ""
16282 "This command disables the libguestfs appliance swap on labeled swap "
16283 "partition."
16284 msgstr ""
16285
16286 #. type: =head2
16287 #: ../fish/guestfish-actions.pod:4661
16288 msgid "swapoff-uuid"
16289 msgstr "swapoff-uuid"
16290
16291 #. type: verbatim
16292 #: ../fish/guestfish-actions.pod:4663
16293 #, no-wrap
16294 msgid ""
16295 " swapoff-uuid uuid\n"
16296 "\n"
16297 msgstr ""
16298 " swapoff-uuid uuid\n"
16299 "\n"
16300
16301 #. type: textblock
16302 #: ../fish/guestfish-actions.pod:4665 ../src/guestfs-actions.pod:7055
16303 msgid ""
16304 "This command disables the libguestfs appliance swap partition with the given "
16305 "UUID."
16306 msgstr ""
16307
16308 #. type: =head2
16309 #: ../fish/guestfish-actions.pod:4668
16310 msgid "swapon-device"
16311 msgstr "swapon-device"
16312
16313 #. type: verbatim
16314 #: ../fish/guestfish-actions.pod:4670
16315 #, no-wrap
16316 msgid ""
16317 " swapon-device device\n"
16318 "\n"
16319 msgstr ""
16320 " swapon-device пристрій\n"
16321 "\n"
16322
16323 #. type: textblock
16324 #: ../fish/guestfish-actions.pod:4672
16325 msgid ""
16326 "This command enables the libguestfs appliance to use the swap device or "
16327 "partition named C<device>.  The increased memory is made available for all "
16328 "commands, for example those run using L</command> or L</sh>."
16329 msgstr ""
16330
16331 #. type: textblock
16332 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7073
16333 msgid ""
16334 "Note that you should not swap to existing guest swap partitions unless you "
16335 "know what you are doing.  They may contain hibernation information, or other "
16336 "information that the guest doesn't want you to trash.  You also risk leaking "
16337 "information about the host to the guest this way.  Instead, attach a new "
16338 "host device to the guest and swap on that."
16339 msgstr ""
16340
16341 #. type: =head2
16342 #: ../fish/guestfish-actions.pod:4684
16343 msgid "swapon-file"
16344 msgstr "swapon-file"
16345
16346 #. type: verbatim
16347 #: ../fish/guestfish-actions.pod:4686
16348 #, no-wrap
16349 msgid ""
16350 " swapon-file file\n"
16351 "\n"
16352 msgstr ""
16353 " swapon-file файл\n"
16354 "\n"
16355
16356 #. type: textblock
16357 #: ../fish/guestfish-actions.pod:4688
16358 msgid ""
16359 "This command enables swap to a file.  See L</swapon-device> for other notes."
16360 msgstr ""
16361
16362 #. type: =head2
16363 #: ../fish/guestfish-actions.pod:4691
16364 msgid "swapon-label"
16365 msgstr "swapon-label"
16366
16367 #. type: verbatim
16368 #: ../fish/guestfish-actions.pod:4693
16369 #, no-wrap
16370 msgid ""
16371 " swapon-label label\n"
16372 "\n"
16373 msgstr ""
16374 " swapon-label мітка\n"
16375 "\n"
16376
16377 #. type: textblock
16378 #: ../fish/guestfish-actions.pod:4695
16379 msgid ""
16380 "This command enables swap to a labeled swap partition.  See L</swapon-"
16381 "device> for other notes."
16382 msgstr ""
16383
16384 #. type: =head2
16385 #: ../fish/guestfish-actions.pod:4698
16386 msgid "swapon-uuid"
16387 msgstr "swapon-uuid"
16388
16389 #. type: verbatim
16390 #: ../fish/guestfish-actions.pod:4700
16391 #, no-wrap
16392 msgid ""
16393 " swapon-uuid uuid\n"
16394 "\n"
16395 msgstr ""
16396 " swapon-uuid uuid\n"
16397 "\n"
16398
16399 #. type: textblock
16400 #: ../fish/guestfish-actions.pod:4702
16401 msgid ""
16402 "This command enables swap to a swap partition with the given UUID.  See L</"
16403 "swapon-device> for other notes."
16404 msgstr ""
16405
16406 #. type: =head2
16407 #: ../fish/guestfish-actions.pod:4705
16408 msgid "sync"
16409 msgstr "sync"
16410
16411 #. type: verbatim
16412 #: ../fish/guestfish-actions.pod:4707
16413 #, no-wrap
16414 msgid ""
16415 " sync\n"
16416 "\n"
16417 msgstr ""
16418 " sync\n"
16419 "\n"
16420
16421 #. type: textblock
16422 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7128
16423 msgid ""
16424 "This syncs the disk, so that any writes are flushed through to the "
16425 "underlying disk image."
16426 msgstr ""
16427
16428 #. type: textblock
16429 #: ../fish/guestfish-actions.pod:4712 ../src/guestfs-actions.pod:7131
16430 msgid ""
16431 "You should always call this if you have modified a disk image, before "
16432 "closing the handle."
16433 msgstr ""
16434
16435 #. type: =head2
16436 #: ../fish/guestfish-actions.pod:4715
16437 msgid "tail"
16438 msgstr "tail"
16439
16440 #. type: verbatim
16441 #: ../fish/guestfish-actions.pod:4717
16442 #, no-wrap
16443 msgid ""
16444 " tail path\n"
16445 "\n"
16446 msgstr ""
16447 " tail шлях\n"
16448 "\n"
16449
16450 #. type: textblock
16451 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7144
16452 msgid ""
16453 "This command returns up to the last 10 lines of a file as a list of strings."
16454 msgstr ""
16455
16456 #. type: =head2
16457 #: ../fish/guestfish-actions.pod:4725
16458 msgid "tail-n"
16459 msgstr "tail-n"
16460
16461 #. type: verbatim
16462 #: ../fish/guestfish-actions.pod:4727
16463 #, no-wrap
16464 msgid ""
16465 " tail-n nrlines path\n"
16466 "\n"
16467 msgstr ""
16468
16469 #. type: textblock
16470 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7163
16471 msgid ""
16472 "If the parameter C<nrlines> is a positive number, this returns the last "
16473 "C<nrlines> lines of the file C<path>."
16474 msgstr ""
16475
16476 #. type: textblock
16477 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7166
16478 msgid ""
16479 "If the parameter C<nrlines> is a negative number, this returns lines from "
16480 "the file C<path>, starting with the C<-nrlines>th line."
16481 msgstr ""
16482
16483 #. type: =head2
16484 #: ../fish/guestfish-actions.pod:4740
16485 msgid "tar-in"
16486 msgstr "tar-in"
16487
16488 #. type: verbatim
16489 #: ../fish/guestfish-actions.pod:4742
16490 #, no-wrap
16491 msgid ""
16492 " tar-in (tarfile|-) directory\n"
16493 "\n"
16494 msgstr ""
16495 " tar-in (файл_tar|-) каталог\n"
16496 "\n"
16497
16498 #. type: textblock
16499 #: ../fish/guestfish-actions.pod:4744 ../src/guestfs-actions.pod:7187
16500 msgid ""
16501 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16502 "tar file) into C<directory>."
16503 msgstr ""
16504
16505 #. type: textblock
16506 #: ../fish/guestfish-actions.pod:4747
16507 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16508 msgstr ""
16509
16510 #. type: =head2
16511 #: ../fish/guestfish-actions.pod:4752
16512 msgid "tar-out"
16513 msgstr "tar-out"
16514
16515 #. type: verbatim
16516 #: ../fish/guestfish-actions.pod:4754
16517 #, no-wrap
16518 msgid ""
16519 " tar-out directory (tarfile|-)\n"
16520 "\n"
16521 msgstr ""
16522 " tar-out каталог (файл tar|-)\n"
16523 "\n"
16524
16525 #. type: textblock
16526 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7204
16527 msgid ""
16528 "This command packs the contents of C<directory> and downloads it to local "
16529 "file C<tarfile>."
16530 msgstr ""
16531
16532 #. type: textblock
16533 #: ../fish/guestfish-actions.pod:4759
16534 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16535 msgstr ""
16536
16537 #. type: =head2
16538 #: ../fish/guestfish-actions.pod:4764
16539 msgid "tgz-in"
16540 msgstr "tgz-in"
16541
16542 #. type: verbatim
16543 #: ../fish/guestfish-actions.pod:4766
16544 #, no-wrap
16545 msgid ""
16546 " tgz-in (tarball|-) directory\n"
16547 "\n"
16548 msgstr ""
16549 " tgz-in (архів tar|-) каталог\n"
16550 "\n"
16551
16552 #. type: textblock
16553 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7221
16554 msgid ""
16555 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16556 "tar file) into C<directory>."
16557 msgstr ""
16558
16559 #. type: textblock
16560 #: ../fish/guestfish-actions.pod:4771
16561 msgid "To upload an uncompressed tarball, use L</tar-in>."
16562 msgstr ""
16563
16564 #. type: =head2
16565 #: ../fish/guestfish-actions.pod:4775
16566 msgid "tgz-out"
16567 msgstr "tgz-out"
16568
16569 #. type: verbatim
16570 #: ../fish/guestfish-actions.pod:4777
16571 #, no-wrap
16572 msgid ""
16573 " tgz-out directory (tarball|-)\n"
16574 "\n"
16575 msgstr ""
16576 " tgz-out каталог (архів tar|-)\n"
16577 "\n"
16578
16579 #. type: textblock
16580 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7237
16581 msgid ""
16582 "This command packs the contents of C<directory> and downloads it to local "
16583 "file C<tarball>."
16584 msgstr ""
16585
16586 #. type: textblock
16587 #: ../fish/guestfish-actions.pod:4782
16588 msgid "To download an uncompressed tarball, use L</tar-out>."
16589 msgstr ""
16590
16591 #. type: =head2
16592 #: ../fish/guestfish-actions.pod:4786
16593 msgid "touch"
16594 msgstr "touch"
16595
16596 #. type: verbatim
16597 #: ../fish/guestfish-actions.pod:4788
16598 #, no-wrap
16599 msgid ""
16600 " touch path\n"
16601 "\n"
16602 msgstr ""
16603 " touch шлях\n"
16604 "\n"
16605
16606 #. type: textblock
16607 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7252
16608 msgid ""
16609 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16610 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16611 "length file."
16612 msgstr ""
16613
16614 #. type: textblock
16615 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7256
16616 msgid ""
16617 "This command only works on regular files, and will fail on other file types "
16618 "such as directories, symbolic links, block special etc."
16619 msgstr ""
16620
16621 #. type: =head2
16622 #: ../fish/guestfish-actions.pod:4797
16623 msgid "truncate"
16624 msgstr "truncate"
16625
16626 #. type: verbatim
16627 #: ../fish/guestfish-actions.pod:4799
16628 #, no-wrap
16629 msgid ""
16630 " truncate path\n"
16631 "\n"
16632 msgstr ""
16633 " truncate шлях\n"
16634 "\n"
16635
16636 #. type: textblock
16637 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7269
16638 msgid ""
16639 "This command truncates C<path> to a zero-length file.  The file must exist "
16640 "already."
16641 msgstr ""
16642
16643 #. type: =head2
16644 #: ../fish/guestfish-actions.pod:4804
16645 msgid "truncate-size"
16646 msgstr "truncate-size"
16647
16648 #. type: verbatim
16649 #: ../fish/guestfish-actions.pod:4806
16650 #, no-wrap
16651 msgid ""
16652 " truncate-size path size\n"
16653 "\n"
16654 msgstr ""
16655 " truncate-size шлях розмір\n"
16656 "\n"
16657
16658 #. type: textblock
16659 #: ../fish/guestfish-actions.pod:4808 ../src/guestfs-actions.pod:7283
16660 msgid ""
16661 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16662 "already."
16663 msgstr ""
16664
16665 #. type: textblock
16666 #: ../fish/guestfish-actions.pod:4811
16667 msgid ""
16668 "If the current file size is less than C<size> then the file is extended to "
16669 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16670 "blocks are not allocated for the file until you write to it).  To create a "
16671 "non-sparse file of zeroes, use L</fallocate64> instead."
16672 msgstr ""
16673
16674 #. type: =head2
16675 #: ../fish/guestfish-actions.pod:4817
16676 msgid "tune2fs-l"
16677 msgstr "tune2fs-l"
16678
16679 #. type: verbatim
16680 #: ../fish/guestfish-actions.pod:4819
16681 #, no-wrap
16682 msgid ""
16683 " tune2fs-l device\n"
16684 "\n"
16685 msgstr ""
16686 " tune2fs-l пристрій\n"
16687 "\n"
16688
16689 #. type: textblock
16690 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7302
16691 msgid ""
16692 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16693 "C<device>."
16694 msgstr ""
16695
16696 #. type: textblock
16697 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7305
16698 msgid ""
16699 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16700 "for more details.  The list of fields returned isn't clearly defined, and "
16701 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16702 "and the filesystem itself."
16703 msgstr ""
16704
16705 #. type: =head2
16706 #: ../fish/guestfish-actions.pod:4829
16707 msgid "txz-in"
16708 msgstr "txz-in"
16709
16710 #. type: verbatim
16711 #: ../fish/guestfish-actions.pod:4831
16712 #, no-wrap
16713 msgid ""
16714 " txz-in (tarball|-) directory\n"
16715 "\n"
16716 msgstr ""
16717 " txz-in (архів tar|-) каталог\n"
16718 "\n"
16719
16720 #. type: textblock
16721 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7325
16722 msgid ""
16723 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16724 "tar file) into C<directory>."
16725 msgstr ""
16726
16727 #. type: =head2
16728 #: ../fish/guestfish-actions.pod:4838
16729 msgid "txz-out"
16730 msgstr "txz-out"
16731
16732 #. type: verbatim
16733 #: ../fish/guestfish-actions.pod:4840
16734 #, no-wrap
16735 msgid ""
16736 " txz-out directory (tarball|-)\n"
16737 "\n"
16738 msgstr ""
16739 " txz-out каталог (архів tar|-)\n"
16740 "\n"
16741
16742 #. type: textblock
16743 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7339
16744 msgid ""
16745 "This command packs the contents of C<directory> and downloads it to local "
16746 "file C<tarball> (as an xz compressed tar archive)."
16747 msgstr ""
16748
16749 #. type: =head2
16750 #: ../fish/guestfish-actions.pod:4847
16751 msgid "umask"
16752 msgstr "umask"
16753
16754 #. type: verbatim
16755 #: ../fish/guestfish-actions.pod:4849
16756 #, no-wrap
16757 msgid ""
16758 " umask mask\n"
16759 "\n"
16760 msgstr ""
16761 " umask маска\n"
16762 "\n"
16763
16764 #. type: textblock
16765 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7352
16766 msgid ""
16767 "This function sets the mask used for creating new files and device nodes to "
16768 "C<mask & 0777>."
16769 msgstr ""
16770
16771 #. type: textblock
16772 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7355
16773 msgid ""
16774 "Typical umask values would be C<022> which creates new files with "
16775 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16776 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16777 msgstr ""
16778
16779 #. type: textblock
16780 #: ../fish/guestfish-actions.pod:4859 ../src/guestfs-actions.pod:7360
16781 msgid ""
16782 "The default umask is C<022>.  This is important because it means that "
16783 "directories and device nodes will be created with C<0644> or C<0755> mode "
16784 "even if you specify C<0777>."
16785 msgstr ""
16786
16787 #. type: textblock
16788 #: ../fish/guestfish-actions.pod:4863
16789 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16790 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16791
16792 #. type: textblock
16793 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7367
16794 msgid "This call returns the previous umask."
16795 msgstr ""
16796
16797 #. type: =head2
16798 #: ../fish/guestfish-actions.pod:4868
16799 msgid "umount"
16800 msgstr "umount"
16801
16802 #. type: =head2
16803 #: ../fish/guestfish-actions.pod:4870
16804 msgid "unmount"
16805 msgstr "unmount"
16806
16807 #. type: verbatim
16808 #: ../fish/guestfish-actions.pod:4872
16809 #, no-wrap
16810 msgid ""
16811 " umount pathordevice\n"
16812 "\n"
16813 msgstr ""
16814 " umount шлях_або_пристрій\n"
16815 "\n"
16816
16817 #. type: textblock
16818 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7379
16819 msgid ""
16820 "This unmounts the given filesystem.  The filesystem may be specified either "
16821 "by its mountpoint (path) or the device which contains the filesystem."
16822 msgstr ""
16823
16824 #. type: =head2
16825 #: ../fish/guestfish-actions.pod:4878
16826 msgid "umount-all"
16827 msgstr "umount-all"
16828
16829 #. type: =head2
16830 #: ../fish/guestfish-actions.pod:4880
16831 msgid "unmount-all"
16832 msgstr "unmount-all"
16833
16834 #. type: verbatim
16835 #: ../fish/guestfish-actions.pod:4882
16836 #, no-wrap
16837 msgid ""
16838 " umount-all\n"
16839 "\n"
16840 msgstr ""
16841 " umount-all\n"
16842 "\n"
16843
16844 #. type: textblock
16845 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7392
16846 msgid "This unmounts all mounted filesystems."
16847 msgstr ""
16848
16849 #. type: textblock
16850 #: ../fish/guestfish-actions.pod:4886 ../src/guestfs-actions.pod:7394
16851 msgid "Some internal mounts are not unmounted by this call."
16852 msgstr ""
16853
16854 #. type: =head2
16855 #: ../fish/guestfish-actions.pod:4888
16856 msgid "upload"
16857 msgstr "upload"
16858
16859 #. type: verbatim
16860 #: ../fish/guestfish-actions.pod:4890
16861 #, no-wrap
16862 msgid ""
16863 " upload (filename|-) remotefilename\n"
16864 "\n"
16865 msgstr ""
16866 " upload (назва_файла|-) назва_віддаленого_файла\n"
16867 "\n"
16868
16869 #. type: textblock
16870 #: ../fish/guestfish-actions.pod:4892 ../fish/guestfish-actions.pod:4905
16871 #: ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7431
16872 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16873 msgstr ""
16874
16875 #. type: textblock
16876 #: ../fish/guestfish-actions.pod:4897
16877 msgid "See also L</download>."
16878 msgstr "Див. також L</download>."
16879
16880 #. type: =head2
16881 #: ../fish/guestfish-actions.pod:4901
16882 msgid "upload-offset"
16883 msgstr "upload-offset"
16884
16885 #. type: verbatim
16886 #: ../fish/guestfish-actions.pod:4903
16887 #, no-wrap
16888 msgid ""
16889 " upload-offset (filename|-) remotefilename offset\n"
16890 "\n"
16891 msgstr ""
16892 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
16893 "\n"
16894
16895 #. type: textblock
16896 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7434
16897 msgid ""
16898 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16899 "The intention is to overwrite parts of existing files or devices, although "
16900 "if a non-existant file is specified then it is created with a \"hole\" "
16901 "before C<offset>.  The size of the data written is implicit in the size of "
16902 "the source C<filename>."
16903 msgstr ""
16904
16905 #. type: textblock
16906 #: ../fish/guestfish-actions.pod:4915
16907 msgid ""
16908 "Note that there is no limit on the amount of data that can be uploaded with "
16909 "this call, unlike with L</pwrite>, and this call always writes the full "
16910 "amount unless an error occurs."
16911 msgstr ""
16912
16913 #. type: textblock
16914 #: ../fish/guestfish-actions.pod:4920
16915 msgid "See also L</upload>, L</pwrite>."
16916 msgstr "Див. також L</upload>, L</pwrite>."
16917
16918 #. type: =head2
16919 #: ../fish/guestfish-actions.pod:4924
16920 msgid "utimens"
16921 msgstr "utimens"
16922
16923 #. type: verbatim
16924 #: ../fish/guestfish-actions.pod:4926
16925 #, no-wrap
16926 msgid ""
16927 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16928 "\n"
16929 msgstr ""
16930
16931 #. type: textblock
16932 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7467
16933 msgid "This command sets the timestamps of a file with nanosecond precision."
16934 msgstr ""
16935
16936 #. type: textblock
16937 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7470
16938 msgid ""
16939 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16940 "from the epoch."
16941 msgstr ""
16942
16943 #. type: textblock
16944 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7473
16945 msgid ""
16946 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16947 "nanoseconds from the epoch."
16948 msgstr ""
16949
16950 #. type: textblock
16951 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7476
16952 msgid ""
16953 "If the C<*nsecs> field contains the special value C<-1> then the "
16954 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16955 "ignored in this case)."
16956 msgstr ""
16957
16958 #. type: textblock
16959 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7480
16960 msgid ""
16961 "If the C<*nsecs> field contains the special value C<-2> then the "
16962 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16963 "in this case)."
16964 msgstr ""
16965
16966 #. type: =head2
16967 #: ../fish/guestfish-actions.pod:4945
16968 msgid "version"
16969 msgstr "version"
16970
16971 #. type: verbatim
16972 #: ../fish/guestfish-actions.pod:4947
16973 #, no-wrap
16974 msgid ""
16975 " version\n"
16976 "\n"
16977 msgstr ""
16978 " version\n"
16979 "\n"
16980
16981 #. type: textblock
16982 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7493
16983 msgid ""
16984 "Return the libguestfs version number that the program is linked against."
16985 msgstr ""
16986
16987 #. type: textblock
16988 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7496
16989 msgid ""
16990 "Note that because of dynamic linking this is not necessarily the version of "
16991 "libguestfs that you compiled against.  You can compile the program, and then "
16992 "at runtime dynamically link against a completely different C<libguestfs.so> "
16993 "library."
16994 msgstr ""
16995
16996 #. type: textblock
16997 #: ../fish/guestfish-actions.pod:4957 ../src/guestfs-actions.pod:7501
16998 msgid ""
16999 "This call was added in version C<1.0.58>.  In previous versions of "
17000 "libguestfs there was no way to get the version number.  From C code you can "
17001 "use dynamic linker functions to find out if this symbol exists (if it "
17002 "doesn't, then it's an earlier version)."
17003 msgstr ""
17004
17005 #. type: textblock
17006 #: ../fish/guestfish-actions.pod:4963 ../src/guestfs-actions.pod:7507
17007 msgid ""
17008 "The call returns a structure with four elements.  The first three (C<major>, "
17009 "C<minor> and C<release>) are numbers and correspond to the usual version "
17010 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17011 "but may be used for distro-specific information."
17012 msgstr ""
17013
17014 #. type: textblock
17015 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7513
17016 msgid ""
17017 "To construct the original version string: C<$major.$minor.$release$extra>"
17018 msgstr ""
17019
17020 #. type: textblock
17021 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7516
17022 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17023 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17024
17025 #. type: textblock
17026 #: ../fish/guestfish-actions.pod:4974
17027 msgid ""
17028 "I<Note:> Don't use this call to test for availability of features.  In "
17029 "enterprise distributions we backport features from later versions into "
17030 "earlier versions, making this an unreliable way to test for features.  Use "
17031 "L</available> instead."
17032 msgstr ""
17033
17034 #. type: =head2
17035 #: ../fish/guestfish-actions.pod:4980
17036 msgid "vfs-label"
17037 msgstr "vfs-label"
17038
17039 #. type: verbatim
17040 #: ../fish/guestfish-actions.pod:4982
17041 #, no-wrap
17042 msgid ""
17043 " vfs-label device\n"
17044 "\n"
17045 msgstr ""
17046 " vfs-label пристрій\n"
17047 "\n"
17048
17049 #. type: textblock
17050 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7536
17051 msgid "This returns the filesystem label of the filesystem on C<device>."
17052 msgstr ""
17053
17054 #. type: textblock
17055 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7539
17056 msgid "If the filesystem is unlabeled, this returns the empty string."
17057 msgstr ""
17058
17059 #. type: textblock
17060 #: ../fish/guestfish-actions.pod:4989
17061 msgid "To find a filesystem from the label, use L</findfs-label>."
17062 msgstr ""
17063
17064 #. type: =head2
17065 #: ../fish/guestfish-actions.pod:4991
17066 msgid "vfs-type"
17067 msgstr "vfs-type"
17068
17069 #. type: verbatim
17070 #: ../fish/guestfish-actions.pod:4993
17071 #, no-wrap
17072 msgid ""
17073 " vfs-type device\n"
17074 "\n"
17075 msgstr ""
17076 " vfs-type пристрій\n"
17077 "\n"
17078
17079 #. type: textblock
17080 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7554
17081 msgid ""
17082 "This command gets the filesystem type corresponding to the filesystem on "
17083 "C<device>."
17084 msgstr ""
17085
17086 #. type: textblock
17087 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7557
17088 msgid ""
17089 "For most filesystems, the result is the name of the Linux VFS module which "
17090 "would be used to mount this filesystem if you mounted it without specifying "
17091 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17092 msgstr ""
17093
17094 #. type: =head2
17095 #: ../fish/guestfish-actions.pod:5003
17096 msgid "vfs-uuid"
17097 msgstr "vfs-uuid"
17098
17099 #. type: verbatim
17100 #: ../fish/guestfish-actions.pod:5005
17101 #, no-wrap
17102 msgid ""
17103 " vfs-uuid device\n"
17104 "\n"
17105 msgstr ""
17106 " vfs-uuid пристрій\n"
17107 "\n"
17108
17109 #. type: textblock
17110 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7573
17111 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17112 msgstr ""
17113
17114 #. type: textblock
17115 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7576
17116 msgid "If the filesystem does not have a UUID, this returns the empty string."
17117 msgstr ""
17118
17119 #. type: textblock
17120 #: ../fish/guestfish-actions.pod:5012
17121 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17122 msgstr ""
17123
17124 #. type: =head2
17125 #: ../fish/guestfish-actions.pod:5014
17126 msgid "vg-activate"
17127 msgstr "vg-activate"
17128
17129 #. type: verbatim
17130 #: ../fish/guestfish-actions.pod:5016
17131 #, no-wrap
17132 msgid ""
17133 " vg-activate true|false 'volgroups ...'\n"
17134 "\n"
17135 msgstr ""
17136
17137 #. type: textblock
17138 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7592
17139 msgid ""
17140 "This command activates or (if C<activate> is false) deactivates all logical "
17141 "volumes in the listed volume groups C<volgroups>."
17142 msgstr ""
17143
17144 #. type: textblock
17145 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7595
17146 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17147 msgstr ""
17148
17149 #. type: textblock
17150 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7597
17151 msgid ""
17152 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17153 "activated or deactivated."
17154 msgstr ""
17155
17156 #. type: =head2
17157 #: ../fish/guestfish-actions.pod:5026
17158 msgid "vg-activate-all"
17159 msgstr "vg-activate-all"
17160
17161 #. type: verbatim
17162 #: ../fish/guestfish-actions.pod:5028
17163 #, no-wrap
17164 msgid ""
17165 " vg-activate-all true|false\n"
17166 "\n"
17167 msgstr ""
17168 " vg-activate-all true|false\n"
17169 "\n"
17170
17171 #. type: textblock
17172 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7610
17173 msgid ""
17174 "This command activates or (if C<activate> is false) deactivates all logical "
17175 "volumes in all volume groups."
17176 msgstr ""
17177
17178 #. type: textblock
17179 #: ../fish/guestfish-actions.pod:5033 ../src/guestfs-actions.pod:7613
17180 msgid "This command is the same as running C<vgchange -a y|n>"
17181 msgstr ""
17182
17183 #. type: =head2
17184 #: ../fish/guestfish-actions.pod:5035
17185 msgid "vgcreate"
17186 msgstr "vgcreate"
17187
17188 #. type: verbatim
17189 #: ../fish/guestfish-actions.pod:5037
17190 #, no-wrap
17191 msgid ""
17192 " vgcreate volgroup 'physvols ...'\n"
17193 "\n"
17194 msgstr ""
17195
17196 #. type: textblock
17197 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7626
17198 msgid ""
17199 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17200 "of physical volumes C<physvols>."
17201 msgstr ""
17202
17203 #. type: =head2
17204 #: ../fish/guestfish-actions.pod:5042
17205 msgid "vglvuuids"
17206 msgstr "vglvuuids"
17207
17208 #. type: verbatim
17209 #: ../fish/guestfish-actions.pod:5044
17210 #, no-wrap
17211 msgid ""
17212 " vglvuuids vgname\n"
17213 "\n"
17214 msgstr ""
17215
17216 #. type: textblock
17217 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7639
17218 msgid ""
17219 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17220 "volumes created in this volume group."
17221 msgstr ""
17222
17223 #. type: textblock
17224 #: ../fish/guestfish-actions.pod:5049
17225 msgid ""
17226 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17227 "logical volumes and volume groups."
17228 msgstr ""
17229
17230 #. type: textblock
17231 #: ../fish/guestfish-actions.pod:5052
17232 msgid "See also L</vgpvuuids>."
17233 msgstr "Див. також L</vgpvuuids>."
17234
17235 #. type: =head2
17236 #: ../fish/guestfish-actions.pod:5054
17237 msgid "vgpvuuids"
17238 msgstr "vgpvuuids"
17239
17240 #. type: verbatim
17241 #: ../fish/guestfish-actions.pod:5056
17242 #, no-wrap
17243 msgid ""
17244 " vgpvuuids vgname\n"
17245 "\n"
17246 msgstr ""
17247
17248 #. type: textblock
17249 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7659
17250 msgid ""
17251 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17252 "volumes that this volume group resides on."
17253 msgstr ""
17254
17255 #. type: textblock
17256 #: ../fish/guestfish-actions.pod:5061
17257 msgid ""
17258 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17259 "physical volumes and volume groups."
17260 msgstr ""
17261
17262 #. type: textblock
17263 #: ../fish/guestfish-actions.pod:5064
17264 msgid "See also L</vglvuuids>."
17265 msgstr "Див. також L</vglvuuids>."
17266
17267 #. type: =head2
17268 #: ../fish/guestfish-actions.pod:5066
17269 msgid "vgremove"
17270 msgstr "vgremove"
17271
17272 #. type: verbatim
17273 #: ../fish/guestfish-actions.pod:5068
17274 #, no-wrap
17275 msgid ""
17276 " vgremove vgname\n"
17277 "\n"
17278 msgstr ""
17279
17280 #. type: textblock
17281 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7679
17282 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17283 msgstr ""
17284
17285 #. type: textblock
17286 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7681
17287 msgid ""
17288 "This also forcibly removes all logical volumes in the volume group (if any)."
17289 msgstr ""
17290
17291 #. type: =head2
17292 #: ../fish/guestfish-actions.pod:5075
17293 msgid "vgrename"
17294 msgstr "vgrename"
17295
17296 #. type: verbatim
17297 #: ../fish/guestfish-actions.pod:5077
17298 #, no-wrap
17299 msgid ""
17300 " vgrename volgroup newvolgroup\n"
17301 "\n"
17302 msgstr ""
17303
17304 #. type: textblock
17305 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7695
17306 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17307 msgstr ""
17308
17309 #. type: =head2
17310 #: ../fish/guestfish-actions.pod:5081
17311 msgid "vgs"
17312 msgstr "vgs"
17313
17314 #. type: verbatim
17315 #: ../fish/guestfish-actions.pod:5083
17316 #, no-wrap
17317 msgid ""
17318 " vgs\n"
17319 "\n"
17320 msgstr ""
17321 " vgs\n"
17322 "\n"
17323
17324 #. type: textblock
17325 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7706
17326 msgid ""
17327 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17328 "> command."
17329 msgstr ""
17330
17331 #. type: textblock
17332 #: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:7709
17333 msgid ""
17334 "This returns a list of just the volume group names that were detected (eg. "
17335 "C<VolGroup00>)."
17336 msgstr ""
17337
17338 #. type: textblock
17339 #: ../fish/guestfish-actions.pod:5091
17340 msgid "See also L</vgs-full>."
17341 msgstr "Див. також L</vgs-full>."
17342
17343 #. type: =head2
17344 #: ../fish/guestfish-actions.pod:5093
17345 msgid "vgs-full"
17346 msgstr "vgs-full"
17347
17348 #. type: verbatim
17349 #: ../fish/guestfish-actions.pod:5095
17350 #, no-wrap
17351 msgid ""
17352 " vgs-full\n"
17353 "\n"
17354 msgstr ""
17355 " vgs-full\n"
17356 "\n"
17357
17358 #. type: textblock
17359 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7725
17360 msgid ""
17361 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17362 "> command.  The \"full\" version includes all fields."
17363 msgstr ""
17364
17365 #. type: =head2
17366 #: ../fish/guestfish-actions.pod:5100
17367 msgid "vgscan"
17368 msgstr "vgscan"
17369
17370 #. type: verbatim
17371 #: ../fish/guestfish-actions.pod:5102
17372 #, no-wrap
17373 msgid ""
17374 " vgscan\n"
17375 "\n"
17376 msgstr ""
17377 " vgscan\n"
17378 "\n"
17379
17380 #. type: textblock
17381 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7739
17382 msgid ""
17383 "This rescans all block devices and rebuilds the list of LVM physical "
17384 "volumes, volume groups and logical volumes."
17385 msgstr ""
17386
17387 #. type: =head2
17388 #: ../fish/guestfish-actions.pod:5107
17389 msgid "vguuid"
17390 msgstr "vguuid"
17391
17392 #. type: verbatim
17393 #: ../fish/guestfish-actions.pod:5109
17394 #, no-wrap
17395 msgid ""
17396 " vguuid vgname\n"
17397 "\n"
17398 msgstr ""
17399
17400 #. type: textblock
17401 #: ../fish/guestfish-actions.pod:5111 ../src/guestfs-actions.pod:7752
17402 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17403 msgstr ""
17404
17405 #. type: =head2
17406 #: ../fish/guestfish-actions.pod:5113
17407 msgid "wc-c"
17408 msgstr "wc-c"
17409
17410 #. type: verbatim
17411 #: ../fish/guestfish-actions.pod:5115
17412 #, no-wrap
17413 msgid ""
17414 " wc-c path\n"
17415 "\n"
17416 msgstr ""
17417 " wc-c шлях\n"
17418 "\n"
17419
17420 #. type: textblock
17421 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7792
17422 msgid ""
17423 "This command counts the characters in a file, using the C<wc -c> external "
17424 "command."
17425 msgstr ""
17426
17427 #. type: =head2
17428 #: ../fish/guestfish-actions.pod:5120
17429 msgid "wc-l"
17430 msgstr "wc-l"
17431
17432 #. type: verbatim
17433 #: ../fish/guestfish-actions.pod:5122
17434 #, no-wrap
17435 msgid ""
17436 " wc-l path\n"
17437 "\n"
17438 msgstr ""
17439 " wc-l шлях\n"
17440 "\n"
17441
17442 #. type: textblock
17443 #: ../fish/guestfish-actions.pod:5124 ../src/guestfs-actions.pod:7805
17444 msgid ""
17445 "This command counts the lines in a file, using the C<wc -l> external command."
17446 msgstr ""
17447
17448 #. type: =head2
17449 #: ../fish/guestfish-actions.pod:5127
17450 msgid "wc-w"
17451 msgstr "wc-w"
17452
17453 #. type: verbatim
17454 #: ../fish/guestfish-actions.pod:5129
17455 #, no-wrap
17456 msgid ""
17457 " wc-w path\n"
17458 "\n"
17459 msgstr ""
17460 " wc-w шлях\n"
17461 "\n"
17462
17463 #. type: textblock
17464 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7818
17465 msgid ""
17466 "This command counts the words in a file, using the C<wc -w> external command."
17467 msgstr ""
17468
17469 #. type: =head2
17470 #: ../fish/guestfish-actions.pod:5134
17471 msgid "write"
17472 msgstr "write"
17473
17474 #. type: verbatim
17475 #: ../fish/guestfish-actions.pod:5136
17476 #, no-wrap
17477 msgid ""
17478 " write path content\n"
17479 "\n"
17480 msgstr ""
17481 " write шлях дані\n"
17482 "\n"
17483
17484 #. type: textblock
17485 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7833
17486 msgid ""
17487 "This call creates a file called C<path>.  The content of the file is the "
17488 "string C<content> (which can contain any 8 bit data)."
17489 msgstr ""
17490
17491 #. type: textblock
17492 #: ../fish/guestfish-actions.pod:5141
17493 msgid "See also L</write-append>."
17494 msgstr "Див. також L</write-append>."
17495
17496 #. type: =head2
17497 #: ../fish/guestfish-actions.pod:5146
17498 msgid "write-append"
17499 msgstr ""
17500
17501 #. type: verbatim
17502 #: ../fish/guestfish-actions.pod:5148
17503 #, no-wrap
17504 msgid ""
17505 " write-append path content\n"
17506 "\n"
17507 msgstr ""
17508
17509 #. type: textblock
17510 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7853
17511 msgid ""
17512 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17513 "not exist, then a new file is created."
17514 msgstr ""
17515
17516 #. type: textblock
17517 #: ../fish/guestfish-actions.pod:5153
17518 msgid "See also L</write>."
17519 msgstr "Див. також L</write>."
17520
17521 #. type: =head2
17522 #: ../fish/guestfish-actions.pod:5158
17523 msgid "write-file"
17524 msgstr "write-file"
17525
17526 #. type: verbatim
17527 #: ../fish/guestfish-actions.pod:5160
17528 #, no-wrap
17529 msgid ""
17530 " write-file path content size\n"
17531 "\n"
17532 msgstr ""
17533
17534 #. type: textblock
17535 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7880
17536 msgid ""
17537 "This call creates a file called C<path>.  The contents of the file is the "
17538 "string C<content> (which can contain any 8 bit data), with length C<size>."
17539 msgstr ""
17540
17541 #. type: textblock
17542 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7884
17543 msgid ""
17544 "As a special case, if C<size> is C<0> then the length is calculated using "
17545 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17546 msgstr ""
17547
17548 #. type: textblock
17549 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7888
17550 msgid ""
17551 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17552 "I<not> work, even if the length is specified."
17553 msgstr ""
17554
17555 #. type: textblock
17556 #: ../fish/guestfish-actions.pod:5176
17557 msgid ""
17558 "I<This function is deprecated.> In new code, use the L</write> call instead."
17559 msgstr ""
17560
17561 #. type: =head2
17562 #: ../fish/guestfish-actions.pod:5183
17563 msgid "zegrep"
17564 msgstr "zegrep"
17565
17566 #. type: verbatim
17567 #: ../fish/guestfish-actions.pod:5185
17568 #, no-wrap
17569 msgid ""
17570 " zegrep regex path\n"
17571 "\n"
17572 msgstr ""
17573 " zegrep формальний_вираз шлях\n"
17574 "\n"
17575
17576 #. type: textblock
17577 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7905
17578 msgid ""
17579 "This calls the external C<zegrep> program and returns the matching lines."
17580 msgstr ""
17581
17582 #. type: =head2
17583 #: ../fish/guestfish-actions.pod:5193
17584 msgid "zegrepi"
17585 msgstr "zegrepi"
17586
17587 #. type: verbatim
17588 #: ../fish/guestfish-actions.pod:5195
17589 #, no-wrap
17590 msgid ""
17591 " zegrepi regex path\n"
17592 "\n"
17593 msgstr ""
17594
17595 #. type: textblock
17596 #: ../fish/guestfish-actions.pod:5197 ../src/guestfs-actions.pod:7924
17597 msgid ""
17598 "This calls the external C<zegrep -i> program and returns the matching lines."
17599 msgstr ""
17600
17601 #. type: =head2
17602 #: ../fish/guestfish-actions.pod:5203
17603 msgid "zero"
17604 msgstr "zero"
17605
17606 #. type: verbatim
17607 #: ../fish/guestfish-actions.pod:5205
17608 #, no-wrap
17609 msgid ""
17610 " zero device\n"
17611 "\n"
17612 msgstr ""
17613 " zero пристрій\n"
17614 "\n"
17615
17616 #. type: textblock
17617 #: ../fish/guestfish-actions.pod:5207 ../src/guestfs-actions.pod:7942
17618 msgid "This command writes zeroes over the first few blocks of C<device>."
17619 msgstr ""
17620
17621 #. type: textblock
17622 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7944
17623 msgid ""
17624 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17625 "securely wipe the device).  It should be sufficient to remove any partition "
17626 "tables, filesystem superblocks and so on."
17627 msgstr ""
17628
17629 #. type: textblock
17630 #: ../fish/guestfish-actions.pod:5213 ../fish/guestfish-actions.pod:5228
17631 #: ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7974
17632 msgid ""
17633 "If blocks are already zero, then this command avoids writing zeroes.  This "
17634 "prevents the underlying device from becoming non-sparse or growing "
17635 "unnecessarily."
17636 msgstr ""
17637
17638 #. type: textblock
17639 #: ../fish/guestfish-actions.pod:5217
17640 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17641 msgstr ""
17642
17643 #. type: =head2
17644 #: ../fish/guestfish-actions.pod:5220
17645 msgid "zero-device"
17646 msgstr "zero-device"
17647
17648 #. type: verbatim
17649 #: ../fish/guestfish-actions.pod:5222
17650 #, no-wrap
17651 msgid ""
17652 " zero-device device\n"
17653 "\n"
17654 msgstr ""
17655 " zero-device пристрій\n"
17656 "\n"
17657
17658 #. type: textblock
17659 #: ../fish/guestfish-actions.pod:5224
17660 msgid ""
17661 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17662 "which just zeroes the first few blocks of a device."
17663 msgstr ""
17664
17665 #. type: =head2
17666 #: ../fish/guestfish-actions.pod:5235
17667 msgid "zerofree"
17668 msgstr "zerofree"
17669
17670 #. type: verbatim
17671 #: ../fish/guestfish-actions.pod:5237
17672 #, no-wrap
17673 msgid ""
17674 " zerofree device\n"
17675 "\n"
17676 msgstr ""
17677 " zerofree пристрій\n"
17678 "\n"
17679
17680 #. type: textblock
17681 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7996
17682 msgid ""
17683 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17684 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17685 "possible to compress the filesystem more effectively."
17686 msgstr ""
17687
17688 #. type: textblock
17689 #: ../fish/guestfish-actions.pod:5244 ../src/guestfs-actions.pod:8001
17690 msgid "You should B<not> run this program if the filesystem is mounted."
17691 msgstr ""
17692
17693 #. type: textblock
17694 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8004
17695 msgid ""
17696 "It is possible that using this program can damage the filesystem or data on "
17697 "the filesystem."
17698 msgstr ""
17699
17700 #. type: =head2
17701 #: ../fish/guestfish-actions.pod:5250
17702 msgid "zfgrep"
17703 msgstr "zfgrep"
17704
17705 #. type: verbatim
17706 #: ../fish/guestfish-actions.pod:5252
17707 #, no-wrap
17708 msgid ""
17709 " zfgrep pattern path\n"
17710 "\n"
17711 msgstr ""
17712 " zfgrep шаблон шлях\n"
17713 "\n"
17714
17715 #. type: textblock
17716 #: ../fish/guestfish-actions.pod:5254 ../src/guestfs-actions.pod:8018
17717 msgid ""
17718 "This calls the external C<zfgrep> program and returns the matching lines."
17719 msgstr ""
17720
17721 #. type: =head2
17722 #: ../fish/guestfish-actions.pod:5260
17723 msgid "zfgrepi"
17724 msgstr "zfgrepi"
17725
17726 #. type: verbatim
17727 #: ../fish/guestfish-actions.pod:5262
17728 #, no-wrap
17729 msgid ""
17730 " zfgrepi pattern path\n"
17731 "\n"
17732 msgstr ""
17733 " zfgrepi шаблон шлях\n"
17734 "\n"
17735
17736 #. type: textblock
17737 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8037
17738 msgid ""
17739 "This calls the external C<zfgrep -i> program and returns the matching lines."
17740 msgstr ""
17741
17742 #. type: =head2
17743 #: ../fish/guestfish-actions.pod:5270
17744 msgid "zfile"
17745 msgstr "zfile"
17746
17747 #. type: verbatim
17748 #: ../fish/guestfish-actions.pod:5272
17749 #, no-wrap
17750 msgid ""
17751 " zfile meth path\n"
17752 "\n"
17753 msgstr ""
17754 " zfile метод шлях\n"
17755 "\n"
17756
17757 #. type: textblock
17758 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8063
17759 msgid ""
17760 "This command runs C<file> after first decompressing C<path> using C<method>."
17761 msgstr ""
17762
17763 #. type: textblock
17764 #: ../fish/guestfish-actions.pod:5277 ../src/guestfs-actions.pod:8066
17765 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17766 msgstr ""
17767
17768 #. type: textblock
17769 #: ../fish/guestfish-actions.pod:5279
17770 msgid ""
17771 "Since 1.0.63, use L</file> instead which can now process compressed files."
17772 msgstr ""
17773
17774 #. type: textblock
17775 #: ../fish/guestfish-actions.pod:5282
17776 msgid ""
17777 "I<This function is deprecated.> In new code, use the L</file> call instead."
17778 msgstr ""
17779
17780 #. type: =head2
17781 #: ../fish/guestfish-actions.pod:5289
17782 msgid "zgrep"
17783 msgstr "zgrep"
17784
17785 #. type: verbatim
17786 #: ../fish/guestfish-actions.pod:5291
17787 #, no-wrap
17788 msgid ""
17789 " zgrep regex path\n"
17790 "\n"
17791 msgstr ""
17792 " zgrep формальний_вираз шлях\n"
17793 "\n"
17794
17795 #. type: textblock
17796 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8083
17797 msgid ""
17798 "This calls the external C<zgrep> program and returns the matching lines."
17799 msgstr ""
17800
17801 #. type: =head2
17802 #: ../fish/guestfish-actions.pod:5299
17803 msgid "zgrepi"
17804 msgstr "zgrepi"
17805
17806 #. type: verbatim
17807 #: ../fish/guestfish-actions.pod:5301
17808 #, no-wrap
17809 msgid ""
17810 " zgrepi regex path\n"
17811 "\n"
17812 msgstr ""
17813 " zgrepi формальний_вираз шлях\n"
17814 "\n"
17815
17816 #. type: textblock
17817 #: ../fish/guestfish-actions.pod:5303 ../src/guestfs-actions.pod:8102
17818 msgid ""
17819 "This calls the external C<zgrep -i> program and returns the matching lines."
17820 msgstr ""
17821
17822 #. type: =head2
17823 #: ../fish/guestfish-commands.pod:1
17824 msgid "alloc"
17825 msgstr "alloc"
17826
17827 #. type: =head2
17828 #: ../fish/guestfish-commands.pod:3
17829 msgid "allocate"
17830 msgstr ""
17831
17832 #. type: verbatim
17833 #: ../fish/guestfish-commands.pod:5
17834 #, no-wrap
17835 msgid ""
17836 " alloc filename size\n"
17837 "\n"
17838 msgstr ""
17839
17840 #. type: textblock
17841 #: ../fish/guestfish-commands.pod:7
17842 msgid ""
17843 "This creates an empty (zeroed) file of the given size, and then adds so it "
17844 "can be further examined."
17845 msgstr ""
17846
17847 #. type: textblock
17848 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17849 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17850 msgstr ""
17851
17852 #. type: textblock
17853 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17854 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17855 msgstr ""
17856
17857 #. type: textblock
17858 #: ../fish/guestfish-commands.pod:14
17859 msgid ""
17860 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17861 "image, see L</PREPARED DISK IMAGES>."
17862 msgstr ""
17863
17864 #. type: =head2
17865 #: ../fish/guestfish-commands.pod:17
17866 msgid "copy-in"
17867 msgstr "copy-in"
17868
17869 #. type: verbatim
17870 #: ../fish/guestfish-commands.pod:19
17871 #, no-wrap
17872 msgid ""
17873 " copy-in local [local ...] /remotedir\n"
17874 "\n"
17875 msgstr ""
17876
17877 #. type: textblock
17878 #: ../fish/guestfish-commands.pod:21
17879 msgid ""
17880 "C<copy-in> copies local files or directories recursively into the disk "
17881 "image, placing them in the directory called C</remotedir> (which must "
17882 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17883 "other commands as necessary."
17884 msgstr ""
17885
17886 #. type: textblock
17887 #: ../fish/guestfish-commands.pod:26
17888 msgid ""
17889 "Multiple local files and directories can be specified, but the last "
17890 "parameter must always be a remote directory.  Wildcards cannot be used."
17891 msgstr ""
17892
17893 #. type: =head2
17894 #: ../fish/guestfish-commands.pod:30
17895 msgid "copy-out"
17896 msgstr "copy-out"
17897
17898 #. type: verbatim
17899 #: ../fish/guestfish-commands.pod:32
17900 #, no-wrap
17901 msgid ""
17902 " copy-out remote [remote ...] localdir\n"
17903 "\n"
17904 msgstr ""
17905
17906 #. type: textblock
17907 #: ../fish/guestfish-commands.pod:34
17908 msgid ""
17909 "C<copy-out> copies remote files or directories recursively out of the disk "
17910 "image, placing them on the host disk in a local directory called C<localdir> "
17911 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
17912 "download>, L</tar-out> and other commands as necessary."
17913 msgstr ""
17914
17915 #. type: textblock
17916 #: ../fish/guestfish-commands.pod:40
17917 msgid ""
17918 "Multiple remote files and directories can be specified, but the last "
17919 "parameter must always be a local directory.  To download to the current "
17920 "directory, use C<.> as in:"
17921 msgstr ""
17922
17923 #. type: verbatim
17924 #: ../fish/guestfish-commands.pod:44
17925 #, no-wrap
17926 msgid ""
17927 " copy-out /home .\n"
17928 "\n"
17929 msgstr ""
17930 " copy-out /home .\n"
17931 "\n"
17932
17933 #. type: textblock
17934 #: ../fish/guestfish-commands.pod:46
17935 msgid ""
17936 "Wildcards cannot be used in the ordinary command, but you can use them with "
17937 "the help of L</glob> like this:"
17938 msgstr ""
17939
17940 #. type: verbatim
17941 #: ../fish/guestfish-commands.pod:49
17942 #, no-wrap
17943 msgid ""
17944 " glob copy-out /home/* .\n"
17945 "\n"
17946 msgstr ""
17947 " glob copy-out /home/* .\n"
17948 "\n"
17949
17950 #. type: =head2
17951 #: ../fish/guestfish-commands.pod:51
17952 msgid "display"
17953 msgstr ""
17954
17955 #. type: verbatim
17956 #: ../fish/guestfish-commands.pod:53
17957 #, no-wrap
17958 msgid ""
17959 " display filename\n"
17960 "\n"
17961 msgstr ""
17962
17963 #. type: textblock
17964 #: ../fish/guestfish-commands.pod:55
17965 msgid ""
17966 "Use C<display> (a graphical display program) to display an image file.  It "
17967 "downloads the file, and runs C<display> on it."
17968 msgstr ""
17969
17970 #. type: textblock
17971 #: ../fish/guestfish-commands.pod:58
17972 msgid ""
17973 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17974 "environment variable.  For example to use the GNOME display program:"
17975 msgstr ""
17976
17977 #. type: verbatim
17978 #: ../fish/guestfish-commands.pod:61
17979 #, no-wrap
17980 msgid ""
17981 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17982 "\n"
17983 msgstr ""
17984
17985 #. type: textblock
17986 #: ../fish/guestfish-commands.pod:63
17987 msgid "See also L<display(1)>."
17988 msgstr "Див. також L<display(1)>."
17989
17990 #. type: =head2
17991 #: ../fish/guestfish-commands.pod:65
17992 msgid "echo"
17993 msgstr "echo"
17994
17995 #. type: verbatim
17996 #: ../fish/guestfish-commands.pod:67
17997 #, no-wrap
17998 msgid ""
17999 " echo [params ...]\n"
18000 "\n"
18001 msgstr ""
18002 " echo [параметри...]\n"
18003 "\n"
18004
18005 #. type: textblock
18006 #: ../fish/guestfish-commands.pod:69
18007 msgid "This echos the parameters to the terminal."
18008 msgstr ""
18009
18010 #. type: =head2
18011 #: ../fish/guestfish-commands.pod:71
18012 msgid "edit"
18013 msgstr "edit"
18014
18015 #. type: =head2
18016 #: ../fish/guestfish-commands.pod:73
18017 msgid "vi"
18018 msgstr "vi"
18019
18020 #. type: =head2
18021 #: ../fish/guestfish-commands.pod:75
18022 msgid "emacs"
18023 msgstr "emacs"
18024
18025 #. type: verbatim
18026 #: ../fish/guestfish-commands.pod:77
18027 #, no-wrap
18028 msgid ""
18029 " edit filename\n"
18030 "\n"
18031 msgstr ""
18032 " edit назва_файла\n"
18033 "\n"
18034
18035 #. type: textblock
18036 #: ../fish/guestfish-commands.pod:79
18037 msgid ""
18038 "This is used to edit a file.  It downloads the file, edits it locally using "
18039 "your editor, then uploads the result."
18040 msgstr ""
18041
18042 #. type: textblock
18043 #: ../fish/guestfish-commands.pod:82
18044 msgid ""
18045 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18046 "or C<emacs> you will get those corresponding editors."
18047 msgstr ""
18048
18049 #. type: =head2
18050 #: ../fish/guestfish-commands.pod:86
18051 msgid "glob"
18052 msgstr "glob"
18053
18054 #. type: verbatim
18055 #: ../fish/guestfish-commands.pod:88
18056 #, no-wrap
18057 msgid ""
18058 " glob command args...\n"
18059 "\n"
18060 msgstr ""
18061 " glob команда параметри...\n"
18062 "\n"
18063
18064 #. type: textblock
18065 #: ../fish/guestfish-commands.pod:90
18066 msgid ""
18067 "Expand wildcards in any paths in the args list, and run C<command> "
18068 "repeatedly on each matching path."
18069 msgstr ""
18070
18071 #. type: textblock
18072 #: ../fish/guestfish-commands.pod:93
18073 msgid "See L</WILDCARDS AND GLOBBING>."
18074 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18075
18076 #. type: =head2
18077 #: ../fish/guestfish-commands.pod:95
18078 msgid "hexedit"
18079 msgstr "hexedit"
18080
18081 #. type: verbatim
18082 #: ../fish/guestfish-commands.pod:97
18083 #, no-wrap
18084 msgid ""
18085 " hexedit <filename|device>\n"
18086 " hexedit <filename|device> <max>\n"
18087 " hexedit <filename|device> <start> <max>\n"
18088 "\n"
18089 msgstr ""
18090
18091 #. type: textblock
18092 #: ../fish/guestfish-commands.pod:101
18093 msgid ""
18094 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18095 "device."
18096 msgstr ""
18097
18098 #. type: textblock
18099 #: ../fish/guestfish-commands.pod:104
18100 msgid ""
18101 "This command works by downloading potentially the whole file or device, "
18102 "editing it locally, then uploading it.  If the file or device is large, you "
18103 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18104 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18105 "usual modifiers allowed such as C<1M> (1 megabyte)."
18106 msgstr ""
18107
18108 #. type: textblock
18109 #: ../fish/guestfish-commands.pod:111
18110 msgid "For example to edit the first few sectors of a disk you might do:"
18111 msgstr ""
18112
18113 #. type: verbatim
18114 #: ../fish/guestfish-commands.pod:114
18115 #, no-wrap
18116 msgid ""
18117 " hexedit /dev/sda 1M\n"
18118 "\n"
18119 msgstr ""
18120 " hexedit /dev/sda 1M\n"
18121 "\n"
18122
18123 #. type: textblock
18124 #: ../fish/guestfish-commands.pod:116
18125 msgid ""
18126 "which would allow you to edit anywhere within the first megabyte of the disk."
18127 msgstr ""
18128
18129 #. type: textblock
18130 #: ../fish/guestfish-commands.pod:119
18131 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18132 msgstr ""
18133
18134 #. type: verbatim
18135 #: ../fish/guestfish-commands.pod:121
18136 #, no-wrap
18137 msgid ""
18138 " hexedit /dev/sda1 0x400 0x400\n"
18139 "\n"
18140 msgstr ""
18141 " hexedit /dev/sda1 0x400 0x400\n"
18142 "\n"
18143
18144 #. type: textblock
18145 #: ../fish/guestfish-commands.pod:123
18146 msgid "(assuming the superblock is in the standard location)."
18147 msgstr ""
18148
18149 #. type: textblock
18150 #: ../fish/guestfish-commands.pod:125
18151 msgid ""
18152 "This command requires the external L<hexedit(1)> program.  You can specify "
18153 "another program to use by setting the C<HEXEDITOR> environment variable."
18154 msgstr ""
18155
18156 #. type: textblock
18157 #: ../fish/guestfish-commands.pod:129
18158 msgid "See also L</hexdump>."
18159 msgstr "Див. також L</hexdump>."
18160
18161 #. type: =head2
18162 #: ../fish/guestfish-commands.pod:131
18163 msgid "lcd"
18164 msgstr "lcd"
18165
18166 #. type: verbatim
18167 #: ../fish/guestfish-commands.pod:133
18168 #, no-wrap
18169 msgid ""
18170 " lcd directory\n"
18171 "\n"
18172 msgstr ""
18173
18174 #. type: textblock
18175 #: ../fish/guestfish-commands.pod:135
18176 msgid ""
18177 "Change the local directory, ie. the current directory of guestfish itself."
18178 msgstr ""
18179
18180 #. type: textblock
18181 #: ../fish/guestfish-commands.pod:138
18182 msgid "Note that C<!cd> won't do what you might expect."
18183 msgstr ""
18184
18185 #. type: =head2
18186 #: ../fish/guestfish-commands.pod:140
18187 msgid "man"
18188 msgstr "man"
18189
18190 #. type: =head2
18191 #: ../fish/guestfish-commands.pod:142
18192 msgid "manual"
18193 msgstr "підручник"
18194
18195 #. type: verbatim
18196 #: ../fish/guestfish-commands.pod:144
18197 #, no-wrap
18198 msgid ""
18199 "  man\n"
18200 "\n"
18201 msgstr ""
18202 "  man\n"
18203 "\n"
18204
18205 #. type: textblock
18206 #: ../fish/guestfish-commands.pod:146
18207 msgid "Opens the manual page for guestfish."
18208 msgstr ""
18209
18210 #. type: =head2
18211 #: ../fish/guestfish-commands.pod:148
18212 msgid "more"
18213 msgstr "more"
18214
18215 #. type: =head2
18216 #: ../fish/guestfish-commands.pod:150
18217 msgid "less"
18218 msgstr "less"
18219
18220 #. type: verbatim
18221 #: ../fish/guestfish-commands.pod:152
18222 #, no-wrap
18223 msgid ""
18224 " more filename\n"
18225 "\n"
18226 msgstr ""
18227
18228 #. type: verbatim
18229 #: ../fish/guestfish-commands.pod:154
18230 #, no-wrap
18231 msgid ""
18232 " less filename\n"
18233 "\n"
18234 msgstr ""
18235
18236 #. type: textblock
18237 #: ../fish/guestfish-commands.pod:156
18238 msgid "This is used to view a file."
18239 msgstr ""
18240
18241 #. type: textblock
18242 #: ../fish/guestfish-commands.pod:158
18243 msgid ""
18244 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18245 "C<less> you will get the C<less> command specifically."
18246 msgstr ""
18247
18248 #. type: =head2
18249 #: ../fish/guestfish-commands.pod:161
18250 msgid "reopen"
18251 msgstr "reopen"
18252
18253 #. type: verbatim
18254 #: ../fish/guestfish-commands.pod:163
18255 #, no-wrap
18256 msgid ""
18257 "  reopen\n"
18258 "\n"
18259 msgstr ""
18260
18261 #. type: textblock
18262 #: ../fish/guestfish-commands.pod:165
18263 msgid ""
18264 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18265 "normally, because the handle is closed properly when guestfish exits.  "
18266 "However this is occasionally useful for testing."
18267 msgstr ""
18268
18269 #. type: =head2
18270 #: ../fish/guestfish-commands.pod:169
18271 msgid "setenv"
18272 msgstr ""
18273
18274 #. type: verbatim
18275 #: ../fish/guestfish-commands.pod:171
18276 #, no-wrap
18277 msgid ""
18278 "  setenv VAR value\n"
18279 "\n"
18280 msgstr ""
18281
18282 #. type: textblock
18283 #: ../fish/guestfish-commands.pod:173
18284 msgid "Set the environment variable C<VAR> to the string C<value>."
18285 msgstr ""
18286
18287 #. type: textblock
18288 #: ../fish/guestfish-commands.pod:175
18289 msgid ""
18290 "To print the value of an environment variable use a shell command such as:"
18291 msgstr ""
18292
18293 #. type: verbatim
18294 #: ../fish/guestfish-commands.pod:178
18295 #, no-wrap
18296 msgid ""
18297 " !echo $VAR\n"
18298 "\n"
18299 msgstr ""
18300
18301 #. type: =head2
18302 #: ../fish/guestfish-commands.pod:180
18303 msgid "sparse"
18304 msgstr "sparse"
18305
18306 #. type: verbatim
18307 #: ../fish/guestfish-commands.pod:182
18308 #, no-wrap
18309 msgid ""
18310 " sparse filename size\n"
18311 "\n"
18312 msgstr ""
18313
18314 #. type: textblock
18315 #: ../fish/guestfish-commands.pod:184
18316 msgid ""
18317 "This creates an empty sparse file of the given size, and then adds so it can "
18318 "be further examined."
18319 msgstr ""
18320
18321 #. type: textblock
18322 #: ../fish/guestfish-commands.pod:187
18323 msgid ""
18324 "In all respects it works the same as the L</alloc> command, except that the "
18325 "image file is allocated sparsely, which means that disk blocks are not "
18326 "assigned to the file until they are needed.  Sparse disk files only use "
18327 "space when written to, but they are slower and there is a danger you could "
18328 "run out of real disk space during a write operation."
18329 msgstr ""
18330
18331 #. type: =head2
18332 #: ../fish/guestfish-commands.pod:197
18333 msgid "supported"
18334 msgstr "supported"
18335
18336 #. type: verbatim
18337 #: ../fish/guestfish-commands.pod:199
18338 #, no-wrap
18339 msgid ""
18340 " supported\n"
18341 "\n"
18342 msgstr ""
18343 " supported\n"
18344 "\n"
18345
18346 #. type: textblock
18347 #: ../fish/guestfish-commands.pod:201
18348 msgid ""
18349 "This command returns a list of the optional groups known to the daemon, and "
18350 "indicates which ones are supported by this build of the libguestfs appliance."
18351 msgstr ""
18352
18353 #. type: textblock
18354 #: ../fish/guestfish-commands.pod:205
18355 msgid "See also L<guestfs(3)/AVAILABILITY>."
18356 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
18357
18358 #. type: =head2
18359 #: ../fish/guestfish-commands.pod:207
18360 msgid "time"
18361 msgstr "time"
18362
18363 #. type: verbatim
18364 #: ../fish/guestfish-commands.pod:209
18365 #, no-wrap
18366 msgid ""
18367 " time command args...\n"
18368 "\n"
18369 msgstr ""
18370
18371 #. type: textblock
18372 #: ../fish/guestfish-commands.pod:211
18373 msgid ""
18374 "Run the command as usual, but print the elapsed time afterwards.  This can "
18375 "be useful for benchmarking operations."
18376 msgstr ""
18377
18378 #. type: =head2
18379 #: ../fish/guestfish-commands.pod:214
18380 msgid "unsetenv"
18381 msgstr ""
18382
18383 #. type: verbatim
18384 #: ../fish/guestfish-commands.pod:216
18385 #, no-wrap
18386 msgid ""
18387 "  unsetenv VAR\n"
18388 "\n"
18389 msgstr ""
18390
18391 #. type: textblock
18392 #: ../fish/guestfish-commands.pod:218
18393 msgid "Remove C<VAR> from the environment."
18394 msgstr ""
18395
18396 #. type: textblock
18397 #: ../fish/guestfish.pod:5
18398 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18399 msgstr ""
18400
18401 #. type: verbatim
18402 #: ../fish/guestfish.pod:9
18403 #, no-wrap
18404 msgid ""
18405 " guestfish [--options] [commands]\n"
18406 "\n"
18407 msgstr ""
18408
18409 #. type: verbatim
18410 #: ../fish/guestfish.pod:11
18411 #, no-wrap
18412 msgid ""
18413 " guestfish\n"
18414 "\n"
18415 msgstr ""
18416
18417 #. type: verbatim
18418 #: ../fish/guestfish.pod:13
18419 #, no-wrap
18420 msgid ""
18421 " guestfish [--ro|--rw] -a disk.img\n"
18422 "\n"
18423 msgstr ""
18424
18425 #. type: verbatim
18426 #: ../fish/guestfish.pod:15
18427 #, no-wrap
18428 msgid ""
18429 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18430 "\n"
18431 msgstr ""
18432
18433 #. type: verbatim
18434 #: ../fish/guestfish.pod:17
18435 #, no-wrap
18436 msgid ""
18437 " guestfish -d libvirt-domain\n"
18438 "\n"
18439 msgstr ""
18440
18441 #. type: verbatim
18442 #: ../fish/guestfish.pod:19
18443 #, no-wrap
18444 msgid ""
18445 " guestfish [--ro|--rw] -a disk.img -i\n"
18446 "\n"
18447 msgstr ""
18448
18449 #. type: verbatim
18450 #: ../fish/guestfish.pod:21
18451 #, no-wrap
18452 msgid ""
18453 " guestfish -d libvirt-domain -i\n"
18454 "\n"
18455 msgstr ""
18456
18457 #. type: textblock
18458 #: ../fish/guestfish.pod:25
18459 msgid ""
18460 "Using guestfish in read/write mode on live virtual machines can be "
18461 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18462 "option to use guestfish safely if the disk image or virtual machine might be "
18463 "live."
18464 msgstr ""
18465
18466 #. type: textblock
18467 #: ../fish/guestfish.pod:32
18468 msgid ""
18469 "Guestfish is a shell and command-line tool for examining and modifying "
18470 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18471 "functionality of the guestfs API, see L<guestfs(3)>."
18472 msgstr ""
18473
18474 #. type: textblock
18475 #: ../fish/guestfish.pod:36
18476 msgid ""
18477 "Guestfish gives you structured access to the libguestfs API, from shell "
18478 "scripts or the command line or interactively.  If you want to rescue a "
18479 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18480 "command."
18481 msgstr ""
18482
18483 #. type: =head2
18484 #: ../fish/guestfish.pod:43
18485 msgid "As an interactive shell"
18486 msgstr ""
18487
18488 #. type: verbatim
18489 #: ../fish/guestfish.pod:45
18490 #, no-wrap
18491 msgid ""
18492 " $ guestfish\n"
18493 " \n"
18494 msgstr ""
18495
18496 #. type: verbatim
18497 #: ../fish/guestfish.pod:47
18498 #, no-wrap
18499 msgid ""
18500 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18501 " editing virtual machine filesystems.\n"
18502 " \n"
18503 msgstr ""
18504
18505 #. type: verbatim
18506 #: ../fish/guestfish.pod:50
18507 #, no-wrap
18508 msgid ""
18509 " Type: 'help' for a list of commands\n"
18510 "       'man' to read the manual\n"
18511 "       'quit' to quit the shell\n"
18512 " \n"
18513 msgstr ""
18514
18515 #. type: verbatim
18516 #: ../fish/guestfish.pod:54
18517 #, no-wrap
18518 msgid ""
18519 " ><fs> add-ro disk.img\n"
18520 " ><fs> run\n"
18521 " ><fs> list-filesystems\n"
18522 " /dev/sda1: ext4\n"
18523 " /dev/vg_guest/lv_root: ext4\n"
18524 " /dev/vg_guest/lv_swap: swap\n"
18525 " ><fs> mount /dev/vg_guest/lv_root /\n"
18526 " ><fs> cat /etc/fstab\n"
18527 " # /etc/fstab\n"
18528 " # Created by anaconda\n"
18529 " [...]\n"
18530 " ><fs> exit\n"
18531 "\n"
18532 msgstr ""
18533
18534 #. type: =head2
18535 #: ../fish/guestfish.pod:67
18536 msgid "From shell scripts"
18537 msgstr ""
18538
18539 #. type: textblock
18540 #: ../fish/guestfish.pod:69
18541 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18542 msgstr ""
18543
18544 #. type: verbatim
18545 #: ../fish/guestfish.pod:71
18546 #, no-wrap
18547 msgid ""
18548 " guestfish <<_EOF_\n"
18549 " add disk.img\n"
18550 " run\n"
18551 " mount /dev/vg_guest/lv_root /\n"
18552 " write /etc/motd \"Welcome, new users\"\n"
18553 " _EOF_\n"
18554 "\n"
18555 msgstr ""
18556
18557 #. type: textblock
18558 #: ../fish/guestfish.pod:78
18559 msgid "List the LVM logical volumes in a disk image:"
18560 msgstr ""
18561
18562 #. type: verbatim
18563 #: ../fish/guestfish.pod:80
18564 #, no-wrap
18565 msgid ""
18566 " guestfish -a disk.img --ro <<_EOF_\n"
18567 " run\n"
18568 " lvs\n"
18569 " _EOF_\n"
18570 "\n"
18571 msgstr ""
18572
18573 #. type: textblock
18574 #: ../fish/guestfish.pod:85
18575 msgid "List all the filesystems in a disk image:"
18576 msgstr ""
18577
18578 #. type: verbatim
18579 #: ../fish/guestfish.pod:87
18580 #, no-wrap
18581 msgid ""
18582 " guestfish -a disk.img --ro <<_EOF_\n"
18583 " run\n"
18584 " list-filesystems\n"
18585 " _EOF_\n"
18586 "\n"
18587 msgstr ""
18588
18589 #. type: =head2
18590 #: ../fish/guestfish.pod:92
18591 msgid "On one command line"
18592 msgstr ""
18593
18594 #. type: textblock
18595 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18596 msgid "Update C</etc/resolv.conf> in a guest:"
18597 msgstr ""
18598
18599 #. type: verbatim
18600 #: ../fish/guestfish.pod:96
18601 #, no-wrap
18602 msgid ""
18603 " guestfish \\\n"
18604 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18605 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18606 "\n"
18607 msgstr ""
18608
18609 #. type: textblock
18610 #: ../fish/guestfish.pod:100
18611 msgid "Edit C</boot/grub/grub.conf> interactively:"
18612 msgstr ""
18613
18614 #. type: verbatim
18615 #: ../fish/guestfish.pod:102
18616 #, no-wrap
18617 msgid ""
18618 " guestfish --rw --add disk.img \\\n"
18619 "   --mount /dev/vg_guest/lv_root \\\n"
18620 "   --mount /dev/sda1:/boot \\\n"
18621 "   edit /boot/grub/grub.conf\n"
18622 "\n"
18623 msgstr ""
18624
18625 #. type: =head2
18626 #: ../fish/guestfish.pod:107
18627 msgid "Mount disks automatically"
18628 msgstr ""
18629
18630 #. type: textblock
18631 #: ../fish/guestfish.pod:109
18632 msgid ""
18633 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18634 msgstr ""
18635
18636 #. type: verbatim
18637 #: ../fish/guestfish.pod:112
18638 #, no-wrap
18639 msgid ""
18640 " guestfish --ro -a disk.img -i cat /etc/group\n"
18641 "\n"
18642 msgstr ""
18643
18644 #. type: verbatim
18645 #: ../fish/guestfish.pod:114
18646 #, no-wrap
18647 msgid ""
18648 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18649 "\n"
18650 msgstr ""
18651
18652 #. type: textblock
18653 #: ../fish/guestfish.pod:116
18654 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18655 msgstr ""
18656
18657 #. type: verbatim
18658 #: ../fish/guestfish.pod:118
18659 #, no-wrap
18660 msgid ""
18661 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18662 "\n"
18663 msgstr ""
18664
18665 #. type: =head2
18666 #: ../fish/guestfish.pod:120
18667 msgid "As a script interpreter"
18668 msgstr ""
18669
18670 #. type: textblock
18671 #: ../fish/guestfish.pod:122
18672 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18673 msgstr ""
18674
18675 #. type: verbatim
18676 #: ../fish/guestfish.pod:124
18677 #, no-wrap
18678 msgid ""
18679 " #!/usr/bin/guestfish -f\n"
18680 " sparse test1.img 100M\n"
18681 " run\n"
18682 " part-disk /dev/sda mbr\n"
18683 " mkfs ext2 /dev/sda1\n"
18684 "\n"
18685 msgstr ""
18686
18687 #. type: =head2
18688 #: ../fish/guestfish.pod:130
18689 msgid "Start with a prepared disk"
18690 msgstr ""
18691
18692 #. type: textblock
18693 #: ../fish/guestfish.pod:132
18694 msgid ""
18695 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18696 "single ext2-formatted partition:"
18697 msgstr ""
18698
18699 #. type: verbatim
18700 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
18701 #, no-wrap
18702 msgid ""
18703 " guestfish -N fs\n"
18704 "\n"
18705 msgstr ""
18706
18707 #. type: textblock
18708 #: ../fish/guestfish.pod:137
18709 msgid "To list what is available do:"
18710 msgstr ""
18711
18712 #. type: verbatim
18713 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18714 #, no-wrap
18715 msgid ""
18716 " guestfish -N help | less\n"
18717 "\n"
18718 msgstr ""
18719
18720 #. type: =head2
18721 #: ../fish/guestfish.pod:141
18722 msgid "Remote control"
18723 msgstr "Дистанційне керування"
18724
18725 #. type: verbatim
18726 #: ../fish/guestfish.pod:143
18727 #, no-wrap
18728 msgid ""
18729 " eval \"`guestfish --listen`\"\n"
18730 " guestfish --remote add-ro disk.img\n"
18731 " guestfish --remote run\n"
18732 " guestfish --remote lvs\n"
18733 "\n"
18734 msgstr ""
18735 " eval \"`guestfish --listen`\"\n"
18736 " guestfish --remote add-ro disk.img\n"
18737 " guestfish --remote run\n"
18738 " guestfish --remote lvs\n"
18739 "\n"
18740
18741 #. type: textblock
18742 #: ../fish/guestfish.pod:154
18743 msgid "Displays general help on options."
18744 msgstr ""
18745
18746 #. type: =item
18747 #: ../fish/guestfish.pod:158
18748 msgid "B<--cmd-help>"
18749 msgstr "B<--cmd-help>"
18750
18751 #. type: textblock
18752 #: ../fish/guestfish.pod:160
18753 msgid "Lists all available guestfish commands."
18754 msgstr ""
18755
18756 #. type: =item
18757 #: ../fish/guestfish.pod:162
18758 msgid "B<-h cmd>"
18759 msgstr "B<-h команда>"
18760
18761 #. type: =item
18762 #: ../fish/guestfish.pod:164
18763 msgid "B<--cmd-help cmd>"
18764 msgstr "B<--cmd-help команда>"
18765
18766 #. type: textblock
18767 #: ../fish/guestfish.pod:166
18768 msgid "Displays detailed help on a single command C<cmd>."
18769 msgstr ""
18770
18771 #. type: =item
18772 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18773 msgid "B<-a image>"
18774 msgstr "B<-a образ>"
18775
18776 #. type: =item
18777 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18778 msgid "B<--add image>"
18779 msgstr "B<--add образ>"
18780
18781 #. type: textblock
18782 #: ../fish/guestfish.pod:172
18783 msgid "Add a block device or virtual machine image to the shell."
18784 msgstr ""
18785
18786 #. type: textblock
18787 #: ../fish/guestfish.pod:177
18788 msgid ""
18789 "Using this flag is mostly equivalent to using the C<add> command, with "
18790 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18791 "the I<--format=...> flag was given."
18792 msgstr ""
18793
18794 #. type: textblock
18795 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18796 msgid ""
18797 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18798 "URI to use.  The default is to use the default libvirt connection."
18799 msgstr ""
18800
18801 #. type: =item
18802 #: ../fish/guestfish.pod:189
18803 msgid "B<--csh>"
18804 msgstr "B<--csh>"
18805
18806 #. type: textblock
18807 #: ../fish/guestfish.pod:191
18808 msgid ""
18809 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18810 "section L</REMOTE CONTROL AND CSH> below."
18811 msgstr ""
18812
18813 #. type: =item
18814 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18815 msgid "B<-d libvirt-domain>"
18816 msgstr "B<-d домен-libvirt>"
18817
18818 #. type: =item
18819 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18820 msgid "B<--domain libvirt-domain>"
18821 msgstr "B<--domain домен-libvirt>"
18822
18823 #. type: textblock
18824 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18825 msgid ""
18826 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18827 "used, then any libvirt domain can be used.  However in write mode, only "
18828 "libvirt domains which are shut down can be named here."
18829 msgstr ""
18830
18831 #. type: textblock
18832 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18833 msgid "Domain UUIDs can be used instead of names."
18834 msgstr ""
18835
18836 #. type: textblock
18837 #: ../fish/guestfish.pod:204
18838 msgid ""
18839 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18840 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18841 "if the I<--format:...> flag was given."
18842 msgstr ""
18843
18844 #. type: =item
18845 #: ../fish/guestfish.pod:208
18846 msgid "B<-D>"
18847 msgstr "B<-D>"
18848
18849 #. type: =item
18850 #: ../fish/guestfish.pod:210
18851 msgid "B<--no-dest-paths>"
18852 msgstr "B<--no-dest-paths>"
18853
18854 #. type: textblock
18855 #: ../fish/guestfish.pod:212
18856 msgid ""
18857 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18858 "to hit the tab key to complete paths on the guest filesystem, but this "
18859 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18860 "allow this feature to be disabled."
18861 msgstr ""
18862
18863 #. type: textblock
18864 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18865 msgid ""
18866 "When prompting for keys and passphrases, guestfish normally turns echoing "
18867 "off so you cannot see what you are typing.  If you are not worried about "
18868 "Tempest attacks and there is no one else in the room you can specify this "
18869 "flag to see what you are typing."
18870 msgstr ""
18871
18872 #. type: =item
18873 #: ../fish/guestfish.pod:224
18874 msgid "B<-f file>"
18875 msgstr "B<-f файл>"
18876
18877 #. type: =item
18878 #: ../fish/guestfish.pod:226
18879 msgid "B<--file file>"
18880 msgstr "B<--file файл>"
18881
18882 #. type: textblock
18883 #: ../fish/guestfish.pod:228
18884 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18885 msgstr ""
18886
18887 #. type: verbatim
18888 #: ../fish/guestfish.pod:231
18889 #, no-wrap
18890 msgid ""
18891 " #!/usr/bin/guestfish -f\n"
18892 "\n"
18893 msgstr ""
18894 " #!/usr/bin/guestfish -f\n"
18895 "\n"
18896
18897 #. type: verbatim
18898 #: ../fish/guestfish.pod:244
18899 #, no-wrap
18900 msgid ""
18901 " guestfish --format=raw -a disk.img\n"
18902 "\n"
18903 msgstr ""
18904 " guestfish --format=raw -a disk.img\n"
18905 "\n"
18906
18907 #. type: verbatim
18908 #: ../fish/guestfish.pod:248
18909 #, no-wrap
18910 msgid ""
18911 " guestfish --format=raw -a disk.img --format -a another.img\n"
18912 "\n"
18913 msgstr ""
18914 " guestfish --format=raw -a disk.img --format -a another.img\n"
18915 "\n"
18916
18917 #. type: textblock
18918 #: ../fish/guestfish.pod:253
18919 msgid ""
18920 "If you have untrusted raw-format guest disk images, you should use this "
18921 "option to specify the disk format.  This avoids a possible security problem "
18922 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18923 msgstr ""
18924
18925 #. type: =item
18926 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18927 msgid "B<--inspector>"
18928 msgstr "B<--inspector>"
18929
18930 #. type: textblock
18931 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18932 msgid ""
18933 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18934 "system and mount filesystems as they would be mounted on the real virtual "
18935 "machine."
18936 msgstr ""
18937
18938 #. type: textblock
18939 #: ../fish/guestfish.pod:266
18940 msgid "Typical usage is either:"
18941 msgstr ""
18942
18943 #. type: verbatim
18944 #: ../fish/guestfish.pod:268
18945 #, no-wrap
18946 msgid ""
18947 " guestfish -d myguest -i\n"
18948 "\n"
18949 msgstr ""
18950 " guestfish -d myguest -i\n"
18951 "\n"
18952
18953 #. type: textblock
18954 #: ../fish/guestfish.pod:270
18955 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18956 msgstr ""
18957
18958 #. type: verbatim
18959 #: ../fish/guestfish.pod:272
18960 #, no-wrap
18961 msgid ""
18962 " guestfish --ro -d myguest -i\n"
18963 "\n"
18964 msgstr ""
18965 " guestfish --ro -d myguest -i\n"
18966 "\n"
18967
18968 #. type: textblock
18969 #: ../fish/guestfish.pod:274
18970 msgid "(for active domains, readonly), or specify the block device directly:"
18971 msgstr ""
18972
18973 #. type: verbatim
18974 #: ../fish/guestfish.pod:276
18975 #, no-wrap
18976 msgid ""
18977 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18978 "\n"
18979 msgstr ""
18980 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18981 "\n"
18982
18983 #. type: textblock
18984 #: ../fish/guestfish.pod:278
18985 msgid ""
18986 "Note that the command line syntax changed slightly over older versions of "
18987 "guestfish.  You can still use the old syntax:"
18988 msgstr ""
18989
18990 #. type: verbatim
18991 #: ../fish/guestfish.pod:281
18992 #, no-wrap
18993 msgid ""
18994 " guestfish [--ro] -i disk.img\n"
18995 "\n"
18996 msgstr ""
18997 " guestfish [--ro] -i disk.img\n"
18998 "\n"
18999
19000 #. type: verbatim
19001 #: ../fish/guestfish.pod:283
19002 #, no-wrap
19003 msgid ""
19004 " guestfish [--ro] -i libvirt-domain\n"
19005 "\n"
19006 msgstr ""
19007
19008 #. type: textblock
19009 #: ../fish/guestfish.pod:285
19010 msgid ""
19011 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19012 "then using other commands to mount the filesystems that were found."
19013 msgstr ""
19014
19015 #. type: =item
19016 #: ../fish/guestfish.pod:294
19017 msgid "B<--listen>"
19018 msgstr "B<--listen>"
19019
19020 #. type: textblock
19021 #: ../fish/guestfish.pod:296
19022 msgid ""
19023 "Fork into the background and listen for remote commands.  See section L</"
19024 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19025 msgstr ""
19026
19027 #. type: =item
19028 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19029 msgid "B<--live>"
19030 msgstr "B<--live>"
19031
19032 #. type: textblock
19033 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19034 msgid ""
19035 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19036 "ATTACHING TO RUNNING DAEMONS>)."
19037 msgstr ""
19038
19039 #. type: =item
19040 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19041 msgid "B<-m dev[:mountpoint[:options]]>"
19042 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
19043
19044 #. type: =item
19045 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19046 msgid "B<--mount dev[:mountpoint[:options]]>"
19047 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
19048
19049 #. type: textblock
19050 #: ../fish/guestfish.pod:308
19051 msgid "Mount the named partition or logical volume on the given mountpoint."
19052 msgstr ""
19053
19054 #. type: textblock
19055 #: ../fish/guestfish.pod:310
19056 msgid "If the mountpoint is omitted, it defaults to C</>."
19057 msgstr ""
19058
19059 #. type: textblock
19060 #: ../fish/guestfish.pod:312
19061 msgid "You have to mount something on C</> before most commands will work."
19062 msgstr ""
19063
19064 #. type: textblock
19065 #: ../fish/guestfish.pod:314
19066 msgid ""
19067 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19068 "launched."
19069 msgstr ""
19070
19071 #. type: textblock
19072 #: ../fish/guestfish.pod:317
19073 msgid ""
19074 "If you don't know what filesystems a disk image contains, you can either run "
19075 "guestfish without this option, then list the partitions, filesystems and LVs "
19076 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19077 "commands), or you can use the L<virt-filesystems(1)> program."
19078 msgstr ""
19079
19080 #. type: textblock
19081 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19082 msgid ""
19083 "The third (and rarely used) part of the mount parameter is the list of mount "
19084 "options used to mount the underlying filesystem.  If this is not given, then "
19085 "the mount options are either the empty string or C<ro> (the latter if the "
19086 "I<--ro> flag is used).  By specifying the mount options, you override this "
19087 "default choice.  Probably the only time you would use this is to enable ACLs "
19088 "and/or extended attributes if the filesystem can support them:"
19089 msgstr ""
19090
19091 #. type: verbatim
19092 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19093 #, no-wrap
19094 msgid ""
19095 " -m /dev/sda1:/:acl,user_xattr\n"
19096 "\n"
19097 msgstr ""
19098
19099 #. type: textblock
19100 #: ../fish/guestfish.pod:333
19101 msgid "Using this flag is equivalent to using the C<mount-options> command."
19102 msgstr ""
19103
19104 #. type: =item
19105 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19106 #: ../resize/virt-resize.pod:414
19107 msgid "B<-n>"
19108 msgstr "B<-n>"
19109
19110 #. type: =item
19111 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19112 msgid "B<--no-sync>"
19113 msgstr "B<--no-sync>"
19114
19115 #. type: textblock
19116 #: ../fish/guestfish.pod:339
19117 msgid ""
19118 "Disable autosync.  This is enabled by default.  See the discussion of "
19119 "autosync in the L<guestfs(3)> manpage."
19120 msgstr ""
19121
19122 #. type: =item
19123 #: ../fish/guestfish.pod:342
19124 msgid "B<-N type>"
19125 msgstr "B<-N тип>"
19126
19127 #. type: =item
19128 #: ../fish/guestfish.pod:344
19129 msgid "B<--new type>"
19130 msgstr "B<--new тип>"
19131
19132 #. type: =item
19133 #: ../fish/guestfish.pod:346
19134 msgid "B<-N help>"
19135 msgstr "B<-N help>"
19136
19137 #. type: textblock
19138 #: ../fish/guestfish.pod:348
19139 msgid ""
19140 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19141 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19142 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19143 "IMAGES> below."
19144 msgstr ""
19145
19146 #. type: =item
19147 #: ../fish/guestfish.pod:353
19148 msgid "B<--progress-bars>"
19149 msgstr "B<--progress-bars>"
19150
19151 #. type: textblock
19152 #: ../fish/guestfish.pod:355
19153 msgid "Enable progress bars, even when guestfish is used non-interactively."
19154 msgstr ""
19155
19156 #. type: textblock
19157 #: ../fish/guestfish.pod:357
19158 msgid ""
19159 "Progress bars are enabled by default when guestfish is used as an "
19160 "interactive shell."
19161 msgstr ""
19162
19163 #. type: =item
19164 #: ../fish/guestfish.pod:360
19165 msgid "B<--no-progress-bars>"
19166 msgstr "B<--no-progress-bars>"
19167
19168 #. type: textblock
19169 #: ../fish/guestfish.pod:362
19170 msgid "Disable progress bars."
19171 msgstr ""
19172
19173 #. type: =item
19174 #: ../fish/guestfish.pod:364
19175 msgid "B<--remote[=pid]>"
19176 msgstr "B<--remote[=pid]>"
19177
19178 #. type: textblock
19179 #: ../fish/guestfish.pod:366
19180 msgid ""
19181 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19182 "CONTROL GUESTFISH OVER A SOCKET> below."
19183 msgstr ""
19184
19185 #. type: =item
19186 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19187 #: ../rescue/virt-rescue.pod:161
19188 msgid "B<-r>"
19189 msgstr "B<-r>"
19190
19191 #. type: =item
19192 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19193 #: ../rescue/virt-rescue.pod:163
19194 msgid "B<--ro>"
19195 msgstr "B<--ro>"
19196
19197 #. type: textblock
19198 #: ../fish/guestfish.pod:373
19199 msgid ""
19200 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19201 "mounts are done read-only."
19202 msgstr ""
19203
19204 #. type: textblock
19205 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19206 msgid ""
19207 "The option must always be used if the disk image or virtual machine might be "
19208 "running, and is generally recommended in cases where you don't need write "
19209 "access to the disk."
19210 msgstr ""
19211
19212 #. type: textblock
19213 #: ../fish/guestfish.pod:380
19214 msgid ""
19215 "Note that prepared disk images created with I<-N> are not affected by this "
19216 "option.  Also commands like C<add> are not affected - you have to specify "
19217 "the C<readonly:true> option explicitly if you need it."
19218 msgstr ""
19219
19220 #. type: textblock
19221 #: ../fish/guestfish.pod:384
19222 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19223 msgstr ""
19224
19225 #. type: =item
19226 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19227 #: ../rescue/virt-rescue.pod:173
19228 msgid "B<--selinux>"
19229 msgstr "B<--selinux>"
19230
19231 #. type: textblock
19232 #: ../fish/guestfish.pod:388
19233 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19234 msgstr ""
19235
19236 #. type: textblock
19237 #: ../fish/guestfish.pod:394
19238 msgid ""
19239 "Enable very verbose messages.  This is particularly useful if you find a bug."
19240 msgstr ""
19241
19242 #. type: textblock
19243 #: ../fish/guestfish.pod:401
19244 msgid "Display the guestfish / libguestfs version number and exit."
19245 msgstr ""
19246
19247 #. type: =item
19248 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19249 #: ../rescue/virt-rescue.pod:194
19250 msgid "B<-w>"
19251 msgstr "B<-w>"
19252
19253 #. type: =item
19254 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19255 #: ../rescue/virt-rescue.pod:196
19256 msgid "B<--rw>"
19257 msgstr "B<--rw>"
19258
19259 #. type: textblock
19260 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19261 msgid ""
19262 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19263 "mounts are done read-write."
19264 msgstr ""
19265
19266 #. type: textblock
19267 #: ../fish/guestfish.pod:410
19268 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19269 msgstr ""
19270
19271 #. type: textblock
19272 #: ../fish/guestfish.pod:414
19273 msgid "Echo each command before executing it."
19274 msgstr ""
19275
19276 #. type: =head1
19277 #: ../fish/guestfish.pod:418
19278 msgid "COMMANDS ON COMMAND LINE"
19279 msgstr ""
19280
19281 #. type: textblock
19282 #: ../fish/guestfish.pod:420
19283 msgid ""
19284 "Any additional (non-option) arguments are treated as commands to execute."
19285 msgstr ""
19286
19287 #. type: textblock
19288 #: ../fish/guestfish.pod:423
19289 msgid ""
19290 "Commands to execute should be separated by a colon (C<:>), where the colon "
19291 "is a separate parameter.  Thus:"
19292 msgstr ""
19293
19294 #. type: verbatim
19295 #: ../fish/guestfish.pod:426
19296 #, no-wrap
19297 msgid ""
19298 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19299 "\n"
19300 msgstr ""
19301
19302 #. type: textblock
19303 #: ../fish/guestfish.pod:428
19304 msgid ""
19305 "If there are no additional arguments, then we enter a shell, either an "
19306 "interactive shell with a prompt (if the input is a terminal) or a non-"
19307 "interactive shell."
19308 msgstr ""
19309
19310 #. type: textblock
19311 #: ../fish/guestfish.pod:432
19312 msgid ""
19313 "In either command line mode or non-interactive shell, the first command that "
19314 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19315 "prompt) if a command fails, you can continue to enter commands."
19316 msgstr ""
19317
19318 #. type: =head1
19319 #: ../fish/guestfish.pod:437
19320 msgid "USING launch (OR run)"
19321 msgstr ""
19322
19323 #. type: textblock
19324 #: ../fish/guestfish.pod:439
19325 msgid ""
19326 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19327 "then launch it, then mount any disks you need, and finally issue actions/"
19328 "commands.  So the general order of the day is:"
19329 msgstr ""
19330
19331 #. type: textblock
19332 #: ../fish/guestfish.pod:447
19333 msgid "add or -a/--add"
19334 msgstr ""
19335
19336 #. type: textblock
19337 #: ../fish/guestfish.pod:451
19338 msgid "launch (aka run)"
19339 msgstr ""
19340
19341 #. type: textblock
19342 #: ../fish/guestfish.pod:455
19343 msgid "mount or -m/--mount"
19344 msgstr ""
19345
19346 #. type: textblock
19347 #: ../fish/guestfish.pod:459
19348 msgid "any other commands"
19349 msgstr ""
19350
19351 #. type: textblock
19352 #: ../fish/guestfish.pod:463
19353 msgid ""
19354 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19355 "guest before mounting or performing any other commands."
19356 msgstr ""
19357
19358 #. type: textblock
19359 #: ../fish/guestfish.pod:466
19360 msgid ""
19361 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19362 "I<--new> options were given then C<run> is done automatically, simply "
19363 "because guestfish can't perform the action you asked for without doing this."
19364 msgstr ""
19365
19366 #. type: =head1
19367 #: ../fish/guestfish.pod:471
19368 msgid "OPENING DISKS FOR READ AND WRITE"
19369 msgstr ""
19370
19371 #. type: textblock
19372 #: ../fish/guestfish.pod:473
19373 msgid ""
19374 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19375 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19376 "I<-i> and I<-m> open disk images read-only or for writing."
19377 msgstr ""
19378
19379 #. type: textblock
19380 #: ../fish/guestfish.pod:478
19381 msgid ""
19382 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19383 "opening disk images supplied on the command line for write.  To open a disk "
19384 "image read-only you have to do I<-a image --ro>."
19385 msgstr ""
19386
19387 #. type: textblock
19388 #: ../fish/guestfish.pod:482
19389 msgid ""
19390 "This matters: If you accidentally open a live VM disk image writable then "
19391 "you will cause irreversible disk corruption."
19392 msgstr ""
19393
19394 #. type: textblock
19395 #: ../fish/guestfish.pod:485
19396 msgid ""
19397 "In a future libguestfs we intend to change the default the other way.  Disk "
19398 "images will be opened read-only.  You will have to either specify "
19399 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19400 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19401 "access for disk images specified by those other command line options."
19402 msgstr ""
19403
19404 #. type: textblock
19405 #: ../fish/guestfish.pod:492
19406 msgid ""
19407 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19408 "which does nothing (it is already the default).  However it is highly "
19409 "recommended that you use this option to indicate that you need write access, "
19410 "and prepare your scripts for the day when this option will be required for "
19411 "write access."
19412 msgstr ""
19413
19414 #. type: textblock
19415 #: ../fish/guestfish.pod:498
19416 msgid ""
19417 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19418 "other libguestfs program apart from guestfish and guestmount."
19419 msgstr ""
19420
19421 #. type: =head1
19422 #: ../fish/guestfish.pod:501
19423 msgid "QUOTING"
19424 msgstr ""
19425
19426 #. type: textblock
19427 #: ../fish/guestfish.pod:503
19428 msgid ""
19429 "You can quote ordinary parameters using either single or double quotes.  For "
19430 "example:"
19431 msgstr ""
19432
19433 #. type: verbatim
19434 #: ../fish/guestfish.pod:506
19435 #, no-wrap
19436 msgid ""
19437 " add \"file with a space.img\"\n"
19438 "\n"
19439 msgstr ""
19440
19441 #. type: verbatim
19442 #: ../fish/guestfish.pod:508
19443 #, no-wrap
19444 msgid ""
19445 " rm '/file name'\n"
19446 "\n"
19447 msgstr ""
19448
19449 #. type: verbatim
19450 #: ../fish/guestfish.pod:510
19451 #, no-wrap
19452 msgid ""
19453 " rm '/\"'\n"
19454 "\n"
19455 msgstr ""
19456
19457 #. type: textblock
19458 #: ../fish/guestfish.pod:512
19459 msgid ""
19460 "A few commands require a list of strings to be passed.  For these, use a "
19461 "whitespace-separated list, enclosed in quotes.  Strings containing "
19462 "whitespace to be passed through must be enclosed in single quotes.  A "
19463 "literal single quote must be escaped with a backslash."
19464 msgstr ""
19465
19466 #. type: verbatim
19467 #: ../fish/guestfish.pod:517
19468 #, no-wrap
19469 msgid ""
19470 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19471 " command \"/bin/echo 'foo      bar'\"\n"
19472 " command \"/bin/echo \\'foo\\'\"\n"
19473 "\n"
19474 msgstr ""
19475
19476 #. type: =head2
19477 #: ../fish/guestfish.pod:521
19478 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19479 msgstr ""
19480
19481 #. type: textblock
19482 #: ../fish/guestfish.pod:523
19483 msgid ""
19484 "In double-quoted arguments (only) use backslash to insert special characters:"
19485 msgstr ""
19486
19487 #. type: =item
19488 #: ../fish/guestfish.pod:528
19489 msgid "C<\\a>"
19490 msgstr "C<\\a>"
19491
19492 #. type: textblock
19493 #: ../fish/guestfish.pod:530
19494 msgid "Alert (bell) character."
19495 msgstr "Символ гудка (дзвінка)."
19496
19497 #. type: =item
19498 #: ../fish/guestfish.pod:532
19499 msgid "C<\\b>"
19500 msgstr "C<\\b>"
19501
19502 #. type: textblock
19503 #: ../fish/guestfish.pod:534
19504 msgid "Backspace character."
19505 msgstr ""
19506
19507 #. type: =item
19508 #: ../fish/guestfish.pod:536
19509 msgid "C<\\f>"
19510 msgstr "C<\\f>"
19511
19512 #. type: textblock
19513 #: ../fish/guestfish.pod:538
19514 msgid "Form feed character."
19515 msgstr ""
19516
19517 #. type: =item
19518 #: ../fish/guestfish.pod:540
19519 msgid "C<\\n>"
19520 msgstr "C<\\n>"
19521
19522 #. type: textblock
19523 #: ../fish/guestfish.pod:542
19524 msgid "Newline character."
19525 msgstr ""
19526
19527 #. type: =item
19528 #: ../fish/guestfish.pod:544
19529 msgid "C<\\r>"
19530 msgstr "C<\\r>"
19531
19532 #. type: textblock
19533 #: ../fish/guestfish.pod:546
19534 msgid "Carriage return character."
19535 msgstr "Символ повернення каретки."
19536
19537 #. type: =item
19538 #: ../fish/guestfish.pod:548
19539 msgid "C<\\t>"
19540 msgstr "C<\\t>"
19541
19542 #. type: textblock
19543 #: ../fish/guestfish.pod:550
19544 msgid "Horizontal tab character."
19545 msgstr "Символ горизонтальної табуляції"
19546
19547 #. type: =item
19548 #: ../fish/guestfish.pod:552
19549 msgid "C<\\v>"
19550 msgstr "C<\\v>"
19551
19552 #. type: textblock
19553 #: ../fish/guestfish.pod:554
19554 msgid "Vertical tab character."
19555 msgstr "Символ вертикальної табуляції."
19556
19557 #. type: =item
19558 #: ../fish/guestfish.pod:556
19559 msgid "C<\\\">"
19560 msgstr "C<\\\">"
19561
19562 #. type: textblock
19563 #: ../fish/guestfish.pod:558
19564 msgid "A literal double quote character."
19565 msgstr ""
19566
19567 #. type: =item
19568 #: ../fish/guestfish.pod:560
19569 msgid "C<\\ooo>"
19570 msgstr "C<\\ooo>"
19571
19572 #. type: textblock
19573 #: ../fish/guestfish.pod:562
19574 msgid ""
19575 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19576 "(unlike C)."
19577 msgstr ""
19578
19579 #. type: =item
19580 #: ../fish/guestfish.pod:565
19581 msgid "C<\\xhh>"
19582 msgstr "C<\\xhh>"
19583
19584 #. type: textblock
19585 #: ../fish/guestfish.pod:567
19586 msgid ""
19587 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19588 msgstr ""
19589
19590 #. type: textblock
19591 #: ../fish/guestfish.pod:570
19592 msgid ""
19593 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19594 "strings."
19595 msgstr ""
19596
19597 #. type: =item
19598 #: ../fish/guestfish.pod:573
19599 msgid "C<\\\\>"
19600 msgstr "C<\\\\>"
19601
19602 #. type: textblock
19603 #: ../fish/guestfish.pod:575
19604 msgid "A literal backslash character."
19605 msgstr ""
19606
19607 #. type: =head1
19608 #: ../fish/guestfish.pod:579
19609 msgid "OPTIONAL ARGUMENTS"
19610 msgstr ""
19611
19612 #. type: textblock
19613 #: ../fish/guestfish.pod:581
19614 msgid ""
19615 "Some commands take optional arguments.  These arguments appear in this "
19616 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19617 msgstr ""
19618
19619 #. type: verbatim
19620 #: ../fish/guestfish.pod:585
19621 #, no-wrap
19622 msgid ""
19623 " add-drive-opts filename\n"
19624 "\n"
19625 msgstr ""
19626
19627 #. type: verbatim
19628 #: ../fish/guestfish.pod:587
19629 #, no-wrap
19630 msgid ""
19631 " add-drive-opts filename readonly:true\n"
19632 "\n"
19633 msgstr ""
19634
19635 #. type: verbatim
19636 #: ../fish/guestfish.pod:589
19637 #, no-wrap
19638 msgid ""
19639 " add-drive-opts filename format:qcow2 readonly:false\n"
19640 "\n"
19641 msgstr ""
19642
19643 #. type: textblock
19644 #: ../fish/guestfish.pod:591
19645 msgid ""
19646 "Each optional argument can appear at most once.  All optional arguments must "
19647 "appear after the required ones."
19648 msgstr ""
19649
19650 #. type: =head1
19651 #: ../fish/guestfish.pod:594
19652 msgid "NUMBERS"
19653 msgstr "ЧИСЛА"
19654
19655 #. type: textblock
19656 #: ../fish/guestfish.pod:596
19657 msgid ""
19658 "This section applies to all commands which can take integers as parameters."
19659 msgstr ""
19660
19661 #. type: =head2
19662 #: ../fish/guestfish.pod:599
19663 msgid "SIZE SUFFIX"
19664 msgstr ""
19665
19666 #. type: textblock
19667 #: ../fish/guestfish.pod:601
19668 msgid ""
19669 "When the command takes a parameter measured in bytes, you can use one of the "
19670 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19671 msgstr ""
19672
19673 #. type: =item
19674 #: ../fish/guestfish.pod:607
19675 msgid "B<k> or B<K> or B<KiB>"
19676 msgstr "B<k>, B<K> або B<KiB>"
19677
19678 #. type: textblock
19679 #: ../fish/guestfish.pod:609
19680 msgid "The size in kilobytes (multiplied by 1024)."
19681 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
19682
19683 #. type: =item
19684 #: ../fish/guestfish.pod:611
19685 msgid "B<KB>"
19686 msgstr "B<KB>"
19687
19688 #. type: textblock
19689 #: ../fish/guestfish.pod:613
19690 msgid "The size in SI 1000 byte units."
19691 msgstr "Розмір у одиницях СІ: 1000 байтів."
19692
19693 #. type: =item
19694 #: ../fish/guestfish.pod:615
19695 msgid "B<M> or B<MiB>"
19696 msgstr "B<M> або B<MiB>"
19697
19698 #. type: textblock
19699 #: ../fish/guestfish.pod:617
19700 msgid "The size in megabytes (multiplied by 1048576)."
19701 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
19702
19703 #. type: =item
19704 #: ../fish/guestfish.pod:619
19705 msgid "B<MB>"
19706 msgstr "B<MB>"
19707
19708 #. type: textblock
19709 #: ../fish/guestfish.pod:621
19710 msgid "The size in SI 1000000 byte units."
19711 msgstr "Розмір у одиницях СІ: 1000000 байтів."
19712
19713 #. type: =item
19714 #: ../fish/guestfish.pod:623
19715 msgid "B<G> or B<GiB>"
19716 msgstr "B<G> або B<GiB>"
19717
19718 #. type: textblock
19719 #: ../fish/guestfish.pod:625
19720 msgid "The size in gigabytes (multiplied by 2**30)."
19721 msgstr "Розмір у гігабайтах (з множником 2**30)."
19722
19723 #. type: =item
19724 #: ../fish/guestfish.pod:627
19725 msgid "B<GB>"
19726 msgstr "B<GB>"
19727
19728 #. type: textblock
19729 #: ../fish/guestfish.pod:629
19730 msgid "The size in SI 10**9 byte units."
19731 msgstr "Розмір у одиницях СІ: 10**9 байтів."
19732
19733 #. type: =item
19734 #: ../fish/guestfish.pod:631
19735 msgid "B<T> or B<TiB>"
19736 msgstr "B<T> або B<TiB>"
19737
19738 #. type: textblock
19739 #: ../fish/guestfish.pod:633
19740 msgid "The size in terabytes (multiplied by 2**40)."
19741 msgstr "Розмір у терабайтах (з множником 2**40)."
19742
19743 #. type: =item
19744 #: ../fish/guestfish.pod:635
19745 msgid "B<TB>"
19746 msgstr "B<TB>"
19747
19748 #. type: textblock
19749 #: ../fish/guestfish.pod:637
19750 msgid "The size in SI 10**12 byte units."
19751 msgstr "Розмір у одиницях СІ: 10**12 байтів."
19752
19753 #. type: =item
19754 #: ../fish/guestfish.pod:639
19755 msgid "B<P> or B<PiB>"
19756 msgstr "B<P> або B<PiB>"
19757
19758 #. type: textblock
19759 #: ../fish/guestfish.pod:641
19760 msgid "The size in petabytes (multiplied by 2**50)."
19761 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
19762
19763 #. type: =item
19764 #: ../fish/guestfish.pod:643
19765 msgid "B<PB>"
19766 msgstr "B<PB>"
19767
19768 #. type: textblock
19769 #: ../fish/guestfish.pod:645
19770 msgid "The size in SI 10**15 byte units."
19771 msgstr "Розмір у одиницях СІ: 10**15 байтів."
19772
19773 #. type: =item
19774 #: ../fish/guestfish.pod:647
19775 msgid "B<E> or B<EiB>"
19776 msgstr "B<E> або B<EiB>"
19777
19778 #. type: textblock
19779 #: ../fish/guestfish.pod:649
19780 msgid "The size in exabytes (multiplied by 2**60)."
19781 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
19782
19783 #. type: =item
19784 #: ../fish/guestfish.pod:651
19785 msgid "B<EB>"
19786 msgstr "B<EB>"
19787
19788 #. type: textblock
19789 #: ../fish/guestfish.pod:653
19790 msgid "The size in SI 10**18 byte units."
19791 msgstr "Розмір у одиницях СІ: 10**18 байтів."
19792
19793 #. type: =item
19794 #: ../fish/guestfish.pod:655
19795 msgid "B<Z> or B<ZiB>"
19796 msgstr "B<Z> або B<ZiB>"
19797
19798 #. type: textblock
19799 #: ../fish/guestfish.pod:657
19800 msgid "The size in zettabytes (multiplied by 2**70)."
19801 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
19802
19803 #. type: =item
19804 #: ../fish/guestfish.pod:659
19805 msgid "B<ZB>"
19806 msgstr "B<ZB>"
19807
19808 #. type: textblock
19809 #: ../fish/guestfish.pod:661
19810 msgid "The size in SI 10**21 byte units."
19811 msgstr "Розмір у одиницях СІ: 10**21 байтів."
19812
19813 #. type: =item
19814 #: ../fish/guestfish.pod:663
19815 msgid "B<Y> or B<YiB>"
19816 msgstr "B<Y> або B<YiB>"
19817
19818 #. type: textblock
19819 #: ../fish/guestfish.pod:665
19820 msgid "The size in yottabytes (multiplied by 2**80)."
19821 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
19822
19823 #. type: =item
19824 #: ../fish/guestfish.pod:667
19825 msgid "B<YB>"
19826 msgstr "B<YB>"
19827
19828 #. type: textblock
19829 #: ../fish/guestfish.pod:669
19830 msgid "The size in SI 10**24 byte units."
19831 msgstr "Розмір у одиницях СІ: 10**24 байтів."
19832
19833 #. type: verbatim
19834 #: ../fish/guestfish.pod:675
19835 #, no-wrap
19836 msgid ""
19837 " truncate-size /file 1G\n"
19838 "\n"
19839 msgstr ""
19840
19841 #. type: textblock
19842 #: ../fish/guestfish.pod:677
19843 msgid "would truncate the file to 1 gigabyte."
19844 msgstr ""
19845
19846 #. type: textblock
19847 #: ../fish/guestfish.pod:679
19848 msgid ""
19849 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19850 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
19851 "suffix will probably not do what you expect."
19852 msgstr ""
19853
19854 #. type: =head2
19855 #: ../fish/guestfish.pod:683
19856 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19857 msgstr ""
19858
19859 #. type: textblock
19860 #: ../fish/guestfish.pod:685
19861 msgid ""
19862 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19863 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19864 msgstr ""
19865
19866 #. type: verbatim
19867 #: ../fish/guestfish.pod:688
19868 #, no-wrap
19869 msgid ""
19870 " 1234      decimal number 1234\n"
19871 " 02322     octal number, equivalent to decimal 1234\n"
19872 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19873 "\n"
19874 msgstr ""
19875
19876 #. type: textblock
19877 #: ../fish/guestfish.pod:692
19878 msgid ""
19879 "When using the C<chmod> command, you almost always want to specify an octal "
19880 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19881 "L<chmod(1)> program):"
19882 msgstr ""
19883
19884 #. type: verbatim
19885 #: ../fish/guestfish.pod:696
19886 #, no-wrap
19887 msgid ""
19888 " chmod 0777 /public  # OK\n"
19889 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19890 "\n"
19891 msgstr ""
19892
19893 #. type: textblock
19894 #: ../fish/guestfish.pod:699
19895 msgid ""
19896 "Commands that return numbers usually print them in decimal, but some "
19897 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19898 "octal, preceeded by C<0>)."
19899 msgstr ""
19900
19901 #. type: =head1
19902 #: ../fish/guestfish.pod:703
19903 msgid "WILDCARDS AND GLOBBING"
19904 msgstr ""
19905
19906 #. type: textblock
19907 #: ../fish/guestfish.pod:705
19908 msgid ""
19909 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19910 "(globbing) by default.  So for example the following will not do what you "
19911 "expect:"
19912 msgstr ""
19913
19914 #. type: verbatim
19915 #: ../fish/guestfish.pod:709
19916 #, no-wrap
19917 msgid ""
19918 " rm-rf /home/*\n"
19919 "\n"
19920 msgstr ""
19921
19922 #. type: textblock
19923 #: ../fish/guestfish.pod:711
19924 msgid ""
19925 "Assuming you don't have a directory called literally C</home/*> then the "
19926 "above command will return an error."
19927 msgstr ""
19928
19929 #. type: textblock
19930 #: ../fish/guestfish.pod:714
19931 msgid "To perform wildcard expansion, use the C<glob> command."
19932 msgstr ""
19933
19934 #. type: verbatim
19935 #: ../fish/guestfish.pod:716
19936 #, no-wrap
19937 msgid ""
19938 " glob rm-rf /home/*\n"
19939 "\n"
19940 msgstr ""
19941
19942 #. type: textblock
19943 #: ../fish/guestfish.pod:718
19944 msgid ""
19945 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19946 "many times), equivalent to:"
19947 msgstr ""
19948
19949 #. type: verbatim
19950 #: ../fish/guestfish.pod:721
19951 #, no-wrap
19952 msgid ""
19953 " rm-rf /home/jim\n"
19954 " rm-rf /home/joe\n"
19955 " rm-rf /home/mary\n"
19956 "\n"
19957 msgstr ""
19958
19959 #. type: textblock
19960 #: ../fish/guestfish.pod:725
19961 msgid "C<glob> only works on simple guest paths and not on device names."
19962 msgstr ""
19963
19964 #. type: textblock
19965 #: ../fish/guestfish.pod:727
19966 msgid ""
19967 "If you have several parameters, each containing a wildcard, then glob will "
19968 "perform a Cartesian product."
19969 msgstr ""
19970
19971 #. type: =head1
19972 #: ../fish/guestfish.pod:730
19973 msgid "COMMENTS"
19974 msgstr "КОМЕНТАРІ"
19975
19976 #. type: textblock
19977 #: ../fish/guestfish.pod:732
19978 msgid ""
19979 "Any line which starts with a I<#> character is treated as a comment and "
19980 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19981 "a command.  For example:"
19982 msgstr ""
19983
19984 #. type: verbatim
19985 #: ../fish/guestfish.pod:736
19986 #, no-wrap
19987 msgid ""
19988 " # this is a comment\n"
19989 "         # this is a comment\n"
19990 " foo # NOT a comment\n"
19991 "\n"
19992 msgstr ""
19993
19994 #. type: textblock
19995 #: ../fish/guestfish.pod:740
19996 msgid "Blank lines are also ignored."
19997 msgstr ""
19998
19999 #. type: =head1
20000 #: ../fish/guestfish.pod:742
20001 msgid "RUNNING COMMANDS LOCALLY"
20002 msgstr ""
20003
20004 #. type: textblock
20005 #: ../fish/guestfish.pod:744
20006 msgid ""
20007 "Any line which starts with a I<!> character is treated as a command sent to "
20008 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20009 msgstr ""
20010
20011 #. type: verbatim
20012 #: ../fish/guestfish.pod:748
20013 #, no-wrap
20014 msgid ""
20015 " !mkdir local\n"
20016 " tgz-out /remote local/remote-data.tar.gz\n"
20017 "\n"
20018 msgstr ""
20019
20020 #. type: textblock
20021 #: ../fish/guestfish.pod:751
20022 msgid ""
20023 "will create a directory C<local> on the host, and then export the contents "
20024 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20025 "(See C<tgz-out>)."
20026 msgstr ""
20027
20028 #. type: textblock
20029 #: ../fish/guestfish.pod:755
20030 msgid ""
20031 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20032 "effect, due to the way that subprocesses work in Unix."
20033 msgstr ""
20034
20035 #. type: =head2
20036 #: ../fish/guestfish.pod:758
20037 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20038 msgstr ""
20039
20040 #. type: textblock
20041 #: ../fish/guestfish.pod:760
20042 msgid ""
20043 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20044 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20045 "and executed as guestfish commands."
20046 msgstr ""
20047
20048 #. type: textblock
20049 #: ../fish/guestfish.pod:764
20050 msgid ""
20051 "Thus you can use shell script to construct arbitrary guestfish commands "
20052 "which are then parsed by guestfish."
20053 msgstr ""
20054
20055 #. type: textblock
20056 #: ../fish/guestfish.pod:767
20057 msgid ""
20058 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20059 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20060 "if we use a shell script to create the guestfish commands for us:"
20061 msgstr ""
20062
20063 #. type: verbatim
20064 #: ../fish/guestfish.pod:772
20065 #, no-wrap
20066 msgid ""
20067 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20068 "\n"
20069 msgstr ""
20070
20071 #. type: textblock
20072 #: ../fish/guestfish.pod:774
20073 msgid "or with names like C</foo.001>:"
20074 msgstr ""
20075
20076 #. type: verbatim
20077 #: ../fish/guestfish.pod:776
20078 #, no-wrap
20079 msgid ""
20080 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20081 "\n"
20082 msgstr ""
20083
20084 #. type: textblock
20085 #: ../fish/guestfish.pod:778
20086 msgid ""
20087 "When using guestfish interactively it can be helpful to just run the shell "
20088 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20089 "ordinary I<!> local command), see what guestfish commands it would run, and "
20090 "when you are happy with those prepend the C<E<lt>> character to run the "
20091 "guestfish commands for real."
20092 msgstr ""
20093
20094 #. type: =head1
20095 #: ../fish/guestfish.pod:784
20096 msgid "PIPES"
20097 msgstr "КАНАЛИ"
20098
20099 #. type: textblock
20100 #: ../fish/guestfish.pod:786
20101 msgid ""
20102 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20103 "command (a guestfish command) to the second command (any host command).  For "
20104 "example:"
20105 msgstr ""
20106
20107 #. type: verbatim
20108 #: ../fish/guestfish.pod:790
20109 #, no-wrap
20110 msgid ""
20111 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20112 "\n"
20113 msgstr ""
20114
20115 #. type: textblock
20116 #: ../fish/guestfish.pod:792
20117 msgid ""
20118 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20119 "program).  The above command would list all accounts in the guest filesystem "
20120 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20121 msgstr ""
20122
20123 #. type: verbatim
20124 #: ../fish/guestfish.pod:797
20125 #, no-wrap
20126 msgid ""
20127 " hexdump /bin/ls | head\n"
20128 " list-devices | tail -1\n"
20129 " tgz-out / - | tar ztf -\n"
20130 "\n"
20131 msgstr ""
20132
20133 #. type: textblock
20134 #: ../fish/guestfish.pod:801
20135 msgid ""
20136 "The space before the pipe symbol is required, any space after the pipe "
20137 "symbol is optional.  Everything after the pipe symbol is just passed "
20138 "straight to the host shell, so it can contain redirections, globs and "
20139 "anything else that makes sense on the host side."
20140 msgstr ""
20141
20142 #. type: textblock
20143 #: ../fish/guestfish.pod:806
20144 msgid ""
20145 "To use a literal argument which begins with a pipe symbol, you have to quote "
20146 "it, eg:"
20147 msgstr ""
20148
20149 #. type: verbatim
20150 #: ../fish/guestfish.pod:809
20151 #, no-wrap
20152 msgid ""
20153 " echo \"|\"\n"
20154 "\n"
20155 msgstr ""
20156
20157 #. type: =head1
20158 #: ../fish/guestfish.pod:811
20159 msgid "HOME DIRECTORIES"
20160 msgstr ""
20161
20162 #. type: textblock
20163 #: ../fish/guestfish.pod:813
20164 msgid ""
20165 "If a parameter starts with the character C<~> then the tilde may be expanded "
20166 "as a home directory path (either C<~> for the current user's home directory, "
20167 "or C<~user> for another user)."
20168 msgstr ""
20169
20170 #. type: textblock
20171 #: ../fish/guestfish.pod:817
20172 msgid ""
20173 "Note that home directory expansion happens for users known I<on the host>, "
20174 "not in the guest filesystem."
20175 msgstr ""
20176
20177 #. type: textblock
20178 #: ../fish/guestfish.pod:820
20179 msgid ""
20180 "To use a literal argument which begins with a tilde, you have to quote it, "
20181 "eg:"
20182 msgstr ""
20183
20184 #. type: verbatim
20185 #: ../fish/guestfish.pod:823
20186 #, no-wrap
20187 msgid ""
20188 " echo \"~\"\n"
20189 "\n"
20190 msgstr ""
20191
20192 #. type: =head2
20193 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
20194 msgid "ENCRYPTED DISKS"
20195 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20196
20197 #. type: textblock
20198 #: ../fish/guestfish.pod:827
20199 msgid ""
20200 "Libguestfs has some support for Linux guests encrypted according to the "
20201 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20202 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
20203 "LUKS is supported."
20204 msgstr ""
20205
20206 #. type: textblock
20207 #: ../fish/guestfish.pod:832
20208 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20209 msgstr ""
20210
20211 #. type: verbatim
20212 #: ../fish/guestfish.pod:834
20213 #, no-wrap
20214 msgid ""
20215 " ><fs> vfs-type /dev/sda2\n"
20216 " crypto_LUKS\n"
20217 "\n"
20218 msgstr ""
20219
20220 #. type: textblock
20221 #: ../fish/guestfish.pod:837
20222 msgid ""
20223 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20224 "device called C</dev/mapper/luksdev>."
20225 msgstr ""
20226
20227 #. type: verbatim
20228 #: ../fish/guestfish.pod:840
20229 #, no-wrap
20230 msgid ""
20231 " ><fs> luks-open /dev/sda2 luksdev\n"
20232 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20233 "\n"
20234 msgstr ""
20235
20236 #. type: textblock
20237 #: ../fish/guestfish.pod:843
20238 msgid ""
20239 "Finally you have to tell LVM to scan for volume groups on the newly created "
20240 "mapper device:"
20241 msgstr ""
20242
20243 #. type: verbatim
20244 #: ../fish/guestfish.pod:846
20245 #, no-wrap
20246 msgid ""
20247 " vgscan\n"
20248 " vg-activate-all true\n"
20249 "\n"
20250 msgstr ""
20251
20252 #. type: textblock
20253 #: ../fish/guestfish.pod:849
20254 msgid "The logical volume(s) can now be mounted in the usual way."
20255 msgstr ""
20256
20257 #. type: textblock
20258 #: ../fish/guestfish.pod:851
20259 msgid ""
20260 "Before closing a LUKS device you must unmount any logical volumes on it and "
20261 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20262 "one.  Then you can close the mapper device:"
20263 msgstr ""
20264
20265 #. type: verbatim
20266 #: ../fish/guestfish.pod:855
20267 #, no-wrap
20268 msgid ""
20269 " vg-activate false /dev/VG\n"
20270 " luks-close /dev/mapper/luksdev\n"
20271 "\n"
20272 msgstr ""
20273
20274 #. type: textblock
20275 #: ../fish/guestfish.pod:860
20276 msgid ""
20277 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20278 "letters and paths (with some limitations).  The following commands are "
20279 "equivalent:"
20280 msgstr ""
20281
20282 #. type: verbatim
20283 #: ../fish/guestfish.pod:864
20284 #, no-wrap
20285 msgid ""
20286 " file /WINDOWS/system32/config/system.LOG\n"
20287 "\n"
20288 msgstr ""
20289
20290 #. type: verbatim
20291 #: ../fish/guestfish.pod:866
20292 #, no-wrap
20293 msgid ""
20294 " file win:\\windows\\system32\\config\\system.log\n"
20295 "\n"
20296 msgstr ""
20297
20298 #. type: verbatim
20299 #: ../fish/guestfish.pod:868
20300 #, no-wrap
20301 msgid ""
20302 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20303 "\n"
20304 msgstr ""
20305
20306 #. type: textblock
20307 #: ../fish/guestfish.pod:870
20308 msgid ""
20309 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20310 "where the drive is mounted, prepending that to the path, changing all "
20311 "backslash characters to forward slash, then resolving the result using L</"
20312 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
20313 "the parameter might be rewritten like this:"
20314 msgstr ""
20315
20316 #. type: verbatim
20317 #: ../fish/guestfish.pod:876
20318 #, no-wrap
20319 msgid ""
20320 " win:e:\\foo\\bar => /e/FOO/bar\n"
20321 "\n"
20322 msgstr ""
20323
20324 #. type: textblock
20325 #: ../fish/guestfish.pod:878
20326 msgid "This only works in argument positions that expect a path."
20327 msgstr ""
20328
20329 #. type: =head1
20330 #: ../fish/guestfish.pod:880
20331 msgid "UPLOADING AND DOWNLOADING FILES"
20332 msgstr ""
20333
20334 #. type: textblock
20335 #: ../fish/guestfish.pod:882
20336 msgid ""
20337 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20338 "others which upload from or download to a local file, you can use the "
20339 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20340 msgstr ""
20341
20342 #. type: verbatim
20343 #: ../fish/guestfish.pod:886
20344 #, no-wrap
20345 msgid ""
20346 " upload - /foo\n"
20347 "\n"
20348 msgstr ""
20349
20350 #. type: textblock
20351 #: ../fish/guestfish.pod:888
20352 msgid ""
20353 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20354 msgstr ""
20355
20356 #. type: verbatim
20357 #: ../fish/guestfish.pod:891
20358 #, no-wrap
20359 msgid ""
20360 " tar-out /etc - | tar tf -\n"
20361 "\n"
20362 msgstr ""
20363
20364 #. type: textblock
20365 #: ../fish/guestfish.pod:893
20366 msgid ""
20367 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20368 "command (see L</PIPES>)."
20369 msgstr ""
20370
20371 #. type: textblock
20372 #: ../fish/guestfish.pod:896
20373 msgid ""
20374 "When using C<-> to read from stdin, the input is read up to the end of "
20375 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20376 "some arbitrary end marker:"
20377 msgstr ""
20378
20379 #. type: verbatim
20380 #: ../fish/guestfish.pod:900
20381 #, no-wrap
20382 msgid ""
20383 " upload -<<END /foo\n"
20384 " input line 1\n"
20385 " input line 2\n"
20386 " input line 3\n"
20387 " END\n"
20388 "\n"
20389 msgstr ""
20390
20391 #. type: textblock
20392 #: ../fish/guestfish.pod:906
20393 msgid ""
20394 "Any string of characters can be used instead of C<END>.  The end marker must "
20395 "appear on a line of its own, without any preceeding or following characters "
20396 "(not even spaces)."
20397 msgstr ""
20398
20399 #. type: textblock
20400 #: ../fish/guestfish.pod:910
20401 msgid ""
20402 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20403 "upload local files (so-called \"FileIn\" parameters in the generator)."
20404 msgstr ""
20405
20406 #. type: =head1
20407 #: ../fish/guestfish.pod:913
20408 msgid "EXIT ON ERROR BEHAVIOUR"
20409 msgstr ""
20410
20411 #. type: textblock
20412 #: ../fish/guestfish.pod:915
20413 msgid ""
20414 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20415 "taking commands from a human over a tty), and will exit on the first error "
20416 "in non-interactive mode (scripts, commands given on the command line)."
20417 msgstr ""
20418
20419 #. type: textblock
20420 #: ../fish/guestfish.pod:920
20421 msgid ""
20422 "If you prefix a command with a I<-> character, then that command will not "
20423 "cause guestfish to exit, even if that (one) command returns an error."
20424 msgstr ""
20425
20426 #. type: =head1
20427 #: ../fish/guestfish.pod:924
20428 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20429 msgstr ""
20430
20431 #. type: textblock
20432 #: ../fish/guestfish.pod:926
20433 msgid ""
20434 "Guestfish can be remote-controlled over a socket.  This is useful "
20435 "particularly in shell scripts where you want to make several different "
20436 "changes to a filesystem, but you don't want the overhead of starting up a "
20437 "guestfish process each time."
20438 msgstr ""
20439
20440 #. type: textblock
20441 #: ../fish/guestfish.pod:931
20442 msgid "Start a guestfish server process using:"
20443 msgstr ""
20444
20445 #. type: verbatim
20446 #: ../fish/guestfish.pod:933
20447 #, no-wrap
20448 msgid ""
20449 " eval \"`guestfish --listen`\"\n"
20450 "\n"
20451 msgstr ""
20452
20453 #. type: textblock
20454 #: ../fish/guestfish.pod:935
20455 msgid "and then send it commands by doing:"
20456 msgstr ""
20457
20458 #. type: verbatim
20459 #: ../fish/guestfish.pod:937
20460 #, no-wrap
20461 msgid ""
20462 " guestfish --remote cmd [...]\n"
20463 "\n"
20464 msgstr ""
20465
20466 #. type: textblock
20467 #: ../fish/guestfish.pod:939
20468 msgid "To cause the server to exit, send it the exit command:"
20469 msgstr ""
20470
20471 #. type: textblock
20472 #: ../fish/guestfish.pod:943
20473 msgid ""
20474 "Note that the server will normally exit if there is an error in a command.  "
20475 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20476 "BEHAVIOUR>."
20477 msgstr ""
20478
20479 #. type: =head2
20480 #: ../fish/guestfish.pod:947
20481 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20482 msgstr ""
20483
20484 #. type: textblock
20485 #: ../fish/guestfish.pod:949
20486 msgid ""
20487 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20488 "is how the I<--remote> option knows where to send the commands.  You can "
20489 "have several guestfish listener processes running using:"
20490 msgstr ""
20491
20492 #. type: verbatim
20493 #: ../fish/guestfish.pod:953
20494 #, no-wrap
20495 msgid ""
20496 " eval \"`guestfish --listen`\"\n"
20497 " pid1=$GUESTFISH_PID\n"
20498 " eval \"`guestfish --listen`\"\n"
20499 " pid2=$GUESTFISH_PID\n"
20500 " ...\n"
20501 " guestfish --remote=$pid1 cmd\n"
20502 " guestfish --remote=$pid2 cmd\n"
20503 "\n"
20504 msgstr ""
20505
20506 #. type: =head2
20507 #: ../fish/guestfish.pod:961
20508 msgid "REMOTE CONTROL AND CSH"
20509 msgstr ""
20510
20511 #. type: textblock
20512 #: ../fish/guestfish.pod:963
20513 msgid ""
20514 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20515 "option:"
20516 msgstr ""
20517
20518 #. type: verbatim
20519 #: ../fish/guestfish.pod:966
20520 #, no-wrap
20521 msgid ""
20522 " eval \"`guestfish --listen --csh`\"\n"
20523 "\n"
20524 msgstr ""
20525
20526 #. type: =head2
20527 #: ../fish/guestfish.pod:968
20528 msgid "REMOTE CONTROL DETAILS"
20529 msgstr ""
20530
20531 #. type: textblock
20532 #: ../fish/guestfish.pod:970
20533 msgid ""
20534 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20535 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20536 "and C<$PID> is the process ID of the server."
20537 msgstr ""
20538
20539 #. type: textblock
20540 #: ../fish/guestfish.pod:974
20541 msgid "Guestfish client and server versions must match exactly."
20542 msgstr ""
20543
20544 #. type: =head2
20545 #: ../fish/guestfish.pod:976
20546 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20547 msgstr ""
20548
20549 #. type: textblock
20550 #: ../fish/guestfish.pod:978
20551 msgid ""
20552 "From Bash, you can use the following code which creates a guestfish "
20553 "instance, correctly quotes the command line, handles failure to start, and "
20554 "cleans up guestfish when the script exits:"
20555 msgstr ""
20556
20557 #. type: verbatim
20558 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
20559 #, no-wrap
20560 msgid ""
20561 " #!/bin/bash -\n"
20562 " \n"
20563 msgstr ""
20564
20565 #. type: verbatim
20566 #: ../fish/guestfish.pod:986
20567 #, no-wrap
20568 msgid ""
20569 " guestfish[0]=\"guestfish\"\n"
20570 " guestfish[1]=\"--listen\"\n"
20571 " guestfish[2]=\"--ro\"\n"
20572 " guestfish[3]=\"-a\"\n"
20573 " guestfish[4]=\"disk.img\"\n"
20574 " \n"
20575 msgstr ""
20576
20577 #. type: verbatim
20578 #: ../fish/guestfish.pod:992
20579 #, no-wrap
20580 msgid ""
20581 " GUESTFISH_PID=\n"
20582 " eval $(\"${guestfish[@]}\")\n"
20583 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20584 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20585 "     exit 1\n"
20586 " fi\n"
20587 " \n"
20588 msgstr ""
20589
20590 #. type: verbatim
20591 #: ../fish/guestfish.pod:999
20592 #, no-wrap
20593 msgid ""
20594 " cleanup_guestfish ()\n"
20595 " {\n"
20596 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20597 " }\n"
20598 " trap cleanup_guestfish EXIT ERR\n"
20599 " \n"
20600 msgstr ""
20601
20602 #. type: verbatim
20603 #: ../fish/guestfish.pod:1005
20604 #, no-wrap
20605 msgid ""
20606 " guestfish --remote -- run\n"
20607 " \n"
20608 msgstr ""
20609
20610 #. type: verbatim
20611 #: ../fish/guestfish.pod:1007
20612 #, no-wrap
20613 msgid ""
20614 " # ...\n"
20615 "\n"
20616 msgstr ""
20617
20618 #. type: =head2
20619 #: ../fish/guestfish.pod:1009
20620 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20621 msgstr ""
20622
20623 #. type: textblock
20624 #: ../fish/guestfish.pod:1011
20625 msgid ""
20626 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20627 "context hangs, ie. don't do (note the backquotes):"
20628 msgstr ""
20629
20630 #. type: verbatim
20631 #: ../fish/guestfish.pod:1014
20632 #, no-wrap
20633 msgid ""
20634 " a=`guestfish --remote run`\n"
20635 "\n"
20636 msgstr ""
20637
20638 #. type: textblock
20639 #: ../fish/guestfish.pod:1016
20640 msgid ""
20641 "Since the C<run> command produces no output on stdout, this is not useful "
20642 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
20643 "cgi?id=592910>."
20644 msgstr ""
20645
20646 #. type: =head1
20647 #: ../fish/guestfish.pod:1020
20648 msgid "PREPARED DISK IMAGES"
20649 msgstr ""
20650
20651 #. type: textblock
20652 #: ../fish/guestfish.pod:1022
20653 msgid ""
20654 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20655 "preformatted disk images that guestfish can make for you to save typing.  "
20656 "This is particularly useful for testing purposes.  This option is used "
20657 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20658 "can be mixed with I<-a>)."
20659 msgstr ""
20660
20661 #. type: textblock
20662 #: ../fish/guestfish.pod:1028
20663 msgid ""
20664 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20665 "the second and so on.  Existing files in the current directory are "
20666 "I<overwritten>."
20667 msgstr ""
20668
20669 #. type: textblock
20670 #: ../fish/guestfish.pod:1032
20671 msgid ""
20672 "The type briefly describes how the disk should be sized, partitioned, how "
20673 "filesystem(s) should be created, and how content should be added.  "
20674 "Optionally the type can be followed by extra parameters, separated by C<:> "
20675 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
20676 "allocated disk, containing a single partition, with the partition formatted "
20677 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20678 "disk instead."
20679 msgstr ""
20680
20681 #. type: textblock
20682 #: ../fish/guestfish.pod:1040
20683 msgid "To list the available types and any extra parameters they take, run:"
20684 msgstr ""
20685
20686 #. type: textblock
20687 #: ../fish/guestfish.pod:1044
20688 msgid ""
20689 "Note that the prepared filesystem is not mounted.  You would usually have to "
20690 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20691 msgstr ""
20692
20693 #. type: textblock
20694 #: ../fish/guestfish.pod:1048
20695 msgid ""
20696 "If any I<-N> or I<--new> options are given, the guest is automatically "
20697 "launched."
20698 msgstr ""
20699
20700 #. type: textblock
20701 #: ../fish/guestfish.pod:1053
20702 msgid "Create a 100MB disk with an ext4-formatted partition:"
20703 msgstr ""
20704
20705 #. type: verbatim
20706 #: ../fish/guestfish.pod:1055
20707 #, no-wrap
20708 msgid ""
20709 " guestfish -N fs:ext4\n"
20710 "\n"
20711 msgstr ""
20712
20713 #. type: textblock
20714 #: ../fish/guestfish.pod:1057
20715 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20716 msgstr ""
20717
20718 #. type: verbatim
20719 #: ../fish/guestfish.pod:1059
20720 #, no-wrap
20721 msgid ""
20722 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20723 "\n"
20724 msgstr ""
20725
20726 #. type: textblock
20727 #: ../fish/guestfish.pod:1061
20728 msgid "Create a blank 200MB disk:"
20729 msgstr ""
20730
20731 #. type: verbatim
20732 #: ../fish/guestfish.pod:1063
20733 #, no-wrap
20734 msgid ""
20735 " guestfish -N disk:200M\n"
20736 "\n"
20737 msgstr ""
20738
20739 #. type: =head1
20740 #: ../fish/guestfish.pod:1065
20741 msgid "PROGRESS BARS"
20742 msgstr ""
20743
20744 #. type: textblock
20745 #: ../fish/guestfish.pod:1067
20746 msgid ""
20747 "Some (not all) long-running commands send progress notification messages as "
20748 "they are running.  Guestfish turns these messages into progress bars."
20749 msgstr ""
20750
20751 #. type: textblock
20752 #: ../fish/guestfish.pod:1071
20753 msgid ""
20754 "When a command that supports progress bars takes longer than two seconds to "
20755 "run, and if progress bars are enabled, then you will see one appearing below "
20756 "the command:"
20757 msgstr ""
20758
20759 #. type: verbatim
20760 #: ../fish/guestfish.pod:1075
20761 #, no-wrap
20762 msgid ""
20763 " ><fs> copy-size /large-file /another-file 2048M\n"
20764 " / 10% [#####-----------------------------------------] 00:30\n"
20765 "\n"
20766 msgstr ""
20767
20768 #. type: textblock
20769 #: ../fish/guestfish.pod:1078
20770 msgid ""
20771 "The spinner on the left hand side moves round once for every progress "
20772 "notification received from the backend.  This is a (reasonably) golden "
20773 "assurance that the command is \"doing something\" even if the progress bar "
20774 "is not moving, because the command is able to send the progress "
20775 "notifications.  When the bar reaches 100% and the command finishes, the "
20776 "spinner disappears."
20777 msgstr ""
20778
20779 #. type: textblock
20780 #: ../fish/guestfish.pod:1085
20781 msgid ""
20782 "Progress bars are enabled by default when guestfish is used interactively.  "
20783 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20784 "and you can disable them completely using I<--no-progress-bars>."
20785 msgstr ""
20786
20787 #. type: =head1
20788 #: ../fish/guestfish.pod:1090
20789 msgid "GUESTFISH COMMANDS"
20790 msgstr ""
20791
20792 #. type: textblock
20793 #: ../fish/guestfish.pod:1092
20794 msgid ""
20795 "The commands in this section are guestfish convenience commands, in other "
20796 "words, they are not part of the L<guestfs(3)> API."
20797 msgstr ""
20798
20799 #. type: =head2
20800 #: ../fish/guestfish.pod:1095
20801 msgid "help"
20802 msgstr "help"
20803
20804 #. type: verbatim
20805 #: ../fish/guestfish.pod:1097
20806 #, no-wrap
20807 msgid ""
20808 " help\n"
20809 " help cmd\n"
20810 "\n"
20811 msgstr ""
20812 " help\n"
20813 " help команда\n"
20814 "\n"
20815
20816 #. type: textblock
20817 #: ../fish/guestfish.pod:1100
20818 msgid "Without any parameter, this provides general help."
20819 msgstr "Без параметра показує загальну довідкову інформацію."
20820
20821 #. type: textblock
20822 #: ../fish/guestfish.pod:1102
20823 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20824 msgstr ""
20825
20826 #. type: =head2
20827 #: ../fish/guestfish.pod:1104
20828 msgid "quit | exit"
20829 msgstr ""
20830
20831 #. type: textblock
20832 #: ../fish/guestfish.pod:1106
20833 msgid "This exits guestfish.  You can also use C<^D> key."
20834 msgstr ""
20835
20836 #. type: textblock
20837 #: ../fish/guestfish.pod:1108
20838 msgid "@FISH_COMMANDS@"
20839 msgstr ""
20840
20841 #. type: =head1
20842 #: ../fish/guestfish.pod:1110
20843 msgid "COMMANDS"
20844 msgstr "КОМАНДИ"
20845
20846 #. type: textblock
20847 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1505
20848 msgid "@ACTIONS@"
20849 msgstr "@ACTIONS@"
20850
20851 #. type: textblock
20852 #: ../fish/guestfish.pod:1116
20853 msgid ""
20854 "guestfish returns 0 if the commands completed without error, or 1 if there "
20855 "was an error."
20856 msgstr ""
20857
20858 #. type: =item
20859 #: ../fish/guestfish.pod:1123
20860 msgid "EDITOR"
20861 msgstr "РЕДАКТОР"
20862
20863 #. type: textblock
20864 #: ../fish/guestfish.pod:1125
20865 msgid ""
20866 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20867 "C<vi>."
20868 msgstr ""
20869
20870 #. type: =item
20871 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3198
20872 msgid "FEBOOTSTRAP_KERNEL"
20873 msgstr ""
20874
20875 #. type: =item
20876 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3200
20877 msgid "FEBOOTSTRAP_MODULES"
20878 msgstr ""
20879
20880 #. type: textblock
20881 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3202
20882 msgid ""
20883 "These two environment variables allow the kernel that libguestfs uses in the "
20884 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20885 "most recent host kernel is chosen.  For more information about kernel "
20886 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20887 "available in febootstrap E<ge> 3.8."
20888 msgstr ""
20889
20890 #. type: =item
20891 #: ../fish/guestfish.pod:1138
20892 msgid "GUESTFISH_DISPLAY_IMAGE"
20893 msgstr ""
20894
20895 #. type: textblock
20896 #: ../fish/guestfish.pod:1140
20897 msgid ""
20898 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20899 "If not set, it uses L<display(1)>."
20900 msgstr ""
20901
20902 #. type: =item
20903 #: ../fish/guestfish.pod:1143
20904 msgid "GUESTFISH_PID"
20905 msgstr ""
20906
20907 #. type: textblock
20908 #: ../fish/guestfish.pod:1145
20909 msgid ""
20910 "Used with the I<--remote> option to specify the remote guestfish process to "
20911 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20912 msgstr ""
20913
20914 #. type: =item
20915 #: ../fish/guestfish.pod:1149
20916 msgid "HEXEDITOR"
20917 msgstr ""
20918
20919 #. type: textblock
20920 #: ../fish/guestfish.pod:1151
20921 msgid ""
20922 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20923 "not specified, the external L<hexedit(1)> program is used."
20924 msgstr ""
20925
20926 #. type: =item
20927 #: ../fish/guestfish.pod:1155
20928 msgid "HOME"
20929 msgstr "ДОМІВКА"
20930
20931 #. type: textblock
20932 #: ../fish/guestfish.pod:1157
20933 msgid ""
20934 "If compiled with GNU readline support, various files in the home directory "
20935 "can be used.  See L</FILES>."
20936 msgstr ""
20937
20938 #. type: =item
20939 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3208
20940 msgid "LIBGUESTFS_APPEND"
20941 msgstr ""
20942
20943 #. type: textblock
20944 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3210
20945 msgid "Pass additional options to the guest kernel."
20946 msgstr ""
20947
20948 #. type: =item
20949 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3212
20950 msgid "LIBGUESTFS_DEBUG"
20951 msgstr "LIBGUESTFS_DEBUG"
20952
20953 #. type: textblock
20954 #: ../fish/guestfish.pod:1166
20955 msgid ""
20956 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20957 "effect as using the B<-v> option."
20958 msgstr ""
20959
20960 #. type: =item
20961 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3217
20962 msgid "LIBGUESTFS_MEMSIZE"
20963 msgstr "LIBGUESTFS_MEMSIZE"
20964
20965 #. type: textblock
20966 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3219
20967 msgid ""
20968 "Set the memory allocated to the qemu process, in megabytes.  For example:"
20969 msgstr ""
20970
20971 #. type: verbatim
20972 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3222
20973 #, no-wrap
20974 msgid ""
20975 " LIBGUESTFS_MEMSIZE=700\n"
20976 "\n"
20977 msgstr ""
20978 " LIBGUESTFS_MEMSIZE=700\n"
20979 "\n"
20980
20981 #. type: =item
20982 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3224
20983 msgid "LIBGUESTFS_PATH"
20984 msgstr ""
20985
20986 #. type: textblock
20987 #: ../fish/guestfish.pod:1178
20988 msgid ""
20989 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20990 "the discussion of paths in L<guestfs(3)>."
20991 msgstr ""
20992
20993 #. type: =item
20994 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3229
20995 msgid "LIBGUESTFS_QEMU"
20996 msgstr ""
20997
20998 #. type: textblock
20999 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3231
21000 msgid ""
21001 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21002 "which was found at compile time by the configure script is used."
21003 msgstr ""
21004
21005 #. type: =item
21006 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3237
21007 msgid "LIBGUESTFS_TRACE"
21008 msgstr ""
21009
21010 #. type: textblock
21011 #: ../fish/guestfish.pod:1189
21012 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21013 msgstr ""
21014
21015 #. type: =item
21016 #: ../fish/guestfish.pod:1191
21017 msgid "PAGER"
21018 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21019
21020 #. type: textblock
21021 #: ../fish/guestfish.pod:1193
21022 msgid ""
21023 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21024 "C<more>."
21025 msgstr ""
21026
21027 #. type: =item
21028 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21029 #: ../src/guestfs.pod:3242
21030 msgid "TMPDIR"
21031 msgstr ""
21032
21033 #. type: textblock
21034 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3244
21035 msgid ""
21036 "Location of temporary directory, defaults to C</tmp> except for the cached "
21037 "supermin appliance which defaults to C</var/tmp>."
21038 msgstr ""
21039
21040 #. type: textblock
21041 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3247
21042 msgid ""
21043 "If libguestfs was compiled to use the supermin appliance then the real "
21044 "appliance is cached in this directory, shared between all handles belonging "
21045 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21046 "use in case C</var/tmp> is not large enough."
21047 msgstr ""
21048
21049 #. type: =head1
21050 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21051 #: ../rescue/virt-rescue.pod:273
21052 msgid "FILES"
21053 msgstr "ФАЙЛИ"
21054
21055 #. type: =item
21056 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21057 #: ../rescue/virt-rescue.pod:277
21058 msgid "$HOME/.libguestfs-tools.rc"
21059 msgstr ""
21060
21061 #. type: =item
21062 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21063 #: ../rescue/virt-rescue.pod:279
21064 msgid "/etc/libguestfs-tools.conf"
21065 msgstr ""
21066
21067 #. type: textblock
21068 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21069 #: ../rescue/virt-rescue.pod:281
21070 msgid ""
21071 "This configuration file controls the default read-only or read-write mode "
21072 "(I<--ro> or I<--rw>)."
21073 msgstr ""
21074
21075 #. type: textblock
21076 #: ../fish/guestfish.pod:1220
21077 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21078 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
21079
21080 #. type: =item
21081 #: ../fish/guestfish.pod:1222
21082 msgid "$HOME/.guestfish"
21083 msgstr ""
21084
21085 #. type: textblock
21086 #: ../fish/guestfish.pod:1224
21087 msgid ""
21088 "If compiled with GNU readline support, then the command history is saved in "
21089 "this file."
21090 msgstr ""
21091
21092 #. type: =item
21093 #: ../fish/guestfish.pod:1227
21094 msgid "$HOME/.inputrc"
21095 msgstr ""
21096
21097 #. type: =item
21098 #: ../fish/guestfish.pod:1229
21099 msgid "/etc/inputrc"
21100 msgstr ""
21101
21102 #. type: textblock
21103 #: ../fish/guestfish.pod:1231
21104 msgid ""
21105 "If compiled with GNU readline support, then these files can be used to "
21106 "configure readline.  For further information, please see L<readline(3)/"
21107 "INITIALIZATION FILE>."
21108 msgstr ""
21109
21110 #. type: textblock
21111 #: ../fish/guestfish.pod:1235
21112 msgid "To write rules which only apply to guestfish, use:"
21113 msgstr ""
21114
21115 #. type: verbatim
21116 #: ../fish/guestfish.pod:1237
21117 #, no-wrap
21118 msgid ""
21119 " $if guestfish\n"
21120 " ...\n"
21121 " $endif\n"
21122 "\n"
21123 msgstr ""
21124
21125 #. type: textblock
21126 #: ../fish/guestfish.pod:1241
21127 msgid ""
21128 "Variables that you can set in inputrc that change the behaviour of guestfish "
21129 "in useful ways include:"
21130 msgstr ""
21131
21132 #. type: =item
21133 #: ../fish/guestfish.pod:1246
21134 msgid "completion-ignore-case (default: on)"
21135 msgstr ""
21136
21137 #. type: textblock
21138 #: ../fish/guestfish.pod:1248
21139 msgid ""
21140 "By default, guestfish will ignore case when tab-completing paths on the "
21141 "disk.  Use:"
21142 msgstr ""
21143
21144 #. type: verbatim
21145 #: ../fish/guestfish.pod:1251
21146 #, no-wrap
21147 msgid ""
21148 " set completion-ignore-case off\n"
21149 "\n"
21150 msgstr ""
21151
21152 #. type: textblock
21153 #: ../fish/guestfish.pod:1253
21154 msgid "to make guestfish case sensitive."
21155 msgstr ""
21156
21157 #. type: =item
21158 #: ../fish/guestfish.pod:1257
21159 msgid "test1.img"
21160 msgstr ""
21161
21162 #. type: =item
21163 #: ../fish/guestfish.pod:1259
21164 msgid "test2.img (etc)"
21165 msgstr ""
21166
21167 #. type: textblock
21168 #: ../fish/guestfish.pod:1261
21169 msgid ""
21170 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21171 "will be created in the file C<test1.img> in the current directory.  The "
21172 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21173 "the same name will be overwritten."
21174 msgstr ""
21175
21176 #. type: textblock
21177 #: ../fish/guestfish.pod:1270
21178 msgid ""
21179 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21180 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21181 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21182 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21183 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21184 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21185 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21186 msgstr ""
21187
21188 #. type: textblock
21189 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3339
21190 #: ../test-tool/libguestfs-test-tool.pod:112
21191 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21192 msgstr ""
21193
21194 #. type: textblock
21195 #: ../fish/virt-copy-in.pod:5
21196 msgid ""
21197 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21198 msgstr ""
21199
21200 #. type: verbatim
21201 #: ../fish/virt-copy-in.pod:9
21202 #, no-wrap
21203 msgid ""
21204 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21205 "\n"
21206 msgstr ""
21207
21208 #. type: verbatim
21209 #: ../fish/virt-copy-in.pod:11
21210 #, no-wrap
21211 msgid ""
21212 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21213 "\n"
21214 msgstr ""
21215
21216 #. type: textblock
21217 #: ../fish/virt-copy-in.pod:15
21218 msgid ""
21219 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21220 "causing disk corruption.  The virtual machine must be shut down before you "
21221 "use this command."
21222 msgstr ""
21223
21224 #. type: textblock
21225 #: ../fish/virt-copy-in.pod:21
21226 msgid ""
21227 "C<virt-copy-in> copies files and directories from the local disk into a "
21228 "virtual machine disk image or named libvirt domain."
21229 msgstr ""
21230
21231 #. type: textblock
21232 #: ../fish/virt-copy-in.pod:24
21233 msgid ""
21234 "You can give one of more filenames and directories on the command line.  "
21235 "Directories are copied in recursively.  The final parameter must be the "
21236 "destination directory in the disk image which must be an absolute path "
21237 "starting with a C</> character."
21238 msgstr ""
21239
21240 #. type: verbatim
21241 #: ../fish/virt-copy-in.pod:33
21242 #, no-wrap
21243 msgid ""
21244 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21245 "\n"
21246 msgstr ""
21247
21248 #. type: textblock
21249 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21250 msgid "Upload a home directory to a guest:"
21251 msgstr ""
21252
21253 #. type: verbatim
21254 #: ../fish/virt-copy-in.pod:37
21255 #, no-wrap
21256 msgid ""
21257 " virt-copy-in -d MyGuest skel /home\n"
21258 "\n"
21259 msgstr ""
21260
21261 #. type: =head1
21262 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21263 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21264 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21265 msgstr ""
21266
21267 #. type: textblock
21268 #: ../fish/virt-copy-in.pod:41
21269 msgid ""
21270 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21271 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
21272 "are probably better off using guestfish directly."
21273 msgstr ""
21274
21275 #. type: textblock
21276 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21277 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21278 msgid ""
21279 "Since the shell script just passes options straight to guestfish, read "
21280 "L<guestfish(1)> to see the full list of options."
21281 msgstr ""
21282
21283 #. type: textblock
21284 #: ../fish/virt-copy-in.pod:52
21285 msgid ""
21286 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21287 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21288 msgstr ""
21289
21290 #. type: textblock
21291 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21292 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21293 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21294 msgstr ""
21295
21296 #. type: textblock
21297 #: ../fish/virt-copy-out.pod:5
21298 msgid ""
21299 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21300 "image."
21301 msgstr ""
21302
21303 #. type: verbatim
21304 #: ../fish/virt-copy-out.pod:9
21305 #, no-wrap
21306 msgid ""
21307 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21308 "\n"
21309 msgstr ""
21310
21311 #. type: verbatim
21312 #: ../fish/virt-copy-out.pod:11
21313 #, no-wrap
21314 msgid ""
21315 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21316 "\n"
21317 msgstr ""
21318
21319 #. type: textblock
21320 #: ../fish/virt-copy-out.pod:15
21321 msgid ""
21322 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21323 "image or named libvirt domain."
21324 msgstr ""
21325
21326 #. type: textblock
21327 #: ../fish/virt-copy-out.pod:18
21328 msgid ""
21329 "You can give one of more filenames and directories on the command line.  "
21330 "Directories are copied out recursively."
21331 msgstr ""
21332
21333 #. type: textblock
21334 #: ../fish/virt-copy-out.pod:23
21335 msgid "Download the home directories from a virtual machine:"
21336 msgstr ""
21337
21338 #. type: verbatim
21339 #: ../fish/virt-copy-out.pod:25
21340 #, no-wrap
21341 msgid ""
21342 " mkdir homes\n"
21343 " virt-copy-out -d MyGuest /home homes\n"
21344 "\n"
21345 msgstr ""
21346
21347 #. type: textblock
21348 #: ../fish/virt-copy-out.pod:30
21349 msgid ""
21350 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21351 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
21352 "are probably better off using guestfish directly."
21353 msgstr ""
21354
21355 #. type: textblock
21356 #: ../fish/virt-copy-out.pod:41
21357 msgid ""
21358 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21359 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21360 msgstr ""
21361
21362 #. type: textblock
21363 #: ../fish/virt-tar-in.pod:5
21364 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21365 msgstr ""
21366
21367 #. type: verbatim
21368 #: ../fish/virt-tar-in.pod:9
21369 #, no-wrap
21370 msgid ""
21371 " virt-tar-in -a disk.img data.tar /destination\n"
21372 "\n"
21373 msgstr ""
21374
21375 #. type: verbatim
21376 #: ../fish/virt-tar-in.pod:11
21377 #, no-wrap
21378 msgid ""
21379 " virt-tar-in -d domain data.tar /destination\n"
21380 "\n"
21381 msgstr ""
21382
21383 #. type: verbatim
21384 #: ../fish/virt-tar-in.pod:13
21385 #, no-wrap
21386 msgid ""
21387 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21388 "\n"
21389 msgstr ""
21390
21391 #. type: textblock
21392 #: ../fish/virt-tar-in.pod:17
21393 msgid ""
21394 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21395 "causing disk corruption.  The virtual machine must be shut down before you "
21396 "use this command."
21397 msgstr ""
21398
21399 #. type: textblock
21400 #: ../fish/virt-tar-in.pod:23
21401 msgid ""
21402 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21403 "image or named libvirt domain."
21404 msgstr ""
21405
21406 #. type: textblock
21407 #: ../fish/virt-tar-in.pod:26
21408 msgid ""
21409 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21410 "standard input.  The second parameter is the absolute target directory to "
21411 "unpack into."
21412 msgstr ""
21413
21414 #. type: verbatim
21415 #: ../fish/virt-tar-in.pod:34
21416 #, no-wrap
21417 msgid ""
21418 " virt-tar-in -d MyGuest homes.tar /home\n"
21419 "\n"
21420 msgstr ""
21421
21422 #. type: textblock
21423 #: ../fish/virt-tar-in.pod:38
21424 msgid ""
21425 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21426 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
21427 "probably better off using guestfish directly."
21428 msgstr ""
21429
21430 #. type: textblock
21431 #: ../fish/virt-tar-in.pod:49
21432 msgid ""
21433 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21434 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21435 "org/>."
21436 msgstr ""
21437
21438 #. type: textblock
21439 #: ../fish/virt-tar-out.pod:5
21440 msgid ""
21441 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21442 msgstr ""
21443
21444 #. type: verbatim
21445 #: ../fish/virt-tar-out.pod:9
21446 #, no-wrap
21447 msgid ""
21448 " virt-tar-out -a disk.img /dir files.tar\n"
21449 "\n"
21450 msgstr ""
21451
21452 #. type: verbatim
21453 #: ../fish/virt-tar-out.pod:11
21454 #, no-wrap
21455 msgid ""
21456 " virt-tar-out -d domain /dir files.tar\n"
21457 "\n"
21458 msgstr ""
21459
21460 #. type: verbatim
21461 #: ../fish/virt-tar-out.pod:13
21462 #, no-wrap
21463 msgid ""
21464 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21465 "\n"
21466 msgstr ""
21467
21468 #. type: textblock
21469 #: ../fish/virt-tar-out.pod:17
21470 msgid ""
21471 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21472 msgstr ""
21473
21474 #. type: textblock
21475 #: ../fish/virt-tar-out.pod:20
21476 msgid ""
21477 "The first parameter is the absolute path of the virtual machine directory.  "
21478 "The second parameter is the tar file to write.  Use C<-> to write to "
21479 "standard output."
21480 msgstr ""
21481
21482 #. type: textblock
21483 #: ../fish/virt-tar-out.pod:26
21484 msgid "Download the home directories from a guest:"
21485 msgstr ""
21486
21487 #. type: verbatim
21488 #: ../fish/virt-tar-out.pod:28
21489 #, no-wrap
21490 msgid ""
21491 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21492 "\n"
21493 msgstr ""
21494
21495 #. type: textblock
21496 #: ../fish/virt-tar-out.pod:32
21497 msgid ""
21498 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21499 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
21500 "are probably better off using guestfish directly."
21501 msgstr ""
21502
21503 #. type: textblock
21504 #: ../fish/virt-tar-out.pod:43
21505 msgid ""
21506 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21507 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21508 msgstr ""
21509
21510 #. type: textblock
21511 #: ../fuse/guestmount.pod:5
21512 msgid ""
21513 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21514 msgstr ""
21515
21516 #. type: verbatim
21517 #: ../fuse/guestmount.pod:9
21518 #, no-wrap
21519 msgid ""
21520 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21521 "\n"
21522 msgstr ""
21523
21524 #. type: verbatim
21525 #: ../fuse/guestmount.pod:11
21526 #, no-wrap
21527 msgid ""
21528 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21529 "\n"
21530 msgstr ""
21531
21532 #. type: verbatim
21533 #: ../fuse/guestmount.pod:13
21534 #, no-wrap
21535 msgid ""
21536 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21537 "\n"
21538 msgstr ""
21539
21540 #. type: textblock
21541 #: ../fuse/guestmount.pod:17
21542 msgid ""
21543 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21544 "machines.  If you do this, you risk disk corruption in the VM."
21545 msgstr ""
21546
21547 #. type: textblock
21548 #: ../fuse/guestmount.pod:22
21549 msgid ""
21550 "The guestmount program can be used to mount virtual machine filesystems and "
21551 "other disk images on the host.  It uses libguestfs for access to the guest "
21552 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21553 "a mountable device."
21554 msgstr ""
21555
21556 #. type: textblock
21557 #: ../fuse/guestmount.pod:27
21558 msgid ""
21559 "Along with other options, you have to give at least one device (I<-a> "
21560 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21561 "option) or use the I<-i> inspection option.  How this works is better "
21562 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
21563 "below."
21564 msgstr ""
21565
21566 #. type: textblock
21567 #: ../fuse/guestmount.pod:33
21568 msgid ""
21569 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21570 "by you, and the filesystem will not be visible to any other users unless you "
21571 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21572 "the filesystem, use the C<fusermount -u> command."
21573 msgstr ""
21574
21575 #. type: textblock
21576 #: ../fuse/guestmount.pod:41
21577 msgid ""
21578 "For a typical Windows guest which has its main filesystem on the first "
21579 "partition:"
21580 msgstr ""
21581
21582 #. type: verbatim
21583 #: ../fuse/guestmount.pod:44
21584 #, no-wrap
21585 msgid ""
21586 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21587 "\n"
21588 msgstr ""
21589
21590 #. type: textblock
21591 #: ../fuse/guestmount.pod:46
21592 msgid ""
21593 "For a typical Linux guest which has a /boot filesystem on the first "
21594 "partition, and the root filesystem on a logical volume:"
21595 msgstr ""
21596
21597 #. type: verbatim
21598 #: ../fuse/guestmount.pod:49
21599 #, no-wrap
21600 msgid ""
21601 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21602 "\n"
21603 msgstr ""
21604
21605 #. type: textblock
21606 #: ../fuse/guestmount.pod:51
21607 msgid "To get libguestfs to detect guest mountpoints for you:"
21608 msgstr ""
21609
21610 #. type: verbatim
21611 #: ../fuse/guestmount.pod:53
21612 #, no-wrap
21613 msgid ""
21614 " guestmount -a guest.img -i --ro /mnt\n"
21615 "\n"
21616 msgstr ""
21617
21618 #. type: textblock
21619 #: ../fuse/guestmount.pod:55
21620 msgid "For a libvirt guest called \"Guest\" you could do:"
21621 msgstr ""
21622
21623 #. type: verbatim
21624 #: ../fuse/guestmount.pod:57
21625 #, no-wrap
21626 msgid ""
21627 " guestmount -d Guest -i --ro /mnt\n"
21628 "\n"
21629 msgstr ""
21630
21631 #. type: textblock
21632 #: ../fuse/guestmount.pod:59
21633 msgid ""
21634 "If you don't know what filesystems are contained in a guest or disk image, "
21635 "use L<virt-filesystems(1)> first:"
21636 msgstr ""
21637
21638 #. type: verbatim
21639 #: ../fuse/guestmount.pod:62
21640 #, no-wrap
21641 msgid ""
21642 " virt-filesystems MyGuest\n"
21643 "\n"
21644 msgstr ""
21645
21646 #. type: textblock
21647 #: ../fuse/guestmount.pod:64
21648 msgid ""
21649 "If you want to trace the libguestfs calls but without excessive debugging "
21650 "information, we recommend:"
21651 msgstr ""
21652
21653 #. type: verbatim
21654 #: ../fuse/guestmount.pod:67
21655 #, no-wrap
21656 msgid ""
21657 " guestmount [...] --trace /mnt\n"
21658 "\n"
21659 msgstr ""
21660
21661 #. type: textblock
21662 #: ../fuse/guestmount.pod:69
21663 msgid "If you want to debug the program, we recommend:"
21664 msgstr ""
21665
21666 #. type: verbatim
21667 #: ../fuse/guestmount.pod:71
21668 #, no-wrap
21669 msgid ""
21670 " guestmount [...] --trace --verbose /mnt\n"
21671 "\n"
21672 msgstr ""
21673
21674 #. type: =head1
21675 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21676 #: ../resize/virt-resize.pod:600
21677 msgid "NOTES"
21678 msgstr "ПРИМІТКИ"
21679
21680 #. type: =head2
21681 #: ../fuse/guestmount.pod:75
21682 msgid "Other users cannot see the filesystem by default"
21683 msgstr ""
21684
21685 #. type: textblock
21686 #: ../fuse/guestmount.pod:77
21687 msgid ""
21688 "If you mount a filesystem as one user (eg. root), then other users will not "
21689 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21690 "option when mounting:"
21691 msgstr ""
21692
21693 #. type: verbatim
21694 #: ../fuse/guestmount.pod:81
21695 #, no-wrap
21696 msgid ""
21697 " sudo guestmount [...] -o allow_other /mnt\n"
21698 "\n"
21699 msgstr ""
21700
21701 #. type: =head2
21702 #: ../fuse/guestmount.pod:83
21703 msgid "Enabling FUSE"
21704 msgstr ""
21705
21706 #. type: textblock
21707 #: ../fuse/guestmount.pod:85
21708 msgid ""
21709 "On some distros, you may need to add yourself to a special group (eg. "
21710 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21711 "Debian and derivatives."
21712 msgstr ""
21713
21714 #. type: textblock
21715 #: ../fuse/guestmount.pod:89
21716 msgid ""
21717 "On other distros, no special group is required.  It is not necessary on "
21718 "Fedora or Red Hat Enterprise Linux."
21719 msgstr ""
21720
21721 #. type: textblock
21722 #: ../fuse/guestmount.pod:100
21723 msgid "Add a block device or virtual machine image."
21724 msgstr ""
21725
21726 #. type: =item
21727 #: ../fuse/guestmount.pod:123
21728 msgid "B<--dir-cache-timeout N>"
21729 msgstr "B<--dir-cache-timeout N>"
21730
21731 #. type: textblock
21732 #: ../fuse/guestmount.pod:125
21733 msgid ""
21734 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21735 "seconds.  The readdir cache [actually, there are several semi-independent "
21736 "caches] is populated after a readdir(2) call with the stat and extended "
21737 "attributes of the files in the directory, in anticipation that they will be "
21738 "requested soon after."
21739 msgstr ""
21740
21741 #. type: textblock
21742 #: ../fuse/guestmount.pod:131
21743 msgid ""
21744 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21745 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21746 "requests, only cache existing ones."
21747 msgstr ""
21748
21749 #. type: textblock
21750 #: ../fuse/guestmount.pod:151
21751 msgid ""
21752 "If you have untrusted raw-format guest disk images, you should use this "
21753 "option to specify the disk format.  This avoids a possible security problem "
21754 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
21755 "guestfs_add_drive_opts>."
21756 msgstr ""
21757
21758 #. type: =item
21759 #: ../fuse/guestmount.pod:156
21760 msgid "B<--fuse-help>"
21761 msgstr "B<--fuse-help>"
21762
21763 #. type: textblock
21764 #: ../fuse/guestmount.pod:158
21765 msgid "Display help on special FUSE options (see I<-o> below)."
21766 msgstr ""
21767
21768 #. type: textblock
21769 #: ../fuse/guestmount.pod:162
21770 msgid "Display brief help and exit."
21771 msgstr ""
21772
21773 #. type: textblock
21774 #: ../fuse/guestmount.pod:186
21775 msgid ""
21776 "Mount the named partition or logical volume on the given mountpoint B<in the "
21777 "guest> (this has nothing to do with mountpoints in the host)."
21778 msgstr ""
21779
21780 #. type: textblock
21781 #: ../fuse/guestmount.pod:189
21782 msgid ""
21783 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21784 "something on C</>."
21785 msgstr ""
21786
21787 #. type: textblock
21788 #: ../fuse/guestmount.pod:206
21789 msgid ""
21790 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21791 "unmounted.  If you specify this option, then we don't attempt to sync the "
21792 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21793 msgstr ""
21794
21795 #. type: =item
21796 #: ../fuse/guestmount.pod:211
21797 msgid "B<-o option>"
21798 msgstr "B<-o параметр>"
21799
21800 #. type: =item
21801 #: ../fuse/guestmount.pod:213
21802 msgid "B<--option option>"
21803 msgstr "B<--option параметр>"
21804
21805 #. type: textblock
21806 #: ../fuse/guestmount.pod:215
21807 msgid "Pass extra options to FUSE."
21808 msgstr ""
21809
21810 #. type: textblock
21811 #: ../fuse/guestmount.pod:217
21812 msgid ""
21813 "To get a list of all the extra options supported by FUSE, use the command "
21814 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21815 "of them are a good idea."
21816 msgstr ""
21817
21818 #. type: verbatim
21819 #: ../fuse/guestmount.pod:221
21820 #, no-wrap
21821 msgid ""
21822 " guestmount --fuse-help\n"
21823 "\n"
21824 msgstr ""
21825
21826 #. type: textblock
21827 #: ../fuse/guestmount.pod:223
21828 msgid "Some potentially useful FUSE options:"
21829 msgstr ""
21830
21831 #. type: =item
21832 #: ../fuse/guestmount.pod:227
21833 msgid "B<-o allow_other>"
21834 msgstr ""
21835
21836 #. type: textblock
21837 #: ../fuse/guestmount.pod:229
21838 msgid "Allow other users to see the filesystem."
21839 msgstr ""
21840
21841 #. type: =item
21842 #: ../fuse/guestmount.pod:231
21843 msgid "B<-o attr_timeout=N>"
21844 msgstr "B<-o attr_timeout=N>"
21845
21846 #. type: textblock
21847 #: ../fuse/guestmount.pod:233
21848 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21849 msgstr ""
21850
21851 #. type: =item
21852 #: ../fuse/guestmount.pod:235
21853 msgid "B<-o kernel_cache>"
21854 msgstr ""
21855
21856 #. type: textblock
21857 #: ../fuse/guestmount.pod:237
21858 msgid ""
21859 "Allow the kernel to cache files (reduces the number of reads that have to go "
21860 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21861 "afford the extra memory usage."
21862 msgstr ""
21863
21864 #. type: =item
21865 #: ../fuse/guestmount.pod:241
21866 msgid "B<-o uid=N> B<-o gid=N>"
21867 msgstr "B<-o uid=N> B<-o gid=N>"
21868
21869 #. type: textblock
21870 #: ../fuse/guestmount.pod:243
21871 msgid ""
21872 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21873 "the chosen values."
21874 msgstr ""
21875
21876 #. type: textblock
21877 #: ../fuse/guestmount.pod:252
21878 msgid ""
21879 "Add devices and mount everything read-only.  Also disallow writes and make "
21880 "the disk appear read-only to FUSE."
21881 msgstr ""
21882
21883 #. type: textblock
21884 #: ../fuse/guestmount.pod:255
21885 msgid ""
21886 "This is highly recommended if you are not going to edit the guest disk.  If "
21887 "the guest is running and this option is I<not> supplied, then there is a "
21888 "strong risk of disk corruption in the guest.  We try to prevent this from "
21889 "happening, but it is not always possible."
21890 msgstr ""
21891
21892 #. type: textblock
21893 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
21894 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21895 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21896
21897 #. type: textblock
21898 #: ../fuse/guestmount.pod:264
21899 msgid "Enable SELinux support for the guest."
21900 msgstr ""
21901
21902 #. type: textblock
21903 #: ../fuse/guestmount.pod:270
21904 msgid "Enable verbose messages from underlying libguestfs."
21905 msgstr ""
21906
21907 #. type: textblock
21908 #: ../fuse/guestmount.pod:276
21909 msgid "Display the program version and exit."
21910 msgstr ""
21911
21912 #. type: textblock
21913 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
21914 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21915 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21916 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21917
21918 #. type: =item
21919 #: ../fuse/guestmount.pod:289
21920 msgid "B<--trace>"
21921 msgstr "B<--trace>"
21922
21923 #. type: textblock
21924 #: ../fuse/guestmount.pod:291
21925 msgid "Trace libguestfs calls and entry into each FUSE function."
21926 msgstr ""
21927
21928 #. type: textblock
21929 #: ../fuse/guestmount.pod:293
21930 msgid "This also stops the daemon from forking into the background."
21931 msgstr ""
21932
21933 #. type: textblock
21934 #: ../fuse/guestmount.pod:319
21935 msgid ""
21936 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21937 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21938 "net/>."
21939 msgstr ""
21940 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21941 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21942 "net/>."
21943
21944 #. type: textblock
21945 #: ../fuse/guestmount.pod:334
21946 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21947 msgstr ""
21948
21949 #. type: textblock
21950 #: ../inspector/virt-inspector.pod:5
21951 msgid ""
21952 "virt-inspector - Display operating system version and other information "
21953 "about a virtual machine"
21954 msgstr ""
21955
21956 #. type: verbatim
21957 #: ../inspector/virt-inspector.pod:9
21958 #, no-wrap
21959 msgid ""
21960 " virt-inspector [--options] -d domname\n"
21961 "\n"
21962 msgstr ""
21963
21964 #. type: verbatim
21965 #: ../inspector/virt-inspector.pod:11
21966 #, no-wrap
21967 msgid ""
21968 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21969 "\n"
21970 msgstr ""
21971
21972 #. type: verbatim
21973 #: ../inspector/virt-inspector.pod:15
21974 #, no-wrap
21975 msgid ""
21976 " virt-inspector domname\n"
21977 "\n"
21978 msgstr ""
21979
21980 #. type: verbatim
21981 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
21982 #, no-wrap
21983 msgid ""
21984 " virt-inspector disk.img [disk.img ...]\n"
21985 "\n"
21986 msgstr ""
21987
21988 #. type: textblock
21989 #: ../inspector/virt-inspector.pod:21
21990 msgid ""
21991 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21992 "determine the version of the operating system and other information about "
21993 "the virtual machine."
21994 msgstr ""
21995
21996 #. type: textblock
21997 #: ../inspector/virt-inspector.pod:25
21998 msgid "Virt-inspector produces XML output for feeding into other programs."
21999 msgstr ""
22000
22001 #. type: textblock
22002 #: ../inspector/virt-inspector.pod:27
22003 msgid ""
22004 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22005 "the libvirt domain (see: C<virsh list --all>)."
22006 msgstr ""
22007
22008 #. type: textblock
22009 #: ../inspector/virt-inspector.pod:30
22010 msgid ""
22011 "You can also run virt-inspector directly on disk images from a single "
22012 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22013 "has several block devices, in which case you should list several I<-a> "
22014 "options one after another, with the first corresponding to the guest's C</"
22015 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22016 msgstr ""
22017
22018 #. type: textblock
22019 #: ../inspector/virt-inspector.pod:37
22020 msgid ""
22021 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22022 "keys and similar."
22023 msgstr ""
22024
22025 #. type: textblock
22026 #: ../inspector/virt-inspector.pod:40
22027 msgid ""
22028 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22029 "inspect several virtual machines, you have to run virt-inspector several "
22030 "times (for example, from a shell script for-loop)."
22031 msgstr ""
22032
22033 #. type: textblock
22034 #: ../inspector/virt-inspector.pod:45
22035 msgid ""
22036 "Because virt-inspector needs direct access to guest images, it won't "
22037 "normally work over remote libvirt connections."
22038 msgstr ""
22039
22040 #. type: textblock
22041 #: ../inspector/virt-inspector.pod:48
22042 msgid ""
22043 "All of the information available from virt-inspector is also available "
22044 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22045 "The same information can also be fetched using guestfish or via libguestfs "
22046 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22047 "WITH OTHER PROGRAMMING LANGUAGES>)."
22048 msgstr ""
22049
22050 #. type: textblock
22051 #: ../inspector/virt-inspector.pod:81
22052 msgid ""
22053 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22054 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22055 "at all."
22056 msgstr ""
22057
22058 #. type: textblock
22059 #: ../inspector/virt-inspector.pod:94
22060 msgid ""
22061 "When prompting for keys and passphrases, virt-inspector normally turns "
22062 "echoing off so you cannot see what you are typing.  If you are not worried "
22063 "about Tempest attacks and there is no one else in the room you can specify "
22064 "this flag to see what you are typing."
22065 msgstr ""
22066
22067 #. type: textblock
22068 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22069 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22070 #: ../tools/virt-win-reg.pl:144
22071 msgid ""
22072 "Specify the format of disk images given on the command line.  If this is "
22073 "omitted then the format is autodetected from the content of the disk image."
22074 msgstr ""
22075
22076 #. type: textblock
22077 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22078 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22079 #: ../tools/virt-win-reg.pl:148
22080 msgid ""
22081 "If disk images are requested from libvirt, then this program asks libvirt "
22082 "for this information.  In this case, the value of the format parameter is "
22083 "ignored."
22084 msgstr ""
22085
22086 #. type: textblock
22087 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:370
22088 #: ../resize/virt-resize.pod:462 ../sparsify/virt-sparsify.pod:132
22089 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22090 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22091 msgid ""
22092 "If working with untrusted raw-format guest disk images, you should ensure "
22093 "the format is always specified."
22094 msgstr ""
22095
22096 #. type: textblock
22097 #: ../inspector/virt-inspector.pod:139
22098 msgid "Previous versions of virt-inspector allowed you to write either:"
22099 msgstr ""
22100
22101 #. type: verbatim
22102 #: ../inspector/virt-inspector.pod:145
22103 #, no-wrap
22104 msgid ""
22105 " virt-inspector guestname\n"
22106 "\n"
22107 msgstr ""
22108
22109 #. type: =head1
22110 #: ../inspector/virt-inspector.pod:153
22111 msgid "XML FORMAT"
22112 msgstr ""
22113
22114 #. type: textblock
22115 #: ../inspector/virt-inspector.pod:155
22116 msgid ""
22117 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22118 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22119 "just an overview."
22120 msgstr ""
22121
22122 #. type: textblock
22123 #: ../inspector/virt-inspector.pod:159
22124 msgid ""
22125 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22126 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22127 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22128 "which is vanishingly rare in real world VMs."
22129 msgstr ""
22130
22131 #. type: =head2
22132 #: ../inspector/virt-inspector.pod:164
22133 msgid "E<lt>operatingsystemE<gt>"
22134 msgstr ""
22135
22136 #. type: textblock
22137 #: ../inspector/virt-inspector.pod:166
22138 msgid ""
22139 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22140 "describe the operating system, its architecture, the descriptive \"product "
22141 "name\" string, the type of OS and so on, as in this example:"
22142 msgstr ""
22143
22144 #. type: verbatim
22145 #: ../inspector/virt-inspector.pod:170
22146 #, no-wrap
22147 msgid ""
22148 " <operatingsystems>\n"
22149 "   <operatingsystem>\n"
22150 "     <root>/dev/sda2</root>\n"
22151 "     <name>windows</name>\n"
22152 "     <arch>i386</arch>\n"
22153 "     <distro>windows</distro>\n"
22154 "     <product_name>Windows 7 Enterprise</product_name>\n"
22155 "     <product_variant>Client</product_variant>\n"
22156 "     <major_version>6</major_version>\n"
22157 "     <minor_version>1</minor_version>\n"
22158 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22159 "     <format>installed</format>\n"
22160 "\n"
22161 msgstr ""
22162
22163 #. type: textblock
22164 #: ../inspector/virt-inspector.pod:183
22165 msgid ""
22166 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22167 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22168 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22169 "architecture.  The other fields are fairly self-explanatory, but because "
22170 "these fields are taken directly from the libguestfs inspection API you can "
22171 "find precise information from L<guestfs(3)/INSPECTION>."
22172 msgstr ""
22173
22174 #. type: textblock
22175 #: ../inspector/virt-inspector.pod:191
22176 msgid ""
22177 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22178 "of view of libguestfs (block devices may have completely different names "
22179 "inside the VM itself)."
22180 msgstr ""
22181
22182 #. type: =head2
22183 #: ../inspector/virt-inspector.pod:195
22184 msgid "E<lt>mountpointsE<gt>"
22185 msgstr ""
22186
22187 #. type: textblock
22188 #: ../inspector/virt-inspector.pod:197
22189 msgid ""
22190 "Un*x-like guests typically have multiple filesystems which are mounted at "
22191 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22192 "element which looks like this:"
22193 msgstr ""
22194
22195 #. type: verbatim
22196 #: ../inspector/virt-inspector.pod:201
22197 #, no-wrap
22198 msgid ""
22199 " <operatingsystems>\n"
22200 "   <operatingsystem>\n"
22201 "     ...\n"
22202 "     <mountpoints>\n"
22203 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22204 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22205 "     </mountpoints>\n"
22206 "\n"
22207 msgstr ""
22208
22209 #. type: textblock
22210 #: ../inspector/virt-inspector.pod:209
22211 msgid ""
22212 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22213 "and may have completely different names inside the guest.  Only mountable "
22214 "filesystems appear in this list, not things like swap devices."
22215 msgstr ""
22216
22217 #. type: =head2
22218 #: ../inspector/virt-inspector.pod:214
22219 msgid "E<lt>filesystemsE<gt>"
22220 msgstr ""
22221
22222 #. type: textblock
22223 #: ../inspector/virt-inspector.pod:216
22224 msgid ""
22225 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22226 "filesystems belonging to the guest, including swap and empty partitions.  "
22227 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22228 "this OS or shared with this OS and other OSes)."
22229 msgstr ""
22230
22231 #. type: textblock
22232 #: ../inspector/virt-inspector.pod:222
22233 msgid "You might see something like this:"
22234 msgstr ""
22235
22236 #. type: verbatim
22237 #: ../inspector/virt-inspector.pod:224
22238 #, no-wrap
22239 msgid ""
22240 " <operatingsystems>\n"
22241 "   <operatingsystem>\n"
22242 "     ...\n"
22243 "     <filesystems>\n"
22244 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22245 "         <type>ext4</type>\n"
22246 "         <label>Fedora-13-x86_64</label>\n"
22247 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22248 "       </filesystem>\n"
22249 "\n"
22250 msgstr ""
22251
22252 #. type: textblock
22253 #: ../inspector/virt-inspector.pod:234
22254 msgid ""
22255 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22256 "the label, and the UUID."
22257 msgstr ""
22258
22259 #. type: =head2
22260 #: ../inspector/virt-inspector.pod:237
22261 msgid "E<lt>applicationsE<gt>"
22262 msgstr ""
22263
22264 #. type: textblock
22265 #: ../inspector/virt-inspector.pod:239
22266 msgid ""
22267 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22268 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22269 "machine."
22270 msgstr ""
22271
22272 #. type: textblock
22273 #: ../inspector/virt-inspector.pod:243
22274 msgid ""
22275 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22276 "Typical values would be C<rpm> and C<deb>."
22277 msgstr ""
22278
22279 #. type: textblock
22280 #: ../inspector/virt-inspector.pod:246
22281 msgid ""
22282 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22283 "Typical values include C<yum>, C<up2date> and C<apt>"
22284 msgstr ""
22285
22286 #. type: textblock
22287 #: ../inspector/virt-inspector.pod:249
22288 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22289 msgstr ""
22290
22291 #. type: verbatim
22292 #: ../inspector/virt-inspector.pod:252
22293 #, no-wrap
22294 msgid ""
22295 " <operatingsystems>\n"
22296 "   <operatingsystem>\n"
22297 "     ...\n"
22298 "     <applications>\n"
22299 "       <application>\n"
22300 "         <name>coreutils</name>\n"
22301 "         <version>8.5</version>\n"
22302 "         <release>1</release>\n"
22303 "       </application>\n"
22304 "\n"
22305 msgstr ""
22306
22307 #. type: textblock
22308 #: ../inspector/virt-inspector.pod:262
22309 msgid ""
22310 "The version and release fields may not be available for some types guests.  "
22311 "Other fields are possible, see L<guestfs(3)/"
22312 "guestfs_inspect_list_applications>."
22313 msgstr ""
22314
22315 #. type: =head2
22316 #: ../inspector/virt-inspector.pod:266
22317 msgid "E<lt>drive_mappingsE<gt>"
22318 msgstr ""
22319
22320 #. type: textblock
22321 #: ../inspector/virt-inspector.pod:268
22322 msgid ""
22323 "For operating systems like Windows which use drive letters, virt-inspector "
22324 "is able to find out how drive letters map to filesystems."
22325 msgstr ""
22326
22327 #. type: verbatim
22328 #: ../inspector/virt-inspector.pod:272
22329 #, no-wrap
22330 msgid ""
22331 " <operatingsystems>\n"
22332 "   <operatingsystem>\n"
22333 "     ...\n"
22334 "     <drive_mappings>\n"
22335 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22336 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22337 "     </drive_mappings>\n"
22338 "\n"
22339 msgstr ""
22340
22341 #. type: textblock
22342 #: ../inspector/virt-inspector.pod:280
22343 msgid ""
22344 "In the example above, drive C maps to the filesystem on the second partition "
22345 "on the first disk, and drive E maps to the filesystem on the first partition "
22346 "on the second disk."
22347 msgstr ""
22348
22349 #. type: textblock
22350 #: ../inspector/virt-inspector.pod:284
22351 msgid ""
22352 "Note that this only covers permanent local filesystem mappings, not things "
22353 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22354 "here."
22355 msgstr ""
22356
22357 #. type: =head2
22358 #: ../inspector/virt-inspector.pod:288
22359 msgid "E<lt>iconE<gt>"
22360 msgstr ""
22361
22362 #. type: textblock
22363 #: ../inspector/virt-inspector.pod:290
22364 msgid ""
22365 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22366 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22367 "very large and high quality."
22368 msgstr ""
22369
22370 #. type: verbatim
22371 #: ../inspector/virt-inspector.pod:294
22372 #, no-wrap
22373 msgid ""
22374 " <operatingsystems>\n"
22375 "   <operatingsystem>\n"
22376 "     ...\n"
22377 "     <icon>\n"
22378 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22379 "       [... many lines of base64 data ...]\n"
22380 "     </icon>\n"
22381 "\n"
22382 msgstr ""
22383
22384 #. type: textblock
22385 #: ../inspector/virt-inspector.pod:302
22386 msgid ""
22387 "To display the icon, you have to extract it and convert the base64 data back "
22388 "to a binary file.  Use an XPath query or simply an editor to extract the "
22389 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22390 "to a PNG file:"
22391 msgstr ""
22392
22393 #. type: verbatim
22394 #: ../inspector/virt-inspector.pod:307
22395 #, no-wrap
22396 msgid ""
22397 " base64 -i -d < icon.data > icon.png\n"
22398 "\n"
22399 msgstr ""
22400
22401 #. type: =head2
22402 #: ../inspector/virt-inspector.pod:309
22403 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22404 msgstr ""
22405
22406 #. type: textblock
22407 #: ../inspector/virt-inspector.pod:311
22408 msgid ""
22409 "Virt-inspector can detect some operating system installers on install disks, "
22410 "live CDs, bootable USB keys and more."
22411 msgstr ""
22412
22413 #. type: textblock
22414 #: ../inspector/virt-inspector.pod:314
22415 msgid ""
22416 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22417 "fields may be present to indicate a live CD, network installer, or one part "
22418 "of a multipart CD.  For example:"
22419 msgstr ""
22420
22421 #. type: verbatim
22422 #: ../inspector/virt-inspector.pod:318
22423 #, no-wrap
22424 msgid ""
22425 " <operatingsystems>\n"
22426 "   <operatingsystem>\n"
22427 "     <root>/dev/sda</root>\n"
22428 "     <name>linux</name>\n"
22429 "     <arch>i386</arch>\n"
22430 "     <distro>ubuntu</distro>\n"
22431 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
22432 "     <major_version>10</major_version>\n"
22433 "     <minor_version>10</minor_version>\n"
22434 "     <format>installer</format>\n"
22435 "     <live/>\n"
22436 "\n"
22437 msgstr ""
22438
22439 #. type: =head1
22440 #: ../inspector/virt-inspector.pod:330
22441 msgid "USING XPATH"
22442 msgstr ""
22443
22444 #. type: textblock
22445 #: ../inspector/virt-inspector.pod:332
22446 msgid ""
22447 "You can use the XPath query language to select parts of the XML.  We "
22448 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
22449 msgstr ""
22450
22451 #. type: verbatim
22452 #: ../inspector/virt-inspector.pod:338
22453 #, no-wrap
22454 msgid ""
22455 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22456 " <filesystems>\n"
22457 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22458 "        <type>ext4</type>\n"
22459 " [...]\n"
22460 "\n"
22461 msgstr ""
22462
22463 #. type: verbatim
22464 #: ../inspector/virt-inspector.pod:344
22465 #, no-wrap
22466 msgid ""
22467 " $ virt-inspector -d Guest | \\\n"
22468 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22469 " ext4\n"
22470 "\n"
22471 msgstr ""
22472
22473 #. type: verbatim
22474 #: ../inspector/virt-inspector.pod:348
22475 #, no-wrap
22476 msgid ""
22477 " $ virt-inspector -d Guest | \\\n"
22478 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22479 " [displays the guest icon, if there is one]\n"
22480 "\n"
22481 msgstr ""
22482
22483 #. type: =head1
22484 #: ../inspector/virt-inspector.pod:359
22485 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22486 msgstr ""
22487
22488 #. type: textblock
22489 #: ../inspector/virt-inspector.pod:361
22490 msgid ""
22491 "Early versions of libguestfs shipped with a different virt-inspector program "
22492 "written in Perl (the current version is written in C).  The XML output of "
22493 "the Perl virt-inspector was different and it could also output in other "
22494 "formats like text."
22495 msgstr ""
22496
22497 #. type: textblock
22498 #: ../inspector/virt-inspector.pod:366
22499 msgid ""
22500 "The old virt-inspector is no longer supported or shipped with libguestfs."
22501 msgstr ""
22502
22503 #. type: textblock
22504 #: ../inspector/virt-inspector.pod:369
22505 msgid ""
22506 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22507 "versions of virt-inspector with different names:"
22508 msgstr ""
22509
22510 #. type: verbatim
22511 #: ../inspector/virt-inspector.pod:372
22512 #, no-wrap
22513 msgid ""
22514 " virt-inspector     Old Perl version.\n"
22515 " virt-inspector2    New C version.\n"
22516 "\n"
22517 msgstr ""
22518
22519 #. type: textblock
22520 #: ../inspector/virt-inspector.pod:382
22521 msgid ""
22522 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22523 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22524 msgstr ""
22525
22526 #. type: textblock
22527 #: ../inspector/virt-inspector.pod:399
22528 msgid "Matthew Booth L<mbooth@redhat.com>"
22529 msgstr ""
22530
22531 #. type: textblock
22532 #: ../java/examples/guestfs-java.pod:5
22533 msgid "guestfs-java - How to use libguestfs from Java"
22534 msgstr ""
22535
22536 #. type: verbatim
22537 #: ../java/examples/guestfs-java.pod:9
22538 #, no-wrap
22539 msgid ""
22540 " import com.redhat.et.libguestfs.*;\n"
22541 " \n"
22542 msgstr ""
22543
22544 #. type: verbatim
22545 #: ../java/examples/guestfs-java.pod:11
22546 #, no-wrap
22547 msgid ""
22548 " GuestFS g = new GuestFS ();\n"
22549 " g.add_drive_opts (\"disk.img\", null);\n"
22550 " g.launch ();\n"
22551 "\n"
22552 msgstr ""
22553
22554 #. type: textblock
22555 #: ../java/examples/guestfs-java.pod:17
22556 msgid ""
22557 "This manual page documents how to call libguestfs from the Java programming "
22558 "language.  This page just documents the differences from the C API and gives "
22559 "some examples.  If you are not familiar with using libguestfs, you also need "
22560 "to read L<guestfs(3)>."
22561 msgstr ""
22562
22563 #. type: =head2
22564 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22565 msgid "CLOSING THE HANDLE"
22566 msgstr ""
22567
22568 #. type: textblock
22569 #: ../java/examples/guestfs-java.pod:24
22570 msgid ""
22571 "The handle is closed when it is reaped by the garbage collector.  Because "
22572 "libguestfs handles include a lot of state, it is also possible to close (and "
22573 "hence free) them explicitly by calling the C<close> method."
22574 msgstr ""
22575
22576 #. type: =head2
22577 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22578 #: ../python/examples/guestfs-python.pod:21
22579 #: ../ruby/examples/guestfs-ruby.pod:22
22580 msgid "EXCEPTIONS"
22581 msgstr "ВИНЯТКИ"
22582
22583 #. type: textblock
22584 #: ../java/examples/guestfs-java.pod:31
22585 msgid ""
22586 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22587 "exception.  This has a single parameter which is the error message (a "
22588 "C<String>)."
22589 msgstr ""
22590
22591 #. type: textblock
22592 #: ../java/examples/guestfs-java.pod:35
22593 msgid "Calling any method on a closed handle raises the same exception."
22594 msgstr ""
22595
22596 #. type: textblock
22597 #: ../java/examples/guestfs-java.pod:47
22598 msgid ""
22599 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22600 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22601 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22602 msgstr ""
22603
22604 #. type: textblock
22605 #: ../ocaml/examples/guestfs-ocaml.pod:5
22606 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22607 msgstr ""
22608
22609 #. type: textblock
22610 #: ../ocaml/examples/guestfs-ocaml.pod:9
22611 msgid "Module style:"
22612 msgstr ""
22613
22614 #. type: verbatim
22615 #: ../ocaml/examples/guestfs-ocaml.pod:11
22616 #, no-wrap
22617 msgid ""
22618 " let g = Guestfs.create () in\n"
22619 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22620 " Guestfs.launch g;\n"
22621 "\n"
22622 msgstr ""
22623
22624 #. type: textblock
22625 #: ../ocaml/examples/guestfs-ocaml.pod:15
22626 msgid "Object-oriented style:"
22627 msgstr ""
22628
22629 #. type: verbatim
22630 #: ../ocaml/examples/guestfs-ocaml.pod:17
22631 #, no-wrap
22632 msgid ""
22633 " let g = new Guestfs.guestfs () in\n"
22634 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22635 " g#launch ();\n"
22636 "\n"
22637 msgstr ""
22638
22639 #. type: verbatim
22640 #: ../ocaml/examples/guestfs-ocaml.pod:21
22641 #, no-wrap
22642 msgid ""
22643 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22644 "or:\n"
22645 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22646 "\n"
22647 msgstr ""
22648
22649 #. type: textblock
22650 #: ../ocaml/examples/guestfs-ocaml.pod:27
22651 msgid ""
22652 "This manual page documents how to call libguestfs from the OCaml programming "
22653 "language.  This page just documents the differences from the C API and gives "
22654 "some examples.  If you are not familiar with using libguestfs, you also need "
22655 "to read L<guestfs(3)>."
22656 msgstr ""
22657
22658 #. type: =head2
22659 #: ../ocaml/examples/guestfs-ocaml.pod:32
22660 msgid "PROGRAMMING STYLES"
22661 msgstr ""
22662
22663 #. type: textblock
22664 #: ../ocaml/examples/guestfs-ocaml.pod:34
22665 msgid ""
22666 "There are two different programming styles supported by the OCaml bindings.  "
22667 "You can use a module style, with each C function mapped to an OCaml function:"
22668 msgstr ""
22669
22670 #. type: verbatim
22671 #: ../ocaml/examples/guestfs-ocaml.pod:38
22672 #, no-wrap
22673 msgid ""
22674 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22675 "\n"
22676 msgstr ""
22677
22678 #. type: textblock
22679 #: ../ocaml/examples/guestfs-ocaml.pod:40
22680 msgid "becomes:"
22681 msgstr ""
22682
22683 #. type: verbatim
22684 #: ../ocaml/examples/guestfs-ocaml.pod:42
22685 #, no-wrap
22686 msgid ""
22687 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22688 "\n"
22689 msgstr ""
22690
22691 #. type: textblock
22692 #: ../ocaml/examples/guestfs-ocaml.pod:44
22693 msgid ""
22694 "Alternately you can use an object-oriented style, calling methods on the "
22695 "class C<Guestfs.guestfs>:"
22696 msgstr ""
22697
22698 #. type: verbatim
22699 #: ../ocaml/examples/guestfs-ocaml.pod:47
22700 #, no-wrap
22701 msgid ""
22702 " method set_verbose : bool -> unit\n"
22703 "\n"
22704 msgstr ""
22705
22706 #. type: textblock
22707 #: ../ocaml/examples/guestfs-ocaml.pod:49
22708 msgid ""
22709 "The object-oriented style is usually briefer, and the minor performance "
22710 "penalty isn't noticable in the general overhead of performing libguestfs "
22711 "functions."
22712 msgstr ""
22713
22714 #. type: textblock
22715 #: ../ocaml/examples/guestfs-ocaml.pod:55
22716 msgid ""
22717 "The handle is closed when it is reaped by the garbage collector.  Because "
22718 "libguestfs handles include a lot of state, it is also possible to close (and "
22719 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22720 "method."
22721 msgstr ""
22722
22723 #. type: textblock
22724 #: ../ocaml/examples/guestfs-ocaml.pod:62
22725 msgid ""
22726 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22727 "exception.  This has a single parameter which is the error message (a "
22728 "string)."
22729 msgstr ""
22730
22731 #. type: textblock
22732 #: ../ocaml/examples/guestfs-ocaml.pod:66
22733 msgid ""
22734 "Calling any function/method on a closed handle raises C<Guestfs."
22735 "Handle_closed>.  The single parameter is the name of the function that you "
22736 "called."
22737 msgstr ""
22738
22739 #. type: textblock
22740 #: ../ocaml/examples/guestfs-ocaml.pod:80
22741 msgid ""
22742 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22743 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22744 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22745 msgstr ""
22746
22747 #. type: textblock
22748 #: ../perl/examples/guestfs-perl.pod:5
22749 msgid "guestfs-perl - How to use libguestfs from Perl"
22750 msgstr ""
22751
22752 #. type: verbatim
22753 #: ../perl/examples/guestfs-perl.pod:9
22754 #, no-wrap
22755 msgid ""
22756 " use Sys::Guestfs;\n"
22757 " \n"
22758 msgstr ""
22759
22760 #. type: verbatim
22761 #: ../perl/examples/guestfs-perl.pod:11
22762 #, no-wrap
22763 msgid ""
22764 " my $h = Sys::Guestfs->new ();\n"
22765 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22766 " $h->launch ();\n"
22767 " $h->mount_options ('', '/dev/sda1', '/');\n"
22768 " $h->touch ('/hello');\n"
22769 " $h->sync ();\n"
22770 "\n"
22771 msgstr ""
22772
22773 #. type: textblock
22774 #: ../perl/examples/guestfs-perl.pod:20
22775 msgid ""
22776 "This manual page documents how to call libguestfs from the Perl programming "
22777 "language.  This page just documents the differences from the C API and gives "
22778 "some examples.  If you are not familiar with using libguestfs, you also need "
22779 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22780 msgstr ""
22781
22782 #. type: =head2
22783 #: ../perl/examples/guestfs-perl.pod:26
22784 msgid "ERRORS"
22785 msgstr "ПОМИЛКИ"
22786
22787 #. type: textblock
22788 #: ../perl/examples/guestfs-perl.pod:28
22789 msgid ""
22790 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22791 ">)."
22792 msgstr ""
22793
22794 #. type: textblock
22795 #: ../perl/examples/guestfs-perl.pod:41
22796 msgid ""
22797 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22798 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22799 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22800 msgstr ""
22801
22802 #. type: textblock
22803 #: ../python/examples/guestfs-python.pod:5
22804 msgid "guestfs-python - How to use libguestfs from Python"
22805 msgstr ""
22806
22807 #. type: verbatim
22808 #: ../python/examples/guestfs-python.pod:9
22809 #, no-wrap
22810 msgid ""
22811 " import guestfs\n"
22812 " g = guestfs.GuestFS ()\n"
22813 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22814 " g.launch\n"
22815 "\n"
22816 msgstr ""
22817
22818 #. type: textblock
22819 #: ../python/examples/guestfs-python.pod:16
22820 msgid ""
22821 "This manual page documents how to call libguestfs from the Python "
22822 "programming language.  This page just documents the differences from the C "
22823 "API and gives some examples.  If you are not familiar with using libguestfs, "
22824 "you also need to read L<guestfs(3)>."
22825 msgstr ""
22826
22827 #. type: textblock
22828 #: ../python/examples/guestfs-python.pod:23
22829 msgid ""
22830 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22831 "single string argument which is the error message."
22832 msgstr ""
22833
22834 #. type: =head2
22835 #: ../python/examples/guestfs-python.pod:26
22836 msgid "MORE DOCUMENTATION"
22837 msgstr ""
22838
22839 #. type: textblock
22840 #: ../python/examples/guestfs-python.pod:28
22841 msgid "Type:"
22842 msgstr "Тип:"
22843
22844 #. type: verbatim
22845 #: ../python/examples/guestfs-python.pod:30
22846 #, no-wrap
22847 msgid ""
22848 " $ python\n"
22849 " >>> import guestfs\n"
22850 " >>> help (guestfs)\n"
22851 "\n"
22852 msgstr ""
22853
22854 #. type: textblock
22855 #: ../python/examples/guestfs-python.pod:44
22856 msgid ""
22857 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22858 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
22859 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22860 msgstr ""
22861
22862 #. type: textblock
22863 #: ../rescue/virt-rescue.pod:5
22864 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22865 msgstr ""
22866
22867 #. type: verbatim
22868 #: ../rescue/virt-rescue.pod:9
22869 #, no-wrap
22870 msgid ""
22871 " virt-rescue [--options] -d domname\n"
22872 "\n"
22873 msgstr ""
22874
22875 #. type: verbatim
22876 #: ../rescue/virt-rescue.pod:11
22877 #, no-wrap
22878 msgid ""
22879 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22880 "\n"
22881 msgstr ""
22882
22883 #. type: verbatim
22884 #: ../rescue/virt-rescue.pod:15
22885 #, no-wrap
22886 msgid ""
22887 " virt-rescue [--options] domname\n"
22888 "\n"
22889 msgstr ""
22890
22891 #. type: verbatim
22892 #: ../rescue/virt-rescue.pod:17
22893 #, no-wrap
22894 msgid ""
22895 " virt-rescue [--options] disk.img [disk.img ...]\n"
22896 "\n"
22897 msgstr ""
22898
22899 #. type: textblock
22900 #: ../rescue/virt-rescue.pod:21
22901 msgid ""
22902 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22903 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22904 "you from doing this, but doesn't catch all cases."
22905 msgstr ""
22906
22907 #. type: textblock
22908 #: ../rescue/virt-rescue.pod:25
22909 msgid ""
22910 "However if you use the I<--ro> (read only) option, then you can attach a "
22911 "shell to a live virtual machine.  The results might be strange or "
22912 "inconsistent at times but you won't get disk corruption."
22913 msgstr ""
22914
22915 #. type: textblock
22916 #: ../rescue/virt-rescue.pod:31
22917 msgid ""
22918 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22919 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22920 "recovery tools which you can use to examine or rescue a virtual machine or "
22921 "disk image."
22922 msgstr ""
22923
22924 #. type: textblock
22925 #: ../rescue/virt-rescue.pod:36
22926 msgid ""
22927 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22928 "on disk image(s):"
22929 msgstr ""
22930
22931 #. type: verbatim
22932 #: ../rescue/virt-rescue.pod:39
22933 #, no-wrap
22934 msgid ""
22935 " virt-rescue -d GuestName\n"
22936 "\n"
22937 msgstr ""
22938
22939 #. type: verbatim
22940 #: ../rescue/virt-rescue.pod:41
22941 #, no-wrap
22942 msgid ""
22943 " virt-rescue --ro -a /path/to/disk.img\n"
22944 "\n"
22945 msgstr ""
22946
22947 #. type: verbatim
22948 #: ../rescue/virt-rescue.pod:43
22949 #, no-wrap
22950 msgid ""
22951 " virt-rescue -a /dev/sdc\n"
22952 "\n"
22953 msgstr ""
22954
22955 #. type: textblock
22956 #: ../rescue/virt-rescue.pod:45
22957 msgid "For live VMs you I<must> use the --ro option."
22958 msgstr ""
22959
22960 #. type: textblock
22961 #: ../rescue/virt-rescue.pod:47
22962 msgid ""
22963 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22964 "in an interactive bash shell where you can use many ordinary Linux "
22965 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22966 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22967 "is an empty directory called C</sysroot> where you can mount filesystems."
22968 msgstr ""
22969
22970 #. type: textblock
22971 #: ../rescue/virt-rescue.pod:54
22972 msgid ""
22973 "In the example below, we list logical volumes, then choose one to mount "
22974 "under C</sysroot>:"
22975 msgstr ""
22976
22977 #. type: verbatim
22978 #: ../rescue/virt-rescue.pod:57
22979 #, no-wrap
22980 msgid ""
22981 " ><rescue> lvs\n"
22982 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22983 " lv_root vg_f11x64 -wi-a-   8.83G\n"
22984 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22985 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22986 " ><rescue> ls /sysroot\n"
22987 "\n"
22988 msgstr ""
22989
22990 #. type: textblock
22991 #: ../rescue/virt-rescue.pod:64
22992 msgid ""
22993 "If you don't know what filesystems are available on the virtual machine then "
22994 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22995 msgstr ""
22996
22997 #. type: textblock
22998 #: ../rescue/virt-rescue.pod:70
22999 msgid ""
23000 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23001 "virtual machine.  For example you can use it on a blank file if you want to "
23002 "partition that file (although we would recommend using L<guestfish(1)> "
23003 "instead as it is more suitable for this purpose).  You can even use virt-"
23004 "rescue on things like SD cards."
23005 msgstr ""
23006
23007 #. type: textblock
23008 #: ../rescue/virt-rescue.pod:76
23009 msgid ""
23010 "Virt-rescue does not require root.  You only need to run it as root if you "
23011 "need root to open the disk image."
23012 msgstr ""
23013
23014 #. type: textblock
23015 #: ../rescue/virt-rescue.pod:79
23016 msgid ""
23017 "This tool is just designed for quick interactive hacking on a virtual "
23018 "machine.  For more structured access to a virtual machine disk image, you "
23019 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23020 "make scripted changes to guests, use L<guestfish(1)>."
23021 msgstr ""
23022
23023 #. type: =item
23024 #: ../rescue/virt-rescue.pod:103
23025 msgid "B<--append kernelopts>"
23026 msgstr "B<--append параметри_ядра>"
23027
23028 #. type: textblock
23029 #: ../rescue/virt-rescue.pod:105
23030 msgid "Pass additional options to the rescue kernel."
23031 msgstr ""
23032
23033 #. type: verbatim
23034 #: ../rescue/virt-rescue.pod:135
23035 #, no-wrap
23036 msgid ""
23037 " virt-rescue --format=raw -a disk.img\n"
23038 "\n"
23039 msgstr ""
23040
23041 #. type: verbatim
23042 #: ../rescue/virt-rescue.pod:139
23043 #, no-wrap
23044 msgid ""
23045 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23046 "\n"
23047 msgstr ""
23048
23049 #. type: =item
23050 #: ../rescue/virt-rescue.pod:148
23051 msgid "B<-m MB>"
23052 msgstr "B<-m МБ>"
23053
23054 #. type: =item
23055 #: ../rescue/virt-rescue.pod:150
23056 msgid "B<--memsize MB>"
23057 msgstr "B<--memsize МБ>"
23058
23059 #. type: textblock
23060 #: ../rescue/virt-rescue.pod:152
23061 msgid ""
23062 "Change the amount of memory allocated to the rescue system.  The default is "
23063 "set by libguestfs and is small but adequate for running system tools.  The "
23064 "occasional program might need more memory.  The parameter is specified in "
23065 "megabytes."
23066 msgstr ""
23067
23068 #. type: =item
23069 #: ../rescue/virt-rescue.pod:157
23070 msgid "B<--network>"
23071 msgstr "B<--network>"
23072
23073 #. type: textblock
23074 #: ../rescue/virt-rescue.pod:159
23075 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23076 msgstr ""
23077
23078 #. type: textblock
23079 #: ../rescue/virt-rescue.pod:165
23080 msgid "Open the image read-only."
23081 msgstr ""
23082
23083 #. type: textblock
23084 #: ../rescue/virt-rescue.pod:175
23085 msgid ""
23086 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
23087 "SELINUX> before using this option."
23088 msgstr ""
23089
23090 #. type: =item
23091 #: ../rescue/virt-rescue.pod:178
23092 msgid "B<--smp> N"
23093 msgstr ""
23094
23095 #. type: textblock
23096 #: ../rescue/virt-rescue.pod:180
23097 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23098 msgstr ""
23099
23100 #. type: textblock
23101 #: ../rescue/virt-rescue.pod:198
23102 msgid ""
23103 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23104 "are done read-write."
23105 msgstr ""
23106
23107 #. type: textblock
23108 #: ../rescue/virt-rescue.pod:211
23109 msgid "Previous versions of virt-rescue allowed you to write either:"
23110 msgstr ""
23111
23112 #. type: verbatim
23113 #: ../rescue/virt-rescue.pod:213
23114 #, no-wrap
23115 msgid ""
23116 " virt-rescue disk.img [disk.img ...]\n"
23117 "\n"
23118 msgstr ""
23119
23120 #. type: verbatim
23121 #: ../rescue/virt-rescue.pod:217
23122 #, no-wrap
23123 msgid ""
23124 " virt-rescue guestname\n"
23125 "\n"
23126 msgstr ""
23127
23128 #. type: =head1
23129 #: ../rescue/virt-rescue.pod:225
23130 msgid "NETWORK"
23131 msgstr "МЕРЕЖА"
23132
23133 #. type: textblock
23134 #: ../rescue/virt-rescue.pod:227
23135 msgid ""
23136 "Adding the I<--network> option enables QEMU user networking in the rescue "
23137 "appliance.  There are some differences between user networking and ordinary "
23138 "networking:"
23139 msgstr ""
23140
23141 #. type: =item
23142 #: ../rescue/virt-rescue.pod:233
23143 msgid "ping does not work"
23144 msgstr ""
23145
23146 #. type: textblock
23147 #: ../rescue/virt-rescue.pod:235
23148 msgid ""
23149 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23150 "send the ping packets, and because virt-rescue must be able to run as non-"
23151 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
23152 "The ping command will appear to resolve addresses but will not be able to "
23153 "send or receive any packets.  This does not mean that the network is not "
23154 "working."
23155 msgstr ""
23156
23157 #. type: =item
23158 #: ../rescue/virt-rescue.pod:242
23159 msgid "cannot receive connections"
23160 msgstr ""
23161
23162 #. type: textblock
23163 #: ../rescue/virt-rescue.pod:244
23164 msgid "QEMU user networking cannot receive incoming connections."
23165 msgstr ""
23166
23167 #. type: =item
23168 #: ../rescue/virt-rescue.pod:246
23169 msgid "making TCP connections"
23170 msgstr ""
23171
23172 #. type: textblock
23173 #: ../rescue/virt-rescue.pod:248
23174 msgid ""
23175 "The virt-rescue appliance needs to be small and so does not include many "
23176 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23177 "make TCP connections from the shell using the magical C</dev/tcp/"
23178 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23179 msgstr ""
23180
23181 #. type: verbatim
23182 #: ../rescue/virt-rescue.pod:253
23183 #, no-wrap
23184 msgid ""
23185 " exec 3<>/dev/tcp/redhat.com/80\n"
23186 " echo \"GET /\" >&3\n"
23187 " cat <&3\n"
23188 "\n"
23189 msgstr ""
23190
23191 #. type: textblock
23192 #: ../rescue/virt-rescue.pod:257
23193 msgid "See L<bash(1)> for more details."
23194 msgstr ""
23195
23196 #. type: textblock
23197 #: ../rescue/virt-rescue.pod:263
23198 msgid ""
23199 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
23200 "ENVIRONMENT VARIABLES> for the complete list."
23201 msgstr ""
23202
23203 #. type: textblock
23204 #: ../rescue/virt-rescue.pod:290
23205 msgid ""
23206 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
23207 "libguestfs.org/>."
23208 msgstr ""
23209
23210 #. type: textblock
23211 #: ../resize/virt-resize.pod:5
23212 msgid "virt-resize - Resize a virtual machine disk"
23213 msgstr ""
23214
23215 #. type: verbatim
23216 #: ../resize/virt-resize.pod:9
23217 #, no-wrap
23218 msgid ""
23219 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23220 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23221 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23222 "\n"
23223 msgstr ""
23224
23225 #. type: textblock
23226 #: ../resize/virt-resize.pod:15
23227 msgid ""
23228 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23229 "larger or smaller overall, and resizing or deleting any partitions contained "
23230 "within."
23231 msgstr ""
23232
23233 #. type: textblock
23234 #: ../resize/virt-resize.pod:19
23235 msgid ""
23236 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23237 "not> be used on live virtual machines - for consistent results, shut the "
23238 "virtual machine down before resizing it."
23239 msgstr ""
23240
23241 #. type: textblock
23242 #: ../resize/virt-resize.pod:23
23243 msgid ""
23244 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23245 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23246 msgstr ""
23247
23248 #. type: =item
23249 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:576
23250 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
23251 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2675
23252 msgid "1."
23253 msgstr "1."
23254
23255 #. type: textblock
23256 #: ../resize/virt-resize.pod:33
23257 msgid ""
23258 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23259 "fill the extra 5GB of space."
23260 msgstr ""
23261
23262 #. type: verbatim
23263 #: ../resize/virt-resize.pod:36
23264 #, no-wrap
23265 msgid ""
23266 " virt-filesystems --long -h --all -a olddisk\n"
23267 " \n"
23268 msgstr ""
23269
23270 #. type: verbatim
23271 #: ../resize/virt-resize.pod:38
23272 #, no-wrap
23273 msgid ""
23274 " truncate -r olddisk newdisk\n"
23275 " truncate -s +5G newdisk\n"
23276 " \n"
23277 msgstr ""
23278
23279 #. type: verbatim
23280 #: ../resize/virt-resize.pod:41
23281 #, no-wrap
23282 msgid ""
23283 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23284 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23285 "\n"
23286 msgstr ""
23287
23288 #. type: =item
23289 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:583
23290 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
23291 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2700
23292 msgid "2."
23293 msgstr "2."
23294
23295 #. type: textblock
23296 #: ../resize/virt-resize.pod:46
23297 msgid ""
23298 "As above, but make the /boot partition 200MB bigger, while giving the "
23299 "remaining space to /dev/sda2:"
23300 msgstr ""
23301
23302 #. type: verbatim
23303 #: ../resize/virt-resize.pod:49
23304 #, no-wrap
23305 msgid ""
23306 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23307 "   olddisk newdisk\n"
23308 "\n"
23309 msgstr ""
23310
23311 #. type: =item
23312 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:589
23313 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
23314 #: ../src/guestfs.pod:1436
23315 msgid "3."
23316 msgstr "3."
23317
23318 #. type: textblock
23319 #: ../resize/virt-resize.pod:54
23320 msgid ""
23321 "As in the first example, but expand a logical volume as the final step.  "
23322 "This is what you would typically use for Linux guests that use LVM:"
23323 msgstr ""
23324
23325 #. type: verbatim
23326 #: ../resize/virt-resize.pod:58
23327 #, no-wrap
23328 msgid ""
23329 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23330 "   olddisk newdisk\n"
23331 "\n"
23332 msgstr ""
23333
23334 #. type: =item
23335 #: ../resize/virt-resize.pod:61
23336 msgid "4."
23337 msgstr ""
23338
23339 #. type: textblock
23340 #: ../resize/virt-resize.pod:63
23341 msgid ""
23342 "As in the first example, but the output format will be qcow2 instead of a "
23343 "raw disk:"
23344 msgstr ""
23345
23346 #. type: verbatim
23347 #: ../resize/virt-resize.pod:66
23348 #, no-wrap
23349 msgid ""
23350 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23351 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23352 "\n"
23353 msgstr ""
23354
23355 #. type: =head1
23356 #: ../resize/virt-resize.pod:71
23357 msgid "DETAILED USAGE"
23358 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
23359
23360 #. type: =head2
23361 #: ../resize/virt-resize.pod:73
23362 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23363 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
23364
23365 #. type: =item
23366 #: ../resize/virt-resize.pod:77
23367 msgid "1. Shut down the virtual machine"
23368 msgstr ""
23369
23370 #. type: =item
23371 #: ../resize/virt-resize.pod:79
23372 msgid "2. Locate input disk image"
23373 msgstr ""
23374
23375 #. type: textblock
23376 #: ../resize/virt-resize.pod:81
23377 msgid ""
23378 "Locate the input disk image (ie. the file or device on the host containing "
23379 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23380 "dumpxml> like this to find the disk image name:"
23381 msgstr ""
23382
23383 #. type: verbatim
23384 #: ../resize/virt-resize.pod:85
23385 #, no-wrap
23386 msgid ""
23387 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23388 " Found 1 nodes:\n"
23389 " -- NODE --\n"
23390 " <source dev=\"/dev/vg/lv_guest\" />\n"
23391 "\n"
23392 msgstr ""
23393
23394 #. type: =item
23395 #: ../resize/virt-resize.pod:90
23396 msgid "3. Look at current sizing"
23397 msgstr ""
23398
23399 #. type: textblock
23400 #: ../resize/virt-resize.pod:92
23401 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23402 msgstr ""
23403
23404 #. type: verbatim
23405 #: ../resize/virt-resize.pod:95
23406 #, no-wrap
23407 msgid ""
23408 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23409 " Name       Type       Size  Parent\n"
23410 " /dev/sda1  partition  101M  /dev/sda\n"
23411 " /dev/sda2  partition  7.9G  /dev/sda\n"
23412 " /dev/sda   device     8.0G  -\n"
23413 "\n"
23414 msgstr ""
23415
23416 #. type: textblock
23417 #: ../resize/virt-resize.pod:101
23418 msgid ""
23419 "(This example is a virtual machine with an 8 GB disk which we would like to "
23420 "expand up to 10 GB)."
23421 msgstr ""
23422
23423 #. type: =item
23424 #: ../resize/virt-resize.pod:104
23425 msgid "4. Create output disk"
23426 msgstr ""
23427
23428 #. type: textblock
23429 #: ../resize/virt-resize.pod:106
23430 msgid ""
23431 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23432 "to store the resized output disk."
23433 msgstr ""
23434
23435 #. type: textblock
23436 #: ../resize/virt-resize.pod:109
23437 msgid ""
23438 "To store the resized disk image in a file, create a file of a suitable size:"
23439 msgstr ""
23440
23441 #. type: verbatim
23442 #: ../resize/virt-resize.pod:112
23443 #, no-wrap
23444 msgid ""
23445 " # rm -f outdisk\n"
23446 " # truncate -s 10G outdisk\n"
23447 "\n"
23448 msgstr ""
23449
23450 #. type: textblock
23451 #: ../resize/virt-resize.pod:115
23452 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23453 msgstr ""
23454
23455 #. type: verbatim
23456 #: ../resize/virt-resize.pod:117
23457 #, no-wrap
23458 msgid ""
23459 " # lvcreate -L 10G -n lv_name vg_name\n"
23460 "\n"
23461 msgstr ""
23462
23463 #. type: textblock
23464 #: ../resize/virt-resize.pod:119
23465 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23466 msgstr ""
23467
23468 #. type: verbatim
23469 #: ../resize/virt-resize.pod:121
23470 #, no-wrap
23471 msgid ""
23472 " # virsh pool-list\n"
23473 " # virsh vol-create-as poolname newvol 10G\n"
23474 "\n"
23475 msgstr ""
23476
23477 #. type: =item
23478 #: ../resize/virt-resize.pod:124
23479 msgid "5. Resize"
23480 msgstr "5. Зміна розміру"
23481
23482 #. type: textblock
23483 #: ../resize/virt-resize.pod:126
23484 msgid ""
23485 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23486 "file) and the output disk.  The output disk is the one created in the "
23487 "previous step."
23488 msgstr ""
23489
23490 #. type: verbatim
23491 #: ../resize/virt-resize.pod:130
23492 #, no-wrap
23493 msgid ""
23494 " # virt-resize indisk outdisk\n"
23495 "\n"
23496 msgstr ""
23497
23498 #. type: textblock
23499 #: ../resize/virt-resize.pod:132
23500 msgid ""
23501 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23502 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23503 "larger, then an extra, empty partition is created at the end of the disk "
23504 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23505 "error."
23506 msgstr ""
23507
23508 #. type: textblock
23509 #: ../resize/virt-resize.pod:138
23510 msgid ""
23511 "More realistically you'd want to expand existing partitions in the disk "
23512 "image by passing extra options (for the full list see the L</OPTIONS> "
23513 "section below)."
23514 msgstr ""
23515
23516 #. type: textblock
23517 #: ../resize/virt-resize.pod:142
23518 msgid ""
23519 "L</--expand> is the most useful option.  It expands the named partition "
23520 "within the disk to fill any extra space:"
23521 msgstr ""
23522
23523 #. type: verbatim
23524 #: ../resize/virt-resize.pod:145
23525 #, no-wrap
23526 msgid ""
23527 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23528 "\n"
23529 msgstr ""
23530
23531 #. type: textblock
23532 #: ../resize/virt-resize.pod:147
23533 msgid ""
23534 "(In this case, an extra partition is I<not> created at the end of the disk, "
23535 "because there will be no unused space)."
23536 msgstr ""
23537
23538 #. type: textblock
23539 #: ../resize/virt-resize.pod:150
23540 msgid ""
23541 "L</--resize> is the other commonly used option.  The following would "
23542 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23543 "rest of the available space:"
23544 msgstr ""
23545
23546 #. type: verbatim
23547 #: ../resize/virt-resize.pod:154
23548 #, no-wrap
23549 msgid ""
23550 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23551 "     indisk outdisk\n"
23552 "\n"
23553 msgstr ""
23554
23555 #. type: textblock
23556 #: ../resize/virt-resize.pod:157
23557 msgid ""
23558 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23559 "if virt-resize knows how, it will resize the contents, the equivalent of "
23560 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23561 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23562 "filesystems, so you would have to online resize them after booting the guest."
23563 msgstr ""
23564
23565 #. type: textblock
23566 #: ../resize/virt-resize.pod:164
23567 msgid "Other options are covered below."
23568 msgstr ""
23569
23570 #. type: =item
23571 #: ../resize/virt-resize.pod:166
23572 msgid "6. Test"
23573 msgstr "6. Перевірка"
23574
23575 #. type: textblock
23576 #: ../resize/virt-resize.pod:168
23577 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23578 msgstr ""
23579
23580 #. type: textblock
23581 #: ../resize/virt-resize.pod:170
23582 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23583 msgstr ""
23584
23585 #. type: verbatim
23586 #: ../resize/virt-resize.pod:172
23587 #, no-wrap
23588 msgid ""
23589 " # virsh edit guestname\n"
23590 "\n"
23591 msgstr ""
23592
23593 #. type: textblock
23594 #: ../resize/virt-resize.pod:174
23595 msgid ""
23596 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23597 "html#elementsDisks>"
23598 msgstr ""
23599
23600 #. type: textblock
23601 #: ../resize/virt-resize.pod:177
23602 msgid "Then start up the domain with the new, resized disk:"
23603 msgstr ""
23604
23605 #. type: verbatim
23606 #: ../resize/virt-resize.pod:179
23607 #, no-wrap
23608 msgid ""
23609 " # virsh start guestname\n"
23610 "\n"
23611 msgstr ""
23612
23613 #. type: textblock
23614 #: ../resize/virt-resize.pod:181
23615 msgid ""
23616 "and check that it still works.  See also the L</NOTES> section below for "
23617 "additional information."
23618 msgstr ""
23619
23620 #. type: =item
23621 #: ../resize/virt-resize.pod:184
23622 msgid "7. Resize LVs etc inside the guest"
23623 msgstr ""
23624
23625 #. type: textblock
23626 #: ../resize/virt-resize.pod:186
23627 msgid "(This can also be done offline using L<guestfish(1)>)"
23628 msgstr ""
23629
23630 #. type: textblock
23631 #: ../resize/virt-resize.pod:188
23632 msgid ""
23633 "Once the guest has booted you should see the new space available, at least "
23634 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23635 "may need to resize LVs inside PVs, and also resize filesystem types that "
23636 "virt-resize does not know how to expand."
23637 msgstr ""
23638
23639 #. type: =head2
23640 #: ../resize/virt-resize.pod:195
23641 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23642 msgstr ""
23643
23644 #. type: textblock
23645 #: ../resize/virt-resize.pod:197
23646 msgid ""
23647 "Shrinking is somewhat more complex than expanding, and only an overview is "
23648 "given here."
23649 msgstr ""
23650
23651 #. type: textblock
23652 #: ../resize/virt-resize.pod:200
23653 msgid ""
23654 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23655 "filesystems).  The user has to shrink content before passing the disk image "
23656 "to virt-resize, and virt-resize will check that the content has been shrunk "
23657 "properly."
23658 msgstr ""
23659
23660 #. type: textblock
23661 #: ../resize/virt-resize.pod:205
23662 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23663 msgstr ""
23664
23665 #. type: textblock
23666 #: ../resize/virt-resize.pod:207
23667 msgid ""
23668 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23669 "steps 3 and 4 above to allocate a new disk image."
23670 msgstr ""
23671
23672 #. type: textblock
23673 #: ../resize/virt-resize.pod:210
23674 msgid ""
23675 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23676 msgstr ""
23677
23678 #. type: =head2
23679 #: ../resize/virt-resize.pod:213
23680 msgid "IGNORING OR DELETING PARTITIONS"
23681 msgstr ""
23682
23683 #. type: textblock
23684 #: ../resize/virt-resize.pod:215
23685 msgid ""
23686 "virt-resize also gives a convenient way to ignore or delete partitions when "
23687 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23688 "up the copy where you don't care about the existing contents of a "
23689 "partition.  Deleting a partition removes it completely, but note that it "
23690 "also renumbers any partitions after the one which is deleted, which can "
23691 "leave some guests unbootable."
23692 msgstr ""
23693
23694 #. type: =head2
23695 #: ../resize/virt-resize.pod:222
23696 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23697 msgstr ""
23698
23699 #. type: textblock
23700 #: ../resize/virt-resize.pod:224
23701 msgid ""
23702 "If the input disk is in qcow2 format, then you may prefer that the output is "
23703 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23704 "the fly.  The output format is simply determined by the format of the empty "
23705 "output container that you provide.  Thus to create qcow2 output, use:"
23706 msgstr ""
23707
23708 #. type: verbatim
23709 #: ../resize/virt-resize.pod:230
23710 #, no-wrap
23711 msgid ""
23712 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23713 "\n"
23714 msgstr ""
23715
23716 #. type: textblock
23717 #: ../resize/virt-resize.pod:232
23718 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23719 msgstr ""
23720
23721 #. type: textblock
23722 #: ../resize/virt-resize.pod:234
23723 msgid "Similarly, to get non-sparse raw output use:"
23724 msgstr ""
23725
23726 #. type: verbatim
23727 #: ../resize/virt-resize.pod:236
23728 #, no-wrap
23729 msgid ""
23730 " fallocate -l size outdisk\n"
23731 "\n"
23732 msgstr ""
23733
23734 #. type: textblock
23735 #: ../resize/virt-resize.pod:238
23736 msgid ""
23737 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23738 "dev/zero of=outdisk bs=1M count=..>)"
23739 msgstr ""
23740
23741 #. type: textblock
23742 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
23743 msgid "Display help."
23744 msgstr ""
23745
23746 #. type: =item
23747 #: ../resize/virt-resize.pod:249
23748 #, fuzzy
23749 #| msgid "B<--ignore part>"
23750 msgid "B<--align-first auto>"
23751 msgstr "B<--ignore розділ>"
23752
23753 #. type: =item
23754 #: ../resize/virt-resize.pod:251
23755 #, fuzzy
23756 #| msgid "B<--listen>"
23757 msgid "B<--align-first never>"
23758 msgstr "B<--listen>"
23759
23760 #. type: =item
23761 #: ../resize/virt-resize.pod:253
23762 msgid "B<--align-first always>"
23763 msgstr ""
23764
23765 #. type: textblock
23766 #: ../resize/virt-resize.pod:255
23767 msgid ""
23768 "Align the first partition for improved performance (see also the I<--"
23769 "alignment> option)."
23770 msgstr ""
23771
23772 #. type: textblock
23773 #: ../resize/virt-resize.pod:258
23774 msgid ""
23775 "The default is I<--align-first auto> which only aligns the first partition "
23776 "if it is safe to do so.  That is, only when we know how to fix the "
23777 "bootloader automatically, and at the moment that can only be done for "
23778 "Windows guests."
23779 msgstr ""
23780
23781 #. type: textblock
23782 #: ../resize/virt-resize.pod:263
23783 msgid ""
23784 "I<--align-first never> means we never move the first partition.  This is the "
23785 "safest option.  Try this if the guest does not boot after resizing."
23786 msgstr ""
23787
23788 #. type: textblock
23789 #: ../resize/virt-resize.pod:267
23790 msgid ""
23791 "I<--align-first always> means we always align the first partition (if it "
23792 "needs to be aligned).  For some guests this will break the bootloader, "
23793 "making the guest unbootable."
23794 msgstr ""
23795
23796 #. type: =item
23797 #: ../resize/virt-resize.pod:271
23798 #, fuzzy
23799 #| msgid "B<--time-t>"
23800 msgid "B<--alignment N>"
23801 msgstr "B<--time-t>"
23802
23803 #. type: textblock
23804 #: ../resize/virt-resize.pod:273
23805 msgid ""
23806 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
23807 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23808 msgstr ""
23809
23810 #. type: textblock
23811 #: ../resize/virt-resize.pod:277
23812 msgid ""
23813 "Assuming 512 byte sector size inside the guest, here are some suitable "
23814 "values for this:"
23815 msgstr ""
23816
23817 #. type: =item
23818 #: ../resize/virt-resize.pod:282
23819 msgid "I<--alignment 1> (512 bytes)"
23820 msgstr ""
23821
23822 #. type: textblock
23823 #: ../resize/virt-resize.pod:284
23824 msgid ""
23825 "The partitions would be packed together as closely as possible, but would be "
23826 "completely unaligned.  In some cases this can cause very poor performance.  "
23827 "See L<virt-alignment-scan(1)> for further details."
23828 msgstr ""
23829
23830 #. type: =item
23831 #: ../resize/virt-resize.pod:288
23832 msgid "I<--alignment 8> (4K)"
23833 msgstr ""
23834
23835 #. type: textblock
23836 #: ../resize/virt-resize.pod:290
23837 msgid ""
23838 "This would be the minimum acceptable alignment for reasonable performance on "
23839 "modern hosts."
23840 msgstr ""
23841
23842 #. type: =item
23843 #: ../resize/virt-resize.pod:293
23844 msgid "I<--alignment 128> (64K)"
23845 msgstr ""
23846
23847 #. type: textblock
23848 #: ../resize/virt-resize.pod:295
23849 msgid ""
23850 "This alignment provides good performance when the host is using high end "
23851 "network storage."
23852 msgstr ""
23853
23854 #. type: =item
23855 #: ../resize/virt-resize.pod:298
23856 msgid "I<--alignment 2048> (1M)"
23857 msgstr ""
23858
23859 #. type: textblock
23860 #: ../resize/virt-resize.pod:300
23861 msgid ""
23862 "This is the standard alignment used by all newly installed guests since "
23863 "around 2008."
23864 msgstr ""
23865
23866 #. type: =item
23867 #: ../resize/virt-resize.pod:305
23868 msgid "B<-d>"
23869 msgstr "B<-d>"
23870
23871 #. type: =item
23872 #: ../resize/virt-resize.pod:307 ../tools/virt-make-fs.pl:177
23873 #: ../tools/virt-win-reg.pl:120
23874 msgid "B<--debug>"
23875 msgstr "B<--debug>"
23876
23877 #. type: textblock
23878 #: ../resize/virt-resize.pod:309 ../tools/virt-win-reg.pl:122
23879 msgid "Enable debugging messages."
23880 msgstr ""
23881
23882 #. type: =item
23883 #: ../resize/virt-resize.pod:311
23884 msgid "B<--delete part>"
23885 msgstr "B<--delete розділ>"
23886
23887 #. type: textblock
23888 #: ../resize/virt-resize.pod:313
23889 msgid ""
23890 "Delete the named partition.  It would be more accurate to describe this as "
23891 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23892 "the original disk image is left intact."
23893 msgstr ""
23894
23895 #. type: textblock
23896 #: ../resize/virt-resize.pod:317
23897 msgid ""
23898 "Note that when you delete a partition, then anything contained in the "
23899 "partition is also deleted.  Furthermore, this causes any partitions that "
23900 "come after to be I<renumbered>, which can easily make your guest unbootable."
23901 msgstr ""
23902
23903 #. type: textblock
23904 #: ../resize/virt-resize.pod:322 ../resize/virt-resize.pod:383
23905 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:145
23906 msgid "You can give this option multiple times."
23907 msgstr ""
23908
23909 #. type: =item
23910 #: ../resize/virt-resize.pod:324
23911 msgid "B<--expand part>"
23912 msgstr "B<--expand розділ>"
23913
23914 #. type: textblock
23915 #: ../resize/virt-resize.pod:326
23916 msgid ""
23917 "Expand the named partition so it uses up all extra space (space left over "
23918 "after any other resize changes that you request have been done)."
23919 msgstr ""
23920
23921 #. type: textblock
23922 #: ../resize/virt-resize.pod:329
23923 msgid ""
23924 "If virt-resize knows how, it will expand the direct content of the "
23925 "partition.  For example, if the partition is an LVM PV, it will expand the "
23926 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
23927 "content it doesn't know about alone."
23928 msgstr ""
23929
23930 #. type: textblock
23931 #: ../resize/virt-resize.pod:334
23932 msgid "Currently virt-resize can resize:"
23933 msgstr ""
23934
23935 #. type: textblock
23936 #: ../resize/virt-resize.pod:340
23937 msgid "ext2, ext3 and ext4 filesystems."
23938 msgstr ""
23939
23940 #. type: textblock
23941 #: ../resize/virt-resize.pod:344
23942 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23943 msgstr ""
23944
23945 #. type: textblock
23946 #: ../resize/virt-resize.pod:346
23947 msgid ""
23948 "The filesystem must have been shut down consistently last time it was used.  "
23949 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23950 "consistency check, so at the first boot after resizing Windows will check "
23951 "the disk."
23952 msgstr ""
23953
23954 #. type: textblock
23955 #: ../resize/virt-resize.pod:353
23956 msgid ""
23957 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
23958 "inside the PV, but see the I<--LV-expand> option.  The user could also "
23959 "resize LVs as desired after boot."
23960 msgstr ""
23961
23962 #. type: textblock
23963 #: ../resize/virt-resize.pod:359
23964 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23965 msgstr ""
23966
23967 #. type: textblock
23968 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:538
23969 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23970 msgstr ""
23971
23972 #. type: =item
23973 #: ../resize/virt-resize.pod:365 ../sparsify/virt-sparsify.pod:125
23974 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23975 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23976 msgid "B<--format> raw"
23977 msgstr "B<--format> raw"
23978
23979 #. type: textblock
23980 #: ../resize/virt-resize.pod:367 ../sparsify/virt-sparsify.pod:129
23981 msgid ""
23982 "Specify the format of the input disk image.  If this flag is not given then "
23983 "it is auto-detected from the image itself."
23984 msgstr ""
23985
23986 #. type: textblock
23987 #: ../resize/virt-resize.pod:373
23988 msgid ""
23989 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
23990 "AND NON-SPARSE RAW FORMATS>."
23991 msgstr ""
23992
23993 #. type: =item
23994 #: ../resize/virt-resize.pod:376
23995 msgid "B<--ignore part>"
23996 msgstr "B<--ignore розділ>"
23997
23998 #. type: textblock
23999 #: ../resize/virt-resize.pod:378
24000 msgid ""
24001 "Ignore the named partition.  Effectively this means the partition is "
24002 "allocated on the destination disk, but the content is not copied across from "
24003 "the source disk.  The content of the partition will be blank (all zero "
24004 "bytes)."
24005 msgstr ""
24006
24007 #. type: =item
24008 #: ../resize/virt-resize.pod:385
24009 msgid "B<--LV-expand logvol>"
24010 msgstr "B<--LV-expand логічний_том>"
24011
24012 #. type: textblock
24013 #: ../resize/virt-resize.pod:387
24014 msgid ""
24015 "This takes the logical volume and, as a final step, expands it to fill all "
24016 "the space available in its volume group.  A typical usage, assuming a Linux "
24017 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24018 "lv_root> would be:"
24019 msgstr ""
24020
24021 #. type: verbatim
24022 #: ../resize/virt-resize.pod:392
24023 #, no-wrap
24024 msgid ""
24025 " virt-resize indisk outdisk \\\n"
24026 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24027 "\n"
24028 msgstr ""
24029
24030 #. type: textblock
24031 #: ../resize/virt-resize.pod:395
24032 msgid ""
24033 "This would first expand the partition (and PV), and then expand the root "
24034 "device to fill the extra space in the PV."
24035 msgstr ""
24036
24037 #. type: textblock
24038 #: ../resize/virt-resize.pod:398
24039 msgid ""
24040 "The contents of the LV are also resized if virt-resize knows how to do "
24041 "that.  You can stop virt-resize from trying to expand the content by using "
24042 "the option I<--no-expand-content>."
24043 msgstr ""
24044
24045 #. type: textblock
24046 #: ../resize/virt-resize.pod:402
24047 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24048 msgstr ""
24049
24050 #. type: textblock
24051 #: ../resize/virt-resize.pod:404
24052 msgid ""
24053 "You can give this option multiple times, I<but> it doesn't make sense to do "
24054 "this unless the logical volumes you specify are all in different volume "
24055 "groups."
24056 msgstr ""
24057
24058 #. type: =item
24059 #: ../resize/virt-resize.pod:408 ../sparsify/virt-sparsify.pod:147
24060 msgid "B<--machine-readable>"
24061 msgstr ""
24062
24063 #. type: textblock
24064 #: ../resize/virt-resize.pod:410 ../sparsify/virt-sparsify.pod:149
24065 msgid ""
24066 "This option is used to make the output more machine friendly when being "
24067 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24068 msgstr ""
24069
24070 #. type: =item
24071 #: ../resize/virt-resize.pod:416
24072 msgid "B<--dryrun>"
24073 msgstr "B<--dryrun>"
24074
24075 #. type: textblock
24076 #: ../resize/virt-resize.pod:418
24077 msgid "Print a summary of what would be done, but don't do anything."
24078 msgstr ""
24079
24080 #. type: =item
24081 #: ../resize/virt-resize.pod:420
24082 msgid "B<--no-copy-boot-loader>"
24083 msgstr "B<--no-copy-boot-loader>"
24084
24085 #. type: textblock
24086 #: ../resize/virt-resize.pod:422
24087 msgid ""
24088 "By default, virt-resize copies over some sectors at the start of the disk "
24089 "(up to the beginning of the first partition).  Commonly these sectors "
24090 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24091 "in order for the guest to boot correctly."
24092 msgstr ""
24093
24094 #. type: textblock
24095 #: ../resize/virt-resize.pod:427
24096 msgid ""
24097 "If you specify this flag, then this initial copy is not done.  You may need "
24098 "to reinstall the boot loader in this case."
24099 msgstr ""
24100
24101 #. type: =item
24102 #: ../resize/virt-resize.pod:430
24103 msgid "B<--no-extra-partition>"
24104 msgstr "B<--no-extra-partition>"
24105
24106 #. type: textblock
24107 #: ../resize/virt-resize.pod:432
24108 msgid ""
24109 "By default, virt-resize creates an extra partition if there is any extra, "
24110 "unused space after all resizing has happened.  Use this option to prevent "
24111 "the extra partition from being created.  If you do this then the extra space "
24112 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24113 "tool in the guest."
24114 msgstr ""
24115
24116 #. type: textblock
24117 #: ../resize/virt-resize.pod:438
24118 msgid ""
24119 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24120 "will be created."
24121 msgstr ""
24122
24123 #. type: =item
24124 #: ../resize/virt-resize.pod:441
24125 msgid "B<--no-expand-content>"
24126 msgstr "B<--no-expand-content>"
24127
24128 #. type: textblock
24129 #: ../resize/virt-resize.pod:443
24130 msgid ""
24131 "By default, virt-resize will try to expand the direct contents of "
24132 "partitions, if it knows how (see I<--expand> option above)."
24133 msgstr ""
24134
24135 #. type: textblock
24136 #: ../resize/virt-resize.pod:446
24137 msgid ""
24138 "If you give the I<--no-expand-content> option then virt-resize will not "
24139 "attempt this."
24140 msgstr ""
24141
24142 #. type: =item
24143 #: ../resize/virt-resize.pod:449
24144 msgid "B<--ntfsresize-force>"
24145 msgstr "B<--ntfsresize-force>"
24146
24147 #. type: textblock
24148 #: ../resize/virt-resize.pod:451
24149 msgid ""
24150 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24151 "the NTFS disk is marked as needing a consistency check.  You have to use "
24152 "this option if you want to resize a Windows guest multiple times without "
24153 "booting into Windows between each resize."
24154 msgstr ""
24155
24156 #. type: =item
24157 #: ../resize/virt-resize.pod:457
24158 msgid "B<--output-format> raw"
24159 msgstr "B<--output-format> raw"
24160
24161 #. type: textblock
24162 #: ../resize/virt-resize.pod:459
24163 msgid ""
24164 "Specify the format of the output disk image.  If this flag is not given then "
24165 "it is auto-detected from the image itself."
24166 msgstr ""
24167
24168 #. type: textblock
24169 #: ../resize/virt-resize.pod:465
24170 msgid ""
24171 "Note that this option I<does not create> the output format.  This option "
24172 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24173 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
24174 "SPARSE RAW FORMATS>."
24175 msgstr ""
24176
24177 #. type: textblock
24178 #: ../resize/virt-resize.pod:474
24179 msgid "Don't print the summary."
24180 msgstr ""
24181
24182 #. type: =item
24183 #: ../resize/virt-resize.pod:476
24184 msgid "B<--resize part=size>"
24185 msgstr "B<--resize розділ=розмір>"
24186
24187 #. type: textblock
24188 #: ../resize/virt-resize.pod:478
24189 msgid ""
24190 "Resize the named partition (expanding or shrinking it) so that it has the "
24191 "given size."
24192 msgstr ""
24193
24194 #. type: textblock
24195 #: ../resize/virt-resize.pod:481
24196 msgid ""
24197 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24198 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24199 "size; or as a relative number or percentage.  For example:"
24200 msgstr ""
24201
24202 #. type: verbatim
24203 #: ../resize/virt-resize.pod:487
24204 #, no-wrap
24205 msgid ""
24206 " --resize /dev/sda2=10G\n"
24207 "\n"
24208 msgstr ""
24209
24210 #. type: verbatim
24211 #: ../resize/virt-resize.pod:489
24212 #, no-wrap
24213 msgid ""
24214 " --resize /dev/sda4=90%\n"
24215 "\n"
24216 msgstr ""
24217
24218 #. type: verbatim
24219 #: ../resize/virt-resize.pod:491
24220 #, no-wrap
24221 msgid ""
24222 " --resize /dev/sda2=+1G\n"
24223 "\n"
24224 msgstr ""
24225
24226 #. type: verbatim
24227 #: ../resize/virt-resize.pod:493
24228 #, no-wrap
24229 msgid ""
24230 " --resize /dev/sda2=-200M\n"
24231 "\n"
24232 msgstr ""
24233
24234 #. type: verbatim
24235 #: ../resize/virt-resize.pod:495
24236 #, no-wrap
24237 msgid ""
24238 " --resize /dev/sda1=+128K\n"
24239 "\n"
24240 msgstr ""
24241
24242 #. type: verbatim
24243 #: ../resize/virt-resize.pod:497
24244 #, no-wrap
24245 msgid ""
24246 " --resize /dev/sda1=+10%\n"
24247 "\n"
24248 msgstr ""
24249
24250 #. type: verbatim
24251 #: ../resize/virt-resize.pod:499
24252 #, no-wrap
24253 msgid ""
24254 " --resize /dev/sda1=-10%\n"
24255 "\n"
24256 msgstr ""
24257
24258 #. type: textblock
24259 #: ../resize/virt-resize.pod:501
24260 msgid ""
24261 "You can increase the size of any partition.  Virt-resize will expand the "
24262 "direct content of the partition if it knows how (see I<--expand> below)."
24263 msgstr ""
24264
24265 #. type: textblock
24266 #: ../resize/virt-resize.pod:505
24267 msgid ""
24268 "You can only I<decrease> the size of partitions that contain filesystems or "
24269 "PVs which have already been shrunk.  Virt-resize will check this has been "
24270 "done before proceeding, or else will print an error (see also I<--resize-"
24271 "force>)."
24272 msgstr ""
24273
24274 #. type: =item
24275 #: ../resize/virt-resize.pod:512
24276 msgid "B<--resize-force part=size>"
24277 msgstr "B<--resize-force розділ=розмір>"
24278
24279 #. type: textblock
24280 #: ../resize/virt-resize.pod:514
24281 msgid ""
24282 "This is the same as I<--resize> except that it will let you decrease the "
24283 "size of any partition.  Generally this means you will lose any data which "
24284 "was at the end of the partition you shrink, but you may not care about that "
24285 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24286 "as a swap partition)."
24287 msgstr ""
24288
24289 #. type: textblock
24290 #: ../resize/virt-resize.pod:520
24291 msgid "See also the I<--ignore> option."
24292 msgstr ""
24293
24294 #. type: =item
24295 #: ../resize/virt-resize.pod:522
24296 msgid "B<--shrink part>"
24297 msgstr "B<--shrink розділ>"
24298
24299 #. type: textblock
24300 #: ../resize/virt-resize.pod:524
24301 msgid ""
24302 "Shrink the named partition until the overall disk image fits in the "
24303 "destination.  The named partition B<must> contain a filesystem or PV which "
24304 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24305 "online tools).  Virt-resize will check this and give an error if it has not "
24306 "been done."
24307 msgstr ""
24308
24309 #. type: textblock
24310 #: ../resize/virt-resize.pod:530
24311 msgid ""
24312 "The amount by which the overall disk must be shrunk (after carrying out all "
24313 "other operations requested by the user) is called the \"deficit\".  For "
24314 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24315 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24316 "would give an error unless the user specified a partition to shrink and that "
24317 "partition had more than a gigabyte of free space."
24318 msgstr ""
24319
24320 #. type: =head1
24321 #: ../resize/virt-resize.pod:548 ../sparsify/virt-sparsify.pod:177
24322 msgid "MACHINE READABLE OUTPUT"
24323 msgstr ""
24324
24325 #. type: textblock
24326 #: ../resize/virt-resize.pod:550
24327 msgid ""
24328 "The I<--machine-readable> option can be used to make the output more machine "
24329 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24330 "etc."
24331 msgstr ""
24332
24333 #. type: textblock
24334 #: ../resize/virt-resize.pod:554 ../sparsify/virt-sparsify.pod:183
24335 msgid "There are two ways to use this option."
24336 msgstr ""
24337
24338 #. type: textblock
24339 #: ../resize/virt-resize.pod:556
24340 msgid ""
24341 "Firstly use the option on its own to query the capabilities of the virt-"
24342 "resize binary.  Typical output looks like this:"
24343 msgstr ""
24344
24345 #. type: verbatim
24346 #: ../resize/virt-resize.pod:559
24347 #, no-wrap
24348 msgid ""
24349 " $ virt-resize --machine-readable\n"
24350 " virt-resize\n"
24351 " ntfsresize-force\n"
24352 " 32bitok\n"
24353 " ntfs\n"
24354 " btrfs\n"
24355 "\n"
24356 msgstr ""
24357
24358 #. type: textblock
24359 #: ../resize/virt-resize.pod:566 ../sparsify/virt-sparsify.pod:193
24360 msgid ""
24361 "A list of features is printed, one per line, and the program exits with "
24362 "status 0."
24363 msgstr ""
24364
24365 #. type: textblock
24366 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:196
24367 msgid ""
24368 "Secondly use the option in conjunction with other options to make the "
24369 "regular program output more machine friendly."
24370 msgstr ""
24371
24372 #. type: textblock
24373 #: ../resize/virt-resize.pod:572 ../sparsify/virt-sparsify.pod:199
24374 msgid "At the moment this means:"
24375 msgstr ""
24376
24377 #. type: textblock
24378 #: ../resize/virt-resize.pod:578 ../sparsify/virt-sparsify.pod:205
24379 msgid ""
24380 "Progress bar messages can be parsed from stdout by looking for this regular "
24381 "expression:"
24382 msgstr ""
24383
24384 #. type: verbatim
24385 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:208
24386 #, no-wrap
24387 msgid ""
24388 " ^[0-9]+/[0-9]+$\n"
24389 "\n"
24390 msgstr ""
24391
24392 #. type: textblock
24393 #: ../resize/virt-resize.pod:585 ../sparsify/virt-sparsify.pod:212
24394 msgid ""
24395 "The calling program should treat messages sent to stdout (except for "
24396 "progress bar messages) as status messages.  They can be logged and/or "
24397 "displayed to the user."
24398 msgstr ""
24399
24400 #. type: textblock
24401 #: ../resize/virt-resize.pod:591
24402 msgid ""
24403 "The calling program should treat messages sent to stderr as error messages.  "
24404 "In addition, virt-resize exits with a non-zero status code if there was a "
24405 "fatal error."
24406 msgstr ""
24407
24408 #. type: textblock
24409 #: ../resize/virt-resize.pod:597
24410 msgid ""
24411 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24412 "readable> option and will return an error."
24413 msgstr ""
24414
24415 #. type: =head2
24416 #: ../resize/virt-resize.pod:602
24417 msgid "\"Partition 1 does not end on cylinder boundary.\""
24418 msgstr ""
24419
24420 #. type: textblock
24421 #: ../resize/virt-resize.pod:604
24422 msgid ""
24423 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24424 "alignment> parameter).  Usually this means the partitions will not be "
24425 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24426 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24427 "drives.  Alignment of partitions to cylinders is not required by any modern "
24428 "operating system."
24429 msgstr ""
24430
24431 #. type: =head2
24432 #: ../resize/virt-resize.pod:611
24433 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24434 msgstr ""
24435
24436 #. type: textblock
24437 #: ../resize/virt-resize.pod:613
24438 msgid ""
24439 "In Windows Vista and later versions, Microsoft switched to using a separate "
24440 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24441 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24442 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24443 "the second partition (ie. C: drive)  should work."
24444 msgstr ""
24445
24446 #. type: textblock
24447 #: ../resize/virt-resize.pod:620
24448 msgid ""
24449 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24450 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24451 "it find errors) is nothing to worry about."
24452 msgstr ""
24453
24454 #. type: =head2
24455 #: ../resize/virt-resize.pod:624
24456 msgid "GUEST BOOT STUCK AT \"GRUB\""
24457 msgstr ""
24458
24459 #. type: textblock
24460 #: ../resize/virt-resize.pod:626
24461 msgid ""
24462 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24463 "printing C<GRUB> on the console, try reinstalling grub."
24464 msgstr ""
24465
24466 #. type: verbatim
24467 #: ../resize/virt-resize.pod:629
24468 #, no-wrap
24469 msgid ""
24470 " guestfish -i -a newdisk\n"
24471 " ><fs> cat /boot/grub/device.map\n"
24472 " # check the contents of this file are sensible or\n"
24473 " # edit the file if necessary\n"
24474 " ><fs> grub-install / /dev/vda\n"
24475 " ><fs> exit\n"
24476 "\n"
24477 msgstr ""
24478
24479 #. type: textblock
24480 #: ../resize/virt-resize.pod:636
24481 msgid ""
24482 "For more flexible guest reconfiguration, including if you need to specify "
24483 "other parameters to grub-install, use L<virt-rescue(1)>."
24484 msgstr ""
24485
24486 #. type: =head1
24487 #: ../resize/virt-resize.pod:639
24488 msgid "ALTERNATIVE TOOLS"
24489 msgstr ""
24490
24491 #. type: textblock
24492 #: ../resize/virt-resize.pod:641
24493 msgid ""
24494 "There are several proprietary tools for resizing partitions.  We won't "
24495 "mention any here."
24496 msgstr ""
24497
24498 #. type: textblock
24499 #: ../resize/virt-resize.pod:644
24500 msgid ""
24501 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24502 "operations on disk images.  They can resize and move partitions, but I don't "
24503 "think they can do anything with the contents, and they certainly don't "
24504 "understand LVM."
24505 msgstr ""
24506
24507 #. type: textblock
24508 #: ../resize/virt-resize.pod:649
24509 msgid ""
24510 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24511 "but at a much lower level.  You will probably end up hand-calculating sector "
24512 "offsets, which is something that virt-resize was designed to avoid.  If you "
24513 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24514 "I<--debug> flag."
24515 msgstr ""
24516
24517 #. type: textblock
24518 #: ../resize/virt-resize.pod:669
24519 msgid ""
24520 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24521 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24522 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24523 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24524 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24525 msgstr ""
24526
24527 #. type: textblock
24528 #: ../ruby/examples/guestfs-ruby.pod:5
24529 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24530 msgstr ""
24531
24532 #. type: verbatim
24533 #: ../ruby/examples/guestfs-ruby.pod:9
24534 #, no-wrap
24535 msgid ""
24536 " require 'guestfs'\n"
24537 " g = Guestfs::Guestfs.new()\n"
24538 " g.add_drive_opts(\"disk.img\",\n"
24539 "                  :readonly => 1, :format => \"raw\")\n"
24540 " g.launch()\n"
24541 "\n"
24542 msgstr ""
24543
24544 #. type: textblock
24545 #: ../ruby/examples/guestfs-ruby.pod:17
24546 msgid ""
24547 "This manual page documents how to call libguestfs from the Ruby programming "
24548 "language.  This page just documents the differences from the C API and gives "
24549 "some examples.  If you are not familiar with using libguestfs, you also need "
24550 "to read L<guestfs(3)>."
24551 msgstr ""
24552
24553 #. type: textblock
24554 #: ../ruby/examples/guestfs-ruby.pod:24
24555 msgid ""
24556 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24557 "This has a single parameter which is the error message (a string)."
24558 msgstr ""
24559
24560 #. type: textblock
24561 #: ../ruby/examples/guestfs-ruby.pod:38
24562 msgid ""
24563 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24564 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24565 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24566 msgstr ""
24567
24568 #. type: textblock
24569 #: ../sparsify/virt-sparsify.pod:5
24570 msgid "virt-sparsify - Make a virtual machine disk sparse"
24571 msgstr ""
24572
24573 #. type: verbatim
24574 #: ../sparsify/virt-sparsify.pod:9
24575 #, no-wrap
24576 msgid ""
24577 " virt-sparsify [--options] indisk outdisk\n"
24578 "\n"
24579 msgstr ""
24580
24581 #. type: textblock
24582 #: ../sparsify/virt-sparsify.pod:13
24583 msgid ""
24584 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24585 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24586 "the disk image can be converted back to free space on the host."
24587 msgstr ""
24588
24589 #. type: textblock
24590 #: ../sparsify/virt-sparsify.pod:18
24591 msgid ""
24592 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24593 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24594 msgstr ""
24595
24596 #. type: textblock
24597 #: ../sparsify/virt-sparsify.pod:21
24598 msgid ""
24599 "Virt-sparsify can also convert between some disk formats, for example "
24600 "converting a raw disk image to a thin-provisioned qcow2 image."
24601 msgstr ""
24602
24603 #. type: textblock
24604 #: ../sparsify/virt-sparsify.pod:24
24605 msgid ""
24606 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24607 "machines.  If a virtual machine has more than one attached disk, you must "
24608 "sparsify each one separately."
24609 msgstr ""
24610
24611 #. type: =head2
24612 #: ../sparsify/virt-sparsify.pod:28
24613 msgid "IMPORTANT LIMITATIONS"
24614 msgstr ""
24615
24616 #. type: textblock
24617 #: ../sparsify/virt-sparsify.pod:34
24618 msgid ""
24619 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24620 "image to a destination image, leaving the source unchanged.  I<Check that "
24621 "the sparsification was successful before deleting the source image>."
24622 msgstr ""
24623
24624 #. type: textblock
24625 #: ../sparsify/virt-sparsify.pod:41
24626 msgid "The virtual machine I<must be shut down> before using this tool."
24627 msgstr ""
24628
24629 #. type: textblock
24630 #: ../sparsify/virt-sparsify.pod:45
24631 msgid ""
24632 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24633 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24634 "usually much less space is required."
24635 msgstr ""
24636
24637 #. type: textblock
24638 #: ../sparsify/virt-sparsify.pod:51
24639 msgid ""
24640 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24641 msgstr ""
24642
24643 #. type: textblock
24644 #: ../sparsify/virt-sparsify.pod:56
24645 msgid "Virt-sparsify cannot handle encrypted disks."
24646 msgstr ""
24647
24648 #. type: textblock
24649 #: ../sparsify/virt-sparsify.pod:60
24650 msgid ""
24651 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24652 "this space is often used for critical items like bootloaders so it's not "
24653 "really unused."
24654 msgstr ""
24655
24656 #. type: textblock
24657 #: ../sparsify/virt-sparsify.pod:66
24658 msgid ""
24659 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24660 "to do this unless we can be sure there is no hibernation data, so at the "
24661 "moment swap partitions are ignored."
24662 msgstr ""
24663
24664 #. type: textblock
24665 #: ../sparsify/virt-sparsify.pod:72
24666 msgid ""
24667 "You may also want to read the manual pages for the associated tools L<virt-"
24668 "filesystems(1)> and L<virt-df(1)> before starting."
24669 msgstr ""
24670
24671 #. type: textblock
24672 #: ../sparsify/virt-sparsify.pod:77
24673 msgid "Typical usage is:"
24674 msgstr ""
24675
24676 #. type: verbatim
24677 #: ../sparsify/virt-sparsify.pod:79
24678 #, no-wrap
24679 msgid ""
24680 " virt-sparsify indisk outdisk\n"
24681 "\n"
24682 msgstr ""
24683
24684 #. type: textblock
24685 #: ../sparsify/virt-sparsify.pod:81
24686 msgid ""
24687 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24688 "is created, or overwritten if it already exists.  The format of the input "
24689 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24690 msgstr ""
24691
24692 #. type: textblock
24693 #: ../sparsify/virt-sparsify.pod:86
24694 msgid "To convert between formats, use the I<--convert> option:"
24695 msgstr ""
24696
24697 #. type: verbatim
24698 #: ../sparsify/virt-sparsify.pod:88
24699 #, no-wrap
24700 msgid ""
24701 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24702 "\n"
24703 msgstr ""
24704
24705 #. type: textblock
24706 #: ../sparsify/virt-sparsify.pod:90
24707 msgid ""
24708 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24709 "can find within the source disk image.  You can get it to ignore (don't zero "
24710 "free space on) certain filesystems by doing:"
24711 msgstr ""
24712
24713 #. type: verbatim
24714 #: ../sparsify/virt-sparsify.pod:94
24715 #, no-wrap
24716 msgid ""
24717 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24718 "\n"
24719 msgstr ""
24720
24721 #. type: textblock
24722 #: ../sparsify/virt-sparsify.pod:96
24723 msgid ""
24724 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24725 msgstr ""
24726
24727 #. type: =item
24728 #: ../sparsify/virt-sparsify.pod:107
24729 msgid "B<--convert> raw"
24730 msgstr ""
24731
24732 #. type: =item
24733 #: ../sparsify/virt-sparsify.pod:109
24734 msgid "B<--convert> qcow2"
24735 msgstr ""
24736
24737 #. type: =item
24738 #: ../sparsify/virt-sparsify.pod:111
24739 msgid "B<--convert> [other formats]"
24740 msgstr ""
24741
24742 #. type: textblock
24743 #: ../sparsify/virt-sparsify.pod:113
24744 msgid ""
24745 "Use C<output-format> as the format for the destination image.  If this is "
24746 "not specified, then the input format is used."
24747 msgstr ""
24748
24749 #. type: textblock
24750 #: ../sparsify/virt-sparsify.pod:116
24751 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24752 msgstr ""
24753
24754 #. type: textblock
24755 #: ../sparsify/virt-sparsify.pod:118
24756 msgid ""
24757 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24758 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24759 msgstr ""
24760
24761 #. type: textblock
24762 #: ../sparsify/virt-sparsify.pod:122
24763 msgid ""
24764 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24765 "sparsify doesn't need to try to guess the input format."
24766 msgstr ""
24767
24768 #. type: =item
24769 #: ../sparsify/virt-sparsify.pod:127
24770 msgid "B<--format> qcow2"
24771 msgstr ""
24772
24773 #. type: =item
24774 #: ../sparsify/virt-sparsify.pod:135
24775 msgid "B<--ignore> filesystem"
24776 msgstr ""
24777
24778 #. type: =item
24779 #: ../sparsify/virt-sparsify.pod:137
24780 msgid "B<--ignore> volgroup"
24781 msgstr ""
24782
24783 #. type: textblock
24784 #: ../sparsify/virt-sparsify.pod:139
24785 msgid ""
24786 "Ignore the named filesystem.  Free space on the filesystem will not be "
24787 "zeroed, but existing blocks of zeroes will still be sparsified."
24788 msgstr ""
24789
24790 #. type: textblock
24791 #: ../sparsify/virt-sparsify.pod:142
24792 msgid ""
24793 "In the second form, this ignores the named volume group.  Use the volume "
24794 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24795 msgstr ""
24796
24797 #. type: textblock
24798 #: ../sparsify/virt-sparsify.pod:157
24799 msgid "This disables progress bars and other unnecessary output."
24800 msgstr ""
24801
24802 #. type: textblock
24803 #: ../sparsify/virt-sparsify.pod:179
24804 msgid ""
24805 "The I<--machine-readable> option can be used to make the output more machine "
24806 "friendly, which is useful when calling virt-sparsify from other programs, "
24807 "GUIs etc."
24808 msgstr ""
24809
24810 #. type: textblock
24811 #: ../sparsify/virt-sparsify.pod:185
24812 msgid ""
24813 "Firstly use the option on its own to query the capabilities of the virt-"
24814 "sparsify binary.  Typical output looks like this:"
24815 msgstr ""
24816
24817 #. type: verbatim
24818 #: ../sparsify/virt-sparsify.pod:188
24819 #, no-wrap
24820 msgid ""
24821 " $ virt-sparsify --machine-readable\n"
24822 " virt-sparsify\n"
24823 " ntfs\n"
24824 " btrfs\n"
24825 "\n"
24826 msgstr ""
24827
24828 #. type: textblock
24829 #: ../sparsify/virt-sparsify.pod:218
24830 msgid ""
24831 "The calling program should treat messages sent to stderr as error messages.  "
24832 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24833 "fatal error."
24834 msgstr ""
24835
24836 #. type: textblock
24837 #: ../sparsify/virt-sparsify.pod:224
24838 msgid ""
24839 "All versions of virt-sparsify have supported the I<--machine-readable> "
24840 "option."
24841 msgstr ""
24842
24843 #. type: textblock
24844 #: ../sparsify/virt-sparsify.pod:238
24845 msgid ""
24846 "Location of the temporary directory used for the potentially large temporary "
24847 "overlay file."
24848 msgstr ""
24849
24850 #. type: textblock
24851 #: ../sparsify/virt-sparsify.pod:241
24852 msgid ""
24853 "You should ensure there is enough free space in the worst case for a full "
24854 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24855 "to another directory that has enough space."
24856 msgstr ""
24857
24858 #. type: textblock
24859 #: ../sparsify/virt-sparsify.pod:245
24860 msgid "This defaults to C</tmp>."
24861 msgstr ""
24862
24863 #. type: textblock
24864 #: ../sparsify/virt-sparsify.pod:249
24865 msgid ""
24866 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24867 msgstr ""
24868
24869 #. type: textblock
24870 #: ../sparsify/virt-sparsify.pod:253
24871 msgid ""
24872 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24873 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
24874 "(1)>, L<http://libguestfs.org/>."
24875 msgstr ""
24876
24877 #. type: =head2
24878 #: ../src/guestfs-actions.pod:1
24879 msgid "guestfs_add_cdrom"
24880 msgstr ""
24881
24882 #. type: verbatim
24883 #: ../src/guestfs-actions.pod:3
24884 #, no-wrap
24885 msgid ""
24886 " int\n"
24887 " guestfs_add_cdrom (guestfs_h *g,\n"
24888 "                    const char *filename);\n"
24889 "\n"
24890 msgstr ""
24891
24892 #. type: textblock
24893 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:255
24894 #: ../src/guestfs-actions.pod:276
24895 msgid ""
24896 "I<This function is deprecated.> In new code, use the L</"
24897 "guestfs_add_drive_opts> call instead."
24898 msgstr ""
24899
24900 #. type: textblock
24901 #: ../src/guestfs-actions.pod:24
24902 msgid ""
24903 "This call checks for the existence of C<filename>.  This stops you from "
24904 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24905 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
24906 "instead."
24907 msgstr ""
24908
24909 #. type: textblock
24910 #: ../src/guestfs-actions.pod:31
24911 msgid ""
24912 "If you just want to add an ISO file (often you use this as an efficient way "
24913 "to transfer large files into the guest), then you should probably use "
24914 "C<guestfs_add_drive_ro> instead."
24915 msgstr ""
24916
24917 #. type: textblock
24918 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
24919 #: ../src/guestfs-actions.pod:207 ../src/guestfs-actions.pod:244
24920 #: ../src/guestfs-actions.pod:265 ../src/guestfs-actions.pod:286
24921 #: ../src/guestfs-actions.pod:299 ../src/guestfs-actions.pod:313
24922 #: ../src/guestfs-actions.pod:433 ../src/guestfs-actions.pod:453
24923 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:512
24924 #: ../src/guestfs-actions.pod:540 ../src/guestfs-actions.pod:558
24925 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:658
24926 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:687
24927 #: ../src/guestfs-actions.pod:786 ../src/guestfs-actions.pod:804
24928 #: ../src/guestfs-actions.pod:818 ../src/guestfs-actions.pod:832
24929 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:1052
24930 #: ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1090
24931 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1239
24932 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1303
24933 #: ../src/guestfs-actions.pod:1322 ../src/guestfs-actions.pod:1336
24934 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1426
24935 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1482
24936 #: ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1637
24937 #: ../src/guestfs-actions.pod:1664 ../src/guestfs-actions.pod:1879
24938 #: ../src/guestfs-actions.pod:1901 ../src/guestfs-actions.pod:1988
24939 #: ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2640
24940 #: ../src/guestfs-actions.pod:2701 ../src/guestfs-actions.pod:2736
24941 #: ../src/guestfs-actions.pod:3793 ../src/guestfs-actions.pod:3808
24942 #: ../src/guestfs-actions.pod:3833 ../src/guestfs-actions.pod:4022
24943 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4049
24944 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4078
24945 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4186
24946 #: ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4223
24947 #: ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4269
24948 #: ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4323
24949 #: ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4377
24950 #: ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4425
24951 #: ../src/guestfs-actions.pod:4441 ../src/guestfs-actions.pod:4454
24952 #: ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:4486
24953 #: ../src/guestfs-actions.pod:4579 ../src/guestfs-actions.pod:4599
24954 #: ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4663
24955 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4699
24956 #: ../src/guestfs-actions.pod:4715 ../src/guestfs-actions.pod:4729
24957 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4760
24958 #: ../src/guestfs-actions.pod:4775 ../src/guestfs-actions.pod:4802
24959 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4938
24960 #: ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:4988
24961 #: ../src/guestfs-actions.pod:5007 ../src/guestfs-actions.pod:5019
24962 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5049
24963 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5079
24964 #: ../src/guestfs-actions.pod:5111 ../src/guestfs-actions.pod:5137
24965 #: ../src/guestfs-actions.pod:5176 ../src/guestfs-actions.pod:5196
24966 #: ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5227
24967 #: ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5329
24968 #: ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5419
24969 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5464
24970 #: ../src/guestfs-actions.pod:5482 ../src/guestfs-actions.pod:5622
24971 #: ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:5701
24972 #: ../src/guestfs-actions.pod:5719 ../src/guestfs-actions.pod:5751
24973 #: ../src/guestfs-actions.pod:5817 ../src/guestfs-actions.pod:5834
24974 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5861
24975 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169
24976 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6202
24977 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6228
24978 #: ../src/guestfs-actions.pod:6240 ../src/guestfs-actions.pod:6254
24979 #: ../src/guestfs-actions.pod:6270 ../src/guestfs-actions.pod:6291
24980 #: ../src/guestfs-actions.pod:6310 ../src/guestfs-actions.pod:6329
24981 #: ../src/guestfs-actions.pod:6359 ../src/guestfs-actions.pod:6377
24982 #: ../src/guestfs-actions.pod:6400 ../src/guestfs-actions.pod:6418
24983 #: ../src/guestfs-actions.pod:6437 ../src/guestfs-actions.pod:6458
24984 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6494
24985 #: ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6541
24986 #: ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6584
24987 #: ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6624
24988 #: ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6658
24989 #: ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6721
24990 #: ../src/guestfs-actions.pod:6751 ../src/guestfs-actions.pod:6784
24991 #: ../src/guestfs-actions.pod:6899 ../src/guestfs-actions.pod:7020
24992 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7045
24993 #: ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7080
24994 #: ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7106
24995 #: ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7134
24996 #: ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7210
24997 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7242
24998 #: ../src/guestfs-actions.pod:7259 ../src/guestfs-actions.pod:7272
24999 #: ../src/guestfs-actions.pod:7292 ../src/guestfs-actions.pod:7328
25000 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7383
25001 #: ../src/guestfs-actions.pod:7396 ../src/guestfs-actions.pod:7414
25002 #: ../src/guestfs-actions.pod:7448 ../src/guestfs-actions.pod:7484
25003 #: ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7615
25004 #: ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7684
25005 #: ../src/guestfs-actions.pod:7697 ../src/guestfs-actions.pod:7742
25006 #: ../src/guestfs-actions.pod:7782 ../src/guestfs-actions.pod:7838
25007 #: ../src/guestfs-actions.pod:7858 ../src/guestfs-actions.pod:7891
25008 #: ../src/guestfs-actions.pod:7955 ../src/guestfs-actions.pod:7978
25009 #: ../src/guestfs-actions.pod:8007
25010 msgid "This function returns 0 on success or -1 on error."
25011 msgstr ""
25012
25013 #. type: textblock
25014 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
25015 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:2102
25016 #: ../src/guestfs-actions.pod:2200 ../src/guestfs-actions.pod:2325
25017 #: ../src/guestfs-actions.pod:3795 ../src/guestfs-actions.pod:3815
25018 #: ../src/guestfs-actions.pod:5113 ../src/guestfs-actions.pod:6379
25019 #: ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:6645
25020 #: ../src/guestfs-actions.pod:7136 ../src/guestfs-actions.pod:7261
25021 #: ../src/guestfs-actions.pod:7784
25022 msgid "(Added in 0.3)"
25023 msgstr "(Додано у 0.3)"
25024
25025 #. type: =head2
25026 #: ../src/guestfs-actions.pod:41
25027 msgid "guestfs_add_domain"
25028 msgstr ""
25029
25030 #. type: verbatim
25031 #: ../src/guestfs-actions.pod:43
25032 #, no-wrap
25033 msgid ""
25034 " int\n"
25035 " guestfs_add_domain (guestfs_h *g,\n"
25036 "                     const char *dom,\n"
25037 "                     ...);\n"
25038 "\n"
25039 msgstr ""
25040
25041 #. type: textblock
25042 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
25043 #: ../src/guestfs-actions.pod:843 ../src/guestfs-actions.pod:1167
25044 #: ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:2993
25045 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:5123
25046 #: ../src/guestfs-actions.pod:5340
25047 msgid ""
25048 "You may supply a list of optional arguments to this call.  Use zero or more "
25049 "of the following pairs of parameters, and terminate the list with C<-1> on "
25050 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25051 msgstr ""
25052
25053 #. type: verbatim
25054 #: ../src/guestfs-actions.pod:53
25055 #, no-wrap
25056 msgid ""
25057 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25058 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25059 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25060 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25061 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25062 "\n"
25063 msgstr ""
25064
25065 #. type: textblock
25066 #: ../src/guestfs-actions.pod:59
25067 msgid ""
25068 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25069 "It works by connecting to libvirt, requesting the domain and domain XML from "
25070 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25071 "one."
25072 msgstr ""
25073
25074 #. type: textblock
25075 #: ../src/guestfs-actions.pod:94
25076 msgid ""
25077 "The other optional parameters are passed directly through to "
25078 "C<guestfs_add_drive_opts>."
25079 msgstr ""
25080
25081 #. type: textblock
25082 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:356
25083 #: ../src/guestfs-actions.pod:526 ../src/guestfs-actions.pod:704
25084 #: ../src/guestfs-actions.pod:735 ../src/guestfs-actions.pod:753
25085 #: ../src/guestfs-actions.pod:772 ../src/guestfs-actions.pod:1502
25086 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:2061
25087 #: ../src/guestfs-actions.pod:2172 ../src/guestfs-actions.pod:2223
25088 #: ../src/guestfs-actions.pod:2275 ../src/guestfs-actions.pod:2289
25089 #: ../src/guestfs-actions.pod:2312 ../src/guestfs-actions.pod:2627
25090 #: ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3129
25091 #: ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5519
25092 #: ../src/guestfs-actions.pod:5931 ../src/guestfs-actions.pod:5957
25093 #: ../src/guestfs-actions.pod:7369 ../src/guestfs-actions.pod:7795
25094 #: ../src/guestfs-actions.pod:7808 ../src/guestfs-actions.pod:7821
25095 msgid "On error this function returns -1."
25096 msgstr ""
25097
25098 #. type: textblock
25099 #: ../src/guestfs-actions.pod:99
25100 msgid "(Added in 1.7.4)"
25101 msgstr "(Додано у 1.7.4)"
25102
25103 #. type: =head2
25104 #: ../src/guestfs-actions.pod:101
25105 msgid "guestfs_add_domain_va"
25106 msgstr ""
25107
25108 #. type: verbatim
25109 #: ../src/guestfs-actions.pod:103
25110 #, no-wrap
25111 msgid ""
25112 " int\n"
25113 " guestfs_add_domain_va (guestfs_h *g,\n"
25114 "                        const char *dom,\n"
25115 "                        va_list args);\n"
25116 "\n"
25117 msgstr ""
25118
25119 #. type: textblock
25120 #: ../src/guestfs-actions.pod:108
25121 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25122 msgstr ""
25123
25124 #. type: textblock
25125 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
25126 #: ../src/guestfs-actions.pod:220 ../src/guestfs-actions.pod:231
25127 #: ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:893
25128 #: ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1208
25129 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1267
25130 #: ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3089
25131 #: ../src/guestfs-actions.pod:4879 ../src/guestfs-actions.pod:4891
25132 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5163
25133 #: ../src/guestfs-actions.pod:5389 ../src/guestfs-actions.pod:5400
25134 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25135 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25136
25137 #. type: =head2
25138 #: ../src/guestfs-actions.pod:112
25139 msgid "guestfs_add_domain_argv"
25140 msgstr "guestfs_add_domain_argv"
25141
25142 #. type: verbatim
25143 #: ../src/guestfs-actions.pod:114
25144 #, no-wrap
25145 msgid ""
25146 " int\n"
25147 " guestfs_add_domain_argv (guestfs_h *g,\n"
25148 "                          const char *dom,\n"
25149 "                          const struct guestfs_add_domain_argv *optargs);\n"
25150 "\n"
25151 msgstr ""
25152
25153 #. type: textblock
25154 #: ../src/guestfs-actions.pod:119
25155 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25156 msgstr ""
25157
25158 #. type: =head2
25159 #: ../src/guestfs-actions.pod:123
25160 msgid "guestfs_add_drive"
25161 msgstr ""
25162
25163 #. type: verbatim
25164 #: ../src/guestfs-actions.pod:125
25165 #, no-wrap
25166 msgid ""
25167 " int\n"
25168 " guestfs_add_drive (guestfs_h *g,\n"
25169 "                    const char *filename);\n"
25170 "\n"
25171 msgstr ""
25172
25173 #. type: textblock
25174 #: ../src/guestfs-actions.pod:129
25175 msgid ""
25176 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25177 "optional parameters, so the disk is added writable, with the format being "
25178 "detected automatically."
25179 msgstr ""
25180
25181 #. type: textblock
25182 #: ../src/guestfs-actions.pod:133
25183 msgid ""
25184 "Automatic detection of the format opens you up to a potential security hole "
25185 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25186 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25187 "you should think about replacing calls to this function with calls to "
25188 "C<guestfs_add_drive_opts>, and specifying the format."
25189 msgstr ""
25190
25191 #. type: =head2
25192 #: ../src/guestfs-actions.pod:144
25193 msgid "guestfs_add_drive_opts"
25194 msgstr ""
25195
25196 #. type: verbatim
25197 #: ../src/guestfs-actions.pod:146
25198 #, no-wrap
25199 msgid ""
25200 " int\n"
25201 " guestfs_add_drive_opts (guestfs_h *g,\n"
25202 "                         const char *filename,\n"
25203 "                         ...);\n"
25204 "\n"
25205 msgstr ""
25206
25207 #. type: verbatim
25208 #: ../src/guestfs-actions.pod:156
25209 #, no-wrap
25210 msgid ""
25211 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25212 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25213 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25214 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25215 "\n"
25216 msgstr ""
25217
25218 #. type: textblock
25219 #: ../src/guestfs-actions.pod:186
25220 msgid ""
25221 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25222 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25223 "Possible formats include C<raw> and C<qcow2>."
25224 msgstr ""
25225
25226 #. type: textblock
25227 #: ../src/guestfs-actions.pod:197
25228 msgid ""
25229 "This rarely-used option lets you emulate the behaviour of the deprecated "
25230 "C<guestfs_add_drive_with_if> call (q.v.)"
25231 msgstr ""
25232
25233 #. type: textblock
25234 #: ../src/guestfs-actions.pod:209
25235 msgid "(Added in 1.5.23)"
25236 msgstr "(Додано у 1.5.23)"
25237
25238 #. type: =head2
25239 #: ../src/guestfs-actions.pod:211
25240 msgid "guestfs_add_drive_opts_va"
25241 msgstr ""
25242
25243 #. type: verbatim
25244 #: ../src/guestfs-actions.pod:213
25245 #, no-wrap
25246 msgid ""
25247 " int\n"
25248 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25249 "                            const char *filename,\n"
25250 "                            va_list args);\n"
25251 "\n"
25252 msgstr ""
25253
25254 #. type: textblock
25255 #: ../src/guestfs-actions.pod:218
25256 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25257 msgstr ""
25258
25259 #. type: =head2
25260 #: ../src/guestfs-actions.pod:222
25261 msgid "guestfs_add_drive_opts_argv"
25262 msgstr ""
25263
25264 #. type: verbatim
25265 #: ../src/guestfs-actions.pod:224
25266 #, no-wrap
25267 msgid ""
25268 " int\n"
25269 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25270 "                              const char *filename,\n"
25271 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
25272 "\n"
25273 msgstr ""
25274
25275 #. type: textblock
25276 #: ../src/guestfs-actions.pod:229
25277 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25278 msgstr ""
25279
25280 #. type: =head2
25281 #: ../src/guestfs-actions.pod:233
25282 msgid "guestfs_add_drive_ro"
25283 msgstr ""
25284
25285 #. type: verbatim
25286 #: ../src/guestfs-actions.pod:235
25287 #, no-wrap
25288 msgid ""
25289 " int\n"
25290 " guestfs_add_drive_ro (guestfs_h *g,\n"
25291 "                       const char *filename);\n"
25292 "\n"
25293 msgstr ""
25294
25295 #. type: textblock
25296 #: ../src/guestfs-actions.pod:239
25297 msgid ""
25298 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25299 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25300 "disk is added read-only, with the format being detected automatically."
25301 msgstr ""
25302
25303 #. type: textblock
25304 #: ../src/guestfs-actions.pod:246
25305 msgid "(Added in 1.0.38)"
25306 msgstr "(Додано у 1.0.38)"
25307
25308 #. type: =head2
25309 #: ../src/guestfs-actions.pod:248
25310 msgid "guestfs_add_drive_ro_with_if"
25311 msgstr ""
25312
25313 #. type: verbatim
25314 #: ../src/guestfs-actions.pod:250
25315 #, no-wrap
25316 msgid ""
25317 " int\n"
25318 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25319 "                               const char *filename,\n"
25320 "                               const char *iface);\n"
25321 "\n"
25322 msgstr ""
25323
25324 #. type: textblock
25325 #: ../src/guestfs-actions.pod:262
25326 msgid ""
25327 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25328 "QEMU interface emulation to use at run time."
25329 msgstr ""
25330
25331 #. type: textblock
25332 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:288
25333 #: ../src/guestfs-actions.pod:2586
25334 msgid "(Added in 1.0.84)"
25335 msgstr "(Додано у 1.0.84)"
25336
25337 #. type: =head2
25338 #: ../src/guestfs-actions.pod:269
25339 msgid "guestfs_add_drive_with_if"
25340 msgstr ""
25341
25342 #. type: verbatim
25343 #: ../src/guestfs-actions.pod:271
25344 #, no-wrap
25345 msgid ""
25346 " int\n"
25347 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25348 "                            const char *filename,\n"
25349 "                            const char *iface);\n"
25350 "\n"
25351 msgstr ""
25352
25353 #. type: textblock
25354 #: ../src/guestfs-actions.pod:283
25355 msgid ""
25356 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25357 "QEMU interface emulation to use at run time."
25358 msgstr ""
25359
25360 #. type: =head2
25361 #: ../src/guestfs-actions.pod:290
25362 msgid "guestfs_aug_clear"
25363 msgstr ""
25364
25365 #. type: verbatim
25366 #: ../src/guestfs-actions.pod:292
25367 #, no-wrap
25368 msgid ""
25369 " int\n"
25370 " guestfs_aug_clear (guestfs_h *g,\n"
25371 "                    const char *augpath);\n"
25372 "\n"
25373 msgstr ""
25374
25375 #. type: textblock
25376 #: ../src/guestfs-actions.pod:301 ../src/guestfs-actions.pod:2314
25377 msgid "(Added in 1.3.4)"
25378 msgstr "(Додано у 1.3.4)"
25379
25380 #. type: =head2
25381 #: ../src/guestfs-actions.pod:303
25382 msgid "guestfs_aug_close"
25383 msgstr ""
25384
25385 #. type: verbatim
25386 #: ../src/guestfs-actions.pod:305
25387 #, no-wrap
25388 msgid ""
25389 " int\n"
25390 " guestfs_aug_close (guestfs_h *g);\n"
25391 "\n"
25392 msgstr ""
25393
25394 #. type: textblock
25395 #: ../src/guestfs-actions.pod:308
25396 msgid ""
25397 "Close the current Augeas handle and free up any resources used by it.  After "
25398 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25399 "any other Augeas functions."
25400 msgstr ""
25401
25402 #. type: textblock
25403 #: ../src/guestfs-actions.pod:315 ../src/guestfs-actions.pod:340
25404 #: ../src/guestfs-actions.pod:358 ../src/guestfs-actions.pod:372
25405 #: ../src/guestfs-actions.pod:435 ../src/guestfs-actions.pod:455
25406 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:500
25407 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:528
25408 #: ../src/guestfs-actions.pod:542 ../src/guestfs-actions.pod:560
25409 #: ../src/guestfs-actions.pod:6008
25410 msgid "(Added in 0.7)"
25411 msgstr "(Додано у 0.7)"
25412
25413 #. type: =head2
25414 #: ../src/guestfs-actions.pod:317
25415 msgid "guestfs_aug_defnode"
25416 msgstr ""
25417
25418 #. type: verbatim
25419 #: ../src/guestfs-actions.pod:319
25420 #, no-wrap
25421 msgid ""
25422 " struct guestfs_int_bool *\n"
25423 " guestfs_aug_defnode (guestfs_h *g,\n"
25424 "                      const char *name,\n"
25425 "                      const char *expr,\n"
25426 "                      const char *val);\n"
25427 "\n"
25428 msgstr ""
25429
25430 #. type: textblock
25431 #: ../src/guestfs-actions.pod:328
25432 msgid ""
25433 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25434 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25435 "containing that single node."
25436 msgstr ""
25437
25438 #. type: textblock
25439 #: ../src/guestfs-actions.pod:336
25440 msgid ""
25441 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25442 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25443 msgstr ""
25444
25445 #. type: =head2
25446 #: ../src/guestfs-actions.pod:342
25447 msgid "guestfs_aug_defvar"
25448 msgstr ""
25449
25450 #. type: verbatim
25451 #: ../src/guestfs-actions.pod:344
25452 #, no-wrap
25453 msgid ""
25454 " int\n"
25455 " guestfs_aug_defvar (guestfs_h *g,\n"
25456 "                     const char *name,\n"
25457 "                     const char *expr);\n"
25458 "\n"
25459 msgstr ""
25460
25461 #. type: =head2
25462 #: ../src/guestfs-actions.pod:360
25463 msgid "guestfs_aug_get"
25464 msgstr "guestfs_aug_get"
25465
25466 #. type: verbatim
25467 #: ../src/guestfs-actions.pod:362
25468 #, no-wrap
25469 msgid ""
25470 " char *\n"
25471 " guestfs_aug_get (guestfs_h *g,\n"
25472 "                  const char *augpath);\n"
25473 "\n"
25474 msgstr ""
25475 " char *\n"
25476 " guestfs_aug_get (guestfs_h *g,\n"
25477 "                  const char *augpath);\n"
25478 "\n"
25479
25480 #. type: textblock
25481 #: ../src/guestfs-actions.pod:369 ../src/guestfs-actions.pod:933
25482 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1011
25483 #: ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1130
25484 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1388
25485 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1541
25486 #: ../src/guestfs-actions.pod:1729 ../src/guestfs-actions.pod:1841
25487 #: ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:2021
25488 #: ../src/guestfs-actions.pod:2088 ../src/guestfs-actions.pod:2131
25489 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:2337
25490 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2755
25491 #: ../src/guestfs-actions.pod:2857 ../src/guestfs-actions.pod:2961
25492 #: ../src/guestfs-actions.pod:2980 ../src/guestfs-actions.pod:3195
25493 #: ../src/guestfs-actions.pod:3223 ../src/guestfs-actions.pod:3244
25494 #: ../src/guestfs-actions.pod:3278 ../src/guestfs-actions.pod:3341
25495 #: ../src/guestfs-actions.pod:3361 ../src/guestfs-actions.pod:3381
25496 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4361
25497 #: ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4641
25498 #: ../src/guestfs-actions.pod:5537 ../src/guestfs-actions.pod:5736
25499 #: ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:6084
25500 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6805
25501 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6845
25502 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:7543
25503 #: ../src/guestfs-actions.pod:7562 ../src/guestfs-actions.pod:7580
25504 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:8071
25505 msgid ""
25506 "This function returns a string, or NULL on error.  I<The caller must free "
25507 "the returned string after use>."
25508 msgstr ""
25509
25510 #. type: =head2
25511 #: ../src/guestfs-actions.pod:374
25512 msgid "guestfs_aug_init"
25513 msgstr "guestfs_aug_init"
25514
25515 #. type: verbatim
25516 #: ../src/guestfs-actions.pod:376
25517 #, no-wrap
25518 msgid ""
25519 " int\n"
25520 " guestfs_aug_init (guestfs_h *g,\n"
25521 "                   const char *root,\n"
25522 "                   int flags);\n"
25523 "\n"
25524 msgstr ""
25525 " int\n"
25526 " guestfs_aug_init (guestfs_h *g,\n"
25527 "                   const char *root,\n"
25528 "                   int flags);\n"
25529 "\n"
25530
25531 #. type: textblock
25532 #: ../src/guestfs-actions.pod:385
25533 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25534 msgstr ""
25535
25536 #. type: textblock
25537 #: ../src/guestfs-actions.pod:410
25538 msgid ""
25539 "This option is only useful when debugging Augeas lenses.  Use of this option "
25540 "may require additional memory for the libguestfs appliance.  You may need to "
25541 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25542 "C<guestfs_set_memsize>."
25543 msgstr ""
25544
25545 #. type: textblock
25546 #: ../src/guestfs-actions.pod:425
25547 msgid "Do not load the tree in C<guestfs_aug_init>."
25548 msgstr ""
25549
25550 #. type: textblock
25551 #: ../src/guestfs-actions.pod:429
25552 msgid "To close the handle, you can call C<guestfs_aug_close>."
25553 msgstr ""
25554
25555 #. type: =head2
25556 #: ../src/guestfs-actions.pod:437
25557 msgid "guestfs_aug_insert"
25558 msgstr "guestfs_aug_insert"
25559
25560 #. type: verbatim
25561 #: ../src/guestfs-actions.pod:439
25562 #, no-wrap
25563 msgid ""
25564 " int\n"
25565 " guestfs_aug_insert (guestfs_h *g,\n"
25566 "                     const char *augpath,\n"
25567 "                     const char *label,\n"
25568 "                     int before);\n"
25569 "\n"
25570 msgstr ""
25571 " int\n"
25572 " guestfs_aug_insert (guestfs_h *g,\n"
25573 "                     const char *augpath,\n"
25574 "                     const char *label,\n"
25575 "                     int before);\n"
25576 "\n"
25577
25578 #. type: =head2
25579 #: ../src/guestfs-actions.pod:457
25580 msgid "guestfs_aug_load"
25581 msgstr "guestfs_aug_load"
25582
25583 #. type: verbatim
25584 #: ../src/guestfs-actions.pod:459
25585 #, no-wrap
25586 msgid ""
25587 " int\n"
25588 " guestfs_aug_load (guestfs_h *g);\n"
25589 "\n"
25590 msgstr ""
25591 " int\n"
25592 " guestfs_aug_load (guestfs_h *g);\n"
25593 "\n"
25594
25595 #. type: =head2
25596 #: ../src/guestfs-actions.pod:471
25597 msgid "guestfs_aug_ls"
25598 msgstr "guestfs_aug_ls"
25599
25600 #. type: verbatim
25601 #: ../src/guestfs-actions.pod:473
25602 #, no-wrap
25603 msgid ""
25604 " char **\n"
25605 " guestfs_aug_ls (guestfs_h *g,\n"
25606 "                 const char *augpath);\n"
25607 "\n"
25608 msgstr ""
25609 " char **\n"
25610 " guestfs_aug_ls (guestfs_h *g,\n"
25611 "                 const char *augpath);\n"
25612 "\n"
25613
25614 #. type: textblock
25615 #: ../src/guestfs-actions.pod:477
25616 msgid ""
25617 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25618 "sorting the resulting nodes into alphabetical order."
25619 msgstr ""
25620
25621 #. type: textblock
25622 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:496
25623 #: ../src/guestfs-actions.pod:642 ../src/guestfs-actions.pod:1149
25624 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
25625 #: ../src/guestfs-actions.pod:1678 ../src/guestfs-actions.pod:1697
25626 #: ../src/guestfs-actions.pod:1943 ../src/guestfs-actions.pod:2409
25627 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:2444
25628 #: ../src/guestfs-actions.pod:2509 ../src/guestfs-actions.pod:2533
25629 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2653
25630 #: ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:3297
25631 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3891
25632 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3928
25633 #: ../src/guestfs-actions.pod:3990 ../src/guestfs-actions.pod:4095
25634 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:5260
25635 #: ../src/guestfs-actions.pod:5878 ../src/guestfs-actions.pod:6004
25636 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6885
25637 #: ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:7001
25638 #: ../src/guestfs-actions.pod:7147 ../src/guestfs-actions.pod:7171
25639 #: ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7667
25640 #: ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7908
25641 #: ../src/guestfs-actions.pod:7927 ../src/guestfs-actions.pod:8021
25642 #: ../src/guestfs-actions.pod:8040 ../src/guestfs-actions.pod:8086
25643 #: ../src/guestfs-actions.pod:8105
25644 msgid ""
25645 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25646 ">), or NULL if there was an error.  I<The caller must free the strings and "
25647 "the array after use>."
25648 msgstr ""
25649
25650 #. type: textblock
25651 #: ../src/guestfs-actions.pod:484 ../src/guestfs-actions.pod:1074
25652 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1613
25653 #: ../src/guestfs-actions.pod:3655 ../src/guestfs-actions.pod:3686
25654 #: ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4394
25655 #: ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4614
25656 #: ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:5264
25657 #: ../src/guestfs-actions.pod:5819 ../src/guestfs-actions.pod:6216
25658 #: ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6242
25659 #: ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:7385
25660 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7631
25661 #: ../src/guestfs-actions.pod:7896
25662 msgid "(Added in 0.8)"
25663 msgstr "(Додано у 0.8)"
25664
25665 #. type: =head2
25666 #: ../src/guestfs-actions.pod:486
25667 msgid "guestfs_aug_match"
25668 msgstr "guestfs_aug_match"
25669
25670 #. type: verbatim
25671 #: ../src/guestfs-actions.pod:488
25672 #, no-wrap
25673 msgid ""
25674 " char **\n"
25675 " guestfs_aug_match (guestfs_h *g,\n"
25676 "                    const char *augpath);\n"
25677 "\n"
25678 msgstr ""
25679 " char **\n"
25680 " guestfs_aug_match (guestfs_h *g,\n"
25681 "                    const char *augpath);\n"
25682 "\n"
25683
25684 #. type: =head2
25685 #: ../src/guestfs-actions.pod:502
25686 msgid "guestfs_aug_mv"
25687 msgstr "guestfs_aug_mv"
25688
25689 #. type: verbatim
25690 #: ../src/guestfs-actions.pod:504
25691 #, no-wrap
25692 msgid ""
25693 " int\n"
25694 " guestfs_aug_mv (guestfs_h *g,\n"
25695 "                 const char *src,\n"
25696 "                 const char *dest);\n"
25697 "\n"
25698 msgstr ""
25699 " int\n"
25700 " guestfs_aug_mv (guestfs_h *g,\n"
25701 "                 const char *src,\n"
25702 "                 const char *dest);\n"
25703 "\n"
25704
25705 #. type: =head2
25706 #: ../src/guestfs-actions.pod:516
25707 msgid "guestfs_aug_rm"
25708 msgstr "guestfs_aug_rm"
25709
25710 #. type: verbatim
25711 #: ../src/guestfs-actions.pod:518
25712 #, no-wrap
25713 msgid ""
25714 " int\n"
25715 " guestfs_aug_rm (guestfs_h *g,\n"
25716 "                 const char *augpath);\n"
25717 "\n"
25718 msgstr ""
25719 " int\n"
25720 " guestfs_aug_rm (guestfs_h *g,\n"
25721 "                 const char *augpath);\n"
25722 "\n"
25723
25724 #. type: =head2
25725 #: ../src/guestfs-actions.pod:530
25726 msgid "guestfs_aug_save"
25727 msgstr "guestfs_aug_save"
25728
25729 #. type: verbatim
25730 #: ../src/guestfs-actions.pod:532
25731 #, no-wrap
25732 msgid ""
25733 " int\n"
25734 " guestfs_aug_save (guestfs_h *g);\n"
25735 "\n"
25736 msgstr ""
25737 " int\n"
25738 " guestfs_aug_save (guestfs_h *g);\n"
25739 "\n"
25740
25741 #. type: textblock
25742 #: ../src/guestfs-actions.pod:537
25743 msgid ""
25744 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25745 "are saved."
25746 msgstr ""
25747
25748 #. type: =head2
25749 #: ../src/guestfs-actions.pod:544
25750 msgid "guestfs_aug_set"
25751 msgstr "guestfs_aug_set"
25752
25753 #. type: verbatim
25754 #: ../src/guestfs-actions.pod:546
25755 #, no-wrap
25756 msgid ""
25757 " int\n"
25758 " guestfs_aug_set (guestfs_h *g,\n"
25759 "                  const char *augpath,\n"
25760 "                  const char *val);\n"
25761 "\n"
25762 msgstr ""
25763 " int\n"
25764 " guestfs_aug_set (guestfs_h *g,\n"
25765 "                  const char *augpath,\n"
25766 "                  const char *val);\n"
25767 "\n"
25768
25769 #. type: textblock
25770 #: ../src/guestfs-actions.pod:553
25771 msgid ""
25772 "In the Augeas API, it is possible to clear a node by setting the value to "
25773 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25774 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25775 msgstr ""
25776
25777 #. type: =head2
25778 #: ../src/guestfs-actions.pod:562
25779 msgid "guestfs_available"
25780 msgstr "guestfs_available"
25781
25782 #. type: verbatim
25783 #: ../src/guestfs-actions.pod:564
25784 #, no-wrap
25785 msgid ""
25786 " int\n"
25787 " guestfs_available (guestfs_h *g,\n"
25788 "                    char *const *groups);\n"
25789 "\n"
25790 msgstr ""
25791 " int\n"
25792 " guestfs_available (guestfs_h *g,\n"
25793 "                    char *const *groups);\n"
25794 "\n"
25795
25796 #. type: textblock
25797 #: ../src/guestfs-actions.pod:572
25798 msgid ""
25799 "The libguestfs groups, and the functions that those groups correspond to, "
25800 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25801 "runtime by calling C<guestfs_available_all_groups>."
25802 msgstr ""
25803
25804 #. type: textblock
25805 #: ../src/guestfs-actions.pod:596
25806 msgid "You must call C<guestfs_launch> before calling this function."
25807 msgstr ""
25808
25809 #. type: textblock
25810 #: ../src/guestfs-actions.pod:618
25811 msgid ""
25812 "This call was added in version C<1.0.80>.  In previous versions of "
25813 "libguestfs all you could do would be to speculatively execute a command to "
25814 "find out if the daemon implemented it.  See also C<guestfs_version>."
25815 msgstr ""
25816
25817 #. type: textblock
25818 #: ../src/guestfs-actions.pod:627 ../src/guestfs-actions.pod:1358
25819 msgid "(Added in 1.0.80)"
25820 msgstr "(Додано у 1.0.80)"
25821
25822 #. type: =head2
25823 #: ../src/guestfs-actions.pod:629
25824 msgid "guestfs_available_all_groups"
25825 msgstr "guestfs_available_all_groups"
25826
25827 #. type: verbatim
25828 #: ../src/guestfs-actions.pod:631
25829 #, no-wrap
25830 msgid ""
25831 " char **\n"
25832 " guestfs_available_all_groups (guestfs_h *g);\n"
25833 "\n"
25834 msgstr ""
25835 " char **\n"
25836 " guestfs_available_all_groups (guestfs_h *g);\n"
25837 "\n"
25838
25839 #. type: textblock
25840 #: ../src/guestfs-actions.pod:634
25841 msgid ""
25842 "This command returns a list of all optional groups that this daemon knows "
25843 "about.  Note this returns both supported and unsupported groups.  To find "
25844 "out which ones the daemon can actually support you have to call "
25845 "C<guestfs_available> on each member of the returned list."
25846 msgstr ""
25847
25848 #. type: textblock
25849 #: ../src/guestfs-actions.pod:640
25850 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25851 msgstr ""
25852
25853 #. type: textblock
25854 #: ../src/guestfs-actions.pod:646
25855 msgid "(Added in 1.3.15)"
25856 msgstr "(Додано у 1.3.15)"
25857
25858 #. type: =head2
25859 #: ../src/guestfs-actions.pod:648
25860 msgid "guestfs_base64_in"
25861 msgstr "guestfs_base64_in"
25862
25863 #. type: verbatim
25864 #: ../src/guestfs-actions.pod:650
25865 #, no-wrap
25866 msgid ""
25867 " int\n"
25868 " guestfs_base64_in (guestfs_h *g,\n"
25869 "                    const char *base64file,\n"
25870 "                    const char *filename);\n"
25871 "\n"
25872 msgstr ""
25873 " int\n"
25874 " guestfs_base64_in (guestfs_h *g,\n"
25875 "                    const char *base64file,\n"
25876 "                    const char *filename);\n"
25877 "\n"
25878
25879 #. type: textblock
25880 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:674
25881 msgid "(Added in 1.3.5)"
25882 msgstr "(Додано у 1.3.5)"
25883
25884 #. type: =head2
25885 #: ../src/guestfs-actions.pod:662
25886 msgid "guestfs_base64_out"
25887 msgstr "guestfs_base64_out"
25888
25889 #. type: verbatim
25890 #: ../src/guestfs-actions.pod:664
25891 #, no-wrap
25892 msgid ""
25893 " int\n"
25894 " guestfs_base64_out (guestfs_h *g,\n"
25895 "                     const char *filename,\n"
25896 "                     const char *base64file);\n"
25897 "\n"
25898 msgstr ""
25899 " int\n"
25900 " guestfs_base64_out (guestfs_h *g,\n"
25901 "                     const char *filename,\n"
25902 "                     const char *base64file);\n"
25903 "\n"
25904
25905 #. type: =head2
25906 #: ../src/guestfs-actions.pod:676
25907 msgid "guestfs_blockdev_flushbufs"
25908 msgstr "guestfs_blockdev_flushbufs"
25909
25910 #. type: verbatim
25911 #: ../src/guestfs-actions.pod:678
25912 #, no-wrap
25913 msgid ""
25914 " int\n"
25915 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25916 "                             const char *device);\n"
25917 "\n"
25918 msgstr ""
25919 " int\n"
25920 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25921 "                             const char *device);\n"
25922 "\n"
25923
25924 #. type: textblock
25925 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:706
25926 #: ../src/guestfs-actions.pod:721 ../src/guestfs-actions.pod:737
25927 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:774
25928 #: ../src/guestfs-actions.pod:788 ../src/guestfs-actions.pod:806
25929 #: ../src/guestfs-actions.pod:820 ../src/guestfs-actions.pod:834
25930 msgid "(Added in 0.9.3)"
25931 msgstr "(Додано у 0.9.3)"
25932
25933 #. type: =head2
25934 #: ../src/guestfs-actions.pod:691
25935 msgid "guestfs_blockdev_getbsz"
25936 msgstr "guestfs_blockdev_getbsz"
25937
25938 #. type: verbatim
25939 #: ../src/guestfs-actions.pod:693
25940 #, no-wrap
25941 msgid ""
25942 " int\n"
25943 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25944 "                          const char *device);\n"
25945 "\n"
25946 msgstr ""
25947 " int\n"
25948 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25949 "                          const char *device);\n"
25950 "\n"
25951
25952 #. type: =head2
25953 #: ../src/guestfs-actions.pod:708
25954 msgid "guestfs_blockdev_getro"
25955 msgstr "guestfs_blockdev_getro"
25956
25957 #. type: verbatim
25958 #: ../src/guestfs-actions.pod:710
25959 #, no-wrap
25960 msgid ""
25961 " int\n"
25962 " guestfs_blockdev_getro (guestfs_h *g,\n"
25963 "                         const char *device);\n"
25964 "\n"
25965 msgstr ""
25966 " int\n"
25967 " guestfs_blockdev_getro (guestfs_h *g,\n"
25968 "                         const char *device);\n"
25969 "\n"
25970
25971 #. type: textblock
25972 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:1596
25973 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:2100
25974 #: ../src/guestfs-actions.pod:2111 ../src/guestfs-actions.pod:2183
25975 #: ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2249
25976 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2300
25977 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:3398
25978 #: ../src/guestfs-actions.pod:3414 ../src/guestfs-actions.pod:3432
25979 #: ../src/guestfs-actions.pod:3594 ../src/guestfs-actions.pod:3608
25980 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637
25981 #: ../src/guestfs-actions.pod:3653 ../src/guestfs-actions.pod:3668
25982 #: ../src/guestfs-actions.pod:3684 ../src/guestfs-actions.pod:3698
25983 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3725
25984 #: ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:3755
25985 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3782
25986 #: ../src/guestfs-actions.pod:5501
25987 msgid "This function returns a C truth value on success or -1 on error."
25988 msgstr ""
25989
25990 #. type: =head2
25991 #: ../src/guestfs-actions.pod:723
25992 msgid "guestfs_blockdev_getsize64"
25993 msgstr "guestfs_blockdev_getsize64"
25994
25995 #. type: verbatim
25996 #: ../src/guestfs-actions.pod:725
25997 #, no-wrap
25998 msgid ""
25999 " int64_t\n"
26000 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26001 "                             const char *device);\n"
26002 "\n"
26003 msgstr ""
26004 " int64_t\n"
26005 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26006 "                             const char *device);\n"
26007 "\n"
26008
26009 #. type: textblock
26010 #: ../src/guestfs-actions.pod:731
26011 msgid "See also C<guestfs_blockdev_getsz>."
26012 msgstr ""
26013
26014 #. type: =head2
26015 #: ../src/guestfs-actions.pod:739
26016 msgid "guestfs_blockdev_getss"
26017 msgstr "guestfs_blockdev_getss"
26018
26019 #. type: verbatim
26020 #: ../src/guestfs-actions.pod:741
26021 #, no-wrap
26022 msgid ""
26023 " int\n"
26024 " guestfs_blockdev_getss (guestfs_h *g,\n"
26025 "                         const char *device);\n"
26026 "\n"
26027 msgstr ""
26028 " int\n"
26029 " guestfs_blockdev_getss (guestfs_h *g,\n"
26030 "                         const char *device);\n"
26031 "\n"
26032
26033 #. type: textblock
26034 #: ../src/guestfs-actions.pod:748
26035 msgid ""
26036 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26037 "that)."
26038 msgstr ""
26039
26040 #. type: =head2
26041 #: ../src/guestfs-actions.pod:757
26042 msgid "guestfs_blockdev_getsz"
26043 msgstr "guestfs_blockdev_getsz"
26044
26045 #. type: verbatim
26046 #: ../src/guestfs-actions.pod:759
26047 #, no-wrap
26048 msgid ""
26049 " int64_t\n"
26050 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26051 "                         const char *device);\n"
26052 "\n"
26053 msgstr ""
26054 " int64_t\n"
26055 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26056 "                         const char *device);\n"
26057 "\n"
26058
26059 #. type: textblock
26060 #: ../src/guestfs-actions.pod:766
26061 msgid ""
26062 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26063 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26064 msgstr ""
26065
26066 #. type: =head2
26067 #: ../src/guestfs-actions.pod:776
26068 msgid "guestfs_blockdev_rereadpt"
26069 msgstr "guestfs_blockdev_rereadpt"
26070
26071 #. type: verbatim
26072 #: ../src/guestfs-actions.pod:778
26073 #, no-wrap
26074 msgid ""
26075 " int\n"
26076 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26077 "                            const char *device);\n"
26078 "\n"
26079 msgstr ""
26080 " int\n"
26081 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26082 "                            const char *device);\n"
26083 "\n"
26084
26085 #. type: =head2
26086 #: ../src/guestfs-actions.pod:790
26087 msgid "guestfs_blockdev_setbsz"
26088 msgstr "guestfs_blockdev_setbsz"
26089
26090 #. type: verbatim
26091 #: ../src/guestfs-actions.pod:792
26092 #, no-wrap
26093 msgid ""
26094 " int\n"
26095 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26096 "                          const char *device,\n"
26097 "                          int blocksize);\n"
26098 "\n"
26099 msgstr ""
26100 " int\n"
26101 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26102 "                          const char *device,\n"
26103 "                          int blocksize);\n"
26104 "\n"
26105
26106 #. type: =head2
26107 #: ../src/guestfs-actions.pod:808
26108 msgid "guestfs_blockdev_setro"
26109 msgstr "guestfs_blockdev_setro"
26110
26111 #. type: verbatim
26112 #: ../src/guestfs-actions.pod:810
26113 #, no-wrap
26114 msgid ""
26115 " int\n"
26116 " guestfs_blockdev_setro (guestfs_h *g,\n"
26117 "                         const char *device);\n"
26118 "\n"
26119 msgstr ""
26120 " int\n"
26121 " guestfs_blockdev_setro (guestfs_h *g,\n"
26122 "                         const char *device);\n"
26123 "\n"
26124
26125 #. type: =head2
26126 #: ../src/guestfs-actions.pod:822
26127 msgid "guestfs_blockdev_setrw"
26128 msgstr "guestfs_blockdev_setrw"
26129
26130 #. type: verbatim
26131 #: ../src/guestfs-actions.pod:824
26132 #, no-wrap
26133 msgid ""
26134 " int\n"
26135 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26136 "                         const char *device);\n"
26137 "\n"
26138 msgstr ""
26139 " int\n"
26140 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26141 "                         const char *device);\n"
26142 "\n"
26143
26144 #. type: =head2
26145 #: ../src/guestfs-actions.pod:836
26146 msgid "guestfs_btrfs_filesystem_resize"
26147 msgstr "guestfs_btrfs_filesystem_resize"
26148
26149 #. type: verbatim
26150 #: ../src/guestfs-actions.pod:838
26151 #, no-wrap
26152 msgid ""
26153 " int\n"
26154 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26155 "                                  const char *mountpoint,\n"
26156 "                                  ...);\n"
26157 "\n"
26158 msgstr ""
26159 " int\n"
26160 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26161 "                                  const char *mountpoint,\n"
26162 "                                  ...);\n"
26163 "\n"
26164
26165 #. type: verbatim
26166 #: ../src/guestfs-actions.pod:848
26167 #, no-wrap
26168 msgid ""
26169 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26170 "\n"
26171 msgstr ""
26172 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26173 "\n"
26174
26175 #. type: textblock
26176 #: ../src/guestfs-actions.pod:871
26177 msgid "(Added in 1.11.17)"
26178 msgstr "(Додано у 1.11.17)"
26179
26180 #. type: =head2
26181 #: ../src/guestfs-actions.pod:873
26182 msgid "guestfs_btrfs_filesystem_resize_va"
26183 msgstr "guestfs_btrfs_filesystem_resize_va"
26184
26185 #. type: verbatim
26186 #: ../src/guestfs-actions.pod:875
26187 #, no-wrap
26188 msgid ""
26189 " int\n"
26190 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26191 "                                     const char *mountpoint,\n"
26192 "                                     va_list args);\n"
26193 "\n"
26194 msgstr ""
26195 " int\n"
26196 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26197 "                                     const char *mountpoint,\n"
26198 "                                     va_list args);\n"
26199 "\n"
26200
26201 #. type: textblock
26202 #: ../src/guestfs-actions.pod:880
26203 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26204 msgstr ""
26205
26206 #. type: =head2
26207 #: ../src/guestfs-actions.pod:884
26208 msgid "guestfs_btrfs_filesystem_resize_argv"
26209 msgstr "guestfs_btrfs_filesystem_resize_argv"
26210
26211 #. type: verbatim
26212 #: ../src/guestfs-actions.pod:886
26213 #, no-wrap
26214 msgid ""
26215 " int\n"
26216 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26217 "                                       const char *mountpoint,\n"
26218 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26219 "\n"
26220 msgstr ""
26221 " int\n"
26222 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26223 "                                       const char *mountpoint,\n"
26224 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26225 "\n"
26226
26227 #. type: textblock
26228 #: ../src/guestfs-actions.pod:891
26229 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26230 msgstr ""
26231
26232 #. type: =head2
26233 #: ../src/guestfs-actions.pod:895
26234 msgid "guestfs_case_sensitive_path"
26235 msgstr ""
26236
26237 #. type: verbatim
26238 #: ../src/guestfs-actions.pod:897
26239 #, no-wrap
26240 msgid ""
26241 " char *\n"
26242 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26243 "                              const char *path);\n"
26244 "\n"
26245 msgstr ""
26246
26247 #. type: textblock
26248 #: ../src/guestfs-actions.pod:923
26249 msgid ""
26250 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
26251 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26252 "how the directories were originally created under Windows)."
26253 msgstr ""
26254
26255 #. type: textblock
26256 #: ../src/guestfs-actions.pod:931
26257 msgid "See also C<guestfs_realpath>."
26258 msgstr ""
26259
26260 #. type: textblock
26261 #: ../src/guestfs-actions.pod:936 ../src/guestfs-actions.pod:7565
26262 msgid "(Added in 1.0.75)"
26263 msgstr "(Додано у 1.0.75)"
26264
26265 #. type: =head2
26266 #: ../src/guestfs-actions.pod:938
26267 msgid "guestfs_cat"
26268 msgstr ""
26269
26270 #. type: verbatim
26271 #: ../src/guestfs-actions.pod:940
26272 #, no-wrap
26273 msgid ""
26274 " char *\n"
26275 " guestfs_cat (guestfs_h *g,\n"
26276 "              const char *path);\n"
26277 "\n"
26278 msgstr ""
26279
26280 #. type: textblock
26281 #: ../src/guestfs-actions.pod:946
26282 msgid ""
26283 "Note that this function cannot correctly handle binary files (specifically, "
26284 "files containing C<\\0> character which is treated as end of string).  For "
26285 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26286 "functions which have a more complex interface."
26287 msgstr ""
26288
26289 #. type: textblock
26290 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:3912
26291 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4011
26292 #: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:4507
26293 #: ../src/guestfs-actions.pod:4521 ../src/guestfs-actions.pod:5882
26294 #: ../src/guestfs-actions.pod:5896 ../src/guestfs-actions.pod:7718
26295 #: ../src/guestfs-actions.pod:7732
26296 msgid "(Added in 0.4)"
26297 msgstr "(Додано у 0.4)"
26298
26299 #. type: =head2
26300 #: ../src/guestfs-actions.pod:959
26301 msgid "guestfs_checksum"
26302 msgstr ""
26303
26304 #. type: verbatim
26305 #: ../src/guestfs-actions.pod:961
26306 #, no-wrap
26307 msgid ""
26308 " char *\n"
26309 " guestfs_checksum (guestfs_h *g,\n"
26310 "                   const char *csumtype,\n"
26311 "                   const char *path);\n"
26312 "\n"
26313 msgstr ""
26314
26315 #. type: textblock
26316 #: ../src/guestfs-actions.pod:1007
26317 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26318 msgstr ""
26319
26320 #. type: textblock
26321 #: ../src/guestfs-actions.pod:1009
26322 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26323 msgstr ""
26324
26325 #. type: textblock
26326 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1433
26327 #: ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:3610
26328 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3700
26329 #: ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:7421
26330 msgid "(Added in 1.0.2)"
26331 msgstr "(Додано у 1.0.2)"
26332
26333 #. type: =head2
26334 #: ../src/guestfs-actions.pod:1016
26335 msgid "guestfs_checksum_device"
26336 msgstr ""
26337
26338 #. type: verbatim
26339 #: ../src/guestfs-actions.pod:1018
26340 #, no-wrap
26341 msgid ""
26342 " char *\n"
26343 " guestfs_checksum_device (guestfs_h *g,\n"
26344 "                          const char *csumtype,\n"
26345 "                          const char *device);\n"
26346 "\n"
26347 msgstr ""
26348
26349 #. type: textblock
26350 #: ../src/guestfs-actions.pod:1023
26351 msgid ""
26352 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26353 "device named C<device>.  For the types of checksums supported see the "
26354 "C<guestfs_checksum> command."
26355 msgstr ""
26356
26357 #. type: textblock
26358 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:5331
26359 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5503
26360 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5703
26361 #: ../src/guestfs-actions.pod:7330 ../src/guestfs-actions.pod:7344
26362 #: ../src/guestfs-actions.pod:7744
26363 msgid "(Added in 1.3.2)"
26364 msgstr "(Додано у 1.3.2)"
26365
26366 #. type: =head2
26367 #: ../src/guestfs-actions.pod:1032
26368 msgid "guestfs_checksums_out"
26369 msgstr ""
26370
26371 #. type: verbatim
26372 #: ../src/guestfs-actions.pod:1034
26373 #, no-wrap
26374 msgid ""
26375 " int\n"
26376 " guestfs_checksums_out (guestfs_h *g,\n"
26377 "                        const char *csumtype,\n"
26378 "                        const char *directory,\n"
26379 "                        const char *sumsfile);\n"
26380 "\n"
26381 msgstr ""
26382
26383 #. type: textblock
26384 #: ../src/guestfs-actions.pod:1054
26385 msgid "(Added in 1.3.7)"
26386 msgstr "(Додано у 1.3.7)"
26387
26388 #. type: =head2
26389 #: ../src/guestfs-actions.pod:1056
26390 msgid "guestfs_chmod"
26391 msgstr ""
26392
26393 #. type: verbatim
26394 #: ../src/guestfs-actions.pod:1058
26395 #, no-wrap
26396 msgid ""
26397 " int\n"
26398 " guestfs_chmod (guestfs_h *g,\n"
26399 "                int mode,\n"
26400 "                const char *path);\n"
26401 "\n"
26402 msgstr ""
26403
26404 #. type: =head2
26405 #: ../src/guestfs-actions.pod:1076
26406 msgid "guestfs_chown"
26407 msgstr ""
26408
26409 #. type: verbatim
26410 #: ../src/guestfs-actions.pod:1078
26411 #, no-wrap
26412 msgid ""
26413 " int\n"
26414 " guestfs_chown (guestfs_h *g,\n"
26415 "                int owner,\n"
26416 "                int group,\n"
26417 "                const char *path);\n"
26418 "\n"
26419 msgstr ""
26420
26421 #. type: =head2
26422 #: ../src/guestfs-actions.pod:1094
26423 msgid "guestfs_command"
26424 msgstr ""
26425
26426 #. type: verbatim
26427 #: ../src/guestfs-actions.pod:1096
26428 #, no-wrap
26429 msgid ""
26430 " char *\n"
26431 " guestfs_command (guestfs_h *g,\n"
26432 "                  char *const *arguments);\n"
26433 "\n"
26434 msgstr ""
26435
26436 #. type: textblock
26437 #: ../src/guestfs-actions.pod:1105
26438 msgid ""
26439 "The single parameter is an argv-style list of arguments.  The first element "
26440 "is the name of the program to run.  Subsequent elements are parameters.  The "
26441 "list must be non-empty (ie. must contain a program name).  Note that the "
26442 "command runs directly, and is I<not> invoked via the shell (see "
26443 "C<guestfs_sh>)."
26444 msgstr ""
26445
26446 #. type: textblock
26447 #: ../src/guestfs-actions.pod:1136 ../src/guestfs-actions.pod:1156
26448 #: ../src/guestfs-actions.pod:1732
26449 msgid "(Added in 0.9.1)"
26450 msgstr "(Додано у 0.9.1)"
26451
26452 #. type: =head2
26453 #: ../src/guestfs-actions.pod:1138
26454 msgid "guestfs_command_lines"
26455 msgstr ""
26456
26457 #. type: verbatim
26458 #: ../src/guestfs-actions.pod:1140
26459 #, no-wrap
26460 msgid ""
26461 " char **\n"
26462 " guestfs_command_lines (guestfs_h *g,\n"
26463 "                        char *const *arguments);\n"
26464 "\n"
26465 msgstr ""
26466
26467 #. type: textblock
26468 #: ../src/guestfs-actions.pod:1144
26469 msgid ""
26470 "This is the same as C<guestfs_command>, but splits the result into a list of "
26471 "lines."
26472 msgstr ""
26473
26474 #. type: textblock
26475 #: ../src/guestfs-actions.pod:1147
26476 msgid "See also: C<guestfs_sh_lines>"
26477 msgstr ""
26478
26479 #. type: =head2
26480 #: ../src/guestfs-actions.pod:1158
26481 msgid "guestfs_compress_device_out"
26482 msgstr ""
26483
26484 #. type: verbatim
26485 #: ../src/guestfs-actions.pod:1160
26486 #, no-wrap
26487 msgid ""
26488 " int\n"
26489 " guestfs_compress_device_out (guestfs_h *g,\n"
26490 "                              const char *ctype,\n"
26491 "                              const char *device,\n"
26492 "                              const char *zdevice,\n"
26493 "                              ...);\n"
26494 "\n"
26495 msgstr ""
26496
26497 #. type: verbatim
26498 #: ../src/guestfs-actions.pod:1172
26499 #, no-wrap
26500 msgid ""
26501 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26502 "\n"
26503 msgstr ""
26504
26505 #. type: textblock
26506 #: ../src/guestfs-actions.pod:1177
26507 msgid ""
26508 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26509 "C<guestfs_compress_out>."
26510 msgstr ""
26511
26512 #. type: textblock
26513 #: ../src/guestfs-actions.pod:1182 ../src/guestfs-actions.pod:1241
26514 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:6602
26515 msgid "(Added in 1.13.15)"
26516 msgstr ""
26517
26518 #. type: =head2
26519 #: ../src/guestfs-actions.pod:1184
26520 msgid "guestfs_compress_device_out_va"
26521 msgstr ""
26522
26523 #. type: verbatim
26524 #: ../src/guestfs-actions.pod:1186
26525 #, no-wrap
26526 msgid ""
26527 " int\n"
26528 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26529 "                                 const char *ctype,\n"
26530 "                                 const char *device,\n"
26531 "                                 const char *zdevice,\n"
26532 "                                 va_list args);\n"
26533 "\n"
26534 msgstr ""
26535
26536 #. type: textblock
26537 #: ../src/guestfs-actions.pod:1193
26538 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26539 msgstr ""
26540
26541 #. type: =head2
26542 #: ../src/guestfs-actions.pod:1197
26543 msgid "guestfs_compress_device_out_argv"
26544 msgstr ""
26545
26546 #. type: verbatim
26547 #: ../src/guestfs-actions.pod:1199
26548 #, no-wrap
26549 msgid ""
26550 " int\n"
26551 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26552 "                                   const char *ctype,\n"
26553 "                                   const char *device,\n"
26554 "                                   const char *zdevice,\n"
26555 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
26556 "\n"
26557 msgstr ""
26558
26559 #. type: textblock
26560 #: ../src/guestfs-actions.pod:1206
26561 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26562 msgstr ""
26563
26564 #. type: =head2
26565 #: ../src/guestfs-actions.pod:1210
26566 msgid "guestfs_compress_out"
26567 msgstr ""
26568
26569 #. type: verbatim
26570 #: ../src/guestfs-actions.pod:1212
26571 #, no-wrap
26572 msgid ""
26573 " int\n"
26574 " guestfs_compress_out (guestfs_h *g,\n"
26575 "                       const char *ctype,\n"
26576 "                       const char *file,\n"
26577 "                       const char *zfile,\n"
26578 "                       ...);\n"
26579 "\n"
26580 msgstr ""
26581
26582 #. type: verbatim
26583 #: ../src/guestfs-actions.pod:1224
26584 #, no-wrap
26585 msgid ""
26586 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26587 "\n"
26588 msgstr ""
26589
26590 #. type: =head2
26591 #: ../src/guestfs-actions.pod:1243
26592 msgid "guestfs_compress_out_va"
26593 msgstr ""
26594
26595 #. type: verbatim
26596 #: ../src/guestfs-actions.pod:1245
26597 #, no-wrap
26598 msgid ""
26599 " int\n"
26600 " guestfs_compress_out_va (guestfs_h *g,\n"
26601 "                          const char *ctype,\n"
26602 "                          const char *file,\n"
26603 "                          const char *zfile,\n"
26604 "                          va_list args);\n"
26605 "\n"
26606 msgstr ""
26607
26608 #. type: textblock
26609 #: ../src/guestfs-actions.pod:1252
26610 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26611 msgstr ""
26612
26613 #. type: =head2
26614 #: ../src/guestfs-actions.pod:1256
26615 msgid "guestfs_compress_out_argv"
26616 msgstr ""
26617
26618 #. type: verbatim
26619 #: ../src/guestfs-actions.pod:1258
26620 #, no-wrap
26621 msgid ""
26622 " int\n"
26623 " guestfs_compress_out_argv (guestfs_h *g,\n"
26624 "                            const char *ctype,\n"
26625 "                            const char *file,\n"
26626 "                            const char *zfile,\n"
26627 "                            const struct guestfs_compress_out_argv *optargs);\n"
26628 "\n"
26629 msgstr ""
26630
26631 #. type: textblock
26632 #: ../src/guestfs-actions.pod:1265
26633 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26634 msgstr ""
26635
26636 #. type: =head2
26637 #: ../src/guestfs-actions.pod:1269
26638 msgid "guestfs_config"
26639 msgstr ""
26640
26641 #. type: verbatim
26642 #: ../src/guestfs-actions.pod:1271
26643 #, no-wrap
26644 msgid ""
26645 " int\n"
26646 " guestfs_config (guestfs_h *g,\n"
26647 "                 const char *qemuparam,\n"
26648 "                 const char *qemuvalue);\n"
26649 "\n"
26650 msgstr ""
26651
26652 #. type: =head2
26653 #: ../src/guestfs-actions.pod:1289
26654 msgid "guestfs_copy_size"
26655 msgstr ""
26656
26657 #. type: verbatim
26658 #: ../src/guestfs-actions.pod:1291
26659 #, no-wrap
26660 msgid ""
26661 " int\n"
26662 " guestfs_copy_size (guestfs_h *g,\n"
26663 "                    const char *src,\n"
26664 "                    const char *dest,\n"
26665 "                    int64_t size);\n"
26666 "\n"
26667 msgstr ""
26668
26669 #. type: textblock
26670 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1428
26671 #: ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1504
26672 #: ../src/guestfs-actions.pod:1881 ../src/guestfs-actions.pod:1903
26673 #: ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:7416
26674 #: ../src/guestfs-actions.pod:7450 ../src/guestfs-actions.pod:7957
26675 #: ../src/guestfs-actions.pod:7980
26676 msgid ""
26677 "This long-running command can generate progress notification messages so "
26678 "that the caller can display a progress bar or indicator.  To receive these "
26679 "messages, the caller must register a progress event callback.  See L<guestfs"
26680 "(3)/GUESTFS_EVENT_PROGRESS>."
26681 msgstr ""
26682
26683 #. type: textblock
26684 #: ../src/guestfs-actions.pod:1310 ../src/guestfs-actions.pod:4534
26685 #: ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:7651
26686 #: ../src/guestfs-actions.pod:7671 ../src/guestfs-actions.pod:7757
26687 msgid "(Added in 1.0.87)"
26688 msgstr "(Додано у 1.0.87)"
26689
26690 #. type: =head2
26691 #: ../src/guestfs-actions.pod:1312
26692 msgid "guestfs_cp"
26693 msgstr ""
26694
26695 #. type: verbatim
26696 #: ../src/guestfs-actions.pod:1314
26697 #, no-wrap
26698 msgid ""
26699 " int\n"
26700 " guestfs_cp (guestfs_h *g,\n"
26701 "             const char *src,\n"
26702 "             const char *dest);\n"
26703 "\n"
26704 msgstr ""
26705
26706 #. type: textblock
26707 #: ../src/guestfs-actions.pod:1324 ../src/guestfs-actions.pod:1338
26708 #: ../src/guestfs-actions.pod:1410 ../src/guestfs-actions.pod:1484
26709 #: ../src/guestfs-actions.pod:1598 ../src/guestfs-actions.pod:5278
26710 #: ../src/guestfs-actions.pod:5753
26711 msgid "(Added in 1.0.18)"
26712 msgstr "(Додано у 1.0.18)"
26713
26714 #. type: =head2
26715 #: ../src/guestfs-actions.pod:1326
26716 msgid "guestfs_cp_a"
26717 msgstr ""
26718
26719 #. type: verbatim
26720 #: ../src/guestfs-actions.pod:1328
26721 #, no-wrap
26722 msgid ""
26723 " int\n"
26724 " guestfs_cp_a (guestfs_h *g,\n"
26725 "               const char *src,\n"
26726 "               const char *dest);\n"
26727 "\n"
26728 msgstr ""
26729
26730 #. type: =head2
26731 #: ../src/guestfs-actions.pod:1340
26732 msgid "guestfs_dd"
26733 msgstr ""
26734
26735 #. type: verbatim
26736 #: ../src/guestfs-actions.pod:1342
26737 #, no-wrap
26738 msgid ""
26739 " int\n"
26740 " guestfs_dd (guestfs_h *g,\n"
26741 "             const char *src,\n"
26742 "             const char *dest);\n"
26743 "\n"
26744 msgstr ""
26745
26746 #. type: textblock
26747 #: ../src/guestfs-actions.pod:1352
26748 msgid ""
26749 "If the destination is a device, it must be as large or larger than the "
26750 "source file or device, otherwise the copy will fail.  This command cannot do "
26751 "partial copies (see C<guestfs_copy_size>)."
26752 msgstr ""
26753
26754 #. type: =head2
26755 #: ../src/guestfs-actions.pod:1360
26756 msgid "guestfs_df"
26757 msgstr ""
26758
26759 #. type: verbatim
26760 #: ../src/guestfs-actions.pod:1362
26761 #, no-wrap
26762 msgid ""
26763 " char *\n"
26764 " guestfs_df (guestfs_h *g);\n"
26765 "\n"
26766 msgstr ""
26767
26768 #. type: textblock
26769 #: ../src/guestfs-actions.pod:1367 ../src/guestfs-actions.pod:1384
26770 msgid ""
26771 "This command is mostly useful for interactive sessions.  It is I<not> "
26772 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
26773 "from programs."
26774 msgstr ""
26775
26776 #. type: textblock
26777 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1391
26778 #: ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:2516
26779 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2608
26780 #: ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:5178
26781 #: ../src/guestfs-actions.pod:7154 ../src/guestfs-actions.pod:7178
26782 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7810
26783 #: ../src/guestfs-actions.pod:7823
26784 msgid "(Added in 1.0.54)"
26785 msgstr "(Додано у 1.0.54)"
26786
26787 #. type: =head2
26788 #: ../src/guestfs-actions.pod:1376
26789 msgid "guestfs_df_h"
26790 msgstr ""
26791
26792 #. type: verbatim
26793 #: ../src/guestfs-actions.pod:1378
26794 #, no-wrap
26795 msgid ""
26796 " char *\n"
26797 " guestfs_df_h (guestfs_h *g);\n"
26798 "\n"
26799 msgstr ""
26800
26801 #. type: =head2
26802 #: ../src/guestfs-actions.pod:1393
26803 msgid "guestfs_dmesg"
26804 msgstr ""
26805
26806 #. type: verbatim
26807 #: ../src/guestfs-actions.pod:1395
26808 #, no-wrap
26809 msgid ""
26810 " char *\n"
26811 " guestfs_dmesg (guestfs_h *g);\n"
26812 "\n"
26813 msgstr ""
26814
26815 #. type: textblock
26816 #: ../src/guestfs-actions.pod:1402
26817 msgid ""
26818 "Another way to get the same information is to enable verbose messages with "
26819 "C<guestfs_set_verbose> or by setting the environment variable "
26820 "C<LIBGUESTFS_DEBUG=1> before running the program."
26821 msgstr ""
26822
26823 #. type: =head2
26824 #: ../src/guestfs-actions.pod:1412
26825 msgid "guestfs_download"
26826 msgstr ""
26827
26828 #. type: verbatim
26829 #: ../src/guestfs-actions.pod:1414
26830 #, no-wrap
26831 msgid ""
26832 " int\n"
26833 " guestfs_download (guestfs_h *g,\n"
26834 "                   const char *remotefilename,\n"
26835 "                   const char *filename);\n"
26836 "\n"
26837 msgstr ""
26838
26839 #. type: textblock
26840 #: ../src/guestfs-actions.pod:1424
26841 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26842 msgstr ""
26843
26844 #. type: =head2
26845 #: ../src/guestfs-actions.pod:1435
26846 msgid "guestfs_download_offset"
26847 msgstr ""
26848
26849 #. type: verbatim
26850 #: ../src/guestfs-actions.pod:1437
26851 #, no-wrap
26852 msgid ""
26853 " int\n"
26854 " guestfs_download_offset (guestfs_h *g,\n"
26855 "                          const char *remotefilename,\n"
26856 "                          const char *filename,\n"
26857 "                          int64_t offset,\n"
26858 "                          int64_t size);\n"
26859 "\n"
26860 msgstr ""
26861
26862 #. type: textblock
26863 #: ../src/guestfs-actions.pod:1450
26864 msgid ""
26865 "Note that there is no limit on the amount of data that can be downloaded "
26866 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26867 "full amount unless an error occurs."
26868 msgstr ""
26869
26870 #. type: textblock
26871 #: ../src/guestfs-actions.pod:1455
26872 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26873 msgstr ""
26874
26875 #. type: textblock
26876 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:7455
26877 msgid "(Added in 1.5.17)"
26878 msgstr "(Додано у 1.5.17)"
26879
26880 #. type: =head2
26881 #: ../src/guestfs-actions.pod:1466
26882 msgid "guestfs_drop_caches"
26883 msgstr ""
26884
26885 #. type: verbatim
26886 #: ../src/guestfs-actions.pod:1468
26887 #, no-wrap
26888 msgid ""
26889 " int\n"
26890 " guestfs_drop_caches (guestfs_h *g,\n"
26891 "                      int whattodrop);\n"
26892 "\n"
26893 msgstr ""
26894
26895 #. type: =head2
26896 #: ../src/guestfs-actions.pod:1486
26897 msgid "guestfs_du"
26898 msgstr ""
26899
26900 #. type: verbatim
26901 #: ../src/guestfs-actions.pod:1488
26902 #, no-wrap
26903 msgid ""
26904 " int64_t\n"
26905 " guestfs_du (guestfs_h *g,\n"
26906 "             const char *path);\n"
26907 "\n"
26908 msgstr ""
26909
26910 #. type: =head2
26911 #: ../src/guestfs-actions.pod:1511
26912 msgid "guestfs_e2fsck_f"
26913 msgstr ""
26914
26915 #. type: verbatim
26916 #: ../src/guestfs-actions.pod:1513
26917 #, no-wrap
26918 msgid ""
26919 " int\n"
26920 " guestfs_e2fsck_f (guestfs_h *g,\n"
26921 "                   const char *device);\n"
26922 "\n"
26923 msgstr ""
26924
26925 #. type: textblock
26926 #: ../src/guestfs-actions.pod:1521
26927 msgid ""
26928 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
26929 "Normally you should use C<guestfs_fsck>."
26930 msgstr ""
26931
26932 #. type: textblock
26933 #: ../src/guestfs-actions.pod:1526
26934 msgid "(Added in 1.0.29)"
26935 msgstr "(Додано у 1.0.29)"
26936
26937 #. type: =head2
26938 #: ../src/guestfs-actions.pod:1528
26939 msgid "guestfs_echo_daemon"
26940 msgstr "guestfs_echo_daemon"
26941
26942 #. type: verbatim
26943 #: ../src/guestfs-actions.pod:1530
26944 #, no-wrap
26945 msgid ""
26946 " char *\n"
26947 " guestfs_echo_daemon (guestfs_h *g,\n"
26948 "                      char *const *words);\n"
26949 "\n"
26950 msgstr ""
26951 " char *\n"
26952 " guestfs_echo_daemon (guestfs_h *g,\n"
26953 "                      char *const *words);\n"
26954 "\n"
26955
26956 #. type: textblock
26957 #: ../src/guestfs-actions.pod:1539
26958 msgid "See also C<guestfs_ping_daemon>."
26959 msgstr ""
26960
26961 #. type: textblock
26962 #: ../src/guestfs-actions.pod:1544 ../src/guestfs-actions.pod:2302
26963 #: ../src/guestfs-actions.pod:6626
26964 msgid "(Added in 1.0.69)"
26965 msgstr "(Додано у 1.0.69)"
26966
26967 #. type: =head2
26968 #: ../src/guestfs-actions.pod:1546
26969 msgid "guestfs_egrep"
26970 msgstr "guestfs_egrep"
26971
26972 #. type: verbatim
26973 #: ../src/guestfs-actions.pod:1548
26974 #, no-wrap
26975 msgid ""
26976 " char **\n"
26977 " guestfs_egrep (guestfs_h *g,\n"
26978 "                const char *regex,\n"
26979 "                const char *path);\n"
26980 "\n"
26981 msgstr ""
26982 " char **\n"
26983 " guestfs_egrep (guestfs_h *g,\n"
26984 "                const char *regex,\n"
26985 "                const char *path);\n"
26986 "\n"
26987
26988 #. type: textblock
26989 #: ../src/guestfs-actions.pod:1563 ../src/guestfs-actions.pod:1582
26990 #: ../src/guestfs-actions.pod:1639 ../src/guestfs-actions.pod:1685
26991 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:2432
26992 #: ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2629
26993 #: ../src/guestfs-actions.pod:2642 ../src/guestfs-actions.pod:2657
26994 #: ../src/guestfs-actions.pod:2703 ../src/guestfs-actions.pod:2725
26995 #: ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:4024
26996 #: ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4051
26997 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:5066
26998 #: ../src/guestfs-actions.pod:6087 ../src/guestfs-actions.pod:6136
26999 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7034
27000 #: ../src/guestfs-actions.pod:7047 ../src/guestfs-actions.pod:7060
27001 #: ../src/guestfs-actions.pod:7082 ../src/guestfs-actions.pod:7095
27002 #: ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7121
27003 #: ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:7934
27004 #: ../src/guestfs-actions.pod:8028 ../src/guestfs-actions.pod:8047
27005 #: ../src/guestfs-actions.pod:8093 ../src/guestfs-actions.pod:8112
27006 msgid "(Added in 1.0.66)"
27007 msgstr "(Додано у 1.0.66)"
27008
27009 #. type: =head2
27010 #: ../src/guestfs-actions.pod:1565
27011 msgid "guestfs_egrepi"
27012 msgstr "guestfs_egrepi"
27013
27014 #. type: verbatim
27015 #: ../src/guestfs-actions.pod:1567
27016 #, no-wrap
27017 msgid ""
27018 " char **\n"
27019 " guestfs_egrepi (guestfs_h *g,\n"
27020 "                 const char *regex,\n"
27021 "                 const char *path);\n"
27022 "\n"
27023 msgstr ""
27024
27025 #. type: =head2
27026 #: ../src/guestfs-actions.pod:1584
27027 msgid "guestfs_equal"
27028 msgstr ""
27029
27030 #. type: verbatim
27031 #: ../src/guestfs-actions.pod:1586
27032 #, no-wrap
27033 msgid ""
27034 " int\n"
27035 " guestfs_equal (guestfs_h *g,\n"
27036 "                const char *file1,\n"
27037 "                const char *file2);\n"
27038 "\n"
27039 msgstr ""
27040
27041 #. type: =head2
27042 #: ../src/guestfs-actions.pod:1600
27043 msgid "guestfs_exists"
27044 msgstr ""
27045
27046 #. type: verbatim
27047 #: ../src/guestfs-actions.pod:1602
27048 #, no-wrap
27049 msgid ""
27050 " int\n"
27051 " guestfs_exists (guestfs_h *g,\n"
27052 "                 const char *path);\n"
27053 "\n"
27054 msgstr ""
27055
27056 #. type: textblock
27057 #: ../src/guestfs-actions.pod:1609
27058 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27059 msgstr ""
27060
27061 #. type: =head2
27062 #: ../src/guestfs-actions.pod:1615
27063 msgid "guestfs_fallocate"
27064 msgstr ""
27065
27066 #. type: verbatim
27067 #: ../src/guestfs-actions.pod:1617
27068 #, no-wrap
27069 msgid ""
27070 " int\n"
27071 " guestfs_fallocate (guestfs_h *g,\n"
27072 "                    const char *path,\n"
27073 "                    int len);\n"
27074 "\n"
27075 msgstr ""
27076
27077 #. type: textblock
27078 #: ../src/guestfs-actions.pod:1622
27079 msgid ""
27080 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27081 "call instead."
27082 msgstr ""
27083
27084 #. type: =head2
27085 #: ../src/guestfs-actions.pod:1641
27086 msgid "guestfs_fallocate64"
27087 msgstr ""
27088
27089 #. type: verbatim
27090 #: ../src/guestfs-actions.pod:1643
27091 #, no-wrap
27092 msgid ""
27093 " int\n"
27094 " guestfs_fallocate64 (guestfs_h *g,\n"
27095 "                      const char *path,\n"
27096 "                      int64_t len);\n"
27097 "\n"
27098 msgstr ""
27099
27100 #. type: textblock
27101 #: ../src/guestfs-actions.pod:1652
27102 msgid ""
27103 "Note that this call allocates disk blocks for the file.  To create a sparse "
27104 "file use C<guestfs_truncate_size> instead."
27105 msgstr ""
27106
27107 #. type: textblock
27108 #: ../src/guestfs-actions.pod:1655
27109 msgid ""
27110 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27111 "oversight it only allowed 30 bit lengths to be specified, effectively "
27112 "limiting the maximum size of files created through that call to 1GB."
27113 msgstr ""
27114
27115 #. type: textblock
27116 #: ../src/guestfs-actions.pod:1666
27117 msgid "(Added in 1.3.17)"
27118 msgstr "(Додано у 1.3.17)"
27119
27120 #. type: =head2
27121 #: ../src/guestfs-actions.pod:1668
27122 msgid "guestfs_fgrep"
27123 msgstr ""
27124
27125 #. type: verbatim
27126 #: ../src/guestfs-actions.pod:1670
27127 #, no-wrap
27128 msgid ""
27129 " char **\n"
27130 " guestfs_fgrep (guestfs_h *g,\n"
27131 "                const char *pattern,\n"
27132 "                const char *path);\n"
27133 "\n"
27134 msgstr ""
27135
27136 #. type: =head2
27137 #: ../src/guestfs-actions.pod:1687
27138 msgid "guestfs_fgrepi"
27139 msgstr ""
27140
27141 #. type: verbatim
27142 #: ../src/guestfs-actions.pod:1689
27143 #, no-wrap
27144 msgid ""
27145 " char **\n"
27146 " guestfs_fgrepi (guestfs_h *g,\n"
27147 "                 const char *pattern,\n"
27148 "                 const char *path);\n"
27149 "\n"
27150 msgstr ""
27151
27152 #. type: =head2
27153 #: ../src/guestfs-actions.pod:1706
27154 msgid "guestfs_file"
27155 msgstr ""
27156
27157 #. type: verbatim
27158 #: ../src/guestfs-actions.pod:1708
27159 #, no-wrap
27160 msgid ""
27161 " char *\n"
27162 " guestfs_file (guestfs_h *g,\n"
27163 "               const char *path);\n"
27164 "\n"
27165 msgstr ""
27166
27167 #. type: textblock
27168 #: ../src/guestfs-actions.pod:1726
27169 msgid ""
27170 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27171 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27172 msgstr ""
27173
27174 #. type: =head2
27175 #: ../src/guestfs-actions.pod:1734
27176 msgid "guestfs_file_architecture"
27177 msgstr ""
27178
27179 #. type: verbatim
27180 #: ../src/guestfs-actions.pod:1736
27181 #, no-wrap
27182 msgid ""
27183 " char *\n"
27184 " guestfs_file_architecture (guestfs_h *g,\n"
27185 "                            const char *filename);\n"
27186 "\n"
27187 msgstr ""
27188
27189 #. type: textblock
27190 #: ../src/guestfs-actions.pod:1844 ../src/guestfs-actions.pod:2007
27191 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2758
27192 #: ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2926
27193 #: ../src/guestfs-actions.pod:3113 ../src/guestfs-actions.pod:3131
27194 #: ../src/guestfs-actions.pod:3171 ../src/guestfs-actions.pod:3247
27195 #: ../src/guestfs-actions.pod:3344 ../src/guestfs-actions.pod:3581
27196 #: ../src/guestfs-actions.pod:3713
27197 msgid "(Added in 1.5.3)"
27198 msgstr "(Додано у 1.5.3)"
27199
27200 #. type: =head2
27201 #: ../src/guestfs-actions.pod:1846
27202 msgid "guestfs_filesize"
27203 msgstr ""
27204
27205 #. type: verbatim
27206 #: ../src/guestfs-actions.pod:1848
27207 #, no-wrap
27208 msgid ""
27209 " int64_t\n"
27210 " guestfs_filesize (guestfs_h *g,\n"
27211 "                   const char *file);\n"
27212 "\n"
27213 msgstr ""
27214
27215 #. type: textblock
27216 #: ../src/guestfs-actions.pod:1854
27217 msgid ""
27218 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27219 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27220 "devices, use C<guestfs_blockdev_getsize64>."
27221 msgstr ""
27222
27223 #. type: textblock
27224 #: ../src/guestfs-actions.pod:1860
27225 msgid "(Added in 1.0.82)"
27226 msgstr "(Додано у 1.0.82)"
27227
27228 #. type: =head2
27229 #: ../src/guestfs-actions.pod:1862
27230 msgid "guestfs_fill"
27231 msgstr ""
27232
27233 #. type: verbatim
27234 #: ../src/guestfs-actions.pod:1864
27235 #, no-wrap
27236 msgid ""
27237 " int\n"
27238 " guestfs_fill (guestfs_h *g,\n"
27239 "               int c,\n"
27240 "               int len,\n"
27241 "               const char *path);\n"
27242 "\n"
27243 msgstr ""
27244
27245 #. type: textblock
27246 #: ../src/guestfs-actions.pod:1874
27247 msgid ""
27248 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27249 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27250 "bytes use C<guestfs_fill_pattern>."
27251 msgstr ""
27252
27253 #. type: textblock
27254 #: ../src/guestfs-actions.pod:1886
27255 msgid "(Added in 1.0.79)"
27256 msgstr "(Додано у 1.0.79)"
27257
27258 #. type: =head2
27259 #: ../src/guestfs-actions.pod:1888
27260 msgid "guestfs_fill_pattern"
27261 msgstr ""
27262
27263 #. type: verbatim
27264 #: ../src/guestfs-actions.pod:1890
27265 #, no-wrap
27266 msgid ""
27267 " int\n"
27268 " guestfs_fill_pattern (guestfs_h *g,\n"
27269 "                       const char *pattern,\n"
27270 "                       int len,\n"
27271 "                       const char *path);\n"
27272 "\n"
27273 msgstr ""
27274
27275 #. type: textblock
27276 #: ../src/guestfs-actions.pod:1896
27277 msgid ""
27278 "This function is like C<guestfs_fill> except that it creates a new file of "
27279 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27280 "pattern is truncated if necessary to ensure the length of the file is "
27281 "exactly C<len> bytes."
27282 msgstr ""
27283
27284 #. type: textblock
27285 #: ../src/guestfs-actions.pod:1908
27286 msgid "(Added in 1.3.12)"
27287 msgstr "(Додано у 1.3.12)"
27288
27289 #. type: =head2
27290 #: ../src/guestfs-actions.pod:1910
27291 msgid "guestfs_find"
27292 msgstr ""
27293
27294 #. type: verbatim
27295 #: ../src/guestfs-actions.pod:1912
27296 #, no-wrap
27297 msgid ""
27298 " char **\n"
27299 " guestfs_find (guestfs_h *g,\n"
27300 "               const char *directory);\n"
27301 "\n"
27302 msgstr ""
27303
27304 #. type: textblock
27305 #: ../src/guestfs-actions.pod:1928
27306 msgid ""
27307 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27308 msgstr ""
27309
27310 #. type: textblock
27311 #: ../src/guestfs-actions.pod:1941
27312 msgid "See also C<guestfs_find0>."
27313 msgstr ""
27314
27315 #. type: textblock
27316 #: ../src/guestfs-actions.pod:1950 ../src/guestfs-actions.pod:4471
27317 #: ../src/guestfs-actions.pod:6171
27318 msgid "(Added in 1.0.27)"
27319 msgstr "(Додано у 1.0.27)"
27320
27321 #. type: =head2
27322 #: ../src/guestfs-actions.pod:1952
27323 msgid "guestfs_find0"
27324 msgstr ""
27325
27326 #. type: verbatim
27327 #: ../src/guestfs-actions.pod:1954
27328 #, no-wrap
27329 msgid ""
27330 " int\n"
27331 " guestfs_find0 (guestfs_h *g,\n"
27332 "                const char *directory,\n"
27333 "                const char *files);\n"
27334 "\n"
27335 msgstr ""
27336
27337 #. type: textblock
27338 #: ../src/guestfs-actions.pod:1963
27339 msgid ""
27340 "This command works the same way as C<guestfs_find> with the following "
27341 "exceptions:"
27342 msgstr ""
27343
27344 #. type: textblock
27345 #: ../src/guestfs-actions.pod:1990
27346 msgid "(Added in 1.0.74)"
27347 msgstr "(Додано у 1.0.74)"
27348
27349 #. type: =head2
27350 #: ../src/guestfs-actions.pod:1992
27351 msgid "guestfs_findfs_label"
27352 msgstr ""
27353
27354 #. type: verbatim
27355 #: ../src/guestfs-actions.pod:1994
27356 #, no-wrap
27357 msgid ""
27358 " char *\n"
27359 " guestfs_findfs_label (guestfs_h *g,\n"
27360 "                       const char *label);\n"
27361 "\n"
27362 msgstr ""
27363
27364 #. type: textblock
27365 #: ../src/guestfs-actions.pod:2002
27366 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27367 msgstr ""
27368
27369 #. type: =head2
27370 #: ../src/guestfs-actions.pod:2009
27371 msgid "guestfs_findfs_uuid"
27372 msgstr ""
27373
27374 #. type: verbatim
27375 #: ../src/guestfs-actions.pod:2011
27376 #, no-wrap
27377 msgid ""
27378 " char *\n"
27379 " guestfs_findfs_uuid (guestfs_h *g,\n"
27380 "                      const char *uuid);\n"
27381 "\n"
27382 msgstr ""
27383
27384 #. type: textblock
27385 #: ../src/guestfs-actions.pod:2019
27386 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27387 msgstr ""
27388
27389 #. type: =head2
27390 #: ../src/guestfs-actions.pod:2026
27391 msgid "guestfs_fsck"
27392 msgstr ""
27393
27394 #. type: verbatim
27395 #: ../src/guestfs-actions.pod:2028
27396 #, no-wrap
27397 msgid ""
27398 " int\n"
27399 " guestfs_fsck (guestfs_h *g,\n"
27400 "               const char *fstype,\n"
27401 "               const char *device);\n"
27402 "\n"
27403 msgstr ""
27404
27405 #. type: textblock
27406 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:7962
27407 msgid "(Added in 1.0.16)"
27408 msgstr "(Додано у 1.0.16)"
27409
27410 #. type: =head2
27411 #: ../src/guestfs-actions.pod:2065
27412 msgid "guestfs_get_append"
27413 msgstr ""
27414
27415 #. type: verbatim
27416 #: ../src/guestfs-actions.pod:2067
27417 #, no-wrap
27418 msgid ""
27419 " const char *\n"
27420 " guestfs_get_append (guestfs_h *g);\n"
27421 "\n"
27422 msgstr ""
27423
27424 #. type: textblock
27425 #: ../src/guestfs-actions.pod:2075
27426 msgid ""
27427 "This function returns a string which may be NULL.  There is no way to return "
27428 "an error from this function.  The string is owned by the guest handle and "
27429 "must I<not> be freed."
27430 msgstr ""
27431
27432 #. type: textblock
27433 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:5849
27434 #: ../src/guestfs-actions.pod:6331 ../src/guestfs-actions.pod:6789
27435 #: ../src/guestfs-actions.pod:6808 ../src/guestfs-actions.pod:6824
27436 #: ../src/guestfs-actions.pod:6848 ../src/guestfs-actions.pod:7602
27437 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:8009
27438 msgid "(Added in 1.0.26)"
27439 msgstr "(Додано у 1.0.26)"
27440
27441 #. type: =head2
27442 #: ../src/guestfs-actions.pod:2081
27443 msgid "guestfs_get_attach_method"
27444 msgstr ""
27445
27446 #. type: verbatim
27447 #: ../src/guestfs-actions.pod:2083
27448 #, no-wrap
27449 msgid ""
27450 " char *\n"
27451 " guestfs_get_attach_method (guestfs_h *g);\n"
27452 "\n"
27453 msgstr ""
27454
27455 #. type: textblock
27456 #: ../src/guestfs-actions.pod:2086
27457 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27458 msgstr ""
27459
27460 #. type: textblock
27461 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:6361
27462 msgid "(Added in 1.9.8)"
27463 msgstr "(Додано у 1.9.8)"
27464
27465 #. type: =head2
27466 #: ../src/guestfs-actions.pod:2093
27467 msgid "guestfs_get_autosync"
27468 msgstr ""
27469
27470 #. type: verbatim
27471 #: ../src/guestfs-actions.pod:2095
27472 #, no-wrap
27473 msgid ""
27474 " int\n"
27475 " guestfs_get_autosync (guestfs_h *g);\n"
27476 "\n"
27477 msgstr ""
27478
27479 #. type: =head2
27480 #: ../src/guestfs-actions.pod:2104
27481 msgid "guestfs_get_direct"
27482 msgstr ""
27483
27484 #. type: verbatim
27485 #: ../src/guestfs-actions.pod:2106
27486 #, no-wrap
27487 msgid ""
27488 " int\n"
27489 " guestfs_get_direct (guestfs_h *g);\n"
27490 "\n"
27491 msgstr ""
27492
27493 #. type: textblock
27494 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:6402
27495 msgid "(Added in 1.0.72)"
27496 msgstr "(Додано у 1.0.72)"
27497
27498 #. type: =head2
27499 #: ../src/guestfs-actions.pod:2115
27500 msgid "guestfs_get_e2label"
27501 msgstr ""
27502
27503 #. type: verbatim
27504 #: ../src/guestfs-actions.pod:2117
27505 #, no-wrap
27506 msgid ""
27507 " char *\n"
27508 " guestfs_get_e2label (guestfs_h *g,\n"
27509 "                      const char *device);\n"
27510 "\n"
27511 msgstr ""
27512
27513 #. type: textblock
27514 #: ../src/guestfs-actions.pod:2121
27515 msgid ""
27516 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27517 "call instead."
27518 msgstr ""
27519
27520 #. type: textblock
27521 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:2155
27522 #: ../src/guestfs-actions.pod:6420 ../src/guestfs-actions.pod:6439
27523 msgid "(Added in 1.0.15)"
27524 msgstr "(Додано у 1.0.15)"
27525
27526 #. type: =head2
27527 #: ../src/guestfs-actions.pod:2136
27528 msgid "guestfs_get_e2uuid"
27529 msgstr ""
27530
27531 #. type: verbatim
27532 #: ../src/guestfs-actions.pod:2138
27533 #, no-wrap
27534 msgid ""
27535 " char *\n"
27536 " guestfs_get_e2uuid (guestfs_h *g,\n"
27537 "                     const char *device);\n"
27538 "\n"
27539 msgstr ""
27540
27541 #. type: textblock
27542 #: ../src/guestfs-actions.pod:2142
27543 msgid ""
27544 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27545 "call instead."
27546 msgstr ""
27547
27548 #. type: =head2
27549 #: ../src/guestfs-actions.pod:2157
27550 msgid "guestfs_get_memsize"
27551 msgstr ""
27552
27553 #. type: verbatim
27554 #: ../src/guestfs-actions.pod:2159
27555 #, no-wrap
27556 msgid ""
27557 " int\n"
27558 " guestfs_get_memsize (guestfs_h *g);\n"
27559 "\n"
27560 msgstr ""
27561
27562 #. type: textblock
27563 #: ../src/guestfs-actions.pod:2165
27564 msgid ""
27565 "If C<guestfs_set_memsize> was not called on this handle, and if "
27566 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27567 "value for memsize."
27568 msgstr ""
27569
27570 #. type: textblock
27571 #: ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:4762
27572 #: ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4990
27573 #: ../src/guestfs-actions.pod:5009 ../src/guestfs-actions.pod:5021
27574 #: ../src/guestfs-actions.pod:5038 ../src/guestfs-actions.pod:5051
27575 #: ../src/guestfs-actions.pod:6074 ../src/guestfs-actions.pod:6460
27576 #: ../src/guestfs-actions.pod:6756 ../src/guestfs-actions.pod:7371
27577 msgid "(Added in 1.0.55)"
27578 msgstr "(Додано у 1.0.55)"
27579
27580 #. type: =head2
27581 #: ../src/guestfs-actions.pod:2176
27582 msgid "guestfs_get_network"
27583 msgstr ""
27584
27585 #. type: verbatim
27586 #: ../src/guestfs-actions.pod:2178
27587 #, no-wrap
27588 msgid ""
27589 " int\n"
27590 " guestfs_get_network (guestfs_h *g);\n"
27591 "\n"
27592 msgstr ""
27593
27594 #. type: textblock
27595 #: ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:6479
27596 msgid "(Added in 1.5.4)"
27597 msgstr "(Додано у 1.5.4)"
27598
27599 #. type: =head2
27600 #: ../src/guestfs-actions.pod:2187
27601 msgid "guestfs_get_path"
27602 msgstr ""
27603
27604 #. type: verbatim
27605 #: ../src/guestfs-actions.pod:2189
27606 #, no-wrap
27607 msgid ""
27608 " const char *\n"
27609 " guestfs_get_path (guestfs_h *g);\n"
27610 "\n"
27611 msgstr ""
27612
27613 #. type: textblock
27614 #: ../src/guestfs-actions.pod:2197 ../src/guestfs-actions.pod:2237
27615 msgid ""
27616 "This function returns a string, or NULL on error.  The string is owned by "
27617 "the guest handle and must I<not> be freed."
27618 msgstr ""
27619
27620 #. type: =head2
27621 #: ../src/guestfs-actions.pod:2202
27622 msgid "guestfs_get_pgroup"
27623 msgstr ""
27624
27625 #. type: verbatim
27626 #: ../src/guestfs-actions.pod:2204
27627 #, no-wrap
27628 msgid ""
27629 " int\n"
27630 " guestfs_get_pgroup (guestfs_h *g);\n"
27631 "\n"
27632 msgstr ""
27633
27634 #. type: textblock
27635 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:6515
27636 #: ../src/guestfs-actions.pod:7863
27637 msgid "(Added in 1.11.18)"
27638 msgstr "(Додано у 1.11.18)"
27639
27640 #. type: =head2
27641 #: ../src/guestfs-actions.pod:2213
27642 msgid "guestfs_get_pid"
27643 msgstr ""
27644
27645 #. type: verbatim
27646 #: ../src/guestfs-actions.pod:2215
27647 #, no-wrap
27648 msgid ""
27649 " int\n"
27650 " guestfs_get_pid (guestfs_h *g);\n"
27651 "\n"
27652 msgstr ""
27653
27654 #. type: textblock
27655 #: ../src/guestfs-actions.pod:2225
27656 msgid "(Added in 1.0.56)"
27657 msgstr "(Додано у 1.0.56)"
27658
27659 #. type: =head2
27660 #: ../src/guestfs-actions.pod:2227
27661 msgid "guestfs_get_qemu"
27662 msgstr ""
27663
27664 #. type: verbatim
27665 #: ../src/guestfs-actions.pod:2229
27666 #, no-wrap
27667 msgid ""
27668 " const char *\n"
27669 " guestfs_get_qemu (guestfs_h *g);\n"
27670 "\n"
27671 msgstr ""
27672
27673 #. type: textblock
27674 #: ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:6543
27675 msgid "(Added in 1.0.6)"
27676 msgstr "(Додано у 1.0.6)"
27677
27678 #. type: =head2
27679 #: ../src/guestfs-actions.pod:2242
27680 msgid "guestfs_get_recovery_proc"
27681 msgstr ""
27682
27683 #. type: verbatim
27684 #: ../src/guestfs-actions.pod:2244
27685 #, no-wrap
27686 msgid ""
27687 " int\n"
27688 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27689 "\n"
27690 msgstr ""
27691
27692 #. type: textblock
27693 #: ../src/guestfs-actions.pod:2251 ../src/guestfs-actions.pod:3835
27694 #: ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4569
27695 #: ../src/guestfs-actions.pod:4601 ../src/guestfs-actions.pod:5779
27696 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6567
27697 #: ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7294
27698 #: ../src/guestfs-actions.pod:7486
27699 msgid "(Added in 1.0.77)"
27700 msgstr "(Додано у 1.0.77)"
27701
27702 #. type: =head2
27703 #: ../src/guestfs-actions.pod:2253
27704 msgid "guestfs_get_selinux"
27705 msgstr ""
27706
27707 #. type: verbatim
27708 #: ../src/guestfs-actions.pod:2255
27709 #, no-wrap
27710 msgid ""
27711 " int\n"
27712 " guestfs_get_selinux (guestfs_h *g);\n"
27713 "\n"
27714 msgstr ""
27715
27716 #. type: textblock
27717 #: ../src/guestfs-actions.pod:2258
27718 msgid ""
27719 "This returns the current setting of the selinux flag which is passed to the "
27720 "appliance at boot time.  See C<guestfs_set_selinux>."
27721 msgstr ""
27722
27723 #. type: textblock
27724 #: ../src/guestfs-actions.pod:2266 ../src/guestfs-actions.pod:2340
27725 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6660
27726 msgid "(Added in 1.0.67)"
27727 msgstr "(Додано у 1.0.67)"
27728
27729 #. type: =head2
27730 #: ../src/guestfs-actions.pod:2268
27731 msgid "guestfs_get_smp"
27732 msgstr ""
27733
27734 #. type: verbatim
27735 #: ../src/guestfs-actions.pod:2270
27736 #, no-wrap
27737 msgid ""
27738 " int\n"
27739 " guestfs_get_smp (guestfs_h *g);\n"
27740 "\n"
27741 msgstr ""
27742
27743 #. type: =head2
27744 #: ../src/guestfs-actions.pod:2279
27745 msgid "guestfs_get_state"
27746 msgstr ""
27747
27748 #. type: verbatim
27749 #: ../src/guestfs-actions.pod:2281
27750 #, no-wrap
27751 msgid ""
27752 " int\n"
27753 " guestfs_get_state (guestfs_h *g);\n"
27754 "\n"
27755 msgstr ""
27756
27757 #. type: =head2
27758 #: ../src/guestfs-actions.pod:2293
27759 msgid "guestfs_get_trace"
27760 msgstr ""
27761
27762 #. type: verbatim
27763 #: ../src/guestfs-actions.pod:2295
27764 #, no-wrap
27765 msgid ""
27766 " int\n"
27767 " guestfs_get_trace (guestfs_h *g);\n"
27768 "\n"
27769 msgstr ""
27770
27771 #. type: =head2
27772 #: ../src/guestfs-actions.pod:2304
27773 msgid "guestfs_get_umask"
27774 msgstr ""
27775
27776 #. type: verbatim
27777 #: ../src/guestfs-actions.pod:2306
27778 #, no-wrap
27779 msgid ""
27780 " int\n"
27781 " guestfs_get_umask (guestfs_h *g);\n"
27782 "\n"
27783 msgstr ""
27784
27785 #. type: textblock
27786 #: ../src/guestfs-actions.pod:2309
27787 msgid ""
27788 "Return the current umask.  By default the umask is C<022> unless it has been "
27789 "set by calling C<guestfs_umask>."
27790 msgstr ""
27791
27792 #. type: =head2
27793 #: ../src/guestfs-actions.pod:2316
27794 msgid "guestfs_get_verbose"
27795 msgstr ""
27796
27797 #. type: verbatim
27798 #: ../src/guestfs-actions.pod:2318
27799 #, no-wrap
27800 msgid ""
27801 " int\n"
27802 " guestfs_get_verbose (guestfs_h *g);\n"
27803 "\n"
27804 msgstr ""
27805
27806 #. type: =head2
27807 #: ../src/guestfs-actions.pod:2327
27808 msgid "guestfs_getcon"
27809 msgstr ""
27810
27811 #. type: verbatim
27812 #: ../src/guestfs-actions.pod:2329
27813 #, no-wrap
27814 msgid ""
27815 " char *\n"
27816 " guestfs_getcon (guestfs_h *g);\n"
27817 "\n"
27818 msgstr ""
27819
27820 #. type: textblock
27821 #: ../src/guestfs-actions.pod:2334
27822 msgid ""
27823 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27824 msgstr ""
27825
27826 #. type: =head2
27827 #: ../src/guestfs-actions.pod:2342
27828 msgid "guestfs_getxattr"
27829 msgstr ""
27830
27831 #. type: verbatim
27832 #: ../src/guestfs-actions.pod:2344
27833 #, no-wrap
27834 msgid ""
27835 " char *\n"
27836 " guestfs_getxattr (guestfs_h *g,\n"
27837 "                   const char *path,\n"
27838 "                   const char *name,\n"
27839 "                   size_t *size_r);\n"
27840 "\n"
27841 msgstr ""
27842
27843 #. type: textblock
27844 #: ../src/guestfs-actions.pod:2350
27845 msgid ""
27846 "Get a single extended attribute from file C<path> named C<name>.  This call "
27847 "follows symlinks.  If you want to lookup an extended attribute for the "
27848 "symlink itself, use C<guestfs_lgetxattr>."
27849 msgstr ""
27850
27851 #. type: textblock
27852 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:3849
27853 msgid ""
27854 "Normally it is better to get all extended attributes from a file in one go "
27855 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27856 "implementations are buggy and do not provide a way to list out attributes.  "
27857 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27858 "extended attributes you want in advance and call this function."
27859 msgstr ""
27860
27861 #. type: textblock
27862 #: ../src/guestfs-actions.pod:2364
27863 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27864 msgstr ""
27865
27866 #. type: textblock
27867 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:2579
27868 #: ../src/guestfs-actions.pod:3061 ../src/guestfs-actions.pod:3861
27869 #: ../src/guestfs-actions.pod:5772 ../src/guestfs-actions.pod:5798
27870 #: ../src/guestfs-actions.pod:5979
27871 msgid ""
27872 "This function returns a buffer, or NULL on error.  The size of the returned "
27873 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
27874 "after use>."
27875 msgstr ""
27876
27877 #. type: textblock
27878 #: ../src/guestfs-actions.pod:2370 ../src/guestfs-actions.pod:3865
27879 msgid "(Added in 1.7.24)"
27880 msgstr "(Додано у 1.7.24)"
27881
27882 #. type: =head2
27883 #: ../src/guestfs-actions.pod:2372
27884 msgid "guestfs_getxattrs"
27885 msgstr ""
27886
27887 #. type: verbatim
27888 #: ../src/guestfs-actions.pod:2374
27889 #, no-wrap
27890 msgid ""
27891 " struct guestfs_xattr_list *\n"
27892 " guestfs_getxattrs (guestfs_h *g,\n"
27893 "                    const char *path);\n"
27894 "\n"
27895 msgstr ""
27896
27897 #. type: textblock
27898 #: ../src/guestfs-actions.pod:2384
27899 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27900 msgstr ""
27901
27902 #. type: textblock
27903 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:3877
27904 #: ../src/guestfs-actions.pod:4565
27905 msgid ""
27906 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27907 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27908 msgstr ""
27909
27910 #. type: textblock
27911 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:3881
27912 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4116
27913 #: ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6679
27914 #: ../src/guestfs-actions.pod:8074
27915 msgid "(Added in 1.0.59)"
27916 msgstr "(Додано у 1.0.59)"
27917
27918 #. type: =head2
27919 #: ../src/guestfs-actions.pod:2392
27920 msgid "guestfs_glob_expand"
27921 msgstr ""
27922
27923 #. type: verbatim
27924 #: ../src/guestfs-actions.pod:2394
27925 #, no-wrap
27926 msgid ""
27927 " char **\n"
27928 " guestfs_glob_expand (guestfs_h *g,\n"
27929 "                      const char *pattern);\n"
27930 "\n"
27931 msgstr ""
27932
27933 #. type: textblock
27934 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6872
27935 #: ../src/guestfs-actions.pod:6889
27936 msgid "(Added in 1.0.50)"
27937 msgstr "(Додано у 1.0.50)"
27938
27939 #. type: =head2
27940 #: ../src/guestfs-actions.pod:2415
27941 msgid "guestfs_grep"
27942 msgstr ""
27943
27944 #. type: verbatim
27945 #: ../src/guestfs-actions.pod:2417
27946 #, no-wrap
27947 msgid ""
27948 " char **\n"
27949 " guestfs_grep (guestfs_h *g,\n"
27950 "               const char *regex,\n"
27951 "               const char *path);\n"
27952 "\n"
27953 msgstr ""
27954
27955 #. type: =head2
27956 #: ../src/guestfs-actions.pod:2434
27957 msgid "guestfs_grepi"
27958 msgstr ""
27959
27960 #. type: verbatim
27961 #: ../src/guestfs-actions.pod:2436
27962 #, no-wrap
27963 msgid ""
27964 " char **\n"
27965 " guestfs_grepi (guestfs_h *g,\n"
27966 "                const char *regex,\n"
27967 "                const char *path);\n"
27968 "\n"
27969 msgstr ""
27970
27971 #. type: =head2
27972 #: ../src/guestfs-actions.pod:2453
27973 msgid "guestfs_grub_install"
27974 msgstr ""
27975
27976 #. type: verbatim
27977 #: ../src/guestfs-actions.pod:2455
27978 #, no-wrap
27979 msgid ""
27980 " int\n"
27981 " guestfs_grub_install (guestfs_h *g,\n"
27982 "                       const char *root,\n"
27983 "                       const char *device);\n"
27984 "\n"
27985 msgstr ""
27986
27987 #. type: textblock
27988 #: ../src/guestfs-actions.pod:2498
27989 msgid "(Added in 1.0.17)"
27990 msgstr "(Додано у 1.0.17)"
27991
27992 #. type: =head2
27993 #: ../src/guestfs-actions.pod:2500
27994 msgid "guestfs_head"
27995 msgstr ""
27996
27997 #. type: verbatim
27998 #: ../src/guestfs-actions.pod:2502
27999 #, no-wrap
28000 msgid ""
28001 " char **\n"
28002 " guestfs_head (guestfs_h *g,\n"
28003 "               const char *path);\n"
28004 "\n"
28005 msgstr ""
28006
28007 #. type: =head2
28008 #: ../src/guestfs-actions.pod:2518
28009 msgid "guestfs_head_n"
28010 msgstr ""
28011
28012 #. type: verbatim
28013 #: ../src/guestfs-actions.pod:2520
28014 #, no-wrap
28015 msgid ""
28016 " char **\n"
28017 " guestfs_head_n (guestfs_h *g,\n"
28018 "                 int nrlines,\n"
28019 "                 const char *path);\n"
28020 "\n"
28021 msgstr ""
28022
28023 #. type: =head2
28024 #: ../src/guestfs-actions.pod:2542
28025 msgid "guestfs_hexdump"
28026 msgstr ""
28027
28028 #. type: verbatim
28029 #: ../src/guestfs-actions.pod:2544
28030 #, no-wrap
28031 msgid ""
28032 " char *\n"
28033 " guestfs_hexdump (guestfs_h *g,\n"
28034 "                  const char *path);\n"
28035 "\n"
28036 msgstr ""
28037
28038 #. type: textblock
28039 #: ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:6953
28040 #: ../src/guestfs-actions.pod:7008
28041 msgid "(Added in 1.0.22)"
28042 msgstr "(Додано у 1.0.22)"
28043
28044 #. type: =head2
28045 #: ../src/guestfs-actions.pod:2559
28046 msgid "guestfs_initrd_cat"
28047 msgstr ""
28048
28049 #. type: verbatim
28050 #: ../src/guestfs-actions.pod:2561
28051 #, no-wrap
28052 msgid ""
28053 " char *\n"
28054 " guestfs_initrd_cat (guestfs_h *g,\n"
28055 "                     const char *initrdpath,\n"
28056 "                     const char *filename,\n"
28057 "                     size_t *size_r);\n"
28058 "\n"
28059 msgstr ""
28060
28061 #. type: textblock
28062 #: ../src/guestfs-actions.pod:2577
28063 msgid "See also C<guestfs_initrd_list>."
28064 msgstr ""
28065
28066 #. type: =head2
28067 #: ../src/guestfs-actions.pod:2588
28068 msgid "guestfs_initrd_list"
28069 msgstr ""
28070
28071 #. type: verbatim
28072 #: ../src/guestfs-actions.pod:2590
28073 #, no-wrap
28074 msgid ""
28075 " char **\n"
28076 " guestfs_initrd_list (guestfs_h *g,\n"
28077 "                      const char *path);\n"
28078 "\n"
28079 msgstr ""
28080
28081 #. type: =head2
28082 #: ../src/guestfs-actions.pod:2610
28083 msgid "guestfs_inotify_add_watch"
28084 msgstr ""
28085
28086 #. type: verbatim
28087 #: ../src/guestfs-actions.pod:2612
28088 #, no-wrap
28089 msgid ""
28090 " int64_t\n"
28091 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28092 "                            const char *path,\n"
28093 "                            int mask);\n"
28094 "\n"
28095 msgstr ""
28096
28097 #. type: =head2
28098 #: ../src/guestfs-actions.pod:2631
28099 msgid "guestfs_inotify_close"
28100 msgstr ""
28101
28102 #. type: verbatim
28103 #: ../src/guestfs-actions.pod:2633
28104 #, no-wrap
28105 msgid ""
28106 " int\n"
28107 " guestfs_inotify_close (guestfs_h *g);\n"
28108 "\n"
28109 msgstr ""
28110
28111 #. type: =head2
28112 #: ../src/guestfs-actions.pod:2644
28113 msgid "guestfs_inotify_files"
28114 msgstr ""
28115
28116 #. type: verbatim
28117 #: ../src/guestfs-actions.pod:2646
28118 #, no-wrap
28119 msgid ""
28120 " char **\n"
28121 " guestfs_inotify_files (guestfs_h *g);\n"
28122 "\n"
28123 msgstr ""
28124
28125 #. type: textblock
28126 #: ../src/guestfs-actions.pod:2649
28127 msgid ""
28128 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28129 "returns a list of pathnames of objects that were touched.  The returned "
28130 "pathnames are sorted and deduplicated."
28131 msgstr ""
28132
28133 #. type: =head2
28134 #: ../src/guestfs-actions.pod:2659
28135 msgid "guestfs_inotify_init"
28136 msgstr ""
28137
28138 #. type: verbatim
28139 #: ../src/guestfs-actions.pod:2661
28140 #, no-wrap
28141 msgid ""
28142 " int\n"
28143 " guestfs_inotify_init (guestfs_h *g,\n"
28144 "                       int maxevents);\n"
28145 "\n"
28146 msgstr ""
28147
28148 #. type: textblock
28149 #: ../src/guestfs-actions.pod:2669
28150 msgid ""
28151 "C<maxevents> is the maximum number of events which will be queued up between "
28152 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28153 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28154 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28155 "throws away events, but records the fact that it threw them away by setting "
28156 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28157 "C<guestfs_inotify_read>)."
28158 msgstr ""
28159
28160 #. type: textblock
28161 #: ../src/guestfs-actions.pod:2679
28162 msgid ""
28163 "Before any events are generated, you have to add some watches to the "
28164 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28165 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28166 msgstr ""
28167
28168 #. type: textblock
28169 #: ../src/guestfs-actions.pod:2685
28170 msgid ""
28171 "Queued up events should be read periodically by calling "
28172 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28173 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28174 "often enough then you risk the internal queue overflowing."
28175 msgstr ""
28176
28177 #. type: textblock
28178 #: ../src/guestfs-actions.pod:2692
28179 msgid ""
28180 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28181 "This also removes any watches automatically."
28182 msgstr ""
28183
28184 #. type: =head2
28185 #: ../src/guestfs-actions.pod:2705
28186 msgid "guestfs_inotify_read"
28187 msgstr ""
28188
28189 #. type: verbatim
28190 #: ../src/guestfs-actions.pod:2707
28191 #, no-wrap
28192 msgid ""
28193 " struct guestfs_inotify_event_list *\n"
28194 " guestfs_inotify_read (guestfs_h *g);\n"
28195 "\n"
28196 msgstr ""
28197
28198 #. type: textblock
28199 #: ../src/guestfs-actions.pod:2721
28200 msgid ""
28201 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28202 "there was an error.  I<The caller must call "
28203 "C<guestfs_free_inotify_event_list> after use>."
28204 msgstr ""
28205
28206 #. type: =head2
28207 #: ../src/guestfs-actions.pod:2727
28208 msgid "guestfs_inotify_rm_watch"
28209 msgstr ""
28210
28211 #. type: verbatim
28212 #: ../src/guestfs-actions.pod:2729
28213 #, no-wrap
28214 msgid ""
28215 " int\n"
28216 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28217 "                           int wd);\n"
28218 "\n"
28219 msgstr ""
28220
28221 #. type: textblock
28222 #: ../src/guestfs-actions.pod:2733
28223 msgid ""
28224 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
28225 msgstr ""
28226
28227 #. type: =head2
28228 #: ../src/guestfs-actions.pod:2740
28229 msgid "guestfs_inspect_get_arch"
28230 msgstr ""
28231
28232 #. type: verbatim
28233 #: ../src/guestfs-actions.pod:2742
28234 #, no-wrap
28235 msgid ""
28236 " char *\n"
28237 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28238 "                           const char *root);\n"
28239 "\n"
28240 msgstr ""
28241
28242 #. type: textblock
28243 #: ../src/guestfs-actions.pod:2746
28244 msgid ""
28245 "This returns the architecture of the inspected operating system.  The "
28246 "possible return values are listed under C<guestfs_file_architecture>."
28247 msgstr ""
28248
28249 #. type: =head2
28250 #: ../src/guestfs-actions.pod:2760
28251 msgid "guestfs_inspect_get_distro"
28252 msgstr ""
28253
28254 #. type: verbatim
28255 #: ../src/guestfs-actions.pod:2762
28256 #, no-wrap
28257 msgid ""
28258 " char *\n"
28259 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28260 "                             const char *root);\n"
28261 "\n"
28262 msgstr ""
28263
28264 #. type: =head2
28265 #: ../src/guestfs-actions.pod:2862
28266 msgid "guestfs_inspect_get_drive_mappings"
28267 msgstr ""
28268
28269 #. type: verbatim
28270 #: ../src/guestfs-actions.pod:2864
28271 #, no-wrap
28272 msgid ""
28273 " char **\n"
28274 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28275 "                                     const char *root);\n"
28276 "\n"
28277 msgstr ""
28278
28279 #. type: textblock
28280 #: ../src/guestfs-actions.pod:2893
28281 msgid ""
28282 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28283 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28284 msgstr ""
28285
28286 #. type: textblock
28287 #: ../src/guestfs-actions.pod:2897 ../src/guestfs-actions.pod:3165
28288 #: ../src/guestfs-actions.pod:3968 ../src/guestfs-actions.pod:5240
28289 #: ../src/guestfs-actions.pod:7310
28290 msgid ""
28291 "This function returns a NULL-terminated array of strings, or NULL if there "
28292 "was an error.  The array of strings will always have length C<2n+1>, where "
28293 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28294 "caller must free the strings and the array after use>."
28295 msgstr ""
28296
28297 #. type: textblock
28298 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3364
28299 msgid "(Added in 1.9.17)"
28300 msgstr "(Додано у 1.9.17)"
28301
28302 #. type: =head2
28303 #: ../src/guestfs-actions.pod:2905
28304 msgid "guestfs_inspect_get_filesystems"
28305 msgstr ""
28306
28307 #. type: verbatim
28308 #: ../src/guestfs-actions.pod:2907
28309 #, no-wrap
28310 msgid ""
28311 " char **\n"
28312 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28313 "                                  const char *root);\n"
28314 "\n"
28315 msgstr ""
28316
28317 #. type: textblock
28318 #: ../src/guestfs-actions.pod:2919
28319 msgid ""
28320 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28321 "C<guestfs_inspect_get_mountpoints>."
28322 msgstr ""
28323
28324 #. type: =head2
28325 #: ../src/guestfs-actions.pod:2928
28326 msgid "guestfs_inspect_get_format"
28327 msgstr ""
28328
28329 #. type: verbatim
28330 #: ../src/guestfs-actions.pod:2930
28331 #, no-wrap
28332 msgid ""
28333 " char *\n"
28334 " guestfs_inspect_get_format (guestfs_h *g,\n"
28335 "                             const char *root);\n"
28336 "\n"
28337 msgstr ""
28338
28339 #. type: textblock
28340 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3400
28341 #: ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3434
28342 #: ../src/guestfs-actions.pod:6190
28343 msgid "(Added in 1.9.4)"
28344 msgstr "(Додано у 1.9.4)"
28345
28346 #. type: =head2
28347 #: ../src/guestfs-actions.pod:2966
28348 msgid "guestfs_inspect_get_hostname"
28349 msgstr ""
28350
28351 #. type: verbatim
28352 #: ../src/guestfs-actions.pod:2968
28353 #, no-wrap
28354 msgid ""
28355 " char *\n"
28356 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28357 "                               const char *root);\n"
28358 "\n"
28359 msgstr ""
28360
28361 #. type: textblock
28362 #: ../src/guestfs-actions.pod:2983
28363 msgid "(Added in 1.7.9)"
28364 msgstr "(Додано у 1.7.9)"
28365
28366 #. type: =head2
28367 #: ../src/guestfs-actions.pod:2985
28368 msgid "guestfs_inspect_get_icon"
28369 msgstr ""
28370
28371 #. type: verbatim
28372 #: ../src/guestfs-actions.pod:2987
28373 #, no-wrap
28374 msgid ""
28375 " char *\n"
28376 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28377 "                           const char *root,\n"
28378 "                           size_t *size_r,\n"
28379 "                           ...);\n"
28380 "\n"
28381 msgstr ""
28382
28383 #. type: verbatim
28384 #: ../src/guestfs-actions.pod:2998
28385 #, no-wrap
28386 msgid ""
28387 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28388 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28389 "\n"
28390 msgstr ""
28391
28392 #. type: textblock
28393 #: ../src/guestfs-actions.pod:3065 ../src/guestfs-actions.pod:3895
28394 #: ../src/guestfs-actions.pod:5139
28395 msgid "(Added in 1.11.12)"
28396 msgstr "(Додано у 1.11.12)"
28397
28398 #. type: =head2
28399 #: ../src/guestfs-actions.pod:3067
28400 msgid "guestfs_inspect_get_icon_va"
28401 msgstr ""
28402
28403 #. type: verbatim
28404 #: ../src/guestfs-actions.pod:3069
28405 #, no-wrap
28406 msgid ""
28407 " char *\n"
28408 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28409 "                              const char *root,\n"
28410 "                              size_t *size_r,\n"
28411 "                              va_list args);\n"
28412 "\n"
28413 msgstr ""
28414
28415 #. type: textblock
28416 #: ../src/guestfs-actions.pod:3075
28417 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28418 msgstr ""
28419
28420 #. type: =head2
28421 #: ../src/guestfs-actions.pod:3079
28422 msgid "guestfs_inspect_get_icon_argv"
28423 msgstr ""
28424
28425 #. type: verbatim
28426 #: ../src/guestfs-actions.pod:3081
28427 #, no-wrap
28428 msgid ""
28429 " char *\n"
28430 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28431 "                                const char *root,\n"
28432 "                                size_t *size_r,\n"
28433 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
28434 "\n"
28435 msgstr ""
28436
28437 #. type: textblock
28438 #: ../src/guestfs-actions.pod:3087
28439 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28440 msgstr ""
28441
28442 #. type: =head2
28443 #: ../src/guestfs-actions.pod:3091
28444 msgid "guestfs_inspect_get_major_version"
28445 msgstr ""
28446
28447 #. type: verbatim
28448 #: ../src/guestfs-actions.pod:3093
28449 #, no-wrap
28450 msgid ""
28451 " int\n"
28452 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28453 "                                    const char *root);\n"
28454 "\n"
28455 msgstr ""
28456
28457 #. type: =head2
28458 #: ../src/guestfs-actions.pod:3115
28459 msgid "guestfs_inspect_get_minor_version"
28460 msgstr ""
28461
28462 #. type: verbatim
28463 #: ../src/guestfs-actions.pod:3117
28464 #, no-wrap
28465 msgid ""
28466 " int\n"
28467 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28468 "                                    const char *root);\n"
28469 "\n"
28470 msgstr ""
28471
28472 #. type: textblock
28473 #: ../src/guestfs-actions.pod:3126
28474 msgid ""
28475 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28476 "C<guestfs_inspect_get_major_version>."
28477 msgstr ""
28478
28479 #. type: =head2
28480 #: ../src/guestfs-actions.pod:3133
28481 msgid "guestfs_inspect_get_mountpoints"
28482 msgstr ""
28483
28484 #. type: verbatim
28485 #: ../src/guestfs-actions.pod:3135
28486 #, no-wrap
28487 msgid ""
28488 " char **\n"
28489 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28490 "                                  const char *root);\n"
28491 "\n"
28492 msgstr ""
28493
28494 #. type: textblock
28495 #: ../src/guestfs-actions.pod:3156
28496 msgid ""
28497 "For operating systems like Windows which still use drive letters, this call "
28498 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28499 "information about the mapping of drive letters to partitions, see "
28500 "C<guestfs_inspect_get_drive_mappings>."
28501 msgstr ""
28502
28503 #. type: textblock
28504 #: ../src/guestfs-actions.pod:3162
28505 msgid ""
28506 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28507 "C<guestfs_inspect_get_filesystems>."
28508 msgstr ""
28509
28510 #. type: =head2
28511 #: ../src/guestfs-actions.pod:3173
28512 msgid "guestfs_inspect_get_package_format"
28513 msgstr ""
28514
28515 #. type: verbatim
28516 #: ../src/guestfs-actions.pod:3175
28517 #, no-wrap
28518 msgid ""
28519 " char *\n"
28520 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28521 "                                     const char *root);\n"
28522 "\n"
28523 msgstr ""
28524
28525 #. type: textblock
28526 #: ../src/guestfs-actions.pod:3179
28527 msgid ""
28528 "This function and C<guestfs_inspect_get_package_management> return the "
28529 "package format and package management tool used by the inspected operating "
28530 "system.  For example for Fedora these functions would return C<rpm> (package "
28531 "format) and C<yum> (package management)."
28532 msgstr ""
28533
28534 #. type: textblock
28535 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3226
28536 msgid "(Added in 1.7.5)"
28537 msgstr "(Додано у 1.7.5)"
28538
28539 #. type: =head2
28540 #: ../src/guestfs-actions.pod:3200
28541 msgid "guestfs_inspect_get_package_management"
28542 msgstr ""
28543
28544 #. type: verbatim
28545 #: ../src/guestfs-actions.pod:3202
28546 #, no-wrap
28547 msgid ""
28548 " char *\n"
28549 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28550 "                                         const char *root);\n"
28551 "\n"
28552 msgstr ""
28553
28554 #. type: textblock
28555 #: ../src/guestfs-actions.pod:3206
28556 msgid ""
28557 "C<guestfs_inspect_get_package_format> and this function return the package "
28558 "format and package management tool used by the inspected operating system.  "
28559 "For example for Fedora these functions would return C<rpm> (package format) "
28560 "and C<yum> (package management)."
28561 msgstr ""
28562
28563 #. type: =head2
28564 #: ../src/guestfs-actions.pod:3228
28565 msgid "guestfs_inspect_get_product_name"
28566 msgstr ""
28567
28568 #. type: verbatim
28569 #: ../src/guestfs-actions.pod:3230
28570 #, no-wrap
28571 msgid ""
28572 " char *\n"
28573 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28574 "                                   const char *root);\n"
28575 "\n"
28576 msgstr ""
28577
28578 #. type: =head2
28579 #: ../src/guestfs-actions.pod:3249
28580 msgid "guestfs_inspect_get_product_variant"
28581 msgstr ""
28582
28583 #. type: verbatim
28584 #: ../src/guestfs-actions.pod:3251
28585 #, no-wrap
28586 msgid ""
28587 " char *\n"
28588 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28589 "                                      const char *root);\n"
28590 "\n"
28591 msgstr ""
28592
28593 #. type: textblock
28594 #: ../src/guestfs-actions.pod:3274
28595 msgid ""
28596 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28597 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28598 msgstr ""
28599
28600 #. type: textblock
28601 #: ../src/guestfs-actions.pod:3281
28602 msgid "(Added in 1.9.13)"
28603 msgstr "(Додано у 1.9.13)"
28604
28605 #. type: =head2
28606 #: ../src/guestfs-actions.pod:3283
28607 msgid "guestfs_inspect_get_roots"
28608 msgstr ""
28609
28610 #. type: verbatim
28611 #: ../src/guestfs-actions.pod:3285
28612 #, no-wrap
28613 msgid ""
28614 " char **\n"
28615 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28616 "\n"
28617 msgstr ""
28618
28619 #. type: textblock
28620 #: ../src/guestfs-actions.pod:3288
28621 msgid ""
28622 "This function is a convenient way to get the list of root devices, as "
28623 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28624 "the whole inspection process."
28625 msgstr ""
28626
28627 #. type: textblock
28628 #: ../src/guestfs-actions.pod:3292
28629 msgid ""
28630 "This returns an empty list if either no root devices were found or the "
28631 "caller has not called C<guestfs_inspect_os>."
28632 msgstr ""
28633
28634 #. type: textblock
28635 #: ../src/guestfs-actions.pod:3301
28636 msgid "(Added in 1.7.3)"
28637 msgstr "(Додано у 1.7.3)"
28638
28639 #. type: =head2
28640 #: ../src/guestfs-actions.pod:3303
28641 msgid "guestfs_inspect_get_type"
28642 msgstr ""
28643
28644 #. type: verbatim
28645 #: ../src/guestfs-actions.pod:3305
28646 #, no-wrap
28647 msgid ""
28648 " char *\n"
28649 " guestfs_inspect_get_type (guestfs_h *g,\n"
28650 "                           const char *root);\n"
28651 "\n"
28652 msgstr ""
28653
28654 #. type: =head2
28655 #: ../src/guestfs-actions.pod:3346
28656 msgid "guestfs_inspect_get_windows_current_control_set"
28657 msgstr ""
28658
28659 #. type: verbatim
28660 #: ../src/guestfs-actions.pod:3348
28661 #, no-wrap
28662 msgid ""
28663 " char *\n"
28664 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28665 "                                                  const char *root);\n"
28666 "\n"
28667 msgstr ""
28668
28669 #. type: =head2
28670 #: ../src/guestfs-actions.pod:3366
28671 msgid "guestfs_inspect_get_windows_systemroot"
28672 msgstr ""
28673
28674 #. type: verbatim
28675 #: ../src/guestfs-actions.pod:3368
28676 #, no-wrap
28677 msgid ""
28678 " char *\n"
28679 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28680 "                                         const char *root);\n"
28681 "\n"
28682 msgstr ""
28683
28684 #. type: textblock
28685 #: ../src/guestfs-actions.pod:3384
28686 msgid "(Added in 1.5.25)"
28687 msgstr "(Додано у 1.5.25)"
28688
28689 #. type: =head2
28690 #: ../src/guestfs-actions.pod:3386
28691 msgid "guestfs_inspect_is_live"
28692 msgstr ""
28693
28694 #. type: verbatim
28695 #: ../src/guestfs-actions.pod:3388
28696 #, no-wrap
28697 msgid ""
28698 " int\n"
28699 " guestfs_inspect_is_live (guestfs_h *g,\n"
28700 "                          const char *root);\n"
28701 "\n"
28702 msgstr ""
28703
28704 #. type: textblock
28705 #: ../src/guestfs-actions.pod:3392
28706 msgid ""
28707 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28708 "disk), then this returns true if a live image was detected on the disk."
28709 msgstr ""
28710
28711 #. type: =head2
28712 #: ../src/guestfs-actions.pod:3402
28713 msgid "guestfs_inspect_is_multipart"
28714 msgstr ""
28715
28716 #. type: verbatim
28717 #: ../src/guestfs-actions.pod:3404
28718 #, no-wrap
28719 msgid ""
28720 " int\n"
28721 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28722 "                               const char *root);\n"
28723 "\n"
28724 msgstr ""
28725
28726 #. type: textblock
28727 #: ../src/guestfs-actions.pod:3408
28728 msgid ""
28729 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28730 "disk), then this returns true if the disk is part of a set."
28731 msgstr ""
28732
28733 #. type: =head2
28734 #: ../src/guestfs-actions.pod:3418
28735 msgid "guestfs_inspect_is_netinst"
28736 msgstr ""
28737
28738 #. type: verbatim
28739 #: ../src/guestfs-actions.pod:3420
28740 #, no-wrap
28741 msgid ""
28742 " int\n"
28743 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28744 "                             const char *root);\n"
28745 "\n"
28746 msgstr ""
28747
28748 #. type: textblock
28749 #: ../src/guestfs-actions.pod:3424
28750 msgid ""
28751 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28752 "disk), then this returns true if the disk is a network installer, ie. not a "
28753 "self-contained install CD but one which is likely to require network access "
28754 "to complete the install."
28755 msgstr ""
28756
28757 #. type: =head2
28758 #: ../src/guestfs-actions.pod:3436
28759 msgid "guestfs_inspect_list_applications"
28760 msgstr ""
28761
28762 #. type: verbatim
28763 #: ../src/guestfs-actions.pod:3438
28764 #, no-wrap
28765 msgid ""
28766 " struct guestfs_application_list *\n"
28767 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28768 "                                    const char *root);\n"
28769 "\n"
28770 msgstr ""
28771
28772 #. type: textblock
28773 #: ../src/guestfs-actions.pod:3444
28774 msgid ""
28775 "I<Note:> This call works differently from other parts of the inspection "
28776 "API.  You have to call C<guestfs_inspect_os>, then "
28777 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28778 "this.  Listing applications is a significantly more difficult operation "
28779 "which requires access to the full filesystem.  Also note that unlike the "
28780 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28781 "the libguestfs handle, this call actually reads parts of the mounted "
28782 "filesystems during the call."
28783 msgstr ""
28784
28785 #. type: textblock
28786 #: ../src/guestfs-actions.pod:3534
28787 msgid ""
28788 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28789 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28790 "after use>."
28791 msgstr ""
28792
28793 #. type: textblock
28794 #: ../src/guestfs-actions.pod:3538
28795 msgid "(Added in 1.7.8)"
28796 msgstr "(Додано у 1.7.8)"
28797
28798 #. type: =head2
28799 #: ../src/guestfs-actions.pod:3540
28800 msgid "guestfs_inspect_os"
28801 msgstr ""
28802
28803 #. type: verbatim
28804 #: ../src/guestfs-actions.pod:3542
28805 #, no-wrap
28806 msgid ""
28807 " char **\n"
28808 " guestfs_inspect_os (guestfs_h *g);\n"
28809 "\n"
28810 msgstr ""
28811
28812 #. type: textblock
28813 #: ../src/guestfs-actions.pod:3558
28814 msgid ""
28815 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28816 "functions in order to query further information about each operating system, "
28817 "such as the name and version."
28818 msgstr ""
28819
28820 #. type: textblock
28821 #: ../src/guestfs-actions.pod:3563
28822 msgid ""
28823 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28824 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28825 "the contents.  This should be called with no disks currently mounted.  The "
28826 "function may also use Augeas, so any existing Augeas handle will be closed."
28827 msgstr ""
28828
28829 #. type: textblock
28830 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3906
28831 #: ../src/guestfs-actions.pod:3988
28832 msgid "See also C<guestfs_list_filesystems>."
28833 msgstr ""
28834
28835 #. type: =head2
28836 #: ../src/guestfs-actions.pod:3583
28837 msgid "guestfs_is_blockdev"
28838 msgstr ""
28839
28840 #. type: verbatim
28841 #: ../src/guestfs-actions.pod:3585
28842 #, no-wrap
28843 msgid ""
28844 " int\n"
28845 " guestfs_is_blockdev (guestfs_h *g,\n"
28846 "                      const char *path);\n"
28847 "\n"
28848 msgstr ""
28849
28850 #. type: textblock
28851 #: ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3621
28852 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3666
28853 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3738
28854 #: ../src/guestfs-actions.pod:3753
28855 msgid "See also C<guestfs_stat>."
28856 msgstr ""
28857
28858 #. type: textblock
28859 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3625
28860 #: ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:3742
28861 #: ../src/guestfs-actions.pod:3757
28862 msgid "(Added in 1.5.10)"
28863 msgstr "(Додано у 1.5.10)"
28864
28865 #. type: =head2
28866 #: ../src/guestfs-actions.pod:3598
28867 msgid "guestfs_is_busy"
28868 msgstr ""
28869
28870 #. type: verbatim
28871 #: ../src/guestfs-actions.pod:3600
28872 #, no-wrap
28873 msgid ""
28874 " int\n"
28875 " guestfs_is_busy (guestfs_h *g);\n"
28876 "\n"
28877 msgstr ""
28878
28879 #. type: =head2
28880 #: ../src/guestfs-actions.pod:3612
28881 msgid "guestfs_is_chardev"
28882 msgstr ""
28883
28884 #. type: verbatim
28885 #: ../src/guestfs-actions.pod:3614
28886 #, no-wrap
28887 msgid ""
28888 " int\n"
28889 " guestfs_is_chardev (guestfs_h *g,\n"
28890 "                     const char *path);\n"
28891 "\n"
28892 msgstr ""
28893
28894 #. type: =head2
28895 #: ../src/guestfs-actions.pod:3627
28896 msgid "guestfs_is_config"
28897 msgstr ""
28898
28899 #. type: verbatim
28900 #: ../src/guestfs-actions.pod:3629
28901 #, no-wrap
28902 msgid ""
28903 " int\n"
28904 " guestfs_is_config (guestfs_h *g);\n"
28905 "\n"
28906 msgstr ""
28907
28908 #. type: =head2
28909 #: ../src/guestfs-actions.pod:3641
28910 msgid "guestfs_is_dir"
28911 msgstr ""
28912
28913 #. type: verbatim
28914 #: ../src/guestfs-actions.pod:3643
28915 #, no-wrap
28916 msgid ""
28917 " int\n"
28918 " guestfs_is_dir (guestfs_h *g,\n"
28919 "                 const char *path);\n"
28920 "\n"
28921 msgstr ""
28922
28923 #. type: =head2
28924 #: ../src/guestfs-actions.pod:3657
28925 msgid "guestfs_is_fifo"
28926 msgstr ""
28927
28928 #. type: verbatim
28929 #: ../src/guestfs-actions.pod:3659
28930 #, no-wrap
28931 msgid ""
28932 " int\n"
28933 " guestfs_is_fifo (guestfs_h *g,\n"
28934 "                  const char *path);\n"
28935 "\n"
28936 msgstr ""
28937
28938 #. type: =head2
28939 #: ../src/guestfs-actions.pod:3672
28940 msgid "guestfs_is_file"
28941 msgstr ""
28942
28943 #. type: verbatim
28944 #: ../src/guestfs-actions.pod:3674
28945 #, no-wrap
28946 msgid ""
28947 " int\n"
28948 " guestfs_is_file (guestfs_h *g,\n"
28949 "                  const char *path);\n"
28950 "\n"
28951 msgstr ""
28952
28953 #. type: =head2
28954 #: ../src/guestfs-actions.pod:3688
28955 msgid "guestfs_is_launching"
28956 msgstr ""
28957
28958 #. type: verbatim
28959 #: ../src/guestfs-actions.pod:3690
28960 #, no-wrap
28961 msgid ""
28962 " int\n"
28963 " guestfs_is_launching (guestfs_h *g);\n"
28964 "\n"
28965 msgstr ""
28966
28967 #. type: =head2
28968 #: ../src/guestfs-actions.pod:3702
28969 msgid "guestfs_is_lv"
28970 msgstr ""
28971
28972 #. type: verbatim
28973 #: ../src/guestfs-actions.pod:3704
28974 #, no-wrap
28975 msgid ""
28976 " int\n"
28977 " guestfs_is_lv (guestfs_h *g,\n"
28978 "                const char *device);\n"
28979 "\n"
28980 msgstr ""
28981
28982 #. type: =head2
28983 #: ../src/guestfs-actions.pod:3715
28984 msgid "guestfs_is_ready"
28985 msgstr ""
28986
28987 #. type: verbatim
28988 #: ../src/guestfs-actions.pod:3717
28989 #, no-wrap
28990 msgid ""
28991 " int\n"
28992 " guestfs_is_ready (guestfs_h *g);\n"
28993 "\n"
28994 msgstr ""
28995
28996 #. type: =head2
28997 #: ../src/guestfs-actions.pod:3729
28998 msgid "guestfs_is_socket"
28999 msgstr ""
29000
29001 #. type: verbatim
29002 #: ../src/guestfs-actions.pod:3731
29003 #, no-wrap
29004 msgid ""
29005 " int\n"
29006 " guestfs_is_socket (guestfs_h *g,\n"
29007 "                    const char *path);\n"
29008 "\n"
29009 msgstr ""
29010
29011 #. type: =head2
29012 #: ../src/guestfs-actions.pod:3744
29013 msgid "guestfs_is_symlink"
29014 msgstr ""
29015
29016 #. type: verbatim
29017 #: ../src/guestfs-actions.pod:3746
29018 #, no-wrap
29019 msgid ""
29020 " int\n"
29021 " guestfs_is_symlink (guestfs_h *g,\n"
29022 "                     const char *path);\n"
29023 "\n"
29024 msgstr ""
29025
29026 #. type: =head2
29027 #: ../src/guestfs-actions.pod:3759
29028 msgid "guestfs_is_zero"
29029 msgstr ""
29030
29031 #. type: verbatim
29032 #: ../src/guestfs-actions.pod:3761
29033 #, no-wrap
29034 msgid ""
29035 " int\n"
29036 " guestfs_is_zero (guestfs_h *g,\n"
29037 "                  const char *path);\n"
29038 "\n"
29039 msgstr ""
29040
29041 #. type: textblock
29042 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3784
29043 msgid "(Added in 1.11.8)"
29044 msgstr "(Додано у 1.11.8)"
29045
29046 #. type: =head2
29047 #: ../src/guestfs-actions.pod:3772
29048 msgid "guestfs_is_zero_device"
29049 msgstr ""
29050
29051 #. type: verbatim
29052 #: ../src/guestfs-actions.pod:3774
29053 #, no-wrap
29054 msgid ""
29055 " int\n"
29056 " guestfs_is_zero_device (guestfs_h *g,\n"
29057 "                         const char *device);\n"
29058 "\n"
29059 msgstr ""
29060
29061 #. type: =head2
29062 #: ../src/guestfs-actions.pod:3786
29063 msgid "guestfs_kill_subprocess"
29064 msgstr ""
29065
29066 #. type: verbatim
29067 #: ../src/guestfs-actions.pod:3788
29068 #, no-wrap
29069 msgid ""
29070 " int\n"
29071 " guestfs_kill_subprocess (guestfs_h *g);\n"
29072 "\n"
29073 msgstr ""
29074
29075 #. type: =head2
29076 #: ../src/guestfs-actions.pod:3797
29077 msgid "guestfs_launch"
29078 msgstr ""
29079
29080 #. type: verbatim
29081 #: ../src/guestfs-actions.pod:3799
29082 #, no-wrap
29083 msgid ""
29084 " int\n"
29085 " guestfs_launch (guestfs_h *g);\n"
29086 "\n"
29087 msgstr ""
29088
29089 #. type: =head2
29090 #: ../src/guestfs-actions.pod:3817
29091 msgid "guestfs_lchown"
29092 msgstr ""
29093
29094 #. type: verbatim
29095 #: ../src/guestfs-actions.pod:3819
29096 #, no-wrap
29097 msgid ""
29098 " int\n"
29099 " guestfs_lchown (guestfs_h *g,\n"
29100 "                 int owner,\n"
29101 "                 int group,\n"
29102 "                 const char *path);\n"
29103 "\n"
29104 msgstr ""
29105
29106 #. type: textblock
29107 #: ../src/guestfs-actions.pod:3825
29108 msgid ""
29109 "Change the file owner to C<owner> and group to C<group>.  This is like "
29110 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29111 "changed, not the target."
29112 msgstr ""
29113
29114 #. type: =head2
29115 #: ../src/guestfs-actions.pod:3837
29116 msgid "guestfs_lgetxattr"
29117 msgstr ""
29118
29119 #. type: verbatim
29120 #: ../src/guestfs-actions.pod:3839
29121 #, no-wrap
29122 msgid ""
29123 " char *\n"
29124 " guestfs_lgetxattr (guestfs_h *g,\n"
29125 "                    const char *path,\n"
29126 "                    const char *name,\n"
29127 "                    size_t *size_r);\n"
29128 "\n"
29129 msgstr ""
29130
29131 #. type: textblock
29132 #: ../src/guestfs-actions.pod:3859
29133 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29134 msgstr ""
29135
29136 #. type: =head2
29137 #: ../src/guestfs-actions.pod:3867
29138 msgid "guestfs_lgetxattrs"
29139 msgstr ""
29140
29141 #. type: verbatim
29142 #: ../src/guestfs-actions.pod:3869
29143 #, no-wrap
29144 msgid ""
29145 " struct guestfs_xattr_list *\n"
29146 " guestfs_lgetxattrs (guestfs_h *g,\n"
29147 "                     const char *path);\n"
29148 "\n"
29149 msgstr ""
29150
29151 #. type: textblock
29152 #: ../src/guestfs-actions.pod:3873
29153 msgid ""
29154 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29155 "then it returns the extended attributes of the link itself."
29156 msgstr ""
29157
29158 #. type: =head2
29159 #: ../src/guestfs-actions.pod:3883
29160 msgid "guestfs_list_9p"
29161 msgstr ""
29162
29163 #. type: verbatim
29164 #: ../src/guestfs-actions.pod:3885
29165 #, no-wrap
29166 msgid ""
29167 " char **\n"
29168 " guestfs_list_9p (guestfs_h *g);\n"
29169 "\n"
29170 msgstr ""
29171
29172 #. type: =head2
29173 #: ../src/guestfs-actions.pod:3897
29174 msgid "guestfs_list_devices"
29175 msgstr ""
29176
29177 #. type: verbatim
29178 #: ../src/guestfs-actions.pod:3899
29179 #, no-wrap
29180 msgid ""
29181 " char **\n"
29182 " guestfs_list_devices (guestfs_h *g);\n"
29183 "\n"
29184 msgstr ""
29185
29186 #. type: =head2
29187 #: ../src/guestfs-actions.pod:3914
29188 msgid "guestfs_list_dm_devices"
29189 msgstr ""
29190
29191 #. type: verbatim
29192 #: ../src/guestfs-actions.pod:3916
29193 #, no-wrap
29194 msgid ""
29195 " char **\n"
29196 " guestfs_list_dm_devices (guestfs_h *g);\n"
29197 "\n"
29198 msgstr ""
29199
29200 #. type: textblock
29201 #: ../src/guestfs-actions.pod:3921
29202 msgid ""
29203 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29204 "previous call to C<guestfs_luks_open>."
29205 msgstr ""
29206
29207 #. type: textblock
29208 #: ../src/guestfs-actions.pod:3924
29209 msgid ""
29210 "Device mapper devices which correspond to logical volumes are I<not> "
29211 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29212 "volumes."
29213 msgstr ""
29214
29215 #. type: textblock
29216 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:5378
29217 msgid "(Added in 1.11.15)"
29218 msgstr "(Додано у 1.11.15)"
29219
29220 #. type: =head2
29221 #: ../src/guestfs-actions.pod:3934
29222 msgid "guestfs_list_filesystems"
29223 msgstr ""
29224
29225 #. type: verbatim
29226 #: ../src/guestfs-actions.pod:3936
29227 #, no-wrap
29228 msgid ""
29229 " char **\n"
29230 " guestfs_list_filesystems (guestfs_h *g);\n"
29231 "\n"
29232 msgstr ""
29233
29234 #. type: textblock
29235 #: ../src/guestfs-actions.pod:3956
29236 msgid ""
29237 "This command runs other libguestfs commands, which might include "
29238 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29239 "soon after launch and only when nothing is mounted."
29240 msgstr ""
29241
29242 #. type: textblock
29243 #: ../src/guestfs-actions.pod:3960
29244 msgid ""
29245 "Not all of the filesystems returned will be mountable.  In particular, swap "
29246 "partitions are returned in the list.  Also this command does not check that "
29247 "each filesystem found is valid and mountable, and some filesystems might be "
29248 "mountable but require special options.  Filesystems may not all belong to a "
29249 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29250 msgstr ""
29251
29252 #. type: textblock
29253 #: ../src/guestfs-actions.pod:3974 ../src/guestfs-actions.pod:5739
29254 msgid "(Added in 1.5.15)"
29255 msgstr "(Додано у 1.5.15)"
29256
29257 #. type: =head2
29258 #: ../src/guestfs-actions.pod:3976
29259 msgid "guestfs_list_partitions"
29260 msgstr "guestfs_list_partitions"
29261
29262 #. type: verbatim
29263 #: ../src/guestfs-actions.pod:3978
29264 #, no-wrap
29265 msgid ""
29266 " char **\n"
29267 " guestfs_list_partitions (guestfs_h *g);\n"
29268 "\n"
29269 msgstr ""
29270 " char **\n"
29271 " guestfs_list_partitions (guestfs_h *g);\n"
29272 "\n"
29273
29274 #. type: textblock
29275 #: ../src/guestfs-actions.pod:3985
29276 msgid ""
29277 "This does not return logical volumes.  For that you will need to call "
29278 "C<guestfs_lvs>."
29279 msgstr ""
29280
29281 #. type: =head2
29282 #: ../src/guestfs-actions.pod:3996
29283 msgid "guestfs_ll"
29284 msgstr "guestfs_ll"
29285
29286 #. type: verbatim
29287 #: ../src/guestfs-actions.pod:3998
29288 #, no-wrap
29289 msgid ""
29290 " char *\n"
29291 " guestfs_ll (guestfs_h *g,\n"
29292 "             const char *directory);\n"
29293 "\n"
29294 msgstr ""
29295 " char *\n"
29296 " guestfs_ll (guestfs_h *g,\n"
29297 "             const char *directory);\n"
29298 "\n"
29299
29300 #. type: =head2
29301 #: ../src/guestfs-actions.pod:4013
29302 msgid "guestfs_ln"
29303 msgstr "guestfs_ln"
29304
29305 #. type: verbatim
29306 #: ../src/guestfs-actions.pod:4015
29307 #, no-wrap
29308 msgid ""
29309 " int\n"
29310 " guestfs_ln (guestfs_h *g,\n"
29311 "             const char *target,\n"
29312 "             const char *linkname);\n"
29313 "\n"
29314 msgstr ""
29315 " int\n"
29316 " guestfs_ln (guestfs_h *g,\n"
29317 "             const char *target,\n"
29318 "             const char *linkname);\n"
29319 "\n"
29320
29321 #. type: =head2
29322 #: ../src/guestfs-actions.pod:4026
29323 msgid "guestfs_ln_f"
29324 msgstr "guestfs_ln_f"
29325
29326 #. type: verbatim
29327 #: ../src/guestfs-actions.pod:4028
29328 #, no-wrap
29329 msgid ""
29330 " int\n"
29331 " guestfs_ln_f (guestfs_h *g,\n"
29332 "               const char *target,\n"
29333 "               const char *linkname);\n"
29334 "\n"
29335 msgstr ""
29336 " int\n"
29337 " guestfs_ln_f (guestfs_h *g,\n"
29338 "               const char *target,\n"
29339 "               const char *linkname);\n"
29340 "\n"
29341
29342 #. type: =head2
29343 #: ../src/guestfs-actions.pod:4040
29344 msgid "guestfs_ln_s"
29345 msgstr "guestfs_ln_s"
29346
29347 #. type: verbatim
29348 #: ../src/guestfs-actions.pod:4042
29349 #, no-wrap
29350 msgid ""
29351 " int\n"
29352 " guestfs_ln_s (guestfs_h *g,\n"
29353 "               const char *target,\n"
29354 "               const char *linkname);\n"
29355 "\n"
29356 msgstr ""
29357 " int\n"
29358 " guestfs_ln_s (guestfs_h *g,\n"
29359 "               const char *target,\n"
29360 "               const char *linkname);\n"
29361 "\n"
29362
29363 #. type: =head2
29364 #: ../src/guestfs-actions.pod:4053
29365 msgid "guestfs_ln_sf"
29366 msgstr "guestfs_ln_sf"
29367
29368 #. type: verbatim
29369 #: ../src/guestfs-actions.pod:4055
29370 #, no-wrap
29371 msgid ""
29372 " int\n"
29373 " guestfs_ln_sf (guestfs_h *g,\n"
29374 "                const char *target,\n"
29375 "                const char *linkname);\n"
29376 "\n"
29377 msgstr ""
29378 " int\n"
29379 " guestfs_ln_sf (guestfs_h *g,\n"
29380 "                const char *target,\n"
29381 "                const char *linkname);\n"
29382 "\n"
29383
29384 #. type: =head2
29385 #: ../src/guestfs-actions.pod:4067
29386 msgid "guestfs_lremovexattr"
29387 msgstr "guestfs_lremovexattr"
29388
29389 #. type: verbatim
29390 #: ../src/guestfs-actions.pod:4069
29391 #, no-wrap
29392 msgid ""
29393 " int\n"
29394 " guestfs_lremovexattr (guestfs_h *g,\n"
29395 "                       const char *xattr,\n"
29396 "                       const char *path);\n"
29397 "\n"
29398 msgstr ""
29399 " int\n"
29400 " guestfs_lremovexattr (guestfs_h *g,\n"
29401 "                       const char *xattr,\n"
29402 "                       const char *path);\n"
29403 "\n"
29404
29405 #. type: textblock
29406 #: ../src/guestfs-actions.pod:4074
29407 msgid ""
29408 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29409 "link, then it removes an extended attribute of the link itself."
29410 msgstr ""
29411
29412 #. type: =head2
29413 #: ../src/guestfs-actions.pod:4082
29414 msgid "guestfs_ls"
29415 msgstr "guestfs_ls"
29416
29417 #. type: verbatim
29418 #: ../src/guestfs-actions.pod:4084
29419 #, no-wrap
29420 msgid ""
29421 " char **\n"
29422 " guestfs_ls (guestfs_h *g,\n"
29423 "             const char *directory);\n"
29424 "\n"
29425 msgstr ""
29426 " char **\n"
29427 " guestfs_ls (guestfs_h *g,\n"
29428 "             const char *directory);\n"
29429 "\n"
29430
29431 #. type: textblock
29432 #: ../src/guestfs-actions.pod:4092
29433 msgid ""
29434 "This command is mostly useful for interactive sessions.  Programs should "
29435 "probably use C<guestfs_readdir> instead."
29436 msgstr ""
29437
29438 #. type: =head2
29439 #: ../src/guestfs-actions.pod:4101
29440 msgid "guestfs_lsetxattr"
29441 msgstr "guestfs_lsetxattr"
29442
29443 #. type: verbatim
29444 #: ../src/guestfs-actions.pod:4103
29445 #, no-wrap
29446 msgid ""
29447 " int\n"
29448 " guestfs_lsetxattr (guestfs_h *g,\n"
29449 "                    const char *xattr,\n"
29450 "                    const char *val,\n"
29451 "                    int vallen,\n"
29452 "                    const char *path);\n"
29453 "\n"
29454 msgstr ""
29455 " int\n"
29456 " guestfs_lsetxattr (guestfs_h *g,\n"
29457 "                    const char *xattr,\n"
29458 "                    const char *val,\n"
29459 "                    int vallen,\n"
29460 "                    const char *path);\n"
29461 "\n"
29462
29463 #. type: textblock
29464 #: ../src/guestfs-actions.pod:4110
29465 msgid ""
29466 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29467 "then it sets an extended attribute of the link itself."
29468 msgstr ""
29469
29470 #. type: =head2
29471 #: ../src/guestfs-actions.pod:4118
29472 msgid "guestfs_lstat"
29473 msgstr "guestfs_lstat"
29474
29475 #. type: verbatim
29476 #: ../src/guestfs-actions.pod:4120
29477 #, no-wrap
29478 msgid ""
29479 " struct guestfs_stat *\n"
29480 " guestfs_lstat (guestfs_h *g,\n"
29481 "                const char *path);\n"
29482 "\n"
29483 msgstr ""
29484 " struct guestfs_stat *\n"
29485 " guestfs_lstat (guestfs_h *g,\n"
29486 "                const char *path);\n"
29487 "\n"
29488
29489 #. type: textblock
29490 #: ../src/guestfs-actions.pod:4126
29491 msgid ""
29492 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29493 "link, then the link is stat-ed, not the file it refers to."
29494 msgstr ""
29495
29496 #. type: textblock
29497 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:6913
29498 msgid ""
29499 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29500 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29501 msgstr ""
29502
29503 #. type: textblock
29504 #: ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:6917
29505 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:7316
29506 msgid "(Added in 0.9.2)"
29507 msgstr "(Додано у 0.9.2)"
29508
29509 #. type: =head2
29510 #: ../src/guestfs-actions.pod:4138
29511 msgid "guestfs_lstatlist"
29512 msgstr "guestfs_lstatlist"
29513
29514 #. type: verbatim
29515 #: ../src/guestfs-actions.pod:4140
29516 #, no-wrap
29517 msgid ""
29518 " struct guestfs_stat_list *\n"
29519 " guestfs_lstatlist (guestfs_h *g,\n"
29520 "                    const char *path,\n"
29521 "                    char *const *names);\n"
29522 "\n"
29523 msgstr ""
29524 " struct guestfs_stat_list *\n"
29525 " guestfs_lstatlist (guestfs_h *g,\n"
29526 "                    const char *path,\n"
29527 "                    char *const *names);\n"
29528 "\n"
29529
29530 #. type: textblock
29531 #: ../src/guestfs-actions.pod:4145
29532 msgid ""
29533 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29534 "files, where all files are in the directory C<path>.  C<names> is the list "
29535 "of files from this directory."
29536 msgstr ""
29537
29538 #. type: textblock
29539 #: ../src/guestfs-actions.pod:4154
29540 msgid ""
29541 "This call is intended for programs that want to efficiently list a directory "
29542 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29543 "for a similarly efficient call for getting extended attributes.  Very long "
29544 "directory listings might cause the protocol message size to be exceeded, "
29545 "causing this call to fail.  The caller must split up such requests into "
29546 "smaller groups of names."
29547 msgstr ""
29548
29549 #. type: textblock
29550 #: ../src/guestfs-actions.pod:4162
29551 msgid ""
29552 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29553 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29554 msgstr ""
29555
29556 #. type: =head2
29557 #: ../src/guestfs-actions.pod:4168
29558 msgid "guestfs_luks_add_key"
29559 msgstr "guestfs_luks_add_key"
29560
29561 #. type: verbatim
29562 #: ../src/guestfs-actions.pod:4170
29563 #, no-wrap
29564 msgid ""
29565 " int\n"
29566 " guestfs_luks_add_key (guestfs_h *g,\n"
29567 "                       const char *device,\n"
29568 "                       const char *key,\n"
29569 "                       const char *newkey,\n"
29570 "                       int keyslot);\n"
29571 "\n"
29572 msgstr ""
29573 " int\n"
29574 " guestfs_luks_add_key (guestfs_h *g,\n"
29575 "                       const char *device,\n"
29576 "                       const char *key,\n"
29577 "                       const char *newkey,\n"
29578 "                       int keyslot);\n"
29579 "\n"
29580
29581 #. type: textblock
29582 #: ../src/guestfs-actions.pod:4182
29583 msgid ""
29584 "Note that if C<keyslot> already contains a key, then this command will "
29585 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29586 msgstr ""
29587
29588 #. type: textblock
29589 #: ../src/guestfs-actions.pod:4188 ../src/guestfs-actions.pod:4228
29590 #: ../src/guestfs-actions.pod:4251 ../src/guestfs-actions.pod:4271
29591 #: ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4325
29592 msgid ""
29593 "This function takes a key or passphrase parameter which could contain "
29594 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29595 "information."
29596 msgstr ""
29597
29598 #. type: textblock
29599 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4232
29600 #: ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:4275
29601 msgid "(Added in 1.5.2)"
29602 msgstr "(Додано у 1.5.2)"
29603
29604 #. type: =head2
29605 #: ../src/guestfs-actions.pod:4194
29606 msgid "guestfs_luks_close"
29607 msgstr "guestfs_luks_close"
29608
29609 #. type: verbatim
29610 #: ../src/guestfs-actions.pod:4196
29611 #, no-wrap
29612 msgid ""
29613 " int\n"
29614 " guestfs_luks_close (guestfs_h *g,\n"
29615 "                     const char *device);\n"
29616 "\n"
29617 msgstr ""
29618 " int\n"
29619 " guestfs_luks_close (guestfs_h *g,\n"
29620 "                     const char *device);\n"
29621 "\n"
29622
29623 #. type: textblock
29624 #: ../src/guestfs-actions.pod:4200
29625 msgid ""
29626 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29627 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29628 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29629 "underlying block device."
29630 msgstr ""
29631
29632 #. type: textblock
29633 #: ../src/guestfs-actions.pod:4208 ../src/guestfs-actions.pod:4310
29634 #: ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:4379
29635 #: ../src/guestfs-actions.pod:4427
29636 msgid "(Added in 1.5.1)"
29637 msgstr "(Додано у 1.5.1)"
29638
29639 #. type: =head2
29640 #: ../src/guestfs-actions.pod:4210
29641 msgid "guestfs_luks_format"
29642 msgstr "guestfs_luks_format"
29643
29644 #. type: verbatim
29645 #: ../src/guestfs-actions.pod:4212
29646 #, no-wrap
29647 msgid ""
29648 " int\n"
29649 " guestfs_luks_format (guestfs_h *g,\n"
29650 "                      const char *device,\n"
29651 "                      const char *key,\n"
29652 "                      int keyslot);\n"
29653 "\n"
29654 msgstr ""
29655 " int\n"
29656 " guestfs_luks_format (guestfs_h *g,\n"
29657 "                      const char *device,\n"
29658 "                      const char *key,\n"
29659 "                      int keyslot);\n"
29660 "\n"
29661
29662 #. type: =head2
29663 #: ../src/guestfs-actions.pod:4234
29664 msgid "guestfs_luks_format_cipher"
29665 msgstr "guestfs_luks_format_cipher"
29666
29667 #. type: verbatim
29668 #: ../src/guestfs-actions.pod:4236
29669 #, no-wrap
29670 msgid ""
29671 " int\n"
29672 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29673 "                             const char *device,\n"
29674 "                             const char *key,\n"
29675 "                             int keyslot,\n"
29676 "                             const char *cipher);\n"
29677 "\n"
29678 msgstr ""
29679 " int\n"
29680 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29681 "                             const char *device,\n"
29682 "                             const char *key,\n"
29683 "                             int keyslot,\n"
29684 "                             const char *cipher);\n"
29685 "\n"
29686
29687 #. type: textblock
29688 #: ../src/guestfs-actions.pod:4243
29689 msgid ""
29690 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29691 "set the C<cipher> used."
29692 msgstr ""
29693
29694 #. type: =head2
29695 #: ../src/guestfs-actions.pod:4257
29696 msgid "guestfs_luks_kill_slot"
29697 msgstr "guestfs_luks_kill_slot"
29698
29699 #. type: verbatim
29700 #: ../src/guestfs-actions.pod:4259
29701 #, no-wrap
29702 msgid ""
29703 " int\n"
29704 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29705 "                         const char *device,\n"
29706 "                         const char *key,\n"
29707 "                         int keyslot);\n"
29708 "\n"
29709 msgstr ""
29710 " int\n"
29711 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29712 "                         const char *device,\n"
29713 "                         const char *key,\n"
29714 "                         int keyslot);\n"
29715 "\n"
29716
29717 #. type: =head2
29718 #: ../src/guestfs-actions.pod:4277
29719 msgid "guestfs_luks_open"
29720 msgstr "guestfs_luks_open"
29721
29722 #. type: verbatim
29723 #: ../src/guestfs-actions.pod:4279
29724 #, no-wrap
29725 msgid ""
29726 " int\n"
29727 " guestfs_luks_open (guestfs_h *g,\n"
29728 "                    const char *device,\n"
29729 "                    const char *key,\n"
29730 "                    const char *mapname);\n"
29731 "\n"
29732 msgstr ""
29733 " int\n"
29734 " guestfs_luks_open (guestfs_h *g,\n"
29735 "                    const char *device,\n"
29736 "                    const char *key,\n"
29737 "                    const char *mapname);\n"
29738 "\n"
29739
29740 #. type: textblock
29741 #: ../src/guestfs-actions.pod:4297
29742 msgid ""
29743 "If this block device contains LVM volume groups, then calling "
29744 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29745 "visible."
29746 msgstr ""
29747
29748 #. type: textblock
29749 #: ../src/guestfs-actions.pod:4301
29750 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29751 msgstr ""
29752
29753 #. type: =head2
29754 #: ../src/guestfs-actions.pod:4312
29755 msgid "guestfs_luks_open_ro"
29756 msgstr "guestfs_luks_open_ro"
29757
29758 #. type: verbatim
29759 #: ../src/guestfs-actions.pod:4314
29760 #, no-wrap
29761 msgid ""
29762 " int\n"
29763 " guestfs_luks_open_ro (guestfs_h *g,\n"
29764 "                       const char *device,\n"
29765 "                       const char *key,\n"
29766 "                       const char *mapname);\n"
29767 "\n"
29768 msgstr ""
29769 " int\n"
29770 " guestfs_luks_open_ro (guestfs_h *g,\n"
29771 "                       const char *device,\n"
29772 "                       const char *key,\n"
29773 "                       const char *mapname);\n"
29774 "\n"
29775
29776 #. type: textblock
29777 #: ../src/guestfs-actions.pod:4320
29778 msgid ""
29779 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29780 "created."
29781 msgstr ""
29782
29783 #. type: =head2
29784 #: ../src/guestfs-actions.pod:4331
29785 msgid "guestfs_lvcreate"
29786 msgstr "guestfs_lvcreate"
29787
29788 #. type: verbatim
29789 #: ../src/guestfs-actions.pod:4333
29790 #, no-wrap
29791 msgid ""
29792 " int\n"
29793 " guestfs_lvcreate (guestfs_h *g,\n"
29794 "                   const char *logvol,\n"
29795 "                   const char *volgroup,\n"
29796 "                   int mbytes);\n"
29797 "\n"
29798 msgstr ""
29799 " int\n"
29800 " guestfs_lvcreate (guestfs_h *g,\n"
29801 "                   const char *logvol,\n"
29802 "                   const char *volgroup,\n"
29803 "                   int mbytes);\n"
29804 "\n"
29805
29806 #. type: =head2
29807 #: ../src/guestfs-actions.pod:4346
29808 msgid "guestfs_lvm_canonical_lv_name"
29809 msgstr "guestfs_lvm_canonical_lv_name"
29810
29811 #. type: verbatim
29812 #: ../src/guestfs-actions.pod:4348
29813 #, no-wrap
29814 msgid ""
29815 " char *\n"
29816 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29817 "                                const char *lvname);\n"
29818 "\n"
29819 msgstr ""
29820 " char *\n"
29821 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29822 "                                const char *lvname);\n"
29823 "\n"
29824
29825 #. type: textblock
29826 #: ../src/guestfs-actions.pod:4359
29827 msgid "See also C<guestfs_is_lv>."
29828 msgstr ""
29829
29830 #. type: textblock
29831 #: ../src/guestfs-actions.pod:4364
29832 msgid "(Added in 1.5.24)"
29833 msgstr "(Додано у 1.5.24)"
29834
29835 #. type: =head2
29836 #: ../src/guestfs-actions.pod:4366
29837 msgid "guestfs_lvm_clear_filter"
29838 msgstr "guestfs_lvm_clear_filter"
29839
29840 #. type: verbatim
29841 #: ../src/guestfs-actions.pod:4368
29842 #, no-wrap
29843 msgid ""
29844 " int\n"
29845 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29846 "\n"
29847 msgstr ""
29848 " int\n"
29849 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29850 "\n"
29851
29852 #. type: textblock
29853 #: ../src/guestfs-actions.pod:4371
29854 msgid ""
29855 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29856 "see every block device."
29857 msgstr ""
29858
29859 #. type: =head2
29860 #: ../src/guestfs-actions.pod:4381
29861 msgid "guestfs_lvm_remove_all"
29862 msgstr "guestfs_lvm_remove_all"
29863
29864 #. type: verbatim
29865 #: ../src/guestfs-actions.pod:4383
29866 #, no-wrap
29867 msgid ""
29868 " int\n"
29869 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29870 "\n"
29871 msgstr ""
29872 " int\n"
29873 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29874 "\n"
29875
29876 #. type: =head2
29877 #: ../src/guestfs-actions.pod:4396
29878 msgid "guestfs_lvm_set_filter"
29879 msgstr "guestfs_lvm_set_filter"
29880
29881 #. type: verbatim
29882 #: ../src/guestfs-actions.pod:4398
29883 #, no-wrap
29884 msgid ""
29885 " int\n"
29886 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29887 "                         char *const *devices);\n"
29888 "\n"
29889 msgstr ""
29890 " int\n"
29891 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29892 "                         char *const *devices);\n"
29893 "\n"
29894
29895 #. type: =head2
29896 #: ../src/guestfs-actions.pod:4429
29897 msgid "guestfs_lvremove"
29898 msgstr "guestfs_lvremove"
29899
29900 #. type: verbatim
29901 #: ../src/guestfs-actions.pod:4431
29902 #, no-wrap
29903 msgid ""
29904 " int\n"
29905 " guestfs_lvremove (guestfs_h *g,\n"
29906 "                   const char *device);\n"
29907 "\n"
29908 msgstr ""
29909 " int\n"
29910 " guestfs_lvremove (guestfs_h *g,\n"
29911 "                   const char *device);\n"
29912 "\n"
29913
29914 #. type: textblock
29915 #: ../src/guestfs-actions.pod:4443 ../src/guestfs-actions.pod:5836
29916 #: ../src/guestfs-actions.pod:7686
29917 msgid "(Added in 1.0.13)"
29918 msgstr "(Додано у 1.0.13)"
29919
29920 #. type: =head2
29921 #: ../src/guestfs-actions.pod:4445
29922 msgid "guestfs_lvrename"
29923 msgstr "guestfs_lvrename"
29924
29925 #. type: verbatim
29926 #: ../src/guestfs-actions.pod:4447
29927 #, no-wrap
29928 msgid ""
29929 " int\n"
29930 " guestfs_lvrename (guestfs_h *g,\n"
29931 "                   const char *logvol,\n"
29932 "                   const char *newlogvol);\n"
29933 "\n"
29934 msgstr ""
29935 " int\n"
29936 " guestfs_lvrename (guestfs_h *g,\n"
29937 "                   const char *logvol,\n"
29938 "                   const char *newlogvol);\n"
29939 "\n"
29940
29941 #. type: textblock
29942 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:7699
29943 msgid "(Added in 1.0.83)"
29944 msgstr "(Додано у 1.0.83)"
29945
29946 #. type: =head2
29947 #: ../src/guestfs-actions.pod:4458
29948 msgid "guestfs_lvresize"
29949 msgstr "guestfs_lvresize"
29950
29951 #. type: verbatim
29952 #: ../src/guestfs-actions.pod:4460
29953 #, no-wrap
29954 msgid ""
29955 " int\n"
29956 " guestfs_lvresize (guestfs_h *g,\n"
29957 "                   const char *device,\n"
29958 "                   int mbytes);\n"
29959 "\n"
29960 msgstr ""
29961 " int\n"
29962 " guestfs_lvresize (guestfs_h *g,\n"
29963 "                   const char *device,\n"
29964 "                   int mbytes);\n"
29965 "\n"
29966
29967 #. type: =head2
29968 #: ../src/guestfs-actions.pod:4473
29969 msgid "guestfs_lvresize_free"
29970 msgstr "guestfs_lvresize_free"
29971
29972 #. type: verbatim
29973 #: ../src/guestfs-actions.pod:4475
29974 #, no-wrap
29975 msgid ""
29976 " int\n"
29977 " guestfs_lvresize_free (guestfs_h *g,\n"
29978 "                        const char *lv,\n"
29979 "                        int percent);\n"
29980 "\n"
29981 msgstr ""
29982 " int\n"
29983 " guestfs_lvresize_free (guestfs_h *g,\n"
29984 "                        const char *lv,\n"
29985 "                        int percent);\n"
29986 "\n"
29987
29988 #. type: textblock
29989 #: ../src/guestfs-actions.pod:4488
29990 msgid "(Added in 1.3.3)"
29991 msgstr "(Додано у 1.3.3)"
29992
29993 #. type: =head2
29994 #: ../src/guestfs-actions.pod:4490
29995 msgid "guestfs_lvs"
29996 msgstr "guestfs_lvs"
29997
29998 #. type: verbatim
29999 #: ../src/guestfs-actions.pod:4492
30000 #, no-wrap
30001 msgid ""
30002 " char **\n"
30003 " guestfs_lvs (guestfs_h *g);\n"
30004 "\n"
30005 msgstr ""
30006 " char **\n"
30007 " guestfs_lvs (guestfs_h *g);\n"
30008 "\n"
30009
30010 #. type: textblock
30011 #: ../src/guestfs-actions.pod:4501
30012 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30013 msgstr ""
30014
30015 #. type: =head2
30016 #: ../src/guestfs-actions.pod:4509
30017 msgid "guestfs_lvs_full"
30018 msgstr "guestfs_lvs_full"
30019
30020 #. type: verbatim
30021 #: ../src/guestfs-actions.pod:4511
30022 #, no-wrap
30023 msgid ""
30024 " struct guestfs_lvm_lv_list *\n"
30025 " guestfs_lvs_full (guestfs_h *g);\n"
30026 "\n"
30027 msgstr ""
30028 " struct guestfs_lvm_lv_list *\n"
30029 " guestfs_lvs_full (guestfs_h *g);\n"
30030 "\n"
30031
30032 #. type: textblock
30033 #: ../src/guestfs-actions.pod:4517
30034 msgid ""
30035 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30036 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30037 msgstr ""
30038
30039 #. type: =head2
30040 #: ../src/guestfs-actions.pod:4523
30041 msgid "guestfs_lvuuid"
30042 msgstr "guestfs_lvuuid"
30043
30044 #. type: verbatim
30045 #: ../src/guestfs-actions.pod:4525
30046 #, no-wrap
30047 msgid ""
30048 " char *\n"
30049 " guestfs_lvuuid (guestfs_h *g,\n"
30050 "                 const char *device);\n"
30051 "\n"
30052 msgstr ""
30053 " char *\n"
30054 " guestfs_lvuuid (guestfs_h *g,\n"
30055 "                 const char *device);\n"
30056 "\n"
30057
30058 #. type: =head2
30059 #: ../src/guestfs-actions.pod:4536
30060 msgid "guestfs_lxattrlist"
30061 msgstr "guestfs_lxattrlist"
30062
30063 #. type: verbatim
30064 #: ../src/guestfs-actions.pod:4538
30065 #, no-wrap
30066 msgid ""
30067 " struct guestfs_xattr_list *\n"
30068 " guestfs_lxattrlist (guestfs_h *g,\n"
30069 "                     const char *path,\n"
30070 "                     char *const *names);\n"
30071 "\n"
30072 msgstr ""
30073 " struct guestfs_xattr_list *\n"
30074 " guestfs_lxattrlist (guestfs_h *g,\n"
30075 "                     const char *path,\n"
30076 "                     char *const *names);\n"
30077 "\n"
30078
30079 #. type: textblock
30080 #: ../src/guestfs-actions.pod:4557
30081 msgid ""
30082 "This call is intended for programs that want to efficiently list a directory "
30083 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
30084 "a similarly efficient call for getting standard stats.  Very long directory "
30085 "listings might cause the protocol message size to be exceeded, causing this "
30086 "call to fail.  The caller must split up such requests into smaller groups of "
30087 "names."
30088 msgstr ""
30089
30090 #. type: =head2
30091 #: ../src/guestfs-actions.pod:4571
30092 msgid "guestfs_mkdir"
30093 msgstr "guestfs_mkdir"
30094
30095 #. type: verbatim
30096 #: ../src/guestfs-actions.pod:4573
30097 #, no-wrap
30098 msgid ""
30099 " int\n"
30100 " guestfs_mkdir (guestfs_h *g,\n"
30101 "                const char *path);\n"
30102 "\n"
30103 msgstr ""
30104 " int\n"
30105 " guestfs_mkdir (guestfs_h *g,\n"
30106 "                const char *path);\n"
30107 "\n"
30108
30109 #. type: =head2
30110 #: ../src/guestfs-actions.pod:4583
30111 msgid "guestfs_mkdir_mode"
30112 msgstr "guestfs_mkdir_mode"
30113
30114 #. type: verbatim
30115 #: ../src/guestfs-actions.pod:4585
30116 #, no-wrap
30117 msgid ""
30118 " int\n"
30119 " guestfs_mkdir_mode (guestfs_h *g,\n"
30120 "                     const char *path,\n"
30121 "                     int mode);\n"
30122 "\n"
30123 msgstr ""
30124 " int\n"
30125 " guestfs_mkdir_mode (guestfs_h *g,\n"
30126 "                     const char *path,\n"
30127 "                     int mode);\n"
30128 "\n"
30129
30130 #. type: textblock
30131 #: ../src/guestfs-actions.pod:4597
30132 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30133 msgstr ""
30134
30135 #. type: =head2
30136 #: ../src/guestfs-actions.pod:4603
30137 msgid "guestfs_mkdir_p"
30138 msgstr "guestfs_mkdir_p"
30139
30140 #. type: verbatim
30141 #: ../src/guestfs-actions.pod:4605
30142 #, no-wrap
30143 msgid ""
30144 " int\n"
30145 " guestfs_mkdir_p (guestfs_h *g,\n"
30146 "                  const char *path);\n"
30147 "\n"
30148 msgstr ""
30149 " int\n"
30150 " guestfs_mkdir_p (guestfs_h *g,\n"
30151 "                  const char *path);\n"
30152 "\n"
30153
30154 #. type: =head2
30155 #: ../src/guestfs-actions.pod:4616
30156 msgid "guestfs_mkdtemp"
30157 msgstr "guestfs_mkdtemp"
30158
30159 #. type: verbatim
30160 #: ../src/guestfs-actions.pod:4618
30161 #, no-wrap
30162 msgid ""
30163 " char *\n"
30164 " guestfs_mkdtemp (guestfs_h *g,\n"
30165 "                  const char *template);\n"
30166 "\n"
30167 msgstr ""
30168 " char *\n"
30169 " guestfs_mkdtemp (guestfs_h *g,\n"
30170 "                  const char *template);\n"
30171 "\n"
30172
30173 #. type: =head2
30174 #: ../src/guestfs-actions.pod:4646
30175 msgid "guestfs_mke2fs_J"
30176 msgstr "guestfs_mke2fs_J"
30177
30178 #. type: verbatim
30179 #: ../src/guestfs-actions.pod:4648
30180 #, no-wrap
30181 msgid ""
30182 " int\n"
30183 " guestfs_mke2fs_J (guestfs_h *g,\n"
30184 "                   const char *fstype,\n"
30185 "                   int blocksize,\n"
30186 "                   const char *device,\n"
30187 "                   const char *journal);\n"
30188 "\n"
30189 msgstr ""
30190 " int\n"
30191 " guestfs_mke2fs_J (guestfs_h *g,\n"
30192 "                   const char *fstype,\n"
30193 "                   int blocksize,\n"
30194 "                   const char *device,\n"
30195 "                   const char *journal);\n"
30196 "\n"
30197
30198 #. type: textblock
30199 #: ../src/guestfs-actions.pod:4661
30200 msgid "See also C<guestfs_mke2journal>."
30201 msgstr ""
30202
30203 #. type: textblock
30204 #: ../src/guestfs-actions.pod:4665 ../src/guestfs-actions.pod:4683
30205 #: ../src/guestfs-actions.pod:4701 ../src/guestfs-actions.pod:4717
30206 #: ../src/guestfs-actions.pod:4731 ../src/guestfs-actions.pod:4745
30207 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:5081
30208 msgid "(Added in 1.0.68)"
30209 msgstr "(Додано у 1.0.68)"
30210
30211 #. type: =head2
30212 #: ../src/guestfs-actions.pod:4667
30213 msgid "guestfs_mke2fs_JL"
30214 msgstr "guestfs_mke2fs_JL"
30215
30216 #. type: verbatim
30217 #: ../src/guestfs-actions.pod:4669
30218 #, no-wrap
30219 msgid ""
30220 " int\n"
30221 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30222 "                    const char *fstype,\n"
30223 "                    int blocksize,\n"
30224 "                    const char *device,\n"
30225 "                    const char *label);\n"
30226 "\n"
30227 msgstr ""
30228 " int\n"
30229 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30230 "                    const char *fstype,\n"
30231 "                    int blocksize,\n"
30232 "                    const char *device,\n"
30233 "                    const char *label);\n"
30234 "\n"
30235
30236 #. type: textblock
30237 #: ../src/guestfs-actions.pod:4679
30238 msgid "See also C<guestfs_mke2journal_L>."
30239 msgstr ""
30240
30241 #. type: =head2
30242 #: ../src/guestfs-actions.pod:4685
30243 msgid "guestfs_mke2fs_JU"
30244 msgstr "guestfs_mke2fs_JU"
30245
30246 #. type: verbatim
30247 #: ../src/guestfs-actions.pod:4687
30248 #, no-wrap
30249 msgid ""
30250 " int\n"
30251 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30252 "                    const char *fstype,\n"
30253 "                    int blocksize,\n"
30254 "                    const char *device,\n"
30255 "                    const char *uuid);\n"
30256 "\n"
30257 msgstr ""
30258 " int\n"
30259 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30260 "                    const char *fstype,\n"
30261 "                    int blocksize,\n"
30262 "                    const char *device,\n"
30263 "                    const char *uuid);\n"
30264 "\n"
30265
30266 #. type: textblock
30267 #: ../src/guestfs-actions.pod:4697
30268 msgid "See also C<guestfs_mke2journal_U>."
30269 msgstr ""
30270
30271 #. type: =head2
30272 #: ../src/guestfs-actions.pod:4703
30273 msgid "guestfs_mke2journal"
30274 msgstr "guestfs_mke2journal"
30275
30276 #. type: verbatim
30277 #: ../src/guestfs-actions.pod:4705
30278 #, no-wrap
30279 msgid ""
30280 " int\n"
30281 " guestfs_mke2journal (guestfs_h *g,\n"
30282 "                      int blocksize,\n"
30283 "                      const char *device);\n"
30284 "\n"
30285 msgstr ""
30286 " int\n"
30287 " guestfs_mke2journal (guestfs_h *g,\n"
30288 "                      int blocksize,\n"
30289 "                      const char *device);\n"
30290 "\n"
30291
30292 #. type: =head2
30293 #: ../src/guestfs-actions.pod:4719
30294 msgid "guestfs_mke2journal_L"
30295 msgstr "guestfs_mke2journal_L"
30296
30297 #. type: verbatim
30298 #: ../src/guestfs-actions.pod:4721
30299 #, no-wrap
30300 msgid ""
30301 " int\n"
30302 " guestfs_mke2journal_L (guestfs_h *g,\n"
30303 "                        int blocksize,\n"
30304 "                        const char *label,\n"
30305 "                        const char *device);\n"
30306 "\n"
30307 msgstr ""
30308 " int\n"
30309 " guestfs_mke2journal_L (guestfs_h *g,\n"
30310 "                        int blocksize,\n"
30311 "                        const char *label,\n"
30312 "                        const char *device);\n"
30313 "\n"
30314
30315 #. type: =head2
30316 #: ../src/guestfs-actions.pod:4733
30317 msgid "guestfs_mke2journal_U"
30318 msgstr "guestfs_mke2journal_U"
30319
30320 #. type: verbatim
30321 #: ../src/guestfs-actions.pod:4735
30322 #, no-wrap
30323 msgid ""
30324 " int\n"
30325 " guestfs_mke2journal_U (guestfs_h *g,\n"
30326 "                        int blocksize,\n"
30327 "                        const char *uuid,\n"
30328 "                        const char *device);\n"
30329 "\n"
30330 msgstr ""
30331 " int\n"
30332 " guestfs_mke2journal_U (guestfs_h *g,\n"
30333 "                        int blocksize,\n"
30334 "                        const char *uuid,\n"
30335 "                        const char *device);\n"
30336 "\n"
30337
30338 #. type: =head2
30339 #: ../src/guestfs-actions.pod:4747
30340 msgid "guestfs_mkfifo"
30341 msgstr "guestfs_mkfifo"
30342
30343 #. type: verbatim
30344 #: ../src/guestfs-actions.pod:4749
30345 #, no-wrap
30346 msgid ""
30347 " int\n"
30348 " guestfs_mkfifo (guestfs_h *g,\n"
30349 "                 int mode,\n"
30350 "                 const char *path);\n"
30351 "\n"
30352 msgstr ""
30353 " int\n"
30354 " guestfs_mkfifo (guestfs_h *g,\n"
30355 "                 int mode,\n"
30356 "                 const char *path);\n"
30357 "\n"
30358
30359 #. type: textblock
30360 #: ../src/guestfs-actions.pod:4754
30361 msgid ""
30362 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30363 "is just a convenient wrapper around C<guestfs_mknod>."
30364 msgstr ""
30365
30366 #. type: =head2
30367 #: ../src/guestfs-actions.pod:4764
30368 msgid "guestfs_mkfs"
30369 msgstr "guestfs_mkfs"
30370
30371 #. type: verbatim
30372 #: ../src/guestfs-actions.pod:4766
30373 #, no-wrap
30374 msgid ""
30375 " int\n"
30376 " guestfs_mkfs (guestfs_h *g,\n"
30377 "               const char *fstype,\n"
30378 "               const char *device);\n"
30379 "\n"
30380 msgstr ""
30381 " int\n"
30382 " guestfs_mkfs (guestfs_h *g,\n"
30383 "               const char *fstype,\n"
30384 "               const char *device);\n"
30385 "\n"
30386
30387 #. type: =head2
30388 #: ../src/guestfs-actions.pod:4779
30389 msgid "guestfs_mkfs_b"
30390 msgstr "guestfs_mkfs_b"
30391
30392 #. type: verbatim
30393 #: ../src/guestfs-actions.pod:4781
30394 #, no-wrap
30395 msgid ""
30396 " int\n"
30397 " guestfs_mkfs_b (guestfs_h *g,\n"
30398 "                 const char *fstype,\n"
30399 "                 int blocksize,\n"
30400 "                 const char *device);\n"
30401 "\n"
30402 msgstr ""
30403 " int\n"
30404 " guestfs_mkfs_b (guestfs_h *g,\n"
30405 "                 const char *fstype,\n"
30406 "                 int blocksize,\n"
30407 "                 const char *device);\n"
30408 "\n"
30409
30410 #. type: textblock
30411 #: ../src/guestfs-actions.pod:4787
30412 msgid ""
30413 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30414 "call instead."
30415 msgstr ""
30416
30417 #. type: textblock
30418 #: ../src/guestfs-actions.pod:4794
30419 msgid ""
30420 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30421 "block size of the resulting filesystem.  Supported block sizes depend on the "
30422 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30423 msgstr ""
30424
30425 #. type: =head2
30426 #: ../src/guestfs-actions.pod:4806
30427 msgid "guestfs_mkfs_opts"
30428 msgstr "guestfs_mkfs_opts"
30429
30430 #. type: verbatim
30431 #: ../src/guestfs-actions.pod:4808
30432 #, no-wrap
30433 msgid ""
30434 " int\n"
30435 " guestfs_mkfs_opts (guestfs_h *g,\n"
30436 "                    const char *fstype,\n"
30437 "                    const char *device,\n"
30438 "                    ...);\n"
30439 "\n"
30440 msgstr ""
30441 " int\n"
30442 " guestfs_mkfs_opts (guestfs_h *g,\n"
30443 "                    const char *fstype,\n"
30444 "                    const char *device,\n"
30445 "                    ...);\n"
30446 "\n"
30447
30448 #. type: verbatim
30449 #: ../src/guestfs-actions.pod:4819
30450 #, no-wrap
30451 msgid ""
30452 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30453 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30454 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30455 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30456 "\n"
30457 msgstr ""
30458
30459 #. type: textblock
30460 #: ../src/guestfs-actions.pod:4867
30461 msgid "(Added in 1.7.19)"
30462 msgstr "(Додано у 1.7.19)"
30463
30464 #. type: =head2
30465 #: ../src/guestfs-actions.pod:4869
30466 msgid "guestfs_mkfs_opts_va"
30467 msgstr "guestfs_mkfs_opts_va"
30468
30469 #. type: verbatim
30470 #: ../src/guestfs-actions.pod:4871
30471 #, no-wrap
30472 msgid ""
30473 " int\n"
30474 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30475 "                       const char *fstype,\n"
30476 "                       const char *device,\n"
30477 "                       va_list args);\n"
30478 "\n"
30479 msgstr ""
30480 " int\n"
30481 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30482 "                       const char *fstype,\n"
30483 "                       const char *device,\n"
30484 "                       va_list args);\n"
30485 "\n"
30486
30487 #. type: textblock
30488 #: ../src/guestfs-actions.pod:4877
30489 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30490 msgstr ""
30491
30492 #. type: =head2
30493 #: ../src/guestfs-actions.pod:4881
30494 msgid "guestfs_mkfs_opts_argv"
30495 msgstr "guestfs_mkfs_opts_argv"
30496
30497 #. type: verbatim
30498 #: ../src/guestfs-actions.pod:4883
30499 #, no-wrap
30500 msgid ""
30501 " int\n"
30502 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30503 "                         const char *fstype,\n"
30504 "                         const char *device,\n"
30505 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30506 "\n"
30507 msgstr ""
30508 " int\n"
30509 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30510 "                         const char *fstype,\n"
30511 "                         const char *device,\n"
30512 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30513 "\n"
30514
30515 #. type: textblock
30516 #: ../src/guestfs-actions.pod:4889
30517 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30518 msgstr ""
30519
30520 #. type: =head2
30521 #: ../src/guestfs-actions.pod:4893
30522 msgid "guestfs_mkmountpoint"
30523 msgstr "guestfs_mkmountpoint"
30524
30525 #. type: verbatim
30526 #: ../src/guestfs-actions.pod:4895
30527 #, no-wrap
30528 msgid ""
30529 " int\n"
30530 " guestfs_mkmountpoint (guestfs_h *g,\n"
30531 "                       const char *exemptpath);\n"
30532 "\n"
30533 msgstr ""
30534 " int\n"
30535 " guestfs_mkmountpoint (guestfs_h *g,\n"
30536 "                       const char *exemptpath);\n"
30537 "\n"
30538
30539 #. type: textblock
30540 #: ../src/guestfs-actions.pod:4899
30541 msgid ""
30542 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30543 "that can be used to create extra mountpoints before mounting the first "
30544 "filesystem."
30545 msgstr ""
30546
30547 #. type: textblock
30548 #: ../src/guestfs-actions.pod:4923
30549 msgid ""
30550 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30551 "may get unexpected errors if you try to mix these calls.  It is safest to "
30552 "manually unmount filesystems and remove mountpoints after use."
30553 msgstr ""
30554
30555 #. type: textblock
30556 #: ../src/guestfs-actions.pod:4927
30557 msgid ""
30558 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30559 "first, so for this to work for manual mountpoints, you must ensure that the "
30560 "innermost mountpoints have the longest pathnames, as in the example code "
30561 "above."
30562 msgstr ""
30563
30564 #. type: textblock
30565 #: ../src/guestfs-actions.pod:4934
30566 msgid ""
30567 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30568 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30569 "can also trigger these issues."
30570 msgstr ""
30571
30572 #. type: textblock
30573 #: ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:5246
30574 #: ../src/guestfs-actions.pod:6256
30575 msgid "(Added in 1.0.62)"
30576 msgstr "(Додано у 1.0.62)"
30577
30578 #. type: =head2
30579 #: ../src/guestfs-actions.pod:4942
30580 msgid "guestfs_mknod"
30581 msgstr ""
30582
30583 #. type: verbatim
30584 #: ../src/guestfs-actions.pod:4944
30585 #, no-wrap
30586 msgid ""
30587 " int\n"
30588 " guestfs_mknod (guestfs_h *g,\n"
30589 "                int mode,\n"
30590 "                int devmajor,\n"
30591 "                int devminor,\n"
30592 "                const char *path);\n"
30593 "\n"
30594 msgstr ""
30595
30596 #. type: textblock
30597 #: ../src/guestfs-actions.pod:4959
30598 msgid ""
30599 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30600 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30601 "regular file).  These constants are available in the standard Linux header "
30602 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30603 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30604 "the appropriate constant for you."
30605 msgstr ""
30606
30607 #. type: =head2
30608 #: ../src/guestfs-actions.pod:4973
30609 msgid "guestfs_mknod_b"
30610 msgstr ""
30611
30612 #. type: verbatim
30613 #: ../src/guestfs-actions.pod:4975
30614 #, no-wrap
30615 msgid ""
30616 " int\n"
30617 " guestfs_mknod_b (guestfs_h *g,\n"
30618 "                  int mode,\n"
30619 "                  int devmajor,\n"
30620 "                  int devminor,\n"
30621 "                  const char *path);\n"
30622 "\n"
30623 msgstr ""
30624
30625 #. type: textblock
30626 #: ../src/guestfs-actions.pod:4982
30627 msgid ""
30628 "This call creates a block device node called C<path> with mode C<mode> and "
30629 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30630 "wrapper around C<guestfs_mknod>."
30631 msgstr ""
30632
30633 #. type: =head2
30634 #: ../src/guestfs-actions.pod:4992
30635 msgid "guestfs_mknod_c"
30636 msgstr ""
30637
30638 #. type: verbatim
30639 #: ../src/guestfs-actions.pod:4994
30640 #, no-wrap
30641 msgid ""
30642 " int\n"
30643 " guestfs_mknod_c (guestfs_h *g,\n"
30644 "                  int mode,\n"
30645 "                  int devmajor,\n"
30646 "                  int devminor,\n"
30647 "                  const char *path);\n"
30648 "\n"
30649 msgstr ""
30650
30651 #. type: textblock
30652 #: ../src/guestfs-actions.pod:5001
30653 msgid ""
30654 "This call creates a char device node called C<path> with mode C<mode> and "
30655 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30656 "wrapper around C<guestfs_mknod>."
30657 msgstr ""
30658
30659 #. type: =head2
30660 #: ../src/guestfs-actions.pod:5011
30661 msgid "guestfs_mkswap"
30662 msgstr ""
30663
30664 #. type: verbatim
30665 #: ../src/guestfs-actions.pod:5013
30666 #, no-wrap
30667 msgid ""
30668 " int\n"
30669 " guestfs_mkswap (guestfs_h *g,\n"
30670 "                 const char *device);\n"
30671 "\n"
30672 msgstr ""
30673
30674 #. type: =head2
30675 #: ../src/guestfs-actions.pod:5023
30676 msgid "guestfs_mkswap_L"
30677 msgstr ""
30678
30679 #. type: verbatim
30680 #: ../src/guestfs-actions.pod:5025
30681 #, no-wrap
30682 msgid ""
30683 " int\n"
30684 " guestfs_mkswap_L (guestfs_h *g,\n"
30685 "                   const char *label,\n"
30686 "                   const char *device);\n"
30687 "\n"
30688 msgstr ""
30689
30690 #. type: =head2
30691 #: ../src/guestfs-actions.pod:5040
30692 msgid "guestfs_mkswap_U"
30693 msgstr ""
30694
30695 #. type: verbatim
30696 #: ../src/guestfs-actions.pod:5042
30697 #, no-wrap
30698 msgid ""
30699 " int\n"
30700 " guestfs_mkswap_U (guestfs_h *g,\n"
30701 "                   const char *uuid,\n"
30702 "                   const char *device);\n"
30703 "\n"
30704 msgstr ""
30705
30706 #. type: =head2
30707 #: ../src/guestfs-actions.pod:5053
30708 msgid "guestfs_mkswap_file"
30709 msgstr ""
30710
30711 #. type: verbatim
30712 #: ../src/guestfs-actions.pod:5055
30713 #, no-wrap
30714 msgid ""
30715 " int\n"
30716 " guestfs_mkswap_file (guestfs_h *g,\n"
30717 "                      const char *path);\n"
30718 "\n"
30719 msgstr ""
30720
30721 #. type: textblock
30722 #: ../src/guestfs-actions.pod:5061
30723 msgid ""
30724 "This command just writes a swap file signature to an existing file.  To "
30725 "create the file itself, use something like C<guestfs_fallocate>."
30726 msgstr ""
30727
30728 #. type: =head2
30729 #: ../src/guestfs-actions.pod:5068
30730 msgid "guestfs_modprobe"
30731 msgstr ""
30732
30733 #. type: verbatim
30734 #: ../src/guestfs-actions.pod:5070
30735 #, no-wrap
30736 msgid ""
30737 " int\n"
30738 " guestfs_modprobe (guestfs_h *g,\n"
30739 "                   const char *modulename);\n"
30740 "\n"
30741 msgstr ""
30742
30743 #. type: =head2
30744 #: ../src/guestfs-actions.pod:5083
30745 msgid "guestfs_mount"
30746 msgstr ""
30747
30748 #. type: verbatim
30749 #: ../src/guestfs-actions.pod:5085
30750 #, no-wrap
30751 msgid ""
30752 " int\n"
30753 " guestfs_mount (guestfs_h *g,\n"
30754 "                const char *device,\n"
30755 "                const char *mountpoint);\n"
30756 "\n"
30757 msgstr ""
30758
30759 #. type: textblock
30760 #: ../src/guestfs-actions.pod:5104
30761 msgid ""
30762 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30763 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30764 "problems for users.  If your program might need to work with older versions "
30765 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30766 "for the first parameter if you don't want any options)."
30767 msgstr ""
30768
30769 #. type: =head2
30770 #: ../src/guestfs-actions.pod:5115
30771 msgid "guestfs_mount_9p"
30772 msgstr ""
30773
30774 #. type: verbatim
30775 #: ../src/guestfs-actions.pod:5117
30776 #, no-wrap
30777 msgid ""
30778 " int\n"
30779 " guestfs_mount_9p (guestfs_h *g,\n"
30780 "                   const char *mounttag,\n"
30781 "                   const char *mountpoint,\n"
30782 "                   ...);\n"
30783 "\n"
30784 msgstr ""
30785
30786 #. type: verbatim
30787 #: ../src/guestfs-actions.pod:5128
30788 #, no-wrap
30789 msgid ""
30790 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30791 "\n"
30792 msgstr ""
30793
30794 #. type: =head2
30795 #: ../src/guestfs-actions.pod:5141
30796 msgid "guestfs_mount_9p_va"
30797 msgstr ""
30798
30799 #. type: verbatim
30800 #: ../src/guestfs-actions.pod:5143
30801 #, no-wrap
30802 msgid ""
30803 " int\n"
30804 " guestfs_mount_9p_va (guestfs_h *g,\n"
30805 "                      const char *mounttag,\n"
30806 "                      const char *mountpoint,\n"
30807 "                      va_list args);\n"
30808 "\n"
30809 msgstr ""
30810
30811 #. type: textblock
30812 #: ../src/guestfs-actions.pod:5149
30813 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30814 msgstr ""
30815
30816 #. type: =head2
30817 #: ../src/guestfs-actions.pod:5153
30818 msgid "guestfs_mount_9p_argv"
30819 msgstr ""
30820
30821 #. type: verbatim
30822 #: ../src/guestfs-actions.pod:5155
30823 #, no-wrap
30824 msgid ""
30825 " int\n"
30826 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30827 "                        const char *mounttag,\n"
30828 "                        const char *mountpoint,\n"
30829 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30830 "\n"
30831 msgstr ""
30832
30833 #. type: textblock
30834 #: ../src/guestfs-actions.pod:5161
30835 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30836 msgstr ""
30837
30838 #. type: =head2
30839 #: ../src/guestfs-actions.pod:5165
30840 msgid "guestfs_mount_loop"
30841 msgstr ""
30842
30843 #. type: verbatim
30844 #: ../src/guestfs-actions.pod:5167
30845 #, no-wrap
30846 msgid ""
30847 " int\n"
30848 " guestfs_mount_loop (guestfs_h *g,\n"
30849 "                     const char *file,\n"
30850 "                     const char *mountpoint);\n"
30851 "\n"
30852 msgstr ""
30853
30854 #. type: =head2
30855 #: ../src/guestfs-actions.pod:5180
30856 msgid "guestfs_mount_options"
30857 msgstr ""
30858
30859 #. type: verbatim
30860 #: ../src/guestfs-actions.pod:5182
30861 #, no-wrap
30862 msgid ""
30863 " int\n"
30864 " guestfs_mount_options (guestfs_h *g,\n"
30865 "                        const char *options,\n"
30866 "                        const char *device,\n"
30867 "                        const char *mountpoint);\n"
30868 "\n"
30869 msgstr ""
30870
30871 #. type: textblock
30872 #: ../src/guestfs-actions.pod:5188
30873 msgid ""
30874 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30875 "the mount options as for the L<mount(8)> I<-o> flag."
30876 msgstr ""
30877
30878 #. type: textblock
30879 #: ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5212
30880 #: ../src/guestfs-actions.pod:5229
30881 msgid "(Added in 1.0.10)"
30882 msgstr "(Додано у 1.0.10)"
30883
30884 #. type: =head2
30885 #: ../src/guestfs-actions.pod:5200
30886 msgid "guestfs_mount_ro"
30887 msgstr ""
30888
30889 #. type: verbatim
30890 #: ../src/guestfs-actions.pod:5202
30891 #, no-wrap
30892 msgid ""
30893 " int\n"
30894 " guestfs_mount_ro (guestfs_h *g,\n"
30895 "                   const char *device,\n"
30896 "                   const char *mountpoint);\n"
30897 "\n"
30898 msgstr ""
30899
30900 #. type: textblock
30901 #: ../src/guestfs-actions.pod:5207
30902 msgid ""
30903 "This is the same as the C<guestfs_mount> command, but it mounts the "
30904 "filesystem with the read-only (I<-o ro>) flag."
30905 msgstr ""
30906
30907 #. type: =head2
30908 #: ../src/guestfs-actions.pod:5214
30909 msgid "guestfs_mount_vfs"
30910 msgstr ""
30911
30912 #. type: verbatim
30913 #: ../src/guestfs-actions.pod:5216
30914 #, no-wrap
30915 msgid ""
30916 " int\n"
30917 " guestfs_mount_vfs (guestfs_h *g,\n"
30918 "                    const char *options,\n"
30919 "                    const char *vfstype,\n"
30920 "                    const char *device,\n"
30921 "                    const char *mountpoint);\n"
30922 "\n"
30923 msgstr ""
30924
30925 #. type: textblock
30926 #: ../src/guestfs-actions.pod:5223
30927 msgid ""
30928 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30929 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
30930 "t> flags."
30931 msgstr ""
30932
30933 #. type: =head2
30934 #: ../src/guestfs-actions.pod:5231
30935 msgid "guestfs_mountpoints"
30936 msgstr ""
30937
30938 #. type: verbatim
30939 #: ../src/guestfs-actions.pod:5233
30940 #, no-wrap
30941 msgid ""
30942 " char **\n"
30943 " guestfs_mountpoints (guestfs_h *g);\n"
30944 "\n"
30945 msgstr ""
30946
30947 #. type: textblock
30948 #: ../src/guestfs-actions.pod:5236
30949 msgid ""
30950 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
30951 "devices.  This one returns a hash table (map) of device name to directory "
30952 "where the device is mounted."
30953 msgstr ""
30954
30955 #. type: =head2
30956 #: ../src/guestfs-actions.pod:5248
30957 msgid "guestfs_mounts"
30958 msgstr ""
30959
30960 #. type: verbatim
30961 #: ../src/guestfs-actions.pod:5250
30962 #, no-wrap
30963 msgid ""
30964 " char **\n"
30965 " guestfs_mounts (guestfs_h *g);\n"
30966 "\n"
30967 msgstr ""
30968
30969 #. type: textblock
30970 #: ../src/guestfs-actions.pod:5258
30971 msgid "See also: C<guestfs_mountpoints>"
30972 msgstr ""
30973
30974 #. type: =head2
30975 #: ../src/guestfs-actions.pod:5266
30976 msgid "guestfs_mv"
30977 msgstr ""
30978
30979 #. type: verbatim
30980 #: ../src/guestfs-actions.pod:5268
30981 #, no-wrap
30982 msgid ""
30983 " int\n"
30984 " guestfs_mv (guestfs_h *g,\n"
30985 "             const char *src,\n"
30986 "             const char *dest);\n"
30987 "\n"
30988 msgstr ""
30989
30990 #. type: =head2
30991 #: ../src/guestfs-actions.pod:5280
30992 msgid "guestfs_ntfs_3g_probe"
30993 msgstr ""
30994
30995 #. type: verbatim
30996 #: ../src/guestfs-actions.pod:5282
30997 #, no-wrap
30998 msgid ""
30999 " int\n"
31000 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31001 "                        int rw,\n"
31002 "                        const char *device);\n"
31003 "\n"
31004 msgstr ""
31005
31006 #. type: textblock
31007 #: ../src/guestfs-actions.pod:5301
31008 msgid "(Added in 1.0.43)"
31009 msgstr "(Додано у 1.0.43)"
31010
31011 #. type: =head2
31012 #: ../src/guestfs-actions.pod:5303
31013 msgid "guestfs_ntfsresize"
31014 msgstr ""
31015
31016 #. type: verbatim
31017 #: ../src/guestfs-actions.pod:5305
31018 #, no-wrap
31019 msgid ""
31020 " int\n"
31021 " guestfs_ntfsresize (guestfs_h *g,\n"
31022 "                     const char *device);\n"
31023 "\n"
31024 msgstr ""
31025
31026 #. type: textblock
31027 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5409
31028 msgid ""
31029 "I<This function is deprecated.> In new code, use the L</"
31030 "guestfs_ntfsresize_opts> call instead."
31031 msgstr ""
31032
31033 #. type: =head2
31034 #: ../src/guestfs-actions.pod:5333
31035 msgid "guestfs_ntfsresize_opts"
31036 msgstr ""
31037
31038 #. type: verbatim
31039 #: ../src/guestfs-actions.pod:5335
31040 #, no-wrap
31041 msgid ""
31042 " int\n"
31043 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31044 "                          const char *device,\n"
31045 "                          ...);\n"
31046 "\n"
31047 msgstr ""
31048
31049 #. type: verbatim
31050 #: ../src/guestfs-actions.pod:5345
31051 #, no-wrap
31052 msgid ""
31053 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31054 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31055 "\n"
31056 msgstr ""
31057
31058 #. type: textblock
31059 #: ../src/guestfs-actions.pod:5365
31060 msgid ""
31061 "After the resize operation, the filesystem is always marked as requiring a "
31062 "consistency check (for safety).  You have to boot into Windows to perform "
31063 "this check and clear this condition.  If you I<don't> set the C<force> "
31064 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31065 "times on a single filesystem without booting into Windows between each "
31066 "resize."
31067 msgstr ""
31068
31069 #. type: =head2
31070 #: ../src/guestfs-actions.pod:5380
31071 msgid "guestfs_ntfsresize_opts_va"
31072 msgstr ""
31073
31074 #. type: verbatim
31075 #: ../src/guestfs-actions.pod:5382
31076 #, no-wrap
31077 msgid ""
31078 " int\n"
31079 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31080 "                             const char *device,\n"
31081 "                             va_list args);\n"
31082 "\n"
31083 msgstr ""
31084
31085 #. type: textblock
31086 #: ../src/guestfs-actions.pod:5387
31087 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31088 msgstr ""
31089
31090 #. type: =head2
31091 #: ../src/guestfs-actions.pod:5391
31092 msgid "guestfs_ntfsresize_opts_argv"
31093 msgstr ""
31094
31095 #. type: verbatim
31096 #: ../src/guestfs-actions.pod:5393
31097 #, no-wrap
31098 msgid ""
31099 " int\n"
31100 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31101 "                               const char *device,\n"
31102 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31103 "\n"
31104 msgstr ""
31105
31106 #. type: textblock
31107 #: ../src/guestfs-actions.pod:5398
31108 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31109 msgstr ""
31110
31111 #. type: =head2
31112 #: ../src/guestfs-actions.pod:5402
31113 msgid "guestfs_ntfsresize_size"
31114 msgstr ""
31115
31116 #. type: verbatim
31117 #: ../src/guestfs-actions.pod:5404
31118 #, no-wrap
31119 msgid ""
31120 " int\n"
31121 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31122 "                          const char *device,\n"
31123 "                          int64_t size);\n"
31124 "\n"
31125 msgstr ""
31126
31127 #. type: textblock
31128 #: ../src/guestfs-actions.pod:5416
31129 msgid ""
31130 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31131 "to specify the new size (in bytes) explicitly."
31132 msgstr ""
31133
31134 #. type: textblock
31135 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5863
31136 #: ../src/guestfs-actions.pod:5936 ../src/guestfs-actions.pod:6204
31137 #: ../src/guestfs-actions.pod:7843
31138 msgid "(Added in 1.3.14)"
31139 msgstr "(Додано у 1.3.14)"
31140
31141 #. type: =head2
31142 #: ../src/guestfs-actions.pod:5423
31143 msgid "guestfs_part_add"
31144 msgstr ""
31145
31146 #. type: verbatim
31147 #: ../src/guestfs-actions.pod:5425
31148 #, no-wrap
31149 msgid ""
31150 " int\n"
31151 " guestfs_part_add (guestfs_h *g,\n"
31152 "                   const char *device,\n"
31153 "                   const char *prlogex,\n"
31154 "                   int64_t startsect,\n"
31155 "                   int64_t endsect);\n"
31156 "\n"
31157 msgstr ""
31158
31159 #. type: textblock
31160 #: ../src/guestfs-actions.pod:5432
31161 msgid ""
31162 "This command adds a partition to C<device>.  If there is no partition table "
31163 "on the device, call C<guestfs_part_init> first."
31164 msgstr ""
31165
31166 #. type: textblock
31167 #: ../src/guestfs-actions.pod:5444
31168 msgid ""
31169 "Creating a partition which covers the whole disk is not so easy.  Use "
31170 "C<guestfs_part_disk> to do that."
31171 msgstr ""
31172
31173 #. type: textblock
31174 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5487
31175 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5624
31176 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5681
31177 #: ../src/guestfs-actions.pod:5721
31178 msgid "(Added in 1.0.78)"
31179 msgstr "(Додано у 1.0.78)"
31180
31181 #. type: =head2
31182 #: ../src/guestfs-actions.pod:5451
31183 msgid "guestfs_part_del"
31184 msgstr ""
31185
31186 #. type: verbatim
31187 #: ../src/guestfs-actions.pod:5453
31188 #, no-wrap
31189 msgid ""
31190 " int\n"
31191 " guestfs_part_del (guestfs_h *g,\n"
31192 "                   const char *device,\n"
31193 "                   int partnum);\n"
31194 "\n"
31195 msgstr ""
31196
31197 #. type: =head2
31198 #: ../src/guestfs-actions.pod:5468
31199 msgid "guestfs_part_disk"
31200 msgstr ""
31201
31202 #. type: verbatim
31203 #: ../src/guestfs-actions.pod:5470
31204 #, no-wrap
31205 msgid ""
31206 " int\n"
31207 " guestfs_part_disk (guestfs_h *g,\n"
31208 "                    const char *device,\n"
31209 "                    const char *parttype);\n"
31210 "\n"
31211 msgstr ""
31212
31213 #. type: textblock
31214 #: ../src/guestfs-actions.pod:5475
31215 msgid ""
31216 "This command is simply a combination of C<guestfs_part_init> followed by "
31217 "C<guestfs_part_add> to create a single primary partition covering the whole "
31218 "disk."
31219 msgstr ""
31220
31221 #. type: textblock
31222 #: ../src/guestfs-actions.pod:5479
31223 msgid ""
31224 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31225 "possible values are described in C<guestfs_part_init>."
31226 msgstr ""
31227
31228 #. type: =head2
31229 #: ../src/guestfs-actions.pod:5489
31230 msgid "guestfs_part_get_bootable"
31231 msgstr ""
31232
31233 #. type: verbatim
31234 #: ../src/guestfs-actions.pod:5491
31235 #, no-wrap
31236 msgid ""
31237 " int\n"
31238 " guestfs_part_get_bootable (guestfs_h *g,\n"
31239 "                            const char *device,\n"
31240 "                            int partnum);\n"
31241 "\n"
31242 msgstr ""
31243
31244 #. type: textblock
31245 #: ../src/guestfs-actions.pod:5499
31246 msgid "See also C<guestfs_part_set_bootable>."
31247 msgstr ""
31248
31249 #. type: =head2
31250 #: ../src/guestfs-actions.pod:5505
31251 msgid "guestfs_part_get_mbr_id"
31252 msgstr ""
31253
31254 #. type: verbatim
31255 #: ../src/guestfs-actions.pod:5507
31256 #, no-wrap
31257 msgid ""
31258 " int\n"
31259 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31260 "                          const char *device,\n"
31261 "                          int partnum);\n"
31262 "\n"
31263 msgstr ""
31264
31265 #. type: textblock
31266 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5697
31267 msgid ""
31268 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
31269 "undefined results for other partition table types (see "
31270 "C<guestfs_part_get_parttype>)."
31271 msgstr ""
31272
31273 #. type: =head2
31274 #: ../src/guestfs-actions.pod:5523
31275 msgid "guestfs_part_get_parttype"
31276 msgstr ""
31277
31278 #. type: verbatim
31279 #: ../src/guestfs-actions.pod:5525
31280 #, no-wrap
31281 msgid ""
31282 " char *\n"
31283 " guestfs_part_get_parttype (guestfs_h *g,\n"
31284 "                            const char *device);\n"
31285 "\n"
31286 msgstr ""
31287
31288 #. type: textblock
31289 #: ../src/guestfs-actions.pod:5532
31290 msgid ""
31291 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31292 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
31293 "possible, although unusual.  See C<guestfs_part_init> for a full list."
31294 msgstr ""
31295
31296 #. type: =head2
31297 #: ../src/guestfs-actions.pod:5542
31298 msgid "guestfs_part_init"
31299 msgstr ""
31300
31301 #. type: verbatim
31302 #: ../src/guestfs-actions.pod:5544
31303 #, no-wrap
31304 msgid ""
31305 " int\n"
31306 " guestfs_part_init (guestfs_h *g,\n"
31307 "                    const char *device,\n"
31308 "                    const char *parttype);\n"
31309 "\n"
31310 msgstr ""
31311
31312 #. type: textblock
31313 #: ../src/guestfs-actions.pod:5553
31314 msgid ""
31315 "Initially there are no partitions.  Following this, you should call "
31316 "C<guestfs_part_add> for each partition required."
31317 msgstr ""
31318
31319 #. type: =head2
31320 #: ../src/guestfs-actions.pod:5626
31321 msgid "guestfs_part_list"
31322 msgstr "guestfs_part_list"
31323
31324 #. type: verbatim
31325 #: ../src/guestfs-actions.pod:5628
31326 #, no-wrap
31327 msgid ""
31328 " struct guestfs_partition_list *\n"
31329 " guestfs_part_list (guestfs_h *g,\n"
31330 "                    const char *device);\n"
31331 "\n"
31332 msgstr ""
31333 " struct guestfs_partition_list *\n"
31334 " guestfs_part_list (guestfs_h *g,\n"
31335 "                    const char *device);\n"
31336 "\n"
31337
31338 #. type: textblock
31339 #: ../src/guestfs-actions.pod:5645
31340 msgid ""
31341 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
31342 "the device's sector size, see C<guestfs_blockdev_getss>."
31343 msgstr ""
31344
31345 #. type: textblock
31346 #: ../src/guestfs-actions.pod:5658
31347 msgid ""
31348 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31349 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31350 "use>."
31351 msgstr ""
31352
31353 #. type: =head2
31354 #: ../src/guestfs-actions.pod:5664
31355 msgid "guestfs_part_set_bootable"
31356 msgstr ""
31357
31358 #. type: verbatim
31359 #: ../src/guestfs-actions.pod:5666
31360 #, no-wrap
31361 msgid ""
31362 " int\n"
31363 " guestfs_part_set_bootable (guestfs_h *g,\n"
31364 "                            const char *device,\n"
31365 "                            int partnum,\n"
31366 "                            int bootable);\n"
31367 "\n"
31368 msgstr ""
31369
31370 #. type: =head2
31371 #: ../src/guestfs-actions.pod:5683
31372 msgid "guestfs_part_set_mbr_id"
31373 msgstr ""
31374
31375 #. type: verbatim
31376 #: ../src/guestfs-actions.pod:5685
31377 #, no-wrap
31378 msgid ""
31379 " int\n"
31380 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31381 "                          const char *device,\n"
31382 "                          int partnum,\n"
31383 "                          int idbyte);\n"
31384 "\n"
31385 msgstr ""
31386
31387 #. type: =head2
31388 #: ../src/guestfs-actions.pod:5705
31389 msgid "guestfs_part_set_name"
31390 msgstr ""
31391
31392 #. type: verbatim
31393 #: ../src/guestfs-actions.pod:5707
31394 #, no-wrap
31395 msgid ""
31396 " int\n"
31397 " guestfs_part_set_name (guestfs_h *g,\n"
31398 "                        const char *device,\n"
31399 "                        int partnum,\n"
31400 "                        const char *name);\n"
31401 "\n"
31402 msgstr ""
31403
31404 #. type: =head2
31405 #: ../src/guestfs-actions.pod:5723
31406 msgid "guestfs_part_to_dev"
31407 msgstr ""
31408
31409 #. type: verbatim
31410 #: ../src/guestfs-actions.pod:5725
31411 #, no-wrap
31412 msgid ""
31413 " char *\n"
31414 " guestfs_part_to_dev (guestfs_h *g,\n"
31415 "                      const char *partition);\n"
31416 "\n"
31417 msgstr ""
31418
31419 #. type: textblock
31420 #: ../src/guestfs-actions.pod:5733
31421 msgid ""
31422 "The named partition must exist, for example as a string returned from "
31423 "C<guestfs_list_partitions>."
31424 msgstr ""
31425
31426 #. type: =head2
31427 #: ../src/guestfs-actions.pod:5741
31428 msgid "guestfs_ping_daemon"
31429 msgstr ""
31430
31431 #. type: verbatim
31432 #: ../src/guestfs-actions.pod:5743
31433 #, no-wrap
31434 msgid ""
31435 " int\n"
31436 " guestfs_ping_daemon (guestfs_h *g);\n"
31437 "\n"
31438 msgstr ""
31439
31440 #. type: =head2
31441 #: ../src/guestfs-actions.pod:5755
31442 msgid "guestfs_pread"
31443 msgstr ""
31444
31445 #. type: verbatim
31446 #: ../src/guestfs-actions.pod:5757
31447 #, no-wrap
31448 msgid ""
31449 " char *\n"
31450 " guestfs_pread (guestfs_h *g,\n"
31451 "                const char *path,\n"
31452 "                int count,\n"
31453 "                int64_t offset,\n"
31454 "                size_t *size_r);\n"
31455 "\n"
31456 msgstr ""
31457
31458 #. type: textblock
31459 #: ../src/guestfs-actions.pod:5770
31460 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31461 msgstr ""
31462
31463 #. type: =head2
31464 #: ../src/guestfs-actions.pod:5781
31465 msgid "guestfs_pread_device"
31466 msgstr ""
31467
31468 #. type: verbatim
31469 #: ../src/guestfs-actions.pod:5783
31470 #, no-wrap
31471 msgid ""
31472 " char *\n"
31473 " guestfs_pread_device (guestfs_h *g,\n"
31474 "                       const char *device,\n"
31475 "                       int count,\n"
31476 "                       int64_t offset,\n"
31477 "                       size_t *size_r);\n"
31478 "\n"
31479 msgstr ""
31480
31481 #. type: textblock
31482 #: ../src/guestfs-actions.pod:5796
31483 msgid "See also C<guestfs_pread>."
31484 msgstr ""
31485
31486 #. type: textblock
31487 #: ../src/guestfs-actions.pod:5805
31488 msgid "(Added in 1.5.21)"
31489 msgstr "(Додано у 1.5.21)"
31490
31491 #. type: =head2
31492 #: ../src/guestfs-actions.pod:5807
31493 msgid "guestfs_pvcreate"
31494 msgstr ""
31495
31496 #. type: verbatim
31497 #: ../src/guestfs-actions.pod:5809
31498 #, no-wrap
31499 msgid ""
31500 " int\n"
31501 " guestfs_pvcreate (guestfs_h *g,\n"
31502 "                   const char *device);\n"
31503 "\n"
31504 msgstr ""
31505
31506 #. type: =head2
31507 #: ../src/guestfs-actions.pod:5821
31508 msgid "guestfs_pvremove"
31509 msgstr ""
31510
31511 #. type: verbatim
31512 #: ../src/guestfs-actions.pod:5823
31513 #, no-wrap
31514 msgid ""
31515 " int\n"
31516 " guestfs_pvremove (guestfs_h *g,\n"
31517 "                   const char *device);\n"
31518 "\n"
31519 msgstr ""
31520
31521 #. type: =head2
31522 #: ../src/guestfs-actions.pod:5838
31523 msgid "guestfs_pvresize"
31524 msgstr ""
31525
31526 #. type: verbatim
31527 #: ../src/guestfs-actions.pod:5840
31528 #, no-wrap
31529 msgid ""
31530 " int\n"
31531 " guestfs_pvresize (guestfs_h *g,\n"
31532 "                   const char *device);\n"
31533 "\n"
31534 msgstr ""
31535
31536 #. type: =head2
31537 #: ../src/guestfs-actions.pod:5851
31538 msgid "guestfs_pvresize_size"
31539 msgstr ""
31540
31541 #. type: verbatim
31542 #: ../src/guestfs-actions.pod:5853
31543 #, no-wrap
31544 msgid ""
31545 " int\n"
31546 " guestfs_pvresize_size (guestfs_h *g,\n"
31547 "                        const char *device,\n"
31548 "                        int64_t size);\n"
31549 "\n"
31550 msgstr ""
31551
31552 #. type: textblock
31553 #: ../src/guestfs-actions.pod:5858
31554 msgid ""
31555 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31556 "specify the new size (in bytes) explicitly."
31557 msgstr ""
31558
31559 #. type: =head2
31560 #: ../src/guestfs-actions.pod:5865
31561 msgid "guestfs_pvs"
31562 msgstr ""
31563
31564 #. type: verbatim
31565 #: ../src/guestfs-actions.pod:5867
31566 #, no-wrap
31567 msgid ""
31568 " char **\n"
31569 " guestfs_pvs (guestfs_h *g);\n"
31570 "\n"
31571 msgstr ""
31572
31573 #. type: textblock
31574 #: ../src/guestfs-actions.pod:5876
31575 msgid "See also C<guestfs_pvs_full>."
31576 msgstr ""
31577
31578 #. type: =head2
31579 #: ../src/guestfs-actions.pod:5884
31580 msgid "guestfs_pvs_full"
31581 msgstr ""
31582
31583 #. type: verbatim
31584 #: ../src/guestfs-actions.pod:5886
31585 #, no-wrap
31586 msgid ""
31587 " struct guestfs_lvm_pv_list *\n"
31588 " guestfs_pvs_full (guestfs_h *g);\n"
31589 "\n"
31590 msgstr ""
31591
31592 #. type: textblock
31593 #: ../src/guestfs-actions.pod:5892
31594 msgid ""
31595 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31596 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
31597 msgstr ""
31598
31599 #. type: =head2
31600 #: ../src/guestfs-actions.pod:5898
31601 msgid "guestfs_pvuuid"
31602 msgstr ""
31603
31604 #. type: verbatim
31605 #: ../src/guestfs-actions.pod:5900
31606 #, no-wrap
31607 msgid ""
31608 " char *\n"
31609 " guestfs_pvuuid (guestfs_h *g,\n"
31610 "                 const char *device);\n"
31611 "\n"
31612 msgstr ""
31613
31614 #. type: =head2
31615 #: ../src/guestfs-actions.pod:5911
31616 msgid "guestfs_pwrite"
31617 msgstr ""
31618
31619 #. type: verbatim
31620 #: ../src/guestfs-actions.pod:5913
31621 #, no-wrap
31622 msgid ""
31623 " int\n"
31624 " guestfs_pwrite (guestfs_h *g,\n"
31625 "                 const char *path,\n"
31626 "                 const char *content,\n"
31627 "                 size_t content_size,\n"
31628 "                 int64_t offset);\n"
31629 "\n"
31630 msgstr ""
31631
31632 #. type: textblock
31633 #: ../src/guestfs-actions.pod:5929
31634 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31635 msgstr ""
31636
31637 #. type: =head2
31638 #: ../src/guestfs-actions.pod:5938
31639 msgid "guestfs_pwrite_device"
31640 msgstr ""
31641
31642 #. type: verbatim
31643 #: ../src/guestfs-actions.pod:5940
31644 #, no-wrap
31645 msgid ""
31646 " int\n"
31647 " guestfs_pwrite_device (guestfs_h *g,\n"
31648 "                        const char *device,\n"
31649 "                        const char *content,\n"
31650 "                        size_t content_size,\n"
31651 "                        int64_t offset);\n"
31652 "\n"
31653 msgstr ""
31654
31655 #. type: textblock
31656 #: ../src/guestfs-actions.pod:5955
31657 msgid "See also C<guestfs_pwrite>."
31658 msgstr ""
31659
31660 #. type: textblock
31661 #: ../src/guestfs-actions.pod:5962
31662 msgid "(Added in 1.5.20)"
31663 msgstr "(Додано у 1.5.20)"
31664
31665 #. type: =head2
31666 #: ../src/guestfs-actions.pod:5964
31667 msgid "guestfs_read_file"
31668 msgstr ""
31669
31670 #. type: verbatim
31671 #: ../src/guestfs-actions.pod:5966
31672 #, no-wrap
31673 msgid ""
31674 " char *\n"
31675 " guestfs_read_file (guestfs_h *g,\n"
31676 "                    const char *path,\n"
31677 "                    size_t *size_r);\n"
31678 "\n"
31679 msgstr ""
31680
31681 #. type: textblock
31682 #: ../src/guestfs-actions.pod:5974
31683 msgid ""
31684 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31685 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31686 "function is limited in the total size of file that can be handled."
31687 msgstr ""
31688
31689 #. type: textblock
31690 #: ../src/guestfs-actions.pod:5986
31691 msgid "(Added in 1.0.63)"
31692 msgstr "(Додано у 1.0.63)"
31693
31694 #. type: =head2
31695 #: ../src/guestfs-actions.pod:5988
31696 msgid "guestfs_read_lines"
31697 msgstr ""
31698
31699 #. type: verbatim
31700 #: ../src/guestfs-actions.pod:5990
31701 #, no-wrap
31702 msgid ""
31703 " char **\n"
31704 " guestfs_read_lines (guestfs_h *g,\n"
31705 "                     const char *path);\n"
31706 "\n"
31707 msgstr ""
31708
31709 #. type: textblock
31710 #: ../src/guestfs-actions.pod:5999
31711 msgid ""
31712 "Note that this function cannot correctly handle binary files (specifically, "
31713 "files containing C<\\0> character which is treated as end of line).  For "
31714 "those you need to use the C<guestfs_read_file> function which has a more "
31715 "complex interface."
31716 msgstr ""
31717
31718 #. type: =head2
31719 #: ../src/guestfs-actions.pod:6010
31720 msgid "guestfs_readdir"
31721 msgstr ""
31722
31723 #. type: verbatim
31724 #: ../src/guestfs-actions.pod:6012
31725 #, no-wrap
31726 msgid ""
31727 " struct guestfs_dirent_list *\n"
31728 " guestfs_readdir (guestfs_h *g,\n"
31729 "                  const char *dir);\n"
31730 "\n"
31731 msgstr ""
31732
31733 #. type: textblock
31734 #: ../src/guestfs-actions.pod:6066
31735 msgid ""
31736 "This function is primarily intended for use by programs.  To get a simple "
31737 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31738 "consumption, use C<guestfs_ll>."
31739 msgstr ""
31740
31741 #. type: textblock
31742 #: ../src/guestfs-actions.pod:6070
31743 msgid ""
31744 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31745 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
31746 msgstr ""
31747
31748 #. type: =head2
31749 #: ../src/guestfs-actions.pod:6076
31750 msgid "guestfs_readlink"
31751 msgstr ""
31752
31753 #. type: verbatim
31754 #: ../src/guestfs-actions.pod:6078
31755 #, no-wrap
31756 msgid ""
31757 " char *\n"
31758 " guestfs_readlink (guestfs_h *g,\n"
31759 "                   const char *path);\n"
31760 "\n"
31761 msgstr ""
31762
31763 #. type: =head2
31764 #: ../src/guestfs-actions.pod:6089
31765 msgid "guestfs_readlinklist"
31766 msgstr ""
31767
31768 #. type: verbatim
31769 #: ../src/guestfs-actions.pod:6091
31770 #, no-wrap
31771 msgid ""
31772 " char **\n"
31773 " guestfs_readlinklist (guestfs_h *g,\n"
31774 "                       const char *path,\n"
31775 "                       char *const *names);\n"
31776 "\n"
31777 msgstr ""
31778
31779 #. type: =head2
31780 #: ../src/guestfs-actions.pod:6124
31781 msgid "guestfs_realpath"
31782 msgstr ""
31783
31784 #. type: verbatim
31785 #: ../src/guestfs-actions.pod:6126
31786 #, no-wrap
31787 msgid ""
31788 " char *\n"
31789 " guestfs_realpath (guestfs_h *g,\n"
31790 "                   const char *path);\n"
31791 "\n"
31792 msgstr ""
31793
31794 #. type: =head2
31795 #: ../src/guestfs-actions.pod:6138
31796 msgid "guestfs_removexattr"
31797 msgstr ""
31798
31799 #. type: verbatim
31800 #: ../src/guestfs-actions.pod:6140
31801 #, no-wrap
31802 msgid ""
31803 " int\n"
31804 " guestfs_removexattr (guestfs_h *g,\n"
31805 "                      const char *xattr,\n"
31806 "                      const char *path);\n"
31807 "\n"
31808 msgstr ""
31809
31810 #. type: textblock
31811 #: ../src/guestfs-actions.pod:6148
31812 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31813 msgstr ""
31814
31815 #. type: =head2
31816 #: ../src/guestfs-actions.pod:6154
31817 msgid "guestfs_resize2fs"
31818 msgstr ""
31819
31820 #. type: verbatim
31821 #: ../src/guestfs-actions.pod:6156
31822 #, no-wrap
31823 msgid ""
31824 " int\n"
31825 " guestfs_resize2fs (guestfs_h *g,\n"
31826 "                    const char *device);\n"
31827 "\n"
31828 msgstr ""
31829
31830 #. type: textblock
31831 #: ../src/guestfs-actions.pod:6163
31832 msgid ""
31833 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31834 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31835 "sometimes gives an error about this and sometimes not.  In any case, it is "
31836 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31837 msgstr ""
31838
31839 #. type: =head2
31840 #: ../src/guestfs-actions.pod:6173
31841 msgid "guestfs_resize2fs_M"
31842 msgstr ""
31843
31844 #. type: verbatim
31845 #: ../src/guestfs-actions.pod:6175
31846 #, no-wrap
31847 msgid ""
31848 " int\n"
31849 " guestfs_resize2fs_M (guestfs_h *g,\n"
31850 "                      const char *device);\n"
31851 "\n"
31852 msgstr ""
31853
31854 #. type: textblock
31855 #: ../src/guestfs-actions.pod:6179
31856 msgid ""
31857 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31858 "resized to its minimum size.  This works like the I<-M> option to the "
31859 "C<resize2fs> command."
31860 msgstr ""
31861
31862 #. type: textblock
31863 #: ../src/guestfs-actions.pod:6183
31864 msgid ""
31865 "To get the resulting size of the filesystem you should call "
31866 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31867 "These two numbers, multiplied together, give the resulting size of the "
31868 "minimal filesystem in bytes."
31869 msgstr ""
31870
31871 #. type: =head2
31872 #: ../src/guestfs-actions.pod:6192
31873 msgid "guestfs_resize2fs_size"
31874 msgstr ""
31875
31876 #. type: verbatim
31877 #: ../src/guestfs-actions.pod:6194
31878 #, no-wrap
31879 msgid ""
31880 " int\n"
31881 " guestfs_resize2fs_size (guestfs_h *g,\n"
31882 "                         const char *device,\n"
31883 "                         int64_t size);\n"
31884 "\n"
31885 msgstr ""
31886
31887 #. type: textblock
31888 #: ../src/guestfs-actions.pod:6199
31889 msgid ""
31890 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31891 "to specify the new size (in bytes) explicitly."
31892 msgstr ""
31893
31894 #. type: =head2
31895 #: ../src/guestfs-actions.pod:6206
31896 msgid "guestfs_rm"
31897 msgstr ""
31898
31899 #. type: verbatim
31900 #: ../src/guestfs-actions.pod:6208
31901 #, no-wrap
31902 msgid ""
31903 " int\n"
31904 " guestfs_rm (guestfs_h *g,\n"
31905 "             const char *path);\n"
31906 "\n"
31907 msgstr ""
31908
31909 #. type: =head2
31910 #: ../src/guestfs-actions.pod:6218
31911 msgid "guestfs_rm_rf"
31912 msgstr ""
31913
31914 #. type: verbatim
31915 #: ../src/guestfs-actions.pod:6220
31916 #, no-wrap
31917 msgid ""
31918 " int\n"
31919 " guestfs_rm_rf (guestfs_h *g,\n"
31920 "                const char *path);\n"
31921 "\n"
31922 msgstr ""
31923
31924 #. type: =head2
31925 #: ../src/guestfs-actions.pod:6232
31926 msgid "guestfs_rmdir"
31927 msgstr ""
31928
31929 #. type: verbatim
31930 #: ../src/guestfs-actions.pod:6234
31931 #, no-wrap
31932 msgid ""
31933 " int\n"
31934 " guestfs_rmdir (guestfs_h *g,\n"
31935 "                const char *path);\n"
31936 "\n"
31937 msgstr ""
31938
31939 #. type: =head2
31940 #: ../src/guestfs-actions.pod:6244
31941 msgid "guestfs_rmmountpoint"
31942 msgstr ""
31943
31944 #. type: verbatim
31945 #: ../src/guestfs-actions.pod:6246
31946 #, no-wrap
31947 msgid ""
31948 " int\n"
31949 " guestfs_rmmountpoint (guestfs_h *g,\n"
31950 "                       const char *exemptpath);\n"
31951 "\n"
31952 msgstr ""
31953
31954 #. type: textblock
31955 #: ../src/guestfs-actions.pod:6250
31956 msgid ""
31957 "This calls removes a mountpoint that was previously created with "
31958 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
31959 msgstr ""
31960
31961 #. type: =head2
31962 #: ../src/guestfs-actions.pod:6258
31963 msgid "guestfs_scrub_device"
31964 msgstr ""
31965
31966 #. type: verbatim
31967 #: ../src/guestfs-actions.pod:6260
31968 #, no-wrap
31969 msgid ""
31970 " int\n"
31971 " guestfs_scrub_device (guestfs_h *g,\n"
31972 "                       const char *device);\n"
31973 "\n"
31974 msgstr ""
31975
31976 #. type: textblock
31977 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6293
31978 #: ../src/guestfs-actions.pod:6312
31979 msgid "(Added in 1.0.52)"
31980 msgstr "(Додано у 1.0.52)"
31981
31982 #. type: =head2
31983 #: ../src/guestfs-actions.pod:6277
31984 msgid "guestfs_scrub_file"
31985 msgstr ""
31986
31987 #. type: verbatim
31988 #: ../src/guestfs-actions.pod:6279
31989 #, no-wrap
31990 msgid ""
31991 " int\n"
31992 " guestfs_scrub_file (guestfs_h *g,\n"
31993 "                     const char *file);\n"
31994 "\n"
31995 msgstr ""
31996
31997 #. type: =head2
31998 #: ../src/guestfs-actions.pod:6295
31999 msgid "guestfs_scrub_freespace"
32000 msgstr ""
32001
32002 #. type: verbatim
32003 #: ../src/guestfs-actions.pod:6297
32004 #, no-wrap
32005 msgid ""
32006 " int\n"
32007 " guestfs_scrub_freespace (guestfs_h *g,\n"
32008 "                          const char *dir);\n"
32009 "\n"
32010 msgstr ""
32011
32012 #. type: textblock
32013 #: ../src/guestfs-actions.pod:6301
32014 msgid ""
32015 "This command creates the directory C<dir> and then fills it with files until "
32016 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32017 "and deletes them.  The intention is to scrub any free space on the partition "
32018 "containing C<dir>."
32019 msgstr ""
32020
32021 #. type: =head2
32022 #: ../src/guestfs-actions.pod:6314
32023 msgid "guestfs_set_append"
32024 msgstr ""
32025
32026 #. type: verbatim
32027 #: ../src/guestfs-actions.pod:6316
32028 #, no-wrap
32029 msgid ""
32030 " int\n"
32031 " guestfs_set_append (guestfs_h *g,\n"
32032 "                     const char *append);\n"
32033 "\n"
32034 msgstr ""
32035
32036 #. type: =head2
32037 #: ../src/guestfs-actions.pod:6333
32038 msgid "guestfs_set_attach_method"
32039 msgstr ""
32040
32041 #. type: verbatim
32042 #: ../src/guestfs-actions.pod:6335
32043 #, no-wrap
32044 msgid ""
32045 " int\n"
32046 " guestfs_set_attach_method (guestfs_h *g,\n"
32047 "                            const char *attachmethod);\n"
32048 "\n"
32049 msgstr ""
32050
32051 #. type: =head2
32052 #: ../src/guestfs-actions.pod:6363
32053 msgid "guestfs_set_autosync"
32054 msgstr ""
32055
32056 #. type: verbatim
32057 #: ../src/guestfs-actions.pod:6365
32058 #, no-wrap
32059 msgid ""
32060 " int\n"
32061 " guestfs_set_autosync (guestfs_h *g,\n"
32062 "                       int autosync);\n"
32063 "\n"
32064 msgstr ""
32065
32066 #. type: =head2
32067 #: ../src/guestfs-actions.pod:6381
32068 msgid "guestfs_set_direct"
32069 msgstr ""
32070
32071 #. type: verbatim
32072 #: ../src/guestfs-actions.pod:6383
32073 #, no-wrap
32074 msgid ""
32075 " int\n"
32076 " guestfs_set_direct (guestfs_h *g,\n"
32077 "                     int direct);\n"
32078 "\n"
32079 msgstr ""
32080
32081 #. type: textblock
32082 #: ../src/guestfs-actions.pod:6391
32083 msgid ""
32084 "One consequence of this is that log messages aren't caught by the library "
32085 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32086 "stdout."
32087 msgstr ""
32088
32089 #. type: =head2
32090 #: ../src/guestfs-actions.pod:6404
32091 msgid "guestfs_set_e2label"
32092 msgstr ""
32093
32094 #. type: verbatim
32095 #: ../src/guestfs-actions.pod:6406
32096 #, no-wrap
32097 msgid ""
32098 " int\n"
32099 " guestfs_set_e2label (guestfs_h *g,\n"
32100 "                      const char *device,\n"
32101 "                      const char *label);\n"
32102 "\n"
32103 msgstr ""
32104
32105 #. type: textblock
32106 #: ../src/guestfs-actions.pod:6415
32107 msgid ""
32108 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32109 "the existing label on a filesystem."
32110 msgstr ""
32111
32112 #. type: =head2
32113 #: ../src/guestfs-actions.pod:6422
32114 msgid "guestfs_set_e2uuid"
32115 msgstr ""
32116
32117 #. type: verbatim
32118 #: ../src/guestfs-actions.pod:6424
32119 #, no-wrap
32120 msgid ""
32121 " int\n"
32122 " guestfs_set_e2uuid (guestfs_h *g,\n"
32123 "                     const char *device,\n"
32124 "                     const char *uuid);\n"
32125 "\n"
32126 msgstr ""
32127
32128 #. type: textblock
32129 #: ../src/guestfs-actions.pod:6434
32130 msgid ""
32131 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32132 "the existing UUID of a filesystem."
32133 msgstr ""
32134
32135 #. type: =head2
32136 #: ../src/guestfs-actions.pod:6441
32137 msgid "guestfs_set_memsize"
32138 msgstr ""
32139
32140 #. type: verbatim
32141 #: ../src/guestfs-actions.pod:6443
32142 #, no-wrap
32143 msgid ""
32144 " int\n"
32145 " guestfs_set_memsize (guestfs_h *g,\n"
32146 "                      int memsize);\n"
32147 "\n"
32148 msgstr ""
32149
32150 #. type: textblock
32151 #: ../src/guestfs-actions.pod:6447
32152 msgid ""
32153 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
32154 "This only has any effect if called before C<guestfs_launch>."
32155 msgstr ""
32156
32157 #. type: =head2
32158 #: ../src/guestfs-actions.pod:6462
32159 msgid "guestfs_set_network"
32160 msgstr ""
32161
32162 #. type: verbatim
32163 #: ../src/guestfs-actions.pod:6464
32164 #, no-wrap
32165 msgid ""
32166 " int\n"
32167 " guestfs_set_network (guestfs_h *g,\n"
32168 "                      int network);\n"
32169 "\n"
32170 msgstr ""
32171
32172 #. type: textblock
32173 #: ../src/guestfs-actions.pod:6474
32174 msgid ""
32175 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32176 "effect."
32177 msgstr ""
32178
32179 #. type: =head2
32180 #: ../src/guestfs-actions.pod:6481
32181 msgid "guestfs_set_path"
32182 msgstr ""
32183
32184 #. type: verbatim
32185 #: ../src/guestfs-actions.pod:6483
32186 #, no-wrap
32187 msgid ""
32188 " int\n"
32189 " guestfs_set_path (guestfs_h *g,\n"
32190 "                   const char *searchpath);\n"
32191 "\n"
32192 msgstr ""
32193
32194 #. type: =head2
32195 #: ../src/guestfs-actions.pod:6498
32196 msgid "guestfs_set_pgroup"
32197 msgstr ""
32198
32199 #. type: verbatim
32200 #: ../src/guestfs-actions.pod:6500
32201 #, no-wrap
32202 msgid ""
32203 " int\n"
32204 " guestfs_set_pgroup (guestfs_h *g,\n"
32205 "                     int pgroup);\n"
32206 "\n"
32207 msgstr ""
32208
32209 #. type: =head2
32210 #: ../src/guestfs-actions.pod:6517
32211 msgid "guestfs_set_qemu"
32212 msgstr ""
32213
32214 #. type: verbatim
32215 #: ../src/guestfs-actions.pod:6519
32216 #, no-wrap
32217 msgid ""
32218 " int\n"
32219 " guestfs_set_qemu (guestfs_h *g,\n"
32220 "                   const char *qemu);\n"
32221 "\n"
32222 msgstr ""
32223
32224 #. type: =head2
32225 #: ../src/guestfs-actions.pod:6545
32226 msgid "guestfs_set_recovery_proc"
32227 msgstr ""
32228
32229 #. type: verbatim
32230 #: ../src/guestfs-actions.pod:6547
32231 #, no-wrap
32232 msgid ""
32233 " int\n"
32234 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32235 "                            int recoveryproc);\n"
32236 "\n"
32237 msgstr ""
32238
32239 #. type: textblock
32240 #: ../src/guestfs-actions.pod:6551
32241 msgid ""
32242 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32243 "not create a recovery process.  The purpose of the recovery process is to "
32244 "stop runaway qemu processes in the case where the main program aborts "
32245 "abruptly."
32246 msgstr ""
32247
32248 #. type: textblock
32249 #: ../src/guestfs-actions.pod:6556
32250 msgid ""
32251 "This only has any effect if called before C<guestfs_launch>, and the default "
32252 "is true."
32253 msgstr ""
32254
32255 #. type: =head2
32256 #: ../src/guestfs-actions.pod:6569
32257 msgid "guestfs_set_selinux"
32258 msgstr ""
32259
32260 #. type: verbatim
32261 #: ../src/guestfs-actions.pod:6571
32262 #, no-wrap
32263 msgid ""
32264 " int\n"
32265 " guestfs_set_selinux (guestfs_h *g,\n"
32266 "                      int selinux);\n"
32267 "\n"
32268 msgstr ""
32269
32270 #. type: =head2
32271 #: ../src/guestfs-actions.pod:6588
32272 msgid "guestfs_set_smp"
32273 msgstr ""
32274
32275 #. type: verbatim
32276 #: ../src/guestfs-actions.pod:6590
32277 #, no-wrap
32278 msgid ""
32279 " int\n"
32280 " guestfs_set_smp (guestfs_h *g,\n"
32281 "                  int smp);\n"
32282 "\n"
32283 msgstr ""
32284
32285 #. type: textblock
32286 #: ../src/guestfs-actions.pod:6598
32287 msgid "This function must be called before C<guestfs_launch>."
32288 msgstr ""
32289
32290 #. type: =head2
32291 #: ../src/guestfs-actions.pod:6604
32292 msgid "guestfs_set_trace"
32293 msgstr ""
32294
32295 #. type: verbatim
32296 #: ../src/guestfs-actions.pod:6606
32297 #, no-wrap
32298 msgid ""
32299 " int\n"
32300 " guestfs_set_trace (guestfs_h *g,\n"
32301 "                    int trace);\n"
32302 "\n"
32303 msgstr ""
32304
32305 #. type: textblock
32306 #: ../src/guestfs-actions.pod:6620
32307 msgid ""
32308 "Trace messages are normally sent to C<stderr>, unless you register a "
32309 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32310 msgstr ""
32311
32312 #. type: =head2
32313 #: ../src/guestfs-actions.pod:6628
32314 msgid "guestfs_set_verbose"
32315 msgstr ""
32316
32317 #. type: verbatim
32318 #: ../src/guestfs-actions.pod:6630
32319 #, no-wrap
32320 msgid ""
32321 " int\n"
32322 " guestfs_set_verbose (guestfs_h *g,\n"
32323 "                      int verbose);\n"
32324 "\n"
32325 msgstr ""
32326
32327 #. type: textblock
32328 #: ../src/guestfs-actions.pod:6639
32329 msgid ""
32330 "Verbose messages are normally sent to C<stderr>, unless you register a "
32331 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32332 msgstr ""
32333
32334 #. type: =head2
32335 #: ../src/guestfs-actions.pod:6647
32336 msgid "guestfs_setcon"
32337 msgstr ""
32338
32339 #. type: verbatim
32340 #: ../src/guestfs-actions.pod:6649
32341 #, no-wrap
32342 msgid ""
32343 " int\n"
32344 " guestfs_setcon (guestfs_h *g,\n"
32345 "                 const char *context);\n"
32346 "\n"
32347 msgstr ""
32348
32349 #. type: =head2
32350 #: ../src/guestfs-actions.pod:6662
32351 msgid "guestfs_setxattr"
32352 msgstr ""
32353
32354 #. type: verbatim
32355 #: ../src/guestfs-actions.pod:6664
32356 #, no-wrap
32357 msgid ""
32358 " int\n"
32359 " guestfs_setxattr (guestfs_h *g,\n"
32360 "                   const char *xattr,\n"
32361 "                   const char *val,\n"
32362 "                   int vallen,\n"
32363 "                   const char *path);\n"
32364 "\n"
32365 msgstr ""
32366
32367 #. type: textblock
32368 #: ../src/guestfs-actions.pod:6675
32369 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32370 msgstr ""
32371
32372 #. type: =head2
32373 #: ../src/guestfs-actions.pod:6681
32374 msgid "guestfs_sfdisk"
32375 msgstr ""
32376
32377 #. type: verbatim
32378 #: ../src/guestfs-actions.pod:6683
32379 #, no-wrap
32380 msgid ""
32381 " int\n"
32382 " guestfs_sfdisk (guestfs_h *g,\n"
32383 "                 const char *device,\n"
32384 "                 int cyls,\n"
32385 "                 int heads,\n"
32386 "                 int sectors,\n"
32387 "                 char *const *lines);\n"
32388 "\n"
32389 msgstr ""
32390
32391 #. type: textblock
32392 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:6735
32393 #: ../src/guestfs-actions.pod:6769
32394 msgid ""
32395 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32396 "call instead."
32397 msgstr ""
32398
32399 #. type: textblock
32400 #: ../src/guestfs-actions.pod:6718
32401 msgid ""
32402 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32403 msgstr ""
32404
32405 #. type: =head2
32406 #: ../src/guestfs-actions.pod:6728
32407 msgid "guestfs_sfdiskM"
32408 msgstr ""
32409
32410 #. type: verbatim
32411 #: ../src/guestfs-actions.pod:6730
32412 #, no-wrap
32413 msgid ""
32414 " int\n"
32415 " guestfs_sfdiskM (guestfs_h *g,\n"
32416 "                  const char *device,\n"
32417 "                  char *const *lines);\n"
32418 "\n"
32419 msgstr ""
32420
32421 #. type: textblock
32422 #: ../src/guestfs-actions.pod:6742
32423 msgid ""
32424 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32425 "partition sizes are specified in megabytes only (rounded to the nearest "
32426 "cylinder) and you don't need to specify the cyls, heads and sectors "
32427 "parameters which were rarely if ever used anyway."
32428 msgstr ""
32429
32430 #. type: textblock
32431 #: ../src/guestfs-actions.pod:6748
32432 msgid ""
32433 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32434 "C<guestfs_part_disk>"
32435 msgstr ""
32436
32437 #. type: =head2
32438 #: ../src/guestfs-actions.pod:6758
32439 msgid "guestfs_sfdisk_N"
32440 msgstr ""
32441
32442 #. type: verbatim
32443 #: ../src/guestfs-actions.pod:6760
32444 #, no-wrap
32445 msgid ""
32446 " int\n"
32447 " guestfs_sfdisk_N (guestfs_h *g,\n"
32448 "                   const char *device,\n"
32449 "                   int partnum,\n"
32450 "                   int cyls,\n"
32451 "                   int heads,\n"
32452 "                   int sectors,\n"
32453 "                   const char *line);\n"
32454 "\n"
32455 msgstr ""
32456
32457 #. type: textblock
32458 #: ../src/guestfs-actions.pod:6779
32459 msgid ""
32460 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32461 "for the cyls/heads/sectors parameters."
32462 msgstr ""
32463
32464 #. type: textblock
32465 #: ../src/guestfs-actions.pod:6782
32466 msgid "See also: C<guestfs_part_add>"
32467 msgstr ""
32468
32469 #. type: =head2
32470 #: ../src/guestfs-actions.pod:6791
32471 msgid "guestfs_sfdisk_disk_geometry"
32472 msgstr ""
32473
32474 #. type: verbatim
32475 #: ../src/guestfs-actions.pod:6793
32476 #, no-wrap
32477 msgid ""
32478 " char *\n"
32479 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32480 "                               const char *device);\n"
32481 "\n"
32482 msgstr ""
32483
32484 #. type: textblock
32485 #: ../src/guestfs-actions.pod:6797
32486 msgid ""
32487 "This displays the disk geometry of C<device> read from the partition table.  "
32488 "Especially in the case where the underlying block device has been resized, "
32489 "this can be different from the kernel's idea of the geometry (see "
32490 "C<guestfs_sfdisk_kernel_geometry>)."
32491 msgstr ""
32492
32493 #. type: =head2
32494 #: ../src/guestfs-actions.pod:6810
32495 msgid "guestfs_sfdisk_kernel_geometry"
32496 msgstr ""
32497
32498 #. type: verbatim
32499 #: ../src/guestfs-actions.pod:6812
32500 #, no-wrap
32501 msgid ""
32502 " char *\n"
32503 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32504 "                                 const char *device);\n"
32505 "\n"
32506 msgstr ""
32507
32508 #. type: =head2
32509 #: ../src/guestfs-actions.pod:6826
32510 msgid "guestfs_sfdisk_l"
32511 msgstr ""
32512
32513 #. type: verbatim
32514 #: ../src/guestfs-actions.pod:6828
32515 #, no-wrap
32516 msgid ""
32517 " char *\n"
32518 " guestfs_sfdisk_l (guestfs_h *g,\n"
32519 "                   const char *device);\n"
32520 "\n"
32521 msgstr ""
32522
32523 #. type: textblock
32524 #: ../src/guestfs-actions.pod:6832
32525 msgid ""
32526 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32527 "call instead."
32528 msgstr ""
32529
32530 #. type: textblock
32531 #: ../src/guestfs-actions.pod:6843
32532 msgid "See also: C<guestfs_part_list>"
32533 msgstr ""
32534
32535 #. type: =head2
32536 #: ../src/guestfs-actions.pod:6850
32537 msgid "guestfs_sh"
32538 msgstr ""
32539
32540 #. type: verbatim
32541 #: ../src/guestfs-actions.pod:6852
32542 #, no-wrap
32543 msgid ""
32544 " char *\n"
32545 " guestfs_sh (guestfs_h *g,\n"
32546 "             const char *command);\n"
32547 "\n"
32548 msgstr ""
32549
32550 #. type: textblock
32551 #: ../src/guestfs-actions.pod:6859
32552 msgid "This is like C<guestfs_command>, but passes the command to:"
32553 msgstr ""
32554
32555 #. type: textblock
32556 #: ../src/guestfs-actions.pod:6867
32557 msgid "All the provisos about C<guestfs_command> apply to this call."
32558 msgstr ""
32559
32560 #. type: =head2
32561 #: ../src/guestfs-actions.pod:6874
32562 msgid "guestfs_sh_lines"
32563 msgstr ""
32564
32565 #. type: verbatim
32566 #: ../src/guestfs-actions.pod:6876
32567 #, no-wrap
32568 msgid ""
32569 " char **\n"
32570 " guestfs_sh_lines (guestfs_h *g,\n"
32571 "                   const char *command);\n"
32572 "\n"
32573 msgstr ""
32574
32575 #. type: textblock
32576 #: ../src/guestfs-actions.pod:6880
32577 msgid ""
32578 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32579 "lines."
32580 msgstr ""
32581
32582 #. type: textblock
32583 #: ../src/guestfs-actions.pod:6883
32584 msgid "See also: C<guestfs_command_lines>"
32585 msgstr ""
32586
32587 #. type: =head2
32588 #: ../src/guestfs-actions.pod:6891
32589 msgid "guestfs_sleep"
32590 msgstr ""
32591
32592 #. type: verbatim
32593 #: ../src/guestfs-actions.pod:6893
32594 #, no-wrap
32595 msgid ""
32596 " int\n"
32597 " guestfs_sleep (guestfs_h *g,\n"
32598 "                int secs);\n"
32599 "\n"
32600 msgstr ""
32601
32602 #. type: textblock
32603 #: ../src/guestfs-actions.pod:6901
32604 msgid "(Added in 1.0.41)"
32605 msgstr "(Додано у 1.0.41)"
32606
32607 #. type: =head2
32608 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-structs.pod:109
32609 msgid "guestfs_stat"
32610 msgstr ""
32611
32612 #. type: verbatim
32613 #: ../src/guestfs-actions.pod:6905
32614 #, no-wrap
32615 msgid ""
32616 " struct guestfs_stat *\n"
32617 " guestfs_stat (guestfs_h *g,\n"
32618 "               const char *path);\n"
32619 "\n"
32620 msgstr ""
32621
32622 #. type: =head2
32623 #: ../src/guestfs-actions.pod:6919 ../src/guestfs-structs.pod:135
32624 msgid "guestfs_statvfs"
32625 msgstr ""
32626
32627 #. type: verbatim
32628 #: ../src/guestfs-actions.pod:6921
32629 #, no-wrap
32630 msgid ""
32631 " struct guestfs_statvfs *\n"
32632 " guestfs_statvfs (guestfs_h *g,\n"
32633 "                  const char *path);\n"
32634 "\n"
32635 msgstr ""
32636
32637 #. type: textblock
32638 #: ../src/guestfs-actions.pod:6931
32639 msgid ""
32640 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32641 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32642 msgstr ""
32643
32644 #. type: =head2
32645 #: ../src/guestfs-actions.pod:6937
32646 msgid "guestfs_strings"
32647 msgstr ""
32648
32649 #. type: verbatim
32650 #: ../src/guestfs-actions.pod:6939
32651 #, no-wrap
32652 msgid ""
32653 " char **\n"
32654 " guestfs_strings (guestfs_h *g,\n"
32655 "                  const char *path);\n"
32656 "\n"
32657 msgstr ""
32658
32659 #. type: =head2
32660 #: ../src/guestfs-actions.pod:6955
32661 msgid "guestfs_strings_e"
32662 msgstr ""
32663
32664 #. type: verbatim
32665 #: ../src/guestfs-actions.pod:6957
32666 #, no-wrap
32667 msgid ""
32668 " char **\n"
32669 " guestfs_strings_e (guestfs_h *g,\n"
32670 "                    const char *encoding,\n"
32671 "                    const char *path);\n"
32672 "\n"
32673 msgstr ""
32674
32675 #. type: textblock
32676 #: ../src/guestfs-actions.pod:6962
32677 msgid ""
32678 "This is like the C<guestfs_strings> command, but allows you to specify the "
32679 "encoding of strings that are looked for in the source file C<path>."
32680 msgstr ""
32681
32682 #. type: textblock
32683 #: ../src/guestfs-actions.pod:6972
32684 msgid ""
32685 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32686 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32687 msgstr ""
32688
32689 #. type: =head2
32690 #: ../src/guestfs-actions.pod:7010
32691 msgid "guestfs_swapoff_device"
32692 msgstr ""
32693
32694 #. type: verbatim
32695 #: ../src/guestfs-actions.pod:7012
32696 #, no-wrap
32697 msgid ""
32698 " int\n"
32699 " guestfs_swapoff_device (guestfs_h *g,\n"
32700 "                         const char *device);\n"
32701 "\n"
32702 msgstr ""
32703
32704 #. type: textblock
32705 #: ../src/guestfs-actions.pod:7016
32706 msgid ""
32707 "This command disables the libguestfs appliance swap device or partition "
32708 "named C<device>.  See C<guestfs_swapon_device>."
32709 msgstr ""
32710
32711 #. type: =head2
32712 #: ../src/guestfs-actions.pod:7024
32713 msgid "guestfs_swapoff_file"
32714 msgstr ""
32715
32716 #. type: verbatim
32717 #: ../src/guestfs-actions.pod:7026
32718 #, no-wrap
32719 msgid ""
32720 " int\n"
32721 " guestfs_swapoff_file (guestfs_h *g,\n"
32722 "                       const char *file);\n"
32723 "\n"
32724 msgstr ""
32725
32726 #. type: =head2
32727 #: ../src/guestfs-actions.pod:7036
32728 msgid "guestfs_swapoff_label"
32729 msgstr ""
32730
32731 #. type: verbatim
32732 #: ../src/guestfs-actions.pod:7038
32733 #, no-wrap
32734 msgid ""
32735 " int\n"
32736 " guestfs_swapoff_label (guestfs_h *g,\n"
32737 "                        const char *label);\n"
32738 "\n"
32739 msgstr ""
32740
32741 #. type: =head2
32742 #: ../src/guestfs-actions.pod:7049
32743 msgid "guestfs_swapoff_uuid"
32744 msgstr ""
32745
32746 #. type: verbatim
32747 #: ../src/guestfs-actions.pod:7051
32748 #, no-wrap
32749 msgid ""
32750 " int\n"
32751 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32752 "                       const char *uuid);\n"
32753 "\n"
32754 msgstr ""
32755
32756 #. type: =head2
32757 #: ../src/guestfs-actions.pod:7062
32758 msgid "guestfs_swapon_device"
32759 msgstr ""
32760
32761 #. type: verbatim
32762 #: ../src/guestfs-actions.pod:7064
32763 #, no-wrap
32764 msgid ""
32765 " int\n"
32766 " guestfs_swapon_device (guestfs_h *g,\n"
32767 "                        const char *device);\n"
32768 "\n"
32769 msgstr ""
32770
32771 #. type: textblock
32772 #: ../src/guestfs-actions.pod:7068
32773 msgid ""
32774 "This command enables the libguestfs appliance to use the swap device or "
32775 "partition named C<device>.  The increased memory is made available for all "
32776 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32777 msgstr ""
32778
32779 #. type: =head2
32780 #: ../src/guestfs-actions.pod:7084
32781 msgid "guestfs_swapon_file"
32782 msgstr ""
32783
32784 #. type: verbatim
32785 #: ../src/guestfs-actions.pod:7086
32786 #, no-wrap
32787 msgid ""
32788 " int\n"
32789 " guestfs_swapon_file (guestfs_h *g,\n"
32790 "                      const char *file);\n"
32791 "\n"
32792 msgstr ""
32793
32794 #. type: textblock
32795 #: ../src/guestfs-actions.pod:7090
32796 msgid ""
32797 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32798 "notes."
32799 msgstr ""
32800
32801 #. type: =head2
32802 #: ../src/guestfs-actions.pod:7097
32803 msgid "guestfs_swapon_label"
32804 msgstr ""
32805
32806 #. type: verbatim
32807 #: ../src/guestfs-actions.pod:7099
32808 #, no-wrap
32809 msgid ""
32810 " int\n"
32811 " guestfs_swapon_label (guestfs_h *g,\n"
32812 "                       const char *label);\n"
32813 "\n"
32814 msgstr ""
32815
32816 #. type: textblock
32817 #: ../src/guestfs-actions.pod:7103
32818 msgid ""
32819 "This command enables swap to a labeled swap partition.  See "
32820 "C<guestfs_swapon_device> for other notes."
32821 msgstr ""
32822
32823 #. type: =head2
32824 #: ../src/guestfs-actions.pod:7110
32825 msgid "guestfs_swapon_uuid"
32826 msgstr ""
32827
32828 #. type: verbatim
32829 #: ../src/guestfs-actions.pod:7112
32830 #, no-wrap
32831 msgid ""
32832 " int\n"
32833 " guestfs_swapon_uuid (guestfs_h *g,\n"
32834 "                      const char *uuid);\n"
32835 "\n"
32836 msgstr ""
32837
32838 #. type: textblock
32839 #: ../src/guestfs-actions.pod:7116
32840 msgid ""
32841 "This command enables swap to a swap partition with the given UUID.  See "
32842 "C<guestfs_swapon_device> for other notes."
32843 msgstr ""
32844
32845 #. type: =head2
32846 #: ../src/guestfs-actions.pod:7123
32847 msgid "guestfs_sync"
32848 msgstr ""
32849
32850 #. type: verbatim
32851 #: ../src/guestfs-actions.pod:7125
32852 #, no-wrap
32853 msgid ""
32854 " int\n"
32855 " guestfs_sync (guestfs_h *g);\n"
32856 "\n"
32857 msgstr ""
32858
32859 #. type: =head2
32860 #: ../src/guestfs-actions.pod:7138
32861 msgid "guestfs_tail"
32862 msgstr ""
32863
32864 #. type: verbatim
32865 #: ../src/guestfs-actions.pod:7140
32866 #, no-wrap
32867 msgid ""
32868 " char **\n"
32869 " guestfs_tail (guestfs_h *g,\n"
32870 "               const char *path);\n"
32871 "\n"
32872 msgstr ""
32873
32874 #. type: =head2
32875 #: ../src/guestfs-actions.pod:7156
32876 msgid "guestfs_tail_n"
32877 msgstr ""
32878
32879 #. type: verbatim
32880 #: ../src/guestfs-actions.pod:7158
32881 #, no-wrap
32882 msgid ""
32883 " char **\n"
32884 " guestfs_tail_n (guestfs_h *g,\n"
32885 "                 int nrlines,\n"
32886 "                 const char *path);\n"
32887 "\n"
32888 msgstr ""
32889
32890 #. type: =head2
32891 #: ../src/guestfs-actions.pod:7180
32892 msgid "guestfs_tar_in"
32893 msgstr ""
32894
32895 #. type: verbatim
32896 #: ../src/guestfs-actions.pod:7182
32897 #, no-wrap
32898 msgid ""
32899 " int\n"
32900 " guestfs_tar_in (guestfs_h *g,\n"
32901 "                 const char *tarfile,\n"
32902 "                 const char *directory);\n"
32903 "\n"
32904 msgstr ""
32905
32906 #. type: textblock
32907 #: ../src/guestfs-actions.pod:7190
32908 msgid ""
32909 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32910 msgstr ""
32911
32912 #. type: textblock
32913 #: ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7212
32914 #: ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:7244
32915 msgid "(Added in 1.0.3)"
32916 msgstr "(Додано у 1.0.3)"
32917
32918 #. type: =head2
32919 #: ../src/guestfs-actions.pod:7197
32920 msgid "guestfs_tar_out"
32921 msgstr ""
32922
32923 #. type: verbatim
32924 #: ../src/guestfs-actions.pod:7199
32925 #, no-wrap
32926 msgid ""
32927 " int\n"
32928 " guestfs_tar_out (guestfs_h *g,\n"
32929 "                  const char *directory,\n"
32930 "                  const char *tarfile);\n"
32931 "\n"
32932 msgstr ""
32933
32934 #. type: textblock
32935 #: ../src/guestfs-actions.pod:7207
32936 msgid ""
32937 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32938 "C<guestfs_txz_out>."
32939 msgstr ""
32940
32941 #. type: =head2
32942 #: ../src/guestfs-actions.pod:7214
32943 msgid "guestfs_tgz_in"
32944 msgstr ""
32945
32946 #. type: verbatim
32947 #: ../src/guestfs-actions.pod:7216
32948 #, no-wrap
32949 msgid ""
32950 " int\n"
32951 " guestfs_tgz_in (guestfs_h *g,\n"
32952 "                 const char *tarball,\n"
32953 "                 const char *directory);\n"
32954 "\n"
32955 msgstr ""
32956
32957 #. type: textblock
32958 #: ../src/guestfs-actions.pod:7224
32959 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32960 msgstr ""
32961
32962 #. type: =head2
32963 #: ../src/guestfs-actions.pod:7230
32964 msgid "guestfs_tgz_out"
32965 msgstr ""
32966
32967 #. type: verbatim
32968 #: ../src/guestfs-actions.pod:7232
32969 #, no-wrap
32970 msgid ""
32971 " int\n"
32972 " guestfs_tgz_out (guestfs_h *g,\n"
32973 "                  const char *directory,\n"
32974 "                  const char *tarball);\n"
32975 "\n"
32976 msgstr ""
32977
32978 #. type: textblock
32979 #: ../src/guestfs-actions.pod:7240
32980 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32981 msgstr ""
32982
32983 #. type: =head2
32984 #: ../src/guestfs-actions.pod:7246
32985 msgid "guestfs_touch"
32986 msgstr ""
32987
32988 #. type: verbatim
32989 #: ../src/guestfs-actions.pod:7248
32990 #, no-wrap
32991 msgid ""
32992 " int\n"
32993 " guestfs_touch (guestfs_h *g,\n"
32994 "                const char *path);\n"
32995 "\n"
32996 msgstr ""
32997
32998 #. type: =head2
32999 #: ../src/guestfs-actions.pod:7263
33000 msgid "guestfs_truncate"
33001 msgstr ""
33002
33003 #. type: verbatim
33004 #: ../src/guestfs-actions.pod:7265
33005 #, no-wrap
33006 msgid ""
33007 " int\n"
33008 " guestfs_truncate (guestfs_h *g,\n"
33009 "                   const char *path);\n"
33010 "\n"
33011 msgstr ""
33012
33013 #. type: =head2
33014 #: ../src/guestfs-actions.pod:7276
33015 msgid "guestfs_truncate_size"
33016 msgstr ""
33017
33018 #. type: verbatim
33019 #: ../src/guestfs-actions.pod:7278
33020 #, no-wrap
33021 msgid ""
33022 " int\n"
33023 " guestfs_truncate_size (guestfs_h *g,\n"
33024 "                        const char *path,\n"
33025 "                        int64_t size);\n"
33026 "\n"
33027 msgstr ""
33028
33029 #. type: textblock
33030 #: ../src/guestfs-actions.pod:7286
33031 msgid ""
33032 "If the current file size is less than C<size> then the file is extended to "
33033 "the required size with zero bytes.  This creates a sparse file (ie. disk "
33034 "blocks are not allocated for the file until you write to it).  To create a "
33035 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33036 msgstr ""
33037
33038 #. type: =head2
33039 #: ../src/guestfs-actions.pod:7296
33040 msgid "guestfs_tune2fs_l"
33041 msgstr ""
33042
33043 #. type: verbatim
33044 #: ../src/guestfs-actions.pod:7298
33045 #, no-wrap
33046 msgid ""
33047 " char **\n"
33048 " guestfs_tune2fs_l (guestfs_h *g,\n"
33049 "                    const char *device);\n"
33050 "\n"
33051 msgstr ""
33052
33053 #. type: =head2
33054 #: ../src/guestfs-actions.pod:7318
33055 msgid "guestfs_txz_in"
33056 msgstr ""
33057
33058 #. type: verbatim
33059 #: ../src/guestfs-actions.pod:7320
33060 #, no-wrap
33061 msgid ""
33062 " int\n"
33063 " guestfs_txz_in (guestfs_h *g,\n"
33064 "                 const char *tarball,\n"
33065 "                 const char *directory);\n"
33066 "\n"
33067 msgstr ""
33068
33069 #. type: =head2
33070 #: ../src/guestfs-actions.pod:7332
33071 msgid "guestfs_txz_out"
33072 msgstr ""
33073
33074 #. type: verbatim
33075 #: ../src/guestfs-actions.pod:7334
33076 #, no-wrap
33077 msgid ""
33078 " int\n"
33079 " guestfs_txz_out (guestfs_h *g,\n"
33080 "                  const char *directory,\n"
33081 "                  const char *tarball);\n"
33082 "\n"
33083 msgstr ""
33084
33085 #. type: =head2
33086 #: ../src/guestfs-actions.pod:7346
33087 msgid "guestfs_umask"
33088 msgstr ""
33089
33090 #. type: verbatim
33091 #: ../src/guestfs-actions.pod:7348
33092 #, no-wrap
33093 msgid ""
33094 " int\n"
33095 " guestfs_umask (guestfs_h *g,\n"
33096 "                int mask);\n"
33097 "\n"
33098 msgstr ""
33099
33100 #. type: textblock
33101 #: ../src/guestfs-actions.pod:7364
33102 msgid ""
33103 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33104 "C<guestfs_mkdir>."
33105 msgstr ""
33106
33107 #. type: =head2
33108 #: ../src/guestfs-actions.pod:7373
33109 msgid "guestfs_umount"
33110 msgstr ""
33111
33112 #. type: verbatim
33113 #: ../src/guestfs-actions.pod:7375
33114 #, no-wrap
33115 msgid ""
33116 " int\n"
33117 " guestfs_umount (guestfs_h *g,\n"
33118 "                 const char *pathordevice);\n"
33119 "\n"
33120 msgstr ""
33121
33122 #. type: =head2
33123 #: ../src/guestfs-actions.pod:7387
33124 msgid "guestfs_umount_all"
33125 msgstr ""
33126
33127 #. type: verbatim
33128 #: ../src/guestfs-actions.pod:7389
33129 #, no-wrap
33130 msgid ""
33131 " int\n"
33132 " guestfs_umount_all (guestfs_h *g);\n"
33133 "\n"
33134 msgstr ""
33135
33136 #. type: =head2
33137 #: ../src/guestfs-actions.pod:7400
33138 msgid "guestfs_upload"
33139 msgstr ""
33140
33141 #. type: verbatim
33142 #: ../src/guestfs-actions.pod:7402
33143 #, no-wrap
33144 msgid ""
33145 " int\n"
33146 " guestfs_upload (guestfs_h *g,\n"
33147 "                 const char *filename,\n"
33148 "                 const char *remotefilename);\n"
33149 "\n"
33150 msgstr ""
33151
33152 #. type: textblock
33153 #: ../src/guestfs-actions.pod:7412
33154 msgid "See also C<guestfs_download>."
33155 msgstr ""
33156
33157 #. type: =head2
33158 #: ../src/guestfs-actions.pod:7423
33159 msgid "guestfs_upload_offset"
33160 msgstr ""
33161
33162 #. type: verbatim
33163 #: ../src/guestfs-actions.pod:7425
33164 #, no-wrap
33165 msgid ""
33166 " int\n"
33167 " guestfs_upload_offset (guestfs_h *g,\n"
33168 "                        const char *filename,\n"
33169 "                        const char *remotefilename,\n"
33170 "                        int64_t offset);\n"
33171 "\n"
33172 msgstr ""
33173
33174 #. type: textblock
33175 #: ../src/guestfs-actions.pod:7441
33176 msgid ""
33177 "Note that there is no limit on the amount of data that can be uploaded with "
33178 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33179 "full amount unless an error occurs."
33180 msgstr ""
33181
33182 #. type: textblock
33183 #: ../src/guestfs-actions.pod:7446
33184 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33185 msgstr ""
33186
33187 #. type: =head2
33188 #: ../src/guestfs-actions.pod:7457
33189 msgid "guestfs_utimens"
33190 msgstr ""
33191
33192 #. type: verbatim
33193 #: ../src/guestfs-actions.pod:7459
33194 #, no-wrap
33195 msgid ""
33196 " int\n"
33197 " guestfs_utimens (guestfs_h *g,\n"
33198 "                  const char *path,\n"
33199 "                  int64_t atsecs,\n"
33200 "                  int64_t atnsecs,\n"
33201 "                  int64_t mtsecs,\n"
33202 "                  int64_t mtnsecs);\n"
33203 "\n"
33204 msgstr ""
33205
33206 #. type: =head2
33207 #: ../src/guestfs-actions.pod:7488 ../src/guestfs-structs.pod:175
33208 msgid "guestfs_version"
33209 msgstr ""
33210
33211 #. type: verbatim
33212 #: ../src/guestfs-actions.pod:7490
33213 #, no-wrap
33214 msgid ""
33215 " struct guestfs_version *\n"
33216 " guestfs_version (guestfs_h *g);\n"
33217 "\n"
33218 msgstr ""
33219
33220 #. type: textblock
33221 #: ../src/guestfs-actions.pod:7518
33222 msgid ""
33223 "I<Note:> Don't use this call to test for availability of features.  In "
33224 "enterprise distributions we backport features from later versions into "
33225 "earlier versions, making this an unreliable way to test for features.  Use "
33226 "C<guestfs_available> instead."
33227 msgstr ""
33228
33229 #. type: textblock
33230 #: ../src/guestfs-actions.pod:7524
33231 msgid ""
33232 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33233 "error.  I<The caller must call C<guestfs_free_version> after use>."
33234 msgstr ""
33235
33236 #. type: textblock
33237 #: ../src/guestfs-actions.pod:7528
33238 msgid "(Added in 1.0.58)"
33239 msgstr "(Додано у 1.0.58)"
33240
33241 #. type: =head2
33242 #: ../src/guestfs-actions.pod:7530
33243 msgid "guestfs_vfs_label"
33244 msgstr ""
33245
33246 #. type: verbatim
33247 #: ../src/guestfs-actions.pod:7532
33248 #, no-wrap
33249 msgid ""
33250 " char *\n"
33251 " guestfs_vfs_label (guestfs_h *g,\n"
33252 "                    const char *device);\n"
33253 "\n"
33254 msgstr ""
33255
33256 #. type: textblock
33257 #: ../src/guestfs-actions.pod:7541
33258 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33259 msgstr ""
33260
33261 #. type: textblock
33262 #: ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7583
33263 msgid "(Added in 1.3.18)"
33264 msgstr "(Додано у 1.3.18)"
33265
33266 #. type: =head2
33267 #: ../src/guestfs-actions.pod:7548
33268 msgid "guestfs_vfs_type"
33269 msgstr ""
33270
33271 #. type: verbatim
33272 #: ../src/guestfs-actions.pod:7550
33273 #, no-wrap
33274 msgid ""
33275 " char *\n"
33276 " guestfs_vfs_type (guestfs_h *g,\n"
33277 "                   const char *device);\n"
33278 "\n"
33279 msgstr ""
33280
33281 #. type: =head2
33282 #: ../src/guestfs-actions.pod:7567
33283 msgid "guestfs_vfs_uuid"
33284 msgstr ""
33285
33286 #. type: verbatim
33287 #: ../src/guestfs-actions.pod:7569
33288 #, no-wrap
33289 msgid ""
33290 " char *\n"
33291 " guestfs_vfs_uuid (guestfs_h *g,\n"
33292 "                   const char *device);\n"
33293 "\n"
33294 msgstr ""
33295
33296 #. type: textblock
33297 #: ../src/guestfs-actions.pod:7578
33298 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33299 msgstr ""
33300
33301 #. type: =head2
33302 #: ../src/guestfs-actions.pod:7585
33303 msgid "guestfs_vg_activate"
33304 msgstr ""
33305
33306 #. type: verbatim
33307 #: ../src/guestfs-actions.pod:7587
33308 #, no-wrap
33309 msgid ""
33310 " int\n"
33311 " guestfs_vg_activate (guestfs_h *g,\n"
33312 "                      int activate,\n"
33313 "                      char *const *volgroups);\n"
33314 "\n"
33315 msgstr ""
33316
33317 #. type: =head2
33318 #: ../src/guestfs-actions.pod:7604
33319 msgid "guestfs_vg_activate_all"
33320 msgstr ""
33321
33322 #. type: verbatim
33323 #: ../src/guestfs-actions.pod:7606
33324 #, no-wrap
33325 msgid ""
33326 " int\n"
33327 " guestfs_vg_activate_all (guestfs_h *g,\n"
33328 "                          int activate);\n"
33329 "\n"
33330 msgstr ""
33331
33332 #. type: =head2
33333 #: ../src/guestfs-actions.pod:7619
33334 msgid "guestfs_vgcreate"
33335 msgstr ""
33336
33337 #. type: verbatim
33338 #: ../src/guestfs-actions.pod:7621
33339 #, no-wrap
33340 msgid ""
33341 " int\n"
33342 " guestfs_vgcreate (guestfs_h *g,\n"
33343 "                   const char *volgroup,\n"
33344 "                   char *const *physvols);\n"
33345 "\n"
33346 msgstr ""
33347
33348 #. type: =head2
33349 #: ../src/guestfs-actions.pod:7633
33350 msgid "guestfs_vglvuuids"
33351 msgstr ""
33352
33353 #. type: verbatim
33354 #: ../src/guestfs-actions.pod:7635
33355 #, no-wrap
33356 msgid ""
33357 " char **\n"
33358 " guestfs_vglvuuids (guestfs_h *g,\n"
33359 "                    const char *vgname);\n"
33360 "\n"
33361 msgstr ""
33362
33363 #. type: textblock
33364 #: ../src/guestfs-actions.pod:7642
33365 msgid ""
33366 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33367 "associate logical volumes and volume groups."
33368 msgstr ""
33369
33370 #. type: textblock
33371 #: ../src/guestfs-actions.pod:7645
33372 msgid "See also C<guestfs_vgpvuuids>."
33373 msgstr ""
33374
33375 #. type: =head2
33376 #: ../src/guestfs-actions.pod:7653
33377 msgid "guestfs_vgpvuuids"
33378 msgstr ""
33379
33380 #. type: verbatim
33381 #: ../src/guestfs-actions.pod:7655
33382 #, no-wrap
33383 msgid ""
33384 " char **\n"
33385 " guestfs_vgpvuuids (guestfs_h *g,\n"
33386 "                    const char *vgname);\n"
33387 "\n"
33388 msgstr ""
33389
33390 #. type: textblock
33391 #: ../src/guestfs-actions.pod:7662
33392 msgid ""
33393 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33394 "associate physical volumes and volume groups."
33395 msgstr ""
33396
33397 #. type: textblock
33398 #: ../src/guestfs-actions.pod:7665
33399 msgid "See also C<guestfs_vglvuuids>."
33400 msgstr ""
33401
33402 #. type: =head2
33403 #: ../src/guestfs-actions.pod:7673
33404 msgid "guestfs_vgremove"
33405 msgstr ""
33406
33407 #. type: verbatim
33408 #: ../src/guestfs-actions.pod:7675
33409 #, no-wrap
33410 msgid ""
33411 " int\n"
33412 " guestfs_vgremove (guestfs_h *g,\n"
33413 "                   const char *vgname);\n"
33414 "\n"
33415 msgstr ""
33416
33417 #. type: =head2
33418 #: ../src/guestfs-actions.pod:7688
33419 msgid "guestfs_vgrename"
33420 msgstr ""
33421
33422 #. type: verbatim
33423 #: ../src/guestfs-actions.pod:7690
33424 #, no-wrap
33425 msgid ""
33426 " int\n"
33427 " guestfs_vgrename (guestfs_h *g,\n"
33428 "                   const char *volgroup,\n"
33429 "                   const char *newvolgroup);\n"
33430 "\n"
33431 msgstr ""
33432
33433 #. type: =head2
33434 #: ../src/guestfs-actions.pod:7701
33435 msgid "guestfs_vgs"
33436 msgstr ""
33437
33438 #. type: verbatim
33439 #: ../src/guestfs-actions.pod:7703
33440 #, no-wrap
33441 msgid ""
33442 " char **\n"
33443 " guestfs_vgs (guestfs_h *g);\n"
33444 "\n"
33445 msgstr ""
33446
33447 #. type: textblock
33448 #: ../src/guestfs-actions.pod:7712
33449 msgid "See also C<guestfs_vgs_full>."
33450 msgstr ""
33451
33452 #. type: =head2
33453 #: ../src/guestfs-actions.pod:7720
33454 msgid "guestfs_vgs_full"
33455 msgstr ""
33456
33457 #. type: verbatim
33458 #: ../src/guestfs-actions.pod:7722
33459 #, no-wrap
33460 msgid ""
33461 " struct guestfs_lvm_vg_list *\n"
33462 " guestfs_vgs_full (guestfs_h *g);\n"
33463 "\n"
33464 msgstr ""
33465
33466 #. type: textblock
33467 #: ../src/guestfs-actions.pod:7728
33468 msgid ""
33469 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33470 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
33471 msgstr ""
33472
33473 #. type: =head2
33474 #: ../src/guestfs-actions.pod:7734
33475 msgid "guestfs_vgscan"
33476 msgstr ""
33477
33478 #. type: verbatim
33479 #: ../src/guestfs-actions.pod:7736
33480 #, no-wrap
33481 msgid ""
33482 " int\n"
33483 " guestfs_vgscan (guestfs_h *g);\n"
33484 "\n"
33485 msgstr ""
33486
33487 #. type: =head2
33488 #: ../src/guestfs-actions.pod:7746
33489 msgid "guestfs_vguuid"
33490 msgstr ""
33491
33492 #. type: verbatim
33493 #: ../src/guestfs-actions.pod:7748
33494 #, no-wrap
33495 msgid ""
33496 " char *\n"
33497 " guestfs_vguuid (guestfs_h *g,\n"
33498 "                 const char *vgname);\n"
33499 "\n"
33500 msgstr ""
33501
33502 #. type: =head2
33503 #: ../src/guestfs-actions.pod:7759
33504 msgid "guestfs_wait_ready"
33505 msgstr ""
33506
33507 #. type: verbatim
33508 #: ../src/guestfs-actions.pod:7761
33509 #, no-wrap
33510 msgid ""
33511 " int\n"
33512 " guestfs_wait_ready (guestfs_h *g);\n"
33513 "\n"
33514 msgstr ""
33515
33516 #. type: textblock
33517 #: ../src/guestfs-actions.pod:7764
33518 msgid ""
33519 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33520 "instead."
33521 msgstr ""
33522
33523 #. type: textblock
33524 #: ../src/guestfs-actions.pod:7771
33525 msgid "This function is a no op."
33526 msgstr ""
33527
33528 #. type: textblock
33529 #: ../src/guestfs-actions.pod:7773
33530 msgid ""
33531 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33532 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
33533 "is no longer necessary because C<guestfs_launch> now does the waiting."
33534 msgstr ""
33535
33536 #. type: textblock
33537 #: ../src/guestfs-actions.pod:7778
33538 msgid ""
33539 "If you see any calls to this function in code then you can just remove them, "
33540 "unless you want to retain compatibility with older versions of the API."
33541 msgstr ""
33542
33543 #. type: =head2
33544 #: ../src/guestfs-actions.pod:7786
33545 msgid "guestfs_wc_c"
33546 msgstr ""
33547
33548 #. type: verbatim
33549 #: ../src/guestfs-actions.pod:7788
33550 #, no-wrap
33551 msgid ""
33552 " int\n"
33553 " guestfs_wc_c (guestfs_h *g,\n"
33554 "               const char *path);\n"
33555 "\n"
33556 msgstr ""
33557
33558 #. type: =head2
33559 #: ../src/guestfs-actions.pod:7799
33560 msgid "guestfs_wc_l"
33561 msgstr ""
33562
33563 #. type: verbatim
33564 #: ../src/guestfs-actions.pod:7801
33565 #, no-wrap
33566 msgid ""
33567 " int\n"
33568 " guestfs_wc_l (guestfs_h *g,\n"
33569 "               const char *path);\n"
33570 "\n"
33571 msgstr ""
33572
33573 #. type: =head2
33574 #: ../src/guestfs-actions.pod:7812
33575 msgid "guestfs_wc_w"
33576 msgstr ""
33577
33578 #. type: verbatim
33579 #: ../src/guestfs-actions.pod:7814
33580 #, no-wrap
33581 msgid ""
33582 " int\n"
33583 " guestfs_wc_w (guestfs_h *g,\n"
33584 "               const char *path);\n"
33585 "\n"
33586 msgstr ""
33587
33588 #. type: =head2
33589 #: ../src/guestfs-actions.pod:7825
33590 msgid "guestfs_write"
33591 msgstr ""
33592
33593 #. type: verbatim
33594 #: ../src/guestfs-actions.pod:7827
33595 #, no-wrap
33596 msgid ""
33597 " int\n"
33598 " guestfs_write (guestfs_h *g,\n"
33599 "                const char *path,\n"
33600 "                const char *content,\n"
33601 "                size_t content_size);\n"
33602 "\n"
33603 msgstr ""
33604
33605 #. type: textblock
33606 #: ../src/guestfs-actions.pod:7836
33607 msgid "See also C<guestfs_write_append>."
33608 msgstr ""
33609
33610 #. type: =head2
33611 #: ../src/guestfs-actions.pod:7845
33612 msgid "guestfs_write_append"
33613 msgstr ""
33614
33615 #. type: verbatim
33616 #: ../src/guestfs-actions.pod:7847
33617 #, no-wrap
33618 msgid ""
33619 " int\n"
33620 " guestfs_write_append (guestfs_h *g,\n"
33621 "                       const char *path,\n"
33622 "                       const char *content,\n"
33623 "                       size_t content_size);\n"
33624 "\n"
33625 msgstr ""
33626
33627 #. type: textblock
33628 #: ../src/guestfs-actions.pod:7856
33629 msgid "See also C<guestfs_write>."
33630 msgstr ""
33631
33632 #. type: =head2
33633 #: ../src/guestfs-actions.pod:7865
33634 msgid "guestfs_write_file"
33635 msgstr "guestfs_write_file"
33636
33637 #. type: verbatim
33638 #: ../src/guestfs-actions.pod:7867
33639 #, no-wrap
33640 msgid ""
33641 " int\n"
33642 " guestfs_write_file (guestfs_h *g,\n"
33643 "                     const char *path,\n"
33644 "                     const char *content,\n"
33645 "                     int size);\n"
33646 "\n"
33647 msgstr ""
33648 " int\n"
33649 " guestfs_write_file (guestfs_h *g,\n"
33650 "                     const char *path,\n"
33651 "                     const char *content,\n"
33652 "                     int size);\n"
33653 "\n"
33654
33655 #. type: textblock
33656 #: ../src/guestfs-actions.pod:7873
33657 msgid ""
33658 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33659 "instead."
33660 msgstr ""
33661
33662 #. type: =head2
33663 #: ../src/guestfs-actions.pod:7898
33664 msgid "guestfs_zegrep"
33665 msgstr "guestfs_zegrep"
33666
33667 #. type: verbatim
33668 #: ../src/guestfs-actions.pod:7900
33669 #, no-wrap
33670 msgid ""
33671 " char **\n"
33672 " guestfs_zegrep (guestfs_h *g,\n"
33673 "                 const char *regex,\n"
33674 "                 const char *path);\n"
33675 "\n"
33676 msgstr ""
33677 " char **\n"
33678 " guestfs_zegrep (guestfs_h *g,\n"
33679 "                 const char *regex,\n"
33680 "                 const char *path);\n"
33681 "\n"
33682
33683 #. type: =head2
33684 #: ../src/guestfs-actions.pod:7917
33685 msgid "guestfs_zegrepi"
33686 msgstr "guestfs_zegrepi"
33687
33688 #. type: verbatim
33689 #: ../src/guestfs-actions.pod:7919
33690 #, no-wrap
33691 msgid ""
33692 " char **\n"
33693 " guestfs_zegrepi (guestfs_h *g,\n"
33694 "                  const char *regex,\n"
33695 "                  const char *path);\n"
33696 "\n"
33697 msgstr ""
33698 " char **\n"
33699 " guestfs_zegrepi (guestfs_h *g,\n"
33700 "                  const char *regex,\n"
33701 "                  const char *path);\n"
33702 "\n"
33703
33704 #. type: =head2
33705 #: ../src/guestfs-actions.pod:7936
33706 msgid "guestfs_zero"
33707 msgstr "guestfs_zero"
33708
33709 #. type: verbatim
33710 #: ../src/guestfs-actions.pod:7938
33711 #, no-wrap
33712 msgid ""
33713 " int\n"
33714 " guestfs_zero (guestfs_h *g,\n"
33715 "               const char *device);\n"
33716 "\n"
33717 msgstr ""
33718 " int\n"
33719 " guestfs_zero (guestfs_h *g,\n"
33720 "               const char *device);\n"
33721 "\n"
33722
33723 #. type: textblock
33724 #: ../src/guestfs-actions.pod:7952
33725 msgid ""
33726 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33727 "C<guestfs_is_zero_device>"
33728 msgstr ""
33729
33730 #. type: =head2
33731 #: ../src/guestfs-actions.pod:7964
33732 msgid "guestfs_zero_device"
33733 msgstr "guestfs_zero_device"
33734
33735 #. type: verbatim
33736 #: ../src/guestfs-actions.pod:7966
33737 #, no-wrap
33738 msgid ""
33739 " int\n"
33740 " guestfs_zero_device (guestfs_h *g,\n"
33741 "                      const char *device);\n"
33742 "\n"
33743 msgstr ""
33744 " int\n"
33745 " guestfs_zero_device (guestfs_h *g,\n"
33746 "                      const char *device);\n"
33747 "\n"
33748
33749 #. type: textblock
33750 #: ../src/guestfs-actions.pod:7970
33751 msgid ""
33752 "This command writes zeroes over the entire C<device>.  Compare with "
33753 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33754 msgstr ""
33755
33756 #. type: textblock
33757 #: ../src/guestfs-actions.pod:7988
33758 msgid "(Added in 1.3.1)"
33759 msgstr "(Додано у 1.3.1)"
33760
33761 #. type: =head2
33762 #: ../src/guestfs-actions.pod:7990
33763 msgid "guestfs_zerofree"
33764 msgstr "guestfs_zerofree"
33765
33766 #. type: verbatim
33767 #: ../src/guestfs-actions.pod:7992
33768 #, no-wrap
33769 msgid ""
33770 " int\n"
33771 " guestfs_zerofree (guestfs_h *g,\n"
33772 "                   const char *device);\n"
33773 "\n"
33774 msgstr ""
33775 " int\n"
33776 " guestfs_zerofree (guestfs_h *g,\n"
33777 "                   const char *device);\n"
33778 "\n"
33779
33780 #. type: =head2
33781 #: ../src/guestfs-actions.pod:8011
33782 msgid "guestfs_zfgrep"
33783 msgstr "guestfs_zfgrep"
33784
33785 #. type: verbatim
33786 #: ../src/guestfs-actions.pod:8013
33787 #, no-wrap
33788 msgid ""
33789 " char **\n"
33790 " guestfs_zfgrep (guestfs_h *g,\n"
33791 "                 const char *pattern,\n"
33792 "                 const char *path);\n"
33793 "\n"
33794 msgstr ""
33795 " char **\n"
33796 " guestfs_zfgrep (guestfs_h *g,\n"
33797 "                 const char *pattern,\n"
33798 "                 const char *path);\n"
33799 "\n"
33800
33801 #. type: =head2
33802 #: ../src/guestfs-actions.pod:8030
33803 msgid "guestfs_zfgrepi"
33804 msgstr "guestfs_zfgrepi"
33805
33806 #. type: verbatim
33807 #: ../src/guestfs-actions.pod:8032
33808 #, no-wrap
33809 msgid ""
33810 " char **\n"
33811 " guestfs_zfgrepi (guestfs_h *g,\n"
33812 "                  const char *pattern,\n"
33813 "                  const char *path);\n"
33814 "\n"
33815 msgstr ""
33816 " char **\n"
33817 " guestfs_zfgrepi (guestfs_h *g,\n"
33818 "                  const char *pattern,\n"
33819 "                  const char *path);\n"
33820 "\n"
33821
33822 #. type: =head2
33823 #: ../src/guestfs-actions.pod:8049
33824 msgid "guestfs_zfile"
33825 msgstr "guestfs_zfile"
33826
33827 #. type: verbatim
33828 #: ../src/guestfs-actions.pod:8051
33829 #, no-wrap
33830 msgid ""
33831 " char *\n"
33832 " guestfs_zfile (guestfs_h *g,\n"
33833 "                const char *meth,\n"
33834 "                const char *path);\n"
33835 "\n"
33836 msgstr ""
33837 " char *\n"
33838 " guestfs_zfile (guestfs_h *g,\n"
33839 "                const char *meth,\n"
33840 "                const char *path);\n"
33841 "\n"
33842
33843 #. type: textblock
33844 #: ../src/guestfs-actions.pod:8056
33845 msgid ""
33846 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33847 "instead."
33848 msgstr ""
33849
33850 #. type: textblock
33851 #: ../src/guestfs-actions.pod:8068
33852 msgid ""
33853 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33854 "files."
33855 msgstr ""
33856
33857 #. type: =head2
33858 #: ../src/guestfs-actions.pod:8076
33859 msgid "guestfs_zgrep"
33860 msgstr "guestfs_zgrep"
33861
33862 #. type: verbatim
33863 #: ../src/guestfs-actions.pod:8078
33864 #, no-wrap
33865 msgid ""
33866 " char **\n"
33867 " guestfs_zgrep (guestfs_h *g,\n"
33868 "                const char *regex,\n"
33869 "                const char *path);\n"
33870 "\n"
33871 msgstr ""
33872 " char **\n"
33873 " guestfs_zgrep (guestfs_h *g,\n"
33874 "                const char *regex,\n"
33875 "                const char *path);\n"
33876 "\n"
33877
33878 #. type: =head2
33879 #: ../src/guestfs-actions.pod:8095
33880 msgid "guestfs_zgrepi"
33881 msgstr "guestfs_zgrepi"
33882
33883 #. type: verbatim
33884 #: ../src/guestfs-actions.pod:8097
33885 #, no-wrap
33886 msgid ""
33887 " char **\n"
33888 " guestfs_zgrepi (guestfs_h *g,\n"
33889 "                 const char *regex,\n"
33890 "                 const char *path);\n"
33891 "\n"
33892 msgstr ""
33893 " char **\n"
33894 " guestfs_zgrepi (guestfs_h *g,\n"
33895 "                 const char *regex,\n"
33896 "                 const char *path);\n"
33897 "\n"
33898
33899 #. type: =item
33900 #: ../src/guestfs-availability.pod:3
33901 msgid "B<augeas>"
33902 msgstr "B<augeas>"
33903
33904 #. type: textblock
33905 #: ../src/guestfs-availability.pod:5
33906 msgid ""
33907 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
33908 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
33909 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
33910 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
33911 "L</guestfs_aug_save> L</guestfs_aug_set>"
33912 msgstr ""
33913
33914 #. type: =item
33915 #: ../src/guestfs-availability.pod:21
33916 msgid "B<btrfs>"
33917 msgstr "B<btrfs>"
33918
33919 #. type: textblock
33920 #: ../src/guestfs-availability.pod:23
33921 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33922 msgstr ""
33923
33924 #. type: =item
33925 #: ../src/guestfs-availability.pod:26
33926 msgid "B<grub>"
33927 msgstr ""
33928
33929 #. type: textblock
33930 #: ../src/guestfs-availability.pod:28
33931 msgid "The following functions: L</guestfs_grub_install>"
33932 msgstr ""
33933
33934 #. type: =item
33935 #: ../src/guestfs-availability.pod:31
33936 msgid "B<inotify>"
33937 msgstr "B<inotify>"
33938
33939 #. type: textblock
33940 #: ../src/guestfs-availability.pod:33
33941 msgid ""
33942 "The following functions: L</guestfs_inotify_add_watch> L</"
33943 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
33944 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33945 msgstr ""
33946
33947 #. type: =item
33948 #: ../src/guestfs-availability.pod:41
33949 msgid "B<linuxfsuuid>"
33950 msgstr "B<linuxfsuuid>"
33951
33952 #. type: textblock
33953 #: ../src/guestfs-availability.pod:43
33954 msgid ""
33955 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
33956 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33957 msgstr ""
33958
33959 #. type: =item
33960 #: ../src/guestfs-availability.pod:50
33961 msgid "B<linuxmodules>"
33962 msgstr "B<linuxmodules>"
33963
33964 #. type: textblock
33965 #: ../src/guestfs-availability.pod:52
33966 msgid "The following functions: L</guestfs_modprobe>"
33967 msgstr ""
33968
33969 #. type: =item
33970 #: ../src/guestfs-availability.pod:55
33971 msgid "B<linuxxattrs>"
33972 msgstr "B<linuxxattrs>"
33973
33974 #. type: textblock
33975 #: ../src/guestfs-availability.pod:57
33976 msgid ""
33977 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
33978 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
33979 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
33980 "guestfs_setxattr>"
33981 msgstr ""
33982
33983 #. type: =item
33984 #: ../src/guestfs-availability.pod:68
33985 msgid "B<luks>"
33986 msgstr "B<luks>"
33987
33988 #. type: textblock
33989 #: ../src/guestfs-availability.pod:70
33990 msgid ""
33991 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
33992 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
33993 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33994 msgstr ""
33995
33996 #. type: =item
33997 #: ../src/guestfs-availability.pod:79
33998 msgid "B<lvm2>"
33999 msgstr "B<lvm2>"
34000
34001 #. type: textblock
34002 #: ../src/guestfs-availability.pod:81
34003 msgid ""
34004 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34005 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34006 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34007 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34008 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34009 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34010 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34011 msgstr ""
34012
34013 #. type: =item
34014 #: ../src/guestfs-availability.pod:104
34015 msgid "B<mknod>"
34016 msgstr "B<mknod>"
34017
34018 #. type: textblock
34019 #: ../src/guestfs-availability.pod:106
34020 msgid ""
34021 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34022 "guestfs_mknod_b> L</guestfs_mknod_c>"
34023 msgstr ""
34024
34025 #. type: =item
34026 #: ../src/guestfs-availability.pod:112
34027 msgid "B<ntfs3g>"
34028 msgstr "B<ntfs3g>"
34029
34030 #. type: textblock
34031 #: ../src/guestfs-availability.pod:114
34032 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34033 msgstr ""
34034
34035 #. type: =item
34036 #: ../src/guestfs-availability.pod:117
34037 msgid "B<ntfsprogs>"
34038 msgstr "B<ntfsprogs>"
34039
34040 #. type: textblock
34041 #: ../src/guestfs-availability.pod:119
34042 msgid ""
34043 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34044 "L</guestfs_ntfsresize_size>"
34045 msgstr ""
34046
34047 #. type: =item
34048 #: ../src/guestfs-availability.pod:124
34049 msgid "B<realpath>"
34050 msgstr "B<realpath>"
34051
34052 #. type: textblock
34053 #: ../src/guestfs-availability.pod:126
34054 msgid "The following functions: L</guestfs_realpath>"
34055 msgstr ""
34056
34057 #. type: =item
34058 #: ../src/guestfs-availability.pod:129
34059 msgid "B<scrub>"
34060 msgstr "B<scrub>"
34061
34062 #. type: textblock
34063 #: ../src/guestfs-availability.pod:131
34064 msgid ""
34065 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34066 "guestfs_scrub_freespace>"
34067 msgstr ""
34068
34069 #. type: =item
34070 #: ../src/guestfs-availability.pod:136
34071 msgid "B<selinux>"
34072 msgstr "B<selinux>"
34073
34074 #. type: textblock
34075 #: ../src/guestfs-availability.pod:138
34076 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34077 msgstr ""
34078
34079 #. type: =item
34080 #: ../src/guestfs-availability.pod:142
34081 msgid "B<xz>"
34082 msgstr "B<xz>"
34083
34084 #. type: textblock
34085 #: ../src/guestfs-availability.pod:144
34086 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34087 msgstr ""
34088
34089 #. type: =item
34090 #: ../src/guestfs-availability.pod:148
34091 msgid "B<zerofree>"
34092 msgstr "B<zerofree>"
34093
34094 #. type: textblock
34095 #: ../src/guestfs-availability.pod:150
34096 msgid "The following functions: L</guestfs_zerofree>"
34097 msgstr ""
34098
34099 #. type: =head2
34100 #: ../src/guestfs-structs.pod:1
34101 msgid "guestfs_int_bool"
34102 msgstr ""
34103
34104 #. type: verbatim
34105 #: ../src/guestfs-structs.pod:3
34106 #, no-wrap
34107 msgid ""
34108 " struct guestfs_int_bool {\n"
34109 "   int32_t i;\n"
34110 "   int32_t b;\n"
34111 " };\n"
34112 " \n"
34113 msgstr ""
34114
34115 #. type: verbatim
34116 #: ../src/guestfs-structs.pod:8
34117 #, no-wrap
34118 msgid ""
34119 " struct guestfs_int_bool_list {\n"
34120 "   uint32_t len; /* Number of elements in list. */\n"
34121 "   struct guestfs_int_bool *val; /* Elements. */\n"
34122 " };\n"
34123 " \n"
34124 msgstr ""
34125
34126 #. type: verbatim
34127 #: ../src/guestfs-structs.pod:13
34128 #, no-wrap
34129 msgid ""
34130 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34131 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34132 "\n"
34133 msgstr ""
34134
34135 #. type: =head2
34136 #: ../src/guestfs-structs.pod:16
34137 msgid "guestfs_lvm_pv"
34138 msgstr ""
34139
34140 #. type: verbatim
34141 #: ../src/guestfs-structs.pod:18
34142 #, no-wrap
34143 msgid ""
34144 " struct guestfs_lvm_pv {\n"
34145 "   char *pv_name;\n"
34146 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34147 "   char pv_uuid[32];\n"
34148 "   char *pv_fmt;\n"
34149 "   uint64_t pv_size;\n"
34150 "   uint64_t dev_size;\n"
34151 "   uint64_t pv_free;\n"
34152 "   uint64_t pv_used;\n"
34153 "   char *pv_attr;\n"
34154 "   int64_t pv_pe_count;\n"
34155 "   int64_t pv_pe_alloc_count;\n"
34156 "   char *pv_tags;\n"
34157 "   uint64_t pe_start;\n"
34158 "   int64_t pv_mda_count;\n"
34159 "   uint64_t pv_mda_free;\n"
34160 " };\n"
34161 " \n"
34162 msgstr ""
34163
34164 #. type: verbatim
34165 #: ../src/guestfs-structs.pod:36
34166 #, no-wrap
34167 msgid ""
34168 " struct guestfs_lvm_pv_list {\n"
34169 "   uint32_t len; /* Number of elements in list. */\n"
34170 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
34171 " };\n"
34172 " \n"
34173 msgstr ""
34174
34175 #. type: verbatim
34176 #: ../src/guestfs-structs.pod:41
34177 #, no-wrap
34178 msgid ""
34179 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34180 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34181 "\n"
34182 msgstr ""
34183
34184 #. type: =head2
34185 #: ../src/guestfs-structs.pod:44
34186 msgid "guestfs_lvm_vg"
34187 msgstr ""
34188
34189 #. type: verbatim
34190 #: ../src/guestfs-structs.pod:46
34191 #, no-wrap
34192 msgid ""
34193 " struct guestfs_lvm_vg {\n"
34194 "   char *vg_name;\n"
34195 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34196 "   char vg_uuid[32];\n"
34197 "   char *vg_fmt;\n"
34198 "   char *vg_attr;\n"
34199 "   uint64_t vg_size;\n"
34200 "   uint64_t vg_free;\n"
34201 "   char *vg_sysid;\n"
34202 "   uint64_t vg_extent_size;\n"
34203 "   int64_t vg_extent_count;\n"
34204 "   int64_t vg_free_count;\n"
34205 "   int64_t max_lv;\n"
34206 "   int64_t max_pv;\n"
34207 "   int64_t pv_count;\n"
34208 "   int64_t lv_count;\n"
34209 "   int64_t snap_count;\n"
34210 "   int64_t vg_seqno;\n"
34211 "   char *vg_tags;\n"
34212 "   int64_t vg_mda_count;\n"
34213 "   uint64_t vg_mda_free;\n"
34214 " };\n"
34215 " \n"
34216 msgstr ""
34217
34218 #. type: verbatim
34219 #: ../src/guestfs-structs.pod:69
34220 #, no-wrap
34221 msgid ""
34222 " struct guestfs_lvm_vg_list {\n"
34223 "   uint32_t len; /* Number of elements in list. */\n"
34224 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
34225 " };\n"
34226 " \n"
34227 msgstr ""
34228
34229 #. type: verbatim
34230 #: ../src/guestfs-structs.pod:74
34231 #, no-wrap
34232 msgid ""
34233 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34234 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34235 "\n"
34236 msgstr ""
34237
34238 #. type: =head2
34239 #: ../src/guestfs-structs.pod:77
34240 msgid "guestfs_lvm_lv"
34241 msgstr ""
34242
34243 #. type: verbatim
34244 #: ../src/guestfs-structs.pod:79
34245 #, no-wrap
34246 msgid ""
34247 " struct guestfs_lvm_lv {\n"
34248 "   char *lv_name;\n"
34249 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34250 "   char lv_uuid[32];\n"
34251 "   char *lv_attr;\n"
34252 "   int64_t lv_major;\n"
34253 "   int64_t lv_minor;\n"
34254 "   int64_t lv_kernel_major;\n"
34255 "   int64_t lv_kernel_minor;\n"
34256 "   uint64_t lv_size;\n"
34257 "   int64_t seg_count;\n"
34258 "   char *origin;\n"
34259 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34260 "   float snap_percent;\n"
34261 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34262 "   float copy_percent;\n"
34263 "   char *move_pv;\n"
34264 "   char *lv_tags;\n"
34265 "   char *mirror_log;\n"
34266 "   char *modules;\n"
34267 " };\n"
34268 " \n"
34269 msgstr ""
34270
34271 #. type: verbatim
34272 #: ../src/guestfs-structs.pod:101
34273 #, no-wrap
34274 msgid ""
34275 " struct guestfs_lvm_lv_list {\n"
34276 "   uint32_t len; /* Number of elements in list. */\n"
34277 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
34278 " };\n"
34279 " \n"
34280 msgstr ""
34281
34282 #. type: verbatim
34283 #: ../src/guestfs-structs.pod:106
34284 #, no-wrap
34285 msgid ""
34286 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34287 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34288 "\n"
34289 msgstr ""
34290
34291 #. type: verbatim
34292 #: ../src/guestfs-structs.pod:111
34293 #, no-wrap
34294 msgid ""
34295 " struct guestfs_stat {\n"
34296 "   int64_t dev;\n"
34297 "   int64_t ino;\n"
34298 "   int64_t mode;\n"
34299 "   int64_t nlink;\n"
34300 "   int64_t uid;\n"
34301 "   int64_t gid;\n"
34302 "   int64_t rdev;\n"
34303 "   int64_t size;\n"
34304 "   int64_t blksize;\n"
34305 "   int64_t blocks;\n"
34306 "   int64_t atime;\n"
34307 "   int64_t mtime;\n"
34308 "   int64_t ctime;\n"
34309 " };\n"
34310 " \n"
34311 msgstr ""
34312
34313 #. type: verbatim
34314 #: ../src/guestfs-structs.pod:127
34315 #, no-wrap
34316 msgid ""
34317 " struct guestfs_stat_list {\n"
34318 "   uint32_t len; /* Number of elements in list. */\n"
34319 "   struct guestfs_stat *val; /* Elements. */\n"
34320 " };\n"
34321 " \n"
34322 msgstr ""
34323
34324 #. type: verbatim
34325 #: ../src/guestfs-structs.pod:132
34326 #, no-wrap
34327 msgid ""
34328 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34329 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34330 "\n"
34331 msgstr ""
34332
34333 #. type: verbatim
34334 #: ../src/guestfs-structs.pod:137
34335 #, no-wrap
34336 msgid ""
34337 " struct guestfs_statvfs {\n"
34338 "   int64_t bsize;\n"
34339 "   int64_t frsize;\n"
34340 "   int64_t blocks;\n"
34341 "   int64_t bfree;\n"
34342 "   int64_t bavail;\n"
34343 "   int64_t files;\n"
34344 "   int64_t ffree;\n"
34345 "   int64_t favail;\n"
34346 "   int64_t fsid;\n"
34347 "   int64_t flag;\n"
34348 "   int64_t namemax;\n"
34349 " };\n"
34350 " \n"
34351 msgstr ""
34352
34353 #. type: verbatim
34354 #: ../src/guestfs-structs.pod:151
34355 #, no-wrap
34356 msgid ""
34357 " struct guestfs_statvfs_list {\n"
34358 "   uint32_t len; /* Number of elements in list. */\n"
34359 "   struct guestfs_statvfs *val; /* Elements. */\n"
34360 " };\n"
34361 " \n"
34362 msgstr ""
34363
34364 #. type: verbatim
34365 #: ../src/guestfs-structs.pod:156
34366 #, no-wrap
34367 msgid ""
34368 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34369 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34370 "\n"
34371 msgstr ""
34372
34373 #. type: =head2
34374 #: ../src/guestfs-structs.pod:159
34375 msgid "guestfs_dirent"
34376 msgstr ""
34377
34378 #. type: verbatim
34379 #: ../src/guestfs-structs.pod:161
34380 #, no-wrap
34381 msgid ""
34382 " struct guestfs_dirent {\n"
34383 "   int64_t ino;\n"
34384 "   char ftyp;\n"
34385 "   char *name;\n"
34386 " };\n"
34387 " \n"
34388 msgstr ""
34389
34390 #. type: verbatim
34391 #: ../src/guestfs-structs.pod:167
34392 #, no-wrap
34393 msgid ""
34394 " struct guestfs_dirent_list {\n"
34395 "   uint32_t len; /* Number of elements in list. */\n"
34396 "   struct guestfs_dirent *val; /* Elements. */\n"
34397 " };\n"
34398 " \n"
34399 msgstr ""
34400
34401 #. type: verbatim
34402 #: ../src/guestfs-structs.pod:172
34403 #, no-wrap
34404 msgid ""
34405 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34406 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34407 "\n"
34408 msgstr ""
34409
34410 #. type: verbatim
34411 #: ../src/guestfs-structs.pod:177
34412 #, no-wrap
34413 msgid ""
34414 " struct guestfs_version {\n"
34415 "   int64_t major;\n"
34416 "   int64_t minor;\n"
34417 "   int64_t release;\n"
34418 "   char *extra;\n"
34419 " };\n"
34420 " \n"
34421 msgstr ""
34422
34423 #. type: verbatim
34424 #: ../src/guestfs-structs.pod:184
34425 #, no-wrap
34426 msgid ""
34427 " struct guestfs_version_list {\n"
34428 "   uint32_t len; /* Number of elements in list. */\n"
34429 "   struct guestfs_version *val; /* Elements. */\n"
34430 " };\n"
34431 " \n"
34432 msgstr ""
34433
34434 #. type: verbatim
34435 #: ../src/guestfs-structs.pod:189
34436 #, no-wrap
34437 msgid ""
34438 " void guestfs_free_version (struct guestfs_free_version *);\n"
34439 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34440 "\n"
34441 msgstr ""
34442
34443 #. type: =head2
34444 #: ../src/guestfs-structs.pod:192
34445 msgid "guestfs_xattr"
34446 msgstr ""
34447
34448 #. type: verbatim
34449 #: ../src/guestfs-structs.pod:194
34450 #, no-wrap
34451 msgid ""
34452 " struct guestfs_xattr {\n"
34453 "   char *attrname;\n"
34454 "   /* The next two fields describe a byte array. */\n"
34455 "   uint32_t attrval_len;\n"
34456 "   char *attrval;\n"
34457 " };\n"
34458 " \n"
34459 msgstr ""
34460
34461 #. type: verbatim
34462 #: ../src/guestfs-structs.pod:201
34463 #, no-wrap
34464 msgid ""
34465 " struct guestfs_xattr_list {\n"
34466 "   uint32_t len; /* Number of elements in list. */\n"
34467 "   struct guestfs_xattr *val; /* Elements. */\n"
34468 " };\n"
34469 " \n"
34470 msgstr ""
34471
34472 #. type: verbatim
34473 #: ../src/guestfs-structs.pod:206
34474 #, no-wrap
34475 msgid ""
34476 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34477 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34478 "\n"
34479 msgstr ""
34480
34481 #. type: =head2
34482 #: ../src/guestfs-structs.pod:209
34483 msgid "guestfs_inotify_event"
34484 msgstr ""
34485
34486 #. type: verbatim
34487 #: ../src/guestfs-structs.pod:211
34488 #, no-wrap
34489 msgid ""
34490 " struct guestfs_inotify_event {\n"
34491 "   int64_t in_wd;\n"
34492 "   uint32_t in_mask;\n"
34493 "   uint32_t in_cookie;\n"
34494 "   char *in_name;\n"
34495 " };\n"
34496 " \n"
34497 msgstr ""
34498
34499 #. type: verbatim
34500 #: ../src/guestfs-structs.pod:218
34501 #, no-wrap
34502 msgid ""
34503 " struct guestfs_inotify_event_list {\n"
34504 "   uint32_t len; /* Number of elements in list. */\n"
34505 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34506 " };\n"
34507 " \n"
34508 msgstr ""
34509
34510 #. type: verbatim
34511 #: ../src/guestfs-structs.pod:223
34512 #, no-wrap
34513 msgid ""
34514 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34515 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
34516 "\n"
34517 msgstr ""
34518
34519 #. type: =head2
34520 #: ../src/guestfs-structs.pod:226
34521 msgid "guestfs_partition"
34522 msgstr ""
34523
34524 #. type: verbatim
34525 #: ../src/guestfs-structs.pod:228
34526 #, no-wrap
34527 msgid ""
34528 " struct guestfs_partition {\n"
34529 "   int32_t part_num;\n"
34530 "   uint64_t part_start;\n"
34531 "   uint64_t part_end;\n"
34532 "   uint64_t part_size;\n"
34533 " };\n"
34534 " \n"
34535 msgstr ""
34536
34537 #. type: verbatim
34538 #: ../src/guestfs-structs.pod:235
34539 #, no-wrap
34540 msgid ""
34541 " struct guestfs_partition_list {\n"
34542 "   uint32_t len; /* Number of elements in list. */\n"
34543 "   struct guestfs_partition *val; /* Elements. */\n"
34544 " };\n"
34545 " \n"
34546 msgstr ""
34547
34548 #. type: verbatim
34549 #: ../src/guestfs-structs.pod:240
34550 #, no-wrap
34551 msgid ""
34552 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34553 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34554 "\n"
34555 msgstr ""
34556
34557 #. type: =head2
34558 #: ../src/guestfs-structs.pod:243
34559 msgid "guestfs_application"
34560 msgstr ""
34561
34562 #. type: verbatim
34563 #: ../src/guestfs-structs.pod:245
34564 #, no-wrap
34565 msgid ""
34566 " struct guestfs_application {\n"
34567 "   char *app_name;\n"
34568 "   char *app_display_name;\n"
34569 "   int32_t app_epoch;\n"
34570 "   char *app_version;\n"
34571 "   char *app_release;\n"
34572 "   char *app_install_path;\n"
34573 "   char *app_trans_path;\n"
34574 "   char *app_publisher;\n"
34575 "   char *app_url;\n"
34576 "   char *app_source_package;\n"
34577 "   char *app_summary;\n"
34578 "   char *app_description;\n"
34579 " };\n"
34580 " \n"
34581 msgstr ""
34582
34583 #. type: verbatim
34584 #: ../src/guestfs-structs.pod:260
34585 #, no-wrap
34586 msgid ""
34587 " struct guestfs_application_list {\n"
34588 "   uint32_t len; /* Number of elements in list. */\n"
34589 "   struct guestfs_application *val; /* Elements. */\n"
34590 " };\n"
34591 " \n"
34592 msgstr ""
34593
34594 #. type: verbatim
34595 #: ../src/guestfs-structs.pod:265
34596 #, no-wrap
34597 msgid ""
34598 " void guestfs_free_application (struct guestfs_free_application *);\n"
34599 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
34600 "\n"
34601 msgstr ""
34602
34603 #. type: textblock
34604 #: ../src/guestfs.pod:5
34605 msgid "guestfs - Library for accessing and modifying virtual machine images"
34606 msgstr ""
34607 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
34608 "машин"
34609
34610 #. type: verbatim
34611 #: ../src/guestfs.pod:11
34612 #, no-wrap
34613 msgid ""
34614 " guestfs_h *g = guestfs_create ();\n"
34615 " guestfs_add_drive (g, \"guest.img\");\n"
34616 " guestfs_launch (g);\n"
34617 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34618 " guestfs_touch (g, \"/hello\");\n"
34619 " guestfs_umount (g, \"/\");\n"
34620 " guestfs_close (g);\n"
34621 "\n"
34622 msgstr ""
34623 " guestfs_h *g = guestfs_create ();\n"
34624 " guestfs_add_drive (g, \"guest.img\");\n"
34625 " guestfs_launch (g);\n"
34626 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34627 " guestfs_touch (g, \"/hello\");\n"
34628 " guestfs_umount (g, \"/\");\n"
34629 " guestfs_close (g);\n"
34630 "\n"
34631
34632 #. type: textblock
34633 #: ../src/guestfs.pod:25
34634 msgid ""
34635 "Libguestfs is a library for accessing and modifying guest disk images.  "
34636 "Amongst the things this is good for: making batch configuration changes to "
34637 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34638 "between virtualization systems (see also: virt-p2v), performing partial "
34639 "backups, performing partial guest clones, cloning guests and changing "
34640 "registry/UUID/hostname info, and much else besides."
34641 msgstr ""
34642
34643 #. type: textblock
34644 #: ../src/guestfs.pod:33
34645 msgid ""
34646 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34647 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34648 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34649 "qcow2, vmdk."
34650 msgstr ""
34651
34652 #. type: textblock
34653 #: ../src/guestfs.pod:38
34654 msgid ""
34655 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34656 "what filesystem is in each LV, etc.).  It can also run commands in the "
34657 "context of the guest.  Also you can access filesystems over FUSE."
34658 msgstr ""
34659
34660 #. type: textblock
34661 #: ../src/guestfs.pod:43
34662 msgid ""
34663 "Libguestfs is a library that can be linked with C and C++ management "
34664 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34665 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34666 "command line."
34667 msgstr ""
34668
34669 #. type: textblock
34670 #: ../src/guestfs.pod:48
34671 msgid ""
34672 "You don't need to be root to use libguestfs, although obviously you do need "
34673 "enough permissions to access the disk images."
34674 msgstr ""
34675
34676 #. type: textblock
34677 #: ../src/guestfs.pod:51
34678 msgid ""
34679 "Libguestfs is a large API because it can do many things.  For a gentle "
34680 "introduction, please read the L</API OVERVIEW> section next."
34681 msgstr ""
34682
34683 #. type: textblock
34684 #: ../src/guestfs.pod:54
34685 msgid ""
34686 "There are also some example programs in the L<guestfs-examples(3)> manual "
34687 "page."
34688 msgstr ""
34689
34690 #. type: =head1
34691 #: ../src/guestfs.pod:57
34692 msgid "API OVERVIEW"
34693 msgstr "ОГЛЯД API"
34694
34695 #. type: textblock
34696 #: ../src/guestfs.pod:59
34697 msgid ""
34698 "This section provides a gentler overview of the libguestfs API.  We also try "
34699 "to group API calls together, where that may not be obvious from reading "
34700 "about the individual calls in the main section of this manual."
34701 msgstr ""
34702
34703 #. type: =head2
34704 #: ../src/guestfs.pod:64
34705 msgid "HANDLES"
34706 msgstr "ОБРОБНИКИ"
34707
34708 #. type: textblock
34709 #: ../src/guestfs.pod:66
34710 msgid ""
34711 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34712 "must add at least one disk image to the handle, followed by launching the "
34713 "handle, then performing whatever operations you want, and finally closing "
34714 "the handle.  By convention we use the single letter C<g> for the name of the "
34715 "handle variable, although of course you can use any name you want."
34716 msgstr ""
34717
34718 #. type: textblock
34719 #: ../src/guestfs.pod:73
34720 msgid "The general structure of all libguestfs-using programs looks like this:"
34721 msgstr ""
34722
34723 #. type: verbatim
34724 #: ../src/guestfs.pod:76
34725 #, no-wrap
34726 msgid ""
34727 " guestfs_h *g = guestfs_create ();\n"
34728 " \n"
34729 msgstr ""
34730 " guestfs_h *g = guestfs_create ();\n"
34731 " \n"
34732
34733 #. type: verbatim
34734 #: ../src/guestfs.pod:78
34735 #, no-wrap
34736 msgid ""
34737 " /* Call guestfs_add_drive additional times if there are\n"
34738 "  * multiple disk images.\n"
34739 "  */\n"
34740 " guestfs_add_drive (g, \"guest.img\");\n"
34741 " \n"
34742 msgstr ""
34743
34744 #. type: verbatim
34745 #: ../src/guestfs.pod:83
34746 #, no-wrap
34747 msgid ""
34748 " /* Most manipulation calls won't work until you've launched\n"
34749 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34750 "  * and _before_ other commands.\n"
34751 "  */\n"
34752 " guestfs_launch (g);\n"
34753 " \n"
34754 msgstr ""
34755
34756 #. type: verbatim
34757 #: ../src/guestfs.pod:89
34758 #, no-wrap
34759 msgid ""
34760 " /* Now you can examine what partitions, LVs etc are available.\n"
34761 "  */\n"
34762 " char **partitions = guestfs_list_partitions (g);\n"
34763 " char **logvols = guestfs_lvs (g);\n"
34764 " \n"
34765 msgstr ""
34766 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
34767 "  */\n"
34768 " char **partitions = guestfs_list_partitions (g);\n"
34769 " char **logvols = guestfs_lvs (g);\n"
34770 " \n"
34771
34772 #. type: verbatim
34773 #: ../src/guestfs.pod:94
34774 #, no-wrap
34775 msgid ""
34776 " /* To access a filesystem in the image, you must mount it.\n"
34777 "  */\n"
34778 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34779 " \n"
34780 msgstr ""
34781 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
34782 "  */\n"
34783 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34784 " \n"
34785
34786 #. type: verbatim
34787 #: ../src/guestfs.pod:98
34788 #, no-wrap
34789 msgid ""
34790 " /* Now you can perform filesystem actions on the guest\n"
34791 "  * disk image.\n"
34792 "  */\n"
34793 " guestfs_touch (g, \"/hello\");\n"
34794 " \n"
34795 msgstr ""
34796 " /* Тепер ви можете виконувати дії з файловою системою на\n"
34797 "  * образі диска операційної системи.\n"
34798 "  */\n"
34799 " guestfs_touch (g, \"/hello\");\n"
34800 " \n"
34801
34802 #. type: verbatim
34803 #: ../src/guestfs.pod:103
34804 #, no-wrap
34805 msgid ""
34806 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34807 "  * it is done automatically when you close the handle.  See\n"
34808 "  * discussion of autosync in this page.\n"
34809 "  */\n"
34810 " guestfs_sync (g);\n"
34811 " \n"
34812 msgstr ""
34813
34814 #. type: verbatim
34815 #: ../src/guestfs.pod:109
34816 #, no-wrap
34817 msgid ""
34818 " /* Close the handle 'g'. */\n"
34819 " guestfs_close (g);\n"
34820 "\n"
34821 msgstr ""
34822 " /* Закрити дескриптор 'g'. */\n"
34823 " guestfs_close (g);\n"
34824 "\n"
34825
34826 #. type: textblock
34827 #: ../src/guestfs.pod:112
34828 msgid ""
34829 "The code above doesn't include any error checking.  In real code you should "
34830 "check return values carefully for errors.  In general all functions that "
34831 "return integers return C<-1> on error, and all functions that return "
34832 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34833 "how to handle errors, and consult the documentation for each function call "
34834 "below to see precisely how they return error indications.  See L<guestfs-"
34835 "examples(3)> for fully worked examples."
34836 msgstr ""
34837
34838 #. type: =head2
34839 #: ../src/guestfs.pod:121
34840 msgid "DISK IMAGES"
34841 msgstr "ОБРАЗИ ДИСКІВ"
34842
34843 #. type: textblock
34844 #: ../src/guestfs.pod:123
34845 msgid ""
34846 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34847 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34848 "actual block device, or simply an empty file of zeroes that you have created "
34849 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
34850 "of these."
34851 msgstr ""
34852
34853 #. type: textblock
34854 #: ../src/guestfs.pod:129
34855 msgid ""
34856 "The call you should use in modern code for adding drives is L</"
34857 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34858 "specifying that the format is raw, do:"
34859 msgstr ""
34860
34861 #. type: verbatim
34862 #: ../src/guestfs.pod:133
34863 #, no-wrap
34864 msgid ""
34865 " guestfs_add_drive_opts (g, filename,\n"
34866 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34867 "                         -1);\n"
34868 "\n"
34869 msgstr ""
34870 " guestfs_add_drive_opts (g, filename,\n"
34871 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34872 "                         -1);\n"
34873 "\n"
34874
34875 #. type: textblock
34876 #: ../src/guestfs.pod:137
34877 msgid "You can add a disk read-only using:"
34878 msgstr "Ви можете додати диск у режимі лише читання:"
34879
34880 #. type: verbatim
34881 #: ../src/guestfs.pod:139
34882 #, no-wrap
34883 msgid ""
34884 " guestfs_add_drive_opts (g, filename,\n"
34885 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34886 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34887 "                         -1);\n"
34888 "\n"
34889 msgstr ""
34890 " guestfs_add_drive_opts (g, filename,\n"
34891 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34892 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34893 "                         -1);\n"
34894 "\n"
34895
34896 #. type: textblock
34897 #: ../src/guestfs.pod:144
34898 msgid ""
34899 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34900 "libguestfs won't modify the file."
34901 msgstr ""
34902
34903 #. type: textblock
34904 #: ../src/guestfs.pod:147
34905 msgid ""
34906 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34907 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
34908 "corruption, but adding it read-only is safe."
34909 msgstr ""
34910
34911 #. type: textblock
34912 #: ../src/guestfs.pod:151
34913 msgid ""
34914 "You must add at least one disk image, and you may add multiple disk images.  "
34915 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34916 "first one you added), C</dev/sdb> (for the second one you added), etc."
34917 msgstr ""
34918
34919 #. type: textblock
34920 #: ../src/guestfs.pod:156
34921 msgid ""
34922 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
34923 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34924 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
34925 msgstr ""
34926
34927 #. type: =head2
34928 #: ../src/guestfs.pod:161
34929 msgid "MOUNTING"
34930 msgstr "МОНТУВАННЯ"
34931
34932 #. type: textblock
34933 #: ../src/guestfs.pod:163
34934 msgid ""
34935 "Before you can read or write files, create directories and so on in a disk "
34936 "image that contains filesystems, you have to mount those filesystems using "
34937 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
34938 "a disk image contains (for example) one partition with a filesystem on that "
34939 "partition, then you can mount it directly:"
34940 msgstr ""
34941
34942 #. type: verbatim
34943 #: ../src/guestfs.pod:170
34944 #, no-wrap
34945 msgid ""
34946 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34947 "\n"
34948 msgstr ""
34949 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34950 "\n"
34951
34952 #. type: textblock
34953 #: ../src/guestfs.pod:172
34954 msgid ""
34955 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34956 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
34957 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
34958 "that these are libguestfs virtual devices, and are nothing to do with host "
34959 "devices."
34960 msgstr ""
34961
34962 #. type: textblock
34963 #: ../src/guestfs.pod:178
34964 msgid ""
34965 "If you are given a disk image and you don't know what it contains then you "
34966 "have to find out.  Libguestfs can do that too: use L</"
34967 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
34968 "LVs, and either try mounting each to see what is mountable, or else examine "
34969 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
34970 "filesystems, use L</guestfs_list_filesystems>."
34971 msgstr ""
34972
34973 #. type: textblock
34974 #: ../src/guestfs.pod:186
34975 msgid ""
34976 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34977 "L</INSPECTION> below).  But you might find it easier to look at higher level "
34978 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34979 msgstr ""
34980
34981 #. type: textblock
34982 #: ../src/guestfs.pod:191
34983 msgid ""
34984 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
34985 "several other variations of the C<guestfs_mount_*> call."
34986 msgstr ""
34987
34988 #. type: =head2
34989 #: ../src/guestfs.pod:194
34990 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34991 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
34992
34993 #. type: textblock
34994 #: ../src/guestfs.pod:196
34995 msgid ""
34996 "The majority of the libguestfs API consists of fairly low-level calls for "
34997 "accessing and modifying the files, directories, symlinks etc on mounted "
34998 "filesystems.  There are over a hundred such calls which you can find listed "
34999 "in detail below in this man page, and we don't even pretend to cover them "
35000 "all in this overview."
35001 msgstr ""
35002
35003 #. type: textblock
35004 #: ../src/guestfs.pod:202
35005 msgid ""
35006 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35007 "mount point."
35008 msgstr ""
35009 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
35010 "точкою монтування."
35011
35012 #. type: textblock
35013 #: ../src/guestfs.pod:205
35014 msgid ""
35015 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35016 "the file called C<\"etc/passwd\"> then you could do:"
35017 msgstr ""
35018 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
35019 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
35020 "таким кодом:"
35021
35022 #. type: verbatim
35023 #: ../src/guestfs.pod:208
35024 #, no-wrap
35025 msgid ""
35026 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35027 "\n"
35028 msgstr ""
35029 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35030 "\n"
35031
35032 #. type: textblock
35033 #: ../src/guestfs.pod:210
35034 msgid ""
35035 "This would return C<data> as a newly allocated buffer containing the full "
35036 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35037 "or C<NULL> if there was an error."
35038 msgstr ""
35039
35040 #. type: textblock
35041 #: ../src/guestfs.pod:214
35042 msgid ""
35043 "As another example, to create a top-level directory on that filesystem "
35044 "called C<\"var\"> you would do:"
35045 msgstr ""
35046
35047 #. type: verbatim
35048 #: ../src/guestfs.pod:217
35049 #, no-wrap
35050 msgid ""
35051 " guestfs_mkdir (g, \"/var\");\n"
35052 "\n"
35053 msgstr ""
35054 " guestfs_mkdir (g, \"/var\");\n"
35055 "\n"
35056
35057 #. type: textblock
35058 #: ../src/guestfs.pod:219
35059 msgid "To create a symlink you could do:"
35060 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
35061
35062 #. type: verbatim
35063 #: ../src/guestfs.pod:221
35064 #, no-wrap
35065 msgid ""
35066 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35067 "               \"/etc/rc3.d/S30portmap\");\n"
35068 "\n"
35069 msgstr ""
35070 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35071 "               \"/etc/rc3.d/S30portmap\");\n"
35072 "\n"
35073
35074 #. type: textblock
35075 #: ../src/guestfs.pod:224
35076 msgid ""
35077 "Libguestfs will reject attempts to use relative paths and there is no "
35078 "concept of a current working directory."
35079 msgstr ""
35080
35081 #. type: textblock
35082 #: ../src/guestfs.pod:227
35083 msgid ""
35084 "Libguestfs can return errors in many situations: for example if the "
35085 "filesystem isn't writable, or if a file or directory that you requested "
35086 "doesn't exist.  If you are using the C API (documented here)  you have to "
35087 "check for those error conditions after each call.  (Other language bindings "
35088 "turn these errors into exceptions)."
35089 msgstr ""
35090
35091 #. type: textblock
35092 #: ../src/guestfs.pod:233
35093 msgid ""
35094 "File writes are affected by the per-handle umask, set by calling L</"
35095 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
35096 msgstr ""
35097
35098 #. type: =head2
35099 #: ../src/guestfs.pod:236
35100 msgid "PARTITIONING"
35101 msgstr "ПОДІЛ НА РОЗДІЛИ"
35102
35103 #. type: textblock
35104 #: ../src/guestfs.pod:238
35105 msgid ""
35106 "Libguestfs contains API calls to read, create and modify partition tables on "
35107 "disk images."
35108 msgstr ""
35109
35110 #. type: textblock
35111 #: ../src/guestfs.pod:241
35112 msgid ""
35113 "In the common case where you want to create a single partition covering the "
35114 "whole disk, you should use the L</guestfs_part_disk> call:"
35115 msgstr ""
35116
35117 #. type: verbatim
35118 #: ../src/guestfs.pod:245
35119 #, no-wrap
35120 msgid ""
35121 " const char *parttype = \"mbr\";\n"
35122 " if (disk_is_larger_than_2TB)\n"
35123 "   parttype = \"gpt\";\n"
35124 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35125 "\n"
35126 msgstr ""
35127 " const char *parttype = \"mbr\";\n"
35128 " if (disk_is_larger_than_2TB)\n"
35129 "   parttype = \"gpt\";\n"
35130 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35131 "\n"
35132
35133 #. type: textblock
35134 #: ../src/guestfs.pod:250
35135 msgid ""
35136 "Obviously this effectively wipes anything that was on that disk image before."
35137 msgstr ""
35138
35139 #. type: =head2
35140 #: ../src/guestfs.pod:253
35141 msgid "LVM2"
35142 msgstr "LVM2"
35143
35144 #. type: textblock
35145 #: ../src/guestfs.pod:255
35146 msgid ""
35147 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35148 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
35149 "you familiarize yourself with the concepts of physical volumes, volume "
35150 "groups and logical volumes."
35151 msgstr ""
35152
35153 #. type: textblock
35154 #: ../src/guestfs.pod:260
35155 msgid ""
35156 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35157 "tldp.org/HOWTO/LVM-HOWTO/>."
35158 msgstr ""
35159
35160 #. type: =head2
35161 #: ../src/guestfs.pod:263
35162 msgid "DOWNLOADING"
35163 msgstr "ОТРИМАННЯ ДАНИХ"
35164
35165 #. type: textblock
35166 #: ../src/guestfs.pod:265
35167 msgid ""
35168 "Use L</guestfs_cat> to download small, text only files.  This call is "
35169 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35170 "NUL (C<\\0>) characters.  However the API is very simple to use."
35171 msgstr ""
35172
35173 #. type: textblock
35174 #: ../src/guestfs.pod:269
35175 msgid ""
35176 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35177 "bit data, since it returns a (pointer, size) pair.  However it is still "
35178 "limited to \"small\" files, less than 2 MB."
35179 msgstr ""
35180
35181 #. type: textblock
35182 #: ../src/guestfs.pod:273
35183 msgid ""
35184 "L</guestfs_download> can be used to download any file, with no limits on "
35185 "content or size (even files larger than 4 GB)."
35186 msgstr ""
35187
35188 #. type: textblock
35189 #: ../src/guestfs.pod:276
35190 msgid ""
35191 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35192 msgstr ""
35193
35194 #. type: =head2
35195 #: ../src/guestfs.pod:279
35196 msgid "UPLOADING"
35197 msgstr "ВИВАНТАЖЕННЯ"
35198
35199 #. type: textblock
35200 #: ../src/guestfs.pod:281
35201 msgid ""
35202 "It's often the case that you want to write a file or files to the disk image."
35203 msgstr ""
35204
35205 #. type: textblock
35206 #: ../src/guestfs.pod:284
35207 msgid ""
35208 "To write a small file with fixed content, use L</guestfs_write>.  To create "
35209 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35210 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
35211 "of other functions for creating test files, for example L</guestfs_fill> and "
35212 "L</guestfs_fill_pattern>."
35213 msgstr ""
35214
35215 #. type: textblock
35216 #: ../src/guestfs.pod:290
35217 msgid ""
35218 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
35219 "file content or size (even files larger than 4 GB)."
35220 msgstr ""
35221
35222 #. type: textblock
35223 #: ../src/guestfs.pod:293
35224 msgid ""
35225 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35226 msgstr ""
35227
35228 #. type: textblock
35229 #: ../src/guestfs.pod:295
35230 msgid ""
35231 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35232 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
35233 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
35234 "in a predictable way (eg. adding it last after all other drives) then you "
35235 "can get the device name from L</guestfs_list_devices> and mount it directly "
35236 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
35237 "portable between kernel versions, and they don't support labels or UUIDs.  "
35238 "If you want to pre-build an image or you need to mount it using a label or "
35239 "UUID, use an ISO image instead."
35240 msgstr ""
35241
35242 #. type: =head2
35243 #: ../src/guestfs.pod:306
35244 msgid "COPYING"
35245 msgstr "КОПІЮВАННЯ"
35246
35247 #. type: textblock
35248 #: ../src/guestfs.pod:308
35249 msgid ""
35250 "There are various different commands for copying between files and devices "
35251 "and in and out of the guest filesystem.  These are summarised in the table "
35252 "below."
35253 msgstr ""
35254
35255 #. type: =item
35256 #: ../src/guestfs.pod:314
35257 msgid "B<file> to B<file>"
35258 msgstr "B<файл> у B<файл>"
35259
35260 #. type: textblock
35261 #: ../src/guestfs.pod:316
35262 msgid ""
35263 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35264 "directories recursively."
35265 msgstr ""
35266
35267 #. type: =item
35268 #: ../src/guestfs.pod:319
35269 msgid "B<file or device> to B<file or device>"
35270 msgstr "B<файл або пристрій> у B<файл або пристрій>"
35271
35272 #. type: textblock
35273 #: ../src/guestfs.pod:321
35274 msgid ""
35275 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
35276 "devices in the guest."
35277 msgstr ""
35278
35279 #. type: textblock
35280 #: ../src/guestfs.pod:324
35281 msgid "Example: duplicate the contents of an LV:"
35282 msgstr ""
35283
35284 #. type: verbatim
35285 #: ../src/guestfs.pod:326
35286 #, no-wrap
35287 msgid ""
35288 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35289 "\n"
35290 msgstr ""
35291 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35292 "\n"
35293
35294 #. type: textblock
35295 #: ../src/guestfs.pod:328
35296 msgid ""
35297 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35298 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
35299 "guestfs_copy_size>."
35300 msgstr ""
35301
35302 #. type: =item
35303 #: ../src/guestfs.pod:332
35304 msgid "B<file on the host> to B<file or device>"
35305 msgstr ""
35306
35307 #. type: textblock
35308 #: ../src/guestfs.pod:334
35309 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
35310 msgstr ""
35311
35312 #. type: =item
35313 #: ../src/guestfs.pod:336
35314 msgid "B<file or device> to B<file on the host>"
35315 msgstr ""
35316
35317 #. type: textblock
35318 #: ../src/guestfs.pod:338
35319 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
35320 msgstr ""
35321
35322 #. type: =head2
35323 #: ../src/guestfs.pod:342
35324 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35325 msgstr ""
35326
35327 #. type: textblock
35328 #: ../src/guestfs.pod:344
35329 msgid ""
35330 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
35331 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35332 "appears you can only upload and download to files.  However many Un*x-like "
35333 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
35334 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
35335 "and arbitrary file descriptor N."
35336 msgstr ""
35337
35338 #. type: textblock
35339 #: ../src/guestfs.pod:352
35340 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35341 msgstr ""
35342
35343 #. type: verbatim
35344 #: ../src/guestfs.pod:355
35345 #, no-wrap
35346 msgid ""
35347 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35348 "\n"
35349 msgstr ""
35350 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35351 "\n"
35352
35353 #. type: textblock
35354 #: ../src/guestfs.pod:357
35355 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35356 msgstr ""
35357
35358 #. type: verbatim
35359 #: ../src/guestfs.pod:359
35360 #, no-wrap
35361 msgid ""
35362 " char devfd[64];\n"
35363 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35364 " guestfs_tar_out (g, \"/\", devfd);\n"
35365 "\n"
35366 msgstr ""
35367 " char devfd[64];\n"
35368 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35369 " guestfs_tar_out (g, \"/\", devfd);\n"
35370 "\n"
35371
35372 #. type: =head2
35373 #: ../src/guestfs.pod:363
35374 msgid "LISTING FILES"
35375 msgstr "СПИСКИ ФАЙЛІВ"
35376
35377 #. type: textblock
35378 #: ../src/guestfs.pod:365
35379 msgid ""
35380 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35381 "L<guestfish(1)>-equivalent command C<ll>)."
35382 msgstr ""
35383
35384 #. type: textblock
35385 #: ../src/guestfs.pod:368
35386 msgid ""
35387 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35388 "programs, as a flat list of strings."
35389 msgstr ""
35390
35391 #. type: textblock
35392 #: ../src/guestfs.pod:371
35393 msgid ""
35394 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35395 "directory, plus additional information about each one.  It is more "
35396 "equivalent to using the L<readdir(3)> call on a local filesystem."
35397 msgstr ""
35398
35399 #. type: textblock
35400 #: ../src/guestfs.pod:375
35401 msgid ""
35402 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
35403 msgstr ""
35404
35405 #. type: =head2
35406 #: ../src/guestfs.pod:378
35407 msgid "RUNNING COMMANDS"
35408 msgstr "ВИКОНАННЯ КОМАНД"
35409
35410 #. type: textblock
35411 #: ../src/guestfs.pod:380
35412 msgid ""
35413 "Although libguestfs is primarily an API for manipulating files inside guest "
35414 "images, we also provide some limited facilities for running commands inside "
35415 "guests."
35416 msgstr ""
35417
35418 #. type: textblock
35419 #: ../src/guestfs.pod:384
35420 msgid "There are many limitations to this:"
35421 msgstr ""
35422
35423 #. type: textblock
35424 #: ../src/guestfs.pod:390
35425 msgid ""
35426 "The kernel version that the command runs under will be different from what "
35427 "it expects."
35428 msgstr ""
35429
35430 #. type: textblock
35431 #: ../src/guestfs.pod:395
35432 msgid ""
35433 "If the command needs to communicate with daemons, then most likely they "
35434 "won't be running."
35435 msgstr ""
35436
35437 #. type: textblock
35438 #: ../src/guestfs.pod:400
35439 msgid "The command will be running in limited memory."
35440 msgstr ""
35441
35442 #. type: textblock
35443 #: ../src/guestfs.pod:404
35444 msgid ""
35445 "The network may not be available unless you enable it (see L</"
35446 "guestfs_set_network>)."
35447 msgstr ""
35448
35449 #. type: textblock
35450 #: ../src/guestfs.pod:409
35451 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35452 msgstr ""
35453
35454 #. type: textblock
35455 #: ../src/guestfs.pod:413
35456 msgid ""
35457 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35458 msgstr ""
35459
35460 #. type: textblock
35461 #: ../src/guestfs.pod:418
35462 msgid ""
35463 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35464 "See L</SELINUX> in this manpage."
35465 msgstr ""
35466
35467 #. type: textblock
35468 #: ../src/guestfs.pod:423
35469 msgid ""
35470 "I<Security:> It is not safe to run commands from untrusted, possibly "
35471 "malicious guests.  These commands may attempt to exploit your program by "
35472 "sending unexpected output.  They could also try to exploit the Linux kernel "
35473 "or qemu provided by the libguestfs appliance.  They could use the network "
35474 "provided by the libguestfs appliance to bypass ordinary network partitions "
35475 "and firewalls.  They could use the elevated privileges or different SELinux "
35476 "context of your program to their advantage."
35477 msgstr ""
35478
35479 #. type: textblock
35480 #: ../src/guestfs.pod:432
35481 msgid ""
35482 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35483 "(a script which runs when the guest next boots normally), and to have this "
35484 "script run the commands you want in the normal context of the running guest, "
35485 "network security and so on.  For information about other security issues, "
35486 "see L</SECURITY>."
35487 msgstr ""
35488
35489 #. type: textblock
35490 #: ../src/guestfs.pod:440
35491 msgid ""
35492 "The two main API calls to run commands are L</guestfs_command> and L</"
35493 "guestfs_sh> (there are also variations)."
35494 msgstr ""
35495
35496 #. type: textblock
35497 #: ../src/guestfs.pod:443
35498 msgid ""
35499 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35500 "shell globs, redirections, etc will work."
35501 msgstr ""
35502
35503 #. type: =head2
35504 #: ../src/guestfs.pod:446
35505 msgid "CONFIGURATION FILES"
35506 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
35507
35508 #. type: textblock
35509 #: ../src/guestfs.pod:448
35510 msgid ""
35511 "To read and write configuration files in Linux guest filesystems, we "
35512 "strongly recommend using Augeas.  For example, Augeas understands how to "
35513 "read and write, say, a Linux shadow password file or X.org configuration "
35514 "file, and so avoids you having to write that code."
35515 msgstr ""
35516
35517 #. type: textblock
35518 #: ../src/guestfs.pod:453
35519 msgid ""
35520 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35521 "document Augeas itself here because there is excellent documentation on the "
35522 "L<http://augeas.net/> website."
35523 msgstr ""
35524
35525 #. type: textblock
35526 #: ../src/guestfs.pod:457
35527 msgid ""
35528 "If you don't want to use Augeas (you fool!) then try calling L</"
35529 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
35530 "over."
35531 msgstr ""
35532
35533 #. type: =head2
35534 #: ../src/guestfs.pod:461
35535 msgid "SELINUX"
35536 msgstr "SELINUX"
35537
35538 #. type: textblock
35539 #: ../src/guestfs.pod:463
35540 msgid ""
35541 "We support SELinux guests.  To ensure that labeling happens correctly in "
35542 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35543 msgstr ""
35544
35545 #. type: textblock
35546 #: ../src/guestfs.pod:471
35547 msgid "Before launching, do:"
35548 msgstr ""
35549
35550 #. type: verbatim
35551 #: ../src/guestfs.pod:473
35552 #, no-wrap
35553 msgid ""
35554 " guestfs_set_selinux (g, 1);\n"
35555 "\n"
35556 msgstr ""
35557 " guestfs_set_selinux (g, 1);\n"
35558 "\n"
35559
35560 #. type: textblock
35561 #: ../src/guestfs.pod:477
35562 msgid ""
35563 "After mounting the guest's filesystem(s), load the policy.  This is best "
35564 "done by running the L<load_policy(8)> command in the guest itself:"
35565 msgstr ""
35566
35567 #. type: verbatim
35568 #: ../src/guestfs.pod:481
35569 #, no-wrap
35570 msgid ""
35571 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35572 "\n"
35573 msgstr ""
35574 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35575 "\n"
35576
35577 #. type: textblock
35578 #: ../src/guestfs.pod:483
35579 msgid ""
35580 "(Older versions of C<load_policy> require you to specify the name of the "
35581 "policy file)."
35582 msgstr ""
35583
35584 #. type: textblock
35585 #: ../src/guestfs.pod:488
35586 msgid ""
35587 "Optionally, set the security context for the API.  The correct security "
35588 "context to use can only be known by inspecting the guest.  As an example:"
35589 msgstr ""
35590
35591 #. type: verbatim
35592 #: ../src/guestfs.pod:492
35593 #, no-wrap
35594 msgid ""
35595 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35596 "\n"
35597 msgstr ""
35598 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35599 "\n"
35600
35601 #. type: textblock
35602 #: ../src/guestfs.pod:496
35603 msgid "This will work for running commands and editing existing files."
35604 msgstr ""
35605
35606 #. type: textblock
35607 #: ../src/guestfs.pod:498
35608 msgid ""
35609 "When new files are created, you may need to label them explicitly, for "
35610 "example by running the external command C<restorecon pathname>."
35611 msgstr ""
35612
35613 #. type: =head2
35614 #: ../src/guestfs.pod:502
35615 msgid "UMASK"
35616 msgstr "UMASK"
35617
35618 #. type: textblock
35619 #: ../src/guestfs.pod:504
35620 msgid ""
35621 "Certain calls are affected by the current file mode creation mask (the "
35622 "\"umask\").  In particular ones which create files or directories, such as "
35623 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35624 "either the default mode that the file is created with or modifies the mode "
35625 "that you supply."
35626 msgstr ""
35627
35628 #. type: textblock
35629 #: ../src/guestfs.pod:510
35630 msgid ""
35631 "The default umask is C<022>, so files are created with modes such as C<0644> "
35632 "and directories with C<0755>."
35633 msgstr ""
35634
35635 #. type: textblock
35636 #: ../src/guestfs.pod:513
35637 msgid ""
35638 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35639 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
35640 "guestfs_chmod> after creating each file or directory."
35641 msgstr ""
35642
35643 #. type: textblock
35644 #: ../src/guestfs.pod:517
35645 msgid "For more information about umask, see L<umask(2)>."
35646 msgstr ""
35647
35648 #. type: textblock
35649 #: ../src/guestfs.pod:521
35650 msgid ""
35651 "Libguestfs allows you to access Linux guests which have been encrypted using "
35652 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35653 "standard.  This includes nearly all whole disk encryption systems used by "
35654 "modern Linux guests."
35655 msgstr ""
35656
35657 #. type: textblock
35658 #: ../src/guestfs.pod:527
35659 msgid ""
35660 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35661 "returns the string C<crypto_LUKS>)."
35662 msgstr ""
35663
35664 #. type: textblock
35665 #: ../src/guestfs.pod:530
35666 msgid ""
35667 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35668 "will require the passphrase!"
35669 msgstr ""
35670
35671 #. type: textblock
35672 #: ../src/guestfs.pod:533
35673 msgid ""
35674 "Opening a LUKS device creates a new device mapper device called C</dev/"
35675 "mapper/mapname> (where C<mapname> is the string you supply to L</"
35676 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
35677 "from and encrypted to the underlying block device respectively."
35678 msgstr ""
35679
35680 #. type: textblock
35681 #: ../src/guestfs.pod:539
35682 msgid ""
35683 "LVM volume groups on the device can be made visible by calling L</"
35684 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
35685 "(s) can now be mounted in the usual way."
35686 msgstr ""
35687
35688 #. type: textblock
35689 #: ../src/guestfs.pod:543
35690 msgid ""
35691 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35692 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35693 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
35694 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35695 "underlying encrypted block device)."
35696 msgstr ""
35697
35698 #. type: =head2
35699 #: ../src/guestfs.pod:550
35700 msgid "INSPECTION"
35701 msgstr "ПЕРЕВІРКА"
35702
35703 #. type: textblock
35704 #: ../src/guestfs.pod:552
35705 msgid ""
35706 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35707 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35708 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35709 "version 1.5.3 the most frequently used part of this library has been "
35710 "rewritten in C and moved into the core code)."
35711 msgstr ""
35712
35713 #. type: textblock
35714 #: ../src/guestfs.pod:559
35715 msgid ""
35716 "Add all disks belonging to the unknown virtual machine and call L</"
35717 "guestfs_launch> in the usual way."
35718 msgstr ""
35719
35720 #. type: textblock
35721 #: ../src/guestfs.pod:562
35722 msgid ""
35723 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35724 "and certain heuristics, and returns a list of operating systems that were "
35725 "found.  An empty list means none were found.  A single element is the root "
35726 "filesystem of the operating system.  For dual- or multi-boot guests, "
35727 "multiple roots can be returned, each one corresponding to a separate "
35728 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35729 "world of virtualization, but since this scenario can happen, we have built "
35730 "libguestfs to deal with it.)"
35731 msgstr ""
35732
35733 #. type: textblock
35734 #: ../src/guestfs.pod:571
35735 msgid ""
35736 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35737 "to get additional details about that operating system.  For example, call L</"
35738 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35739 "Windows and Linux-based operating systems respectively."
35740 msgstr ""
35741
35742 #. type: textblock
35743 #: ../src/guestfs.pod:577
35744 msgid ""
35745 "Un*x-like and Linux-based operating systems usually consist of several "
35746 "filesystems which are mounted at boot time (for example, a separate boot "
35747 "partition mounted on C</boot>).  The inspection rules are able to detect how "
35748 "filesystems correspond to mount points.  Call "
35749 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35750 "hash table like this example:"
35751 msgstr ""
35752
35753 #. type: verbatim
35754 #: ../src/guestfs.pod:584
35755 #, no-wrap
35756 msgid ""
35757 " /boot => /dev/sda1\n"
35758 " /     => /dev/vg_guest/lv_root\n"
35759 " /usr  => /dev/vg_guest/lv_usr\n"
35760 "\n"
35761 msgstr ""
35762 " /boot => /dev/sda1\n"
35763 " /     => /dev/vg_guest/lv_root\n"
35764 " /usr  => /dev/vg_guest/lv_usr\n"
35765 "\n"
35766
35767 #. type: textblock
35768 #: ../src/guestfs.pod:588
35769 msgid ""
35770 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35771 "filesystems as suggested."
35772 msgstr ""
35773
35774 #. type: textblock
35775 #: ../src/guestfs.pod:591
35776 msgid ""
35777 "Be careful to mount filesystems in the right order (eg. C</> before C</"
35778 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
35779 msgstr ""
35780
35781 #. type: textblock
35782 #: ../src/guestfs.pod:595
35783 msgid ""
35784 "Inspection currently only works for some common operating systems.  "
35785 "Contributors are welcome to send patches for other operating systems that we "
35786 "currently cannot detect."
35787 msgstr ""
35788
35789 #. type: textblock
35790 #: ../src/guestfs.pod:599
35791 msgid ""
35792 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35793 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35794 "encrypted devices."
35795 msgstr ""
35796
35797 #. type: textblock
35798 #: ../src/guestfs.pod:603
35799 msgid ""
35800 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35801 "inspection and caches the results in the guest handle.  Subsequent calls to "
35802 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
35803 "read the disks.  If you change the content of the guest disks, you can redo "
35804 "inspection by calling L</guestfs_inspect_os> again.  (L</"
35805 "guestfs_inspect_list_applications> works a little differently from the other "
35806 "calls and does read the disks.  See documentation for that function for "
35807 "details)."
35808 msgstr ""
35809
35810 #. type: =head3
35811 #: ../src/guestfs.pod:612
35812 msgid "INSPECTING INSTALL DISKS"
35813 msgstr ""
35814
35815 #. type: textblock
35816 #: ../src/guestfs.pod:614
35817 msgid ""
35818 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35819 "CDs and more."
35820 msgstr ""
35821
35822 #. type: textblock
35823 #: ../src/guestfs.pod:617
35824 msgid ""
35825 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35826 "system, which currently can be C<installed> (a regular operating system) or "
35827 "C<installer> (some sort of install disk)."
35828 msgstr ""
35829
35830 #. type: textblock
35831 #: ../src/guestfs.pod:621
35832 msgid ""
35833 "Further information is available about the operating system that can be "
35834 "installed using the regular inspection APIs like L</"
35835 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
35836 msgstr ""
35837
35838 #. type: textblock
35839 #: ../src/guestfs.pod:626
35840 msgid ""
35841 "Some additional information specific to installer disks is also available "
35842 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
35843 "guestfs_inspect_is_multipart> calls."
35844 msgstr ""
35845
35846 #. type: =head2
35847 #: ../src/guestfs.pod:631
35848 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35849 msgstr ""
35850
35851 #. type: textblock
35852 #: ../src/guestfs.pod:633
35853 msgid ""
35854 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
35855 "ntfs-3g.org/> driver."
35856 msgstr ""
35857
35858 #. type: =head3
35859 #: ../src/guestfs.pod:636
35860 msgid "DRIVE LETTERS AND PATHS"
35861 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
35862
35863 #. type: textblock
35864 #: ../src/guestfs.pod:638
35865 msgid ""
35866 "DOS and Windows still use drive letters, and the filesystems are always "
35867 "treated as case insensitive by Windows itself, and therefore you might find "
35868 "a Windows configuration file referring to a path like C<c:\\windows"
35869 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
35870 "might be referred to as C</WINDOWS/System32>."
35871 msgstr ""
35872
35873 #. type: textblock
35874 #: ../src/guestfs.pod:644
35875 msgid ""
35876 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35877 "L</guestfs_inspect_get_drive_mappings>)"
35878 msgstr ""
35879
35880 #. type: textblock
35881 #: ../src/guestfs.pod:647
35882 msgid ""
35883 "Dealing with separator characters (backslash vs forward slash) is outside "
35884 "the scope of libguestfs, but usually a simple character replacement will "
35885 "work."
35886 msgstr ""
35887
35888 #. type: textblock
35889 #: ../src/guestfs.pod:651
35890 msgid ""
35891 "To resolve the case insensitivity of paths, call L</"
35892 "guestfs_case_sensitive_path>."
35893 msgstr ""
35894
35895 #. type: =head3
35896 #: ../src/guestfs.pod:654
35897 msgid "ACCESSING THE WINDOWS REGISTRY"
35898 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
35899
35900 #. type: textblock
35901 #: ../src/guestfs.pod:656
35902 msgid ""
35903 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35904 "files, through the library C<hivex> which is part of the libguestfs project "
35905 "although ships as a separate tarball.  You have to locate and download the "
35906 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35907 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
35908 "reg(1)> for more help on this issue."
35909 msgstr ""
35910
35911 #. type: =head3
35912 #: ../src/guestfs.pod:664
35913 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35914 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
35915
35916 #. type: textblock
35917 #: ../src/guestfs.pod:666
35918 msgid ""
35919 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35920 "provide something which looks like a Linux symlink.  The way it tries to do "
35921 "the rewriting is described here:"
35922 msgstr ""
35923
35924 #. type: textblock
35925 #: ../src/guestfs.pod:670
35926 msgid ""
35927 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35928 "symbolic-links/>"
35929 msgstr ""
35930 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35931 "symbolic-links/>"
35932
35933 #. type: textblock
35934 #: ../src/guestfs.pod:672
35935 msgid ""
35936 "The essential problem is that ntfs-3g simply does not have enough "
35937 "information to do a correct job.  NTFS links can contain drive letters and "
35938 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
35939 "It is almost certainly the case that libguestfs callers should ignore what "
35940 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35941 msgstr ""
35942
35943 #. type: textblock
35944 #: ../src/guestfs.pod:679
35945 msgid ""
35946 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
35947 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35948 "attribute, and read the raw reparse data from that (you can find the format "
35949 "documented in various places around the web)."
35950 msgstr ""
35951
35952 #. type: =head3
35953 #: ../src/guestfs.pod:684
35954 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35955 msgstr ""
35956
35957 #. type: textblock
35958 #: ../src/guestfs.pod:686
35959 msgid ""
35960 "There are other useful extended attributes that can be read from ntfs-3g "
35961 "filesystems (using L</guestfs_getxattr>).  See:"
35962 msgstr ""
35963
35964 #. type: textblock
35965 #: ../src/guestfs.pod:689
35966 msgid ""
35967 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35968 msgstr ""
35969 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35970
35971 #. type: =head2
35972 #: ../src/guestfs.pod:691
35973 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35974 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
35975
35976 #. type: textblock
35977 #: ../src/guestfs.pod:693
35978 msgid ""
35979 "Although we don't want to discourage you from using the C API, we will "
35980 "mention here that the same API is also available in other languages."
35981 msgstr ""
35982
35983 #. type: textblock
35984 #: ../src/guestfs.pod:696
35985 msgid ""
35986 "The API is broadly identical in all supported languages.  This means that "
35987 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35988 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35989 "OCaml.  In other words, a straightforward, predictable isomorphism between "
35990 "each language."
35991 msgstr ""
35992
35993 #. type: textblock
35994 #: ../src/guestfs.pod:702
35995 msgid ""
35996 "Error messages are automatically transformed into exceptions if the language "
35997 "supports it."
35998 msgstr ""
35999
36000 #. type: textblock
36001 #: ../src/guestfs.pod:705
36002 msgid ""
36003 "We don't try to \"object orientify\" parts of the API in OO languages, "
36004 "although contributors are welcome to write higher level APIs above what we "
36005 "provide in their favourite languages if they wish."
36006 msgstr ""
36007
36008 #. type: =item
36009 #: ../src/guestfs.pod:711
36010 msgid "B<C++>"
36011 msgstr "B<C++>"
36012
36013 #. type: textblock
36014 #: ../src/guestfs.pod:713
36015 msgid ""
36016 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
36017 "identical to the C API.  C++ classes and exceptions are not used."
36018 msgstr ""
36019
36020 #. type: =item
36021 #: ../src/guestfs.pod:717
36022 msgid "B<C#>"
36023 msgstr "B<C#>"
36024
36025 #. type: textblock
36026 #: ../src/guestfs.pod:719
36027 msgid ""
36028 "The C# bindings are highly experimental.  Please read the warnings at the "
36029 "top of C<csharp/Libguestfs.cs>."
36030 msgstr ""
36031
36032 #. type: =item
36033 #: ../src/guestfs.pod:722
36034 msgid "B<Erlang>"
36035 msgstr ""
36036
36037 #. type: textblock
36038 #: ../src/guestfs.pod:724
36039 msgid "See L<guestfs-erlang(3)>."
36040 msgstr ""
36041
36042 #. type: =item
36043 #: ../src/guestfs.pod:726
36044 msgid "B<Haskell>"
36045 msgstr "B<Haskell>"
36046
36047 #. type: textblock
36048 #: ../src/guestfs.pod:728
36049 msgid ""
36050 "This is the only language binding that is working but incomplete.  Only "
36051 "calls which return simple integers have been bound in Haskell, and we are "
36052 "looking for help to complete this binding."
36053 msgstr ""
36054
36055 #. type: =item
36056 #: ../src/guestfs.pod:732
36057 msgid "B<Java>"
36058 msgstr "B<Java>"
36059
36060 #. type: textblock
36061 #: ../src/guestfs.pod:734
36062 msgid ""
36063 "Full documentation is contained in the Javadoc which is distributed with "
36064 "libguestfs.  For examples, see L<guestfs-java(3)>."
36065 msgstr ""
36066
36067 #. type: =item
36068 #: ../src/guestfs.pod:737
36069 msgid "B<OCaml>"
36070 msgstr "B<OCaml>"
36071
36072 #. type: textblock
36073 #: ../src/guestfs.pod:739
36074 msgid "See L<guestfs-ocaml(3)>."
36075 msgstr "Див. L<guestfs-ocaml(3)>."
36076
36077 #. type: =item
36078 #: ../src/guestfs.pod:741
36079 msgid "B<Perl>"
36080 msgstr "B<Perl>"
36081
36082 #. type: textblock
36083 #: ../src/guestfs.pod:743
36084 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36085 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
36086
36087 #. type: =item
36088 #: ../src/guestfs.pod:745
36089 msgid "B<PHP>"
36090 msgstr "B<PHP>"
36091
36092 #. type: textblock
36093 #: ../src/guestfs.pod:747
36094 msgid ""
36095 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36096 "the php-libguestfs package for your distribution."
36097 msgstr ""
36098
36099 #. type: textblock
36100 #: ../src/guestfs.pod:750
36101 msgid "The PHP binding only works correctly on 64 bit machines."
36102 msgstr ""
36103
36104 #. type: =item
36105 #: ../src/guestfs.pod:752
36106 msgid "B<Python>"
36107 msgstr "B<Python>"
36108
36109 #. type: textblock
36110 #: ../src/guestfs.pod:754
36111 msgid "See L<guestfs-python(3)>."
36112 msgstr "Див. L<guestfs-python(3)>."
36113
36114 #. type: =item
36115 #: ../src/guestfs.pod:756
36116 msgid "B<Ruby>"
36117 msgstr "B<Ruby>"
36118
36119 #. type: textblock
36120 #: ../src/guestfs.pod:758
36121 msgid "See L<guestfs-ruby(3)>."
36122 msgstr "Див. L<guestfs-ruby(3)>."
36123
36124 #. type: =item
36125 #: ../src/guestfs.pod:760
36126 msgid "B<shell scripts>"
36127 msgstr "B<скрипти оболонки>"
36128
36129 #. type: textblock
36130 #: ../src/guestfs.pod:762
36131 msgid "See L<guestfish(1)>."
36132 msgstr "Див. L<guestfish(1)>."
36133
36134 #. type: =head2
36135 #: ../src/guestfs.pod:766
36136 msgid "LIBGUESTFS GOTCHAS"
36137 msgstr ""
36138
36139 #. type: textblock
36140 #: ../src/guestfs.pod:768
36141 msgid ""
36142 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36143 "system [...] that works in the way it is documented but is counterintuitive "
36144 "and almost invites mistakes.\""
36145 msgstr ""
36146
36147 #. type: textblock
36148 #: ../src/guestfs.pod:772
36149 msgid ""
36150 "Since we developed libguestfs and the associated tools, there are several "
36151 "things we would have designed differently, but are now stuck with for "
36152 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
36153 "release, you can expect these to change.  Beware of them."
36154 msgstr ""
36155
36156 #. type: =item
36157 #: ../src/guestfs.pod:780
36158 msgid "Autosync / forgetting to sync."
36159 msgstr ""
36160
36161 #. type: textblock
36162 #: ../src/guestfs.pod:782
36163 msgid ""
36164 "I<Update:> Autosync is enabled by default for all API users starting from "
36165 "libguestfs 1.5.24.  This section only applies to older versions."
36166 msgstr ""
36167
36168 #. type: textblock
36169 #: ../src/guestfs.pod:785
36170 msgid ""
36171 "When modifying a filesystem from C or another language, you B<must> unmount "
36172 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36173 "libguestfs handle.  You can also call:"
36174 msgstr ""
36175
36176 #. type: verbatim
36177 #: ../src/guestfs.pod:789
36178 #, no-wrap
36179 msgid ""
36180 " guestfs_set_autosync (g, 1);\n"
36181 "\n"
36182 msgstr ""
36183 " guestfs_set_autosync (g, 1);\n"
36184 "\n"
36185
36186 #. type: textblock
36187 #: ../src/guestfs.pod:791
36188 msgid ""
36189 "to have the unmount/sync done automatically for you when the handle 'g' is "
36190 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
36191 msgstr ""
36192
36193 #. type: textblock
36194 #: ../src/guestfs.pod:795
36195 msgid ""
36196 "If you forget to do this, then it is entirely possible that your changes "
36197 "won't be written out, or will be partially written, or (very rarely) that "
36198 "you'll get disk corruption."
36199 msgstr ""
36200
36201 #. type: textblock
36202 #: ../src/guestfs.pod:799
36203 msgid ""
36204 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
36205 "guestfish scripts that forget to sync will work just fine, which can make "
36206 "this very puzzling if you are trying to debug a problem."
36207 msgstr ""
36208
36209 #. type: =item
36210 #: ../src/guestfs.pod:803
36211 msgid "Mount option C<-o sync> should not be the default."
36212 msgstr ""
36213
36214 #. type: textblock
36215 #: ../src/guestfs.pod:805
36216 msgid ""
36217 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36218 "libguestfs 1.13.16.  This section only applies to older versions."
36219 msgstr ""
36220
36221 #. type: textblock
36222 #: ../src/guestfs.pod:808
36223 msgid ""
36224 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
36225 "However C<-o sync> does not add any reliability benefit, but does have a "
36226 "very large performance impact."
36227 msgstr ""
36228
36229 #. type: textblock
36230 #: ../src/guestfs.pod:812
36231 msgid ""
36232 "The work around is to use L</guestfs_mount_options> and set the mount "
36233 "options that you actually want to use."
36234 msgstr ""
36235
36236 #. type: =item
36237 #: ../src/guestfs.pod:815
36238 msgid "Read-only should be the default."
36239 msgstr ""
36240
36241 #. type: textblock
36242 #: ../src/guestfs.pod:817
36243 msgid ""
36244 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36245 "specify I<--rw> if you want to make changes to the image."
36246 msgstr ""
36247
36248 #. type: textblock
36249 #: ../src/guestfs.pod:820
36250 msgid "This would reduce the potential to corrupt live VM images."
36251 msgstr ""
36252
36253 #. type: textblock
36254 #: ../src/guestfs.pod:822
36255 msgid ""
36256 "Note that many filesystems change the disk when you just mount and unmount, "
36257 "even if you didn't perform any writes.  You need to use L</"
36258 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
36259 msgstr ""
36260
36261 #. type: =item
36262 #: ../src/guestfs.pod:826
36263 msgid "guestfish command line is hard to use."
36264 msgstr ""
36265
36266 #. type: textblock
36267 #: ../src/guestfs.pod:828
36268 msgid ""
36269 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36270 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
36271 "exist, so it fails.  In earlier versions of guestfish the error message was "
36272 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
36273 "we should have used C<guestfish -c command> to run commands."
36274 msgstr ""
36275
36276 #. type: =item
36277 #: ../src/guestfs.pod:835
36278 msgid "guestfish megabyte modifiers don't work right on all commands"
36279 msgstr ""
36280
36281 #. type: textblock
36282 #: ../src/guestfs.pod:837
36283 msgid ""
36284 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36285 "other modifiers).  What guestfish actually does is to multiply the number "
36286 "part by the modifier part and pass the result to the C API.  However this "
36287 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36288 "expecting some other unit (eg. megabytes)."
36289 msgstr ""
36290
36291 #. type: textblock
36292 #: ../src/guestfs.pod:844
36293 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
36294 msgstr ""
36295
36296 #. type: verbatim
36297 #: ../src/guestfs.pod:846
36298 #, no-wrap
36299 msgid ""
36300 " lvcreate LV VG 100M\n"
36301 "\n"
36302 msgstr ""
36303 " lvcreate LV VG 100M\n"
36304 "\n"
36305
36306 #. type: textblock
36307 #: ../src/guestfs.pod:848
36308 msgid ""
36309 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
36310 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36311 "megabytes * megabytes) logical volume.  The error message you get from this "
36312 "is also a little obscure."
36313 msgstr ""
36314
36315 #. type: textblock
36316 #: ../src/guestfs.pod:853
36317 msgid ""
36318 "This could be fixed in the generator by specially marking parameters and "
36319 "return values which take bytes or other units."
36320 msgstr ""
36321
36322 #. type: =item
36323 #: ../src/guestfs.pod:856
36324 msgid "Ambiguity between devices and paths"
36325 msgstr ""
36326
36327 #. type: textblock
36328 #: ../src/guestfs.pod:858
36329 msgid ""
36330 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
36331 "sdb2>) and a similar pathname.  A file might just happen to be called "
36332 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36333 msgstr ""
36334
36335 #. type: textblock
36336 #: ../src/guestfs.pod:863
36337 msgid ""
36338 "In the current API we usually resolve this ambiguity by having two separate "
36339 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
36340 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36341 "detecting if the path supplied begins with C</dev/>."
36342 msgstr ""
36343
36344 #. type: textblock
36345 #: ../src/guestfs.pod:869
36346 msgid ""
36347 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36348 "make paths/devices into structured names.  One way to do this would be to "
36349 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36350 "aspect of grub.  Another way would be to use a structured type, equivalent "
36351 "to this OCaml type:"
36352 msgstr ""
36353
36354 #. type: verbatim
36355 #: ../src/guestfs.pod:875
36356 #, no-wrap
36357 msgid ""
36358 " type path = Path of string | Device of int | Partition of int * int\n"
36359 "\n"
36360 msgstr ""
36361
36362 #. type: textblock
36363 #: ../src/guestfs.pod:877
36364 msgid "which would allow you to pass arguments like:"
36365 msgstr ""
36366
36367 #. type: verbatim
36368 #: ../src/guestfs.pod:879
36369 #, no-wrap
36370 msgid ""
36371 " Path \"/foo/bar\"\n"
36372 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
36373 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36374 " Path \"/dev/sdb2\"    (* not a device *)\n"
36375 "\n"
36376 msgstr ""
36377
36378 #. type: textblock
36379 #: ../src/guestfs.pod:884
36380 msgid ""
36381 "As you can see there are still problems to resolve even with this "
36382 "representation.  Also consider how it might work in guestfish."
36383 msgstr ""
36384
36385 #. type: =head2
36386 #: ../src/guestfs.pod:889
36387 msgid "KEYS AND PASSPHRASES"
36388 msgstr "КЛЮЧІ І ПАРОЛІ"
36389
36390 #. type: textblock
36391 #: ../src/guestfs.pod:891
36392 msgid ""
36393 "Certain libguestfs calls take a parameter that contains sensitive key "
36394 "material, passed in as a C string."
36395 msgstr ""
36396
36397 #. type: textblock
36398 #: ../src/guestfs.pod:894
36399 msgid ""
36400 "In the future we would hope to change the libguestfs implementation so that "
36401 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36402 "swap.  However this is I<not> done at the moment, because of the complexity "
36403 "of such an implementation."
36404 msgstr ""
36405
36406 #. type: textblock
36407 #: ../src/guestfs.pod:899
36408 msgid ""
36409 "Therefore you should be aware that any key parameter you pass to libguestfs "
36410 "might end up being written out to the swap partition.  If this is a concern, "
36411 "scrub the swap partition or don't use libguestfs on encrypted devices."
36412 msgstr ""
36413
36414 #. type: =head2
36415 #: ../src/guestfs.pod:904
36416 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36417 msgstr ""
36418
36419 #. type: textblock
36420 #: ../src/guestfs.pod:906
36421 msgid ""
36422 "All high-level libguestfs actions are synchronous.  If you want to use "
36423 "libguestfs asynchronously then you must create a thread."
36424 msgstr ""
36425
36426 #. type: textblock
36427 #: ../src/guestfs.pod:909
36428 msgid ""
36429 "Only use the handle from a single thread.  Either use the handle exclusively "
36430 "from one thread, or provide your own mutex so that two threads cannot issue "
36431 "calls on the same handle at the same time."
36432 msgstr ""
36433
36434 #. type: textblock
36435 #: ../src/guestfs.pod:913
36436 msgid ""
36437 "See the graphical program guestfs-browser for one possible architecture for "
36438 "multithreaded programs using libvirt and libguestfs."
36439 msgstr ""
36440
36441 #. type: =head2
36442 #: ../src/guestfs.pod:916
36443 msgid "PATH"
36444 msgstr "ШЛЯХ"
36445
36446 #. type: textblock
36447 #: ../src/guestfs.pod:918
36448 msgid ""
36449 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36450 "internal path."
36451 msgstr ""
36452
36453 #. type: textblock
36454 #: ../src/guestfs.pod:921
36455 msgid ""
36456 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
36457 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36458 msgstr ""
36459
36460 #. type: textblock
36461 #: ../src/guestfs.pod:924
36462 msgid ""
36463 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36464 "to change the directories that libguestfs will search in.  The value is a "
36465 "colon-separated list of paths.  The current directory is I<not> searched "
36466 "unless the path contains an empty element or C<.>.  For example "
36467 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36468 "then C</usr/lib/guestfs>."
36469 msgstr ""
36470
36471 #. type: =head2
36472 #: ../src/guestfs.pod:931
36473 msgid "QEMU WRAPPERS"
36474 msgstr ""
36475
36476 #. type: textblock
36477 #: ../src/guestfs.pod:933
36478 msgid ""
36479 "If you want to compile your own qemu, run qemu from a non-standard location, "
36480 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36481 "around qemu."
36482 msgstr ""
36483
36484 #. type: textblock
36485 #: ../src/guestfs.pod:937
36486 msgid ""
36487 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36488 "last command in the shell script (so that qemu replaces the shell and "
36489 "becomes the direct child of the libguestfs-using program).  If you don't do "
36490 "this, then the qemu process won't be cleaned up correctly."
36491 msgstr ""
36492
36493 #. type: textblock
36494 #: ../src/guestfs.pod:942
36495 msgid ""
36496 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36497 "source:"
36498 msgstr ""
36499
36500 #. type: verbatim
36501 #: ../src/guestfs.pod:945
36502 #, no-wrap
36503 msgid ""
36504 " #!/bin/sh -\n"
36505 " qemudir=/home/rjones/d/qemu\n"
36506 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36507 "\n"
36508 msgstr ""
36509 " #!/bin/sh -\n"
36510 " qemudir=/home/rjones/d/qemu\n"
36511 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36512 "\n"
36513
36514 #. type: textblock
36515 #: ../src/guestfs.pod:949
36516 msgid ""
36517 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36518 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36519 "example:"
36520 msgstr ""
36521
36522 #. type: verbatim
36523 #: ../src/guestfs.pod:953
36524 #, no-wrap
36525 msgid ""
36526 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36527 "\n"
36528 msgstr ""
36529 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36530 "\n"
36531
36532 #. type: textblock
36533 #: ../src/guestfs.pod:955
36534 msgid ""
36535 "Note that libguestfs also calls qemu with the -help and -version options in "
36536 "order to determine features."
36537 msgstr ""
36538
36539 #. type: textblock
36540 #: ../src/guestfs.pod:958
36541 msgid ""
36542 "Wrappers can also be used to edit the options passed to qemu.  In the "
36543 "following example, the C<-machine ...> option (C<-machine> and the following "
36544 "argument) are removed from the command line and replaced with C<-machine pc,"
36545 "accel=tcg>.  The while loop iterates over the options until it finds the "
36546 "right one to remove, putting the remaining options into the C<args> array."
36547 msgstr ""
36548
36549 #. type: verbatim
36550 #: ../src/guestfs.pod:967
36551 #, no-wrap
36552 msgid ""
36553 " i=0\n"
36554 " while [ $# -gt 0 ]; do\n"
36555 "     case \"$1\" in\n"
36556 "     -machine)\n"
36557 "         shift 2;;\n"
36558 "     *)\n"
36559 "         args[i]=\"$1\"\n"
36560 "         (( i++ ))\n"
36561 "         shift ;;\n"
36562 "     esac\n"
36563 " done\n"
36564 " \n"
36565 msgstr ""
36566
36567 #. type: verbatim
36568 #: ../src/guestfs.pod:979
36569 #, no-wrap
36570 msgid ""
36571 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36572 "\n"
36573 msgstr ""
36574
36575 #. type: =head2
36576 #: ../src/guestfs.pod:981
36577 msgid "ATTACHING TO RUNNING DAEMONS"
36578 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
36579
36580 #. type: textblock
36581 #: ../src/guestfs.pod:983
36582 msgid ""
36583 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36584 "babies.  Use with caution."
36585 msgstr ""
36586
36587 #. type: textblock
36588 #: ../src/guestfs.pod:986
36589 msgid ""
36590 "I<Note (2):> This section explains how to attach to a running daemon from a "
36591 "low level perspective.  For most users, simply using virt tools such as "
36592 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36593 msgstr ""
36594
36595 #. type: =head3
36596 #: ../src/guestfs.pod:990
36597 msgid "Using guestfs_set_attach_method"
36598 msgstr "За допомогою guestfs_set_attach_method"
36599
36600 #. type: textblock
36601 #: ../src/guestfs.pod:992
36602 msgid ""
36603 "By calling L</guestfs_set_attach_method> you can change how the library "
36604 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
36605 "ARCHITECTURE> for some background)."
36606 msgstr ""
36607
36608 #. type: textblock
36609 #: ../src/guestfs.pod:996
36610 msgid ""
36611 "The normal attach method is C<appliance>, where a small appliance is created "
36612 "containing the daemon, and then the library connects to this."
36613 msgstr ""
36614
36615 #. type: textblock
36616 #: ../src/guestfs.pod:999
36617 msgid ""
36618 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36619 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36620 "daemon over the Unix domain socket."
36621 msgstr ""
36622
36623 #. type: textblock
36624 #: ../src/guestfs.pod:1003
36625 msgid ""
36626 "The normal use for this is to connect to a running virtual machine that "
36627 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36628 "files inside the live virtual machine."
36629 msgstr ""
36630
36631 #. type: =head3
36632 #: ../src/guestfs.pod:1007
36633 msgid "Using guestfs_add_domain with live flag"
36634 msgstr "За допомогою guestfs_add_domain з прапорцем live"
36635
36636 #. type: textblock
36637 #: ../src/guestfs.pod:1009
36638 msgid ""
36639 "L</guestfs_add_domain> provides some help for getting the correct attach "
36640 "method.  If you pass the C<live> option to this function, then (if the "
36641 "virtual machine is running) it will examine the libvirt XML looking for a "
36642 "virtio-serial channel to connect to:"
36643 msgstr ""
36644
36645 #. type: verbatim
36646 #: ../src/guestfs.pod:1015
36647 #, no-wrap
36648 msgid ""
36649 " <domain>\n"
36650 "   ...\n"
36651 "   <devices>\n"
36652 "     ...\n"
36653 "     <channel type='unix'>\n"
36654 "       <source mode='bind' path='/path/to/socket'/>\n"
36655 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36656 "     </channel>\n"
36657 "     ...\n"
36658 "   </devices>\n"
36659 " </domain>\n"
36660 "\n"
36661 msgstr ""
36662 " <domain>\n"
36663 "   ...\n"
36664 "   <devices>\n"
36665 "     ...\n"
36666 "     <channel type='unix'>\n"
36667 "       <source mode='bind' path='/path/to/socket'/>\n"
36668 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36669 "     </channel>\n"
36670 "     ...\n"
36671 "   </devices>\n"
36672 " </domain>\n"
36673 "\n"
36674
36675 #. type: textblock
36676 #: ../src/guestfs.pod:1027
36677 msgid ""
36678 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36679 "method to C<unix:/path/to/socket>."
36680 msgstr ""
36681
36682 #. type: textblock
36683 #: ../src/guestfs.pod:1030
36684 msgid ""
36685 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36686 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36687 "to attach to and modify live virtual machines."
36688 msgstr ""
36689
36690 #. type: textblock
36691 #: ../src/guestfs.pod:1034
36692 msgid ""
36693 "The virtual machine needs to have been set up beforehand so that it has the "
36694 "virtio-serial channel and so that guestfsd is running inside it."
36695 msgstr ""
36696
36697 #. type: =head2
36698 #: ../src/guestfs.pod:1038
36699 msgid "ABI GUARANTEE"
36700 msgstr "ГАРАНТІЯ ЩОДО ABI"
36701
36702 #. type: textblock
36703 #: ../src/guestfs.pod:1040
36704 msgid ""
36705 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36706 "actions as outlined in this section.  Although we will deprecate some "
36707 "actions, for example if they get replaced by newer calls, we will keep the "
36708 "old actions forever.  This allows you the developer to program in confidence "
36709 "against the libguestfs API."
36710 msgstr ""
36711
36712 #. type: =head2
36713 #: ../src/guestfs.pod:1046
36714 msgid "BLOCK DEVICE NAMING"
36715 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
36716
36717 #. type: textblock
36718 #: ../src/guestfs.pod:1048
36719 msgid ""
36720 "In the kernel there is now quite a profusion of schemata for naming block "
36721 "devices (in this context, by I<block device> I mean a physical or virtual "
36722 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
36723 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
36724 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
36725 "for the old IDE driver (particularly for SATA devices) those devices also "
36726 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
36727 "paravirtualized drivers.  This has created several different naming systems, "
36728 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
36729 msgstr ""
36730
36731 #. type: textblock
36732 #: ../src/guestfs.pod:1060
36733 msgid ""
36734 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36735 "Linux kernel to access block devices.  We can run a variety of appliances "
36736 "based on a variety of Linux kernels."
36737 msgstr ""
36738
36739 #. type: textblock
36740 #: ../src/guestfs.pod:1064
36741 msgid ""
36742 "This causes a problem for libguestfs because many API calls use device or "
36743 "partition names.  Working scripts and the recipe (example) scripts that we "
36744 "make available over the internet could fail if the naming scheme changes."
36745 msgstr ""
36746
36747 #. type: textblock
36748 #: ../src/guestfs.pod:1069
36749 msgid ""
36750 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36751 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36752 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36753 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36754 msgstr ""
36755
36756 #. type: textblock
36757 #: ../src/guestfs.pod:1075
36758 msgid ""
36759 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36760 "L</guestfs_list_partitions> and similar calls return the true names of the "
36761 "devices and partitions as known to the appliance."
36762 msgstr ""
36763
36764 #. type: =head3
36765 #: ../src/guestfs.pod:1080
36766 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36767 msgstr ""
36768
36769 #. type: textblock
36770 #: ../src/guestfs.pod:1082
36771 msgid ""
36772 "Usually this translation is transparent.  However in some (very rare)  cases "
36773 "you may need to know the exact algorithm.  Such cases include where you use "
36774 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
36775 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
36776 msgstr ""
36777
36778 #. type: textblock
36779 #: ../src/guestfs.pod:1088
36780 msgid ""
36781 "The algorithm is applied only to I<parameters> which are known to be either "
36782 "device or partition names.  Return values from functions such as L</"
36783 "guestfs_list_devices> are never changed."
36784 msgstr ""
36785
36786 #. type: textblock
36787 #: ../src/guestfs.pod:1096
36788 msgid "Is the string a parameter which is a device or partition name?"
36789 msgstr ""
36790
36791 #. type: textblock
36792 #: ../src/guestfs.pod:1100
36793 msgid "Does the string begin with C</dev/sd>?"
36794 msgstr "Чи починається рядок з C</dev/sd>?"
36795
36796 #. type: textblock
36797 #: ../src/guestfs.pod:1104
36798 msgid ""
36799 "Does the named device exist? If so, we use that device.  However if I<not> "
36800 "then we continue with this algorithm."
36801 msgstr ""
36802
36803 #. type: textblock
36804 #: ../src/guestfs.pod:1109
36805 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36806 msgstr ""
36807
36808 #. type: textblock
36809 #: ../src/guestfs.pod:1111
36810 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36811 msgstr ""
36812
36813 #. type: textblock
36814 #: ../src/guestfs.pod:1113
36815 msgid "If that named device exists, use it.  If not, continue."
36816 msgstr ""
36817
36818 #. type: textblock
36819 #: ../src/guestfs.pod:1117
36820 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36821 msgstr ""
36822
36823 #. type: textblock
36824 #: ../src/guestfs.pod:1119
36825 msgid "If that named device exists, use it.  If not, return an error."
36826 msgstr ""
36827
36828 #. type: =head3
36829 #: ../src/guestfs.pod:1123
36830 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36831 msgstr ""
36832
36833 #. type: textblock
36834 #: ../src/guestfs.pod:1125
36835 msgid ""
36836 "Although the standard naming scheme and automatic translation is useful for "
36837 "simple programs and guestfish scripts, for larger programs it is best not to "
36838 "rely on this mechanism."
36839 msgstr ""
36840
36841 #. type: textblock
36842 #: ../src/guestfs.pod:1129
36843 msgid ""
36844 "Where possible for maximum future portability programs using libguestfs "
36845 "should use these future-proof techniques:"
36846 msgstr ""
36847
36848 #. type: textblock
36849 #: ../src/guestfs.pod:1136
36850 msgid ""
36851 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36852 "device names, and then use those names directly."
36853 msgstr ""
36854
36855 #. type: textblock
36856 #: ../src/guestfs.pod:1139
36857 msgid ""
36858 "Since those device names exist by definition, they will never be translated."
36859 msgstr ""
36860
36861 #. type: textblock
36862 #: ../src/guestfs.pod:1144
36863 msgid ""
36864 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36865 "filesystem labels."
36866 msgstr ""
36867
36868 #. type: textblock
36869 #: ../src/guestfs.pod:1151
36870 msgid ""
36871 "This section discusses security implications of using libguestfs, "
36872 "particularly with untrusted or malicious guests or disk images."
36873 msgstr ""
36874
36875 #. type: =head2
36876 #: ../src/guestfs.pod:1154
36877 msgid "GENERAL SECURITY CONSIDERATIONS"
36878 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
36879
36880 #. type: textblock
36881 #: ../src/guestfs.pod:1156
36882 msgid ""
36883 "Be careful with any files or data that you download from a guest (by "
36884 "\"download\" we mean not just the L</guestfs_download> command but any "
36885 "command that reads files, filenames, directories or anything else from a "
36886 "disk image).  An attacker could manipulate the data to fool your program "
36887 "into doing the wrong thing.  Consider cases such as:"
36888 msgstr ""
36889
36890 #. type: textblock
36891 #: ../src/guestfs.pod:1166
36892 msgid "the data (file etc) not being present"
36893 msgstr ""
36894
36895 #. type: textblock
36896 #: ../src/guestfs.pod:1170
36897 msgid "being present but empty"
36898 msgstr ""
36899
36900 #. type: textblock
36901 #: ../src/guestfs.pod:1174
36902 msgid "being much larger than normal"
36903 msgstr ""
36904
36905 #. type: textblock
36906 #: ../src/guestfs.pod:1178
36907 msgid "containing arbitrary 8 bit data"
36908 msgstr ""
36909
36910 #. type: textblock
36911 #: ../src/guestfs.pod:1182
36912 msgid "being in an unexpected character encoding"
36913 msgstr ""
36914
36915 #. type: textblock
36916 #: ../src/guestfs.pod:1186
36917 msgid "containing homoglyphs."
36918 msgstr ""
36919
36920 #. type: =head2
36921 #: ../src/guestfs.pod:1190
36922 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36923 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
36924
36925 #. type: textblock
36926 #: ../src/guestfs.pod:1192
36927 msgid ""
36928 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36929 "(VFS) module can sometimes be escalated into exploits by deliberately "
36930 "creating a malicious, malformed filesystem.  These exploits are very severe "
36931 "for two reasons.  Firstly there are very many filesystem drivers in the "
36932 "kernel, and many of them are infrequently used and not much developer "
36933 "attention has been paid to the code.  Linux userspace helps potential "
36934 "crackers by detecting the filesystem type and automatically choosing the "
36935 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36936 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36937 "exploit (worse in some ways), giving immediate and total access to the "
36938 "system right down to the hardware level."
36939 msgstr ""
36940
36941 #. type: textblock
36942 #: ../src/guestfs.pod:1205
36943 msgid ""
36944 "That explains why you should never mount a filesystem from an untrusted "
36945 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
36946 "inside a qemu virtual machine, usually running as a non-root user.  The "
36947 "attacker would need to write a filesystem which first exploited the kernel, "
36948 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36949 "the libguestfs protocol, and finally to be as serious as the host kernel "
36950 "exploit it would need to escalate its privileges to root.  This multi-step "
36951 "escalation, performed by a static piece of data, is thought to be extremely "
36952 "hard to do, although we never say 'never' about security issues."
36953 msgstr ""
36954
36955 #. type: textblock
36956 #: ../src/guestfs.pod:1216
36957 msgid ""
36958 "In any case callers can reduce the attack surface by forcing the filesystem "
36959 "type when mounting (use L</guestfs_mount_vfs>)."
36960 msgstr ""
36961
36962 #. type: =head2
36963 #: ../src/guestfs.pod:1219
36964 msgid "PROTOCOL SECURITY"
36965 msgstr "ЗАХИСТ ПРОТОКОЛУ"
36966
36967 #. type: textblock
36968 #: ../src/guestfs.pod:1221
36969 msgid ""
36970 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
36971 "defined upper message size.  However a program that uses libguestfs must "
36972 "also take care - for example you can write a program that downloads a binary "
36973 "from a disk image and executes it locally, and no amount of protocol "
36974 "security will save you from the consequences."
36975 msgstr ""
36976
36977 #. type: =head2
36978 #: ../src/guestfs.pod:1227
36979 msgid "INSPECTION SECURITY"
36980 msgstr ""
36981
36982 #. type: textblock
36983 #: ../src/guestfs.pod:1229
36984 msgid ""
36985 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36986 "directly from the guest, and these could contain any 8 bit data.  Callers "
36987 "should be careful to escape these before printing them to a structured file "
36988 "(for example, use HTML escaping if creating a web page)."
36989 msgstr ""
36990
36991 #. type: textblock
36992 #: ../src/guestfs.pod:1235
36993 msgid ""
36994 "Guest configuration may be altered in unusual ways by the administrator of "
36995 "the virtual machine, and may not reflect reality (particularly for untrusted "
36996 "or actively malicious guests).  For example we parse the hostname from "
36997 "configuration files like C</etc/sysconfig/network> that we find in the "
36998 "guest, but the guest administrator can easily manipulate these files to "
36999 "provide the wrong hostname."
37000 msgstr ""
37001
37002 #. type: textblock
37003 #: ../src/guestfs.pod:1243
37004 msgid ""
37005 "The inspection API parses guest configuration using two external libraries: "
37006 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
37007 "designed to be robust in the face of malicious data, although denial of "
37008 "service attacks are still possible, for example with oversized configuration "
37009 "files."
37010 msgstr ""
37011
37012 #. type: =head2
37013 #: ../src/guestfs.pod:1249
37014 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37015 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
37016
37017 #. type: textblock
37018 #: ../src/guestfs.pod:1251
37019 msgid ""
37020 "Be very cautious about running commands from the guest.  By running a "
37021 "command in the guest, you are giving CPU time to a binary that you do not "
37022 "control, under the same user account as the library, albeit wrapped in qemu "
37023 "virtualization.  More information and alternatives can be found in the "
37024 "section L</RUNNING COMMANDS>."
37025 msgstr ""
37026
37027 #. type: =head2
37028 #: ../src/guestfs.pod:1257
37029 msgid "CVE-2010-3851"
37030 msgstr "CVE-2010-3851"
37031
37032 #. type: textblock
37033 #: ../src/guestfs.pod:1259
37034 msgid "https://bugzilla.redhat.com/642934"
37035 msgstr "https://bugzilla.redhat.com/642934"
37036
37037 #. type: textblock
37038 #: ../src/guestfs.pod:1261
37039 msgid ""
37040 "This security bug concerns the automatic disk format detection that qemu "
37041 "does on disk images."
37042 msgstr ""
37043
37044 #. type: textblock
37045 #: ../src/guestfs.pod:1264
37046 msgid ""
37047 "A raw disk image is just the raw bytes, there is no header.  Other disk "
37048 "images like qcow2 contain a special header.  Qemu deals with this by looking "
37049 "for one of the known headers, and if none is found then assuming the disk "
37050 "image must be raw."
37051 msgstr ""
37052
37053 #. type: textblock
37054 #: ../src/guestfs.pod:1269
37055 msgid ""
37056 "This allows a guest which has been given a raw disk image to write some "
37057 "other header.  At next boot (or when the disk image is accessed by "
37058 "libguestfs) qemu would do autodetection and think the disk image format was, "
37059 "say, qcow2 based on the header written by the guest."
37060 msgstr ""
37061
37062 #. type: textblock
37063 #: ../src/guestfs.pod:1274
37064 msgid ""
37065 "This in itself would not be a problem, but qcow2 offers many features, one "
37066 "of which is to allow a disk image to refer to another image (called the "
37067 "\"backing disk\").  It does this by placing the path to the backing disk "
37068 "into the qcow2 header.  This path is not validated and could point to any "
37069 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
37070 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37071 "control of the attacker."
37072 msgstr ""
37073
37074 #. type: textblock
37075 #: ../src/guestfs.pod:1282
37076 msgid ""
37077 "In libguestfs this is rather hard to exploit except under two circumstances:"
37078 msgstr ""
37079
37080 #. type: textblock
37081 #: ../src/guestfs.pod:1289
37082 msgid "You have enabled the network or have opened the disk in write mode."
37083 msgstr ""
37084
37085 #. type: textblock
37086 #: ../src/guestfs.pod:1293
37087 msgid ""
37088 "You are also running untrusted code from the guest (see L</RUNNING "
37089 "COMMANDS>)."
37090 msgstr ""
37091
37092 #. type: textblock
37093 #: ../src/guestfs.pod:1298
37094 msgid ""
37095 "The way to avoid this is to specify the expected disk format when adding "
37096 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
37097 "should always do this if the disk is raw format, and it's a good idea for "
37098 "other cases too."
37099 msgstr ""
37100
37101 #. type: textblock
37102 #: ../src/guestfs.pod:1303
37103 msgid ""
37104 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37105 "format is fetched from libvirt and passed through."
37106 msgstr ""
37107
37108 #. type: textblock
37109 #: ../src/guestfs.pod:1306
37110 msgid ""
37111 "For libguestfs tools, use the I<--format> command line parameter as "
37112 "appropriate."
37113 msgstr ""
37114
37115 #. type: =head1
37116 #: ../src/guestfs.pod:1309
37117 msgid "CONNECTION MANAGEMENT"
37118 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
37119
37120 #. type: =head2
37121 #: ../src/guestfs.pod:1311
37122 msgid "guestfs_h *"
37123 msgstr "guestfs_h *"
37124
37125 #. type: textblock
37126 #: ../src/guestfs.pod:1313
37127 msgid ""
37128 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
37129 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
37130 "handle and release all resources used."
37131 msgstr ""
37132
37133 #. type: textblock
37134 #: ../src/guestfs.pod:1317
37135 msgid ""
37136 "For information on using multiple handles and threads, see the section L</"
37137 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37138 msgstr ""
37139
37140 #. type: =head2
37141 #: ../src/guestfs.pod:1320
37142 msgid "guestfs_create"
37143 msgstr "guestfs_create"
37144
37145 #. type: verbatim
37146 #: ../src/guestfs.pod:1322
37147 #, no-wrap
37148 msgid ""
37149 " guestfs_h *guestfs_create (void);\n"
37150 "\n"
37151 msgstr ""
37152 " guestfs_h *guestfs_create (void);\n"
37153 "\n"
37154
37155 #. type: textblock
37156 #: ../src/guestfs.pod:1324
37157 msgid "Create a connection handle."
37158 msgstr "Створити дескриптор з’єднання."
37159
37160 #. type: textblock
37161 #: ../src/guestfs.pod:1326
37162 msgid ""
37163 "On success this returns a non-NULL pointer to a handle.  On error it returns "
37164 "NULL."
37165 msgstr ""
37166
37167 #. type: textblock
37168 #: ../src/guestfs.pod:1329
37169 msgid ""
37170 "You have to \"configure\" the handle after creating it.  This includes "
37171 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37172 "handle at least once."
37173 msgstr ""
37174
37175 #. type: textblock
37176 #: ../src/guestfs.pod:1333
37177 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37178 msgstr ""
37179
37180 #. type: textblock
37181 #: ../src/guestfs.pod:1335
37182 msgid ""
37183 "You may also want to configure error handling for the handle.  See the L</"
37184 "ERROR HANDLING> section below."
37185 msgstr ""
37186
37187 #. type: =head2
37188 #: ../src/guestfs.pod:1338
37189 msgid "guestfs_close"
37190 msgstr "guestfs_close"
37191
37192 #. type: verbatim
37193 #: ../src/guestfs.pod:1340
37194 #, no-wrap
37195 msgid ""
37196 " void guestfs_close (guestfs_h *g);\n"
37197 "\n"
37198 msgstr ""
37199 " void guestfs_close (guestfs_h *g);\n"
37200 "\n"
37201
37202 #. type: textblock
37203 #: ../src/guestfs.pod:1342
37204 msgid "This closes the connection handle and frees up all resources used."
37205 msgstr ""
37206
37207 #. type: textblock
37208 #: ../src/guestfs.pod:1344
37209 msgid ""
37210 "If autosync was set on the handle and the handle was launched, then this "
37211 "implicitly calls various functions to unmount filesystems and sync the "
37212 "disk.  See L</guestfs_set_autosync> for more details."
37213 msgstr ""
37214
37215 #. type: textblock
37216 #: ../src/guestfs.pod:1348
37217 msgid "If a close callback was set on the handle, then it is called."
37218 msgstr ""
37219
37220 #. type: =head1
37221 #: ../src/guestfs.pod:1350
37222 msgid "ERROR HANDLING"
37223 msgstr "ОБРОБКА ПОМИЛОК"
37224
37225 #. type: textblock
37226 #: ../src/guestfs.pod:1352
37227 msgid ""
37228 "API functions can return errors.  For example, almost all functions that "
37229 "return C<int> will return C<-1> to indicate an error."
37230 msgstr ""
37231
37232 #. type: textblock
37233 #: ../src/guestfs.pod:1355
37234 msgid ""
37235 "Additional information is available for errors: an error message string and "
37236 "optionally an error number (errno) if the thing that failed was a system "
37237 "call."
37238 msgstr ""
37239
37240 #. type: textblock
37241 #: ../src/guestfs.pod:1359
37242 msgid ""
37243 "You can get at the additional information about the last error on the handle "
37244 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37245 "up an error handler with L</guestfs_set_error_handler>."
37246 msgstr ""
37247
37248 #. type: textblock
37249 #: ../src/guestfs.pod:1364
37250 msgid ""
37251 "When the handle is created, a default error handler is installed which "
37252 "prints the error message string to C<stderr>.  For small short-running "
37253 "command line programs it is sufficient to do:"
37254 msgstr ""
37255
37256 #. type: verbatim
37257 #: ../src/guestfs.pod:1368
37258 #, no-wrap
37259 msgid ""
37260 " if (guestfs_launch (g) == -1)\n"
37261 "   exit (EXIT_FAILURE);\n"
37262 "\n"
37263 msgstr ""
37264 " if (guestfs_launch (g) == -1)\n"
37265 "   exit (EXIT_FAILURE);\n"
37266 "\n"
37267
37268 #. type: textblock
37269 #: ../src/guestfs.pod:1371
37270 msgid ""
37271 "since the default error handler will ensure that an error message has been "
37272 "printed to C<stderr> before the program exits."
37273 msgstr ""
37274
37275 #. type: textblock
37276 #: ../src/guestfs.pod:1374
37277 msgid ""
37278 "For other programs the caller will almost certainly want to install an "
37279 "alternate error handler or do error handling in-line like this:"
37280 msgstr ""
37281
37282 #. type: verbatim
37283 #: ../src/guestfs.pod:1377
37284 #, no-wrap
37285 msgid ""
37286 " /* This disables the default behaviour of printing errors\n"
37287 "    on stderr. */\n"
37288 " guestfs_set_error_handler (g, NULL, NULL);\n"
37289 " \n"
37290 msgstr ""
37291
37292 #. type: verbatim
37293 #: ../src/guestfs.pod:1381
37294 #, no-wrap
37295 msgid ""
37296 " if (guestfs_launch (g) == -1) {\n"
37297 "   /* Examine the error message and print it etc. */\n"
37298 "   char *msg = guestfs_last_error (g);\n"
37299 "   int errnum = guestfs_last_errno (g);\n"
37300 "   fprintf (stderr, \"%s\", msg);\n"
37301 "   if (errnum != 0)\n"
37302 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
37303 "   fprintf (stderr, \"\\n\");\n"
37304 "   /* ... */\n"
37305 " }\n"
37306 "\n"
37307 msgstr ""
37308
37309 #. type: textblock
37310 #: ../src/guestfs.pod:1392
37311 msgid ""
37312 "Out of memory errors are handled differently.  The default action is to call "
37313 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
37314 "guestfs_set_out_of_memory_handler>."
37315 msgstr ""
37316
37317 #. type: textblock
37318 #: ../src/guestfs.pod:1396
37319 msgid ""
37320 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37321 "because there is no handle if this happens there is no way to get additional "
37322 "error information.  However L</guestfs_create> is supposed to be a "
37323 "lightweight operation which can only fail because of insufficient memory (it "
37324 "returns NULL in this case)."
37325 msgstr ""
37326
37327 #. type: =head2
37328 #: ../src/guestfs.pod:1402
37329 msgid "guestfs_last_error"
37330 msgstr "guestfs_last_error"
37331
37332 #. type: verbatim
37333 #: ../src/guestfs.pod:1404
37334 #, no-wrap
37335 msgid ""
37336 " const char *guestfs_last_error (guestfs_h *g);\n"
37337 "\n"
37338 msgstr ""
37339 " const char *guestfs_last_error (guestfs_h *g);\n"
37340 "\n"
37341
37342 #. type: textblock
37343 #: ../src/guestfs.pod:1406
37344 msgid ""
37345 "This returns the last error message that happened on C<g>.  If there has not "
37346 "been an error since the handle was created, then this returns C<NULL>."
37347 msgstr ""
37348
37349 #. type: textblock
37350 #: ../src/guestfs.pod:1410
37351 msgid ""
37352 "The lifetime of the returned string is until the next error occurs, or L</"
37353 "guestfs_close> is called."
37354 msgstr ""
37355
37356 #. type: =head2
37357 #: ../src/guestfs.pod:1413
37358 msgid "guestfs_last_errno"
37359 msgstr "guestfs_last_errno"
37360
37361 #. type: verbatim
37362 #: ../src/guestfs.pod:1415
37363 #, no-wrap
37364 msgid ""
37365 " int guestfs_last_errno (guestfs_h *g);\n"
37366 "\n"
37367 msgstr ""
37368 " int guestfs_last_errno (guestfs_h *g);\n"
37369 "\n"
37370
37371 #. type: textblock
37372 #: ../src/guestfs.pod:1417
37373 msgid "This returns the last error number (errno) that happened on C<g>."
37374 msgstr ""
37375
37376 #. type: textblock
37377 #: ../src/guestfs.pod:1419
37378 msgid "If successful, an errno integer not equal to zero is returned."
37379 msgstr ""
37380
37381 #. type: textblock
37382 #: ../src/guestfs.pod:1421
37383 msgid ""
37384 "If no error, this returns 0.  This call can return 0 in three situations:"
37385 msgstr ""
37386
37387 #. type: textblock
37388 #: ../src/guestfs.pod:1428
37389 msgid "There has not been any error on the handle."
37390 msgstr ""
37391
37392 #. type: textblock
37393 #: ../src/guestfs.pod:1432
37394 msgid ""
37395 "There has been an error but the errno was meaningless.  This corresponds to "
37396 "the case where the error did not come from a failed system call, but for "
37397 "some other reason."
37398 msgstr ""
37399
37400 #. type: textblock
37401 #: ../src/guestfs.pod:1438
37402 msgid ""
37403 "There was an error from a failed system call, but for some reason the errno "
37404 "was not captured and returned.  This usually indicates a bug in libguestfs."
37405 msgstr ""
37406
37407 #. type: textblock
37408 #: ../src/guestfs.pod:1444
37409 msgid ""
37410 "Libguestfs tries to convert the errno from inside the applicance into a "
37411 "corresponding errno for the caller (not entirely trivial: the appliance "
37412 "might be running a completely different operating system from the library "
37413 "and error numbers are not standardized across Un*xen).  If this could not be "
37414 "done, then the error is translated to C<EINVAL>.  In practice this should "
37415 "only happen in very rare circumstances."
37416 msgstr ""
37417
37418 #. type: =head2
37419 #: ../src/guestfs.pod:1452
37420 msgid "guestfs_set_error_handler"
37421 msgstr "guestfs_set_error_handler"
37422
37423 #. type: verbatim
37424 #: ../src/guestfs.pod:1454
37425 #, no-wrap
37426 msgid ""
37427 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37428 "                                           void *opaque,\n"
37429 "                                           const char *msg);\n"
37430 " void guestfs_set_error_handler (guestfs_h *g,\n"
37431 "                                 guestfs_error_handler_cb cb,\n"
37432 "                                 void *opaque);\n"
37433 "\n"
37434 msgstr ""
37435 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37436 "                                           void *opaque,\n"
37437 "                                           const char *msg);\n"
37438 " void guestfs_set_error_handler (guestfs_h *g,\n"
37439 "                                 guestfs_error_handler_cb cb,\n"
37440 "                                 void *opaque);\n"
37441 "\n"
37442
37443 #. type: textblock
37444 #: ../src/guestfs.pod:1461
37445 msgid ""
37446 "The callback C<cb> will be called if there is an error.  The parameters "
37447 "passed to the callback are an opaque data pointer and the error message "
37448 "string."
37449 msgstr ""
37450
37451 #. type: textblock
37452 #: ../src/guestfs.pod:1465
37453 msgid ""
37454 "C<errno> is not passed to the callback.  To get that the callback must call "
37455 "L</guestfs_last_errno>."
37456 msgstr ""
37457
37458 #. type: textblock
37459 #: ../src/guestfs.pod:1468
37460 msgid ""
37461 "Note that the message string C<msg> is freed as soon as the callback "
37462 "function returns, so if you want to stash it somewhere you must make your "
37463 "own copy."
37464 msgstr ""
37465
37466 #. type: textblock
37467 #: ../src/guestfs.pod:1472
37468 msgid "The default handler prints messages on C<stderr>."
37469 msgstr ""
37470
37471 #. type: textblock
37472 #: ../src/guestfs.pod:1474
37473 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37474 msgstr ""
37475
37476 #. type: =head2
37477 #: ../src/guestfs.pod:1476
37478 msgid "guestfs_get_error_handler"
37479 msgstr "guestfs_get_error_handler"
37480
37481 #. type: verbatim
37482 #: ../src/guestfs.pod:1478
37483 #, no-wrap
37484 msgid ""
37485 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37486 "                                                     void **opaque_rtn);\n"
37487 "\n"
37488 msgstr ""
37489 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37490 "                                                     void **opaque_rtn);\n"
37491 "\n"
37492
37493 #. type: textblock
37494 #: ../src/guestfs.pod:1481
37495 msgid "Returns the current error handler callback."
37496 msgstr ""
37497
37498 #. type: =head2
37499 #: ../src/guestfs.pod:1483
37500 msgid "guestfs_set_out_of_memory_handler"
37501 msgstr "guestfs_set_out_of_memory_handler"
37502
37503 #. type: verbatim
37504 #: ../src/guestfs.pod:1485
37505 #, no-wrap
37506 msgid ""
37507 " typedef void (*guestfs_abort_cb) (void);\n"
37508 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37509 "                                         guestfs_abort_cb);\n"
37510 "\n"
37511 msgstr ""
37512
37513 #. type: textblock
37514 #: ../src/guestfs.pod:1489
37515 msgid ""
37516 "The callback C<cb> will be called if there is an out of memory situation.  "
37517 "I<Note this callback must not return>."
37518 msgstr ""
37519
37520 #. type: textblock
37521 #: ../src/guestfs.pod:1492
37522 msgid "The default is to call L<abort(3)>."
37523 msgstr ""
37524
37525 #. type: textblock
37526 #: ../src/guestfs.pod:1494
37527 msgid ""
37528 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37529 msgstr ""
37530
37531 #. type: =head2
37532 #: ../src/guestfs.pod:1497
37533 msgid "guestfs_get_out_of_memory_handler"
37534 msgstr "guestfs_get_out_of_memory_handler"
37535
37536 #. type: verbatim
37537 #: ../src/guestfs.pod:1499
37538 #, no-wrap
37539 msgid ""
37540 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37541 "\n"
37542 msgstr ""
37543 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37544 "\n"
37545
37546 #. type: textblock
37547 #: ../src/guestfs.pod:1501
37548 msgid "This returns the current out of memory handler."
37549 msgstr ""
37550
37551 #. type: =head1
37552 #: ../src/guestfs.pod:1503
37553 msgid "API CALLS"
37554 msgstr "ВИКЛИКИ API"
37555
37556 #. type: =head1
37557 #: ../src/guestfs.pod:1507
37558 msgid "STRUCTURES"
37559 msgstr "СТРУКТУРИ"
37560
37561 #. type: textblock
37562 #: ../src/guestfs.pod:1509
37563 msgid "@STRUCTS@"
37564 msgstr "@STRUCTS@"
37565
37566 #. type: =head1
37567 #: ../src/guestfs.pod:1511
37568 msgid "AVAILABILITY"
37569 msgstr "ДОСТУПНІСТЬ"
37570
37571 #. type: =head2
37572 #: ../src/guestfs.pod:1513
37573 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37574 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
37575
37576 #. type: textblock
37577 #: ../src/guestfs.pod:1515
37578 msgid ""
37579 "Using L</guestfs_available> you can test availability of the following "
37580 "groups of functions.  This test queries the appliance to see if the "
37581 "appliance you are currently using supports the functionality."
37582 msgstr ""
37583
37584 #. type: textblock
37585 #: ../src/guestfs.pod:1520
37586 msgid "@AVAILABILITY@"
37587 msgstr "@AVAILABILITY@"
37588
37589 #. type: =head2
37590 #: ../src/guestfs.pod:1522
37591 msgid "GUESTFISH supported COMMAND"
37592 msgstr ""
37593
37594 #. type: textblock
37595 #: ../src/guestfs.pod:1524
37596 msgid ""
37597 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37598 "prints out the available groups and whether they are supported by this build "
37599 "of libguestfs.  Note however that you have to do C<run> first."
37600 msgstr ""
37601
37602 #. type: =head2
37603 #: ../src/guestfs.pod:1529
37604 msgid "SINGLE CALLS AT COMPILE TIME"
37605 msgstr ""
37606
37607 #. type: textblock
37608 #: ../src/guestfs.pod:1531
37609 msgid ""
37610 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37611 "function, such as:"
37612 msgstr ""
37613
37614 #. type: verbatim
37615 #: ../src/guestfs.pod:1534
37616 #, no-wrap
37617 msgid ""
37618 " #define LIBGUESTFS_HAVE_DD 1\n"
37619 "\n"
37620 msgstr ""
37621 " #define LIBGUESTFS_HAVE_DD 1\n"
37622 "\n"
37623
37624 #. type: textblock
37625 #: ../src/guestfs.pod:1536
37626 msgid "if L</guestfs_dd> is available."
37627 msgstr ""
37628
37629 #. type: textblock
37630 #: ../src/guestfs.pod:1538
37631 msgid ""
37632 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37633 "function is available at compile time, we recommended using build tools such "
37634 "as autoconf or cmake.  For example in autotools you could use:"
37635 msgstr ""
37636
37637 #. type: verbatim
37638 #: ../src/guestfs.pod:1543
37639 #, no-wrap
37640 msgid ""
37641 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37642 " AC_CHECK_FUNCS([guestfs_dd])\n"
37643 "\n"
37644 msgstr ""
37645 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37646 " AC_CHECK_FUNCS([guestfs_dd])\n"
37647 "\n"
37648
37649 #. type: textblock
37650 #: ../src/guestfs.pod:1546
37651 msgid ""
37652 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37653 "in your program."
37654 msgstr ""
37655
37656 #. type: =head2
37657 #: ../src/guestfs.pod:1549
37658 msgid "SINGLE CALLS AT RUN TIME"
37659 msgstr ""
37660
37661 #. type: textblock
37662 #: ../src/guestfs.pod:1551
37663 msgid ""
37664 "Testing at compile time doesn't guarantee that a function really exists in "
37665 "the library.  The reason is that you might be dynamically linked against a "
37666 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37667 "This situation unfortunately results in a segmentation fault, which is a "
37668 "shortcoming of the C dynamic linking system itself."
37669 msgstr ""
37670
37671 #. type: textblock
37672 #: ../src/guestfs.pod:1558
37673 msgid ""
37674 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37675 "in this example program (note that you still need the compile time check as "
37676 "well):"
37677 msgstr ""
37678
37679 #. type: verbatim
37680 #: ../src/guestfs.pod:1562
37681 #, no-wrap
37682 msgid ""
37683 " #include <stdio.h>\n"
37684 " #include <stdlib.h>\n"
37685 " #include <unistd.h>\n"
37686 " #include <dlfcn.h>\n"
37687 " #include <guestfs.h>\n"
37688 " \n"
37689 msgstr ""
37690 " #include <stdio.h>\n"
37691 " #include <stdlib.h>\n"
37692 " #include <unistd.h>\n"
37693 " #include <dlfcn.h>\n"
37694 " #include <guestfs.h>\n"
37695 " \n"
37696
37697 #. type: verbatim
37698 #: ../src/guestfs.pod:1568
37699 #, no-wrap
37700 msgid ""
37701 " main ()\n"
37702 " {\n"
37703 " #ifdef LIBGUESTFS_HAVE_DD\n"
37704 "   void *dl;\n"
37705 "   int has_function;\n"
37706 " \n"
37707 msgstr ""
37708 " main ()\n"
37709 " {\n"
37710 " #ifdef LIBGUESTFS_HAVE_DD\n"
37711 "   void *dl;\n"
37712 "   int has_function;\n"
37713 " \n"
37714
37715 #. type: verbatim
37716 #: ../src/guestfs.pod:1574
37717 #, no-wrap
37718 msgid ""
37719 "   /* Test if the function guestfs_dd is really available. */\n"
37720 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37721 "   if (!dl) {\n"
37722 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37723 "     exit (EXIT_FAILURE);\n"
37724 "   }\n"
37725 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37726 "   dlclose (dl);\n"
37727 " \n"
37728 msgstr ""
37729
37730 #. type: verbatim
37731 #: ../src/guestfs.pod:1583
37732 #, no-wrap
37733 msgid ""
37734 "   if (!has_function)\n"
37735 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37736 "   else {\n"
37737 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37738 "     /* Now it's safe to call\n"
37739 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37740 "     */\n"
37741 "   }\n"
37742 " #else\n"
37743 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37744 " #endif\n"
37745 "  }\n"
37746 "\n"
37747 msgstr ""
37748
37749 #. type: textblock
37750 #: ../src/guestfs.pod:1596
37751 msgid ""
37752 "You may think the above is an awful lot of hassle, and it is.  There are "
37753 "other ways outside of the C linking system to ensure that this kind of "
37754 "incompatibility never arises, such as using package versioning:"
37755 msgstr ""
37756
37757 #. type: verbatim
37758 #: ../src/guestfs.pod:1601
37759 #, no-wrap
37760 msgid ""
37761 " Requires: libguestfs >= 1.0.80\n"
37762 "\n"
37763 msgstr ""
37764
37765 #. type: =head1
37766 #: ../src/guestfs.pod:1603
37767 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37768 msgstr ""
37769
37770 #. type: textblock
37771 #: ../src/guestfs.pod:1605
37772 msgid ""
37773 "A recent feature of the API is the introduction of calls which take optional "
37774 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37775 "takes variable arguments (ie. C<...>), as in this example:"
37776 msgstr ""
37777
37778 #. type: verbatim
37779 #: ../src/guestfs.pod:1610
37780 #, no-wrap
37781 msgid ""
37782 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37783 "\n"
37784 msgstr ""
37785 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37786 "\n"
37787
37788 #. type: textblock
37789 #: ../src/guestfs.pod:1612
37790 msgid ""
37791 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37792 "call with no optional arguments specified:"
37793 msgstr ""
37794
37795 #. type: verbatim
37796 #: ../src/guestfs.pod:1615
37797 #, no-wrap
37798 msgid ""
37799 " guestfs_add_drive_opts (g, filename, -1);\n"
37800 "\n"
37801 msgstr ""
37802 " guestfs_add_drive_opts (g, filename, -1);\n"
37803 "\n"
37804
37805 #. type: textblock
37806 #: ../src/guestfs.pod:1617
37807 msgid "With a single optional argument:"
37808 msgstr ""
37809
37810 #. type: verbatim
37811 #: ../src/guestfs.pod:1619
37812 #, no-wrap
37813 msgid ""
37814 " guestfs_add_drive_opts (g, filename,\n"
37815 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37816 "                         -1);\n"
37817 "\n"
37818 msgstr ""
37819 " guestfs_add_drive_opts (g, filename,\n"
37820 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37821 "                         -1);\n"
37822 "\n"
37823
37824 #. type: textblock
37825 #: ../src/guestfs.pod:1623
37826 msgid "With two:"
37827 msgstr ""
37828
37829 #. type: verbatim
37830 #: ../src/guestfs.pod:1625
37831 #, no-wrap
37832 msgid ""
37833 " guestfs_add_drive_opts (g, filename,\n"
37834 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37835 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37836 "                         -1);\n"
37837 "\n"
37838 msgstr ""
37839 " guestfs_add_drive_opts (g, filename,\n"
37840 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37841 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37842 "                         -1);\n"
37843 "\n"
37844
37845 #. type: textblock
37846 #: ../src/guestfs.pod:1630
37847 msgid ""
37848 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37849 "happen!"
37850 msgstr ""
37851
37852 #. type: =head2
37853 #: ../src/guestfs.pod:1633
37854 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37855 msgstr ""
37856
37857 #. type: textblock
37858 #: ../src/guestfs.pod:1635
37859 msgid ""
37860 "The second variant has the same name with the suffix C<_va>, which works the "
37861 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37862 "example function, this is declared:"
37863 msgstr ""
37864
37865 #. type: verbatim
37866 #: ../src/guestfs.pod:1639
37867 #, no-wrap
37868 msgid ""
37869 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37870 "                                va_list args);\n"
37871 "\n"
37872 msgstr ""
37873 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37874 "                                va_list args);\n"
37875 "\n"
37876
37877 #. type: =head2
37878 #: ../src/guestfs.pod:1642
37879 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37880 msgstr ""
37881
37882 #. type: textblock
37883 #: ../src/guestfs.pod:1644
37884 msgid ""
37885 "The third variant is useful where you need to construct these calls.  You "
37886 "pass in a structure where you fill in the optional fields.  The structure "
37887 "has a bitmask as the first element which you must set to indicate which "
37888 "fields you have filled in.  For our example function the structure and call "
37889 "are declared:"
37890 msgstr ""
37891
37892 #. type: verbatim
37893 #: ../src/guestfs.pod:1650
37894 #, no-wrap
37895 msgid ""
37896 " struct guestfs_add_drive_opts_argv {\n"
37897 "   uint64_t bitmask;\n"
37898 "   int readonly;\n"
37899 "   const char *format;\n"
37900 "   /* ... */\n"
37901 " };\n"
37902 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37903 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37904 "\n"
37905 msgstr ""
37906 " struct guestfs_add_drive_opts_argv {\n"
37907 "   uint64_t bitmask;\n"
37908 "   int readonly;\n"
37909 "   const char *format;\n"
37910 "   /* ... */\n"
37911 " };\n"
37912 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37913 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37914 "\n"
37915
37916 #. type: textblock
37917 #: ../src/guestfs.pod:1659
37918 msgid "You could call it like this:"
37919 msgstr ""
37920
37921 #. type: verbatim
37922 #: ../src/guestfs.pod:1661
37923 #, no-wrap
37924 msgid ""
37925 " struct guestfs_add_drive_opts_argv optargs = {\n"
37926 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37927 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37928 "   .readonly = 1,\n"
37929 "   .format = \"qcow2\"\n"
37930 " };\n"
37931 " \n"
37932 msgstr ""
37933 " struct guestfs_add_drive_opts_argv optargs = {\n"
37934 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37935 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37936 "   .readonly = 1,\n"
37937 "   .format = \"qcow2\"\n"
37938 " };\n"
37939 " \n"
37940
37941 #. type: verbatim
37942 #: ../src/guestfs.pod:1668
37943 #, no-wrap
37944 msgid ""
37945 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37946 "\n"
37947 msgstr ""
37948 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37949 "\n"
37950
37951 #. type: textblock
37952 #: ../src/guestfs.pod:1676
37953 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37954 msgstr ""
37955
37956 #. type: textblock
37957 #: ../src/guestfs.pod:1681
37958 msgid "You do not need to fill in all fields of the structure."
37959 msgstr ""
37960
37961 #. type: textblock
37962 #: ../src/guestfs.pod:1685
37963 msgid ""
37964 "There must be a one-to-one correspondence between fields of the structure "
37965 "that are filled in, and bits set in the bitmask."
37966 msgstr ""
37967
37968 #. type: =head2
37969 #: ../src/guestfs.pod:1690
37970 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37971 msgstr ""
37972
37973 #. type: textblock
37974 #: ../src/guestfs.pod:1692
37975 msgid ""
37976 "In other languages, optional arguments are expressed in the way that is "
37977 "natural for that language.  We refer you to the language-specific "
37978 "documentation for more details on that."
37979 msgstr ""
37980
37981 #. type: textblock
37982 #: ../src/guestfs.pod:1696
37983 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37984 msgstr ""
37985
37986 #. type: =head2
37987 #: ../src/guestfs.pod:1698
37988 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37989 msgstr ""
37990
37991 #. type: textblock
37992 #: ../src/guestfs.pod:1700
37993 msgid ""
37994 "B<Note:> This section documents the generic event mechanism introduced in "
37995 "libguestfs 1.10, which you should use in new code if possible.  The old "
37996 "functions C<guestfs_set_log_message_callback>, "
37997 "C<guestfs_set_subprocess_quit_callback>, "
37998 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37999 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38000 "page.  Because of the ABI guarantee, the old functions continue to work."
38001 msgstr ""
38002
38003 #. type: textblock
38004 #: ../src/guestfs.pod:1709
38005 msgid ""
38006 "Handles generate events when certain things happen, such as log messages "
38007 "being generated, progress messages during long-running operations, or the "
38008 "handle being closed.  The API calls described below let you register a "
38009 "callback to be called when events happen.  You can register multiple "
38010 "callbacks (for the same, different or overlapping sets of events), and "
38011 "individually remove callbacks.  If callbacks are not removed, then they "
38012 "remain in force until the handle is closed."
38013 msgstr ""
38014
38015 #. type: textblock
38016 #: ../src/guestfs.pod:1717
38017 msgid ""
38018 "In the current implementation, events are only generated synchronously: that "
38019 "means that events (and hence callbacks) can only happen while you are in the "
38020 "middle of making another libguestfs call.  The callback is called in the "
38021 "same thread."
38022 msgstr ""
38023
38024 #. type: textblock
38025 #: ../src/guestfs.pod:1722
38026 msgid ""
38027 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38028 "unsigned integers, or a message buffer.  Payloads are discussed later on."
38029 msgstr ""
38030
38031 #. type: =head3
38032 #: ../src/guestfs.pod:1726
38033 msgid "CLASSES OF EVENTS"
38034 msgstr ""
38035
38036 #. type: =item
38037 #: ../src/guestfs.pod:1730
38038 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38039 msgstr ""
38040
38041 #. type: textblock
38042 #: ../src/guestfs.pod:1733
38043 msgid ""
38044 "The callback function will be called while the handle is being closed "
38045 "(synchronously from L</guestfs_close>)."
38046 msgstr ""
38047
38048 #. type: textblock
38049 #: ../src/guestfs.pod:1736
38050 msgid ""
38051 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38052 "handles that are open when the program exits.  This means that this callback "
38053 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38054 "problems in higher-level languages (eg. if your HLL interpreter has already "
38055 "been cleaned up by the time this is called, and if your callback then jumps "
38056 "into some HLL function)."
38057 msgstr ""
38058
38059 #. type: textblock
38060 #: ../src/guestfs.pod:1743
38061 msgid ""
38062 "If no callback is registered: the handle is closed without any callback "
38063 "being invoked."
38064 msgstr ""
38065
38066 #. type: =item
38067 #: ../src/guestfs.pod:1746
38068 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38069 msgstr ""
38070
38071 #. type: textblock
38072 #: ../src/guestfs.pod:1749
38073 msgid ""
38074 "The callback function will be called when the child process quits, either "
38075 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
38076 "corresponds to a transition from any state to the CONFIG state)."
38077 msgstr ""
38078
38079 #. type: textblock
38080 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
38081 msgid "If no callback is registered: the event is ignored."
38082 msgstr ""
38083
38084 #. type: =item
38085 #: ../src/guestfs.pod:1755
38086 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38087 msgstr ""
38088
38089 #. type: textblock
38090 #: ../src/guestfs.pod:1758
38091 msgid ""
38092 "The callback function will be called when the child process becomes ready "
38093 "first time after it has been launched.  (This corresponds to a transition "
38094 "from LAUNCHING to the READY state)."
38095 msgstr ""
38096
38097 #. type: =item
38098 #: ../src/guestfs.pod:1764
38099 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38100 msgstr ""
38101
38102 #. type: textblock
38103 #: ../src/guestfs.pod:1767
38104 msgid ""
38105 "Some long-running operations can generate progress messages.  If this "
38106 "callback is registered, then it will be called each time a progress message "
38107 "is generated (usually two seconds after the operation started, and three "
38108 "times per second thereafter until it completes, although the frequency may "
38109 "change in future versions)."
38110 msgstr ""
38111
38112 #. type: textblock
38113 #: ../src/guestfs.pod:1773
38114 msgid ""
38115 "The callback receives in the payload four unsigned 64 bit numbers which are "
38116 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38117 msgstr ""
38118
38119 #. type: textblock
38120 #: ../src/guestfs.pod:1776
38121 msgid ""
38122 "The units of C<total> are not defined, although for some operations C<total> "
38123 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38124 "or megabytes), and C<position> may be the portion which has been transferred."
38125 msgstr ""
38126
38127 #. type: textblock
38128 #: ../src/guestfs.pod:1781
38129 msgid "The only defined and stable parts of the API are:"
38130 msgstr ""
38131
38132 #. type: textblock
38133 #: ../src/guestfs.pod:1787
38134 msgid ""
38135 "The callback can display to the user some type of progress bar or indicator "
38136 "which shows the ratio of C<position>:C<total>."
38137 msgstr ""
38138
38139 #. type: textblock
38140 #: ../src/guestfs.pod:1792
38141 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38142 msgstr ""
38143
38144 #. type: textblock
38145 #: ../src/guestfs.pod:1796
38146 msgid ""
38147 "If any progress notification is sent during a call, then a final progress "
38148 "notification is always sent when C<position> = C<total> (I<unless> the call "
38149 "fails with an error)."
38150 msgstr ""
38151
38152 #. type: textblock
38153 #: ../src/guestfs.pod:1800
38154 msgid ""
38155 "This is to simplify caller code, so callers can easily set the progress "
38156 "indicator to \"100%\" at the end of the operation, without requiring special "
38157 "code to detect this case."
38158 msgstr ""
38159
38160 #. type: textblock
38161 #: ../src/guestfs.pod:1806
38162 msgid ""
38163 "For some calls we are unable to estimate the progress of the call, but we "
38164 "can still generate progress messages to indicate activity.  This is known as "
38165 "\"pulse mode\", and is directly supported by certain progress bar "
38166 "implementations (eg. GtkProgressBar)."
38167 msgstr ""
38168
38169 #. type: textblock
38170 #: ../src/guestfs.pod:1811
38171 msgid ""
38172 "For these calls, zero or more progress messages are generated with "
38173 "C<position = 0> and C<total = 1>, followed by a final message with "
38174 "C<position = total = 1>."
38175 msgstr ""
38176
38177 #. type: textblock
38178 #: ../src/guestfs.pod:1815
38179 msgid ""
38180 "As noted above, if the call fails with an error then the final message may "
38181 "not be generated."
38182 msgstr ""
38183
38184 #. type: textblock
38185 #: ../src/guestfs.pod:1820
38186 msgid ""
38187 "The callback also receives the procedure number (C<proc_nr>) and serial "
38188 "number (C<serial>) of the call.  These are only useful for debugging "
38189 "protocol issues, and the callback can normally ignore them.  The callback "
38190 "may want to print these numbers in error messages or debugging messages."
38191 msgstr ""
38192
38193 #. type: textblock
38194 #: ../src/guestfs.pod:1826
38195 msgid "If no callback is registered: progress messages are discarded."
38196 msgstr ""
38197
38198 #. type: =item
38199 #: ../src/guestfs.pod:1828
38200 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38201 msgstr ""
38202
38203 #. type: textblock
38204 #: ../src/guestfs.pod:1831
38205 msgid ""
38206 "The callback function is called whenever a log message is generated by qemu, "
38207 "the appliance kernel, guestfsd (daemon), or utility programs."
38208 msgstr ""
38209
38210 #. type: textblock
38211 #: ../src/guestfs.pod:1834
38212 msgid ""
38213 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
38214 "guestfs_launch>) then additional debug messages are generated."
38215 msgstr ""
38216
38217 #. type: textblock
38218 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
38219 msgid ""
38220 "If no callback is registered: the messages are discarded unless the verbose "
38221 "flag is set in which case they are sent to stderr.  You can override the "
38222 "printing of verbose messages to stderr by setting up a callback."
38223 msgstr ""
38224
38225 #. type: =item
38226 #: ../src/guestfs.pod:1842
38227 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38228 msgstr ""
38229
38230 #. type: textblock
38231 #: ../src/guestfs.pod:1845
38232 msgid ""
38233 "The callback function is called whenever a log message is generated by the "
38234 "library part of libguestfs."
38235 msgstr ""
38236
38237 #. type: textblock
38238 #: ../src/guestfs.pod:1848
38239 msgid ""
38240 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38241 "messages are generated."
38242 msgstr ""
38243
38244 #. type: =item
38245 #: ../src/guestfs.pod:1856
38246 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38247 msgstr ""
38248
38249 #. type: textblock
38250 #: ../src/guestfs.pod:1859
38251 msgid ""
38252 "The callback function is called whenever a trace message is generated.  This "
38253 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38254 msgstr ""
38255
38256 #. type: textblock
38257 #: ../src/guestfs.pod:1862
38258 msgid ""
38259 "If no callback is registered: the messages are sent to stderr.  You can "
38260 "override the printing of trace messages to stderr by setting up a callback."
38261 msgstr ""
38262
38263 #. type: =item
38264 #: ../src/guestfs.pod:1866
38265 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38266 msgstr ""
38267
38268 #. type: textblock
38269 #: ../src/guestfs.pod:1869
38270 msgid ""
38271 "The callback function is called whenever a libguestfs function is entered."
38272 msgstr ""
38273
38274 #. type: textblock
38275 #: ../src/guestfs.pod:1872
38276 msgid ""
38277 "The payload is a string which contains the name of the function that we are "
38278 "entering (not including C<guestfs_> prefix)."
38279 msgstr ""
38280
38281 #. type: textblock
38282 #: ../src/guestfs.pod:1875
38283 msgid ""
38284 "Note that libguestfs functions can call themselves, so you may see many "
38285 "events from a single call.  A few libguestfs functions do not generate this "
38286 "event."
38287 msgstr ""
38288
38289 #. type: =head3
38290 #: ../src/guestfs.pod:1883
38291 msgid "guestfs_set_event_callback"
38292 msgstr ""
38293
38294 #. type: verbatim
38295 #: ../src/guestfs.pod:1885
38296 #, no-wrap
38297 msgid ""
38298 " int guestfs_set_event_callback (guestfs_h *g,\n"
38299 "                                 guestfs_event_callback cb,\n"
38300 "                                 uint64_t event_bitmask,\n"
38301 "                                 int flags,\n"
38302 "                                 void *opaque);\n"
38303 "\n"
38304 msgstr ""
38305
38306 #. type: textblock
38307 #: ../src/guestfs.pod:1891
38308 msgid ""
38309 "This function registers a callback (C<cb>) for all event classes in the "
38310 "C<event_bitmask>."
38311 msgstr ""
38312
38313 #. type: textblock
38314 #: ../src/guestfs.pod:1894
38315 msgid ""
38316 "For example, to register for all log message events, you could call this "
38317 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
38318 "To register a single callback for all possible classes of events, use "
38319 "C<GUESTFS_EVENT_ALL>."
38320 msgstr ""
38321
38322 #. type: textblock
38323 #: ../src/guestfs.pod:1900
38324 msgid "C<flags> should always be passed as 0."
38325 msgstr ""
38326
38327 #. type: textblock
38328 #: ../src/guestfs.pod:1902
38329 msgid ""
38330 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
38331 "it for any purpose."
38332 msgstr ""
38333
38334 #. type: textblock
38335 #: ../src/guestfs.pod:1905
38336 msgid ""
38337 "The return value is the event handle (an integer) which you can use to "
38338 "delete the callback (see below)."
38339 msgstr ""
38340
38341 #. type: textblock
38342 #: ../src/guestfs.pod:1908
38343 msgid ""
38344 "If there is an error, this function returns C<-1>, and sets the error in the "
38345 "handle in the usual way (see L</guestfs_last_error> etc.)"
38346 msgstr ""
38347
38348 #. type: textblock
38349 #: ../src/guestfs.pod:1911
38350 msgid ""
38351 "Callbacks remain in effect until they are deleted, or until the handle is "
38352 "closed."
38353 msgstr ""
38354
38355 #. type: textblock
38356 #: ../src/guestfs.pod:1914
38357 msgid ""
38358 "In the case where multiple callbacks are registered for a particular event "
38359 "class, all of the callbacks are called.  The order in which multiple "
38360 "callbacks are called is not defined."
38361 msgstr ""
38362
38363 #. type: =head3
38364 #: ../src/guestfs.pod:1918
38365 msgid "guestfs_delete_event_callback"
38366 msgstr ""
38367
38368 #. type: verbatim
38369 #: ../src/guestfs.pod:1920
38370 #, no-wrap
38371 msgid ""
38372 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
38373 "\n"
38374 msgstr ""
38375
38376 #. type: textblock
38377 #: ../src/guestfs.pod:1922
38378 msgid ""
38379 "Delete a callback that was previously registered.  C<event_handle> should be "
38380 "the integer that was returned by a previous call to "
38381 "C<guestfs_set_event_callback> on the same handle."
38382 msgstr ""
38383
38384 #. type: =head3
38385 #: ../src/guestfs.pod:1926
38386 msgid "guestfs_event_callback"
38387 msgstr ""
38388
38389 #. type: verbatim
38390 #: ../src/guestfs.pod:1928
38391 #, no-wrap
38392 msgid ""
38393 " typedef void (*guestfs_event_callback) (\n"
38394 "                  guestfs_h *g,\n"
38395 "                  void *opaque,\n"
38396 "                  uint64_t event,\n"
38397 "                  int event_handle,\n"
38398 "                  int flags,\n"
38399 "                  const char *buf, size_t buf_len,\n"
38400 "                  const uint64_t *array, size_t array_len);\n"
38401 "\n"
38402 msgstr ""
38403
38404 #. type: textblock
38405 #: ../src/guestfs.pod:1937
38406 msgid ""
38407 "This is the type of the event callback function that you have to provide."
38408 msgstr ""
38409
38410 #. type: textblock
38411 #: ../src/guestfs.pod:1940
38412 msgid ""
38413 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38414 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38415 "handle, and C<flags> which in the current API you should ignore."
38416 msgstr ""
38417
38418 #. type: textblock
38419 #: ../src/guestfs.pod:1944
38420 msgid ""
38421 "The remaining parameters contain the event payload (if any).  Each event may "
38422 "contain a payload, which usually relates to the event class, but for future "
38423 "proofing your code should be written to handle any payload for any event "
38424 "class."
38425 msgstr ""
38426
38427 #. type: textblock
38428 #: ../src/guestfs.pod:1949
38429 msgid ""
38430 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38431 "there is no message buffer).  Note that this message buffer can contain "
38432 "arbitrary 8 bit data, including NUL bytes."
38433 msgstr ""
38434
38435 #. type: textblock
38436 #: ../src/guestfs.pod:1953
38437 msgid ""
38438 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
38439 "moment this is only used for progress messages."
38440 msgstr ""
38441
38442 #. type: =head3
38443 #: ../src/guestfs.pod:1956
38444 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38445 msgstr ""
38446
38447 #. type: textblock
38448 #: ../src/guestfs.pod:1958
38449 msgid ""
38450 "One motivation for the generic event API was to allow GUI programs to "
38451 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
38452 "unconditionally to C<stderr>."
38453 msgstr ""
38454
38455 #. type: textblock
38456 #: ../src/guestfs.pod:1962
38457 msgid ""
38458 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38459 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
38460 "messages are not events; you must capture error messages separately)."
38461 msgstr ""
38462
38463 #. type: textblock
38464 #: ../src/guestfs.pod:1967
38465 msgid ""
38466 "Programs have to set up a callback to capture the classes of events of "
38467 "interest:"
38468 msgstr ""
38469
38470 #. type: verbatim
38471 #: ../src/guestfs.pod:1970
38472 #, no-wrap
38473 msgid ""
38474 " int eh =\n"
38475 "   guestfs_set_event_callback\n"
38476 "     (g, message_callback,\n"
38477 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38478 "      GUESTFS_EVENT_TRACE,\n"
38479 "      0, NULL) == -1)\n"
38480 " if (eh == -1) {\n"
38481 "   // handle error in the usual way\n"
38482 " }\n"
38483 "\n"
38484 msgstr ""
38485
38486 #. type: textblock
38487 #: ../src/guestfs.pod:1980
38488 msgid ""
38489 "The callback can then direct messages to the appropriate place.  In this "
38490 "example, messages are directed to syslog:"
38491 msgstr ""
38492
38493 #. type: verbatim
38494 #: ../src/guestfs.pod:1983
38495 #, no-wrap
38496 msgid ""
38497 " static void\n"
38498 " message_callback (\n"
38499 "         guestfs_h *g,\n"
38500 "         void *opaque,\n"
38501 "         uint64_t event,\n"
38502 "         int event_handle,\n"
38503 "         int flags,\n"
38504 "         const char *buf, size_t buf_len,\n"
38505 "         const uint64_t *array, size_t array_len)\n"
38506 " {\n"
38507 "   const int priority = LOG_USER|LOG_INFO;\n"
38508 "   if (buf_len > 0)\n"
38509 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38510 " }\n"
38511 "\n"
38512 msgstr ""
38513
38514 #. type: =head1
38515 #: ../src/guestfs.pod:1998
38516 msgid "CANCELLING LONG TRANSFERS"
38517 msgstr ""
38518
38519 #. type: textblock
38520 #: ../src/guestfs.pod:2000
38521 msgid ""
38522 "Some operations can be cancelled by the caller while they are in progress.  "
38523 "Currently only operations that involve uploading or downloading data can be "
38524 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38525 "parameters in the generator)."
38526 msgstr ""
38527
38528 #. type: =head2
38529 #: ../src/guestfs.pod:2005
38530 msgid "guestfs_user_cancel"
38531 msgstr ""
38532
38533 #. type: verbatim
38534 #: ../src/guestfs.pod:2007
38535 #, no-wrap
38536 msgid ""
38537 " void guestfs_user_cancel (guestfs_h *g);\n"
38538 "\n"
38539 msgstr ""
38540
38541 #. type: textblock
38542 #: ../src/guestfs.pod:2009
38543 msgid ""
38544 "C<guestfs_user_cancel> cancels the current upload or download operation."
38545 msgstr ""
38546
38547 #. type: textblock
38548 #: ../src/guestfs.pod:2012
38549 msgid ""
38550 "Unlike most other libguestfs calls, this function is signal safe and thread "
38551 "safe.  You can call it from a signal handler or from another thread, without "
38552 "needing to do any locking."
38553 msgstr ""
38554
38555 #. type: textblock
38556 #: ../src/guestfs.pod:2016
38557 msgid ""
38558 "The transfer that was in progress (if there is one) will stop shortly "
38559 "afterwards, and will return an error.  The errno (see L</"
38560 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38561 "out if the operation was cancelled or failed because of another error."
38562 msgstr ""
38563
38564 #. type: textblock
38565 #: ../src/guestfs.pod:2022
38566 msgid ""
38567 "No cleanup is performed: for example, if a file was being uploaded then "
38568 "after cancellation there may be a partially uploaded file.  It is the "
38569 "caller's responsibility to clean up if necessary."
38570 msgstr ""
38571
38572 #. type: textblock
38573 #: ../src/guestfs.pod:2026
38574 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38575 msgstr ""
38576
38577 #. type: textblock
38578 #: ../src/guestfs.pod:2028
38579 msgid ""
38580 "In an interactive text-based program, you might call it from a C<SIGINT> "
38581 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38582 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38583 "receive the C<^C> signal)."
38584 msgstr ""
38585
38586 #. type: textblock
38587 #: ../src/guestfs.pod:2033
38588 msgid ""
38589 "In a graphical program, when the main thread is displaying a progress bar "
38590 "with a cancel button, wire up the cancel button to call this function."
38591 msgstr ""
38592
38593 #. type: =head1
38594 #: ../src/guestfs.pod:2037
38595 msgid "PRIVATE DATA AREA"
38596 msgstr ""
38597
38598 #. type: textblock
38599 #: ../src/guestfs.pod:2039
38600 msgid ""
38601 "You can attach named pieces of private data to the libguestfs handle, fetch "
38602 "them by name, and walk over them, for the lifetime of the handle.  This is "
38603 "called the private data area and is only available from the C API."
38604 msgstr ""
38605
38606 #. type: textblock
38607 #: ../src/guestfs.pod:2044
38608 msgid "To attach a named piece of data, use the following call:"
38609 msgstr ""
38610
38611 #. type: verbatim
38612 #: ../src/guestfs.pod:2046
38613 #, no-wrap
38614 msgid ""
38615 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38616 "\n"
38617 msgstr ""
38618 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38619 "\n"
38620
38621 #. type: textblock
38622 #: ../src/guestfs.pod:2048
38623 msgid ""
38624 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38625 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38626 "overwritten."
38627 msgstr ""
38628
38629 #. type: textblock
38630 #: ../src/guestfs.pod:2052
38631 msgid ""
38632 "You can use any C<key> you want, but your key should I<not> start with an "
38633 "underscore character.  Keys beginning with an underscore character are "
38634 "reserved for internal libguestfs purposes (eg. for implementing language "
38635 "bindings).  It is recommended that you prefix the key with some unique "
38636 "string to avoid collisions with other users."
38637 msgstr ""
38638
38639 #. type: textblock
38640 #: ../src/guestfs.pod:2058
38641 msgid "To retrieve the pointer, use:"
38642 msgstr ""
38643
38644 #. type: verbatim
38645 #: ../src/guestfs.pod:2060
38646 #, no-wrap
38647 msgid ""
38648 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38649 "\n"
38650 msgstr ""
38651 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38652 "\n"
38653
38654 #. type: textblock
38655 #: ../src/guestfs.pod:2062
38656 msgid ""
38657 "This function returns C<NULL> if either no data is found associated with "
38658 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38659 "C<NULL>."
38660 msgstr ""
38661
38662 #. type: textblock
38663 #: ../src/guestfs.pod:2066
38664 msgid ""
38665 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38666 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38667 "all.  In particular, libguestfs does I<not> try to free the data when the "
38668 "handle is closed.  If the data must be freed, then the caller must either "
38669 "free it before calling L</guestfs_close> or must set up a close callback to "
38670 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38671 msgstr ""
38672
38673 #. type: textblock
38674 #: ../src/guestfs.pod:2073
38675 msgid "To walk over all entries, use these two functions:"
38676 msgstr ""
38677
38678 #. type: verbatim
38679 #: ../src/guestfs.pod:2075
38680 #, no-wrap
38681 msgid ""
38682 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38683 "\n"
38684 msgstr ""
38685
38686 #. type: verbatim
38687 #: ../src/guestfs.pod:2077
38688 #, no-wrap
38689 msgid ""
38690 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38691 "\n"
38692 msgstr ""
38693
38694 #. type: textblock
38695 #: ../src/guestfs.pod:2079
38696 msgid ""
38697 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38698 "not have any particular meaning -- keys are not returned in any defined "
38699 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38700 "corresponding data pointer is returned from the function.  C<NULL> is "
38701 "returned if there are no keys stored in the handle."
38702 msgstr ""
38703
38704 #. type: textblock
38705 #: ../src/guestfs.pod:2085
38706 msgid ""
38707 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38708 "value of this function is also C<NULL> is there are no further entries to "
38709 "return."
38710 msgstr ""
38711
38712 #. type: textblock
38713 #: ../src/guestfs.pod:2089
38714 msgid "Notes about walking over entries:"
38715 msgstr ""
38716
38717 #. type: textblock
38718 #: ../src/guestfs.pod:2095
38719 msgid ""
38720 "You must not call C<guestfs_set_private> while walking over the entries."
38721 msgstr ""
38722
38723 #. type: textblock
38724 #: ../src/guestfs.pod:2100
38725 msgid ""
38726 "The handle maintains an internal iterator which is reset when you call "
38727 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38728 "call C<guestfs_set_private>."
38729 msgstr ""
38730
38731 #. type: textblock
38732 #: ../src/guestfs.pod:2106
38733 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38734 msgstr ""
38735
38736 #. type: verbatim
38737 #: ../src/guestfs.pod:2108
38738 #, no-wrap
38739 msgid ""
38740 " guestfs_set_private (g, key, NULL);\n"
38741 "\n"
38742 msgstr ""
38743
38744 #. type: textblock
38745 #: ../src/guestfs.pod:2110
38746 msgid "then that C<key> is not returned when walking."
38747 msgstr ""
38748
38749 #. type: textblock
38750 #: ../src/guestfs.pod:2114
38751 msgid ""
38752 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38753 "C<guestfs_next_private> or C<guestfs_set_private>."
38754 msgstr ""
38755
38756 #. type: textblock
38757 #: ../src/guestfs.pod:2120
38758 msgid ""
38759 "The following example code shows how to print all keys and data pointers "
38760 "that are associated with the handle C<g>:"
38761 msgstr ""
38762
38763 #. type: verbatim
38764 #: ../src/guestfs.pod:2123
38765 #, no-wrap
38766 msgid ""
38767 " const char *key;\n"
38768 " void *data = guestfs_first_private (g, &key);\n"
38769 " while (data != NULL)\n"
38770 "   {\n"
38771 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38772 "     data = guestfs_next_private (g, &key);\n"
38773 "   }\n"
38774 "\n"
38775 msgstr ""
38776
38777 #. type: textblock
38778 #: ../src/guestfs.pod:2131
38779 msgid ""
38780 "More commonly you are only interested in keys that begin with an application-"
38781 "specific prefix C<foo_>.  Modify the loop like so:"
38782 msgstr ""
38783
38784 #. type: verbatim
38785 #: ../src/guestfs.pod:2134
38786 #, no-wrap
38787 msgid ""
38788 " const char *key;\n"
38789 " void *data = guestfs_first_private (g, &key);\n"
38790 " while (data != NULL)\n"
38791 "   {\n"
38792 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38793 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38794 "     data = guestfs_next_private (g, &key);\n"
38795 "   }\n"
38796 "\n"
38797 msgstr ""
38798
38799 #. type: textblock
38800 #: ../src/guestfs.pod:2143
38801 msgid ""
38802 "If you need to modify keys while walking, then you have to jump back to the "
38803 "beginning of the loop.  For example, to delete all keys prefixed with "
38804 "C<foo_>:"
38805 msgstr ""
38806
38807 #. type: verbatim
38808 #: ../src/guestfs.pod:2147
38809 #, no-wrap
38810 msgid ""
38811 "  const char *key;\n"
38812 "  void *data;\n"
38813 " again:\n"
38814 "  data = guestfs_first_private (g, &key);\n"
38815 "  while (data != NULL)\n"
38816 "    {\n"
38817 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38818 "        {\n"
38819 "          guestfs_set_private (g, key, NULL);\n"
38820 "          /* note that 'key' pointer is now invalid, and so is\n"
38821 "             the internal iterator */\n"
38822 "          goto again;\n"
38823 "        }\n"
38824 "      data = guestfs_next_private (g, &key);\n"
38825 "    }\n"
38826 "\n"
38827 msgstr ""
38828
38829 #. type: textblock
38830 #: ../src/guestfs.pod:2163
38831 msgid ""
38832 "Note that the above loop is guaranteed to terminate because the keys are "
38833 "being deleted, but other manipulations of keys within the loop might not "
38834 "terminate unless you also maintain an indication of which keys have been "
38835 "visited."
38836 msgstr ""
38837
38838 #. type: =head1
38839 #: ../src/guestfs.pod:2168
38840 msgid "SYSTEMTAP"
38841 msgstr ""
38842
38843 #. type: textblock
38844 #: ../src/guestfs.pod:2170
38845 msgid ""
38846 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
38847 "true of any library, not just libguestfs.  However libguestfs also contains "
38848 "static markers to help in probing internal operations."
38849 msgstr ""
38850
38851 #. type: textblock
38852 #: ../src/guestfs.pod:2174
38853 msgid "You can list all the static markers by doing:"
38854 msgstr ""
38855
38856 #. type: verbatim
38857 #: ../src/guestfs.pod:2176
38858 #, no-wrap
38859 msgid ""
38860 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38861 "              .provider(\"guestfs\").mark(\"*\")'\n"
38862 "\n"
38863 msgstr ""
38864
38865 #. type: textblock
38866 #: ../src/guestfs.pod:2179
38867 msgid ""
38868 "B<Note:> These static markers are I<not> part of the stable API and may "
38869 "change in future versions."
38870 msgstr ""
38871
38872 #. type: =head2
38873 #: ../src/guestfs.pod:2182
38874 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38875 msgstr ""
38876
38877 #. type: textblock
38878 #: ../src/guestfs.pod:2184
38879 msgid ""
38880 "This script contains examples of displaying both the static markers and some "
38881 "ordinary C entry points:"
38882 msgstr ""
38883
38884 #. type: verbatim
38885 #: ../src/guestfs.pod:2187
38886 #, no-wrap
38887 msgid ""
38888 " global last;\n"
38889 " \n"
38890 msgstr ""
38891
38892 #. type: verbatim
38893 #: ../src/guestfs.pod:2189
38894 #, no-wrap
38895 msgid ""
38896 " function display_time () {\n"
38897 "       now = gettimeofday_us ();\n"
38898 "       delta = 0;\n"
38899 "       if (last > 0)\n"
38900 "             delta = now - last;\n"
38901 "       last = now;\n"
38902 " \n"
38903 msgstr ""
38904
38905 #. type: verbatim
38906 #: ../src/guestfs.pod:2196
38907 #, no-wrap
38908 msgid ""
38909 "       printf (\"%d (+%d):\", now, delta);\n"
38910 " }\n"
38911 " \n"
38912 msgstr ""
38913
38914 #. type: verbatim
38915 #: ../src/guestfs.pod:2199
38916 #, no-wrap
38917 msgid ""
38918 " probe begin {\n"
38919 "       last = 0;\n"
38920 "       printf (\"ready\\n\");\n"
38921 " }\n"
38922 " \n"
38923 msgstr ""
38924
38925 #. type: verbatim
38926 #: ../src/guestfs.pod:2204
38927 #, no-wrap
38928 msgid ""
38929 " /* Display all calls to static markers. */\n"
38930 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38931 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38932 "       display_time();\n"
38933 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38934 " }\n"
38935 " \n"
38936 msgstr ""
38937
38938 #. type: verbatim
38939 #: ../src/guestfs.pod:2211
38940 #, no-wrap
38941 msgid ""
38942 " /* Display all calls to guestfs_mkfs* functions. */\n"
38943 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38944 "           .function(\"guestfs_mkfs*\") ? {\n"
38945 "       display_time();\n"
38946 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38947 " }\n"
38948 "\n"
38949 msgstr ""
38950
38951 #. type: textblock
38952 #: ../src/guestfs.pod:2218
38953 msgid ""
38954 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38955 "program.  Note that you either have to be root, or you have to add yourself "
38956 "to several special stap groups.  Consult the systemtap documentation for "
38957 "more information."
38958 msgstr ""
38959
38960 #. type: verbatim
38961 #: ../src/guestfs.pod:2223
38962 #, no-wrap
38963 msgid ""
38964 " # stap /tmp/test.stap\n"
38965 " ready\n"
38966 "\n"
38967 msgstr ""
38968
38969 #. type: textblock
38970 #: ../src/guestfs.pod:2226
38971 msgid "In another terminal, run a guestfish command such as this:"
38972 msgstr ""
38973
38974 #. type: textblock
38975 #: ../src/guestfs.pod:2230
38976 msgid "In the first terminal, stap trace output similar to this is shown:"
38977 msgstr ""
38978
38979 #. type: verbatim
38980 #: ../src/guestfs.pod:2232
38981 #, no-wrap
38982 msgid ""
38983 " 1318248056692655 (+0):\tlaunch_start\n"
38984 " 1318248056692850 (+195):       launch_build_appliance_start\n"
38985 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
38986 " 1318248056838059 (+19774):     launch_run_qemu\n"
38987 " 1318248061071167 (+4233108):   launch_end\n"
38988 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
38989 "\n"
38990 msgstr ""
38991
38992 #. type: =end
38993 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
38994 msgid "html"
38995 msgstr "html"
38996
38997 #. type: textblock
38998 #: ../src/guestfs.pod:2241
38999 msgid ""
39000 "<!-- old anchor for the next section --> <a name="
39001 "\"state_machine_and_low_level_event_api\"/>"
39002 msgstr ""
39003 "<!-- old anchor for the next section --> <a name="
39004 "\"state_machine_and_low_level_event_api\"/>"
39005
39006 #. type: =head1
39007 #: ../src/guestfs.pod:2246
39008 msgid "ARCHITECTURE"
39009 msgstr "АРХІТЕКТУРА"
39010
39011 #. type: textblock
39012 #: ../src/guestfs.pod:2248
39013 msgid ""
39014 "Internally, libguestfs is implemented by running an appliance (a special "
39015 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
39016 "process of the main program."
39017 msgstr ""
39018
39019 #. type: verbatim
39020 #: ../src/guestfs.pod:2252
39021 #, no-wrap
39022 msgid ""
39023 "  ___________________\n"
39024 " /                   \\\n"
39025 " | main program      |\n"
39026 " |                   |\n"
39027 " |                   |           child process / appliance\n"
39028 " |                   |           __________________________\n"
39029 " |                   |          / qemu                     \\\n"
39030 " +-------------------+   RPC    |      +-----------------+ |\n"
39031 " | libguestfs     <--------------------> guestfsd        | |\n"
39032 " |                   |          |      +-----------------+ |\n"
39033 " \\___________________/          |      | Linux kernel    | |\n"
39034 "                                |      +--^--------------+ |\n"
39035 "                                \\_________|________________/\n"
39036 "                                          |\n"
39037 "                                   _______v______\n"
39038 "                                  /              \\\n"
39039 "                                  | Device or    |\n"
39040 "                                  | disk image   |\n"
39041 "                                  \\______________/\n"
39042 "\n"
39043 msgstr ""
39044
39045 #. type: textblock
39046 #: ../src/guestfs.pod:2272
39047 msgid ""
39048 "The library, linked to the main program, creates the child process and hence "
39049 "the appliance in the L</guestfs_launch> function."
39050 msgstr ""
39051
39052 #. type: textblock
39053 #: ../src/guestfs.pod:2275
39054 msgid ""
39055 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39056 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39057 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
39058 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
39059 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
39060 "attached to the qemu process which translates device access by the "
39061 "appliance's Linux kernel into accesses to the image."
39062 msgstr ""
39063
39064 #. type: textblock
39065 #: ../src/guestfs.pod:2284
39066 msgid ""
39067 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
39068 "Although the disk image you are attached to might also be used by some "
39069 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
39070 "care if both libguestfs's qemu process and your virtual machine are trying "
39071 "to update the disk image at the same time, since these usually results in "
39072 "massive disk corruption)."
39073 msgstr ""
39074
39075 #. type: =head1
39076 #: ../src/guestfs.pod:2291
39077 msgid "STATE MACHINE"
39078 msgstr "СКІНЧЕННИЙ АВТОМАТ"
39079
39080 #. type: textblock
39081 #: ../src/guestfs.pod:2293
39082 msgid "libguestfs uses a state machine to model the child process:"
39083 msgstr ""
39084
39085 #. type: verbatim
39086 #: ../src/guestfs.pod:2295
39087 #, no-wrap
39088 msgid ""
39089 "                         |\n"
39090 "                    guestfs_create\n"
39091 "                         |\n"
39092 "                         |\n"
39093 "                     ____V_____\n"
39094 "                    /          \\\n"
39095 "                    |  CONFIG  |\n"
39096 "                    \\__________/\n"
39097 "                     ^ ^   ^  \\\n"
39098 "                    /  |    \\  \\ guestfs_launch\n"
39099 "                   /   |    _\\__V______\n"
39100 "                  /    |   /           \\\n"
39101 "                 /     |   | LAUNCHING |\n"
39102 "                /      |   \\___________/\n"
39103 "               /       |       /\n"
39104 "              /        |  guestfs_launch\n"
39105 "             /         |     /\n"
39106 "    ______  /        __|____V\n"
39107 "   /      \\ ------> /        \\\n"
39108 "   | BUSY |         | READY  |\n"
39109 "   \\______/ <------ \\________/\n"
39110 "\n"
39111 msgstr ""
39112
39113 #. type: textblock
39114 #: ../src/guestfs.pod:2317
39115 msgid ""
39116 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39117 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39118 "(3) alternating between READY and BUSY as commands are issued to, and "
39119 "carried out by, the child process."
39120 msgstr ""
39121
39122 #. type: textblock
39123 #: ../src/guestfs.pod:2322
39124 msgid ""
39125 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39126 "asynchronously at any time (eg. due to some internal error), and that causes "
39127 "the state to transition back to CONFIG."
39128 msgstr ""
39129
39130 #. type: textblock
39131 #: ../src/guestfs.pod:2326
39132 msgid ""
39133 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39134 "issued when in the CONFIG state."
39135 msgstr ""
39136
39137 #. type: textblock
39138 #: ../src/guestfs.pod:2329
39139 msgid ""
39140 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
39141 "L</guestfs_launch> blocks until the child process is READY to accept "
39142 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
39143 "moves the state from CONFIG to LAUNCHING while it is running."
39144 msgstr ""
39145
39146 #. type: textblock
39147 #: ../src/guestfs.pod:2335
39148 msgid ""
39149 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39150 "state.  These API calls block waiting for the command to be carried out (ie. "
39151 "the state to transition to BUSY and then back to READY).  There are no non-"
39152 "blocking versions, and no way to issue more than one command per handle at "
39153 "the same time."
39154 msgstr ""
39155
39156 #. type: textblock
39157 #: ../src/guestfs.pod:2341
39158 msgid ""
39159 "Finally, the child process sends asynchronous messages back to the main "
39160 "program, such as kernel log messages.  You can register a callback to "
39161 "receive these messages."
39162 msgstr ""
39163
39164 #. type: =head1
39165 #: ../src/guestfs.pod:2345
39166 msgid "INTERNALS"
39167 msgstr ""
39168
39169 #. type: =head2
39170 #: ../src/guestfs.pod:2347
39171 msgid "APPLIANCE BOOT PROCESS"
39172 msgstr ""
39173
39174 #. type: textblock
39175 #: ../src/guestfs.pod:2349
39176 msgid ""
39177 "This process has evolved and continues to evolve.  The description here "
39178 "corresponds only to the current version of libguestfs and is provided for "
39179 "information only."
39180 msgstr ""
39181
39182 #. type: textblock
39183 #: ../src/guestfs.pod:2353
39184 msgid ""
39185 "In order to follow the stages involved below, enable libguestfs debugging "
39186 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39187 msgstr ""
39188
39189 #. type: =item
39190 #: ../src/guestfs.pod:2358
39191 msgid "Create the appliance"
39192 msgstr ""
39193
39194 #. type: textblock
39195 #: ../src/guestfs.pod:2360
39196 msgid ""
39197 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39198 "initrd and the appliance."
39199 msgstr ""
39200
39201 #. type: textblock
39202 #: ../src/guestfs.pod:2363
39203 msgid ""
39204 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39205 "directory if C<TMPDIR> is set)."
39206 msgstr ""
39207
39208 #. type: textblock
39209 #: ../src/guestfs.pod:2366
39210 msgid ""
39211 "For a complete description of how the appliance is created and cached, read "
39212 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39213 msgstr ""
39214
39215 #. type: =item
39216 #: ../src/guestfs.pod:2370
39217 msgid "Start qemu and boot the kernel"
39218 msgstr ""
39219
39220 #. type: textblock
39221 #: ../src/guestfs.pod:2372
39222 msgid "qemu is invoked to boot the kernel."
39223 msgstr ""
39224
39225 #. type: =item
39226 #: ../src/guestfs.pod:2374
39227 msgid "Run the initrd"
39228 msgstr ""
39229
39230 #. type: textblock
39231 #: ../src/guestfs.pod:2376
39232 msgid ""
39233 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
39234 "appliance.  The purpose of the initrd is to load enough kernel modules in "
39235 "order that the appliance itself can be mounted and started."
39236 msgstr ""
39237
39238 #. type: textblock
39239 #: ../src/guestfs.pod:2380
39240 msgid ""
39241 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
39242 "initrd>."
39243 msgstr ""
39244
39245 #. type: textblock
39246 #: ../src/guestfs.pod:2383
39247 msgid ""
39248 "When the initrd has started you will see messages showing that kernel "
39249 "modules are being loaded, similar to this:"
39250 msgstr ""
39251
39252 #. type: verbatim
39253 #: ../src/guestfs.pod:2386
39254 #, no-wrap
39255 msgid ""
39256 " febootstrap: ext2 mini initrd starting up\n"
39257 " febootstrap: mounting /sys\n"
39258 " febootstrap: internal insmod libcrc32c.ko\n"
39259 " febootstrap: internal insmod crc32c-intel.ko\n"
39260 "\n"
39261 msgstr ""
39262
39263 #. type: =item
39264 #: ../src/guestfs.pod:2391
39265 msgid "Find and mount the appliance device"
39266 msgstr ""
39267
39268 #. type: textblock
39269 #: ../src/guestfs.pod:2393
39270 msgid ""
39271 "The appliance is a sparse file containing an ext2 filesystem which contains "
39272 "a familiar (although reduced in size) Linux operating system.  It would "
39273 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39274 msgstr ""
39275
39276 #. type: textblock
39277 #: ../src/guestfs.pod:2397
39278 msgid ""
39279 "The regular disks being inspected by libguestfs are the first devices "
39280 "exposed by qemu (eg. as C</dev/vda>)."
39281 msgstr ""
39282
39283 #. type: textblock
39284 #: ../src/guestfs.pod:2400
39285 msgid ""
39286 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39287 "there was only one regular disk)."
39288 msgstr ""
39289
39290 #. type: textblock
39291 #: ../src/guestfs.pod:2403
39292 msgid ""
39293 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39294 "and switch root into the appliance, and run C</init> from the appliance."
39295 msgstr ""
39296
39297 #. type: textblock
39298 #: ../src/guestfs.pod:2407
39299 msgid "If this works successfully you will see messages such as:"
39300 msgstr ""
39301
39302 #. type: verbatim
39303 #: ../src/guestfs.pod:2409
39304 #, no-wrap
39305 msgid ""
39306 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39307 " febootstrap: creating /dev/root as block special 252:16\n"
39308 " febootstrap: mounting new root on /root\n"
39309 " febootstrap: chroot\n"
39310 " Starting /init script ...\n"
39311 "\n"
39312 msgstr ""
39313
39314 #. type: textblock
39315 #: ../src/guestfs.pod:2415
39316 msgid ""
39317 "Note that C<Starting /init script ...> indicates that the appliance's init "
39318 "script is now running."
39319 msgstr ""
39320
39321 #. type: =item
39322 #: ../src/guestfs.pod:2418
39323 msgid "Initialize the appliance"
39324 msgstr ""
39325
39326 #. type: textblock
39327 #: ../src/guestfs.pod:2420
39328 msgid ""
39329 "The appliance itself now initializes itself.  This involves starting certain "
39330 "processes like C<udev>, possibly printing some debug information, and "
39331 "finally running the daemon (C<guestfsd>)."
39332 msgstr ""
39333
39334 #. type: =item
39335 #: ../src/guestfs.pod:2424
39336 msgid "The daemon"
39337 msgstr ""
39338
39339 #. type: textblock
39340 #: ../src/guestfs.pod:2426
39341 msgid ""
39342 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
39343 "should see:"
39344 msgstr ""
39345
39346 #. type: verbatim
39347 #: ../src/guestfs.pod:2429
39348 #, no-wrap
39349 msgid ""
39350 " verbose daemon enabled\n"
39351 "\n"
39352 msgstr ""
39353
39354 #. type: textblock
39355 #: ../src/guestfs.pod:2431
39356 msgid ""
39357 "The daemon expects to see a named virtio-serial port exposed by qemu and "
39358 "connected on the other end to the library."
39359 msgstr ""
39360
39361 #. type: textblock
39362 #: ../src/guestfs.pod:2434
39363 msgid ""
39364 "The daemon connects to this port (and hence to the library) and sends a four "
39365 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
39366 "protocol (see below)."
39367 msgstr ""
39368
39369 #. type: =head2
39370 #: ../src/guestfs.pod:2440
39371 msgid "COMMUNICATION PROTOCOL"
39372 msgstr ""
39373
39374 #. type: textblock
39375 #: ../src/guestfs.pod:2442
39376 msgid ""
39377 "Don't rely on using this protocol directly.  This section documents how it "
39378 "currently works, but it may change at any time."
39379 msgstr ""
39380
39381 #. type: textblock
39382 #: ../src/guestfs.pod:2445
39383 msgid ""
39384 "The protocol used to talk between the library and the daemon running inside "
39385 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
39386 "1014, RFC 1832, RFC 4506)."
39387 msgstr ""
39388
39389 #. type: textblock
39390 #: ../src/guestfs.pod:2449
39391 msgid ""
39392 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
39393 "this file is automatically generated)."
39394 msgstr ""
39395
39396 #. type: textblock
39397 #: ../src/guestfs.pod:2452
39398 msgid ""
39399 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
39400 "and C<FileOut> parameters, which are handled with very simple request/reply "
39401 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
39402 "parameters, which use the same request and reply messages, but they may also "
39403 "be followed by files sent using a chunked encoding."
39404 msgstr ""
39405
39406 #. type: =head3
39407 #: ../src/guestfs.pod:2459
39408 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39409 msgstr ""
39410
39411 #. type: textblock
39412 #: ../src/guestfs.pod:2461
39413 msgid "For ordinary functions, the request message is:"
39414 msgstr ""
39415
39416 #. type: verbatim
39417 #: ../src/guestfs.pod:2463
39418 #, no-wrap
39419 msgid ""
39420 " total length (header + arguments,\n"
39421 "      but not including the length word itself)\n"
39422 " struct guestfs_message_header (encoded as XDR)\n"
39423 " struct guestfs_<foo>_args (encoded as XDR)\n"
39424 "\n"
39425 msgstr ""
39426
39427 #. type: textblock
39428 #: ../src/guestfs.pod:2468
39429 msgid ""
39430 "The total length field allows the daemon to allocate a fixed size buffer "
39431 "into which it slurps the rest of the message.  As a result, the total length "
39432 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39433 "effective size of any request is limited to somewhere under this size."
39434 msgstr ""
39435
39436 #. type: textblock
39437 #: ../src/guestfs.pod:2474
39438 msgid ""
39439 "Note also that many functions don't take any arguments, in which case the "
39440 "C<guestfs_I<foo>_args> is completely omitted."
39441 msgstr ""
39442
39443 #. type: textblock
39444 #: ../src/guestfs.pod:2477
39445 msgid ""
39446 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39447 "receiver knows what type of args structure to expect, or none at all."
39448 msgstr ""
39449
39450 #. type: textblock
39451 #: ../src/guestfs.pod:2481
39452 msgid ""
39453 "For functions that take optional arguments, the optional arguments are "
39454 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39455 "arguments.  A bitmask in the header indicates which optional arguments are "
39456 "meaningful.  The bitmask is also checked to see if it contains bits set "
39457 "which the daemon does not know about (eg. if more optional arguments were "
39458 "added in a later version of the library), and this causes the call to be "
39459 "rejected."
39460 msgstr ""
39461
39462 #. type: textblock
39463 #: ../src/guestfs.pod:2489
39464 msgid "The reply message for ordinary functions is:"
39465 msgstr ""
39466
39467 #. type: verbatim
39468 #: ../src/guestfs.pod:2491
39469 #, no-wrap
39470 msgid ""
39471 " total length (header + ret,\n"
39472 "      but not including the length word itself)\n"
39473 " struct guestfs_message_header (encoded as XDR)\n"
39474 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39475 "\n"
39476 msgstr ""
39477
39478 #. type: textblock
39479 #: ../src/guestfs.pod:2496
39480 msgid ""
39481 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39482 "functions that return no formal return values."
39483 msgstr ""
39484
39485 #. type: textblock
39486 #: ../src/guestfs.pod:2499
39487 msgid ""
39488 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39489 msgstr ""
39490
39491 #. type: textblock
39492 #: ../src/guestfs.pod:2502
39493 msgid ""
39494 "In the case of an error, a flag is set in the header, and the reply message "
39495 "is slightly changed:"
39496 msgstr ""
39497
39498 #. type: verbatim
39499 #: ../src/guestfs.pod:2505
39500 #, no-wrap
39501 msgid ""
39502 " total length (header + error,\n"
39503 "      but not including the length word itself)\n"
39504 " struct guestfs_message_header (encoded as XDR)\n"
39505 " struct guestfs_message_error (encoded as XDR)\n"
39506 "\n"
39507 msgstr ""
39508
39509 #. type: textblock
39510 #: ../src/guestfs.pod:2510
39511 msgid ""
39512 "The C<guestfs_message_error> structure contains the error message as a "
39513 "string."
39514 msgstr ""
39515
39516 #. type: =head3
39517 #: ../src/guestfs.pod:2513
39518 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39519 msgstr ""
39520
39521 #. type: textblock
39522 #: ../src/guestfs.pod:2515
39523 msgid ""
39524 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
39525 "The normal request message is sent (see above).  However this is followed by "
39526 "a sequence of file chunks."
39527 msgstr ""
39528
39529 #. type: verbatim
39530 #: ../src/guestfs.pod:2519
39531 #, no-wrap
39532 msgid ""
39533 " total length (header + arguments,\n"
39534 "      but not including the length word itself,\n"
39535 "      and not including the chunks)\n"
39536 " struct guestfs_message_header (encoded as XDR)\n"
39537 " struct guestfs_<foo>_args (encoded as XDR)\n"
39538 " sequence of chunks for FileIn param #0\n"
39539 " sequence of chunks for FileIn param #1 etc.\n"
39540 "\n"
39541 msgstr ""
39542
39543 #. type: textblock
39544 #: ../src/guestfs.pod:2527
39545 msgid "The \"sequence of chunks\" is:"
39546 msgstr ""
39547
39548 #. type: verbatim
39549 #: ../src/guestfs.pod:2529
39550 #, no-wrap
39551 msgid ""
39552 " length of chunk (not including length word itself)\n"
39553 " struct guestfs_chunk (encoded as XDR)\n"
39554 " length of chunk\n"
39555 " struct guestfs_chunk (encoded as XDR)\n"
39556 "   ...\n"
39557 " length of chunk\n"
39558 " struct guestfs_chunk (with data.data_len == 0)\n"
39559 "\n"
39560 msgstr ""
39561
39562 #. type: textblock
39563 #: ../src/guestfs.pod:2537
39564 msgid ""
39565 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39566 "is set in the final chunk to indicate either successful completion or early "
39567 "cancellation."
39568 msgstr ""
39569
39570 #. type: textblock
39571 #: ../src/guestfs.pod:2541
39572 msgid ""
39573 "At time of writing there are no functions that have more than one FileIn "
39574 "parameter.  However this is (theoretically) supported, by sending the "
39575 "sequence of chunks for each FileIn parameter one after another (from left to "
39576 "right)."
39577 msgstr ""
39578
39579 #. type: textblock
39580 #: ../src/guestfs.pod:2546
39581 msgid ""
39582 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39583 "transfer.  The library does this by sending a chunk with a special flag set "
39584 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39585 "RPC, does I<not> send any reply, and goes back to reading the next request."
39586 msgstr ""
39587
39588 #. type: textblock
39589 #: ../src/guestfs.pod:2552
39590 msgid ""
39591 "The daemon may also cancel.  It does this by writing a special word "
39592 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39593 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39594 "cancel chunk).  The special word is chosen so that even if cancellation "
39595 "happens right at the end of the transfer (after the library has finished "
39596 "writing and has started listening for the reply), the \"spurious\" cancel "
39597 "flag will not be confused with the reply message."
39598 msgstr ""
39599
39600 #. type: textblock
39601 #: ../src/guestfs.pod:2561
39602 msgid ""
39603 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39604 "limit), and also files where the size is not known in advance (eg. from "
39605 "pipes or sockets).  However the chunks are rather small "
39606 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39607 "to keep much in memory."
39608 msgstr ""
39609
39610 #. type: =head3
39611 #: ../src/guestfs.pod:2567
39612 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39613 msgstr ""
39614
39615 #. type: textblock
39616 #: ../src/guestfs.pod:2569
39617 msgid ""
39618 "The protocol for FileOut parameters is exactly the same as for FileIn "
39619 "parameters, but with the roles of daemon and library reversed."
39620 msgstr ""
39621
39622 #. type: verbatim
39623 #: ../src/guestfs.pod:2572
39624 #, no-wrap
39625 msgid ""
39626 " total length (header + ret,\n"
39627 "      but not including the length word itself,\n"
39628 "      and not including the chunks)\n"
39629 " struct guestfs_message_header (encoded as XDR)\n"
39630 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39631 " sequence of chunks for FileOut param #0\n"
39632 " sequence of chunks for FileOut param #1 etc.\n"
39633 "\n"
39634 msgstr ""
39635
39636 #. type: =head3
39637 #: ../src/guestfs.pod:2580
39638 msgid "INITIAL MESSAGE"
39639 msgstr ""
39640
39641 #. type: textblock
39642 #: ../src/guestfs.pod:2582
39643 msgid ""
39644 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39645 "which indicates that the guest and daemon is alive.  This is what L</"
39646 "guestfs_launch> waits for."
39647 msgstr ""
39648
39649 #. type: =head3
39650 #: ../src/guestfs.pod:2586
39651 msgid "PROGRESS NOTIFICATION MESSAGES"
39652 msgstr ""
39653
39654 #. type: textblock
39655 #: ../src/guestfs.pod:2588
39656 msgid ""
39657 "The daemon may send progress notification messages at any time.  These are "
39658 "distinguished by the normal length word being replaced by "
39659 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39660 msgstr ""
39661
39662 #. type: textblock
39663 #: ../src/guestfs.pod:2592
39664 msgid ""
39665 "The library turns them into progress callbacks (see L</"
39666 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
39667 "if not."
39668 msgstr ""
39669
39670 #. type: textblock
39671 #: ../src/guestfs.pod:2596
39672 msgid ""
39673 "The daemon self-limits the frequency of progress messages it sends (see "
39674 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39675 "messages."
39676 msgstr ""
39677
39678 #. type: =head1
39679 #: ../src/guestfs.pod:2600
39680 msgid "LIBGUESTFS VERSION NUMBERS"
39681 msgstr ""
39682
39683 #. type: textblock
39684 #: ../src/guestfs.pod:2602
39685 msgid ""
39686 "Since April 2010, libguestfs has started to make separate development and "
39687 "stable releases, along with corresponding branches in our git repository.  "
39688 "These separate releases can be identified by version number:"
39689 msgstr ""
39690
39691 #. type: verbatim
39692 #: ../src/guestfs.pod:2607
39693 #, no-wrap
39694 msgid ""
39695 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39696 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39697 "       |\n"
39698 "       v\n"
39699 " 1  .  3  .  5\n"
39700 " ^           ^\n"
39701 " |           |\n"
39702 " |           `-------- sub-version\n"
39703 " |\n"
39704 " `------ always '1' because we don't change the ABI\n"
39705 "\n"
39706 msgstr ""
39707
39708 #. type: textblock
39709 #: ../src/guestfs.pod:2618
39710 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39711 msgstr ""
39712
39713 #. type: textblock
39714 #: ../src/guestfs.pod:2620
39715 msgid ""
39716 "As time passes we cherry pick fixes from the development branch and backport "
39717 "those into the stable branch, the effect being that the stable branch should "
39718 "get more stable and less buggy over time.  So the stable releases are ideal "
39719 "for people who don't need new features but would just like the software to "
39720 "work."
39721 msgstr ""
39722
39723 #. type: textblock
39724 #: ../src/guestfs.pod:2626
39725 msgid "Our criteria for backporting changes are:"
39726 msgstr ""
39727
39728 #. type: textblock
39729 #: ../src/guestfs.pod:2632
39730 msgid ""
39731 "Documentation changes which don't affect any code are backported unless the "
39732 "documentation refers to a future feature which is not in stable."
39733 msgstr ""
39734
39735 #. type: textblock
39736 #: ../src/guestfs.pod:2638
39737 msgid ""
39738 "Bug fixes which are not controversial, fix obvious problems, and have been "
39739 "well tested are backported."
39740 msgstr ""
39741
39742 #. type: textblock
39743 #: ../src/guestfs.pod:2643
39744 msgid ""
39745 "Simple rearrangements of code which shouldn't affect how it works get "
39746 "backported.  This is so that the code in the two branches doesn't get too "
39747 "far out of step, allowing us to backport future fixes more easily."
39748 msgstr ""
39749
39750 #. type: textblock
39751 #: ../src/guestfs.pod:2649
39752 msgid ""
39753 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39754 "exceptional case: the new feature is required in order to implement an "
39755 "important bug fix."
39756 msgstr ""
39757
39758 #. type: textblock
39759 #: ../src/guestfs.pod:2655
39760 msgid ""
39761 "A new stable branch starts when we think the new features in development are "
39762 "substantial and compelling enough over the current stable branch to warrant "
39763 "it.  When that happens we create new stable and development versions 1.N.0 "
39764 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39765 "stable at this point, but by backporting fixes from development, that branch "
39766 "will stabilize over time."
39767 msgstr ""
39768
39769 #. type: =head1
39770 #: ../src/guestfs.pod:2663
39771 msgid "EXTENDING LIBGUESTFS"
39772 msgstr ""
39773
39774 #. type: =head2
39775 #: ../src/guestfs.pod:2665
39776 msgid "ADDING A NEW API ACTION"
39777 msgstr ""
39778
39779 #. type: textblock
39780 #: ../src/guestfs.pod:2667
39781 msgid ""
39782 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39783 "documentation) are generated, and this makes it easy to extend the "
39784 "libguestfs API."
39785 msgstr ""
39786
39787 #. type: textblock
39788 #: ../src/guestfs.pod:2671
39789 msgid "To add a new API action there are two changes:"
39790 msgstr ""
39791
39792 #. type: textblock
39793 #: ../src/guestfs.pod:2677
39794 msgid ""
39795 "You need to add a description of the call (name, parameters, return type, "
39796 "tests, documentation) to C<generator/generator_actions.ml>."
39797 msgstr ""
39798
39799 #. type: textblock
39800 #: ../src/guestfs.pod:2680
39801 msgid ""
39802 "There are two sorts of API action, depending on whether the call goes "
39803 "through to the daemon in the appliance, or is serviced entirely by the "
39804 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39805 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39806 "an example of the latter, since a trace flag is maintained in the handle and "
39807 "all tracing is done on the library side."
39808 msgstr ""
39809
39810 #. type: textblock
39811 #: ../src/guestfs.pod:2688
39812 msgid ""
39813 "Most new actions are of the first type, and get added to the "
39814 "C<daemon_functions> list.  Each function has a unique procedure number used "
39815 "in the RPC protocol which is assigned to that action when we publish "
39816 "libguestfs and cannot be reused.  Take the latest procedure number and "
39817 "increment it."
39818 msgstr ""
39819
39820 #. type: textblock
39821 #: ../src/guestfs.pod:2694
39822 msgid ""
39823 "For library-only actions of the second type, add to the "
39824 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39825 "library and do not travel over the RPC mechanism to the daemon, these "
39826 "functions do not need a procedure number, and so the procedure number is set "
39827 "to C<-1>."
39828 msgstr ""
39829
39830 #. type: textblock
39831 #: ../src/guestfs.pod:2702
39832 msgid "Implement the action (in C):"
39833 msgstr ""
39834
39835 #. type: textblock
39836 #: ../src/guestfs.pod:2704
39837 msgid ""
39838 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39839 "C<daemon/> directory."
39840 msgstr ""
39841
39842 #. type: textblock
39843 #: ../src/guestfs.pod:2707
39844 msgid ""
39845 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39846 "(note: double underscore) in the C<src/> directory."
39847 msgstr ""
39848
39849 #. type: textblock
39850 #: ../src/guestfs.pod:2710
39851 msgid "In either case, use another function as an example of what to do."
39852 msgstr ""
39853
39854 #. type: textblock
39855 #: ../src/guestfs.pod:2714
39856 msgid "After making these changes, use C<make> to compile."
39857 msgstr ""
39858
39859 #. type: textblock
39860 #: ../src/guestfs.pod:2716
39861 msgid ""
39862 "Note that you don't need to implement the RPC, language bindings, manual "
39863 "pages or anything else.  It's all automatically generated from the OCaml "
39864 "description."
39865 msgstr ""
39866
39867 #. type: =head2
39868 #: ../src/guestfs.pod:2720
39869 msgid "ADDING TESTS FOR AN API ACTION"
39870 msgstr ""
39871
39872 #. type: textblock
39873 #: ../src/guestfs.pod:2722
39874 msgid ""
39875 "You can supply zero or as many tests as you want per API call.  The tests "
39876 "can either be added as part of the API description (C<generator/"
39877 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
39878 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
39879 "slower, so if possible use the first method."
39880 msgstr ""
39881
39882 #. type: textblock
39883 #: ../src/guestfs.pod:2728
39884 msgid ""
39885 "The following describes the test environment used when you add an API test "
39886 "in C<generator_actions.ml>."
39887 msgstr ""
39888
39889 #. type: textblock
39890 #: ../src/guestfs.pod:2731
39891 msgid "The test environment has 4 block devices:"
39892 msgstr ""
39893
39894 #. type: =item
39895 #: ../src/guestfs.pod:2735
39896 msgid "C</dev/sda> 500MB"
39897 msgstr "C</dev/sda> 500 МБ"
39898
39899 #. type: textblock
39900 #: ../src/guestfs.pod:2737
39901 msgid "General block device for testing."
39902 msgstr ""
39903
39904 #. type: =item
39905 #: ../src/guestfs.pod:2739
39906 msgid "C</dev/sdb> 50MB"
39907 msgstr "C</dev/sdb> 50 МБ"
39908
39909 #. type: textblock
39910 #: ../src/guestfs.pod:2741
39911 msgid ""
39912 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39913 "operations."
39914 msgstr ""
39915
39916 #. type: =item
39917 #: ../src/guestfs.pod:2744
39918 msgid "C</dev/sdc> 10MB"
39919 msgstr "C</dev/sdc> 10 МБ"
39920
39921 #. type: textblock
39922 #: ../src/guestfs.pod:2746
39923 msgid "Used in a few tests where two block devices are needed."
39924 msgstr ""
39925
39926 #. type: =item
39927 #: ../src/guestfs.pod:2748
39928 msgid "C</dev/sdd>"
39929 msgstr "C</dev/sdd>"
39930
39931 #. type: textblock
39932 #: ../src/guestfs.pod:2750
39933 msgid "ISO with fixed content (see C<images/test.iso>)."
39934 msgstr ""
39935
39936 #. type: textblock
39937 #: ../src/guestfs.pod:2754
39938 msgid ""
39939 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39940 "appliance and block devices are reused between tests.  So don't try testing "
39941 "L</guestfs_kill_subprocess> :-x"
39942 msgstr ""
39943
39944 #. type: textblock
39945 #: ../src/guestfs.pod:2758
39946 msgid ""
39947 "Each test starts with an initial scenario, selected using one of the "
39948 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39949 "initialize the disks mentioned above in a particular way as documented in "
39950 "C<generator_types.ml>.  You should not assume anything about the previous "
39951 "contents of other disks that are not initialized."
39952 msgstr ""
39953
39954 #. type: textblock
39955 #: ../src/guestfs.pod:2764
39956 msgid ""
39957 "You can add a prerequisite clause to any individual test.  This is a run-"
39958 "time check, which, if it fails, causes the test to be skipped.  Useful if "
39959 "testing a command which might not work on all variations of libguestfs "
39960 "builds.  A test that has prerequisite of C<Always> means to run "
39961 "unconditionally."
39962 msgstr ""
39963
39964 #. type: textblock
39965 #: ../src/guestfs.pod:2770
39966 msgid ""
39967 "In addition, packagers can skip individual tests by setting environment "
39968 "variables before running C<make check>."
39969 msgstr ""
39970
39971 #. type: verbatim
39972 #: ../src/guestfs.pod:2773
39973 #, no-wrap
39974 msgid ""
39975 " SKIP_TEST_<CMD>_<NUM>=1\n"
39976 "\n"
39977 msgstr ""
39978
39979 #. type: textblock
39980 #: ../src/guestfs.pod:2775
39981 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39982 msgstr ""
39983
39984 #. type: textblock
39985 #: ../src/guestfs.pod:2777
39986 msgid "or:"
39987 msgstr "або:"
39988
39989 #. type: verbatim
39990 #: ../src/guestfs.pod:2779
39991 #, no-wrap
39992 msgid ""
39993 " SKIP_TEST_<CMD>=1\n"
39994 "\n"
39995 msgstr ""
39996
39997 #. type: textblock
39998 #: ../src/guestfs.pod:2781
39999 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40000 msgstr ""
40001
40002 #. type: textblock
40003 #: ../src/guestfs.pod:2783
40004 msgid "Packagers can run only certain tests by setting for example:"
40005 msgstr ""
40006
40007 #. type: verbatim
40008 #: ../src/guestfs.pod:2785
40009 #, no-wrap
40010 msgid ""
40011 " TEST_ONLY=\"vfs_type zerofree\"\n"
40012 "\n"
40013 msgstr ""
40014
40015 #. type: textblock
40016 #: ../src/guestfs.pod:2787
40017 msgid ""
40018 "See C<capitests/tests.c> for more details of how these environment variables "
40019 "work."
40020 msgstr ""
40021
40022 #. type: =head2
40023 #: ../src/guestfs.pod:2790
40024 msgid "DEBUGGING NEW API ACTIONS"
40025 msgstr ""
40026
40027 #. type: textblock
40028 #: ../src/guestfs.pod:2792
40029 msgid "Test new actions work before submitting them."
40030 msgstr ""
40031
40032 #. type: textblock
40033 #: ../src/guestfs.pod:2794
40034 msgid "You can use guestfish to try out new commands."
40035 msgstr ""
40036
40037 #. type: textblock
40038 #: ../src/guestfs.pod:2796
40039 msgid ""
40040 "Debugging the daemon is a problem because it runs inside a minimal "
40041 "environment.  However you can fprintf messages in the daemon to stderr, and "
40042 "they will show up if you use C<guestfish -v>."
40043 msgstr ""
40044
40045 #. type: =head2
40046 #: ../src/guestfs.pod:2800
40047 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40048 msgstr ""
40049
40050 #. type: textblock
40051 #: ../src/guestfs.pod:2802
40052 msgid ""
40053 "Our C source code generally adheres to some basic code-formatting "
40054 "conventions.  The existing code base is not totally consistent on this "
40055 "front, but we do prefer that contributed code be formatted similarly.  In "
40056 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40057 "indentation level, and other than that, follow the K&R style."
40058 msgstr ""
40059
40060 #. type: textblock
40061 #: ../src/guestfs.pod:2808
40062 msgid ""
40063 "If you use Emacs, add the following to one of one of your start-up files (e."
40064 "g., ~/.emacs), to help ensure that you get indentation right:"
40065 msgstr ""
40066
40067 #. type: verbatim
40068 #: ../src/guestfs.pod:2811
40069 #, no-wrap
40070 msgid ""
40071 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40072 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40073 " (add-hook 'find-file-hook\n"
40074 "     '(lambda () (if (and buffer-file-name\n"
40075 "                          (string-match \"/libguestfs\\\\>\"\n"
40076 "                              (buffer-file-name))\n"
40077 "                          (not (string-equal mode-name \"Change Log\"))\n"
40078 "                          (not (string-equal mode-name \"Makefile\")))\n"
40079 "                     (setq indent-tabs-mode nil))))\n"
40080 " \n"
40081 msgstr ""
40082
40083 #. type: verbatim
40084 #: ../src/guestfs.pod:2821
40085 #, no-wrap
40086 msgid ""
40087 " ;;; When editing C sources in libguestfs, use this style.\n"
40088 " (defun libguestfs-c-mode ()\n"
40089 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
40090 "   (interactive)\n"
40091 "   (c-set-style \"K&R\")\n"
40092 "   (setq c-indent-level 2)\n"
40093 "   (setq c-basic-offset 2))\n"
40094 " (add-hook 'c-mode-hook\n"
40095 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40096 "                               (buffer-file-name))\n"
40097 "                           (libguestfs-c-mode))))\n"
40098 "\n"
40099 msgstr ""
40100
40101 #. type: textblock
40102 #: ../src/guestfs.pod:2833
40103 msgid "Enable warnings when compiling (and fix any problems this finds):"
40104 msgstr ""
40105
40106 #. type: verbatim
40107 #: ../src/guestfs.pod:2836
40108 #, no-wrap
40109 msgid ""
40110 " ./configure --enable-gcc-warnings\n"
40111 "\n"
40112 msgstr ""
40113 " ./configure --enable-gcc-warnings\n"
40114 "\n"
40115
40116 #. type: textblock
40117 #: ../src/guestfs.pod:2838
40118 msgid "Useful targets are:"
40119 msgstr ""
40120
40121 #. type: verbatim
40122 #: ../src/guestfs.pod:2840
40123 #, no-wrap
40124 msgid ""
40125 " make syntax-check  # checks the syntax of the C code\n"
40126 " make check         # runs the test suite\n"
40127 "\n"
40128 msgstr ""
40129
40130 #. type: =head2
40131 #: ../src/guestfs.pod:2843
40132 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40133 msgstr ""
40134
40135 #. type: textblock
40136 #: ../src/guestfs.pod:2845
40137 msgid ""
40138 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40139 "which are used to do shell quoting."
40140 msgstr ""
40141
40142 #. type: =item
40143 #: ../src/guestfs.pod:2850
40144 msgid "%Q"
40145 msgstr "%Q"
40146
40147 #. type: textblock
40148 #: ../src/guestfs.pod:2852
40149 msgid ""
40150 "Simple shell quoted string.  Any spaces or other shell characters are "
40151 "escaped for you."
40152 msgstr ""
40153
40154 #. type: =item
40155 #: ../src/guestfs.pod:2855
40156 msgid "%R"
40157 msgstr "%R"
40158
40159 #. type: textblock
40160 #: ../src/guestfs.pod:2857
40161 msgid ""
40162 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40163 "the sysroot."
40164 msgstr ""
40165
40166 #. type: verbatim
40167 #: ../src/guestfs.pod:2864
40168 #, no-wrap
40169 msgid ""
40170 " asprintf (&cmd, \"cat %R\", path);\n"
40171 "\n"
40172 msgstr ""
40173 " asprintf (&cmd, \"cat %R\", path);\n"
40174 "\n"
40175
40176 #. type: textblock
40177 #: ../src/guestfs.pod:2866
40178 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40179 msgstr ""
40180
40181 #. type: textblock
40182 #: ../src/guestfs.pod:2868
40183 msgid ""
40184 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
40185 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
40186 "they are not passed via the shell (instead, straight to exec).  You probably "
40187 "want to use the C<sysroot_path()> function however."
40188 msgstr ""
40189
40190 #. type: =head2
40191 #: ../src/guestfs.pod:2874
40192 msgid "SUBMITTING YOUR NEW API ACTIONS"
40193 msgstr ""
40194
40195 #. type: textblock
40196 #: ../src/guestfs.pod:2876
40197 msgid ""
40198 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
40199 "libguestfs> and CC to L<rjones@redhat.com>."
40200 msgstr ""
40201
40202 #. type: =head2
40203 #: ../src/guestfs.pod:2880
40204 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40205 msgstr ""
40206
40207 #. type: textblock
40208 #: ../src/guestfs.pod:2882
40209 msgid "We support i18n (gettext anyhow) in the library."
40210 msgstr ""
40211
40212 #. type: textblock
40213 #: ../src/guestfs.pod:2884
40214 msgid ""
40215 "However many messages come from the daemon, and we don't translate those at "
40216 "the moment.  One reason is that the appliance generally has all locale files "
40217 "removed from it, because they take up a lot of space.  So we'd have to readd "
40218 "some of those, as well as copying our PO files into the appliance."
40219 msgstr ""
40220
40221 #. type: textblock
40222 #: ../src/guestfs.pod:2890
40223 msgid ""
40224 "Debugging messages are never translated, since they are intended for the "
40225 "programmers."
40226 msgstr ""
40227
40228 #. type: =head2
40229 #: ../src/guestfs.pod:2893
40230 msgid "SOURCE CODE SUBDIRECTORIES"
40231 msgstr ""
40232
40233 #. type: =item
40234 #: ../src/guestfs.pod:2897
40235 msgid "C<align>"
40236 msgstr ""
40237
40238 #. type: textblock
40239 #: ../src/guestfs.pod:2899
40240 msgid "L<virt-alignment-scan(1)> command and documentation."
40241 msgstr ""
40242
40243 #. type: textblock
40244 #: ../src/guestfs.pod:2903
40245 msgid "The libguestfs appliance, build scripts and so on."
40246 msgstr ""
40247
40248 #. type: =item
40249 #: ../src/guestfs.pod:2905
40250 msgid "C<capitests>"
40251 msgstr "C<capitests>"
40252
40253 #. type: textblock
40254 #: ../src/guestfs.pod:2907
40255 msgid "Automated tests of the C API."
40256 msgstr ""
40257
40258 #. type: =item
40259 #: ../src/guestfs.pod:2909
40260 msgid "C<cat>"
40261 msgstr "C<cat>"
40262
40263 #. type: textblock
40264 #: ../src/guestfs.pod:2911
40265 msgid ""
40266 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40267 "documentation."
40268 msgstr ""
40269
40270 #. type: =item
40271 #: ../src/guestfs.pod:2914
40272 msgid "C<caution>"
40273 msgstr "C<caution>"
40274
40275 #. type: textblock
40276 #: ../src/guestfs.pod:2916
40277 msgid ""
40278 "Safety and liveness tests of components that libguestfs depends upon (not of "
40279 "libguestfs itself).  Mainly this is for qemu and the kernel."
40280 msgstr ""
40281
40282 #. type: =item
40283 #: ../src/guestfs.pod:2919
40284 msgid "C<clone>"
40285 msgstr ""
40286
40287 #. type: textblock
40288 #: ../src/guestfs.pod:2921
40289 msgid ""
40290 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
40291 "command and documentation."
40292 msgstr ""
40293
40294 #. type: =item
40295 #: ../src/guestfs.pod:2924
40296 msgid "C<contrib>"
40297 msgstr "C<contrib>"
40298
40299 #. type: textblock
40300 #: ../src/guestfs.pod:2926
40301 msgid "Outside contributions, experimental parts."
40302 msgstr ""
40303
40304 #. type: =item
40305 #: ../src/guestfs.pod:2928
40306 msgid "C<daemon>"
40307 msgstr "C<daemon>"
40308
40309 #. type: textblock
40310 #: ../src/guestfs.pod:2930
40311 msgid ""
40312 "The daemon that runs inside the libguestfs appliance and carries out actions."
40313 msgstr ""
40314
40315 #. type: =item
40316 #: ../src/guestfs.pod:2933
40317 msgid "C<df>"
40318 msgstr "C<df>"
40319
40320 #. type: textblock
40321 #: ../src/guestfs.pod:2935
40322 msgid "L<virt-df(1)> command and documentation."
40323 msgstr ""
40324
40325 #. type: =item
40326 #: ../src/guestfs.pod:2937
40327 msgid "C<edit>"
40328 msgstr "C<edit>"
40329
40330 #. type: textblock
40331 #: ../src/guestfs.pod:2939
40332 msgid "L<virt-edit(1)> command and documentation."
40333 msgstr ""
40334
40335 #. type: =item
40336 #: ../src/guestfs.pod:2941
40337 msgid "C<examples>"
40338 msgstr "C<examples>"
40339
40340 #. type: textblock
40341 #: ../src/guestfs.pod:2943
40342 msgid "C API example code."
40343 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
40344
40345 #. type: =item
40346 #: ../src/guestfs.pod:2945
40347 msgid "C<fish>"
40348 msgstr "C<fish>"
40349
40350 #. type: textblock
40351 #: ../src/guestfs.pod:2947
40352 msgid ""
40353 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
40354 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40355 "L<virt-tar-out(1)>."
40356 msgstr ""
40357
40358 #. type: =item
40359 #: ../src/guestfs.pod:2951
40360 msgid "C<fuse>"
40361 msgstr "C<fuse>"
40362
40363 #. type: textblock
40364 #: ../src/guestfs.pod:2953
40365 msgid ""
40366 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
40367 msgstr ""
40368
40369 #. type: =item
40370 #: ../src/guestfs.pod:2955
40371 msgid "C<generator>"
40372 msgstr "C<generator>"
40373
40374 #. type: textblock
40375 #: ../src/guestfs.pod:2957
40376 msgid ""
40377 "The crucially important generator, used to automatically generate large "
40378 "amounts of boilerplate C code for things like RPC and bindings."
40379 msgstr ""
40380
40381 #. type: =item
40382 #: ../src/guestfs.pod:2960
40383 msgid "C<images>"
40384 msgstr "C<images>"
40385
40386 #. type: textblock
40387 #: ../src/guestfs.pod:2962
40388 msgid "Files used by the test suite."
40389 msgstr ""
40390
40391 #. type: textblock
40392 #: ../src/guestfs.pod:2964
40393 msgid "Some \"phony\" guest images which we test against."
40394 msgstr ""
40395
40396 #. type: =item
40397 #: ../src/guestfs.pod:2966
40398 msgid "C<inspector>"
40399 msgstr "C<inspector>"
40400
40401 #. type: textblock
40402 #: ../src/guestfs.pod:2968
40403 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
40404 msgstr ""
40405
40406 #. type: =item
40407 #: ../src/guestfs.pod:2970
40408 msgid "C<logo>"
40409 msgstr "C<logo>"
40410
40411 #. type: textblock
40412 #: ../src/guestfs.pod:2972
40413 msgid "Logo used on the website.  The fish is called Arthur by the way."
40414 msgstr ""
40415
40416 #. type: =item
40417 #: ../src/guestfs.pod:2974
40418 msgid "C<m4>"
40419 msgstr "C<m4>"
40420
40421 #. type: textblock
40422 #: ../src/guestfs.pod:2976
40423 msgid "M4 macros used by autoconf."
40424 msgstr ""
40425
40426 #. type: =item
40427 #: ../src/guestfs.pod:2978
40428 msgid "C<po>"
40429 msgstr "C<po>"
40430
40431 #. type: textblock
40432 #: ../src/guestfs.pod:2980
40433 msgid "Translations of simple gettext strings."
40434 msgstr "Переклади простих рядків gettext."
40435
40436 #. type: =item
40437 #: ../src/guestfs.pod:2982
40438 msgid "C<po-docs>"
40439 msgstr "C<po-docs>"
40440
40441 #. type: textblock
40442 #: ../src/guestfs.pod:2984
40443 msgid ""
40444 "The build infrastructure and PO files for translations of manpages and POD "
40445 "files.  Eventually this will be combined with the C<po> directory, but that "
40446 "is rather complicated."
40447 msgstr ""
40448
40449 #. type: =item
40450 #: ../src/guestfs.pod:2988
40451 msgid "C<regressions>"
40452 msgstr "C<regressions>"
40453
40454 #. type: textblock
40455 #: ../src/guestfs.pod:2990
40456 msgid "Regression tests."
40457 msgstr "Тести на регресії."
40458
40459 #. type: =item
40460 #: ../src/guestfs.pod:2992
40461 msgid "C<rescue>"
40462 msgstr "C<rescue>"
40463
40464 #. type: textblock
40465 #: ../src/guestfs.pod:2994
40466 msgid "L<virt-rescue(1)> command and documentation."
40467 msgstr ""
40468
40469 #. type: =item
40470 #: ../src/guestfs.pod:2996
40471 msgid "C<resize>"
40472 msgstr ""
40473
40474 #. type: textblock
40475 #: ../src/guestfs.pod:2998
40476 msgid "L<virt-resize(1)> command and documentation."
40477 msgstr ""
40478
40479 #. type: =item
40480 #: ../src/guestfs.pod:3000
40481 msgid "C<sparsify>"
40482 msgstr ""
40483
40484 #. type: textblock
40485 #: ../src/guestfs.pod:3002
40486 msgid "L<virt-sparsify(1)> command and documentation."
40487 msgstr ""
40488
40489 #. type: =item
40490 #: ../src/guestfs.pod:3004
40491 msgid "C<src>"
40492 msgstr "C<src>"
40493
40494 #. type: textblock
40495 #: ../src/guestfs.pod:3006
40496 msgid "Source code to the C library."
40497 msgstr ""
40498
40499 #. type: =item
40500 #: ../src/guestfs.pod:3008
40501 msgid "C<tools>"
40502 msgstr "C<tools>"
40503
40504 #. type: textblock
40505 #: ../src/guestfs.pod:3010
40506 msgid ""
40507 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40508 msgstr ""
40509
40510 #. type: =item
40511 #: ../src/guestfs.pod:3012
40512 msgid "C<test-tool>"
40513 msgstr "C<test-tool>"
40514
40515 #. type: textblock
40516 #: ../src/guestfs.pod:3014
40517 msgid ""
40518 "Test tool for end users to test if their qemu/kernel combination will work "
40519 "with libguestfs."
40520 msgstr ""
40521
40522 #. type: =item
40523 #: ../src/guestfs.pod:3017
40524 msgid "C<csharp>"
40525 msgstr "C<csharp>"
40526
40527 #. type: =item
40528 #: ../src/guestfs.pod:3019
40529 msgid "C<erlang>"
40530 msgstr ""
40531
40532 #. type: =item
40533 #: ../src/guestfs.pod:3021
40534 msgid "C<haskell>"
40535 msgstr "C<haskell>"
40536
40537 #. type: =item
40538 #: ../src/guestfs.pod:3023
40539 msgid "C<java>"
40540 msgstr "C<java>"
40541
40542 #. type: =item
40543 #: ../src/guestfs.pod:3025
40544 msgid "C<ocaml>"
40545 msgstr "C<ocaml>"
40546
40547 #. type: =item
40548 #: ../src/guestfs.pod:3027
40549 msgid "C<php>"
40550 msgstr "C<php>"
40551
40552 #. type: =item
40553 #: ../src/guestfs.pod:3029
40554 msgid "C<perl>"
40555 msgstr "C<perl>"
40556
40557 #. type: =item
40558 #: ../src/guestfs.pod:3031
40559 msgid "C<python>"
40560 msgstr "C<python>"
40561
40562 #. type: =item
40563 #: ../src/guestfs.pod:3033
40564 msgid "C<ruby>"
40565 msgstr "C<ruby>"
40566
40567 #. type: textblock
40568 #: ../src/guestfs.pod:3035
40569 msgid "Language bindings."
40570 msgstr "Прив’язки до мов програмування."
40571
40572 #. type: =head2
40573 #: ../src/guestfs.pod:3039
40574 msgid "MAKING A STABLE RELEASE"
40575 msgstr ""
40576
40577 #. type: textblock
40578 #: ../src/guestfs.pod:3041
40579 msgid ""
40580 "When we make a stable release, there are several steps documented here.  See "
40581 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40582 "branch policy."
40583 msgstr ""
40584
40585 #. type: textblock
40586 #: ../src/guestfs.pod:3049
40587 msgid ""
40588 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40589 msgstr ""
40590
40591 #. type: textblock
40592 #: ../src/guestfs.pod:3054
40593 msgid "Finalize RELEASE-NOTES."
40594 msgstr ""
40595
40596 #. type: textblock
40597 #: ../src/guestfs.pod:3058
40598 msgid "Update ROADMAP."
40599 msgstr ""
40600
40601 #. type: textblock
40602 #: ../src/guestfs.pod:3062
40603 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40604 msgstr ""
40605
40606 #. type: textblock
40607 #: ../src/guestfs.pod:3066
40608 msgid "Push and pull from Transifex."
40609 msgstr ""
40610
40611 #. type: textblock
40612 #: ../src/guestfs.pod:3068
40613 msgid "Run:"
40614 msgstr ""
40615
40616 #. type: verbatim
40617 #: ../src/guestfs.pod:3070
40618 #, no-wrap
40619 msgid ""
40620 " tx push -s\n"
40621 "\n"
40622 msgstr ""
40623
40624 #. type: textblock
40625 #: ../src/guestfs.pod:3072
40626 msgid "to push the latest POT files to Transifex.  Then run:"
40627 msgstr ""
40628
40629 #. type: verbatim
40630 #: ../src/guestfs.pod:3074
40631 #, no-wrap
40632 msgid ""
40633 " ./tx-pull.sh\n"
40634 "\n"
40635 msgstr ""
40636
40637 #. type: textblock
40638 #: ../src/guestfs.pod:3076
40639 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40640 msgstr ""
40641
40642 #. type: textblock
40643 #: ../src/guestfs.pod:3080
40644 msgid ""
40645 "Create new stable and development directories under L<http://libguestfs.org/"
40646 "download>."
40647 msgstr ""
40648
40649 #. type: textblock
40650 #: ../src/guestfs.pod:3085
40651 msgid "Create the branch in git:"
40652 msgstr ""
40653
40654 #. type: verbatim
40655 #: ../src/guestfs.pod:3087
40656 #, no-wrap
40657 msgid ""
40658 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40659 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40660 " git branch stable-1.XX\n"
40661 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40662 "\n"
40663 msgstr ""
40664
40665 #. type: =head1
40666 #: ../src/guestfs.pod:3094
40667 msgid "LIMITS"
40668 msgstr "ОБМЕЖЕННЯ"
40669
40670 #. type: =head2
40671 #: ../src/guestfs.pod:3096
40672 msgid "PROTOCOL LIMITS"
40673 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
40674
40675 #. type: textblock
40676 #: ../src/guestfs.pod:3098
40677 msgid ""
40678 "Internally libguestfs uses a message-based protocol to pass API calls and "
40679 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40680 "plenty more detail about this).  The maximum message size used by the "
40681 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40682 "aware of this limit.  The API calls which may be affected are individually "
40683 "documented, with a link back to this section of the documentation."
40684 msgstr ""
40685
40686 #. type: textblock
40687 #: ../src/guestfs.pod:3106
40688 msgid ""
40689 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40690 "a simple string.  Because this string is at some point internally encoded as "
40691 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40692 "the requested file is larger than this then you will get an error."
40693 msgstr ""
40694
40695 #. type: textblock
40696 #: ../src/guestfs.pod:3112
40697 msgid ""
40698 "In order to transfer large files into and out of the guest filesystem, you "
40699 "need to use particular calls that support this.  The sections L</UPLOADING> "
40700 "and L</DOWNLOADING> document how to do this."
40701 msgstr ""
40702
40703 #. type: textblock
40704 #: ../src/guestfs.pod:3116
40705 msgid ""
40706 "You might also consider mounting the disk image using our FUSE filesystem "
40707 "support (L<guestmount(1)>)."
40708 msgstr ""
40709
40710 #. type: =head2
40711 #: ../src/guestfs.pod:3119
40712 msgid "MAXIMUM NUMBER OF DISKS"
40713 msgstr ""
40714
40715 #. type: textblock
40716 #: ../src/guestfs.pod:3121
40717 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40718 msgstr ""
40719
40720 #. type: textblock
40721 #: ../src/guestfs.pod:3124
40722 msgid ""
40723 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40724 "slots.  However febootstrap only understands disks with names C</dev/vda> "
40725 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40726 "purposes."
40727 msgstr ""
40728
40729 #. type: textblock
40730 #: ../src/guestfs.pod:3129
40731 msgid ""
40732 "We are working to substantially raise this limit in future versions but it "
40733 "requires complex changes to qemu."
40734 msgstr ""
40735
40736 #. type: textblock
40737 #: ../src/guestfs.pod:3132
40738 msgid ""
40739 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40740 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40741 "requires changes to qemu."
40742 msgstr ""
40743
40744 #. type: =head2
40745 #: ../src/guestfs.pod:3136
40746 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40747 msgstr ""
40748
40749 #. type: textblock
40750 #: ../src/guestfs.pod:3138
40751 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40752 msgstr ""
40753
40754 #. type: textblock
40755 #: ../src/guestfs.pod:3140
40756 msgid ""
40757 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
40758 "vda>, and C</dev/vda1> through C</dev/vda15>)."
40759 msgstr ""
40760
40761 #. type: textblock
40762 #: ../src/guestfs.pod:3143
40763 msgid ""
40764 "If you attach a disk with more than 15 partitions, the extra partitions are "
40765 "ignored by libguestfs."
40766 msgstr ""
40767
40768 #. type: =head2
40769 #: ../src/guestfs.pod:3146
40770 msgid "MAXIMUM SIZE OF A DISK"
40771 msgstr ""
40772
40773 #. type: textblock
40774 #: ../src/guestfs.pod:3148
40775 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40776 msgstr ""
40777
40778 #. type: textblock
40779 #: ../src/guestfs.pod:3150
40780 msgid ""
40781 "We have tested block devices up to 1 exabyte (2**60 or "
40782 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40783 "filesystem."
40784 msgstr ""
40785
40786 #. type: textblock
40787 #: ../src/guestfs.pod:3154
40788 msgid ""
40789 "Although libguestfs probably does not impose any limit, the underlying host "
40790 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40791 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40792 "TB).  If you store disk images as host logical volumes then you are limited "
40793 "by the maximum size of an LV."
40794 msgstr ""
40795
40796 #. type: textblock
40797 #: ../src/guestfs.pod:3160
40798 msgid ""
40799 "For the hugest disk image files, we recommend using XFS on the host for "
40800 "storage."
40801 msgstr ""
40802
40803 #. type: =head2
40804 #: ../src/guestfs.pod:3163
40805 msgid "MAXIMUM SIZE OF A PARTITION"
40806 msgstr ""
40807
40808 #. type: textblock
40809 #: ../src/guestfs.pod:3165
40810 msgid ""
40811 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40812 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40813 "address a partition located beyond 2 TB on the disk."
40814 msgstr ""
40815
40816 #. type: textblock
40817 #: ../src/guestfs.pod:3169
40818 msgid ""
40819 "It is recommended that you use GPT partitions on disks which are larger than "
40820 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40821 "which are theoretically larger than the largest disk we could support."
40822 msgstr ""
40823
40824 #. type: =head2
40825 #: ../src/guestfs.pod:3174
40826 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40827 msgstr ""
40828
40829 #. type: textblock
40830 #: ../src/guestfs.pod:3176
40831 msgid ""
40832 "This depends on the filesystem type.  libguestfs itself does not impose any "
40833 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40834 "what these limits are."
40835 msgstr ""
40836
40837 #. type: =head2
40838 #: ../src/guestfs.pod:3180
40839 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40840 msgstr ""
40841
40842 #. type: textblock
40843 #: ../src/guestfs.pod:3182
40844 msgid ""
40845 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
40846 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40847 "uploads and downloads."
40848 msgstr ""
40849
40850 #. type: =head2
40851 #: ../src/guestfs.pod:3186
40852 msgid "INSPECTION LIMITS"
40853 msgstr ""
40854
40855 #. type: textblock
40856 #: ../src/guestfs.pod:3188
40857 msgid ""
40858 "The inspection code has several arbitrary limits on things like the size of "
40859 "Windows Registry hive it will read, and the length of product name.  These "
40860 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40861 "memory and disk space on the host, and should not be reached in practice.  "
40862 "See the source code for more information."
40863 msgstr ""
40864
40865 #. type: textblock
40866 #: ../src/guestfs.pod:3214
40867 msgid ""
40868 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40869 "effect as calling C<guestfs_set_verbose (g, 1)>."
40870 msgstr ""
40871
40872 #. type: textblock
40873 #: ../src/guestfs.pod:3226
40874 msgid ""
40875 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40876 "the discussion of paths in section L</PATH> above."
40877 msgstr ""
40878
40879 #. type: textblock
40880 #: ../src/guestfs.pod:3235
40881 msgid "See also L</QEMU WRAPPERS> above."
40882 msgstr ""
40883
40884 #. type: textblock
40885 #: ../src/guestfs.pod:3239
40886 msgid ""
40887 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40888 "effect as calling C<guestfs_set_trace (g, 1)>."
40889 msgstr ""
40890
40891 #. type: textblock
40892 #: ../src/guestfs.pod:3257
40893 msgid ""
40894 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
40895 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
40896 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
40897 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
40898 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40899 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
40900 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
40901 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
40902 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
40903 ">, L<http://libguestfs.org/>."
40904 msgstr ""
40905
40906 #. type: textblock
40907 #: ../src/guestfs.pod:3293
40908 msgid ""
40909 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
40910 "(8)>, L<disktype(1)>."
40911 msgstr ""
40912
40913 #. type: =head1
40914 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:571
40915 #: ../tools/virt-win-reg.pl:772
40916 msgid "BUGS"
40917 msgstr "ВАДИ"
40918
40919 #. type: textblock
40920 #: ../src/guestfs.pod:3302
40921 msgid "To get a list of bugs against libguestfs use this link:"
40922 msgstr ""
40923 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
40924 "посиланням:"
40925
40926 #. type: textblock
40927 #: ../src/guestfs.pod:3304
40928 msgid ""
40929 "L<https://bugzilla.redhat.com/buglist.cgi?"
40930 "component=libguestfs&product=Virtualization+Tools>"
40931 msgstr ""
40932 "L<https://bugzilla.redhat.com/buglist.cgi?"
40933 "component=libguestfs&product=Virtualization+Tools>"
40934
40935 #. type: textblock
40936 #: ../src/guestfs.pod:3306
40937 msgid "To report a new bug against libguestfs use this link:"
40938 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
40939
40940 #. type: textblock
40941 #: ../src/guestfs.pod:3308
40942 msgid ""
40943 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40944 "component=libguestfs&product=Virtualization+Tools>"
40945 msgstr ""
40946 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40947 "component=libguestfs&product=Virtualization+Tools>"
40948
40949 #. type: textblock
40950 #: ../src/guestfs.pod:3310
40951 msgid "When reporting a bug, please check:"
40952 msgstr ""
40953
40954 #. type: textblock
40955 #: ../src/guestfs.pod:3316
40956 msgid "That the bug hasn't been reported already."
40957 msgstr ""
40958
40959 #. type: textblock
40960 #: ../src/guestfs.pod:3320
40961 msgid "That you are testing a recent version."
40962 msgstr ""
40963
40964 #. type: textblock
40965 #: ../src/guestfs.pod:3324
40966 msgid "Describe the bug accurately, and give a way to reproduce it."
40967 msgstr ""
40968
40969 #. type: textblock
40970 #: ../src/guestfs.pod:3328
40971 msgid ""
40972 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40973 "bug report."
40974 msgstr ""
40975
40976 #. type: textblock
40977 #: ../test-tool/libguestfs-test-tool.pod:5
40978 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40979 msgstr ""
40980
40981 #. type: verbatim
40982 #: ../test-tool/libguestfs-test-tool.pod:9
40983 #, no-wrap
40984 msgid ""
40985 " libguestfs-test-tool [--options]\n"
40986 "\n"
40987 msgstr ""
40988
40989 #. type: textblock
40990 #: ../test-tool/libguestfs-test-tool.pod:13
40991 msgid ""
40992 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40993 "to check basic libguestfs functionality is working.  This is needed because "
40994 "libguestfs occasionally breaks for reasons beyond our control: usually "
40995 "because of changes in the underlying qemu or kernel packages, or the host "
40996 "environment."
40997 msgstr ""
40998
40999 #. type: textblock
41000 #: ../test-tool/libguestfs-test-tool.pod:19
41001 msgid "If you suspect a problem in libguestfs, then just run:"
41002 msgstr ""
41003
41004 #. type: verbatim
41005 #: ../test-tool/libguestfs-test-tool.pod:21
41006 #, no-wrap
41007 msgid ""
41008 " libguestfs-test-tool\n"
41009 "\n"
41010 msgstr ""
41011
41012 #. type: textblock
41013 #: ../test-tool/libguestfs-test-tool.pod:23
41014 msgid "It will print lots of diagnostic messages."
41015 msgstr ""
41016
41017 #. type: textblock
41018 #: ../test-tool/libguestfs-test-tool.pod:25
41019 msgid "If it runs to completion successfully, you will see this near the end:"
41020 msgstr ""
41021
41022 #. type: verbatim
41023 #: ../test-tool/libguestfs-test-tool.pod:27
41024 #, no-wrap
41025 msgid ""
41026 " ===== TEST FINISHED OK =====\n"
41027 "\n"
41028 msgstr ""
41029
41030 #. type: textblock
41031 #: ../test-tool/libguestfs-test-tool.pod:29
41032 msgid "and the test tool will exit with code 0."
41033 msgstr ""
41034
41035 #. type: textblock
41036 #: ../test-tool/libguestfs-test-tool.pod:31
41037 msgid ""
41038 "If it fails (and/or exits with non-zero error code), please paste the "
41039 "I<complete, unedited> output of the test tool into a bug report.  More "
41040 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41041 "> website."
41042 msgstr ""
41043
41044 #. type: textblock
41045 #: ../test-tool/libguestfs-test-tool.pod:42
41046 msgid "Display short usage information and exit."
41047 msgstr ""
41048
41049 #. type: =item
41050 #: ../test-tool/libguestfs-test-tool.pod:44
41051 msgid "B<--qemu qemu_binary>"
41052 msgstr ""
41053
41054 #. type: textblock
41055 #: ../test-tool/libguestfs-test-tool.pod:46
41056 msgid ""
41057 "If you have downloaded another qemu binary, point this option at the full "
41058 "path of the binary to try it."
41059 msgstr ""
41060
41061 #. type: =item
41062 #: ../test-tool/libguestfs-test-tool.pod:49
41063 msgid "B<--qemudir qemu_source_dir>"
41064 msgstr ""
41065
41066 #. type: textblock
41067 #: ../test-tool/libguestfs-test-tool.pod:51
41068 msgid ""
41069 "If you have compiled qemu from source, point this option at the source "
41070 "directory to try it."
41071 msgstr ""
41072
41073 #. type: =item
41074 #: ../test-tool/libguestfs-test-tool.pod:54
41075 msgid "B<-t N>"
41076 msgstr ""
41077
41078 #. type: =item
41079 #: ../test-tool/libguestfs-test-tool.pod:56
41080 msgid "B<--timeout N>"
41081 msgstr ""
41082
41083 #. type: textblock
41084 #: ../test-tool/libguestfs-test-tool.pod:58
41085 msgid ""
41086 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
41087 "minutes) which does not usually need to be adjusted."
41088 msgstr ""
41089
41090 #. type: =head1
41091 #: ../test-tool/libguestfs-test-tool.pod:63
41092 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41093 msgstr ""
41094
41095 #. type: textblock
41096 #: ../test-tool/libguestfs-test-tool.pod:65
41097 msgid ""
41098 "If you have compiled another version of qemu from source and would like to "
41099 "try that, then you can use the I<--qemudir> option to point to the qemu "
41100 "source directory."
41101 msgstr ""
41102
41103 #. type: textblock
41104 #: ../test-tool/libguestfs-test-tool.pod:69
41105 msgid ""
41106 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41107 "option to point to the binary."
41108 msgstr ""
41109
41110 #. type: textblock
41111 #: ../test-tool/libguestfs-test-tool.pod:72
41112 msgid ""
41113 "Note when using these options, you can ignore the business of qemu wrapper "
41114 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41115 "wrapper script for you if one is needed."
41116 msgstr ""
41117
41118 #. type: =head1
41119 #: ../test-tool/libguestfs-test-tool.pod:76
41120 msgid "TRYING OUT A DIFFERENT KERNEL"
41121 msgstr ""
41122
41123 #. type: textblock
41124 #: ../test-tool/libguestfs-test-tool.pod:78
41125 msgid ""
41126 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41127 "libguestfs tries.  You do this by setting the environment variables "
41128 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41129 msgstr ""
41130
41131 #. type: textblock
41132 #: ../test-tool/libguestfs-test-tool.pod:82
41133 msgid ""
41134 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41135 "information."
41136 msgstr ""
41137
41138 #. type: =head1
41139 #: ../test-tool/libguestfs-test-tool.pod:85
41140 msgid "SELF-DIAGNOSIS"
41141 msgstr ""
41142
41143 #. type: textblock
41144 #: ../test-tool/libguestfs-test-tool.pod:87
41145 msgid ""
41146 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41147 "produced by libguestfs-test-tool and/or possible errors."
41148 msgstr ""
41149
41150 #. type: textblock
41151 #: ../test-tool/libguestfs-test-tool.pod:92
41152 msgid ""
41153 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41154 "I<1> if there was an error."
41155 msgstr ""
41156
41157 #. type: textblock
41158 #: ../test-tool/libguestfs-test-tool.pod:97
41159 msgid ""
41160 "For the full list of environment variables which may affect libguestfs, "
41161 "please see the L<guestfs(3)> manual page."
41162 msgstr ""
41163
41164 #. type: textblock
41165 #: ../test-tool/libguestfs-test-tool.pod:102
41166 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41167 msgstr ""
41168
41169 #. type: textblock
41170 #: ../tools/virt-list-filesystems.pl:32
41171 msgid ""
41172 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41173 msgstr ""
41174
41175 #. type: verbatim
41176 #: ../tools/virt-list-filesystems.pl:36
41177 #, no-wrap
41178 msgid ""
41179 " virt-list-filesystems [--options] domname\n"
41180 "\n"
41181 msgstr ""
41182
41183 #. type: verbatim
41184 #: ../tools/virt-list-filesystems.pl:38
41185 #, no-wrap
41186 msgid ""
41187 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41188 "\n"
41189 msgstr ""
41190
41191 #. type: textblock
41192 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41193 msgid ""
41194 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
41195 "replacement."
41196 msgstr ""
41197
41198 #. type: textblock
41199 #: ../tools/virt-list-filesystems.pl:45
41200 msgid ""
41201 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41202 "are contained in a virtual machine or disk image."
41203 msgstr ""
41204
41205 #. type: textblock
41206 #: ../tools/virt-list-filesystems.pl:49
41207 msgid ""
41208 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41209 "functionality.  For more complex cases you should look at the L<guestfish(1)"
41210 "> tool."
41211 msgstr ""
41212
41213 #. type: textblock
41214 #: ../tools/virt-list-filesystems.pl:112
41215 msgid ""
41216 "With this option, C<virt-list-filesystems> displays the type of each "
41217 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41218 msgstr ""
41219
41220 #. type: =item
41221 #: ../tools/virt-list-filesystems.pl:119
41222 msgid "B<-a>"
41223 msgstr "B<-a>"
41224
41225 #. type: textblock
41226 #: ../tools/virt-list-filesystems.pl:123
41227 msgid ""
41228 "Normally we only show mountable filesystems.  If this option is given then "
41229 "swap devices are shown too."
41230 msgstr ""
41231
41232 #. type: textblock
41233 #: ../tools/virt-list-filesystems.pl:197
41234 msgid ""
41235 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41236 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41237 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41238 msgstr ""
41239 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41240 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41241 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41242
41243 #. type: textblock
41244 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41245 msgid "Copyright (C) 2009 Red Hat Inc."
41246 msgstr "© Red Hat Inc., 2009"
41247
41248 #. type: textblock
41249 #: ../tools/virt-list-partitions.pl:32
41250 msgid ""
41251 "virt-list-partitions - List partitions in a virtual machine or disk image"
41252 msgstr ""
41253
41254 #. type: verbatim
41255 #: ../tools/virt-list-partitions.pl:36
41256 #, no-wrap
41257 msgid ""
41258 " virt-list-partitions [--options] domname\n"
41259 "\n"
41260 msgstr ""
41261 " virt-list-partitions [--параметри] назва_домену\n"
41262 "\n"
41263
41264 #. type: verbatim
41265 #: ../tools/virt-list-partitions.pl:38
41266 #, no-wrap
41267 msgid ""
41268 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41269 "\n"
41270 msgstr ""
41271 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
41272 "\n"
41273
41274 #. type: textblock
41275 #: ../tools/virt-list-partitions.pl:45
41276 msgid ""
41277 "C<virt-list-partitions> is a command line tool to list the partitions that "
41278 "are contained in a virtual machine or disk image.  It is mainly useful as a "
41279 "first step to using L<virt-resize(1)>."
41280 msgstr ""
41281
41282 #. type: textblock
41283 #: ../tools/virt-list-partitions.pl:50
41284 msgid ""
41285 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41286 "functionality.  For more complex cases you should look at the L<guestfish(1)"
41287 "> tool."
41288 msgstr ""
41289
41290 #. type: textblock
41291 #: ../tools/virt-list-partitions.pl:113
41292 msgid "Show sizes in human-readable form (eg. \"1G\")."
41293 msgstr ""
41294
41295 #. type: textblock
41296 #: ../tools/virt-list-partitions.pl:123
41297 msgid ""
41298 "With this option, C<virt-list-partitions> displays the type and size of each "
41299 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41300 msgstr ""
41301
41302 #. type: =item
41303 #: ../tools/virt-list-partitions.pl:130
41304 msgid "B<-t>"
41305 msgstr "B<-t>"
41306
41307 #. type: =item
41308 #: ../tools/virt-list-partitions.pl:132
41309 msgid "B<--total>"
41310 msgstr "B<--total>"
41311
41312 #. type: textblock
41313 #: ../tools/virt-list-partitions.pl:134
41314 msgid ""
41315 "Display the total size of each block device (as a separate row or rows)."
41316 msgstr ""
41317
41318 #. type: textblock
41319 #: ../tools/virt-list-partitions.pl:267
41320 msgid ""
41321 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41322 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41323 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41324 msgstr ""
41325 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41326 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41327 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41328
41329 #. type: textblock
41330 #: ../tools/virt-list-partitions.pl:283
41331 msgid "Copyright (C) 2009-2010 Red Hat Inc."
41332 msgstr "© Red Hat Inc., 2009–2010"
41333
41334 #. type: textblock
41335 #: ../tools/virt-make-fs.pl:37
41336 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
41337 msgstr ""
41338
41339 #. type: verbatim
41340 #: ../tools/virt-make-fs.pl:41
41341 #, no-wrap
41342 msgid ""
41343 " virt-make-fs [--options] input.tar output.img\n"
41344 "\n"
41345 msgstr ""
41346
41347 #. type: verbatim
41348 #: ../tools/virt-make-fs.pl:43
41349 #, no-wrap
41350 msgid ""
41351 " virt-make-fs [--options] input.tar.gz output.img\n"
41352 "\n"
41353 msgstr ""
41354
41355 #. type: verbatim
41356 #: ../tools/virt-make-fs.pl:45
41357 #, no-wrap
41358 msgid ""
41359 " virt-make-fs [--options] directory output.img\n"
41360 "\n"
41361 msgstr ""
41362
41363 #. type: textblock
41364 #: ../tools/virt-make-fs.pl:49
41365 msgid ""
41366 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
41367 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
41368 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
41369 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
41370 "you want to attach these filesystems to existing virtual machines (eg. to "
41371 "import large amounts of read-only data to a VM)."
41372 msgstr ""
41373
41374 #. type: textblock
41375 #: ../tools/virt-make-fs.pl:57
41376 msgid "Basic usage is:"
41377 msgstr ""
41378
41379 #. type: verbatim
41380 #: ../tools/virt-make-fs.pl:59
41381 #, fuzzy, no-wrap
41382 #| msgid ""
41383 #| " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41384 #| "\n"
41385 msgid ""
41386 " virt-make-fs input output.img\n"
41387 "\n"
41388 msgstr ""
41389 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41390 "\n"
41391
41392 #. type: textblock
41393 #: ../tools/virt-make-fs.pl:61
41394 msgid ""
41395 "where C<input> is either a directory containing files that you want to add, "
41396 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
41397 "C<output.img> is a disk image.  The input type is detected automatically.  "
41398 "The output disk image defaults to a raw ext2 sparse image unless you specify "
41399 "extra flags (see L</OPTIONS> below)."
41400 msgstr ""
41401
41402 #. type: =head2
41403 #: ../tools/virt-make-fs.pl:67
41404 msgid "FILESYSTEM TYPE"
41405 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
41406
41407 #. type: textblock
41408 #: ../tools/virt-make-fs.pl:69
41409 msgid ""
41410 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
41411 "libguestfs supports can be used (but I<not> read-only formats like "
41412 "ISO9660).  Here are some of the more common choices:"
41413 msgstr ""
41414
41415 #. type: =item
41416 #: ../tools/virt-make-fs.pl:75
41417 msgid "I<ext3>"
41418 msgstr "I<ext3>"
41419
41420 #. type: textblock
41421 #: ../tools/virt-make-fs.pl:77
41422 msgid ""
41423 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
41424 "you are not going to use the filesystem in a way that requires the journal, "
41425 "then this is just wasted overhead."
41426 msgstr ""
41427
41428 #. type: =item
41429 #: ../tools/virt-make-fs.pl:81
41430 msgid "I<ntfs> or I<vfat>"
41431 msgstr "I<ntfs> або I<vfat>"
41432
41433 #. type: textblock
41434 #: ../tools/virt-make-fs.pl:83
41435 msgid "Useful if exporting data to a Windows guest."
41436 msgstr ""
41437
41438 #. type: textblock
41439 #: ../tools/virt-make-fs.pl:85
41440 msgid ""
41441 "I<Note for vfat>: The tar archive or local directory must only contain files "
41442 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
41443 "program running within libguestfs is unable to change the ownership of non-"
41444 "root files, since vfat itself does not support this."
41445 msgstr ""
41446
41447 #. type: =item
41448 #: ../tools/virt-make-fs.pl:90
41449 msgid "I<minix>"
41450 msgstr "I<minix>"
41451
41452 #. type: textblock
41453 #: ../tools/virt-make-fs.pl:92
41454 msgid ""
41455 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41456 "total filesystem size."
41457 msgstr ""
41458
41459 #. type: =head3
41460 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
41461 #: ../tools/virt-make-fs.pl:149
41462 msgid "EXAMPLE"
41463 msgstr "ПРИКЛАД"
41464
41465 #. type: verbatim
41466 #: ../tools/virt-make-fs.pl:99
41467 #, no-wrap
41468 msgid ""
41469 " virt-make-fs --type=minix input minixfs.img\n"
41470 "\n"
41471 msgstr ""
41472
41473 #. type: =head2
41474 #: ../tools/virt-make-fs.pl:101
41475 msgid "TO PARTITION OR NOT TO PARTITION"
41476 msgstr ""
41477
41478 #. type: textblock
41479 #: ../tools/virt-make-fs.pl:103
41480 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41481 msgstr ""
41482
41483 #. type: textblock
41484 #: ../tools/virt-make-fs.pl:105
41485 msgid ""
41486 "Adding a partition can make the disk image more compatible with certain "
41487 "virtualized operating systems which don't expect to see a filesystem "
41488 "directly located on a block device (Linux doesn't care and will happily "
41489 "handle both types)."
41490 msgstr ""
41491
41492 #. type: textblock
41493 #: ../tools/virt-make-fs.pl:110
41494 msgid ""
41495 "On the other hand, if you have a partition table then the output image is no "
41496 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
41497 "directly on a partitioned disk image.  (However libguestfs tools such as "
41498 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41499 msgstr ""
41500
41501 #. type: textblock
41502 #: ../tools/virt-make-fs.pl:118
41503 msgid "Add an MBR partition:"
41504 msgstr ""
41505
41506 #. type: verbatim
41507 #: ../tools/virt-make-fs.pl:120
41508 #, no-wrap
41509 msgid ""
41510 " virt-make-fs --partition -- input disk.img\n"
41511 "\n"
41512 msgstr ""
41513
41514 #. type: textblock
41515 #: ../tools/virt-make-fs.pl:122
41516 msgid ""
41517 "If the output disk image could be terabyte-sized or larger, it's better to "
41518 "use an EFI/GPT-compatible partition table:"
41519 msgstr ""
41520
41521 #. type: verbatim
41522 #: ../tools/virt-make-fs.pl:125
41523 #, no-wrap
41524 msgid ""
41525 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41526 "\n"
41527 msgstr ""
41528
41529 #. type: =head2
41530 #: ../tools/virt-make-fs.pl:127
41531 msgid "EXTRA SPACE"
41532 msgstr ""
41533
41534 #. type: textblock
41535 #: ../tools/virt-make-fs.pl:129
41536 msgid ""
41537 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41538 "the files that it contains, but might have extra space.  Depending on how "
41539 "you are going to use the output, you might think this extra space is wasted "
41540 "and want to minimize it, or you might want to leave space so that more files "
41541 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
41542 "but you can use the I<--size> flag to leave space in the filesystem if you "
41543 "want it."
41544 msgstr ""
41545
41546 #. type: textblock
41547 #: ../tools/virt-make-fs.pl:137
41548 msgid ""
41549 "An alternative way to leave extra space but not make the output image any "
41550 "bigger is to use an alternative disk image format (instead of the default "
41551 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41552 "image format (check your hypervisor supports this before using it).  This "
41553 "allows you to choose a large I<--size> but the extra space won't actually be "
41554 "allocated in the image until you try to store something in it."
41555 msgstr ""
41556
41557 #. type: textblock
41558 #: ../tools/virt-make-fs.pl:145
41559 msgid ""
41560 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41561 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41562 "to build another image from scratch."
41563 msgstr ""
41564
41565 #. type: verbatim
41566 #: ../tools/virt-make-fs.pl:151
41567 #, no-wrap
41568 msgid ""
41569 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41570 "\n"
41571 msgstr ""
41572 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41573 "\n"
41574
41575 #. type: textblock
41576 #: ../tools/virt-make-fs.pl:179
41577 msgid "Enable debugging information."
41578 msgstr "Увімкнути виведення діагностичних даних."
41579
41580 #. type: =item
41581 #: ../tools/virt-make-fs.pl:185
41582 msgid "B<--size=E<lt>NE<gt>>"
41583 msgstr "B<--size=E<lt>NE<gt>>"
41584
41585 #. type: =item
41586 #: ../tools/virt-make-fs.pl:187
41587 msgid "B<--size=+E<lt>NE<gt>>"
41588 msgstr "B<--size=+E<lt>NE<gt>>"
41589
41590 #. type: =item
41591 #: ../tools/virt-make-fs.pl:189
41592 msgid "B<-s E<lt>NE<gt>>"
41593 msgstr "B<-s E<lt>NE<gt>>"
41594
41595 #. type: =item
41596 #: ../tools/virt-make-fs.pl:191
41597 msgid "B<-s +E<lt>NE<gt>>"
41598 msgstr "B<-s +E<lt>NE<gt>>"
41599
41600 #. type: textblock
41601 #: ../tools/virt-make-fs.pl:193
41602 msgid ""
41603 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41604 msgstr ""
41605
41606 #. type: textblock
41607 #: ../tools/virt-make-fs.pl:196
41608 msgid ""
41609 "If this option is I<not> given, then the output image will be just large "
41610 "enough to contain all the files, with not much wasted space."
41611 msgstr ""
41612
41613 #. type: textblock
41614 #: ../tools/virt-make-fs.pl:199
41615 msgid ""
41616 "To choose a fixed size output disk, specify an absolute number followed by b/"
41617 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41618 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41619 "files, else you will get an error."
41620 msgstr ""
41621
41622 #. type: textblock
41623 #: ../tools/virt-make-fs.pl:204
41624 msgid ""
41625 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
41626 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41627 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41628 "the input files, and (approximately) an extra 200 MB free space."
41629 msgstr ""
41630
41631 #. type: textblock
41632 #: ../tools/virt-make-fs.pl:210
41633 msgid ""
41634 "Note that virt-make-fs estimates free space, and therefore will not produce "
41635 "filesystems containing precisely the free space requested.  (It is much more "
41636 "expensive and time-consuming to produce a filesystem which has precisely the "
41637 "desired free space)."
41638 msgstr ""
41639
41640 #. type: =item
41641 #: ../tools/virt-make-fs.pl:219
41642 msgid "B<--format=E<lt>fmtE<gt>>"
41643 msgstr ""
41644
41645 #. type: =item
41646 #: ../tools/virt-make-fs.pl:221
41647 msgid "B<-F E<lt>fmtE<gt>>"
41648 msgstr ""
41649
41650 #. type: textblock
41651 #: ../tools/virt-make-fs.pl:223
41652 msgid "Choose the output disk image format."
41653 msgstr ""
41654
41655 #. type: textblock
41656 #: ../tools/virt-make-fs.pl:225
41657 msgid "The default is C<raw> (raw sparse disk image)."
41658 msgstr ""
41659
41660 #. type: textblock
41661 #: ../tools/virt-make-fs.pl:227
41662 msgid ""
41663 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41664 "that would really make sense here is C<qcow2>."
41665 msgstr ""
41666
41667 #. type: =item
41668 #: ../tools/virt-make-fs.pl:234
41669 msgid "B<--type=E<lt>fsE<gt>>"
41670 msgstr ""
41671
41672 #. type: =item
41673 #: ../tools/virt-make-fs.pl:236
41674 msgid "B<-t E<lt>fsE<gt>>"
41675 msgstr ""
41676
41677 #. type: textblock
41678 #: ../tools/virt-make-fs.pl:238
41679 msgid "Choose the output filesystem type."
41680 msgstr ""
41681
41682 #. type: textblock
41683 #: ../tools/virt-make-fs.pl:240
41684 msgid "The default is C<ext2>."
41685 msgstr "Типовим значенням є C<ext2>."
41686
41687 #. type: textblock
41688 #: ../tools/virt-make-fs.pl:242
41689 msgid ""
41690 "Any filesystem which is supported read-write by libguestfs can be used here."
41691 msgstr ""
41692
41693 #. type: =item
41694 #: ../tools/virt-make-fs.pl:249
41695 msgid "B<--partition>"
41696 msgstr "B<--partition>"
41697
41698 #. type: =item
41699 #: ../tools/virt-make-fs.pl:251
41700 msgid "B<--partition=E<lt>parttypeE<gt>>"
41701 msgstr ""
41702
41703 #. type: textblock
41704 #: ../tools/virt-make-fs.pl:253
41705 msgid ""
41706 "If specified, this flag adds an MBR partition table to the output disk image."
41707 msgstr ""
41708
41709 #. type: textblock
41710 #: ../tools/virt-make-fs.pl:256
41711 msgid ""
41712 "You can change the partition table type, eg. I<--partition=gpt> for large "
41713 "disks."
41714 msgstr ""
41715
41716 #. type: textblock
41717 #: ../tools/virt-make-fs.pl:259
41718 msgid ""
41719 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41720 "might consider the next parameter to be the partition type.  For example:"
41721 msgstr ""
41722
41723 #. type: verbatim
41724 #: ../tools/virt-make-fs.pl:263
41725 #, fuzzy, no-wrap
41726 #| msgid ""
41727 #| " virt-make-fs --partition input.tar ...\n"
41728 #| "\n"
41729 msgid ""
41730 " virt-make-fs --partition input.tar output.img\n"
41731 "\n"
41732 msgstr ""
41733 " virt-make-fs --partition input.tar ...\n"
41734 "\n"
41735
41736 #. type: textblock
41737 #: ../tools/virt-make-fs.pl:265
41738 msgid ""
41739 "would cause virt-make-fs to think you wanted to use a partition type of "
41740 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41741 "dash) between options and the input and output arguments:"
41742 msgstr ""
41743
41744 #. type: verbatim
41745 #: ../tools/virt-make-fs.pl:269
41746 #, fuzzy, no-wrap
41747 #| msgid ""
41748 #| " virt-make-fs --partition -- input.tar ...\n"
41749 #| "\n"
41750 msgid ""
41751 " virt-make-fs --partition -- input.tar output.img\n"
41752 "\n"
41753 msgstr ""
41754 " virt-make-fs --partition -- input.tar ...\n"
41755 "\n"
41756
41757 #. type: textblock
41758 #: ../tools/virt-make-fs.pl:271
41759 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
41760 msgstr ""
41761
41762 #. type: textblock
41763 #: ../tools/virt-make-fs.pl:559
41764 msgid ""
41765 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41766 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41767 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41768 msgstr ""
41769 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41770 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41771 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41772
41773 #. type: textblock
41774 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
41775 msgid ""
41776 "When reporting bugs, please enable debugging and capture the I<complete> "
41777 "output:"
41778 msgstr ""
41779
41780 #. type: verbatim
41781 #: ../tools/virt-make-fs.pl:576
41782 #, no-wrap
41783 msgid ""
41784 " export LIBGUESTFS_DEBUG=1\n"
41785 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41786 "\n"
41787 msgstr ""
41788 " export LIBGUESTFS_DEBUG=1\n"
41789 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41790 "\n"
41791
41792 #. type: textblock
41793 #: ../tools/virt-make-fs.pl:579
41794 msgid ""
41795 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
41796 "redhat.com/>"
41797 msgstr ""
41798
41799 #. type: textblock
41800 #: ../tools/virt-tar.pl:33
41801 msgid "virt-tar - Extract or upload files to a virtual machine"
41802 msgstr ""
41803
41804 #. type: verbatim
41805 #: ../tools/virt-tar.pl:37
41806 #, no-wrap
41807 msgid ""
41808 " virt-tar [--options] -x domname directory tarball\n"
41809 "\n"
41810 msgstr ""
41811
41812 #. type: verbatim
41813 #: ../tools/virt-tar.pl:39
41814 #, no-wrap
41815 msgid ""
41816 " virt-tar [--options] -u domname tarball directory\n"
41817 "\n"
41818 msgstr ""
41819
41820 #. type: verbatim
41821 #: ../tools/virt-tar.pl:41
41822 #, no-wrap
41823 msgid ""
41824 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41825 "\n"
41826 msgstr ""
41827
41828 #. type: verbatim
41829 #: ../tools/virt-tar.pl:43
41830 #, no-wrap
41831 msgid ""
41832 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41833 "\n"
41834 msgstr ""
41835
41836 #. type: =head2
41837 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41838 msgid "NOTE"
41839 msgstr "ПРИМІТКА"
41840
41841 #. type: textblock
41842 #: ../tools/virt-tar.pl:47
41843 msgid ""
41844 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
41845 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
41846 msgstr ""
41847
41848 #. type: textblock
41849 #: ../tools/virt-tar.pl:52
41850 msgid "Download C</home> from the VM into a local tarball:"
41851 msgstr ""
41852
41853 #. type: verbatim
41854 #: ../tools/virt-tar.pl:54
41855 #, no-wrap
41856 msgid ""
41857 " virt-tar -x domname /home home.tar\n"
41858 "\n"
41859 msgstr ""
41860
41861 #. type: verbatim
41862 #: ../tools/virt-tar.pl:56
41863 #, no-wrap
41864 msgid ""
41865 " virt-tar -zx domname /home home.tar.gz\n"
41866 "\n"
41867 msgstr ""
41868
41869 #. type: textblock
41870 #: ../tools/virt-tar.pl:58
41871 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41872 msgstr ""
41873
41874 #. type: verbatim
41875 #: ../tools/virt-tar.pl:60
41876 #, no-wrap
41877 msgid ""
41878 " virt-tar -u domname uploadstuff.tar /tmp\n"
41879 "\n"
41880 msgstr ""
41881
41882 #. type: verbatim
41883 #: ../tools/virt-tar.pl:62
41884 #, no-wrap
41885 msgid ""
41886 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41887 "\n"
41888 msgstr ""
41889
41890 #. type: textblock
41891 #: ../tools/virt-tar.pl:66
41892 msgid ""
41893 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41894 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41895 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41896 msgstr ""
41897
41898 #. type: textblock
41899 #: ../tools/virt-tar.pl:71
41900 msgid ""
41901 "You can use I<-x> (extract) on live virtual machines, but you might get "
41902 "inconsistent results or errors if there is filesystem activity inside the "
41903 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41904 "work, but the only way to guarantee consistent results is if the virtual "
41905 "machine is shut down."
41906 msgstr ""
41907
41908 #. type: textblock
41909 #: ../tools/virt-tar.pl:79
41910 msgid ""
41911 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41912 "parts of a guest filesystem.  There are many possibilities: making backups, "
41913 "uploading data files, snooping on guest activity, fixing or customizing "
41914 "guests, etc."
41915 msgstr ""
41916
41917 #. type: textblock
41918 #: ../tools/virt-tar.pl:84
41919 msgid ""
41920 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41921 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41922 "should look at the L<guestfish(1)> tool."
41923 msgstr ""
41924
41925 #. type: textblock
41926 #: ../tools/virt-tar.pl:88
41927 msgid ""
41928 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41929 "its contents (recursively) from the virtual machine into a local tarball.  "
41930 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41931 "virtual machine.  You cannot use these two options together."
41932 msgstr ""
41933
41934 #. type: textblock
41935 #: ../tools/virt-tar.pl:94
41936 msgid ""
41937 "In addition, you may need to use the I<-z> (gZip) option to enable "
41938 "compression.  When uploading, you have to specify I<-z> if the upload file "
41939 "is compressed because virt-tar won't detect this on its own."
41940 msgstr ""
41941
41942 #. type: textblock
41943 #: ../tools/virt-tar.pl:98
41944 msgid ""
41945 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41946 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41947 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41948 "the L<libguestfs(3)> API)."
41949 msgstr ""
41950
41951 #. type: =item
41952 #: ../tools/virt-tar.pl:160
41953 msgid "B<--extract>"
41954 msgstr "B<--extract>"
41955
41956 #. type: =item
41957 #: ../tools/virt-tar.pl:162
41958 msgid "B<--download>"
41959 msgstr "B<--download>"
41960
41961 #. type: =item
41962 #: ../tools/virt-tar.pl:164
41963 msgid "B<-u>"
41964 msgstr "B<-u>"
41965
41966 #. type: =item
41967 #: ../tools/virt-tar.pl:166
41968 msgid "B<--upload>"
41969 msgstr "B<--upload>"
41970
41971 #. type: textblock
41972 #: ../tools/virt-tar.pl:168
41973 msgid ""
41974 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41975 "local tarball."
41976 msgstr ""
41977
41978 #. type: textblock
41979 #: ../tools/virt-tar.pl:171
41980 msgid ""
41981 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41982 "Please read the L</WARNING> section above before using this option."
41983 msgstr ""
41984
41985 #. type: textblock
41986 #: ../tools/virt-tar.pl:175
41987 msgid "You must specify exactly one of these options."
41988 msgstr ""
41989
41990 #. type: =item
41991 #: ../tools/virt-tar.pl:181
41992 msgid "B<-z>"
41993 msgstr "B<-z>"
41994
41995 #. type: =item
41996 #: ../tools/virt-tar.pl:183
41997 msgid "B<--gzip>"
41998 msgstr "B<--gzip>"
41999
42000 #. type: textblock
42001 #: ../tools/virt-tar.pl:185
42002 msgid "Specify that the input or output tarball is gzip-compressed."
42003 msgstr ""
42004
42005 #. type: textblock
42006 #: ../tools/virt-tar.pl:298
42007 msgid ""
42008 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42009 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42010 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42011 "org/>."
42012 msgstr ""
42013 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
42014 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42015 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42016 "org/>."
42017
42018 #. type: textblock
42019 #: ../tools/virt-win-reg.pl:37
42020 msgid ""
42021 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42022 msgstr ""
42023
42024 #. type: verbatim
42025 #: ../tools/virt-win-reg.pl:41
42026 #, no-wrap
42027 msgid ""
42028 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42029 "\n"
42030 msgstr ""
42031
42032 #. type: verbatim
42033 #: ../tools/virt-win-reg.pl:43
42034 #, no-wrap
42035 msgid ""
42036 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42037 "\n"
42038 msgstr ""
42039
42040 #. type: verbatim
42041 #: ../tools/virt-win-reg.pl:45
42042 #, no-wrap
42043 msgid ""
42044 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42045 "\n"
42046 msgstr ""
42047
42048 #. type: verbatim
42049 #: ../tools/virt-win-reg.pl:47
42050 #, no-wrap
42051 msgid ""
42052 " virt-win-reg --merge domname [input.reg ...]\n"
42053 "\n"
42054 msgstr ""
42055
42056 #. type: verbatim
42057 #: ../tools/virt-win-reg.pl:49
42058 #, no-wrap
42059 msgid ""
42060 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42061 "\n"
42062 msgstr ""
42063
42064 #. type: textblock
42065 #: ../tools/virt-win-reg.pl:53
42066 msgid ""
42067 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42068 "virtual machines.  If you do this, you I<will> get irreversible disk "
42069 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
42070 "but doesn't catch all cases."
42071 msgstr ""
42072
42073 #. type: textblock
42074 #: ../tools/virt-win-reg.pl:58
42075 msgid ""
42076 "Modifying the Windows Registry is an inherently risky operation.  The format "
42077 "is deliberately obscure and undocumented, and Registry changes can leave the "
42078 "system unbootable.  Therefore when using the I<--merge> option, make sure "
42079 "you have a reliable backup first."
42080 msgstr ""
42081
42082 #. type: textblock
42083 #: ../tools/virt-win-reg.pl:65
42084 msgid ""
42085 "This program can export and merge Windows Registry entries from a Windows "
42086 "guest."
42087 msgstr ""
42088
42089 #. type: textblock
42090 #: ../tools/virt-win-reg.pl:68
42091 msgid ""
42092 "The first parameter is the libvirt guest name or the raw disk image of a "
42093 "Windows guest."
42094 msgstr ""
42095
42096 #. type: textblock
42097 #: ../tools/virt-win-reg.pl:71
42098 msgid ""
42099 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42100 "exported (recursively).  For example:"
42101 msgstr ""
42102
42103 #. type: verbatim
42104 #: ../tools/virt-win-reg.pl:74
42105 #, no-wrap
42106 msgid ""
42107 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42108 "\n"
42109 msgstr ""
42110 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42111 "\n"
42112
42113 #. type: textblock
42114 #: ../tools/virt-win-reg.pl:76
42115 msgid ""
42116 "You can also display single values from within registry keys, for example:"
42117 msgstr ""
42118
42119 #. type: verbatim
42120 #: ../tools/virt-win-reg.pl:79
42121 #, no-wrap
42122 msgid ""
42123 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42124 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42125 " Windows 7 Enterprise\n"
42126 "\n"
42127 msgstr ""
42128 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42129 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42130 " Windows 7 Enterprise\n"
42131 "\n"
42132
42133 #. type: textblock
42134 #: ../tools/virt-win-reg.pl:83
42135 msgid ""
42136 "With I<--merge>, you can merge a textual regedit file into the Windows "
42137 "Registry:"
42138 msgstr ""
42139
42140 #. type: verbatim
42141 #: ../tools/virt-win-reg.pl:86
42142 #, no-wrap
42143 msgid ""
42144 " $ virt-win-reg --merge Windows7 changes.reg\n"
42145 "\n"
42146 msgstr ""
42147 " $ virt-win-reg --merge Windows7 changes.reg\n"
42148 "\n"
42149
42150 #. type: textblock
42151 #: ../tools/virt-win-reg.pl:90
42152 msgid ""
42153 "This program is only meant for simple access to the registry.  If you want "
42154 "to do complicated things with the registry, we suggest you download the "
42155 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42156 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42157 "L<hivexregedit(1)>."
42158 msgstr ""
42159
42160 #. type: =item
42161 #: ../tools/virt-win-reg.pl:159
42162 msgid "B<--merge>"
42163 msgstr "B<--merge>"
42164
42165 #. type: textblock
42166 #: ../tools/virt-win-reg.pl:161
42167 msgid ""
42168 "In merge mode, this merges a textual regedit file into the Windows Registry "
42169 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
42170 "displays or exports Registry entries instead."
42171 msgstr ""
42172
42173 #. type: textblock
42174 #: ../tools/virt-win-reg.pl:165
42175 msgid ""
42176 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42177 "result in disk corruption.  However exporting (without this flag)  is always "
42178 "safe."
42179 msgstr ""
42180
42181 #. type: =item
42182 #: ../tools/virt-win-reg.pl:173
42183 msgid "B<--encoding> UTF-16LE|ASCII"
42184 msgstr "B<--encoding> UTF-16LE|ASCII"
42185
42186 #. type: textblock
42187 #: ../tools/virt-win-reg.pl:175
42188 msgid ""
42189 "When merging (only), you may need to specify the encoding for strings to be "
42190 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
42191 "(3)/ENCODING STRINGS>."
42192 msgstr ""
42193
42194 #. type: textblock
42195 #: ../tools/virt-win-reg.pl:179
42196 msgid ""
42197 "The default is to use UTF-16LE, which should work with recent versions of "
42198 "Windows."
42199 msgstr ""
42200
42201 #. type: =item
42202 #: ../tools/virt-win-reg.pl:186
42203 msgid "B<--unsafe-printable-strings>"
42204 msgstr "B<--unsafe-printable-strings>"
42205
42206 #. type: textblock
42207 #: ../tools/virt-win-reg.pl:188
42208 msgid ""
42209 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42210 "instead of hex sequences.  Remove the final zero codepoint from strings if "
42211 "present."
42212 msgstr ""
42213
42214 #. type: textblock
42215 #: ../tools/virt-win-reg.pl:192
42216 msgid ""
42217 "This is unsafe and does not preserve the fidelity of strings in the original "
42218 "Registry for various reasons:"
42219 msgstr ""
42220
42221 #. type: textblock
42222 #: ../tools/virt-win-reg.pl:199
42223 msgid ""
42224 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
42225 "other encodings will be corrupted by this transformation."
42226 msgstr ""
42227
42228 #. type: textblock
42229 #: ../tools/virt-win-reg.pl:204
42230 msgid ""
42231 "Assumes that everything which has type 1 or 2 is really a string and that "
42232 "everything else is not a string, but the type field in real Registries is "
42233 "not reliable."
42234 msgstr ""
42235
42236 #. type: textblock
42237 #: ../tools/virt-win-reg.pl:210
42238 msgid ""
42239 "Loses information about whether a zero codepoint followed the string in the "
42240 "Registry or not."
42241 msgstr ""
42242
42243 #. type: textblock
42244 #: ../tools/virt-win-reg.pl:215
42245 msgid ""
42246 "This all happens because the Registry itself contains no information about "
42247 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42248 msgstr ""
42249
42250 #. type: textblock
42251 #: ../tools/virt-win-reg.pl:219
42252 msgid ""
42253 "You should only use this option for quick hacking and debugging of the "
42254 "Registry contents, and I<never> use it if the output is going to be passed "
42255 "into another program or stored in another Registry."
42256 msgstr ""
42257
42258 #. type: =head1
42259 #: ../tools/virt-win-reg.pl:556
42260 msgid "SUPPORTED SYSTEMS"
42261 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
42262
42263 #. type: textblock
42264 #: ../tools/virt-win-reg.pl:558
42265 msgid ""
42266 "The program currently supports Windows NT-derived guests starting with "
42267 "Windows XP through to at least Windows 7."
42268 msgstr ""
42269
42270 #. type: textblock
42271 #: ../tools/virt-win-reg.pl:561
42272 msgid "The following Registry keys are supported:"
42273 msgstr ""
42274
42275 #. type: =item
42276 #: ../tools/virt-win-reg.pl:565
42277 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42278 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
42279
42280 #. type: =item
42281 #: ../tools/virt-win-reg.pl:567
42282 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42283 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42284
42285 #. type: =item
42286 #: ../tools/virt-win-reg.pl:569
42287 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42288 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42289
42290 #. type: =item
42291 #: ../tools/virt-win-reg.pl:571
42292 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42293 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42294
42295 #. type: =item
42296 #: ../tools/virt-win-reg.pl:573
42297 msgid "C<HKEY_USERS\\.DEFAULT>"
42298 msgstr "C<HKEY_USERS\\.DEFAULT>"
42299
42300 #. type: =item
42301 #: ../tools/virt-win-reg.pl:575
42302 msgid "C<HKEY_USERS\\I<SID>>"
42303 msgstr "C<HKEY_USERS\\I<SID>>"
42304
42305 #. type: textblock
42306 #: ../tools/virt-win-reg.pl:577
42307 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42308 msgstr ""
42309
42310 #. type: =item
42311 #: ../tools/virt-win-reg.pl:579
42312 msgid "C<HKEY_USERS\\I<username>>"
42313 msgstr "C<HKEY_USERS\\I<користувач>>"
42314
42315 #. type: textblock
42316 #: ../tools/virt-win-reg.pl:581
42317 msgid ""
42318 "where I<username> is a local user name (this is a libguestfs extension)."
42319 msgstr ""
42320
42321 #. type: textblock
42322 #: ../tools/virt-win-reg.pl:585
42323 msgid ""
42324 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
42325 "C<HKEY_USERS>."
42326 msgstr ""
42327
42328 #. type: textblock
42329 #: ../tools/virt-win-reg.pl:588
42330 msgid ""
42331 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
42332 "supported (there is no \"current user\")."
42333 msgstr ""
42334
42335 #. type: =head1
42336 #: ../tools/virt-win-reg.pl:591
42337 msgid "ENCODING"
42338 msgstr "КОДУВАННЯ"
42339
42340 #. type: textblock
42341 #: ../tools/virt-win-reg.pl:593
42342 msgid ""
42343 "C<virt-win-reg> expects that regedit files have already been reencoded in "
42344 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
42345 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
42346 "Windows-style line endings, you may need to reencode the whole file before "
42347 "or after processing."
42348 msgstr ""
42349
42350 #. type: textblock
42351 #: ../tools/virt-win-reg.pl:599
42352 msgid ""
42353 "To reencode a file from Windows format to Linux (before processing it with "
42354 "the I<--merge> option), you would do something like this:"
42355 msgstr ""
42356
42357 #. type: verbatim
42358 #: ../tools/virt-win-reg.pl:602
42359 #, no-wrap
42360 msgid ""
42361 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42362 "\n"
42363 msgstr ""
42364 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42365 "\n"
42366
42367 #. type: textblock
42368 #: ../tools/virt-win-reg.pl:604
42369 msgid ""
42370 "To go in the opposite direction, after exporting and before sending the file "
42371 "to a Windows user, do something like this:"
42372 msgstr ""
42373
42374 #. type: verbatim
42375 #: ../tools/virt-win-reg.pl:607
42376 #, no-wrap
42377 msgid ""
42378 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42379 "\n"
42380 msgstr ""
42381 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42382 "\n"
42383
42384 #. type: textblock
42385 #: ../tools/virt-win-reg.pl:609
42386 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
42387 msgstr ""
42388
42389 #. type: textblock
42390 #: ../tools/virt-win-reg.pl:611
42391 msgid ""
42392 "If you are unsure about the current encoding, use the L<file(1)> command.  "
42393 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
42394 "style (CRLF) line endings, like this:"
42395 msgstr ""
42396
42397 #. type: verbatim
42398 #: ../tools/virt-win-reg.pl:615
42399 #, no-wrap
42400 msgid ""
42401 " $ file software.reg\n"
42402 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
42403 " with CRLF line terminators\n"
42404 "\n"
42405 msgstr ""
42406
42407 #. type: textblock
42408 #: ../tools/virt-win-reg.pl:619
42409 msgid "This file would need conversion before you could I<--merge> it."
42410 msgstr ""
42411
42412 #. type: =head1
42413 #: ../tools/virt-win-reg.pl:621
42414 msgid "CurrentControlSet etc."
42415 msgstr ""
42416
42417 #. type: textblock
42418 #: ../tools/virt-win-reg.pl:623
42419 msgid ""
42420 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
42421 "Registry at the level of the hive file, and therefore you cannot modify "
42422 "these."
42423 msgstr ""
42424
42425 #. type: textblock
42426 #: ../tools/virt-win-reg.pl:627
42427 msgid ""
42428 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
42429 "circumstances it might refer to another control set.  The way to find out is "
42430 "to look at the C<HKLM\\SYSTEM\\Select> key:"
42431 msgstr ""
42432
42433 #. type: verbatim
42434 #: ../tools/virt-win-reg.pl:631
42435 #, no-wrap
42436 msgid ""
42437 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42438 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42439 " \"Current\"=dword:00000001\n"
42440 " \"Default\"=dword:00000001\n"
42441 " \"Failed\"=dword:00000000\n"
42442 " \"LastKnownGood\"=dword:00000002\n"
42443 "\n"
42444 msgstr ""
42445 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42446 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42447 " \"Current\"=dword:00000001\n"
42448 " \"Default\"=dword:00000001\n"
42449 " \"Failed\"=dword:00000000\n"
42450 " \"LastKnownGood\"=dword:00000002\n"
42451 "\n"
42452
42453 #. type: textblock
42454 #: ../tools/virt-win-reg.pl:638
42455 msgid "\"Current\" is the one which Windows will choose when it boots."
42456 msgstr ""
42457
42458 #. type: textblock
42459 #: ../tools/virt-win-reg.pl:640
42460 msgid ""
42461 "Similarly, other C<Current...> keys in the path may need to be replaced."
42462 msgstr ""
42463
42464 #. type: =head1
42465 #: ../tools/virt-win-reg.pl:643
42466 msgid "DELETING REGISTRY KEYS AND VALUES"
42467 msgstr ""
42468
42469 #. type: textblock
42470 #: ../tools/virt-win-reg.pl:645
42471 msgid "To delete a whole registry key, use the syntax:"
42472 msgstr ""
42473
42474 #. type: verbatim
42475 #: ../tools/virt-win-reg.pl:647
42476 #, fuzzy, no-wrap
42477 #| msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42478 msgid ""
42479 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
42480 "\n"
42481 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
42482
42483 #. type: textblock
42484 #: ../tools/virt-win-reg.pl:649
42485 msgid "To delete a single value within a key, use the syntax:"
42486 msgstr ""
42487
42488 #. type: verbatim
42489 #: ../tools/virt-win-reg.pl:651
42490 #, fuzzy, no-wrap
42491 #| msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42492 msgid ""
42493 " [HKEY_LOCAL_MACHINE\\Foo]\n"
42494 " \"Value\"=-\n"
42495 "\n"
42496 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
42497
42498 #. type: =head1
42499 #: ../tools/virt-win-reg.pl:654
42500 msgid "WINDOWS TIPS"
42501 msgstr ""
42502
42503 #. type: textblock
42504 #: ../tools/virt-win-reg.pl:656
42505 msgid ""
42506 "Note that some of these tips modify the guest disk image.  The guest I<must> "
42507 "be shut off, else you will get disk corruption."
42508 msgstr ""
42509
42510 #. type: =head2
42511 #: ../tools/virt-win-reg.pl:659
42512 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42513 msgstr ""
42514
42515 #. type: textblock
42516 #: ../tools/virt-win-reg.pl:661
42517 msgid ""
42518 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
42519 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
42520 "is uploaded into C<C:\\>:"
42521 msgstr ""
42522
42523 #. type: verbatim
42524 #: ../tools/virt-win-reg.pl:665
42525 #, no-wrap
42526 msgid ""
42527 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42528 "\n"
42529 msgstr ""
42530 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42531 "\n"
42532
42533 #. type: textblock
42534 #: ../tools/virt-win-reg.pl:667
42535 msgid "Prepare a regedit file containing the registry change:"
42536 msgstr ""
42537
42538 #. type: verbatim
42539 #: ../tools/virt-win-reg.pl:669
42540 #, no-wrap
42541 msgid ""
42542 " cat > test.reg <<'EOF'\n"
42543 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42544 " \"Test\"=\"c:\\\\test.bat\"\n"
42545 " EOF\n"
42546 "\n"
42547 msgstr ""
42548 " cat > test.reg <<'EOF'\n"
42549 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42550 " \"Test\"=\"c:\\\\test.bat\"\n"
42551 " EOF\n"
42552 "\n"
42553
42554 #. type: textblock
42555 #: ../tools/virt-win-reg.pl:674
42556 msgid ""
42557 "In this example we use the key C<RunOnce> which means that the script will "
42558 "run precisely once when the first user logs in.  If you want it to run every "
42559 "time a user logs in, replace C<RunOnce> with C<Run>."
42560 msgstr ""
42561
42562 #. type: textblock
42563 #: ../tools/virt-win-reg.pl:678
42564 msgid "Now update the registry:"
42565 msgstr "Оновіть регістр:"
42566
42567 #. type: verbatim
42568 #: ../tools/virt-win-reg.pl:680
42569 #, no-wrap
42570 msgid ""
42571 " virt-win-reg --merge WindowsGuest test.reg\n"
42572 "\n"
42573 msgstr ""
42574
42575 #. type: =head2
42576 #: ../tools/virt-win-reg.pl:682
42577 msgid "INSTALLING A SERVICE"
42578 msgstr ""
42579
42580 #. type: textblock
42581 #: ../tools/virt-win-reg.pl:684
42582 msgid ""
42583 "This section assumes you are familiar with Windows services, and you either "
42584 "have a program which handles the Windows Service Control Protocol directly "
42585 "or you want to run any program using a service wrapper like SrvAny or the "
42586 "free RHSrvAny."
42587 msgstr ""
42588
42589 #. type: textblock
42590 #: ../tools/virt-win-reg.pl:689
42591 msgid ""
42592 "First upload the program and optionally the service wrapper.  In this case "
42593 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
42594 msgstr ""
42595
42596 #. type: verbatim
42597 #: ../tools/virt-win-reg.pl:693
42598 #, no-wrap
42599 msgid ""
42600 " guestfish -i -d WindowsGuest <<EOF\n"
42601 "   upload rhsrvany.exe /rhsrvany.exe\n"
42602 "   upload test.exe /test.exe\n"
42603 " EOF\n"
42604 "\n"
42605 msgstr ""
42606 " guestfish -i -d WindowsGuest <<EOF\n"
42607 "   upload rhsrvany.exe /rhsrvany.exe\n"
42608 "   upload test.exe /test.exe\n"
42609 " EOF\n"
42610 "\n"
42611
42612 #. type: textblock
42613 #: ../tools/virt-win-reg.pl:698
42614 msgid ""
42615 "Prepare a regedit file containing the registry changes.  In this example, "
42616 "the first registry change is needed for the service itself or the service "
42617 "wrapper (if used).  The second registry change is only needed because I am "
42618 "using the RHSrvAny service wrapper."
42619 msgstr ""
42620
42621 #. type: verbatim
42622 #: ../tools/virt-win-reg.pl:703
42623 #, no-wrap
42624 msgid ""
42625 " cat > service.reg <<'EOF'\n"
42626 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42627 " \"Type\"=dword:00000010\n"
42628 " \"Start\"=dword:00000002\n"
42629 " \"ErrorControl\"=dword:00000001\n"
42630 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42631 " \"DisplayName\"=\"RHSrvAny\"\n"
42632 " \"ObjectName\"=\"NetworkService\"\n"
42633 " \n"
42634 msgstr ""
42635 " cat > service.reg <<'EOF'\n"
42636 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42637 " \"Type\"=dword:00000010\n"
42638 " \"Start\"=dword:00000002\n"
42639 " \"ErrorControl\"=dword:00000001\n"
42640 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42641 " \"DisplayName\"=\"RHSrvAny\"\n"
42642 " \"ObjectName\"=\"NetworkService\"\n"
42643 " \n"
42644
42645 #. type: verbatim
42646 #: ../tools/virt-win-reg.pl:712
42647 #, no-wrap
42648 msgid ""
42649 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42650 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42651 " \"PWD\"=\"c:\\\\Temp\"\n"
42652 " EOF\n"
42653 "\n"
42654 msgstr ""
42655 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42656 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42657 " \"PWD\"=\"c:\\\\Temp\"\n"
42658 " EOF\n"
42659 "\n"
42660
42661 #. type: textblock
42662 #: ../tools/virt-win-reg.pl:723
42663 msgid ""
42664 "For use of C<ControlSet001> see the section above in this manual page.  You "
42665 "may need to adjust this according to the control set that is in use by the "
42666 "guest."
42667 msgstr ""
42668
42669 #. type: textblock
42670 #: ../tools/virt-win-reg.pl:729
42671 msgid ""
42672 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42673 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42674 "privileged account."
42675 msgstr ""
42676
42677 #. type: textblock
42678 #: ../tools/virt-win-reg.pl:735
42679 msgid ""
42680 "For the meaning of the magic numbers, see this Microsoft KB article: "
42681 "L<http://support.microsoft.com/kb/103000>."
42682 msgstr ""
42683
42684 #. type: textblock
42685 #: ../tools/virt-win-reg.pl:740
42686 msgid "Update the registry:"
42687 msgstr "Оновіть регістр:"
42688
42689 #. type: verbatim
42690 #: ../tools/virt-win-reg.pl:742
42691 #, no-wrap
42692 msgid ""
42693 " virt-win-reg --merge WindowsGuest service.reg\n"
42694 "\n"
42695 msgstr ""
42696
42697 #. type: textblock
42698 #: ../tools/virt-win-reg.pl:746
42699 msgid ""
42700 "Be careful when passing parameters containing C<\\> (backslash) in the "
42701 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42702 "(but not both) to protect them from the shell."
42703 msgstr ""
42704
42705 #. type: textblock
42706 #: ../tools/virt-win-reg.pl:750
42707 msgid "Paths and value names are case-insensitive."
42708 msgstr ""
42709
42710 #. type: textblock
42711 #: ../tools/virt-win-reg.pl:759
42712 msgid ""
42713 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42714 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42715 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42716 msgstr ""
42717 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42718 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42719 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42720
42721 #. type: verbatim
42722 #: ../tools/virt-win-reg.pl:777
42723 #, no-wrap
42724 msgid ""
42725 " export LIBGUESTFS_DEBUG=1\n"
42726 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42727 "\n"
42728 msgstr ""
42729
42730 #. type: textblock
42731 #: ../tools/virt-win-reg.pl:780
42732 msgid ""
42733 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
42734 "redhat.com/>"
42735 msgstr ""